diff --git a/.ci.yml b/.ci.yml index 1f54fd3..d5479d2 100644 --- a/.ci.yml +++ b/.ci.yml @@ -9,7 +9,7 @@ linters: enable: - errcheck - gosimple - - govet + - govet - ineffassign - staticcheck - unused diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dee5073..dd71f50 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,7 +31,7 @@ jobs: args: -v --config=.ci.yml skip-pkg-cache: true skip-build-cache: true - + - name: Static check uses: dominikh/staticcheck-action@v1.3.0 with: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 20a6a24..dd18bd8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,7 +8,7 @@ name: release on: push: tags: - - 'v*' # Run pn Push tag + - 'v*' # Run pn Push tag permissions: contents: write # needed to write releases @@ -28,8 +28,8 @@ jobs: cache: true - name: Run tests run: go test ./... -coverprofile=coverage.out -coverpkg=./... -covermode=atomic - - - uses: sigstore/cosign-installer@v3.1.2 # installs cosign + + - uses: sigstore/cosign-installer@v3.4.0 # installs cosign - uses: anchore/sbom-action/download-syft@v0.14.3 # installs syft - uses: goreleaser/goreleaser-action@v5 # run goreleaser id: goreleaser @@ -41,17 +41,8 @@ jobs: - name: verify release run: | - COMMIT=$(git rev-list --tags --max-count=1) - TAG=$(git describe --tags ${COMMIT}) - wget https://github.com/intelops/genval/releases/download/${TAG}/checksums.txt - cosign verify-blob \ - --certificate-identity "https://github.com/intelops/genval/.github/workflows/release.yaml@refs/tags/${TAG}" \ - --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \ - --cert "https://github.com/intelops/genval/releases/download/${TAG}/checksums.txt.pem" \ - --signature "https://github.com/intelops/genval/releases/download/${TAG}/checksums.txt.sig" \ - ./checksums.txt - - - - - \ No newline at end of file + bash ./.github/workflows/verify.sh + + + + diff --git a/.github/workflows/verify.sh b/.github/workflows/verify.sh new file mode 100755 index 0000000..da74868 --- /dev/null +++ b/.github/workflows/verify.sh @@ -0,0 +1,45 @@ +#!/bin/bash + +set -ex + +archs=( + "darwin_amd64" + "darwin_arm64" + "linux_amd64" + "linux_arm64" + "windows_amd64" + "windows_arm64" +) +COMMIT=$(git rev-list --tags --max-count=1) +version=$(git describe --tags ${COMMIT}) +version="${version#v}" + +for arch in "${archs[@]}"; do + # Define the base URL for the release files + base_url="https://github.com/santoshkal/genval-fork/releases/download/v${version}/genval_${version}_${arch}.tar.gz" + + # Download the main release file + curl -L -O "${base_url}" >/dev/null 2>&1 + + # Download the signature file + curl -L -O "${base_url}.sig" >/dev/null 2>&1 + + # Download the certificate file + curl -L -O "${base_url}.crt" >/dev/null 2>&1 + + # Verify the downloaded file using cosign + cosign verify-blob \ + --signature "genval_${version}_${arch}.tar.gz.sig" \ + --certificate "genval_${version}_${arch}.tar.gz.crt" \ + --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \ + --certificate-identity "https://github.com/intelops/genval/.github/workflows/release.yaml@refs/tags/v${version}" \ + "genval_${version}_${arch}.tar.gz" >/dev/null 2>&1 + + # Check if verification was successful + if [ $? -eq 0 ]; then + echo "Verification successful for genval_${version}_${arch}.tar.gz." + else + echo "Error verifying genval_${version}_${arch}.tar.gz. Exiting." + exit 1 + fi +done \ No newline at end of file diff --git a/.gitignore b/.gitignore index e3af3e5..819b900 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,8 @@ input.yaml input.json input_dockerfile.json /output -Dockerfile* \ No newline at end of file +Dockerfile* +genval +cosign +.idea + diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8e01360..7969ecc 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -25,12 +25,7 @@ checksum: source: enabled: true -sboms: - - artifacts: archive - - id: source # Two different sbom configurations need two different IDs - artifacts: source - -# signs the checksum file +# signs the artifacts signs: - cmd: cosign certificate: '${artifact}.pem' @@ -39,7 +34,8 @@ signs: - '--output-certificate=${certificate}' - '--output-signature=${signature}' - '${artifact}' - - "--yes" - artifacts: checksum + - "--yes" + # artifacts: checksum + artifacts: all output: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c02a732..4e091d7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,72 +45,26 @@ repos: rev: v1.0.3 hooks: # Formats Go code - # - id: gofumpt # requires gofumpt to be installed from github.com/mvdan/gofumpt - # name: Go formatter - # description: Runs a strict Go formatter + - id: gofumpt # requires gofumpt to be installed from github.com/mvdan/gofumpt + name: Go formatter + description: Runs a strict Go formatter - id: go-fmt-import name: Go formatter description: Go formatter with fmt and imports # Runs Unit tests - id: go-unit-tests name: Run Unit tests - desription: Runs all the unit tests in the repo + description: Runs all the unit tests in the repo # Runs static analysis of the Go code - id: go-static-check name: Go Static Check description: Finds bugs and performance issues -# Local hooks - -# Check for Dockerfile in a project -- repo: local - hooks: - - name: Check Dockerfile - id: check-dockerfile-sh - entry: bash - args: - - -c - - | - check_dockerfile() { - if [[ $1 == *"Dockerfile"* ]]; then - base_image=$(grep '^FROM' "$1" | awk '{print $2}') - if [[ $base_image != cgr.dev/chianguard* ]]; then - echo "Error: Base image in $1 is not from cgr.dev/chianguard" - return 1 - fi - fi - return 0 - } - - export -f check_dockerfile - - if find . -type f -exec bash -c 'check_dockerfile "$0"' {} \; | grep -q 'Error'; then - echo "Commit failed due to non-compliant Dockerfile(s)." - exit 1 - fi - - echo "All Dockerfiles are compliant." - exit 0 - language: system - pass_filenames: false +# Intelops Hooks -# Check commit signed by gitsign -- repo: local +- repo: https://github.com/intelops/gitrepos-templates-policies + rev: v0.0.1 hooks: - - name: Check GitSign - id: check-gitsign-sh - entry: bash - args: - - -c - - | - latest_commit=$(git rev-parse HEAD) - signed_commit=$(git verify-commit $latest_commit 2>&1) - if [[ $signed_commit == *"Validated Git signature: true"* ]]; then - echo "Latest commit is signed with gitsign." - exit 0 - else - echo "WARNING: The latest commit is not signed with gitsign." - fi - exit 1 - language: system - pass_filenames: false \ No newline at end of file + - id: check-gitsign + name: Check gitsign + description: Check if the last commit is signed with Sigstore gitsign \ No newline at end of file diff --git a/CONTRIBUTION.md b/CONTRIBUTION.md index c8293aa..a1c4d5b 100644 --- a/CONTRIBUTION.md +++ b/CONTRIBUTION.md @@ -22,7 +22,7 @@ Please follow these steps and note these guidelines to begin contributing: ## Set up your Local Development Environment Make sure you have built the [application from source](./README.md/#build-from-source) on your operating system before you start contributing: - + Clone the Genval repository: ```shell @@ -114,7 +114,7 @@ package tekton import "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" -#Pipeline: v1beta1.#Pipeline & { +#Pipeline: v1beta1.#Pipeline & { apiVersion: string | *"tekton.dev/v1beta1" kind: string | *"Pipeline" ... diff --git a/Makefile b/Makefile index 4e98035..5b90ad6 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ test: ## Run full test suite testfunc: ## Runs test on a specific function specified in the arg.| Example usage `make testfunc validateInput` @echo "Running specific test function..." @$(GOTEST) $(TESTFLAGS) -run $(filter-out $@,$(MAKECMDGOALS)) $(PKGS) - + .PHONY: test testfunc coverage: ## Generate and view the test coverage @@ -40,4 +40,4 @@ lint: ## Run a linter on the codebase using golangci-lint. build: ## builds the GenVal app for defined OS/Arch by passing GOOS=$(GOOS) GOARCH=$GOARCH args.| Example usage `make build GOOS=linux GOARCH=amd64` - @GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags="-X main.Version=$(shell git describe --tags --abbrev=0)" -o genval ./cmd + @GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags="-X main.Version=$(shell git describe --tags --abbrev=0)" -o ./bin/genval . \ No newline at end of file diff --git a/README.md b/README.md index 69c5269..5d71d10 100644 --- a/README.md +++ b/README.md @@ -6,136 +6,137 @@ # Genval: Simplifying Configuration Management - -Genval is a versatile Go utility that simplifies configuration management for a wide range of tools, including Dockerfile, Kubernetes manifests, Helm, Timoni, Kustomize, Kubernetes Operators, Tekton, GitOps, Kubernetes Infrastructure YAML files, and more. - +Genval is a versatile Go utility that simplifies configuration management for a wide range of tools, including Dockerfile, Kubernetes manifests, and other infrastructure files. + + ## Streamlining validation and Generation of Configurations - -**Genval** is a robust utility written in Golang that streamlines the management of configurations for various tools. Whether you need Dockerfiles, YAML/JSON manifests for Kubernetes, or custom resource definitions (CRDs), Genval simplifies the process of validation and generation for multiple configuration artifacts. - +**Genval** is a robust utility written in Golang that streamlines the management of configuration files for various tools. Whether you need Dockerfiles, YAML/JSON manifests for Kubernetes, or custom resource definitions (CRDs), Genval simplifies the process of validation and generation for multiple configuration artifacts. + -## Why Genval?go install github.com/sigstore/gitsign@latest -go install github.com/sigstore/gitsign@latest - -Managing configurations across different tools can be a daunting task. Ensuring that these configurations adhere to best practices is critical but can be time-consuming and error-prone. Genval automates these processes, making configuration management more efficient. +## Why Genval? + +Managing configurations across different tools can be a daunting task. Ensuring that these configurations adhere to best practices is critical, at the same time it can be time-consuming and error-prone. Genval automates these processes, making configuration management more efficient. + - ## Key Features - -### Dockerfile Management - +### Dockerfile Management -- **Input Validation**: Genval validates your input, typically provided in JSON format, to ensure correct structure. - - **Dockerfile Generation**: After successful validation, Genval generates a Dockerfile based on your input, tailored to your specifications. - + +- **Input Validation**: Genval validates your input for generation of Dockerfile, typically provided in JSON format, to ensure correct structure. + - **Best Practice Validation**: Genval doesn't stop at generation; it checks your Dockerfile against predefined best practices for security and optimization. - - **Informative Feedback**: If Genval detects issues during best practice validation, it provides informative feedback to help you improve your Dockerfile. - -> Note: For Dockerfile validation and generation, `genval` expects a predefined structure for the `JSON` file provided to the `--value` flag. Sample `.json` files can be found in the `./templates/dockerFile-samples` directory. - +> Note: For Dockerfile validation and generation, `genval` expects a predefined structure for the `JSON` file provided to the `--reqinput` flag. Sample `.json` files can be found in the `./templates/dockerFile-samples` directory. -### Managing Kubernetes and CRD Manifests - -- Genval validates input for required structure based on the tool in use. It can enforce best practices while authoring configuration files for tools like Kubernetes and various CRDs. +### Managing Kubernetes Manifests + - + +- Genval validates input for required structure based on the tool in use. It can enforce best practices while authoring configuration files for tools like Kubernetes and various CRDs. - Users can provide minimal and custom configurations for a given resource, with Genval populating all necessary fields based on security best practices recommended by the community. - + - Genval generates YAML manifests according to the required format for the specified resource and tool. - +### Validation of configuration file + +Genval provides capabilities to validate configuration for different resources and technologies, including Dockerfile, Kubernetes manifests, and Terraform files using Rego and CEL policy languages. -## Getting Started - +## Getting Started To use Genval: - + - Download the `genval` binary for your platform from the official [release page](https://github.com/intelops/genval/releases). - + ## Verifying Binary Signatures - -Genval's release process signs binaries using Cosign's keyless signing mode. To verify a specific binary, retrieve the release checksum, signature, and public certificate for your desired `TAG`. Detailed instructions are available in the [Sigstore blog](https://blog.sigstore.dev/cosign-2-0-released/). - +Genval's release process signs binaries using Cosign's keyless signing mode. To verify a specific binary, retrieve the release artifact, signature, and public certificate for your desired os/arch. Detailed instructions are available in the [Sigstore blog](https://blog.sigstore.dev/cosign-2-0-released/). + +**Example to verify a binary for linux_amd64** ```shell -# Example commands to verify a binary -$ wget https://github.com/intelops/genval/releases/download/v0.0.1/checksums.txt -$ wget https://github.com/intelops/genval/releases/download/v0.0.1/checksums.txt.pem -$ wget https://github.com/intelops/genval/releases/download/v0.0.1/checksums.txt.sig +COMMIT=$(git rev-list --tags --max-count=1) +version=$(git describe --tags ${COMMIT}) +version="${version#v}" + +# get the artifact +$ wget https://github.com/santoshkal/genval-fork/releases/download/v${version}/genval_$version}_linux_amd64.tar.gz +# get the signature +$ wget https://github.com/santoshkal/genval-fork/releases/download/v${version}/genval_${version}_linux_amd64.tar.gz.sig +# Get the certificate +$ wget https://github.com/santoshkal/genval-fork/releases/download/v${version}/genval_${version}_linux_amd64.tar.gz.crt + - cosign verify-blob \ ---certificate-identity "https://github.com/intelops/genval/.github/workflows/release.yaml@refs/tags/v0.0.1" \ +--certificate-identity "https://github.com/intelops/genval/.github/workflows/release.yaml@refs/tags/${version}" \ --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \ ---cert ./checksums.txt.pem \ ---signature ./checksums.txt.sig \ -./checksums.txt +--cert ./genval_${version}_linux_amd64.tar.gz.crt \ +--signature genval_${version}_linux_amd64.tar.gz.sig \ +./genval_${version}_linux_amd64.tar.gz ``` If verification is successful, you'll see "**Verified OK.**" - +> For more details on signing/verifying container images and artifacts refer this [Sigstore blog](https://blog.sigstore.dev/cosign-2-0-released/) + ## Installation - + - Download the genval binary from the official [release page](https://github.com/intelops/genval/releases) -- Move the executable to your `PATH` for convenience. +- Move the executable to `/usr/local/bin` for convenience. + - ## Quick Start - + For a quick start, pre-built templates for Dockerfile generation for popular languages can be found in the `./templates/inputs/dockerfile_input` folder. - + ## Building from Source The easieast way to build the `genval` executable is using the `build` Makefile target. -`make build`. -This will build the binary from source and place the `genval` binary in the `./bin` folder. +`make build`. +This will build the binary from source and place the `genval` binary in the `./bin` folder that can be copied to `/usr/local/bin`. + - To build genval from source: @@ -145,119 +146,215 @@ To build genval from source: - Build Genval: `CGO_ENABLED=0 go build -o ./genval ./cmd` - + The generated binary, genval, will be available in the current working directory. You can move it to your PATH or use it from the current directory. -Genval offers four modes: +# Welcome to Genval +Genval provides a range of powerful modes for generating and validating configuration files across various technologies. Each mode serves specific purposes and can be accessed through Genval's main commands: -- `container` for Dockerfile validation with rego policies and generation of validated Dockerfile -- `cue` for Kubernetes and CRD validation and generation -- `k8s` for validating Kubernetes manifests with Rego policies -- `tf` for validating Terraform resource files with Rego policies -- `cel` for validating Kubernetes resource files with CEL policies -A helper mode `showjson` is available for user to view the **JSON** representation of the input files passed to Genval. In `--mode showjson` a user can pass the input file, for example a Dockerfile, Terraform file or a Kubernetes YAML manifests and get the JSON representation of that specific input. As most of the policies are written based on input in a JSON structured format. This would enable user to refer this JSON document to write their custom policies in **Rego** and **CEL**. +- `dockerfile`: Generate and validate Dockerfiles, utilizing [Rego](https://www.openpolicyagent.org/docs/latest/policy-language/) for validation of Dockerfile +- `regoval` Validate Dockerfiles, Kubernetes manifests, and Terraform files using Rego policies +- `celval` Validate Dockerfiles, Kubernetes manifests, and Terraform files with [Common Expression Language (CEL)](https://cel.dev/overview/cel-overview) policies +- `cue` Generate and validate Kubernetes and related config files leveraging [Cuelang aka CUE](https://cuelang.org/docs/) +- `cuemod` Create a workspace for generating and validating Kubernetes and related config files. +- `artifact` Manage pushing and pulling built artifacts from OCI compliant container registries. +AAdditionally, a helpful command called `showjson` allows users to view the JSON representation of input files passed to Genval. By using this command, users can specify an input file, such as a **Dockerfile**, **Terraform file** and obtain its corresponding JSON representation. Since many policies are written based on JSON structured input, this feature facilitates users in developing custom policies in **Rego** and **CEL**. -> All the modes accept inputs that include local files and files obtained from a remote URL, such as those from a Git repositoryin raw format. If you want to query the files from the `https://github.com`. You need to authenticate to GitHub by providing your Personal Access Token. You can do this by creating and an enviornment variable named. Here's how to do it: `export GITHUB_TOKEN=` - +> All commands accept inputs from both local files and remote URLs, such as those from a Git repository in raw format. If you wish to query files from https://github.com, authentication to GitHub via a Personal Access Token (PAT) is required. To set this up, create an environment variable named GITHUB_TOKEN and assign it your PAT. Here's how to do it: export GITHUB_TOKEN=. -### Dockerfile Validation and Generation: - -Run Genval with the `--mode container` flag, providing the path to your input JSON or YAML file using the `--reqinput` flag and specifying the desired output path for the generated Dockerfile along with `--inputpolicy` and `--outputpolicy` for validating the input JSON and the generated Dockerfile respectively. Genval will take care of the rest. +### Dockerfile Validation and Generation: +To validate and generate Dockerfiles using Genval, use the `dockerfile` command. Provide the path to your input JSON or YAML file using the `--reqinput` flag. Specify the desired output path for the generated Dockerfile along with the `--inputpolicy` and `--outputpolicy` Rego policy files for validating the input JSON and the generated Dockerfile respectively. Genval will handle the validation process seamlessly. Example: ``` -$ genval --mode container --reqinput ./templates/inputs/dockerfile_input/golang_input.json \ - --output ./Dockerfile-Golang \ - --inputpolicy ./templatates/defaultpolicies/rego/inputfile_policies.rego \ - --outputpolicy ./templatates/defaultpolicies/rego/dockerfile_policies.rego +$ genval dockerfile --reqinput=./templates/inputs/dockerfile_input/golang_input.json \ +--output Dockerfile \ +--inputpolicy ./templates/defaultpolicies/ rego/inputfile_policies.rego \ +--outputpolicy ./templates/defaultpolicies/rego/dockerfile_policies.rego ``` - -> Replace the values provided in the flags with your custom input file and Rego policies. +> Customize the values provided in the flags according to your specific input file and Rego policies. +> +> You can supply all arguments to the --reqinput, inputpolicy, and outputpolicy flags from remote URLs, such as those hosted on GitHub (e.g., https://github.com). - +> For authenticating with GitHub.com, set the env variable GITHUB_TOKEN: +`export GITHUB_TOKEN=` **Review Feedback**: Genval provides feedback based on best practice validation. Use this feedback to refine your Dockerfile. +### Validation of the Dockerfile, Kubernetes manifests and Terraform files using Rego policies + +Genval manages validation with Rego polcies with `regoval` command and for validation of each of the technology a separate subcommand is provided: + +#### Validation of Dockerfiles with Rego policies + +```shell +genval regoval dockerfileval --reqinput ./templates/inputs/Dockerfile \ +--policy ./templates/defaultpolicies/dockerfile_policies.rego +``` + +#### Validation of Kubernetes manifests using Rego policies + +```shell +genval infrafile --reqinput ./templates/inputs/k8s/deployment.json \ +--policy ./templates/defaultpolicies/k8s.rego +``` + +#### Validation of Terraform files using Rego policies + +> Users can directly provide the `.tf` file to genval along with a policy written in Rego for validatin the Terraform file +```shell +genval regoval --reqinput ./templates/inputs/terraform/sec_group.tf \ +--policy ./templates/defaultpolicies/terraform.rego +``` + + +### Validation of the Dockerfile, Kubernetes manifests and Terraform files using CEL policies + +`celval` is the main command that manages validation of Dockerfiles, Kubernetes manifests, and Terraform files using Common Expression Language (CEL). + +#### Validation of Dockerfiles with CEL policies + +```shell +genval celval dockerfileval --reqinput=input.json \ +--policy=<'path/to/CEL policy file> +``` + +#### Validation of Kubernetes manifests using Rego policies + +```shell +./genval celval infrafile --reqinput=input.json \ +--policy= +``` + + +#### Validation of Terraform files using Rego policies + +```shell +./genval celval terraform --reqinput ./templates/inputs/terraform/sec_group.tf \ +--policy=--policy ./templates/defaultpolicies/cel/terraform_cel +``` + ### Validation and Generation of Kubernetes configurations +Genval leverages [cuelang](https://cuelang.org/docs/)for the validation and generation of Kubernetes and CRD manifests. When utilizing Genval for these tasks, employ the cue mode. This mode requires JSON/YAML input via the `--reqinput` flag. Additionally, specify a resource flag, indicating the top-level label defined in the Cue policies. Lastly, provide the Cue policies (Cue definitions) for validation and generation. The `--policy` argument accepts a directory containing a cue.mod directory, which holds the upstream APIs in .cue format for assisting in validating the provided config file. The same directory also contains a policy (Cue definition) for validation and generation. -The validation and generation of Kubernetes and CRD manifests are facilitated through the use of [cuelang](https://cuelang.org/docs/). When using Genval for validating and generating Kubernetes and related manifests, make use of the Genval tool in `cue` mode. This mode necessitates JSON input provided via the `--reqinput` flag. Furthermore, you should specify a `resource` flag, indicating the Kubernetes or CRD `Kind` that requires validation. Additionally, attach the `.cue schema definitions` to the `--policy` flag. These policy files can be provided from the users local file system or from a remote URL, like a Git repository. +To aid users in creating workspaces enriched with the required directory structure for the `--policy` argument, Genval offers the [`cuemod init` command](#creating-workspace-for-working-with-cue-mode). This command takes one argument, -`-tool`, which specifies the desired technology. Genval currently supports the following tools: -You have the flexibility to employ multiple `--policy` flags, allowing you to supply distinct `.cue` definitions as needed. For instance, your DevSecOps/Platform engineering team can furnish a schema that enforces security best practices for a specific environment, encompassing all the pertinent mandatory fields. This approach leaves room for custom fields like `metadata`, `image`, `replicas`, specific to a **Deployment**, to be provided by the development teams. In the `cue` mode, development teams can then contribute their customized policies for validation and generation, tailoring the configurations to suit their particular environments. +- `k8s`: For validating and/or generating manifests for Kubernetes. +- `argocd`: For validating and/or generating manifests for ArgoCD +- `tekton`: For validating and/or generating manifests for Tekton +- `crossplane`: TFor validating and/or generating manifests for Crossplane - -Example: +Users can provide multiple `.cue` policies within the workspace directory, enabling the supply of distinct `.cue` definitions as needed. For example, a DevSecOps/Platform engineering team may provide a schema enforcing security best practices for a specific environment, while development teams can customize policies for validation and generation, tailoring configurations to their particular environments. +Example: ```shell -$ genval --mode cue --reqinput ./templates/inputs/cue/deploy,json \ - --resource Deployment \ - --policy ./templates/defaultpolicies/cue/deployment.cue \ - --policy ./templates/defaultpolicies/cue/dev-deployment.cue +$ genval cue --reqinput https://github.com/santoshkal/cuemod-demo/tree/main/k8s \ +--resource Application \ +--policy ./policy ``` -The above command will validate a Deployment manifests using the provided `.cue` schema definitions provided as policies and generate the final YAML manifet in the `cwd`. +This command validates Deployment manifests using the provided `.cue` schema definitions from the `policy` directory and generates the final YAML manifest in the output directory in the current working directory. -> The `--resource` flag in `cue` mode needs a valid Kind, like in above example "Deployment" or StatefulSet, DaemonSet etc. +>The `--resource` flag in **cue** mode labels the top-level flag in the Cue definitions. In the above example, "Application" defines a Kubernetes Deployment and a Service resource. For a detailed workflow illustrating the capabilities of Cue and Genval for validating and generating Kubernetes configurations, you can refer to [this document](./cmd/cueval/example.md). -The workflow for adding a Cue schema for Kubernetes CRDs is failry easy, and demostrated in the [CONTRIBUTION.md document](./CONTRIBUTION.md/#contributing-by-adding-a-cue-schema-to-the-project). +The workflow for adding a Cue schema for Kubernetes CRDs is failry easy, and demostrated in the [CONTRIBUTION.md document](./CONTRIBUTION.md/#contributing-by-adding-a-cue-schema-to-the-project). -### Validation of Kubernetes resources with Rego policies +### Creating workspace for working with cue mode -To validate Kubernetes manifests with Rego policies, users can use `--mode k8s` with `--reqinput` for providing the required input in JSON or YAML format, and `--policy` flag to pass in the Rego policies. +In order to utilize the **cue command** effectively, a directory must be provided to the `--policy` flag. This directory is essential and **must** contain a cue.mod directory with upstream configurations for the relevant tool being evaluated, along with one or more `.cue` definitions. -Example: +Genval streamlines the creation of such a workspace for several technologies, including Kubernetes, ArgoCD, TektonCD, and Crossplane. + +To initiate a workspace, utilize the `cuemod init` command and specify the desired technology using the `--tool` flag + +The `cuemod init` command acts as a helper command, facilitating the creation of all necessary files for working in the *cue mode*. It validates and retrieves all required files from the OCI registry, placing them on disk for use with the cue command. ```shell -genval --mode k8s --reqinput \ - --policy +$ genval cuemod init --tool=k8s` ``` -### Validate Terraform resource files with Rego policies +This command will create a new directory in users current working directory with name `cuemod-k8s:1.29` with following structure: -To validate the Terraform resource file in `.tf` format. Use `--mode tf` with two flags as above `--reqinput` and `--policy`. The Genval tool willvalidate the `.tf` resource file with Rego policies. +```shell +./k8s:1.29/ +├── archive +└── extracted-content +``` -To write custom policies, users might require to know the `JSON` representation of the input `.tf` file. In order to get the `JSON` representation of the `.tf` users can use `--showjson` mode and pass the `.tf` file as input to get the JSON representation that could help user write rego policies. +In the above directory tree, the `archive` sub-directiry will contain the raw artifact in `tar.gz` format, and in the `extracted-content` sub-directory `cuemod-k8s:v1.29` directory will contain all the required files for working with `cue` command +following will be the structure of the `extracted-content` sub-directory: -Example: +```shell +./extracted-content +├── cue.mod +└── policy.cue +└── README.md +``` + +User needs to update the `policy.cue` file with relevant Cue definitions and if necessary add mode Cue definition files to this directory. This worksapcew would be now ready to be passed to the `--policy` argument when working with [`cue` command](#validation-and-generation-of-kubernetes-configurations). + +For example: ```shell -genval --mode showjson --reqinput ../templates/inputs/terraform/sec-group.tf -{ - "resource": [ - { - "aws_security_group": { - "allow_tls": { - "description": "Allow TLS inbound traffic", - "egress": [ - { - ... - +$ genval cue --reqinput https://github.com/santoshkal/cuemod-demo/tree/main/k8s \ +--resource Application \ +--policy ./k8s:1.29/extracted-contents/cuemod-k8s:v1.29 ``` -### Validating Kubernetes resource manifest files with CEL policies -Genval enables validating Kubernees manifests using [Common Expression Language — (CEL)](https://github.com/google/cel-spec). To validate different Kubernetes manifest files in `cel` mode. Use `--mode cel` with the same two flags `--reqinput` for passing the input in either **JSON** or **YAML** format and `--policy` to pass the CEL policies in a text file format. -The `./templates/defaultpolicies/cel/cel_policies` contains some sample policies that can be used with `cel` mode. -Example: +### Managing the generated and Validated configuration files + +Genval offers comprehensive management capabilities for the configuration files generated and validated. It allows users to build these files as OCI artifacts and store them in OCI-compliant container registries. Additionally, Genval supports pulling the same configuration files from the registry when needed. + +To bolster supply chain security workflows, Genval enables users to sign the artifacts after storing them in the registry. Similarly, when pulling any artifact, Genval provides functionality to verify the signatures of the artifacts. This feature leverages **Sigstore's Cosign keyless mode** of signing and verifying artifacts. However, users can also utilize their own private and public keys for signing and verifying the artifacts respectively. + +To facilitate authentication with container registries, Genval initially searches for the `./docker/config.json` file in the user's +`$HOME` directory. If this file is found, Genval utilizes it for authentication. However, if the file is not present, +users must set the `ARTIFACT_REGISTRY_USERNAME` and `ARTIFACT_REGISTRY_PASSWORD` environment variables to authenticate with the container registry. + +#### Building, pushing, and signing generated and/or verified config files and OCI artifacts + +The following command demonstrates building and pushing the OCI artifact (genval:test) to GitHub Container Registry (ghcr.io) while signing the artifact with Cosign in Keyless mode: + +```shell +$ ./genval artifact push --reqinput ./templates/defaultpolicies/rego \ +--url --dest ghcr.io/santoshkal/artifacts/genval:test \ +--sign true +``` + +#### Pulling tghe stored artifact from the container registry and verifying the signatures +The following command illustrates pulling an artifact (genval:test) stored in the container registry (ghcr.io), verifying the artifact's signatures, and finally storing the contents of the artifact in the ./output directory: + +```shell +./genval artifact pull --dest ghcr.io/santoshkal/artifacts/genval:test \ +--path ./output \ +--verify true +``` + +Users can also verify artifacts signed with cosign private key and the verify the artifact using the associated cosign public key: ```shell -$ genval --mode cel --reqinput ./templates/inputs/k8s/deployment.json --policy ./templates/defaultpolicies/cel/cel_policies +$ genval artifact pull --dest oci://ghcr.io/santoshkal/artifacts/genval:no-sign \ +--path ./output \ +--verify true \ +--key ./cosign/cosign.pub ``` ### Templates -The `./templates` folder holds some sample files to be used in Genval. the `./templates/inputs` holds JSON input templates for both generating Dockerfiles in `container` mode and Kubernetes manifests in `cue` mode. Similarly, all the sample policies for all the modes are stored in `./templates/defaultpolices` directory. User can use these template files to start with and as they go along they can build upon it and customize these policies to suite their specific use cases. \ No newline at end of file +The `./templates` folder holds some sample files to be used in Genval. the `./templates/inputs` holds JSON input templates for both generating Dockerfiles in `container` mode and Kubernetes manifests in `cue` mode. Similarly, all the sample policies for all the modes are stored in `./templates/defaultpolices` directory. User can use these template files to start with and as they go along they can build upon it and customize these policies to suite their specific use cases. \ No newline at end of file diff --git a/cmd/artifact.go b/cmd/artifact.go new file mode 100644 index 0000000..343a38c --- /dev/null +++ b/cmd/artifact.go @@ -0,0 +1,29 @@ +package cmd + +import ( + "github.com/spf13/cobra" +) + +var artifactCmd = &cobra.Command{ + Use: "artifact", + Short: "Command that manages building, pushing and pulling of OCI artifacts", + Long: ` +artifact command provides capabilities for building and pushing of the OCI complient artifacts built form the +generated/validated config files using Genval. + +Currently, Genval provides artifact build, push, and pull commands. Pull and Push commands provides functionality +to sign and verify the artifacts using the Sigstore cosign tool. + +Authentication is necessary for all commands related to managing artifacts within registries. By default, +the system retrieves credentials from the default keychain located at "~/.docker/config.json". +However, if such a keychain is not available, users can alternatively provide their own credentials using environment variables. +To do so, set the required credentials as environment variables in the following format: + +export ARTIFACT_REGISTRY_USERNAME= +export ARTIFACT_REGISTRY_PASSWORD= +`, +} + +func init() { + rootCmd.AddCommand(artifactCmd) +} diff --git a/cmd/artifact_build.go b/cmd/artifact_build.go new file mode 100644 index 0000000..21e77c0 --- /dev/null +++ b/cmd/artifact_build.go @@ -0,0 +1,80 @@ +package cmd + +import ( + "os" + "path/filepath" + + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" + + "github.com/intelops/genval/pkg/oci" + "github.com/intelops/genval/pkg/utils" +) + +var buildCmd = &cobra.Command{ + Use: "build", + Short: "The artifact build command bundles the provided file/s into a OCI compatible tar gz bundle", + Long: ` +The artifact build command takes in a directory or a set of configuration files generated/validated by Genval +and bundles them into a OCI complient tar.gz bundle ready to be pushed to an OCI complient container registry +`, + Example: ` +# Build the generated/validated set of files in to a OCI bundle + +./genval artifact build --reqinput \ +--output + +#Example: +$ ./genval artifact build --reqinput ./templates/inputs \ + --output ./output/artifact.tar.gz +INFO[0000] ✔ Building artifact from: ./templates/inputs +INFO[0000] ✔ Artifact created successfully at: ./output/artifact.tar.gz +`, + RunE: runBuildCmd, +} + +type buildFlags struct { + reqinput string + output string +} + +var buildArgs buildFlags + +func init() { + buildCmd.Flags().StringVarP(&buildArgs.reqinput, "reqinput", "r", "", "Path to the source files to build artifact from") + if err := buildCmd.MarkFlagRequired("reqinput"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + buildCmd.Flags().StringVarP(&buildArgs.output, "output", "o", ".", "Path for storing the built artifact") + if err := buildCmd.MarkFlagRequired("output"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + + artifactCmd.AddCommand(buildCmd) +} + +func runBuildCmd(cmd *cobra.Command, args []string) error { + inputPath := buildArgs.reqinput + outputPath := buildArgs.output + + if err := utils.CheckPathExists(inputPath); err != nil { + log.Errorf("Error reading %s: %s\n", inputPath, err) + os.Exit(1) + } + + outputDir := filepath.Dir(outputPath) + if err := utils.CheckPathExists(outputDir); err != nil { + log.Errorf("Error reading %s: %s\n", outputPath, err) + os.Exit(1) + } + + log.Printf("✔ Building artifact from: %s\n", inputPath) + + // Create a tarball from the input path + if err := oci.CreateTarball(inputPath, outputPath); err != nil { + log.Errorf("Error creating tarball: %s", err) + return err + } + log.Printf("✔ Artifact created successfully at: %s\n", outputPath) + return nil +} diff --git a/cmd/artifact_pull.go b/cmd/artifact_pull.go new file mode 100644 index 0000000..e2dc99b --- /dev/null +++ b/cmd/artifact_pull.go @@ -0,0 +1,112 @@ +package cmd + +import ( + "context" + "fmt" + "os" + "path/filepath" + + "github.com/fatih/color" + + "github.com/intelops/genval/pkg/oci" + "github.com/intelops/genval/pkg/utils" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" +) + +var pullCmd = &cobra.Command{ + Use: "pull", + Short: "The artifact pull command verifies and pulls the artifact from container registry ", + Long: ` +The artifact pull command pull the artifact stored in the remote container registry. +If --verify flag is set to true (false by default), Genval will verify the artifact's signature +which is signed by Cosign in Keyless mode and pull the artifact, and unpack the tar.gz archive in desired path. + +To facilitate authentication with container registries, Genval initially searches for the "./docker/config.json" +file in the user's $HOME directory. If this file is found, Genval utilizes it for authentication. +However, if the file is not present, users must set the ARTIFACT_REGISTRY_USERNAME and ARTIFACT_REGISTRY_PASSWORD +environment variables to authenticate with the container registry. + + +`, + Example: ` +# Verify the Cosign signature and Pull the artifact in Keyless mode + and unpack the archive in desired path +# https://github.com/sigstore/cosign/blob/main/KEYLESS.md. + +./genval artifact pull --dest oci://ghcr.io/santoshkal/artifacts/genval:test \ +--path ./output \ +--verify true + +# User can also pull the artifact by providing the Cosign generated public-key + and unpack the archive in desired path + +./genval artifact pull --dest oci://ghcr.io/santoshkal/artifacts/genval:no-sign \ +--path ./output \ +--verify true \ +--key ./cosign/cosign.pub + +# Uses can also pull the artifact with verifying the signatures of the artifact + in the container registry and unpack the archive in desired path + +./genval artifact pull --dest oci://ghcr.io/santoshkal/artifacts/genval:test \ +--path ./output +`, + RunE: runPullArtifactCmd, +} + +type pullFlags struct { + path string + dest string + verify bool + cosignKey string +} + +var pullArgs pullFlags + +func init() { + pullCmd.Flags().StringVarP(&pullArgs.path, "path", "p", "", "path for storing the pulled artifact") + pullCmd.Flags().StringVarP(&pullArgs.dest, "dest", "d", "", "destination URL for pulling the artifact from") + pullCmd.Flags().BoolVarP(&pullArgs.verify, "verify", "v", false, "Set signature verification of the artifact using Sigstore cosign") + pullCmd.Flags().StringVarP(&pullArgs.cosignKey, "key", "k", "", "Cosign public key for varifying the artifact") + + artifactCmd.AddCommand(pullCmd) +} + +func runPullArtifactCmd(cmd *cobra.Command, args []string) error { + // ctx := + output := filepath.Dir(pullArgs.path) + if err := utils.CheckPathExists(output); err != nil { + log.Errorf("Error reading %s: %s\n", output, err) + os.Exit(1) + } + + if pullArgs.verify { + spin := utils.StartSpinner("Verifying artifact") + defer spin.Stop() + + verified, err := oci.VerifyArifact(context.Background(), pullArgs.dest, pullArgs.cosignKey) + if err != nil { + color.Red("Artifact verification failed: %s", err) + os.Exit(1) + } + + if verified { + fmt.Printf("Artifact %s verified successfully", pullArgs.dest) + } else { + color.Red("Artifact verification failed.") + } + + spin.Stop() + } + spin := utils.StartSpinner("Pulling Artifact...") + defer spin.Stop() + + if err := oci.PullArtifact(context.Background(), pullArgs.dest, pullArgs.path); err != nil { + color.Red("Error pulling artifact from remote : %v", err) + return err + } + spin.Stop() + color.Green("Artifact from %s pulled and stored in :%s", pullArgs.dest, pullArgs.path) + return nil +} diff --git a/cmd/artifact_push.go b/cmd/artifact_push.go new file mode 100644 index 0000000..e0d9e4d --- /dev/null +++ b/cmd/artifact_push.go @@ -0,0 +1,171 @@ +package cmd + +import ( + "fmt" + "os" + "path/filepath" + "time" + + "github.com/google/go-containerregistry/pkg/authn" + "github.com/google/go-containerregistry/pkg/compression" + "github.com/google/go-containerregistry/pkg/crane" + "github.com/google/go-containerregistry/pkg/name" + v1 "github.com/google/go-containerregistry/pkg/v1" + "github.com/google/go-containerregistry/pkg/v1/empty" + "github.com/google/go-containerregistry/pkg/v1/mutate" + "github.com/google/go-containerregistry/pkg/v1/tarball" + "github.com/google/go-containerregistry/pkg/v1/types" + "github.com/intelops/genval/pkg/oci" + "github.com/intelops/genval/pkg/utils" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" +) + +var pushCmd = &cobra.Command{ + Use: "push", + Short: "The artifact push command builds an arifact bundle and pushes it to an OCI complient container registry", + Long: ` +The artifact push command takes in a tar.gz bundle of configuration files generated/validated by Genval +and pushes them into a OCI complient container registry + +To facilitate authentication with container registries, Genval initially searches for the "./docker/config.json" +file in the user's $HOME directory. If this file is found, Genval utilizes it for authentication. +However, if the file is not present, users must set the ARTIFACT_REGISTRY_USERNAME and ARTIFACT_REGISTRY_PASSWORD +environment variables to authenticate with the container registry. +`, + Example: ` +# Build and push the provided file/files as OCI artifact to registry + +# Genval provides functionality to sign the artifact using Sigstore cosign tool. +# To sign the artifact set the --sign flag to true (false by default) +# Through this workflow, user needs to open th redirectoin link and authorize with OIDC token + +./genval artifact push --reqinput ./templates/defaultpolicies/rego \ +--url --dest oci://ghcr.io/santoshkal/artifacts/genval:test \ +--sign true + +# TODO: Add functionality for signing with Cosign genrated pvt key + +# User can pass additional annotations in pair while pushing the artifact + +./genval artifact push --reqinput ./templates/defaultpolicies/rego \ +--url --dest oci://ghcr.io/santoshkal/artifacts/genval:test \ +--annotations foo=bar + +`, + RunE: runPushCmd, +} + +type pushFlags struct { + reqinput string + dest string + annotations []string + sign bool +} + +var pushArgs pushFlags + +func init() { + pushCmd.Flags().StringVarP(&pushArgs.reqinput, "reqinput", "r", "", "path to the source files to push") + if err := pushCmd.MarkFlagRequired("reqinput"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + pushCmd.Flags().StringVarP(&pushArgs.dest, "dest", "d", ".", "Source URl for the registry") + if err := pushCmd.MarkFlagRequired("dest"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + pushCmd.Flags().StringArrayVarP(&pushArgs.annotations, "annotations", "a", nil, "Set custom annotation in = format") + pushCmd.Flags().BoolVarP(&pushArgs.sign, "sign", "s", false, "If set to true, signs the artifact with cosign in keyless mode") + artifactCmd.AddCommand(pushCmd) +} + +func runPushCmd(cmd *cobra.Command, args []string) error { + if pushArgs.reqinput == "" || pushArgs.dest == "" { + log.Printf("Required args mising") + } + + inputPath := pushArgs.reqinput + source := pushArgs.dest + + if err := utils.CheckPathExists(inputPath); err != nil { + log.Errorf("Error reading %s: %v\n", inputPath, err) + os.Exit(1) + } + + tempDir, err := os.MkdirTemp("", "artifacts") + if err != nil { + log.Printf("Error creating Temp dir: %v", err) + } + defer os.RemoveAll(tempDir) + + outputPath := filepath.Join(tempDir, "artifact.tar.gz") + + log.Printf("Building artifact from: %v", inputPath) + + // Create a tarball from the input path + if err := oci.CreateTarball(inputPath, outputPath); err != nil { + return fmt.Errorf("creating tarball: %w", err) + } + log.Println("✔ Artifact created successfully") + + ref, err := name.ParseReference(source) + if err != nil { + log.Printf("Error parsing source: %v", err) + } + remoteURL, err := oci.GetGitRemoteURL() + if err != nil { + return err + } + annotations, err := oci.ParseAnnotations(pushArgs.annotations) + if err != nil { + return err + } + + img := mutate.MediaType(empty.Image, types.OCIManifestSchema1) + img = mutate.ConfigMediaType(img, oci.ConfigMediaType) + img = mutate.Annotations(img, annotations).(v1.Image) + + layer, err := tarball.LayerFromFile(outputPath, + tarball.WithMediaType(oci.ContentMediaType), + tarball.WithCompression(compression.GZip), + tarball.WithCompressedCaching) + if err != nil { + log.Errorf("Creating content layer failed: %v", err) + } + img, err = mutate.Append(img, mutate.Addendum{ + Layer: layer, + Annotations: map[string]string{ + oci.ContentTypeAnnotation: "genval/bundle", + oci.CreatedAnnotation: time.Now().UTC().Format(time.RFC3339), + oci.SourceAnnotation: remoteURL, + }, + }) + if err != nil { + log.Errorf("appending content to artifact failed: %v", err) + } + spin := utils.StartSpinner("pushing artifact") + defer spin.Stop() + opts := crane.WithAuthFromKeychain((authn.DefaultKeychain)) + + if err := crane.Push(img, ref.String(), opts); err != nil { + log.Fatalf("Error pushing artifact: %v", err) + } + spin.Stop() + digest, err := img.Digest() + if err != nil { + log.Errorf("parsing artifact digest failed: %s", err) + } + + digestURL := ref.Context().Digest(digest.String()).String() + + if pushArgs.sign { + err := oci.SignCosign(digestURL) + if err != nil { + return err + } + } + + log.Printf("✔ Artifact pushed successfully to: %v\n, with Digest: %v\n", source, digest) + log.Printf("Digest URL: %v\n", digestURL) + return nil +} diff --git a/cmd/cel_infrafile.go b/cmd/cel_infrafile.go new file mode 100644 index 0000000..40adb57 --- /dev/null +++ b/cmd/cel_infrafile.go @@ -0,0 +1,91 @@ +package cmd + +import ( + "encoding/json" + "os" + + "github.com/intelops/genval/pkg/parser" + "github.com/intelops/genval/pkg/validate" + "github.com/jedib0t/go-pretty/v6/table" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" +) + +type celFlags struct { + reqinput string + policy string +} + +var celArgs celFlags + +func init() { + celCmd.Flags().StringVarP(&celArgs.reqinput, "reqinput", "r", "", "Input JSON/YAML for validating Kubernetes configurations with CEL") + if err := celCmd.MarkFlagRequired("reqinput"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + celCmd.Flags().StringVarP(&celArgs.policy, "policy", "p", "", "Path for the CEL policy file, polciy can be passed from either Local or from remote URL") + if err := celCmd.MarkFlagRequired("policy"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + celvalCmd.AddCommand(celCmd) +} + +var celCmd = &cobra.Command{ + Use: "infrafile", + Short: "Validate Kubernetes and related manifests using Common Expression Language (CEL) policies", + Long: `A user need to pass the Kubernetes manifest in YAML/JSON format as reqinput and a set of CEL policies +as a policy file for validation. + +The required input file in YAML/JSON format or CEL policy file can be supplied either through a local file path +or from remote URL's such as those hosted on GitHub (e.g., https://github.com) + `, + Example: ` +# Validate Kubernetes manifest with Common Expression Language (CEL) policies +# Passing the required files from local + + ./genval celval infrafile --reqinput=input.json \ + --policy= + +# Provide the required files from remote URL's + +./genval celval infrafile --reqinput https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/input-templates/k8s/deployment.json \ +--policy https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/default-policies/cel/k8s_cel + +# We need to authenticate with GitHub if we intend to pass the required file stired in the GitHub repo +export GITHUB_TOKEN= + +./genval celval infrafile --reqinput https://github.com/intelops/genval-security-policies/blob/patch-1/input-templates/k8s/deployment.json \ +--policy https://github.com/intelops/genval-security-policies/blob/patch-1/default-policies/cel/k8s_cel + `, + + RunE: runCelCmd, +} + +func runCelCmd(cmd *cobra.Command, args []string) error { + inputFile := celArgs.reqinput + policy := celArgs.policy + + var data interface{} + err := parser.ParseDockerfileInput(string(inputFile), &data) + if err != nil { + log.Fatalf("Unable to process input: %v", err) + } + data = parser.ConvertToJSON(data) + + jsonManifest, err := json.Marshal(data) + if err != nil { + log.Fatalf("Error marshaling manifest data to JSON: %v", err) + } + + t := table.NewWriter() + t.SetOutputMirror(os.Stdout) + t.AppendHeader(table.Row{"Policy Name", "Result"}) + + err = validate.EvaluateCELPolicies(policy, string(jsonManifest), t) + if err != nil { + log.Fatalf("Error evaluating policies: %v", err) + } + + t.Render() + return nil +} diff --git a/cmd/celval.go b/cmd/celval.go new file mode 100644 index 0000000..66a43b6 --- /dev/null +++ b/cmd/celval.go @@ -0,0 +1,19 @@ +package cmd + +import ( + "github.com/spf13/cobra" +) + +var celvalCmd = &cobra.Command{ + Use: "celval", + Short: "celval commands manages to validation of Kubernetes and related manifests using Common Expression Language (CEL) policies", + Long: ` +celval command provides capabilities for validating configuration files for Kubernetes and related technolgies, +Terraform files, and Dockerfiles using Common Expression Language (CEL) policies. + +`, +} + +func init() { + rootCmd.AddCommand(celvalCmd) +} diff --git a/cmd/celval_dockerfileval.go b/cmd/celval_dockerfileval.go new file mode 100644 index 0000000..13a8c0e --- /dev/null +++ b/cmd/celval_dockerfileval.go @@ -0,0 +1,90 @@ +package cmd + +import ( + "encoding/json" + "os" + + "github.com/intelops/genval/pkg/parser" + "github.com/intelops/genval/pkg/utils" + "github.com/intelops/genval/pkg/validate" + "github.com/jedib0t/go-pretty/v6/table" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" +) + +type celDockerfileValFlags struct { + reqinput string + policy string +} + +var celDockerfileValArgs celDockerfileValFlags + +func init() { + celDockerfileValCmd.Flags().StringVarP(&celDockerfileValArgs.reqinput, "reqinput", "r", "", "Input JSON for validating Terraform .dockerfileval files with rego") + if err := celDockerfileValCmd.MarkFlagRequired("reqinput"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + celDockerfileValCmd.Flags().StringVarP(&celDockerfileValArgs.policy, "policy", "p", "", "Path for the Rego policy file, polciy can be passed from either Local or from remote URL") + if err := celDockerfileValCmd.MarkFlagRequired("policy"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + + celvalCmd.AddCommand(celDockerfileValCmd) +} + +var celDockerfileValCmd = &cobra.Command{ + Use: "dockerfileval", + Short: "Validate Dockerfile with Common Expression Languiage (CEL) policies", + Long: `Using celval dockerfileval, a user can validate Dockerfilefiles. Provide a Dockerfile thet needs to be validated +to the --reqinput arg and a set of CEL policies in the --policy arg. + +The required input Dockerfile and CEL policy files can be either be passed through local file paths or remote URLs, +such as those hosted on GitHub (e.g., https://github.com) +`, + Example: ` +# Validate Dockerfile with CEL policies by providing the required args from local file system + +./genval celval dockerfileval --reqinput=input.json \ +--policy=<'path/to/CEL policy file> + +# Provide the required files from remote URL's + +./genval celval dockerfileval --reqinput https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/Dockerfilefile-sample \ +--policy #TODO: + +# We need to authenticate with GitHub if we intend to pass the required file stired in the GitHub repo +export GITHUB_TOKEN= + +./genval celval dockerfileval --reqinput https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/Dockerfilefile-sample \ +--policy #TODO: + `, + RunE: runCelDockerfileValCmd, +} + +func runCelDockerfileValCmd(cmd *cobra.Command, args []string) error { + input := celDockerfileValArgs.reqinput + policy := celDockerfileValArgs.policy + + dockerfileContent, err := utils.ReadFile(input) + if err != nil { + log.Errorf("Error reading Dockerfile: %v, validation failed: %s\n", input, err) + } + + dockerInst := parser.ParseDockerfileContent(string(dockerfileContent)) + dockerfileJSON, err := json.Marshal(dockerInst) + if err != nil { + log.Errorf("Error marshaling Dockerfile: %v", err) + return err + } + t := table.NewWriter() + t.SetOutputMirror(os.Stdout) + t.AppendHeader(table.Row{"Policy Name", "Result"}) + // fmt.Printf("DOCLEREFILE JSON: %v\n", string(dockerfileJSON)) + err = validate.EvaluateCELPolicies(policy, string(dockerfileJSON), t) + if err != nil { + log.Fatalf("Error evaluating policies: %v", err) + } + + t.Render() + return nil +} diff --git a/cmd/celval_terraform.go b/cmd/celval_terraform.go new file mode 100644 index 0000000..da1cace --- /dev/null +++ b/cmd/celval_terraform.go @@ -0,0 +1,80 @@ +package cmd + +import ( + "os" + + "github.com/intelops/genval/pkg/parser" + "github.com/intelops/genval/pkg/validate" + "github.com/jedib0t/go-pretty/v6/table" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" +) + +type celTerraformvalFlags struct { + reqinput string + policy string +} + +var celTerraformValArgs celTerraformvalFlags + +func init() { + celTerraformvalCmd.Flags().StringVarP(&celTerraformValArgs.reqinput, "reqinput", "r", "", "Input JSON for validating Terraform .dockerfileval files with rego") + if err := celTerraformvalCmd.MarkFlagRequired("reqinput"); err != nil { + log.Fatalf("Error marking flag as required terraform: %v", err) + } + celTerraformvalCmd.Flags().StringVarP(&celTerraformValArgs.policy, "policy", "p", "", "Path for the Rego policy file, polciy can be passed from either Local or from remote URL") + if err := celTerraformvalCmd.MarkFlagRequired("policy"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + + celvalCmd.AddCommand(celTerraformvalCmd) +} + +var celTerraformvalCmd = &cobra.Command{ + Use: "terraform", + Short: "Validate Terraform .tf files with Common Expression Languiage (CEL) policies", + Long: `Using celval terraform command, a user can validate Terraform .tf files. Provide a .tf Terraform file thet needs to be validated +to the --reqinput arg and a set of CEL policies in the --policy arg. + +The required input for Terraform files and CEL policy files can be either be passed through local file paths or remote URLs, +such as those hosted on GitHub (e.g., https://github.com) +`, + Example: ` +# Validate Terraform files with CEL policies by providing the required args from local file system + +./genval celval terraform --reqinput ./templates/inputs/terraform/sec_group.tf \ +--policy=--policy ./templates/defaultpolicies/cel/terraform_cel + +# Provide the required files from remote URL's +./genval celval terraform celval terraform --reqinput https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/input-templates/terraform/sec_group.tf \ +--policy https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/default-policies/cel/terraform_cel + +# We need to authenticate with GitHub if we intend to pass the required file stired in the GitHub repo +export GITHUB_TOKEN= + +./genval celval terraform --reqinput https://github.com/intelops/genval-security-policies/blob/patch-1/input-templates/terraform/sec_group.tf \ +--policy https://github.com/intelops/genval-security-policies/blob/patch-1/default-policies/cel/terraform_cel + `, + RunE: runCelTerraformvalCmd, +} + +func runCelTerraformvalCmd(cmd *cobra.Command, args []string) error { + inputFile := celTerraformValArgs.reqinput + policy := celTerraformValArgs.policy + inputJSON, err := parser.ConvertTFtoJSON(inputFile) + if err != nil { + log.Errorf("Error converting tf file: %v", err) + } + + t := table.NewWriter() + t.SetOutputMirror(os.Stdout) + t.AppendHeader(table.Row{"Policy Name", "Result"}) + + err = validate.EvaluateCELPolicies(policy, string(inputJSON), t) + if err != nil { + log.Fatalf("Error evaluating policies: %v", err) + } + + t.Render() + return nil +} diff --git a/cmd/container.go b/cmd/container.go new file mode 100644 index 0000000..e9a6417 --- /dev/null +++ b/cmd/container.go @@ -0,0 +1,125 @@ +package cmd + +import ( + "fmt" + "os" + + generate "github.com/intelops/genval/pkg/generate/dockerfile_gen" + "github.com/intelops/genval/pkg/parser" + "github.com/intelops/genval/pkg/utils" + "github.com/intelops/genval/pkg/validate" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" +) + +type dockerfileFlags struct { + reqinput string + output string + inputPolicy string + outputPolicy string +} + +var dockerfileArgs dockerfileFlags + +func init() { + dockerfileCmd.Flags().StringVarP(&dockerfileArgs.reqinput, "reqinput", "r", "", "Input JSON for generating Dockerfile") + if err := dockerfileCmd.MarkFlagRequired("reqinput"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + dockerfileCmd.Flags().StringVarP(&dockerfileArgs.output, "output", "p", "", "Path to write the Generated Dockefile") + if err := dockerfileCmd.MarkFlagRequired("output"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + dockerfileCmd.Flags().StringVarP(&dockerfileArgs.inputPolicy, "inputpolicy", "i", "", "Path for the Input policyin Rego, input-policy can be passed from either Local or from remote URL") + if err := dockerfileCmd.MarkFlagRequired("inputpolicy"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + dockerfileCmd.Flags().StringVarP(&dockerfileArgs.outputPolicy, "outputpolicy", "o", "", "Path for Out policy in Rego, Output-policy can be passed from either Local or from remote URL") + if err := dockerfileCmd.MarkFlagRequired("outputpolicy"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + rootCmd.AddCommand(dockerfileCmd) +} + +var dockerfileCmd = &cobra.Command{ + Use: "dockerfile", + Short: "Generate and Validate Dockerfile", + Long: ` +A user can pass in a JSON file to genval, the passed input will be first evaluated based on input policies, +once input is validated, a Dockerfile will be generated and the generated Dockerfile will be further validated using +the output policies. + +Provides flexibility of supplying input files in YAML or JSON formats, as well as policy files for input and output policies. +Genval supports both local file paths or remote URLs, such as those hosted on GitHub (e.g., https://github.com) +`, + Example: ` +# Generating and validating Dockerfile with local files +./genval dockerfile --reqinput=input.json \ +--output=output.Dockerfile \ +--inputpolicy= \ +--outputpolicy= + +# Generating and validating Dockewrfile by passing input template and security policies from remote URL's +# like for example https://github.com + +./genval dockerfile --reqinput https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/input-templates/dockerfile_input/clang_input.json \ +--output ./output/Dockerfile-cobra \ +--inputpolicy https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/default-policies/rego/inputfile_policies.rego \ +--outputpolicy https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/default-policies/rego/dockerfile_policies.rego + +# For authenticating with GitHub.com, set the env variable GITHUB_TOKEN +# export GITHUB_TOKEN= + +./genval dockerfile --reqinput https://github.com/intelops/genval-security-policies/blob/patch-1/input-templates/dockerfile_input/clang_input.json \ +--output ./output/Dockefile-cobra \ +--inputpolicy https://github.com/intelops/genval-security-policies/blob/patch-1/default-policies/rego/inputfile_policies.rego \ +--outputpolicy https://github.com/intelops/genval-security-policies/blob/patch-1/default-policies/rego/dockerfile_policies.rego + `, + RunE: rundockerfileCmd, +} + +func rundockerfileCmd(cmd *cobra.Command, args []string) error { + inputPath := dockerfileArgs.reqinput + outputPath := dockerfileArgs.output + inputPolicyFile := dockerfileArgs.inputPolicy + outputPolicyFile := dockerfileArgs.outputPolicy + + // Use ParseInputFile to read and unmarshal the input file + var data generate.DockerfileContent + + err := parser.ParseDockerfileInput(inputPath, &data) + if err != nil { + log.Error("Error parsing Dockerfile input:", err) + return err + } + + inputContent, err := utils.ReadFile(inputPath) + if err != nil { + log.Fatalf("Unable to read input: %v", err) + } + + // Validate the YAML using OPA + err = validate.ValidateInput(string(inputContent), inputPolicyFile) + if err != nil { + log.Fatalf("Validation error: %v", err) + return err + } + + dockerfileContent := generate.GenerateDockerfileContent(&data) + + outputData := []byte(dockerfileContent) + err = os.WriteFile(outputPath, outputData, 0o644) + if err != nil { + log.Error("Error writing Dockerfile:", err) + return err + } + fmt.Printf("Generated Dockerfile saved to: %s\n", outputPath) + + err = validate.ValidateDockerfile(string(outputData), outputPolicyFile) + if err != nil { + log.Error("Dockerfile validation failed:", err) + } else { + fmt.Printf("Dockerfile validation succeeded!\n") + } + return nil +} diff --git a/cmd/cue.go b/cmd/cue.go new file mode 100644 index 0000000..9a99e62 --- /dev/null +++ b/cmd/cue.go @@ -0,0 +1,174 @@ +package cmd + +import ( + "fmt" + "os" + "path/filepath" + "strings" + + log "github.com/sirupsen/logrus" + + "cuelang.org/go/cue" + "cuelang.org/go/cue/cuecontext" + "cuelang.org/go/cue/load" + "github.com/fatih/color" + "github.com/intelops/genval/pkg/cuecore" + "github.com/intelops/genval/pkg/parser" + "github.com/intelops/genval/pkg/utils" + "github.com/spf13/cobra" +) + +var cueCmd = &cobra.Command{ + Use: "cue", + Short: "The cue command validates and generates Kubernetes manifests", + Long: ` +The Cue command enables the validation and generation of Kubernetes and related manifests. +Developers can provide an input manifest in either JSON or YAML format. This input is then validated +against a predefined set of Cue definitions (policies) tailored for the specific manifest. These policies +may include defaults and constraints set on spefic fields of the manifest, offering a way to enforce +secure configurations following induestry best-practices. Developers can target these policies +by providing a top-level label to the --resource flag via the command-line interface. + +Upon successful validation, the entire set of Kubernetes manifests is generated and written to the "./output" directory +within the current working directory. + +`, + Example: ` +Usecase - 1 +# A developer may provide a bare-minimum set of requireents for a Deployment and a Service for a Kubernetes resource as a directory. +The Security/DevOps team would prepare a policy written in Cuelang with all the type checking against the upstream Kubernetes API, +and the mandatory defaults for the Deployment and a Service. Genval will validate the input provided by the developer against +the policy/policies and generate the complete set of manifests in the ./output directory. + +# Demo files are stored in https://github.com/santoshkal/cuemod-demo + +./genval cue --source ./k8s \ +--resource Application +--policy ./policy + +./genval cue --source https://github.com/santoshkal/cuemod-demo/tree/main/k8s \ +--resource Application \ +--policy ./policy +`, + RunE: runCueCmd, +} + +type cueFlags struct { + source string + resource string + policy string +} + +var cueArgs cueFlags + +func init() { + cueCmd.Flags().StringVarP(&cueArgs.source, "source", "s", "", "Input file in JSON/YAML format for generating/validating manifests") + cueCmd.Flags().StringVarP(&cueArgs.resource, "resource", "r", "", "A top-level label used to define the Cue Definition") + cueCmd.Flags().StringVarP(&cueArgs.policy, "policy", "p", "", "a directory containing cue.mod and cue definitions") + + rootCmd.AddCommand(cueCmd) +} + +func runCueCmd(cmd *cobra.Command, args []string) error { + dataPath := cueArgs.source + defPath := cueArgs.resource + schemaFile := cueArgs.policy + + td, cleanup, err := utils.TempDirWithCleanup() + if err != nil { + log.Fatal(err) + } + defer cleanup() + defer func() { + if err := utils.CleanupDownloadedDir(); err != nil { + log.Printf("Error removing cue_downloads directory: %v", err) + } + }() + + ctx := cuecontext.New() + + definitions, err := cuecore.GetDefinitions(schemaFile) + if err != nil { + log.Fatalf("Error reading Cue Definitions: %v", err) + } + modPath, err := cuecore.ExtractModule(schemaFile) + if err != nil { + log.Errorf("Error fetching module: %v", err) + } + + dataSet, err := cuecore.ReadAndCompileData(dataPath) + if err != nil { + log.Errorf("Error processing data: %v", err) + return err + } + + overlay, err := cuecore.GenerateOverlay(schemaFile, td, definitions) + if err != nil { + log.Fatal(err) + } + + conf := &load.Config{ + Dir: td, + Overlay: overlay, + Module: modPath, + Package: "*", + } + + defName := "#" + defPath + + v, err := cuecore.BuildInstance(ctx, definitions, conf) + if err != nil { + log.Fatal(err) + } + + // Name of the output directory + outputDir := "output" + + // Check if the output directory exists, if not create it + if _, err := os.Stat(outputDir); os.IsNotExist(err) { + err := os.Mkdir(outputDir, 0o755) + if err != nil { + log.Fatalf("Error creating output directory: %v", err) + } + } + var outputFiles []string + for filePath, data := range dataSet { + for _, value := range v { + lookUp := cue.ParsePath(defName) + def := value.LookupPath(lookUp) + if def.Err() != nil { + log.Errorf("Error parsing Path: %v", def.Err()) + return err + } + + unifiedValue, err := cuecore.UnifyAndValidate(def, data) + if err != nil { + log.Errorf("Validation failed: %v", err) + return err + } + + yamlData, err := parser.CueToYAML(unifiedValue) + if err != nil { + log.Errorf("Error Marshaling: %v", err) + return err + } + + baseName := filepath.Base(filePath) + outputFileName := strings.TrimSuffix(baseName, filepath.Ext(baseName)) + ".yaml" + fullOutputPath := filepath.Join(outputDir, outputFileName) + + err = os.WriteFile(fullOutputPath, yamlData, 0o644) + if err != nil { + log.Errorf("Writing YAML: %v", err) + return err + } + outputFiles = append(outputFiles, fullOutputPath) + + } + } + color.Green("%v validation succeeded, generated manifests in '%v' directory:\n", defPath, outputDir) + for _, fileName := range outputFiles { + fmt.Printf(" - %v\n", fileName) + } + return nil +} diff --git a/cmd/cuemod.go b/cmd/cuemod.go new file mode 100644 index 0000000..978c6af --- /dev/null +++ b/cmd/cuemod.go @@ -0,0 +1,14 @@ +package cmd + +import ( + "github.com/spf13/cobra" +) + +var cuemodCmd = &cobra.Command{ + Use: "cuemod", + Short: "cuemod commands manages workspace for interacting with Cue valoidation and generation", +} + +func init() { + rootCmd.AddCommand(cuemodCmd) +} diff --git a/cmd/cuemod_init.go b/cmd/cuemod_init.go new file mode 100644 index 0000000..a52dc9b --- /dev/null +++ b/cmd/cuemod_init.go @@ -0,0 +1,107 @@ +package cmd + +import ( + "bufio" + "context" + "errors" + "fmt" + "os" + + "github.com/intelops/genval/pkg/cuecore" + "github.com/intelops/genval/pkg/oci" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" +) + +var initCmd = &cobra.Command{ + Use: "init", + Short: "Init command initializes the workspace for cue command execution", + Long: ` +The init comand is used to initialize the workspace to work with the cue command, It creates all the +required files and directories in the workspace and makes it ready for writing Cue policies and then finally applying them. + +To facilitate authentication with container registries, Genval initially searches for the "./docker/config.json" +file in the user's $HOME directory. If this file is found, Genval utilizes it for authentication. +However, if the file is not present, users must set the ARTIFACT_REGISTRY_USERNAME and ARTIFACT_REGISTRY_PASSWORD +environment variables to authenticate with the container registry. + +`, + Example: ` + # Users can initialize the Cue workspace with the following commands to write policies for Kubernetes manifests + + ./genval cuemod init --tool=k8s + + The above command will create all the required files and directories in the workspace for users to write the policies +for validating and generating the Kubernetes resources. + +# Similarly available flags for cuemod init are: +--tool=k8s:1.29 +--tool=argocd:2.10.4 +--tool=tektoncd0.58.0 +--too=crosplane:1.15.0 +--tool=clusterapi: +`, + RunE: runInitCmd, +} + +type initFlags struct { + tool string + key string +} + +var initArgs initFlags + +func init() { + initCmd.Flags().StringVarP(&initArgs.tool, "tool", "t", "", "relevant tool for which the cue workspace should be created") + initCmd.Flags().StringVarP(&initArgs.key, "key", "k", "", "Cosign public key for verification of artifact signature") + + cuemodCmd.AddCommand(initCmd) +} + +func runInitCmd(cmd *cobra.Command, args []string) error { + if initArgs.tool == "" { + return errors.New("atleast one tool needs to be provided to initialize") + } + desiredTool, ociURL, err := cuecore.ParseTools(initArgs.tool) + if err != nil { + log.Errorf("Error prsing provided tool %s: %v", initArgs.tool, err) + } + // key := "" + verified, err := oci.VerifyArifact(context.Background(), ociURL, initArgs.key) + log.Printf("Verified artifact: %v", verified) + if err != nil { + return fmt.Errorf("error varifying artifact: %v", err) + } + if !verified { + fmt.Println("The artifact is not verified.") + fmt.Println("Would you like to proceed? If yes, press 'y', else press 'n'.") + + reader := bufio.NewReader(os.Stdin) + input, err := reader.ReadString('\n') + if err != nil { + return fmt.Errorf("error reading input: %s", err) + } + + input = trimNewline(input) + if input == "y" { + fmt.Println("Proceeding...") + + if err := oci.CreateWorkspace(initArgs.tool, desiredTool, ociURL); err != nil { + log.Errorf("Error creating workspace: %v", err) + } + log.Infof("Workspace verified and created") + } else if input == "n" { + fmt.Println("Operation cancelled.") + // Place your code here for what should happen if the user chooses not to proceed + } else { + fmt.Println("Invalid input. Please enter 'y' or 'n'.") + } + } else if err := oci.CreateWorkspace(initArgs.tool, desiredTool, ociURL); err != nil { + log.Errorf("Error creating workspace: %v", err) + } + return nil +} + +func trimNewline(s string) string { + return s[:len(s)-1] +} diff --git a/cmd/example.md b/cmd/example.md index 851c862..372660e 100644 --- a/cmd/example.md +++ b/cmd/example.md @@ -62,7 +62,7 @@ In this example, we map the #Deployment definition to the apps.#Deployment objec $ genval --mode cue --reqinput ./templates/inputs/cue/deploy.json \ # input to be validated --resource Deployment # a Kind of resource we are trying to validate and generate, needs a valid Kind --policy ./templates/defaultpolicies/cue/deployment.cue # Our Cue schema/policy for Deployment - --policy ./templates/defaultpolicies/cue/metadata.cue # We can pass multiple policies/schemas referring them in the main policy `deployment.cue`. + --policy ./templates/defaultpolicies/cue/metadata.cue # We can pass multiple policies/schemas referring them in the main policy `deployment.cue`. ``` - `--reqinput`: Specifies the input to be validated. The `reqinput` accepts a single Cue Definition or a directory containing multiple Definitions. - `--resource`: Defines the Kubernetes resource kind to validate and generate. It must correspond to a valid Kind. diff --git a/cmd/main.go b/cmd/main.go deleted file mode 100644 index 191e682..0000000 --- a/cmd/main.go +++ /dev/null @@ -1,126 +0,0 @@ -package main - -import ( - "flag" - "fmt" - "os" - "strings" - - "github.com/fatih/color" - "github.com/intelops/genval/cmd/modes" -) - -var mode, resource, reqinput, output, inputpolicy, outputpolicy string -var verify bool -var policies multiValueFlag - -func init() { - flag.StringVar(&mode, "mode", "", "Specify mode: 'container' for Dockerfile validation/generation or 'cue' for K8s resource validation/generation") - flag.StringVar(&resource, "resource", "", "A top-level label used to define the Cue Definition in cue mode") - flag.StringVar(&reqinput, "reqinput", "", "Input file in JSON/YAML format for validating in different modes") - flag.StringVar(&output, "output", "", "Output path for Dockerfile for in container mode") - flag.Var(&policies, "policy", "Validation policies, .cue, .rego or CEL policy files to be used in respective mode.") - flag.StringVar(&inputpolicy, "inputpolicy", "", "Rego policy to validate JSON input in container mode") - flag.StringVar(&outputpolicy, "outputpolicy", "", "Rego policy to validate generated Dockerfile in container mode") - flag.BoolVar(&verify, "verify", false, "Flag to perform validation and skip generation of final manifest") - flag.Usage = func() { - helpText := ` -Usage of genval: - -Modes: -%s - - container: Dockerfile validation and generation. - Arguments: - Example usage: - ./genval --mode=container --reqinput=input.json \ - --output=output.Dockerfile \ - --inputpolicy= \ - --outputpolicy= - -%s - - cue: K8s resource validation and generation. - Arguments: - Example usage: - ./genval --mode=cue --resource=Deployment \ - --reqinput=deployment.json \ - --policy= - Note: The "resource" arg in "cue" mode needs a valid Kind, like "Deployment", "StatefulSet", "DaemonSet", etc. - -%s - - k8s: K8s resource validation with Rego policies. - Arguments: - Example usage: - ./genval --mode=k8s --reqinput=deployment.json --policy= - -%s - - tf: Terraform resource validation with Rego policies. - Arguments: - Example usage: - ./genval --mode=tf --reqinput=deployment.json --policy= - -%s - - cel: Validating Kubernetes manifests with CEL. - Arguments: - Example usage: - ./genval --mode=cel --reqinput=deployment.json --policy= - -%s - - showjson: Helper mode to print the JSON representation of input. - Arguments: - Example usage: - ./genval --mode=showjson --reqinput=Dockerfle - -` - - modeHeading := color.New(color.FgGreen, color.Bold).SprintfFunc() - fmt.Fprintf(os.Stderr, helpText, modeHeading("Container Mode:"), modeHeading("Cue Mode:"), - modeHeading("K8s Mode:"), modeHeading("Terraform Mode:"), modeHeading("CEL Mode:"), - modeHeading("ShowJSON Mode:")) - flagsHeader := color.New(color.FgYellow, color.Bold).Sprint("Available flags:") - fmt.Fprintf(os.Stderr, "\n%s\n\n", flagsHeader) - - flag.PrintDefaults() - } -} - -func main() { - flag.Parse() - - // Pass arguments after the mode flag - - switch mode { - case "container": - // Call the Docker mode's execution function - modes.ExecuteContainer(reqinput, output, inputpolicy, outputpolicy) - case "cue": - // Call the Cue mode's execution function - modes.ExecuteCue(reqinput, resource, verify, policies...) - case "k8s": - // Call the K8s with rego mode's execution function - modes.ExecuteK8s(reqinput, policies...) - case "tf": - // Call the Tf with rego mode's execution function - modes.ExecuteTf(reqinput, policies...) - case "showjson": - // Call the showjson mode for prining the JSON representation of reqinput files - modes.ExecuteShowJSON(reqinput) - case "cel": - // Call cel mode for validating Kubernetes manifests with CEL - modes.ExecuteCEL(reqinput, policies...) - default: - fmt.Println("Invalid mode. Choose 'container', 'cue', 'k8s' or 'tf'.") - flag.Usage() - } -} - -// Implement flag.Value for a slice of strings -type multiValueFlag []string - -func (m *multiValueFlag) String() string { - return strings.Join(*m, ", ") -} - -func (m *multiValueFlag) Set(value string) error { - *m = append(*m, value) - return nil -} diff --git a/cmd/modes/cel.go b/cmd/modes/cel.go deleted file mode 100644 index 8826bcc..0000000 --- a/cmd/modes/cel.go +++ /dev/null @@ -1,42 +0,0 @@ -package modes - -import ( - "encoding/json" - "os" - - "github.com/intelops/genval/pkg/parser" - "github.com/intelops/genval/pkg/validate" - "github.com/jedib0t/go-pretty/v6/table" - log "github.com/sirupsen/logrus" -) - -func ExecuteCEL(reqinput string, policies ...string) { - - inputFile := reqinput - policyFile := policies - - var data interface{} - // TODO: Change func name - err := parser.ParseDockerfileInput(string(inputFile), &data) - if err != nil { - log.Fatalf("Unable to process input: %v", err) - } - data = parser.ConvertToJSON(data) - - jsonManifest, err := json.Marshal(data) - if err != nil { - log.Fatalf("Error marshaling manifest data to JSON: %v", err) - } - - t := table.NewWriter() - t.SetOutputMirror(os.Stdout) - t.AppendHeader(table.Row{"Policy Name", "Result"}) - - for _, policy := range policyFile { - err := validate.EvaluateCELPolicies(policy, string(jsonManifest), t) - if err != nil { - log.Fatalf("Error evaluating policies: %v", err) - } - } - t.Render() -} diff --git a/cmd/modes/container.go b/cmd/modes/container.go deleted file mode 100644 index 641a9ea..0000000 --- a/cmd/modes/container.go +++ /dev/null @@ -1,72 +0,0 @@ -package modes - -import ( - "fmt" - "os" - - generate "github.com/intelops/genval/pkg/generate/dockerfile_gen" - "github.com/intelops/genval/pkg/parser" - "github.com/intelops/genval/pkg/utils" - "github.com/intelops/genval/pkg/validate" - log "github.com/sirupsen/logrus" -) - -func init() { - // Set up logrus formatting here if needed - log.SetFormatter(&log.TextFormatter{ - FullTimestamp: false, - }) -} - -func ExecuteContainer(value, output, inputpolicy, outputpolicy string) { - if value == "" || output == "" || inputpolicy == "" || outputpolicy == "" { - fmt.Println("[USAGE]: ./genval --mode=container --reqinput=input.json --output=output.Dockerfile --inputpolicy= --outputpolicy ") - return - } - - // inputPath := args[0] - // outputPath := args[1] - inputPath := value - outputPath := output - inputPolicyFile := inputpolicy - outputPolicyFile := outputpolicy - - // Use ParseInputFile to read and unmarshal the input file - var data generate.DockerfileContent - - err := parser.ParseDockerfileInput(inputPath, &data) - if err != nil { - log.Error("Error parsing Dockerfile input:", err) - return - } - - inputContent, err := utils.ReadFile(inputPath) - if err != nil { - log.Fatalf("Unable to read input: %v", err) - } - - // Validate the YAML using OPA - err = validate.ValidateInput(string(inputContent), inputPolicyFile) - if err != nil { - log.Fatalf("Validation error: %v", err) - return - } - - dockerfileContent := generate.GenerateDockerfileContent(&data) - - outputData := []byte(dockerfileContent) - err = os.WriteFile(outputPath, outputData, 0644) - if err != nil { - log.Error("Error writing Dockerfile:", err) - return - } - fmt.Printf("Generated Dockerfile saved to: %s\n", outputPath) - - err = validate.ValidateDockerfile(string(outputData), outputPolicyFile) - if err != nil { - log.Error("Dockerfile validation failed:", err) - return - } else { - fmt.Printf("Dockerfile validation succeeded!\n") - } -} diff --git a/cmd/modes/cueval.go b/cmd/modes/cueval.go deleted file mode 100644 index 2721603..0000000 --- a/cmd/modes/cueval.go +++ /dev/null @@ -1,145 +0,0 @@ -package modes - -import ( - "fmt" - "os" - "path/filepath" - "strings" - - "cuelang.org/go/cue" - "cuelang.org/go/cue/cuecontext" - "cuelang.org/go/cue/load" - embeder "github.com/intelops/genval" - "github.com/intelops/genval/pkg/cuecore" - "github.com/intelops/genval/pkg/parser" - "github.com/intelops/genval/pkg/utils" - log "github.com/sirupsen/logrus" -) - -func init() { - log.SetFormatter(&log.TextFormatter{ - FullTimestamp: false, - FieldMap: log.FieldMap{ - log.FieldKeyTime: "@timestamp", - log.FieldKeyLevel: "@level", - log.FieldKeyMsg: "@message", - }, - }) -} - -func ExecuteCue(reqinput, resource string, verify bool, policies ...string) { - - const modPath = "github.com/intelops/genval" - staticFS := embeder.CueDef - - td, cleanup, err := utils.TempDirWithCleanup() - if err != nil { - log.Fatal(err) - } - defer cleanup() - defer func() { - if err := utils.CleanupDownloadedDir(); err != nil { - log.Printf("Error removing cue_downloads directory: %v", err) - } - }() - - ctx := cuecontext.New() - - if resource == "" || reqinput == "" || len(policies) == 0 { - fmt.Println("[Usage]: genval --mode=cue --resource= --reqinput= --policy ") - return - } - - dataPath := reqinput - defPath := resource - schemaFile := policies - - definitions, err := utils.ProcessInputs(schemaFile) - if err != nil { - log.Errorf("Error reading URL: %v", err) - } - - dataSet, err := cuecore.ReadAndCompileData(dataPath) - if err != nil { - log.Errorf("Error processing data: %v", err) - return - } - - overlay, err := utils.GenerateOverlay(staticFS, td, definitions) - if err != nil { - log.Fatal(err) - } - - conf := &load.Config{ - Dir: td, - Overlay: overlay, - Module: modPath, - Package: "*", - } - - defName := "#" + defPath - - v, err := cuecore.BuildInstance(ctx, definitions, conf) - if err != nil { - log.Fatal(err) - } - - // Name of the output directory - outputDir := "output" - - // Check if the output directory exists, if not create it - if _, err := os.Stat(outputDir); os.IsNotExist(err) { - err := os.Mkdir(outputDir, 0755) - if err != nil { - log.Fatalf("Error creating output directory: %v", err) - } - } - - var outputFiles []string - for filePath, data := range dataSet { - for _, value := range v { - lookUp := cue.ParsePath(defName) - def := value.LookupPath(lookUp) - if def.Err() != nil { - log.Errorf("Error parsing Path: %v", def.Err()) - return - } - - unifiedValue, err := cuecore.UnifyAndValidate(def, data) - if err != nil { - log.Errorf("Validation failed: %v", err) - return - } - - // Only generate YAML if verify is set to false -- default - if !verify { - yamlData, err := parser.CueToYAML(unifiedValue) - if err != nil { - log.Errorf("Error Marshaling: %v", err) - return - } - - baseName := filepath.Base(filePath) - outputFileName := strings.TrimSuffix(baseName, filepath.Ext(baseName)) + ".yaml" - fullOutputPath := filepath.Join(outputDir, outputFileName) - - err = os.WriteFile(fullOutputPath, yamlData, 0644) - if err != nil { - log.Errorf("Writing YAML: %v", err) - return - } - outputFiles = append(outputFiles, fullOutputPath) - } - } - } - - // Only print the success log for generation if verify is false - if !verify { - log.Infof("%v validation succeeded, generated manifests in '%v' directory:\n", defPath, outputDir) - for _, fileName := range outputFiles { - fmt.Printf(" - %v\n", fileName) - } - } else { - log.Infof("%v validation succeeded\n\n", dataPath) - } -} diff --git a/cmd/modes/k8s.go b/cmd/modes/k8s.go deleted file mode 100644 index 88ae055..0000000 --- a/cmd/modes/k8s.go +++ /dev/null @@ -1,25 +0,0 @@ -package modes - -import ( - "fmt" - - validate "github.com/intelops/genval/pkg/validate" - log "github.com/sirupsen/logrus" -) - -func ExecuteK8s(reqinput string, policies ...string) { - if reqinput == "" || len(policies) == 0 { - fmt.Println("[USAGE]: ./genval --mode=k8s --reqinput=input.json/yaml --policy=.") - return - } - - inputFile := reqinput - policy := policies - - err := validate.ValidateWithRego(inputFile, policy[0]) - if err != nil { - log.Errorf("Validation %v failed", err) - return - - } -} diff --git a/cmd/modes/showjson.go b/cmd/modes/showjson.go deleted file mode 100644 index c8cdce5..0000000 --- a/cmd/modes/showjson.go +++ /dev/null @@ -1,57 +0,0 @@ -package modes - -import ( - "bytes" - "encoding/json" - "fmt" - "strings" - - "github.com/intelops/genval/pkg/parser" - "github.com/intelops/genval/pkg/utils" - log "github.com/sirupsen/logrus" -) - -func ExecuteShowJSON(reqinput string) { - var prettyJSON bytes.Buffer - - if strings.HasSuffix(reqinput, ".tf") { - inputJSON, err := parser.ConvertTFtoJSON(reqinput) - if err != nil { - log.Errorf("Error converting tf file: %v", err) - return - } - - err = json.Indent(&prettyJSON, []byte(inputJSON), "", " ") - if err != nil { - log.Errorf("Error: %v", err) - return - } - } - - if strings.Contains(reqinput, "Dockerfile") { - inputContent, err := utils.ReadFile(reqinput) - if err != nil { - log.Errorf("Error reading input: %v", err) - } - - dockerfileContent := parser.ParseDockerfileContent(string(inputContent)) - dockerfileJSON, err := json.Marshal(dockerfileContent) - if err != nil { - log.Errorf("Error marshaling Dockerfile: %v", err) - return - } - - err = json.Indent(&prettyJSON, dockerfileJSON, "", " ") - if err != nil { - log.Errorf("Error: %v", err) - return - } - } - - if prettyJSON.Len() == 0 { - fmt.Println("The input must contain .tf extension or Dockerfile") - return - } - - fmt.Printf("JSON representation of %v: \n%v\n", reqinput, prettyJSON.String()) -} diff --git a/cmd/modes/teraform.go b/cmd/modes/teraform.go deleted file mode 100644 index af02c73..0000000 --- a/cmd/modes/teraform.go +++ /dev/null @@ -1,30 +0,0 @@ -package modes - -import ( - "fmt" - - "github.com/intelops/genval/pkg/parser" - validate "github.com/intelops/genval/pkg/validate" - log "github.com/sirupsen/logrus" -) - -func ExecuteTf(reqinput string, policies ...string) { - if reqinput == "" || len(policies) == 0 { - fmt.Println("[USAGE]: ./genval --mode=tf --reqinput=input.json/yaml --policy=.") - return - } - - inputFile := reqinput - policy := policies - - inputJSON, err := parser.ConvertTFtoJSON(inputFile) - if err != nil { - log.Errorf("Error converting tf file: %v", err) - } - - err = validate.ValidateWithRego(inputJSON, policy[0]) - if err != nil { - log.Errorf("Validation %v failed", err) - return - } -} diff --git a/cmd/regoval.go b/cmd/regoval.go new file mode 100644 index 0000000..c1fe5fc --- /dev/null +++ b/cmd/regoval.go @@ -0,0 +1,19 @@ +package cmd + +import ( + "github.com/spf13/cobra" +) + +var regovalCmd = &cobra.Command{ + Use: "regoval", + Short: "Command that manages validation of Kubernetes and related configuration files with Rego policies", + Long: ` +regoval command maages validation of Kubernetes and related manifests, Terraform files, and Dockerfiles +using Rego policies. +. +`, +} + +func init() { + rootCmd.AddCommand(regovalCmd) +} diff --git a/cmd/regoval_dockerfileval.go b/cmd/regoval_dockerfileval.go new file mode 100644 index 0000000..1e2c2b4 --- /dev/null +++ b/cmd/regoval_dockerfileval.go @@ -0,0 +1,74 @@ +package cmd + +import ( + "github.com/intelops/genval/pkg/utils" + "github.com/intelops/genval/pkg/validate" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" +) + +type dockerfilevalFlags struct { + reqinput string + policy string +} + +var dockerfilevalArgs dockerfilevalFlags + +func init() { + dockerfilevalCmd.Flags().StringVarP(&dockerfilevalArgs.reqinput, "reqinput", "r", "", "Input JSON for validating Terraform .dockerfileval files with rego") + if err := dockerfilevalCmd.MarkFlagRequired("reqinput"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + dockerfilevalCmd.Flags().StringVarP(&dockerfilevalArgs.policy, "policy", "p", "", "Path for the Rego policy file, polciy can be passed from either Local or from remote URL") + if err := dockerfilevalCmd.MarkFlagRequired("policy"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + + regovalCmd.AddCommand(dockerfilevalCmd) +} + +var dockerfilevalCmd = &cobra.Command{ + Use: "dockerfileval", + Short: "Validate Dockerfile with Rego policies", + Long: `Using dockerfileval, a user can validate Dockerfilefiles. Provide a Dockerfile thet needs to be validated +to the --reqinput arg and a set of Rego policies in the --policy arg. + +The required input Dockerfile and Rego policy files can be either be passed through local file paths or remote URLs, +such as those hosted on GitHub (e.g., https://github.com) +`, + Example: ` +# Validate Dockerfil with Rego policies by providing the required args from local file system + +./genval regoval dockerfileval --reqinput=input.json \ +--policy=<'path/to/policy.rego file> + +# Provide the required files from remote URL's + +./genval regoval dockerfileval --reqinput https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/Dockerfilefile-sample \ +--policy https://github.com/intelops/genval-security-policies/blob/patch-1/default-policies/rego/dockerfilefile_policies.rego + +# We need to authenticate with GitHub if we intend to pass the required file stired in the GitHub repo +export GITHUB_TOKEN= + +./genval regoval dockerfileval --reqinput https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/Dockerfilefile-sample \ +--policy https://github.com/intelops/genval-security-policies/blob/patch-1/default-policies/rego/dockerfilefile_policies.rego + `, + RunE: runDockerfilevalCmd, +} + +func runDockerfilevalCmd(cmd *cobra.Command, args []string) error { + input := dockerfilevalArgs.reqinput + policy := dockerfilevalArgs.policy + + dockerfilefileContent, err := utils.ReadFile(input) + if err != nil { + log.Errorf("Error reading Dockerfile: %v, validation failed: %s\n", input, err) + } + + err = validate.ValidateDockerfile(string(dockerfilefileContent), policy) + if err != nil { + log.Errorf("Dockerfile validation failed: %s\n", err) + } + log.Infof("Dockerfile: %v validation succeeded!\n", input) + return nil +} diff --git a/cmd/regoval_infrafile.go b/cmd/regoval_infrafile.go new file mode 100644 index 0000000..d416888 --- /dev/null +++ b/cmd/regoval_infrafile.go @@ -0,0 +1,71 @@ +package cmd + +import ( + "github.com/intelops/genval/pkg/validate" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" +) + +type infrafileFlags struct { + reqinput string + policy string +} + +var infrafileArgs infrafileFlags + +func init() { + infrafileCmd.Flags().StringVarP(&infrafileArgs.reqinput, "reqinput", "r", "", "Input JSON/YAML for validating Kubernetes configurations with Rego ") + if err := infrafileCmd.MarkFlagRequired("reqinput"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + + infrafileCmd.Flags().StringVarP(&infrafileArgs.policy, "policy", "p", "", "Path for the CEL policy file, polciy can be passed from either Local or from remote URL") + if err := infrafileCmd.MarkFlagRequired("policy"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + + regovalCmd.AddCommand(infrafileCmd) +} + +var infrafileCmd = &cobra.Command{ + Use: "infrafile", + Short: "Validate Kubernetes and related manidests using Rego policies", + Long: `A user needs to pass the Kubernetes manifest in YAML/JSON format as reqinput and a set of Rego policies +as a policy file for validation. + +The required input file in YAML/JSON format or a policy file can be supplied from either a local file or from +remote URL like https://github.com + `, + Example: ` +# Validating Kubernetes manifest fro local disk +# The input kubernetes manifest passed to reqinput can be wither YAML or JSON format + +./genval regoval infrafile --reqinput ./templates/inputs/k8s/deployment.json \ +--policy ./templates/defaultpolicies/rego/k8s.rego + +# Validating Kubernetes manifest from files stored in remote URL's + +./genval regoval infrafile --reqinput https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/input-templates/k8s/deployment.json \ +--policy https://github.com/intelops/genval-security-policies/blob/patch-1/default-policies/rego/k8s.rego + +# For authenticating with GitHub for providing files stored in github, we need to authenticate to GitHub by setting up a Env VAriable +export GITHUB_TOKEN= + +./genval regoval infrafile --reqinput https://github.com/intelops/genval-security-policies/blob/patch-1/input-templates/k8s/deployment.json \ +--policy https://github.com/intelops/genval-security-policies/blob/patch-1/default-policies/rego/k8s.rego + +`, + RunE: runinfrafileCmd, +} + +func runinfrafileCmd(cmd *cobra.Command, args []string) error { + inputFile := infrafileArgs.reqinput + policy := infrafileArgs.policy + + err := validate.ValidateWithRego(inputFile, policy) + if err != nil { + log.Errorf("Validation %v failed", err) + } + log.Infof("infrafile %v, validated succussfully.", inputFile) + return nil +} diff --git a/cmd/regoval_terraform.go b/cmd/regoval_terraform.go new file mode 100644 index 0000000..0985efb --- /dev/null +++ b/cmd/regoval_terraform.go @@ -0,0 +1,75 @@ +package cmd + +import ( + "github.com/intelops/genval/pkg/parser" + "github.com/intelops/genval/pkg/validate" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" +) + +type terraformFlags struct { + reqinput string + policy string +} + +var terraformArgs terraformFlags + +func init() { + terraformCmd.Flags().StringVarP(&terraformArgs.reqinput, "reqinput", "r", "", "Input JSON for validating Terraform .tf files with rego") + if err := terraformCmd.MarkFlagRequired("reqinput"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + terraformCmd.Flags().StringVarP(&terraformArgs.policy, "policy", "p", "", "Path for the Rego policy file, polciy can be passed from either Local or from remote URL") + if err := terraformCmd.MarkFlagRequired("policy"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + + regovalCmd.AddCommand(terraformCmd) +} + +var terraformCmd = &cobra.Command{ + Use: "terraform", + Short: "Validate Terraform .tf files with Rego policies", + Long: `With tf mode, a user can validate raw terraform file with .tf extions. +Provide a valid terraform file with .tf extension in the --reqinput arg and a set of Rego policies in the +--policy arg. + +The required input .tf files and Rego policy files can be either be passed through local file paths or remote URLs, +such as those hosted on GitHub (e.g., https://github.com) +`, + Example: ` +# Validate Terraform files with local Rego policies + +./genval regoval terraform --reqinput=./templates/inputs/terraform/sec_group.tf \ +--policy=./templates/defaultpolicies/rego/terraform.rego + +# As with all the other commands, showJSON can also read the Dockerfile/.tf file passed through remote URL's + +./genval regoval terraform --reqinput https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/input-templates/terraform/sec_group.tf \ +--policy https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/default-policies/rego/terraform.rego + +# We need to authenticate with GitHub if we intend to pass the required file stired in the GitHub repo +export GITHUB_TOKEN= + +./genval regoval terraform --reqinput https://github.com/intelops/genval-security-policies/blob/patch-1/input-templates/terraform/sec_group.tf \ +--policy https://github.com/intelops/genval-security-policies/blob/patch-1/default-policies/rego/terraform.rego + `, + RunE: runTerraformCmd, +} + +func runTerraformCmd(cmd *cobra.Command, args []string) error { + inputFile := terraformArgs.reqinput + policy := terraformArgs.policy + + inputJSON, err := parser.ConvertTFtoJSON(inputFile) + if err != nil { + log.Errorf("Error converting tf file: %v", err) + } + + err = validate.ValidateWithRego(inputJSON, policy) + if err != nil { + log.Errorf("Validation %v failed", err) + } + log.Infof("Terraform resource: %v, validated succussfully.", inputFile) + return nil +} diff --git a/cmd/root.go b/cmd/root.go new file mode 100644 index 0000000..0af6b1e --- /dev/null +++ b/cmd/root.go @@ -0,0 +1,48 @@ +package cmd + +import ( + "fmt" + "os" + + "github.com/fatih/color" + "github.com/spf13/cobra" +) + +// rootCommand returns a cobra command for genvalctl CLI tool +var rootCmd = &cobra.Command{ + Use: "genval", + Short: "genval is a CLI tool to generate and validate files", + Long: ` +Genval is a versatile Go utility that simplifies configuration management by Generating and validating cobfig files +for a wide range of tools, including Dockerfile, Kubernetes manifests, Terraform files, Tekton, ArgoCD and more. + `, + Run: func(cmd *cobra.Command, args []string) { + fmt.Println(` + +:'######:::'########:'##::: ##:'##::::'##::::'###::::'##::::::: +'##... ##:: ##.....:: ###:: ##: ##:::: ##:::'## ##::: ##::::::: + ##:::..::: ##::::::: ####: ##: ##:::: ##::'##:. ##:: ##::::::: + ##::'####: ######::: ## ## ##: ##:::: ##:'##:::. ##: ##::::::: + ##::: ##:: ##...:::: ##. ####:. ##:: ##:: #########: ##::::::: + ##::: ##:: ##::::::: ##:. ###::. ## ##::: ##.... ##: ##::::::: +. ######::: ########: ##::. ##:::. ###:::: ##:::: ##: ########: +:......::::........::..::::..:::::...:::::..:::::..::........:: + + +Genval is a versatile Go utility that simplifies configuration management by Generating and validating cobfig files +for a wide range of tools, including Dockerfile, Kubernetes manifests, Terraform files, Tekton, ArgoCD and more. + `) + }, +} + +func init() { + rootCmd.SetOut(color.Output) + rootCmd.SetErr(color.Error) +} + +func Execute() { + err := rootCmd.Execute() + if err != nil { + os.Exit(1) + } +} diff --git a/cmd/showJSON.go b/cmd/showJSON.go new file mode 100644 index 0000000..1defdd3 --- /dev/null +++ b/cmd/showJSON.go @@ -0,0 +1,110 @@ +package cmd + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "strings" + + "github.com/intelops/genval/pkg/parser" + "github.com/intelops/genval/pkg/utils" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" +) + +type showJSONFlags struct { + reqinput string +} + +var showJSONArgs showJSONFlags + +func init() { + showJSONCmd.Flags().StringVarP(&showJSONArgs.reqinput, "reqinput", "r", "", "required input as .tf or a Dockefile ") + if err := showJSONCmd.MarkFlagRequired("reqinput"); err != nil { + log.Fatalf("Error marking flag as required: %v", err) + } + + rootCmd.AddCommand(showJSONCmd) +} + +var showJSONCmd = &cobra.Command{ + Use: "showJSON", + Short: "A helper command for printing the JSON representation of .tf and Dockerfile", + Long: ` +showJSON is a helper command enabling user to visualize the JSON representation of the .tf and Dockerfiles. +The succussfule execution of the command will print the JSON representation of the passed input .tf or a Dockefile to the StdOut. +Based on this JSON representation, users can write Rego or CEL polices for their technologies and validate them through Genval. + +The required input as .tf or a Dockerfile can be either passed through local file paths or remote URLs, such as those hosted on GitHub (e.g., https://github.com) + `, + Example: ` +# Currently, showJSOn prints JSON format for .tf and Dockerfiles only + +# preint the JSON representation of Dockerfile to StdOut + +./genval showJSON --reqinput ./output/Dockerfile + + +# As with all the other commands, showJSON can also read the Dockerfile/.tf file passed through remote URL's + +./genval showJSON --reqinput https://raw.githubusercontent.com/intelops/genval-security-policies/patch-1/Dockerfile-sample + +# We need to authenticate with GitHub if we intend to pass the required file stired in the GitHub repo +export GITHUB_TOKEN= + +./genval showJSON --reqinput https://github.com/intelops/genval-security-policies/blob/patch-1/Dockerfile-sample + `, + RunE: runshowJSONCmd, +} + +func runshowJSONCmd(cmd *cobra.Command, args []string) error { + if showJSONArgs.reqinput == "" { + fmt.Println("[USAGE]: ./genval showJSON --reqinput=Dockerfile/ec2.tf") + log.Panicf("Required params not found") + } + input := showJSONArgs.reqinput + var prettyJSON bytes.Buffer + + if strings.HasSuffix(input, ".tf") { + inputJSON, err := parser.ConvertTFtoJSON(input) + if err != nil { + log.Errorf("Error converting tf file: %v", err) + return err + } + + err = json.Indent(&prettyJSON, []byte(inputJSON), "", " ") + if err != nil { + log.Errorf("Error: %v", err) + return err + } + } + + if strings.Contains(input, "Dockerfile") { + inputContent, err := utils.ReadFile(input) + if err != nil { + log.Errorf("Error reading input: %v", err) + } + + dockerfileContent := parser.ParseDockerfileContent(string(inputContent)) + dockerfileJSON, err := json.Marshal(dockerfileContent) + if err != nil { + log.Errorf("Error marshaling Dockerfile: %v", err) + return err + } + + err = json.Indent(&prettyJSON, dockerfileJSON, "", " ") + if err != nil { + log.Errorf("Error: %v", err) + return err + } + } + + if prettyJSON.Len() == 0 { + log.Errorf("The input: %v, must contain .tf extension or Dockerfile", input) + return errors.New("input must contain .tf extension or Dockerfile") + } + + log.Infof("JSON representation of %v: \n%v\n", input, prettyJSON.String()) + return nil +} diff --git a/cmd/version.go b/cmd/version.go new file mode 100644 index 0000000..6ff8acb --- /dev/null +++ b/cmd/version.go @@ -0,0 +1,23 @@ +package cmd + +import ( + "fmt" + + "github.com/spf13/cobra" +) + +var ( + VERSION = "0.0.1" + versionCmd = &cobra.Command{ + Use: "version", + Short: "Print the version number of Genval", + Long: `All software has versions. This is Genval's`, + Run: func(cmd *cobra.Command, args []string) { + fmt.Printf("Genval version: v%v\n", VERSION) + }, + } +) + +func init() { + rootCmd.AddCommand(versionCmd) +} diff --git a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/register_go_gen.cue b/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/register_go_gen.cue deleted file mode 100644 index 579e9da..0000000 --- a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/register_go_gen.cue +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application - -package application - -// API Group -#Group: "argoproj.io" - -// Application constants -#ApplicationKind: "Application" -#ApplicationSingular: "application" -#ApplicationPlural: "applications" -#ApplicationShortName: "app" -#ApplicationFullName: "applications.argoproj.io" - -// AppProject constants -#AppProjectKind: "AppProject" -#AppProjectSingular: "appproject" -#AppProjectPlural: "appprojects" -#AppProjectShortName: "appproject" -#AppProjectFullName: "appprojects.argoproj.io" - -// ApplicationSet constants -#ApplicationSetKind: "ApplicationSet" -#ApplicationSetSingular: "applicationset" -#ApplicationSetShortName: "appset" -#ApplicationSetPlural: "applicationsets" -#ApplicationSetFullName: "applicationsets.argoproj.io" diff --git a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/app_project_types_go_gen.cue b/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/app_project_types_go_gen.cue deleted file mode 100644 index 4b1addd..0000000 --- a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/app_project_types_go_gen.cue +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1 - -package v1alpha1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// AppProjectList is list of AppProject resources -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -#AppProjectList: { - metav1.#TypeMeta - metadata: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - items: [...#AppProject] @go(Items,[]AppProject) @protobuf(2,bytes,rep) -} - -// AppProject provides a logical grouping of applications, providing controls for: -// * where the apps may deploy to (cluster whitelist) -// * what may be deployed (repository whitelist, resource whitelist/blacklist) -// * who can access these applications (roles, OIDC group claims bindings) -// * and what they can do (RBAC policies) -// * automation access to these roles (JWT tokens) -// +genclient -// +genclient:noStatus -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:resource:path=appprojects,shortName=appproj;appprojs -#AppProject: { - metav1.#TypeMeta - metadata: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - spec: #AppProjectSpec @go(Spec) @protobuf(2,bytes,opt) - status?: #AppProjectStatus @go(Status) @protobuf(3,bytes,opt) -} - -// AppProjectStatus contains status information for AppProject CRs -#AppProjectStatus: { - // JWTTokensByRole contains a list of JWT tokens issued for a given role - jwtTokensByRole?: {[string]: #JWTTokens} @go(JWTTokensByRole,map[string]JWTTokens) @protobuf(1,bytes,opt) -} diff --git a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/application_annotations_go_gen.cue b/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/application_annotations_go_gen.cue deleted file mode 100644 index 1d53073..0000000 --- a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/application_annotations_go_gen.cue +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1 - -package v1alpha1 - -// AnnotationKeyRefresh is the annotation key which indicates that app needs to be refreshed. Removed by application controller after app is refreshed. -// Might take values 'normal'/'hard'. Value 'hard' means manifest cache and target cluster state cache should be invalidated before refresh. -#AnnotationKeyRefresh: "argocd.argoproj.io/refresh" - -// AnnotationKeyManifestGeneratePaths is an annotation that contains a list of semicolon-separated paths in the -// manifests repository that affects the manifest generation. Paths might be either relative or absolute. The -// absolute path means an absolute path within the repository and the relative path is relative to the application -// source path within the repository. -#AnnotationKeyManifestGeneratePaths: "argocd.argoproj.io/manifest-generate-paths" diff --git a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/application_defaults_go_gen.cue b/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/application_defaults_go_gen.cue deleted file mode 100644 index 0b4c286..0000000 --- a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/application_defaults_go_gen.cue +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1 - -package v1alpha1 - -import "time" - -#DefaultSyncRetryMaxDuration: time.#Duration & 180000000000 -#DefaultSyncRetryDuration: time.#Duration & 5000000000 -#DefaultSyncRetryFactor: int64 & 2 - -// ResourcesFinalizerName is the finalizer value which we inject to finalize deletion of an application -#ResourcesFinalizerName: "resources-finalizer.argocd.argoproj.io" - -// ForegroundPropagationPolicyFinalizer is the finalizer we inject to delete application with foreground propagation policy -#ForegroundPropagationPolicyFinalizer: "resources-finalizer.argocd.argoproj.io/foreground" - -// BackgroundPropagationPolicyFinalizer is the finalizer we inject to delete application with background propagation policy -#BackgroundPropagationPolicyFinalizer: "resources-finalizer.argocd.argoproj.io/background" - -// DefaultAppProjectName contains name of 'default' app project, which is available in every Argo CD installation -#DefaultAppProjectName: "default" - -// RevisionHistoryLimit is the max number of successful sync to keep in history -#RevisionHistoryLimit: 10 - -// KubernetesInternalAPIServerAddr is address of the k8s API server when accessing internal to the cluster -#KubernetesInternalAPIServerAddr: "https://kubernetes.default.svc" diff --git a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/applicationset_types_go_gen.cue b/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/applicationset_types_go_gen.cue deleted file mode 100644 index be8a134..0000000 --- a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/applicationset_types_go_gen.cue +++ /dev/null @@ -1,738 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1 - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/util/intstr" - apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" -) - -// Utility struct for a reference to a secret key. -#SecretRef: { - secretName: string @go(SecretName) @protobuf(1,bytes,opt) - key: string @go(Key) @protobuf(2,bytes,opt) -} - -// ApplicationSet is a set of Application resources -// +genclient -// +genclient:noStatus -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:resource:path=applicationsets,shortName=appset;appsets -// +kubebuilder:subresource:status -#ApplicationSet: { - metav1.#TypeMeta - metadata: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - spec: #ApplicationSetSpec @go(Spec) @protobuf(2,bytes,opt) - status?: #ApplicationSetStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ApplicationSetSpec represents a class of application set state. -#ApplicationSetSpec: { - goTemplate?: bool @go(GoTemplate) @protobuf(1,bytes) - generators: [...#ApplicationSetGenerator] @go(Generators,[]ApplicationSetGenerator) @protobuf(2,bytes) - template: #ApplicationSetTemplate @go(Template) @protobuf(3,bytes) - syncPolicy?: null | #ApplicationSetSyncPolicy @go(SyncPolicy,*ApplicationSetSyncPolicy) @protobuf(4,bytes) - strategy?: null | #ApplicationSetStrategy @go(Strategy,*ApplicationSetStrategy) @protobuf(5,bytes,opt) - preservedFields?: null | #ApplicationPreservedFields @go(PreservedFields,*ApplicationPreservedFields) @protobuf(6,bytes,opt) - goTemplateOptions?: [...string] @go(GoTemplateOptions,[]string) @protobuf(7,bytes,opt) - - // ApplyNestedSelectors enables selectors defined within the generators of two level-nested matrix or merge generators - applyNestedSelectors?: bool @go(ApplyNestedSelectors) @protobuf(8,bytes) -} - -#ApplicationPreservedFields: { - annotations?: [...string] @go(Annotations,[]string) @protobuf(1,bytes) -} - -// ApplicationSetStrategy configures how generated Applications are updated in sequence. -#ApplicationSetStrategy: { - type?: string @go(Type) @protobuf(1,bytes,opt) - rollingSync?: null | #ApplicationSetRolloutStrategy @go(RollingSync,*ApplicationSetRolloutStrategy) @protobuf(2,bytes,opt) -} - -#ApplicationSetRolloutStrategy: { - steps?: [...#ApplicationSetRolloutStep] @go(Steps,[]ApplicationSetRolloutStep) @protobuf(1,bytes,opt) -} - -#ApplicationSetRolloutStep: { - matchExpressions?: [...#ApplicationMatchExpression] @go(MatchExpressions,[]ApplicationMatchExpression) @protobuf(1,bytes,opt) - maxUpdate?: null | intstr.#IntOrString @go(MaxUpdate,*intstr.IntOrString) @protobuf(2,bytes,opt) -} - -#ApplicationMatchExpression: { - key?: string @go(Key) @protobuf(1,bytes,opt) - operator?: string @go(Operator) @protobuf(2,bytes,opt) - values?: [...string] @go(Values,[]string) @protobuf(3,bytes,opt) -} - -// ApplicationsSyncPolicy representation -// "create-only" means applications are only created. If the generator's result contains update, applications won't be updated -// "create-update" means applications are only created/Updated. If the generator's result contains update, applications will be updated, but not deleted -// "create-delete" means applications are only created/deleted. If the generator's result contains update, applications won't be updated, if it results in deleted applications, the applications will be deleted -// "sync" means create/update/deleted. If the generator's result contains update, applications will be updated, if it results in deleted applications, the applications will be deleted -// If no ApplicationsSyncPolicy is defined, it defaults it to sync -#ApplicationsSyncPolicy: string // #enumApplicationsSyncPolicy - -#enumApplicationsSyncPolicy: - #ApplicationsSyncPolicyCreateOnly | - #ApplicationsSyncPolicyCreateUpdate | - #ApplicationsSyncPolicyCreateDelete | - #ApplicationsSyncPolicySync - -#ApplicationsSyncPolicyCreateOnly: #ApplicationsSyncPolicy & "create-only" -#ApplicationsSyncPolicyCreateUpdate: #ApplicationsSyncPolicy & "create-update" -#ApplicationsSyncPolicyCreateDelete: #ApplicationsSyncPolicy & "create-delete" -#ApplicationsSyncPolicySync: #ApplicationsSyncPolicy & "sync" - -// ApplicationSetSyncPolicy configures how generated Applications will relate to their -// ApplicationSet. -#ApplicationSetSyncPolicy: { - // PreserveResourcesOnDeletion will preserve resources on deletion. If PreserveResourcesOnDeletion is set to true, these Applications will not be deleted. - preserveResourcesOnDeletion?: bool @go(PreserveResourcesOnDeletion) @protobuf(1,bytes,name=syncPolicy) - - // ApplicationsSync represents the policy applied on the generated applications. Possible values are create-only, create-update, create-delete, sync - // +kubebuilder:validation:Optional - // +kubebuilder:validation:Enum=create-only;create-update;create-delete;sync - applicationsSync?: null | #ApplicationsSyncPolicy @go(ApplicationsSync,*ApplicationsSyncPolicy) @protobuf(2,bytes,opt,casttype=ApplicationsSyncPolicy) -} - -// ApplicationSetTemplate represents argocd ApplicationSpec -#ApplicationSetTemplate: { - metadata: #ApplicationSetTemplateMeta @go(ApplicationSetTemplateMeta) @protobuf(1,bytes) - spec: #ApplicationSpec @go(Spec) @protobuf(2,bytes) -} - -// ApplicationSetTemplateMeta represents the Argo CD application fields that may -// be used for Applications generated from the ApplicationSet (based on metav1.ObjectMeta) -#ApplicationSetTemplateMeta: { - name?: string @go(Name) @protobuf(1,bytes) - namespace?: string @go(Namespace) @protobuf(2,bytes) - labels?: {[string]: string} @go(Labels,map[string]string) @protobuf(3,bytes) - annotations?: {[string]: string} @go(Annotations,map[string]string) @protobuf(4,bytes) - finalizers?: [...string] @go(Finalizers,[]string) @protobuf(5,bytes) -} - -// ApplicationSetGenerator represents a generator at the top level of an ApplicationSet. -#ApplicationSetGenerator: { - list?: null | #ListGenerator @go(List,*ListGenerator) @protobuf(1,bytes) - clusters?: null | #ClusterGenerator @go(Clusters,*ClusterGenerator) @protobuf(2,bytes) - git?: null | #GitGenerator @go(Git,*GitGenerator) @protobuf(3,bytes) - scmProvider?: null | #SCMProviderGenerator @go(SCMProvider,*SCMProviderGenerator) @protobuf(4,bytes) - clusterDecisionResource?: null | #DuckTypeGenerator @go(ClusterDecisionResource,*DuckTypeGenerator) @protobuf(5,bytes) - pullRequest?: null | #PullRequestGenerator @go(PullRequest,*PullRequestGenerator) @protobuf(6,bytes) - matrix?: null | #MatrixGenerator @go(Matrix,*MatrixGenerator) @protobuf(7,bytes) - merge?: null | #MergeGenerator @go(Merge,*MergeGenerator) @protobuf(8,bytes) - - // Selector allows to post-filter all generator. - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(9,bytes) - plugin?: null | #PluginGenerator @go(Plugin,*PluginGenerator) @protobuf(10,bytes) -} - -// ApplicationSetNestedGenerator represents a generator nested within a combination-type generator (MatrixGenerator or -// MergeGenerator). -#ApplicationSetNestedGenerator: { - list?: null | #ListGenerator @go(List,*ListGenerator) @protobuf(1,bytes) - clusters?: null | #ClusterGenerator @go(Clusters,*ClusterGenerator) @protobuf(2,bytes) - git?: null | #GitGenerator @go(Git,*GitGenerator) @protobuf(3,bytes) - scmProvider?: null | #SCMProviderGenerator @go(SCMProvider,*SCMProviderGenerator) @protobuf(4,bytes) - clusterDecisionResource?: null | #DuckTypeGenerator @go(ClusterDecisionResource,*DuckTypeGenerator) @protobuf(5,bytes) - pullRequest?: null | #PullRequestGenerator @go(PullRequest,*PullRequestGenerator) @protobuf(6,bytes) - - // Matrix should have the form of NestedMatrixGenerator - matrix?: null | apiextensionsv1.#JSON @go(Matrix,*apiextensionsv1.JSON) @protobuf(7,bytes) - - // Merge should have the form of NestedMergeGenerator - merge?: null | apiextensionsv1.#JSON @go(Merge,*apiextensionsv1.JSON) @protobuf(8,bytes) - - // Selector allows to post-filter all generator. - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(9,bytes) - plugin?: null | #PluginGenerator @go(Plugin,*PluginGenerator) @protobuf(10,bytes) -} - -#ApplicationSetNestedGenerators: [...#ApplicationSetNestedGenerator] - -// ApplicationSetTerminalGenerator represents a generator nested within a nested generator (for example, a list within -// a merge within a matrix). A generator at this level may not be a combination-type generator (MatrixGenerator or -// MergeGenerator). ApplicationSet enforces this nesting depth limit because CRDs do not support recursive types. -// https://github.com/kubernetes-sigs/controller-tools/issues/477 -#ApplicationSetTerminalGenerator: { - list?: null | #ListGenerator @go(List,*ListGenerator) @protobuf(1,bytes) - clusters?: null | #ClusterGenerator @go(Clusters,*ClusterGenerator) @protobuf(2,bytes) - git?: null | #GitGenerator @go(Git,*GitGenerator) @protobuf(3,bytes) - scmProvider?: null | #SCMProviderGenerator @go(SCMProvider,*SCMProviderGenerator) @protobuf(4,bytes) - clusterDecisionResource?: null | #DuckTypeGenerator @go(ClusterDecisionResource,*DuckTypeGenerator) @protobuf(5,bytes) - pullRequest?: null | #PullRequestGenerator @go(PullRequest,*PullRequestGenerator) @protobuf(6,bytes) - plugin?: null | #PluginGenerator @go(Plugin,*PluginGenerator) @protobuf(7,bytes,name=pullRequest) - - // Selector allows to post-filter all generator. - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(8,bytes) -} - -#ApplicationSetTerminalGenerators: [...#ApplicationSetTerminalGenerator] - -// ListGenerator include items info -#ListGenerator: { - elements: [...apiextensionsv1.#JSON] @go(Elements,[]apiextensionsv1.JSON) @protobuf(1,bytes) - template?: #ApplicationSetTemplate @go(Template) @protobuf(2,bytes) - elementsYaml?: string @go(ElementsYaml) @protobuf(3,bytes,opt) -} - -// MatrixGenerator generates the cartesian product of two sets of parameters. The parameters are defined by two nested -// generators. -#MatrixGenerator: { - generators: [...#ApplicationSetNestedGenerator] @go(Generators,[]ApplicationSetNestedGenerator) @protobuf(1,bytes) - template?: #ApplicationSetTemplate @go(Template) @protobuf(2,bytes) -} - -// NestedMatrixGenerator is a MatrixGenerator nested under another combination-type generator (MatrixGenerator or -// MergeGenerator). NestedMatrixGenerator does not have an override template, because template overriding has no meaning -// within the constituent generators of combination-type generators. -// -// NOTE: Nested matrix generator is not included directly in the CRD struct, instead it is included -// as a generic 'apiextensionsv1.JSON' object, and then marshalled into a NestedMatrixGenerator -// when processed. -#NestedMatrixGenerator: { - generators: #ApplicationSetTerminalGenerators @go(Generators) @protobuf(1,bytes) -} - -// MergeGenerator merges the output of two or more generators. Where the values for all specified merge keys are equal -// between two sets of generated parameters, the parameter sets will be merged with the parameters from the latter -// generator taking precedence. Parameter sets with merge keys not present in the base generator's params will be -// ignored. -// For example, if the first generator produced [{a: '1', b: '2'}, {c: '1', d: '1'}] and the second generator produced -// [{'a': 'override'}], the united parameters for merge keys = ['a'] would be -// [{a: 'override', b: '1'}, {c: '1', d: '1'}]. -// -// MergeGenerator supports template overriding. If a MergeGenerator is one of multiple top-level generators, its -// template will be merged with the top-level generator before the parameters are applied. -#MergeGenerator: { - generators: [...#ApplicationSetNestedGenerator] @go(Generators,[]ApplicationSetNestedGenerator) @protobuf(1,bytes) - mergeKeys: [...string] @go(MergeKeys,[]string) @protobuf(2,bytes) - template?: #ApplicationSetTemplate @go(Template) @protobuf(3,bytes) -} - -// NestedMergeGenerator is a MergeGenerator nested under another combination-type generator (MatrixGenerator or -// MergeGenerator). NestedMergeGenerator does not have an override template, because template overriding has no meaning -// within the constituent generators of combination-type generators. -// -// NOTE: Nested merge generator is not included directly in the CRD struct, instead it is included -// as a generic 'apiextensionsv1.JSON' object, and then marshalled into a NestedMergeGenerator -// when processed. -#NestedMergeGenerator: { - generators: #ApplicationSetTerminalGenerators @go(Generators) @protobuf(1,bytes) - mergeKeys: [...string] @go(MergeKeys,[]string) @protobuf(2,bytes) -} - -// ClusterGenerator defines a generator to match against clusters registered with ArgoCD. -#ClusterGenerator: { - // Selector defines a label selector to match against all clusters registered with ArgoCD. - // Clusters today are stored as Kubernetes Secrets, thus the Secret labels will be used - // for matching the selector. - selector?: metav1.#LabelSelector @go(Selector) @protobuf(1,bytes) - template?: #ApplicationSetTemplate @go(Template) @protobuf(2,bytes) - - // Values contains key/value pairs which are passed directly as parameters to the template - values?: {[string]: string} @go(Values,map[string]string) @protobuf(3,bytes) -} - -// DuckType defines a generator to match against clusters registered with ArgoCD. -#DuckTypeGenerator: { - // ConfigMapRef is a ConfigMap with the duck type definitions needed to retrieve the data - // this includes apiVersion(group/version), kind, matchKey and validation settings - // Name is the resource name of the kind, group and version, defined in the ConfigMapRef - // RequeueAfterSeconds is how long before the duckType will be rechecked for a change - configMapRef: string @go(ConfigMapRef) @protobuf(1,bytes) - name?: string @go(Name) @protobuf(2,bytes) - requeueAfterSeconds?: null | int64 @go(RequeueAfterSeconds,*int64) @protobuf(3,bytes) - labelSelector?: metav1.#LabelSelector @go(LabelSelector) @protobuf(4,bytes) - template?: #ApplicationSetTemplate @go(Template) @protobuf(5,bytes) - - // Values contains key/value pairs which are passed directly as parameters to the template - values?: {[string]: string} @go(Values,map[string]string) @protobuf(6,bytes) -} - -#GitGenerator: { - repoURL: string @go(RepoURL) @protobuf(1,bytes) - directories?: [...#GitDirectoryGeneratorItem] @go(Directories,[]GitDirectoryGeneratorItem) @protobuf(2,bytes) - files?: [...#GitFileGeneratorItem] @go(Files,[]GitFileGeneratorItem) @protobuf(3,bytes) - revision: string @go(Revision) @protobuf(4,bytes) - requeueAfterSeconds?: null | int64 @go(RequeueAfterSeconds,*int64) @protobuf(5,bytes) - template?: #ApplicationSetTemplate @go(Template) @protobuf(6,bytes) - pathParamPrefix?: string @go(PathParamPrefix) @protobuf(7,bytes) - - // Values contains key/value pairs which are passed directly as parameters to the template - values?: {[string]: string} @go(Values,map[string]string) @protobuf(8,bytes) -} - -#GitDirectoryGeneratorItem: { - path: string @go(Path) @protobuf(1,bytes) - exclude?: bool @go(Exclude) @protobuf(2,bytes) -} - -#GitFileGeneratorItem: { - path: string @go(Path) @protobuf(1,bytes) -} - -// SCMProviderGenerator defines a generator that scrapes a SCMaaS API to find candidate repos. -#SCMProviderGenerator: { - // Which provider to use and config for it. - github?: null | #SCMProviderGeneratorGithub @go(Github,*SCMProviderGeneratorGithub) @protobuf(1,bytes,opt) - gitlab?: null | #SCMProviderGeneratorGitlab @go(Gitlab,*SCMProviderGeneratorGitlab) @protobuf(2,bytes,opt) - bitbucket?: null | #SCMProviderGeneratorBitbucket @go(Bitbucket,*SCMProviderGeneratorBitbucket) @protobuf(3,bytes,opt) - bitbucketServer?: null | #SCMProviderGeneratorBitbucketServer @go(BitbucketServer,*SCMProviderGeneratorBitbucketServer) @protobuf(4,bytes,opt) - gitea?: null | #SCMProviderGeneratorGitea @go(Gitea,*SCMProviderGeneratorGitea) @protobuf(5,bytes,opt) - azureDevOps?: null | #SCMProviderGeneratorAzureDevOps @go(AzureDevOps,*SCMProviderGeneratorAzureDevOps) @protobuf(6,bytes,opt) - - // Filters for which repos should be considered. - filters?: [...#SCMProviderGeneratorFilter] @go(Filters,[]SCMProviderGeneratorFilter) @protobuf(7,bytes,rep) - - // Which protocol to use for the SCM URL. Default is provider-specific but ssh if possible. Not all providers - // necessarily support all protocols. - cloneProtocol?: string @go(CloneProtocol) @protobuf(8,bytes,opt) - - // Standard parameters. - requeueAfterSeconds?: null | int64 @go(RequeueAfterSeconds,*int64) @protobuf(9,varint,opt) - template?: #ApplicationSetTemplate @go(Template) @protobuf(10,bytes,opt) - - // Values contains key/value pairs which are passed directly as parameters to the template - values?: {[string]: string} @go(Values,map[string]string) @protobuf(11,bytes) - awsCodeCommit?: null | #SCMProviderGeneratorAWSCodeCommit @go(AWSCodeCommit,*SCMProviderGeneratorAWSCodeCommit) @protobuf(12,bytes,opt) -} - -// SCMProviderGeneratorGitea defines a connection info specific to Gitea. -#SCMProviderGeneratorGitea: { - // Gitea organization or user to scan. Required. - owner: string @go(Owner) @protobuf(1,bytes,opt) - - // The Gitea URL to talk to. For example https://gitea.mydomain.com/. - api: string @go(API) @protobuf(2,bytes,opt) - - // Authentication token reference. - tokenRef?: null | #SecretRef @go(TokenRef,*SecretRef) @protobuf(3,bytes,opt) - - // Scan all branches instead of just the default branch. - allBranches?: bool @go(AllBranches) @protobuf(4,varint,opt) - - // Allow self-signed TLS / Certificates; default: false - insecure?: bool @go(Insecure) @protobuf(5,varint,opt) -} - -// SCMProviderGeneratorGithub defines connection info specific to GitHub. -#SCMProviderGeneratorGithub: { - // GitHub org to scan. Required. - organization: string @go(Organization) @protobuf(1,bytes,opt) - - // The GitHub API URL to talk to. If blank, use https://api.github.com/. - api?: string @go(API) @protobuf(2,bytes,opt) - - // Authentication token reference. - tokenRef?: null | #SecretRef @go(TokenRef,*SecretRef) @protobuf(3,bytes,opt) - - // AppSecretName is a reference to a GitHub App repo-creds secret. - appSecretName?: string @go(AppSecretName) @protobuf(4,bytes,opt) - - // Scan all branches instead of just the default branch. - allBranches?: bool @go(AllBranches) @protobuf(5,varint,opt) -} - -// SCMProviderGeneratorGitlab defines connection info specific to Gitlab. -#SCMProviderGeneratorGitlab: { - // Gitlab group to scan. Required. You can use either the project id (recommended) or the full namespaced path. - group: string @go(Group) @protobuf(1,bytes,opt) - - // Recurse through subgroups (true) or scan only the base group (false). Defaults to "false" - includeSubgroups?: bool @go(IncludeSubgroups) @protobuf(2,varint,opt) - - // The Gitlab API URL to talk to. - api?: string @go(API) @protobuf(3,bytes,opt) - - // Authentication token reference. - tokenRef?: null | #SecretRef @go(TokenRef,*SecretRef) @protobuf(4,bytes,opt) - - // Scan all branches instead of just the default branch. - allBranches?: bool @go(AllBranches) @protobuf(5,varint,opt) - - // Skips validating the SCM provider's TLS certificate - useful for self-signed certificates.; default: false - insecure?: bool @go(Insecure) @protobuf(6,varint,opt) -} - -// SCMProviderGeneratorBitbucket defines connection info specific to Bitbucket Cloud (API version 2). -#SCMProviderGeneratorBitbucket: { - // Bitbucket workspace to scan. Required. - owner: string @go(Owner) @protobuf(1,bytes,opt) - - // Bitbucket user to use when authenticating. Should have a "member" role to be able to read all repositories and branches. Required - user: string @go(User) @protobuf(2,bytes,opt) - - // The app password to use for the user. Required. See: https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/ - appPasswordRef?: null | #SecretRef @go(AppPasswordRef,*SecretRef) @protobuf(3,bytes,opt) - - // Scan all branches instead of just the main branch. - allBranches?: bool @go(AllBranches) @protobuf(4,varint,opt) -} - -// SCMProviderGeneratorBitbucketServer defines connection info specific to Bitbucket Server. -#SCMProviderGeneratorBitbucketServer: { - // Project to scan. Required. - project: string @go(Project) @protobuf(1,bytes,opt) - - // The Bitbucket Server REST API URL to talk to. Required. - api: string @go(API) @protobuf(2,bytes,opt) - - // Credentials for Basic auth - basicAuth?: null | #BasicAuthBitbucketServer @go(BasicAuth,*BasicAuthBitbucketServer) @protobuf(3,bytes,opt) - - // Scan all branches instead of just the default branch. - allBranches?: bool @go(AllBranches) @protobuf(4,varint,opt) -} - -// SCMProviderGeneratorAzureDevOps defines connection info specific to Azure DevOps. -#SCMProviderGeneratorAzureDevOps: { - // Azure Devops organization. Required. E.g. "my-organization". - organization: string @go(Organization) @protobuf(5,bytes,opt) - - // The URL to Azure DevOps. If blank, use https://dev.azure.com. - api?: string @go(API) @protobuf(6,bytes,opt) - - // Azure Devops team project. Required. E.g. "my-team". - teamProject: string @go(TeamProject) @protobuf(7,bytes,opt) - - // The Personal Access Token (PAT) to use when connecting. Required. - accessTokenRef?: null | #SecretRef @go(AccessTokenRef,*SecretRef) @protobuf(8,bytes,opt) - - // Scan all branches instead of just the default branch. - allBranches?: bool @go(AllBranches) @protobuf(9,varint,opt) -} - -#TagFilter: { - key: string @go(Key) @protobuf(1,bytes,opt) - value?: string @go(Value) @protobuf(2,bytes,opt) -} - -// SCMProviderGeneratorAWSCodeCommit defines connection info specific to AWS CodeCommit. -#SCMProviderGeneratorAWSCodeCommit: { - // TagFilters provides the tag filter(s) for repo discovery - tagFilters?: [...null | #TagFilter] @go(TagFilters,[]*TagFilter) @protobuf(1,bytes,opt) - - // Role provides the AWS IAM role to assume, for cross-account repo discovery - // if not provided, AppSet controller will use its pod/node identity to discover. - role?: string @go(Role) @protobuf(2,bytes,opt) - - // Region provides the AWS region to discover repos. - // if not provided, AppSet controller will infer the current region from environment. - region?: string @go(Region) @protobuf(3,bytes,opt) - - // Scan all branches instead of just the default branch. - allBranches?: bool @go(AllBranches) @protobuf(4,varint,opt) -} - -// SCMProviderGeneratorFilter is a single repository filter. -// If multiple filter types are set on a single struct, they will be AND'd together. All filters must -// pass for a repo to be included. -#SCMProviderGeneratorFilter: { - // A regex for repo names. - repositoryMatch?: null | string @go(RepositoryMatch,*string) @protobuf(1,bytes,opt) - - // An array of paths, all of which must exist. - pathsExist?: [...string] @go(PathsExist,[]string) @protobuf(2,bytes,rep) - - // An array of paths, all of which must not exist. - pathsDoNotExist?: [...string] @go(PathsDoNotExist,[]string) @protobuf(3,bytes,rep) - - // A regex which must match at least one label. - labelMatch?: null | string @go(LabelMatch,*string) @protobuf(4,bytes,opt) - - // A regex which must match the branch name. - branchMatch?: null | string @go(BranchMatch,*string) @protobuf(5,bytes,opt) -} - -// PullRequestGenerator defines a generator that scrapes a PullRequest API to find candidate pull requests. -#PullRequestGenerator: { - // Which provider to use and config for it. - github?: null | #PullRequestGeneratorGithub @go(Github,*PullRequestGeneratorGithub) @protobuf(1,bytes,opt) - gitlab?: null | #PullRequestGeneratorGitLab @go(GitLab,*PullRequestGeneratorGitLab) @protobuf(2,bytes,opt) - gitea?: null | #PullRequestGeneratorGitea @go(Gitea,*PullRequestGeneratorGitea) @protobuf(3,bytes,opt) - bitbucketServer?: null | #PullRequestGeneratorBitbucketServer @go(BitbucketServer,*PullRequestGeneratorBitbucketServer) @protobuf(4,bytes,opt) - - // Filters for which pull requests should be considered. - filters?: [...#PullRequestGeneratorFilter] @go(Filters,[]PullRequestGeneratorFilter) @protobuf(5,bytes,rep) - - // Standard parameters. - requeueAfterSeconds?: null | int64 @go(RequeueAfterSeconds,*int64) @protobuf(6,varint,opt) - template?: #ApplicationSetTemplate @go(Template) @protobuf(7,bytes,opt) - bitbucket?: null | #PullRequestGeneratorBitbucket @go(Bitbucket,*PullRequestGeneratorBitbucket) @protobuf(8,bytes,opt) - - // Additional provider to use and config for it. - azuredevops?: null | #PullRequestGeneratorAzureDevOps @go(AzureDevOps,*PullRequestGeneratorAzureDevOps) @protobuf(9,bytes,opt) -} - -// PullRequestGeneratorGitea defines connection info specific to Gitea. -#PullRequestGeneratorGitea: { - // Gitea org or user to scan. Required. - owner: string @go(Owner) @protobuf(1,bytes,opt) - - // Gitea repo name to scan. Required. - repo: string @go(Repo) @protobuf(2,bytes,opt) - - // The Gitea API URL to talk to. Required - api: string @go(API) @protobuf(3,bytes,opt) - - // Authentication token reference. - tokenRef?: null | #SecretRef @go(TokenRef,*SecretRef) @protobuf(4,bytes,opt) - - // Allow insecure tls, for self-signed certificates; default: false. - insecure?: bool @go(Insecure) @protobuf(5,varint,opt) -} - -// PullRequestGeneratorAzureDevOps defines connection info specific to AzureDevOps. -#PullRequestGeneratorAzureDevOps: { - // Azure DevOps org to scan. Required. - organization: string @go(Organization) @protobuf(1,bytes,opt) - - // Azure DevOps project name to scan. Required. - project: string @go(Project) @protobuf(2,bytes,opt) - - // Azure DevOps repo name to scan. Required. - repo: string @go(Repo) @protobuf(3,bytes,opt) - - // The Azure DevOps API URL to talk to. If blank, use https://dev.azure.com/. - api?: string @go(API) @protobuf(4,bytes,opt) - - // Authentication token reference. - tokenRef?: null | #SecretRef @go(TokenRef,*SecretRef) @protobuf(5,bytes,opt) - - // Labels is used to filter the PRs that you want to target - labels?: [...string] @go(Labels,[]string) @protobuf(6,bytes,rep) -} - -// PullRequestGenerator defines connection info specific to GitHub. -#PullRequestGeneratorGithub: { - // GitHub org or user to scan. Required. - owner: string @go(Owner) @protobuf(1,bytes,opt) - - // GitHub repo name to scan. Required. - repo: string @go(Repo) @protobuf(2,bytes,opt) - - // The GitHub API URL to talk to. If blank, use https://api.github.com/. - api?: string @go(API) @protobuf(3,bytes,opt) - - // Authentication token reference. - tokenRef?: null | #SecretRef @go(TokenRef,*SecretRef) @protobuf(4,bytes,opt) - - // AppSecretName is a reference to a GitHub App repo-creds secret with permission to access pull requests. - appSecretName?: string @go(AppSecretName) @protobuf(5,bytes,opt) - - // Labels is used to filter the PRs that you want to target - labels?: [...string] @go(Labels,[]string) @protobuf(6,bytes,rep) -} - -// PullRequestGeneratorGitLab defines connection info specific to GitLab. -#PullRequestGeneratorGitLab: { - // GitLab project to scan. Required. - project: string @go(Project) @protobuf(1,bytes,opt) - - // The GitLab API URL to talk to. If blank, uses https://gitlab.com/. - api?: string @go(API) @protobuf(2,bytes,opt) - - // Authentication token reference. - tokenRef?: null | #SecretRef @go(TokenRef,*SecretRef) @protobuf(3,bytes,opt) - - // Labels is used to filter the MRs that you want to target - labels?: [...string] @go(Labels,[]string) @protobuf(4,bytes,rep) - - // PullRequestState is an additional MRs filter to get only those with a certain state. Default: "" (all states) - pullRequestState?: string @go(PullRequestState) @protobuf(5,bytes,rep) - - // Skips validating the SCM provider's TLS certificate - useful for self-signed certificates.; default: false - insecure?: bool @go(Insecure) @protobuf(6,varint,opt) -} - -// PullRequestGeneratorBitbucketServer defines connection info specific to BitbucketServer. -#PullRequestGeneratorBitbucketServer: { - // Project to scan. Required. - project: string @go(Project) @protobuf(1,bytes,opt) - - // Repo name to scan. Required. - repo: string @go(Repo) @protobuf(2,bytes,opt) - - // The Bitbucket REST API URL to talk to e.g. https://bitbucket.org/rest Required. - api: string @go(API) @protobuf(3,bytes,opt) - - // Credentials for Basic auth - basicAuth?: null | #BasicAuthBitbucketServer @go(BasicAuth,*BasicAuthBitbucketServer) @protobuf(4,bytes,opt) -} - -// PullRequestGeneratorBitbucket defines connection info specific to Bitbucket. -#PullRequestGeneratorBitbucket: { - // Workspace to scan. Required. - owner: string @go(Owner) @protobuf(1,bytes,opt) - - // Repo name to scan. Required. - repo: string @go(Repo) @protobuf(2,bytes,opt) - - // The Bitbucket REST API URL to talk to. If blank, uses https://api.bitbucket.org/2.0. - api?: string @go(API) @protobuf(3,bytes,opt) - - // Credentials for Basic auth - basicAuth?: null | #BasicAuthBitbucketServer @go(BasicAuth,*BasicAuthBitbucketServer) @protobuf(4,bytes,opt) - - // Credentials for AppToken (Bearer auth) - bearerToken?: null | #BearerTokenBitbucketCloud @go(BearerToken,*BearerTokenBitbucketCloud) @protobuf(5,bytes,opt) -} - -// BearerTokenBitbucketCloud defines the Bearer token for BitBucket AppToken auth. -#BearerTokenBitbucketCloud: { - // Password (or personal access token) reference. - tokenRef?: null | #SecretRef @go(TokenRef,*SecretRef) @protobuf(1,bytes,opt) -} - -// BasicAuthBitbucketServer defines the username/(password or personal access token) for Basic auth. -#BasicAuthBitbucketServer: { - // Username for Basic auth - username: string @go(Username) @protobuf(1,bytes,opt) - - // Password (or personal access token) reference. - passwordRef?: null | #SecretRef @go(PasswordRef,*SecretRef) @protobuf(2,bytes,opt) -} - -// PullRequestGeneratorFilter is a single pull request filter. -// If multiple filter types are set on a single struct, they will be AND'd together. All filters must -// pass for a pull request to be included. -#PullRequestGeneratorFilter: { - branchMatch?: null | string @go(BranchMatch,*string) @protobuf(1,bytes,opt) - targetBranchMatch?: null | string @go(TargetBranchMatch,*string) @protobuf(2,bytes,opt) -} - -#PluginConfigMapRef: { - // Name of the ConfigMap - name: string @go(Name) @protobuf(1,bytes,opt) -} - -#PluginParameters: [string]: apiextensionsv1.#JSON - -#PluginInput: { - // Parameters contains the information to pass to the plugin. It is a map. The keys must be strings, and the - // values can be any type. - parameters?: #PluginParameters @go(Parameters) @protobuf(1,bytes) -} - -// PluginGenerator defines connection info specific to Plugin. -#PluginGenerator: { - configMapRef: #PluginConfigMapRef @go(ConfigMapRef) @protobuf(1,bytes) - input?: #PluginInput @go(Input) @protobuf(2,bytes) - - // RequeueAfterSeconds determines how long the ApplicationSet controller will wait before reconciling the ApplicationSet again. - requeueAfterSeconds?: null | int64 @go(RequeueAfterSeconds,*int64) @protobuf(3,varint,opt) - template?: #ApplicationSetTemplate @go(Template) @protobuf(4,bytes) - - // Values contains key/value pairs which are passed directly as parameters to the template. These values will not be - // sent as parameters to the plugin. - values?: {[string]: string} @go(Values,map[string]string) @protobuf(5,bytes) -} - -// ApplicationSetStatus defines the observed state of ApplicationSet -#ApplicationSetStatus: { - // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster - // Important: Run "make" to regenerate code after modifying this file - conditions?: [...#ApplicationSetCondition] @go(Conditions,[]ApplicationSetCondition) @protobuf(1,bytes) - applicationStatus?: [...#ApplicationSetApplicationStatus] @go(ApplicationStatus,[]ApplicationSetApplicationStatus) @protobuf(2,bytes) -} - -// ApplicationSetCondition contains details about an applicationset condition, which is usally an error or warning -#ApplicationSetCondition: { - // Type is an applicationset condition type - type: #ApplicationSetConditionType @go(Type) @protobuf(1,bytes,opt) - - // Message contains human-readable message indicating details about condition - message: string @go(Message) @protobuf(2,bytes,opt) - - // LastTransitionTime is the time the condition was last observed - lastTransitionTime?: null | metav1.#Time @go(LastTransitionTime,*metav1.Time) @protobuf(3,bytes,opt) - - // True/False/Unknown - status: #ApplicationSetConditionStatus @go(Status) @protobuf(4,bytes,opt) - - //Single word camelcase representing the reason for the status eg ErrorOccurred - reason: string @go(Reason) @protobuf(5,bytes,opt) -} - -// SyncStatusCode is a type which represents possible comparison results -#ApplicationSetConditionStatus: string // #enumApplicationSetConditionStatus - -#enumApplicationSetConditionStatus: - #ApplicationSetConditionStatusTrue | - #ApplicationSetConditionStatusFalse | - #ApplicationSetConditionStatusUnknown - -// ApplicationSetConditionStatusTrue indicates that a application has been successfully established -#ApplicationSetConditionStatusTrue: #ApplicationSetConditionStatus & "True" - -// ApplicationSetConditionStatusFalse indicates that a application attempt has failed -#ApplicationSetConditionStatusFalse: #ApplicationSetConditionStatus & "False" - -// ApplicationSetConditionStatusUnknown indicates that the application condition status could not be reliably determined -#ApplicationSetConditionStatusUnknown: #ApplicationSetConditionStatus & "Unknown" - -// ApplicationSetConditionType represents type of application condition. Type name has following convention: -// prefix "Error" means error condition -// prefix "Warning" means warning condition -// prefix "Info" means informational condition -#ApplicationSetConditionType: string // #enumApplicationSetConditionType - -#enumApplicationSetConditionType: - #ApplicationSetConditionErrorOccurred | - #ApplicationSetConditionParametersGenerated | - #ApplicationSetConditionResourcesUpToDate | - #ApplicationSetConditionRolloutProgressing - -#ApplicationSetConditionErrorOccurred: #ApplicationSetConditionType & "ErrorOccurred" -#ApplicationSetConditionParametersGenerated: #ApplicationSetConditionType & "ParametersGenerated" -#ApplicationSetConditionResourcesUpToDate: #ApplicationSetConditionType & "ResourcesUpToDate" -#ApplicationSetConditionRolloutProgressing: #ApplicationSetConditionType & "RolloutProgressing" - -#ApplicationSetReasonType: string - -#ApplicationSetReasonErrorOccurred: "ErrorOccurred" -#ApplicationSetReasonApplicationSetUpToDate: "ApplicationSetUpToDate" -#ApplicationSetReasonParametersGenerated: "ParametersGenerated" -#ApplicationSetReasonApplicationGenerated: "ApplicationGeneratedSuccessfully" -#ApplicationSetReasonUpdateApplicationError: "UpdateApplicationError" -#ApplicationSetReasonApplicationParamsGenerationError: "ApplicationGenerationFromParamsError" -#ApplicationSetReasonRenderTemplateParamsError: "RenderTemplateParamsError" -#ApplicationSetReasonCreateApplicationError: "CreateApplicationError" -#ApplicationSetReasonDeleteApplicationError: "DeleteApplicationError" -#ApplicationSetReasonRefreshApplicationError: "RefreshApplicationError" -#ApplicationSetReasonApplicationValidationError: "ApplicationValidationError" -#ApplicationSetReasonApplicationSetModified: "ApplicationSetModified" -#ApplicationSetReasonApplicationSetRolloutComplete: "ApplicationSetRolloutComplete" -#ApplicationSetReasonSyncApplicationError: "SyncApplicationError" - -// ApplicationSetApplicationStatus contains details about each Application managed by the ApplicationSet -#ApplicationSetApplicationStatus: { - // Application contains the name of the Application resource - application: string @go(Application) @protobuf(1,bytes,opt) - - // LastTransitionTime is the time the status was last updated - lastTransitionTime?: null | metav1.#Time @go(LastTransitionTime,*metav1.Time) @protobuf(2,bytes,opt) - - // Message contains human-readable message indicating details about the status - message: string @go(Message) @protobuf(3,bytes,opt) - - // Status contains the AppSet's perceived status of the managed Application resource: (Waiting, Pending, Progressing, Healthy) - status: string @go(Status) @protobuf(4,bytes,opt) - - // Step tracks which step this Application should be updated in - step: string @go(Step) @protobuf(5,bytes,opt) -} - -// ApplicationSetList contains a list of ApplicationSet -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:object:root=true -#ApplicationSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - items: [...#ApplicationSet] @go(Items,[]ApplicationSet) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/cluster_constants_go_gen.cue b/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/cluster_constants_go_gen.cue deleted file mode 100644 index 9f908f0..0000000 --- a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/cluster_constants_go_gen.cue +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1 - -package v1alpha1 - -// EnvVarFakeInClusterConfig is an environment variable to fake an in-cluster RESTConfig using -// the current kubectl context (for development purposes) -#EnvVarFakeInClusterConfig: "ARGOCD_FAKE_IN_CLUSTER" - -// EnvK8sClientQPS is the QPS value used for the kubernetes client (default: 50) -#EnvK8sClientQPS: "ARGOCD_K8S_CLIENT_QPS" - -// EnvK8sClientBurst is the burst value used for the kubernetes client (default: twice the client QPS) -#EnvK8sClientBurst: "ARGOCD_K8S_CLIENT_BURST" - -// EnvK8sClientMaxIdleConnections is the number of max idle connections in K8s REST client HTTP transport (default: 500) -#EnvK8sClientMaxIdleConnections: "ARGOCD_K8S_CLIENT_MAX_IDLE_CONNECTIONS" - -// EnvK8sTCPTimeout is the duration for TCP timeouts when communicating with K8s API servers -#EnvK8sTCPTimeout: "ARGOCD_K8S_TCP_TIMEOUT" - -// EnvK8sTCPKeepalive is the interval for TCP keep alive probes to be sent when communicating with K8s API servers -#EnvK8sTCPKeepAlive: "ARGOCD_K8S_TCP_KEEPALIVE" - -// EnvK8sTLSHandshakeTimeout is the duration for TLS handshake timeouts when establishing connections to K8s API servers -#EnvK8sTLSHandshakeTimeout: "ARGOCD_K8S_TLS_HANDSHAKE_TIMEOUT" - -// EnvK8sTCPIdleConnTimeout is the duration when idle TCP connection to the K8s API servers should timeout -#EnvK8sTCPIdleConnTimeout: "ARGOCD_K8S_TCP_IDLE_TIMEOUT" diff --git a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/doc_go_gen.cue b/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/doc_go_gen.cue deleted file mode 100644 index 1c7667c..0000000 --- a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1 - -// Package v1alpha1 is the v1alpha1 version of the API. -// +groupName=argoproj.io -// +k8s:deepcopy-gen=package,register -// +k8s:openapi-gen=true -package v1alpha1 diff --git a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/hack_go_gen.cue b/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/hack_go_gen.cue deleted file mode 100644 index e373b3a..0000000 --- a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/hack_go_gen.cue +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1 - -package v1alpha1 - -// objectMeta and corresponding GetMetadata() methods is a hack to allow us to use grpc-gateway -// side-by-side with k8s protobuf codegen. The grpc-gateway generated .gw.pb.go files expect a -// GetMetadata() method to be generated because it assumes the .proto files were generated from -// protoc --go_out=plugins=grpc. Instead, kubernetes uses go-to-protobuf to generate .proto files -// from go types, and this method is not auto-generated (presumably since ObjectMeta is embedded but -// is nested in the 'metadata' field in JSON form). -_#objectMeta: { - Name?: null | string @go(,*string) -} diff --git a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/repository_types_go_gen.cue b/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/repository_types_go_gen.cue deleted file mode 100644 index 214b374..0000000 --- a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/repository_types_go_gen.cue +++ /dev/null @@ -1,193 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1 - -package v1alpha1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// RepoCreds holds the definition for repository credentials -#RepoCreds: { - // URL is the URL that this credentials matches to - url: string @go(URL) @protobuf(1,bytes,opt) - - // Username for authenticating at the repo server - username?: string @go(Username) @protobuf(2,bytes,opt) - - // Password for authenticating at the repo server - password?: string @go(Password) @protobuf(3,bytes,opt) - - // SSHPrivateKey contains the private key data for authenticating at the repo server using SSH (only Git repos) - sshPrivateKey?: string @go(SSHPrivateKey) @protobuf(4,bytes,opt) - - // TLSClientCertData specifies the TLS client cert data for authenticating at the repo server - tlsClientCertData?: string @go(TLSClientCertData) @protobuf(5,bytes,opt) - - // TLSClientCertKey specifies the TLS client cert key for authenticating at the repo server - tlsClientCertKey?: string @go(TLSClientCertKey) @protobuf(6,bytes,opt) - - // GithubAppPrivateKey specifies the private key PEM data for authentication via GitHub app - githubAppPrivateKey?: string @go(GithubAppPrivateKey) @protobuf(7,bytes,opt) - - // GithubAppId specifies the Github App ID of the app used to access the repo for GitHub app authentication - githubAppID?: int64 @go(GithubAppId) @protobuf(8,bytes,opt) - - // GithubAppInstallationId specifies the ID of the installed GitHub App for GitHub app authentication - githubAppInstallationID?: int64 @go(GithubAppInstallationId) @protobuf(9,bytes,opt) - - // GithubAppEnterpriseBaseURL specifies the GitHub API URL for GitHub app authentication. If empty will default to https://api.github.com - githubAppEnterpriseBaseUrl?: string @go(GitHubAppEnterpriseBaseURL) @protobuf(10,bytes,opt) - - // EnableOCI specifies whether helm-oci support should be enabled for this repo - enableOCI?: bool @go(EnableOCI) @protobuf(11,bytes,opt) - - // Type specifies the type of the repoCreds. Can be either "git" or "helm. "git" is assumed if empty or absent. - type?: string @go(Type) @protobuf(12,bytes,opt) - - // GCPServiceAccountKey specifies the service account key in JSON format to be used for getting credentials to Google Cloud Source repos - gcpServiceAccountKey?: string @go(GCPServiceAccountKey) @protobuf(13,bytes,opt) - - // Proxy specifies the HTTP/HTTPS proxy used to access repos at the repo server - proxy?: string @go(Proxy) @protobuf(19,bytes,opt) - - // ForceHttpBasicAuth specifies whether Argo CD should attempt to force basic auth for HTTP connections - forceHttpBasicAuth?: bool @go(ForceHttpBasicAuth) @protobuf(20,bytes,opt) -} - -// Repository is a repository holding application configurations -#Repository: { - // Repo contains the URL to the remote repository - repo: string @go(Repo) @protobuf(1,bytes,opt) - - // Username contains the user name used for authenticating at the remote repository - username?: string @go(Username) @protobuf(2,bytes,opt) - - // Password contains the password or PAT used for authenticating at the remote repository - password?: string @go(Password) @protobuf(3,bytes,opt) - - // SSHPrivateKey contains the PEM data for authenticating at the repo server. Only used with Git repos. - sshPrivateKey?: string @go(SSHPrivateKey) @protobuf(4,bytes,opt) - - // ConnectionState contains information about the current state of connection to the repository server - connectionState?: #ConnectionState @go(ConnectionState) @protobuf(5,bytes,opt) - - // InsecureIgnoreHostKey should not be used anymore, Insecure is favoured - // Used only for Git repos - insecureIgnoreHostKey?: bool @go(InsecureIgnoreHostKey) @protobuf(6,bytes,opt) - - // Insecure specifies whether the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys - insecure?: bool @go(Insecure) @protobuf(7,bytes,opt) - - // EnableLFS specifies whether git-lfs support should be enabled for this repo. Only valid for Git repositories. - enableLfs?: bool @go(EnableLFS) @protobuf(8,bytes,opt) - - // TLSClientCertData contains a certificate in PEM format for authenticating at the repo server - tlsClientCertData?: string @go(TLSClientCertData) @protobuf(9,bytes,opt) - - // TLSClientCertKey contains a private key in PEM format for authenticating at the repo server - tlsClientCertKey?: string @go(TLSClientCertKey) @protobuf(10,bytes,opt) - - // Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent. - type?: string @go(Type) @protobuf(11,bytes,opt) - - // Name specifies a name to be used for this repo. Only used with Helm repos - name?: string @go(Name) @protobuf(12,bytes,opt) - - // Whether credentials were inherited from a credential set - inheritedCreds?: bool @go(InheritedCreds) @protobuf(13,bytes,opt) - - // EnableOCI specifies whether helm-oci support should be enabled for this repo - enableOCI?: bool @go(EnableOCI) @protobuf(14,bytes,opt) - - // Github App Private Key PEM data - githubAppPrivateKey?: string @go(GithubAppPrivateKey) @protobuf(15,bytes,opt) - - // GithubAppId specifies the ID of the GitHub app used to access the repo - githubAppID?: int64 @go(GithubAppId) @protobuf(16,bytes,opt) - - // GithubAppInstallationId specifies the installation ID of the GitHub App used to access the repo - githubAppInstallationID?: int64 @go(GithubAppInstallationId) @protobuf(17,bytes,opt) - - // GithubAppEnterpriseBaseURL specifies the base URL of GitHub Enterprise installation. If empty will default to https://api.github.com - githubAppEnterpriseBaseUrl?: string @go(GitHubAppEnterpriseBaseURL) @protobuf(18,bytes,opt) - - // Proxy specifies the HTTP/HTTPS proxy used to access the repo - proxy?: string @go(Proxy) @protobuf(19,bytes,opt) - - // Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity - project?: string @go(Project) @protobuf(20,bytes,opt) - - // GCPServiceAccountKey specifies the service account key in JSON format to be used for getting credentials to Google Cloud Source repos - gcpServiceAccountKey?: string @go(GCPServiceAccountKey) @protobuf(21,bytes,opt) - - // ForceHttpBasicAuth specifies whether Argo CD should attempt to force basic auth for HTTP connections - forceHttpBasicAuth?: bool @go(ForceHttpBasicAuth) @protobuf(22,bytes,opt) -} - -// Repositories defines a list of Repository configurations -#Repositories: [...null | #Repository] - -// RepositoryList is a collection of Repositories. -#RepositoryList: { - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - items: #Repositories @go(Items) @protobuf(2,bytes,rep) -} - -// RepositoryList is a collection of Repositories. -#RepoCredsList: { - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - items: [...#RepoCreds] @go(Items,[]RepoCreds) @protobuf(2,bytes,rep) -} - -// A RepositoryCertificate is either SSH known hosts entry or TLS certificate -#RepositoryCertificate: { - // ServerName specifies the DNS name of the server this certificate is intended for - serverName: string @go(ServerName) @protobuf(1,bytes,opt) - - // CertType specifies the type of the certificate - currently one of "https" or "ssh" - certType: string @go(CertType) @protobuf(2,bytes,opt) - - // CertSubType specifies the sub type of the cert, i.e. "ssh-rsa" - certSubType: string @go(CertSubType) @protobuf(3,bytes,opt) - - // CertData contains the actual certificate data, dependent on the certificate type - certData: bytes @go(CertData,[]byte) @protobuf(4,bytes,opt) - - // CertInfo will hold additional certificate info, depdendent on the certificate type (e.g. SSH fingerprint, X509 CommonName) - certInfo: string @go(CertInfo) @protobuf(5,bytes,opt) -} - -// RepositoryCertificateList is a collection of RepositoryCertificates -#RepositoryCertificateList: { - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of certificates to be processed - items: [...#RepositoryCertificate] @go(Items,[]RepositoryCertificate) @protobuf(2,bytes,rep) -} - -// GnuPGPublicKey is a representation of a GnuPG public key -#GnuPGPublicKey: { - // KeyID specifies the key ID, in hexadecimal string format - keyID: string @go(KeyID) @protobuf(1,bytes,opt) - - // Fingerprint is the fingerprint of the key - fingerprint?: string @go(Fingerprint) @protobuf(2,bytes,opt) - - // Owner holds the owner identification, e.g. a name and e-mail address - owner?: string @go(Owner) @protobuf(3,bytes,opt) - - // Trust holds the level of trust assigned to this key - trust?: string @go(Trust) @protobuf(4,bytes,opt) - - // SubType holds the key's sub type (e.g. rsa4096) - subType?: string @go(SubType) @protobuf(5,bytes,opt) - - // KeyData holds the raw key data, in base64 encoded format - keyData?: string @go(KeyData) @protobuf(6,bytes,opt) -} - -// GnuPGPublicKeyList is a collection of GnuPGPublicKey objects -#GnuPGPublicKeyList: { - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - items: [...#GnuPGPublicKey] @go(Items,[]GnuPGPublicKey) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/types_go_gen.cue b/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/types_go_gen.cue deleted file mode 100644 index f6743a5..0000000 --- a/cue.mod/gen/github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,1327 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1 - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/util/intstr" - synccommon "github.com/argoproj/gitops-engine/pkg/sync/common" - "k8s.io/apimachinery/pkg/watch" - "github.com/argoproj/gitops-engine/pkg/health" - "k8s.io/api/core/v1" -) - -// Application is a definition of Application resource. -// +genclient -// +genclient:noStatus -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:resource:path=applications,shortName=app;apps -// +kubebuilder:printcolumn:name="Sync Status",type=string,JSONPath=`.status.sync.status` -// +kubebuilder:printcolumn:name="Health Status",type=string,JSONPath=`.status.health.status` -// +kubebuilder:printcolumn:name="Revision",type=string,JSONPath=`.status.sync.revision`,priority=10 -#Application: { - metav1.#TypeMeta - metadata: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - spec: #ApplicationSpec @go(Spec) @protobuf(2,bytes,opt) - status?: #ApplicationStatus @go(Status) @protobuf(3,bytes,opt) - operation?: null | #Operation @go(Operation,*Operation) @protobuf(4,bytes,opt) -} - -// ApplicationSpec represents desired application state. Contains link to repository with application definition and additional parameters link definition revision. -#ApplicationSpec: { - // Source is a reference to the location of the application's manifests or chart - source?: null | #ApplicationSource @go(Source,*ApplicationSource) @protobuf(1,bytes,opt) - - // Destination is a reference to the target Kubernetes server and namespace - destination: #ApplicationDestination @go(Destination) @protobuf(2,bytes) - - // Project is a reference to the project this application belongs to. - // The empty string means that application belongs to the 'default' project. - project: string @go(Project) @protobuf(3,bytes) - - // SyncPolicy controls when and how a sync will be performed - syncPolicy?: null | #SyncPolicy @go(SyncPolicy,*SyncPolicy) @protobuf(4,bytes) - - // IgnoreDifferences is a list of resources and their fields which should be ignored during comparison - ignoreDifferences?: #IgnoreDifferences @go(IgnoreDifferences) @protobuf(5,bytes) - - // Info contains a list of information (URLs, email addresses, and plain text) that relates to the application - info?: [...#Info] @go(Info,[]Info) @protobuf(6,bytes) - - // RevisionHistoryLimit limits the number of items kept in the application's revision history, which is used for informational purposes as well as for rollbacks to previous versions. - // This should only be changed in exceptional circumstances. - // Setting to zero will store no history. This will reduce storage used. - // Increasing will increase the space used to store the history, so we do not recommend increasing it. - // Default is 10. - revisionHistoryLimit?: null | int64 @go(RevisionHistoryLimit,*int64) @protobuf(7,bytes) - - // Sources is a reference to the location of the application's manifests or chart - sources?: #ApplicationSources @go(Sources) @protobuf(8,bytes,opt) -} - -#IgnoreDifferences: [...#ResourceIgnoreDifferences] - -#TrackingMethod: string - -// ResourceIgnoreDifferences contains resource filter and list of json paths which should be ignored during comparison with live state. -#ResourceIgnoreDifferences: { - group?: string @go(Group) @protobuf(1,bytes,opt) - kind: string @go(Kind) @protobuf(2,bytes,opt) - name?: string @go(Name) @protobuf(3,bytes,opt) - namespace?: string @go(Namespace) @protobuf(4,bytes,opt) - jsonPointers?: [...string] @go(JSONPointers,[]string) @protobuf(5,bytes,opt) - jqPathExpressions?: [...string] @go(JQPathExpressions,[]string) @protobuf(6,bytes,opt) - - // ManagedFieldsManagers is a list of trusted managers. Fields mutated by those managers will take precedence over the - // desired state defined in the SCM and won't be displayed in diffs - managedFieldsManagers?: [...string] @go(ManagedFieldsManagers,[]string) @protobuf(7,bytes,opt) -} - -// EnvEntry represents an entry in the application's environment -#EnvEntry: { - // Name is the name of the variable, usually expressed in uppercase - name: string @go(Name) @protobuf(1,bytes,opt) - - // Value is the value of the variable - value: string @go(Value) @protobuf(2,bytes,opt) -} - -// Env is a list of environment variable entries -#Env: [...null | #EnvEntry] - -// ApplicationSource contains all required information about the source of an application -#ApplicationSource: { - // RepoURL is the URL to the repository (Git or Helm) that contains the application manifests - repoURL: string @go(RepoURL) @protobuf(1,bytes,opt) - - // Path is a directory path within the Git repository, and is only valid for applications sourced from Git. - path?: string @go(Path) @protobuf(2,bytes,opt) - - // TargetRevision defines the revision of the source to sync the application to. - // In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. - // In case of Helm, this is a semver tag for the Chart's version. - targetRevision?: string @go(TargetRevision) @protobuf(4,bytes,opt) - - // Helm holds helm specific options - helm?: null | #ApplicationSourceHelm @go(Helm,*ApplicationSourceHelm) @protobuf(7,bytes,opt) - - // Kustomize holds kustomize specific options - kustomize?: null | #ApplicationSourceKustomize @go(Kustomize,*ApplicationSourceKustomize) @protobuf(8,bytes,opt) - - // Directory holds path/directory specific options - directory?: null | #ApplicationSourceDirectory @go(Directory,*ApplicationSourceDirectory) @protobuf(10,bytes,opt) - - // Plugin holds config management plugin specific options - plugin?: null | #ApplicationSourcePlugin @go(Plugin,*ApplicationSourcePlugin) @protobuf(11,bytes,opt) - - // Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. - chart?: string @go(Chart) @protobuf(12,bytes,opt) - - // Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. - ref?: string @go(Ref) @protobuf(13,bytes,opt) -} - -// ApplicationSources contains list of required information about the sources of an application -#ApplicationSources: [...#ApplicationSource] - -// ApplicationSourceType specifies the type of the application's source -#ApplicationSourceType: string // #enumApplicationSourceType - -#enumApplicationSourceType: - #ApplicationSourceTypeHelm | - #ApplicationSourceTypeKustomize | - #ApplicationSourceTypeDirectory | - #ApplicationSourceTypePlugin - -#ApplicationSourceTypeHelm: #ApplicationSourceType & "Helm" -#ApplicationSourceTypeKustomize: #ApplicationSourceType & "Kustomize" -#ApplicationSourceTypeDirectory: #ApplicationSourceType & "Directory" -#ApplicationSourceTypePlugin: #ApplicationSourceType & "Plugin" - -// RefreshType specifies how to refresh the sources of a given application -#RefreshType: string // #enumRefreshType - -#enumRefreshType: - #RefreshTypeNormal | - #RefreshTypeHard - -#RefreshTypeNormal: #RefreshType & "normal" -#RefreshTypeHard: #RefreshType & "hard" - -#RefTarget: { - Repo: #Repository @protobuf(1,bytes,opt,name=repo) - TargetRevision: string @protobuf(2,bytes,opt,name=targetRevision) - Chart: string @protobuf(3,bytes,opt,name=chart) -} - -#RefTargetRevisionMapping: [string]: null | #RefTarget - -// ApplicationSourceHelm holds helm specific options -#ApplicationSourceHelm: { - // ValuesFiles is a list of Helm value files to use when generating a template - valueFiles?: [...string] @go(ValueFiles,[]string) @protobuf(1,bytes,opt) - - // Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation - parameters?: [...#HelmParameter] @go(Parameters,[]HelmParameter) @protobuf(2,bytes,opt) - - // ReleaseName is the Helm release name to use. If omitted it will use the application name - releaseName?: string @go(ReleaseName) @protobuf(3,bytes,opt) - - // Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. - // +patchStrategy=replace - values?: string @go(Values) @protobuf(4,bytes,opt) - - // FileParameters are file parameters to the helm template - fileParameters?: [...#HelmFileParameter] @go(FileParameters,[]HelmFileParameter) @protobuf(5,bytes,opt) - - // Version is the Helm version to use for templating ("3") - version?: string @go(Version) @protobuf(6,bytes,opt) - - // PassCredentials pass credentials to all domains (Helm's --pass-credentials) - passCredentials?: bool @go(PassCredentials) @protobuf(7,bytes,opt) - - // IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values - ignoreMissingValueFiles?: bool @go(IgnoreMissingValueFiles) @protobuf(8,bytes,opt) - - // SkipCrds skips custom resource definition installation step (Helm's --skip-crds) - skipCrds?: bool @go(SkipCrds) @protobuf(9,bytes,opt) - - // ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. - // +kubebuilder:pruning:PreserveUnknownFields - valuesObject?: null | runtime.#RawExtension @go(ValuesObject,*runtime.RawExtension) @protobuf(10,bytes,opt) -} - -// HelmParameter is a parameter that's passed to helm template during manifest generation -#HelmParameter: { - // Name is the name of the Helm parameter - name?: string @go(Name) @protobuf(1,bytes,opt) - - // Value is the value for the Helm parameter - value?: string @go(Value) @protobuf(2,bytes,opt) - - // ForceString determines whether to tell Helm to interpret booleans and numbers as strings - forceString?: bool @go(ForceString) @protobuf(3,bytes,opt) -} - -// HelmFileParameter is a file parameter that's passed to helm template during manifest generation -#HelmFileParameter: { - // Name is the name of the Helm parameter - name?: string @go(Name) @protobuf(1,bytes,opt) - - // Path is the path to the file containing the values for the Helm parameter - path?: string @go(Path) @protobuf(2,bytes,opt) -} - -// KustomizeImage represents a Kustomize image definition in the format [old_image_name=]: -#KustomizeImage: string - -// KustomizeImages is a list of Kustomize images -#KustomizeImages: [...#KustomizeImage] - -// ApplicationSourceKustomize holds options specific to an Application source specific to Kustomize -#ApplicationSourceKustomize: { - // NamePrefix is a prefix appended to resources for Kustomize apps - namePrefix?: string @go(NamePrefix) @protobuf(1,bytes,opt) - - // NameSuffix is a suffix appended to resources for Kustomize apps - nameSuffix?: string @go(NameSuffix) @protobuf(2,bytes,opt) - - // Images is a list of Kustomize image override specifications - images?: #KustomizeImages @go(Images) @protobuf(3,bytes,opt) - - // CommonLabels is a list of additional labels to add to rendered manifests - commonLabels?: {[string]: string} @go(CommonLabels,map[string]string) @protobuf(4,bytes,opt) - - // Version controls which version of Kustomize to use for rendering manifests - version?: string @go(Version) @protobuf(5,bytes,opt) - - // CommonAnnotations is a list of additional annotations to add to rendered manifests - commonAnnotations?: {[string]: string} @go(CommonAnnotations,map[string]string) @protobuf(6,bytes,opt) - - // ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps - forceCommonLabels?: bool @go(ForceCommonLabels) @protobuf(7,bytes,opt) - - // ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps - forceCommonAnnotations?: bool @go(ForceCommonAnnotations) @protobuf(8,bytes,opt) - - // Namespace sets the namespace that Kustomize adds to all resources - namespace?: string @go(Namespace) @protobuf(9,bytes,opt) - - // CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values - commonAnnotationsEnvsubst?: bool @go(CommonAnnotationsEnvsubst) @protobuf(10,bytes,opt) - - // Replicas is a list of Kustomize Replicas override specifications - replicas?: #KustomizeReplicas @go(Replicas) @protobuf(11,bytes,opt) -} - -#KustomizeReplica: { - // Name of Deployment or StatefulSet - name: string @go(Name) @protobuf(1,bytes) - - // Number of replicas - count: intstr.#IntOrString @go(Count) @protobuf(2,bytes) -} - -#KustomizeReplicas: [...#KustomizeReplica] - -// JsonnetVar represents a variable to be passed to jsonnet during manifest generation -#JsonnetVar: { - name: string @go(Name) @protobuf(1,bytes,opt) - value: string @go(Value) @protobuf(2,bytes,opt) - code?: bool @go(Code) @protobuf(3,bytes,opt) -} - -// ApplicationSourceJsonnet holds options specific to applications of type Jsonnet -#ApplicationSourceJsonnet: { - // ExtVars is a list of Jsonnet External Variables - extVars?: [...#JsonnetVar] @go(ExtVars,[]JsonnetVar) @protobuf(1,bytes,opt) - - // TLAS is a list of Jsonnet Top-level Arguments - tlas?: [...#JsonnetVar] @go(TLAs,[]JsonnetVar) @protobuf(2,bytes,opt) - - // Additional library search dirs - libs?: [...string] @go(Libs,[]string) @protobuf(3,bytes,opt) -} - -// ApplicationSourceDirectory holds options for applications of type plain YAML or Jsonnet -#ApplicationSourceDirectory: { - // Recurse specifies whether to scan a directory recursively for manifests - recurse?: bool @go(Recurse) @protobuf(1,bytes,opt) - - // Jsonnet holds options specific to Jsonnet - jsonnet?: #ApplicationSourceJsonnet @go(Jsonnet) @protobuf(2,bytes,opt) - - // Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation - exclude?: string @go(Exclude) @protobuf(3,bytes,opt) - - // Include contains a glob pattern to match paths against that should be explicitly included during manifest generation - include?: string @go(Include) @protobuf(4,bytes,opt) -} - -#OptionalMap: { - // Map is the value of a map type parameter. - // +optional - map: {[string]: string} @go(Map,map[string]string) @protobuf(1,bytes,rep) -} - -#OptionalArray: { - // Array is the value of an array type parameter. - // +optional - array: [...string] @go(Array,[]string) @protobuf(1,bytes,rep) -} - -#ApplicationSourcePluginParameter: _ - -#ApplicationSourcePluginParameters: [...#ApplicationSourcePluginParameter] - -// ApplicationSourcePlugin holds options specific to config management plugins -#ApplicationSourcePlugin: { - name?: string @go(Name) @protobuf(1,bytes,opt) - env?: #Env @go(Env) @protobuf(2,bytes,opt) - parameters?: #ApplicationSourcePluginParameters @go(Parameters) @protobuf(3,bytes,opt) -} - -// ApplicationDestination holds information about the application's destination -#ApplicationDestination: _ - -#ResourceHealthLocation: string - -// ApplicationStatus contains status information for the application -#ApplicationStatus: { - // Resources is a list of Kubernetes resources managed by this application - resources?: [...#ResourceStatus] @go(Resources,[]ResourceStatus) @protobuf(1,bytes,opt) - - // Sync contains information about the application's current sync status - sync?: #SyncStatus @go(Sync) @protobuf(2,bytes,opt) - - // Health contains information about the application's current health status - health?: #HealthStatus @go(Health) @protobuf(3,bytes,opt) - - // History contains information about the application's sync history - history?: #RevisionHistories @go(History) @protobuf(4,bytes,opt) - - // Conditions is a list of currently observed application conditions - conditions?: [...#ApplicationCondition] @go(Conditions,[]ApplicationCondition) @protobuf(5,bytes,opt) - - // ReconciledAt indicates when the application state was reconciled using the latest git version - reconciledAt?: null | metav1.#Time @go(ReconciledAt,*metav1.Time) @protobuf(6,bytes,opt) - - // OperationState contains information about any ongoing operations, such as a sync - operationState?: null | #OperationState @go(OperationState,*OperationState) @protobuf(7,bytes,opt) - - // ObservedAt indicates when the application state was updated without querying latest git state - // Deprecated: controller no longer updates ObservedAt field - observedAt?: null | metav1.#Time @go(ObservedAt,*metav1.Time) @protobuf(8,bytes,opt) - - // SourceType specifies the type of this application - sourceType?: #ApplicationSourceType @go(SourceType) @protobuf(9,bytes,opt) - - // Summary contains a list of URLs and container images used by this application - summary?: #ApplicationSummary @go(Summary) @protobuf(10,bytes,opt) - - // ResourceHealthSource indicates where the resource health status is stored: inline if not set or appTree - resourceHealthSource?: #ResourceHealthLocation @go(ResourceHealthSource) @protobuf(11,bytes,opt) - - // SourceTypes specifies the type of the sources included in the application - sourceTypes?: [...#ApplicationSourceType] @go(SourceTypes,[]ApplicationSourceType) @protobuf(12,bytes,opt) - - // ControllerNamespace indicates the namespace in which the application controller is located - controllerNamespace?: string @go(ControllerNamespace) @protobuf(13,bytes,opt) -} - -// JWTTokens represents a list of JWT tokens -#JWTTokens: { - items?: [...#JWTToken] @go(Items,[]JWTToken) @protobuf(1,bytes,opt) -} - -// OperationInitiator contains information about the initiator of an operation -#OperationInitiator: { - // Username contains the name of a user who started operation - username?: string @go(Username) @protobuf(1,bytes,opt) - - // Automated is set to true if operation was initiated automatically by the application controller. - automated?: bool @go(Automated) @protobuf(2,bytes,opt) -} - -// Operation contains information about a requested or running operation -#Operation: { - // Sync contains parameters for the operation - sync?: null | #SyncOperation @go(Sync,*SyncOperation) @protobuf(1,bytes,opt) - - // InitiatedBy contains information about who initiated the operations - initiatedBy?: #OperationInitiator @go(InitiatedBy) @protobuf(2,bytes,opt) - - // Info is a list of informational items for this operation - info?: [...null | #Info] @go(Info,[]*Info) @protobuf(3,bytes) - - // Retry controls the strategy to apply if a sync fails - retry?: #RetryStrategy @go(Retry) @protobuf(4,bytes,opt) -} - -// SyncOperationResource contains resources to sync. -#SyncOperationResource: { - group?: string @go(Group) @protobuf(1,bytes,opt) - kind: string @go(Kind) @protobuf(2,bytes,opt) - name: string @go(Name) @protobuf(3,bytes,opt) - namespace?: string @go(Namespace) @protobuf(4,bytes,opt) -} - -// RevisionHistories is a array of history, oldest first and newest last -#RevisionHistories: [...#RevisionHistory] - -// SyncOperation contains details about a sync operation. -#SyncOperation: { - // Revision is the revision (Git) or chart version (Helm) which to sync the application to - // If omitted, will use the revision specified in app spec. - revision?: string @go(Revision) @protobuf(1,bytes,opt) - - // Prune specifies to delete resources from the cluster that are no longer tracked in git - prune?: bool @go(Prune) @protobuf(2,bytes,opt) - - // DryRun specifies to perform a `kubectl apply --dry-run` without actually performing the sync - dryRun?: bool @go(DryRun) @protobuf(3,bytes,opt) - - // SyncStrategy describes how to perform the sync - syncStrategy?: null | #SyncStrategy @go(SyncStrategy,*SyncStrategy) @protobuf(4,bytes,opt) - - // Resources describes which resources shall be part of the sync - resources?: [...#SyncOperationResource] @go(Resources,[]SyncOperationResource) @protobuf(6,bytes,opt) - - // Source overrides the source definition set in the application. - // This is typically set in a Rollback operation and is nil during a Sync operation - source?: null | #ApplicationSource @go(Source,*ApplicationSource) @protobuf(7,bytes,opt) - - // Manifests is an optional field that overrides sync source with a local directory for development - manifests?: [...string] @go(Manifests,[]string) @protobuf(8,bytes,opt) - - // SyncOptions provide per-sync sync-options, e.g. Validate=false - syncOptions?: #SyncOptions @go(SyncOptions) @protobuf(9,bytes,opt) - - // Sources overrides the source definition set in the application. - // This is typically set in a Rollback operation and is nil during a Sync operation - sources?: #ApplicationSources @go(Sources) @protobuf(10,bytes,opt) - - // Revisions is the list of revision (Git) or chart version (Helm) which to sync each source in sources field for the application to - // If omitted, will use the revision specified in app spec. - revisions?: [...string] @go(Revisions,[]string) @protobuf(11,bytes,opt) -} - -// OperationState contains information about state of a running operation -#OperationState: { - // Operation is the original requested operation - operation: #Operation @go(Operation) @protobuf(1,bytes,opt) - - // Phase is the current phase of the operation - phase: synccommon.#OperationPhase @go(Phase) @protobuf(2,bytes,opt) - - // Message holds any pertinent messages when attempting to perform operation (typically errors). - message?: string @go(Message) @protobuf(3,bytes,opt) - - // SyncResult is the result of a Sync operation - syncResult?: null | #SyncOperationResult @go(SyncResult,*SyncOperationResult) @protobuf(4,bytes,opt) - - // StartedAt contains time of operation start - startedAt: metav1.#Time @go(StartedAt) @protobuf(6,bytes,opt) - - // FinishedAt contains time of operation completion - finishedAt?: null | metav1.#Time @go(FinishedAt,*metav1.Time) @protobuf(7,bytes,opt) - - // RetryCount contains time of operation retries - retryCount?: int64 @go(RetryCount) @protobuf(8,bytes,opt) -} - -#Info: { - name: string @go(Name) @protobuf(1,bytes) - value: string @go(Value) @protobuf(2,bytes) -} - -#SyncOptions: [...string] - -#ManagedNamespaceMetadata: { - labels?: {[string]: string} @go(Labels,map[string]string) @protobuf(1,bytes,opt) - annotations?: {[string]: string} @go(Annotations,map[string]string) @protobuf(2,bytes,opt) -} - -// SyncPolicy controls when a sync will be performed in response to updates in git -#SyncPolicy: { - // Automated will keep an application synced to the target revision - automated?: null | #SyncPolicyAutomated @go(Automated,*SyncPolicyAutomated) @protobuf(1,bytes,opt) - - // Options allow you to specify whole app sync-options - syncOptions?: #SyncOptions @go(SyncOptions) @protobuf(2,bytes,opt) - - // Retry controls failed sync retry behavior - retry?: null | #RetryStrategy @go(Retry,*RetryStrategy) @protobuf(3,bytes,opt) - - // ManagedNamespaceMetadata controls metadata in the given namespace (if CreateNamespace=true) - managedNamespaceMetadata?: null | #ManagedNamespaceMetadata @go(ManagedNamespaceMetadata,*ManagedNamespaceMetadata) @protobuf(4,bytes,opt) -} - -// RetryStrategy contains information about the strategy to apply when a sync failed -#RetryStrategy: { - // Limit is the maximum number of attempts for retrying a failed sync. If set to 0, no retries will be performed. - limit?: int64 @go(Limit) @protobuf(1,bytes,opt) - - // Backoff controls how to backoff on subsequent retries of failed syncs - backoff?: null | #Backoff @go(Backoff,*Backoff) @protobuf(2,bytes,opt,casttype=Backoff) -} - -// Backoff is the backoff strategy to use on subsequent retries for failing syncs -#Backoff: { - // Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h") - duration?: string @go(Duration) @protobuf(1,bytes,opt) - - // Factor is a factor to multiply the base duration after each failed retry - factor?: null | int64 @go(Factor,*int64) @protobuf(2,bytes) - - // MaxDuration is the maximum amount of time allowed for the backoff strategy - maxDuration?: string @go(MaxDuration) @protobuf(3,bytes,opt) -} - -// SyncPolicyAutomated controls the behavior of an automated sync -#SyncPolicyAutomated: { - // Prune specifies whether to delete resources from the cluster that are not found in the sources anymore as part of automated sync (default: false) - prune?: bool @go(Prune) @protobuf(1,bytes,opt) - - // SelfHeal specifies whether to revert resources back to their desired state upon modification in the cluster (default: false) - selfHeal?: bool @go(SelfHeal) @protobuf(2,bytes,opt) - - // AllowEmpty allows apps have zero live resources (default: false) - allowEmpty?: bool @go(AllowEmpty) @protobuf(3,bytes,opt) -} - -// SyncStrategy controls the manner in which a sync is performed -#SyncStrategy: { - // Apply will perform a `kubectl apply` to perform the sync. - apply?: null | #SyncStrategyApply @go(Apply,*SyncStrategyApply) @protobuf(1,bytes,opt) - - // Hook will submit any referenced resources to perform the sync. This is the default strategy - hook?: null | #SyncStrategyHook @go(Hook,*SyncStrategyHook) @protobuf(2,bytes,opt) -} - -// SyncStrategyApply uses `kubectl apply` to perform the apply -#SyncStrategyApply: { - // Force indicates whether or not to supply the --force flag to `kubectl apply`. - // The --force flag deletes and re-create the resource, when PATCH encounters conflict and has - // retried for 5 times. - force?: bool @go(Force) @protobuf(1,bytes,opt) -} - -// SyncStrategyHook will perform a sync using hooks annotations. -// If no hook annotation is specified falls back to `kubectl apply`. -#SyncStrategyHook: { - #SyncStrategyApply -} - -// RevisionMetadata contains metadata for a specific revision in a Git repository -#RevisionMetadata: { - // who authored this revision, - // typically their name and email, e.g. "John Doe ", - // but might not match this example - author?: string @go(Author) @protobuf(1,bytes,opt) - - // Date specifies when the revision was authored - date: metav1.#Time @go(Date) @protobuf(2,bytes,opt) - - // Tags specifies any tags currently attached to the revision - // Floating tags can move from one revision to another - tags?: [...string] @go(Tags,[]string) @protobuf(3,bytes,opt) - - // Message contains the message associated with the revision, most likely the commit message. - message?: string @go(Message) @protobuf(4,bytes,opt) - - // SignatureInfo contains a hint on the signer if the revision was signed with GPG, and signature verification is enabled. - signatureInfo?: string @go(SignatureInfo) @protobuf(5,bytes,opt) -} - -// ChartDetails contains helm chart metadata for a specific version -#ChartDetails: { - description?: string @go(Description) @protobuf(1,bytes,opt) - - // The URL of this projects home page, e.g. "http://example.com" - home?: string @go(Home) @protobuf(2,bytes,opt) - - // List of maintainer details, name and email, e.g. ["John Doe "] - maintainers?: [...string] @go(Maintainers,[]string) @protobuf(3,bytes,opt) -} - -// SyncOperationResult represent result of sync operation -#SyncOperationResult: { - // Resources contains a list of sync result items for each individual resource in a sync operation - resources?: #ResourceResults @go(Resources) @protobuf(1,bytes,opt) - - // Revision holds the revision this sync operation was performed to - revision: string @go(Revision) @protobuf(2,bytes,opt) - - // Source records the application source information of the sync, used for comparing auto-sync - source?: #ApplicationSource @go(Source) @protobuf(3,bytes,opt) - - // Source records the application source information of the sync, used for comparing auto-sync - sources?: #ApplicationSources @go(Sources) @protobuf(4,bytes,opt) - - // Revisions holds the revision this sync operation was performed for respective indexed source in sources field - revisions?: [...string] @go(Revisions,[]string) @protobuf(5,bytes,opt) - - // ManagedNamespaceMetadata contains the current sync state of managed namespace metadata - managedNamespaceMetadata?: null | #ManagedNamespaceMetadata @go(ManagedNamespaceMetadata,*ManagedNamespaceMetadata) @protobuf(6,bytes,opt) -} - -// ResourceResult holds the operation result details of a specific resource -#ResourceResult: { - // Group specifies the API group of the resource - group: string @go(Group) @protobuf(1,bytes,opt) - - // Version specifies the API version of the resource - version: string @go(Version) @protobuf(2,bytes,opt) - - // Kind specifies the API kind of the resource - kind: string @go(Kind) @protobuf(3,bytes,opt) - - // Namespace specifies the target namespace of the resource - namespace: string @go(Namespace) @protobuf(4,bytes,opt) - - // Name specifies the name of the resource - name: string @go(Name) @protobuf(5,bytes,opt) - - // Status holds the final result of the sync. Will be empty if the resources is yet to be applied/pruned and is always zero-value for hooks - status?: synccommon.#ResultCode @go(Status) @protobuf(6,bytes,opt) - - // Message contains an informational or error message for the last sync OR operation - message?: string @go(Message) @protobuf(7,bytes,opt) - - // HookType specifies the type of the hook. Empty for non-hook resources - hookType?: synccommon.#HookType @go(HookType) @protobuf(8,bytes,opt) - - // HookPhase contains the state of any operation associated with this resource OR hook - // This can also contain values for non-hook resources. - hookPhase?: synccommon.#OperationPhase @go(HookPhase) @protobuf(9,bytes,opt) - - // SyncPhase indicates the particular phase of the sync that this result was acquired in - syncPhase?: synccommon.#SyncPhase @go(SyncPhase) @protobuf(10,bytes,opt) -} - -// ResourceResults defines a list of resource results for a given operation -#ResourceResults: [...null | #ResourceResult] - -// RevisionHistory contains history information about a previous sync -#RevisionHistory: { - // Revision holds the revision the sync was performed against - revision?: string @go(Revision) @protobuf(2,bytes,opt) - - // DeployedAt holds the time the sync operation completed - deployedAt: metav1.#Time @go(DeployedAt) @protobuf(4,bytes,opt) - - // ID is an auto incrementing identifier of the RevisionHistory - id: int64 @go(ID) @protobuf(5,bytes,opt) - - // Source is a reference to the application source used for the sync operation - source?: #ApplicationSource @go(Source) @protobuf(6,bytes,opt) - - // DeployStartedAt holds the time the sync operation started - deployStartedAt?: null | metav1.#Time @go(DeployStartedAt,*metav1.Time) @protobuf(7,bytes,opt) - - // Sources is a reference to the application sources used for the sync operation - sources?: #ApplicationSources @go(Sources) @protobuf(8,bytes,opt) - - // Revisions holds the revision of each source in sources field the sync was performed against - revisions?: [...string] @go(Revisions,[]string) @protobuf(9,bytes,opt) -} - -// ApplicationWatchEvent contains information about application change. -#ApplicationWatchEvent: { - type: watch.#EventType @go(Type) @protobuf(1,bytes,opt,casttype=k8s.io/apimachinery/pkg/watch.EventType) - - // Application is: - // * If Type is Added or Modified: the new state of the object. - // * If Type is Deleted: the state of the object immediately before deletion. - // * If Type is Error: *api.Status is recommended; other types may make sense - // depending on context. - application: #Application @go(Application) @protobuf(2,bytes,opt) -} - -// ApplicationList is list of Application resources -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -#ApplicationList: { - metav1.#TypeMeta - metadata: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - items: [...#Application] @go(Items,[]Application) @protobuf(2,bytes,rep) -} - -// ComponentParameter contains information about component parameter value -#ComponentParameter: { - component?: string @go(Component) @protobuf(1,bytes,opt) - name: string @go(Name) @protobuf(2,bytes,opt) - value: string @go(Value) @protobuf(3,bytes,opt) -} - -// SyncStatusCode is a type which represents possible comparison results -#SyncStatusCode: string // #enumSyncStatusCode - -#enumSyncStatusCode: - #SyncStatusCodeUnknown | - #SyncStatusCodeSynced | - #SyncStatusCodeOutOfSync - -// SyncStatusCodeUnknown indicates that the status of a sync could not be reliably determined -#SyncStatusCodeUnknown: #SyncStatusCode & "Unknown" - -// SyncStatusCodeOutOfSync indicates that desired and live states match -#SyncStatusCodeSynced: #SyncStatusCode & "Synced" - -// SyncStatusCodeOutOfSync indicates that there is a drift between desired and live states -#SyncStatusCodeOutOfSync: #SyncStatusCode & "OutOfSync" - -// ApplicationConditionType represents type of application condition. Type name has following convention: -// prefix "Error" means error condition -// prefix "Warning" means warning condition -// prefix "Info" means informational condition -#ApplicationConditionType: string // #enumApplicationConditionType - -#enumApplicationConditionType: - #AnnotationKeyRefresh | - #ResourcesFinalizerName | - #ForegroundPropagationPolicyFinalizer - -// ApplicationConditionDeletionError indicates that controller failed to delete application -#ApplicationConditionDeletionError: "DeletionError" - -// ApplicationConditionInvalidSpecError indicates that application source is invalid -#ApplicationConditionInvalidSpecError: "InvalidSpecError" - -// ApplicationConditionComparisonError indicates controller failed to compare application state -#ApplicationConditionComparisonError: "ComparisonError" - -// ApplicationConditionSyncError indicates controller failed to automatically sync the application -#ApplicationConditionSyncError: "SyncError" - -// ApplicationConditionUnknownError indicates an unknown controller error -#ApplicationConditionUnknownError: "UnknownError" - -// ApplicationConditionSharedResourceWarning indicates that controller detected resources which belongs to more than one application -#ApplicationConditionSharedResourceWarning: "SharedResourceWarning" - -// ApplicationConditionRepeatedResourceWarning indicates that application source has resource with same Group, Kind, Name, Namespace multiple times -#ApplicationConditionRepeatedResourceWarning: "RepeatedResourceWarning" - -// ApplicationConditionExcludedResourceWarning indicates that application has resource which is configured to be excluded -#ApplicationConditionExcludedResourceWarning: "ExcludedResourceWarning" - -// ApplicationConditionOrphanedResourceWarning indicates that application has orphaned resources -#ApplicationConditionOrphanedResourceWarning: "OrphanedResourceWarning" - -// ApplicationCondition contains details about an application condition, which is usually an error or warning -#ApplicationCondition: { - // Type is an application condition type - type: string @go(Type) @protobuf(1,bytes,opt) - - // Message contains human-readable message indicating details about condition - message: string @go(Message) @protobuf(2,bytes,opt) - - // LastTransitionTime is the time the condition was last observed - lastTransitionTime?: null | metav1.#Time @go(LastTransitionTime,*metav1.Time) @protobuf(3,bytes,opt) -} - -// ComparedTo contains application source and target which was used for resources comparison -#ComparedTo: { - // Source is a reference to the application's source used for comparison - source?: #ApplicationSource @go(Source) @protobuf(1,bytes,opt) - - // Destination is a reference to the application's destination used for comparison - destination: #ApplicationDestination @go(Destination) @protobuf(2,bytes,opt) - - // Sources is a reference to the application's multiple sources used for comparison - sources?: #ApplicationSources @go(Sources) @protobuf(3,bytes,opt) - - // IgnoreDifferences is a reference to the application's ignored differences used for comparison - ignoreDifferences?: #IgnoreDifferences @go(IgnoreDifferences) @protobuf(4,bytes,opt) -} - -// SyncStatus contains information about the currently observed live and desired states of an application -#SyncStatus: { - // Status is the sync state of the comparison - status: #SyncStatusCode @go(Status) @protobuf(1,bytes,opt,casttype=SyncStatusCode) - - // ComparedTo contains information about what has been compared - comparedTo?: #ComparedTo @go(ComparedTo) @protobuf(2,bytes,opt) - - // Revision contains information about the revision the comparison has been performed to - revision?: string @go(Revision) @protobuf(3,bytes,opt) - - // Revisions contains information about the revisions of multiple sources the comparison has been performed to - revisions?: [...string] @go(Revisions,[]string) @protobuf(4,bytes,opt) -} - -// HealthStatus contains information about the currently observed health state of an application or resource -#HealthStatus: { - // Status holds the status code of the application or resource - status?: health.#HealthStatusCode @go(Status) @protobuf(1,bytes,opt) - - // Message is a human-readable informational message describing the health status - message?: string @go(Message) @protobuf(2,bytes,opt) -} - -// InfoItem contains arbitrary, human readable information about an application -#InfoItem: { - // Name is a human readable title for this piece of information. - name?: string @go(Name) @protobuf(1,bytes,opt) - - // Value is human readable content. - value?: string @go(Value) @protobuf(2,bytes,opt) -} - -// ResourceNetworkingInfo holds networking resource related information -// TODO: describe members of this type -#ResourceNetworkingInfo: { - targetLabels?: {[string]: string} @go(TargetLabels,map[string]string) @protobuf(1,bytes,opt) - targetRefs?: [...#ResourceRef] @go(TargetRefs,[]ResourceRef) @protobuf(2,bytes,opt) - labels?: {[string]: string} @go(Labels,map[string]string) @protobuf(3,bytes,opt) - ingress?: [...v1.#LoadBalancerIngress] @go(Ingress,[]v1.LoadBalancerIngress) @protobuf(4,bytes,opt) - - // ExternalURLs holds list of URLs which should be available externally. List is populated for ingress resources using rules hostnames. - externalURLs?: [...string] @go(ExternalURLs,[]string) @protobuf(5,bytes,opt) -} - -// TODO: describe this type -#HostResourceInfo: { - resourceName?: v1.#ResourceName @go(ResourceName) @protobuf(1,bytes) - requestedByApp?: int64 @go(RequestedByApp) @protobuf(2,bytes) - requestedByNeighbors?: int64 @go(RequestedByNeighbors) @protobuf(3,bytes) - capacity?: int64 @go(Capacity) @protobuf(4,bytes) -} - -// HostInfo holds host name and resources metrics -// TODO: describe purpose of this type -// TODO: describe members of this type -#HostInfo: { - name?: string @go(Name) @protobuf(1,bytes) - resourcesInfo?: [...#HostResourceInfo] @go(ResourcesInfo,[]HostResourceInfo) @protobuf(2,bytes) - systemInfo?: v1.#NodeSystemInfo @go(SystemInfo) @protobuf(3,bytes,opt) -} - -// ApplicationTree holds nodes which belongs to the application -// TODO: describe purpose of this type -#ApplicationTree: { - // Nodes contains list of nodes which either directly managed by the application and children of directly managed nodes. - nodes?: [...#ResourceNode] @go(Nodes,[]ResourceNode) @protobuf(1,bytes,rep) - - // OrphanedNodes contains if or orphaned nodes: nodes which are not managed by the app but in the same namespace. List is populated only if orphaned resources enabled in app project. - orphanedNodes?: [...#ResourceNode] @go(OrphanedNodes,[]ResourceNode) @protobuf(2,bytes,rep) - - // Hosts holds list of Kubernetes nodes that run application related pods - hosts?: [...#HostInfo] @go(Hosts,[]HostInfo) @protobuf(3,bytes,rep) -} - -// ApplicationSummary contains information about URLs and container images used by an application -#ApplicationSummary: { - // ExternalURLs holds all external URLs of application child resources. - externalURLs?: [...string] @go(ExternalURLs,[]string) @protobuf(1,bytes,opt) - - // Images holds all images of application child resources. - images?: [...string] @go(Images,[]string) @protobuf(2,bytes,opt) -} - -// ResourceRef includes fields which uniquely identify a resource -#ResourceRef: { - group?: string @go(Group) @protobuf(1,bytes,opt) - version?: string @go(Version) @protobuf(2,bytes,opt) - kind?: string @go(Kind) @protobuf(3,bytes,opt) - namespace?: string @go(Namespace) @protobuf(4,bytes,opt) - name?: string @go(Name) @protobuf(5,bytes,opt) - uid?: string @go(UID) @protobuf(6,bytes,opt) -} - -// ResourceNode contains information about live resource and its children -// TODO: describe members of this type -#ResourceNode: { - #ResourceRef - parentRefs?: [...#ResourceRef] @go(ParentRefs,[]ResourceRef) @protobuf(2,bytes,opt) - info?: [...#InfoItem] @go(Info,[]InfoItem) @protobuf(3,bytes,opt) - networkingInfo?: null | #ResourceNetworkingInfo @go(NetworkingInfo,*ResourceNetworkingInfo) @protobuf(4,bytes,opt) - resourceVersion?: string @go(ResourceVersion) @protobuf(5,bytes,opt) - images?: [...string] @go(Images,[]string) @protobuf(6,bytes,opt) - health?: null | #HealthStatus @go(Health,*HealthStatus) @protobuf(7,bytes,opt) - createdAt?: null | metav1.#Time @go(CreatedAt,*metav1.Time) @protobuf(8,bytes,opt) -} - -// ResourceStatus holds the current sync and health status of a resource -// TODO: describe members of this type -#ResourceStatus: { - group?: string @go(Group) @protobuf(1,bytes,opt) - version?: string @go(Version) @protobuf(2,bytes,opt) - kind?: string @go(Kind) @protobuf(3,bytes,opt) - namespace?: string @go(Namespace) @protobuf(4,bytes,opt) - name?: string @go(Name) @protobuf(5,bytes,opt) - status?: #SyncStatusCode @go(Status) @protobuf(6,bytes,opt) - health?: null | #HealthStatus @go(Health,*HealthStatus) @protobuf(7,bytes,opt) - hook?: bool @go(Hook) @protobuf(8,bytes,opt) - requiresPruning?: bool @go(RequiresPruning) @protobuf(9,bytes,opt) - syncWave?: int64 @go(SyncWave) @protobuf(10,bytes,opt) -} - -// ResourceDiff holds the diff of a live and target resource object -// TODO: describe members of this type -#ResourceDiff: { - group?: string @go(Group) @protobuf(1,bytes,opt) - kind?: string @go(Kind) @protobuf(2,bytes,opt) - namespace?: string @go(Namespace) @protobuf(3,bytes,opt) - name?: string @go(Name) @protobuf(4,bytes,opt) - - // TargetState contains the JSON serialized resource manifest defined in the Git/Helm - targetState?: string @go(TargetState) @protobuf(5,bytes,opt) - - // TargetState contains the JSON live resource manifest - liveState?: string @go(LiveState) @protobuf(6,bytes,opt) - - // Diff contains the JSON patch between target and live resource - // Deprecated: use NormalizedLiveState and PredictedLiveState to render the difference - diff?: string @go(Diff) @protobuf(7,bytes,opt) - hook?: bool @go(Hook) @protobuf(8,bytes,opt) - - // NormalizedLiveState contains JSON serialized live resource state with applied normalizations - normalizedLiveState?: string @go(NormalizedLiveState) @protobuf(9,bytes,opt) - - // PredictedLiveState contains JSON serialized resource state that is calculated based on normalized and target resource state - predictedLiveState?: string @go(PredictedLiveState) @protobuf(10,bytes,opt) - resourceVersion?: string @go(ResourceVersion) @protobuf(11,bytes,opt) - modified?: bool @go(Modified) @protobuf(12,bytes,opt) -} - -// ConnectionStatus represents the status indicator for a connection to a remote resource -#ConnectionStatus: string // #enumConnectionStatus - -#enumConnectionStatus: - #AnnotationKeyRefresh | - #ResourcesFinalizerName | - #ForegroundPropagationPolicyFinalizer - -// ConnectionStatusSuccessful indicates that a connection has been successfully established -#ConnectionStatusSuccessful: "Successful" - -// ConnectionStatusFailed indicates that a connection attempt has failed -#ConnectionStatusFailed: "Failed" - -// ConnectionStatusUnknown indicates that the connection status could not be reliably determined -#ConnectionStatusUnknown: "Unknown" - -// ConnectionState contains information about remote resource connection state, currently used for clusters and repositories -#ConnectionState: { - // Status contains the current status indicator for the connection - status: string @go(Status) @protobuf(1,bytes,opt) - - // Message contains human readable information about the connection status - message: string @go(Message) @protobuf(2,bytes,opt) - - // ModifiedAt contains the timestamp when this connection status has been determined - attemptedAt?: null | metav1.#Time @go(ModifiedAt,*metav1.Time) @protobuf(3,bytes,opt) -} - -// Cluster is the definition of a cluster resource -#Cluster: { - // Server is the API server URL of the Kubernetes cluster - server: string @go(Server) @protobuf(1,bytes,opt) - - // Name of the cluster. If omitted, will use the server address - name: string @go(Name) @protobuf(2,bytes,opt) - - // Config holds cluster information for connecting to a cluster - config: #ClusterConfig @go(Config) @protobuf(3,bytes,opt) - - // DEPRECATED: use Info.ConnectionState field instead. - // ConnectionState contains information about cluster connection state - connectionState?: #ConnectionState @go(ConnectionState) @protobuf(4,bytes,opt) - - // DEPRECATED: use Info.ServerVersion field instead. - // The server version - serverVersion?: string @go(ServerVersion) @protobuf(5,bytes,opt) - - // Holds list of namespaces which are accessible in that cluster. Cluster level resources will be ignored if namespace list is not empty. - namespaces?: [...string] @go(Namespaces,[]string) @protobuf(6,bytes,opt) - - // RefreshRequestedAt holds time when cluster cache refresh has been requested - refreshRequestedAt?: null | metav1.#Time @go(RefreshRequestedAt,*metav1.Time) @protobuf(7,bytes,opt) - - // Info holds information about cluster cache and state - info?: #ClusterInfo @go(Info) @protobuf(8,bytes,opt) - - // Shard contains optional shard number. Calculated on the fly by the application controller if not specified. - shard?: null | int64 @go(Shard,*int64) @protobuf(9,bytes,opt) - - // Indicates if cluster level resources should be managed. This setting is used only if cluster is connected in a namespaced mode. - clusterResources?: bool @go(ClusterResources) @protobuf(10,bytes,opt) - - // Reference between project and cluster that allow you automatically to be added as item inside Destinations project entity - project?: string @go(Project) @protobuf(11,bytes,opt) - - // Labels for cluster secret metadata - labels?: {[string]: string} @go(Labels,map[string]string) @protobuf(12,bytes,opt) - - // Annotations for cluster secret metadata - annotations?: {[string]: string} @go(Annotations,map[string]string) @protobuf(13,bytes,opt) -} - -// ClusterInfo contains information about the cluster -#ClusterInfo: { - // ConnectionState contains information about the connection to the cluster - connectionState?: #ConnectionState @go(ConnectionState) @protobuf(1,bytes,opt) - - // ServerVersion contains information about the Kubernetes version of the cluster - serverVersion?: string @go(ServerVersion) @protobuf(2,bytes,opt) - - // CacheInfo contains information about the cluster cache - cacheInfo?: #ClusterCacheInfo @go(CacheInfo) @protobuf(3,bytes,opt) - - // ApplicationsCount is the number of applications managed by Argo CD on the cluster - applicationsCount: int64 @go(ApplicationsCount) @protobuf(4,bytes,opt) - - // APIVersions contains list of API versions supported by the cluster - apiVersions?: [...string] @go(APIVersions,[]string) @protobuf(5,bytes,opt) -} - -// ClusterCacheInfo contains information about the cluster cache -#ClusterCacheInfo: { - // ResourcesCount holds number of observed Kubernetes resources - resourcesCount?: int64 @go(ResourcesCount) @protobuf(1,bytes,opt) - - // APIsCount holds number of observed Kubernetes API count - apisCount?: int64 @go(APIsCount) @protobuf(2,bytes,opt) - - // LastCacheSyncTime holds time of most recent cache synchronization - lastCacheSyncTime?: null | metav1.#Time @go(LastCacheSyncTime,*metav1.Time) @protobuf(3,bytes,opt) -} - -// ClusterList is a collection of Clusters. -#ClusterList: { - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - items: [...#Cluster] @go(Items,[]Cluster) @protobuf(2,bytes,rep) -} - -// AWSAuthConfig is an AWS IAM authentication configuration -#AWSAuthConfig: { - // ClusterName contains AWS cluster name - clusterName?: string @go(ClusterName) @protobuf(1,bytes,opt) - - // RoleARN contains optional role ARN. If set then AWS IAM Authenticator assume a role to perform cluster operations instead of the default AWS credential provider chain. - roleARN?: string @go(RoleARN) @protobuf(2,bytes,opt) -} - -// ExecProviderConfig is config used to call an external command to perform cluster authentication -// See: https://godoc.org/k8s.io/client-go/tools/clientcmd/api#ExecConfig -#ExecProviderConfig: { - // Command to execute - command?: string @go(Command) @protobuf(1,bytes,opt) - - // Arguments to pass to the command when executing it - args?: [...string] @go(Args,[]string) @protobuf(2,bytes,rep) - - // Env defines additional environment variables to expose to the process - env?: {[string]: string} @go(Env,map[string]string) @protobuf(3,bytes,opt) - - // Preferred input version of the ExecInfo - apiVersion?: string @go(APIVersion) @protobuf(4,bytes,opt) - - // This text is shown to the user when the executable doesn't seem to be present - installHint?: string @go(InstallHint) @protobuf(5,bytes,opt) -} - -// ClusterConfig is the configuration attributes. This structure is subset of the go-client -// rest.Config with annotations added for marshalling. -#ClusterConfig: { - // Server requires Basic authentication - username?: string @go(Username) @protobuf(1,bytes,opt) - password?: string @go(Password) @protobuf(2,bytes,opt) - - // Server requires Bearer authentication. This client will not attempt to use - // refresh tokens for an OAuth2 flow. - // TODO: demonstrate an OAuth2 compatible client. - bearerToken?: string @go(BearerToken) @protobuf(3,bytes,opt) - - // TLSClientConfig contains settings to enable transport layer security - tlsClientConfig: #TLSClientConfig @go(TLSClientConfig) @protobuf(4,bytes,opt) - - // AWSAuthConfig contains IAM authentication configuration - awsAuthConfig?: null | #AWSAuthConfig @go(AWSAuthConfig,*AWSAuthConfig) @protobuf(5,bytes,opt) - - // ExecProviderConfig contains configuration for an exec provider - execProviderConfig?: null | #ExecProviderConfig @go(ExecProviderConfig,*ExecProviderConfig) @protobuf(6,bytes,opt) -} - -// TLSClientConfig contains settings to enable transport layer security -#TLSClientConfig: { - // Insecure specifies that the server should be accessed without verifying the TLS certificate. For testing only. - insecure: bool @go(Insecure) @protobuf(1,bytes,opt) - - // ServerName is passed to the server for SNI and is used in the client to check server - // certificates against. If ServerName is empty, the hostname used to contact the - // server is used. - serverName?: string @go(ServerName) @protobuf(2,bytes,opt) - - // CertData holds PEM-encoded bytes (typically read from a client certificate file). - // CertData takes precedence over CertFile - certData?: bytes @go(CertData,[]byte) @protobuf(3,bytes,opt) - - // KeyData holds PEM-encoded bytes (typically read from a client certificate key file). - // KeyData takes precedence over KeyFile - keyData?: bytes @go(KeyData,[]byte) @protobuf(4,bytes,opt) - - // CAData holds PEM-encoded bytes (typically read from a root certificates bundle). - // CAData takes precedence over CAFile - caData?: bytes @go(CAData,[]byte) @protobuf(5,bytes,opt) -} - -// KnownTypeField contains mapping between CRD field and known Kubernetes type. -// This is mainly used for unit conversion in unknown resources (e.g. 0.1 == 100mi) -// TODO: Describe the members of this type -#KnownTypeField: { - field?: string @go(Field) @protobuf(1,bytes,opt) - type?: string @go(Type) @protobuf(2,bytes,opt) -} - -// OverrideIgnoreDiff contains configurations about how fields should be ignored during diffs between -// the desired state and live state -#OverrideIgnoreDiff: { - // JSONPointers is a JSON path list following the format defined in RFC4627 (https://datatracker.ietf.org/doc/html/rfc6902#section-3) - jsonPointers: [...string] @go(JSONPointers,[]string) @protobuf(1,bytes,rep,name=jSONPointers) - - // JQPathExpressions is a JQ path list that will be evaludated during the diff process - jqPathExpressions: [...string] @go(JQPathExpressions,[]string) @protobuf(2,bytes,opt) - - // ManagedFieldsManagers is a list of trusted managers. Fields mutated by those managers will take precedence over the - // desired state defined in the SCM and won't be displayed in diffs - managedFieldsManagers: [...string] @go(ManagedFieldsManagers,[]string) @protobuf(3,bytes,opt) -} - -_#rawResourceOverride: { - "health.lua"?: string @go(HealthLua) - "health.lua.useOpenLibs"?: bool @go(UseOpenLibs) - actions?: string @go(Actions) - ignoreDifferences?: string @go(IgnoreDifferences) - ignoreResourceUpdates?: string @go(IgnoreResourceUpdates) - knownTypeFields?: [...#KnownTypeField] @go(KnownTypeFields,[]KnownTypeField) -} - -// ResourceOverride holds configuration to customize resource diffing and health assessment -// TODO: describe the members of this type -#ResourceOverride: _ - -// TODO: describe this type -// TODO: describe members of this type -#ResourceActions: { - "discovery.lua"?: string @go(ActionDiscoveryLua) @protobuf(1,bytes,opt,name=actionDiscoveryLua) - definitions?: [...#ResourceActionDefinition] @go(Definitions,[]ResourceActionDefinition) @protobuf(2,bytes,rep) -} - -// TODO: describe this type -// TODO: describe members of this type -#ResourceActionDefinition: { - name: string @go(Name) @protobuf(1,bytes,opt) - "action.lua": string @go(ActionLua) @protobuf(2,bytes,opt,name=actionLua) -} - -// TODO: describe this type -// TODO: describe members of this type -#ResourceAction: { - name?: string @go(Name) @protobuf(1,bytes,opt) - params?: [...#ResourceActionParam] @go(Params,[]ResourceActionParam) @protobuf(2,bytes,rep) - disabled?: bool @go(Disabled) @protobuf(3,varint,opt) - iconClass?: string @go(IconClass) @protobuf(4,bytes,opt) - displayName?: string @go(DisplayName) @protobuf(5,bytes,opt) -} - -// TODO: describe this type -// TODO: describe members of this type -#ResourceActionParam: { - name?: string @go(Name) @protobuf(1,bytes,opt) - value?: string @go(Value) @protobuf(2,bytes,opt) - type?: string @go(Type) @protobuf(3,bytes,opt) - default?: string @go(Default) @protobuf(4,bytes,opt) -} - -// OrphanedResourcesMonitorSettings holds settings of orphaned resources monitoring -#OrphanedResourcesMonitorSettings: { - // Warn indicates if warning condition should be created for apps which have orphaned resources - warn?: null | bool @go(Warn,*bool) @protobuf(1,bytes) - - // Ignore contains a list of resources that are to be excluded from orphaned resources monitoring - ignore?: [...#OrphanedResourceKey] @go(Ignore,[]OrphanedResourceKey) @protobuf(2,bytes,opt) -} - -// OrphanedResourceKey is a reference to a resource to be ignored from -#OrphanedResourceKey: { - group?: string @go(Group) @protobuf(1,bytes,opt) - kind?: string @go(Kind) @protobuf(2,bytes,opt) - name?: string @go(Name) @protobuf(3,bytes,opt) -} - -// SignatureKey is the specification of a key required to verify commit signatures with -#SignatureKey: { - // The ID of the key in hexadecimal notation - keyID: string @go(KeyID) @protobuf(1,bytes) -} - -// AppProjectSpec is the specification of an AppProject -#AppProjectSpec: { - // SourceRepos contains list of repository URLs which can be used for deployment - sourceRepos?: [...string] @go(SourceRepos,[]string) @protobuf(1,bytes) - - // Destinations contains list of destinations available for deployment - destinations?: [...#ApplicationDestination] @go(Destinations,[]ApplicationDestination) @protobuf(2,bytes,name=destination) - - // Description contains optional project description - description?: string @go(Description) @protobuf(3,bytes,opt) - - // Roles are user defined RBAC roles associated with this project - roles?: [...#ProjectRole] @go(Roles,[]ProjectRole) @protobuf(4,bytes,rep) - - // ClusterResourceWhitelist contains list of whitelisted cluster level resources - clusterResourceWhitelist?: [...metav1.#GroupKind] @go(ClusterResourceWhitelist,[]metav1.GroupKind) @protobuf(5,bytes,opt) - - // NamespaceResourceBlacklist contains list of blacklisted namespace level resources - namespaceResourceBlacklist?: [...metav1.#GroupKind] @go(NamespaceResourceBlacklist,[]metav1.GroupKind) @protobuf(6,bytes,opt) - - // OrphanedResources specifies if controller should monitor orphaned resources of apps in this project - orphanedResources?: null | #OrphanedResourcesMonitorSettings @go(OrphanedResources,*OrphanedResourcesMonitorSettings) @protobuf(7,bytes,opt) - - // SyncWindows controls when syncs can be run for apps in this project - syncWindows?: #SyncWindows @go(SyncWindows) @protobuf(8,bytes,opt) - - // NamespaceResourceWhitelist contains list of whitelisted namespace level resources - namespaceResourceWhitelist?: [...metav1.#GroupKind] @go(NamespaceResourceWhitelist,[]metav1.GroupKind) @protobuf(9,bytes,opt) - - // SignatureKeys contains a list of PGP key IDs that commits in Git must be signed with in order to be allowed for sync - signatureKeys?: [...#SignatureKey] @go(SignatureKeys,[]SignatureKey) @protobuf(10,bytes,opt) - - // ClusterResourceBlacklist contains list of blacklisted cluster level resources - clusterResourceBlacklist?: [...metav1.#GroupKind] @go(ClusterResourceBlacklist,[]metav1.GroupKind) @protobuf(11,bytes,opt) - - // SourceNamespaces defines the namespaces application resources are allowed to be created in - sourceNamespaces?: [...string] @go(SourceNamespaces,[]string) @protobuf(12,bytes,opt) - - // PermitOnlyProjectScopedClusters determines whether destinations can only reference clusters which are project-scoped - permitOnlyProjectScopedClusters?: bool @go(PermitOnlyProjectScopedClusters) @protobuf(13,bytes,opt) -} - -// SyncWindows is a collection of sync windows in this project -#SyncWindows: [...null | #SyncWindow] - -// SyncWindow contains the kind, time, duration and attributes that are used to assign the syncWindows to apps -#SyncWindow: { - // Kind defines if the window allows or blocks syncs - kind?: string @go(Kind) @protobuf(1,bytes,opt) - - // Schedule is the time the window will begin, specified in cron format - schedule?: string @go(Schedule) @protobuf(2,bytes,opt) - - // Duration is the amount of time the sync window will be open - duration?: string @go(Duration) @protobuf(3,bytes,opt) - - // Applications contains a list of applications that the window will apply to - applications?: [...string] @go(Applications,[]string) @protobuf(4,bytes,opt) - - // Namespaces contains a list of namespaces that the window will apply to - namespaces?: [...string] @go(Namespaces,[]string) @protobuf(5,bytes,opt) - - // Clusters contains a list of clusters that the window will apply to - clusters?: [...string] @go(Clusters,[]string) @protobuf(6,bytes,opt) - - // ManualSync enables manual syncs when they would otherwise be blocked - manualSync?: bool @go(ManualSync) @protobuf(7,bytes,opt) - - // TimeZone of the sync that will be applied to the schedule - timeZone?: string @go(TimeZone) @protobuf(8,bytes,opt) -} - -// ProjectRole represents a role that has access to a project -#ProjectRole: { - // Name is a name for this role - name: string @go(Name) @protobuf(1,bytes,opt) - - // Description is a description of the role - description?: string @go(Description) @protobuf(2,bytes,opt) - - // Policies Stores a list of casbin formatted strings that define access policies for the role in the project - policies?: [...string] @go(Policies,[]string) @protobuf(3,bytes,rep) - - // JWTTokens are a list of generated JWT tokens bound to this role - jwtTokens?: [...#JWTToken] @go(JWTTokens,[]JWTToken) @protobuf(4,bytes,rep) - - // Groups are a list of OIDC group claims bound to this role - groups?: [...string] @go(Groups,[]string) @protobuf(5,bytes,rep) -} - -// JWTToken holds the issuedAt and expiresAt values of a token -#JWTToken: { - iat: int64 @go(IssuedAt) @protobuf(1,int64,opt) - exp?: int64 @go(ExpiresAt) @protobuf(2,int64,opt) - id?: string @go(ID) @protobuf(3,bytes,opt) -} - -// Command holds binary path and arguments list -#Command: { - command?: [...string] @go(Command,[]string) @protobuf(1,bytes) - args?: [...string] @go(Args,[]string) @protobuf(2,bytes,rep) -} - -// ConfigManagementPlugin contains config management plugin configuration -#ConfigManagementPlugin: { - name: string @go(Name) @protobuf(1,bytes) - init?: null | #Command @go(Init,*Command) @protobuf(2,bytes) - generate: #Command @go(Generate) @protobuf(3,bytes) - lockRepo?: bool @go(LockRepo) @protobuf(4,bytes) -} - -// HelmOptions holds helm options -#HelmOptions: { - ValuesFileSchemes: [...string] @go(,[]string) @protobuf(1,bytes,opt,name=valuesFileSchemes) -} - -// KustomizeOptions are options for kustomize to use when building manifests -#KustomizeOptions: { - // BuildOptions is a string of build parameters to use when calling `kustomize build` - BuildOptions: string @protobuf(1,bytes,opt,name=buildOptions) - - // BinaryPath holds optional path to kustomize binary - BinaryPath: string @protobuf(2,bytes,opt,name=binaryPath) -} diff --git a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/health/health_argo_go_gen.cue b/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/health/health_argo_go_gen.cue deleted file mode 100644 index d72e3a0..0000000 --- a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/health/health_argo_go_gen.cue +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/gitops-engine/pkg/health - -package health - -_#nodePhase: string - -_#nodePending: _#nodePhase & "Pending" -_#nodeRunning: _#nodePhase & "Running" -_#nodeSucceeded: _#nodePhase & "Succeeded" -_#nodeFailed: _#nodePhase & "Failed" -_#nodeError: _#nodePhase & "Error" - -// An agnostic workflow object only considers Status.Phase and Status.Message. It is agnostic to the API version or any -// other fields. -_#argoWorkflow: { - Status: { - Phase: _#nodePhase, Message: string - } @go(,struct{Phase nodePhase; Message string}) -} diff --git a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/health/health_go_gen.cue b/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/health/health_go_gen.cue deleted file mode 100644 index 89c6229..0000000 --- a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/health/health_go_gen.cue +++ /dev/null @@ -1,45 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/gitops-engine/pkg/health - -package health - -// Represents resource health status -#HealthStatusCode: string // #enumHealthStatusCode - -#enumHealthStatusCode: - #HealthStatusUnknown | - #HealthStatusProgressing | - #HealthStatusHealthy | - #HealthStatusSuspended | - #HealthStatusDegraded | - #HealthStatusMissing - -// Indicates that health assessment failed and actual health status is unknown -#HealthStatusUnknown: #HealthStatusCode & "Unknown" - -// Progressing health status means that resource is not healthy but still have a chance to reach healthy state -#HealthStatusProgressing: #HealthStatusCode & "Progressing" - -// Resource is 100% healthy -#HealthStatusHealthy: #HealthStatusCode & "Healthy" - -// Assigned to resources that are suspended or paused. The typical example is a -// [suspended](https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#suspend) CronJob. -#HealthStatusSuspended: #HealthStatusCode & "Suspended" - -// Degrade status is used if resource status indicates failure or resource could not reach healthy state -// within some timeout. -#HealthStatusDegraded: #HealthStatusCode & "Degraded" - -// Indicates that resource is missing in the cluster. -#HealthStatusMissing: #HealthStatusCode & "Missing" - -// Implements custom health assessment that overrides built-in assessment -#HealthOverride: _ - -// Holds health assessment results -#HealthStatus: { - status?: #HealthStatusCode @go(Status) - message?: string @go(Message) -} diff --git a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/health/health_hpa_go_gen.cue b/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/health/health_hpa_go_gen.cue deleted file mode 100644 index 9542351..0000000 --- a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/health/health_hpa_go_gen.cue +++ /dev/null @@ -1,12 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/gitops-engine/pkg/health - -package health - -_#hpaCondition: { - Type: string - Reason: string - Message: string - Status: string -} diff --git a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/sync/common/types_go_gen.cue b/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/sync/common/types_go_gen.cue deleted file mode 100644 index fd5ea84..0000000 --- a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/sync/common/types_go_gen.cue +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/gitops-engine/pkg/sync/common - -package common - -import "github.com/argoproj/gitops-engine/pkg/utils/kube" - -// AnnotationSyncOptions is a comma-separated list of options for syncing -#AnnotationSyncOptions: "argocd.argoproj.io/sync-options" - -// AnnotationSyncWave indicates which wave of the sync the resource or hook should be in -#AnnotationSyncWave: "argocd.argoproj.io/sync-wave" - -// AnnotationKeyHook contains the hook type of a resource -#AnnotationKeyHook: "argocd.argoproj.io/hook" - -// AnnotationKeyHookDeletePolicy is the policy of deleting a hook -#AnnotationKeyHookDeletePolicy: "argocd.argoproj.io/hook-delete-policy" - -// Sync option that disables dry run in resource is missing in the cluster -#SyncOptionSkipDryRunOnMissingResource: "SkipDryRunOnMissingResource=true" - -// Sync option that disables resource pruning -#SyncOptionDisablePrune: "Prune=false" - -// Sync option that disables resource validation -#SyncOptionsDisableValidation: "Validate=false" - -// Sync option that enables pruneLast -#SyncOptionPruneLast: "PruneLast=true" - -// Sync option that enables use of replace or create command instead of apply -#SyncOptionReplace: "Replace=true" - -// Sync option that enables use of --server-side flag instead of client-side -#SyncOptionServerSideApply: "ServerSideApply=true" - -// Sync option that disables resource deletion -#SyncOptionDisableDeletion: "Delete=false" - -#SyncPhase: string - -#SyncPhasePreSync: "PreSync" -#SyncPhaseSync: "Sync" -#SyncPhasePostSync: "PostSync" -#SyncPhaseSyncFail: "SyncFail" - -#OperationPhase: string // #enumOperationPhase - -#enumOperationPhase: - #OperationRunning | - #OperationTerminating | - #OperationFailed | - #OperationError | - #OperationSucceeded - -#OperationRunning: #OperationPhase & "Running" -#OperationTerminating: #OperationPhase & "Terminating" -#OperationFailed: #OperationPhase & "Failed" -#OperationError: #OperationPhase & "Error" -#OperationSucceeded: #OperationPhase & "Succeeded" - -#ResultCode: string // #enumResultCode - -#enumResultCode: - #ResultCodeSynced | - #ResultCodeSyncFailed | - #ResultCodePruned | - #ResultCodePruneSkipped - -#ResultCodeSynced: #ResultCode & "Synced" -#ResultCodeSyncFailed: #ResultCode & "SyncFailed" -#ResultCodePruned: #ResultCode & "Pruned" -#ResultCodePruneSkipped: #ResultCode & "PruneSkipped" - -#HookType: string // #enumHookType - -#enumHookType: - #HookTypePreSync | - #HookTypeSync | - #HookTypePostSync | - #HookTypeSkip | - #HookTypeSyncFail - -#HookTypePreSync: #HookType & "PreSync" -#HookTypeSync: #HookType & "Sync" -#HookTypePostSync: #HookType & "PostSync" -#HookTypeSkip: #HookType & "Skip" -#HookTypeSyncFail: #HookType & "SyncFail" - -#HookDeletePolicy: string // #enumHookDeletePolicy - -#enumHookDeletePolicy: - #HookDeletePolicyHookSucceeded | - #HookDeletePolicyHookFailed | - #HookDeletePolicyBeforeHookCreation - -#HookDeletePolicyHookSucceeded: #HookDeletePolicy & "HookSucceeded" -#HookDeletePolicyHookFailed: #HookDeletePolicy & "HookFailed" -#HookDeletePolicyBeforeHookCreation: #HookDeletePolicy & "BeforeHookCreation" - -#ResourceSyncResult: { - // holds associated resource key - ResourceKey: kube.#ResourceKey - - // holds resource version - Version: string - - // holds the execution order - Order: int - - // result code - Status: #ResultCode - - // message for the last sync OR operation - Message: string - - // the type of the hook, empty for non-hook resources - HookType: #HookType - - // the state of any operation associated with this resource OR hook - // note: can contain values for non-hook resources - HookPhase: #OperationPhase - - // indicates the particular phase of the sync that this is for - SyncPhase: #SyncPhase -} diff --git a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl_go_gen.cue b/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl_go_gen.cue deleted file mode 100644 index 58518b8..0000000 --- a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/kube/ctl_go_gen.cue +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/gitops-engine/pkg/utils/kube - -package kube - -import ( - "github.com/argoproj/gitops-engine/pkg/utils/tracing" - "k8s.io/apimachinery/pkg/runtime/schema" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#Kubectl: _ - -#KubectlCmd: Tracer: tracing.#Tracer - -#APIResourceInfo: { - GroupKind: schema.#GroupKind - Meta: metav1.#APIResource - GroupVersionResource: schema.#GroupVersionResource -} diff --git a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/kube/kube_go_gen.cue b/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/kube/kube_go_gen.cue deleted file mode 100644 index 3d8bd01..0000000 --- a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/kube/kube_go_gen.cue +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/gitops-engine/pkg/utils/kube - -// Package kube provides helper utilities common for kubernetes -package kube - -_#listVerb: "list" -_#watchVerb: "watch" - -#SecretKind: "Secret" -#ServiceKind: "Service" -#ServiceAccountKind: "ServiceAccount" -#EndpointsKind: "Endpoints" -#DeploymentKind: "Deployment" -#ReplicaSetKind: "ReplicaSet" -#StatefulSetKind: "StatefulSet" -#DaemonSetKind: "DaemonSet" -#IngressKind: "Ingress" -#JobKind: "Job" -#PersistentVolumeClaimKind: "PersistentVolumeClaim" -#CustomResourceDefinitionKind: "CustomResourceDefinition" -#PodKind: "Pod" -#APIServiceKind: "APIService" -#NamespaceKind: "Namespace" -#HorizontalPodAutoscalerKind: "HorizontalPodAutoscaler" - -#ResourceInfoProvider: _ - -#ResourceKey: { - Group: string - Kind: string - Namespace: string - Name: string -} diff --git a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/kube/resource_filter_go_gen.cue b/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/kube/resource_filter_go_gen.cue deleted file mode 100644 index dfaef37..0000000 --- a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/kube/resource_filter_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/gitops-engine/pkg/utils/kube - -package kube - -#ResourceFilter: _ diff --git a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/kube/resource_ops_go_gen.cue b/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/kube/resource_ops_go_gen.cue deleted file mode 100644 index b6570b6..0000000 --- a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/kube/resource_ops_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/gitops-engine/pkg/utils/kube - -package kube - -// ResourceOperations provides methods to manage k8s resources -#ResourceOperations: _ diff --git a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/tracing/api_go_gen.cue b/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/tracing/api_go_gen.cue deleted file mode 100644 index 5aed4c8..0000000 --- a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/tracing/api_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/gitops-engine/pkg/utils/tracing - -package tracing - -#Tracer: _ - -#Span: _ diff --git a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/tracing/nop_go_gen.cue b/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/tracing/nop_go_gen.cue deleted file mode 100644 index 02bb2b2..0000000 --- a/cue.mod/gen/github.com/argoproj/gitops-engine/pkg/utils/tracing/nop_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/argoproj/gitops-engine/pkg/utils/tracing - -package tracing - -#NopTracer: { -} - -_#nopSpan: { -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/condition_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/condition_go_gen.cue deleted file mode 100644 index 7b7662f..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/condition_go_gen.cue +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane-runtime/apis/common/v1 - -package v1 - -import ( - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// A ConditionType represents a condition a resource could be in. -#ConditionType: string // #enumConditionType - -#enumConditionType: - #TypeReady | - #TypeSynced - -// TypeReady resources are believed to be ready to handle work. -#TypeReady: #ConditionType & "Ready" - -// TypeSynced resources are believed to be in sync with the -// Kubernetes resources that manage their lifecycle. -#TypeSynced: #ConditionType & "Synced" - -// A ConditionReason represents the reason a resource is in a condition. -#ConditionReason: string // #enumConditionReason - -#enumConditionReason: - #ReasonAvailable | - #ReasonUnavailable | - #ReasonCreating | - #ReasonDeleting | - #ReasonReconcileSuccess | - #ReasonReconcileError | - #ReasonReconcilePaused - -#ReasonAvailable: #ConditionReason & "Available" -#ReasonUnavailable: #ConditionReason & "Unavailable" -#ReasonCreating: #ConditionReason & "Creating" -#ReasonDeleting: #ConditionReason & "Deleting" - -#ReasonReconcileSuccess: #ConditionReason & "ReconcileSuccess" -#ReasonReconcileError: #ConditionReason & "ReconcileError" -#ReasonReconcilePaused: #ConditionReason & "ReconcilePaused" - -// A Condition that may apply to a resource. -#Condition: { - // Type of this condition. At most one of each condition type may apply to - // a resource at any point in time. - type: #ConditionType @go(Type) - - // Status of this condition; is it currently True, False, or Unknown? - status: corev1.#ConditionStatus @go(Status) - - // LastTransitionTime is the last time this condition transitioned from one - // status to another. - lastTransitionTime: metav1.#Time @go(LastTransitionTime) - - // A Reason for this condition's last transition from one status to another. - reason: #ConditionReason @go(Reason) - - // A Message containing details about this condition's last transition from - // one status to another, if any. - // +optional - message?: string @go(Message) -} - -// A ConditionedStatus reflects the observed status of a resource. Only -// one condition of each type may exist. -#ConditionedStatus: { - // Conditions of the resource. - // +listType=map - // +listMapKey=type - // +optional - conditions?: [...#Condition] @go(Conditions,[]Condition) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/connection_details_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/connection_details_go_gen.cue deleted file mode 100644 index aa13784..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/connection_details_go_gen.cue +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane-runtime/apis/common/v1 - -package v1 - -import corev1 "k8s.io/api/core/v1" - -// LabelKeyOwnerUID is the UID of the owner resource of a connection secret. -// Kubernetes provides owner/controller references to track ownership of -// resources including secrets, however, this would only work for in cluster -// k8s secrets. We opted to use a label for this purpose to be consistent -// across Secret Store implementations and expect all to support -// setting/getting labels. -#LabelKeyOwnerUID: "secret.crossplane.io/owner-uid" - -// PublishConnectionDetailsTo represents configuration of a connection secret. -#PublishConnectionDetailsTo: { - // Name is the name of the connection secret. - name: string @go(Name) - - // Metadata is the metadata for connection secret. - // +optional - metadata?: null | #ConnectionSecretMetadata @go(Metadata,*ConnectionSecretMetadata) - - // SecretStoreConfigRef specifies which secret store config should be used - // for this ConnectionSecret. - // +optional - // +kubebuilder:default={"name": "default"} - configRef?: null | #Reference @go(SecretStoreConfigRef,*Reference) -} - -// ConnectionSecretMetadata represents metadata of a connection secret. -// Labels are used to track ownership of connection secrets and has to be -// supported for any secret store implementation. -#ConnectionSecretMetadata: { - // Labels are the labels/tags to be added to connection secret. - // - For Kubernetes secrets, this will be used as "metadata.labels". - // - It is up to Secret Store implementation for others store types. - // +optional - labels?: {[string]: string} @go(Labels,map[string]string) - - // Annotations are the annotations to be added to connection secret. - // - For Kubernetes secrets, this will be used as "metadata.annotations". - // - It is up to Secret Store implementation for others store types. - // +optional - annotations?: {[string]: string} @go(Annotations,map[string]string) - - // Type is the SecretType for the connection secret. - // - Only valid for Kubernetes Secret Stores. - // +optional - type?: null | corev1.#SecretType @go(Type,*corev1.SecretType) -} - -// SecretStoreType represents a secret store type. -// +kubebuilder:validation:Enum=Kubernetes;Vault;Plugin -#SecretStoreType: string // #enumSecretStoreType - -#enumSecretStoreType: - #SecretStoreKubernetes | - #SecretStorePlugin - -// SecretStoreKubernetes indicates that secret store type is -// Kubernetes. In other words, connection secrets will be stored as K8s -// Secrets. -#SecretStoreKubernetes: #SecretStoreType & "Kubernetes" - -// SecretStorePlugin indicates that secret store type is Plugin and will be used with external secret stores. -#SecretStorePlugin: #SecretStoreType & "Plugin" - -// SecretStoreConfig represents configuration of a Secret Store. -#SecretStoreConfig: { - // Type configures which secret store to be used. Only the configuration - // block for this store will be used and others will be ignored if provided. - // Default is Kubernetes. - // +optional - // +kubebuilder:default=Kubernetes - type?: null | #SecretStoreType @go(Type,*SecretStoreType) - - // DefaultScope used for scoping secrets for "cluster-scoped" resources. - // If store type is "Kubernetes", this would mean the default namespace to - // store connection secrets for cluster scoped resources. - // In case of "Vault", this would be used as the default parent path. - // Typically, should be set as Crossplane installation namespace. - defaultScope: string @go(DefaultScope) - - // Kubernetes configures a Kubernetes secret store. - // If the "type" is "Kubernetes" but no config provided, in cluster config - // will be used. - // +optional - kubernetes?: null | #KubernetesSecretStoreConfig @go(Kubernetes,*KubernetesSecretStoreConfig) - - // Plugin configures External secret store as a plugin. - // +optional - plugin?: null | #PluginStoreConfig @go(Plugin,*PluginStoreConfig) -} - -// PluginStoreConfig represents configuration of an External Secret Store. -#PluginStoreConfig: { - // Endpoint is the endpoint of the gRPC server. - endpoint?: string @go(Endpoint) - - // ConfigRef contains store config reference info. - configRef?: #Config @go(ConfigRef) -} - -// Config contains store config reference info. -#Config: { - // APIVersion of the referenced config. - apiVersion: string @go(APIVersion) - - // Kind of the referenced config. - kind: string @go(Kind) - - // Name of the referenced config. - name: string @go(Name) -} - -// KubernetesAuthConfig required to authenticate to a K8s API. It expects -// a "kubeconfig" file to be provided. -#KubernetesAuthConfig: { - // Source of the credentials. - // +kubebuilder:validation:Enum=None;Secret;Environment;Filesystem - source: #CredentialsSource @go(Source) - - #CommonCredentialSelectors -} - -// KubernetesSecretStoreConfig represents the required configuration -// for a Kubernetes secret store. -#KubernetesSecretStoreConfig: { - // Credentials used to connect to the Kubernetes API. - auth: #KubernetesAuthConfig @go(Auth) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/doc_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/doc_go_gen.cue deleted file mode 100644 index 4715d4e..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/doc_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane-runtime/apis/common/v1 - -// Package v1 contains core API types used by most Crossplane resources. -// +kubebuilder:object:generate=true -package v1 diff --git a/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/merge_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/merge_go_gen.cue deleted file mode 100644 index a258f8a..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/merge_go_gen.cue +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane-runtime/apis/common/v1 - -package v1 - -// MergeOptions Specifies merge options on a field path -#MergeOptions: { - // Specifies that already existing values in a merged map should be preserved - // +optional - keepMapValues?: null | bool @go(KeepMapValues,*bool) - - // Specifies that already existing elements in a merged slice should be preserved - // +optional - appendSlice?: null | bool @go(AppendSlice,*bool) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/policies_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/policies_go_gen.cue deleted file mode 100644 index ec873a2..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/policies_go_gen.cue +++ /dev/null @@ -1,125 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane-runtime/apis/common/v1 - -package v1 - -// ManagementPolicies determine how should Crossplane controllers manage an -// external resource through an array of ManagementActions. -#ManagementPolicies: [...#ManagementAction] - -// A ManagementAction represents an action that the Crossplane controllers -// can take on an external resource. -// +kubebuilder:validation:Enum=Observe;Create;Update;Delete;LateInitialize;* -#ManagementAction: string // #enumManagementAction - -#enumManagementAction: - #ManagementActionObserve | - #ManagementActionCreate | - #ManagementActionUpdate | - #ManagementActionDelete | - #ManagementActionLateInitialize | - #ManagementActionAll - -// ManagementActionObserve means that the managed resource status.atProvider -// will be updated with the external resource state. -#ManagementActionObserve: #ManagementAction & "Observe" - -// ManagementActionCreate means that the external resource will be created -// using the managed resource spec.initProvider and spec.forProvider. -#ManagementActionCreate: #ManagementAction & "Create" - -// ManagementActionUpdate means that the external resource will be updated -// using the managed resource spec.forProvider. -#ManagementActionUpdate: #ManagementAction & "Update" - -// ManagementActionDelete means that the external resource will be deleted -// when the managed resource is deleted. -#ManagementActionDelete: #ManagementAction & "Delete" - -// ManagementActionLateInitialize means that unspecified fields of the managed -// resource spec.forProvider will be updated with the external resource state. -#ManagementActionLateInitialize: #ManagementAction & "LateInitialize" - -// ManagementActionAll means that all of the above actions will be taken -// by the Crossplane controllers. -#ManagementActionAll: #ManagementAction & "*" - -// A DeletionPolicy determines what should happen to the underlying external -// resource when a managed resource is deleted. -// +kubebuilder:validation:Enum=Orphan;Delete -#DeletionPolicy: string // #enumDeletionPolicy - -#enumDeletionPolicy: - #DeletionOrphan | - #DeletionDelete - -// DeletionOrphan means the external resource will be orphaned when its -// managed resource is deleted. -#DeletionOrphan: #DeletionPolicy & "Orphan" - -// DeletionDelete means both the external resource will be deleted when its -// managed resource is deleted. -#DeletionDelete: #DeletionPolicy & "Delete" - -// A CompositeDeletePolicy determines how the composite resource should be deleted -// when the corresponding claim is deleted. -// +kubebuilder:validation:Enum=Background;Foreground -#CompositeDeletePolicy: string // #enumCompositeDeletePolicy - -#enumCompositeDeletePolicy: - #CompositeDeleteBackground | - #CompositeDeleteForeground - -// CompositeDeleteBackground means the composite resource will be deleted using -// the Background Propagation Policy when the claim is deleted. -#CompositeDeleteBackground: #CompositeDeletePolicy & "Background" - -// CompositeDeleteForeground means the composite resource will be deleted using -// the Foreground Propagation Policy when the claim is deleted. -#CompositeDeleteForeground: #CompositeDeletePolicy & "Foreground" - -// An UpdatePolicy determines how something should be updated - either -// automatically (without human intervention) or manually. -// +kubebuilder:validation:Enum=Automatic;Manual -#UpdatePolicy: string // #enumUpdatePolicy - -#enumUpdatePolicy: - #UpdateAutomatic | - #UpdateManual - -// UpdateAutomatic means the resource should be updated automatically, -// without any human intervention. -#UpdateAutomatic: #UpdatePolicy & "Automatic" - -// UpdateManual means the resource requires human intervention to -// update. -#UpdateManual: #UpdatePolicy & "Manual" - -// ResolvePolicy is a type for resolve policy. -#ResolvePolicy: string // #enumResolvePolicy - -#enumResolvePolicy: - #ResolvePolicyAlways - -// ResolutionPolicy is a type for resolution policy. -#ResolutionPolicy: string // #enumResolutionPolicy - -#enumResolutionPolicy: - #ResolutionPolicyRequired | - #ResolutionPolicyOptional - -// ResolvePolicyAlways is a resolve option. -// When the ResolvePolicy is set to ResolvePolicyAlways the reference will -// be tried to resolve for every reconcile loop. -#ResolvePolicyAlways: #ResolvePolicy & "Always" - -// ResolutionPolicyRequired is a resolution option. -// When the ResolutionPolicy is set to ResolutionPolicyRequired the execution -// could not continue even if the reference cannot be resolved. -#ResolutionPolicyRequired: #ResolutionPolicy & "Required" - -// ResolutionPolicyOptional is a resolution option. -// When the ReferenceResolutionPolicy is set to ReferencePolicyOptional the -// execution could continue even if the reference cannot be resolved. -#ResolutionPolicyOptional: #ResolutionPolicy & "Optional" diff --git a/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/resource_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/resource_go_gen.cue deleted file mode 100644 index 2907f4f..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane-runtime/apis/common/v1/resource_go_gen.cue +++ /dev/null @@ -1,292 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane-runtime/apis/common/v1 - -package v1 - -import ( - "k8s.io/apimachinery/pkg/types" - corev1 "k8s.io/api/core/v1" -) - -// ResourceCredentialsSecretEndpointKey is the key inside a connection secret for the connection endpoint -#ResourceCredentialsSecretEndpointKey: "endpoint" - -// ResourceCredentialsSecretPortKey is the key inside a connection secret for the connection port -#ResourceCredentialsSecretPortKey: "port" - -// ResourceCredentialsSecretUserKey is the key inside a connection secret for the connection user -#ResourceCredentialsSecretUserKey: "username" - -// ResourceCredentialsSecretPasswordKey is the key inside a connection secret for the connection password -#ResourceCredentialsSecretPasswordKey: "password" - -// ResourceCredentialsSecretCAKey is the key inside a connection secret for the server CA certificate -#ResourceCredentialsSecretCAKey: "clusterCA" - -// ResourceCredentialsSecretClientCertKey is the key inside a connection secret for the client certificate -#ResourceCredentialsSecretClientCertKey: "clientCert" - -// ResourceCredentialsSecretClientKeyKey is the key inside a connection secret for the client key -#ResourceCredentialsSecretClientKeyKey: "clientKey" - -// ResourceCredentialsSecretTokenKey is the key inside a connection secret for the bearer token value -#ResourceCredentialsSecretTokenKey: "token" - -// ResourceCredentialsSecretKubeconfigKey is the key inside a connection secret for the raw kubeconfig yaml -#ResourceCredentialsSecretKubeconfigKey: "kubeconfig" - -#LabelKeyProviderName: "crossplane.io/provider-config" - -// A LocalSecretReference is a reference to a secret in the same namespace as -// the referencer. -#LocalSecretReference: { - // Name of the secret. - name: string @go(Name) -} - -// A SecretReference is a reference to a secret in an arbitrary namespace. -#SecretReference: { - // Name of the secret. - name: string @go(Name) - - // Namespace of the secret. - namespace: string @go(Namespace) -} - -// A SecretKeySelector is a reference to a secret key in an arbitrary namespace. -#SecretKeySelector: { - #SecretReference - - // The key to select. - key: string @go(Key) -} - -// Policy represents the Resolve and Resolution policies of Reference instance. -#Policy: { - // Resolve specifies when this reference should be resolved. The default - // is 'IfNotPresent', which will attempt to resolve the reference only when - // the corresponding field is not present. Use 'Always' to resolve the - // reference on every reconcile. - // +optional - // +kubebuilder:validation:Enum=Always;IfNotPresent - resolve?: null | #ResolvePolicy @go(Resolve,*ResolvePolicy) - - // Resolution specifies whether resolution of this reference is required. - // The default is 'Required', which means the reconcile will fail if the - // reference cannot be resolved. 'Optional' means this reference will be - // a no-op if it cannot be resolved. - // +optional - // +kubebuilder:default=Required - // +kubebuilder:validation:Enum=Required;Optional - resolution?: null | #ResolutionPolicy @go(Resolution,*ResolutionPolicy) -} - -// A Reference to a named object. -#Reference: { - // Name of the referenced object. - name: string @go(Name) - - // Policies for referencing. - // +optional - policy?: null | #Policy @go(Policy,*Policy) -} - -// A TypedReference refers to an object by Name, Kind, and APIVersion. It is -// commonly used to reference cluster-scoped objects or objects where the -// namespace is already known. -#TypedReference: { - // APIVersion of the referenced object. - apiVersion: string @go(APIVersion) - - // Kind of the referenced object. - kind: string @go(Kind) - - // Name of the referenced object. - name: string @go(Name) - - // UID of the referenced object. - // +optional - uid?: types.#UID @go(UID) -} - -// A Selector selects an object. -#Selector: { - // MatchLabels ensures an object with matching labels is selected. - matchLabels?: {[string]: string} @go(MatchLabels,map[string]string) - - // MatchControllerRef ensures an object with the same controller reference - // as the selecting object is selected. - matchControllerRef?: null | bool @go(MatchControllerRef,*bool) - - // Policies for selection. - // +optional - policy?: null | #Policy @go(Policy,*Policy) -} - -// A ResourceSpec defines the desired state of a managed resource. -#ResourceSpec: { - // WriteConnectionSecretToReference specifies the namespace and name of a - // Secret to which any connection details for this managed resource should - // be written. Connection details frequently include the endpoint, username, - // and password required to connect to the managed resource. - // This field is planned to be replaced in a future release in favor of - // PublishConnectionDetailsTo. Currently, both could be set independently - // and connection details would be published to both without affecting - // each other. - // +optional - writeConnectionSecretToRef?: null | #SecretReference @go(WriteConnectionSecretToReference,*SecretReference) - - // PublishConnectionDetailsTo specifies the connection secret config which - // contains a name, metadata and a reference to secret store config to - // which any connection details for this managed resource should be written. - // Connection details frequently include the endpoint, username, - // and password required to connect to the managed resource. - // +optional - publishConnectionDetailsTo?: null | #PublishConnectionDetailsTo @go(PublishConnectionDetailsTo,*PublishConnectionDetailsTo) - - // ProviderConfigReference specifies how the provider that will be used to - // create, observe, update, and delete this managed resource should be - // configured. - // +kubebuilder:default={"name": "default"} - providerConfigRef?: null | #Reference @go(ProviderConfigReference,*Reference) - - // THIS IS A BETA FIELD. It is on by default but can be opted out - // through a Crossplane feature flag. - // ManagementPolicies specify the array of actions Crossplane is allowed to - // take on the managed and external resources. - // This field is planned to replace the DeletionPolicy field in a future - // release. Currently, both could be set independently and non-default - // values would be honored if the feature flag is enabled. If both are - // custom, the DeletionPolicy field will be ignored. - // See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 - // and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md - // +optional - // +kubebuilder:default={"*"} - managementPolicies?: #ManagementPolicies @go(ManagementPolicies) - - // DeletionPolicy specifies what will happen to the underlying external - // when this managed resource is deleted - either "Delete" or "Orphan" the - // external resource. - // This field is planned to be deprecated in favor of the ManagementPolicies - // field in a future release. Currently, both could be set independently and - // non-default values would be honored if the feature flag is enabled. - // See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 - // +optional - // +kubebuilder:default=Delete - deletionPolicy?: #DeletionPolicy @go(DeletionPolicy) -} - -// ResourceStatus represents the observed state of a managed resource. -#ResourceStatus: { - #ConditionedStatus -} - -// A CredentialsSource is a source from which provider credentials may be -// acquired. -#CredentialsSource: string // #enumCredentialsSource - -#enumCredentialsSource: - #CredentialsSourceNone | - #CredentialsSourceSecret | - #CredentialsSourceInjectedIdentity | - #CredentialsSourceEnvironment | - #CredentialsSourceFilesystem - -// CredentialsSourceNone indicates that a provider does not require -// credentials. -#CredentialsSourceNone: #CredentialsSource & "None" - -// CredentialsSourceSecret indicates that a provider should acquire -// credentials from a secret. -#CredentialsSourceSecret: #CredentialsSource & "Secret" - -// CredentialsSourceInjectedIdentity indicates that a provider should use -// credentials via its (pod's) identity; i.e. via IRSA for AWS, -// Workload Identity for GCP, Pod Identity for Azure, or in-cluster -// authentication for the Kubernetes API. -#CredentialsSourceInjectedIdentity: #CredentialsSource & "InjectedIdentity" - -// CredentialsSourceEnvironment indicates that a provider should acquire -// credentials from an environment variable. -#CredentialsSourceEnvironment: #CredentialsSource & "Environment" - -// CredentialsSourceFilesystem indicates that a provider should acquire -// credentials from the filesystem. -#CredentialsSourceFilesystem: #CredentialsSource & "Filesystem" - -// CommonCredentialSelectors provides common selectors for extracting -// credentials. -#CommonCredentialSelectors: { - // Fs is a reference to a filesystem location that contains credentials that - // must be used to connect to the provider. - // +optional - fs?: null | #FsSelector @go(Fs,*FsSelector) - - // Env is a reference to an environment variable that contains credentials - // that must be used to connect to the provider. - // +optional - env?: null | #EnvSelector @go(Env,*EnvSelector) - - // A SecretRef is a reference to a secret key that contains the credentials - // that must be used to connect to the provider. - // +optional - secretRef?: null | #SecretKeySelector @go(SecretRef,*SecretKeySelector) -} - -// EnvSelector selects an environment variable. -#EnvSelector: { - // Name is the name of an environment variable. - name: string @go(Name) -} - -// FsSelector selects a filesystem location. -#FsSelector: { - // Path is a filesystem path. - path: string @go(Path) -} - -// A ProviderConfigStatus defines the observed status of a ProviderConfig. -#ProviderConfigStatus: { - #ConditionedStatus - - // Users of this provider configuration. - users?: int64 @go(Users) -} - -// A ProviderConfigUsage is a record that a particular managed resource is using -// a particular provider configuration. -#ProviderConfigUsage: { - // ProviderConfigReference to the provider config being used. - providerConfigRef: #Reference @go(ProviderConfigReference) - - // ResourceReference to the managed resource using the provider config. - resourceRef: #TypedReference @go(ResourceReference) -} - -// A TargetSpec defines the common fields of objects used for exposing -// infrastructure to workloads that can be scheduled to. -// -// Deprecated. -#TargetSpec: { - // WriteConnectionSecretToReference specifies the name of a Secret, in the - // same namespace as this target, to which any connection details for this - // target should be written or already exist. Connection secrets referenced - // by a target should contain information for connecting to a resource that - // allows for scheduling of workloads. - // +optional - connectionSecretRef?: null | #LocalSecretReference @go(WriteConnectionSecretToReference,*LocalSecretReference) - - // A ResourceReference specifies an existing managed resource, in any - // namespace, which this target should attempt to propagate a connection - // secret from. - // +optional - clusterRef?: null | corev1.#ObjectReference @go(ResourceReference,*corev1.ObjectReference) -} - -// A TargetStatus defines the observed status a target. -// -// Deprecated. -#TargetStatus: { - #ConditionedStatus -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/apiextensions_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/apiextensions_go_gen.cue deleted file mode 100644 index df71c22..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/apiextensions_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions - -// Package apiextensions contains Kubernetes API groups for extension types of Crossplane. -package apiextensions diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/io/v1alpha1/doc_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/io/v1alpha1/doc_go_gen.cue deleted file mode 100644 index e9ea72a..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/io/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/fn/io/v1alpha1 - -// Package v1alpha1 contains meta types used to invoke Composition Functions. -// +kubebuilder:object:generate=true -// +groupName=fn.apiextensions.crossplane.io -// +versionName=v1alpha1 -package v1alpha1 diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/io/v1alpha1/functionio_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/io/v1alpha1/functionio_types_go_gen.cue deleted file mode 100644 index c397d61..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/io/v1alpha1/functionio_types_go_gen.cue +++ /dev/null @@ -1,275 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/fn/io/v1alpha1 - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - corev1 "k8s.io/api/core/v1" -) - -// A FunctionIO represents the I/O of an Composition Function. -#FunctionIO: { - metav1.#TypeMeta - - // Config is an opaque Kubernetes object containing optional function - // configuration. - // +optional - // +kubebuilder:validation:EmbeddedResource - // +kubebuilder:pruning:PreserveUnknownFields - config?: null | runtime.#RawExtension @go(Config,*runtime.RawExtension) - - // Observed state prior to the invocation of a function pipeline. Functions - // must not mutate this state - any attempts to do so will be ignored. State - // passed to each function is fresh as of the time the function pipeline was - // invoked, not as of the time each function was invoked. - observed: #Observed @go(Observed) - - // Desired state according to a function pipeline. The state passed to a - // particular function may have been mutated by previous functions in the - // pipeline. Functions may mutate any part of the desired state they are - // concerned with, and must pass through any part of the desired state that - // they are not concerned with. - desired: #Desired @go(Desired) - - // Results is an optional list that can be used by function to emit results - // for observability and debugging purposes. Functions may mutate any - // results that they are concerned with, and must pass through any results - // that that are not concerned with. - // +optional - results?: [...#Result] @go(Results,[]Result) -} - -// Observed state at the beginning of a function pipeline invocation. -#Observed: { - // Composite reflects the observed state of the XR this function reconciles. - composite: #ObservedComposite @go(Composite) - - // Resources reflect the observed state of any extant composed resources - // this function reconciles. Only composed resources that currently exist in - // the API server (i.e. have been created and not yet deleted) are included. - // +optional - resources?: [...#ObservedResource] @go(Resources,[]ObservedResource) -} - -// An ObservedComposite resource. -#ObservedComposite: { - // Resource reflects the observed XR. - // +kubebuilder:validation:EmbeddedResource - // +kubebuilder:pruning:PreserveUnknownFields - resource: runtime.#RawExtension @go(Resource) - - // ConnectionDetails reflects the observed connection details of the XR. - // +optional - connectionDetails?: [...#ExplicitConnectionDetail] @go(ConnectionDetails,[]ExplicitConnectionDetail) -} - -// An ObservedResource represents an observed composed resource. -#ObservedResource: { - // Name of the observed resource. Must be unique within the array of - // observed resources. Corresponds to the name entry in a Composition's - // resources array, and the name entry in the desired resources array. - name: string @go(Name) - - // Resource reflects the observed composed resource. - // +kubebuilder:validation:EmbeddedResource - // +kubebuilder:pruning:PreserveUnknownFields - resource: runtime.#RawExtension @go(Resource) - - // ConnectionDetails reflects the observed connection details of the - // composed resource. - connectionDetails: [...#ExplicitConnectionDetail] @go(ConnectionDetails,[]ExplicitConnectionDetail) -} - -// Desired state of a function pipeline invocation. -#Desired: { - // Composite reflects the desired state of the XR this function reconciles. - composite: #DesiredComposite @go(Composite) - - // Resources reflect the desired state of composed resources, including - // those that do not yet exist. - // +optional - resources?: [...#DesiredResource] @go(Resources,[]DesiredResource) -} - -// A DesiredComposite resource. -#DesiredComposite: { - // Resource reflects the desired XR. Functions may update the metadata, - // spec, and status of an XR. - // +kubebuilder:validation:EmbeddedResource - // +kubebuilder:pruning:PreserveUnknownFields - resource: runtime.#RawExtension @go(Resource) - - // ConnectionDetails reflects the desired connection details of the XR. - // +optional - connectionDetails: [...#ExplicitConnectionDetail] @go(ConnectionDetails,[]ExplicitConnectionDetail) -} - -// A DesiredResource represents a desired composed resource. -#DesiredResource: { - // Name of the desired resource. Must be unique within the array of - // desired resources. Corresponds to the name entry in a Composition's - // resources array, and the name entry in the observed resources array. - name: string @go(Name) - - // Resource reflects the desired composed resource. Functions may update the - // metadata and spec of a composed resource. Updates to status will be - // discarded. - // +kubebuilder:validation:EmbeddedResource - // +kubebuilder:pruning:PreserveUnknownFields - resource: runtime.#RawExtension @go(Resource) - - // ConnectionDetails reflects _XR_ connection details that should be derived - // from this composed resource. - // +optional - connectionDetails?: [...#DerivedConnectionDetail] @go(ConnectionDetails,[]DerivedConnectionDetail) - - // ReadinessChecks configures how this composed resource will be determined - // to be ready. - // +optional - readinessChecks?: [...#DesiredReadinessCheck] @go(ReadinessChecks,[]DesiredReadinessCheck) -} - -// An ExplicitConnectionDetail is a simple map of name (key) to value. -#ExplicitConnectionDetail: { - // Name of the connection detail. - name: string @go(Name) - - // Value of the connection detail. - value: string @go(Value) -} - -// A ConnectionDetailType is a type of connection detail. -#ConnectionDetailType: string // #enumConnectionDetailType - -#enumConnectionDetailType: - #ConnectionDetailTypeUnknown | - #ConnectionDetailTypeFromConnectionSecretKey | - #ConnectionDetailTypeFromFieldPath | - #ConnectionDetailTypeFromValue - -#ConnectionDetailTypeUnknown: #ConnectionDetailType & "Unknown" -#ConnectionDetailTypeFromConnectionSecretKey: #ConnectionDetailType & "FromConnectionSecretKey" -#ConnectionDetailTypeFromFieldPath: #ConnectionDetailType & "FromFieldPath" -#ConnectionDetailTypeFromValue: #ConnectionDetailType & "FromValue" - -// A DerivedConnectionDetail specifies how to derive an XR connection detail -// from a composed resource. -#DerivedConnectionDetail: { - // Name of the connection detail that will be propagated to the - // connection secret of the XR. Can be omitted for FromConnectionDetailKey, - // in which case it will default to that key. - // +optional - name?: null | string @go(Name,*string) - - // Type sets the connection detail fetching behaviour to be used. Each - // connection detail type may require its own fields to be set on the - // ConnectionDetail object. - // +kubebuilder:validation:Enum=FromConnectionDetailKey;FromFieldPath;FromValue - type: #ConnectionDetailType @go(Type) - - // FromConnectionDetailKey sets an XR connection detail to the value of the - // supplied connection detail of the composed resource. - // +optional - fromConnectionSecretKey?: null | string @go(FromConnectionSecretKey,*string) - - // FromFieldPath sets an XR connection detail to the value at the supplied - // fieldpath within the composed resource. - // +optional - fromFieldPath?: null | string @go(FromFieldPath,*string) - - // Value that will be propagated to the connection detail of the XR. - // +optional - value?: null | string @go(Value,*string) -} - -// ReadinessCheckType is used for readiness check types. -#ReadinessCheckType: string // #enumReadinessCheckType - -#enumReadinessCheckType: - #ReadinessCheckTypeNonEmpty | - #ReadinessCheckTypeMatchString | - #ReadinessCheckTypeMatchInteger | - #ReadinessCheckTypeMatchCondition | - #ReadinessCheckTypeNone - -#ReadinessCheckTypeNonEmpty: #ReadinessCheckType & "NonEmpty" -#ReadinessCheckTypeMatchString: #ReadinessCheckType & "MatchString" -#ReadinessCheckTypeMatchInteger: #ReadinessCheckType & "MatchInteger" -#ReadinessCheckTypeMatchCondition: #ReadinessCheckType & "MatchCondition" -#ReadinessCheckTypeNone: #ReadinessCheckType & "None" - -// A DesiredReadinessCheck is used to indicate how to tell whether a resource is -// ready for consumption -#DesiredReadinessCheck: { - // Type indicates the type of probe you'd like to use. - // +kubebuilder:validation:Enum="MatchString";"MatchInteger";"NonEmpty";"MatchCondition";"None" - type: #ReadinessCheckType @go(Type) - - // FieldPath shows the path of the field whose value will be used. - // +optional - fieldPath?: null | string @go(FieldPath,*string) - - // MatchString is the value you'd like to match if you're using - // "MatchString" type. - // +optional - matchString?: null | string @go(MatchString,*string) - - // MatchInt is the value you'd like to match if you're using "MatchInt" - // type. - // +optional - matchInteger?: null | int64 @go(MatchInteger,*int64) - - // MatchCondition specifies the condition you'd like to match if you're using "MatchCondition" type. - // +optional - matchCondition?: null | #MatchConditionReadinessCheck @go(MatchCondition,*MatchConditionReadinessCheck) -} - -// MatchConditionReadinessCheck is used to indicate how to tell whether a resource is ready -// for consumption -#MatchConditionReadinessCheck: { - // Type indicates the type of condition you'd like to use. - // +kubebuilder:default="Ready" - type: xpv1.#ConditionType @go(Type) - - // Status is the status of the condition you'd like to match. - // +kubebuilder:default="True" - status: corev1.#ConditionStatus @go(Status) -} - -// Result is an optional list that can be used by function to emit results for -// observability and debugging purposes. -#Result: { - // Severity is the severity of a result. - // - // Fatal results are fatal; subsequent Composition Functions may run, but - // the Composition Function pipeline run will be considered a failure and - // the first error will be returned. - // - // Warning results are non-fatal; the entire Composition will run to - // completion but warning events and debug logs associated with the - // composite resource will be emitted. - // - // Normal results are emitted as normal events and debug logs associated - // with the composite resource. - // +kubebuilder:validation:Enum=Fatal;Warning;Normal - severity: #Severity @go(Severity) - - // Message is a human readable message. - message: string @go(Message) -} - -// Severity is the severity of a result. -#Severity: string // #enumSeverity - -#enumSeverity: - #SeverityFatal | - #SeverityWarning | - #SeverityNormal - -#SeverityFatal: #Severity & "Fatal" -#SeverityWarning: #Severity & "Warning" -#SeverityNormal: #Severity & "Normal" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/io/v1alpha1/register_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/io/v1alpha1/register_go_gen.cue deleted file mode 100644 index 8b4f2ff..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/io/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/fn/io/v1alpha1 - -package v1alpha1 - -#Group: "fn.apiextensions.crossplane.io" -#Version: "v1alpha1" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/proto/v1alpha1/run_function.pb_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/proto/v1alpha1/run_function.pb_go_gen.cue deleted file mode 100644 index ca5d6f6..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/proto/v1alpha1/run_function.pb_go_gen.cue +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/fn/proto/v1alpha1 - -package v1alpha1 - -import "google.golang.org/protobuf/types/known/durationpb" - -// ImagePullPolicy specifies when a Composition Function container should be -// pulled from a remote OCI registry. -#ImagePullPolicy: int32 // #enumImagePullPolicy - -#enumImagePullPolicy: - #ImagePullPolicy_IMAGE_PULL_POLICY_UNSPECIFIED | - #ImagePullPolicy_IMAGE_PULL_POLICY_IF_NOT_PRESENT | - #ImagePullPolicy_IMAGE_PULL_POLICY_ALWAYS | - #ImagePullPolicy_IMAGE_PULL_POLICY_NEVER - -#values_ImagePullPolicy: { - ImagePullPolicy_IMAGE_PULL_POLICY_UNSPECIFIED: #ImagePullPolicy_IMAGE_PULL_POLICY_UNSPECIFIED - ImagePullPolicy_IMAGE_PULL_POLICY_IF_NOT_PRESENT: #ImagePullPolicy_IMAGE_PULL_POLICY_IF_NOT_PRESENT - ImagePullPolicy_IMAGE_PULL_POLICY_ALWAYS: #ImagePullPolicy_IMAGE_PULL_POLICY_ALWAYS - ImagePullPolicy_IMAGE_PULL_POLICY_NEVER: #ImagePullPolicy_IMAGE_PULL_POLICY_NEVER -} - -#ImagePullPolicy_IMAGE_PULL_POLICY_UNSPECIFIED: #ImagePullPolicy & 0 -#ImagePullPolicy_IMAGE_PULL_POLICY_IF_NOT_PRESENT: #ImagePullPolicy & 1 -#ImagePullPolicy_IMAGE_PULL_POLICY_ALWAYS: #ImagePullPolicy & 2 -#ImagePullPolicy_IMAGE_PULL_POLICY_NEVER: #ImagePullPolicy & 3 - -// NetworkPolicy configures whether a container is isolated from the network. -#NetworkPolicy: int32 // #enumNetworkPolicy - -#enumNetworkPolicy: - #NetworkPolicy_NETWORK_POLICY_UNSPECIFIED | - #NetworkPolicy_NETWORK_POLICY_ISOLATED | - #NetworkPolicy_NETWORK_POLICY_RUNNER - -#values_NetworkPolicy: { - NetworkPolicy_NETWORK_POLICY_UNSPECIFIED: #NetworkPolicy_NETWORK_POLICY_UNSPECIFIED - NetworkPolicy_NETWORK_POLICY_ISOLATED: #NetworkPolicy_NETWORK_POLICY_ISOLATED - NetworkPolicy_NETWORK_POLICY_RUNNER: #NetworkPolicy_NETWORK_POLICY_RUNNER -} - -#NetworkPolicy_NETWORK_POLICY_UNSPECIFIED: #NetworkPolicy & 0 - -// Run the container without network access. The default. -#NetworkPolicy_NETWORK_POLICY_ISOLATED: #NetworkPolicy & 1 - -// Allow the container to access the same network as the function runner. -#NetworkPolicy_NETWORK_POLICY_RUNNER: #NetworkPolicy & 2 - -// ImagePullAuth configures authentication to a remote OCI registry. -// It corresponds to go-containerregistry's AuthConfig type. -// https://pkg.go.dev/github.com/google/go-containerregistry@v0.11.0/pkg/authn#AuthConfig -#ImagePullAuth: { - username?: string @go(Username) @protobuf(1,bytes,opt,proto3) - password?: string @go(Password) @protobuf(2,bytes,opt,proto3) - auth?: string @go(Auth) @protobuf(3,bytes,opt,proto3) - identity_token?: string @go(IdentityToken) @protobuf(4,bytes,opt,json=identityToken,proto3) - registry_token?: string @go(RegistryToken) @protobuf(5,bytes,opt,json=registryToken,proto3) -} - -// ImagePullConfig configures how a Composition Function container should be -// pulled from a remote OCI registry. -#ImagePullConfig: { - pull_policy?: #ImagePullPolicy @go(PullPolicy) @protobuf(1,varint,opt,json=pullPolicy,proto3,enum=apiextensions.fn.proto.v1alpha1.ImagePullPolicy) - auth?: null | #ImagePullAuth @go(Auth,*ImagePullAuth) @protobuf(2,bytes,opt,proto3) -} - -// NetworkConfig configures whether and how a Composition Function container may -// access the network. -#NetworkConfig: { - // Whether or not the container can access the network. - policy?: #NetworkPolicy @go(Policy) @protobuf(1,varint,opt,proto3,enum=apiextensions.fn.proto.v1alpha1.NetworkPolicy) -} - -// Resources configures what compute resources should be available to a -// Composition Function container. -#ResourceConfig: { - limits?: null | #ResourceLimits @go(Limits,*ResourceLimits) @protobuf(1,bytes,opt,proto3) -} - -// ResourceLimits configures the maximum compute resources that will be -// available to a Composition Function container. -#ResourceLimits: { - // CPU, in cores. (500m = .5 cores) - // Specified in Kubernetes-style resource.Quantity form. - memory?: string @go(Memory) @protobuf(1,bytes,opt,proto3) - - // Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) - // Specified in Kubernetes-style resource.Quantity form. - cpu?: string @go(Cpu) @protobuf(2,bytes,opt,proto3) -} - -// RunFunctionConfig configures how a Composition Function container is run. -#RunFunctionConfig: { - // Resources available to the container. - resources?: null | #ResourceConfig @go(Resources,*ResourceConfig) @protobuf(1,bytes,opt,proto3) - - // Network configuration for the container. - network?: null | #NetworkConfig @go(Network,*NetworkConfig) @protobuf(2,bytes,opt,proto3) - - // Timeout after which the container will be killed. - timeout?: null | durationpb.#Duration @go(Timeout,*durationpb.Duration) @protobuf(3,bytes,opt,proto3) -} - -// A RunFunctionRequest requests that a Composition Function be run. -#RunFunctionRequest: { - // OCI image of the Composition Function. - image?: string @go(Image) @protobuf(1,bytes,opt,proto3) - - // A FunctionIO serialized as YAML. - input?: bytes @go(Input,[]byte) @protobuf(2,bytes,opt,proto3) - - // Configures how the function image is pulled. - image_pull_config?: null | #ImagePullConfig @go(ImagePullConfig,*ImagePullConfig) @protobuf(3,bytes,opt,json=imagePullConfig,proto3) - - // Configures how the function container is run. - run_function_config?: null | #RunFunctionConfig @go(RunFunctionConfig,*RunFunctionConfig) @protobuf(4,bytes,opt,json=runFunctionConfig,proto3) -} - -// A RunFunctionResponse contains the response from a Composition Function run. -// The output FunctionIO is returned as opaque bytes. Errors encountered while -// running a function (as opposed to errors returned _by_ a function) will be -// encapsulated as gRPC errors. -#RunFunctionResponse: { - output?: bytes @go(Output,[]byte) @protobuf(1,bytes,opt,proto3) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/proto/v1alpha1/run_function_grpc.pb_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/proto/v1alpha1/run_function_grpc.pb_go_gen.cue deleted file mode 100644 index 9a12e37..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/fn/proto/v1alpha1/run_function_grpc.pb_go_gen.cue +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/fn/proto/v1alpha1 - -package v1alpha1 - -#ContainerizedFunctionRunnerService_RunFunction_FullMethodName: "/apiextensions.fn.proto.v1alpha1.ContainerizedFunctionRunnerService/RunFunction" - -// ContainerizedFunctionRunnerServiceClient is the client API for ContainerizedFunctionRunnerService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -#ContainerizedFunctionRunnerServiceClient: _ - -// ContainerizedFunctionRunnerServiceServer is the server API for ContainerizedFunctionRunnerService service. -// All implementations must embed UnimplementedContainerizedFunctionRunnerServiceServer -// for forward compatibility -#ContainerizedFunctionRunnerServiceServer: _ - -// UnimplementedContainerizedFunctionRunnerServiceServer must be embedded to have forward compatible implementations. -#UnimplementedContainerizedFunctionRunnerServiceServer: { -} - -// UnsafeContainerizedFunctionRunnerServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ContainerizedFunctionRunnerServiceServer will -// result in compilation errors. -#UnsafeContainerizedFunctionRunnerServiceServer: _ diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_common_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_common_go_gen.cue deleted file mode 100644 index 4baeb9c..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_common_go_gen.cue +++ /dev/null @@ -1,309 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -import ( - "k8s.io/apimachinery/pkg/runtime" - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/api/resource" -) - -// TypeReference is used to refer to a type for declaring compatibility. -#TypeReference: { - // APIVersion of the type. - apiVersion: string @go(APIVersion) - - // Kind of the type. - kind: string @go(Kind) -} - -// A PatchSet is a set of patches that can be reused from all resources within -// a Composition. -#PatchSet: { - // Name of this PatchSet. - name: string @go(Name) - - // Patches will be applied as an overlay to the base resource. - patches: [...#Patch] @go(Patches,[]Patch) -} - -// ComposedTemplate is used to provide information about how the composed resource -// should be processed. -#ComposedTemplate: { - // A Name uniquely identifies this entry within its Composition's resources - // array. Names are optional but *strongly* recommended. When all entries in - // the resources array are named entries may added, deleted, and reordered - // as long as their names do not change. When entries are not named the - // length and order of the resources array should be treated as immutable. - // Either all or no entries must be named. - // +optional - name?: null | string @go(Name,*string) - - // Base is the target resource that the patches will be applied on. - // +kubebuilder:pruning:PreserveUnknownFields - // +kubebuilder:validation:EmbeddedResource - base: runtime.#RawExtension @go(Base) - - // Patches will be applied as overlay to the base resource. - // +optional - patches?: [...#Patch] @go(Patches,[]Patch) - - // ConnectionDetails lists the propagation secret keys from this target - // resource to the composition instance connection secret. - // +optional - connectionDetails?: [...#ConnectionDetail] @go(ConnectionDetails,[]ConnectionDetail) - - // ReadinessChecks allows users to define custom readiness checks. All checks - // have to return true in order for resource to be considered ready. The - // default readiness check is to have the "Ready" condition to be "True". - // +optional - // +kubebuilder:default={{type:"MatchCondition",matchCondition:{type:"Ready",status:"True"}}} - readinessChecks?: [...#ReadinessCheck] @go(ReadinessChecks,[]ReadinessCheck) -} - -// ReadinessCheckType is used for readiness check types. -#ReadinessCheckType: string // #enumReadinessCheckType - -#enumReadinessCheckType: - #ReadinessCheckTypeNonEmpty | - #ReadinessCheckTypeMatchString | - #ReadinessCheckTypeMatchInteger | - #ReadinessCheckTypeMatchCondition | - #ReadinessCheckTypeNone - -#ReadinessCheckTypeNonEmpty: #ReadinessCheckType & "NonEmpty" -#ReadinessCheckTypeMatchString: #ReadinessCheckType & "MatchString" -#ReadinessCheckTypeMatchInteger: #ReadinessCheckType & "MatchInteger" -#ReadinessCheckTypeMatchCondition: #ReadinessCheckType & "MatchCondition" -#ReadinessCheckTypeNone: #ReadinessCheckType & "None" - -// ReadinessCheck is used to indicate how to tell whether a resource is ready -// for consumption -#ReadinessCheck: { - // Type indicates the type of probe you'd like to use. - // +kubebuilder:validation:Enum="MatchString";"MatchInteger";"NonEmpty";"MatchCondition";"None" - type: #ReadinessCheckType @go(Type) - - // FieldPath shows the path of the field whose value will be used. - // +optional - fieldPath?: string @go(FieldPath) - - // MatchString is the value you'd like to match if you're using "MatchString" type. - // +optional - matchString?: string @go(MatchString) - - // MatchInt is the value you'd like to match if you're using "MatchInt" type. - // +optional - matchInteger?: int64 @go(MatchInteger) - - // MatchCondition specifies the condition you'd like to match if you're using "MatchCondition" type. - // +optional - matchCondition?: null | #MatchConditionReadinessCheck @go(MatchCondition,*MatchConditionReadinessCheck) -} - -// MatchConditionReadinessCheck is used to indicate how to tell whether a resource is ready -// for consumption -#MatchConditionReadinessCheck: { - // Type indicates the type of condition you'd like to use. - // +kubebuilder:default="Ready" - type: xpv1.#ConditionType @go(Type) - - // Status is the status of the condition you'd like to match. - // +kubebuilder:default="True" - status: corev1.#ConditionStatus @go(Status) -} - -// A ConnectionDetailType is a type of connection detail. -#ConnectionDetailType: string // #enumConnectionDetailType - -#enumConnectionDetailType: - #ConnectionDetailTypeUnknown | - #ConnectionDetailTypeFromConnectionSecretKey | - #ConnectionDetailTypeFromFieldPath | - #ConnectionDetailTypeFromValue - -#ConnectionDetailTypeUnknown: #ConnectionDetailType & "Unknown" -#ConnectionDetailTypeFromConnectionSecretKey: #ConnectionDetailType & "FromConnectionSecretKey" -#ConnectionDetailTypeFromFieldPath: #ConnectionDetailType & "FromFieldPath" -#ConnectionDetailTypeFromValue: #ConnectionDetailType & "FromValue" - -// ConnectionDetail includes the information about the propagation of the connection -// information from one secret to another. -#ConnectionDetail: { - // Name of the connection secret key that will be propagated to the - // connection secret of the composition instance. Leave empty if you'd like - // to use the same key name. - // +optional - name?: null | string @go(Name,*string) - - // Type sets the connection detail fetching behaviour to be used. Each - // connection detail type may require its own fields to be set on the - // ConnectionDetail object. If the type is omitted Crossplane will attempt - // to infer it based on which other fields were specified. If multiple - // fields are specified the order of precedence is: - // 1. FromValue - // 2. FromConnectionSecretKey - // 3. FromFieldPath - // +optional - // +kubebuilder:validation:Enum=FromConnectionSecretKey;FromFieldPath;FromValue - type?: null | #ConnectionDetailType @go(Type,*ConnectionDetailType) - - // FromConnectionSecretKey is the key that will be used to fetch the value - // from the composed resource's connection secret. - // +optional - fromConnectionSecretKey?: null | string @go(FromConnectionSecretKey,*string) - - // FromFieldPath is the path of the field on the composed resource whose - // value to be used as input. Name must be specified if the type is - // FromFieldPath. - // +optional - fromFieldPath?: null | string @go(FromFieldPath,*string) - - // Value that will be propagated to the connection secret of the composite - // resource. May be set to inject a fixed, non-sensitive connection secret - // value, for example a well-known port. - // +optional - value?: null | string @go(Value,*string) -} - -// A Function represents a Composition Function. -#Function: { - // Name of this function. Must be unique within its Composition. - name: string @go(Name) - - // Type of this function. - // +kubebuilder:validation:Enum=Container - type: #FunctionType @go(Type) - - // Config is an optional, arbitrary Kubernetes resource (i.e. a resource - // with an apiVersion and kind) that will be passed to the Composition - // Function as the 'config' block of its FunctionIO. - // +optional - // +kubebuilder:pruning:PreserveUnknownFields - // +kubebuilder:validation:EmbeddedResource - config?: null | runtime.#RawExtension @go(Config,*runtime.RawExtension) - - // Container configuration of this function. - // +optional - container?: null | #ContainerFunction @go(Container,*ContainerFunction) -} - -// A FunctionType is a type of Composition Function. -#FunctionType: string // #enumFunctionType - -#enumFunctionType: - #FunctionTypeContainer - -// FunctionTypeContainer represents a Composition Function that is packaged -// as an OCI image and run in a container. -#FunctionTypeContainer: #FunctionType & "Container" - -// A ContainerFunction represents an Composition Function that is packaged as an -// OCI image and run in a container. -#ContainerFunction: { - // Image specifies the OCI image in which the function is packaged. The - // image should include an entrypoint that reads a FunctionIO from stdin and - // emits it, optionally mutated, to stdout. - image: string @go(Image) - - // ImagePullPolicy defines the pull policy for the function image. - // +optional - // +kubebuilder:default=IfNotPresent - // +kubebuilder:validation:Enum="IfNotPresent";"Always";"Never" - imagePullPolicy?: null | corev1.#PullPolicy @go(ImagePullPolicy,*corev1.PullPolicy) - - // ImagePullSecrets are used to pull images from private OCI registries. - // +optional - imagePullSecrets?: [...corev1.#LocalObjectReference] @go(ImagePullSecrets,[]corev1.LocalObjectReference) - - // Timeout after which the Composition Function will be killed. - // +optional - // +kubebuilder:default="20s" - timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) - - // Network configuration for the Composition Function. - // +optional - network?: null | #ContainerFunctionNetwork @go(Network,*ContainerFunctionNetwork) - - // Resources that may be used by the Composition Function. - // +optional - resources?: null | #ContainerFunctionResources @go(Resources,*ContainerFunctionResources) - - // Runner configuration for the Composition Function. - // +optional - runner?: null | #ContainerFunctionRunner @go(Runner,*ContainerFunctionRunner) -} - -// A ContainerFunctionNetworkPolicy specifies the network policy under which -// a containerized Composition Function will run. -#ContainerFunctionNetworkPolicy: string // #enumContainerFunctionNetworkPolicy - -#enumContainerFunctionNetworkPolicy: - #ContainerFunctionNetworkPolicyIsolated | - #ContainerFunctionNetworkPolicyRunner - -// ContainerFunctionNetworkPolicyIsolated specifies that the Composition -// Function will not have network access; i.e. invoked inside an isolated -// network namespace. -#ContainerFunctionNetworkPolicyIsolated: #ContainerFunctionNetworkPolicy & "Isolated" - -// ContainerFunctionNetworkPolicyRunner specifies that the Composition -// Function will have the same network access as its runner, i.e. share its -// runner's network namespace. -#ContainerFunctionNetworkPolicyRunner: #ContainerFunctionNetworkPolicy & "Runner" - -// ContainerFunctionNetwork represents configuration for a Composition Function. -#ContainerFunctionNetwork: { - // Policy specifies the network policy under which the Composition Function - // will run. Defaults to 'Isolated' - i.e. no network access. Specify - // 'Runner' to allow the function the same network access as - // its runner. - // +optional - // +kubebuilder:validation:Enum="Isolated";"Runner" - // +kubebuilder:default=Isolated - policy?: null | #ContainerFunctionNetworkPolicy @go(Policy,*ContainerFunctionNetworkPolicy) -} - -// ContainerFunctionResources represents compute resources that may be used by a -// Composition Function. -#ContainerFunctionResources: { - // Limits specify the maximum compute resources that may be used by the - // Composition Function. - // +optional - limits?: null | #ContainerFunctionResourceLimits @go(Limits,*ContainerFunctionResourceLimits) -} - -// ContainerFunctionResourceLimits specify the maximum compute resources -// that may be used by a Composition Function. -#ContainerFunctionResourceLimits: { - // CPU, in cores. (500m = .5 cores) - // +kubebuilder:default="100m" - // +optional - cpu?: null | resource.#Quantity @go(CPU,*resource.Quantity) - - // Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) - // +kubebuilder:default="128Mi" - // +optional - memory?: null | resource.#Quantity @go(Memory,*resource.Quantity) -} - -// ContainerFunctionRunner represents runner configuration for a Composition -// Function. -#ContainerFunctionRunner: { - // Endpoint specifies how and where Crossplane should reach the runner it - // uses to invoke containerized Composition Functions. - // +optional - // +kubebuilder:default="unix-abstract:crossplane/fn/default.sock" - endpoint?: null | string @go(Endpoint,*string) -} - -// A StoreConfigReference references a secret store config that may be used to -// write connection details. -#StoreConfigReference: { - // Name of the referenced StoreConfig. - name: string @go(Name) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_environment_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_environment_go_gen.cue deleted file mode 100644 index 8d27861..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_environment_go_gen.cue +++ /dev/null @@ -1,175 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// An EnvironmentConfiguration specifies the environment for rendering composed -// resources. -#EnvironmentConfiguration: { - // EnvironmentConfigs selects a list of `EnvironmentConfig`s. The resolved - // resources are stored in the composite resource at - // `spec.environmentConfigRefs` and is only updated if it is null. - // - // The list of references is used to compute an in-memory environment at - // compose time. The data of all object is merged in the order they are - // listed, meaning the values of EnvironmentConfigs with a larger index take - // priority over ones with smaller indices. - // - // The computed environment can be accessed in a composition using - // `FromEnvironmentFieldPath` and `CombineFromEnvironment` patches. - // +optional - environmentConfigs?: [...#EnvironmentSource] @go(EnvironmentConfigs,[]EnvironmentSource) - - // Patches is a list of environment patches that are executed before a - // composition's resources are composed. - patches?: [...#EnvironmentPatch] @go(Patches,[]EnvironmentPatch) - - // Policy represents the Resolve and Resolution policies which apply to - // all EnvironmentSourceReferences in EnvironmentConfigs list. - // +optional - policy?: null | xpv1.#Policy @go(Policy,*xpv1.Policy) -} - -// EnvironmentSourceType specifies the way the EnvironmentConfig is selected. -#EnvironmentSourceType: string // #enumEnvironmentSourceType - -#enumEnvironmentSourceType: - #EnvironmentSourceTypeReference | - #EnvironmentSourceTypeSelector - -// EnvironmentSourceTypeReference by name. -#EnvironmentSourceTypeReference: #EnvironmentSourceType & "Reference" - -// EnvironmentSourceTypeSelector by labels. -#EnvironmentSourceTypeSelector: #EnvironmentSourceType & "Selector" - -// EnvironmentSource selects a EnvironmentConfig resource. -#EnvironmentSource: { - // Type specifies the way the EnvironmentConfig is selected. - // Default is `Reference` - // +optional - // +kubebuilder:validation:Enum=Reference;Selector - // +kubebuilder:default=Reference - type?: #EnvironmentSourceType @go(Type) - - // Ref is a named reference to a single EnvironmentConfig. - // Either Ref or Selector is required. - // +optional - ref?: null | #EnvironmentSourceReference @go(Ref,*EnvironmentSourceReference) - - // Selector selects EnvironmentConfig(s) via labels. - // +optional - selector?: null | #EnvironmentSourceSelector @go(Selector,*EnvironmentSourceSelector) -} - -// An EnvironmentSourceReference references an EnvironmentConfig by it's name. -#EnvironmentSourceReference: { - // The name of the object. - name: string @go(Name) -} - -// EnvironmentSourceSelectorModeType specifies amount of retrieved EnvironmentConfigs -// with matching label. -#EnvironmentSourceSelectorModeType: string // #enumEnvironmentSourceSelectorModeType - -#enumEnvironmentSourceSelectorModeType: - #EnvironmentSourceSelectorSingleMode | - #EnvironmentSourceSelectorMultiMode - -// EnvironmentSourceSelectorSingleMode extracts only first EnvironmentConfig from the sorted list. -#EnvironmentSourceSelectorSingleMode: #EnvironmentSourceSelectorModeType & "Single" - -// EnvironmentSourceSelectorMultiMode extracts multiple EnvironmentConfigs from the sorted list. -#EnvironmentSourceSelectorMultiMode: #EnvironmentSourceSelectorModeType & "Multiple" - -// An EnvironmentSourceSelector selects an EnvironmentConfig via labels. -#EnvironmentSourceSelector: { - // Mode specifies retrieval strategy: "Single" or "Multiple". - // +kubebuilder:validation:Enum=Single;Multiple - // +kubebuilder:default=Single - mode?: #EnvironmentSourceSelectorModeType @go(Mode) - - // MaxMatch specifies the number of extracted EnvironmentConfigs in Multiple mode, extracts all if nil. - maxMatch?: null | uint64 @go(MaxMatch,*uint64) - - // SortByFieldPath is the path to the field based on which list of EnvironmentConfigs is alphabetically sorted. - // +kubebuilder:default="metadata.name" - sortByFieldPath?: string @go(SortByFieldPath) - - // MatchLabels ensures an object with matching labels is selected. - matchLabels?: [...#EnvironmentSourceSelectorLabelMatcher] @go(MatchLabels,[]EnvironmentSourceSelectorLabelMatcher) -} - -// EnvironmentSourceSelectorLabelMatcherType specifies where the value for a -// label comes from. -#EnvironmentSourceSelectorLabelMatcherType: string // #enumEnvironmentSourceSelectorLabelMatcherType - -#enumEnvironmentSourceSelectorLabelMatcherType: - #EnvironmentSourceSelectorLabelMatcherTypeFromCompositeFieldPath | - #EnvironmentSourceSelectorLabelMatcherTypeValue - -// EnvironmentSourceSelectorLabelMatcherTypeFromCompositeFieldPath extracts -// the label value from a composite fieldpath. -#EnvironmentSourceSelectorLabelMatcherTypeFromCompositeFieldPath: #EnvironmentSourceSelectorLabelMatcherType & "FromCompositeFieldPath" - -// EnvironmentSourceSelectorLabelMatcherTypeValue uses a literal as label -// value. -#EnvironmentSourceSelectorLabelMatcherTypeValue: #EnvironmentSourceSelectorLabelMatcherType & "Value" - -// An EnvironmentSourceSelectorLabelMatcher acts like a k8s label selector but -// can draw the label value from a different path. -#EnvironmentSourceSelectorLabelMatcher: { - // Type specifies where the value for a label comes from. - // +optional - // +kubebuilder:validation:Enum=FromCompositeFieldPath;Value - // +kubebuilder:default=FromCompositeFieldPath - type?: #EnvironmentSourceSelectorLabelMatcherType @go(Type) - - // Key of the label to match. - key: string @go(Key) - - // ValueFromFieldPath specifies the field path to look for the label value. - valueFromFieldPath?: null | string @go(ValueFromFieldPath,*string) - - // Value specifies a literal label value. - value?: null | string @go(Value,*string) -} - -// EnvironmentPatch is a patch for a Composition environment. -#EnvironmentPatch: { - // Type sets the patching behaviour to be used. Each patch type may require - // its own fields to be set on the Patch object. - // +optional - // +kubebuilder:validation:Enum=FromCompositeFieldPath;ToCompositeFieldPath;CombineFromComposite;CombineToComposite - // +kubebuilder:default=FromCompositeFieldPath - type?: #PatchType @go(Type) - - // FromFieldPath is the path of the field on the resource whose value is - // to be used as input. Required when type is FromCompositeFieldPath or - // ToCompositeFieldPath. - // +optional - fromFieldPath?: null | string @go(FromFieldPath,*string) - - // Combine is the patch configuration for a CombineFromComposite or - // CombineToComposite patch. - // +optional - combine?: null | #Combine @go(Combine,*Combine) - - // ToFieldPath is the path of the field on the resource whose value will - // be changed with the result of transforms. Leave empty if you'd like to - // propagate to the same path as fromFieldPath. - // +optional - toFieldPath?: null | string @go(ToFieldPath,*string) - - // Transforms are the list of functions that are used as a FIFO pipe for the - // input to be transformed. - // +optional - transforms?: [...#Transform] @go(Transforms,[]Transform) - - // Policy configures the specifics of patching behaviour. - // +optional - policy?: null | #PatchPolicy @go(Policy,*PatchPolicy) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_patches_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_patches_go_gen.cue deleted file mode 100644 index 006125e..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_patches_go_gen.cue +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// A PatchType is a type of patch. -#PatchType: string // #enumPatchType - -#enumPatchType: - #PatchTypeFromCompositeFieldPath | - #PatchTypeFromEnvironmentFieldPath | - #PatchTypePatchSet | - #PatchTypeToCompositeFieldPath | - #PatchTypeToEnvironmentFieldPath | - #PatchTypeCombineFromEnvironment | - #PatchTypeCombineFromComposite | - #PatchTypeCombineToComposite | - #PatchTypeCombineToEnvironment - -#PatchTypeFromCompositeFieldPath: #PatchType & "FromCompositeFieldPath" -#PatchTypeFromEnvironmentFieldPath: #PatchType & "FromEnvironmentFieldPath" -#PatchTypePatchSet: #PatchType & "PatchSet" -#PatchTypeToCompositeFieldPath: #PatchType & "ToCompositeFieldPath" -#PatchTypeToEnvironmentFieldPath: #PatchType & "ToEnvironmentFieldPath" -#PatchTypeCombineFromEnvironment: #PatchType & "CombineFromEnvironment" -#PatchTypeCombineFromComposite: #PatchType & "CombineFromComposite" -#PatchTypeCombineToComposite: #PatchType & "CombineToComposite" -#PatchTypeCombineToEnvironment: #PatchType & "CombineToEnvironment" - -// A FromFieldPathPolicy determines how to patch from a field path. -#FromFieldPathPolicy: string // #enumFromFieldPathPolicy - -#enumFromFieldPathPolicy: - #FromFieldPathPolicyOptional | - #FromFieldPathPolicyRequired - -#FromFieldPathPolicyOptional: #FromFieldPathPolicy & "Optional" -#FromFieldPathPolicyRequired: #FromFieldPathPolicy & "Required" - -// A PatchPolicy configures the specifics of patching behaviour. -#PatchPolicy: { - // FromFieldPath specifies how to patch from a field path. The default is - // 'Optional', which means the patch will be a no-op if the specified - // fromFieldPath does not exist. Use 'Required' if the patch should fail if - // the specified path does not exist. - // +kubebuilder:validation:Enum=Optional;Required - // +optional - fromFieldPath?: null | #FromFieldPathPolicy @go(FromFieldPath,*FromFieldPathPolicy) - mergeOptions?: null | xpv1.#MergeOptions @go(MergeOptions,*xpv1.MergeOptions) -} - -// Patch objects are applied between composite and composed resources. Their -// behaviour depends on the Type selected. The default Type, -// FromCompositeFieldPath, copies a value from the composite resource to -// the composed resource, applying any defined transformers. -#Patch: { - // Type sets the patching behaviour to be used. Each patch type may require - // its own fields to be set on the Patch object. - // +optional - // +kubebuilder:validation:Enum=FromCompositeFieldPath;FromEnvironmentFieldPath;PatchSet;ToCompositeFieldPath;ToEnvironmentFieldPath;CombineFromEnvironment;CombineFromComposite;CombineToComposite;CombineToEnvironment - // +kubebuilder:default=FromCompositeFieldPath - type?: #PatchType @go(Type) - - // FromFieldPath is the path of the field on the resource whose value is - // to be used as input. Required when type is FromCompositeFieldPath, - // FromEnvironmentFieldPath, ToCompositeFieldPath, ToEnvironmentFieldPath. - // +optional - fromFieldPath?: null | string @go(FromFieldPath,*string) - - // Combine is the patch configuration for a CombineFromComposite, - // CombineFromEnvironment, CombineToComposite or CombineToEnvironment patch. - // +optional - combine?: null | #Combine @go(Combine,*Combine) - - // ToFieldPath is the path of the field on the resource whose value will - // be changed with the result of transforms. Leave empty if you'd like to - // propagate to the same path as fromFieldPath. - // +optional - toFieldPath?: null | string @go(ToFieldPath,*string) - - // PatchSetName to include patches from. Required when type is PatchSet. - // +optional - patchSetName?: null | string @go(PatchSetName,*string) - - // Transforms are the list of functions that are used as a FIFO pipe for the - // input to be transformed. - // +optional - transforms?: [...#Transform] @go(Transforms,[]Transform) - - // Policy configures the specifics of patching behaviour. - // +optional - policy?: null | #PatchPolicy @go(Policy,*PatchPolicy) -} - -// A CombineVariable defines the source of a value that is combined with -// others to form and patch an output value. Currently, this only supports -// retrieving values from a field path. -#CombineVariable: { - // FromFieldPath is the path of the field on the source whose value is - // to be used as input. - fromFieldPath: string @go(FromFieldPath) -} - -// A CombineStrategy determines what strategy will be applied to combine -// variables. -#CombineStrategy: string // #enumCombineStrategy - -#enumCombineStrategy: - #CombineStrategyString - -#CombineStrategyString: #CombineStrategy & "string" - -// A Combine configures a patch that combines more than -// one input field into a single output field. -#Combine: { - // Variables are the list of variables whose values will be retrieved and - // combined. - // +kubebuilder:validation:MinItems=1 - variables: [...#CombineVariable] @go(Variables,[]CombineVariable) - - // Strategy defines the strategy to use to combine the input variable values. - // Currently only string is supported. - // +kubebuilder:validation:Enum=string - strategy: #CombineStrategy @go(Strategy) - - // String declares that input variables should be combined into a single - // string, using the relevant settings for formatting purposes. - // +optional - string?: null | #StringCombine @go(String,*StringCombine) -} - -// A StringCombine combines multiple input values into a single string. -#StringCombine: { - // Format the input using a Go format string. See - // https://golang.org/pkg/fmt/ for details. - fmt: string @go(Format) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_revision_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_revision_types_go_gen.cue deleted file mode 100644 index 10bdae8..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_revision_types_go_gen.cue +++ /dev/null @@ -1,101 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -import ( - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// LabelCompositionName is the name of the Composition used to create -// this CompositionRevision. -#LabelCompositionName: "crossplane.io/composition-name" - -// LabelCompositionHash is a hash of the Composition label, annotation -// and spec used to create this CompositionRevision. Used to identify -// identical revisions. -#LabelCompositionHash: "crossplane.io/composition-hash" - -// CompositionRevisionSpec specifies the desired state of the composition -// revision. -#CompositionRevisionSpec: { - // CompositeTypeRef specifies the type of composite resource that this - // composition is compatible with. - // +immutable - compositeTypeRef: #TypeReference @go(CompositeTypeRef) - - // PatchSets define a named set of patches that may be included by - // any resource in this Composition. - // PatchSets cannot themselves refer to other PatchSets. - // +optional - patchSets?: [...#PatchSet] @go(PatchSets,[]PatchSet) - - // Environment configures the environment in which resources are rendered. - // +optional - environment?: null | #EnvironmentConfiguration @go(Environment,*EnvironmentConfiguration) - - // Resources is the list of resource templates that will be used when a - // composite resource referring to this composition is created. - // +optional - resources: [...#ComposedTemplate] @go(Resources,[]ComposedTemplate) - - // Functions is list of Composition Functions that will be used when a - // composite resource referring to this composition is created. At least one - // of resources and functions must be specified. If both are specified the - // resources will be rendered first, then passed to the functions for - // further processing. - // +optional - functions?: [...#Function] @go(Functions,[]Function) - - // WriteConnectionSecretsToNamespace specifies the namespace in which the - // connection secrets of composite resource dynamically provisioned using - // this composition will be created. - // This field is planned to be removed in a future release in favor of - // PublishConnectionDetailsWithStoreConfigRef. Currently, both could be - // set independently and connection details would be published to both - // without affecting each other as long as related fields at MR level - // specified. - // +optional - writeConnectionSecretsToNamespace?: null | string @go(WriteConnectionSecretsToNamespace,*string) - - // PublishConnectionDetailsWithStoreConfig specifies the secret store config - // with which the connection details of composite resources dynamically - // provisioned using this composition will be published. - // +optional - // +kubebuilder:default={"name": "default"} - publishConnectionDetailsWithStoreConfigRef?: null | #StoreConfigReference @go(PublishConnectionDetailsWithStoreConfigRef,*StoreConfigReference) - - // Revision number. Newer revisions have larger numbers. - // +immutable - revision: int64 @go(Revision) -} - -// CompositionRevisionStatus shows the observed state of the composition -// revision. -#CompositionRevisionStatus: { - xpv1.#ConditionedStatus -} - -// A CompositionRevision represents a revision in time of a Composition. -// Revisions are created by Crossplane; they should be treated as immutable. -// +kubebuilder:printcolumn:name="REVISION",type="string",JSONPath=".spec.revision" -// +kubebuilder:printcolumn:name="XR-KIND",type="string",JSONPath=".spec.compositeTypeRef.kind" -// +kubebuilder:printcolumn:name="XR-APIVERSION",type="string",JSONPath=".spec.compositeTypeRef.apiVersion" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:resource:scope=Cluster,categories=crossplane,shortName=comprev -// +kubebuilder:subresource:status -#CompositionRevision: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec?: #CompositionRevisionSpec @go(Spec) - status?: #CompositionRevisionStatus @go(Status) -} - -// CompositionRevisionList contains a list of CompositionRevisions. -#CompositionRevisionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CompositionRevision] @go(Items,[]CompositionRevision) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_transforms_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_transforms_go_gen.cue deleted file mode 100644 index 7274509..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_transforms_go_gen.cue +++ /dev/null @@ -1,285 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -import extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" - -// TransformType is type of the transform function to be chosen. -#TransformType: string // #enumTransformType - -#enumTransformType: - #TransformTypeMap | - #TransformTypeMatch | - #TransformTypeMath | - #TransformTypeString | - #TransformTypeConvert - -#ErrFmtConvertFormatPairNotSupported: "conversion from %s to %s is not supported with format %s" -#TransformTypeMap: #TransformType & "map" -#TransformTypeMatch: #TransformType & "match" -#TransformTypeMath: #TransformType & "math" -#TransformTypeString: #TransformType & "string" -#TransformTypeConvert: #TransformType & "convert" - -// Transform is a unit of process whose input is transformed into an output with -// the supplied configuration. -#Transform: { - // Type of the transform to be run. - // +kubebuilder:validation:Enum=map;match;math;string;convert - type: #TransformType @go(Type) - - // Math is used to transform the input via mathematical operations such as - // multiplication. - // +optional - math?: null | #MathTransform @go(Math,*MathTransform) - - // Map uses the input as a key in the given map and returns the value. - // +optional - map?: null | #MapTransform @go(Map,*MapTransform) - - // Match is a more complex version of Map that matches a list of patterns. - // +optional - match?: null | #MatchTransform @go(Match,*MatchTransform) - - // String is used to transform the input into a string or a different kind - // of string. Note that the input does not necessarily need to be a string. - // +optional - string?: null | #StringTransform @go(String,*StringTransform) - - // Convert is used to cast the input into the given output type. - // +optional - convert?: null | #ConvertTransform @go(Convert,*ConvertTransform) -} - -// MathTransformType conducts mathematical operations. -#MathTransformType: string // #enumMathTransformType - -#enumMathTransformType: - #MathTransformTypeMultiply | - #MathTransformTypeClampMin | - #MathTransformTypeClampMax - -#MathTransformTypeMultiply: #MathTransformType & "Multiply" -#MathTransformTypeClampMin: #MathTransformType & "ClampMin" -#MathTransformTypeClampMax: #MathTransformType & "ClampMax" - -// MathTransform conducts mathematical operations on the input with the given -// configuration in its properties. -#MathTransform: { - // Type of the math transform to be run. - // +optional - // +kubebuilder:validation:Enum=Multiply;ClampMin;ClampMax - // +kubebuilder:default=Multiply - type?: #MathTransformType @go(Type) - - // Multiply the value. - // +optional - multiply?: null | int64 @go(Multiply,*int64) - - // ClampMin makes sure that the value is not smaller than the given value. - // +optional - clampMin?: null | int64 @go(ClampMin,*int64) - - // ClampMax makes sure that the value is not bigger than the given value. - // +optional - clampMax?: null | int64 @go(ClampMax,*int64) -} - -// MapTransform returns a value for the input from the given map. -#MapTransform: _ - -// MatchFallbackTo defines how a match operation will fallback. -#MatchFallbackTo: string // #enumMatchFallbackTo - -#enumMatchFallbackTo: - #MatchFallbackToTypeValue | - #MatchFallbackToTypeInput - -#MatchFallbackToTypeValue: #MatchFallbackTo & "Value" -#MatchFallbackToTypeInput: #MatchFallbackTo & "Input" - -// MatchTransform is a more complex version of a map transform that matches a -// list of patterns. -#MatchTransform: { - // The patterns that should be tested against the input string. - // Patterns are tested in order. The value of the first match is used as - // result of this transform. - patterns?: [...#MatchTransformPattern] @go(Patterns,[]MatchTransformPattern) - - // The fallback value that should be returned by the transform if now pattern - // matches. - fallbackValue?: extv1.#JSON @go(FallbackValue) - - // Determines to what value the transform should fallback if no pattern matches. - // +optional - // +kubebuilder:validation:Enum=Value;Input - // +kubebuilder:default=Value - fallbackTo?: #MatchFallbackTo @go(FallbackTo) -} - -// MatchTransformPatternType defines the type of a MatchTransformPattern. -#MatchTransformPatternType: string // #enumMatchTransformPatternType - -#enumMatchTransformPatternType: - #MatchTransformPatternTypeLiteral | - #MatchTransformPatternTypeRegexp - -#MatchTransformPatternTypeLiteral: #MatchTransformPatternType & "literal" -#MatchTransformPatternTypeRegexp: #MatchTransformPatternType & "regexp" - -// MatchTransformPattern is a transform that returns the value that matches a -// pattern. -#MatchTransformPattern: { - // Type specifies how the pattern matches the input. - // - // * `literal` - the pattern value has to exactly match (case sensitive) the - // input string. This is the default. - // - // * `regexp` - the pattern treated as a regular expression against - // which the input string is tested. Crossplane will throw an error if the - // key is not a valid regexp. - // - // +kubebuilder:validation:Enum=literal;regexp - // +kubebuilder:default=literal - type: #MatchTransformPatternType @go(Type) - - // Literal exactly matches the input string (case sensitive). - // Is required if `type` is `literal`. - literal?: null | string @go(Literal,*string) - - // Regexp to match against the input string. - // Is required if `type` is `regexp`. - regexp?: null | string @go(Regexp,*string) - - // The value that is used as result of the transform if the pattern matches. - result: extv1.#JSON @go(Result) -} - -// StringTransformType transforms a string. -#StringTransformType: string // #enumStringTransformType - -#enumStringTransformType: - #StringTransformTypeFormat | - #StringTransformTypeConvert | - #StringTransformTypeTrimPrefix | - #StringTransformTypeTrimSuffix | - #StringTransformTypeRegexp - -#StringTransformTypeFormat: #StringTransformType & "Format" -#StringTransformTypeConvert: #StringTransformType & "Convert" -#StringTransformTypeTrimPrefix: #StringTransformType & "TrimPrefix" -#StringTransformTypeTrimSuffix: #StringTransformType & "TrimSuffix" -#StringTransformTypeRegexp: #StringTransformType & "Regexp" - -// StringConversionType converts a string. -#StringConversionType: string // #enumStringConversionType - -#enumStringConversionType: - #StringConversionTypeToUpper | - #StringConversionTypeToLower | - #StringConversionTypeToJSON | - #StringConversionTypeToBase64 | - #StringConversionTypeFromBase64 | - #StringConversionTypeToSHA1 | - #StringConversionTypeToSHA256 | - #StringConversionTypeToSHA512 - -#StringConversionTypeToUpper: #StringConversionType & "ToUpper" -#StringConversionTypeToLower: #StringConversionType & "ToLower" -#StringConversionTypeToJSON: #StringConversionType & "ToJson" -#StringConversionTypeToBase64: #StringConversionType & "ToBase64" -#StringConversionTypeFromBase64: #StringConversionType & "FromBase64" -#StringConversionTypeToSHA1: #StringConversionType & "ToSha1" -#StringConversionTypeToSHA256: #StringConversionType & "ToSha256" -#StringConversionTypeToSHA512: #StringConversionType & "ToSha512" - -// A StringTransform returns a string given the supplied input. -#StringTransform: { - // Type of the string transform to be run. - // +optional - // +kubebuilder:validation:Enum=Format;Convert;TrimPrefix;TrimSuffix;Regexp - // +kubebuilder:default=Format - type?: #StringTransformType @go(Type) - - // Format the input using a Go format string. See - // https://golang.org/pkg/fmt/ for details. - // +optional - fmt?: null | string @go(Format,*string) - - // Optional conversion method to be specified. - // `ToUpper` and `ToLower` change the letter case of the input string. - // `ToBase64` and `FromBase64` perform a base64 conversion based on the input string. - // `ToJson` converts any input value into its raw JSON representation. - // `ToSha1`, `ToSha256` and `ToSha512` generate a hash value based on the input - // converted to JSON. - // +optional - // +kubebuilder:validation:Enum=ToUpper;ToLower;ToBase64;FromBase64;ToJson;ToSha1;ToSha256;ToSha512 - convert?: null | #StringConversionType @go(Convert,*StringConversionType) - - // Trim the prefix or suffix from the input - // +optional - trim?: null | string @go(Trim,*string) - - // Extract a match from the input using a regular expression. - // +optional - regexp?: null | #StringTransformRegexp @go(Regexp,*StringTransformRegexp) -} - -// A StringTransformRegexp extracts a match from the input using a regular -// expression. -#StringTransformRegexp: { - // Match string. May optionally include submatches, aka capture groups. - // See https://pkg.go.dev/regexp/ for details. - match: string @go(Match) - - // Group number to match. 0 (the default) matches the entire expression. - // +optional - group?: null | int @go(Group,*int) -} - -// TransformIOType defines the type of a ConvertTransform. -#TransformIOType: string // #enumTransformIOType - -#enumTransformIOType: - #TransformIOTypeString | - #TransformIOTypeBool | - #TransformIOTypeInt | - #TransformIOTypeInt64 | - #TransformIOTypeFloat64 - -#TransformIOTypeString: #TransformIOType & "string" -#TransformIOTypeBool: #TransformIOType & "bool" -#TransformIOTypeInt: #TransformIOType & "int" -#TransformIOTypeInt64: #TransformIOType & "int64" -#TransformIOTypeFloat64: #TransformIOType & "float64" - -// ConvertTransformFormat defines the expected format of an input value of a -// conversion transform. -#ConvertTransformFormat: string // #enumConvertTransformFormat - -#enumConvertTransformFormat: - #ConvertTransformFormatNone | - #ConvertTransformFormatQuantity - -#ConvertTransformFormatNone: #ConvertTransformFormat & "none" -#ConvertTransformFormatQuantity: #ConvertTransformFormat & "quantity" - -// A ConvertTransform converts the input into a new object whose type is supplied. -#ConvertTransform: { - // ToType is the type of the output of this transform. - // +kubebuilder:validation:Enum=string;int;int64;bool;float64 - toType: #TransformIOType @go(ToType) - - // The expected input format. - // - // * `quantity` - parses the input as a K8s [`resource.Quantity`](https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity). - // Only used during `string -> float64` conversions. - // - // If this property is null, the default conversion is applied. - // - // +kubebuilder:validation:Enum=none;quantity - // +kubebuilder:validation:Default=none - format?: null | #ConvertTransformFormat @go(Format,*ConvertTransformFormat) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_types_go_gen.cue deleted file mode 100644 index c4a545e..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_types_go_gen.cue +++ /dev/null @@ -1,88 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// CompositionSpec specifies desired state of a composition. -#CompositionSpec: { - // CompositeTypeRef specifies the type of composite resource that this - // composition is compatible with. - // +immutable - compositeTypeRef: #TypeReference @go(CompositeTypeRef) - - // PatchSets define a named set of patches that may be included by - // any resource in this Composition. - // PatchSets cannot themselves refer to other PatchSets. - // +optional - patchSets?: [...#PatchSet] @go(PatchSets,[]PatchSet) - - // Environment configures the environment in which resources are rendered. - // THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored - // unless the relevant Crossplane feature flag is enabled, and may be - // changed or removed without notice. - // +optional - environment?: null | #EnvironmentConfiguration @go(Environment,*EnvironmentConfiguration) - - // Resources is a list of resource templates that will be used when a - // composite resource referring to this composition is created. At least one - // of resources and functions must be specififed. If both are specified the - // resources will be rendered first, then passed to the functions for - // further processing. - // +optional - resources?: [...#ComposedTemplate] @go(Resources,[]ComposedTemplate) - - // Functions is list of Composition Functions that will be used when a - // composite resource referring to this composition is created. At least one - // of resources and functions must be specified. If both are specified the - // resources will be rendered first, then passed to the functions for - // further processing. - // - // THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored - // unless the relevant Crossplane feature flag is enabled, and may be - // changed or removed without notice. - // +optional - functions?: [...#Function] @go(Functions,[]Function) - - // WriteConnectionSecretsToNamespace specifies the namespace in which the - // connection secrets of composite resource dynamically provisioned using - // this composition will be created. - // This field is planned to be replaced in a future release in favor of - // PublishConnectionDetailsWithStoreConfigRef. Currently, both could be - // set independently and connection details would be published to both - // without affecting each other as long as related fields at MR level - // specified. - // +optional - writeConnectionSecretsToNamespace?: null | string @go(WriteConnectionSecretsToNamespace,*string) - - // PublishConnectionDetailsWithStoreConfig specifies the secret store config - // with which the connection details of composite resources dynamically - // provisioned using this composition will be published. - // - // THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored - // unless the relevant Crossplane feature flag is enabled, and may be - // changed or removed without notice. - // +optional - // +kubebuilder:default={"name": "default"} - publishConnectionDetailsWithStoreConfigRef?: null | #StoreConfigReference @go(PublishConnectionDetailsWithStoreConfigRef,*StoreConfigReference) -} - -// A Composition specifies how a composite resource should be composed. -// +kubebuilder:printcolumn:name="XR-KIND",type="string",JSONPath=".spec.compositeTypeRef.kind" -// +kubebuilder:printcolumn:name="XR-APIVERSION",type="string",JSONPath=".spec.compositeTypeRef.apiVersion" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:resource:scope=Cluster,categories=crossplane,shortName=comp -#Composition: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec?: #CompositionSpec @go(Spec) -} - -// CompositionList contains a list of Compositions. -#CompositionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Composition] @go(Items,[]Composition) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_webhooks_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_webhooks_go_gen.cue deleted file mode 100644 index 4884956..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/composition_webhooks_go_gen.cue +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -// CompositionValidatingWebhookPath is the path for the Composition's validating webhook, should be kept in sync with the annotation above. -#CompositionValidatingWebhookPath: "/validate-apiextensions-crossplane-io-v1-composition" - -// CompositionValidationModeAnnotation is the annotation that can be used to specify the validation mode for a Composition. -#CompositionValidationModeAnnotation: "crossplane.io/composition-validation-mode" -_#errFmtInvalidCompositionValidationMode: "invalid composition validation mode: %s" - -// CompositionValidationMode is the validation mode for a Composition. -#CompositionValidationMode: string diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/conditions_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/conditions_go_gen.cue deleted file mode 100644 index dcb9085..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/conditions_go_gen.cue +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// A TypeEstablished XRD has created the CRD for its composite resource and -// started a controller to reconcile instances of said resource. -#TypeEstablished: xpv1.#ConditionType & "Established" - -// A TypeOffered XRD has created the CRD for its composite resource claim -// and started a controller to reconcile instances of said claim. -#TypeOffered: xpv1.#ConditionType & "Offered" - -#ReasonWatchingComposite: xpv1.#ConditionReason & "WatchingCompositeResource" -#ReasonWatchingClaim: xpv1.#ConditionReason & "WatchingCompositeResourceClaim" -#ReasonTerminatingComposite: xpv1.#ConditionReason & "TerminatingCompositeResource" -#ReasonTerminatingClaim: xpv1.#ConditionReason & "TerminatingCompositeResourceClaim" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/conversion_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/conversion_go_gen.cue deleted file mode 100644 index 3b23126..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/conversion_go_gen.cue +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -// A RevisionSpecConverter converts a CompositionSpec to the equivalent -// CompositionRevisionSpec. -// -// goverter:converter -// goverter:name GeneratedRevisionSpecConverter -// goverter:extend ConvertRawExtension ConvertResourceQuantity -// +k8s:deepcopy-gen=false -#RevisionSpecConverter: _ diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/doc_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/doc_go_gen.cue deleted file mode 100644 index a28ec08..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -// Package v1 contains API types that extend the Crossplane API. -// +kubebuilder:object:generate=true -// +groupName=apiextensions.crossplane.io -// +versionName=v1 -package v1 diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/register_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/register_go_gen.cue deleted file mode 100644 index da31902..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -#Group: "apiextensions.crossplane.io" -#Version: "v1" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/xrd_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/xrd_types_go_gen.cue deleted file mode 100644 index 822d294..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/xrd_types_go_gen.cue +++ /dev/null @@ -1,215 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -import ( - extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - "k8s.io/apimachinery/pkg/runtime" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// CompositeResourceDefinitionSpec specifies the desired state of the definition. -#CompositeResourceDefinitionSpec: { - // Group specifies the API group of the defined composite resource. - // Composite resources are served under `/apis//...`. Must match the - // name of the XRD (in the form `.`). - // +immutable - group: string @go(Group) - - // Names specifies the resource and kind names of the defined composite - // resource. - // +immutable - names: extv1.#CustomResourceDefinitionNames @go(Names) - - // ClaimNames specifies the names of an optional composite resource claim. - // When claim names are specified Crossplane will create a namespaced - // 'composite resource claim' CRD that corresponds to the defined composite - // resource. This composite resource claim acts as a namespaced proxy for - // the composite resource; creating, updating, or deleting the claim will - // create, update, or delete a corresponding composite resource. You may add - // claim names to an existing CompositeResourceDefinition, but they cannot - // be changed or removed once they have been set. - // +immutable - // +optional - claimNames?: null | extv1.#CustomResourceDefinitionNames @go(ClaimNames,*extv1.CustomResourceDefinitionNames) - - // ConnectionSecretKeys is the list of keys that will be exposed to the end - // user of the defined kind. - // If the list is empty, all keys will be published. - // +optional - connectionSecretKeys?: [...string] @go(ConnectionSecretKeys,[]string) - - // DefaultCompositeDeletePolicy is the policy used when deleting the Composite - // that is associated with the Claim if no policy has been specified. - // +optional - // +kubebuilder:default=Background - defaultCompositeDeletePolicy?: null | xpv1.#CompositeDeletePolicy @go(DefaultCompositeDeletePolicy,*xpv1.CompositeDeletePolicy) - - // DefaultCompositionRef refers to the Composition resource that will be used - // in case no composition selector is given. - // +optional - defaultCompositionRef?: null | #CompositionReference @go(DefaultCompositionRef,*CompositionReference) - - // EnforcedCompositionRef refers to the Composition resource that will be used - // by all composite instances whose schema is defined by this definition. - // +optional - // +immutable - enforcedCompositionRef?: null | #CompositionReference @go(EnforcedCompositionRef,*CompositionReference) - - // DefaultCompositionUpdatePolicy is the policy used when updating composites after a new - // Composition Revision has been created if no policy has been specified on the composite. - // +optional - // +kubebuilder:default=Automatic - defaultCompositionUpdatePolicy?: null | xpv1.#UpdatePolicy @go(DefaultCompositionUpdatePolicy,*xpv1.UpdatePolicy) - - // Versions is the list of all API versions of the defined composite - // resource. Version names are used to compute the order in which served - // versions are listed in API discovery. If the version string is - // "kube-like", it will sort above non "kube-like" version strings, which - // are ordered lexicographically. "Kube-like" versions start with a "v", - // then are followed by a number (the major version), then optionally the - // string "alpha" or "beta" and another number (the minor version). These - // are sorted first by GA > beta > alpha (where GA is a version with no - // suffix such as beta or alpha), and then by comparing major version, then - // minor version. An example sorted list of versions: v10, v2, v1, v11beta2, - // v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - versions: [...#CompositeResourceDefinitionVersion] @go(Versions,[]CompositeResourceDefinitionVersion) - - // Conversion defines all conversion settings for the defined Composite resource. - // +optional - conversion?: null | extv1.#CustomResourceConversion @go(Conversion,*extv1.CustomResourceConversion) - - // Metadata specifies the desired metadata for the defined composite resource and claim CRD's. - // +optional - metadata?: null | #CompositeResourceDefinitionSpecMetadata @go(Metadata,*CompositeResourceDefinitionSpecMetadata) -} - -// A CompositionReference references a Composition. -#CompositionReference: { - // Name of the Composition. - name: string @go(Name) -} - -// CompositeResourceDefinitionSpecMetadata specifies the desired metadata of the defined composite resource and claim CRD's. -#CompositeResourceDefinitionSpecMetadata: { - // Map of string keys and values that can be used to organize and categorize - // (scope and select) objects. May match selectors of replication controllers - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - // and services. - // These labels are added to the composite resource and claim CRD's in addition - // to any labels defined by `CompositionResourceDefinition` `metadata.labels`. - // +optional - labels?: {[string]: string} @go(Labels,map[string]string) - - // Annotations is an unstructured key value map stored with a resource that may be - // set by external tools to store and retrieve arbitrary metadata. They are not - // queryable and should be preserved when modifying objects. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations - // +optional - annotations?: {[string]: string} @go(Annotations,map[string]string) -} - -// CompositeResourceDefinitionVersion describes a version of an XR. -#CompositeResourceDefinitionVersion: { - // Name of this version, e.g. “v1”, “v2beta1”, etc. Composite resources are - // served under this version at `/apis///...` if `served` is - // true. - name: string @go(Name) - - // Referenceable specifies that this version may be referenced by a - // Composition in order to configure which resources an XR may be composed - // of. Exactly one version must be marked as referenceable; all Compositions - // must target only the referenceable version. The referenceable version - // must be served. It's mapped to the CRD's `spec.versions[*].storage` field. - referenceable: bool @go(Referenceable) - - // Served specifies that this version should be served via REST APIs. - served: bool @go(Served) - - // The deprecated field specifies that this version is deprecated and should - // not be used. - // +optional - deprecated?: null | bool @go(Deprecated,*bool) - - // DeprecationWarning specifies the message that should be shown to the user - // when using this version. - // +optional - deprecationWarning?: null | string @go(DeprecationWarning,*string) - - // Schema describes the schema used for validation, pruning, and defaulting - // of this version of the defined composite resource. Fields required by all - // composite resources will be injected into this schema automatically, and - // will override equivalently named fields in this schema. Omitting this - // schema results in a schema that contains only the fields required by all - // composite resources. - // +optional - schema?: null | #CompositeResourceValidation @go(Schema,*CompositeResourceValidation) - - // AdditionalPrinterColumns specifies additional columns returned in Table - // output. If no columns are specified, a single column displaying the age - // of the custom resource is used. See the following link for details: - // https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables - // +optional - additionalPrinterColumns?: [...extv1.#CustomResourceColumnDefinition] @go(AdditionalPrinterColumns,[]extv1.CustomResourceColumnDefinition) -} - -// CompositeResourceValidation is a list of validation methods for a composite -// resource. -#CompositeResourceValidation: { - // OpenAPIV3Schema is the OpenAPI v3 schema to use for validation and - // pruning. - // +kubebuilder:pruning:PreserveUnknownFields - openAPIV3Schema?: runtime.#RawExtension @go(OpenAPIV3Schema) -} - -// CompositeResourceDefinitionStatus shows the observed state of the definition. -#CompositeResourceDefinitionStatus: { - xpv1.#ConditionedStatus - - // Controllers represents the status of the controllers that power this - // composite resource definition. - controllers?: #CompositeResourceDefinitionControllerStatus @go(Controllers) -} - -// CompositeResourceDefinitionControllerStatus shows the observed state of the -// controllers that power the definition. -#CompositeResourceDefinitionControllerStatus: { - // The CompositeResourceTypeRef is the type of composite resource that - // Crossplane is currently reconciling for this definition. Its version will - // eventually become consistent with the definition's referenceable version. - // Note that clients may interact with any served type; this is simply the - // type that Crossplane interacts with. - compositeResourceType?: #TypeReference @go(CompositeResourceTypeRef) - - // The CompositeResourceClaimTypeRef is the type of composite resource claim - // that Crossplane is currently reconciling for this definition. Its version - // will eventually become consistent with the definition's referenceable - // version. Note that clients may interact with any served type; this is - // simply the type that Crossplane interacts with. - compositeResourceClaimType?: #TypeReference @go(CompositeResourceClaimTypeRef) -} - -// A CompositeResourceDefinition defines a new kind of composite infrastructure -// resource. The new resource is composed of other composite or managed -// infrastructure resources. -// +kubebuilder:printcolumn:name="ESTABLISHED",type="string",JSONPath=".status.conditions[?(@.type=='Established')].status" -// +kubebuilder:printcolumn:name="OFFERED",type="string",JSONPath=".status.conditions[?(@.type=='Offered')].status" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories=crossplane,shortName=xrd;xrds -#CompositeResourceDefinition: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec?: #CompositeResourceDefinitionSpec @go(Spec) - status?: #CompositeResourceDefinitionStatus @go(Status) -} - -// CompositeResourceDefinitionList contains a list of CompositeResourceDefinitions. -#CompositeResourceDefinitionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CompositeResourceDefinition] @go(Items,[]CompositeResourceDefinition) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/xrd_webhooks_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/xrd_webhooks_go_gen.cue deleted file mode 100644 index 608fb03..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/xrd_webhooks_go_gen.cue +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -_#errUnexpectedType: "unexpected type" -_#errGroupImmutable: "spec.group is immutable" -_#errPluralImmutable: "spec.names.plural is immutable" -_#errKindImmutable: "spec.names.kind is immutable" -_#errClaimPluralImmutable: "spec.claimNames.plural is immutable" -_#errClaimKindImmutable: "spec.claimNames.kind is immutable" -_#errConversionWebhookConfigRequired: "spec.conversion.webhook is required when spec.conversion.strategy is 'Webhook'" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/zz_generated.conversion_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/zz_generated.conversion_go_gen.cue deleted file mode 100644 index 32d8727..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1/zz_generated.conversion_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1 - -package v1 - -#GeneratedRevisionSpecConverter: { -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1alpha1/doc_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1alpha1/doc_go_gen.cue deleted file mode 100644 index bfb9dd8..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1alpha1 - -// Package v1alpha1 contains API types that extend the Crossplane API. -// v1alpha1 composition revision schema is identical to v1beta1 -// +kubebuilder:object:generate=true -// +groupName=apiextensions.crossplane.io -// +versionName=v1alpha1 -package v1alpha1 diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1alpha1/environment_config_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1alpha1/environment_config_types_go_gen.cue deleted file mode 100644 index 2f846fd..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1alpha1/environment_config_types_go_gen.cue +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1alpha1 - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" -) - -// A EnvironmentConfig contains a set of arbitrary, unstructured values. -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:resource:scope=Cluster,categories=crossplane,shortName=envcfg -#EnvironmentConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // The data of this EnvironmentConfig. - // This may contain any kind of structure that can be serialized into JSON. - // +optional - data?: {[string]: extv1.#JSON} @go(Data,map[string]extv1.JSON) -} - -// EnvironmentConfigList contains a list of EnvironmentConfigs. -#EnvironmentConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EnvironmentConfig] @go(Items,[]EnvironmentConfig) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1alpha1/register_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1alpha1/register_go_gen.cue deleted file mode 100644 index d5b9e4e..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1alpha1 - -package v1alpha1 - -#Group: "apiextensions.crossplane.io" -#Version: "v1alpha1" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/doc_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/doc_go_gen.cue deleted file mode 100644 index 6729c7c..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/doc_go_gen.cue +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1beta1 - -// Package v1beta1 contains API types that extend the Crossplane API. -// v1beta1 composition revision schema is identical to v1alpha1 -// +kubebuilder:object:generate=true -// +groupName=apiextensions.crossplane.io -// +versionName=v1beta1 -package v1beta1 diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/register_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/register_go_gen.cue deleted file mode 100644 index 228a964..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1beta1 - -package v1beta1 - -#Group: "apiextensions.crossplane.io" -#Version: "v1beta1" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_common_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_common_go_gen.cue deleted file mode 100644 index e7c4824..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_common_go_gen.cue +++ /dev/null @@ -1,309 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1beta1 - -package v1beta1 - -import ( - "k8s.io/apimachinery/pkg/runtime" - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/api/resource" -) - -// TypeReference is used to refer to a type for declaring compatibility. -#TypeReference: { - // APIVersion of the type. - apiVersion: string @go(APIVersion) - - // Kind of the type. - kind: string @go(Kind) -} - -// A PatchSet is a set of patches that can be reused from all resources within -// a Composition. -#PatchSet: { - // Name of this PatchSet. - name: string @go(Name) - - // Patches will be applied as an overlay to the base resource. - patches: [...#Patch] @go(Patches,[]Patch) -} - -// ComposedTemplate is used to provide information about how the composed resource -// should be processed. -#ComposedTemplate: { - // A Name uniquely identifies this entry within its Composition's resources - // array. Names are optional but *strongly* recommended. When all entries in - // the resources array are named entries may added, deleted, and reordered - // as long as their names do not change. When entries are not named the - // length and order of the resources array should be treated as immutable. - // Either all or no entries must be named. - // +optional - name?: null | string @go(Name,*string) - - // Base is the target resource that the patches will be applied on. - // +kubebuilder:pruning:PreserveUnknownFields - // +kubebuilder:validation:EmbeddedResource - base: runtime.#RawExtension @go(Base) - - // Patches will be applied as overlay to the base resource. - // +optional - patches?: [...#Patch] @go(Patches,[]Patch) - - // ConnectionDetails lists the propagation secret keys from this target - // resource to the composition instance connection secret. - // +optional - connectionDetails?: [...#ConnectionDetail] @go(ConnectionDetails,[]ConnectionDetail) - - // ReadinessChecks allows users to define custom readiness checks. All checks - // have to return true in order for resource to be considered ready. The - // default readiness check is to have the "Ready" condition to be "True". - // +optional - // +kubebuilder:default={{type:"MatchCondition",matchCondition:{type:"Ready",status:"True"}}} - readinessChecks?: [...#ReadinessCheck] @go(ReadinessChecks,[]ReadinessCheck) -} - -// ReadinessCheckType is used for readiness check types. -#ReadinessCheckType: string // #enumReadinessCheckType - -#enumReadinessCheckType: - #ReadinessCheckTypeNonEmpty | - #ReadinessCheckTypeMatchString | - #ReadinessCheckTypeMatchInteger | - #ReadinessCheckTypeMatchCondition | - #ReadinessCheckTypeNone - -#ReadinessCheckTypeNonEmpty: #ReadinessCheckType & "NonEmpty" -#ReadinessCheckTypeMatchString: #ReadinessCheckType & "MatchString" -#ReadinessCheckTypeMatchInteger: #ReadinessCheckType & "MatchInteger" -#ReadinessCheckTypeMatchCondition: #ReadinessCheckType & "MatchCondition" -#ReadinessCheckTypeNone: #ReadinessCheckType & "None" - -// ReadinessCheck is used to indicate how to tell whether a resource is ready -// for consumption -#ReadinessCheck: { - // Type indicates the type of probe you'd like to use. - // +kubebuilder:validation:Enum="MatchString";"MatchInteger";"NonEmpty";"MatchCondition";"None" - type: #ReadinessCheckType @go(Type) - - // FieldPath shows the path of the field whose value will be used. - // +optional - fieldPath?: string @go(FieldPath) - - // MatchString is the value you'd like to match if you're using "MatchString" type. - // +optional - matchString?: string @go(MatchString) - - // MatchInt is the value you'd like to match if you're using "MatchInt" type. - // +optional - matchInteger?: int64 @go(MatchInteger) - - // MatchCondition specifies the condition you'd like to match if you're using "MatchCondition" type. - // +optional - matchCondition?: null | #MatchConditionReadinessCheck @go(MatchCondition,*MatchConditionReadinessCheck) -} - -// MatchConditionReadinessCheck is used to indicate how to tell whether a resource is ready -// for consumption -#MatchConditionReadinessCheck: { - // Type indicates the type of condition you'd like to use. - // +kubebuilder:default="Ready" - type: xpv1.#ConditionType @go(Type) - - // Status is the status of the condition you'd like to match. - // +kubebuilder:default="True" - status: corev1.#ConditionStatus @go(Status) -} - -// A ConnectionDetailType is a type of connection detail. -#ConnectionDetailType: string // #enumConnectionDetailType - -#enumConnectionDetailType: - #ConnectionDetailTypeUnknown | - #ConnectionDetailTypeFromConnectionSecretKey | - #ConnectionDetailTypeFromFieldPath | - #ConnectionDetailTypeFromValue - -#ConnectionDetailTypeUnknown: #ConnectionDetailType & "Unknown" -#ConnectionDetailTypeFromConnectionSecretKey: #ConnectionDetailType & "FromConnectionSecretKey" -#ConnectionDetailTypeFromFieldPath: #ConnectionDetailType & "FromFieldPath" -#ConnectionDetailTypeFromValue: #ConnectionDetailType & "FromValue" - -// ConnectionDetail includes the information about the propagation of the connection -// information from one secret to another. -#ConnectionDetail: { - // Name of the connection secret key that will be propagated to the - // connection secret of the composition instance. Leave empty if you'd like - // to use the same key name. - // +optional - name?: null | string @go(Name,*string) - - // Type sets the connection detail fetching behaviour to be used. Each - // connection detail type may require its own fields to be set on the - // ConnectionDetail object. If the type is omitted Crossplane will attempt - // to infer it based on which other fields were specified. If multiple - // fields are specified the order of precedence is: - // 1. FromValue - // 2. FromConnectionSecretKey - // 3. FromFieldPath - // +optional - // +kubebuilder:validation:Enum=FromConnectionSecretKey;FromFieldPath;FromValue - type?: null | #ConnectionDetailType @go(Type,*ConnectionDetailType) - - // FromConnectionSecretKey is the key that will be used to fetch the value - // from the composed resource's connection secret. - // +optional - fromConnectionSecretKey?: null | string @go(FromConnectionSecretKey,*string) - - // FromFieldPath is the path of the field on the composed resource whose - // value to be used as input. Name must be specified if the type is - // FromFieldPath. - // +optional - fromFieldPath?: null | string @go(FromFieldPath,*string) - - // Value that will be propagated to the connection secret of the composite - // resource. May be set to inject a fixed, non-sensitive connection secret - // value, for example a well-known port. - // +optional - value?: null | string @go(Value,*string) -} - -// A Function represents a Composition Function. -#Function: { - // Name of this function. Must be unique within its Composition. - name: string @go(Name) - - // Type of this function. - // +kubebuilder:validation:Enum=Container - type: #FunctionType @go(Type) - - // Config is an optional, arbitrary Kubernetes resource (i.e. a resource - // with an apiVersion and kind) that will be passed to the Composition - // Function as the 'config' block of its FunctionIO. - // +optional - // +kubebuilder:pruning:PreserveUnknownFields - // +kubebuilder:validation:EmbeddedResource - config?: null | runtime.#RawExtension @go(Config,*runtime.RawExtension) - - // Container configuration of this function. - // +optional - container?: null | #ContainerFunction @go(Container,*ContainerFunction) -} - -// A FunctionType is a type of Composition Function. -#FunctionType: string // #enumFunctionType - -#enumFunctionType: - #FunctionTypeContainer - -// FunctionTypeContainer represents a Composition Function that is packaged -// as an OCI image and run in a container. -#FunctionTypeContainer: #FunctionType & "Container" - -// A ContainerFunction represents an Composition Function that is packaged as an -// OCI image and run in a container. -#ContainerFunction: { - // Image specifies the OCI image in which the function is packaged. The - // image should include an entrypoint that reads a FunctionIO from stdin and - // emits it, optionally mutated, to stdout. - image: string @go(Image) - - // ImagePullPolicy defines the pull policy for the function image. - // +optional - // +kubebuilder:default=IfNotPresent - // +kubebuilder:validation:Enum="IfNotPresent";"Always";"Never" - imagePullPolicy?: null | corev1.#PullPolicy @go(ImagePullPolicy,*corev1.PullPolicy) - - // ImagePullSecrets are used to pull images from private OCI registries. - // +optional - imagePullSecrets?: [...corev1.#LocalObjectReference] @go(ImagePullSecrets,[]corev1.LocalObjectReference) - - // Timeout after which the Composition Function will be killed. - // +optional - // +kubebuilder:default="20s" - timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) - - // Network configuration for the Composition Function. - // +optional - network?: null | #ContainerFunctionNetwork @go(Network,*ContainerFunctionNetwork) - - // Resources that may be used by the Composition Function. - // +optional - resources?: null | #ContainerFunctionResources @go(Resources,*ContainerFunctionResources) - - // Runner configuration for the Composition Function. - // +optional - runner?: null | #ContainerFunctionRunner @go(Runner,*ContainerFunctionRunner) -} - -// A ContainerFunctionNetworkPolicy specifies the network policy under which -// a containerized Composition Function will run. -#ContainerFunctionNetworkPolicy: string // #enumContainerFunctionNetworkPolicy - -#enumContainerFunctionNetworkPolicy: - #ContainerFunctionNetworkPolicyIsolated | - #ContainerFunctionNetworkPolicyRunner - -// ContainerFunctionNetworkPolicyIsolated specifies that the Composition -// Function will not have network access; i.e. invoked inside an isolated -// network namespace. -#ContainerFunctionNetworkPolicyIsolated: #ContainerFunctionNetworkPolicy & "Isolated" - -// ContainerFunctionNetworkPolicyRunner specifies that the Composition -// Function will have the same network access as its runner, i.e. share its -// runner's network namespace. -#ContainerFunctionNetworkPolicyRunner: #ContainerFunctionNetworkPolicy & "Runner" - -// ContainerFunctionNetwork represents configuration for a Composition Function. -#ContainerFunctionNetwork: { - // Policy specifies the network policy under which the Composition Function - // will run. Defaults to 'Isolated' - i.e. no network access. Specify - // 'Runner' to allow the function the same network access as - // its runner. - // +optional - // +kubebuilder:validation:Enum="Isolated";"Runner" - // +kubebuilder:default=Isolated - policy?: null | #ContainerFunctionNetworkPolicy @go(Policy,*ContainerFunctionNetworkPolicy) -} - -// ContainerFunctionResources represents compute resources that may be used by a -// Composition Function. -#ContainerFunctionResources: { - // Limits specify the maximum compute resources that may be used by the - // Composition Function. - // +optional - limits?: null | #ContainerFunctionResourceLimits @go(Limits,*ContainerFunctionResourceLimits) -} - -// ContainerFunctionResourceLimits specify the maximum compute resources -// that may be used by a Composition Function. -#ContainerFunctionResourceLimits: { - // CPU, in cores. (500m = .5 cores) - // +kubebuilder:default="100m" - // +optional - cpu?: null | resource.#Quantity @go(CPU,*resource.Quantity) - - // Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) - // +kubebuilder:default="128Mi" - // +optional - memory?: null | resource.#Quantity @go(Memory,*resource.Quantity) -} - -// ContainerFunctionRunner represents runner configuration for a Composition -// Function. -#ContainerFunctionRunner: { - // Endpoint specifies how and where Crossplane should reach the runner it - // uses to invoke containerized Composition Functions. - // +optional - // +kubebuilder:default="unix-abstract:crossplane/fn/default.sock" - endpoint?: null | string @go(Endpoint,*string) -} - -// A StoreConfigReference references a secret store config that may be used to -// write connection details. -#StoreConfigReference: { - // Name of the referenced StoreConfig. - name: string @go(Name) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_environment_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_environment_go_gen.cue deleted file mode 100644 index 35fe1ff..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_environment_go_gen.cue +++ /dev/null @@ -1,175 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1beta1 - -package v1beta1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// An EnvironmentConfiguration specifies the environment for rendering composed -// resources. -#EnvironmentConfiguration: { - // EnvironmentConfigs selects a list of `EnvironmentConfig`s. The resolved - // resources are stored in the composite resource at - // `spec.environmentConfigRefs` and is only updated if it is null. - // - // The list of references is used to compute an in-memory environment at - // compose time. The data of all object is merged in the order they are - // listed, meaning the values of EnvironmentConfigs with a larger index take - // priority over ones with smaller indices. - // - // The computed environment can be accessed in a composition using - // `FromEnvironmentFieldPath` and `CombineFromEnvironment` patches. - // +optional - environmentConfigs?: [...#EnvironmentSource] @go(EnvironmentConfigs,[]EnvironmentSource) - - // Patches is a list of environment patches that are executed before a - // composition's resources are composed. - patches?: [...#EnvironmentPatch] @go(Patches,[]EnvironmentPatch) - - // Policy represents the Resolve and Resolution policies which apply to - // all EnvironmentSourceReferences in EnvironmentConfigs list. - // +optional - policy?: null | xpv1.#Policy @go(Policy,*xpv1.Policy) -} - -// EnvironmentSourceType specifies the way the EnvironmentConfig is selected. -#EnvironmentSourceType: string // #enumEnvironmentSourceType - -#enumEnvironmentSourceType: - #EnvironmentSourceTypeReference | - #EnvironmentSourceTypeSelector - -// EnvironmentSourceTypeReference by name. -#EnvironmentSourceTypeReference: #EnvironmentSourceType & "Reference" - -// EnvironmentSourceTypeSelector by labels. -#EnvironmentSourceTypeSelector: #EnvironmentSourceType & "Selector" - -// EnvironmentSource selects a EnvironmentConfig resource. -#EnvironmentSource: { - // Type specifies the way the EnvironmentConfig is selected. - // Default is `Reference` - // +optional - // +kubebuilder:validation:Enum=Reference;Selector - // +kubebuilder:default=Reference - type?: #EnvironmentSourceType @go(Type) - - // Ref is a named reference to a single EnvironmentConfig. - // Either Ref or Selector is required. - // +optional - ref?: null | #EnvironmentSourceReference @go(Ref,*EnvironmentSourceReference) - - // Selector selects EnvironmentConfig(s) via labels. - // +optional - selector?: null | #EnvironmentSourceSelector @go(Selector,*EnvironmentSourceSelector) -} - -// An EnvironmentSourceReference references an EnvironmentConfig by it's name. -#EnvironmentSourceReference: { - // The name of the object. - name: string @go(Name) -} - -// EnvironmentSourceSelectorModeType specifies amount of retrieved EnvironmentConfigs -// with matching label. -#EnvironmentSourceSelectorModeType: string // #enumEnvironmentSourceSelectorModeType - -#enumEnvironmentSourceSelectorModeType: - #EnvironmentSourceSelectorSingleMode | - #EnvironmentSourceSelectorMultiMode - -// EnvironmentSourceSelectorSingleMode extracts only first EnvironmentConfig from the sorted list. -#EnvironmentSourceSelectorSingleMode: #EnvironmentSourceSelectorModeType & "Single" - -// EnvironmentSourceSelectorMultiMode extracts multiple EnvironmentConfigs from the sorted list. -#EnvironmentSourceSelectorMultiMode: #EnvironmentSourceSelectorModeType & "Multiple" - -// An EnvironmentSourceSelector selects an EnvironmentConfig via labels. -#EnvironmentSourceSelector: { - // Mode specifies retrieval strategy: "Single" or "Multiple". - // +kubebuilder:validation:Enum=Single;Multiple - // +kubebuilder:default=Single - mode?: #EnvironmentSourceSelectorModeType @go(Mode) - - // MaxMatch specifies the number of extracted EnvironmentConfigs in Multiple mode, extracts all if nil. - maxMatch?: null | uint64 @go(MaxMatch,*uint64) - - // SortByFieldPath is the path to the field based on which list of EnvironmentConfigs is alphabetically sorted. - // +kubebuilder:default="metadata.name" - sortByFieldPath?: string @go(SortByFieldPath) - - // MatchLabels ensures an object with matching labels is selected. - matchLabels?: [...#EnvironmentSourceSelectorLabelMatcher] @go(MatchLabels,[]EnvironmentSourceSelectorLabelMatcher) -} - -// EnvironmentSourceSelectorLabelMatcherType specifies where the value for a -// label comes from. -#EnvironmentSourceSelectorLabelMatcherType: string // #enumEnvironmentSourceSelectorLabelMatcherType - -#enumEnvironmentSourceSelectorLabelMatcherType: - #EnvironmentSourceSelectorLabelMatcherTypeFromCompositeFieldPath | - #EnvironmentSourceSelectorLabelMatcherTypeValue - -// EnvironmentSourceSelectorLabelMatcherTypeFromCompositeFieldPath extracts -// the label value from a composite fieldpath. -#EnvironmentSourceSelectorLabelMatcherTypeFromCompositeFieldPath: #EnvironmentSourceSelectorLabelMatcherType & "FromCompositeFieldPath" - -// EnvironmentSourceSelectorLabelMatcherTypeValue uses a literal as label -// value. -#EnvironmentSourceSelectorLabelMatcherTypeValue: #EnvironmentSourceSelectorLabelMatcherType & "Value" - -// An EnvironmentSourceSelectorLabelMatcher acts like a k8s label selector but -// can draw the label value from a different path. -#EnvironmentSourceSelectorLabelMatcher: { - // Type specifies where the value for a label comes from. - // +optional - // +kubebuilder:validation:Enum=FromCompositeFieldPath;Value - // +kubebuilder:default=FromCompositeFieldPath - type?: #EnvironmentSourceSelectorLabelMatcherType @go(Type) - - // Key of the label to match. - key: string @go(Key) - - // ValueFromFieldPath specifies the field path to look for the label value. - valueFromFieldPath?: null | string @go(ValueFromFieldPath,*string) - - // Value specifies a literal label value. - value?: null | string @go(Value,*string) -} - -// EnvironmentPatch is a patch for a Composition environment. -#EnvironmentPatch: { - // Type sets the patching behaviour to be used. Each patch type may require - // its own fields to be set on the Patch object. - // +optional - // +kubebuilder:validation:Enum=FromCompositeFieldPath;ToCompositeFieldPath;CombineFromComposite;CombineToComposite - // +kubebuilder:default=FromCompositeFieldPath - type?: #PatchType @go(Type) - - // FromFieldPath is the path of the field on the resource whose value is - // to be used as input. Required when type is FromCompositeFieldPath or - // ToCompositeFieldPath. - // +optional - fromFieldPath?: null | string @go(FromFieldPath,*string) - - // Combine is the patch configuration for a CombineFromComposite or - // CombineToComposite patch. - // +optional - combine?: null | #Combine @go(Combine,*Combine) - - // ToFieldPath is the path of the field on the resource whose value will - // be changed with the result of transforms. Leave empty if you'd like to - // propagate to the same path as fromFieldPath. - // +optional - toFieldPath?: null | string @go(ToFieldPath,*string) - - // Transforms are the list of functions that are used as a FIFO pipe for the - // input to be transformed. - // +optional - transforms?: [...#Transform] @go(Transforms,[]Transform) - - // Policy configures the specifics of patching behaviour. - // +optional - policy?: null | #PatchPolicy @go(Policy,*PatchPolicy) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_patches_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_patches_go_gen.cue deleted file mode 100644 index c862a87..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_patches_go_gen.cue +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1beta1 - -package v1beta1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// A PatchType is a type of patch. -#PatchType: string // #enumPatchType - -#enumPatchType: - #PatchTypeFromCompositeFieldPath | - #PatchTypeFromEnvironmentFieldPath | - #PatchTypePatchSet | - #PatchTypeToCompositeFieldPath | - #PatchTypeToEnvironmentFieldPath | - #PatchTypeCombineFromEnvironment | - #PatchTypeCombineFromComposite | - #PatchTypeCombineToComposite | - #PatchTypeCombineToEnvironment - -#PatchTypeFromCompositeFieldPath: #PatchType & "FromCompositeFieldPath" -#PatchTypeFromEnvironmentFieldPath: #PatchType & "FromEnvironmentFieldPath" -#PatchTypePatchSet: #PatchType & "PatchSet" -#PatchTypeToCompositeFieldPath: #PatchType & "ToCompositeFieldPath" -#PatchTypeToEnvironmentFieldPath: #PatchType & "ToEnvironmentFieldPath" -#PatchTypeCombineFromEnvironment: #PatchType & "CombineFromEnvironment" -#PatchTypeCombineFromComposite: #PatchType & "CombineFromComposite" -#PatchTypeCombineToComposite: #PatchType & "CombineToComposite" -#PatchTypeCombineToEnvironment: #PatchType & "CombineToEnvironment" - -// A FromFieldPathPolicy determines how to patch from a field path. -#FromFieldPathPolicy: string // #enumFromFieldPathPolicy - -#enumFromFieldPathPolicy: - #FromFieldPathPolicyOptional | - #FromFieldPathPolicyRequired - -#FromFieldPathPolicyOptional: #FromFieldPathPolicy & "Optional" -#FromFieldPathPolicyRequired: #FromFieldPathPolicy & "Required" - -// A PatchPolicy configures the specifics of patching behaviour. -#PatchPolicy: { - // FromFieldPath specifies how to patch from a field path. The default is - // 'Optional', which means the patch will be a no-op if the specified - // fromFieldPath does not exist. Use 'Required' if the patch should fail if - // the specified path does not exist. - // +kubebuilder:validation:Enum=Optional;Required - // +optional - fromFieldPath?: null | #FromFieldPathPolicy @go(FromFieldPath,*FromFieldPathPolicy) - mergeOptions?: null | xpv1.#MergeOptions @go(MergeOptions,*xpv1.MergeOptions) -} - -// Patch objects are applied between composite and composed resources. Their -// behaviour depends on the Type selected. The default Type, -// FromCompositeFieldPath, copies a value from the composite resource to -// the composed resource, applying any defined transformers. -#Patch: { - // Type sets the patching behaviour to be used. Each patch type may require - // its own fields to be set on the Patch object. - // +optional - // +kubebuilder:validation:Enum=FromCompositeFieldPath;FromEnvironmentFieldPath;PatchSet;ToCompositeFieldPath;ToEnvironmentFieldPath;CombineFromEnvironment;CombineFromComposite;CombineToComposite;CombineToEnvironment - // +kubebuilder:default=FromCompositeFieldPath - type?: #PatchType @go(Type) - - // FromFieldPath is the path of the field on the resource whose value is - // to be used as input. Required when type is FromCompositeFieldPath, - // FromEnvironmentFieldPath, ToCompositeFieldPath, ToEnvironmentFieldPath. - // +optional - fromFieldPath?: null | string @go(FromFieldPath,*string) - - // Combine is the patch configuration for a CombineFromComposite, - // CombineFromEnvironment, CombineToComposite or CombineToEnvironment patch. - // +optional - combine?: null | #Combine @go(Combine,*Combine) - - // ToFieldPath is the path of the field on the resource whose value will - // be changed with the result of transforms. Leave empty if you'd like to - // propagate to the same path as fromFieldPath. - // +optional - toFieldPath?: null | string @go(ToFieldPath,*string) - - // PatchSetName to include patches from. Required when type is PatchSet. - // +optional - patchSetName?: null | string @go(PatchSetName,*string) - - // Transforms are the list of functions that are used as a FIFO pipe for the - // input to be transformed. - // +optional - transforms?: [...#Transform] @go(Transforms,[]Transform) - - // Policy configures the specifics of patching behaviour. - // +optional - policy?: null | #PatchPolicy @go(Policy,*PatchPolicy) -} - -// A CombineVariable defines the source of a value that is combined with -// others to form and patch an output value. Currently, this only supports -// retrieving values from a field path. -#CombineVariable: { - // FromFieldPath is the path of the field on the source whose value is - // to be used as input. - fromFieldPath: string @go(FromFieldPath) -} - -// A CombineStrategy determines what strategy will be applied to combine -// variables. -#CombineStrategy: string // #enumCombineStrategy - -#enumCombineStrategy: - #CombineStrategyString - -#CombineStrategyString: #CombineStrategy & "string" - -// A Combine configures a patch that combines more than -// one input field into a single output field. -#Combine: { - // Variables are the list of variables whose values will be retrieved and - // combined. - // +kubebuilder:validation:MinItems=1 - variables: [...#CombineVariable] @go(Variables,[]CombineVariable) - - // Strategy defines the strategy to use to combine the input variable values. - // Currently only string is supported. - // +kubebuilder:validation:Enum=string - strategy: #CombineStrategy @go(Strategy) - - // String declares that input variables should be combined into a single - // string, using the relevant settings for formatting purposes. - // +optional - string?: null | #StringCombine @go(String,*StringCombine) -} - -// A StringCombine combines multiple input values into a single string. -#StringCombine: { - // Format the input using a Go format string. See - // https://golang.org/pkg/fmt/ for details. - fmt: string @go(Format) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_revision_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_revision_types_go_gen.cue deleted file mode 100644 index 84a2984..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_revision_types_go_gen.cue +++ /dev/null @@ -1,101 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1beta1 - -package v1beta1 - -import ( - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// LabelCompositionName is the name of the Composition used to create -// this CompositionRevision. -#LabelCompositionName: "crossplane.io/composition-name" - -// LabelCompositionHash is a hash of the Composition label, annotation -// and spec used to create this CompositionRevision. Used to identify -// identical revisions. -#LabelCompositionHash: "crossplane.io/composition-hash" - -// CompositionRevisionSpec specifies the desired state of the composition -// revision. -#CompositionRevisionSpec: { - // CompositeTypeRef specifies the type of composite resource that this - // composition is compatible with. - // +immutable - compositeTypeRef: #TypeReference @go(CompositeTypeRef) - - // PatchSets define a named set of patches that may be included by - // any resource in this Composition. - // PatchSets cannot themselves refer to other PatchSets. - // +optional - patchSets?: [...#PatchSet] @go(PatchSets,[]PatchSet) - - // Environment configures the environment in which resources are rendered. - // +optional - environment?: null | #EnvironmentConfiguration @go(Environment,*EnvironmentConfiguration) - - // Resources is the list of resource templates that will be used when a - // composite resource referring to this composition is created. - // +optional - resources: [...#ComposedTemplate] @go(Resources,[]ComposedTemplate) - - // Functions is list of Composition Functions that will be used when a - // composite resource referring to this composition is created. At least one - // of resources and functions must be specified. If both are specified the - // resources will be rendered first, then passed to the functions for - // further processing. - // +optional - functions?: [...#Function] @go(Functions,[]Function) - - // WriteConnectionSecretsToNamespace specifies the namespace in which the - // connection secrets of composite resource dynamically provisioned using - // this composition will be created. - // This field is planned to be removed in a future release in favor of - // PublishConnectionDetailsWithStoreConfigRef. Currently, both could be - // set independently and connection details would be published to both - // without affecting each other as long as related fields at MR level - // specified. - // +optional - writeConnectionSecretsToNamespace?: null | string @go(WriteConnectionSecretsToNamespace,*string) - - // PublishConnectionDetailsWithStoreConfig specifies the secret store config - // with which the connection details of composite resources dynamically - // provisioned using this composition will be published. - // +optional - // +kubebuilder:default={"name": "default"} - publishConnectionDetailsWithStoreConfigRef?: null | #StoreConfigReference @go(PublishConnectionDetailsWithStoreConfigRef,*StoreConfigReference) - - // Revision number. Newer revisions have larger numbers. - // +immutable - revision: int64 @go(Revision) -} - -// CompositionRevisionStatus shows the observed state of the composition -// revision. -#CompositionRevisionStatus: { - xpv1.#ConditionedStatus -} - -// A CompositionRevision represents a revision in time of a Composition. -// Revisions are created by Crossplane; they should be treated as immutable. -// +kubebuilder:printcolumn:name="REVISION",type="string",JSONPath=".spec.revision" -// +kubebuilder:printcolumn:name="XR-KIND",type="string",JSONPath=".spec.compositeTypeRef.kind" -// +kubebuilder:printcolumn:name="XR-APIVERSION",type="string",JSONPath=".spec.compositeTypeRef.apiVersion" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:resource:scope=Cluster,categories=crossplane,shortName=comprev -// +kubebuilder:subresource:status -#CompositionRevision: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec?: #CompositionRevisionSpec @go(Spec) - status?: #CompositionRevisionStatus @go(Status) -} - -// CompositionRevisionList contains a list of CompositionRevisions. -#CompositionRevisionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CompositionRevision] @go(Items,[]CompositionRevision) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_transforms_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_transforms_go_gen.cue deleted file mode 100644 index 24d9dbe..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apiextensions/v1beta1/zz_generated.composition_transforms_go_gen.cue +++ /dev/null @@ -1,285 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/apiextensions/v1beta1 - -package v1beta1 - -import extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" - -// TransformType is type of the transform function to be chosen. -#TransformType: string // #enumTransformType - -#enumTransformType: - #TransformTypeMap | - #TransformTypeMatch | - #TransformTypeMath | - #TransformTypeString | - #TransformTypeConvert - -#ErrFmtConvertFormatPairNotSupported: "conversion from %s to %s is not supported with format %s" -#TransformTypeMap: #TransformType & "map" -#TransformTypeMatch: #TransformType & "match" -#TransformTypeMath: #TransformType & "math" -#TransformTypeString: #TransformType & "string" -#TransformTypeConvert: #TransformType & "convert" - -// Transform is a unit of process whose input is transformed into an output with -// the supplied configuration. -#Transform: { - // Type of the transform to be run. - // +kubebuilder:validation:Enum=map;match;math;string;convert - type: #TransformType @go(Type) - - // Math is used to transform the input via mathematical operations such as - // multiplication. - // +optional - math?: null | #MathTransform @go(Math,*MathTransform) - - // Map uses the input as a key in the given map and returns the value. - // +optional - map?: null | #MapTransform @go(Map,*MapTransform) - - // Match is a more complex version of Map that matches a list of patterns. - // +optional - match?: null | #MatchTransform @go(Match,*MatchTransform) - - // String is used to transform the input into a string or a different kind - // of string. Note that the input does not necessarily need to be a string. - // +optional - string?: null | #StringTransform @go(String,*StringTransform) - - // Convert is used to cast the input into the given output type. - // +optional - convert?: null | #ConvertTransform @go(Convert,*ConvertTransform) -} - -// MathTransformType conducts mathematical operations. -#MathTransformType: string // #enumMathTransformType - -#enumMathTransformType: - #MathTransformTypeMultiply | - #MathTransformTypeClampMin | - #MathTransformTypeClampMax - -#MathTransformTypeMultiply: #MathTransformType & "Multiply" -#MathTransformTypeClampMin: #MathTransformType & "ClampMin" -#MathTransformTypeClampMax: #MathTransformType & "ClampMax" - -// MathTransform conducts mathematical operations on the input with the given -// configuration in its properties. -#MathTransform: { - // Type of the math transform to be run. - // +optional - // +kubebuilder:validation:Enum=Multiply;ClampMin;ClampMax - // +kubebuilder:default=Multiply - type?: #MathTransformType @go(Type) - - // Multiply the value. - // +optional - multiply?: null | int64 @go(Multiply,*int64) - - // ClampMin makes sure that the value is not smaller than the given value. - // +optional - clampMin?: null | int64 @go(ClampMin,*int64) - - // ClampMax makes sure that the value is not bigger than the given value. - // +optional - clampMax?: null | int64 @go(ClampMax,*int64) -} - -// MapTransform returns a value for the input from the given map. -#MapTransform: _ - -// MatchFallbackTo defines how a match operation will fallback. -#MatchFallbackTo: string // #enumMatchFallbackTo - -#enumMatchFallbackTo: - #MatchFallbackToTypeValue | - #MatchFallbackToTypeInput - -#MatchFallbackToTypeValue: #MatchFallbackTo & "Value" -#MatchFallbackToTypeInput: #MatchFallbackTo & "Input" - -// MatchTransform is a more complex version of a map transform that matches a -// list of patterns. -#MatchTransform: { - // The patterns that should be tested against the input string. - // Patterns are tested in order. The value of the first match is used as - // result of this transform. - patterns?: [...#MatchTransformPattern] @go(Patterns,[]MatchTransformPattern) - - // The fallback value that should be returned by the transform if now pattern - // matches. - fallbackValue?: extv1.#JSON @go(FallbackValue) - - // Determines to what value the transform should fallback if no pattern matches. - // +optional - // +kubebuilder:validation:Enum=Value;Input - // +kubebuilder:default=Value - fallbackTo?: #MatchFallbackTo @go(FallbackTo) -} - -// MatchTransformPatternType defines the type of a MatchTransformPattern. -#MatchTransformPatternType: string // #enumMatchTransformPatternType - -#enumMatchTransformPatternType: - #MatchTransformPatternTypeLiteral | - #MatchTransformPatternTypeRegexp - -#MatchTransformPatternTypeLiteral: #MatchTransformPatternType & "literal" -#MatchTransformPatternTypeRegexp: #MatchTransformPatternType & "regexp" - -// MatchTransformPattern is a transform that returns the value that matches a -// pattern. -#MatchTransformPattern: { - // Type specifies how the pattern matches the input. - // - // * `literal` - the pattern value has to exactly match (case sensitive) the - // input string. This is the default. - // - // * `regexp` - the pattern treated as a regular expression against - // which the input string is tested. Crossplane will throw an error if the - // key is not a valid regexp. - // - // +kubebuilder:validation:Enum=literal;regexp - // +kubebuilder:default=literal - type: #MatchTransformPatternType @go(Type) - - // Literal exactly matches the input string (case sensitive). - // Is required if `type` is `literal`. - literal?: null | string @go(Literal,*string) - - // Regexp to match against the input string. - // Is required if `type` is `regexp`. - regexp?: null | string @go(Regexp,*string) - - // The value that is used as result of the transform if the pattern matches. - result: extv1.#JSON @go(Result) -} - -// StringTransformType transforms a string. -#StringTransformType: string // #enumStringTransformType - -#enumStringTransformType: - #StringTransformTypeFormat | - #StringTransformTypeConvert | - #StringTransformTypeTrimPrefix | - #StringTransformTypeTrimSuffix | - #StringTransformTypeRegexp - -#StringTransformTypeFormat: #StringTransformType & "Format" -#StringTransformTypeConvert: #StringTransformType & "Convert" -#StringTransformTypeTrimPrefix: #StringTransformType & "TrimPrefix" -#StringTransformTypeTrimSuffix: #StringTransformType & "TrimSuffix" -#StringTransformTypeRegexp: #StringTransformType & "Regexp" - -// StringConversionType converts a string. -#StringConversionType: string // #enumStringConversionType - -#enumStringConversionType: - #StringConversionTypeToUpper | - #StringConversionTypeToLower | - #StringConversionTypeToJSON | - #StringConversionTypeToBase64 | - #StringConversionTypeFromBase64 | - #StringConversionTypeToSHA1 | - #StringConversionTypeToSHA256 | - #StringConversionTypeToSHA512 - -#StringConversionTypeToUpper: #StringConversionType & "ToUpper" -#StringConversionTypeToLower: #StringConversionType & "ToLower" -#StringConversionTypeToJSON: #StringConversionType & "ToJson" -#StringConversionTypeToBase64: #StringConversionType & "ToBase64" -#StringConversionTypeFromBase64: #StringConversionType & "FromBase64" -#StringConversionTypeToSHA1: #StringConversionType & "ToSha1" -#StringConversionTypeToSHA256: #StringConversionType & "ToSha256" -#StringConversionTypeToSHA512: #StringConversionType & "ToSha512" - -// A StringTransform returns a string given the supplied input. -#StringTransform: { - // Type of the string transform to be run. - // +optional - // +kubebuilder:validation:Enum=Format;Convert;TrimPrefix;TrimSuffix;Regexp - // +kubebuilder:default=Format - type?: #StringTransformType @go(Type) - - // Format the input using a Go format string. See - // https://golang.org/pkg/fmt/ for details. - // +optional - fmt?: null | string @go(Format,*string) - - // Optional conversion method to be specified. - // `ToUpper` and `ToLower` change the letter case of the input string. - // `ToBase64` and `FromBase64` perform a base64 conversion based on the input string. - // `ToJson` converts any input value into its raw JSON representation. - // `ToSha1`, `ToSha256` and `ToSha512` generate a hash value based on the input - // converted to JSON. - // +optional - // +kubebuilder:validation:Enum=ToUpper;ToLower;ToBase64;FromBase64;ToJson;ToSha1;ToSha256;ToSha512 - convert?: null | #StringConversionType @go(Convert,*StringConversionType) - - // Trim the prefix or suffix from the input - // +optional - trim?: null | string @go(Trim,*string) - - // Extract a match from the input using a regular expression. - // +optional - regexp?: null | #StringTransformRegexp @go(Regexp,*StringTransformRegexp) -} - -// A StringTransformRegexp extracts a match from the input using a regular -// expression. -#StringTransformRegexp: { - // Match string. May optionally include submatches, aka capture groups. - // See https://pkg.go.dev/regexp/ for details. - match: string @go(Match) - - // Group number to match. 0 (the default) matches the entire expression. - // +optional - group?: null | int @go(Group,*int) -} - -// TransformIOType defines the type of a ConvertTransform. -#TransformIOType: string // #enumTransformIOType - -#enumTransformIOType: - #TransformIOTypeString | - #TransformIOTypeBool | - #TransformIOTypeInt | - #TransformIOTypeInt64 | - #TransformIOTypeFloat64 - -#TransformIOTypeString: #TransformIOType & "string" -#TransformIOTypeBool: #TransformIOType & "bool" -#TransformIOTypeInt: #TransformIOType & "int" -#TransformIOTypeInt64: #TransformIOType & "int64" -#TransformIOTypeFloat64: #TransformIOType & "float64" - -// ConvertTransformFormat defines the expected format of an input value of a -// conversion transform. -#ConvertTransformFormat: string // #enumConvertTransformFormat - -#enumConvertTransformFormat: - #ConvertTransformFormatNone | - #ConvertTransformFormatQuantity - -#ConvertTransformFormatNone: #ConvertTransformFormat & "none" -#ConvertTransformFormatQuantity: #ConvertTransformFormat & "quantity" - -// A ConvertTransform converts the input into a new object whose type is supplied. -#ConvertTransform: { - // ToType is the type of the output of this transform. - // +kubebuilder:validation:Enum=string;int;int64;bool;float64 - toType: #TransformIOType @go(ToType) - - // The expected input format. - // - // * `quantity` - parses the input as a K8s [`resource.Quantity`](https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity). - // Only used during `string -> float64` conversions. - // - // If this property is null, the default conversion is applied. - // - // +kubebuilder:validation:Enum=none;quantity - // +kubebuilder:validation:Default=none - format?: null | #ConvertTransformFormat @go(Format,*ConvertTransformFormat) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/apis_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/apis_go_gen.cue deleted file mode 100644 index 38db726..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/apis_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis - -// Package apis contains Kubernetes API groups -package apis diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/configuration_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/configuration_types_go_gen.cue deleted file mode 100644 index 1848ef5..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/configuration_types_go_gen.cue +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1 - -package v1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// ConfigurationSpec specifies the configuration of a Configuration. -#ConfigurationSpec: { - #MetaSpec -} - -// A Configuration is the description of a Crossplane Configuration package. -#Configuration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ConfigurationSpec @go(Spec) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/doc_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/doc_go_gen.cue deleted file mode 100644 index d0831e1..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1 - -// Package v1 contains meta types used to configure Crossplane packages. -// +kubebuilder:object:generate=true -// +groupName=meta.pkg.crossplane.io -// +versionName=v1 -package v1 diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/interfaces_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/interfaces_go_gen.cue deleted file mode 100644 index b8d498e..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/interfaces_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1 - -package v1 - -// Pkg is a description of a Crossplane package. -// +k8s:deepcopy-gen=false -#Pkg: _ diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/meta_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/meta_go_gen.cue deleted file mode 100644 index 24a7d84..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/meta_go_gen.cue +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1 - -package v1 - -// MetaSpec are fields that every meta package type must implement. -#MetaSpec: { - // Semantic version constraints of Crossplane that package is compatible with. - crossplane?: null | #CrossplaneConstraints @go(Crossplane,*CrossplaneConstraints) - - // Dependencies on other packages. - dependsOn?: [...#Dependency] @go(DependsOn,[]Dependency) -} - -// CrossplaneConstraints specifies a packages compatibility with Crossplane versions. -#CrossplaneConstraints: { - // Semantic version constraints of Crossplane that package is compatible with. - version: string @go(Version) -} - -// Dependency is a dependency on another package. One of Provider or Configuration may be supplied. -#Dependency: { - // Provider is the name of a Provider package image. - provider?: null | string @go(Provider,*string) - - // Configuration is the name of a Configuration package image. - configuration?: null | string @go(Configuration,*string) - - // Version is the semantic version constraints of the dependency image. - version: string @go(Version) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/provider_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/provider_types_go_gen.cue deleted file mode 100644 index bb84297..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/provider_types_go_gen.cue +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1 - -package v1 - -import ( - rbacv1 "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// ProviderSpec specifies the configuration of a Provider. -#ProviderSpec: { - // Configuration for the packaged Provider's controller. - controller: #ControllerSpec @go(Controller) - - #MetaSpec -} - -// ControllerSpec specifies the configuration for the packaged Provider -// controller. -#ControllerSpec: { - // Image is the packaged Provider controller image. - image?: null | string @go(Image,*string) - - // PermissionRequests for RBAC rules required for this provider's controller - // to function. The RBAC manager is responsible for assessing the requested - // permissions. - // +optional - permissionRequests?: [...rbacv1.#PolicyRule] @go(PermissionRequests,[]rbacv1.PolicyRule) -} - -// A Provider is the description of a Crossplane Provider package. -#Provider: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ProviderSpec @go(Spec) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/register_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/register_go_gen.cue deleted file mode 100644 index a65c5e4..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1 - -package v1 - -#Group: "meta.pkg.crossplane.io" -#Version: "v1" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/conversion_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/conversion_go_gen.cue deleted file mode 100644 index 10f3dd7..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/conversion_go_gen.cue +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1 - -package v1alpha1 - -_#errWrongConvertToConfiguration: "must convert to *v1.Configuration" -_#errWrongConvertFromConfiguration: "must convert from *v1.Configuration" -_#errWrongConvertToProvider: "must convert to *v1.Provider" -_#errWrongConvertFromProvider: "must convert from *v1.Provider" - -// A ToHubConverter converts v1alpha1 types to the 'hub' v1 type. -// -// goverter:converter -// goverter:name GeneratedToHubConverter -// goverter:extend ConvertObjectMeta -// +k8s:deepcopy-gen=false -#ToHubConverter: _ - -// A FromHubConverter converts v1alpha1 types from the 'hub' v1 type. -// -// goverter:converter -// goverter:name GeneratedFromHubConverter -// goverter:extend ConvertObjectMeta -// +k8s:deepcopy-gen=false -#FromHubConverter: _ diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/doc_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/doc_go_gen.cue deleted file mode 100644 index bdcf13f..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1 - -// Package v1alpha1 contains meta types used to configure Crossplane packages. -// +kubebuilder:object:generate=true -// +groupName=meta.pkg.crossplane.io -// +versionName=v1alpha1 -package v1alpha1 diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/function_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/function_types_go_gen.cue deleted file mode 100644 index 6394882..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/function_types_go_gen.cue +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1 - -package v1alpha1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// FunctionSpec specifies the configuration of a Function. -#FunctionSpec: { - #MetaSpec -} - -// A Function is the description of a Crossplane Function package. -#Function: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #FunctionSpec @go(Spec) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/register_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/register_go_gen.cue deleted file mode 100644 index 99168be..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1 - -package v1alpha1 - -#Group: "meta.pkg.crossplane.io" -#Version: "v1alpha1" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/zz_generated.configuration_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/zz_generated.configuration_types_go_gen.cue deleted file mode 100644 index 710404f..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/zz_generated.configuration_types_go_gen.cue +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1 - -package v1alpha1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// ConfigurationSpec specifies the configuration of a Configuration. -#ConfigurationSpec: { - #MetaSpec -} - -// A Configuration is the description of a Crossplane Configuration package. -#Configuration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ConfigurationSpec @go(Spec) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/zz_generated.conversion_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/zz_generated.conversion_go_gen.cue deleted file mode 100644 index f119e8e..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/zz_generated.conversion_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1 - -package v1alpha1 - -#GeneratedFromHubConverter: { -} - -#GeneratedToHubConverter: { -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/zz_generated.meta_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/zz_generated.meta_go_gen.cue deleted file mode 100644 index b324c91..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/zz_generated.meta_go_gen.cue +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1 - -package v1alpha1 - -// MetaSpec are fields that every meta package type must implement. -#MetaSpec: { - // Semantic version constraints of Crossplane that package is compatible with. - crossplane?: null | #CrossplaneConstraints @go(Crossplane,*CrossplaneConstraints) - - // Dependencies on other packages. - dependsOn?: [...#Dependency] @go(DependsOn,[]Dependency) -} - -// CrossplaneConstraints specifies a packages compatibility with Crossplane versions. -#CrossplaneConstraints: { - // Semantic version constraints of Crossplane that package is compatible with. - version: string @go(Version) -} - -// Dependency is a dependency on another package. One of Provider or Configuration may be supplied. -#Dependency: { - // Provider is the name of a Provider package image. - provider?: null | string @go(Provider,*string) - - // Configuration is the name of a Configuration package image. - configuration?: null | string @go(Configuration,*string) - - // Version is the semantic version constraints of the dependency image. - version: string @go(Version) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/zz_generated.provider_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/zz_generated.provider_types_go_gen.cue deleted file mode 100644 index 0709980..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1/zz_generated.provider_types_go_gen.cue +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/meta/v1alpha1 - -package v1alpha1 - -import ( - rbacv1 "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// ProviderSpec specifies the configuration of a Provider. -#ProviderSpec: { - // Configuration for the packaged Provider's controller. - controller: #ControllerSpec @go(Controller) - - #MetaSpec -} - -// ControllerSpec specifies the configuration for the packaged Provider -// controller. -#ControllerSpec: { - // Image is the packaged Provider controller image. - image?: null | string @go(Image,*string) - - // PermissionRequests for RBAC rules required for this provider's controller - // to function. The RBAC manager is responsible for assessing the requested - // permissions. - // +optional - permissionRequests?: [...rbacv1.#PolicyRule] @go(PermissionRequests,[]rbacv1.PolicyRule) -} - -// A Provider is the description of a Crossplane Provider package. -#Provider: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ProviderSpec @go(Spec) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/pkg_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/pkg_go_gen.cue deleted file mode 100644 index ee89da6..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/pkg_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg - -// Package pkg contains Kubernetes API groups for Crossplane packages. -package pkg diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/conditions_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/conditions_go_gen.cue deleted file mode 100644 index 0d260f0..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/conditions_go_gen.cue +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1 - -package v1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// A TypeInstalled indicates whether a package has been installed. -#TypeInstalled: xpv1.#ConditionType & "Installed" - -// A TypeHealthy indicates whether a package is healthy. -#TypeHealthy: xpv1.#ConditionType & "Healthy" - -#ReasonUnpacking: xpv1.#ConditionReason & "UnpackingPackage" -#ReasonInactive: xpv1.#ConditionReason & "InactivePackageRevision" -#ReasonActive: xpv1.#ConditionReason & "ActivePackageRevision" -#ReasonUnhealthy: xpv1.#ConditionReason & "UnhealthyPackageRevision" -#ReasonHealthy: xpv1.#ConditionReason & "HealthyPackageRevision" -#ReasonUnknownHealth: xpv1.#ConditionReason & "UnknownPackageRevisionHealth" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/configuration_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/configuration_types_go_gen.cue deleted file mode 100644 index 17db3c3..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/configuration_types_go_gen.cue +++ /dev/null @@ -1,70 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" -) - -// Configuration is the CRD type for a request to add a configuration to Crossplane. -// +kubebuilder:subresource:status -// +kubebuilder:storageversion -// +kubebuilder:printcolumn:name="INSTALLED",type="string",JSONPath=".status.conditions[?(@.type=='Installed')].status" -// +kubebuilder:printcolumn:name="HEALTHY",type="string",JSONPath=".status.conditions[?(@.type=='Healthy')].status" -// +kubebuilder:printcolumn:name="PACKAGE",type="string",JSONPath=".spec.package" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:resource:scope=Cluster,categories={crossplane,pkg} -#Configuration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec?: #ConfigurationSpec @go(Spec) - status?: #ConfigurationStatus @go(Status) -} - -// ConfigurationSpec specifies details about a request to install a -// configuration to Crossplane. -#ConfigurationSpec: { - #PackageSpec -} - -// ConfigurationStatus represents the observed state of a Configuration. -#ConfigurationStatus: { - xpv1.#ConditionedStatus - - #PackageStatus -} - -// ConfigurationList contains a list of Configuration. -#ConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Configuration] @go(Items,[]Configuration) -} - -// A ConfigurationRevision that has been added to Crossplane. -// +kubebuilder:subresource:status -// +kubebuilder:storageversion -// +kubebuilder:printcolumn:name="HEALTHY",type="string",JSONPath=".status.conditions[?(@.type=='Healthy')].status" -// +kubebuilder:printcolumn:name="REVISION",type="string",JSONPath=".spec.revision" -// +kubebuilder:printcolumn:name="IMAGE",type="string",JSONPath=".spec.image" -// +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".spec.desiredState" -// +kubebuilder:printcolumn:name="DEP-FOUND",type="string",JSONPath=".status.foundDependencies" -// +kubebuilder:printcolumn:name="DEP-INSTALLED",type="string",JSONPath=".status.installedDependencies" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:resource:scope=Cluster,categories={crossplane,pkgrev} -#ConfigurationRevision: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec?: #PackageRevisionSpec @go(Spec) - status?: #PackageRevisionStatus @go(Status) -} - -// ConfigurationRevisionList contains a list of ConfigurationRevision. -#ConfigurationRevisionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConfigurationRevision] @go(Items,[]ConfigurationRevision) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/doc_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/doc_go_gen.cue deleted file mode 100644 index c3cb31c..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1 - -// Package v1 contains resources relating to Crossplane packages. -// +kubebuilder:object:generate=true -// +groupName=pkg.crossplane.io -// +versionName=v1 -package v1 diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/interfaces_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/interfaces_go_gen.cue deleted file mode 100644 index fbb0f48..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/interfaces_go_gen.cue +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1 - -package v1 - -// LabelParentPackage is used as key for the owner package label we add to the -// revisions. Its corresponding value should be the name of the owner package. -#LabelParentPackage: "pkg.crossplane.io/package" - -// LabelProviderFamily is used as key for the provider family label. This -// label is added to any provider that rolls up to a larger 'family', such -// as 'family-aws'. It is propagated from provider metadata to provider -// revisions, and can be used to select all provider revisions that belong -// to a particular family. It is not added to providers, only revisions. -#LabelProviderFamily: "pkg.crossplane.io/provider-family" - -// RevisionActivationPolicy indicates how a package should activate its -// revisions. -#RevisionActivationPolicy: string - -// Package is the interface satisfied by package types. -// +k8s:deepcopy-gen=false -#Package: _ - -// PackageRevision is the interface satisfied by package revision types. -// +k8s:deepcopy-gen=false -#PackageRevision: _ - -// PackageRevisionList is the interface satisfied by package revision list -// types. -// +k8s:deepcopy-gen=false -#PackageRevisionList: _ diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/package_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/package_types_go_gen.cue deleted file mode 100644 index 2293f07..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/package_types_go_gen.cue +++ /dev/null @@ -1,76 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1 - -package v1 - -import corev1 "k8s.io/api/core/v1" - -// PackageSpec specifies the desired state of a Package. -#PackageSpec: { - // Package is the name of the package that is being requested. - package: string @go(Package) - - // RevisionActivationPolicy specifies how the package controller should - // update from one revision to the next. Options are Automatic or Manual. - // Default is Automatic. - // +optional - // +kubebuilder:default=Automatic - revisionActivationPolicy?: null | #RevisionActivationPolicy @go(RevisionActivationPolicy,*RevisionActivationPolicy) - - // RevisionHistoryLimit dictates how the package controller cleans up old - // inactive package revisions. - // Defaults to 1. Can be disabled by explicitly setting to 0. - // +optional - // +kubebuilder:default=1 - revisionHistoryLimit?: null | int64 @go(RevisionHistoryLimit,*int64) - - // PackagePullSecrets are named secrets in the same namespace that can be used - // to fetch packages from private registries. - // +optional - packagePullSecrets?: [...corev1.#LocalObjectReference] @go(PackagePullSecrets,[]corev1.LocalObjectReference) - - // PackagePullPolicy defines the pull policy for the package. - // Default is IfNotPresent. - // +optional - // +kubebuilder:default=IfNotPresent - packagePullPolicy?: null | corev1.#PullPolicy @go(PackagePullPolicy,*corev1.PullPolicy) - - // IgnoreCrossplaneConstraints indicates to the package manager whether to - // honor Crossplane version constrains specified by the package. - // Default is false. - // +optional - // +kubebuilder:default=false - ignoreCrossplaneConstraints?: null | bool @go(IgnoreCrossplaneConstraints,*bool) - - // SkipDependencyResolution indicates to the package manager whether to skip - // resolving dependencies for a package. Setting this value to true may have - // unintended consequences. - // Default is false. - // +optional - // +kubebuilder:default=false - skipDependencyResolution?: null | bool @go(SkipDependencyResolution,*bool) - - // Map of string keys and values that can be used to organize and categorize - // (scope and select) objects. May match selectors of replication controllers - // and services. - // More info: http://kubernetes.io/docs/user-guide/labels - // +optional - commonLabels?: {[string]: string} @go(CommonLabels,map[string]string) -} - -// PackageStatus represents the observed state of a Package. -#PackageStatus: { - // CurrentRevision is the name of the current package revision. It will - // reflect the most up to date revision, whether it has been activated or - // not. - currentRevision?: string @go(CurrentRevision) - - // CurrentIdentifier is the most recent package source that was used to - // produce a revision. The package manager uses this field to determine - // whether to check for package updates for a given source when - // packagePullPolicy is set to IfNotPresent. Manually removing this field - // will cause the package manager to check that the current revision is - // correct for the given package source. - currentIdentifier?: string @go(CurrentIdentifier) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/provider_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/provider_types_go_gen.cue deleted file mode 100644 index 1d31b46..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/provider_types_go_gen.cue +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" -) - -// Provider is the CRD type for a request to add a provider to Crossplane. -// +kubebuilder:subresource:status -// +kubebuilder:storageversion -// +kubebuilder:printcolumn:name="INSTALLED",type="string",JSONPath=".status.conditions[?(@.type=='Installed')].status" -// +kubebuilder:printcolumn:name="HEALTHY",type="string",JSONPath=".status.conditions[?(@.type=='Healthy')].status" -// +kubebuilder:printcolumn:name="PACKAGE",type="string",JSONPath=".spec.package" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:resource:scope=Cluster,categories={crossplane,pkg} -#Provider: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec?: #ProviderSpec @go(Spec) - status?: #ProviderStatus @go(Status) -} - -// ProviderSpec specifies details about a request to install a provider to -// Crossplane. -#ProviderSpec: { - #PackageSpec - - // ControllerConfigRef references a ControllerConfig resource that will be - // used to configure the packaged controller Deployment. - // +optional - controllerConfigRef?: null | #ControllerConfigReference @go(ControllerConfigReference,*ControllerConfigReference) -} - -// A ControllerConfigReference to a ControllerConfig resource that will be used -// to configure the packaged controller Deployment. -#ControllerConfigReference: { - // Name of the ControllerConfig. - name: string @go(Name) -} - -// ProviderStatus represents the observed state of a Provider. -#ProviderStatus: { - xpv1.#ConditionedStatus - - #PackageStatus -} - -// ProviderList contains a list of Provider. -#ProviderList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Provider] @go(Items,[]Provider) -} - -// A ProviderRevision that has been added to Crossplane. -// +kubebuilder:subresource:status -// +kubebuilder:storageversion -// +kubebuilder:printcolumn:name="HEALTHY",type="string",JSONPath=".status.conditions[?(@.type=='Healthy')].status" -// +kubebuilder:printcolumn:name="REVISION",type="string",JSONPath=".spec.revision" -// +kubebuilder:printcolumn:name="IMAGE",type="string",JSONPath=".spec.image" -// +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".spec.desiredState" -// +kubebuilder:printcolumn:name="DEP-FOUND",type="string",JSONPath=".status.foundDependencies" -// +kubebuilder:printcolumn:name="DEP-INSTALLED",type="string",JSONPath=".status.installedDependencies" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:resource:scope=Cluster,categories={crossplane,pkgrev} -#ProviderRevision: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec?: #PackageRevisionSpec @go(Spec) - status?: #PackageRevisionStatus @go(Status) -} - -// ProviderRevisionList contains a list of ProviderRevision. -#ProviderRevisionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ProviderRevision] @go(Items,[]ProviderRevision) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/register_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/register_go_gen.cue deleted file mode 100644 index 0513df7..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1 - -package v1 - -#Group: "pkg.crossplane.io" -#Version: "v1" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/revision_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/revision_types_go_gen.cue deleted file mode 100644 index 3c3d0fb..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1/revision_types_go_gen.cue +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1 - -package v1 - -import ( - corev1 "k8s.io/api/core/v1" - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - rbacv1 "k8s.io/api/rbac/v1" -) - -// PackageRevisionDesiredState is the desired state of the package revision. -#PackageRevisionDesiredState: string // #enumPackageRevisionDesiredState - -#enumPackageRevisionDesiredState: - #PackageRevisionActive | - #PackageRevisionInactive - -// PackageRevisionActive is an active package revision. -#PackageRevisionActive: #PackageRevisionDesiredState & "Active" - -// PackageRevisionInactive is an inactive package revision. -#PackageRevisionInactive: #PackageRevisionDesiredState & "Inactive" - -// PackageRevisionSpec specifies the desired state of a PackageRevision. -#PackageRevisionSpec: { - // ControllerConfigRef references a ControllerConfig resource that will be - // used to configure the packaged controller Deployment. - // +optional - controllerConfigRef?: null | #ControllerConfigReference @go(ControllerConfigReference,*ControllerConfigReference) - - // DesiredState of the PackageRevision. Can be either Active or Inactive. - desiredState: #PackageRevisionDesiredState @go(DesiredState) - - // Package image used by install Pod to extract package contents. - image: string @go(Package) - - // PackagePullSecrets are named secrets in the same namespace that can be - // used to fetch packages from private registries. They are also applied to - // any images pulled for the package, such as a provider's controller image. - // +optional - packagePullSecrets?: [...corev1.#LocalObjectReference] @go(PackagePullSecrets,[]corev1.LocalObjectReference) - - // PackagePullPolicy defines the pull policy for the package. It is also - // applied to any images pulled for the package, such as a provider's - // controller image. - // Default is IfNotPresent. - // +optional - // +kubebuilder:default=IfNotPresent - packagePullPolicy?: null | corev1.#PullPolicy @go(PackagePullPolicy,*corev1.PullPolicy) - - // Revision number. Indicates when the revision will be garbage collected - // based on the parent's RevisionHistoryLimit. - revision: int64 @go(Revision) - - // IgnoreCrossplaneConstraints indicates to the package manager whether to - // honor Crossplane version constrains specified by the package. - // Default is false. - // +optional - // +kubebuilder:default=false - ignoreCrossplaneConstraints?: null | bool @go(IgnoreCrossplaneConstraints,*bool) - - // SkipDependencyResolution indicates to the package manager whether to skip - // resolving dependencies for a package. Setting this value to true may have - // unintended consequences. - // Default is false. - // +optional - // +kubebuilder:default=false - skipDependencyResolution?: null | bool @go(SkipDependencyResolution,*bool) - - // WebhookTLSSecretName is the name of the TLS Secret that will be used - // by the provider to serve a TLS-enabled webhook server. The certificate - // will be injected to webhook configurations as well as CRD conversion - // webhook strategy if needed. - // If it's not given, provider will not have a certificate mounted to its - // filesystem, webhook configurations won't be deployed and if there is a - // CRD with webhook conversion strategy, the installation will fail. - // +optional - webhookTLSSecretName?: null | string @go(WebhookTLSSecretName,*string) - - // Map of string keys and values that can be used to organize and categorize - // (scope and select) objects. May match selectors of replication controllers - // and services. - // More info: http://kubernetes.io/docs/user-guide/labels - // +optional - commonLabels?: {[string]: string} @go(CommonLabels,map[string]string) - - // ESSTLSSecretName is the secret name of the TLS certificates that will be used - // by the provider for External Secret Stores. - // +optional - essTLSSecretName?: null | string @go(ESSTLSSecretName,*string) -} - -// PackageRevisionStatus represents the observed state of a PackageRevision. -#PackageRevisionStatus: { - xpv1.#ConditionedStatus - - // ControllerRef references the controller (e.g. Deployment), if any, that - // is responsible for reconciling the objects this package revision - // installed. - controllerRef?: #ControllerReference @go(ControllerRef) - - // References to objects owned by PackageRevision. - objectRefs?: [...xpv1.#TypedReference] @go(ObjectRefs,[]xpv1.TypedReference) - - // Dependency information. - foundDependencies?: int64 @go(FoundDependencies) - installedDependencies?: int64 @go(InstalledDependencies) - invalidDependencies?: int64 @go(InvalidDependencies) - - // PermissionRequests made by this package. The package declares that its - // controller needs these permissions to run. The RBAC manager is - // responsible for granting them. - permissionRequests?: [...rbacv1.#PolicyRule] @go(PermissionRequests,[]rbacv1.PolicyRule) -} - -// A ControllerReference references the controller (e.g. Deployment), if any, -// that is responsible for reconciling the types a package revision installs. -#ControllerReference: { - // Name of the controller. - name: string @go(Name) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1alpha1/config_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1alpha1/config_go_gen.cue deleted file mode 100644 index 2e3b2a3..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1alpha1/config_go_gen.cue +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1alpha1 - -package v1alpha1 - -import ( - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// ControllerConfigSpec specifies the configuration for a packaged controller. -// Values provided will override package manager defaults. Labels and -// annotations are passed to both the controller Deployment and ServiceAccount. -#ControllerConfigSpec: { - // Metadata that will be added to the provider Pod. - // +optional - metadata?: null | #PodObjectMeta @go(Metadata,*PodObjectMeta) - - // Number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // Note: If more than 1 replica is set and leader election is not enabled then - // controllers could conflict. Environment variable "LEADER_ELECTION" can be - // used to enable leader election process. - // +optional - replicas?: null | int32 @go(Replicas,*int32) - - // Docker image name. - // More info: https://kubernetes.io/docs/concepts/containers/images - // This field is optional to allow higher level config management to default or override - // container images in workload controllers like Deployments and StatefulSets. - // +optional - image?: null | string @go(Image,*string) - - // NodeSelector is a selector which must be true for the pod to fit on a node. - // Selector which must match a node's labels for the pod to be scheduled on that node. - // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - // +optional - nodeSelector?: {[string]: string} @go(NodeSelector,map[string]string) - - // ServiceAccountName is the name of the ServiceAccount to use to run this pod. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - // If specified, a ServiceAccount named this ServiceAccountName will be used for - // the spec.serviceAccountName field in Pods to be created and for the subjects.name field - // in a ClusterRoleBinding to be created. - // If there is no ServiceAccount named this ServiceAccountName, a new ServiceAccount - // will be created. - // If there is a pre-existing ServiceAccount named this ServiceAccountName, the ServiceAccount - // will be used. The annotations in the ControllerConfig will be copied to the ServiceAccount - // and pre-existing annotations will be kept. - // Regardless of whether there is a ServiceAccount created by Crossplane or is in place already, - // the ServiceAccount will be deleted once the Provider and ControllerConfig are deleted. - // +optional - serviceAccountName?: null | string @go(ServiceAccountName,*string) - - // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, - // the scheduler simply schedules this pod onto that node, assuming that it fits resource - // requirements. - // +optional - nodeName?: null | string @go(NodeName,*string) - - // PodSecurityContext holds pod-level security attributes and common container settings. - // Optional: Defaults to empty. See type description for default values of each field. - // +optional - podSecurityContext?: null | corev1.#PodSecurityContext @go(PodSecurityContext,*corev1.PodSecurityContext) - - // SecurityContext holds container-level security attributes and common container settings. - // Optional: Defaults to empty. See type description for default values of each field. - // +optional - securityContext?: null | corev1.#SecurityContext @go(SecurityContext,*corev1.SecurityContext) - - // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. - // If specified, these secrets will be passed to individual puller implementations for them to use. For example, - // in the case of docker, only DockerConfig type secrets are honored. - // More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - // Setting ImagePullSecrets will replace any secrets that have been - // propagated to a controller Deployment, typically via packagePullSecrets. - // +optional - imagePullSecrets?: [...corev1.#LocalObjectReference] @go(ImagePullSecrets,[]corev1.LocalObjectReference) - - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - imagePullPolicy?: null | corev1.#PullPolicy @go(ImagePullPolicy,*corev1.PullPolicy) - - // If specified, the pod's scheduling constraints - // +optional - affinity?: null | corev1.#Affinity @go(Affinity,*corev1.Affinity) - - // If specified, the pod's tolerations. - // +optional - tolerations?: [...corev1.#Toleration] @go(Tolerations,[]corev1.Toleration) - - // If specified, indicates the pod's priority. "system-node-critical" and - // "system-cluster-critical" are two special keywords which indicate the - // highest priorities with the former being the highest priority. Any other - // name must be defined by creating a PriorityClass object with that name. - // If not specified, the pod priority will be default or zero if there is no - // default. - // +optional - priorityClassName?: null | string @go(PriorityClassName,*string) - - // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used - // to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. - // If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an - // empty definition that uses the default runtime handler. - // More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md - // This is a beta feature as of Kubernetes v1.14. - // +optional - runtimeClassName?: null | string @go(RuntimeClassName,*string) - - // Compute Resources required by this container. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - // +optional - resources?: null | corev1.#ResourceRequirements @go(ResourceRequirements,*corev1.ResourceRequirements) - - // Arguments to the entrypoint. - // The docker image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - // regardless of whether the variable exists or not. - // Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - args?: [...string] @go(Args,[]string) - - // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - envFrom?: [...corev1.#EnvFromSource] @go(EnvFrom,[]corev1.EnvFromSource) - - // List of environment variables to set in the container. - // Cannot be updated. - // +optional - env?: [...corev1.#EnvVar] @go(Env,[]corev1.EnvVar) - - // List of container ports to expose on the container - // +optional - ports?: [...corev1.#ContainerPort] @go(Ports,[]corev1.ContainerPort) - - // List of volumes that can be mounted by containers belonging to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes - // +optional - volumes?: [...corev1.#Volume] @go(Volumes,[]corev1.Volume) - - // List of VolumeMounts to mount into the container's filesystem. - // Cannot be updated. - // +optional - volumeMounts?: [...corev1.#VolumeMount] @go(VolumeMounts,[]corev1.VolumeMount) -} - -// PodObjectMeta is metadata that is added to the Pods in a provider's -// Deployment. -#PodObjectMeta: { - // Annotations is an unstructured key value map stored with a resource that may be - // set by external tools to store and retrieve arbitrary metadata. They are not - // queryable and should be preserved when modifying objects. - // More info: http://kubernetes.io/docs/user-guide/annotations - // +optional - annotations?: {[string]: string} @go(Annotations,map[string]string) - - // Map of string keys and values that can be used to organize and - // categorize (scope and select) objects. This will only affect - // labels on the pod, not the pod selector. Labels will be merged - // with internal labels used by crossplane, and labels with a - // crossplane.io key might be overwritten. - // More info: http://kubernetes.io/docs/user-guide/labels - // +optional - labels?: {[string]: string} @go(Labels,map[string]string) -} - -// ControllerConfig is the CRD type for a packaged controller configuration. -// Deprecated: This API is scheduled to be removed in a future release. See -// https://github.com/crossplane/crossplane/issues/3601 for more information. -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:resource:scope=Cluster -// +kubebuilder:deprecatedversion:warning="ControllerConfig.pkg.crossplane.io/v1alpha1 has been deprecated and will be removed in a future release, but only after a comparable alternative is available." -#ControllerConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec?: #ControllerConfigSpec @go(Spec) -} - -// ControllerConfigList contains a list of ControllerConfig. -#ControllerConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ControllerConfig] @go(Items,[]ControllerConfig) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1alpha1/doc_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1alpha1/doc_go_gen.cue deleted file mode 100644 index 38b1541..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1alpha1 - -// Package v1alpha1 contains resources relating to Crossplane packages. -// +kubebuilder:object:generate=true -// +groupName=pkg.crossplane.io -// +versionName=v1alpha1 -package v1alpha1 diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1alpha1/register_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1alpha1/register_go_gen.cue deleted file mode 100644 index c03c9ec..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1alpha1 - -package v1alpha1 - -#Group: "pkg.crossplane.io" -#Version: "v1alpha1" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1beta1/doc_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1beta1/doc_go_gen.cue deleted file mode 100644 index 633d78c..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1beta1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1beta1 - -// Package v1beta1 contains resources relating to Crossplane packages. -// +kubebuilder:object:generate=true -// +groupName=pkg.crossplane.io -// +versionName=v1beta1 -package v1beta1 diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1beta1/lock_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1beta1/lock_go_gen.cue deleted file mode 100644 index 367901d..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1beta1/lock_go_gen.cue +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1beta1 - -package v1beta1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// A PackageType is a type of package. -#PackageType: string // #enumPackageType - -#enumPackageType: - #ConfigurationPackageType | - #ProviderPackageType - -#ConfigurationPackageType: #PackageType & "Configuration" -#ProviderPackageType: #PackageType & "Provider" - -// LockPackage is a package that is in the lock. -#LockPackage: { - // Name corresponds to the name of the package revision for this package. - name: string @go(Name) - - // Type is the type of package. Can be either Configuration or Provider. - type: #PackageType @go(Type) - - // Source is the OCI image name without a tag or digest. - source: string @go(Source) - - // Version is the tag or digest of the OCI image. - version: string @go(Version) - - // Dependencies are the list of dependencies of this package. The order of - // the dependencies will dictate the order in which they are resolved. - dependencies: [...#Dependency] @go(Dependencies,[]Dependency) -} - -// A Dependency is a dependency of a package in the lock. -#Dependency: { - // Package is the OCI image name without a tag or digest. - package: string @go(Package) - - // Type is the type of package. Can be either Configuration or Provider. - type: #PackageType @go(Type) - - // Constraints is a valid semver range, which will be used to select a valid - // dependency version. - constraints: string @go(Constraints) -} - -// Lock is the CRD type that tracks package dependencies. -// +kubebuilder:storageversion -// +kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:resource:scope=Cluster -#Lock: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - packages?: [...#LockPackage] @go(Packages,[]LockPackage) -} - -// LockList contains a list of Lock. -#LockList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Lock] @go(Items,[]Lock) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1beta1/register_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1beta1/register_go_gen.cue deleted file mode 100644 index 9cbbc83..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1beta1 - -package v1beta1 - -#Group: "pkg.crossplane.io" -#Version: "v1beta1" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1beta1/revision_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1beta1/revision_types_go_gen.cue deleted file mode 100644 index a9dd3b8..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/pkg/v1beta1/revision_types_go_gen.cue +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/pkg/v1beta1 - -package v1beta1 - -import ( - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - corev1 "k8s.io/api/core/v1" - rbacv1 "k8s.io/api/rbac/v1" -) - -// PackageRevisionDesiredState is the desired state of the package revision. -#PackageRevisionDesiredState: string // #enumPackageRevisionDesiredState - -#enumPackageRevisionDesiredState: - #PackageRevisionActive | - #PackageRevisionInactive - -// PackageRevisionActive is an active package revision. -#PackageRevisionActive: #PackageRevisionDesiredState & "Active" - -// PackageRevisionInactive is an inactive package revision. -#PackageRevisionInactive: #PackageRevisionDesiredState & "Inactive" - -// PackageRevisionSpec specifies the desired state of a PackageRevision. -#PackageRevisionSpec: { - // ControllerConfigRef references a ControllerConfig resource that will be - // used to configure the packaged controller Deployment. - // +optional - controllerConfigRef?: null | xpv1.#Reference @go(ControllerConfigReference,*xpv1.Reference) - - // DesiredState of the PackageRevision. Can be either Active or Inactive. - desiredState: #PackageRevisionDesiredState @go(DesiredState) - - // Package image used by install Pod to extract package contents. - image: string @go(Package) - - // PackagePullSecrets are named secrets in the same namespace that can be - // used to fetch packages from private registries. They are also applied to - // any images pulled for the package, such as a provider's controller image. - // +optional - packagePullSecrets?: [...corev1.#LocalObjectReference] @go(PackagePullSecrets,[]corev1.LocalObjectReference) - - // PackagePullPolicy defines the pull policy for the package. It is also - // applied to any images pulled for the package, such as a provider's - // controller image. - // Default is IfNotPresent. - // +optional - // +kubebuilder:default=IfNotPresent - packagePullPolicy?: null | corev1.#PullPolicy @go(PackagePullPolicy,*corev1.PullPolicy) - - // Revision number. Indicates when the revision will be garbage collected - // based on the parent's RevisionHistoryLimit. - revision: int64 @go(Revision) - - // IgnoreCrossplaneConstraints indicates to the package manager whether to - // honor Crossplane version constrains specified by the package. - // Default is false. - // +optional - // +kubebuilder:default=false - ignoreCrossplaneConstraints?: null | bool @go(IgnoreCrossplaneConstraints,*bool) - - // SkipDependencyResolution indicates to the package manager whether to skip - // resolving dependencies for a package. Setting this value to true may have - // unintended consequences. - // Default is false. - // +optional - // +kubebuilder:default=false - skipDependencyResolution?: null | bool @go(SkipDependencyResolution,*bool) -} - -// PackageRevisionStatus represents the observed state of a PackageRevision. -#PackageRevisionStatus: { - xpv1.#ConditionedStatus - controllerRef?: xpv1.#Reference @go(ControllerRef) - - // References to objects owned by PackageRevision. - objectRefs?: [...xpv1.#TypedReference] @go(ObjectRefs,[]xpv1.TypedReference) - - // Dependency information. - foundDependencies?: int64 @go(FoundDependencies) - installedDependencies?: int64 @go(InstalledDependencies) - invalidDependencies?: int64 @go(InvalidDependencies) - - // PermissionRequests made by this package. The package declares that its - // controller needs these permissions to run. The RBAC manager is - // responsible for granting them. - permissionRequests?: [...rbacv1.#PolicyRule] @go(PermissionRequests,[]rbacv1.PolicyRule) -} diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/secrets/secrets_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/secrets/secrets_go_gen.cue deleted file mode 100644 index 1c673ab..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/secrets/secrets_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/secrets - -// Package secrets contains Kubernetes API groups for secret store types of Crossplane. -package secrets diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/secrets/v1alpha1/doc_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/secrets/v1alpha1/doc_go_gen.cue deleted file mode 100644 index 75700ee..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/secrets/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/secrets/v1alpha1 - -// Package v1alpha1 contains the Secret StoreConfig resources. -// +kubebuilder:object:generate=true -// +groupName=secrets.crossplane.io -// +versionName=v1alpha1 -package v1alpha1 diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/secrets/v1alpha1/register_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/secrets/v1alpha1/register_go_gen.cue deleted file mode 100644 index 82e36fe..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/secrets/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/secrets/v1alpha1 - -package v1alpha1 - -#Group: "secrets.crossplane.io" -#Version: "v1alpha1" diff --git a/cue.mod/gen/github.com/crossplane/crossplane/apis/secrets/v1alpha1/storeconfig_types_go_gen.cue b/cue.mod/gen/github.com/crossplane/crossplane/apis/secrets/v1alpha1/storeconfig_types_go_gen.cue deleted file mode 100644 index a75711f..0000000 --- a/cue.mod/gen/github.com/crossplane/crossplane/apis/secrets/v1alpha1/storeconfig_types_go_gen.cue +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/crossplane/crossplane/apis/secrets/v1alpha1 - -package v1alpha1 - -import ( - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// A StoreConfigSpec defines the desired state of a StoreConfig. -#StoreConfigSpec: { - xpv1.#SecretStoreConfig -} - -// A StoreConfig configures how Crossplane controllers should store connection details. -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:printcolumn:name="TYPE",type="string",JSONPath=".spec.type" -// +kubebuilder:printcolumn:name="DEFAULT-SCOPE",type="string",JSONPath=".spec.defaultScope" -// +kubebuilder:resource:scope=Cluster,categories={crossplane,store} -#StoreConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #StoreConfigSpec @go(Spec) -} - -// StoreConfigList contains a list of StoreConfig -#StoreConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#StoreConfig] @go(Items,[]StoreConfig) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/default_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/default_go_gen.cue deleted file mode 100644 index 1869bee..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/default_go_gen.cue +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/config - -package config - -import ( - "time" - "github.com/tektoncd/pipeline/pkg/apis/pipeline/pod" -) - -// DefaultTimeoutMinutes is used when no timeout is specified. -#DefaultTimeoutMinutes: 60 - -// NoTimeoutDuration is used when a pipeline or task should never time out. -#NoTimeoutDuration: time.#Duration & 0 - -// DefaultServiceAccountValue is the SA used when one is not specified. -#DefaultServiceAccountValue: "default" - -// DefaultManagedByLabelValue is the value for the managed-by label that is used by default. -#DefaultManagedByLabelValue: "tekton-pipelines" - -// DefaultCloudEventSinkValue is the default value for cloud event sinks. -#DefaultCloudEventSinkValue: "" - -// DefaultMaxMatrixCombinationsCount is used when no max matrix combinations count is specified. -#DefaultMaxMatrixCombinationsCount: 256 - -// DefaultResolverTypeValue is used when no default resolver type is specified -#DefaultResolverTypeValue: "" -_#defaultTimeoutMinutesKey: "default-timeout-minutes" -_#defaultServiceAccountKey: "default-service-account" -_#defaultManagedByLabelValueKey: "default-managed-by-label-value" -_#defaultPodTemplateKey: "default-pod-template" -_#defaultAAPodTemplateKey: "default-affinity-assistant-pod-template" -_#defaultCloudEventsSinkKey: "default-cloud-events-sink" -_#defaultTaskRunWorkspaceBinding: "default-task-run-workspace-binding" -_#defaultMaxMatrixCombinationsCountKey: "default-max-matrix-combinations-count" -_#defaultForbiddenEnv: "default-forbidden-env" -_#defaultResolverTypeKey: "default-resolver-type" - -// Defaults holds the default configurations -// +k8s:deepcopy-gen=true -#Defaults: { - DefaultTimeoutMinutes: int - DefaultServiceAccount: string - DefaultManagedByLabelValue: string - DefaultPodTemplate?: null | pod.#Template @go(,*pod.Template) - DefaultAAPodTemplate?: null | pod.#AffinityAssistantTemplate @go(,*pod.AffinityAssistantTemplate) - DefaultCloudEventsSink: string - DefaultTaskRunWorkspaceBinding: string - DefaultMaxMatrixCombinationsCount: int - DefaultForbiddenEnv: [...string] @go(,[]string) - DefaultResolverType: string -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/events_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/events_go_gen.cue deleted file mode 100644 index a7b0804..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/events_go_gen.cue +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/config - -package config - -// FormatTektonV1 represents the "v1" events in Tekton custom format -#FormatTektonV1: #EventFormat & "tektonv1" - -// DefaultSink is the default value for "sink" -#DefaultSink: "" -_#formatsKey: "formats" -_#sinkKey: "sink" - -// Events holds the events configurations -// +k8s:deepcopy-gen=true -#Events: { - Sink: string - Formats: #EventFormats -} - -// EventFormat is a single event format -#EventFormat: string // #enumEventFormat - -#enumEventFormat: - #FormatTektonV1 - -// EventFormats is a set of event formats -#EventFormats: {[string]: { -}} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/feature_flags_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/feature_flags_go_gen.cue deleted file mode 100644 index 6e14409..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/feature_flags_go_gen.cue +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/config - -package config - -// StableAPIFields is the value used for "enable-api-fields" when only stable APIs should be usable. -#StableAPIFields: "stable" - -// AlphaAPIFields is the value used for "enable-api-fields" when alpha APIs should be usable as well. -#AlphaAPIFields: "alpha" - -// BetaAPIFields is the value used for "enable-api-fields" when beta APIs should be usable as well. -#BetaAPIFields: "beta" - -// FailNoMatchPolicy is the value used for "trusted-resources-verification-no-match-policy" to fail TaskRun or PipelineRun -// when no matching policies are found -#FailNoMatchPolicy: "fail" - -// WarnNoMatchPolicy is the value used for "trusted-resources-verification-no-match-policy" to log warning and skip verification -// when no matching policies are found -#WarnNoMatchPolicy: "warn" - -// IgnoreNoMatchPolicy is the value used for "trusted-resources-verification-no-match-policy" to skip verification -// when no matching policies are found -#IgnoreNoMatchPolicy: "ignore" - -// CoscheduleWorkspaces is the value used for "coschedule" to coschedule PipelineRun Pods sharing the same PVC workspaces to the same node -#CoscheduleWorkspaces: "workspaces" - -// CoschedulePipelineRuns is the value used for "coschedule" to coschedule all PipelineRun Pods to the same node -#CoschedulePipelineRuns: "pipelineruns" - -// CoscheduleIsolatePipelineRun is the value used for "coschedule" to coschedule all PipelineRun Pods to the same node, and only allows one PipelineRun to run on a node at a time -#CoscheduleIsolatePipelineRun: "isolate-pipelinerun" - -// CoscheduleDisabled is the value used for "coschedule" to disabled PipelineRun Pods coschedule -#CoscheduleDisabled: "disabled" - -// ResultExtractionMethodTerminationMessage is the value used for "results-from" as a way to extract results from tasks using kubernetes termination message. -#ResultExtractionMethodTerminationMessage: "termination-message" - -// ResultExtractionMethodSidecarLogs is the value used for "results-from" as a way to extract results from tasks using sidecar logs. -#ResultExtractionMethodSidecarLogs: "sidecar-logs" - -// DefaultDisableAffinityAssistant is the default value for "disable-affinity-assistant". -#DefaultDisableAffinityAssistant: false - -// DefaultDisableCredsInit is the default value for "disable-creds-init". -#DefaultDisableCredsInit: false - -// DefaultRunningInEnvWithInjectedSidecars is the default value for "running-in-environment-with-injected-sidecars". -#DefaultRunningInEnvWithInjectedSidecars: true - -// DefaultAwaitSidecarReadiness is the default value for "await-sidecar-readiness". -#DefaultAwaitSidecarReadiness: true - -// DefaultRequireGitSSHSecretKnownHosts is the default value for "require-git-ssh-secret-known-hosts". -#DefaultRequireGitSSHSecretKnownHosts: false - -// DefaultEnableTektonOciBundles is the default value for "enable-tekton-oci-bundles". -#DefaultEnableTektonOciBundles: false - -// DefaultEnableAPIFields is the default value for "enable-api-fields". -#DefaultEnableAPIFields: "beta" - -// DefaultSendCloudEventsForRuns is the default value for "send-cloudevents-for-runs". -#DefaultSendCloudEventsForRuns: false - -// EnforceNonfalsifiabilityWithSpire is the value used for "enable-nonfalsifiability" when SPIRE is used to enable non-falsifiability. -#EnforceNonfalsifiabilityWithSpire: "spire" - -// EnforceNonfalsifiabilityNone is the value used for "enable-nonfalsifiability" when non-falsifiability is not enabled. -#EnforceNonfalsifiabilityNone: "none" - -// DefaultEnforceNonfalsifiability is the default value for "enforce-nonfalsifiability". -#DefaultEnforceNonfalsifiability: "none" - -// DefaultNoMatchPolicyConfig is the default value for "trusted-resources-verification-no-match-policy". -#DefaultNoMatchPolicyConfig: "ignore" - -// DefaultEnableProvenanceInStatus is the default value for "enable-provenance-status". -#DefaultEnableProvenanceInStatus: true - -// DefaultResultExtractionMethod is the default value for ResultExtractionMethod -#DefaultResultExtractionMethod: "termination-message" - -// DefaultMaxResultSize is the default value in bytes for the size of a result -#DefaultMaxResultSize: 4096 - -// DefaultSetSecurityContext is the default value for "set-security-context" -#DefaultSetSecurityContext: false - -// DefaultCoschedule is the default value for coschedule -#DefaultCoschedule: "workspaces" -_#disableAffinityAssistantKey: "disable-affinity-assistant" -_#disableCredsInitKey: "disable-creds-init" -_#runningInEnvWithInjectedSidecarsKey: "running-in-environment-with-injected-sidecars" -_#awaitSidecarReadinessKey: "await-sidecar-readiness" -_#requireGitSSHSecretKnownHostsKey: "require-git-ssh-secret-known-hosts" -_#enableTektonOCIBundles: "enable-tekton-oci-bundles" -_#enableAPIFields: "enable-api-fields" -_#sendCloudEventsForRuns: "send-cloudevents-for-runs" -_#enforceNonfalsifiability: "enforce-nonfalsifiability" -_#verificationNoMatchPolicy: "trusted-resources-verification-no-match-policy" -_#enableProvenanceInStatus: "enable-provenance-in-status" -_#resultExtractionMethod: "results-from" -_#maxResultSize: "max-result-size" -_#setSecurityContextKey: "set-security-context" -_#coscheduleKey: "coschedule" - -// FeatureFlags holds the features configurations -// +k8s:deepcopy-gen=true -// -//nolint:musttag -#FeatureFlags: { - DisableAffinityAssistant: bool - DisableCredsInit: bool - RunningInEnvWithInjectedSidecars: bool - RequireGitSSHSecretKnownHosts: bool - EnableTektonOCIBundles: bool - ScopeWhenExpressionsToTask: bool - EnableAPIFields: string - SendCloudEventsForRuns: bool - AwaitSidecarReadiness: bool - EnforceNonfalsifiability: string - - // VerificationNoMatchPolicy is the feature flag for "trusted-resources-verification-no-match-policy" - // VerificationNoMatchPolicy can be set to "ignore", "warn" and "fail" values. - // ignore: skip trusted resources verification when no matching verification policies found - // warn: skip trusted resources verification when no matching verification policies found and log a warning - // fail: fail the taskrun or pipelines run if no matching verification policies found - VerificationNoMatchPolicy: string - EnableProvenanceInStatus: bool - ResultExtractionMethod: string - MaxResultSize: int - SetSecurityContext: bool - Coschedule: string -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/metrics_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/metrics_go_gen.cue deleted file mode 100644 index 94d48ac..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/metrics_go_gen.cue +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/config - -package config - -// metricsTaskrunLevel determines to what level to aggregate metrics -// for taskrun -_#metricsTaskrunLevelKey: "metrics.taskrun.level" - -// metricsPipelinerunLevel determines to what level to aggregate metrics -// for pipelinerun -_#metricsPipelinerunLevelKey: "metrics.pipelinerun.level" - -// metricsDurationTaskrunType determines what type of -// metrics to use for aggregating duration for taskrun -_#metricsDurationTaskrunType: "metrics.taskrun.duration-type" - -// metricsDurationPipelinerunType determines what type of -// metrics to use for aggregating duration for pipelinerun -_#metricsDurationPipelinerunType: "metrics.pipelinerun.duration-type" - -// DefaultTaskrunLevel determines to what level to aggregate metrics -// when it isn't specified in configmap -#DefaultTaskrunLevel: "task" - -// TaskrunLevelAtTaskrun specify that aggregation will be done at -// taskrun level -#TaskrunLevelAtTaskrun: "taskrun" - -// TaskrunLevelAtTask specify that aggregation will be done at task level -#TaskrunLevelAtTask: "task" - -// TaskrunLevelAtNS specify that aggregation will be done at namespace level -#TaskrunLevelAtNS: "namespace" - -// DefaultPipelinerunLevel determines to what level to aggregate metrics -// when it isn't specified in configmap -#DefaultPipelinerunLevel: "pipeline" - -// PipelinerunLevelAtPipelinerun specify that aggregation will be done at -// pipelinerun level -#PipelinerunLevelAtPipelinerun: "pipelinerun" - -// PipelinerunLevelAtPipeline specify that aggregation will be done at -// pipeline level -#PipelinerunLevelAtPipeline: "pipeline" - -// PipelinerunLevelAtNS specify that aggregation will be done at -// namespace level -#PipelinerunLevelAtNS: "namespace" - -// DefaultDurationTaskrunType determines what type -// of metrics to use when we don't specify one in -// configmap -#DefaultDurationTaskrunType: "histogram" - -// DurationTaskrunTypeHistogram specify that histogram -// type metrics need to be use for Duration of Taskrun -#DurationTaskrunTypeHistogram: "histogram" - -// DurationTaskrunTypeLastValue specify that lastValue or -// gauge type metrics need to be use for Duration of Taskrun -#DurationTaskrunTypeLastValue: "lastvalue" - -// DefaultDurationPipelinerunType determines what type -// of metrics to use when we don't specify one in -// configmap -#DefaultDurationPipelinerunType: "histogram" - -// DurationPipelinerunTypeHistogram specify that histogram -// type metrics need to be use for Duration of Pipelinerun -#DurationPipelinerunTypeHistogram: "histogram" - -// DurationPipelinerunTypeLastValue specify that lastValue or -// gauge type metrics need to be use for Duration of Pipelinerun -#DurationPipelinerunTypeLastValue: "lastvalue" - -// Metrics holds the configurations for the metrics -// +k8s:deepcopy-gen=true -#Metrics: { - TaskrunLevel: string - PipelinerunLevel: string - DurationTaskrunType: string - DurationPipelinerunType: string -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/resolver/feature_flags_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/resolver/feature_flags_go_gen.cue deleted file mode 100644 index 67825f4..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/resolver/feature_flags_go_gen.cue +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/config/resolver - -package resolver - -// DefaultEnableGitResolver is the default value for "enable-git-resolver". -#DefaultEnableGitResolver: true - -// DefaultEnableHubResolver is the default value for "enable-hub-resolver". -#DefaultEnableHubResolver: true - -// DefaultEnableBundlesResolver is the default value for "enable-bundles-resolver". -#DefaultEnableBundlesResolver: true - -// DefaultEnableClusterResolver is the default value for "enable-cluster-resolver". -#DefaultEnableClusterResolver: true - -// EnableGitResolver is the flag used to enable the git remote resolver -#EnableGitResolver: "enable-git-resolver" - -// EnableHubResolver is the flag used to enable the hub remote resolver -#EnableHubResolver: "enable-hub-resolver" - -// EnableBundlesResolver is the flag used to enable the bundle remote resolver -#EnableBundlesResolver: "enable-bundles-resolver" - -// EnableClusterResolver is the flag used to enable the cluster remote resolver -#EnableClusterResolver: "enable-cluster-resolver" - -// FeatureFlags holds the features configurations -// +k8s:deepcopy-gen=true -#FeatureFlags: { - EnableGitResolver: bool - EnableHubResolver: bool - EnableBundleResolver: bool - EnableClusterResolver: bool -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/resolver/store_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/resolver/store_go_gen.cue deleted file mode 100644 index 2cb4d4f..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/resolver/store_go_gen.cue +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/config/resolver - -package resolver - -_#cfgKey: { -} - -// Config holds the collection of configurations that we attach to contexts. -// +k8s:deepcopy-gen=false -#Config: { - FeatureFlags?: null | #FeatureFlags @go(,*FeatureFlags) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/spire_config_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/spire_config_go_gen.cue deleted file mode 100644 index 711c3f7..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/spire_config_go_gen.cue +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/config - -package config - -// SpireConfigMapName is the name of the trusted resources configmap -#SpireConfigMapName: "config-spire" - -// SpireTrustDomain is the key to extract out the SPIRE trust domain to use -#SpireTrustDomain: "spire-trust-domain" - -// SpireSocketPath is the key to extract out the SPIRE agent socket for SPIFFE workload API -#SpireSocketPath: "spire-socket-path" - -// SpireServerAddr is the key to extract out the SPIRE server address for workload/node registration -#SpireServerAddr: "spire-server-addr" - -// SpireNodeAliasPrefix is the key to extract out the SPIRE node alias prefix to use -#SpireNodeAliasPrefix: "spire-node-alias-prefix" - -// SpireTrustDomainDefault is the default value for the SpireTrustDomain -#SpireTrustDomainDefault: "example.org" - -// SpireSocketPathDefault is the default value for the SpireSocketPath -#SpireSocketPathDefault: "unix:///spiffe-workload-api/spire-agent.sock" - -// SpireServerAddrDefault is the default value for the SpireServerAddr -#SpireServerAddrDefault: "spire-server.spire.svc.cluster.local:8081" - -// SpireNodeAliasPrefixDefault is the default value for the SpireNodeAliasPrefix -#SpireNodeAliasPrefixDefault: "/tekton-node/" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/store_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/store_go_gen.cue deleted file mode 100644 index 7c8724f..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/store_go_gen.cue +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/config - -package config - -import sc "github.com/tektoncd/pipeline/pkg/spire/config" - -_#cfgKey: { -} - -// Config holds the collection of configurations that we attach to contexts. -// +k8s:deepcopy-gen=false -#Config: { - Defaults?: null | #Defaults @go(,*Defaults) - FeatureFlags?: null | #FeatureFlags @go(,*FeatureFlags) - Metrics?: null | #Metrics @go(,*Metrics) - SpireConfig?: null | sc.#SpireConfig @go(,*sc.SpireConfig) - Events?: null | #Events @go(,*Events) - Tracing?: null | #Tracing @go(,*Tracing) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/tracing_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/tracing_go_gen.cue deleted file mode 100644 index c763869..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/tracing_go_gen.cue +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/config - -package config - -// tracingEnabledKey is the configmap key which determines if tracing is enabled -_#tracingEnabledKey: "enabled" - -// tracingEndpintKey is the configmap key for tracing api endpoint -_#tracingEndpointKey: "endpoint" - -// DefaultEndpoint is the default destination for sending traces -#DefaultEndpoint: "http://jaeger-collector.jaeger.svc.cluster.local:14268/api/traces" - -// Tracing holds the configurations for tracing -// +k8s:deepcopy-gen=true -#Tracing: { - Enabled: bool - Endpoint: string -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/doc_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/doc_go_gen.cue deleted file mode 100644 index 5799549..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/doc_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis - -// Package apis contains API Schema definitions for the various API groups -package apis diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/constant_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/constant_go_gen.cue deleted file mode 100644 index 4a4536b..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/constant_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline - -package pipeline - -// TektonReservedAnnotationExpr is the expression we use to filter out reserved key in annotation -#TektonReservedAnnotationExpr: "(chains.tekton.dev)/.*" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/controller_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/controller_go_gen.cue deleted file mode 100644 index 3d58b21..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/controller_go_gen.cue +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline - -package pipeline - -// PipelineRunControllerName holds the name of the PipelineRun controller -#PipelineRunControllerName: "PipelineRun" - -// PipelineControllerName holds the name of the Pipeline controller -#PipelineControllerName: "Pipeline" - -// TaskRunControllerName holds the name of the TaskRun controller -#TaskRunControllerName: "TaskRun" - -// TaskControllerName holds the name of the Task controller -#TaskControllerName: "Task" - -// ClusterTaskControllerName holds the name of the Task controller -#ClusterTaskControllerName: "ClusterTask" - -// RunControllerName holds the name of the Custom Task controller -#RunControllerName: "Run" - -// CustomRunControllerName holds the name of the CustomRun controller -#CustomRunControllerName: "CustomRun" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/images_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/images_go_gen.cue deleted file mode 100644 index 024e037..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/images_go_gen.cue +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline - -package pipeline - -// Images holds the images reference for a number of container images used -// across tektoncd pipelines. -#Images: { - // EntrypointImage is container image containing our entrypoint binary. - EntrypointImage: string - - // SidecarLogResultsImage is container image containing the binary that fetches results from the steps and logs it to stdout. - SidecarLogResultsImage: string - - // NopImage is the container image used to kill sidecars. - NopImage: string - - // ShellImage is the container image containing bash shell. - ShellImage: string - - // ShellImageWin is the container image containing powershell. - ShellImageWin: string - - // WorkingDirInitImage is the container image containing our working dir init binary. - WorkingDirInitImage: string -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/internal/checksum/checksum_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/internal/checksum/checksum_go_gen.cue deleted file mode 100644 index 2df5a22..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/internal/checksum/checksum_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/internal/checksum - -package checksum - -// SignatureAnnotation is the key of signature in annotation map -#SignatureAnnotation: "tekton.dev/signature" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/options_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/options_go_gen.cue deleted file mode 100644 index d899edf..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/options_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline - -package pipeline - -// Options holds options passed to the Tekton Pipeline controllers -// typically via command-line flags. -#Options: { - Images: #Images -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/paths_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/paths_go_gen.cue deleted file mode 100644 index 494e1ff..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/paths_go_gen.cue +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline - -package pipeline - -// WorkspaceDir is the root directory used for PipelineResources and (by default) Workspaces -#WorkspaceDir: "/workspace" - -// DefaultResultPath is the path for a task result to create the result file -#DefaultResultPath: "/tekton/results" - -// HomeDir is the HOME directory of PipelineResources -#HomeDir: "/tekton/home" - -// CredsDir is the directory where credentials are placed to meet the legacy credentials -// helpers image (aka "creds-init") contract -#CredsDir: "/tekton/creds" - -// StepsDir is the directory used for a step to store any metadata related to the step -#StepsDir: "/tekton/steps" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/pod/affinity_assitant_template_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/pod/affinity_assitant_template_go_gen.cue deleted file mode 100644 index 08d6162..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/pod/affinity_assitant_template_go_gen.cue +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/pod - -package pod - -import corev1 "k8s.io/api/core/v1" - -// AffinityAssistantTemplate holds pod specific configuration and is a subset -// of the generic pod Template -// +k8s:deepcopy-gen=true -// +k8s:openapi-gen=true -#AffinityAssistantTemplate: { - // NodeSelector is a selector which must be true for the pod to fit on a node. - // Selector which must match a node's labels for the pod to be scheduled on that node. - // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - // +optional - nodeSelector?: {[string]: string} @go(NodeSelector,map[string]string) - - // If specified, the pod's tolerations. - // +optional - // +listType=atomic - tolerations?: [...corev1.#Toleration] @go(Tolerations,[]corev1.Toleration) - - // ImagePullSecrets gives the name of the secret used by the pod to pull the image if specified - // +optional - // +listType=atomic - imagePullSecrets?: [...corev1.#LocalObjectReference] @go(ImagePullSecrets,[]corev1.LocalObjectReference) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/pod/doc_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/pod/doc_go_gen.cue deleted file mode 100644 index 22de627..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/pod/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/pod - -// Package pod contains non-versioned pod configuration -// +k8s:openapi-gen=true -// +gencrdrefdocs:unversionedTypes -// +groupName=tekton.dev -package pod diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/pod/template_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/pod/template_go_gen.cue deleted file mode 100644 index fcbedbf..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/pod/template_go_gen.cue +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/pod - -package pod - -import corev1 "k8s.io/api/core/v1" - -// Template holds pod specific configuration -// +k8s:deepcopy-gen=true -// +k8s:openapi-gen=true -#Template: { - // NodeSelector is a selector which must be true for the pod to fit on a node. - // Selector which must match a node's labels for the pod to be scheduled on that node. - // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - // +optional - nodeSelector?: {[string]: string} @go(NodeSelector,map[string]string) - - // List of environment variables that can be provided to the containers belonging to the pod. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=atomic - env?: [...corev1.#EnvVar] @go(Env,[]corev1.EnvVar) @protobuf(7,bytes,rep) - - // If specified, the pod's tolerations. - // +optional - // +listType=atomic - tolerations?: [...corev1.#Toleration] @go(Tolerations,[]corev1.Toleration) - - // If specified, the pod's scheduling constraints - // +optional - affinity?: null | corev1.#Affinity @go(Affinity,*corev1.Affinity) - - // SecurityContext holds pod-level security attributes and common container settings. - // Optional: Defaults to empty. See type description for default values of each field. - // +optional - securityContext?: null | corev1.#PodSecurityContext @go(SecurityContext,*corev1.PodSecurityContext) - - // List of volumes that can be mounted by containers belonging to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes - // +optional - // +patchMergeKey=name - // +patchStrategy=merge,retainKeys - // +listType=atomic - volumes?: [...corev1.#Volume] @go(Volumes,[]corev1.Volume) @protobuf(1,bytes,rep) - - // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io - // group, which should be used to run this pod. If no RuntimeClass resource - // matches the named class, the pod will not be run. If unset or empty, the - // "legacy" RuntimeClass will be used, which is an implicit class with an - // empty definition that uses the default runtime handler. - // More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md - // This is a beta feature as of Kubernetes v1.14. - // +optional - runtimeClassName?: null | string @go(RuntimeClassName,*string) @protobuf(2,bytes,opt) - - // AutomountServiceAccountToken indicates whether pods running as this - // service account should have an API token automatically mounted. - // +optional - automountServiceAccountToken?: null | bool @go(AutomountServiceAccountToken,*bool) @protobuf(3,varint,opt) - - // Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are - // 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig - // will be merged with the policy selected with DNSPolicy. - // +optional - dnsPolicy?: null | corev1.#DNSPolicy @go(DNSPolicy,*corev1.DNSPolicy) @protobuf(4,bytes,opt,casttype=k8s.io/api/core/v1.DNSPolicy) - - // Specifies the DNS parameters of a pod. - // Parameters specified here will be merged to the generated DNS - // configuration based on DNSPolicy. - // +optional - dnsConfig?: null | corev1.#PodDNSConfig @go(DNSConfig,*corev1.PodDNSConfig) @protobuf(5,bytes,opt) - - // EnableServiceLinks indicates whether information about services should be injected into pod's - // environment variables, matching the syntax of Docker links. - // Optional: Defaults to true. - // +optional - enableServiceLinks?: null | bool @go(EnableServiceLinks,*bool) @protobuf(6,varint,opt) - - // If specified, indicates the pod's priority. "system-node-critical" and - // "system-cluster-critical" are two special keywords which indicate the - // highest priorities with the former being the highest priority. Any other - // name must be defined by creating a PriorityClass object with that name. - // If not specified, the pod priority will be default or zero if there is no - // default. - // +optional - priorityClassName?: null | string @go(PriorityClassName,*string) @protobuf(7,bytes,opt) - - // SchedulerName specifies the scheduler to be used to dispatch the Pod - // +optional - schedulerName?: string @go(SchedulerName) - - // ImagePullSecrets gives the name of the secret used by the pod to pull the image if specified - // +optional - // +listType=atomic - imagePullSecrets?: [...corev1.#LocalObjectReference] @go(ImagePullSecrets,[]corev1.LocalObjectReference) - - // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts - // file if specified. This is only valid for non-hostNetwork pods. - // +optional - // +listType=atomic - hostAliases?: [...corev1.#HostAlias] @go(HostAliases,[]corev1.HostAlias) - - // HostNetwork specifies whether the pod may use the node network namespace - // +optional - hostNetwork?: bool @go(HostNetwork) - - // TopologySpreadConstraints controls how Pods are spread across your cluster among - // failure-domains such as regions, zones, nodes, and other user-defined topology domains. - // +optional - // +listType=atomic - topologySpreadConstraints?: [...corev1.#TopologySpreadConstraint] @go(TopologySpreadConstraints,[]corev1.TopologySpreadConstraint) -} - -// PodTemplate holds pod specific configuration -// -//nolint:revive -#PodTemplate: #Template - -// AAPodTemplate holds pod specific configuration for the affinity-assistant -#AAPodTemplate: #AffinityAssistantTemplate diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/register_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/register_go_gen.cue deleted file mode 100644 index 8d8060d..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/register_go_gen.cue +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline - -package pipeline - -// GroupName is the Kubernetes resource group name for Pipeline types. -#GroupName: "tekton.dev" - -// ClusterTaskLabelKey is used as the label identifier for a ClusterTask -#ClusterTaskLabelKey: "tekton.dev/clusterTask" - -// TaskLabelKey is used as the label identifier for a Task -#TaskLabelKey: "tekton.dev/task" - -// TaskRunLabelKey is used as the label identifier for a TaskRun -#TaskRunLabelKey: "tekton.dev/taskRun" - -// PipelineLabelKey is used as the label identifier for a Pipeline -#PipelineLabelKey: "tekton.dev/pipeline" - -// PipelineRunLabelKey is used as the label identifier for a PipelineRun -#PipelineRunLabelKey: "tekton.dev/pipelineRun" - -// PipelineTaskLabelKey is used as the label identifier for a PipelineTask -#PipelineTaskLabelKey: "tekton.dev/pipelineTask" - -// RunKey is used as the label identifier for a Run -#RunKey: "tekton.dev/run" - -// CustomRunKey is used as the label identifier for a CustomRun -#CustomRunKey: "tekton.dev/customRun" - -// MemberOfLabelKey is used as the label identifier for a PipelineTask -// Set to Tasks/Finally depending on the position of the PipelineTask -#MemberOfLabelKey: "tekton.dev/memberOf" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/sidecarlogs_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/sidecarlogs_go_gen.cue deleted file mode 100644 index de34ffe..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/sidecarlogs_go_gen.cue +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline - -package pipeline - -// ReservedResultsSidecarName is the name of the results sidecar that outputs the results to stdout -// when the results-from feature-flag is set to "sidecar-logs". -#ReservedResultsSidecarName: "tekton-log-results" - -// ReservedResultsSidecarContainerName is the name of the results sidecar container that is injected -// by the reconciler. -#ReservedResultsSidecarContainerName: "sidecar-tekton-log-results" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/container_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/container_types_go_gen.cue deleted file mode 100644 index efef22b..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/container_types_go_gen.cue +++ /dev/null @@ -1,469 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -// Copyright 2022 The Tekton Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -package v1 - -import ( - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// Step runs a subcomponent of a Task -#Step: { - // Name of the Step specified as a DNS_LABEL. - // Each Step in a Task must have a unique name. - name: string @go(Name) @protobuf(1,bytes,opt) - - // Docker image name. - // More info: https://kubernetes.io/docs/concepts/containers/images - // +optional - image?: string @go(Image) @protobuf(2,bytes,opt) - - // Entrypoint array. Not executed within a shell. - // The image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - // +listType=atomic - command?: [...string] @go(Command,[]string) @protobuf(3,bytes,rep) - - // Arguments to the entrypoint. - // The image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - // +listType=atomic - args?: [...string] @go(Args,[]string) @protobuf(4,bytes,rep) - - // Step's working directory. - // If not specified, the container runtime's default will be used, which - // might be configured in the container image. - // Cannot be updated. - // +optional - workingDir?: string @go(WorkingDir) @protobuf(5,bytes,opt) - - // List of sources to populate environment variables in the Step. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the Step is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - // +listType=atomic - envFrom?: [...corev1.#EnvFromSource] @go(EnvFrom,[]corev1.EnvFromSource) @protobuf(19,bytes,rep) - - // List of environment variables to set in the Step. - // Cannot be updated. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=atomic - env?: [...corev1.#EnvVar] @go(Env,[]corev1.EnvVar) @protobuf(7,bytes,rep) - - // ComputeResources required by this Step. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - // +optional - computeResources?: corev1.#ResourceRequirements @go(ComputeResources) @protobuf(8,bytes,opt) - - // Volumes to mount into the Step's filesystem. - // Cannot be updated. - // +optional - // +patchMergeKey=mountPath - // +patchStrategy=merge - // +listType=atomic - volumeMounts?: [...corev1.#VolumeMount] @go(VolumeMounts,[]corev1.VolumeMount) @protobuf(9,bytes,rep) - - // volumeDevices is the list of block devices to be used by the Step. - // +patchMergeKey=devicePath - // +patchStrategy=merge - // +optional - // +listType=atomic - volumeDevices?: [...corev1.#VolumeDevice] @go(VolumeDevices,[]corev1.VolumeDevice) @protobuf(21,bytes,rep) - - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - imagePullPolicy?: corev1.#PullPolicy @go(ImagePullPolicy) @protobuf(14,bytes,opt,casttype=PullPolicy) - - // SecurityContext defines the security options the Step should be run with. - // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - securityContext?: null | corev1.#SecurityContext @go(SecurityContext,*corev1.SecurityContext) @protobuf(15,bytes,opt) - - // Script is the contents of an executable file to execute. - // - // If Script is not empty, the Step cannot have an Command and the Args will be passed to the Script. - // +optional - script?: string @go(Script) - - // Timeout is the time after which the step times out. Defaults to never. - // Refer to Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration - // +optional - timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) - - // This is an alpha field. You must set the "enable-api-fields" feature flag to "alpha" - // for this field to be supported. - // - // Workspaces is a list of workspaces from the Task that this Step wants - // exclusive access to. Adding a workspace to this list means that any - // other Step or Sidecar that does not also request this Workspace will - // not have access to it. - // +optional - // +listType=atomic - workspaces?: [...#WorkspaceUsage] @go(Workspaces,[]WorkspaceUsage) - - // OnError defines the exiting behavior of a container on error - // can be set to [ continue | stopAndFail ] - onError?: #OnErrorType @go(OnError) - - // Stores configuration for the stdout stream of the step. - // +optional - stdoutConfig?: null | #StepOutputConfig @go(StdoutConfig,*StepOutputConfig) - - // Stores configuration for the stderr stream of the step. - // +optional - stderrConfig?: null | #StepOutputConfig @go(StderrConfig,*StepOutputConfig) -} - -// OnErrorType defines a list of supported exiting behavior of a container on error -#OnErrorType: string // #enumOnErrorType - -#enumOnErrorType: - #StopAndFail | - #Continue - -// StopAndFail indicates exit the taskRun if the container exits with non-zero exit code -#StopAndFail: #OnErrorType & "stopAndFail" - -// Continue indicates continue executing the rest of the steps irrespective of the container exit code -#Continue: #OnErrorType & "continue" - -// StepOutputConfig stores configuration for a step output stream. -#StepOutputConfig: { - // Path to duplicate stdout stream to on container's local filesystem. - // +optional - path?: string @go(Path) -} - -// StepTemplate is a template for a Step -#StepTemplate: { - // Image reference name. - // More info: https://kubernetes.io/docs/concepts/containers/images - // This field is optional to allow higher level config management to default or override - // container images in workload controllers like Deployments and StatefulSets. - // +optional - image?: string @go(Image) @protobuf(2,bytes,opt) - - // Entrypoint array. Not executed within a shell. - // The image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the Step's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - // +listType=atomic - command?: [...string] @go(Command,[]string) @protobuf(3,bytes,rep) - - // Arguments to the entrypoint. - // The image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the Step's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - // +listType=atomic - args?: [...string] @go(Args,[]string) @protobuf(4,bytes,rep) - - // Step's working directory. - // If not specified, the container runtime's default will be used, which - // might be configured in the container image. - // Cannot be updated. - // +optional - workingDir?: string @go(WorkingDir) @protobuf(5,bytes,opt) - - // List of sources to populate environment variables in the Step. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the Step is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - // +listType=atomic - envFrom?: [...corev1.#EnvFromSource] @go(EnvFrom,[]corev1.EnvFromSource) @protobuf(19,bytes,rep) - - // List of environment variables to set in the Step. - // Cannot be updated. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=atomic - env?: [...corev1.#EnvVar] @go(Env,[]corev1.EnvVar) @protobuf(7,bytes,rep) - - // ComputeResources required by this Step. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - // +optional - computeResources?: corev1.#ResourceRequirements @go(ComputeResources) @protobuf(8,bytes,opt) - - // Volumes to mount into the Step's filesystem. - // Cannot be updated. - // +optional - // +patchMergeKey=mountPath - // +patchStrategy=merge - // +listType=atomic - volumeMounts?: [...corev1.#VolumeMount] @go(VolumeMounts,[]corev1.VolumeMount) @protobuf(9,bytes,rep) - - // volumeDevices is the list of block devices to be used by the Step. - // +patchMergeKey=devicePath - // +patchStrategy=merge - // +optional - // +listType=atomic - volumeDevices?: [...corev1.#VolumeDevice] @go(VolumeDevices,[]corev1.VolumeDevice) @protobuf(21,bytes,rep) - - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - imagePullPolicy?: corev1.#PullPolicy @go(ImagePullPolicy) @protobuf(14,bytes,opt,casttype=PullPolicy) - - // SecurityContext defines the security options the Step should be run with. - // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - securityContext?: null | corev1.#SecurityContext @go(SecurityContext,*corev1.SecurityContext) @protobuf(15,bytes,opt) -} - -// Sidecar has nearly the same data structure as Step but does not have the ability to timeout. -#Sidecar: { - // Name of the Sidecar specified as a DNS_LABEL. - // Each Sidecar in a Task must have a unique name (DNS_LABEL). - // Cannot be updated. - name: string @go(Name) @protobuf(1,bytes,opt) - - // Image reference name. - // More info: https://kubernetes.io/docs/concepts/containers/images - // This field is optional to allow higher level config management to default or override - // container images in workload controllers like Deployments and StatefulSets. - // +optional - image?: string @go(Image) @protobuf(2,bytes,opt) - - // Entrypoint array. Not executed within a shell. - // The image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the Sidecar's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - // +listType=atomic - command?: [...string] @go(Command,[]string) @protobuf(3,bytes,rep) - - // Arguments to the entrypoint. - // The image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the Sidecar's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - // +listType=atomic - args?: [...string] @go(Args,[]string) @protobuf(4,bytes,rep) - - // Sidecar's working directory. - // If not specified, the container runtime's default will be used, which - // might be configured in the container image. - // Cannot be updated. - // +optional - workingDir?: string @go(WorkingDir) @protobuf(5,bytes,opt) - - // List of ports to expose from the Sidecar. Exposing a port here gives - // the system additional information about the network connections a - // container uses, but is primarily informational. Not specifying a port here - // DOES NOT prevent that port from being exposed. Any port which is - // listening on the default "0.0.0.0" address inside a container will be - // accessible from the network. - // Cannot be updated. - // +optional - // +patchMergeKey=containerPort - // +patchStrategy=merge - // +listType=map - // +listMapKey=containerPort - // +listMapKey=protocol - ports?: [...corev1.#ContainerPort] @go(Ports,[]corev1.ContainerPort) @protobuf(6,bytes,rep) - - // List of sources to populate environment variables in the Sidecar. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - // +listType=atomic - envFrom?: [...corev1.#EnvFromSource] @go(EnvFrom,[]corev1.EnvFromSource) @protobuf(19,bytes,rep) - - // List of environment variables to set in the Sidecar. - // Cannot be updated. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=atomic - env?: [...corev1.#EnvVar] @go(Env,[]corev1.EnvVar) @protobuf(7,bytes,rep) - - // ComputeResources required by this Sidecar. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - // +optional - computeResources?: corev1.#ResourceRequirements @go(ComputeResources) @protobuf(8,bytes,opt) - - // Volumes to mount into the Sidecar's filesystem. - // Cannot be updated. - // +optional - // +patchMergeKey=mountPath - // +patchStrategy=merge - // +listType=atomic - volumeMounts?: [...corev1.#VolumeMount] @go(VolumeMounts,[]corev1.VolumeMount) @protobuf(9,bytes,rep) - - // volumeDevices is the list of block devices to be used by the Sidecar. - // +patchMergeKey=devicePath - // +patchStrategy=merge - // +optional - // +listType=atomic - volumeDevices?: [...corev1.#VolumeDevice] @go(VolumeDevices,[]corev1.VolumeDevice) @protobuf(21,bytes,rep) - - // Periodic probe of Sidecar liveness. - // Container will be restarted if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - livenessProbe?: null | corev1.#Probe @go(LivenessProbe,*corev1.Probe) @protobuf(10,bytes,opt) - - // Periodic probe of Sidecar service readiness. - // Container will be removed from service endpoints if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - readinessProbe?: null | corev1.#Probe @go(ReadinessProbe,*corev1.Probe) @protobuf(11,bytes,opt) - - // StartupProbe indicates that the Pod the Sidecar is running in has successfully initialized. - // If specified, no other probes are executed until this completes successfully. - // If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. - // This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, - // when it might take a long time to load data or warm a cache, than during steady-state operation. - // This cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - startupProbe?: null | corev1.#Probe @go(StartupProbe,*corev1.Probe) @protobuf(22,bytes,opt) - - // Actions that the management system should take in response to Sidecar lifecycle events. - // Cannot be updated. - // +optional - lifecycle?: null | corev1.#Lifecycle @go(Lifecycle,*corev1.Lifecycle) @protobuf(12,bytes,opt) - - // Optional: Path at which the file to which the Sidecar's termination message - // will be written is mounted into the Sidecar's filesystem. - // Message written is intended to be brief final status, such as an assertion failure message. - // Will be truncated by the node if greater than 4096 bytes. The total message length across - // all containers will be limited to 12kb. - // Defaults to /dev/termination-log. - // Cannot be updated. - // +optional - terminationMessagePath?: string @go(TerminationMessagePath) @protobuf(13,bytes,opt) - - // Indicate how the termination message should be populated. File will use the contents of - // terminationMessagePath to populate the Sidecar status message on both success and failure. - // FallbackToLogsOnError will use the last chunk of Sidecar log output if the termination - // message file is empty and the Sidecar exited with an error. - // The log output is limited to 2048 bytes or 80 lines, whichever is smaller. - // Defaults to File. - // Cannot be updated. - // +optional - terminationMessagePolicy?: corev1.#TerminationMessagePolicy @go(TerminationMessagePolicy) @protobuf(20,bytes,opt,casttype=TerminationMessagePolicy) - - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - imagePullPolicy?: corev1.#PullPolicy @go(ImagePullPolicy) @protobuf(14,bytes,opt,casttype=PullPolicy) - - // SecurityContext defines the security options the Sidecar should be run with. - // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - securityContext?: null | corev1.#SecurityContext @go(SecurityContext,*corev1.SecurityContext) @protobuf(15,bytes,opt) - - // Whether this Sidecar should allocate a buffer for stdin in the container runtime. If this - // is not set, reads from stdin in the Sidecar will always result in EOF. - // Default is false. - // +optional - stdin?: bool @go(Stdin) @protobuf(16,varint,opt) - - // Whether the container runtime should close the stdin channel after it has been opened by - // a single attach. When stdin is true the stdin stream will remain open across multiple attach - // sessions. If stdinOnce is set to true, stdin is opened on Sidecar start, is empty until the - // first client attaches to stdin, and then remains open and accepts data until the client disconnects, - // at which time stdin is closed and remains closed until the Sidecar is restarted. If this - // flag is false, a container processes that reads from stdin will never receive an EOF. - // Default is false - // +optional - stdinOnce?: bool @go(StdinOnce) @protobuf(17,varint,opt) - - // Whether this Sidecar should allocate a TTY for itself, also requires 'stdin' to be true. - // Default is false. - // +optional - tty?: bool @go(TTY) @protobuf(18,varint,opt) - - // Script is the contents of an executable file to execute. - // - // If Script is not empty, the Step cannot have an Command or Args. - // +optional - script?: string @go(Script) - - // This is an alpha field. You must set the "enable-api-fields" feature flag to "alpha" - // for this field to be supported. - // - // Workspaces is a list of workspaces from the Task that this Sidecar wants - // exclusive access to. Adding a workspace to this list means that any - // other Step or Sidecar that does not also request this Workspace will - // not have access to it. - // +optional - // +listType=atomic - workspaces?: [...#WorkspaceUsage] @go(Workspaces,[]WorkspaceUsage) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/doc_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/doc_go_gen.cue deleted file mode 100644 index fd24242..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/doc_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -// Package v1 contains API Schema definitions for the pipeline v1 API group -// +k8s:openapi-gen=true -// +k8s:deepcopy-gen=package,register -// +k8s:conversion-gen=github.com/tektoncd/pipeline/pkg/apis/pipeline -// +k8s:defaulter-gen=TypeMeta -// +groupName=tekton.dev -package v1 diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/matrix_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/matrix_types_go_gen.cue deleted file mode 100644 index f4a2b39..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/matrix_types_go_gen.cue +++ /dev/null @@ -1,40 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -// Matrix is used to fan out Tasks in a Pipeline -#Matrix: { - // Params is a list of parameters used to fan out the pipelineTask - // Params takes only `Parameters` of type `"array"` - // Each array element is supplied to the `PipelineTask` by substituting `params` of type `"string"` in the underlying `Task`. - // The names of the `params` in the `Matrix` must match the names of the `params` in the underlying `Task` that they will be substituting. - // +listType=atomic - params?: #Params @go(Params) - - // Include is a list of IncludeParams which allows passing in specific combinations of Parameters into the Matrix. - // +optional - // +listType=atomic - include?: #IncludeParamsList @go(Include) -} - -// IncludeParamsList is a list of IncludeParams which allows passing in specific combinations of Parameters into the Matrix. -#IncludeParamsList: [...#IncludeParams] - -// IncludeParams allows passing in a specific combinations of Parameters into the Matrix. -#IncludeParams: { - // Name the specified combination - name?: string @go(Name) - - // Params takes only `Parameters` of type `"string"` - // The names of the `params` must match the names of the `params` in the underlying `Task` - // +listType=atomic - params?: #Params @go(Params) -} - -// Combination is a map, mainly defined to hold a single combination from a Matrix with key as param.Name and value as param.Value -#Combination: {[string]: string} - -// Combinations is a Combination list -#Combinations: [...#Combination] diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/param_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/param_types_go_gen.cue deleted file mode 100644 index 121a75e..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/param_types_go_gen.cue +++ /dev/null @@ -1,70 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -#ParamsPrefix: "params" - -// ParamSpec defines arbitrary parameters needed beyond typed inputs (such as -// resources). Parameter values are provided by users as inputs on a TaskRun -// or PipelineRun. -#ParamSpec: { - // Name declares the name by which a parameter is referenced. - name: string @go(Name) - - // Type is the user-specified type of the parameter. The possible types - // are currently "string", "array" and "object", and "string" is the default. - // +optional - type?: #ParamType @go(Type) - - // Description is a user-facing description of the parameter that may be - // used to populate a UI. - // +optional - description?: string @go(Description) - - // Properties is the JSON Schema properties to support key-value pairs parameter. - // +optional - properties?: {[string]: #PropertySpec} @go(Properties,map[string]PropertySpec) - - // Default is the value a parameter takes if no input value is supplied. If - // default is set, a Task may be executed without a supplied value for the - // parameter. - // +optional - default?: null | #ParamValue @go(Default,*ParamValue) -} - -// ParamSpecs is a list of ParamSpec -#ParamSpecs: [...#ParamSpec] - -// PropertySpec defines the struct for object keys -#PropertySpec: { - type?: #ParamType @go(Type) -} - -// Param declares an ParamValues to use for the parameter called name. -#Param: { - name: string @go(Name) - value: #ParamValue @go(Value) -} - -// Params is a list of Param -#Params: [...#Param] - -// ParamType indicates the type of an input parameter; -// Used to distinguish between a single string and an array of strings. -#ParamType: string // #enumParamType - -#enumParamType: - #ParamTypeString | - #ParamTypeArray | - #ParamTypeObject - -#ParamTypeString: #ParamType & "string" -#ParamTypeArray: #ParamType & "array" -#ParamTypeObject: #ParamType & "object" - -// ParamValue is a type that can hold a single string, string array, or string map. -// Used in JSON unmarshalling so that a single JSON field can accept -// either an individual string or an array of strings. -#ParamValue: _ diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/pipeline_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/pipeline_types_go_gen.cue deleted file mode 100644 index 2b81182..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/pipeline_types_go_gen.cue +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -// PipelineTasksAggregateStatus is a param representing aggregate status of all dag pipelineTasks -#PipelineTasksAggregateStatus: "tasks.status" - -// PipelineTasks is a value representing a task is a member of "tasks" section of the pipeline -#PipelineTasks: "tasks" - -// PipelineFinallyTasks is a value representing a task is a member of "finally" section of the pipeline -#PipelineFinallyTasks: "finally" - -// Pipeline describes a list of Tasks to execute. It expresses how outputs -// of tasks feed into inputs of subsequent tasks. -// +k8s:openapi-gen=true -#Pipeline: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // Spec holds the desired state of the Pipeline from the client - // +optional - spec: #PipelineSpec @go(Spec) -} - -// PipelineSpec defines the desired state of Pipeline. -#PipelineSpec: { - // DisplayName is a user-facing name of the pipeline that may be - // used to populate a UI. - // +optional - displayName?: string @go(DisplayName) - - // Description is a user-facing description of the pipeline that may be - // used to populate a UI. - // +optional - description?: string @go(Description) - - // Tasks declares the graph of Tasks that execute when this Pipeline is run. - // +listType=atomic - tasks?: [...#PipelineTask] @go(Tasks,[]PipelineTask) - - // Params declares a list of input parameters that must be supplied when - // this Pipeline is run. - // +listType=atomic - params?: #ParamSpecs @go(Params) - - // Workspaces declares a set of named workspaces that are expected to be - // provided by a PipelineRun. - // +optional - // +listType=atomic - workspaces?: [...#PipelineWorkspaceDeclaration] @go(Workspaces,[]PipelineWorkspaceDeclaration) - - // Results are values that this pipeline can output once run - // +optional - // +listType=atomic - results?: [...#PipelineResult] @go(Results,[]PipelineResult) - - // Finally declares the list of Tasks that execute just before leaving the Pipeline - // i.e. either after all Tasks are finished executing successfully - // or after a failure which would result in ending the Pipeline - // +listType=atomic - finally?: [...#PipelineTask] @go(Finally,[]PipelineTask) -} - -// PipelineResult used to describe the results of a pipeline -#PipelineResult: { - // Name the given name - name: string @go(Name) - - // Type is the user-specified type of the result. - // The possible types are 'string', 'array', and 'object', with 'string' as the default. - // 'array' and 'object' types are alpha features. - type?: #ResultsType @go(Type) - - // Description is a human-readable description of the result - // +optional - description: string @go(Description) - - // Value the expression used to retrieve the value - value: #ParamValue @go(Value) -} - -// PipelineTaskMetadata contains the labels or annotations for an EmbeddedTask -#PipelineTaskMetadata: { - // +optional - labels?: {[string]: string} @go(Labels,map[string]string) - - // +optional - annotations?: {[string]: string} @go(Annotations,map[string]string) -} - -// EmbeddedTask is used to define a Task inline within a Pipeline's PipelineTasks. -#EmbeddedTask: { - runtime.#TypeMeta - - // Spec is a specification of a custom task - // +optional - spec?: runtime.#RawExtension @go(Spec) - - // +optional - metadata?: #PipelineTaskMetadata @go(Metadata) - - #TaskSpec -} - -// PipelineTask defines a task in a Pipeline, passing inputs from both -// Params and from the output of previous tasks. -#PipelineTask: { - // Name is the name of this task within the context of a Pipeline. Name is - // used as a coordinate with the `from` and `runAfter` fields to establish - // the execution order of tasks relative to one another. - name?: string @go(Name) - - // DisplayName is the display name of this task within the context of a Pipeline. - // This display name may be used to populate a UI. - // +optional - displayName?: string @go(DisplayName) - - // Description is the description of this task within the context of a Pipeline. - // This description may be used to populate a UI. - // +optional - description?: string @go(Description) - - // TaskRef is a reference to a task definition. - // +optional - taskRef?: null | #TaskRef @go(TaskRef,*TaskRef) - - // TaskSpec is a specification of a task - // +optional - taskSpec?: null | #EmbeddedTask @go(TaskSpec,*EmbeddedTask) - - // When is a list of when expressions that need to be true for the task to run - // +optional - when?: #WhenExpressions @go(When) - - // Retries represents how many times this task should be retried in case of task failure: ConditionSucceeded set to False - // +optional - retries?: int @go(Retries) - - // RunAfter is the list of PipelineTask names that should be executed before - // this Task executes. (Used to force a specific ordering in graph execution.) - // +optional - // +listType=atomic - runAfter?: [...string] @go(RunAfter,[]string) - - // Parameters declares parameters passed to this task. - // +optional - // +listType=atomic - params?: #Params @go(Params) - - // Matrix declares parameters used to fan out this task. - // +optional - matrix?: null | #Matrix @go(Matrix,*Matrix) - - // Workspaces maps workspaces from the pipeline spec to the workspaces - // declared in the Task. - // +optional - // +listType=atomic - workspaces?: [...#WorkspacePipelineTaskBinding] @go(Workspaces,[]WorkspacePipelineTaskBinding) - - // Time after which the TaskRun times out. Defaults to 1 hour. - // Refer Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration - // +optional - timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) - - // PipelineRef is a reference to a pipeline definition - // Note: PipelineRef is in preview mode and not yet supported - // +optional - pipelineRef?: null | #PipelineRef @go(PipelineRef,*PipelineRef) - - // PipelineSpec is a specification of a pipeline - // Note: PipelineSpec is in preview mode and not yet supported - // +optional - pipelineSpec?: null | #PipelineSpec @go(PipelineSpec,*PipelineSpec) -} - -// PipelineTaskList is a list of PipelineTasks -#PipelineTaskList: [...#PipelineTask] - -// PipelineTaskParam is used to provide arbitrary string parameters to a Task. -#PipelineTaskParam: { - name: string @go(Name) - value: string @go(Value) -} - -// PipelineList contains a list of Pipeline -#PipelineList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Pipeline] @go(Items,[]Pipeline) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/pipeline_validation_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/pipeline_validation_go_gen.cue deleted file mode 100644 index 93b3ade..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/pipeline_validation_go_gen.cue +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -_#taskRef: "taskRef" -_#taskSpec: "taskSpec" -_#pipelineRef: "pipelineRef" -_#pipelineSpec: "pipelineSpec" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/pipelineref_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/pipelineref_types_go_gen.cue deleted file mode 100644 index 844504d..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/pipelineref_types_go_gen.cue +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -// PipelineRef can be used to refer to a specific instance of a Pipeline. -#PipelineRef: { - // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - name?: string @go(Name) - - // API version of the referent - // +optional - apiVersion?: string @go(APIVersion) - - // ResolverRef allows referencing a Pipeline in a remote location - // like a git repo. This field is only supported when the alpha - // feature gate is enabled. - // +optional - ResolverRef?: #ResolverRef -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/pipelinerun_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/pipelinerun_types_go_gen.cue deleted file mode 100644 index 7e7f792..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/pipelinerun_types_go_gen.cue +++ /dev/null @@ -1,465 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - duckv1 "knative.dev/pkg/apis/duck/v1" - "k8s.io/apimachinery/pkg/runtime" - runv1beta1 "github.com/tektoncd/pipeline/pkg/apis/run/v1beta1" - "github.com/tektoncd/pipeline/pkg/apis/pipeline/pod" - corev1 "k8s.io/api/core/v1" -) - -// PipelineRun represents a single execution of a Pipeline. PipelineRuns are how -// the graph of Tasks declared in a Pipeline are executed; they specify inputs -// to Pipelines such as parameter values and capture operational aspects of the -// Tasks execution such as service account and tolerations. Creating a -// PipelineRun creates TaskRuns for Tasks in the referenced Pipeline. -// -// +k8s:openapi-gen=true -#PipelineRun: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +optional - spec?: #PipelineRunSpec @go(Spec) - - // +optional - status?: #PipelineRunStatus @go(Status) -} - -// PipelineRunSpec defines the desired state of PipelineRun -#PipelineRunSpec: { - // +optional - pipelineRef?: null | #PipelineRef @go(PipelineRef,*PipelineRef) - - // +optional - pipelineSpec?: null | #PipelineSpec @go(PipelineSpec,*PipelineSpec) - - // Params is a list of parameter names and values. - // +listType=atomic - params?: #Params @go(Params) - - // Used for cancelling a pipelinerun (and maybe more later on) - // +optional - status?: #PipelineRunSpecStatus @go(Status) - - // Time after which the Pipeline times out. - // Currently three keys are accepted in the map - // pipeline, tasks and finally - // with Timeouts.pipeline >= Timeouts.tasks + Timeouts.finally - // +optional - timeouts?: null | #TimeoutFields @go(Timeouts,*TimeoutFields) - - // TaskRunTemplate represent template of taskrun - // +optional - taskRunTemplate?: #PipelineTaskRunTemplate @go(TaskRunTemplate) - - // Workspaces holds a set of workspace bindings that must match names - // with those declared in the pipeline. - // +optional - // +listType=atomic - workspaces?: [...#WorkspaceBinding] @go(Workspaces,[]WorkspaceBinding) - - // TaskRunSpecs holds a set of runtime specs - // +optional - // +listType=atomic - taskRunSpecs?: [...#PipelineTaskRunSpec] @go(TaskRunSpecs,[]PipelineTaskRunSpec) -} - -// TimeoutFields allows granular specification of pipeline, task, and finally timeouts -#TimeoutFields: { - // Pipeline sets the maximum allowed duration for execution of the entire pipeline. The sum of individual timeouts for tasks and finally must not exceed this value. - pipeline?: null | metav1.#Duration @go(Pipeline,*metav1.Duration) - - // Tasks sets the maximum allowed duration of this pipeline's tasks - tasks?: null | metav1.#Duration @go(Tasks,*metav1.Duration) - - // Finally sets the maximum allowed duration of this pipeline's finally - finally?: null | metav1.#Duration @go(Finally,*metav1.Duration) -} - -// PipelineRunSpecStatus defines the pipelinerun spec status the user can provide -#PipelineRunSpecStatus: string - -// PipelineRunSpecStatusCancelled indicates that the user wants to cancel the task, -// if not already cancelled or terminated -#PipelineRunSpecStatusCancelled: "Cancelled" - -// PipelineRunSpecStatusCancelledRunFinally indicates that the user wants to cancel the pipeline run, -// if not already cancelled or terminated, but ensure finally is run normally -#PipelineRunSpecStatusCancelledRunFinally: "CancelledRunFinally" - -// PipelineRunSpecStatusStoppedRunFinally indicates that the user wants to stop the pipeline run, -// wait for already running tasks to be completed and run finally -// if not already cancelled or terminated -#PipelineRunSpecStatusStoppedRunFinally: "StoppedRunFinally" - -// PipelineRunSpecStatusPending indicates that the user wants to postpone starting a PipelineRun -// until some condition is met -#PipelineRunSpecStatusPending: "PipelineRunPending" - -// PipelineRunStatus defines the observed state of PipelineRun -#PipelineRunStatus: { - duckv1.#Status - - #PipelineRunStatusFields -} - -// PipelineRunReason represents a reason for the pipeline run "Succeeded" condition -#PipelineRunReason: string // #enumPipelineRunReason - -#enumPipelineRunReason: - #PipelineRunReasonStarted | - #PipelineRunReasonRunning | - #PipelineRunReasonSuccessful | - #PipelineRunReasonCompleted | - #PipelineRunReasonFailed | - #PipelineRunReasonCancelled | - #PipelineRunReasonPending | - #PipelineRunReasonTimedOut | - #PipelineRunReasonStopping | - #PipelineRunReasonCancelledRunningFinally | - #PipelineRunReasonStoppedRunningFinally | - #PipelineRunReasonCouldntGetPipeline | - #PipelineRunReasonInvalidBindings | - #PipelineRunReasonInvalidWorkspaceBinding | - #PipelineRunReasonInvalidTaskRunSpec | - #PipelineRunReasonParameterTypeMismatch | - #PipelineRunReasonObjectParameterMissKeys | - #PipelineRunReasonParamArrayIndexingInvalid | - #PipelineRunReasonCouldntGetTask | - #PipelineRunReasonParameterMissing | - #PipelineRunReasonFailedValidation | - #PipelineRunReasonInvalidGraph | - #PipelineRunReasonCouldntCancel | - #PipelineRunReasonCouldntTimeOut | - #PipelineRunReasonInvalidMatrixParameterTypes | - #PipelineRunReasonInvalidTaskResultReference | - #PipelineRunReasonRequiredWorkspaceMarkedOptional | - #PipelineRunReasonResolvingPipelineRef | - #PipelineRunReasonResourceVerificationFailed | - #PipelineRunReasonCreateRunFailed - -// PipelineRunReasonStarted is the reason set when the PipelineRun has just started -#PipelineRunReasonStarted: #PipelineRunReason & "Started" - -// PipelineRunReasonRunning is the reason set when the PipelineRun is running -#PipelineRunReasonRunning: #PipelineRunReason & "Running" - -// PipelineRunReasonSuccessful is the reason set when the PipelineRun completed successfully -#PipelineRunReasonSuccessful: #PipelineRunReason & "Succeeded" - -// PipelineRunReasonCompleted is the reason set when the PipelineRun completed successfully with one or more skipped Tasks -#PipelineRunReasonCompleted: #PipelineRunReason & "Completed" - -// PipelineRunReasonFailed is the reason set when the PipelineRun completed with a failure -#PipelineRunReasonFailed: #PipelineRunReason & "Failed" - -// PipelineRunReasonCancelled is the reason set when the PipelineRun cancelled by the user -// This reason may be found with a corev1.ConditionFalse status, if the cancellation was processed successfully -// This reason may be found with a corev1.ConditionUnknown status, if the cancellation is being processed or failed -#PipelineRunReasonCancelled: #PipelineRunReason & "Cancelled" - -// PipelineRunReasonPending is the reason set when the PipelineRun is in the pending state -#PipelineRunReasonPending: #PipelineRunReason & "PipelineRunPending" - -// PipelineRunReasonTimedOut is the reason set when the PipelineRun has timed out -#PipelineRunReasonTimedOut: #PipelineRunReason & "PipelineRunTimeout" - -// PipelineRunReasonStopping indicates that no new Tasks will be scheduled by the controller, and the -// pipeline will stop once all running tasks complete their work -#PipelineRunReasonStopping: #PipelineRunReason & "PipelineRunStopping" - -// PipelineRunReasonCancelledRunningFinally indicates that pipeline has been gracefully cancelled -// and no new Tasks will be scheduled by the controller, but final tasks are now running -#PipelineRunReasonCancelledRunningFinally: #PipelineRunReason & "CancelledRunningFinally" - -// PipelineRunReasonStoppedRunningFinally indicates that pipeline has been gracefully stopped -// and no new Tasks will be scheduled by the controller, but final tasks are now running -#PipelineRunReasonStoppedRunningFinally: #PipelineRunReason & "StoppedRunningFinally" - -// ReasonCouldntGetPipeline indicates that the reason for the failure status is that the -// associated Pipeline couldn't be retrieved -#PipelineRunReasonCouldntGetPipeline: #PipelineRunReason & "CouldntGetPipeline" - -// ReasonInvalidBindings indicates that the reason for the failure status is that the -// PipelineResources bound in the PipelineRun didn't match those declared in the Pipeline -#PipelineRunReasonInvalidBindings: #PipelineRunReason & "InvalidPipelineResourceBindings" - -// ReasonInvalidWorkspaceBinding indicates that a Pipeline expects a workspace but a -// PipelineRun has provided an invalid binding. -#PipelineRunReasonInvalidWorkspaceBinding: #PipelineRunReason & "InvalidWorkspaceBindings" - -// ReasonInvalidTaskRunSpec indicates that PipelineRun.Spec.TaskRunSpecs[].PipelineTaskName is defined with -// a not exist taskName in pipelineSpec. -#PipelineRunReasonInvalidTaskRunSpec: #PipelineRunReason & "InvalidTaskRunSpecs" - -// ReasonParameterTypeMismatch indicates that the reason for the failure status is that -// parameter(s) declared in the PipelineRun do not have the some declared type as the -// parameters(s) declared in the Pipeline that they are supposed to override. -#PipelineRunReasonParameterTypeMismatch: #PipelineRunReason & "ParameterTypeMismatch" - -// ReasonObjectParameterMissKeys indicates that the object param value provided from PipelineRun spec -// misses some keys required for the object param declared in Pipeline spec. -#PipelineRunReasonObjectParameterMissKeys: #PipelineRunReason & "ObjectParameterMissKeys" - -// ReasonParamArrayIndexingInvalid indicates that the use of param array indexing is not under correct api fields feature gate -// or the array is out of bound. -#PipelineRunReasonParamArrayIndexingInvalid: #PipelineRunReason & "ParamArrayIndexingInvalid" - -// ReasonCouldntGetTask indicates that the reason for the failure status is that the -// associated Pipeline's Tasks couldn't all be retrieved -#PipelineRunReasonCouldntGetTask: #PipelineRunReason & "CouldntGetTask" - -// ReasonParameterMissing indicates that the reason for the failure status is that the -// associated PipelineRun didn't provide all the required parameters -#PipelineRunReasonParameterMissing: #PipelineRunReason & "ParameterMissing" - -// ReasonFailedValidation indicates that the reason for failure status is -// that pipelinerun failed runtime validation -#PipelineRunReasonFailedValidation: #PipelineRunReason & "PipelineValidationFailed" - -// ReasonInvalidGraph indicates that the reason for the failure status is that the -// associated Pipeline is an invalid graph (a.k.a wrong order, cycle, …) -#PipelineRunReasonInvalidGraph: #PipelineRunReason & "PipelineInvalidGraph" - -// ReasonCouldntCancel indicates that a PipelineRun was cancelled but attempting to update -// all of the running TaskRuns as cancelled failed. -#PipelineRunReasonCouldntCancel: #PipelineRunReason & "PipelineRunCouldntCancel" - -// ReasonCouldntTimeOut indicates that a PipelineRun was timed out but attempting to update -// all of the running TaskRuns as timed out failed. -#PipelineRunReasonCouldntTimeOut: #PipelineRunReason & "PipelineRunCouldntTimeOut" - -// ReasonInvalidMatrixParameterTypes indicates a matrix contains invalid parameter types -#PipelineRunReasonInvalidMatrixParameterTypes: #PipelineRunReason & "InvalidMatrixParameterTypes" - -// ReasonInvalidTaskResultReference indicates a task result was declared -// but was not initialized by that task -#PipelineRunReasonInvalidTaskResultReference: #PipelineRunReason & "InvalidTaskResultReference" - -// ReasonRequiredWorkspaceMarkedOptional indicates an optional workspace -// has been passed to a Task that is expecting a non-optional workspace -#PipelineRunReasonRequiredWorkspaceMarkedOptional: #PipelineRunReason & "RequiredWorkspaceMarkedOptional" - -// ReasonResolvingPipelineRef indicates that the PipelineRun is waiting for -// its pipelineRef to be asynchronously resolved. -#PipelineRunReasonResolvingPipelineRef: #PipelineRunReason & "ResolvingPipelineRef" - -// ReasonResourceVerificationFailed indicates that the pipeline fails the trusted resource verification, -// it could be the content has changed, signature is invalid or public key is invalid -#PipelineRunReasonResourceVerificationFailed: #PipelineRunReason & "ResourceVerificationFailed" - -// ReasonCreateRunFailed indicates that the pipeline fails to create the taskrun or other run resources -#PipelineRunReasonCreateRunFailed: #PipelineRunReason & "CreateRunFailed" - -// ChildStatusReference is used to point to the statuses of individual TaskRuns and Runs within this PipelineRun. -#ChildStatusReference: { - runtime.#TypeMeta - - // Name is the name of the TaskRun or Run this is referencing. - name?: string @go(Name) - - // PipelineTaskName is the name of the PipelineTask this is referencing. - pipelineTaskName?: string @go(PipelineTaskName) - - // WhenExpressions is the list of checks guarding the execution of the PipelineTask - // +optional - // +listType=atomic - whenExpressions?: [...#WhenExpression] @go(WhenExpressions,[]WhenExpression) -} - -// PipelineRunStatusFields holds the fields of PipelineRunStatus' status. -// This is defined separately and inlined so that other types can readily -// consume these fields via duck typing. -#PipelineRunStatusFields: { - // StartTime is the time the PipelineRun is actually started. - startTime?: null | metav1.#Time @go(StartTime,*metav1.Time) - - // CompletionTime is the time the PipelineRun completed. - completionTime?: null | metav1.#Time @go(CompletionTime,*metav1.Time) - - // Results are the list of results written out by the pipeline task's containers - // +optional - // +listType=atomic - results?: [...#PipelineRunResult] @go(Results,[]PipelineRunResult) - - // PipelineRunSpec contains the exact spec used to instantiate the run - pipelineSpec?: null | #PipelineSpec @go(PipelineSpec,*PipelineSpec) - - // list of tasks that were skipped due to when expressions evaluating to false - // +optional - // +listType=atomic - skippedTasks?: [...#SkippedTask] @go(SkippedTasks,[]SkippedTask) - - // list of TaskRun and Run names, PipelineTask names, and API versions/kinds for children of this PipelineRun. - // +optional - // +listType=atomic - childReferences?: [...#ChildStatusReference] @go(ChildReferences,[]ChildStatusReference) - - // FinallyStartTime is when all non-finally tasks have been completed and only finally tasks are being executed. - // +optional - finallyStartTime?: null | metav1.#Time @go(FinallyStartTime,*metav1.Time) - - // Provenance contains some key authenticated metadata about how a software artifact was built (what sources, what inputs/outputs, etc.). - // +optional - provenance?: null | #Provenance @go(Provenance,*Provenance) - - // SpanContext contains tracing span context fields - spanContext?: {[string]: string} @go(SpanContext,map[string]string) -} - -// SkippedTask is used to describe the Tasks that were skipped due to their When Expressions -// evaluating to False. This is a struct because we are looking into including more details -// about the When Expressions that caused this Task to be skipped. -#SkippedTask: { - // Name is the Pipeline Task name - name: string @go(Name) - - // Reason is the cause of the PipelineTask being skipped. - reason: #SkippingReason @go(Reason) - - // WhenExpressions is the list of checks guarding the execution of the PipelineTask - // +optional - // +listType=atomic - whenExpressions?: [...#WhenExpression] @go(WhenExpressions,[]WhenExpression) -} - -// SkippingReason explains why a PipelineTask was skipped. -#SkippingReason: string // #enumSkippingReason - -#enumSkippingReason: - #WhenExpressionsSkip | - #ParentTasksSkip | - #StoppingSkip | - #GracefullyCancelledSkip | - #GracefullyStoppedSkip | - #MissingResultsSkip | - #PipelineTimedOutSkip | - #TasksTimedOutSkip | - #FinallyTimedOutSkip | - #EmptyArrayInMatrixParams | - #None - -// WhenExpressionsSkip means the task was skipped due to at least one of its when expressions evaluating to false -#WhenExpressionsSkip: #SkippingReason & "When Expressions evaluated to false" - -// ParentTasksSkip means the task was skipped because its parent was skipped -#ParentTasksSkip: #SkippingReason & "Parent Tasks were skipped" - -// StoppingSkip means the task was skipped because the pipeline run is stopping -#StoppingSkip: #SkippingReason & "PipelineRun was stopping" - -// GracefullyCancelledSkip means the task was skipped because the pipeline run has been gracefully cancelled -#GracefullyCancelledSkip: #SkippingReason & "PipelineRun was gracefully cancelled" - -// GracefullyStoppedSkip means the task was skipped because the pipeline run has been gracefully stopped -#GracefullyStoppedSkip: #SkippingReason & "PipelineRun was gracefully stopped" - -// MissingResultsSkip means the task was skipped because it's missing necessary results -#MissingResultsSkip: #SkippingReason & "Results were missing" - -// PipelineTimedOutSkip means the task was skipped because the PipelineRun has passed its overall timeout. -#PipelineTimedOutSkip: #SkippingReason & "PipelineRun timeout has been reached" - -// TasksTimedOutSkip means the task was skipped because the PipelineRun has passed its Timeouts.Tasks. -#TasksTimedOutSkip: #SkippingReason & "PipelineRun Tasks timeout has been reached" - -// FinallyTimedOutSkip means the task was skipped because the PipelineRun has passed its Timeouts.Finally. -#FinallyTimedOutSkip: #SkippingReason & "PipelineRun Finally timeout has been reached" - -// EmptyArrayInMatrixParams means the task was skipped because Matrix parameters contain empty array. -#EmptyArrayInMatrixParams: #SkippingReason & "Matrix Parameters have an empty array" - -// None means the task was not skipped -#None: #SkippingReason & "None" - -// PipelineRunResult used to describe the results of a pipeline -#PipelineRunResult: { - // Name is the result's name as declared by the Pipeline - name: string @go(Name) - - // Value is the result returned from the execution of this PipelineRun - value: #ParamValue @go(Value) -} - -// PipelineRunTaskRunStatus contains the name of the PipelineTask for this TaskRun and the TaskRun's Status -#PipelineRunTaskRunStatus: { - // PipelineTaskName is the name of the PipelineTask. - pipelineTaskName?: string @go(PipelineTaskName) - - // Status is the TaskRunStatus for the corresponding TaskRun - // +optional - status?: null | #TaskRunStatus @go(Status,*TaskRunStatus) - - // WhenExpressions is the list of checks guarding the execution of the PipelineTask - // +optional - // +listType=atomic - whenExpressions?: [...#WhenExpression] @go(WhenExpressions,[]WhenExpression) -} - -// PipelineRunRunStatus contains the name of the PipelineTask for this Run and the Run's Status -#PipelineRunRunStatus: { - // PipelineTaskName is the name of the PipelineTask. - pipelineTaskName?: string @go(PipelineTaskName) - - // Status is the RunStatus for the corresponding Run - // +optional - status?: null | runv1beta1.#CustomRunStatus @go(Status,*runv1beta1.CustomRunStatus) - - // WhenExpressions is the list of checks guarding the execution of the PipelineTask - // +optional - // +listType=atomic - whenExpressions?: [...#WhenExpression] @go(WhenExpressions,[]WhenExpression) -} - -// PipelineRunList contains a list of PipelineRun -#PipelineRunList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items?: [...#PipelineRun] @go(Items,[]PipelineRun) -} - -// PipelineTaskRun reports the results of running a step in the Task. Each -// task has the potential to succeed or fail (based on the exit code) -// and produces logs. -#PipelineTaskRun: { - name?: string @go(Name) -} - -// PipelineTaskRunSpec can be used to configure specific -// specs for a concrete Task -#PipelineTaskRunSpec: { - pipelineTaskName?: string @go(PipelineTaskName) - serviceAccountName?: string @go(ServiceAccountName) - podTemplate?: null | pod.#Template @go(PodTemplate,*pod.Template) - - // +listType=atomic - stepSpecs?: [...#TaskRunStepSpec] @go(StepSpecs,[]TaskRunStepSpec) - - // +listType=atomic - sidecarSpecs?: [...#TaskRunSidecarSpec] @go(SidecarSpecs,[]TaskRunSidecarSpec) - - // +optional - metadata?: null | #PipelineTaskMetadata @go(Metadata,*PipelineTaskMetadata) - - // Compute resources to use for this TaskRun - computeResources?: null | corev1.#ResourceRequirements @go(ComputeResources,*corev1.ResourceRequirements) -} - -// PipelineTaskRunTemplate is used to specify run specifications for all Task in pipelinerun. -#PipelineTaskRunTemplate: { - // +optional - podTemplate?: null | pod.#Template @go(PodTemplate,*pod.Template) - - // +optional - serviceAccountName?: string @go(ServiceAccountName) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/provenance_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/provenance_go_gen.cue deleted file mode 100644 index b510731..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/provenance_go_gen.cue +++ /dev/null @@ -1,37 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -import "github.com/tektoncd/pipeline/pkg/apis/config" - -// Provenance contains metadata about resources used in the TaskRun/PipelineRun -// such as the source from where a remote build definition was fetched. -// This field aims to carry minimum amoumt of metadata in *Run status so that -// Tekton Chains can capture them in the provenance. -#Provenance: { - // RefSource identifies the source where a remote task/pipeline came from. - refSource?: null | #RefSource @go(RefSource,*RefSource) - - // FeatureFlags identifies the feature flags that were used during the task/pipeline run - featureFlags?: null | config.#FeatureFlags @go(FeatureFlags,*config.FeatureFlags) -} - -// RefSource contains the information that can uniquely identify where a remote -// built definition came from i.e. Git repositories, Tekton Bundles in OCI registry -// and hub. -#RefSource: { - // URI indicates the identity of the source of the build definition. - // Example: "https://github.com/tektoncd/catalog" - uri?: string @go(URI) - - // Digest is a collection of cryptographic digests for the contents of the artifact specified by URI. - // Example: {"sha1": "f99d13e554ffcb696dee719fa85b695cb5b0f428"} - digest?: {[string]: string} @go(Digest,map[string]string) - - // EntryPoint identifies the entry point into the build. This is often a path to a - // build definition file and/or a target label within that file. - // Example: "task/git-clone/0.8/git-clone.yaml" - entryPoint?: string @go(EntryPoint) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/resolver_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/resolver_types_go_gen.cue deleted file mode 100644 index f26a588..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/resolver_types_go_gen.cue +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -// ResolverName is the name of a resolver from which a resource can be -// requested. -#ResolverName: string - -// ResolverRef can be used to refer to a Pipeline or Task in a remote -// location like a git repo. This feature is in beta and these fields -// are only available when the beta feature gate is enabled. -#ResolverRef: { - // Resolver is the name of the resolver that should perform - // resolution of the referenced Tekton resource, such as "git". - // +optional - resolver?: #ResolverName @go(Resolver) - - // Params contains the parameters used to identify the - // referenced Tekton resource. Example entries might include - // "repo" or "path" but the set of params ultimately depends on - // the chosen resolver. - // +optional - // +listType=atomic - params?: #Params @go(Params) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/result_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/result_types_go_gen.cue deleted file mode 100644 index 5015577..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/result_types_go_gen.cue +++ /dev/null @@ -1,57 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -// TaskResult used to describe the results of a task -#TaskResult: { - // Name the given name - name: string @go(Name) - - // Type is the user-specified type of the result. The possible type - // is currently "string" and will support "array" in following work. - // +optional - type?: #ResultsType @go(Type) - - // Properties is the JSON Schema properties to support key-value pairs results. - // +optional - properties?: {[string]: #PropertySpec} @go(Properties,map[string]PropertySpec) - - // Description is a human-readable description of the result - // +optional - description?: string @go(Description) -} - -// TaskRunResult used to describe the results of a task -#TaskRunResult: { - // Name the given name - name: string @go(Name) - - // Type is the user-specified type of the result. The possible type - // is currently "string" and will support "array" in following work. - // +optional - type?: #ResultsType @go(Type) - - // Value the given value of the result - value: #ParamValue @go(Value) -} - -// ResultValue is a type alias of ParamValue -#ResultValue: _ - -// ResultsType indicates the type of a result; -// Used to distinguish between a single string and an array of strings. -// Note that there is ResultType used to find out whether a -// RunResult is from a task result or not, which is different from -// this ResultsType. -#ResultsType: string // #enumResultsType - -#enumResultsType: - #ResultsTypeString | - #ResultsTypeArray | - #ResultsTypeObject - -#ResultsTypeString: #ResultsType & "string" -#ResultsTypeArray: #ResultsType & "array" -#ResultsTypeObject: #ResultsType & "object" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/resultref_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/resultref_go_gen.cue deleted file mode 100644 index 376eaa5..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/resultref_go_gen.cue +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -// ResultRef is a type that represents a reference to a task run result -#ResultRef: { - pipelineTask: string @go(PipelineTask) - result: string @go(Result) - resultsIndex: int @go(ResultsIndex) - property: string @go(Property) -} - -_#resultExpressionFormat: "tasks..results." - -// Result expressions of the form . will be treated as object results. -// If a string result name contains a dot, brackets should be used to differentiate it from an object result. -// https://github.com/tektoncd/community/blob/main/teps/0075-object-param-and-result-types.md#collisions-with-builtin-variable-replacement -_#objectResultExpressionFormat: "tasks..results.." - -// ResultTaskPart Constant used to define the "tasks" part of a pipeline result reference -#ResultTaskPart: "tasks" - -// ResultFinallyPart Constant used to define the "finally" part of a pipeline result reference -#ResultFinallyPart: "finally" - -// ResultResultPart Constant used to define the "results" part of a pipeline result reference -#ResultResultPart: "results" - -// TODO(#2462) use one regex across all substitutions -// variableSubstitutionFormat matches format like $result.resultname, $result.resultname[int] and $result.resultname[*] -_#variableSubstitutionFormat: "\\$\\([_a-zA-Z0-9.-]+(\\.[_a-zA-Z0-9.-]+)*(\\[([0-9]+|\\*)\\])?\\)" // `\$\([_a-zA-Z0-9.-]+(\.[_a-zA-Z0-9.-]+)*(\[([0-9]+|\*)\])?\)` - -// exactVariableSubstitutionFormat matches strings that only contain a single reference to result or param variables, but nothing else -// i.e. `$(result.resultname)` is a match, but `foo $(result.resultname)` is not. -_#exactVariableSubstitutionFormat: "^\\$\\([_a-zA-Z0-9.-]+(\\.[_a-zA-Z0-9.-]+)*(\\[([0-9]+|\\*)\\])?\\)$" // `^\$\([_a-zA-Z0-9.-]+(\.[_a-zA-Z0-9.-]+)*(\[([0-9]+|\*)\])?\)$` - -// arrayIndexing will match all `[int]` and `[*]` for parseExpression -_#arrayIndexing: "\\[([0-9])*\\*?\\]" // `\[([0-9])*\*?\]` - -// ResultNameFormat Constant used to define the regex Result.Name should follow -#ResultNameFormat: "^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$" // `^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$` diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/task_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/task_types_go_gen.cue deleted file mode 100644 index a49860f..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/task_types_go_gen.cue +++ /dev/null @@ -1,84 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - corev1 "k8s.io/api/core/v1" -) - -// Task represents a collection of sequential steps that are run as part of a -// Pipeline using a set of inputs and producing a set of outputs. Tasks execute -// when TaskRuns are created that provide the input parameters and resources and -// output resources the Task requires. -// -// +k8s:openapi-gen=true -#Task: { - metav1.#TypeMeta - - // +optional - metadata: metav1.#ObjectMeta @go(ObjectMeta) - - // Spec holds the desired state of the Task from the client - // +optional - spec: #TaskSpec @go(Spec) -} - -// TaskSpec defines the desired state of Task. -#TaskSpec: { - // Params is a list of input parameters required to run the task. Params - // must be supplied as inputs in TaskRuns unless they declare a default - // value. - // +optional - // +listType=atomic - params?: #ParamSpecs @go(Params) - - // DisplayName is a user-facing name of the task that may be - // used to populate a UI. - // +optional - displayName?: string @go(DisplayName) - - // Description is a user-facing description of the task that may be - // used to populate a UI. - // +optional - description?: string @go(Description) - - // Steps are the steps of the build; each step is run sequentially with the - // source mounted into /workspace. - // +listType=atomic - steps?: [...#Step] @go(Steps,[]Step) - - // Volumes is a collection of volumes that are available to mount into the - // steps of the build. - // +listType=atomic - volumes?: [...corev1.#Volume] @go(Volumes,[]corev1.Volume) - - // StepTemplate can be used as the basis for all step containers within the - // Task, so that the steps inherit settings on the base container. - stepTemplate?: null | #StepTemplate @go(StepTemplate,*StepTemplate) - - // Sidecars are run alongside the Task's step containers. They begin before - // the steps start and end after the steps complete. - // +listType=atomic - sidecars?: [...#Sidecar] @go(Sidecars,[]Sidecar) - - // Workspaces are the volumes that this Task requires. - // +listType=atomic - workspaces?: [...#WorkspaceDeclaration] @go(Workspaces,[]WorkspaceDeclaration) - - // Results are values that this Task can output - // +listType=atomic - results?: [...#TaskResult] @go(Results,[]TaskResult) -} - -// TaskList contains a list of Task -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -#TaskList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Task] @go(Items,[]Task) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/task_validation_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/task_validation_go_gen.cue deleted file mode 100644 index 5beb557..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/task_validation_go_gen.cue +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -// stringAndArrayVariableNameFormat is the regex to validate if string/array variable name format follows the following rules. -// - Must only contain alphanumeric characters, hyphens (-), underscores (_), and dots (.) -// - Must begin with a letter or an underscore (_) -_#stringAndArrayVariableNameFormat: "^[_a-zA-Z][_a-zA-Z0-9.-]*$" - -// objectVariableNameFormat is the regext used to validate object name and key names format -// The difference with the array or string name format is that object variable names shouldn't contain dots. -_#objectVariableNameFormat: "^[_a-zA-Z][_a-zA-Z0-9-]*$" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/taskref_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/taskref_types_go_gen.cue deleted file mode 100644 index dce81a8..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/taskref_types_go_gen.cue +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -// TaskRef can be used to refer to a specific instance of a task. -#TaskRef: { - // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - name?: string @go(Name) - - // TaskKind indicates the Kind of the Task: - // 1. Namespaced Task when Kind is set to "Task". If Kind is "", it defaults to "Task". - // 2. Custom Task when Kind is non-empty and APIVersion is non-empty - kind?: #TaskKind @go(Kind) - - // API version of the referent - // Note: A Task with non-empty APIVersion and Kind is considered a Custom Task - // +optional - apiVersion?: string @go(APIVersion) - - // ResolverRef allows referencing a Task in a remote location - // like a git repo. This field is only supported when the alpha - // feature gate is enabled. - // +optional - ResolverRef?: #ResolverRef -} - -// TaskKind defines the type of Task used by the pipeline. -#TaskKind: string // #enumTaskKind - -#enumTaskKind: - #NamespacedTaskKind | - #ClusterTaskRefKind - -// NamespacedTaskKind indicates that the task type has a namespaced scope. -#NamespacedTaskKind: #TaskKind & "Task" - -// ClusterTaskRefKind is the task type for a reference to a task with cluster scope. -// ClusterTasks are not supported in v1, but v1 types may reference ClusterTasks. -#ClusterTaskRefKind: #TaskKind & "ClusterTask" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/taskrun_defaults_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/taskrun_defaults_go_gen.cue deleted file mode 100644 index 6c62ad8..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/taskrun_defaults_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -#ManagedByLabelKey: "app.kubernetes.io/managed-by" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/taskrun_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/taskrun_types_go_gen.cue deleted file mode 100644 index 8245d27..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/taskrun_types_go_gen.cue +++ /dev/null @@ -1,274 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/tektoncd/pipeline/pkg/apis/pipeline/pod" - corev1 "k8s.io/api/core/v1" - duckv1 "knative.dev/pkg/apis/duck/v1" -) - -// TaskRunSpec defines the desired state of TaskRun -#TaskRunSpec: { - // +optional - debug?: null | #TaskRunDebug @go(Debug,*TaskRunDebug) - - // +optional - // +listType=atomic - params?: #Params @go(Params) - - // +optional - serviceAccountName: string @go(ServiceAccountName) - - // no more than one of the TaskRef and TaskSpec may be specified. - // +optional - taskRef?: null | #TaskRef @go(TaskRef,*TaskRef) - - // +optional - taskSpec?: null | #TaskSpec @go(TaskSpec,*TaskSpec) - - // Used for cancelling a TaskRun (and maybe more later on) - // +optional - status?: #TaskRunSpecStatus @go(Status) - - // Status message for cancellation. - // +optional - statusMessage?: #TaskRunSpecStatusMessage @go(StatusMessage) - - // Retries represents how many times this TaskRun should be retried in the event of task failure. - // +optional - retries?: int @go(Retries) - - // Time after which one retry attempt times out. Defaults to 1 hour. - // Refer Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration - // +optional - timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) - - // PodTemplate holds pod specific configuration - podTemplate?: null | pod.#Template @go(PodTemplate,*pod.Template) - - // Workspaces is a list of WorkspaceBindings from volumes to workspaces. - // +optional - // +listType=atomic - workspaces?: [...#WorkspaceBinding] @go(Workspaces,[]WorkspaceBinding) - - // Specs to apply to Steps in this TaskRun. - // If a field is specified in both a Step and a StepSpec, - // the value from the StepSpec will be used. - // This field is only supported when the alpha feature gate is enabled. - // +optional - // +listType=atomic - stepSpecs?: [...#TaskRunStepSpec] @go(StepSpecs,[]TaskRunStepSpec) - - // Specs to apply to Sidecars in this TaskRun. - // If a field is specified in both a Sidecar and a SidecarSpec, - // the value from the SidecarSpec will be used. - // This field is only supported when the alpha feature gate is enabled. - // +optional - // +listType=atomic - sidecarSpecs?: [...#TaskRunSidecarSpec] @go(SidecarSpecs,[]TaskRunSidecarSpec) - - // Compute resources to use for this TaskRun - computeResources?: null | corev1.#ResourceRequirements @go(ComputeResources,*corev1.ResourceRequirements) -} - -// TaskRunSpecStatus defines the TaskRun spec status the user can provide -#TaskRunSpecStatus: string - -// TaskRunSpecStatusCancelled indicates that the user wants to cancel the task, -// if not already cancelled or terminated -#TaskRunSpecStatusCancelled: "TaskRunCancelled" - -// TaskRunSpecStatusMessage defines human readable status messages for the TaskRun. -#TaskRunSpecStatusMessage: string // #enumTaskRunSpecStatusMessage - -#enumTaskRunSpecStatusMessage: - #TaskRunCancelledByPipelineMsg | - #TaskRunCancelledByPipelineTimeoutMsg - -// TaskRunCancelledByPipelineMsg indicates that the PipelineRun of which this -// TaskRun was a part of has been cancelled. -#TaskRunCancelledByPipelineMsg: #TaskRunSpecStatusMessage & "TaskRun cancelled as the PipelineRun it belongs to has been cancelled." - -// TaskRunCancelledByPipelineTimeoutMsg indicates that the TaskRun was cancelled because the PipelineRun running it timed out. -#TaskRunCancelledByPipelineTimeoutMsg: #TaskRunSpecStatusMessage & "TaskRun cancelled as the PipelineRun it belongs to has timed out." - -// TaskRunDebug defines the breakpoint config for a particular TaskRun -#TaskRunDebug: { - // +optional - // +listType=atomic - breakpoint?: [...string] @go(Breakpoint,[]string) -} - -// TaskRunInputs holds the input values that this task was invoked with. -#TaskRunInputs: { - // +optional - // +listType=atomic - params?: #Params @go(Params) -} - -// TaskRunStatus defines the observed state of TaskRun -#TaskRunStatus: { - duckv1.#Status - - #TaskRunStatusFields -} - -// TaskRunReason is an enum used to store all TaskRun reason for -// the Succeeded condition that are controlled by the TaskRun itself. Failure -// reasons that emerge from underlying resources are not included here -#TaskRunReason: string // #enumTaskRunReason - -#enumTaskRunReason: - #TaskRunReasonStarted | - #TaskRunReasonRunning | - #TaskRunReasonSuccessful | - #TaskRunReasonFailed | - #TaskRunReasonToBeRetried | - #TaskRunReasonCancelled | - #TaskRunReasonTimedOut | - #TaskRunReasonImagePullFailed | - #TaskRunReasonResultLargerThanAllowedLimit - -// TaskRunReasonStarted is the reason set when the TaskRun has just started -#TaskRunReasonStarted: #TaskRunReason & "Started" - -// TaskRunReasonRunning is the reason set when the TaskRun is running -#TaskRunReasonRunning: #TaskRunReason & "Running" - -// TaskRunReasonSuccessful is the reason set when the TaskRun completed successfully -#TaskRunReasonSuccessful: #TaskRunReason & "Succeeded" - -// TaskRunReasonFailed is the reason set when the TaskRun completed with a failure -#TaskRunReasonFailed: #TaskRunReason & "Failed" - -// TaskRunReasonToBeRetried is the reason set when the last TaskRun execution failed, and will be retried -#TaskRunReasonToBeRetried: #TaskRunReason & "ToBeRetried" - -// TaskRunReasonCancelled is the reason set when the TaskRun is cancelled by the user -#TaskRunReasonCancelled: #TaskRunReason & "TaskRunCancelled" - -// TaskRunReasonTimedOut is the reason set when one TaskRun execution has timed out -#TaskRunReasonTimedOut: #TaskRunReason & "TaskRunTimeout" - -// TaskRunReasonResolvingTaskRef indicates that the TaskRun is waiting for -// its taskRef to be asynchronously resolved. -#TaskRunReasonResolvingTaskRef: "ResolvingTaskRef" - -// TaskRunReasonImagePullFailed is the reason set when the step of a task fails due to image not being pulled -#TaskRunReasonImagePullFailed: #TaskRunReason & "TaskRunImagePullFailed" - -// TaskRunReasonResultLargerThanAllowedLimit is the reason set when one of the results exceeds its maximum allowed limit of 1 KB -#TaskRunReasonResultLargerThanAllowedLimit: #TaskRunReason & "TaskRunResultLargerThanAllowedLimit" - -// TaskRunReasonStopSidecarFailed indicates that the sidecar is not properly stopped. -#TaskRunReasonStopSidecarFailed: "TaskRunStopSidecarFailed" - -// TaskRunStatusFields holds the fields of TaskRun's status. This is defined -// separately and inlined so that other types can readily consume these fields -// via duck typing. -#TaskRunStatusFields: { - // PodName is the name of the pod responsible for executing this task's steps. - podName: string @go(PodName) - - // StartTime is the time the build is actually started. - startTime?: null | metav1.#Time @go(StartTime,*metav1.Time) - - // CompletionTime is the time the build completed. - completionTime?: null | metav1.#Time @go(CompletionTime,*metav1.Time) - - // Steps describes the state of each build step container. - // +optional - // +listType=atomic - steps?: [...#StepState] @go(Steps,[]StepState) - - // RetriesStatus contains the history of TaskRunStatus in case of a retry in order to keep record of failures. - // All TaskRunStatus stored in RetriesStatus will have no date within the RetriesStatus as is redundant. - // +optional - // +listType=atomic - retriesStatus?: [...#TaskRunStatus] @go(RetriesStatus,[]TaskRunStatus) - - // Results are the list of results written out by the task's containers - // +optional - // +listType=atomic - results?: [...#TaskRunResult] @go(Results,[]TaskRunResult) - - // The list has one entry per sidecar in the manifest. Each entry is - // represents the imageid of the corresponding sidecar. - // +listType=atomic - sidecars?: [...#SidecarState] @go(Sidecars,[]SidecarState) - - // TaskSpec contains the Spec from the dereferenced Task definition used to instantiate this TaskRun. - taskSpec?: null | #TaskSpec @go(TaskSpec,*TaskSpec) - - // Provenance contains some key authenticated metadata about how a software artifact was built (what sources, what inputs/outputs, etc.). - // +optional - provenance?: null | #Provenance @go(Provenance,*Provenance) - - // SpanContext contains tracing span context fields - spanContext?: {[string]: string} @go(SpanContext,map[string]string) -} - -// TaskRunStepSpec is used to override the values of a Step in the corresponding Task. -#TaskRunStepSpec: { - // The name of the Step to override. - name: string @go(Name) - - // The resource requirements to apply to the Step. - computeResources: corev1.#ResourceRequirements @go(ComputeResources) -} - -// TaskRunSidecarSpec is used to override the values of a Sidecar in the corresponding Task. -#TaskRunSidecarSpec: { - // The name of the Sidecar to override. - name: string @go(Name) - - // The resource requirements to apply to the Sidecar. - computeResources: corev1.#ResourceRequirements @go(ComputeResources) -} - -// StepState reports the results of running a step in a Task. -#StepState: { - corev1.#ContainerState - name?: string @go(Name) - container?: string @go(Container) - imageID?: string @go(ImageID) -} - -// SidecarState reports the results of running a sidecar in a Task. -#SidecarState: { - corev1.#ContainerState - name?: string @go(Name) - container?: string @go(Container) - imageID?: string @go(ImageID) -} - -// TaskRun represents a single execution of a Task. TaskRuns are how the steps -// specified in a Task are executed; they specify the parameters and resources -// used to run the steps in a Task. -// -// +k8s:openapi-gen=true -#TaskRun: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +optional - spec?: #TaskRunSpec @go(Spec) - - // +optional - status?: #TaskRunStatus @go(Status) -} - -// TaskRunList contains a list of TaskRun -#TaskRunList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TaskRun] @go(Items,[]TaskRun) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/when_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/when_types_go_gen.cue deleted file mode 100644 index 0bfd798..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/when_types_go_gen.cue +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -import "k8s.io/apimachinery/pkg/selection" - -// WhenExpression allows a PipelineTask to declare expressions to be evaluated before the Task is run -// to determine whether the Task should be executed or skipped -#WhenExpression: { - // Input is the string for guard checking which can be a static input or an output from a parent Task - input: string @go(Input) - - // Operator that represents an Input's relationship to the values - operator: selection.#Operator @go(Operator) - - // Values is an array of strings, which is compared against the input, for guard checking - // It must be non-empty - // +listType=atomic - values: [...string] @go(Values,[]string) -} - -// WhenExpressions are used to specify whether a Task should be executed or skipped -// All of them need to evaluate to True for a guarded Task to be executed. -#WhenExpressions: [...#WhenExpression] diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/workspace_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/workspace_types_go_gen.cue deleted file mode 100644 index 88ef311..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1/workspace_types_go_gen.cue +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 - -package v1 - -import corev1 "k8s.io/api/core/v1" - -// WorkspaceDeclaration is a declaration of a volume that a Task requires. -#WorkspaceDeclaration: { - // Name is the name by which you can bind the volume at runtime. - name: string @go(Name) - - // Description is an optional human readable description of this volume. - // +optional - description?: string @go(Description) - - // MountPath overrides the directory that the volume will be made available at. - // +optional - mountPath?: string @go(MountPath) - - // ReadOnly dictates whether a mounted volume is writable. By default this - // field is false and so mounted volumes are writable. - readOnly?: bool @go(ReadOnly) - - // Optional marks a Workspace as not being required in TaskRuns. By default - // this field is false and so declared workspaces are required. - optional?: bool @go(Optional) -} - -// WorkspaceBinding maps a Task's declared workspace to a Volume. -#WorkspaceBinding: { - // Name is the name of the workspace populated by the volume. - name: string @go(Name) - - // SubPath is optionally a directory on the volume which should be used - // for this binding (i.e. the volume will be mounted at this sub directory). - // +optional - subPath?: string @go(SubPath) - - // VolumeClaimTemplate is a template for a claim that will be created in the same namespace. - // The PipelineRun controller is responsible for creating a unique claim for each instance of PipelineRun. - // +optional - volumeClaimTemplate?: null | corev1.#PersistentVolumeClaim @go(VolumeClaimTemplate,*corev1.PersistentVolumeClaim) - - // PersistentVolumeClaimVolumeSource represents a reference to a - // PersistentVolumeClaim in the same namespace. Either this OR EmptyDir can be used. - // +optional - persistentVolumeClaim?: null | corev1.#PersistentVolumeClaimVolumeSource @go(PersistentVolumeClaim,*corev1.PersistentVolumeClaimVolumeSource) - - // EmptyDir represents a temporary directory that shares a Task's lifetime. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - // Either this OR PersistentVolumeClaim can be used. - // +optional - emptyDir?: null | corev1.#EmptyDirVolumeSource @go(EmptyDir,*corev1.EmptyDirVolumeSource) - - // ConfigMap represents a configMap that should populate this workspace. - // +optional - configMap?: null | corev1.#ConfigMapVolumeSource @go(ConfigMap,*corev1.ConfigMapVolumeSource) - - // Secret represents a secret that should populate this workspace. - // +optional - secret?: null | corev1.#SecretVolumeSource @go(Secret,*corev1.SecretVolumeSource) - - // Projected represents a projected volume that should populate this workspace. - // +optional - projected?: null | corev1.#ProjectedVolumeSource @go(Projected,*corev1.ProjectedVolumeSource) - - // CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers. - // +optional - csi?: null | corev1.#CSIVolumeSource @go(CSI,*corev1.CSIVolumeSource) -} - -// WorkspacePipelineDeclaration creates a named slot in a Pipeline that a PipelineRun -// is expected to populate with a workspace binding. -// -// Deprecated: use PipelineWorkspaceDeclaration type instead -#WorkspacePipelineDeclaration: #PipelineWorkspaceDeclaration - -// PipelineWorkspaceDeclaration creates a named slot in a Pipeline that a PipelineRun -// is expected to populate with a workspace binding. -#PipelineWorkspaceDeclaration: { - // Name is the name of a workspace to be provided by a PipelineRun. - name: string @go(Name) - - // Description is a human readable string describing how the workspace will be - // used in the Pipeline. It can be useful to include a bit of detail about which - // tasks are intended to have access to the data on the workspace. - // +optional - description?: string @go(Description) - - // Optional marks a Workspace as not being required in PipelineRuns. By default - // this field is false and so declared workspaces are required. - optional?: bool @go(Optional) -} - -// WorkspacePipelineTaskBinding describes how a workspace passed into the pipeline should be -// mapped to a task's declared workspace. -#WorkspacePipelineTaskBinding: { - // Name is the name of the workspace as declared by the task - name: string @go(Name) - - // Workspace is the name of the workspace declared by the pipeline - // +optional - workspace?: string @go(Workspace) - - // SubPath is optionally a directory on the volume which should be used - // for this binding (i.e. the volume will be mounted at this sub directory). - // +optional - subPath?: string @go(SubPath) -} - -// WorkspaceUsage is used by a Step or Sidecar to declare that it wants isolated access -// to a Workspace defined in a Task. -#WorkspaceUsage: { - // Name is the name of the workspace this Step or Sidecar wants access to. - name: string @go(Name) - - // MountPath is the path that the workspace should be mounted to inside the Step or Sidecar, - // overriding any MountPath specified in the Task's WorkspaceDeclaration. - mountPath: string @go(MountPath) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1/doc_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1/doc_go_gen.cue deleted file mode 100644 index 6d827ba..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1 - -// Package v1alpha1 contains API Schema definitions for the pipeline v1alpha1 API group -// +k8s:openapi-gen=true -// +k8s:deepcopy-gen=package,register -// +k8s:conversion-gen=github.com/tektoncd/pipeline/pkg/apis/pipeline -// +k8s:defaulter-gen=TypeMeta -// +groupName=tekton.dev -package v1alpha1 diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1/run_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1/run_types_go_gen.cue deleted file mode 100644 index eca7dfb..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1/run_types_go_gen.cue +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1 - -package v1alpha1 - -import ( - "k8s.io/apimachinery/pkg/runtime" - "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" - "github.com/tektoncd/pipeline/pkg/apis/pipeline/pod" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runv1alpha1 "github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1" -) - -// EmbeddedRunSpec allows custom task definitions to be embedded -#EmbeddedRunSpec: { - runtime.#TypeMeta - - // +optional - metadata?: v1beta1.#PipelineTaskMetadata @go(Metadata) - - // Spec is a specification of a custom task - // +optional - spec?: runtime.#RawExtension @go(Spec) -} - -// RunSpec defines the desired state of Run -#RunSpec: { - // +optional - ref?: null | v1beta1.#TaskRef @go(Ref,*v1beta1.TaskRef) - - // Spec is a specification of a custom task - // +optional - spec?: null | #EmbeddedRunSpec @go(Spec,*EmbeddedRunSpec) - - // +optional - params?: v1beta1.#Params @go(Params) - - // Used for cancelling a run (and maybe more later on) - // +optional - status?: #RunSpecStatus @go(Status) - - // Status message for cancellation. - // +optional - statusMessage?: #RunSpecStatusMessage @go(StatusMessage) - - // Used for propagating retries count to custom tasks - // +optional - retries?: int @go(Retries) - - // +optional - serviceAccountName: string @go(ServiceAccountName) - - // PodTemplate holds pod specific configuration - // +optional - podTemplate?: null | pod.#Template @go(PodTemplate,*pod.Template) - - // Time after which the custom-task times out. - // Refer Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration - // +optional - timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) - - // Workspaces is a list of WorkspaceBindings from volumes to workspaces. - // +optional - workspaces?: [...v1beta1.#WorkspaceBinding] @go(Workspaces,[]v1beta1.WorkspaceBinding) -} - -// RunSpecStatus defines the taskrun spec status the user can provide -#RunSpecStatus: string // #enumRunSpecStatus - -#enumRunSpecStatus: - #RunSpecStatusCancelled - -// RunSpecStatusCancelled indicates that the user wants to cancel the run, -// if not already cancelled or terminated -#RunSpecStatusCancelled: #RunSpecStatus & "RunCancelled" - -// RunSpecStatusMessage defines human readable status messages for the TaskRun. -#RunSpecStatusMessage: string // #enumRunSpecStatusMessage - -#enumRunSpecStatusMessage: - #RunCancelledByPipelineMsg | - #RunCancelledByPipelineTimeoutMsg - -// RunCancelledByPipelineMsg indicates that the PipelineRun of which part this Run was -// has been cancelled. -#RunCancelledByPipelineMsg: #RunSpecStatusMessage & "Run cancelled as the PipelineRun it belongs to has been cancelled." - -// RunCancelledByPipelineTimeoutMsg indicates that the Run was cancelled because the PipelineRun running it timed out. -#RunCancelledByPipelineTimeoutMsg: #RunSpecStatusMessage & "Run cancelled as the PipelineRun it belongs to has timed out." - -// RunReason is an enum used to store all Run reason for the Succeeded condition that are controlled by the Run itself. -#RunReason: string // #enumRunReason - -#enumRunReason: - #RunReasonStarted | - #RunReasonRunning | - #RunReasonSuccessful | - #RunReasonFailed | - #RunReasonCancelled | - #RunReasonTimedOut | - #RunReasonWorkspaceNotSupported | - #RunReasonPodTemplateNotSupported - -// RunReasonStarted is the reason set when the Run has just started. -#RunReasonStarted: #RunReason & "Started" - -// RunReasonRunning is the reason set when the Run is running. -#RunReasonRunning: #RunReason & "Running" - -// RunReasonSuccessful is the reason set when the Run completed successfully. -#RunReasonSuccessful: #RunReason & "Succeeded" - -// RunReasonFailed is the reason set when the Run completed with a failure. -#RunReasonFailed: #RunReason & "Failed" - -// RunReasonCancelled must be used in the Condition Reason to indicate that a Run was cancelled. -#RunReasonCancelled: #RunReason & "RunCancelled" - -// RunReasonTimedOut must be used in the Condition Reason to indicate that a Run was timed out. -#RunReasonTimedOut: #RunReason & "RunTimedOut" - -// RunReasonWorkspaceNotSupported can be used in the Condition Reason to indicate that the -// Run contains a workspace which is not supported by this custom task. -#RunReasonWorkspaceNotSupported: #RunReason & "RunWorkspaceNotSupported" - -// RunReasonPodTemplateNotSupported can be used in the Condition Reason to indicate that the -// Run contains a pod template which is not supported by this custom task. -#RunReasonPodTemplateNotSupported: #RunReason & "RunPodTemplateNotSupported" - -// RunStatus defines the observed state of Run. -#RunStatus: runv1alpha1.#RunStatus - -// RunStatusFields holds the fields of Run's status. This is defined -// separately and inlined so that other types can readily consume these fields -// via duck typing. -#RunStatusFields: runv1alpha1.#RunStatusFields - -// RunResult used to describe the results of a task -#RunResult: runv1alpha1.#RunResult - -// Run represents a single execution of a Custom Task. -// -// +k8s:openapi-gen=true -#Run: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +optional - spec?: #RunSpec @go(Spec) - - // +optional - status?: runv1alpha1.#RunStatus @go(Status) -} - -// RunList contains a list of Run -#RunList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Run] @go(Items,[]Run) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1/verificationpolicy_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1/verificationpolicy_types_go_gen.cue deleted file mode 100644 index dcbcb5e..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1/verificationpolicy_types_go_gen.cue +++ /dev/null @@ -1,121 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1 - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" -) - -// VerificationPolicy defines the rules to verify Tekton resources. -// VerificationPolicy can config the mapping from resources to a list of public -// keys, so when verifying the resources we can use the corresponding public keys. -// +k8s:openapi-gen=true -#VerificationPolicy: { - metav1.#TypeMeta - - // +optional - metadata: metav1.#ObjectMeta @go(ObjectMeta) - - // Spec holds the desired state of the VerificationPolicy. - spec: #VerificationPolicySpec @go(Spec) -} - -// VerificationPolicyList contains a list of VerificationPolicy -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -#VerificationPolicyList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VerificationPolicy] @go(Items,[]VerificationPolicy) -} - -// VerificationPolicySpec defines the patterns and authorities. -#VerificationPolicySpec: { - // Resources defines the patterns of resources sources that should be subject to this policy. - // For example, we may want to apply this Policy from a certain GitHub repo. - // Then the ResourcesPattern should be valid regex. E.g. If using gitresolver, and we want to config keys from a certain git repo. - // `ResourcesPattern` can be `https://github.com/tektoncd/catalog.git`, we will use regex to filter out those resources. - resources: [...#ResourcePattern] @go(Resources,[]ResourcePattern) - - // Authorities defines the rules for validating signatures. - authorities: [...#Authority] @go(Authorities,[]Authority) - - // Mode controls whether a failing policy will fail the taskrun/pipelinerun, or only log the warnings - // enforce - fail the taskrun/pipelinerun if verification fails (default) - // warn - don't fail the taskrun/pipelinerun if verification fails but log warnings - // +optional - mode?: #ModeType @go(Mode) -} - -// ResourcePattern defines the pattern of the resource source -#ResourcePattern: { - // Pattern defines a resource pattern. Regex is created to filter resources based on `Pattern` - // Example patterns: - // GitHub resource: https://github.com/tektoncd/catalog.git, https://github.com/tektoncd/* - // Bundle resource: gcr.io/tekton-releases/catalog/upstream/git-clone, gcr.io/tekton-releases/catalog/upstream/* - // Hub resource: https://artifacthub.io/*, - pattern: string @go(Pattern) -} - -// The Authority block defines the keys for validating signatures. -#Authority: { - // Name is the name for this authority. - name: string @go(Name) - - // Key contains the public key to validate the resource. - key?: null | #KeyRef @go(Key,*KeyRef) -} - -// ModeType indicates the type of a mode for VerificationPolicy -#ModeType: string // #enumModeType - -#enumModeType: - #ModeWarn | - #ModeEnforce - -#ModeWarn: #ModeType & "warn" -#ModeEnforce: #ModeType & "enforce" - -// KeyRef defines the reference to a public key -#KeyRef: { - // SecretRef sets a reference to a secret with the key. - // +optional - secretRef?: null | v1.#SecretReference @go(SecretRef,*v1.SecretReference) - - // Data contains the inline public key. - // +optional - data?: string @go(Data) - - // KMS contains the KMS url of the public key - // Supported formats differ based on the KMS system used. - // One example of a KMS url could be: - // gcpkms://projects/[PROJECT]/locations/[LOCATION]>/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[KEY_VERSION] - // For more examples please refer https://docs.sigstore.dev/cosign/kms_support. - // Note that the KMS is not supported yet. - // +optional - kms?: string @go(KMS) - - // HashAlgorithm always defaults to sha256 if the algorithm hasn't been explicitly set - // +optional - hashAlgorithm?: #HashAlgorithm @go(HashAlgorithm) -} - -// HashAlgorithm defines the hash algorithm used for the public key -#HashAlgorithm: string // #enumHashAlgorithm - -#enumHashAlgorithm: - _#sha224 | - _#sha256 | - _#sha384 | - _#sha512 | - _#empty - -_#sha224: #HashAlgorithm & "sha224" -_#sha256: #HashAlgorithm & "sha256" -_#sha384: #HashAlgorithm & "sha384" -_#sha512: #HashAlgorithm & "sha512" -_#empty: #HashAlgorithm & "" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/cluster_task_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/cluster_task_types_go_gen.cue deleted file mode 100644 index ad74812..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/cluster_task_types_go_gen.cue +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// ClusterTask is a Task with a cluster scope. ClusterTasks are used to -// represent Tasks that should be publicly addressable from any namespace in the -// cluster. -// -// Deprecated: Please use the cluster resolver instead. -#ClusterTask: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // Spec holds the desired state of the Task from the client - // +optional - spec?: #TaskSpec @go(Spec) -} - -// ClusterTaskList contains a list of ClusterTask -#ClusterTaskList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterTask] @go(Items,[]ClusterTask) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/container_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/container_types_go_gen.cue deleted file mode 100644 index 654cc1b..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/container_types_go_gen.cue +++ /dev/null @@ -1,655 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -import ( - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// Step runs a subcomponent of a Task -#Step: { - // Name of the Step specified as a DNS_LABEL. - // Each Step in a Task must have a unique name. - name: string @go(Name) @protobuf(1,bytes,opt) - - // Image reference name to run for this Step. - // More info: https://kubernetes.io/docs/concepts/containers/images - // +optional - image?: string @go(Image) @protobuf(2,bytes,opt) - - // Entrypoint array. Not executed within a shell. - // The image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - // +listType=atomic - command?: [...string] @go(Command,[]string) @protobuf(3,bytes,rep) - - // Arguments to the entrypoint. - // The image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - // +listType=atomic - args?: [...string] @go(Args,[]string) @protobuf(4,bytes,rep) - - // Step's working directory. - // If not specified, the container runtime's default will be used, which - // might be configured in the container image. - // Cannot be updated. - // +optional - workingDir?: string @go(WorkingDir) @protobuf(5,bytes,opt) - - // List of ports to expose from the Step's container. Exposing a port here gives - // the system additional information about the network connections a - // container uses, but is primarily informational. Not specifying a port here - // DOES NOT prevent that port from being exposed. Any port which is - // listening on the default "0.0.0.0" address inside a container will be - // accessible from the network. - // Cannot be updated. - // - // Deprecated: This field will be removed in a future release. - // - // +optional - // +patchMergeKey=containerPort - // +patchStrategy=merge - // +listType=map - // +listMapKey=containerPort - // +listMapKey=protocol - ports?: [...corev1.#ContainerPort] @go(DeprecatedPorts,[]corev1.ContainerPort) @protobuf(6,bytes,rep) - - // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - // +listType=atomic - envFrom?: [...corev1.#EnvFromSource] @go(EnvFrom,[]corev1.EnvFromSource) @protobuf(19,bytes,rep) - - // List of environment variables to set in the container. - // Cannot be updated. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=atomic - env?: [...corev1.#EnvVar] @go(Env,[]corev1.EnvVar) @protobuf(7,bytes,rep) - - // Compute Resources required by this Step. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - // +optional - resources?: corev1.#ResourceRequirements @go(Resources) @protobuf(8,bytes,opt) - - // Volumes to mount into the Step's filesystem. - // Cannot be updated. - // +optional - // +patchMergeKey=mountPath - // +patchStrategy=merge - // +listType=atomic - volumeMounts?: [...corev1.#VolumeMount] @go(VolumeMounts,[]corev1.VolumeMount) @protobuf(9,bytes,rep) - - // volumeDevices is the list of block devices to be used by the Step. - // +patchMergeKey=devicePath - // +patchStrategy=merge - // +optional - // +listType=atomic - volumeDevices?: [...corev1.#VolumeDevice] @go(VolumeDevices,[]corev1.VolumeDevice) @protobuf(21,bytes,rep) - - // Periodic probe of container liveness. - // Step will be restarted if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // - // Deprecated: This field will be removed in a future release. - // - // +optional - livenessProbe?: null | corev1.#Probe @go(DeprecatedLivenessProbe,*corev1.Probe) @protobuf(10,bytes,opt) - - // Periodic probe of container service readiness. - // Step will be removed from service endpoints if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // - // Deprecated: This field will be removed in a future release. - // - // +optional - readinessProbe?: null | corev1.#Probe @go(DeprecatedReadinessProbe,*corev1.Probe) @protobuf(11,bytes,opt) - - // DeprecatedStartupProbe indicates that the Pod this Step runs in has successfully initialized. - // If specified, no other probes are executed until this completes successfully. - // If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. - // This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, - // when it might take a long time to load data or warm a cache, than during steady-state operation. - // This cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // - // Deprecated: This field will be removed in a future release. - // - // +optional - startupProbe?: null | corev1.#Probe @go(DeprecatedStartupProbe,*corev1.Probe) @protobuf(22,bytes,opt) - - // Actions that the management system should take in response to container lifecycle events. - // Cannot be updated. - // - // Deprecated: This field will be removed in a future release. - // - // +optional - lifecycle?: null | corev1.#Lifecycle @go(DeprecatedLifecycle,*corev1.Lifecycle) @protobuf(12,bytes,opt) - - // Deprecated: This field will be removed in a future release and can't be meaningfully used. - // +optional - terminationMessagePath?: string @go(DeprecatedTerminationMessagePath) @protobuf(13,bytes,opt) - - // Deprecated: This field will be removed in a future release and can't be meaningfully used. - // +optional - terminationMessagePolicy?: corev1.#TerminationMessagePolicy @go(DeprecatedTerminationMessagePolicy) @protobuf(20,bytes,opt,casttype=TerminationMessagePolicy) - - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - imagePullPolicy?: corev1.#PullPolicy @go(ImagePullPolicy) @protobuf(14,bytes,opt,casttype=PullPolicy) - - // SecurityContext defines the security options the Step should be run with. - // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - securityContext?: null | corev1.#SecurityContext @go(SecurityContext,*corev1.SecurityContext) @protobuf(15,bytes,opt) - - // Whether this container should allocate a buffer for stdin in the container runtime. If this - // is not set, reads from stdin in the container will always result in EOF. - // Default is false. - // - // Deprecated: This field will be removed in a future release. - // - // +optional - stdin?: bool @go(DeprecatedStdin) @protobuf(16,varint,opt) - - // Whether the container runtime should close the stdin channel after it has been opened by - // a single attach. When stdin is true the stdin stream will remain open across multiple attach - // sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the - // first client attaches to stdin, and then remains open and accepts data until the client disconnects, - // at which time stdin is closed and remains closed until the container is restarted. If this - // flag is false, a container processes that reads from stdin will never receive an EOF. - // Default is false - // - // Deprecated: This field will be removed in a future release. - // - // +optional - stdinOnce?: bool @go(DeprecatedStdinOnce) @protobuf(17,varint,opt) - - // Whether this container should allocate a DeprecatedTTY for itself, also requires 'stdin' to be true. - // Default is false. - // - // Deprecated: This field will be removed in a future release. - // - // +optional - tty?: bool @go(DeprecatedTTY) @protobuf(18,varint,opt) - - // Script is the contents of an executable file to execute. - // - // If Script is not empty, the Step cannot have an Command and the Args will be passed to the Script. - // +optional - script?: string @go(Script) - - // Timeout is the time after which the step times out. Defaults to never. - // Refer to Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration - // +optional - timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) - - // This is an alpha field. You must set the "enable-api-fields" feature flag to "alpha" - // for this field to be supported. - // - // Workspaces is a list of workspaces from the Task that this Step wants - // exclusive access to. Adding a workspace to this list means that any - // other Step or Sidecar that does not also request this Workspace will - // not have access to it. - // +optional - // +listType=atomic - workspaces?: [...#WorkspaceUsage] @go(Workspaces,[]WorkspaceUsage) - - // OnError defines the exiting behavior of a container on error - // can be set to [ continue | stopAndFail ] - onError?: #OnErrorType @go(OnError) - - // Stores configuration for the stdout stream of the step. - // +optional - stdoutConfig?: null | #StepOutputConfig @go(StdoutConfig,*StepOutputConfig) - - // Stores configuration for the stderr stream of the step. - // +optional - stderrConfig?: null | #StepOutputConfig @go(StderrConfig,*StepOutputConfig) -} - -// OnErrorType defines a list of supported exiting behavior of a container on error -#OnErrorType: string // #enumOnErrorType - -#enumOnErrorType: - #StopAndFail | - #Continue - -// StopAndFail indicates exit the taskRun if the container exits with non-zero exit code -#StopAndFail: #OnErrorType & "stopAndFail" - -// Continue indicates continue executing the rest of the steps irrespective of the container exit code -#Continue: #OnErrorType & "continue" - -// StepOutputConfig stores configuration for a step output stream. -#StepOutputConfig: { - // Path to duplicate stdout stream to on container's local filesystem. - // +optional - path?: string @go(Path) -} - -// StepTemplate is a template for a Step -#StepTemplate: { - // Default name for each Step specified as a DNS_LABEL. - // Each Step in a Task must have a unique name. - // Cannot be updated. - // - // Deprecated: This field will be removed in a future release. - // - name: string @go(DeprecatedName) @protobuf(1,bytes,opt) - - // Default image name to use for each Step. - // More info: https://kubernetes.io/docs/concepts/containers/images - // This field is optional to allow higher level config management to default or override - // container images in workload controllers like Deployments and StatefulSets. - // +optional - image?: string @go(Image) @protobuf(2,bytes,opt) - - // Entrypoint array. Not executed within a shell. - // The docker image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the Step's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - // +listType=atomic - command?: [...string] @go(Command,[]string) @protobuf(3,bytes,rep) - - // Arguments to the entrypoint. - // The image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the Step's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - // +listType=atomic - args?: [...string] @go(Args,[]string) @protobuf(4,bytes,rep) - - // Step's working directory. - // If not specified, the container runtime's default will be used, which - // might be configured in the container image. - // Cannot be updated. - // +optional - workingDir?: string @go(WorkingDir) @protobuf(5,bytes,opt) - - // List of ports to expose from the Step's container. Exposing a port here gives - // the system additional information about the network connections a - // container uses, but is primarily informational. Not specifying a port here - // DOES NOT prevent that port from being exposed. Any port which is - // listening on the default "0.0.0.0" address inside a container will be - // accessible from the network. - // Cannot be updated. - // - // Deprecated: This field will be removed in a future release. - // - // +optional - // +patchMergeKey=containerPort - // +patchStrategy=merge - // +listType=map - // +listMapKey=containerPort - // +listMapKey=protocol - ports?: [...corev1.#ContainerPort] @go(DeprecatedPorts,[]corev1.ContainerPort) @protobuf(6,bytes,rep) - - // List of sources to populate environment variables in the Step. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - // +listType=atomic - envFrom?: [...corev1.#EnvFromSource] @go(EnvFrom,[]corev1.EnvFromSource) @protobuf(19,bytes,rep) - - // List of environment variables to set in the container. - // Cannot be updated. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=atomic - env?: [...corev1.#EnvVar] @go(Env,[]corev1.EnvVar) @protobuf(7,bytes,rep) - - // Compute Resources required by this Step. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - // +optional - resources?: corev1.#ResourceRequirements @go(Resources) @protobuf(8,bytes,opt) - - // Volumes to mount into the Step's filesystem. - // Cannot be updated. - // +optional - // +patchMergeKey=mountPath - // +patchStrategy=merge - // +listType=atomic - volumeMounts?: [...corev1.#VolumeMount] @go(VolumeMounts,[]corev1.VolumeMount) @protobuf(9,bytes,rep) - - // volumeDevices is the list of block devices to be used by the Step. - // +patchMergeKey=devicePath - // +patchStrategy=merge - // +optional - // +listType=atomic - volumeDevices?: [...corev1.#VolumeDevice] @go(VolumeDevices,[]corev1.VolumeDevice) @protobuf(21,bytes,rep) - - // Periodic probe of container liveness. - // Container will be restarted if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // - // Deprecated: This field will be removed in a future release. - // - // +optional - livenessProbe?: null | corev1.#Probe @go(DeprecatedLivenessProbe,*corev1.Probe) @protobuf(10,bytes,opt) - - // Periodic probe of container service readiness. - // Container will be removed from service endpoints if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // - // Deprecated: This field will be removed in a future release. - // - // +optional - readinessProbe?: null | corev1.#Probe @go(DeprecatedReadinessProbe,*corev1.Probe) @protobuf(11,bytes,opt) - - // DeprecatedStartupProbe indicates that the Pod has successfully initialized. - // If specified, no other probes are executed until this completes successfully. - // If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. - // This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, - // when it might take a long time to load data or warm a cache, than during steady-state operation. - // This cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // - // Deprecated: This field will be removed in a future release. - // - // +optional - startupProbe?: null | corev1.#Probe @go(DeprecatedStartupProbe,*corev1.Probe) @protobuf(22,bytes,opt) - - // Actions that the management system should take in response to container lifecycle events. - // Cannot be updated. - // - // Deprecated: This field will be removed in a future release. - // - // +optional - lifecycle?: null | corev1.#Lifecycle @go(DeprecatedLifecycle,*corev1.Lifecycle) @protobuf(12,bytes,opt) - - // Deprecated: This field will be removed in a future release and cannot be meaningfully used. - // +optional - terminationMessagePath?: string @go(DeprecatedTerminationMessagePath) @protobuf(13,bytes,opt) - - // Deprecated: This field will be removed in a future release and cannot be meaningfully used. - // +optional - terminationMessagePolicy?: corev1.#TerminationMessagePolicy @go(DeprecatedTerminationMessagePolicy) @protobuf(20,bytes,opt,casttype=TerminationMessagePolicy) - - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - imagePullPolicy?: corev1.#PullPolicy @go(ImagePullPolicy) @protobuf(14,bytes,opt,casttype=PullPolicy) - - // SecurityContext defines the security options the Step should be run with. - // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - securityContext?: null | corev1.#SecurityContext @go(SecurityContext,*corev1.SecurityContext) @protobuf(15,bytes,opt) - - // Whether this Step should allocate a buffer for stdin in the container runtime. If this - // is not set, reads from stdin in the Step will always result in EOF. - // Default is false. - // - // Deprecated: This field will be removed in a future release. - // - // +optional - stdin?: bool @go(DeprecatedStdin) @protobuf(16,varint,opt) - - // Whether the container runtime should close the stdin channel after it has been opened by - // a single attach. When stdin is true the stdin stream will remain open across multiple attach - // sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the - // first client attaches to stdin, and then remains open and accepts data until the client disconnects, - // at which time stdin is closed and remains closed until the container is restarted. If this - // flag is false, a container processes that reads from stdin will never receive an EOF. - // Default is false - // - // Deprecated: This field will be removed in a future release. - // - // +optional - stdinOnce?: bool @go(DeprecatedStdinOnce) @protobuf(17,varint,opt) - - // Whether this Step should allocate a DeprecatedTTY for itself, also requires 'stdin' to be true. - // Default is false. - // - // Deprecated: This field will be removed in a future release. - // - // +optional - tty?: bool @go(DeprecatedTTY) @protobuf(18,varint,opt) -} - -// Sidecar has nearly the same data structure as Step but does not have the ability to timeout. -#Sidecar: { - // Name of the Sidecar specified as a DNS_LABEL. - // Each Sidecar in a Task must have a unique name (DNS_LABEL). - // Cannot be updated. - name: string @go(Name) @protobuf(1,bytes,opt) - - // Image name to be used by the Sidecar. - // More info: https://kubernetes.io/docs/concepts/containers/images - // +optional - image?: string @go(Image) @protobuf(2,bytes,opt) - - // Entrypoint array. Not executed within a shell. - // The image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the Sidecar's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - // +listType=atomic - command?: [...string] @go(Command,[]string) @protobuf(3,bytes,rep) - - // Arguments to the entrypoint. - // The image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - // +listType=atomic - args?: [...string] @go(Args,[]string) @protobuf(4,bytes,rep) - - // Sidecar's working directory. - // If not specified, the container runtime's default will be used, which - // might be configured in the container image. - // Cannot be updated. - // +optional - workingDir?: string @go(WorkingDir) @protobuf(5,bytes,opt) - - // List of ports to expose from the Sidecar. Exposing a port here gives - // the system additional information about the network connections a - // container uses, but is primarily informational. Not specifying a port here - // DOES NOT prevent that port from being exposed. Any port which is - // listening on the default "0.0.0.0" address inside a container will be - // accessible from the network. - // Cannot be updated. - // +optional - // +patchMergeKey=containerPort - // +patchStrategy=merge - // +listType=map - // +listMapKey=containerPort - // +listMapKey=protocol - ports?: [...corev1.#ContainerPort] @go(Ports,[]corev1.ContainerPort) @protobuf(6,bytes,rep) - - // List of sources to populate environment variables in the Sidecar. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the Sidecar is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - // +listType=atomic - envFrom?: [...corev1.#EnvFromSource] @go(EnvFrom,[]corev1.EnvFromSource) @protobuf(19,bytes,rep) - - // List of environment variables to set in the Sidecar. - // Cannot be updated. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=atomic - env?: [...corev1.#EnvVar] @go(Env,[]corev1.EnvVar) @protobuf(7,bytes,rep) - - // Compute Resources required by this Sidecar. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - // +optional - resources?: corev1.#ResourceRequirements @go(Resources) @protobuf(8,bytes,opt) - - // Volumes to mount into the Sidecar's filesystem. - // Cannot be updated. - // +optional - // +patchMergeKey=mountPath - // +patchStrategy=merge - // +listType=atomic - volumeMounts?: [...corev1.#VolumeMount] @go(VolumeMounts,[]corev1.VolumeMount) @protobuf(9,bytes,rep) - - // volumeDevices is the list of block devices to be used by the Sidecar. - // +patchMergeKey=devicePath - // +patchStrategy=merge - // +optional - // +listType=atomic - volumeDevices?: [...corev1.#VolumeDevice] @go(VolumeDevices,[]corev1.VolumeDevice) @protobuf(21,bytes,rep) - - // Periodic probe of Sidecar liveness. - // Container will be restarted if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - livenessProbe?: null | corev1.#Probe @go(LivenessProbe,*corev1.Probe) @protobuf(10,bytes,opt) - - // Periodic probe of Sidecar service readiness. - // Container will be removed from service endpoints if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - readinessProbe?: null | corev1.#Probe @go(ReadinessProbe,*corev1.Probe) @protobuf(11,bytes,opt) - - // StartupProbe indicates that the Pod the Sidecar is running in has successfully initialized. - // If specified, no other probes are executed until this completes successfully. - // If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. - // This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, - // when it might take a long time to load data or warm a cache, than during steady-state operation. - // This cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - startupProbe?: null | corev1.#Probe @go(StartupProbe,*corev1.Probe) @protobuf(22,bytes,opt) - - // Actions that the management system should take in response to Sidecar lifecycle events. - // Cannot be updated. - // +optional - lifecycle?: null | corev1.#Lifecycle @go(Lifecycle,*corev1.Lifecycle) @protobuf(12,bytes,opt) - - // Optional: Path at which the file to which the Sidecar's termination message - // will be written is mounted into the Sidecar's filesystem. - // Message written is intended to be brief final status, such as an assertion failure message. - // Will be truncated by the node if greater than 4096 bytes. The total message length across - // all containers will be limited to 12kb. - // Defaults to /dev/termination-log. - // Cannot be updated. - // +optional - terminationMessagePath?: string @go(TerminationMessagePath) @protobuf(13,bytes,opt) - - // Indicate how the termination message should be populated. File will use the contents of - // terminationMessagePath to populate the Sidecar status message on both success and failure. - // FallbackToLogsOnError will use the last chunk of Sidecar log output if the termination - // message file is empty and the Sidecar exited with an error. - // The log output is limited to 2048 bytes or 80 lines, whichever is smaller. - // Defaults to File. - // Cannot be updated. - // +optional - terminationMessagePolicy?: corev1.#TerminationMessagePolicy @go(TerminationMessagePolicy) @protobuf(20,bytes,opt,casttype=TerminationMessagePolicy) - - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - imagePullPolicy?: corev1.#PullPolicy @go(ImagePullPolicy) @protobuf(14,bytes,opt,casttype=PullPolicy) - - // SecurityContext defines the security options the Sidecar should be run with. - // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - securityContext?: null | corev1.#SecurityContext @go(SecurityContext,*corev1.SecurityContext) @protobuf(15,bytes,opt) - - // Whether this Sidecar should allocate a buffer for stdin in the container runtime. If this - // is not set, reads from stdin in the Sidecar will always result in EOF. - // Default is false. - // +optional - stdin?: bool @go(Stdin) @protobuf(16,varint,opt) - - // Whether the container runtime should close the stdin channel after it has been opened by - // a single attach. When stdin is true the stdin stream will remain open across multiple attach - // sessions. If stdinOnce is set to true, stdin is opened on Sidecar start, is empty until the - // first client attaches to stdin, and then remains open and accepts data until the client disconnects, - // at which time stdin is closed and remains closed until the Sidecar is restarted. If this - // flag is false, a container processes that reads from stdin will never receive an EOF. - // Default is false - // +optional - stdinOnce?: bool @go(StdinOnce) @protobuf(17,varint,opt) - - // Whether this Sidecar should allocate a TTY for itself, also requires 'stdin' to be true. - // Default is false. - // +optional - tty?: bool @go(TTY) @protobuf(18,varint,opt) - - // Script is the contents of an executable file to execute. - // - // If Script is not empty, the Step cannot have an Command or Args. - // +optional - script?: string @go(Script) - - // This is an alpha field. You must set the "enable-api-fields" feature flag to "alpha" - // for this field to be supported. - // - // Workspaces is a list of workspaces from the Task that this Sidecar wants - // exclusive access to. Adding a workspace to this list means that any - // other Step or Sidecar that does not also request this Workspace will - // not have access to it. - // +optional - // +listType=atomic - workspaces?: [...#WorkspaceUsage] @go(Workspaces,[]WorkspaceUsage) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/conversion_error_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/conversion_error_go_gen.cue deleted file mode 100644 index c04e534..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/conversion_error_go_gen.cue +++ /dev/null @@ -1,12 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -import "knative.dev/pkg/apis" - -// ConditionTypeConvertible is a Warning condition that is set on -// resources when they cannot be converted to warn of a forthcoming -// breakage. -#ConditionTypeConvertible: apis.#ConditionType & "Convertible" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/customrun_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/customrun_types_go_gen.cue deleted file mode 100644 index c79d698..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/customrun_types_go_gen.cue +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -import ( - "k8s.io/apimachinery/pkg/runtime" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runv1beta1 "github.com/tektoncd/pipeline/pkg/apis/run/v1beta1" -) - -// EmbeddedCustomRunSpec allows custom task definitions to be embedded -#EmbeddedCustomRunSpec: { - runtime.#TypeMeta - - // +optional - metadata?: #PipelineTaskMetadata @go(Metadata) - - // Spec is a specification of a custom task - // +optional - spec?: runtime.#RawExtension @go(Spec) -} - -// CustomRunSpec defines the desired state of CustomRun -#CustomRunSpec: { - // +optional - customRef?: null | #TaskRef @go(CustomRef,*TaskRef) - - // Spec is a specification of a custom task - // +optional - customSpec?: null | #EmbeddedCustomRunSpec @go(CustomSpec,*EmbeddedCustomRunSpec) - - // +optional - // +listType=atomic - params?: #Params @go(Params) - - // Used for cancelling a customrun (and maybe more later on) - // +optional - status?: #CustomRunSpecStatus @go(Status) - - // Status message for cancellation. - // +optional - statusMessage?: #CustomRunSpecStatusMessage @go(StatusMessage) - - // Used for propagating retries count to custom tasks - // +optional - retries?: int @go(Retries) - - // +optional - serviceAccountName: string @go(ServiceAccountName) - - // Time after which the custom-task times out. - // Refer Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration - // +optional - timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) - - // Workspaces is a list of WorkspaceBindings from volumes to workspaces. - // +optional - // +listType=atomic - workspaces?: [...#WorkspaceBinding] @go(Workspaces,[]WorkspaceBinding) -} - -// CustomRunSpecStatus defines the taskrun spec status the user can provide -#CustomRunSpecStatus: string // #enumCustomRunSpecStatus - -#enumCustomRunSpecStatus: - #CustomRunSpecStatusCancelled - -// CustomRunSpecStatusCancelled indicates that the user wants to cancel the run, -// if not already cancelled or terminated -#CustomRunSpecStatusCancelled: #CustomRunSpecStatus & "RunCancelled" - -// CustomRunSpecStatusMessage defines human readable status messages for the TaskRun. -#CustomRunSpecStatusMessage: string // #enumCustomRunSpecStatusMessage - -#enumCustomRunSpecStatusMessage: - #CustomRunCancelledByPipelineMsg | - #CustomRunCancelledByPipelineTimeoutMsg - -// CustomRunCancelledByPipelineMsg indicates that the PipelineRun of which part this CustomRun was -// has been cancelled. -#CustomRunCancelledByPipelineMsg: #CustomRunSpecStatusMessage & "CustomRun cancelled as the PipelineRun it belongs to has been cancelled." - -// CustomRunCancelledByPipelineTimeoutMsg indicates that the Run was cancelled because the PipelineRun running it timed out. -#CustomRunCancelledByPipelineTimeoutMsg: #CustomRunSpecStatusMessage & "CustomRun cancelled as the PipelineRun it belongs to has timed out." - -// CustomRunReason is an enum used to store all Run reason for the Succeeded condition that are controlled by the CustomRun itself. -#CustomRunReason: string // #enumCustomRunReason - -#enumCustomRunReason: - #CustomRunReasonStarted | - #CustomRunReasonRunning | - #CustomRunReasonSuccessful | - #CustomRunReasonFailed | - #CustomRunReasonCancelled | - #CustomRunReasonTimedOut | - #CustomRunReasonWorkspaceNotSupported - -// CustomRunReasonStarted is the reason set when the CustomRun has just started. -#CustomRunReasonStarted: #CustomRunReason & "Started" - -// CustomRunReasonRunning is the reason set when the CustomRun is running. -#CustomRunReasonRunning: #CustomRunReason & "Running" - -// CustomRunReasonSuccessful is the reason set when the CustomRun completed successfully. -#CustomRunReasonSuccessful: #CustomRunReason & "Succeeded" - -// CustomRunReasonFailed is the reason set when the CustomRun completed with a failure. -#CustomRunReasonFailed: #CustomRunReason & "Failed" - -// CustomRunReasonCancelled must be used in the Condition Reason to indicate that a CustomRun was cancelled. -#CustomRunReasonCancelled: #CustomRunReason & "CustomRunCancelled" - -// CustomRunReasonTimedOut must be used in the Condition Reason to indicate that a CustomRun was timed out. -#CustomRunReasonTimedOut: #CustomRunReason & "CustomRunTimedOut" - -// CustomRunReasonWorkspaceNotSupported can be used in the Condition Reason to indicate that the -// CustomRun contains a workspace which is not supported by this custom task. -#CustomRunReasonWorkspaceNotSupported: #CustomRunReason & "CustomRunWorkspaceNotSupported" - -// CustomRunStatus defines the observed state of CustomRun. -#CustomRunStatus: runv1beta1.#CustomRunStatus - -// CustomRunStatusFields holds the fields of CustomRun's status. This is defined -// separately and inlined so that other types can readily consume these fields -// via duck typing. -#CustomRunStatusFields: runv1beta1.#CustomRunStatusFields - -// CustomRunResult used to describe the results of a task -#CustomRunResult: runv1beta1.#CustomRunResult - -// CustomRun represents a single execution of a Custom Task. -// -// +k8s:openapi-gen=true -#CustomRun: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +optional - spec?: #CustomRunSpec @go(Spec) - - // +optional - status?: runv1beta1.#CustomRunStatus @go(Status) -} - -// CustomRunList contains a list of CustomRun -#CustomRunList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CustomRun] @go(Items,[]CustomRun) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/doc_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/doc_go_gen.cue deleted file mode 100644 index 3425b79..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/doc_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -// Package v1beta1 contains API Schema definitions for the pipeline v1beta1 API group -// +k8s:openapi-gen=true -// +k8s:deepcopy-gen=package,register -// +k8s:conversion-gen=github.com/tektoncd/pipeline/pkg/apis/pipeline -// +k8s:defaulter-gen=TypeMeta -// +groupName=tekton.dev -package v1beta1 diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/matrix_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/matrix_types_go_gen.cue deleted file mode 100644 index f10bbcd..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/matrix_types_go_gen.cue +++ /dev/null @@ -1,40 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -// Matrix is used to fan out Tasks in a Pipeline -#Matrix: { - // Params is a list of parameters used to fan out the pipelineTask - // Params takes only `Parameters` of type `"array"` - // Each array element is supplied to the `PipelineTask` by substituting `params` of type `"string"` in the underlying `Task`. - // The names of the `params` in the `Matrix` must match the names of the `params` in the underlying `Task` that they will be substituting. - // +listType=atomic - params?: #Params @go(Params) - - // Include is a list of IncludeParams which allows passing in specific combinations of Parameters into the Matrix. - // +optional - // +listType=atomic - include?: #IncludeParamsList @go(Include) -} - -// IncludeParamsList is a list of IncludeParams which allows passing in specific combinations of Parameters into the Matrix. -#IncludeParamsList: [...#IncludeParams] - -// IncludeParams allows passing in a specific combinations of Parameters into the Matrix. -#IncludeParams: { - // Name the specified combination - name?: string @go(Name) - - // Params takes only `Parameters` of type `"string"` - // The names of the `params` must match the names of the `params` in the underlying `Task` - // +listType=atomic - params?: #Params @go(Params) -} - -// Combination is a map, mainly defined to hold a single combination from a Matrix with key as param.Name and value as param.Value -#Combination: {[string]: string} - -// Combinations is a Combination list -#Combinations: [...#Combination] diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types_go_gen.cue deleted file mode 100644 index 04e26cd..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types_go_gen.cue +++ /dev/null @@ -1,75 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -#ParamsPrefix: "params" - -// ParamSpec defines arbitrary parameters needed beyond typed inputs (such as -// resources). Parameter values are provided by users as inputs on a TaskRun -// or PipelineRun. -#ParamSpec: { - // Name declares the name by which a parameter is referenced. - name: string @go(Name) - - // Type is the user-specified type of the parameter. The possible types - // are currently "string", "array" and "object", and "string" is the default. - // +optional - type?: #ParamType @go(Type) - - // Description is a user-facing description of the parameter that may be - // used to populate a UI. - // +optional - description?: string @go(Description) - - // Properties is the JSON Schema properties to support key-value pairs parameter. - // +optional - properties?: {[string]: #PropertySpec} @go(Properties,map[string]PropertySpec) - - // Default is the value a parameter takes if no input value is supplied. If - // default is set, a Task may be executed without a supplied value for the - // parameter. - // +optional - default?: null | #ParamValue @go(Default,*ParamValue) -} - -// ParamSpecs is a list of ParamSpec -#ParamSpecs: [...#ParamSpec] - -// PropertySpec defines the struct for object keys -#PropertySpec: { - type?: #ParamType @go(Type) -} - -// Param declares an ParamValues to use for the parameter called name. -#Param: { - name: string @go(Name) - value: #ParamValue @go(Value) -} - -// Params is a list of Param -#Params: [...#Param] - -// ParamType indicates the type of an input parameter; -// Used to distinguish between a single string and an array of strings. -#ParamType: string // #enumParamType - -#enumParamType: - #ParamTypeString | - #ParamTypeArray | - #ParamTypeObject - -#ParamTypeString: #ParamType & "string" -#ParamTypeArray: #ParamType & "array" -#ParamTypeObject: #ParamType & "object" - -// ParamValue is a type that can hold a single string or string array. -// Used in JSON unmarshalling so that a single JSON field can accept -// either an individual string or an array of strings. -#ParamValue: _ - -// ArrayOrString is deprecated, this is to keep backward compatibility -// -// Deprecated: Use ParamValue instead. -#ArrayOrString: _ diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_interface_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_interface_go_gen.cue deleted file mode 100644 index d046c69..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_interface_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -// PipelineObject is implemented by Pipeline -#PipelineObject: _ diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_types_go_gen.cue deleted file mode 100644 index 8b7eb20..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_types_go_gen.cue +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -// PipelineTasksAggregateStatus is a param representing aggregate status of all dag pipelineTasks -#PipelineTasksAggregateStatus: "tasks.status" - -// PipelineTasks is a value representing a task is a member of "tasks" section of the pipeline -#PipelineTasks: "tasks" - -// PipelineFinallyTasks is a value representing a task is a member of "finally" section of the pipeline -#PipelineFinallyTasks: "finally" - -// Pipeline describes a list of Tasks to execute. It expresses how outputs -// of tasks feed into inputs of subsequent tasks. -// -// Deprecated: Please use v1.Pipeline instead. -#Pipeline: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // Spec holds the desired state of the Pipeline from the client - // +optional - spec: #PipelineSpec @go(Spec) -} - -// PipelineSpec defines the desired state of Pipeline. -#PipelineSpec: { - // DisplayName is a user-facing name of the pipeline that may be - // used to populate a UI. - // +optional - displayName?: string @go(DisplayName) - - // Description is a user-facing description of the pipeline that may be - // used to populate a UI. - // +optional - description?: string @go(Description) - - // Deprecated: Unused, preserved only for backwards compatibility - // +listType=atomic - resources?: [...#PipelineDeclaredResource] @go(Resources,[]PipelineDeclaredResource) - - // Tasks declares the graph of Tasks that execute when this Pipeline is run. - // +listType=atomic - tasks?: [...#PipelineTask] @go(Tasks,[]PipelineTask) - - // Params declares a list of input parameters that must be supplied when - // this Pipeline is run. - // +listType=atomic - params?: #ParamSpecs @go(Params) - - // Workspaces declares a set of named workspaces that are expected to be - // provided by a PipelineRun. - // +optional - // +listType=atomic - workspaces?: [...#PipelineWorkspaceDeclaration] @go(Workspaces,[]PipelineWorkspaceDeclaration) - - // Results are values that this pipeline can output once run - // +optional - // +listType=atomic - results?: [...#PipelineResult] @go(Results,[]PipelineResult) - - // Finally declares the list of Tasks that execute just before leaving the Pipeline - // i.e. either after all Tasks are finished executing successfully - // or after a failure which would result in ending the Pipeline - // +listType=atomic - finally?: [...#PipelineTask] @go(Finally,[]PipelineTask) -} - -// PipelineResult used to describe the results of a pipeline -#PipelineResult: { - // Name the given name - name: string @go(Name) - - // Type is the user-specified type of the result. - // The possible types are 'string', 'array', and 'object', with 'string' as the default. - // 'array' and 'object' types are alpha features. - type?: #ResultsType @go(Type) - - // Description is a human-readable description of the result - // +optional - description: string @go(Description) - - // Value the expression used to retrieve the value - value: #ParamValue @go(Value) -} - -// PipelineTaskMetadata contains the labels or annotations for an EmbeddedTask -#PipelineTaskMetadata: { - // +optional - labels?: {[string]: string} @go(Labels,map[string]string) - - // +optional - annotations?: {[string]: string} @go(Annotations,map[string]string) -} - -// EmbeddedTask is used to define a Task inline within a Pipeline's PipelineTasks. -#EmbeddedTask: { - runtime.#TypeMeta - - // Spec is a specification of a custom task - // +optional - spec?: runtime.#RawExtension @go(Spec) - - // +optional - metadata?: #PipelineTaskMetadata @go(Metadata) - - #TaskSpec -} - -// PipelineTask defines a task in a Pipeline, passing inputs from both -// Params and from the output of previous tasks. -#PipelineTask: { - // Name is the name of this task within the context of a Pipeline. Name is - // used as a coordinate with the `from` and `runAfter` fields to establish - // the execution order of tasks relative to one another. - name?: string @go(Name) - - // DisplayName is the display name of this task within the context of a Pipeline. - // This display name may be used to populate a UI. - // +optional - displayName?: string @go(DisplayName) - - // Description is the description of this task within the context of a Pipeline. - // This description may be used to populate a UI. - // +optional - description?: string @go(Description) - - // TaskRef is a reference to a task definition. - // +optional - taskRef?: null | #TaskRef @go(TaskRef,*TaskRef) - - // TaskSpec is a specification of a task - // +optional - taskSpec?: null | #EmbeddedTask @go(TaskSpec,*EmbeddedTask) - - // WhenExpressions is a list of when expressions that need to be true for the task to run - // +optional - when?: #WhenExpressions @go(WhenExpressions) - - // Retries represents how many times this task should be retried in case of task failure: ConditionSucceeded set to False - // +optional - retries?: int @go(Retries) - - // RunAfter is the list of PipelineTask names that should be executed before - // this Task executes. (Used to force a specific ordering in graph execution.) - // +optional - // +listType=atomic - runAfter?: [...string] @go(RunAfter,[]string) - - // Deprecated: Unused, preserved only for backwards compatibility - // +optional - resources?: null | #PipelineTaskResources @go(Resources,*PipelineTaskResources) - - // Parameters declares parameters passed to this task. - // +optional - // +listType=atomic - params?: #Params @go(Params) - - // Matrix declares parameters used to fan out this task. - // +optional - matrix?: null | #Matrix @go(Matrix,*Matrix) - - // Workspaces maps workspaces from the pipeline spec to the workspaces - // declared in the Task. - // +optional - // +listType=atomic - workspaces?: [...#WorkspacePipelineTaskBinding] @go(Workspaces,[]WorkspacePipelineTaskBinding) - - // Time after which the TaskRun times out. Defaults to 1 hour. - // Refer Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration - // +optional - timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) - - // PipelineRef is a reference to a pipeline definition - // Note: PipelineRef is in preview mode and not yet supported - // +optional - pipelineRef?: null | #PipelineRef @go(PipelineRef,*PipelineRef) - - // PipelineSpec is a specification of a pipeline - // Note: PipelineSpec is in preview mode and not yet supported - // +optional - pipelineSpec?: null | #PipelineSpec @go(PipelineSpec,*PipelineSpec) -} - -// PipelineTaskList is a list of PipelineTasks -#PipelineTaskList: [...#PipelineTask] - -// PipelineTaskParam is used to provide arbitrary string parameters to a Task. -#PipelineTaskParam: { - name: string @go(Name) - value: string @go(Value) -} - -// PipelineList contains a list of Pipeline -#PipelineList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Pipeline] @go(Items,[]Pipeline) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_validation_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_validation_go_gen.cue deleted file mode 100644 index c182e50..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_validation_go_gen.cue +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -_#taskRef: "taskRef" -_#taskSpec: "taskSpec" -_#pipelineRef: "pipelineRef" -_#pipelineSpec: "pipelineSpec" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipelineref_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipelineref_types_go_gen.cue deleted file mode 100644 index c184283..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipelineref_types_go_gen.cue +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -// PipelineRef can be used to refer to a specific instance of a Pipeline. -#PipelineRef: { - // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - name?: string @go(Name) - - // API version of the referent - // +optional - apiVersion?: string @go(APIVersion) - - // Bundle url reference to a Tekton Bundle. - // - // Deprecated: Please use ResolverRef with the bundles resolver instead. - // +optional - bundle?: string @go(Bundle) - - // ResolverRef allows referencing a Pipeline in a remote location - // like a git repo. This field is only supported when the alpha - // feature gate is enabled. - // +optional - ResolverRef?: #ResolverRef -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipelinerun_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipelinerun_types_go_gen.cue deleted file mode 100644 index 2a411d7..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipelinerun_types_go_gen.cue +++ /dev/null @@ -1,397 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/tektoncd/pipeline/pkg/apis/pipeline/pod" - duckv1 "knative.dev/pkg/apis/duck/v1" - "k8s.io/apimachinery/pkg/runtime" - "github.com/tektoncd/pipeline/pkg/apis/run/v1beta1" - corev1 "k8s.io/api/core/v1" -) - -// PipelineRun represents a single execution of a Pipeline. PipelineRuns are how -// the graph of Tasks declared in a Pipeline are executed; they specify inputs -// to Pipelines such as parameter values and capture operational aspects of the -// Tasks execution such as service account and tolerations. Creating a -// PipelineRun creates TaskRuns for Tasks in the referenced Pipeline. -// -// Deprecated: Please use v1.PipelineRun instead. -#PipelineRun: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +optional - spec?: #PipelineRunSpec @go(Spec) - - // +optional - status?: #PipelineRunStatus @go(Status) -} - -// PipelineRunSpec defines the desired state of PipelineRun -#PipelineRunSpec: { - // +optional - pipelineRef?: null | #PipelineRef @go(PipelineRef,*PipelineRef) - - // +optional - pipelineSpec?: null | #PipelineSpec @go(PipelineSpec,*PipelineSpec) - - // Resources is a list of bindings specifying which actual instances of - // PipelineResources to use for the resources the Pipeline has declared - // it needs. - // - // Deprecated: Unused, preserved only for backwards compatibility - // +listType=atomic - resources?: [...#PipelineResourceBinding] @go(Resources,[]PipelineResourceBinding) - - // Params is a list of parameter names and values. - // +listType=atomic - params?: #Params @go(Params) - - // +optional - serviceAccountName?: string @go(ServiceAccountName) - - // Used for cancelling a pipelinerun (and maybe more later on) - // +optional - status?: #PipelineRunSpecStatus @go(Status) - - // Time after which the Pipeline times out. - // Currently three keys are accepted in the map - // pipeline, tasks and finally - // with Timeouts.pipeline >= Timeouts.tasks + Timeouts.finally - // +optional - timeouts?: null | #TimeoutFields @go(Timeouts,*TimeoutFields) - - // Timeout is the Time after which the Pipeline times out. - // Defaults to never. - // Refer to Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration - // - // Deprecated: use pipelineRunSpec.Timeouts.Pipeline instead - // - // +optional - timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) - - // PodTemplate holds pod specific configuration - podTemplate?: null | pod.#Template @go(PodTemplate,*pod.Template) - - // Workspaces holds a set of workspace bindings that must match names - // with those declared in the pipeline. - // +optional - // +listType=atomic - workspaces?: [...#WorkspaceBinding] @go(Workspaces,[]WorkspaceBinding) - - // TaskRunSpecs holds a set of runtime specs - // +optional - // +listType=atomic - taskRunSpecs?: [...#PipelineTaskRunSpec] @go(TaskRunSpecs,[]PipelineTaskRunSpec) -} - -// TimeoutFields allows granular specification of pipeline, task, and finally timeouts -#TimeoutFields: { - // Pipeline sets the maximum allowed duration for execution of the entire pipeline. The sum of individual timeouts for tasks and finally must not exceed this value. - pipeline?: null | metav1.#Duration @go(Pipeline,*metav1.Duration) - - // Tasks sets the maximum allowed duration of this pipeline's tasks - tasks?: null | metav1.#Duration @go(Tasks,*metav1.Duration) - - // Finally sets the maximum allowed duration of this pipeline's finally - finally?: null | metav1.#Duration @go(Finally,*metav1.Duration) -} - -// PipelineRunSpecStatus defines the pipelinerun spec status the user can provide -#PipelineRunSpecStatus: string - -// PipelineRunSpecStatusCancelled indicates that the user wants to cancel the task, -// if not already cancelled or terminated -#PipelineRunSpecStatusCancelled: "Cancelled" - -// PipelineRunSpecStatusCancelledRunFinally indicates that the user wants to cancel the pipeline run, -// if not already cancelled or terminated, but ensure finally is run normally -#PipelineRunSpecStatusCancelledRunFinally: "CancelledRunFinally" - -// PipelineRunSpecStatusStoppedRunFinally indicates that the user wants to stop the pipeline run, -// wait for already running tasks to be completed and run finally -// if not already cancelled or terminated -#PipelineRunSpecStatusStoppedRunFinally: "StoppedRunFinally" - -// PipelineRunSpecStatusPending indicates that the user wants to postpone starting a PipelineRun -// until some condition is met -#PipelineRunSpecStatusPending: "PipelineRunPending" - -// PipelineRunStatus defines the observed state of PipelineRun -#PipelineRunStatus: { - duckv1.#Status - - #PipelineRunStatusFields -} - -// PipelineRunReason represents a reason for the pipeline run "Succeeded" condition -#PipelineRunReason: string // #enumPipelineRunReason - -#enumPipelineRunReason: - #PipelineRunReasonStarted | - #PipelineRunReasonRunning | - #PipelineRunReasonSuccessful | - #PipelineRunReasonCompleted | - #PipelineRunReasonFailed | - #PipelineRunReasonCancelled | - #PipelineRunReasonPending | - #PipelineRunReasonTimedOut | - #PipelineRunReasonStopping | - #PipelineRunReasonCancelledRunningFinally | - #PipelineRunReasonStoppedRunningFinally - -// PipelineRunReasonStarted is the reason set when the PipelineRun has just started -#PipelineRunReasonStarted: #PipelineRunReason & "Started" - -// PipelineRunReasonRunning is the reason set when the PipelineRun is running -#PipelineRunReasonRunning: #PipelineRunReason & "Running" - -// PipelineRunReasonSuccessful is the reason set when the PipelineRun completed successfully -#PipelineRunReasonSuccessful: #PipelineRunReason & "Succeeded" - -// PipelineRunReasonCompleted is the reason set when the PipelineRun completed successfully with one or more skipped Tasks -#PipelineRunReasonCompleted: #PipelineRunReason & "Completed" - -// PipelineRunReasonFailed is the reason set when the PipelineRun completed with a failure -#PipelineRunReasonFailed: #PipelineRunReason & "Failed" - -// PipelineRunReasonCancelled is the reason set when the PipelineRun cancelled by the user -// This reason may be found with a corev1.ConditionFalse status, if the cancellation was processed successfully -// This reason may be found with a corev1.ConditionUnknown status, if the cancellation is being processed or failed -#PipelineRunReasonCancelled: #PipelineRunReason & "Cancelled" - -// PipelineRunReasonPending is the reason set when the PipelineRun is in the pending state -#PipelineRunReasonPending: #PipelineRunReason & "PipelineRunPending" - -// PipelineRunReasonTimedOut is the reason set when the PipelineRun has timed out -#PipelineRunReasonTimedOut: #PipelineRunReason & "PipelineRunTimeout" - -// PipelineRunReasonStopping indicates that no new Tasks will be scheduled by the controller, and the -// pipeline will stop once all running tasks complete their work -#PipelineRunReasonStopping: #PipelineRunReason & "PipelineRunStopping" - -// PipelineRunReasonCancelledRunningFinally indicates that pipeline has been gracefully cancelled -// and no new Tasks will be scheduled by the controller, but final tasks are now running -#PipelineRunReasonCancelledRunningFinally: #PipelineRunReason & "CancelledRunningFinally" - -// PipelineRunReasonStoppedRunningFinally indicates that pipeline has been gracefully stopped -// and no new Tasks will be scheduled by the controller, but final tasks are now running -#PipelineRunReasonStoppedRunningFinally: #PipelineRunReason & "StoppedRunningFinally" - -// ChildStatusReference is used to point to the statuses of individual TaskRuns and Runs within this PipelineRun. -#ChildStatusReference: { - runtime.#TypeMeta - - // Name is the name of the TaskRun or Run this is referencing. - name?: string @go(Name) - - // PipelineTaskName is the name of the PipelineTask this is referencing. - pipelineTaskName?: string @go(PipelineTaskName) - - // WhenExpressions is the list of checks guarding the execution of the PipelineTask - // +optional - // +listType=atomic - whenExpressions?: [...#WhenExpression] @go(WhenExpressions,[]WhenExpression) -} - -// PipelineRunStatusFields holds the fields of PipelineRunStatus' status. -// This is defined separately and inlined so that other types can readily -// consume these fields via duck typing. -#PipelineRunStatusFields: { - // StartTime is the time the PipelineRun is actually started. - startTime?: null | metav1.#Time @go(StartTime,*metav1.Time) - - // CompletionTime is the time the PipelineRun completed. - completionTime?: null | metav1.#Time @go(CompletionTime,*metav1.Time) - - // TaskRuns is a map of PipelineRunTaskRunStatus with the taskRun name as the key. - // - // Deprecated: use ChildReferences instead. As of v0.45.0, this field is no - // longer populated and is only included for backwards compatibility with - // older server versions. - // +optional - taskRuns?: {[string]: null | #PipelineRunTaskRunStatus} @go(TaskRuns,map[string]*PipelineRunTaskRunStatus) - - // Runs is a map of PipelineRunRunStatus with the run name as the key - // - // Deprecated: use ChildReferences instead. As of v0.45.0, this field is no - // longer populated and is only included for backwards compatibility with - // older server versions. - // +optional - runs?: {[string]: null | #PipelineRunRunStatus} @go(Runs,map[string]*PipelineRunRunStatus) - - // PipelineResults are the list of results written out by the pipeline task's containers - // +optional - // +listType=atomic - pipelineResults?: [...#PipelineRunResult] @go(PipelineResults,[]PipelineRunResult) - - // PipelineRunSpec contains the exact spec used to instantiate the run - pipelineSpec?: null | #PipelineSpec @go(PipelineSpec,*PipelineSpec) - - // list of tasks that were skipped due to when expressions evaluating to false - // +optional - // +listType=atomic - skippedTasks?: [...#SkippedTask] @go(SkippedTasks,[]SkippedTask) - - // list of TaskRun and Run names, PipelineTask names, and API versions/kinds for children of this PipelineRun. - // +optional - // +listType=atomic - childReferences?: [...#ChildStatusReference] @go(ChildReferences,[]ChildStatusReference) - - // FinallyStartTime is when all non-finally tasks have been completed and only finally tasks are being executed. - // +optional - finallyStartTime?: null | metav1.#Time @go(FinallyStartTime,*metav1.Time) - - // Provenance contains some key authenticated metadata about how a software artifact was built (what sources, what inputs/outputs, etc.). - // +optional - provenance?: null | #Provenance @go(Provenance,*Provenance) - - // SpanContext contains tracing span context fields - spanContext?: {[string]: string} @go(SpanContext,map[string]string) -} - -// SkippedTask is used to describe the Tasks that were skipped due to their When Expressions -// evaluating to False. This is a struct because we are looking into including more details -// about the When Expressions that caused this Task to be skipped. -#SkippedTask: { - // Name is the Pipeline Task name - name: string @go(Name) - - // Reason is the cause of the PipelineTask being skipped. - reason: #SkippingReason @go(Reason) - - // WhenExpressions is the list of checks guarding the execution of the PipelineTask - // +optional - // +listType=atomic - whenExpressions?: [...#WhenExpression] @go(WhenExpressions,[]WhenExpression) -} - -// SkippingReason explains why a PipelineTask was skipped. -#SkippingReason: string // #enumSkippingReason - -#enumSkippingReason: - #WhenExpressionsSkip | - #ParentTasksSkip | - #StoppingSkip | - #GracefullyCancelledSkip | - #GracefullyStoppedSkip | - #MissingResultsSkip | - #PipelineTimedOutSkip | - #TasksTimedOutSkip | - #FinallyTimedOutSkip | - #EmptyArrayInMatrixParams | - #None - -// WhenExpressionsSkip means the task was skipped due to at least one of its when expressions evaluating to false -#WhenExpressionsSkip: #SkippingReason & "When Expressions evaluated to false" - -// ParentTasksSkip means the task was skipped because its parent was skipped -#ParentTasksSkip: #SkippingReason & "Parent Tasks were skipped" - -// StoppingSkip means the task was skipped because the pipeline run is stopping -#StoppingSkip: #SkippingReason & "PipelineRun was stopping" - -// GracefullyCancelledSkip means the task was skipped because the pipeline run has been gracefully cancelled -#GracefullyCancelledSkip: #SkippingReason & "PipelineRun was gracefully cancelled" - -// GracefullyStoppedSkip means the task was skipped because the pipeline run has been gracefully stopped -#GracefullyStoppedSkip: #SkippingReason & "PipelineRun was gracefully stopped" - -// MissingResultsSkip means the task was skipped because it's missing necessary results -#MissingResultsSkip: #SkippingReason & "Results were missing" - -// PipelineTimedOutSkip means the task was skipped because the PipelineRun has passed its overall timeout. -#PipelineTimedOutSkip: #SkippingReason & "PipelineRun timeout has been reached" - -// TasksTimedOutSkip means the task was skipped because the PipelineRun has passed its Timeouts.Tasks. -#TasksTimedOutSkip: #SkippingReason & "PipelineRun Tasks timeout has been reached" - -// FinallyTimedOutSkip means the task was skipped because the PipelineRun has passed its Timeouts.Finally. -#FinallyTimedOutSkip: #SkippingReason & "PipelineRun Finally timeout has been reached" - -// EmptyArrayInMatrixParams means the task was skipped because Matrix parameters contain empty array. -#EmptyArrayInMatrixParams: #SkippingReason & "Matrix Parameters have an empty array" - -// None means the task was not skipped -#None: #SkippingReason & "None" - -// PipelineRunResult used to describe the results of a pipeline -#PipelineRunResult: { - // Name is the result's name as declared by the Pipeline - name: string @go(Name) - - // Value is the result returned from the execution of this PipelineRun - value: #ParamValue @go(Value) -} - -// PipelineRunTaskRunStatus contains the name of the PipelineTask for this TaskRun and the TaskRun's Status -#PipelineRunTaskRunStatus: { - // PipelineTaskName is the name of the PipelineTask. - pipelineTaskName?: string @go(PipelineTaskName) - - // Status is the TaskRunStatus for the corresponding TaskRun - // +optional - status?: null | #TaskRunStatus @go(Status,*TaskRunStatus) - - // WhenExpressions is the list of checks guarding the execution of the PipelineTask - // +optional - // +listType=atomic - whenExpressions?: [...#WhenExpression] @go(WhenExpressions,[]WhenExpression) -} - -// PipelineRunRunStatus contains the name of the PipelineTask for this CustomRun or Run and the CustomRun or Run's Status -#PipelineRunRunStatus: { - // PipelineTaskName is the name of the PipelineTask. - pipelineTaskName?: string @go(PipelineTaskName) - - // Status is the CustomRunStatus for the corresponding CustomRun or Run - // +optional - status?: null | v1beta1.#CustomRunStatus @go(Status,*github.com/tektoncd/pipeline/pkg/apis/run/v1beta1.CustomRunStatus) - - // WhenExpressions is the list of checks guarding the execution of the PipelineTask - // +optional - // +listType=atomic - whenExpressions?: [...#WhenExpression] @go(WhenExpressions,[]WhenExpression) -} - -// PipelineRunList contains a list of PipelineRun -#PipelineRunList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items?: [...#PipelineRun] @go(Items,[]PipelineRun) -} - -// PipelineTaskRun reports the results of running a step in the Task. Each -// task has the potential to succeed or fail (based on the exit code) -// and produces logs. -#PipelineTaskRun: { - name?: string @go(Name) -} - -// PipelineTaskRunSpec can be used to configure specific -// specs for a concrete Task -#PipelineTaskRunSpec: { - pipelineTaskName?: string @go(PipelineTaskName) - taskServiceAccountName?: string @go(TaskServiceAccountName) - taskPodTemplate?: null | pod.#Template @go(TaskPodTemplate,*pod.Template) - - // +listType=atomic - stepOverrides?: [...#TaskRunStepOverride] @go(StepOverrides,[]TaskRunStepOverride) - - // +listType=atomic - sidecarOverrides?: [...#TaskRunSidecarOverride] @go(SidecarOverrides,[]TaskRunSidecarOverride) - - // +optional - metadata?: null | #PipelineTaskMetadata @go(Metadata,*PipelineTaskMetadata) - - // Compute resources to use for this TaskRun - computeResources?: null | corev1.#ResourceRequirements @go(ComputeResources,*corev1.ResourceRequirements) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/provenance_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/provenance_go_gen.cue deleted file mode 100644 index 13880e1..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/provenance_go_gen.cue +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -import "github.com/tektoncd/pipeline/pkg/apis/config" - -// Provenance contains metadata about resources used in the TaskRun/PipelineRun -// such as the source from where a remote build definition was fetched. -// This field aims to carry minimum amoumt of metadata in *Run status so that -// Tekton Chains can capture them in the provenance. -#Provenance: { - // Deprecated: Use RefSource instead - configSource?: null | #ConfigSource @go(ConfigSource,*ConfigSource) - - // RefSource identifies the source where a remote task/pipeline came from. - refSource?: null | #RefSource @go(RefSource,*RefSource) - - // FeatureFlags identifies the feature flags that were used during the task/pipeline run - featureFlags?: null | config.#FeatureFlags @go(FeatureFlags,*config.FeatureFlags) -} - -// RefSource contains the information that can uniquely identify where a remote -// built definition came from i.e. Git repositories, Tekton Bundles in OCI registry -// and hub. -#RefSource: { - // URI indicates the identity of the source of the build definition. - // Example: "https://github.com/tektoncd/catalog" - uri?: string @go(URI) - - // Digest is a collection of cryptographic digests for the contents of the artifact specified by URI. - // Example: {"sha1": "f99d13e554ffcb696dee719fa85b695cb5b0f428"} - digest?: {[string]: string} @go(Digest,map[string]string) - - // EntryPoint identifies the entry point into the build. This is often a path to a - // build definition file and/or a target label within that file. - // Example: "task/git-clone/0.8/git-clone.yaml" - entryPoint?: string @go(EntryPoint) -} - -// ConfigSource contains the information that can uniquely identify where a remote -// built definition came from i.e. Git repositories, Tekton Bundles in OCI registry -// and hub. -#ConfigSource: { - // URI indicates the identity of the source of the build definition. - // Example: "https://github.com/tektoncd/catalog" - uri?: string @go(URI) - - // Digest is a collection of cryptographic digests for the contents of the artifact specified by URI. - // Example: {"sha1": "f99d13e554ffcb696dee719fa85b695cb5b0f428"} - digest?: {[string]: string} @go(Digest,map[string]string) - - // EntryPoint identifies the entry point into the build. This is often a path to a - // build definition file and/or a target label within that file. - // Example: "task/git-clone/0.8/git-clone.yaml" - entryPoint?: string @go(EntryPoint) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resolver_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resolver_types_go_gen.cue deleted file mode 100644 index ea9487e..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resolver_types_go_gen.cue +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -// ResolverName is the name of a resolver from which a resource can be -// requested. -#ResolverName: string - -// ResolverRef can be used to refer to a Pipeline or Task in a remote -// location like a git repo. -#ResolverRef: { - // Resolver is the name of the resolver that should perform - // resolution of the referenced Tekton resource, such as "git". - // +optional - resolver?: #ResolverName @go(Resolver) - - // Params contains the parameters used to identify the - // referenced Tekton resource. Example entries might include - // "repo" or "path" but the set of params ultimately depends on - // the chosen resolver. - // +optional - // +listType=atomic - params?: #Params @go(Params) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resource_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resource_types_go_gen.cue deleted file mode 100644 index cec78bf..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resource_types_go_gen.cue +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -import ( - "github.com/tektoncd/pipeline/pkg/result" - resource "github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1" - "k8s.io/api/core/v1" -) - -// RunResult is used to write key/value pairs to TaskRun pod termination messages. -// It has been migrated to the result package and kept for backward compatibility -#RunResult: result.#RunResult - -// PipelineResourceResult has been deprecated with the migration of PipelineResources -// Deprecated: Use RunResult instead -#PipelineResourceResult: result.#RunResult - -// ResultType of PipelineResourceResult has been deprecated with the migration of PipelineResources -// Deprecated: v1beta1.ResultType is only kept for backward compatibility -#ResultType: _ - -// ResourceParam declares a string value to use for the parameter called Name, and is used in -// the specific context of PipelineResources. -// -// Deprecated: Unused, preserved only for backwards compatibility -#ResourceParam: resource.#ResourceParam - -// PipelineResourceType represents the type of endpoint the pipelineResource is, so that the -// controller will know this pipelineResource should be fetched and optionally what -// additional metatdata should be provided for it. -// -// Deprecated: Unused, preserved only for backwards compatibility -#PipelineResourceType: string - -// PipelineDeclaredResource is used by a Pipeline to declare the types of the -// PipelineResources that it will required to run and names which can be used to -// refer to these PipelineResources in PipelineTaskResourceBindings. -// -// Deprecated: Unused, preserved only for backwards compatibility -#PipelineDeclaredResource: { - // Name is the name that will be used by the Pipeline to refer to this resource. - // It does not directly correspond to the name of any PipelineResources Task - // inputs or outputs, and it does not correspond to the actual names of the - // PipelineResources that will be bound in the PipelineRun. - name: string @go(Name) - - // Type is the type of the PipelineResource. - type: string @go(Type) - - // Optional declares the resource as optional. - // optional: true - the resource is considered optional - // optional: false - the resource is considered required (default/equivalent of not specifying it) - optional?: bool @go(Optional) -} - -// TaskResources allows a Pipeline to declare how its DeclaredPipelineResources -// should be provided to a Task as its inputs and outputs. -// -// Deprecated: Unused, preserved only for backwards compatibility -#TaskResources: { - // Inputs holds the mapping from the PipelineResources declared in - // DeclaredPipelineResources to the input PipelineResources required by the Task. - // +listType=atomic - inputs?: [...#TaskResource] @go(Inputs,[]TaskResource) - - // Outputs holds the mapping from the PipelineResources declared in - // DeclaredPipelineResources to the input PipelineResources required by the Task. - // +listType=atomic - outputs?: [...#TaskResource] @go(Outputs,[]TaskResource) -} - -// TaskResource defines an input or output Resource declared as a requirement -// by a Task. The Name field will be used to refer to these Resources within -// the Task definition, and when provided as an Input, the Name will be the -// path to the volume mounted containing this Resource as an input (e.g. -// an input Resource named `workspace` will be mounted at `/workspace`). -// -// Deprecated: Unused, preserved only for backwards compatibility -#TaskResource: { - resource.#ResourceDeclaration -} - -// TaskRunResources allows a TaskRun to declare inputs and outputs TaskResourceBinding -// -// Deprecated: Unused, preserved only for backwards compatibility -#TaskRunResources: { - // Inputs holds the inputs resources this task was invoked with - // +listType=atomic - inputs?: [...#TaskResourceBinding] @go(Inputs,[]TaskResourceBinding) - - // Outputs holds the inputs resources this task was invoked with - // +listType=atomic - outputs?: [...#TaskResourceBinding] @go(Outputs,[]TaskResourceBinding) -} - -// TaskResourceBinding points to the PipelineResource that -// will be used for the Task input or output called Name. -// -// Deprecated: Unused, preserved only for backwards compatibility -#TaskResourceBinding: { - #PipelineResourceBinding - - // Paths will probably be removed in #1284, and then PipelineResourceBinding can be used instead. - // The optional Path field corresponds to a path on disk at which the Resource can be found - // (used when providing the resource via mounted volume, overriding the default logic to fetch the Resource). - // +optional - // +listType=atomic - paths?: [...string] @go(Paths,[]string) -} - -// ResourceDeclaration defines an input or output PipelineResource declared as a requirement -// by another type such as a Task or Condition. The Name field will be used to refer to these -// PipelineResources within the type's definition, and when provided as an Input, the Name will be the -// path to the volume mounted containing this PipelineResource as an input (e.g. -// an input Resource named `workspace` will be mounted at `/workspace`). -// -// Deprecated: Unused, preserved only for backwards compatibility -#ResourceDeclaration: resource.#ResourceDeclaration - -// PipelineResourceBinding connects a reference to an instance of a PipelineResource -// with a PipelineResource dependency that the Pipeline has declared -// -// Deprecated: Unused, preserved only for backwards compatibility -#PipelineResourceBinding: { - // Name is the name of the PipelineResource in the Pipeline's declaration - name?: string @go(Name) - - // ResourceRef is a reference to the instance of the actual PipelineResource - // that should be used - // +optional - resourceRef?: null | #PipelineResourceRef @go(ResourceRef,*PipelineResourceRef) - - // ResourceSpec is specification of a resource that should be created and - // consumed by the task - // +optional - resourceSpec?: null | resource.#PipelineResourceSpec @go(ResourceSpec,*resource.PipelineResourceSpec) -} - -// PipelineTaskResources allows a Pipeline to declare how its DeclaredPipelineResources -// should be provided to a Task as its inputs and outputs. -// -// Deprecated: Unused, preserved only for backwards compatibility -#PipelineTaskResources: { - // Inputs holds the mapping from the PipelineResources declared in - // DeclaredPipelineResources to the input PipelineResources required by the Task. - // +listType=atomic - inputs?: [...#PipelineTaskInputResource] @go(Inputs,[]PipelineTaskInputResource) - - // Outputs holds the mapping from the PipelineResources declared in - // DeclaredPipelineResources to the input PipelineResources required by the Task. - // +listType=atomic - outputs?: [...#PipelineTaskOutputResource] @go(Outputs,[]PipelineTaskOutputResource) -} - -// PipelineTaskInputResource maps the name of a declared PipelineResource input -// dependency in a Task to the resource in the Pipeline's DeclaredPipelineResources -// that should be used. This input may come from a previous task. -// -// Deprecated: Unused, preserved only for backwards compatibility -#PipelineTaskInputResource: { - // Name is the name of the PipelineResource as declared by the Task. - name: string @go(Name) - - // Resource is the name of the DeclaredPipelineResource to use. - resource: string @go(Resource) - - // From is the list of PipelineTask names that the resource has to come from. - // (Implies an ordering in the execution graph.) - // +optional - // +listType=atomic - from?: [...string] @go(From,[]string) -} - -// PipelineTaskOutputResource maps the name of a declared PipelineResource output -// dependency in a Task to the resource in the Pipeline's DeclaredPipelineResources -// that should be used. -// -// Deprecated: Unused, preserved only for backwards compatibility -#PipelineTaskOutputResource: { - // Name is the name of the PipelineResource as declared by the Task. - name: string @go(Name) - - // Resource is the name of the DeclaredPipelineResource to use. - resource: string @go(Resource) -} - -// TaskRunInputs holds the input values that this task was invoked with. -// -// Deprecated: Unused, preserved only for backwards compatibility -#TaskRunInputs: { - // +optional - // +listType=atomic - resources?: [...#TaskResourceBinding] @go(Resources,[]TaskResourceBinding) - - // +optional - // +listType=atomic - params?: [...#Param] @go(Params,[]Param) -} - -// TaskRunOutputs holds the output values that this task was invoked with. -// -// Deprecated: Unused, preserved only for backwards compatibility -#TaskRunOutputs: { - // +optional - // +listType=atomic - resources?: [...#TaskResourceBinding] @go(Resources,[]TaskResourceBinding) -} - -// PipelineResourceRef can be used to refer to a specific instance of a Resource -// -// Deprecated: Unused, preserved only for backwards compatibility -#PipelineResourceRef: { - // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - name?: string @go(Name) - - // API version of the referent - // +optional - apiVersion?: string @go(APIVersion) -} - -// PipelineResourceInterface interface to be implemented by different PipelineResource types -// -// Deprecated: Unused, preserved only for backwards compatibility -#PipelineResourceInterface: _ - -// TaskModifier is an interface to be implemented by different PipelineResources -// -// Deprecated: Unused, preserved only for backwards compatibility -#TaskModifier: _ - -// InternalTaskModifier implements TaskModifier for resources that are built-in to Tekton Pipelines. -// -// Deprecated: Unused, preserved only for backwards compatibility -#InternalTaskModifier: { - // +listType=atomic - stepsToPrepend: [...#Step] @go(StepsToPrepend,[]Step) - - // +listType=atomic - stepsToAppend: [...#Step] @go(StepsToAppend,[]Step) - - // +listType=atomic - volumes: [...v1.#Volume] @go(Volumes,[]v1.Volume) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/result_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/result_types_go_gen.cue deleted file mode 100644 index eb34bb4..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/result_types_go_gen.cue +++ /dev/null @@ -1,57 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -// TaskResult used to describe the results of a task -#TaskResult: { - // Name the given name - name: string @go(Name) - - // Type is the user-specified type of the result. The possible type - // is currently "string" and will support "array" in following work. - // +optional - type?: #ResultsType @go(Type) - - // Properties is the JSON Schema properties to support key-value pairs results. - // +optional - properties?: {[string]: #PropertySpec} @go(Properties,map[string]PropertySpec) - - // Description is a human-readable description of the result - // +optional - description?: string @go(Description) -} - -// TaskRunResult used to describe the results of a task -#TaskRunResult: { - // Name the given name - name: string @go(Name) - - // Type is the user-specified type of the result. The possible type - // is currently "string" and will support "array" in following work. - // +optional - type?: #ResultsType @go(Type) - - // Value the given value of the result - value: #ParamValue @go(Value) -} - -// ResultValue is a type alias of ParamValue -#ResultValue: _ - -// ResultsType indicates the type of a result; -// Used to distinguish between a single string and an array of strings. -// Note that there is ResultType used to find out whether a -// RunResult is from a task result or not, which is different from -// this ResultsType. -#ResultsType: string // #enumResultsType - -#enumResultsType: - #ResultsTypeString | - #ResultsTypeArray | - #ResultsTypeObject - -#ResultsTypeString: #ResultsType & "string" -#ResultsTypeArray: #ResultsType & "array" -#ResultsTypeObject: #ResultsType & "object" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resultref_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resultref_go_gen.cue deleted file mode 100644 index ca95f10..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resultref_go_gen.cue +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -// ResultRef is a type that represents a reference to a task run result -#ResultRef: { - pipelineTask: string @go(PipelineTask) - result: string @go(Result) - resultsIndex: int @go(ResultsIndex) - property: string @go(Property) -} - -_#resultExpressionFormat: "tasks..results." - -// Result expressions of the form . will be treated as object results. -// If a string result name contains a dot, brackets should be used to differentiate it from an object result. -// https://github.com/tektoncd/community/blob/main/teps/0075-object-param-and-result-types.md#collisions-with-builtin-variable-replacement -_#objectResultExpressionFormat: "tasks..results.." - -// ResultTaskPart Constant used to define the "tasks" part of a pipeline result reference -#ResultTaskPart: "tasks" - -// ResultFinallyPart Constant used to define the "finally" part of a pipeline result reference -#ResultFinallyPart: "finally" - -// ResultResultPart Constant used to define the "results" part of a pipeline result reference -#ResultResultPart: "results" - -// TODO(#2462) use one regex across all substitutions -// variableSubstitutionFormat matches format like $result.resultname, $result.resultname[int] and $result.resultname[*] -_#variableSubstitutionFormat: "\\$\\([_a-zA-Z0-9.-]+(\\.[_a-zA-Z0-9.-]+)*(\\[([0-9]+|\\*)\\])?\\)" // `\$\([_a-zA-Z0-9.-]+(\.[_a-zA-Z0-9.-]+)*(\[([0-9]+|\*)\])?\)` - -// exactVariableSubstitutionFormat matches strings that only contain a single reference to result or param variables, but nothing else -// i.e. `$(result.resultname)` is a match, but `foo $(result.resultname)` is not. -_#exactVariableSubstitutionFormat: "^\\$\\([_a-zA-Z0-9.-]+(\\.[_a-zA-Z0-9.-]+)*(\\[([0-9]+|\\*)\\])?\\)$" // `^\$\([_a-zA-Z0-9.-]+(\.[_a-zA-Z0-9.-]+)*(\[([0-9]+|\*)\])?\)$` - -// arrayIndexing will match all `[int]` and `[*]` for parseExpression -_#arrayIndexing: "\\[([0-9])*\\*?\\]" // `\[([0-9])*\*?\]` - -// ResultNameFormat Constant used to define the regex Result.Name should follow -#ResultNameFormat: "^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$" // `^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$` diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/run_interface_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/run_interface_go_gen.cue deleted file mode 100644 index 2fd9450..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/run_interface_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -// RunObject is implemented by CustomRun and Run -#RunObject: _ diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/task_conversion_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/task_conversion_go_gen.cue deleted file mode 100644 index e62effc..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/task_conversion_go_gen.cue +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -#TaskDeprecationsAnnotationKey: "tekton.dev/v1beta1.task-deprecations" - -// taskDeprecation contains deprecated fields of a Task -// +k8s:openapi-gen=false -_#taskDeprecation: { - // DeprecatedSteps contains Steps of a Task that with deprecated fields defined. - // +listType=atomic - deprecatedSteps?: [...#Step] @go(DeprecatedSteps,[]Step) - - // DeprecatedStepTemplate contains stepTemplate of a Task that with deprecated fields defined. - deprecatedStepTemplate?: null | #StepTemplate @go(DeprecatedStepTemplate,*StepTemplate) -} - -// taskDeprecations contains deprecated fields of Tasks that belong to the same Pipeline or PipelineRun -// the key is Task name -// +k8s:openapi-gen=false -_#taskDeprecations: {[string]: _#taskDeprecation} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/task_interface_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/task_interface_go_gen.cue deleted file mode 100644 index 8795ffb..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/task_interface_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -// TaskObject is implemented by Task and ClusterTask -#TaskObject: _ diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/task_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/task_types_go_gen.cue deleted file mode 100644 index c948578..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/task_types_go_gen.cue +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - corev1 "k8s.io/api/core/v1" -) - -// Task represents a collection of sequential steps that are run as part of a -// Pipeline using a set of inputs and producing a set of outputs. Tasks execute -// when TaskRuns are created that provide the input parameters and resources and -// output resources the Task requires. -// -// Deprecated: Please use v1.Task instead. -#Task: { - metav1.#TypeMeta - - // +optional - metadata: metav1.#ObjectMeta @go(ObjectMeta) - - // Spec holds the desired state of the Task from the client - // +optional - spec: #TaskSpec @go(Spec) -} - -// TaskSpec defines the desired state of Task. -#TaskSpec: { - // Resources is a list input and output resource to run the task - // Resources are represented in TaskRuns as bindings to instances of - // PipelineResources. - // - // Deprecated: Unused, preserved only for backwards compatibility - // +optional - resources?: null | #TaskResources @go(Resources,*TaskResources) - - // Params is a list of input parameters required to run the task. Params - // must be supplied as inputs in TaskRuns unless they declare a default - // value. - // +optional - // +listType=atomic - params?: #ParamSpecs @go(Params) - - // DisplayName is a user-facing name of the task that may be - // used to populate a UI. - // +optional - displayName?: string @go(DisplayName) - - // Description is a user-facing description of the task that may be - // used to populate a UI. - // +optional - description?: string @go(Description) - - // Steps are the steps of the build; each step is run sequentially with the - // source mounted into /workspace. - // +listType=atomic - steps?: [...#Step] @go(Steps,[]Step) - - // Volumes is a collection of volumes that are available to mount into the - // steps of the build. - // +listType=atomic - volumes?: [...corev1.#Volume] @go(Volumes,[]corev1.Volume) - - // StepTemplate can be used as the basis for all step containers within the - // Task, so that the steps inherit settings on the base container. - stepTemplate?: null | #StepTemplate @go(StepTemplate,*StepTemplate) - - // Sidecars are run alongside the Task's step containers. They begin before - // the steps start and end after the steps complete. - // +listType=atomic - sidecars?: [...#Sidecar] @go(Sidecars,[]Sidecar) - - // Workspaces are the volumes that this Task requires. - // +listType=atomic - workspaces?: [...#WorkspaceDeclaration] @go(Workspaces,[]WorkspaceDeclaration) - - // Results are values that this Task can output - // +listType=atomic - results?: [...#TaskResult] @go(Results,[]TaskResult) -} - -// TaskList contains a list of Task -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -#TaskList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Task] @go(Items,[]Task) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/task_validation_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/task_validation_go_gen.cue deleted file mode 100644 index 5286953..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/task_validation_go_gen.cue +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -// stringAndArrayVariableNameFormat is the regex to validate if string/array variable name format follows the following rules. -// - Must only contain alphanumeric characters, hyphens (-), underscores (_), and dots (.) -// - Must begin with a letter or an underscore (_) -_#stringAndArrayVariableNameFormat: "^[_a-zA-Z][_a-zA-Z0-9.-]*$" - -// objectVariableNameFormat is the regext used to validate object name and key names format -// The difference with the array or string name format is that object variable names shouldn't contain dots. -_#objectVariableNameFormat: "^[_a-zA-Z][_a-zA-Z0-9-]*$" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskref_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskref_types_go_gen.cue deleted file mode 100644 index a2310a3..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskref_types_go_gen.cue +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -// TaskRef can be used to refer to a specific instance of a task. -#TaskRef: { - // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - name?: string @go(Name) - - // TaskKind indicates the Kind of the Task: - // 1. Namespaced Task when Kind is set to "Task". If Kind is "", it defaults to "Task". - // 2. Cluster-Scoped Task when Kind is set to "ClusterTask" - // 3. Custom Task when Kind is non-empty and APIVersion is non-empty - kind?: #TaskKind @go(Kind) - - // API version of the referent - // Note: A Task with non-empty APIVersion and Kind is considered a Custom Task - // +optional - apiVersion?: string @go(APIVersion) - - // Bundle url reference to a Tekton Bundle. - // - // Deprecated: Please use ResolverRef with the bundles resolver instead. - // +optional - bundle?: string @go(Bundle) - - // ResolverRef allows referencing a Task in a remote location - // like a git repo. This field is only supported when the alpha - // feature gate is enabled. - // +optional - ResolverRef?: #ResolverRef -} - -// TaskKind defines the type of Task used by the pipeline. -#TaskKind: string // #enumTaskKind - -#enumTaskKind: - #NamespacedTaskKind | - #ClusterTaskKind - -// NamespacedTaskKind indicates that the task type has a namespaced scope. -#NamespacedTaskKind: #TaskKind & "Task" - -// ClusterTaskKind indicates that task type has a cluster scope. -#ClusterTaskKind: #TaskKind & "ClusterTask" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_conversion_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_conversion_go_gen.cue deleted file mode 100644 index a2e2eea..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_conversion_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -_#cloudEventsAnnotationKey: "tekton.dev/v1beta1CloudEvents" -_#resourcesResultAnnotationKey: "tekton.dev/v1beta1ResourcesResult" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_defaults_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_defaults_go_gen.cue deleted file mode 100644 index 50ab52f..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_defaults_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -#ManagedByLabelKey: "app.kubernetes.io/managed-by" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_types_go_gen.cue deleted file mode 100644 index d0e4089..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_types_go_gen.cue +++ /dev/null @@ -1,353 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/tektoncd/pipeline/pkg/apis/pipeline/pod" - corev1 "k8s.io/api/core/v1" - duckv1 "knative.dev/pkg/apis/duck/v1" - "github.com/tektoncd/pipeline/pkg/result" -) - -// TaskRunSpec defines the desired state of TaskRun -#TaskRunSpec: { - // +optional - debug?: null | #TaskRunDebug @go(Debug,*TaskRunDebug) - - // +optional - // +listType=atomic - params?: #Params @go(Params) - - // Deprecated: Unused, preserved only for backwards compatibility - // +optional - resources?: null | #TaskRunResources @go(Resources,*TaskRunResources) - - // +optional - serviceAccountName: string @go(ServiceAccountName) - - // no more than one of the TaskRef and TaskSpec may be specified. - // +optional - taskRef?: null | #TaskRef @go(TaskRef,*TaskRef) - - // +optional - taskSpec?: null | #TaskSpec @go(TaskSpec,*TaskSpec) - - // Used for cancelling a TaskRun (and maybe more later on) - // +optional - status?: #TaskRunSpecStatus @go(Status) - - // Status message for cancellation. - // +optional - statusMessage?: #TaskRunSpecStatusMessage @go(StatusMessage) - - // Retries represents how many times this TaskRun should be retried in the event of Task failure. - // +optional - retries?: int @go(Retries) - - // Time after which one retry attempt times out. Defaults to 1 hour. - // Refer Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration - // +optional - timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) - - // PodTemplate holds pod specific configuration - podTemplate?: null | pod.#Template @go(PodTemplate,*pod.Template) - - // Workspaces is a list of WorkspaceBindings from volumes to workspaces. - // +optional - // +listType=atomic - workspaces?: [...#WorkspaceBinding] @go(Workspaces,[]WorkspaceBinding) - - // Overrides to apply to Steps in this TaskRun. - // If a field is specified in both a Step and a StepOverride, - // the value from the StepOverride will be used. - // This field is only supported when the alpha feature gate is enabled. - // +optional - // +listType=atomic - stepOverrides?: [...#TaskRunStepOverride] @go(StepOverrides,[]TaskRunStepOverride) - - // Overrides to apply to Sidecars in this TaskRun. - // If a field is specified in both a Sidecar and a SidecarOverride, - // the value from the SidecarOverride will be used. - // This field is only supported when the alpha feature gate is enabled. - // +optional - // +listType=atomic - sidecarOverrides?: [...#TaskRunSidecarOverride] @go(SidecarOverrides,[]TaskRunSidecarOverride) - - // Compute resources to use for this TaskRun - computeResources?: null | corev1.#ResourceRequirements @go(ComputeResources,*corev1.ResourceRequirements) -} - -// TaskRunSpecStatus defines the TaskRun spec status the user can provide -#TaskRunSpecStatus: string - -// TaskRunSpecStatusCancelled indicates that the user wants to cancel the task, -// if not already cancelled or terminated -#TaskRunSpecStatusCancelled: "TaskRunCancelled" - -// TaskRunSpecStatusMessage defines human readable status messages for the TaskRun. -#TaskRunSpecStatusMessage: string // #enumTaskRunSpecStatusMessage - -#enumTaskRunSpecStatusMessage: - #TaskRunCancelledByPipelineMsg | - #TaskRunCancelledByPipelineTimeoutMsg - -// TaskRunCancelledByPipelineMsg indicates that the PipelineRun of which this -// TaskRun was a part of has been cancelled. -#TaskRunCancelledByPipelineMsg: #TaskRunSpecStatusMessage & "TaskRun cancelled as the PipelineRun it belongs to has been cancelled." - -// TaskRunCancelledByPipelineTimeoutMsg indicates that the TaskRun was cancelled because the PipelineRun running it timed out. -#TaskRunCancelledByPipelineTimeoutMsg: #TaskRunSpecStatusMessage & "TaskRun cancelled as the PipelineRun it belongs to has timed out." - -// TaskRunDebug defines the breakpoint config for a particular TaskRun -#TaskRunDebug: { - // +optional - // +listType=atomic - breakpoint?: [...string] @go(Breakpoint,[]string) -} - -// TaskRunStatus defines the observed state of TaskRun -#TaskRunStatus: { - duckv1.#Status - - #TaskRunStatusFields -} - -// TaskRunConditionType is an enum used to store TaskRun custom -// conditions such as one used in spire results verification -#TaskRunConditionType: string // #enumTaskRunConditionType - -#enumTaskRunConditionType: - #TaskRunConditionResultsVerified - -// TaskRunConditionResultsVerified is a Condition Type that indicates that the results were verified by spire -#TaskRunConditionResultsVerified: #TaskRunConditionType & "SignedResultsVerified" - -// TaskRunReason is an enum used to store all TaskRun reason for -// the Succeeded condition that are controlled by the TaskRun itself. Failure -// reasons that emerge from underlying resources are not included here -#TaskRunReason: string // #enumTaskRunReason - -#enumTaskRunReason: - #TaskRunReasonStarted | - #TaskRunReasonRunning | - #TaskRunReasonSuccessful | - #TaskRunReasonFailed | - #TaskRunReasonToBeRetried | - #TaskRunReasonCancelled | - #TaskRunReasonTimedOut | - #TaskRunReasonImagePullFailed | - #TaskRunReasonResultsVerified | - #TaskRunReasonsResultsVerificationFailed | - #AwaitingTaskRunResults | - #TaskRunReasonResultLargerThanAllowedLimit - -// TaskRunReasonStarted is the reason set when the TaskRun has just started -#TaskRunReasonStarted: #TaskRunReason & "Started" - -// TaskRunReasonRunning is the reason set when the TaskRun is running -#TaskRunReasonRunning: #TaskRunReason & "Running" - -// TaskRunReasonSuccessful is the reason set when the TaskRun completed successfully -#TaskRunReasonSuccessful: #TaskRunReason & "Succeeded" - -// TaskRunReasonFailed is the reason set when the TaskRun completed with a failure -#TaskRunReasonFailed: #TaskRunReason & "Failed" - -// TaskRunReasonToBeRetried is the reason set when the last TaskRun execution failed, and will be retried -#TaskRunReasonToBeRetried: #TaskRunReason & "ToBeRetried" - -// TaskRunReasonCancelled is the reason set when the TaskRun is cancelled by the user -#TaskRunReasonCancelled: #TaskRunReason & "TaskRunCancelled" - -// TaskRunReasonTimedOut is the reason set when one TaskRun execution has timed out -#TaskRunReasonTimedOut: #TaskRunReason & "TaskRunTimeout" - -// TaskRunReasonResolvingTaskRef indicates that the TaskRun is waiting for -// its taskRef to be asynchronously resolved. -#TaskRunReasonResolvingTaskRef: "ResolvingTaskRef" - -// TaskRunReasonImagePullFailed is the reason set when the step of a task fails due to image not being pulled -#TaskRunReasonImagePullFailed: #TaskRunReason & "TaskRunImagePullFailed" - -// TaskRunReasonResultsVerified is the reason set when the TaskRun results are verified by spire -#TaskRunReasonResultsVerified: #TaskRunReason & "TaskRunResultsVerified" - -// TaskRunReasonsResultsVerificationFailed is the reason set when the TaskRun results are failed to verify by spire -#TaskRunReasonsResultsVerificationFailed: #TaskRunReason & "TaskRunResultsVerificationFailed" - -// AwaitingTaskRunResults is the reason set when waiting upon `TaskRun` results and signatures to verify -#AwaitingTaskRunResults: #TaskRunReason & "AwaitingTaskRunResults" - -// TaskRunReasonResultLargerThanAllowedLimit is the reason set when one of the results exceeds its maximum allowed limit of 1 KB -#TaskRunReasonResultLargerThanAllowedLimit: #TaskRunReason & "TaskRunResultLargerThanAllowedLimit" - -// TaskRunReasonStopSidecarFailed indicates that the sidecar is not properly stopped. -#TaskRunReasonStopSidecarFailed: "TaskRunStopSidecarFailed" - -// TaskRunStatusFields holds the fields of TaskRun's status. This is defined -// separately and inlined so that other types can readily consume these fields -// via duck typing. -#TaskRunStatusFields: { - // PodName is the name of the pod responsible for executing this task's steps. - podName: string @go(PodName) - - // StartTime is the time the build is actually started. - startTime?: null | metav1.#Time @go(StartTime,*metav1.Time) - - // CompletionTime is the time the build completed. - completionTime?: null | metav1.#Time @go(CompletionTime,*metav1.Time) - - // Steps describes the state of each build step container. - // +optional - // +listType=atomic - steps?: [...#StepState] @go(Steps,[]StepState) - - // CloudEvents describe the state of each cloud event requested via a - // CloudEventResource. - // - // Deprecated: Removed in v0.44.0. - // - // +optional - // +listType=atomic - cloudEvents?: [...#CloudEventDelivery] @go(CloudEvents,[]CloudEventDelivery) - - // RetriesStatus contains the history of TaskRunStatus in case of a retry in order to keep record of failures. - // All TaskRunStatus stored in RetriesStatus will have no date within the RetriesStatus as is redundant. - // +optional - // +listType=atomic - retriesStatus?: [...#TaskRunStatus] @go(RetriesStatus,[]TaskRunStatus) - - // Results from Resources built during the TaskRun. - // This is tomb-stoned along with the removal of pipelineResources - // Deprecated: this field is not populated and is preserved only for backwards compatibility - // +optional - // +listType=atomic - resourcesResult?: [...result.#RunResult] @go(ResourcesResult,[]github.com/tektoncd/pipeline/pkg/result.RunResult) - - // TaskRunResults are the list of results written out by the task's containers - // +optional - // +listType=atomic - taskResults?: [...#TaskRunResult] @go(TaskRunResults,[]TaskRunResult) - - // The list has one entry per sidecar in the manifest. Each entry is - // represents the imageid of the corresponding sidecar. - // +listType=atomic - sidecars?: [...#SidecarState] @go(Sidecars,[]SidecarState) - - // TaskSpec contains the Spec from the dereferenced Task definition used to instantiate this TaskRun. - taskSpec?: null | #TaskSpec @go(TaskSpec,*TaskSpec) - - // Provenance contains some key authenticated metadata about how a software artifact was built (what sources, what inputs/outputs, etc.). - // +optional - provenance?: null | #Provenance @go(Provenance,*Provenance) - - // SpanContext contains tracing span context fields - spanContext?: {[string]: string} @go(SpanContext,map[string]string) -} - -// TaskRunStepOverride is used to override the values of a Step in the corresponding Task. -#TaskRunStepOverride: { - // The name of the Step to override. - name: string @go(Name) - - // The resource requirements to apply to the Step. - resources: corev1.#ResourceRequirements @go(Resources) -} - -// TaskRunSidecarOverride is used to override the values of a Sidecar in the corresponding Task. -#TaskRunSidecarOverride: { - // The name of the Sidecar to override. - name: string @go(Name) - - // The resource requirements to apply to the Sidecar. - resources: corev1.#ResourceRequirements @go(Resources) -} - -// StepState reports the results of running a step in a Task. -#StepState: { - corev1.#ContainerState - name?: string @go(Name) - container?: string @go(ContainerName) - imageID?: string @go(ImageID) -} - -// SidecarState reports the results of running a sidecar in a Task. -#SidecarState: { - corev1.#ContainerState - name?: string @go(Name) - container?: string @go(ContainerName) - imageID?: string @go(ImageID) -} - -// CloudEventDelivery is the target of a cloud event along with the state of -// delivery. -#CloudEventDelivery: { - // Target points to an addressable - target?: string @go(Target) - status?: #CloudEventDeliveryState @go(Status) -} - -// CloudEventCondition is a string that represents the condition of the event. -#CloudEventCondition: string // #enumCloudEventCondition - -#enumCloudEventCondition: - #CloudEventConditionUnknown | - #CloudEventConditionSent | - #CloudEventConditionFailed - -// CloudEventConditionUnknown means that the condition for the event to be -// triggered was not met yet, or we don't know the state yet. -#CloudEventConditionUnknown: #CloudEventCondition & "Unknown" - -// CloudEventConditionSent means that the event was sent successfully -#CloudEventConditionSent: #CloudEventCondition & "Sent" - -// CloudEventConditionFailed means that there was one or more attempts to -// send the event, and none was successful so far. -#CloudEventConditionFailed: #CloudEventCondition & "Failed" - -// CloudEventDeliveryState reports the state of a cloud event to be sent. -#CloudEventDeliveryState: { - // Current status - condition?: #CloudEventCondition @go(Condition) - - // SentAt is the time at which the last attempt to send the event was made - // +optional - sentAt?: null | metav1.#Time @go(SentAt,*metav1.Time) - - // Error is the text of error (if any) - message: string @go(Error) - - // RetryCount is the number of attempts of sending the cloud event - retryCount: int32 @go(RetryCount) -} - -// TaskRun represents a single execution of a Task. TaskRuns are how the steps -// specified in a Task are executed; they specify the parameters and resources -// used to run the steps in a Task. -// -// Deprecated: Please use v1.TaskRun instead. -#TaskRun: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +optional - spec?: #TaskRunSpec @go(Spec) - - // +optional - status?: #TaskRunStatus @go(Status) -} - -// TaskRunList contains a list of TaskRun -#TaskRunList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TaskRun] @go(Items,[]TaskRun) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/when_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/when_types_go_gen.cue deleted file mode 100644 index 1f9b724..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/when_types_go_gen.cue +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -import "k8s.io/apimachinery/pkg/selection" - -// WhenExpression allows a PipelineTask to declare expressions to be evaluated before the Task is run -// to determine whether the Task should be executed or skipped -#WhenExpression: { - // Input is the string for guard checking which can be a static input or an output from a parent Task - input: string @go(Input) - - // Operator that represents an Input's relationship to the values - operator: selection.#Operator @go(Operator) - - // Values is an array of strings, which is compared against the input, for guard checking - // It must be non-empty - // +listType=atomic - values: [...string] @go(Values,[]string) -} - -// WhenExpressions are used to specify whether a Task should be executed or skipped -// All of them need to evaluate to True for a guarded Task to be executed. -#WhenExpressions: [...#WhenExpression] diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/workspace_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/workspace_types_go_gen.cue deleted file mode 100644 index d5d3bf8..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/workspace_types_go_gen.cue +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - -package v1beta1 - -import corev1 "k8s.io/api/core/v1" - -// WorkspaceDeclaration is a declaration of a volume that a Task requires. -#WorkspaceDeclaration: { - // Name is the name by which you can bind the volume at runtime. - name: string @go(Name) - - // Description is an optional human readable description of this volume. - // +optional - description?: string @go(Description) - - // MountPath overrides the directory that the volume will be made available at. - // +optional - mountPath?: string @go(MountPath) - - // ReadOnly dictates whether a mounted volume is writable. By default this - // field is false and so mounted volumes are writable. - readOnly?: bool @go(ReadOnly) - - // Optional marks a Workspace as not being required in TaskRuns. By default - // this field is false and so declared workspaces are required. - optional?: bool @go(Optional) -} - -// WorkspaceBinding maps a Task's declared workspace to a Volume. -#WorkspaceBinding: { - // Name is the name of the workspace populated by the volume. - name: string @go(Name) - - // SubPath is optionally a directory on the volume which should be used - // for this binding (i.e. the volume will be mounted at this sub directory). - // +optional - subPath?: string @go(SubPath) - - // VolumeClaimTemplate is a template for a claim that will be created in the same namespace. - // The PipelineRun controller is responsible for creating a unique claim for each instance of PipelineRun. - // +optional - volumeClaimTemplate?: null | corev1.#PersistentVolumeClaim @go(VolumeClaimTemplate,*corev1.PersistentVolumeClaim) - - // PersistentVolumeClaimVolumeSource represents a reference to a - // PersistentVolumeClaim in the same namespace. Either this OR EmptyDir can be used. - // +optional - persistentVolumeClaim?: null | corev1.#PersistentVolumeClaimVolumeSource @go(PersistentVolumeClaim,*corev1.PersistentVolumeClaimVolumeSource) - - // EmptyDir represents a temporary directory that shares a Task's lifetime. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - // Either this OR PersistentVolumeClaim can be used. - // +optional - emptyDir?: null | corev1.#EmptyDirVolumeSource @go(EmptyDir,*corev1.EmptyDirVolumeSource) - - // ConfigMap represents a configMap that should populate this workspace. - // +optional - configMap?: null | corev1.#ConfigMapVolumeSource @go(ConfigMap,*corev1.ConfigMapVolumeSource) - - // Secret represents a secret that should populate this workspace. - // +optional - secret?: null | corev1.#SecretVolumeSource @go(Secret,*corev1.SecretVolumeSource) - - // Projected represents a projected volume that should populate this workspace. - // +optional - projected?: null | corev1.#ProjectedVolumeSource @go(Projected,*corev1.ProjectedVolumeSource) - - // CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers. - // +optional - csi?: null | corev1.#CSIVolumeSource @go(CSI,*corev1.CSIVolumeSource) -} - -// WorkspacePipelineDeclaration creates a named slot in a Pipeline that a PipelineRun -// is expected to populate with a workspace binding. -// -// Deprecated: use PipelineWorkspaceDeclaration type instead -#WorkspacePipelineDeclaration: #PipelineWorkspaceDeclaration - -// PipelineWorkspaceDeclaration creates a named slot in a Pipeline that a PipelineRun -// is expected to populate with a workspace binding. -#PipelineWorkspaceDeclaration: { - // Name is the name of a workspace to be provided by a PipelineRun. - name: string @go(Name) - - // Description is a human readable string describing how the workspace will be - // used in the Pipeline. It can be useful to include a bit of detail about which - // tasks are intended to have access to the data on the workspace. - // +optional - description?: string @go(Description) - - // Optional marks a Workspace as not being required in PipelineRuns. By default - // this field is false and so declared workspaces are required. - optional?: bool @go(Optional) -} - -// WorkspacePipelineTaskBinding describes how a workspace passed into the pipeline should be -// mapped to a task's declared workspace. -#WorkspacePipelineTaskBinding: { - // Name is the name of the workspace as declared by the task - name: string @go(Name) - - // Workspace is the name of the workspace declared by the pipeline - // +optional - workspace?: string @go(Workspace) - - // SubPath is optionally a directory on the volume which should be used - // for this binding (i.e. the volume will be mounted at this sub directory). - // +optional - subPath?: string @go(SubPath) -} - -// WorkspaceUsage is used by a Step or Sidecar to declare that it wants isolated access -// to a Workspace defined in a Task. -#WorkspaceUsage: { - // Name is the name of the workspace this Step or Sidecar wants access to. - name: string @go(Name) - - // MountPath is the path that the workspace should be mounted to inside the Step or Sidecar, - // overriding any MountPath specified in the Task's WorkspaceDeclaration. - mountPath: string @go(MountPath) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/register_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/register_go_gen.cue deleted file mode 100644 index de5fb91..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/resolution - -package resolution - -// GroupName is the name of the API group. -#GroupName: "resolution.tekton.dev" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/doc_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/doc_go_gen.cue deleted file mode 100644 index 4268831..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1 - -// +k8s:openapi-gen=true -// +k8s:deepcopy-gen=package,register -// +k8s:defaulter-gen=TypeMeta -// +groupName=resolution.tekton.dev -package v1alpha1 diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_defaults_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_defaults_go_gen.cue deleted file mode 100644 index bab1b70..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_defaults_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1 - -package v1alpha1 - -#ManagedByLabelKey: "app.kubernetes.io/managed-by" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_types_go_gen.cue deleted file mode 100644 index e11eddb..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_types_go_gen.cue +++ /dev/null @@ -1,73 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1 - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - duckv1 "knative.dev/pkg/apis/duck/v1" - pipelinev1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1" -) - -// ResolutionRequest is an object for requesting the content of -// a Tekton resource like a pipeline.yaml. -// -// +genclient -// +genreconciler -#ResolutionRequest: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // Spec holds the information for the request part of the resource request. - // +optional - spec?: #ResolutionRequestSpec @go(Spec) - - // Status communicates the state of the request and, ultimately, - // the content of the resolved resource. - // +optional - status?: #ResolutionRequestStatus @go(Status) -} - -// ResolutionRequestList is a list of ResolutionRequests. -#ResolutionRequestList: { - metav1.#TypeMeta - - // +optional - metadata: metav1.#ListMeta @go(ListMeta) - items: [...#ResolutionRequest] @go(Items,[]ResolutionRequest) -} - -// ResolutionRequestSpec are all the fields in the spec of the -// ResolutionRequest CRD. -#ResolutionRequestSpec: { - // Parameters are the runtime attributes passed to - // the resolver to help it figure out how to resolve the - // resource being requested. For example: repo URL, commit SHA, - // path to file, the kind of authentication to leverage, etc. - // +optional - params?: {[string]: string} @go(Parameters,map[string]string) -} - -// ResolutionRequestStatus are all the fields in a ResolutionRequest's -// status subresource. -#ResolutionRequestStatus: { - duckv1.#Status - - #ResolutionRequestStatusFields -} - -// ResolutionRequestStatusFields are the ResolutionRequest-specific fields -// for the status subresource. -#ResolutionRequestStatusFields: { - // Data is a string representation of the resolved content - // of the requested resource in-lined into the ResolutionRequest - // object. - data: string @go(Data) - - // RefSource is the source reference of the remote data that records where the remote - // file came from including the url, digest and the entrypoint. - refSource?: null | pipelinev1.#RefSource @go(RefSource,*pipelinev1.RefSource) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/doc_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/doc_go_gen.cue deleted file mode 100644 index 775efe1..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1 - -// +k8s:openapi-gen=true -// +k8s:deepcopy-gen=package,register -// +k8s:defaulter-gen=TypeMeta -// +groupName=resolution.tekton.dev -package v1beta1 diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_defaults_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_defaults_go_gen.cue deleted file mode 100644 index 9fdd020..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_defaults_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1 - -package v1beta1 - -#ManagedByLabelKey: "app.kubernetes.io/managed-by" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_types_go_gen.cue deleted file mode 100644 index 79f8180..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_types_go_gen.cue +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - pipelinev1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1" - duckv1 "knative.dev/pkg/apis/duck/v1" -) - -// ResolutionRequest is an object for requesting the content of -// a Tekton resource like a pipeline.yaml. -// -// +genclient -// +genreconciler -#ResolutionRequest: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // Spec holds the information for the request part of the resource request. - // +optional - spec?: #ResolutionRequestSpec @go(Spec) - - // Status communicates the state of the request and, ultimately, - // the content of the resolved resource. - // +optional - status?: #ResolutionRequestStatus @go(Status) -} - -// ResolutionRequestList is a list of ResolutionRequests. -#ResolutionRequestList: { - metav1.#TypeMeta - - // +optional - metadata: metav1.#ListMeta @go(ListMeta) - items: [...#ResolutionRequest] @go(Items,[]ResolutionRequest) -} - -// ResolutionRequestSpec are all the fields in the spec of the -// ResolutionRequest CRD. -#ResolutionRequestSpec: { - // Parameters are the runtime attributes passed to - // the resolver to help it figure out how to resolve the - // resource being requested. For example: repo URL, commit SHA, - // path to file, the kind of authentication to leverage, etc. - // +optional - // +listType=atomic - params?: [...pipelinev1.#Param] @go(Params,[]pipelinev1.Param) -} - -// ResolutionRequestStatus are all the fields in a ResolutionRequest's -// status subresource. -#ResolutionRequestStatus: { - duckv1.#Status - - #ResolutionRequestStatusFields -} - -// ResolutionRequestStatusFields are the ResolutionRequest-specific fields -// for the status subresource. -#ResolutionRequestStatusFields: { - // Data is a string representation of the resolved content - // of the requested resource in-lined into the ResolutionRequest - // object. - data: string @go(Data) - - // Deprecated: Use RefSource instead - source?: null | pipelinev1.#RefSource @go(Source,*pipelinev1.RefSource) - - // RefSource is the source reference of the remote data that records the url, digest - // and the entrypoint. - refSource?: null | pipelinev1.#RefSource @go(RefSource,*pipelinev1.RefSource) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/doc_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/doc_go_gen.cue deleted file mode 100644 index 8e91046..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1 - -// Package v1alpha1 contains API Schema definitions for the pipeline v1alpha1 API group -// +k8s:deepcopy-gen=package,register -// +k8s:conversion-gen=github.com/tektoncd/pipeline/pkg/apis/resource -// +k8s:defaulter-gen=TypeMeta -// +groupName=tekton.dev -package v1alpha1 diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/pipeline_resource_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/pipeline_resource_types_go_gen.cue deleted file mode 100644 index 5022e30..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/pipeline_resource_types_go_gen.cue +++ /dev/null @@ -1,124 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1 - -// The contents of this package are deprecated and unused. Preserved for backwards compatibility. -package v1alpha1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// PipelineResourceType represents the type of endpoint the pipelineResource is, so that the -// controller will know this pipelineResource shouldx be fetched and optionally what -// additional metatdata should be provided for it. -// -// Deprecated: Unused, preserved only for backwards compatibility -#PipelineResourceType: string - -// PipelineResource describes a resource that is an input to or output from a -// Task. -// -// Deprecated: Unused, preserved only for backwards compatibility -// +k8s:openapi-gen=true -#PipelineResource: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // Spec holds the desired state of the PipelineResource from the client - spec?: #PipelineResourceSpec @go(Spec) - - // Status is used to communicate the observed state of the PipelineResource from - // the controller, but was unused as there is no controller for PipelineResource. - // - // +optional - status?: null | #PipelineResourceStatus @go(Status,*PipelineResourceStatus) -} - -// PipelineResourceStatus does not contain anything because PipelineResources on their own -// do not have a status -// -// Deprecated: Unused, preserved only for backwards compatibility -#PipelineResourceStatus: { -} - -// PipelineResourceSpec defines an individual resources used in the pipeline. -// -// Deprecated: Unused, preserved only for backwards compatibility -#PipelineResourceSpec: { - // Description is a user-facing description of the resource that may be - // used to populate a UI. - // +optional - description?: string @go(Description) - type: string @go(Type) - - // +listType=atomic - params: [...#ResourceParam] @go(Params,[]ResourceParam) - - // Secrets to fetch to populate some of resource fields - // +optional - // +listType=atomic - secrets?: [...#SecretParam] @go(SecretParams,[]SecretParam) -} - -// SecretParam indicates which secret can be used to populate a field of the resource -// -// Deprecated: Unused, preserved only for backwards compatibility -#SecretParam: { - fieldName: string @go(FieldName) - secretKey: string @go(SecretKey) - secretName: string @go(SecretName) -} - -// ResourceParam declares a string value to use for the parameter called Name, and is used in -// the specific context of PipelineResources. -// -// Deprecated: Unused, preserved only for backwards compatibility -#ResourceParam: { - name: string @go(Name) - value: string @go(Value) -} - -// ResourceDeclaration defines an input or output PipelineResource declared as a requirement -// by another type such as a Task or Condition. The Name field will be used to refer to these -// PipelineResources within the type's definition, and when provided as an Input, the Name will be the -// path to the volume mounted containing this PipelineResource as an input (e.g. -// an input Resource named `workspace` will be mounted at `/workspace`). -// -// Deprecated: Unused, preserved only for backwards compatibility -#ResourceDeclaration: { - // Name declares the name by which a resource is referenced in the - // definition. Resources may be referenced by name in the definition of a - // Task's steps. - name: string @go(Name) - - // Type is the type of this resource; - type: string @go(Type) - - // Description is a user-facing description of the declared resource that may be - // used to populate a UI. - // +optional - description?: string @go(Description) - - // TargetPath is the path in workspace directory where the resource - // will be copied. - // +optional - targetPath?: string @go(TargetPath) - - // Optional declares the resource as optional. - // By default optional is set to false which makes a resource required. - // optional: true - the resource is considered optional - // optional: false - the resource is considered required (equivalent of not specifying it) - optional?: bool @go(Optional) -} - -// PipelineResourceList contains a list of PipelineResources -// -// Deprecated: Unused, preserved only for backwards compatibility -#PipelineResourceList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PipelineResource] @go(Items,[]PipelineResource) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1/doc_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1/doc_go_gen.cue deleted file mode 100644 index b946fe9..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1 - -// Package v1alpha1 contains API Schema definitions for the run v1alpha1 API group -// +groupName=tekton.dev -package v1alpha1 diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1/runstatus_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1/runstatus_types_go_gen.cue deleted file mode 100644 index 50ff471..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1/runstatus_types_go_gen.cue +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1 - -package v1alpha1 - -import ( - duckv1 "knative.dev/pkg/apis/duck/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -// RunStatus defines the observed state of Run -#RunStatus: { - duckv1.#Status - - #RunStatusFields -} - -// RunStatusFields holds the fields of Run's status. This is defined -// separately and inlined so that other types can readily consume these fields -// via duck typing. -#RunStatusFields: { - // StartTime is the time the build is actually started. - // +optional - startTime?: null | metav1.#Time @go(StartTime,*metav1.Time) - - // CompletionTime is the time the build completed. - // +optional - completionTime?: null | metav1.#Time @go(CompletionTime,*metav1.Time) - - // Results reports any output result values to be consumed by later - // tasks in a pipeline. - // +optional - results?: [...#RunResult] @go(Results,[]RunResult) - - // RetriesStatus contains the history of RunStatus, in case of a retry. - // +optional - retriesStatus?: [...#RunStatus] @go(RetriesStatus,[]RunStatus) - - // ExtraFields holds arbitrary fields provided by the custom task - // controller. - extraFields?: runtime.#RawExtension @go(ExtraFields) -} - -// RunResult used to describe the results of a task -#RunResult: { - // Name the given name - name: string @go(Name) - - // Value the given value of the result - value: string @go(Value) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/run/v1beta1/customrunstatus_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/run/v1beta1/customrunstatus_types_go_gen.cue deleted file mode 100644 index a280950..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/run/v1beta1/customrunstatus_types_go_gen.cue +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/run/v1beta1 - -package v1beta1 - -import ( - duckv1 "knative.dev/pkg/apis/duck/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -// CustomRunStatus defines the observed state of CustomRun -#CustomRunStatus: { - duckv1.#Status - - #CustomRunStatusFields -} - -// CustomRunStatusFields holds the fields of CustomRun's status. This is defined -// separately and inlined so that other types can readily consume these fields -// via duck typing. -#CustomRunStatusFields: { - // StartTime is the time the build is actually started. - // +optional - startTime?: null | metav1.#Time @go(StartTime,*metav1.Time) - - // CompletionTime is the time the build completed. - // +optional - completionTime?: null | metav1.#Time @go(CompletionTime,*metav1.Time) - - // Results reports any output result values to be consumed by later - // tasks in a pipeline. - // +optional - results?: [...#CustomRunResult] @go(Results,[]CustomRunResult) - - // RetriesStatus contains the history of CustomRunStatus, in case of a retry. - // +optional - retriesStatus?: [...#CustomRunStatus] @go(RetriesStatus,[]CustomRunStatus) - - // ExtraFields holds arbitrary fields provided by the custom task - // controller. - extraFields?: runtime.#RawExtension @go(ExtraFields) -} - -// CustomRunResult used to describe the results of a task -#CustomRunResult: { - // Name the given name - name: string @go(Name) - - // Value the given value of the result - value: string @go(Value) -} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/run/v1beta1/doc_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/run/v1beta1/doc_go_gen.cue deleted file mode 100644 index 416fc62..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/run/v1beta1/doc_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/run/v1beta1 - -// Package v1beta1 contains API Schema definitions for the customrun v1beta1 API group -// +groupName=tekton.dev -package v1beta1 diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/validate/metadata_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/validate/metadata_go_gen.cue deleted file mode 100644 index d8d0f4b..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/validate/metadata_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/apis/validate - -package validate - -#MaxLength: int & 63 diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/result/result_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/result/result_go_gen.cue deleted file mode 100644 index 971fc45..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/result/result_go_gen.cue +++ /dev/null @@ -1,40 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/result - -package result - -// TaskRunResultType default task run result value -#TaskRunResultType: #ResultType & 1 - -// InternalTektonResultType default internal tekton result value -#InternalTektonResultType: 3 - -// UnknownResultType default unknown result type value -#UnknownResultType: 10 - -// RunResult is used to write key/value pairs to TaskRun pod termination messages. -// The key/value pairs may come from the entrypoint binary, or represent a TaskRunResult. -// If they represent a TaskRunResult, the key is the name of the result and the value is the -// JSON-serialized value of the result. -#RunResult: { - key: string @go(Key) - value: string @go(Value) - - // ResourceName may be used in tests, but it is not populated in termination messages. - // It is preserved here for backwards compatibility and will not be ported to v1. - resourceName?: string @go(ResourceName) - type?: #ResultType @go(ResultType) -} - -// ResultType used to find out whether a RunResult is from a task result or not -// Note that ResultsType is another type which is used to define the data type -// (e.g. string, array, etc) we used for Results -// -//nolint:revive // revive complains about stutter of `result.ResultType`. -#ResultType: _ // #enumResultType - -#enumResultType: - #TaskRunResultType - -#values_ResultType: TaskRunResultType: #TaskRunResultType diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/spire/config/config_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/spire/config/config_go_gen.cue deleted file mode 100644 index 2976721..0000000 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/spire/config/config_go_gen.cue +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/tektoncd/pipeline/pkg/spire/config - -package config - -// SpireConfig holds the images reference for a number of container images used -// across tektoncd pipelines. -// +k8s:deepcopy-gen=true -#SpireConfig: { - // The trust domain corresponds to the trust root of a SPIFFE identity provider. - TrustDomain: string - - // Path to the spire agent socket defined by the CSI driver - SocketPath: string - - // Spire server address - ServerAddr: string - - // Prefix to attach to the node name when registering it with the spire server - NodeAliasPrefix: string - - // MockSpire only to be used for testing the controller, will not exhibit - // all characteristics of spire since it is only being used in the context - // of process memory. - MockSpire: bool -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/accessanalyzer/v1beta1/zz_analyzer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/accessanalyzer/v1beta1/zz_analyzer_types_go_gen.cue deleted file mode 100644 index 5f4032d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/accessanalyzer/v1beta1/zz_analyzer_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/accessanalyzer/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AnalyzerInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Type of Analyzer. Valid values are ACCOUNT or ORGANIZATION. Defaults to ACCOUNT. - type?: null | string @go(Type,*string) -} - -#AnalyzerObservation: { - // ARN of the Analyzer. - arn?: null | string @go(Arn,*string) - - // Analyzer name. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Type of Analyzer. Valid values are ACCOUNT or ORGANIZATION. Defaults to ACCOUNT. - type?: null | string @go(Type,*string) -} - -#AnalyzerParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Type of Analyzer. Valid values are ACCOUNT or ORGANIZATION. Defaults to ACCOUNT. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// AnalyzerSpec defines the desired state of Analyzer -#AnalyzerSpec: { - v1.#ResourceSpec - forProvider: #AnalyzerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AnalyzerInitParameters @go(InitProvider) -} - -// AnalyzerStatus defines the observed state of Analyzer. -#AnalyzerStatus: { - v1.#ResourceStatus - atProvider?: #AnalyzerObservation @go(AtProvider) -} - -// Analyzer is the Schema for the Analyzers API. Manages an Access Analyzer Analyzer -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Analyzer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AnalyzerSpec @go(Spec) - status?: #AnalyzerStatus @go(Status) -} - -// AnalyzerList contains a list of Analyzers -#AnalyzerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Analyzer] @go(Items,[]Analyzer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/accessanalyzer/v1beta1/zz_archiverule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/accessanalyzer/v1beta1/zz_archiverule_types_go_gen.cue deleted file mode 100644 index 784bbf0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/accessanalyzer/v1beta1/zz_archiverule_types_go_gen.cue +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/accessanalyzer/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ArchiveRuleInitParameters: { - // Filter criteria for the archive rule. See Filter for more details. - filter?: [...#FilterInitParameters] @go(Filter,[]FilterInitParameters) -} - -#ArchiveRuleObservation: { - // Analyzer name. - analyzerName?: null | string @go(AnalyzerName,*string) - - // Filter criteria for the archive rule. See Filter for more details. - filter?: [...#FilterObservation] @go(Filter,[]FilterObservation) - - // Resource ID in the format: analyzer_name/rule_name. - id?: null | string @go(ID,*string) -} - -#ArchiveRuleParameters: { - // Analyzer name. - // +kubebuilder:validation:Required - analyzerName?: null | string @go(AnalyzerName,*string) - - // Filter criteria for the archive rule. See Filter for more details. - // +kubebuilder:validation:Optional - filter?: [...#FilterParameters] @go(Filter,[]FilterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#FilterInitParameters: { - // Contains comparator. - contains?: [...null | string] @go(Contains,[]*string) - - // Filter criteria. - criteria?: null | string @go(Criteria,*string) - - // Equals comparator. - eq?: [...null | string] @go(Eq,[]*string) - - // Boolean comparator. - exists?: null | string @go(Exists,*string) - - // Not Equals comparator. - neq?: [...null | string] @go(Neq,[]*string) -} - -#FilterObservation: { - // Contains comparator. - contains?: [...null | string] @go(Contains,[]*string) - - // Filter criteria. - criteria?: null | string @go(Criteria,*string) - - // Equals comparator. - eq?: [...null | string] @go(Eq,[]*string) - - // Boolean comparator. - exists?: null | string @go(Exists,*string) - - // Not Equals comparator. - neq?: [...null | string] @go(Neq,[]*string) -} - -#FilterParameters: { - // Contains comparator. - // +kubebuilder:validation:Optional - contains?: [...null | string] @go(Contains,[]*string) - - // Filter criteria. - // +kubebuilder:validation:Optional - criteria?: null | string @go(Criteria,*string) - - // Equals comparator. - // +kubebuilder:validation:Optional - eq?: [...null | string] @go(Eq,[]*string) - - // Boolean comparator. - // +kubebuilder:validation:Optional - exists?: null | string @go(Exists,*string) - - // Not Equals comparator. - // +kubebuilder:validation:Optional - neq?: [...null | string] @go(Neq,[]*string) -} - -// ArchiveRuleSpec defines the desired state of ArchiveRule -#ArchiveRuleSpec: { - v1.#ResourceSpec - forProvider: #ArchiveRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ArchiveRuleInitParameters @go(InitProvider) -} - -// ArchiveRuleStatus defines the observed state of ArchiveRule. -#ArchiveRuleStatus: { - v1.#ResourceStatus - atProvider?: #ArchiveRuleObservation @go(AtProvider) -} - -// ArchiveRule is the Schema for the ArchiveRules API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ArchiveRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.filter) || (has(self.initProvider) && has(self.initProvider.filter))",message="spec.forProvider.filter is a required parameter" - spec: #ArchiveRuleSpec @go(Spec) - status?: #ArchiveRuleStatus @go(Status) -} - -// ArchiveRuleList contains a list of ArchiveRules -#ArchiveRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ArchiveRule] @go(Items,[]ArchiveRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/accessanalyzer/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/accessanalyzer/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index afbbf14..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/accessanalyzer/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/accessanalyzer/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=accessanalyzer.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "accessanalyzer.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/account/v1beta1/zz_alternatecontact_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/account/v1beta1/zz_alternatecontact_types_go_gen.cue deleted file mode 100644 index 0768594..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/account/v1beta1/zz_alternatecontact_types_go_gen.cue +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/account/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AlternateContactInitParameters: { - // ID of the target account when managing member accounts. Will manage current user's account by default if omitted. - accountId?: null | string @go(AccountID,*string) - - // An email address for the alternate contact. - emailAddress?: null | string @go(EmailAddress,*string) - - // Name of the alternate contact. - name?: null | string @go(Name,*string) - - // Phone number for the alternate contact. - phoneNumber?: null | string @go(PhoneNumber,*string) - - // Title for the alternate contact. - title?: null | string @go(Title,*string) -} - -#AlternateContactObservation: { - // ID of the target account when managing member accounts. Will manage current user's account by default if omitted. - accountId?: null | string @go(AccountID,*string) - - // Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY. - alternateContactType?: null | string @go(AlternateContactType,*string) - - // An email address for the alternate contact. - emailAddress?: null | string @go(EmailAddress,*string) - id?: null | string @go(ID,*string) - - // Name of the alternate contact. - name?: null | string @go(Name,*string) - - // Phone number for the alternate contact. - phoneNumber?: null | string @go(PhoneNumber,*string) - - // Title for the alternate contact. - title?: null | string @go(Title,*string) -} - -#AlternateContactParameters: { - // ID of the target account when managing member accounts. Will manage current user's account by default if omitted. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY. - // +kubebuilder:validation:Required - alternateContactType?: null | string @go(AlternateContactType,*string) - - // An email address for the alternate contact. - // +kubebuilder:validation:Optional - emailAddress?: null | string @go(EmailAddress,*string) - - // Name of the alternate contact. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Phone number for the alternate contact. - // +kubebuilder:validation:Optional - phoneNumber?: null | string @go(PhoneNumber,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Title for the alternate contact. - // +kubebuilder:validation:Optional - title?: null | string @go(Title,*string) -} - -// AlternateContactSpec defines the desired state of AlternateContact -#AlternateContactSpec: { - v1.#ResourceSpec - forProvider: #AlternateContactParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AlternateContactInitParameters @go(InitProvider) -} - -// AlternateContactStatus defines the observed state of AlternateContact. -#AlternateContactStatus: { - v1.#ResourceStatus - atProvider?: #AlternateContactObservation @go(AtProvider) -} - -// AlternateContact is the Schema for the AlternateContacts API. Manages the specified alternate contact attached to an AWS Account. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AlternateContact: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.emailAddress) || (has(self.initProvider) && has(self.initProvider.emailAddress))",message="spec.forProvider.emailAddress is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.phoneNumber) || (has(self.initProvider) && has(self.initProvider.phoneNumber))",message="spec.forProvider.phoneNumber is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.title) || (has(self.initProvider) && has(self.initProvider.title))",message="spec.forProvider.title is a required parameter" - spec: #AlternateContactSpec @go(Spec) - status?: #AlternateContactStatus @go(Status) -} - -// AlternateContactList contains a list of AlternateContacts -#AlternateContactList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AlternateContact] @go(Items,[]AlternateContact) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/account/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/account/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index f985f86..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/account/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/account/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=account.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "account.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/acm/v1beta1/zz_certificate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/acm/v1beta1/zz_certificate_types_go_gen.cue deleted file mode 100644 index f0b9309..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/acm/v1beta1/zz_certificate_types_go_gen.cue +++ /dev/null @@ -1,307 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/acm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CertificateInitParameters: { - // ARN of an ACM PCA - certificateAuthorityArn?: null | string @go(CertificateAuthorityArn,*string) - - // Certificate's PEM-formatted public key - certificateBody?: null | string @go(CertificateBody,*string) - - // Certificate's PEM-formatted chain - certificateChain?: null | string @go(CertificateChain,*string) - - // Domain name for which the certificate should be issued - domainName?: null | string @go(DomainName,*string) - - // Amount of time to start automatic renewal process before expiration. - // Has no effect if less than 60 days. - // Represented by either - // a subset of RFC 3339 duration supporting years, months, and days (e.g., P90D), - // or a string such as 2160h. - earlyRenewalDuration?: null | string @go(EarlyRenewalDuration,*string) - - // Specifies the algorithm of the public and private key pair that your Amazon issued certificate uses to encrypt data. See ACM Certificate characteristics for more details. - keyAlgorithm?: null | string @go(KeyAlgorithm,*string) - - // Configuration block used to set certificate options. Detailed below. - options?: [...#OptionsInitParameters] @go(Options,[]OptionsInitParameters) - - // Set of domains that should be SANs in the issued certificate. - subjectAlternativeNames?: [...null | string] @go(SubjectAlternativeNames,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Which method to use for validation. - validationMethod?: null | string @go(ValidationMethod,*string) - - // Configuration block used to specify information about the initial validation of each domain name. Detailed below. - validationOption?: [...#ValidationOptionInitParameters] @go(ValidationOption,[]ValidationOptionInitParameters) -} - -#CertificateObservation: { - // ARN of the certificate - arn?: null | string @go(Arn,*string) - - // ARN of an ACM PCA - certificateAuthorityArn?: null | string @go(CertificateAuthorityArn,*string) - - // Certificate's PEM-formatted public key - certificateBody?: null | string @go(CertificateBody,*string) - - // Certificate's PEM-formatted chain - certificateChain?: null | string @go(CertificateChain,*string) - - // Domain name for which the certificate should be issued - domainName?: null | string @go(DomainName,*string) - - // Set of domain validation objects which can be used to complete certificate validation. - // Can have more than one element, e.g., if SANs are defined. - // Only set if DNS-validation was used. - domainValidationOptions?: [...#DomainValidationOptionsObservation] @go(DomainValidationOptions,[]DomainValidationOptionsObservation) - - // Amount of time to start automatic renewal process before expiration. - // Has no effect if less than 60 days. - // Represented by either - // a subset of RFC 3339 duration supporting years, months, and days (e.g., P90D), - // or a string such as 2160h. - earlyRenewalDuration?: null | string @go(EarlyRenewalDuration,*string) - - // ARN of the certificate - id?: null | string @go(ID,*string) - - // Specifies the algorithm of the public and private key pair that your Amazon issued certificate uses to encrypt data. See ACM Certificate characteristics for more details. - keyAlgorithm?: null | string @go(KeyAlgorithm,*string) - - // Expiration date and time of the certificate. - notAfter?: null | string @go(NotAfter,*string) - - // Start of the validity period of the certificate. - notBefore?: null | string @go(NotBefore,*string) - - // Configuration block used to set certificate options. Detailed below. - options?: [...#OptionsObservation] @go(Options,[]OptionsObservation) - - // true if a Private certificate eligible for managed renewal is within the early_renewal_duration period. - pendingRenewal?: null | bool @go(PendingRenewal,*bool) - - // Whether the certificate is eligible for managed renewal. - renewalEligibility?: null | string @go(RenewalEligibility,*string) - - // Contains information about the status of ACM's managed renewal for the certificate. - renewalSummary?: [...#RenewalSummaryObservation] @go(RenewalSummary,[]RenewalSummaryObservation) - - // Status of the certificate. - status?: null | string @go(Status,*string) - - // Set of domains that should be SANs in the issued certificate. - subjectAlternativeNames?: [...null | string] @go(SubjectAlternativeNames,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Source of the certificate. - type?: null | string @go(Type,*string) - - // List of addresses that received a validation email. Only set if EMAIL validation was used. - validationEmails?: [...null | string] @go(ValidationEmails,[]*string) - - // Which method to use for validation. - validationMethod?: null | string @go(ValidationMethod,*string) - - // Configuration block used to specify information about the initial validation of each domain name. Detailed below. - validationOption?: [...#ValidationOptionObservation] @go(ValidationOption,[]ValidationOptionObservation) -} - -#CertificateParameters: { - // ARN of an ACM PCA - // +kubebuilder:validation:Optional - certificateAuthorityArn?: null | string @go(CertificateAuthorityArn,*string) - - // Certificate's PEM-formatted public key - // +kubebuilder:validation:Optional - certificateBody?: null | string @go(CertificateBody,*string) - - // Certificate's PEM-formatted chain - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) - - // Domain name for which the certificate should be issued - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Amount of time to start automatic renewal process before expiration. - // Has no effect if less than 60 days. - // Represented by either - // a subset of RFC 3339 duration supporting years, months, and days (e.g., P90D), - // or a string such as 2160h. - // +kubebuilder:validation:Optional - earlyRenewalDuration?: null | string @go(EarlyRenewalDuration,*string) - - // Specifies the algorithm of the public and private key pair that your Amazon issued certificate uses to encrypt data. See ACM Certificate characteristics for more details. - // +kubebuilder:validation:Optional - keyAlgorithm?: null | string @go(KeyAlgorithm,*string) - - // Configuration block used to set certificate options. Detailed below. - // +kubebuilder:validation:Optional - options?: [...#OptionsParameters] @go(Options,[]OptionsParameters) - - // Certificate's PEM-formatted private key - // +kubebuilder:validation:Optional - privateKeySecretRef?: null | v1.#SecretKeySelector @go(PrivateKeySecretRef,*v1.SecretKeySelector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Set of domains that should be SANs in the issued certificate. - // +kubebuilder:validation:Optional - subjectAlternativeNames?: [...null | string] @go(SubjectAlternativeNames,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Which method to use for validation. - // +kubebuilder:validation:Optional - validationMethod?: null | string @go(ValidationMethod,*string) - - // Configuration block used to specify information about the initial validation of each domain name. Detailed below. - // +kubebuilder:validation:Optional - validationOption?: [...#ValidationOptionParameters] @go(ValidationOption,[]ValidationOptionParameters) -} - -#DomainValidationOptionsInitParameters: { -} - -#DomainValidationOptionsObservation: { - // Fully qualified domain name (FQDN) in the certificate. - domainName?: null | string @go(DomainName,*string) - - // The name of the DNS record to create to validate the certificate - resourceRecordName?: null | string @go(ResourceRecordName,*string) - - // The type of DNS record to create - resourceRecordType?: null | string @go(ResourceRecordType,*string) - - // The value the DNS record needs to have - resourceRecordValue?: null | string @go(ResourceRecordValue,*string) -} - -#DomainValidationOptionsParameters: { -} - -#OptionsInitParameters: { - // Whether certificate details should be added to a certificate transparency log. Valid values are ENABLED or DISABLED. See https://docs.aws.amazon.com/acm/latest/userguide/acm-concepts.html#concept-transparency for more details. - certificateTransparencyLoggingPreference?: null | string @go(CertificateTransparencyLoggingPreference,*string) -} - -#OptionsObservation: { - // Whether certificate details should be added to a certificate transparency log. Valid values are ENABLED or DISABLED. See https://docs.aws.amazon.com/acm/latest/userguide/acm-concepts.html#concept-transparency for more details. - certificateTransparencyLoggingPreference?: null | string @go(CertificateTransparencyLoggingPreference,*string) -} - -#OptionsParameters: { - // Whether certificate details should be added to a certificate transparency log. Valid values are ENABLED or DISABLED. See https://docs.aws.amazon.com/acm/latest/userguide/acm-concepts.html#concept-transparency for more details. - // +kubebuilder:validation:Optional - certificateTransparencyLoggingPreference?: null | string @go(CertificateTransparencyLoggingPreference,*string) -} - -#RenewalSummaryInitParameters: { -} - -#RenewalSummaryObservation: { - // The status of ACM's managed renewal of the certificate - renewalStatus?: null | string @go(RenewalStatus,*string) - - // The reason that a renewal request was unsuccessful or is pending - renewalStatusReason?: null | string @go(RenewalStatusReason,*string) - updatedAt?: null | string @go(UpdatedAt,*string) -} - -#RenewalSummaryParameters: { -} - -#ValidationOptionInitParameters: { - // Fully qualified domain name (FQDN) in the certificate. - domainName?: null | string @go(DomainName,*string) - - // Domain name that you want ACM to use to send you validation emails. This domain name is the suffix of the email addresses that you want ACM to use. This must be the same as the domain_name value or a superdomain of the domain_name value. For example, if you request a certificate for "testing.example.com", you can specify "example.com" for this value. - validationDomain?: null | string @go(ValidationDomain,*string) -} - -#ValidationOptionObservation: { - // Fully qualified domain name (FQDN) in the certificate. - domainName?: null | string @go(DomainName,*string) - - // Domain name that you want ACM to use to send you validation emails. This domain name is the suffix of the email addresses that you want ACM to use. This must be the same as the domain_name value or a superdomain of the domain_name value. For example, if you request a certificate for "testing.example.com", you can specify "example.com" for this value. - validationDomain?: null | string @go(ValidationDomain,*string) -} - -#ValidationOptionParameters: { - // Fully qualified domain name (FQDN) in the certificate. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Domain name that you want ACM to use to send you validation emails. This domain name is the suffix of the email addresses that you want ACM to use. This must be the same as the domain_name value or a superdomain of the domain_name value. For example, if you request a certificate for "testing.example.com", you can specify "example.com" for this value. - // +kubebuilder:validation:Optional - validationDomain?: null | string @go(ValidationDomain,*string) -} - -// CertificateSpec defines the desired state of Certificate -#CertificateSpec: { - v1.#ResourceSpec - forProvider: #CertificateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CertificateInitParameters @go(InitProvider) -} - -// CertificateStatus defines the observed state of Certificate. -#CertificateStatus: { - v1.#ResourceStatus - atProvider?: #CertificateObservation @go(AtProvider) -} - -// Certificate is the Schema for the Certificates API. Requests and manages a certificate from Amazon Certificate Manager (ACM). -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Certificate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CertificateSpec @go(Spec) - status?: #CertificateStatus @go(Status) -} - -// CertificateList contains a list of Certificates -#CertificateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Certificate] @go(Items,[]Certificate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/acm/v1beta1/zz_certificatevalidation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/acm/v1beta1/zz_certificatevalidation_types_go_gen.cue deleted file mode 100644 index 3963e8f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/acm/v1beta1/zz_certificatevalidation_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/acm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CertificateValidationInitParameters: { - // List of FQDNs that implement the validation. Only valid for DNS validation method ACM certificates. If this is set, the resource can implement additional sanity checks and has an explicit dependency on the resource that is implementing the validation - validationRecordFqdns?: [...null | string] @go(ValidationRecordFqdns,[]*string) -} - -#CertificateValidationObservation: { - // ARN of the certificate that is being validated. - certificateArn?: null | string @go(CertificateArn,*string) - - // Time at which the certificate was issued - id?: null | string @go(ID,*string) - - // List of FQDNs that implement the validation. Only valid for DNS validation method ACM certificates. If this is set, the resource can implement additional sanity checks and has an explicit dependency on the resource that is implementing the validation - validationRecordFqdns?: [...null | string] @go(ValidationRecordFqdns,[]*string) -} - -#CertificateValidationParameters: { - // ARN of the certificate that is being validated. - // +crossplane:generate:reference:type=Certificate - // +kubebuilder:validation:Optional - certificateArn?: null | string @go(CertificateArn,*string) - - // Reference to a Certificate to populate certificateArn. - // +kubebuilder:validation:Optional - certificateArnRef?: null | v1.#Reference @go(CertificateArnRef,*v1.Reference) - - // Selector for a Certificate to populate certificateArn. - // +kubebuilder:validation:Optional - certificateArnSelector?: null | v1.#Selector @go(CertificateArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // List of FQDNs that implement the validation. Only valid for DNS validation method ACM certificates. If this is set, the resource can implement additional sanity checks and has an explicit dependency on the resource that is implementing the validation - // +kubebuilder:validation:Optional - validationRecordFqdns?: [...null | string] @go(ValidationRecordFqdns,[]*string) -} - -// CertificateValidationSpec defines the desired state of CertificateValidation -#CertificateValidationSpec: { - v1.#ResourceSpec - forProvider: #CertificateValidationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CertificateValidationInitParameters @go(InitProvider) -} - -// CertificateValidationStatus defines the observed state of CertificateValidation. -#CertificateValidationStatus: { - v1.#ResourceStatus - atProvider?: #CertificateValidationObservation @go(AtProvider) -} - -// CertificateValidation is the Schema for the CertificateValidations API. Waits for and checks successful validation of an ACM certificate. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CertificateValidation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CertificateValidationSpec @go(Spec) - status?: #CertificateValidationStatus @go(Status) -} - -// CertificateValidationList contains a list of CertificateValidations -#CertificateValidationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CertificateValidation] @go(Items,[]CertificateValidation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/acm/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/acm/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index e966d21..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/acm/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/acm/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=acm.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "acm.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_certificate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_certificate_types_go_gen.cue deleted file mode 100644 index 944c98d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_certificate_types_go_gen.cue +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/acmpca/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CertificateInitParameters: { - // Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates - apiPassthrough?: null | string @go(APIPassthrough,*string) - - // Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA. - signingAlgorithm?: null | string @go(SigningAlgorithm,*string) - - // Template to use when issuing a certificate. - // See ACM PCA Documentation for more information. - templateArn?: null | string @go(TemplateArn,*string) - - // Configures end of the validity period for the certificate. See validity block below. - validity?: [...#ValidityInitParameters] @go(Validity,[]ValidityInitParameters) -} - -#CertificateObservation: { - // Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates - apiPassthrough?: null | string @go(APIPassthrough,*string) - - // ARN of the certificate. - arn?: null | string @go(Arn,*string) - - // PEM-encoded certificate value. - certificate?: null | string @go(Certificate,*string) - - // ARN of the certificate authority. - certificateAuthorityArn?: null | string @go(CertificateAuthorityArn,*string) - - // PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. - certificateChain?: null | string @go(CertificateChain,*string) - id?: null | string @go(ID,*string) - - // Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA. - signingAlgorithm?: null | string @go(SigningAlgorithm,*string) - - // Template to use when issuing a certificate. - // See ACM PCA Documentation for more information. - templateArn?: null | string @go(TemplateArn,*string) - - // Configures end of the validity period for the certificate. See validity block below. - validity?: [...#ValidityObservation] @go(Validity,[]ValidityObservation) -} - -#CertificateParameters: { - // Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates - // +kubebuilder:validation:Optional - apiPassthrough?: null | string @go(APIPassthrough,*string) - - // ARN of the certificate authority. - // +crossplane:generate:reference:type=CertificateAuthority - // +kubebuilder:validation:Optional - certificateAuthorityArn?: null | string @go(CertificateAuthorityArn,*string) - - // Reference to a CertificateAuthority to populate certificateAuthorityArn. - // +kubebuilder:validation:Optional - certificateAuthorityArnRef?: null | v1.#Reference @go(CertificateAuthorityArnRef,*v1.Reference) - - // Selector for a CertificateAuthority to populate certificateAuthorityArn. - // +kubebuilder:validation:Optional - certificateAuthorityArnSelector?: null | v1.#Selector @go(CertificateAuthorityArnSelector,*v1.Selector) - - // Certificate Signing Request in PEM format. - // +kubebuilder:validation:Optional - certificateSigningRequestSecretRef: v1.#SecretKeySelector @go(CertificateSigningRequestSecretRef) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA. - // +kubebuilder:validation:Optional - signingAlgorithm?: null | string @go(SigningAlgorithm,*string) - - // Template to use when issuing a certificate. - // See ACM PCA Documentation for more information. - // +kubebuilder:validation:Optional - templateArn?: null | string @go(TemplateArn,*string) - - // Configures end of the validity period for the certificate. See validity block below. - // +kubebuilder:validation:Optional - validity?: [...#ValidityParameters] @go(Validity,[]ValidityParameters) -} - -#ValidityInitParameters: { - // Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE. - type?: null | string @go(Type,*string) - - // If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format. - value?: null | string @go(Value,*string) -} - -#ValidityObservation: { - // Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE. - type?: null | string @go(Type,*string) - - // If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format. - value?: null | string @go(Value,*string) -} - -#ValidityParameters: { - // Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// CertificateSpec defines the desired state of Certificate -#CertificateSpec: { - v1.#ResourceSpec - forProvider: #CertificateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CertificateInitParameters @go(InitProvider) -} - -// CertificateStatus defines the observed state of Certificate. -#CertificateStatus: { - v1.#ResourceStatus - atProvider?: #CertificateObservation @go(AtProvider) -} - -// Certificate is the Schema for the Certificates API. Provides a resource to issue a certificate using AWS Certificate Manager Private Certificate Authority (ACM PCA) -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Certificate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.certificateSigningRequestSecretRef)",message="spec.forProvider.certificateSigningRequestSecretRef is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.signingAlgorithm) || (has(self.initProvider) && has(self.initProvider.signingAlgorithm))",message="spec.forProvider.signingAlgorithm is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.validity) || (has(self.initProvider) && has(self.initProvider.validity))",message="spec.forProvider.validity is a required parameter" - spec: #CertificateSpec @go(Spec) - status?: #CertificateStatus @go(Status) -} - -// CertificateList contains a list of Certificates -#CertificateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Certificate] @go(Items,[]Certificate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_certificateauthority_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_certificateauthority_types_go_gen.cue deleted file mode 100644 index 02d654c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_certificateauthority_types_go_gen.cue +++ /dev/null @@ -1,461 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/acmpca/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CertificateAuthorityConfigurationInitParameters: { - // Type of the public key algorithm and size, in bits, of the key pair that your key pair creates when it issues a certificate. Valid values can be found in the ACM PCA Documentation. - keyAlgorithm?: null | string @go(KeyAlgorithm,*string) - - // Name of the algorithm your private CA uses to sign certificate requests. Valid values can be found in the ACM PCA Documentation. - signingAlgorithm?: null | string @go(SigningAlgorithm,*string) - - // Nested argument that contains X.500 distinguished name information. At least one nested attribute must be specified. - subject?: [...#SubjectInitParameters] @go(Subject,[]SubjectInitParameters) -} - -#CertificateAuthorityConfigurationObservation: { - // Type of the public key algorithm and size, in bits, of the key pair that your key pair creates when it issues a certificate. Valid values can be found in the ACM PCA Documentation. - keyAlgorithm?: null | string @go(KeyAlgorithm,*string) - - // Name of the algorithm your private CA uses to sign certificate requests. Valid values can be found in the ACM PCA Documentation. - signingAlgorithm?: null | string @go(SigningAlgorithm,*string) - - // Nested argument that contains X.500 distinguished name information. At least one nested attribute must be specified. - subject?: [...#SubjectObservation] @go(Subject,[]SubjectObservation) -} - -#CertificateAuthorityConfigurationParameters: { - // Type of the public key algorithm and size, in bits, of the key pair that your key pair creates when it issues a certificate. Valid values can be found in the ACM PCA Documentation. - // +kubebuilder:validation:Optional - keyAlgorithm?: null | string @go(KeyAlgorithm,*string) - - // Name of the algorithm your private CA uses to sign certificate requests. Valid values can be found in the ACM PCA Documentation. - // +kubebuilder:validation:Optional - signingAlgorithm?: null | string @go(SigningAlgorithm,*string) - - // Nested argument that contains X.500 distinguished name information. At least one nested attribute must be specified. - // +kubebuilder:validation:Optional - subject: [...#SubjectParameters] @go(Subject,[]SubjectParameters) -} - -#CertificateAuthorityInitParameters: { - // Nested argument containing algorithms and certificate subject information. Defined below. - certificateAuthorityConfiguration?: [...#CertificateAuthorityConfigurationInitParameters] @go(CertificateAuthorityConfiguration,[]CertificateAuthorityConfigurationInitParameters) - - // Whether the certificate authority is enabled or disabled. Defaults to true. Can only be disabled if the CA is in an ACTIVE state. - enabled?: null | bool @go(Enabled,*bool) - - // Cryptographic key management compliance standard used for handling CA keys. Defaults to FIPS_140_2_LEVEL_3_OR_HIGHER. Valid values: FIPS_140_2_LEVEL_3_OR_HIGHER and FIPS_140_2_LEVEL_2_OR_HIGHER. Supported standard for each region can be found in the Storage and security compliance of AWS Private CA private keys Documentation. - keyStorageSecurityStandard?: null | string @go(KeyStorageSecurityStandard,*string) - - // Number of days to make a CA restorable after it has been deleted, must be between 7 to 30 days, with default to 30 days. - permanentDeletionTimeInDays?: null | float64 @go(PermanentDeletionTimeInDays,*float64) - - // Nested argument containing revocation configuration. Defined below. - revocationConfiguration?: [...#RevocationConfigurationInitParameters] @go(RevocationConfiguration,[]RevocationConfigurationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Type of the certificate authority. Defaults to SUBORDINATE. Valid values: ROOT and SUBORDINATE. - type?: null | string @go(Type,*string) - - // Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly. Short-lived certificate validity is limited to seven days. Defaults to GENERAL_PURPOSE. Valid values: GENERAL_PURPOSE and SHORT_LIVED_CERTIFICATE. - usageMode?: null | string @go(UsageMode,*string) -} - -#CertificateAuthorityObservation: { - // ARN of the certificate authority. - arn?: null | string @go(Arn,*string) - - // Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported. - certificate?: null | string @go(Certificate,*string) - - // Nested argument containing algorithms and certificate subject information. Defined below. - certificateAuthorityConfiguration?: [...#CertificateAuthorityConfigurationObservation] @go(CertificateAuthorityConfiguration,[]CertificateAuthorityConfigurationObservation) - - // Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported. - certificateChain?: null | string @go(CertificateChain,*string) - - // The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate. - certificateSigningRequest?: null | string @go(CertificateSigningRequest,*string) - - // Whether the certificate authority is enabled or disabled. Defaults to true. Can only be disabled if the CA is in an ACTIVE state. - enabled?: null | bool @go(Enabled,*bool) - - // ARN of the certificate authority. - id?: null | string @go(ID,*string) - - // Cryptographic key management compliance standard used for handling CA keys. Defaults to FIPS_140_2_LEVEL_3_OR_HIGHER. Valid values: FIPS_140_2_LEVEL_3_OR_HIGHER and FIPS_140_2_LEVEL_2_OR_HIGHER. Supported standard for each region can be found in the Storage and security compliance of AWS Private CA private keys Documentation. - keyStorageSecurityStandard?: null | string @go(KeyStorageSecurityStandard,*string) - - // Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported. - notAfter?: null | string @go(NotAfter,*string) - - // Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported. - notBefore?: null | string @go(NotBefore,*string) - - // Number of days to make a CA restorable after it has been deleted, must be between 7 to 30 days, with default to 30 days. - permanentDeletionTimeInDays?: null | float64 @go(PermanentDeletionTimeInDays,*float64) - - // Nested argument containing revocation configuration. Defined below. - revocationConfiguration?: [...#RevocationConfigurationObservation] @go(RevocationConfiguration,[]RevocationConfigurationObservation) - - // Serial number of the certificate authority. Only available after the certificate authority certificate has been imported. - serial?: null | string @go(Serial,*string) - - // (Deprecated use the enabled attribute instead) Status of the certificate authority. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Type of the certificate authority. Defaults to SUBORDINATE. Valid values: ROOT and SUBORDINATE. - type?: null | string @go(Type,*string) - - // Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly. Short-lived certificate validity is limited to seven days. Defaults to GENERAL_PURPOSE. Valid values: GENERAL_PURPOSE and SHORT_LIVED_CERTIFICATE. - usageMode?: null | string @go(UsageMode,*string) -} - -#CertificateAuthorityParameters: { - // Nested argument containing algorithms and certificate subject information. Defined below. - // +kubebuilder:validation:Optional - certificateAuthorityConfiguration?: [...#CertificateAuthorityConfigurationParameters] @go(CertificateAuthorityConfiguration,[]CertificateAuthorityConfigurationParameters) - - // Whether the certificate authority is enabled or disabled. Defaults to true. Can only be disabled if the CA is in an ACTIVE state. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Cryptographic key management compliance standard used for handling CA keys. Defaults to FIPS_140_2_LEVEL_3_OR_HIGHER. Valid values: FIPS_140_2_LEVEL_3_OR_HIGHER and FIPS_140_2_LEVEL_2_OR_HIGHER. Supported standard for each region can be found in the Storage and security compliance of AWS Private CA private keys Documentation. - // +kubebuilder:validation:Optional - keyStorageSecurityStandard?: null | string @go(KeyStorageSecurityStandard,*string) - - // Number of days to make a CA restorable after it has been deleted, must be between 7 to 30 days, with default to 30 days. - // +kubebuilder:validation:Optional - permanentDeletionTimeInDays?: null | float64 @go(PermanentDeletionTimeInDays,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Nested argument containing revocation configuration. Defined below. - // +kubebuilder:validation:Optional - revocationConfiguration?: [...#RevocationConfigurationParameters] @go(RevocationConfiguration,[]RevocationConfigurationParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Type of the certificate authority. Defaults to SUBORDINATE. Valid values: ROOT and SUBORDINATE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly. Short-lived certificate validity is limited to seven days. Defaults to GENERAL_PURPOSE. Valid values: GENERAL_PURPOSE and SHORT_LIVED_CERTIFICATE. - // +kubebuilder:validation:Optional - usageMode?: null | string @go(UsageMode,*string) -} - -#CrlConfigurationInitParameters: { - // Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don't want the name of your S3 bucket to be public. Must be less than or equal to 253 characters in length. - customCname?: null | string @go(CustomCname,*string) - - // Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Number of days until a certificate expires. Must be between 1 and 5000. - expirationInDays?: null | float64 @go(ExpirationInDays,*float64) - - // Name of the S3 bucket that contains the CRL. If you do not provide a value for the custom_cname argument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You must specify a bucket policy that allows ACM PCA to write the CRL to your bucket. Must be between 3 and 255 characters in length. - s3BucketName?: null | string @go(S3BucketName,*string) - - // Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket. Defaults to PUBLIC_READ. - s3ObjectAcl?: null | string @go(S3ObjectACL,*string) -} - -#CrlConfigurationObservation: { - // Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don't want the name of your S3 bucket to be public. Must be less than or equal to 253 characters in length. - customCname?: null | string @go(CustomCname,*string) - - // Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Number of days until a certificate expires. Must be between 1 and 5000. - expirationInDays?: null | float64 @go(ExpirationInDays,*float64) - - // Name of the S3 bucket that contains the CRL. If you do not provide a value for the custom_cname argument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You must specify a bucket policy that allows ACM PCA to write the CRL to your bucket. Must be between 3 and 255 characters in length. - s3BucketName?: null | string @go(S3BucketName,*string) - - // Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket. Defaults to PUBLIC_READ. - s3ObjectAcl?: null | string @go(S3ObjectACL,*string) -} - -#CrlConfigurationParameters: { - // Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don't want the name of your S3 bucket to be public. Must be less than or equal to 253 characters in length. - // +kubebuilder:validation:Optional - customCname?: null | string @go(CustomCname,*string) - - // Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Number of days until a certificate expires. Must be between 1 and 5000. - // +kubebuilder:validation:Optional - expirationInDays?: null | float64 @go(ExpirationInDays,*float64) - - // Name of the S3 bucket that contains the CRL. If you do not provide a value for the custom_cname argument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You must specify a bucket policy that allows ACM PCA to write the CRL to your bucket. Must be between 3 and 255 characters in length. - // +kubebuilder:validation:Optional - s3BucketName?: null | string @go(S3BucketName,*string) - - // Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket. Defaults to PUBLIC_READ. - // +kubebuilder:validation:Optional - s3ObjectAcl?: null | string @go(S3ObjectACL,*string) -} - -#OcspConfigurationInitParameters: { - // Boolean value that specifies whether a custom OCSP responder is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // CNAME specifying a customized OCSP domain. Note: The value of the CNAME must not include a protocol prefix such as "http://" or "https://". - ocspCustomCname?: null | string @go(OcspCustomCname,*string) -} - -#OcspConfigurationObservation: { - // Boolean value that specifies whether a custom OCSP responder is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // CNAME specifying a customized OCSP domain. Note: The value of the CNAME must not include a protocol prefix such as "http://" or "https://". - ocspCustomCname?: null | string @go(OcspCustomCname,*string) -} - -#OcspConfigurationParameters: { - // Boolean value that specifies whether a custom OCSP responder is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // CNAME specifying a customized OCSP domain. Note: The value of the CNAME must not include a protocol prefix such as "http://" or "https://". - // +kubebuilder:validation:Optional - ocspCustomCname?: null | string @go(OcspCustomCname,*string) -} - -#RevocationConfigurationInitParameters: { - // Nested argument containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority. Defined below. - crlConfiguration?: [...#CrlConfigurationInitParameters] @go(CrlConfiguration,[]CrlConfigurationInitParameters) - - // Nested argument containing configuration of - // the custom OCSP responder endpoint. Defined below. - ocspConfiguration?: [...#OcspConfigurationInitParameters] @go(OcspConfiguration,[]OcspConfigurationInitParameters) -} - -#RevocationConfigurationObservation: { - // Nested argument containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority. Defined below. - crlConfiguration?: [...#CrlConfigurationObservation] @go(CrlConfiguration,[]CrlConfigurationObservation) - - // Nested argument containing configuration of - // the custom OCSP responder endpoint. Defined below. - ocspConfiguration?: [...#OcspConfigurationObservation] @go(OcspConfiguration,[]OcspConfigurationObservation) -} - -#RevocationConfigurationParameters: { - // Nested argument containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority. Defined below. - // +kubebuilder:validation:Optional - crlConfiguration?: [...#CrlConfigurationParameters] @go(CrlConfiguration,[]CrlConfigurationParameters) - - // Nested argument containing configuration of - // the custom OCSP responder endpoint. Defined below. - // +kubebuilder:validation:Optional - ocspConfiguration?: [...#OcspConfigurationParameters] @go(OcspConfiguration,[]OcspConfigurationParameters) -} - -#SubjectInitParameters: { - // Fully qualified domain name (FQDN) associated with the certificate subject. Must be less than or equal to 64 characters in length. - commonName?: null | string @go(CommonName,*string) - - // Two digit code that specifies the country in which the certificate subject located. Must be less than or equal to 2 characters in length. - country?: null | string @go(Country,*string) - - // Disambiguating information for the certificate subject. Must be less than or equal to 64 characters in length. - distinguishedNameQualifier?: null | string @go(DistinguishedNameQualifier,*string) - - // Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third. Must be less than or equal to 3 characters in length. - generationQualifier?: null | string @go(GenerationQualifier,*string) - - // First name. Must be less than or equal to 16 characters in length. - givenName?: null | string @go(GivenName,*string) - - // Concatenation that typically contains the first letter of the given_name, the first letter of the middle name if one exists, and the first letter of the surname. Must be less than or equal to 5 characters in length. - initials?: null | string @go(Initials,*string) - - // Locality (such as a city or town) in which the certificate subject is located. Must be less than or equal to 128 characters in length. - locality?: null | string @go(Locality,*string) - - // Legal name of the organization with which the certificate subject is affiliated. Must be less than or equal to 64 characters in length. - organization?: null | string @go(Organization,*string) - - // Subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated. Must be less than or equal to 64 characters in length. - organizationalUnit?: null | string @go(OrganizationalUnit,*string) - - // Typically a shortened version of a longer given_name. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza. Must be less than or equal to 128 characters in length. - pseudonym?: null | string @go(Pseudonym,*string) - - // State in which the subject of the certificate is located. Must be less than or equal to 128 characters in length. - state?: null | string @go(State,*string) - - // Family name. In the US and the UK for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first. Must be less than or equal to 40 characters in length. - surname?: null | string @go(Surname,*string) - - // Title such as Mr. or Ms. which is pre-pended to the name to refer formally to the certificate subject. Must be less than or equal to 64 characters in length. - title?: null | string @go(Title,*string) -} - -#SubjectObservation: { - // Fully qualified domain name (FQDN) associated with the certificate subject. Must be less than or equal to 64 characters in length. - commonName?: null | string @go(CommonName,*string) - - // Two digit code that specifies the country in which the certificate subject located. Must be less than or equal to 2 characters in length. - country?: null | string @go(Country,*string) - - // Disambiguating information for the certificate subject. Must be less than or equal to 64 characters in length. - distinguishedNameQualifier?: null | string @go(DistinguishedNameQualifier,*string) - - // Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third. Must be less than or equal to 3 characters in length. - generationQualifier?: null | string @go(GenerationQualifier,*string) - - // First name. Must be less than or equal to 16 characters in length. - givenName?: null | string @go(GivenName,*string) - - // Concatenation that typically contains the first letter of the given_name, the first letter of the middle name if one exists, and the first letter of the surname. Must be less than or equal to 5 characters in length. - initials?: null | string @go(Initials,*string) - - // Locality (such as a city or town) in which the certificate subject is located. Must be less than or equal to 128 characters in length. - locality?: null | string @go(Locality,*string) - - // Legal name of the organization with which the certificate subject is affiliated. Must be less than or equal to 64 characters in length. - organization?: null | string @go(Organization,*string) - - // Subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated. Must be less than or equal to 64 characters in length. - organizationalUnit?: null | string @go(OrganizationalUnit,*string) - - // Typically a shortened version of a longer given_name. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza. Must be less than or equal to 128 characters in length. - pseudonym?: null | string @go(Pseudonym,*string) - - // State in which the subject of the certificate is located. Must be less than or equal to 128 characters in length. - state?: null | string @go(State,*string) - - // Family name. In the US and the UK for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first. Must be less than or equal to 40 characters in length. - surname?: null | string @go(Surname,*string) - - // Title such as Mr. or Ms. which is pre-pended to the name to refer formally to the certificate subject. Must be less than or equal to 64 characters in length. - title?: null | string @go(Title,*string) -} - -#SubjectParameters: { - // Fully qualified domain name (FQDN) associated with the certificate subject. Must be less than or equal to 64 characters in length. - // +kubebuilder:validation:Optional - commonName?: null | string @go(CommonName,*string) - - // Two digit code that specifies the country in which the certificate subject located. Must be less than or equal to 2 characters in length. - // +kubebuilder:validation:Optional - country?: null | string @go(Country,*string) - - // Disambiguating information for the certificate subject. Must be less than or equal to 64 characters in length. - // +kubebuilder:validation:Optional - distinguishedNameQualifier?: null | string @go(DistinguishedNameQualifier,*string) - - // Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third. Must be less than or equal to 3 characters in length. - // +kubebuilder:validation:Optional - generationQualifier?: null | string @go(GenerationQualifier,*string) - - // First name. Must be less than or equal to 16 characters in length. - // +kubebuilder:validation:Optional - givenName?: null | string @go(GivenName,*string) - - // Concatenation that typically contains the first letter of the given_name, the first letter of the middle name if one exists, and the first letter of the surname. Must be less than or equal to 5 characters in length. - // +kubebuilder:validation:Optional - initials?: null | string @go(Initials,*string) - - // Locality (such as a city or town) in which the certificate subject is located. Must be less than or equal to 128 characters in length. - // +kubebuilder:validation:Optional - locality?: null | string @go(Locality,*string) - - // Legal name of the organization with which the certificate subject is affiliated. Must be less than or equal to 64 characters in length. - // +kubebuilder:validation:Optional - organization?: null | string @go(Organization,*string) - - // Subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated. Must be less than or equal to 64 characters in length. - // +kubebuilder:validation:Optional - organizationalUnit?: null | string @go(OrganizationalUnit,*string) - - // Typically a shortened version of a longer given_name. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza. Must be less than or equal to 128 characters in length. - // +kubebuilder:validation:Optional - pseudonym?: null | string @go(Pseudonym,*string) - - // State in which the subject of the certificate is located. Must be less than or equal to 128 characters in length. - // +kubebuilder:validation:Optional - state?: null | string @go(State,*string) - - // Family name. In the US and the UK for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first. Must be less than or equal to 40 characters in length. - // +kubebuilder:validation:Optional - surname?: null | string @go(Surname,*string) - - // Title such as Mr. or Ms. which is pre-pended to the name to refer formally to the certificate subject. Must be less than or equal to 64 characters in length. - // +kubebuilder:validation:Optional - title?: null | string @go(Title,*string) -} - -// CertificateAuthoritySpec defines the desired state of CertificateAuthority -#CertificateAuthoritySpec: { - v1.#ResourceSpec - forProvider: #CertificateAuthorityParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CertificateAuthorityInitParameters @go(InitProvider) -} - -// CertificateAuthorityStatus defines the observed state of CertificateAuthority. -#CertificateAuthorityStatus: { - v1.#ResourceStatus - atProvider?: #CertificateAuthorityObservation @go(AtProvider) -} - -// CertificateAuthority is the Schema for the CertificateAuthoritys API. Provides a resource to manage AWS Certificate Manager Private Certificate Authorities -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CertificateAuthority: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.certificateAuthorityConfiguration) || (has(self.initProvider) && has(self.initProvider.certificateAuthorityConfiguration))",message="spec.forProvider.certificateAuthorityConfiguration is a required parameter" - spec: #CertificateAuthoritySpec @go(Spec) - status?: #CertificateAuthorityStatus @go(Status) -} - -// CertificateAuthorityList contains a list of CertificateAuthoritys -#CertificateAuthorityList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CertificateAuthority] @go(Items,[]CertificateAuthority) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_certificateauthoritycertificate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_certificateauthoritycertificate_types_go_gen.cue deleted file mode 100644 index 3ed9a2c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_certificateauthoritycertificate_types_go_gen.cue +++ /dev/null @@ -1,94 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/acmpca/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CertificateAuthorityCertificateInitParameters: { -} - -#CertificateAuthorityCertificateObservation: { - // ARN of the Certificate Authority. - certificateAuthorityArn?: null | string @go(CertificateAuthorityArn,*string) - id?: null | string @go(ID,*string) -} - -#CertificateAuthorityCertificateParameters: { - // ARN of the Certificate Authority. - // +crossplane:generate:reference:type=CertificateAuthority - // +kubebuilder:validation:Optional - certificateAuthorityArn?: null | string @go(CertificateAuthorityArn,*string) - - // Reference to a CertificateAuthority to populate certificateAuthorityArn. - // +kubebuilder:validation:Optional - certificateAuthorityArnRef?: null | v1.#Reference @go(CertificateAuthorityArnRef,*v1.Reference) - - // Selector for a CertificateAuthority to populate certificateAuthorityArn. - // +kubebuilder:validation:Optional - certificateAuthorityArnSelector?: null | v1.#Selector @go(CertificateAuthorityArnSelector,*v1.Selector) - - // PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities. - // +kubebuilder:validation:Optional - certificateChainSecretRef?: null | v1.#SecretKeySelector @go(CertificateChainSecretRef,*v1.SecretKeySelector) - - // PEM-encoded certificate for the Certificate Authority. - // +kubebuilder:validation:Optional - certificateSecretRef: v1.#SecretKeySelector @go(CertificateSecretRef) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// CertificateAuthorityCertificateSpec defines the desired state of CertificateAuthorityCertificate -#CertificateAuthorityCertificateSpec: { - v1.#ResourceSpec - forProvider: #CertificateAuthorityCertificateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CertificateAuthorityCertificateInitParameters @go(InitProvider) -} - -// CertificateAuthorityCertificateStatus defines the observed state of CertificateAuthorityCertificate. -#CertificateAuthorityCertificateStatus: { - v1.#ResourceStatus - atProvider?: #CertificateAuthorityCertificateObservation @go(AtProvider) -} - -// CertificateAuthorityCertificate is the Schema for the CertificateAuthorityCertificates API. Associates a certificate with an AWS Certificate Manager Private Certificate Authority -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CertificateAuthorityCertificate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.certificateSecretRef)",message="spec.forProvider.certificateSecretRef is a required parameter" - spec: #CertificateAuthorityCertificateSpec @go(Spec) - status?: #CertificateAuthorityCertificateStatus @go(Status) -} - -// CertificateAuthorityCertificateList contains a list of CertificateAuthorityCertificates -#CertificateAuthorityCertificateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CertificateAuthorityCertificate] @go(Items,[]CertificateAuthorityCertificate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 87eed5e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/acmpca/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=acmpca.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "acmpca.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_permission_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_permission_types_go_gen.cue deleted file mode 100644 index 70e1a26..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_permission_types_go_gen.cue +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/acmpca/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PermissionInitParameters: { - // Actions that the specified AWS service principal can use. These include IssueCertificate, GetCertificate, and ListPermissions. Note that in order for ACM to automatically rotate certificates issued by a PCA, it must be granted permission on all 3 actions, as per the example above. - actions?: [...null | string] @go(Actions,[]*string) - - // AWS service or identity that receives the permission. At this time, the only valid principal is acm.amazonaws.com. - principal?: null | string @go(Principal,*string) - - // ID of the calling account - sourceAccount?: null | string @go(SourceAccount,*string) -} - -#PermissionObservation: { - // Actions that the specified AWS service principal can use. These include IssueCertificate, GetCertificate, and ListPermissions. Note that in order for ACM to automatically rotate certificates issued by a PCA, it must be granted permission on all 3 actions, as per the example above. - actions?: [...null | string] @go(Actions,[]*string) - - // ARN of the CA that grants the permissions. - certificateAuthorityArn?: null | string @go(CertificateAuthorityArn,*string) - id?: null | string @go(ID,*string) - - // IAM policy that is associated with the permission. - policy?: null | string @go(Policy,*string) - - // AWS service or identity that receives the permission. At this time, the only valid principal is acm.amazonaws.com. - principal?: null | string @go(Principal,*string) - - // ID of the calling account - sourceAccount?: null | string @go(SourceAccount,*string) -} - -#PermissionParameters: { - // Actions that the specified AWS service principal can use. These include IssueCertificate, GetCertificate, and ListPermissions. Note that in order for ACM to automatically rotate certificates issued by a PCA, it must be granted permission on all 3 actions, as per the example above. - // +kubebuilder:validation:Optional - actions?: [...null | string] @go(Actions,[]*string) - - // ARN of the CA that grants the permissions. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/acmpca/v1beta1.CertificateAuthority - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - certificateAuthorityArn?: null | string @go(CertificateAuthorityArn,*string) - - // Reference to a CertificateAuthority in acmpca to populate certificateAuthorityArn. - // +kubebuilder:validation:Optional - certificateAuthorityArnRef?: null | v1.#Reference @go(CertificateAuthorityArnRef,*v1.Reference) - - // Selector for a CertificateAuthority in acmpca to populate certificateAuthorityArn. - // +kubebuilder:validation:Optional - certificateAuthorityArnSelector?: null | v1.#Selector @go(CertificateAuthorityArnSelector,*v1.Selector) - - // AWS service or identity that receives the permission. At this time, the only valid principal is acm.amazonaws.com. - // +kubebuilder:validation:Optional - principal?: null | string @go(Principal,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the calling account - // +kubebuilder:validation:Optional - sourceAccount?: null | string @go(SourceAccount,*string) -} - -// PermissionSpec defines the desired state of Permission -#PermissionSpec: { - v1.#ResourceSpec - forProvider: #PermissionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PermissionInitParameters @go(InitProvider) -} - -// PermissionStatus defines the observed state of Permission. -#PermissionStatus: { - v1.#ResourceStatus - atProvider?: #PermissionObservation @go(AtProvider) -} - -// Permission is the Schema for the Permissions API. Provides a resource to manage an AWS Certificate Manager Private Certificate Authorities Permission -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Permission: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.actions) || (has(self.initProvider) && has(self.initProvider.actions))",message="spec.forProvider.actions is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.principal) || (has(self.initProvider) && has(self.initProvider.principal))",message="spec.forProvider.principal is a required parameter" - spec: #PermissionSpec @go(Spec) - status?: #PermissionStatus @go(Status) -} - -// PermissionList contains a list of Permissions -#PermissionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Permission] @go(Items,[]Permission) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_policy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_policy_types_go_gen.cue deleted file mode 100644 index cde9381..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/acmpca/v1beta1/zz_policy_types_go_gen.cue +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/acmpca/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PolicyInitParameters: { - // JSON-formatted IAM policy to attach to the specified private CA resource. - policy?: null | string @go(Policy,*string) -} - -#PolicyObservation: { - id?: null | string @go(ID,*string) - - // JSON-formatted IAM policy to attach to the specified private CA resource. - policy?: null | string @go(Policy,*string) - - // ARN of the private CA to associate with the policy. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#PolicyParameters: { - // JSON-formatted IAM policy to attach to the specified private CA resource. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ARN of the private CA to associate with the policy. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/acmpca/v1beta1.CertificateAuthority - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a CertificateAuthority in acmpca to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a CertificateAuthority in acmpca to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) -} - -// PolicySpec defines the desired state of Policy -#PolicySpec: { - v1.#ResourceSpec - forProvider: #PolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PolicyInitParameters @go(InitProvider) -} - -// PolicyStatus defines the observed state of Policy. -#PolicyStatus: { - v1.#ResourceStatus - atProvider?: #PolicyObservation @go(AtProvider) -} - -// Policy is the Schema for the Policys API. Attaches a resource based policy to an AWS Certificate Manager Private Certificate Authority (ACM PCA) -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Policy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #PolicySpec @go(Spec) - status?: #PolicyStatus @go(Status) -} - -// PolicyList contains a list of Policys -#PolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Policy] @go(Items,[]Policy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/amp/v1beta1/zz_alertmanagerdefinition_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/amp/v1beta1/zz_alertmanagerdefinition_types_go_gen.cue deleted file mode 100644 index 10462c4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/amp/v1beta1/zz_alertmanagerdefinition_types_go_gen.cue +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/amp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AlertManagerDefinitionInitParameters: { - // the alert manager definition that you want to be applied. See more in AWS Docs. - definition?: null | string @go(Definition,*string) -} - -#AlertManagerDefinitionObservation: { - // the alert manager definition that you want to be applied. See more in AWS Docs. - definition?: null | string @go(Definition,*string) - id?: null | string @go(ID,*string) - - // ID of the prometheus workspace the alert manager definition should be linked to - workspaceId?: null | string @go(WorkspaceID,*string) -} - -#AlertManagerDefinitionParameters: { - // the alert manager definition that you want to be applied. See more in AWS Docs. - // +kubebuilder:validation:Optional - definition?: null | string @go(Definition,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the prometheus workspace the alert manager definition should be linked to - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/amp/v1beta1.Workspace - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - workspaceId?: null | string @go(WorkspaceID,*string) - - // Reference to a Workspace in amp to populate workspaceId. - // +kubebuilder:validation:Optional - workspaceIdRef?: null | v1.#Reference @go(WorkspaceIDRef,*v1.Reference) - - // Selector for a Workspace in amp to populate workspaceId. - // +kubebuilder:validation:Optional - workspaceIdSelector?: null | v1.#Selector @go(WorkspaceIDSelector,*v1.Selector) -} - -// AlertManagerDefinitionSpec defines the desired state of AlertManagerDefinition -#AlertManagerDefinitionSpec: { - v1.#ResourceSpec - forProvider: #AlertManagerDefinitionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AlertManagerDefinitionInitParameters @go(InitProvider) -} - -// AlertManagerDefinitionStatus defines the observed state of AlertManagerDefinition. -#AlertManagerDefinitionStatus: { - v1.#ResourceStatus - atProvider?: #AlertManagerDefinitionObservation @go(AtProvider) -} - -// AlertManagerDefinition is the Schema for the AlertManagerDefinitions API. Manages an Amazon Managed Service for Prometheus (AMP) Alert Manager Definition -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AlertManagerDefinition: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.definition) || (has(self.initProvider) && has(self.initProvider.definition))",message="spec.forProvider.definition is a required parameter" - spec: #AlertManagerDefinitionSpec @go(Spec) - status?: #AlertManagerDefinitionStatus @go(Status) -} - -// AlertManagerDefinitionList contains a list of AlertManagerDefinitions -#AlertManagerDefinitionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AlertManagerDefinition] @go(Items,[]AlertManagerDefinition) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/amp/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/amp/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 83a549f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/amp/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/amp/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=amp.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "amp.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/amp/v1beta1/zz_rulegroupnamespace_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/amp/v1beta1/zz_rulegroupnamespace_types_go_gen.cue deleted file mode 100644 index 73f6bb2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/amp/v1beta1/zz_rulegroupnamespace_types_go_gen.cue +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/amp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RuleGroupNamespaceInitParameters: { - // the rule group namespace data that you want to be applied. See more in AWS Docs. - data?: null | string @go(Data,*string) -} - -#RuleGroupNamespaceObservation: { - // the rule group namespace data that you want to be applied. See more in AWS Docs. - data?: null | string @go(Data,*string) - id?: null | string @go(ID,*string) - - // ID of the prometheus workspace the rule group namespace should be linked to - workspaceId?: null | string @go(WorkspaceID,*string) -} - -#RuleGroupNamespaceParameters: { - // the rule group namespace data that you want to be applied. See more in AWS Docs. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the prometheus workspace the rule group namespace should be linked to - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/amp/v1beta1.Workspace - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - workspaceId?: null | string @go(WorkspaceID,*string) - - // Reference to a Workspace in amp to populate workspaceId. - // +kubebuilder:validation:Optional - workspaceIdRef?: null | v1.#Reference @go(WorkspaceIDRef,*v1.Reference) - - // Selector for a Workspace in amp to populate workspaceId. - // +kubebuilder:validation:Optional - workspaceIdSelector?: null | v1.#Selector @go(WorkspaceIDSelector,*v1.Selector) -} - -// RuleGroupNamespaceSpec defines the desired state of RuleGroupNamespace -#RuleGroupNamespaceSpec: { - v1.#ResourceSpec - forProvider: #RuleGroupNamespaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RuleGroupNamespaceInitParameters @go(InitProvider) -} - -// RuleGroupNamespaceStatus defines the observed state of RuleGroupNamespace. -#RuleGroupNamespaceStatus: { - v1.#ResourceStatus - atProvider?: #RuleGroupNamespaceObservation @go(AtProvider) -} - -// RuleGroupNamespace is the Schema for the RuleGroupNamespaces API. Manages an Amazon Managed Service for Prometheus (AMP) Rule Group Namespace -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RuleGroupNamespace: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.data) || (has(self.initProvider) && has(self.initProvider.data))",message="spec.forProvider.data is a required parameter" - spec: #RuleGroupNamespaceSpec @go(Spec) - status?: #RuleGroupNamespaceStatus @go(Status) -} - -// RuleGroupNamespaceList contains a list of RuleGroupNamespaces -#RuleGroupNamespaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RuleGroupNamespace] @go(Items,[]RuleGroupNamespace) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/amp/v1beta1/zz_workspace_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/amp/v1beta1/zz_workspace_types_go_gen.cue deleted file mode 100644 index 2f3923f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/amp/v1beta1/zz_workspace_types_go_gen.cue +++ /dev/null @@ -1,124 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/amp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LoggingConfigurationInitParameters: { - // The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist. - logGroupArn?: null | string @go(LogGroupArn,*string) -} - -#LoggingConfigurationObservation: { - // The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist. - logGroupArn?: null | string @go(LogGroupArn,*string) -} - -#LoggingConfigurationParameters: { - // The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist. - // +kubebuilder:validation:Optional - logGroupArn?: null | string @go(LogGroupArn,*string) -} - -#WorkspaceInitParameters: { - // The alias of the prometheus workspace. See more in AWS Docs. - alias?: null | string @go(Alias,*string) - - // Logging configuration for the workspace. See Logging Configuration below for details. - loggingConfiguration?: [...#LoggingConfigurationInitParameters] @go(LoggingConfiguration,[]LoggingConfigurationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#WorkspaceObservation: { - // The alias of the prometheus workspace. See more in AWS Docs. - alias?: null | string @go(Alias,*string) - - // Amazon Resource Name (ARN) of the workspace. - arn?: null | string @go(Arn,*string) - - // Identifier of the workspace - id?: null | string @go(ID,*string) - - // Logging configuration for the workspace. See Logging Configuration below for details. - loggingConfiguration?: [...#LoggingConfigurationObservation] @go(LoggingConfiguration,[]LoggingConfigurationObservation) - - // Prometheus endpoint available for this workspace. - prometheusEndpoint?: null | string @go(PrometheusEndpoint,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#WorkspaceParameters: { - // The alias of the prometheus workspace. See more in AWS Docs. - // +kubebuilder:validation:Optional - alias?: null | string @go(Alias,*string) - - // Logging configuration for the workspace. See Logging Configuration below for details. - // +kubebuilder:validation:Optional - loggingConfiguration?: [...#LoggingConfigurationParameters] @go(LoggingConfiguration,[]LoggingConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// WorkspaceSpec defines the desired state of Workspace -#WorkspaceSpec: { - v1.#ResourceSpec - forProvider: #WorkspaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WorkspaceInitParameters @go(InitProvider) -} - -// WorkspaceStatus defines the observed state of Workspace. -#WorkspaceStatus: { - v1.#ResourceStatus - atProvider?: #WorkspaceObservation @go(AtProvider) -} - -// Workspace is the Schema for the Workspaces API. Manages an Amazon Managed Service for Prometheus (AMP) Workspace -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Workspace: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #WorkspaceSpec @go(Spec) - status?: #WorkspaceStatus @go(Status) -} - -// WorkspaceList contains a list of Workspaces -#WorkspaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Workspace] @go(Items,[]Workspace) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_app_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_app_types_go_gen.cue deleted file mode 100644 index 58b6a65..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_app_types_go_gen.cue +++ /dev/null @@ -1,418 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/amplify/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AppInitParameters: { - // Automated branch creation configuration for an Amplify app. An auto_branch_creation_config block is documented below. - autoBranchCreationConfig?: [...#AutoBranchCreationConfigInitParameters] @go(AutoBranchCreationConfig,[]AutoBranchCreationConfigInitParameters) - - // Automated branch creation glob patterns for an Amplify app. - autoBranchCreationPatterns?: [...null | string] @go(AutoBranchCreationPatterns,[]*string) - - // The build specification (build spec) for an Amplify app. - buildSpec?: null | string @go(BuildSpec,*string) - - // Custom rewrite and redirect rules for an Amplify app. A custom_rule block is documented below. - customRule?: [...#CustomRuleInitParameters] @go(CustomRule,[]CustomRuleInitParameters) - - // Description for an Amplify app. - description?: null | string @go(Description,*string) - - // Enables automated branch creation for an Amplify app. - enableAutoBranchCreation?: null | bool @go(EnableAutoBranchCreation,*bool) - - // Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app. - enableBasicAuth?: null | bool @go(EnableBasicAuth,*bool) - - // Enables auto-building of branches for the Amplify App. - enableBranchAutoBuild?: null | bool @go(EnableBranchAutoBuild,*bool) - - // Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository. - enableBranchAutoDeletion?: null | bool @go(EnableBranchAutoDeletion,*bool) - - // Environment variables map for an Amplify app. - environmentVariables?: {[string]: null | string} @go(EnvironmentVariables,map[string]*string) - - // Name for an Amplify app. - name?: null | string @go(Name,*string) - - // Platform or framework for an Amplify app. Valid values: WEB, WEB_COMPUTE. Default value: WEB. - platform?: null | string @go(Platform,*string) - - // Repository for an Amplify app. - repository?: null | string @go(Repository,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AppObservation: { - // ARN of the Amplify app. - arn?: null | string @go(Arn,*string) - - // Automated branch creation configuration for an Amplify app. An auto_branch_creation_config block is documented below. - autoBranchCreationConfig?: [...#AutoBranchCreationConfigObservation] @go(AutoBranchCreationConfig,[]AutoBranchCreationConfigObservation) - - // Automated branch creation glob patterns for an Amplify app. - autoBranchCreationPatterns?: [...null | string] @go(AutoBranchCreationPatterns,[]*string) - - // The build specification (build spec) for an Amplify app. - buildSpec?: null | string @go(BuildSpec,*string) - - // Custom rewrite and redirect rules for an Amplify app. A custom_rule block is documented below. - customRule?: [...#CustomRuleObservation] @go(CustomRule,[]CustomRuleObservation) - - // Default domain for the Amplify app. - defaultDomain?: null | string @go(DefaultDomain,*string) - - // Description for an Amplify app. - description?: null | string @go(Description,*string) - - // Enables automated branch creation for an Amplify app. - enableAutoBranchCreation?: null | bool @go(EnableAutoBranchCreation,*bool) - - // Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app. - enableBasicAuth?: null | bool @go(EnableBasicAuth,*bool) - - // Enables auto-building of branches for the Amplify App. - enableBranchAutoBuild?: null | bool @go(EnableBranchAutoBuild,*bool) - - // Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository. - enableBranchAutoDeletion?: null | bool @go(EnableBranchAutoDeletion,*bool) - - // Environment variables map for an Amplify app. - environmentVariables?: {[string]: null | string} @go(EnvironmentVariables,map[string]*string) - - // AWS Identity and Access Management (IAM) service role for an Amplify app. - iamServiceRoleArn?: null | string @go(IAMServiceRoleArn,*string) - - // Unique ID of the Amplify app. - id?: null | string @go(ID,*string) - - // Name for an Amplify app. - name?: null | string @go(Name,*string) - - // Platform or framework for an Amplify app. Valid values: WEB, WEB_COMPUTE. Default value: WEB. - platform?: null | string @go(Platform,*string) - - // Describes the information about a production branch for an Amplify app. A production_branch block is documented below. - productionBranch?: [...#ProductionBranchObservation] @go(ProductionBranch,[]ProductionBranchObservation) - - // Repository for an Amplify app. - repository?: null | string @go(Repository,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#AppParameters: { - // Personal access token for a third-party source control system for an Amplify app. The personal access token is used to create a webhook and a read-only deploy key. The token is not stored. - // +kubebuilder:validation:Optional - accessTokenSecretRef?: null | v1.#SecretKeySelector @go(AccessTokenSecretRef,*v1.SecretKeySelector) - - // Automated branch creation configuration for an Amplify app. An auto_branch_creation_config block is documented below. - // +kubebuilder:validation:Optional - autoBranchCreationConfig?: [...#AutoBranchCreationConfigParameters] @go(AutoBranchCreationConfig,[]AutoBranchCreationConfigParameters) - - // Automated branch creation glob patterns for an Amplify app. - // +kubebuilder:validation:Optional - autoBranchCreationPatterns?: [...null | string] @go(AutoBranchCreationPatterns,[]*string) - - // Credentials for basic authorization for an Amplify app. - // +kubebuilder:validation:Optional - basicAuthCredentialsSecretRef?: null | v1.#SecretKeySelector @go(BasicAuthCredentialsSecretRef,*v1.SecretKeySelector) - - // The build specification (build spec) for an Amplify app. - // +kubebuilder:validation:Optional - buildSpec?: null | string @go(BuildSpec,*string) - - // Custom rewrite and redirect rules for an Amplify app. A custom_rule block is documented below. - // +kubebuilder:validation:Optional - customRule?: [...#CustomRuleParameters] @go(CustomRule,[]CustomRuleParameters) - - // Description for an Amplify app. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Enables automated branch creation for an Amplify app. - // +kubebuilder:validation:Optional - enableAutoBranchCreation?: null | bool @go(EnableAutoBranchCreation,*bool) - - // Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app. - // +kubebuilder:validation:Optional - enableBasicAuth?: null | bool @go(EnableBasicAuth,*bool) - - // Enables auto-building of branches for the Amplify App. - // +kubebuilder:validation:Optional - enableBranchAutoBuild?: null | bool @go(EnableBranchAutoBuild,*bool) - - // Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository. - // +kubebuilder:validation:Optional - enableBranchAutoDeletion?: null | bool @go(EnableBranchAutoDeletion,*bool) - - // Environment variables map for an Amplify app. - // +kubebuilder:validation:Optional - environmentVariables?: {[string]: null | string} @go(EnvironmentVariables,map[string]*string) - - // AWS Identity and Access Management (IAM) service role for an Amplify app. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - iamServiceRoleArn?: null | string @go(IAMServiceRoleArn,*string) - - // Reference to a Role in iam to populate iamServiceRoleArn. - // +kubebuilder:validation:Optional - iamServiceRoleArnRef?: null | v1.#Reference @go(IAMServiceRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate iamServiceRoleArn. - // +kubebuilder:validation:Optional - iamServiceRoleArnSelector?: null | v1.#Selector @go(IAMServiceRoleArnSelector,*v1.Selector) - - // Name for an Amplify app. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key. The OAuth token is not stored. - // +kubebuilder:validation:Optional - oauthTokenSecretRef?: null | v1.#SecretKeySelector @go(OauthTokenSecretRef,*v1.SecretKeySelector) - - // Platform or framework for an Amplify app. Valid values: WEB, WEB_COMPUTE. Default value: WEB. - // +kubebuilder:validation:Optional - platform?: null | string @go(Platform,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Repository for an Amplify app. - // +kubebuilder:validation:Optional - repository?: null | string @go(Repository,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AutoBranchCreationConfigInitParameters: { - // Build specification (build spec) for the autocreated branch. - buildSpec?: null | string @go(BuildSpec,*string) - - // Enables auto building for the autocreated branch. - enableAutoBuild?: null | bool @go(EnableAutoBuild,*bool) - - // Enables basic authorization for the autocreated branch. - enableBasicAuth?: null | bool @go(EnableBasicAuth,*bool) - - // Enables performance mode for the branch. - enablePerformanceMode?: null | bool @go(EnablePerformanceMode,*bool) - - // Enables pull request previews for the autocreated branch. - enablePullRequestPreview?: null | bool @go(EnablePullRequestPreview,*bool) - - // Environment variables for the autocreated branch. - environmentVariables?: {[string]: null | string} @go(EnvironmentVariables,map[string]*string) - - // Framework for the autocreated branch. - framework?: null | string @go(Framework,*string) - - // Amplify environment name for the pull request. - pullRequestEnvironmentName?: null | string @go(PullRequestEnvironmentName,*string) - - // Describes the current stage for the autocreated branch. Valid values: PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST. - stage?: null | string @go(Stage,*string) -} - -#AutoBranchCreationConfigObservation: { - // Build specification (build spec) for the autocreated branch. - buildSpec?: null | string @go(BuildSpec,*string) - - // Enables auto building for the autocreated branch. - enableAutoBuild?: null | bool @go(EnableAutoBuild,*bool) - - // Enables basic authorization for the autocreated branch. - enableBasicAuth?: null | bool @go(EnableBasicAuth,*bool) - - // Enables performance mode for the branch. - enablePerformanceMode?: null | bool @go(EnablePerformanceMode,*bool) - - // Enables pull request previews for the autocreated branch. - enablePullRequestPreview?: null | bool @go(EnablePullRequestPreview,*bool) - - // Environment variables for the autocreated branch. - environmentVariables?: {[string]: null | string} @go(EnvironmentVariables,map[string]*string) - - // Framework for the autocreated branch. - framework?: null | string @go(Framework,*string) - - // Amplify environment name for the pull request. - pullRequestEnvironmentName?: null | string @go(PullRequestEnvironmentName,*string) - - // Describes the current stage for the autocreated branch. Valid values: PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST. - stage?: null | string @go(Stage,*string) -} - -#AutoBranchCreationConfigParameters: { - // Basic authorization credentials for the autocreated branch. - // +kubebuilder:validation:Optional - basicAuthCredentialsSecretRef?: null | v1.#SecretKeySelector @go(BasicAuthCredentialsSecretRef,*v1.SecretKeySelector) - - // Build specification (build spec) for the autocreated branch. - // +kubebuilder:validation:Optional - buildSpec?: null | string @go(BuildSpec,*string) - - // Enables auto building for the autocreated branch. - // +kubebuilder:validation:Optional - enableAutoBuild?: null | bool @go(EnableAutoBuild,*bool) - - // Enables basic authorization for the autocreated branch. - // +kubebuilder:validation:Optional - enableBasicAuth?: null | bool @go(EnableBasicAuth,*bool) - - // Enables performance mode for the branch. - // +kubebuilder:validation:Optional - enablePerformanceMode?: null | bool @go(EnablePerformanceMode,*bool) - - // Enables pull request previews for the autocreated branch. - // +kubebuilder:validation:Optional - enablePullRequestPreview?: null | bool @go(EnablePullRequestPreview,*bool) - - // Environment variables for the autocreated branch. - // +kubebuilder:validation:Optional - environmentVariables?: {[string]: null | string} @go(EnvironmentVariables,map[string]*string) - - // Framework for the autocreated branch. - // +kubebuilder:validation:Optional - framework?: null | string @go(Framework,*string) - - // Amplify environment name for the pull request. - // +kubebuilder:validation:Optional - pullRequestEnvironmentName?: null | string @go(PullRequestEnvironmentName,*string) - - // Describes the current stage for the autocreated branch. Valid values: PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST. - // +kubebuilder:validation:Optional - stage?: null | string @go(Stage,*string) -} - -#CustomRuleInitParameters: { - // Condition for a URL rewrite or redirect rule, such as a country code. - condition?: null | string @go(Condition,*string) - - // Source pattern for a URL rewrite or redirect rule. - source?: null | string @go(Source,*string) - - // Status code for a URL rewrite or redirect rule. Valid values: 200, 301, 302, 404, 404-200. - status?: null | string @go(Status,*string) - - // Target pattern for a URL rewrite or redirect rule. - target?: null | string @go(Target,*string) -} - -#CustomRuleObservation: { - // Condition for a URL rewrite or redirect rule, such as a country code. - condition?: null | string @go(Condition,*string) - - // Source pattern for a URL rewrite or redirect rule. - source?: null | string @go(Source,*string) - - // Status code for a URL rewrite or redirect rule. Valid values: 200, 301, 302, 404, 404-200. - status?: null | string @go(Status,*string) - - // Target pattern for a URL rewrite or redirect rule. - target?: null | string @go(Target,*string) -} - -#CustomRuleParameters: { - // Condition for a URL rewrite or redirect rule, such as a country code. - // +kubebuilder:validation:Optional - condition?: null | string @go(Condition,*string) - - // Source pattern for a URL rewrite or redirect rule. - // +kubebuilder:validation:Optional - source?: null | string @go(Source,*string) - - // Status code for a URL rewrite or redirect rule. Valid values: 200, 301, 302, 404, 404-200. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // Target pattern for a URL rewrite or redirect rule. - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) -} - -#ProductionBranchInitParameters: { -} - -#ProductionBranchObservation: { - // Branch name for the production branch. - branchName?: null | string @go(BranchName,*string) - - // Last deploy time of the production branch. - lastDeployTime?: null | string @go(LastDeployTime,*string) - - // Status of the production branch. - status?: null | string @go(Status,*string) - - // Thumbnail URL for the production branch. - thumbnailUrl?: null | string @go(ThumbnailURL,*string) -} - -#ProductionBranchParameters: { -} - -// AppSpec defines the desired state of App -#AppSpec: { - v1.#ResourceSpec - forProvider: #AppParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AppInitParameters @go(InitProvider) -} - -// AppStatus defines the observed state of App. -#AppStatus: { - v1.#ResourceStatus - atProvider?: #AppObservation @go(AtProvider) -} - -// App is the Schema for the Apps API. Provides an Amplify App resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#App: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #AppSpec @go(Spec) - status?: #AppStatus @go(Status) -} - -// AppList contains a list of Apps -#AppList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#App] @go(Items,[]App) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_backendenvironment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_backendenvironment_types_go_gen.cue deleted file mode 100644 index c257fd2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_backendenvironment_types_go_gen.cue +++ /dev/null @@ -1,109 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/amplify/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BackendEnvironmentInitParameters: { - // Name of deployment artifacts. - deploymentArtifacts?: null | string @go(DeploymentArtifacts,*string) - - // AWS CloudFormation stack name of a backend environment. - stackName?: null | string @go(StackName,*string) -} - -#BackendEnvironmentObservation: { - // Unique ID for an Amplify app. - appId?: null | string @go(AppID,*string) - - // ARN for a backend environment that is part of an Amplify app. - arn?: null | string @go(Arn,*string) - - // Name of deployment artifacts. - deploymentArtifacts?: null | string @go(DeploymentArtifacts,*string) - - // Unique ID of the Amplify backend environment. - id?: null | string @go(ID,*string) - - // AWS CloudFormation stack name of a backend environment. - stackName?: null | string @go(StackName,*string) -} - -#BackendEnvironmentParameters: { - // Unique ID for an Amplify app. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/amplify/v1beta1.App - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - appId?: null | string @go(AppID,*string) - - // Reference to a App in amplify to populate appId. - // +kubebuilder:validation:Optional - appIdRef?: null | v1.#Reference @go(AppIDRef,*v1.Reference) - - // Selector for a App in amplify to populate appId. - // +kubebuilder:validation:Optional - appIdSelector?: null | v1.#Selector @go(AppIDSelector,*v1.Selector) - - // Name of deployment artifacts. - // +kubebuilder:validation:Optional - deploymentArtifacts?: null | string @go(DeploymentArtifacts,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // AWS CloudFormation stack name of a backend environment. - // +kubebuilder:validation:Optional - stackName?: null | string @go(StackName,*string) -} - -// BackendEnvironmentSpec defines the desired state of BackendEnvironment -#BackendEnvironmentSpec: { - v1.#ResourceSpec - forProvider: #BackendEnvironmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BackendEnvironmentInitParameters @go(InitProvider) -} - -// BackendEnvironmentStatus defines the observed state of BackendEnvironment. -#BackendEnvironmentStatus: { - v1.#ResourceStatus - atProvider?: #BackendEnvironmentObservation @go(AtProvider) -} - -// BackendEnvironment is the Schema for the BackendEnvironments API. Provides an Amplify Backend Environment resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BackendEnvironment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BackendEnvironmentSpec @go(Spec) - status?: #BackendEnvironmentStatus @go(Status) -} - -// BackendEnvironmentList contains a list of BackendEnvironments -#BackendEnvironmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BackendEnvironment] @go(Items,[]BackendEnvironment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_branch_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_branch_types_go_gen.cue deleted file mode 100644 index dc37c56..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_branch_types_go_gen.cue +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/amplify/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BranchInitParameters: { - // ARN for a backend environment that is part of an Amplify app. - backendEnvironmentArn?: null | string @go(BackendEnvironmentArn,*string) - - // Description for the branch. - description?: null | string @go(Description,*string) - - // Display name for a branch. This is used as the default domain prefix. - displayName?: null | string @go(DisplayName,*string) - - // Enables auto building for the branch. - enableAutoBuild?: null | bool @go(EnableAutoBuild,*bool) - - // Enables basic authorization for the branch. - enableBasicAuth?: null | bool @go(EnableBasicAuth,*bool) - - // Enables notifications for the branch. - enableNotification?: null | bool @go(EnableNotification,*bool) - - // Enables performance mode for the branch. - enablePerformanceMode?: null | bool @go(EnablePerformanceMode,*bool) - - // Enables pull request previews for this branch. - enablePullRequestPreview?: null | bool @go(EnablePullRequestPreview,*bool) - - // Environment variables for the branch. - environmentVariables?: {[string]: null | string} @go(EnvironmentVariables,map[string]*string) - - // Framework for the branch. - framework?: null | string @go(Framework,*string) - - // Amplify environment name for the pull request. - pullRequestEnvironmentName?: null | string @go(PullRequestEnvironmentName,*string) - - // Describes the current stage for the branch. Valid values: PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST. - stage?: null | string @go(Stage,*string) - - // Content Time To Live (TTL) for the website in seconds. - ttl?: null | string @go(TTL,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BranchObservation: { - // Unique ID for an Amplify app. - appId?: null | string @go(AppID,*string) - - // ARN for the branch. - arn?: null | string @go(Arn,*string) - - // A list of custom resources that are linked to this branch. - associatedResources?: [...null | string] @go(AssociatedResources,[]*string) - - // ARN for a backend environment that is part of an Amplify app. - backendEnvironmentArn?: null | string @go(BackendEnvironmentArn,*string) - - // Custom domains for the branch. - customDomains?: [...null | string] @go(CustomDomains,[]*string) - - // Description for the branch. - description?: null | string @go(Description,*string) - - // Destination branch if the branch is a pull request branch. - destinationBranch?: null | string @go(DestinationBranch,*string) - - // Display name for a branch. This is used as the default domain prefix. - displayName?: null | string @go(DisplayName,*string) - - // Enables auto building for the branch. - enableAutoBuild?: null | bool @go(EnableAutoBuild,*bool) - - // Enables basic authorization for the branch. - enableBasicAuth?: null | bool @go(EnableBasicAuth,*bool) - - // Enables notifications for the branch. - enableNotification?: null | bool @go(EnableNotification,*bool) - - // Enables performance mode for the branch. - enablePerformanceMode?: null | bool @go(EnablePerformanceMode,*bool) - - // Enables pull request previews for this branch. - enablePullRequestPreview?: null | bool @go(EnablePullRequestPreview,*bool) - - // Environment variables for the branch. - environmentVariables?: {[string]: null | string} @go(EnvironmentVariables,map[string]*string) - - // Framework for the branch. - framework?: null | string @go(Framework,*string) - id?: null | string @go(ID,*string) - - // Amplify environment name for the pull request. - pullRequestEnvironmentName?: null | string @go(PullRequestEnvironmentName,*string) - - // Source branch if the branch is a pull request branch. - sourceBranch?: null | string @go(SourceBranch,*string) - - // Describes the current stage for the branch. Valid values: PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST. - stage?: null | string @go(Stage,*string) - - // Content Time To Live (TTL) for the website in seconds. - ttl?: null | string @go(TTL,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#BranchParameters: { - // Unique ID for an Amplify app. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/amplify/v1beta1.App - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - appId?: null | string @go(AppID,*string) - - // Reference to a App in amplify to populate appId. - // +kubebuilder:validation:Optional - appIdRef?: null | v1.#Reference @go(AppIDRef,*v1.Reference) - - // Selector for a App in amplify to populate appId. - // +kubebuilder:validation:Optional - appIdSelector?: null | v1.#Selector @go(AppIDSelector,*v1.Selector) - - // ARN for a backend environment that is part of an Amplify app. - // +kubebuilder:validation:Optional - backendEnvironmentArn?: null | string @go(BackendEnvironmentArn,*string) - - // Basic authorization credentials for the branch. - // +kubebuilder:validation:Optional - basicAuthCredentialsSecretRef?: null | v1.#SecretKeySelector @go(BasicAuthCredentialsSecretRef,*v1.SecretKeySelector) - - // Description for the branch. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Display name for a branch. This is used as the default domain prefix. - // +kubebuilder:validation:Optional - displayName?: null | string @go(DisplayName,*string) - - // Enables auto building for the branch. - // +kubebuilder:validation:Optional - enableAutoBuild?: null | bool @go(EnableAutoBuild,*bool) - - // Enables basic authorization for the branch. - // +kubebuilder:validation:Optional - enableBasicAuth?: null | bool @go(EnableBasicAuth,*bool) - - // Enables notifications for the branch. - // +kubebuilder:validation:Optional - enableNotification?: null | bool @go(EnableNotification,*bool) - - // Enables performance mode for the branch. - // +kubebuilder:validation:Optional - enablePerformanceMode?: null | bool @go(EnablePerformanceMode,*bool) - - // Enables pull request previews for this branch. - // +kubebuilder:validation:Optional - enablePullRequestPreview?: null | bool @go(EnablePullRequestPreview,*bool) - - // Environment variables for the branch. - // +kubebuilder:validation:Optional - environmentVariables?: {[string]: null | string} @go(EnvironmentVariables,map[string]*string) - - // Framework for the branch. - // +kubebuilder:validation:Optional - framework?: null | string @go(Framework,*string) - - // Amplify environment name for the pull request. - // +kubebuilder:validation:Optional - pullRequestEnvironmentName?: null | string @go(PullRequestEnvironmentName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Describes the current stage for the branch. Valid values: PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST. - // +kubebuilder:validation:Optional - stage?: null | string @go(Stage,*string) - - // Content Time To Live (TTL) for the website in seconds. - // +kubebuilder:validation:Optional - ttl?: null | string @go(TTL,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// BranchSpec defines the desired state of Branch -#BranchSpec: { - v1.#ResourceSpec - forProvider: #BranchParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BranchInitParameters @go(InitProvider) -} - -// BranchStatus defines the observed state of Branch. -#BranchStatus: { - v1.#ResourceStatus - atProvider?: #BranchObservation @go(AtProvider) -} - -// Branch is the Schema for the Branchs API. Provides an Amplify Branch resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Branch: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BranchSpec @go(Spec) - status?: #BranchStatus @go(Status) -} - -// BranchList contains a list of Branchs -#BranchList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Branch] @go(Items,[]Branch) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index c13af0d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/amplify/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=amplify.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "amplify.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_webhook_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_webhook_types_go_gen.cue deleted file mode 100644 index 47343eb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/amplify/v1beta1/zz_webhook_types_go_gen.cue +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/amplify/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#WebhookInitParameters: { - // Description for a webhook. - description?: null | string @go(Description,*string) -} - -#WebhookObservation: { - // Unique ID for an Amplify app. - appId?: null | string @go(AppID,*string) - - // ARN for the webhook. - arn?: null | string @go(Arn,*string) - - // Name for a branch that is part of the Amplify app. - branchName?: null | string @go(BranchName,*string) - - // Description for a webhook. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // URL of the webhook. - url?: null | string @go(URL,*string) -} - -#WebhookParameters: { - // Unique ID for an Amplify app. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/amplify/v1beta1.App - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - appId?: null | string @go(AppID,*string) - - // Reference to a App in amplify to populate appId. - // +kubebuilder:validation:Optional - appIdRef?: null | v1.#Reference @go(AppIDRef,*v1.Reference) - - // Selector for a App in amplify to populate appId. - // +kubebuilder:validation:Optional - appIdSelector?: null | v1.#Selector @go(AppIDSelector,*v1.Selector) - - // Name for a branch that is part of the Amplify app. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/amplify/v1beta1.Branch - // +kubebuilder:validation:Optional - branchName?: null | string @go(BranchName,*string) - - // Reference to a Branch in amplify to populate branchName. - // +kubebuilder:validation:Optional - branchNameRef?: null | v1.#Reference @go(BranchNameRef,*v1.Reference) - - // Selector for a Branch in amplify to populate branchName. - // +kubebuilder:validation:Optional - branchNameSelector?: null | v1.#Selector @go(BranchNameSelector,*v1.Selector) - - // Description for a webhook. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// WebhookSpec defines the desired state of Webhook -#WebhookSpec: { - v1.#ResourceSpec - forProvider: #WebhookParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WebhookInitParameters @go(InitProvider) -} - -// WebhookStatus defines the observed state of Webhook. -#WebhookStatus: { - v1.#ResourceStatus - atProvider?: #WebhookObservation @go(AtProvider) -} - -// Webhook is the Schema for the Webhooks API. Provides an Amplify Webhook resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Webhook: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #WebhookSpec @go(Spec) - status?: #WebhookStatus @go(Status) -} - -// WebhookList contains a list of Webhooks -#WebhookList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Webhook] @go(Items,[]Webhook) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_account_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_account_types_go_gen.cue deleted file mode 100644 index 409b8f5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_account_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountInitParameters: { -} - -#AccountObservation: { - // ARN of an IAM role for CloudWatch (to allow logging & monitoring). See more in AWS Docs. Logging & monitoring can be enabled/disabled and otherwise tuned on the API Gateway Stage level. - cloudwatchRoleArn?: null | string @go(CloudwatchRoleArn,*string) - id?: null | string @go(ID,*string) - - // Account-Level throttle settings. See exported fields below. - throttleSettings?: [...#ThrottleSettingsObservation] @go(ThrottleSettings,[]ThrottleSettingsObservation) -} - -#AccountParameters: { - // ARN of an IAM role for CloudWatch (to allow logging & monitoring). See more in AWS Docs. Logging & monitoring can be enabled/disabled and otherwise tuned on the API Gateway Stage level. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - cloudwatchRoleArn?: null | string @go(CloudwatchRoleArn,*string) - - // Reference to a Role in iam to populate cloudwatchRoleArn. - // +kubebuilder:validation:Optional - cloudwatchRoleArnRef?: null | v1.#Reference @go(CloudwatchRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate cloudwatchRoleArn. - // +kubebuilder:validation:Optional - cloudwatchRoleArnSelector?: null | v1.#Selector @go(CloudwatchRoleArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#ThrottleSettingsInitParameters: { -} - -#ThrottleSettingsObservation: { - // Absolute maximum number of times API Gateway allows the API to be called per second (RPS). - burstLimit?: null | float64 @go(BurstLimit,*float64) - - // Number of times API Gateway allows the API to be called per second on average (RPS). - rateLimit?: null | float64 @go(RateLimit,*float64) -} - -#ThrottleSettingsParameters: { -} - -// AccountSpec defines the desired state of Account -#AccountSpec: { - v1.#ResourceSpec - forProvider: #AccountParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccountInitParameters @go(InitProvider) -} - -// AccountStatus defines the observed state of Account. -#AccountStatus: { - v1.#ResourceStatus - atProvider?: #AccountObservation @go(AtProvider) -} - -// Account is the Schema for the Accounts API. Provides a settings of an API Gateway Account. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Account: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AccountSpec @go(Spec) - status?: #AccountStatus @go(Status) -} - -// AccountList contains a list of Accounts -#AccountList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Account] @go(Items,[]Account) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_apikey_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_apikey_types_go_gen.cue deleted file mode 100644 index 8b9750d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_apikey_types_go_gen.cue +++ /dev/null @@ -1,127 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#APIKeyInitParameters: { - // API key description. - description?: null | string @go(Description,*string) - - // Whether the API key can be used by callers. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // Name of the API key. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#APIKeyObservation: { - // ARN - arn?: null | string @go(Arn,*string) - - // Creation date of the API key - createdDate?: null | string @go(CreatedDate,*string) - - // API key description. - description?: null | string @go(Description,*string) - - // Whether the API key can be used by callers. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // ID of the API key - id?: null | string @go(ID,*string) - - // Last update date of the API key - lastUpdatedDate?: null | string @go(LastUpdatedDate,*string) - - // Name of the API key. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#APIKeyParameters: { - // API key description. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether the API key can be used by callers. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Name of the API key. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Value of the API key. If specified, the value must be an alphanumeric string between 20 and 128 characters. If not specified, it will be automatically generated by AWS on creation. - // +kubebuilder:validation:Optional - valueSecretRef?: null | v1.#SecretKeySelector @go(ValueSecretRef,*v1.SecretKeySelector) -} - -// APIKeySpec defines the desired state of APIKey -#APIKeySpec: { - v1.#ResourceSpec - forProvider: #APIKeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #APIKeyInitParameters @go(InitProvider) -} - -// APIKeyStatus defines the observed state of APIKey. -#APIKeyStatus: { - v1.#ResourceStatus - atProvider?: #APIKeyObservation @go(AtProvider) -} - -// APIKey is the Schema for the APIKeys API. Provides an API Gateway API Key. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#APIKey: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #APIKeySpec @go(Spec) - status?: #APIKeyStatus @go(Status) -} - -// APIKeyList contains a list of APIKeys -#APIKeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#APIKey] @go(Items,[]APIKey) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_authorizer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_authorizer_types_go_gen.cue deleted file mode 100644 index a9740e2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_authorizer_types_go_gen.cue +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AuthorizerInitParameters: { - // TTL of cached authorizer results in seconds. Defaults to 300. - authorizerResultTtlInSeconds?: null | float64 @go(AuthorizerResultTTLInSeconds,*float64) - - // Source of the identity in an incoming request. Defaults to method.request.header.Authorization. For REQUEST type, this may be a comma-separated list of values, including headers, query string parameters and stage variables - e.g., "method.request.header.SomeHeaderName,method.request.querystring.SomeQueryStringName,stageVariables.SomeStageVariableName" - identitySource?: null | string @go(IdentitySource,*string) - - // Validation expression for the incoming identity. For TOKEN type, this value should be a regular expression. The incoming token from the client is matched against this expression, and will proceed if the token matches. If the token doesn't match, the client receives a 401 Unauthorized response. - identityValidationExpression?: null | string @go(IdentityValidationExpression,*string) - - // Name of the authorizer - name?: null | string @go(Name,*string) - - // List of the Amazon Cognito user pool ARNs. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. - providerArns?: [...null | string] @go(ProviderArns,[]*string) - - // Type of the authorizer. Possible values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, or COGNITO_USER_POOLS for using an Amazon Cognito user pool. Defaults to TOKEN. - type?: null | string @go(Type,*string) -} - -#AuthorizerObservation: { - // ARN of the API Gateway Authorizer - arn?: null | string @go(Arn,*string) - - // Credentials required for the authorizer. To specify an IAM Role for API Gateway to assume, use the IAM Role ARN. - authorizerCredentials?: null | string @go(AuthorizerCredentials,*string) - - // TTL of cached authorizer results in seconds. Defaults to 300. - authorizerResultTtlInSeconds?: null | float64 @go(AuthorizerResultTTLInSeconds,*float64) - - // Authorizer's Uniform Resource Identifier (URI). This must be a well-formed Lambda function URI in the form of arn:aws:apigateway:{region}:lambda:path/{service_api}, - // e.g., arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:012345678912:function:my-function/invocations - authorizerUri?: null | string @go(AuthorizerURI,*string) - - // Authorizer identifier. - id?: null | string @go(ID,*string) - - // Source of the identity in an incoming request. Defaults to method.request.header.Authorization. For REQUEST type, this may be a comma-separated list of values, including headers, query string parameters and stage variables - e.g., "method.request.header.SomeHeaderName,method.request.querystring.SomeQueryStringName,stageVariables.SomeStageVariableName" - identitySource?: null | string @go(IdentitySource,*string) - - // Validation expression for the incoming identity. For TOKEN type, this value should be a regular expression. The incoming token from the client is matched against this expression, and will proceed if the token matches. If the token doesn't match, the client receives a 401 Unauthorized response. - identityValidationExpression?: null | string @go(IdentityValidationExpression,*string) - - // Name of the authorizer - name?: null | string @go(Name,*string) - - // List of the Amazon Cognito user pool ARNs. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. - providerArns?: [...null | string] @go(ProviderArns,[]*string) - - // ID of the associated REST API - restApiId?: null | string @go(RestAPIID,*string) - - // Type of the authorizer. Possible values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, or COGNITO_USER_POOLS for using an Amazon Cognito user pool. Defaults to TOKEN. - type?: null | string @go(Type,*string) -} - -#AuthorizerParameters: { - // Credentials required for the authorizer. To specify an IAM Role for API Gateway to assume, use the IAM Role ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - authorizerCredentials?: null | string @go(AuthorizerCredentials,*string) - - // Reference to a Role in iam to populate authorizerCredentials. - // +kubebuilder:validation:Optional - authorizerCredentialsRef?: null | v1.#Reference @go(AuthorizerCredentialsRef,*v1.Reference) - - // Selector for a Role in iam to populate authorizerCredentials. - // +kubebuilder:validation:Optional - authorizerCredentialsSelector?: null | v1.#Selector @go(AuthorizerCredentialsSelector,*v1.Selector) - - // TTL of cached authorizer results in seconds. Defaults to 300. - // +kubebuilder:validation:Optional - authorizerResultTtlInSeconds?: null | float64 @go(AuthorizerResultTTLInSeconds,*float64) - - // Authorizer's Uniform Resource Identifier (URI). This must be a well-formed Lambda function URI in the form of arn:aws:apigateway:{region}:lambda:path/{service_api}, - // e.g., arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:012345678912:function:my-function/invocations - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("invoke_arn",true) - // +kubebuilder:validation:Optional - authorizerUri?: null | string @go(AuthorizerURI,*string) - - // Reference to a Function in lambda to populate authorizerUri. - // +kubebuilder:validation:Optional - authorizerUriRef?: null | v1.#Reference @go(AuthorizerURIRef,*v1.Reference) - - // Selector for a Function in lambda to populate authorizerUri. - // +kubebuilder:validation:Optional - authorizerUriSelector?: null | v1.#Selector @go(AuthorizerURISelector,*v1.Selector) - - // Source of the identity in an incoming request. Defaults to method.request.header.Authorization. For REQUEST type, this may be a comma-separated list of values, including headers, query string parameters and stage variables - e.g., "method.request.header.SomeHeaderName,method.request.querystring.SomeQueryStringName,stageVariables.SomeStageVariableName" - // +kubebuilder:validation:Optional - identitySource?: null | string @go(IdentitySource,*string) - - // Validation expression for the incoming identity. For TOKEN type, this value should be a regular expression. The incoming token from the client is matched against this expression, and will proceed if the token matches. If the token doesn't match, the client receives a 401 Unauthorized response. - // +kubebuilder:validation:Optional - identityValidationExpression?: null | string @go(IdentityValidationExpression,*string) - - // Name of the authorizer - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // List of the Amazon Cognito user pool ARNs. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. - // +kubebuilder:validation:Optional - providerArns?: [...null | string] @go(ProviderArns,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the associated REST API - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) - - // Type of the authorizer. Possible values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, or COGNITO_USER_POOLS for using an Amazon Cognito user pool. Defaults to TOKEN. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// AuthorizerSpec defines the desired state of Authorizer -#AuthorizerSpec: { - v1.#ResourceSpec - forProvider: #AuthorizerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AuthorizerInitParameters @go(InitProvider) -} - -// AuthorizerStatus defines the observed state of Authorizer. -#AuthorizerStatus: { - v1.#ResourceStatus - atProvider?: #AuthorizerObservation @go(AtProvider) -} - -// Authorizer is the Schema for the Authorizers API. Provides an API Gateway Authorizer. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Authorizer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #AuthorizerSpec @go(Spec) - status?: #AuthorizerStatus @go(Status) -} - -// AuthorizerList contains a list of Authorizers -#AuthorizerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Authorizer] @go(Items,[]Authorizer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_basepathmapping_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_basepathmapping_types_go_gen.cue deleted file mode 100644 index 5c7c0ea..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_basepathmapping_types_go_gen.cue +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BasePathMappingInitParameters: { - // Path segment that must be prepended to the path when accessing the API via this mapping. If omitted, the API is exposed at the root of the given domain. - basePath?: null | string @go(BasePath,*string) -} - -#BasePathMappingObservation: { - // ID of the API to connect. - apiId?: null | string @go(APIID,*string) - - // Path segment that must be prepended to the path when accessing the API via this mapping. If omitted, the API is exposed at the root of the given domain. - basePath?: null | string @go(BasePath,*string) - - // Already-registered domain name to connect the API to. - domainName?: null | string @go(DomainName,*string) - id?: null | string @go(ID,*string) - - // Name of a specific deployment stage to expose at the given path. If omitted, callers may select any stage by including its name as a path element after the base path. - stageName?: null | string @go(StageName,*string) -} - -#BasePathMappingParameters: { - // ID of the API to connect. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a RestAPI in apigateway to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // Path segment that must be prepended to the path when accessing the API via this mapping. If omitted, the API is exposed at the root of the given domain. - // +kubebuilder:validation:Optional - basePath?: null | string @go(BasePath,*string) - - // Already-registered domain name to connect the API to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.DomainName - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("domain_name",false) - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Reference to a DomainName in apigateway to populate domainName. - // +kubebuilder:validation:Optional - domainNameRef?: null | v1.#Reference @go(DomainNameRef,*v1.Reference) - - // Selector for a DomainName in apigateway to populate domainName. - // +kubebuilder:validation:Optional - domainNameSelector?: null | v1.#Selector @go(DomainNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Name of a specific deployment stage to expose at the given path. If omitted, callers may select any stage by including its name as a path element after the base path. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Stage - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("stage_name",false) - // +kubebuilder:validation:Optional - stageName?: null | string @go(StageName,*string) - - // Reference to a Stage in apigateway to populate stageName. - // +kubebuilder:validation:Optional - stageNameRef?: null | v1.#Reference @go(StageNameRef,*v1.Reference) - - // Selector for a Stage in apigateway to populate stageName. - // +kubebuilder:validation:Optional - stageNameSelector?: null | v1.#Selector @go(StageNameSelector,*v1.Selector) -} - -// BasePathMappingSpec defines the desired state of BasePathMapping -#BasePathMappingSpec: { - v1.#ResourceSpec - forProvider: #BasePathMappingParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BasePathMappingInitParameters @go(InitProvider) -} - -// BasePathMappingStatus defines the observed state of BasePathMapping. -#BasePathMappingStatus: { - v1.#ResourceStatus - atProvider?: #BasePathMappingObservation @go(AtProvider) -} - -// BasePathMapping is the Schema for the BasePathMappings API. Connects a custom domain with a deployed API -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BasePathMapping: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BasePathMappingSpec @go(Spec) - status?: #BasePathMappingStatus @go(Status) -} - -// BasePathMappingList contains a list of BasePathMappings -#BasePathMappingList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BasePathMapping] @go(Items,[]BasePathMapping) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_clientcertificate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_clientcertificate_types_go_gen.cue deleted file mode 100644 index 7d34ca4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_clientcertificate_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClientCertificateInitParameters: { - // Description of the client certificate. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClientCertificateObservation: { - // ARN - arn?: null | string @go(Arn,*string) - - // Date when the client certificate was created. - createdDate?: null | string @go(CreatedDate,*string) - - // Description of the client certificate. - description?: null | string @go(Description,*string) - - // Date when the client certificate will expire. - expirationDate?: null | string @go(ExpirationDate,*string) - - // Identifier of the client certificate. - id?: null | string @go(ID,*string) - - // The PEM-encoded public key of the client certificate. - pemEncodedCertificate?: null | string @go(PemEncodedCertificate,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ClientCertificateParameters: { - // Description of the client certificate. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ClientCertificateSpec defines the desired state of ClientCertificate -#ClientCertificateSpec: { - v1.#ResourceSpec - forProvider: #ClientCertificateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClientCertificateInitParameters @go(InitProvider) -} - -// ClientCertificateStatus defines the observed state of ClientCertificate. -#ClientCertificateStatus: { - v1.#ResourceStatus - atProvider?: #ClientCertificateObservation @go(AtProvider) -} - -// ClientCertificate is the Schema for the ClientCertificates API. Provides an API Gateway Client Certificate. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClientCertificate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ClientCertificateSpec @go(Spec) - status?: #ClientCertificateStatus @go(Status) -} - -// ClientCertificateList contains a list of ClientCertificates -#ClientCertificateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClientCertificate] @go(Items,[]ClientCertificate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_deployment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_deployment_types_go_gen.cue deleted file mode 100644 index 171a99a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_deployment_types_go_gen.cue +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DeploymentInitParameters: { - // Description of the deployment - description?: null | string @go(Description,*string) - - // Description to set on the stage managed by the stage_name argument. - stageDescription?: null | string @go(StageDescription,*string) - - // Name of the stage to create with this deployment. If the specified stage already exists, it will be updated to point to the new deployment. We recommend using the aws_api_gateway_stage resource instead to manage stages. - stageName?: null | string @go(StageName,*string) - - // argument or explicit resource references using the resource . The triggers argument should be preferred over depends_on, since depends_on can only capture dependency ordering and will not cause the resource to recreate (redeploy the REST API) with upstream configuration changes. - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) - - // Map to set on the stage managed by the stage_name argument. - variables?: {[string]: null | string} @go(Variables,map[string]*string) -} - -#DeploymentObservation: { - // Creation date of the deployment - createdDate?: null | string @go(CreatedDate,*string) - - // Description of the deployment - description?: null | string @go(Description,*string) - - // Execution ARN to be used in lambda_permission's source_arn - // when allowing API Gateway to invoke a Lambda function, - // e.g., arn:aws:execute-api:eu-west-2:123456789012:z4675bid1j/prod - executionArn?: null | string @go(ExecutionArn,*string) - - // ID of the deployment - id?: null | string @go(ID,*string) - - // URL to invoke the API pointing to the stage, - // e.g., https://z4675bid1j.execute-api.eu-west-2.amazonaws.com/prod - invokeUrl?: null | string @go(InvokeURL,*string) - - // REST API identifier. - restApiId?: null | string @go(RestAPIID,*string) - - // Description to set on the stage managed by the stage_name argument. - stageDescription?: null | string @go(StageDescription,*string) - - // Name of the stage to create with this deployment. If the specified stage already exists, it will be updated to point to the new deployment. We recommend using the aws_api_gateway_stage resource instead to manage stages. - stageName?: null | string @go(StageName,*string) - - // argument or explicit resource references using the resource . The triggers argument should be preferred over depends_on, since depends_on can only capture dependency ordering and will not cause the resource to recreate (redeploy the REST API) with upstream configuration changes. - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) - - // Map to set on the stage managed by the stage_name argument. - variables?: {[string]: null | string} @go(Variables,map[string]*string) -} - -#DeploymentParameters: { - // Description of the deployment - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // REST API identifier. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) - - // Description to set on the stage managed by the stage_name argument. - // +kubebuilder:validation:Optional - stageDescription?: null | string @go(StageDescription,*string) - - // Name of the stage to create with this deployment. If the specified stage already exists, it will be updated to point to the new deployment. We recommend using the aws_api_gateway_stage resource instead to manage stages. - // +kubebuilder:validation:Optional - stageName?: null | string @go(StageName,*string) - - // argument or explicit resource references using the resource . The triggers argument should be preferred over depends_on, since depends_on can only capture dependency ordering and will not cause the resource to recreate (redeploy the REST API) with upstream configuration changes. - // +kubebuilder:validation:Optional - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) - - // Map to set on the stage managed by the stage_name argument. - // +kubebuilder:validation:Optional - variables?: {[string]: null | string} @go(Variables,map[string]*string) -} - -// DeploymentSpec defines the desired state of Deployment -#DeploymentSpec: { - v1.#ResourceSpec - forProvider: #DeploymentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DeploymentInitParameters @go(InitProvider) -} - -// DeploymentStatus defines the observed state of Deployment. -#DeploymentStatus: { - v1.#ResourceStatus - atProvider?: #DeploymentObservation @go(AtProvider) -} - -// Deployment is the Schema for the Deployments API. Manages an API Gateway REST Deployment. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Deployment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DeploymentSpec @go(Spec) - status?: #DeploymentStatus @go(Status) -} - -// DeploymentList contains a list of Deployments -#DeploymentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Deployment] @go(Items,[]Deployment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_documentationpart_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_documentationpart_types_go_gen.cue deleted file mode 100644 index 1239203..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_documentationpart_types_go_gen.cue +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DocumentationPartInitParameters: { - // Location of the targeted API entity of the to-be-created documentation part. See below. - location?: [...#LocationInitParameters] @go(Location,[]LocationInitParameters) - - // Content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ "description": "The API does ..." }". Only Swagger-compliant key-value pairs can be exported and, hence, published. - properties?: null | string @go(Properties,*string) -} - -#DocumentationPartObservation: { - // Unique ID of the Documentation Part - id?: null | string @go(ID,*string) - - // Location of the targeted API entity of the to-be-created documentation part. See below. - location?: [...#LocationObservation] @go(Location,[]LocationObservation) - - // Content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ "description": "The API does ..." }". Only Swagger-compliant key-value pairs can be exported and, hence, published. - properties?: null | string @go(Properties,*string) - - // ID of the associated Rest API - restApiId?: null | string @go(RestAPIID,*string) -} - -#DocumentationPartParameters: { - // Location of the targeted API entity of the to-be-created documentation part. See below. - // +kubebuilder:validation:Optional - location?: [...#LocationParameters] @go(Location,[]LocationParameters) - - // Content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ "description": "The API does ..." }". Only Swagger-compliant key-value pairs can be exported and, hence, published. - // +kubebuilder:validation:Optional - properties?: null | string @go(Properties,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the associated Rest API - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) -} - -#LocationInitParameters: { - // HTTP verb of a method. The default value is * for any method. - method?: null | string @go(Method,*string) - - // Name of the targeted API entity. - name?: null | string @go(Name,*string) - - // URL path of the target. The default value is / for the root resource. - path?: null | string @go(Path,*string) - - // HTTP status code of a response. The default value is * for any status code. - statusCode?: null | string @go(StatusCode,*string) - - // Type of API entity to which the documentation content appliesE.g., API, METHOD or REQUEST_BODY - type?: null | string @go(Type,*string) -} - -#LocationObservation: { - // HTTP verb of a method. The default value is * for any method. - method?: null | string @go(Method,*string) - - // Name of the targeted API entity. - name?: null | string @go(Name,*string) - - // URL path of the target. The default value is / for the root resource. - path?: null | string @go(Path,*string) - - // HTTP status code of a response. The default value is * for any status code. - statusCode?: null | string @go(StatusCode,*string) - - // Type of API entity to which the documentation content appliesE.g., API, METHOD or REQUEST_BODY - type?: null | string @go(Type,*string) -} - -#LocationParameters: { - // HTTP verb of a method. The default value is * for any method. - // +kubebuilder:validation:Optional - method?: null | string @go(Method,*string) - - // Name of the targeted API entity. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // URL path of the target. The default value is / for the root resource. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // HTTP status code of a response. The default value is * for any status code. - // +kubebuilder:validation:Optional - statusCode?: null | string @go(StatusCode,*string) - - // Type of API entity to which the documentation content appliesE.g., API, METHOD or REQUEST_BODY - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// DocumentationPartSpec defines the desired state of DocumentationPart -#DocumentationPartSpec: { - v1.#ResourceSpec - forProvider: #DocumentationPartParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DocumentationPartInitParameters @go(InitProvider) -} - -// DocumentationPartStatus defines the observed state of DocumentationPart. -#DocumentationPartStatus: { - v1.#ResourceStatus - atProvider?: #DocumentationPartObservation @go(AtProvider) -} - -// DocumentationPart is the Schema for the DocumentationParts API. Provides a settings of an API Gateway Documentation Part. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DocumentationPart: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.location) || (has(self.initProvider) && has(self.initProvider.location))",message="spec.forProvider.location is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.properties) || (has(self.initProvider) && has(self.initProvider.properties))",message="spec.forProvider.properties is a required parameter" - spec: #DocumentationPartSpec @go(Spec) - status?: #DocumentationPartStatus @go(Status) -} - -// DocumentationPartList contains a list of DocumentationParts -#DocumentationPartList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DocumentationPart] @go(Items,[]DocumentationPart) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_documentationversion_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_documentationversion_types_go_gen.cue deleted file mode 100644 index ff01b1e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_documentationversion_types_go_gen.cue +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DocumentationVersionInitParameters: { - // Description of the API documentation version. - description?: null | string @go(Description,*string) - - // Version identifier of the API documentation snapshot. - version?: null | string @go(Version,*string) -} - -#DocumentationVersionObservation: { - // Description of the API documentation version. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // ID of the associated Rest API - restApiId?: null | string @go(RestAPIID,*string) - - // Version identifier of the API documentation snapshot. - version?: null | string @go(Version,*string) -} - -#DocumentationVersionParameters: { - // Description of the API documentation version. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the associated Rest API - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) - - // Version identifier of the API documentation snapshot. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -// DocumentationVersionSpec defines the desired state of DocumentationVersion -#DocumentationVersionSpec: { - v1.#ResourceSpec - forProvider: #DocumentationVersionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DocumentationVersionInitParameters @go(InitProvider) -} - -// DocumentationVersionStatus defines the observed state of DocumentationVersion. -#DocumentationVersionStatus: { - v1.#ResourceStatus - atProvider?: #DocumentationVersionObservation @go(AtProvider) -} - -// DocumentationVersion is the Schema for the DocumentationVersions API. Provides a resource to manage an API Gateway Documentation Version. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DocumentationVersion: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.version) || (has(self.initProvider) && has(self.initProvider.version))",message="spec.forProvider.version is a required parameter" - spec: #DocumentationVersionSpec @go(Spec) - status?: #DocumentationVersionStatus @go(Status) -} - -// DocumentationVersionList contains a list of DocumentationVersions -#DocumentationVersionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DocumentationVersion] @go(Items,[]DocumentationVersion) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_domainname_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_domainname_types_go_gen.cue deleted file mode 100644 index 0eca83e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_domainname_types_go_gen.cue +++ /dev/null @@ -1,272 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainNameInitParameters: { - // Certificate issued for the domain name being registered, in PEM format. Only valid for EDGE endpoint configuration type. Conflicts with certificate_arn, regional_certificate_arn, and regional_certificate_name. - certificateBody?: null | string @go(CertificateBody,*string) - - // Certificate for the CA that issued the certificate, along with any intermediate CA certificates required to create an unbroken chain to a certificate trusted by the intended API clients. Only valid for EDGE endpoint configuration type. Conflicts with certificate_arn, regional_certificate_arn, and regional_certificate_name. - certificateChain?: null | string @go(CertificateChain,*string) - - // Unique name to use when registering this certificate as an IAM server certificate. Conflicts with certificate_arn, regional_certificate_arn, and regional_certificate_name. Required if certificate_arn is not set. - certificateName?: null | string @go(CertificateName,*string) - - // Fully-qualified domain name to register. - domainName?: null | string @go(DomainName,*string) - - // Configuration block defining API endpoint information including type. See below. - endpointConfiguration?: [...#EndpointConfigurationInitParameters] @go(EndpointConfiguration,[]EndpointConfigurationInitParameters) - - // Mutual TLS authentication configuration for the domain name. See below. - mutualTlsAuthentication?: [...#MutualTLSAuthenticationInitParameters] @go(MutualTLSAuthentication,[]MutualTLSAuthenticationInitParameters) - - // ARN of the AWS-issued certificate used to validate custom domain ownership (when certificate_arn is issued via an ACM Private CA or mutual_tls_authentication is configured with an ACM-imported certificate.) - ownershipVerificationCertificateArn?: null | string @go(OwnershipVerificationCertificateArn,*string) - - // User-friendly name of the certificate that will be used by regional endpoint for this domain name. Conflicts with certificate_arn, certificate_name, certificate_body, certificate_chain, and certificate_private_key. - regionalCertificateName?: null | string @go(RegionalCertificateName,*string) - - // Transport Layer Security (TLS) version + cipher suite for this DomainName. Valid values are TLS_1_0 and TLS_1_2. Must be configured to perform drift detection. - securityPolicy?: null | string @go(SecurityPolicy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DomainNameObservation: { - // ARN of domain name. - arn?: null | string @go(Arn,*string) - - // ARN for an AWS-managed certificate. AWS Certificate Manager is the only supported source. Used when an edge-optimized domain name is desired. Conflicts with certificate_name, certificate_body, certificate_chain, certificate_private_key, regional_certificate_arn, and regional_certificate_name. - certificateArn?: null | string @go(CertificateArn,*string) - - // Certificate issued for the domain name being registered, in PEM format. Only valid for EDGE endpoint configuration type. Conflicts with certificate_arn, regional_certificate_arn, and regional_certificate_name. - certificateBody?: null | string @go(CertificateBody,*string) - - // Certificate for the CA that issued the certificate, along with any intermediate CA certificates required to create an unbroken chain to a certificate trusted by the intended API clients. Only valid for EDGE endpoint configuration type. Conflicts with certificate_arn, regional_certificate_arn, and regional_certificate_name. - certificateChain?: null | string @go(CertificateChain,*string) - - // Unique name to use when registering this certificate as an IAM server certificate. Conflicts with certificate_arn, regional_certificate_arn, and regional_certificate_name. Required if certificate_arn is not set. - certificateName?: null | string @go(CertificateName,*string) - - // Upload date associated with the domain certificate. - certificateUploadDate?: null | string @go(CertificateUploadDate,*string) - - // Hostname created by Cloudfront to represent the distribution that implements this domain name mapping. - cloudfrontDomainName?: null | string @go(CloudfrontDomainName,*string) - - // For convenience, the hosted zone ID (Z2FDTNDATAQYW2) that can be used to create a Route53 alias record for the distribution. - cloudfrontZoneId?: null | string @go(CloudfrontZoneID,*string) - - // Fully-qualified domain name to register. - domainName?: null | string @go(DomainName,*string) - - // Configuration block defining API endpoint information including type. See below. - endpointConfiguration?: [...#EndpointConfigurationObservation] @go(EndpointConfiguration,[]EndpointConfigurationObservation) - - // Internal identifier assigned to this domain name by API Gateway. - id?: null | string @go(ID,*string) - - // Mutual TLS authentication configuration for the domain name. See below. - mutualTlsAuthentication?: [...#MutualTLSAuthenticationObservation] @go(MutualTLSAuthentication,[]MutualTLSAuthenticationObservation) - - // ARN of the AWS-issued certificate used to validate custom domain ownership (when certificate_arn is issued via an ACM Private CA or mutual_tls_authentication is configured with an ACM-imported certificate.) - ownershipVerificationCertificateArn?: null | string @go(OwnershipVerificationCertificateArn,*string) - - // ARN for an AWS-managed certificate. AWS Certificate Manager is the only supported source. Used when a regional domain name is desired. Conflicts with certificate_arn, certificate_name, certificate_body, certificate_chain, and certificate_private_key. - regionalCertificateArn?: null | string @go(RegionalCertificateArn,*string) - - // User-friendly name of the certificate that will be used by regional endpoint for this domain name. Conflicts with certificate_arn, certificate_name, certificate_body, certificate_chain, and certificate_private_key. - regionalCertificateName?: null | string @go(RegionalCertificateName,*string) - - // Hostname for the custom domain's regional endpoint. - regionalDomainName?: null | string @go(RegionalDomainName,*string) - - // Hosted zone ID that can be used to create a Route53 alias record for the regional endpoint. - regionalZoneId?: null | string @go(RegionalZoneID,*string) - - // Transport Layer Security (TLS) version + cipher suite for this DomainName. Valid values are TLS_1_0 and TLS_1_2. Must be configured to perform drift detection. - securityPolicy?: null | string @go(SecurityPolicy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DomainNameParameters: { - // ARN for an AWS-managed certificate. AWS Certificate Manager is the only supported source. Used when an edge-optimized domain name is desired. Conflicts with certificate_name, certificate_body, certificate_chain, certificate_private_key, regional_certificate_arn, and regional_certificate_name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/acm/v1beta1.CertificateValidation - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("certificate_arn",false) - // +kubebuilder:validation:Optional - certificateArn?: null | string @go(CertificateArn,*string) - - // Reference to a CertificateValidation in acm to populate certificateArn. - // +kubebuilder:validation:Optional - certificateArnRef?: null | v1.#Reference @go(CertificateArnRef,*v1.Reference) - - // Selector for a CertificateValidation in acm to populate certificateArn. - // +kubebuilder:validation:Optional - certificateArnSelector?: null | v1.#Selector @go(CertificateArnSelector,*v1.Selector) - - // Certificate issued for the domain name being registered, in PEM format. Only valid for EDGE endpoint configuration type. Conflicts with certificate_arn, regional_certificate_arn, and regional_certificate_name. - // +kubebuilder:validation:Optional - certificateBody?: null | string @go(CertificateBody,*string) - - // Certificate for the CA that issued the certificate, along with any intermediate CA certificates required to create an unbroken chain to a certificate trusted by the intended API clients. Only valid for EDGE endpoint configuration type. Conflicts with certificate_arn, regional_certificate_arn, and regional_certificate_name. - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) - - // Unique name to use when registering this certificate as an IAM server certificate. Conflicts with certificate_arn, regional_certificate_arn, and regional_certificate_name. Required if certificate_arn is not set. - // +kubebuilder:validation:Optional - certificateName?: null | string @go(CertificateName,*string) - - // Private key associated with the domain certificate given in certificate_body. Only valid for EDGE endpoint configuration type. Conflicts with certificate_arn, regional_certificate_arn, and regional_certificate_name. - // +kubebuilder:validation:Optional - certificatePrivateKeySecretRef?: null | v1.#SecretKeySelector @go(CertificatePrivateKeySecretRef,*v1.SecretKeySelector) - - // Fully-qualified domain name to register. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Configuration block defining API endpoint information including type. See below. - // +kubebuilder:validation:Optional - endpointConfiguration?: [...#EndpointConfigurationParameters] @go(EndpointConfiguration,[]EndpointConfigurationParameters) - - // Mutual TLS authentication configuration for the domain name. See below. - // +kubebuilder:validation:Optional - mutualTlsAuthentication?: [...#MutualTLSAuthenticationParameters] @go(MutualTLSAuthentication,[]MutualTLSAuthenticationParameters) - - // ARN of the AWS-issued certificate used to validate custom domain ownership (when certificate_arn is issued via an ACM Private CA or mutual_tls_authentication is configured with an ACM-imported certificate.) - // +kubebuilder:validation:Optional - ownershipVerificationCertificateArn?: null | string @go(OwnershipVerificationCertificateArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ARN for an AWS-managed certificate. AWS Certificate Manager is the only supported source. Used when a regional domain name is desired. Conflicts with certificate_arn, certificate_name, certificate_body, certificate_chain, and certificate_private_key. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/acm/v1beta1.CertificateValidation - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("certificate_arn",false) - // +kubebuilder:validation:Optional - regionalCertificateArn?: null | string @go(RegionalCertificateArn,*string) - - // Reference to a CertificateValidation in acm to populate regionalCertificateArn. - // +kubebuilder:validation:Optional - regionalCertificateArnRef?: null | v1.#Reference @go(RegionalCertificateArnRef,*v1.Reference) - - // Selector for a CertificateValidation in acm to populate regionalCertificateArn. - // +kubebuilder:validation:Optional - regionalCertificateArnSelector?: null | v1.#Selector @go(RegionalCertificateArnSelector,*v1.Selector) - - // User-friendly name of the certificate that will be used by regional endpoint for this domain name. Conflicts with certificate_arn, certificate_name, certificate_body, certificate_chain, and certificate_private_key. - // +kubebuilder:validation:Optional - regionalCertificateName?: null | string @go(RegionalCertificateName,*string) - - // Transport Layer Security (TLS) version + cipher suite for this DomainName. Valid values are TLS_1_0 and TLS_1_2. Must be configured to perform drift detection. - // +kubebuilder:validation:Optional - securityPolicy?: null | string @go(SecurityPolicy,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EndpointConfigurationInitParameters: { - // List of endpoint types. This resource currently only supports managing a single value. Valid values: EDGE or REGIONAL. If unspecified, defaults to EDGE. Must be declared as REGIONAL in non-Commercial partitions. Refer to the documentation for more information on the difference between edge-optimized and regional APIs. - types?: [...null | string] @go(Types,[]*string) -} - -#EndpointConfigurationObservation: { - // List of endpoint types. This resource currently only supports managing a single value. Valid values: EDGE or REGIONAL. If unspecified, defaults to EDGE. Must be declared as REGIONAL in non-Commercial partitions. Refer to the documentation for more information on the difference between edge-optimized and regional APIs. - types?: [...null | string] @go(Types,[]*string) -} - -#EndpointConfigurationParameters: { - // List of endpoint types. This resource currently only supports managing a single value. Valid values: EDGE or REGIONAL. If unspecified, defaults to EDGE. Must be declared as REGIONAL in non-Commercial partitions. Refer to the documentation for more information on the difference between edge-optimized and regional APIs. - // +kubebuilder:validation:Optional - types: [...null | string] @go(Types,[]*string) -} - -#MutualTLSAuthenticationInitParameters: { - // Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. - truststoreUri?: null | string @go(TruststoreURI,*string) - - // Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket. - truststoreVersion?: null | string @go(TruststoreVersion,*string) -} - -#MutualTLSAuthenticationObservation: { - // Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. - truststoreUri?: null | string @go(TruststoreURI,*string) - - // Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket. - truststoreVersion?: null | string @go(TruststoreVersion,*string) -} - -#MutualTLSAuthenticationParameters: { - // Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. - // +kubebuilder:validation:Optional - truststoreUri?: null | string @go(TruststoreURI,*string) - - // Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket. - // +kubebuilder:validation:Optional - truststoreVersion?: null | string @go(TruststoreVersion,*string) -} - -// DomainNameSpec defines the desired state of DomainName -#DomainNameSpec: { - v1.#ResourceSpec - forProvider: #DomainNameParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainNameInitParameters @go(InitProvider) -} - -// DomainNameStatus defines the observed state of DomainName. -#DomainNameStatus: { - v1.#ResourceStatus - atProvider?: #DomainNameObservation @go(AtProvider) -} - -// DomainName is the Schema for the DomainNames API. Registers a custom domain name for use with AWS API Gateway. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DomainName: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.domainName) || (has(self.initProvider) && has(self.initProvider.domainName))",message="spec.forProvider.domainName is a required parameter" - spec: #DomainNameSpec @go(Spec) - status?: #DomainNameStatus @go(Status) -} - -// DomainNameList contains a list of DomainNames -#DomainNameList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DomainName] @go(Items,[]DomainName) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_gatewayresponse_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_gatewayresponse_types_go_gen.cue deleted file mode 100644 index 9420193..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_gatewayresponse_types_go_gen.cue +++ /dev/null @@ -1,127 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GatewayResponseInitParameters: { - // Map of parameters (paths, query strings and headers) of the Gateway Response. - responseParameters?: {[string]: null | string} @go(ResponseParameters,map[string]*string) - - // Map of templates used to transform the response body. - responseTemplates?: {[string]: null | string} @go(ResponseTemplates,map[string]*string) - - // Response type of the associated GatewayResponse. - responseType?: null | string @go(ResponseType,*string) - - // HTTP status code of the Gateway Response. - statusCode?: null | string @go(StatusCode,*string) -} - -#GatewayResponseObservation: { - id?: null | string @go(ID,*string) - - // Map of parameters (paths, query strings and headers) of the Gateway Response. - responseParameters?: {[string]: null | string} @go(ResponseParameters,map[string]*string) - - // Map of templates used to transform the response body. - responseTemplates?: {[string]: null | string} @go(ResponseTemplates,map[string]*string) - - // Response type of the associated GatewayResponse. - responseType?: null | string @go(ResponseType,*string) - - // String identifier of the associated REST API. - restApiId?: null | string @go(RestAPIID,*string) - - // HTTP status code of the Gateway Response. - statusCode?: null | string @go(StatusCode,*string) -} - -#GatewayResponseParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Map of parameters (paths, query strings and headers) of the Gateway Response. - // +kubebuilder:validation:Optional - responseParameters?: {[string]: null | string} @go(ResponseParameters,map[string]*string) - - // Map of templates used to transform the response body. - // +kubebuilder:validation:Optional - responseTemplates?: {[string]: null | string} @go(ResponseTemplates,map[string]*string) - - // Response type of the associated GatewayResponse. - // +kubebuilder:validation:Optional - responseType?: null | string @go(ResponseType,*string) - - // String identifier of the associated REST API. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) - - // HTTP status code of the Gateway Response. - // +kubebuilder:validation:Optional - statusCode?: null | string @go(StatusCode,*string) -} - -// GatewayResponseSpec defines the desired state of GatewayResponse -#GatewayResponseSpec: { - v1.#ResourceSpec - forProvider: #GatewayResponseParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GatewayResponseInitParameters @go(InitProvider) -} - -// GatewayResponseStatus defines the observed state of GatewayResponse. -#GatewayResponseStatus: { - v1.#ResourceStatus - atProvider?: #GatewayResponseObservation @go(AtProvider) -} - -// GatewayResponse is the Schema for the GatewayResponses API. Provides an API Gateway Gateway Response for a REST API Gateway. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GatewayResponse: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.responseType) || (has(self.initProvider) && has(self.initProvider.responseType))",message="spec.forProvider.responseType is a required parameter" - spec: #GatewayResponseSpec @go(Spec) - status?: #GatewayResponseStatus @go(Status) -} - -// GatewayResponseList contains a list of GatewayResponses -#GatewayResponseList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GatewayResponse] @go(Items,[]GatewayResponse) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index ea7f934..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=apigateway.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "apigateway.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_integration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_integration_types_go_gen.cue deleted file mode 100644 index ccb07f7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_integration_types_go_gen.cue +++ /dev/null @@ -1,311 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IntegrationInitParameters: { - // List of cache key parameters for the integration. - cacheKeyParameters?: [...null | string] @go(CacheKeyParameters,[]*string) - - // Integration's cache namespace. - cacheNamespace?: null | string @go(CacheNamespace,*string) - - // Integration input's connectionType. Valid values are INTERNET (default for connections through the public routable internet), and VPC_LINK (for private connections between API Gateway and a network load balancer in a VPC). - connectionType?: null | string @go(ConnectionType,*string) - - // How to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT. If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehaviors is configured to support payload pass-through. - contentHandling?: null | string @go(ContentHandling,*string) - - // Credentials required for the integration. For AWS integrations, 2 options are available. To specify an IAM Role for Amazon API Gateway to assume, use the role's ARN. To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*. - credentials?: null | string @go(Credentials,*string) - - // Integration HTTP method - // (GET, POST, PUT, DELETE, HEAD, OPTIONs, ANY, PATCH) specifying how API Gateway will interact with the back end. - // Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY. - // Not all methods are compatible with all AWS integrations. - // e.g., Lambda function can only be invoked via POST. - integrationHttpMethod?: null | string @go(IntegrationHTTPMethod,*string) - - // Integration passthrough behavior (WHEN_NO_MATCH, WHEN_NO_TEMPLATES, NEVER). Required if request_templates is used. - passthroughBehavior?: null | string @go(PassthroughBehavior,*string) - - // Map of request query string parameters and headers that should be passed to the backend responder. - // For example: request_parameters = { "integration.request.header.X-Some-Other-Header" = "method.request.header.X-Some-Header" } - requestParameters?: {[string]: null | string} @go(RequestParameters,map[string]*string) - - // Map of the integration's request templates. - requestTemplates?: {[string]: null | string} @go(RequestTemplates,map[string]*string) - - // TLS configuration. See below. - tlsConfig?: [...#TLSConfigInitParameters] @go(TLSConfig,[]TLSConfigInitParameters) - - // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds. - timeoutMilliseconds?: null | float64 @go(TimeoutMilliseconds,*float64) - - // Integration input's type. Valid values are HTTP (for HTTP backends), MOCK (not calling any real backend), AWS (for AWS services), AWS_PROXY (for Lambda proxy integration) and HTTP_PROXY (for HTTP proxy integration). An HTTP or HTTP_PROXY integration with a connection_type of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC. - type?: null | string @go(Type,*string) -} - -#IntegrationObservation: { - // List of cache key parameters for the integration. - cacheKeyParameters?: [...null | string] @go(CacheKeyParameters,[]*string) - - // Integration's cache namespace. - cacheNamespace?: null | string @go(CacheNamespace,*string) - - // ID of the VpcLink used for the integration. Required if connection_type is VPC_LINK - connectionId?: null | string @go(ConnectionID,*string) - - // Integration input's connectionType. Valid values are INTERNET (default for connections through the public routable internet), and VPC_LINK (for private connections between API Gateway and a network load balancer in a VPC). - connectionType?: null | string @go(ConnectionType,*string) - - // How to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT. If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehaviors is configured to support payload pass-through. - contentHandling?: null | string @go(ContentHandling,*string) - - // Credentials required for the integration. For AWS integrations, 2 options are available. To specify an IAM Role for Amazon API Gateway to assume, use the role's ARN. To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*. - credentials?: null | string @go(Credentials,*string) - - // HTTP method (GET, POST, PUT, DELETE, HEAD, OPTION, ANY) - // when calling the associated resource. - httpMethod?: null | string @go(HTTPMethod,*string) - id?: null | string @go(ID,*string) - - // Integration HTTP method - // (GET, POST, PUT, DELETE, HEAD, OPTIONs, ANY, PATCH) specifying how API Gateway will interact with the back end. - // Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY. - // Not all methods are compatible with all AWS integrations. - // e.g., Lambda function can only be invoked via POST. - integrationHttpMethod?: null | string @go(IntegrationHTTPMethod,*string) - - // Integration passthrough behavior (WHEN_NO_MATCH, WHEN_NO_TEMPLATES, NEVER). Required if request_templates is used. - passthroughBehavior?: null | string @go(PassthroughBehavior,*string) - - // Map of request query string parameters and headers that should be passed to the backend responder. - // For example: request_parameters = { "integration.request.header.X-Some-Other-Header" = "method.request.header.X-Some-Header" } - requestParameters?: {[string]: null | string} @go(RequestParameters,map[string]*string) - - // Map of the integration's request templates. - requestTemplates?: {[string]: null | string} @go(RequestTemplates,map[string]*string) - - // API resource ID. - resourceId?: null | string @go(ResourceID,*string) - - // ID of the associated REST API. - restApiId?: null | string @go(RestAPIID,*string) - - // TLS configuration. See below. - tlsConfig?: [...#TLSConfigObservation] @go(TLSConfig,[]TLSConfigObservation) - - // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds. - timeoutMilliseconds?: null | float64 @go(TimeoutMilliseconds,*float64) - - // Integration input's type. Valid values are HTTP (for HTTP backends), MOCK (not calling any real backend), AWS (for AWS services), AWS_PROXY (for Lambda proxy integration) and HTTP_PROXY (for HTTP proxy integration). An HTTP or HTTP_PROXY integration with a connection_type of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC. - type?: null | string @go(Type,*string) - - // Input's URI. Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY. - // For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification . For AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. region, subdomain and service are used to determine the right endpoint. - // e.g., arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:012345678901:function:my-func/invocations. For private integrations, the URI parameter is not used for routing requests to your endpoint, but is used for setting the Host header and for certificate validation. - uri?: null | string @go(URI,*string) -} - -#IntegrationParameters: { - // List of cache key parameters for the integration. - // +kubebuilder:validation:Optional - cacheKeyParameters?: [...null | string] @go(CacheKeyParameters,[]*string) - - // Integration's cache namespace. - // +kubebuilder:validation:Optional - cacheNamespace?: null | string @go(CacheNamespace,*string) - - // ID of the VpcLink used for the integration. Required if connection_type is VPC_LINK - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.VPCLink - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - connectionId?: null | string @go(ConnectionID,*string) - - // Reference to a VPCLink in apigateway to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdRef?: null | v1.#Reference @go(ConnectionIDRef,*v1.Reference) - - // Selector for a VPCLink in apigateway to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdSelector?: null | v1.#Selector @go(ConnectionIDSelector,*v1.Selector) - - // Integration input's connectionType. Valid values are INTERNET (default for connections through the public routable internet), and VPC_LINK (for private connections between API Gateway and a network load balancer in a VPC). - // +kubebuilder:validation:Optional - connectionType?: null | string @go(ConnectionType,*string) - - // How to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT. If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehaviors is configured to support payload pass-through. - // +kubebuilder:validation:Optional - contentHandling?: null | string @go(ContentHandling,*string) - - // Credentials required for the integration. For AWS integrations, 2 options are available. To specify an IAM Role for Amazon API Gateway to assume, use the role's ARN. To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*. - // +kubebuilder:validation:Optional - credentials?: null | string @go(Credentials,*string) - - // HTTP method (GET, POST, PUT, DELETE, HEAD, OPTION, ANY) - // when calling the associated resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Method - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("http_method",false) - // +kubebuilder:validation:Optional - httpMethod?: null | string @go(HTTPMethod,*string) - - // Reference to a Method in apigateway to populate httpMethod. - // +kubebuilder:validation:Optional - httpMethodRef?: null | v1.#Reference @go(HTTPMethodRef,*v1.Reference) - - // Selector for a Method in apigateway to populate httpMethod. - // +kubebuilder:validation:Optional - httpMethodSelector?: null | v1.#Selector @go(HTTPMethodSelector,*v1.Selector) - - // Integration HTTP method - // (GET, POST, PUT, DELETE, HEAD, OPTIONs, ANY, PATCH) specifying how API Gateway will interact with the back end. - // Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY. - // Not all methods are compatible with all AWS integrations. - // e.g., Lambda function can only be invoked via POST. - // +kubebuilder:validation:Optional - integrationHttpMethod?: null | string @go(IntegrationHTTPMethod,*string) - - // Integration passthrough behavior (WHEN_NO_MATCH, WHEN_NO_TEMPLATES, NEVER). Required if request_templates is used. - // +kubebuilder:validation:Optional - passthroughBehavior?: null | string @go(PassthroughBehavior,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Map of request query string parameters and headers that should be passed to the backend responder. - // For example: request_parameters = { "integration.request.header.X-Some-Other-Header" = "method.request.header.X-Some-Header" } - // +kubebuilder:validation:Optional - requestParameters?: {[string]: null | string} @go(RequestParameters,map[string]*string) - - // Map of the integration's request templates. - // +kubebuilder:validation:Optional - requestTemplates?: {[string]: null | string} @go(RequestTemplates,map[string]*string) - - // API resource ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Resource - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - resourceId?: null | string @go(ResourceID,*string) - - // Reference to a Resource in apigateway to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdRef?: null | v1.#Reference @go(ResourceIDRef,*v1.Reference) - - // Selector for a Resource in apigateway to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdSelector?: null | v1.#Selector @go(ResourceIDSelector,*v1.Selector) - - // ID of the associated REST API. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) - - // TLS configuration. See below. - // +kubebuilder:validation:Optional - tlsConfig?: [...#TLSConfigParameters] @go(TLSConfig,[]TLSConfigParameters) - - // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds. - // +kubebuilder:validation:Optional - timeoutMilliseconds?: null | float64 @go(TimeoutMilliseconds,*float64) - - // Integration input's type. Valid values are HTTP (for HTTP backends), MOCK (not calling any real backend), AWS (for AWS services), AWS_PROXY (for Lambda proxy integration) and HTTP_PROXY (for HTTP proxy integration). An HTTP or HTTP_PROXY integration with a connection_type of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // Input's URI. Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY. - // For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification . For AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. region, subdomain and service are used to determine the right endpoint. - // e.g., arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:012345678901:function:my-func/invocations. For private integrations, the URI parameter is not used for routing requests to your endpoint, but is used for setting the Host header and for certificate validation. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("invoke_arn",true) - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) - - // Reference to a Function in lambda to populate uri. - // +kubebuilder:validation:Optional - uriRef?: null | v1.#Reference @go(URIRef,*v1.Reference) - - // Selector for a Function in lambda to populate uri. - // +kubebuilder:validation:Optional - uriSelector?: null | v1.#Selector @go(URISelector,*v1.Selector) -} - -#TLSConfigInitParameters: { - // Whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a supported certificate authority. This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for HTTP and HTTP_PROXY integrations. - insecureSkipVerification?: null | bool @go(InsecureSkipVerification,*bool) -} - -#TLSConfigObservation: { - // Whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a supported certificate authority. This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for HTTP and HTTP_PROXY integrations. - insecureSkipVerification?: null | bool @go(InsecureSkipVerification,*bool) -} - -#TLSConfigParameters: { - // Whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a supported certificate authority. This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for HTTP and HTTP_PROXY integrations. - // +kubebuilder:validation:Optional - insecureSkipVerification?: null | bool @go(InsecureSkipVerification,*bool) -} - -// IntegrationSpec defines the desired state of Integration -#IntegrationSpec: { - v1.#ResourceSpec - forProvider: #IntegrationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IntegrationInitParameters @go(InitProvider) -} - -// IntegrationStatus defines the observed state of Integration. -#IntegrationStatus: { - v1.#ResourceStatus - atProvider?: #IntegrationObservation @go(AtProvider) -} - -// Integration is the Schema for the Integrations API. Provides an HTTP Method Integration for an API Gateway Integration. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Integration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #IntegrationSpec @go(Spec) - status?: #IntegrationStatus @go(Status) -} - -// IntegrationList contains a list of Integrations -#IntegrationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Integration] @go(Items,[]Integration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_integrationresponse_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_integrationresponse_types_go_gen.cue deleted file mode 100644 index c63783f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_integrationresponse_types_go_gen.cue +++ /dev/null @@ -1,175 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IntegrationResponseInitParameters: { - // How to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT. If this property is not defined, the response payload will be passed through from the integration response to the method response without modification. - contentHandling?: null | string @go(ContentHandling,*string) - - // Map of response parameters that can be read from the backend response. For example: response_parameters = { "method.response.header.X-Some-Header" = "integration.response.header.X-Some-Other-Header" }. - responseParameters?: {[string]: null | string} @go(ResponseParameters,map[string]*string) - - // Map of templates used to transform the integration response body. - responseTemplates?: {[string]: null | string} @go(ResponseTemplates,map[string]*string) - - // Regular expression pattern used to choose an integration response based on the response from the backend. Omit configuring this to make the integration the default one. If the backend is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS backends, the HTTP status code is matched. - selectionPattern?: null | string @go(SelectionPattern,*string) -} - -#IntegrationResponseObservation: { - // How to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT. If this property is not defined, the response payload will be passed through from the integration response to the method response without modification. - contentHandling?: null | string @go(ContentHandling,*string) - - // HTTP method (GET, POST, PUT, DELETE, HEAD, OPTIONS, ANY). - httpMethod?: null | string @go(HTTPMethod,*string) - id?: null | string @go(ID,*string) - - // API resource ID. - resourceId?: null | string @go(ResourceID,*string) - - // Map of response parameters that can be read from the backend response. For example: response_parameters = { "method.response.header.X-Some-Header" = "integration.response.header.X-Some-Other-Header" }. - responseParameters?: {[string]: null | string} @go(ResponseParameters,map[string]*string) - - // Map of templates used to transform the integration response body. - responseTemplates?: {[string]: null | string} @go(ResponseTemplates,map[string]*string) - - // ID of the associated REST API. - restApiId?: null | string @go(RestAPIID,*string) - - // Regular expression pattern used to choose an integration response based on the response from the backend. Omit configuring this to make the integration the default one. If the backend is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS backends, the HTTP status code is matched. - selectionPattern?: null | string @go(SelectionPattern,*string) - - // HTTP status code. - statusCode?: null | string @go(StatusCode,*string) -} - -#IntegrationResponseParameters: { - // How to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT. If this property is not defined, the response payload will be passed through from the integration response to the method response without modification. - // +kubebuilder:validation:Optional - contentHandling?: null | string @go(ContentHandling,*string) - - // HTTP method (GET, POST, PUT, DELETE, HEAD, OPTIONS, ANY). - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Method - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("http_method",false) - // +kubebuilder:validation:Optional - httpMethod?: null | string @go(HTTPMethod,*string) - - // Reference to a Method in apigateway to populate httpMethod. - // +kubebuilder:validation:Optional - httpMethodRef?: null | v1.#Reference @go(HTTPMethodRef,*v1.Reference) - - // Selector for a Method in apigateway to populate httpMethod. - // +kubebuilder:validation:Optional - httpMethodSelector?: null | v1.#Selector @go(HTTPMethodSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // API resource ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Resource - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - resourceId?: null | string @go(ResourceID,*string) - - // Reference to a Resource in apigateway to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdRef?: null | v1.#Reference @go(ResourceIDRef,*v1.Reference) - - // Selector for a Resource in apigateway to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdSelector?: null | v1.#Selector @go(ResourceIDSelector,*v1.Selector) - - // Map of response parameters that can be read from the backend response. For example: response_parameters = { "method.response.header.X-Some-Header" = "integration.response.header.X-Some-Other-Header" }. - // +kubebuilder:validation:Optional - responseParameters?: {[string]: null | string} @go(ResponseParameters,map[string]*string) - - // Map of templates used to transform the integration response body. - // +kubebuilder:validation:Optional - responseTemplates?: {[string]: null | string} @go(ResponseTemplates,map[string]*string) - - // ID of the associated REST API. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) - - // Regular expression pattern used to choose an integration response based on the response from the backend. Omit configuring this to make the integration the default one. If the backend is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS backends, the HTTP status code is matched. - // +kubebuilder:validation:Optional - selectionPattern?: null | string @go(SelectionPattern,*string) - - // HTTP status code. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.MethodResponse - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("status_code",false) - // +kubebuilder:validation:Optional - statusCode?: null | string @go(StatusCode,*string) - - // Reference to a MethodResponse in apigateway to populate statusCode. - // +kubebuilder:validation:Optional - statusCodeRef?: null | v1.#Reference @go(StatusCodeRef,*v1.Reference) - - // Selector for a MethodResponse in apigateway to populate statusCode. - // +kubebuilder:validation:Optional - statusCodeSelector?: null | v1.#Selector @go(StatusCodeSelector,*v1.Selector) -} - -// IntegrationResponseSpec defines the desired state of IntegrationResponse -#IntegrationResponseSpec: { - v1.#ResourceSpec - forProvider: #IntegrationResponseParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IntegrationResponseInitParameters @go(InitProvider) -} - -// IntegrationResponseStatus defines the observed state of IntegrationResponse. -#IntegrationResponseStatus: { - v1.#ResourceStatus - atProvider?: #IntegrationResponseObservation @go(AtProvider) -} - -// IntegrationResponse is the Schema for the IntegrationResponses API. Provides an HTTP Method Integration Response for an API Gateway Resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#IntegrationResponse: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #IntegrationResponseSpec @go(Spec) - status?: #IntegrationResponseStatus @go(Status) -} - -// IntegrationResponseList contains a list of IntegrationResponses -#IntegrationResponseList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#IntegrationResponse] @go(Items,[]IntegrationResponse) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_method_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_method_types_go_gen.cue deleted file mode 100644 index 51a979e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_method_types_go_gen.cue +++ /dev/null @@ -1,210 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MethodInitParameters: { - // Specify if the method requires an API key - apiKeyRequired?: null | bool @go(APIKeyRequired,*bool) - - // Type of authorization used for the method (NONE, CUSTOM, AWS_IAM, COGNITO_USER_POOLS) - authorization?: null | string @go(Authorization,*string) - - // Authorization scopes used when the authorization is COGNITO_USER_POOLS - authorizationScopes?: [...null | string] @go(AuthorizationScopes,[]*string) - - // HTTP Method (GET, POST, PUT, DELETE, HEAD, OPTIONS, ANY) - httpMethod?: null | string @go(HTTPMethod,*string) - - // Function name that will be given to the method when generating an SDK through API Gateway. If omitted, API Gateway will generate a function name based on the resource path and HTTP verb. - operationName?: null | string @go(OperationName,*string) - - // Map of the API models used for the request's content type - // where key is the content type (e.g., application/json) - // and value is either Error, Empty (built-in models) or aws_api_gateway_model's name. - requestModels?: {[string]: null | string} @go(RequestModels,map[string]*string) - - // Map of request parameters (from the path, query string and headers) that should be passed to the integration. The boolean value indicates whether the parameter is required (true) or optional (false). - // For example: request_parameters = {"method.request.header.X-Some-Header" = true "method.request.querystring.some-query-param" = true} would define that the header X-Some-Header and the query string some-query-param must be provided in the request. - requestParameters?: {[string]: null | bool} @go(RequestParameters,map[string]*bool) - - // ID of a aws_api_gateway_request_validator - requestValidatorId?: null | string @go(RequestValidatorID,*string) -} - -#MethodObservation: { - // Specify if the method requires an API key - apiKeyRequired?: null | bool @go(APIKeyRequired,*bool) - - // Type of authorization used for the method (NONE, CUSTOM, AWS_IAM, COGNITO_USER_POOLS) - authorization?: null | string @go(Authorization,*string) - - // Authorization scopes used when the authorization is COGNITO_USER_POOLS - authorizationScopes?: [...null | string] @go(AuthorizationScopes,[]*string) - - // Authorizer id to be used when the authorization is CUSTOM or COGNITO_USER_POOLS - authorizerId?: null | string @go(AuthorizerID,*string) - - // HTTP Method (GET, POST, PUT, DELETE, HEAD, OPTIONS, ANY) - httpMethod?: null | string @go(HTTPMethod,*string) - id?: null | string @go(ID,*string) - - // Function name that will be given to the method when generating an SDK through API Gateway. If omitted, API Gateway will generate a function name based on the resource path and HTTP verb. - operationName?: null | string @go(OperationName,*string) - - // Map of the API models used for the request's content type - // where key is the content type (e.g., application/json) - // and value is either Error, Empty (built-in models) or aws_api_gateway_model's name. - requestModels?: {[string]: null | string} @go(RequestModels,map[string]*string) - - // Map of request parameters (from the path, query string and headers) that should be passed to the integration. The boolean value indicates whether the parameter is required (true) or optional (false). - // For example: request_parameters = {"method.request.header.X-Some-Header" = true "method.request.querystring.some-query-param" = true} would define that the header X-Some-Header and the query string some-query-param must be provided in the request. - requestParameters?: {[string]: null | bool} @go(RequestParameters,map[string]*bool) - - // ID of a aws_api_gateway_request_validator - requestValidatorId?: null | string @go(RequestValidatorID,*string) - - // API resource ID - resourceId?: null | string @go(ResourceID,*string) - - // ID of the associated REST API - restApiId?: null | string @go(RestAPIID,*string) -} - -#MethodParameters: { - // Specify if the method requires an API key - // +kubebuilder:validation:Optional - apiKeyRequired?: null | bool @go(APIKeyRequired,*bool) - - // Type of authorization used for the method (NONE, CUSTOM, AWS_IAM, COGNITO_USER_POOLS) - // +kubebuilder:validation:Optional - authorization?: null | string @go(Authorization,*string) - - // Authorization scopes used when the authorization is COGNITO_USER_POOLS - // +kubebuilder:validation:Optional - authorizationScopes?: [...null | string] @go(AuthorizationScopes,[]*string) - - // Authorizer id to be used when the authorization is CUSTOM or COGNITO_USER_POOLS - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Authorizer - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - authorizerId?: null | string @go(AuthorizerID,*string) - - // Reference to a Authorizer in apigateway to populate authorizerId. - // +kubebuilder:validation:Optional - authorizerIdRef?: null | v1.#Reference @go(AuthorizerIDRef,*v1.Reference) - - // Selector for a Authorizer in apigateway to populate authorizerId. - // +kubebuilder:validation:Optional - authorizerIdSelector?: null | v1.#Selector @go(AuthorizerIDSelector,*v1.Selector) - - // HTTP Method (GET, POST, PUT, DELETE, HEAD, OPTIONS, ANY) - // +kubebuilder:validation:Optional - httpMethod?: null | string @go(HTTPMethod,*string) - - // Function name that will be given to the method when generating an SDK through API Gateway. If omitted, API Gateway will generate a function name based on the resource path and HTTP verb. - // +kubebuilder:validation:Optional - operationName?: null | string @go(OperationName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Map of the API models used for the request's content type - // where key is the content type (e.g., application/json) - // and value is either Error, Empty (built-in models) or aws_api_gateway_model's name. - // +kubebuilder:validation:Optional - requestModels?: {[string]: null | string} @go(RequestModels,map[string]*string) - - // Map of request parameters (from the path, query string and headers) that should be passed to the integration. The boolean value indicates whether the parameter is required (true) or optional (false). - // For example: request_parameters = {"method.request.header.X-Some-Header" = true "method.request.querystring.some-query-param" = true} would define that the header X-Some-Header and the query string some-query-param must be provided in the request. - // +kubebuilder:validation:Optional - requestParameters?: {[string]: null | bool} @go(RequestParameters,map[string]*bool) - - // ID of a aws_api_gateway_request_validator - // +kubebuilder:validation:Optional - requestValidatorId?: null | string @go(RequestValidatorID,*string) - - // API resource ID - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Resource - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - resourceId?: null | string @go(ResourceID,*string) - - // Reference to a Resource in apigateway to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdRef?: null | v1.#Reference @go(ResourceIDRef,*v1.Reference) - - // Selector for a Resource in apigateway to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdSelector?: null | v1.#Selector @go(ResourceIDSelector,*v1.Selector) - - // ID of the associated REST API - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) -} - -// MethodSpec defines the desired state of Method -#MethodSpec: { - v1.#ResourceSpec - forProvider: #MethodParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MethodInitParameters @go(InitProvider) -} - -// MethodStatus defines the observed state of Method. -#MethodStatus: { - v1.#ResourceStatus - atProvider?: #MethodObservation @go(AtProvider) -} - -// Method is the Schema for the Methods API. Provides a HTTP Method for an API Gateway Resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Method: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.authorization) || (has(self.initProvider) && has(self.initProvider.authorization))",message="spec.forProvider.authorization is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.httpMethod) || (has(self.initProvider) && has(self.initProvider.httpMethod))",message="spec.forProvider.httpMethod is a required parameter" - spec: #MethodSpec @go(Spec) - status?: #MethodStatus @go(Status) -} - -// MethodList contains a list of Methods -#MethodList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Method] @go(Items,[]Method) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_methodresponse_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_methodresponse_types_go_gen.cue deleted file mode 100644 index a379839..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_methodresponse_types_go_gen.cue +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MethodResponseInitParameters: { - // Map of the API models used for the response's content type - responseModels?: {[string]: null | string} @go(ResponseModels,map[string]*string) - - // Map of response parameters that can be sent to the caller. - // For example: response_parameters = { "method.response.header.X-Some-Header" = true } - // would define that the header X-Some-Header can be provided on the response. - responseParameters?: {[string]: null | bool} @go(ResponseParameters,map[string]*bool) - - // HTTP status code - statusCode?: null | string @go(StatusCode,*string) -} - -#MethodResponseObservation: { - // HTTP Method (GET, POST, PUT, DELETE, HEAD, OPTIONS, ANY) - httpMethod?: null | string @go(HTTPMethod,*string) - id?: null | string @go(ID,*string) - - // API resource ID - resourceId?: null | string @go(ResourceID,*string) - - // Map of the API models used for the response's content type - responseModels?: {[string]: null | string} @go(ResponseModels,map[string]*string) - - // Map of response parameters that can be sent to the caller. - // For example: response_parameters = { "method.response.header.X-Some-Header" = true } - // would define that the header X-Some-Header can be provided on the response. - responseParameters?: {[string]: null | bool} @go(ResponseParameters,map[string]*bool) - - // ID of the associated REST API - restApiId?: null | string @go(RestAPIID,*string) - - // HTTP status code - statusCode?: null | string @go(StatusCode,*string) -} - -#MethodResponseParameters: { - // HTTP Method (GET, POST, PUT, DELETE, HEAD, OPTIONS, ANY) - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Method - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("http_method",false) - // +kubebuilder:validation:Optional - httpMethod?: null | string @go(HTTPMethod,*string) - - // Reference to a Method in apigateway to populate httpMethod. - // +kubebuilder:validation:Optional - httpMethodRef?: null | v1.#Reference @go(HTTPMethodRef,*v1.Reference) - - // Selector for a Method in apigateway to populate httpMethod. - // +kubebuilder:validation:Optional - httpMethodSelector?: null | v1.#Selector @go(HTTPMethodSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // API resource ID - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Resource - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - resourceId?: null | string @go(ResourceID,*string) - - // Reference to a Resource in apigateway to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdRef?: null | v1.#Reference @go(ResourceIDRef,*v1.Reference) - - // Selector for a Resource in apigateway to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdSelector?: null | v1.#Selector @go(ResourceIDSelector,*v1.Selector) - - // Map of the API models used for the response's content type - // +kubebuilder:validation:Optional - responseModels?: {[string]: null | string} @go(ResponseModels,map[string]*string) - - // Map of response parameters that can be sent to the caller. - // For example: response_parameters = { "method.response.header.X-Some-Header" = true } - // would define that the header X-Some-Header can be provided on the response. - // +kubebuilder:validation:Optional - responseParameters?: {[string]: null | bool} @go(ResponseParameters,map[string]*bool) - - // ID of the associated REST API - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) - - // HTTP status code - // +kubebuilder:validation:Optional - statusCode?: null | string @go(StatusCode,*string) -} - -// MethodResponseSpec defines the desired state of MethodResponse -#MethodResponseSpec: { - v1.#ResourceSpec - forProvider: #MethodResponseParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MethodResponseInitParameters @go(InitProvider) -} - -// MethodResponseStatus defines the observed state of MethodResponse. -#MethodResponseStatus: { - v1.#ResourceStatus - atProvider?: #MethodResponseObservation @go(AtProvider) -} - -// MethodResponse is the Schema for the MethodResponses API. Provides an HTTP Method Response for an API Gateway Resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MethodResponse: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.statusCode) || (has(self.initProvider) && has(self.initProvider.statusCode))",message="spec.forProvider.statusCode is a required parameter" - spec: #MethodResponseSpec @go(Spec) - status?: #MethodResponseStatus @go(Status) -} - -// MethodResponseList contains a list of MethodResponses -#MethodResponseList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MethodResponse] @go(Items,[]MethodResponse) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_methodsettings_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_methodsettings_types_go_gen.cue deleted file mode 100644 index 7e907d4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_methodsettings_types_go_gen.cue +++ /dev/null @@ -1,231 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MethodSettingsInitParameters: { - // Method path defined as {resource_path}/{http_method} for an individual method override, or */* for overriding all methods in the stage. Ensure to trim any leading forward slashes in the path (e.g., trimprefix(aws_api_gateway_resource.example.path, "/")). - methodPath?: null | string @go(MethodPath,*string) - - // Settings block, see below. - settings?: [...#SettingsInitParameters] @go(Settings,[]SettingsInitParameters) -} - -#MethodSettingsObservation: { - id?: null | string @go(ID,*string) - - // Method path defined as {resource_path}/{http_method} for an individual method override, or */* for overriding all methods in the stage. Ensure to trim any leading forward slashes in the path (e.g., trimprefix(aws_api_gateway_resource.example.path, "/")). - methodPath?: null | string @go(MethodPath,*string) - - // ID of the REST API - restApiId?: null | string @go(RestAPIID,*string) - - // Settings block, see below. - settings?: [...#SettingsObservation] @go(Settings,[]SettingsObservation) - - // Name of the stage - stageName?: null | string @go(StageName,*string) -} - -#MethodSettingsParameters: { - // Method path defined as {resource_path}/{http_method} for an individual method override, or */* for overriding all methods in the stage. Ensure to trim any leading forward slashes in the path (e.g., trimprefix(aws_api_gateway_resource.example.path, "/")). - // +kubebuilder:validation:Optional - methodPath?: null | string @go(MethodPath,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the REST API - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) - - // Settings block, see below. - // +kubebuilder:validation:Optional - settings?: [...#SettingsParameters] @go(Settings,[]SettingsParameters) - - // Name of the stage - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Stage - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("stage_name",false) - // +kubebuilder:validation:Optional - stageName?: null | string @go(StageName,*string) - - // Reference to a Stage in apigateway to populate stageName. - // +kubebuilder:validation:Optional - stageNameRef?: null | v1.#Reference @go(StageNameRef,*v1.Reference) - - // Selector for a Stage in apigateway to populate stageName. - // +kubebuilder:validation:Optional - stageNameSelector?: null | v1.#Selector @go(StageNameSelector,*v1.Selector) -} - -#SettingsInitParameters: { - // Whether the cached responses are encrypted. - cacheDataEncrypted?: null | bool @go(CacheDataEncrypted,*bool) - - // Time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. - cacheTtlInSeconds?: null | float64 @go(CacheTTLInSeconds,*float64) - - // Whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. - cachingEnabled?: null | bool @go(CachingEnabled,*bool) - - // Whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. - dataTraceEnabled?: null | bool @go(DataTraceEnabled,*bool) - - // Logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The available levels are OFF, ERROR, and INFO. - loggingLevel?: null | string @go(LoggingLevel,*string) - - // Whether Amazon CloudWatch metrics are enabled for this method. - metricsEnabled?: null | bool @go(MetricsEnabled,*bool) - - // Whether authorization is required for a cache invalidation request. - requireAuthorizationForCacheControl?: null | bool @go(RequireAuthorizationForCacheControl,*bool) - - // Throttling burst limit. Default: -1 (throttling disabled). - throttlingBurstLimit?: null | float64 @go(ThrottlingBurstLimit,*float64) - - // Throttling rate limit. Default: -1 (throttling disabled). - throttlingRateLimit?: null | float64 @go(ThrottlingRateLimit,*float64) - - // How to handle unauthorized requests for cache invalidation. The available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, SUCCEED_WITHOUT_RESPONSE_HEADER. - unauthorizedCacheControlHeaderStrategy?: null | string @go(UnauthorizedCacheControlHeaderStrategy,*string) -} - -#SettingsObservation: { - // Whether the cached responses are encrypted. - cacheDataEncrypted?: null | bool @go(CacheDataEncrypted,*bool) - - // Time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. - cacheTtlInSeconds?: null | float64 @go(CacheTTLInSeconds,*float64) - - // Whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. - cachingEnabled?: null | bool @go(CachingEnabled,*bool) - - // Whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. - dataTraceEnabled?: null | bool @go(DataTraceEnabled,*bool) - - // Logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The available levels are OFF, ERROR, and INFO. - loggingLevel?: null | string @go(LoggingLevel,*string) - - // Whether Amazon CloudWatch metrics are enabled for this method. - metricsEnabled?: null | bool @go(MetricsEnabled,*bool) - - // Whether authorization is required for a cache invalidation request. - requireAuthorizationForCacheControl?: null | bool @go(RequireAuthorizationForCacheControl,*bool) - - // Throttling burst limit. Default: -1 (throttling disabled). - throttlingBurstLimit?: null | float64 @go(ThrottlingBurstLimit,*float64) - - // Throttling rate limit. Default: -1 (throttling disabled). - throttlingRateLimit?: null | float64 @go(ThrottlingRateLimit,*float64) - - // How to handle unauthorized requests for cache invalidation. The available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, SUCCEED_WITHOUT_RESPONSE_HEADER. - unauthorizedCacheControlHeaderStrategy?: null | string @go(UnauthorizedCacheControlHeaderStrategy,*string) -} - -#SettingsParameters: { - // Whether the cached responses are encrypted. - // +kubebuilder:validation:Optional - cacheDataEncrypted?: null | bool @go(CacheDataEncrypted,*bool) - - // Time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. - // +kubebuilder:validation:Optional - cacheTtlInSeconds?: null | float64 @go(CacheTTLInSeconds,*float64) - - // Whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. - // +kubebuilder:validation:Optional - cachingEnabled?: null | bool @go(CachingEnabled,*bool) - - // Whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. - // +kubebuilder:validation:Optional - dataTraceEnabled?: null | bool @go(DataTraceEnabled,*bool) - - // Logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The available levels are OFF, ERROR, and INFO. - // +kubebuilder:validation:Optional - loggingLevel?: null | string @go(LoggingLevel,*string) - - // Whether Amazon CloudWatch metrics are enabled for this method. - // +kubebuilder:validation:Optional - metricsEnabled?: null | bool @go(MetricsEnabled,*bool) - - // Whether authorization is required for a cache invalidation request. - // +kubebuilder:validation:Optional - requireAuthorizationForCacheControl?: null | bool @go(RequireAuthorizationForCacheControl,*bool) - - // Throttling burst limit. Default: -1 (throttling disabled). - // +kubebuilder:validation:Optional - throttlingBurstLimit?: null | float64 @go(ThrottlingBurstLimit,*float64) - - // Throttling rate limit. Default: -1 (throttling disabled). - // +kubebuilder:validation:Optional - throttlingRateLimit?: null | float64 @go(ThrottlingRateLimit,*float64) - - // How to handle unauthorized requests for cache invalidation. The available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, SUCCEED_WITHOUT_RESPONSE_HEADER. - // +kubebuilder:validation:Optional - unauthorizedCacheControlHeaderStrategy?: null | string @go(UnauthorizedCacheControlHeaderStrategy,*string) -} - -// MethodSettingsSpec defines the desired state of MethodSettings -#MethodSettingsSpec: { - v1.#ResourceSpec - forProvider: #MethodSettingsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MethodSettingsInitParameters @go(InitProvider) -} - -// MethodSettingsStatus defines the observed state of MethodSettings. -#MethodSettingsStatus: { - v1.#ResourceStatus - atProvider?: #MethodSettingsObservation @go(AtProvider) -} - -// MethodSettings is the Schema for the MethodSettingss API. Manages API Gateway Stage Method Settings -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MethodSettings: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.methodPath) || (has(self.initProvider) && has(self.initProvider.methodPath))",message="spec.forProvider.methodPath is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.settings) || (has(self.initProvider) && has(self.initProvider.settings))",message="spec.forProvider.settings is a required parameter" - spec: #MethodSettingsSpec @go(Spec) - status?: #MethodSettingsStatus @go(Status) -} - -// MethodSettingsList contains a list of MethodSettingss -#MethodSettingsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MethodSettings] @go(Items,[]MethodSettings) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_model_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_model_types_go_gen.cue deleted file mode 100644 index beb657d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_model_types_go_gen.cue +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ModelInitParameters: { - // Content type of the model - contentType?: null | string @go(ContentType,*string) - - // Description of the model - description?: null | string @go(Description,*string) - - // Name of the model - name?: null | string @go(Name,*string) - - // Schema of the model in a JSON form - schema?: null | string @go(Schema,*string) -} - -#ModelObservation: { - // Content type of the model - contentType?: null | string @go(ContentType,*string) - - // Description of the model - description?: null | string @go(Description,*string) - - // ID of the model - id?: null | string @go(ID,*string) - - // Name of the model - name?: null | string @go(Name,*string) - - // ID of the associated REST API - restApiId?: null | string @go(RestAPIID,*string) - - // Schema of the model in a JSON form - schema?: null | string @go(Schema,*string) -} - -#ModelParameters: { - // Content type of the model - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Description of the model - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Name of the model - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the associated REST API - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) - - // Schema of the model in a JSON form - // +kubebuilder:validation:Optional - schema?: null | string @go(Schema,*string) -} - -// ModelSpec defines the desired state of Model -#ModelSpec: { - v1.#ResourceSpec - forProvider: #ModelParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ModelInitParameters @go(InitProvider) -} - -// ModelStatus defines the observed state of Model. -#ModelStatus: { - v1.#ResourceStatus - atProvider?: #ModelObservation @go(AtProvider) -} - -// Model is the Schema for the Models API. Provides a Model for a REST API Gateway. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Model: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.contentType) || (has(self.initProvider) && has(self.initProvider.contentType))",message="spec.forProvider.contentType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ModelSpec @go(Spec) - status?: #ModelStatus @go(Status) -} - -// ModelList contains a list of Models -#ModelList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Model] @go(Items,[]Model) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_requestvalidator_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_requestvalidator_types_go_gen.cue deleted file mode 100644 index a70e9cc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_requestvalidator_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RequestValidatorInitParameters: { - // Name of the request validator - name?: null | string @go(Name,*string) - - // Boolean whether to validate request body. Defaults to false. - validateRequestBody?: null | bool @go(ValidateRequestBody,*bool) - - // Boolean whether to validate request parameters. Defaults to false. - validateRequestParameters?: null | bool @go(ValidateRequestParameters,*bool) -} - -#RequestValidatorObservation: { - // Unique ID of the request validator - id?: null | string @go(ID,*string) - - // Name of the request validator - name?: null | string @go(Name,*string) - - // ID of the associated Rest API - restApiId?: null | string @go(RestAPIID,*string) - - // Boolean whether to validate request body. Defaults to false. - validateRequestBody?: null | bool @go(ValidateRequestBody,*bool) - - // Boolean whether to validate request parameters. Defaults to false. - validateRequestParameters?: null | bool @go(ValidateRequestParameters,*bool) -} - -#RequestValidatorParameters: { - // Name of the request validator - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the associated Rest API - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) - - // Boolean whether to validate request body. Defaults to false. - // +kubebuilder:validation:Optional - validateRequestBody?: null | bool @go(ValidateRequestBody,*bool) - - // Boolean whether to validate request parameters. Defaults to false. - // +kubebuilder:validation:Optional - validateRequestParameters?: null | bool @go(ValidateRequestParameters,*bool) -} - -// RequestValidatorSpec defines the desired state of RequestValidator -#RequestValidatorSpec: { - v1.#ResourceSpec - forProvider: #RequestValidatorParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RequestValidatorInitParameters @go(InitProvider) -} - -// RequestValidatorStatus defines the observed state of RequestValidator. -#RequestValidatorStatus: { - v1.#ResourceStatus - atProvider?: #RequestValidatorObservation @go(AtProvider) -} - -// RequestValidator is the Schema for the RequestValidators API. Manages an API Gateway Request Validator. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RequestValidator: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #RequestValidatorSpec @go(Spec) - status?: #RequestValidatorStatus @go(Status) -} - -// RequestValidatorList contains a list of RequestValidators -#RequestValidatorList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RequestValidator] @go(Items,[]RequestValidator) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_resource_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_resource_types_go_gen.cue deleted file mode 100644 index 527d8ab..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_resource_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourceInitParameters: { - // Last path segment of this API resource. - pathPart?: null | string @go(PathPart,*string) -} - -#ResourceObservation: { - // Resource's identifier. - id?: null | string @go(ID,*string) - - // ID of the parent API resource - parentId?: null | string @go(ParentID,*string) - - // Complete path for this API resource, including all parent paths. - path?: null | string @go(Path,*string) - - // Last path segment of this API resource. - pathPart?: null | string @go(PathPart,*string) - - // ID of the associated REST API - restApiId?: null | string @go(RestAPIID,*string) -} - -#ResourceParameters: { - // ID of the parent API resource - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("root_resource_id",true) - // +kubebuilder:validation:Optional - parentId?: null | string @go(ParentID,*string) - - // Reference to a RestAPI in apigateway to populate parentId. - // +kubebuilder:validation:Optional - parentIdRef?: null | v1.#Reference @go(ParentIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate parentId. - // +kubebuilder:validation:Optional - parentIdSelector?: null | v1.#Selector @go(ParentIDSelector,*v1.Selector) - - // Last path segment of this API resource. - // +kubebuilder:validation:Optional - pathPart?: null | string @go(PathPart,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the associated REST API - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) -} - -// ResourceSpec defines the desired state of Resource -#ResourceSpec: { - v1.#ResourceSpec - forProvider: #ResourceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourceInitParameters @go(InitProvider) -} - -// ResourceStatus defines the observed state of Resource. -#ResourceStatus: { - v1.#ResourceStatus - atProvider?: #ResourceObservation @go(AtProvider) -} - -// Resource is the Schema for the Resources API. Provides an API Gateway Resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Resource: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.pathPart) || (has(self.initProvider) && has(self.initProvider.pathPart))",message="spec.forProvider.pathPart is a required parameter" - spec: #ResourceSpec @go(Spec) - status?: #ResourceStatus @go(Status) -} - -// ResourceList contains a list of Resources -#ResourceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Resource] @go(Items,[]Resource) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_restapi_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_restapi_types_go_gen.cue deleted file mode 100644 index e5fca99..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_restapi_types_go_gen.cue +++ /dev/null @@ -1,237 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RestAPIEndpointConfigurationInitParameters: { - // List of endpoint types. This resource currently only supports managing a single value. Valid values: EDGE, REGIONAL or PRIVATE. If unspecified, defaults to EDGE. If set to PRIVATE recommend to set put_rest_api_mode = merge to not cause the endpoints and associated Route53 records to be deleted. Refer to the documentation for more information on the difference between edge-optimized and regional APIs. - types?: [...null | string] @go(Types,[]*string) - - // Set of VPC Endpoint identifiers. It is only supported for PRIVATE endpoint type. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-endpoint-configuration extension vpcEndpointIds property. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - vpcEndpointIds?: [...null | string] @go(VPCEndpointIds,[]*string) -} - -#RestAPIEndpointConfigurationObservation: { - // List of endpoint types. This resource currently only supports managing a single value. Valid values: EDGE, REGIONAL or PRIVATE. If unspecified, defaults to EDGE. If set to PRIVATE recommend to set put_rest_api_mode = merge to not cause the endpoints and associated Route53 records to be deleted. Refer to the documentation for more information on the difference between edge-optimized and regional APIs. - types?: [...null | string] @go(Types,[]*string) - - // Set of VPC Endpoint identifiers. It is only supported for PRIVATE endpoint type. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-endpoint-configuration extension vpcEndpointIds property. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - vpcEndpointIds?: [...null | string] @go(VPCEndpointIds,[]*string) -} - -#RestAPIEndpointConfigurationParameters: { - // List of endpoint types. This resource currently only supports managing a single value. Valid values: EDGE, REGIONAL or PRIVATE. If unspecified, defaults to EDGE. If set to PRIVATE recommend to set put_rest_api_mode = merge to not cause the endpoints and associated Route53 records to be deleted. Refer to the documentation for more information on the difference between edge-optimized and regional APIs. - // +kubebuilder:validation:Optional - types: [...null | string] @go(Types,[]*string) - - // Set of VPC Endpoint identifiers. It is only supported for PRIVATE endpoint type. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-endpoint-configuration extension vpcEndpointIds property. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - // +kubebuilder:validation:Optional - vpcEndpointIds?: [...null | string] @go(VPCEndpointIds,[]*string) -} - -#RestAPIInitParameters: { - // Source of the API key for requests. Valid values are HEADER (default) and AUTHORIZER. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-api-key-source extension. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - apiKeySource?: null | string @go(APIKeySource,*string) - - // List of binary media types supported by the REST API. By default, the REST API supports only UTF-8-encoded text payloads. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-binary-media-types extension. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - binaryMediaTypes?: [...null | string] @go(BinaryMediaTypes,[]*string) - - // OpenAPI specification that defines the set of routes and integrations to create as part of the REST API. This configuration, and any updates to it, will replace all REST API configuration except values overridden in this resource configuration and other resource updates applied after this resource but before any aws_api_gateway_deployment creation. More information about REST API OpenAPI support can be found in the API Gateway Developer Guide. - body?: null | string @go(Body,*string) - - // Description of the REST API. If importing an OpenAPI specification via the body argument, this corresponds to the info.description field. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - description?: null | string @go(Description,*string) - - // Whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint. Defaults to false. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-endpoint-configuration extension disableExecuteApiEndpoint property. If the argument value is true and is different than the OpenAPI value, the argument value will override the OpenAPI value. - disableExecuteApiEndpoint?: null | bool @go(DisableExecuteAPIEndpoint,*bool) - - // Configuration block defining API endpoint configuration including endpoint type. Defined below. - endpointConfiguration?: [...#RestAPIEndpointConfigurationInitParameters] @go(EndpointConfiguration,[]RestAPIEndpointConfigurationInitParameters) - - // Whether warnings while API Gateway is creating or updating the resource should return an error or not. Defaults to false - failOnWarnings?: null | bool @go(FailOnWarnings,*bool) - - // Minimum response size to compress for the REST API. Integer between -1 and 10485760 (10MB). Setting a value greater than -1 will enable compression, -1 disables compression (default). If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-minimum-compression-size extension. If the argument value (except -1) is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - minimumCompressionSize?: null | float64 @go(MinimumCompressionSize,*float64) - - // Name of the REST API. If importing an OpenAPI specification via the body argument, this corresponds to the info.title field. If the argument value is different than the OpenAPI value, the argument value will override the OpenAPI value. - name?: null | string @go(Name,*string) - - // Map of customizations for importing the specification in the body argument. For example, to exclude DocumentationParts from an imported API, set ignore equal to documentation. Additional documentation, including other parameters such as basepath, can be found in the API Gateway Developer Guide. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Mode of the PutRestApi operation when importing an OpenAPI specification via the body argument (create or update operation). Valid values are merge and overwrite. If unspecificed, defaults to overwrite (for backwards compatibility). This corresponds to the x-amazon-apigateway-put-integration-method extension. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - putRestApiMode?: null | string @go(PutRestAPIMode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RestAPIObservation: { - // Source of the API key for requests. Valid values are HEADER (default) and AUTHORIZER. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-api-key-source extension. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - apiKeySource?: null | string @go(APIKeySource,*string) - - // ARN - arn?: null | string @go(Arn,*string) - - // List of binary media types supported by the REST API. By default, the REST API supports only UTF-8-encoded text payloads. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-binary-media-types extension. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - binaryMediaTypes?: [...null | string] @go(BinaryMediaTypes,[]*string) - - // OpenAPI specification that defines the set of routes and integrations to create as part of the REST API. This configuration, and any updates to it, will replace all REST API configuration except values overridden in this resource configuration and other resource updates applied after this resource but before any aws_api_gateway_deployment creation. More information about REST API OpenAPI support can be found in the API Gateway Developer Guide. - body?: null | string @go(Body,*string) - - // Creation date of the REST API - createdDate?: null | string @go(CreatedDate,*string) - - // Description of the REST API. If importing an OpenAPI specification via the body argument, this corresponds to the info.description field. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - description?: null | string @go(Description,*string) - - // Whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint. Defaults to false. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-endpoint-configuration extension disableExecuteApiEndpoint property. If the argument value is true and is different than the OpenAPI value, the argument value will override the OpenAPI value. - disableExecuteApiEndpoint?: null | bool @go(DisableExecuteAPIEndpoint,*bool) - - // Configuration block defining API endpoint configuration including endpoint type. Defined below. - endpointConfiguration?: [...#RestAPIEndpointConfigurationObservation] @go(EndpointConfiguration,[]RestAPIEndpointConfigurationObservation) - - // Execution ARN part to be used in lambda_permission's source_arn - // when allowing API Gateway to invoke a Lambda function, - // e.g., arn:aws:execute-api:eu-west-2:123456789012:z4675bid1j, which can be concatenated with allowed stage, method and resource path. - executionArn?: null | string @go(ExecutionArn,*string) - - // Whether warnings while API Gateway is creating or updating the resource should return an error or not. Defaults to false - failOnWarnings?: null | bool @go(FailOnWarnings,*bool) - - // ID of the REST API - id?: null | string @go(ID,*string) - - // Minimum response size to compress for the REST API. Integer between -1 and 10485760 (10MB). Setting a value greater than -1 will enable compression, -1 disables compression (default). If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-minimum-compression-size extension. If the argument value (except -1) is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - minimumCompressionSize?: null | float64 @go(MinimumCompressionSize,*float64) - - // Name of the REST API. If importing an OpenAPI specification via the body argument, this corresponds to the info.title field. If the argument value is different than the OpenAPI value, the argument value will override the OpenAPI value. - name?: null | string @go(Name,*string) - - // Map of customizations for importing the specification in the body argument. For example, to exclude DocumentationParts from an imported API, set ignore equal to documentation. Additional documentation, including other parameters such as basepath, can be found in the API Gateway Developer Guide. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // JSON formatted policy document that controls access to the API Gateway. We recommend using the aws_api_gateway_rest_api_policy resource instead. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-policy extension. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - policy?: null | string @go(Policy,*string) - - // Mode of the PutRestApi operation when importing an OpenAPI specification via the body argument (create or update operation). Valid values are merge and overwrite. If unspecificed, defaults to overwrite (for backwards compatibility). This corresponds to the x-amazon-apigateway-put-integration-method extension. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - putRestApiMode?: null | string @go(PutRestAPIMode,*string) - - // Resource ID of the REST API's root - rootResourceId?: null | string @go(RootResourceID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RestAPIParameters: { - // Source of the API key for requests. Valid values are HEADER (default) and AUTHORIZER. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-api-key-source extension. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - // +kubebuilder:validation:Optional - apiKeySource?: null | string @go(APIKeySource,*string) - - // List of binary media types supported by the REST API. By default, the REST API supports only UTF-8-encoded text payloads. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-binary-media-types extension. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - // +kubebuilder:validation:Optional - binaryMediaTypes?: [...null | string] @go(BinaryMediaTypes,[]*string) - - // OpenAPI specification that defines the set of routes and integrations to create as part of the REST API. This configuration, and any updates to it, will replace all REST API configuration except values overridden in this resource configuration and other resource updates applied after this resource but before any aws_api_gateway_deployment creation. More information about REST API OpenAPI support can be found in the API Gateway Developer Guide. - // +kubebuilder:validation:Optional - body?: null | string @go(Body,*string) - - // Description of the REST API. If importing an OpenAPI specification via the body argument, this corresponds to the info.description field. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint. Defaults to false. If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-endpoint-configuration extension disableExecuteApiEndpoint property. If the argument value is true and is different than the OpenAPI value, the argument value will override the OpenAPI value. - // +kubebuilder:validation:Optional - disableExecuteApiEndpoint?: null | bool @go(DisableExecuteAPIEndpoint,*bool) - - // Configuration block defining API endpoint configuration including endpoint type. Defined below. - // +kubebuilder:validation:Optional - endpointConfiguration?: [...#RestAPIEndpointConfigurationParameters] @go(EndpointConfiguration,[]RestAPIEndpointConfigurationParameters) - - // Whether warnings while API Gateway is creating or updating the resource should return an error or not. Defaults to false - // +kubebuilder:validation:Optional - failOnWarnings?: null | bool @go(FailOnWarnings,*bool) - - // Minimum response size to compress for the REST API. Integer between -1 and 10485760 (10MB). Setting a value greater than -1 will enable compression, -1 disables compression (default). If importing an OpenAPI specification via the body argument, this corresponds to the x-amazon-apigateway-minimum-compression-size extension. If the argument value (except -1) is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - // +kubebuilder:validation:Optional - minimumCompressionSize?: null | float64 @go(MinimumCompressionSize,*float64) - - // Name of the REST API. If importing an OpenAPI specification via the body argument, this corresponds to the info.title field. If the argument value is different than the OpenAPI value, the argument value will override the OpenAPI value. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Map of customizations for importing the specification in the body argument. For example, to exclude DocumentationParts from an imported API, set ignore equal to documentation. Additional documentation, including other parameters such as basepath, can be found in the API Gateway Developer Guide. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Mode of the PutRestApi operation when importing an OpenAPI specification via the body argument (create or update operation). Valid values are merge and overwrite. If unspecificed, defaults to overwrite (for backwards compatibility). This corresponds to the x-amazon-apigateway-put-integration-method extension. If the argument value is provided and is different than the OpenAPI value, the argument value will override the OpenAPI value. - // +kubebuilder:validation:Optional - putRestApiMode?: null | string @go(PutRestAPIMode,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RestAPISpec defines the desired state of RestAPI -#RestAPISpec: { - v1.#ResourceSpec - forProvider: #RestAPIParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RestAPIInitParameters @go(InitProvider) -} - -// RestAPIStatus defines the observed state of RestAPI. -#RestAPIStatus: { - v1.#ResourceStatus - atProvider?: #RestAPIObservation @go(AtProvider) -} - -// RestAPI is the Schema for the RestAPIs API. Manages an API Gateway REST API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RestAPI: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #RestAPISpec @go(Spec) - status?: #RestAPIStatus @go(Status) -} - -// RestAPIList contains a list of RestAPIs -#RestAPIList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RestAPI] @go(Items,[]RestAPI) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_restapipolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_restapipolicy_types_go_gen.cue deleted file mode 100644 index be9103c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_restapipolicy_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RestAPIPolicyInitParameters: { - // JSON formatted policy document that controls access to the API Gateway - policy?: null | string @go(Policy,*string) -} - -#RestAPIPolicyObservation: { - // ID of the REST API - id?: null | string @go(ID,*string) - - // JSON formatted policy document that controls access to the API Gateway - policy?: null | string @go(Policy,*string) - - // ID of the REST API. - restApiId?: null | string @go(RestAPIID,*string) -} - -#RestAPIPolicyParameters: { - // JSON formatted policy document that controls access to the API Gateway - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the REST API. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) -} - -// RestAPIPolicySpec defines the desired state of RestAPIPolicy -#RestAPIPolicySpec: { - v1.#ResourceSpec - forProvider: #RestAPIPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RestAPIPolicyInitParameters @go(InitProvider) -} - -// RestAPIPolicyStatus defines the observed state of RestAPIPolicy. -#RestAPIPolicyStatus: { - v1.#ResourceStatus - atProvider?: #RestAPIPolicyObservation @go(AtProvider) -} - -// RestAPIPolicy is the Schema for the RestAPIPolicys API. Provides an API Gateway REST API Policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RestAPIPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #RestAPIPolicySpec @go(Spec) - status?: #RestAPIPolicyStatus @go(Status) -} - -// RestAPIPolicyList contains a list of RestAPIPolicys -#RestAPIPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RestAPIPolicy] @go(Items,[]RestAPIPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_stage_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_stage_types_go_gen.cue deleted file mode 100644 index 066a243..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_stage_types_go_gen.cue +++ /dev/null @@ -1,298 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessLogSettingsInitParameters: { - // ARN of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with amazon-apigateway-. Automatically removes trailing :* if present. - destinationArn?: null | string @go(DestinationArn,*string) - - // Formatting and values recorded in the logs. - // For more information on configuring the log format rules visit the AWS documentation - format?: null | string @go(Format,*string) -} - -#AccessLogSettingsObservation: { - // ARN of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with amazon-apigateway-. Automatically removes trailing :* if present. - destinationArn?: null | string @go(DestinationArn,*string) - - // Formatting and values recorded in the logs. - // For more information on configuring the log format rules visit the AWS documentation - format?: null | string @go(Format,*string) -} - -#AccessLogSettingsParameters: { - // ARN of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with amazon-apigateway-. Automatically removes trailing :* if present. - // +kubebuilder:validation:Optional - destinationArn?: null | string @go(DestinationArn,*string) - - // Formatting and values recorded in the logs. - // For more information on configuring the log format rules visit the AWS documentation - // +kubebuilder:validation:Optional - format?: null | string @go(Format,*string) -} - -#CanarySettingsInitParameters: { - // Percent 0.0 - 100.0 of traffic to divert to the canary deployment. - percentTraffic?: null | float64 @go(PercentTraffic,*float64) - - // Map of overridden stage variables (including new variables) for the canary deployment. - stageVariableOverrides?: {[string]: null | string} @go(StageVariableOverrides,map[string]*string) - - // Whether the canary deployment uses the stage cache. Defaults to false. - useStageCache?: null | bool @go(UseStageCache,*bool) -} - -#CanarySettingsObservation: { - // Percent 0.0 - 100.0 of traffic to divert to the canary deployment. - percentTraffic?: null | float64 @go(PercentTraffic,*float64) - - // Map of overridden stage variables (including new variables) for the canary deployment. - stageVariableOverrides?: {[string]: null | string} @go(StageVariableOverrides,map[string]*string) - - // Whether the canary deployment uses the stage cache. Defaults to false. - useStageCache?: null | bool @go(UseStageCache,*bool) -} - -#CanarySettingsParameters: { - // Percent 0.0 - 100.0 of traffic to divert to the canary deployment. - // +kubebuilder:validation:Optional - percentTraffic?: null | float64 @go(PercentTraffic,*float64) - - // Map of overridden stage variables (including new variables) for the canary deployment. - // +kubebuilder:validation:Optional - stageVariableOverrides?: {[string]: null | string} @go(StageVariableOverrides,map[string]*string) - - // Whether the canary deployment uses the stage cache. Defaults to false. - // +kubebuilder:validation:Optional - useStageCache?: null | bool @go(UseStageCache,*bool) -} - -#StageInitParameters: { - // Enables access logs for the API stage. See Access Log Settings below. - accessLogSettings?: [...#AccessLogSettingsInitParameters] @go(AccessLogSettings,[]AccessLogSettingsInitParameters) - - // Whether a cache cluster is enabled for the stage - cacheClusterEnabled?: null | bool @go(CacheClusterEnabled,*bool) - - // Size of the cache cluster for the stage, if enabled. Allowed values include 0.5, 1.6, 6.1, 13.5, 28.4, 58.2, 118 and 237. - cacheClusterSize?: null | string @go(CacheClusterSize,*string) - - // Configuration settings of a canary deployment. See Canary Settings below. - canarySettings?: [...#CanarySettingsInitParameters] @go(CanarySettings,[]CanarySettingsInitParameters) - - // Identifier of a client certificate for the stage. - clientCertificateId?: null | string @go(ClientCertificateID,*string) - - // Description of the stage. - description?: null | string @go(Description,*string) - - // Version of the associated API documentation - documentationVersion?: null | string @go(DocumentationVersion,*string) - - // Name of the stage - stageName?: null | string @go(StageName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map that defines the stage variables - variables?: {[string]: null | string} @go(Variables,map[string]*string) - - // Whether active tracing with X-ray is enabled. Defaults to false. - xrayTracingEnabled?: null | bool @go(XrayTracingEnabled,*bool) -} - -#StageObservation: { - // Enables access logs for the API stage. See Access Log Settings below. - accessLogSettings?: [...#AccessLogSettingsObservation] @go(AccessLogSettings,[]AccessLogSettingsObservation) - - // ARN - arn?: null | string @go(Arn,*string) - - // Whether a cache cluster is enabled for the stage - cacheClusterEnabled?: null | bool @go(CacheClusterEnabled,*bool) - - // Size of the cache cluster for the stage, if enabled. Allowed values include 0.5, 1.6, 6.1, 13.5, 28.4, 58.2, 118 and 237. - cacheClusterSize?: null | string @go(CacheClusterSize,*string) - - // Configuration settings of a canary deployment. See Canary Settings below. - canarySettings?: [...#CanarySettingsObservation] @go(CanarySettings,[]CanarySettingsObservation) - - // Identifier of a client certificate for the stage. - clientCertificateId?: null | string @go(ClientCertificateID,*string) - - // ID of the deployment that the stage points to - deploymentId?: null | string @go(DeploymentID,*string) - - // Description of the stage. - description?: null | string @go(Description,*string) - - // Version of the associated API documentation - documentationVersion?: null | string @go(DocumentationVersion,*string) - - // Execution ARN to be used in lambda_permission's source_arn - // when allowing API Gateway to invoke a Lambda function, - // e.g., arn:aws:execute-api:eu-west-2:123456789012:z4675bid1j/prod - executionArn?: null | string @go(ExecutionArn,*string) - - // ID of the stage - id?: null | string @go(ID,*string) - - // URL to invoke the API pointing to the stage, - // e.g., https://z4675bid1j.execute-api.eu-west-2.amazonaws.com/prod - invokeUrl?: null | string @go(InvokeURL,*string) - - // ID of the associated REST API - restApiId?: null | string @go(RestAPIID,*string) - - // Name of the stage - stageName?: null | string @go(StageName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Map that defines the stage variables - variables?: {[string]: null | string} @go(Variables,map[string]*string) - - // ARN of the WebAcl associated with the Stage. - webAclArn?: null | string @go(WebACLArn,*string) - - // Whether active tracing with X-ray is enabled. Defaults to false. - xrayTracingEnabled?: null | bool @go(XrayTracingEnabled,*bool) -} - -#StageParameters: { - // Enables access logs for the API stage. See Access Log Settings below. - // +kubebuilder:validation:Optional - accessLogSettings?: [...#AccessLogSettingsParameters] @go(AccessLogSettings,[]AccessLogSettingsParameters) - - // Whether a cache cluster is enabled for the stage - // +kubebuilder:validation:Optional - cacheClusterEnabled?: null | bool @go(CacheClusterEnabled,*bool) - - // Size of the cache cluster for the stage, if enabled. Allowed values include 0.5, 1.6, 6.1, 13.5, 28.4, 58.2, 118 and 237. - // +kubebuilder:validation:Optional - cacheClusterSize?: null | string @go(CacheClusterSize,*string) - - // Configuration settings of a canary deployment. See Canary Settings below. - // +kubebuilder:validation:Optional - canarySettings?: [...#CanarySettingsParameters] @go(CanarySettings,[]CanarySettingsParameters) - - // Identifier of a client certificate for the stage. - // +kubebuilder:validation:Optional - clientCertificateId?: null | string @go(ClientCertificateID,*string) - - // ID of the deployment that the stage points to - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Deployment - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - deploymentId?: null | string @go(DeploymentID,*string) - - // Reference to a Deployment in apigateway to populate deploymentId. - // +kubebuilder:validation:Optional - deploymentIdRef?: null | v1.#Reference @go(DeploymentIDRef,*v1.Reference) - - // Selector for a Deployment in apigateway to populate deploymentId. - // +kubebuilder:validation:Optional - deploymentIdSelector?: null | v1.#Selector @go(DeploymentIDSelector,*v1.Selector) - - // Description of the stage. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Version of the associated API documentation - // +kubebuilder:validation:Optional - documentationVersion?: null | string @go(DocumentationVersion,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the associated REST API - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - restApiId?: null | string @go(RestAPIID,*string) - - // Reference to a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdRef?: null | v1.#Reference @go(RestAPIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate restApiId. - // +kubebuilder:validation:Optional - restApiIdSelector?: null | v1.#Selector @go(RestAPIIDSelector,*v1.Selector) - - // Name of the stage - // +kubebuilder:validation:Optional - stageName?: null | string @go(StageName,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map that defines the stage variables - // +kubebuilder:validation:Optional - variables?: {[string]: null | string} @go(Variables,map[string]*string) - - // Whether active tracing with X-ray is enabled. Defaults to false. - // +kubebuilder:validation:Optional - xrayTracingEnabled?: null | bool @go(XrayTracingEnabled,*bool) -} - -// StageSpec defines the desired state of Stage -#StageSpec: { - v1.#ResourceSpec - forProvider: #StageParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StageInitParameters @go(InitProvider) -} - -// StageStatus defines the observed state of Stage. -#StageStatus: { - v1.#ResourceStatus - atProvider?: #StageObservation @go(AtProvider) -} - -// Stage is the Schema for the Stages API. Manages an API Gateway Stage. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Stage: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.stageName) || (has(self.initProvider) && has(self.initProvider.stageName))",message="spec.forProvider.stageName is a required parameter" - spec: #StageSpec @go(Spec) - status?: #StageStatus @go(Status) -} - -// StageList contains a list of Stages -#StageList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Stage] @go(Items,[]Stage) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_usageplan_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_usageplan_types_go_gen.cue deleted file mode 100644 index 5a9fe40..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_usageplan_types_go_gen.cue +++ /dev/null @@ -1,295 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#APIStagesInitParameters: { - // The throttling limits of the usage plan. - throttle?: [...#ThrottleInitParameters] @go(Throttle,[]ThrottleInitParameters) -} - -#APIStagesObservation: { - // API Id of the associated API stage in a usage plan. - apiId?: null | string @go(APIID,*string) - - // API stage name of the associated API stage in a usage plan. - stage?: null | string @go(Stage,*string) - - // The throttling limits of the usage plan. - throttle?: [...#ThrottleObservation] @go(Throttle,[]ThrottleObservation) -} - -#APIStagesParameters: { - // API Id of the associated API stage in a usage plan. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a RestAPI in apigateway to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a RestAPI in apigateway to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // API stage name of the associated API stage in a usage plan. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Stage - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("stage_name",false) - // +kubebuilder:validation:Optional - stage?: null | string @go(Stage,*string) - - // Reference to a Stage in apigateway to populate stage. - // +kubebuilder:validation:Optional - stageRef?: null | v1.#Reference @go(StageRef,*v1.Reference) - - // Selector for a Stage in apigateway to populate stage. - // +kubebuilder:validation:Optional - stageSelector?: null | v1.#Selector @go(StageSelector,*v1.Selector) - - // The throttling limits of the usage plan. - // +kubebuilder:validation:Optional - throttle?: [...#ThrottleParameters] @go(Throttle,[]ThrottleParameters) -} - -#QuotaSettingsInitParameters: { - // Maximum number of requests that can be made in a given time period. - limit?: null | float64 @go(Limit,*float64) - - // Number of requests subtracted from the given limit in the initial time period. - offset?: null | float64 @go(Offset,*float64) - - // Time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH". - period?: null | string @go(Period,*string) -} - -#QuotaSettingsObservation: { - // Maximum number of requests that can be made in a given time period. - limit?: null | float64 @go(Limit,*float64) - - // Number of requests subtracted from the given limit in the initial time period. - offset?: null | float64 @go(Offset,*float64) - - // Time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH". - period?: null | string @go(Period,*string) -} - -#QuotaSettingsParameters: { - // Maximum number of requests that can be made in a given time period. - // +kubebuilder:validation:Optional - limit?: null | float64 @go(Limit,*float64) - - // Number of requests subtracted from the given limit in the initial time period. - // +kubebuilder:validation:Optional - offset?: null | float64 @go(Offset,*float64) - - // Time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH". - // +kubebuilder:validation:Optional - period?: null | string @go(Period,*string) -} - -#ThrottleInitParameters: { - // The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity. - burstLimit?: null | float64 @go(BurstLimit,*float64) - - // Method to apply the throttle settings for. Specfiy the path and method, for example /test/GET. - path?: null | string @go(Path,*string) - - // The API request steady-state rate limit. - rateLimit?: null | float64 @go(RateLimit,*float64) -} - -#ThrottleObservation: { - // The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity. - burstLimit?: null | float64 @go(BurstLimit,*float64) - - // Method to apply the throttle settings for. Specfiy the path and method, for example /test/GET. - path?: null | string @go(Path,*string) - - // The API request steady-state rate limit. - rateLimit?: null | float64 @go(RateLimit,*float64) -} - -#ThrottleParameters: { - // The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity. - // +kubebuilder:validation:Optional - burstLimit?: null | float64 @go(BurstLimit,*float64) - - // Method to apply the throttle settings for. Specfiy the path and method, for example /test/GET. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // The API request steady-state rate limit. - // +kubebuilder:validation:Optional - rateLimit?: null | float64 @go(RateLimit,*float64) -} - -#UsagePlanInitParameters: { - // Associated API stages of the usage plan. - apiStages?: [...#APIStagesInitParameters] @go(APIStages,[]APIStagesInitParameters) - - // Description of a usage plan. - description?: null | string @go(Description,*string) - - // Name of the usage plan. - name?: null | string @go(Name,*string) - - // AWS Marketplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace. - productCode?: null | string @go(ProductCode,*string) - - // The quota settings of the usage plan. - quotaSettings?: [...#QuotaSettingsInitParameters] @go(QuotaSettings,[]QuotaSettingsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The throttling limits of the usage plan. - throttleSettings?: [...#UsagePlanThrottleSettingsInitParameters] @go(ThrottleSettings,[]UsagePlanThrottleSettingsInitParameters) -} - -#UsagePlanObservation: { - // Associated API stages of the usage plan. - apiStages?: [...#APIStagesObservation] @go(APIStages,[]APIStagesObservation) - - // ARN - arn?: null | string @go(Arn,*string) - - // Description of a usage plan. - description?: null | string @go(Description,*string) - - // ID of the API resource - id?: null | string @go(ID,*string) - - // Name of the usage plan. - name?: null | string @go(Name,*string) - - // AWS Marketplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace. - productCode?: null | string @go(ProductCode,*string) - - // The quota settings of the usage plan. - quotaSettings?: [...#QuotaSettingsObservation] @go(QuotaSettings,[]QuotaSettingsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The throttling limits of the usage plan. - throttleSettings?: [...#UsagePlanThrottleSettingsObservation] @go(ThrottleSettings,[]UsagePlanThrottleSettingsObservation) -} - -#UsagePlanParameters: { - // Associated API stages of the usage plan. - // +kubebuilder:validation:Optional - apiStages?: [...#APIStagesParameters] @go(APIStages,[]APIStagesParameters) - - // Description of a usage plan. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Name of the usage plan. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // AWS Marketplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace. - // +kubebuilder:validation:Optional - productCode?: null | string @go(ProductCode,*string) - - // The quota settings of the usage plan. - // +kubebuilder:validation:Optional - quotaSettings?: [...#QuotaSettingsParameters] @go(QuotaSettings,[]QuotaSettingsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The throttling limits of the usage plan. - // +kubebuilder:validation:Optional - throttleSettings?: [...#UsagePlanThrottleSettingsParameters] @go(ThrottleSettings,[]UsagePlanThrottleSettingsParameters) -} - -#UsagePlanThrottleSettingsInitParameters: { - // The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity. - burstLimit?: null | float64 @go(BurstLimit,*float64) - - // The API request steady-state rate limit. - rateLimit?: null | float64 @go(RateLimit,*float64) -} - -#UsagePlanThrottleSettingsObservation: { - // The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity. - burstLimit?: null | float64 @go(BurstLimit,*float64) - - // The API request steady-state rate limit. - rateLimit?: null | float64 @go(RateLimit,*float64) -} - -#UsagePlanThrottleSettingsParameters: { - // The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity. - // +kubebuilder:validation:Optional - burstLimit?: null | float64 @go(BurstLimit,*float64) - - // The API request steady-state rate limit. - // +kubebuilder:validation:Optional - rateLimit?: null | float64 @go(RateLimit,*float64) -} - -// UsagePlanSpec defines the desired state of UsagePlan -#UsagePlanSpec: { - v1.#ResourceSpec - forProvider: #UsagePlanParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UsagePlanInitParameters @go(InitProvider) -} - -// UsagePlanStatus defines the observed state of UsagePlan. -#UsagePlanStatus: { - v1.#ResourceStatus - atProvider?: #UsagePlanObservation @go(AtProvider) -} - -// UsagePlan is the Schema for the UsagePlans API. Provides an API Gateway Usage Plan. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UsagePlan: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #UsagePlanSpec @go(Spec) - status?: #UsagePlanStatus @go(Status) -} - -// UsagePlanList contains a list of UsagePlans -#UsagePlanList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UsagePlan] @go(Items,[]UsagePlan) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_usageplankey_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_usageplankey_types_go_gen.cue deleted file mode 100644 index 74c2235..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_usageplankey_types_go_gen.cue +++ /dev/null @@ -1,121 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UsagePlanKeyInitParameters: { - // Type of the API key resource. Currently, the valid key type is API_KEY. - keyType?: null | string @go(KeyType,*string) -} - -#UsagePlanKeyObservation: { - // ID of a usage plan key. - id?: null | string @go(ID,*string) - - // Identifier of the API key resource. - keyId?: null | string @go(KeyID,*string) - - // Type of the API key resource. Currently, the valid key type is API_KEY. - keyType?: null | string @go(KeyType,*string) - - // Name of a usage plan key. - name?: null | string @go(Name,*string) - - // Id of the usage plan resource representing to associate the key to. - usagePlanId?: null | string @go(UsagePlanID,*string) - - // Value of a usage plan key. - value?: null | string @go(Value,*string) -} - -#UsagePlanKeyParameters: { - // Identifier of the API key resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.APIKey - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - keyId?: null | string @go(KeyID,*string) - - // Reference to a APIKey in apigateway to populate keyId. - // +kubebuilder:validation:Optional - keyIdRef?: null | v1.#Reference @go(KeyIDRef,*v1.Reference) - - // Selector for a APIKey in apigateway to populate keyId. - // +kubebuilder:validation:Optional - keyIdSelector?: null | v1.#Selector @go(KeyIDSelector,*v1.Selector) - - // Type of the API key resource. Currently, the valid key type is API_KEY. - // +kubebuilder:validation:Optional - keyType?: null | string @go(KeyType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Id of the usage plan resource representing to associate the key to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.UsagePlan - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - usagePlanId?: null | string @go(UsagePlanID,*string) - - // Reference to a UsagePlan in apigateway to populate usagePlanId. - // +kubebuilder:validation:Optional - usagePlanIdRef?: null | v1.#Reference @go(UsagePlanIDRef,*v1.Reference) - - // Selector for a UsagePlan in apigateway to populate usagePlanId. - // +kubebuilder:validation:Optional - usagePlanIdSelector?: null | v1.#Selector @go(UsagePlanIDSelector,*v1.Selector) -} - -// UsagePlanKeySpec defines the desired state of UsagePlanKey -#UsagePlanKeySpec: { - v1.#ResourceSpec - forProvider: #UsagePlanKeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UsagePlanKeyInitParameters @go(InitProvider) -} - -// UsagePlanKeyStatus defines the observed state of UsagePlanKey. -#UsagePlanKeyStatus: { - v1.#ResourceStatus - atProvider?: #UsagePlanKeyObservation @go(AtProvider) -} - -// UsagePlanKey is the Schema for the UsagePlanKeys API. Provides an API Gateway Usage Plan Key. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UsagePlanKey: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.keyType) || (has(self.initProvider) && has(self.initProvider.keyType))",message="spec.forProvider.keyType is a required parameter" - spec: #UsagePlanKeySpec @go(Spec) - status?: #UsagePlanKeyStatus @go(Status) -} - -// UsagePlanKeyList contains a list of UsagePlanKeys -#UsagePlanKeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UsagePlanKey] @go(Items,[]UsagePlanKey) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_vpclink_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_vpclink_types_go_gen.cue deleted file mode 100644 index 0385027..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigateway/v1beta1/zz_vpclink_types_go_gen.cue +++ /dev/null @@ -1,125 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigateway/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCLinkInitParameters: { - // Description of the VPC link. - description?: null | string @go(Description,*string) - - // Name used to label and identify the VPC link. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VPCLinkObservation: { - arn?: null | string @go(Arn,*string) - - // Description of the VPC link. - description?: null | string @go(Description,*string) - - // Identifier of the VpcLink. - id?: null | string @go(ID,*string) - - // Name used to label and identify the VPC link. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // List of network load balancer arns in the VPC targeted by the VPC link. Currently AWS only supports 1 target. - targetArns?: [...null | string] @go(TargetArns,[]*string) -} - -#VPCLinkParameters: { - // Description of the VPC link. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Name used to label and identify the VPC link. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // References to LB in elbv2 to populate targetArns. - // +kubebuilder:validation:Optional - targetArnRefs?: [...v1.#Reference] @go(TargetArnRefs,[]v1.Reference) - - // Selector for a list of LB in elbv2 to populate targetArns. - // +kubebuilder:validation:Optional - targetArnSelector?: null | v1.#Selector @go(TargetArnSelector,*v1.Selector) - - // List of network load balancer arns in the VPC targeted by the VPC link. Currently AWS only supports 1 target. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elbv2/v1beta1.LB - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +crossplane:generate:reference:refFieldName=TargetArnRefs - // +crossplane:generate:reference:selectorFieldName=TargetArnSelector - // +kubebuilder:validation:Optional - targetArns?: [...null | string] @go(TargetArns,[]*string) -} - -// VPCLinkSpec defines the desired state of VPCLink -#VPCLinkSpec: { - v1.#ResourceSpec - forProvider: #VPCLinkParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCLinkInitParameters @go(InitProvider) -} - -// VPCLinkStatus defines the observed state of VPCLink. -#VPCLinkStatus: { - v1.#ResourceStatus - atProvider?: #VPCLinkObservation @go(AtProvider) -} - -// VPCLink is the Schema for the VPCLinks API. Provides an API Gateway VPC Link. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCLink: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #VPCLinkSpec @go(Spec) - status?: #VPCLinkStatus @go(Status) -} - -// VPCLinkList contains a list of VPCLinks -#VPCLinkList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCLink] @go(Items,[]VPCLink) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_api_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_api_types_go_gen.cue deleted file mode 100644 index 5f7c0ff..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_api_types_go_gen.cue +++ /dev/null @@ -1,313 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#APIInitParameters: { - // An API key selection expression. - // Valid values: $context.authorizer.usageIdentifierKey, $request.header.x-api-key. Defaults to $request.header.x-api-key. - // Applicable for WebSocket APIs. - apiKeySelectionExpression?: null | string @go(APIKeySelectionExpression,*string) - - // An OpenAPI specification that defines the set of routes and integrations to create as part of the HTTP APIs. Supported only for HTTP APIs. - body?: null | string @go(Body,*string) - - // Cross-origin resource sharing (CORS) configuration. Applicable for HTTP APIs. - corsConfiguration?: [...#CorsConfigurationInitParameters] @go(CorsConfiguration,[]CorsConfigurationInitParameters) - - // Part of quick create. Specifies any credentials required for the integration. Applicable for HTTP APIs. - credentialsArn?: null | string @go(CredentialsArn,*string) - - // Description of the API. Must be less than or equal to 1024 characters in length. - description?: null | string @go(Description,*string) - - // Whether clients can invoke the API by using the default execute-api endpoint. - // By default, clients can invoke the API with the default {api_id}.execute-api.{region}.amazonaws.com endpoint. - // To require that clients use a custom domain name to invoke the API, disable the default endpoint. - disableExecuteApiEndpoint?: null | bool @go(DisableExecuteAPIEndpoint,*bool) - - // Whether warnings should return an error while API Gateway is creating or updating the resource using an OpenAPI specification. Defaults to false. Applicable for HTTP APIs. - failOnWarnings?: null | bool @go(FailOnWarnings,*bool) - - // Name of the API. Must be less than or equal to 128 characters in length. - name?: null | string @go(Name,*string) - - // API protocol. Valid values: HTTP, WEBSOCKET. - protocolType?: null | string @go(ProtocolType,*string) - - // Part of quick create. Specifies any route key. Applicable for HTTP APIs. - routeKey?: null | string @go(RouteKey,*string) - - // The route selection expression for the API. - // Defaults to $request.method $request.path. - routeSelectionExpression?: null | string @go(RouteSelectionExpression,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. - // For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. - // The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Applicable for HTTP APIs. - target?: null | string @go(Target,*string) - - // Version identifier for the API. Must be between 1 and 64 characters in length. - version?: null | string @go(Version,*string) -} - -#APIObservation: { - // URI of the API, of the form https://{api-id}.execute-api.{region}.amazonaws.com for HTTP APIs and wss://{api-id}.execute-api.{region}.amazonaws.com for WebSocket APIs. - apiEndpoint?: null | string @go(APIEndpoint,*string) - - // An API key selection expression. - // Valid values: $context.authorizer.usageIdentifierKey, $request.header.x-api-key. Defaults to $request.header.x-api-key. - // Applicable for WebSocket APIs. - apiKeySelectionExpression?: null | string @go(APIKeySelectionExpression,*string) - - // ARN of the API. - arn?: null | string @go(Arn,*string) - - // An OpenAPI specification that defines the set of routes and integrations to create as part of the HTTP APIs. Supported only for HTTP APIs. - body?: null | string @go(Body,*string) - - // Cross-origin resource sharing (CORS) configuration. Applicable for HTTP APIs. - corsConfiguration?: [...#CorsConfigurationObservation] @go(CorsConfiguration,[]CorsConfigurationObservation) - - // Part of quick create. Specifies any credentials required for the integration. Applicable for HTTP APIs. - credentialsArn?: null | string @go(CredentialsArn,*string) - - // Description of the API. Must be less than or equal to 1024 characters in length. - description?: null | string @go(Description,*string) - - // Whether clients can invoke the API by using the default execute-api endpoint. - // By default, clients can invoke the API with the default {api_id}.execute-api.{region}.amazonaws.com endpoint. - // To require that clients use a custom domain name to invoke the API, disable the default endpoint. - disableExecuteApiEndpoint?: null | bool @go(DisableExecuteAPIEndpoint,*bool) - - // ARN prefix to be used in an aws_lambda_permission's source_arn attribute - // or in an aws_iam_policy to authorize access to the @connections API. - // See the Amazon API Gateway Developer Guide for details. - executionArn?: null | string @go(ExecutionArn,*string) - - // Whether warnings should return an error while API Gateway is creating or updating the resource using an OpenAPI specification. Defaults to false. Applicable for HTTP APIs. - failOnWarnings?: null | bool @go(FailOnWarnings,*bool) - - // API identifier. - id?: null | string @go(ID,*string) - - // Name of the API. Must be less than or equal to 128 characters in length. - name?: null | string @go(Name,*string) - - // API protocol. Valid values: HTTP, WEBSOCKET. - protocolType?: null | string @go(ProtocolType,*string) - - // Part of quick create. Specifies any route key. Applicable for HTTP APIs. - routeKey?: null | string @go(RouteKey,*string) - - // The route selection expression for the API. - // Defaults to $request.method $request.path. - routeSelectionExpression?: null | string @go(RouteSelectionExpression,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. - // For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. - // The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Applicable for HTTP APIs. - target?: null | string @go(Target,*string) - - // Version identifier for the API. Must be between 1 and 64 characters in length. - version?: null | string @go(Version,*string) -} - -#APIParameters: { - // An API key selection expression. - // Valid values: $context.authorizer.usageIdentifierKey, $request.header.x-api-key. Defaults to $request.header.x-api-key. - // Applicable for WebSocket APIs. - // +kubebuilder:validation:Optional - apiKeySelectionExpression?: null | string @go(APIKeySelectionExpression,*string) - - // An OpenAPI specification that defines the set of routes and integrations to create as part of the HTTP APIs. Supported only for HTTP APIs. - // +kubebuilder:validation:Optional - body?: null | string @go(Body,*string) - - // Cross-origin resource sharing (CORS) configuration. Applicable for HTTP APIs. - // +kubebuilder:validation:Optional - corsConfiguration?: [...#CorsConfigurationParameters] @go(CorsConfiguration,[]CorsConfigurationParameters) - - // Part of quick create. Specifies any credentials required for the integration. Applicable for HTTP APIs. - // +kubebuilder:validation:Optional - credentialsArn?: null | string @go(CredentialsArn,*string) - - // Description of the API. Must be less than or equal to 1024 characters in length. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether clients can invoke the API by using the default execute-api endpoint. - // By default, clients can invoke the API with the default {api_id}.execute-api.{region}.amazonaws.com endpoint. - // To require that clients use a custom domain name to invoke the API, disable the default endpoint. - // +kubebuilder:validation:Optional - disableExecuteApiEndpoint?: null | bool @go(DisableExecuteAPIEndpoint,*bool) - - // Whether warnings should return an error while API Gateway is creating or updating the resource using an OpenAPI specification. Defaults to false. Applicable for HTTP APIs. - // +kubebuilder:validation:Optional - failOnWarnings?: null | bool @go(FailOnWarnings,*bool) - - // Name of the API. Must be less than or equal to 128 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // API protocol. Valid values: HTTP, WEBSOCKET. - // +kubebuilder:validation:Optional - protocolType?: null | string @go(ProtocolType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Part of quick create. Specifies any route key. Applicable for HTTP APIs. - // +kubebuilder:validation:Optional - routeKey?: null | string @go(RouteKey,*string) - - // The route selection expression for the API. - // Defaults to $request.method $request.path. - // +kubebuilder:validation:Optional - routeSelectionExpression?: null | string @go(RouteSelectionExpression,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. - // For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. - // The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Applicable for HTTP APIs. - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) - - // Version identifier for the API. Must be between 1 and 64 characters in length. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#CorsConfigurationInitParameters: { - // Whether credentials are included in the CORS request. - allowCredentials?: null | bool @go(AllowCredentials,*bool) - - // Set of allowed HTTP headers. - allowHeaders?: [...null | string] @go(AllowHeaders,[]*string) - - // Set of allowed HTTP methods. - allowMethods?: [...null | string] @go(AllowMethods,[]*string) - - // Set of allowed origins. - allowOrigins?: [...null | string] @go(AllowOrigins,[]*string) - - // Set of exposed HTTP headers. - exposeHeaders?: [...null | string] @go(ExposeHeaders,[]*string) - - // Number of seconds that the browser should cache preflight request results. - maxAge?: null | float64 @go(MaxAge,*float64) -} - -#CorsConfigurationObservation: { - // Whether credentials are included in the CORS request. - allowCredentials?: null | bool @go(AllowCredentials,*bool) - - // Set of allowed HTTP headers. - allowHeaders?: [...null | string] @go(AllowHeaders,[]*string) - - // Set of allowed HTTP methods. - allowMethods?: [...null | string] @go(AllowMethods,[]*string) - - // Set of allowed origins. - allowOrigins?: [...null | string] @go(AllowOrigins,[]*string) - - // Set of exposed HTTP headers. - exposeHeaders?: [...null | string] @go(ExposeHeaders,[]*string) - - // Number of seconds that the browser should cache preflight request results. - maxAge?: null | float64 @go(MaxAge,*float64) -} - -#CorsConfigurationParameters: { - // Whether credentials are included in the CORS request. - // +kubebuilder:validation:Optional - allowCredentials?: null | bool @go(AllowCredentials,*bool) - - // Set of allowed HTTP headers. - // +kubebuilder:validation:Optional - allowHeaders?: [...null | string] @go(AllowHeaders,[]*string) - - // Set of allowed HTTP methods. - // +kubebuilder:validation:Optional - allowMethods?: [...null | string] @go(AllowMethods,[]*string) - - // Set of allowed origins. - // +kubebuilder:validation:Optional - allowOrigins?: [...null | string] @go(AllowOrigins,[]*string) - - // Set of exposed HTTP headers. - // +kubebuilder:validation:Optional - exposeHeaders?: [...null | string] @go(ExposeHeaders,[]*string) - - // Number of seconds that the browser should cache preflight request results. - // +kubebuilder:validation:Optional - maxAge?: null | float64 @go(MaxAge,*float64) -} - -// APISpec defines the desired state of API -#APISpec: { - v1.#ResourceSpec - forProvider: #APIParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #APIInitParameters @go(InitProvider) -} - -// APIStatus defines the observed state of API. -#APIStatus: { - v1.#ResourceStatus - atProvider?: #APIObservation @go(AtProvider) -} - -// API is the Schema for the APIs API. Manages an Amazon API Gateway Version 2 API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#API: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.protocolType) || (has(self.initProvider) && has(self.initProvider.protocolType))",message="spec.forProvider.protocolType is a required parameter" - spec: #APISpec @go(Spec) - status?: #APIStatus @go(Status) -} - -// APIList contains a list of APIs -#APIList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#API] @go(Items,[]API) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_apimapping_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_apimapping_types_go_gen.cue deleted file mode 100644 index 9bbef07..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_apimapping_types_go_gen.cue +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#APIMappingInitParameters: { - // The API mapping key. Refer to REST API, HTTP API or WebSocket API. - apiMappingKey?: null | string @go(APIMappingKey,*string) -} - -#APIMappingObservation: { - // API identifier. - apiId?: null | string @go(APIID,*string) - - // The API mapping key. Refer to REST API, HTTP API or WebSocket API. - apiMappingKey?: null | string @go(APIMappingKey,*string) - - // Domain name. Use the aws_apigatewayv2_domain_name resource to configure a domain name. - domainName?: null | string @go(DomainName,*string) - - // API mapping identifier. - id?: null | string @go(ID,*string) - - // API stage. Use the aws_apigatewayv2_stage resource to configure an API stage. - stage?: null | string @go(Stage,*string) -} - -#APIMappingParameters: { - // API identifier. - // +crossplane:generate:reference:type=API - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // The API mapping key. Refer to REST API, HTTP API or WebSocket API. - // +kubebuilder:validation:Optional - apiMappingKey?: null | string @go(APIMappingKey,*string) - - // Domain name. Use the aws_apigatewayv2_domain_name resource to configure a domain name. - // +crossplane:generate:reference:type=DomainName - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Reference to a DomainName to populate domainName. - // +kubebuilder:validation:Optional - domainNameRef?: null | v1.#Reference @go(DomainNameRef,*v1.Reference) - - // Selector for a DomainName to populate domainName. - // +kubebuilder:validation:Optional - domainNameSelector?: null | v1.#Selector @go(DomainNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // API stage. Use the aws_apigatewayv2_stage resource to configure an API stage. - // +crossplane:generate:reference:type=Stage - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - stage?: null | string @go(Stage,*string) - - // Reference to a Stage to populate stage. - // +kubebuilder:validation:Optional - stageRef?: null | v1.#Reference @go(StageRef,*v1.Reference) - - // Selector for a Stage to populate stage. - // +kubebuilder:validation:Optional - stageSelector?: null | v1.#Selector @go(StageSelector,*v1.Selector) -} - -// APIMappingSpec defines the desired state of APIMapping -#APIMappingSpec: { - v1.#ResourceSpec - forProvider: #APIMappingParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #APIMappingInitParameters @go(InitProvider) -} - -// APIMappingStatus defines the observed state of APIMapping. -#APIMappingStatus: { - v1.#ResourceStatus - atProvider?: #APIMappingObservation @go(AtProvider) -} - -// APIMapping is the Schema for the APIMappings API. Manages an Amazon API Gateway Version 2 API mapping. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#APIMapping: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #APIMappingSpec @go(Spec) - status?: #APIMappingStatus @go(Status) -} - -// APIMappingList contains a list of APIMappings -#APIMappingList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#APIMapping] @go(Items,[]APIMapping) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_authorizer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_authorizer_types_go_gen.cue deleted file mode 100644 index cae9cd1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_authorizer_types_go_gen.cue +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AuthorizerInitParameters: { - // Required credentials as an IAM role for API Gateway to invoke the authorizer. - // Supported only for REQUEST authorizers. - authorizerCredentialsArn?: null | string @go(AuthorizerCredentialsArn,*string) - - // Format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API Lambda authorizers. - // Valid values: 1.0, 2.0. - authorizerPayloadFormatVersion?: null | string @go(AuthorizerPayloadFormatVersion,*string) - - // Time to live (TTL) for cached authorizer results, in seconds. If it equals 0, authorization caching is disabled. - // If it is greater than 0, API Gateway caches authorizer responses. The maximum value is 3600, or 1 hour. Defaults to 300. - // Supported only for HTTP API Lambda authorizers. - authorizerResultTtlInSeconds?: null | float64 @go(AuthorizerResultTTLInSeconds,*float64) - - // Authorizer type. Valid values: JWT, REQUEST. - // Specify REQUEST for a Lambda function using incoming request parameters. - // For HTTP APIs, specify JWT to use JSON Web Tokens. - authorizerType?: null | string @go(AuthorizerType,*string) - - // Whether a Lambda authorizer returns a response in a simple format. If enabled, the Lambda authorizer can return a boolean value instead of an IAM policy. - // Supported only for HTTP APIs. - enableSimpleResponses?: null | bool @go(EnableSimpleResponses,*bool) - - // Identity sources for which authorization is requested. - // For REQUEST authorizers the value is a list of one or more mapping expressions of the specified request parameters. - // For JWT authorizers the single entry specifies where to extract the JSON Web Token (JWT) from inbound requests. - identitySources?: [...null | string] @go(IdentitySources,[]*string) - - // Configuration of a JWT authorizer. Required for the JWT authorizer type. - // Supported only for HTTP APIs. - jwtConfiguration?: [...#JwtConfigurationInitParameters] @go(JwtConfiguration,[]JwtConfigurationInitParameters) - - // Name of the authorizer. Must be between 1 and 128 characters in length. - name?: null | string @go(Name,*string) -} - -#AuthorizerObservation: { - // API identifier. - apiId?: null | string @go(APIID,*string) - - // Required credentials as an IAM role for API Gateway to invoke the authorizer. - // Supported only for REQUEST authorizers. - authorizerCredentialsArn?: null | string @go(AuthorizerCredentialsArn,*string) - - // Format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API Lambda authorizers. - // Valid values: 1.0, 2.0. - authorizerPayloadFormatVersion?: null | string @go(AuthorizerPayloadFormatVersion,*string) - - // Time to live (TTL) for cached authorizer results, in seconds. If it equals 0, authorization caching is disabled. - // If it is greater than 0, API Gateway caches authorizer responses. The maximum value is 3600, or 1 hour. Defaults to 300. - // Supported only for HTTP API Lambda authorizers. - authorizerResultTtlInSeconds?: null | float64 @go(AuthorizerResultTTLInSeconds,*float64) - - // Authorizer type. Valid values: JWT, REQUEST. - // Specify REQUEST for a Lambda function using incoming request parameters. - // For HTTP APIs, specify JWT to use JSON Web Tokens. - authorizerType?: null | string @go(AuthorizerType,*string) - - // Authorizer's Uniform Resource Identifier (URI). - // For REQUEST authorizers this must be a well-formed Lambda function URI, such as the invoke_arn attribute of the aws_lambda_function resource. - // Supported only for REQUEST authorizers. Must be between 1 and 2048 characters in length. - authorizerUri?: null | string @go(AuthorizerURI,*string) - - // Whether a Lambda authorizer returns a response in a simple format. If enabled, the Lambda authorizer can return a boolean value instead of an IAM policy. - // Supported only for HTTP APIs. - enableSimpleResponses?: null | bool @go(EnableSimpleResponses,*bool) - - // Authorizer identifier. - id?: null | string @go(ID,*string) - - // Identity sources for which authorization is requested. - // For REQUEST authorizers the value is a list of one or more mapping expressions of the specified request parameters. - // For JWT authorizers the single entry specifies where to extract the JSON Web Token (JWT) from inbound requests. - identitySources?: [...null | string] @go(IdentitySources,[]*string) - - // Configuration of a JWT authorizer. Required for the JWT authorizer type. - // Supported only for HTTP APIs. - jwtConfiguration?: [...#JwtConfigurationObservation] @go(JwtConfiguration,[]JwtConfigurationObservation) - - // Name of the authorizer. Must be between 1 and 128 characters in length. - name?: null | string @go(Name,*string) -} - -#AuthorizerParameters: { - // API identifier. - // +crossplane:generate:reference:type=API - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // Required credentials as an IAM role for API Gateway to invoke the authorizer. - // Supported only for REQUEST authorizers. - // +kubebuilder:validation:Optional - authorizerCredentialsArn?: null | string @go(AuthorizerCredentialsArn,*string) - - // Format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API Lambda authorizers. - // Valid values: 1.0, 2.0. - // +kubebuilder:validation:Optional - authorizerPayloadFormatVersion?: null | string @go(AuthorizerPayloadFormatVersion,*string) - - // Time to live (TTL) for cached authorizer results, in seconds. If it equals 0, authorization caching is disabled. - // If it is greater than 0, API Gateway caches authorizer responses. The maximum value is 3600, or 1 hour. Defaults to 300. - // Supported only for HTTP API Lambda authorizers. - // +kubebuilder:validation:Optional - authorizerResultTtlInSeconds?: null | float64 @go(AuthorizerResultTTLInSeconds,*float64) - - // Authorizer type. Valid values: JWT, REQUEST. - // Specify REQUEST for a Lambda function using incoming request parameters. - // For HTTP APIs, specify JWT to use JSON Web Tokens. - // +kubebuilder:validation:Optional - authorizerType?: null | string @go(AuthorizerType,*string) - - // Authorizer's Uniform Resource Identifier (URI). - // For REQUEST authorizers this must be a well-formed Lambda function URI, such as the invoke_arn attribute of the aws_lambda_function resource. - // Supported only for REQUEST authorizers. Must be between 1 and 2048 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/apis/lambda/v1beta1.LambdaFunctionInvokeARN() - // +kubebuilder:validation:Optional - authorizerUri?: null | string @go(AuthorizerURI,*string) - - // Reference to a Function in lambda to populate authorizerUri. - // +kubebuilder:validation:Optional - authorizerUriRef?: null | v1.#Reference @go(AuthorizerURIRef,*v1.Reference) - - // Selector for a Function in lambda to populate authorizerUri. - // +kubebuilder:validation:Optional - authorizerUriSelector?: null | v1.#Selector @go(AuthorizerURISelector,*v1.Selector) - - // Whether a Lambda authorizer returns a response in a simple format. If enabled, the Lambda authorizer can return a boolean value instead of an IAM policy. - // Supported only for HTTP APIs. - // +kubebuilder:validation:Optional - enableSimpleResponses?: null | bool @go(EnableSimpleResponses,*bool) - - // Identity sources for which authorization is requested. - // For REQUEST authorizers the value is a list of one or more mapping expressions of the specified request parameters. - // For JWT authorizers the single entry specifies where to extract the JSON Web Token (JWT) from inbound requests. - // +kubebuilder:validation:Optional - identitySources?: [...null | string] @go(IdentitySources,[]*string) - - // Configuration of a JWT authorizer. Required for the JWT authorizer type. - // Supported only for HTTP APIs. - // +kubebuilder:validation:Optional - jwtConfiguration?: [...#JwtConfigurationParameters] @go(JwtConfiguration,[]JwtConfigurationParameters) - - // Name of the authorizer. Must be between 1 and 128 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#JwtConfigurationInitParameters: { - // List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. - audience?: [...null | string] @go(Audience,[]*string) - - // Base domain of the identity provider that issues JSON Web Tokens, such as the endpoint attribute of the aws_cognito_user_pool resource. - issuer?: null | string @go(Issuer,*string) -} - -#JwtConfigurationObservation: { - // List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. - audience?: [...null | string] @go(Audience,[]*string) - - // Base domain of the identity provider that issues JSON Web Tokens, such as the endpoint attribute of the aws_cognito_user_pool resource. - issuer?: null | string @go(Issuer,*string) -} - -#JwtConfigurationParameters: { - // List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. - // +kubebuilder:validation:Optional - audience?: [...null | string] @go(Audience,[]*string) - - // Base domain of the identity provider that issues JSON Web Tokens, such as the endpoint attribute of the aws_cognito_user_pool resource. - // +kubebuilder:validation:Optional - issuer?: null | string @go(Issuer,*string) -} - -// AuthorizerSpec defines the desired state of Authorizer -#AuthorizerSpec: { - v1.#ResourceSpec - forProvider: #AuthorizerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AuthorizerInitParameters @go(InitProvider) -} - -// AuthorizerStatus defines the observed state of Authorizer. -#AuthorizerStatus: { - v1.#ResourceStatus - atProvider?: #AuthorizerObservation @go(AtProvider) -} - -// Authorizer is the Schema for the Authorizers API. Manages an Amazon API Gateway Version 2 authorizer. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Authorizer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.authorizerType) || (has(self.initProvider) && has(self.initProvider.authorizerType))",message="spec.forProvider.authorizerType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #AuthorizerSpec @go(Spec) - status?: #AuthorizerStatus @go(Status) -} - -// AuthorizerList contains a list of Authorizers -#AuthorizerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Authorizer] @go(Items,[]Authorizer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_deployment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_deployment_types_go_gen.cue deleted file mode 100644 index 66be2b3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_deployment_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DeploymentInitParameters: { - // Description for the deployment resource. Must be less than or equal to 1024 characters in length. - description?: null | string @go(Description,*string) -} - -#DeploymentObservation: { - // API identifier. - apiId?: null | string @go(APIID,*string) - - // Whether the deployment was automatically released. - autoDeployed?: null | bool @go(AutoDeployed,*bool) - - // Description for the deployment resource. Must be less than or equal to 1024 characters in length. - description?: null | string @go(Description,*string) - - // Deployment identifier. - id?: null | string @go(ID,*string) -} - -#DeploymentParameters: { - // API identifier. - // +crossplane:generate:reference:type=API - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // Description for the deployment resource. Must be less than or equal to 1024 characters in length. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DeploymentSpec defines the desired state of Deployment -#DeploymentSpec: { - v1.#ResourceSpec - forProvider: #DeploymentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DeploymentInitParameters @go(InitProvider) -} - -// DeploymentStatus defines the observed state of Deployment. -#DeploymentStatus: { - v1.#ResourceStatus - atProvider?: #DeploymentObservation @go(AtProvider) -} - -// Deployment is the Schema for the Deployments API. Manages an Amazon API Gateway Version 2 deployment. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Deployment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DeploymentSpec @go(Spec) - status?: #DeploymentStatus @go(Status) -} - -// DeploymentList contains a list of Deployments -#DeploymentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Deployment] @go(Items,[]Deployment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_domainname_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_domainname_types_go_gen.cue deleted file mode 100644 index 34b8c20..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_domainname_types_go_gen.cue +++ /dev/null @@ -1,195 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainNameConfigurationInitParameters: { - // Endpoint type. Valid values: REGIONAL. - endpointType?: null | string @go(EndpointType,*string) - - // ARN of the AWS-issued certificate used to validate custom domain ownership (when certificate_arn is issued via an ACM Private CA or mutual_tls_authentication is configured with an ACM-imported certificate.) - ownershipVerificationCertificateArn?: null | string @go(OwnershipVerificationCertificateArn,*string) - - // Transport Layer Security (TLS) version of the security policy for the domain name. Valid values: TLS_1_2. - securityPolicy?: null | string @go(SecurityPolicy,*string) -} - -#DomainNameConfigurationObservation: { - // ARN of an AWS-managed certificate that will be used by the endpoint for the domain name. AWS Certificate Manager is the only supported source. Use the aws_acm_certificate resource to configure an ACM certificate. - certificateArn?: null | string @go(CertificateArn,*string) - - // Endpoint type. Valid values: REGIONAL. - endpointType?: null | string @go(EndpointType,*string) - - // (Computed) Amazon Route 53 Hosted Zone ID of the endpoint. - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // ARN of the AWS-issued certificate used to validate custom domain ownership (when certificate_arn is issued via an ACM Private CA or mutual_tls_authentication is configured with an ACM-imported certificate.) - ownershipVerificationCertificateArn?: null | string @go(OwnershipVerificationCertificateArn,*string) - - // Transport Layer Security (TLS) version of the security policy for the domain name. Valid values: TLS_1_2. - securityPolicy?: null | string @go(SecurityPolicy,*string) - - // (Computed) Target domain name. - targetDomainName?: null | string @go(TargetDomainName,*string) -} - -#DomainNameConfigurationParameters: { - // ARN of an AWS-managed certificate that will be used by the endpoint for the domain name. AWS Certificate Manager is the only supported source. Use the aws_acm_certificate resource to configure an ACM certificate. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/acm/v1beta1.Certificate - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - certificateArn?: null | string @go(CertificateArn,*string) - - // Reference to a Certificate in acm to populate certificateArn. - // +kubebuilder:validation:Optional - certificateArnRef?: null | v1.#Reference @go(CertificateArnRef,*v1.Reference) - - // Selector for a Certificate in acm to populate certificateArn. - // +kubebuilder:validation:Optional - certificateArnSelector?: null | v1.#Selector @go(CertificateArnSelector,*v1.Selector) - - // Endpoint type. Valid values: REGIONAL. - // +kubebuilder:validation:Optional - endpointType?: null | string @go(EndpointType,*string) - - // ARN of the AWS-issued certificate used to validate custom domain ownership (when certificate_arn is issued via an ACM Private CA or mutual_tls_authentication is configured with an ACM-imported certificate.) - // +kubebuilder:validation:Optional - ownershipVerificationCertificateArn?: null | string @go(OwnershipVerificationCertificateArn,*string) - - // Transport Layer Security (TLS) version of the security policy for the domain name. Valid values: TLS_1_2. - // +kubebuilder:validation:Optional - securityPolicy?: null | string @go(SecurityPolicy,*string) -} - -#DomainNameInitParameters: { - // Domain name configuration. See below. - domainNameConfiguration?: [...#DomainNameConfigurationInitParameters] @go(DomainNameConfiguration,[]DomainNameConfigurationInitParameters) - - // Mutual TLS authentication configuration for the domain name. - mutualTlsAuthentication?: [...#MutualTLSAuthenticationInitParameters] @go(MutualTLSAuthentication,[]MutualTLSAuthenticationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DomainNameObservation: { - // API mapping selection expression for the domain name. - apiMappingSelectionExpression?: null | string @go(APIMappingSelectionExpression,*string) - - // ARN of the domain name. - arn?: null | string @go(Arn,*string) - - // Domain name configuration. See below. - domainNameConfiguration?: [...#DomainNameConfigurationObservation] @go(DomainNameConfiguration,[]DomainNameConfigurationObservation) - - // Domain name identifier. - id?: null | string @go(ID,*string) - - // Mutual TLS authentication configuration for the domain name. - mutualTlsAuthentication?: [...#MutualTLSAuthenticationObservation] @go(MutualTLSAuthentication,[]MutualTLSAuthenticationObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DomainNameParameters: { - // Domain name configuration. See below. - // +kubebuilder:validation:Optional - domainNameConfiguration?: [...#DomainNameConfigurationParameters] @go(DomainNameConfiguration,[]DomainNameConfigurationParameters) - - // Mutual TLS authentication configuration for the domain name. - // +kubebuilder:validation:Optional - mutualTlsAuthentication?: [...#MutualTLSAuthenticationParameters] @go(MutualTLSAuthentication,[]MutualTLSAuthenticationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#MutualTLSAuthenticationInitParameters: { - // Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. - truststoreUri?: null | string @go(TruststoreURI,*string) - - // Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket. - truststoreVersion?: null | string @go(TruststoreVersion,*string) -} - -#MutualTLSAuthenticationObservation: { - // Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. - truststoreUri?: null | string @go(TruststoreURI,*string) - - // Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket. - truststoreVersion?: null | string @go(TruststoreVersion,*string) -} - -#MutualTLSAuthenticationParameters: { - // Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. - // +kubebuilder:validation:Optional - truststoreUri?: null | string @go(TruststoreURI,*string) - - // Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket. - // +kubebuilder:validation:Optional - truststoreVersion?: null | string @go(TruststoreVersion,*string) -} - -// DomainNameSpec defines the desired state of DomainName -#DomainNameSpec: { - v1.#ResourceSpec - forProvider: #DomainNameParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainNameInitParameters @go(InitProvider) -} - -// DomainNameStatus defines the observed state of DomainName. -#DomainNameStatus: { - v1.#ResourceStatus - atProvider?: #DomainNameObservation @go(AtProvider) -} - -// DomainName is the Schema for the DomainNames API. Manages an Amazon API Gateway Version 2 domain name. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DomainName: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.domainNameConfiguration) || (has(self.initProvider) && has(self.initProvider.domainNameConfiguration))",message="spec.forProvider.domainNameConfiguration is a required parameter" - spec: #DomainNameSpec @go(Spec) - status?: #DomainNameStatus @go(Status) -} - -// DomainNameList contains a list of DomainNames -#DomainNameList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DomainName] @go(Items,[]DomainName) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 8517578..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=apigatewayv2.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "apigatewayv2.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_integration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_integration_types_go_gen.cue deleted file mode 100644 index 63cd0e1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_integration_types_go_gen.cue +++ /dev/null @@ -1,346 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IntegrationInitParameters: { - // Type of the network connection to the integration endpoint. Valid values: INTERNET, VPC_LINK. Default is INTERNET. - connectionType?: null | string @go(ConnectionType,*string) - - // How to handle response payload content type conversions. Valid values: CONVERT_TO_BINARY, CONVERT_TO_TEXT. Supported only for WebSocket APIs. - contentHandlingStrategy?: null | string @go(ContentHandlingStrategy,*string) - - // Description of the integration. - description?: null | string @go(Description,*string) - - // Integration's HTTP method. Must be specified if integration_type is not MOCK. - integrationMethod?: null | string @go(IntegrationMethod,*string) - - // AWS service action to invoke. Supported only for HTTP APIs when integration_type is AWS_PROXY. See the AWS service integration reference documentation for supported values. Must be between 1 and 128 characters in length. - integrationSubtype?: null | string @go(IntegrationSubtype,*string) - - // Integration type of an integration. - // Valid values: AWS (supported only for WebSocket APIs), AWS_PROXY, HTTP (supported only for WebSocket APIs), HTTP_PROXY, MOCK (supported only for WebSocket APIs). For an HTTP API private integration, use HTTP_PROXY. - integrationType?: null | string @go(IntegrationType,*string) - - // Pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the request_templates attribute. - // Valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, NEVER. Default is WHEN_NO_MATCH. Supported only for WebSocket APIs. - passthroughBehavior?: null | string @go(PassthroughBehavior,*string) - - // The format of the payload sent to an integration. Valid values: 1.0, 2.0. Default is 1.0. - payloadFormatVersion?: null | string @go(PayloadFormatVersion,*string) - - // For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. - // For HTTP APIs with a specified integration_subtype, a key-value map specifying parameters that are passed to AWS_PROXY integrations. - // For HTTP APIs without a specified integration_subtype, a key-value map specifying how to transform HTTP requests before sending them to the backend. - // See the Amazon API Gateway Developer Guide for details. - requestParameters?: {[string]: null | string} @go(RequestParameters,map[string]*string) - - // Map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. Supported only for WebSocket APIs. - requestTemplates?: {[string]: null | string} @go(RequestTemplates,map[string]*string) - - // Mappings to transform the HTTP response from a backend integration before returning the response to clients. Supported only for HTTP APIs. - responseParameters?: [...#ResponseParametersInitParameters] @go(ResponseParameters,[]ResponseParametersInitParameters) - - // TLS configuration for a private integration. Supported only for HTTP APIs. - tlsConfig?: [...#TLSConfigInitParameters] @go(TLSConfig,[]TLSConfigInitParameters) - - // The template selection expression for the integration. - templateSelectionExpression?: null | string @go(TemplateSelectionExpression,*string) - - // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. - // The default timeout is 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs. - timeoutMilliseconds?: null | float64 @go(TimeoutMilliseconds,*float64) -} - -#IntegrationObservation: { - // API identifier. - apiId?: null | string @go(APIID,*string) - - // ID of the VPC link for a private integration. Supported only for HTTP APIs. Must be between 1 and 1024 characters in length. - connectionId?: null | string @go(ConnectionID,*string) - - // Type of the network connection to the integration endpoint. Valid values: INTERNET, VPC_LINK. Default is INTERNET. - connectionType?: null | string @go(ConnectionType,*string) - - // How to handle response payload content type conversions. Valid values: CONVERT_TO_BINARY, CONVERT_TO_TEXT. Supported only for WebSocket APIs. - contentHandlingStrategy?: null | string @go(ContentHandlingStrategy,*string) - - // Credentials required for the integration, if any. - credentialsArn?: null | string @go(CredentialsArn,*string) - - // Description of the integration. - description?: null | string @go(Description,*string) - - // Integration identifier. - id?: null | string @go(ID,*string) - - // Integration's HTTP method. Must be specified if integration_type is not MOCK. - integrationMethod?: null | string @go(IntegrationMethod,*string) - - // The integration response selection expression for the integration. - integrationResponseSelectionExpression?: null | string @go(IntegrationResponseSelectionExpression,*string) - - // AWS service action to invoke. Supported only for HTTP APIs when integration_type is AWS_PROXY. See the AWS service integration reference documentation for supported values. Must be between 1 and 128 characters in length. - integrationSubtype?: null | string @go(IntegrationSubtype,*string) - - // Integration type of an integration. - // Valid values: AWS (supported only for WebSocket APIs), AWS_PROXY, HTTP (supported only for WebSocket APIs), HTTP_PROXY, MOCK (supported only for WebSocket APIs). For an HTTP API private integration, use HTTP_PROXY. - integrationType?: null | string @go(IntegrationType,*string) - - // URI of the Lambda function for a Lambda proxy integration, when integration_type is AWS_PROXY. - // For an HTTP integration, specify a fully-qualified URL. For an HTTP API private integration, specify the ARN of an Application Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map service. - integrationUri?: null | string @go(IntegrationURI,*string) - - // Pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the request_templates attribute. - // Valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, NEVER. Default is WHEN_NO_MATCH. Supported only for WebSocket APIs. - passthroughBehavior?: null | string @go(PassthroughBehavior,*string) - - // The format of the payload sent to an integration. Valid values: 1.0, 2.0. Default is 1.0. - payloadFormatVersion?: null | string @go(PayloadFormatVersion,*string) - - // For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. - // For HTTP APIs with a specified integration_subtype, a key-value map specifying parameters that are passed to AWS_PROXY integrations. - // For HTTP APIs without a specified integration_subtype, a key-value map specifying how to transform HTTP requests before sending them to the backend. - // See the Amazon API Gateway Developer Guide for details. - requestParameters?: {[string]: null | string} @go(RequestParameters,map[string]*string) - - // Map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. Supported only for WebSocket APIs. - requestTemplates?: {[string]: null | string} @go(RequestTemplates,map[string]*string) - - // Mappings to transform the HTTP response from a backend integration before returning the response to clients. Supported only for HTTP APIs. - responseParameters?: [...#ResponseParametersObservation] @go(ResponseParameters,[]ResponseParametersObservation) - - // TLS configuration for a private integration. Supported only for HTTP APIs. - tlsConfig?: [...#TLSConfigObservation] @go(TLSConfig,[]TLSConfigObservation) - - // The template selection expression for the integration. - templateSelectionExpression?: null | string @go(TemplateSelectionExpression,*string) - - // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. - // The default timeout is 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs. - timeoutMilliseconds?: null | float64 @go(TimeoutMilliseconds,*float64) -} - -#IntegrationParameters: { - // API identifier. - // +crossplane:generate:reference:type=API - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // ID of the VPC link for a private integration. Supported only for HTTP APIs. Must be between 1 and 1024 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1.VPCLink - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - connectionId?: null | string @go(ConnectionID,*string) - - // Reference to a VPCLink in apigatewayv2 to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdRef?: null | v1.#Reference @go(ConnectionIDRef,*v1.Reference) - - // Selector for a VPCLink in apigatewayv2 to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdSelector?: null | v1.#Selector @go(ConnectionIDSelector,*v1.Selector) - - // Type of the network connection to the integration endpoint. Valid values: INTERNET, VPC_LINK. Default is INTERNET. - // +kubebuilder:validation:Optional - connectionType?: null | string @go(ConnectionType,*string) - - // How to handle response payload content type conversions. Valid values: CONVERT_TO_BINARY, CONVERT_TO_TEXT. Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - contentHandlingStrategy?: null | string @go(ContentHandlingStrategy,*string) - - // Credentials required for the integration, if any. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - credentialsArn?: null | string @go(CredentialsArn,*string) - - // Reference to a Role in iam to populate credentialsArn. - // +kubebuilder:validation:Optional - credentialsArnRef?: null | v1.#Reference @go(CredentialsArnRef,*v1.Reference) - - // Selector for a Role in iam to populate credentialsArn. - // +kubebuilder:validation:Optional - credentialsArnSelector?: null | v1.#Selector @go(CredentialsArnSelector,*v1.Selector) - - // Description of the integration. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Integration's HTTP method. Must be specified if integration_type is not MOCK. - // +kubebuilder:validation:Optional - integrationMethod?: null | string @go(IntegrationMethod,*string) - - // AWS service action to invoke. Supported only for HTTP APIs when integration_type is AWS_PROXY. See the AWS service integration reference documentation for supported values. Must be between 1 and 128 characters in length. - // +kubebuilder:validation:Optional - integrationSubtype?: null | string @go(IntegrationSubtype,*string) - - // Integration type of an integration. - // Valid values: AWS (supported only for WebSocket APIs), AWS_PROXY, HTTP (supported only for WebSocket APIs), HTTP_PROXY, MOCK (supported only for WebSocket APIs). For an HTTP API private integration, use HTTP_PROXY. - // +kubebuilder:validation:Optional - integrationType?: null | string @go(IntegrationType,*string) - - // URI of the Lambda function for a Lambda proxy integration, when integration_type is AWS_PROXY. - // For an HTTP integration, specify a fully-qualified URL. For an HTTP API private integration, specify the ARN of an Application Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map service. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("invoke_arn",true) - // +kubebuilder:validation:Optional - integrationUri?: null | string @go(IntegrationURI,*string) - - // Reference to a Function in lambda to populate integrationUri. - // +kubebuilder:validation:Optional - integrationUriRef?: null | v1.#Reference @go(IntegrationURIRef,*v1.Reference) - - // Selector for a Function in lambda to populate integrationUri. - // +kubebuilder:validation:Optional - integrationUriSelector?: null | v1.#Selector @go(IntegrationURISelector,*v1.Selector) - - // Pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the request_templates attribute. - // Valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, NEVER. Default is WHEN_NO_MATCH. Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - passthroughBehavior?: null | string @go(PassthroughBehavior,*string) - - // The format of the payload sent to an integration. Valid values: 1.0, 2.0. Default is 1.0. - // +kubebuilder:validation:Optional - payloadFormatVersion?: null | string @go(PayloadFormatVersion,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. - // For HTTP APIs with a specified integration_subtype, a key-value map specifying parameters that are passed to AWS_PROXY integrations. - // For HTTP APIs without a specified integration_subtype, a key-value map specifying how to transform HTTP requests before sending them to the backend. - // See the Amazon API Gateway Developer Guide for details. - // +kubebuilder:validation:Optional - requestParameters?: {[string]: null | string} @go(RequestParameters,map[string]*string) - - // Map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - requestTemplates?: {[string]: null | string} @go(RequestTemplates,map[string]*string) - - // Mappings to transform the HTTP response from a backend integration before returning the response to clients. Supported only for HTTP APIs. - // +kubebuilder:validation:Optional - responseParameters?: [...#ResponseParametersParameters] @go(ResponseParameters,[]ResponseParametersParameters) - - // TLS configuration for a private integration. Supported only for HTTP APIs. - // +kubebuilder:validation:Optional - tlsConfig?: [...#TLSConfigParameters] @go(TLSConfig,[]TLSConfigParameters) - - // The template selection expression for the integration. - // +kubebuilder:validation:Optional - templateSelectionExpression?: null | string @go(TemplateSelectionExpression,*string) - - // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. - // The default timeout is 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs. - // +kubebuilder:validation:Optional - timeoutMilliseconds?: null | float64 @go(TimeoutMilliseconds,*float64) -} - -#ResponseParametersInitParameters: { - // Key-value map. The key of this map identifies the location of the request parameter to change, and how to change it. The corresponding value specifies the new data for the parameter. - // See the Amazon API Gateway Developer Guide for details. - mappings?: {[string]: null | string} @go(Mappings,map[string]*string) - - // HTTP status code in the range 200-599. - statusCode?: null | string @go(StatusCode,*string) -} - -#ResponseParametersObservation: { - // Key-value map. The key of this map identifies the location of the request parameter to change, and how to change it. The corresponding value specifies the new data for the parameter. - // See the Amazon API Gateway Developer Guide for details. - mappings?: {[string]: null | string} @go(Mappings,map[string]*string) - - // HTTP status code in the range 200-599. - statusCode?: null | string @go(StatusCode,*string) -} - -#ResponseParametersParameters: { - // Key-value map. The key of this map identifies the location of the request parameter to change, and how to change it. The corresponding value specifies the new data for the parameter. - // See the Amazon API Gateway Developer Guide for details. - // +kubebuilder:validation:Optional - mappings: {[string]: null | string} @go(Mappings,map[string]*string) - - // HTTP status code in the range 200-599. - // +kubebuilder:validation:Optional - statusCode?: null | string @go(StatusCode,*string) -} - -#TLSConfigInitParameters: { - // If you specify a server name, API Gateway uses it to verify the hostname on the integration's certificate. The server name is also included in the TLS handshake to support Server Name Indication (SNI) or virtual hosting. - serverNameToVerify?: null | string @go(ServerNameToVerify,*string) -} - -#TLSConfigObservation: { - // If you specify a server name, API Gateway uses it to verify the hostname on the integration's certificate. The server name is also included in the TLS handshake to support Server Name Indication (SNI) or virtual hosting. - serverNameToVerify?: null | string @go(ServerNameToVerify,*string) -} - -#TLSConfigParameters: { - // If you specify a server name, API Gateway uses it to verify the hostname on the integration's certificate. The server name is also included in the TLS handshake to support Server Name Indication (SNI) or virtual hosting. - // +kubebuilder:validation:Optional - serverNameToVerify?: null | string @go(ServerNameToVerify,*string) -} - -// IntegrationSpec defines the desired state of Integration -#IntegrationSpec: { - v1.#ResourceSpec - forProvider: #IntegrationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IntegrationInitParameters @go(InitProvider) -} - -// IntegrationStatus defines the observed state of Integration. -#IntegrationStatus: { - v1.#ResourceStatus - atProvider?: #IntegrationObservation @go(AtProvider) -} - -// Integration is the Schema for the Integrations API. Manages an Amazon API Gateway Version 2 integration. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Integration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.integrationType) || (has(self.initProvider) && has(self.initProvider.integrationType))",message="spec.forProvider.integrationType is a required parameter" - spec: #IntegrationSpec @go(Spec) - status?: #IntegrationStatus @go(Status) -} - -// IntegrationList contains a list of Integrations -#IntegrationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Integration] @go(Items,[]Integration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_integrationresponse_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_integrationresponse_types_go_gen.cue deleted file mode 100644 index fbaaab4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_integrationresponse_types_go_gen.cue +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IntegrationResponseInitParameters: { - // How to handle response payload content type conversions. Valid values: CONVERT_TO_BINARY, CONVERT_TO_TEXT. - contentHandlingStrategy?: null | string @go(ContentHandlingStrategy,*string) - - // Integration response key. - integrationResponseKey?: null | string @go(IntegrationResponseKey,*string) - - // Map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. - responseTemplates?: {[string]: null | string} @go(ResponseTemplates,map[string]*string) - - // The template selection expression for the integration response. - templateSelectionExpression?: null | string @go(TemplateSelectionExpression,*string) -} - -#IntegrationResponseObservation: { - // API identifier. - apiId?: null | string @go(APIID,*string) - - // How to handle response payload content type conversions. Valid values: CONVERT_TO_BINARY, CONVERT_TO_TEXT. - contentHandlingStrategy?: null | string @go(ContentHandlingStrategy,*string) - - // Integration response identifier. - id?: null | string @go(ID,*string) - - // Identifier of the aws_apigatewayv2_integration. - integrationId?: null | string @go(IntegrationID,*string) - - // Integration response key. - integrationResponseKey?: null | string @go(IntegrationResponseKey,*string) - - // Map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. - responseTemplates?: {[string]: null | string} @go(ResponseTemplates,map[string]*string) - - // The template selection expression for the integration response. - templateSelectionExpression?: null | string @go(TemplateSelectionExpression,*string) -} - -#IntegrationResponseParameters: { - // API identifier. - // +crossplane:generate:reference:type=API - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // How to handle response payload content type conversions. Valid values: CONVERT_TO_BINARY, CONVERT_TO_TEXT. - // +kubebuilder:validation:Optional - contentHandlingStrategy?: null | string @go(ContentHandlingStrategy,*string) - - // Identifier of the aws_apigatewayv2_integration. - // +crossplane:generate:reference:type=Integration - // +kubebuilder:validation:Optional - integrationId?: null | string @go(IntegrationID,*string) - - // Reference to a Integration to populate integrationId. - // +kubebuilder:validation:Optional - integrationIdRef?: null | v1.#Reference @go(IntegrationIDRef,*v1.Reference) - - // Selector for a Integration to populate integrationId. - // +kubebuilder:validation:Optional - integrationIdSelector?: null | v1.#Selector @go(IntegrationIDSelector,*v1.Selector) - - // Integration response key. - // +kubebuilder:validation:Optional - integrationResponseKey?: null | string @go(IntegrationResponseKey,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. - // +kubebuilder:validation:Optional - responseTemplates?: {[string]: null | string} @go(ResponseTemplates,map[string]*string) - - // The template selection expression for the integration response. - // +kubebuilder:validation:Optional - templateSelectionExpression?: null | string @go(TemplateSelectionExpression,*string) -} - -// IntegrationResponseSpec defines the desired state of IntegrationResponse -#IntegrationResponseSpec: { - v1.#ResourceSpec - forProvider: #IntegrationResponseParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IntegrationResponseInitParameters @go(InitProvider) -} - -// IntegrationResponseStatus defines the observed state of IntegrationResponse. -#IntegrationResponseStatus: { - v1.#ResourceStatus - atProvider?: #IntegrationResponseObservation @go(AtProvider) -} - -// IntegrationResponse is the Schema for the IntegrationResponses API. Manages an Amazon API Gateway Version 2 integration response. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#IntegrationResponse: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.integrationResponseKey) || (has(self.initProvider) && has(self.initProvider.integrationResponseKey))",message="spec.forProvider.integrationResponseKey is a required parameter" - spec: #IntegrationResponseSpec @go(Spec) - status?: #IntegrationResponseStatus @go(Status) -} - -// IntegrationResponseList contains a list of IntegrationResponses -#IntegrationResponseList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#IntegrationResponse] @go(Items,[]IntegrationResponse) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_model_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_model_types_go_gen.cue deleted file mode 100644 index 6b22c57..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_model_types_go_gen.cue +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ModelInitParameters: { - // The content-type for the model, for example, application/json. Must be between 1 and 256 characters in length. - contentType?: null | string @go(ContentType,*string) - - // Description of the model. Must be between 1 and 128 characters in length. - description?: null | string @go(Description,*string) - - // Name of the model. Must be alphanumeric. Must be between 1 and 128 characters in length. - name?: null | string @go(Name,*string) - - // Schema for the model. This should be a JSON schema draft 4 model. Must be less than or equal to 32768 characters in length. - schema?: null | string @go(Schema,*string) -} - -#ModelObservation: { - // API identifier. - apiId?: null | string @go(APIID,*string) - - // The content-type for the model, for example, application/json. Must be between 1 and 256 characters in length. - contentType?: null | string @go(ContentType,*string) - - // Description of the model. Must be between 1 and 128 characters in length. - description?: null | string @go(Description,*string) - - // Model identifier. - id?: null | string @go(ID,*string) - - // Name of the model. Must be alphanumeric. Must be between 1 and 128 characters in length. - name?: null | string @go(Name,*string) - - // Schema for the model. This should be a JSON schema draft 4 model. Must be less than or equal to 32768 characters in length. - schema?: null | string @go(Schema,*string) -} - -#ModelParameters: { - // API identifier. - // +crossplane:generate:reference:type=API - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // The content-type for the model, for example, application/json. Must be between 1 and 256 characters in length. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Description of the model. Must be between 1 and 128 characters in length. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Name of the model. Must be alphanumeric. Must be between 1 and 128 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Schema for the model. This should be a JSON schema draft 4 model. Must be less than or equal to 32768 characters in length. - // +kubebuilder:validation:Optional - schema?: null | string @go(Schema,*string) -} - -// ModelSpec defines the desired state of Model -#ModelSpec: { - v1.#ResourceSpec - forProvider: #ModelParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ModelInitParameters @go(InitProvider) -} - -// ModelStatus defines the observed state of Model. -#ModelStatus: { - v1.#ResourceStatus - atProvider?: #ModelObservation @go(AtProvider) -} - -// Model is the Schema for the Models API. Manages an Amazon API Gateway Version 2 model. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Model: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.contentType) || (has(self.initProvider) && has(self.initProvider.contentType))",message="spec.forProvider.contentType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.schema) || (has(self.initProvider) && has(self.initProvider.schema))",message="spec.forProvider.schema is a required parameter" - spec: #ModelSpec @go(Spec) - status?: #ModelStatus @go(Status) -} - -// ModelList contains a list of Models -#ModelList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Model] @go(Items,[]Model) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_route_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_route_types_go_gen.cue deleted file mode 100644 index 54d8f34..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_route_types_go_gen.cue +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RequestParameterInitParameters: { - // Request parameter key. This is a request data mapping parameter. - requestParameterKey?: null | string @go(RequestParameterKey,*string) - - // Boolean whether or not the parameter is required. - required?: null | bool @go(Required,*bool) -} - -#RequestParameterObservation: { - // Request parameter key. This is a request data mapping parameter. - requestParameterKey?: null | string @go(RequestParameterKey,*string) - - // Boolean whether or not the parameter is required. - required?: null | bool @go(Required,*bool) -} - -#RequestParameterParameters: { - // Request parameter key. This is a request data mapping parameter. - // +kubebuilder:validation:Optional - requestParameterKey?: null | string @go(RequestParameterKey,*string) - - // Boolean whether or not the parameter is required. - // +kubebuilder:validation:Optional - required?: null | bool @go(Required,*bool) -} - -#RouteInitParameters: { - // Boolean whether an API key is required for the route. Defaults to false. Supported only for WebSocket APIs. - apiKeyRequired?: null | bool @go(APIKeyRequired,*bool) - - // Authorization scopes supported by this route. The scopes are used with a JWT authorizer to authorize the method invocation. - authorizationScopes?: [...null | string] @go(AuthorizationScopes,[]*string) - - // Authorization type for the route. - // For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer. - // For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer. - // Defaults to NONE. - authorizationType?: null | string @go(AuthorizationType,*string) - - // The model selection expression for the route. Supported only for WebSocket APIs. - modelSelectionExpression?: null | string @go(ModelSelectionExpression,*string) - - // Operation name for the route. Must be between 1 and 64 characters in length. - operationName?: null | string @go(OperationName,*string) - - // Request models for the route. Supported only for WebSocket APIs. - requestModels?: {[string]: null | string} @go(RequestModels,map[string]*string) - - // Request parameters for the route. Supported only for WebSocket APIs. - requestParameter?: [...#RequestParameterInitParameters] @go(RequestParameter,[]RequestParameterInitParameters) - - // Route key for the route. For HTTP APIs, the route key can be either $default, or a combination of an HTTP method and resource path, for example, GET /pets. - routeKey?: null | string @go(RouteKey,*string) - - // The route response selection expression for the route. Supported only for WebSocket APIs. - routeResponseSelectionExpression?: null | string @go(RouteResponseSelectionExpression,*string) -} - -#RouteObservation: { - // API identifier. - apiId?: null | string @go(APIID,*string) - - // Boolean whether an API key is required for the route. Defaults to false. Supported only for WebSocket APIs. - apiKeyRequired?: null | bool @go(APIKeyRequired,*bool) - - // Authorization scopes supported by this route. The scopes are used with a JWT authorizer to authorize the method invocation. - authorizationScopes?: [...null | string] @go(AuthorizationScopes,[]*string) - - // Authorization type for the route. - // For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer. - // For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer. - // Defaults to NONE. - authorizationType?: null | string @go(AuthorizationType,*string) - - // Identifier of the aws_apigatewayv2_authorizer resource to be associated with this route. - authorizerId?: null | string @go(AuthorizerID,*string) - - // Route identifier. - id?: null | string @go(ID,*string) - - // The model selection expression for the route. Supported only for WebSocket APIs. - modelSelectionExpression?: null | string @go(ModelSelectionExpression,*string) - - // Operation name for the route. Must be between 1 and 64 characters in length. - operationName?: null | string @go(OperationName,*string) - - // Request models for the route. Supported only for WebSocket APIs. - requestModels?: {[string]: null | string} @go(RequestModels,map[string]*string) - - // Request parameters for the route. Supported only for WebSocket APIs. - requestParameter?: [...#RequestParameterObservation] @go(RequestParameter,[]RequestParameterObservation) - - // Route key for the route. For HTTP APIs, the route key can be either $default, or a combination of an HTTP method and resource path, for example, GET /pets. - routeKey?: null | string @go(RouteKey,*string) - - // The route response selection expression for the route. Supported only for WebSocket APIs. - routeResponseSelectionExpression?: null | string @go(RouteResponseSelectionExpression,*string) - - // Target for the route, of the form integrations/IntegrationID, where IntegrationID is the identifier of an aws_apigatewayv2_integration resource. - target?: null | string @go(Target,*string) -} - -#RouteParameters: { - // API identifier. - // +crossplane:generate:reference:type=API - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // Boolean whether an API key is required for the route. Defaults to false. Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - apiKeyRequired?: null | bool @go(APIKeyRequired,*bool) - - // Authorization scopes supported by this route. The scopes are used with a JWT authorizer to authorize the method invocation. - // +kubebuilder:validation:Optional - authorizationScopes?: [...null | string] @go(AuthorizationScopes,[]*string) - - // Authorization type for the route. - // For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer. - // For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer. - // Defaults to NONE. - // +kubebuilder:validation:Optional - authorizationType?: null | string @go(AuthorizationType,*string) - - // Identifier of the aws_apigatewayv2_authorizer resource to be associated with this route. - // +crossplane:generate:reference:type=Authorizer - // +kubebuilder:validation:Optional - authorizerId?: null | string @go(AuthorizerID,*string) - - // Reference to a Authorizer to populate authorizerId. - // +kubebuilder:validation:Optional - authorizerIdRef?: null | v1.#Reference @go(AuthorizerIDRef,*v1.Reference) - - // Selector for a Authorizer to populate authorizerId. - // +kubebuilder:validation:Optional - authorizerIdSelector?: null | v1.#Selector @go(AuthorizerIDSelector,*v1.Selector) - - // The model selection expression for the route. Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - modelSelectionExpression?: null | string @go(ModelSelectionExpression,*string) - - // Operation name for the route. Must be between 1 and 64 characters in length. - // +kubebuilder:validation:Optional - operationName?: null | string @go(OperationName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Request models for the route. Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - requestModels?: {[string]: null | string} @go(RequestModels,map[string]*string) - - // Request parameters for the route. Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - requestParameter?: [...#RequestParameterParameters] @go(RequestParameter,[]RequestParameterParameters) - - // Route key for the route. For HTTP APIs, the route key can be either $default, or a combination of an HTTP method and resource path, for example, GET /pets. - // +kubebuilder:validation:Optional - routeKey?: null | string @go(RouteKey,*string) - - // The route response selection expression for the route. Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - routeResponseSelectionExpression?: null | string @go(RouteResponseSelectionExpression,*string) - - // Target for the route, of the form integrations/IntegrationID, where IntegrationID is the identifier of an aws_apigatewayv2_integration resource. - // +crossplane:generate:reference:type=Integration - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1.IntegrationIDPrefixed() - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) - - // Reference to a Integration to populate target. - // +kubebuilder:validation:Optional - targetRef?: null | v1.#Reference @go(TargetRef,*v1.Reference) - - // Selector for a Integration to populate target. - // +kubebuilder:validation:Optional - targetSelector?: null | v1.#Selector @go(TargetSelector,*v1.Selector) -} - -// RouteSpec defines the desired state of Route -#RouteSpec: { - v1.#ResourceSpec - forProvider: #RouteParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RouteInitParameters @go(InitProvider) -} - -// RouteStatus defines the observed state of Route. -#RouteStatus: { - v1.#ResourceStatus - atProvider?: #RouteObservation @go(AtProvider) -} - -// Route is the Schema for the Routes API. Manages an Amazon API Gateway Version 2 route. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Route: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.routeKey) || (has(self.initProvider) && has(self.initProvider.routeKey))",message="spec.forProvider.routeKey is a required parameter" - spec: #RouteSpec @go(Spec) - status?: #RouteStatus @go(Status) -} - -// RouteList contains a list of Routes -#RouteList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Route] @go(Items,[]Route) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_routeresponse_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_routeresponse_types_go_gen.cue deleted file mode 100644 index 4ad7afb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_routeresponse_types_go_gen.cue +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RouteResponseInitParameters: { - // The model selection expression for the route response. - modelSelectionExpression?: null | string @go(ModelSelectionExpression,*string) - - // Response models for the route response. - responseModels?: {[string]: null | string} @go(ResponseModels,map[string]*string) - - // Route response key. - routeResponseKey?: null | string @go(RouteResponseKey,*string) -} - -#RouteResponseObservation: { - // API identifier. - apiId?: null | string @go(APIID,*string) - - // Route response identifier. - id?: null | string @go(ID,*string) - - // The model selection expression for the route response. - modelSelectionExpression?: null | string @go(ModelSelectionExpression,*string) - - // Response models for the route response. - responseModels?: {[string]: null | string} @go(ResponseModels,map[string]*string) - - // Identifier of the aws_apigatewayv2_route. - routeId?: null | string @go(RouteID,*string) - - // Route response key. - routeResponseKey?: null | string @go(RouteResponseKey,*string) -} - -#RouteResponseParameters: { - // API identifier. - // +crossplane:generate:reference:type=API - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // The model selection expression for the route response. - // +kubebuilder:validation:Optional - modelSelectionExpression?: null | string @go(ModelSelectionExpression,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Response models for the route response. - // +kubebuilder:validation:Optional - responseModels?: {[string]: null | string} @go(ResponseModels,map[string]*string) - - // Identifier of the aws_apigatewayv2_route. - // +crossplane:generate:reference:type=Route - // +kubebuilder:validation:Optional - routeId?: null | string @go(RouteID,*string) - - // Reference to a Route to populate routeId. - // +kubebuilder:validation:Optional - routeIdRef?: null | v1.#Reference @go(RouteIDRef,*v1.Reference) - - // Selector for a Route to populate routeId. - // +kubebuilder:validation:Optional - routeIdSelector?: null | v1.#Selector @go(RouteIDSelector,*v1.Selector) - - // Route response key. - // +kubebuilder:validation:Optional - routeResponseKey?: null | string @go(RouteResponseKey,*string) -} - -// RouteResponseSpec defines the desired state of RouteResponse -#RouteResponseSpec: { - v1.#ResourceSpec - forProvider: #RouteResponseParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RouteResponseInitParameters @go(InitProvider) -} - -// RouteResponseStatus defines the observed state of RouteResponse. -#RouteResponseStatus: { - v1.#ResourceStatus - atProvider?: #RouteResponseObservation @go(AtProvider) -} - -// RouteResponse is the Schema for the RouteResponses API. Manages an Amazon API Gateway Version 2 route response. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RouteResponse: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.routeResponseKey) || (has(self.initProvider) && has(self.initProvider.routeResponseKey))",message="spec.forProvider.routeResponseKey is a required parameter" - spec: #RouteResponseSpec @go(Spec) - status?: #RouteResponseStatus @go(Status) -} - -// RouteResponseList contains a list of RouteResponses -#RouteResponseList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RouteResponse] @go(Items,[]RouteResponse) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_stage_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_stage_types_go_gen.cue deleted file mode 100644 index 2692813..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_stage_types_go_gen.cue +++ /dev/null @@ -1,362 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessLogSettingsInitParameters: { - // ARN of the CloudWatch Logs log group to receive access logs. Any trailing :* is trimmed from the ARN. - destinationArn?: null | string @go(DestinationArn,*string) - - // Single line format of the access logs of data. Refer to log settings for HTTP or Websocket. - format?: null | string @go(Format,*string) -} - -#AccessLogSettingsObservation: { - // ARN of the CloudWatch Logs log group to receive access logs. Any trailing :* is trimmed from the ARN. - destinationArn?: null | string @go(DestinationArn,*string) - - // Single line format of the access logs of data. Refer to log settings for HTTP or Websocket. - format?: null | string @go(Format,*string) -} - -#AccessLogSettingsParameters: { - // ARN of the CloudWatch Logs log group to receive access logs. Any trailing :* is trimmed from the ARN. - // +kubebuilder:validation:Optional - destinationArn?: null | string @go(DestinationArn,*string) - - // Single line format of the access logs of data. Refer to log settings for HTTP or Websocket. - // +kubebuilder:validation:Optional - format?: null | string @go(Format,*string) -} - -#DefaultRouteSettingsInitParameters: { - // Whether data trace logging is enabled for the default route. Affects the log entries pushed to Amazon CloudWatch Logs. - // Defaults to false. Supported only for WebSocket APIs. - dataTraceEnabled?: null | bool @go(DataTraceEnabled,*bool) - - // Whether detailed metrics are enabled for the default route. Defaults to false. - detailedMetricsEnabled?: null | bool @go(DetailedMetricsEnabled,*bool) - - // Logging level for the default route. Affects the log entries pushed to Amazon CloudWatch Logs. - // Valid values: ERROR, INFO, OFF. Defaults to OFF. Supported only for WebSocket APIs. - loggingLevel?: null | string @go(LoggingLevel,*string) - - // Throttling burst limit for the default route. - throttlingBurstLimit?: null | float64 @go(ThrottlingBurstLimit,*float64) - - // Throttling rate limit for the default route. - throttlingRateLimit?: null | float64 @go(ThrottlingRateLimit,*float64) -} - -#DefaultRouteSettingsObservation: { - // Whether data trace logging is enabled for the default route. Affects the log entries pushed to Amazon CloudWatch Logs. - // Defaults to false. Supported only for WebSocket APIs. - dataTraceEnabled?: null | bool @go(DataTraceEnabled,*bool) - - // Whether detailed metrics are enabled for the default route. Defaults to false. - detailedMetricsEnabled?: null | bool @go(DetailedMetricsEnabled,*bool) - - // Logging level for the default route. Affects the log entries pushed to Amazon CloudWatch Logs. - // Valid values: ERROR, INFO, OFF. Defaults to OFF. Supported only for WebSocket APIs. - loggingLevel?: null | string @go(LoggingLevel,*string) - - // Throttling burst limit for the default route. - throttlingBurstLimit?: null | float64 @go(ThrottlingBurstLimit,*float64) - - // Throttling rate limit for the default route. - throttlingRateLimit?: null | float64 @go(ThrottlingRateLimit,*float64) -} - -#DefaultRouteSettingsParameters: { - // Whether data trace logging is enabled for the default route. Affects the log entries pushed to Amazon CloudWatch Logs. - // Defaults to false. Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - dataTraceEnabled?: null | bool @go(DataTraceEnabled,*bool) - - // Whether detailed metrics are enabled for the default route. Defaults to false. - // +kubebuilder:validation:Optional - detailedMetricsEnabled?: null | bool @go(DetailedMetricsEnabled,*bool) - - // Logging level for the default route. Affects the log entries pushed to Amazon CloudWatch Logs. - // Valid values: ERROR, INFO, OFF. Defaults to OFF. Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - loggingLevel?: null | string @go(LoggingLevel,*string) - - // Throttling burst limit for the default route. - // +kubebuilder:validation:Optional - throttlingBurstLimit?: null | float64 @go(ThrottlingBurstLimit,*float64) - - // Throttling rate limit for the default route. - // +kubebuilder:validation:Optional - throttlingRateLimit?: null | float64 @go(ThrottlingRateLimit,*float64) -} - -#RouteSettingsInitParameters: { - // Whether data trace logging is enabled for the route. Affects the log entries pushed to Amazon CloudWatch Logs. - // Defaults to false. Supported only for WebSocket APIs. - dataTraceEnabled?: null | bool @go(DataTraceEnabled,*bool) - - // Whether detailed metrics are enabled for the route. Defaults to false. - detailedMetricsEnabled?: null | bool @go(DetailedMetricsEnabled,*bool) - - // Logging level for the route. Affects the log entries pushed to Amazon CloudWatch Logs. - // Valid values: ERROR, INFO, OFF. Defaults to OFF. Supported only for WebSocket APIs. - loggingLevel?: null | string @go(LoggingLevel,*string) - - // Route key. - routeKey?: null | string @go(RouteKey,*string) - - // Throttling burst limit for the route. - throttlingBurstLimit?: null | float64 @go(ThrottlingBurstLimit,*float64) - - // Throttling rate limit for the route. - throttlingRateLimit?: null | float64 @go(ThrottlingRateLimit,*float64) -} - -#RouteSettingsObservation: { - // Whether data trace logging is enabled for the route. Affects the log entries pushed to Amazon CloudWatch Logs. - // Defaults to false. Supported only for WebSocket APIs. - dataTraceEnabled?: null | bool @go(DataTraceEnabled,*bool) - - // Whether detailed metrics are enabled for the route. Defaults to false. - detailedMetricsEnabled?: null | bool @go(DetailedMetricsEnabled,*bool) - - // Logging level for the route. Affects the log entries pushed to Amazon CloudWatch Logs. - // Valid values: ERROR, INFO, OFF. Defaults to OFF. Supported only for WebSocket APIs. - loggingLevel?: null | string @go(LoggingLevel,*string) - - // Route key. - routeKey?: null | string @go(RouteKey,*string) - - // Throttling burst limit for the route. - throttlingBurstLimit?: null | float64 @go(ThrottlingBurstLimit,*float64) - - // Throttling rate limit for the route. - throttlingRateLimit?: null | float64 @go(ThrottlingRateLimit,*float64) -} - -#RouteSettingsParameters: { - // Whether data trace logging is enabled for the route. Affects the log entries pushed to Amazon CloudWatch Logs. - // Defaults to false. Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - dataTraceEnabled?: null | bool @go(DataTraceEnabled,*bool) - - // Whether detailed metrics are enabled for the route. Defaults to false. - // +kubebuilder:validation:Optional - detailedMetricsEnabled?: null | bool @go(DetailedMetricsEnabled,*bool) - - // Logging level for the route. Affects the log entries pushed to Amazon CloudWatch Logs. - // Valid values: ERROR, INFO, OFF. Defaults to OFF. Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - loggingLevel?: null | string @go(LoggingLevel,*string) - - // Route key. - // +kubebuilder:validation:Optional - routeKey?: null | string @go(RouteKey,*string) - - // Throttling burst limit for the route. - // +kubebuilder:validation:Optional - throttlingBurstLimit?: null | float64 @go(ThrottlingBurstLimit,*float64) - - // Throttling rate limit for the route. - // +kubebuilder:validation:Optional - throttlingRateLimit?: null | float64 @go(ThrottlingRateLimit,*float64) -} - -#StageInitParameters: { - // Settings for logging access in this stage. - // Use the aws_api_gateway_account resource to configure permissions for CloudWatch Logging. - accessLogSettings?: [...#AccessLogSettingsInitParameters] @go(AccessLogSettings,[]AccessLogSettingsInitParameters) - - // Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs. - autoDeploy?: null | bool @go(AutoDeploy,*bool) - - // Identifier of a client certificate for the stage. Use the aws_api_gateway_client_certificate resource to configure a client certificate. - // Supported only for WebSocket APIs. - clientCertificateId?: null | string @go(ClientCertificateID,*string) - - // Default route settings for the stage. - defaultRouteSettings?: [...#DefaultRouteSettingsInitParameters] @go(DefaultRouteSettings,[]DefaultRouteSettingsInitParameters) - - // Description for the stage. Must be less than or equal to 1024 characters in length. - description?: null | string @go(Description,*string) - - // Route settings for the stage. - routeSettings?: [...#RouteSettingsInitParameters] @go(RouteSettings,[]RouteSettingsInitParameters) - - // Map that defines the stage variables for the stage. - stageVariables?: {[string]: null | string} @go(StageVariables,map[string]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#StageObservation: { - // API identifier. - apiId?: null | string @go(APIID,*string) - - // Settings for logging access in this stage. - // Use the aws_api_gateway_account resource to configure permissions for CloudWatch Logging. - accessLogSettings?: [...#AccessLogSettingsObservation] @go(AccessLogSettings,[]AccessLogSettingsObservation) - - // ARN of the stage. - arn?: null | string @go(Arn,*string) - - // Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs. - autoDeploy?: null | bool @go(AutoDeploy,*bool) - - // Identifier of a client certificate for the stage. Use the aws_api_gateway_client_certificate resource to configure a client certificate. - // Supported only for WebSocket APIs. - clientCertificateId?: null | string @go(ClientCertificateID,*string) - - // Default route settings for the stage. - defaultRouteSettings?: [...#DefaultRouteSettingsObservation] @go(DefaultRouteSettings,[]DefaultRouteSettingsObservation) - - // Deployment identifier of the stage. Use the aws_apigatewayv2_deployment resource to configure a deployment. - deploymentId?: null | string @go(DeploymentID,*string) - - // Description for the stage. Must be less than or equal to 1024 characters in length. - description?: null | string @go(Description,*string) - - // ARN prefix to be used in an aws_lambda_permission's source_arn attribute. - // For WebSocket APIs this attribute can additionally be used in an aws_iam_policy to authorize access to the @connections API. - // See the Amazon API Gateway Developer Guide for details. - executionArn?: null | string @go(ExecutionArn,*string) - - // Stage identifier. - id?: null | string @go(ID,*string) - - // URL to invoke the API pointing to the stage, - // e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, or https://z4675bid1j.execute-api.eu-west-2.amazonaws.com/ - invokeUrl?: null | string @go(InvokeURL,*string) - - // Route settings for the stage. - routeSettings?: [...#RouteSettingsObservation] @go(RouteSettings,[]RouteSettingsObservation) - - // Map that defines the stage variables for the stage. - stageVariables?: {[string]: null | string} @go(StageVariables,map[string]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#StageParameters: { - // API identifier. - // +crossplane:generate:reference:type=API - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a API to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // Settings for logging access in this stage. - // Use the aws_api_gateway_account resource to configure permissions for CloudWatch Logging. - // +kubebuilder:validation:Optional - accessLogSettings?: [...#AccessLogSettingsParameters] @go(AccessLogSettings,[]AccessLogSettingsParameters) - - // Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs. - // +kubebuilder:validation:Optional - autoDeploy?: null | bool @go(AutoDeploy,*bool) - - // Identifier of a client certificate for the stage. Use the aws_api_gateway_client_certificate resource to configure a client certificate. - // Supported only for WebSocket APIs. - // +kubebuilder:validation:Optional - clientCertificateId?: null | string @go(ClientCertificateID,*string) - - // Default route settings for the stage. - // +kubebuilder:validation:Optional - defaultRouteSettings?: [...#DefaultRouteSettingsParameters] @go(DefaultRouteSettings,[]DefaultRouteSettingsParameters) - - // Deployment identifier of the stage. Use the aws_apigatewayv2_deployment resource to configure a deployment. - // +crossplane:generate:reference:type=Deployment - // +kubebuilder:validation:Optional - deploymentId?: null | string @go(DeploymentID,*string) - - // Reference to a Deployment to populate deploymentId. - // +kubebuilder:validation:Optional - deploymentIdRef?: null | v1.#Reference @go(DeploymentIDRef,*v1.Reference) - - // Selector for a Deployment to populate deploymentId. - // +kubebuilder:validation:Optional - deploymentIdSelector?: null | v1.#Selector @go(DeploymentIDSelector,*v1.Selector) - - // Description for the stage. Must be less than or equal to 1024 characters in length. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Route settings for the stage. - // +kubebuilder:validation:Optional - routeSettings?: [...#RouteSettingsParameters] @go(RouteSettings,[]RouteSettingsParameters) - - // Map that defines the stage variables for the stage. - // +kubebuilder:validation:Optional - stageVariables?: {[string]: null | string} @go(StageVariables,map[string]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// StageSpec defines the desired state of Stage -#StageSpec: { - v1.#ResourceSpec - forProvider: #StageParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StageInitParameters @go(InitProvider) -} - -// StageStatus defines the observed state of Stage. -#StageStatus: { - v1.#ResourceStatus - atProvider?: #StageObservation @go(AtProvider) -} - -// Stage is the Schema for the Stages API. Manages an Amazon API Gateway Version 2 stage. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Stage: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #StageSpec @go(Spec) - status?: #StageStatus @go(Status) -} - -// StageList contains a list of Stages -#StageList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Stage] @go(Items,[]Stage) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_vpclink_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_vpclink_types_go_gen.cue deleted file mode 100644 index 9a53b29..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1/zz_vpclink_types_go_gen.cue +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apigatewayv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCLinkInitParameters: { - // Name of the VPC Link. Must be between 1 and 128 characters in length. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VPCLinkObservation: { - // VPC Link ARN. - arn?: null | string @go(Arn,*string) - - // VPC Link identifier. - id?: null | string @go(ID,*string) - - // Name of the VPC Link. Must be between 1 and 128 characters in length. - name?: null | string @go(Name,*string) - - // Security group IDs for the VPC Link. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Subnet IDs for the VPC Link. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VPCLinkParameters: { - // Name of the VPC Link. Must be between 1 and 128 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // Security group IDs for the VPC Link. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Subnet IDs for the VPC Link. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// VPCLinkSpec defines the desired state of VPCLink -#VPCLinkSpec: { - v1.#ResourceSpec - forProvider: #VPCLinkParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCLinkInitParameters @go(InitProvider) -} - -// VPCLinkStatus defines the observed state of VPCLink. -#VPCLinkStatus: { - v1.#ResourceStatus - atProvider?: #VPCLinkObservation @go(AtProvider) -} - -// VPCLink is the Schema for the VPCLinks API. Manages an Amazon API Gateway Version 2 VPC Link. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCLink: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #VPCLinkSpec @go(Spec) - status?: #VPCLinkStatus @go(Status) -} - -// VPCLinkList contains a list of VPCLinks -#VPCLinkList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCLink] @go(Items,[]VPCLink) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appautoscaling/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appautoscaling/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index f20c5b7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appautoscaling/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appautoscaling/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=appautoscaling.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "appautoscaling.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appautoscaling/v1beta1/zz_policy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appautoscaling/v1beta1/zz_policy_types_go_gen.cue deleted file mode 100644 index 44ba41c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appautoscaling/v1beta1/zz_policy_types_go_gen.cue +++ /dev/null @@ -1,586 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appautoscaling/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CustomizedMetricSpecificationInitParameters: { - // Configuration block(s) with the dimensions of the metric if the metric was published with dimensions. Detailed below. - dimensions?: [...#DimensionsInitParameters] @go(Dimensions,[]DimensionsInitParameters) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Metrics to include, as a metric data query. - metrics?: [...#MetricsInitParameters] @go(Metrics,[]MetricsInitParameters) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) - - // Statistic of the metric. Valid values: Average, Minimum, Maximum, SampleCount, and Sum. - statistic?: null | string @go(Statistic,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#CustomizedMetricSpecificationObservation: { - // Configuration block(s) with the dimensions of the metric if the metric was published with dimensions. Detailed below. - dimensions?: [...#DimensionsObservation] @go(Dimensions,[]DimensionsObservation) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Metrics to include, as a metric data query. - metrics?: [...#MetricsObservation] @go(Metrics,[]MetricsObservation) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) - - // Statistic of the metric. Valid values: Average, Minimum, Maximum, SampleCount, and Sum. - statistic?: null | string @go(Statistic,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#CustomizedMetricSpecificationParameters: { - // Configuration block(s) with the dimensions of the metric if the metric was published with dimensions. Detailed below. - // +kubebuilder:validation:Optional - dimensions?: [...#DimensionsParameters] @go(Dimensions,[]DimensionsParameters) - - // Name of the metric. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // Metrics to include, as a metric data query. - // +kubebuilder:validation:Optional - metrics?: [...#MetricsParameters] @go(Metrics,[]MetricsParameters) - - // Namespace of the metric. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) - - // Statistic of the metric. Valid values: Average, Minimum, Maximum, SampleCount, and Sum. - // +kubebuilder:validation:Optional - statistic?: null | string @go(Statistic,*string) - - // Unit of the metric. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) -} - -#DimensionsInitParameters: { - // Name of the dimension. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#DimensionsObservation: { - // Name of the dimension. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#DimensionsParameters: { - // Name of the dimension. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Value of the dimension. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#MetricDimensionsInitParameters: { - // Name of the dimension. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#MetricDimensionsObservation: { - // Name of the dimension. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#MetricDimensionsParameters: { - // Name of the dimension. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Value of the dimension. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#MetricInitParameters: { - // Configuration block(s) with the dimensions of the metric if the metric was published with dimensions. Detailed below. - dimensions?: [...#MetricDimensionsInitParameters] @go(Dimensions,[]MetricDimensionsInitParameters) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) -} - -#MetricObservation: { - // Configuration block(s) with the dimensions of the metric if the metric was published with dimensions. Detailed below. - dimensions?: [...#MetricDimensionsObservation] @go(Dimensions,[]MetricDimensionsObservation) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) -} - -#MetricParameters: { - // Configuration block(s) with the dimensions of the metric if the metric was published with dimensions. Detailed below. - // +kubebuilder:validation:Optional - dimensions?: [...#MetricDimensionsParameters] @go(Dimensions,[]MetricDimensionsParameters) - - // Name of the metric. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) -} - -#MetricStatInitParameters: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - metric?: [...#MetricInitParameters] @go(Metric,[]MetricInitParameters) - - // Statistic of the metrics to return. - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#MetricStatObservation: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - metric?: [...#MetricObservation] @go(Metric,[]MetricObservation) - - // Statistic of the metrics to return. - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#MetricStatParameters: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - // +kubebuilder:validation:Optional - metric: [...#MetricParameters] @go(Metric,[]MetricParameters) - - // Statistic of the metrics to return. - // +kubebuilder:validation:Optional - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) -} - -#MetricsInitParameters: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in target tracking scaling policy. - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in target tracking scaling policy. You must specify either expression or metric_stat, but not both. - metricStat?: [...#MetricStatInitParameters] @go(MetricStat,[]MetricStatInitParameters) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - returnData?: null | bool @go(ReturnData,*bool) -} - -#MetricsObservation: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in target tracking scaling policy. - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in target tracking scaling policy. You must specify either expression or metric_stat, but not both. - metricStat?: [...#MetricStatObservation] @go(MetricStat,[]MetricStatObservation) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - returnData?: null | bool @go(ReturnData,*bool) -} - -#MetricsParameters: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - // +kubebuilder:validation:Optional - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in target tracking scaling policy. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - // +kubebuilder:validation:Optional - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in target tracking scaling policy. You must specify either expression or metric_stat, but not both. - // +kubebuilder:validation:Optional - metricStat?: [...#MetricStatParameters] @go(MetricStat,[]MetricStatParameters) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - // +kubebuilder:validation:Optional - returnData?: null | bool @go(ReturnData,*bool) -} - -#PolicyInitParameters: { - // Policy type. Valid values are StepScaling and TargetTrackingScaling. Defaults to StepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies and Step Scaling Policies documentation. - policyType?: null | string @go(PolicyType,*string) - - // Step scaling policy configuration, requires policy_type = "StepScaling" (default). See supported fields below. - stepScalingPolicyConfiguration?: [...#StepScalingPolicyConfigurationInitParameters] @go(StepScalingPolicyConfiguration,[]StepScalingPolicyConfigurationInitParameters) - - // Target tracking policy, requires policy_type = "TargetTrackingScaling". See supported fields below. - targetTrackingScalingPolicyConfiguration?: [...#TargetTrackingScalingPolicyConfigurationInitParameters] @go(TargetTrackingScalingPolicyConfiguration,[]TargetTrackingScalingPolicyConfigurationInitParameters) -} - -#PolicyObservation: { - // List of CloudWatch alarm ARNs associated with the scaling policy. - alarmArns?: [...null | string] @go(AlarmArns,[]*string) - - // ARN assigned by AWS to the scaling policy. - arn?: null | string @go(Arn,*string) - - // Short name for the metric used in target tracking scaling policy. - id?: null | string @go(ID,*string) - - // Policy type. Valid values are StepScaling and TargetTrackingScaling. Defaults to StepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies and Step Scaling Policies documentation. - policyType?: null | string @go(PolicyType,*string) - - // Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference - resourceId?: null | string @go(ResourceID,*string) - - // Scalable dimension of the scalable target. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference - scalableDimension?: null | string @go(ScalableDimension,*string) - - // AWS service namespace of the scalable target. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference - serviceNamespace?: null | string @go(ServiceNamespace,*string) - - // Step scaling policy configuration, requires policy_type = "StepScaling" (default). See supported fields below. - stepScalingPolicyConfiguration?: [...#StepScalingPolicyConfigurationObservation] @go(StepScalingPolicyConfiguration,[]StepScalingPolicyConfigurationObservation) - - // Target tracking policy, requires policy_type = "TargetTrackingScaling". See supported fields below. - targetTrackingScalingPolicyConfiguration?: [...#TargetTrackingScalingPolicyConfigurationObservation] @go(TargetTrackingScalingPolicyConfiguration,[]TargetTrackingScalingPolicyConfigurationObservation) -} - -#PolicyParameters: { - // Policy type. Valid values are StepScaling and TargetTrackingScaling. Defaults to StepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies and Step Scaling Policies documentation. - // +kubebuilder:validation:Optional - policyType?: null | string @go(PolicyType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appautoscaling/v1beta1.Target - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("resource_id",false) - // +kubebuilder:validation:Optional - resourceId?: null | string @go(ResourceID,*string) - - // Reference to a Target in appautoscaling to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdRef?: null | v1.#Reference @go(ResourceIDRef,*v1.Reference) - - // Selector for a Target in appautoscaling to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdSelector?: null | v1.#Selector @go(ResourceIDSelector,*v1.Selector) - - // Scalable dimension of the scalable target. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appautoscaling/v1beta1.Target - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("scalable_dimension",false) - // +kubebuilder:validation:Optional - scalableDimension?: null | string @go(ScalableDimension,*string) - - // Reference to a Target in appautoscaling to populate scalableDimension. - // +kubebuilder:validation:Optional - scalableDimensionRef?: null | v1.#Reference @go(ScalableDimensionRef,*v1.Reference) - - // Selector for a Target in appautoscaling to populate scalableDimension. - // +kubebuilder:validation:Optional - scalableDimensionSelector?: null | v1.#Selector @go(ScalableDimensionSelector,*v1.Selector) - - // AWS service namespace of the scalable target. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appautoscaling/v1beta1.Target - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("service_namespace",false) - // +kubebuilder:validation:Optional - serviceNamespace?: null | string @go(ServiceNamespace,*string) - - // Reference to a Target in appautoscaling to populate serviceNamespace. - // +kubebuilder:validation:Optional - serviceNamespaceRef?: null | v1.#Reference @go(ServiceNamespaceRef,*v1.Reference) - - // Selector for a Target in appautoscaling to populate serviceNamespace. - // +kubebuilder:validation:Optional - serviceNamespaceSelector?: null | v1.#Selector @go(ServiceNamespaceSelector,*v1.Selector) - - // Step scaling policy configuration, requires policy_type = "StepScaling" (default). See supported fields below. - // +kubebuilder:validation:Optional - stepScalingPolicyConfiguration?: [...#StepScalingPolicyConfigurationParameters] @go(StepScalingPolicyConfiguration,[]StepScalingPolicyConfigurationParameters) - - // Target tracking policy, requires policy_type = "TargetTrackingScaling". See supported fields below. - // +kubebuilder:validation:Optional - targetTrackingScalingPolicyConfiguration?: [...#TargetTrackingScalingPolicyConfigurationParameters] @go(TargetTrackingScalingPolicyConfiguration,[]TargetTrackingScalingPolicyConfigurationParameters) -} - -#PredefinedMetricSpecificationInitParameters: { - // Metric type. - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Reserved for future use if the predefined_metric_type is not ALBRequestCountPerTarget. If the predefined_metric_type is ALBRequestCountPerTarget, you must specify this argument. Documentation can be found at: AWS Predefined Scaling Metric Specification. Must be less than or equal to 1023 characters in length. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedMetricSpecificationObservation: { - // Metric type. - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Reserved for future use if the predefined_metric_type is not ALBRequestCountPerTarget. If the predefined_metric_type is ALBRequestCountPerTarget, you must specify this argument. Documentation can be found at: AWS Predefined Scaling Metric Specification. Must be less than or equal to 1023 characters in length. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedMetricSpecificationParameters: { - // Metric type. - // +kubebuilder:validation:Optional - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Reserved for future use if the predefined_metric_type is not ALBRequestCountPerTarget. If the predefined_metric_type is ALBRequestCountPerTarget, you must specify this argument. Documentation can be found at: AWS Predefined Scaling Metric Specification. Must be less than or equal to 1023 characters in length. - // +kubebuilder:validation:Optional - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#StepAdjustmentInitParameters: { - // Lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as negative infinity. - metricIntervalLowerBound?: null | string @go(MetricIntervalLowerBound,*string) - - // Upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as infinity. The upper bound must be greater than the lower bound. - metricIntervalUpperBound?: null | string @go(MetricIntervalUpperBound,*string) - - // Number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down. - scalingAdjustment?: null | float64 @go(ScalingAdjustment,*float64) -} - -#StepAdjustmentObservation: { - // Lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as negative infinity. - metricIntervalLowerBound?: null | string @go(MetricIntervalLowerBound,*string) - - // Upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as infinity. The upper bound must be greater than the lower bound. - metricIntervalUpperBound?: null | string @go(MetricIntervalUpperBound,*string) - - // Number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down. - scalingAdjustment?: null | float64 @go(ScalingAdjustment,*float64) -} - -#StepAdjustmentParameters: { - // Lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as negative infinity. - // +kubebuilder:validation:Optional - metricIntervalLowerBound?: null | string @go(MetricIntervalLowerBound,*string) - - // Upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as infinity. The upper bound must be greater than the lower bound. - // +kubebuilder:validation:Optional - metricIntervalUpperBound?: null | string @go(MetricIntervalUpperBound,*string) - - // Number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down. - // +kubebuilder:validation:Optional - scalingAdjustment?: null | float64 @go(ScalingAdjustment,*float64) -} - -#StepScalingPolicyConfigurationInitParameters: { - // Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity. - adjustmentType?: null | string @go(AdjustmentType,*string) - - // Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. - cooldown?: null | float64 @go(Cooldown,*float64) - - // Aggregation type for the policy's metrics. Valid values are "Minimum", "Maximum", and "Average". Without a value, AWS will treat the aggregation type as "Average". - metricAggregationType?: null | string @go(MetricAggregationType,*string) - - // Minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount. - minAdjustmentMagnitude?: null | float64 @go(MinAdjustmentMagnitude,*float64) - - // Set of adjustments that manage scaling. These have the following structure: - stepAdjustment?: [...#StepAdjustmentInitParameters] @go(StepAdjustment,[]StepAdjustmentInitParameters) -} - -#StepScalingPolicyConfigurationObservation: { - // Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity. - adjustmentType?: null | string @go(AdjustmentType,*string) - - // Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. - cooldown?: null | float64 @go(Cooldown,*float64) - - // Aggregation type for the policy's metrics. Valid values are "Minimum", "Maximum", and "Average". Without a value, AWS will treat the aggregation type as "Average". - metricAggregationType?: null | string @go(MetricAggregationType,*string) - - // Minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount. - minAdjustmentMagnitude?: null | float64 @go(MinAdjustmentMagnitude,*float64) - - // Set of adjustments that manage scaling. These have the following structure: - stepAdjustment?: [...#StepAdjustmentObservation] @go(StepAdjustment,[]StepAdjustmentObservation) -} - -#StepScalingPolicyConfigurationParameters: { - // Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity. - // +kubebuilder:validation:Optional - adjustmentType?: null | string @go(AdjustmentType,*string) - - // Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. - // +kubebuilder:validation:Optional - cooldown?: null | float64 @go(Cooldown,*float64) - - // Aggregation type for the policy's metrics. Valid values are "Minimum", "Maximum", and "Average". Without a value, AWS will treat the aggregation type as "Average". - // +kubebuilder:validation:Optional - metricAggregationType?: null | string @go(MetricAggregationType,*string) - - // Minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount. - // +kubebuilder:validation:Optional - minAdjustmentMagnitude?: null | float64 @go(MinAdjustmentMagnitude,*float64) - - // Set of adjustments that manage scaling. These have the following structure: - // +kubebuilder:validation:Optional - stepAdjustment?: [...#StepAdjustmentParameters] @go(StepAdjustment,[]StepAdjustmentParameters) -} - -#TargetTrackingScalingPolicyConfigurationInitParameters: { - // Custom CloudWatch metric. Documentation can be found at: AWS Customized Metric Specification. See supported fields below. - customizedMetricSpecification?: [...#CustomizedMetricSpecificationInitParameters] @go(CustomizedMetricSpecification,[]CustomizedMetricSpecificationInitParameters) - - // Whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false. - disableScaleIn?: null | bool @go(DisableScaleIn,*bool) - - // Predefined metric. See supported fields below. - predefinedMetricSpecification?: [...#PredefinedMetricSpecificationInitParameters] @go(PredefinedMetricSpecification,[]PredefinedMetricSpecificationInitParameters) - - // Amount of time, in seconds, after a scale in activity completes before another scale in activity can start. - scaleInCooldown?: null | float64 @go(ScaleInCooldown,*float64) - - // Amount of time, in seconds, after a scale out activity completes before another scale out activity can start. - scaleOutCooldown?: null | float64 @go(ScaleOutCooldown,*float64) - - // Target value for the metric. - targetValue?: null | float64 @go(TargetValue,*float64) -} - -#TargetTrackingScalingPolicyConfigurationObservation: { - // Custom CloudWatch metric. Documentation can be found at: AWS Customized Metric Specification. See supported fields below. - customizedMetricSpecification?: [...#CustomizedMetricSpecificationObservation] @go(CustomizedMetricSpecification,[]CustomizedMetricSpecificationObservation) - - // Whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false. - disableScaleIn?: null | bool @go(DisableScaleIn,*bool) - - // Predefined metric. See supported fields below. - predefinedMetricSpecification?: [...#PredefinedMetricSpecificationObservation] @go(PredefinedMetricSpecification,[]PredefinedMetricSpecificationObservation) - - // Amount of time, in seconds, after a scale in activity completes before another scale in activity can start. - scaleInCooldown?: null | float64 @go(ScaleInCooldown,*float64) - - // Amount of time, in seconds, after a scale out activity completes before another scale out activity can start. - scaleOutCooldown?: null | float64 @go(ScaleOutCooldown,*float64) - - // Target value for the metric. - targetValue?: null | float64 @go(TargetValue,*float64) -} - -#TargetTrackingScalingPolicyConfigurationParameters: { - // Custom CloudWatch metric. Documentation can be found at: AWS Customized Metric Specification. See supported fields below. - // +kubebuilder:validation:Optional - customizedMetricSpecification?: [...#CustomizedMetricSpecificationParameters] @go(CustomizedMetricSpecification,[]CustomizedMetricSpecificationParameters) - - // Whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false. - // +kubebuilder:validation:Optional - disableScaleIn?: null | bool @go(DisableScaleIn,*bool) - - // Predefined metric. See supported fields below. - // +kubebuilder:validation:Optional - predefinedMetricSpecification?: [...#PredefinedMetricSpecificationParameters] @go(PredefinedMetricSpecification,[]PredefinedMetricSpecificationParameters) - - // Amount of time, in seconds, after a scale in activity completes before another scale in activity can start. - // +kubebuilder:validation:Optional - scaleInCooldown?: null | float64 @go(ScaleInCooldown,*float64) - - // Amount of time, in seconds, after a scale out activity completes before another scale out activity can start. - // +kubebuilder:validation:Optional - scaleOutCooldown?: null | float64 @go(ScaleOutCooldown,*float64) - - // Target value for the metric. - // +kubebuilder:validation:Optional - targetValue?: null | float64 @go(TargetValue,*float64) -} - -// PolicySpec defines the desired state of Policy -#PolicySpec: { - v1.#ResourceSpec - forProvider: #PolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PolicyInitParameters @go(InitProvider) -} - -// PolicyStatus defines the observed state of Policy. -#PolicyStatus: { - v1.#ResourceStatus - atProvider?: #PolicyObservation @go(AtProvider) -} - -// Policy is the Schema for the Policys API. Provides an Application AutoScaling Policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Policy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #PolicySpec @go(Spec) - status?: #PolicyStatus @go(Status) -} - -// PolicyList contains a list of Policys -#PolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Policy] @go(Items,[]Policy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appautoscaling/v1beta1/zz_scheduledaction_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appautoscaling/v1beta1/zz_scheduledaction_types_go_gen.cue deleted file mode 100644 index 2b1b2b9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appautoscaling/v1beta1/zz_scheduledaction_types_go_gen.cue +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appautoscaling/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ScalableTargetActionInitParameters: { - // Maximum capacity. At least one of max_capacity or min_capacity must be set. - maxCapacity?: null | string @go(MaxCapacity,*string) - - // Minimum capacity. At least one of min_capacity or max_capacity must be set. - minCapacity?: null | string @go(MinCapacity,*string) -} - -#ScalableTargetActionObservation: { - // Maximum capacity. At least one of max_capacity or min_capacity must be set. - maxCapacity?: null | string @go(MaxCapacity,*string) - - // Minimum capacity. At least one of min_capacity or max_capacity must be set. - minCapacity?: null | string @go(MinCapacity,*string) -} - -#ScalableTargetActionParameters: { - // Maximum capacity. At least one of max_capacity or min_capacity must be set. - // +kubebuilder:validation:Optional - maxCapacity?: null | string @go(MaxCapacity,*string) - - // Minimum capacity. At least one of min_capacity or max_capacity must be set. - // +kubebuilder:validation:Optional - minCapacity?: null | string @go(MinCapacity,*string) -} - -#ScheduledActionInitParameters: { - // Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone. - endTime?: null | string @go(EndTime,*string) - - // Name of the scheduled action. - name?: null | string @go(Name,*string) - - // New minimum and maximum capacity. You can set both values or just one. See below - scalableTargetAction?: [...#ScalableTargetActionInitParameters] @go(ScalableTargetAction,[]ScalableTargetActionInitParameters) - - // Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference - schedule?: null | string @go(Schedule,*string) - - // Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone. - startTime?: null | string @go(StartTime,*string) - - // Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC. - timezone?: null | string @go(Timezone,*string) -} - -#ScheduledActionObservation: { - // ARN of the scheduled action. - arn?: null | string @go(Arn,*string) - - // Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone. - endTime?: null | string @go(EndTime,*string) - id?: null | string @go(ID,*string) - - // Name of the scheduled action. - name?: null | string @go(Name,*string) - - // Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference - resourceId?: null | string @go(ResourceID,*string) - - // Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount - scalableDimension?: null | string @go(ScalableDimension,*string) - - // New minimum and maximum capacity. You can set both values or just one. See below - scalableTargetAction?: [...#ScalableTargetActionObservation] @go(ScalableTargetAction,[]ScalableTargetActionObservation) - - // Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference - schedule?: null | string @go(Schedule,*string) - - // Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs - serviceNamespace?: null | string @go(ServiceNamespace,*string) - - // Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone. - startTime?: null | string @go(StartTime,*string) - - // Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC. - timezone?: null | string @go(Timezone,*string) -} - -#ScheduledActionParameters: { - // Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone. - // +kubebuilder:validation:Optional - endTime?: null | string @go(EndTime,*string) - - // Name of the scheduled action. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appautoscaling/v1beta1.Target - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("resource_id",false) - // +kubebuilder:validation:Optional - resourceId?: null | string @go(ResourceID,*string) - - // Reference to a Target in appautoscaling to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdRef?: null | v1.#Reference @go(ResourceIDRef,*v1.Reference) - - // Selector for a Target in appautoscaling to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdSelector?: null | v1.#Selector @go(ResourceIDSelector,*v1.Selector) - - // Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appautoscaling/v1beta1.Target - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("scalable_dimension",false) - // +kubebuilder:validation:Optional - scalableDimension?: null | string @go(ScalableDimension,*string) - - // Reference to a Target in appautoscaling to populate scalableDimension. - // +kubebuilder:validation:Optional - scalableDimensionRef?: null | v1.#Reference @go(ScalableDimensionRef,*v1.Reference) - - // Selector for a Target in appautoscaling to populate scalableDimension. - // +kubebuilder:validation:Optional - scalableDimensionSelector?: null | v1.#Selector @go(ScalableDimensionSelector,*v1.Selector) - - // New minimum and maximum capacity. You can set both values or just one. See below - // +kubebuilder:validation:Optional - scalableTargetAction?: [...#ScalableTargetActionParameters] @go(ScalableTargetAction,[]ScalableTargetActionParameters) - - // Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference - // +kubebuilder:validation:Optional - schedule?: null | string @go(Schedule,*string) - - // Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appautoscaling/v1beta1.Target - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("service_namespace",false) - // +kubebuilder:validation:Optional - serviceNamespace?: null | string @go(ServiceNamespace,*string) - - // Reference to a Target in appautoscaling to populate serviceNamespace. - // +kubebuilder:validation:Optional - serviceNamespaceRef?: null | v1.#Reference @go(ServiceNamespaceRef,*v1.Reference) - - // Selector for a Target in appautoscaling to populate serviceNamespace. - // +kubebuilder:validation:Optional - serviceNamespaceSelector?: null | v1.#Selector @go(ServiceNamespaceSelector,*v1.Selector) - - // Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone. - // +kubebuilder:validation:Optional - startTime?: null | string @go(StartTime,*string) - - // Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC. - // +kubebuilder:validation:Optional - timezone?: null | string @go(Timezone,*string) -} - -// ScheduledActionSpec defines the desired state of ScheduledAction -#ScheduledActionSpec: { - v1.#ResourceSpec - forProvider: #ScheduledActionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ScheduledActionInitParameters @go(InitProvider) -} - -// ScheduledActionStatus defines the observed state of ScheduledAction. -#ScheduledActionStatus: { - v1.#ResourceStatus - atProvider?: #ScheduledActionObservation @go(AtProvider) -} - -// ScheduledAction is the Schema for the ScheduledActions API. Provides an Application AutoScaling ScheduledAction resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ScheduledAction: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scalableTargetAction) || (has(self.initProvider) && has(self.initProvider.scalableTargetAction))",message="spec.forProvider.scalableTargetAction is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.schedule) || (has(self.initProvider) && has(self.initProvider.schedule))",message="spec.forProvider.schedule is a required parameter" - spec: #ScheduledActionSpec @go(Spec) - status?: #ScheduledActionStatus @go(Status) -} - -// ScheduledActionList contains a list of ScheduledActions -#ScheduledActionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ScheduledAction] @go(Items,[]ScheduledAction) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appautoscaling/v1beta1/zz_target_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appautoscaling/v1beta1/zz_target_types_go_gen.cue deleted file mode 100644 index 82a5cdc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appautoscaling/v1beta1/zz_target_types_go_gen.cue +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appautoscaling/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TargetInitParameters: { - // Max capacity of the scalable target. - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // Min capacity of the scalable target. - minCapacity?: null | float64 @go(MinCapacity,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TargetObservation: { - // The ARN of the scalable target. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // Max capacity of the scalable target. - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // Min capacity of the scalable target. - minCapacity?: null | float64 @go(MinCapacity,*float64) - - // Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference - resourceId?: null | string @go(ResourceID,*string) - - // ARN of the IAM role that allows Application AutoScaling to modify your scalable target on your behalf. This defaults to an IAM Service-Linked Role for most services and custom IAM Roles are ignored by the API for those namespaces. See the AWS Application Auto Scaling documentation for more information about how this service interacts with IAM. - roleArn?: null | string @go(RoleArn,*string) - - // Scalable dimension of the scalable target. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference - scalableDimension?: null | string @go(ScalableDimension,*string) - - // AWS service namespace of the scalable target. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference - serviceNamespace?: null | string @go(ServiceNamespace,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#TargetParameters: { - // Max capacity of the scalable target. - // +kubebuilder:validation:Optional - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // Min capacity of the scalable target. - // +kubebuilder:validation:Optional - minCapacity?: null | float64 @go(MinCapacity,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference - // +kubebuilder:validation:Required - resourceId?: null | string @go(ResourceID,*string) - - // ARN of the IAM role that allows Application AutoScaling to modify your scalable target on your behalf. This defaults to an IAM Service-Linked Role for most services and custom IAM Roles are ignored by the API for those namespaces. See the AWS Application Auto Scaling documentation for more information about how this service interacts with IAM. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Scalable dimension of the scalable target. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference - // +kubebuilder:validation:Required - scalableDimension?: null | string @go(ScalableDimension,*string) - - // AWS service namespace of the scalable target. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference - // +kubebuilder:validation:Required - serviceNamespace?: null | string @go(ServiceNamespace,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// TargetSpec defines the desired state of Target -#TargetSpec: { - v1.#ResourceSpec - forProvider: #TargetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TargetInitParameters @go(InitProvider) -} - -// TargetStatus defines the observed state of Target. -#TargetStatus: { - v1.#ResourceStatus - atProvider?: #TargetObservation @go(AtProvider) -} - -// Target is the Schema for the Targets API. Provides an Application AutoScaling ScalableTarget resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Target: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.maxCapacity) || (has(self.initProvider) && has(self.initProvider.maxCapacity))",message="spec.forProvider.maxCapacity is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.minCapacity) || (has(self.initProvider) && has(self.initProvider.minCapacity))",message="spec.forProvider.minCapacity is a required parameter" - spec: #TargetSpec @go(Spec) - status?: #TargetStatus @go(Status) -} - -// TargetList contains a list of Targets -#TargetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Target] @go(Items,[]Target) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_application_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_application_types_go_gen.cue deleted file mode 100644 index 150e88b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_application_types_go_gen.cue +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appconfig/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ApplicationInitParameters: { - // Description of the application. Can be at most 1024 characters. - description?: null | string @go(Description,*string) - - // Name for the application. Must be between 1 and 64 characters in length. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ApplicationObservation: { - // ARN of the AppConfig Application. - arn?: null | string @go(Arn,*string) - - // Description of the application. Can be at most 1024 characters. - description?: null | string @go(Description,*string) - - // AppConfig application ID. - id?: null | string @go(ID,*string) - - // Name for the application. Must be between 1 and 64 characters in length. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ApplicationParameters: { - // Description of the application. Can be at most 1024 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Name for the application. Must be between 1 and 64 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ApplicationSpec defines the desired state of Application -#ApplicationSpec: { - v1.#ResourceSpec - forProvider: #ApplicationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ApplicationInitParameters @go(InitProvider) -} - -// ApplicationStatus defines the observed state of Application. -#ApplicationStatus: { - v1.#ResourceStatus - atProvider?: #ApplicationObservation @go(AtProvider) -} - -// Application is the Schema for the Applications API. Provides an AppConfig Application resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Application: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ApplicationSpec @go(Spec) - status?: #ApplicationStatus @go(Status) -} - -// ApplicationList contains a list of Applications -#ApplicationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Application] @go(Items,[]Application) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_configurationprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_configurationprofile_types_go_gen.cue deleted file mode 100644 index 89729b7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_configurationprofile_types_go_gen.cue +++ /dev/null @@ -1,195 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appconfig/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigurationProfileInitParameters: { - // Description of the configuration profile. Can be at most 1024 characters. - description?: null | string @go(Description,*string) - - // URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store, specify hosted. For an SSM document, specify either the document name in the format ssm-document:// or the ARN. For a parameter, specify either the parameter name in the format ssm-parameter:// or the ARN. For an Amazon S3 object, specify the URI in the following format: s3:///. - locationUri?: null | string @go(LocationURI,*string) - - // Name for the configuration profile. Must be between 1 and 64 characters in length. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Type of configurations contained in the profile. Valid values: AWS.AppConfig.FeatureFlags and AWS.Freeform. Default: AWS.Freeform. - type?: null | string @go(Type,*string) - - // Set of methods for validating the configuration. Maximum of 2. See Validator below for more details. - validator?: [...#ValidatorInitParameters] @go(Validator,[]ValidatorInitParameters) -} - -#ConfigurationProfileObservation: { - // Application ID. Must be between 4 and 7 characters in length. - applicationId?: null | string @go(ApplicationID,*string) - - // ARN of the AppConfig Configuration Profile. - arn?: null | string @go(Arn,*string) - - // The configuration profile ID. - configurationProfileId?: null | string @go(ConfigurationProfileID,*string) - - // Description of the configuration profile. Can be at most 1024 characters. - description?: null | string @go(Description,*string) - - // AppConfig configuration profile ID and application ID separated by a colon (:). - id?: null | string @go(ID,*string) - - // URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store, specify hosted. For an SSM document, specify either the document name in the format ssm-document:// or the ARN. For a parameter, specify either the parameter name in the format ssm-parameter:// or the ARN. For an Amazon S3 object, specify the URI in the following format: s3:///. - locationUri?: null | string @go(LocationURI,*string) - - // Name for the configuration profile. Must be between 1 and 64 characters in length. - name?: null | string @go(Name,*string) - - // ARN of an IAM role with permission to access the configuration at the specified location_uri. A retrieval role ARN is not required for configurations stored in the AWS AppConfig hosted configuration store. It is required for all other sources that store your configuration. - retrievalRoleArn?: null | string @go(RetrievalRoleArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Type of configurations contained in the profile. Valid values: AWS.AppConfig.FeatureFlags and AWS.Freeform. Default: AWS.Freeform. - type?: null | string @go(Type,*string) - - // Set of methods for validating the configuration. Maximum of 2. See Validator below for more details. - validator?: [...#ValidatorObservation] @go(Validator,[]ValidatorObservation) -} - -#ConfigurationProfileParameters: { - // Application ID. Must be between 4 and 7 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appconfig/v1beta1.Application - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - applicationId?: null | string @go(ApplicationID,*string) - - // Reference to a Application in appconfig to populate applicationId. - // +kubebuilder:validation:Optional - applicationIdRef?: null | v1.#Reference @go(ApplicationIDRef,*v1.Reference) - - // Selector for a Application in appconfig to populate applicationId. - // +kubebuilder:validation:Optional - applicationIdSelector?: null | v1.#Selector @go(ApplicationIDSelector,*v1.Selector) - - // Description of the configuration profile. Can be at most 1024 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store, specify hosted. For an SSM document, specify either the document name in the format ssm-document:// or the ARN. For a parameter, specify either the parameter name in the format ssm-parameter:// or the ARN. For an Amazon S3 object, specify the URI in the following format: s3:///. - // +kubebuilder:validation:Optional - locationUri?: null | string @go(LocationURI,*string) - - // Name for the configuration profile. Must be between 1 and 64 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ARN of an IAM role with permission to access the configuration at the specified location_uri. A retrieval role ARN is not required for configurations stored in the AWS AppConfig hosted configuration store. It is required for all other sources that store your configuration. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - retrievalRoleArn?: null | string @go(RetrievalRoleArn,*string) - - // Reference to a Role in iam to populate retrievalRoleArn. - // +kubebuilder:validation:Optional - retrievalRoleArnRef?: null | v1.#Reference @go(RetrievalRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate retrievalRoleArn. - // +kubebuilder:validation:Optional - retrievalRoleArnSelector?: null | v1.#Selector @go(RetrievalRoleArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Type of configurations contained in the profile. Valid values: AWS.AppConfig.FeatureFlags and AWS.Freeform. Default: AWS.Freeform. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // Set of methods for validating the configuration. Maximum of 2. See Validator below for more details. - // +kubebuilder:validation:Optional - validator?: [...#ValidatorParameters] @go(Validator,[]ValidatorParameters) -} - -#ValidatorInitParameters: { - // Type of validator. Valid values: JSON_SCHEMA and LAMBDA. - type?: null | string @go(Type,*string) -} - -#ValidatorObservation: { - // Type of validator. Valid values: JSON_SCHEMA and LAMBDA. - type?: null | string @go(Type,*string) -} - -#ValidatorParameters: { - // Either the JSON Schema content or the ARN of an AWS Lambda function. - // +kubebuilder:validation:Optional - contentSecretRef?: null | v1.#SecretKeySelector @go(ContentSecretRef,*v1.SecretKeySelector) - - // Type of validator. Valid values: JSON_SCHEMA and LAMBDA. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// ConfigurationProfileSpec defines the desired state of ConfigurationProfile -#ConfigurationProfileSpec: { - v1.#ResourceSpec - forProvider: #ConfigurationProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConfigurationProfileInitParameters @go(InitProvider) -} - -// ConfigurationProfileStatus defines the observed state of ConfigurationProfile. -#ConfigurationProfileStatus: { - v1.#ResourceStatus - atProvider?: #ConfigurationProfileObservation @go(AtProvider) -} - -// ConfigurationProfile is the Schema for the ConfigurationProfiles API. Provides an AppConfig Configuration Profile resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ConfigurationProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.locationUri) || (has(self.initProvider) && has(self.initProvider.locationUri))",message="spec.forProvider.locationUri is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ConfigurationProfileSpec @go(Spec) - status?: #ConfigurationProfileStatus @go(Status) -} - -// ConfigurationProfileList contains a list of ConfigurationProfiles -#ConfigurationProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConfigurationProfile] @go(Items,[]ConfigurationProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_deployment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_deployment_types_go_gen.cue deleted file mode 100644 index be522d0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_deployment_types_go_gen.cue +++ /dev/null @@ -1,186 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appconfig/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DeploymentInitParameters: { - // Description of the deployment. Can be at most 1024 characters. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DeploymentObservation: { - // Application ID. Must be between 4 and 7 characters in length. - applicationId?: null | string @go(ApplicationID,*string) - - // ARN of the AppConfig Deployment. - arn?: null | string @go(Arn,*string) - - // Configuration profile ID. Must be between 4 and 7 characters in length. - configurationProfileId?: null | string @go(ConfigurationProfileID,*string) - - // Configuration version to deploy. Can be at most 1024 characters. - configurationVersion?: null | string @go(ConfigurationVersion,*string) - - // Deployment number. - deploymentNumber?: null | float64 @go(DeploymentNumber,*float64) - - // Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details. - deploymentStrategyId?: null | string @go(DeploymentStrategyID,*string) - - // Description of the deployment. Can be at most 1024 characters. - description?: null | string @go(Description,*string) - - // Environment ID. Must be between 4 and 7 characters in length. - environmentId?: null | string @go(EnvironmentID,*string) - - // AppConfig application ID, environment ID, and deployment number separated by a slash (/). - id?: null | string @go(ID,*string) - - // State of the deployment. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DeploymentParameters: { - // Application ID. Must be between 4 and 7 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appconfig/v1beta1.Application - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - applicationId?: null | string @go(ApplicationID,*string) - - // Reference to a Application in appconfig to populate applicationId. - // +kubebuilder:validation:Optional - applicationIdRef?: null | v1.#Reference @go(ApplicationIDRef,*v1.Reference) - - // Selector for a Application in appconfig to populate applicationId. - // +kubebuilder:validation:Optional - applicationIdSelector?: null | v1.#Selector @go(ApplicationIDSelector,*v1.Selector) - - // Configuration profile ID. Must be between 4 and 7 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appconfig/v1beta1.ConfigurationProfile - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("configuration_profile_id",true) - // +kubebuilder:validation:Optional - configurationProfileId?: null | string @go(ConfigurationProfileID,*string) - - // Reference to a ConfigurationProfile in appconfig to populate configurationProfileId. - // +kubebuilder:validation:Optional - configurationProfileIdRef?: null | v1.#Reference @go(ConfigurationProfileIDRef,*v1.Reference) - - // Selector for a ConfigurationProfile in appconfig to populate configurationProfileId. - // +kubebuilder:validation:Optional - configurationProfileIdSelector?: null | v1.#Selector @go(ConfigurationProfileIDSelector,*v1.Selector) - - // Configuration version to deploy. Can be at most 1024 characters. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appconfig/v1beta1.HostedConfigurationVersion - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("version_number",true) - // +kubebuilder:validation:Optional - configurationVersion?: null | string @go(ConfigurationVersion,*string) - - // Reference to a HostedConfigurationVersion in appconfig to populate configurationVersion. - // +kubebuilder:validation:Optional - configurationVersionRef?: null | v1.#Reference @go(ConfigurationVersionRef,*v1.Reference) - - // Selector for a HostedConfigurationVersion in appconfig to populate configurationVersion. - // +kubebuilder:validation:Optional - configurationVersionSelector?: null | v1.#Selector @go(ConfigurationVersionSelector,*v1.Selector) - - // Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appconfig/v1beta1.DeploymentStrategy - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - deploymentStrategyId?: null | string @go(DeploymentStrategyID,*string) - - // Reference to a DeploymentStrategy in appconfig to populate deploymentStrategyId. - // +kubebuilder:validation:Optional - deploymentStrategyIdRef?: null | v1.#Reference @go(DeploymentStrategyIDRef,*v1.Reference) - - // Selector for a DeploymentStrategy in appconfig to populate deploymentStrategyId. - // +kubebuilder:validation:Optional - deploymentStrategyIdSelector?: null | v1.#Selector @go(DeploymentStrategyIDSelector,*v1.Selector) - - // Description of the deployment. Can be at most 1024 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Environment ID. Must be between 4 and 7 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appconfig/v1beta1.Environment - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("environment_id",true) - // +kubebuilder:validation:Optional - environmentId?: null | string @go(EnvironmentID,*string) - - // Reference to a Environment in appconfig to populate environmentId. - // +kubebuilder:validation:Optional - environmentIdRef?: null | v1.#Reference @go(EnvironmentIDRef,*v1.Reference) - - // Selector for a Environment in appconfig to populate environmentId. - // +kubebuilder:validation:Optional - environmentIdSelector?: null | v1.#Selector @go(EnvironmentIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// DeploymentSpec defines the desired state of Deployment -#DeploymentSpec: { - v1.#ResourceSpec - forProvider: #DeploymentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DeploymentInitParameters @go(InitProvider) -} - -// DeploymentStatus defines the observed state of Deployment. -#DeploymentStatus: { - v1.#ResourceStatus - atProvider?: #DeploymentObservation @go(AtProvider) -} - -// Deployment is the Schema for the Deployments API. Provides an AppConfig Deployment resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Deployment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DeploymentSpec @go(Spec) - status?: #DeploymentStatus @go(Status) -} - -// DeploymentList contains a list of Deployments -#DeploymentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Deployment] @go(Items,[]Deployment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_deploymentstrategy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_deploymentstrategy_types_go_gen.cue deleted file mode 100644 index 1f85f9d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_deploymentstrategy_types_go_gen.cue +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appconfig/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DeploymentStrategyInitParameters: { - // Total amount of time for a deployment to last. Minimum value of 0, maximum value of 1440. - deploymentDurationInMinutes?: null | float64 @go(DeploymentDurationInMinutes,*float64) - - // Description of the deployment strategy. Can be at most 1024 characters. - description?: null | string @go(Description,*string) - - // Amount of time AWS AppConfig monitors for alarms before considering the deployment to be complete and no longer eligible for automatic roll back. Minimum value of 0, maximum value of 1440. - finalBakeTimeInMinutes?: null | float64 @go(FinalBakeTimeInMinutes,*float64) - - // Percentage of targets to receive a deployed configuration during each interval. Minimum value of 1.0, maximum value of 100.0. - growthFactor?: null | float64 @go(GrowthFactor,*float64) - - // Algorithm used to define how percentage grows over time. Valid value: LINEAR and EXPONENTIAL. Defaults to LINEAR. - growthType?: null | string @go(GrowthType,*string) - - // Name for the deployment strategy. Must be between 1 and 64 characters in length. - name?: null | string @go(Name,*string) - - // Where to save the deployment strategy. Valid values: NONE and SSM_DOCUMENT. - replicateTo?: null | string @go(ReplicateTo,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DeploymentStrategyObservation: { - // ARN of the AppConfig Deployment Strategy. - arn?: null | string @go(Arn,*string) - - // Total amount of time for a deployment to last. Minimum value of 0, maximum value of 1440. - deploymentDurationInMinutes?: null | float64 @go(DeploymentDurationInMinutes,*float64) - - // Description of the deployment strategy. Can be at most 1024 characters. - description?: null | string @go(Description,*string) - - // Amount of time AWS AppConfig monitors for alarms before considering the deployment to be complete and no longer eligible for automatic roll back. Minimum value of 0, maximum value of 1440. - finalBakeTimeInMinutes?: null | float64 @go(FinalBakeTimeInMinutes,*float64) - - // Percentage of targets to receive a deployed configuration during each interval. Minimum value of 1.0, maximum value of 100.0. - growthFactor?: null | float64 @go(GrowthFactor,*float64) - - // Algorithm used to define how percentage grows over time. Valid value: LINEAR and EXPONENTIAL. Defaults to LINEAR. - growthType?: null | string @go(GrowthType,*string) - - // AppConfig deployment strategy ID. - id?: null | string @go(ID,*string) - - // Name for the deployment strategy. Must be between 1 and 64 characters in length. - name?: null | string @go(Name,*string) - - // Where to save the deployment strategy. Valid values: NONE and SSM_DOCUMENT. - replicateTo?: null | string @go(ReplicateTo,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DeploymentStrategyParameters: { - // Total amount of time for a deployment to last. Minimum value of 0, maximum value of 1440. - // +kubebuilder:validation:Optional - deploymentDurationInMinutes?: null | float64 @go(DeploymentDurationInMinutes,*float64) - - // Description of the deployment strategy. Can be at most 1024 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Amount of time AWS AppConfig monitors for alarms before considering the deployment to be complete and no longer eligible for automatic roll back. Minimum value of 0, maximum value of 1440. - // +kubebuilder:validation:Optional - finalBakeTimeInMinutes?: null | float64 @go(FinalBakeTimeInMinutes,*float64) - - // Percentage of targets to receive a deployed configuration during each interval. Minimum value of 1.0, maximum value of 100.0. - // +kubebuilder:validation:Optional - growthFactor?: null | float64 @go(GrowthFactor,*float64) - - // Algorithm used to define how percentage grows over time. Valid value: LINEAR and EXPONENTIAL. Defaults to LINEAR. - // +kubebuilder:validation:Optional - growthType?: null | string @go(GrowthType,*string) - - // Name for the deployment strategy. Must be between 1 and 64 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Where to save the deployment strategy. Valid values: NONE and SSM_DOCUMENT. - // +kubebuilder:validation:Optional - replicateTo?: null | string @go(ReplicateTo,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// DeploymentStrategySpec defines the desired state of DeploymentStrategy -#DeploymentStrategySpec: { - v1.#ResourceSpec - forProvider: #DeploymentStrategyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DeploymentStrategyInitParameters @go(InitProvider) -} - -// DeploymentStrategyStatus defines the observed state of DeploymentStrategy. -#DeploymentStrategyStatus: { - v1.#ResourceStatus - atProvider?: #DeploymentStrategyObservation @go(AtProvider) -} - -// DeploymentStrategy is the Schema for the DeploymentStrategys API. Provides an AppConfig Deployment Strategy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DeploymentStrategy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.deploymentDurationInMinutes) || (has(self.initProvider) && has(self.initProvider.deploymentDurationInMinutes))",message="spec.forProvider.deploymentDurationInMinutes is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.growthFactor) || (has(self.initProvider) && has(self.initProvider.growthFactor))",message="spec.forProvider.growthFactor is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.replicateTo) || (has(self.initProvider) && has(self.initProvider.replicateTo))",message="spec.forProvider.replicateTo is a required parameter" - spec: #DeploymentStrategySpec @go(Spec) - status?: #DeploymentStrategyStatus @go(Status) -} - -// DeploymentStrategyList contains a list of DeploymentStrategys -#DeploymentStrategyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DeploymentStrategy] @go(Items,[]DeploymentStrategy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_environment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_environment_types_go_gen.cue deleted file mode 100644 index a31d645..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_environment_types_go_gen.cue +++ /dev/null @@ -1,182 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appconfig/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EnvironmentInitParameters: { - // Description of the environment. Can be at most 1024 characters. - description?: null | string @go(Description,*string) - - // Set of Amazon CloudWatch alarms to monitor during the deployment process. Maximum of 5. See Monitor below for more details. - monitor?: [...#MonitorInitParameters] @go(Monitor,[]MonitorInitParameters) - - // Name for the environment. Must be between 1 and 64 characters in length. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EnvironmentObservation: { - // AppConfig application ID. Must be between 4 and 7 characters in length. - applicationId?: null | string @go(ApplicationID,*string) - - // ARN of the AppConfig Environment. - arn?: null | string @go(Arn,*string) - - // Description of the environment. Can be at most 1024 characters. - description?: null | string @go(Description,*string) - - // AppConfig environment ID. - environmentId?: null | string @go(EnvironmentID,*string) - - // AppConfig environment ID and application ID separated by a colon (:). - id?: null | string @go(ID,*string) - - // Set of Amazon CloudWatch alarms to monitor during the deployment process. Maximum of 5. See Monitor below for more details. - monitor?: [...#MonitorObservation] @go(Monitor,[]MonitorObservation) - - // Name for the environment. Must be between 1 and 64 characters in length. - name?: null | string @go(Name,*string) - - // State of the environment. Possible values are READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK - // or ROLLED_BACK. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#EnvironmentParameters: { - // AppConfig application ID. Must be between 4 and 7 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appconfig/v1beta1.Application - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - applicationId?: null | string @go(ApplicationID,*string) - - // Reference to a Application in appconfig to populate applicationId. - // +kubebuilder:validation:Optional - applicationIdRef?: null | v1.#Reference @go(ApplicationIDRef,*v1.Reference) - - // Selector for a Application in appconfig to populate applicationId. - // +kubebuilder:validation:Optional - applicationIdSelector?: null | v1.#Selector @go(ApplicationIDSelector,*v1.Selector) - - // Description of the environment. Can be at most 1024 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Set of Amazon CloudWatch alarms to monitor during the deployment process. Maximum of 5. See Monitor below for more details. - // +kubebuilder:validation:Optional - monitor?: [...#MonitorParameters] @go(Monitor,[]MonitorParameters) - - // Name for the environment. Must be between 1 and 64 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#MonitorInitParameters: { -} - -#MonitorObservation: { - // ARN of the Amazon CloudWatch alarm. - alarmArn?: null | string @go(AlarmArn,*string) - - // ARN of an IAM role for AWS AppConfig to monitor alarm_arn. - alarmRoleArn?: null | string @go(AlarmRoleArn,*string) -} - -#MonitorParameters: { - // ARN of the Amazon CloudWatch alarm. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatch/v1beta1.MetricAlarm - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - alarmArn?: null | string @go(AlarmArn,*string) - - // Reference to a MetricAlarm in cloudwatch to populate alarmArn. - // +kubebuilder:validation:Optional - alarmArnRef?: null | v1.#Reference @go(AlarmArnRef,*v1.Reference) - - // Selector for a MetricAlarm in cloudwatch to populate alarmArn. - // +kubebuilder:validation:Optional - alarmArnSelector?: null | v1.#Selector @go(AlarmArnSelector,*v1.Selector) - - // ARN of an IAM role for AWS AppConfig to monitor alarm_arn. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - alarmRoleArn?: null | string @go(AlarmRoleArn,*string) - - // Reference to a Role in iam to populate alarmRoleArn. - // +kubebuilder:validation:Optional - alarmRoleArnRef?: null | v1.#Reference @go(AlarmRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate alarmRoleArn. - // +kubebuilder:validation:Optional - alarmRoleArnSelector?: null | v1.#Selector @go(AlarmRoleArnSelector,*v1.Selector) -} - -// EnvironmentSpec defines the desired state of Environment -#EnvironmentSpec: { - v1.#ResourceSpec - forProvider: #EnvironmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EnvironmentInitParameters @go(InitProvider) -} - -// EnvironmentStatus defines the observed state of Environment. -#EnvironmentStatus: { - v1.#ResourceStatus - atProvider?: #EnvironmentObservation @go(AtProvider) -} - -// Environment is the Schema for the Environments API. Provides an AppConfig Environment resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Environment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #EnvironmentSpec @go(Spec) - status?: #EnvironmentStatus @go(Status) -} - -// EnvironmentList contains a list of Environments -#EnvironmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Environment] @go(Items,[]Environment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_extension_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_extension_types_go_gen.cue deleted file mode 100644 index bbd96c5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_extension_types_go_gen.cue +++ /dev/null @@ -1,251 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appconfig/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionInitParameters: { - // Information about the action. - description?: null | string @go(Description,*string) - - // The action name. - name?: null | string @go(Name,*string) -} - -#ActionObservation: { - // Information about the action. - description?: null | string @go(Description,*string) - - // The action name. - name?: null | string @go(Name,*string) - - // An Amazon Resource Name (ARN) for an Identity and Access Management assume role. - roleArn?: null | string @go(RoleArn,*string) - - // The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus. - uri?: null | string @go(URI,*string) -} - -#ActionParameters: { - // Information about the action. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The action name. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // An Amazon Resource Name (ARN) for an Identity and Access Management assume role. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The extension URI associated to the action point in the extension definition. The URI can be an Amazon Resource Name (ARN) for one of the following: an Lambda function, an Amazon Simple Queue Service queue, an Amazon Simple Notification Service topic, or the Amazon EventBridge default event bus. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) - - // Reference to a Topic in sns to populate uri. - // +kubebuilder:validation:Optional - uriRef?: null | v1.#Reference @go(URIRef,*v1.Reference) - - // Selector for a Topic in sns to populate uri. - // +kubebuilder:validation:Optional - uriSelector?: null | v1.#Selector @go(URISelector,*v1.Selector) -} - -#ActionPointInitParameters: { - // An action defines the tasks the extension performs during the AppConfig workflow. Detailed below. - action?: [...#ActionInitParameters] @go(Action,[]ActionInitParameters) - - // The point at which to perform the defined actions. Valid points are PRE_CREATE_HOSTED_CONFIGURATION_VERSION, PRE_START_DEPLOYMENT, ON_DEPLOYMENT_START, ON_DEPLOYMENT_STEP, ON_DEPLOYMENT_BAKING, ON_DEPLOYMENT_COMPLETE, ON_DEPLOYMENT_ROLLED_BACK. - point?: null | string @go(Point,*string) -} - -#ActionPointObservation: { - // An action defines the tasks the extension performs during the AppConfig workflow. Detailed below. - action?: [...#ActionObservation] @go(Action,[]ActionObservation) - - // The point at which to perform the defined actions. Valid points are PRE_CREATE_HOSTED_CONFIGURATION_VERSION, PRE_START_DEPLOYMENT, ON_DEPLOYMENT_START, ON_DEPLOYMENT_STEP, ON_DEPLOYMENT_BAKING, ON_DEPLOYMENT_COMPLETE, ON_DEPLOYMENT_ROLLED_BACK. - point?: null | string @go(Point,*string) -} - -#ActionPointParameters: { - // An action defines the tasks the extension performs during the AppConfig workflow. Detailed below. - // +kubebuilder:validation:Optional - action: [...#ActionParameters] @go(Action,[]ActionParameters) - - // The point at which to perform the defined actions. Valid points are PRE_CREATE_HOSTED_CONFIGURATION_VERSION, PRE_START_DEPLOYMENT, ON_DEPLOYMENT_START, ON_DEPLOYMENT_STEP, ON_DEPLOYMENT_BAKING, ON_DEPLOYMENT_COMPLETE, ON_DEPLOYMENT_ROLLED_BACK. - // +kubebuilder:validation:Optional - point?: null | string @go(Point,*string) -} - -#ExtensionInitParameters: { - // The action points defined in the extension. Detailed below. - actionPoint?: [...#ActionPointInitParameters] @go(ActionPoint,[]ActionPointInitParameters) - - // Information about the extension. - description?: null | string @go(Description,*string) - - // A name for the extension. Each extension name in your account must be unique. Extension versions use the same name. - name?: null | string @go(Name,*string) - - // The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object. Detailed below. - parameter?: [...#ParameterInitParameters] @go(Parameter,[]ParameterInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ExtensionObservation: { - // The action points defined in the extension. Detailed below. - actionPoint?: [...#ActionPointObservation] @go(ActionPoint,[]ActionPointObservation) - - // ARN of the AppConfig Extension. - arn?: null | string @go(Arn,*string) - - // Information about the extension. - description?: null | string @go(Description,*string) - - // AppConfig Extension ID. - id?: null | string @go(ID,*string) - - // A name for the extension. Each extension name in your account must be unique. Extension versions use the same name. - name?: null | string @go(Name,*string) - - // The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object. Detailed below. - parameter?: [...#ParameterObservation] @go(Parameter,[]ParameterObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The version number for the extension. - version?: null | float64 @go(Version,*float64) -} - -#ExtensionParameters: { - // The action points defined in the extension. Detailed below. - // +kubebuilder:validation:Optional - actionPoint?: [...#ActionPointParameters] @go(ActionPoint,[]ActionPointParameters) - - // Information about the extension. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A name for the extension. Each extension name in your account must be unique. Extension versions use the same name. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object. Detailed below. - // +kubebuilder:validation:Optional - parameter?: [...#ParameterParameters] @go(Parameter,[]ParameterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParameterInitParameters: { - // Information about the parameter. - description?: null | string @go(Description,*string) - - // The parameter name. - name?: null | string @go(Name,*string) - - // Determines if a parameter value must be specified in the extension association. - required?: null | bool @go(Required,*bool) -} - -#ParameterObservation: { - // Information about the parameter. - description?: null | string @go(Description,*string) - - // The parameter name. - name?: null | string @go(Name,*string) - - // Determines if a parameter value must be specified in the extension association. - required?: null | bool @go(Required,*bool) -} - -#ParameterParameters: { - // Information about the parameter. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The parameter name. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Determines if a parameter value must be specified in the extension association. - // +kubebuilder:validation:Optional - required?: null | bool @go(Required,*bool) -} - -// ExtensionSpec defines the desired state of Extension -#ExtensionSpec: { - v1.#ResourceSpec - forProvider: #ExtensionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ExtensionInitParameters @go(InitProvider) -} - -// ExtensionStatus defines the observed state of Extension. -#ExtensionStatus: { - v1.#ResourceStatus - atProvider?: #ExtensionObservation @go(AtProvider) -} - -// Extension is the Schema for the Extensions API. Provides an AppConfig Extension resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Extension: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.actionPoint) || (has(self.initProvider) && has(self.initProvider.actionPoint))",message="spec.forProvider.actionPoint is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ExtensionSpec @go(Spec) - status?: #ExtensionStatus @go(Status) -} - -// ExtensionList contains a list of Extensions -#ExtensionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Extension] @go(Items,[]Extension) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_extensionassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_extensionassociation_types_go_gen.cue deleted file mode 100644 index c3cd88b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_extensionassociation_types_go_gen.cue +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appconfig/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ExtensionAssociationInitParameters: { - // The parameter names and values defined for the association. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) -} - -#ExtensionAssociationObservation: { - // ARN of the AppConfig Extension Association. - arn?: null | string @go(Arn,*string) - - // The ARN of the extension defined in the association. - extensionArn?: null | string @go(ExtensionArn,*string) - - // The version number for the extension defined in the association. - extensionVersion?: null | float64 @go(ExtensionVersion,*float64) - - // AppConfig Extension Association ID. - id?: null | string @go(ID,*string) - - // The parameter names and values defined for the association. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // The ARN of the application, configuration profile, or environment to associate with the extension. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#ExtensionAssociationParameters: { - // The ARN of the extension defined in the association. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appconfig/v1beta1.Extension - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - extensionArn?: null | string @go(ExtensionArn,*string) - - // Reference to a Extension in appconfig to populate extensionArn. - // +kubebuilder:validation:Optional - extensionArnRef?: null | v1.#Reference @go(ExtensionArnRef,*v1.Reference) - - // Selector for a Extension in appconfig to populate extensionArn. - // +kubebuilder:validation:Optional - extensionArnSelector?: null | v1.#Selector @go(ExtensionArnSelector,*v1.Selector) - - // The parameter names and values defined for the association. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of the application, configuration profile, or environment to associate with the extension. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appconfig/v1beta1.Application - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a Application in appconfig to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a Application in appconfig to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) -} - -// ExtensionAssociationSpec defines the desired state of ExtensionAssociation -#ExtensionAssociationSpec: { - v1.#ResourceSpec - forProvider: #ExtensionAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ExtensionAssociationInitParameters @go(InitProvider) -} - -// ExtensionAssociationStatus defines the observed state of ExtensionAssociation. -#ExtensionAssociationStatus: { - v1.#ResourceStatus - atProvider?: #ExtensionAssociationObservation @go(AtProvider) -} - -// ExtensionAssociation is the Schema for the ExtensionAssociations API. Associates an AppConfig Extension with a Resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ExtensionAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ExtensionAssociationSpec @go(Spec) - status?: #ExtensionAssociationStatus @go(Status) -} - -// ExtensionAssociationList contains a list of ExtensionAssociations -#ExtensionAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ExtensionAssociation] @go(Items,[]ExtensionAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 07cd238..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appconfig/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=appconfig.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "appconfig.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_hostedconfigurationversion_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_hostedconfigurationversion_types_go_gen.cue deleted file mode 100644 index 0477257..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appconfig/v1beta1/zz_hostedconfigurationversion_types_go_gen.cue +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appconfig/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HostedConfigurationVersionInitParameters: { - // Standard MIME type describing the format of the configuration content. For more information, see Content-Type. - contentType?: null | string @go(ContentType,*string) - - // Description of the configuration. - description?: null | string @go(Description,*string) -} - -#HostedConfigurationVersionObservation: { - // Application ID. - applicationId?: null | string @go(ApplicationID,*string) - - // ARN of the AppConfig hosted configuration version. - arn?: null | string @go(Arn,*string) - - // Configuration profile ID. - configurationProfileId?: null | string @go(ConfigurationProfileID,*string) - - // Standard MIME type describing the format of the configuration content. For more information, see Content-Type. - contentType?: null | string @go(ContentType,*string) - - // Description of the configuration. - description?: null | string @go(Description,*string) - - // AppConfig application ID, configuration profile ID, and version number separated by a slash (/). - id?: null | string @go(ID,*string) - - // Version number of the hosted configuration. - versionNumber?: null | float64 @go(VersionNumber,*float64) -} - -#HostedConfigurationVersionParameters: { - // Application ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appconfig/v1beta1.Application - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - applicationId?: null | string @go(ApplicationID,*string) - - // Reference to a Application in appconfig to populate applicationId. - // +kubebuilder:validation:Optional - applicationIdRef?: null | v1.#Reference @go(ApplicationIDRef,*v1.Reference) - - // Selector for a Application in appconfig to populate applicationId. - // +kubebuilder:validation:Optional - applicationIdSelector?: null | v1.#Selector @go(ApplicationIDSelector,*v1.Selector) - - // Configuration profile ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appconfig/v1beta1.ConfigurationProfile - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("configuration_profile_id",true) - // +kubebuilder:validation:Optional - configurationProfileId?: null | string @go(ConfigurationProfileID,*string) - - // Reference to a ConfigurationProfile in appconfig to populate configurationProfileId. - // +kubebuilder:validation:Optional - configurationProfileIdRef?: null | v1.#Reference @go(ConfigurationProfileIDRef,*v1.Reference) - - // Selector for a ConfigurationProfile in appconfig to populate configurationProfileId. - // +kubebuilder:validation:Optional - configurationProfileIdSelector?: null | v1.#Selector @go(ConfigurationProfileIDSelector,*v1.Selector) - - // Content of the configuration or the configuration data. - // +kubebuilder:validation:Optional - contentSecretRef: v1.#SecretKeySelector @go(ContentSecretRef) - - // Standard MIME type describing the format of the configuration content. For more information, see Content-Type. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Description of the configuration. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// HostedConfigurationVersionSpec defines the desired state of HostedConfigurationVersion -#HostedConfigurationVersionSpec: { - v1.#ResourceSpec - forProvider: #HostedConfigurationVersionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HostedConfigurationVersionInitParameters @go(InitProvider) -} - -// HostedConfigurationVersionStatus defines the observed state of HostedConfigurationVersion. -#HostedConfigurationVersionStatus: { - v1.#ResourceStatus - atProvider?: #HostedConfigurationVersionObservation @go(AtProvider) -} - -// HostedConfigurationVersion is the Schema for the HostedConfigurationVersions API. Provides an AppConfig Hosted Configuration Version resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HostedConfigurationVersion: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.contentSecretRef)",message="spec.forProvider.contentSecretRef is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.contentType) || (has(self.initProvider) && has(self.initProvider.contentType))",message="spec.forProvider.contentType is a required parameter" - spec: #HostedConfigurationVersionSpec @go(Spec) - status?: #HostedConfigurationVersionStatus @go(Status) -} - -// HostedConfigurationVersionList contains a list of HostedConfigurationVersions -#HostedConfigurationVersionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HostedConfigurationVersion] @go(Items,[]HostedConfigurationVersion) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appflow/v1beta1/zz_flow_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appflow/v1beta1/zz_flow_types_go_gen.cue deleted file mode 100644 index 4de9a13..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appflow/v1beta1/zz_flow_types_go_gen.cue +++ /dev/null @@ -1,2273 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appflow/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AggregationConfigInitParameters: { - // Whether Amazon AppFlow aggregates the flow records into a single file, or leave them unaggregated. Valid values are None and SingleFile. - aggregationType?: null | string @go(AggregationType,*string) -} - -#AggregationConfigObservation: { - // Whether Amazon AppFlow aggregates the flow records into a single file, or leave them unaggregated. Valid values are None and SingleFile. - aggregationType?: null | string @go(AggregationType,*string) -} - -#AggregationConfigParameters: { - // Whether Amazon AppFlow aggregates the flow records into a single file, or leave them unaggregated. Valid values are None and SingleFile. - // +kubebuilder:validation:Optional - aggregationType?: null | string @go(AggregationType,*string) -} - -#AmplitudeInitParameters: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#AmplitudeObservation: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#AmplitudeParameters: { - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#ConnectorOperatorInitParameters: { - // Information that is required for querying Amplitude. See Generic Source Properties for more details. - amplitude?: null | string @go(Amplitude,*string) - - // Properties that are required to query the custom Connector. See Custom Connector Destination Properties for more details. - customConnector?: null | string @go(CustomConnector,*string) - - // Information that is required for querying Datadog. See Generic Source Properties for more details. - datadog?: null | string @go(Datadog,*string) - - // Operation to be performed on the provided Dynatrace source fields. Valid values are PROJECTION, BETWEEN, EQUAL_TO, ADDITION, MULTIPLICATION, DIVISION, SUBTRACTION, MASK_ALL, MASK_FIRST_N, MASK_LAST_N, VALIDATE_NON_NULL, VALIDATE_NON_ZERO, VALIDATE_NON_NEGATIVE, VALIDATE_NUMERIC, and NO_OP. - dynatrace?: null | string @go(Dynatrace,*string) - - // Operation to be performed on the provided Google Analytics source fields. Valid values are PROJECTION and BETWEEN. - googleAnalytics?: null | string @go(GoogleAnalytics,*string) - - // Information that is required for querying Infor Nexus. See Generic Source Properties for more details. - inforNexus?: null | string @go(InforNexus,*string) - - // Properties that are required to query Marketo. See Generic Destination Properties for more details. - marketo?: null | string @go(Marketo,*string) - - // Properties that are required to query Amazon S3. See S3 Destination Properties for more details. - s3?: null | string @go(S3,*string) - - // Properties that are required to query Salesforce. See Salesforce Destination Properties for more details. - salesforce?: null | string @go(Salesforce,*string) - - // Properties that are required to query SAPOData. See SAPOData Destination Properties for more details. - sapoData?: null | string @go(SapoData,*string) - - // Information that is required for querying ServiceNow. See Generic Source Properties for more details. - serviceNow?: null | string @go(ServiceNow,*string) - - // Information that is required for querying Singular. See Generic Source Properties for more details. - singular?: null | string @go(Singular,*string) - - // Information that is required for querying Slack. See Generic Source Properties for more details. - slack?: null | string @go(Slack,*string) - - // Operation to be performed on the provided Trend Micro source fields. Valid values are PROJECTION, EQUAL_TO, ADDITION, MULTIPLICATION, DIVISION, SUBTRACTION, MASK_ALL, MASK_FIRST_N, MASK_LAST_N, VALIDATE_NON_NULL, VALIDATE_NON_ZERO, VALIDATE_NON_NEGATIVE, VALIDATE_NUMERIC, and NO_OP. - trendmicro?: null | string @go(Trendmicro,*string) - - // Information that is required for querying Veeva. See Veeva Source Properties for more details. - veeva?: null | string @go(Veeva,*string) - - // Properties that are required to query Zendesk. See Zendesk Destination Properties for more details. - zendesk?: null | string @go(Zendesk,*string) -} - -#ConnectorOperatorObservation: { - // Information that is required for querying Amplitude. See Generic Source Properties for more details. - amplitude?: null | string @go(Amplitude,*string) - - // Properties that are required to query the custom Connector. See Custom Connector Destination Properties for more details. - customConnector?: null | string @go(CustomConnector,*string) - - // Information that is required for querying Datadog. See Generic Source Properties for more details. - datadog?: null | string @go(Datadog,*string) - - // Operation to be performed on the provided Dynatrace source fields. Valid values are PROJECTION, BETWEEN, EQUAL_TO, ADDITION, MULTIPLICATION, DIVISION, SUBTRACTION, MASK_ALL, MASK_FIRST_N, MASK_LAST_N, VALIDATE_NON_NULL, VALIDATE_NON_ZERO, VALIDATE_NON_NEGATIVE, VALIDATE_NUMERIC, and NO_OP. - dynatrace?: null | string @go(Dynatrace,*string) - - // Operation to be performed on the provided Google Analytics source fields. Valid values are PROJECTION and BETWEEN. - googleAnalytics?: null | string @go(GoogleAnalytics,*string) - - // Information that is required for querying Infor Nexus. See Generic Source Properties for more details. - inforNexus?: null | string @go(InforNexus,*string) - - // Properties that are required to query Marketo. See Generic Destination Properties for more details. - marketo?: null | string @go(Marketo,*string) - - // Properties that are required to query Amazon S3. See S3 Destination Properties for more details. - s3?: null | string @go(S3,*string) - - // Properties that are required to query Salesforce. See Salesforce Destination Properties for more details. - salesforce?: null | string @go(Salesforce,*string) - - // Properties that are required to query SAPOData. See SAPOData Destination Properties for more details. - sapoData?: null | string @go(SapoData,*string) - - // Information that is required for querying ServiceNow. See Generic Source Properties for more details. - serviceNow?: null | string @go(ServiceNow,*string) - - // Information that is required for querying Singular. See Generic Source Properties for more details. - singular?: null | string @go(Singular,*string) - - // Information that is required for querying Slack. See Generic Source Properties for more details. - slack?: null | string @go(Slack,*string) - - // Operation to be performed on the provided Trend Micro source fields. Valid values are PROJECTION, EQUAL_TO, ADDITION, MULTIPLICATION, DIVISION, SUBTRACTION, MASK_ALL, MASK_FIRST_N, MASK_LAST_N, VALIDATE_NON_NULL, VALIDATE_NON_ZERO, VALIDATE_NON_NEGATIVE, VALIDATE_NUMERIC, and NO_OP. - trendmicro?: null | string @go(Trendmicro,*string) - - // Information that is required for querying Veeva. See Veeva Source Properties for more details. - veeva?: null | string @go(Veeva,*string) - - // Properties that are required to query Zendesk. See Zendesk Destination Properties for more details. - zendesk?: null | string @go(Zendesk,*string) -} - -#ConnectorOperatorParameters: { - // Information that is required for querying Amplitude. See Generic Source Properties for more details. - // +kubebuilder:validation:Optional - amplitude?: null | string @go(Amplitude,*string) - - // Properties that are required to query the custom Connector. See Custom Connector Destination Properties for more details. - // +kubebuilder:validation:Optional - customConnector?: null | string @go(CustomConnector,*string) - - // Information that is required for querying Datadog. See Generic Source Properties for more details. - // +kubebuilder:validation:Optional - datadog?: null | string @go(Datadog,*string) - - // Operation to be performed on the provided Dynatrace source fields. Valid values are PROJECTION, BETWEEN, EQUAL_TO, ADDITION, MULTIPLICATION, DIVISION, SUBTRACTION, MASK_ALL, MASK_FIRST_N, MASK_LAST_N, VALIDATE_NON_NULL, VALIDATE_NON_ZERO, VALIDATE_NON_NEGATIVE, VALIDATE_NUMERIC, and NO_OP. - // +kubebuilder:validation:Optional - dynatrace?: null | string @go(Dynatrace,*string) - - // Operation to be performed on the provided Google Analytics source fields. Valid values are PROJECTION and BETWEEN. - // +kubebuilder:validation:Optional - googleAnalytics?: null | string @go(GoogleAnalytics,*string) - - // Information that is required for querying Infor Nexus. See Generic Source Properties for more details. - // +kubebuilder:validation:Optional - inforNexus?: null | string @go(InforNexus,*string) - - // Properties that are required to query Marketo. See Generic Destination Properties for more details. - // +kubebuilder:validation:Optional - marketo?: null | string @go(Marketo,*string) - - // Properties that are required to query Amazon S3. See S3 Destination Properties for more details. - // +kubebuilder:validation:Optional - s3?: null | string @go(S3,*string) - - // Properties that are required to query Salesforce. See Salesforce Destination Properties for more details. - // +kubebuilder:validation:Optional - salesforce?: null | string @go(Salesforce,*string) - - // Properties that are required to query SAPOData. See SAPOData Destination Properties for more details. - // +kubebuilder:validation:Optional - sapoData?: null | string @go(SapoData,*string) - - // Information that is required for querying ServiceNow. See Generic Source Properties for more details. - // +kubebuilder:validation:Optional - serviceNow?: null | string @go(ServiceNow,*string) - - // Information that is required for querying Singular. See Generic Source Properties for more details. - // +kubebuilder:validation:Optional - singular?: null | string @go(Singular,*string) - - // Information that is required for querying Slack. See Generic Source Properties for more details. - // +kubebuilder:validation:Optional - slack?: null | string @go(Slack,*string) - - // Operation to be performed on the provided Trend Micro source fields. Valid values are PROJECTION, EQUAL_TO, ADDITION, MULTIPLICATION, DIVISION, SUBTRACTION, MASK_ALL, MASK_FIRST_N, MASK_LAST_N, VALIDATE_NON_NULL, VALIDATE_NON_ZERO, VALIDATE_NON_NEGATIVE, VALIDATE_NUMERIC, and NO_OP. - // +kubebuilder:validation:Optional - trendmicro?: null | string @go(Trendmicro,*string) - - // Information that is required for querying Veeva. See Veeva Source Properties for more details. - // +kubebuilder:validation:Optional - veeva?: null | string @go(Veeva,*string) - - // Properties that are required to query Zendesk. See Zendesk Destination Properties for more details. - // +kubebuilder:validation:Optional - zendesk?: null | string @go(Zendesk,*string) -} - -#CustomConnectorInitParameters: { - // Custom properties that are specific to the connector when it's used as a destination in the flow. Maximum of 50 items. - customProperties?: {[string]: null | string} @go(CustomProperties,map[string]*string) - - // Entity specified in the custom connector as a destination in the flow. - entityName?: null | string @go(EntityName,*string) - - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#ErrorHandlingConfigInitParameters] @go(ErrorHandlingConfig,[]ErrorHandlingConfigInitParameters) - - // Name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, or upsert. - idFieldNames?: [...null | string] @go(IDFieldNames,[]*string) - - // Type of write operation to be performed in the custom connector when it's used as destination. Valid values are INSERT, UPSERT, UPDATE, and DELETE. - writeOperationType?: null | string @go(WriteOperationType,*string) -} - -#CustomConnectorObservation: { - // Custom properties that are specific to the connector when it's used as a destination in the flow. Maximum of 50 items. - customProperties?: {[string]: null | string} @go(CustomProperties,map[string]*string) - - // Entity specified in the custom connector as a destination in the flow. - entityName?: null | string @go(EntityName,*string) - - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#ErrorHandlingConfigObservation] @go(ErrorHandlingConfig,[]ErrorHandlingConfigObservation) - - // Name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, or upsert. - idFieldNames?: [...null | string] @go(IDFieldNames,[]*string) - - // Type of write operation to be performed in the custom connector when it's used as destination. Valid values are INSERT, UPSERT, UPDATE, and DELETE. - writeOperationType?: null | string @go(WriteOperationType,*string) -} - -#CustomConnectorParameters: { - // Custom properties that are specific to the connector when it's used as a destination in the flow. Maximum of 50 items. - // +kubebuilder:validation:Optional - customProperties?: {[string]: null | string} @go(CustomProperties,map[string]*string) - - // Entity specified in the custom connector as a destination in the flow. - // +kubebuilder:validation:Optional - entityName?: null | string @go(EntityName,*string) - - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - // +kubebuilder:validation:Optional - errorHandlingConfig?: [...#ErrorHandlingConfigParameters] @go(ErrorHandlingConfig,[]ErrorHandlingConfigParameters) - - // Name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, or upsert. - // +kubebuilder:validation:Optional - idFieldNames?: [...null | string] @go(IDFieldNames,[]*string) - - // Type of write operation to be performed in the custom connector when it's used as destination. Valid values are INSERT, UPSERT, UPDATE, and DELETE. - // +kubebuilder:validation:Optional - writeOperationType?: null | string @go(WriteOperationType,*string) -} - -#CustomerProfilesInitParameters: { - // Unique name of the Amazon Connect Customer Profiles domain. - domainName?: null | string @go(DomainName,*string) - - // Object specified in the Amazon Connect Customer Profiles flow destination. - objectTypeName?: null | string @go(ObjectTypeName,*string) -} - -#CustomerProfilesObservation: { - // Unique name of the Amazon Connect Customer Profiles domain. - domainName?: null | string @go(DomainName,*string) - - // Object specified in the Amazon Connect Customer Profiles flow destination. - objectTypeName?: null | string @go(ObjectTypeName,*string) -} - -#CustomerProfilesParameters: { - // Unique name of the Amazon Connect Customer Profiles domain. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Object specified in the Amazon Connect Customer Profiles flow destination. - // +kubebuilder:validation:Optional - objectTypeName?: null | string @go(ObjectTypeName,*string) -} - -#DatadogInitParameters: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#DatadogObservation: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#DatadogParameters: { - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#DestinationConnectorPropertiesInitParameters: { - // Properties that are required to query the custom Connector. See Custom Connector Destination Properties for more details. - customConnector?: [...#CustomConnectorInitParameters] @go(CustomConnector,[]CustomConnectorInitParameters) - - // Properties that are required to query Amazon Connect Customer Profiles. See Customer Profiles Destination Properties for more details. - customerProfiles?: [...#CustomerProfilesInitParameters] @go(CustomerProfiles,[]CustomerProfilesInitParameters) - - // Properties that are required to query Amazon EventBridge. See Generic Destination Properties for more details. - eventBridge?: [...#EventBridgeInitParameters] @go(EventBridge,[]EventBridgeInitParameters) - - // Properties that are required to query Amazon Honeycode. See Generic Destination Properties for more details. - honeycode?: [...#HoneycodeInitParameters] @go(Honeycode,[]HoneycodeInitParameters) - lookoutMetrics?: [...#LookoutMetricsInitParameters] @go(LookoutMetrics,[]LookoutMetricsInitParameters) - - // Properties that are required to query Marketo. See Generic Destination Properties for more details. - marketo?: [...#MarketoInitParameters] @go(Marketo,[]MarketoInitParameters) - - // Properties that are required to query Amazon Redshift. See Redshift Destination Properties for more details. - redshift?: [...#RedshiftInitParameters] @go(Redshift,[]RedshiftInitParameters) - - // Properties that are required to query Amazon S3. See S3 Destination Properties for more details. - s3?: [...#S3InitParameters] @go(S3,[]S3InitParameters) - - // Properties that are required to query Salesforce. See Salesforce Destination Properties for more details. - salesforce?: [...#SalesforceInitParameters] @go(Salesforce,[]SalesforceInitParameters) - - // Properties that are required to query SAPOData. See SAPOData Destination Properties for more details. - sapoData?: [...#SapoDataInitParameters] @go(SapoData,[]SapoDataInitParameters) - - // Properties that are required to query Snowflake. See Snowflake Destination Properties for more details. - snowflake?: [...#SnowflakeInitParameters] @go(Snowflake,[]SnowflakeInitParameters) - - // Properties that are required to query Upsolver. See Upsolver Destination Properties for more details. - upsolver?: [...#UpsolverInitParameters] @go(Upsolver,[]UpsolverInitParameters) - - // Properties that are required to query Zendesk. See Zendesk Destination Properties for more details. - zendesk?: [...#ZendeskInitParameters] @go(Zendesk,[]ZendeskInitParameters) -} - -#DestinationConnectorPropertiesObservation: { - // Properties that are required to query the custom Connector. See Custom Connector Destination Properties for more details. - customConnector?: [...#CustomConnectorObservation] @go(CustomConnector,[]CustomConnectorObservation) - - // Properties that are required to query Amazon Connect Customer Profiles. See Customer Profiles Destination Properties for more details. - customerProfiles?: [...#CustomerProfilesObservation] @go(CustomerProfiles,[]CustomerProfilesObservation) - - // Properties that are required to query Amazon EventBridge. See Generic Destination Properties for more details. - eventBridge?: [...#EventBridgeObservation] @go(EventBridge,[]EventBridgeObservation) - - // Properties that are required to query Amazon Honeycode. See Generic Destination Properties for more details. - honeycode?: [...#HoneycodeObservation] @go(Honeycode,[]HoneycodeObservation) - lookoutMetrics?: [...#LookoutMetricsParameters] @go(LookoutMetrics,[]LookoutMetricsParameters) - - // Properties that are required to query Marketo. See Generic Destination Properties for more details. - marketo?: [...#MarketoObservation] @go(Marketo,[]MarketoObservation) - - // Properties that are required to query Amazon Redshift. See Redshift Destination Properties for more details. - redshift?: [...#RedshiftObservation] @go(Redshift,[]RedshiftObservation) - - // Properties that are required to query Amazon S3. See S3 Destination Properties for more details. - s3?: [...#S3Observation] @go(S3,[]S3Observation) - - // Properties that are required to query Salesforce. See Salesforce Destination Properties for more details. - salesforce?: [...#SalesforceObservation] @go(Salesforce,[]SalesforceObservation) - - // Properties that are required to query SAPOData. See SAPOData Destination Properties for more details. - sapoData?: [...#SapoDataObservation] @go(SapoData,[]SapoDataObservation) - - // Properties that are required to query Snowflake. See Snowflake Destination Properties for more details. - snowflake?: [...#SnowflakeObservation] @go(Snowflake,[]SnowflakeObservation) - - // Properties that are required to query Upsolver. See Upsolver Destination Properties for more details. - upsolver?: [...#UpsolverObservation] @go(Upsolver,[]UpsolverObservation) - - // Properties that are required to query Zendesk. See Zendesk Destination Properties for more details. - zendesk?: [...#ZendeskObservation] @go(Zendesk,[]ZendeskObservation) -} - -#DestinationConnectorPropertiesParameters: { - // Properties that are required to query the custom Connector. See Custom Connector Destination Properties for more details. - // +kubebuilder:validation:Optional - customConnector?: [...#CustomConnectorParameters] @go(CustomConnector,[]CustomConnectorParameters) - - // Properties that are required to query Amazon Connect Customer Profiles. See Customer Profiles Destination Properties for more details. - // +kubebuilder:validation:Optional - customerProfiles?: [...#CustomerProfilesParameters] @go(CustomerProfiles,[]CustomerProfilesParameters) - - // Properties that are required to query Amazon EventBridge. See Generic Destination Properties for more details. - // +kubebuilder:validation:Optional - eventBridge?: [...#EventBridgeParameters] @go(EventBridge,[]EventBridgeParameters) - - // Properties that are required to query Amazon Honeycode. See Generic Destination Properties for more details. - // +kubebuilder:validation:Optional - honeycode?: [...#HoneycodeParameters] @go(Honeycode,[]HoneycodeParameters) - - // +kubebuilder:validation:Optional - lookoutMetrics?: [...#LookoutMetricsParameters] @go(LookoutMetrics,[]LookoutMetricsParameters) - - // Properties that are required to query Marketo. See Generic Destination Properties for more details. - // +kubebuilder:validation:Optional - marketo?: [...#MarketoParameters] @go(Marketo,[]MarketoParameters) - - // Properties that are required to query Amazon Redshift. See Redshift Destination Properties for more details. - // +kubebuilder:validation:Optional - redshift?: [...#RedshiftParameters] @go(Redshift,[]RedshiftParameters) - - // Properties that are required to query Amazon S3. See S3 Destination Properties for more details. - // +kubebuilder:validation:Optional - s3?: [...#S3Parameters] @go(S3,[]S3Parameters) - - // Properties that are required to query Salesforce. See Salesforce Destination Properties for more details. - // +kubebuilder:validation:Optional - salesforce?: [...#SalesforceParameters] @go(Salesforce,[]SalesforceParameters) - - // Properties that are required to query SAPOData. See SAPOData Destination Properties for more details. - // +kubebuilder:validation:Optional - sapoData?: [...#SapoDataParameters] @go(SapoData,[]SapoDataParameters) - - // Properties that are required to query Snowflake. See Snowflake Destination Properties for more details. - // +kubebuilder:validation:Optional - snowflake?: [...#SnowflakeParameters] @go(Snowflake,[]SnowflakeParameters) - - // Properties that are required to query Upsolver. See Upsolver Destination Properties for more details. - // +kubebuilder:validation:Optional - upsolver?: [...#UpsolverParameters] @go(Upsolver,[]UpsolverParameters) - - // Properties that are required to query Zendesk. See Zendesk Destination Properties for more details. - // +kubebuilder:validation:Optional - zendesk?: [...#ZendeskParameters] @go(Zendesk,[]ZendeskParameters) -} - -#DestinationFlowConfigInitParameters: { - // API version that the destination connector uses. - apiVersion?: null | string @go(APIVersion,*string) - - // Name of the connector profile. This name must be unique for each connector profile in the AWS account. - connectorProfileName?: null | string @go(ConnectorProfileName,*string) - - // Type of connector, such as Salesforce, Amplitude, and so on. Valid values are Salesforce, Singular, Slack, Redshift, S3, Marketo, Googleanalytics, Zendesk, Servicenow, Datadog, Trendmicro, Snowflake, Dynatrace, Infornexus, Amplitude, Veeva, EventBridge, LookoutMetrics, Upsolver, Honeycode, CustomerProfiles, SAPOData, and CustomConnector. - connectorType?: null | string @go(ConnectorType,*string) - - // This stores the information that is required to query a particular connector. See Destination Connector Properties for more information. - destinationConnectorProperties?: [...#DestinationConnectorPropertiesInitParameters] @go(DestinationConnectorProperties,[]DestinationConnectorPropertiesInitParameters) -} - -#DestinationFlowConfigObservation: { - // API version that the destination connector uses. - apiVersion?: null | string @go(APIVersion,*string) - - // Name of the connector profile. This name must be unique for each connector profile in the AWS account. - connectorProfileName?: null | string @go(ConnectorProfileName,*string) - - // Type of connector, such as Salesforce, Amplitude, and so on. Valid values are Salesforce, Singular, Slack, Redshift, S3, Marketo, Googleanalytics, Zendesk, Servicenow, Datadog, Trendmicro, Snowflake, Dynatrace, Infornexus, Amplitude, Veeva, EventBridge, LookoutMetrics, Upsolver, Honeycode, CustomerProfiles, SAPOData, and CustomConnector. - connectorType?: null | string @go(ConnectorType,*string) - - // This stores the information that is required to query a particular connector. See Destination Connector Properties for more information. - destinationConnectorProperties?: [...#DestinationConnectorPropertiesObservation] @go(DestinationConnectorProperties,[]DestinationConnectorPropertiesObservation) -} - -#DestinationFlowConfigParameters: { - // API version that the destination connector uses. - // +kubebuilder:validation:Optional - apiVersion?: null | string @go(APIVersion,*string) - - // Name of the connector profile. This name must be unique for each connector profile in the AWS account. - // +kubebuilder:validation:Optional - connectorProfileName?: null | string @go(ConnectorProfileName,*string) - - // Type of connector, such as Salesforce, Amplitude, and so on. Valid values are Salesforce, Singular, Slack, Redshift, S3, Marketo, Googleanalytics, Zendesk, Servicenow, Datadog, Trendmicro, Snowflake, Dynatrace, Infornexus, Amplitude, Veeva, EventBridge, LookoutMetrics, Upsolver, Honeycode, CustomerProfiles, SAPOData, and CustomConnector. - // +kubebuilder:validation:Optional - connectorType?: null | string @go(ConnectorType,*string) - - // This stores the information that is required to query a particular connector. See Destination Connector Properties for more information. - // +kubebuilder:validation:Optional - destinationConnectorProperties: [...#DestinationConnectorPropertiesParameters] @go(DestinationConnectorProperties,[]DestinationConnectorPropertiesParameters) -} - -#DynatraceInitParameters: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#DynatraceObservation: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#DynatraceParameters: { - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#ErrorHandlingConfigInitParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#ErrorHandlingConfigObservation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#ErrorHandlingConfigParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - // +kubebuilder:validation:Optional - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#EventBridgeErrorHandlingConfigInitParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#EventBridgeErrorHandlingConfigObservation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#EventBridgeErrorHandlingConfigParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - // +kubebuilder:validation:Optional - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#EventBridgeInitParameters: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#EventBridgeErrorHandlingConfigInitParameters] @go(ErrorHandlingConfig,[]EventBridgeErrorHandlingConfigInitParameters) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#EventBridgeObservation: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#EventBridgeErrorHandlingConfigObservation] @go(ErrorHandlingConfig,[]EventBridgeErrorHandlingConfigObservation) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#EventBridgeParameters: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - // +kubebuilder:validation:Optional - errorHandlingConfig?: [...#EventBridgeErrorHandlingConfigParameters] @go(ErrorHandlingConfig,[]EventBridgeErrorHandlingConfigParameters) - - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#FlowInitParameters: { - // Description of the flow you want to create. - description?: null | string @go(Description,*string) - - // A Destination Flow Config that controls how Amazon AppFlow places data in the destination connector. - destinationFlowConfig?: [...#DestinationFlowConfigInitParameters] @go(DestinationFlowConfig,[]DestinationFlowConfigInitParameters) - - // ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here, Amazon AppFlow uses the Amazon AppFlow-managed KMS key. - kmsArn?: null | string @go(KMSArn,*string) - - // The Source Flow Config that controls how Amazon AppFlow retrieves data from the source connector. - sourceFlowConfig?: [...#SourceFlowConfigInitParameters] @go(SourceFlowConfig,[]SourceFlowConfigInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A Task that Amazon AppFlow performs while transferring the data in the flow run. - task?: [...#TaskInitParameters] @go(Task,[]TaskInitParameters) - - // A Trigger that determine how and when the flow runs. - triggerConfig?: [...#TriggerConfigInitParameters] @go(TriggerConfig,[]TriggerConfigInitParameters) -} - -#FlowObservation: { - // Flow's ARN. - arn?: null | string @go(Arn,*string) - - // Description of the flow you want to create. - description?: null | string @go(Description,*string) - - // A Destination Flow Config that controls how Amazon AppFlow places data in the destination connector. - destinationFlowConfig?: [...#DestinationFlowConfigObservation] @go(DestinationFlowConfig,[]DestinationFlowConfigObservation) - id?: null | string @go(ID,*string) - - // ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here, Amazon AppFlow uses the Amazon AppFlow-managed KMS key. - kmsArn?: null | string @go(KMSArn,*string) - - // The Source Flow Config that controls how Amazon AppFlow retrieves data from the source connector. - sourceFlowConfig?: [...#SourceFlowConfigObservation] @go(SourceFlowConfig,[]SourceFlowConfigObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // A Task that Amazon AppFlow performs while transferring the data in the flow run. - task?: [...#TaskObservation] @go(Task,[]TaskObservation) - - // A Trigger that determine how and when the flow runs. - triggerConfig?: [...#TriggerConfigObservation] @go(TriggerConfig,[]TriggerConfigObservation) -} - -#FlowParameters: { - // Description of the flow you want to create. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A Destination Flow Config that controls how Amazon AppFlow places data in the destination connector. - // +kubebuilder:validation:Optional - destinationFlowConfig?: [...#DestinationFlowConfigParameters] @go(DestinationFlowConfig,[]DestinationFlowConfigParameters) - - // ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here, Amazon AppFlow uses the Amazon AppFlow-managed KMS key. - // +kubebuilder:validation:Optional - kmsArn?: null | string @go(KMSArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Source Flow Config that controls how Amazon AppFlow retrieves data from the source connector. - // +kubebuilder:validation:Optional - sourceFlowConfig?: [...#SourceFlowConfigParameters] @go(SourceFlowConfig,[]SourceFlowConfigParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A Task that Amazon AppFlow performs while transferring the data in the flow run. - // +kubebuilder:validation:Optional - task?: [...#TaskParameters] @go(Task,[]TaskParameters) - - // A Trigger that determine how and when the flow runs. - // +kubebuilder:validation:Optional - triggerConfig?: [...#TriggerConfigParameters] @go(TriggerConfig,[]TriggerConfigParameters) -} - -#GoogleAnalyticsInitParameters: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#GoogleAnalyticsObservation: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#GoogleAnalyticsParameters: { - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#HoneycodeErrorHandlingConfigInitParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#HoneycodeErrorHandlingConfigObservation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#HoneycodeErrorHandlingConfigParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - // +kubebuilder:validation:Optional - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#HoneycodeInitParameters: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#HoneycodeErrorHandlingConfigInitParameters] @go(ErrorHandlingConfig,[]HoneycodeErrorHandlingConfigInitParameters) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#HoneycodeObservation: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#HoneycodeErrorHandlingConfigObservation] @go(ErrorHandlingConfig,[]HoneycodeErrorHandlingConfigObservation) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#HoneycodeParameters: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - // +kubebuilder:validation:Optional - errorHandlingConfig?: [...#HoneycodeErrorHandlingConfigParameters] @go(ErrorHandlingConfig,[]HoneycodeErrorHandlingConfigParameters) - - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#IncrementalPullConfigInitParameters: { - // Field that specifies the date time or timestamp field as the criteria to use when importing incremental records from the source. - datetimeTypeFieldName?: null | string @go(DatetimeTypeFieldName,*string) -} - -#IncrementalPullConfigObservation: { - // Field that specifies the date time or timestamp field as the criteria to use when importing incremental records from the source. - datetimeTypeFieldName?: null | string @go(DatetimeTypeFieldName,*string) -} - -#IncrementalPullConfigParameters: { - // Field that specifies the date time or timestamp field as the criteria to use when importing incremental records from the source. - // +kubebuilder:validation:Optional - datetimeTypeFieldName?: null | string @go(DatetimeTypeFieldName,*string) -} - -#InforNexusInitParameters: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#InforNexusObservation: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#InforNexusParameters: { - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#LookoutMetricsInitParameters: { -} - -#LookoutMetricsObservation: { -} - -#LookoutMetricsParameters: { -} - -#MarketoErrorHandlingConfigInitParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#MarketoErrorHandlingConfigObservation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#MarketoErrorHandlingConfigParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - // +kubebuilder:validation:Optional - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#MarketoInitParameters: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#MarketoErrorHandlingConfigInitParameters] @go(ErrorHandlingConfig,[]MarketoErrorHandlingConfigInitParameters) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#MarketoObservation: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#MarketoErrorHandlingConfigObservation] @go(ErrorHandlingConfig,[]MarketoErrorHandlingConfigObservation) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#MarketoParameters: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - // +kubebuilder:validation:Optional - errorHandlingConfig?: [...#MarketoErrorHandlingConfigParameters] @go(ErrorHandlingConfig,[]MarketoErrorHandlingConfigParameters) - - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#PrefixConfigInitParameters: { - // Determines the level of granularity that's included in the prefix. Valid values are YEAR, MONTH, DAY, HOUR, and MINUTE. - prefixFormat?: null | string @go(PrefixFormat,*string) - - // Determines the format of the prefix, and whether it applies to the file name, file path, or both. Valid values are FILENAME, PATH, and PATH_AND_FILENAME. - prefixType?: null | string @go(PrefixType,*string) -} - -#PrefixConfigObservation: { - // Determines the level of granularity that's included in the prefix. Valid values are YEAR, MONTH, DAY, HOUR, and MINUTE. - prefixFormat?: null | string @go(PrefixFormat,*string) - - // Determines the format of the prefix, and whether it applies to the file name, file path, or both. Valid values are FILENAME, PATH, and PATH_AND_FILENAME. - prefixType?: null | string @go(PrefixType,*string) -} - -#PrefixConfigParameters: { - // Determines the level of granularity that's included in the prefix. Valid values are YEAR, MONTH, DAY, HOUR, and MINUTE. - // +kubebuilder:validation:Optional - prefixFormat?: null | string @go(PrefixFormat,*string) - - // Determines the format of the prefix, and whether it applies to the file name, file path, or both. Valid values are FILENAME, PATH, and PATH_AND_FILENAME. - // +kubebuilder:validation:Optional - prefixType?: null | string @go(PrefixType,*string) -} - -#RedshiftErrorHandlingConfigInitParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#RedshiftErrorHandlingConfigObservation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#RedshiftErrorHandlingConfigParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - // +kubebuilder:validation:Optional - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#RedshiftInitParameters: { - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#RedshiftErrorHandlingConfigInitParameters] @go(ErrorHandlingConfig,[]RedshiftErrorHandlingConfigInitParameters) - - // Intermediate bucket that Amazon AppFlow uses when moving data into Amazon Redshift. - intermediateBucketName?: null | string @go(IntermediateBucketName,*string) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#RedshiftObservation: { - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#RedshiftErrorHandlingConfigObservation] @go(ErrorHandlingConfig,[]RedshiftErrorHandlingConfigObservation) - - // Intermediate bucket that Amazon AppFlow uses when moving data into Amazon Redshift. - intermediateBucketName?: null | string @go(IntermediateBucketName,*string) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#RedshiftParameters: { - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - // +kubebuilder:validation:Optional - errorHandlingConfig?: [...#RedshiftErrorHandlingConfigParameters] @go(ErrorHandlingConfig,[]RedshiftErrorHandlingConfigParameters) - - // Intermediate bucket that Amazon AppFlow uses when moving data into Amazon Redshift. - // +kubebuilder:validation:Optional - intermediateBucketName?: null | string @go(IntermediateBucketName,*string) - - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#S3InitParameters: { - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination. See S3 Output Format Config for more details. - s3OutputFormatConfig?: [...#S3OutputFormatConfigInitParameters] @go(S3OutputFormatConfig,[]S3OutputFormatConfigInitParameters) -} - -#S3InputFormatConfigInitParameters: { - // File type that Amazon AppFlow gets from your Amazon S3 bucket. Valid values are CSV and JSON. - s3InputFileType?: null | string @go(S3InputFileType,*string) -} - -#S3InputFormatConfigObservation: { - // File type that Amazon AppFlow gets from your Amazon S3 bucket. Valid values are CSV and JSON. - s3InputFileType?: null | string @go(S3InputFileType,*string) -} - -#S3InputFormatConfigParameters: { - // File type that Amazon AppFlow gets from your Amazon S3 bucket. Valid values are CSV and JSON. - // +kubebuilder:validation:Optional - s3InputFileType?: null | string @go(S3InputFileType,*string) -} - -#S3Observation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination. See S3 Output Format Config for more details. - s3OutputFormatConfig?: [...#S3OutputFormatConfigObservation] @go(S3OutputFormatConfig,[]S3OutputFormatConfigObservation) -} - -#S3OutputFormatConfigAggregationConfigInitParameters: { - // Whether Amazon AppFlow aggregates the flow records into a single file, or leave them unaggregated. Valid values are None and SingleFile. - aggregationType?: null | string @go(AggregationType,*string) -} - -#S3OutputFormatConfigAggregationConfigObservation: { - // Whether Amazon AppFlow aggregates the flow records into a single file, or leave them unaggregated. Valid values are None and SingleFile. - aggregationType?: null | string @go(AggregationType,*string) -} - -#S3OutputFormatConfigAggregationConfigParameters: { - // Whether Amazon AppFlow aggregates the flow records into a single file, or leave them unaggregated. Valid values are None and SingleFile. - // +kubebuilder:validation:Optional - aggregationType?: null | string @go(AggregationType,*string) -} - -#S3OutputFormatConfigInitParameters: { - // Aggregation settings that you can use to customize the output format of your flow data. See Aggregation Config for more details. - aggregationConfig?: [...#AggregationConfigInitParameters] @go(AggregationConfig,[]AggregationConfigInitParameters) - - // File type that Amazon AppFlow places in the Amazon S3 bucket. Valid values are CSV, JSON, and PARQUET. - fileType?: null | string @go(FileType,*string) - - // Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name folders according to the flow frequency and date. See Prefix Config for more details. - prefixConfig?: [...#PrefixConfigInitParameters] @go(PrefixConfig,[]PrefixConfigInitParameters) - - // Whether the data types from the source system need to be preserved (Only valid for Parquet file type) - preserveSourceDataTyping?: null | bool @go(PreserveSourceDataTyping,*bool) -} - -#S3OutputFormatConfigObservation: { - // Aggregation settings that you can use to customize the output format of your flow data. See Aggregation Config for more details. - aggregationConfig?: [...#AggregationConfigObservation] @go(AggregationConfig,[]AggregationConfigObservation) - - // File type that Amazon AppFlow places in the Amazon S3 bucket. Valid values are CSV, JSON, and PARQUET. - fileType?: null | string @go(FileType,*string) - - // Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name folders according to the flow frequency and date. See Prefix Config for more details. - prefixConfig?: [...#PrefixConfigObservation] @go(PrefixConfig,[]PrefixConfigObservation) - - // Whether the data types from the source system need to be preserved (Only valid for Parquet file type) - preserveSourceDataTyping?: null | bool @go(PreserveSourceDataTyping,*bool) -} - -#S3OutputFormatConfigParameters: { - // Aggregation settings that you can use to customize the output format of your flow data. See Aggregation Config for more details. - // +kubebuilder:validation:Optional - aggregationConfig?: [...#AggregationConfigParameters] @go(AggregationConfig,[]AggregationConfigParameters) - - // File type that Amazon AppFlow places in the Amazon S3 bucket. Valid values are CSV, JSON, and PARQUET. - // +kubebuilder:validation:Optional - fileType?: null | string @go(FileType,*string) - - // Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name folders according to the flow frequency and date. See Prefix Config for more details. - // +kubebuilder:validation:Optional - prefixConfig?: [...#PrefixConfigParameters] @go(PrefixConfig,[]PrefixConfigParameters) - - // Whether the data types from the source system need to be preserved (Only valid for Parquet file type) - // +kubebuilder:validation:Optional - preserveSourceDataTyping?: null | bool @go(PreserveSourceDataTyping,*bool) -} - -#S3OutputFormatConfigPrefixConfigInitParameters: { - // Determines the level of granularity that's included in the prefix. Valid values are YEAR, MONTH, DAY, HOUR, and MINUTE. - prefixFormat?: null | string @go(PrefixFormat,*string) - - // Determines the format of the prefix, and whether it applies to the file name, file path, or both. Valid values are FILENAME, PATH, and PATH_AND_FILENAME. - prefixType?: null | string @go(PrefixType,*string) -} - -#S3OutputFormatConfigPrefixConfigObservation: { - // Determines the level of granularity that's included in the prefix. Valid values are YEAR, MONTH, DAY, HOUR, and MINUTE. - prefixFormat?: null | string @go(PrefixFormat,*string) - - // Determines the format of the prefix, and whether it applies to the file name, file path, or both. Valid values are FILENAME, PATH, and PATH_AND_FILENAME. - prefixType?: null | string @go(PrefixType,*string) -} - -#S3OutputFormatConfigPrefixConfigParameters: { - // Determines the level of granularity that's included in the prefix. Valid values are YEAR, MONTH, DAY, HOUR, and MINUTE. - // +kubebuilder:validation:Optional - prefixFormat?: null | string @go(PrefixFormat,*string) - - // Determines the format of the prefix, and whether it applies to the file name, file path, or both. Valid values are FILENAME, PATH, and PATH_AND_FILENAME. - // +kubebuilder:validation:Optional - prefixType?: null | string @go(PrefixType,*string) -} - -#S3Parameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.BucketPolicy - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("bucket",false) - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Reference to a BucketPolicy in s3 to populate bucketName. - // +kubebuilder:validation:Optional - bucketNameRef?: null | v1.#Reference @go(BucketNameRef,*v1.Reference) - - // Selector for a BucketPolicy in s3 to populate bucketName. - // +kubebuilder:validation:Optional - bucketNameSelector?: null | v1.#Selector @go(BucketNameSelector,*v1.Selector) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination. See S3 Output Format Config for more details. - // +kubebuilder:validation:Optional - s3OutputFormatConfig?: [...#S3OutputFormatConfigParameters] @go(S3OutputFormatConfig,[]S3OutputFormatConfigParameters) -} - -#SalesforceErrorHandlingConfigInitParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#SalesforceErrorHandlingConfigObservation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#SalesforceErrorHandlingConfigParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - // +kubebuilder:validation:Optional - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#SalesforceInitParameters: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#SalesforceErrorHandlingConfigInitParameters] @go(ErrorHandlingConfig,[]SalesforceErrorHandlingConfigInitParameters) - - // Name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, or upsert. - idFieldNames?: [...null | string] @go(IDFieldNames,[]*string) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) - - // Type of write operation to be performed in the custom connector when it's used as destination. Valid values are INSERT, UPSERT, UPDATE, and DELETE. - writeOperationType?: null | string @go(WriteOperationType,*string) -} - -#SalesforceObservation: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#SalesforceErrorHandlingConfigObservation] @go(ErrorHandlingConfig,[]SalesforceErrorHandlingConfigObservation) - - // Name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, or upsert. - idFieldNames?: [...null | string] @go(IDFieldNames,[]*string) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) - - // Type of write operation to be performed in the custom connector when it's used as destination. Valid values are INSERT, UPSERT, UPDATE, and DELETE. - writeOperationType?: null | string @go(WriteOperationType,*string) -} - -#SalesforceParameters: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - // +kubebuilder:validation:Optional - errorHandlingConfig?: [...#SalesforceErrorHandlingConfigParameters] @go(ErrorHandlingConfig,[]SalesforceErrorHandlingConfigParameters) - - // Name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, or upsert. - // +kubebuilder:validation:Optional - idFieldNames?: [...null | string] @go(IDFieldNames,[]*string) - - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) - - // Type of write operation to be performed in the custom connector when it's used as destination. Valid values are INSERT, UPSERT, UPDATE, and DELETE. - // +kubebuilder:validation:Optional - writeOperationType?: null | string @go(WriteOperationType,*string) -} - -#SapoDataErrorHandlingConfigInitParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#SapoDataErrorHandlingConfigObservation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#SapoDataErrorHandlingConfigParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - // +kubebuilder:validation:Optional - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#SapoDataInitParameters: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#SapoDataErrorHandlingConfigInitParameters] @go(ErrorHandlingConfig,[]SapoDataErrorHandlingConfigInitParameters) - - // Name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, or upsert. - idFieldNames?: [...null | string] @go(IDFieldNames,[]*string) - - // Object path specified in the SAPOData flow destination. - objectPath?: null | string @go(ObjectPath,*string) - - // Determines how Amazon AppFlow handles the success response that it gets from the connector after placing data. See Success Response Handling Config for more details. - successResponseHandlingConfig?: [...#SuccessResponseHandlingConfigInitParameters] @go(SuccessResponseHandlingConfig,[]SuccessResponseHandlingConfigInitParameters) - - // Type of write operation to be performed in the custom connector when it's used as destination. Valid values are INSERT, UPSERT, UPDATE, and DELETE. - writeOperationType?: null | string @go(WriteOperationType,*string) -} - -#SapoDataObservation: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#SapoDataErrorHandlingConfigObservation] @go(ErrorHandlingConfig,[]SapoDataErrorHandlingConfigObservation) - - // Name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, or upsert. - idFieldNames?: [...null | string] @go(IDFieldNames,[]*string) - - // Object path specified in the SAPOData flow destination. - objectPath?: null | string @go(ObjectPath,*string) - - // Determines how Amazon AppFlow handles the success response that it gets from the connector after placing data. See Success Response Handling Config for more details. - successResponseHandlingConfig?: [...#SuccessResponseHandlingConfigObservation] @go(SuccessResponseHandlingConfig,[]SuccessResponseHandlingConfigObservation) - - // Type of write operation to be performed in the custom connector when it's used as destination. Valid values are INSERT, UPSERT, UPDATE, and DELETE. - writeOperationType?: null | string @go(WriteOperationType,*string) -} - -#SapoDataParameters: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - // +kubebuilder:validation:Optional - errorHandlingConfig?: [...#SapoDataErrorHandlingConfigParameters] @go(ErrorHandlingConfig,[]SapoDataErrorHandlingConfigParameters) - - // Name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, or upsert. - // +kubebuilder:validation:Optional - idFieldNames?: [...null | string] @go(IDFieldNames,[]*string) - - // Object path specified in the SAPOData flow destination. - // +kubebuilder:validation:Optional - objectPath?: null | string @go(ObjectPath,*string) - - // Determines how Amazon AppFlow handles the success response that it gets from the connector after placing data. See Success Response Handling Config for more details. - // +kubebuilder:validation:Optional - successResponseHandlingConfig?: [...#SuccessResponseHandlingConfigParameters] @go(SuccessResponseHandlingConfig,[]SuccessResponseHandlingConfigParameters) - - // Type of write operation to be performed in the custom connector when it's used as destination. Valid values are INSERT, UPSERT, UPDATE, and DELETE. - // +kubebuilder:validation:Optional - writeOperationType?: null | string @go(WriteOperationType,*string) -} - -#ScheduledInitParameters: { - // Whether a scheduled flow has an incremental data transfer or a complete data transfer for each flow run. Valid values are Incremental and Complete. - dataPullMode?: null | string @go(DataPullMode,*string) - - // Date range for the records to import from the connector in the first flow run. Must be a valid RFC3339 timestamp. - firstExecutionFrom?: null | string @go(FirstExecutionFrom,*string) - - // Scheduled end time for a schedule-triggered flow. Must be a valid RFC3339 timestamp. - scheduleEndTime?: null | string @go(ScheduleEndTime,*string) - - // Scheduling expression that determines the rate at which the schedule will run, for example rate(5minutes). - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // Optional offset that is added to the time interval for a schedule-triggered flow. Maximum value of 36000. - scheduleOffset?: null | float64 @go(ScheduleOffset,*float64) - - // Scheduled start time for a schedule-triggered flow. Must be a valid RFC3339 timestamp. - scheduleStartTime?: null | string @go(ScheduleStartTime,*string) - - // Time zone used when referring to the date and time of a scheduled-triggered flow, such as America/New_York. - timezone?: null | string @go(Timezone,*string) -} - -#ScheduledObservation: { - // Whether a scheduled flow has an incremental data transfer or a complete data transfer for each flow run. Valid values are Incremental and Complete. - dataPullMode?: null | string @go(DataPullMode,*string) - - // Date range for the records to import from the connector in the first flow run. Must be a valid RFC3339 timestamp. - firstExecutionFrom?: null | string @go(FirstExecutionFrom,*string) - - // Scheduled end time for a schedule-triggered flow. Must be a valid RFC3339 timestamp. - scheduleEndTime?: null | string @go(ScheduleEndTime,*string) - - // Scheduling expression that determines the rate at which the schedule will run, for example rate(5minutes). - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // Optional offset that is added to the time interval for a schedule-triggered flow. Maximum value of 36000. - scheduleOffset?: null | float64 @go(ScheduleOffset,*float64) - - // Scheduled start time for a schedule-triggered flow. Must be a valid RFC3339 timestamp. - scheduleStartTime?: null | string @go(ScheduleStartTime,*string) - - // Time zone used when referring to the date and time of a scheduled-triggered flow, such as America/New_York. - timezone?: null | string @go(Timezone,*string) -} - -#ScheduledParameters: { - // Whether a scheduled flow has an incremental data transfer or a complete data transfer for each flow run. Valid values are Incremental and Complete. - // +kubebuilder:validation:Optional - dataPullMode?: null | string @go(DataPullMode,*string) - - // Date range for the records to import from the connector in the first flow run. Must be a valid RFC3339 timestamp. - // +kubebuilder:validation:Optional - firstExecutionFrom?: null | string @go(FirstExecutionFrom,*string) - - // Scheduled end time for a schedule-triggered flow. Must be a valid RFC3339 timestamp. - // +kubebuilder:validation:Optional - scheduleEndTime?: null | string @go(ScheduleEndTime,*string) - - // Scheduling expression that determines the rate at which the schedule will run, for example rate(5minutes). - // +kubebuilder:validation:Optional - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // Optional offset that is added to the time interval for a schedule-triggered flow. Maximum value of 36000. - // +kubebuilder:validation:Optional - scheduleOffset?: null | float64 @go(ScheduleOffset,*float64) - - // Scheduled start time for a schedule-triggered flow. Must be a valid RFC3339 timestamp. - // +kubebuilder:validation:Optional - scheduleStartTime?: null | string @go(ScheduleStartTime,*string) - - // Time zone used when referring to the date and time of a scheduled-triggered flow, such as America/New_York. - // +kubebuilder:validation:Optional - timezone?: null | string @go(Timezone,*string) -} - -#ServiceNowInitParameters: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#ServiceNowObservation: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#ServiceNowParameters: { - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#SingularInitParameters: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#SingularObservation: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#SingularParameters: { - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#SlackInitParameters: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#SlackObservation: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#SlackParameters: { - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#SnowflakeErrorHandlingConfigInitParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#SnowflakeErrorHandlingConfigObservation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#SnowflakeErrorHandlingConfigParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - // +kubebuilder:validation:Optional - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#SnowflakeInitParameters: { - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#SnowflakeErrorHandlingConfigInitParameters] @go(ErrorHandlingConfig,[]SnowflakeErrorHandlingConfigInitParameters) - - // Intermediate bucket that Amazon AppFlow uses when moving data into Amazon Redshift. - intermediateBucketName?: null | string @go(IntermediateBucketName,*string) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#SnowflakeObservation: { - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#SnowflakeErrorHandlingConfigObservation] @go(ErrorHandlingConfig,[]SnowflakeErrorHandlingConfigObservation) - - // Intermediate bucket that Amazon AppFlow uses when moving data into Amazon Redshift. - intermediateBucketName?: null | string @go(IntermediateBucketName,*string) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#SnowflakeParameters: { - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - // +kubebuilder:validation:Optional - errorHandlingConfig?: [...#SnowflakeErrorHandlingConfigParameters] @go(ErrorHandlingConfig,[]SnowflakeErrorHandlingConfigParameters) - - // Intermediate bucket that Amazon AppFlow uses when moving data into Amazon Redshift. - // +kubebuilder:validation:Optional - intermediateBucketName?: null | string @go(IntermediateBucketName,*string) - - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#SourceConnectorPropertiesCustomConnectorInitParameters: { - // Custom properties that are specific to the connector when it's used as a destination in the flow. Maximum of 50 items. - customProperties?: {[string]: null | string} @go(CustomProperties,map[string]*string) - - // Entity specified in the custom connector as a destination in the flow. - entityName?: null | string @go(EntityName,*string) -} - -#SourceConnectorPropertiesCustomConnectorObservation: { - // Custom properties that are specific to the connector when it's used as a destination in the flow. Maximum of 50 items. - customProperties?: {[string]: null | string} @go(CustomProperties,map[string]*string) - - // Entity specified in the custom connector as a destination in the flow. - entityName?: null | string @go(EntityName,*string) -} - -#SourceConnectorPropertiesCustomConnectorParameters: { - // Custom properties that are specific to the connector when it's used as a destination in the flow. Maximum of 50 items. - // +kubebuilder:validation:Optional - customProperties?: {[string]: null | string} @go(CustomProperties,map[string]*string) - - // Entity specified in the custom connector as a destination in the flow. - // +kubebuilder:validation:Optional - entityName?: null | string @go(EntityName,*string) -} - -#SourceConnectorPropertiesInitParameters: { - // Information that is required for querying Amplitude. See Generic Source Properties for more details. - amplitude?: [...#AmplitudeInitParameters] @go(Amplitude,[]AmplitudeInitParameters) - - // Properties that are required to query the custom Connector. See Custom Connector Destination Properties for more details. - customConnector?: [...#SourceConnectorPropertiesCustomConnectorInitParameters] @go(CustomConnector,[]SourceConnectorPropertiesCustomConnectorInitParameters) - - // Information that is required for querying Datadog. See Generic Source Properties for more details. - datadog?: [...#DatadogInitParameters] @go(Datadog,[]DatadogInitParameters) - - // Operation to be performed on the provided Dynatrace source fields. Valid values are PROJECTION, BETWEEN, EQUAL_TO, ADDITION, MULTIPLICATION, DIVISION, SUBTRACTION, MASK_ALL, MASK_FIRST_N, MASK_LAST_N, VALIDATE_NON_NULL, VALIDATE_NON_ZERO, VALIDATE_NON_NEGATIVE, VALIDATE_NUMERIC, and NO_OP. - dynatrace?: [...#DynatraceInitParameters] @go(Dynatrace,[]DynatraceInitParameters) - - // Operation to be performed on the provided Google Analytics source fields. Valid values are PROJECTION and BETWEEN. - googleAnalytics?: [...#GoogleAnalyticsInitParameters] @go(GoogleAnalytics,[]GoogleAnalyticsInitParameters) - - // Information that is required for querying Infor Nexus. See Generic Source Properties for more details. - inforNexus?: [...#InforNexusInitParameters] @go(InforNexus,[]InforNexusInitParameters) - - // Properties that are required to query Marketo. See Generic Destination Properties for more details. - marketo?: [...#SourceConnectorPropertiesMarketoInitParameters] @go(Marketo,[]SourceConnectorPropertiesMarketoInitParameters) - - // Properties that are required to query Amazon S3. See S3 Destination Properties for more details. - s3?: [...#SourceConnectorPropertiesS3InitParameters] @go(S3,[]SourceConnectorPropertiesS3InitParameters) - - // Properties that are required to query Salesforce. See Salesforce Destination Properties for more details. - salesforce?: [...#SourceConnectorPropertiesSalesforceInitParameters] @go(Salesforce,[]SourceConnectorPropertiesSalesforceInitParameters) - - // Properties that are required to query SAPOData. See SAPOData Destination Properties for more details. - sapoData?: [...#SourceConnectorPropertiesSapoDataInitParameters] @go(SapoData,[]SourceConnectorPropertiesSapoDataInitParameters) - - // Information that is required for querying ServiceNow. See Generic Source Properties for more details. - serviceNow?: [...#ServiceNowInitParameters] @go(ServiceNow,[]ServiceNowInitParameters) - - // Information that is required for querying Singular. See Generic Source Properties for more details. - singular?: [...#SingularInitParameters] @go(Singular,[]SingularInitParameters) - - // Information that is required for querying Slack. See Generic Source Properties for more details. - slack?: [...#SlackInitParameters] @go(Slack,[]SlackInitParameters) - - // Operation to be performed on the provided Trend Micro source fields. Valid values are PROJECTION, EQUAL_TO, ADDITION, MULTIPLICATION, DIVISION, SUBTRACTION, MASK_ALL, MASK_FIRST_N, MASK_LAST_N, VALIDATE_NON_NULL, VALIDATE_NON_ZERO, VALIDATE_NON_NEGATIVE, VALIDATE_NUMERIC, and NO_OP. - trendmicro?: [...#TrendmicroInitParameters] @go(Trendmicro,[]TrendmicroInitParameters) - - // Information that is required for querying Veeva. See Veeva Source Properties for more details. - veeva?: [...#VeevaInitParameters] @go(Veeva,[]VeevaInitParameters) - - // Properties that are required to query Zendesk. See Zendesk Destination Properties for more details. - zendesk?: [...#SourceConnectorPropertiesZendeskInitParameters] @go(Zendesk,[]SourceConnectorPropertiesZendeskInitParameters) -} - -#SourceConnectorPropertiesMarketoInitParameters: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#SourceConnectorPropertiesMarketoObservation: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#SourceConnectorPropertiesMarketoParameters: { - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#SourceConnectorPropertiesObservation: { - // Information that is required for querying Amplitude. See Generic Source Properties for more details. - amplitude?: [...#AmplitudeObservation] @go(Amplitude,[]AmplitudeObservation) - - // Properties that are required to query the custom Connector. See Custom Connector Destination Properties for more details. - customConnector?: [...#SourceConnectorPropertiesCustomConnectorObservation] @go(CustomConnector,[]SourceConnectorPropertiesCustomConnectorObservation) - - // Information that is required for querying Datadog. See Generic Source Properties for more details. - datadog?: [...#DatadogObservation] @go(Datadog,[]DatadogObservation) - - // Operation to be performed on the provided Dynatrace source fields. Valid values are PROJECTION, BETWEEN, EQUAL_TO, ADDITION, MULTIPLICATION, DIVISION, SUBTRACTION, MASK_ALL, MASK_FIRST_N, MASK_LAST_N, VALIDATE_NON_NULL, VALIDATE_NON_ZERO, VALIDATE_NON_NEGATIVE, VALIDATE_NUMERIC, and NO_OP. - dynatrace?: [...#DynatraceObservation] @go(Dynatrace,[]DynatraceObservation) - - // Operation to be performed on the provided Google Analytics source fields. Valid values are PROJECTION and BETWEEN. - googleAnalytics?: [...#GoogleAnalyticsObservation] @go(GoogleAnalytics,[]GoogleAnalyticsObservation) - - // Information that is required for querying Infor Nexus. See Generic Source Properties for more details. - inforNexus?: [...#InforNexusObservation] @go(InforNexus,[]InforNexusObservation) - - // Properties that are required to query Marketo. See Generic Destination Properties for more details. - marketo?: [...#SourceConnectorPropertiesMarketoObservation] @go(Marketo,[]SourceConnectorPropertiesMarketoObservation) - - // Properties that are required to query Amazon S3. See S3 Destination Properties for more details. - s3?: [...#SourceConnectorPropertiesS3Observation] @go(S3,[]SourceConnectorPropertiesS3Observation) - - // Properties that are required to query Salesforce. See Salesforce Destination Properties for more details. - salesforce?: [...#SourceConnectorPropertiesSalesforceObservation] @go(Salesforce,[]SourceConnectorPropertiesSalesforceObservation) - - // Properties that are required to query SAPOData. See SAPOData Destination Properties for more details. - sapoData?: [...#SourceConnectorPropertiesSapoDataObservation] @go(SapoData,[]SourceConnectorPropertiesSapoDataObservation) - - // Information that is required for querying ServiceNow. See Generic Source Properties for more details. - serviceNow?: [...#ServiceNowObservation] @go(ServiceNow,[]ServiceNowObservation) - - // Information that is required for querying Singular. See Generic Source Properties for more details. - singular?: [...#SingularObservation] @go(Singular,[]SingularObservation) - - // Information that is required for querying Slack. See Generic Source Properties for more details. - slack?: [...#SlackObservation] @go(Slack,[]SlackObservation) - - // Operation to be performed on the provided Trend Micro source fields. Valid values are PROJECTION, EQUAL_TO, ADDITION, MULTIPLICATION, DIVISION, SUBTRACTION, MASK_ALL, MASK_FIRST_N, MASK_LAST_N, VALIDATE_NON_NULL, VALIDATE_NON_ZERO, VALIDATE_NON_NEGATIVE, VALIDATE_NUMERIC, and NO_OP. - trendmicro?: [...#TrendmicroObservation] @go(Trendmicro,[]TrendmicroObservation) - - // Information that is required for querying Veeva. See Veeva Source Properties for more details. - veeva?: [...#VeevaObservation] @go(Veeva,[]VeevaObservation) - - // Properties that are required to query Zendesk. See Zendesk Destination Properties for more details. - zendesk?: [...#SourceConnectorPropertiesZendeskObservation] @go(Zendesk,[]SourceConnectorPropertiesZendeskObservation) -} - -#SourceConnectorPropertiesParameters: { - // Information that is required for querying Amplitude. See Generic Source Properties for more details. - // +kubebuilder:validation:Optional - amplitude?: [...#AmplitudeParameters] @go(Amplitude,[]AmplitudeParameters) - - // Properties that are required to query the custom Connector. See Custom Connector Destination Properties for more details. - // +kubebuilder:validation:Optional - customConnector?: [...#SourceConnectorPropertiesCustomConnectorParameters] @go(CustomConnector,[]SourceConnectorPropertiesCustomConnectorParameters) - - // Information that is required for querying Datadog. See Generic Source Properties for more details. - // +kubebuilder:validation:Optional - datadog?: [...#DatadogParameters] @go(Datadog,[]DatadogParameters) - - // Operation to be performed on the provided Dynatrace source fields. Valid values are PROJECTION, BETWEEN, EQUAL_TO, ADDITION, MULTIPLICATION, DIVISION, SUBTRACTION, MASK_ALL, MASK_FIRST_N, MASK_LAST_N, VALIDATE_NON_NULL, VALIDATE_NON_ZERO, VALIDATE_NON_NEGATIVE, VALIDATE_NUMERIC, and NO_OP. - // +kubebuilder:validation:Optional - dynatrace?: [...#DynatraceParameters] @go(Dynatrace,[]DynatraceParameters) - - // Operation to be performed on the provided Google Analytics source fields. Valid values are PROJECTION and BETWEEN. - // +kubebuilder:validation:Optional - googleAnalytics?: [...#GoogleAnalyticsParameters] @go(GoogleAnalytics,[]GoogleAnalyticsParameters) - - // Information that is required for querying Infor Nexus. See Generic Source Properties for more details. - // +kubebuilder:validation:Optional - inforNexus?: [...#InforNexusParameters] @go(InforNexus,[]InforNexusParameters) - - // Properties that are required to query Marketo. See Generic Destination Properties for more details. - // +kubebuilder:validation:Optional - marketo?: [...#SourceConnectorPropertiesMarketoParameters] @go(Marketo,[]SourceConnectorPropertiesMarketoParameters) - - // Properties that are required to query Amazon S3. See S3 Destination Properties for more details. - // +kubebuilder:validation:Optional - s3?: [...#SourceConnectorPropertiesS3Parameters] @go(S3,[]SourceConnectorPropertiesS3Parameters) - - // Properties that are required to query Salesforce. See Salesforce Destination Properties for more details. - // +kubebuilder:validation:Optional - salesforce?: [...#SourceConnectorPropertiesSalesforceParameters] @go(Salesforce,[]SourceConnectorPropertiesSalesforceParameters) - - // Properties that are required to query SAPOData. See SAPOData Destination Properties for more details. - // +kubebuilder:validation:Optional - sapoData?: [...#SourceConnectorPropertiesSapoDataParameters] @go(SapoData,[]SourceConnectorPropertiesSapoDataParameters) - - // Information that is required for querying ServiceNow. See Generic Source Properties for more details. - // +kubebuilder:validation:Optional - serviceNow?: [...#ServiceNowParameters] @go(ServiceNow,[]ServiceNowParameters) - - // Information that is required for querying Singular. See Generic Source Properties for more details. - // +kubebuilder:validation:Optional - singular?: [...#SingularParameters] @go(Singular,[]SingularParameters) - - // Information that is required for querying Slack. See Generic Source Properties for more details. - // +kubebuilder:validation:Optional - slack?: [...#SlackParameters] @go(Slack,[]SlackParameters) - - // Operation to be performed on the provided Trend Micro source fields. Valid values are PROJECTION, EQUAL_TO, ADDITION, MULTIPLICATION, DIVISION, SUBTRACTION, MASK_ALL, MASK_FIRST_N, MASK_LAST_N, VALIDATE_NON_NULL, VALIDATE_NON_ZERO, VALIDATE_NON_NEGATIVE, VALIDATE_NUMERIC, and NO_OP. - // +kubebuilder:validation:Optional - trendmicro?: [...#TrendmicroParameters] @go(Trendmicro,[]TrendmicroParameters) - - // Information that is required for querying Veeva. See Veeva Source Properties for more details. - // +kubebuilder:validation:Optional - veeva?: [...#VeevaParameters] @go(Veeva,[]VeevaParameters) - - // Properties that are required to query Zendesk. See Zendesk Destination Properties for more details. - // +kubebuilder:validation:Optional - zendesk?: [...#SourceConnectorPropertiesZendeskParameters] @go(Zendesk,[]SourceConnectorPropertiesZendeskParameters) -} - -#SourceConnectorPropertiesS3InitParameters: { - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // When you use Amazon S3 as the source, the configuration format that you provide the flow input data. See S3 Input Format Config for details. - s3InputFormatConfig?: [...#S3InputFormatConfigInitParameters] @go(S3InputFormatConfig,[]S3InputFormatConfigInitParameters) -} - -#SourceConnectorPropertiesS3Observation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // When you use Amazon S3 as the source, the configuration format that you provide the flow input data. See S3 Input Format Config for details. - s3InputFormatConfig?: [...#S3InputFormatConfigObservation] @go(S3InputFormatConfig,[]S3InputFormatConfigObservation) -} - -#SourceConnectorPropertiesS3Parameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.BucketPolicy - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("bucket",false) - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Reference to a BucketPolicy in s3 to populate bucketName. - // +kubebuilder:validation:Optional - bucketNameRef?: null | v1.#Reference @go(BucketNameRef,*v1.Reference) - - // Selector for a BucketPolicy in s3 to populate bucketName. - // +kubebuilder:validation:Optional - bucketNameSelector?: null | v1.#Selector @go(BucketNameSelector,*v1.Selector) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // When you use Amazon S3 as the source, the configuration format that you provide the flow input data. See S3 Input Format Config for details. - // +kubebuilder:validation:Optional - s3InputFormatConfig?: [...#S3InputFormatConfigParameters] @go(S3InputFormatConfig,[]S3InputFormatConfigParameters) -} - -#SourceConnectorPropertiesSalesforceInitParameters: { - // Flag that enables dynamic fetching of new (recently added) fields in the Salesforce objects while running a flow. - enableDynamicFieldUpdate?: null | bool @go(EnableDynamicFieldUpdate,*bool) - - // Whether Amazon AppFlow includes deleted files in the flow run. - includeDeletedRecords?: null | bool @go(IncludeDeletedRecords,*bool) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#SourceConnectorPropertiesSalesforceObservation: { - // Flag that enables dynamic fetching of new (recently added) fields in the Salesforce objects while running a flow. - enableDynamicFieldUpdate?: null | bool @go(EnableDynamicFieldUpdate,*bool) - - // Whether Amazon AppFlow includes deleted files in the flow run. - includeDeletedRecords?: null | bool @go(IncludeDeletedRecords,*bool) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#SourceConnectorPropertiesSalesforceParameters: { - // Flag that enables dynamic fetching of new (recently added) fields in the Salesforce objects while running a flow. - // +kubebuilder:validation:Optional - enableDynamicFieldUpdate?: null | bool @go(EnableDynamicFieldUpdate,*bool) - - // Whether Amazon AppFlow includes deleted files in the flow run. - // +kubebuilder:validation:Optional - includeDeletedRecords?: null | bool @go(IncludeDeletedRecords,*bool) - - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#SourceConnectorPropertiesSapoDataInitParameters: { - // Object path specified in the SAPOData flow destination. - objectPath?: null | string @go(ObjectPath,*string) -} - -#SourceConnectorPropertiesSapoDataObservation: { - // Object path specified in the SAPOData flow destination. - objectPath?: null | string @go(ObjectPath,*string) -} - -#SourceConnectorPropertiesSapoDataParameters: { - // Object path specified in the SAPOData flow destination. - // +kubebuilder:validation:Optional - objectPath?: null | string @go(ObjectPath,*string) -} - -#SourceConnectorPropertiesZendeskInitParameters: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#SourceConnectorPropertiesZendeskObservation: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#SourceConnectorPropertiesZendeskParameters: { - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#SourceFlowConfigInitParameters: { - // API version that the destination connector uses. - apiVersion?: null | string @go(APIVersion,*string) - - // Name of the connector profile. This name must be unique for each connector profile in the AWS account. - connectorProfileName?: null | string @go(ConnectorProfileName,*string) - - // Type of connector, such as Salesforce, Amplitude, and so on. Valid values are Salesforce, Singular, Slack, Redshift, S3, Marketo, Googleanalytics, Zendesk, Servicenow, Datadog, Trendmicro, Snowflake, Dynatrace, Infornexus, Amplitude, Veeva, EventBridge, LookoutMetrics, Upsolver, Honeycode, CustomerProfiles, SAPOData, and CustomConnector. - connectorType?: null | string @go(ConnectorType,*string) - - // Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the fields specified in the configuration are used when querying for the incremental data pull. See Incremental Pull Config for more details. - incrementalPullConfig?: [...#IncrementalPullConfigInitParameters] @go(IncrementalPullConfig,[]IncrementalPullConfigInitParameters) - - // Information that is required to query a particular source connector. See Source Connector Properties for details. - sourceConnectorProperties?: [...#SourceConnectorPropertiesInitParameters] @go(SourceConnectorProperties,[]SourceConnectorPropertiesInitParameters) -} - -#SourceFlowConfigObservation: { - // API version that the destination connector uses. - apiVersion?: null | string @go(APIVersion,*string) - - // Name of the connector profile. This name must be unique for each connector profile in the AWS account. - connectorProfileName?: null | string @go(ConnectorProfileName,*string) - - // Type of connector, such as Salesforce, Amplitude, and so on. Valid values are Salesforce, Singular, Slack, Redshift, S3, Marketo, Googleanalytics, Zendesk, Servicenow, Datadog, Trendmicro, Snowflake, Dynatrace, Infornexus, Amplitude, Veeva, EventBridge, LookoutMetrics, Upsolver, Honeycode, CustomerProfiles, SAPOData, and CustomConnector. - connectorType?: null | string @go(ConnectorType,*string) - - // Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the fields specified in the configuration are used when querying for the incremental data pull. See Incremental Pull Config for more details. - incrementalPullConfig?: [...#IncrementalPullConfigObservation] @go(IncrementalPullConfig,[]IncrementalPullConfigObservation) - - // Information that is required to query a particular source connector. See Source Connector Properties for details. - sourceConnectorProperties?: [...#SourceConnectorPropertiesObservation] @go(SourceConnectorProperties,[]SourceConnectorPropertiesObservation) -} - -#SourceFlowConfigParameters: { - // API version that the destination connector uses. - // +kubebuilder:validation:Optional - apiVersion?: null | string @go(APIVersion,*string) - - // Name of the connector profile. This name must be unique for each connector profile in the AWS account. - // +kubebuilder:validation:Optional - connectorProfileName?: null | string @go(ConnectorProfileName,*string) - - // Type of connector, such as Salesforce, Amplitude, and so on. Valid values are Salesforce, Singular, Slack, Redshift, S3, Marketo, Googleanalytics, Zendesk, Servicenow, Datadog, Trendmicro, Snowflake, Dynatrace, Infornexus, Amplitude, Veeva, EventBridge, LookoutMetrics, Upsolver, Honeycode, CustomerProfiles, SAPOData, and CustomConnector. - // +kubebuilder:validation:Optional - connectorType?: null | string @go(ConnectorType,*string) - - // Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the fields specified in the configuration are used when querying for the incremental data pull. See Incremental Pull Config for more details. - // +kubebuilder:validation:Optional - incrementalPullConfig?: [...#IncrementalPullConfigParameters] @go(IncrementalPullConfig,[]IncrementalPullConfigParameters) - - // Information that is required to query a particular source connector. See Source Connector Properties for details. - // +kubebuilder:validation:Optional - sourceConnectorProperties: [...#SourceConnectorPropertiesParameters] @go(SourceConnectorProperties,[]SourceConnectorPropertiesParameters) -} - -#SuccessResponseHandlingConfigInitParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) -} - -#SuccessResponseHandlingConfigObservation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) -} - -#SuccessResponseHandlingConfigParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) -} - -#TaskInitParameters: { - // Operation to be performed on the provided source fields. See Connector Operator for details. - connectorOperator?: [...#ConnectorOperatorInitParameters] @go(ConnectorOperator,[]ConnectorOperatorInitParameters) - - // Field in a destination connector, or a field value against which Amazon AppFlow validates a source field. - destinationField?: null | string @go(DestinationField,*string) - - // Source fields to which a particular task is applied. - sourceFields?: [...null | string] @go(SourceFields,[]*string) - - // Map used to store task-related information. The execution service looks for particular information based on the TaskType. Valid keys are VALUE, VALUES, DATA_TYPE, UPPER_BOUND, LOWER_BOUND, SOURCE_DATA_TYPE, DESTINATION_DATA_TYPE, VALIDATION_ACTION, MASK_VALUE, MASK_LENGTH, TRUNCATE_LENGTH, MATH_OPERATION_FIELDS_ORDER, CONCAT_FORMAT, SUBFIELD_CATEGORY_MAP, and EXCLUDE_SOURCE_FIELDS_LIST. - taskProperties?: {[string]: null | string} @go(TaskProperties,map[string]*string) - - // Particular task implementation that Amazon AppFlow performs. Valid values are Arithmetic, Filter, Map, Map_all, Mask, Merge, Passthrough, Truncate, and Validate. - taskType?: null | string @go(TaskType,*string) -} - -#TaskObservation: { - // Operation to be performed on the provided source fields. See Connector Operator for details. - connectorOperator?: [...#ConnectorOperatorObservation] @go(ConnectorOperator,[]ConnectorOperatorObservation) - - // Field in a destination connector, or a field value against which Amazon AppFlow validates a source field. - destinationField?: null | string @go(DestinationField,*string) - - // Source fields to which a particular task is applied. - sourceFields?: [...null | string] @go(SourceFields,[]*string) - - // Map used to store task-related information. The execution service looks for particular information based on the TaskType. Valid keys are VALUE, VALUES, DATA_TYPE, UPPER_BOUND, LOWER_BOUND, SOURCE_DATA_TYPE, DESTINATION_DATA_TYPE, VALIDATION_ACTION, MASK_VALUE, MASK_LENGTH, TRUNCATE_LENGTH, MATH_OPERATION_FIELDS_ORDER, CONCAT_FORMAT, SUBFIELD_CATEGORY_MAP, and EXCLUDE_SOURCE_FIELDS_LIST. - taskProperties?: {[string]: null | string} @go(TaskProperties,map[string]*string) - - // Particular task implementation that Amazon AppFlow performs. Valid values are Arithmetic, Filter, Map, Map_all, Mask, Merge, Passthrough, Truncate, and Validate. - taskType?: null | string @go(TaskType,*string) -} - -#TaskParameters: { - // Operation to be performed on the provided source fields. See Connector Operator for details. - // +kubebuilder:validation:Optional - connectorOperator?: [...#ConnectorOperatorParameters] @go(ConnectorOperator,[]ConnectorOperatorParameters) - - // Field in a destination connector, or a field value against which Amazon AppFlow validates a source field. - // +kubebuilder:validation:Optional - destinationField?: null | string @go(DestinationField,*string) - - // Source fields to which a particular task is applied. - // +kubebuilder:validation:Optional - sourceFields: [...null | string] @go(SourceFields,[]*string) - - // Map used to store task-related information. The execution service looks for particular information based on the TaskType. Valid keys are VALUE, VALUES, DATA_TYPE, UPPER_BOUND, LOWER_BOUND, SOURCE_DATA_TYPE, DESTINATION_DATA_TYPE, VALIDATION_ACTION, MASK_VALUE, MASK_LENGTH, TRUNCATE_LENGTH, MATH_OPERATION_FIELDS_ORDER, CONCAT_FORMAT, SUBFIELD_CATEGORY_MAP, and EXCLUDE_SOURCE_FIELDS_LIST. - // +kubebuilder:validation:Optional - taskProperties?: {[string]: null | string} @go(TaskProperties,map[string]*string) - - // Particular task implementation that Amazon AppFlow performs. Valid values are Arithmetic, Filter, Map, Map_all, Mask, Merge, Passthrough, Truncate, and Validate. - // +kubebuilder:validation:Optional - taskType?: null | string @go(TaskType,*string) -} - -#TrendmicroInitParameters: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#TrendmicroObservation: { - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#TrendmicroParameters: { - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#TriggerConfigInitParameters: { - // Configuration details of a schedule-triggered flow as defined by the user. Currently, these settings only apply to the Scheduled trigger type. See Scheduled Trigger Properties for details. - triggerProperties?: [...#TriggerPropertiesInitParameters] @go(TriggerProperties,[]TriggerPropertiesInitParameters) - - // Type of flow trigger. Valid values are Scheduled, Event, and OnDemand. - triggerType?: null | string @go(TriggerType,*string) -} - -#TriggerConfigObservation: { - // Configuration details of a schedule-triggered flow as defined by the user. Currently, these settings only apply to the Scheduled trigger type. See Scheduled Trigger Properties for details. - triggerProperties?: [...#TriggerPropertiesObservation] @go(TriggerProperties,[]TriggerPropertiesObservation) - - // Type of flow trigger. Valid values are Scheduled, Event, and OnDemand. - triggerType?: null | string @go(TriggerType,*string) -} - -#TriggerConfigParameters: { - // Configuration details of a schedule-triggered flow as defined by the user. Currently, these settings only apply to the Scheduled trigger type. See Scheduled Trigger Properties for details. - // +kubebuilder:validation:Optional - triggerProperties?: [...#TriggerPropertiesParameters] @go(TriggerProperties,[]TriggerPropertiesParameters) - - // Type of flow trigger. Valid values are Scheduled, Event, and OnDemand. - // +kubebuilder:validation:Optional - triggerType?: null | string @go(TriggerType,*string) -} - -#TriggerPropertiesInitParameters: { - scheduled?: [...#ScheduledInitParameters] @go(Scheduled,[]ScheduledInitParameters) -} - -#TriggerPropertiesObservation: { - scheduled?: [...#ScheduledObservation] @go(Scheduled,[]ScheduledObservation) -} - -#TriggerPropertiesParameters: { - // +kubebuilder:validation:Optional - scheduled?: [...#ScheduledParameters] @go(Scheduled,[]ScheduledParameters) -} - -#UpsolverInitParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination. See S3 Output Format Config for more details. - s3OutputFormatConfig?: [...#UpsolverS3OutputFormatConfigInitParameters] @go(S3OutputFormatConfig,[]UpsolverS3OutputFormatConfigInitParameters) -} - -#UpsolverObservation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination. See S3 Output Format Config for more details. - s3OutputFormatConfig?: [...#UpsolverS3OutputFormatConfigObservation] @go(S3OutputFormatConfig,[]UpsolverS3OutputFormatConfigObservation) -} - -#UpsolverParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination. See S3 Output Format Config for more details. - // +kubebuilder:validation:Optional - s3OutputFormatConfig: [...#UpsolverS3OutputFormatConfigParameters] @go(S3OutputFormatConfig,[]UpsolverS3OutputFormatConfigParameters) -} - -#UpsolverS3OutputFormatConfigInitParameters: { - // Aggregation settings that you can use to customize the output format of your flow data. See Aggregation Config for more details. - aggregationConfig?: [...#S3OutputFormatConfigAggregationConfigInitParameters] @go(AggregationConfig,[]S3OutputFormatConfigAggregationConfigInitParameters) - - // File type that Amazon AppFlow places in the Amazon S3 bucket. Valid values are CSV, JSON, and PARQUET. - fileType?: null | string @go(FileType,*string) - - // Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name folders according to the flow frequency and date. See Prefix Config for more details. - prefixConfig?: [...#S3OutputFormatConfigPrefixConfigInitParameters] @go(PrefixConfig,[]S3OutputFormatConfigPrefixConfigInitParameters) -} - -#UpsolverS3OutputFormatConfigObservation: { - // Aggregation settings that you can use to customize the output format of your flow data. See Aggregation Config for more details. - aggregationConfig?: [...#S3OutputFormatConfigAggregationConfigObservation] @go(AggregationConfig,[]S3OutputFormatConfigAggregationConfigObservation) - - // File type that Amazon AppFlow places in the Amazon S3 bucket. Valid values are CSV, JSON, and PARQUET. - fileType?: null | string @go(FileType,*string) - - // Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name folders according to the flow frequency and date. See Prefix Config for more details. - prefixConfig?: [...#S3OutputFormatConfigPrefixConfigObservation] @go(PrefixConfig,[]S3OutputFormatConfigPrefixConfigObservation) -} - -#UpsolverS3OutputFormatConfigParameters: { - // Aggregation settings that you can use to customize the output format of your flow data. See Aggregation Config for more details. - // +kubebuilder:validation:Optional - aggregationConfig?: [...#S3OutputFormatConfigAggregationConfigParameters] @go(AggregationConfig,[]S3OutputFormatConfigAggregationConfigParameters) - - // File type that Amazon AppFlow places in the Amazon S3 bucket. Valid values are CSV, JSON, and PARQUET. - // +kubebuilder:validation:Optional - fileType?: null | string @go(FileType,*string) - - // Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name folders according to the flow frequency and date. See Prefix Config for more details. - // +kubebuilder:validation:Optional - prefixConfig: [...#S3OutputFormatConfigPrefixConfigParameters] @go(PrefixConfig,[]S3OutputFormatConfigPrefixConfigParameters) -} - -#VeevaInitParameters: { - // Document type specified in the Veeva document extract flow. - documentType?: null | string @go(DocumentType,*string) - - // Boolean value to include All Versions of files in Veeva document extract flow. - includeAllVersions?: null | bool @go(IncludeAllVersions,*bool) - - // Boolean value to include file renditions in Veeva document extract flow. - includeRenditions?: null | bool @go(IncludeRenditions,*bool) - - // Boolean value to include source files in Veeva document extract flow. - includeSourceFiles?: null | bool @go(IncludeSourceFiles,*bool) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#VeevaObservation: { - // Document type specified in the Veeva document extract flow. - documentType?: null | string @go(DocumentType,*string) - - // Boolean value to include All Versions of files in Veeva document extract flow. - includeAllVersions?: null | bool @go(IncludeAllVersions,*bool) - - // Boolean value to include file renditions in Veeva document extract flow. - includeRenditions?: null | bool @go(IncludeRenditions,*bool) - - // Boolean value to include source files in Veeva document extract flow. - includeSourceFiles?: null | bool @go(IncludeSourceFiles,*bool) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) -} - -#VeevaParameters: { - // Document type specified in the Veeva document extract flow. - // +kubebuilder:validation:Optional - documentType?: null | string @go(DocumentType,*string) - - // Boolean value to include All Versions of files in Veeva document extract flow. - // +kubebuilder:validation:Optional - includeAllVersions?: null | bool @go(IncludeAllVersions,*bool) - - // Boolean value to include file renditions in Veeva document extract flow. - // +kubebuilder:validation:Optional - includeRenditions?: null | bool @go(IncludeRenditions,*bool) - - // Boolean value to include source files in Veeva document extract flow. - // +kubebuilder:validation:Optional - includeSourceFiles?: null | bool @go(IncludeSourceFiles,*bool) - - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) -} - -#ZendeskErrorHandlingConfigInitParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#ZendeskErrorHandlingConfigObservation: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#ZendeskErrorHandlingConfigParameters: { - // Amazon S3 bucket name in which Amazon AppFlow places the transferred data. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Object key for the bucket in which Amazon AppFlow places the destination files. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // If the flow should fail after the first instance of a failure when attempting to place data in the destination. - // +kubebuilder:validation:Optional - failOnFirstDestinationError?: null | bool @go(FailOnFirstDestinationError,*bool) -} - -#ZendeskInitParameters: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#ZendeskErrorHandlingConfigInitParameters] @go(ErrorHandlingConfig,[]ZendeskErrorHandlingConfigInitParameters) - - // Name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, or upsert. - idFieldNames?: [...null | string] @go(IDFieldNames,[]*string) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) - - // Type of write operation to be performed in the custom connector when it's used as destination. Valid values are INSERT, UPSERT, UPDATE, and DELETE. - writeOperationType?: null | string @go(WriteOperationType,*string) -} - -#ZendeskObservation: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - errorHandlingConfig?: [...#ZendeskErrorHandlingConfigObservation] @go(ErrorHandlingConfig,[]ZendeskErrorHandlingConfigObservation) - - // Name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, or upsert. - idFieldNames?: [...null | string] @go(IDFieldNames,[]*string) - - // Object specified in the flow destination. - object?: null | string @go(Object,*string) - - // Type of write operation to be performed in the custom connector when it's used as destination. Valid values are INSERT, UPSERT, UPDATE, and DELETE. - writeOperationType?: null | string @go(WriteOperationType,*string) -} - -#ZendeskParameters: { - // Settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. - // +kubebuilder:validation:Optional - errorHandlingConfig?: [...#ZendeskErrorHandlingConfigParameters] @go(ErrorHandlingConfig,[]ZendeskErrorHandlingConfigParameters) - - // Name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, or upsert. - // +kubebuilder:validation:Optional - idFieldNames?: [...null | string] @go(IDFieldNames,[]*string) - - // Object specified in the flow destination. - // +kubebuilder:validation:Optional - object?: null | string @go(Object,*string) - - // Type of write operation to be performed in the custom connector when it's used as destination. Valid values are INSERT, UPSERT, UPDATE, and DELETE. - // +kubebuilder:validation:Optional - writeOperationType?: null | string @go(WriteOperationType,*string) -} - -// FlowSpec defines the desired state of Flow -#FlowSpec: { - v1.#ResourceSpec - forProvider: #FlowParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FlowInitParameters @go(InitProvider) -} - -// FlowStatus defines the observed state of Flow. -#FlowStatus: { - v1.#ResourceStatus - atProvider?: #FlowObservation @go(AtProvider) -} - -// Flow is the Schema for the Flows API. Provides an AppFlow Flow resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Flow: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destinationFlowConfig) || (has(self.initProvider) && has(self.initProvider.destinationFlowConfig))",message="spec.forProvider.destinationFlowConfig is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sourceFlowConfig) || (has(self.initProvider) && has(self.initProvider.sourceFlowConfig))",message="spec.forProvider.sourceFlowConfig is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.task) || (has(self.initProvider) && has(self.initProvider.task))",message="spec.forProvider.task is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.triggerConfig) || (has(self.initProvider) && has(self.initProvider.triggerConfig))",message="spec.forProvider.triggerConfig is a required parameter" - spec: #FlowSpec @go(Spec) - status?: #FlowStatus @go(Status) -} - -// FlowList contains a list of Flows -#FlowList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Flow] @go(Items,[]Flow) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appflow/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appflow/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 493ef66..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appflow/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appflow/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=appflow.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "appflow.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appintegrations/v1beta1/zz_eventintegration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appintegrations/v1beta1/zz_eventintegration_types_go_gen.cue deleted file mode 100644 index e5ab4bf..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appintegrations/v1beta1/zz_eventintegration_types_go_gen.cue +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appintegrations/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EventFilterInitParameters: { - // Source of the events. - source?: null | string @go(Source,*string) -} - -#EventFilterObservation: { - // Source of the events. - source?: null | string @go(Source,*string) -} - -#EventFilterParameters: { - // Source of the events. - // +kubebuilder:validation:Optional - source?: null | string @go(Source,*string) -} - -#EventIntegrationInitParameters: { - // Description of the Event Integration. - description?: null | string @go(Description,*string) - - // Block that defines the configuration information for the event filter. The Event Filter block is documented below. - eventFilter?: [...#EventFilterInitParameters] @go(EventFilter,[]EventFilterInitParameters) - - // EventBridge bus. - eventbridgeBus?: null | string @go(EventbridgeBus,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EventIntegrationObservation: { - // ARN of the Event Integration. - arn?: null | string @go(Arn,*string) - - // Description of the Event Integration. - description?: null | string @go(Description,*string) - - // Block that defines the configuration information for the event filter. The Event Filter block is documented below. - eventFilter?: [...#EventFilterObservation] @go(EventFilter,[]EventFilterObservation) - - // EventBridge bus. - eventbridgeBus?: null | string @go(EventbridgeBus,*string) - - // Identifier of the Event Integration which is the name of the Event Integration. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#EventIntegrationParameters: { - // Description of the Event Integration. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Block that defines the configuration information for the event filter. The Event Filter block is documented below. - // +kubebuilder:validation:Optional - eventFilter?: [...#EventFilterParameters] @go(EventFilter,[]EventFilterParameters) - - // EventBridge bus. - // +kubebuilder:validation:Optional - eventbridgeBus?: null | string @go(EventbridgeBus,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// EventIntegrationSpec defines the desired state of EventIntegration -#EventIntegrationSpec: { - v1.#ResourceSpec - forProvider: #EventIntegrationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EventIntegrationInitParameters @go(InitProvider) -} - -// EventIntegrationStatus defines the observed state of EventIntegration. -#EventIntegrationStatus: { - v1.#ResourceStatus - atProvider?: #EventIntegrationObservation @go(AtProvider) -} - -// EventIntegration is the Schema for the EventIntegrations API. Provides details about a specific Amazon AppIntegrations Event Integration -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EventIntegration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.eventFilter) || (has(self.initProvider) && has(self.initProvider.eventFilter))",message="spec.forProvider.eventFilter is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.eventbridgeBus) || (has(self.initProvider) && has(self.initProvider.eventbridgeBus))",message="spec.forProvider.eventbridgeBus is a required parameter" - spec: #EventIntegrationSpec @go(Spec) - status?: #EventIntegrationStatus @go(Status) -} - -// EventIntegrationList contains a list of EventIntegrations -#EventIntegrationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EventIntegration] @go(Items,[]EventIntegration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appintegrations/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appintegrations/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index ef6dc61..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appintegrations/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appintegrations/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=appintegrations.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "appintegrations.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/applicationinsights/v1beta1/zz_application_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/applicationinsights/v1beta1/zz_application_types_go_gen.cue deleted file mode 100644 index 26b3f36..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/applicationinsights/v1beta1/zz_application_types_go_gen.cue +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/applicationinsights/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ApplicationInitParameters: { - // Indicates whether Application Insights automatically configures unmonitored resources in the resource group. - autoConfigEnabled?: null | bool @go(AutoConfigEnabled,*bool) - - // Configures all of the resources in the resource group by applying the recommended configurations. - autoCreate?: null | bool @go(AutoCreate,*bool) - - // Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others. - cweMonitorEnabled?: null | bool @go(CweMonitorEnabled,*bool) - - // Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED. - groupingType?: null | string @go(GroupingType,*string) - - // When set to true, creates opsItems for any problems detected on an application. - opsCenterEnabled?: null | bool @go(OpsCenterEnabled,*bool) - - // SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem. - opsItemSnsTopicArn?: null | string @go(OpsItemSnsTopicArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ApplicationObservation: { - // ARN of the Application. - arn?: null | string @go(Arn,*string) - - // Indicates whether Application Insights automatically configures unmonitored resources in the resource group. - autoConfigEnabled?: null | bool @go(AutoConfigEnabled,*bool) - - // Configures all of the resources in the resource group by applying the recommended configurations. - autoCreate?: null | bool @go(AutoCreate,*bool) - - // Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others. - cweMonitorEnabled?: null | bool @go(CweMonitorEnabled,*bool) - - // Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED. - groupingType?: null | string @go(GroupingType,*string) - - // Name of the resource group. - id?: null | string @go(ID,*string) - - // When set to true, creates opsItems for any problems detected on an application. - opsCenterEnabled?: null | bool @go(OpsCenterEnabled,*bool) - - // SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem. - opsItemSnsTopicArn?: null | string @go(OpsItemSnsTopicArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ApplicationParameters: { - // Indicates whether Application Insights automatically configures unmonitored resources in the resource group. - // +kubebuilder:validation:Optional - autoConfigEnabled?: null | bool @go(AutoConfigEnabled,*bool) - - // Configures all of the resources in the resource group by applying the recommended configurations. - // +kubebuilder:validation:Optional - autoCreate?: null | bool @go(AutoCreate,*bool) - - // Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others. - // +kubebuilder:validation:Optional - cweMonitorEnabled?: null | bool @go(CweMonitorEnabled,*bool) - - // Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED. - // +kubebuilder:validation:Optional - groupingType?: null | string @go(GroupingType,*string) - - // When set to true, creates opsItems for any problems detected on an application. - // +kubebuilder:validation:Optional - opsCenterEnabled?: null | bool @go(OpsCenterEnabled,*bool) - - // SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem. - // +kubebuilder:validation:Optional - opsItemSnsTopicArn?: null | string @go(OpsItemSnsTopicArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ApplicationSpec defines the desired state of Application -#ApplicationSpec: { - v1.#ResourceSpec - forProvider: #ApplicationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ApplicationInitParameters @go(InitProvider) -} - -// ApplicationStatus defines the observed state of Application. -#ApplicationStatus: { - v1.#ResourceStatus - atProvider?: #ApplicationObservation @go(AtProvider) -} - -// Application is the Schema for the Applications API. Provides a CloudWatch Application Insights Application resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Application: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ApplicationSpec @go(Spec) - status?: #ApplicationStatus @go(Status) -} - -// ApplicationList contains a list of Applications -#ApplicationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Application] @go(Items,[]Application) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/applicationinsights/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/applicationinsights/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index e8ae8a1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/applicationinsights/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/applicationinsights/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=applicationinsights.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "applicationinsights.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_gatewayroute_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_gatewayroute_types_go_gen.cue deleted file mode 100644 index 3f39880..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_gatewayroute_types_go_gen.cue +++ /dev/null @@ -1,1199 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appmesh/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionInitParameters: { - // Target that traffic is routed to when a request matches the gateway route. - target?: [...#TargetInitParameters] @go(Target,[]TargetInitParameters) -} - -#ActionObservation: { - // Target that traffic is routed to when a request matches the gateway route. - target?: [...#TargetObservation] @go(Target,[]TargetObservation) -} - -#ActionParameters: { - // Target that traffic is routed to when a request matches the gateway route. - // +kubebuilder:validation:Optional - target: [...#TargetParameters] @go(Target,[]TargetParameters) -} - -#ActionRewriteInitParameters: { - // Host name to rewrite. - hostname?: [...#RewriteHostnameInitParameters] @go(Hostname,[]RewriteHostnameInitParameters) - - // Specified beginning characters to rewrite. - prefix?: [...#RewritePrefixInitParameters] @go(Prefix,[]RewritePrefixInitParameters) -} - -#ActionRewriteObservation: { - // Host name to rewrite. - hostname?: [...#RewriteHostnameObservation] @go(Hostname,[]RewriteHostnameObservation) - - // Specified beginning characters to rewrite. - prefix?: [...#RewritePrefixObservation] @go(Prefix,[]RewritePrefixObservation) -} - -#ActionRewriteParameters: { - // Host name to rewrite. - // +kubebuilder:validation:Optional - hostname?: [...#RewriteHostnameParameters] @go(Hostname,[]RewriteHostnameParameters) - - // Specified beginning characters to rewrite. - // +kubebuilder:validation:Optional - prefix?: [...#RewritePrefixParameters] @go(Prefix,[]RewritePrefixParameters) -} - -#ActionTargetInitParameters: { - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - port?: null | float64 @go(Port,*float64) - - // Virtual service gateway route target. - virtualService?: [...#TargetVirtualServiceInitParameters] @go(VirtualService,[]TargetVirtualServiceInitParameters) -} - -#ActionTargetObservation: { - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - port?: null | float64 @go(Port,*float64) - - // Virtual service gateway route target. - virtualService?: [...#TargetVirtualServiceObservation] @go(VirtualService,[]TargetVirtualServiceObservation) -} - -#ActionTargetParameters: { - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Virtual service gateway route target. - // +kubebuilder:validation:Optional - virtualService: [...#TargetVirtualServiceParameters] @go(VirtualService,[]TargetVirtualServiceParameters) -} - -#ActionTargetVirtualServiceInitParameters: { -} - -#ActionTargetVirtualServiceObservation: { - // Name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. - virtualServiceName?: null | string @go(VirtualServiceName,*string) -} - -#ActionTargetVirtualServiceParameters: { - // Name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appmesh/v1beta1.VirtualService - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - virtualServiceName?: null | string @go(VirtualServiceName,*string) - - // Reference to a VirtualService in appmesh to populate virtualServiceName. - // +kubebuilder:validation:Optional - virtualServiceNameRef?: null | v1.#Reference @go(VirtualServiceNameRef,*v1.Reference) - - // Selector for a VirtualService in appmesh to populate virtualServiceName. - // +kubebuilder:validation:Optional - virtualServiceNameSelector?: null | v1.#Selector @go(VirtualServiceNameSelector,*v1.Selector) -} - -#GRPCRouteInitParameters: { - // Action to take if a match is determined. - action?: [...#ActionInitParameters] @go(Action,[]ActionInitParameters) - - // Criteria for determining a request match. - match?: [...#MatchInitParameters] @go(Match,[]MatchInitParameters) -} - -#GRPCRouteObservation: { - // Action to take if a match is determined. - action?: [...#ActionObservation] @go(Action,[]ActionObservation) - - // Criteria for determining a request match. - match?: [...#MatchObservation] @go(Match,[]MatchObservation) -} - -#GRPCRouteParameters: { - // Action to take if a match is determined. - // +kubebuilder:validation:Optional - action: [...#ActionParameters] @go(Action,[]ActionParameters) - - // Criteria for determining a request match. - // +kubebuilder:validation:Optional - match: [...#MatchParameters] @go(Match,[]MatchParameters) -} - -#GatewayRouteInitParameters: { - // Name of the service mesh in which to create the gateway route. Must be between 1 and 255 characters in length. - meshName?: null | string @go(MeshName,*string) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) - - // Gateway route specification to apply. - spec?: [...#SpecInitParameters] @go(Spec,[]SpecInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#GatewayRouteObservation: { - // ARN of the gateway route. - arn?: null | string @go(Arn,*string) - - // Creation date of the gateway route. - createdDate?: null | string @go(CreatedDate,*string) - - // ID of the gateway route. - id?: null | string @go(ID,*string) - - // Last update date of the gateway route. - lastUpdatedDate?: null | string @go(LastUpdatedDate,*string) - - // Name of the service mesh in which to create the gateway route. Must be between 1 and 255 characters in length. - meshName?: null | string @go(MeshName,*string) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) - - // Resource owner's AWS account ID. - resourceOwner?: null | string @go(ResourceOwner,*string) - - // Gateway route specification to apply. - spec?: [...#SpecObservation] @go(Spec,[]SpecObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Name of the virtual gateway to associate the gateway route with. Must be between 1 and 255 characters in length. - virtualGatewayName?: null | string @go(VirtualGatewayName,*string) -} - -#GatewayRouteParameters: { - // Name of the service mesh in which to create the gateway route. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - meshName?: null | string @go(MeshName,*string) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - // +kubebuilder:validation:Optional - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Gateway route specification to apply. - // +kubebuilder:validation:Optional - spec?: [...#SpecParameters] @go(Spec,[]SpecParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Name of the virtual gateway to associate the gateway route with. Must be between 1 and 255 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appmesh/v1beta1.VirtualGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - virtualGatewayName?: null | string @go(VirtualGatewayName,*string) - - // Reference to a VirtualGateway in appmesh to populate virtualGatewayName. - // +kubebuilder:validation:Optional - virtualGatewayNameRef?: null | v1.#Reference @go(VirtualGatewayNameRef,*v1.Reference) - - // Selector for a VirtualGateway in appmesh to populate virtualGatewayName. - // +kubebuilder:validation:Optional - virtualGatewayNameSelector?: null | v1.#Selector @go(VirtualGatewayNameSelector,*v1.Selector) -} - -#HTTPRouteActionInitParameters: { - // Gateway route action to rewrite. - rewrite?: [...#ActionRewriteInitParameters] @go(Rewrite,[]ActionRewriteInitParameters) - - // Target that traffic is routed to when a request matches the gateway route. - target?: [...#HTTPRouteActionTargetInitParameters] @go(Target,[]HTTPRouteActionTargetInitParameters) -} - -#HTTPRouteActionObservation: { - // Gateway route action to rewrite. - rewrite?: [...#ActionRewriteObservation] @go(Rewrite,[]ActionRewriteObservation) - - // Target that traffic is routed to when a request matches the gateway route. - target?: [...#HTTPRouteActionTargetObservation] @go(Target,[]HTTPRouteActionTargetObservation) -} - -#HTTPRouteActionParameters: { - // Gateway route action to rewrite. - // +kubebuilder:validation:Optional - rewrite?: [...#ActionRewriteParameters] @go(Rewrite,[]ActionRewriteParameters) - - // Target that traffic is routed to when a request matches the gateway route. - // +kubebuilder:validation:Optional - target: [...#HTTPRouteActionTargetParameters] @go(Target,[]HTTPRouteActionTargetParameters) -} - -#HTTPRouteActionTargetInitParameters: { - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - port?: null | float64 @go(Port,*float64) - - // Virtual service gateway route target. - virtualService?: [...#ActionTargetVirtualServiceInitParameters] @go(VirtualService,[]ActionTargetVirtualServiceInitParameters) -} - -#HTTPRouteActionTargetObservation: { - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - port?: null | float64 @go(Port,*float64) - - // Virtual service gateway route target. - virtualService?: [...#ActionTargetVirtualServiceObservation] @go(VirtualService,[]ActionTargetVirtualServiceObservation) -} - -#HTTPRouteActionTargetParameters: { - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Virtual service gateway route target. - // +kubebuilder:validation:Optional - virtualService: [...#ActionTargetVirtualServiceParameters] @go(VirtualService,[]ActionTargetVirtualServiceParameters) -} - -#HTTPRouteInitParameters: { - // Action to take if a match is determined. - action?: [...#HTTPRouteActionInitParameters] @go(Action,[]HTTPRouteActionInitParameters) - - // Criteria for determining a request match. - match?: [...#HTTPRouteMatchInitParameters] @go(Match,[]HTTPRouteMatchInitParameters) -} - -#HTTPRouteMatchHostnameInitParameters: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) - - // Header value sent by the client must end with the specified characters. - suffix?: null | string @go(Suffix,*string) -} - -#HTTPRouteMatchHostnameObservation: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) - - // Header value sent by the client must end with the specified characters. - suffix?: null | string @go(Suffix,*string) -} - -#HTTPRouteMatchHostnameParameters: { - // Header value sent by the client must match the specified value exactly. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) - - // Header value sent by the client must end with the specified characters. - // +kubebuilder:validation:Optional - suffix?: null | string @go(Suffix,*string) -} - -#HTTPRouteMatchInitParameters: { - // Client request headers to match on. - header?: [...#MatchHeaderInitParameters] @go(Header,[]MatchHeaderInitParameters) - - // Host name to rewrite. - hostname?: [...#HTTPRouteMatchHostnameInitParameters] @go(Hostname,[]HTTPRouteMatchHostnameInitParameters) - - // Client request path to match on. - path?: [...#MatchPathInitParameters] @go(Path,[]MatchPathInitParameters) - - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - port?: null | float64 @go(Port,*float64) - - // Specified beginning characters to rewrite. - prefix?: null | string @go(Prefix,*string) - - // Client request query parameters to match on. - queryParameter?: [...#MatchQueryParameterInitParameters] @go(QueryParameter,[]MatchQueryParameterInitParameters) -} - -#HTTPRouteMatchObservation: { - // Client request headers to match on. - header?: [...#MatchHeaderObservation] @go(Header,[]MatchHeaderObservation) - - // Host name to rewrite. - hostname?: [...#HTTPRouteMatchHostnameObservation] @go(Hostname,[]HTTPRouteMatchHostnameObservation) - - // Client request path to match on. - path?: [...#MatchPathObservation] @go(Path,[]MatchPathObservation) - - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - port?: null | float64 @go(Port,*float64) - - // Specified beginning characters to rewrite. - prefix?: null | string @go(Prefix,*string) - - // Client request query parameters to match on. - queryParameter?: [...#MatchQueryParameterObservation] @go(QueryParameter,[]MatchQueryParameterObservation) -} - -#HTTPRouteMatchParameters: { - // Client request headers to match on. - // +kubebuilder:validation:Optional - header?: [...#MatchHeaderParameters] @go(Header,[]MatchHeaderParameters) - - // Host name to rewrite. - // +kubebuilder:validation:Optional - hostname?: [...#HTTPRouteMatchHostnameParameters] @go(Hostname,[]HTTPRouteMatchHostnameParameters) - - // Client request path to match on. - // +kubebuilder:validation:Optional - path?: [...#MatchPathParameters] @go(Path,[]MatchPathParameters) - - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Specified beginning characters to rewrite. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Client request query parameters to match on. - // +kubebuilder:validation:Optional - queryParameter?: [...#MatchQueryParameterParameters] @go(QueryParameter,[]MatchQueryParameterParameters) -} - -#HTTPRouteObservation: { - // Action to take if a match is determined. - action?: [...#HTTPRouteActionObservation] @go(Action,[]HTTPRouteActionObservation) - - // Criteria for determining a request match. - match?: [...#HTTPRouteMatchObservation] @go(Match,[]HTTPRouteMatchObservation) -} - -#HTTPRouteParameters: { - // Action to take if a match is determined. - // +kubebuilder:validation:Optional - action: [...#HTTPRouteActionParameters] @go(Action,[]HTTPRouteActionParameters) - - // Criteria for determining a request match. - // +kubebuilder:validation:Optional - match: [...#HTTPRouteMatchParameters] @go(Match,[]HTTPRouteMatchParameters) -} - -#HeaderInitParameters: { - // If true, the match is on the opposite of the match method and value. Default is false. - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining a request match. - match?: [...#HeaderMatchInitParameters] @go(Match,[]HeaderMatchInitParameters) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#HeaderMatchInitParameters: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) - - // Specified beginning characters to rewrite. - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the header value sent by the client must be included in. - range?: [...#RangeInitParameters] @go(Range,[]RangeInitParameters) - - // Header value sent by the client must include the specified characters. - regex?: null | string @go(Regex,*string) - - // Header value sent by the client must end with the specified characters. - suffix?: null | string @go(Suffix,*string) -} - -#HeaderMatchObservation: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) - - // Specified beginning characters to rewrite. - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the header value sent by the client must be included in. - range?: [...#RangeObservation] @go(Range,[]RangeObservation) - - // Header value sent by the client must include the specified characters. - regex?: null | string @go(Regex,*string) - - // Header value sent by the client must end with the specified characters. - suffix?: null | string @go(Suffix,*string) -} - -#HeaderMatchParameters: { - // Header value sent by the client must match the specified value exactly. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) - - // Specified beginning characters to rewrite. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the header value sent by the client must be included in. - // +kubebuilder:validation:Optional - range?: [...#RangeParameters] @go(Range,[]RangeParameters) - - // Header value sent by the client must include the specified characters. - // +kubebuilder:validation:Optional - regex?: null | string @go(Regex,*string) - - // Header value sent by the client must end with the specified characters. - // +kubebuilder:validation:Optional - suffix?: null | string @go(Suffix,*string) -} - -#HeaderObservation: { - // If true, the match is on the opposite of the match method and value. Default is false. - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining a request match. - match?: [...#HeaderMatchObservation] @go(Match,[]HeaderMatchObservation) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#HeaderParameters: { - // If true, the match is on the opposite of the match method and value. Default is false. - // +kubebuilder:validation:Optional - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining a request match. - // +kubebuilder:validation:Optional - match?: [...#HeaderMatchParameters] @go(Match,[]HeaderMatchParameters) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#HostnameInitParameters: { - // Default target host name to write to. Valid values: ENABLED, DISABLED. - defaultTargetHostname?: null | string @go(DefaultTargetHostname,*string) -} - -#HostnameObservation: { - // Default target host name to write to. Valid values: ENABLED, DISABLED. - defaultTargetHostname?: null | string @go(DefaultTargetHostname,*string) -} - -#HostnameParameters: { - // Default target host name to write to. Valid values: ENABLED, DISABLED. - // +kubebuilder:validation:Optional - defaultTargetHostname?: null | string @go(DefaultTargetHostname,*string) -} - -#Http2RouteActionInitParameters: { - // Gateway route action to rewrite. - rewrite?: [...#RewriteInitParameters] @go(Rewrite,[]RewriteInitParameters) - - // Target that traffic is routed to when a request matches the gateway route. - target?: [...#ActionTargetInitParameters] @go(Target,[]ActionTargetInitParameters) -} - -#Http2RouteActionObservation: { - // Gateway route action to rewrite. - rewrite?: [...#RewriteObservation] @go(Rewrite,[]RewriteObservation) - - // Target that traffic is routed to when a request matches the gateway route. - target?: [...#ActionTargetObservation] @go(Target,[]ActionTargetObservation) -} - -#Http2RouteActionParameters: { - // Gateway route action to rewrite. - // +kubebuilder:validation:Optional - rewrite?: [...#RewriteParameters] @go(Rewrite,[]RewriteParameters) - - // Target that traffic is routed to when a request matches the gateway route. - // +kubebuilder:validation:Optional - target: [...#ActionTargetParameters] @go(Target,[]ActionTargetParameters) -} - -#Http2RouteInitParameters: { - // Action to take if a match is determined. - action?: [...#Http2RouteActionInitParameters] @go(Action,[]Http2RouteActionInitParameters) - - // Criteria for determining a request match. - match?: [...#Http2RouteMatchInitParameters] @go(Match,[]Http2RouteMatchInitParameters) -} - -#Http2RouteMatchInitParameters: { - // Client request headers to match on. - header?: [...#HeaderInitParameters] @go(Header,[]HeaderInitParameters) - - // Host name to rewrite. - hostname?: [...#MatchHostnameInitParameters] @go(Hostname,[]MatchHostnameInitParameters) - - // Client request path to match on. - path?: [...#PathInitParameters] @go(Path,[]PathInitParameters) - - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - port?: null | float64 @go(Port,*float64) - - // Specified beginning characters to rewrite. - prefix?: null | string @go(Prefix,*string) - - // Client request query parameters to match on. - queryParameter?: [...#QueryParameterInitParameters] @go(QueryParameter,[]QueryParameterInitParameters) -} - -#Http2RouteMatchObservation: { - // Client request headers to match on. - header?: [...#HeaderObservation] @go(Header,[]HeaderObservation) - - // Host name to rewrite. - hostname?: [...#MatchHostnameObservation] @go(Hostname,[]MatchHostnameObservation) - - // Client request path to match on. - path?: [...#PathObservation] @go(Path,[]PathObservation) - - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - port?: null | float64 @go(Port,*float64) - - // Specified beginning characters to rewrite. - prefix?: null | string @go(Prefix,*string) - - // Client request query parameters to match on. - queryParameter?: [...#QueryParameterObservation] @go(QueryParameter,[]QueryParameterObservation) -} - -#Http2RouteMatchParameters: { - // Client request headers to match on. - // +kubebuilder:validation:Optional - header?: [...#HeaderParameters] @go(Header,[]HeaderParameters) - - // Host name to rewrite. - // +kubebuilder:validation:Optional - hostname?: [...#MatchHostnameParameters] @go(Hostname,[]MatchHostnameParameters) - - // Client request path to match on. - // +kubebuilder:validation:Optional - path?: [...#PathParameters] @go(Path,[]PathParameters) - - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Specified beginning characters to rewrite. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Client request query parameters to match on. - // +kubebuilder:validation:Optional - queryParameter?: [...#QueryParameterParameters] @go(QueryParameter,[]QueryParameterParameters) -} - -#Http2RouteObservation: { - // Action to take if a match is determined. - action?: [...#Http2RouteActionObservation] @go(Action,[]Http2RouteActionObservation) - - // Criteria for determining a request match. - match?: [...#Http2RouteMatchObservation] @go(Match,[]Http2RouteMatchObservation) -} - -#Http2RouteParameters: { - // Action to take if a match is determined. - // +kubebuilder:validation:Optional - action: [...#Http2RouteActionParameters] @go(Action,[]Http2RouteActionParameters) - - // Criteria for determining a request match. - // +kubebuilder:validation:Optional - match: [...#Http2RouteMatchParameters] @go(Match,[]Http2RouteMatchParameters) -} - -#MatchHeaderInitParameters: { - // If true, the match is on the opposite of the match method and value. Default is false. - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining a request match. - match?: [...#MatchHeaderMatchInitParameters] @go(Match,[]MatchHeaderMatchInitParameters) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#MatchHeaderMatchInitParameters: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) - - // Specified beginning characters to rewrite. - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the header value sent by the client must be included in. - range?: [...#MatchRangeInitParameters] @go(Range,[]MatchRangeInitParameters) - - // Header value sent by the client must include the specified characters. - regex?: null | string @go(Regex,*string) - - // Header value sent by the client must end with the specified characters. - suffix?: null | string @go(Suffix,*string) -} - -#MatchHeaderMatchObservation: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) - - // Specified beginning characters to rewrite. - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the header value sent by the client must be included in. - range?: [...#MatchRangeObservation] @go(Range,[]MatchRangeObservation) - - // Header value sent by the client must include the specified characters. - regex?: null | string @go(Regex,*string) - - // Header value sent by the client must end with the specified characters. - suffix?: null | string @go(Suffix,*string) -} - -#MatchHeaderMatchParameters: { - // Header value sent by the client must match the specified value exactly. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) - - // Specified beginning characters to rewrite. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the header value sent by the client must be included in. - // +kubebuilder:validation:Optional - range?: [...#MatchRangeParameters] @go(Range,[]MatchRangeParameters) - - // Header value sent by the client must include the specified characters. - // +kubebuilder:validation:Optional - regex?: null | string @go(Regex,*string) - - // Header value sent by the client must end with the specified characters. - // +kubebuilder:validation:Optional - suffix?: null | string @go(Suffix,*string) -} - -#MatchHeaderObservation: { - // If true, the match is on the opposite of the match method and value. Default is false. - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining a request match. - match?: [...#MatchHeaderMatchObservation] @go(Match,[]MatchHeaderMatchObservation) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#MatchHeaderParameters: { - // If true, the match is on the opposite of the match method and value. Default is false. - // +kubebuilder:validation:Optional - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining a request match. - // +kubebuilder:validation:Optional - match?: [...#MatchHeaderMatchParameters] @go(Match,[]MatchHeaderMatchParameters) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#MatchHostnameInitParameters: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) - - // Header value sent by the client must end with the specified characters. - suffix?: null | string @go(Suffix,*string) -} - -#MatchHostnameObservation: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) - - // Header value sent by the client must end with the specified characters. - suffix?: null | string @go(Suffix,*string) -} - -#MatchHostnameParameters: { - // Header value sent by the client must match the specified value exactly. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) - - // Header value sent by the client must end with the specified characters. - // +kubebuilder:validation:Optional - suffix?: null | string @go(Suffix,*string) -} - -#MatchInitParameters: { - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - port?: null | float64 @go(Port,*float64) - - // Fully qualified domain name for the service to match from the request. - serviceName?: null | string @go(ServiceName,*string) -} - -#MatchObservation: { - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - port?: null | float64 @go(Port,*float64) - - // Fully qualified domain name for the service to match from the request. - serviceName?: null | string @go(ServiceName,*string) -} - -#MatchParameters: { - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Fully qualified domain name for the service to match from the request. - // +kubebuilder:validation:Optional - serviceName?: null | string @go(ServiceName,*string) -} - -#MatchPathInitParameters: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) - - // Header value sent by the client must include the specified characters. - regex?: null | string @go(Regex,*string) -} - -#MatchPathObservation: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) - - // Header value sent by the client must include the specified characters. - regex?: null | string @go(Regex,*string) -} - -#MatchPathParameters: { - // Header value sent by the client must match the specified value exactly. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) - - // Header value sent by the client must include the specified characters. - // +kubebuilder:validation:Optional - regex?: null | string @go(Regex,*string) -} - -#MatchQueryParameterInitParameters: { - // Criteria for determining a request match. - match?: [...#MatchQueryParameterMatchInitParameters] @go(Match,[]MatchQueryParameterMatchInitParameters) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#MatchQueryParameterMatchInitParameters: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) -} - -#MatchQueryParameterMatchObservation: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) -} - -#MatchQueryParameterMatchParameters: { - // Header value sent by the client must match the specified value exactly. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) -} - -#MatchQueryParameterObservation: { - // Criteria for determining a request match. - match?: [...#MatchQueryParameterMatchObservation] @go(Match,[]MatchQueryParameterMatchObservation) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#MatchQueryParameterParameters: { - // Criteria for determining a request match. - // +kubebuilder:validation:Optional - match?: [...#MatchQueryParameterMatchParameters] @go(Match,[]MatchQueryParameterMatchParameters) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#MatchRangeInitParameters: { - // End of the range. - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - start?: null | float64 @go(Start,*float64) -} - -#MatchRangeObservation: { - // End of the range. - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - start?: null | float64 @go(Start,*float64) -} - -#MatchRangeParameters: { - // End of the range. - // +kubebuilder:validation:Optional - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - // +kubebuilder:validation:Optional - start?: null | float64 @go(Start,*float64) -} - -#PathInitParameters: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) - - // Header value sent by the client must include the specified characters. - regex?: null | string @go(Regex,*string) -} - -#PathObservation: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) - - // Header value sent by the client must include the specified characters. - regex?: null | string @go(Regex,*string) -} - -#PathParameters: { - // Header value sent by the client must match the specified value exactly. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) - - // Header value sent by the client must include the specified characters. - // +kubebuilder:validation:Optional - regex?: null | string @go(Regex,*string) -} - -#PrefixInitParameters: { - // Default prefix used to replace the incoming route prefix when rewritten. Valid values: ENABLED, DISABLED. - defaultPrefix?: null | string @go(DefaultPrefix,*string) - - // Value used to replace the incoming route prefix when rewritten. - value?: null | string @go(Value,*string) -} - -#PrefixObservation: { - // Default prefix used to replace the incoming route prefix when rewritten. Valid values: ENABLED, DISABLED. - defaultPrefix?: null | string @go(DefaultPrefix,*string) - - // Value used to replace the incoming route prefix when rewritten. - value?: null | string @go(Value,*string) -} - -#PrefixParameters: { - // Default prefix used to replace the incoming route prefix when rewritten. Valid values: ENABLED, DISABLED. - // +kubebuilder:validation:Optional - defaultPrefix?: null | string @go(DefaultPrefix,*string) - - // Value used to replace the incoming route prefix when rewritten. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#QueryParameterInitParameters: { - // Criteria for determining a request match. - match?: [...#QueryParameterMatchInitParameters] @go(Match,[]QueryParameterMatchInitParameters) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#QueryParameterMatchInitParameters: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) -} - -#QueryParameterMatchObservation: { - // Header value sent by the client must match the specified value exactly. - exact?: null | string @go(Exact,*string) -} - -#QueryParameterMatchParameters: { - // Header value sent by the client must match the specified value exactly. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) -} - -#QueryParameterObservation: { - // Criteria for determining a request match. - match?: [...#QueryParameterMatchObservation] @go(Match,[]QueryParameterMatchObservation) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#QueryParameterParameters: { - // Criteria for determining a request match. - // +kubebuilder:validation:Optional - match?: [...#QueryParameterMatchParameters] @go(Match,[]QueryParameterMatchParameters) - - // Name to use for the gateway route. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#RangeInitParameters: { - // End of the range. - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - start?: null | float64 @go(Start,*float64) -} - -#RangeObservation: { - // End of the range. - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - start?: null | float64 @go(Start,*float64) -} - -#RangeParameters: { - // End of the range. - // +kubebuilder:validation:Optional - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - // +kubebuilder:validation:Optional - start?: null | float64 @go(Start,*float64) -} - -#RewriteHostnameInitParameters: { - // Default target host name to write to. Valid values: ENABLED, DISABLED. - defaultTargetHostname?: null | string @go(DefaultTargetHostname,*string) -} - -#RewriteHostnameObservation: { - // Default target host name to write to. Valid values: ENABLED, DISABLED. - defaultTargetHostname?: null | string @go(DefaultTargetHostname,*string) -} - -#RewriteHostnameParameters: { - // Default target host name to write to. Valid values: ENABLED, DISABLED. - // +kubebuilder:validation:Optional - defaultTargetHostname?: null | string @go(DefaultTargetHostname,*string) -} - -#RewriteInitParameters: { - // Host name to rewrite. - hostname?: [...#HostnameInitParameters] @go(Hostname,[]HostnameInitParameters) - - // Specified beginning characters to rewrite. - prefix?: [...#PrefixInitParameters] @go(Prefix,[]PrefixInitParameters) -} - -#RewriteObservation: { - // Host name to rewrite. - hostname?: [...#HostnameObservation] @go(Hostname,[]HostnameObservation) - - // Specified beginning characters to rewrite. - prefix?: [...#PrefixObservation] @go(Prefix,[]PrefixObservation) -} - -#RewriteParameters: { - // Host name to rewrite. - // +kubebuilder:validation:Optional - hostname?: [...#HostnameParameters] @go(Hostname,[]HostnameParameters) - - // Specified beginning characters to rewrite. - // +kubebuilder:validation:Optional - prefix?: [...#PrefixParameters] @go(Prefix,[]PrefixParameters) -} - -#RewritePrefixInitParameters: { - // Default prefix used to replace the incoming route prefix when rewritten. Valid values: ENABLED, DISABLED. - defaultPrefix?: null | string @go(DefaultPrefix,*string) - - // Value used to replace the incoming route prefix when rewritten. - value?: null | string @go(Value,*string) -} - -#RewritePrefixObservation: { - // Default prefix used to replace the incoming route prefix when rewritten. Valid values: ENABLED, DISABLED. - defaultPrefix?: null | string @go(DefaultPrefix,*string) - - // Value used to replace the incoming route prefix when rewritten. - value?: null | string @go(Value,*string) -} - -#RewritePrefixParameters: { - // Default prefix used to replace the incoming route prefix when rewritten. Valid values: ENABLED, DISABLED. - // +kubebuilder:validation:Optional - defaultPrefix?: null | string @go(DefaultPrefix,*string) - - // Value used to replace the incoming route prefix when rewritten. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#SpecInitParameters: { - // Specification of a gRPC gateway route. - grpcRoute?: [...#GRPCRouteInitParameters] @go(GRPCRoute,[]GRPCRouteInitParameters) - - // Specification of an HTTP gateway route. - httpRoute?: [...#HTTPRouteInitParameters] @go(HTTPRoute,[]HTTPRouteInitParameters) - - // Specification of an HTTP/2 gateway route. - http2Route?: [...#Http2RouteInitParameters] @go(Http2Route,[]Http2RouteInitParameters) - - // Priority for the gateway route, between 0 and 1000. - priority?: null | float64 @go(Priority,*float64) -} - -#SpecObservation: { - // Specification of a gRPC gateway route. - grpcRoute?: [...#GRPCRouteObservation] @go(GRPCRoute,[]GRPCRouteObservation) - - // Specification of an HTTP gateway route. - httpRoute?: [...#HTTPRouteObservation] @go(HTTPRoute,[]HTTPRouteObservation) - - // Specification of an HTTP/2 gateway route. - http2Route?: [...#Http2RouteObservation] @go(Http2Route,[]Http2RouteObservation) - - // Priority for the gateway route, between 0 and 1000. - priority?: null | float64 @go(Priority,*float64) -} - -#SpecParameters: { - // Specification of a gRPC gateway route. - // +kubebuilder:validation:Optional - grpcRoute?: [...#GRPCRouteParameters] @go(GRPCRoute,[]GRPCRouteParameters) - - // Specification of an HTTP gateway route. - // +kubebuilder:validation:Optional - httpRoute?: [...#HTTPRouteParameters] @go(HTTPRoute,[]HTTPRouteParameters) - - // Specification of an HTTP/2 gateway route. - // +kubebuilder:validation:Optional - http2Route?: [...#Http2RouteParameters] @go(Http2Route,[]Http2RouteParameters) - - // Priority for the gateway route, between 0 and 1000. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) -} - -#TargetInitParameters: { - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - port?: null | float64 @go(Port,*float64) - - // Virtual service gateway route target. - virtualService?: [...#VirtualServiceInitParameters] @go(VirtualService,[]VirtualServiceInitParameters) -} - -#TargetObservation: { - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - port?: null | float64 @go(Port,*float64) - - // Virtual service gateway route target. - virtualService?: [...#VirtualServiceObservation] @go(VirtualService,[]VirtualServiceObservation) -} - -#TargetParameters: { - // The port number that corresponds to the target for Virtual Service provider port. This is required when the provider (router or node) of the Virtual Service has multiple listeners. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Virtual service gateway route target. - // +kubebuilder:validation:Optional - virtualService: [...#VirtualServiceParameters] @go(VirtualService,[]VirtualServiceParameters) -} - -#TargetVirtualServiceInitParameters: { - // Name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. - virtualServiceName?: null | string @go(VirtualServiceName,*string) -} - -#TargetVirtualServiceObservation: { - // Name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. - virtualServiceName?: null | string @go(VirtualServiceName,*string) -} - -#TargetVirtualServiceParameters: { - // Name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - virtualServiceName?: null | string @go(VirtualServiceName,*string) -} - -#VirtualServiceInitParameters: { - // Name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. - virtualServiceName?: null | string @go(VirtualServiceName,*string) -} - -#VirtualServiceObservation: { - // Name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. - virtualServiceName?: null | string @go(VirtualServiceName,*string) -} - -#VirtualServiceParameters: { - // Name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - virtualServiceName?: null | string @go(VirtualServiceName,*string) -} - -// GatewayRouteSpec defines the desired state of GatewayRoute -#GatewayRouteSpec: { - v1.#ResourceSpec - forProvider: #GatewayRouteParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GatewayRouteInitParameters @go(InitProvider) -} - -// GatewayRouteStatus defines the observed state of GatewayRoute. -#GatewayRouteStatus: { - v1.#ResourceStatus - atProvider?: #GatewayRouteObservation @go(AtProvider) -} - -// GatewayRoute is the Schema for the GatewayRoutes API. Provides an AWS App Mesh gateway route resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GatewayRoute: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.meshName) || (has(self.initProvider) && has(self.initProvider.meshName))",message="spec.forProvider.meshName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.spec) || (has(self.initProvider) && has(self.initProvider.spec))",message="spec.forProvider.spec is a required parameter" - spec: #GatewayRouteSpec @go(Spec) - status?: #GatewayRouteStatus @go(Status) -} - -// GatewayRouteList contains a list of GatewayRoutes -#GatewayRouteList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GatewayRoute] @go(Items,[]GatewayRoute) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index a306f6b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appmesh/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=appmesh.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "appmesh.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_mesh_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_mesh_types_go_gen.cue deleted file mode 100644 index 2f8300d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_mesh_types_go_gen.cue +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appmesh/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EgressFilterInitParameters: { - // Egress filter type. By default, the type is DROP_ALL. - // Valid values are ALLOW_ALL and DROP_ALL. - type?: null | string @go(Type,*string) -} - -#EgressFilterObservation: { - // Egress filter type. By default, the type is DROP_ALL. - // Valid values are ALLOW_ALL and DROP_ALL. - type?: null | string @go(Type,*string) -} - -#EgressFilterParameters: { - // Egress filter type. By default, the type is DROP_ALL. - // Valid values are ALLOW_ALL and DROP_ALL. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#MeshInitParameters: { - // Service mesh specification to apply. - spec?: [...#MeshSpecInitParameters] @go(Spec,[]MeshSpecInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#MeshObservation: { - // ARN of the service mesh. - arn?: null | string @go(Arn,*string) - - // Creation date of the service mesh. - createdDate?: null | string @go(CreatedDate,*string) - - // ID of the service mesh. - id?: null | string @go(ID,*string) - - // Last update date of the service mesh. - lastUpdatedDate?: null | string @go(LastUpdatedDate,*string) - - // AWS account ID of the service mesh's owner. - meshOwner?: null | string @go(MeshOwner,*string) - - // Resource owner's AWS account ID. - resourceOwner?: null | string @go(ResourceOwner,*string) - - // Service mesh specification to apply. - spec?: [...#MeshSpecObservation] @go(Spec,[]MeshSpecObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#MeshParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Service mesh specification to apply. - // +kubebuilder:validation:Optional - spec?: [...#MeshSpecParameters] @go(Spec,[]MeshSpecParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#MeshSpecInitParameters: { - // Egress filter rules for the service mesh. - egressFilter?: [...#EgressFilterInitParameters] @go(EgressFilter,[]EgressFilterInitParameters) -} - -#MeshSpecObservation: { - // Egress filter rules for the service mesh. - egressFilter?: [...#EgressFilterObservation] @go(EgressFilter,[]EgressFilterObservation) -} - -#MeshSpecParameters: { - // Egress filter rules for the service mesh. - // +kubebuilder:validation:Optional - egressFilter?: [...#EgressFilterParameters] @go(EgressFilter,[]EgressFilterParameters) -} - -// MeshSpec defines the desired state of Mesh -#MeshSpec: { - v1.#ResourceSpec - forProvider: #MeshParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MeshInitParameters @go(InitProvider) -} - -// MeshStatus defines the observed state of Mesh. -#MeshStatus: { - v1.#ResourceStatus - atProvider?: #MeshObservation @go(AtProvider) -} - -// Mesh is the Schema for the Meshs API. Provides an AWS App Mesh service mesh resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Mesh: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #MeshSpec @go(Spec) - status?: #MeshStatus @go(Status) -} - -// MeshList contains a list of Meshs -#MeshList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Mesh] @go(Items,[]Mesh) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_route_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_route_types_go_gen.cue deleted file mode 100644 index 10dc036..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_route_types_go_gen.cue +++ /dev/null @@ -1,1856 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appmesh/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionWeightedTargetInitParameters: { - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. - virtualNode?: null | string @go(VirtualNode,*string) - - // Relative weight of the weighted target. An integer between 0 and 100. - weight?: null | float64 @go(Weight,*float64) -} - -#ActionWeightedTargetObservation: { - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. - virtualNode?: null | string @go(VirtualNode,*string) - - // Relative weight of the weighted target. An integer between 0 and 100. - weight?: null | float64 @go(Weight,*float64) -} - -#ActionWeightedTargetParameters: { - // The port number to match from the request. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - virtualNode?: null | string @go(VirtualNode,*string) - - // Relative weight of the weighted target. An integer between 0 and 100. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -#GRPCRouteActionInitParameters: { - // Targets that traffic is routed to when a request matches the route. - // You can specify one or more targets and their relative weights with which to distribute traffic. - weightedTarget?: [...#WeightedTargetInitParameters] @go(WeightedTarget,[]WeightedTargetInitParameters) -} - -#GRPCRouteActionObservation: { - // Targets that traffic is routed to when a request matches the route. - // You can specify one or more targets and their relative weights with which to distribute traffic. - weightedTarget?: [...#WeightedTargetObservation] @go(WeightedTarget,[]WeightedTargetObservation) -} - -#GRPCRouteActionParameters: { - // Targets that traffic is routed to when a request matches the route. - // You can specify one or more targets and their relative weights with which to distribute traffic. - // +kubebuilder:validation:Optional - weightedTarget: [...#WeightedTargetParameters] @go(WeightedTarget,[]WeightedTargetParameters) -} - -#GRPCRouteMatchInitParameters: { - // Data to match from the gRPC request. - metadata?: [...#MetadataInitParameters] @go(Metadata,[]MetadataInitParameters) - - // Method name to match from the request. If you specify a name, you must also specify a service_name. - methodName?: null | string @go(MethodName,*string) - - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Fully qualified domain name for the service to match from the request. - serviceName?: null | string @go(ServiceName,*string) -} - -#GRPCRouteMatchObservation: { - // Data to match from the gRPC request. - metadata?: [...#MetadataObservation] @go(Metadata,[]MetadataObservation) - - // Method name to match from the request. If you specify a name, you must also specify a service_name. - methodName?: null | string @go(MethodName,*string) - - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Fully qualified domain name for the service to match from the request. - serviceName?: null | string @go(ServiceName,*string) -} - -#GRPCRouteMatchParameters: { - // Data to match from the gRPC request. - // +kubebuilder:validation:Optional - metadata?: [...#MetadataParameters] @go(Metadata,[]MetadataParameters) - - // Method name to match from the request. If you specify a name, you must also specify a service_name. - // +kubebuilder:validation:Optional - methodName?: null | string @go(MethodName,*string) - - // The port number to match from the request. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Fully qualified domain name for the service to match from the request. - // +kubebuilder:validation:Optional - serviceName?: null | string @go(ServiceName,*string) -} - -#HTTPRouteActionWeightedTargetInitParameters: { - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Relative weight of the weighted target. An integer between 0 and 100. - weight?: null | float64 @go(Weight,*float64) -} - -#HTTPRouteActionWeightedTargetObservation: { - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. - virtualNode?: null | string @go(VirtualNode,*string) - - // Relative weight of the weighted target. An integer between 0 and 100. - weight?: null | float64 @go(Weight,*float64) -} - -#HTTPRouteActionWeightedTargetParameters: { - // The port number to match from the request. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appmesh/v1beta1.VirtualNode - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - virtualNode?: null | string @go(VirtualNode,*string) - - // Reference to a VirtualNode in appmesh to populate virtualNode. - // +kubebuilder:validation:Optional - virtualNodeRef?: null | v1.#Reference @go(VirtualNodeRef,*v1.Reference) - - // Selector for a VirtualNode in appmesh to populate virtualNode. - // +kubebuilder:validation:Optional - virtualNodeSelector?: null | v1.#Selector @go(VirtualNodeSelector,*v1.Selector) - - // Relative weight of the weighted target. An integer between 0 and 100. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -#HTTPRouteMatchHeaderInitParameters: { - // If true, the match is on the opposite of the match criteria. Default is false. - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining an gRPC request match. - match?: [...#HTTPRouteMatchHeaderMatchInitParameters] @go(Match,[]HTTPRouteMatchHeaderMatchInitParameters) - - // Name to use for the route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#HTTPRouteMatchHeaderMatchInitParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the value sent by the client must be included in. - range?: [...#MatchHeaderMatchRangeInitParameters] @go(Range,[]MatchHeaderMatchRangeInitParameters) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - regex?: null | string @go(Regex,*string) - - // Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length. - suffix?: null | string @go(Suffix,*string) -} - -#HTTPRouteMatchHeaderMatchObservation: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the value sent by the client must be included in. - range?: [...#MatchHeaderMatchRangeObservation] @go(Range,[]MatchHeaderMatchRangeObservation) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - regex?: null | string @go(Regex,*string) - - // Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length. - suffix?: null | string @go(Suffix,*string) -} - -#HTTPRouteMatchHeaderMatchParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the value sent by the client must be included in. - // +kubebuilder:validation:Optional - range?: [...#MatchHeaderMatchRangeParameters] @go(Range,[]MatchHeaderMatchRangeParameters) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - regex?: null | string @go(Regex,*string) - - // Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - suffix?: null | string @go(Suffix,*string) -} - -#HTTPRouteMatchHeaderObservation: { - // If true, the match is on the opposite of the match criteria. Default is false. - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining an gRPC request match. - match?: [...#HTTPRouteMatchHeaderMatchObservation] @go(Match,[]HTTPRouteMatchHeaderMatchObservation) - - // Name to use for the route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#HTTPRouteMatchHeaderParameters: { - // If true, the match is on the opposite of the match criteria. Default is false. - // +kubebuilder:validation:Optional - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining an gRPC request match. - // +kubebuilder:validation:Optional - match?: [...#HTTPRouteMatchHeaderMatchParameters] @go(Match,[]HTTPRouteMatchHeaderMatchParameters) - - // Name to use for the route. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#HTTPRouteMatchPathInitParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - regex?: null | string @go(Regex,*string) -} - -#HTTPRouteMatchPathObservation: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - regex?: null | string @go(Regex,*string) -} - -#HTTPRouteMatchPathParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - regex?: null | string @go(Regex,*string) -} - -#HTTPRouteMatchQueryParameterInitParameters: { - // Criteria for determining an gRPC request match. - match?: [...#HTTPRouteMatchQueryParameterMatchInitParameters] @go(Match,[]HTTPRouteMatchQueryParameterMatchInitParameters) - - // Name to use for the route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#HTTPRouteMatchQueryParameterMatchInitParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) -} - -#HTTPRouteMatchQueryParameterMatchObservation: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) -} - -#HTTPRouteMatchQueryParameterMatchParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) -} - -#HTTPRouteMatchQueryParameterObservation: { - // Criteria for determining an gRPC request match. - match?: [...#HTTPRouteMatchQueryParameterMatchObservation] @go(Match,[]HTTPRouteMatchQueryParameterMatchObservation) - - // Name to use for the route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#HTTPRouteMatchQueryParameterParameters: { - // Criteria for determining an gRPC request match. - // +kubebuilder:validation:Optional - match?: [...#HTTPRouteMatchQueryParameterMatchParameters] @go(Match,[]HTTPRouteMatchQueryParameterMatchParameters) - - // Name to use for the route. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#HTTPRouteRetryPolicyInitParameters: { - // List of HTTP retry events. - // Valid values: client-error (HTTP status code 409), gateway-error (HTTP status codes 502, 503, and 504), server-error (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), stream-error (retry on refused stream). - httpRetryEvents?: [...null | string] @go(HTTPRetryEvents,[]*string) - - // Maximum number of retries. - maxRetries?: null | float64 @go(MaxRetries,*float64) - - // Per-retry timeout. - perRetryTimeout?: [...#HTTPRouteRetryPolicyPerRetryTimeoutInitParameters] @go(PerRetryTimeout,[]HTTPRouteRetryPolicyPerRetryTimeoutInitParameters) - - // List of TCP retry events. The only valid value is connection-error. - tcpRetryEvents?: [...null | string] @go(TCPRetryEvents,[]*string) -} - -#HTTPRouteRetryPolicyObservation: { - // List of HTTP retry events. - // Valid values: client-error (HTTP status code 409), gateway-error (HTTP status codes 502, 503, and 504), server-error (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), stream-error (retry on refused stream). - httpRetryEvents?: [...null | string] @go(HTTPRetryEvents,[]*string) - - // Maximum number of retries. - maxRetries?: null | float64 @go(MaxRetries,*float64) - - // Per-retry timeout. - perRetryTimeout?: [...#HTTPRouteRetryPolicyPerRetryTimeoutObservation] @go(PerRetryTimeout,[]HTTPRouteRetryPolicyPerRetryTimeoutObservation) - - // List of TCP retry events. The only valid value is connection-error. - tcpRetryEvents?: [...null | string] @go(TCPRetryEvents,[]*string) -} - -#HTTPRouteRetryPolicyParameters: { - // List of HTTP retry events. - // Valid values: client-error (HTTP status code 409), gateway-error (HTTP status codes 502, 503, and 504), server-error (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), stream-error (retry on refused stream). - // +kubebuilder:validation:Optional - httpRetryEvents?: [...null | string] @go(HTTPRetryEvents,[]*string) - - // Maximum number of retries. - // +kubebuilder:validation:Optional - maxRetries?: null | float64 @go(MaxRetries,*float64) - - // Per-retry timeout. - // +kubebuilder:validation:Optional - perRetryTimeout: [...#HTTPRouteRetryPolicyPerRetryTimeoutParameters] @go(PerRetryTimeout,[]HTTPRouteRetryPolicyPerRetryTimeoutParameters) - - // List of TCP retry events. The only valid value is connection-error. - // +kubebuilder:validation:Optional - tcpRetryEvents?: [...null | string] @go(TCPRetryEvents,[]*string) -} - -#HTTPRouteRetryPolicyPerRetryTimeoutInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#HTTPRouteRetryPolicyPerRetryTimeoutObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#HTTPRouteRetryPolicyPerRetryTimeoutParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#HTTPRouteTimeoutIdleInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#HTTPRouteTimeoutIdleObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#HTTPRouteTimeoutIdleParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#HTTPRouteTimeoutInitParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#HTTPRouteTimeoutIdleInitParameters] @go(Idle,[]HTTPRouteTimeoutIdleInitParameters) - - // Per request timeout. - perRequest?: [...#HTTPRouteTimeoutPerRequestInitParameters] @go(PerRequest,[]HTTPRouteTimeoutPerRequestInitParameters) -} - -#HTTPRouteTimeoutObservation: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#HTTPRouteTimeoutIdleObservation] @go(Idle,[]HTTPRouteTimeoutIdleObservation) - - // Per request timeout. - perRequest?: [...#HTTPRouteTimeoutPerRequestObservation] @go(PerRequest,[]HTTPRouteTimeoutPerRequestObservation) -} - -#HTTPRouteTimeoutParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - // +kubebuilder:validation:Optional - idle?: [...#HTTPRouteTimeoutIdleParameters] @go(Idle,[]HTTPRouteTimeoutIdleParameters) - - // Per request timeout. - // +kubebuilder:validation:Optional - perRequest?: [...#HTTPRouteTimeoutPerRequestParameters] @go(PerRequest,[]HTTPRouteTimeoutPerRequestParameters) -} - -#HTTPRouteTimeoutPerRequestInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#HTTPRouteTimeoutPerRequestObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#HTTPRouteTimeoutPerRequestParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#HeaderMatchRangeInitParameters: { - // End of the range. - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - start?: null | float64 @go(Start,*float64) -} - -#HeaderMatchRangeObservation: { - // End of the range. - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - start?: null | float64 @go(Start,*float64) -} - -#HeaderMatchRangeParameters: { - // End of the range. - // +kubebuilder:validation:Optional - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - // +kubebuilder:validation:Optional - start?: null | float64 @go(Start,*float64) -} - -#Http2RouteMatchHeaderInitParameters: { - // If true, the match is on the opposite of the match criteria. Default is false. - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining an gRPC request match. - match?: [...#Http2RouteMatchHeaderMatchInitParameters] @go(Match,[]Http2RouteMatchHeaderMatchInitParameters) - - // Name to use for the route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#Http2RouteMatchHeaderMatchInitParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the value sent by the client must be included in. - range?: [...#HeaderMatchRangeInitParameters] @go(Range,[]HeaderMatchRangeInitParameters) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - regex?: null | string @go(Regex,*string) - - // Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length. - suffix?: null | string @go(Suffix,*string) -} - -#Http2RouteMatchHeaderMatchObservation: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the value sent by the client must be included in. - range?: [...#HeaderMatchRangeObservation] @go(Range,[]HeaderMatchRangeObservation) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - regex?: null | string @go(Regex,*string) - - // Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length. - suffix?: null | string @go(Suffix,*string) -} - -#Http2RouteMatchHeaderMatchParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the value sent by the client must be included in. - // +kubebuilder:validation:Optional - range?: [...#HeaderMatchRangeParameters] @go(Range,[]HeaderMatchRangeParameters) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - regex?: null | string @go(Regex,*string) - - // Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - suffix?: null | string @go(Suffix,*string) -} - -#Http2RouteMatchHeaderObservation: { - // If true, the match is on the opposite of the match criteria. Default is false. - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining an gRPC request match. - match?: [...#Http2RouteMatchHeaderMatchObservation] @go(Match,[]Http2RouteMatchHeaderMatchObservation) - - // Name to use for the route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#Http2RouteMatchHeaderParameters: { - // If true, the match is on the opposite of the match criteria. Default is false. - // +kubebuilder:validation:Optional - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining an gRPC request match. - // +kubebuilder:validation:Optional - match?: [...#Http2RouteMatchHeaderMatchParameters] @go(Match,[]Http2RouteMatchHeaderMatchParameters) - - // Name to use for the route. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#Http2RouteMatchPathInitParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - regex?: null | string @go(Regex,*string) -} - -#Http2RouteMatchPathObservation: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - regex?: null | string @go(Regex,*string) -} - -#Http2RouteMatchPathParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - regex?: null | string @go(Regex,*string) -} - -#Http2RouteMatchQueryParameterInitParameters: { - // Criteria for determining an gRPC request match. - match?: [...#Http2RouteMatchQueryParameterMatchInitParameters] @go(Match,[]Http2RouteMatchQueryParameterMatchInitParameters) - - // Name to use for the route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#Http2RouteMatchQueryParameterMatchInitParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) -} - -#Http2RouteMatchQueryParameterMatchObservation: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) -} - -#Http2RouteMatchQueryParameterMatchParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) -} - -#Http2RouteMatchQueryParameterObservation: { - // Criteria for determining an gRPC request match. - match?: [...#Http2RouteMatchQueryParameterMatchObservation] @go(Match,[]Http2RouteMatchQueryParameterMatchObservation) - - // Name to use for the route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#Http2RouteMatchQueryParameterParameters: { - // Criteria for determining an gRPC request match. - // +kubebuilder:validation:Optional - match?: [...#Http2RouteMatchQueryParameterMatchParameters] @go(Match,[]Http2RouteMatchQueryParameterMatchParameters) - - // Name to use for the route. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#Http2RouteRetryPolicyInitParameters: { - // List of HTTP retry events. - // Valid values: client-error (HTTP status code 409), gateway-error (HTTP status codes 502, 503, and 504), server-error (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), stream-error (retry on refused stream). - httpRetryEvents?: [...null | string] @go(HTTPRetryEvents,[]*string) - - // Maximum number of retries. - maxRetries?: null | float64 @go(MaxRetries,*float64) - - // Per-retry timeout. - perRetryTimeout?: [...#RetryPolicyPerRetryTimeoutInitParameters] @go(PerRetryTimeout,[]RetryPolicyPerRetryTimeoutInitParameters) - - // List of TCP retry events. The only valid value is connection-error. - tcpRetryEvents?: [...null | string] @go(TCPRetryEvents,[]*string) -} - -#Http2RouteRetryPolicyObservation: { - // List of HTTP retry events. - // Valid values: client-error (HTTP status code 409), gateway-error (HTTP status codes 502, 503, and 504), server-error (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), stream-error (retry on refused stream). - httpRetryEvents?: [...null | string] @go(HTTPRetryEvents,[]*string) - - // Maximum number of retries. - maxRetries?: null | float64 @go(MaxRetries,*float64) - - // Per-retry timeout. - perRetryTimeout?: [...#RetryPolicyPerRetryTimeoutObservation] @go(PerRetryTimeout,[]RetryPolicyPerRetryTimeoutObservation) - - // List of TCP retry events. The only valid value is connection-error. - tcpRetryEvents?: [...null | string] @go(TCPRetryEvents,[]*string) -} - -#Http2RouteRetryPolicyParameters: { - // List of HTTP retry events. - // Valid values: client-error (HTTP status code 409), gateway-error (HTTP status codes 502, 503, and 504), server-error (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), stream-error (retry on refused stream). - // +kubebuilder:validation:Optional - httpRetryEvents?: [...null | string] @go(HTTPRetryEvents,[]*string) - - // Maximum number of retries. - // +kubebuilder:validation:Optional - maxRetries?: null | float64 @go(MaxRetries,*float64) - - // Per-retry timeout. - // +kubebuilder:validation:Optional - perRetryTimeout: [...#RetryPolicyPerRetryTimeoutParameters] @go(PerRetryTimeout,[]RetryPolicyPerRetryTimeoutParameters) - - // List of TCP retry events. The only valid value is connection-error. - // +kubebuilder:validation:Optional - tcpRetryEvents?: [...null | string] @go(TCPRetryEvents,[]*string) -} - -#Http2RouteTimeoutInitParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#TimeoutIdleInitParameters] @go(Idle,[]TimeoutIdleInitParameters) - - // Per request timeout. - perRequest?: [...#TimeoutPerRequestInitParameters] @go(PerRequest,[]TimeoutPerRequestInitParameters) -} - -#Http2RouteTimeoutObservation: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#TimeoutIdleObservation] @go(Idle,[]TimeoutIdleObservation) - - // Per request timeout. - perRequest?: [...#TimeoutPerRequestObservation] @go(PerRequest,[]TimeoutPerRequestObservation) -} - -#Http2RouteTimeoutParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - // +kubebuilder:validation:Optional - idle?: [...#TimeoutIdleParameters] @go(Idle,[]TimeoutIdleParameters) - - // Per request timeout. - // +kubebuilder:validation:Optional - perRequest?: [...#TimeoutPerRequestParameters] @go(PerRequest,[]TimeoutPerRequestParameters) -} - -#IdleInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#IdleObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#IdleParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#MatchHeaderMatchRangeInitParameters: { - // End of the range. - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - start?: null | float64 @go(Start,*float64) -} - -#MatchHeaderMatchRangeObservation: { - // End of the range. - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - start?: null | float64 @go(Start,*float64) -} - -#MatchHeaderMatchRangeParameters: { - // End of the range. - // +kubebuilder:validation:Optional - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - // +kubebuilder:validation:Optional - start?: null | float64 @go(Start,*float64) -} - -#MetadataInitParameters: { - // If true, the match is on the opposite of the match criteria. Default is false. - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining an gRPC request match. - match?: [...#MetadataMatchInitParameters] @go(Match,[]MetadataMatchInitParameters) - - // Name to use for the route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#MetadataMatchInitParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the value sent by the client must be included in. - range?: [...#MetadataMatchRangeInitParameters] @go(Range,[]MetadataMatchRangeInitParameters) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - regex?: null | string @go(Regex,*string) - - // Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length. - suffix?: null | string @go(Suffix,*string) -} - -#MetadataMatchObservation: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - exact?: null | string @go(Exact,*string) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the value sent by the client must be included in. - range?: [...#MetadataMatchRangeObservation] @go(Range,[]MetadataMatchRangeObservation) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - regex?: null | string @go(Regex,*string) - - // Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length. - suffix?: null | string @go(Suffix,*string) -} - -#MetadataMatchParameters: { - // Value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - exact?: null | string @go(Exact,*string) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Object that specifies the range of numbers that the value sent by the client must be included in. - // +kubebuilder:validation:Optional - range?: [...#MetadataMatchRangeParameters] @go(Range,[]MetadataMatchRangeParameters) - - // Value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - regex?: null | string @go(Regex,*string) - - // Value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - suffix?: null | string @go(Suffix,*string) -} - -#MetadataMatchRangeInitParameters: { - // End of the range. - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - start?: null | float64 @go(Start,*float64) -} - -#MetadataMatchRangeObservation: { - // End of the range. - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - start?: null | float64 @go(Start,*float64) -} - -#MetadataMatchRangeParameters: { - // End of the range. - // +kubebuilder:validation:Optional - end?: null | float64 @go(End,*float64) - - // (Requited) Start of the range. - // +kubebuilder:validation:Optional - start?: null | float64 @go(Start,*float64) -} - -#MetadataObservation: { - // If true, the match is on the opposite of the match criteria. Default is false. - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining an gRPC request match. - match?: [...#MetadataMatchObservation] @go(Match,[]MetadataMatchObservation) - - // Name to use for the route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) -} - -#MetadataParameters: { - // If true, the match is on the opposite of the match criteria. Default is false. - // +kubebuilder:validation:Optional - invert?: null | bool @go(Invert,*bool) - - // Criteria for determining an gRPC request match. - // +kubebuilder:validation:Optional - match?: [...#MetadataMatchParameters] @go(Match,[]MetadataMatchParameters) - - // Name to use for the route. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#PerRequestInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#PerRequestObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#PerRequestParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#PerRetryTimeoutInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#PerRetryTimeoutObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#PerRetryTimeoutParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#RetryPolicyInitParameters: { - // List of gRPC retry events. - // Valid values: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable. - grpcRetryEvents?: [...null | string] @go(GRPCRetryEvents,[]*string) - - // List of HTTP retry events. - // Valid values: client-error (HTTP status code 409), gateway-error (HTTP status codes 502, 503, and 504), server-error (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), stream-error (retry on refused stream). - httpRetryEvents?: [...null | string] @go(HTTPRetryEvents,[]*string) - - // Maximum number of retries. - maxRetries?: null | float64 @go(MaxRetries,*float64) - - // Per-retry timeout. - perRetryTimeout?: [...#PerRetryTimeoutInitParameters] @go(PerRetryTimeout,[]PerRetryTimeoutInitParameters) - - // List of TCP retry events. The only valid value is connection-error. - tcpRetryEvents?: [...null | string] @go(TCPRetryEvents,[]*string) -} - -#RetryPolicyObservation: { - // List of gRPC retry events. - // Valid values: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable. - grpcRetryEvents?: [...null | string] @go(GRPCRetryEvents,[]*string) - - // List of HTTP retry events. - // Valid values: client-error (HTTP status code 409), gateway-error (HTTP status codes 502, 503, and 504), server-error (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), stream-error (retry on refused stream). - httpRetryEvents?: [...null | string] @go(HTTPRetryEvents,[]*string) - - // Maximum number of retries. - maxRetries?: null | float64 @go(MaxRetries,*float64) - - // Per-retry timeout. - perRetryTimeout?: [...#PerRetryTimeoutObservation] @go(PerRetryTimeout,[]PerRetryTimeoutObservation) - - // List of TCP retry events. The only valid value is connection-error. - tcpRetryEvents?: [...null | string] @go(TCPRetryEvents,[]*string) -} - -#RetryPolicyParameters: { - // List of gRPC retry events. - // Valid values: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable. - // +kubebuilder:validation:Optional - grpcRetryEvents?: [...null | string] @go(GRPCRetryEvents,[]*string) - - // List of HTTP retry events. - // Valid values: client-error (HTTP status code 409), gateway-error (HTTP status codes 502, 503, and 504), server-error (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), stream-error (retry on refused stream). - // +kubebuilder:validation:Optional - httpRetryEvents?: [...null | string] @go(HTTPRetryEvents,[]*string) - - // Maximum number of retries. - // +kubebuilder:validation:Optional - maxRetries?: null | float64 @go(MaxRetries,*float64) - - // Per-retry timeout. - // +kubebuilder:validation:Optional - perRetryTimeout: [...#PerRetryTimeoutParameters] @go(PerRetryTimeout,[]PerRetryTimeoutParameters) - - // List of TCP retry events. The only valid value is connection-error. - // +kubebuilder:validation:Optional - tcpRetryEvents?: [...null | string] @go(TCPRetryEvents,[]*string) -} - -#RetryPolicyPerRetryTimeoutInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#RetryPolicyPerRetryTimeoutObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#RetryPolicyPerRetryTimeoutParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#RouteInitParameters: { - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) - - // Route specification to apply. - spec?: [...#RouteSpecInitParameters] @go(Spec,[]RouteSpecInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RouteObservation: { - // ARN of the route. - arn?: null | string @go(Arn,*string) - - // Creation date of the route. - createdDate?: null | string @go(CreatedDate,*string) - - // ID of the route. - id?: null | string @go(ID,*string) - - // Last update date of the route. - lastUpdatedDate?: null | string @go(LastUpdatedDate,*string) - - // Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length. - meshName?: null | string @go(MeshName,*string) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the route. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) - - // Resource owner's AWS account ID. - resourceOwner?: null | string @go(ResourceOwner,*string) - - // Route specification to apply. - spec?: [...#RouteSpecObservation] @go(Spec,[]RouteSpecObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length. - virtualRouterName?: null | string @go(VirtualRouterName,*string) -} - -#RouteParameters: { - // Name of the service mesh in which to create the route. Must be between 1 and 255 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appmesh/v1beta1.Mesh - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - meshName?: null | string @go(MeshName,*string) - - // Reference to a Mesh in appmesh to populate meshName. - // +kubebuilder:validation:Optional - meshNameRef?: null | v1.#Reference @go(MeshNameRef,*v1.Reference) - - // Selector for a Mesh in appmesh to populate meshName. - // +kubebuilder:validation:Optional - meshNameSelector?: null | v1.#Selector @go(MeshNameSelector,*v1.Selector) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - // +kubebuilder:validation:Optional - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the route. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Route specification to apply. - // +kubebuilder:validation:Optional - spec?: [...#RouteSpecParameters] @go(Spec,[]RouteSpecParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Name of the virtual router in which to create the route. Must be between 1 and 255 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appmesh/v1beta1.VirtualRouter - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - virtualRouterName?: null | string @go(VirtualRouterName,*string) - - // Reference to a VirtualRouter in appmesh to populate virtualRouterName. - // +kubebuilder:validation:Optional - virtualRouterNameRef?: null | v1.#Reference @go(VirtualRouterNameRef,*v1.Reference) - - // Selector for a VirtualRouter in appmesh to populate virtualRouterName. - // +kubebuilder:validation:Optional - virtualRouterNameSelector?: null | v1.#Selector @go(VirtualRouterNameSelector,*v1.Selector) -} - -#RouteSpecInitParameters: { - // GRPC routing information for the route. - grpcRoute?: [...#SpecGRPCRouteInitParameters] @go(GRPCRoute,[]SpecGRPCRouteInitParameters) - - // HTTP routing information for the route. - httpRoute?: [...#SpecHTTPRouteInitParameters] @go(HTTPRoute,[]SpecHTTPRouteInitParameters) - - // HTTP/2 routing information for the route. - http2Route?: [...#SpecHttp2RouteInitParameters] @go(Http2Route,[]SpecHttp2RouteInitParameters) - - // Priority for the route, between 0 and 1000. - // Routes are matched based on the specified value, where 0 is the highest priority. - priority?: null | float64 @go(Priority,*float64) - - // TCP routing information for the route. - tcpRoute?: [...#TCPRouteInitParameters] @go(TCPRoute,[]TCPRouteInitParameters) -} - -#RouteSpecObservation: { - // GRPC routing information for the route. - grpcRoute?: [...#SpecGRPCRouteObservation] @go(GRPCRoute,[]SpecGRPCRouteObservation) - - // HTTP routing information for the route. - httpRoute?: [...#SpecHTTPRouteObservation] @go(HTTPRoute,[]SpecHTTPRouteObservation) - - // HTTP/2 routing information for the route. - http2Route?: [...#SpecHttp2RouteObservation] @go(Http2Route,[]SpecHttp2RouteObservation) - - // Priority for the route, between 0 and 1000. - // Routes are matched based on the specified value, where 0 is the highest priority. - priority?: null | float64 @go(Priority,*float64) - - // TCP routing information for the route. - tcpRoute?: [...#TCPRouteObservation] @go(TCPRoute,[]TCPRouteObservation) -} - -#RouteSpecParameters: { - // GRPC routing information for the route. - // +kubebuilder:validation:Optional - grpcRoute?: [...#SpecGRPCRouteParameters] @go(GRPCRoute,[]SpecGRPCRouteParameters) - - // HTTP routing information for the route. - // +kubebuilder:validation:Optional - httpRoute?: [...#SpecHTTPRouteParameters] @go(HTTPRoute,[]SpecHTTPRouteParameters) - - // HTTP/2 routing information for the route. - // +kubebuilder:validation:Optional - http2Route?: [...#SpecHttp2RouteParameters] @go(Http2Route,[]SpecHttp2RouteParameters) - - // Priority for the route, between 0 and 1000. - // Routes are matched based on the specified value, where 0 is the highest priority. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // TCP routing information for the route. - // +kubebuilder:validation:Optional - tcpRoute?: [...#TCPRouteParameters] @go(TCPRoute,[]TCPRouteParameters) -} - -#SpecGRPCRouteInitParameters: { - // Action to take if a match is determined. - action?: [...#GRPCRouteActionInitParameters] @go(Action,[]GRPCRouteActionInitParameters) - - // Criteria for determining an gRPC request match. - match?: [...#GRPCRouteMatchInitParameters] @go(Match,[]GRPCRouteMatchInitParameters) - - // Retry policy. - retryPolicy?: [...#RetryPolicyInitParameters] @go(RetryPolicy,[]RetryPolicyInitParameters) - - // Types of timeouts. - timeout?: [...#TimeoutInitParameters] @go(Timeout,[]TimeoutInitParameters) -} - -#SpecGRPCRouteObservation: { - // Action to take if a match is determined. - action?: [...#GRPCRouteActionObservation] @go(Action,[]GRPCRouteActionObservation) - - // Criteria for determining an gRPC request match. - match?: [...#GRPCRouteMatchObservation] @go(Match,[]GRPCRouteMatchObservation) - - // Retry policy. - retryPolicy?: [...#RetryPolicyObservation] @go(RetryPolicy,[]RetryPolicyObservation) - - // Types of timeouts. - timeout?: [...#TimeoutObservation] @go(Timeout,[]TimeoutObservation) -} - -#SpecGRPCRouteParameters: { - // Action to take if a match is determined. - // +kubebuilder:validation:Optional - action: [...#GRPCRouteActionParameters] @go(Action,[]GRPCRouteActionParameters) - - // Criteria for determining an gRPC request match. - // +kubebuilder:validation:Optional - match?: [...#GRPCRouteMatchParameters] @go(Match,[]GRPCRouteMatchParameters) - - // Retry policy. - // +kubebuilder:validation:Optional - retryPolicy?: [...#RetryPolicyParameters] @go(RetryPolicy,[]RetryPolicyParameters) - - // Types of timeouts. - // +kubebuilder:validation:Optional - timeout?: [...#TimeoutParameters] @go(Timeout,[]TimeoutParameters) -} - -#SpecHTTPRouteActionInitParameters: { - // Targets that traffic is routed to when a request matches the route. - // You can specify one or more targets and their relative weights with which to distribute traffic. - weightedTarget?: [...#HTTPRouteActionWeightedTargetInitParameters] @go(WeightedTarget,[]HTTPRouteActionWeightedTargetInitParameters) -} - -#SpecHTTPRouteActionObservation: { - // Targets that traffic is routed to when a request matches the route. - // You can specify one or more targets and their relative weights with which to distribute traffic. - weightedTarget?: [...#HTTPRouteActionWeightedTargetObservation] @go(WeightedTarget,[]HTTPRouteActionWeightedTargetObservation) -} - -#SpecHTTPRouteActionParameters: { - // Targets that traffic is routed to when a request matches the route. - // You can specify one or more targets and their relative weights with which to distribute traffic. - // +kubebuilder:validation:Optional - weightedTarget: [...#HTTPRouteActionWeightedTargetParameters] @go(WeightedTarget,[]HTTPRouteActionWeightedTargetParameters) -} - -#SpecHTTPRouteInitParameters: { - // Action to take if a match is determined. - action?: [...#SpecHTTPRouteActionInitParameters] @go(Action,[]SpecHTTPRouteActionInitParameters) - - // Criteria for determining an gRPC request match. - match?: [...#SpecHTTPRouteMatchInitParameters] @go(Match,[]SpecHTTPRouteMatchInitParameters) - - // Retry policy. - retryPolicy?: [...#HTTPRouteRetryPolicyInitParameters] @go(RetryPolicy,[]HTTPRouteRetryPolicyInitParameters) - - // Types of timeouts. - timeout?: [...#HTTPRouteTimeoutInitParameters] @go(Timeout,[]HTTPRouteTimeoutInitParameters) -} - -#SpecHTTPRouteMatchInitParameters: { - // Client request headers to match on. - header?: [...#HTTPRouteMatchHeaderInitParameters] @go(Header,[]HTTPRouteMatchHeaderInitParameters) - - // Client request header method to match on. Valid values: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH. - method?: null | string @go(Method,*string) - - // Client request path to match on. - path?: [...#HTTPRouteMatchPathInitParameters] @go(Path,[]HTTPRouteMatchPathInitParameters) - - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Client request query parameters to match on. - queryParameter?: [...#HTTPRouteMatchQueryParameterInitParameters] @go(QueryParameter,[]HTTPRouteMatchQueryParameterInitParameters) - - // Client request header scheme to match on. Valid values: http, https. - scheme?: null | string @go(Scheme,*string) -} - -#SpecHTTPRouteMatchObservation: { - // Client request headers to match on. - header?: [...#HTTPRouteMatchHeaderObservation] @go(Header,[]HTTPRouteMatchHeaderObservation) - - // Client request header method to match on. Valid values: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH. - method?: null | string @go(Method,*string) - - // Client request path to match on. - path?: [...#HTTPRouteMatchPathObservation] @go(Path,[]HTTPRouteMatchPathObservation) - - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Client request query parameters to match on. - queryParameter?: [...#HTTPRouteMatchQueryParameterObservation] @go(QueryParameter,[]HTTPRouteMatchQueryParameterObservation) - - // Client request header scheme to match on. Valid values: http, https. - scheme?: null | string @go(Scheme,*string) -} - -#SpecHTTPRouteMatchParameters: { - // Client request headers to match on. - // +kubebuilder:validation:Optional - header?: [...#HTTPRouteMatchHeaderParameters] @go(Header,[]HTTPRouteMatchHeaderParameters) - - // Client request header method to match on. Valid values: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH. - // +kubebuilder:validation:Optional - method?: null | string @go(Method,*string) - - // Client request path to match on. - // +kubebuilder:validation:Optional - path?: [...#HTTPRouteMatchPathParameters] @go(Path,[]HTTPRouteMatchPathParameters) - - // The port number to match from the request. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Client request query parameters to match on. - // +kubebuilder:validation:Optional - queryParameter?: [...#HTTPRouteMatchQueryParameterParameters] @go(QueryParameter,[]HTTPRouteMatchQueryParameterParameters) - - // Client request header scheme to match on. Valid values: http, https. - // +kubebuilder:validation:Optional - scheme?: null | string @go(Scheme,*string) -} - -#SpecHTTPRouteObservation: { - // Action to take if a match is determined. - action?: [...#SpecHTTPRouteActionObservation] @go(Action,[]SpecHTTPRouteActionObservation) - - // Criteria for determining an gRPC request match. - match?: [...#SpecHTTPRouteMatchObservation] @go(Match,[]SpecHTTPRouteMatchObservation) - - // Retry policy. - retryPolicy?: [...#HTTPRouteRetryPolicyObservation] @go(RetryPolicy,[]HTTPRouteRetryPolicyObservation) - - // Types of timeouts. - timeout?: [...#HTTPRouteTimeoutObservation] @go(Timeout,[]HTTPRouteTimeoutObservation) -} - -#SpecHTTPRouteParameters: { - // Action to take if a match is determined. - // +kubebuilder:validation:Optional - action: [...#SpecHTTPRouteActionParameters] @go(Action,[]SpecHTTPRouteActionParameters) - - // Criteria for determining an gRPC request match. - // +kubebuilder:validation:Optional - match: [...#SpecHTTPRouteMatchParameters] @go(Match,[]SpecHTTPRouteMatchParameters) - - // Retry policy. - // +kubebuilder:validation:Optional - retryPolicy?: [...#HTTPRouteRetryPolicyParameters] @go(RetryPolicy,[]HTTPRouteRetryPolicyParameters) - - // Types of timeouts. - // +kubebuilder:validation:Optional - timeout?: [...#HTTPRouteTimeoutParameters] @go(Timeout,[]HTTPRouteTimeoutParameters) -} - -#SpecHttp2RouteActionInitParameters: { - // Targets that traffic is routed to when a request matches the route. - // You can specify one or more targets and their relative weights with which to distribute traffic. - weightedTarget?: [...#ActionWeightedTargetInitParameters] @go(WeightedTarget,[]ActionWeightedTargetInitParameters) -} - -#SpecHttp2RouteActionObservation: { - // Targets that traffic is routed to when a request matches the route. - // You can specify one or more targets and their relative weights with which to distribute traffic. - weightedTarget?: [...#ActionWeightedTargetObservation] @go(WeightedTarget,[]ActionWeightedTargetObservation) -} - -#SpecHttp2RouteActionParameters: { - // Targets that traffic is routed to when a request matches the route. - // You can specify one or more targets and their relative weights with which to distribute traffic. - // +kubebuilder:validation:Optional - weightedTarget: [...#ActionWeightedTargetParameters] @go(WeightedTarget,[]ActionWeightedTargetParameters) -} - -#SpecHttp2RouteInitParameters: { - // Action to take if a match is determined. - action?: [...#SpecHttp2RouteActionInitParameters] @go(Action,[]SpecHttp2RouteActionInitParameters) - - // Criteria for determining an gRPC request match. - match?: [...#SpecHttp2RouteMatchInitParameters] @go(Match,[]SpecHttp2RouteMatchInitParameters) - - // Retry policy. - retryPolicy?: [...#Http2RouteRetryPolicyInitParameters] @go(RetryPolicy,[]Http2RouteRetryPolicyInitParameters) - - // Types of timeouts. - timeout?: [...#Http2RouteTimeoutInitParameters] @go(Timeout,[]Http2RouteTimeoutInitParameters) -} - -#SpecHttp2RouteMatchInitParameters: { - // Client request headers to match on. - header?: [...#Http2RouteMatchHeaderInitParameters] @go(Header,[]Http2RouteMatchHeaderInitParameters) - - // Client request header method to match on. Valid values: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH. - method?: null | string @go(Method,*string) - - // Client request path to match on. - path?: [...#Http2RouteMatchPathInitParameters] @go(Path,[]Http2RouteMatchPathInitParameters) - - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Client request query parameters to match on. - queryParameter?: [...#Http2RouteMatchQueryParameterInitParameters] @go(QueryParameter,[]Http2RouteMatchQueryParameterInitParameters) - - // Client request header scheme to match on. Valid values: http, https. - scheme?: null | string @go(Scheme,*string) -} - -#SpecHttp2RouteMatchObservation: { - // Client request headers to match on. - header?: [...#Http2RouteMatchHeaderObservation] @go(Header,[]Http2RouteMatchHeaderObservation) - - // Client request header method to match on. Valid values: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH. - method?: null | string @go(Method,*string) - - // Client request path to match on. - path?: [...#Http2RouteMatchPathObservation] @go(Path,[]Http2RouteMatchPathObservation) - - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Client request query parameters to match on. - queryParameter?: [...#Http2RouteMatchQueryParameterObservation] @go(QueryParameter,[]Http2RouteMatchQueryParameterObservation) - - // Client request header scheme to match on. Valid values: http, https. - scheme?: null | string @go(Scheme,*string) -} - -#SpecHttp2RouteMatchParameters: { - // Client request headers to match on. - // +kubebuilder:validation:Optional - header?: [...#Http2RouteMatchHeaderParameters] @go(Header,[]Http2RouteMatchHeaderParameters) - - // Client request header method to match on. Valid values: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH. - // +kubebuilder:validation:Optional - method?: null | string @go(Method,*string) - - // Client request path to match on. - // +kubebuilder:validation:Optional - path?: [...#Http2RouteMatchPathParameters] @go(Path,[]Http2RouteMatchPathParameters) - - // The port number to match from the request. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Client request query parameters to match on. - // +kubebuilder:validation:Optional - queryParameter?: [...#Http2RouteMatchQueryParameterParameters] @go(QueryParameter,[]Http2RouteMatchQueryParameterParameters) - - // Client request header scheme to match on. Valid values: http, https. - // +kubebuilder:validation:Optional - scheme?: null | string @go(Scheme,*string) -} - -#SpecHttp2RouteObservation: { - // Action to take if a match is determined. - action?: [...#SpecHttp2RouteActionObservation] @go(Action,[]SpecHttp2RouteActionObservation) - - // Criteria for determining an gRPC request match. - match?: [...#SpecHttp2RouteMatchObservation] @go(Match,[]SpecHttp2RouteMatchObservation) - - // Retry policy. - retryPolicy?: [...#Http2RouteRetryPolicyObservation] @go(RetryPolicy,[]Http2RouteRetryPolicyObservation) - - // Types of timeouts. - timeout?: [...#Http2RouteTimeoutObservation] @go(Timeout,[]Http2RouteTimeoutObservation) -} - -#SpecHttp2RouteParameters: { - // Action to take if a match is determined. - // +kubebuilder:validation:Optional - action: [...#SpecHttp2RouteActionParameters] @go(Action,[]SpecHttp2RouteActionParameters) - - // Criteria for determining an gRPC request match. - // +kubebuilder:validation:Optional - match: [...#SpecHttp2RouteMatchParameters] @go(Match,[]SpecHttp2RouteMatchParameters) - - // Retry policy. - // +kubebuilder:validation:Optional - retryPolicy?: [...#Http2RouteRetryPolicyParameters] @go(RetryPolicy,[]Http2RouteRetryPolicyParameters) - - // Types of timeouts. - // +kubebuilder:validation:Optional - timeout?: [...#Http2RouteTimeoutParameters] @go(Timeout,[]Http2RouteTimeoutParameters) -} - -#TCPRouteActionInitParameters: { - // Targets that traffic is routed to when a request matches the route. - // You can specify one or more targets and their relative weights with which to distribute traffic. - weightedTarget?: [...#TCPRouteActionWeightedTargetInitParameters] @go(WeightedTarget,[]TCPRouteActionWeightedTargetInitParameters) -} - -#TCPRouteActionObservation: { - // Targets that traffic is routed to when a request matches the route. - // You can specify one or more targets and their relative weights with which to distribute traffic. - weightedTarget?: [...#TCPRouteActionWeightedTargetObservation] @go(WeightedTarget,[]TCPRouteActionWeightedTargetObservation) -} - -#TCPRouteActionParameters: { - // Targets that traffic is routed to when a request matches the route. - // You can specify one or more targets and their relative weights with which to distribute traffic. - // +kubebuilder:validation:Optional - weightedTarget: [...#TCPRouteActionWeightedTargetParameters] @go(WeightedTarget,[]TCPRouteActionWeightedTargetParameters) -} - -#TCPRouteActionWeightedTargetInitParameters: { - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Relative weight of the weighted target. An integer between 0 and 100. - weight?: null | float64 @go(Weight,*float64) -} - -#TCPRouteActionWeightedTargetObservation: { - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. - virtualNode?: null | string @go(VirtualNode,*string) - - // Relative weight of the weighted target. An integer between 0 and 100. - weight?: null | float64 @go(Weight,*float64) -} - -#TCPRouteActionWeightedTargetParameters: { - // The port number to match from the request. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appmesh/v1beta1.VirtualNode - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - virtualNode?: null | string @go(VirtualNode,*string) - - // Reference to a VirtualNode in appmesh to populate virtualNode. - // +kubebuilder:validation:Optional - virtualNodeRef?: null | v1.#Reference @go(VirtualNodeRef,*v1.Reference) - - // Selector for a VirtualNode in appmesh to populate virtualNode. - // +kubebuilder:validation:Optional - virtualNodeSelector?: null | v1.#Selector @go(VirtualNodeSelector,*v1.Selector) - - // Relative weight of the weighted target. An integer between 0 and 100. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -#TCPRouteInitParameters: { - // Action to take if a match is determined. - action?: [...#TCPRouteActionInitParameters] @go(Action,[]TCPRouteActionInitParameters) - - // Criteria for determining an gRPC request match. - match?: [...#TCPRouteMatchInitParameters] @go(Match,[]TCPRouteMatchInitParameters) - - // Types of timeouts. - timeout?: [...#TCPRouteTimeoutInitParameters] @go(Timeout,[]TCPRouteTimeoutInitParameters) -} - -#TCPRouteMatchInitParameters: { - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) -} - -#TCPRouteMatchObservation: { - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) -} - -#TCPRouteMatchParameters: { - // The port number to match from the request. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) -} - -#TCPRouteObservation: { - // Action to take if a match is determined. - action?: [...#TCPRouteActionObservation] @go(Action,[]TCPRouteActionObservation) - - // Criteria for determining an gRPC request match. - match?: [...#TCPRouteMatchObservation] @go(Match,[]TCPRouteMatchObservation) - - // Types of timeouts. - timeout?: [...#TCPRouteTimeoutObservation] @go(Timeout,[]TCPRouteTimeoutObservation) -} - -#TCPRouteParameters: { - // Action to take if a match is determined. - // +kubebuilder:validation:Optional - action: [...#TCPRouteActionParameters] @go(Action,[]TCPRouteActionParameters) - - // Criteria for determining an gRPC request match. - // +kubebuilder:validation:Optional - match?: [...#TCPRouteMatchParameters] @go(Match,[]TCPRouteMatchParameters) - - // Types of timeouts. - // +kubebuilder:validation:Optional - timeout?: [...#TCPRouteTimeoutParameters] @go(Timeout,[]TCPRouteTimeoutParameters) -} - -#TCPRouteTimeoutIdleInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#TCPRouteTimeoutIdleObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#TCPRouteTimeoutIdleParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#TCPRouteTimeoutInitParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#TCPRouteTimeoutIdleInitParameters] @go(Idle,[]TCPRouteTimeoutIdleInitParameters) -} - -#TCPRouteTimeoutObservation: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#TCPRouteTimeoutIdleObservation] @go(Idle,[]TCPRouteTimeoutIdleObservation) -} - -#TCPRouteTimeoutParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - // +kubebuilder:validation:Optional - idle?: [...#TCPRouteTimeoutIdleParameters] @go(Idle,[]TCPRouteTimeoutIdleParameters) -} - -#TimeoutIdleInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#TimeoutIdleObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#TimeoutIdleParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#TimeoutInitParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#IdleInitParameters] @go(Idle,[]IdleInitParameters) - - // Per request timeout. - perRequest?: [...#PerRequestInitParameters] @go(PerRequest,[]PerRequestInitParameters) -} - -#TimeoutObservation: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#IdleObservation] @go(Idle,[]IdleObservation) - - // Per request timeout. - perRequest?: [...#PerRequestObservation] @go(PerRequest,[]PerRequestObservation) -} - -#TimeoutParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - // +kubebuilder:validation:Optional - idle?: [...#IdleParameters] @go(Idle,[]IdleParameters) - - // Per request timeout. - // +kubebuilder:validation:Optional - perRequest?: [...#PerRequestParameters] @go(PerRequest,[]PerRequestParameters) -} - -#TimeoutPerRequestInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#TimeoutPerRequestObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - value?: null | float64 @go(Value,*float64) -} - -#TimeoutPerRequestParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // Number of time units. Minimum value of 0. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#WeightedTargetInitParameters: { - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. - virtualNode?: null | string @go(VirtualNode,*string) - - // Relative weight of the weighted target. An integer between 0 and 100. - weight?: null | float64 @go(Weight,*float64) -} - -#WeightedTargetObservation: { - // The port number to match from the request. - port?: null | float64 @go(Port,*float64) - - // Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. - virtualNode?: null | string @go(VirtualNode,*string) - - // Relative weight of the weighted target. An integer between 0 and 100. - weight?: null | float64 @go(Weight,*float64) -} - -#WeightedTargetParameters: { - // The port number to match from the request. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - virtualNode?: null | string @go(VirtualNode,*string) - - // Relative weight of the weighted target. An integer between 0 and 100. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -// RouteSpec defines the desired state of Route -#RouteSpec: { - v1.#ResourceSpec - forProvider: #RouteParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RouteInitParameters @go(InitProvider) -} - -// RouteStatus defines the observed state of Route. -#RouteStatus: { - v1.#ResourceStatus - atProvider?: #RouteObservation @go(AtProvider) -} - -// Route is the Schema for the Routes API. Provides an AWS App Mesh route resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Route: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.spec) || (has(self.initProvider) && has(self.initProvider.spec))",message="spec.forProvider.spec is a required parameter" - spec: #RouteSpec @go(Spec) - status?: #RouteStatus @go(Status) -} - -// RouteList contains a list of Routes -#RouteList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Route] @go(Items,[]Route) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_virtualgateway_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_virtualgateway_types_go_gen.cue deleted file mode 100644 index 9096858..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_virtualgateway_types_go_gen.cue +++ /dev/null @@ -1,1068 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appmesh/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessLogFileInitParameters: { - // The specified format for the logs. - format?: [...#FormatInitParameters] @go(Format,[]FormatInitParameters) - - // File path to write access logs to. You can use /dev/stdout to send access logs to standard out. Must be between 1 and 255 characters in length. - path?: null | string @go(Path,*string) -} - -#AccessLogFileObservation: { - // The specified format for the logs. - format?: [...#FormatObservation] @go(Format,[]FormatObservation) - - // File path to write access logs to. You can use /dev/stdout to send access logs to standard out. Must be between 1 and 255 characters in length. - path?: null | string @go(Path,*string) -} - -#AccessLogFileParameters: { - // The specified format for the logs. - // +kubebuilder:validation:Optional - format?: [...#FormatParameters] @go(Format,[]FormatParameters) - - // File path to write access logs to. You can use /dev/stdout to send access logs to standard out. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) -} - -#AccessLogInitParameters: { - // Local file certificate. - file?: [...#AccessLogFileInitParameters] @go(File,[]AccessLogFileInitParameters) -} - -#AccessLogObservation: { - // Local file certificate. - file?: [...#AccessLogFileObservation] @go(File,[]AccessLogFileObservation) -} - -#AccessLogParameters: { - // Local file certificate. - // +kubebuilder:validation:Optional - file?: [...#AccessLogFileParameters] @go(File,[]AccessLogFileParameters) -} - -#AcmInitParameters: { - // One or more ACM ARNs. - certificateAuthorityArns?: [...null | string] @go(CertificateAuthorityArns,[]*string) -} - -#AcmObservation: { - // One or more ACM ARNs. - certificateAuthorityArns?: [...null | string] @go(CertificateAuthorityArns,[]*string) -} - -#AcmParameters: { - // One or more ACM ARNs. - // +kubebuilder:validation:Optional - certificateAuthorityArns: [...null | string] @go(CertificateAuthorityArns,[]*string) -} - -#BackendDefaultsInitParameters: { - // Default client policy for virtual gateway backends. - clientPolicy?: [...#ClientPolicyInitParameters] @go(ClientPolicy,[]ClientPolicyInitParameters) -} - -#BackendDefaultsObservation: { - // Default client policy for virtual gateway backends. - clientPolicy?: [...#ClientPolicyObservation] @go(ClientPolicy,[]ClientPolicyObservation) -} - -#BackendDefaultsParameters: { - // Default client policy for virtual gateway backends. - // +kubebuilder:validation:Optional - clientPolicy?: [...#ClientPolicyParameters] @go(ClientPolicy,[]ClientPolicyParameters) -} - -#CertificateAcmInitParameters: { -} - -#CertificateAcmObservation: { - // ARN for the certificate. - certificateArn?: null | string @go(CertificateArn,*string) -} - -#CertificateAcmParameters: { - // ARN for the certificate. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/acm/v1beta1.Certificate - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - certificateArn?: null | string @go(CertificateArn,*string) - - // Reference to a Certificate in acm to populate certificateArn. - // +kubebuilder:validation:Optional - certificateArnRef?: null | v1.#Reference @go(CertificateArnRef,*v1.Reference) - - // Selector for a Certificate in acm to populate certificateArn. - // +kubebuilder:validation:Optional - certificateArnSelector?: null | v1.#Selector @go(CertificateArnSelector,*v1.Selector) -} - -#CertificateFileInitParameters: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - privateKey?: null | string @go(PrivateKey,*string) -} - -#CertificateFileObservation: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - privateKey?: null | string @go(PrivateKey,*string) -} - -#CertificateFileParameters: { - // Certificate chain for the certificate. - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - // +kubebuilder:validation:Optional - privateKey?: null | string @go(PrivateKey,*string) -} - -#CertificateInitParameters: { - // Local file certificate. - file?: [...#FileInitParameters] @go(File,[]FileInitParameters) - - // A Secret Discovery Service certificate. - sds?: [...#SdsInitParameters] @go(Sds,[]SdsInitParameters) -} - -#CertificateObservation: { - // Local file certificate. - file?: [...#FileObservation] @go(File,[]FileObservation) - - // A Secret Discovery Service certificate. - sds?: [...#SdsObservation] @go(Sds,[]SdsObservation) -} - -#CertificateParameters: { - // Local file certificate. - // +kubebuilder:validation:Optional - file?: [...#FileParameters] @go(File,[]FileParameters) - - // A Secret Discovery Service certificate. - // +kubebuilder:validation:Optional - sds?: [...#SdsParameters] @go(Sds,[]SdsParameters) -} - -#CertificateSdsInitParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#CertificateSdsObservation: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#CertificateSdsParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - // +kubebuilder:validation:Optional - secretName?: null | string @go(SecretName,*string) -} - -#ClientPolicyInitParameters: { - // Transport Layer Security (TLS) client policy. - tls?: [...#TLSInitParameters] @go(TLS,[]TLSInitParameters) -} - -#ClientPolicyObservation: { - // Transport Layer Security (TLS) client policy. - tls?: [...#TLSObservation] @go(TLS,[]TLSObservation) -} - -#ClientPolicyParameters: { - // Transport Layer Security (TLS) client policy. - // +kubebuilder:validation:Optional - tls?: [...#TLSParameters] @go(TLS,[]TLSParameters) -} - -#ConnectionPoolInitParameters: { - // Connection pool information for gRPC listeners. - grpc?: [...#GRPCInitParameters] @go(GRPC,[]GRPCInitParameters) - - // Connection pool information for HTTP listeners. - http?: [...#HTTPInitParameters] @go(HTTP,[]HTTPInitParameters) - - // Connection pool information for HTTP2 listeners. - http2?: [...#Http2InitParameters] @go(Http2,[]Http2InitParameters) -} - -#ConnectionPoolObservation: { - // Connection pool information for gRPC listeners. - grpc?: [...#GRPCObservation] @go(GRPC,[]GRPCObservation) - - // Connection pool information for HTTP listeners. - http?: [...#HTTPObservation] @go(HTTP,[]HTTPObservation) - - // Connection pool information for HTTP2 listeners. - http2?: [...#Http2Observation] @go(Http2,[]Http2Observation) -} - -#ConnectionPoolParameters: { - // Connection pool information for gRPC listeners. - // +kubebuilder:validation:Optional - grpc?: [...#GRPCParameters] @go(GRPC,[]GRPCParameters) - - // Connection pool information for HTTP listeners. - // +kubebuilder:validation:Optional - http?: [...#HTTPParameters] @go(HTTP,[]HTTPParameters) - - // Connection pool information for HTTP2 listeners. - // +kubebuilder:validation:Optional - http2?: [...#Http2Parameters] @go(Http2,[]Http2Parameters) -} - -#FileInitParameters: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - privateKey?: null | string @go(PrivateKey,*string) -} - -#FileObservation: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - privateKey?: null | string @go(PrivateKey,*string) -} - -#FileParameters: { - // Certificate chain for the certificate. - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - // +kubebuilder:validation:Optional - privateKey?: null | string @go(PrivateKey,*string) -} - -#FormatInitParameters: { - // The logging format for JSON. - json?: [...#JSONInitParameters] @go(JSON,[]JSONInitParameters) - - // The logging format for text. Must be between 1 and 1000 characters in length. - text?: null | string @go(Text,*string) -} - -#FormatObservation: { - // The logging format for JSON. - json?: [...#JSONObservation] @go(JSON,[]JSONObservation) - - // The logging format for text. Must be between 1 and 1000 characters in length. - text?: null | string @go(Text,*string) -} - -#FormatParameters: { - // The logging format for JSON. - // +kubebuilder:validation:Optional - json?: [...#JSONParameters] @go(JSON,[]JSONParameters) - - // The logging format for text. Must be between 1 and 1000 characters in length. - // +kubebuilder:validation:Optional - text?: null | string @go(Text,*string) -} - -#GRPCInitParameters: { - // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of 1. - maxRequests?: null | float64 @go(MaxRequests,*float64) -} - -#GRPCObservation: { - // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of 1. - maxRequests?: null | float64 @go(MaxRequests,*float64) -} - -#GRPCParameters: { - // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of 1. - // +kubebuilder:validation:Optional - maxRequests?: null | float64 @go(MaxRequests,*float64) -} - -#HTTPInitParameters: { - // Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of 1. - maxConnections?: null | float64 @go(MaxConnections,*float64) - - // Number of overflowing requests after max_connections Envoy will queue to upstream cluster. Minimum value of 1. - maxPendingRequests?: null | float64 @go(MaxPendingRequests,*float64) -} - -#HTTPObservation: { - // Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of 1. - maxConnections?: null | float64 @go(MaxConnections,*float64) - - // Number of overflowing requests after max_connections Envoy will queue to upstream cluster. Minimum value of 1. - maxPendingRequests?: null | float64 @go(MaxPendingRequests,*float64) -} - -#HTTPParameters: { - // Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of 1. - // +kubebuilder:validation:Optional - maxConnections?: null | float64 @go(MaxConnections,*float64) - - // Number of overflowing requests after max_connections Envoy will queue to upstream cluster. Minimum value of 1. - // +kubebuilder:validation:Optional - maxPendingRequests?: null | float64 @go(MaxPendingRequests,*float64) -} - -#HealthCheckInitParameters: { - // Number of consecutive successful health checks that must occur before declaring listener healthy. - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // Time period in milliseconds between each health check execution. - intervalMillis?: null | float64 @go(IntervalMillis,*float64) - - // File path to write access logs to. You can use /dev/stdout to send access logs to standard out. Must be between 1 and 255 characters in length. - path?: null | string @go(Path,*string) - - // Port used for the port mapping. - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http, http2, tcp and grpc. - protocol?: null | string @go(Protocol,*string) - - // Amount of time to wait when receiving a response from the health check, in milliseconds. - timeoutMillis?: null | float64 @go(TimeoutMillis,*float64) - - // Number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy. - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#HealthCheckObservation: { - // Number of consecutive successful health checks that must occur before declaring listener healthy. - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // Time period in milliseconds between each health check execution. - intervalMillis?: null | float64 @go(IntervalMillis,*float64) - - // File path to write access logs to. You can use /dev/stdout to send access logs to standard out. Must be between 1 and 255 characters in length. - path?: null | string @go(Path,*string) - - // Port used for the port mapping. - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http, http2, tcp and grpc. - protocol?: null | string @go(Protocol,*string) - - // Amount of time to wait when receiving a response from the health check, in milliseconds. - timeoutMillis?: null | float64 @go(TimeoutMillis,*float64) - - // Number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy. - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#HealthCheckParameters: { - // Number of consecutive successful health checks that must occur before declaring listener healthy. - // +kubebuilder:validation:Optional - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // Time period in milliseconds between each health check execution. - // +kubebuilder:validation:Optional - intervalMillis?: null | float64 @go(IntervalMillis,*float64) - - // File path to write access logs to. You can use /dev/stdout to send access logs to standard out. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // Port used for the port mapping. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http, http2, tcp and grpc. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Amount of time to wait when receiving a response from the health check, in milliseconds. - // +kubebuilder:validation:Optional - timeoutMillis?: null | float64 @go(TimeoutMillis,*float64) - - // Number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy. - // +kubebuilder:validation:Optional - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#Http2InitParameters: { - // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of 1. - maxRequests?: null | float64 @go(MaxRequests,*float64) -} - -#Http2Observation: { - // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of 1. - maxRequests?: null | float64 @go(MaxRequests,*float64) -} - -#Http2Parameters: { - // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of 1. - // +kubebuilder:validation:Optional - maxRequests?: null | float64 @go(MaxRequests,*float64) -} - -#JSONInitParameters: { - // The specified key for the JSON. Must be between 1 and 100 characters in length. - key?: null | string @go(Key,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | string @go(Value,*string) -} - -#JSONObservation: { - // The specified key for the JSON. Must be between 1 and 100 characters in length. - key?: null | string @go(Key,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | string @go(Value,*string) -} - -#JSONParameters: { - // The specified key for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ListenerInitParameters: { - // Connection pool information for the listener. - connectionPool?: [...#ConnectionPoolInitParameters] @go(ConnectionPool,[]ConnectionPoolInitParameters) - - // Health check information for the listener. - healthCheck?: [...#HealthCheckInitParameters] @go(HealthCheck,[]HealthCheckInitParameters) - - // Port mapping information for the listener. - portMapping?: [...#PortMappingInitParameters] @go(PortMapping,[]PortMappingInitParameters) - - // Transport Layer Security (TLS) client policy. - tls?: [...#ListenerTLSInitParameters] @go(TLS,[]ListenerTLSInitParameters) -} - -#ListenerObservation: { - // Connection pool information for the listener. - connectionPool?: [...#ConnectionPoolObservation] @go(ConnectionPool,[]ConnectionPoolObservation) - - // Health check information for the listener. - healthCheck?: [...#HealthCheckObservation] @go(HealthCheck,[]HealthCheckObservation) - - // Port mapping information for the listener. - portMapping?: [...#PortMappingObservation] @go(PortMapping,[]PortMappingObservation) - - // Transport Layer Security (TLS) client policy. - tls?: [...#ListenerTLSObservation] @go(TLS,[]ListenerTLSObservation) -} - -#ListenerParameters: { - // Connection pool information for the listener. - // +kubebuilder:validation:Optional - connectionPool?: [...#ConnectionPoolParameters] @go(ConnectionPool,[]ConnectionPoolParameters) - - // Health check information for the listener. - // +kubebuilder:validation:Optional - healthCheck?: [...#HealthCheckParameters] @go(HealthCheck,[]HealthCheckParameters) - - // Port mapping information for the listener. - // +kubebuilder:validation:Optional - portMapping: [...#PortMappingParameters] @go(PortMapping,[]PortMappingParameters) - - // Transport Layer Security (TLS) client policy. - // +kubebuilder:validation:Optional - tls?: [...#ListenerTLSParameters] @go(TLS,[]ListenerTLSParameters) -} - -#ListenerTLSInitParameters: { - // Virtual gateway's client's Transport Layer Security (TLS) certificate. - certificate?: [...#TLSCertificateInitParameters] @go(Certificate,[]TLSCertificateInitParameters) - - // Listener's TLS mode. Valid values: DISABLED, PERMISSIVE, STRICT. - mode?: null | string @go(Mode,*string) - - // TLS validation context. - validation?: [...#TLSValidationInitParameters] @go(Validation,[]TLSValidationInitParameters) -} - -#ListenerTLSObservation: { - // Virtual gateway's client's Transport Layer Security (TLS) certificate. - certificate?: [...#TLSCertificateObservation] @go(Certificate,[]TLSCertificateObservation) - - // Listener's TLS mode. Valid values: DISABLED, PERMISSIVE, STRICT. - mode?: null | string @go(Mode,*string) - - // TLS validation context. - validation?: [...#TLSValidationObservation] @go(Validation,[]TLSValidationObservation) -} - -#ListenerTLSParameters: { - // Virtual gateway's client's Transport Layer Security (TLS) certificate. - // +kubebuilder:validation:Optional - certificate: [...#TLSCertificateParameters] @go(Certificate,[]TLSCertificateParameters) - - // Listener's TLS mode. Valid values: DISABLED, PERMISSIVE, STRICT. - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) - - // TLS validation context. - // +kubebuilder:validation:Optional - validation?: [...#TLSValidationParameters] @go(Validation,[]TLSValidationParameters) -} - -#LoggingInitParameters: { - // Access log configuration for a virtual gateway. - accessLog?: [...#AccessLogInitParameters] @go(AccessLog,[]AccessLogInitParameters) -} - -#LoggingObservation: { - // Access log configuration for a virtual gateway. - accessLog?: [...#AccessLogObservation] @go(AccessLog,[]AccessLogObservation) -} - -#LoggingParameters: { - // Access log configuration for a virtual gateway. - // +kubebuilder:validation:Optional - accessLog?: [...#AccessLogParameters] @go(AccessLog,[]AccessLogParameters) -} - -#PortMappingInitParameters: { - // Port used for the port mapping. - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http, http2, tcp and grpc. - protocol?: null | string @go(Protocol,*string) -} - -#PortMappingObservation: { - // Port used for the port mapping. - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http, http2, tcp and grpc. - protocol?: null | string @go(Protocol,*string) -} - -#PortMappingParameters: { - // Port used for the port mapping. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http, http2, tcp and grpc. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) -} - -#SdsInitParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#SdsObservation: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#SdsParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - // +kubebuilder:validation:Optional - secretName?: null | string @go(SecretName,*string) -} - -#SubjectAlternativeNamesInitParameters: { - // Criteria for determining a SAN's match. - match?: [...#SubjectAlternativeNamesMatchInitParameters] @go(Match,[]SubjectAlternativeNamesMatchInitParameters) -} - -#SubjectAlternativeNamesMatchInitParameters: { - // Values sent must match the specified values exactly. - exact?: [...null | string] @go(Exact,[]*string) -} - -#SubjectAlternativeNamesMatchObservation: { - // Values sent must match the specified values exactly. - exact?: [...null | string] @go(Exact,[]*string) -} - -#SubjectAlternativeNamesMatchParameters: { - // Values sent must match the specified values exactly. - // +kubebuilder:validation:Optional - exact: [...null | string] @go(Exact,[]*string) -} - -#SubjectAlternativeNamesObservation: { - // Criteria for determining a SAN's match. - match?: [...#SubjectAlternativeNamesMatchObservation] @go(Match,[]SubjectAlternativeNamesMatchObservation) -} - -#SubjectAlternativeNamesParameters: { - // Criteria for determining a SAN's match. - // +kubebuilder:validation:Optional - match: [...#SubjectAlternativeNamesMatchParameters] @go(Match,[]SubjectAlternativeNamesMatchParameters) -} - -#TLSCertificateInitParameters: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - acm?: [...#CertificateAcmInitParameters] @go(Acm,[]CertificateAcmInitParameters) - - // Local file certificate. - file?: [...#CertificateFileInitParameters] @go(File,[]CertificateFileInitParameters) - - // A Secret Discovery Service certificate. - sds?: [...#CertificateSdsInitParameters] @go(Sds,[]CertificateSdsInitParameters) -} - -#TLSCertificateObservation: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - acm?: [...#CertificateAcmObservation] @go(Acm,[]CertificateAcmObservation) - - // Local file certificate. - file?: [...#CertificateFileObservation] @go(File,[]CertificateFileObservation) - - // A Secret Discovery Service certificate. - sds?: [...#CertificateSdsObservation] @go(Sds,[]CertificateSdsObservation) -} - -#TLSCertificateParameters: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - // +kubebuilder:validation:Optional - acm?: [...#CertificateAcmParameters] @go(Acm,[]CertificateAcmParameters) - - // Local file certificate. - // +kubebuilder:validation:Optional - file?: [...#CertificateFileParameters] @go(File,[]CertificateFileParameters) - - // A Secret Discovery Service certificate. - // +kubebuilder:validation:Optional - sds?: [...#CertificateSdsParameters] @go(Sds,[]CertificateSdsParameters) -} - -#TLSInitParameters: { - // Virtual gateway's client's Transport Layer Security (TLS) certificate. - certificate?: [...#CertificateInitParameters] @go(Certificate,[]CertificateInitParameters) - - // Whether the policy is enforced. Default is true. - enforce?: null | bool @go(Enforce,*bool) - - // One or more ports that the policy is enforced for. - ports?: [...null | float64] @go(Ports,[]*float64) - - // TLS validation context. - validation?: [...#ValidationInitParameters] @go(Validation,[]ValidationInitParameters) -} - -#TLSObservation: { - // Virtual gateway's client's Transport Layer Security (TLS) certificate. - certificate?: [...#CertificateObservation] @go(Certificate,[]CertificateObservation) - - // Whether the policy is enforced. Default is true. - enforce?: null | bool @go(Enforce,*bool) - - // One or more ports that the policy is enforced for. - ports?: [...null | float64] @go(Ports,[]*float64) - - // TLS validation context. - validation?: [...#ValidationObservation] @go(Validation,[]ValidationObservation) -} - -#TLSParameters: { - // Virtual gateway's client's Transport Layer Security (TLS) certificate. - // +kubebuilder:validation:Optional - certificate?: [...#CertificateParameters] @go(Certificate,[]CertificateParameters) - - // Whether the policy is enforced. Default is true. - // +kubebuilder:validation:Optional - enforce?: null | bool @go(Enforce,*bool) - - // One or more ports that the policy is enforced for. - // +kubebuilder:validation:Optional - ports?: [...null | float64] @go(Ports,[]*float64) - - // TLS validation context. - // +kubebuilder:validation:Optional - validation: [...#ValidationParameters] @go(Validation,[]ValidationParameters) -} - -#TLSValidationInitParameters: { - // SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context. - subjectAlternativeNames?: [...#ValidationSubjectAlternativeNamesInitParameters] @go(SubjectAlternativeNames,[]ValidationSubjectAlternativeNamesInitParameters) - - // TLS validation context trust. - trust?: [...#ValidationTrustInitParameters] @go(Trust,[]ValidationTrustInitParameters) -} - -#TLSValidationObservation: { - // SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context. - subjectAlternativeNames?: [...#ValidationSubjectAlternativeNamesObservation] @go(SubjectAlternativeNames,[]ValidationSubjectAlternativeNamesObservation) - - // TLS validation context trust. - trust?: [...#ValidationTrustObservation] @go(Trust,[]ValidationTrustObservation) -} - -#TLSValidationParameters: { - // SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context. - // +kubebuilder:validation:Optional - subjectAlternativeNames?: [...#ValidationSubjectAlternativeNamesParameters] @go(SubjectAlternativeNames,[]ValidationSubjectAlternativeNamesParameters) - - // TLS validation context trust. - // +kubebuilder:validation:Optional - trust: [...#ValidationTrustParameters] @go(Trust,[]ValidationTrustParameters) -} - -#TrustFileInitParameters: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) -} - -#TrustFileObservation: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) -} - -#TrustFileParameters: { - // Certificate chain for the certificate. - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) -} - -#TrustInitParameters: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - acm?: [...#AcmInitParameters] @go(Acm,[]AcmInitParameters) - - // Local file certificate. - file?: [...#TrustFileInitParameters] @go(File,[]TrustFileInitParameters) - - // A Secret Discovery Service certificate. - sds?: [...#TrustSdsInitParameters] @go(Sds,[]TrustSdsInitParameters) -} - -#TrustObservation: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - acm?: [...#AcmObservation] @go(Acm,[]AcmObservation) - - // Local file certificate. - file?: [...#TrustFileObservation] @go(File,[]TrustFileObservation) - - // A Secret Discovery Service certificate. - sds?: [...#TrustSdsObservation] @go(Sds,[]TrustSdsObservation) -} - -#TrustParameters: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - // +kubebuilder:validation:Optional - acm?: [...#AcmParameters] @go(Acm,[]AcmParameters) - - // Local file certificate. - // +kubebuilder:validation:Optional - file?: [...#TrustFileParameters] @go(File,[]TrustFileParameters) - - // A Secret Discovery Service certificate. - // +kubebuilder:validation:Optional - sds?: [...#TrustSdsParameters] @go(Sds,[]TrustSdsParameters) -} - -#TrustSdsInitParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#TrustSdsObservation: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#TrustSdsParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - // +kubebuilder:validation:Optional - secretName?: null | string @go(SecretName,*string) -} - -#ValidationInitParameters: { - // SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context. - subjectAlternativeNames?: [...#SubjectAlternativeNamesInitParameters] @go(SubjectAlternativeNames,[]SubjectAlternativeNamesInitParameters) - - // TLS validation context trust. - trust?: [...#TrustInitParameters] @go(Trust,[]TrustInitParameters) -} - -#ValidationObservation: { - // SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context. - subjectAlternativeNames?: [...#SubjectAlternativeNamesObservation] @go(SubjectAlternativeNames,[]SubjectAlternativeNamesObservation) - - // TLS validation context trust. - trust?: [...#TrustObservation] @go(Trust,[]TrustObservation) -} - -#ValidationParameters: { - // SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context. - // +kubebuilder:validation:Optional - subjectAlternativeNames?: [...#SubjectAlternativeNamesParameters] @go(SubjectAlternativeNames,[]SubjectAlternativeNamesParameters) - - // TLS validation context trust. - // +kubebuilder:validation:Optional - trust: [...#TrustParameters] @go(Trust,[]TrustParameters) -} - -#ValidationSubjectAlternativeNamesInitParameters: { - // Criteria for determining a SAN's match. - match?: [...#ValidationSubjectAlternativeNamesMatchInitParameters] @go(Match,[]ValidationSubjectAlternativeNamesMatchInitParameters) -} - -#ValidationSubjectAlternativeNamesMatchInitParameters: { - // Values sent must match the specified values exactly. - exact?: [...null | string] @go(Exact,[]*string) -} - -#ValidationSubjectAlternativeNamesMatchObservation: { - // Values sent must match the specified values exactly. - exact?: [...null | string] @go(Exact,[]*string) -} - -#ValidationSubjectAlternativeNamesMatchParameters: { - // Values sent must match the specified values exactly. - // +kubebuilder:validation:Optional - exact: [...null | string] @go(Exact,[]*string) -} - -#ValidationSubjectAlternativeNamesObservation: { - // Criteria for determining a SAN's match. - match?: [...#ValidationSubjectAlternativeNamesMatchObservation] @go(Match,[]ValidationSubjectAlternativeNamesMatchObservation) -} - -#ValidationSubjectAlternativeNamesParameters: { - // Criteria for determining a SAN's match. - // +kubebuilder:validation:Optional - match: [...#ValidationSubjectAlternativeNamesMatchParameters] @go(Match,[]ValidationSubjectAlternativeNamesMatchParameters) -} - -#ValidationTrustFileInitParameters: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) -} - -#ValidationTrustFileObservation: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) -} - -#ValidationTrustFileParameters: { - // Certificate chain for the certificate. - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) -} - -#ValidationTrustInitParameters: { - // Local file certificate. - file?: [...#ValidationTrustFileInitParameters] @go(File,[]ValidationTrustFileInitParameters) - - // A Secret Discovery Service certificate. - sds?: [...#ValidationTrustSdsInitParameters] @go(Sds,[]ValidationTrustSdsInitParameters) -} - -#ValidationTrustObservation: { - // Local file certificate. - file?: [...#ValidationTrustFileObservation] @go(File,[]ValidationTrustFileObservation) - - // A Secret Discovery Service certificate. - sds?: [...#ValidationTrustSdsObservation] @go(Sds,[]ValidationTrustSdsObservation) -} - -#ValidationTrustParameters: { - // Local file certificate. - // +kubebuilder:validation:Optional - file?: [...#ValidationTrustFileParameters] @go(File,[]ValidationTrustFileParameters) - - // A Secret Discovery Service certificate. - // +kubebuilder:validation:Optional - sds?: [...#ValidationTrustSdsParameters] @go(Sds,[]ValidationTrustSdsParameters) -} - -#ValidationTrustSdsInitParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#ValidationTrustSdsObservation: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#ValidationTrustSdsParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - // +kubebuilder:validation:Optional - secretName?: null | string @go(SecretName,*string) -} - -#VirtualGatewayInitParameters: { - // Name of the service mesh in which to create the virtual gateway. Must be between 1 and 255 characters in length. - meshName?: null | string @go(MeshName,*string) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the virtual gateway. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) - - // Virtual gateway specification to apply. - spec?: [...#VirtualGatewaySpecInitParameters] @go(Spec,[]VirtualGatewaySpecInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VirtualGatewayObservation: { - // ARN of the virtual gateway. - arn?: null | string @go(Arn,*string) - - // Creation date of the virtual gateway. - createdDate?: null | string @go(CreatedDate,*string) - - // ID of the virtual gateway. - id?: null | string @go(ID,*string) - - // Last update date of the virtual gateway. - lastUpdatedDate?: null | string @go(LastUpdatedDate,*string) - - // Name of the service mesh in which to create the virtual gateway. Must be between 1 and 255 characters in length. - meshName?: null | string @go(MeshName,*string) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the virtual gateway. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) - - // Resource owner's AWS account ID. - resourceOwner?: null | string @go(ResourceOwner,*string) - - // Virtual gateway specification to apply. - spec?: [...#VirtualGatewaySpecObservation] @go(Spec,[]VirtualGatewaySpecObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VirtualGatewayParameters: { - // Name of the service mesh in which to create the virtual gateway. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - meshName?: null | string @go(MeshName,*string) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - // +kubebuilder:validation:Optional - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the virtual gateway. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Virtual gateway specification to apply. - // +kubebuilder:validation:Optional - spec?: [...#VirtualGatewaySpecParameters] @go(Spec,[]VirtualGatewaySpecParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VirtualGatewaySpecInitParameters: { - // Defaults for backends. - backendDefaults?: [...#BackendDefaultsInitParameters] @go(BackendDefaults,[]BackendDefaultsInitParameters) - - // Listeners that the mesh endpoint is expected to receive inbound traffic from. You can specify one listener. - listener?: [...#ListenerInitParameters] @go(Listener,[]ListenerInitParameters) - - // Inbound and outbound access logging information for the virtual gateway. - logging?: [...#LoggingInitParameters] @go(Logging,[]LoggingInitParameters) -} - -#VirtualGatewaySpecObservation: { - // Defaults for backends. - backendDefaults?: [...#BackendDefaultsObservation] @go(BackendDefaults,[]BackendDefaultsObservation) - - // Listeners that the mesh endpoint is expected to receive inbound traffic from. You can specify one listener. - listener?: [...#ListenerObservation] @go(Listener,[]ListenerObservation) - - // Inbound and outbound access logging information for the virtual gateway. - logging?: [...#LoggingObservation] @go(Logging,[]LoggingObservation) -} - -#VirtualGatewaySpecParameters: { - // Defaults for backends. - // +kubebuilder:validation:Optional - backendDefaults?: [...#BackendDefaultsParameters] @go(BackendDefaults,[]BackendDefaultsParameters) - - // Listeners that the mesh endpoint is expected to receive inbound traffic from. You can specify one listener. - // +kubebuilder:validation:Optional - listener: [...#ListenerParameters] @go(Listener,[]ListenerParameters) - - // Inbound and outbound access logging information for the virtual gateway. - // +kubebuilder:validation:Optional - logging?: [...#LoggingParameters] @go(Logging,[]LoggingParameters) -} - -// VirtualGatewaySpec defines the desired state of VirtualGateway -#VirtualGatewaySpec: { - v1.#ResourceSpec - forProvider: #VirtualGatewayParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VirtualGatewayInitParameters @go(InitProvider) -} - -// VirtualGatewayStatus defines the observed state of VirtualGateway. -#VirtualGatewayStatus: { - v1.#ResourceStatus - atProvider?: #VirtualGatewayObservation @go(AtProvider) -} - -// VirtualGateway is the Schema for the VirtualGateways API. Provides an AWS App Mesh virtual gateway resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VirtualGateway: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.meshName) || (has(self.initProvider) && has(self.initProvider.meshName))",message="spec.forProvider.meshName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.spec) || (has(self.initProvider) && has(self.initProvider.spec))",message="spec.forProvider.spec is a required parameter" - spec: #VirtualGatewaySpec @go(Spec) - status?: #VirtualGatewayStatus @go(Status) -} - -// VirtualGatewayList contains a list of VirtualGateways -#VirtualGatewayList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VirtualGateway] @go(Items,[]VirtualGateway) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_virtualnode_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_virtualnode_types_go_gen.cue deleted file mode 100644 index 031c1cf..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_virtualnode_types_go_gen.cue +++ /dev/null @@ -1,1976 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appmesh/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AwsCloudMapInitParameters: { - // String map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned. - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) - - // attribute of the dns object to hostname. - serviceName?: null | string @go(ServiceName,*string) -} - -#AwsCloudMapObservation: { - // String map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned. - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) - - // Name of the AWS Cloud Map namespace to use. - // Use the aws_service_discovery_http_namespace resource to configure a Cloud Map namespace. Must be between 1 and 1024 characters in length. - namespaceName?: null | string @go(NamespaceName,*string) - - // attribute of the dns object to hostname. - serviceName?: null | string @go(ServiceName,*string) -} - -#AwsCloudMapParameters: { - // String map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned. - // +kubebuilder:validation:Optional - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) - - // Name of the AWS Cloud Map namespace to use. - // Use the aws_service_discovery_http_namespace resource to configure a Cloud Map namespace. Must be between 1 and 1024 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/servicediscovery/v1beta1.HTTPNamespace - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - namespaceName?: null | string @go(NamespaceName,*string) - - // Reference to a HTTPNamespace in servicediscovery to populate namespaceName. - // +kubebuilder:validation:Optional - namespaceNameRef?: null | v1.#Reference @go(NamespaceNameRef,*v1.Reference) - - // Selector for a HTTPNamespace in servicediscovery to populate namespaceName. - // +kubebuilder:validation:Optional - namespaceNameSelector?: null | v1.#Selector @go(NamespaceNameSelector,*v1.Selector) - - // attribute of the dns object to hostname. - // +kubebuilder:validation:Optional - serviceName?: null | string @go(ServiceName,*string) -} - -#BackendDefaultsClientPolicyInitParameters: { - // Transport Layer Security (TLS) client policy. - tls?: [...#BackendDefaultsClientPolicyTLSInitParameters] @go(TLS,[]BackendDefaultsClientPolicyTLSInitParameters) -} - -#BackendDefaultsClientPolicyObservation: { - // Transport Layer Security (TLS) client policy. - tls?: [...#BackendDefaultsClientPolicyTLSObservation] @go(TLS,[]BackendDefaultsClientPolicyTLSObservation) -} - -#BackendDefaultsClientPolicyParameters: { - // Transport Layer Security (TLS) client policy. - // +kubebuilder:validation:Optional - tls?: [...#BackendDefaultsClientPolicyTLSParameters] @go(TLS,[]BackendDefaultsClientPolicyTLSParameters) -} - -#BackendDefaultsClientPolicyTLSCertificateInitParameters: { - // Local file certificate. - file?: [...#ClientPolicyTLSCertificateFileInitParameters] @go(File,[]ClientPolicyTLSCertificateFileInitParameters) - - // A Secret Discovery Service certificate. - sds?: [...#ClientPolicyTLSCertificateSdsInitParameters] @go(Sds,[]ClientPolicyTLSCertificateSdsInitParameters) -} - -#BackendDefaultsClientPolicyTLSCertificateObservation: { - // Local file certificate. - file?: [...#ClientPolicyTLSCertificateFileObservation] @go(File,[]ClientPolicyTLSCertificateFileObservation) - - // A Secret Discovery Service certificate. - sds?: [...#ClientPolicyTLSCertificateSdsObservation] @go(Sds,[]ClientPolicyTLSCertificateSdsObservation) -} - -#BackendDefaultsClientPolicyTLSCertificateParameters: { - // Local file certificate. - // +kubebuilder:validation:Optional - file?: [...#ClientPolicyTLSCertificateFileParameters] @go(File,[]ClientPolicyTLSCertificateFileParameters) - - // A Secret Discovery Service certificate. - // +kubebuilder:validation:Optional - sds?: [...#ClientPolicyTLSCertificateSdsParameters] @go(Sds,[]ClientPolicyTLSCertificateSdsParameters) -} - -#BackendDefaultsClientPolicyTLSInitParameters: { - // Virtual node's client's Transport Layer Security (TLS) certificate. - certificate?: [...#BackendDefaultsClientPolicyTLSCertificateInitParameters] @go(Certificate,[]BackendDefaultsClientPolicyTLSCertificateInitParameters) - - // Whether the policy is enforced. Default is true. - enforce?: null | bool @go(Enforce,*bool) - - // One or more ports that the policy is enforced for. - ports?: [...null | float64] @go(Ports,[]*float64) - - // TLS validation context. - validation?: [...#BackendDefaultsClientPolicyTLSValidationInitParameters] @go(Validation,[]BackendDefaultsClientPolicyTLSValidationInitParameters) -} - -#BackendDefaultsClientPolicyTLSObservation: { - // Virtual node's client's Transport Layer Security (TLS) certificate. - certificate?: [...#BackendDefaultsClientPolicyTLSCertificateObservation] @go(Certificate,[]BackendDefaultsClientPolicyTLSCertificateObservation) - - // Whether the policy is enforced. Default is true. - enforce?: null | bool @go(Enforce,*bool) - - // One or more ports that the policy is enforced for. - ports?: [...null | float64] @go(Ports,[]*float64) - - // TLS validation context. - validation?: [...#BackendDefaultsClientPolicyTLSValidationObservation] @go(Validation,[]BackendDefaultsClientPolicyTLSValidationObservation) -} - -#BackendDefaultsClientPolicyTLSParameters: { - // Virtual node's client's Transport Layer Security (TLS) certificate. - // +kubebuilder:validation:Optional - certificate?: [...#BackendDefaultsClientPolicyTLSCertificateParameters] @go(Certificate,[]BackendDefaultsClientPolicyTLSCertificateParameters) - - // Whether the policy is enforced. Default is true. - // +kubebuilder:validation:Optional - enforce?: null | bool @go(Enforce,*bool) - - // One or more ports that the policy is enforced for. - // +kubebuilder:validation:Optional - ports?: [...null | float64] @go(Ports,[]*float64) - - // TLS validation context. - // +kubebuilder:validation:Optional - validation: [...#BackendDefaultsClientPolicyTLSValidationParameters] @go(Validation,[]BackendDefaultsClientPolicyTLSValidationParameters) -} - -#BackendDefaultsClientPolicyTLSValidationInitParameters: { - // SANs for a TLS validation context. - subjectAlternativeNames?: [...#ClientPolicyTLSValidationSubjectAlternativeNamesInitParameters] @go(SubjectAlternativeNames,[]ClientPolicyTLSValidationSubjectAlternativeNamesInitParameters) - - // TLS validation context trust. - trust?: [...#ClientPolicyTLSValidationTrustInitParameters] @go(Trust,[]ClientPolicyTLSValidationTrustInitParameters) -} - -#BackendDefaultsClientPolicyTLSValidationObservation: { - // SANs for a TLS validation context. - subjectAlternativeNames?: [...#ClientPolicyTLSValidationSubjectAlternativeNamesObservation] @go(SubjectAlternativeNames,[]ClientPolicyTLSValidationSubjectAlternativeNamesObservation) - - // TLS validation context trust. - trust?: [...#ClientPolicyTLSValidationTrustObservation] @go(Trust,[]ClientPolicyTLSValidationTrustObservation) -} - -#BackendDefaultsClientPolicyTLSValidationParameters: { - // SANs for a TLS validation context. - // +kubebuilder:validation:Optional - subjectAlternativeNames?: [...#ClientPolicyTLSValidationSubjectAlternativeNamesParameters] @go(SubjectAlternativeNames,[]ClientPolicyTLSValidationSubjectAlternativeNamesParameters) - - // TLS validation context trust. - // +kubebuilder:validation:Optional - trust: [...#ClientPolicyTLSValidationTrustParameters] @go(Trust,[]ClientPolicyTLSValidationTrustParameters) -} - -#BackendInitParameters: { - // Virtual service to use as a backend for a virtual node. - virtualService?: [...#BackendVirtualServiceInitParameters] @go(VirtualService,[]BackendVirtualServiceInitParameters) -} - -#BackendObservation: { - // Virtual service to use as a backend for a virtual node. - virtualService?: [...#BackendVirtualServiceObservation] @go(VirtualService,[]BackendVirtualServiceObservation) -} - -#BackendParameters: { - // Virtual service to use as a backend for a virtual node. - // +kubebuilder:validation:Optional - virtualService: [...#BackendVirtualServiceParameters] @go(VirtualService,[]BackendVirtualServiceParameters) -} - -#BackendVirtualServiceInitParameters: { - // Client policy for the backend. - clientPolicy?: [...#VirtualServiceClientPolicyInitParameters] @go(ClientPolicy,[]VirtualServiceClientPolicyInitParameters) - - // Name of the virtual service that is acting as a virtual node backend. Must be between 1 and 255 characters in length. - virtualServiceName?: null | string @go(VirtualServiceName,*string) -} - -#BackendVirtualServiceObservation: { - // Client policy for the backend. - clientPolicy?: [...#VirtualServiceClientPolicyObservation] @go(ClientPolicy,[]VirtualServiceClientPolicyObservation) - - // Name of the virtual service that is acting as a virtual node backend. Must be between 1 and 255 characters in length. - virtualServiceName?: null | string @go(VirtualServiceName,*string) -} - -#BackendVirtualServiceParameters: { - // Client policy for the backend. - // +kubebuilder:validation:Optional - clientPolicy?: [...#VirtualServiceClientPolicyParameters] @go(ClientPolicy,[]VirtualServiceClientPolicyParameters) - - // Name of the virtual service that is acting as a virtual node backend. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - virtualServiceName?: null | string @go(VirtualServiceName,*string) -} - -#BaseEjectionDurationInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#BaseEjectionDurationObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#BaseEjectionDurationParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#ClientPolicyTLSCertificateFileInitParameters: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - privateKey?: null | string @go(PrivateKey,*string) -} - -#ClientPolicyTLSCertificateFileObservation: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - privateKey?: null | string @go(PrivateKey,*string) -} - -#ClientPolicyTLSCertificateFileParameters: { - // Certificate chain for the certificate. - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - // +kubebuilder:validation:Optional - privateKey?: null | string @go(PrivateKey,*string) -} - -#ClientPolicyTLSCertificateInitParameters: { - // Local file certificate. - file?: [...#TLSCertificateFileInitParameters] @go(File,[]TLSCertificateFileInitParameters) - - // A Secret Discovery Service certificate. - sds?: [...#TLSCertificateSdsInitParameters] @go(Sds,[]TLSCertificateSdsInitParameters) -} - -#ClientPolicyTLSCertificateObservation: { - // Local file certificate. - file?: [...#TLSCertificateFileObservation] @go(File,[]TLSCertificateFileObservation) - - // A Secret Discovery Service certificate. - sds?: [...#TLSCertificateSdsObservation] @go(Sds,[]TLSCertificateSdsObservation) -} - -#ClientPolicyTLSCertificateParameters: { - // Local file certificate. - // +kubebuilder:validation:Optional - file?: [...#TLSCertificateFileParameters] @go(File,[]TLSCertificateFileParameters) - - // A Secret Discovery Service certificate. - // +kubebuilder:validation:Optional - sds?: [...#TLSCertificateSdsParameters] @go(Sds,[]TLSCertificateSdsParameters) -} - -#ClientPolicyTLSCertificateSdsInitParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#ClientPolicyTLSCertificateSdsObservation: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#ClientPolicyTLSCertificateSdsParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - // +kubebuilder:validation:Optional - secretName?: null | string @go(SecretName,*string) -} - -#ClientPolicyTLSInitParameters: { - // Virtual node's client's Transport Layer Security (TLS) certificate. - certificate?: [...#ClientPolicyTLSCertificateInitParameters] @go(Certificate,[]ClientPolicyTLSCertificateInitParameters) - - // Whether the policy is enforced. Default is true. - enforce?: null | bool @go(Enforce,*bool) - - // One or more ports that the policy is enforced for. - ports?: [...null | float64] @go(Ports,[]*float64) - - // TLS validation context. - validation?: [...#ClientPolicyTLSValidationInitParameters] @go(Validation,[]ClientPolicyTLSValidationInitParameters) -} - -#ClientPolicyTLSObservation: { - // Virtual node's client's Transport Layer Security (TLS) certificate. - certificate?: [...#ClientPolicyTLSCertificateObservation] @go(Certificate,[]ClientPolicyTLSCertificateObservation) - - // Whether the policy is enforced. Default is true. - enforce?: null | bool @go(Enforce,*bool) - - // One or more ports that the policy is enforced for. - ports?: [...null | float64] @go(Ports,[]*float64) - - // TLS validation context. - validation?: [...#ClientPolicyTLSValidationObservation] @go(Validation,[]ClientPolicyTLSValidationObservation) -} - -#ClientPolicyTLSParameters: { - // Virtual node's client's Transport Layer Security (TLS) certificate. - // +kubebuilder:validation:Optional - certificate?: [...#ClientPolicyTLSCertificateParameters] @go(Certificate,[]ClientPolicyTLSCertificateParameters) - - // Whether the policy is enforced. Default is true. - // +kubebuilder:validation:Optional - enforce?: null | bool @go(Enforce,*bool) - - // One or more ports that the policy is enforced for. - // +kubebuilder:validation:Optional - ports?: [...null | float64] @go(Ports,[]*float64) - - // TLS validation context. - // +kubebuilder:validation:Optional - validation: [...#ClientPolicyTLSValidationParameters] @go(Validation,[]ClientPolicyTLSValidationParameters) -} - -#ClientPolicyTLSValidationInitParameters: { - // SANs for a TLS validation context. - subjectAlternativeNames?: [...#TLSValidationSubjectAlternativeNamesInitParameters] @go(SubjectAlternativeNames,[]TLSValidationSubjectAlternativeNamesInitParameters) - - // TLS validation context trust. - trust?: [...#TLSValidationTrustInitParameters] @go(Trust,[]TLSValidationTrustInitParameters) -} - -#ClientPolicyTLSValidationObservation: { - // SANs for a TLS validation context. - subjectAlternativeNames?: [...#TLSValidationSubjectAlternativeNamesObservation] @go(SubjectAlternativeNames,[]TLSValidationSubjectAlternativeNamesObservation) - - // TLS validation context trust. - trust?: [...#TLSValidationTrustObservation] @go(Trust,[]TLSValidationTrustObservation) -} - -#ClientPolicyTLSValidationParameters: { - // SANs for a TLS validation context. - // +kubebuilder:validation:Optional - subjectAlternativeNames?: [...#TLSValidationSubjectAlternativeNamesParameters] @go(SubjectAlternativeNames,[]TLSValidationSubjectAlternativeNamesParameters) - - // TLS validation context trust. - // +kubebuilder:validation:Optional - trust: [...#TLSValidationTrustParameters] @go(Trust,[]TLSValidationTrustParameters) -} - -#ClientPolicyTLSValidationSubjectAlternativeNamesInitParameters: { - // Criteria for determining a SAN's match. - match?: [...#ClientPolicyTLSValidationSubjectAlternativeNamesMatchInitParameters] @go(Match,[]ClientPolicyTLSValidationSubjectAlternativeNamesMatchInitParameters) -} - -#ClientPolicyTLSValidationSubjectAlternativeNamesMatchInitParameters: { - // Values sent must match the specified values exactly. - exact?: [...null | string] @go(Exact,[]*string) -} - -#ClientPolicyTLSValidationSubjectAlternativeNamesMatchObservation: { - // Values sent must match the specified values exactly. - exact?: [...null | string] @go(Exact,[]*string) -} - -#ClientPolicyTLSValidationSubjectAlternativeNamesMatchParameters: { - // Values sent must match the specified values exactly. - // +kubebuilder:validation:Optional - exact: [...null | string] @go(Exact,[]*string) -} - -#ClientPolicyTLSValidationSubjectAlternativeNamesObservation: { - // Criteria for determining a SAN's match. - match?: [...#ClientPolicyTLSValidationSubjectAlternativeNamesMatchObservation] @go(Match,[]ClientPolicyTLSValidationSubjectAlternativeNamesMatchObservation) -} - -#ClientPolicyTLSValidationSubjectAlternativeNamesParameters: { - // Criteria for determining a SAN's match. - // +kubebuilder:validation:Optional - match: [...#ClientPolicyTLSValidationSubjectAlternativeNamesMatchParameters] @go(Match,[]ClientPolicyTLSValidationSubjectAlternativeNamesMatchParameters) -} - -#ClientPolicyTLSValidationTrustFileInitParameters: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) -} - -#ClientPolicyTLSValidationTrustFileObservation: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) -} - -#ClientPolicyTLSValidationTrustFileParameters: { - // Certificate chain for the certificate. - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) -} - -#ClientPolicyTLSValidationTrustInitParameters: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - acm?: [...#ValidationTrustAcmInitParameters] @go(Acm,[]ValidationTrustAcmInitParameters) - - // Local file certificate. - file?: [...#ClientPolicyTLSValidationTrustFileInitParameters] @go(File,[]ClientPolicyTLSValidationTrustFileInitParameters) - - // A Secret Discovery Service certificate. - sds?: [...#ClientPolicyTLSValidationTrustSdsInitParameters] @go(Sds,[]ClientPolicyTLSValidationTrustSdsInitParameters) -} - -#ClientPolicyTLSValidationTrustObservation: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - acm?: [...#ValidationTrustAcmObservation] @go(Acm,[]ValidationTrustAcmObservation) - - // Local file certificate. - file?: [...#ClientPolicyTLSValidationTrustFileObservation] @go(File,[]ClientPolicyTLSValidationTrustFileObservation) - - // A Secret Discovery Service certificate. - sds?: [...#ClientPolicyTLSValidationTrustSdsObservation] @go(Sds,[]ClientPolicyTLSValidationTrustSdsObservation) -} - -#ClientPolicyTLSValidationTrustParameters: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - // +kubebuilder:validation:Optional - acm?: [...#ValidationTrustAcmParameters] @go(Acm,[]ValidationTrustAcmParameters) - - // Local file certificate. - // +kubebuilder:validation:Optional - file?: [...#ClientPolicyTLSValidationTrustFileParameters] @go(File,[]ClientPolicyTLSValidationTrustFileParameters) - - // A Secret Discovery Service certificate. - // +kubebuilder:validation:Optional - sds?: [...#ClientPolicyTLSValidationTrustSdsParameters] @go(Sds,[]ClientPolicyTLSValidationTrustSdsParameters) -} - -#ClientPolicyTLSValidationTrustSdsInitParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#ClientPolicyTLSValidationTrustSdsObservation: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#ClientPolicyTLSValidationTrustSdsParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - // +kubebuilder:validation:Optional - secretName?: null | string @go(SecretName,*string) -} - -#ConnectionPoolGRPCInitParameters: { - // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of 1. - maxRequests?: null | float64 @go(MaxRequests,*float64) -} - -#ConnectionPoolGRPCObservation: { - // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of 1. - maxRequests?: null | float64 @go(MaxRequests,*float64) -} - -#ConnectionPoolGRPCParameters: { - // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of 1. - // +kubebuilder:validation:Optional - maxRequests?: null | float64 @go(MaxRequests,*float64) -} - -#ConnectionPoolHTTPInitParameters: { - // Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of 1. - maxConnections?: null | float64 @go(MaxConnections,*float64) - - // Number of overflowing requests after max_connections Envoy will queue to upstream cluster. Minimum value of 1. - maxPendingRequests?: null | float64 @go(MaxPendingRequests,*float64) -} - -#ConnectionPoolHTTPObservation: { - // Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of 1. - maxConnections?: null | float64 @go(MaxConnections,*float64) - - // Number of overflowing requests after max_connections Envoy will queue to upstream cluster. Minimum value of 1. - maxPendingRequests?: null | float64 @go(MaxPendingRequests,*float64) -} - -#ConnectionPoolHTTPParameters: { - // Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of 1. - // +kubebuilder:validation:Optional - maxConnections?: null | float64 @go(MaxConnections,*float64) - - // Number of overflowing requests after max_connections Envoy will queue to upstream cluster. Minimum value of 1. - // +kubebuilder:validation:Optional - maxPendingRequests?: null | float64 @go(MaxPendingRequests,*float64) -} - -#ConnectionPoolHttp2InitParameters: { - // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of 1. - maxRequests?: null | float64 @go(MaxRequests,*float64) -} - -#ConnectionPoolHttp2Observation: { - // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of 1. - maxRequests?: null | float64 @go(MaxRequests,*float64) -} - -#ConnectionPoolHttp2Parameters: { - // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of 1. - // +kubebuilder:validation:Optional - maxRequests?: null | float64 @go(MaxRequests,*float64) -} - -#DNSInitParameters: { - // DNS host name for your virtual node. - hostname?: null | string @go(Hostname,*string) - - // The preferred IP version that this virtual node uses. Valid values: IPv6_PREFERRED, IPv4_PREFERRED, IPv4_ONLY, IPv6_ONLY. - ipPreference?: null | string @go(IPPreference,*string) - - // The DNS response type for the virtual node. Valid values: LOADBALANCER, ENDPOINTS. - responseType?: null | string @go(ResponseType,*string) -} - -#DNSObservation: { - // DNS host name for your virtual node. - hostname?: null | string @go(Hostname,*string) - - // The preferred IP version that this virtual node uses. Valid values: IPv6_PREFERRED, IPv4_PREFERRED, IPv4_ONLY, IPv6_ONLY. - ipPreference?: null | string @go(IPPreference,*string) - - // The DNS response type for the virtual node. Valid values: LOADBALANCER, ENDPOINTS. - responseType?: null | string @go(ResponseType,*string) -} - -#DNSParameters: { - // DNS host name for your virtual node. - // +kubebuilder:validation:Optional - hostname?: null | string @go(Hostname,*string) - - // The preferred IP version that this virtual node uses. Valid values: IPv6_PREFERRED, IPv4_PREFERRED, IPv4_ONLY, IPv6_ONLY. - // +kubebuilder:validation:Optional - ipPreference?: null | string @go(IPPreference,*string) - - // The DNS response type for the virtual node. Valid values: LOADBALANCER, ENDPOINTS. - // +kubebuilder:validation:Optional - responseType?: null | string @go(ResponseType,*string) -} - -#FileFormatInitParameters: { - // The logging format for JSON. - json?: [...#FormatJSONInitParameters] @go(JSON,[]FormatJSONInitParameters) - - // The logging format for text. Must be between 1 and 1000 characters in length. - text?: null | string @go(Text,*string) -} - -#FileFormatObservation: { - // The logging format for JSON. - json?: [...#FormatJSONObservation] @go(JSON,[]FormatJSONObservation) - - // The logging format for text. Must be between 1 and 1000 characters in length. - text?: null | string @go(Text,*string) -} - -#FileFormatParameters: { - // The logging format for JSON. - // +kubebuilder:validation:Optional - json?: [...#FormatJSONParameters] @go(JSON,[]FormatJSONParameters) - - // The logging format for text. Must be between 1 and 1000 characters in length. - // +kubebuilder:validation:Optional - text?: null | string @go(Text,*string) -} - -#FormatJSONInitParameters: { - // The specified key for the JSON. Must be between 1 and 100 characters in length. - key?: null | string @go(Key,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | string @go(Value,*string) -} - -#FormatJSONObservation: { - // The specified key for the JSON. Must be between 1 and 100 characters in length. - key?: null | string @go(Key,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | string @go(Value,*string) -} - -#FormatJSONParameters: { - // The specified key for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#GRPCIdleInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#GRPCIdleObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#GRPCIdleParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#GRPCPerRequestInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#GRPCPerRequestObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#GRPCPerRequestParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#HTTPIdleInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#HTTPIdleObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#HTTPIdleParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#HTTPPerRequestInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#HTTPPerRequestObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#HTTPPerRequestParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#Http2IdleInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#Http2IdleObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#Http2IdleParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#Http2PerRequestInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#Http2PerRequestObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#Http2PerRequestParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#IntervalInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#IntervalObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#IntervalParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#ListenerConnectionPoolInitParameters: { - // Connection pool information for gRPC listeners. - grpc?: [...#ConnectionPoolGRPCInitParameters] @go(GRPC,[]ConnectionPoolGRPCInitParameters) - - // Connection pool information for HTTP listeners. - http?: [...#ConnectionPoolHTTPInitParameters] @go(HTTP,[]ConnectionPoolHTTPInitParameters) - - // Connection pool information for HTTP2 listeners. - http2?: [...#ConnectionPoolHttp2InitParameters] @go(Http2,[]ConnectionPoolHttp2InitParameters) - - // Connection pool information for TCP listeners. - tcp?: [...#TCPInitParameters] @go(TCP,[]TCPInitParameters) -} - -#ListenerConnectionPoolObservation: { - // Connection pool information for gRPC listeners. - grpc?: [...#ConnectionPoolGRPCObservation] @go(GRPC,[]ConnectionPoolGRPCObservation) - - // Connection pool information for HTTP listeners. - http?: [...#ConnectionPoolHTTPObservation] @go(HTTP,[]ConnectionPoolHTTPObservation) - - // Connection pool information for HTTP2 listeners. - http2?: [...#ConnectionPoolHttp2Observation] @go(Http2,[]ConnectionPoolHttp2Observation) - - // Connection pool information for TCP listeners. - tcp?: [...#TCPObservation] @go(TCP,[]TCPObservation) -} - -#ListenerConnectionPoolParameters: { - // Connection pool information for gRPC listeners. - // +kubebuilder:validation:Optional - grpc?: [...#ConnectionPoolGRPCParameters] @go(GRPC,[]ConnectionPoolGRPCParameters) - - // Connection pool information for HTTP listeners. - // +kubebuilder:validation:Optional - http?: [...#ConnectionPoolHTTPParameters] @go(HTTP,[]ConnectionPoolHTTPParameters) - - // Connection pool information for HTTP2 listeners. - // +kubebuilder:validation:Optional - http2?: [...#ConnectionPoolHttp2Parameters] @go(Http2,[]ConnectionPoolHttp2Parameters) - - // Connection pool information for TCP listeners. - // +kubebuilder:validation:Optional - tcp?: [...#TCPParameters] @go(TCP,[]TCPParameters) -} - -#ListenerHealthCheckInitParameters: { - // Number of consecutive successful health checks that must occur before declaring listener healthy. - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // Time period in milliseconds between each health check execution. - intervalMillis?: null | float64 @go(IntervalMillis,*float64) - - // File path to write access logs to. You can use /dev/stdout to send access logs to standard out. Must be between 1 and 255 characters in length. - path?: null | string @go(Path,*string) - - // Port used for the port mapping. - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http, http2, tcp and grpc. - protocol?: null | string @go(Protocol,*string) - - // Amount of time to wait when receiving a response from the health check, in milliseconds. - timeoutMillis?: null | float64 @go(TimeoutMillis,*float64) - - // Number of consecutive failed health checks that must occur before declaring a virtual node unhealthy. - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#ListenerHealthCheckObservation: { - // Number of consecutive successful health checks that must occur before declaring listener healthy. - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // Time period in milliseconds between each health check execution. - intervalMillis?: null | float64 @go(IntervalMillis,*float64) - - // File path to write access logs to. You can use /dev/stdout to send access logs to standard out. Must be between 1 and 255 characters in length. - path?: null | string @go(Path,*string) - - // Port used for the port mapping. - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http, http2, tcp and grpc. - protocol?: null | string @go(Protocol,*string) - - // Amount of time to wait when receiving a response from the health check, in milliseconds. - timeoutMillis?: null | float64 @go(TimeoutMillis,*float64) - - // Number of consecutive failed health checks that must occur before declaring a virtual node unhealthy. - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#ListenerHealthCheckParameters: { - // Number of consecutive successful health checks that must occur before declaring listener healthy. - // +kubebuilder:validation:Optional - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // Time period in milliseconds between each health check execution. - // +kubebuilder:validation:Optional - intervalMillis?: null | float64 @go(IntervalMillis,*float64) - - // File path to write access logs to. You can use /dev/stdout to send access logs to standard out. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // Port used for the port mapping. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http, http2, tcp and grpc. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Amount of time to wait when receiving a response from the health check, in milliseconds. - // +kubebuilder:validation:Optional - timeoutMillis?: null | float64 @go(TimeoutMillis,*float64) - - // Number of consecutive failed health checks that must occur before declaring a virtual node unhealthy. - // +kubebuilder:validation:Optional - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#ListenerPortMappingInitParameters: { - // Port used for the port mapping. - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http, http2, tcp and grpc. - protocol?: null | string @go(Protocol,*string) -} - -#ListenerPortMappingObservation: { - // Port used for the port mapping. - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http, http2, tcp and grpc. - protocol?: null | string @go(Protocol,*string) -} - -#ListenerPortMappingParameters: { - // Port used for the port mapping. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http, http2, tcp and grpc. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) -} - -#ListenerTLSCertificateFileInitParameters: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - privateKey?: null | string @go(PrivateKey,*string) -} - -#ListenerTLSCertificateFileObservation: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - privateKey?: null | string @go(PrivateKey,*string) -} - -#ListenerTLSCertificateFileParameters: { - // Certificate chain for the certificate. - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - // +kubebuilder:validation:Optional - privateKey?: null | string @go(PrivateKey,*string) -} - -#ListenerTLSCertificateInitParameters: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - acm?: [...#TLSCertificateAcmInitParameters] @go(Acm,[]TLSCertificateAcmInitParameters) - - // Local file certificate. - file?: [...#ListenerTLSCertificateFileInitParameters] @go(File,[]ListenerTLSCertificateFileInitParameters) - - // A Secret Discovery Service certificate. - sds?: [...#ListenerTLSCertificateSdsInitParameters] @go(Sds,[]ListenerTLSCertificateSdsInitParameters) -} - -#ListenerTLSCertificateObservation: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - acm?: [...#TLSCertificateAcmObservation] @go(Acm,[]TLSCertificateAcmObservation) - - // Local file certificate. - file?: [...#ListenerTLSCertificateFileObservation] @go(File,[]ListenerTLSCertificateFileObservation) - - // A Secret Discovery Service certificate. - sds?: [...#ListenerTLSCertificateSdsObservation] @go(Sds,[]ListenerTLSCertificateSdsObservation) -} - -#ListenerTLSCertificateParameters: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - // +kubebuilder:validation:Optional - acm?: [...#TLSCertificateAcmParameters] @go(Acm,[]TLSCertificateAcmParameters) - - // Local file certificate. - // +kubebuilder:validation:Optional - file?: [...#ListenerTLSCertificateFileParameters] @go(File,[]ListenerTLSCertificateFileParameters) - - // A Secret Discovery Service certificate. - // +kubebuilder:validation:Optional - sds?: [...#ListenerTLSCertificateSdsParameters] @go(Sds,[]ListenerTLSCertificateSdsParameters) -} - -#ListenerTLSCertificateSdsInitParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#ListenerTLSCertificateSdsObservation: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#ListenerTLSCertificateSdsParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - // +kubebuilder:validation:Optional - secretName?: null | string @go(SecretName,*string) -} - -#ListenerTLSValidationInitParameters: { - // SANs for a TLS validation context. - subjectAlternativeNames?: [...#ListenerTLSValidationSubjectAlternativeNamesInitParameters] @go(SubjectAlternativeNames,[]ListenerTLSValidationSubjectAlternativeNamesInitParameters) - - // TLS validation context trust. - trust?: [...#ListenerTLSValidationTrustInitParameters] @go(Trust,[]ListenerTLSValidationTrustInitParameters) -} - -#ListenerTLSValidationObservation: { - // SANs for a TLS validation context. - subjectAlternativeNames?: [...#ListenerTLSValidationSubjectAlternativeNamesObservation] @go(SubjectAlternativeNames,[]ListenerTLSValidationSubjectAlternativeNamesObservation) - - // TLS validation context trust. - trust?: [...#ListenerTLSValidationTrustObservation] @go(Trust,[]ListenerTLSValidationTrustObservation) -} - -#ListenerTLSValidationParameters: { - // SANs for a TLS validation context. - // +kubebuilder:validation:Optional - subjectAlternativeNames?: [...#ListenerTLSValidationSubjectAlternativeNamesParameters] @go(SubjectAlternativeNames,[]ListenerTLSValidationSubjectAlternativeNamesParameters) - - // TLS validation context trust. - // +kubebuilder:validation:Optional - trust: [...#ListenerTLSValidationTrustParameters] @go(Trust,[]ListenerTLSValidationTrustParameters) -} - -#ListenerTLSValidationSubjectAlternativeNamesInitParameters: { - // Criteria for determining a SAN's match. - match?: [...#ListenerTLSValidationSubjectAlternativeNamesMatchInitParameters] @go(Match,[]ListenerTLSValidationSubjectAlternativeNamesMatchInitParameters) -} - -#ListenerTLSValidationSubjectAlternativeNamesMatchInitParameters: { - // Values sent must match the specified values exactly. - exact?: [...null | string] @go(Exact,[]*string) -} - -#ListenerTLSValidationSubjectAlternativeNamesMatchObservation: { - // Values sent must match the specified values exactly. - exact?: [...null | string] @go(Exact,[]*string) -} - -#ListenerTLSValidationSubjectAlternativeNamesMatchParameters: { - // Values sent must match the specified values exactly. - // +kubebuilder:validation:Optional - exact: [...null | string] @go(Exact,[]*string) -} - -#ListenerTLSValidationSubjectAlternativeNamesObservation: { - // Criteria for determining a SAN's match. - match?: [...#ListenerTLSValidationSubjectAlternativeNamesMatchObservation] @go(Match,[]ListenerTLSValidationSubjectAlternativeNamesMatchObservation) -} - -#ListenerTLSValidationSubjectAlternativeNamesParameters: { - // Criteria for determining a SAN's match. - // +kubebuilder:validation:Optional - match: [...#ListenerTLSValidationSubjectAlternativeNamesMatchParameters] @go(Match,[]ListenerTLSValidationSubjectAlternativeNamesMatchParameters) -} - -#ListenerTLSValidationTrustFileInitParameters: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) -} - -#ListenerTLSValidationTrustFileObservation: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) -} - -#ListenerTLSValidationTrustFileParameters: { - // Certificate chain for the certificate. - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) -} - -#ListenerTLSValidationTrustInitParameters: { - // Local file certificate. - file?: [...#ListenerTLSValidationTrustFileInitParameters] @go(File,[]ListenerTLSValidationTrustFileInitParameters) - - // A Secret Discovery Service certificate. - sds?: [...#ListenerTLSValidationTrustSdsInitParameters] @go(Sds,[]ListenerTLSValidationTrustSdsInitParameters) -} - -#ListenerTLSValidationTrustObservation: { - // Local file certificate. - file?: [...#ListenerTLSValidationTrustFileObservation] @go(File,[]ListenerTLSValidationTrustFileObservation) - - // A Secret Discovery Service certificate. - sds?: [...#ListenerTLSValidationTrustSdsObservation] @go(Sds,[]ListenerTLSValidationTrustSdsObservation) -} - -#ListenerTLSValidationTrustParameters: { - // Local file certificate. - // +kubebuilder:validation:Optional - file?: [...#ListenerTLSValidationTrustFileParameters] @go(File,[]ListenerTLSValidationTrustFileParameters) - - // A Secret Discovery Service certificate. - // +kubebuilder:validation:Optional - sds?: [...#ListenerTLSValidationTrustSdsParameters] @go(Sds,[]ListenerTLSValidationTrustSdsParameters) -} - -#ListenerTLSValidationTrustSdsInitParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#ListenerTLSValidationTrustSdsObservation: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#ListenerTLSValidationTrustSdsParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - // +kubebuilder:validation:Optional - secretName?: null | string @go(SecretName,*string) -} - -#ListenerTimeoutInitParameters: { - // Connection pool information for gRPC listeners. - grpc?: [...#TimeoutGRPCInitParameters] @go(GRPC,[]TimeoutGRPCInitParameters) - - // Connection pool information for HTTP listeners. - http?: [...#TimeoutHTTPInitParameters] @go(HTTP,[]TimeoutHTTPInitParameters) - - // Connection pool information for HTTP2 listeners. - http2?: [...#TimeoutHttp2InitParameters] @go(Http2,[]TimeoutHttp2InitParameters) - - // Connection pool information for TCP listeners. - tcp?: [...#TimeoutTCPInitParameters] @go(TCP,[]TimeoutTCPInitParameters) -} - -#ListenerTimeoutObservation: { - // Connection pool information for gRPC listeners. - grpc?: [...#TimeoutGRPCObservation] @go(GRPC,[]TimeoutGRPCObservation) - - // Connection pool information for HTTP listeners. - http?: [...#TimeoutHTTPObservation] @go(HTTP,[]TimeoutHTTPObservation) - - // Connection pool information for HTTP2 listeners. - http2?: [...#TimeoutHttp2Observation] @go(Http2,[]TimeoutHttp2Observation) - - // Connection pool information for TCP listeners. - tcp?: [...#TimeoutTCPObservation] @go(TCP,[]TimeoutTCPObservation) -} - -#ListenerTimeoutParameters: { - // Connection pool information for gRPC listeners. - // +kubebuilder:validation:Optional - grpc?: [...#TimeoutGRPCParameters] @go(GRPC,[]TimeoutGRPCParameters) - - // Connection pool information for HTTP listeners. - // +kubebuilder:validation:Optional - http?: [...#TimeoutHTTPParameters] @go(HTTP,[]TimeoutHTTPParameters) - - // Connection pool information for HTTP2 listeners. - // +kubebuilder:validation:Optional - http2?: [...#TimeoutHttp2Parameters] @go(Http2,[]TimeoutHttp2Parameters) - - // Connection pool information for TCP listeners. - // +kubebuilder:validation:Optional - tcp?: [...#TimeoutTCPParameters] @go(TCP,[]TimeoutTCPParameters) -} - -#LoggingAccessLogFileInitParameters: { - // The specified format for the logs. - format?: [...#FileFormatInitParameters] @go(Format,[]FileFormatInitParameters) - - // File path to write access logs to. You can use /dev/stdout to send access logs to standard out. Must be between 1 and 255 characters in length. - path?: null | string @go(Path,*string) -} - -#LoggingAccessLogFileObservation: { - // The specified format for the logs. - format?: [...#FileFormatObservation] @go(Format,[]FileFormatObservation) - - // File path to write access logs to. You can use /dev/stdout to send access logs to standard out. Must be between 1 and 255 characters in length. - path?: null | string @go(Path,*string) -} - -#LoggingAccessLogFileParameters: { - // The specified format for the logs. - // +kubebuilder:validation:Optional - format?: [...#FileFormatParameters] @go(Format,[]FileFormatParameters) - - // File path to write access logs to. You can use /dev/stdout to send access logs to standard out. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) -} - -#LoggingAccessLogInitParameters: { - // Local file certificate. - file?: [...#LoggingAccessLogFileInitParameters] @go(File,[]LoggingAccessLogFileInitParameters) -} - -#LoggingAccessLogObservation: { - // Local file certificate. - file?: [...#LoggingAccessLogFileObservation] @go(File,[]LoggingAccessLogFileObservation) -} - -#LoggingAccessLogParameters: { - // Local file certificate. - // +kubebuilder:validation:Optional - file?: [...#LoggingAccessLogFileParameters] @go(File,[]LoggingAccessLogFileParameters) -} - -#OutlierDetectionInitParameters: { - // Base amount of time for which a host is ejected. - baseEjectionDuration?: [...#BaseEjectionDurationInitParameters] @go(BaseEjectionDuration,[]BaseEjectionDurationInitParameters) - - // Time interval between ejection sweep analysis. - interval?: [...#IntervalInitParameters] @go(Interval,[]IntervalInitParameters) - - // Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value. - // Minimum value of 0. Maximum value of 100. - maxEjectionPercent?: null | float64 @go(MaxEjectionPercent,*float64) - - // Number of consecutive 5xx errors required for ejection. Minimum value of 1. - maxServerErrors?: null | float64 @go(MaxServerErrors,*float64) -} - -#OutlierDetectionObservation: { - // Base amount of time for which a host is ejected. - baseEjectionDuration?: [...#BaseEjectionDurationObservation] @go(BaseEjectionDuration,[]BaseEjectionDurationObservation) - - // Time interval between ejection sweep analysis. - interval?: [...#IntervalObservation] @go(Interval,[]IntervalObservation) - - // Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value. - // Minimum value of 0. Maximum value of 100. - maxEjectionPercent?: null | float64 @go(MaxEjectionPercent,*float64) - - // Number of consecutive 5xx errors required for ejection. Minimum value of 1. - maxServerErrors?: null | float64 @go(MaxServerErrors,*float64) -} - -#OutlierDetectionParameters: { - // Base amount of time for which a host is ejected. - // +kubebuilder:validation:Optional - baseEjectionDuration: [...#BaseEjectionDurationParameters] @go(BaseEjectionDuration,[]BaseEjectionDurationParameters) - - // Time interval between ejection sweep analysis. - // +kubebuilder:validation:Optional - interval: [...#IntervalParameters] @go(Interval,[]IntervalParameters) - - // Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value. - // Minimum value of 0. Maximum value of 100. - // +kubebuilder:validation:Optional - maxEjectionPercent?: null | float64 @go(MaxEjectionPercent,*float64) - - // Number of consecutive 5xx errors required for ejection. Minimum value of 1. - // +kubebuilder:validation:Optional - maxServerErrors?: null | float64 @go(MaxServerErrors,*float64) -} - -#ServiceDiscoveryInitParameters: { - // Any AWS Cloud Map information for the virtual node. - awsCloudMap?: [...#AwsCloudMapInitParameters] @go(AwsCloudMap,[]AwsCloudMapInitParameters) - - // DNS service name for the virtual node. - dns?: [...#DNSInitParameters] @go(DNS,[]DNSInitParameters) -} - -#ServiceDiscoveryObservation: { - // Any AWS Cloud Map information for the virtual node. - awsCloudMap?: [...#AwsCloudMapObservation] @go(AwsCloudMap,[]AwsCloudMapObservation) - - // DNS service name for the virtual node. - dns?: [...#DNSObservation] @go(DNS,[]DNSObservation) -} - -#ServiceDiscoveryParameters: { - // Any AWS Cloud Map information for the virtual node. - // +kubebuilder:validation:Optional - awsCloudMap?: [...#AwsCloudMapParameters] @go(AwsCloudMap,[]AwsCloudMapParameters) - - // DNS service name for the virtual node. - // +kubebuilder:validation:Optional - dns?: [...#DNSParameters] @go(DNS,[]DNSParameters) -} - -#SpecBackendDefaultsInitParameters: { - // Client policy for the backend. - clientPolicy?: [...#BackendDefaultsClientPolicyInitParameters] @go(ClientPolicy,[]BackendDefaultsClientPolicyInitParameters) -} - -#SpecBackendDefaultsObservation: { - // Client policy for the backend. - clientPolicy?: [...#BackendDefaultsClientPolicyObservation] @go(ClientPolicy,[]BackendDefaultsClientPolicyObservation) -} - -#SpecBackendDefaultsParameters: { - // Client policy for the backend. - // +kubebuilder:validation:Optional - clientPolicy?: [...#BackendDefaultsClientPolicyParameters] @go(ClientPolicy,[]BackendDefaultsClientPolicyParameters) -} - -#SpecListenerInitParameters: { - // Connection pool information for the listener. - connectionPool?: [...#ListenerConnectionPoolInitParameters] @go(ConnectionPool,[]ListenerConnectionPoolInitParameters) - - // Health check information for the listener. - healthCheck?: [...#ListenerHealthCheckInitParameters] @go(HealthCheck,[]ListenerHealthCheckInitParameters) - - // Outlier detection information for the listener. - outlierDetection?: [...#OutlierDetectionInitParameters] @go(OutlierDetection,[]OutlierDetectionInitParameters) - - // Port mapping information for the listener. - portMapping?: [...#ListenerPortMappingInitParameters] @go(PortMapping,[]ListenerPortMappingInitParameters) - - // Transport Layer Security (TLS) client policy. - tls?: [...#SpecListenerTLSInitParameters] @go(TLS,[]SpecListenerTLSInitParameters) - - // Timeouts for different protocols. - timeout?: [...#ListenerTimeoutInitParameters] @go(Timeout,[]ListenerTimeoutInitParameters) -} - -#SpecListenerObservation: { - // Connection pool information for the listener. - connectionPool?: [...#ListenerConnectionPoolObservation] @go(ConnectionPool,[]ListenerConnectionPoolObservation) - - // Health check information for the listener. - healthCheck?: [...#ListenerHealthCheckObservation] @go(HealthCheck,[]ListenerHealthCheckObservation) - - // Outlier detection information for the listener. - outlierDetection?: [...#OutlierDetectionObservation] @go(OutlierDetection,[]OutlierDetectionObservation) - - // Port mapping information for the listener. - portMapping?: [...#ListenerPortMappingObservation] @go(PortMapping,[]ListenerPortMappingObservation) - - // Transport Layer Security (TLS) client policy. - tls?: [...#SpecListenerTLSObservation] @go(TLS,[]SpecListenerTLSObservation) - - // Timeouts for different protocols. - timeout?: [...#ListenerTimeoutObservation] @go(Timeout,[]ListenerTimeoutObservation) -} - -#SpecListenerParameters: { - // Connection pool information for the listener. - // +kubebuilder:validation:Optional - connectionPool?: [...#ListenerConnectionPoolParameters] @go(ConnectionPool,[]ListenerConnectionPoolParameters) - - // Health check information for the listener. - // +kubebuilder:validation:Optional - healthCheck?: [...#ListenerHealthCheckParameters] @go(HealthCheck,[]ListenerHealthCheckParameters) - - // Outlier detection information for the listener. - // +kubebuilder:validation:Optional - outlierDetection?: [...#OutlierDetectionParameters] @go(OutlierDetection,[]OutlierDetectionParameters) - - // Port mapping information for the listener. - // +kubebuilder:validation:Optional - portMapping: [...#ListenerPortMappingParameters] @go(PortMapping,[]ListenerPortMappingParameters) - - // Transport Layer Security (TLS) client policy. - // +kubebuilder:validation:Optional - tls?: [...#SpecListenerTLSParameters] @go(TLS,[]SpecListenerTLSParameters) - - // Timeouts for different protocols. - // +kubebuilder:validation:Optional - timeout?: [...#ListenerTimeoutParameters] @go(Timeout,[]ListenerTimeoutParameters) -} - -#SpecListenerTLSInitParameters: { - // Virtual node's client's Transport Layer Security (TLS) certificate. - certificate?: [...#ListenerTLSCertificateInitParameters] @go(Certificate,[]ListenerTLSCertificateInitParameters) - - // Listener's TLS mode. Valid values: DISABLED, PERMISSIVE, STRICT. - mode?: null | string @go(Mode,*string) - - // TLS validation context. - validation?: [...#ListenerTLSValidationInitParameters] @go(Validation,[]ListenerTLSValidationInitParameters) -} - -#SpecListenerTLSObservation: { - // Virtual node's client's Transport Layer Security (TLS) certificate. - certificate?: [...#ListenerTLSCertificateObservation] @go(Certificate,[]ListenerTLSCertificateObservation) - - // Listener's TLS mode. Valid values: DISABLED, PERMISSIVE, STRICT. - mode?: null | string @go(Mode,*string) - - // TLS validation context. - validation?: [...#ListenerTLSValidationObservation] @go(Validation,[]ListenerTLSValidationObservation) -} - -#SpecListenerTLSParameters: { - // Virtual node's client's Transport Layer Security (TLS) certificate. - // +kubebuilder:validation:Optional - certificate: [...#ListenerTLSCertificateParameters] @go(Certificate,[]ListenerTLSCertificateParameters) - - // Listener's TLS mode. Valid values: DISABLED, PERMISSIVE, STRICT. - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) - - // TLS validation context. - // +kubebuilder:validation:Optional - validation?: [...#ListenerTLSValidationParameters] @go(Validation,[]ListenerTLSValidationParameters) -} - -#SpecLoggingInitParameters: { - // Access log configuration for a virtual node. - accessLog?: [...#LoggingAccessLogInitParameters] @go(AccessLog,[]LoggingAccessLogInitParameters) -} - -#SpecLoggingObservation: { - // Access log configuration for a virtual node. - accessLog?: [...#LoggingAccessLogObservation] @go(AccessLog,[]LoggingAccessLogObservation) -} - -#SpecLoggingParameters: { - // Access log configuration for a virtual node. - // +kubebuilder:validation:Optional - accessLog?: [...#LoggingAccessLogParameters] @go(AccessLog,[]LoggingAccessLogParameters) -} - -#TCPIdleInitParameters: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#TCPIdleObservation: { - // Unit of time. Valid values: ms, s. - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - value?: null | float64 @go(Value,*float64) -} - -#TCPIdleParameters: { - // Unit of time. Valid values: ms, s. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // The specified value for the JSON. Must be between 1 and 100 characters in length. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#TCPInitParameters: { - // Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of 1. - maxConnections?: null | float64 @go(MaxConnections,*float64) -} - -#TCPObservation: { - // Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of 1. - maxConnections?: null | float64 @go(MaxConnections,*float64) -} - -#TCPParameters: { - // Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of 1. - // +kubebuilder:validation:Optional - maxConnections?: null | float64 @go(MaxConnections,*float64) -} - -#TLSCertificateAcmInitParameters: { - // ARN for the certificate. - certificateArn?: null | string @go(CertificateArn,*string) -} - -#TLSCertificateAcmObservation: { - // ARN for the certificate. - certificateArn?: null | string @go(CertificateArn,*string) -} - -#TLSCertificateAcmParameters: { - // ARN for the certificate. - // +kubebuilder:validation:Optional - certificateArn?: null | string @go(CertificateArn,*string) -} - -#TLSCertificateFileInitParameters: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - privateKey?: null | string @go(PrivateKey,*string) -} - -#TLSCertificateFileObservation: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - privateKey?: null | string @go(PrivateKey,*string) -} - -#TLSCertificateFileParameters: { - // Certificate chain for the certificate. - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) - - // Private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. - // +kubebuilder:validation:Optional - privateKey?: null | string @go(PrivateKey,*string) -} - -#TLSCertificateSdsInitParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#TLSCertificateSdsObservation: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#TLSCertificateSdsParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - // +kubebuilder:validation:Optional - secretName?: null | string @go(SecretName,*string) -} - -#TLSValidationSubjectAlternativeNamesInitParameters: { - // Criteria for determining a SAN's match. - match?: [...#TLSValidationSubjectAlternativeNamesMatchInitParameters] @go(Match,[]TLSValidationSubjectAlternativeNamesMatchInitParameters) -} - -#TLSValidationSubjectAlternativeNamesMatchInitParameters: { - // Values sent must match the specified values exactly. - exact?: [...null | string] @go(Exact,[]*string) -} - -#TLSValidationSubjectAlternativeNamesMatchObservation: { - // Values sent must match the specified values exactly. - exact?: [...null | string] @go(Exact,[]*string) -} - -#TLSValidationSubjectAlternativeNamesMatchParameters: { - // Values sent must match the specified values exactly. - // +kubebuilder:validation:Optional - exact: [...null | string] @go(Exact,[]*string) -} - -#TLSValidationSubjectAlternativeNamesObservation: { - // Criteria for determining a SAN's match. - match?: [...#TLSValidationSubjectAlternativeNamesMatchObservation] @go(Match,[]TLSValidationSubjectAlternativeNamesMatchObservation) -} - -#TLSValidationSubjectAlternativeNamesParameters: { - // Criteria for determining a SAN's match. - // +kubebuilder:validation:Optional - match: [...#TLSValidationSubjectAlternativeNamesMatchParameters] @go(Match,[]TLSValidationSubjectAlternativeNamesMatchParameters) -} - -#TLSValidationTrustFileInitParameters: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) -} - -#TLSValidationTrustFileObservation: { - // Certificate chain for the certificate. - certificateChain?: null | string @go(CertificateChain,*string) -} - -#TLSValidationTrustFileParameters: { - // Certificate chain for the certificate. - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) -} - -#TLSValidationTrustInitParameters: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - acm?: [...#TrustAcmInitParameters] @go(Acm,[]TrustAcmInitParameters) - - // Local file certificate. - file?: [...#TLSValidationTrustFileInitParameters] @go(File,[]TLSValidationTrustFileInitParameters) - - // A Secret Discovery Service certificate. - sds?: [...#TLSValidationTrustSdsInitParameters] @go(Sds,[]TLSValidationTrustSdsInitParameters) -} - -#TLSValidationTrustObservation: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - acm?: [...#TrustAcmObservation] @go(Acm,[]TrustAcmObservation) - - // Local file certificate. - file?: [...#TLSValidationTrustFileObservation] @go(File,[]TLSValidationTrustFileObservation) - - // A Secret Discovery Service certificate. - sds?: [...#TLSValidationTrustSdsObservation] @go(Sds,[]TLSValidationTrustSdsObservation) -} - -#TLSValidationTrustParameters: { - // TLS validation context trust for an AWS Certificate Manager (ACM) certificate. - // +kubebuilder:validation:Optional - acm?: [...#TrustAcmParameters] @go(Acm,[]TrustAcmParameters) - - // Local file certificate. - // +kubebuilder:validation:Optional - file?: [...#TLSValidationTrustFileParameters] @go(File,[]TLSValidationTrustFileParameters) - - // A Secret Discovery Service certificate. - // +kubebuilder:validation:Optional - sds?: [...#TLSValidationTrustSdsParameters] @go(Sds,[]TLSValidationTrustSdsParameters) -} - -#TLSValidationTrustSdsInitParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#TLSValidationTrustSdsObservation: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - secretName?: null | string @go(SecretName,*string) -} - -#TLSValidationTrustSdsParameters: { - // Name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. - // +kubebuilder:validation:Optional - secretName?: null | string @go(SecretName,*string) -} - -#TimeoutGRPCInitParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#GRPCIdleInitParameters] @go(Idle,[]GRPCIdleInitParameters) - - // Per request timeout. - perRequest?: [...#GRPCPerRequestInitParameters] @go(PerRequest,[]GRPCPerRequestInitParameters) -} - -#TimeoutGRPCObservation: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#GRPCIdleObservation] @go(Idle,[]GRPCIdleObservation) - - // Per request timeout. - perRequest?: [...#GRPCPerRequestObservation] @go(PerRequest,[]GRPCPerRequestObservation) -} - -#TimeoutGRPCParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - // +kubebuilder:validation:Optional - idle?: [...#GRPCIdleParameters] @go(Idle,[]GRPCIdleParameters) - - // Per request timeout. - // +kubebuilder:validation:Optional - perRequest?: [...#GRPCPerRequestParameters] @go(PerRequest,[]GRPCPerRequestParameters) -} - -#TimeoutHTTPInitParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#HTTPIdleInitParameters] @go(Idle,[]HTTPIdleInitParameters) - - // Per request timeout. - perRequest?: [...#HTTPPerRequestInitParameters] @go(PerRequest,[]HTTPPerRequestInitParameters) -} - -#TimeoutHTTPObservation: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#HTTPIdleObservation] @go(Idle,[]HTTPIdleObservation) - - // Per request timeout. - perRequest?: [...#HTTPPerRequestObservation] @go(PerRequest,[]HTTPPerRequestObservation) -} - -#TimeoutHTTPParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - // +kubebuilder:validation:Optional - idle?: [...#HTTPIdleParameters] @go(Idle,[]HTTPIdleParameters) - - // Per request timeout. - // +kubebuilder:validation:Optional - perRequest?: [...#HTTPPerRequestParameters] @go(PerRequest,[]HTTPPerRequestParameters) -} - -#TimeoutHttp2InitParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#Http2IdleInitParameters] @go(Idle,[]Http2IdleInitParameters) - - // Per request timeout. - perRequest?: [...#Http2PerRequestInitParameters] @go(PerRequest,[]Http2PerRequestInitParameters) -} - -#TimeoutHttp2Observation: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#Http2IdleObservation] @go(Idle,[]Http2IdleObservation) - - // Per request timeout. - perRequest?: [...#Http2PerRequestObservation] @go(PerRequest,[]Http2PerRequestObservation) -} - -#TimeoutHttp2Parameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - // +kubebuilder:validation:Optional - idle?: [...#Http2IdleParameters] @go(Idle,[]Http2IdleParameters) - - // Per request timeout. - // +kubebuilder:validation:Optional - perRequest?: [...#Http2PerRequestParameters] @go(PerRequest,[]Http2PerRequestParameters) -} - -#TimeoutTCPInitParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#TCPIdleInitParameters] @go(Idle,[]TCPIdleInitParameters) -} - -#TimeoutTCPObservation: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - idle?: [...#TCPIdleObservation] @go(Idle,[]TCPIdleObservation) -} - -#TimeoutTCPParameters: { - // Idle timeout. An idle timeout bounds the amount of time that a connection may be idle. - // +kubebuilder:validation:Optional - idle?: [...#TCPIdleParameters] @go(Idle,[]TCPIdleParameters) -} - -#TrustAcmInitParameters: { - // One or more ACM ARNs. - certificateAuthorityArns?: [...null | string] @go(CertificateAuthorityArns,[]*string) -} - -#TrustAcmObservation: { - // One or more ACM ARNs. - certificateAuthorityArns?: [...null | string] @go(CertificateAuthorityArns,[]*string) -} - -#TrustAcmParameters: { - // One or more ACM ARNs. - // +kubebuilder:validation:Optional - certificateAuthorityArns: [...null | string] @go(CertificateAuthorityArns,[]*string) -} - -#ValidationTrustAcmInitParameters: { - // One or more ACM ARNs. - certificateAuthorityArns?: [...null | string] @go(CertificateAuthorityArns,[]*string) -} - -#ValidationTrustAcmObservation: { - // One or more ACM ARNs. - certificateAuthorityArns?: [...null | string] @go(CertificateAuthorityArns,[]*string) -} - -#ValidationTrustAcmParameters: { - // One or more ACM ARNs. - // +kubebuilder:validation:Optional - certificateAuthorityArns: [...null | string] @go(CertificateAuthorityArns,[]*string) -} - -#VirtualNodeInitParameters: { - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the virtual node. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) - - // Virtual node specification to apply. - spec?: [...#VirtualNodeSpecInitParameters] @go(Spec,[]VirtualNodeSpecInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VirtualNodeObservation: { - // ARN of the virtual node. - arn?: null | string @go(Arn,*string) - - // Creation date of the virtual node. - createdDate?: null | string @go(CreatedDate,*string) - - // ID of the virtual node. - id?: null | string @go(ID,*string) - - // Last update date of the virtual node. - lastUpdatedDate?: null | string @go(LastUpdatedDate,*string) - - // Name of the service mesh in which to create the virtual node. Must be between 1 and 255 characters in length. - meshName?: null | string @go(MeshName,*string) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the virtual node. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) - - // Resource owner's AWS account ID. - resourceOwner?: null | string @go(ResourceOwner,*string) - - // Virtual node specification to apply. - spec?: [...#VirtualNodeSpecObservation] @go(Spec,[]VirtualNodeSpecObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VirtualNodeParameters: { - // Name of the service mesh in which to create the virtual node. Must be between 1 and 255 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appmesh/v1beta1.Mesh - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - meshName?: null | string @go(MeshName,*string) - - // Reference to a Mesh in appmesh to populate meshName. - // +kubebuilder:validation:Optional - meshNameRef?: null | v1.#Reference @go(MeshNameRef,*v1.Reference) - - // Selector for a Mesh in appmesh to populate meshName. - // +kubebuilder:validation:Optional - meshNameSelector?: null | v1.#Selector @go(MeshNameSelector,*v1.Selector) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - // +kubebuilder:validation:Optional - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the virtual node. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Virtual node specification to apply. - // +kubebuilder:validation:Optional - spec?: [...#VirtualNodeSpecParameters] @go(Spec,[]VirtualNodeSpecParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VirtualNodeSpecInitParameters: { - // Backends to which the virtual node is expected to send outbound traffic. - backend?: [...#BackendInitParameters] @go(Backend,[]BackendInitParameters) - - // Defaults for backends. - backendDefaults?: [...#SpecBackendDefaultsInitParameters] @go(BackendDefaults,[]SpecBackendDefaultsInitParameters) - - // Listeners from which the virtual node is expected to receive inbound traffic. - listener?: [...#SpecListenerInitParameters] @go(Listener,[]SpecListenerInitParameters) - - // Inbound and outbound access logging information for the virtual node. - logging?: [...#SpecLoggingInitParameters] @go(Logging,[]SpecLoggingInitParameters) - - // Service discovery information for the virtual node. - serviceDiscovery?: [...#ServiceDiscoveryInitParameters] @go(ServiceDiscovery,[]ServiceDiscoveryInitParameters) -} - -#VirtualNodeSpecObservation: { - // Backends to which the virtual node is expected to send outbound traffic. - backend?: [...#BackendObservation] @go(Backend,[]BackendObservation) - - // Defaults for backends. - backendDefaults?: [...#SpecBackendDefaultsObservation] @go(BackendDefaults,[]SpecBackendDefaultsObservation) - - // Listeners from which the virtual node is expected to receive inbound traffic. - listener?: [...#SpecListenerObservation] @go(Listener,[]SpecListenerObservation) - - // Inbound and outbound access logging information for the virtual node. - logging?: [...#SpecLoggingObservation] @go(Logging,[]SpecLoggingObservation) - - // Service discovery information for the virtual node. - serviceDiscovery?: [...#ServiceDiscoveryObservation] @go(ServiceDiscovery,[]ServiceDiscoveryObservation) -} - -#VirtualNodeSpecParameters: { - // Backends to which the virtual node is expected to send outbound traffic. - // +kubebuilder:validation:Optional - backend?: [...#BackendParameters] @go(Backend,[]BackendParameters) - - // Defaults for backends. - // +kubebuilder:validation:Optional - backendDefaults?: [...#SpecBackendDefaultsParameters] @go(BackendDefaults,[]SpecBackendDefaultsParameters) - - // Listeners from which the virtual node is expected to receive inbound traffic. - // +kubebuilder:validation:Optional - listener?: [...#SpecListenerParameters] @go(Listener,[]SpecListenerParameters) - - // Inbound and outbound access logging information for the virtual node. - // +kubebuilder:validation:Optional - logging?: [...#SpecLoggingParameters] @go(Logging,[]SpecLoggingParameters) - - // Service discovery information for the virtual node. - // +kubebuilder:validation:Optional - serviceDiscovery?: [...#ServiceDiscoveryParameters] @go(ServiceDiscovery,[]ServiceDiscoveryParameters) -} - -#VirtualServiceClientPolicyInitParameters: { - // Transport Layer Security (TLS) client policy. - tls?: [...#ClientPolicyTLSInitParameters] @go(TLS,[]ClientPolicyTLSInitParameters) -} - -#VirtualServiceClientPolicyObservation: { - // Transport Layer Security (TLS) client policy. - tls?: [...#ClientPolicyTLSObservation] @go(TLS,[]ClientPolicyTLSObservation) -} - -#VirtualServiceClientPolicyParameters: { - // Transport Layer Security (TLS) client policy. - // +kubebuilder:validation:Optional - tls?: [...#ClientPolicyTLSParameters] @go(TLS,[]ClientPolicyTLSParameters) -} - -// VirtualNodeSpec defines the desired state of VirtualNode -#VirtualNodeSpec: { - v1.#ResourceSpec - forProvider: #VirtualNodeParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VirtualNodeInitParameters @go(InitProvider) -} - -// VirtualNodeStatus defines the observed state of VirtualNode. -#VirtualNodeStatus: { - v1.#ResourceStatus - atProvider?: #VirtualNodeObservation @go(AtProvider) -} - -// VirtualNode is the Schema for the VirtualNodes API. Provides an AWS App Mesh virtual node resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VirtualNode: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.spec) || (has(self.initProvider) && has(self.initProvider.spec))",message="spec.forProvider.spec is a required parameter" - spec: #VirtualNodeSpec @go(Spec) - status?: #VirtualNodeStatus @go(Status) -} - -// VirtualNodeList contains a list of VirtualNodes -#VirtualNodeList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VirtualNode] @go(Items,[]VirtualNode) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_virtualrouter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_virtualrouter_types_go_gen.cue deleted file mode 100644 index 9b6d543..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_virtualrouter_types_go_gen.cue +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appmesh/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SpecListenerPortMappingInitParameters: { - // Port used for the port mapping. - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http,http2, tcp and grpc. - protocol?: null | string @go(Protocol,*string) -} - -#SpecListenerPortMappingObservation: { - // Port used for the port mapping. - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http,http2, tcp and grpc. - protocol?: null | string @go(Protocol,*string) -} - -#SpecListenerPortMappingParameters: { - // Port used for the port mapping. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Protocol used for the port mapping. Valid values are http,http2, tcp and grpc. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) -} - -#VirtualRouterInitParameters: { - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the virtual router. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) - - // Virtual router specification to apply. - spec?: [...#VirtualRouterSpecInitParameters] @go(Spec,[]VirtualRouterSpecInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VirtualRouterObservation: { - // ARN of the virtual router. - arn?: null | string @go(Arn,*string) - - // Creation date of the virtual router. - createdDate?: null | string @go(CreatedDate,*string) - - // ID of the virtual router. - id?: null | string @go(ID,*string) - - // Last update date of the virtual router. - lastUpdatedDate?: null | string @go(LastUpdatedDate,*string) - - // Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length. - meshName?: null | string @go(MeshName,*string) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the virtual router. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) - - // Resource owner's AWS account ID. - resourceOwner?: null | string @go(ResourceOwner,*string) - - // Virtual router specification to apply. - spec?: [...#VirtualRouterSpecObservation] @go(Spec,[]VirtualRouterSpecObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VirtualRouterParameters: { - // Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appmesh/v1beta1.Mesh - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - meshName?: null | string @go(MeshName,*string) - - // Reference to a Mesh in appmesh to populate meshName. - // +kubebuilder:validation:Optional - meshNameRef?: null | v1.#Reference @go(MeshNameRef,*v1.Reference) - - // Selector for a Mesh in appmesh to populate meshName. - // +kubebuilder:validation:Optional - meshNameSelector?: null | v1.#Selector @go(MeshNameSelector,*v1.Selector) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - // +kubebuilder:validation:Optional - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the virtual router. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Virtual router specification to apply. - // +kubebuilder:validation:Optional - spec?: [...#VirtualRouterSpecParameters] @go(Spec,[]VirtualRouterSpecParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VirtualRouterSpecInitParameters: { - // configuration block to the spec argument. - listener?: [...#VirtualRouterSpecListenerInitParameters] @go(Listener,[]VirtualRouterSpecListenerInitParameters) -} - -#VirtualRouterSpecListenerInitParameters: { - // Port mapping information for the listener. - portMapping?: [...#SpecListenerPortMappingInitParameters] @go(PortMapping,[]SpecListenerPortMappingInitParameters) -} - -#VirtualRouterSpecListenerObservation: { - // Port mapping information for the listener. - portMapping?: [...#SpecListenerPortMappingObservation] @go(PortMapping,[]SpecListenerPortMappingObservation) -} - -#VirtualRouterSpecListenerParameters: { - // Port mapping information for the listener. - // +kubebuilder:validation:Optional - portMapping: [...#SpecListenerPortMappingParameters] @go(PortMapping,[]SpecListenerPortMappingParameters) -} - -#VirtualRouterSpecObservation: { - // configuration block to the spec argument. - listener?: [...#VirtualRouterSpecListenerObservation] @go(Listener,[]VirtualRouterSpecListenerObservation) -} - -#VirtualRouterSpecParameters: { - // configuration block to the spec argument. - // +kubebuilder:validation:Optional - listener?: [...#VirtualRouterSpecListenerParameters] @go(Listener,[]VirtualRouterSpecListenerParameters) -} - -// VirtualRouterSpec defines the desired state of VirtualRouter -#VirtualRouterSpec: { - v1.#ResourceSpec - forProvider: #VirtualRouterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VirtualRouterInitParameters @go(InitProvider) -} - -// VirtualRouterStatus defines the observed state of VirtualRouter. -#VirtualRouterStatus: { - v1.#ResourceStatus - atProvider?: #VirtualRouterObservation @go(AtProvider) -} - -// VirtualRouter is the Schema for the VirtualRouters API. Provides an AWS App Mesh virtual router resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VirtualRouter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.spec) || (has(self.initProvider) && has(self.initProvider.spec))",message="spec.forProvider.spec is a required parameter" - spec: #VirtualRouterSpec @go(Spec) - status?: #VirtualRouterStatus @go(Status) -} - -// VirtualRouterList contains a list of VirtualRouters -#VirtualRouterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VirtualRouter] @go(Items,[]VirtualRouter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_virtualservice_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_virtualservice_types_go_gen.cue deleted file mode 100644 index b158efd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appmesh/v1beta1/zz_virtualservice_types_go_gen.cue +++ /dev/null @@ -1,234 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appmesh/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ProviderInitParameters: { - // Virtual node associated with a virtual service. - virtualNode?: [...#ProviderVirtualNodeInitParameters] @go(VirtualNode,[]ProviderVirtualNodeInitParameters) - - // Virtual router associated with a virtual service. - virtualRouter?: [...#ProviderVirtualRouterInitParameters] @go(VirtualRouter,[]ProviderVirtualRouterInitParameters) -} - -#ProviderObservation: { - // Virtual node associated with a virtual service. - virtualNode?: [...#ProviderVirtualNodeObservation] @go(VirtualNode,[]ProviderVirtualNodeObservation) - - // Virtual router associated with a virtual service. - virtualRouter?: [...#ProviderVirtualRouterObservation] @go(VirtualRouter,[]ProviderVirtualRouterObservation) -} - -#ProviderParameters: { - // Virtual node associated with a virtual service. - // +kubebuilder:validation:Optional - virtualNode?: [...#ProviderVirtualNodeParameters] @go(VirtualNode,[]ProviderVirtualNodeParameters) - - // Virtual router associated with a virtual service. - // +kubebuilder:validation:Optional - virtualRouter?: [...#ProviderVirtualRouterParameters] @go(VirtualRouter,[]ProviderVirtualRouterParameters) -} - -#ProviderVirtualNodeInitParameters: { -} - -#ProviderVirtualNodeObservation: { - // Name of the virtual node that is acting as a service provider. Must be between 1 and 255 characters in length. - virtualNodeName?: null | string @go(VirtualNodeName,*string) -} - -#ProviderVirtualNodeParameters: { - // Name of the virtual node that is acting as a service provider. Must be between 1 and 255 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appmesh/v1beta1.VirtualNode - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - virtualNodeName?: null | string @go(VirtualNodeName,*string) - - // Reference to a VirtualNode in appmesh to populate virtualNodeName. - // +kubebuilder:validation:Optional - virtualNodeNameRef?: null | v1.#Reference @go(VirtualNodeNameRef,*v1.Reference) - - // Selector for a VirtualNode in appmesh to populate virtualNodeName. - // +kubebuilder:validation:Optional - virtualNodeNameSelector?: null | v1.#Selector @go(VirtualNodeNameSelector,*v1.Selector) -} - -#ProviderVirtualRouterInitParameters: { -} - -#ProviderVirtualRouterObservation: { - // Name of the virtual router that is acting as a service provider. Must be between 1 and 255 characters in length. - virtualRouterName?: null | string @go(VirtualRouterName,*string) -} - -#ProviderVirtualRouterParameters: { - // Name of the virtual router that is acting as a service provider. Must be between 1 and 255 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appmesh/v1beta1.VirtualRouter - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - virtualRouterName?: null | string @go(VirtualRouterName,*string) - - // Reference to a VirtualRouter in appmesh to populate virtualRouterName. - // +kubebuilder:validation:Optional - virtualRouterNameRef?: null | v1.#Reference @go(VirtualRouterNameRef,*v1.Reference) - - // Selector for a VirtualRouter in appmesh to populate virtualRouterName. - // +kubebuilder:validation:Optional - virtualRouterNameSelector?: null | v1.#Selector @go(VirtualRouterNameSelector,*v1.Selector) -} - -#VirtualServiceInitParameters_2: { - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the virtual service. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) - - // Virtual service specification to apply. - spec?: [...#VirtualServiceSpecInitParameters] @go(Spec,[]VirtualServiceSpecInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VirtualServiceObservation_2: { - // ARN of the virtual service. - arn?: null | string @go(Arn,*string) - - // Creation date of the virtual service. - createdDate?: null | string @go(CreatedDate,*string) - - // ID of the virtual service. - id?: null | string @go(ID,*string) - - // Last update date of the virtual service. - lastUpdatedDate?: null | string @go(LastUpdatedDate,*string) - - // Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length. - meshName?: null | string @go(MeshName,*string) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the virtual service. Must be between 1 and 255 characters in length. - name?: null | string @go(Name,*string) - - // Resource owner's AWS account ID. - resourceOwner?: null | string @go(ResourceOwner,*string) - - // Virtual service specification to apply. - spec?: [...#VirtualServiceSpecObservation] @go(Spec,[]VirtualServiceSpecObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VirtualServiceParameters_2: { - // Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appmesh/v1beta1.Mesh - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - meshName?: null | string @go(MeshName,*string) - - // Reference to a Mesh in appmesh to populate meshName. - // +kubebuilder:validation:Optional - meshNameRef?: null | v1.#Reference @go(MeshNameRef,*v1.Reference) - - // Selector for a Mesh in appmesh to populate meshName. - // +kubebuilder:validation:Optional - meshNameSelector?: null | v1.#Selector @go(MeshNameSelector,*v1.Selector) - - // AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to. - // +kubebuilder:validation:Optional - meshOwner?: null | string @go(MeshOwner,*string) - - // Name to use for the virtual service. Must be between 1 and 255 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Virtual service specification to apply. - // +kubebuilder:validation:Optional - spec?: [...#VirtualServiceSpecParameters] @go(Spec,[]VirtualServiceSpecParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VirtualServiceSpecInitParameters: { - // App Mesh object that is acting as the provider for a virtual service. You can specify a single virtual node or virtual router. - provider?: [...#ProviderInitParameters] @go(Provider,[]ProviderInitParameters) -} - -#VirtualServiceSpecObservation: { - // App Mesh object that is acting as the provider for a virtual service. You can specify a single virtual node or virtual router. - provider?: [...#ProviderObservation] @go(Provider,[]ProviderObservation) -} - -#VirtualServiceSpecParameters: { - // App Mesh object that is acting as the provider for a virtual service. You can specify a single virtual node or virtual router. - // +kubebuilder:validation:Optional - provider?: [...#ProviderParameters] @go(Provider,[]ProviderParameters) -} - -// VirtualServiceSpec defines the desired state of VirtualService -#VirtualServiceSpec: { - v1.#ResourceSpec - forProvider: #VirtualServiceParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VirtualServiceInitParameters_2 @go(InitProvider) -} - -// VirtualServiceStatus defines the observed state of VirtualService. -#VirtualServiceStatus: { - v1.#ResourceStatus - atProvider?: #VirtualServiceObservation_2 @go(AtProvider) -} - -// VirtualService is the Schema for the VirtualServices API. Provides an AWS App Mesh virtual service resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VirtualService: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.spec) || (has(self.initProvider) && has(self.initProvider.spec))",message="spec.forProvider.spec is a required parameter" - spec: #VirtualServiceSpec @go(Spec) - status?: #VirtualServiceStatus @go(Status) -} - -// VirtualServiceList contains a list of VirtualServices -#VirtualServiceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VirtualService] @go(Items,[]VirtualService) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_autoscalingconfigurationversion_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_autoscalingconfigurationversion_types_go_gen.cue deleted file mode 100644 index c5bd937..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_autoscalingconfigurationversion_types_go_gen.cue +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apprunner/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AutoScalingConfigurationVersionInitParameters: { - // Name of the auto scaling configuration. - autoScalingConfigurationName?: null | string @go(AutoScalingConfigurationName,*string) - - // Maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service. - maxConcurrency?: null | float64 @go(MaxConcurrency,*float64) - - // Maximal number of instances that App Runner provisions for your service. - maxSize?: null | float64 @go(MaxSize,*float64) - - // Minimal number of instances that App Runner provisions for your service. - minSize?: null | float64 @go(MinSize,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AutoScalingConfigurationVersionObservation: { - // ARN of this auto scaling configuration version. - arn?: null | string @go(Arn,*string) - - // Name of the auto scaling configuration. - autoScalingConfigurationName?: null | string @go(AutoScalingConfigurationName,*string) - - // The revision of this auto scaling configuration. - autoScalingConfigurationRevision?: null | float64 @go(AutoScalingConfigurationRevision,*float64) - id?: null | string @go(ID,*string) - - // Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name. - latest?: null | bool @go(Latest,*bool) - - // Maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service. - maxConcurrency?: null | float64 @go(MaxConcurrency,*float64) - - // Maximal number of instances that App Runner provisions for your service. - maxSize?: null | float64 @go(MaxSize,*float64) - - // Minimal number of instances that App Runner provisions for your service. - minSize?: null | float64 @go(MinSize,*float64) - - // Current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#AutoScalingConfigurationVersionParameters: { - // Name of the auto scaling configuration. - // +kubebuilder:validation:Optional - autoScalingConfigurationName?: null | string @go(AutoScalingConfigurationName,*string) - - // Maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service. - // +kubebuilder:validation:Optional - maxConcurrency?: null | float64 @go(MaxConcurrency,*float64) - - // Maximal number of instances that App Runner provisions for your service. - // +kubebuilder:validation:Optional - maxSize?: null | float64 @go(MaxSize,*float64) - - // Minimal number of instances that App Runner provisions for your service. - // +kubebuilder:validation:Optional - minSize?: null | float64 @go(MinSize,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// AutoScalingConfigurationVersionSpec defines the desired state of AutoScalingConfigurationVersion -#AutoScalingConfigurationVersionSpec: { - v1.#ResourceSpec - forProvider: #AutoScalingConfigurationVersionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AutoScalingConfigurationVersionInitParameters @go(InitProvider) -} - -// AutoScalingConfigurationVersionStatus defines the observed state of AutoScalingConfigurationVersion. -#AutoScalingConfigurationVersionStatus: { - v1.#ResourceStatus - atProvider?: #AutoScalingConfigurationVersionObservation @go(AtProvider) -} - -// AutoScalingConfigurationVersion is the Schema for the AutoScalingConfigurationVersions API. Manages an App Runner AutoScaling Configuration Version. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AutoScalingConfigurationVersion: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.autoScalingConfigurationName) || (has(self.initProvider) && has(self.initProvider.autoScalingConfigurationName))",message="spec.forProvider.autoScalingConfigurationName is a required parameter" - spec: #AutoScalingConfigurationVersionSpec @go(Spec) - status?: #AutoScalingConfigurationVersionStatus @go(Status) -} - -// AutoScalingConfigurationVersionList contains a list of AutoScalingConfigurationVersions -#AutoScalingConfigurationVersionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AutoScalingConfigurationVersion] @go(Items,[]AutoScalingConfigurationVersion) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_connection_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_connection_types_go_gen.cue deleted file mode 100644 index 0a7eb32..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_connection_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apprunner/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConnectionInitParameters: { - // Source repository provider. Valid values: GITHUB. - providerType?: null | string @go(ProviderType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ConnectionObservation: { - // ARN of the connection. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // Source repository provider. Valid values: GITHUB. - providerType?: null | string @go(ProviderType,*string) - - // Current state of the App Runner connection. When the state is AVAILABLE, you can use the connection to create an aws_apprunner_service resource. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ConnectionParameters: { - // Source repository provider. Valid values: GITHUB. - // +kubebuilder:validation:Optional - providerType?: null | string @go(ProviderType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ConnectionSpec defines the desired state of Connection -#ConnectionSpec: { - v1.#ResourceSpec - forProvider: #ConnectionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConnectionInitParameters @go(InitProvider) -} - -// ConnectionStatus defines the observed state of Connection. -#ConnectionStatus: { - v1.#ResourceStatus - atProvider?: #ConnectionObservation @go(AtProvider) -} - -// Connection is the Schema for the Connections API. Manages an App Runner Connection. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Connection: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.providerType) || (has(self.initProvider) && has(self.initProvider.providerType))",message="spec.forProvider.providerType is a required parameter" - spec: #ConnectionSpec @go(Spec) - status?: #ConnectionStatus @go(Status) -} - -// ConnectionList contains a list of Connections -#ConnectionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Connection] @go(Items,[]Connection) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 6692def..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apprunner/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=apprunner.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "apprunner.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_observabilityconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_observabilityconfiguration_types_go_gen.cue deleted file mode 100644 index faa539d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_observabilityconfiguration_types_go_gen.cue +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apprunner/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ObservabilityConfigurationInitParameters: { - // Name of the observability configuration. - observabilityConfigurationName?: null | string @go(ObservabilityConfigurationName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing. See Trace Configuration below for more details. - traceConfiguration?: [...#TraceConfigurationInitParameters] @go(TraceConfiguration,[]TraceConfigurationInitParameters) -} - -#ObservabilityConfigurationObservation: { - // ARN of this observability configuration. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // Whether the observability configuration has the highest observability_configuration_revision among all configurations that share the same observability_configuration_name. - latest?: null | bool @go(Latest,*bool) - - // Name of the observability configuration. - observabilityConfigurationName?: null | string @go(ObservabilityConfigurationName,*string) - - // The revision of this observability configuration. - observabilityConfigurationRevision?: null | float64 @go(ObservabilityConfigurationRevision,*float64) - - // Current state of the observability configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing. See Trace Configuration below for more details. - traceConfiguration?: [...#TraceConfigurationObservation] @go(TraceConfiguration,[]TraceConfigurationObservation) -} - -#ObservabilityConfigurationParameters: { - // Name of the observability configuration. - // +kubebuilder:validation:Optional - observabilityConfigurationName?: null | string @go(ObservabilityConfigurationName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing. See Trace Configuration below for more details. - // +kubebuilder:validation:Optional - traceConfiguration?: [...#TraceConfigurationParameters] @go(TraceConfiguration,[]TraceConfigurationParameters) -} - -#TraceConfigurationInitParameters: { - // Implementation provider chosen for tracing App Runner services. Valid values: AWSXRAY. - vendor?: null | string @go(Vendor,*string) -} - -#TraceConfigurationObservation: { - // Implementation provider chosen for tracing App Runner services. Valid values: AWSXRAY. - vendor?: null | string @go(Vendor,*string) -} - -#TraceConfigurationParameters: { - // Implementation provider chosen for tracing App Runner services. Valid values: AWSXRAY. - // +kubebuilder:validation:Optional - vendor?: null | string @go(Vendor,*string) -} - -// ObservabilityConfigurationSpec defines the desired state of ObservabilityConfiguration -#ObservabilityConfigurationSpec: { - v1.#ResourceSpec - forProvider: #ObservabilityConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ObservabilityConfigurationInitParameters @go(InitProvider) -} - -// ObservabilityConfigurationStatus defines the observed state of ObservabilityConfiguration. -#ObservabilityConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #ObservabilityConfigurationObservation @go(AtProvider) -} - -// ObservabilityConfiguration is the Schema for the ObservabilityConfigurations API. Manages an App Runner Observability Configuration. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ObservabilityConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.observabilityConfigurationName) || (has(self.initProvider) && has(self.initProvider.observabilityConfigurationName))",message="spec.forProvider.observabilityConfigurationName is a required parameter" - spec: #ObservabilityConfigurationSpec @go(Spec) - status?: #ObservabilityConfigurationStatus @go(Status) -} - -// ObservabilityConfigurationList contains a list of ObservabilityConfigurations -#ObservabilityConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ObservabilityConfiguration] @go(Items,[]ObservabilityConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_service_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_service_types_go_gen.cue deleted file mode 100644 index 473c7ad..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_service_types_go_gen.cue +++ /dev/null @@ -1,719 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apprunner/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AuthenticationConfigurationInitParameters: { - // ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public) - accessRoleArn?: null | string @go(AccessRoleArn,*string) -} - -#AuthenticationConfigurationObservation: { - // ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public) - accessRoleArn?: null | string @go(AccessRoleArn,*string) - - // ARN of the App Runner connection that enables the App Runner service to connect to a source repository. Required for GitHub code repositories. - connectionArn?: null | string @go(ConnectionArn,*string) -} - -#AuthenticationConfigurationParameters: { - // ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public) - // +kubebuilder:validation:Optional - accessRoleArn?: null | string @go(AccessRoleArn,*string) - - // ARN of the App Runner connection that enables the App Runner service to connect to a source repository. Required for GitHub code repositories. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apprunner/v1beta1.Connection - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - connectionArn?: null | string @go(ConnectionArn,*string) - - // Reference to a Connection in apprunner to populate connectionArn. - // +kubebuilder:validation:Optional - connectionArnRef?: null | v1.#Reference @go(ConnectionArnRef,*v1.Reference) - - // Selector for a Connection in apprunner to populate connectionArn. - // +kubebuilder:validation:Optional - connectionArnSelector?: null | v1.#Selector @go(ConnectionArnSelector,*v1.Selector) -} - -#CodeConfigurationInitParameters: { - // Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details. - codeConfigurationValues?: [...#CodeConfigurationValuesInitParameters] @go(CodeConfigurationValues,[]CodeConfigurationValuesInitParameters) - - // Source of the App Runner configuration. Valid values: REPOSITORY, API. Values are interpreted as follows: - configurationSource?: null | string @go(ConfigurationSource,*string) -} - -#CodeConfigurationObservation: { - // Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details. - codeConfigurationValues?: [...#CodeConfigurationValuesObservation] @go(CodeConfigurationValues,[]CodeConfigurationValuesObservation) - - // Source of the App Runner configuration. Valid values: REPOSITORY, API. Values are interpreted as follows: - configurationSource?: null | string @go(ConfigurationSource,*string) -} - -#CodeConfigurationParameters: { - // Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details. - // +kubebuilder:validation:Optional - codeConfigurationValues?: [...#CodeConfigurationValuesParameters] @go(CodeConfigurationValues,[]CodeConfigurationValuesParameters) - - // Source of the App Runner configuration. Valid values: REPOSITORY, API. Values are interpreted as follows: - // +kubebuilder:validation:Optional - configurationSource?: null | string @go(ConfigurationSource,*string) -} - -#CodeConfigurationValuesInitParameters: { - // Command App Runner runs to build your application. - buildCommand?: null | string @go(BuildCommand,*string) - - // Port that your application listens to in the container. Defaults to "8080". - port?: null | string @go(Port,*string) - - // Runtime environment type for building and running an App Runner service. Represents a programming language runtime. Valid values: PYTHON_3, NODEJS_12, NODEJS_14, NODEJS_16, CORRETTO_8, CORRETTO_11, GO_1, DOTNET_6, PHP_81, RUBY_31. - runtime?: null | string @go(Runtime,*string) - - // Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store. - runtimeEnvironmentSecrets?: {[string]: null | string} @go(RuntimeEnvironmentSecrets,map[string]*string) - - // Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid. - runtimeEnvironmentVariables?: {[string]: null | string} @go(RuntimeEnvironmentVariables,map[string]*string) - - // Command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command. - startCommand?: null | string @go(StartCommand,*string) -} - -#CodeConfigurationValuesObservation: { - // Command App Runner runs to build your application. - buildCommand?: null | string @go(BuildCommand,*string) - - // Port that your application listens to in the container. Defaults to "8080". - port?: null | string @go(Port,*string) - - // Runtime environment type for building and running an App Runner service. Represents a programming language runtime. Valid values: PYTHON_3, NODEJS_12, NODEJS_14, NODEJS_16, CORRETTO_8, CORRETTO_11, GO_1, DOTNET_6, PHP_81, RUBY_31. - runtime?: null | string @go(Runtime,*string) - - // Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store. - runtimeEnvironmentSecrets?: {[string]: null | string} @go(RuntimeEnvironmentSecrets,map[string]*string) - - // Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid. - runtimeEnvironmentVariables?: {[string]: null | string} @go(RuntimeEnvironmentVariables,map[string]*string) - - // Command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command. - startCommand?: null | string @go(StartCommand,*string) -} - -#CodeConfigurationValuesParameters: { - // Command App Runner runs to build your application. - // +kubebuilder:validation:Optional - buildCommand?: null | string @go(BuildCommand,*string) - - // Port that your application listens to in the container. Defaults to "8080". - // +kubebuilder:validation:Optional - port?: null | string @go(Port,*string) - - // Runtime environment type for building and running an App Runner service. Represents a programming language runtime. Valid values: PYTHON_3, NODEJS_12, NODEJS_14, NODEJS_16, CORRETTO_8, CORRETTO_11, GO_1, DOTNET_6, PHP_81, RUBY_31. - // +kubebuilder:validation:Optional - runtime?: null | string @go(Runtime,*string) - - // Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store. - // +kubebuilder:validation:Optional - runtimeEnvironmentSecrets?: {[string]: null | string} @go(RuntimeEnvironmentSecrets,map[string]*string) - - // Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid. - // +kubebuilder:validation:Optional - runtimeEnvironmentVariables?: {[string]: null | string} @go(RuntimeEnvironmentVariables,map[string]*string) - - // Command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command. - // +kubebuilder:validation:Optional - startCommand?: null | string @go(StartCommand,*string) -} - -#CodeRepositoryInitParameters: { - // Configuration for building and running the service from a source code repository. See Code Configuration below for more details. - codeConfiguration?: [...#CodeConfigurationInitParameters] @go(CodeConfiguration,[]CodeConfigurationInitParameters) - - // Location of the repository that contains the source code. - repositoryUrl?: null | string @go(RepositoryURL,*string) - - // Version that should be used within the source code repository. See Source Code Version below for more details. - sourceCodeVersion?: [...#SourceCodeVersionInitParameters] @go(SourceCodeVersion,[]SourceCodeVersionInitParameters) -} - -#CodeRepositoryObservation: { - // Configuration for building and running the service from a source code repository. See Code Configuration below for more details. - codeConfiguration?: [...#CodeConfigurationObservation] @go(CodeConfiguration,[]CodeConfigurationObservation) - - // Location of the repository that contains the source code. - repositoryUrl?: null | string @go(RepositoryURL,*string) - - // Version that should be used within the source code repository. See Source Code Version below for more details. - sourceCodeVersion?: [...#SourceCodeVersionObservation] @go(SourceCodeVersion,[]SourceCodeVersionObservation) -} - -#CodeRepositoryParameters: { - // Configuration for building and running the service from a source code repository. See Code Configuration below for more details. - // +kubebuilder:validation:Optional - codeConfiguration?: [...#CodeConfigurationParameters] @go(CodeConfiguration,[]CodeConfigurationParameters) - - // Location of the repository that contains the source code. - // +kubebuilder:validation:Optional - repositoryUrl?: null | string @go(RepositoryURL,*string) - - // Version that should be used within the source code repository. See Source Code Version below for more details. - // +kubebuilder:validation:Optional - sourceCodeVersion: [...#SourceCodeVersionParameters] @go(SourceCodeVersion,[]SourceCodeVersionParameters) -} - -#EgressConfigurationInitParameters: { - // Type of egress configuration.Set to DEFAULT for access to resources hosted on public networks.Set to VPC to associate your service to a custom VPC specified by VpcConnectorArn. - egressType?: null | string @go(EgressType,*string) -} - -#EgressConfigurationObservation: { - // Type of egress configuration.Set to DEFAULT for access to resources hosted on public networks.Set to VPC to associate your service to a custom VPC specified by VpcConnectorArn. - egressType?: null | string @go(EgressType,*string) - - // ARN of the App Runner VPC connector that you want to associate with your App Runner service. Only valid when EgressType = VPC. - vpcConnectorArn?: null | string @go(VPCConnectorArn,*string) -} - -#EgressConfigurationParameters: { - // Type of egress configuration.Set to DEFAULT for access to resources hosted on public networks.Set to VPC to associate your service to a custom VPC specified by VpcConnectorArn. - // +kubebuilder:validation:Optional - egressType?: null | string @go(EgressType,*string) - - // ARN of the App Runner VPC connector that you want to associate with your App Runner service. Only valid when EgressType = VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apprunner/v1beta1.VPCConnector - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - vpcConnectorArn?: null | string @go(VPCConnectorArn,*string) - - // Reference to a VPCConnector in apprunner to populate vpcConnectorArn. - // +kubebuilder:validation:Optional - vpcConnectorArnRef?: null | v1.#Reference @go(VPCConnectorArnRef,*v1.Reference) - - // Selector for a VPCConnector in apprunner to populate vpcConnectorArn. - // +kubebuilder:validation:Optional - vpcConnectorArnSelector?: null | v1.#Selector @go(VPCConnectorArnSelector,*v1.Selector) -} - -#EncryptionConfigurationInitParameters: { - // ARN of the KMS key used for encryption. - kmsKey?: null | string @go(KMSKey,*string) -} - -#EncryptionConfigurationObservation: { - // ARN of the KMS key used for encryption. - kmsKey?: null | string @go(KMSKey,*string) -} - -#EncryptionConfigurationParameters: { - // ARN of the KMS key used for encryption. - // +kubebuilder:validation:Optional - kmsKey?: null | string @go(KMSKey,*string) -} - -#HealthCheckConfigurationInitParameters: { - // Number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20. - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // Time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20. - interval?: null | float64 @go(Interval,*float64) - - // URL to send requests to for health checks. Defaults to /. Minimum length of 0. Maximum length of 51200. - path?: null | string @go(Path,*string) - - // IP protocol that App Runner uses to perform health checks for your service. Valid values: TCP, HTTP. Defaults to TCP. If you set protocol to HTTP, App Runner sends health check requests to the HTTP path specified by path. - protocol?: null | string @go(Protocol,*string) - - // Time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20. - timeout?: null | float64 @go(Timeout,*float64) - - // Number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20. - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#HealthCheckConfigurationObservation: { - // Number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20. - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // Time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20. - interval?: null | float64 @go(Interval,*float64) - - // URL to send requests to for health checks. Defaults to /. Minimum length of 0. Maximum length of 51200. - path?: null | string @go(Path,*string) - - // IP protocol that App Runner uses to perform health checks for your service. Valid values: TCP, HTTP. Defaults to TCP. If you set protocol to HTTP, App Runner sends health check requests to the HTTP path specified by path. - protocol?: null | string @go(Protocol,*string) - - // Time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20. - timeout?: null | float64 @go(Timeout,*float64) - - // Number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20. - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#HealthCheckConfigurationParameters: { - // Number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20. - // +kubebuilder:validation:Optional - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // Time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20. - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) - - // URL to send requests to for health checks. Defaults to /. Minimum length of 0. Maximum length of 51200. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // IP protocol that App Runner uses to perform health checks for your service. Valid values: TCP, HTTP. Defaults to TCP. If you set protocol to HTTP, App Runner sends health check requests to the HTTP path specified by path. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20. - // +kubebuilder:validation:Optional - timeout?: null | float64 @go(Timeout,*float64) - - // Number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20. - // +kubebuilder:validation:Optional - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#ImageConfigurationInitParameters: { - // Port that your application listens to in the container. Defaults to "8080". - port?: null | string @go(Port,*string) - - // Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store. - runtimeEnvironmentSecrets?: {[string]: null | string} @go(RuntimeEnvironmentSecrets,map[string]*string) - - // Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid. - runtimeEnvironmentVariables?: {[string]: null | string} @go(RuntimeEnvironmentVariables,map[string]*string) - - // Command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command. - startCommand?: null | string @go(StartCommand,*string) -} - -#ImageConfigurationObservation: { - // Port that your application listens to in the container. Defaults to "8080". - port?: null | string @go(Port,*string) - - // Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store. - runtimeEnvironmentSecrets?: {[string]: null | string} @go(RuntimeEnvironmentSecrets,map[string]*string) - - // Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid. - runtimeEnvironmentVariables?: {[string]: null | string} @go(RuntimeEnvironmentVariables,map[string]*string) - - // Command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command. - startCommand?: null | string @go(StartCommand,*string) -} - -#ImageConfigurationParameters: { - // Port that your application listens to in the container. Defaults to "8080". - // +kubebuilder:validation:Optional - port?: null | string @go(Port,*string) - - // Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store. - // +kubebuilder:validation:Optional - runtimeEnvironmentSecrets?: {[string]: null | string} @go(RuntimeEnvironmentSecrets,map[string]*string) - - // Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid. - // +kubebuilder:validation:Optional - runtimeEnvironmentVariables?: {[string]: null | string} @go(RuntimeEnvironmentVariables,map[string]*string) - - // Command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command. - // +kubebuilder:validation:Optional - startCommand?: null | string @go(StartCommand,*string) -} - -#ImageRepositoryInitParameters: { - // Configuration for running the identified image. See Image Configuration below for more details. - imageConfiguration?: [...#ImageConfigurationInitParameters] @go(ImageConfiguration,[]ImageConfigurationInitParameters) - - // Identifier of an image. For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the - // image name format, see Pulling an image in the Amazon ECR User Guide. - imageIdentifier?: null | string @go(ImageIdentifier,*string) - - // Type of the image repository. This reflects the repository provider and whether the repository is private or public. Valid values: ECR , ECR_PUBLIC. - imageRepositoryType?: null | string @go(ImageRepositoryType,*string) -} - -#ImageRepositoryObservation: { - // Configuration for running the identified image. See Image Configuration below for more details. - imageConfiguration?: [...#ImageConfigurationObservation] @go(ImageConfiguration,[]ImageConfigurationObservation) - - // Identifier of an image. For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the - // image name format, see Pulling an image in the Amazon ECR User Guide. - imageIdentifier?: null | string @go(ImageIdentifier,*string) - - // Type of the image repository. This reflects the repository provider and whether the repository is private or public. Valid values: ECR , ECR_PUBLIC. - imageRepositoryType?: null | string @go(ImageRepositoryType,*string) -} - -#ImageRepositoryParameters: { - // Configuration for running the identified image. See Image Configuration below for more details. - // +kubebuilder:validation:Optional - imageConfiguration?: [...#ImageConfigurationParameters] @go(ImageConfiguration,[]ImageConfigurationParameters) - - // Identifier of an image. For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the - // image name format, see Pulling an image in the Amazon ECR User Guide. - // +kubebuilder:validation:Optional - imageIdentifier?: null | string @go(ImageIdentifier,*string) - - // Type of the image repository. This reflects the repository provider and whether the repository is private or public. Valid values: ECR , ECR_PUBLIC. - // +kubebuilder:validation:Optional - imageRepositoryType?: null | string @go(ImageRepositoryType,*string) -} - -#IngressConfigurationInitParameters: { - // Specifies whether your App Runner service is publicly accessible. To make the service publicly accessible set it to True. To make the service privately accessible, from only within an Amazon VPC set it to False. - isPubliclyAccessible?: null | bool @go(IsPubliclyAccessible,*bool) -} - -#IngressConfigurationObservation: { - // Specifies whether your App Runner service is publicly accessible. To make the service publicly accessible set it to True. To make the service privately accessible, from only within an Amazon VPC set it to False. - isPubliclyAccessible?: null | bool @go(IsPubliclyAccessible,*bool) -} - -#IngressConfigurationParameters: { - // Specifies whether your App Runner service is publicly accessible. To make the service publicly accessible set it to True. To make the service privately accessible, from only within an Amazon VPC set it to False. - // +kubebuilder:validation:Optional - isPubliclyAccessible?: null | bool @go(IsPubliclyAccessible,*bool) -} - -#InstanceConfigurationInitParameters: { - // Number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to 1024. Valid values: 256|512|1024|2048|4096|(0.25|0.5|1|2|4) vCPU. - cpu?: null | string @go(CPU,*string) - - // ARN of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs. - instanceRoleArn?: null | string @go(InstanceRoleArn,*string) - - // Amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to 2048. Valid values: 512|1024|2048|3072|4096|6144|8192|10240|12288|(0.5|1|2|3|4|6|8|10|12) GB. - memory?: null | string @go(Memory,*string) -} - -#InstanceConfigurationObservation: { - // Number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to 1024. Valid values: 256|512|1024|2048|4096|(0.25|0.5|1|2|4) vCPU. - cpu?: null | string @go(CPU,*string) - - // ARN of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs. - instanceRoleArn?: null | string @go(InstanceRoleArn,*string) - - // Amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to 2048. Valid values: 512|1024|2048|3072|4096|6144|8192|10240|12288|(0.5|1|2|3|4|6|8|10|12) GB. - memory?: null | string @go(Memory,*string) -} - -#InstanceConfigurationParameters: { - // Number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to 1024. Valid values: 256|512|1024|2048|4096|(0.25|0.5|1|2|4) vCPU. - // +kubebuilder:validation:Optional - cpu?: null | string @go(CPU,*string) - - // ARN of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs. - // +kubebuilder:validation:Optional - instanceRoleArn?: null | string @go(InstanceRoleArn,*string) - - // Amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to 2048. Valid values: 512|1024|2048|3072|4096|6144|8192|10240|12288|(0.5|1|2|3|4|6|8|10|12) GB. - // +kubebuilder:validation:Optional - memory?: null | string @go(Memory,*string) -} - -#NetworkConfigurationInitParameters: { - // Network configuration settings for outbound message traffic. See Egress Configuration below for more details. - egressConfiguration?: [...#EgressConfigurationInitParameters] @go(EgressConfiguration,[]EgressConfigurationInitParameters) - - // Network configuration settings for inbound network traffic. See Ingress Configuration below for more details. - ingressConfiguration?: [...#IngressConfigurationInitParameters] @go(IngressConfiguration,[]IngressConfigurationInitParameters) -} - -#NetworkConfigurationObservation: { - // Network configuration settings for outbound message traffic. See Egress Configuration below for more details. - egressConfiguration?: [...#EgressConfigurationObservation] @go(EgressConfiguration,[]EgressConfigurationObservation) - - // Network configuration settings for inbound network traffic. See Ingress Configuration below for more details. - ingressConfiguration?: [...#IngressConfigurationObservation] @go(IngressConfiguration,[]IngressConfigurationObservation) -} - -#NetworkConfigurationParameters: { - // Network configuration settings for outbound message traffic. See Egress Configuration below for more details. - // +kubebuilder:validation:Optional - egressConfiguration?: [...#EgressConfigurationParameters] @go(EgressConfiguration,[]EgressConfigurationParameters) - - // Network configuration settings for inbound network traffic. See Ingress Configuration below for more details. - // +kubebuilder:validation:Optional - ingressConfiguration?: [...#IngressConfigurationParameters] @go(IngressConfiguration,[]IngressConfigurationParameters) -} - -#ServiceInitParameters: { - // ARN of an App Runner automatic scaling configuration resource that you want to associate with your service. If not provided, App Runner associates the latest revision of a default auto scaling configuration. - autoScalingConfigurationArn?: null | string @go(AutoScalingConfigurationArn,*string) - - // (Forces new resource) An optional custom encryption key that App Runner uses to encrypt the copy of your source repository that it maintains and your service logs. By default, App Runner uses an AWS managed CMK. See Encryption Configuration below for more details. - encryptionConfiguration?: [...#EncryptionConfigurationInitParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationInitParameters) - - // (Forces new resource) Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details. - healthCheckConfiguration?: [...#HealthCheckConfigurationInitParameters] @go(HealthCheckConfiguration,[]HealthCheckConfigurationInitParameters) - - // The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details. - instanceConfiguration?: [...#InstanceConfigurationInitParameters] @go(InstanceConfiguration,[]InstanceConfigurationInitParameters) - - // Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details. - networkConfiguration?: [...#NetworkConfigurationInitParameters] @go(NetworkConfiguration,[]NetworkConfigurationInitParameters) - - // The observability configuration of your service. See Observability Configuration below for more details. - observabilityConfiguration?: [...#ServiceObservabilityConfigurationInitParameters] @go(ObservabilityConfiguration,[]ServiceObservabilityConfigurationInitParameters) - - // (Forces new resource) Name of the service. - serviceName?: null | string @go(ServiceName,*string) - - // The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details. - sourceConfiguration?: [...#SourceConfigurationInitParameters] @go(SourceConfiguration,[]SourceConfigurationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ServiceObservabilityConfigurationInitParameters: { - // When true, an observability configuration resource is associated with the service. - observabilityEnabled?: null | bool @go(ObservabilityEnabled,*bool) -} - -#ServiceObservabilityConfigurationObservation: { - // ARN of the observability configuration that is associated with the service. Specified only when observability_enabled is true. - observabilityConfigurationArn?: null | string @go(ObservabilityConfigurationArn,*string) - - // When true, an observability configuration resource is associated with the service. - observabilityEnabled?: null | bool @go(ObservabilityEnabled,*bool) -} - -#ServiceObservabilityConfigurationParameters: { - // ARN of the observability configuration that is associated with the service. Specified only when observability_enabled is true. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apprunner/v1beta1.ObservabilityConfiguration - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - observabilityConfigurationArn?: null | string @go(ObservabilityConfigurationArn,*string) - - // Reference to a ObservabilityConfiguration in apprunner to populate observabilityConfigurationArn. - // +kubebuilder:validation:Optional - observabilityConfigurationArnRef?: null | v1.#Reference @go(ObservabilityConfigurationArnRef,*v1.Reference) - - // Selector for a ObservabilityConfiguration in apprunner to populate observabilityConfigurationArn. - // +kubebuilder:validation:Optional - observabilityConfigurationArnSelector?: null | v1.#Selector @go(ObservabilityConfigurationArnSelector,*v1.Selector) - - // When true, an observability configuration resource is associated with the service. - // +kubebuilder:validation:Optional - observabilityEnabled?: null | bool @go(ObservabilityEnabled,*bool) -} - -#ServiceObservation: { - // ARN of the App Runner service. - arn?: null | string @go(Arn,*string) - - // ARN of an App Runner automatic scaling configuration resource that you want to associate with your service. If not provided, App Runner associates the latest revision of a default auto scaling configuration. - autoScalingConfigurationArn?: null | string @go(AutoScalingConfigurationArn,*string) - - // (Forces new resource) An optional custom encryption key that App Runner uses to encrypt the copy of your source repository that it maintains and your service logs. By default, App Runner uses an AWS managed CMK. See Encryption Configuration below for more details. - encryptionConfiguration?: [...#EncryptionConfigurationObservation] @go(EncryptionConfiguration,[]EncryptionConfigurationObservation) - - // (Forces new resource) Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details. - healthCheckConfiguration?: [...#HealthCheckConfigurationObservation] @go(HealthCheckConfiguration,[]HealthCheckConfigurationObservation) - id?: null | string @go(ID,*string) - - // The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details. - instanceConfiguration?: [...#InstanceConfigurationObservation] @go(InstanceConfiguration,[]InstanceConfigurationObservation) - - // Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details. - networkConfiguration?: [...#NetworkConfigurationObservation] @go(NetworkConfiguration,[]NetworkConfigurationObservation) - - // The observability configuration of your service. See Observability Configuration below for more details. - observabilityConfiguration?: [...#ServiceObservabilityConfigurationObservation] @go(ObservabilityConfiguration,[]ServiceObservabilityConfigurationObservation) - - // An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region. - serviceId?: null | string @go(ServiceID,*string) - - // (Forces new resource) Name of the service. - serviceName?: null | string @go(ServiceName,*string) - - // Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application. - serviceUrl?: null | string @go(ServiceURL,*string) - - // The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details. - sourceConfiguration?: [...#SourceConfigurationObservation] @go(SourceConfiguration,[]SourceConfigurationObservation) - - // Current state of the App Runner service. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ServiceParameters: { - // ARN of an App Runner automatic scaling configuration resource that you want to associate with your service. If not provided, App Runner associates the latest revision of a default auto scaling configuration. - // +kubebuilder:validation:Optional - autoScalingConfigurationArn?: null | string @go(AutoScalingConfigurationArn,*string) - - // (Forces new resource) An optional custom encryption key that App Runner uses to encrypt the copy of your source repository that it maintains and your service logs. By default, App Runner uses an AWS managed CMK. See Encryption Configuration below for more details. - // +kubebuilder:validation:Optional - encryptionConfiguration?: [...#EncryptionConfigurationParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationParameters) - - // (Forces new resource) Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details. - // +kubebuilder:validation:Optional - healthCheckConfiguration?: [...#HealthCheckConfigurationParameters] @go(HealthCheckConfiguration,[]HealthCheckConfigurationParameters) - - // The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details. - // +kubebuilder:validation:Optional - instanceConfiguration?: [...#InstanceConfigurationParameters] @go(InstanceConfiguration,[]InstanceConfigurationParameters) - - // Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details. - // +kubebuilder:validation:Optional - networkConfiguration?: [...#NetworkConfigurationParameters] @go(NetworkConfiguration,[]NetworkConfigurationParameters) - - // The observability configuration of your service. See Observability Configuration below for more details. - // +kubebuilder:validation:Optional - observabilityConfiguration?: [...#ServiceObservabilityConfigurationParameters] @go(ObservabilityConfiguration,[]ServiceObservabilityConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // (Forces new resource) Name of the service. - // +kubebuilder:validation:Optional - serviceName?: null | string @go(ServiceName,*string) - - // The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details. - // +kubebuilder:validation:Optional - sourceConfiguration?: [...#SourceConfigurationParameters] @go(SourceConfiguration,[]SourceConfigurationParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SourceCodeVersionInitParameters: { - // Type of version identifier. For a git-based repository, branches represent versions. Valid values: BRANCH. - type?: null | string @go(Type,*string) - - // Source code version. For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch. - value?: null | string @go(Value,*string) -} - -#SourceCodeVersionObservation: { - // Type of version identifier. For a git-based repository, branches represent versions. Valid values: BRANCH. - type?: null | string @go(Type,*string) - - // Source code version. For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch. - value?: null | string @go(Value,*string) -} - -#SourceCodeVersionParameters: { - // Type of version identifier. For a git-based repository, branches represent versions. Valid values: BRANCH. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // Source code version. For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#SourceConfigurationInitParameters: { - // Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details. - authenticationConfiguration?: [...#AuthenticationConfigurationInitParameters] @go(AuthenticationConfiguration,[]AuthenticationConfigurationInitParameters) - - // Whether continuous integration from the source repository is enabled for the App Runner service. If set to true, each repository change (source code commit or new image version) starts a deployment. Defaults to true. - autoDeploymentsEnabled?: null | bool @go(AutoDeploymentsEnabled,*bool) - - // Description of a source code repository. See Code Repository below for more details. - codeRepository?: [...#CodeRepositoryInitParameters] @go(CodeRepository,[]CodeRepositoryInitParameters) - - // Description of a source image repository. See Image Repository below for more details. - imageRepository?: [...#ImageRepositoryInitParameters] @go(ImageRepository,[]ImageRepositoryInitParameters) -} - -#SourceConfigurationObservation: { - // Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details. - authenticationConfiguration?: [...#AuthenticationConfigurationObservation] @go(AuthenticationConfiguration,[]AuthenticationConfigurationObservation) - - // Whether continuous integration from the source repository is enabled for the App Runner service. If set to true, each repository change (source code commit or new image version) starts a deployment. Defaults to true. - autoDeploymentsEnabled?: null | bool @go(AutoDeploymentsEnabled,*bool) - - // Description of a source code repository. See Code Repository below for more details. - codeRepository?: [...#CodeRepositoryObservation] @go(CodeRepository,[]CodeRepositoryObservation) - - // Description of a source image repository. See Image Repository below for more details. - imageRepository?: [...#ImageRepositoryObservation] @go(ImageRepository,[]ImageRepositoryObservation) -} - -#SourceConfigurationParameters: { - // Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details. - // +kubebuilder:validation:Optional - authenticationConfiguration?: [...#AuthenticationConfigurationParameters] @go(AuthenticationConfiguration,[]AuthenticationConfigurationParameters) - - // Whether continuous integration from the source repository is enabled for the App Runner service. If set to true, each repository change (source code commit or new image version) starts a deployment. Defaults to true. - // +kubebuilder:validation:Optional - autoDeploymentsEnabled?: null | bool @go(AutoDeploymentsEnabled,*bool) - - // Description of a source code repository. See Code Repository below for more details. - // +kubebuilder:validation:Optional - codeRepository?: [...#CodeRepositoryParameters] @go(CodeRepository,[]CodeRepositoryParameters) - - // Description of a source image repository. See Image Repository below for more details. - // +kubebuilder:validation:Optional - imageRepository?: [...#ImageRepositoryParameters] @go(ImageRepository,[]ImageRepositoryParameters) -} - -// ServiceSpec defines the desired state of Service -#ServiceSpec: { - v1.#ResourceSpec - forProvider: #ServiceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ServiceInitParameters @go(InitProvider) -} - -// ServiceStatus defines the observed state of Service. -#ServiceStatus: { - v1.#ResourceStatus - atProvider?: #ServiceObservation @go(AtProvider) -} - -// Service is the Schema for the Services API. Manages an App Runner Service. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Service: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))",message="spec.forProvider.serviceName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sourceConfiguration) || (has(self.initProvider) && has(self.initProvider.sourceConfiguration))",message="spec.forProvider.sourceConfiguration is a required parameter" - spec: #ServiceSpec @go(Spec) - status?: #ServiceStatus @go(Status) -} - -// ServiceList contains a list of Services -#ServiceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Service] @go(Items,[]Service) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_vpcconnector_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_vpcconnector_types_go_gen.cue deleted file mode 100644 index d04745e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/apprunner/v1beta1/zz_vpcconnector_types_go_gen.cue +++ /dev/null @@ -1,137 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/apprunner/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCConnectorInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Name for the VPC connector. - vpcConnectorName?: null | string @go(VPCConnectorName,*string) -} - -#VPCConnectorObservation: { - // ARN of VPC connector. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // List of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Current state of the VPC connector. If the status of a connector revision is INACTIVE, it was deleted and can't be used. Inactive connector revisions are permanently removed some time after they are deleted. - status?: null | string @go(Status,*string) - - // List of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify. - subnets?: [...null | string] @go(Subnets,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Name for the VPC connector. - vpcConnectorName?: null | string @go(VPCConnectorName,*string) - - // The revision of VPC connector. It's unique among all the active connectors ("Status": "ACTIVE") that share the same Name. - vpcConnectorRevision?: null | float64 @go(VPCConnectorRevision,*float64) -} - -#VPCConnectorParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to SecurityGroup in ec2 to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupRefs?: [...v1.#Reference] @go(SecurityGroupRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupSelector?: null | v1.#Selector @go(SecurityGroupSelector,*v1.Selector) - - // List of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupSelector - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // References to Subnet in ec2 to populate subnets. - // +kubebuilder:validation:Optional - subnetRefs?: [...v1.#Reference] @go(SubnetRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnets. - // +kubebuilder:validation:Optional - subnetSelector?: null | v1.#Selector @go(SubnetSelector,*v1.Selector) - - // List of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetRefs - // +crossplane:generate:reference:selectorFieldName=SubnetSelector - // +kubebuilder:validation:Optional - subnets?: [...null | string] @go(Subnets,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Name for the VPC connector. - // +kubebuilder:validation:Optional - vpcConnectorName?: null | string @go(VPCConnectorName,*string) -} - -// VPCConnectorSpec defines the desired state of VPCConnector -#VPCConnectorSpec: { - v1.#ResourceSpec - forProvider: #VPCConnectorParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCConnectorInitParameters @go(InitProvider) -} - -// VPCConnectorStatus defines the observed state of VPCConnector. -#VPCConnectorStatus: { - v1.#ResourceStatus - atProvider?: #VPCConnectorObservation @go(AtProvider) -} - -// VPCConnector is the Schema for the VPCConnectors API. Manages an App Runner VPC Connector. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCConnector: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.vpcConnectorName) || (has(self.initProvider) && has(self.initProvider.vpcConnectorName))",message="spec.forProvider.vpcConnectorName is a required parameter" - spec: #VPCConnectorSpec @go(Spec) - status?: #VPCConnectorStatus @go(Status) -} - -// VPCConnectorList contains a list of VPCConnectors -#VPCConnectorList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCConnector] @go(Items,[]VPCConnector) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_directoryconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_directoryconfig_types_go_gen.cue deleted file mode 100644 index ea62114..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_directoryconfig_types_go_gen.cue +++ /dev/null @@ -1,126 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appstream/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DirectoryConfigInitParameters: { - // Fully qualified name of the directory. - directoryName?: null | string @go(DirectoryName,*string) - - // Distinguished names of the organizational units for computer accounts. - organizationalUnitDistinguishedNames?: [...null | string] @go(OrganizationalUnitDistinguishedNames,[]*string) - - // Configuration block for the name of the directory and organizational unit (OU) to use to join the directory config to a Microsoft Active Directory domain. See service_account_credentials below. - serviceAccountCredentials?: [...#ServiceAccountCredentialsInitParameters] @go(ServiceAccountCredentials,[]ServiceAccountCredentialsInitParameters) -} - -#DirectoryConfigObservation: { - // Date and time, in UTC and extended RFC 3339 format, when the directory config was created. - createdTime?: null | string @go(CreatedTime,*string) - - // Fully qualified name of the directory. - directoryName?: null | string @go(DirectoryName,*string) - - // Unique identifier (ID) of the appstream directory config. - id?: null | string @go(ID,*string) - - // Distinguished names of the organizational units for computer accounts. - organizationalUnitDistinguishedNames?: [...null | string] @go(OrganizationalUnitDistinguishedNames,[]*string) - - // Configuration block for the name of the directory and organizational unit (OU) to use to join the directory config to a Microsoft Active Directory domain. See service_account_credentials below. - serviceAccountCredentials?: [...#ServiceAccountCredentialsObservation] @go(ServiceAccountCredentials,[]ServiceAccountCredentialsObservation) -} - -#DirectoryConfigParameters: { - // Fully qualified name of the directory. - // +kubebuilder:validation:Optional - directoryName?: null | string @go(DirectoryName,*string) - - // Distinguished names of the organizational units for computer accounts. - // +kubebuilder:validation:Optional - organizationalUnitDistinguishedNames?: [...null | string] @go(OrganizationalUnitDistinguishedNames,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block for the name of the directory and organizational unit (OU) to use to join the directory config to a Microsoft Active Directory domain. See service_account_credentials below. - // +kubebuilder:validation:Optional - serviceAccountCredentials?: [...#ServiceAccountCredentialsParameters] @go(ServiceAccountCredentials,[]ServiceAccountCredentialsParameters) -} - -#ServiceAccountCredentialsInitParameters: { - // User name of the account. This account must have the following privileges: create computer objects, join computers to the domain, and change/reset the password on descendant computer objects for the organizational units specified. - accountName?: null | string @go(AccountName,*string) -} - -#ServiceAccountCredentialsObservation: { - // User name of the account. This account must have the following privileges: create computer objects, join computers to the domain, and change/reset the password on descendant computer objects for the organizational units specified. - accountName?: null | string @go(AccountName,*string) -} - -#ServiceAccountCredentialsParameters: { - // User name of the account. This account must have the following privileges: create computer objects, join computers to the domain, and change/reset the password on descendant computer objects for the organizational units specified. - // +kubebuilder:validation:Optional - accountName?: null | string @go(AccountName,*string) - - // Password for the account. - // +kubebuilder:validation:Required - accountPasswordSecretRef: v1.#SecretKeySelector @go(AccountPasswordSecretRef) -} - -// DirectoryConfigSpec defines the desired state of DirectoryConfig -#DirectoryConfigSpec: { - v1.#ResourceSpec - forProvider: #DirectoryConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DirectoryConfigInitParameters @go(InitProvider) -} - -// DirectoryConfigStatus defines the observed state of DirectoryConfig. -#DirectoryConfigStatus: { - v1.#ResourceStatus - atProvider?: #DirectoryConfigObservation @go(AtProvider) -} - -// DirectoryConfig is the Schema for the DirectoryConfigs API. Provides an AppStream Directory Config -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DirectoryConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.directoryName) || (has(self.initProvider) && has(self.initProvider.directoryName))",message="spec.forProvider.directoryName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.organizationalUnitDistinguishedNames) || (has(self.initProvider) && has(self.initProvider.organizationalUnitDistinguishedNames))",message="spec.forProvider.organizationalUnitDistinguishedNames is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceAccountCredentials) || (has(self.initProvider) && has(self.initProvider.serviceAccountCredentials))",message="spec.forProvider.serviceAccountCredentials is a required parameter" - spec: #DirectoryConfigSpec @go(Spec) - status?: #DirectoryConfigStatus @go(Status) -} - -// DirectoryConfigList contains a list of DirectoryConfigs -#DirectoryConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DirectoryConfig] @go(Items,[]DirectoryConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_fleet_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_fleet_types_go_gen.cue deleted file mode 100644 index 06cd401..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_fleet_types_go_gen.cue +++ /dev/null @@ -1,345 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appstream/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ComputeCapacityInitParameters: { - // Desired number of streaming instances. - desiredInstances?: null | float64 @go(DesiredInstances,*float64) -} - -#ComputeCapacityObservation: { - // Number of currently available instances that can be used to stream sessions. - available?: null | float64 @go(Available,*float64) - - // Desired number of streaming instances. - desiredInstances?: null | float64 @go(DesiredInstances,*float64) - - // Number of instances in use for streaming. - inUse?: null | float64 @go(InUse,*float64) - - // Total number of simultaneous streaming instances that are running. - running?: null | float64 @go(Running,*float64) -} - -#ComputeCapacityParameters: { - // Desired number of streaming instances. - // +kubebuilder:validation:Optional - desiredInstances?: null | float64 @go(DesiredInstances,*float64) -} - -#DomainJoinInfoInitParameters: { - // Fully qualified name of the directory (for example, corp.example.com). - directoryName?: null | string @go(DirectoryName,*string) - - // Distinguished name of the organizational unit for computer accounts. - organizationalUnitDistinguishedName?: null | string @go(OrganizationalUnitDistinguishedName,*string) -} - -#DomainJoinInfoObservation: { - // Fully qualified name of the directory (for example, corp.example.com). - directoryName?: null | string @go(DirectoryName,*string) - - // Distinguished name of the organizational unit for computer accounts. - organizationalUnitDistinguishedName?: null | string @go(OrganizationalUnitDistinguishedName,*string) -} - -#DomainJoinInfoParameters: { - // Fully qualified name of the directory (for example, corp.example.com). - // +kubebuilder:validation:Optional - directoryName?: null | string @go(DirectoryName,*string) - - // Distinguished name of the organizational unit for computer accounts. - // +kubebuilder:validation:Optional - organizationalUnitDistinguishedName?: null | string @go(OrganizationalUnitDistinguishedName,*string) -} - -#FleetInitParameters: { - // Configuration block for the desired capacity of the fleet. See below. - computeCapacity?: [...#ComputeCapacityInitParameters] @go(ComputeCapacity,[]ComputeCapacityInitParameters) - - // Description to display. - description?: null | string @go(Description,*string) - - // Amount of time that a streaming session remains active after users disconnect. - disconnectTimeoutInSeconds?: null | float64 @go(DisconnectTimeoutInSeconds,*float64) - - // Human-readable friendly name for the AppStream fleet. - displayName?: null | string @go(DisplayName,*string) - - // Configuration block for the name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. See below. - domainJoinInfo?: [...#DomainJoinInfoInitParameters] @go(DomainJoinInfo,[]DomainJoinInfoInitParameters) - - // Enables or disables default internet access for the fleet. - enableDefaultInternetAccess?: null | bool @go(EnableDefaultInternetAccess,*bool) - - // Fleet type. Valid values are: ON_DEMAND, ALWAYS_ON - fleetType?: null | string @go(FleetType,*string) - - // Amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the disconnect_timeout_in_seconds time interval begins. - idleDisconnectTimeoutInSeconds?: null | float64 @go(IdleDisconnectTimeoutInSeconds,*float64) - - // ARN of the public, private, or shared image to use. - imageArn?: null | string @go(ImageArn,*string) - - // Name of the image used to create the fleet. - imageName?: null | string @go(ImageName,*string) - - // Instance type to use when launching fleet instances. - instanceType?: null | string @go(InstanceType,*string) - - // Maximum amount of time that a streaming session can remain active, in seconds. - maxUserDurationInSeconds?: null | float64 @go(MaxUserDurationInSeconds,*float64) - - // Unique name for the fleet. - name?: null | string @go(Name,*string) - - // AppStream 2.0 view that is displayed to your users when they stream from the fleet. When APP is specified, only the windows of applications opened by users display. When DESKTOP is specified, the standard desktop that is provided by the operating system displays. If not specified, defaults to APP. - streamView?: null | string @go(StreamView,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for the VPC configuration for the image builder. See below. - vpcConfig?: [...#VPCConfigInitParameters] @go(VPCConfig,[]VPCConfigInitParameters) -} - -#FleetObservation: { - // ARN of the appstream fleet. - arn?: null | string @go(Arn,*string) - - // Configuration block for the desired capacity of the fleet. See below. - computeCapacity?: [...#ComputeCapacityObservation] @go(ComputeCapacity,[]ComputeCapacityObservation) - - // Date and time, in UTC and extended RFC 3339 format, when the fleet was created. - createdTime?: null | string @go(CreatedTime,*string) - - // Description to display. - description?: null | string @go(Description,*string) - - // Amount of time that a streaming session remains active after users disconnect. - disconnectTimeoutInSeconds?: null | float64 @go(DisconnectTimeoutInSeconds,*float64) - - // Human-readable friendly name for the AppStream fleet. - displayName?: null | string @go(DisplayName,*string) - - // Configuration block for the name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. See below. - domainJoinInfo?: [...#DomainJoinInfoObservation] @go(DomainJoinInfo,[]DomainJoinInfoObservation) - - // Enables or disables default internet access for the fleet. - enableDefaultInternetAccess?: null | bool @go(EnableDefaultInternetAccess,*bool) - - // Fleet type. Valid values are: ON_DEMAND, ALWAYS_ON - fleetType?: null | string @go(FleetType,*string) - - // ARN of the IAM role to apply to the fleet. - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // Unique identifier (ID) of the appstream fleet. - id?: null | string @go(ID,*string) - - // Amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the disconnect_timeout_in_seconds time interval begins. - idleDisconnectTimeoutInSeconds?: null | float64 @go(IdleDisconnectTimeoutInSeconds,*float64) - - // ARN of the public, private, or shared image to use. - imageArn?: null | string @go(ImageArn,*string) - - // Name of the image used to create the fleet. - imageName?: null | string @go(ImageName,*string) - - // Instance type to use when launching fleet instances. - instanceType?: null | string @go(InstanceType,*string) - - // Maximum amount of time that a streaming session can remain active, in seconds. - maxUserDurationInSeconds?: null | float64 @go(MaxUserDurationInSeconds,*float64) - - // Unique name for the fleet. - name?: null | string @go(Name,*string) - - // State of the fleet. Can be STARTING, RUNNING, STOPPING or STOPPED - state?: null | string @go(State,*string) - - // AppStream 2.0 view that is displayed to your users when they stream from the fleet. When APP is specified, only the windows of applications opened by users display. When DESKTOP is specified, the standard desktop that is provided by the operating system displays. If not specified, defaults to APP. - streamView?: null | string @go(StreamView,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration block for the VPC configuration for the image builder. See below. - vpcConfig?: [...#VPCConfigObservation] @go(VPCConfig,[]VPCConfigObservation) -} - -#FleetParameters: { - // Configuration block for the desired capacity of the fleet. See below. - // +kubebuilder:validation:Optional - computeCapacity?: [...#ComputeCapacityParameters] @go(ComputeCapacity,[]ComputeCapacityParameters) - - // Description to display. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Amount of time that a streaming session remains active after users disconnect. - // +kubebuilder:validation:Optional - disconnectTimeoutInSeconds?: null | float64 @go(DisconnectTimeoutInSeconds,*float64) - - // Human-readable friendly name for the AppStream fleet. - // +kubebuilder:validation:Optional - displayName?: null | string @go(DisplayName,*string) - - // Configuration block for the name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. See below. - // +kubebuilder:validation:Optional - domainJoinInfo?: [...#DomainJoinInfoParameters] @go(DomainJoinInfo,[]DomainJoinInfoParameters) - - // Enables or disables default internet access for the fleet. - // +kubebuilder:validation:Optional - enableDefaultInternetAccess?: null | bool @go(EnableDefaultInternetAccess,*bool) - - // Fleet type. Valid values are: ON_DEMAND, ALWAYS_ON - // +kubebuilder:validation:Optional - fleetType?: null | string @go(FleetType,*string) - - // ARN of the IAM role to apply to the fleet. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // Reference to a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnRef?: null | v1.#Reference @go(IAMRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnSelector?: null | v1.#Selector @go(IAMRoleArnSelector,*v1.Selector) - - // Amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the disconnect_timeout_in_seconds time interval begins. - // +kubebuilder:validation:Optional - idleDisconnectTimeoutInSeconds?: null | float64 @go(IdleDisconnectTimeoutInSeconds,*float64) - - // ARN of the public, private, or shared image to use. - // +kubebuilder:validation:Optional - imageArn?: null | string @go(ImageArn,*string) - - // Name of the image used to create the fleet. - // +kubebuilder:validation:Optional - imageName?: null | string @go(ImageName,*string) - - // Instance type to use when launching fleet instances. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // Maximum amount of time that a streaming session can remain active, in seconds. - // +kubebuilder:validation:Optional - maxUserDurationInSeconds?: null | float64 @go(MaxUserDurationInSeconds,*float64) - - // Unique name for the fleet. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // AppStream 2.0 view that is displayed to your users when they stream from the fleet. When APP is specified, only the windows of applications opened by users display. When DESKTOP is specified, the standard desktop that is provided by the operating system displays. If not specified, defaults to APP. - // +kubebuilder:validation:Optional - streamView?: null | string @go(StreamView,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for the VPC configuration for the image builder. See below. - // +kubebuilder:validation:Optional - vpcConfig?: [...#VPCConfigParameters] @go(VPCConfig,[]VPCConfigParameters) -} - -#VPCConfigInitParameters: { - // Identifiers of the security groups for the fleet or image builder. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) -} - -#VPCConfigObservation: { - // Identifiers of the security groups for the fleet or image builder. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Identifiers of the subnets to which a network interface is attached from the fleet instance or image builder instance. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#VPCConfigParameters: { - // Identifiers of the security groups for the fleet or image builder. - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Identifiers of the subnets to which a network interface is attached from the fleet instance or image builder instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -// FleetSpec defines the desired state of Fleet -#FleetSpec: { - v1.#ResourceSpec - forProvider: #FleetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FleetInitParameters @go(InitProvider) -} - -// FleetStatus defines the observed state of Fleet. -#FleetStatus: { - v1.#ResourceStatus - atProvider?: #FleetObservation @go(AtProvider) -} - -// Fleet is the Schema for the Fleets API. Provides an AppStream fleet -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws},path=fleet -#Fleet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.computeCapacity) || (has(self.initProvider) && has(self.initProvider.computeCapacity))",message="spec.forProvider.computeCapacity is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceType) || (has(self.initProvider) && has(self.initProvider.instanceType))",message="spec.forProvider.instanceType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #FleetSpec @go(Spec) - status?: #FleetStatus @go(Status) -} - -// FleetList contains a list of Fleets -#FleetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Fleet] @go(Items,[]Fleet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_fleetstackassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_fleetstackassociation_types_go_gen.cue deleted file mode 100644 index 698a9fd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_fleetstackassociation_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appstream/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#FleetStackAssociationInitParameters: { -} - -#FleetStackAssociationObservation: { - // Name of the fleet. - fleetName?: null | string @go(FleetName,*string) - - // Unique ID of the appstream stack fleet association, composed of the fleet_name and stack_name separated by a slash (/). - id?: null | string @go(ID,*string) - - // Name of the stack. - stackName?: null | string @go(StackName,*string) -} - -#FleetStackAssociationParameters: { - // Name of the fleet. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appstream/v1beta1.Fleet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - fleetName?: null | string @go(FleetName,*string) - - // Reference to a Fleet in appstream to populate fleetName. - // +kubebuilder:validation:Optional - fleetNameRef?: null | v1.#Reference @go(FleetNameRef,*v1.Reference) - - // Selector for a Fleet in appstream to populate fleetName. - // +kubebuilder:validation:Optional - fleetNameSelector?: null | v1.#Selector @go(FleetNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Name of the stack. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appstream/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - stackName?: null | string @go(StackName,*string) - - // Reference to a Stack in appstream to populate stackName. - // +kubebuilder:validation:Optional - stackNameRef?: null | v1.#Reference @go(StackNameRef,*v1.Reference) - - // Selector for a Stack in appstream to populate stackName. - // +kubebuilder:validation:Optional - stackNameSelector?: null | v1.#Selector @go(StackNameSelector,*v1.Selector) -} - -// FleetStackAssociationSpec defines the desired state of FleetStackAssociation -#FleetStackAssociationSpec: { - v1.#ResourceSpec - forProvider: #FleetStackAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FleetStackAssociationInitParameters @go(InitProvider) -} - -// FleetStackAssociationStatus defines the observed state of FleetStackAssociation. -#FleetStackAssociationStatus: { - v1.#ResourceStatus - atProvider?: #FleetStackAssociationObservation @go(AtProvider) -} - -// FleetStackAssociation is the Schema for the FleetStackAssociations API. Manages an AppStream Fleet Stack association. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FleetStackAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #FleetStackAssociationSpec @go(Spec) - status?: #FleetStackAssociationStatus @go(Status) -} - -// FleetStackAssociationList contains a list of FleetStackAssociations -#FleetStackAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FleetStackAssociation] @go(Items,[]FleetStackAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index cc524d3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appstream/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=appstream.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "appstream.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_imagebuilder_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_imagebuilder_types_go_gen.cue deleted file mode 100644 index 0aa6a41..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_imagebuilder_types_go_gen.cue +++ /dev/null @@ -1,289 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appstream/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessEndpointInitParameters: { - // Type of interface endpoint. - endpointType?: null | string @go(EndpointType,*string) - - // Identifier (ID) of the VPC in which the interface endpoint is used. - vpceId?: null | string @go(VpceID,*string) -} - -#AccessEndpointObservation: { - // Type of interface endpoint. - endpointType?: null | string @go(EndpointType,*string) - - // Identifier (ID) of the VPC in which the interface endpoint is used. - vpceId?: null | string @go(VpceID,*string) -} - -#AccessEndpointParameters: { - // Type of interface endpoint. - // +kubebuilder:validation:Optional - endpointType?: null | string @go(EndpointType,*string) - - // Identifier (ID) of the VPC in which the interface endpoint is used. - // +kubebuilder:validation:Optional - vpceId?: null | string @go(VpceID,*string) -} - -#ImageBuilderDomainJoinInfoInitParameters: { - // Fully qualified name of the directory (for example, corp.example.com). - directoryName?: null | string @go(DirectoryName,*string) - - // Distinguished name of the organizational unit for computer accounts. - organizationalUnitDistinguishedName?: null | string @go(OrganizationalUnitDistinguishedName,*string) -} - -#ImageBuilderDomainJoinInfoObservation: { - // Fully qualified name of the directory (for example, corp.example.com). - directoryName?: null | string @go(DirectoryName,*string) - - // Distinguished name of the organizational unit for computer accounts. - organizationalUnitDistinguishedName?: null | string @go(OrganizationalUnitDistinguishedName,*string) -} - -#ImageBuilderDomainJoinInfoParameters: { - // Fully qualified name of the directory (for example, corp.example.com). - // +kubebuilder:validation:Optional - directoryName?: null | string @go(DirectoryName,*string) - - // Distinguished name of the organizational unit for computer accounts. - // +kubebuilder:validation:Optional - organizationalUnitDistinguishedName?: null | string @go(OrganizationalUnitDistinguishedName,*string) -} - -#ImageBuilderInitParameters: { - // Set of interface VPC endpoint (interface endpoint) objects. Maximum of 4. See below. - accessEndpoint?: [...#AccessEndpointInitParameters] @go(AccessEndpoint,[]AccessEndpointInitParameters) - - // Version of the AppStream 2.0 agent to use for this image builder. - appstreamAgentVersion?: null | string @go(AppstreamAgentVersion,*string) - - // Description to display. - description?: null | string @go(Description,*string) - - // Human-readable friendly name for the AppStream image builder. - displayName?: null | string @go(DisplayName,*string) - - // Configuration block for the name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain. See below. - domainJoinInfo?: [...#ImageBuilderDomainJoinInfoInitParameters] @go(DomainJoinInfo,[]ImageBuilderDomainJoinInfoInitParameters) - - // Enables or disables default internet access for the image builder. - enableDefaultInternetAccess?: null | bool @go(EnableDefaultInternetAccess,*bool) - - // ARN of the public, private, or shared image to use. - imageArn?: null | string @go(ImageArn,*string) - - // Instance type to use when launching the image builder. - instanceType?: null | string @go(InstanceType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for the VPC configuration for the image builder. See below. - vpcConfig?: [...#ImageBuilderVPCConfigInitParameters] @go(VPCConfig,[]ImageBuilderVPCConfigInitParameters) -} - -#ImageBuilderObservation: { - // Set of interface VPC endpoint (interface endpoint) objects. Maximum of 4. See below. - accessEndpoint?: [...#AccessEndpointObservation] @go(AccessEndpoint,[]AccessEndpointObservation) - - // Version of the AppStream 2.0 agent to use for this image builder. - appstreamAgentVersion?: null | string @go(AppstreamAgentVersion,*string) - - // ARN of the appstream image builder. - arn?: null | string @go(Arn,*string) - - // Date and time, in UTC and extended RFC 3339 format, when the image builder was created. - createdTime?: null | string @go(CreatedTime,*string) - - // Description to display. - description?: null | string @go(Description,*string) - - // Human-readable friendly name for the AppStream image builder. - displayName?: null | string @go(DisplayName,*string) - - // Configuration block for the name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain. See below. - domainJoinInfo?: [...#ImageBuilderDomainJoinInfoObservation] @go(DomainJoinInfo,[]ImageBuilderDomainJoinInfoObservation) - - // Enables or disables default internet access for the image builder. - enableDefaultInternetAccess?: null | bool @go(EnableDefaultInternetAccess,*bool) - - // ARN of the IAM role to apply to the image builder. - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // Name of the image builder. - id?: null | string @go(ID,*string) - - // ARN of the public, private, or shared image to use. - imageArn?: null | string @go(ImageArn,*string) - - // Name of the image used to create the image builder. - imageName?: null | string @go(ImageName,*string) - - // Instance type to use when launching the image builder. - instanceType?: null | string @go(InstanceType,*string) - - // State of the image builder. Can be: PENDING, UPDATING_AGENT, RUNNING, STOPPING, STOPPED, REBOOTING, SNAPSHOTTING, DELETING, FAILED, UPDATING, PENDING_QUALIFICATION - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration block for the VPC configuration for the image builder. See below. - vpcConfig?: [...#ImageBuilderVPCConfigObservation] @go(VPCConfig,[]ImageBuilderVPCConfigObservation) -} - -#ImageBuilderParameters: { - // Set of interface VPC endpoint (interface endpoint) objects. Maximum of 4. See below. - // +kubebuilder:validation:Optional - accessEndpoint?: [...#AccessEndpointParameters] @go(AccessEndpoint,[]AccessEndpointParameters) - - // Version of the AppStream 2.0 agent to use for this image builder. - // +kubebuilder:validation:Optional - appstreamAgentVersion?: null | string @go(AppstreamAgentVersion,*string) - - // Description to display. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Human-readable friendly name for the AppStream image builder. - // +kubebuilder:validation:Optional - displayName?: null | string @go(DisplayName,*string) - - // Configuration block for the name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain. See below. - // +kubebuilder:validation:Optional - domainJoinInfo?: [...#ImageBuilderDomainJoinInfoParameters] @go(DomainJoinInfo,[]ImageBuilderDomainJoinInfoParameters) - - // Enables or disables default internet access for the image builder. - // +kubebuilder:validation:Optional - enableDefaultInternetAccess?: null | bool @go(EnableDefaultInternetAccess,*bool) - - // ARN of the IAM role to apply to the image builder. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // Reference to a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnRef?: null | v1.#Reference @go(IAMRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnSelector?: null | v1.#Selector @go(IAMRoleArnSelector,*v1.Selector) - - // ARN of the public, private, or shared image to use. - // +kubebuilder:validation:Optional - imageArn?: null | string @go(ImageArn,*string) - - // Instance type to use when launching the image builder. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for the VPC configuration for the image builder. See below. - // +kubebuilder:validation:Optional - vpcConfig?: [...#ImageBuilderVPCConfigParameters] @go(VPCConfig,[]ImageBuilderVPCConfigParameters) -} - -#ImageBuilderVPCConfigInitParameters: { - // Identifiers of the security groups for the image builder or image builder. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) -} - -#ImageBuilderVPCConfigObservation: { - // Identifiers of the security groups for the image builder or image builder. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Identifiers of the subnets to which a network interface is attached from the image builder instance or image builder instance. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#ImageBuilderVPCConfigParameters: { - // Identifiers of the security groups for the image builder or image builder. - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Identifiers of the subnets to which a network interface is attached from the image builder instance or image builder instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -// ImageBuilderSpec defines the desired state of ImageBuilder -#ImageBuilderSpec: { - v1.#ResourceSpec - forProvider: #ImageBuilderParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ImageBuilderInitParameters @go(InitProvider) -} - -// ImageBuilderStatus defines the observed state of ImageBuilder. -#ImageBuilderStatus: { - v1.#ResourceStatus - atProvider?: #ImageBuilderObservation @go(AtProvider) -} - -// ImageBuilder is the Schema for the ImageBuilders API. Provides an AppStream image builder -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ImageBuilder: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceType) || (has(self.initProvider) && has(self.initProvider.instanceType))",message="spec.forProvider.instanceType is a required parameter" - spec: #ImageBuilderSpec @go(Spec) - status?: #ImageBuilderStatus @go(Status) -} - -// ImageBuilderList contains a list of ImageBuilders -#ImageBuilderList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ImageBuilder] @go(Items,[]ImageBuilder) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_stack_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_stack_types_go_gen.cue deleted file mode 100644 index 1e4c2df..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_stack_types_go_gen.cue +++ /dev/null @@ -1,364 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appstream/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessEndpointsInitParameters: { - // Type of the interface endpoint. - // See the AccessEndpoint AWS API documentation for valid values. - endpointType?: null | string @go(EndpointType,*string) - - // ID of the VPC in which the interface endpoint is used. - vpceId?: null | string @go(VpceID,*string) -} - -#AccessEndpointsObservation: { - // Type of the interface endpoint. - // See the AccessEndpoint AWS API documentation for valid values. - endpointType?: null | string @go(EndpointType,*string) - - // ID of the VPC in which the interface endpoint is used. - vpceId?: null | string @go(VpceID,*string) -} - -#AccessEndpointsParameters: { - // Type of the interface endpoint. - // See the AccessEndpoint AWS API documentation for valid values. - // +kubebuilder:validation:Optional - endpointType?: null | string @go(EndpointType,*string) - - // ID of the VPC in which the interface endpoint is used. - // +kubebuilder:validation:Optional - vpceId?: null | string @go(VpceID,*string) -} - -#ApplicationSettingsInitParameters: { - // Whether application settings should be persisted. - enabled?: null | bool @go(Enabled,*bool) - - // Name of the settings group. - // Required when enabled is true. - // Can be up to 100 characters. - settingsGroup?: null | string @go(SettingsGroup,*string) -} - -#ApplicationSettingsObservation: { - // Whether application settings should be persisted. - enabled?: null | bool @go(Enabled,*bool) - - // Name of the settings group. - // Required when enabled is true. - // Can be up to 100 characters. - settingsGroup?: null | string @go(SettingsGroup,*string) -} - -#ApplicationSettingsParameters: { - // Whether application settings should be persisted. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Name of the settings group. - // Required when enabled is true. - // Can be up to 100 characters. - // +kubebuilder:validation:Optional - settingsGroup?: null | string @go(SettingsGroup,*string) -} - -#StackInitParameters: { - // Set of configuration blocks defining the interface VPC endpoints. Users of the stack can connect to AppStream 2.0 only through the specified endpoints. - // See access_endpoints below. - accessEndpoints?: [...#AccessEndpointsInitParameters] @go(AccessEndpoints,[]AccessEndpointsInitParameters) - - // Settings for application settings persistence. - // See application_settings below. - applicationSettings?: [...#ApplicationSettingsInitParameters] @go(ApplicationSettings,[]ApplicationSettingsInitParameters) - - // Description for the AppStream stack. - description?: null | string @go(Description,*string) - - // Stack name to display. - displayName?: null | string @go(DisplayName,*string) - - // Domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions. - embedHostDomains?: [...null | string] @go(EmbedHostDomains,[]*string) - - // URL that users are redirected to after they click the Send Feedback link. If no URL is specified, no Send Feedback link is displayed. . - feedbackUrl?: null | string @go(FeedbackURL,*string) - - // Unique name for the AppStream stack. - name?: null | string @go(Name,*string) - - // URL that users are redirected to after their streaming session ends. - redirectUrl?: null | string @go(RedirectURL,*string) - - // Configuration block for the storage connectors to enable. - // See storage_connectors below. - storageConnectors?: [...#StorageConnectorsInitParameters] @go(StorageConnectors,[]StorageConnectorsInitParameters) - - // The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client. - // See streaming_experience_settings below. - streamingExperienceSettings?: [...#StreamingExperienceSettingsInitParameters] @go(StreamingExperienceSettings,[]StreamingExperienceSettingsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for the actions that are enabled or disabled for users during their streaming sessions. If not provided, these settings are configured automatically by AWS. - // See user_settings below. - userSettings?: [...#UserSettingsInitParameters] @go(UserSettings,[]UserSettingsInitParameters) -} - -#StackObservation: { - // Set of configuration blocks defining the interface VPC endpoints. Users of the stack can connect to AppStream 2.0 only through the specified endpoints. - // See access_endpoints below. - accessEndpoints?: [...#AccessEndpointsObservation] @go(AccessEndpoints,[]AccessEndpointsObservation) - - // Settings for application settings persistence. - // See application_settings below. - applicationSettings?: [...#ApplicationSettingsObservation] @go(ApplicationSettings,[]ApplicationSettingsObservation) - - // ARN of the appstream stack. - arn?: null | string @go(Arn,*string) - - // Date and time, in UTC and extended RFC 3339 format, when the stack was created. - createdTime?: null | string @go(CreatedTime,*string) - - // Description for the AppStream stack. - description?: null | string @go(Description,*string) - - // Stack name to display. - displayName?: null | string @go(DisplayName,*string) - - // Domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions. - embedHostDomains?: [...null | string] @go(EmbedHostDomains,[]*string) - - // URL that users are redirected to after they click the Send Feedback link. If no URL is specified, no Send Feedback link is displayed. . - feedbackUrl?: null | string @go(FeedbackURL,*string) - - // Unique ID of the appstream stack. - id?: null | string @go(ID,*string) - - // Unique name for the AppStream stack. - name?: null | string @go(Name,*string) - - // URL that users are redirected to after their streaming session ends. - redirectUrl?: null | string @go(RedirectURL,*string) - - // Configuration block for the storage connectors to enable. - // See storage_connectors below. - storageConnectors?: [...#StorageConnectorsObservation] @go(StorageConnectors,[]StorageConnectorsObservation) - - // The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client. - // See streaming_experience_settings below. - streamingExperienceSettings?: [...#StreamingExperienceSettingsObservation] @go(StreamingExperienceSettings,[]StreamingExperienceSettingsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration block for the actions that are enabled or disabled for users during their streaming sessions. If not provided, these settings are configured automatically by AWS. - // See user_settings below. - userSettings?: [...#UserSettingsObservation] @go(UserSettings,[]UserSettingsObservation) -} - -#StackParameters: { - // Set of configuration blocks defining the interface VPC endpoints. Users of the stack can connect to AppStream 2.0 only through the specified endpoints. - // See access_endpoints below. - // +kubebuilder:validation:Optional - accessEndpoints?: [...#AccessEndpointsParameters] @go(AccessEndpoints,[]AccessEndpointsParameters) - - // Settings for application settings persistence. - // See application_settings below. - // +kubebuilder:validation:Optional - applicationSettings?: [...#ApplicationSettingsParameters] @go(ApplicationSettings,[]ApplicationSettingsParameters) - - // Description for the AppStream stack. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Stack name to display. - // +kubebuilder:validation:Optional - displayName?: null | string @go(DisplayName,*string) - - // Domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions. - // +kubebuilder:validation:Optional - embedHostDomains?: [...null | string] @go(EmbedHostDomains,[]*string) - - // URL that users are redirected to after they click the Send Feedback link. If no URL is specified, no Send Feedback link is displayed. . - // +kubebuilder:validation:Optional - feedbackUrl?: null | string @go(FeedbackURL,*string) - - // Unique name for the AppStream stack. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // URL that users are redirected to after their streaming session ends. - // +kubebuilder:validation:Optional - redirectUrl?: null | string @go(RedirectURL,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block for the storage connectors to enable. - // See storage_connectors below. - // +kubebuilder:validation:Optional - storageConnectors?: [...#StorageConnectorsParameters] @go(StorageConnectors,[]StorageConnectorsParameters) - - // The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client. - // See streaming_experience_settings below. - // +kubebuilder:validation:Optional - streamingExperienceSettings?: [...#StreamingExperienceSettingsParameters] @go(StreamingExperienceSettings,[]StreamingExperienceSettingsParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for the actions that are enabled or disabled for users during their streaming sessions. If not provided, these settings are configured automatically by AWS. - // See user_settings below. - // +kubebuilder:validation:Optional - userSettings?: [...#UserSettingsParameters] @go(UserSettings,[]UserSettingsParameters) -} - -#StorageConnectorsInitParameters: { - // Type of storage connector. - // Valid values are HOMEFOLDERS, GOOGLE_DRIVE, or ONE_DRIVE. - connectorType?: null | string @go(ConnectorType,*string) - - // Names of the domains for the account. - domains?: [...null | string] @go(Domains,[]*string) - - // ARN of the storage connector. - resourceIdentifier?: null | string @go(ResourceIdentifier,*string) -} - -#StorageConnectorsObservation: { - // Type of storage connector. - // Valid values are HOMEFOLDERS, GOOGLE_DRIVE, or ONE_DRIVE. - connectorType?: null | string @go(ConnectorType,*string) - - // Names of the domains for the account. - domains?: [...null | string] @go(Domains,[]*string) - - // ARN of the storage connector. - resourceIdentifier?: null | string @go(ResourceIdentifier,*string) -} - -#StorageConnectorsParameters: { - // Type of storage connector. - // Valid values are HOMEFOLDERS, GOOGLE_DRIVE, or ONE_DRIVE. - // +kubebuilder:validation:Optional - connectorType?: null | string @go(ConnectorType,*string) - - // Names of the domains for the account. - // +kubebuilder:validation:Optional - domains?: [...null | string] @go(Domains,[]*string) - - // ARN of the storage connector. - // +kubebuilder:validation:Optional - resourceIdentifier?: null | string @go(ResourceIdentifier,*string) -} - -#StreamingExperienceSettingsInitParameters: { - // The preferred protocol that you want to use while streaming your application. - // Valid values are TCP and UDP. - preferredProtocol?: null | string @go(PreferredProtocol,*string) -} - -#StreamingExperienceSettingsObservation: { - // The preferred protocol that you want to use while streaming your application. - // Valid values are TCP and UDP. - preferredProtocol?: null | string @go(PreferredProtocol,*string) -} - -#StreamingExperienceSettingsParameters: { - // The preferred protocol that you want to use while streaming your application. - // Valid values are TCP and UDP. - // +kubebuilder:validation:Optional - preferredProtocol?: null | string @go(PreferredProtocol,*string) -} - -#UserSettingsInitParameters: { - // Action that is enabled or disabled. - // Valid values are CLIPBOARD_COPY_FROM_LOCAL_DEVICE, CLIPBOARD_COPY_TO_LOCAL_DEVICE, FILE_UPLOAD, FILE_DOWNLOAD, PRINTING_TO_LOCAL_DEVICE, DOMAIN_PASSWORD_SIGNIN, or DOMAIN_SMART_CARD_SIGNIN. - action?: null | string @go(Action,*string) - - // Whether the action is enabled or disabled. - // Valid values are ENABLED or DISABLED. - permission?: null | string @go(Permission,*string) -} - -#UserSettingsObservation: { - // Action that is enabled or disabled. - // Valid values are CLIPBOARD_COPY_FROM_LOCAL_DEVICE, CLIPBOARD_COPY_TO_LOCAL_DEVICE, FILE_UPLOAD, FILE_DOWNLOAD, PRINTING_TO_LOCAL_DEVICE, DOMAIN_PASSWORD_SIGNIN, or DOMAIN_SMART_CARD_SIGNIN. - action?: null | string @go(Action,*string) - - // Whether the action is enabled or disabled. - // Valid values are ENABLED or DISABLED. - permission?: null | string @go(Permission,*string) -} - -#UserSettingsParameters: { - // Action that is enabled or disabled. - // Valid values are CLIPBOARD_COPY_FROM_LOCAL_DEVICE, CLIPBOARD_COPY_TO_LOCAL_DEVICE, FILE_UPLOAD, FILE_DOWNLOAD, PRINTING_TO_LOCAL_DEVICE, DOMAIN_PASSWORD_SIGNIN, or DOMAIN_SMART_CARD_SIGNIN. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) - - // Whether the action is enabled or disabled. - // Valid values are ENABLED or DISABLED. - // +kubebuilder:validation:Optional - permission?: null | string @go(Permission,*string) -} - -// StackSpec defines the desired state of Stack -#StackSpec: { - v1.#ResourceSpec - forProvider: #StackParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StackInitParameters @go(InitProvider) -} - -// StackStatus defines the observed state of Stack. -#StackStatus: { - v1.#ResourceStatus - atProvider?: #StackObservation @go(AtProvider) -} - -// Stack is the Schema for the Stacks API. Provides an AppStream stack -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Stack: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #StackSpec @go(Spec) - status?: #StackStatus @go(Status) -} - -// StackList contains a list of Stacks -#StackList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Stack] @go(Items,[]Stack) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_user_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_user_types_go_gen.cue deleted file mode 100644 index 6715dde..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_user_types_go_gen.cue +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appstream/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserInitParameters: { - // Whether the user in the user pool is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // First name, or given name, of the user. - firstName?: null | string @go(FirstName,*string) - - // Last name, or surname, of the user. - lastName?: null | string @go(LastName,*string) - - // Send an email notification. - sendEmailNotification?: null | bool @go(SendEmailNotification,*bool) -} - -#UserObservation: { - // ARN of the appstream user. - arn?: null | string @go(Arn,*string) - - // Authentication type for the user. You must specify USERPOOL. Valid values: API, SAML, USERPOOL - authenticationType?: null | string @go(AuthenticationType,*string) - - // Date and time, in UTC and extended RFC 3339 format, when the user was created. - createdTime?: null | string @go(CreatedTime,*string) - - // Whether the user in the user pool is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // First name, or given name, of the user. - firstName?: null | string @go(FirstName,*string) - - // Unique ID of the appstream user. - id?: null | string @go(ID,*string) - - // Last name, or surname, of the user. - lastName?: null | string @go(LastName,*string) - - // Send an email notification. - sendEmailNotification?: null | bool @go(SendEmailNotification,*bool) -} - -#UserParameters: { - // Authentication type for the user. You must specify USERPOOL. Valid values: API, SAML, USERPOOL - // +kubebuilder:validation:Required - authenticationType?: null | string @go(AuthenticationType,*string) - - // Whether the user in the user pool is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // First name, or given name, of the user. - // +kubebuilder:validation:Optional - firstName?: null | string @go(FirstName,*string) - - // Last name, or surname, of the user. - // +kubebuilder:validation:Optional - lastName?: null | string @go(LastName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Send an email notification. - // +kubebuilder:validation:Optional - sendEmailNotification?: null | bool @go(SendEmailNotification,*bool) -} - -// UserSpec defines the desired state of User -#UserSpec: { - v1.#ResourceSpec - forProvider: #UserParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserInitParameters @go(InitProvider) -} - -// UserStatus defines the observed state of User. -#UserStatus: { - v1.#ResourceStatus - atProvider?: #UserObservation @go(AtProvider) -} - -// User is the Schema for the Users API. Provides an AppStream user -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#User: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #UserSpec @go(Spec) - status?: #UserStatus @go(Status) -} - -// UserList contains a list of Users -#UserList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#User] @go(Items,[]User) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_userstackassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_userstackassociation_types_go_gen.cue deleted file mode 100644 index 5e4997f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appstream/v1beta1/zz_userstackassociation_types_go_gen.cue +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appstream/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserStackAssociationInitParameters: { - // Whether a welcome email is sent to a user after the user is created in the user pool. - sendEmailNotification?: null | bool @go(SendEmailNotification,*bool) -} - -#UserStackAssociationObservation: { - // Authentication type for the user. - authenticationType?: null | string @go(AuthenticationType,*string) - - // Unique ID of the appstream User Stack association. - id?: null | string @go(ID,*string) - - // Whether a welcome email is sent to a user after the user is created in the user pool. - sendEmailNotification?: null | bool @go(SendEmailNotification,*bool) - - // Name of the stack that is associated with the user. - stackName?: null | string @go(StackName,*string) - - // Email address of the user who is associated with the stack. - userName?: null | string @go(UserName,*string) -} - -#UserStackAssociationParameters: { - // Authentication type for the user. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appstream/v1beta1.User - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("authentication_type",false) - // +kubebuilder:validation:Optional - authenticationType?: null | string @go(AuthenticationType,*string) - - // Reference to a User in appstream to populate authenticationType. - // +kubebuilder:validation:Optional - authenticationTypeRef?: null | v1.#Reference @go(AuthenticationTypeRef,*v1.Reference) - - // Selector for a User in appstream to populate authenticationType. - // +kubebuilder:validation:Optional - authenticationTypeSelector?: null | v1.#Selector @go(AuthenticationTypeSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Whether a welcome email is sent to a user after the user is created in the user pool. - // +kubebuilder:validation:Optional - sendEmailNotification?: null | bool @go(SendEmailNotification,*bool) - - // Name of the stack that is associated with the user. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appstream/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - stackName?: null | string @go(StackName,*string) - - // Reference to a Stack in appstream to populate stackName. - // +kubebuilder:validation:Optional - stackNameRef?: null | v1.#Reference @go(StackNameRef,*v1.Reference) - - // Selector for a Stack in appstream to populate stackName. - // +kubebuilder:validation:Optional - stackNameSelector?: null | v1.#Selector @go(StackNameSelector,*v1.Selector) - - // Email address of the user who is associated with the stack. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appstream/v1beta1.User - // +kubebuilder:validation:Optional - userName?: null | string @go(UserName,*string) - - // Reference to a User in appstream to populate userName. - // +kubebuilder:validation:Optional - userNameRef?: null | v1.#Reference @go(UserNameRef,*v1.Reference) - - // Selector for a User in appstream to populate userName. - // +kubebuilder:validation:Optional - userNameSelector?: null | v1.#Selector @go(UserNameSelector,*v1.Selector) -} - -// UserStackAssociationSpec defines the desired state of UserStackAssociation -#UserStackAssociationSpec: { - v1.#ResourceSpec - forProvider: #UserStackAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserStackAssociationInitParameters @go(InitProvider) -} - -// UserStackAssociationStatus defines the observed state of UserStackAssociation. -#UserStackAssociationStatus: { - v1.#ResourceStatus - atProvider?: #UserStackAssociationObservation @go(AtProvider) -} - -// UserStackAssociation is the Schema for the UserStackAssociations API. Manages an AppStream User Stack association. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserStackAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #UserStackAssociationSpec @go(Spec) - status?: #UserStackAssociationStatus @go(Status) -} - -// UserStackAssociationList contains a list of UserStackAssociations -#UserStackAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserStackAssociation] @go(Items,[]UserStackAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_apicache_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_apicache_types_go_gen.cue deleted file mode 100644 index 9042843..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_apicache_types_go_gen.cue +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appsync/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#APICacheInitParameters: { - // Caching behavior. Valid values are FULL_REQUEST_CACHING and PER_RESOLVER_CACHING. - apiCachingBehavior?: null | string @go(APICachingBehavior,*string) - - // At-rest encryption flag for cache. You cannot update this setting after creation. - atRestEncryptionEnabled?: null | bool @go(AtRestEncryptionEnabled,*bool) - - // TTL in seconds for cache entries. - ttl?: null | float64 @go(TTL,*float64) - - // Transit encryption flag when connecting to cache. You cannot update this setting after creation. - transitEncryptionEnabled?: null | bool @go(TransitEncryptionEnabled,*bool) - - // Cache instance type. Valid values are SMALL, MEDIUM, LARGE, XLARGE, LARGE_2X, LARGE_4X, LARGE_8X, LARGE_12X, T2_SMALL, T2_MEDIUM, R4_LARGE, R4_XLARGE, R4_2XLARGE, R4_4XLARGE, R4_8XLARGE. - type?: null | string @go(Type,*string) -} - -#APICacheObservation: { - // Caching behavior. Valid values are FULL_REQUEST_CACHING and PER_RESOLVER_CACHING. - apiCachingBehavior?: null | string @go(APICachingBehavior,*string) - - // GraphQL API ID. - apiId?: null | string @go(APIID,*string) - - // At-rest encryption flag for cache. You cannot update this setting after creation. - atRestEncryptionEnabled?: null | bool @go(AtRestEncryptionEnabled,*bool) - - // AppSync API ID. - id?: null | string @go(ID,*string) - - // TTL in seconds for cache entries. - ttl?: null | float64 @go(TTL,*float64) - - // Transit encryption flag when connecting to cache. You cannot update this setting after creation. - transitEncryptionEnabled?: null | bool @go(TransitEncryptionEnabled,*bool) - - // Cache instance type. Valid values are SMALL, MEDIUM, LARGE, XLARGE, LARGE_2X, LARGE_4X, LARGE_8X, LARGE_12X, T2_SMALL, T2_MEDIUM, R4_LARGE, R4_XLARGE, R4_2XLARGE, R4_4XLARGE, R4_8XLARGE. - type?: null | string @go(Type,*string) -} - -#APICacheParameters: { - // Caching behavior. Valid values are FULL_REQUEST_CACHING and PER_RESOLVER_CACHING. - // +kubebuilder:validation:Optional - apiCachingBehavior?: null | string @go(APICachingBehavior,*string) - - // GraphQL API ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appsync/v1beta1.GraphQLAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a GraphQLAPI in appsync to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a GraphQLAPI in appsync to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // At-rest encryption flag for cache. You cannot update this setting after creation. - // +kubebuilder:validation:Optional - atRestEncryptionEnabled?: null | bool @go(AtRestEncryptionEnabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // TTL in seconds for cache entries. - // +kubebuilder:validation:Optional - ttl?: null | float64 @go(TTL,*float64) - - // Transit encryption flag when connecting to cache. You cannot update this setting after creation. - // +kubebuilder:validation:Optional - transitEncryptionEnabled?: null | bool @go(TransitEncryptionEnabled,*bool) - - // Cache instance type. Valid values are SMALL, MEDIUM, LARGE, XLARGE, LARGE_2X, LARGE_4X, LARGE_8X, LARGE_12X, T2_SMALL, T2_MEDIUM, R4_LARGE, R4_XLARGE, R4_2XLARGE, R4_4XLARGE, R4_8XLARGE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// APICacheSpec defines the desired state of APICache -#APICacheSpec: { - v1.#ResourceSpec - forProvider: #APICacheParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #APICacheInitParameters @go(InitProvider) -} - -// APICacheStatus defines the observed state of APICache. -#APICacheStatus: { - v1.#ResourceStatus - atProvider?: #APICacheObservation @go(AtProvider) -} - -// APICache is the Schema for the APICaches API. Provides an AppSync API Cache. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#APICache: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.apiCachingBehavior) || (has(self.initProvider) && has(self.initProvider.apiCachingBehavior))",message="spec.forProvider.apiCachingBehavior is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ttl) || (has(self.initProvider) && has(self.initProvider.ttl))",message="spec.forProvider.ttl is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #APICacheSpec @go(Spec) - status?: #APICacheStatus @go(Status) -} - -// APICacheList contains a list of APICaches -#APICacheList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#APICache] @go(Items,[]APICache) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_apikey_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_apikey_types_go_gen.cue deleted file mode 100644 index 1706ed6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_apikey_types_go_gen.cue +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appsync/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#APIKeyInitParameters: { - // API key description. - description?: null | string @go(Description,*string) - - // RFC3339 string representation of the expiry date. Rounded down to nearest hour. By default, it is 7 days from the date of creation. - expires?: null | string @go(Expires,*string) -} - -#APIKeyObservation: { - // ID of the associated AppSync API - apiId?: null | string @go(APIID,*string) - - // API key description. - description?: null | string @go(Description,*string) - - // RFC3339 string representation of the expiry date. Rounded down to nearest hour. By default, it is 7 days from the date of creation. - expires?: null | string @go(Expires,*string) - - // API Key ID (Formatted as ApiId:Key) - id?: null | string @go(ID,*string) -} - -#APIKeyParameters: { - // ID of the associated AppSync API - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appsync/v1beta1.GraphQLAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a GraphQLAPI in appsync to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a GraphQLAPI in appsync to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // API key description. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // RFC3339 string representation of the expiry date. Rounded down to nearest hour. By default, it is 7 days from the date of creation. - // +kubebuilder:validation:Optional - expires?: null | string @go(Expires,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// APIKeySpec defines the desired state of APIKey -#APIKeySpec: { - v1.#ResourceSpec - forProvider: #APIKeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #APIKeyInitParameters @go(InitProvider) -} - -// APIKeyStatus defines the observed state of APIKey. -#APIKeyStatus: { - v1.#ResourceStatus - atProvider?: #APIKeyObservation @go(AtProvider) -} - -// APIKey is the Schema for the APIKeys API. Provides an AppSync API Key. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#APIKey: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #APIKeySpec @go(Spec) - status?: #APIKeyStatus @go(Status) -} - -// APIKeyList contains a list of APIKeys -#APIKeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#APIKey] @go(Items,[]APIKey) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_datasource_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_datasource_types_go_gen.cue deleted file mode 100644 index 70b7820..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_datasource_types_go_gen.cue +++ /dev/null @@ -1,511 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appsync/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AuthorizationConfigInitParameters: { - // Authorization type that the HTTP endpoint requires. Default values is AWS_IAM. - authorizationType?: null | string @go(AuthorizationType,*string) - - // Identity and Access Management (IAM) settings. See AWS IAM Config. - awsIamConfig?: [...#AwsIAMConfigInitParameters] @go(AwsIAMConfig,[]AwsIAMConfigInitParameters) -} - -#AuthorizationConfigObservation: { - // Authorization type that the HTTP endpoint requires. Default values is AWS_IAM. - authorizationType?: null | string @go(AuthorizationType,*string) - - // Identity and Access Management (IAM) settings. See AWS IAM Config. - awsIamConfig?: [...#AwsIAMConfigObservation] @go(AwsIAMConfig,[]AwsIAMConfigObservation) -} - -#AuthorizationConfigParameters: { - // Authorization type that the HTTP endpoint requires. Default values is AWS_IAM. - // +kubebuilder:validation:Optional - authorizationType?: null | string @go(AuthorizationType,*string) - - // Identity and Access Management (IAM) settings. See AWS IAM Config. - // +kubebuilder:validation:Optional - awsIamConfig?: [...#AwsIAMConfigParameters] @go(AwsIAMConfig,[]AwsIAMConfigParameters) -} - -#AwsIAMConfigInitParameters: { - // Signing Amazon Web Services Region for IAM authorization. - signingRegion?: null | string @go(SigningRegion,*string) - - // Signing service name for IAM authorization. - signingServiceName?: null | string @go(SigningServiceName,*string) -} - -#AwsIAMConfigObservation: { - // Signing Amazon Web Services Region for IAM authorization. - signingRegion?: null | string @go(SigningRegion,*string) - - // Signing service name for IAM authorization. - signingServiceName?: null | string @go(SigningServiceName,*string) -} - -#AwsIAMConfigParameters: { - // Signing Amazon Web Services Region for IAM authorization. - // +kubebuilder:validation:Optional - signingRegion?: null | string @go(SigningRegion,*string) - - // Signing service name for IAM authorization. - // +kubebuilder:validation:Optional - signingServiceName?: null | string @go(SigningServiceName,*string) -} - -#DatasourceInitParameters: { - // Description of the data source. - description?: null | string @go(Description,*string) - - // DynamoDB settings. See below - dynamodbConfig?: [...#DynamodbConfigInitParameters] @go(DynamodbConfig,[]DynamodbConfigInitParameters) - - // Amazon Elasticsearch settings. See below - elasticsearchConfig?: [...#ElasticsearchConfigInitParameters] @go(ElasticsearchConfig,[]ElasticsearchConfigInitParameters) - - // AWS EventBridge settings. See below - eventBridgeConfig?: [...#EventBridgeConfigInitParameters] @go(EventBridgeConfig,[]EventBridgeConfigInitParameters) - - // HTTP settings. See below - httpConfig?: [...#HTTPConfigInitParameters] @go(HTTPConfig,[]HTTPConfigInitParameters) - - // AWS Lambda settings. See below - lambdaConfig?: [...#LambdaConfigInitParameters] @go(LambdaConfig,[]LambdaConfigInitParameters) - - // Amazon OpenSearch Service settings. See below - opensearchserviceConfig?: [...#OpensearchserviceConfigInitParameters] @go(OpensearchserviceConfig,[]OpensearchserviceConfigInitParameters) - - // AWS RDS settings. See Relational Database Config - relationalDatabaseConfig?: [...#RelationalDatabaseConfigInitParameters] @go(RelationalDatabaseConfig,[]RelationalDatabaseConfigInitParameters) - - // Type of the Data Source. Valid values: AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, HTTP, NONE, RELATIONAL_DATABASE, AMAZON_EVENTBRIDGE. - type?: null | string @go(Type,*string) -} - -#DatasourceObservation: { - // API ID for the GraphQL API for the data source. - apiId?: null | string @go(APIID,*string) - - // ARN - arn?: null | string @go(Arn,*string) - - // Description of the data source. - description?: null | string @go(Description,*string) - - // DynamoDB settings. See below - dynamodbConfig?: [...#DynamodbConfigObservation] @go(DynamodbConfig,[]DynamodbConfigObservation) - - // Amazon Elasticsearch settings. See below - elasticsearchConfig?: [...#ElasticsearchConfigObservation] @go(ElasticsearchConfig,[]ElasticsearchConfigObservation) - - // AWS EventBridge settings. See below - eventBridgeConfig?: [...#EventBridgeConfigObservation] @go(EventBridgeConfig,[]EventBridgeConfigObservation) - - // HTTP settings. See below - httpConfig?: [...#HTTPConfigObservation] @go(HTTPConfig,[]HTTPConfigObservation) - id?: null | string @go(ID,*string) - - // AWS Lambda settings. See below - lambdaConfig?: [...#LambdaConfigObservation] @go(LambdaConfig,[]LambdaConfigObservation) - - // Amazon OpenSearch Service settings. See below - opensearchserviceConfig?: [...#OpensearchserviceConfigObservation] @go(OpensearchserviceConfig,[]OpensearchserviceConfigObservation) - - // AWS RDS settings. See Relational Database Config - relationalDatabaseConfig?: [...#RelationalDatabaseConfigObservation] @go(RelationalDatabaseConfig,[]RelationalDatabaseConfigObservation) - - // IAM service role ARN for the data source. - serviceRoleArn?: null | string @go(ServiceRoleArn,*string) - - // Type of the Data Source. Valid values: AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, HTTP, NONE, RELATIONAL_DATABASE, AMAZON_EVENTBRIDGE. - type?: null | string @go(Type,*string) -} - -#DatasourceParameters: { - // API ID for the GraphQL API for the data source. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appsync/v1beta1.GraphQLAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a GraphQLAPI in appsync to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a GraphQLAPI in appsync to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // Description of the data source. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // DynamoDB settings. See below - // +kubebuilder:validation:Optional - dynamodbConfig?: [...#DynamodbConfigParameters] @go(DynamodbConfig,[]DynamodbConfigParameters) - - // Amazon Elasticsearch settings. See below - // +kubebuilder:validation:Optional - elasticsearchConfig?: [...#ElasticsearchConfigParameters] @go(ElasticsearchConfig,[]ElasticsearchConfigParameters) - - // AWS EventBridge settings. See below - // +kubebuilder:validation:Optional - eventBridgeConfig?: [...#EventBridgeConfigParameters] @go(EventBridgeConfig,[]EventBridgeConfigParameters) - - // HTTP settings. See below - // +kubebuilder:validation:Optional - httpConfig?: [...#HTTPConfigParameters] @go(HTTPConfig,[]HTTPConfigParameters) - - // AWS Lambda settings. See below - // +kubebuilder:validation:Optional - lambdaConfig?: [...#LambdaConfigParameters] @go(LambdaConfig,[]LambdaConfigParameters) - - // Amazon OpenSearch Service settings. See below - // +kubebuilder:validation:Optional - opensearchserviceConfig?: [...#OpensearchserviceConfigParameters] @go(OpensearchserviceConfig,[]OpensearchserviceConfigParameters) - - // AWS Region for RDS HTTP endpoint. Defaults to current region. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // AWS RDS settings. See Relational Database Config - // +kubebuilder:validation:Optional - relationalDatabaseConfig?: [...#RelationalDatabaseConfigParameters] @go(RelationalDatabaseConfig,[]RelationalDatabaseConfigParameters) - - // IAM service role ARN for the data source. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - serviceRoleArn?: null | string @go(ServiceRoleArn,*string) - - // Reference to a Role in iam to populate serviceRoleArn. - // +kubebuilder:validation:Optional - serviceRoleArnRef?: null | v1.#Reference @go(ServiceRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate serviceRoleArn. - // +kubebuilder:validation:Optional - serviceRoleArnSelector?: null | v1.#Selector @go(ServiceRoleArnSelector,*v1.Selector) - - // Type of the Data Source. Valid values: AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, HTTP, NONE, RELATIONAL_DATABASE, AMAZON_EVENTBRIDGE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#DeltaSyncConfigInitParameters: { - baseTableTtl?: null | float64 @go(BaseTableTTL,*float64) - - // User-supplied name for the data source. - deltaSyncTableName?: null | string @go(DeltaSyncTableName,*string) - deltaSyncTableTtl?: null | float64 @go(DeltaSyncTableTTL,*float64) -} - -#DeltaSyncConfigObservation: { - baseTableTtl?: null | float64 @go(BaseTableTTL,*float64) - - // User-supplied name for the data source. - deltaSyncTableName?: null | string @go(DeltaSyncTableName,*string) - deltaSyncTableTtl?: null | float64 @go(DeltaSyncTableTTL,*float64) -} - -#DeltaSyncConfigParameters: { - // +kubebuilder:validation:Optional - baseTableTtl?: null | float64 @go(BaseTableTTL,*float64) - - // User-supplied name for the data source. - // +kubebuilder:validation:Optional - deltaSyncTableName?: null | string @go(DeltaSyncTableName,*string) - - // +kubebuilder:validation:Optional - deltaSyncTableTtl?: null | float64 @go(DeltaSyncTableTTL,*float64) -} - -#DynamodbConfigInitParameters: { - deltaSyncConfig?: [...#DeltaSyncConfigInitParameters] @go(DeltaSyncConfig,[]DeltaSyncConfigInitParameters) - - // Set to true to use Amazon Cognito credentials with this data source. - useCallerCredentials?: null | bool @go(UseCallerCredentials,*bool) - versioned?: null | bool @go(Versioned,*bool) -} - -#DynamodbConfigObservation: { - deltaSyncConfig?: [...#DeltaSyncConfigObservation] @go(DeltaSyncConfig,[]DeltaSyncConfigObservation) - - // AWS region of the DynamoDB table. Defaults to current region. - region?: null | string @go(Region,*string) - - // Name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) - - // Set to true to use Amazon Cognito credentials with this data source. - useCallerCredentials?: null | bool @go(UseCallerCredentials,*bool) - versioned?: null | bool @go(Versioned,*bool) -} - -#DynamodbConfigParameters: { - // +kubebuilder:validation:Optional - deltaSyncConfig?: [...#DeltaSyncConfigParameters] @go(DeltaSyncConfig,[]DeltaSyncConfigParameters) - - // AWS region of the DynamoDB table. Defaults to current region. - // +kubebuilder:validation:Optional - region?: null | string @go(Region,*string) - - // Name of the DynamoDB table. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/dynamodb/v1beta1.Table - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) - - // Reference to a Table in dynamodb to populate tableName. - // +kubebuilder:validation:Optional - tableNameRef?: null | v1.#Reference @go(TableNameRef,*v1.Reference) - - // Selector for a Table in dynamodb to populate tableName. - // +kubebuilder:validation:Optional - tableNameSelector?: null | v1.#Selector @go(TableNameSelector,*v1.Selector) - - // Set to true to use Amazon Cognito credentials with this data source. - // +kubebuilder:validation:Optional - useCallerCredentials?: null | bool @go(UseCallerCredentials,*bool) - - // +kubebuilder:validation:Optional - versioned?: null | bool @go(Versioned,*bool) -} - -#ElasticsearchConfigInitParameters: { - // HTTP endpoint of the Elasticsearch domain. - endpoint?: null | string @go(Endpoint,*string) -} - -#ElasticsearchConfigObservation: { - // HTTP endpoint of the Elasticsearch domain. - endpoint?: null | string @go(Endpoint,*string) - - // AWS region of Elasticsearch domain. Defaults to current region. - region?: null | string @go(Region,*string) -} - -#ElasticsearchConfigParameters: { - // HTTP endpoint of the Elasticsearch domain. - // +kubebuilder:validation:Optional - endpoint?: null | string @go(Endpoint,*string) - - // AWS region of Elasticsearch domain. Defaults to current region. - // +kubebuilder:validation:Optional - region?: null | string @go(Region,*string) -} - -#EventBridgeConfigInitParameters: { - // ARN for the EventBridge bus. - eventBusArn?: null | string @go(EventBusArn,*string) -} - -#EventBridgeConfigObservation: { - // ARN for the EventBridge bus. - eventBusArn?: null | string @go(EventBusArn,*string) -} - -#EventBridgeConfigParameters: { - // ARN for the EventBridge bus. - // +kubebuilder:validation:Optional - eventBusArn?: null | string @go(EventBusArn,*string) -} - -#HTTPConfigInitParameters: { - // Authorization configuration in case the HTTP endpoint requires authorization. See Authorization Config. - authorizationConfig?: [...#AuthorizationConfigInitParameters] @go(AuthorizationConfig,[]AuthorizationConfigInitParameters) - - // HTTP URL. - endpoint?: null | string @go(Endpoint,*string) -} - -#HTTPConfigObservation: { - // Authorization configuration in case the HTTP endpoint requires authorization. See Authorization Config. - authorizationConfig?: [...#AuthorizationConfigObservation] @go(AuthorizationConfig,[]AuthorizationConfigObservation) - - // HTTP URL. - endpoint?: null | string @go(Endpoint,*string) -} - -#HTTPConfigParameters: { - // Authorization configuration in case the HTTP endpoint requires authorization. See Authorization Config. - // +kubebuilder:validation:Optional - authorizationConfig?: [...#AuthorizationConfigParameters] @go(AuthorizationConfig,[]AuthorizationConfigParameters) - - // HTTP URL. - // +kubebuilder:validation:Optional - endpoint?: null | string @go(Endpoint,*string) -} - -#HTTPEndpointConfigInitParameters: { - // AWS secret store ARN for database credentials. - awsSecretStoreArn?: null | string @go(AwsSecretStoreArn,*string) - - // Amazon RDS cluster identifier. - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // Logical database name. - databaseName?: null | string @go(DatabaseName,*string) - - // Logical schema name. - schema?: null | string @go(Schema,*string) -} - -#HTTPEndpointConfigObservation: { - // AWS secret store ARN for database credentials. - awsSecretStoreArn?: null | string @go(AwsSecretStoreArn,*string) - - // Amazon RDS cluster identifier. - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // Logical database name. - databaseName?: null | string @go(DatabaseName,*string) - - // AWS Region for RDS HTTP endpoint. Defaults to current region. - region?: null | string @go(Region,*string) - - // Logical schema name. - schema?: null | string @go(Schema,*string) -} - -#HTTPEndpointConfigParameters: { - // AWS secret store ARN for database credentials. - // +kubebuilder:validation:Optional - awsSecretStoreArn?: null | string @go(AwsSecretStoreArn,*string) - - // Amazon RDS cluster identifier. - // +kubebuilder:validation:Optional - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // Logical database name. - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // AWS Region for RDS HTTP endpoint. Defaults to current region. - // +kubebuilder:validation:Optional - region?: null | string @go(Region,*string) - - // Logical schema name. - // +kubebuilder:validation:Optional - schema?: null | string @go(Schema,*string) -} - -#LambdaConfigInitParameters: { - // ARN for the Lambda function. - functionArn?: null | string @go(FunctionArn,*string) -} - -#LambdaConfigObservation: { - // ARN for the Lambda function. - functionArn?: null | string @go(FunctionArn,*string) -} - -#LambdaConfigParameters: { - // ARN for the Lambda function. - // +kubebuilder:validation:Optional - functionArn?: null | string @go(FunctionArn,*string) -} - -#OpensearchserviceConfigInitParameters: { - // HTTP endpoint of the OpenSearch domain. - endpoint?: null | string @go(Endpoint,*string) -} - -#OpensearchserviceConfigObservation: { - // HTTP endpoint of the OpenSearch domain. - endpoint?: null | string @go(Endpoint,*string) - - // AWS region of the OpenSearch domain. Defaults to current region. - region?: null | string @go(Region,*string) -} - -#OpensearchserviceConfigParameters: { - // HTTP endpoint of the OpenSearch domain. - // +kubebuilder:validation:Optional - endpoint?: null | string @go(Endpoint,*string) - - // AWS region of the OpenSearch domain. Defaults to current region. - // +kubebuilder:validation:Optional - region?: null | string @go(Region,*string) -} - -#RelationalDatabaseConfigInitParameters: { - // Amazon RDS HTTP endpoint configuration. See HTTP Endpoint Config. - httpEndpointConfig?: [...#HTTPEndpointConfigInitParameters] @go(HTTPEndpointConfig,[]HTTPEndpointConfigInitParameters) - - // Source type for the relational database. Valid values: RDS_HTTP_ENDPOINT. - sourceType?: null | string @go(SourceType,*string) -} - -#RelationalDatabaseConfigObservation: { - // Amazon RDS HTTP endpoint configuration. See HTTP Endpoint Config. - httpEndpointConfig?: [...#HTTPEndpointConfigObservation] @go(HTTPEndpointConfig,[]HTTPEndpointConfigObservation) - - // Source type for the relational database. Valid values: RDS_HTTP_ENDPOINT. - sourceType?: null | string @go(SourceType,*string) -} - -#RelationalDatabaseConfigParameters: { - // Amazon RDS HTTP endpoint configuration. See HTTP Endpoint Config. - // +kubebuilder:validation:Optional - httpEndpointConfig?: [...#HTTPEndpointConfigParameters] @go(HTTPEndpointConfig,[]HTTPEndpointConfigParameters) - - // Source type for the relational database. Valid values: RDS_HTTP_ENDPOINT. - // +kubebuilder:validation:Optional - sourceType?: null | string @go(SourceType,*string) -} - -// DatasourceSpec defines the desired state of Datasource -#DatasourceSpec: { - v1.#ResourceSpec - forProvider: #DatasourceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DatasourceInitParameters @go(InitProvider) -} - -// DatasourceStatus defines the observed state of Datasource. -#DatasourceStatus: { - v1.#ResourceStatus - atProvider?: #DatasourceObservation @go(AtProvider) -} - -// Datasource is the Schema for the Datasources API. Provides an AppSync Data Source. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Datasource: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #DatasourceSpec @go(Spec) - status?: #DatasourceStatus @go(Status) -} - -// DatasourceList contains a list of Datasources -#DatasourceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Datasource] @go(Items,[]Datasource) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_function_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_function_types_go_gen.cue deleted file mode 100644 index b603786..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_function_types_go_gen.cue +++ /dev/null @@ -1,278 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appsync/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#FunctionInitParameters: { - // The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS. - code?: null | string @go(Code,*string) - - // Function description. - description?: null | string @go(Description,*string) - - // Version of the request mapping template. Currently the supported value is 2018-05-29. Does not apply when specifying code. - functionVersion?: null | string @go(FunctionVersion,*string) - - // Maximum batching size for a resolver. Valid values are between 0 and 2000. - maxBatchSize?: null | float64 @go(MaxBatchSize,*float64) - - // Function name. The function name does not have to be unique. - name?: null | string @go(Name,*string) - - // Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template. - requestMappingTemplate?: null | string @go(RequestMappingTemplate,*string) - - // Function response mapping template. - responseMappingTemplate?: null | string @go(ResponseMappingTemplate,*string) - - // Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified. See Runtime. - runtime?: [...#RuntimeInitParameters] @go(Runtime,[]RuntimeInitParameters) - - // Describes a Sync configuration for a resolver. See Sync Config. - syncConfig?: [...#SyncConfigInitParameters] @go(SyncConfig,[]SyncConfigInitParameters) -} - -#FunctionObservation: { - // ID of the associated AppSync API. - apiId?: null | string @go(APIID,*string) - - // ARN of the Function object. - arn?: null | string @go(Arn,*string) - - // The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS. - code?: null | string @go(Code,*string) - - // Function data source name. - dataSource?: null | string @go(DataSource,*string) - - // Function description. - description?: null | string @go(Description,*string) - - // Unique ID representing the Function object. - functionId?: null | string @go(FunctionID,*string) - - // Version of the request mapping template. Currently the supported value is 2018-05-29. Does not apply when specifying code. - functionVersion?: null | string @go(FunctionVersion,*string) - - // API Function ID (Formatted as ApiId-FunctionId) - id?: null | string @go(ID,*string) - - // Maximum batching size for a resolver. Valid values are between 0 and 2000. - maxBatchSize?: null | float64 @go(MaxBatchSize,*float64) - - // Function name. The function name does not have to be unique. - name?: null | string @go(Name,*string) - - // Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template. - requestMappingTemplate?: null | string @go(RequestMappingTemplate,*string) - - // Function response mapping template. - responseMappingTemplate?: null | string @go(ResponseMappingTemplate,*string) - - // Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified. See Runtime. - runtime?: [...#RuntimeObservation] @go(Runtime,[]RuntimeObservation) - - // Describes a Sync configuration for a resolver. See Sync Config. - syncConfig?: [...#SyncConfigObservation] @go(SyncConfig,[]SyncConfigObservation) -} - -#FunctionParameters: { - // ID of the associated AppSync API. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appsync/v1beta1.GraphQLAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a GraphQLAPI in appsync to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a GraphQLAPI in appsync to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS. - // +kubebuilder:validation:Optional - code?: null | string @go(Code,*string) - - // Function data source name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appsync/v1beta1.Datasource - // +kubebuilder:validation:Optional - dataSource?: null | string @go(DataSource,*string) - - // Reference to a Datasource in appsync to populate dataSource. - // +kubebuilder:validation:Optional - dataSourceRef?: null | v1.#Reference @go(DataSourceRef,*v1.Reference) - - // Selector for a Datasource in appsync to populate dataSource. - // +kubebuilder:validation:Optional - dataSourceSelector?: null | v1.#Selector @go(DataSourceSelector,*v1.Selector) - - // Function description. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Version of the request mapping template. Currently the supported value is 2018-05-29. Does not apply when specifying code. - // +kubebuilder:validation:Optional - functionVersion?: null | string @go(FunctionVersion,*string) - - // Maximum batching size for a resolver. Valid values are between 0 and 2000. - // +kubebuilder:validation:Optional - maxBatchSize?: null | float64 @go(MaxBatchSize,*float64) - - // Function name. The function name does not have to be unique. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template. - // +kubebuilder:validation:Optional - requestMappingTemplate?: null | string @go(RequestMappingTemplate,*string) - - // Function response mapping template. - // +kubebuilder:validation:Optional - responseMappingTemplate?: null | string @go(ResponseMappingTemplate,*string) - - // Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified. See Runtime. - // +kubebuilder:validation:Optional - runtime?: [...#RuntimeParameters] @go(Runtime,[]RuntimeParameters) - - // Describes a Sync configuration for a resolver. See Sync Config. - // +kubebuilder:validation:Optional - syncConfig?: [...#SyncConfigParameters] @go(SyncConfig,[]SyncConfigParameters) -} - -#LambdaConflictHandlerConfigInitParameters: { - // ARN for the Lambda function to use as the Conflict Handler. - lambdaConflictHandlerArn?: null | string @go(LambdaConflictHandlerArn,*string) -} - -#LambdaConflictHandlerConfigObservation: { - // ARN for the Lambda function to use as the Conflict Handler. - lambdaConflictHandlerArn?: null | string @go(LambdaConflictHandlerArn,*string) -} - -#LambdaConflictHandlerConfigParameters: { - // ARN for the Lambda function to use as the Conflict Handler. - // +kubebuilder:validation:Optional - lambdaConflictHandlerArn?: null | string @go(LambdaConflictHandlerArn,*string) -} - -#RuntimeInitParameters: { - // Function name. The function name does not have to be unique. - name?: null | string @go(Name,*string) - - // The version of the runtime to use. Currently, the only allowed version is 1.0.0. - runtimeVersion?: null | string @go(RuntimeVersion,*string) -} - -#RuntimeObservation: { - // Function name. The function name does not have to be unique. - name?: null | string @go(Name,*string) - - // The version of the runtime to use. Currently, the only allowed version is 1.0.0. - runtimeVersion?: null | string @go(RuntimeVersion,*string) -} - -#RuntimeParameters: { - // Function name. The function name does not have to be unique. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The version of the runtime to use. Currently, the only allowed version is 1.0.0. - // +kubebuilder:validation:Optional - runtimeVersion?: null | string @go(RuntimeVersion,*string) -} - -#SyncConfigInitParameters: { - // Conflict Detection strategy to use. Valid values are NONE and VERSION. - conflictDetection?: null | string @go(ConflictDetection,*string) - - // Conflict Resolution strategy to perform in the event of a conflict. Valid values are NONE, OPTIMISTIC_CONCURRENCY, AUTOMERGE, and LAMBDA. - conflictHandler?: null | string @go(ConflictHandler,*string) - - // Lambda Conflict Handler Config when configuring LAMBDA as the Conflict Handler. See Lambda Conflict Handler Config. - lambdaConflictHandlerConfig?: [...#LambdaConflictHandlerConfigInitParameters] @go(LambdaConflictHandlerConfig,[]LambdaConflictHandlerConfigInitParameters) -} - -#SyncConfigObservation: { - // Conflict Detection strategy to use. Valid values are NONE and VERSION. - conflictDetection?: null | string @go(ConflictDetection,*string) - - // Conflict Resolution strategy to perform in the event of a conflict. Valid values are NONE, OPTIMISTIC_CONCURRENCY, AUTOMERGE, and LAMBDA. - conflictHandler?: null | string @go(ConflictHandler,*string) - - // Lambda Conflict Handler Config when configuring LAMBDA as the Conflict Handler. See Lambda Conflict Handler Config. - lambdaConflictHandlerConfig?: [...#LambdaConflictHandlerConfigObservation] @go(LambdaConflictHandlerConfig,[]LambdaConflictHandlerConfigObservation) -} - -#SyncConfigParameters: { - // Conflict Detection strategy to use. Valid values are NONE and VERSION. - // +kubebuilder:validation:Optional - conflictDetection?: null | string @go(ConflictDetection,*string) - - // Conflict Resolution strategy to perform in the event of a conflict. Valid values are NONE, OPTIMISTIC_CONCURRENCY, AUTOMERGE, and LAMBDA. - // +kubebuilder:validation:Optional - conflictHandler?: null | string @go(ConflictHandler,*string) - - // Lambda Conflict Handler Config when configuring LAMBDA as the Conflict Handler. See Lambda Conflict Handler Config. - // +kubebuilder:validation:Optional - lambdaConflictHandlerConfig?: [...#LambdaConflictHandlerConfigParameters] @go(LambdaConflictHandlerConfig,[]LambdaConflictHandlerConfigParameters) -} - -// FunctionSpec defines the desired state of Function -#FunctionSpec: { - v1.#ResourceSpec - forProvider: #FunctionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FunctionInitParameters @go(InitProvider) -} - -// FunctionStatus defines the observed state of Function. -#FunctionStatus: { - v1.#ResourceStatus - atProvider?: #FunctionObservation @go(AtProvider) -} - -// Function is the Schema for the Functions API. Provides an AppSync Function. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Function: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #FunctionSpec @go(Spec) - status?: #FunctionStatus @go(Status) -} - -// FunctionList contains a list of Functions -#FunctionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Function] @go(Items,[]Function) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_graphqlapi_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_graphqlapi_types_go_gen.cue deleted file mode 100644 index b3b081d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_graphqlapi_types_go_gen.cue +++ /dev/null @@ -1,523 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appsync/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AdditionalAuthenticationProviderInitParameters: { - // Authentication type. Valid values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT, AWS_LAMBDA - authenticationType?: null | string @go(AuthenticationType,*string) - - // Nested argument containing Lambda authorizer configuration. Defined below. - lambdaAuthorizerConfig?: [...#LambdaAuthorizerConfigInitParameters] @go(LambdaAuthorizerConfig,[]LambdaAuthorizerConfigInitParameters) - - // Nested argument containing OpenID Connect configuration. Defined below. - openidConnectConfig?: [...#OpenIDConnectConfigInitParameters] @go(OpenIDConnectConfig,[]OpenIDConnectConfigInitParameters) - - // Amazon Cognito User Pool configuration. Defined below. - userPoolConfig?: [...#UserPoolConfigInitParameters] @go(UserPoolConfig,[]UserPoolConfigInitParameters) -} - -#AdditionalAuthenticationProviderObservation: { - // Authentication type. Valid values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT, AWS_LAMBDA - authenticationType?: null | string @go(AuthenticationType,*string) - - // Nested argument containing Lambda authorizer configuration. Defined below. - lambdaAuthorizerConfig?: [...#LambdaAuthorizerConfigObservation] @go(LambdaAuthorizerConfig,[]LambdaAuthorizerConfigObservation) - - // Nested argument containing OpenID Connect configuration. Defined below. - openidConnectConfig?: [...#OpenIDConnectConfigObservation] @go(OpenIDConnectConfig,[]OpenIDConnectConfigObservation) - - // Amazon Cognito User Pool configuration. Defined below. - userPoolConfig?: [...#UserPoolConfigObservation] @go(UserPoolConfig,[]UserPoolConfigObservation) -} - -#AdditionalAuthenticationProviderParameters: { - // Authentication type. Valid values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT, AWS_LAMBDA - // +kubebuilder:validation:Optional - authenticationType?: null | string @go(AuthenticationType,*string) - - // Nested argument containing Lambda authorizer configuration. Defined below. - // +kubebuilder:validation:Optional - lambdaAuthorizerConfig?: [...#LambdaAuthorizerConfigParameters] @go(LambdaAuthorizerConfig,[]LambdaAuthorizerConfigParameters) - - // Nested argument containing OpenID Connect configuration. Defined below. - // +kubebuilder:validation:Optional - openidConnectConfig?: [...#OpenIDConnectConfigParameters] @go(OpenIDConnectConfig,[]OpenIDConnectConfigParameters) - - // Amazon Cognito User Pool configuration. Defined below. - // +kubebuilder:validation:Optional - userPoolConfig?: [...#UserPoolConfigParameters] @go(UserPoolConfig,[]UserPoolConfigParameters) -} - -#GraphQLAPIInitParameters: { - // One or more additional authentication providers for the GraphqlApi. Defined below. - additionalAuthenticationProvider?: [...#AdditionalAuthenticationProviderInitParameters] @go(AdditionalAuthenticationProvider,[]AdditionalAuthenticationProviderInitParameters) - - // Authentication type. Valid values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT, AWS_LAMBDA - authenticationType?: null | string @go(AuthenticationType,*string) - - // Nested argument containing Lambda authorizer configuration. Defined below. - lambdaAuthorizerConfig?: [...#GraphQLAPILambdaAuthorizerConfigInitParameters] @go(LambdaAuthorizerConfig,[]GraphQLAPILambdaAuthorizerConfigInitParameters) - - // Nested argument containing logging configuration. Defined below. - logConfig?: [...#LogConfigInitParameters] @go(LogConfig,[]LogConfigInitParameters) - - // User-supplied name for the GraphqlApi. - name?: null | string @go(Name,*string) - - // Nested argument containing OpenID Connect configuration. Defined below. - openidConnectConfig?: [...#GraphQLAPIOpenIDConnectConfigInitParameters] @go(OpenIDConnectConfig,[]GraphQLAPIOpenIDConnectConfigInitParameters) - - // Schema definition, in GraphQL schema language format. - schema?: null | string @go(Schema,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Amazon Cognito User Pool configuration. Defined below. - userPoolConfig?: [...#GraphQLAPIUserPoolConfigInitParameters] @go(UserPoolConfig,[]GraphQLAPIUserPoolConfigInitParameters) - - // Whether tracing with X-ray is enabled. Defaults to false. - xrayEnabled?: null | bool @go(XrayEnabled,*bool) -} - -#GraphQLAPILambdaAuthorizerConfigInitParameters: { - // Number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a ttlOverride key in its response. A value of 0 disables caching of responses. Minimum value of 0. Maximum value of 3600. - authorizerResultTtlInSeconds?: null | float64 @go(AuthorizerResultTTLInSeconds,*float64) - - // ARN of the Lambda function to be called for authorization. Note: This Lambda function must have a resource-based policy assigned to it, to allow lambda:InvokeFunction from service principal appsync.amazonaws.com. - authorizerUri?: null | string @go(AuthorizerURI,*string) - - // Regular expression for validation of tokens before the Lambda function is called. - identityValidationExpression?: null | string @go(IdentityValidationExpression,*string) -} - -#GraphQLAPILambdaAuthorizerConfigObservation: { - // Number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a ttlOverride key in its response. A value of 0 disables caching of responses. Minimum value of 0. Maximum value of 3600. - authorizerResultTtlInSeconds?: null | float64 @go(AuthorizerResultTTLInSeconds,*float64) - - // ARN of the Lambda function to be called for authorization. Note: This Lambda function must have a resource-based policy assigned to it, to allow lambda:InvokeFunction from service principal appsync.amazonaws.com. - authorizerUri?: null | string @go(AuthorizerURI,*string) - - // Regular expression for validation of tokens before the Lambda function is called. - identityValidationExpression?: null | string @go(IdentityValidationExpression,*string) -} - -#GraphQLAPILambdaAuthorizerConfigParameters: { - // Number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a ttlOverride key in its response. A value of 0 disables caching of responses. Minimum value of 0. Maximum value of 3600. - // +kubebuilder:validation:Optional - authorizerResultTtlInSeconds?: null | float64 @go(AuthorizerResultTTLInSeconds,*float64) - - // ARN of the Lambda function to be called for authorization. Note: This Lambda function must have a resource-based policy assigned to it, to allow lambda:InvokeFunction from service principal appsync.amazonaws.com. - // +kubebuilder:validation:Optional - authorizerUri?: null | string @go(AuthorizerURI,*string) - - // Regular expression for validation of tokens before the Lambda function is called. - // +kubebuilder:validation:Optional - identityValidationExpression?: null | string @go(IdentityValidationExpression,*string) -} - -#GraphQLAPIObservation: { - // One or more additional authentication providers for the GraphqlApi. Defined below. - additionalAuthenticationProvider?: [...#AdditionalAuthenticationProviderObservation] @go(AdditionalAuthenticationProvider,[]AdditionalAuthenticationProviderObservation) - - // ARN - arn?: null | string @go(Arn,*string) - - // Authentication type. Valid values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT, AWS_LAMBDA - authenticationType?: null | string @go(AuthenticationType,*string) - - // API ID - id?: null | string @go(ID,*string) - - // Nested argument containing Lambda authorizer configuration. Defined below. - lambdaAuthorizerConfig?: [...#GraphQLAPILambdaAuthorizerConfigObservation] @go(LambdaAuthorizerConfig,[]GraphQLAPILambdaAuthorizerConfigObservation) - - // Nested argument containing logging configuration. Defined below. - logConfig?: [...#LogConfigObservation] @go(LogConfig,[]LogConfigObservation) - - // User-supplied name for the GraphqlApi. - name?: null | string @go(Name,*string) - - // Nested argument containing OpenID Connect configuration. Defined below. - openidConnectConfig?: [...#GraphQLAPIOpenIDConnectConfigObservation] @go(OpenIDConnectConfig,[]GraphQLAPIOpenIDConnectConfigObservation) - - // Schema definition, in GraphQL schema language format. - schema?: null | string @go(Schema,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Map of URIs associated with the APIE.g., uris["GRAPHQL"] = https://ID.appsync-api.REGION.amazonaws.com/graphql - uris?: {[string]: null | string} @go(Uris,map[string]*string) - - // Amazon Cognito User Pool configuration. Defined below. - userPoolConfig?: [...#GraphQLAPIUserPoolConfigObservation] @go(UserPoolConfig,[]GraphQLAPIUserPoolConfigObservation) - - // Whether tracing with X-ray is enabled. Defaults to false. - xrayEnabled?: null | bool @go(XrayEnabled,*bool) -} - -#GraphQLAPIOpenIDConnectConfigInitParameters: { - // Number of milliseconds a token is valid after being authenticated. - authTtl?: null | float64 @go(AuthTTL,*float64) - - // Client identifier of the Relying party at the OpenID identity provider. This identifier is typically obtained when the Relying party is registered with the OpenID identity provider. You can specify a regular expression so the AWS AppSync can validate against multiple client identifiers at a time. - clientId?: null | string @go(ClientID,*string) - - // Number of milliseconds a token is valid after being issued to a user. - iatTtl?: null | float64 @go(IatTTL,*float64) - - // Issuer for the OpenID Connect configuration. The issuer returned by discovery MUST exactly match the value of iss in the ID Token. - issuer?: null | string @go(Issuer,*string) -} - -#GraphQLAPIOpenIDConnectConfigObservation: { - // Number of milliseconds a token is valid after being authenticated. - authTtl?: null | float64 @go(AuthTTL,*float64) - - // Client identifier of the Relying party at the OpenID identity provider. This identifier is typically obtained when the Relying party is registered with the OpenID identity provider. You can specify a regular expression so the AWS AppSync can validate against multiple client identifiers at a time. - clientId?: null | string @go(ClientID,*string) - - // Number of milliseconds a token is valid after being issued to a user. - iatTtl?: null | float64 @go(IatTTL,*float64) - - // Issuer for the OpenID Connect configuration. The issuer returned by discovery MUST exactly match the value of iss in the ID Token. - issuer?: null | string @go(Issuer,*string) -} - -#GraphQLAPIOpenIDConnectConfigParameters: { - // Number of milliseconds a token is valid after being authenticated. - // +kubebuilder:validation:Optional - authTtl?: null | float64 @go(AuthTTL,*float64) - - // Client identifier of the Relying party at the OpenID identity provider. This identifier is typically obtained when the Relying party is registered with the OpenID identity provider. You can specify a regular expression so the AWS AppSync can validate against multiple client identifiers at a time. - // +kubebuilder:validation:Optional - clientId?: null | string @go(ClientID,*string) - - // Number of milliseconds a token is valid after being issued to a user. - // +kubebuilder:validation:Optional - iatTtl?: null | float64 @go(IatTTL,*float64) - - // Issuer for the OpenID Connect configuration. The issuer returned by discovery MUST exactly match the value of iss in the ID Token. - // +kubebuilder:validation:Optional - issuer?: null | string @go(Issuer,*string) -} - -#GraphQLAPIParameters: { - // One or more additional authentication providers for the GraphqlApi. Defined below. - // +kubebuilder:validation:Optional - additionalAuthenticationProvider?: [...#AdditionalAuthenticationProviderParameters] @go(AdditionalAuthenticationProvider,[]AdditionalAuthenticationProviderParameters) - - // Authentication type. Valid values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT, AWS_LAMBDA - // +kubebuilder:validation:Optional - authenticationType?: null | string @go(AuthenticationType,*string) - - // Nested argument containing Lambda authorizer configuration. Defined below. - // +kubebuilder:validation:Optional - lambdaAuthorizerConfig?: [...#GraphQLAPILambdaAuthorizerConfigParameters] @go(LambdaAuthorizerConfig,[]GraphQLAPILambdaAuthorizerConfigParameters) - - // Nested argument containing logging configuration. Defined below. - // +kubebuilder:validation:Optional - logConfig?: [...#LogConfigParameters] @go(LogConfig,[]LogConfigParameters) - - // User-supplied name for the GraphqlApi. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Nested argument containing OpenID Connect configuration. Defined below. - // +kubebuilder:validation:Optional - openidConnectConfig?: [...#GraphQLAPIOpenIDConnectConfigParameters] @go(OpenIDConnectConfig,[]GraphQLAPIOpenIDConnectConfigParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Schema definition, in GraphQL schema language format. - // +kubebuilder:validation:Optional - schema?: null | string @go(Schema,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Amazon Cognito User Pool configuration. Defined below. - // +kubebuilder:validation:Optional - userPoolConfig?: [...#GraphQLAPIUserPoolConfigParameters] @go(UserPoolConfig,[]GraphQLAPIUserPoolConfigParameters) - - // Whether tracing with X-ray is enabled. Defaults to false. - // +kubebuilder:validation:Optional - xrayEnabled?: null | bool @go(XrayEnabled,*bool) -} - -#GraphQLAPIUserPoolConfigInitParameters: { - // Regular expression for validating the incoming Amazon Cognito User Pool app client ID. - appIdClientRegex?: null | string @go(AppIDClientRegex,*string) - - // AWS region in which the user pool was created. - awsRegion?: null | string @go(AwsRegion,*string) - - // Action that you want your GraphQL API to take when a request that uses Amazon Cognito User Pool authentication doesn't match the Amazon Cognito User Pool configuration. Valid: ALLOW and DENY - defaultAction?: null | string @go(DefaultAction,*string) -} - -#GraphQLAPIUserPoolConfigObservation: { - // Regular expression for validating the incoming Amazon Cognito User Pool app client ID. - appIdClientRegex?: null | string @go(AppIDClientRegex,*string) - - // AWS region in which the user pool was created. - awsRegion?: null | string @go(AwsRegion,*string) - - // Action that you want your GraphQL API to take when a request that uses Amazon Cognito User Pool authentication doesn't match the Amazon Cognito User Pool configuration. Valid: ALLOW and DENY - defaultAction?: null | string @go(DefaultAction,*string) - - // User pool ID. - userPoolId?: null | string @go(UserPoolID,*string) -} - -#GraphQLAPIUserPoolConfigParameters: { - // Regular expression for validating the incoming Amazon Cognito User Pool app client ID. - // +kubebuilder:validation:Optional - appIdClientRegex?: null | string @go(AppIDClientRegex,*string) - - // AWS region in which the user pool was created. - // +kubebuilder:validation:Optional - awsRegion?: null | string @go(AwsRegion,*string) - - // Action that you want your GraphQL API to take when a request that uses Amazon Cognito User Pool authentication doesn't match the Amazon Cognito User Pool configuration. Valid: ALLOW and DENY - // +kubebuilder:validation:Optional - defaultAction?: null | string @go(DefaultAction,*string) - - // User pool ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPool - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) - - // Reference to a UserPool in cognitoidp to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdRef?: null | v1.#Reference @go(UserPoolIDRef,*v1.Reference) - - // Selector for a UserPool in cognitoidp to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdSelector?: null | v1.#Selector @go(UserPoolIDSelector,*v1.Selector) -} - -#LambdaAuthorizerConfigInitParameters: { - // Number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a ttlOverride key in its response. A value of 0 disables caching of responses. Minimum value of 0. Maximum value of 3600. - authorizerResultTtlInSeconds?: null | float64 @go(AuthorizerResultTTLInSeconds,*float64) - - // ARN of the Lambda function to be called for authorization. Note: This Lambda function must have a resource-based policy assigned to it, to allow lambda:InvokeFunction from service principal appsync.amazonaws.com. - authorizerUri?: null | string @go(AuthorizerURI,*string) - - // Regular expression for validation of tokens before the Lambda function is called. - identityValidationExpression?: null | string @go(IdentityValidationExpression,*string) -} - -#LambdaAuthorizerConfigObservation: { - // Number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a ttlOverride key in its response. A value of 0 disables caching of responses. Minimum value of 0. Maximum value of 3600. - authorizerResultTtlInSeconds?: null | float64 @go(AuthorizerResultTTLInSeconds,*float64) - - // ARN of the Lambda function to be called for authorization. Note: This Lambda function must have a resource-based policy assigned to it, to allow lambda:InvokeFunction from service principal appsync.amazonaws.com. - authorizerUri?: null | string @go(AuthorizerURI,*string) - - // Regular expression for validation of tokens before the Lambda function is called. - identityValidationExpression?: null | string @go(IdentityValidationExpression,*string) -} - -#LambdaAuthorizerConfigParameters: { - // Number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a ttlOverride key in its response. A value of 0 disables caching of responses. Minimum value of 0. Maximum value of 3600. - // +kubebuilder:validation:Optional - authorizerResultTtlInSeconds?: null | float64 @go(AuthorizerResultTTLInSeconds,*float64) - - // ARN of the Lambda function to be called for authorization. Note: This Lambda function must have a resource-based policy assigned to it, to allow lambda:InvokeFunction from service principal appsync.amazonaws.com. - // +kubebuilder:validation:Optional - authorizerUri?: null | string @go(AuthorizerURI,*string) - - // Regular expression for validation of tokens before the Lambda function is called. - // +kubebuilder:validation:Optional - identityValidationExpression?: null | string @go(IdentityValidationExpression,*string) -} - -#LogConfigInitParameters: { - // Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level. Valid values: true, false. Default value: false - excludeVerboseContent?: null | bool @go(ExcludeVerboseContent,*bool) - - // Field logging level. Valid values: ALL, ERROR, NONE. - fieldLogLevel?: null | string @go(FieldLogLevel,*string) -} - -#LogConfigObservation: { - // Amazon Resource Name of the service role that AWS AppSync will assume to publish to Amazon CloudWatch logs in your account. - cloudwatchLogsRoleArn?: null | string @go(CloudwatchLogsRoleArn,*string) - - // Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level. Valid values: true, false. Default value: false - excludeVerboseContent?: null | bool @go(ExcludeVerboseContent,*bool) - - // Field logging level. Valid values: ALL, ERROR, NONE. - fieldLogLevel?: null | string @go(FieldLogLevel,*string) -} - -#LogConfigParameters: { - // Amazon Resource Name of the service role that AWS AppSync will assume to publish to Amazon CloudWatch logs in your account. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - cloudwatchLogsRoleArn?: null | string @go(CloudwatchLogsRoleArn,*string) - - // Reference to a Role in iam to populate cloudwatchLogsRoleArn. - // +kubebuilder:validation:Optional - cloudwatchLogsRoleArnRef?: null | v1.#Reference @go(CloudwatchLogsRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate cloudwatchLogsRoleArn. - // +kubebuilder:validation:Optional - cloudwatchLogsRoleArnSelector?: null | v1.#Selector @go(CloudwatchLogsRoleArnSelector,*v1.Selector) - - // Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level. Valid values: true, false. Default value: false - // +kubebuilder:validation:Optional - excludeVerboseContent?: null | bool @go(ExcludeVerboseContent,*bool) - - // Field logging level. Valid values: ALL, ERROR, NONE. - // +kubebuilder:validation:Optional - fieldLogLevel?: null | string @go(FieldLogLevel,*string) -} - -#OpenIDConnectConfigInitParameters: { - // Number of milliseconds a token is valid after being authenticated. - authTtl?: null | float64 @go(AuthTTL,*float64) - - // Client identifier of the Relying party at the OpenID identity provider. This identifier is typically obtained when the Relying party is registered with the OpenID identity provider. You can specify a regular expression so the AWS AppSync can validate against multiple client identifiers at a time. - clientId?: null | string @go(ClientID,*string) - - // Number of milliseconds a token is valid after being issued to a user. - iatTtl?: null | float64 @go(IatTTL,*float64) - - // Issuer for the OpenID Connect configuration. The issuer returned by discovery MUST exactly match the value of iss in the ID Token. - issuer?: null | string @go(Issuer,*string) -} - -#OpenIDConnectConfigObservation: { - // Number of milliseconds a token is valid after being authenticated. - authTtl?: null | float64 @go(AuthTTL,*float64) - - // Client identifier of the Relying party at the OpenID identity provider. This identifier is typically obtained when the Relying party is registered with the OpenID identity provider. You can specify a regular expression so the AWS AppSync can validate against multiple client identifiers at a time. - clientId?: null | string @go(ClientID,*string) - - // Number of milliseconds a token is valid after being issued to a user. - iatTtl?: null | float64 @go(IatTTL,*float64) - - // Issuer for the OpenID Connect configuration. The issuer returned by discovery MUST exactly match the value of iss in the ID Token. - issuer?: null | string @go(Issuer,*string) -} - -#OpenIDConnectConfigParameters: { - // Number of milliseconds a token is valid after being authenticated. - // +kubebuilder:validation:Optional - authTtl?: null | float64 @go(AuthTTL,*float64) - - // Client identifier of the Relying party at the OpenID identity provider. This identifier is typically obtained when the Relying party is registered with the OpenID identity provider. You can specify a regular expression so the AWS AppSync can validate against multiple client identifiers at a time. - // +kubebuilder:validation:Optional - clientId?: null | string @go(ClientID,*string) - - // Number of milliseconds a token is valid after being issued to a user. - // +kubebuilder:validation:Optional - iatTtl?: null | float64 @go(IatTTL,*float64) - - // Issuer for the OpenID Connect configuration. The issuer returned by discovery MUST exactly match the value of iss in the ID Token. - // +kubebuilder:validation:Optional - issuer?: null | string @go(Issuer,*string) -} - -#UserPoolConfigInitParameters: { - // Regular expression for validating the incoming Amazon Cognito User Pool app client ID. - appIdClientRegex?: null | string @go(AppIDClientRegex,*string) - - // AWS region in which the user pool was created. - awsRegion?: null | string @go(AwsRegion,*string) - - // User pool ID. - userPoolId?: null | string @go(UserPoolID,*string) -} - -#UserPoolConfigObservation: { - // Regular expression for validating the incoming Amazon Cognito User Pool app client ID. - appIdClientRegex?: null | string @go(AppIDClientRegex,*string) - - // AWS region in which the user pool was created. - awsRegion?: null | string @go(AwsRegion,*string) - - // User pool ID. - userPoolId?: null | string @go(UserPoolID,*string) -} - -#UserPoolConfigParameters: { - // Regular expression for validating the incoming Amazon Cognito User Pool app client ID. - // +kubebuilder:validation:Optional - appIdClientRegex?: null | string @go(AppIDClientRegex,*string) - - // AWS region in which the user pool was created. - // +kubebuilder:validation:Optional - awsRegion?: null | string @go(AwsRegion,*string) - - // User pool ID. - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) -} - -// GraphQLAPISpec defines the desired state of GraphQLAPI -#GraphQLAPISpec: { - v1.#ResourceSpec - forProvider: #GraphQLAPIParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GraphQLAPIInitParameters @go(InitProvider) -} - -// GraphQLAPIStatus defines the observed state of GraphQLAPI. -#GraphQLAPIStatus: { - v1.#ResourceStatus - atProvider?: #GraphQLAPIObservation @go(AtProvider) -} - -// GraphQLAPI is the Schema for the GraphQLAPIs API. Provides an AppSync GraphQL API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GraphQLAPI: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.authenticationType) || (has(self.initProvider) && has(self.initProvider.authenticationType))",message="spec.forProvider.authenticationType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #GraphQLAPISpec @go(Spec) - status?: #GraphQLAPIStatus @go(Status) -} - -// GraphQLAPIList contains a list of GraphQLAPIs -#GraphQLAPIList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GraphQLAPI] @go(Items,[]GraphQLAPI) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 8b29014..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appsync/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=appsync.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "appsync.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_resolver_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_resolver_types_go_gen.cue deleted file mode 100644 index cd9e932..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/appsync/v1beta1/zz_resolver_types_go_gen.cue +++ /dev/null @@ -1,327 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/appsync/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CachingConfigInitParameters: { - // The caching keys for a resolver that has caching activated. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps. - cachingKeys?: [...null | string] @go(CachingKeys,[]*string) - - // The TTL in seconds for a resolver that has caching activated. Valid values are between 1 and 3600 seconds. - ttl?: null | float64 @go(TTL,*float64) -} - -#CachingConfigObservation: { - // The caching keys for a resolver that has caching activated. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps. - cachingKeys?: [...null | string] @go(CachingKeys,[]*string) - - // The TTL in seconds for a resolver that has caching activated. Valid values are between 1 and 3600 seconds. - ttl?: null | float64 @go(TTL,*float64) -} - -#CachingConfigParameters: { - // The caching keys for a resolver that has caching activated. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps. - // +kubebuilder:validation:Optional - cachingKeys?: [...null | string] @go(CachingKeys,[]*string) - - // The TTL in seconds for a resolver that has caching activated. Valid values are between 1 and 3600 seconds. - // +kubebuilder:validation:Optional - ttl?: null | float64 @go(TTL,*float64) -} - -#PipelineConfigInitParameters: { - // A list of Function objects. - functions?: [...null | string] @go(Functions,[]*string) -} - -#PipelineConfigObservation: { - // A list of Function objects. - functions?: [...null | string] @go(Functions,[]*string) -} - -#PipelineConfigParameters: { - // A list of Function objects. - // +kubebuilder:validation:Optional - functions?: [...null | string] @go(Functions,[]*string) -} - -#ResolverInitParameters: { - // The Caching Config. See Caching Config. - cachingConfig?: [...#CachingConfigInitParameters] @go(CachingConfig,[]CachingConfigInitParameters) - - // The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS. - code?: null | string @go(Code,*string) - - // Resolver type. Valid values are UNIT and PIPELINE. - kind?: null | string @go(Kind,*string) - - // Maximum batching size for a resolver. Valid values are between 0 and 2000. - maxBatchSize?: null | float64 @go(MaxBatchSize,*float64) - - // The caching configuration for the resolver. See Pipeline Config. - pipelineConfig?: [...#PipelineConfigInitParameters] @go(PipelineConfig,[]PipelineConfigInitParameters) - - // Request mapping template for UNIT resolver or 'before mapping template' for PIPELINE resolver. Required for non-Lambda resolvers. - requestTemplate?: null | string @go(RequestTemplate,*string) - - // Response mapping template for UNIT resolver or 'after mapping template' for PIPELINE resolver. Required for non-Lambda resolvers. - responseTemplate?: null | string @go(ResponseTemplate,*string) - - // Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified. See Runtime. - runtime?: [...#ResolverRuntimeInitParameters] @go(Runtime,[]ResolverRuntimeInitParameters) - - // Describes a Sync configuration for a resolver. See Sync Config. - syncConfig?: [...#ResolverSyncConfigInitParameters] @go(SyncConfig,[]ResolverSyncConfigInitParameters) -} - -#ResolverObservation: { - // API ID for the GraphQL API. - apiId?: null | string @go(APIID,*string) - - // ARN - arn?: null | string @go(Arn,*string) - - // The Caching Config. See Caching Config. - cachingConfig?: [...#CachingConfigObservation] @go(CachingConfig,[]CachingConfigObservation) - - // The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS. - code?: null | string @go(Code,*string) - - // Data source name. - dataSource?: null | string @go(DataSource,*string) - - // Field name from the schema defined in the GraphQL API. - field?: null | string @go(Field,*string) - id?: null | string @go(ID,*string) - - // Resolver type. Valid values are UNIT and PIPELINE. - kind?: null | string @go(Kind,*string) - - // Maximum batching size for a resolver. Valid values are between 0 and 2000. - maxBatchSize?: null | float64 @go(MaxBatchSize,*float64) - - // The caching configuration for the resolver. See Pipeline Config. - pipelineConfig?: [...#PipelineConfigObservation] @go(PipelineConfig,[]PipelineConfigObservation) - - // Request mapping template for UNIT resolver or 'before mapping template' for PIPELINE resolver. Required for non-Lambda resolvers. - requestTemplate?: null | string @go(RequestTemplate,*string) - - // Response mapping template for UNIT resolver or 'after mapping template' for PIPELINE resolver. Required for non-Lambda resolvers. - responseTemplate?: null | string @go(ResponseTemplate,*string) - - // Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified. See Runtime. - runtime?: [...#ResolverRuntimeObservation] @go(Runtime,[]ResolverRuntimeObservation) - - // Describes a Sync configuration for a resolver. See Sync Config. - syncConfig?: [...#ResolverSyncConfigObservation] @go(SyncConfig,[]ResolverSyncConfigObservation) - - // Type name from the schema defined in the GraphQL API. - type?: null | string @go(Type,*string) -} - -#ResolverParameters: { - // API ID for the GraphQL API. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appsync/v1beta1.GraphQLAPI - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - apiId?: null | string @go(APIID,*string) - - // Reference to a GraphQLAPI in appsync to populate apiId. - // +kubebuilder:validation:Optional - apiIdRef?: null | v1.#Reference @go(APIIDRef,*v1.Reference) - - // Selector for a GraphQLAPI in appsync to populate apiId. - // +kubebuilder:validation:Optional - apiIdSelector?: null | v1.#Selector @go(APIIDSelector,*v1.Selector) - - // The Caching Config. See Caching Config. - // +kubebuilder:validation:Optional - cachingConfig?: [...#CachingConfigParameters] @go(CachingConfig,[]CachingConfigParameters) - - // The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS. - // +kubebuilder:validation:Optional - code?: null | string @go(Code,*string) - - // Data source name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appsync/v1beta1.Datasource - // +kubebuilder:validation:Optional - dataSource?: null | string @go(DataSource,*string) - - // Reference to a Datasource in appsync to populate dataSource. - // +kubebuilder:validation:Optional - dataSourceRef?: null | v1.#Reference @go(DataSourceRef,*v1.Reference) - - // Selector for a Datasource in appsync to populate dataSource. - // +kubebuilder:validation:Optional - dataSourceSelector?: null | v1.#Selector @go(DataSourceSelector,*v1.Selector) - - // Field name from the schema defined in the GraphQL API. - // +kubebuilder:validation:Required - field?: null | string @go(Field,*string) - - // Resolver type. Valid values are UNIT and PIPELINE. - // +kubebuilder:validation:Optional - kind?: null | string @go(Kind,*string) - - // Maximum batching size for a resolver. Valid values are between 0 and 2000. - // +kubebuilder:validation:Optional - maxBatchSize?: null | float64 @go(MaxBatchSize,*float64) - - // The caching configuration for the resolver. See Pipeline Config. - // +kubebuilder:validation:Optional - pipelineConfig?: [...#PipelineConfigParameters] @go(PipelineConfig,[]PipelineConfigParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Request mapping template for UNIT resolver or 'before mapping template' for PIPELINE resolver. Required for non-Lambda resolvers. - // +kubebuilder:validation:Optional - requestTemplate?: null | string @go(RequestTemplate,*string) - - // Response mapping template for UNIT resolver or 'after mapping template' for PIPELINE resolver. Required for non-Lambda resolvers. - // +kubebuilder:validation:Optional - responseTemplate?: null | string @go(ResponseTemplate,*string) - - // Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified. See Runtime. - // +kubebuilder:validation:Optional - runtime?: [...#ResolverRuntimeParameters] @go(Runtime,[]ResolverRuntimeParameters) - - // Describes a Sync configuration for a resolver. See Sync Config. - // +kubebuilder:validation:Optional - syncConfig?: [...#ResolverSyncConfigParameters] @go(SyncConfig,[]ResolverSyncConfigParameters) - - // Type name from the schema defined in the GraphQL API. - // +kubebuilder:validation:Required - type?: null | string @go(Type,*string) -} - -#ResolverRuntimeInitParameters: { - // The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS. - name?: null | string @go(Name,*string) - - // The version of the runtime to use. Currently, the only allowed version is 1.0.0. - runtimeVersion?: null | string @go(RuntimeVersion,*string) -} - -#ResolverRuntimeObservation: { - // The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS. - name?: null | string @go(Name,*string) - - // The version of the runtime to use. Currently, the only allowed version is 1.0.0. - runtimeVersion?: null | string @go(RuntimeVersion,*string) -} - -#ResolverRuntimeParameters: { - // The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The version of the runtime to use. Currently, the only allowed version is 1.0.0. - // +kubebuilder:validation:Optional - runtimeVersion?: null | string @go(RuntimeVersion,*string) -} - -#ResolverSyncConfigInitParameters: { - // Conflict Detection strategy to use. Valid values are NONE and VERSION. - conflictDetection?: null | string @go(ConflictDetection,*string) - - // Conflict Resolution strategy to perform in the event of a conflict. Valid values are NONE, OPTIMISTIC_CONCURRENCY, AUTOMERGE, and LAMBDA. - conflictHandler?: null | string @go(ConflictHandler,*string) - - // Lambda Conflict Handler Config when configuring LAMBDA as the Conflict Handler. See Lambda Conflict Handler Config. - lambdaConflictHandlerConfig?: [...#SyncConfigLambdaConflictHandlerConfigInitParameters] @go(LambdaConflictHandlerConfig,[]SyncConfigLambdaConflictHandlerConfigInitParameters) -} - -#ResolverSyncConfigObservation: { - // Conflict Detection strategy to use. Valid values are NONE and VERSION. - conflictDetection?: null | string @go(ConflictDetection,*string) - - // Conflict Resolution strategy to perform in the event of a conflict. Valid values are NONE, OPTIMISTIC_CONCURRENCY, AUTOMERGE, and LAMBDA. - conflictHandler?: null | string @go(ConflictHandler,*string) - - // Lambda Conflict Handler Config when configuring LAMBDA as the Conflict Handler. See Lambda Conflict Handler Config. - lambdaConflictHandlerConfig?: [...#SyncConfigLambdaConflictHandlerConfigObservation] @go(LambdaConflictHandlerConfig,[]SyncConfigLambdaConflictHandlerConfigObservation) -} - -#ResolverSyncConfigParameters: { - // Conflict Detection strategy to use. Valid values are NONE and VERSION. - // +kubebuilder:validation:Optional - conflictDetection?: null | string @go(ConflictDetection,*string) - - // Conflict Resolution strategy to perform in the event of a conflict. Valid values are NONE, OPTIMISTIC_CONCURRENCY, AUTOMERGE, and LAMBDA. - // +kubebuilder:validation:Optional - conflictHandler?: null | string @go(ConflictHandler,*string) - - // Lambda Conflict Handler Config when configuring LAMBDA as the Conflict Handler. See Lambda Conflict Handler Config. - // +kubebuilder:validation:Optional - lambdaConflictHandlerConfig?: [...#SyncConfigLambdaConflictHandlerConfigParameters] @go(LambdaConflictHandlerConfig,[]SyncConfigLambdaConflictHandlerConfigParameters) -} - -#SyncConfigLambdaConflictHandlerConfigInitParameters: { - // ARN for the Lambda function to use as the Conflict Handler. - lambdaConflictHandlerArn?: null | string @go(LambdaConflictHandlerArn,*string) -} - -#SyncConfigLambdaConflictHandlerConfigObservation: { - // ARN for the Lambda function to use as the Conflict Handler. - lambdaConflictHandlerArn?: null | string @go(LambdaConflictHandlerArn,*string) -} - -#SyncConfigLambdaConflictHandlerConfigParameters: { - // ARN for the Lambda function to use as the Conflict Handler. - // +kubebuilder:validation:Optional - lambdaConflictHandlerArn?: null | string @go(LambdaConflictHandlerArn,*string) -} - -// ResolverSpec defines the desired state of Resolver -#ResolverSpec: { - v1.#ResourceSpec - forProvider: #ResolverParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResolverInitParameters @go(InitProvider) -} - -// ResolverStatus defines the observed state of Resolver. -#ResolverStatus: { - v1.#ResourceStatus - atProvider?: #ResolverObservation @go(AtProvider) -} - -// Resolver is the Schema for the Resolvers API. Provides an AppSync Resolver. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Resolver: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ResolverSpec @go(Spec) - status?: #ResolverStatus @go(Status) -} - -// ResolverList contains a list of Resolvers -#ResolverList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Resolver] @go(Items,[]Resolver) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_database_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_database_types_go_gen.cue deleted file mode 100644 index 7dd89c7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_database_types_go_gen.cue +++ /dev/null @@ -1,188 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/athena/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ACLConfigurationInitParameters: { - // Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is BUCKET_OWNER_FULL_CONTROL. - s3AclOption?: null | string @go(S3ACLOption,*string) -} - -#ACLConfigurationObservation: { - // Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is BUCKET_OWNER_FULL_CONTROL. - s3AclOption?: null | string @go(S3ACLOption,*string) -} - -#ACLConfigurationParameters: { - // Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is BUCKET_OWNER_FULL_CONTROL. - // +kubebuilder:validation:Optional - s3AclOption?: null | string @go(S3ACLOption,*string) -} - -#DatabaseInitParameters: { - // That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below. - aclConfiguration?: [...#ACLConfigurationInitParameters] @go(ACLConfiguration,[]ACLConfigurationInitParameters) - - // Description of the database. - comment?: null | string @go(Comment,*string) - - // Encryption key block AWS Athena uses to decrypt the data in S3, such as an AWS Key Management Service (AWS KMS) key. See Encryption Configuration below. - encryptionConfiguration?: [...#EncryptionConfigurationInitParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationInitParameters) - - // AWS account ID that you expect to be the owner of the Amazon S3 bucket. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Boolean that indicates all tables should be deleted from the database so that the database can be destroyed without error. The tables are not recoverable. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Key-value map of custom metadata properties for the database definition. - properties?: {[string]: null | string} @go(Properties,map[string]*string) -} - -#DatabaseObservation: { - // That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below. - aclConfiguration?: [...#ACLConfigurationObservation] @go(ACLConfiguration,[]ACLConfigurationObservation) - - // Name of S3 bucket to save the results of the query execution. - bucket?: null | string @go(Bucket,*string) - - // Description of the database. - comment?: null | string @go(Comment,*string) - - // Encryption key block AWS Athena uses to decrypt the data in S3, such as an AWS Key Management Service (AWS KMS) key. See Encryption Configuration below. - encryptionConfiguration?: [...#EncryptionConfigurationObservation] @go(EncryptionConfiguration,[]EncryptionConfigurationObservation) - - // AWS account ID that you expect to be the owner of the Amazon S3 bucket. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Boolean that indicates all tables should be deleted from the database so that the database can be destroyed without error. The tables are not recoverable. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Database name - id?: null | string @go(ID,*string) - - // Key-value map of custom metadata properties for the database definition. - properties?: {[string]: null | string} @go(Properties,map[string]*string) -} - -#DatabaseParameters: { - // That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below. - // +kubebuilder:validation:Optional - aclConfiguration?: [...#ACLConfigurationParameters] @go(ACLConfiguration,[]ACLConfigurationParameters) - - // Name of S3 bucket to save the results of the query execution. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Description of the database. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // Encryption key block AWS Athena uses to decrypt the data in S3, such as an AWS Key Management Service (AWS KMS) key. See Encryption Configuration below. - // +kubebuilder:validation:Optional - encryptionConfiguration?: [...#EncryptionConfigurationParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationParameters) - - // AWS account ID that you expect to be the owner of the Amazon S3 bucket. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Boolean that indicates all tables should be deleted from the database so that the database can be destroyed without error. The tables are not recoverable. - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Key-value map of custom metadata properties for the database definition. - // +kubebuilder:validation:Optional - properties?: {[string]: null | string} @go(Properties,map[string]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#EncryptionConfigurationInitParameters: { - // Type of key; one of SSE_S3, SSE_KMS, CSE_KMS - encryptionOption?: null | string @go(EncryptionOption,*string) - - // KMS key ARN or ID; required for key types SSE_KMS and CSE_KMS. - kmsKey?: null | string @go(KMSKey,*string) -} - -#EncryptionConfigurationObservation: { - // Type of key; one of SSE_S3, SSE_KMS, CSE_KMS - encryptionOption?: null | string @go(EncryptionOption,*string) - - // KMS key ARN or ID; required for key types SSE_KMS and CSE_KMS. - kmsKey?: null | string @go(KMSKey,*string) -} - -#EncryptionConfigurationParameters: { - // Type of key; one of SSE_S3, SSE_KMS, CSE_KMS - // +kubebuilder:validation:Optional - encryptionOption?: null | string @go(EncryptionOption,*string) - - // KMS key ARN or ID; required for key types SSE_KMS and CSE_KMS. - // +kubebuilder:validation:Optional - kmsKey?: null | string @go(KMSKey,*string) -} - -// DatabaseSpec defines the desired state of Database -#DatabaseSpec: { - v1.#ResourceSpec - forProvider: #DatabaseParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DatabaseInitParameters @go(InitProvider) -} - -// DatabaseStatus defines the observed state of Database. -#DatabaseStatus: { - v1.#ResourceStatus - atProvider?: #DatabaseObservation @go(AtProvider) -} - -// Database is the Schema for the Databases API. Provides an Athena database. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Database: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DatabaseSpec @go(Spec) - status?: #DatabaseStatus @go(Status) -} - -// DatabaseList contains a list of Databases -#DatabaseList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Database] @go(Items,[]Database) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_datacatalog_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_datacatalog_types_go_gen.cue deleted file mode 100644 index 303743c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_datacatalog_types_go_gen.cue +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/athena/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DataCatalogInitParameters: { - // Description of the data catalog. - description?: null | string @go(Description,*string) - - // Key value pairs that specifies the Lambda function or functions to use for the data catalog. The mapping used depends on the catalog type. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Type of data catalog: LAMBDA for a federated catalog, GLUE for AWS Glue Catalog, or HIVE for an external hive metastore. - type?: null | string @go(Type,*string) -} - -#DataCatalogObservation: { - // ARN of the data catalog. - arn?: null | string @go(Arn,*string) - - // Description of the data catalog. - description?: null | string @go(Description,*string) - - // Name of the data catalog. - id?: null | string @go(ID,*string) - - // Key value pairs that specifies the Lambda function or functions to use for the data catalog. The mapping used depends on the catalog type. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Type of data catalog: LAMBDA for a federated catalog, GLUE for AWS Glue Catalog, or HIVE for an external hive metastore. - type?: null | string @go(Type,*string) -} - -#DataCatalogParameters: { - // Description of the data catalog. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Key value pairs that specifies the Lambda function or functions to use for the data catalog. The mapping used depends on the catalog type. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Type of data catalog: LAMBDA for a federated catalog, GLUE for AWS Glue Catalog, or HIVE for an external hive metastore. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// DataCatalogSpec defines the desired state of DataCatalog -#DataCatalogSpec: { - v1.#ResourceSpec - forProvider: #DataCatalogParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DataCatalogInitParameters @go(InitProvider) -} - -// DataCatalogStatus defines the observed state of DataCatalog. -#DataCatalogStatus: { - v1.#ResourceStatus - atProvider?: #DataCatalogObservation @go(AtProvider) -} - -// DataCatalog is the Schema for the DataCatalogs API. Provides an Athena data catalog. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DataCatalog: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.description) || (has(self.initProvider) && has(self.initProvider.description))",message="spec.forProvider.description is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.parameters) || (has(self.initProvider) && has(self.initProvider.parameters))",message="spec.forProvider.parameters is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #DataCatalogSpec @go(Spec) - status?: #DataCatalogStatus @go(Status) -} - -// DataCatalogList contains a list of DataCatalogs -#DataCatalogList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DataCatalog] @go(Items,[]DataCatalog) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 5223bf7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/athena/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=athena.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "athena.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_namedquery_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_namedquery_types_go_gen.cue deleted file mode 100644 index dd229a1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_namedquery_types_go_gen.cue +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/athena/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NamedQueryInitParameters: { - // Brief explanation of the query. Maximum length of 1024. - description?: null | string @go(Description,*string) - - // Plain language name for the query. Maximum length of 128. - name?: null | string @go(Name,*string) - - // Text of the query itself. In other words, all query statements. Maximum length of 262144. - query?: null | string @go(Query,*string) -} - -#NamedQueryObservation: { - // Database to which the query belongs. - database?: null | string @go(Database,*string) - - // Brief explanation of the query. Maximum length of 1024. - description?: null | string @go(Description,*string) - - // Unique ID of the query. - id?: null | string @go(ID,*string) - - // Plain language name for the query. Maximum length of 128. - name?: null | string @go(Name,*string) - - // Text of the query itself. In other words, all query statements. Maximum length of 262144. - query?: null | string @go(Query,*string) - - // Workgroup to which the query belongs. Defaults to primary - workgroup?: null | string @go(Workgroup,*string) -} - -#NamedQueryParameters: { - // Database to which the query belongs. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/athena/v1beta1.Database - // +kubebuilder:validation:Optional - database?: null | string @go(Database,*string) - - // Reference to a Database in athena to populate database. - // +kubebuilder:validation:Optional - databaseRef?: null | v1.#Reference @go(DatabaseRef,*v1.Reference) - - // Selector for a Database in athena to populate database. - // +kubebuilder:validation:Optional - databaseSelector?: null | v1.#Selector @go(DatabaseSelector,*v1.Selector) - - // Brief explanation of the query. Maximum length of 1024. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Plain language name for the query. Maximum length of 128. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Text of the query itself. In other words, all query statements. Maximum length of 262144. - // +kubebuilder:validation:Optional - query?: null | string @go(Query,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Workgroup to which the query belongs. Defaults to primary - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/athena/v1beta1.Workgroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - workgroup?: null | string @go(Workgroup,*string) - - // Reference to a Workgroup in athena to populate workgroup. - // +kubebuilder:validation:Optional - workgroupRef?: null | v1.#Reference @go(WorkgroupRef,*v1.Reference) - - // Selector for a Workgroup in athena to populate workgroup. - // +kubebuilder:validation:Optional - workgroupSelector?: null | v1.#Selector @go(WorkgroupSelector,*v1.Selector) -} - -// NamedQuerySpec defines the desired state of NamedQuery -#NamedQuerySpec: { - v1.#ResourceSpec - forProvider: #NamedQueryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NamedQueryInitParameters @go(InitProvider) -} - -// NamedQueryStatus defines the observed state of NamedQuery. -#NamedQueryStatus: { - v1.#ResourceStatus - atProvider?: #NamedQueryObservation @go(AtProvider) -} - -// NamedQuery is the Schema for the NamedQuerys API. Provides an Athena Named Query resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NamedQuery: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.query) || (has(self.initProvider) && has(self.initProvider.query))",message="spec.forProvider.query is a required parameter" - spec: #NamedQuerySpec @go(Spec) - status?: #NamedQueryStatus @go(Status) -} - -// NamedQueryList contains a list of NamedQuerys -#NamedQueryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NamedQuery] @go(Items,[]NamedQuery) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_workgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_workgroup_types_go_gen.cue deleted file mode 100644 index 5cc07cb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/athena/v1beta1/zz_workgroup_types_go_gen.cue +++ /dev/null @@ -1,315 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/athena/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigurationInitParameters: { - // Integer for the upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. Must be at least 10485760. - bytesScannedCutoffPerQuery?: null | float64 @go(BytesScannedCutoffPerQuery,*float64) - - // Boolean whether the settings for the workgroup override client-side settings. For more information, see Workgroup Settings Override Client-Side Settings. Defaults to true. - enforceWorkgroupConfiguration?: null | bool @go(EnforceWorkgroupConfiguration,*bool) - - // Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below. - engineVersion?: [...#EngineVersionInitParameters] @go(EngineVersion,[]EngineVersionInitParameters) - - // Role used in a notebook session for accessing the user's resources. - executionRole?: null | string @go(ExecutionRole,*string) - - // Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to true. - publishCloudwatchMetricsEnabled?: null | bool @go(PublishCloudwatchMetricsEnabled,*bool) - - // If set to true , allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false , workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false . For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide. - requesterPaysEnabled?: null | bool @go(RequesterPaysEnabled,*bool) - - // Configuration block with result settings. See Result Configuration below. - resultConfiguration?: [...#ResultConfigurationInitParameters] @go(ResultConfiguration,[]ResultConfigurationInitParameters) -} - -#ConfigurationObservation: { - // Integer for the upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. Must be at least 10485760. - bytesScannedCutoffPerQuery?: null | float64 @go(BytesScannedCutoffPerQuery,*float64) - - // Boolean whether the settings for the workgroup override client-side settings. For more information, see Workgroup Settings Override Client-Side Settings. Defaults to true. - enforceWorkgroupConfiguration?: null | bool @go(EnforceWorkgroupConfiguration,*bool) - - // Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below. - engineVersion?: [...#EngineVersionObservation] @go(EngineVersion,[]EngineVersionObservation) - - // Role used in a notebook session for accessing the user's resources. - executionRole?: null | string @go(ExecutionRole,*string) - - // Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to true. - publishCloudwatchMetricsEnabled?: null | bool @go(PublishCloudwatchMetricsEnabled,*bool) - - // If set to true , allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false , workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false . For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide. - requesterPaysEnabled?: null | bool @go(RequesterPaysEnabled,*bool) - - // Configuration block with result settings. See Result Configuration below. - resultConfiguration?: [...#ResultConfigurationObservation] @go(ResultConfiguration,[]ResultConfigurationObservation) -} - -#ConfigurationParameters: { - // Integer for the upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. Must be at least 10485760. - // +kubebuilder:validation:Optional - bytesScannedCutoffPerQuery?: null | float64 @go(BytesScannedCutoffPerQuery,*float64) - - // Boolean whether the settings for the workgroup override client-side settings. For more information, see Workgroup Settings Override Client-Side Settings. Defaults to true. - // +kubebuilder:validation:Optional - enforceWorkgroupConfiguration?: null | bool @go(EnforceWorkgroupConfiguration,*bool) - - // Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below. - // +kubebuilder:validation:Optional - engineVersion?: [...#EngineVersionParameters] @go(EngineVersion,[]EngineVersionParameters) - - // Role used in a notebook session for accessing the user's resources. - // +kubebuilder:validation:Optional - executionRole?: null | string @go(ExecutionRole,*string) - - // Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to true. - // +kubebuilder:validation:Optional - publishCloudwatchMetricsEnabled?: null | bool @go(PublishCloudwatchMetricsEnabled,*bool) - - // If set to true , allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false , workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false . For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide. - // +kubebuilder:validation:Optional - requesterPaysEnabled?: null | bool @go(RequesterPaysEnabled,*bool) - - // Configuration block with result settings. See Result Configuration below. - // +kubebuilder:validation:Optional - resultConfiguration?: [...#ResultConfigurationParameters] @go(ResultConfiguration,[]ResultConfigurationParameters) -} - -#EngineVersionInitParameters: { - // Requested engine version. Defaults to AUTO. - selectedEngineVersion?: null | string @go(SelectedEngineVersion,*string) -} - -#EngineVersionObservation: { - // The engine version on which the query runs. If selected_engine_version is set to AUTO, the effective engine version is chosen by Athena. - effectiveEngineVersion?: null | string @go(EffectiveEngineVersion,*string) - - // Requested engine version. Defaults to AUTO. - selectedEngineVersion?: null | string @go(SelectedEngineVersion,*string) -} - -#EngineVersionParameters: { - // Requested engine version. Defaults to AUTO. - // +kubebuilder:validation:Optional - selectedEngineVersion?: null | string @go(SelectedEngineVersion,*string) -} - -#ResultConfigurationACLConfigurationInitParameters: { - // Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is BUCKET_OWNER_FULL_CONTROL. - s3AclOption?: null | string @go(S3ACLOption,*string) -} - -#ResultConfigurationACLConfigurationObservation: { - // Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is BUCKET_OWNER_FULL_CONTROL. - s3AclOption?: null | string @go(S3ACLOption,*string) -} - -#ResultConfigurationACLConfigurationParameters: { - // Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is BUCKET_OWNER_FULL_CONTROL. - // +kubebuilder:validation:Optional - s3AclOption?: null | string @go(S3ACLOption,*string) -} - -#ResultConfigurationEncryptionConfigurationInitParameters: { - // Whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE_S3), server-side encryption with KMS-managed keys (SSE_KMS), or client-side encryption with KMS-managed keys (CSE_KMS) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. - encryptionOption?: null | string @go(EncryptionOption,*string) -} - -#ResultConfigurationEncryptionConfigurationObservation: { - // Whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE_S3), server-side encryption with KMS-managed keys (SSE_KMS), or client-side encryption with KMS-managed keys (CSE_KMS) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. - encryptionOption?: null | string @go(EncryptionOption,*string) - - // For SSE_KMS and CSE_KMS, this is the KMS key ARN. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) -} - -#ResultConfigurationEncryptionConfigurationParameters: { - // Whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE_S3), server-side encryption with KMS-managed keys (SSE_KMS), or client-side encryption with KMS-managed keys (CSE_KMS) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. - // +kubebuilder:validation:Optional - encryptionOption?: null | string @go(EncryptionOption,*string) - - // For SSE_KMS and CSE_KMS, this is the KMS key ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) -} - -#ResultConfigurationInitParameters: { - // That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below. - aclConfiguration?: [...#ResultConfigurationACLConfigurationInitParameters] @go(ACLConfiguration,[]ResultConfigurationACLConfigurationInitParameters) - - // Configuration block with encryption settings. See Encryption Configuration below. - encryptionConfiguration?: [...#ResultConfigurationEncryptionConfigurationInitParameters] @go(EncryptionConfiguration,[]ResultConfigurationEncryptionConfigurationInitParameters) - - // AWS account ID that you expect to be the owner of the Amazon S3 bucket. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/. For more information, see Queries and Query Result Files. - outputLocation?: null | string @go(OutputLocation,*string) -} - -#ResultConfigurationObservation: { - // That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below. - aclConfiguration?: [...#ResultConfigurationACLConfigurationObservation] @go(ACLConfiguration,[]ResultConfigurationACLConfigurationObservation) - - // Configuration block with encryption settings. See Encryption Configuration below. - encryptionConfiguration?: [...#ResultConfigurationEncryptionConfigurationObservation] @go(EncryptionConfiguration,[]ResultConfigurationEncryptionConfigurationObservation) - - // AWS account ID that you expect to be the owner of the Amazon S3 bucket. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/. For more information, see Queries and Query Result Files. - outputLocation?: null | string @go(OutputLocation,*string) -} - -#ResultConfigurationParameters: { - // That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below. - // +kubebuilder:validation:Optional - aclConfiguration?: [...#ResultConfigurationACLConfigurationParameters] @go(ACLConfiguration,[]ResultConfigurationACLConfigurationParameters) - - // Configuration block with encryption settings. See Encryption Configuration below. - // +kubebuilder:validation:Optional - encryptionConfiguration?: [...#ResultConfigurationEncryptionConfigurationParameters] @go(EncryptionConfiguration,[]ResultConfigurationEncryptionConfigurationParameters) - - // AWS account ID that you expect to be the owner of the Amazon S3 bucket. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/. For more information, see Queries and Query Result Files. - // +kubebuilder:validation:Optional - outputLocation?: null | string @go(OutputLocation,*string) -} - -#WorkgroupInitParameters: { - // Configuration block with various settings for the workgroup. Documented below. - configuration?: [...#ConfigurationInitParameters] @go(Configuration,[]ConfigurationInitParameters) - - // Description of the workgroup. - description?: null | string @go(Description,*string) - - // Option to delete the workgroup and its contents even if the workgroup contains any named queries. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // State of the workgroup. Valid values are DISABLED or ENABLED. Defaults to ENABLED. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#WorkgroupObservation: { - // ARN of the workgroup - arn?: null | string @go(Arn,*string) - - // Configuration block with various settings for the workgroup. Documented below. - configuration?: [...#ConfigurationObservation] @go(Configuration,[]ConfigurationObservation) - - // Description of the workgroup. - description?: null | string @go(Description,*string) - - // Option to delete the workgroup and its contents even if the workgroup contains any named queries. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Workgroup name - id?: null | string @go(ID,*string) - - // State of the workgroup. Valid values are DISABLED or ENABLED. Defaults to ENABLED. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#WorkgroupParameters: { - // Configuration block with various settings for the workgroup. Documented below. - // +kubebuilder:validation:Optional - configuration?: [...#ConfigurationParameters] @go(Configuration,[]ConfigurationParameters) - - // Description of the workgroup. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Option to delete the workgroup and its contents even if the workgroup contains any named queries. - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // State of the workgroup. Valid values are DISABLED or ENABLED. Defaults to ENABLED. - // +kubebuilder:validation:Optional - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// WorkgroupSpec defines the desired state of Workgroup -#WorkgroupSpec: { - v1.#ResourceSpec - forProvider: #WorkgroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WorkgroupInitParameters @go(InitProvider) -} - -// WorkgroupStatus defines the observed state of Workgroup. -#WorkgroupStatus: { - v1.#ResourceStatus - atProvider?: #WorkgroupObservation @go(AtProvider) -} - -// Workgroup is the Schema for the Workgroups API. Manages an Athena Workgroup. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Workgroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #WorkgroupSpec @go(Spec) - status?: #WorkgroupStatus @go(Status) -} - -// WorkgroupList contains a list of Workgroups -#WorkgroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Workgroup] @go(Items,[]Workgroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_attachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_attachment_types_go_gen.cue deleted file mode 100644 index b395ac7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_attachment_types_go_gen.cue +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/autoscaling/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AttachmentInitParameters: { -} - -#AttachmentObservation: { - // ARN of an ALB Target Group. - albTargetGroupArn?: null | string @go(ALBTargetGroupArn,*string) - - // Name of ASG to associate with the ELB. - autoscalingGroupName?: null | string @go(AutoscalingGroupName,*string) - - // Name of the ELB. - elb?: null | string @go(ELB,*string) - id?: null | string @go(ID,*string) - - // ARN of a load balancer target group. - lbTargetGroupArn?: null | string @go(LBTargetGroupArn,*string) -} - -#AttachmentParameters: { - // ARN of an ALB Target Group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elbv2/v1beta1.LBTargetGroup - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - albTargetGroupArn?: null | string @go(ALBTargetGroupArn,*string) - - // Reference to a LBTargetGroup in elbv2 to populate albTargetGroupArn. - // +kubebuilder:validation:Optional - albTargetGroupArnRef?: null | v1.#Reference @go(ALBTargetGroupArnRef,*v1.Reference) - - // Selector for a LBTargetGroup in elbv2 to populate albTargetGroupArn. - // +kubebuilder:validation:Optional - albTargetGroupArnSelector?: null | v1.#Selector @go(ALBTargetGroupArnSelector,*v1.Selector) - - // Name of ASG to associate with the ELB. - // +crossplane:generate:reference:type=AutoscalingGroup - // +kubebuilder:validation:Optional - autoscalingGroupName?: null | string @go(AutoscalingGroupName,*string) - - // Reference to a AutoscalingGroup to populate autoscalingGroupName. - // +kubebuilder:validation:Optional - autoscalingGroupNameRef?: null | v1.#Reference @go(AutoscalingGroupNameRef,*v1.Reference) - - // Selector for a AutoscalingGroup to populate autoscalingGroupName. - // +kubebuilder:validation:Optional - autoscalingGroupNameSelector?: null | v1.#Selector @go(AutoscalingGroupNameSelector,*v1.Selector) - - // Name of the ELB. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elb/v1beta1.ELB - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - elb?: null | string @go(ELB,*string) - - // Reference to a ELB in elb to populate elb. - // +kubebuilder:validation:Optional - elbRef?: null | v1.#Reference @go(ELBRef,*v1.Reference) - - // Selector for a ELB in elb to populate elb. - // +kubebuilder:validation:Optional - elbSelector?: null | v1.#Selector @go(ELBSelector,*v1.Selector) - - // ARN of a load balancer target group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elbv2/v1beta1.LBTargetGroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - lbTargetGroupArn?: null | string @go(LBTargetGroupArn,*string) - - // Reference to a LBTargetGroup in elbv2 to populate lbTargetGroupArn. - // +kubebuilder:validation:Optional - lbTargetGroupArnRef?: null | v1.#Reference @go(LBTargetGroupArnRef,*v1.Reference) - - // Selector for a LBTargetGroup in elbv2 to populate lbTargetGroupArn. - // +kubebuilder:validation:Optional - lbTargetGroupArnSelector?: null | v1.#Selector @go(LBTargetGroupArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// AttachmentSpec defines the desired state of Attachment -#AttachmentSpec: { - v1.#ResourceSpec - forProvider: #AttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AttachmentInitParameters @go(InitProvider) -} - -// AttachmentStatus defines the observed state of Attachment. -#AttachmentStatus: { - v1.#ResourceStatus - atProvider?: #AttachmentObservation @go(AtProvider) -} - -// Attachment is the Schema for the Attachments API. Provides an AutoScaling Group Attachment resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Attachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AttachmentSpec @go(Spec) - status?: #AttachmentStatus @go(Status) -} - -// AttachmentList contains a list of Attachments -#AttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Attachment] @go(Items,[]Attachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_autoscalinggroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_autoscalinggroup_types_go_gen.cue deleted file mode 100644 index 9333524..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_autoscalinggroup_types_go_gen.cue +++ /dev/null @@ -1,1537 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/autoscaling/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AcceleratorCountInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#AcceleratorCountObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#AcceleratorCountParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#AcceleratorTotalMemoryMibInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#AcceleratorTotalMemoryMibObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#AcceleratorTotalMemoryMibParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#AutoscalingGroupInitParameters: { - // List of one or more availability zones for the group. Used for EC2-Classic, attaching a network interface via id from a launch template and default subnets when not specified with vpc_zone_identifier argument. Conflicts with vpc_zone_identifier. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Whether capacity rebalance is enabled. Otherwise, capacity rebalance is disabled. - capacityRebalance?: null | bool @go(CapacityRebalance,*bool) - - // Reserved. - context?: null | string @go(Context,*string) - - // Amount of time, in seconds, after a scaling activity completes before another scaling activity can start. - defaultCooldown?: null | float64 @go(DefaultCooldown,*float64) - - // Amount of time, in seconds, until a newly launched instance can contribute to the Amazon CloudWatch metrics. This delay lets an instance finish initializing before Amazon EC2 Auto Scaling aggregates instance metrics, resulting in more reliable usage data. Set this value equal to the amount of time that it takes for resource consumption to become stable after an instance reaches the InService state. (See Set the default instance warmup for an Auto Scaling group) - defaultInstanceWarmup?: null | float64 @go(DefaultInstanceWarmup,*float64) - - // Number of Amazon EC2 instances that - // should be running in the group. (See also Waiting for - // Capacity below.) - desiredCapacity?: null | float64 @go(DesiredCapacity,*float64) - - // The unit of measurement for the value specified for desired_capacity. Supported for attribute-based instance type selection only. Valid values: "units", "vcpu", "memory-mib". - desiredCapacityType?: null | string @go(DesiredCapacityType,*string) - - // List of metrics to collect. The allowed values are defined by the underlying AWS API. - enabledMetrics?: [...null | string] @go(EnabledMetrics,[]*string) - - // Allows deleting the Auto Scaling Group without waiting - // for all instances in the pool to terminate. You can force an Auto Scaling Group to delete - // even if it's in the process of scaling a resource. This bypasses that - // behavior and potentially leaves resources dangling. - forceDelete?: null | bool @go(ForceDelete,*bool) - - // If this block is configured, add a Warm Pool - // to the specified Auto Scaling group. Defined below - forceDeleteWarmPool?: null | bool @go(ForceDeleteWarmPool,*bool) - - // Time (in seconds) after instance comes into service before checking health. - healthCheckGracePeriod?: null | float64 @go(HealthCheckGracePeriod,*float64) - - // "EC2" or "ELB". Controls how health checking is done. - healthCheckType?: null | string @go(HealthCheckType,*string) - - // One or more - // Lifecycle Hooks - // to attach to the Auto Scaling Group before instances are launched. The - // syntax is exactly the same as the separate - // aws_autoscaling_lifecycle_hook - // resource, without the autoscaling_group_name attribute. Please note that this will only work when creating - // a new Auto Scaling Group. For all other use-cases, please use aws_autoscaling_lifecycle_hook resource. - initialLifecycleHook?: [...#InitialLifecycleHookInitParameters] @go(InitialLifecycleHook,[]InitialLifecycleHookInitParameters) - - // If this block is configured, start an - // Instance Refresh - // when this Auto Scaling Group is updated. Defined below. - instanceRefresh?: [...#InstanceRefreshInitParameters] @go(InstanceRefresh,[]InstanceRefreshInitParameters) - - // Nested argument with Launch template specification to use to launch instances. See Launch Template below for more details. - launchTemplate?: [...#LaunchTemplateInitParameters] @go(LaunchTemplate,[]LaunchTemplateInitParameters) - - // Maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 86400 and 31536000 seconds. - maxInstanceLifetime?: null | float64 @go(MaxInstanceLifetime,*float64) - - // Maximum size of the Auto Scaling Group. - maxSize?: null | float64 @go(MaxSize,*float64) - - // Granularity to associate with the metrics to collect. The only valid value is 1Minute. Default is 1Minute. - metricsGranularity?: null | string @go(MetricsGranularity,*string) - - // Updates will not wait on ELB instance number changes. - // (See also Waiting for Capacity below.) - minElbCapacity?: null | float64 @go(MinELBCapacity,*float64) - - // Minimum size of the Auto Scaling Group. - // (See also Waiting for Capacity below.) - minSize?: null | float64 @go(MinSize,*float64) - - // Configuration block containing settings to define launch targets for Auto Scaling groups. See Mixed Instances Policy below for more details. - mixedInstancesPolicy?: [...#MixedInstancesPolicyInitParameters] @go(MixedInstancesPolicy,[]MixedInstancesPolicyInitParameters) - - // in protection - // in the Amazon EC2 Auto Scaling User Guide. - protectFromScaleIn?: null | bool @go(ProtectFromScaleIn,*bool) - - // List of processes to suspend for the Auto Scaling Group. The allowed values are Launch, Terminate, HealthCheck, ReplaceUnhealthy, AZRebalance, AlarmNotification, ScheduledActions, AddToLoadBalancer, InstanceRefresh. - // Note that if you suspend either the Launch or Terminate process types, it can prevent your Auto Scaling Group from functioning properly. - suspendedProcesses?: [...null | string] @go(SuspendedProcesses,[]*string) - - // Configuration block(s) containing resource tags. Conflicts with tags. See Tag below for more details. - tag?: [...#TagInitParameters] @go(Tag,[]TagInitParameters) - - // Key-value map of resource tags. - tags?: [... {[string]: null | string}] @go(Tags,[]map[string]*string) - - // List of policies to decide how the instances in the Auto Scaling Group should be terminated. The allowed values are OldestInstance, NewestInstance, OldestLaunchConfiguration, ClosestToNextInstanceHour, OldestLaunchTemplate, AllocationStrategy, Default. Additionally, the ARN of a Lambda function can be specified for custom termination policies. - terminationPolicies?: [...null | string] @go(TerminationPolicies,[]*string) - - // (See also Waiting - // for Capacity below. - waitForCapacityTimeout?: null | string @go(WaitForCapacityTimeout,*string) - - // (Takes - // precedence over min_elb_capacity behavior.) - // (See also Waiting for Capacity below.) - waitForElbCapacity?: null | float64 @go(WaitForELBCapacity,*float64) - - // If this block is configured, add a Warm Pool - // to the specified Auto Scaling group. Defined below - warmPool?: [...#WarmPoolInitParameters] @go(WarmPool,[]WarmPoolInitParameters) -} - -#AutoscalingGroupObservation: { - // ARN for this Auto Scaling Group - arn?: null | string @go(Arn,*string) - - // List of one or more availability zones for the group. Used for EC2-Classic, attaching a network interface via id from a launch template and default subnets when not specified with vpc_zone_identifier argument. Conflicts with vpc_zone_identifier. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Whether capacity rebalance is enabled. Otherwise, capacity rebalance is disabled. - capacityRebalance?: null | bool @go(CapacityRebalance,*bool) - - // Reserved. - context?: null | string @go(Context,*string) - - // Amount of time, in seconds, after a scaling activity completes before another scaling activity can start. - defaultCooldown?: null | float64 @go(DefaultCooldown,*float64) - - // Amount of time, in seconds, until a newly launched instance can contribute to the Amazon CloudWatch metrics. This delay lets an instance finish initializing before Amazon EC2 Auto Scaling aggregates instance metrics, resulting in more reliable usage data. Set this value equal to the amount of time that it takes for resource consumption to become stable after an instance reaches the InService state. (See Set the default instance warmup for an Auto Scaling group) - defaultInstanceWarmup?: null | float64 @go(DefaultInstanceWarmup,*float64) - - // Number of Amazon EC2 instances that - // should be running in the group. (See also Waiting for - // Capacity below.) - desiredCapacity?: null | float64 @go(DesiredCapacity,*float64) - - // The unit of measurement for the value specified for desired_capacity. Supported for attribute-based instance type selection only. Valid values: "units", "vcpu", "memory-mib". - desiredCapacityType?: null | string @go(DesiredCapacityType,*string) - - // List of metrics to collect. The allowed values are defined by the underlying AWS API. - enabledMetrics?: [...null | string] @go(EnabledMetrics,[]*string) - - // Allows deleting the Auto Scaling Group without waiting - // for all instances in the pool to terminate. You can force an Auto Scaling Group to delete - // even if it's in the process of scaling a resource. This bypasses that - // behavior and potentially leaves resources dangling. - forceDelete?: null | bool @go(ForceDelete,*bool) - - // If this block is configured, add a Warm Pool - // to the specified Auto Scaling group. Defined below - forceDeleteWarmPool?: null | bool @go(ForceDeleteWarmPool,*bool) - - // Time (in seconds) after instance comes into service before checking health. - healthCheckGracePeriod?: null | float64 @go(HealthCheckGracePeriod,*float64) - - // "EC2" or "ELB". Controls how health checking is done. - healthCheckType?: null | string @go(HealthCheckType,*string) - - // Auto Scaling Group id. - id?: null | string @go(ID,*string) - - // One or more - // Lifecycle Hooks - // to attach to the Auto Scaling Group before instances are launched. The - // syntax is exactly the same as the separate - // aws_autoscaling_lifecycle_hook - // resource, without the autoscaling_group_name attribute. Please note that this will only work when creating - // a new Auto Scaling Group. For all other use-cases, please use aws_autoscaling_lifecycle_hook resource. - initialLifecycleHook?: [...#InitialLifecycleHookObservation] @go(InitialLifecycleHook,[]InitialLifecycleHookObservation) - - // If this block is configured, start an - // Instance Refresh - // when this Auto Scaling Group is updated. Defined below. - instanceRefresh?: [...#InstanceRefreshObservation] @go(InstanceRefresh,[]InstanceRefreshObservation) - - // Name of the launch configuration to use. - launchConfiguration?: null | string @go(LaunchConfiguration,*string) - - // Nested argument with Launch template specification to use to launch instances. See Launch Template below for more details. - launchTemplate?: [...#LaunchTemplateObservation] @go(LaunchTemplate,[]LaunchTemplateObservation) - - // List of elastic load balancer names to add to the autoscaling - // group names. Only valid for classic load balancers. For ALBs, use target_group_arns instead. - loadBalancers?: [...null | string] @go(LoadBalancers,[]*string) - - // Maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 86400 and 31536000 seconds. - maxInstanceLifetime?: null | float64 @go(MaxInstanceLifetime,*float64) - - // Maximum size of the Auto Scaling Group. - maxSize?: null | float64 @go(MaxSize,*float64) - - // Granularity to associate with the metrics to collect. The only valid value is 1Minute. Default is 1Minute. - metricsGranularity?: null | string @go(MetricsGranularity,*string) - - // Updates will not wait on ELB instance number changes. - // (See also Waiting for Capacity below.) - minElbCapacity?: null | float64 @go(MinELBCapacity,*float64) - - // Minimum size of the Auto Scaling Group. - // (See also Waiting for Capacity below.) - minSize?: null | float64 @go(MinSize,*float64) - - // Configuration block containing settings to define launch targets for Auto Scaling groups. See Mixed Instances Policy below for more details. - mixedInstancesPolicy?: [...#MixedInstancesPolicyObservation] @go(MixedInstancesPolicy,[]MixedInstancesPolicyObservation) - - // Name of the placement group into which you'll launch your instances, if any. - placementGroup?: null | string @go(PlacementGroup,*string) - - // Predicted capacity of the group. - predictedCapacity?: null | float64 @go(PredictedCapacity,*float64) - - // in protection - // in the Amazon EC2 Auto Scaling User Guide. - protectFromScaleIn?: null | bool @go(ProtectFromScaleIn,*bool) - - // linked role that the ASG will use to call other AWS services - serviceLinkedRoleArn?: null | string @go(ServiceLinkedRoleArn,*string) - - // List of processes to suspend for the Auto Scaling Group. The allowed values are Launch, Terminate, HealthCheck, ReplaceUnhealthy, AZRebalance, AlarmNotification, ScheduledActions, AddToLoadBalancer, InstanceRefresh. - // Note that if you suspend either the Launch or Terminate process types, it can prevent your Auto Scaling Group from functioning properly. - suspendedProcesses?: [...null | string] @go(SuspendedProcesses,[]*string) - - // Configuration block(s) containing resource tags. Conflicts with tags. See Tag below for more details. - tag?: [...#TagObservation] @go(Tag,[]TagObservation) - - // Key-value map of resource tags. - tags?: [... {[string]: null | string}] @go(Tags,[]map[string]*string) - - // Set of aws_alb_target_group ARNs, for use with Application or Network Load Balancing. - targetGroupArns?: [...null | string] @go(TargetGroupArns,[]*string) - - // List of policies to decide how the instances in the Auto Scaling Group should be terminated. The allowed values are OldestInstance, NewestInstance, OldestLaunchConfiguration, ClosestToNextInstanceHour, OldestLaunchTemplate, AllocationStrategy, Default. Additionally, the ARN of a Lambda function can be specified for custom termination policies. - terminationPolicies?: [...null | string] @go(TerminationPolicies,[]*string) - - // List of subnet IDs to launch resources in. Subnets automatically determine which availability zones the group will reside. Conflicts with availability_zones. - vpcZoneIdentifier?: [...null | string] @go(VPCZoneIdentifier,[]*string) - - // (See also Waiting - // for Capacity below. - waitForCapacityTimeout?: null | string @go(WaitForCapacityTimeout,*string) - - // (Takes - // precedence over min_elb_capacity behavior.) - // (See also Waiting for Capacity below.) - waitForElbCapacity?: null | float64 @go(WaitForELBCapacity,*float64) - - // If this block is configured, add a Warm Pool - // to the specified Auto Scaling group. Defined below - warmPool?: [...#WarmPoolObservation] @go(WarmPool,[]WarmPoolObservation) - - // Current size of the warm pool. - warmPoolSize?: null | float64 @go(WarmPoolSize,*float64) -} - -#AutoscalingGroupParameters: { - // List of one or more availability zones for the group. Used for EC2-Classic, attaching a network interface via id from a launch template and default subnets when not specified with vpc_zone_identifier argument. Conflicts with vpc_zone_identifier. - // +kubebuilder:validation:Optional - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Whether capacity rebalance is enabled. Otherwise, capacity rebalance is disabled. - // +kubebuilder:validation:Optional - capacityRebalance?: null | bool @go(CapacityRebalance,*bool) - - // Reserved. - // +kubebuilder:validation:Optional - context?: null | string @go(Context,*string) - - // Amount of time, in seconds, after a scaling activity completes before another scaling activity can start. - // +kubebuilder:validation:Optional - defaultCooldown?: null | float64 @go(DefaultCooldown,*float64) - - // Amount of time, in seconds, until a newly launched instance can contribute to the Amazon CloudWatch metrics. This delay lets an instance finish initializing before Amazon EC2 Auto Scaling aggregates instance metrics, resulting in more reliable usage data. Set this value equal to the amount of time that it takes for resource consumption to become stable after an instance reaches the InService state. (See Set the default instance warmup for an Auto Scaling group) - // +kubebuilder:validation:Optional - defaultInstanceWarmup?: null | float64 @go(DefaultInstanceWarmup,*float64) - - // Number of Amazon EC2 instances that - // should be running in the group. (See also Waiting for - // Capacity below.) - // +kubebuilder:validation:Optional - desiredCapacity?: null | float64 @go(DesiredCapacity,*float64) - - // The unit of measurement for the value specified for desired_capacity. Supported for attribute-based instance type selection only. Valid values: "units", "vcpu", "memory-mib". - // +kubebuilder:validation:Optional - desiredCapacityType?: null | string @go(DesiredCapacityType,*string) - - // List of metrics to collect. The allowed values are defined by the underlying AWS API. - // +kubebuilder:validation:Optional - enabledMetrics?: [...null | string] @go(EnabledMetrics,[]*string) - - // Allows deleting the Auto Scaling Group without waiting - // for all instances in the pool to terminate. You can force an Auto Scaling Group to delete - // even if it's in the process of scaling a resource. This bypasses that - // behavior and potentially leaves resources dangling. - // +kubebuilder:validation:Optional - forceDelete?: null | bool @go(ForceDelete,*bool) - - // If this block is configured, add a Warm Pool - // to the specified Auto Scaling group. Defined below - // +kubebuilder:validation:Optional - forceDeleteWarmPool?: null | bool @go(ForceDeleteWarmPool,*bool) - - // Time (in seconds) after instance comes into service before checking health. - // +kubebuilder:validation:Optional - healthCheckGracePeriod?: null | float64 @go(HealthCheckGracePeriod,*float64) - - // "EC2" or "ELB". Controls how health checking is done. - // +kubebuilder:validation:Optional - healthCheckType?: null | string @go(HealthCheckType,*string) - - // One or more - // Lifecycle Hooks - // to attach to the Auto Scaling Group before instances are launched. The - // syntax is exactly the same as the separate - // aws_autoscaling_lifecycle_hook - // resource, without the autoscaling_group_name attribute. Please note that this will only work when creating - // a new Auto Scaling Group. For all other use-cases, please use aws_autoscaling_lifecycle_hook resource. - // +kubebuilder:validation:Optional - initialLifecycleHook?: [...#InitialLifecycleHookParameters] @go(InitialLifecycleHook,[]InitialLifecycleHookParameters) - - // If this block is configured, start an - // Instance Refresh - // when this Auto Scaling Group is updated. Defined below. - // +kubebuilder:validation:Optional - instanceRefresh?: [...#InstanceRefreshParameters] @go(InstanceRefresh,[]InstanceRefreshParameters) - - // Name of the launch configuration to use. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/autoscaling/v1beta1.LaunchConfiguration - // +kubebuilder:validation:Optional - launchConfiguration?: null | string @go(LaunchConfiguration,*string) - - // Reference to a LaunchConfiguration in autoscaling to populate launchConfiguration. - // +kubebuilder:validation:Optional - launchConfigurationRef?: null | v1.#Reference @go(LaunchConfigurationRef,*v1.Reference) - - // Selector for a LaunchConfiguration in autoscaling to populate launchConfiguration. - // +kubebuilder:validation:Optional - launchConfigurationSelector?: null | v1.#Selector @go(LaunchConfigurationSelector,*v1.Selector) - - // Nested argument with Launch template specification to use to launch instances. See Launch Template below for more details. - // +kubebuilder:validation:Optional - launchTemplate?: [...#LaunchTemplateParameters] @go(LaunchTemplate,[]LaunchTemplateParameters) - - // Maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 86400 and 31536000 seconds. - // +kubebuilder:validation:Optional - maxInstanceLifetime?: null | float64 @go(MaxInstanceLifetime,*float64) - - // Maximum size of the Auto Scaling Group. - // +kubebuilder:validation:Optional - maxSize?: null | float64 @go(MaxSize,*float64) - - // Granularity to associate with the metrics to collect. The only valid value is 1Minute. Default is 1Minute. - // +kubebuilder:validation:Optional - metricsGranularity?: null | string @go(MetricsGranularity,*string) - - // Updates will not wait on ELB instance number changes. - // (See also Waiting for Capacity below.) - // +kubebuilder:validation:Optional - minElbCapacity?: null | float64 @go(MinELBCapacity,*float64) - - // Minimum size of the Auto Scaling Group. - // (See also Waiting for Capacity below.) - // +kubebuilder:validation:Optional - minSize?: null | float64 @go(MinSize,*float64) - - // Configuration block containing settings to define launch targets for Auto Scaling groups. See Mixed Instances Policy below for more details. - // +kubebuilder:validation:Optional - mixedInstancesPolicy?: [...#MixedInstancesPolicyParameters] @go(MixedInstancesPolicy,[]MixedInstancesPolicyParameters) - - // Name of the placement group into which you'll launch your instances, if any. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.PlacementGroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - placementGroup?: null | string @go(PlacementGroup,*string) - - // Reference to a PlacementGroup in ec2 to populate placementGroup. - // +kubebuilder:validation:Optional - placementGroupRef?: null | v1.#Reference @go(PlacementGroupRef,*v1.Reference) - - // Selector for a PlacementGroup in ec2 to populate placementGroup. - // +kubebuilder:validation:Optional - placementGroupSelector?: null | v1.#Selector @go(PlacementGroupSelector,*v1.Selector) - - // in protection - // in the Amazon EC2 Auto Scaling User Guide. - // +kubebuilder:validation:Optional - protectFromScaleIn?: null | bool @go(ProtectFromScaleIn,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // linked role that the ASG will use to call other AWS services - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - serviceLinkedRoleArn?: null | string @go(ServiceLinkedRoleArn,*string) - - // Reference to a Role in iam to populate serviceLinkedRoleArn. - // +kubebuilder:validation:Optional - serviceLinkedRoleArnRef?: null | v1.#Reference @go(ServiceLinkedRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate serviceLinkedRoleArn. - // +kubebuilder:validation:Optional - serviceLinkedRoleArnSelector?: null | v1.#Selector @go(ServiceLinkedRoleArnSelector,*v1.Selector) - - // List of processes to suspend for the Auto Scaling Group. The allowed values are Launch, Terminate, HealthCheck, ReplaceUnhealthy, AZRebalance, AlarmNotification, ScheduledActions, AddToLoadBalancer, InstanceRefresh. - // Note that if you suspend either the Launch or Terminate process types, it can prevent your Auto Scaling Group from functioning properly. - // +kubebuilder:validation:Optional - suspendedProcesses?: [...null | string] @go(SuspendedProcesses,[]*string) - - // Configuration block(s) containing resource tags. Conflicts with tags. See Tag below for more details. - // +kubebuilder:validation:Optional - tag?: [...#TagParameters] @go(Tag,[]TagParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: [... {[string]: null | string}] @go(Tags,[]map[string]*string) - - // List of policies to decide how the instances in the Auto Scaling Group should be terminated. The allowed values are OldestInstance, NewestInstance, OldestLaunchConfiguration, ClosestToNextInstanceHour, OldestLaunchTemplate, AllocationStrategy, Default. Additionally, the ARN of a Lambda function can be specified for custom termination policies. - // +kubebuilder:validation:Optional - terminationPolicies?: [...null | string] @go(TerminationPolicies,[]*string) - - // List of subnet IDs to launch resources in. Subnets automatically determine which availability zones the group will reside. Conflicts with availability_zones. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - vpcZoneIdentifier?: [...null | string] @go(VPCZoneIdentifier,[]*string) - - // References to Subnet in ec2 to populate vpcZoneIdentifier. - // +kubebuilder:validation:Optional - vpcZoneIdentifierRefs?: [...v1.#Reference] @go(VPCZoneIdentifierRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate vpcZoneIdentifier. - // +kubebuilder:validation:Optional - vpcZoneIdentifierSelector?: null | v1.#Selector @go(VPCZoneIdentifierSelector,*v1.Selector) - - // (See also Waiting - // for Capacity below. - // +kubebuilder:validation:Optional - waitForCapacityTimeout?: null | string @go(WaitForCapacityTimeout,*string) - - // (Takes - // precedence over min_elb_capacity behavior.) - // (See also Waiting for Capacity below.) - // +kubebuilder:validation:Optional - waitForElbCapacity?: null | float64 @go(WaitForELBCapacity,*float64) - - // If this block is configured, add a Warm Pool - // to the specified Auto Scaling group. Defined below - // +kubebuilder:validation:Optional - warmPool?: [...#WarmPoolParameters] @go(WarmPool,[]WarmPoolParameters) -} - -#BaselineEBSBandwidthMbpsInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#BaselineEBSBandwidthMbpsObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#BaselineEBSBandwidthMbpsParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#InitialLifecycleHookInitParameters: { - defaultResult?: null | string @go(DefaultResult,*string) - heartbeatTimeout?: null | float64 @go(HeartbeatTimeout,*float64) - lifecycleTransition?: null | string @go(LifecycleTransition,*string) - - // Name of the Auto Scaling Group. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - notificationMetadata?: null | string @go(NotificationMetadata,*string) - - // ARN for this Auto Scaling Group - notificationTargetArn?: null | string @go(NotificationTargetArn,*string) - - // ARN for this Auto Scaling Group - roleArn?: null | string @go(RoleArn,*string) -} - -#InitialLifecycleHookObservation: { - defaultResult?: null | string @go(DefaultResult,*string) - heartbeatTimeout?: null | float64 @go(HeartbeatTimeout,*float64) - lifecycleTransition?: null | string @go(LifecycleTransition,*string) - - // Name of the Auto Scaling Group. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - notificationMetadata?: null | string @go(NotificationMetadata,*string) - - // ARN for this Auto Scaling Group - notificationTargetArn?: null | string @go(NotificationTargetArn,*string) - - // ARN for this Auto Scaling Group - roleArn?: null | string @go(RoleArn,*string) -} - -#InitialLifecycleHookParameters: { - // +kubebuilder:validation:Optional - defaultResult?: null | string @go(DefaultResult,*string) - - // +kubebuilder:validation:Optional - heartbeatTimeout?: null | float64 @go(HeartbeatTimeout,*float64) - - // +kubebuilder:validation:Optional - lifecycleTransition?: null | string @go(LifecycleTransition,*string) - - // Name of the Auto Scaling Group. Conflicts with name_prefix. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // +kubebuilder:validation:Optional - notificationMetadata?: null | string @go(NotificationMetadata,*string) - - // ARN for this Auto Scaling Group - // +kubebuilder:validation:Optional - notificationTargetArn?: null | string @go(NotificationTargetArn,*string) - - // ARN for this Auto Scaling Group - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#InstanceRefreshInitParameters: { - // Override default parameters for Instance Refresh. - preferences?: [...#PreferencesInitParameters] @go(Preferences,[]PreferencesInitParameters) - - // Strategy to use for instance refresh. The only allowed value is Rolling. See StartInstanceRefresh Action for more information. - strategy?: null | string @go(Strategy,*string) - - // Set of additional property names that will trigger an Instance Refresh. A refresh will always be triggered by a change in any of launch_configuration, launch_template, or mixed_instances_policy. - triggers?: [...null | string] @go(Triggers,[]*string) -} - -#InstanceRefreshObservation: { - // Override default parameters for Instance Refresh. - preferences?: [...#PreferencesObservation] @go(Preferences,[]PreferencesObservation) - - // Strategy to use for instance refresh. The only allowed value is Rolling. See StartInstanceRefresh Action for more information. - strategy?: null | string @go(Strategy,*string) - - // Set of additional property names that will trigger an Instance Refresh. A refresh will always be triggered by a change in any of launch_configuration, launch_template, or mixed_instances_policy. - triggers?: [...null | string] @go(Triggers,[]*string) -} - -#InstanceRefreshParameters: { - // Override default parameters for Instance Refresh. - // +kubebuilder:validation:Optional - preferences?: [...#PreferencesParameters] @go(Preferences,[]PreferencesParameters) - - // Strategy to use for instance refresh. The only allowed value is Rolling. See StartInstanceRefresh Action for more information. - // +kubebuilder:validation:Optional - strategy?: null | string @go(Strategy,*string) - - // Set of additional property names that will trigger an Instance Refresh. A refresh will always be triggered by a change in any of launch_configuration, launch_template, or mixed_instances_policy. - // +kubebuilder:validation:Optional - triggers?: [...null | string] @go(Triggers,[]*string) -} - -#InstanceRequirementsInitParameters: { - // Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. - acceleratorCount?: [...#AcceleratorCountInitParameters] @go(AcceleratorCount,[]AcceleratorCountInitParameters) - - // List of accelerator manufacturer names. Default is any manufacturer. - acceleratorManufacturers?: [...null | string] @go(AcceleratorManufacturers,[]*string) - - // List of accelerator names. Default is any acclerator. - acceleratorNames?: [...null | string] @go(AcceleratorNames,[]*string) - - // Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. - acceleratorTotalMemoryMib?: [...#AcceleratorTotalMemoryMibInitParameters] @go(AcceleratorTotalMemoryMib,[]AcceleratorTotalMemoryMibInitParameters) - - // List of accelerator types. Default is any accelerator type. - acceleratorTypes?: [...null | string] @go(AcceleratorTypes,[]*string) - - // List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types. - allowedInstanceTypes?: [...null | string] @go(AllowedInstanceTypes,[]*string) - - // Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded. - bareMetal?: null | string @go(BareMetal,*string) - - // Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. - baselineEbsBandwidthMbps?: [...#BaselineEBSBandwidthMbpsInitParameters] @go(BaselineEBSBandwidthMbps,[]BaselineEBSBandwidthMbpsInitParameters) - - // Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded. - burstablePerformance?: null | string @go(BurstablePerformance,*string) - - // List of CPU manufacturer names. Default is any manufacturer. - cpuManufacturers?: [...null | string] @go(CPUManufacturers,[]*string) - - // List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. - excludedInstanceTypes?: [...null | string] @go(ExcludedInstanceTypes,[]*string) - - // List of instance generation names. Default is any generation. - instanceGenerations?: [...null | string] @go(InstanceGenerations,[]*string) - - // Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included. - localStorage?: null | string @go(LocalStorage,*string) - - // List of local storage type names. Default any storage type. - localStorageTypes?: [...null | string] @go(LocalStorageTypes,[]*string) - - // Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. - memoryGibPerVcpu?: [...#MemoryGibPerVcpuInitParameters] @go(MemoryGibPerVcpu,[]MemoryGibPerVcpuInitParameters) - - // Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. - memoryMib?: [...#MemoryMibInitParameters] @go(MemoryMib,[]MemoryMibInitParameters) - - // Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum. - networkBandwidthGbps?: [...#NetworkBandwidthGbpsInitParameters] @go(NetworkBandwidthGbps,[]NetworkBandwidthGbpsInitParameters) - - // Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. - networkInterfaceCount?: [...#NetworkInterfaceCountInitParameters] @go(NetworkInterfaceCount,[]NetworkInterfaceCountInitParameters) - - // Price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. - onDemandMaxPricePercentageOverLowestPrice?: null | float64 @go(OnDemandMaxPricePercentageOverLowestPrice,*float64) - - // Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false. - requireHibernateSupport?: null | bool @go(RequireHibernateSupport,*bool) - - // Price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. - spotMaxPricePercentageOverLowestPrice?: null | float64 @go(SpotMaxPricePercentageOverLowestPrice,*float64) - - // Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. - totalLocalStorageGb?: [...#TotalLocalStorageGbInitParameters] @go(TotalLocalStorageGb,[]TotalLocalStorageGbInitParameters) - - // Block describing the minimum and maximum number of vCPUs. Default is no maximum. - vcpuCount?: [...#VcpuCountInitParameters] @go(VcpuCount,[]VcpuCountInitParameters) -} - -#InstanceRequirementsObservation: { - // Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. - acceleratorCount?: [...#AcceleratorCountObservation] @go(AcceleratorCount,[]AcceleratorCountObservation) - - // List of accelerator manufacturer names. Default is any manufacturer. - acceleratorManufacturers?: [...null | string] @go(AcceleratorManufacturers,[]*string) - - // List of accelerator names. Default is any acclerator. - acceleratorNames?: [...null | string] @go(AcceleratorNames,[]*string) - - // Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. - acceleratorTotalMemoryMib?: [...#AcceleratorTotalMemoryMibObservation] @go(AcceleratorTotalMemoryMib,[]AcceleratorTotalMemoryMibObservation) - - // List of accelerator types. Default is any accelerator type. - acceleratorTypes?: [...null | string] @go(AcceleratorTypes,[]*string) - - // List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types. - allowedInstanceTypes?: [...null | string] @go(AllowedInstanceTypes,[]*string) - - // Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded. - bareMetal?: null | string @go(BareMetal,*string) - - // Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. - baselineEbsBandwidthMbps?: [...#BaselineEBSBandwidthMbpsObservation] @go(BaselineEBSBandwidthMbps,[]BaselineEBSBandwidthMbpsObservation) - - // Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded. - burstablePerformance?: null | string @go(BurstablePerformance,*string) - - // List of CPU manufacturer names. Default is any manufacturer. - cpuManufacturers?: [...null | string] @go(CPUManufacturers,[]*string) - - // List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. - excludedInstanceTypes?: [...null | string] @go(ExcludedInstanceTypes,[]*string) - - // List of instance generation names. Default is any generation. - instanceGenerations?: [...null | string] @go(InstanceGenerations,[]*string) - - // Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included. - localStorage?: null | string @go(LocalStorage,*string) - - // List of local storage type names. Default any storage type. - localStorageTypes?: [...null | string] @go(LocalStorageTypes,[]*string) - - // Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. - memoryGibPerVcpu?: [...#MemoryGibPerVcpuObservation] @go(MemoryGibPerVcpu,[]MemoryGibPerVcpuObservation) - - // Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. - memoryMib?: [...#MemoryMibObservation] @go(MemoryMib,[]MemoryMibObservation) - - // Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum. - networkBandwidthGbps?: [...#NetworkBandwidthGbpsObservation] @go(NetworkBandwidthGbps,[]NetworkBandwidthGbpsObservation) - - // Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. - networkInterfaceCount?: [...#NetworkInterfaceCountObservation] @go(NetworkInterfaceCount,[]NetworkInterfaceCountObservation) - - // Price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. - onDemandMaxPricePercentageOverLowestPrice?: null | float64 @go(OnDemandMaxPricePercentageOverLowestPrice,*float64) - - // Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false. - requireHibernateSupport?: null | bool @go(RequireHibernateSupport,*bool) - - // Price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. - spotMaxPricePercentageOverLowestPrice?: null | float64 @go(SpotMaxPricePercentageOverLowestPrice,*float64) - - // Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. - totalLocalStorageGb?: [...#TotalLocalStorageGbObservation] @go(TotalLocalStorageGb,[]TotalLocalStorageGbObservation) - - // Block describing the minimum and maximum number of vCPUs. Default is no maximum. - vcpuCount?: [...#VcpuCountObservation] @go(VcpuCount,[]VcpuCountObservation) -} - -#InstanceRequirementsParameters: { - // Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. - // +kubebuilder:validation:Optional - acceleratorCount?: [...#AcceleratorCountParameters] @go(AcceleratorCount,[]AcceleratorCountParameters) - - // List of accelerator manufacturer names. Default is any manufacturer. - // +kubebuilder:validation:Optional - acceleratorManufacturers?: [...null | string] @go(AcceleratorManufacturers,[]*string) - - // List of accelerator names. Default is any acclerator. - // +kubebuilder:validation:Optional - acceleratorNames?: [...null | string] @go(AcceleratorNames,[]*string) - - // Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. - // +kubebuilder:validation:Optional - acceleratorTotalMemoryMib?: [...#AcceleratorTotalMemoryMibParameters] @go(AcceleratorTotalMemoryMib,[]AcceleratorTotalMemoryMibParameters) - - // List of accelerator types. Default is any accelerator type. - // +kubebuilder:validation:Optional - acceleratorTypes?: [...null | string] @go(AcceleratorTypes,[]*string) - - // List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types. - // +kubebuilder:validation:Optional - allowedInstanceTypes?: [...null | string] @go(AllowedInstanceTypes,[]*string) - - // Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded. - // +kubebuilder:validation:Optional - bareMetal?: null | string @go(BareMetal,*string) - - // Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. - // +kubebuilder:validation:Optional - baselineEbsBandwidthMbps?: [...#BaselineEBSBandwidthMbpsParameters] @go(BaselineEBSBandwidthMbps,[]BaselineEBSBandwidthMbpsParameters) - - // Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded. - // +kubebuilder:validation:Optional - burstablePerformance?: null | string @go(BurstablePerformance,*string) - - // List of CPU manufacturer names. Default is any manufacturer. - // +kubebuilder:validation:Optional - cpuManufacturers?: [...null | string] @go(CPUManufacturers,[]*string) - - // List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. - // +kubebuilder:validation:Optional - excludedInstanceTypes?: [...null | string] @go(ExcludedInstanceTypes,[]*string) - - // List of instance generation names. Default is any generation. - // +kubebuilder:validation:Optional - instanceGenerations?: [...null | string] @go(InstanceGenerations,[]*string) - - // Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included. - // +kubebuilder:validation:Optional - localStorage?: null | string @go(LocalStorage,*string) - - // List of local storage type names. Default any storage type. - // +kubebuilder:validation:Optional - localStorageTypes?: [...null | string] @go(LocalStorageTypes,[]*string) - - // Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. - // +kubebuilder:validation:Optional - memoryGibPerVcpu?: [...#MemoryGibPerVcpuParameters] @go(MemoryGibPerVcpu,[]MemoryGibPerVcpuParameters) - - // Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. - // +kubebuilder:validation:Optional - memoryMib?: [...#MemoryMibParameters] @go(MemoryMib,[]MemoryMibParameters) - - // Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum. - // +kubebuilder:validation:Optional - networkBandwidthGbps?: [...#NetworkBandwidthGbpsParameters] @go(NetworkBandwidthGbps,[]NetworkBandwidthGbpsParameters) - - // Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. - // +kubebuilder:validation:Optional - networkInterfaceCount?: [...#NetworkInterfaceCountParameters] @go(NetworkInterfaceCount,[]NetworkInterfaceCountParameters) - - // Price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. - // +kubebuilder:validation:Optional - onDemandMaxPricePercentageOverLowestPrice?: null | float64 @go(OnDemandMaxPricePercentageOverLowestPrice,*float64) - - // Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false. - // +kubebuilder:validation:Optional - requireHibernateSupport?: null | bool @go(RequireHibernateSupport,*bool) - - // Price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. - // +kubebuilder:validation:Optional - spotMaxPricePercentageOverLowestPrice?: null | float64 @go(SpotMaxPricePercentageOverLowestPrice,*float64) - - // Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. - // +kubebuilder:validation:Optional - totalLocalStorageGb?: [...#TotalLocalStorageGbParameters] @go(TotalLocalStorageGb,[]TotalLocalStorageGbParameters) - - // Block describing the minimum and maximum number of vCPUs. Default is no maximum. - // +kubebuilder:validation:Optional - vcpuCount?: [...#VcpuCountParameters] @go(VcpuCount,[]VcpuCountParameters) -} - -#InstanceReusePolicyInitParameters: { - // Whether instances in the Auto Scaling group can be returned to the warm pool on scale in. - reuseOnScaleIn?: null | bool @go(ReuseOnScaleIn,*bool) -} - -#InstanceReusePolicyObservation: { - // Whether instances in the Auto Scaling group can be returned to the warm pool on scale in. - reuseOnScaleIn?: null | bool @go(ReuseOnScaleIn,*bool) -} - -#InstanceReusePolicyParameters: { - // Whether instances in the Auto Scaling group can be returned to the warm pool on scale in. - // +kubebuilder:validation:Optional - reuseOnScaleIn?: null | bool @go(ReuseOnScaleIn,*bool) -} - -#InstancesDistributionInitParameters: { - // Strategy to use when launching on-demand instances. Valid values: prioritized, lowest-price. Default: prioritized. - onDemandAllocationStrategy?: null | string @go(OnDemandAllocationStrategy,*string) - - // Absolute minimum amount of desired capacity that must be fulfilled by on-demand instances. Default: 0. - onDemandBaseCapacity?: null | float64 @go(OnDemandBaseCapacity,*float64) - - // Percentage split between on-demand and Spot instances above the base on-demand capacity. Default: 100. - onDemandPercentageAboveBaseCapacity?: null | float64 @go(OnDemandPercentageAboveBaseCapacity,*float64) - - // How to allocate capacity across the Spot pools. Valid values: lowest-price, capacity-optimized, capacity-optimized-prioritized, and price-capacity-optimized. Default: lowest-price. - spotAllocationStrategy?: null | string @go(SpotAllocationStrategy,*string) - - // Number of Spot pools per availability zone to allocate capacity. EC2 Auto Scaling selects the cheapest Spot pools and evenly allocates Spot capacity across the number of Spot pools that you specify. Only available with spot_allocation_strategy set to lowest-price. Otherwise it must be set to 0, if it has been defined before. Default: 2. - spotInstancePools?: null | float64 @go(SpotInstancePools,*float64) - - // Maximum price per unit hour that the user is willing to pay for the Spot instances. Default: an empty string which means the on-demand price. - spotMaxPrice?: null | string @go(SpotMaxPrice,*string) -} - -#InstancesDistributionObservation: { - // Strategy to use when launching on-demand instances. Valid values: prioritized, lowest-price. Default: prioritized. - onDemandAllocationStrategy?: null | string @go(OnDemandAllocationStrategy,*string) - - // Absolute minimum amount of desired capacity that must be fulfilled by on-demand instances. Default: 0. - onDemandBaseCapacity?: null | float64 @go(OnDemandBaseCapacity,*float64) - - // Percentage split between on-demand and Spot instances above the base on-demand capacity. Default: 100. - onDemandPercentageAboveBaseCapacity?: null | float64 @go(OnDemandPercentageAboveBaseCapacity,*float64) - - // How to allocate capacity across the Spot pools. Valid values: lowest-price, capacity-optimized, capacity-optimized-prioritized, and price-capacity-optimized. Default: lowest-price. - spotAllocationStrategy?: null | string @go(SpotAllocationStrategy,*string) - - // Number of Spot pools per availability zone to allocate capacity. EC2 Auto Scaling selects the cheapest Spot pools and evenly allocates Spot capacity across the number of Spot pools that you specify. Only available with spot_allocation_strategy set to lowest-price. Otherwise it must be set to 0, if it has been defined before. Default: 2. - spotInstancePools?: null | float64 @go(SpotInstancePools,*float64) - - // Maximum price per unit hour that the user is willing to pay for the Spot instances. Default: an empty string which means the on-demand price. - spotMaxPrice?: null | string @go(SpotMaxPrice,*string) -} - -#InstancesDistributionParameters: { - // Strategy to use when launching on-demand instances. Valid values: prioritized, lowest-price. Default: prioritized. - // +kubebuilder:validation:Optional - onDemandAllocationStrategy?: null | string @go(OnDemandAllocationStrategy,*string) - - // Absolute minimum amount of desired capacity that must be fulfilled by on-demand instances. Default: 0. - // +kubebuilder:validation:Optional - onDemandBaseCapacity?: null | float64 @go(OnDemandBaseCapacity,*float64) - - // Percentage split between on-demand and Spot instances above the base on-demand capacity. Default: 100. - // +kubebuilder:validation:Optional - onDemandPercentageAboveBaseCapacity?: null | float64 @go(OnDemandPercentageAboveBaseCapacity,*float64) - - // How to allocate capacity across the Spot pools. Valid values: lowest-price, capacity-optimized, capacity-optimized-prioritized, and price-capacity-optimized. Default: lowest-price. - // +kubebuilder:validation:Optional - spotAllocationStrategy?: null | string @go(SpotAllocationStrategy,*string) - - // Number of Spot pools per availability zone to allocate capacity. EC2 Auto Scaling selects the cheapest Spot pools and evenly allocates Spot capacity across the number of Spot pools that you specify. Only available with spot_allocation_strategy set to lowest-price. Otherwise it must be set to 0, if it has been defined before. Default: 2. - // +kubebuilder:validation:Optional - spotInstancePools?: null | float64 @go(SpotInstancePools,*float64) - - // Maximum price per unit hour that the user is willing to pay for the Spot instances. Default: an empty string which means the on-demand price. - // +kubebuilder:validation:Optional - spotMaxPrice?: null | string @go(SpotMaxPrice,*string) -} - -#LaunchTemplateInitParameters: { - // Name of the launch template. Conflicts with id. - name?: null | string @go(Name,*string) - - // Template version. Can be version number, $Latest, or $Default. (Default: $Default). - version?: null | string @go(Version,*string) -} - -#LaunchTemplateObservation: { - // ID of the launch template. Conflicts with name. - id?: null | string @go(ID,*string) - - // Name of the launch template. Conflicts with id. - name?: null | string @go(Name,*string) - - // Template version. Can be version number, $Latest, or $Default. (Default: $Default). - version?: null | string @go(Version,*string) -} - -#LaunchTemplateParameters: { - // ID of the launch template. Conflicts with name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.LaunchTemplate - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Reference to a LaunchTemplate in ec2 to populate id. - // +kubebuilder:validation:Optional - idRef?: null | v1.#Reference @go(IDRef,*v1.Reference) - - // Selector for a LaunchTemplate in ec2 to populate id. - // +kubebuilder:validation:Optional - idSelector?: null | v1.#Selector @go(IDSelector,*v1.Selector) - - // Name of the launch template. Conflicts with id. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Template version. Can be version number, $Latest, or $Default. (Default: $Default). - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#LaunchTemplateSpecificationInitParameters: { - // Name of the launch template. Conflicts with launch_template_id. - launchTemplateName?: null | string @go(LaunchTemplateName,*string) - - // Template version. Can be version number, $Latest, or $Default. (Default: $Default). - version?: null | string @go(Version,*string) -} - -#LaunchTemplateSpecificationObservation: { - // ID of the launch template. Conflicts with launch_template_name. - launchTemplateId?: null | string @go(LaunchTemplateID,*string) - - // Name of the launch template. Conflicts with launch_template_id. - launchTemplateName?: null | string @go(LaunchTemplateName,*string) - - // Template version. Can be version number, $Latest, or $Default. (Default: $Default). - version?: null | string @go(Version,*string) -} - -#LaunchTemplateSpecificationParameters: { - // ID of the launch template. Conflicts with launch_template_name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.LaunchTemplate - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - launchTemplateId?: null | string @go(LaunchTemplateID,*string) - - // Reference to a LaunchTemplate in ec2 to populate launchTemplateId. - // +kubebuilder:validation:Optional - launchTemplateIdRef?: null | v1.#Reference @go(LaunchTemplateIDRef,*v1.Reference) - - // Selector for a LaunchTemplate in ec2 to populate launchTemplateId. - // +kubebuilder:validation:Optional - launchTemplateIdSelector?: null | v1.#Selector @go(LaunchTemplateIDSelector,*v1.Selector) - - // Name of the launch template. Conflicts with launch_template_id. - // +kubebuilder:validation:Optional - launchTemplateName?: null | string @go(LaunchTemplateName,*string) - - // Template version. Can be version number, $Latest, or $Default. (Default: $Default). - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#MemoryGibPerVcpuInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#MemoryGibPerVcpuObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#MemoryGibPerVcpuParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#MemoryMibInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#MemoryMibObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#MemoryMibParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#MixedInstancesPolicyInitParameters: { - // Nested argument containing settings on how to mix on-demand and Spot instances in the Auto Scaling group. Defined below. - instancesDistribution?: [...#InstancesDistributionInitParameters] @go(InstancesDistribution,[]InstancesDistributionInitParameters) - - // Nested argument containing launch template settings along with the overrides to specify multiple instance types and weights. Defined below. - launchTemplate?: [...#MixedInstancesPolicyLaunchTemplateInitParameters] @go(LaunchTemplate,[]MixedInstancesPolicyLaunchTemplateInitParameters) -} - -#MixedInstancesPolicyLaunchTemplateInitParameters: { - // Nested argument defines the Launch Template. Defined below. - launchTemplateSpecification?: [...#LaunchTemplateSpecificationInitParameters] @go(LaunchTemplateSpecification,[]LaunchTemplateSpecificationInitParameters) - - // List of nested arguments provides the ability to specify multiple instance types. This will override the same parameter in the launch template. For on-demand instances, Auto Scaling considers the order of preference of instance types to launch based on the order specified in the overrides list. Defined below. - override?: [...#OverrideInitParameters] @go(Override,[]OverrideInitParameters) -} - -#MixedInstancesPolicyLaunchTemplateObservation: { - // Nested argument defines the Launch Template. Defined below. - launchTemplateSpecification?: [...#LaunchTemplateSpecificationObservation] @go(LaunchTemplateSpecification,[]LaunchTemplateSpecificationObservation) - - // List of nested arguments provides the ability to specify multiple instance types. This will override the same parameter in the launch template. For on-demand instances, Auto Scaling considers the order of preference of instance types to launch based on the order specified in the overrides list. Defined below. - override?: [...#OverrideObservation] @go(Override,[]OverrideObservation) -} - -#MixedInstancesPolicyLaunchTemplateParameters: { - // Nested argument defines the Launch Template. Defined below. - // +kubebuilder:validation:Optional - launchTemplateSpecification: [...#LaunchTemplateSpecificationParameters] @go(LaunchTemplateSpecification,[]LaunchTemplateSpecificationParameters) - - // List of nested arguments provides the ability to specify multiple instance types. This will override the same parameter in the launch template. For on-demand instances, Auto Scaling considers the order of preference of instance types to launch based on the order specified in the overrides list. Defined below. - // +kubebuilder:validation:Optional - override?: [...#OverrideParameters] @go(Override,[]OverrideParameters) -} - -#MixedInstancesPolicyObservation: { - // Nested argument containing settings on how to mix on-demand and Spot instances in the Auto Scaling group. Defined below. - instancesDistribution?: [...#InstancesDistributionObservation] @go(InstancesDistribution,[]InstancesDistributionObservation) - - // Nested argument containing launch template settings along with the overrides to specify multiple instance types and weights. Defined below. - launchTemplate?: [...#MixedInstancesPolicyLaunchTemplateObservation] @go(LaunchTemplate,[]MixedInstancesPolicyLaunchTemplateObservation) -} - -#MixedInstancesPolicyParameters: { - // Nested argument containing settings on how to mix on-demand and Spot instances in the Auto Scaling group. Defined below. - // +kubebuilder:validation:Optional - instancesDistribution?: [...#InstancesDistributionParameters] @go(InstancesDistribution,[]InstancesDistributionParameters) - - // Nested argument containing launch template settings along with the overrides to specify multiple instance types and weights. Defined below. - // +kubebuilder:validation:Optional - launchTemplate: [...#MixedInstancesPolicyLaunchTemplateParameters] @go(LaunchTemplate,[]MixedInstancesPolicyLaunchTemplateParameters) -} - -#NetworkBandwidthGbpsInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#NetworkBandwidthGbpsObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#NetworkBandwidthGbpsParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#NetworkInterfaceCountInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#NetworkInterfaceCountObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#NetworkInterfaceCountParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#OverrideInitParameters: { - // Override the instance type in the Launch Template with instance types that satisfy the requirements. - instanceRequirements?: [...#InstanceRequirementsInitParameters] @go(InstanceRequirements,[]InstanceRequirementsInitParameters) - - // Override the instance type in the Launch Template. - instanceType?: null | string @go(InstanceType,*string) - - // Nested argument defines the Launch Template. Defined below. - launchTemplateSpecification?: [...#OverrideLaunchTemplateSpecificationInitParameters] @go(LaunchTemplateSpecification,[]OverrideLaunchTemplateSpecificationInitParameters) - - // Number of capacity units, which gives the instance type a proportional weight to other instance types. - weightedCapacity?: null | string @go(WeightedCapacity,*string) -} - -#OverrideLaunchTemplateSpecificationInitParameters: { - // Name of the launch template. Conflicts with launch_template_id. - launchTemplateName?: null | string @go(LaunchTemplateName,*string) - - // Template version. Can be version number, $Latest, or $Default. (Default: $Default). - version?: null | string @go(Version,*string) -} - -#OverrideLaunchTemplateSpecificationObservation: { - // ID of the launch template. Conflicts with launch_template_name. - launchTemplateId?: null | string @go(LaunchTemplateID,*string) - - // Name of the launch template. Conflicts with launch_template_id. - launchTemplateName?: null | string @go(LaunchTemplateName,*string) - - // Template version. Can be version number, $Latest, or $Default. (Default: $Default). - version?: null | string @go(Version,*string) -} - -#OverrideLaunchTemplateSpecificationParameters: { - // ID of the launch template. Conflicts with launch_template_name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.LaunchTemplate - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - launchTemplateId?: null | string @go(LaunchTemplateID,*string) - - // Reference to a LaunchTemplate in ec2 to populate launchTemplateId. - // +kubebuilder:validation:Optional - launchTemplateIdRef?: null | v1.#Reference @go(LaunchTemplateIDRef,*v1.Reference) - - // Selector for a LaunchTemplate in ec2 to populate launchTemplateId. - // +kubebuilder:validation:Optional - launchTemplateIdSelector?: null | v1.#Selector @go(LaunchTemplateIDSelector,*v1.Selector) - - // Name of the launch template. Conflicts with launch_template_id. - // +kubebuilder:validation:Optional - launchTemplateName?: null | string @go(LaunchTemplateName,*string) - - // Template version. Can be version number, $Latest, or $Default. (Default: $Default). - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#OverrideObservation: { - // Override the instance type in the Launch Template with instance types that satisfy the requirements. - instanceRequirements?: [...#InstanceRequirementsObservation] @go(InstanceRequirements,[]InstanceRequirementsObservation) - - // Override the instance type in the Launch Template. - instanceType?: null | string @go(InstanceType,*string) - - // Nested argument defines the Launch Template. Defined below. - launchTemplateSpecification?: [...#OverrideLaunchTemplateSpecificationObservation] @go(LaunchTemplateSpecification,[]OverrideLaunchTemplateSpecificationObservation) - - // Number of capacity units, which gives the instance type a proportional weight to other instance types. - weightedCapacity?: null | string @go(WeightedCapacity,*string) -} - -#OverrideParameters: { - // Override the instance type in the Launch Template with instance types that satisfy the requirements. - // +kubebuilder:validation:Optional - instanceRequirements?: [...#InstanceRequirementsParameters] @go(InstanceRequirements,[]InstanceRequirementsParameters) - - // Override the instance type in the Launch Template. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // Nested argument defines the Launch Template. Defined below. - // +kubebuilder:validation:Optional - launchTemplateSpecification?: [...#OverrideLaunchTemplateSpecificationParameters] @go(LaunchTemplateSpecification,[]OverrideLaunchTemplateSpecificationParameters) - - // Number of capacity units, which gives the instance type a proportional weight to other instance types. - // +kubebuilder:validation:Optional - weightedCapacity?: null | string @go(WeightedCapacity,*string) -} - -#PreferencesInitParameters: { - // Automatically rollback if instance refresh fails. Defaults to false. - autoRollback?: null | bool @go(AutoRollback,*bool) - - // Number of seconds to wait after a checkpoint. Defaults to 3600. - checkpointDelay?: null | string @go(CheckpointDelay,*string) - - // List of percentages for each checkpoint. Values must be unique and in ascending order. To replace all instances, the final number must be 100. - checkpointPercentages?: [...null | float64] @go(CheckpointPercentages,[]*float64) - - // Number of seconds until a newly launched instance is configured and ready to use. Default behavior is to use the Auto Scaling Group's health check grace period. - instanceWarmup?: null | string @go(InstanceWarmup,*string) - - // Amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the operation to continue, as a percentage of the desired capacity of the Auto Scaling group. Defaults to 90. - minHealthyPercentage?: null | float64 @go(MinHealthyPercentage,*float64) - - // Replace instances that already have your desired configuration. Defaults to false. - skipMatching?: null | bool @go(SkipMatching,*bool) -} - -#PreferencesObservation: { - // Automatically rollback if instance refresh fails. Defaults to false. - autoRollback?: null | bool @go(AutoRollback,*bool) - - // Number of seconds to wait after a checkpoint. Defaults to 3600. - checkpointDelay?: null | string @go(CheckpointDelay,*string) - - // List of percentages for each checkpoint. Values must be unique and in ascending order. To replace all instances, the final number must be 100. - checkpointPercentages?: [...null | float64] @go(CheckpointPercentages,[]*float64) - - // Number of seconds until a newly launched instance is configured and ready to use. Default behavior is to use the Auto Scaling Group's health check grace period. - instanceWarmup?: null | string @go(InstanceWarmup,*string) - - // Amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the operation to continue, as a percentage of the desired capacity of the Auto Scaling group. Defaults to 90. - minHealthyPercentage?: null | float64 @go(MinHealthyPercentage,*float64) - - // Replace instances that already have your desired configuration. Defaults to false. - skipMatching?: null | bool @go(SkipMatching,*bool) -} - -#PreferencesParameters: { - // Automatically rollback if instance refresh fails. Defaults to false. - // +kubebuilder:validation:Optional - autoRollback?: null | bool @go(AutoRollback,*bool) - - // Number of seconds to wait after a checkpoint. Defaults to 3600. - // +kubebuilder:validation:Optional - checkpointDelay?: null | string @go(CheckpointDelay,*string) - - // List of percentages for each checkpoint. Values must be unique and in ascending order. To replace all instances, the final number must be 100. - // +kubebuilder:validation:Optional - checkpointPercentages?: [...null | float64] @go(CheckpointPercentages,[]*float64) - - // Number of seconds until a newly launched instance is configured and ready to use. Default behavior is to use the Auto Scaling Group's health check grace period. - // +kubebuilder:validation:Optional - instanceWarmup?: null | string @go(InstanceWarmup,*string) - - // Amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the operation to continue, as a percentage of the desired capacity of the Auto Scaling group. Defaults to 90. - // +kubebuilder:validation:Optional - minHealthyPercentage?: null | float64 @go(MinHealthyPercentage,*float64) - - // Replace instances that already have your desired configuration. Defaults to false. - // +kubebuilder:validation:Optional - skipMatching?: null | bool @go(SkipMatching,*bool) -} - -#TagInitParameters: { - // Key - key?: null | string @go(Key,*string) - - // Enables propagation of the tag to - // Amazon EC2 instances launched via this ASG - propagateAtLaunch?: null | bool @go(PropagateAtLaunch,*bool) - - // Value - value?: null | string @go(Value,*string) -} - -#TagObservation: { - // Key - key?: null | string @go(Key,*string) - - // Enables propagation of the tag to - // Amazon EC2 instances launched via this ASG - propagateAtLaunch?: null | bool @go(PropagateAtLaunch,*bool) - - // Value - value?: null | string @go(Value,*string) -} - -#TagParameters: { - // Key - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Enables propagation of the tag to - // Amazon EC2 instances launched via this ASG - // +kubebuilder:validation:Optional - propagateAtLaunch?: null | bool @go(PropagateAtLaunch,*bool) - - // Value - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#TotalLocalStorageGbInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#TotalLocalStorageGbObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#TotalLocalStorageGbParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#VcpuCountInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#VcpuCountObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#VcpuCountParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#WarmPoolInitParameters: { - // Whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in. - instanceReusePolicy?: [...#InstanceReusePolicyInitParameters] @go(InstanceReusePolicy,[]InstanceReusePolicyInitParameters) - - // Total maximum number of instances that are allowed to be in the warm pool or in any state except Terminated for the Auto Scaling group. - maxGroupPreparedCapacity?: null | float64 @go(MaxGroupPreparedCapacity,*float64) - - // Minimum size of the Auto Scaling Group. - // (See also Waiting for Capacity below.) - minSize?: null | float64 @go(MinSize,*float64) - - // Sets the instance state to transition to after the lifecycle hooks finish. Valid values are: Stopped (default), Running or Hibernated. - poolState?: null | string @go(PoolState,*string) -} - -#WarmPoolObservation: { - // Whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in. - instanceReusePolicy?: [...#InstanceReusePolicyObservation] @go(InstanceReusePolicy,[]InstanceReusePolicyObservation) - - // Total maximum number of instances that are allowed to be in the warm pool or in any state except Terminated for the Auto Scaling group. - maxGroupPreparedCapacity?: null | float64 @go(MaxGroupPreparedCapacity,*float64) - - // Minimum size of the Auto Scaling Group. - // (See also Waiting for Capacity below.) - minSize?: null | float64 @go(MinSize,*float64) - - // Sets the instance state to transition to after the lifecycle hooks finish. Valid values are: Stopped (default), Running or Hibernated. - poolState?: null | string @go(PoolState,*string) -} - -#WarmPoolParameters: { - // Whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in. - // +kubebuilder:validation:Optional - instanceReusePolicy?: [...#InstanceReusePolicyParameters] @go(InstanceReusePolicy,[]InstanceReusePolicyParameters) - - // Total maximum number of instances that are allowed to be in the warm pool or in any state except Terminated for the Auto Scaling group. - // +kubebuilder:validation:Optional - maxGroupPreparedCapacity?: null | float64 @go(MaxGroupPreparedCapacity,*float64) - - // Minimum size of the Auto Scaling Group. - // (See also Waiting for Capacity below.) - // +kubebuilder:validation:Optional - minSize?: null | float64 @go(MinSize,*float64) - - // Sets the instance state to transition to after the lifecycle hooks finish. Valid values are: Stopped (default), Running or Hibernated. - // +kubebuilder:validation:Optional - poolState?: null | string @go(PoolState,*string) -} - -// AutoscalingGroupSpec defines the desired state of AutoscalingGroup -#AutoscalingGroupSpec: { - v1.#ResourceSpec - forProvider: #AutoscalingGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AutoscalingGroupInitParameters @go(InitProvider) -} - -// AutoscalingGroupStatus defines the observed state of AutoscalingGroup. -#AutoscalingGroupStatus: { - v1.#ResourceStatus - atProvider?: #AutoscalingGroupObservation @go(AtProvider) -} - -// AutoscalingGroup is the Schema for the AutoscalingGroups API. Provides an Auto Scaling Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AutoscalingGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.maxSize) || (has(self.initProvider) && has(self.initProvider.maxSize))",message="spec.forProvider.maxSize is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.minSize) || (has(self.initProvider) && has(self.initProvider.minSize))",message="spec.forProvider.minSize is a required parameter" - spec: #AutoscalingGroupSpec @go(Spec) - status?: #AutoscalingGroupStatus @go(Status) -} - -// AutoscalingGroupList contains a list of AutoscalingGroups -#AutoscalingGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AutoscalingGroup] @go(Items,[]AutoscalingGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_grouptag_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_grouptag_types_go_gen.cue deleted file mode 100644 index 8bbf18b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_grouptag_types_go_gen.cue +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/autoscaling/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GroupTagInitParameters: { - // Tag to create. The tag block is documented below. - tag?: [...#GroupTagTagInitParameters] @go(Tag,[]GroupTagTagInitParameters) -} - -#GroupTagObservation: { - // Name of the Autoscaling Group to apply the tag to. - autoscalingGroupName?: null | string @go(AutoscalingGroupName,*string) - - // ASG name and key, separated by a comma (,) - id?: null | string @go(ID,*string) - - // Tag to create. The tag block is documented below. - tag?: [...#GroupTagTagObservation] @go(Tag,[]GroupTagTagObservation) -} - -#GroupTagParameters: { - // Name of the Autoscaling Group to apply the tag to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/autoscaling/v1beta1.AutoscalingGroup - // +kubebuilder:validation:Optional - autoscalingGroupName?: null | string @go(AutoscalingGroupName,*string) - - // Reference to a AutoscalingGroup in autoscaling to populate autoscalingGroupName. - // +kubebuilder:validation:Optional - autoscalingGroupNameRef?: null | v1.#Reference @go(AutoscalingGroupNameRef,*v1.Reference) - - // Selector for a AutoscalingGroup in autoscaling to populate autoscalingGroupName. - // +kubebuilder:validation:Optional - autoscalingGroupNameSelector?: null | v1.#Selector @go(AutoscalingGroupNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Tag to create. The tag block is documented below. - // +kubebuilder:validation:Optional - tag?: [...#GroupTagTagParameters] @go(Tag,[]GroupTagTagParameters) -} - -#GroupTagTagInitParameters: { - // Tag name. - key?: null | string @go(Key,*string) - - // Whether to propagate the tags to instances launched by the ASG. - propagateAtLaunch?: null | bool @go(PropagateAtLaunch,*bool) - - // Tag value. - value?: null | string @go(Value,*string) -} - -#GroupTagTagObservation: { - // Tag name. - key?: null | string @go(Key,*string) - - // Whether to propagate the tags to instances launched by the ASG. - propagateAtLaunch?: null | bool @go(PropagateAtLaunch,*bool) - - // Tag value. - value?: null | string @go(Value,*string) -} - -#GroupTagTagParameters: { - // Tag name. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Whether to propagate the tags to instances launched by the ASG. - // +kubebuilder:validation:Optional - propagateAtLaunch?: null | bool @go(PropagateAtLaunch,*bool) - - // Tag value. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// GroupTagSpec defines the desired state of GroupTag -#GroupTagSpec: { - v1.#ResourceSpec - forProvider: #GroupTagParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GroupTagInitParameters @go(InitProvider) -} - -// GroupTagStatus defines the observed state of GroupTag. -#GroupTagStatus: { - v1.#ResourceStatus - atProvider?: #GroupTagObservation @go(AtProvider) -} - -// GroupTag is the Schema for the GroupTags API. Manages an individual Autoscaling Group tag -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GroupTag: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.tag) || (has(self.initProvider) && has(self.initProvider.tag))",message="spec.forProvider.tag is a required parameter" - spec: #GroupTagSpec @go(Spec) - status?: #GroupTagStatus @go(Status) -} - -// GroupTagList contains a list of GroupTags -#GroupTagList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GroupTag] @go(Items,[]GroupTag) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 26ad725..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/autoscaling/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=autoscaling.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "autoscaling.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_launchconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_launchconfiguration_types_go_gen.cue deleted file mode 100644 index 8821f56..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_launchconfiguration_types_go_gen.cue +++ /dev/null @@ -1,498 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/autoscaling/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EBSBlockDeviceInitParameters: { - // Whether the volume should be destroyed - // on instance termination (Default: true). - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // The name of the device to mount. - deviceName?: null | string @go(DeviceName,*string) - - // Whether the volume should be encrypted or not. Defaults to false. - encrypted?: null | bool @go(Encrypted,*bool) - - // The amount of provisioned - // IOPS. - // This must be set with a volume_type of "io1". - iops?: null | float64 @go(Iops,*float64) - - // Whether the device in the block device mapping of the AMI is suppressed. - noDevice?: null | bool @go(NoDevice,*bool) - - // The Snapshot ID to mount. - snapshotId?: null | string @go(SnapshotID,*string) - - // The throughput (MiBps) to provision for a gp3 volume. - throughput?: null | float64 @go(Throughput,*float64) - - // The size of the volume in gigabytes. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // The type of volume. Can be standard, gp2, gp3, st1, sc1 or io1. - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSBlockDeviceObservation: { - // Whether the volume should be destroyed - // on instance termination (Default: true). - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // The name of the device to mount. - deviceName?: null | string @go(DeviceName,*string) - - // Whether the volume should be encrypted or not. Defaults to false. - encrypted?: null | bool @go(Encrypted,*bool) - - // The amount of provisioned - // IOPS. - // This must be set with a volume_type of "io1". - iops?: null | float64 @go(Iops,*float64) - - // Whether the device in the block device mapping of the AMI is suppressed. - noDevice?: null | bool @go(NoDevice,*bool) - - // The Snapshot ID to mount. - snapshotId?: null | string @go(SnapshotID,*string) - - // The throughput (MiBps) to provision for a gp3 volume. - throughput?: null | float64 @go(Throughput,*float64) - - // The size of the volume in gigabytes. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // The type of volume. Can be standard, gp2, gp3, st1, sc1 or io1. - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSBlockDeviceParameters: { - // Whether the volume should be destroyed - // on instance termination (Default: true). - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // The name of the device to mount. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Whether the volume should be encrypted or not. Defaults to false. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // The amount of provisioned - // IOPS. - // This must be set with a volume_type of "io1". - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // Whether the device in the block device mapping of the AMI is suppressed. - // +kubebuilder:validation:Optional - noDevice?: null | bool @go(NoDevice,*bool) - - // The Snapshot ID to mount. - // +kubebuilder:validation:Optional - snapshotId?: null | string @go(SnapshotID,*string) - - // The throughput (MiBps) to provision for a gp3 volume. - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // The type of volume. Can be standard, gp2, gp3, st1, sc1 or io1. - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -#EphemeralBlockDeviceInitParameters: { - // The name of the block device to mount on the instance. - deviceName?: null | string @go(DeviceName,*string) - - // Whether the device in the block device mapping of the AMI is suppressed. - noDevice?: null | bool @go(NoDevice,*bool) - - // The Instance Store Device Name. - virtualName?: null | string @go(VirtualName,*string) -} - -#EphemeralBlockDeviceObservation: { - // The name of the block device to mount on the instance. - deviceName?: null | string @go(DeviceName,*string) - - // Whether the device in the block device mapping of the AMI is suppressed. - noDevice?: null | bool @go(NoDevice,*bool) - - // The Instance Store Device Name. - virtualName?: null | string @go(VirtualName,*string) -} - -#EphemeralBlockDeviceParameters: { - // The name of the block device to mount on the instance. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Whether the device in the block device mapping of the AMI is suppressed. - // +kubebuilder:validation:Optional - noDevice?: null | bool @go(NoDevice,*bool) - - // The Instance Store Device Name. - // +kubebuilder:validation:Optional - virtualName?: null | string @go(VirtualName,*string) -} - -#LaunchConfigurationInitParameters: { - // Associate a public ip address with an instance in a VPC. - associatePublicIpAddress?: null | bool @go(AssociatePublicIPAddress,*bool) - - // Additional EBS block devices to attach to the instance. See Block Devices below for details. - ebsBlockDevice?: [...#EBSBlockDeviceInitParameters] @go(EBSBlockDevice,[]EBSBlockDeviceInitParameters) - - // If true, the launched EC2 instance will be EBS-optimized. - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // Enables/disables detailed monitoring. This is enabled by default. - enableMonitoring?: null | bool @go(EnableMonitoring,*bool) - - // Customize Ephemeral (also known as "Instance Store") volumes on the instance. See Block Devices below for details. - ephemeralBlockDevice?: [...#EphemeralBlockDeviceInitParameters] @go(EphemeralBlockDevice,[]EphemeralBlockDeviceInitParameters) - - // The name attribute of the IAM instance profile to associate with launched instances. - iamInstanceProfile?: null | string @go(IAMInstanceProfile,*string) - - // The EC2 image ID to launch. - imageId?: null | string @go(ImageID,*string) - - // The size of instance to launch. - instanceType?: null | string @go(InstanceType,*string) - - // The key name that should be used for the instance. - keyName?: null | string @go(KeyName,*string) - - // The metadata options for the instance. - metadataOptions?: [...#MetadataOptionsInitParameters] @go(MetadataOptions,[]MetadataOptionsInitParameters) - - // The tenancy of the instance. Valid values are default or dedicated, see AWS's Create Launch Configuration for more details. - placementTenancy?: null | string @go(PlacementTenancy,*string) - - // Customize details about the root block device of the instance. See Block Devices below for details. - rootBlockDevice?: [...#RootBlockDeviceInitParameters] @go(RootBlockDevice,[]RootBlockDeviceInitParameters) - - // A list of associated security group IDS. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The maximum price to use for reserving spot instances. - spotPrice?: null | string @go(SpotPrice,*string) - - // The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead. - userData?: null | string @go(UserData,*string) - - // Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption. - userDataBase64?: null | string @go(UserDataBase64,*string) - - // The ID of a ClassicLink-enabled VPC. Only applies to EC2-Classic instances. (eg. vpc-2730681a) - vpcClassicLinkId?: null | string @go(VPCClassicLinkID,*string) - - // The IDs of one or more security groups for the specified ClassicLink-enabled VPC (eg. sg-46ae3d11). - vpcClassicLinkSecurityGroups?: [...null | string] @go(VPCClassicLinkSecurityGroups,[]*string) -} - -#LaunchConfigurationObservation: { - // The Amazon Resource Name of the launch configuration. - arn?: null | string @go(Arn,*string) - - // Associate a public ip address with an instance in a VPC. - associatePublicIpAddress?: null | bool @go(AssociatePublicIPAddress,*bool) - - // Additional EBS block devices to attach to the instance. See Block Devices below for details. - ebsBlockDevice?: [...#EBSBlockDeviceObservation] @go(EBSBlockDevice,[]EBSBlockDeviceObservation) - - // If true, the launched EC2 instance will be EBS-optimized. - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // Enables/disables detailed monitoring. This is enabled by default. - enableMonitoring?: null | bool @go(EnableMonitoring,*bool) - - // Customize Ephemeral (also known as "Instance Store") volumes on the instance. See Block Devices below for details. - ephemeralBlockDevice?: [...#EphemeralBlockDeviceObservation] @go(EphemeralBlockDevice,[]EphemeralBlockDeviceObservation) - - // The name attribute of the IAM instance profile to associate with launched instances. - iamInstanceProfile?: null | string @go(IAMInstanceProfile,*string) - - // The ID of the launch configuration. - id?: null | string @go(ID,*string) - - // The EC2 image ID to launch. - imageId?: null | string @go(ImageID,*string) - - // The size of instance to launch. - instanceType?: null | string @go(InstanceType,*string) - - // The key name that should be used for the instance. - keyName?: null | string @go(KeyName,*string) - - // The metadata options for the instance. - metadataOptions?: [...#MetadataOptionsObservation] @go(MetadataOptions,[]MetadataOptionsObservation) - - // The tenancy of the instance. Valid values are default or dedicated, see AWS's Create Launch Configuration for more details. - placementTenancy?: null | string @go(PlacementTenancy,*string) - - // Customize details about the root block device of the instance. See Block Devices below for details. - rootBlockDevice?: [...#RootBlockDeviceObservation] @go(RootBlockDevice,[]RootBlockDeviceObservation) - - // A list of associated security group IDS. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The maximum price to use for reserving spot instances. - spotPrice?: null | string @go(SpotPrice,*string) - - // The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead. - userData?: null | string @go(UserData,*string) - - // Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption. - userDataBase64?: null | string @go(UserDataBase64,*string) - - // The ID of a ClassicLink-enabled VPC. Only applies to EC2-Classic instances. (eg. vpc-2730681a) - vpcClassicLinkId?: null | string @go(VPCClassicLinkID,*string) - - // The IDs of one or more security groups for the specified ClassicLink-enabled VPC (eg. sg-46ae3d11). - vpcClassicLinkSecurityGroups?: [...null | string] @go(VPCClassicLinkSecurityGroups,[]*string) -} - -#LaunchConfigurationParameters: { - // Associate a public ip address with an instance in a VPC. - // +kubebuilder:validation:Optional - associatePublicIpAddress?: null | bool @go(AssociatePublicIPAddress,*bool) - - // Additional EBS block devices to attach to the instance. See Block Devices below for details. - // +kubebuilder:validation:Optional - ebsBlockDevice?: [...#EBSBlockDeviceParameters] @go(EBSBlockDevice,[]EBSBlockDeviceParameters) - - // If true, the launched EC2 instance will be EBS-optimized. - // +kubebuilder:validation:Optional - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // Enables/disables detailed monitoring. This is enabled by default. - // +kubebuilder:validation:Optional - enableMonitoring?: null | bool @go(EnableMonitoring,*bool) - - // Customize Ephemeral (also known as "Instance Store") volumes on the instance. See Block Devices below for details. - // +kubebuilder:validation:Optional - ephemeralBlockDevice?: [...#EphemeralBlockDeviceParameters] @go(EphemeralBlockDevice,[]EphemeralBlockDeviceParameters) - - // The name attribute of the IAM instance profile to associate with launched instances. - // +kubebuilder:validation:Optional - iamInstanceProfile?: null | string @go(IAMInstanceProfile,*string) - - // The EC2 image ID to launch. - // +kubebuilder:validation:Optional - imageId?: null | string @go(ImageID,*string) - - // The size of instance to launch. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The key name that should be used for the instance. - // +kubebuilder:validation:Optional - keyName?: null | string @go(KeyName,*string) - - // The metadata options for the instance. - // +kubebuilder:validation:Optional - metadataOptions?: [...#MetadataOptionsParameters] @go(MetadataOptions,[]MetadataOptionsParameters) - - // The tenancy of the instance. Valid values are default or dedicated, see AWS's Create Launch Configuration for more details. - // +kubebuilder:validation:Optional - placementTenancy?: null | string @go(PlacementTenancy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Customize details about the root block device of the instance. See Block Devices below for details. - // +kubebuilder:validation:Optional - rootBlockDevice?: [...#RootBlockDeviceParameters] @go(RootBlockDevice,[]RootBlockDeviceParameters) - - // A list of associated security group IDS. - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The maximum price to use for reserving spot instances. - // +kubebuilder:validation:Optional - spotPrice?: null | string @go(SpotPrice,*string) - - // The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead. - // +kubebuilder:validation:Optional - userData?: null | string @go(UserData,*string) - - // Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption. - // +kubebuilder:validation:Optional - userDataBase64?: null | string @go(UserDataBase64,*string) - - // The ID of a ClassicLink-enabled VPC. Only applies to EC2-Classic instances. (eg. vpc-2730681a) - // +kubebuilder:validation:Optional - vpcClassicLinkId?: null | string @go(VPCClassicLinkID,*string) - - // The IDs of one or more security groups for the specified ClassicLink-enabled VPC (eg. sg-46ae3d11). - // +kubebuilder:validation:Optional - vpcClassicLinkSecurityGroups?: [...null | string] @go(VPCClassicLinkSecurityGroups,[]*string) -} - -#MetadataOptionsInitParameters: { - // The state of the metadata service: enabled, disabled. - httpEndpoint?: null | string @go(HTTPEndpoint,*string) - - // The desired HTTP PUT response hop limit for instance metadata requests. - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // If session tokens are required: optional, required. - httpTokens?: null | string @go(HTTPTokens,*string) -} - -#MetadataOptionsObservation: { - // The state of the metadata service: enabled, disabled. - httpEndpoint?: null | string @go(HTTPEndpoint,*string) - - // The desired HTTP PUT response hop limit for instance metadata requests. - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // If session tokens are required: optional, required. - httpTokens?: null | string @go(HTTPTokens,*string) -} - -#MetadataOptionsParameters: { - // The state of the metadata service: enabled, disabled. - // +kubebuilder:validation:Optional - httpEndpoint?: null | string @go(HTTPEndpoint,*string) - - // The desired HTTP PUT response hop limit for instance metadata requests. - // +kubebuilder:validation:Optional - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // If session tokens are required: optional, required. - // +kubebuilder:validation:Optional - httpTokens?: null | string @go(HTTPTokens,*string) -} - -#RootBlockDeviceInitParameters: { - // Whether the volume should be destroyed on instance termination. Defaults to true. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Whether the volume should be encrypted or not. Defaults to false. - encrypted?: null | bool @go(Encrypted,*bool) - - // The amount of provisioned IOPS. This must be set with a volume_type of io1. - iops?: null | float64 @go(Iops,*float64) - - // The throughput (MiBps) to provision for a gp3 volume. - throughput?: null | float64 @go(Throughput,*float64) - - // The size of the volume in gigabytes. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // The type of volume. Can be standard, gp2, gp3, st1, sc1 or io1. - volumeType?: null | string @go(VolumeType,*string) -} - -#RootBlockDeviceObservation: { - // Whether the volume should be destroyed on instance termination. Defaults to true. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Whether the volume should be encrypted or not. Defaults to false. - encrypted?: null | bool @go(Encrypted,*bool) - - // The amount of provisioned IOPS. This must be set with a volume_type of io1. - iops?: null | float64 @go(Iops,*float64) - - // The throughput (MiBps) to provision for a gp3 volume. - throughput?: null | float64 @go(Throughput,*float64) - - // The size of the volume in gigabytes. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // The type of volume. Can be standard, gp2, gp3, st1, sc1 or io1. - volumeType?: null | string @go(VolumeType,*string) -} - -#RootBlockDeviceParameters: { - // Whether the volume should be destroyed on instance termination. Defaults to true. - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Whether the volume should be encrypted or not. Defaults to false. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // The amount of provisioned IOPS. This must be set with a volume_type of io1. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The throughput (MiBps) to provision for a gp3 volume. - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // The type of volume. Can be standard, gp2, gp3, st1, sc1 or io1. - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -// LaunchConfigurationSpec defines the desired state of LaunchConfiguration -#LaunchConfigurationSpec: { - v1.#ResourceSpec - forProvider: #LaunchConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LaunchConfigurationInitParameters @go(InitProvider) -} - -// LaunchConfigurationStatus defines the observed state of LaunchConfiguration. -#LaunchConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #LaunchConfigurationObservation @go(AtProvider) -} - -// LaunchConfiguration is the Schema for the LaunchConfigurations API. Provides a resource to create a new launch configuration, used for autoscaling groups. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LaunchConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.imageId) || (has(self.initProvider) && has(self.initProvider.imageId))",message="spec.forProvider.imageId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceType) || (has(self.initProvider) && has(self.initProvider.instanceType))",message="spec.forProvider.instanceType is a required parameter" - spec: #LaunchConfigurationSpec @go(Spec) - status?: #LaunchConfigurationStatus @go(Status) -} - -// LaunchConfigurationList contains a list of LaunchConfigurations -#LaunchConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LaunchConfiguration] @go(Items,[]LaunchConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_lifecyclehook_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_lifecyclehook_types_go_gen.cue deleted file mode 100644 index eacd88a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_lifecyclehook_types_go_gen.cue +++ /dev/null @@ -1,152 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/autoscaling/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LifecycleHookInitParameters: { - // Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The value for this parameter can be either CONTINUE or ABANDON. The default value for this parameter is ABANDON. - defaultResult?: null | string @go(DefaultResult,*string) - - // Defines the amount of time, in seconds, that can elapse before the lifecycle hook times out. When the lifecycle hook times out, Auto Scaling performs the action defined in the DefaultResult parameter - heartbeatTimeout?: null | float64 @go(HeartbeatTimeout,*float64) - - // Instance state to which you want to attach the lifecycle hook. For a list of lifecycle hook types, see describe-lifecycle-hook-types - lifecycleTransition?: null | string @go(LifecycleTransition,*string) - - // Contains additional information that you want to include any time Auto Scaling sends a message to the notification target. - notificationMetadata?: null | string @go(NotificationMetadata,*string) - - // ARN of the notification target that Auto Scaling will use to notify you when an instance is in the transition state for the lifecycle hook. This ARN target can be either an SQS queue or an SNS topic. - notificationTargetArn?: null | string @go(NotificationTargetArn,*string) -} - -#LifecycleHookObservation: { - // Name of the Auto Scaling group to which you want to assign the lifecycle hook - autoscalingGroupName?: null | string @go(AutoscalingGroupName,*string) - - // Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The value for this parameter can be either CONTINUE or ABANDON. The default value for this parameter is ABANDON. - defaultResult?: null | string @go(DefaultResult,*string) - - // Defines the amount of time, in seconds, that can elapse before the lifecycle hook times out. When the lifecycle hook times out, Auto Scaling performs the action defined in the DefaultResult parameter - heartbeatTimeout?: null | float64 @go(HeartbeatTimeout,*float64) - id?: null | string @go(ID,*string) - - // Instance state to which you want to attach the lifecycle hook. For a list of lifecycle hook types, see describe-lifecycle-hook-types - lifecycleTransition?: null | string @go(LifecycleTransition,*string) - - // Contains additional information that you want to include any time Auto Scaling sends a message to the notification target. - notificationMetadata?: null | string @go(NotificationMetadata,*string) - - // ARN of the notification target that Auto Scaling will use to notify you when an instance is in the transition state for the lifecycle hook. This ARN target can be either an SQS queue or an SNS topic. - notificationTargetArn?: null | string @go(NotificationTargetArn,*string) - - // ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target. - roleArn?: null | string @go(RoleArn,*string) -} - -#LifecycleHookParameters: { - // Name of the Auto Scaling group to which you want to assign the lifecycle hook - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/autoscaling/v1beta1.AutoscalingGroup - // +kubebuilder:validation:Optional - autoscalingGroupName?: null | string @go(AutoscalingGroupName,*string) - - // Reference to a AutoscalingGroup in autoscaling to populate autoscalingGroupName. - // +kubebuilder:validation:Optional - autoscalingGroupNameRef?: null | v1.#Reference @go(AutoscalingGroupNameRef,*v1.Reference) - - // Selector for a AutoscalingGroup in autoscaling to populate autoscalingGroupName. - // +kubebuilder:validation:Optional - autoscalingGroupNameSelector?: null | v1.#Selector @go(AutoscalingGroupNameSelector,*v1.Selector) - - // Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The value for this parameter can be either CONTINUE or ABANDON. The default value for this parameter is ABANDON. - // +kubebuilder:validation:Optional - defaultResult?: null | string @go(DefaultResult,*string) - - // Defines the amount of time, in seconds, that can elapse before the lifecycle hook times out. When the lifecycle hook times out, Auto Scaling performs the action defined in the DefaultResult parameter - // +kubebuilder:validation:Optional - heartbeatTimeout?: null | float64 @go(HeartbeatTimeout,*float64) - - // Instance state to which you want to attach the lifecycle hook. For a list of lifecycle hook types, see describe-lifecycle-hook-types - // +kubebuilder:validation:Optional - lifecycleTransition?: null | string @go(LifecycleTransition,*string) - - // Contains additional information that you want to include any time Auto Scaling sends a message to the notification target. - // +kubebuilder:validation:Optional - notificationMetadata?: null | string @go(NotificationMetadata,*string) - - // ARN of the notification target that Auto Scaling will use to notify you when an instance is in the transition state for the lifecycle hook. This ARN target can be either an SQS queue or an SNS topic. - // +kubebuilder:validation:Optional - notificationTargetArn?: null | string @go(NotificationTargetArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -// LifecycleHookSpec defines the desired state of LifecycleHook -#LifecycleHookSpec: { - v1.#ResourceSpec - forProvider: #LifecycleHookParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LifecycleHookInitParameters @go(InitProvider) -} - -// LifecycleHookStatus defines the observed state of LifecycleHook. -#LifecycleHookStatus: { - v1.#ResourceStatus - atProvider?: #LifecycleHookObservation @go(AtProvider) -} - -// LifecycleHook is the Schema for the LifecycleHooks API. Provides an AutoScaling Lifecycle Hook resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LifecycleHook: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.lifecycleTransition) || (has(self.initProvider) && has(self.initProvider.lifecycleTransition))",message="spec.forProvider.lifecycleTransition is a required parameter" - spec: #LifecycleHookSpec @go(Spec) - status?: #LifecycleHookStatus @go(Status) -} - -// LifecycleHookList contains a list of LifecycleHooks -#LifecycleHookList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LifecycleHook] @go(Items,[]LifecycleHook) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_notification_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_notification_types_go_gen.cue deleted file mode 100644 index e8321db..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_notification_types_go_gen.cue +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/autoscaling/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NotificationInitParameters: { - // List of AutoScaling Group Names - groupNames?: [...null | string] @go(GroupNames,[]*string) - - // List of Notification Types that trigger - // notifications. Acceptable values are documented in the AWS documentation here - notifications?: [...null | string] @go(Notifications,[]*string) -} - -#NotificationObservation: { - // List of AutoScaling Group Names - groupNames?: [...null | string] @go(GroupNames,[]*string) - id?: null | string @go(ID,*string) - - // List of Notification Types that trigger - // notifications. Acceptable values are documented in the AWS documentation here - notifications?: [...null | string] @go(Notifications,[]*string) - - // Topic ARN for notifications to be sent through - topicArn?: null | string @go(TopicArn,*string) -} - -#NotificationParameters: { - // List of AutoScaling Group Names - // +kubebuilder:validation:Optional - groupNames?: [...null | string] @go(GroupNames,[]*string) - - // List of Notification Types that trigger - // notifications. Acceptable values are documented in the AWS documentation here - // +kubebuilder:validation:Optional - notifications?: [...null | string] @go(Notifications,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Topic ARN for notifications to be sent through - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) - - // Reference to a Topic in sns to populate topicArn. - // +kubebuilder:validation:Optional - topicArnRef?: null | v1.#Reference @go(TopicArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate topicArn. - // +kubebuilder:validation:Optional - topicArnSelector?: null | v1.#Selector @go(TopicArnSelector,*v1.Selector) -} - -// NotificationSpec defines the desired state of Notification -#NotificationSpec: { - v1.#ResourceSpec - forProvider: #NotificationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NotificationInitParameters @go(InitProvider) -} - -// NotificationStatus defines the observed state of Notification. -#NotificationStatus: { - v1.#ResourceStatus - atProvider?: #NotificationObservation @go(AtProvider) -} - -// Notification is the Schema for the Notifications API. Provides an AutoScaling Group with Notification support -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Notification: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.groupNames) || (has(self.initProvider) && has(self.initProvider.groupNames))",message="spec.forProvider.groupNames is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.notifications) || (has(self.initProvider) && has(self.initProvider.notifications))",message="spec.forProvider.notifications is a required parameter" - spec: #NotificationSpec @go(Spec) - status?: #NotificationStatus @go(Status) -} - -// NotificationList contains a list of Notifications -#NotificationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Notification] @go(Items,[]Notification) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_policy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_policy_types_go_gen.cue deleted file mode 100644 index 91f8819..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_policy_types_go_gen.cue +++ /dev/null @@ -1,1290 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/autoscaling/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CustomizedCapacityMetricSpecificationInitParameters: { - // List of up to 10 structures that defines custom capacity metric in predictive scaling policy - metricDataQueries?: [...#MetricDataQueriesInitParameters] @go(MetricDataQueries,[]MetricDataQueriesInitParameters) -} - -#CustomizedCapacityMetricSpecificationObservation: { - // List of up to 10 structures that defines custom capacity metric in predictive scaling policy - metricDataQueries?: [...#MetricDataQueriesObservation] @go(MetricDataQueries,[]MetricDataQueriesObservation) -} - -#CustomizedCapacityMetricSpecificationParameters: { - // List of up to 10 structures that defines custom capacity metric in predictive scaling policy - // +kubebuilder:validation:Optional - metricDataQueries: [...#MetricDataQueriesParameters] @go(MetricDataQueries,[]MetricDataQueriesParameters) -} - -#CustomizedLoadMetricSpecificationInitParameters: { - // List of up to 10 structures that defines custom load metric in predictive scaling policy - metricDataQueries?: [...#CustomizedLoadMetricSpecificationMetricDataQueriesInitParameters] @go(MetricDataQueries,[]CustomizedLoadMetricSpecificationMetricDataQueriesInitParameters) -} - -#CustomizedLoadMetricSpecificationMetricDataQueriesInitParameters: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in predictive scaling policy. - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either expression or metric_stat, but not both. - metricStat?: [...#MetricDataQueriesMetricStatInitParameters] @go(MetricStat,[]MetricDataQueriesMetricStatInitParameters) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - returnData?: null | bool @go(ReturnData,*bool) -} - -#CustomizedLoadMetricSpecificationMetricDataQueriesObservation: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in predictive scaling policy. - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either expression or metric_stat, but not both. - metricStat?: [...#MetricDataQueriesMetricStatObservation] @go(MetricStat,[]MetricDataQueriesMetricStatObservation) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - returnData?: null | bool @go(ReturnData,*bool) -} - -#CustomizedLoadMetricSpecificationMetricDataQueriesParameters: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - // +kubebuilder:validation:Optional - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in predictive scaling policy. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - // +kubebuilder:validation:Optional - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either expression or metric_stat, but not both. - // +kubebuilder:validation:Optional - metricStat?: [...#MetricDataQueriesMetricStatParameters] @go(MetricStat,[]MetricDataQueriesMetricStatParameters) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - // +kubebuilder:validation:Optional - returnData?: null | bool @go(ReturnData,*bool) -} - -#CustomizedLoadMetricSpecificationObservation: { - // List of up to 10 structures that defines custom load metric in predictive scaling policy - metricDataQueries?: [...#CustomizedLoadMetricSpecificationMetricDataQueriesObservation] @go(MetricDataQueries,[]CustomizedLoadMetricSpecificationMetricDataQueriesObservation) -} - -#CustomizedLoadMetricSpecificationParameters: { - // List of up to 10 structures that defines custom load metric in predictive scaling policy - // +kubebuilder:validation:Optional - metricDataQueries: [...#CustomizedLoadMetricSpecificationMetricDataQueriesParameters] @go(MetricDataQueries,[]CustomizedLoadMetricSpecificationMetricDataQueriesParameters) -} - -#CustomizedMetricSpecificationInitParameters: { - // Dimensions of the metric. - metricDimension?: [...#MetricDimensionInitParameters] @go(MetricDimension,[]MetricDimensionInitParameters) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Metrics to include, as a metric data query. - metrics?: [...#MetricsInitParameters] @go(Metrics,[]MetricsInitParameters) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) - - // Statistic of the metric. - statistic?: null | string @go(Statistic,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#CustomizedMetricSpecificationObservation: { - // Dimensions of the metric. - metricDimension?: [...#MetricDimensionObservation] @go(MetricDimension,[]MetricDimensionObservation) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Metrics to include, as a metric data query. - metrics?: [...#MetricsObservation] @go(Metrics,[]MetricsObservation) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) - - // Statistic of the metric. - statistic?: null | string @go(Statistic,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#CustomizedMetricSpecificationParameters: { - // Dimensions of the metric. - // +kubebuilder:validation:Optional - metricDimension?: [...#MetricDimensionParameters] @go(MetricDimension,[]MetricDimensionParameters) - - // Name of the metric. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // Metrics to include, as a metric data query. - // +kubebuilder:validation:Optional - metrics?: [...#MetricsParameters] @go(Metrics,[]MetricsParameters) - - // Namespace of the metric. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) - - // Statistic of the metric. - // +kubebuilder:validation:Optional - statistic?: null | string @go(Statistic,*string) - - // Unit of the metric. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) -} - -#CustomizedScalingMetricSpecificationInitParameters: { - // List of up to 10 structures that defines custom scaling metric in predictive scaling policy - metricDataQueries?: [...#CustomizedScalingMetricSpecificationMetricDataQueriesInitParameters] @go(MetricDataQueries,[]CustomizedScalingMetricSpecificationMetricDataQueriesInitParameters) -} - -#CustomizedScalingMetricSpecificationMetricDataQueriesInitParameters: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in predictive scaling policy. - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either expression or metric_stat, but not both. - metricStat?: [...#CustomizedScalingMetricSpecificationMetricDataQueriesMetricStatInitParameters] @go(MetricStat,[]CustomizedScalingMetricSpecificationMetricDataQueriesMetricStatInitParameters) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - returnData?: null | bool @go(ReturnData,*bool) -} - -#CustomizedScalingMetricSpecificationMetricDataQueriesMetricStatInitParameters: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - metric?: [...#MetricDataQueriesMetricStatMetricInitParameters] @go(Metric,[]MetricDataQueriesMetricStatMetricInitParameters) - - // Statistic of the metrics to return. - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#CustomizedScalingMetricSpecificationMetricDataQueriesMetricStatObservation: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - metric?: [...#MetricDataQueriesMetricStatMetricObservation] @go(Metric,[]MetricDataQueriesMetricStatMetricObservation) - - // Statistic of the metrics to return. - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#CustomizedScalingMetricSpecificationMetricDataQueriesMetricStatParameters: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - // +kubebuilder:validation:Optional - metric: [...#MetricDataQueriesMetricStatMetricParameters] @go(Metric,[]MetricDataQueriesMetricStatMetricParameters) - - // Statistic of the metrics to return. - // +kubebuilder:validation:Optional - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) -} - -#CustomizedScalingMetricSpecificationMetricDataQueriesObservation: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in predictive scaling policy. - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either expression or metric_stat, but not both. - metricStat?: [...#CustomizedScalingMetricSpecificationMetricDataQueriesMetricStatObservation] @go(MetricStat,[]CustomizedScalingMetricSpecificationMetricDataQueriesMetricStatObservation) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - returnData?: null | bool @go(ReturnData,*bool) -} - -#CustomizedScalingMetricSpecificationMetricDataQueriesParameters: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - // +kubebuilder:validation:Optional - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in predictive scaling policy. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - // +kubebuilder:validation:Optional - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either expression or metric_stat, but not both. - // +kubebuilder:validation:Optional - metricStat?: [...#CustomizedScalingMetricSpecificationMetricDataQueriesMetricStatParameters] @go(MetricStat,[]CustomizedScalingMetricSpecificationMetricDataQueriesMetricStatParameters) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - // +kubebuilder:validation:Optional - returnData?: null | bool @go(ReturnData,*bool) -} - -#CustomizedScalingMetricSpecificationObservation: { - // List of up to 10 structures that defines custom scaling metric in predictive scaling policy - metricDataQueries?: [...#CustomizedScalingMetricSpecificationMetricDataQueriesObservation] @go(MetricDataQueries,[]CustomizedScalingMetricSpecificationMetricDataQueriesObservation) -} - -#CustomizedScalingMetricSpecificationParameters: { - // List of up to 10 structures that defines custom scaling metric in predictive scaling policy - // +kubebuilder:validation:Optional - metricDataQueries: [...#CustomizedScalingMetricSpecificationMetricDataQueriesParameters] @go(MetricDataQueries,[]CustomizedScalingMetricSpecificationMetricDataQueriesParameters) -} - -#DimensionsInitParameters: { - // Name of the policy. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#DimensionsObservation: { - // Name of the policy. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#DimensionsParameters: { - // Name of the policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Value of the dimension. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#MetricDataQueriesInitParameters: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in predictive scaling policy. - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either expression or metric_stat, but not both. - metricStat?: [...#MetricStatInitParameters] @go(MetricStat,[]MetricStatInitParameters) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - returnData?: null | bool @go(ReturnData,*bool) -} - -#MetricDataQueriesMetricStatInitParameters: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - metric?: [...#MetricStatMetricInitParameters] @go(Metric,[]MetricStatMetricInitParameters) - - // Statistic of the metrics to return. - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#MetricDataQueriesMetricStatMetricInitParameters: { - // Dimensions of the metric. - dimensions?: [...#MetricStatMetricDimensionsInitParameters] @go(Dimensions,[]MetricStatMetricDimensionsInitParameters) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) -} - -#MetricDataQueriesMetricStatMetricObservation: { - // Dimensions of the metric. - dimensions?: [...#MetricStatMetricDimensionsObservation] @go(Dimensions,[]MetricStatMetricDimensionsObservation) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) -} - -#MetricDataQueriesMetricStatMetricParameters: { - // Dimensions of the metric. - // +kubebuilder:validation:Optional - dimensions?: [...#MetricStatMetricDimensionsParameters] @go(Dimensions,[]MetricStatMetricDimensionsParameters) - - // Name of the metric. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) -} - -#MetricDataQueriesMetricStatObservation: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - metric?: [...#MetricStatMetricObservation] @go(Metric,[]MetricStatMetricObservation) - - // Statistic of the metrics to return. - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#MetricDataQueriesMetricStatParameters: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - // +kubebuilder:validation:Optional - metric: [...#MetricStatMetricParameters] @go(Metric,[]MetricStatMetricParameters) - - // Statistic of the metrics to return. - // +kubebuilder:validation:Optional - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) -} - -#MetricDataQueriesObservation: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in predictive scaling policy. - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either expression or metric_stat, but not both. - metricStat?: [...#MetricStatObservation] @go(MetricStat,[]MetricStatObservation) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - returnData?: null | bool @go(ReturnData,*bool) -} - -#MetricDataQueriesParameters: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - // +kubebuilder:validation:Optional - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in predictive scaling policy. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - // +kubebuilder:validation:Optional - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either expression or metric_stat, but not both. - // +kubebuilder:validation:Optional - metricStat?: [...#MetricStatParameters] @go(MetricStat,[]MetricStatParameters) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - // +kubebuilder:validation:Optional - returnData?: null | bool @go(ReturnData,*bool) -} - -#MetricDimensionInitParameters: { - // Name of the policy. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#MetricDimensionObservation: { - // Name of the policy. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#MetricDimensionParameters: { - // Name of the policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Value of the dimension. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#MetricDimensionsInitParameters: { - // Name of the policy. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#MetricDimensionsObservation: { - // Name of the policy. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#MetricDimensionsParameters: { - // Name of the policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Value of the dimension. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#MetricInitParameters: { - // Dimensions of the metric. - dimensions?: [...#DimensionsInitParameters] @go(Dimensions,[]DimensionsInitParameters) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) -} - -#MetricObservation: { - // Dimensions of the metric. - dimensions?: [...#DimensionsObservation] @go(Dimensions,[]DimensionsObservation) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) -} - -#MetricParameters: { - // Dimensions of the metric. - // +kubebuilder:validation:Optional - dimensions?: [...#DimensionsParameters] @go(Dimensions,[]DimensionsParameters) - - // Name of the metric. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) -} - -#MetricSpecificationInitParameters: { - // Customized capacity metric specification. The field is only valid when you use customized_load_metric_specification - customizedCapacityMetricSpecification?: [...#CustomizedCapacityMetricSpecificationInitParameters] @go(CustomizedCapacityMetricSpecification,[]CustomizedCapacityMetricSpecificationInitParameters) - - // Customized load metric specification. - customizedLoadMetricSpecification?: [...#CustomizedLoadMetricSpecificationInitParameters] @go(CustomizedLoadMetricSpecification,[]CustomizedLoadMetricSpecificationInitParameters) - - // Customized scaling metric specification. - customizedScalingMetricSpecification?: [...#CustomizedScalingMetricSpecificationInitParameters] @go(CustomizedScalingMetricSpecification,[]CustomizedScalingMetricSpecificationInitParameters) - - // Predefined load metric specification. - predefinedLoadMetricSpecification?: [...#PredefinedLoadMetricSpecificationInitParameters] @go(PredefinedLoadMetricSpecification,[]PredefinedLoadMetricSpecificationInitParameters) - - // Metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use. - predefinedMetricPairSpecification?: [...#PredefinedMetricPairSpecificationInitParameters] @go(PredefinedMetricPairSpecification,[]PredefinedMetricPairSpecificationInitParameters) - - // Predefined scaling metric specification. - predefinedScalingMetricSpecification?: [...#PredefinedScalingMetricSpecificationInitParameters] @go(PredefinedScalingMetricSpecification,[]PredefinedScalingMetricSpecificationInitParameters) - - // Target value for the metric. - targetValue?: null | float64 @go(TargetValue,*float64) -} - -#MetricSpecificationObservation: { - // Customized capacity metric specification. The field is only valid when you use customized_load_metric_specification - customizedCapacityMetricSpecification?: [...#CustomizedCapacityMetricSpecificationObservation] @go(CustomizedCapacityMetricSpecification,[]CustomizedCapacityMetricSpecificationObservation) - - // Customized load metric specification. - customizedLoadMetricSpecification?: [...#CustomizedLoadMetricSpecificationObservation] @go(CustomizedLoadMetricSpecification,[]CustomizedLoadMetricSpecificationObservation) - - // Customized scaling metric specification. - customizedScalingMetricSpecification?: [...#CustomizedScalingMetricSpecificationObservation] @go(CustomizedScalingMetricSpecification,[]CustomizedScalingMetricSpecificationObservation) - - // Predefined load metric specification. - predefinedLoadMetricSpecification?: [...#PredefinedLoadMetricSpecificationObservation] @go(PredefinedLoadMetricSpecification,[]PredefinedLoadMetricSpecificationObservation) - - // Metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use. - predefinedMetricPairSpecification?: [...#PredefinedMetricPairSpecificationObservation] @go(PredefinedMetricPairSpecification,[]PredefinedMetricPairSpecificationObservation) - - // Predefined scaling metric specification. - predefinedScalingMetricSpecification?: [...#PredefinedScalingMetricSpecificationObservation] @go(PredefinedScalingMetricSpecification,[]PredefinedScalingMetricSpecificationObservation) - - // Target value for the metric. - targetValue?: null | float64 @go(TargetValue,*float64) -} - -#MetricSpecificationParameters: { - // Customized capacity metric specification. The field is only valid when you use customized_load_metric_specification - // +kubebuilder:validation:Optional - customizedCapacityMetricSpecification?: [...#CustomizedCapacityMetricSpecificationParameters] @go(CustomizedCapacityMetricSpecification,[]CustomizedCapacityMetricSpecificationParameters) - - // Customized load metric specification. - // +kubebuilder:validation:Optional - customizedLoadMetricSpecification?: [...#CustomizedLoadMetricSpecificationParameters] @go(CustomizedLoadMetricSpecification,[]CustomizedLoadMetricSpecificationParameters) - - // Customized scaling metric specification. - // +kubebuilder:validation:Optional - customizedScalingMetricSpecification?: [...#CustomizedScalingMetricSpecificationParameters] @go(CustomizedScalingMetricSpecification,[]CustomizedScalingMetricSpecificationParameters) - - // Predefined load metric specification. - // +kubebuilder:validation:Optional - predefinedLoadMetricSpecification?: [...#PredefinedLoadMetricSpecificationParameters] @go(PredefinedLoadMetricSpecification,[]PredefinedLoadMetricSpecificationParameters) - - // Metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use. - // +kubebuilder:validation:Optional - predefinedMetricPairSpecification?: [...#PredefinedMetricPairSpecificationParameters] @go(PredefinedMetricPairSpecification,[]PredefinedMetricPairSpecificationParameters) - - // Predefined scaling metric specification. - // +kubebuilder:validation:Optional - predefinedScalingMetricSpecification?: [...#PredefinedScalingMetricSpecificationParameters] @go(PredefinedScalingMetricSpecification,[]PredefinedScalingMetricSpecificationParameters) - - // Target value for the metric. - // +kubebuilder:validation:Optional - targetValue?: null | float64 @go(TargetValue,*float64) -} - -#MetricStatInitParameters: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - metric?: [...#MetricInitParameters] @go(Metric,[]MetricInitParameters) - - // Statistic of the metrics to return. - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#MetricStatMetricDimensionsInitParameters: { - // Name of the policy. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#MetricStatMetricDimensionsObservation: { - // Name of the policy. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#MetricStatMetricDimensionsParameters: { - // Name of the policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Value of the dimension. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#MetricStatMetricInitParameters: { - // Dimensions of the metric. - dimensions?: [...#MetricDimensionsInitParameters] @go(Dimensions,[]MetricDimensionsInitParameters) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) -} - -#MetricStatMetricObservation: { - // Dimensions of the metric. - dimensions?: [...#MetricDimensionsObservation] @go(Dimensions,[]MetricDimensionsObservation) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) -} - -#MetricStatMetricParameters: { - // Dimensions of the metric. - // +kubebuilder:validation:Optional - dimensions?: [...#MetricDimensionsParameters] @go(Dimensions,[]MetricDimensionsParameters) - - // Name of the metric. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) -} - -#MetricStatObservation: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - metric?: [...#MetricObservation] @go(Metric,[]MetricObservation) - - // Statistic of the metrics to return. - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#MetricStatParameters: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - // +kubebuilder:validation:Optional - metric: [...#MetricParameters] @go(Metric,[]MetricParameters) - - // Statistic of the metrics to return. - // +kubebuilder:validation:Optional - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) -} - -#MetricsInitParameters: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in predictive scaling policy. - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either expression or metric_stat, but not both. - metricStat?: [...#MetricsMetricStatInitParameters] @go(MetricStat,[]MetricsMetricStatInitParameters) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - returnData?: null | bool @go(ReturnData,*bool) -} - -#MetricsMetricStatInitParameters: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - metric?: [...#MetricsMetricStatMetricInitParameters] @go(Metric,[]MetricsMetricStatMetricInitParameters) - - // Statistic of the metrics to return. - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#MetricsMetricStatMetricDimensionsInitParameters: { - // Name of the policy. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#MetricsMetricStatMetricDimensionsObservation: { - // Name of the policy. - name?: null | string @go(Name,*string) - - // Value of the dimension. - value?: null | string @go(Value,*string) -} - -#MetricsMetricStatMetricDimensionsParameters: { - // Name of the policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Value of the dimension. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#MetricsMetricStatMetricInitParameters: { - // Dimensions of the metric. - dimensions?: [...#MetricsMetricStatMetricDimensionsInitParameters] @go(Dimensions,[]MetricsMetricStatMetricDimensionsInitParameters) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) -} - -#MetricsMetricStatMetricObservation: { - // Dimensions of the metric. - dimensions?: [...#MetricsMetricStatMetricDimensionsObservation] @go(Dimensions,[]MetricsMetricStatMetricDimensionsObservation) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) -} - -#MetricsMetricStatMetricParameters: { - // Dimensions of the metric. - // +kubebuilder:validation:Optional - dimensions?: [...#MetricsMetricStatMetricDimensionsParameters] @go(Dimensions,[]MetricsMetricStatMetricDimensionsParameters) - - // Name of the metric. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) -} - -#MetricsMetricStatObservation: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - metric?: [...#MetricsMetricStatMetricObservation] @go(Metric,[]MetricsMetricStatMetricObservation) - - // Statistic of the metrics to return. - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#MetricsMetricStatParameters: { - // Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. - // +kubebuilder:validation:Optional - metric: [...#MetricsMetricStatMetricParameters] @go(Metric,[]MetricsMetricStatMetricParameters) - - // Statistic of the metrics to return. - // +kubebuilder:validation:Optional - stat?: null | string @go(Stat,*string) - - // Unit of the metric. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) -} - -#MetricsObservation: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in predictive scaling policy. - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either expression or metric_stat, but not both. - metricStat?: [...#MetricsMetricStatObservation] @go(MetricStat,[]MetricsMetricStatObservation) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - returnData?: null | bool @go(ReturnData,*bool) -} - -#MetricsParameters: { - // Math expression used on the returned metric. You must specify either expression or metric_stat, but not both. - // +kubebuilder:validation:Optional - expression?: null | string @go(Expression,*string) - - // Short name for the metric used in predictive scaling policy. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Human-readable label for this metric or expression. - // +kubebuilder:validation:Optional - label?: null | string @go(Label,*string) - - // Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either expression or metric_stat, but not both. - // +kubebuilder:validation:Optional - metricStat?: [...#MetricsMetricStatParameters] @go(MetricStat,[]MetricsMetricStatParameters) - - // Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true - // +kubebuilder:validation:Optional - returnData?: null | bool @go(ReturnData,*bool) -} - -#PolicyInitParameters: { - // Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity. - adjustmentType?: null | string @go(AdjustmentType,*string) - - // Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. - cooldown?: null | float64 @go(Cooldown,*float64) - - // Whether the scaling policy is enabled or disabled. Default: true. - enabled?: null | bool @go(Enabled,*bool) - - // Estimated time, in seconds, until a newly launched instance will contribute CloudWatch metrics. Without a value, AWS will default to the group's specified cooldown period. - estimatedInstanceWarmup?: null | float64 @go(EstimatedInstanceWarmup,*float64) - - // Aggregation type for the policy's metrics. Valid values are "Minimum", "Maximum", and "Average". Without a value, AWS will treat the aggregation type as "Average". - metricAggregationType?: null | string @go(MetricAggregationType,*string) - - // Minimum value to scale by when adjustment_type is set to PercentChangeInCapacity. - minAdjustmentMagnitude?: null | float64 @go(MinAdjustmentMagnitude,*float64) - - // Policy type, either "SimpleScaling", "StepScaling", "TargetTrackingScaling", or "PredictiveScaling". If this value isn't provided, AWS will default to "SimpleScaling." - policyType?: null | string @go(PolicyType,*string) - - // Predictive scaling policy configuration to use with Amazon EC2 Auto Scaling. - predictiveScalingConfiguration?: [...#PredictiveScalingConfigurationInitParameters] @go(PredictiveScalingConfiguration,[]PredictiveScalingConfigurationInitParameters) - - // Number of instances by which to scale. adjustment_type determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity. - scalingAdjustment?: null | float64 @go(ScalingAdjustment,*float64) - - // Set of adjustments that manage - // group scaling. These have the following structure: - stepAdjustment?: [...#StepAdjustmentInitParameters] @go(StepAdjustment,[]StepAdjustmentInitParameters) - - // Target tracking policy. These have the following structure: - targetTrackingConfiguration?: [...#TargetTrackingConfigurationInitParameters] @go(TargetTrackingConfiguration,[]TargetTrackingConfigurationInitParameters) -} - -#PolicyObservation: { - // Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity. - adjustmentType?: null | string @go(AdjustmentType,*string) - - // ARN assigned by AWS to the scaling policy. - arn?: null | string @go(Arn,*string) - - // Name of the autoscaling group. - autoscalingGroupName?: null | string @go(AutoscalingGroupName,*string) - - // Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. - cooldown?: null | float64 @go(Cooldown,*float64) - - // Whether the scaling policy is enabled or disabled. Default: true. - enabled?: null | bool @go(Enabled,*bool) - - // Estimated time, in seconds, until a newly launched instance will contribute CloudWatch metrics. Without a value, AWS will default to the group's specified cooldown period. - estimatedInstanceWarmup?: null | float64 @go(EstimatedInstanceWarmup,*float64) - - // Short name for the metric used in predictive scaling policy. - id?: null | string @go(ID,*string) - - // Aggregation type for the policy's metrics. Valid values are "Minimum", "Maximum", and "Average". Without a value, AWS will treat the aggregation type as "Average". - metricAggregationType?: null | string @go(MetricAggregationType,*string) - - // Minimum value to scale by when adjustment_type is set to PercentChangeInCapacity. - minAdjustmentMagnitude?: null | float64 @go(MinAdjustmentMagnitude,*float64) - - // Policy type, either "SimpleScaling", "StepScaling", "TargetTrackingScaling", or "PredictiveScaling". If this value isn't provided, AWS will default to "SimpleScaling." - policyType?: null | string @go(PolicyType,*string) - - // Predictive scaling policy configuration to use with Amazon EC2 Auto Scaling. - predictiveScalingConfiguration?: [...#PredictiveScalingConfigurationObservation] @go(PredictiveScalingConfiguration,[]PredictiveScalingConfigurationObservation) - - // Number of instances by which to scale. adjustment_type determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity. - scalingAdjustment?: null | float64 @go(ScalingAdjustment,*float64) - - // Set of adjustments that manage - // group scaling. These have the following structure: - stepAdjustment?: [...#StepAdjustmentObservation] @go(StepAdjustment,[]StepAdjustmentObservation) - - // Target tracking policy. These have the following structure: - targetTrackingConfiguration?: [...#TargetTrackingConfigurationObservation] @go(TargetTrackingConfiguration,[]TargetTrackingConfigurationObservation) -} - -#PolicyParameters: { - // Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity. - // +kubebuilder:validation:Optional - adjustmentType?: null | string @go(AdjustmentType,*string) - - // Name of the autoscaling group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/autoscaling/v1beta1.AutoscalingGroup - // +kubebuilder:validation:Optional - autoscalingGroupName?: null | string @go(AutoscalingGroupName,*string) - - // Reference to a AutoscalingGroup in autoscaling to populate autoscalingGroupName. - // +kubebuilder:validation:Optional - autoscalingGroupNameRef?: null | v1.#Reference @go(AutoscalingGroupNameRef,*v1.Reference) - - // Selector for a AutoscalingGroup in autoscaling to populate autoscalingGroupName. - // +kubebuilder:validation:Optional - autoscalingGroupNameSelector?: null | v1.#Selector @go(AutoscalingGroupNameSelector,*v1.Selector) - - // Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. - // +kubebuilder:validation:Optional - cooldown?: null | float64 @go(Cooldown,*float64) - - // Whether the scaling policy is enabled or disabled. Default: true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Estimated time, in seconds, until a newly launched instance will contribute CloudWatch metrics. Without a value, AWS will default to the group's specified cooldown period. - // +kubebuilder:validation:Optional - estimatedInstanceWarmup?: null | float64 @go(EstimatedInstanceWarmup,*float64) - - // Aggregation type for the policy's metrics. Valid values are "Minimum", "Maximum", and "Average". Without a value, AWS will treat the aggregation type as "Average". - // +kubebuilder:validation:Optional - metricAggregationType?: null | string @go(MetricAggregationType,*string) - - // Minimum value to scale by when adjustment_type is set to PercentChangeInCapacity. - // +kubebuilder:validation:Optional - minAdjustmentMagnitude?: null | float64 @go(MinAdjustmentMagnitude,*float64) - - // Policy type, either "SimpleScaling", "StepScaling", "TargetTrackingScaling", or "PredictiveScaling". If this value isn't provided, AWS will default to "SimpleScaling." - // +kubebuilder:validation:Optional - policyType?: null | string @go(PolicyType,*string) - - // Predictive scaling policy configuration to use with Amazon EC2 Auto Scaling. - // +kubebuilder:validation:Optional - predictiveScalingConfiguration?: [...#PredictiveScalingConfigurationParameters] @go(PredictiveScalingConfiguration,[]PredictiveScalingConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Number of instances by which to scale. adjustment_type determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity. - // +kubebuilder:validation:Optional - scalingAdjustment?: null | float64 @go(ScalingAdjustment,*float64) - - // Set of adjustments that manage - // group scaling. These have the following structure: - // +kubebuilder:validation:Optional - stepAdjustment?: [...#StepAdjustmentParameters] @go(StepAdjustment,[]StepAdjustmentParameters) - - // Target tracking policy. These have the following structure: - // +kubebuilder:validation:Optional - targetTrackingConfiguration?: [...#TargetTrackingConfigurationParameters] @go(TargetTrackingConfiguration,[]TargetTrackingConfigurationParameters) -} - -#PredefinedLoadMetricSpecificationInitParameters: { - // Metric type. Valid values are ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, or ALBTargetGroupRequestCount. - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedLoadMetricSpecificationObservation: { - // Metric type. Valid values are ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, or ALBTargetGroupRequestCount. - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedLoadMetricSpecificationParameters: { - // Metric type. Valid values are ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, or ALBTargetGroupRequestCount. - // +kubebuilder:validation:Optional - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. - // +kubebuilder:validation:Optional - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedMetricPairSpecificationInitParameters: { - // Which metrics to use. There are two different types of metrics for each metric type: one is a load metric and one is a scaling metric. For example, if the metric type is ASGCPUUtilization, the Auto Scaling group's total CPU metric is used as the load metric, and the average CPU metric is used for the scaling metric. Valid values are ASGCPUUtilization, ASGNetworkIn, ASGNetworkOut, or ALBRequestCount. - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedMetricPairSpecificationObservation: { - // Which metrics to use. There are two different types of metrics for each metric type: one is a load metric and one is a scaling metric. For example, if the metric type is ASGCPUUtilization, the Auto Scaling group's total CPU metric is used as the load metric, and the average CPU metric is used for the scaling metric. Valid values are ASGCPUUtilization, ASGNetworkIn, ASGNetworkOut, or ALBRequestCount. - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedMetricPairSpecificationParameters: { - // Which metrics to use. There are two different types of metrics for each metric type: one is a load metric and one is a scaling metric. For example, if the metric type is ASGCPUUtilization, the Auto Scaling group's total CPU metric is used as the load metric, and the average CPU metric is used for the scaling metric. Valid values are ASGCPUUtilization, ASGNetworkIn, ASGNetworkOut, or ALBRequestCount. - // +kubebuilder:validation:Optional - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. - // +kubebuilder:validation:Optional - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedMetricSpecificationInitParameters: { - // Describes a scaling metric for a predictive scaling policy. Valid values are ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, or ALBRequestCountPerTarget. - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedMetricSpecificationObservation: { - // Describes a scaling metric for a predictive scaling policy. Valid values are ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, or ALBRequestCountPerTarget. - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedMetricSpecificationParameters: { - // Describes a scaling metric for a predictive scaling policy. Valid values are ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, or ALBRequestCountPerTarget. - // +kubebuilder:validation:Optional - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. - // +kubebuilder:validation:Optional - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedScalingMetricSpecificationInitParameters: { - // Describes a scaling metric for a predictive scaling policy. Valid values are ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, or ALBRequestCountPerTarget. - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedScalingMetricSpecificationObservation: { - // Describes a scaling metric for a predictive scaling policy. Valid values are ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, or ALBRequestCountPerTarget. - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedScalingMetricSpecificationParameters: { - // Describes a scaling metric for a predictive scaling policy. Valid values are ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, or ALBRequestCountPerTarget. - // +kubebuilder:validation:Optional - predefinedMetricType?: null | string @go(PredefinedMetricType,*string) - - // Label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. - // +kubebuilder:validation:Optional - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredictiveScalingConfigurationInitParameters: { - // Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity of the Auto Scaling group. Valid values are HonorMaxCapacity or IncreaseMaxCapacity. Default is HonorMaxCapacity. - maxCapacityBreachBehavior?: null | string @go(MaxCapacityBreachBehavior,*string) - - // Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. Valid range is 0 to 100. If set to 0, Amazon EC2 Auto Scaling may scale capacity higher than the maximum capacity to equal but not exceed forecast capacity. - maxCapacityBuffer?: null | string @go(MaxCapacityBuffer,*string) - - // This structure includes the metrics and target utilization to use for predictive scaling. - metricSpecification?: [...#MetricSpecificationInitParameters] @go(MetricSpecification,[]MetricSpecificationInitParameters) - - // Predictive scaling mode. Valid values are ForecastAndScale and ForecastOnly. Default is ForecastOnly. - mode?: null | string @go(Mode,*string) - - // Amount of time, in seconds, by which the instance launch time can be advanced. Minimum is 0. - schedulingBufferTime?: null | string @go(SchedulingBufferTime,*string) -} - -#PredictiveScalingConfigurationObservation: { - // Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity of the Auto Scaling group. Valid values are HonorMaxCapacity or IncreaseMaxCapacity. Default is HonorMaxCapacity. - maxCapacityBreachBehavior?: null | string @go(MaxCapacityBreachBehavior,*string) - - // Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. Valid range is 0 to 100. If set to 0, Amazon EC2 Auto Scaling may scale capacity higher than the maximum capacity to equal but not exceed forecast capacity. - maxCapacityBuffer?: null | string @go(MaxCapacityBuffer,*string) - - // This structure includes the metrics and target utilization to use for predictive scaling. - metricSpecification?: [...#MetricSpecificationObservation] @go(MetricSpecification,[]MetricSpecificationObservation) - - // Predictive scaling mode. Valid values are ForecastAndScale and ForecastOnly. Default is ForecastOnly. - mode?: null | string @go(Mode,*string) - - // Amount of time, in seconds, by which the instance launch time can be advanced. Minimum is 0. - schedulingBufferTime?: null | string @go(SchedulingBufferTime,*string) -} - -#PredictiveScalingConfigurationParameters: { - // Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity of the Auto Scaling group. Valid values are HonorMaxCapacity or IncreaseMaxCapacity. Default is HonorMaxCapacity. - // +kubebuilder:validation:Optional - maxCapacityBreachBehavior?: null | string @go(MaxCapacityBreachBehavior,*string) - - // Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. Valid range is 0 to 100. If set to 0, Amazon EC2 Auto Scaling may scale capacity higher than the maximum capacity to equal but not exceed forecast capacity. - // +kubebuilder:validation:Optional - maxCapacityBuffer?: null | string @go(MaxCapacityBuffer,*string) - - // This structure includes the metrics and target utilization to use for predictive scaling. - // +kubebuilder:validation:Optional - metricSpecification: [...#MetricSpecificationParameters] @go(MetricSpecification,[]MetricSpecificationParameters) - - // Predictive scaling mode. Valid values are ForecastAndScale and ForecastOnly. Default is ForecastOnly. - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) - - // Amount of time, in seconds, by which the instance launch time can be advanced. Minimum is 0. - // +kubebuilder:validation:Optional - schedulingBufferTime?: null | string @go(SchedulingBufferTime,*string) -} - -#StepAdjustmentInitParameters: { - // Lower bound for the - // difference between the alarm threshold and the CloudWatch metric. - // Without a value, AWS will treat this bound as negative infinity. - metricIntervalLowerBound?: null | string @go(MetricIntervalLowerBound,*string) - - // Upper bound for the - // difference between the alarm threshold and the CloudWatch metric. - // Without a value, AWS will treat this bound as positive infinity. The upper bound - // must be greater than the lower bound. - metricIntervalUpperBound?: null | string @go(MetricIntervalUpperBound,*string) - - // Number of instances by which to scale. adjustment_type determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity. - scalingAdjustment?: null | float64 @go(ScalingAdjustment,*float64) -} - -#StepAdjustmentObservation: { - // Lower bound for the - // difference between the alarm threshold and the CloudWatch metric. - // Without a value, AWS will treat this bound as negative infinity. - metricIntervalLowerBound?: null | string @go(MetricIntervalLowerBound,*string) - - // Upper bound for the - // difference between the alarm threshold and the CloudWatch metric. - // Without a value, AWS will treat this bound as positive infinity. The upper bound - // must be greater than the lower bound. - metricIntervalUpperBound?: null | string @go(MetricIntervalUpperBound,*string) - - // Number of instances by which to scale. adjustment_type determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity. - scalingAdjustment?: null | float64 @go(ScalingAdjustment,*float64) -} - -#StepAdjustmentParameters: { - // Lower bound for the - // difference between the alarm threshold and the CloudWatch metric. - // Without a value, AWS will treat this bound as negative infinity. - // +kubebuilder:validation:Optional - metricIntervalLowerBound?: null | string @go(MetricIntervalLowerBound,*string) - - // Upper bound for the - // difference between the alarm threshold and the CloudWatch metric. - // Without a value, AWS will treat this bound as positive infinity. The upper bound - // must be greater than the lower bound. - // +kubebuilder:validation:Optional - metricIntervalUpperBound?: null | string @go(MetricIntervalUpperBound,*string) - - // Number of instances by which to scale. adjustment_type determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity. - // +kubebuilder:validation:Optional - scalingAdjustment?: null | float64 @go(ScalingAdjustment,*float64) -} - -#TargetTrackingConfigurationInitParameters: { - // Customized metric. Conflicts with predefined_metric_specification. - customizedMetricSpecification?: [...#CustomizedMetricSpecificationInitParameters] @go(CustomizedMetricSpecification,[]CustomizedMetricSpecificationInitParameters) - - // Whether scale in by the target tracking policy is disabled. - disableScaleIn?: null | bool @go(DisableScaleIn,*bool) - - // Predefined metric. Conflicts with customized_metric_specification. - predefinedMetricSpecification?: [...#PredefinedMetricSpecificationInitParameters] @go(PredefinedMetricSpecification,[]PredefinedMetricSpecificationInitParameters) - - // Target value for the metric. - targetValue?: null | float64 @go(TargetValue,*float64) -} - -#TargetTrackingConfigurationObservation: { - // Customized metric. Conflicts with predefined_metric_specification. - customizedMetricSpecification?: [...#CustomizedMetricSpecificationObservation] @go(CustomizedMetricSpecification,[]CustomizedMetricSpecificationObservation) - - // Whether scale in by the target tracking policy is disabled. - disableScaleIn?: null | bool @go(DisableScaleIn,*bool) - - // Predefined metric. Conflicts with customized_metric_specification. - predefinedMetricSpecification?: [...#PredefinedMetricSpecificationObservation] @go(PredefinedMetricSpecification,[]PredefinedMetricSpecificationObservation) - - // Target value for the metric. - targetValue?: null | float64 @go(TargetValue,*float64) -} - -#TargetTrackingConfigurationParameters: { - // Customized metric. Conflicts with predefined_metric_specification. - // +kubebuilder:validation:Optional - customizedMetricSpecification?: [...#CustomizedMetricSpecificationParameters] @go(CustomizedMetricSpecification,[]CustomizedMetricSpecificationParameters) - - // Whether scale in by the target tracking policy is disabled. - // +kubebuilder:validation:Optional - disableScaleIn?: null | bool @go(DisableScaleIn,*bool) - - // Predefined metric. Conflicts with customized_metric_specification. - // +kubebuilder:validation:Optional - predefinedMetricSpecification?: [...#PredefinedMetricSpecificationParameters] @go(PredefinedMetricSpecification,[]PredefinedMetricSpecificationParameters) - - // Target value for the metric. - // +kubebuilder:validation:Optional - targetValue?: null | float64 @go(TargetValue,*float64) -} - -// PolicySpec defines the desired state of Policy -#PolicySpec: { - v1.#ResourceSpec - forProvider: #PolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PolicyInitParameters @go(InitProvider) -} - -// PolicyStatus defines the observed state of Policy. -#PolicyStatus: { - v1.#ResourceStatus - atProvider?: #PolicyObservation @go(AtProvider) -} - -// Policy is the Schema for the Policys API. Provides an AutoScaling Scaling Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Policy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #PolicySpec @go(Spec) - status?: #PolicyStatus @go(Status) -} - -// PolicyList contains a list of Policys -#PolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Policy] @go(Items,[]Policy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_schedule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_schedule_types_go_gen.cue deleted file mode 100644 index a0dd63c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscaling/v1beta1/zz_schedule_types_go_gen.cue +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/autoscaling/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ScheduleInitParameters: { - // The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0. - desiredCapacity?: null | float64 @go(DesiredCapacity,*float64) - - // The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z"). - endTime?: null | string @go(EndTime,*string) - - // The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0. - maxSize?: null | float64 @go(MaxSize,*float64) - - // The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0. - minSize?: null | float64 @go(MinSize,*float64) - - // The recurring schedule for this action specified using the Unix cron syntax format. - recurrence?: null | string @go(Recurrence,*string) - - // The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z"). - startTime?: null | string @go(StartTime,*string) - - // Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti). - timeZone?: null | string @go(TimeZone,*string) -} - -#ScheduleObservation: { - // ARN assigned by AWS to the autoscaling schedule. - arn?: null | string @go(Arn,*string) - - // The name of the Auto Scaling group. - autoscalingGroupName?: null | string @go(AutoscalingGroupName,*string) - - // The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0. - desiredCapacity?: null | float64 @go(DesiredCapacity,*float64) - - // The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z"). - endTime?: null | string @go(EndTime,*string) - id?: null | string @go(ID,*string) - - // The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0. - maxSize?: null | float64 @go(MaxSize,*float64) - - // The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0. - minSize?: null | float64 @go(MinSize,*float64) - - // The recurring schedule for this action specified using the Unix cron syntax format. - recurrence?: null | string @go(Recurrence,*string) - - // The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z"). - startTime?: null | string @go(StartTime,*string) - - // Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti). - timeZone?: null | string @go(TimeZone,*string) -} - -#ScheduleParameters: { - // The name of the Auto Scaling group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/autoscaling/v1beta1.AutoscalingGroup - // +kubebuilder:validation:Optional - autoscalingGroupName?: null | string @go(AutoscalingGroupName,*string) - - // Reference to a AutoscalingGroup in autoscaling to populate autoscalingGroupName. - // +kubebuilder:validation:Optional - autoscalingGroupNameRef?: null | v1.#Reference @go(AutoscalingGroupNameRef,*v1.Reference) - - // Selector for a AutoscalingGroup in autoscaling to populate autoscalingGroupName. - // +kubebuilder:validation:Optional - autoscalingGroupNameSelector?: null | v1.#Selector @go(AutoscalingGroupNameSelector,*v1.Selector) - - // The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0. - // +kubebuilder:validation:Optional - desiredCapacity?: null | float64 @go(DesiredCapacity,*float64) - - // The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z"). - // +kubebuilder:validation:Optional - endTime?: null | string @go(EndTime,*string) - - // The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0. - // +kubebuilder:validation:Optional - maxSize?: null | float64 @go(MaxSize,*float64) - - // The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0. - // +kubebuilder:validation:Optional - minSize?: null | float64 @go(MinSize,*float64) - - // The recurring schedule for this action specified using the Unix cron syntax format. - // +kubebuilder:validation:Optional - recurrence?: null | string @go(Recurrence,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z"). - // +kubebuilder:validation:Optional - startTime?: null | string @go(StartTime,*string) - - // Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti). - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -// ScheduleSpec defines the desired state of Schedule -#ScheduleSpec: { - v1.#ResourceSpec - forProvider: #ScheduleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ScheduleInitParameters @go(InitProvider) -} - -// ScheduleStatus defines the observed state of Schedule. -#ScheduleStatus: { - v1.#ResourceStatus - atProvider?: #ScheduleObservation @go(AtProvider) -} - -// Schedule is the Schema for the Schedules API. Provides an AutoScaling Schedule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Schedule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ScheduleSpec @go(Spec) - status?: #ScheduleStatus @go(Status) -} - -// ScheduleList contains a list of Schedules -#ScheduleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Schedule] @go(Items,[]Schedule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscalingplans/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscalingplans/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 971abb3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscalingplans/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/autoscalingplans/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=autoscalingplans.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "autoscalingplans.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscalingplans/v1beta1/zz_scalingplan_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscalingplans/v1beta1/zz_scalingplan_types_go_gen.cue deleted file mode 100644 index 86ae28d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/autoscalingplans/v1beta1/zz_scalingplan_types_go_gen.cue +++ /dev/null @@ -1,571 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/autoscalingplans/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ApplicationSourceInitParameters: { - // ARN of a AWS CloudFormation stack. - cloudformationStackArn?: null | string @go(CloudFormationStackArn,*string) - - // Set of tags. - tagFilter?: [...#TagFilterInitParameters] @go(TagFilter,[]TagFilterInitParameters) -} - -#ApplicationSourceObservation: { - // ARN of a AWS CloudFormation stack. - cloudformationStackArn?: null | string @go(CloudFormationStackArn,*string) - - // Set of tags. - tagFilter?: [...#TagFilterObservation] @go(TagFilter,[]TagFilterObservation) -} - -#ApplicationSourceParameters: { - // ARN of a AWS CloudFormation stack. - // +kubebuilder:validation:Optional - cloudformationStackArn?: null | string @go(CloudFormationStackArn,*string) - - // Set of tags. - // +kubebuilder:validation:Optional - tagFilter?: [...#TagFilterParameters] @go(TagFilter,[]TagFilterParameters) -} - -#CustomizedLoadMetricSpecificationInitParameters: { - // Dimensions of the metric. - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) - - // Statistic of the metric. Currently, the value must always be Sum. - statistic?: null | string @go(Statistic,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#CustomizedLoadMetricSpecificationObservation: { - // Dimensions of the metric. - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) - - // Statistic of the metric. Currently, the value must always be Sum. - statistic?: null | string @go(Statistic,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#CustomizedLoadMetricSpecificationParameters: { - // Dimensions of the metric. - // +kubebuilder:validation:Optional - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // Name of the metric. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) - - // Statistic of the metric. Currently, the value must always be Sum. - // +kubebuilder:validation:Optional - statistic?: null | string @go(Statistic,*string) - - // Unit of the metric. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) -} - -#CustomizedScalingMetricSpecificationInitParameters: { - // Dimensions of the metric. - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) - - // Statistic of the metric. Currently, the value must always be Sum. - statistic?: null | string @go(Statistic,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#CustomizedScalingMetricSpecificationObservation: { - // Dimensions of the metric. - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // Name of the metric. - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - namespace?: null | string @go(Namespace,*string) - - // Statistic of the metric. Currently, the value must always be Sum. - statistic?: null | string @go(Statistic,*string) - - // Unit of the metric. - unit?: null | string @go(Unit,*string) -} - -#CustomizedScalingMetricSpecificationParameters: { - // Dimensions of the metric. - // +kubebuilder:validation:Optional - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // Name of the metric. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // Namespace of the metric. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) - - // Statistic of the metric. Currently, the value must always be Sum. - // +kubebuilder:validation:Optional - statistic?: null | string @go(Statistic,*string) - - // Unit of the metric. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) -} - -#PredefinedLoadMetricSpecificationInitParameters: { - // Metric type. Valid values: ALBTargetGroupRequestCount, ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut. - predefinedLoadMetricType?: null | string @go(PredefinedLoadMetricType,*string) - - // Identifies the resource associated with the metric type. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedLoadMetricSpecificationObservation: { - // Metric type. Valid values: ALBTargetGroupRequestCount, ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut. - predefinedLoadMetricType?: null | string @go(PredefinedLoadMetricType,*string) - - // Identifies the resource associated with the metric type. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedLoadMetricSpecificationParameters: { - // Metric type. Valid values: ALBTargetGroupRequestCount, ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut. - // +kubebuilder:validation:Optional - predefinedLoadMetricType?: null | string @go(PredefinedLoadMetricType,*string) - - // Identifies the resource associated with the metric type. - // +kubebuilder:validation:Optional - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedScalingMetricSpecificationInitParameters: { - // Metric type. Valid values: ALBRequestCountPerTarget, ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections. - predefinedScalingMetricType?: null | string @go(PredefinedScalingMetricType,*string) - - // Identifies the resource associated with the metric type. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedScalingMetricSpecificationObservation: { - // Metric type. Valid values: ALBRequestCountPerTarget, ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections. - predefinedScalingMetricType?: null | string @go(PredefinedScalingMetricType,*string) - - // Identifies the resource associated with the metric type. - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#PredefinedScalingMetricSpecificationParameters: { - // Metric type. Valid values: ALBRequestCountPerTarget, ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections. - // +kubebuilder:validation:Optional - predefinedScalingMetricType?: null | string @go(PredefinedScalingMetricType,*string) - - // Identifies the resource associated with the metric type. - // +kubebuilder:validation:Optional - resourceLabel?: null | string @go(ResourceLabel,*string) -} - -#ScalingInstructionInitParameters: { - // Customized load metric to use for predictive scaling. You must specify either customized_load_metric_specification or predefined_load_metric_specification when configuring predictive scaling. - // More details can be found in the AWS Auto Scaling API Reference. - customizedLoadMetricSpecification?: [...#CustomizedLoadMetricSpecificationInitParameters] @go(CustomizedLoadMetricSpecification,[]CustomizedLoadMetricSpecificationInitParameters) - - // Boolean controlling whether dynamic scaling by AWS Auto Scaling is disabled. Defaults to false. - disableDynamicScaling?: null | bool @go(DisableDynamicScaling,*bool) - - // Maximum capacity of the resource. The exception to this upper limit is if you specify a non-default setting for predictive_scaling_max_capacity_behavior. - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // Minimum capacity of the resource. - minCapacity?: null | float64 @go(MinCapacity,*float64) - - // Predefined load metric to use for predictive scaling. You must specify either predefined_load_metric_specification or customized_load_metric_specification when configuring predictive scaling. - // More details can be found in the AWS Auto Scaling API Reference. - predefinedLoadMetricSpecification?: [...#PredefinedLoadMetricSpecificationInitParameters] @go(PredefinedLoadMetricSpecification,[]PredefinedLoadMetricSpecificationInitParameters) - - // Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity specified for the resource. - // Valid values: SetForecastCapacityToMaxCapacity, SetMaxCapacityAboveForecastCapacity, SetMaxCapacityToForecastCapacity. - predictiveScalingMaxCapacityBehavior?: null | string @go(PredictiveScalingMaxCapacityBehavior,*string) - - // Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. - predictiveScalingMaxCapacityBuffer?: null | float64 @go(PredictiveScalingMaxCapacityBuffer,*float64) - - // Predictive scaling mode. Valid values: ForecastAndScale, ForecastOnly. - predictiveScalingMode?: null | string @go(PredictiveScalingMode,*string) - - // ID of the resource. This string consists of the resource type and unique identifier. - resourceId?: null | string @go(ResourceID,*string) - - // Scalable dimension associated with the resource. Valid values: autoscaling:autoScalingGroup:DesiredCapacity, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, rds:cluster:ReadReplicaCount. - scalableDimension?: null | string @go(ScalableDimension,*string) - - // Controls whether a resource's externally created scaling policies are kept or replaced. Valid values: KeepExternalPolicies, ReplaceExternalPolicies. Defaults to KeepExternalPolicies. - scalingPolicyUpdateBehavior?: null | string @go(ScalingPolicyUpdateBehavior,*string) - - // Amount of time, in seconds, to buffer the run time of scheduled scaling actions when scaling out. - scheduledActionBufferTime?: null | float64 @go(ScheduledActionBufferTime,*float64) - - // Namespace of the AWS service. Valid values: autoscaling, dynamodb, ecs, ec2, rds. - serviceNamespace?: null | string @go(ServiceNamespace,*string) - - // Structure that defines new target tracking configurations. Each of these structures includes a specific scaling metric and a target value for the metric, along with various parameters to use with dynamic scaling. - // More details can be found in the AWS Auto Scaling API Reference. - targetTrackingConfiguration?: [...#TargetTrackingConfigurationInitParameters] @go(TargetTrackingConfiguration,[]TargetTrackingConfigurationInitParameters) -} - -#ScalingInstructionObservation: { - // Customized load metric to use for predictive scaling. You must specify either customized_load_metric_specification or predefined_load_metric_specification when configuring predictive scaling. - // More details can be found in the AWS Auto Scaling API Reference. - customizedLoadMetricSpecification?: [...#CustomizedLoadMetricSpecificationObservation] @go(CustomizedLoadMetricSpecification,[]CustomizedLoadMetricSpecificationObservation) - - // Boolean controlling whether dynamic scaling by AWS Auto Scaling is disabled. Defaults to false. - disableDynamicScaling?: null | bool @go(DisableDynamicScaling,*bool) - - // Maximum capacity of the resource. The exception to this upper limit is if you specify a non-default setting for predictive_scaling_max_capacity_behavior. - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // Minimum capacity of the resource. - minCapacity?: null | float64 @go(MinCapacity,*float64) - - // Predefined load metric to use for predictive scaling. You must specify either predefined_load_metric_specification or customized_load_metric_specification when configuring predictive scaling. - // More details can be found in the AWS Auto Scaling API Reference. - predefinedLoadMetricSpecification?: [...#PredefinedLoadMetricSpecificationObservation] @go(PredefinedLoadMetricSpecification,[]PredefinedLoadMetricSpecificationObservation) - - // Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity specified for the resource. - // Valid values: SetForecastCapacityToMaxCapacity, SetMaxCapacityAboveForecastCapacity, SetMaxCapacityToForecastCapacity. - predictiveScalingMaxCapacityBehavior?: null | string @go(PredictiveScalingMaxCapacityBehavior,*string) - - // Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. - predictiveScalingMaxCapacityBuffer?: null | float64 @go(PredictiveScalingMaxCapacityBuffer,*float64) - - // Predictive scaling mode. Valid values: ForecastAndScale, ForecastOnly. - predictiveScalingMode?: null | string @go(PredictiveScalingMode,*string) - - // ID of the resource. This string consists of the resource type and unique identifier. - resourceId?: null | string @go(ResourceID,*string) - - // Scalable dimension associated with the resource. Valid values: autoscaling:autoScalingGroup:DesiredCapacity, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, rds:cluster:ReadReplicaCount. - scalableDimension?: null | string @go(ScalableDimension,*string) - - // Controls whether a resource's externally created scaling policies are kept or replaced. Valid values: KeepExternalPolicies, ReplaceExternalPolicies. Defaults to KeepExternalPolicies. - scalingPolicyUpdateBehavior?: null | string @go(ScalingPolicyUpdateBehavior,*string) - - // Amount of time, in seconds, to buffer the run time of scheduled scaling actions when scaling out. - scheduledActionBufferTime?: null | float64 @go(ScheduledActionBufferTime,*float64) - - // Namespace of the AWS service. Valid values: autoscaling, dynamodb, ecs, ec2, rds. - serviceNamespace?: null | string @go(ServiceNamespace,*string) - - // Structure that defines new target tracking configurations. Each of these structures includes a specific scaling metric and a target value for the metric, along with various parameters to use with dynamic scaling. - // More details can be found in the AWS Auto Scaling API Reference. - targetTrackingConfiguration?: [...#TargetTrackingConfigurationObservation] @go(TargetTrackingConfiguration,[]TargetTrackingConfigurationObservation) -} - -#ScalingInstructionParameters: { - // Customized load metric to use for predictive scaling. You must specify either customized_load_metric_specification or predefined_load_metric_specification when configuring predictive scaling. - // More details can be found in the AWS Auto Scaling API Reference. - // +kubebuilder:validation:Optional - customizedLoadMetricSpecification?: [...#CustomizedLoadMetricSpecificationParameters] @go(CustomizedLoadMetricSpecification,[]CustomizedLoadMetricSpecificationParameters) - - // Boolean controlling whether dynamic scaling by AWS Auto Scaling is disabled. Defaults to false. - // +kubebuilder:validation:Optional - disableDynamicScaling?: null | bool @go(DisableDynamicScaling,*bool) - - // Maximum capacity of the resource. The exception to this upper limit is if you specify a non-default setting for predictive_scaling_max_capacity_behavior. - // +kubebuilder:validation:Optional - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // Minimum capacity of the resource. - // +kubebuilder:validation:Optional - minCapacity?: null | float64 @go(MinCapacity,*float64) - - // Predefined load metric to use for predictive scaling. You must specify either predefined_load_metric_specification or customized_load_metric_specification when configuring predictive scaling. - // More details can be found in the AWS Auto Scaling API Reference. - // +kubebuilder:validation:Optional - predefinedLoadMetricSpecification?: [...#PredefinedLoadMetricSpecificationParameters] @go(PredefinedLoadMetricSpecification,[]PredefinedLoadMetricSpecificationParameters) - - // Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity specified for the resource. - // Valid values: SetForecastCapacityToMaxCapacity, SetMaxCapacityAboveForecastCapacity, SetMaxCapacityToForecastCapacity. - // +kubebuilder:validation:Optional - predictiveScalingMaxCapacityBehavior?: null | string @go(PredictiveScalingMaxCapacityBehavior,*string) - - // Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. - // +kubebuilder:validation:Optional - predictiveScalingMaxCapacityBuffer?: null | float64 @go(PredictiveScalingMaxCapacityBuffer,*float64) - - // Predictive scaling mode. Valid values: ForecastAndScale, ForecastOnly. - // +kubebuilder:validation:Optional - predictiveScalingMode?: null | string @go(PredictiveScalingMode,*string) - - // ID of the resource. This string consists of the resource type and unique identifier. - // +kubebuilder:validation:Optional - resourceId?: null | string @go(ResourceID,*string) - - // Scalable dimension associated with the resource. Valid values: autoscaling:autoScalingGroup:DesiredCapacity, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, rds:cluster:ReadReplicaCount. - // +kubebuilder:validation:Optional - scalableDimension?: null | string @go(ScalableDimension,*string) - - // Controls whether a resource's externally created scaling policies are kept or replaced. Valid values: KeepExternalPolicies, ReplaceExternalPolicies. Defaults to KeepExternalPolicies. - // +kubebuilder:validation:Optional - scalingPolicyUpdateBehavior?: null | string @go(ScalingPolicyUpdateBehavior,*string) - - // Amount of time, in seconds, to buffer the run time of scheduled scaling actions when scaling out. - // +kubebuilder:validation:Optional - scheduledActionBufferTime?: null | float64 @go(ScheduledActionBufferTime,*float64) - - // Namespace of the AWS service. Valid values: autoscaling, dynamodb, ecs, ec2, rds. - // +kubebuilder:validation:Optional - serviceNamespace?: null | string @go(ServiceNamespace,*string) - - // Structure that defines new target tracking configurations. Each of these structures includes a specific scaling metric and a target value for the metric, along with various parameters to use with dynamic scaling. - // More details can be found in the AWS Auto Scaling API Reference. - // +kubebuilder:validation:Optional - targetTrackingConfiguration: [...#TargetTrackingConfigurationParameters] @go(TargetTrackingConfiguration,[]TargetTrackingConfigurationParameters) -} - -#ScalingPlanInitParameters: { - // CloudFormation stack or set of tags. You can create one scaling plan per application source. - applicationSource?: [...#ApplicationSourceInitParameters] @go(ApplicationSource,[]ApplicationSourceInitParameters) - - // Name of the scaling plan. Names cannot contain vertical bars, colons, or forward slashes. - name?: null | string @go(Name,*string) - - // Scaling instructions. More details can be found in the AWS Auto Scaling API Reference. - scalingInstruction?: [...#ScalingInstructionInitParameters] @go(ScalingInstruction,[]ScalingInstructionInitParameters) -} - -#ScalingPlanObservation: { - // CloudFormation stack or set of tags. You can create one scaling plan per application source. - applicationSource?: [...#ApplicationSourceObservation] @go(ApplicationSource,[]ApplicationSourceObservation) - - // Scaling plan identifier. - id?: null | string @go(ID,*string) - - // Name of the scaling plan. Names cannot contain vertical bars, colons, or forward slashes. - name?: null | string @go(Name,*string) - - // Scaling instructions. More details can be found in the AWS Auto Scaling API Reference. - scalingInstruction?: [...#ScalingInstructionObservation] @go(ScalingInstruction,[]ScalingInstructionObservation) - - // The version number of the scaling plan. This value is always 1. - scalingPlanVersion?: null | float64 @go(ScalingPlanVersion,*float64) -} - -#ScalingPlanParameters: { - // CloudFormation stack or set of tags. You can create one scaling plan per application source. - // +kubebuilder:validation:Optional - applicationSource?: [...#ApplicationSourceParameters] @go(ApplicationSource,[]ApplicationSourceParameters) - - // Name of the scaling plan. Names cannot contain vertical bars, colons, or forward slashes. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Scaling instructions. More details can be found in the AWS Auto Scaling API Reference. - // +kubebuilder:validation:Optional - scalingInstruction?: [...#ScalingInstructionParameters] @go(ScalingInstruction,[]ScalingInstructionParameters) -} - -#TagFilterInitParameters: { - // Tag key. - key?: null | string @go(Key,*string) - - // Tag values. - values?: [...null | string] @go(Values,[]*string) -} - -#TagFilterObservation: { - // Tag key. - key?: null | string @go(Key,*string) - - // Tag values. - values?: [...null | string] @go(Values,[]*string) -} - -#TagFilterParameters: { - // Tag key. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Tag values. - // +kubebuilder:validation:Optional - values?: [...null | string] @go(Values,[]*string) -} - -#TargetTrackingConfigurationInitParameters: { - // Customized metric. You can specify either customized_scaling_metric_specification or predefined_scaling_metric_specification. - // More details can be found in the AWS Auto Scaling API Reference. - customizedScalingMetricSpecification?: [...#CustomizedScalingMetricSpecificationInitParameters] @go(CustomizedScalingMetricSpecification,[]CustomizedScalingMetricSpecificationInitParameters) - - // Boolean indicating whether scale in by the target tracking scaling policy is disabled. Defaults to false. - disableScaleIn?: null | bool @go(DisableScaleIn,*bool) - - // Estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. - // This value is used only if the resource is an Auto Scaling group. - estimatedInstanceWarmup?: null | float64 @go(EstimatedInstanceWarmup,*float64) - - // Predefined metric. You can specify either predefined_scaling_metric_specification or customized_scaling_metric_specification. - // More details can be found in the AWS Auto Scaling API Reference. - predefinedScalingMetricSpecification?: [...#PredefinedScalingMetricSpecificationInitParameters] @go(PredefinedScalingMetricSpecification,[]PredefinedScalingMetricSpecificationInitParameters) - - // Amount of time, in seconds, after a scale in activity completes before another scale in activity can start. - // This value is not used if the scalable resource is an Auto Scaling group. - scaleInCooldown?: null | float64 @go(ScaleInCooldown,*float64) - - // Amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start. - // This value is not used if the scalable resource is an Auto Scaling group. - scaleOutCooldown?: null | float64 @go(ScaleOutCooldown,*float64) - - // Target value for the metric. - targetValue?: null | float64 @go(TargetValue,*float64) -} - -#TargetTrackingConfigurationObservation: { - // Customized metric. You can specify either customized_scaling_metric_specification or predefined_scaling_metric_specification. - // More details can be found in the AWS Auto Scaling API Reference. - customizedScalingMetricSpecification?: [...#CustomizedScalingMetricSpecificationObservation] @go(CustomizedScalingMetricSpecification,[]CustomizedScalingMetricSpecificationObservation) - - // Boolean indicating whether scale in by the target tracking scaling policy is disabled. Defaults to false. - disableScaleIn?: null | bool @go(DisableScaleIn,*bool) - - // Estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. - // This value is used only if the resource is an Auto Scaling group. - estimatedInstanceWarmup?: null | float64 @go(EstimatedInstanceWarmup,*float64) - - // Predefined metric. You can specify either predefined_scaling_metric_specification or customized_scaling_metric_specification. - // More details can be found in the AWS Auto Scaling API Reference. - predefinedScalingMetricSpecification?: [...#PredefinedScalingMetricSpecificationObservation] @go(PredefinedScalingMetricSpecification,[]PredefinedScalingMetricSpecificationObservation) - - // Amount of time, in seconds, after a scale in activity completes before another scale in activity can start. - // This value is not used if the scalable resource is an Auto Scaling group. - scaleInCooldown?: null | float64 @go(ScaleInCooldown,*float64) - - // Amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start. - // This value is not used if the scalable resource is an Auto Scaling group. - scaleOutCooldown?: null | float64 @go(ScaleOutCooldown,*float64) - - // Target value for the metric. - targetValue?: null | float64 @go(TargetValue,*float64) -} - -#TargetTrackingConfigurationParameters: { - // Customized metric. You can specify either customized_scaling_metric_specification or predefined_scaling_metric_specification. - // More details can be found in the AWS Auto Scaling API Reference. - // +kubebuilder:validation:Optional - customizedScalingMetricSpecification?: [...#CustomizedScalingMetricSpecificationParameters] @go(CustomizedScalingMetricSpecification,[]CustomizedScalingMetricSpecificationParameters) - - // Boolean indicating whether scale in by the target tracking scaling policy is disabled. Defaults to false. - // +kubebuilder:validation:Optional - disableScaleIn?: null | bool @go(DisableScaleIn,*bool) - - // Estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. - // This value is used only if the resource is an Auto Scaling group. - // +kubebuilder:validation:Optional - estimatedInstanceWarmup?: null | float64 @go(EstimatedInstanceWarmup,*float64) - - // Predefined metric. You can specify either predefined_scaling_metric_specification or customized_scaling_metric_specification. - // More details can be found in the AWS Auto Scaling API Reference. - // +kubebuilder:validation:Optional - predefinedScalingMetricSpecification?: [...#PredefinedScalingMetricSpecificationParameters] @go(PredefinedScalingMetricSpecification,[]PredefinedScalingMetricSpecificationParameters) - - // Amount of time, in seconds, after a scale in activity completes before another scale in activity can start. - // This value is not used if the scalable resource is an Auto Scaling group. - // +kubebuilder:validation:Optional - scaleInCooldown?: null | float64 @go(ScaleInCooldown,*float64) - - // Amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start. - // This value is not used if the scalable resource is an Auto Scaling group. - // +kubebuilder:validation:Optional - scaleOutCooldown?: null | float64 @go(ScaleOutCooldown,*float64) - - // Target value for the metric. - // +kubebuilder:validation:Optional - targetValue?: null | float64 @go(TargetValue,*float64) -} - -// ScalingPlanSpec defines the desired state of ScalingPlan -#ScalingPlanSpec: { - v1.#ResourceSpec - forProvider: #ScalingPlanParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ScalingPlanInitParameters @go(InitProvider) -} - -// ScalingPlanStatus defines the observed state of ScalingPlan. -#ScalingPlanStatus: { - v1.#ResourceStatus - atProvider?: #ScalingPlanObservation @go(AtProvider) -} - -// ScalingPlan is the Schema for the ScalingPlans API. Manages an AWS Auto Scaling scaling plan. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ScalingPlan: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.applicationSource) || (has(self.initProvider) && has(self.initProvider.applicationSource))",message="spec.forProvider.applicationSource is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scalingInstruction) || (has(self.initProvider) && has(self.initProvider.scalingInstruction))",message="spec.forProvider.scalingInstruction is a required parameter" - spec: #ScalingPlanSpec @go(Spec) - status?: #ScalingPlanStatus @go(Status) -} - -// ScalingPlanList contains a list of ScalingPlans -#ScalingPlanList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ScalingPlan] @go(Items,[]ScalingPlan) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_framework_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_framework_types_go_gen.cue deleted file mode 100644 index 8ae6c2c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_framework_types_go_gen.cue +++ /dev/null @@ -1,225 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/backup/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ControlInitParameters: { - // One or more input parameter blocks. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year". The first parameter is daily. The second parameter is 1 year. Detailed below. - inputParameter?: [...#InputParameterInitParameters] @go(InputParameter,[]InputParameterInitParameters) - - // The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters, numbers, and underscores. - name?: null | string @go(Name,*string) - - // The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans. Detailed below. - scope?: [...#ScopeInitParameters] @go(Scope,[]ScopeInitParameters) -} - -#ControlObservation: { - // One or more input parameter blocks. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year". The first parameter is daily. The second parameter is 1 year. Detailed below. - inputParameter?: [...#InputParameterObservation] @go(InputParameter,[]InputParameterObservation) - - // The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters, numbers, and underscores. - name?: null | string @go(Name,*string) - - // The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans. Detailed below. - scope?: [...#ScopeObservation] @go(Scope,[]ScopeObservation) -} - -#ControlParameters: { - // One or more input parameter blocks. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year". The first parameter is daily. The second parameter is 1 year. Detailed below. - // +kubebuilder:validation:Optional - inputParameter?: [...#InputParameterParameters] @go(InputParameter,[]InputParameterParameters) - - // The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters, numbers, and underscores. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans. Detailed below. - // +kubebuilder:validation:Optional - scope?: [...#ScopeParameters] @go(Scope,[]ScopeParameters) -} - -#FrameworkInitParameters: { - // One or more control blocks that make up the framework. Each control in the list has a name, input parameters, and scope. Detailed below. - control?: [...#ControlInitParameters] @go(Control,[]ControlInitParameters) - - // The description of the framework with a maximum of 1,024 characters - description?: null | string @go(Description,*string) - - // The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters, numbers, and underscores. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FrameworkObservation: { - // The ARN of the backup framework. - arn?: null | string @go(Arn,*string) - - // One or more control blocks that make up the framework. Each control in the list has a name, input parameters, and scope. Detailed below. - control?: [...#ControlObservation] @go(Control,[]ControlObservation) - - // The date and time that a framework is created, in Unix format and Coordinated Universal Time (UTC). - creationTime?: null | string @go(CreationTime,*string) - - // The deployment status of a framework. The statuses are: CREATE_IN_PROGRESS | UPDATE_IN_PROGRESS | DELETE_IN_PROGRESS | COMPLETED | FAILED. - deploymentStatus?: null | string @go(DeploymentStatus,*string) - - // The description of the framework with a maximum of 1,024 characters - description?: null | string @go(Description,*string) - - // The id of the backup framework. - id?: null | string @go(ID,*string) - - // The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters, numbers, and underscores. - name?: null | string @go(Name,*string) - - // A framework consists of one or more controls. Each control governs a resource, such as backup plans, backup selections, backup vaults, or recovery points. You can also turn AWS Config recording on or off for each resource. For more information refer to the AWS documentation for Framework Status - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#FrameworkParameters: { - // One or more control blocks that make up the framework. Each control in the list has a name, input parameters, and scope. Detailed below. - // +kubebuilder:validation:Optional - control?: [...#ControlParameters] @go(Control,[]ControlParameters) - - // The description of the framework with a maximum of 1,024 characters - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters, numbers, and underscores. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#InputParameterInitParameters: { - // The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters, numbers, and underscores. - name?: null | string @go(Name,*string) - - // The value of parameter, for example, hourly. - value?: null | string @go(Value,*string) -} - -#InputParameterObservation: { - // The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters, numbers, and underscores. - name?: null | string @go(Name,*string) - - // The value of parameter, for example, hourly. - value?: null | string @go(Value,*string) -} - -#InputParameterParameters: { - // The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters, numbers, and underscores. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of parameter, for example, hourly. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ScopeInitParameters: { - // The ID of the only AWS resource that you want your control scope to contain. Minimum number of 1 item. Maximum number of 100 items. - complianceResourceIds?: [...null | string] @go(ComplianceResourceIds,[]*string) - - // Describes whether the control scope includes one or more types of resources, such as EFS or RDS. - complianceResourceTypes?: [...null | string] @go(ComplianceResourceTypes,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ScopeObservation: { - // The ID of the only AWS resource that you want your control scope to contain. Minimum number of 1 item. Maximum number of 100 items. - complianceResourceIds?: [...null | string] @go(ComplianceResourceIds,[]*string) - - // Describes whether the control scope includes one or more types of resources, such as EFS or RDS. - complianceResourceTypes?: [...null | string] @go(ComplianceResourceTypes,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ScopeParameters: { - // The ID of the only AWS resource that you want your control scope to contain. Minimum number of 1 item. Maximum number of 100 items. - // +kubebuilder:validation:Optional - complianceResourceIds?: [...null | string] @go(ComplianceResourceIds,[]*string) - - // Describes whether the control scope includes one or more types of resources, such as EFS or RDS. - // +kubebuilder:validation:Optional - complianceResourceTypes?: [...null | string] @go(ComplianceResourceTypes,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// FrameworkSpec defines the desired state of Framework -#FrameworkSpec: { - v1.#ResourceSpec - forProvider: #FrameworkParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FrameworkInitParameters @go(InitProvider) -} - -// FrameworkStatus defines the observed state of Framework. -#FrameworkStatus: { - v1.#ResourceStatus - atProvider?: #FrameworkObservation @go(AtProvider) -} - -// Framework is the Schema for the Frameworks API. Provides an AWS Backup Framework resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Framework: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.control) || (has(self.initProvider) && has(self.initProvider.control))",message="spec.forProvider.control is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #FrameworkSpec @go(Spec) - status?: #FrameworkStatus @go(Status) -} - -// FrameworkList contains a list of Frameworks -#FrameworkList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Framework] @go(Items,[]Framework) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_globalsettings_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_globalsettings_types_go_gen.cue deleted file mode 100644 index d92e00d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_globalsettings_types_go_gen.cue +++ /dev/null @@ -1,81 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/backup/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GlobalSettingsInitParameters: { - // A list of resources along with the opt-in preferences for the account. - globalSettings?: {[string]: null | string} @go(GlobalSettings,map[string]*string) -} - -#GlobalSettingsObservation: { - // A list of resources along with the opt-in preferences for the account. - globalSettings?: {[string]: null | string} @go(GlobalSettings,map[string]*string) - - // The AWS Account ID. - id?: null | string @go(ID,*string) -} - -#GlobalSettingsParameters: { - // A list of resources along with the opt-in preferences for the account. - // +kubebuilder:validation:Optional - globalSettings?: {[string]: null | string} @go(GlobalSettings,map[string]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// GlobalSettingsSpec defines the desired state of GlobalSettings -#GlobalSettingsSpec: { - v1.#ResourceSpec - forProvider: #GlobalSettingsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GlobalSettingsInitParameters @go(InitProvider) -} - -// GlobalSettingsStatus defines the observed state of GlobalSettings. -#GlobalSettingsStatus: { - v1.#ResourceStatus - atProvider?: #GlobalSettingsObservation @go(AtProvider) -} - -// GlobalSettings is the Schema for the GlobalSettingss API. Provides an AWS Backup Global Settings resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GlobalSettings: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.globalSettings) || (has(self.initProvider) && has(self.initProvider.globalSettings))",message="spec.forProvider.globalSettings is a required parameter" - spec: #GlobalSettingsSpec @go(Spec) - status?: #GlobalSettingsStatus @go(Status) -} - -// GlobalSettingsList contains a list of GlobalSettingss -#GlobalSettingsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GlobalSettings] @go(Items,[]GlobalSettings) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index a55b419..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/backup/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=backup.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "backup.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_plan_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_plan_types_go_gen.cue deleted file mode 100644 index 363f600..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_plan_types_go_gen.cue +++ /dev/null @@ -1,327 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/backup/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AdvancedBackupSettingInitParameters: { - // Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to { WindowsVSS = "enabled" } to enable Windows VSS backup option and create a VSS Windows backup. - backupOptions?: {[string]: null | string} @go(BackupOptions,map[string]*string) - - // The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values: EC2. - resourceType?: null | string @go(ResourceType,*string) -} - -#AdvancedBackupSettingObservation: { - // Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to { WindowsVSS = "enabled" } to enable Windows VSS backup option and create a VSS Windows backup. - backupOptions?: {[string]: null | string} @go(BackupOptions,map[string]*string) - - // The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values: EC2. - resourceType?: null | string @go(ResourceType,*string) -} - -#AdvancedBackupSettingParameters: { - // Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to { WindowsVSS = "enabled" } to enable Windows VSS backup option and create a VSS Windows backup. - // +kubebuilder:validation:Optional - backupOptions: {[string]: null | string} @go(BackupOptions,map[string]*string) - - // The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values: EC2. - // +kubebuilder:validation:Optional - resourceType?: null | string @go(ResourceType,*string) -} - -#CopyActionInitParameters: { - // An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. - destinationVaultArn?: null | string @go(DestinationVaultArn,*string) - - // The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below. - lifecycle?: [...#LifecycleInitParameters] @go(Lifecycle,[]LifecycleInitParameters) -} - -#CopyActionObservation: { - // An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. - destinationVaultArn?: null | string @go(DestinationVaultArn,*string) - - // The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below. - lifecycle?: [...#LifecycleObservation] @go(Lifecycle,[]LifecycleObservation) -} - -#CopyActionParameters: { - // An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. - // +kubebuilder:validation:Optional - destinationVaultArn?: null | string @go(DestinationVaultArn,*string) - - // The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below. - // +kubebuilder:validation:Optional - lifecycle?: [...#LifecycleParameters] @go(Lifecycle,[]LifecycleParameters) -} - -#LifecycleInitParameters: { - // Specifies the number of days after creation that a recovery point is moved to cold storage. - coldStorageAfter?: null | float64 @go(ColdStorageAfter,*float64) - - // Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than cold_storage_after. - deleteAfter?: null | float64 @go(DeleteAfter,*float64) -} - -#LifecycleObservation: { - // Specifies the number of days after creation that a recovery point is moved to cold storage. - coldStorageAfter?: null | float64 @go(ColdStorageAfter,*float64) - - // Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than cold_storage_after. - deleteAfter?: null | float64 @go(DeleteAfter,*float64) -} - -#LifecycleParameters: { - // Specifies the number of days after creation that a recovery point is moved to cold storage. - // +kubebuilder:validation:Optional - coldStorageAfter?: null | float64 @go(ColdStorageAfter,*float64) - - // Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than cold_storage_after. - // +kubebuilder:validation:Optional - deleteAfter?: null | float64 @go(DeleteAfter,*float64) -} - -#PlanInitParameters: { - // An object that specifies backup options for each resource type. - advancedBackupSetting?: [...#AdvancedBackupSettingInitParameters] @go(AdvancedBackupSetting,[]AdvancedBackupSettingInitParameters) - - // The display name of a backup plan. - name?: null | string @go(Name,*string) - - // A rule object that specifies a scheduled task that is used to back up a selection of resources. - rule?: [...#RuleInitParameters] @go(Rule,[]RuleInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PlanObservation: { - // An object that specifies backup options for each resource type. - advancedBackupSetting?: [...#AdvancedBackupSettingObservation] @go(AdvancedBackupSetting,[]AdvancedBackupSettingObservation) - - // The ARN of the backup plan. - arn?: null | string @go(Arn,*string) - - // The id of the backup plan. - id?: null | string @go(ID,*string) - - // The display name of a backup plan. - name?: null | string @go(Name,*string) - - // A rule object that specifies a scheduled task that is used to back up a selection of resources. - rule?: [...#RuleObservation] @go(Rule,[]RuleObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan. - version?: null | string @go(Version,*string) -} - -#PlanParameters: { - // An object that specifies backup options for each resource type. - // +kubebuilder:validation:Optional - advancedBackupSetting?: [...#AdvancedBackupSettingParameters] @go(AdvancedBackupSetting,[]AdvancedBackupSettingParameters) - - // The display name of a backup plan. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A rule object that specifies a scheduled task that is used to back up a selection of resources. - // +kubebuilder:validation:Optional - rule?: [...#RuleParameters] @go(Rule,[]RuleParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RuleInitParameters: { - // The amount of time in minutes AWS Backup attempts a backup before canceling the job and returning an error. - completionWindow?: null | float64 @go(CompletionWindow,*float64) - - // Configuration block(s) with copy operation settings. Detailed below. - copyAction?: [...#CopyActionInitParameters] @go(CopyAction,[]CopyActionInitParameters) - - // Enable continuous backups for supported resources. - enableContinuousBackup?: null | bool @go(EnableContinuousBackup,*bool) - - // The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below. - lifecycle?: [...#RuleLifecycleInitParameters] @go(Lifecycle,[]RuleLifecycleInitParameters) - - // Metadata that you can assign to help organize the resources that you create. - recoveryPointTags?: {[string]: null | string} @go(RecoveryPointTags,map[string]*string) - - // An display name for a backup rule. - ruleName?: null | string @go(RuleName,*string) - - // A CRON expression specifying when AWS Backup initiates a backup job. - schedule?: null | string @go(Schedule,*string) - - // The amount of time in minutes before beginning a backup. - startWindow?: null | float64 @go(StartWindow,*float64) -} - -#RuleLifecycleInitParameters: { - // Specifies the number of days after creation that a recovery point is moved to cold storage. - coldStorageAfter?: null | float64 @go(ColdStorageAfter,*float64) - - // Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than cold_storage_after. - deleteAfter?: null | float64 @go(DeleteAfter,*float64) -} - -#RuleLifecycleObservation: { - // Specifies the number of days after creation that a recovery point is moved to cold storage. - coldStorageAfter?: null | float64 @go(ColdStorageAfter,*float64) - - // Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than cold_storage_after. - deleteAfter?: null | float64 @go(DeleteAfter,*float64) -} - -#RuleLifecycleParameters: { - // Specifies the number of days after creation that a recovery point is moved to cold storage. - // +kubebuilder:validation:Optional - coldStorageAfter?: null | float64 @go(ColdStorageAfter,*float64) - - // Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than cold_storage_after. - // +kubebuilder:validation:Optional - deleteAfter?: null | float64 @go(DeleteAfter,*float64) -} - -#RuleObservation: { - // The amount of time in minutes AWS Backup attempts a backup before canceling the job and returning an error. - completionWindow?: null | float64 @go(CompletionWindow,*float64) - - // Configuration block(s) with copy operation settings. Detailed below. - copyAction?: [...#CopyActionObservation] @go(CopyAction,[]CopyActionObservation) - - // Enable continuous backups for supported resources. - enableContinuousBackup?: null | bool @go(EnableContinuousBackup,*bool) - - // The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below. - lifecycle?: [...#RuleLifecycleObservation] @go(Lifecycle,[]RuleLifecycleObservation) - - // Metadata that you can assign to help organize the resources that you create. - recoveryPointTags?: {[string]: null | string} @go(RecoveryPointTags,map[string]*string) - - // An display name for a backup rule. - ruleName?: null | string @go(RuleName,*string) - - // A CRON expression specifying when AWS Backup initiates a backup job. - schedule?: null | string @go(Schedule,*string) - - // The amount of time in minutes before beginning a backup. - startWindow?: null | float64 @go(StartWindow,*float64) - - // The name of a logical container where backups are stored. - targetVaultName?: null | string @go(TargetVaultName,*string) -} - -#RuleParameters: { - // The amount of time in minutes AWS Backup attempts a backup before canceling the job and returning an error. - // +kubebuilder:validation:Optional - completionWindow?: null | float64 @go(CompletionWindow,*float64) - - // Configuration block(s) with copy operation settings. Detailed below. - // +kubebuilder:validation:Optional - copyAction?: [...#CopyActionParameters] @go(CopyAction,[]CopyActionParameters) - - // Enable continuous backups for supported resources. - // +kubebuilder:validation:Optional - enableContinuousBackup?: null | bool @go(EnableContinuousBackup,*bool) - - // The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below. - // +kubebuilder:validation:Optional - lifecycle?: [...#RuleLifecycleParameters] @go(Lifecycle,[]RuleLifecycleParameters) - - // Metadata that you can assign to help organize the resources that you create. - // +kubebuilder:validation:Optional - recoveryPointTags?: {[string]: null | string} @go(RecoveryPointTags,map[string]*string) - - // An display name for a backup rule. - // +kubebuilder:validation:Optional - ruleName?: null | string @go(RuleName,*string) - - // A CRON expression specifying when AWS Backup initiates a backup job. - // +kubebuilder:validation:Optional - schedule?: null | string @go(Schedule,*string) - - // The amount of time in minutes before beginning a backup. - // +kubebuilder:validation:Optional - startWindow?: null | float64 @go(StartWindow,*float64) - - // The name of a logical container where backups are stored. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/backup/v1beta1.Vault - // +kubebuilder:validation:Optional - targetVaultName?: null | string @go(TargetVaultName,*string) - - // Reference to a Vault in backup to populate targetVaultName. - // +kubebuilder:validation:Optional - targetVaultNameRef?: null | v1.#Reference @go(TargetVaultNameRef,*v1.Reference) - - // Selector for a Vault in backup to populate targetVaultName. - // +kubebuilder:validation:Optional - targetVaultNameSelector?: null | v1.#Selector @go(TargetVaultNameSelector,*v1.Selector) -} - -// PlanSpec defines the desired state of Plan -#PlanSpec: { - v1.#ResourceSpec - forProvider: #PlanParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PlanInitParameters @go(InitProvider) -} - -// PlanStatus defines the observed state of Plan. -#PlanStatus: { - v1.#ResourceStatus - atProvider?: #PlanObservation @go(AtProvider) -} - -// Plan is the Schema for the Plans API. Provides an AWS Backup plan resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Plan: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rule) || (has(self.initProvider) && has(self.initProvider.rule))",message="spec.forProvider.rule is a required parameter" - spec: #PlanSpec @go(Spec) - status?: #PlanStatus @go(Status) -} - -// PlanList contains a list of Plans -#PlanList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Plan] @go(Items,[]Plan) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_regionsettings_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_regionsettings_types_go_gen.cue deleted file mode 100644 index e32e3e5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_regionsettings_types_go_gen.cue +++ /dev/null @@ -1,103 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/backup/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RegionSettingsInitParameters: { - // A map of services along with the management preferences for the Region. - // - // WARNING: All parameters are required to be given: EFS, DynamoDB - resourceTypeManagementPreference?: {[string]: null | bool} @go(ResourceTypeManagementPreference,map[string]*bool) - - // A map of services along with the opt-in preferences for the Region. - // - // WARNING: All parameters are required to be given: EFS, DynamoDB, EBS, EC2, FSx, S3, Aurora, RDS, Storage Gateway, VirtualMachine - resourceTypeOptInPreference?: {[string]: null | bool} @go(ResourceTypeOptInPreference,map[string]*bool) -} - -#RegionSettingsObservation: { - // The AWS region. - id?: null | string @go(ID,*string) - - // A map of services along with the management preferences for the Region. - // - // WARNING: All parameters are required to be given: EFS, DynamoDB - resourceTypeManagementPreference?: {[string]: null | bool} @go(ResourceTypeManagementPreference,map[string]*bool) - - // A map of services along with the opt-in preferences for the Region. - // - // WARNING: All parameters are required to be given: EFS, DynamoDB, EBS, EC2, FSx, S3, Aurora, RDS, Storage Gateway, VirtualMachine - resourceTypeOptInPreference?: {[string]: null | bool} @go(ResourceTypeOptInPreference,map[string]*bool) -} - -#RegionSettingsParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A map of services along with the management preferences for the Region. - // - // WARNING: All parameters are required to be given: EFS, DynamoDB - // +kubebuilder:validation:Optional - resourceTypeManagementPreference?: {[string]: null | bool} @go(ResourceTypeManagementPreference,map[string]*bool) - - // A map of services along with the opt-in preferences for the Region. - // - // WARNING: All parameters are required to be given: EFS, DynamoDB, EBS, EC2, FSx, S3, Aurora, RDS, Storage Gateway, VirtualMachine - // +kubebuilder:validation:Optional - resourceTypeOptInPreference?: {[string]: null | bool} @go(ResourceTypeOptInPreference,map[string]*bool) -} - -// RegionSettingsSpec defines the desired state of RegionSettings -#RegionSettingsSpec: { - v1.#ResourceSpec - forProvider: #RegionSettingsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RegionSettingsInitParameters @go(InitProvider) -} - -// RegionSettingsStatus defines the observed state of RegionSettings. -#RegionSettingsStatus: { - v1.#ResourceStatus - atProvider?: #RegionSettingsObservation @go(AtProvider) -} - -// RegionSettings is the Schema for the RegionSettingss API. Provides an AWS Backup Region Settings resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RegionSettings: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.resourceTypeOptInPreference) || (has(self.initProvider) && has(self.initProvider.resourceTypeOptInPreference))",message="spec.forProvider.resourceTypeOptInPreference is a required parameter" - spec: #RegionSettingsSpec @go(Spec) - status?: #RegionSettingsStatus @go(Status) -} - -// RegionSettingsList contains a list of RegionSettingss -#RegionSettingsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RegionSettings] @go(Items,[]RegionSettings) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_reportplan_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_reportplan_types_go_gen.cue deleted file mode 100644 index a3b7038..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_reportplan_types_go_gen.cue +++ /dev/null @@ -1,237 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/backup/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ReportDeliveryChannelInitParameters: { - // A list of the format of your reports: CSV, JSON, or both. If not specified, the default format is CSV. - formats?: [...null | string] @go(Formats,[]*string) - - // The unique name of the S3 bucket that receives your reports. - s3BucketName?: null | string @go(S3BucketName,*string) - - // The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the following path: s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. If not specified, there is no prefix. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) -} - -#ReportDeliveryChannelObservation: { - // A list of the format of your reports: CSV, JSON, or both. If not specified, the default format is CSV. - formats?: [...null | string] @go(Formats,[]*string) - - // The unique name of the S3 bucket that receives your reports. - s3BucketName?: null | string @go(S3BucketName,*string) - - // The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the following path: s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. If not specified, there is no prefix. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) -} - -#ReportDeliveryChannelParameters: { - // A list of the format of your reports: CSV, JSON, or both. If not specified, the default format is CSV. - // +kubebuilder:validation:Optional - formats?: [...null | string] @go(Formats,[]*string) - - // The unique name of the S3 bucket that receives your reports. - // +kubebuilder:validation:Optional - s3BucketName?: null | string @go(S3BucketName,*string) - - // The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the following path: s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. If not specified, there is no prefix. - // +kubebuilder:validation:Optional - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) -} - -#ReportPlanInitParameters: { - // The description of the report plan with a maximum of 1,024 characters - description?: null | string @go(Description,*string) - - // The unique name of the report plan. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters, numbers, and underscores. - name?: null | string @go(Name,*string) - - // An object that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports. Detailed below. - reportDeliveryChannel?: [...#ReportDeliveryChannelInitParameters] @go(ReportDeliveryChannel,[]ReportDeliveryChannelInitParameters) - - // An object that identifies the report template for the report. Reports are built using a report template. Detailed below. - reportSetting?: [...#ReportSettingInitParameters] @go(ReportSetting,[]ReportSettingInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ReportPlanObservation: { - // The ARN of the backup report plan. - arn?: null | string @go(Arn,*string) - - // The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). - creationTime?: null | string @go(CreationTime,*string) - - // The deployment status of a report plan. The statuses are: CREATE_IN_PROGRESS | UPDATE_IN_PROGRESS | DELETE_IN_PROGRESS | COMPLETED. - deploymentStatus?: null | string @go(DeploymentStatus,*string) - - // The description of the report plan with a maximum of 1,024 characters - description?: null | string @go(Description,*string) - - // The id of the backup report plan. - id?: null | string @go(ID,*string) - - // The unique name of the report plan. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters, numbers, and underscores. - name?: null | string @go(Name,*string) - - // An object that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports. Detailed below. - reportDeliveryChannel?: [...#ReportDeliveryChannelObservation] @go(ReportDeliveryChannel,[]ReportDeliveryChannelObservation) - - // An object that identifies the report template for the report. Reports are built using a report template. Detailed below. - reportSetting?: [...#ReportSettingObservation] @go(ReportSetting,[]ReportSettingObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ReportPlanParameters: { - // The description of the report plan with a maximum of 1,024 characters - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The unique name of the report plan. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters, numbers, and underscores. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // An object that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports. Detailed below. - // +kubebuilder:validation:Optional - reportDeliveryChannel?: [...#ReportDeliveryChannelParameters] @go(ReportDeliveryChannel,[]ReportDeliveryChannelParameters) - - // An object that identifies the report template for the report. Reports are built using a report template. Detailed below. - // +kubebuilder:validation:Optional - reportSetting?: [...#ReportSettingParameters] @go(ReportSetting,[]ReportSettingParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ReportSettingInitParameters: { - // Specifies the list of accounts a report covers. - accounts?: [...null | string] @go(Accounts,[]*string) - - // Specifies the Amazon Resource Names (ARNs) of the frameworks a report covers. - frameworkArns?: [...null | string] @go(FrameworkArns,[]*string) - - // Specifies the number of frameworks a report covers. - numberOfFrameworks?: null | float64 @go(NumberOfFrameworks,*float64) - - // Specifies the list of Organizational Units a report covers. - organizationUnits?: [...null | string] @go(OrganizationUnits,[]*string) - - // Specifies the list of regions a report covers. - regions?: [...null | string] @go(Regions,[]*string) - - // Identifies the report template for the report. Reports are built using a report template. The report templates are: RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT. - reportTemplate?: null | string @go(ReportTemplate,*string) -} - -#ReportSettingObservation: { - // Specifies the list of accounts a report covers. - accounts?: [...null | string] @go(Accounts,[]*string) - - // Specifies the Amazon Resource Names (ARNs) of the frameworks a report covers. - frameworkArns?: [...null | string] @go(FrameworkArns,[]*string) - - // Specifies the number of frameworks a report covers. - numberOfFrameworks?: null | float64 @go(NumberOfFrameworks,*float64) - - // Specifies the list of Organizational Units a report covers. - organizationUnits?: [...null | string] @go(OrganizationUnits,[]*string) - - // Specifies the list of regions a report covers. - regions?: [...null | string] @go(Regions,[]*string) - - // Identifies the report template for the report. Reports are built using a report template. The report templates are: RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT. - reportTemplate?: null | string @go(ReportTemplate,*string) -} - -#ReportSettingParameters: { - // Specifies the list of accounts a report covers. - // +kubebuilder:validation:Optional - accounts?: [...null | string] @go(Accounts,[]*string) - - // Specifies the Amazon Resource Names (ARNs) of the frameworks a report covers. - // +kubebuilder:validation:Optional - frameworkArns?: [...null | string] @go(FrameworkArns,[]*string) - - // Specifies the number of frameworks a report covers. - // +kubebuilder:validation:Optional - numberOfFrameworks?: null | float64 @go(NumberOfFrameworks,*float64) - - // Specifies the list of Organizational Units a report covers. - // +kubebuilder:validation:Optional - organizationUnits?: [...null | string] @go(OrganizationUnits,[]*string) - - // Specifies the list of regions a report covers. - // +kubebuilder:validation:Optional - regions?: [...null | string] @go(Regions,[]*string) - - // Identifies the report template for the report. Reports are built using a report template. The report templates are: RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT. - // +kubebuilder:validation:Optional - reportTemplate?: null | string @go(ReportTemplate,*string) -} - -// ReportPlanSpec defines the desired state of ReportPlan -#ReportPlanSpec: { - v1.#ResourceSpec - forProvider: #ReportPlanParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReportPlanInitParameters @go(InitProvider) -} - -// ReportPlanStatus defines the observed state of ReportPlan. -#ReportPlanStatus: { - v1.#ResourceStatus - atProvider?: #ReportPlanObservation @go(AtProvider) -} - -// ReportPlan is the Schema for the ReportPlans API. Provides an AWS Backup Report Plan resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReportPlan: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.reportDeliveryChannel) || (has(self.initProvider) && has(self.initProvider.reportDeliveryChannel))",message="spec.forProvider.reportDeliveryChannel is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.reportSetting) || (has(self.initProvider) && has(self.initProvider.reportSetting))",message="spec.forProvider.reportSetting is a required parameter" - spec: #ReportPlanSpec @go(Spec) - status?: #ReportPlanStatus @go(Status) -} - -// ReportPlanList contains a list of ReportPlans -#ReportPlanList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReportPlan] @go(Items,[]ReportPlan) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_selection_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_selection_types_go_gen.cue deleted file mode 100644 index b17d237..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_selection_types_go_gen.cue +++ /dev/null @@ -1,322 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/backup/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConditionInitParameters: { - stringEquals?: [...#StringEqualsInitParameters] @go(StringEquals,[]StringEqualsInitParameters) - stringLike?: [...#StringLikeInitParameters] @go(StringLike,[]StringLikeInitParameters) - stringNotEquals?: [...#StringNotEqualsInitParameters] @go(StringNotEquals,[]StringNotEqualsInitParameters) - stringNotLike?: [...#StringNotLikeInitParameters] @go(StringNotLike,[]StringNotLikeInitParameters) -} - -#ConditionObservation: { - stringEquals?: [...#StringEqualsObservation] @go(StringEquals,[]StringEqualsObservation) - stringLike?: [...#StringLikeObservation] @go(StringLike,[]StringLikeObservation) - stringNotEquals?: [...#StringNotEqualsObservation] @go(StringNotEquals,[]StringNotEqualsObservation) - stringNotLike?: [...#StringNotLikeObservation] @go(StringNotLike,[]StringNotLikeObservation) -} - -#ConditionParameters: { - // +kubebuilder:validation:Optional - stringEquals?: [...#StringEqualsParameters] @go(StringEquals,[]StringEqualsParameters) - - // +kubebuilder:validation:Optional - stringLike?: [...#StringLikeParameters] @go(StringLike,[]StringLikeParameters) - - // +kubebuilder:validation:Optional - stringNotEquals?: [...#StringNotEqualsParameters] @go(StringNotEquals,[]StringNotEqualsParameters) - - // +kubebuilder:validation:Optional - stringNotLike?: [...#StringNotLikeParameters] @go(StringNotLike,[]StringNotLikeParameters) -} - -#SelectionInitParameters: { - // A list of conditions that you define to assign resources to your backup plans using tags. - condition?: [...#ConditionInitParameters] @go(Condition,[]ConditionInitParameters) - - // The display name of a resource selection document. - name?: null | string @go(Name,*string) - - // An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to exclude from a backup plan. - notResources?: [...null | string] @go(NotResources,[]*string) - - // An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to assign to a backup plan. - resources?: [...null | string] @go(Resources,[]*string) - - // Tag-based conditions used to specify a set of resources to assign to a backup plan. - selectionTag?: [...#SelectionTagInitParameters] @go(SelectionTag,[]SelectionTagInitParameters) -} - -#SelectionObservation: { - // A list of conditions that you define to assign resources to your backup plans using tags. - condition?: [...#ConditionObservation] @go(Condition,[]ConditionObservation) - - // The ARN of the IAM role that AWS Backup uses to authenticate when restoring and backing up the target resource. See the AWS Backup Developer Guide for additional information about using AWS managed policies or creating custom policies attached to the IAM role. - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // Backup Selection identifier - id?: null | string @go(ID,*string) - - // The display name of a resource selection document. - name?: null | string @go(Name,*string) - - // An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to exclude from a backup plan. - notResources?: [...null | string] @go(NotResources,[]*string) - - // The backup plan ID to be associated with the selection of resources. - planId?: null | string @go(PlanID,*string) - - // An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to assign to a backup plan. - resources?: [...null | string] @go(Resources,[]*string) - - // Tag-based conditions used to specify a set of resources to assign to a backup plan. - selectionTag?: [...#SelectionTagObservation] @go(SelectionTag,[]SelectionTagObservation) -} - -#SelectionParameters: { - // A list of conditions that you define to assign resources to your backup plans using tags. - // +kubebuilder:validation:Optional - condition?: [...#ConditionParameters] @go(Condition,[]ConditionParameters) - - // The ARN of the IAM role that AWS Backup uses to authenticate when restoring and backing up the target resource. See the AWS Backup Developer Guide for additional information about using AWS managed policies or creating custom policies attached to the IAM role. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // Reference to a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnRef?: null | v1.#Reference @go(IAMRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnSelector?: null | v1.#Selector @go(IAMRoleArnSelector,*v1.Selector) - - // The display name of a resource selection document. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to exclude from a backup plan. - // +kubebuilder:validation:Optional - notResources?: [...null | string] @go(NotResources,[]*string) - - // The backup plan ID to be associated with the selection of resources. - // +crossplane:generate:reference:type=Plan - // +kubebuilder:validation:Optional - planId?: null | string @go(PlanID,*string) - - // Reference to a Plan to populate planId. - // +kubebuilder:validation:Optional - planIdRef?: null | v1.#Reference @go(PlanIDRef,*v1.Reference) - - // Selector for a Plan to populate planId. - // +kubebuilder:validation:Optional - planIdSelector?: null | v1.#Selector @go(PlanIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to assign to a backup plan. - // +kubebuilder:validation:Optional - resources?: [...null | string] @go(Resources,[]*string) - - // Tag-based conditions used to specify a set of resources to assign to a backup plan. - // +kubebuilder:validation:Optional - selectionTag?: [...#SelectionTagParameters] @go(SelectionTag,[]SelectionTagParameters) -} - -#SelectionTagInitParameters: { - // The key in a key-value pair. - key?: null | string @go(Key,*string) - - // An operation, such as StringEquals, that is applied to a key-value pair used to filter resources in a selection. - type?: null | string @go(Type,*string) - - // The value in a key-value pair. - value?: null | string @go(Value,*string) -} - -#SelectionTagObservation: { - // The key in a key-value pair. - key?: null | string @go(Key,*string) - - // An operation, such as StringEquals, that is applied to a key-value pair used to filter resources in a selection. - type?: null | string @go(Type,*string) - - // The value in a key-value pair. - value?: null | string @go(Value,*string) -} - -#SelectionTagParameters: { - // The key in a key-value pair. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // An operation, such as StringEquals, that is applied to a key-value pair used to filter resources in a selection. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The value in a key-value pair. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#StringEqualsInitParameters: { - // The key in a key-value pair. - key?: null | string @go(Key,*string) - - // The value in a key-value pair. - value?: null | string @go(Value,*string) -} - -#StringEqualsObservation: { - // The key in a key-value pair. - key?: null | string @go(Key,*string) - - // The value in a key-value pair. - value?: null | string @go(Value,*string) -} - -#StringEqualsParameters: { - // The key in a key-value pair. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The value in a key-value pair. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#StringLikeInitParameters: { - // The key in a key-value pair. - key?: null | string @go(Key,*string) - - // The value in a key-value pair. - value?: null | string @go(Value,*string) -} - -#StringLikeObservation: { - // The key in a key-value pair. - key?: null | string @go(Key,*string) - - // The value in a key-value pair. - value?: null | string @go(Value,*string) -} - -#StringLikeParameters: { - // The key in a key-value pair. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The value in a key-value pair. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#StringNotEqualsInitParameters: { - // The key in a key-value pair. - key?: null | string @go(Key,*string) - - // The value in a key-value pair. - value?: null | string @go(Value,*string) -} - -#StringNotEqualsObservation: { - // The key in a key-value pair. - key?: null | string @go(Key,*string) - - // The value in a key-value pair. - value?: null | string @go(Value,*string) -} - -#StringNotEqualsParameters: { - // The key in a key-value pair. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The value in a key-value pair. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#StringNotLikeInitParameters: { - // The key in a key-value pair. - key?: null | string @go(Key,*string) - - // The value in a key-value pair. - value?: null | string @go(Value,*string) -} - -#StringNotLikeObservation: { - // The key in a key-value pair. - key?: null | string @go(Key,*string) - - // The value in a key-value pair. - value?: null | string @go(Value,*string) -} - -#StringNotLikeParameters: { - // The key in a key-value pair. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The value in a key-value pair. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// SelectionSpec defines the desired state of Selection -#SelectionSpec: { - v1.#ResourceSpec - forProvider: #SelectionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SelectionInitParameters @go(InitProvider) -} - -// SelectionStatus defines the observed state of Selection. -#SelectionStatus: { - v1.#ResourceStatus - atProvider?: #SelectionObservation @go(AtProvider) -} - -// Selection is the Schema for the Selections API. Manages selection conditions for AWS Backup plan resources. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Selection: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #SelectionSpec @go(Spec) - status?: #SelectionStatus @go(Status) -} - -// SelectionList contains a list of Selections -#SelectionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Selection] @go(Items,[]Selection) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_vault_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_vault_types_go_gen.cue deleted file mode 100644 index 11e4ed5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_vault_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/backup/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VaultInitParameters: { - // A boolean that indicates that all recovery points stored in the vault are deleted so that the vault can be destroyed without error. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VaultObservation: { - // The ARN of the vault. - arn?: null | string @go(Arn,*string) - - // A boolean that indicates that all recovery points stored in the vault are deleted so that the vault can be destroyed without error. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // The name of the vault. - id?: null | string @go(ID,*string) - - // The server-side encryption key that is used to protect your backups. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The number of recovery points that are stored in a backup vault. - recoveryPoints?: null | float64 @go(RecoveryPoints,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VaultParameters: { - // A boolean that indicates that all recovery points stored in the vault are deleted so that the vault can be destroyed without error. - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // The server-side encryption key that is used to protect your backups. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// VaultSpec defines the desired state of Vault -#VaultSpec: { - v1.#ResourceSpec - forProvider: #VaultParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VaultInitParameters @go(InitProvider) -} - -// VaultStatus defines the observed state of Vault. -#VaultStatus: { - v1.#ResourceStatus - atProvider?: #VaultObservation @go(AtProvider) -} - -// Vault is the Schema for the Vaults API. Provides an AWS Backup vault resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Vault: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VaultSpec @go(Spec) - status?: #VaultStatus @go(Status) -} - -// VaultList contains a list of Vaults -#VaultList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Vault] @go(Items,[]Vault) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_vaultlockconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_vaultlockconfiguration_types_go_gen.cue deleted file mode 100644 index 5204dd3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_vaultlockconfiguration_types_go_gen.cue +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/backup/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VaultLockConfigurationInitParameters: { - // The number of days before the lock date. If omitted creates a vault lock in governance mode, otherwise it will create a vault lock in compliance mode. - changeableForDays?: null | float64 @go(ChangeableForDays,*float64) - - // The maximum retention period that the vault retains its recovery points. - maxRetentionDays?: null | float64 @go(MaxRetentionDays,*float64) - - // The minimum retention period that the vault retains its recovery points. - minRetentionDays?: null | float64 @go(MinRetentionDays,*float64) -} - -#VaultLockConfigurationObservation: { - // The ARN of the vault. - backupVaultArn?: null | string @go(BackupVaultArn,*string) - - // Name of the backup vault to add a lock configuration for. - backupVaultName?: null | string @go(BackupVaultName,*string) - - // The number of days before the lock date. If omitted creates a vault lock in governance mode, otherwise it will create a vault lock in compliance mode. - changeableForDays?: null | float64 @go(ChangeableForDays,*float64) - id?: null | string @go(ID,*string) - - // The maximum retention period that the vault retains its recovery points. - maxRetentionDays?: null | float64 @go(MaxRetentionDays,*float64) - - // The minimum retention period that the vault retains its recovery points. - minRetentionDays?: null | float64 @go(MinRetentionDays,*float64) -} - -#VaultLockConfigurationParameters: { - // Name of the backup vault to add a lock configuration for. - // +crossplane:generate:reference:type=Vault - // +kubebuilder:validation:Optional - backupVaultName?: null | string @go(BackupVaultName,*string) - - // Reference to a Vault to populate backupVaultName. - // +kubebuilder:validation:Optional - backupVaultNameRef?: null | v1.#Reference @go(BackupVaultNameRef,*v1.Reference) - - // Selector for a Vault to populate backupVaultName. - // +kubebuilder:validation:Optional - backupVaultNameSelector?: null | v1.#Selector @go(BackupVaultNameSelector,*v1.Selector) - - // The number of days before the lock date. If omitted creates a vault lock in governance mode, otherwise it will create a vault lock in compliance mode. - // +kubebuilder:validation:Optional - changeableForDays?: null | float64 @go(ChangeableForDays,*float64) - - // The maximum retention period that the vault retains its recovery points. - // +kubebuilder:validation:Optional - maxRetentionDays?: null | float64 @go(MaxRetentionDays,*float64) - - // The minimum retention period that the vault retains its recovery points. - // +kubebuilder:validation:Optional - minRetentionDays?: null | float64 @go(MinRetentionDays,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// VaultLockConfigurationSpec defines the desired state of VaultLockConfiguration -#VaultLockConfigurationSpec: { - v1.#ResourceSpec - forProvider: #VaultLockConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VaultLockConfigurationInitParameters @go(InitProvider) -} - -// VaultLockConfigurationStatus defines the observed state of VaultLockConfiguration. -#VaultLockConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #VaultLockConfigurationObservation @go(AtProvider) -} - -// VaultLockConfiguration is the Schema for the VaultLockConfigurations API. Provides an AWS Backup vault lock configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VaultLockConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VaultLockConfigurationSpec @go(Spec) - status?: #VaultLockConfigurationStatus @go(Status) -} - -// VaultLockConfigurationList contains a list of VaultLockConfigurations -#VaultLockConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VaultLockConfiguration] @go(Items,[]VaultLockConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_vaultnotifications_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_vaultnotifications_types_go_gen.cue deleted file mode 100644 index b9c157c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_vaultnotifications_types_go_gen.cue +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/backup/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VaultNotificationsInitParameters: { - // An array of events that indicate the status of jobs to back up resources to the backup vault. - backupVaultEvents?: [...null | string] @go(BackupVaultEvents,[]*string) -} - -#VaultNotificationsObservation: { - // The ARN of the vault. - backupVaultArn?: null | string @go(BackupVaultArn,*string) - - // An array of events that indicate the status of jobs to back up resources to the backup vault. - backupVaultEvents?: [...null | string] @go(BackupVaultEvents,[]*string) - - // Name of the backup vault to add notifications for. - backupVaultName?: null | string @go(BackupVaultName,*string) - - // The name of the vault. - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events - snsTopicArn?: null | string @go(SnsTopicArn,*string) -} - -#VaultNotificationsParameters: { - // An array of events that indicate the status of jobs to back up resources to the backup vault. - // +kubebuilder:validation:Optional - backupVaultEvents?: [...null | string] @go(BackupVaultEvents,[]*string) - - // Name of the backup vault to add notifications for. - // +crossplane:generate:reference:type=Vault - // +kubebuilder:validation:Optional - backupVaultName?: null | string @go(BackupVaultName,*string) - - // Reference to a Vault to populate backupVaultName. - // +kubebuilder:validation:Optional - backupVaultNameRef?: null | v1.#Reference @go(BackupVaultNameRef,*v1.Reference) - - // Selector for a Vault to populate backupVaultName. - // +kubebuilder:validation:Optional - backupVaultNameSelector?: null | v1.#Selector @go(BackupVaultNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // Reference to a Topic in sns to populate snsTopicArn. - // +kubebuilder:validation:Optional - snsTopicArnRef?: null | v1.#Reference @go(SnsTopicArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate snsTopicArn. - // +kubebuilder:validation:Optional - snsTopicArnSelector?: null | v1.#Selector @go(SnsTopicArnSelector,*v1.Selector) -} - -// VaultNotificationsSpec defines the desired state of VaultNotifications -#VaultNotificationsSpec: { - v1.#ResourceSpec - forProvider: #VaultNotificationsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VaultNotificationsInitParameters @go(InitProvider) -} - -// VaultNotificationsStatus defines the observed state of VaultNotifications. -#VaultNotificationsStatus: { - v1.#ResourceStatus - atProvider?: #VaultNotificationsObservation @go(AtProvider) -} - -// VaultNotifications is the Schema for the VaultNotificationss API. Provides an AWS Backup vault notifications resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VaultNotifications: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.backupVaultEvents) || (has(self.initProvider) && has(self.initProvider.backupVaultEvents))",message="spec.forProvider.backupVaultEvents is a required parameter" - spec: #VaultNotificationsSpec @go(Spec) - status?: #VaultNotificationsStatus @go(Status) -} - -// VaultNotificationsList contains a list of VaultNotificationss -#VaultNotificationsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VaultNotifications] @go(Items,[]VaultNotifications) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_vaultpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_vaultpolicy_types_go_gen.cue deleted file mode 100644 index 2dbf429..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/backup/v1beta1/zz_vaultpolicy_types_go_gen.cue +++ /dev/null @@ -1,100 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/backup/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VaultPolicyInitParameters: { - // The backup vault access policy document in JSON format. - policy?: null | string @go(Policy,*string) -} - -#VaultPolicyObservation: { - // The ARN of the vault. - backupVaultArn?: null | string @go(BackupVaultArn,*string) - - // Name of the backup vault to add policy for. - backupVaultName?: null | string @go(BackupVaultName,*string) - - // The name of the vault. - id?: null | string @go(ID,*string) - - // The backup vault access policy document in JSON format. - policy?: null | string @go(Policy,*string) -} - -#VaultPolicyParameters: { - // Name of the backup vault to add policy for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/backup/v1beta1.Vault - // +kubebuilder:validation:Optional - backupVaultName?: null | string @go(BackupVaultName,*string) - - // Reference to a Vault in backup to populate backupVaultName. - // +kubebuilder:validation:Optional - backupVaultNameRef?: null | v1.#Reference @go(BackupVaultNameRef,*v1.Reference) - - // Selector for a Vault in backup to populate backupVaultName. - // +kubebuilder:validation:Optional - backupVaultNameSelector?: null | v1.#Selector @go(BackupVaultNameSelector,*v1.Selector) - - // The backup vault access policy document in JSON format. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// VaultPolicySpec defines the desired state of VaultPolicy -#VaultPolicySpec: { - v1.#ResourceSpec - forProvider: #VaultPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VaultPolicyInitParameters @go(InitProvider) -} - -// VaultPolicyStatus defines the observed state of VaultPolicy. -#VaultPolicyStatus: { - v1.#ResourceStatus - atProvider?: #VaultPolicyObservation @go(AtProvider) -} - -// VaultPolicy is the Schema for the VaultPolicys API. Provides an AWS Backup vault policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VaultPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #VaultPolicySpec @go(Spec) - status?: #VaultPolicyStatus @go(Status) -} - -// VaultPolicyList contains a list of VaultPolicys -#VaultPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VaultPolicy] @go(Items,[]VaultPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/batch/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/batch/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index b821eee..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/batch/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/batch/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=batch.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "batch.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/batch/v1beta1/zz_jobdefinition_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/batch/v1beta1/zz_jobdefinition_types_go_gen.cue deleted file mode 100644 index aaa5f3e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/batch/v1beta1/zz_jobdefinition_types_go_gen.cue +++ /dev/null @@ -1,263 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/batch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EvaluateOnExitInitParameters: { - // Specifies the action to take if all of the specified conditions are met. The values are not case sensitive. Valid values: RETRY, EXIT. - action?: null | string @go(Action,*string) - - // A glob pattern to match against the decimal representation of the exit code returned for a job. - onExitCode?: null | string @go(OnExitCode,*string) - - // A glob pattern to match against the reason returned for a job. - onReason?: null | string @go(OnReason,*string) - - // A glob pattern to match against the status reason returned for a job. - onStatusReason?: null | string @go(OnStatusReason,*string) -} - -#EvaluateOnExitObservation: { - // Specifies the action to take if all of the specified conditions are met. The values are not case sensitive. Valid values: RETRY, EXIT. - action?: null | string @go(Action,*string) - - // A glob pattern to match against the decimal representation of the exit code returned for a job. - onExitCode?: null | string @go(OnExitCode,*string) - - // A glob pattern to match against the reason returned for a job. - onReason?: null | string @go(OnReason,*string) - - // A glob pattern to match against the status reason returned for a job. - onStatusReason?: null | string @go(OnStatusReason,*string) -} - -#EvaluateOnExitParameters: { - // Specifies the action to take if all of the specified conditions are met. The values are not case sensitive. Valid values: RETRY, EXIT. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) - - // A glob pattern to match against the decimal representation of the exit code returned for a job. - // +kubebuilder:validation:Optional - onExitCode?: null | string @go(OnExitCode,*string) - - // A glob pattern to match against the reason returned for a job. - // +kubebuilder:validation:Optional - onReason?: null | string @go(OnReason,*string) - - // A glob pattern to match against the status reason returned for a job. - // +kubebuilder:validation:Optional - onStatusReason?: null | string @go(OnStatusReason,*string) -} - -#JobDefinitionInitParameters: { - // A valid container properties - // provided as a single valid JSON document. This parameter is required if the type parameter is container. - containerProperties?: null | string @go(ContainerProperties,*string) - - // Specifies the name of the job definition. - name?: null | string @go(Name,*string) - - // Specifies the parameter substitution placeholders to set in the job definition. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. To run the job on Fargate resources, specify FARGATE. - platformCapabilities?: [...null | string] @go(PlatformCapabilities,[]*string) - - // Specifies whether to propagate the tags from the job definition to the corresponding Amazon ECS task. Default is false. - propagateTags?: null | bool @go(PropagateTags,*bool) - - // Specifies the retry strategy to use for failed jobs that are submitted with this job definition. - // Maximum number of retry_strategy is 1. Defined below. - retryStrategy?: [...#RetryStrategyInitParameters] @go(RetryStrategy,[]RetryStrategyInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the timeout for jobs so that if a job runs longer, AWS Batch terminates the job. Maximum number of timeout is 1. Defined below. - timeout?: [...#TimeoutInitParameters] @go(Timeout,[]TimeoutInitParameters) - - // The type of job definition. Must be container. - type?: null | string @go(Type,*string) -} - -#JobDefinitionObservation: { - // The Amazon Resource Name of the job definition. - arn?: null | string @go(Arn,*string) - - // A valid container properties - // provided as a single valid JSON document. This parameter is required if the type parameter is container. - containerProperties?: null | string @go(ContainerProperties,*string) - id?: null | string @go(ID,*string) - - // Specifies the name of the job definition. - name?: null | string @go(Name,*string) - - // Specifies the parameter substitution placeholders to set in the job definition. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. To run the job on Fargate resources, specify FARGATE. - platformCapabilities?: [...null | string] @go(PlatformCapabilities,[]*string) - - // Specifies whether to propagate the tags from the job definition to the corresponding Amazon ECS task. Default is false. - propagateTags?: null | bool @go(PropagateTags,*bool) - - // Specifies the retry strategy to use for failed jobs that are submitted with this job definition. - // Maximum number of retry_strategy is 1. Defined below. - retryStrategy?: [...#RetryStrategyObservation] @go(RetryStrategy,[]RetryStrategyObservation) - - // The revision of the job definition. - revision?: null | float64 @go(Revision,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Specifies the timeout for jobs so that if a job runs longer, AWS Batch terminates the job. Maximum number of timeout is 1. Defined below. - timeout?: [...#TimeoutObservation] @go(Timeout,[]TimeoutObservation) - - // The type of job definition. Must be container. - type?: null | string @go(Type,*string) -} - -#JobDefinitionParameters: { - // A valid container properties - // provided as a single valid JSON document. This parameter is required if the type parameter is container. - // +kubebuilder:validation:Optional - containerProperties?: null | string @go(ContainerProperties,*string) - - // Specifies the name of the job definition. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Specifies the parameter substitution placeholders to set in the job definition. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. To run the job on Fargate resources, specify FARGATE. - // +kubebuilder:validation:Optional - platformCapabilities?: [...null | string] @go(PlatformCapabilities,[]*string) - - // Specifies whether to propagate the tags from the job definition to the corresponding Amazon ECS task. Default is false. - // +kubebuilder:validation:Optional - propagateTags?: null | bool @go(PropagateTags,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the retry strategy to use for failed jobs that are submitted with this job definition. - // Maximum number of retry_strategy is 1. Defined below. - // +kubebuilder:validation:Optional - retryStrategy?: [...#RetryStrategyParameters] @go(RetryStrategy,[]RetryStrategyParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the timeout for jobs so that if a job runs longer, AWS Batch terminates the job. Maximum number of timeout is 1. Defined below. - // +kubebuilder:validation:Optional - timeout?: [...#TimeoutParameters] @go(Timeout,[]TimeoutParameters) - - // The type of job definition. Must be container. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RetryStrategyInitParameters: { - // The number of times to move a job to the RUNNABLE status. You may specify between 1 and 10 attempts. - attempts?: null | float64 @go(Attempts,*float64) - - // The evaluate on exit conditions under which the job should be retried or failed. If this parameter is specified, then the attempts parameter must also be specified. You may specify up to 5 configuration blocks. - evaluateOnExit?: [...#EvaluateOnExitInitParameters] @go(EvaluateOnExit,[]EvaluateOnExitInitParameters) -} - -#RetryStrategyObservation: { - // The number of times to move a job to the RUNNABLE status. You may specify between 1 and 10 attempts. - attempts?: null | float64 @go(Attempts,*float64) - - // The evaluate on exit conditions under which the job should be retried or failed. If this parameter is specified, then the attempts parameter must also be specified. You may specify up to 5 configuration blocks. - evaluateOnExit?: [...#EvaluateOnExitObservation] @go(EvaluateOnExit,[]EvaluateOnExitObservation) -} - -#RetryStrategyParameters: { - // The number of times to move a job to the RUNNABLE status. You may specify between 1 and 10 attempts. - // +kubebuilder:validation:Optional - attempts?: null | float64 @go(Attempts,*float64) - - // The evaluate on exit conditions under which the job should be retried or failed. If this parameter is specified, then the attempts parameter must also be specified. You may specify up to 5 configuration blocks. - // +kubebuilder:validation:Optional - evaluateOnExit?: [...#EvaluateOnExitParameters] @go(EvaluateOnExit,[]EvaluateOnExitParameters) -} - -#TimeoutInitParameters: { - // The time duration in seconds after which AWS Batch terminates your jobs if they have not finished. The minimum value for the timeout is 60 seconds. - attemptDurationSeconds?: null | float64 @go(AttemptDurationSeconds,*float64) -} - -#TimeoutObservation: { - // The time duration in seconds after which AWS Batch terminates your jobs if they have not finished. The minimum value for the timeout is 60 seconds. - attemptDurationSeconds?: null | float64 @go(AttemptDurationSeconds,*float64) -} - -#TimeoutParameters: { - // The time duration in seconds after which AWS Batch terminates your jobs if they have not finished. The minimum value for the timeout is 60 seconds. - // +kubebuilder:validation:Optional - attemptDurationSeconds?: null | float64 @go(AttemptDurationSeconds,*float64) -} - -// JobDefinitionSpec defines the desired state of JobDefinition -#JobDefinitionSpec: { - v1.#ResourceSpec - forProvider: #JobDefinitionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #JobDefinitionInitParameters @go(InitProvider) -} - -// JobDefinitionStatus defines the observed state of JobDefinition. -#JobDefinitionStatus: { - v1.#ResourceStatus - atProvider?: #JobDefinitionObservation @go(AtProvider) -} - -// JobDefinition is the Schema for the JobDefinitions API. Provides a Batch Job Definition resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#JobDefinition: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #JobDefinitionSpec @go(Spec) - status?: #JobDefinitionStatus @go(Status) -} - -// JobDefinitionList contains a list of JobDefinitions -#JobDefinitionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#JobDefinition] @go(Items,[]JobDefinition) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/batch/v1beta1/zz_schedulingpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/batch/v1beta1/zz_schedulingpolicy_types_go_gen.cue deleted file mode 100644 index 8c96297..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/batch/v1beta1/zz_schedulingpolicy_types_go_gen.cue +++ /dev/null @@ -1,146 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/batch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#FairSharePolicyInitParameters: { - // A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see FairsharePolicy. - computeReservation?: null | float64 @go(ComputeReservation,*float64) - shareDecaySeconds?: null | float64 @go(ShareDecaySeconds,*float64) - - // One or more share distribution blocks which define the weights for the fair share identifiers for the fair share policy. For more information, see FairsharePolicy. The share_distribution block is documented below. - shareDistribution?: [...#ShareDistributionInitParameters] @go(ShareDistribution,[]ShareDistributionInitParameters) -} - -#FairSharePolicyObservation: { - // A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see FairsharePolicy. - computeReservation?: null | float64 @go(ComputeReservation,*float64) - shareDecaySeconds?: null | float64 @go(ShareDecaySeconds,*float64) - - // One or more share distribution blocks which define the weights for the fair share identifiers for the fair share policy. For more information, see FairsharePolicy. The share_distribution block is documented below. - shareDistribution?: [...#ShareDistributionObservation] @go(ShareDistribution,[]ShareDistributionObservation) -} - -#FairSharePolicyParameters: { - // A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see FairsharePolicy. - // +kubebuilder:validation:Optional - computeReservation?: null | float64 @go(ComputeReservation,*float64) - - // +kubebuilder:validation:Optional - shareDecaySeconds?: null | float64 @go(ShareDecaySeconds,*float64) - - // One or more share distribution blocks which define the weights for the fair share identifiers for the fair share policy. For more information, see FairsharePolicy. The share_distribution block is documented below. - // +kubebuilder:validation:Optional - shareDistribution?: [...#ShareDistributionParameters] @go(ShareDistribution,[]ShareDistributionParameters) -} - -#SchedulingPolicyInitParameters: { - fairSharePolicy?: [...#FairSharePolicyInitParameters] @go(FairSharePolicy,[]FairSharePolicyInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SchedulingPolicyObservation: { - // The Amazon Resource Name of the scheduling policy. - arn?: null | string @go(Arn,*string) - fairSharePolicy?: [...#FairSharePolicyObservation] @go(FairSharePolicy,[]FairSharePolicyObservation) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SchedulingPolicyParameters: { - // +kubebuilder:validation:Optional - fairSharePolicy?: [...#FairSharePolicyParameters] @go(FairSharePolicy,[]FairSharePolicyParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ShareDistributionInitParameters: { - // A fair share identifier or fair share identifier prefix. For more information, see ShareAttributes. - shareIdentifier?: null | string @go(ShareIdentifier,*string) - - // The weight factor for the fair share identifier. For more information, see ShareAttributes. - weightFactor?: null | float64 @go(WeightFactor,*float64) -} - -#ShareDistributionObservation: { - // A fair share identifier or fair share identifier prefix. For more information, see ShareAttributes. - shareIdentifier?: null | string @go(ShareIdentifier,*string) - - // The weight factor for the fair share identifier. For more information, see ShareAttributes. - weightFactor?: null | float64 @go(WeightFactor,*float64) -} - -#ShareDistributionParameters: { - // A fair share identifier or fair share identifier prefix. For more information, see ShareAttributes. - // +kubebuilder:validation:Optional - shareIdentifier?: null | string @go(ShareIdentifier,*string) - - // The weight factor for the fair share identifier. For more information, see ShareAttributes. - // +kubebuilder:validation:Optional - weightFactor?: null | float64 @go(WeightFactor,*float64) -} - -// SchedulingPolicySpec defines the desired state of SchedulingPolicy -#SchedulingPolicySpec: { - v1.#ResourceSpec - forProvider: #SchedulingPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SchedulingPolicyInitParameters @go(InitProvider) -} - -// SchedulingPolicyStatus defines the observed state of SchedulingPolicy. -#SchedulingPolicyStatus: { - v1.#ResourceStatus - atProvider?: #SchedulingPolicyObservation @go(AtProvider) -} - -// SchedulingPolicy is the Schema for the SchedulingPolicys API. Provides a Batch Scheduling Policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SchedulingPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SchedulingPolicySpec @go(Spec) - status?: #SchedulingPolicyStatus @go(Status) -} - -// SchedulingPolicyList contains a list of SchedulingPolicys -#SchedulingPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SchedulingPolicy] @go(Items,[]SchedulingPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/budgets/v1beta1/zz_budget_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/budgets/v1beta1/zz_budget_types_go_gen.cue deleted file mode 100644 index cf348c4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/budgets/v1beta1/zz_budget_types_go_gen.cue +++ /dev/null @@ -1,477 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/budgets/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AutoAdjustDataInitParameters: { - autoAdjustType?: null | string @go(AutoAdjustType,*string) - historicalOptions?: [...#HistoricalOptionsInitParameters] @go(HistoricalOptions,[]HistoricalOptionsInitParameters) -} - -#AutoAdjustDataObservation: { - autoAdjustType?: null | string @go(AutoAdjustType,*string) - historicalOptions?: [...#HistoricalOptionsObservation] @go(HistoricalOptions,[]HistoricalOptionsObservation) - lastAutoAdjustTime?: null | string @go(LastAutoAdjustTime,*string) -} - -#AutoAdjustDataParameters: { - // +kubebuilder:validation:Optional - autoAdjustType?: null | string @go(AutoAdjustType,*string) - - // +kubebuilder:validation:Optional - historicalOptions?: [...#HistoricalOptionsParameters] @go(HistoricalOptions,[]HistoricalOptionsParameters) -} - -#BudgetInitParameters: { - // The ID of the target account for budget. Will use current user's account_id by default if omitted. - accountId?: null | string @go(AccountID,*string) - - // Object containing [AutoAdjustData] which determines the budget amount for an auto-adjusting budget. - autoAdjustData?: [...#AutoAdjustDataInitParameters] @go(AutoAdjustData,[]AutoAdjustDataInitParameters) - - // Whether this budget tracks monetary cost or usage. - budgetType?: null | string @go(BudgetType,*string) - - // A list of CostFilter name/values pair to apply to budget. - costFilter?: [...#CostFilterInitParameters] @go(CostFilter,[]CostFilterInitParameters) - - // Map of CostFilters key/value pairs to apply to the budget. - costFilters?: {[string]: null | string} @go(CostFilters,map[string]*string) - - // Object containing CostTypes The types of cost included in a budget, such as tax and subscriptions. - costTypes?: [...#CostTypesInitParameters] @go(CostTypes,[]CostTypesInitParameters) - - // The amount of cost or usage being measured for a budget. - limitAmount?: null | string @go(LimitAmount,*string) - - // The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See Spend documentation. - limitUnit?: null | string @go(LimitUnit,*string) - - // Object containing Budget Notifications. Can be used multiple times to define more than one budget notification. - notification?: [...#NotificationInitParameters] @go(Notification,[]NotificationInitParameters) - - // Object containing Planned Budget Limits. Can be used multiple times to plan more than one budget limit. See PlannedBudgetLimits documentation. - plannedLimit?: [...#PlannedLimitInitParameters] @go(PlannedLimit,[]PlannedLimitInitParameters) - - // The end of the time period covered by the budget. There are no restrictions on the end date. Format: 2017-01-01_12:00. - timePeriodEnd?: null | string @go(TimePeriodEnd,*string) - - // The start of the time period covered by the budget. If you don't specify a start date, AWS defaults to the start of your chosen time period. The start date must come before the end date. Format: 2017-01-01_12:00. - timePeriodStart?: null | string @go(TimePeriodStart,*string) - - // The length of time until a budget resets the actual and forecasted spend. Valid values: MONTHLY, QUARTERLY, ANNUALLY, and DAILY. - timeUnit?: null | string @go(TimeUnit,*string) -} - -#BudgetObservation: { - // The ID of the target account for budget. Will use current user's account_id by default if omitted. - accountId?: null | string @go(AccountID,*string) - - // The ARN of the budget. - arn?: null | string @go(Arn,*string) - - // Object containing [AutoAdjustData] which determines the budget amount for an auto-adjusting budget. - autoAdjustData?: [...#AutoAdjustDataObservation] @go(AutoAdjustData,[]AutoAdjustDataObservation) - - // Whether this budget tracks monetary cost or usage. - budgetType?: null | string @go(BudgetType,*string) - - // A list of CostFilter name/values pair to apply to budget. - costFilter?: [...#CostFilterObservation] @go(CostFilter,[]CostFilterObservation) - - // Map of CostFilters key/value pairs to apply to the budget. - costFilters?: {[string]: null | string} @go(CostFilters,map[string]*string) - - // Object containing CostTypes The types of cost included in a budget, such as tax and subscriptions. - costTypes?: [...#CostTypesObservation] @go(CostTypes,[]CostTypesObservation) - - // id of resource. - id?: null | string @go(ID,*string) - - // The amount of cost or usage being measured for a budget. - limitAmount?: null | string @go(LimitAmount,*string) - - // The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See Spend documentation. - limitUnit?: null | string @go(LimitUnit,*string) - - // Object containing Budget Notifications. Can be used multiple times to define more than one budget notification. - notification?: [...#NotificationObservation] @go(Notification,[]NotificationObservation) - - // Object containing Planned Budget Limits. Can be used multiple times to plan more than one budget limit. See PlannedBudgetLimits documentation. - plannedLimit?: [...#PlannedLimitObservation] @go(PlannedLimit,[]PlannedLimitObservation) - - // The end of the time period covered by the budget. There are no restrictions on the end date. Format: 2017-01-01_12:00. - timePeriodEnd?: null | string @go(TimePeriodEnd,*string) - - // The start of the time period covered by the budget. If you don't specify a start date, AWS defaults to the start of your chosen time period. The start date must come before the end date. Format: 2017-01-01_12:00. - timePeriodStart?: null | string @go(TimePeriodStart,*string) - - // The length of time until a budget resets the actual and forecasted spend. Valid values: MONTHLY, QUARTERLY, ANNUALLY, and DAILY. - timeUnit?: null | string @go(TimeUnit,*string) -} - -#BudgetParameters: { - // The ID of the target account for budget. Will use current user's account_id by default if omitted. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // Object containing [AutoAdjustData] which determines the budget amount for an auto-adjusting budget. - // +kubebuilder:validation:Optional - autoAdjustData?: [...#AutoAdjustDataParameters] @go(AutoAdjustData,[]AutoAdjustDataParameters) - - // Whether this budget tracks monetary cost or usage. - // +kubebuilder:validation:Optional - budgetType?: null | string @go(BudgetType,*string) - - // A list of CostFilter name/values pair to apply to budget. - // +kubebuilder:validation:Optional - costFilter?: [...#CostFilterParameters] @go(CostFilter,[]CostFilterParameters) - - // Map of CostFilters key/value pairs to apply to the budget. - // +kubebuilder:validation:Optional - costFilters?: {[string]: null | string} @go(CostFilters,map[string]*string) - - // Object containing CostTypes The types of cost included in a budget, such as tax and subscriptions. - // +kubebuilder:validation:Optional - costTypes?: [...#CostTypesParameters] @go(CostTypes,[]CostTypesParameters) - - // The amount of cost or usage being measured for a budget. - // +kubebuilder:validation:Optional - limitAmount?: null | string @go(LimitAmount,*string) - - // The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See Spend documentation. - // +kubebuilder:validation:Optional - limitUnit?: null | string @go(LimitUnit,*string) - - // Object containing Budget Notifications. Can be used multiple times to define more than one budget notification. - // +kubebuilder:validation:Optional - notification?: [...#NotificationParameters] @go(Notification,[]NotificationParameters) - - // Object containing Planned Budget Limits. Can be used multiple times to plan more than one budget limit. See PlannedBudgetLimits documentation. - // +kubebuilder:validation:Optional - plannedLimit?: [...#PlannedLimitParameters] @go(PlannedLimit,[]PlannedLimitParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The end of the time period covered by the budget. There are no restrictions on the end date. Format: 2017-01-01_12:00. - // +kubebuilder:validation:Optional - timePeriodEnd?: null | string @go(TimePeriodEnd,*string) - - // The start of the time period covered by the budget. If you don't specify a start date, AWS defaults to the start of your chosen time period. The start date must come before the end date. Format: 2017-01-01_12:00. - // +kubebuilder:validation:Optional - timePeriodStart?: null | string @go(TimePeriodStart,*string) - - // The length of time until a budget resets the actual and forecasted spend. Valid values: MONTHLY, QUARTERLY, ANNUALLY, and DAILY. - // +kubebuilder:validation:Optional - timeUnit?: null | string @go(TimeUnit,*string) -} - -#CostFilterInitParameters: { - // The name of a budget. Unique within accounts. - name?: null | string @go(Name,*string) - values?: [...null | string] @go(Values,[]*string) -} - -#CostFilterObservation: { - // The name of a budget. Unique within accounts. - name?: null | string @go(Name,*string) - values?: [...null | string] @go(Values,[]*string) -} - -#CostFilterParameters: { - // The name of a budget. Unique within accounts. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#CostTypesInitParameters: { - // A boolean value whether to include credits in the cost budget. Defaults to true - includeCredit?: null | bool @go(IncludeCredit,*bool) - - // Whether a budget includes discounts. Defaults to true - includeDiscount?: null | bool @go(IncludeDiscount,*bool) - - // A boolean value whether to include other subscription costs in the cost budget. Defaults to true - includeOtherSubscription?: null | bool @go(IncludeOtherSubscription,*bool) - - // A boolean value whether to include recurring costs in the cost budget. Defaults to true - includeRecurring?: null | bool @go(IncludeRecurring,*bool) - - // A boolean value whether to include refunds in the cost budget. Defaults to true - includeRefund?: null | bool @go(IncludeRefund,*bool) - - // A boolean value whether to include subscriptions in the cost budget. Defaults to true - includeSubscription?: null | bool @go(IncludeSubscription,*bool) - - // A boolean value whether to include support costs in the cost budget. Defaults to true - includeSupport?: null | bool @go(IncludeSupport,*bool) - - // A boolean value whether to include tax in the cost budget. Defaults to true - includeTax?: null | bool @go(IncludeTax,*bool) - - // A boolean value whether to include upfront costs in the cost budget. Defaults to true - includeUpfront?: null | bool @go(IncludeUpfront,*bool) - - // Whether a budget uses the amortized rate. Defaults to false - useAmortized?: null | bool @go(UseAmortized,*bool) - - // A boolean value whether to use blended costs in the cost budget. Defaults to false - useBlended?: null | bool @go(UseBlended,*bool) -} - -#CostTypesObservation: { - // A boolean value whether to include credits in the cost budget. Defaults to true - includeCredit?: null | bool @go(IncludeCredit,*bool) - - // Whether a budget includes discounts. Defaults to true - includeDiscount?: null | bool @go(IncludeDiscount,*bool) - - // A boolean value whether to include other subscription costs in the cost budget. Defaults to true - includeOtherSubscription?: null | bool @go(IncludeOtherSubscription,*bool) - - // A boolean value whether to include recurring costs in the cost budget. Defaults to true - includeRecurring?: null | bool @go(IncludeRecurring,*bool) - - // A boolean value whether to include refunds in the cost budget. Defaults to true - includeRefund?: null | bool @go(IncludeRefund,*bool) - - // A boolean value whether to include subscriptions in the cost budget. Defaults to true - includeSubscription?: null | bool @go(IncludeSubscription,*bool) - - // A boolean value whether to include support costs in the cost budget. Defaults to true - includeSupport?: null | bool @go(IncludeSupport,*bool) - - // A boolean value whether to include tax in the cost budget. Defaults to true - includeTax?: null | bool @go(IncludeTax,*bool) - - // A boolean value whether to include upfront costs in the cost budget. Defaults to true - includeUpfront?: null | bool @go(IncludeUpfront,*bool) - - // Whether a budget uses the amortized rate. Defaults to false - useAmortized?: null | bool @go(UseAmortized,*bool) - - // A boolean value whether to use blended costs in the cost budget. Defaults to false - useBlended?: null | bool @go(UseBlended,*bool) -} - -#CostTypesParameters: { - // A boolean value whether to include credits in the cost budget. Defaults to true - // +kubebuilder:validation:Optional - includeCredit?: null | bool @go(IncludeCredit,*bool) - - // Whether a budget includes discounts. Defaults to true - // +kubebuilder:validation:Optional - includeDiscount?: null | bool @go(IncludeDiscount,*bool) - - // A boolean value whether to include other subscription costs in the cost budget. Defaults to true - // +kubebuilder:validation:Optional - includeOtherSubscription?: null | bool @go(IncludeOtherSubscription,*bool) - - // A boolean value whether to include recurring costs in the cost budget. Defaults to true - // +kubebuilder:validation:Optional - includeRecurring?: null | bool @go(IncludeRecurring,*bool) - - // A boolean value whether to include refunds in the cost budget. Defaults to true - // +kubebuilder:validation:Optional - includeRefund?: null | bool @go(IncludeRefund,*bool) - - // A boolean value whether to include subscriptions in the cost budget. Defaults to true - // +kubebuilder:validation:Optional - includeSubscription?: null | bool @go(IncludeSubscription,*bool) - - // A boolean value whether to include support costs in the cost budget. Defaults to true - // +kubebuilder:validation:Optional - includeSupport?: null | bool @go(IncludeSupport,*bool) - - // A boolean value whether to include tax in the cost budget. Defaults to true - // +kubebuilder:validation:Optional - includeTax?: null | bool @go(IncludeTax,*bool) - - // A boolean value whether to include upfront costs in the cost budget. Defaults to true - // +kubebuilder:validation:Optional - includeUpfront?: null | bool @go(IncludeUpfront,*bool) - - // Whether a budget uses the amortized rate. Defaults to false - // +kubebuilder:validation:Optional - useAmortized?: null | bool @go(UseAmortized,*bool) - - // A boolean value whether to use blended costs in the cost budget. Defaults to false - // +kubebuilder:validation:Optional - useBlended?: null | bool @go(UseBlended,*bool) -} - -#HistoricalOptionsInitParameters: { - budgetAdjustmentPeriod?: null | float64 @go(BudgetAdjustmentPeriod,*float64) -} - -#HistoricalOptionsObservation: { - budgetAdjustmentPeriod?: null | float64 @go(BudgetAdjustmentPeriod,*float64) - lookbackAvailablePeriods?: null | float64 @go(LookbackAvailablePeriods,*float64) -} - -#HistoricalOptionsParameters: { - // +kubebuilder:validation:Optional - budgetAdjustmentPeriod?: null | float64 @go(BudgetAdjustmentPeriod,*float64) -} - -#NotificationInitParameters: { - // Comparison operator to use to evaluate the condition. Can be LESS_THAN, EQUAL_TO or GREATER_THAN. - comparisonOperator?: null | string @go(ComparisonOperator,*string) - - // What kind of budget value to notify on. Can be ACTUAL or FORECASTED - notificationType?: null | string @go(NotificationType,*string) - - // E-Mail addresses to notify. Either this or subscriber_sns_topic_arns is required. - subscriberEmailAddresses?: [...null | string] @go(SubscriberEmailAddresses,[]*string) - - // SNS topics to notify. Either this or subscriber_email_addresses is required. - subscriberSnsTopicArns?: [...null | string] @go(SubscriberSnsTopicArns,[]*string) - - // Threshold when the notification should be sent. - threshold?: null | float64 @go(Threshold,*float64) - - // What kind of threshold is defined. Can be PERCENTAGE OR ABSOLUTE_VALUE. - thresholdType?: null | string @go(ThresholdType,*string) -} - -#NotificationObservation: { - // Comparison operator to use to evaluate the condition. Can be LESS_THAN, EQUAL_TO or GREATER_THAN. - comparisonOperator?: null | string @go(ComparisonOperator,*string) - - // What kind of budget value to notify on. Can be ACTUAL or FORECASTED - notificationType?: null | string @go(NotificationType,*string) - - // E-Mail addresses to notify. Either this or subscriber_sns_topic_arns is required. - subscriberEmailAddresses?: [...null | string] @go(SubscriberEmailAddresses,[]*string) - - // SNS topics to notify. Either this or subscriber_email_addresses is required. - subscriberSnsTopicArns?: [...null | string] @go(SubscriberSnsTopicArns,[]*string) - - // Threshold when the notification should be sent. - threshold?: null | float64 @go(Threshold,*float64) - - // What kind of threshold is defined. Can be PERCENTAGE OR ABSOLUTE_VALUE. - thresholdType?: null | string @go(ThresholdType,*string) -} - -#NotificationParameters: { - // Comparison operator to use to evaluate the condition. Can be LESS_THAN, EQUAL_TO or GREATER_THAN. - // +kubebuilder:validation:Optional - comparisonOperator?: null | string @go(ComparisonOperator,*string) - - // What kind of budget value to notify on. Can be ACTUAL or FORECASTED - // +kubebuilder:validation:Optional - notificationType?: null | string @go(NotificationType,*string) - - // E-Mail addresses to notify. Either this or subscriber_sns_topic_arns is required. - // +kubebuilder:validation:Optional - subscriberEmailAddresses?: [...null | string] @go(SubscriberEmailAddresses,[]*string) - - // SNS topics to notify. Either this or subscriber_email_addresses is required. - // +kubebuilder:validation:Optional - subscriberSnsTopicArns?: [...null | string] @go(SubscriberSnsTopicArns,[]*string) - - // Threshold when the notification should be sent. - // +kubebuilder:validation:Optional - threshold?: null | float64 @go(Threshold,*float64) - - // What kind of threshold is defined. Can be PERCENTAGE OR ABSOLUTE_VALUE. - // +kubebuilder:validation:Optional - thresholdType?: null | string @go(ThresholdType,*string) -} - -#PlannedLimitInitParameters: { - // The amount of cost or usage being measured for a budget. - amount?: null | string @go(Amount,*string) - - // The start time of the budget limit. Format: 2017-01-01_12:00. See PlannedBudgetLimits documentation. - startTime?: null | string @go(StartTime,*string) - - // The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See Spend documentation. - unit?: null | string @go(Unit,*string) -} - -#PlannedLimitObservation: { - // The amount of cost or usage being measured for a budget. - amount?: null | string @go(Amount,*string) - - // The start time of the budget limit. Format: 2017-01-01_12:00. See PlannedBudgetLimits documentation. - startTime?: null | string @go(StartTime,*string) - - // The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See Spend documentation. - unit?: null | string @go(Unit,*string) -} - -#PlannedLimitParameters: { - // The amount of cost or usage being measured for a budget. - // +kubebuilder:validation:Optional - amount?: null | string @go(Amount,*string) - - // The start time of the budget limit. Format: 2017-01-01_12:00. See PlannedBudgetLimits documentation. - // +kubebuilder:validation:Optional - startTime?: null | string @go(StartTime,*string) - - // The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See Spend documentation. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) -} - -// BudgetSpec defines the desired state of Budget -#BudgetSpec: { - v1.#ResourceSpec - forProvider: #BudgetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BudgetInitParameters @go(InitProvider) -} - -// BudgetStatus defines the observed state of Budget. -#BudgetStatus: { - v1.#ResourceStatus - atProvider?: #BudgetObservation @go(AtProvider) -} - -// Budget is the Schema for the Budgets API. Provides a budgets budget resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Budget: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.budgetType) || (has(self.initProvider) && has(self.initProvider.budgetType))",message="spec.forProvider.budgetType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.timeUnit) || (has(self.initProvider) && has(self.initProvider.timeUnit))",message="spec.forProvider.timeUnit is a required parameter" - spec: #BudgetSpec @go(Spec) - status?: #BudgetStatus @go(Status) -} - -// BudgetList contains a list of Budgets -#BudgetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Budget] @go(Items,[]Budget) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/budgets/v1beta1/zz_budgetaction_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/budgets/v1beta1/zz_budgetaction_types_go_gen.cue deleted file mode 100644 index 38eb644..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/budgets/v1beta1/zz_budgetaction_types_go_gen.cue +++ /dev/null @@ -1,389 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/budgets/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionThresholdInitParameters: { - // The type of threshold for a notification. Valid values are PERCENTAGE or ABSOLUTE_VALUE. - actionThresholdType?: null | string @go(ActionThresholdType,*string) - - // The threshold of a notification. - actionThresholdValue?: null | float64 @go(ActionThresholdValue,*float64) -} - -#ActionThresholdObservation: { - // The type of threshold for a notification. Valid values are PERCENTAGE or ABSOLUTE_VALUE. - actionThresholdType?: null | string @go(ActionThresholdType,*string) - - // The threshold of a notification. - actionThresholdValue?: null | float64 @go(ActionThresholdValue,*float64) -} - -#ActionThresholdParameters: { - // The type of threshold for a notification. Valid values are PERCENTAGE or ABSOLUTE_VALUE. - // +kubebuilder:validation:Optional - actionThresholdType?: null | string @go(ActionThresholdType,*string) - - // The threshold of a notification. - // +kubebuilder:validation:Optional - actionThresholdValue?: null | float64 @go(ActionThresholdValue,*float64) -} - -#BudgetActionInitParameters: { - // The ID of the target account for budget. Will use current user's account_id by default if omitted. - accountId?: null | string @go(AccountID,*string) - - // The trigger threshold of the action. See Action Threshold. - actionThreshold?: [...#ActionThresholdInitParameters] @go(ActionThreshold,[]ActionThresholdInitParameters) - - // The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition. Valid values are APPLY_IAM_POLICY, APPLY_SCP_POLICY, and RUN_SSM_DOCUMENTS. - actionType?: null | string @go(ActionType,*string) - - // This specifies if the action needs manual or automatic approval. Valid values are AUTOMATIC and MANUAL. - approvalModel?: null | string @go(ApprovalModel,*string) - - // Specifies all of the type-specific parameters. See Definition. - definition?: [...#DefinitionInitParameters] @go(Definition,[]DefinitionInitParameters) - - // The type of a notification. Valid values are ACTUAL or FORECASTED. - notificationType?: null | string @go(NotificationType,*string) - - // A list of subscribers. See Subscriber. - subscriber?: [...#SubscriberInitParameters] @go(Subscriber,[]SubscriberInitParameters) -} - -#BudgetActionObservation: { - // The ID of the target account for budget. Will use current user's account_id by default if omitted. - accountId?: null | string @go(AccountID,*string) - - // The id of the budget action. - actionId?: null | string @go(ActionID,*string) - - // The trigger threshold of the action. See Action Threshold. - actionThreshold?: [...#ActionThresholdObservation] @go(ActionThreshold,[]ActionThresholdObservation) - - // The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition. Valid values are APPLY_IAM_POLICY, APPLY_SCP_POLICY, and RUN_SSM_DOCUMENTS. - actionType?: null | string @go(ActionType,*string) - - // This specifies if the action needs manual or automatic approval. Valid values are AUTOMATIC and MANUAL. - approvalModel?: null | string @go(ApprovalModel,*string) - - // The ARN of the budget action. - arn?: null | string @go(Arn,*string) - - // The name of a budget. - budgetName?: null | string @go(BudgetName,*string) - - // Specifies all of the type-specific parameters. See Definition. - definition?: [...#DefinitionObservation] @go(Definition,[]DefinitionObservation) - - // The role passed for action execution and reversion. Roles and actions must be in the same account. - executionRoleArn?: null | string @go(ExecutionRoleArn,*string) - - // ID of resource. - id?: null | string @go(ID,*string) - - // The type of a notification. Valid values are ACTUAL or FORECASTED. - notificationType?: null | string @go(NotificationType,*string) - - // The status of the budget action. - status?: null | string @go(Status,*string) - - // A list of subscribers. See Subscriber. - subscriber?: [...#SubscriberObservation] @go(Subscriber,[]SubscriberObservation) -} - -#BudgetActionParameters: { - // The ID of the target account for budget. Will use current user's account_id by default if omitted. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // The trigger threshold of the action. See Action Threshold. - // +kubebuilder:validation:Optional - actionThreshold?: [...#ActionThresholdParameters] @go(ActionThreshold,[]ActionThresholdParameters) - - // The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition. Valid values are APPLY_IAM_POLICY, APPLY_SCP_POLICY, and RUN_SSM_DOCUMENTS. - // +kubebuilder:validation:Optional - actionType?: null | string @go(ActionType,*string) - - // This specifies if the action needs manual or automatic approval. Valid values are AUTOMATIC and MANUAL. - // +kubebuilder:validation:Optional - approvalModel?: null | string @go(ApprovalModel,*string) - - // The name of a budget. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/budgets/v1beta1.Budget - // +kubebuilder:validation:Optional - budgetName?: null | string @go(BudgetName,*string) - - // Reference to a Budget in budgets to populate budgetName. - // +kubebuilder:validation:Optional - budgetNameRef?: null | v1.#Reference @go(BudgetNameRef,*v1.Reference) - - // Selector for a Budget in budgets to populate budgetName. - // +kubebuilder:validation:Optional - budgetNameSelector?: null | v1.#Selector @go(BudgetNameSelector,*v1.Selector) - - // Specifies all of the type-specific parameters. See Definition. - // +kubebuilder:validation:Optional - definition?: [...#DefinitionParameters] @go(Definition,[]DefinitionParameters) - - // The role passed for action execution and reversion. Roles and actions must be in the same account. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - executionRoleArn?: null | string @go(ExecutionRoleArn,*string) - - // Reference to a Role in iam to populate executionRoleArn. - // +kubebuilder:validation:Optional - executionRoleArnRef?: null | v1.#Reference @go(ExecutionRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate executionRoleArn. - // +kubebuilder:validation:Optional - executionRoleArnSelector?: null | v1.#Selector @go(ExecutionRoleArnSelector,*v1.Selector) - - // The type of a notification. Valid values are ACTUAL or FORECASTED. - // +kubebuilder:validation:Optional - notificationType?: null | string @go(NotificationType,*string) - - // The Region to run the SSM document. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A list of subscribers. See Subscriber. - // +kubebuilder:validation:Optional - subscriber?: [...#SubscriberParameters] @go(Subscriber,[]SubscriberParameters) -} - -#DefinitionInitParameters: { - // The AWS Identity and Access Management (IAM) action definition details. See IAM Action Definition. - iamActionDefinition?: [...#IAMActionDefinitionInitParameters] @go(IAMActionDefinition,[]IAMActionDefinitionInitParameters) - - // The service control policies (SCPs) action definition details. See SCP Action Definition. - scpActionDefinition?: [...#ScpActionDefinitionInitParameters] @go(ScpActionDefinition,[]ScpActionDefinitionInitParameters) - - // The AWS Systems Manager (SSM) action definition details. See SSM Action Definition. - ssmActionDefinition?: [...#SsmActionDefinitionInitParameters] @go(SsmActionDefinition,[]SsmActionDefinitionInitParameters) -} - -#DefinitionObservation: { - // The AWS Identity and Access Management (IAM) action definition details. See IAM Action Definition. - iamActionDefinition?: [...#IAMActionDefinitionObservation] @go(IAMActionDefinition,[]IAMActionDefinitionObservation) - - // The service control policies (SCPs) action definition details. See SCP Action Definition. - scpActionDefinition?: [...#ScpActionDefinitionObservation] @go(ScpActionDefinition,[]ScpActionDefinitionObservation) - - // The AWS Systems Manager (SSM) action definition details. See SSM Action Definition. - ssmActionDefinition?: [...#SsmActionDefinitionObservation] @go(SsmActionDefinition,[]SsmActionDefinitionObservation) -} - -#DefinitionParameters: { - // The AWS Identity and Access Management (IAM) action definition details. See IAM Action Definition. - // +kubebuilder:validation:Optional - iamActionDefinition?: [...#IAMActionDefinitionParameters] @go(IAMActionDefinition,[]IAMActionDefinitionParameters) - - // The service control policies (SCPs) action definition details. See SCP Action Definition. - // +kubebuilder:validation:Optional - scpActionDefinition?: [...#ScpActionDefinitionParameters] @go(ScpActionDefinition,[]ScpActionDefinitionParameters) - - // The AWS Systems Manager (SSM) action definition details. See SSM Action Definition. - // +kubebuilder:validation:Optional - ssmActionDefinition?: [...#SsmActionDefinitionParameters] @go(SsmActionDefinition,[]SsmActionDefinitionParameters) -} - -#IAMActionDefinitionInitParameters: { - // A list of groups to be attached. There must be at least one group. - groups?: [...null | string] @go(Groups,[]*string) - - // A list of roles to be attached. There must be at least one role. - roles?: [...null | string] @go(Roles,[]*string) - - // A list of users to be attached. There must be at least one user. - users?: [...null | string] @go(Users,[]*string) -} - -#IAMActionDefinitionObservation: { - // A list of groups to be attached. There must be at least one group. - groups?: [...null | string] @go(Groups,[]*string) - - // The Amazon Resource Name (ARN) of the policy to be attached. - policyArn?: null | string @go(PolicyArn,*string) - - // A list of roles to be attached. There must be at least one role. - roles?: [...null | string] @go(Roles,[]*string) - - // A list of users to be attached. There must be at least one user. - users?: [...null | string] @go(Users,[]*string) -} - -#IAMActionDefinitionParameters: { - // A list of groups to be attached. There must be at least one group. - // +kubebuilder:validation:Optional - groups?: [...null | string] @go(Groups,[]*string) - - // The Amazon Resource Name (ARN) of the policy to be attached. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Policy - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - policyArn?: null | string @go(PolicyArn,*string) - - // Reference to a Policy in iam to populate policyArn. - // +kubebuilder:validation:Optional - policyArnRef?: null | v1.#Reference @go(PolicyArnRef,*v1.Reference) - - // Selector for a Policy in iam to populate policyArn. - // +kubebuilder:validation:Optional - policyArnSelector?: null | v1.#Selector @go(PolicyArnSelector,*v1.Selector) - - // A list of roles to be attached. There must be at least one role. - // +kubebuilder:validation:Optional - roles?: [...null | string] @go(Roles,[]*string) - - // A list of users to be attached. There must be at least one user. - // +kubebuilder:validation:Optional - users?: [...null | string] @go(Users,[]*string) -} - -#ScpActionDefinitionInitParameters: { - // The policy ID attached. - policyId?: null | string @go(PolicyID,*string) - - // A list of target IDs. - targetIds?: [...null | string] @go(TargetIds,[]*string) -} - -#ScpActionDefinitionObservation: { - // The policy ID attached. - policyId?: null | string @go(PolicyID,*string) - - // A list of target IDs. - targetIds?: [...null | string] @go(TargetIds,[]*string) -} - -#ScpActionDefinitionParameters: { - // The policy ID attached. - // +kubebuilder:validation:Optional - policyId?: null | string @go(PolicyID,*string) - - // A list of target IDs. - // +kubebuilder:validation:Optional - targetIds: [...null | string] @go(TargetIds,[]*string) -} - -#SsmActionDefinitionInitParameters: { - // The action subType. Valid values are STOP_EC2_INSTANCES or STOP_RDS_INSTANCES. - actionSubType?: null | string @go(ActionSubType,*string) - - // The EC2 and RDS instance IDs. - instanceIds?: [...null | string] @go(InstanceIds,[]*string) -} - -#SsmActionDefinitionObservation: { - // The action subType. Valid values are STOP_EC2_INSTANCES or STOP_RDS_INSTANCES. - actionSubType?: null | string @go(ActionSubType,*string) - - // The EC2 and RDS instance IDs. - instanceIds?: [...null | string] @go(InstanceIds,[]*string) - - // The Region to run the SSM document. - region?: null | string @go(Region,*string) -} - -#SsmActionDefinitionParameters: { - // The action subType. Valid values are STOP_EC2_INSTANCES or STOP_RDS_INSTANCES. - // +kubebuilder:validation:Optional - actionSubType?: null | string @go(ActionSubType,*string) - - // The EC2 and RDS instance IDs. - // +kubebuilder:validation:Optional - instanceIds: [...null | string] @go(InstanceIds,[]*string) - - // The Region to run the SSM document. - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#SubscriberInitParameters: { - // The address that AWS sends budget notifications to, either an SNS topic or an email. - address?: null | string @go(Address,*string) - - // The type of notification that AWS sends to a subscriber. Valid values are SNS or EMAIL. - subscriptionType?: null | string @go(SubscriptionType,*string) -} - -#SubscriberObservation: { - // The address that AWS sends budget notifications to, either an SNS topic or an email. - address?: null | string @go(Address,*string) - - // The type of notification that AWS sends to a subscriber. Valid values are SNS or EMAIL. - subscriptionType?: null | string @go(SubscriptionType,*string) -} - -#SubscriberParameters: { - // The address that AWS sends budget notifications to, either an SNS topic or an email. - // +kubebuilder:validation:Optional - address?: null | string @go(Address,*string) - - // The type of notification that AWS sends to a subscriber. Valid values are SNS or EMAIL. - // +kubebuilder:validation:Optional - subscriptionType?: null | string @go(SubscriptionType,*string) -} - -// BudgetActionSpec defines the desired state of BudgetAction -#BudgetActionSpec: { - v1.#ResourceSpec - forProvider: #BudgetActionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BudgetActionInitParameters @go(InitProvider) -} - -// BudgetActionStatus defines the observed state of BudgetAction. -#BudgetActionStatus: { - v1.#ResourceStatus - atProvider?: #BudgetActionObservation @go(AtProvider) -} - -// BudgetAction is the Schema for the BudgetActions API. Provides a budget action resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BudgetAction: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.actionThreshold) || (has(self.initProvider) && has(self.initProvider.actionThreshold))",message="spec.forProvider.actionThreshold is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.actionType) || (has(self.initProvider) && has(self.initProvider.actionType))",message="spec.forProvider.actionType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.approvalModel) || (has(self.initProvider) && has(self.initProvider.approvalModel))",message="spec.forProvider.approvalModel is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.definition) || (has(self.initProvider) && has(self.initProvider.definition))",message="spec.forProvider.definition is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.notificationType) || (has(self.initProvider) && has(self.initProvider.notificationType))",message="spec.forProvider.notificationType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.subscriber) || (has(self.initProvider) && has(self.initProvider.subscriber))",message="spec.forProvider.subscriber is a required parameter" - spec: #BudgetActionSpec @go(Spec) - status?: #BudgetActionStatus @go(Status) -} - -// BudgetActionList contains a list of BudgetActions -#BudgetActionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BudgetAction] @go(Items,[]BudgetAction) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/budgets/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/budgets/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 990eefc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/budgets/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/budgets/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=budgets.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "budgets.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ce/v1beta1/zz_anomalymonitor_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ce/v1beta1/zz_anomalymonitor_types_go_gen.cue deleted file mode 100644 index 86c4877..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ce/v1beta1/zz_anomalymonitor_types_go_gen.cue +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ce/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AnomalyMonitorInitParameters: { - // The dimensions to evaluate. Valid values: SERVICE. - monitorDimension?: null | string @go(MonitorDimension,*string) - - // A valid JSON representation for the Expression object. - monitorSpecification?: null | string @go(MonitorSpecification,*string) - - // The possible type values. Valid values: DIMENSIONAL | CUSTOM. - monitorType?: null | string @go(MonitorType,*string) - - // The name of the monitor. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AnomalyMonitorObservation: { - // ARN of the anomaly monitor. - arn?: null | string @go(Arn,*string) - - // Unique ID of the anomaly monitor. Same as arn. - id?: null | string @go(ID,*string) - - // The dimensions to evaluate. Valid values: SERVICE. - monitorDimension?: null | string @go(MonitorDimension,*string) - - // A valid JSON representation for the Expression object. - monitorSpecification?: null | string @go(MonitorSpecification,*string) - - // The possible type values. Valid values: DIMENSIONAL | CUSTOM. - monitorType?: null | string @go(MonitorType,*string) - - // The name of the monitor. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#AnomalyMonitorParameters: { - // The dimensions to evaluate. Valid values: SERVICE. - // +kubebuilder:validation:Optional - monitorDimension?: null | string @go(MonitorDimension,*string) - - // A valid JSON representation for the Expression object. - // +kubebuilder:validation:Optional - monitorSpecification?: null | string @go(MonitorSpecification,*string) - - // The possible type values. Valid values: DIMENSIONAL | CUSTOM. - // +kubebuilder:validation:Optional - monitorType?: null | string @go(MonitorType,*string) - - // The name of the monitor. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// AnomalyMonitorSpec defines the desired state of AnomalyMonitor -#AnomalyMonitorSpec: { - v1.#ResourceSpec - forProvider: #AnomalyMonitorParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AnomalyMonitorInitParameters @go(InitProvider) -} - -// AnomalyMonitorStatus defines the observed state of AnomalyMonitor. -#AnomalyMonitorStatus: { - v1.#ResourceStatus - atProvider?: #AnomalyMonitorObservation @go(AtProvider) -} - -// AnomalyMonitor is the Schema for the AnomalyMonitors API. Provides a CE Cost Anomaly Monitor -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AnomalyMonitor: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.monitorType) || (has(self.initProvider) && has(self.initProvider.monitorType))",message="spec.forProvider.monitorType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #AnomalyMonitorSpec @go(Spec) - status?: #AnomalyMonitorStatus @go(Status) -} - -// AnomalyMonitorList contains a list of AnomalyMonitors -#AnomalyMonitorList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AnomalyMonitor] @go(Items,[]AnomalyMonitor) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ce/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ce/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 0504e12..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ce/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ce/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=ce.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "ce.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 20e5dc5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/chime/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=chime.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "chime.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnector_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnector_types_go_gen.cue deleted file mode 100644 index 98bc822..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnector_types_go_gen.cue +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/chime/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VoiceConnectorInitParameters: { - // The AWS Region in which the Amazon Chime Voice Connector is created. Default value: us-east-1 - awsRegion?: null | string @go(AwsRegion,*string) - - // When enabled, requires encryption for the Amazon Chime Voice Connector. - requireEncryption?: null | bool @go(RequireEncryption,*bool) -} - -#VoiceConnectorObservation: { - // The AWS Region in which the Amazon Chime Voice Connector is created. Default value: us-east-1 - awsRegion?: null | string @go(AwsRegion,*string) - id?: null | string @go(ID,*string) - - // The outbound host name for the Amazon Chime Voice Connector. - outboundHostName?: null | string @go(OutboundHostName,*string) - - // When enabled, requires encryption for the Amazon Chime Voice Connector. - requireEncryption?: null | bool @go(RequireEncryption,*bool) -} - -#VoiceConnectorParameters: { - // The AWS Region in which the Amazon Chime Voice Connector is created. Default value: us-east-1 - // +kubebuilder:validation:Optional - awsRegion?: null | string @go(AwsRegion,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // When enabled, requires encryption for the Amazon Chime Voice Connector. - // +kubebuilder:validation:Optional - requireEncryption?: null | bool @go(RequireEncryption,*bool) -} - -// VoiceConnectorSpec defines the desired state of VoiceConnector -#VoiceConnectorSpec: { - v1.#ResourceSpec - forProvider: #VoiceConnectorParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VoiceConnectorInitParameters @go(InitProvider) -} - -// VoiceConnectorStatus defines the observed state of VoiceConnector. -#VoiceConnectorStatus: { - v1.#ResourceStatus - atProvider?: #VoiceConnectorObservation @go(AtProvider) -} - -// VoiceConnector is the Schema for the VoiceConnectors API. Enables you to connect your phone system to the telephone network at a substantial cost savings by using SIP trunking. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VoiceConnector: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.requireEncryption) || (has(self.initProvider) && has(self.initProvider.requireEncryption))",message="spec.forProvider.requireEncryption is a required parameter" - spec: #VoiceConnectorSpec @go(Spec) - status?: #VoiceConnectorStatus @go(Status) -} - -// VoiceConnectorList contains a list of VoiceConnectors -#VoiceConnectorList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VoiceConnector] @go(Items,[]VoiceConnector) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectorgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectorgroup_types_go_gen.cue deleted file mode 100644 index a13824a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectorgroup_types_go_gen.cue +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/chime/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConnectorInitParameters: { - // The priority associated with the Amazon Chime Voice Connector, with 1 being the highest priority. Higher priority Amazon Chime Voice Connectors are attempted first. - priority?: null | float64 @go(Priority,*float64) -} - -#ConnectorObservation: { - // The priority associated with the Amazon Chime Voice Connector, with 1 being the highest priority. Higher priority Amazon Chime Voice Connectors are attempted first. - priority?: null | float64 @go(Priority,*float64) - - // The Amazon Chime Voice Connector ID. - voiceConnectorId?: null | string @go(VoiceConnectorID,*string) -} - -#ConnectorParameters: { - // The priority associated with the Amazon Chime Voice Connector, with 1 being the highest priority. Higher priority Amazon Chime Voice Connectors are attempted first. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // The Amazon Chime Voice Connector ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/chime/v1beta1.VoiceConnector - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - voiceConnectorId?: null | string @go(VoiceConnectorID,*string) - - // Reference to a VoiceConnector in chime to populate voiceConnectorId. - // +kubebuilder:validation:Optional - voiceConnectorIdRef?: null | v1.#Reference @go(VoiceConnectorIDRef,*v1.Reference) - - // Selector for a VoiceConnector in chime to populate voiceConnectorId. - // +kubebuilder:validation:Optional - voiceConnectorIdSelector?: null | v1.#Selector @go(VoiceConnectorIDSelector,*v1.Selector) -} - -#VoiceConnectorGroupInitParameters: { - // The Amazon Chime Voice Connectors to route inbound calls to. - connector?: [...#ConnectorInitParameters] @go(Connector,[]ConnectorInitParameters) -} - -#VoiceConnectorGroupObservation: { - // The Amazon Chime Voice Connectors to route inbound calls to. - connector?: [...#ConnectorObservation] @go(Connector,[]ConnectorObservation) - - // Amazon Chime Voice Connector group ID. - id?: null | string @go(ID,*string) -} - -#VoiceConnectorGroupParameters: { - // The Amazon Chime Voice Connectors to route inbound calls to. - // +kubebuilder:validation:Optional - connector?: [...#ConnectorParameters] @go(Connector,[]ConnectorParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// VoiceConnectorGroupSpec defines the desired state of VoiceConnectorGroup -#VoiceConnectorGroupSpec: { - v1.#ResourceSpec - forProvider: #VoiceConnectorGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VoiceConnectorGroupInitParameters @go(InitProvider) -} - -// VoiceConnectorGroupStatus defines the observed state of VoiceConnectorGroup. -#VoiceConnectorGroupStatus: { - v1.#ResourceStatus - atProvider?: #VoiceConnectorGroupObservation @go(AtProvider) -} - -// VoiceConnectorGroup is the Schema for the VoiceConnectorGroups API. Creates an Amazon Chime Voice Connector group under the administrator's AWS account. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VoiceConnectorGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VoiceConnectorGroupSpec @go(Spec) - status?: #VoiceConnectorGroupStatus @go(Status) -} - -// VoiceConnectorGroupList contains a list of VoiceConnectorGroups -#VoiceConnectorGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VoiceConnectorGroup] @go(Items,[]VoiceConnectorGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectorlogging_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectorlogging_types_go_gen.cue deleted file mode 100644 index 8e6745d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectorlogging_types_go_gen.cue +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/chime/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VoiceConnectorLoggingInitParameters: { - // When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs. - enableMediaMetricLogs?: null | bool @go(EnableMediaMetricLogs,*bool) - - // When true, enables SIP message logs for sending to Amazon CloudWatch Logs. - enableSipLogs?: null | bool @go(EnableSIPLogs,*bool) -} - -#VoiceConnectorLoggingObservation: { - // When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs. - enableMediaMetricLogs?: null | bool @go(EnableMediaMetricLogs,*bool) - - // When true, enables SIP message logs for sending to Amazon CloudWatch Logs. - enableSipLogs?: null | bool @go(EnableSIPLogs,*bool) - - // The Amazon Chime Voice Connector ID. - id?: null | string @go(ID,*string) - - // The Amazon Chime Voice Connector ID. - voiceConnectorId?: null | string @go(VoiceConnectorID,*string) -} - -#VoiceConnectorLoggingParameters: { - // When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs. - // +kubebuilder:validation:Optional - enableMediaMetricLogs?: null | bool @go(EnableMediaMetricLogs,*bool) - - // When true, enables SIP message logs for sending to Amazon CloudWatch Logs. - // +kubebuilder:validation:Optional - enableSipLogs?: null | bool @go(EnableSIPLogs,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Chime Voice Connector ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/chime/v1beta1.VoiceConnector - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - voiceConnectorId?: null | string @go(VoiceConnectorID,*string) - - // Reference to a VoiceConnector in chime to populate voiceConnectorId. - // +kubebuilder:validation:Optional - voiceConnectorIdRef?: null | v1.#Reference @go(VoiceConnectorIDRef,*v1.Reference) - - // Selector for a VoiceConnector in chime to populate voiceConnectorId. - // +kubebuilder:validation:Optional - voiceConnectorIdSelector?: null | v1.#Selector @go(VoiceConnectorIDSelector,*v1.Selector) -} - -// VoiceConnectorLoggingSpec defines the desired state of VoiceConnectorLogging -#VoiceConnectorLoggingSpec: { - v1.#ResourceSpec - forProvider: #VoiceConnectorLoggingParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VoiceConnectorLoggingInitParameters @go(InitProvider) -} - -// VoiceConnectorLoggingStatus defines the observed state of VoiceConnectorLogging. -#VoiceConnectorLoggingStatus: { - v1.#ResourceStatus - atProvider?: #VoiceConnectorLoggingObservation @go(AtProvider) -} - -// VoiceConnectorLogging is the Schema for the VoiceConnectorLoggings API. Adds a logging configuration for the specified Amazon Chime Voice Connector. The logging configuration specifies whether SIP message logs are enabled for sending to Amazon CloudWatch Logs. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VoiceConnectorLogging: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VoiceConnectorLoggingSpec @go(Spec) - status?: #VoiceConnectorLoggingStatus @go(Status) -} - -// VoiceConnectorLoggingList contains a list of VoiceConnectorLoggings -#VoiceConnectorLoggingList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VoiceConnectorLogging] @go(Items,[]VoiceConnectorLogging) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectororigination_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectororigination_types_go_gen.cue deleted file mode 100644 index 8b34818..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectororigination_types_go_gen.cue +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/chime/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RouteInitParameters: { - // The FQDN or IP address to contact for origination traffic. - host?: null | string @go(Host,*string) - - // The designated origination route port. Defaults to 5060. - port?: null | float64 @go(Port,*float64) - - // The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first. - priority?: null | float64 @go(Priority,*float64) - - // The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default. - protocol?: null | string @go(Protocol,*string) - - // The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight. - weight?: null | float64 @go(Weight,*float64) -} - -#RouteObservation: { - // The FQDN or IP address to contact for origination traffic. - host?: null | string @go(Host,*string) - - // The designated origination route port. Defaults to 5060. - port?: null | float64 @go(Port,*float64) - - // The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first. - priority?: null | float64 @go(Priority,*float64) - - // The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default. - protocol?: null | string @go(Protocol,*string) - - // The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight. - weight?: null | float64 @go(Weight,*float64) -} - -#RouteParameters: { - // The FQDN or IP address to contact for origination traffic. - // +kubebuilder:validation:Optional - host?: null | string @go(Host,*string) - - // The designated origination route port. Defaults to 5060. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -#VoiceConnectorOriginationInitParameters: { - // When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector. - disabled?: null | bool @go(Disabled,*bool) - - // Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20. - route?: [...#RouteInitParameters] @go(Route,[]RouteInitParameters) -} - -#VoiceConnectorOriginationObservation: { - // When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector. - disabled?: null | bool @go(Disabled,*bool) - - // The Amazon Chime Voice Connector ID. - id?: null | string @go(ID,*string) - - // Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20. - route?: [...#RouteObservation] @go(Route,[]RouteObservation) - - // The Amazon Chime Voice Connector ID. - voiceConnectorId?: null | string @go(VoiceConnectorID,*string) -} - -#VoiceConnectorOriginationParameters: { - // When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector. - // +kubebuilder:validation:Optional - disabled?: null | bool @go(Disabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20. - // +kubebuilder:validation:Optional - route?: [...#RouteParameters] @go(Route,[]RouteParameters) - - // The Amazon Chime Voice Connector ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/chime/v1beta1.VoiceConnector - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - voiceConnectorId?: null | string @go(VoiceConnectorID,*string) - - // Reference to a VoiceConnector in chime to populate voiceConnectorId. - // +kubebuilder:validation:Optional - voiceConnectorIdRef?: null | v1.#Reference @go(VoiceConnectorIDRef,*v1.Reference) - - // Selector for a VoiceConnector in chime to populate voiceConnectorId. - // +kubebuilder:validation:Optional - voiceConnectorIdSelector?: null | v1.#Selector @go(VoiceConnectorIDSelector,*v1.Selector) -} - -// VoiceConnectorOriginationSpec defines the desired state of VoiceConnectorOrigination -#VoiceConnectorOriginationSpec: { - v1.#ResourceSpec - forProvider: #VoiceConnectorOriginationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VoiceConnectorOriginationInitParameters @go(InitProvider) -} - -// VoiceConnectorOriginationStatus defines the observed state of VoiceConnectorOrigination. -#VoiceConnectorOriginationStatus: { - v1.#ResourceStatus - atProvider?: #VoiceConnectorOriginationObservation @go(AtProvider) -} - -// VoiceConnectorOrigination is the Schema for the VoiceConnectorOriginations API. Enable origination settings to control inbound calling to your SIP infrastructure. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VoiceConnectorOrigination: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.route) || (has(self.initProvider) && has(self.initProvider.route))",message="spec.forProvider.route is a required parameter" - spec: #VoiceConnectorOriginationSpec @go(Spec) - status?: #VoiceConnectorOriginationStatus @go(Status) -} - -// VoiceConnectorOriginationList contains a list of VoiceConnectorOriginations -#VoiceConnectorOriginationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VoiceConnectorOrigination] @go(Items,[]VoiceConnectorOrigination) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectorstreaming_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectorstreaming_types_go_gen.cue deleted file mode 100644 index 6907e55..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectorstreaming_types_go_gen.cue +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/chime/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MediaInsightsConfigurationInitParameters: { - // The media insights configuration that will be invoked by the Voice Connector. - configurationArn?: null | string @go(ConfigurationArn,*string) - - // When true, the media insights configuration is not enabled. Defaults to false. - disabled?: null | bool @go(Disabled,*bool) -} - -#MediaInsightsConfigurationObservation: { - // The media insights configuration that will be invoked by the Voice Connector. - configurationArn?: null | string @go(ConfigurationArn,*string) - - // When true, the media insights configuration is not enabled. Defaults to false. - disabled?: null | bool @go(Disabled,*bool) -} - -#MediaInsightsConfigurationParameters: { - // The media insights configuration that will be invoked by the Voice Connector. - // +kubebuilder:validation:Optional - configurationArn?: null | string @go(ConfigurationArn,*string) - - // When true, the media insights configuration is not enabled. Defaults to false. - // +kubebuilder:validation:Optional - disabled?: null | bool @go(Disabled,*bool) -} - -#VoiceConnectorStreamingInitParameters: { - // The retention period, in hours, for the Amazon Kinesis data. - dataRetention?: null | float64 @go(DataRetention,*float64) - - // When true, media streaming to Amazon Kinesis is turned off. Default: false - disabled?: null | bool @go(Disabled,*bool) - - // The media insights configuration. See media_insights_configuration. - mediaInsightsConfiguration?: [...#MediaInsightsConfigurationInitParameters] @go(MediaInsightsConfiguration,[]MediaInsightsConfigurationInitParameters) - - // The streaming notification targets. Valid Values: EventBridge | SNS | SQS - streamingNotificationTargets?: [...null | string] @go(StreamingNotificationTargets,[]*string) -} - -#VoiceConnectorStreamingObservation: { - // The retention period, in hours, for the Amazon Kinesis data. - dataRetention?: null | float64 @go(DataRetention,*float64) - - // When true, media streaming to Amazon Kinesis is turned off. Default: false - disabled?: null | bool @go(Disabled,*bool) - - // The Amazon Chime Voice Connector ID. - id?: null | string @go(ID,*string) - - // The media insights configuration. See media_insights_configuration. - mediaInsightsConfiguration?: [...#MediaInsightsConfigurationObservation] @go(MediaInsightsConfiguration,[]MediaInsightsConfigurationObservation) - - // The streaming notification targets. Valid Values: EventBridge | SNS | SQS - streamingNotificationTargets?: [...null | string] @go(StreamingNotificationTargets,[]*string) - - // The Amazon Chime Voice Connector ID. - voiceConnectorId?: null | string @go(VoiceConnectorID,*string) -} - -#VoiceConnectorStreamingParameters: { - // The retention period, in hours, for the Amazon Kinesis data. - // +kubebuilder:validation:Optional - dataRetention?: null | float64 @go(DataRetention,*float64) - - // When true, media streaming to Amazon Kinesis is turned off. Default: false - // +kubebuilder:validation:Optional - disabled?: null | bool @go(Disabled,*bool) - - // The media insights configuration. See media_insights_configuration. - // +kubebuilder:validation:Optional - mediaInsightsConfiguration?: [...#MediaInsightsConfigurationParameters] @go(MediaInsightsConfiguration,[]MediaInsightsConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The streaming notification targets. Valid Values: EventBridge | SNS | SQS - // +kubebuilder:validation:Optional - streamingNotificationTargets?: [...null | string] @go(StreamingNotificationTargets,[]*string) - - // The Amazon Chime Voice Connector ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/chime/v1beta1.VoiceConnector - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - voiceConnectorId?: null | string @go(VoiceConnectorID,*string) - - // Reference to a VoiceConnector in chime to populate voiceConnectorId. - // +kubebuilder:validation:Optional - voiceConnectorIdRef?: null | v1.#Reference @go(VoiceConnectorIDRef,*v1.Reference) - - // Selector for a VoiceConnector in chime to populate voiceConnectorId. - // +kubebuilder:validation:Optional - voiceConnectorIdSelector?: null | v1.#Selector @go(VoiceConnectorIDSelector,*v1.Selector) -} - -// VoiceConnectorStreamingSpec defines the desired state of VoiceConnectorStreaming -#VoiceConnectorStreamingSpec: { - v1.#ResourceSpec - forProvider: #VoiceConnectorStreamingParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VoiceConnectorStreamingInitParameters @go(InitProvider) -} - -// VoiceConnectorStreamingStatus defines the observed state of VoiceConnectorStreaming. -#VoiceConnectorStreamingStatus: { - v1.#ResourceStatus - atProvider?: #VoiceConnectorStreamingObservation @go(AtProvider) -} - -// VoiceConnectorStreaming is the Schema for the VoiceConnectorStreamings API. The streaming configuration associated with an Amazon Chime Voice Connector. Specifies whether media streaming is enabled for sending to Amazon Kinesis, and shows the retention period for the Amazon Kinesis data, in hours. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VoiceConnectorStreaming: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dataRetention) || (has(self.initProvider) && has(self.initProvider.dataRetention))",message="spec.forProvider.dataRetention is a required parameter" - spec: #VoiceConnectorStreamingSpec @go(Spec) - status?: #VoiceConnectorStreamingStatus @go(Status) -} - -// VoiceConnectorStreamingList contains a list of VoiceConnectorStreamings -#VoiceConnectorStreamingList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VoiceConnectorStreaming] @go(Items,[]VoiceConnectorStreaming) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectortermination_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectortermination_types_go_gen.cue deleted file mode 100644 index 980b698..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectortermination_types_go_gen.cue +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/chime/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VoiceConnectorTerminationInitParameters: { - // The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. - callingRegions?: [...null | string] @go(CallingRegions,[]*string) - - // The IP addresses allowed to make calls, in CIDR format. - cidrAllowList?: [...null | string] @go(CidrAllowList,[]*string) - - // The limit on calls per second. Max value based on account service quota. Default value of 1. - cpsLimit?: null | float64 @go(CpsLimit,*float64) - - // The default caller ID phone number. - defaultPhoneNumber?: null | string @go(DefaultPhoneNumber,*string) - - // When termination settings are disabled, outbound calls can not be made. - disabled?: null | bool @go(Disabled,*bool) -} - -#VoiceConnectorTerminationObservation: { - // The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. - callingRegions?: [...null | string] @go(CallingRegions,[]*string) - - // The IP addresses allowed to make calls, in CIDR format. - cidrAllowList?: [...null | string] @go(CidrAllowList,[]*string) - - // The limit on calls per second. Max value based on account service quota. Default value of 1. - cpsLimit?: null | float64 @go(CpsLimit,*float64) - - // The default caller ID phone number. - defaultPhoneNumber?: null | string @go(DefaultPhoneNumber,*string) - - // When termination settings are disabled, outbound calls can not be made. - disabled?: null | bool @go(Disabled,*bool) - - // The Amazon Chime Voice Connector ID. - id?: null | string @go(ID,*string) - - // The Amazon Chime Voice Connector ID. - voiceConnectorId?: null | string @go(VoiceConnectorID,*string) -} - -#VoiceConnectorTerminationParameters: { - // The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. - // +kubebuilder:validation:Optional - callingRegions?: [...null | string] @go(CallingRegions,[]*string) - - // The IP addresses allowed to make calls, in CIDR format. - // +kubebuilder:validation:Optional - cidrAllowList?: [...null | string] @go(CidrAllowList,[]*string) - - // The limit on calls per second. Max value based on account service quota. Default value of 1. - // +kubebuilder:validation:Optional - cpsLimit?: null | float64 @go(CpsLimit,*float64) - - // The default caller ID phone number. - // +kubebuilder:validation:Optional - defaultPhoneNumber?: null | string @go(DefaultPhoneNumber,*string) - - // When termination settings are disabled, outbound calls can not be made. - // +kubebuilder:validation:Optional - disabled?: null | bool @go(Disabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Chime Voice Connector ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/chime/v1beta1.VoiceConnector - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - voiceConnectorId?: null | string @go(VoiceConnectorID,*string) - - // Reference to a VoiceConnector in chime to populate voiceConnectorId. - // +kubebuilder:validation:Optional - voiceConnectorIdRef?: null | v1.#Reference @go(VoiceConnectorIDRef,*v1.Reference) - - // Selector for a VoiceConnector in chime to populate voiceConnectorId. - // +kubebuilder:validation:Optional - voiceConnectorIdSelector?: null | v1.#Selector @go(VoiceConnectorIDSelector,*v1.Selector) -} - -// VoiceConnectorTerminationSpec defines the desired state of VoiceConnectorTermination -#VoiceConnectorTerminationSpec: { - v1.#ResourceSpec - forProvider: #VoiceConnectorTerminationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VoiceConnectorTerminationInitParameters @go(InitProvider) -} - -// VoiceConnectorTerminationStatus defines the observed state of VoiceConnectorTermination. -#VoiceConnectorTerminationStatus: { - v1.#ResourceStatus - atProvider?: #VoiceConnectorTerminationObservation @go(AtProvider) -} - -// VoiceConnectorTermination is the Schema for the VoiceConnectorTerminations API. Enable Termination settings to control outbound calling from your SIP infrastructure. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VoiceConnectorTermination: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.callingRegions) || (has(self.initProvider) && has(self.initProvider.callingRegions))",message="spec.forProvider.callingRegions is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.cidrAllowList) || (has(self.initProvider) && has(self.initProvider.cidrAllowList))",message="spec.forProvider.cidrAllowList is a required parameter" - spec: #VoiceConnectorTerminationSpec @go(Spec) - status?: #VoiceConnectorTerminationStatus @go(Status) -} - -// VoiceConnectorTerminationList contains a list of VoiceConnectorTerminations -#VoiceConnectorTerminationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VoiceConnectorTermination] @go(Items,[]VoiceConnectorTermination) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectorterminationcredentials_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectorterminationcredentials_types_go_gen.cue deleted file mode 100644 index 4b4200b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/chime/v1beta1/zz_voiceconnectorterminationcredentials_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/chime/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CredentialsInitParameters: { - // RFC2617 compliant username associated with the SIP credentials. - username?: null | string @go(Username,*string) -} - -#CredentialsObservation: { - // RFC2617 compliant username associated with the SIP credentials. - username?: null | string @go(Username,*string) -} - -#CredentialsParameters: { - // RFC2617 compliant password associated with the SIP credentials. - // +kubebuilder:validation:Required - passwordSecretRef: v1.#SecretKeySelector @go(PasswordSecretRef) - - // RFC2617 compliant username associated with the SIP credentials. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -#VoiceConnectorTerminationCredentialsInitParameters: { - // List of termination SIP credentials. - credentials?: [...#CredentialsInitParameters] @go(Credentials,[]CredentialsInitParameters) -} - -#VoiceConnectorTerminationCredentialsObservation: { - // List of termination SIP credentials. - credentials?: [...#CredentialsObservation] @go(Credentials,[]CredentialsObservation) - - // Amazon Chime Voice Connector ID. - id?: null | string @go(ID,*string) - - // Amazon Chime Voice Connector ID. - voiceConnectorId?: null | string @go(VoiceConnectorID,*string) -} - -#VoiceConnectorTerminationCredentialsParameters: { - // List of termination SIP credentials. - // +kubebuilder:validation:Optional - credentials?: [...#CredentialsParameters] @go(Credentials,[]CredentialsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Chime Voice Connector ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/chime/v1beta1.VoiceConnector - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - voiceConnectorId?: null | string @go(VoiceConnectorID,*string) - - // Reference to a VoiceConnector in chime to populate voiceConnectorId. - // +kubebuilder:validation:Optional - voiceConnectorIdRef?: null | v1.#Reference @go(VoiceConnectorIDRef,*v1.Reference) - - // Selector for a VoiceConnector in chime to populate voiceConnectorId. - // +kubebuilder:validation:Optional - voiceConnectorIdSelector?: null | v1.#Selector @go(VoiceConnectorIDSelector,*v1.Selector) -} - -// VoiceConnectorTerminationCredentialsSpec defines the desired state of VoiceConnectorTerminationCredentials -#VoiceConnectorTerminationCredentialsSpec: { - v1.#ResourceSpec - forProvider: #VoiceConnectorTerminationCredentialsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VoiceConnectorTerminationCredentialsInitParameters @go(InitProvider) -} - -// VoiceConnectorTerminationCredentialsStatus defines the observed state of VoiceConnectorTerminationCredentials. -#VoiceConnectorTerminationCredentialsStatus: { - v1.#ResourceStatus - atProvider?: #VoiceConnectorTerminationCredentialsObservation @go(AtProvider) -} - -// VoiceConnectorTerminationCredentials is the Schema for the VoiceConnectorTerminationCredentialss API. Adds termination SIP credentials for the specified Amazon Chime Voice Connector. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VoiceConnectorTerminationCredentials: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.credentials) || (has(self.initProvider) && has(self.initProvider.credentials))",message="spec.forProvider.credentials is a required parameter" - spec: #VoiceConnectorTerminationCredentialsSpec @go(Spec) - status?: #VoiceConnectorTerminationCredentialsStatus @go(Status) -} - -// VoiceConnectorTerminationCredentialsList contains a list of VoiceConnectorTerminationCredentialss -#VoiceConnectorTerminationCredentialsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VoiceConnectorTerminationCredentials] @go(Items,[]VoiceConnectorTerminationCredentials) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloud9/v1beta1/zz_environmentec2_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloud9/v1beta1/zz_environmentec2_types_go_gen.cue deleted file mode 100644 index 7c107b1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloud9/v1beta1/zz_environmentec2_types_go_gen.cue +++ /dev/null @@ -1,177 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloud9/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EnvironmentEC2InitParameters: { - // The number of minutes until the running instance is shut down after the environment has last been used. - automaticStopTimeMinutes?: null | float64 @go(AutomaticStopTimeMinutes,*float64) - - // The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH and CONNECT_SSM. For more information please refer AWS documentation for Cloud9. - connectionType?: null | string @go(ConnectionType,*string) - - // The description of the environment. - description?: null | string @go(Description,*string) - - // The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. Valid values are - imageId?: null | string @go(ImageID,*string) - - // The type of instance to connect to the environment, e.g., t2.micro. - instanceType?: null | string @go(InstanceType,*string) - - // The name of the environment. - name?: null | string @go(Name,*string) - - // The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment's creator. - ownerArn?: null | string @go(OwnerArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EnvironmentEC2Observation: { - // The ARN of the environment. - arn?: null | string @go(Arn,*string) - - // The number of minutes until the running instance is shut down after the environment has last been used. - automaticStopTimeMinutes?: null | float64 @go(AutomaticStopTimeMinutes,*float64) - - // The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH and CONNECT_SSM. For more information please refer AWS documentation for Cloud9. - connectionType?: null | string @go(ConnectionType,*string) - - // The description of the environment. - description?: null | string @go(Description,*string) - - // The ID of the environment. - id?: null | string @go(ID,*string) - - // The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. Valid values are - imageId?: null | string @go(ImageID,*string) - - // The type of instance to connect to the environment, e.g., t2.micro. - instanceType?: null | string @go(InstanceType,*string) - - // The name of the environment. - name?: null | string @go(Name,*string) - - // The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment's creator. - ownerArn?: null | string @go(OwnerArn,*string) - - // The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance. - subnetId?: null | string @go(SubnetID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The type of the environment (e.g., ssh or ec2) - type?: null | string @go(Type,*string) -} - -#EnvironmentEC2Parameters: { - // The number of minutes until the running instance is shut down after the environment has last been used. - // +kubebuilder:validation:Optional - automaticStopTimeMinutes?: null | float64 @go(AutomaticStopTimeMinutes,*float64) - - // The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH and CONNECT_SSM. For more information please refer AWS documentation for Cloud9. - // +kubebuilder:validation:Optional - connectionType?: null | string @go(ConnectionType,*string) - - // The description of the environment. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. Valid values are - // +kubebuilder:validation:Optional - imageId?: null | string @go(ImageID,*string) - - // The type of instance to connect to the environment, e.g., t2.micro. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The name of the environment. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment's creator. - // +kubebuilder:validation:Optional - ownerArn?: null | string @go(OwnerArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// EnvironmentEC2Spec defines the desired state of EnvironmentEC2 -#EnvironmentEC2Spec: { - v1.#ResourceSpec - forProvider: #EnvironmentEC2Parameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EnvironmentEC2InitParameters @go(InitProvider) -} - -// EnvironmentEC2Status defines the observed state of EnvironmentEC2. -#EnvironmentEC2Status: { - v1.#ResourceStatus - atProvider?: #EnvironmentEC2Observation @go(AtProvider) -} - -// EnvironmentEC2 is the Schema for the EnvironmentEC2s API. Provides a Cloud9 EC2 Development Environment. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EnvironmentEC2: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceType) || (has(self.initProvider) && has(self.initProvider.instanceType))",message="spec.forProvider.instanceType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #EnvironmentEC2Spec @go(Spec) - status?: #EnvironmentEC2Status @go(Status) -} - -// EnvironmentEC2List contains a list of EnvironmentEC2s -#EnvironmentEC2List: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EnvironmentEC2] @go(Items,[]EnvironmentEC2) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloud9/v1beta1/zz_environmentmembership_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloud9/v1beta1/zz_environmentmembership_types_go_gen.cue deleted file mode 100644 index 60d3039..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloud9/v1beta1/zz_environmentmembership_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloud9/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EnvironmentMembershipInitParameters: { - // The type of environment member permissions you want to associate with this environment member. Allowed values are read-only and read-write . - permissions?: null | string @go(Permissions,*string) -} - -#EnvironmentMembershipObservation: { - // The ID of the environment that contains the environment member you want to add. - environmentId?: null | string @go(EnvironmentID,*string) - - // The ID of the environment membership. - id?: null | string @go(ID,*string) - - // The type of environment member permissions you want to associate with this environment member. Allowed values are read-only and read-write . - permissions?: null | string @go(Permissions,*string) - - // The Amazon Resource Name (ARN) of the environment member you want to add. - userArn?: null | string @go(UserArn,*string) - - // he user ID in AWS Identity and Access Management (AWS IAM) of the environment member. - userId?: null | string @go(UserID,*string) -} - -#EnvironmentMembershipParameters: { - // The ID of the environment that contains the environment member you want to add. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloud9/v1beta1.EnvironmentEC2 - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - environmentId?: null | string @go(EnvironmentID,*string) - - // Reference to a EnvironmentEC2 in cloud9 to populate environmentId. - // +kubebuilder:validation:Optional - environmentIdRef?: null | v1.#Reference @go(EnvironmentIDRef,*v1.Reference) - - // Selector for a EnvironmentEC2 in cloud9 to populate environmentId. - // +kubebuilder:validation:Optional - environmentIdSelector?: null | v1.#Selector @go(EnvironmentIDSelector,*v1.Selector) - - // The type of environment member permissions you want to associate with this environment member. Allowed values are read-only and read-write . - // +kubebuilder:validation:Optional - permissions?: null | string @go(Permissions,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of the environment member you want to add. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.User - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - userArn?: null | string @go(UserArn,*string) - - // Reference to a User in iam to populate userArn. - // +kubebuilder:validation:Optional - userArnRef?: null | v1.#Reference @go(UserArnRef,*v1.Reference) - - // Selector for a User in iam to populate userArn. - // +kubebuilder:validation:Optional - userArnSelector?: null | v1.#Selector @go(UserArnSelector,*v1.Selector) -} - -// EnvironmentMembershipSpec defines the desired state of EnvironmentMembership -#EnvironmentMembershipSpec: { - v1.#ResourceSpec - forProvider: #EnvironmentMembershipParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EnvironmentMembershipInitParameters @go(InitProvider) -} - -// EnvironmentMembershipStatus defines the observed state of EnvironmentMembership. -#EnvironmentMembershipStatus: { - v1.#ResourceStatus - atProvider?: #EnvironmentMembershipObservation @go(AtProvider) -} - -// EnvironmentMembership is the Schema for the EnvironmentMemberships API. Provides an environment member to an AWS Cloud9 development environment. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EnvironmentMembership: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.permissions) || (has(self.initProvider) && has(self.initProvider.permissions))",message="spec.forProvider.permissions is a required parameter" - spec: #EnvironmentMembershipSpec @go(Spec) - status?: #EnvironmentMembershipStatus @go(Status) -} - -// EnvironmentMembershipList contains a list of EnvironmentMemberships -#EnvironmentMembershipList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EnvironmentMembership] @go(Items,[]EnvironmentMembership) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloud9/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloud9/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 29c3a7e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloud9/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloud9/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=cloud9.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "cloud9.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudcontrol/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudcontrol/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 77602cc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudcontrol/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudcontrol/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=cloudcontrol.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "cloudcontrol.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudcontrol/v1beta1/zz_resource_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudcontrol/v1beta1/zz_resource_types_go_gen.cue deleted file mode 100644 index 1e034cb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudcontrol/v1beta1/zz_resource_types_go_gen.cue +++ /dev/null @@ -1,124 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudcontrol/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourceInitParameters: { - // JSON string matching the CloudFormation resource type schema with desired configuration. - desiredState?: null | string @go(DesiredState,*string) - - // CloudFormation resource type name. For example, AWS::EC2::VPC. - typeName?: null | string @go(TypeName,*string) - - // Identifier of the CloudFormation resource type version. - typeVersionId?: null | string @go(TypeVersionID,*string) -} - -#ResourceObservation: { - // JSON string matching the CloudFormation resource type schema with desired configuration. - desiredState?: null | string @go(DesiredState,*string) - id?: null | string @go(ID,*string) - - // JSON string matching the CloudFormation resource type schema with current configuration. Underlying attributes can be referenced via the jsondecode() function, for example, jsondecode(data.aws_cloudcontrolapi_resource.example.properties)["example"]. - properties?: null | string @go(Properties,*string) - - // Amazon Resource Name (ARN) of the IAM Role to assume for operations. - roleArn?: null | string @go(RoleArn,*string) - - // CloudFormation resource type name. For example, AWS::EC2::VPC. - typeName?: null | string @go(TypeName,*string) - - // Identifier of the CloudFormation resource type version. - typeVersionId?: null | string @go(TypeVersionID,*string) -} - -#ResourceParameters: { - // JSON string matching the CloudFormation resource type schema with desired configuration. - // +kubebuilder:validation:Optional - desiredState?: null | string @go(DesiredState,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Resource Name (ARN) of the IAM Role to assume for operations. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // JSON string of the CloudFormation resource type schema which is used for plan time validation where possible. Automatically fetched if not provided. In large scale environments with multiple resources using the same type_name, it is recommended to fetch the schema once via the aws_cloudformation_type data source and use this argument to reduce DescribeType API operation throttling. This value is marked sensitive only to prevent large plan differences from showing. - // +kubebuilder:validation:Optional - schemaSecretRef?: null | v1.#SecretKeySelector @go(SchemaSecretRef,*v1.SecretKeySelector) - - // CloudFormation resource type name. For example, AWS::EC2::VPC. - // +kubebuilder:validation:Optional - typeName?: null | string @go(TypeName,*string) - - // Identifier of the CloudFormation resource type version. - // +kubebuilder:validation:Optional - typeVersionId?: null | string @go(TypeVersionID,*string) -} - -// ResourceSpec defines the desired state of Resource -#ResourceSpec: { - v1.#ResourceSpec - forProvider: #ResourceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourceInitParameters @go(InitProvider) -} - -// ResourceStatus defines the observed state of Resource. -#ResourceStatus: { - v1.#ResourceStatus - atProvider?: #ResourceObservation @go(AtProvider) -} - -// Resource is the Schema for the Resources API. Manages a Cloud Control API Resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Resource: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.desiredState) || (has(self.initProvider) && has(self.initProvider.desiredState))",message="spec.forProvider.desiredState is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.typeName) || (has(self.initProvider) && has(self.initProvider.typeName))",message="spec.forProvider.typeName is a required parameter" - spec: #ResourceSpec @go(Spec) - status?: #ResourceStatus @go(Status) -} - -// ResourceList contains a list of Resources -#ResourceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Resource] @go(Items,[]Resource) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudformation/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudformation/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index ebb10b0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudformation/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudformation/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=cloudformation.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "cloudformation.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudformation/v1beta1/zz_stack_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudformation/v1beta1/zz_stack_types_go_gen.cue deleted file mode 100644 index eff1d96..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudformation/v1beta1/zz_stack_types_go_gen.cue +++ /dev/null @@ -1,224 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudformation/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#StackInitParameters: { - // A list of capabilities. - // Valid values: CAPABILITY_IAM, CAPABILITY_NAMED_IAM, or CAPABILITY_AUTO_EXPAND - capabilities?: [...null | string] @go(Capabilities,[]*string) - - // Set to true to disable rollback of the stack if stack creation failed. - // Conflicts with on_failure. - disableRollback?: null | bool @go(DisableRollback,*bool) - - // A list of SNS topic ARNs to publish stack related events. - notificationArns?: [...null | string] @go(NotificationArns,[]*string) - - // Action to be taken if stack creation fails. This must be - // one of: DO_NOTHING, ROLLBACK, or DELETE. Conflicts with disable_rollback. - onFailure?: null | string @go(OnFailure,*string) - - // A map of Parameter structures that specify input parameters for the stack. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Structure containing the stack policy body. - // Conflicts w/ policy_url. - policyBody?: null | string @go(PolicyBody,*string) - - // Location of a file containing the stack policy. - // Conflicts w/ policy_body. - policyUrl?: null | string @go(PolicyURL,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Structure containing the template body (max size: 51,200 bytes). - templateBody?: null | string @go(TemplateBody,*string) - - // Location of a file containing the template body (max size: 460,800 bytes). - templateUrl?: null | string @go(TemplateURL,*string) - - // The amount of time that can pass before the stack status becomes CREATE_FAILED. - timeoutInMinutes?: null | float64 @go(TimeoutInMinutes,*float64) -} - -#StackObservation: { - // A list of capabilities. - // Valid values: CAPABILITY_IAM, CAPABILITY_NAMED_IAM, or CAPABILITY_AUTO_EXPAND - capabilities?: [...null | string] @go(Capabilities,[]*string) - - // Set to true to disable rollback of the stack if stack creation failed. - // Conflicts with on_failure. - disableRollback?: null | bool @go(DisableRollback,*bool) - - // The ARN of an IAM role that AWS CloudFormation assumes to create the stack. If you don't specify a value, AWS CloudFormation uses the role that was previously associated with the stack. If no role is available, AWS CloudFormation uses a temporary session that is generated from your user credentials. - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // A unique identifier of the stack. - id?: null | string @go(ID,*string) - - // Stack name. - name?: null | string @go(Name,*string) - - // A list of SNS topic ARNs to publish stack related events. - notificationArns?: [...null | string] @go(NotificationArns,[]*string) - - // Action to be taken if stack creation fails. This must be - // one of: DO_NOTHING, ROLLBACK, or DELETE. Conflicts with disable_rollback. - onFailure?: null | string @go(OnFailure,*string) - - // A map of outputs from the stack. - outputs?: {[string]: null | string} @go(Outputs,map[string]*string) - - // A map of Parameter structures that specify input parameters for the stack. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Structure containing the stack policy body. - // Conflicts w/ policy_url. - policyBody?: null | string @go(PolicyBody,*string) - - // Location of a file containing the stack policy. - // Conflicts w/ policy_body. - policyUrl?: null | string @go(PolicyURL,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Structure containing the template body (max size: 51,200 bytes). - templateBody?: null | string @go(TemplateBody,*string) - - // Location of a file containing the template body (max size: 460,800 bytes). - templateUrl?: null | string @go(TemplateURL,*string) - - // The amount of time that can pass before the stack status becomes CREATE_FAILED. - timeoutInMinutes?: null | float64 @go(TimeoutInMinutes,*float64) -} - -#StackParameters: { - // A list of capabilities. - // Valid values: CAPABILITY_IAM, CAPABILITY_NAMED_IAM, or CAPABILITY_AUTO_EXPAND - // +kubebuilder:validation:Optional - capabilities?: [...null | string] @go(Capabilities,[]*string) - - // Set to true to disable rollback of the stack if stack creation failed. - // Conflicts with on_failure. - // +kubebuilder:validation:Optional - disableRollback?: null | bool @go(DisableRollback,*bool) - - // The ARN of an IAM role that AWS CloudFormation assumes to create the stack. If you don't specify a value, AWS CloudFormation uses the role that was previously associated with the stack. If no role is available, AWS CloudFormation uses a temporary session that is generated from your user credentials. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // Reference to a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnRef?: null | v1.#Reference @go(IAMRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnSelector?: null | v1.#Selector @go(IAMRoleArnSelector,*v1.Selector) - - // Stack name. - // +kubebuilder:validation:Required - name?: null | string @go(Name,*string) - - // A list of SNS topic ARNs to publish stack related events. - // +kubebuilder:validation:Optional - notificationArns?: [...null | string] @go(NotificationArns,[]*string) - - // Action to be taken if stack creation fails. This must be - // one of: DO_NOTHING, ROLLBACK, or DELETE. Conflicts with disable_rollback. - // +kubebuilder:validation:Optional - onFailure?: null | string @go(OnFailure,*string) - - // A map of Parameter structures that specify input parameters for the stack. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Structure containing the stack policy body. - // Conflicts w/ policy_url. - // +kubebuilder:validation:Optional - policyBody?: null | string @go(PolicyBody,*string) - - // Location of a file containing the stack policy. - // Conflicts w/ policy_body. - // +kubebuilder:validation:Optional - policyUrl?: null | string @go(PolicyURL,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Structure containing the template body (max size: 51,200 bytes). - // +kubebuilder:validation:Optional - templateBody?: null | string @go(TemplateBody,*string) - - // Location of a file containing the template body (max size: 460,800 bytes). - // +kubebuilder:validation:Optional - templateUrl?: null | string @go(TemplateURL,*string) - - // The amount of time that can pass before the stack status becomes CREATE_FAILED. - // +kubebuilder:validation:Optional - timeoutInMinutes?: null | float64 @go(TimeoutInMinutes,*float64) -} - -// StackSpec defines the desired state of Stack -#StackSpec: { - v1.#ResourceSpec - forProvider: #StackParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StackInitParameters @go(InitProvider) -} - -// StackStatus defines the observed state of Stack. -#StackStatus: { - v1.#ResourceStatus - atProvider?: #StackObservation @go(AtProvider) -} - -// Stack is the Schema for the Stacks API. Provides a CloudFormation Stack resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Stack: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #StackSpec @go(Spec) - status?: #StackStatus @go(Status) -} - -// StackList contains a list of Stacks -#StackList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Stack] @go(Items,[]Stack) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudformation/v1beta1/zz_stackset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudformation/v1beta1/zz_stackset_types_go_gen.cue deleted file mode 100644 index 7524184..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudformation/v1beta1/zz_stackset_types_go_gen.cue +++ /dev/null @@ -1,297 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudformation/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AutoDeploymentInitParameters: { - // Whether or not auto-deployment is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Whether or not to retain stacks when the account is removed. - retainStacksOnAccountRemoval?: null | bool @go(RetainStacksOnAccountRemoval,*bool) -} - -#AutoDeploymentObservation: { - // Whether or not auto-deployment is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Whether or not to retain stacks when the account is removed. - retainStacksOnAccountRemoval?: null | bool @go(RetainStacksOnAccountRemoval,*bool) -} - -#AutoDeploymentParameters: { - // Whether or not auto-deployment is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Whether or not to retain stacks when the account is removed. - // +kubebuilder:validation:Optional - retainStacksOnAccountRemoval?: null | bool @go(RetainStacksOnAccountRemoval,*bool) -} - -#OperationPreferencesInitParameters: { - // The number of accounts, per Region, for which this operation can fail before AWS CloudFormation stops the operation in that Region. - failureToleranceCount?: null | float64 @go(FailureToleranceCount,*float64) - - // The percentage of accounts, per Region, for which this stack operation can fail before AWS CloudFormation stops the operation in that Region. - failureTolerancePercentage?: null | float64 @go(FailureTolerancePercentage,*float64) - - // The maximum number of accounts in which to perform this operation at one time. - maxConcurrentCount?: null | float64 @go(MaxConcurrentCount,*float64) - - // The maximum percentage of accounts in which to perform this operation at one time. - maxConcurrentPercentage?: null | float64 @go(MaxConcurrentPercentage,*float64) - - // The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time. - regionConcurrencyType?: null | string @go(RegionConcurrencyType,*string) - - // The order of the Regions in where you want to perform the stack operation. - regionOrder?: [...null | string] @go(RegionOrder,[]*string) -} - -#OperationPreferencesObservation: { - // The number of accounts, per Region, for which this operation can fail before AWS CloudFormation stops the operation in that Region. - failureToleranceCount?: null | float64 @go(FailureToleranceCount,*float64) - - // The percentage of accounts, per Region, for which this stack operation can fail before AWS CloudFormation stops the operation in that Region. - failureTolerancePercentage?: null | float64 @go(FailureTolerancePercentage,*float64) - - // The maximum number of accounts in which to perform this operation at one time. - maxConcurrentCount?: null | float64 @go(MaxConcurrentCount,*float64) - - // The maximum percentage of accounts in which to perform this operation at one time. - maxConcurrentPercentage?: null | float64 @go(MaxConcurrentPercentage,*float64) - - // The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time. - regionConcurrencyType?: null | string @go(RegionConcurrencyType,*string) - - // The order of the Regions in where you want to perform the stack operation. - regionOrder?: [...null | string] @go(RegionOrder,[]*string) -} - -#OperationPreferencesParameters: { - // The number of accounts, per Region, for which this operation can fail before AWS CloudFormation stops the operation in that Region. - // +kubebuilder:validation:Optional - failureToleranceCount?: null | float64 @go(FailureToleranceCount,*float64) - - // The percentage of accounts, per Region, for which this stack operation can fail before AWS CloudFormation stops the operation in that Region. - // +kubebuilder:validation:Optional - failureTolerancePercentage?: null | float64 @go(FailureTolerancePercentage,*float64) - - // The maximum number of accounts in which to perform this operation at one time. - // +kubebuilder:validation:Optional - maxConcurrentCount?: null | float64 @go(MaxConcurrentCount,*float64) - - // The maximum percentage of accounts in which to perform this operation at one time. - // +kubebuilder:validation:Optional - maxConcurrentPercentage?: null | float64 @go(MaxConcurrentPercentage,*float64) - - // The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time. - // +kubebuilder:validation:Optional - regionConcurrencyType?: null | string @go(RegionConcurrencyType,*string) - - // The order of the Regions in where you want to perform the stack operation. - // +kubebuilder:validation:Optional - regionOrder?: [...null | string] @go(RegionOrder,[]*string) -} - -#StackSetInitParameters: { - // Configuration block containing the auto-deployment model for your StackSet. This can only be defined when using the SERVICE_MANAGED permission model. - autoDeployment?: [...#AutoDeploymentInitParameters] @go(AutoDeployment,[]AutoDeploymentInitParameters) - - // Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. Valid values: SELF (default), DELEGATED_ADMIN. - callAs?: null | string @go(CallAs,*string) - - // A list of capabilities. Valid values: CAPABILITY_IAM, CAPABILITY_NAMED_IAM, CAPABILITY_AUTO_EXPAND. - capabilities?: [...null | string] @go(Capabilities,[]*string) - - // Description of the StackSet. - description?: null | string @go(Description,*string) - - // Name of the IAM Role in all target accounts for StackSet operations. Defaults to AWSCloudFormationStackSetExecutionRole when using the SELF_MANAGED permission model. This should not be defined when using the SERVICE_MANAGED permission model. - executionRoleName?: null | string @go(ExecutionRoleName,*string) - - // Preferences for how AWS CloudFormation performs a stack set update. - operationPreferences?: [...#OperationPreferencesInitParameters] @go(OperationPreferences,[]OperationPreferencesInitParameters) - - // Key-value map of input parameters for the StackSet template. All template parameters, including those with a Default, must be configured or ignored with lifecycle configuration block ignore_changes argument. All NoEcho template parameters must be ignored with the lifecycle configuration block ignore_changes argument. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Describes how the IAM roles required for your StackSet are created. Valid values: SELF_MANAGED (default), SERVICE_MANAGED. - permissionModel?: null | string @go(PermissionModel,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // String containing the CloudFormation template body. Maximum size: 51,200 bytes. Conflicts with template_url. - templateBody?: null | string @go(TemplateBody,*string) - - // String containing the location of a file containing the CloudFormation template body. The URL must point to a template that is located in an Amazon S3 bucket. Maximum location file size: 460,800 bytes. Conflicts with template_body. - templateUrl?: null | string @go(TemplateURL,*string) -} - -#StackSetObservation: { - // Amazon Resource Number (ARN) of the IAM Role in the administrator account. This must be defined when using the SELF_MANAGED permission model. - administrationRoleArn?: null | string @go(AdministrationRoleArn,*string) - - // Amazon Resource Name (ARN) of the StackSet. - arn?: null | string @go(Arn,*string) - - // Configuration block containing the auto-deployment model for your StackSet. This can only be defined when using the SERVICE_MANAGED permission model. - autoDeployment?: [...#AutoDeploymentObservation] @go(AutoDeployment,[]AutoDeploymentObservation) - - // Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. Valid values: SELF (default), DELEGATED_ADMIN. - callAs?: null | string @go(CallAs,*string) - - // A list of capabilities. Valid values: CAPABILITY_IAM, CAPABILITY_NAMED_IAM, CAPABILITY_AUTO_EXPAND. - capabilities?: [...null | string] @go(Capabilities,[]*string) - - // Description of the StackSet. - description?: null | string @go(Description,*string) - - // Name of the IAM Role in all target accounts for StackSet operations. Defaults to AWSCloudFormationStackSetExecutionRole when using the SELF_MANAGED permission model. This should not be defined when using the SERVICE_MANAGED permission model. - executionRoleName?: null | string @go(ExecutionRoleName,*string) - - // Name of the StackSet. - id?: null | string @go(ID,*string) - - // Preferences for how AWS CloudFormation performs a stack set update. - operationPreferences?: [...#OperationPreferencesObservation] @go(OperationPreferences,[]OperationPreferencesObservation) - - // Key-value map of input parameters for the StackSet template. All template parameters, including those with a Default, must be configured or ignored with lifecycle configuration block ignore_changes argument. All NoEcho template parameters must be ignored with the lifecycle configuration block ignore_changes argument. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Describes how the IAM roles required for your StackSet are created. Valid values: SELF_MANAGED (default), SERVICE_MANAGED. - permissionModel?: null | string @go(PermissionModel,*string) - - // Unique identifier of the StackSet. - stackSetId?: null | string @go(StackSetID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // String containing the CloudFormation template body. Maximum size: 51,200 bytes. Conflicts with template_url. - templateBody?: null | string @go(TemplateBody,*string) - - // String containing the location of a file containing the CloudFormation template body. The URL must point to a template that is located in an Amazon S3 bucket. Maximum location file size: 460,800 bytes. Conflicts with template_body. - templateUrl?: null | string @go(TemplateURL,*string) -} - -#StackSetParameters: { - // Amazon Resource Number (ARN) of the IAM Role in the administrator account. This must be defined when using the SELF_MANAGED permission model. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - administrationRoleArn?: null | string @go(AdministrationRoleArn,*string) - - // Reference to a Role in iam to populate administrationRoleArn. - // +kubebuilder:validation:Optional - administrationRoleArnRef?: null | v1.#Reference @go(AdministrationRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate administrationRoleArn. - // +kubebuilder:validation:Optional - administrationRoleArnSelector?: null | v1.#Selector @go(AdministrationRoleArnSelector,*v1.Selector) - - // Configuration block containing the auto-deployment model for your StackSet. This can only be defined when using the SERVICE_MANAGED permission model. - // +kubebuilder:validation:Optional - autoDeployment?: [...#AutoDeploymentParameters] @go(AutoDeployment,[]AutoDeploymentParameters) - - // Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. Valid values: SELF (default), DELEGATED_ADMIN. - // +kubebuilder:validation:Optional - callAs?: null | string @go(CallAs,*string) - - // A list of capabilities. Valid values: CAPABILITY_IAM, CAPABILITY_NAMED_IAM, CAPABILITY_AUTO_EXPAND. - // +kubebuilder:validation:Optional - capabilities?: [...null | string] @go(Capabilities,[]*string) - - // Description of the StackSet. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Name of the IAM Role in all target accounts for StackSet operations. Defaults to AWSCloudFormationStackSetExecutionRole when using the SELF_MANAGED permission model. This should not be defined when using the SERVICE_MANAGED permission model. - // +kubebuilder:validation:Optional - executionRoleName?: null | string @go(ExecutionRoleName,*string) - - // Preferences for how AWS CloudFormation performs a stack set update. - // +kubebuilder:validation:Optional - operationPreferences?: [...#OperationPreferencesParameters] @go(OperationPreferences,[]OperationPreferencesParameters) - - // Key-value map of input parameters for the StackSet template. All template parameters, including those with a Default, must be configured or ignored with lifecycle configuration block ignore_changes argument. All NoEcho template parameters must be ignored with the lifecycle configuration block ignore_changes argument. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Describes how the IAM roles required for your StackSet are created. Valid values: SELF_MANAGED (default), SERVICE_MANAGED. - // +kubebuilder:validation:Optional - permissionModel?: null | string @go(PermissionModel,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // String containing the CloudFormation template body. Maximum size: 51,200 bytes. Conflicts with template_url. - // +kubebuilder:validation:Optional - templateBody?: null | string @go(TemplateBody,*string) - - // String containing the location of a file containing the CloudFormation template body. The URL must point to a template that is located in an Amazon S3 bucket. Maximum location file size: 460,800 bytes. Conflicts with template_body. - // +kubebuilder:validation:Optional - templateUrl?: null | string @go(TemplateURL,*string) -} - -// StackSetSpec defines the desired state of StackSet -#StackSetSpec: { - v1.#ResourceSpec - forProvider: #StackSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StackSetInitParameters @go(InitProvider) -} - -// StackSetStatus defines the observed state of StackSet. -#StackSetStatus: { - v1.#ResourceStatus - atProvider?: #StackSetObservation @go(AtProvider) -} - -// StackSet is the Schema for the StackSets API. Manages a CloudFormation StackSet. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#StackSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #StackSetSpec @go(Spec) - status?: #StackSetStatus @go(Status) -} - -// StackSetList contains a list of StackSets -#StackSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#StackSet] @go(Items,[]StackSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_cachepolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_cachepolicy_types_go_gen.cue deleted file mode 100644 index 718cd3d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_cachepolicy_types_go_gen.cue +++ /dev/null @@ -1,317 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CachePolicyInitParameters: { - // A comment to describe the cache policy. - comment?: null | string @go(Comment,*string) - - // The default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. - defaultTtl?: null | float64 @go(DefaultTTL,*float64) - - // The maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. - maxTtl?: null | float64 @go(MaxTTL,*float64) - - // The minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. - minTtl?: null | float64 @go(MinTTL,*float64) - - // A unique name to identify the cache policy. - name?: null | string @go(Name,*string) - - // The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information. - parametersInCacheKeyAndForwardedToOrigin?: [...#ParametersInCacheKeyAndForwardedToOriginInitParameters] @go(ParametersInCacheKeyAndForwardedToOrigin,[]ParametersInCacheKeyAndForwardedToOriginInitParameters) -} - -#CachePolicyObservation: { - // A comment to describe the cache policy. - comment?: null | string @go(Comment,*string) - - // The default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. - defaultTtl?: null | float64 @go(DefaultTTL,*float64) - - // The current version of the cache policy. - etag?: null | string @go(Etag,*string) - - // The identifier for the cache policy. - id?: null | string @go(ID,*string) - - // The maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. - maxTtl?: null | float64 @go(MaxTTL,*float64) - - // The minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. - minTtl?: null | float64 @go(MinTTL,*float64) - - // A unique name to identify the cache policy. - name?: null | string @go(Name,*string) - - // The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information. - parametersInCacheKeyAndForwardedToOrigin?: [...#ParametersInCacheKeyAndForwardedToOriginObservation] @go(ParametersInCacheKeyAndForwardedToOrigin,[]ParametersInCacheKeyAndForwardedToOriginObservation) -} - -#CachePolicyParameters: { - // A comment to describe the cache policy. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // The default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. - // +kubebuilder:validation:Optional - defaultTtl?: null | float64 @go(DefaultTTL,*float64) - - // The maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. - // +kubebuilder:validation:Optional - maxTtl?: null | float64 @go(MaxTTL,*float64) - - // The minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. - // +kubebuilder:validation:Optional - minTtl?: null | float64 @go(MinTTL,*float64) - - // A unique name to identify the cache policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information. - // +kubebuilder:validation:Optional - parametersInCacheKeyAndForwardedToOrigin?: [...#ParametersInCacheKeyAndForwardedToOriginParameters] @go(ParametersInCacheKeyAndForwardedToOrigin,[]ParametersInCacheKeyAndForwardedToOriginParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#CookiesConfigInitParameters: { - // Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all. - cookieBehavior?: null | string @go(CookieBehavior,*string) - - // Object that contains a list of cookie names. See Items for more information. - cookies?: [...#CookiesInitParameters] @go(Cookies,[]CookiesInitParameters) -} - -#CookiesConfigObservation: { - // Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all. - cookieBehavior?: null | string @go(CookieBehavior,*string) - - // Object that contains a list of cookie names. See Items for more information. - cookies?: [...#CookiesObservation] @go(Cookies,[]CookiesObservation) -} - -#CookiesConfigParameters: { - // Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all. - // +kubebuilder:validation:Optional - cookieBehavior?: null | string @go(CookieBehavior,*string) - - // Object that contains a list of cookie names. See Items for more information. - // +kubebuilder:validation:Optional - cookies?: [...#CookiesParameters] @go(Cookies,[]CookiesParameters) -} - -#CookiesInitParameters: { - // A list of item names (cookies, headers, or query strings). - items?: [...null | string] @go(Items,[]*string) -} - -#CookiesObservation: { - // A list of item names (cookies, headers, or query strings). - items?: [...null | string] @go(Items,[]*string) -} - -#CookiesParameters: { - // A list of item names (cookies, headers, or query strings). - // +kubebuilder:validation:Optional - items?: [...null | string] @go(Items,[]*string) -} - -#HeadersConfigInitParameters: { - // Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist. - headerBehavior?: null | string @go(HeaderBehavior,*string) - - // Object that contains a list of header names. See Items for more information. - headers?: [...#HeadersInitParameters] @go(Headers,[]HeadersInitParameters) -} - -#HeadersConfigObservation: { - // Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist. - headerBehavior?: null | string @go(HeaderBehavior,*string) - - // Object that contains a list of header names. See Items for more information. - headers?: [...#HeadersObservation] @go(Headers,[]HeadersObservation) -} - -#HeadersConfigParameters: { - // Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist. - // +kubebuilder:validation:Optional - headerBehavior?: null | string @go(HeaderBehavior,*string) - - // Object that contains a list of header names. See Items for more information. - // +kubebuilder:validation:Optional - headers?: [...#HeadersParameters] @go(Headers,[]HeadersParameters) -} - -#HeadersInitParameters: { - // A list of item names (cookies, headers, or query strings). - items?: [...null | string] @go(Items,[]*string) -} - -#HeadersObservation: { - // A list of item names (cookies, headers, or query strings). - items?: [...null | string] @go(Items,[]*string) -} - -#HeadersParameters: { - // A list of item names (cookies, headers, or query strings). - // +kubebuilder:validation:Optional - items?: [...null | string] @go(Items,[]*string) -} - -#ParametersInCacheKeyAndForwardedToOriginInitParameters: { - // Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information. - cookiesConfig?: [...#CookiesConfigInitParameters] @go(CookiesConfig,[]CookiesConfigInitParameters) - - // A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin. - enableAcceptEncodingBrotli?: null | bool @go(EnableAcceptEncodingBrotli,*bool) - - // A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin. - enableAcceptEncodingGzip?: null | bool @go(EnableAcceptEncodingGzip,*bool) - - // Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information. - headersConfig?: [...#HeadersConfigInitParameters] @go(HeadersConfig,[]HeadersConfigInitParameters) - - // Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information. - queryStringsConfig?: [...#QueryStringsConfigInitParameters] @go(QueryStringsConfig,[]QueryStringsConfigInitParameters) -} - -#ParametersInCacheKeyAndForwardedToOriginObservation: { - // Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information. - cookiesConfig?: [...#CookiesConfigObservation] @go(CookiesConfig,[]CookiesConfigObservation) - - // A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin. - enableAcceptEncodingBrotli?: null | bool @go(EnableAcceptEncodingBrotli,*bool) - - // A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin. - enableAcceptEncodingGzip?: null | bool @go(EnableAcceptEncodingGzip,*bool) - - // Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information. - headersConfig?: [...#HeadersConfigObservation] @go(HeadersConfig,[]HeadersConfigObservation) - - // Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information. - queryStringsConfig?: [...#QueryStringsConfigObservation] @go(QueryStringsConfig,[]QueryStringsConfigObservation) -} - -#ParametersInCacheKeyAndForwardedToOriginParameters: { - // Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information. - // +kubebuilder:validation:Optional - cookiesConfig: [...#CookiesConfigParameters] @go(CookiesConfig,[]CookiesConfigParameters) - - // A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin. - // +kubebuilder:validation:Optional - enableAcceptEncodingBrotli?: null | bool @go(EnableAcceptEncodingBrotli,*bool) - - // A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin. - // +kubebuilder:validation:Optional - enableAcceptEncodingGzip?: null | bool @go(EnableAcceptEncodingGzip,*bool) - - // Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information. - // +kubebuilder:validation:Optional - headersConfig: [...#HeadersConfigParameters] @go(HeadersConfig,[]HeadersConfigParameters) - - // Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information. - // +kubebuilder:validation:Optional - queryStringsConfig: [...#QueryStringsConfigParameters] @go(QueryStringsConfig,[]QueryStringsConfigParameters) -} - -#QueryStringsConfigInitParameters: { - // Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all. - queryStringBehavior?: null | string @go(QueryStringBehavior,*string) - - // Object that contains a list of query string names. See Items for more information. - queryStrings?: [...#QueryStringsInitParameters] @go(QueryStrings,[]QueryStringsInitParameters) -} - -#QueryStringsConfigObservation: { - // Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all. - queryStringBehavior?: null | string @go(QueryStringBehavior,*string) - - // Object that contains a list of query string names. See Items for more information. - queryStrings?: [...#QueryStringsObservation] @go(QueryStrings,[]QueryStringsObservation) -} - -#QueryStringsConfigParameters: { - // Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are none, whitelist, allExcept, all. - // +kubebuilder:validation:Optional - queryStringBehavior?: null | string @go(QueryStringBehavior,*string) - - // Object that contains a list of query string names. See Items for more information. - // +kubebuilder:validation:Optional - queryStrings?: [...#QueryStringsParameters] @go(QueryStrings,[]QueryStringsParameters) -} - -#QueryStringsInitParameters: { - // A list of item names (cookies, headers, or query strings). - items?: [...null | string] @go(Items,[]*string) -} - -#QueryStringsObservation: { - // A list of item names (cookies, headers, or query strings). - items?: [...null | string] @go(Items,[]*string) -} - -#QueryStringsParameters: { - // A list of item names (cookies, headers, or query strings). - // +kubebuilder:validation:Optional - items?: [...null | string] @go(Items,[]*string) -} - -// CachePolicySpec defines the desired state of CachePolicy -#CachePolicySpec: { - v1.#ResourceSpec - forProvider: #CachePolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CachePolicyInitParameters @go(InitProvider) -} - -// CachePolicyStatus defines the observed state of CachePolicy. -#CachePolicyStatus: { - v1.#ResourceStatus - atProvider?: #CachePolicyObservation @go(AtProvider) -} - -// CachePolicy is the Schema for the CachePolicys API. Provides a cache policy for a CloudFront ditribution. When it’s attached to a cache behavior, the cache policy determines the values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer. It also determines the default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CachePolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.parametersInCacheKeyAndForwardedToOrigin) || (has(self.initProvider) && has(self.initProvider.parametersInCacheKeyAndForwardedToOrigin))",message="spec.forProvider.parametersInCacheKeyAndForwardedToOrigin is a required parameter" - spec: #CachePolicySpec @go(Spec) - status?: #CachePolicyStatus @go(Status) -} - -// CachePolicyList contains a list of CachePolicys -#CachePolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CachePolicy] @go(Items,[]CachePolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_distribution_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_distribution_types_go_gen.cue deleted file mode 100644 index 50d2a93..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_distribution_types_go_gen.cue +++ /dev/null @@ -1,1530 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CustomErrorResponseInitParameters: { - // Minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. - errorCachingMinTtl?: null | float64 @go(ErrorCachingMinTTL,*float64) - - // 4xx or 5xx HTTP status code that you want to customize. - errorCode?: null | float64 @go(ErrorCode,*float64) - - // HTTP status code that you want CloudFront to return with the custom error page to the viewer. - responseCode?: null | float64 @go(ResponseCode,*float64) - - // Path of the custom error page (for example, /custom_404.html). - responsePagePath?: null | string @go(ResponsePagePath,*string) -} - -#CustomErrorResponseObservation: { - // Minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. - errorCachingMinTtl?: null | float64 @go(ErrorCachingMinTTL,*float64) - - // 4xx or 5xx HTTP status code that you want to customize. - errorCode?: null | float64 @go(ErrorCode,*float64) - - // HTTP status code that you want CloudFront to return with the custom error page to the viewer. - responseCode?: null | float64 @go(ResponseCode,*float64) - - // Path of the custom error page (for example, /custom_404.html). - responsePagePath?: null | string @go(ResponsePagePath,*string) -} - -#CustomErrorResponseParameters: { - // Minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. - // +kubebuilder:validation:Optional - errorCachingMinTtl?: null | float64 @go(ErrorCachingMinTTL,*float64) - - // 4xx or 5xx HTTP status code that you want to customize. - // +kubebuilder:validation:Optional - errorCode?: null | float64 @go(ErrorCode,*float64) - - // HTTP status code that you want CloudFront to return with the custom error page to the viewer. - // +kubebuilder:validation:Optional - responseCode?: null | float64 @go(ResponseCode,*float64) - - // Path of the custom error page (for example, /custom_404.html). - // +kubebuilder:validation:Optional - responsePagePath?: null | string @go(ResponsePagePath,*string) -} - -#CustomHeaderInitParameters: { - name?: null | string @go(Name,*string) - value?: null | string @go(Value,*string) -} - -#CustomHeaderObservation: { - name?: null | string @go(Name,*string) - value?: null | string @go(Value,*string) -} - -#CustomHeaderParameters: { - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#CustomOriginConfigInitParameters: { - // HTTP port the custom origin listens on. - httpPort?: null | float64 @go(HTTPPort,*float64) - - // HTTPS port the custom origin listens on. - httpsPort?: null | float64 @go(HTTPSPort,*float64) - - // The Custom KeepAlive timeout, in seconds. By default, AWS enforces a limit of 60. But you can request an increase. - originKeepaliveTimeout?: null | float64 @go(OriginKeepaliveTimeout,*float64) - - // Origin protocol policy to apply to your origin. One of http-only, https-only, or match-viewer. - originProtocolPolicy?: null | string @go(OriginProtocolPolicy,*string) - - // The Custom Read timeout, in seconds. By default, AWS enforces a limit of 60. But you can request an increase. - originReadTimeout?: null | float64 @go(OriginReadTimeout,*float64) - - // SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS. A list of one or more of SSLv3, TLSv1, TLSv1.1, and TLSv1.2. - originSslProtocols?: [...null | string] @go(OriginSSLProtocols,[]*string) -} - -#CustomOriginConfigObservation: { - // HTTP port the custom origin listens on. - httpPort?: null | float64 @go(HTTPPort,*float64) - - // HTTPS port the custom origin listens on. - httpsPort?: null | float64 @go(HTTPSPort,*float64) - - // The Custom KeepAlive timeout, in seconds. By default, AWS enforces a limit of 60. But you can request an increase. - originKeepaliveTimeout?: null | float64 @go(OriginKeepaliveTimeout,*float64) - - // Origin protocol policy to apply to your origin. One of http-only, https-only, or match-viewer. - originProtocolPolicy?: null | string @go(OriginProtocolPolicy,*string) - - // The Custom Read timeout, in seconds. By default, AWS enforces a limit of 60. But you can request an increase. - originReadTimeout?: null | float64 @go(OriginReadTimeout,*float64) - - // SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS. A list of one or more of SSLv3, TLSv1, TLSv1.1, and TLSv1.2. - originSslProtocols?: [...null | string] @go(OriginSSLProtocols,[]*string) -} - -#CustomOriginConfigParameters: { - // HTTP port the custom origin listens on. - // +kubebuilder:validation:Optional - httpPort?: null | float64 @go(HTTPPort,*float64) - - // HTTPS port the custom origin listens on. - // +kubebuilder:validation:Optional - httpsPort?: null | float64 @go(HTTPSPort,*float64) - - // The Custom KeepAlive timeout, in seconds. By default, AWS enforces a limit of 60. But you can request an increase. - // +kubebuilder:validation:Optional - originKeepaliveTimeout?: null | float64 @go(OriginKeepaliveTimeout,*float64) - - // Origin protocol policy to apply to your origin. One of http-only, https-only, or match-viewer. - // +kubebuilder:validation:Optional - originProtocolPolicy?: null | string @go(OriginProtocolPolicy,*string) - - // The Custom Read timeout, in seconds. By default, AWS enforces a limit of 60. But you can request an increase. - // +kubebuilder:validation:Optional - originReadTimeout?: null | float64 @go(OriginReadTimeout,*float64) - - // SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS. A list of one or more of SSLv3, TLSv1, TLSv1.1, and TLSv1.2. - // +kubebuilder:validation:Optional - originSslProtocols: [...null | string] @go(OriginSSLProtocols,[]*string) -} - -#DefaultCacheBehaviorInitParameters: { - // Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. - allowedMethods?: [...null | string] @go(AllowedMethods,[]*string) - - // Unique identifier of the cache policy that is attached to the cache behavior. If configuring the default_cache_behavior either cache_policy_id or forwarded_values must be set. - cachePolicyId?: null | string @go(CachePolicyID,*string) - - // Controls whether CloudFront caches the response to requests using the specified HTTP methods. - cachedMethods?: [...null | string] @go(CachedMethods,[]*string) - - // Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header (default: false). - compress?: null | bool @go(Compress,*bool) - - // Default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request in the absence of an Cache-Control max-age or Expires header. - defaultTtl?: null | float64 @go(DefaultTTL,*float64) - - // Field level encryption configuration ID. - fieldLevelEncryptionId?: null | string @go(FieldLevelEncryptionID,*string) - - // The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one). - forwardedValues?: [...#ForwardedValuesInitParameters] @go(ForwardedValues,[]ForwardedValuesInitParameters) - - // A config block that triggers a cloudfront function with specific actions (maximum 2). - functionAssociation?: [...#FunctionAssociationInitParameters] @go(FunctionAssociation,[]FunctionAssociationInitParameters) - - // A config block that triggers a lambda function with specific actions (maximum 4). - lambdaFunctionAssociation?: [...#LambdaFunctionAssociationInitParameters] @go(LambdaFunctionAssociation,[]LambdaFunctionAssociationInitParameters) - - // Maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. Only effective in the presence of Cache-Control max-age, Cache-Control s-maxage, and Expires headers. - maxTtl?: null | float64 @go(MaxTTL,*float64) - - // Minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. Defaults to 0 seconds. - minTtl?: null | float64 @go(MinTTL,*float64) - - // Unique identifier of the origin request policy that is attached to the behavior. - originRequestPolicyId?: null | string @go(OriginRequestPolicyID,*string) - - // ARN of the real-time log configuration that is attached to this cache behavior. - realtimeLogConfigArn?: null | string @go(RealtimeLogConfigArn,*string) - - // Identifier for a response headers policy. - responseHeadersPolicyId?: null | string @go(ResponseHeadersPolicyID,*string) - - // Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. - smoothStreaming?: null | bool @go(SmoothStreaming,*bool) - - // Value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior. - targetOriginId?: null | string @go(TargetOriginID,*string) - - // List of key group IDs that CloudFront can use to validate signed URLs or signed cookies. See the CloudFront User Guide for more information about this feature. - trustedKeyGroups?: [...null | string] @go(TrustedKeyGroups,[]*string) - - // List of AWS account IDs (or self) that you want to allow to create signed URLs for private content. See the CloudFront User Guide for more information about this feature. - trustedSigners?: [...null | string] @go(TrustedSigners,[]*string) - - // Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. One of allow-all, https-only, or redirect-to-https. - viewerProtocolPolicy?: null | string @go(ViewerProtocolPolicy,*string) -} - -#DefaultCacheBehaviorObservation: { - // Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. - allowedMethods?: [...null | string] @go(AllowedMethods,[]*string) - - // Unique identifier of the cache policy that is attached to the cache behavior. If configuring the default_cache_behavior either cache_policy_id or forwarded_values must be set. - cachePolicyId?: null | string @go(CachePolicyID,*string) - - // Controls whether CloudFront caches the response to requests using the specified HTTP methods. - cachedMethods?: [...null | string] @go(CachedMethods,[]*string) - - // Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header (default: false). - compress?: null | bool @go(Compress,*bool) - - // Default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request in the absence of an Cache-Control max-age or Expires header. - defaultTtl?: null | float64 @go(DefaultTTL,*float64) - - // Field level encryption configuration ID. - fieldLevelEncryptionId?: null | string @go(FieldLevelEncryptionID,*string) - - // The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one). - forwardedValues?: [...#ForwardedValuesObservation] @go(ForwardedValues,[]ForwardedValuesObservation) - - // A config block that triggers a cloudfront function with specific actions (maximum 2). - functionAssociation?: [...#FunctionAssociationObservation] @go(FunctionAssociation,[]FunctionAssociationObservation) - - // A config block that triggers a lambda function with specific actions (maximum 4). - lambdaFunctionAssociation?: [...#LambdaFunctionAssociationObservation] @go(LambdaFunctionAssociation,[]LambdaFunctionAssociationObservation) - - // Maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. Only effective in the presence of Cache-Control max-age, Cache-Control s-maxage, and Expires headers. - maxTtl?: null | float64 @go(MaxTTL,*float64) - - // Minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. Defaults to 0 seconds. - minTtl?: null | float64 @go(MinTTL,*float64) - - // Unique identifier of the origin request policy that is attached to the behavior. - originRequestPolicyId?: null | string @go(OriginRequestPolicyID,*string) - - // ARN of the real-time log configuration that is attached to this cache behavior. - realtimeLogConfigArn?: null | string @go(RealtimeLogConfigArn,*string) - - // Identifier for a response headers policy. - responseHeadersPolicyId?: null | string @go(ResponseHeadersPolicyID,*string) - - // Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. - smoothStreaming?: null | bool @go(SmoothStreaming,*bool) - - // Value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior. - targetOriginId?: null | string @go(TargetOriginID,*string) - - // List of key group IDs that CloudFront can use to validate signed URLs or signed cookies. See the CloudFront User Guide for more information about this feature. - trustedKeyGroups?: [...null | string] @go(TrustedKeyGroups,[]*string) - - // List of AWS account IDs (or self) that you want to allow to create signed URLs for private content. See the CloudFront User Guide for more information about this feature. - trustedSigners?: [...null | string] @go(TrustedSigners,[]*string) - - // Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. One of allow-all, https-only, or redirect-to-https. - viewerProtocolPolicy?: null | string @go(ViewerProtocolPolicy,*string) -} - -#DefaultCacheBehaviorParameters: { - // Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. - // +kubebuilder:validation:Optional - allowedMethods: [...null | string] @go(AllowedMethods,[]*string) - - // Unique identifier of the cache policy that is attached to the cache behavior. If configuring the default_cache_behavior either cache_policy_id or forwarded_values must be set. - // +kubebuilder:validation:Optional - cachePolicyId?: null | string @go(CachePolicyID,*string) - - // Controls whether CloudFront caches the response to requests using the specified HTTP methods. - // +kubebuilder:validation:Optional - cachedMethods: [...null | string] @go(CachedMethods,[]*string) - - // Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header (default: false). - // +kubebuilder:validation:Optional - compress?: null | bool @go(Compress,*bool) - - // Default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request in the absence of an Cache-Control max-age or Expires header. - // +kubebuilder:validation:Optional - defaultTtl?: null | float64 @go(DefaultTTL,*float64) - - // Field level encryption configuration ID. - // +kubebuilder:validation:Optional - fieldLevelEncryptionId?: null | string @go(FieldLevelEncryptionID,*string) - - // The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one). - // +kubebuilder:validation:Optional - forwardedValues?: [...#ForwardedValuesParameters] @go(ForwardedValues,[]ForwardedValuesParameters) - - // A config block that triggers a cloudfront function with specific actions (maximum 2). - // +kubebuilder:validation:Optional - functionAssociation?: [...#FunctionAssociationParameters] @go(FunctionAssociation,[]FunctionAssociationParameters) - - // A config block that triggers a lambda function with specific actions (maximum 4). - // +kubebuilder:validation:Optional - lambdaFunctionAssociation?: [...#LambdaFunctionAssociationParameters] @go(LambdaFunctionAssociation,[]LambdaFunctionAssociationParameters) - - // Maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. Only effective in the presence of Cache-Control max-age, Cache-Control s-maxage, and Expires headers. - // +kubebuilder:validation:Optional - maxTtl?: null | float64 @go(MaxTTL,*float64) - - // Minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. Defaults to 0 seconds. - // +kubebuilder:validation:Optional - minTtl?: null | float64 @go(MinTTL,*float64) - - // Unique identifier of the origin request policy that is attached to the behavior. - // +kubebuilder:validation:Optional - originRequestPolicyId?: null | string @go(OriginRequestPolicyID,*string) - - // ARN of the real-time log configuration that is attached to this cache behavior. - // +kubebuilder:validation:Optional - realtimeLogConfigArn?: null | string @go(RealtimeLogConfigArn,*string) - - // Identifier for a response headers policy. - // +kubebuilder:validation:Optional - responseHeadersPolicyId?: null | string @go(ResponseHeadersPolicyID,*string) - - // Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. - // +kubebuilder:validation:Optional - smoothStreaming?: null | bool @go(SmoothStreaming,*bool) - - // Value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior. - // +kubebuilder:validation:Optional - targetOriginId?: null | string @go(TargetOriginID,*string) - - // List of key group IDs that CloudFront can use to validate signed URLs or signed cookies. See the CloudFront User Guide for more information about this feature. - // +kubebuilder:validation:Optional - trustedKeyGroups?: [...null | string] @go(TrustedKeyGroups,[]*string) - - // List of AWS account IDs (or self) that you want to allow to create signed URLs for private content. See the CloudFront User Guide for more information about this feature. - // +kubebuilder:validation:Optional - trustedSigners?: [...null | string] @go(TrustedSigners,[]*string) - - // Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. One of allow-all, https-only, or redirect-to-https. - // +kubebuilder:validation:Optional - viewerProtocolPolicy?: null | string @go(ViewerProtocolPolicy,*string) -} - -#DistributionInitParameters: { - // Extra CNAMEs (alternate domain names), if any, for this distribution. - aliases?: [...null | string] @go(Aliases,[]*string) - - // Any comments you want to include about the distribution. - comment?: null | string @go(Comment,*string) - - // One or more custom error response elements (multiples allowed). - customErrorResponse?: [...#CustomErrorResponseInitParameters] @go(CustomErrorResponse,[]CustomErrorResponseInitParameters) - - // Default cache behavior for this distribution (maximum one). Requires either cache_policy_id (preferred) or forwarded_values (deprecated) be set. - defaultCacheBehavior?: [...#DefaultCacheBehaviorInitParameters] @go(DefaultCacheBehavior,[]DefaultCacheBehaviorInitParameters) - - // Object that you want CloudFront to return (for example, index.html) when an end user requests the root URL. - defaultRootObject?: null | string @go(DefaultRootObject,*string) - - // Whether the distribution is enabled to accept end user requests for content. - enabled?: null | bool @go(Enabled,*bool) - - // Maximum HTTP version to support on the distribution. Allowed values are http1.1, http2, http2and3 and http3. The default is http2. - httpVersion?: null | string @go(HTTPVersion,*string) - - // Whether the IPv6 is enabled for the distribution. - isIpv6Enabled?: null | bool @go(IsIPv6Enabled,*bool) - - // The logging configuration that controls how logs are written to your distribution (maximum one). - loggingConfig?: [...#LoggingConfigInitParameters] @go(LoggingConfig,[]LoggingConfigInitParameters) - - // Ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0. - orderedCacheBehavior?: [...#OrderedCacheBehaviorInitParameters] @go(OrderedCacheBehavior,[]OrderedCacheBehaviorInitParameters) - - // One or more origins for this distribution (multiples allowed). - origin?: [...#OriginInitParameters] @go(Origin,[]OriginInitParameters) - - // One or more origin_group for this distribution (multiples allowed). - originGroup?: [...#OriginGroupInitParameters] @go(OriginGroup,[]OriginGroupInitParameters) - - // Price class for this distribution. One of PriceClass_All, PriceClass_200, PriceClass_100. - priceClass?: null | string @go(PriceClass,*string) - - // The restriction configuration for this distribution (maximum one). - restrictions?: [...#RestrictionsInitParameters] @go(Restrictions,[]RestrictionsInitParameters) - - // If this is set, the distribution needs to be deleted manually afterwards. Default: false. - retainOnDelete?: null | bool @go(RetainOnDelete,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The SSL configuration for this distribution (maximum one). - viewerCertificate?: [...#ViewerCertificateInitParameters] @go(ViewerCertificate,[]ViewerCertificateInitParameters) - - // If enabled, the resource will wait for the distribution status to change from InProgress to Deployed. Setting this tofalse will skip the process. Default: true. - waitForDeployment?: null | bool @go(WaitForDeployment,*bool) - - // Unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of AWS WAF (WAFv2), use the ACL ARN, for example aws_wafv2_web_acl.example.arn. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example aws_waf_web_acl.example.id. The WAF Web ACL must exist in the WAF Global (CloudFront) region and the credentials configuring this argument must have waf:GetWebACL permissions assigned. - webAclId?: null | string @go(WebACLID,*string) -} - -#DistributionObservation: { - // Extra CNAMEs (alternate domain names), if any, for this distribution. - aliases?: [...null | string] @go(Aliases,[]*string) - - // ARN for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID. - arn?: null | string @go(Arn,*string) - - // Internal value used by CloudFront to allow future updates to the distribution configuration. - callerReference?: null | string @go(CallerReference,*string) - - // Any comments you want to include about the distribution. - comment?: null | string @go(Comment,*string) - - // One or more custom error response elements (multiples allowed). - customErrorResponse?: [...#CustomErrorResponseObservation] @go(CustomErrorResponse,[]CustomErrorResponseObservation) - - // Default cache behavior for this distribution (maximum one). Requires either cache_policy_id (preferred) or forwarded_values (deprecated) be set. - defaultCacheBehavior?: [...#DefaultCacheBehaviorObservation] @go(DefaultCacheBehavior,[]DefaultCacheBehaviorObservation) - - // Object that you want CloudFront to return (for example, index.html) when an end user requests the root URL. - defaultRootObject?: null | string @go(DefaultRootObject,*string) - - // DNS domain name of either the S3 bucket, or web site of your custom origin. - domainName?: null | string @go(DomainName,*string) - - // Whether the distribution is enabled to accept end user requests for content. - enabled?: null | bool @go(Enabled,*bool) - - // Current version of the distribution's information. For example: E2QWRUHAPOMQZL. - etag?: null | string @go(Etag,*string) - - // Maximum HTTP version to support on the distribution. Allowed values are http1.1, http2, http2and3 and http3. The default is http2. - httpVersion?: null | string @go(HTTPVersion,*string) - - // CloudFront Route 53 zone ID that can be used to route an Alias Resource Record Set to. This attribute is simply an alias for the zone ID Z2FDTNDATAQYW2. - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // Identifier for the distribution. For example: EDFDVBD632BHDS5. - id?: null | string @go(ID,*string) - - // Number of invalidation batches currently in progress. - inProgressValidationBatches?: null | float64 @go(InProgressValidationBatches,*float64) - - // Whether the IPv6 is enabled for the distribution. - isIpv6Enabled?: null | bool @go(IsIPv6Enabled,*bool) - - // Date and time the distribution was last modified. - lastModifiedTime?: null | string @go(LastModifiedTime,*string) - - // The logging configuration that controls how logs are written to your distribution (maximum one). - loggingConfig?: [...#LoggingConfigObservation] @go(LoggingConfig,[]LoggingConfigObservation) - - // Ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0. - orderedCacheBehavior?: [...#OrderedCacheBehaviorObservation] @go(OrderedCacheBehavior,[]OrderedCacheBehaviorObservation) - - // One or more origins for this distribution (multiples allowed). - origin?: [...#OriginObservation] @go(Origin,[]OriginObservation) - - // One or more origin_group for this distribution (multiples allowed). - originGroup?: [...#OriginGroupObservation] @go(OriginGroup,[]OriginGroupObservation) - - // Price class for this distribution. One of PriceClass_All, PriceClass_200, PriceClass_100. - priceClass?: null | string @go(PriceClass,*string) - - // The restriction configuration for this distribution (maximum one). - restrictions?: [...#RestrictionsObservation] @go(Restrictions,[]RestrictionsObservation) - - // If this is set, the distribution needs to be deleted manually afterwards. Default: false. - retainOnDelete?: null | bool @go(RetainOnDelete,*bool) - - // Current status of the distribution. Deployed if the distribution's information is fully propagated throughout the Amazon CloudFront system. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // List of key group IDs that CloudFront can use to validate signed URLs or signed cookies. See the CloudFront User Guide for more information about this feature. - trustedKeyGroups?: [...#TrustedKeyGroupsObservation] @go(TrustedKeyGroups,[]TrustedKeyGroupsObservation) - - // List of AWS account IDs (or self) that you want to allow to create signed URLs for private content. See the CloudFront User Guide for more information about this feature. - trustedSigners?: [...#TrustedSignersObservation] @go(TrustedSigners,[]TrustedSignersObservation) - - // The SSL configuration for this distribution (maximum one). - viewerCertificate?: [...#ViewerCertificateObservation] @go(ViewerCertificate,[]ViewerCertificateObservation) - - // If enabled, the resource will wait for the distribution status to change from InProgress to Deployed. Setting this tofalse will skip the process. Default: true. - waitForDeployment?: null | bool @go(WaitForDeployment,*bool) - - // Unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of AWS WAF (WAFv2), use the ACL ARN, for example aws_wafv2_web_acl.example.arn. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example aws_waf_web_acl.example.id. The WAF Web ACL must exist in the WAF Global (CloudFront) region and the credentials configuring this argument must have waf:GetWebACL permissions assigned. - webAclId?: null | string @go(WebACLID,*string) -} - -#DistributionParameters: { - // Extra CNAMEs (alternate domain names), if any, for this distribution. - // +kubebuilder:validation:Optional - aliases?: [...null | string] @go(Aliases,[]*string) - - // Any comments you want to include about the distribution. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // One or more custom error response elements (multiples allowed). - // +kubebuilder:validation:Optional - customErrorResponse?: [...#CustomErrorResponseParameters] @go(CustomErrorResponse,[]CustomErrorResponseParameters) - - // Default cache behavior for this distribution (maximum one). Requires either cache_policy_id (preferred) or forwarded_values (deprecated) be set. - // +kubebuilder:validation:Optional - defaultCacheBehavior?: [...#DefaultCacheBehaviorParameters] @go(DefaultCacheBehavior,[]DefaultCacheBehaviorParameters) - - // Object that you want CloudFront to return (for example, index.html) when an end user requests the root URL. - // +kubebuilder:validation:Optional - defaultRootObject?: null | string @go(DefaultRootObject,*string) - - // Whether the distribution is enabled to accept end user requests for content. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Maximum HTTP version to support on the distribution. Allowed values are http1.1, http2, http2and3 and http3. The default is http2. - // +kubebuilder:validation:Optional - httpVersion?: null | string @go(HTTPVersion,*string) - - // Whether the IPv6 is enabled for the distribution. - // +kubebuilder:validation:Optional - isIpv6Enabled?: null | bool @go(IsIPv6Enabled,*bool) - - // The logging configuration that controls how logs are written to your distribution (maximum one). - // +kubebuilder:validation:Optional - loggingConfig?: [...#LoggingConfigParameters] @go(LoggingConfig,[]LoggingConfigParameters) - - // Ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0. - // +kubebuilder:validation:Optional - orderedCacheBehavior?: [...#OrderedCacheBehaviorParameters] @go(OrderedCacheBehavior,[]OrderedCacheBehaviorParameters) - - // One or more origins for this distribution (multiples allowed). - // +kubebuilder:validation:Optional - origin?: [...#OriginParameters] @go(Origin,[]OriginParameters) - - // One or more origin_group for this distribution (multiples allowed). - // +kubebuilder:validation:Optional - originGroup?: [...#OriginGroupParameters] @go(OriginGroup,[]OriginGroupParameters) - - // Price class for this distribution. One of PriceClass_All, PriceClass_200, PriceClass_100. - // +kubebuilder:validation:Optional - priceClass?: null | string @go(PriceClass,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The restriction configuration for this distribution (maximum one). - // +kubebuilder:validation:Optional - restrictions?: [...#RestrictionsParameters] @go(Restrictions,[]RestrictionsParameters) - - // If this is set, the distribution needs to be deleted manually afterwards. Default: false. - // +kubebuilder:validation:Optional - retainOnDelete?: null | bool @go(RetainOnDelete,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The SSL configuration for this distribution (maximum one). - // +kubebuilder:validation:Optional - viewerCertificate?: [...#ViewerCertificateParameters] @go(ViewerCertificate,[]ViewerCertificateParameters) - - // If enabled, the resource will wait for the distribution status to change from InProgress to Deployed. Setting this tofalse will skip the process. Default: true. - // +kubebuilder:validation:Optional - waitForDeployment?: null | bool @go(WaitForDeployment,*bool) - - // Unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of AWS WAF (WAFv2), use the ACL ARN, for example aws_wafv2_web_acl.example.arn. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example aws_waf_web_acl.example.id. The WAF Web ACL must exist in the WAF Global (CloudFront) region and the credentials configuring this argument must have waf:GetWebACL permissions assigned. - // +kubebuilder:validation:Optional - webAclId?: null | string @go(WebACLID,*string) -} - -#FailoverCriteriaInitParameters: { - // List of HTTP status codes for the origin group. - statusCodes?: [...null | float64] @go(StatusCodes,[]*float64) -} - -#FailoverCriteriaObservation: { - // List of HTTP status codes for the origin group. - statusCodes?: [...null | float64] @go(StatusCodes,[]*float64) -} - -#FailoverCriteriaParameters: { - // List of HTTP status codes for the origin group. - // +kubebuilder:validation:Optional - statusCodes: [...null | float64] @go(StatusCodes,[]*float64) -} - -#ForwardedValuesCookiesInitParameters: { - // Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If whitelist, you must include the subsequent whitelisted_names. - forward?: null | string @go(Forward,*string) - - // If you have specified whitelist to forward, the whitelisted cookies that you want CloudFront to forward to your origin. - whitelistedNames?: [...null | string] @go(WhitelistedNames,[]*string) -} - -#ForwardedValuesCookiesObservation: { - // Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If whitelist, you must include the subsequent whitelisted_names. - forward?: null | string @go(Forward,*string) - - // If you have specified whitelist to forward, the whitelisted cookies that you want CloudFront to forward to your origin. - whitelistedNames?: [...null | string] @go(WhitelistedNames,[]*string) -} - -#ForwardedValuesCookiesParameters: { - // Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If whitelist, you must include the subsequent whitelisted_names. - // +kubebuilder:validation:Optional - forward?: null | string @go(Forward,*string) - - // If you have specified whitelist to forward, the whitelisted cookies that you want CloudFront to forward to your origin. - // +kubebuilder:validation:Optional - whitelistedNames?: [...null | string] @go(WhitelistedNames,[]*string) -} - -#ForwardedValuesInitParameters: { - // The forwarded values cookies that specifies how CloudFront handles cookies (maximum one). - cookies?: [...#ForwardedValuesCookiesInitParameters] @go(Cookies,[]ForwardedValuesCookiesInitParameters) - - // Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify * to include all headers. - headers?: [...null | string] @go(Headers,[]*string) - - // Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. - queryString?: null | bool @go(QueryString,*bool) - - // When specified, along with a value of true for query_string, all query strings are forwarded, however only the query string keys listed in this argument are cached. When omitted with a value of true for query_string, all query string keys are cached. - queryStringCacheKeys?: [...null | string] @go(QueryStringCacheKeys,[]*string) -} - -#ForwardedValuesObservation: { - // The forwarded values cookies that specifies how CloudFront handles cookies (maximum one). - cookies?: [...#ForwardedValuesCookiesObservation] @go(Cookies,[]ForwardedValuesCookiesObservation) - - // Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify * to include all headers. - headers?: [...null | string] @go(Headers,[]*string) - - // Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. - queryString?: null | bool @go(QueryString,*bool) - - // When specified, along with a value of true for query_string, all query strings are forwarded, however only the query string keys listed in this argument are cached. When omitted with a value of true for query_string, all query string keys are cached. - queryStringCacheKeys?: [...null | string] @go(QueryStringCacheKeys,[]*string) -} - -#ForwardedValuesParameters: { - // The forwarded values cookies that specifies how CloudFront handles cookies (maximum one). - // +kubebuilder:validation:Optional - cookies: [...#ForwardedValuesCookiesParameters] @go(Cookies,[]ForwardedValuesCookiesParameters) - - // Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify * to include all headers. - // +kubebuilder:validation:Optional - headers?: [...null | string] @go(Headers,[]*string) - - // Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. - // +kubebuilder:validation:Optional - queryString?: null | bool @go(QueryString,*bool) - - // When specified, along with a value of true for query_string, all query strings are forwarded, however only the query string keys listed in this argument are cached. When omitted with a value of true for query_string, all query string keys are cached. - // +kubebuilder:validation:Optional - queryStringCacheKeys?: [...null | string] @go(QueryStringCacheKeys,[]*string) -} - -#FunctionAssociationInitParameters: { - // Specific event to trigger this function. Valid values: viewer-request, origin-request, viewer-response, origin-response. - eventType?: null | string @go(EventType,*string) - - // ARN of the CloudFront function. - functionArn?: null | string @go(FunctionArn,*string) -} - -#FunctionAssociationObservation: { - // Specific event to trigger this function. Valid values: viewer-request, origin-request, viewer-response, origin-response. - eventType?: null | string @go(EventType,*string) - - // ARN of the CloudFront function. - functionArn?: null | string @go(FunctionArn,*string) -} - -#FunctionAssociationParameters: { - // Specific event to trigger this function. Valid values: viewer-request, origin-request, viewer-response, origin-response. - // +kubebuilder:validation:Optional - eventType?: null | string @go(EventType,*string) - - // ARN of the CloudFront function. - // +kubebuilder:validation:Optional - functionArn?: null | string @go(FunctionArn,*string) -} - -#GeoRestrictionInitParameters: { - // ISO 3166-1-alpha-2 codes for which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). If the type is specified as none an empty array can be used. - locations?: [...null | string] @go(Locations,[]*string) - - // Method that you want to use to restrict distribution of your content by country: none, whitelist, or blacklist. - restrictionType?: null | string @go(RestrictionType,*string) -} - -#GeoRestrictionObservation: { - // ISO 3166-1-alpha-2 codes for which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). If the type is specified as none an empty array can be used. - locations?: [...null | string] @go(Locations,[]*string) - - // Method that you want to use to restrict distribution of your content by country: none, whitelist, or blacklist. - restrictionType?: null | string @go(RestrictionType,*string) -} - -#GeoRestrictionParameters: { - // ISO 3166-1-alpha-2 codes for which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). If the type is specified as none an empty array can be used. - // +kubebuilder:validation:Optional - locations?: [...null | string] @go(Locations,[]*string) - - // Method that you want to use to restrict distribution of your content by country: none, whitelist, or blacklist. - // +kubebuilder:validation:Optional - restrictionType?: null | string @go(RestrictionType,*string) -} - -#ItemsInitParameters: { -} - -#ItemsObservation: { - // ID of the key group that contains the public keys. - keyGroupId?: null | string @go(KeyGroupID,*string) - - // Set of CloudFront key pair IDs. - keyPairIds?: [...null | string] @go(KeyPairIds,[]*string) -} - -#ItemsParameters: { -} - -#LambdaFunctionAssociationInitParameters: { - // Specific event to trigger this function. Valid values: viewer-request, origin-request, viewer-response, origin-response. - eventType?: null | string @go(EventType,*string) - - // When set to true it exposes the request body to the lambda function. Defaults to false. Valid values: true, false. - includeBody?: null | bool @go(IncludeBody,*bool) - - // ARN of the Lambda function. - lambdaArn?: null | string @go(LambdaArn,*string) -} - -#LambdaFunctionAssociationObservation: { - // Specific event to trigger this function. Valid values: viewer-request, origin-request, viewer-response, origin-response. - eventType?: null | string @go(EventType,*string) - - // When set to true it exposes the request body to the lambda function. Defaults to false. Valid values: true, false. - includeBody?: null | bool @go(IncludeBody,*bool) - - // ARN of the Lambda function. - lambdaArn?: null | string @go(LambdaArn,*string) -} - -#LambdaFunctionAssociationParameters: { - // Specific event to trigger this function. Valid values: viewer-request, origin-request, viewer-response, origin-response. - // +kubebuilder:validation:Optional - eventType?: null | string @go(EventType,*string) - - // When set to true it exposes the request body to the lambda function. Defaults to false. Valid values: true, false. - // +kubebuilder:validation:Optional - includeBody?: null | bool @go(IncludeBody,*bool) - - // ARN of the Lambda function. - // +kubebuilder:validation:Optional - lambdaArn?: null | string @go(LambdaArn,*string) -} - -#LoggingConfigInitParameters: { - // Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com. - bucket?: null | string @go(Bucket,*string) - - // Whether to include cookies in access logs (default: false). - includeCookies?: null | bool @go(IncludeCookies,*bool) - - // Prefix to the access log filenames for this distribution, for example, myprefix/. - prefix?: null | string @go(Prefix,*string) -} - -#LoggingConfigObservation: { - // Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com. - bucket?: null | string @go(Bucket,*string) - - // Whether to include cookies in access logs (default: false). - includeCookies?: null | bool @go(IncludeCookies,*bool) - - // Prefix to the access log filenames for this distribution, for example, myprefix/. - prefix?: null | string @go(Prefix,*string) -} - -#LoggingConfigParameters: { - // Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com. - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Whether to include cookies in access logs (default: false). - // +kubebuilder:validation:Optional - includeCookies?: null | bool @go(IncludeCookies,*bool) - - // Prefix to the access log filenames for this distribution, for example, myprefix/. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) -} - -#MemberInitParameters: { - // Unique identifier for the origin. - originId?: null | string @go(OriginID,*string) -} - -#MemberObservation: { - // Unique identifier for the origin. - originId?: null | string @go(OriginID,*string) -} - -#MemberParameters: { - // Unique identifier for the origin. - // +kubebuilder:validation:Optional - originId?: null | string @go(OriginID,*string) -} - -#OrderedCacheBehaviorForwardedValuesCookiesInitParameters: { - // Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If whitelist, you must include the subsequent whitelisted_names. - forward?: null | string @go(Forward,*string) - - // If you have specified whitelist to forward, the whitelisted cookies that you want CloudFront to forward to your origin. - whitelistedNames?: [...null | string] @go(WhitelistedNames,[]*string) -} - -#OrderedCacheBehaviorForwardedValuesCookiesObservation: { - // Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If whitelist, you must include the subsequent whitelisted_names. - forward?: null | string @go(Forward,*string) - - // If you have specified whitelist to forward, the whitelisted cookies that you want CloudFront to forward to your origin. - whitelistedNames?: [...null | string] @go(WhitelistedNames,[]*string) -} - -#OrderedCacheBehaviorForwardedValuesCookiesParameters: { - // Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If whitelist, you must include the subsequent whitelisted_names. - // +kubebuilder:validation:Optional - forward?: null | string @go(Forward,*string) - - // If you have specified whitelist to forward, the whitelisted cookies that you want CloudFront to forward to your origin. - // +kubebuilder:validation:Optional - whitelistedNames?: [...null | string] @go(WhitelistedNames,[]*string) -} - -#OrderedCacheBehaviorForwardedValuesInitParameters: { - // The forwarded values cookies that specifies how CloudFront handles cookies (maximum one). - cookies?: [...#OrderedCacheBehaviorForwardedValuesCookiesInitParameters] @go(Cookies,[]OrderedCacheBehaviorForwardedValuesCookiesInitParameters) - - // Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify * to include all headers. - headers?: [...null | string] @go(Headers,[]*string) - - // Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. - queryString?: null | bool @go(QueryString,*bool) - - // When specified, along with a value of true for query_string, all query strings are forwarded, however only the query string keys listed in this argument are cached. When omitted with a value of true for query_string, all query string keys are cached. - queryStringCacheKeys?: [...null | string] @go(QueryStringCacheKeys,[]*string) -} - -#OrderedCacheBehaviorForwardedValuesObservation: { - // The forwarded values cookies that specifies how CloudFront handles cookies (maximum one). - cookies?: [...#OrderedCacheBehaviorForwardedValuesCookiesObservation] @go(Cookies,[]OrderedCacheBehaviorForwardedValuesCookiesObservation) - - // Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify * to include all headers. - headers?: [...null | string] @go(Headers,[]*string) - - // Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. - queryString?: null | bool @go(QueryString,*bool) - - // When specified, along with a value of true for query_string, all query strings are forwarded, however only the query string keys listed in this argument are cached. When omitted with a value of true for query_string, all query string keys are cached. - queryStringCacheKeys?: [...null | string] @go(QueryStringCacheKeys,[]*string) -} - -#OrderedCacheBehaviorForwardedValuesParameters: { - // The forwarded values cookies that specifies how CloudFront handles cookies (maximum one). - // +kubebuilder:validation:Optional - cookies: [...#OrderedCacheBehaviorForwardedValuesCookiesParameters] @go(Cookies,[]OrderedCacheBehaviorForwardedValuesCookiesParameters) - - // Headers, if any, that you want CloudFront to vary upon for this cache behavior. Specify * to include all headers. - // +kubebuilder:validation:Optional - headers?: [...null | string] @go(Headers,[]*string) - - // Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. - // +kubebuilder:validation:Optional - queryString?: null | bool @go(QueryString,*bool) - - // When specified, along with a value of true for query_string, all query strings are forwarded, however only the query string keys listed in this argument are cached. When omitted with a value of true for query_string, all query string keys are cached. - // +kubebuilder:validation:Optional - queryStringCacheKeys?: [...null | string] @go(QueryStringCacheKeys,[]*string) -} - -#OrderedCacheBehaviorFunctionAssociationInitParameters: { - // Specific event to trigger this function. Valid values: viewer-request, origin-request, viewer-response, origin-response. - eventType?: null | string @go(EventType,*string) -} - -#OrderedCacheBehaviorFunctionAssociationObservation: { - // Specific event to trigger this function. Valid values: viewer-request, origin-request, viewer-response, origin-response. - eventType?: null | string @go(EventType,*string) - - // ARN of the CloudFront function. - functionArn?: null | string @go(FunctionArn,*string) -} - -#OrderedCacheBehaviorFunctionAssociationParameters: { - // Specific event to trigger this function. Valid values: viewer-request, origin-request, viewer-response, origin-response. - // +kubebuilder:validation:Optional - eventType?: null | string @go(EventType,*string) - - // ARN of the CloudFront function. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudfront/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - functionArn?: null | string @go(FunctionArn,*string) - - // Reference to a Function in cloudfront to populate functionArn. - // +kubebuilder:validation:Optional - functionArnRef?: null | v1.#Reference @go(FunctionArnRef,*v1.Reference) - - // Selector for a Function in cloudfront to populate functionArn. - // +kubebuilder:validation:Optional - functionArnSelector?: null | v1.#Selector @go(FunctionArnSelector,*v1.Selector) -} - -#OrderedCacheBehaviorInitParameters: { - // Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. - allowedMethods?: [...null | string] @go(AllowedMethods,[]*string) - - // Unique identifier of the cache policy that is attached to the cache behavior. If configuring the default_cache_behavior either cache_policy_id or forwarded_values must be set. - cachePolicyId?: null | string @go(CachePolicyID,*string) - - // Controls whether CloudFront caches the response to requests using the specified HTTP methods. - cachedMethods?: [...null | string] @go(CachedMethods,[]*string) - - // Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header (default: false). - compress?: null | bool @go(Compress,*bool) - - // Default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request in the absence of an Cache-Control max-age or Expires header. - defaultTtl?: null | float64 @go(DefaultTTL,*float64) - - // Field level encryption configuration ID. - fieldLevelEncryptionId?: null | string @go(FieldLevelEncryptionID,*string) - - // The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one). - forwardedValues?: [...#OrderedCacheBehaviorForwardedValuesInitParameters] @go(ForwardedValues,[]OrderedCacheBehaviorForwardedValuesInitParameters) - - // A config block that triggers a cloudfront function with specific actions (maximum 2). - functionAssociation?: [...#OrderedCacheBehaviorFunctionAssociationInitParameters] @go(FunctionAssociation,[]OrderedCacheBehaviorFunctionAssociationInitParameters) - - // A config block that triggers a lambda function with specific actions (maximum 4). - lambdaFunctionAssociation?: [...#OrderedCacheBehaviorLambdaFunctionAssociationInitParameters] @go(LambdaFunctionAssociation,[]OrderedCacheBehaviorLambdaFunctionAssociationInitParameters) - - // Maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. Only effective in the presence of Cache-Control max-age, Cache-Control s-maxage, and Expires headers. - maxTtl?: null | float64 @go(MaxTTL,*float64) - - // Minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. Defaults to 0 seconds. - minTtl?: null | float64 @go(MinTTL,*float64) - - // Unique identifier of the origin request policy that is attached to the behavior. - originRequestPolicyId?: null | string @go(OriginRequestPolicyID,*string) - - // Pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to. - pathPattern?: null | string @go(PathPattern,*string) - - // ARN of the real-time log configuration that is attached to this cache behavior. - realtimeLogConfigArn?: null | string @go(RealtimeLogConfigArn,*string) - - // Identifier for a response headers policy. - responseHeadersPolicyId?: null | string @go(ResponseHeadersPolicyID,*string) - - // Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. - smoothStreaming?: null | bool @go(SmoothStreaming,*bool) - - // Value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior. - targetOriginId?: null | string @go(TargetOriginID,*string) - - // List of key group IDs that CloudFront can use to validate signed URLs or signed cookies. See the CloudFront User Guide for more information about this feature. - trustedKeyGroups?: [...null | string] @go(TrustedKeyGroups,[]*string) - - // List of AWS account IDs (or self) that you want to allow to create signed URLs for private content. See the CloudFront User Guide for more information about this feature. - trustedSigners?: [...null | string] @go(TrustedSigners,[]*string) - - // Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. One of allow-all, https-only, or redirect-to-https. - viewerProtocolPolicy?: null | string @go(ViewerProtocolPolicy,*string) -} - -#OrderedCacheBehaviorLambdaFunctionAssociationInitParameters: { - // Specific event to trigger this function. Valid values: viewer-request, origin-request, viewer-response, origin-response. - eventType?: null | string @go(EventType,*string) - - // When set to true it exposes the request body to the lambda function. Defaults to false. Valid values: true, false. - includeBody?: null | bool @go(IncludeBody,*bool) -} - -#OrderedCacheBehaviorLambdaFunctionAssociationObservation: { - // Specific event to trigger this function. Valid values: viewer-request, origin-request, viewer-response, origin-response. - eventType?: null | string @go(EventType,*string) - - // When set to true it exposes the request body to the lambda function. Defaults to false. Valid values: true, false. - includeBody?: null | bool @go(IncludeBody,*bool) - - // ARN of the Lambda function. - lambdaArn?: null | string @go(LambdaArn,*string) -} - -#OrderedCacheBehaviorLambdaFunctionAssociationParameters: { - // Specific event to trigger this function. Valid values: viewer-request, origin-request, viewer-response, origin-response. - // +kubebuilder:validation:Optional - eventType?: null | string @go(EventType,*string) - - // When set to true it exposes the request body to the lambda function. Defaults to false. Valid values: true, false. - // +kubebuilder:validation:Optional - includeBody?: null | bool @go(IncludeBody,*bool) - - // ARN of the Lambda function. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("qualified_arn",true) - // +kubebuilder:validation:Optional - lambdaArn?: null | string @go(LambdaArn,*string) - - // Reference to a Function in lambda to populate lambdaArn. - // +kubebuilder:validation:Optional - lambdaArnRef?: null | v1.#Reference @go(LambdaArnRef,*v1.Reference) - - // Selector for a Function in lambda to populate lambdaArn. - // +kubebuilder:validation:Optional - lambdaArnSelector?: null | v1.#Selector @go(LambdaArnSelector,*v1.Selector) -} - -#OrderedCacheBehaviorObservation: { - // Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. - allowedMethods?: [...null | string] @go(AllowedMethods,[]*string) - - // Unique identifier of the cache policy that is attached to the cache behavior. If configuring the default_cache_behavior either cache_policy_id or forwarded_values must be set. - cachePolicyId?: null | string @go(CachePolicyID,*string) - - // Controls whether CloudFront caches the response to requests using the specified HTTP methods. - cachedMethods?: [...null | string] @go(CachedMethods,[]*string) - - // Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header (default: false). - compress?: null | bool @go(Compress,*bool) - - // Default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request in the absence of an Cache-Control max-age or Expires header. - defaultTtl?: null | float64 @go(DefaultTTL,*float64) - - // Field level encryption configuration ID. - fieldLevelEncryptionId?: null | string @go(FieldLevelEncryptionID,*string) - - // The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one). - forwardedValues?: [...#OrderedCacheBehaviorForwardedValuesObservation] @go(ForwardedValues,[]OrderedCacheBehaviorForwardedValuesObservation) - - // A config block that triggers a cloudfront function with specific actions (maximum 2). - functionAssociation?: [...#OrderedCacheBehaviorFunctionAssociationObservation] @go(FunctionAssociation,[]OrderedCacheBehaviorFunctionAssociationObservation) - - // A config block that triggers a lambda function with specific actions (maximum 4). - lambdaFunctionAssociation?: [...#OrderedCacheBehaviorLambdaFunctionAssociationObservation] @go(LambdaFunctionAssociation,[]OrderedCacheBehaviorLambdaFunctionAssociationObservation) - - // Maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. Only effective in the presence of Cache-Control max-age, Cache-Control s-maxage, and Expires headers. - maxTtl?: null | float64 @go(MaxTTL,*float64) - - // Minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. Defaults to 0 seconds. - minTtl?: null | float64 @go(MinTTL,*float64) - - // Unique identifier of the origin request policy that is attached to the behavior. - originRequestPolicyId?: null | string @go(OriginRequestPolicyID,*string) - - // Pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to. - pathPattern?: null | string @go(PathPattern,*string) - - // ARN of the real-time log configuration that is attached to this cache behavior. - realtimeLogConfigArn?: null | string @go(RealtimeLogConfigArn,*string) - - // Identifier for a response headers policy. - responseHeadersPolicyId?: null | string @go(ResponseHeadersPolicyID,*string) - - // Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. - smoothStreaming?: null | bool @go(SmoothStreaming,*bool) - - // Value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior. - targetOriginId?: null | string @go(TargetOriginID,*string) - - // List of key group IDs that CloudFront can use to validate signed URLs or signed cookies. See the CloudFront User Guide for more information about this feature. - trustedKeyGroups?: [...null | string] @go(TrustedKeyGroups,[]*string) - - // List of AWS account IDs (or self) that you want to allow to create signed URLs for private content. See the CloudFront User Guide for more information about this feature. - trustedSigners?: [...null | string] @go(TrustedSigners,[]*string) - - // Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. One of allow-all, https-only, or redirect-to-https. - viewerProtocolPolicy?: null | string @go(ViewerProtocolPolicy,*string) -} - -#OrderedCacheBehaviorParameters: { - // Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. - // +kubebuilder:validation:Optional - allowedMethods: [...null | string] @go(AllowedMethods,[]*string) - - // Unique identifier of the cache policy that is attached to the cache behavior. If configuring the default_cache_behavior either cache_policy_id or forwarded_values must be set. - // +kubebuilder:validation:Optional - cachePolicyId?: null | string @go(CachePolicyID,*string) - - // Controls whether CloudFront caches the response to requests using the specified HTTP methods. - // +kubebuilder:validation:Optional - cachedMethods: [...null | string] @go(CachedMethods,[]*string) - - // Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header (default: false). - // +kubebuilder:validation:Optional - compress?: null | bool @go(Compress,*bool) - - // Default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request in the absence of an Cache-Control max-age or Expires header. - // +kubebuilder:validation:Optional - defaultTtl?: null | float64 @go(DefaultTTL,*float64) - - // Field level encryption configuration ID. - // +kubebuilder:validation:Optional - fieldLevelEncryptionId?: null | string @go(FieldLevelEncryptionID,*string) - - // The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one). - // +kubebuilder:validation:Optional - forwardedValues?: [...#OrderedCacheBehaviorForwardedValuesParameters] @go(ForwardedValues,[]OrderedCacheBehaviorForwardedValuesParameters) - - // A config block that triggers a cloudfront function with specific actions (maximum 2). - // +kubebuilder:validation:Optional - functionAssociation?: [...#OrderedCacheBehaviorFunctionAssociationParameters] @go(FunctionAssociation,[]OrderedCacheBehaviorFunctionAssociationParameters) - - // A config block that triggers a lambda function with specific actions (maximum 4). - // +kubebuilder:validation:Optional - lambdaFunctionAssociation?: [...#OrderedCacheBehaviorLambdaFunctionAssociationParameters] @go(LambdaFunctionAssociation,[]OrderedCacheBehaviorLambdaFunctionAssociationParameters) - - // Maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. Only effective in the presence of Cache-Control max-age, Cache-Control s-maxage, and Expires headers. - // +kubebuilder:validation:Optional - maxTtl?: null | float64 @go(MaxTTL,*float64) - - // Minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. Defaults to 0 seconds. - // +kubebuilder:validation:Optional - minTtl?: null | float64 @go(MinTTL,*float64) - - // Unique identifier of the origin request policy that is attached to the behavior. - // +kubebuilder:validation:Optional - originRequestPolicyId?: null | string @go(OriginRequestPolicyID,*string) - - // Pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to. - // +kubebuilder:validation:Optional - pathPattern?: null | string @go(PathPattern,*string) - - // ARN of the real-time log configuration that is attached to this cache behavior. - // +kubebuilder:validation:Optional - realtimeLogConfigArn?: null | string @go(RealtimeLogConfigArn,*string) - - // Identifier for a response headers policy. - // +kubebuilder:validation:Optional - responseHeadersPolicyId?: null | string @go(ResponseHeadersPolicyID,*string) - - // Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. - // +kubebuilder:validation:Optional - smoothStreaming?: null | bool @go(SmoothStreaming,*bool) - - // Value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior. - // +kubebuilder:validation:Optional - targetOriginId?: null | string @go(TargetOriginID,*string) - - // List of key group IDs that CloudFront can use to validate signed URLs or signed cookies. See the CloudFront User Guide for more information about this feature. - // +kubebuilder:validation:Optional - trustedKeyGroups?: [...null | string] @go(TrustedKeyGroups,[]*string) - - // List of AWS account IDs (or self) that you want to allow to create signed URLs for private content. See the CloudFront User Guide for more information about this feature. - // +kubebuilder:validation:Optional - trustedSigners?: [...null | string] @go(TrustedSigners,[]*string) - - // Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. One of allow-all, https-only, or redirect-to-https. - // +kubebuilder:validation:Optional - viewerProtocolPolicy?: null | string @go(ViewerProtocolPolicy,*string) -} - -#OriginGroupInitParameters: { - // The failover criteria for when to failover to the secondary origin. - failoverCriteria?: [...#FailoverCriteriaInitParameters] @go(FailoverCriteria,[]FailoverCriteriaInitParameters) - - // Ordered member configuration blocks assigned to the origin group, where the first member is the primary origin. You must specify two members. - member?: [...#MemberInitParameters] @go(Member,[]MemberInitParameters) - - // Unique identifier for the origin. - originId?: null | string @go(OriginID,*string) -} - -#OriginGroupObservation: { - // The failover criteria for when to failover to the secondary origin. - failoverCriteria?: [...#FailoverCriteriaObservation] @go(FailoverCriteria,[]FailoverCriteriaObservation) - - // Ordered member configuration blocks assigned to the origin group, where the first member is the primary origin. You must specify two members. - member?: [...#MemberObservation] @go(Member,[]MemberObservation) - - // Unique identifier for the origin. - originId?: null | string @go(OriginID,*string) -} - -#OriginGroupParameters: { - // The failover criteria for when to failover to the secondary origin. - // +kubebuilder:validation:Optional - failoverCriteria: [...#FailoverCriteriaParameters] @go(FailoverCriteria,[]FailoverCriteriaParameters) - - // Ordered member configuration blocks assigned to the origin group, where the first member is the primary origin. You must specify two members. - // +kubebuilder:validation:Optional - member: [...#MemberParameters] @go(Member,[]MemberParameters) - - // Unique identifier for the origin. - // +kubebuilder:validation:Optional - originId?: null | string @go(OriginID,*string) -} - -#OriginInitParameters: { - // Number of times that CloudFront attempts to connect to the origin. Must be between 1-3. Defaults to 3. - connectionAttempts?: null | float64 @go(ConnectionAttempts,*float64) - - // Number of seconds that CloudFront waits when trying to establish a connection to the origin. Must be between 1-10. Defaults to 10. - connectionTimeout?: null | float64 @go(ConnectionTimeout,*float64) - - // One or more sub-resources with name and value parameters that specify header data that will be sent to the origin (multiples allowed). - customHeader?: [...#CustomHeaderInitParameters] @go(CustomHeader,[]CustomHeaderInitParameters) - - // The CloudFront custom origin configuration information. If an S3 origin is required, use origin_access_control_id or s3_origin_config instead. - customOriginConfig?: [...#CustomOriginConfigInitParameters] @go(CustomOriginConfig,[]CustomOriginConfigInitParameters) - - // DNS domain name of either the S3 bucket, or web site of your custom origin. - domainName?: null | string @go(DomainName,*string) - - // Unique identifier for the origin. - originId?: null | string @go(OriginID,*string) - - // Optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. - originPath?: null | string @go(OriginPath,*string) - - // The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see Using Origin Shield in the Amazon CloudFront Developer Guide. - originShield?: [...#OriginShieldInitParameters] @go(OriginShield,[]OriginShieldInitParameters) - - // The CloudFront S3 origin configuration information. If a custom origin is required, use custom_origin_config instead. - s3OriginConfig?: [...#S3OriginConfigInitParameters] @go(S3OriginConfig,[]S3OriginConfigInitParameters) -} - -#OriginObservation: { - // Number of times that CloudFront attempts to connect to the origin. Must be between 1-3. Defaults to 3. - connectionAttempts?: null | float64 @go(ConnectionAttempts,*float64) - - // Number of seconds that CloudFront waits when trying to establish a connection to the origin. Must be between 1-10. Defaults to 10. - connectionTimeout?: null | float64 @go(ConnectionTimeout,*float64) - - // One or more sub-resources with name and value parameters that specify header data that will be sent to the origin (multiples allowed). - customHeader?: [...#CustomHeaderObservation] @go(CustomHeader,[]CustomHeaderObservation) - - // The CloudFront custom origin configuration information. If an S3 origin is required, use origin_access_control_id or s3_origin_config instead. - customOriginConfig?: [...#CustomOriginConfigObservation] @go(CustomOriginConfig,[]CustomOriginConfigObservation) - - // DNS domain name of either the S3 bucket, or web site of your custom origin. - domainName?: null | string @go(DomainName,*string) - - // Unique identifier of a CloudFront origin access control for this origin. - originAccessControlId?: null | string @go(OriginAccessControlID,*string) - - // Unique identifier for the origin. - originId?: null | string @go(OriginID,*string) - - // Optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. - originPath?: null | string @go(OriginPath,*string) - - // The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see Using Origin Shield in the Amazon CloudFront Developer Guide. - originShield?: [...#OriginShieldObservation] @go(OriginShield,[]OriginShieldObservation) - - // The CloudFront S3 origin configuration information. If a custom origin is required, use custom_origin_config instead. - s3OriginConfig?: [...#S3OriginConfigObservation] @go(S3OriginConfig,[]S3OriginConfigObservation) -} - -#OriginParameters: { - // Number of times that CloudFront attempts to connect to the origin. Must be between 1-3. Defaults to 3. - // +kubebuilder:validation:Optional - connectionAttempts?: null | float64 @go(ConnectionAttempts,*float64) - - // Number of seconds that CloudFront waits when trying to establish a connection to the origin. Must be between 1-10. Defaults to 10. - // +kubebuilder:validation:Optional - connectionTimeout?: null | float64 @go(ConnectionTimeout,*float64) - - // One or more sub-resources with name and value parameters that specify header data that will be sent to the origin (multiples allowed). - // +kubebuilder:validation:Optional - customHeader?: [...#CustomHeaderParameters] @go(CustomHeader,[]CustomHeaderParameters) - - // The CloudFront custom origin configuration information. If an S3 origin is required, use origin_access_control_id or s3_origin_config instead. - // +kubebuilder:validation:Optional - customOriginConfig?: [...#CustomOriginConfigParameters] @go(CustomOriginConfig,[]CustomOriginConfigParameters) - - // DNS domain name of either the S3 bucket, or web site of your custom origin. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Unique identifier of a CloudFront origin access control for this origin. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudfront/v1beta1.OriginAccessControl - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - originAccessControlId?: null | string @go(OriginAccessControlID,*string) - - // Reference to a OriginAccessControl in cloudfront to populate originAccessControlId. - // +kubebuilder:validation:Optional - originAccessControlIdRef?: null | v1.#Reference @go(OriginAccessControlIDRef,*v1.Reference) - - // Selector for a OriginAccessControl in cloudfront to populate originAccessControlId. - // +kubebuilder:validation:Optional - originAccessControlIdSelector?: null | v1.#Selector @go(OriginAccessControlIDSelector,*v1.Selector) - - // Unique identifier for the origin. - // +kubebuilder:validation:Optional - originId?: null | string @go(OriginID,*string) - - // Optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. - // +kubebuilder:validation:Optional - originPath?: null | string @go(OriginPath,*string) - - // The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see Using Origin Shield in the Amazon CloudFront Developer Guide. - // +kubebuilder:validation:Optional - originShield?: [...#OriginShieldParameters] @go(OriginShield,[]OriginShieldParameters) - - // The CloudFront S3 origin configuration information. If a custom origin is required, use custom_origin_config instead. - // +kubebuilder:validation:Optional - s3OriginConfig?: [...#S3OriginConfigParameters] @go(S3OriginConfig,[]S3OriginConfigParameters) -} - -#OriginShieldInitParameters: { - // Whether the distribution is enabled to accept end user requests for content. - enabled?: null | bool @go(Enabled,*bool) - - // AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. - originShieldRegion?: null | string @go(OriginShieldRegion,*string) -} - -#OriginShieldObservation: { - // Whether the distribution is enabled to accept end user requests for content. - enabled?: null | bool @go(Enabled,*bool) - - // AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. - originShieldRegion?: null | string @go(OriginShieldRegion,*string) -} - -#OriginShieldParameters: { - // Whether the distribution is enabled to accept end user requests for content. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. - // +kubebuilder:validation:Optional - originShieldRegion?: null | string @go(OriginShieldRegion,*string) -} - -#RestrictionsInitParameters: { - geoRestriction?: [...#GeoRestrictionInitParameters] @go(GeoRestriction,[]GeoRestrictionInitParameters) -} - -#RestrictionsObservation: { - geoRestriction?: [...#GeoRestrictionObservation] @go(GeoRestriction,[]GeoRestrictionObservation) -} - -#RestrictionsParameters: { - // +kubebuilder:validation:Optional - geoRestriction: [...#GeoRestrictionParameters] @go(GeoRestriction,[]GeoRestrictionParameters) -} - -#S3OriginConfigInitParameters: { -} - -#S3OriginConfigObservation: { - // The CloudFront origin access identity to associate with the origin. - originAccessIdentity?: null | string @go(OriginAccessIdentity,*string) -} - -#S3OriginConfigParameters: { - // The CloudFront origin access identity to associate with the origin. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudfront/v1beta1.OriginAccessIdentity - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("cloudfront_access_identity_path",true) - // +kubebuilder:validation:Optional - originAccessIdentity?: null | string @go(OriginAccessIdentity,*string) - - // Reference to a OriginAccessIdentity in cloudfront to populate originAccessIdentity. - // +kubebuilder:validation:Optional - originAccessIdentityRef?: null | v1.#Reference @go(OriginAccessIdentityRef,*v1.Reference) - - // Selector for a OriginAccessIdentity in cloudfront to populate originAccessIdentity. - // +kubebuilder:validation:Optional - originAccessIdentitySelector?: null | v1.#Selector @go(OriginAccessIdentitySelector,*v1.Selector) -} - -#TrustedKeyGroupsInitParameters: { -} - -#TrustedKeyGroupsObservation: { - // Whether the distribution is enabled to accept end user requests for content. - enabled?: null | bool @go(Enabled,*bool) - - // List of nested attributes for each key group. - items?: [...#ItemsObservation] @go(Items,[]ItemsObservation) -} - -#TrustedKeyGroupsParameters: { -} - -#TrustedSignersInitParameters: { -} - -#TrustedSignersItemsInitParameters: { -} - -#TrustedSignersItemsObservation: { - // AWS account ID or self - awsAccountNumber?: null | string @go(AwsAccountNumber,*string) - - // Set of CloudFront key pair IDs. - keyPairIds?: [...null | string] @go(KeyPairIds,[]*string) -} - -#TrustedSignersItemsParameters: { -} - -#TrustedSignersObservation: { - // Whether the distribution is enabled to accept end user requests for content. - enabled?: null | bool @go(Enabled,*bool) - - // List of nested attributes for each key group. - items?: [...#TrustedSignersItemsObservation] @go(Items,[]TrustedSignersItemsObservation) -} - -#TrustedSignersParameters: { -} - -#ViewerCertificateInitParameters: { - // ARN of the AWS Certificate Manager certificate that you wish to use with this distribution. Specify this, cloudfront_default_certificate, or iam_certificate_id. The ACM certificate must be in US-EAST-1. - acmCertificateArn?: null | string @go(AcmCertificateArn,*string) - - // true if you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name for your distribution. Specify this, acm_certificate_arn, or iam_certificate_id. - cloudfrontDefaultCertificate?: null | bool @go(CloudfrontDefaultCertificate,*bool) - - // IAM certificate identifier of the custom viewer certificate for this distribution if you are using a custom domain. Specify this, acm_certificate_arn, or cloudfront_default_certificate. - iamCertificateId?: null | string @go(IAMCertificateID,*string) - - // Minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections. Can only be set if cloudfront_default_certificate = false. See all possible values in this table under "Security policy." Some examples include: TLSv1.2_2019 and TLSv1.2_2021. Default: TLSv1. NOTE: If you are using a custom certificate (specified with acm_certificate_arn or iam_certificate_id), and have specified sni-only in ssl_support_method, TLSv1 or later must be specified. If you have specified vip in ssl_support_method, only SSLv3 or TLSv1 can be specified. If you have specified cloudfront_default_certificate, TLSv1 must be specified. - minimumProtocolVersion?: null | string @go(MinimumProtocolVersion,*string) - - // How you want CloudFront to serve HTTPS requests. One of vip or sni-only. Required if you specify acm_certificate_arn or iam_certificate_id. NOTE: vip causes CloudFront to use a dedicated IP address and may incur extra charges. - sslSupportMethod?: null | string @go(SSLSupportMethod,*string) -} - -#ViewerCertificateObservation: { - // ARN of the AWS Certificate Manager certificate that you wish to use with this distribution. Specify this, cloudfront_default_certificate, or iam_certificate_id. The ACM certificate must be in US-EAST-1. - acmCertificateArn?: null | string @go(AcmCertificateArn,*string) - - // true if you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name for your distribution. Specify this, acm_certificate_arn, or iam_certificate_id. - cloudfrontDefaultCertificate?: null | bool @go(CloudfrontDefaultCertificate,*bool) - - // IAM certificate identifier of the custom viewer certificate for this distribution if you are using a custom domain. Specify this, acm_certificate_arn, or cloudfront_default_certificate. - iamCertificateId?: null | string @go(IAMCertificateID,*string) - - // Minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections. Can only be set if cloudfront_default_certificate = false. See all possible values in this table under "Security policy." Some examples include: TLSv1.2_2019 and TLSv1.2_2021. Default: TLSv1. NOTE: If you are using a custom certificate (specified with acm_certificate_arn or iam_certificate_id), and have specified sni-only in ssl_support_method, TLSv1 or later must be specified. If you have specified vip in ssl_support_method, only SSLv3 or TLSv1 can be specified. If you have specified cloudfront_default_certificate, TLSv1 must be specified. - minimumProtocolVersion?: null | string @go(MinimumProtocolVersion,*string) - - // How you want CloudFront to serve HTTPS requests. One of vip or sni-only. Required if you specify acm_certificate_arn or iam_certificate_id. NOTE: vip causes CloudFront to use a dedicated IP address and may incur extra charges. - sslSupportMethod?: null | string @go(SSLSupportMethod,*string) -} - -#ViewerCertificateParameters: { - // ARN of the AWS Certificate Manager certificate that you wish to use with this distribution. Specify this, cloudfront_default_certificate, or iam_certificate_id. The ACM certificate must be in US-EAST-1. - // +kubebuilder:validation:Optional - acmCertificateArn?: null | string @go(AcmCertificateArn,*string) - - // true if you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name for your distribution. Specify this, acm_certificate_arn, or iam_certificate_id. - // +kubebuilder:validation:Optional - cloudfrontDefaultCertificate?: null | bool @go(CloudfrontDefaultCertificate,*bool) - - // IAM certificate identifier of the custom viewer certificate for this distribution if you are using a custom domain. Specify this, acm_certificate_arn, or cloudfront_default_certificate. - // +kubebuilder:validation:Optional - iamCertificateId?: null | string @go(IAMCertificateID,*string) - - // Minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections. Can only be set if cloudfront_default_certificate = false. See all possible values in this table under "Security policy." Some examples include: TLSv1.2_2019 and TLSv1.2_2021. Default: TLSv1. NOTE: If you are using a custom certificate (specified with acm_certificate_arn or iam_certificate_id), and have specified sni-only in ssl_support_method, TLSv1 or later must be specified. If you have specified vip in ssl_support_method, only SSLv3 or TLSv1 can be specified. If you have specified cloudfront_default_certificate, TLSv1 must be specified. - // +kubebuilder:validation:Optional - minimumProtocolVersion?: null | string @go(MinimumProtocolVersion,*string) - - // How you want CloudFront to serve HTTPS requests. One of vip or sni-only. Required if you specify acm_certificate_arn or iam_certificate_id. NOTE: vip causes CloudFront to use a dedicated IP address and may incur extra charges. - // +kubebuilder:validation:Optional - sslSupportMethod?: null | string @go(SSLSupportMethod,*string) -} - -// DistributionSpec defines the desired state of Distribution -#DistributionSpec: { - v1.#ResourceSpec - forProvider: #DistributionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DistributionInitParameters @go(InitProvider) -} - -// DistributionStatus defines the observed state of Distribution. -#DistributionStatus: { - v1.#ResourceStatus - atProvider?: #DistributionObservation @go(AtProvider) -} - -// Distribution is the Schema for the Distributions API. Provides a CloudFront web distribution resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Distribution: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.defaultCacheBehavior) || (has(self.initProvider) && has(self.initProvider.defaultCacheBehavior))",message="spec.forProvider.defaultCacheBehavior is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.enabled) || (has(self.initProvider) && has(self.initProvider.enabled))",message="spec.forProvider.enabled is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.origin) || (has(self.initProvider) && has(self.initProvider.origin))",message="spec.forProvider.origin is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.restrictions) || (has(self.initProvider) && has(self.initProvider.restrictions))",message="spec.forProvider.restrictions is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.viewerCertificate) || (has(self.initProvider) && has(self.initProvider.viewerCertificate))",message="spec.forProvider.viewerCertificate is a required parameter" - spec: #DistributionSpec @go(Spec) - status?: #DistributionStatus @go(Status) -} - -// DistributionList contains a list of Distributions -#DistributionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Distribution] @go(Items,[]Distribution) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_fieldlevelencryptionconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_fieldlevelencryptionconfig_types_go_gen.cue deleted file mode 100644 index ebebede..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_fieldlevelencryptionconfig_types_go_gen.cue +++ /dev/null @@ -1,255 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ContentTypeProfileConfigInitParameters: { - // Object that contains an attribute items that contains the list of configurations for a field-level encryption content type-profile. See Content Type Profile. - contentTypeProfiles?: [...#ContentTypeProfilesInitParameters] @go(ContentTypeProfiles,[]ContentTypeProfilesInitParameters) - - // specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown. - forwardWhenContentTypeIsUnknown?: null | bool @go(ForwardWhenContentTypeIsUnknown,*bool) -} - -#ContentTypeProfileConfigObservation: { - // Object that contains an attribute items that contains the list of configurations for a field-level encryption content type-profile. See Content Type Profile. - contentTypeProfiles?: [...#ContentTypeProfilesObservation] @go(ContentTypeProfiles,[]ContentTypeProfilesObservation) - - // specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown. - forwardWhenContentTypeIsUnknown?: null | bool @go(ForwardWhenContentTypeIsUnknown,*bool) -} - -#ContentTypeProfileConfigParameters: { - // Object that contains an attribute items that contains the list of configurations for a field-level encryption content type-profile. See Content Type Profile. - // +kubebuilder:validation:Optional - contentTypeProfiles: [...#ContentTypeProfilesParameters] @go(ContentTypeProfiles,[]ContentTypeProfilesParameters) - - // specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown. - // +kubebuilder:validation:Optional - forwardWhenContentTypeIsUnknown?: null | bool @go(ForwardWhenContentTypeIsUnknown,*bool) -} - -#ContentTypeProfilesInitParameters: { - items?: [...#ContentTypeProfilesItemsInitParameters] @go(Items,[]ContentTypeProfilesItemsInitParameters) -} - -#ContentTypeProfilesItemsInitParameters: { - // he content type for a field-level encryption content type-profile mapping. Valid value is application/x-www-form-urlencoded. - contentType?: null | string @go(ContentType,*string) - - // The format for a field-level encryption content type-profile mapping. Valid value is URLEncoded. - format?: null | string @go(Format,*string) - - // The profile ID for a field-level encryption content type-profile mapping. - profileId?: null | string @go(ProfileID,*string) -} - -#ContentTypeProfilesItemsObservation: { - // he content type for a field-level encryption content type-profile mapping. Valid value is application/x-www-form-urlencoded. - contentType?: null | string @go(ContentType,*string) - - // The format for a field-level encryption content type-profile mapping. Valid value is URLEncoded. - format?: null | string @go(Format,*string) - - // The profile ID for a field-level encryption content type-profile mapping. - profileId?: null | string @go(ProfileID,*string) -} - -#ContentTypeProfilesItemsParameters: { - // he content type for a field-level encryption content type-profile mapping. Valid value is application/x-www-form-urlencoded. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // The format for a field-level encryption content type-profile mapping. Valid value is URLEncoded. - // +kubebuilder:validation:Optional - format?: null | string @go(Format,*string) - - // The profile ID for a field-level encryption content type-profile mapping. - // +kubebuilder:validation:Optional - profileId?: null | string @go(ProfileID,*string) -} - -#ContentTypeProfilesObservation: { - items?: [...#ContentTypeProfilesItemsObservation] @go(Items,[]ContentTypeProfilesItemsObservation) -} - -#ContentTypeProfilesParameters: { - // +kubebuilder:validation:Optional - items: [...#ContentTypeProfilesItemsParameters] @go(Items,[]ContentTypeProfilesItemsParameters) -} - -#FieldLevelEncryptionConfigInitParameters: { - // An optional comment about the Field Level Encryption Config. - comment?: null | string @go(Comment,*string) - - // Content Type Profile Config specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use. - contentTypeProfileConfig?: [...#ContentTypeProfileConfigInitParameters] @go(ContentTypeProfileConfig,[]ContentTypeProfileConfigInitParameters) - - // Query Arg Profile Config that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request. - queryArgProfileConfig?: [...#QueryArgProfileConfigInitParameters] @go(QueryArgProfileConfig,[]QueryArgProfileConfigInitParameters) -} - -#FieldLevelEncryptionConfigObservation: { - // Internal value used by CloudFront to allow future updates to the Field Level Encryption Config. - callerReference?: null | string @go(CallerReference,*string) - - // An optional comment about the Field Level Encryption Config. - comment?: null | string @go(Comment,*string) - - // Content Type Profile Config specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use. - contentTypeProfileConfig?: [...#ContentTypeProfileConfigObservation] @go(ContentTypeProfileConfig,[]ContentTypeProfileConfigObservation) - - // The current version of the Field Level Encryption Config. For example: E2QWRUHAPOMQZL. - etag?: null | string @go(Etag,*string) - - // The identifier for the Field Level Encryption Config. For example: K3D5EWEUDCCXON. - id?: null | string @go(ID,*string) - - // Query Arg Profile Config that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request. - queryArgProfileConfig?: [...#QueryArgProfileConfigObservation] @go(QueryArgProfileConfig,[]QueryArgProfileConfigObservation) -} - -#FieldLevelEncryptionConfigParameters: { - // An optional comment about the Field Level Encryption Config. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // Content Type Profile Config specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use. - // +kubebuilder:validation:Optional - contentTypeProfileConfig?: [...#ContentTypeProfileConfigParameters] @go(ContentTypeProfileConfig,[]ContentTypeProfileConfigParameters) - - // Query Arg Profile Config that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request. - // +kubebuilder:validation:Optional - queryArgProfileConfig?: [...#QueryArgProfileConfigParameters] @go(QueryArgProfileConfig,[]QueryArgProfileConfigParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#QueryArgProfileConfigInitParameters: { - // Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown. - forwardWhenQueryArgProfileIsUnknown?: null | bool @go(ForwardWhenQueryArgProfileIsUnknown,*bool) - - // Object that contains an attribute items that contains the list ofrofiles specified for query argument-profile mapping for field-level encryption. see Query Arg Profile. - queryArgProfiles?: [...#QueryArgProfilesInitParameters] @go(QueryArgProfiles,[]QueryArgProfilesInitParameters) -} - -#QueryArgProfileConfigObservation: { - // Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown. - forwardWhenQueryArgProfileIsUnknown?: null | bool @go(ForwardWhenQueryArgProfileIsUnknown,*bool) - - // Object that contains an attribute items that contains the list ofrofiles specified for query argument-profile mapping for field-level encryption. see Query Arg Profile. - queryArgProfiles?: [...#QueryArgProfilesObservation] @go(QueryArgProfiles,[]QueryArgProfilesObservation) -} - -#QueryArgProfileConfigParameters: { - // Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown. - // +kubebuilder:validation:Optional - forwardWhenQueryArgProfileIsUnknown?: null | bool @go(ForwardWhenQueryArgProfileIsUnknown,*bool) - - // Object that contains an attribute items that contains the list ofrofiles specified for query argument-profile mapping for field-level encryption. see Query Arg Profile. - // +kubebuilder:validation:Optional - queryArgProfiles?: [...#QueryArgProfilesParameters] @go(QueryArgProfiles,[]QueryArgProfilesParameters) -} - -#QueryArgProfilesInitParameters: { - items?: [...#QueryArgProfilesItemsInitParameters] @go(Items,[]QueryArgProfilesItemsInitParameters) -} - -#QueryArgProfilesItemsInitParameters: { - // Query argument for field-level encryption query argument-profile mapping. - queryArg?: null | string @go(QueryArg,*string) -} - -#QueryArgProfilesItemsObservation: { - // The profile ID for a field-level encryption content type-profile mapping. - profileId?: null | string @go(ProfileID,*string) - - // Query argument for field-level encryption query argument-profile mapping. - queryArg?: null | string @go(QueryArg,*string) -} - -#QueryArgProfilesItemsParameters: { - // The profile ID for a field-level encryption content type-profile mapping. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudfront/v1beta1.FieldLevelEncryptionProfile - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - profileId?: null | string @go(ProfileID,*string) - - // Reference to a FieldLevelEncryptionProfile in cloudfront to populate profileId. - // +kubebuilder:validation:Optional - profileIdRef?: null | v1.#Reference @go(ProfileIDRef,*v1.Reference) - - // Selector for a FieldLevelEncryptionProfile in cloudfront to populate profileId. - // +kubebuilder:validation:Optional - profileIdSelector?: null | v1.#Selector @go(ProfileIDSelector,*v1.Selector) - - // Query argument for field-level encryption query argument-profile mapping. - // +kubebuilder:validation:Optional - queryArg?: null | string @go(QueryArg,*string) -} - -#QueryArgProfilesObservation: { - items?: [...#QueryArgProfilesItemsObservation] @go(Items,[]QueryArgProfilesItemsObservation) -} - -#QueryArgProfilesParameters: { - // +kubebuilder:validation:Optional - items?: [...#QueryArgProfilesItemsParameters] @go(Items,[]QueryArgProfilesItemsParameters) -} - -// FieldLevelEncryptionConfigSpec defines the desired state of FieldLevelEncryptionConfig -#FieldLevelEncryptionConfigSpec: { - v1.#ResourceSpec - forProvider: #FieldLevelEncryptionConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FieldLevelEncryptionConfigInitParameters @go(InitProvider) -} - -// FieldLevelEncryptionConfigStatus defines the observed state of FieldLevelEncryptionConfig. -#FieldLevelEncryptionConfigStatus: { - v1.#ResourceStatus - atProvider?: #FieldLevelEncryptionConfigObservation @go(AtProvider) -} - -// FieldLevelEncryptionConfig is the Schema for the FieldLevelEncryptionConfigs API. Provides a CloudFront Field-level Encryption Config resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FieldLevelEncryptionConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.contentTypeProfileConfig) || (has(self.initProvider) && has(self.initProvider.contentTypeProfileConfig))",message="spec.forProvider.contentTypeProfileConfig is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.queryArgProfileConfig) || (has(self.initProvider) && has(self.initProvider.queryArgProfileConfig))",message="spec.forProvider.queryArgProfileConfig is a required parameter" - spec: #FieldLevelEncryptionConfigSpec @go(Spec) - status?: #FieldLevelEncryptionConfigStatus @go(Status) -} - -// FieldLevelEncryptionConfigList contains a list of FieldLevelEncryptionConfigs -#FieldLevelEncryptionConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FieldLevelEncryptionConfig] @go(Items,[]FieldLevelEncryptionConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_fieldlevelencryptionprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_fieldlevelencryptionprofile_types_go_gen.cue deleted file mode 100644 index 97e2745..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_fieldlevelencryptionprofile_types_go_gen.cue +++ /dev/null @@ -1,177 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EncryptionEntitiesInitParameters: { - items?: [...#EncryptionEntitiesItemsInitParameters] @go(Items,[]EncryptionEntitiesItemsInitParameters) -} - -#EncryptionEntitiesItemsInitParameters: { - // Object that contains an attribute items that contains the list of field patterns in a field-level encryption content type profile specify the fields that you want to be encrypted. - fieldPatterns?: [...#FieldPatternsInitParameters] @go(FieldPatterns,[]FieldPatternsInitParameters) - - // The provider associated with the public key being used for encryption. - providerId?: null | string @go(ProviderID,*string) -} - -#EncryptionEntitiesItemsObservation: { - // Object that contains an attribute items that contains the list of field patterns in a field-level encryption content type profile specify the fields that you want to be encrypted. - fieldPatterns?: [...#FieldPatternsObservation] @go(FieldPatterns,[]FieldPatternsObservation) - - // The provider associated with the public key being used for encryption. - providerId?: null | string @go(ProviderID,*string) - - // The public key associated with a set of field-level encryption patterns, to be used when encrypting the fields that match the patterns. - publicKeyId?: null | string @go(PublicKeyID,*string) -} - -#EncryptionEntitiesItemsParameters: { - // Object that contains an attribute items that contains the list of field patterns in a field-level encryption content type profile specify the fields that you want to be encrypted. - // +kubebuilder:validation:Optional - fieldPatterns: [...#FieldPatternsParameters] @go(FieldPatterns,[]FieldPatternsParameters) - - // The provider associated with the public key being used for encryption. - // +kubebuilder:validation:Optional - providerId?: null | string @go(ProviderID,*string) - - // The public key associated with a set of field-level encryption patterns, to be used when encrypting the fields that match the patterns. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudfront/v1beta1.PublicKey - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - publicKeyId?: null | string @go(PublicKeyID,*string) - - // Reference to a PublicKey in cloudfront to populate publicKeyId. - // +kubebuilder:validation:Optional - publicKeyIdRef?: null | v1.#Reference @go(PublicKeyIDRef,*v1.Reference) - - // Selector for a PublicKey in cloudfront to populate publicKeyId. - // +kubebuilder:validation:Optional - publicKeyIdSelector?: null | v1.#Selector @go(PublicKeyIDSelector,*v1.Selector) -} - -#EncryptionEntitiesObservation: { - items?: [...#EncryptionEntitiesItemsObservation] @go(Items,[]EncryptionEntitiesItemsObservation) -} - -#EncryptionEntitiesParameters: { - // +kubebuilder:validation:Optional - items?: [...#EncryptionEntitiesItemsParameters] @go(Items,[]EncryptionEntitiesItemsParameters) -} - -#FieldLevelEncryptionProfileInitParameters: { - // An optional comment about the Field Level Encryption Profile. - comment?: null | string @go(Comment,*string) - - // The encryption entities config block for field-level encryption profiles that contains an attribute items which includes the encryption key and field pattern specifications. - encryptionEntities?: [...#EncryptionEntitiesInitParameters] @go(EncryptionEntities,[]EncryptionEntitiesInitParameters) - - // The name of the Field Level Encryption Profile. - name?: null | string @go(Name,*string) -} - -#FieldLevelEncryptionProfileObservation: { - // Internal value used by CloudFront to allow future updates to the Field Level Encryption Profile. - callerReference?: null | string @go(CallerReference,*string) - - // An optional comment about the Field Level Encryption Profile. - comment?: null | string @go(Comment,*string) - - // The encryption entities config block for field-level encryption profiles that contains an attribute items which includes the encryption key and field pattern specifications. - encryptionEntities?: [...#EncryptionEntitiesObservation] @go(EncryptionEntities,[]EncryptionEntitiesObservation) - - // The current version of the Field Level Encryption Profile. For example: E2QWRUHAPOMQZL. - etag?: null | string @go(Etag,*string) - - // The identifier for the Field Level Encryption Profile. For example: K3D5EWEUDCCXON. - id?: null | string @go(ID,*string) - - // The name of the Field Level Encryption Profile. - name?: null | string @go(Name,*string) -} - -#FieldLevelEncryptionProfileParameters: { - // An optional comment about the Field Level Encryption Profile. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // The encryption entities config block for field-level encryption profiles that contains an attribute items which includes the encryption key and field pattern specifications. - // +kubebuilder:validation:Optional - encryptionEntities?: [...#EncryptionEntitiesParameters] @go(EncryptionEntities,[]EncryptionEntitiesParameters) - - // The name of the Field Level Encryption Profile. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#FieldPatternsInitParameters: { - items?: [...null | string] @go(Items,[]*string) -} - -#FieldPatternsObservation: { - items?: [...null | string] @go(Items,[]*string) -} - -#FieldPatternsParameters: { - // +kubebuilder:validation:Optional - items?: [...null | string] @go(Items,[]*string) -} - -// FieldLevelEncryptionProfileSpec defines the desired state of FieldLevelEncryptionProfile -#FieldLevelEncryptionProfileSpec: { - v1.#ResourceSpec - forProvider: #FieldLevelEncryptionProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FieldLevelEncryptionProfileInitParameters @go(InitProvider) -} - -// FieldLevelEncryptionProfileStatus defines the observed state of FieldLevelEncryptionProfile. -#FieldLevelEncryptionProfileStatus: { - v1.#ResourceStatus - atProvider?: #FieldLevelEncryptionProfileObservation @go(AtProvider) -} - -// FieldLevelEncryptionProfile is the Schema for the FieldLevelEncryptionProfiles API. Provides a CloudFront Field-level Encryption Profile resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FieldLevelEncryptionProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.encryptionEntities) || (has(self.initProvider) && has(self.initProvider.encryptionEntities))",message="spec.forProvider.encryptionEntities is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #FieldLevelEncryptionProfileSpec @go(Spec) - status?: #FieldLevelEncryptionProfileStatus @go(Status) -} - -// FieldLevelEncryptionProfileList contains a list of FieldLevelEncryptionProfiles -#FieldLevelEncryptionProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FieldLevelEncryptionProfile] @go(Items,[]FieldLevelEncryptionProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_function_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_function_types_go_gen.cue deleted file mode 100644 index c2d1eaa..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_function_types_go_gen.cue +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#FunctionInitParameters: { - // Comment. - comment?: null | string @go(Comment,*string) - - // Whether to publish creation/change as Live CloudFront Function Version. Defaults to true. - publish?: null | bool @go(Publish,*bool) - - // Identifier of the function's runtime. Currently only cloudfront-js-1.0 is valid. - runtime?: null | string @go(Runtime,*string) -} - -#FunctionObservation: { - // Amazon Resource Name (ARN) identifying your CloudFront Function. - arn?: null | string @go(Arn,*string) - - // Comment. - comment?: null | string @go(Comment,*string) - - // ETag hash of the function. This is the value for the DEVELOPMENT stage of the function. - etag?: null | string @go(Etag,*string) - id?: null | string @go(ID,*string) - - // ETag hash of any LIVE stage of the function. - liveStageEtag?: null | string @go(LiveStageEtag,*string) - - // Whether to publish creation/change as Live CloudFront Function Version. Defaults to true. - publish?: null | bool @go(Publish,*bool) - - // Identifier of the function's runtime. Currently only cloudfront-js-1.0 is valid. - runtime?: null | string @go(Runtime,*string) - - // Status of the function. Can be UNPUBLISHED, UNASSOCIATED or ASSOCIATED. - status?: null | string @go(Status,*string) -} - -#FunctionParameters: { - // Source code of the function - // +kubebuilder:validation:Optional - codeSecretRef: v1.#SecretKeySelector @go(CodeSecretRef) - - // Comment. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // Whether to publish creation/change as Live CloudFront Function Version. Defaults to true. - // +kubebuilder:validation:Optional - publish?: null | bool @go(Publish,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Identifier of the function's runtime. Currently only cloudfront-js-1.0 is valid. - // +kubebuilder:validation:Optional - runtime?: null | string @go(Runtime,*string) -} - -// FunctionSpec defines the desired state of Function -#FunctionSpec: { - v1.#ResourceSpec - forProvider: #FunctionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FunctionInitParameters @go(InitProvider) -} - -// FunctionStatus defines the observed state of Function. -#FunctionStatus: { - v1.#ResourceStatus - atProvider?: #FunctionObservation @go(AtProvider) -} - -// Function is the Schema for the Functions API. Provides a CloudFront Function resource. With CloudFront Functions in Amazon CloudFront, you can write lightweight functions in JavaScript for high-scale, latency-sensitive CDN customizations. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Function: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.codeSecretRef)",message="spec.forProvider.codeSecretRef is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.runtime) || (has(self.initProvider) && has(self.initProvider.runtime))",message="spec.forProvider.runtime is a required parameter" - spec: #FunctionSpec @go(Spec) - status?: #FunctionStatus @go(Status) -} - -// FunctionList contains a list of Functions -#FunctionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Function] @go(Items,[]Function) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 7e03b83..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=cloudfront.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "cloudfront.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_keygroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_keygroup_types_go_gen.cue deleted file mode 100644 index 4e12e97..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_keygroup_types_go_gen.cue +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#KeyGroupInitParameters: { - // A comment to describe the key group.. - comment?: null | string @go(Comment,*string) - - // A name to identify the key group. - name?: null | string @go(Name,*string) -} - -#KeyGroupObservation: { - // A comment to describe the key group.. - comment?: null | string @go(Comment,*string) - - // The identifier for this version of the key group. - etag?: null | string @go(Etag,*string) - - // The identifier for the key group. - id?: null | string @go(ID,*string) - - // A list of the identifiers of the public keys in the key group. - items?: [...null | string] @go(Items,[]*string) - - // A name to identify the key group. - name?: null | string @go(Name,*string) -} - -#KeyGroupParameters: { - // A comment to describe the key group.. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // References to PublicKey to populate items. - // +kubebuilder:validation:Optional - itemRefs?: [...v1.#Reference] @go(ItemRefs,[]v1.Reference) - - // Selector for a list of PublicKey to populate items. - // +kubebuilder:validation:Optional - itemSelector?: null | v1.#Selector @go(ItemSelector,*v1.Selector) - - // A list of the identifiers of the public keys in the key group. - // +crossplane:generate:reference:type=PublicKey - // +crossplane:generate:reference:refFieldName=ItemRefs - // +crossplane:generate:reference:selectorFieldName=ItemSelector - // +kubebuilder:validation:Optional - items?: [...null | string] @go(Items,[]*string) - - // A name to identify the key group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// KeyGroupSpec defines the desired state of KeyGroup -#KeyGroupSpec: { - v1.#ResourceSpec - forProvider: #KeyGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #KeyGroupInitParameters @go(InitProvider) -} - -// KeyGroupStatus defines the observed state of KeyGroup. -#KeyGroupStatus: { - v1.#ResourceStatus - atProvider?: #KeyGroupObservation @go(AtProvider) -} - -// KeyGroup is the Schema for the KeyGroups API. Provides a CloudFront key group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#KeyGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #KeyGroupSpec @go(Spec) - status?: #KeyGroupStatus @go(Status) -} - -// KeyGroupList contains a list of KeyGroups -#KeyGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#KeyGroup] @go(Items,[]KeyGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_monitoringsubscription_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_monitoringsubscription_types_go_gen.cue deleted file mode 100644 index 8849de6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_monitoringsubscription_types_go_gen.cue +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MonitoringSubscriptionInitParameters: { - // A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution. - monitoringSubscription?: [...#MonitoringSubscriptionMonitoringSubscriptionInitParameters] @go(MonitoringSubscription,[]MonitoringSubscriptionMonitoringSubscriptionInitParameters) -} - -#MonitoringSubscriptionMonitoringSubscriptionInitParameters: { - // A subscription configuration for additional CloudWatch metrics. See below. - realtimeMetricsSubscriptionConfig?: [...#RealtimeMetricsSubscriptionConfigInitParameters] @go(RealtimeMetricsSubscriptionConfig,[]RealtimeMetricsSubscriptionConfigInitParameters) -} - -#MonitoringSubscriptionMonitoringSubscriptionObservation: { - // A subscription configuration for additional CloudWatch metrics. See below. - realtimeMetricsSubscriptionConfig?: [...#RealtimeMetricsSubscriptionConfigObservation] @go(RealtimeMetricsSubscriptionConfig,[]RealtimeMetricsSubscriptionConfigObservation) -} - -#MonitoringSubscriptionMonitoringSubscriptionParameters: { - // A subscription configuration for additional CloudWatch metrics. See below. - // +kubebuilder:validation:Optional - realtimeMetricsSubscriptionConfig: [...#RealtimeMetricsSubscriptionConfigParameters] @go(RealtimeMetricsSubscriptionConfig,[]RealtimeMetricsSubscriptionConfigParameters) -} - -#MonitoringSubscriptionObservation: { - // The ID of the distribution that you are enabling metrics for. - distributionId?: null | string @go(DistributionID,*string) - - // The ID of the CloudFront monitoring subscription, which corresponds to the distribution_id. - id?: null | string @go(ID,*string) - - // A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution. - monitoringSubscription?: [...#MonitoringSubscriptionMonitoringSubscriptionObservation] @go(MonitoringSubscription,[]MonitoringSubscriptionMonitoringSubscriptionObservation) -} - -#MonitoringSubscriptionParameters: { - // The ID of the distribution that you are enabling metrics for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudfront/v1beta1.Distribution - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - distributionId?: null | string @go(DistributionID,*string) - - // Reference to a Distribution in cloudfront to populate distributionId. - // +kubebuilder:validation:Optional - distributionIdRef?: null | v1.#Reference @go(DistributionIDRef,*v1.Reference) - - // Selector for a Distribution in cloudfront to populate distributionId. - // +kubebuilder:validation:Optional - distributionIdSelector?: null | v1.#Selector @go(DistributionIDSelector,*v1.Selector) - - // A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution. - // +kubebuilder:validation:Optional - monitoringSubscription?: [...#MonitoringSubscriptionMonitoringSubscriptionParameters] @go(MonitoringSubscription,[]MonitoringSubscriptionMonitoringSubscriptionParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#RealtimeMetricsSubscriptionConfigInitParameters: { - // A flag that indicates whether additional CloudWatch metrics are enabled for a given CloudFront distribution. Valid values are Enabled and Disabled. See below. - realtimeMetricsSubscriptionStatus?: null | string @go(RealtimeMetricsSubscriptionStatus,*string) -} - -#RealtimeMetricsSubscriptionConfigObservation: { - // A flag that indicates whether additional CloudWatch metrics are enabled for a given CloudFront distribution. Valid values are Enabled and Disabled. See below. - realtimeMetricsSubscriptionStatus?: null | string @go(RealtimeMetricsSubscriptionStatus,*string) -} - -#RealtimeMetricsSubscriptionConfigParameters: { - // A flag that indicates whether additional CloudWatch metrics are enabled for a given CloudFront distribution. Valid values are Enabled and Disabled. See below. - // +kubebuilder:validation:Optional - realtimeMetricsSubscriptionStatus?: null | string @go(RealtimeMetricsSubscriptionStatus,*string) -} - -// MonitoringSubscriptionSpec defines the desired state of MonitoringSubscription -#MonitoringSubscriptionSpec: { - v1.#ResourceSpec - forProvider: #MonitoringSubscriptionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MonitoringSubscriptionInitParameters @go(InitProvider) -} - -// MonitoringSubscriptionStatus defines the observed state of MonitoringSubscription. -#MonitoringSubscriptionStatus: { - v1.#ResourceStatus - atProvider?: #MonitoringSubscriptionObservation @go(AtProvider) -} - -// MonitoringSubscription is the Schema for the MonitoringSubscriptions API. Provides a CloudFront monitoring subscription resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MonitoringSubscription: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.monitoringSubscription) || (has(self.initProvider) && has(self.initProvider.monitoringSubscription))",message="spec.forProvider.monitoringSubscription is a required parameter" - spec: #MonitoringSubscriptionSpec @go(Spec) - status?: #MonitoringSubscriptionStatus @go(Status) -} - -// MonitoringSubscriptionList contains a list of MonitoringSubscriptions -#MonitoringSubscriptionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MonitoringSubscription] @go(Items,[]MonitoringSubscription) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_originaccesscontrol_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_originaccesscontrol_types_go_gen.cue deleted file mode 100644 index df3ca87..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_originaccesscontrol_types_go_gen.cue +++ /dev/null @@ -1,127 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#OriginAccessControlInitParameters: { - // The description of the Origin Access Control. - description?: null | string @go(Description,*string) - - // A name that identifies the Origin Access Control. - name?: null | string @go(Name,*string) - - // The type of origin that this Origin Access Control is for. Valid values are s3, and mediastore. - originAccessControlOriginType?: null | string @go(OriginAccessControlOriginType,*string) - - // Specifies which requests CloudFront signs. Specify always for the most common use case. Allowed values: always, never, and no-override. - signingBehavior?: null | string @go(SigningBehavior,*string) - - // Determines how CloudFront signs (authenticates) requests. The only valid value is sigv4. - signingProtocol?: null | string @go(SigningProtocol,*string) -} - -#OriginAccessControlObservation: { - // The description of the Origin Access Control. - description?: null | string @go(Description,*string) - - // The current version of this Origin Access Control. - etag?: null | string @go(Etag,*string) - - // The unique identifier of this Origin Access Control. - id?: null | string @go(ID,*string) - - // A name that identifies the Origin Access Control. - name?: null | string @go(Name,*string) - - // The type of origin that this Origin Access Control is for. Valid values are s3, and mediastore. - originAccessControlOriginType?: null | string @go(OriginAccessControlOriginType,*string) - - // Specifies which requests CloudFront signs. Specify always for the most common use case. Allowed values: always, never, and no-override. - signingBehavior?: null | string @go(SigningBehavior,*string) - - // Determines how CloudFront signs (authenticates) requests. The only valid value is sigv4. - signingProtocol?: null | string @go(SigningProtocol,*string) -} - -#OriginAccessControlParameters: { - // The description of the Origin Access Control. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A name that identifies the Origin Access Control. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The type of origin that this Origin Access Control is for. Valid values are s3, and mediastore. - // +kubebuilder:validation:Optional - originAccessControlOriginType?: null | string @go(OriginAccessControlOriginType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies which requests CloudFront signs. Specify always for the most common use case. Allowed values: always, never, and no-override. - // +kubebuilder:validation:Optional - signingBehavior?: null | string @go(SigningBehavior,*string) - - // Determines how CloudFront signs (authenticates) requests. The only valid value is sigv4. - // +kubebuilder:validation:Optional - signingProtocol?: null | string @go(SigningProtocol,*string) -} - -// OriginAccessControlSpec defines the desired state of OriginAccessControl -#OriginAccessControlSpec: { - v1.#ResourceSpec - forProvider: #OriginAccessControlParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #OriginAccessControlInitParameters @go(InitProvider) -} - -// OriginAccessControlStatus defines the observed state of OriginAccessControl. -#OriginAccessControlStatus: { - v1.#ResourceStatus - atProvider?: #OriginAccessControlObservation @go(AtProvider) -} - -// OriginAccessControl is the Schema for the OriginAccessControls API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#OriginAccessControl: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.originAccessControlOriginType) || (has(self.initProvider) && has(self.initProvider.originAccessControlOriginType))",message="spec.forProvider.originAccessControlOriginType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.signingBehavior) || (has(self.initProvider) && has(self.initProvider.signingBehavior))",message="spec.forProvider.signingBehavior is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.signingProtocol) || (has(self.initProvider) && has(self.initProvider.signingProtocol))",message="spec.forProvider.signingProtocol is a required parameter" - spec: #OriginAccessControlSpec @go(Spec) - status?: #OriginAccessControlStatus @go(Status) -} - -// OriginAccessControlList contains a list of OriginAccessControls -#OriginAccessControlList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#OriginAccessControl] @go(Items,[]OriginAccessControl) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_originaccessidentity_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_originaccessidentity_types_go_gen.cue deleted file mode 100644 index 7dfa511..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_originaccessidentity_types_go_gen.cue +++ /dev/null @@ -1,100 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#OriginAccessIdentityInitParameters: { - // An optional comment for the origin access identity. - comment?: null | string @go(Comment,*string) -} - -#OriginAccessIdentityObservation: { - // Internal value used by CloudFront to allow future - // updates to the origin access identity. - callerReference?: null | string @go(CallerReference,*string) - - // A shortcut to the full path for the - // origin access identity to use in CloudFront, see below. - cloudfrontAccessIdentityPath?: null | string @go(CloudfrontAccessIdentityPath,*string) - - // An optional comment for the origin access identity. - comment?: null | string @go(Comment,*string) - - // The current version of the origin access identity's information. - // For example: E2QWRUHAPOMQZL. - etag?: null | string @go(Etag,*string) - - // A pre-generated ARN for use in S3 bucket policies (see below). - // Example: arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E2QWRUHAPOMQZL. - iamArn?: null | string @go(IAMArn,*string) - - // The identifier for the distribution. For example: EDFDVBD632BHDS5. - id?: null | string @go(ID,*string) - - // The Amazon S3 canonical user ID for the origin - // access identity, which you use when giving the origin access identity read - // permission to an object in Amazon S3. - s3CanonicalUserId?: null | string @go(S3CanonicalUserID,*string) -} - -#OriginAccessIdentityParameters: { - // An optional comment for the origin access identity. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// OriginAccessIdentitySpec defines the desired state of OriginAccessIdentity -#OriginAccessIdentitySpec: { - v1.#ResourceSpec - forProvider: #OriginAccessIdentityParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #OriginAccessIdentityInitParameters @go(InitProvider) -} - -// OriginAccessIdentityStatus defines the observed state of OriginAccessIdentity. -#OriginAccessIdentityStatus: { - v1.#ResourceStatus - atProvider?: #OriginAccessIdentityObservation @go(AtProvider) -} - -// OriginAccessIdentity is the Schema for the OriginAccessIdentitys API. Provides a CloudFront origin access identity. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#OriginAccessIdentity: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #OriginAccessIdentitySpec @go(Spec) - status?: #OriginAccessIdentityStatus @go(Status) -} - -// OriginAccessIdentityList contains a list of OriginAccessIdentitys -#OriginAccessIdentityList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#OriginAccessIdentity] @go(Items,[]OriginAccessIdentity) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_originrequestpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_originrequestpolicy_types_go_gen.cue deleted file mode 100644 index 424e49a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_originrequestpolicy_types_go_gen.cue +++ /dev/null @@ -1,209 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CookiesConfigCookiesInitParameters: { - items?: [...null | string] @go(Items,[]*string) -} - -#CookiesConfigCookiesObservation: { - items?: [...null | string] @go(Items,[]*string) -} - -#CookiesConfigCookiesParameters: { - // +kubebuilder:validation:Optional - items?: [...null | string] @go(Items,[]*string) -} - -#HeadersConfigHeadersInitParameters: { - items?: [...null | string] @go(Items,[]*string) -} - -#HeadersConfigHeadersObservation: { - items?: [...null | string] @go(Items,[]*string) -} - -#HeadersConfigHeadersParameters: { - // +kubebuilder:validation:Optional - items?: [...null | string] @go(Items,[]*string) -} - -#OriginRequestPolicyCookiesConfigInitParameters: { - cookieBehavior?: null | string @go(CookieBehavior,*string) - cookies?: [...#CookiesConfigCookiesInitParameters] @go(Cookies,[]CookiesConfigCookiesInitParameters) -} - -#OriginRequestPolicyCookiesConfigObservation: { - cookieBehavior?: null | string @go(CookieBehavior,*string) - cookies?: [...#CookiesConfigCookiesObservation] @go(Cookies,[]CookiesConfigCookiesObservation) -} - -#OriginRequestPolicyCookiesConfigParameters: { - // +kubebuilder:validation:Optional - cookieBehavior?: null | string @go(CookieBehavior,*string) - - // +kubebuilder:validation:Optional - cookies?: [...#CookiesConfigCookiesParameters] @go(Cookies,[]CookiesConfigCookiesParameters) -} - -#OriginRequestPolicyHeadersConfigInitParameters: { - headerBehavior?: null | string @go(HeaderBehavior,*string) - headers?: [...#HeadersConfigHeadersInitParameters] @go(Headers,[]HeadersConfigHeadersInitParameters) -} - -#OriginRequestPolicyHeadersConfigObservation: { - headerBehavior?: null | string @go(HeaderBehavior,*string) - headers?: [...#HeadersConfigHeadersObservation] @go(Headers,[]HeadersConfigHeadersObservation) -} - -#OriginRequestPolicyHeadersConfigParameters: { - // +kubebuilder:validation:Optional - headerBehavior?: null | string @go(HeaderBehavior,*string) - - // +kubebuilder:validation:Optional - headers?: [...#HeadersConfigHeadersParameters] @go(Headers,[]HeadersConfigHeadersParameters) -} - -#OriginRequestPolicyInitParameters: { - // Comment to describe the origin request policy. - comment?: null | string @go(Comment,*string) - - // Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information. - cookiesConfig?: [...#OriginRequestPolicyCookiesConfigInitParameters] @go(CookiesConfig,[]OriginRequestPolicyCookiesConfigInitParameters) - - // Object that determines whether any HTTP headers (and if so, which headers) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information. - headersConfig?: [...#OriginRequestPolicyHeadersConfigInitParameters] @go(HeadersConfig,[]OriginRequestPolicyHeadersConfigInitParameters) - - // Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information. - queryStringsConfig?: [...#OriginRequestPolicyQueryStringsConfigInitParameters] @go(QueryStringsConfig,[]OriginRequestPolicyQueryStringsConfigInitParameters) -} - -#OriginRequestPolicyObservation: { - // Comment to describe the origin request policy. - comment?: null | string @go(Comment,*string) - - // Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information. - cookiesConfig?: [...#OriginRequestPolicyCookiesConfigObservation] @go(CookiesConfig,[]OriginRequestPolicyCookiesConfigObservation) - - // The current version of the origin request policy. - etag?: null | string @go(Etag,*string) - - // Object that determines whether any HTTP headers (and if so, which headers) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information. - headersConfig?: [...#OriginRequestPolicyHeadersConfigObservation] @go(HeadersConfig,[]OriginRequestPolicyHeadersConfigObservation) - - // The identifier for the origin request policy. - id?: null | string @go(ID,*string) - - // Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information. - queryStringsConfig?: [...#OriginRequestPolicyQueryStringsConfigObservation] @go(QueryStringsConfig,[]OriginRequestPolicyQueryStringsConfigObservation) -} - -#OriginRequestPolicyParameters: { - // Comment to describe the origin request policy. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information. - // +kubebuilder:validation:Optional - cookiesConfig?: [...#OriginRequestPolicyCookiesConfigParameters] @go(CookiesConfig,[]OriginRequestPolicyCookiesConfigParameters) - - // Object that determines whether any HTTP headers (and if so, which headers) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information. - // +kubebuilder:validation:Optional - headersConfig?: [...#OriginRequestPolicyHeadersConfigParameters] @go(HeadersConfig,[]OriginRequestPolicyHeadersConfigParameters) - - // Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information. - // +kubebuilder:validation:Optional - queryStringsConfig?: [...#OriginRequestPolicyQueryStringsConfigParameters] @go(QueryStringsConfig,[]OriginRequestPolicyQueryStringsConfigParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#OriginRequestPolicyQueryStringsConfigInitParameters: { - queryStringBehavior?: null | string @go(QueryStringBehavior,*string) - queryStrings?: [...#QueryStringsConfigQueryStringsInitParameters] @go(QueryStrings,[]QueryStringsConfigQueryStringsInitParameters) -} - -#OriginRequestPolicyQueryStringsConfigObservation: { - queryStringBehavior?: null | string @go(QueryStringBehavior,*string) - queryStrings?: [...#QueryStringsConfigQueryStringsObservation] @go(QueryStrings,[]QueryStringsConfigQueryStringsObservation) -} - -#OriginRequestPolicyQueryStringsConfigParameters: { - // +kubebuilder:validation:Optional - queryStringBehavior?: null | string @go(QueryStringBehavior,*string) - - // +kubebuilder:validation:Optional - queryStrings?: [...#QueryStringsConfigQueryStringsParameters] @go(QueryStrings,[]QueryStringsConfigQueryStringsParameters) -} - -#QueryStringsConfigQueryStringsInitParameters: { - items?: [...null | string] @go(Items,[]*string) -} - -#QueryStringsConfigQueryStringsObservation: { - items?: [...null | string] @go(Items,[]*string) -} - -#QueryStringsConfigQueryStringsParameters: { - // +kubebuilder:validation:Optional - items?: [...null | string] @go(Items,[]*string) -} - -// OriginRequestPolicySpec defines the desired state of OriginRequestPolicy -#OriginRequestPolicySpec: { - v1.#ResourceSpec - forProvider: #OriginRequestPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #OriginRequestPolicyInitParameters @go(InitProvider) -} - -// OriginRequestPolicyStatus defines the observed state of OriginRequestPolicy. -#OriginRequestPolicyStatus: { - v1.#ResourceStatus - atProvider?: #OriginRequestPolicyObservation @go(AtProvider) -} - -// OriginRequestPolicy is the Schema for the OriginRequestPolicys API. Determines the values that CloudFront includes in requests that it sends to the origin. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#OriginRequestPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.cookiesConfig) || (has(self.initProvider) && has(self.initProvider.cookiesConfig))",message="spec.forProvider.cookiesConfig is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.headersConfig) || (has(self.initProvider) && has(self.initProvider.headersConfig))",message="spec.forProvider.headersConfig is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.queryStringsConfig) || (has(self.initProvider) && has(self.initProvider.queryStringsConfig))",message="spec.forProvider.queryStringsConfig is a required parameter" - spec: #OriginRequestPolicySpec @go(Spec) - status?: #OriginRequestPolicyStatus @go(Status) -} - -// OriginRequestPolicyList contains a list of OriginRequestPolicys -#OriginRequestPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#OriginRequestPolicy] @go(Items,[]OriginRequestPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_publickey_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_publickey_types_go_gen.cue deleted file mode 100644 index 6f3a42f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_publickey_types_go_gen.cue +++ /dev/null @@ -1,101 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PublicKeyInitParameters: { - // An optional comment about the public key. - comment?: null | string @go(Comment,*string) - - // The name for the public key. - name?: null | string @go(Name,*string) -} - -#PublicKeyObservation: { - // Internal value used by CloudFront to allow future updates to the public key configuration. - callerReference?: null | string @go(CallerReference,*string) - - // An optional comment about the public key. - comment?: null | string @go(Comment,*string) - - // The current version of the public key. For example: E2QWRUHAPOMQZL. - etag?: null | string @go(Etag,*string) - - // The identifier for the public key. For example: K3D5EWEUDCCXON. - id?: null | string @go(ID,*string) - - // The name for the public key. - name?: null | string @go(Name,*string) -} - -#PublicKeyParameters: { - // An optional comment about the public key. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // The encoded public key that you want to add to CloudFront to use with features like field-level encryption. - // +kubebuilder:validation:Optional - encodedKeySecretRef: v1.#SecretKeySelector @go(EncodedKeySecretRef) - - // The name for the public key. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// PublicKeySpec defines the desired state of PublicKey -#PublicKeySpec: { - v1.#ResourceSpec - forProvider: #PublicKeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PublicKeyInitParameters @go(InitProvider) -} - -// PublicKeyStatus defines the observed state of PublicKey. -#PublicKeyStatus: { - v1.#ResourceStatus - atProvider?: #PublicKeyObservation @go(AtProvider) -} - -// PublicKey is the Schema for the PublicKeys API. Provides a CloudFront Public Key which you add to CloudFront to use with features like field-level encryption. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PublicKey: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.encodedKeySecretRef)",message="spec.forProvider.encodedKeySecretRef is a required parameter" - spec: #PublicKeySpec @go(Spec) - status?: #PublicKeyStatus @go(Status) -} - -// PublicKeyList contains a list of PublicKeys -#PublicKeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PublicKey] @go(Items,[]PublicKey) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_realtimelogconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_realtimelogconfig_types_go_gen.cue deleted file mode 100644 index cc60a99..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_realtimelogconfig_types_go_gen.cue +++ /dev/null @@ -1,186 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EndpointInitParameters: { - // The Amazon Kinesis data stream configuration. - kinesisStreamConfig?: [...#KinesisStreamConfigInitParameters] @go(KinesisStreamConfig,[]KinesisStreamConfigInitParameters) - - // The type of data stream where real-time log data is sent. The only valid value is Kinesis. - streamType?: null | string @go(StreamType,*string) -} - -#EndpointObservation: { - // The Amazon Kinesis data stream configuration. - kinesisStreamConfig?: [...#KinesisStreamConfigObservation] @go(KinesisStreamConfig,[]KinesisStreamConfigObservation) - - // The type of data stream where real-time log data is sent. The only valid value is Kinesis. - streamType?: null | string @go(StreamType,*string) -} - -#EndpointParameters: { - // The Amazon Kinesis data stream configuration. - // +kubebuilder:validation:Optional - kinesisStreamConfig: [...#KinesisStreamConfigParameters] @go(KinesisStreamConfig,[]KinesisStreamConfigParameters) - - // The type of data stream where real-time log data is sent. The only valid value is Kinesis. - // +kubebuilder:validation:Optional - streamType?: null | string @go(StreamType,*string) -} - -#KinesisStreamConfigInitParameters: { -} - -#KinesisStreamConfigObservation: { - // The ARN of an IAM role that CloudFront can use to send real-time log data to the Kinesis data stream. - // See the AWS documentation for more information. - roleArn?: null | string @go(RoleArn,*string) - - // The ARN of the Kinesis data stream. - streamArn?: null | string @go(StreamArn,*string) -} - -#KinesisStreamConfigParameters: { - // The ARN of an IAM role that CloudFront can use to send real-time log data to the Kinesis data stream. - // See the AWS documentation for more information. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The ARN of the Kinesis data stream. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kinesis/v1beta1.Stream - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - streamArn?: null | string @go(StreamArn,*string) - - // Reference to a Stream in kinesis to populate streamArn. - // +kubebuilder:validation:Optional - streamArnRef?: null | v1.#Reference @go(StreamArnRef,*v1.Reference) - - // Selector for a Stream in kinesis to populate streamArn. - // +kubebuilder:validation:Optional - streamArnSelector?: null | v1.#Selector @go(StreamArnSelector,*v1.Selector) -} - -#RealtimeLogConfigInitParameters: { - // The Amazon Kinesis data streams where real-time log data is sent. - endpoint?: [...#EndpointInitParameters] @go(Endpoint,[]EndpointInitParameters) - - // The fields that are included in each real-time log record. See the AWS documentation for supported values. - fields?: [...null | string] @go(Fields,[]*string) - - // The unique name to identify this real-time log configuration. - name?: null | string @go(Name,*string) - - // The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. An integer between 1 and 100, inclusive. - samplingRate?: null | float64 @go(SamplingRate,*float64) -} - -#RealtimeLogConfigObservation: { - // The ARN (Amazon Resource Name) of the CloudFront real-time log configuration. - arn?: null | string @go(Arn,*string) - - // The Amazon Kinesis data streams where real-time log data is sent. - endpoint?: [...#EndpointObservation] @go(Endpoint,[]EndpointObservation) - - // The fields that are included in each real-time log record. See the AWS documentation for supported values. - fields?: [...null | string] @go(Fields,[]*string) - - // The ID of the CloudFront real-time log configuration. - id?: null | string @go(ID,*string) - - // The unique name to identify this real-time log configuration. - name?: null | string @go(Name,*string) - - // The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. An integer between 1 and 100, inclusive. - samplingRate?: null | float64 @go(SamplingRate,*float64) -} - -#RealtimeLogConfigParameters: { - // The Amazon Kinesis data streams where real-time log data is sent. - // +kubebuilder:validation:Optional - endpoint?: [...#EndpointParameters] @go(Endpoint,[]EndpointParameters) - - // The fields that are included in each real-time log record. See the AWS documentation for supported values. - // +kubebuilder:validation:Optional - fields?: [...null | string] @go(Fields,[]*string) - - // The unique name to identify this real-time log configuration. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. An integer between 1 and 100, inclusive. - // +kubebuilder:validation:Optional - samplingRate?: null | float64 @go(SamplingRate,*float64) -} - -// RealtimeLogConfigSpec defines the desired state of RealtimeLogConfig -#RealtimeLogConfigSpec: { - v1.#ResourceSpec - forProvider: #RealtimeLogConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RealtimeLogConfigInitParameters @go(InitProvider) -} - -// RealtimeLogConfigStatus defines the observed state of RealtimeLogConfig. -#RealtimeLogConfigStatus: { - v1.#ResourceStatus - atProvider?: #RealtimeLogConfigObservation @go(AtProvider) -} - -// RealtimeLogConfig is the Schema for the RealtimeLogConfigs API. Provides a CloudFront real-time log configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RealtimeLogConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.endpoint) || (has(self.initProvider) && has(self.initProvider.endpoint))",message="spec.forProvider.endpoint is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.fields) || (has(self.initProvider) && has(self.initProvider.fields))",message="spec.forProvider.fields is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.samplingRate) || (has(self.initProvider) && has(self.initProvider.samplingRate))",message="spec.forProvider.samplingRate is a required parameter" - spec: #RealtimeLogConfigSpec @go(Spec) - status?: #RealtimeLogConfigStatus @go(Status) -} - -// RealtimeLogConfigList contains a list of RealtimeLogConfigs -#RealtimeLogConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RealtimeLogConfig] @go(Items,[]RealtimeLogConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_responseheaderspolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_responseheaderspolicy_types_go_gen.cue deleted file mode 100644 index 7e85d54..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudfront/v1beta1/zz_responseheaderspolicy_types_go_gen.cue +++ /dev/null @@ -1,635 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudfront/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessControlAllowHeadersInitParameters: { - items?: [...null | string] @go(Items,[]*string) -} - -#AccessControlAllowHeadersObservation: { - items?: [...null | string] @go(Items,[]*string) -} - -#AccessControlAllowHeadersParameters: { - // +kubebuilder:validation:Optional - items?: [...null | string] @go(Items,[]*string) -} - -#AccessControlAllowMethodsInitParameters: { - items?: [...null | string] @go(Items,[]*string) -} - -#AccessControlAllowMethodsObservation: { - items?: [...null | string] @go(Items,[]*string) -} - -#AccessControlAllowMethodsParameters: { - // +kubebuilder:validation:Optional - items?: [...null | string] @go(Items,[]*string) -} - -#AccessControlAllowOriginsInitParameters: { - items?: [...null | string] @go(Items,[]*string) -} - -#AccessControlAllowOriginsObservation: { - items?: [...null | string] @go(Items,[]*string) -} - -#AccessControlAllowOriginsParameters: { - // +kubebuilder:validation:Optional - items?: [...null | string] @go(Items,[]*string) -} - -#AccessControlExposeHeadersInitParameters: { - items?: [...null | string] @go(Items,[]*string) -} - -#AccessControlExposeHeadersObservation: { - items?: [...null | string] @go(Items,[]*string) -} - -#AccessControlExposeHeadersParameters: { - // +kubebuilder:validation:Optional - items?: [...null | string] @go(Items,[]*string) -} - -#ContentSecurityPolicyInitParameters: { - // The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header. See Content Security Policy for more information. - contentSecurityPolicy?: null | string @go(ContentSecurityPolicy,*string) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) -} - -#ContentSecurityPolicyObservation: { - // The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header. See Content Security Policy for more information. - contentSecurityPolicy?: null | string @go(ContentSecurityPolicy,*string) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) -} - -#ContentSecurityPolicyParameters: { - // The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header. See Content Security Policy for more information. - // +kubebuilder:validation:Optional - contentSecurityPolicy?: null | string @go(ContentSecurityPolicy,*string) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - // +kubebuilder:validation:Optional - override?: null | bool @go(Override,*bool) -} - -#ContentTypeOptionsInitParameters: { - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) -} - -#ContentTypeOptionsObservation: { - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) -} - -#ContentTypeOptionsParameters: { - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - // +kubebuilder:validation:Optional - override?: null | bool @go(Override,*bool) -} - -#CorsConfigInitParameters: { - // A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header. - accessControlAllowCredentials?: null | bool @go(AccessControlAllowCredentials,*bool) - - // Object that contains an attribute items that contains a list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header. - accessControlAllowHeaders?: [...#AccessControlAllowHeadersInitParameters] @go(AccessControlAllowHeaders,[]AccessControlAllowHeadersInitParameters) - - // Object that contains an attribute items that contains a list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. Valid values: GET | POST | OPTIONS | PUT | DELETE | HEAD | ALL - accessControlAllowMethods?: [...#AccessControlAllowMethodsInitParameters] @go(AccessControlAllowMethods,[]AccessControlAllowMethodsInitParameters) - - // Object that contains an attribute items that contains a list of origins that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header. - accessControlAllowOrigins?: [...#AccessControlAllowOriginsInitParameters] @go(AccessControlAllowOrigins,[]AccessControlAllowOriginsInitParameters) - - // Object that contains an attribute items that contains a list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header. - accessControlExposeHeaders?: [...#AccessControlExposeHeadersInitParameters] @go(AccessControlExposeHeaders,[]AccessControlExposeHeadersInitParameters) - - // A number that CloudFront uses as the value for the Access-Control-Max-Age HTTP response header. - accessControlMaxAgeSec?: null | float64 @go(AccessControlMaxAgeSec,*float64) - - // A Boolean value that determines how CloudFront behaves for the HTTP response header. - originOverride?: null | bool @go(OriginOverride,*bool) -} - -#CorsConfigObservation: { - // A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header. - accessControlAllowCredentials?: null | bool @go(AccessControlAllowCredentials,*bool) - - // Object that contains an attribute items that contains a list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header. - accessControlAllowHeaders?: [...#AccessControlAllowHeadersObservation] @go(AccessControlAllowHeaders,[]AccessControlAllowHeadersObservation) - - // Object that contains an attribute items that contains a list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. Valid values: GET | POST | OPTIONS | PUT | DELETE | HEAD | ALL - accessControlAllowMethods?: [...#AccessControlAllowMethodsObservation] @go(AccessControlAllowMethods,[]AccessControlAllowMethodsObservation) - - // Object that contains an attribute items that contains a list of origins that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header. - accessControlAllowOrigins?: [...#AccessControlAllowOriginsObservation] @go(AccessControlAllowOrigins,[]AccessControlAllowOriginsObservation) - - // Object that contains an attribute items that contains a list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header. - accessControlExposeHeaders?: [...#AccessControlExposeHeadersObservation] @go(AccessControlExposeHeaders,[]AccessControlExposeHeadersObservation) - - // A number that CloudFront uses as the value for the Access-Control-Max-Age HTTP response header. - accessControlMaxAgeSec?: null | float64 @go(AccessControlMaxAgeSec,*float64) - - // A Boolean value that determines how CloudFront behaves for the HTTP response header. - originOverride?: null | bool @go(OriginOverride,*bool) -} - -#CorsConfigParameters: { - // A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header. - // +kubebuilder:validation:Optional - accessControlAllowCredentials?: null | bool @go(AccessControlAllowCredentials,*bool) - - // Object that contains an attribute items that contains a list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header. - // +kubebuilder:validation:Optional - accessControlAllowHeaders: [...#AccessControlAllowHeadersParameters] @go(AccessControlAllowHeaders,[]AccessControlAllowHeadersParameters) - - // Object that contains an attribute items that contains a list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. Valid values: GET | POST | OPTIONS | PUT | DELETE | HEAD | ALL - // +kubebuilder:validation:Optional - accessControlAllowMethods: [...#AccessControlAllowMethodsParameters] @go(AccessControlAllowMethods,[]AccessControlAllowMethodsParameters) - - // Object that contains an attribute items that contains a list of origins that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header. - // +kubebuilder:validation:Optional - accessControlAllowOrigins: [...#AccessControlAllowOriginsParameters] @go(AccessControlAllowOrigins,[]AccessControlAllowOriginsParameters) - - // Object that contains an attribute items that contains a list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header. - // +kubebuilder:validation:Optional - accessControlExposeHeaders?: [...#AccessControlExposeHeadersParameters] @go(AccessControlExposeHeaders,[]AccessControlExposeHeadersParameters) - - // A number that CloudFront uses as the value for the Access-Control-Max-Age HTTP response header. - // +kubebuilder:validation:Optional - accessControlMaxAgeSec?: null | float64 @go(AccessControlMaxAgeSec,*float64) - - // A Boolean value that determines how CloudFront behaves for the HTTP response header. - // +kubebuilder:validation:Optional - originOverride?: null | bool @go(OriginOverride,*bool) -} - -#CustomHeadersConfigInitParameters: { - items?: [...#CustomHeadersConfigItemsInitParameters] @go(Items,[]CustomHeadersConfigItemsInitParameters) -} - -#CustomHeadersConfigItemsInitParameters: { - // The HTTP response header name. - header?: null | string @go(Header,*string) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) - - // The value for the HTTP response header. - value?: null | string @go(Value,*string) -} - -#CustomHeadersConfigItemsObservation: { - // The HTTP response header name. - header?: null | string @go(Header,*string) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) - - // The value for the HTTP response header. - value?: null | string @go(Value,*string) -} - -#CustomHeadersConfigItemsParameters: { - // The HTTP response header name. - // +kubebuilder:validation:Optional - header?: null | string @go(Header,*string) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - // +kubebuilder:validation:Optional - override?: null | bool @go(Override,*bool) - - // The value for the HTTP response header. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#CustomHeadersConfigObservation: { - items?: [...#CustomHeadersConfigItemsObservation] @go(Items,[]CustomHeadersConfigItemsObservation) -} - -#CustomHeadersConfigParameters: { - // +kubebuilder:validation:Optional - items?: [...#CustomHeadersConfigItemsParameters] @go(Items,[]CustomHeadersConfigItemsParameters) -} - -#FrameOptionsInitParameters: { - // The value of the X-Frame-Options HTTP response header. Valid values: DENY | SAMEORIGIN - frameOption?: null | string @go(FrameOption,*string) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) -} - -#FrameOptionsObservation: { - // The value of the X-Frame-Options HTTP response header. Valid values: DENY | SAMEORIGIN - frameOption?: null | string @go(FrameOption,*string) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) -} - -#FrameOptionsParameters: { - // The value of the X-Frame-Options HTTP response header. Valid values: DENY | SAMEORIGIN - // +kubebuilder:validation:Optional - frameOption?: null | string @go(FrameOption,*string) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - // +kubebuilder:validation:Optional - override?: null | bool @go(Override,*bool) -} - -#ReferrerPolicyInitParameters: { - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) - - // Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header’s value. See Referrer Policy for more information. - referrerPolicy?: null | string @go(ReferrerPolicy,*string) -} - -#ReferrerPolicyObservation: { - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) - - // Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header’s value. See Referrer Policy for more information. - referrerPolicy?: null | string @go(ReferrerPolicy,*string) -} - -#ReferrerPolicyParameters: { - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - // +kubebuilder:validation:Optional - override?: null | bool @go(Override,*bool) - - // Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header’s value. See Referrer Policy for more information. - // +kubebuilder:validation:Optional - referrerPolicy?: null | string @go(ReferrerPolicy,*string) -} - -#RemoveHeadersConfigInitParameters: { - items?: [...#RemoveHeadersConfigItemsInitParameters] @go(Items,[]RemoveHeadersConfigItemsInitParameters) -} - -#RemoveHeadersConfigItemsInitParameters: { - // The HTTP response header name. - header?: null | string @go(Header,*string) -} - -#RemoveHeadersConfigItemsObservation: { - // The HTTP response header name. - header?: null | string @go(Header,*string) -} - -#RemoveHeadersConfigItemsParameters: { - // The HTTP response header name. - // +kubebuilder:validation:Optional - header?: null | string @go(Header,*string) -} - -#RemoveHeadersConfigObservation: { - items?: [...#RemoveHeadersConfigItemsObservation] @go(Items,[]RemoveHeadersConfigItemsObservation) -} - -#RemoveHeadersConfigParameters: { - // +kubebuilder:validation:Optional - items?: [...#RemoveHeadersConfigItemsParameters] @go(Items,[]RemoveHeadersConfigItemsParameters) -} - -#ResponseHeadersPolicyInitParameters: { - // A comment to describe the response headers policy. The comment cannot be longer than 128 characters. - comment?: null | string @go(Comment,*string) - - // A configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information. - corsConfig?: [...#CorsConfigInitParameters] @go(CorsConfig,[]CorsConfigInitParameters) - - // Object that contains an attribute items that contains a list of custom headers. See Custom Header for more information. - customHeadersConfig?: [...#CustomHeadersConfigInitParameters] @go(CustomHeadersConfig,[]CustomHeadersConfigInitParameters) - - // The current version of the response headers policy. - etag?: null | string @go(Etag,*string) - - // A unique name to identify the response headers policy. - name?: null | string @go(Name,*string) - - // A configuration for a set of HTTP headers to remove from the HTTP response. Object that contains an attribute items that contains a list of headers. See Remove Header for more information. - removeHeadersConfig?: [...#RemoveHeadersConfigInitParameters] @go(RemoveHeadersConfig,[]RemoveHeadersConfigInitParameters) - - // A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information. - securityHeadersConfig?: [...#SecurityHeadersConfigInitParameters] @go(SecurityHeadersConfig,[]SecurityHeadersConfigInitParameters) - - // A configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information. - serverTimingHeadersConfig?: [...#ServerTimingHeadersConfigInitParameters] @go(ServerTimingHeadersConfig,[]ServerTimingHeadersConfigInitParameters) -} - -#ResponseHeadersPolicyObservation: { - // A comment to describe the response headers policy. The comment cannot be longer than 128 characters. - comment?: null | string @go(Comment,*string) - - // A configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information. - corsConfig?: [...#CorsConfigObservation] @go(CorsConfig,[]CorsConfigObservation) - - // Object that contains an attribute items that contains a list of custom headers. See Custom Header for more information. - customHeadersConfig?: [...#CustomHeadersConfigObservation] @go(CustomHeadersConfig,[]CustomHeadersConfigObservation) - - // The current version of the response headers policy. - etag?: null | string @go(Etag,*string) - - // The identifier for the response headers policy. - id?: null | string @go(ID,*string) - - // A unique name to identify the response headers policy. - name?: null | string @go(Name,*string) - - // A configuration for a set of HTTP headers to remove from the HTTP response. Object that contains an attribute items that contains a list of headers. See Remove Header for more information. - removeHeadersConfig?: [...#RemoveHeadersConfigObservation] @go(RemoveHeadersConfig,[]RemoveHeadersConfigObservation) - - // A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information. - securityHeadersConfig?: [...#SecurityHeadersConfigObservation] @go(SecurityHeadersConfig,[]SecurityHeadersConfigObservation) - - // A configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information. - serverTimingHeadersConfig?: [...#ServerTimingHeadersConfigObservation] @go(ServerTimingHeadersConfig,[]ServerTimingHeadersConfigObservation) -} - -#ResponseHeadersPolicyParameters: { - // A comment to describe the response headers policy. The comment cannot be longer than 128 characters. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // A configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information. - // +kubebuilder:validation:Optional - corsConfig?: [...#CorsConfigParameters] @go(CorsConfig,[]CorsConfigParameters) - - // Object that contains an attribute items that contains a list of custom headers. See Custom Header for more information. - // +kubebuilder:validation:Optional - customHeadersConfig?: [...#CustomHeadersConfigParameters] @go(CustomHeadersConfig,[]CustomHeadersConfigParameters) - - // The current version of the response headers policy. - // +kubebuilder:validation:Optional - etag?: null | string @go(Etag,*string) - - // A unique name to identify the response headers policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A configuration for a set of HTTP headers to remove from the HTTP response. Object that contains an attribute items that contains a list of headers. See Remove Header for more information. - // +kubebuilder:validation:Optional - removeHeadersConfig?: [...#RemoveHeadersConfigParameters] @go(RemoveHeadersConfig,[]RemoveHeadersConfigParameters) - - // A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information. - // +kubebuilder:validation:Optional - securityHeadersConfig?: [...#SecurityHeadersConfigParameters] @go(SecurityHeadersConfig,[]SecurityHeadersConfigParameters) - - // A configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information. - // +kubebuilder:validation:Optional - serverTimingHeadersConfig?: [...#ServerTimingHeadersConfigParameters] @go(ServerTimingHeadersConfig,[]ServerTimingHeadersConfigParameters) -} - -#SecurityHeadersConfigInitParameters: { - // The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header. See Content Security Policy for more information. - contentSecurityPolicy?: [...#ContentSecurityPolicyInitParameters] @go(ContentSecurityPolicy,[]ContentSecurityPolicyInitParameters) - - // Determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff. See Content Type Options for more information. - contentTypeOptions?: [...#ContentTypeOptionsInitParameters] @go(ContentTypeOptions,[]ContentTypeOptionsInitParameters) - - // Determines whether CloudFront includes the X-Frame-Options HTTP response header and the header’s value. See Frame Options for more information. - frameOptions?: [...#FrameOptionsInitParameters] @go(FrameOptions,[]FrameOptionsInitParameters) - - // Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header’s value. See Referrer Policy for more information. - referrerPolicy?: [...#ReferrerPolicyInitParameters] @go(ReferrerPolicy,[]ReferrerPolicyInitParameters) - - // Determines whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value. See Strict Transport Security for more information. - strictTransportSecurity?: [...#StrictTransportSecurityInitParameters] @go(StrictTransportSecurity,[]StrictTransportSecurityInitParameters) - - // Determine whether CloudFront includes the X-XSS-Protection HTTP response header and the header’s value. See XSS Protection for more information. - xssProtection?: [...#XSSProtectionInitParameters] @go(XSSProtection,[]XSSProtectionInitParameters) -} - -#SecurityHeadersConfigObservation: { - // The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header. See Content Security Policy for more information. - contentSecurityPolicy?: [...#ContentSecurityPolicyObservation] @go(ContentSecurityPolicy,[]ContentSecurityPolicyObservation) - - // Determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff. See Content Type Options for more information. - contentTypeOptions?: [...#ContentTypeOptionsObservation] @go(ContentTypeOptions,[]ContentTypeOptionsObservation) - - // Determines whether CloudFront includes the X-Frame-Options HTTP response header and the header’s value. See Frame Options for more information. - frameOptions?: [...#FrameOptionsObservation] @go(FrameOptions,[]FrameOptionsObservation) - - // Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header’s value. See Referrer Policy for more information. - referrerPolicy?: [...#ReferrerPolicyObservation] @go(ReferrerPolicy,[]ReferrerPolicyObservation) - - // Determines whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value. See Strict Transport Security for more information. - strictTransportSecurity?: [...#StrictTransportSecurityObservation] @go(StrictTransportSecurity,[]StrictTransportSecurityObservation) - - // Determine whether CloudFront includes the X-XSS-Protection HTTP response header and the header’s value. See XSS Protection for more information. - xssProtection?: [...#XSSProtectionObservation] @go(XSSProtection,[]XSSProtectionObservation) -} - -#SecurityHeadersConfigParameters: { - // The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header. See Content Security Policy for more information. - // +kubebuilder:validation:Optional - contentSecurityPolicy?: [...#ContentSecurityPolicyParameters] @go(ContentSecurityPolicy,[]ContentSecurityPolicyParameters) - - // Determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff. See Content Type Options for more information. - // +kubebuilder:validation:Optional - contentTypeOptions?: [...#ContentTypeOptionsParameters] @go(ContentTypeOptions,[]ContentTypeOptionsParameters) - - // Determines whether CloudFront includes the X-Frame-Options HTTP response header and the header’s value. See Frame Options for more information. - // +kubebuilder:validation:Optional - frameOptions?: [...#FrameOptionsParameters] @go(FrameOptions,[]FrameOptionsParameters) - - // Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header’s value. See Referrer Policy for more information. - // +kubebuilder:validation:Optional - referrerPolicy?: [...#ReferrerPolicyParameters] @go(ReferrerPolicy,[]ReferrerPolicyParameters) - - // Determines whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value. See Strict Transport Security for more information. - // +kubebuilder:validation:Optional - strictTransportSecurity?: [...#StrictTransportSecurityParameters] @go(StrictTransportSecurity,[]StrictTransportSecurityParameters) - - // Determine whether CloudFront includes the X-XSS-Protection HTTP response header and the header’s value. See XSS Protection for more information. - // +kubebuilder:validation:Optional - xssProtection?: [...#XSSProtectionParameters] @go(XSSProtection,[]XSSProtectionParameters) -} - -#ServerTimingHeadersConfigInitParameters: { - // A Whether CloudFront adds the Server-Timing header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. - enabled?: null | bool @go(Enabled,*bool) - - // A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to. Valid range: Minimum value of 0.0. Maximum value of 100.0. - samplingRate?: null | float64 @go(SamplingRate,*float64) -} - -#ServerTimingHeadersConfigObservation: { - // A Whether CloudFront adds the Server-Timing header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. - enabled?: null | bool @go(Enabled,*bool) - - // A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to. Valid range: Minimum value of 0.0. Maximum value of 100.0. - samplingRate?: null | float64 @go(SamplingRate,*float64) -} - -#ServerTimingHeadersConfigParameters: { - // A Whether CloudFront adds the Server-Timing header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to. Valid range: Minimum value of 0.0. Maximum value of 100.0. - // +kubebuilder:validation:Optional - samplingRate?: null | float64 @go(SamplingRate,*float64) -} - -#StrictTransportSecurityInitParameters: { - // A number that CloudFront uses as the value for the Access-Control-Max-Age HTTP response header. - accessControlMaxAgeSec?: null | float64 @go(AccessControlMaxAgeSec,*float64) - - // Whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header. - includeSubdomains?: null | bool @go(IncludeSubdomains,*bool) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) - - // Whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header. - preload?: null | bool @go(Preload,*bool) -} - -#StrictTransportSecurityObservation: { - // A number that CloudFront uses as the value for the Access-Control-Max-Age HTTP response header. - accessControlMaxAgeSec?: null | float64 @go(AccessControlMaxAgeSec,*float64) - - // Whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header. - includeSubdomains?: null | bool @go(IncludeSubdomains,*bool) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) - - // Whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header. - preload?: null | bool @go(Preload,*bool) -} - -#StrictTransportSecurityParameters: { - // A number that CloudFront uses as the value for the Access-Control-Max-Age HTTP response header. - // +kubebuilder:validation:Optional - accessControlMaxAgeSec?: null | float64 @go(AccessControlMaxAgeSec,*float64) - - // Whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header. - // +kubebuilder:validation:Optional - includeSubdomains?: null | bool @go(IncludeSubdomains,*bool) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - // +kubebuilder:validation:Optional - override?: null | bool @go(Override,*bool) - - // Whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header. - // +kubebuilder:validation:Optional - preload?: null | bool @go(Preload,*bool) -} - -#XSSProtectionInitParameters: { - // Whether CloudFront includes the mode=block directive in the X-XSS-Protection header. - modeBlock?: null | bool @go(ModeBlock,*bool) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) - - // A Boolean value that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0. - protection?: null | bool @go(Protection,*bool) - - // A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header. You cannot specify a report_uri when mode_block is true. - reportUri?: null | string @go(ReportURI,*string) -} - -#XSSProtectionObservation: { - // Whether CloudFront includes the mode=block directive in the X-XSS-Protection header. - modeBlock?: null | bool @go(ModeBlock,*bool) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - override?: null | bool @go(Override,*bool) - - // A Boolean value that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0. - protection?: null | bool @go(Protection,*bool) - - // A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header. You cannot specify a report_uri when mode_block is true. - reportUri?: null | string @go(ReportURI,*string) -} - -#XSSProtectionParameters: { - // Whether CloudFront includes the mode=block directive in the X-XSS-Protection header. - // +kubebuilder:validation:Optional - modeBlock?: null | bool @go(ModeBlock,*bool) - - // Whether CloudFront overrides a response header with the same name received from the origin with the header specifies here. - // +kubebuilder:validation:Optional - override?: null | bool @go(Override,*bool) - - // A Boolean value that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0. - // +kubebuilder:validation:Optional - protection?: null | bool @go(Protection,*bool) - - // A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header. You cannot specify a report_uri when mode_block is true. - // +kubebuilder:validation:Optional - reportUri?: null | string @go(ReportURI,*string) -} - -// ResponseHeadersPolicySpec defines the desired state of ResponseHeadersPolicy -#ResponseHeadersPolicySpec: { - v1.#ResourceSpec - forProvider: #ResponseHeadersPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResponseHeadersPolicyInitParameters @go(InitProvider) -} - -// ResponseHeadersPolicyStatus defines the observed state of ResponseHeadersPolicy. -#ResponseHeadersPolicyStatus: { - v1.#ResourceStatus - atProvider?: #ResponseHeadersPolicyObservation @go(AtProvider) -} - -// ResponseHeadersPolicy is the Schema for the ResponseHeadersPolicys API. Provides a CloudFront response headers policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ResponseHeadersPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ResponseHeadersPolicySpec @go(Spec) - status?: #ResponseHeadersPolicyStatus @go(Status) -} - -// ResponseHeadersPolicyList contains a list of ResponseHeadersPolicys -#ResponseHeadersPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ResponseHeadersPolicy] @go(Items,[]ResponseHeadersPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudsearch/v1beta1/zz_domain_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudsearch/v1beta1/zz_domain_types_go_gen.cue deleted file mode 100644 index d4f25b8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudsearch/v1beta1/zz_domain_types_go_gen.cue +++ /dev/null @@ -1,287 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudsearch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainInitParameters: { - // Domain endpoint options. Documented below. - endpointOptions?: [...#EndpointOptionsInitParameters] @go(EndpointOptions,[]EndpointOptionsInitParameters) - - // The index fields for documents added to the domain. Documented below. - indexField?: [...#IndexFieldInitParameters] @go(IndexField,[]IndexFieldInitParameters) - - // Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability. - multiAz?: null | bool @go(MultiAz,*bool) - - // Domain scaling parameters. Documented below. - scalingParameters?: [...#ScalingParametersInitParameters] @go(ScalingParameters,[]ScalingParametersInitParameters) -} - -#DomainObservation: { - // The domain's ARN. - arn?: null | string @go(Arn,*string) - - // The service endpoint for updating documents in a search domain. - documentServiceEndpoint?: null | string @go(DocumentServiceEndpoint,*string) - - // An internally generated unique identifier for the domain. - domainId?: null | string @go(DomainID,*string) - - // Domain endpoint options. Documented below. - endpointOptions?: [...#EndpointOptionsObservation] @go(EndpointOptions,[]EndpointOptionsObservation) - id?: null | string @go(ID,*string) - - // The index fields for documents added to the domain. Documented below. - indexField?: [...#IndexFieldObservation] @go(IndexField,[]IndexFieldObservation) - - // Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability. - multiAz?: null | bool @go(MultiAz,*bool) - - // Domain scaling parameters. Documented below. - scalingParameters?: [...#ScalingParametersObservation] @go(ScalingParameters,[]ScalingParametersObservation) - - // The service endpoint for requesting search results from a search domain. - searchServiceEndpoint?: null | string @go(SearchServiceEndpoint,*string) -} - -#DomainParameters: { - // Domain endpoint options. Documented below. - // +kubebuilder:validation:Optional - endpointOptions?: [...#EndpointOptionsParameters] @go(EndpointOptions,[]EndpointOptionsParameters) - - // The index fields for documents added to the domain. Documented below. - // +kubebuilder:validation:Optional - indexField?: [...#IndexFieldParameters] @go(IndexField,[]IndexFieldParameters) - - // Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability. - // +kubebuilder:validation:Optional - multiAz?: null | bool @go(MultiAz,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Domain scaling parameters. Documented below. - // +kubebuilder:validation:Optional - scalingParameters?: [...#ScalingParametersParameters] @go(ScalingParameters,[]ScalingParametersParameters) -} - -#EndpointOptionsInitParameters: { - // Enables or disables the requirement that all requests to the domain arrive over HTTPS. - enforceHttps?: null | bool @go(EnforceHTTPS,*bool) - - // The minimum required TLS version. See the AWS documentation for valid values. - tlsSecurityPolicy?: null | string @go(TLSSecurityPolicy,*string) -} - -#EndpointOptionsObservation: { - // Enables or disables the requirement that all requests to the domain arrive over HTTPS. - enforceHttps?: null | bool @go(EnforceHTTPS,*bool) - - // The minimum required TLS version. See the AWS documentation for valid values. - tlsSecurityPolicy?: null | string @go(TLSSecurityPolicy,*string) -} - -#EndpointOptionsParameters: { - // Enables or disables the requirement that all requests to the domain arrive over HTTPS. - // +kubebuilder:validation:Optional - enforceHttps?: null | bool @go(EnforceHTTPS,*bool) - - // The minimum required TLS version. See the AWS documentation for valid values. - // +kubebuilder:validation:Optional - tlsSecurityPolicy?: null | string @go(TLSSecurityPolicy,*string) -} - -#IndexFieldInitParameters: { - // The analysis scheme you want to use for a text field. The analysis scheme specifies the language-specific text processing options that are used during indexing. - analysisScheme?: null | string @go(AnalysisScheme,*string) - - // The default value for the field. This value is used when no value is specified for the field in the document data. - defaultValue?: null | string @go(DefaultValue,*string) - - // You can get facet information by enabling this. - facet?: null | bool @go(Facet,*bool) - - // You can highlight information. - highlight?: null | bool @go(Highlight,*bool) - - // The name of the CloudSearch domain. - name?: null | string @go(Name,*string) - - // You can enable returning the value of all searchable fields. - return?: null | bool @go(Return,*bool) - - // You can set whether this index should be searchable or not. - search?: null | bool @go(Search,*bool) - - // You can enable the property to be sortable. - sort?: null | bool @go(Sort,*bool) - - // A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields. - sourceFields?: null | string @go(SourceFields,*string) - - // The field type. Valid values: date, date-array, double, double-array, int, int-array, literal, literal-array, text, text-array. - type?: null | string @go(Type,*string) -} - -#IndexFieldObservation: { - // The analysis scheme you want to use for a text field. The analysis scheme specifies the language-specific text processing options that are used during indexing. - analysisScheme?: null | string @go(AnalysisScheme,*string) - - // The default value for the field. This value is used when no value is specified for the field in the document data. - defaultValue?: null | string @go(DefaultValue,*string) - - // You can get facet information by enabling this. - facet?: null | bool @go(Facet,*bool) - - // You can highlight information. - highlight?: null | bool @go(Highlight,*bool) - - // The name of the CloudSearch domain. - name?: null | string @go(Name,*string) - - // You can enable returning the value of all searchable fields. - return?: null | bool @go(Return,*bool) - - // You can set whether this index should be searchable or not. - search?: null | bool @go(Search,*bool) - - // You can enable the property to be sortable. - sort?: null | bool @go(Sort,*bool) - - // A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields. - sourceFields?: null | string @go(SourceFields,*string) - - // The field type. Valid values: date, date-array, double, double-array, int, int-array, literal, literal-array, text, text-array. - type?: null | string @go(Type,*string) -} - -#IndexFieldParameters: { - // The analysis scheme you want to use for a text field. The analysis scheme specifies the language-specific text processing options that are used during indexing. - // +kubebuilder:validation:Optional - analysisScheme?: null | string @go(AnalysisScheme,*string) - - // The default value for the field. This value is used when no value is specified for the field in the document data. - // +kubebuilder:validation:Optional - defaultValue?: null | string @go(DefaultValue,*string) - - // You can get facet information by enabling this. - // +kubebuilder:validation:Optional - facet?: null | bool @go(Facet,*bool) - - // You can highlight information. - // +kubebuilder:validation:Optional - highlight?: null | bool @go(Highlight,*bool) - - // The name of the CloudSearch domain. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // You can enable returning the value of all searchable fields. - // +kubebuilder:validation:Optional - return?: null | bool @go(Return,*bool) - - // You can set whether this index should be searchable or not. - // +kubebuilder:validation:Optional - search?: null | bool @go(Search,*bool) - - // You can enable the property to be sortable. - // +kubebuilder:validation:Optional - sort?: null | bool @go(Sort,*bool) - - // A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields. - // +kubebuilder:validation:Optional - sourceFields?: null | string @go(SourceFields,*string) - - // The field type. Valid values: date, date-array, double, double-array, int, int-array, literal, literal-array, text, text-array. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#ScalingParametersInitParameters: { - // The instance type that you want to preconfigure for your domain. See the AWS documentation for valid values. - desiredInstanceType?: null | string @go(DesiredInstanceType,*string) - - // The number of partitions you want to preconfigure for your domain. Only valid when you select search.2xlarge as the instance type. - desiredPartitionCount?: null | float64 @go(DesiredPartitionCount,*float64) - - // The number of replicas you want to preconfigure for each index partition. - desiredReplicationCount?: null | float64 @go(DesiredReplicationCount,*float64) -} - -#ScalingParametersObservation: { - // The instance type that you want to preconfigure for your domain. See the AWS documentation for valid values. - desiredInstanceType?: null | string @go(DesiredInstanceType,*string) - - // The number of partitions you want to preconfigure for your domain. Only valid when you select search.2xlarge as the instance type. - desiredPartitionCount?: null | float64 @go(DesiredPartitionCount,*float64) - - // The number of replicas you want to preconfigure for each index partition. - desiredReplicationCount?: null | float64 @go(DesiredReplicationCount,*float64) -} - -#ScalingParametersParameters: { - // The instance type that you want to preconfigure for your domain. See the AWS documentation for valid values. - // +kubebuilder:validation:Optional - desiredInstanceType?: null | string @go(DesiredInstanceType,*string) - - // The number of partitions you want to preconfigure for your domain. Only valid when you select search.2xlarge as the instance type. - // +kubebuilder:validation:Optional - desiredPartitionCount?: null | float64 @go(DesiredPartitionCount,*float64) - - // The number of replicas you want to preconfigure for each index partition. - // +kubebuilder:validation:Optional - desiredReplicationCount?: null | float64 @go(DesiredReplicationCount,*float64) -} - -// DomainSpec defines the desired state of Domain -#DomainSpec: { - v1.#ResourceSpec - forProvider: #DomainParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainInitParameters @go(InitProvider) -} - -// DomainStatus defines the observed state of Domain. -#DomainStatus: { - v1.#ResourceStatus - atProvider?: #DomainObservation @go(AtProvider) -} - -// Domain is the Schema for the Domains API. Provides an CloudSearch domain resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Domain: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DomainSpec @go(Spec) - status?: #DomainStatus @go(Status) -} - -// DomainList contains a list of Domains -#DomainList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Domain] @go(Items,[]Domain) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudsearch/v1beta1/zz_domainserviceaccesspolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudsearch/v1beta1/zz_domainserviceaccesspolicy_types_go_gen.cue deleted file mode 100644 index 11c334d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudsearch/v1beta1/zz_domainserviceaccesspolicy_types_go_gen.cue +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudsearch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainServiceAccessPolicyInitParameters: { - // The access rules you want to configure. These rules replace any existing rules. See the AWS documentation for details. - accessPolicy?: null | string @go(AccessPolicy,*string) -} - -#DomainServiceAccessPolicyObservation: { - // The access rules you want to configure. These rules replace any existing rules. See the AWS documentation for details. - accessPolicy?: null | string @go(AccessPolicy,*string) - - // The CloudSearch domain name the policy applies to. - domainName?: null | string @go(DomainName,*string) - id?: null | string @go(ID,*string) -} - -#DomainServiceAccessPolicyParameters: { - // The access rules you want to configure. These rules replace any existing rules. See the AWS documentation for details. - // +kubebuilder:validation:Optional - accessPolicy?: null | string @go(AccessPolicy,*string) - - // The CloudSearch domain name the policy applies to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudsearch/v1beta1.Domain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Reference to a Domain in cloudsearch to populate domainName. - // +kubebuilder:validation:Optional - domainNameRef?: null | v1.#Reference @go(DomainNameRef,*v1.Reference) - - // Selector for a Domain in cloudsearch to populate domainName. - // +kubebuilder:validation:Optional - domainNameSelector?: null | v1.#Selector @go(DomainNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DomainServiceAccessPolicySpec defines the desired state of DomainServiceAccessPolicy -#DomainServiceAccessPolicySpec: { - v1.#ResourceSpec - forProvider: #DomainServiceAccessPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainServiceAccessPolicyInitParameters @go(InitProvider) -} - -// DomainServiceAccessPolicyStatus defines the observed state of DomainServiceAccessPolicy. -#DomainServiceAccessPolicyStatus: { - v1.#ResourceStatus - atProvider?: #DomainServiceAccessPolicyObservation @go(AtProvider) -} - -// DomainServiceAccessPolicy is the Schema for the DomainServiceAccessPolicys API. Provides an CloudSearch domain service access policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DomainServiceAccessPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accessPolicy) || (has(self.initProvider) && has(self.initProvider.accessPolicy))",message="spec.forProvider.accessPolicy is a required parameter" - spec: #DomainServiceAccessPolicySpec @go(Spec) - status?: #DomainServiceAccessPolicyStatus @go(Status) -} - -// DomainServiceAccessPolicyList contains a list of DomainServiceAccessPolicys -#DomainServiceAccessPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DomainServiceAccessPolicy] @go(Items,[]DomainServiceAccessPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudsearch/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudsearch/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 7dab19f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudsearch/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudsearch/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=cloudsearch.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "cloudsearch.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudtrail/v1beta1/zz_eventdatastore_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudtrail/v1beta1/zz_eventdatastore_types_go_gen.cue deleted file mode 100644 index 9b3dc6d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudtrail/v1beta1/zz_eventdatastore_types_go_gen.cue +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudtrail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AdvancedEventSelectorFieldSelectorInitParameters: { - // A list of values that includes events that match the last few characters of the event record field specified as the value of field. - endsWith?: [...null | string] @go(EndsWith,[]*string) - - // A list of values that includes events that match the exact value of the event record field specified as the value of field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields. - equals?: [...null | string] @go(Equals,[]*string) - - // Specifies a field in an event record on which to filter events to be logged. You can specify only the following values: readOnly, eventSource, eventName, eventCategory, resources.type, resources.ARN. - field?: null | string @go(Field,*string) - - // A list of values that excludes events that match the last few characters of the event record field specified as the value of field. - notEndsWith?: [...null | string] @go(NotEndsWith,[]*string) - - // A list of values that excludes events that match the exact value of the event record field specified as the value of field. - notEquals?: [...null | string] @go(NotEquals,[]*string) - - // A list of values that excludes events that match the first few characters of the event record field specified as the value of field. - notStartsWith?: [...null | string] @go(NotStartsWith,[]*string) - - // A list of values that includes events that match the first few characters of the event record field specified as the value of field. - startsWith?: [...null | string] @go(StartsWith,[]*string) -} - -#AdvancedEventSelectorFieldSelectorObservation: { - // A list of values that includes events that match the last few characters of the event record field specified as the value of field. - endsWith?: [...null | string] @go(EndsWith,[]*string) - - // A list of values that includes events that match the exact value of the event record field specified as the value of field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields. - equals?: [...null | string] @go(Equals,[]*string) - - // Specifies a field in an event record on which to filter events to be logged. You can specify only the following values: readOnly, eventSource, eventName, eventCategory, resources.type, resources.ARN. - field?: null | string @go(Field,*string) - - // A list of values that excludes events that match the last few characters of the event record field specified as the value of field. - notEndsWith?: [...null | string] @go(NotEndsWith,[]*string) - - // A list of values that excludes events that match the exact value of the event record field specified as the value of field. - notEquals?: [...null | string] @go(NotEquals,[]*string) - - // A list of values that excludes events that match the first few characters of the event record field specified as the value of field. - notStartsWith?: [...null | string] @go(NotStartsWith,[]*string) - - // A list of values that includes events that match the first few characters of the event record field specified as the value of field. - startsWith?: [...null | string] @go(StartsWith,[]*string) -} - -#AdvancedEventSelectorFieldSelectorParameters: { - // A list of values that includes events that match the last few characters of the event record field specified as the value of field. - // +kubebuilder:validation:Optional - endsWith?: [...null | string] @go(EndsWith,[]*string) - - // A list of values that includes events that match the exact value of the event record field specified as the value of field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields. - // +kubebuilder:validation:Optional - equals?: [...null | string] @go(Equals,[]*string) - - // Specifies a field in an event record on which to filter events to be logged. You can specify only the following values: readOnly, eventSource, eventName, eventCategory, resources.type, resources.ARN. - // +kubebuilder:validation:Optional - field?: null | string @go(Field,*string) - - // A list of values that excludes events that match the last few characters of the event record field specified as the value of field. - // +kubebuilder:validation:Optional - notEndsWith?: [...null | string] @go(NotEndsWith,[]*string) - - // A list of values that excludes events that match the exact value of the event record field specified as the value of field. - // +kubebuilder:validation:Optional - notEquals?: [...null | string] @go(NotEquals,[]*string) - - // A list of values that excludes events that match the first few characters of the event record field specified as the value of field. - // +kubebuilder:validation:Optional - notStartsWith?: [...null | string] @go(NotStartsWith,[]*string) - - // A list of values that includes events that match the first few characters of the event record field specified as the value of field. - // +kubebuilder:validation:Optional - startsWith?: [...null | string] @go(StartsWith,[]*string) -} - -#EventDataStoreAdvancedEventSelectorInitParameters: { - // Specifies the selector statements in an advanced event selector. Fields documented below. - fieldSelector?: [...#AdvancedEventSelectorFieldSelectorInitParameters] @go(FieldSelector,[]AdvancedEventSelectorFieldSelectorInitParameters) - - // The name of the event data store. - name?: null | string @go(Name,*string) -} - -#EventDataStoreAdvancedEventSelectorObservation: { - // Specifies the selector statements in an advanced event selector. Fields documented below. - fieldSelector?: [...#AdvancedEventSelectorFieldSelectorObservation] @go(FieldSelector,[]AdvancedEventSelectorFieldSelectorObservation) - - // The name of the event data store. - name?: null | string @go(Name,*string) -} - -#EventDataStoreAdvancedEventSelectorParameters: { - // Specifies the selector statements in an advanced event selector. Fields documented below. - // +kubebuilder:validation:Optional - fieldSelector?: [...#AdvancedEventSelectorFieldSelectorParameters] @go(FieldSelector,[]AdvancedEventSelectorFieldSelectorParameters) - - // The name of the event data store. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#EventDataStoreInitParameters: { - // The advanced event selectors to use to select the events for the data store. For more information about how to use advanced event selectors, see Log events by using advanced event selectors in the CloudTrail User Guide. - advancedEventSelector?: [...#EventDataStoreAdvancedEventSelectorInitParameters] @go(AdvancedEventSelector,[]EventDataStoreAdvancedEventSelectorInitParameters) - - // Specifies whether the event data store includes events from all regions, or only from the region in which the event data store is created. Default: true. - multiRegionEnabled?: null | bool @go(MultiRegionEnabled,*bool) - - // The name of the event data store. - name?: null | string @go(Name,*string) - - // Specifies whether an event data store collects events logged for an organization in AWS Organizations. Default: false. - organizationEnabled?: null | bool @go(OrganizationEnabled,*bool) - - // The retention period of the event data store, in days. You can set a retention period of up to 2555 days, the equivalent of seven years. Default: 2555. - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled. Default: true. - terminationProtectionEnabled?: null | bool @go(TerminationProtectionEnabled,*bool) -} - -#EventDataStoreObservation: { - // The advanced event selectors to use to select the events for the data store. For more information about how to use advanced event selectors, see Log events by using advanced event selectors in the CloudTrail User Guide. - advancedEventSelector?: [...#EventDataStoreAdvancedEventSelectorObservation] @go(AdvancedEventSelector,[]EventDataStoreAdvancedEventSelectorObservation) - - // ARN of the event data store. - arn?: null | string @go(Arn,*string) - - // Name of the event data store. - id?: null | string @go(ID,*string) - - // Specifies the AWS KMS key ID to use to encrypt the events delivered by CloudTrail. The value can be an alias name prefixed by alias/, a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Specifies whether the event data store includes events from all regions, or only from the region in which the event data store is created. Default: true. - multiRegionEnabled?: null | bool @go(MultiRegionEnabled,*bool) - - // The name of the event data store. - name?: null | string @go(Name,*string) - - // Specifies whether an event data store collects events logged for an organization in AWS Organizations. Default: false. - organizationEnabled?: null | bool @go(OrganizationEnabled,*bool) - - // The retention period of the event data store, in days. You can set a retention period of up to 2555 days, the equivalent of seven years. Default: 2555. - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled. Default: true. - terminationProtectionEnabled?: null | bool @go(TerminationProtectionEnabled,*bool) -} - -#EventDataStoreParameters: { - // The advanced event selectors to use to select the events for the data store. For more information about how to use advanced event selectors, see Log events by using advanced event selectors in the CloudTrail User Guide. - // +kubebuilder:validation:Optional - advancedEventSelector?: [...#EventDataStoreAdvancedEventSelectorParameters] @go(AdvancedEventSelector,[]EventDataStoreAdvancedEventSelectorParameters) - - // Specifies the AWS KMS key ID to use to encrypt the events delivered by CloudTrail. The value can be an alias name prefixed by alias/, a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Specifies whether the event data store includes events from all regions, or only from the region in which the event data store is created. Default: true. - // +kubebuilder:validation:Optional - multiRegionEnabled?: null | bool @go(MultiRegionEnabled,*bool) - - // The name of the event data store. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Specifies whether an event data store collects events logged for an organization in AWS Organizations. Default: false. - // +kubebuilder:validation:Optional - organizationEnabled?: null | bool @go(OrganizationEnabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The retention period of the event data store, in days. You can set a retention period of up to 2555 days, the equivalent of seven years. Default: 2555. - // +kubebuilder:validation:Optional - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled. Default: true. - // +kubebuilder:validation:Optional - terminationProtectionEnabled?: null | bool @go(TerminationProtectionEnabled,*bool) -} - -// EventDataStoreSpec defines the desired state of EventDataStore -#EventDataStoreSpec: { - v1.#ResourceSpec - forProvider: #EventDataStoreParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EventDataStoreInitParameters @go(InitProvider) -} - -// EventDataStoreStatus defines the observed state of EventDataStore. -#EventDataStoreStatus: { - v1.#ResourceStatus - atProvider?: #EventDataStoreObservation @go(AtProvider) -} - -// EventDataStore is the Schema for the EventDataStores API. Provides a CloudTrail Event Data Store resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EventDataStore: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #EventDataStoreSpec @go(Spec) - status?: #EventDataStoreStatus @go(Status) -} - -// EventDataStoreList contains a list of EventDataStores -#EventDataStoreList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EventDataStore] @go(Items,[]EventDataStore) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudtrail/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudtrail/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 878f8a1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudtrail/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudtrail/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=cloudtrail.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "cloudtrail.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudtrail/v1beta1/zz_trail_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudtrail/v1beta1/zz_trail_types_go_gen.cue deleted file mode 100644 index 3f8e55b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudtrail/v1beta1/zz_trail_types_go_gen.cue +++ /dev/null @@ -1,438 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudtrail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AdvancedEventSelectorInitParameters: { - // Specifies the selector statements in an advanced event selector. Fields documented below. - fieldSelector?: [...#FieldSelectorInitParameters] @go(FieldSelector,[]FieldSelectorInitParameters) - - // Name of the trail. - name?: null | string @go(Name,*string) -} - -#AdvancedEventSelectorObservation: { - // Specifies the selector statements in an advanced event selector. Fields documented below. - fieldSelector?: [...#FieldSelectorObservation] @go(FieldSelector,[]FieldSelectorObservation) - - // Name of the trail. - name?: null | string @go(Name,*string) -} - -#AdvancedEventSelectorParameters: { - // Specifies the selector statements in an advanced event selector. Fields documented below. - // +kubebuilder:validation:Optional - fieldSelector: [...#FieldSelectorParameters] @go(FieldSelector,[]FieldSelectorParameters) - - // Name of the trail. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#DataResourceInitParameters: { - // Resource type in which you want to log data events. You can specify only the following value: "AWS::S3::Object", "AWS::Lambda::Function" and "AWS::DynamoDB::Table". - type?: null | string @go(Type,*string) - - // List of ARN strings or partial ARN strings to specify selectors for data audit events over data resources. ARN list is specific to single-valued type. For example, arn:aws:s3:::/ for all objects in a bucket, arn:aws:s3:::/key for specific objects, arn:aws:lambda for all lambda events within an account, arn:aws:lambda:::function: for a specific Lambda function, arn:aws:dynamodb for all DDB events for all tables within an account, or arn:aws:dynamodb:::table/ for a specific DynamoDB table. - values?: [...null | string] @go(Values,[]*string) -} - -#DataResourceObservation: { - // Resource type in which you want to log data events. You can specify only the following value: "AWS::S3::Object", "AWS::Lambda::Function" and "AWS::DynamoDB::Table". - type?: null | string @go(Type,*string) - - // List of ARN strings or partial ARN strings to specify selectors for data audit events over data resources. ARN list is specific to single-valued type. For example, arn:aws:s3:::/ for all objects in a bucket, arn:aws:s3:::/key for specific objects, arn:aws:lambda for all lambda events within an account, arn:aws:lambda:::function: for a specific Lambda function, arn:aws:dynamodb for all DDB events for all tables within an account, or arn:aws:dynamodb:::table/
for a specific DynamoDB table. - values?: [...null | string] @go(Values,[]*string) -} - -#DataResourceParameters: { - // Resource type in which you want to log data events. You can specify only the following value: "AWS::S3::Object", "AWS::Lambda::Function" and "AWS::DynamoDB::Table". - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // List of ARN strings or partial ARN strings to specify selectors for data audit events over data resources. ARN list is specific to single-valued type. For example, arn:aws:s3:::/ for all objects in a bucket, arn:aws:s3:::/key for specific objects, arn:aws:lambda for all lambda events within an account, arn:aws:lambda:::function: for a specific Lambda function, arn:aws:dynamodb for all DDB events for all tables within an account, or arn:aws:dynamodb:::table/
for a specific DynamoDB table. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#EventSelectorInitParameters: { - // Configuration block for data events. See details below. - dataResource?: [...#DataResourceInitParameters] @go(DataResource,[]DataResourceInitParameters) - - // A set of event sources to exclude. Valid values include: kms.amazonaws.com and rdsdata.amazonaws.com. include_management_events must be set totrue to allow this. - excludeManagementEventSources?: [...null | string] @go(ExcludeManagementEventSources,[]*string) - - // Whether to include management events for your trail. Defaults to true. - includeManagementEvents?: null | bool @go(IncludeManagementEvents,*bool) - - // Type of events to log. Valid values are ReadOnly, WriteOnly, All. Default value is All. - readWriteType?: null | string @go(ReadWriteType,*string) -} - -#EventSelectorObservation: { - // Configuration block for data events. See details below. - dataResource?: [...#DataResourceObservation] @go(DataResource,[]DataResourceObservation) - - // A set of event sources to exclude. Valid values include: kms.amazonaws.com and rdsdata.amazonaws.com. include_management_events must be set totrue to allow this. - excludeManagementEventSources?: [...null | string] @go(ExcludeManagementEventSources,[]*string) - - // Whether to include management events for your trail. Defaults to true. - includeManagementEvents?: null | bool @go(IncludeManagementEvents,*bool) - - // Type of events to log. Valid values are ReadOnly, WriteOnly, All. Default value is All. - readWriteType?: null | string @go(ReadWriteType,*string) -} - -#EventSelectorParameters: { - // Configuration block for data events. See details below. - // +kubebuilder:validation:Optional - dataResource?: [...#DataResourceParameters] @go(DataResource,[]DataResourceParameters) - - // A set of event sources to exclude. Valid values include: kms.amazonaws.com and rdsdata.amazonaws.com. include_management_events must be set totrue to allow this. - // +kubebuilder:validation:Optional - excludeManagementEventSources?: [...null | string] @go(ExcludeManagementEventSources,[]*string) - - // Whether to include management events for your trail. Defaults to true. - // +kubebuilder:validation:Optional - includeManagementEvents?: null | bool @go(IncludeManagementEvents,*bool) - - // Type of events to log. Valid values are ReadOnly, WriteOnly, All. Default value is All. - // +kubebuilder:validation:Optional - readWriteType?: null | string @go(ReadWriteType,*string) -} - -#FieldSelectorInitParameters: { - // A list of values that includes events that match the last few characters of the event record field specified as the value of field. - endsWith?: [...null | string] @go(EndsWith,[]*string) - - // A list of values that includes events that match the exact value of the event record field specified as the value of field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields. - equals?: [...null | string] @go(Equals,[]*string) - - // Field in an event record on which to filter events to be logged. You can specify only the following values: readOnly, eventSource, eventName, eventCategory, resources.type, resources.ARN. - field?: null | string @go(Field,*string) - - // A list of values that excludes events that match the last few characters of the event record field specified as the value of field. - notEndsWith?: [...null | string] @go(NotEndsWith,[]*string) - - // A list of values that excludes events that match the exact value of the event record field specified as the value of field. - notEquals?: [...null | string] @go(NotEquals,[]*string) - - // A list of values that excludes events that match the first few characters of the event record field specified as the value of field. - notStartsWith?: [...null | string] @go(NotStartsWith,[]*string) - - // A list of values that includes events that match the first few characters of the event record field specified as the value of field. - startsWith?: [...null | string] @go(StartsWith,[]*string) -} - -#FieldSelectorObservation: { - // A list of values that includes events that match the last few characters of the event record field specified as the value of field. - endsWith?: [...null | string] @go(EndsWith,[]*string) - - // A list of values that includes events that match the exact value of the event record field specified as the value of field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields. - equals?: [...null | string] @go(Equals,[]*string) - - // Field in an event record on which to filter events to be logged. You can specify only the following values: readOnly, eventSource, eventName, eventCategory, resources.type, resources.ARN. - field?: null | string @go(Field,*string) - - // A list of values that excludes events that match the last few characters of the event record field specified as the value of field. - notEndsWith?: [...null | string] @go(NotEndsWith,[]*string) - - // A list of values that excludes events that match the exact value of the event record field specified as the value of field. - notEquals?: [...null | string] @go(NotEquals,[]*string) - - // A list of values that excludes events that match the first few characters of the event record field specified as the value of field. - notStartsWith?: [...null | string] @go(NotStartsWith,[]*string) - - // A list of values that includes events that match the first few characters of the event record field specified as the value of field. - startsWith?: [...null | string] @go(StartsWith,[]*string) -} - -#FieldSelectorParameters: { - // A list of values that includes events that match the last few characters of the event record field specified as the value of field. - // +kubebuilder:validation:Optional - endsWith?: [...null | string] @go(EndsWith,[]*string) - - // A list of values that includes events that match the exact value of the event record field specified as the value of field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields. - // +kubebuilder:validation:Optional - equals?: [...null | string] @go(Equals,[]*string) - - // Field in an event record on which to filter events to be logged. You can specify only the following values: readOnly, eventSource, eventName, eventCategory, resources.type, resources.ARN. - // +kubebuilder:validation:Optional - field?: null | string @go(Field,*string) - - // A list of values that excludes events that match the last few characters of the event record field specified as the value of field. - // +kubebuilder:validation:Optional - notEndsWith?: [...null | string] @go(NotEndsWith,[]*string) - - // A list of values that excludes events that match the exact value of the event record field specified as the value of field. - // +kubebuilder:validation:Optional - notEquals?: [...null | string] @go(NotEquals,[]*string) - - // A list of values that excludes events that match the first few characters of the event record field specified as the value of field. - // +kubebuilder:validation:Optional - notStartsWith?: [...null | string] @go(NotStartsWith,[]*string) - - // A list of values that includes events that match the first few characters of the event record field specified as the value of field. - // +kubebuilder:validation:Optional - startsWith?: [...null | string] @go(StartsWith,[]*string) -} - -#InsightSelectorInitParameters: { - // Type of insights to log on a trail. Valid values are: ApiCallRateInsight and ApiErrorRateInsight. - insightType?: null | string @go(InsightType,*string) -} - -#InsightSelectorObservation: { - // Type of insights to log on a trail. Valid values are: ApiCallRateInsight and ApiErrorRateInsight. - insightType?: null | string @go(InsightType,*string) -} - -#InsightSelectorParameters: { - // Type of insights to log on a trail. Valid values are: ApiCallRateInsight and ApiErrorRateInsight. - // +kubebuilder:validation:Optional - insightType?: null | string @go(InsightType,*string) -} - -#TrailInitParameters: { - // Specifies an advanced event selector for enabling data event logging. Fields documented below. Conflicts with event_selector. - advancedEventSelector?: [...#AdvancedEventSelectorInitParameters] @go(AdvancedEventSelector,[]AdvancedEventSelectorInitParameters) - - // Log group name using an ARN that represents the log group to which CloudTrail logs will be delivered. Note that CloudTrail requires the Log Stream wildcard. - cloudWatchLogsGroupArn?: null | string @go(CloudWatchLogsGroupArn,*string) - - // Whether log file integrity validation is enabled. Defaults to false. - enableLogFileValidation?: null | bool @go(EnableLogFileValidation,*bool) - - // Enables logging for the trail. Defaults to true. Setting this to false will pause logging. - enableLogging?: null | bool @go(EnableLogging,*bool) - - // Specifies an event selector for enabling data event logging. Fields documented below. Please note the CloudTrail limits when configuring these. Conflicts with advanced_event_selector. - eventSelector?: [...#EventSelectorInitParameters] @go(EventSelector,[]EventSelectorInitParameters) - - // Whether the trail is publishing events from global services such as IAM to the log files. Defaults to true. - includeGlobalServiceEvents?: null | bool @go(IncludeGlobalServiceEvents,*bool) - - // Configuration block for identifying unusual operational activity. See details below. - insightSelector?: [...#InsightSelectorInitParameters] @go(InsightSelector,[]InsightSelectorInitParameters) - - // Whether the trail is created in the current region or in all regions. Defaults to false. - isMultiRegionTrail?: null | bool @go(IsMultiRegionTrail,*bool) - - // Whether the trail is an AWS Organizations trail. Organization trails log events for the master account and all member accounts. Can only be created in the organization master account. Defaults to false. - isOrganizationTrail?: null | bool @go(IsOrganizationTrail,*bool) - - // S3 key prefix that follows the name of the bucket you have designated for log file delivery. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) - - // Name of the Amazon SNS topic defined for notification of log file delivery. - snsTopicName?: null | string @go(SnsTopicName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TrailObservation: { - // Specifies an advanced event selector for enabling data event logging. Fields documented below. Conflicts with event_selector. - advancedEventSelector?: [...#AdvancedEventSelectorObservation] @go(AdvancedEventSelector,[]AdvancedEventSelectorObservation) - - // ARN of the trail. - arn?: null | string @go(Arn,*string) - - // Log group name using an ARN that represents the log group to which CloudTrail logs will be delivered. Note that CloudTrail requires the Log Stream wildcard. - cloudWatchLogsGroupArn?: null | string @go(CloudWatchLogsGroupArn,*string) - - // Role for the CloudWatch Logs endpoint to assume to write to a user’s log group. - cloudWatchLogsRoleArn?: null | string @go(CloudWatchLogsRoleArn,*string) - - // Whether log file integrity validation is enabled. Defaults to false. - enableLogFileValidation?: null | bool @go(EnableLogFileValidation,*bool) - - // Enables logging for the trail. Defaults to true. Setting this to false will pause logging. - enableLogging?: null | bool @go(EnableLogging,*bool) - - // Specifies an event selector for enabling data event logging. Fields documented below. Please note the CloudTrail limits when configuring these. Conflicts with advanced_event_selector. - eventSelector?: [...#EventSelectorObservation] @go(EventSelector,[]EventSelectorObservation) - - // Region in which the trail was created. - homeRegion?: null | string @go(HomeRegion,*string) - - // Name of the trail. - id?: null | string @go(ID,*string) - - // Whether the trail is publishing events from global services such as IAM to the log files. Defaults to true. - includeGlobalServiceEvents?: null | bool @go(IncludeGlobalServiceEvents,*bool) - - // Configuration block for identifying unusual operational activity. See details below. - insightSelector?: [...#InsightSelectorObservation] @go(InsightSelector,[]InsightSelectorObservation) - - // Whether the trail is created in the current region or in all regions. Defaults to false. - isMultiRegionTrail?: null | bool @go(IsMultiRegionTrail,*bool) - - // Whether the trail is an AWS Organizations trail. Organization trails log events for the master account and all member accounts. Can only be created in the organization master account. Defaults to false. - isOrganizationTrail?: null | bool @go(IsOrganizationTrail,*bool) - - // KMS key ARN to use to encrypt the logs delivered by CloudTrail. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Name of the S3 bucket designated for publishing log files. - s3BucketName?: null | string @go(S3BucketName,*string) - - // S3 key prefix that follows the name of the bucket you have designated for log file delivery. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) - - // Name of the Amazon SNS topic defined for notification of log file delivery. - snsTopicName?: null | string @go(SnsTopicName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#TrailParameters: { - // Specifies an advanced event selector for enabling data event logging. Fields documented below. Conflicts with event_selector. - // +kubebuilder:validation:Optional - advancedEventSelector?: [...#AdvancedEventSelectorParameters] @go(AdvancedEventSelector,[]AdvancedEventSelectorParameters) - - // Log group name using an ARN that represents the log group to which CloudTrail logs will be delivered. Note that CloudTrail requires the Log Stream wildcard. - // +kubebuilder:validation:Optional - cloudWatchLogsGroupArn?: null | string @go(CloudWatchLogsGroupArn,*string) - - // Role for the CloudWatch Logs endpoint to assume to write to a user’s log group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - cloudWatchLogsRoleArn?: null | string @go(CloudWatchLogsRoleArn,*string) - - // Reference to a Role in iam to populate cloudWatchLogsRoleArn. - // +kubebuilder:validation:Optional - cloudWatchLogsRoleArnRef?: null | v1.#Reference @go(CloudWatchLogsRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate cloudWatchLogsRoleArn. - // +kubebuilder:validation:Optional - cloudWatchLogsRoleArnSelector?: null | v1.#Selector @go(CloudWatchLogsRoleArnSelector,*v1.Selector) - - // Whether log file integrity validation is enabled. Defaults to false. - // +kubebuilder:validation:Optional - enableLogFileValidation?: null | bool @go(EnableLogFileValidation,*bool) - - // Enables logging for the trail. Defaults to true. Setting this to false will pause logging. - // +kubebuilder:validation:Optional - enableLogging?: null | bool @go(EnableLogging,*bool) - - // Specifies an event selector for enabling data event logging. Fields documented below. Please note the CloudTrail limits when configuring these. Conflicts with advanced_event_selector. - // +kubebuilder:validation:Optional - eventSelector?: [...#EventSelectorParameters] @go(EventSelector,[]EventSelectorParameters) - - // Whether the trail is publishing events from global services such as IAM to the log files. Defaults to true. - // +kubebuilder:validation:Optional - includeGlobalServiceEvents?: null | bool @go(IncludeGlobalServiceEvents,*bool) - - // Configuration block for identifying unusual operational activity. See details below. - // +kubebuilder:validation:Optional - insightSelector?: [...#InsightSelectorParameters] @go(InsightSelector,[]InsightSelectorParameters) - - // Whether the trail is created in the current region or in all regions. Defaults to false. - // +kubebuilder:validation:Optional - isMultiRegionTrail?: null | bool @go(IsMultiRegionTrail,*bool) - - // Whether the trail is an AWS Organizations trail. Organization trails log events for the master account and all member accounts. Can only be created in the organization master account. Defaults to false. - // +kubebuilder:validation:Optional - isOrganizationTrail?: null | bool @go(IsOrganizationTrail,*bool) - - // KMS key ARN to use to encrypt the logs delivered by CloudTrail. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Name of the S3 bucket designated for publishing log files. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - s3BucketName?: null | string @go(S3BucketName,*string) - - // Reference to a Bucket in s3 to populate s3BucketName. - // +kubebuilder:validation:Optional - s3BucketNameRef?: null | v1.#Reference @go(S3BucketNameRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate s3BucketName. - // +kubebuilder:validation:Optional - s3BucketNameSelector?: null | v1.#Selector @go(S3BucketNameSelector,*v1.Selector) - - // S3 key prefix that follows the name of the bucket you have designated for log file delivery. - // +kubebuilder:validation:Optional - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) - - // Name of the Amazon SNS topic defined for notification of log file delivery. - // +kubebuilder:validation:Optional - snsTopicName?: null | string @go(SnsTopicName,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// TrailSpec defines the desired state of Trail -#TrailSpec: { - v1.#ResourceSpec - forProvider: #TrailParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TrailInitParameters @go(InitProvider) -} - -// TrailStatus defines the observed state of Trail. -#TrailStatus: { - v1.#ResourceStatus - atProvider?: #TrailObservation @go(AtProvider) -} - -// Trail is the Schema for the Trails API. Provides a CloudTrail resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Trail: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TrailSpec @go(Spec) - status?: #TrailStatus @go(Status) -} - -// TrailList contains a list of Trails -#TrailList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Trail] @go(Items,[]Trail) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_compositealarm_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_compositealarm_types_go_gen.cue deleted file mode 100644 index 1abf39a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_compositealarm_types_go_gen.cue +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CompositeAlarmInitParameters: { - // Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. Defaults to true. - actionsEnabled?: null | bool @go(ActionsEnabled,*bool) - - // The description for the composite alarm. - alarmDescription?: null | string @go(AlarmDescription,*string) - - // An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. For syntax, see Creating a Composite Alarm. The maximum length is 10240 characters. - alarmRule?: null | string @go(AlarmRule,*string) - - // The set of actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed. - insufficientDataActions?: [...null | string] @go(InsufficientDataActions,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CompositeAlarmObservation: { - // Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. Defaults to true. - actionsEnabled?: null | bool @go(ActionsEnabled,*bool) - - // The set of actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed. - alarmActions?: [...null | string] @go(AlarmActions,[]*string) - - // The description for the composite alarm. - alarmDescription?: null | string @go(AlarmDescription,*string) - - // An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. For syntax, see Creating a Composite Alarm. The maximum length is 10240 characters. - alarmRule?: null | string @go(AlarmRule,*string) - - // The ARN of the composite alarm. - arn?: null | string @go(Arn,*string) - - // The ID of the composite alarm resource, which is equivalent to its alarm_name. - id?: null | string @go(ID,*string) - - // The set of actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed. - insufficientDataActions?: [...null | string] @go(InsufficientDataActions,[]*string) - - // The set of actions to execute when this alarm transitions to an OK state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed. - okActions?: [...null | string] @go(OkActions,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#CompositeAlarmParameters: { - // Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. Defaults to true. - // +kubebuilder:validation:Optional - actionsEnabled?: null | bool @go(ActionsEnabled,*bool) - - // The set of actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - alarmActions?: [...null | string] @go(AlarmActions,[]*string) - - // References to Topic in sns to populate alarmActions. - // +kubebuilder:validation:Optional - alarmActionsRefs?: [...v1.#Reference] @go(AlarmActionsRefs,[]v1.Reference) - - // Selector for a list of Topic in sns to populate alarmActions. - // +kubebuilder:validation:Optional - alarmActionsSelector?: null | v1.#Selector @go(AlarmActionsSelector,*v1.Selector) - - // The description for the composite alarm. - // +kubebuilder:validation:Optional - alarmDescription?: null | string @go(AlarmDescription,*string) - - // An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. For syntax, see Creating a Composite Alarm. The maximum length is 10240 characters. - // +kubebuilder:validation:Optional - alarmRule?: null | string @go(AlarmRule,*string) - - // The set of actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed. - // +kubebuilder:validation:Optional - insufficientDataActions?: [...null | string] @go(InsufficientDataActions,[]*string) - - // The set of actions to execute when this alarm transitions to an OK state from any other state. Each action is specified as an ARN. Up to 5 actions are allowed. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - okActions?: [...null | string] @go(OkActions,[]*string) - - // References to Topic in sns to populate okActions. - // +kubebuilder:validation:Optional - okActionsRefs?: [...v1.#Reference] @go(OkActionsRefs,[]v1.Reference) - - // Selector for a list of Topic in sns to populate okActions. - // +kubebuilder:validation:Optional - okActionsSelector?: null | v1.#Selector @go(OkActionsSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// CompositeAlarmSpec defines the desired state of CompositeAlarm -#CompositeAlarmSpec: { - v1.#ResourceSpec - forProvider: #CompositeAlarmParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CompositeAlarmInitParameters @go(InitProvider) -} - -// CompositeAlarmStatus defines the observed state of CompositeAlarm. -#CompositeAlarmStatus: { - v1.#ResourceStatus - atProvider?: #CompositeAlarmObservation @go(AtProvider) -} - -// CompositeAlarm is the Schema for the CompositeAlarms API. Provides a CloudWatch Composite Alarm resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CompositeAlarm: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.alarmRule) || (has(self.initProvider) && has(self.initProvider.alarmRule))",message="spec.forProvider.alarmRule is a required parameter" - spec: #CompositeAlarmSpec @go(Spec) - status?: #CompositeAlarmStatus @go(Status) -} - -// CompositeAlarmList contains a list of CompositeAlarms -#CompositeAlarmList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CompositeAlarm] @go(Items,[]CompositeAlarm) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_dashboard_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_dashboard_types_go_gen.cue deleted file mode 100644 index 99cd357..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_dashboard_types_go_gen.cue +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DashboardInitParameters: { - // The detailed information about the dashboard, including what widgets are included and their location on the dashboard. You can read more about the body structure in the documentation. - dashboardBody?: null | string @go(DashboardBody,*string) -} - -#DashboardObservation: { - // The Amazon Resource Name (ARN) of the dashboard. - dashboardArn?: null | string @go(DashboardArn,*string) - - // The detailed information about the dashboard, including what widgets are included and their location on the dashboard. You can read more about the body structure in the documentation. - dashboardBody?: null | string @go(DashboardBody,*string) - id?: null | string @go(ID,*string) -} - -#DashboardParameters: { - // The detailed information about the dashboard, including what widgets are included and their location on the dashboard. You can read more about the body structure in the documentation. - // +kubebuilder:validation:Optional - dashboardBody?: null | string @go(DashboardBody,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DashboardSpec defines the desired state of Dashboard -#DashboardSpec: { - v1.#ResourceSpec - forProvider: #DashboardParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DashboardInitParameters @go(InitProvider) -} - -// DashboardStatus defines the observed state of Dashboard. -#DashboardStatus: { - v1.#ResourceStatus - atProvider?: #DashboardObservation @go(AtProvider) -} - -// Dashboard is the Schema for the Dashboards API. Provides a CloudWatch Dashboard resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Dashboard: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dashboardBody) || (has(self.initProvider) && has(self.initProvider.dashboardBody))",message="spec.forProvider.dashboardBody is a required parameter" - spec: #DashboardSpec @go(Spec) - status?: #DashboardStatus @go(Status) -} - -// DashboardList contains a list of Dashboards -#DashboardList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Dashboard] @go(Items,[]Dashboard) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 8558f1c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatch/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=cloudwatch.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "cloudwatch.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_metricalarm_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_metricalarm_types_go_gen.cue deleted file mode 100644 index 5c647a8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_metricalarm_types_go_gen.cue +++ /dev/null @@ -1,472 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MetricAlarmInitParameters: { - // Indicates whether or not actions should be executed during any changes to the alarm's state. Defaults to true. - actionsEnabled?: null | bool @go(ActionsEnabled,*bool) - - // The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN). - alarmActions?: [...null | string] @go(AlarmActions,[]*string) - - // The description for the alarm. - alarmDescription?: null | string @go(AlarmDescription,*string) - - // The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand. Either of the following is supported: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold. Additionally, the values LessThanLowerOrGreaterThanUpperThreshold, LessThanLowerThreshold, and GreaterThanUpperThreshold are used only for alarms based on anomaly detection models. - comparisonOperator?: null | string @go(ComparisonOperator,*string) - - // The number of datapoints that must be breaching to trigger the alarm. - datapointsToAlarm?: null | float64 @go(DatapointsToAlarm,*float64) - - // The dimensions for the alarm's associated metric. For the list of available dimensions see the AWS documentation here. - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // Used only for alarms based on percentiles. - // If you specify ignore, the alarm state will not change during periods with too few data points to be statistically significant. - // If you specify evaluate or omit this parameter, the alarm will always be evaluated and possibly change state no matter how many data points are available. - // The following values are supported: ignore, and evaluate. - evaluateLowSampleCountPercentiles?: null | string @go(EvaluateLowSampleCountPercentiles,*string) - - // The number of periods over which data is compared to the specified threshold. - evaluationPeriods?: null | float64 @go(EvaluationPeriods,*float64) - - // The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100. - extendedStatistic?: null | string @go(ExtendedStatistic,*string) - - // The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN). - insufficientDataActions?: [...null | string] @go(InsufficientDataActions,[]*string) - - // The name for the alarm's associated metric. - // See docs for supported metrics. - metricName?: null | string @go(MetricName,*string) - - // Enables you to create an alarm based on a metric math expression. You may specify at most 20. - metricQuery?: [...#MetricQueryInitParameters] @go(MetricQuery,[]MetricQueryInitParameters) - - // The namespace for the alarm's associated metric. See docs for the list of namespaces. - // See docs for supported metrics. - namespace?: null | string @go(Namespace,*string) - - // The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN). - okActions?: [...null | string] @go(OkActions,[]*string) - - // The period in seconds over which the specified statistic is applied. - // Valid values are 10, 30, or any multiple of 60. - period?: null | float64 @go(Period,*float64) - - // The statistic to apply to the alarm's associated metric. - // Either of the following is supported: SampleCount, Average, Sum, Minimum, Maximum - statistic?: null | string @go(Statistic,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The value against which the specified statistic is compared. This parameter is required for alarms based on static thresholds, but should not be used for alarms based on anomaly detection models. - threshold?: null | float64 @go(Threshold,*float64) - - // If this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function. - thresholdMetricId?: null | string @go(ThresholdMetricID,*string) - - // Sets how this alarm is to handle missing data points. The following values are supported: missing, ignore, breaching and notBreaching. Defaults to missing. - treatMissingData?: null | string @go(TreatMissingData,*string) - - // The unit for the alarm's associated metric. - unit?: null | string @go(Unit,*string) -} - -#MetricAlarmObservation: { - // Indicates whether or not actions should be executed during any changes to the alarm's state. Defaults to true. - actionsEnabled?: null | bool @go(ActionsEnabled,*bool) - - // The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN). - alarmActions?: [...null | string] @go(AlarmActions,[]*string) - - // The description for the alarm. - alarmDescription?: null | string @go(AlarmDescription,*string) - - // The ARN of the CloudWatch Metric Alarm. - arn?: null | string @go(Arn,*string) - - // The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand. Either of the following is supported: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold. Additionally, the values LessThanLowerOrGreaterThanUpperThreshold, LessThanLowerThreshold, and GreaterThanUpperThreshold are used only for alarms based on anomaly detection models. - comparisonOperator?: null | string @go(ComparisonOperator,*string) - - // The number of datapoints that must be breaching to trigger the alarm. - datapointsToAlarm?: null | float64 @go(DatapointsToAlarm,*float64) - - // The dimensions for the alarm's associated metric. For the list of available dimensions see the AWS documentation here. - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // Used only for alarms based on percentiles. - // If you specify ignore, the alarm state will not change during periods with too few data points to be statistically significant. - // If you specify evaluate or omit this parameter, the alarm will always be evaluated and possibly change state no matter how many data points are available. - // The following values are supported: ignore, and evaluate. - evaluateLowSampleCountPercentiles?: null | string @go(EvaluateLowSampleCountPercentiles,*string) - - // The number of periods over which data is compared to the specified threshold. - evaluationPeriods?: null | float64 @go(EvaluationPeriods,*float64) - - // The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100. - extendedStatistic?: null | string @go(ExtendedStatistic,*string) - - // The ID of the health check. - id?: null | string @go(ID,*string) - - // The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN). - insufficientDataActions?: [...null | string] @go(InsufficientDataActions,[]*string) - - // The name for the alarm's associated metric. - // See docs for supported metrics. - metricName?: null | string @go(MetricName,*string) - - // Enables you to create an alarm based on a metric math expression. You may specify at most 20. - metricQuery?: [...#MetricQueryObservation] @go(MetricQuery,[]MetricQueryObservation) - - // The namespace for the alarm's associated metric. See docs for the list of namespaces. - // See docs for supported metrics. - namespace?: null | string @go(Namespace,*string) - - // The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN). - okActions?: [...null | string] @go(OkActions,[]*string) - - // The period in seconds over which the specified statistic is applied. - // Valid values are 10, 30, or any multiple of 60. - period?: null | float64 @go(Period,*float64) - - // The statistic to apply to the alarm's associated metric. - // Either of the following is supported: SampleCount, Average, Sum, Minimum, Maximum - statistic?: null | string @go(Statistic,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The value against which the specified statistic is compared. This parameter is required for alarms based on static thresholds, but should not be used for alarms based on anomaly detection models. - threshold?: null | float64 @go(Threshold,*float64) - - // If this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function. - thresholdMetricId?: null | string @go(ThresholdMetricID,*string) - - // Sets how this alarm is to handle missing data points. The following values are supported: missing, ignore, breaching and notBreaching. Defaults to missing. - treatMissingData?: null | string @go(TreatMissingData,*string) - - // The unit for the alarm's associated metric. - unit?: null | string @go(Unit,*string) -} - -#MetricAlarmParameters: { - // Indicates whether or not actions should be executed during any changes to the alarm's state. Defaults to true. - // +kubebuilder:validation:Optional - actionsEnabled?: null | bool @go(ActionsEnabled,*bool) - - // The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN). - // +kubebuilder:validation:Optional - alarmActions?: [...null | string] @go(AlarmActions,[]*string) - - // The description for the alarm. - // +kubebuilder:validation:Optional - alarmDescription?: null | string @go(AlarmDescription,*string) - - // The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand. Either of the following is supported: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold. Additionally, the values LessThanLowerOrGreaterThanUpperThreshold, LessThanLowerThreshold, and GreaterThanUpperThreshold are used only for alarms based on anomaly detection models. - // +kubebuilder:validation:Optional - comparisonOperator?: null | string @go(ComparisonOperator,*string) - - // The number of datapoints that must be breaching to trigger the alarm. - // +kubebuilder:validation:Optional - datapointsToAlarm?: null | float64 @go(DatapointsToAlarm,*float64) - - // The dimensions for the alarm's associated metric. For the list of available dimensions see the AWS documentation here. - // +kubebuilder:validation:Optional - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // Used only for alarms based on percentiles. - // If you specify ignore, the alarm state will not change during periods with too few data points to be statistically significant. - // If you specify evaluate or omit this parameter, the alarm will always be evaluated and possibly change state no matter how many data points are available. - // The following values are supported: ignore, and evaluate. - // +kubebuilder:validation:Optional - evaluateLowSampleCountPercentiles?: null | string @go(EvaluateLowSampleCountPercentiles,*string) - - // The number of periods over which data is compared to the specified threshold. - // +kubebuilder:validation:Optional - evaluationPeriods?: null | float64 @go(EvaluationPeriods,*float64) - - // The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100. - // +kubebuilder:validation:Optional - extendedStatistic?: null | string @go(ExtendedStatistic,*string) - - // The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN). - // +kubebuilder:validation:Optional - insufficientDataActions?: [...null | string] @go(InsufficientDataActions,[]*string) - - // The name for the alarm's associated metric. - // See docs for supported metrics. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // Enables you to create an alarm based on a metric math expression. You may specify at most 20. - // +kubebuilder:validation:Optional - metricQuery?: [...#MetricQueryParameters] @go(MetricQuery,[]MetricQueryParameters) - - // The namespace for the alarm's associated metric. See docs for the list of namespaces. - // See docs for supported metrics. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) - - // The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN). - // +kubebuilder:validation:Optional - okActions?: [...null | string] @go(OkActions,[]*string) - - // The period in seconds over which the specified statistic is applied. - // Valid values are 10, 30, or any multiple of 60. - // +kubebuilder:validation:Optional - period?: null | float64 @go(Period,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The statistic to apply to the alarm's associated metric. - // Either of the following is supported: SampleCount, Average, Sum, Minimum, Maximum - // +kubebuilder:validation:Optional - statistic?: null | string @go(Statistic,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The value against which the specified statistic is compared. This parameter is required for alarms based on static thresholds, but should not be used for alarms based on anomaly detection models. - // +kubebuilder:validation:Optional - threshold?: null | float64 @go(Threshold,*float64) - - // If this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function. - // +kubebuilder:validation:Optional - thresholdMetricId?: null | string @go(ThresholdMetricID,*string) - - // Sets how this alarm is to handle missing data points. The following values are supported: missing, ignore, breaching and notBreaching. Defaults to missing. - // +kubebuilder:validation:Optional - treatMissingData?: null | string @go(TreatMissingData,*string) - - // The unit for the alarm's associated metric. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) -} - -#MetricInitParameters: { - // The dimensions for this metric. For the list of available dimensions see the AWS documentation here. - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // The name for this metric. - // See docs for supported metrics. - metricName?: null | string @go(MetricName,*string) - - // The namespace for this metric. See docs for the list of namespaces. - // See docs for supported metrics. - namespace?: null | string @go(Namespace,*string) - - // Granularity in seconds of returned data points. - // For metrics with regular resolution, valid values are any multiple of 60. - // For high-resolution metrics, valid values are 1, 5, 10, 30, or any multiple of 60. - period?: null | float64 @go(Period,*float64) - - // The statistic to apply to this metric. - // See docs for supported statistics. - stat?: null | string @go(Stat,*string) - - // The unit for this metric. - unit?: null | string @go(Unit,*string) -} - -#MetricObservation: { - // The dimensions for this metric. For the list of available dimensions see the AWS documentation here. - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // The name for this metric. - // See docs for supported metrics. - metricName?: null | string @go(MetricName,*string) - - // The namespace for this metric. See docs for the list of namespaces. - // See docs for supported metrics. - namespace?: null | string @go(Namespace,*string) - - // Granularity in seconds of returned data points. - // For metrics with regular resolution, valid values are any multiple of 60. - // For high-resolution metrics, valid values are 1, 5, 10, 30, or any multiple of 60. - period?: null | float64 @go(Period,*float64) - - // The statistic to apply to this metric. - // See docs for supported statistics. - stat?: null | string @go(Stat,*string) - - // The unit for this metric. - unit?: null | string @go(Unit,*string) -} - -#MetricParameters: { - // The dimensions for this metric. For the list of available dimensions see the AWS documentation here. - // +kubebuilder:validation:Optional - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // The name for this metric. - // See docs for supported metrics. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // The namespace for this metric. See docs for the list of namespaces. - // See docs for supported metrics. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) - - // Granularity in seconds of returned data points. - // For metrics with regular resolution, valid values are any multiple of 60. - // For high-resolution metrics, valid values are 1, 5, 10, 30, or any multiple of 60. - // +kubebuilder:validation:Optional - period?: null | float64 @go(Period,*float64) - - // The statistic to apply to this metric. - // See docs for supported statistics. - // +kubebuilder:validation:Optional - stat?: null | string @go(Stat,*string) - - // The unit for this metric. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) -} - -#MetricQueryInitParameters: { - // The ID of the account where the metrics are located, if this is a cross-account alarm. - accountId?: null | string @go(AccountID,*string) - - // The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the id of the other metrics to refer to those metrics, and can also use the id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide. - expression?: null | string @go(Expression,*string) - - // A short name used to tie this object to the results in the response. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. - id?: null | string @go(ID,*string) - - // A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. - label?: null | string @go(Label,*string) - - // The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data. - metric?: [...#MetricInitParameters] @go(Metric,[]MetricInitParameters) - - // Granularity in seconds of returned data points. - // For metrics with regular resolution, valid values are any multiple of 60. - // For high-resolution metrics, valid values are 1, 5, 10, 30, or any multiple of 60. - period?: null | float64 @go(Period,*float64) - - // Specify exactly one metric_query to be true to use that metric_query result as the alarm. - returnData?: null | bool @go(ReturnData,*bool) -} - -#MetricQueryObservation: { - // The ID of the account where the metrics are located, if this is a cross-account alarm. - accountId?: null | string @go(AccountID,*string) - - // The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the id of the other metrics to refer to those metrics, and can also use the id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide. - expression?: null | string @go(Expression,*string) - - // A short name used to tie this object to the results in the response. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. - id?: null | string @go(ID,*string) - - // A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. - label?: null | string @go(Label,*string) - - // The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data. - metric?: [...#MetricObservation] @go(Metric,[]MetricObservation) - - // Granularity in seconds of returned data points. - // For metrics with regular resolution, valid values are any multiple of 60. - // For high-resolution metrics, valid values are 1, 5, 10, 30, or any multiple of 60. - period?: null | float64 @go(Period,*float64) - - // Specify exactly one metric_query to be true to use that metric_query result as the alarm. - returnData?: null | bool @go(ReturnData,*bool) -} - -#MetricQueryParameters: { - // The ID of the account where the metrics are located, if this is a cross-account alarm. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the id of the other metrics to refer to those metrics, and can also use the id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide. - // +kubebuilder:validation:Optional - expression?: null | string @go(Expression,*string) - - // A short name used to tie this object to the results in the response. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. - // +kubebuilder:validation:Optional - label?: null | string @go(Label,*string) - - // The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data. - // +kubebuilder:validation:Optional - metric?: [...#MetricParameters] @go(Metric,[]MetricParameters) - - // Granularity in seconds of returned data points. - // For metrics with regular resolution, valid values are any multiple of 60. - // For high-resolution metrics, valid values are 1, 5, 10, 30, or any multiple of 60. - // +kubebuilder:validation:Optional - period?: null | float64 @go(Period,*float64) - - // Specify exactly one metric_query to be true to use that metric_query result as the alarm. - // +kubebuilder:validation:Optional - returnData?: null | bool @go(ReturnData,*bool) -} - -// MetricAlarmSpec defines the desired state of MetricAlarm -#MetricAlarmSpec: { - v1.#ResourceSpec - forProvider: #MetricAlarmParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MetricAlarmInitParameters @go(InitProvider) -} - -// MetricAlarmStatus defines the observed state of MetricAlarm. -#MetricAlarmStatus: { - v1.#ResourceStatus - atProvider?: #MetricAlarmObservation @go(AtProvider) -} - -// MetricAlarm is the Schema for the MetricAlarms API. Provides a CloudWatch Metric Alarm resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MetricAlarm: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.comparisonOperator) || (has(self.initProvider) && has(self.initProvider.comparisonOperator))",message="spec.forProvider.comparisonOperator is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.evaluationPeriods) || (has(self.initProvider) && has(self.initProvider.evaluationPeriods))",message="spec.forProvider.evaluationPeriods is a required parameter" - spec: #MetricAlarmSpec @go(Spec) - status?: #MetricAlarmStatus @go(Status) -} - -// MetricAlarmList contains a list of MetricAlarms -#MetricAlarmList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MetricAlarm] @go(Items,[]MetricAlarm) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_metricstream_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_metricstream_types_go_gen.cue deleted file mode 100644 index 8fbd269..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatch/v1beta1/zz_metricstream_types_go_gen.cue +++ /dev/null @@ -1,293 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ExcludeFilterInitParameters: { - // An array that defines the metrics you want to exclude for this metric namespace - metricNames?: [...null | string] @go(MetricNames,[]*string) - - // Name of the metric namespace in the filter. - namespace?: null | string @go(Namespace,*string) -} - -#ExcludeFilterObservation: { - // An array that defines the metrics you want to exclude for this metric namespace - metricNames?: [...null | string] @go(MetricNames,[]*string) - - // Name of the metric namespace in the filter. - namespace?: null | string @go(Namespace,*string) -} - -#ExcludeFilterParameters: { - // An array that defines the metrics you want to exclude for this metric namespace - // +kubebuilder:validation:Optional - metricNames?: [...null | string] @go(MetricNames,[]*string) - - // Name of the metric namespace in the filter. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) -} - -#IncludeFilterInitParameters: { - // An array that defines the metrics you want to include for this metric namespace - metricNames?: [...null | string] @go(MetricNames,[]*string) - - // Name of the metric namespace in the filter. - namespace?: null | string @go(Namespace,*string) -} - -#IncludeFilterObservation: { - // An array that defines the metrics you want to include for this metric namespace - metricNames?: [...null | string] @go(MetricNames,[]*string) - - // Name of the metric namespace in the filter. - namespace?: null | string @go(Namespace,*string) -} - -#IncludeFilterParameters: { - // An array that defines the metrics you want to include for this metric namespace - // +kubebuilder:validation:Optional - metricNames?: [...null | string] @go(MetricNames,[]*string) - - // Name of the metric namespace in the filter. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) -} - -#IncludeMetricInitParameters: { - // The name of the metric. - metricName?: null | string @go(MetricName,*string) - - // The namespace of the metric. - namespace?: null | string @go(Namespace,*string) -} - -#IncludeMetricObservation: { - // The name of the metric. - metricName?: null | string @go(MetricName,*string) - - // The namespace of the metric. - namespace?: null | string @go(Namespace,*string) -} - -#IncludeMetricParameters: { - // The name of the metric. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // The namespace of the metric. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) -} - -#MetricStreamInitParameters: { - // List of exclusive metric filters. If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces and the conditional metric names that you specify here. If you don't specify metric names or provide empty metric names whole metric namespace is excluded. Conflicts with include_filter. - excludeFilter?: [...#ExcludeFilterInitParameters] @go(ExcludeFilter,[]ExcludeFilterInitParameters) - - // List of inclusive metric filters. If you specify this parameter, the stream sends only the conditional metric names from the metric namespaces that you specify here. If you don't specify metric names or provide empty metric names whole metric namespace is included. Conflicts with exclude_filter. - includeFilter?: [...#IncludeFilterInitParameters] @go(IncludeFilter,[]IncludeFilterInitParameters) - - // account observability. - includeLinkedAccountsMetrics?: null | bool @go(IncludeLinkedAccountsMetrics,*bool) - - // Friendly name of the metric stream. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // Output format for the stream. Possible values are json and opentelemetry0.7. For more information about output formats, see Metric streams output formats. - outputFormat?: null | string @go(OutputFormat,*string) - - // For each entry in this array, you specify one or more metrics and the list of additional statistics to stream for those metrics. The additional statistics that you can stream depend on the stream's output_format. If the OutputFormat is json, you can stream any additional statistic that is supported by CloudWatch, listed in CloudWatch statistics definitions. If the OutputFormat is opentelemetry0.7, you can stream percentile statistics (p99 etc.). See details below. - statisticsConfiguration?: [...#StatisticsConfigurationInitParameters] @go(StatisticsConfiguration,[]StatisticsConfigurationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#MetricStreamObservation: { - // ARN of the metric stream. - arn?: null | string @go(Arn,*string) - - // Date and time in RFC3339 format that the metric stream was created. - creationDate?: null | string @go(CreationDate,*string) - - // List of exclusive metric filters. If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces and the conditional metric names that you specify here. If you don't specify metric names or provide empty metric names whole metric namespace is excluded. Conflicts with include_filter. - excludeFilter?: [...#ExcludeFilterObservation] @go(ExcludeFilter,[]ExcludeFilterObservation) - - // ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream. - firehoseArn?: null | string @go(FirehoseArn,*string) - id?: null | string @go(ID,*string) - - // List of inclusive metric filters. If you specify this parameter, the stream sends only the conditional metric names from the metric namespaces that you specify here. If you don't specify metric names or provide empty metric names whole metric namespace is included. Conflicts with exclude_filter. - includeFilter?: [...#IncludeFilterObservation] @go(IncludeFilter,[]IncludeFilterObservation) - - // account observability. - includeLinkedAccountsMetrics?: null | bool @go(IncludeLinkedAccountsMetrics,*bool) - - // Date and time in RFC3339 format that the metric stream was last updated. - lastUpdateDate?: null | string @go(LastUpdateDate,*string) - - // Friendly name of the metric stream. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // Output format for the stream. Possible values are json and opentelemetry0.7. For more information about output formats, see Metric streams output formats. - outputFormat?: null | string @go(OutputFormat,*string) - - // ARN of the IAM role that this metric stream will use to access Amazon Kinesis Firehose resources. For more information about role permissions, see Trust between CloudWatch and Kinesis Data Firehose. - roleArn?: null | string @go(RoleArn,*string) - - // State of the metric stream. Possible values are running and stopped. - state?: null | string @go(State,*string) - - // For each entry in this array, you specify one or more metrics and the list of additional statistics to stream for those metrics. The additional statistics that you can stream depend on the stream's output_format. If the OutputFormat is json, you can stream any additional statistic that is supported by CloudWatch, listed in CloudWatch statistics definitions. If the OutputFormat is opentelemetry0.7, you can stream percentile statistics (p99 etc.). See details below. - statisticsConfiguration?: [...#StatisticsConfigurationObservation] @go(StatisticsConfiguration,[]StatisticsConfigurationObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#MetricStreamParameters: { - // List of exclusive metric filters. If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces and the conditional metric names that you specify here. If you don't specify metric names or provide empty metric names whole metric namespace is excluded. Conflicts with include_filter. - // +kubebuilder:validation:Optional - excludeFilter?: [...#ExcludeFilterParameters] @go(ExcludeFilter,[]ExcludeFilterParameters) - - // ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/firehose/v1beta1.DeliveryStream - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",false) - // +kubebuilder:validation:Optional - firehoseArn?: null | string @go(FirehoseArn,*string) - - // Reference to a DeliveryStream in firehose to populate firehoseArn. - // +kubebuilder:validation:Optional - firehoseArnRef?: null | v1.#Reference @go(FirehoseArnRef,*v1.Reference) - - // Selector for a DeliveryStream in firehose to populate firehoseArn. - // +kubebuilder:validation:Optional - firehoseArnSelector?: null | v1.#Selector @go(FirehoseArnSelector,*v1.Selector) - - // List of inclusive metric filters. If you specify this parameter, the stream sends only the conditional metric names from the metric namespaces that you specify here. If you don't specify metric names or provide empty metric names whole metric namespace is included. Conflicts with exclude_filter. - // +kubebuilder:validation:Optional - includeFilter?: [...#IncludeFilterParameters] @go(IncludeFilter,[]IncludeFilterParameters) - - // account observability. - // +kubebuilder:validation:Optional - includeLinkedAccountsMetrics?: null | bool @go(IncludeLinkedAccountsMetrics,*bool) - - // Friendly name of the metric stream. Conflicts with name_prefix. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Output format for the stream. Possible values are json and opentelemetry0.7. For more information about output formats, see Metric streams output formats. - // +kubebuilder:validation:Optional - outputFormat?: null | string @go(OutputFormat,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ARN of the IAM role that this metric stream will use to access Amazon Kinesis Firehose resources. For more information about role permissions, see Trust between CloudWatch and Kinesis Data Firehose. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // For each entry in this array, you specify one or more metrics and the list of additional statistics to stream for those metrics. The additional statistics that you can stream depend on the stream's output_format. If the OutputFormat is json, you can stream any additional statistic that is supported by CloudWatch, listed in CloudWatch statistics definitions. If the OutputFormat is opentelemetry0.7, you can stream percentile statistics (p99 etc.). See details below. - // +kubebuilder:validation:Optional - statisticsConfiguration?: [...#StatisticsConfigurationParameters] @go(StatisticsConfiguration,[]StatisticsConfigurationParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#StatisticsConfigurationInitParameters: { - // The additional statistics to stream for the metrics listed in include_metrics. - additionalStatistics?: [...null | string] @go(AdditionalStatistics,[]*string) - - // An array that defines the metrics that are to have additional statistics streamed. See details below. - includeMetric?: [...#IncludeMetricInitParameters] @go(IncludeMetric,[]IncludeMetricInitParameters) -} - -#StatisticsConfigurationObservation: { - // The additional statistics to stream for the metrics listed in include_metrics. - additionalStatistics?: [...null | string] @go(AdditionalStatistics,[]*string) - - // An array that defines the metrics that are to have additional statistics streamed. See details below. - includeMetric?: [...#IncludeMetricObservation] @go(IncludeMetric,[]IncludeMetricObservation) -} - -#StatisticsConfigurationParameters: { - // The additional statistics to stream for the metrics listed in include_metrics. - // +kubebuilder:validation:Optional - additionalStatistics: [...null | string] @go(AdditionalStatistics,[]*string) - - // An array that defines the metrics that are to have additional statistics streamed. See details below. - // +kubebuilder:validation:Optional - includeMetric: [...#IncludeMetricParameters] @go(IncludeMetric,[]IncludeMetricParameters) -} - -// MetricStreamSpec defines the desired state of MetricStream -#MetricStreamSpec: { - v1.#ResourceSpec - forProvider: #MetricStreamParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MetricStreamInitParameters @go(InitProvider) -} - -// MetricStreamStatus defines the observed state of MetricStream. -#MetricStreamStatus: { - v1.#ResourceStatus - atProvider?: #MetricStreamObservation @go(AtProvider) -} - -// MetricStream is the Schema for the MetricStreams API. Provides a CloudWatch Metric Stream resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MetricStream: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.outputFormat) || (has(self.initProvider) && has(self.initProvider.outputFormat))",message="spec.forProvider.outputFormat is a required parameter" - spec: #MetricStreamSpec @go(Spec) - status?: #MetricStreamStatus @go(Status) -} - -// MetricStreamList contains a list of MetricStreams -#MetricStreamList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MetricStream] @go(Items,[]MetricStream) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_apidestination_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_apidestination_types_go_gen.cue deleted file mode 100644 index 4d82543..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_apidestination_types_go_gen.cue +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#APIDestinationInitParameters: { - // The description of the new API Destination. Maximum of 512 characters. - description?: null | string @go(Description,*string) - - // Select the HTTP method used for the invocation endpoint, such as GET, POST, PUT, etc. - httpMethod?: null | string @go(HTTPMethod,*string) - - // URL endpoint to invoke as a target. This could be a valid endpoint generated by a partner service. You can include "*" as path parameters wildcards to be set from the Target HttpParameters. - invocationEndpoint?: null | string @go(InvocationEndpoint,*string) - - // Enter the maximum number of invocations per second to allow for this destination. Enter a value greater than 0 (default 300). - invocationRateLimitPerSecond?: null | float64 @go(InvocationRateLimitPerSecond,*float64) -} - -#APIDestinationObservation: { - // The Amazon Resource Name (ARN) of the event API Destination. - arn?: null | string @go(Arn,*string) - - // ARN of the EventBridge Connection to use for the API Destination. - connectionArn?: null | string @go(ConnectionArn,*string) - - // The description of the new API Destination. Maximum of 512 characters. - description?: null | string @go(Description,*string) - - // Select the HTTP method used for the invocation endpoint, such as GET, POST, PUT, etc. - httpMethod?: null | string @go(HTTPMethod,*string) - id?: null | string @go(ID,*string) - - // URL endpoint to invoke as a target. This could be a valid endpoint generated by a partner service. You can include "*" as path parameters wildcards to be set from the Target HttpParameters. - invocationEndpoint?: null | string @go(InvocationEndpoint,*string) - - // Enter the maximum number of invocations per second to allow for this destination. Enter a value greater than 0 (default 300). - invocationRateLimitPerSecond?: null | float64 @go(InvocationRateLimitPerSecond,*float64) -} - -#APIDestinationParameters: { - // ARN of the EventBridge Connection to use for the API Destination. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1.Connection - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - connectionArn?: null | string @go(ConnectionArn,*string) - - // Reference to a Connection in cloudwatchevents to populate connectionArn. - // +kubebuilder:validation:Optional - connectionArnRef?: null | v1.#Reference @go(ConnectionArnRef,*v1.Reference) - - // Selector for a Connection in cloudwatchevents to populate connectionArn. - // +kubebuilder:validation:Optional - connectionArnSelector?: null | v1.#Selector @go(ConnectionArnSelector,*v1.Selector) - - // The description of the new API Destination. Maximum of 512 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Select the HTTP method used for the invocation endpoint, such as GET, POST, PUT, etc. - // +kubebuilder:validation:Optional - httpMethod?: null | string @go(HTTPMethod,*string) - - // URL endpoint to invoke as a target. This could be a valid endpoint generated by a partner service. You can include "*" as path parameters wildcards to be set from the Target HttpParameters. - // +kubebuilder:validation:Optional - invocationEndpoint?: null | string @go(InvocationEndpoint,*string) - - // Enter the maximum number of invocations per second to allow for this destination. Enter a value greater than 0 (default 300). - // +kubebuilder:validation:Optional - invocationRateLimitPerSecond?: null | float64 @go(InvocationRateLimitPerSecond,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// APIDestinationSpec defines the desired state of APIDestination -#APIDestinationSpec: { - v1.#ResourceSpec - forProvider: #APIDestinationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #APIDestinationInitParameters @go(InitProvider) -} - -// APIDestinationStatus defines the observed state of APIDestination. -#APIDestinationStatus: { - v1.#ResourceStatus - atProvider?: #APIDestinationObservation @go(AtProvider) -} - -// APIDestination is the Schema for the APIDestinations API. Provides an EventBridge event API Destination resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#APIDestination: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.httpMethod) || (has(self.initProvider) && has(self.initProvider.httpMethod))",message="spec.forProvider.httpMethod is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.invocationEndpoint) || (has(self.initProvider) && has(self.initProvider.invocationEndpoint))",message="spec.forProvider.invocationEndpoint is a required parameter" - spec: #APIDestinationSpec @go(Spec) - status?: #APIDestinationStatus @go(Status) -} - -// APIDestinationList contains a list of APIDestinations -#APIDestinationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#APIDestination] @go(Items,[]APIDestination) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_archive_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_archive_types_go_gen.cue deleted file mode 100644 index 8670d37..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_archive_types_go_gen.cue +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ArchiveInitParameters: { - // The description of the new event archive. - description?: null | string @go(Description,*string) - - // Instructs the new event archive to only capture events matched by this pattern. By default, it attempts to archive every event received in the event_source_arn. - eventPattern?: null | string @go(EventPattern,*string) - - // The maximum number of days to retain events in the new event archive. By default, it archives indefinitely. - retentionDays?: null | float64 @go(RetentionDays,*float64) -} - -#ArchiveObservation: { - // The Amazon Resource Name (ARN) of the event archive. - arn?: null | string @go(Arn,*string) - - // The description of the new event archive. - description?: null | string @go(Description,*string) - - // Instructs the new event archive to only capture events matched by this pattern. By default, it attempts to archive every event received in the event_source_arn. - eventPattern?: null | string @go(EventPattern,*string) - - // Event bus source ARN from where these events should be archived. - eventSourceArn?: null | string @go(EventSourceArn,*string) - id?: null | string @go(ID,*string) - - // The maximum number of days to retain events in the new event archive. By default, it archives indefinitely. - retentionDays?: null | float64 @go(RetentionDays,*float64) -} - -#ArchiveParameters: { - // The description of the new event archive. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Instructs the new event archive to only capture events matched by this pattern. By default, it attempts to archive every event received in the event_source_arn. - // +kubebuilder:validation:Optional - eventPattern?: null | string @go(EventPattern,*string) - - // Event bus source ARN from where these events should be archived. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1.Bus - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - eventSourceArn?: null | string @go(EventSourceArn,*string) - - // Reference to a Bus in cloudwatchevents to populate eventSourceArn. - // +kubebuilder:validation:Optional - eventSourceArnRef?: null | v1.#Reference @go(EventSourceArnRef,*v1.Reference) - - // Selector for a Bus in cloudwatchevents to populate eventSourceArn. - // +kubebuilder:validation:Optional - eventSourceArnSelector?: null | v1.#Selector @go(EventSourceArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The maximum number of days to retain events in the new event archive. By default, it archives indefinitely. - // +kubebuilder:validation:Optional - retentionDays?: null | float64 @go(RetentionDays,*float64) -} - -// ArchiveSpec defines the desired state of Archive -#ArchiveSpec: { - v1.#ResourceSpec - forProvider: #ArchiveParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ArchiveInitParameters @go(InitProvider) -} - -// ArchiveStatus defines the observed state of Archive. -#ArchiveStatus: { - v1.#ResourceStatus - atProvider?: #ArchiveObservation @go(AtProvider) -} - -// Archive is the Schema for the Archives API. Provides an EventBridge event archive resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Archive: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ArchiveSpec @go(Spec) - status?: #ArchiveStatus @go(Status) -} - -// ArchiveList contains a list of Archives -#ArchiveList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Archive] @go(Items,[]Archive) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_bus_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_bus_types_go_gen.cue deleted file mode 100644 index 4472aab..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_bus_types_go_gen.cue +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BusInitParameters: { - // The partner event source that the new event bus will be matched with. Must match name. - eventSourceName?: null | string @go(EventSourceName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BusObservation: { - // The Amazon Resource Name (ARN) of the event bus. - arn?: null | string @go(Arn,*string) - - // The partner event source that the new event bus will be matched with. Must match name. - eventSourceName?: null | string @go(EventSourceName,*string) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#BusParameters: { - // The partner event source that the new event bus will be matched with. Must match name. - // +kubebuilder:validation:Optional - eventSourceName?: null | string @go(EventSourceName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// BusSpec defines the desired state of Bus -#BusSpec: { - v1.#ResourceSpec - forProvider: #BusParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BusInitParameters @go(InitProvider) -} - -// BusStatus defines the observed state of Bus. -#BusStatus: { - v1.#ResourceStatus - atProvider?: #BusObservation @go(AtProvider) -} - -// Bus is the Schema for the Buss API. Provides an EventBridge event bus resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Bus: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BusSpec @go(Spec) - status?: #BusStatus @go(Status) -} - -// BusList contains a list of Buss -#BusList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Bus] @go(Items,[]Bus) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_buspolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_buspolicy_types_go_gen.cue deleted file mode 100644 index 84efa20..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_buspolicy_types_go_gen.cue +++ /dev/null @@ -1,99 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BusPolicyInitParameters: { - // The text of the policy. - policy?: null | string @go(Policy,*string) -} - -#BusPolicyObservation: { - // The name of the event bus to set the permissions on. - // If you omit this, the permissions are set on the default event bus. - eventBusName?: null | string @go(EventBusName,*string) - - // The name of the EventBridge event bus. - id?: null | string @go(ID,*string) - - // The text of the policy. - policy?: null | string @go(Policy,*string) -} - -#BusPolicyParameters: { - // The name of the event bus to set the permissions on. - // If you omit this, the permissions are set on the default event bus. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1.Bus - // +kubebuilder:validation:Optional - eventBusName?: null | string @go(EventBusName,*string) - - // Reference to a Bus in cloudwatchevents to populate eventBusName. - // +kubebuilder:validation:Optional - eventBusNameRef?: null | v1.#Reference @go(EventBusNameRef,*v1.Reference) - - // Selector for a Bus in cloudwatchevents to populate eventBusName. - // +kubebuilder:validation:Optional - eventBusNameSelector?: null | v1.#Selector @go(EventBusNameSelector,*v1.Selector) - - // The text of the policy. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// BusPolicySpec defines the desired state of BusPolicy -#BusPolicySpec: { - v1.#ResourceSpec - forProvider: #BusPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BusPolicyInitParameters @go(InitProvider) -} - -// BusPolicyStatus defines the observed state of BusPolicy. -#BusPolicyStatus: { - v1.#ResourceStatus - atProvider?: #BusPolicyObservation @go(AtProvider) -} - -// BusPolicy is the Schema for the BusPolicys API. Provides a resource to create an EventBridge policy to support cross-account events. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BusPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #BusPolicySpec @go(Spec) - status?: #BusPolicyStatus @go(Status) -} - -// BusPolicyList contains a list of BusPolicys -#BusPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BusPolicy] @go(Items,[]BusPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_connection_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_connection_types_go_gen.cue deleted file mode 100644 index 3f0d436..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_connection_types_go_gen.cue +++ /dev/null @@ -1,510 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#APIKeyInitParameters: { - // Header Name. - key?: null | string @go(Key,*string) -} - -#APIKeyObservation: { - // Header Name. - key?: null | string @go(Key,*string) -} - -#APIKeyParameters: { - // Header Name. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Header Value. Created and stored in AWS Secrets Manager. - // +kubebuilder:validation:Required - valueSecretRef: v1.#SecretKeySelector @go(ValueSecretRef) -} - -#AuthParametersInitParameters: { - // Parameters used for API_KEY authorization. An API key to include in the header for each authentication request. A maximum of 1 are allowed. Conflicts with basic and oauth. Documented below. - apiKey?: [...#APIKeyInitParameters] @go(APIKey,[]APIKeyInitParameters) - - // Parameters used for BASIC authorization. A maximum of 1 are allowed. Conflicts with api_key and oauth. Documented below. - basic?: [...#BasicInitParameters] @go(Basic,[]BasicInitParameters) - - // Invocation Http Parameters are additional credentials used to sign each Invocation of the ApiDestination created from this Connection. If the ApiDestination Rule Target has additional HttpParameters, the values will be merged together, with the Connection Invocation Http Parameters taking precedence. Secret values are stored and managed by AWS Secrets Manager. A maximum of 1 are allowed. Documented below. - invocationHttpParameters?: [...#InvocationHTTPParametersInitParameters] @go(InvocationHTTPParameters,[]InvocationHTTPParametersInitParameters) - - // Parameters used for OAUTH_CLIENT_CREDENTIALS authorization. A maximum of 1 are allowed. Conflicts with basic and api_key. Documented below. - oauth?: [...#OauthInitParameters] @go(Oauth,[]OauthInitParameters) -} - -#AuthParametersObservation: { - // Parameters used for API_KEY authorization. An API key to include in the header for each authentication request. A maximum of 1 are allowed. Conflicts with basic and oauth. Documented below. - apiKey?: [...#APIKeyObservation] @go(APIKey,[]APIKeyObservation) - - // Parameters used for BASIC authorization. A maximum of 1 are allowed. Conflicts with api_key and oauth. Documented below. - basic?: [...#BasicObservation] @go(Basic,[]BasicObservation) - - // Invocation Http Parameters are additional credentials used to sign each Invocation of the ApiDestination created from this Connection. If the ApiDestination Rule Target has additional HttpParameters, the values will be merged together, with the Connection Invocation Http Parameters taking precedence. Secret values are stored and managed by AWS Secrets Manager. A maximum of 1 are allowed. Documented below. - invocationHttpParameters?: [...#InvocationHTTPParametersObservation] @go(InvocationHTTPParameters,[]InvocationHTTPParametersObservation) - - // Parameters used for OAUTH_CLIENT_CREDENTIALS authorization. A maximum of 1 are allowed. Conflicts with basic and api_key. Documented below. - oauth?: [...#OauthObservation] @go(Oauth,[]OauthObservation) -} - -#AuthParametersParameters: { - // Parameters used for API_KEY authorization. An API key to include in the header for each authentication request. A maximum of 1 are allowed. Conflicts with basic and oauth. Documented below. - // +kubebuilder:validation:Optional - apiKey?: [...#APIKeyParameters] @go(APIKey,[]APIKeyParameters) - - // Parameters used for BASIC authorization. A maximum of 1 are allowed. Conflicts with api_key and oauth. Documented below. - // +kubebuilder:validation:Optional - basic?: [...#BasicParameters] @go(Basic,[]BasicParameters) - - // Invocation Http Parameters are additional credentials used to sign each Invocation of the ApiDestination created from this Connection. If the ApiDestination Rule Target has additional HttpParameters, the values will be merged together, with the Connection Invocation Http Parameters taking precedence. Secret values are stored and managed by AWS Secrets Manager. A maximum of 1 are allowed. Documented below. - // +kubebuilder:validation:Optional - invocationHttpParameters?: [...#InvocationHTTPParametersParameters] @go(InvocationHTTPParameters,[]InvocationHTTPParametersParameters) - - // Parameters used for OAUTH_CLIENT_CREDENTIALS authorization. A maximum of 1 are allowed. Conflicts with basic and api_key. Documented below. - // +kubebuilder:validation:Optional - oauth?: [...#OauthParameters] @go(Oauth,[]OauthParameters) -} - -#BasicInitParameters: { - // A username for the authorization. - username?: null | string @go(Username,*string) -} - -#BasicObservation: { - // A username for the authorization. - username?: null | string @go(Username,*string) -} - -#BasicParameters: { - // A password for the authorization. Created and stored in AWS Secrets Manager. - // +kubebuilder:validation:Required - passwordSecretRef: v1.#SecretKeySelector @go(PasswordSecretRef) - - // A username for the authorization. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -#BodyInitParameters: { - // Specified whether the value is secret. - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - key?: null | string @go(Key,*string) -} - -#BodyObservation: { - // Specified whether the value is secret. - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - key?: null | string @go(Key,*string) -} - -#BodyParameters: { - // Specified whether the value is secret. - // +kubebuilder:validation:Optional - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Header Value. Created and stored in AWS Secrets Manager. - // +kubebuilder:validation:Optional - valueSecretRef?: null | v1.#SecretKeySelector @go(ValueSecretRef,*v1.SecretKeySelector) -} - -#ClientParametersInitParameters: { - // The client ID for the credentials to use for authorization. Created and stored in AWS Secrets Manager. - clientId?: null | string @go(ClientID,*string) -} - -#ClientParametersObservation: { - // The client ID for the credentials to use for authorization. Created and stored in AWS Secrets Manager. - clientId?: null | string @go(ClientID,*string) -} - -#ClientParametersParameters: { - // The client ID for the credentials to use for authorization. Created and stored in AWS Secrets Manager. - // +kubebuilder:validation:Optional - clientId?: null | string @go(ClientID,*string) - - // The client secret for the credentials to use for authorization. Created and stored in AWS Secrets Manager. - // +kubebuilder:validation:Required - clientSecretSecretRef: v1.#SecretKeySelector @go(ClientSecretSecretRef) -} - -#ConnectionInitParameters: { - // Parameters used for authorization. A maximum of 1 are allowed. Documented below. - authParameters?: [...#AuthParametersInitParameters] @go(AuthParameters,[]AuthParametersInitParameters) - - // Choose the type of authorization to use for the connection. One of API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS. - authorizationType?: null | string @go(AuthorizationType,*string) - - // Enter a description for the connection. Maximum of 512 characters. - description?: null | string @go(Description,*string) -} - -#ConnectionObservation: { - // The Amazon Resource Name (ARN) of the connection. - arn?: null | string @go(Arn,*string) - - // Parameters used for authorization. A maximum of 1 are allowed. Documented below. - authParameters?: [...#AuthParametersObservation] @go(AuthParameters,[]AuthParametersObservation) - - // Choose the type of authorization to use for the connection. One of API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS. - authorizationType?: null | string @go(AuthorizationType,*string) - - // Enter a description for the connection. Maximum of 512 characters. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) of the secret created from the authorization parameters specified for the connection. - secretArn?: null | string @go(SecretArn,*string) -} - -#ConnectionParameters: { - // Parameters used for authorization. A maximum of 1 are allowed. Documented below. - // +kubebuilder:validation:Optional - authParameters?: [...#AuthParametersParameters] @go(AuthParameters,[]AuthParametersParameters) - - // Choose the type of authorization to use for the connection. One of API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS. - // +kubebuilder:validation:Optional - authorizationType?: null | string @go(AuthorizationType,*string) - - // Enter a description for the connection. Maximum of 512 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#HeaderInitParameters: { - // Specified whether the value is secret. - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - key?: null | string @go(Key,*string) -} - -#HeaderObservation: { - // Specified whether the value is secret. - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - key?: null | string @go(Key,*string) -} - -#HeaderParameters: { - // Specified whether the value is secret. - // +kubebuilder:validation:Optional - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Header Value. Created and stored in AWS Secrets Manager. - // +kubebuilder:validation:Optional - valueSecretRef?: null | v1.#SecretKeySelector @go(ValueSecretRef,*v1.SecretKeySelector) -} - -#InvocationHTTPParametersInitParameters: { - // Contains additional body string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - body?: [...#BodyInitParameters] @go(Body,[]BodyInitParameters) - - // Contains additional header parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - header?: [...#HeaderInitParameters] @go(Header,[]HeaderInitParameters) - - // Contains additional query string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - queryString?: [...#QueryStringInitParameters] @go(QueryString,[]QueryStringInitParameters) -} - -#InvocationHTTPParametersObservation: { - // Contains additional body string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - body?: [...#BodyObservation] @go(Body,[]BodyObservation) - - // Contains additional header parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - header?: [...#HeaderObservation] @go(Header,[]HeaderObservation) - - // Contains additional query string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - queryString?: [...#QueryStringObservation] @go(QueryString,[]QueryStringObservation) -} - -#InvocationHTTPParametersParameters: { - // Contains additional body string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - // +kubebuilder:validation:Optional - body?: [...#BodyParameters] @go(Body,[]BodyParameters) - - // Contains additional header parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - // +kubebuilder:validation:Optional - header?: [...#HeaderParameters] @go(Header,[]HeaderParameters) - - // Contains additional query string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - // +kubebuilder:validation:Optional - queryString?: [...#QueryStringParameters] @go(QueryString,[]QueryStringParameters) -} - -#OauthHTTPParametersBodyInitParameters: { - // Specified whether the value is secret. - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - key?: null | string @go(Key,*string) -} - -#OauthHTTPParametersBodyObservation: { - // Specified whether the value is secret. - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - key?: null | string @go(Key,*string) -} - -#OauthHTTPParametersBodyParameters: { - // Specified whether the value is secret. - // +kubebuilder:validation:Optional - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Header Value. Created and stored in AWS Secrets Manager. - // +kubebuilder:validation:Optional - valueSecretRef?: null | v1.#SecretKeySelector @go(ValueSecretRef,*v1.SecretKeySelector) -} - -#OauthHTTPParametersHeaderInitParameters: { - // Specified whether the value is secret. - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - key?: null | string @go(Key,*string) -} - -#OauthHTTPParametersHeaderObservation: { - // Specified whether the value is secret. - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - key?: null | string @go(Key,*string) -} - -#OauthHTTPParametersHeaderParameters: { - // Specified whether the value is secret. - // +kubebuilder:validation:Optional - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Header Value. Created and stored in AWS Secrets Manager. - // +kubebuilder:validation:Optional - valueSecretRef?: null | v1.#SecretKeySelector @go(ValueSecretRef,*v1.SecretKeySelector) -} - -#OauthHTTPParametersInitParameters: { - // Contains additional body string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - body?: [...#OauthHTTPParametersBodyInitParameters] @go(Body,[]OauthHTTPParametersBodyInitParameters) - - // Contains additional header parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - header?: [...#OauthHTTPParametersHeaderInitParameters] @go(Header,[]OauthHTTPParametersHeaderInitParameters) - - // Contains additional query string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - queryString?: [...#OauthHTTPParametersQueryStringInitParameters] @go(QueryString,[]OauthHTTPParametersQueryStringInitParameters) -} - -#OauthHTTPParametersObservation: { - // Contains additional body string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - body?: [...#OauthHTTPParametersBodyObservation] @go(Body,[]OauthHTTPParametersBodyObservation) - - // Contains additional header parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - header?: [...#OauthHTTPParametersHeaderObservation] @go(Header,[]OauthHTTPParametersHeaderObservation) - - // Contains additional query string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - queryString?: [...#OauthHTTPParametersQueryStringObservation] @go(QueryString,[]OauthHTTPParametersQueryStringObservation) -} - -#OauthHTTPParametersParameters: { - // Contains additional body string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - // +kubebuilder:validation:Optional - body?: [...#OauthHTTPParametersBodyParameters] @go(Body,[]OauthHTTPParametersBodyParameters) - - // Contains additional header parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - // +kubebuilder:validation:Optional - header?: [...#OauthHTTPParametersHeaderParameters] @go(Header,[]OauthHTTPParametersHeaderParameters) - - // Contains additional query string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: - // +kubebuilder:validation:Optional - queryString?: [...#OauthHTTPParametersQueryStringParameters] @go(QueryString,[]OauthHTTPParametersQueryStringParameters) -} - -#OauthHTTPParametersQueryStringInitParameters: { - // Specified whether the value is secret. - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - key?: null | string @go(Key,*string) -} - -#OauthHTTPParametersQueryStringObservation: { - // Specified whether the value is secret. - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - key?: null | string @go(Key,*string) -} - -#OauthHTTPParametersQueryStringParameters: { - // Specified whether the value is secret. - // +kubebuilder:validation:Optional - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Header Value. Created and stored in AWS Secrets Manager. - // +kubebuilder:validation:Optional - valueSecretRef?: null | v1.#SecretKeySelector @go(ValueSecretRef,*v1.SecretKeySelector) -} - -#OauthInitParameters: { - // The URL to the authorization endpoint. - authorizationEndpoint?: null | string @go(AuthorizationEndpoint,*string) - - // Contains the client parameters for OAuth authorization. Contains the following two parameters. - clientParameters?: [...#ClientParametersInitParameters] @go(ClientParameters,[]ClientParametersInitParameters) - - // A password for the authorization. Created and stored in AWS Secrets Manager. - httpMethod?: null | string @go(HTTPMethod,*string) - - // OAuth Http Parameters are additional credentials used to sign the request to the authorization endpoint to exchange the OAuth Client information for an access token. Secret values are stored and managed by AWS Secrets Manager. A maximum of 1 are allowed. Documented below. - oauthHttpParameters?: [...#OauthHTTPParametersInitParameters] @go(OauthHTTPParameters,[]OauthHTTPParametersInitParameters) -} - -#OauthObservation: { - // The URL to the authorization endpoint. - authorizationEndpoint?: null | string @go(AuthorizationEndpoint,*string) - - // Contains the client parameters for OAuth authorization. Contains the following two parameters. - clientParameters?: [...#ClientParametersObservation] @go(ClientParameters,[]ClientParametersObservation) - - // A password for the authorization. Created and stored in AWS Secrets Manager. - httpMethod?: null | string @go(HTTPMethod,*string) - - // OAuth Http Parameters are additional credentials used to sign the request to the authorization endpoint to exchange the OAuth Client information for an access token. Secret values are stored and managed by AWS Secrets Manager. A maximum of 1 are allowed. Documented below. - oauthHttpParameters?: [...#OauthHTTPParametersObservation] @go(OauthHTTPParameters,[]OauthHTTPParametersObservation) -} - -#OauthParameters: { - // The URL to the authorization endpoint. - // +kubebuilder:validation:Optional - authorizationEndpoint?: null | string @go(AuthorizationEndpoint,*string) - - // Contains the client parameters for OAuth authorization. Contains the following two parameters. - // +kubebuilder:validation:Optional - clientParameters?: [...#ClientParametersParameters] @go(ClientParameters,[]ClientParametersParameters) - - // A password for the authorization. Created and stored in AWS Secrets Manager. - // +kubebuilder:validation:Optional - httpMethod?: null | string @go(HTTPMethod,*string) - - // OAuth Http Parameters are additional credentials used to sign the request to the authorization endpoint to exchange the OAuth Client information for an access token. Secret values are stored and managed by AWS Secrets Manager. A maximum of 1 are allowed. Documented below. - // +kubebuilder:validation:Optional - oauthHttpParameters: [...#OauthHTTPParametersParameters] @go(OauthHTTPParameters,[]OauthHTTPParametersParameters) -} - -#QueryStringInitParameters: { - // Specified whether the value is secret. - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - key?: null | string @go(Key,*string) -} - -#QueryStringObservation: { - // Specified whether the value is secret. - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - key?: null | string @go(Key,*string) -} - -#QueryStringParameters: { - // Specified whether the value is secret. - // +kubebuilder:validation:Optional - isValueSecret?: null | bool @go(IsValueSecret,*bool) - - // Header Name. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Header Value. Created and stored in AWS Secrets Manager. - // +kubebuilder:validation:Optional - valueSecretRef?: null | v1.#SecretKeySelector @go(ValueSecretRef,*v1.SecretKeySelector) -} - -// ConnectionSpec defines the desired state of Connection -#ConnectionSpec: { - v1.#ResourceSpec - forProvider: #ConnectionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConnectionInitParameters @go(InitProvider) -} - -// ConnectionStatus defines the observed state of Connection. -#ConnectionStatus: { - v1.#ResourceStatus - atProvider?: #ConnectionObservation @go(AtProvider) -} - -// Connection is the Schema for the Connections API. Provides an EventBridge connection resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Connection: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.authParameters) || (has(self.initProvider) && has(self.initProvider.authParameters))",message="spec.forProvider.authParameters is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.authorizationType) || (has(self.initProvider) && has(self.initProvider.authorizationType))",message="spec.forProvider.authorizationType is a required parameter" - spec: #ConnectionSpec @go(Spec) - status?: #ConnectionStatus @go(Status) -} - -// ConnectionList contains a list of Connections -#ConnectionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Connection] @go(Items,[]Connection) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index bac421c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=cloudwatchevents.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "cloudwatchevents.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_permission_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_permission_types_go_gen.cue deleted file mode 100644 index ec39a39..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_permission_types_go_gen.cue +++ /dev/null @@ -1,173 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConditionInitParameters: { - // Key for the condition. Valid values: aws:PrincipalOrgID. - key?: null | string @go(Key,*string) - - // Type of condition. Value values: StringEquals. - type?: null | string @go(Type,*string) -} - -#ConditionObservation: { - // Key for the condition. Valid values: aws:PrincipalOrgID. - key?: null | string @go(Key,*string) - - // Type of condition. Value values: StringEquals. - type?: null | string @go(Type,*string) - - // Value for the key. - value?: null | string @go(Value,*string) -} - -#ConditionParameters: { - // Key for the condition. Valid values: aws:PrincipalOrgID. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Type of condition. Value values: StringEquals. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // Value for the key. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/organizations/v1beta1.Organization - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) - - // Reference to a Organization in organizations to populate value. - // +kubebuilder:validation:Optional - valueRef?: null | v1.#Reference @go(ValueRef,*v1.Reference) - - // Selector for a Organization in organizations to populate value. - // +kubebuilder:validation:Optional - valueSelector?: null | v1.#Selector @go(ValueSelector,*v1.Selector) -} - -#PermissionInitParameters: { - // The action that you are enabling the other account to perform. Defaults to events:PutEvents. - action?: null | string @go(Action,*string) - - // Configuration block to limit the event bus permissions you are granting to only accounts that fulfill the condition. Specified below. - condition?: [...#ConditionInitParameters] @go(Condition,[]ConditionInitParameters) - - // The 12-digit AWS account ID that you are permitting to put events to your default event bus. Specify * to permit any account to put events to your default event bus, optionally limited by condition. - principal?: null | string @go(Principal,*string) - - // An identifier string for the external account that you are granting permissions to. - statementId?: null | string @go(StatementID,*string) -} - -#PermissionObservation: { - // The action that you are enabling the other account to perform. Defaults to events:PutEvents. - action?: null | string @go(Action,*string) - - // Configuration block to limit the event bus permissions you are granting to only accounts that fulfill the condition. Specified below. - condition?: [...#ConditionObservation] @go(Condition,[]ConditionObservation) - - // The name of the event bus to set the permissions on. - // If you omit this, the permissions are set on the default event bus. - eventBusName?: null | string @go(EventBusName,*string) - - // The statement ID of the EventBridge permission. - id?: null | string @go(ID,*string) - - // The 12-digit AWS account ID that you are permitting to put events to your default event bus. Specify * to permit any account to put events to your default event bus, optionally limited by condition. - principal?: null | string @go(Principal,*string) - - // An identifier string for the external account that you are granting permissions to. - statementId?: null | string @go(StatementID,*string) -} - -#PermissionParameters: { - // The action that you are enabling the other account to perform. Defaults to events:PutEvents. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) - - // Configuration block to limit the event bus permissions you are granting to only accounts that fulfill the condition. Specified below. - // +kubebuilder:validation:Optional - condition?: [...#ConditionParameters] @go(Condition,[]ConditionParameters) - - // The name of the event bus to set the permissions on. - // If you omit this, the permissions are set on the default event bus. - // +crossplane:generate:reference:type=Bus - // +kubebuilder:validation:Optional - eventBusName?: null | string @go(EventBusName,*string) - - // Reference to a Bus to populate eventBusName. - // +kubebuilder:validation:Optional - eventBusNameRef?: null | v1.#Reference @go(EventBusNameRef,*v1.Reference) - - // Selector for a Bus to populate eventBusName. - // +kubebuilder:validation:Optional - eventBusNameSelector?: null | v1.#Selector @go(EventBusNameSelector,*v1.Selector) - - // The 12-digit AWS account ID that you are permitting to put events to your default event bus. Specify * to permit any account to put events to your default event bus, optionally limited by condition. - // +kubebuilder:validation:Optional - principal?: null | string @go(Principal,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // An identifier string for the external account that you are granting permissions to. - // +kubebuilder:validation:Optional - statementId?: null | string @go(StatementID,*string) -} - -// PermissionSpec defines the desired state of Permission -#PermissionSpec: { - v1.#ResourceSpec - forProvider: #PermissionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PermissionInitParameters @go(InitProvider) -} - -// PermissionStatus defines the observed state of Permission. -#PermissionStatus: { - v1.#ResourceStatus - atProvider?: #PermissionObservation @go(AtProvider) -} - -// Permission is the Schema for the Permissions API. Provides a resource to create an EventBridge permission to support cross-account events in the current account default event bus. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Permission: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.principal) || (has(self.initProvider) && has(self.initProvider.principal))",message="spec.forProvider.principal is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.statementId) || (has(self.initProvider) && has(self.initProvider.statementId))",message="spec.forProvider.statementId is a required parameter" - spec: #PermissionSpec @go(Spec) - status?: #PermissionStatus @go(Status) -} - -// PermissionList contains a list of Permissions -#PermissionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Permission] @go(Items,[]Permission) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_rule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_rule_types_go_gen.cue deleted file mode 100644 index 4408f00..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_rule_types_go_gen.cue +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RuleInitParameters: { - // The description of the rule. - description?: null | string @go(Description,*string) - - // The event pattern described a JSON object. At least one of schedule_expression or event_pattern is required. See full documentation of Events and Event Patterns in EventBridge for details. - eventPattern?: null | string @go(EventPattern,*string) - - // Whether the rule should be enabled (defaults to true). - isEnabled?: null | bool @go(IsEnabled,*bool) - - // The scheduling expression. For example, cron(0 20 * * ? *) or rate(5 minutes). At least one of schedule_expression or event_pattern is required. Can only be used on the default event bus. For more information, refer to the AWS documentation Schedule Expressions for Rules. - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RuleObservation: { - // The Amazon Resource Name (ARN) of the rule. - arn?: null | string @go(Arn,*string) - - // The description of the rule. - description?: null | string @go(Description,*string) - - // The name or ARN of the event bus to associate with this rule. - // If you omit this, the default event bus is used. - eventBusName?: null | string @go(EventBusName,*string) - - // The event pattern described a JSON object. At least one of schedule_expression or event_pattern is required. See full documentation of Events and Event Patterns in EventBridge for details. - eventPattern?: null | string @go(EventPattern,*string) - - // The name of the rule. - id?: null | string @go(ID,*string) - - // Whether the rule should be enabled (defaults to true). - isEnabled?: null | bool @go(IsEnabled,*bool) - - // The Amazon Resource Name (ARN) associated with the role that is used for target invocation. - roleArn?: null | string @go(RoleArn,*string) - - // The scheduling expression. For example, cron(0 20 * * ? *) or rate(5 minutes). At least one of schedule_expression or event_pattern is required. Can only be used on the default event bus. For more information, refer to the AWS documentation Schedule Expressions for Rules. - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RuleParameters: { - // The description of the rule. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name or ARN of the event bus to associate with this rule. - // If you omit this, the default event bus is used. - // +crossplane:generate:reference:type=Bus - // +kubebuilder:validation:Optional - eventBusName?: null | string @go(EventBusName,*string) - - // Reference to a Bus to populate eventBusName. - // +kubebuilder:validation:Optional - eventBusNameRef?: null | v1.#Reference @go(EventBusNameRef,*v1.Reference) - - // Selector for a Bus to populate eventBusName. - // +kubebuilder:validation:Optional - eventBusNameSelector?: null | v1.#Selector @go(EventBusNameSelector,*v1.Selector) - - // The event pattern described a JSON object. At least one of schedule_expression or event_pattern is required. See full documentation of Events and Event Patterns in EventBridge for details. - // +kubebuilder:validation:Optional - eventPattern?: null | string @go(EventPattern,*string) - - // Whether the rule should be enabled (defaults to true). - // +kubebuilder:validation:Optional - isEnabled?: null | bool @go(IsEnabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) associated with the role that is used for target invocation. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The scheduling expression. For example, cron(0 20 * * ? *) or rate(5 minutes). At least one of schedule_expression or event_pattern is required. Can only be used on the default event bus. For more information, refer to the AWS documentation Schedule Expressions for Rules. - // +kubebuilder:validation:Optional - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RuleSpec defines the desired state of Rule -#RuleSpec: { - v1.#ResourceSpec - forProvider: #RuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RuleInitParameters @go(InitProvider) -} - -// RuleStatus defines the observed state of Rule. -#RuleStatus: { - v1.#ResourceStatus - atProvider?: #RuleObservation @go(AtProvider) -} - -// Rule is the Schema for the Rules API. Provides an EventBridge Rule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Rule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RuleSpec @go(Spec) - status?: #RuleStatus @go(Status) -} - -// RuleList contains a list of Rules -#RuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Rule] @go(Items,[]Rule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_target_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_target_types_go_gen.cue deleted file mode 100644 index c7ba1c1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1/zz_target_types_go_gen.cue +++ /dev/null @@ -1,801 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BatchTargetInitParameters: { - // The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000. - arraySize?: null | float64 @go(ArraySize,*float64) - - // The number of times to attempt to retry, if the job fails. Valid values are 1 to 10. - jobAttempts?: null | float64 @go(JobAttempts,*float64) - - // The ARN or name of the job definition to use if the event target is an AWS Batch job. This job definition must already exist. - jobDefinition?: null | string @go(JobDefinition,*string) - - // The name to use for this execution of the job, if the target is an AWS Batch job. - jobName?: null | string @go(JobName,*string) -} - -#BatchTargetObservation: { - // The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000. - arraySize?: null | float64 @go(ArraySize,*float64) - - // The number of times to attempt to retry, if the job fails. Valid values are 1 to 10. - jobAttempts?: null | float64 @go(JobAttempts,*float64) - - // The ARN or name of the job definition to use if the event target is an AWS Batch job. This job definition must already exist. - jobDefinition?: null | string @go(JobDefinition,*string) - - // The name to use for this execution of the job, if the target is an AWS Batch job. - jobName?: null | string @go(JobName,*string) -} - -#BatchTargetParameters: { - // The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000. - // +kubebuilder:validation:Optional - arraySize?: null | float64 @go(ArraySize,*float64) - - // The number of times to attempt to retry, if the job fails. Valid values are 1 to 10. - // +kubebuilder:validation:Optional - jobAttempts?: null | float64 @go(JobAttempts,*float64) - - // The ARN or name of the job definition to use if the event target is an AWS Batch job. This job definition must already exist. - // +kubebuilder:validation:Optional - jobDefinition?: null | string @go(JobDefinition,*string) - - // The name to use for this execution of the job, if the target is an AWS Batch job. - // +kubebuilder:validation:Optional - jobName?: null | string @go(JobName,*string) -} - -#CapacityProviderStrategyInitParameters: { - // The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. Defaults to 0. - base?: null | float64 @go(Base,*float64) - - // Short name of the capacity provider. - capacityProvider?: null | string @go(CapacityProvider,*string) - - // The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied. - weight?: null | float64 @go(Weight,*float64) -} - -#CapacityProviderStrategyObservation: { - // The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. Defaults to 0. - base?: null | float64 @go(Base,*float64) - - // Short name of the capacity provider. - capacityProvider?: null | string @go(CapacityProvider,*string) - - // The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied. - weight?: null | float64 @go(Weight,*float64) -} - -#CapacityProviderStrategyParameters: { - // The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. Defaults to 0. - // +kubebuilder:validation:Optional - base?: null | float64 @go(Base,*float64) - - // Short name of the capacity provider. - // +kubebuilder:validation:Optional - capacityProvider?: null | string @go(CapacityProvider,*string) - - // The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -#DeadLetterConfigInitParameters: { - // - ARN of the SQS queue specified as the target for the dead-letter queue. - arn?: null | string @go(Arn,*string) -} - -#DeadLetterConfigObservation: { - // - ARN of the SQS queue specified as the target for the dead-letter queue. - arn?: null | string @go(Arn,*string) -} - -#DeadLetterConfigParameters: { - // - ARN of the SQS queue specified as the target for the dead-letter queue. - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) -} - -#EcsTargetInitParameters: { - // The capacity provider strategy to use for the task. If a capacity_provider_strategy specified, the launch_type parameter must be omitted. If no capacity_provider_strategy or launch_type is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below. - capacityProviderStrategy?: [...#CapacityProviderStrategyInitParameters] @go(CapacityProviderStrategy,[]CapacityProviderStrategyInitParameters) - - // Specifies whether to enable Amazon ECS managed tags for the task. - enableEcsManagedTags?: null | bool @go(EnableEcsManagedTags,*bool) - - // Whether or not to enable the execute command functionality for the containers in this task. If true, this enables execute command functionality on all containers in the task. - enableExecuteCommand?: null | bool @go(EnableExecuteCommand,*bool) - - // Specifies an ECS task group for the task. The maximum length is 255 characters. - group?: null | string @go(Group,*string) - - // Specifies the launch type on which your task is running. The launch type that you specify here must match one of the launch type (compatibilities) of the target task. Valid values include: EC2, EXTERNAL, or FARGATE. - launchType?: null | string @go(LaunchType,*string) - - // Use this if the ECS task uses the awsvpc network mode. This specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. Required if launch_type is FARGATE because the awsvpc mode is required for Fargate tasks. - networkConfiguration?: [...#NetworkConfigurationInitParameters] @go(NetworkConfiguration,[]NetworkConfigurationInitParameters) - - // An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task. - orderedPlacementStrategy?: [...#OrderedPlacementStrategyInitParameters] @go(OrderedPlacementStrategy,[]OrderedPlacementStrategyInitParameters) - - // An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). See Below. - placementConstraint?: [...#PlacementConstraintInitParameters] @go(PlacementConstraint,[]PlacementConstraintInitParameters) - - // Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as 1.1.0. This is used only if LaunchType is FARGATE. For more information about valid platform versions, see AWS Fargate Platform Versions. - platformVersion?: null | string @go(PlatformVersion,*string) - - // Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags are not propagated. Tags can only be propagated to the task during task creation. The only valid value is: TASK_DEFINITION. - propagateTags?: null | string @go(PropagateTags,*string) - - // A map of tags to assign to ecs resources. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The number of tasks to create based on the TaskDefinition. Defaults to 1. - taskCount?: null | float64 @go(TaskCount,*float64) -} - -#EcsTargetObservation: { - // The capacity provider strategy to use for the task. If a capacity_provider_strategy specified, the launch_type parameter must be omitted. If no capacity_provider_strategy or launch_type is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below. - capacityProviderStrategy?: [...#CapacityProviderStrategyObservation] @go(CapacityProviderStrategy,[]CapacityProviderStrategyObservation) - - // Specifies whether to enable Amazon ECS managed tags for the task. - enableEcsManagedTags?: null | bool @go(EnableEcsManagedTags,*bool) - - // Whether or not to enable the execute command functionality for the containers in this task. If true, this enables execute command functionality on all containers in the task. - enableExecuteCommand?: null | bool @go(EnableExecuteCommand,*bool) - - // Specifies an ECS task group for the task. The maximum length is 255 characters. - group?: null | string @go(Group,*string) - - // Specifies the launch type on which your task is running. The launch type that you specify here must match one of the launch type (compatibilities) of the target task. Valid values include: EC2, EXTERNAL, or FARGATE. - launchType?: null | string @go(LaunchType,*string) - - // Use this if the ECS task uses the awsvpc network mode. This specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. Required if launch_type is FARGATE because the awsvpc mode is required for Fargate tasks. - networkConfiguration?: [...#NetworkConfigurationObservation] @go(NetworkConfiguration,[]NetworkConfigurationObservation) - - // An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task. - orderedPlacementStrategy?: [...#OrderedPlacementStrategyObservation] @go(OrderedPlacementStrategy,[]OrderedPlacementStrategyObservation) - - // An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). See Below. - placementConstraint?: [...#PlacementConstraintObservation] @go(PlacementConstraint,[]PlacementConstraintObservation) - - // Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as 1.1.0. This is used only if LaunchType is FARGATE. For more information about valid platform versions, see AWS Fargate Platform Versions. - platformVersion?: null | string @go(PlatformVersion,*string) - - // Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags are not propagated. Tags can only be propagated to the task during task creation. The only valid value is: TASK_DEFINITION. - propagateTags?: null | string @go(PropagateTags,*string) - - // A map of tags to assign to ecs resources. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The number of tasks to create based on the TaskDefinition. Defaults to 1. - taskCount?: null | float64 @go(TaskCount,*float64) - - // The ARN of the task definition to use if the event target is an Amazon ECS cluster. - taskDefinitionArn?: null | string @go(TaskDefinitionArn,*string) -} - -#EcsTargetParameters: { - // The capacity provider strategy to use for the task. If a capacity_provider_strategy specified, the launch_type parameter must be omitted. If no capacity_provider_strategy or launch_type is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below. - // +kubebuilder:validation:Optional - capacityProviderStrategy?: [...#CapacityProviderStrategyParameters] @go(CapacityProviderStrategy,[]CapacityProviderStrategyParameters) - - // Specifies whether to enable Amazon ECS managed tags for the task. - // +kubebuilder:validation:Optional - enableEcsManagedTags?: null | bool @go(EnableEcsManagedTags,*bool) - - // Whether or not to enable the execute command functionality for the containers in this task. If true, this enables execute command functionality on all containers in the task. - // +kubebuilder:validation:Optional - enableExecuteCommand?: null | bool @go(EnableExecuteCommand,*bool) - - // Specifies an ECS task group for the task. The maximum length is 255 characters. - // +kubebuilder:validation:Optional - group?: null | string @go(Group,*string) - - // Specifies the launch type on which your task is running. The launch type that you specify here must match one of the launch type (compatibilities) of the target task. Valid values include: EC2, EXTERNAL, or FARGATE. - // +kubebuilder:validation:Optional - launchType?: null | string @go(LaunchType,*string) - - // Use this if the ECS task uses the awsvpc network mode. This specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. Required if launch_type is FARGATE because the awsvpc mode is required for Fargate tasks. - // +kubebuilder:validation:Optional - networkConfiguration?: [...#NetworkConfigurationParameters] @go(NetworkConfiguration,[]NetworkConfigurationParameters) - - // An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task. - // +kubebuilder:validation:Optional - orderedPlacementStrategy?: [...#OrderedPlacementStrategyParameters] @go(OrderedPlacementStrategy,[]OrderedPlacementStrategyParameters) - - // An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). See Below. - // +kubebuilder:validation:Optional - placementConstraint?: [...#PlacementConstraintParameters] @go(PlacementConstraint,[]PlacementConstraintParameters) - - // Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as 1.1.0. This is used only if LaunchType is FARGATE. For more information about valid platform versions, see AWS Fargate Platform Versions. - // +kubebuilder:validation:Optional - platformVersion?: null | string @go(PlatformVersion,*string) - - // Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags are not propagated. Tags can only be propagated to the task during task creation. The only valid value is: TASK_DEFINITION. - // +kubebuilder:validation:Optional - propagateTags?: null | string @go(PropagateTags,*string) - - // A map of tags to assign to ecs resources. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The number of tasks to create based on the TaskDefinition. Defaults to 1. - // +kubebuilder:validation:Optional - taskCount?: null | float64 @go(TaskCount,*float64) - - // The ARN of the task definition to use if the event target is an Amazon ECS cluster. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ecs/v1beta1.TaskDefinition - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - taskDefinitionArn?: null | string @go(TaskDefinitionArn,*string) - - // Reference to a TaskDefinition in ecs to populate taskDefinitionArn. - // +kubebuilder:validation:Optional - taskDefinitionArnRef?: null | v1.#Reference @go(TaskDefinitionArnRef,*v1.Reference) - - // Selector for a TaskDefinition in ecs to populate taskDefinitionArn. - // +kubebuilder:validation:Optional - taskDefinitionArnSelector?: null | v1.#Selector @go(TaskDefinitionArnSelector,*v1.Selector) -} - -#HTTPTargetInitParameters: { - // Enables you to specify HTTP headers to add to the request. - headerParameters?: {[string]: null | string} @go(HeaderParameters,map[string]*string) - - // The list of values that correspond sequentially to any path variables in your endpoint ARN (for example arn:aws:execute-api:us-east-1:123456:myapi/*/POST/pets/*). - pathParameterValues?: [...null | string] @go(PathParameterValues,[]*string) - - // Represents keys/values of query string parameters that are appended to the invoked endpoint. - queryStringParameters?: {[string]: null | string} @go(QueryStringParameters,map[string]*string) -} - -#HTTPTargetObservation: { - // Enables you to specify HTTP headers to add to the request. - headerParameters?: {[string]: null | string} @go(HeaderParameters,map[string]*string) - - // The list of values that correspond sequentially to any path variables in your endpoint ARN (for example arn:aws:execute-api:us-east-1:123456:myapi/*/POST/pets/*). - pathParameterValues?: [...null | string] @go(PathParameterValues,[]*string) - - // Represents keys/values of query string parameters that are appended to the invoked endpoint. - queryStringParameters?: {[string]: null | string} @go(QueryStringParameters,map[string]*string) -} - -#HTTPTargetParameters: { - // Enables you to specify HTTP headers to add to the request. - // +kubebuilder:validation:Optional - headerParameters?: {[string]: null | string} @go(HeaderParameters,map[string]*string) - - // The list of values that correspond sequentially to any path variables in your endpoint ARN (for example arn:aws:execute-api:us-east-1:123456:myapi/*/POST/pets/*). - // +kubebuilder:validation:Optional - pathParameterValues?: [...null | string] @go(PathParameterValues,[]*string) - - // Represents keys/values of query string parameters that are appended to the invoked endpoint. - // +kubebuilder:validation:Optional - queryStringParameters?: {[string]: null | string} @go(QueryStringParameters,map[string]*string) -} - -#InputTransformerInitParameters: { - // Key value pairs specified in the form of JSONPath (for example, time = $.time) - inputPaths?: {[string]: null | string} @go(InputPaths,map[string]*string) - - // Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes.g., "\"Your string goes here.\\nA new line.\"" - inputTemplate?: null | string @go(InputTemplate,*string) -} - -#InputTransformerObservation: { - // Key value pairs specified in the form of JSONPath (for example, time = $.time) - inputPaths?: {[string]: null | string} @go(InputPaths,map[string]*string) - - // Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes.g., "\"Your string goes here.\\nA new line.\"" - inputTemplate?: null | string @go(InputTemplate,*string) -} - -#InputTransformerParameters: { - // Key value pairs specified in the form of JSONPath (for example, time = $.time) - // +kubebuilder:validation:Optional - inputPaths?: {[string]: null | string} @go(InputPaths,map[string]*string) - - // Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes.g., "\"Your string goes here.\\nA new line.\"" - // +kubebuilder:validation:Optional - inputTemplate?: null | string @go(InputTemplate,*string) -} - -#KinesisTargetInitParameters: { - // The JSON path to be extracted from the event and used as the partition key. - partitionKeyPath?: null | string @go(PartitionKeyPath,*string) -} - -#KinesisTargetObservation: { - // The JSON path to be extracted from the event and used as the partition key. - partitionKeyPath?: null | string @go(PartitionKeyPath,*string) -} - -#KinesisTargetParameters: { - // The JSON path to be extracted from the event and used as the partition key. - // +kubebuilder:validation:Optional - partitionKeyPath?: null | string @go(PartitionKeyPath,*string) -} - -#NetworkConfigurationInitParameters: { - // Assign a public IP address to the ENI (Fargate launch type only). Valid values are true or false. Defaults to false. - assignPublicIp?: null | bool @go(AssignPublicIP,*bool) - - // The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The subnets associated with the task or service. - subnets?: [...null | string] @go(Subnets,[]*string) -} - -#NetworkConfigurationObservation: { - // Assign a public IP address to the ENI (Fargate launch type only). Valid values are true or false. Defaults to false. - assignPublicIp?: null | bool @go(AssignPublicIP,*bool) - - // The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The subnets associated with the task or service. - subnets?: [...null | string] @go(Subnets,[]*string) -} - -#NetworkConfigurationParameters: { - // Assign a public IP address to the ENI (Fargate launch type only). Valid values are true or false. Defaults to false. - // +kubebuilder:validation:Optional - assignPublicIp?: null | bool @go(AssignPublicIP,*bool) - - // The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The subnets associated with the task or service. - // +kubebuilder:validation:Optional - subnets: [...null | string] @go(Subnets,[]*string) -} - -#OrderedPlacementStrategyInitParameters: { - // The field to apply the placement strategy against. For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack placement strategy, valid values are cpu and memory. For the random placement strategy, this field is not used. For more information, see Amazon ECS task placement strategies. - field?: null | string @go(Field,*string) - - // Type of placement strategy. The only valid values at this time are binpack, random and spread. - type?: null | string @go(Type,*string) -} - -#OrderedPlacementStrategyObservation: { - // The field to apply the placement strategy against. For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack placement strategy, valid values are cpu and memory. For the random placement strategy, this field is not used. For more information, see Amazon ECS task placement strategies. - field?: null | string @go(Field,*string) - - // Type of placement strategy. The only valid values at this time are binpack, random and spread. - type?: null | string @go(Type,*string) -} - -#OrderedPlacementStrategyParameters: { - // The field to apply the placement strategy against. For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack placement strategy, valid values are cpu and memory. For the random placement strategy, this field is not used. For more information, see Amazon ECS task placement strategies. - // +kubebuilder:validation:Optional - field?: null | string @go(Field,*string) - - // Type of placement strategy. The only valid values at this time are binpack, random and spread. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#PlacementConstraintInitParameters: { - // Cluster Query Language expression to apply to the constraint. Does not need to be specified for the distinctInstance type. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide. - expression?: null | string @go(Expression,*string) - - // Type of constraint. The only valid values at this time are memberOf and distinctInstance. - type?: null | string @go(Type,*string) -} - -#PlacementConstraintObservation: { - // Cluster Query Language expression to apply to the constraint. Does not need to be specified for the distinctInstance type. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide. - expression?: null | string @go(Expression,*string) - - // Type of constraint. The only valid values at this time are memberOf and distinctInstance. - type?: null | string @go(Type,*string) -} - -#PlacementConstraintParameters: { - // Cluster Query Language expression to apply to the constraint. Does not need to be specified for the distinctInstance type. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide. - // +kubebuilder:validation:Optional - expression?: null | string @go(Expression,*string) - - // Type of constraint. The only valid values at this time are memberOf and distinctInstance. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RedshiftTargetInitParameters: { - // The database user name. - dbUser?: null | string @go(DBUser,*string) - - // The name of the database. - database?: null | string @go(Database,*string) - - // The SQL statement text to run. - sql?: null | string @go(SQL,*string) - - // The name or ARN of the secret that enables access to the database. - secretsManagerArn?: null | string @go(SecretsManagerArn,*string) - - // The name of the SQL statement. - statementName?: null | string @go(StatementName,*string) - - // Indicates whether to send an event back to EventBridge after the SQL statement runs. - withEvent?: null | bool @go(WithEvent,*bool) -} - -#RedshiftTargetObservation: { - // The database user name. - dbUser?: null | string @go(DBUser,*string) - - // The name of the database. - database?: null | string @go(Database,*string) - - // The SQL statement text to run. - sql?: null | string @go(SQL,*string) - - // The name or ARN of the secret that enables access to the database. - secretsManagerArn?: null | string @go(SecretsManagerArn,*string) - - // The name of the SQL statement. - statementName?: null | string @go(StatementName,*string) - - // Indicates whether to send an event back to EventBridge after the SQL statement runs. - withEvent?: null | bool @go(WithEvent,*bool) -} - -#RedshiftTargetParameters: { - // The database user name. - // +kubebuilder:validation:Optional - dbUser?: null | string @go(DBUser,*string) - - // The name of the database. - // +kubebuilder:validation:Optional - database?: null | string @go(Database,*string) - - // The SQL statement text to run. - // +kubebuilder:validation:Optional - sql?: null | string @go(SQL,*string) - - // The name or ARN of the secret that enables access to the database. - // +kubebuilder:validation:Optional - secretsManagerArn?: null | string @go(SecretsManagerArn,*string) - - // The name of the SQL statement. - // +kubebuilder:validation:Optional - statementName?: null | string @go(StatementName,*string) - - // Indicates whether to send an event back to EventBridge after the SQL statement runs. - // +kubebuilder:validation:Optional - withEvent?: null | bool @go(WithEvent,*bool) -} - -#RetryPolicyInitParameters: { - // The age in seconds to continue to make retry attempts. - maximumEventAgeInSeconds?: null | float64 @go(MaximumEventAgeInSeconds,*float64) - - // maximum number of retry attempts to make before the request fails - maximumRetryAttempts?: null | float64 @go(MaximumRetryAttempts,*float64) -} - -#RetryPolicyObservation: { - // The age in seconds to continue to make retry attempts. - maximumEventAgeInSeconds?: null | float64 @go(MaximumEventAgeInSeconds,*float64) - - // maximum number of retry attempts to make before the request fails - maximumRetryAttempts?: null | float64 @go(MaximumRetryAttempts,*float64) -} - -#RetryPolicyParameters: { - // The age in seconds to continue to make retry attempts. - // +kubebuilder:validation:Optional - maximumEventAgeInSeconds?: null | float64 @go(MaximumEventAgeInSeconds,*float64) - - // maximum number of retry attempts to make before the request fails - // +kubebuilder:validation:Optional - maximumRetryAttempts?: null | float64 @go(MaximumRetryAttempts,*float64) -} - -#RunCommandTargetsInitParameters: { - // Can be either tag:tag-key or InstanceIds. - key?: null | string @go(Key,*string) - - // If Key is tag:tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of Amazon EC2 instance IDs. - values?: [...null | string] @go(Values,[]*string) -} - -#RunCommandTargetsObservation: { - // Can be either tag:tag-key or InstanceIds. - key?: null | string @go(Key,*string) - - // If Key is tag:tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of Amazon EC2 instance IDs. - values?: [...null | string] @go(Values,[]*string) -} - -#RunCommandTargetsParameters: { - // Can be either tag:tag-key or InstanceIds. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // If Key is tag:tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of Amazon EC2 instance IDs. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#SqsTargetInitParameters: { - // The FIFO message group ID to use as the target. - messageGroupId?: null | string @go(MessageGroupID,*string) -} - -#SqsTargetObservation: { - // The FIFO message group ID to use as the target. - messageGroupId?: null | string @go(MessageGroupID,*string) -} - -#SqsTargetParameters: { - // The FIFO message group ID to use as the target. - // +kubebuilder:validation:Optional - messageGroupId?: null | string @go(MessageGroupID,*string) -} - -#TargetInitParameters: { - // The Amazon Resource Name (ARN) of the target. - arn?: null | string @go(Arn,*string) - - // Parameters used when you are using the rule to invoke an Amazon Batch Job. Documented below. A maximum of 1 are allowed. - batchTarget?: [...#BatchTargetInitParameters] @go(BatchTarget,[]BatchTargetInitParameters) - - // Parameters used when you are providing a dead letter config. Documented below. A maximum of 1 are allowed. - deadLetterConfig?: [...#DeadLetterConfigInitParameters] @go(DeadLetterConfig,[]DeadLetterConfigInitParameters) - - // Parameters used when you are using the rule to invoke Amazon ECS Task. Documented below. A maximum of 1 are allowed. - ecsTarget?: [...#EcsTargetInitParameters] @go(EcsTarget,[]EcsTargetInitParameters) - - // Parameters used when you are using the rule to invoke an API Gateway REST endpoint. Documented below. A maximum of 1 is allowed. - httpTarget?: [...#HTTPTargetInitParameters] @go(HTTPTarget,[]HTTPTargetInitParameters) - - // Valid JSON text passed to the target. Conflicts with input_path and input_transformer. - input?: null | string @go(Input,*string) - - // The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. Conflicts with input and input_transformer. - inputPath?: null | string @go(InputPath,*string) - - // Parameters used when you are providing a custom input to a target based on certain event data. Conflicts with input and input_path. - inputTransformer?: [...#InputTransformerInitParameters] @go(InputTransformer,[]InputTransformerInitParameters) - - // Parameters used when you are using the rule to invoke an Amazon Kinesis Stream. Documented below. A maximum of 1 are allowed. - kinesisTarget?: [...#KinesisTargetInitParameters] @go(KinesisTarget,[]KinesisTargetInitParameters) - - // Parameters used when you are using the rule to invoke an Amazon Redshift Statement. Documented below. A maximum of 1 are allowed. - redshiftTarget?: [...#RedshiftTargetInitParameters] @go(RedshiftTarget,[]RedshiftTargetInitParameters) - - // Parameters used when you are providing retry policies. Documented below. A maximum of 1 are allowed. - retryPolicy?: [...#RetryPolicyInitParameters] @go(RetryPolicy,[]RetryPolicyInitParameters) - - // Parameters used when you are using the rule to invoke Amazon EC2 Run Command. Documented below. A maximum of 5 are allowed. - runCommandTargets?: [...#RunCommandTargetsInitParameters] @go(RunCommandTargets,[]RunCommandTargetsInitParameters) - - // Parameters used when you are using the rule to invoke an Amazon SQS Queue. Documented below. A maximum of 1 are allowed. - sqsTarget?: [...#SqsTargetInitParameters] @go(SqsTarget,[]SqsTargetInitParameters) - - // The unique target assignment ID. If missing, will generate a random, unique id. - targetId?: null | string @go(TargetID,*string) -} - -#TargetObservation: { - // The Amazon Resource Name (ARN) of the target. - arn?: null | string @go(Arn,*string) - - // Parameters used when you are using the rule to invoke an Amazon Batch Job. Documented below. A maximum of 1 are allowed. - batchTarget?: [...#BatchTargetObservation] @go(BatchTarget,[]BatchTargetObservation) - - // Parameters used when you are providing a dead letter config. Documented below. A maximum of 1 are allowed. - deadLetterConfig?: [...#DeadLetterConfigObservation] @go(DeadLetterConfig,[]DeadLetterConfigObservation) - - // Parameters used when you are using the rule to invoke Amazon ECS Task. Documented below. A maximum of 1 are allowed. - ecsTarget?: [...#EcsTargetObservation] @go(EcsTarget,[]EcsTargetObservation) - - // The name or ARN of the event bus to associate with the rule. - // If you omit this, the default event bus is used. - eventBusName?: null | string @go(EventBusName,*string) - - // Parameters used when you are using the rule to invoke an API Gateway REST endpoint. Documented below. A maximum of 1 is allowed. - httpTarget?: [...#HTTPTargetObservation] @go(HTTPTarget,[]HTTPTargetObservation) - id?: null | string @go(ID,*string) - - // Valid JSON text passed to the target. Conflicts with input_path and input_transformer. - input?: null | string @go(Input,*string) - - // The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. Conflicts with input and input_transformer. - inputPath?: null | string @go(InputPath,*string) - - // Parameters used when you are providing a custom input to a target based on certain event data. Conflicts with input and input_path. - inputTransformer?: [...#InputTransformerObservation] @go(InputTransformer,[]InputTransformerObservation) - - // Parameters used when you are using the rule to invoke an Amazon Kinesis Stream. Documented below. A maximum of 1 are allowed. - kinesisTarget?: [...#KinesisTargetObservation] @go(KinesisTarget,[]KinesisTargetObservation) - - // Parameters used when you are using the rule to invoke an Amazon Redshift Statement. Documented below. A maximum of 1 are allowed. - redshiftTarget?: [...#RedshiftTargetObservation] @go(RedshiftTarget,[]RedshiftTargetObservation) - - // Parameters used when you are providing retry policies. Documented below. A maximum of 1 are allowed. - retryPolicy?: [...#RetryPolicyObservation] @go(RetryPolicy,[]RetryPolicyObservation) - - // The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. Required if ecs_target is used or target in arn is EC2 instance, Kinesis data stream, Step Functions state machine, or Event Bus in different account or region. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the rule you want to add targets to. - rule?: null | string @go(Rule,*string) - - // Parameters used when you are using the rule to invoke Amazon EC2 Run Command. Documented below. A maximum of 5 are allowed. - runCommandTargets?: [...#RunCommandTargetsObservation] @go(RunCommandTargets,[]RunCommandTargetsObservation) - - // Parameters used when you are using the rule to invoke an Amazon SQS Queue. Documented below. A maximum of 1 are allowed. - sqsTarget?: [...#SqsTargetObservation] @go(SqsTarget,[]SqsTargetObservation) - - // The unique target assignment ID. If missing, will generate a random, unique id. - targetId?: null | string @go(TargetID,*string) -} - -#TargetParameters: { - // The Amazon Resource Name (ARN) of the target. - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // Parameters used when you are using the rule to invoke an Amazon Batch Job. Documented below. A maximum of 1 are allowed. - // +kubebuilder:validation:Optional - batchTarget?: [...#BatchTargetParameters] @go(BatchTarget,[]BatchTargetParameters) - - // Parameters used when you are providing a dead letter config. Documented below. A maximum of 1 are allowed. - // +kubebuilder:validation:Optional - deadLetterConfig?: [...#DeadLetterConfigParameters] @go(DeadLetterConfig,[]DeadLetterConfigParameters) - - // Parameters used when you are using the rule to invoke Amazon ECS Task. Documented below. A maximum of 1 are allowed. - // +kubebuilder:validation:Optional - ecsTarget?: [...#EcsTargetParameters] @go(EcsTarget,[]EcsTargetParameters) - - // The name or ARN of the event bus to associate with the rule. - // If you omit this, the default event bus is used. - // +crossplane:generate:reference:type=Bus - // +kubebuilder:validation:Optional - eventBusName?: null | string @go(EventBusName,*string) - - // Reference to a Bus to populate eventBusName. - // +kubebuilder:validation:Optional - eventBusNameRef?: null | v1.#Reference @go(EventBusNameRef,*v1.Reference) - - // Selector for a Bus to populate eventBusName. - // +kubebuilder:validation:Optional - eventBusNameSelector?: null | v1.#Selector @go(EventBusNameSelector,*v1.Selector) - - // Parameters used when you are using the rule to invoke an API Gateway REST endpoint. Documented below. A maximum of 1 is allowed. - // +kubebuilder:validation:Optional - httpTarget?: [...#HTTPTargetParameters] @go(HTTPTarget,[]HTTPTargetParameters) - - // Valid JSON text passed to the target. Conflicts with input_path and input_transformer. - // +kubebuilder:validation:Optional - input?: null | string @go(Input,*string) - - // The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. Conflicts with input and input_transformer. - // +kubebuilder:validation:Optional - inputPath?: null | string @go(InputPath,*string) - - // Parameters used when you are providing a custom input to a target based on certain event data. Conflicts with input and input_path. - // +kubebuilder:validation:Optional - inputTransformer?: [...#InputTransformerParameters] @go(InputTransformer,[]InputTransformerParameters) - - // Parameters used when you are using the rule to invoke an Amazon Kinesis Stream. Documented below. A maximum of 1 are allowed. - // +kubebuilder:validation:Optional - kinesisTarget?: [...#KinesisTargetParameters] @go(KinesisTarget,[]KinesisTargetParameters) - - // Parameters used when you are using the rule to invoke an Amazon Redshift Statement. Documented below. A maximum of 1 are allowed. - // +kubebuilder:validation:Optional - redshiftTarget?: [...#RedshiftTargetParameters] @go(RedshiftTarget,[]RedshiftTargetParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Parameters used when you are providing retry policies. Documented below. A maximum of 1 are allowed. - // +kubebuilder:validation:Optional - retryPolicy?: [...#RetryPolicyParameters] @go(RetryPolicy,[]RetryPolicyParameters) - - // The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. Required if ecs_target is used or target in arn is EC2 instance, Kinesis data stream, Step Functions state machine, or Event Bus in different account or region. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The name of the rule you want to add targets to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1.Rule - // +kubebuilder:validation:Optional - rule?: null | string @go(Rule,*string) - - // Reference to a Rule in cloudwatchevents to populate rule. - // +kubebuilder:validation:Optional - ruleRef?: null | v1.#Reference @go(RuleRef,*v1.Reference) - - // Selector for a Rule in cloudwatchevents to populate rule. - // +kubebuilder:validation:Optional - ruleSelector?: null | v1.#Selector @go(RuleSelector,*v1.Selector) - - // Parameters used when you are using the rule to invoke Amazon EC2 Run Command. Documented below. A maximum of 5 are allowed. - // +kubebuilder:validation:Optional - runCommandTargets?: [...#RunCommandTargetsParameters] @go(RunCommandTargets,[]RunCommandTargetsParameters) - - // Parameters used when you are using the rule to invoke an Amazon SQS Queue. Documented below. A maximum of 1 are allowed. - // +kubebuilder:validation:Optional - sqsTarget?: [...#SqsTargetParameters] @go(SqsTarget,[]SqsTargetParameters) - - // The unique target assignment ID. If missing, will generate a random, unique id. - // +kubebuilder:validation:Optional - targetId?: null | string @go(TargetID,*string) -} - -// TargetSpec defines the desired state of Target -#TargetSpec: { - v1.#ResourceSpec - forProvider: #TargetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TargetInitParameters @go(InitProvider) -} - -// TargetStatus defines the observed state of Target. -#TargetStatus: { - v1.#ResourceStatus - atProvider?: #TargetObservation @go(AtProvider) -} - -// Target is the Schema for the Targets API. Provides an EventBridge Target resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Target: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.arn) || (has(self.initProvider) && has(self.initProvider.arn))",message="spec.forProvider.arn is a required parameter" - spec: #TargetSpec @go(Spec) - status?: #TargetStatus @go(Status) -} - -// TargetList contains a list of Targets -#TargetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Target] @go(Items,[]Target) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_definition_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_definition_types_go_gen.cue deleted file mode 100644 index f0cdee5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_definition_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DefinitionInitParameters: { - // Specific log groups to use with the query. - logGroupNames?: [...null | string] @go(LogGroupNames,[]*string) - - // The name of the query. - name?: null | string @go(Name,*string) - - // The query to save. You can read more about CloudWatch Logs Query Syntax in the documentation. - queryString?: null | string @go(QueryString,*string) -} - -#DefinitionObservation: { - id?: null | string @go(ID,*string) - - // Specific log groups to use with the query. - logGroupNames?: [...null | string] @go(LogGroupNames,[]*string) - - // The name of the query. - name?: null | string @go(Name,*string) - - // The query definition ID. - queryDefinitionId?: null | string @go(QueryDefinitionID,*string) - - // The query to save. You can read more about CloudWatch Logs Query Syntax in the documentation. - queryString?: null | string @go(QueryString,*string) -} - -#DefinitionParameters: { - // Specific log groups to use with the query. - // +kubebuilder:validation:Optional - logGroupNames?: [...null | string] @go(LogGroupNames,[]*string) - - // The name of the query. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The query to save. You can read more about CloudWatch Logs Query Syntax in the documentation. - // +kubebuilder:validation:Optional - queryString?: null | string @go(QueryString,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DefinitionSpec defines the desired state of Definition -#DefinitionSpec: { - v1.#ResourceSpec - forProvider: #DefinitionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DefinitionInitParameters @go(InitProvider) -} - -// DefinitionStatus defines the observed state of Definition. -#DefinitionStatus: { - v1.#ResourceStatus - atProvider?: #DefinitionObservation @go(AtProvider) -} - -// Definition is the Schema for the Definitions API. Provides a CloudWatch Logs query definition resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Definition: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.queryString) || (has(self.initProvider) && has(self.initProvider.queryString))",message="spec.forProvider.queryString is a required parameter" - spec: #DefinitionSpec @go(Spec) - status?: #DefinitionStatus @go(Status) -} - -// DefinitionList contains a list of Definitions -#DefinitionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Definition] @go(Items,[]Definition) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_destination_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_destination_types_go_gen.cue deleted file mode 100644 index c74d098..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_destination_types_go_gen.cue +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DestinationInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DestinationObservation: { - // The Amazon Resource Name (ARN) specifying the log destination. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // The ARN of an IAM role that grants Amazon CloudWatch Logs permissions to put data into the target. - roleArn?: null | string @go(RoleArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ARN of the target Amazon Kinesis stream resource for the destination. - targetArn?: null | string @go(TargetArn,*string) -} - -#DestinationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of an IAM role that grants Amazon CloudWatch Logs permissions to put data into the target. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ARN of the target Amazon Kinesis stream resource for the destination. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kinesis/v1beta1.Stream - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - targetArn?: null | string @go(TargetArn,*string) - - // Reference to a Stream in kinesis to populate targetArn. - // +kubebuilder:validation:Optional - targetArnRef?: null | v1.#Reference @go(TargetArnRef,*v1.Reference) - - // Selector for a Stream in kinesis to populate targetArn. - // +kubebuilder:validation:Optional - targetArnSelector?: null | v1.#Selector @go(TargetArnSelector,*v1.Selector) -} - -// DestinationSpec defines the desired state of Destination -#DestinationSpec: { - v1.#ResourceSpec - forProvider: #DestinationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DestinationInitParameters @go(InitProvider) -} - -// DestinationStatus defines the observed state of Destination. -#DestinationStatus: { - v1.#ResourceStatus - atProvider?: #DestinationObservation @go(AtProvider) -} - -// Destination is the Schema for the Destinations API. Provides a CloudWatch Logs destination. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Destination: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DestinationSpec @go(Spec) - status?: #DestinationStatus @go(Status) -} - -// DestinationList contains a list of Destinations -#DestinationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Destination] @go(Items,[]Destination) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_destinationpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_destinationpolicy_types_go_gen.cue deleted file mode 100644 index a6fb7ca..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_destinationpolicy_types_go_gen.cue +++ /dev/null @@ -1,89 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DestinationPolicyInitParameters: { - // The policy document. This is a JSON formatted string. - accessPolicy?: null | string @go(AccessPolicy,*string) - - // Specify true if you are updating an existing destination policy to grant permission to an organization ID instead of granting permission to individual AWS accounts. - forceUpdate?: null | bool @go(ForceUpdate,*bool) -} - -#DestinationPolicyObservation: { - // The policy document. This is a JSON formatted string. - accessPolicy?: null | string @go(AccessPolicy,*string) - - // Specify true if you are updating an existing destination policy to grant permission to an organization ID instead of granting permission to individual AWS accounts. - forceUpdate?: null | bool @go(ForceUpdate,*bool) - id?: null | string @go(ID,*string) -} - -#DestinationPolicyParameters: { - // The policy document. This is a JSON formatted string. - // +kubebuilder:validation:Optional - accessPolicy?: null | string @go(AccessPolicy,*string) - - // Specify true if you are updating an existing destination policy to grant permission to an organization ID instead of granting permission to individual AWS accounts. - // +kubebuilder:validation:Optional - forceUpdate?: null | bool @go(ForceUpdate,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DestinationPolicySpec defines the desired state of DestinationPolicy -#DestinationPolicySpec: { - v1.#ResourceSpec - forProvider: #DestinationPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DestinationPolicyInitParameters @go(InitProvider) -} - -// DestinationPolicyStatus defines the observed state of DestinationPolicy. -#DestinationPolicyStatus: { - v1.#ResourceStatus - atProvider?: #DestinationPolicyObservation @go(AtProvider) -} - -// DestinationPolicy is the Schema for the DestinationPolicys API. Provides a CloudWatch Logs destination policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DestinationPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accessPolicy) || (has(self.initProvider) && has(self.initProvider.accessPolicy))",message="spec.forProvider.accessPolicy is a required parameter" - spec: #DestinationPolicySpec @go(Spec) - status?: #DestinationPolicyStatus @go(Status) -} - -// DestinationPolicyList contains a list of DestinationPolicys -#DestinationPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DestinationPolicy] @go(Items,[]DestinationPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_group_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_group_types_go_gen.cue deleted file mode 100644 index 8f94cb1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_group_types_go_gen.cue +++ /dev/null @@ -1,124 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GroupInitParameters: { - // Specifies the number of days - // you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, 3653, and 0. - // If you select 0, the events in the log group are always retained and never expire. - retentionInDays?: null | float64 @go(RetentionInDays,*float64) - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#GroupObservation: { - // The Amazon Resource Name (ARN) specifying the log group. Any :* suffix added by the API, denoting all CloudWatch Log Streams under the CloudWatch Log Group, is removed for greater compatibility with other AWS services that do not accept the suffix. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // The ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CMK is disassociated from the log group, - // AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires - // permissions for the CMK whenever the encrypted data is requested. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Specifies the number of days - // you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, 3653, and 0. - // If you select 0, the events in the log group are always retained and never expire. - retentionInDays?: null | float64 @go(RetentionInDays,*float64) - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#GroupParameters: { - // The ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CMK is disassociated from the log group, - // AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires - // permissions for the CMK whenever the encrypted data is requested. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the number of days - // you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, 3653, and 0. - // If you select 0, the events in the log group are always retained and never expire. - // +kubebuilder:validation:Optional - retentionInDays?: null | float64 @go(RetentionInDays,*float64) - - // +kubebuilder:validation:Optional - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// GroupSpec defines the desired state of Group -#GroupSpec: { - v1.#ResourceSpec - forProvider: #GroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GroupInitParameters @go(InitProvider) -} - -// GroupStatus defines the observed state of Group. -#GroupStatus: { - v1.#ResourceStatus - atProvider?: #GroupObservation @go(AtProvider) -} - -// Group is the Schema for the Groups API. Provides a CloudWatch Log Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Group: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #GroupSpec @go(Spec) - status?: #GroupStatus @go(Status) -} - -// GroupList contains a list of Groups -#GroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Group] @go(Items,[]Group) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 9903cde..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=cloudwatchlogs.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "cloudwatchlogs.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_metricfilter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_metricfilter_types_go_gen.cue deleted file mode 100644 index 38a23d8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_metricfilter_types_go_gen.cue +++ /dev/null @@ -1,177 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MetricFilterInitParameters: { - // A block defining collection of information needed to define how metric data gets emitted. See below. - metricTransformation?: [...#MetricTransformationInitParameters] @go(MetricTransformation,[]MetricTransformationInitParameters) - - // A valid CloudWatch Logs filter pattern - // for extracting metric data out of ingested log events. - pattern?: null | string @go(Pattern,*string) -} - -#MetricFilterObservation: { - // The name of the metric filter. - id?: null | string @go(ID,*string) - - // The name of the log group to associate the metric filter with. - logGroupName?: null | string @go(LogGroupName,*string) - - // A block defining collection of information needed to define how metric data gets emitted. See below. - metricTransformation?: [...#MetricTransformationObservation] @go(MetricTransformation,[]MetricTransformationObservation) - - // A valid CloudWatch Logs filter pattern - // for extracting metric data out of ingested log events. - pattern?: null | string @go(Pattern,*string) -} - -#MetricFilterParameters: { - // The name of the log group to associate the metric filter with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // Reference to a Group in cloudwatchlogs to populate logGroupName. - // +kubebuilder:validation:Optional - logGroupNameRef?: null | v1.#Reference @go(LogGroupNameRef,*v1.Reference) - - // Selector for a Group in cloudwatchlogs to populate logGroupName. - // +kubebuilder:validation:Optional - logGroupNameSelector?: null | v1.#Selector @go(LogGroupNameSelector,*v1.Selector) - - // A block defining collection of information needed to define how metric data gets emitted. See below. - // +kubebuilder:validation:Optional - metricTransformation?: [...#MetricTransformationParameters] @go(MetricTransformation,[]MetricTransformationParameters) - - // A valid CloudWatch Logs filter pattern - // for extracting metric data out of ingested log events. - // +kubebuilder:validation:Optional - pattern?: null | string @go(Pattern,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#MetricTransformationInitParameters: { - // The value to emit when a filter pattern does not match a log event. Conflicts with dimensions. - defaultValue?: null | string @go(DefaultValue,*string) - - // Map of fields to use as dimensions for the metric. Up to 3 dimensions are allowed. Conflicts with default_value. - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // The name of the CloudWatch metric to which the monitored log information should be published (e.g., ErrorCount) - name?: null | string @go(Name,*string) - - // The destination namespace of the CloudWatch metric. - namespace?: null | string @go(Namespace,*string) - - // The unit to assign to the metric. If you omit this, the unit is set as None. - unit?: null | string @go(Unit,*string) - - // What to publish to the metric. For example, if you're counting the occurrences of a particular term like "Error", the value will be "1" for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event. - value?: null | string @go(Value,*string) -} - -#MetricTransformationObservation: { - // The value to emit when a filter pattern does not match a log event. Conflicts with dimensions. - defaultValue?: null | string @go(DefaultValue,*string) - - // Map of fields to use as dimensions for the metric. Up to 3 dimensions are allowed. Conflicts with default_value. - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // The name of the CloudWatch metric to which the monitored log information should be published (e.g., ErrorCount) - name?: null | string @go(Name,*string) - - // The destination namespace of the CloudWatch metric. - namespace?: null | string @go(Namespace,*string) - - // The unit to assign to the metric. If you omit this, the unit is set as None. - unit?: null | string @go(Unit,*string) - - // What to publish to the metric. For example, if you're counting the occurrences of a particular term like "Error", the value will be "1" for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event. - value?: null | string @go(Value,*string) -} - -#MetricTransformationParameters: { - // The value to emit when a filter pattern does not match a log event. Conflicts with dimensions. - // +kubebuilder:validation:Optional - defaultValue?: null | string @go(DefaultValue,*string) - - // Map of fields to use as dimensions for the metric. Up to 3 dimensions are allowed. Conflicts with default_value. - // +kubebuilder:validation:Optional - dimensions?: {[string]: null | string} @go(Dimensions,map[string]*string) - - // The name of the CloudWatch metric to which the monitored log information should be published (e.g., ErrorCount) - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The destination namespace of the CloudWatch metric. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) - - // The unit to assign to the metric. If you omit this, the unit is set as None. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // What to publish to the metric. For example, if you're counting the occurrences of a particular term like "Error", the value will be "1" for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// MetricFilterSpec defines the desired state of MetricFilter -#MetricFilterSpec: { - v1.#ResourceSpec - forProvider: #MetricFilterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MetricFilterInitParameters @go(InitProvider) -} - -// MetricFilterStatus defines the observed state of MetricFilter. -#MetricFilterStatus: { - v1.#ResourceStatus - atProvider?: #MetricFilterObservation @go(AtProvider) -} - -// MetricFilter is the Schema for the MetricFilters API. Provides a CloudWatch Log Metric Filter resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MetricFilter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.metricTransformation) || (has(self.initProvider) && has(self.initProvider.metricTransformation))",message="spec.forProvider.metricTransformation is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.pattern) || (has(self.initProvider) && has(self.initProvider.pattern))",message="spec.forProvider.pattern is a required parameter" - spec: #MetricFilterSpec @go(Spec) - status?: #MetricFilterStatus @go(Status) -} - -// MetricFilterList contains a list of MetricFilters -#MetricFilterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MetricFilter] @go(Items,[]MetricFilter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_resourcepolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_resourcepolicy_types_go_gen.cue deleted file mode 100644 index 66be425..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_resourcepolicy_types_go_gen.cue +++ /dev/null @@ -1,81 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourcePolicyInitParameters: { - // Details of the resource policy, including the identity of the principal that is enabled to put logs to this account. This is formatted as a JSON string. Maximum length of 5120 characters. - policyDocument?: null | string @go(PolicyDocument,*string) -} - -#ResourcePolicyObservation: { - // The name of the CloudWatch log resource policy - id?: null | string @go(ID,*string) - - // Details of the resource policy, including the identity of the principal that is enabled to put logs to this account. This is formatted as a JSON string. Maximum length of 5120 characters. - policyDocument?: null | string @go(PolicyDocument,*string) -} - -#ResourcePolicyParameters: { - // Details of the resource policy, including the identity of the principal that is enabled to put logs to this account. This is formatted as a JSON string. Maximum length of 5120 characters. - // +kubebuilder:validation:Optional - policyDocument?: null | string @go(PolicyDocument,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ResourcePolicySpec defines the desired state of ResourcePolicy -#ResourcePolicySpec: { - v1.#ResourceSpec - forProvider: #ResourcePolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourcePolicyInitParameters @go(InitProvider) -} - -// ResourcePolicyStatus defines the observed state of ResourcePolicy. -#ResourcePolicyStatus: { - v1.#ResourceStatus - atProvider?: #ResourcePolicyObservation @go(AtProvider) -} - -// ResourcePolicy is the Schema for the ResourcePolicys API. Provides a resource to manage a CloudWatch log resource policy -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ResourcePolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policyDocument) || (has(self.initProvider) && has(self.initProvider.policyDocument))",message="spec.forProvider.policyDocument is a required parameter" - spec: #ResourcePolicySpec @go(Spec) - status?: #ResourcePolicyStatus @go(Status) -} - -// ResourcePolicyList contains a list of ResourcePolicys -#ResourcePolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ResourcePolicy] @go(Items,[]ResourcePolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_stream_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_stream_types_go_gen.cue deleted file mode 100644 index 7dc78b6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_stream_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#StreamInitParameters: { - // The name of the log stream. Must not be longer than 512 characters and must not contain : - name?: null | string @go(Name,*string) -} - -#StreamObservation: { - // The Amazon Resource Name (ARN) specifying the log stream. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // The name of the log group under which the log stream is to be created. - logGroupName?: null | string @go(LogGroupName,*string) - - // The name of the log stream. Must not be longer than 512 characters and must not contain : - name?: null | string @go(Name,*string) -} - -#StreamParameters: { - // The name of the log group under which the log stream is to be created. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // Reference to a Group in cloudwatchlogs to populate logGroupName. - // +kubebuilder:validation:Optional - logGroupNameRef?: null | v1.#Reference @go(LogGroupNameRef,*v1.Reference) - - // Selector for a Group in cloudwatchlogs to populate logGroupName. - // +kubebuilder:validation:Optional - logGroupNameSelector?: null | v1.#Selector @go(LogGroupNameSelector,*v1.Selector) - - // The name of the log stream. Must not be longer than 512 characters and must not contain : - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// StreamSpec defines the desired state of Stream -#StreamSpec: { - v1.#ResourceSpec - forProvider: #StreamParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StreamInitParameters @go(InitProvider) -} - -// StreamStatus defines the observed state of Stream. -#StreamStatus: { - v1.#ResourceStatus - atProvider?: #StreamObservation @go(AtProvider) -} - -// Stream is the Schema for the Streams API. Provides a CloudWatch Log Stream resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Stream: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #StreamSpec @go(Spec) - status?: #StreamStatus @go(Status) -} - -// StreamList contains a list of Streams -#StreamList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Stream] @go(Items,[]Stream) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_subscriptionfilter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_subscriptionfilter_types_go_gen.cue deleted file mode 100644 index 85eb507..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1/zz_subscriptionfilter_types_go_gen.cue +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SubscriptionFilterInitParameters: { - // The method used to distribute log data to the destination. By default log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis stream. Valid values are "Random" and "ByLogStream". - distribution?: null | string @go(Distribution,*string) - - // A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events. Use empty string "" to match everything. For more information, see the Amazon CloudWatch Logs User Guide. - filterPattern?: null | string @go(FilterPattern,*string) - - // The name of the log group to associate the subscription filter with - logGroupName?: null | string @go(LogGroupName,*string) - - // A name for the subscription filter - name?: null | string @go(Name,*string) -} - -#SubscriptionFilterObservation: { - // The ARN of the destination to deliver matching log events to. Kinesis stream or Lambda function ARN. - destinationArn?: null | string @go(DestinationArn,*string) - - // The method used to distribute log data to the destination. By default log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis stream. Valid values are "Random" and "ByLogStream". - distribution?: null | string @go(Distribution,*string) - - // A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events. Use empty string "" to match everything. For more information, see the Amazon CloudWatch Logs User Guide. - filterPattern?: null | string @go(FilterPattern,*string) - id?: null | string @go(ID,*string) - - // The name of the log group to associate the subscription filter with - logGroupName?: null | string @go(LogGroupName,*string) - - // A name for the subscription filter - name?: null | string @go(Name,*string) - - // The ARN of an IAM role that grants Amazon CloudWatch Logs permissions to deliver ingested log events to the destination. If you use Lambda as a destination, you should skip this argument and use aws_lambda_permission resource for granting access from CloudWatch logs to the destination Lambda function. - roleArn?: null | string @go(RoleArn,*string) -} - -#SubscriptionFilterParameters: { - // The ARN of the destination to deliver matching log events to. Kinesis stream or Lambda function ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kinesis/v1beta1.Stream - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - destinationArn?: null | string @go(DestinationArn,*string) - - // Reference to a Stream in kinesis to populate destinationArn. - // +kubebuilder:validation:Optional - destinationArnRef?: null | v1.#Reference @go(DestinationArnRef,*v1.Reference) - - // Selector for a Stream in kinesis to populate destinationArn. - // +kubebuilder:validation:Optional - destinationArnSelector?: null | v1.#Selector @go(DestinationArnSelector,*v1.Selector) - - // The method used to distribute log data to the destination. By default log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis stream. Valid values are "Random" and "ByLogStream". - // +kubebuilder:validation:Optional - distribution?: null | string @go(Distribution,*string) - - // A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events. Use empty string "" to match everything. For more information, see the Amazon CloudWatch Logs User Guide. - // +kubebuilder:validation:Optional - filterPattern?: null | string @go(FilterPattern,*string) - - // The name of the log group to associate the subscription filter with - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // A name for the subscription filter - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of an IAM role that grants Amazon CloudWatch Logs permissions to deliver ingested log events to the destination. If you use Lambda as a destination, you should skip this argument and use aws_lambda_permission resource for granting access from CloudWatch logs to the destination Lambda function. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -// SubscriptionFilterSpec defines the desired state of SubscriptionFilter -#SubscriptionFilterSpec: { - v1.#ResourceSpec - forProvider: #SubscriptionFilterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SubscriptionFilterInitParameters @go(InitProvider) -} - -// SubscriptionFilterStatus defines the observed state of SubscriptionFilter. -#SubscriptionFilterStatus: { - v1.#ResourceStatus - atProvider?: #SubscriptionFilterObservation @go(AtProvider) -} - -// SubscriptionFilter is the Schema for the SubscriptionFilters API. Provides a CloudWatch Logs subscription filter. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SubscriptionFilter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.filterPattern) || (has(self.initProvider) && has(self.initProvider.filterPattern))",message="spec.forProvider.filterPattern is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.logGroupName) || (has(self.initProvider) && has(self.initProvider.logGroupName))",message="spec.forProvider.logGroupName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #SubscriptionFilterSpec @go(Spec) - status?: #SubscriptionFilterStatus @go(Status) -} - -// SubscriptionFilterList contains a list of SubscriptionFilters -#SubscriptionFilterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SubscriptionFilter] @go(Items,[]SubscriptionFilter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_approvalruletemplate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_approvalruletemplate_types_go_gen.cue deleted file mode 100644 index 507e58f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_approvalruletemplate_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codecommit/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ApprovalRuleTemplateInitParameters: { - // The content of the approval rule template. Maximum of 3000 characters. - content?: null | string @go(Content,*string) - - // The description of the approval rule template. Maximum of 1000 characters. - description?: null | string @go(Description,*string) -} - -#ApprovalRuleTemplateObservation: { - // The ID of the approval rule template - approvalRuleTemplateId?: null | string @go(ApprovalRuleTemplateID,*string) - - // The content of the approval rule template. Maximum of 3000 characters. - content?: null | string @go(Content,*string) - - // The date the approval rule template was created, in RFC3339 format. - creationDate?: null | string @go(CreationDate,*string) - - // The description of the approval rule template. Maximum of 1000 characters. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // The date the approval rule template was most recently changed, in RFC3339 format. - lastModifiedDate?: null | string @go(LastModifiedDate,*string) - - // The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule template. - lastModifiedUser?: null | string @go(LastModifiedUser,*string) - - // The SHA-256 hash signature for the content of the approval rule template. - ruleContentSha256?: null | string @go(RuleContentSha256,*string) -} - -#ApprovalRuleTemplateParameters: { - // The content of the approval rule template. Maximum of 3000 characters. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // The description of the approval rule template. Maximum of 1000 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ApprovalRuleTemplateSpec defines the desired state of ApprovalRuleTemplate -#ApprovalRuleTemplateSpec: { - v1.#ResourceSpec - forProvider: #ApprovalRuleTemplateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ApprovalRuleTemplateInitParameters @go(InitProvider) -} - -// ApprovalRuleTemplateStatus defines the observed state of ApprovalRuleTemplate. -#ApprovalRuleTemplateStatus: { - v1.#ResourceStatus - atProvider?: #ApprovalRuleTemplateObservation @go(AtProvider) -} - -// ApprovalRuleTemplate is the Schema for the ApprovalRuleTemplates API. Provides a CodeCommit Approval Rule Template Resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ApprovalRuleTemplate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.content) || (has(self.initProvider) && has(self.initProvider.content))",message="spec.forProvider.content is a required parameter" - spec: #ApprovalRuleTemplateSpec @go(Spec) - status?: #ApprovalRuleTemplateStatus @go(Status) -} - -// ApprovalRuleTemplateList contains a list of ApprovalRuleTemplates -#ApprovalRuleTemplateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ApprovalRuleTemplate] @go(Items,[]ApprovalRuleTemplate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_approvalruletemplateassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_approvalruletemplateassociation_types_go_gen.cue deleted file mode 100644 index 0ca87f1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_approvalruletemplateassociation_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codecommit/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ApprovalRuleTemplateAssociationInitParameters: { -} - -#ApprovalRuleTemplateAssociationObservation: { - // The name for the approval rule template. - approvalRuleTemplateName?: null | string @go(ApprovalRuleTemplateName,*string) - - // The name of the approval rule template and name of the repository, separated by a comma (,). - id?: null | string @go(ID,*string) - - // The name of the repository that you want to associate with the template. - repositoryName?: null | string @go(RepositoryName,*string) -} - -#ApprovalRuleTemplateAssociationParameters: { - // The name for the approval rule template. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/codecommit/v1beta1.ApprovalRuleTemplate - // +kubebuilder:validation:Optional - approvalRuleTemplateName?: null | string @go(ApprovalRuleTemplateName,*string) - - // Reference to a ApprovalRuleTemplate in codecommit to populate approvalRuleTemplateName. - // +kubebuilder:validation:Optional - approvalRuleTemplateNameRef?: null | v1.#Reference @go(ApprovalRuleTemplateNameRef,*v1.Reference) - - // Selector for a ApprovalRuleTemplate in codecommit to populate approvalRuleTemplateName. - // +kubebuilder:validation:Optional - approvalRuleTemplateNameSelector?: null | v1.#Selector @go(ApprovalRuleTemplateNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the repository that you want to associate with the template. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/codecommit/v1beta1.Repository - // +kubebuilder:validation:Optional - repositoryName?: null | string @go(RepositoryName,*string) - - // Reference to a Repository in codecommit to populate repositoryName. - // +kubebuilder:validation:Optional - repositoryNameRef?: null | v1.#Reference @go(RepositoryNameRef,*v1.Reference) - - // Selector for a Repository in codecommit to populate repositoryName. - // +kubebuilder:validation:Optional - repositoryNameSelector?: null | v1.#Selector @go(RepositoryNameSelector,*v1.Selector) -} - -// ApprovalRuleTemplateAssociationSpec defines the desired state of ApprovalRuleTemplateAssociation -#ApprovalRuleTemplateAssociationSpec: { - v1.#ResourceSpec - forProvider: #ApprovalRuleTemplateAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ApprovalRuleTemplateAssociationInitParameters @go(InitProvider) -} - -// ApprovalRuleTemplateAssociationStatus defines the observed state of ApprovalRuleTemplateAssociation. -#ApprovalRuleTemplateAssociationStatus: { - v1.#ResourceStatus - atProvider?: #ApprovalRuleTemplateAssociationObservation @go(AtProvider) -} - -// ApprovalRuleTemplateAssociation is the Schema for the ApprovalRuleTemplateAssociations API. Associates a CodeCommit Approval Rule Template with a Repository. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ApprovalRuleTemplateAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ApprovalRuleTemplateAssociationSpec @go(Spec) - status?: #ApprovalRuleTemplateAssociationStatus @go(Status) -} - -// ApprovalRuleTemplateAssociationList contains a list of ApprovalRuleTemplateAssociations -#ApprovalRuleTemplateAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ApprovalRuleTemplateAssociation] @go(Items,[]ApprovalRuleTemplateAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index ffe50b5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codecommit/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=codecommit.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "codecommit.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_repository_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_repository_types_go_gen.cue deleted file mode 100644 index 393141f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_repository_types_go_gen.cue +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codecommit/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RepositoryInitParameters: { - // The default branch of the repository. The branch specified here needs to exist. - defaultBranch?: null | string @go(DefaultBranch,*string) - - // The description of the repository. This needs to be less than 1000 characters - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RepositoryObservation: { - // The ARN of the repository - arn?: null | string @go(Arn,*string) - - // The URL to use for cloning the repository over HTTPS. - cloneUrlHttp?: null | string @go(CloneURLHTTP,*string) - - // The URL to use for cloning the repository over SSH. - cloneUrlSsh?: null | string @go(CloneURLSSH,*string) - - // The default branch of the repository. The branch specified here needs to exist. - defaultBranch?: null | string @go(DefaultBranch,*string) - - // The description of the repository. This needs to be less than 1000 characters - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // The ID of the repository - repositoryId?: null | string @go(RepositoryID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RepositoryParameters: { - // The default branch of the repository. The branch specified here needs to exist. - // +kubebuilder:validation:Optional - defaultBranch?: null | string @go(DefaultBranch,*string) - - // The description of the repository. This needs to be less than 1000 characters - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RepositorySpec defines the desired state of Repository -#RepositorySpec: { - v1.#ResourceSpec - forProvider: #RepositoryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RepositoryInitParameters @go(InitProvider) -} - -// RepositoryStatus defines the observed state of Repository. -#RepositoryStatus: { - v1.#ResourceStatus - atProvider?: #RepositoryObservation @go(AtProvider) -} - -// Repository is the Schema for the Repositorys API. Provides a CodeCommit Repository Resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Repository: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RepositorySpec @go(Spec) - status?: #RepositoryStatus @go(Status) -} - -// RepositoryList contains a list of Repositorys -#RepositoryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Repository] @go(Items,[]Repository) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_trigger_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_trigger_types_go_gen.cue deleted file mode 100644 index 6024a03..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codecommit/v1beta1/zz_trigger_types_go_gen.cue +++ /dev/null @@ -1,157 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codecommit/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TriggerInitParameters: { - trigger?: [...#TriggerTriggerInitParameters] @go(Trigger,[]TriggerTriggerInitParameters) -} - -#TriggerObservation: { - // System-generated unique identifier. - configurationId?: null | string @go(ConfigurationID,*string) - id?: null | string @go(ID,*string) - - // The name for the repository. This needs to be less than 100 characters. - repositoryName?: null | string @go(RepositoryName,*string) - trigger?: [...#TriggerTriggerObservation] @go(Trigger,[]TriggerTriggerObservation) -} - -#TriggerParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name for the repository. This needs to be less than 100 characters. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/codecommit/v1beta1.Repository - // +kubebuilder:validation:Optional - repositoryName?: null | string @go(RepositoryName,*string) - - // Reference to a Repository in codecommit to populate repositoryName. - // +kubebuilder:validation:Optional - repositoryNameRef?: null | v1.#Reference @go(RepositoryNameRef,*v1.Reference) - - // Selector for a Repository in codecommit to populate repositoryName. - // +kubebuilder:validation:Optional - repositoryNameSelector?: null | v1.#Selector @go(RepositoryNameSelector,*v1.Selector) - - // +kubebuilder:validation:Optional - trigger?: [...#TriggerTriggerParameters] @go(Trigger,[]TriggerTriggerParameters) -} - -#TriggerTriggerInitParameters: { - // The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches. - branches?: [...null | string] @go(Branches,[]*string) - - // Any custom data associated with the trigger that will be included in the information sent to the target of the trigger. - customData?: null | string @go(CustomData,*string) - - // The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events. Event types include: all, updateReference, createReference, deleteReference. - events?: [...null | string] @go(Events,[]*string) - - // The name of the trigger. - name?: null | string @go(Name,*string) -} - -#TriggerTriggerObservation: { - // The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches. - branches?: [...null | string] @go(Branches,[]*string) - - // Any custom data associated with the trigger that will be included in the information sent to the target of the trigger. - customData?: null | string @go(CustomData,*string) - - // The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS). - destinationArn?: null | string @go(DestinationArn,*string) - - // The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events. Event types include: all, updateReference, createReference, deleteReference. - events?: [...null | string] @go(Events,[]*string) - - // The name of the trigger. - name?: null | string @go(Name,*string) -} - -#TriggerTriggerParameters: { - // The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches. - // +kubebuilder:validation:Optional - branches?: [...null | string] @go(Branches,[]*string) - - // Any custom data associated with the trigger that will be included in the information sent to the target of the trigger. - // +kubebuilder:validation:Optional - customData?: null | string @go(CustomData,*string) - - // The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS). - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - destinationArn?: null | string @go(DestinationArn,*string) - - // Reference to a Topic in sns to populate destinationArn. - // +kubebuilder:validation:Optional - destinationArnRef?: null | v1.#Reference @go(DestinationArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate destinationArn. - // +kubebuilder:validation:Optional - destinationArnSelector?: null | v1.#Selector @go(DestinationArnSelector,*v1.Selector) - - // The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events. Event types include: all, updateReference, createReference, deleteReference. - // +kubebuilder:validation:Optional - events: [...null | string] @go(Events,[]*string) - - // The name of the trigger. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -// TriggerSpec defines the desired state of Trigger -#TriggerSpec: { - v1.#ResourceSpec - forProvider: #TriggerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TriggerInitParameters @go(InitProvider) -} - -// TriggerStatus defines the observed state of Trigger. -#TriggerStatus: { - v1.#ResourceStatus - atProvider?: #TriggerObservation @go(AtProvider) -} - -// Trigger is the Schema for the Triggers API. Provides a CodeCommit Trigger Resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Trigger: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.trigger) || (has(self.initProvider) && has(self.initProvider.trigger))",message="spec.forProvider.trigger is a required parameter" - spec: #TriggerSpec @go(Spec) - status?: #TriggerStatus @go(Status) -} - -// TriggerList contains a list of Triggers -#TriggerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Trigger] @go(Items,[]Trigger) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codepipeline/v1beta1/zz_codepipeline_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codepipeline/v1beta1/zz_codepipeline_types_go_gen.cue deleted file mode 100644 index b18eb21..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codepipeline/v1beta1/zz_codepipeline_types_go_gen.cue +++ /dev/null @@ -1,350 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codepipeline/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionInitParameters: { - // A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Possible values are Approval, Build, Deploy, Invoke, Source and Test. - category?: null | string @go(Category,*string) - - // A map of the action declaration's configuration. Configurations options for action types and providers can be found in the Pipeline Structure Reference and Action Structure Reference documentation. - configuration?: {[string]: null | string} @go(Configuration,map[string]*string) - - // A list of artifact names to be worked on. - inputArtifacts?: [...null | string] @go(InputArtifacts,[]*string) - - // The action declaration's name. - name?: null | string @go(Name,*string) - - // The namespace all output variables will be accessed from. - namespace?: null | string @go(Namespace,*string) - - // A list of artifact names to output. Output artifact names must be unique within a pipeline. - outputArtifacts?: [...null | string] @go(OutputArtifacts,[]*string) - - // The creator of the action being called. Possible values are AWS, Custom and ThirdParty. - owner?: null | string @go(Owner,*string) - - // The provider of the service being called by the action. Valid providers are determined by the action category. Provider names are listed in the Action Structure Reference documentation. - provider?: null | string @go(Provider,*string) - - // The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline. - roleArn?: null | string @go(RoleArn,*string) - - // The order in which actions are run. - runOrder?: null | float64 @go(RunOrder,*float64) - - // A string that identifies the action type. - version?: null | string @go(Version,*string) -} - -#ActionObservation: { - // A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Possible values are Approval, Build, Deploy, Invoke, Source and Test. - category?: null | string @go(Category,*string) - - // A map of the action declaration's configuration. Configurations options for action types and providers can be found in the Pipeline Structure Reference and Action Structure Reference documentation. - configuration?: {[string]: null | string} @go(Configuration,map[string]*string) - - // A list of artifact names to be worked on. - inputArtifacts?: [...null | string] @go(InputArtifacts,[]*string) - - // The action declaration's name. - name?: null | string @go(Name,*string) - - // The namespace all output variables will be accessed from. - namespace?: null | string @go(Namespace,*string) - - // A list of artifact names to output. Output artifact names must be unique within a pipeline. - outputArtifacts?: [...null | string] @go(OutputArtifacts,[]*string) - - // The creator of the action being called. Possible values are AWS, Custom and ThirdParty. - owner?: null | string @go(Owner,*string) - - // The provider of the service being called by the action. Valid providers are determined by the action category. Provider names are listed in the Action Structure Reference documentation. - provider?: null | string @go(Provider,*string) - - // The region in which to run the action. - region?: null | string @go(Region,*string) - - // The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline. - roleArn?: null | string @go(RoleArn,*string) - - // The order in which actions are run. - runOrder?: null | float64 @go(RunOrder,*float64) - - // A string that identifies the action type. - version?: null | string @go(Version,*string) -} - -#ActionParameters: { - // A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Possible values are Approval, Build, Deploy, Invoke, Source and Test. - // +kubebuilder:validation:Optional - category?: null | string @go(Category,*string) - - // A map of the action declaration's configuration. Configurations options for action types and providers can be found in the Pipeline Structure Reference and Action Structure Reference documentation. - // +kubebuilder:validation:Optional - configuration?: {[string]: null | string} @go(Configuration,map[string]*string) - - // A list of artifact names to be worked on. - // +kubebuilder:validation:Optional - inputArtifacts?: [...null | string] @go(InputArtifacts,[]*string) - - // The action declaration's name. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The namespace all output variables will be accessed from. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) - - // A list of artifact names to output. Output artifact names must be unique within a pipeline. - // +kubebuilder:validation:Optional - outputArtifacts?: [...null | string] @go(OutputArtifacts,[]*string) - - // The creator of the action being called. Possible values are AWS, Custom and ThirdParty. - // +kubebuilder:validation:Optional - owner?: null | string @go(Owner,*string) - - // The provider of the service being called by the action. Valid providers are determined by the action category. Provider names are listed in the Action Structure Reference documentation. - // +kubebuilder:validation:Optional - provider?: null | string @go(Provider,*string) - - // The region in which to run the action. - // +kubebuilder:validation:Optional - region?: null | string @go(Region,*string) - - // The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The order in which actions are run. - // +kubebuilder:validation:Optional - runOrder?: null | float64 @go(RunOrder,*float64) - - // A string that identifies the action type. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#ArtifactStoreInitParameters: { - // The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An encryption_key block is documented below. - encryptionKey?: [...#EncryptionKeyInitParameters] @go(EncryptionKey,[]EncryptionKeyInitParameters) - - // The type of the artifact store, such as Amazon S3 - type?: null | string @go(Type,*string) -} - -#ArtifactStoreObservation: { - // The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An encryption_key block is documented below. - encryptionKey?: [...#EncryptionKeyObservation] @go(EncryptionKey,[]EncryptionKeyObservation) - - // The location where AWS CodePipeline stores artifacts for a pipeline; currently only S3 is supported. - location?: null | string @go(Location,*string) - - // The region where the artifact store is located. Required for a cross-region CodePipeline, do not provide for a single-region CodePipeline. - region?: null | string @go(Region,*string) - - // The type of the artifact store, such as Amazon S3 - type?: null | string @go(Type,*string) -} - -#ArtifactStoreParameters: { - // The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An encryption_key block is documented below. - // +kubebuilder:validation:Optional - encryptionKey?: [...#EncryptionKeyParameters] @go(EncryptionKey,[]EncryptionKeyParameters) - - // The location where AWS CodePipeline stores artifacts for a pipeline; currently only S3 is supported. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +kubebuilder:validation:Optional - location?: null | string @go(Location,*string) - - // Reference to a Bucket in s3 to populate location. - // +kubebuilder:validation:Optional - locationRef?: null | v1.#Reference @go(LocationRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate location. - // +kubebuilder:validation:Optional - locationSelector?: null | v1.#Selector @go(LocationSelector,*v1.Selector) - - // The region where the artifact store is located. Required for a cross-region CodePipeline, do not provide for a single-region CodePipeline. - // +kubebuilder:validation:Optional - region?: null | string @go(Region,*string) - - // The type of the artifact store, such as Amazon S3 - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#CodepipelineInitParameters: { - // One or more artifact_store blocks. Artifact stores are documented below. - artifactStore?: [...#ArtifactStoreInitParameters] @go(ArtifactStore,[]ArtifactStoreInitParameters) - - // (Minimum of at least two stage blocks is required) A stage block. Stages are documented below. - stage?: [...#StageInitParameters] @go(Stage,[]StageInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CodepipelineObservation: { - // The codepipeline ARN. - arn?: null | string @go(Arn,*string) - - // One or more artifact_store blocks. Artifact stores are documented below. - artifactStore?: [...#ArtifactStoreObservation] @go(ArtifactStore,[]ArtifactStoreObservation) - - // The codepipeline ID. - id?: null | string @go(ID,*string) - - // A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf. - roleArn?: null | string @go(RoleArn,*string) - - // (Minimum of at least two stage blocks is required) A stage block. Stages are documented below. - stage?: [...#StageObservation] @go(Stage,[]StageObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#CodepipelineParameters: { - // One or more artifact_store blocks. Artifact stores are documented below. - // +kubebuilder:validation:Optional - artifactStore?: [...#ArtifactStoreParameters] @go(ArtifactStore,[]ArtifactStoreParameters) - - // The region in which to run the action. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A service role Amazon Resource Name (ARN) that grants AWS CodePipeline permission to make calls to AWS services on your behalf. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // (Minimum of at least two stage blocks is required) A stage block. Stages are documented below. - // +kubebuilder:validation:Optional - stage?: [...#StageParameters] @go(Stage,[]StageParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EncryptionKeyInitParameters: { - // The KMS key ARN or ID - id?: null | string @go(ID,*string) - - // The type of key; currently only KMS is supported - type?: null | string @go(Type,*string) -} - -#EncryptionKeyObservation: { - // The KMS key ARN or ID - id?: null | string @go(ID,*string) - - // The type of key; currently only KMS is supported - type?: null | string @go(Type,*string) -} - -#EncryptionKeyParameters: { - // The KMS key ARN or ID - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // The type of key; currently only KMS is supported - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#StageInitParameters: { - // The action(s) to include in the stage. Defined as an action block below - action?: [...#ActionInitParameters] @go(Action,[]ActionInitParameters) - - // The name of the stage. - name?: null | string @go(Name,*string) -} - -#StageObservation: { - // The action(s) to include in the stage. Defined as an action block below - action?: [...#ActionObservation] @go(Action,[]ActionObservation) - - // The name of the stage. - name?: null | string @go(Name,*string) -} - -#StageParameters: { - // The action(s) to include in the stage. Defined as an action block below - // +kubebuilder:validation:Optional - action: [...#ActionParameters] @go(Action,[]ActionParameters) - - // The name of the stage. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -// CodepipelineSpec defines the desired state of Codepipeline -#CodepipelineSpec: { - v1.#ResourceSpec - forProvider: #CodepipelineParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CodepipelineInitParameters @go(InitProvider) -} - -// CodepipelineStatus defines the observed state of Codepipeline. -#CodepipelineStatus: { - v1.#ResourceStatus - atProvider?: #CodepipelineObservation @go(AtProvider) -} - -// Codepipeline is the Schema for the Codepipelines API. Provides a CodePipeline -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Codepipeline: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.artifactStore) || (has(self.initProvider) && has(self.initProvider.artifactStore))",message="spec.forProvider.artifactStore is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.stage) || (has(self.initProvider) && has(self.initProvider.stage))",message="spec.forProvider.stage is a required parameter" - spec: #CodepipelineSpec @go(Spec) - status?: #CodepipelineStatus @go(Status) -} - -// CodepipelineList contains a list of Codepipelines -#CodepipelineList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Codepipeline] @go(Items,[]Codepipeline) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codepipeline/v1beta1/zz_customactiontype_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codepipeline/v1beta1/zz_customactiontype_types_go_gen.cue deleted file mode 100644 index 8ca2aff..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codepipeline/v1beta1/zz_customactiontype_types_go_gen.cue +++ /dev/null @@ -1,338 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codepipeline/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigurationPropertyInitParameters: { - // The description of the action configuration property. - description?: null | string @go(Description,*string) - - // Whether the configuration property is a key. - key?: null | bool @go(Key,*bool) - - // The name of the action configuration property. - name?: null | string @go(Name,*string) - - // Indicates that the property will be used in conjunction with PollForJobs. - queryable?: null | bool @go(Queryable,*bool) - - // Whether the configuration property is a required value. - required?: null | bool @go(Required,*bool) - - // Whether the configuration property is secret. - secret?: null | bool @go(Secret,*bool) - - // The type of the configuration property. Valid values: String, Number, Boolean - type?: null | string @go(Type,*string) -} - -#ConfigurationPropertyObservation: { - // The description of the action configuration property. - description?: null | string @go(Description,*string) - - // Whether the configuration property is a key. - key?: null | bool @go(Key,*bool) - - // The name of the action configuration property. - name?: null | string @go(Name,*string) - - // Indicates that the property will be used in conjunction with PollForJobs. - queryable?: null | bool @go(Queryable,*bool) - - // Whether the configuration property is a required value. - required?: null | bool @go(Required,*bool) - - // Whether the configuration property is secret. - secret?: null | bool @go(Secret,*bool) - - // The type of the configuration property. Valid values: String, Number, Boolean - type?: null | string @go(Type,*string) -} - -#ConfigurationPropertyParameters: { - // The description of the action configuration property. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether the configuration property is a key. - // +kubebuilder:validation:Optional - key?: null | bool @go(Key,*bool) - - // The name of the action configuration property. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Indicates that the property will be used in conjunction with PollForJobs. - // +kubebuilder:validation:Optional - queryable?: null | bool @go(Queryable,*bool) - - // Whether the configuration property is a required value. - // +kubebuilder:validation:Optional - required?: null | bool @go(Required,*bool) - - // Whether the configuration property is secret. - // +kubebuilder:validation:Optional - secret?: null | bool @go(Secret,*bool) - - // The type of the configuration property. Valid values: String, Number, Boolean - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#CustomActionTypeInitParameters: { - // The category of the custom action. Valid values: Source, Build, Deploy, Test, Invoke, Approval - category?: null | string @go(Category,*string) - - // The configuration properties for the custom action. Max 10 items. - configurationProperty?: [...#ConfigurationPropertyInitParameters] @go(ConfigurationProperty,[]ConfigurationPropertyInitParameters) - - // The details of the input artifact for the action. - inputArtifactDetails?: [...#InputArtifactDetailsInitParameters] @go(InputArtifactDetails,[]InputArtifactDetailsInitParameters) - - // The details of the output artifact of the action. - outputArtifactDetails?: [...#OutputArtifactDetailsInitParameters] @go(OutputArtifactDetails,[]OutputArtifactDetailsInitParameters) - - // The provider of the service used in the custom action - providerName?: null | string @go(ProviderName,*string) - - // The settings for an action type. - settings?: [...#SettingsInitParameters] @go(Settings,[]SettingsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The version identifier of the custom action. - version?: null | string @go(Version,*string) -} - -#CustomActionTypeObservation: { - // The action ARN. - arn?: null | string @go(Arn,*string) - - // The category of the custom action. Valid values: Source, Build, Deploy, Test, Invoke, Approval - category?: null | string @go(Category,*string) - - // The configuration properties for the custom action. Max 10 items. - configurationProperty?: [...#ConfigurationPropertyObservation] @go(ConfigurationProperty,[]ConfigurationPropertyObservation) - - // Composed of category, provider and version - id?: null | string @go(ID,*string) - - // The details of the input artifact for the action. - inputArtifactDetails?: [...#InputArtifactDetailsObservation] @go(InputArtifactDetails,[]InputArtifactDetailsObservation) - - // The details of the output artifact of the action. - outputArtifactDetails?: [...#OutputArtifactDetailsObservation] @go(OutputArtifactDetails,[]OutputArtifactDetailsObservation) - - // The creator of the action being called. - owner?: null | string @go(Owner,*string) - - // The provider of the service used in the custom action - providerName?: null | string @go(ProviderName,*string) - - // The settings for an action type. - settings?: [...#SettingsObservation] @go(Settings,[]SettingsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The version identifier of the custom action. - version?: null | string @go(Version,*string) -} - -#CustomActionTypeParameters: { - // The category of the custom action. Valid values: Source, Build, Deploy, Test, Invoke, Approval - // +kubebuilder:validation:Optional - category?: null | string @go(Category,*string) - - // The configuration properties for the custom action. Max 10 items. - // +kubebuilder:validation:Optional - configurationProperty?: [...#ConfigurationPropertyParameters] @go(ConfigurationProperty,[]ConfigurationPropertyParameters) - - // The details of the input artifact for the action. - // +kubebuilder:validation:Optional - inputArtifactDetails?: [...#InputArtifactDetailsParameters] @go(InputArtifactDetails,[]InputArtifactDetailsParameters) - - // The details of the output artifact of the action. - // +kubebuilder:validation:Optional - outputArtifactDetails?: [...#OutputArtifactDetailsParameters] @go(OutputArtifactDetails,[]OutputArtifactDetailsParameters) - - // The provider of the service used in the custom action - // +kubebuilder:validation:Optional - providerName?: null | string @go(ProviderName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The settings for an action type. - // +kubebuilder:validation:Optional - settings?: [...#SettingsParameters] @go(Settings,[]SettingsParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The version identifier of the custom action. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#InputArtifactDetailsInitParameters: { - // The maximum number of artifacts allowed for the action type. Min: 0, Max: 5 - maximumCount?: null | float64 @go(MaximumCount,*float64) - - // The minimum number of artifacts allowed for the action type. Min: 0, Max: 5 - minimumCount?: null | float64 @go(MinimumCount,*float64) -} - -#InputArtifactDetailsObservation: { - // The maximum number of artifacts allowed for the action type. Min: 0, Max: 5 - maximumCount?: null | float64 @go(MaximumCount,*float64) - - // The minimum number of artifacts allowed for the action type. Min: 0, Max: 5 - minimumCount?: null | float64 @go(MinimumCount,*float64) -} - -#InputArtifactDetailsParameters: { - // The maximum number of artifacts allowed for the action type. Min: 0, Max: 5 - // +kubebuilder:validation:Optional - maximumCount?: null | float64 @go(MaximumCount,*float64) - - // The minimum number of artifacts allowed for the action type. Min: 0, Max: 5 - // +kubebuilder:validation:Optional - minimumCount?: null | float64 @go(MinimumCount,*float64) -} - -#OutputArtifactDetailsInitParameters: { - // The maximum number of artifacts allowed for the action type. Min: 0, Max: 5 - maximumCount?: null | float64 @go(MaximumCount,*float64) - - // The minimum number of artifacts allowed for the action type. Min: 0, Max: 5 - minimumCount?: null | float64 @go(MinimumCount,*float64) -} - -#OutputArtifactDetailsObservation: { - // The maximum number of artifacts allowed for the action type. Min: 0, Max: 5 - maximumCount?: null | float64 @go(MaximumCount,*float64) - - // The minimum number of artifacts allowed for the action type. Min: 0, Max: 5 - minimumCount?: null | float64 @go(MinimumCount,*float64) -} - -#OutputArtifactDetailsParameters: { - // The maximum number of artifacts allowed for the action type. Min: 0, Max: 5 - // +kubebuilder:validation:Optional - maximumCount?: null | float64 @go(MaximumCount,*float64) - - // The minimum number of artifacts allowed for the action type. Min: 0, Max: 5 - // +kubebuilder:validation:Optional - minimumCount?: null | float64 @go(MinimumCount,*float64) -} - -#SettingsInitParameters: { - // The URL returned to the AWS CodePipeline console that provides a deep link to the resources of the external system. - entityUrlTemplate?: null | string @go(EntityURLTemplate,*string) - - // The URL returned to the AWS CodePipeline console that contains a link to the top-level landing page for the external system. - executionUrlTemplate?: null | string @go(ExecutionURLTemplate,*string) - - // The URL returned to the AWS CodePipeline console that contains a link to the page where customers can update or change the configuration of the external action. - revisionUrlTemplate?: null | string @go(RevisionURLTemplate,*string) - - // The URL of a sign-up page where users can sign up for an external service and perform initial configuration of the action provided by that service. - thirdPartyConfigurationUrl?: null | string @go(ThirdPartyConfigurationURL,*string) -} - -#SettingsObservation: { - // The URL returned to the AWS CodePipeline console that provides a deep link to the resources of the external system. - entityUrlTemplate?: null | string @go(EntityURLTemplate,*string) - - // The URL returned to the AWS CodePipeline console that contains a link to the top-level landing page for the external system. - executionUrlTemplate?: null | string @go(ExecutionURLTemplate,*string) - - // The URL returned to the AWS CodePipeline console that contains a link to the page where customers can update or change the configuration of the external action. - revisionUrlTemplate?: null | string @go(RevisionURLTemplate,*string) - - // The URL of a sign-up page where users can sign up for an external service and perform initial configuration of the action provided by that service. - thirdPartyConfigurationUrl?: null | string @go(ThirdPartyConfigurationURL,*string) -} - -#SettingsParameters: { - // The URL returned to the AWS CodePipeline console that provides a deep link to the resources of the external system. - // +kubebuilder:validation:Optional - entityUrlTemplate?: null | string @go(EntityURLTemplate,*string) - - // The URL returned to the AWS CodePipeline console that contains a link to the top-level landing page for the external system. - // +kubebuilder:validation:Optional - executionUrlTemplate?: null | string @go(ExecutionURLTemplate,*string) - - // The URL returned to the AWS CodePipeline console that contains a link to the page where customers can update or change the configuration of the external action. - // +kubebuilder:validation:Optional - revisionUrlTemplate?: null | string @go(RevisionURLTemplate,*string) - - // The URL of a sign-up page where users can sign up for an external service and perform initial configuration of the action provided by that service. - // +kubebuilder:validation:Optional - thirdPartyConfigurationUrl?: null | string @go(ThirdPartyConfigurationURL,*string) -} - -// CustomActionTypeSpec defines the desired state of CustomActionType -#CustomActionTypeSpec: { - v1.#ResourceSpec - forProvider: #CustomActionTypeParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CustomActionTypeInitParameters @go(InitProvider) -} - -// CustomActionTypeStatus defines the observed state of CustomActionType. -#CustomActionTypeStatus: { - v1.#ResourceStatus - atProvider?: #CustomActionTypeObservation @go(AtProvider) -} - -// CustomActionType is the Schema for the CustomActionTypes API. Provides a CodePipeline CustomActionType. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CustomActionType: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.category) || (has(self.initProvider) && has(self.initProvider.category))",message="spec.forProvider.category is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.inputArtifactDetails) || (has(self.initProvider) && has(self.initProvider.inputArtifactDetails))",message="spec.forProvider.inputArtifactDetails is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.outputArtifactDetails) || (has(self.initProvider) && has(self.initProvider.outputArtifactDetails))",message="spec.forProvider.outputArtifactDetails is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.providerName) || (has(self.initProvider) && has(self.initProvider.providerName))",message="spec.forProvider.providerName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.version) || (has(self.initProvider) && has(self.initProvider.version))",message="spec.forProvider.version is a required parameter" - spec: #CustomActionTypeSpec @go(Spec) - status?: #CustomActionTypeStatus @go(Status) -} - -// CustomActionTypeList contains a list of CustomActionTypes -#CustomActionTypeList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CustomActionType] @go(Items,[]CustomActionType) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codepipeline/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codepipeline/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 6526eff..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codepipeline/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codepipeline/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=codepipeline.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "codepipeline.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codepipeline/v1beta1/zz_webhook_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codepipeline/v1beta1/zz_webhook_types_go_gen.cue deleted file mode 100644 index 287e996..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codepipeline/v1beta1/zz_webhook_types_go_gen.cue +++ /dev/null @@ -1,194 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codepipeline/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AuthenticationConfigurationInitParameters: { - // A valid CIDR block for IP filtering. Required for IP. - allowedIpRange?: null | string @go(AllowedIPRange,*string) -} - -#AuthenticationConfigurationObservation: { - // A valid CIDR block for IP filtering. Required for IP. - allowedIpRange?: null | string @go(AllowedIPRange,*string) -} - -#AuthenticationConfigurationParameters: { - // A valid CIDR block for IP filtering. Required for IP. - // +kubebuilder:validation:Optional - allowedIpRange?: null | string @go(AllowedIPRange,*string) - - // The shared secret for the GitHub repository webhook. Set this as secret in your github_repository_webhook's configuration block. Required for GITHUB_HMAC. - // +kubebuilder:validation:Optional - secretTokenSecretRef?: null | v1.#SecretKeySelector @go(SecretTokenSecretRef,*v1.SecretKeySelector) -} - -#FilterInitParameters: { - // The JSON path to filter on. - jsonPath?: null | string @go(JSONPath,*string) - - // The value to match on (e.g., refs/heads/{Branch}). See AWS docs for details. - matchEquals?: null | string @go(MatchEquals,*string) -} - -#FilterObservation: { - // The JSON path to filter on. - jsonPath?: null | string @go(JSONPath,*string) - - // The value to match on (e.g., refs/heads/{Branch}). See AWS docs for details. - matchEquals?: null | string @go(MatchEquals,*string) -} - -#FilterParameters: { - // The JSON path to filter on. - // +kubebuilder:validation:Optional - jsonPath?: null | string @go(JSONPath,*string) - - // The value to match on (e.g., refs/heads/{Branch}). See AWS docs for details. - // +kubebuilder:validation:Optional - matchEquals?: null | string @go(MatchEquals,*string) -} - -#WebhookInitParameters: { - // The type of authentication to use. One of IP, GITHUB_HMAC, or UNAUTHENTICATED. - authentication?: null | string @go(Authentication,*string) - - // An auth block. Required for IP and GITHUB_HMAC. Auth blocks are documented below. - authenticationConfiguration?: [...#AuthenticationConfigurationInitParameters] @go(AuthenticationConfiguration,[]AuthenticationConfigurationInitParameters) - - // One or more filter blocks. Filter blocks are documented below. - filter?: [...#FilterInitParameters] @go(Filter,[]FilterInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The name of the action in a pipeline you want to connect to the webhook. The action must be from the source (first) stage of the pipeline. - targetAction?: null | string @go(TargetAction,*string) -} - -#WebhookObservation: { - // The CodePipeline webhook's ARN. - arn?: null | string @go(Arn,*string) - - // The type of authentication to use. One of IP, GITHUB_HMAC, or UNAUTHENTICATED. - authentication?: null | string @go(Authentication,*string) - - // An auth block. Required for IP and GITHUB_HMAC. Auth blocks are documented below. - authenticationConfiguration?: [...#AuthenticationConfigurationObservation] @go(AuthenticationConfiguration,[]AuthenticationConfigurationObservation) - - // One or more filter blocks. Filter blocks are documented below. - filter?: [...#FilterObservation] @go(Filter,[]FilterObservation) - - // The CodePipeline webhook's ARN. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The name of the action in a pipeline you want to connect to the webhook. The action must be from the source (first) stage of the pipeline. - targetAction?: null | string @go(TargetAction,*string) - - // The name of the pipeline. - targetPipeline?: null | string @go(TargetPipeline,*string) - - // The CodePipeline webhook's URL. POST events to this endpoint to trigger the target. - url?: null | string @go(URL,*string) -} - -#WebhookParameters: { - // The type of authentication to use. One of IP, GITHUB_HMAC, or UNAUTHENTICATED. - // +kubebuilder:validation:Optional - authentication?: null | string @go(Authentication,*string) - - // An auth block. Required for IP and GITHUB_HMAC. Auth blocks are documented below. - // +kubebuilder:validation:Optional - authenticationConfiguration?: [...#AuthenticationConfigurationParameters] @go(AuthenticationConfiguration,[]AuthenticationConfigurationParameters) - - // One or more filter blocks. Filter blocks are documented below. - // +kubebuilder:validation:Optional - filter?: [...#FilterParameters] @go(Filter,[]FilterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The name of the action in a pipeline you want to connect to the webhook. The action must be from the source (first) stage of the pipeline. - // +kubebuilder:validation:Optional - targetAction?: null | string @go(TargetAction,*string) - - // The name of the pipeline. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/codepipeline/v1beta1.Codepipeline - // +kubebuilder:validation:Optional - targetPipeline?: null | string @go(TargetPipeline,*string) - - // Reference to a Codepipeline in codepipeline to populate targetPipeline. - // +kubebuilder:validation:Optional - targetPipelineRef?: null | v1.#Reference @go(TargetPipelineRef,*v1.Reference) - - // Selector for a Codepipeline in codepipeline to populate targetPipeline. - // +kubebuilder:validation:Optional - targetPipelineSelector?: null | v1.#Selector @go(TargetPipelineSelector,*v1.Selector) -} - -// WebhookSpec defines the desired state of Webhook -#WebhookSpec: { - v1.#ResourceSpec - forProvider: #WebhookParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WebhookInitParameters @go(InitProvider) -} - -// WebhookStatus defines the observed state of Webhook. -#WebhookStatus: { - v1.#ResourceStatus - atProvider?: #WebhookObservation @go(AtProvider) -} - -// Webhook is the Schema for the Webhooks API. Provides a CodePipeline Webhook -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Webhook: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.authentication) || (has(self.initProvider) && has(self.initProvider.authentication))",message="spec.forProvider.authentication is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.filter) || (has(self.initProvider) && has(self.initProvider.filter))",message="spec.forProvider.filter is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targetAction) || (has(self.initProvider) && has(self.initProvider.targetAction))",message="spec.forProvider.targetAction is a required parameter" - spec: #WebhookSpec @go(Spec) - status?: #WebhookStatus @go(Status) -} - -// WebhookList contains a list of Webhooks -#WebhookList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Webhook] @go(Items,[]Webhook) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarconnections/v1beta1/zz_connection_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarconnections/v1beta1/zz_connection_types_go_gen.cue deleted file mode 100644 index 1e4410f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarconnections/v1beta1/zz_connection_types_go_gen.cue +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codestarconnections/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConnectionInitParameters: { - // The Amazon Resource Name (ARN) of the host associated with the connection. Conflicts with provider_type - hostArn?: null | string @go(HostArn,*string) - - // The name of the connection to be created. The name must be unique in the calling AWS account. Changing name will create a new resource. - name?: null | string @go(Name,*string) - - // The name of the external provider where your third-party code repository is configured. Valid values are Bitbucket, GitHub or GitHubEnterpriseServer. Changing provider_type will create a new resource. Conflicts with host_arn - providerType?: null | string @go(ProviderType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ConnectionObservation: { - // The codestar connection ARN. - arn?: null | string @go(Arn,*string) - - // The codestar connection status. Possible values are PENDING, AVAILABLE and ERROR. - connectionStatus?: null | string @go(ConnectionStatus,*string) - - // The Amazon Resource Name (ARN) of the host associated with the connection. Conflicts with provider_type - hostArn?: null | string @go(HostArn,*string) - - // The codestar connection ARN. - id?: null | string @go(ID,*string) - - // The name of the connection to be created. The name must be unique in the calling AWS account. Changing name will create a new resource. - name?: null | string @go(Name,*string) - - // The name of the external provider where your third-party code repository is configured. Valid values are Bitbucket, GitHub or GitHubEnterpriseServer. Changing provider_type will create a new resource. Conflicts with host_arn - providerType?: null | string @go(ProviderType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ConnectionParameters: { - // The Amazon Resource Name (ARN) of the host associated with the connection. Conflicts with provider_type - // +kubebuilder:validation:Optional - hostArn?: null | string @go(HostArn,*string) - - // The name of the connection to be created. The name must be unique in the calling AWS account. Changing name will create a new resource. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The name of the external provider where your third-party code repository is configured. Valid values are Bitbucket, GitHub or GitHubEnterpriseServer. Changing provider_type will create a new resource. Conflicts with host_arn - // +kubebuilder:validation:Optional - providerType?: null | string @go(ProviderType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ConnectionSpec defines the desired state of Connection -#ConnectionSpec: { - v1.#ResourceSpec - forProvider: #ConnectionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConnectionInitParameters @go(InitProvider) -} - -// ConnectionStatus defines the observed state of Connection. -#ConnectionStatus: { - v1.#ResourceStatus - atProvider?: #ConnectionObservation @go(AtProvider) -} - -// Connection is the Schema for the Connections API. Provides a CodeStar Connection -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Connection: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ConnectionSpec @go(Spec) - status?: #ConnectionStatus @go(Status) -} - -// ConnectionList contains a list of Connections -#ConnectionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Connection] @go(Items,[]Connection) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarconnections/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarconnections/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 7535080..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarconnections/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codestarconnections/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=codestarconnections.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "codestarconnections.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarconnections/v1beta1/zz_host_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarconnections/v1beta1/zz_host_types_go_gen.cue deleted file mode 100644 index d6f5abf..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarconnections/v1beta1/zz_host_types_go_gen.cue +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codestarconnections/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HostInitParameters: { - // The name of the host to be created. The name must be unique in the calling AWS account. - name?: null | string @go(Name,*string) - - // The endpoint of the infrastructure to be represented by the host after it is created. - providerEndpoint?: null | string @go(ProviderEndpoint,*string) - - // The name of the external provider where your third-party code repository is configured. - providerType?: null | string @go(ProviderType,*string) - - // The VPC configuration to be provisioned for the host. A VPC must be configured, and the infrastructure to be represented by the host must already be connected to the VPC. - vpcConfiguration?: [...#VPCConfigurationInitParameters] @go(VPCConfiguration,[]VPCConfigurationInitParameters) -} - -#HostObservation: { - // The CodeStar Host ARN. - arn?: null | string @go(Arn,*string) - - // The CodeStar Host ARN. - id?: null | string @go(ID,*string) - - // The name of the host to be created. The name must be unique in the calling AWS account. - name?: null | string @go(Name,*string) - - // The endpoint of the infrastructure to be represented by the host after it is created. - providerEndpoint?: null | string @go(ProviderEndpoint,*string) - - // The name of the external provider where your third-party code repository is configured. - providerType?: null | string @go(ProviderType,*string) - - // The CodeStar Host status. Possible values are PENDING, AVAILABLE, VPC_CONFIG_DELETING, VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION. - status?: null | string @go(Status,*string) - - // The VPC configuration to be provisioned for the host. A VPC must be configured, and the infrastructure to be represented by the host must already be connected to the VPC. - vpcConfiguration?: [...#VPCConfigurationObservation] @go(VPCConfiguration,[]VPCConfigurationObservation) -} - -#HostParameters: { - // The name of the host to be created. The name must be unique in the calling AWS account. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The endpoint of the infrastructure to be represented by the host after it is created. - // +kubebuilder:validation:Optional - providerEndpoint?: null | string @go(ProviderEndpoint,*string) - - // The name of the external provider where your third-party code repository is configured. - // +kubebuilder:validation:Optional - providerType?: null | string @go(ProviderType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The VPC configuration to be provisioned for the host. A VPC must be configured, and the infrastructure to be represented by the host must already be connected to the VPC. - // +kubebuilder:validation:Optional - vpcConfiguration?: [...#VPCConfigurationParameters] @go(VPCConfiguration,[]VPCConfigurationParameters) -} - -#VPCConfigurationInitParameters: { - // ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed. - tlsCertificate?: null | string @go(TLSCertificate,*string) - - // The ID of the Amazon VPC connected to the infrastructure where your provider type is installed. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCConfigurationObservation: { - // ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed. - tlsCertificate?: null | string @go(TLSCertificate,*string) - - // The ID of the Amazon VPC connected to the infrastructure where your provider type is installed. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCConfigurationParameters: { - // ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed. - // +kubebuilder:validation:Optional - securityGroupIds: [...null | string] @go(SecurityGroupIds,[]*string) - - // The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed. - // +kubebuilder:validation:Optional - subnetIds: [...null | string] @go(SubnetIds,[]*string) - - // The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed. - // +kubebuilder:validation:Optional - tlsCertificate?: null | string @go(TLSCertificate,*string) - - // The ID of the Amazon VPC connected to the infrastructure where your provider type is installed. - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) -} - -// HostSpec defines the desired state of Host -#HostSpec: { - v1.#ResourceSpec - forProvider: #HostParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HostInitParameters @go(InitProvider) -} - -// HostStatus defines the observed state of Host. -#HostStatus: { - v1.#ResourceStatus - atProvider?: #HostObservation @go(AtProvider) -} - -// Host is the Schema for the Hosts API. Provides a CodeStar Host -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Host: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.providerEndpoint) || (has(self.initProvider) && has(self.initProvider.providerEndpoint))",message="spec.forProvider.providerEndpoint is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.providerType) || (has(self.initProvider) && has(self.initProvider.providerType))",message="spec.forProvider.providerType is a required parameter" - spec: #HostSpec @go(Spec) - status?: #HostStatus @go(Status) -} - -// HostList contains a list of Hosts -#HostList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Host] @go(Items,[]Host) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarnotifications/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarnotifications/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 1844375..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarnotifications/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codestarnotifications/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=codestarnotifications.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "codestarnotifications.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarnotifications/v1beta1/zz_notificationrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarnotifications/v1beta1/zz_notificationrule_types_go_gen.cue deleted file mode 100644 index 0a80f1e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/codestarnotifications/v1beta1/zz_notificationrule_types_go_gen.cue +++ /dev/null @@ -1,195 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/codestarnotifications/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NotificationRuleInitParameters: { - // The level of detail to include in the notifications for this resource. Possible values are BASIC and FULL. - detailType?: null | string @go(DetailType,*string) - - // A list of event types associated with this notification rule. - // For list of allowed events see here. - eventTypeIds?: [...null | string] @go(EventTypeIds,[]*string) - - // The name of notification rule. - name?: null | string @go(Name,*string) - - // The status of the notification rule. Possible values are ENABLED and DISABLED, default is ENABLED. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration blocks containing notification target information. Can be specified multiple times. At least one target must be specified on creation. - target?: [...#TargetInitParameters] @go(Target,[]TargetInitParameters) -} - -#NotificationRuleObservation: { - // The codestar notification rule ARN. - arn?: null | string @go(Arn,*string) - - // The level of detail to include in the notifications for this resource. Possible values are BASIC and FULL. - detailType?: null | string @go(DetailType,*string) - - // A list of event types associated with this notification rule. - // For list of allowed events see here. - eventTypeIds?: [...null | string] @go(EventTypeIds,[]*string) - - // The codestar notification rule ARN. - id?: null | string @go(ID,*string) - - // The name of notification rule. - name?: null | string @go(Name,*string) - - // The ARN of the resource to associate with the notification rule. - resource?: null | string @go(Resource,*string) - - // The status of the notification rule. Possible values are ENABLED and DISABLED, default is ENABLED. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration blocks containing notification target information. Can be specified multiple times. At least one target must be specified on creation. - target?: [...#TargetObservation] @go(Target,[]TargetObservation) -} - -#NotificationRuleParameters: { - // The level of detail to include in the notifications for this resource. Possible values are BASIC and FULL. - // +kubebuilder:validation:Optional - detailType?: null | string @go(DetailType,*string) - - // A list of event types associated with this notification rule. - // For list of allowed events see here. - // +kubebuilder:validation:Optional - eventTypeIds?: [...null | string] @go(EventTypeIds,[]*string) - - // The name of notification rule. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of the resource to associate with the notification rule. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/codecommit/v1beta1.Repository - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resource?: null | string @go(Resource,*string) - - // Reference to a Repository in codecommit to populate resource. - // +kubebuilder:validation:Optional - resourceRef?: null | v1.#Reference @go(ResourceRef,*v1.Reference) - - // Selector for a Repository in codecommit to populate resource. - // +kubebuilder:validation:Optional - resourceSelector?: null | v1.#Selector @go(ResourceSelector,*v1.Selector) - - // The status of the notification rule. Possible values are ENABLED and DISABLED, default is ENABLED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration blocks containing notification target information. Can be specified multiple times. At least one target must be specified on creation. - // +kubebuilder:validation:Optional - target?: [...#TargetParameters] @go(Target,[]TargetParameters) -} - -#TargetInitParameters: { - // The type of the notification target. Default value is SNS. - type?: null | string @go(Type,*string) -} - -#TargetObservation: { - // The ARN of notification rule target. For example, a SNS Topic ARN. - address?: null | string @go(Address,*string) - - // The status of the notification rule. Possible values are ENABLED and DISABLED, default is ENABLED. - status?: null | string @go(Status,*string) - - // The type of the notification target. Default value is SNS. - type?: null | string @go(Type,*string) -} - -#TargetParameters: { - // The ARN of notification rule target. For example, a SNS Topic ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - address?: null | string @go(Address,*string) - - // Reference to a Topic in sns to populate address. - // +kubebuilder:validation:Optional - addressRef?: null | v1.#Reference @go(AddressRef,*v1.Reference) - - // Selector for a Topic in sns to populate address. - // +kubebuilder:validation:Optional - addressSelector?: null | v1.#Selector @go(AddressSelector,*v1.Selector) - - // The type of the notification target. Default value is SNS. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// NotificationRuleSpec defines the desired state of NotificationRule -#NotificationRuleSpec: { - v1.#ResourceSpec - forProvider: #NotificationRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NotificationRuleInitParameters @go(InitProvider) -} - -// NotificationRuleStatus defines the observed state of NotificationRule. -#NotificationRuleStatus: { - v1.#ResourceStatus - atProvider?: #NotificationRuleObservation @go(AtProvider) -} - -// NotificationRule is the Schema for the NotificationRules API. Provides a CodeStar Notifications Rule -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NotificationRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.detailType) || (has(self.initProvider) && has(self.initProvider.detailType))",message="spec.forProvider.detailType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.eventTypeIds) || (has(self.initProvider) && has(self.initProvider.eventTypeIds))",message="spec.forProvider.eventTypeIds is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #NotificationRuleSpec @go(Spec) - status?: #NotificationRuleStatus @go(Status) -} - -// NotificationRuleList contains a list of NotificationRules -#NotificationRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NotificationRule] @go(Items,[]NotificationRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1/zz_cognitoidentitypoolproviderprincipaltag_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1/zz_cognitoidentitypoolproviderprincipaltag_types_go_gen.cue deleted file mode 100644 index baa278f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1/zz_cognitoidentitypoolproviderprincipaltag_types_go_gen.cue +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CognitoIdentityPoolProviderPrincipalTagInitParameters: { - // String to string map of variables. - principalTags?: {[string]: null | string} @go(PrincipalTags,map[string]*string) - - // : use default (username and clientID) attribute mappings. - useDefaults?: null | bool @go(UseDefaults,*bool) -} - -#CognitoIdentityPoolProviderPrincipalTagObservation: { - id?: null | string @go(ID,*string) - - // An identity pool ID. - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // The name of the identity provider. - identityProviderName?: null | string @go(IdentityProviderName,*string) - - // String to string map of variables. - principalTags?: {[string]: null | string} @go(PrincipalTags,map[string]*string) - - // : use default (username and clientID) attribute mappings. - useDefaults?: null | bool @go(UseDefaults,*bool) -} - -#CognitoIdentityPoolProviderPrincipalTagParameters: { - // An identity pool ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1.Pool - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // Reference to a Pool in cognitoidentity to populate identityPoolId. - // +kubebuilder:validation:Optional - identityPoolIdRef?: null | v1.#Reference @go(IdentityPoolIDRef,*v1.Reference) - - // Selector for a Pool in cognitoidentity to populate identityPoolId. - // +kubebuilder:validation:Optional - identityPoolIdSelector?: null | v1.#Selector @go(IdentityPoolIDSelector,*v1.Selector) - - // The name of the identity provider. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPool - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("endpoint",true) - // +kubebuilder:validation:Optional - identityProviderName?: null | string @go(IdentityProviderName,*string) - - // Reference to a UserPool in cognitoidp to populate identityProviderName. - // +kubebuilder:validation:Optional - identityProviderNameRef?: null | v1.#Reference @go(IdentityProviderNameRef,*v1.Reference) - - // Selector for a UserPool in cognitoidp to populate identityProviderName. - // +kubebuilder:validation:Optional - identityProviderNameSelector?: null | v1.#Selector @go(IdentityProviderNameSelector,*v1.Selector) - - // String to string map of variables. - // +kubebuilder:validation:Optional - principalTags?: {[string]: null | string} @go(PrincipalTags,map[string]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // : use default (username and clientID) attribute mappings. - // +kubebuilder:validation:Optional - useDefaults?: null | bool @go(UseDefaults,*bool) -} - -// CognitoIdentityPoolProviderPrincipalTagSpec defines the desired state of CognitoIdentityPoolProviderPrincipalTag -#CognitoIdentityPoolProviderPrincipalTagSpec: { - v1.#ResourceSpec - forProvider: #CognitoIdentityPoolProviderPrincipalTagParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CognitoIdentityPoolProviderPrincipalTagInitParameters @go(InitProvider) -} - -// CognitoIdentityPoolProviderPrincipalTagStatus defines the observed state of CognitoIdentityPoolProviderPrincipalTag. -#CognitoIdentityPoolProviderPrincipalTagStatus: { - v1.#ResourceStatus - atProvider?: #CognitoIdentityPoolProviderPrincipalTagObservation @go(AtProvider) -} - -// CognitoIdentityPoolProviderPrincipalTag is the Schema for the CognitoIdentityPoolProviderPrincipalTags API. Provides an AWS Cognito Identity Principal Mapping. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CognitoIdentityPoolProviderPrincipalTag: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CognitoIdentityPoolProviderPrincipalTagSpec @go(Spec) - status?: #CognitoIdentityPoolProviderPrincipalTagStatus @go(Status) -} - -// CognitoIdentityPoolProviderPrincipalTagList contains a list of CognitoIdentityPoolProviderPrincipalTags -#CognitoIdentityPoolProviderPrincipalTagList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CognitoIdentityPoolProviderPrincipalTag] @go(Items,[]CognitoIdentityPoolProviderPrincipalTag) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index b5260ed..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=cognitoidentity.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "cognitoidentity.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1/zz_pool_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1/zz_pool_types_go_gen.cue deleted file mode 100644 index 15ba245..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1/zz_pool_types_go_gen.cue +++ /dev/null @@ -1,219 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CognitoIdentityProvidersInitParameters: { - // The provider name for an Amazon Cognito Identity User Pool. - providerName?: null | string @go(ProviderName,*string) - - // Whether server-side token validation is enabled for the identity provider’s token or not. - serverSideTokenCheck?: null | bool @go(ServerSideTokenCheck,*bool) -} - -#CognitoIdentityProvidersObservation: { - // The client ID for the Amazon Cognito Identity User Pool. - clientId?: null | string @go(ClientID,*string) - - // The provider name for an Amazon Cognito Identity User Pool. - providerName?: null | string @go(ProviderName,*string) - - // Whether server-side token validation is enabled for the identity provider’s token or not. - serverSideTokenCheck?: null | bool @go(ServerSideTokenCheck,*bool) -} - -#CognitoIdentityProvidersParameters: { - // The client ID for the Amazon Cognito Identity User Pool. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPoolClient - // +kubebuilder:validation:Optional - clientId?: null | string @go(ClientID,*string) - - // Reference to a UserPoolClient in cognitoidp to populate clientId. - // +kubebuilder:validation:Optional - clientIdRef?: null | v1.#Reference @go(ClientIDRef,*v1.Reference) - - // Selector for a UserPoolClient in cognitoidp to populate clientId. - // +kubebuilder:validation:Optional - clientIdSelector?: null | v1.#Selector @go(ClientIDSelector,*v1.Selector) - - // The provider name for an Amazon Cognito Identity User Pool. - // +kubebuilder:validation:Optional - providerName?: null | string @go(ProviderName,*string) - - // Whether server-side token validation is enabled for the identity provider’s token or not. - // +kubebuilder:validation:Optional - serverSideTokenCheck?: null | bool @go(ServerSideTokenCheck,*bool) -} - -#PoolInitParameters: { - // Enables or disables the classic / basic authentication flow. Default is false. - allowClassicFlow?: null | bool @go(AllowClassicFlow,*bool) - - // Whether the identity pool supports unauthenticated logins or not. - allowUnauthenticatedIdentities?: null | bool @go(AllowUnauthenticatedIdentities,*bool) - - // An array of Amazon Cognito Identity user pools and their client IDs. - cognitoIdentityProviders?: [...#CognitoIdentityProvidersInitParameters] @go(CognitoIdentityProviders,[]CognitoIdentityProvidersInitParameters) - - // The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your - // backend and the Cognito service to communicate about the developer provider. - developerProviderName?: null | string @go(DeveloperProviderName,*string) - - // The Cognito Identity Pool name. - identityPoolName?: null | string @go(IdentityPoolName,*string) - - // Set of OpendID Connect provider ARNs. - openidConnectProviderArns?: [...null | string] @go(OpenIDConnectProviderArns,[]*string) - - // Key-Value pairs mapping provider names to provider app IDs. - supportedLoginProviders?: {[string]: null | string} @go(SupportedLoginProviders,map[string]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PoolObservation: { - // Enables or disables the classic / basic authentication flow. Default is false. - allowClassicFlow?: null | bool @go(AllowClassicFlow,*bool) - - // Whether the identity pool supports unauthenticated logins or not. - allowUnauthenticatedIdentities?: null | bool @go(AllowUnauthenticatedIdentities,*bool) - - // The ARN of the identity pool. - arn?: null | string @go(Arn,*string) - - // An array of Amazon Cognito Identity user pools and their client IDs. - cognitoIdentityProviders?: [...#CognitoIdentityProvidersObservation] @go(CognitoIdentityProviders,[]CognitoIdentityProvidersObservation) - - // The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your - // backend and the Cognito service to communicate about the developer provider. - developerProviderName?: null | string @go(DeveloperProviderName,*string) - - // An identity pool ID, e.g. us-west-2_abc123. - id?: null | string @go(ID,*string) - - // The Cognito Identity Pool name. - identityPoolName?: null | string @go(IdentityPoolName,*string) - - // Set of OpendID Connect provider ARNs. - openidConnectProviderArns?: [...null | string] @go(OpenIDConnectProviderArns,[]*string) - - // An array of Amazon Resource Names (ARNs) of the SAML provider for your identity. - samlProviderArns?: [...null | string] @go(SAMLProviderArns,[]*string) - - // Key-Value pairs mapping provider names to provider app IDs. - supportedLoginProviders?: {[string]: null | string} @go(SupportedLoginProviders,map[string]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#PoolParameters: { - // Enables or disables the classic / basic authentication flow. Default is false. - // +kubebuilder:validation:Optional - allowClassicFlow?: null | bool @go(AllowClassicFlow,*bool) - - // Whether the identity pool supports unauthenticated logins or not. - // +kubebuilder:validation:Optional - allowUnauthenticatedIdentities?: null | bool @go(AllowUnauthenticatedIdentities,*bool) - - // An array of Amazon Cognito Identity user pools and their client IDs. - // +kubebuilder:validation:Optional - cognitoIdentityProviders?: [...#CognitoIdentityProvidersParameters] @go(CognitoIdentityProviders,[]CognitoIdentityProvidersParameters) - - // The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your - // backend and the Cognito service to communicate about the developer provider. - // +kubebuilder:validation:Optional - developerProviderName?: null | string @go(DeveloperProviderName,*string) - - // The Cognito Identity Pool name. - // +kubebuilder:validation:Optional - identityPoolName?: null | string @go(IdentityPoolName,*string) - - // Set of OpendID Connect provider ARNs. - // +kubebuilder:validation:Optional - openidConnectProviderArns?: [...null | string] @go(OpenIDConnectProviderArns,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // An array of Amazon Resource Names (ARNs) of the SAML provider for your identity. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.SAMLProvider - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - samlProviderArns?: [...null | string] @go(SAMLProviderArns,[]*string) - - // References to SAMLProvider in iam to populate samlProviderArns. - // +kubebuilder:validation:Optional - samlProviderArnsRefs?: [...v1.#Reference] @go(SAMLProviderArnsRefs,[]v1.Reference) - - // Selector for a list of SAMLProvider in iam to populate samlProviderArns. - // +kubebuilder:validation:Optional - samlProviderArnsSelector?: null | v1.#Selector @go(SAMLProviderArnsSelector,*v1.Selector) - - // Key-Value pairs mapping provider names to provider app IDs. - // +kubebuilder:validation:Optional - supportedLoginProviders?: {[string]: null | string} @go(SupportedLoginProviders,map[string]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// PoolSpec defines the desired state of Pool -#PoolSpec: { - v1.#ResourceSpec - forProvider: #PoolParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PoolInitParameters @go(InitProvider) -} - -// PoolStatus defines the observed state of Pool. -#PoolStatus: { - v1.#ResourceStatus - atProvider?: #PoolObservation @go(AtProvider) -} - -// Pool is the Schema for the Pools API. Provides an AWS Cognito Identity Pool. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Pool: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.identityPoolName) || (has(self.initProvider) && has(self.initProvider.identityPoolName))",message="spec.forProvider.identityPoolName is a required parameter" - spec: #PoolSpec @go(Spec) - status?: #PoolStatus @go(Status) -} - -// PoolList contains a list of Pools -#PoolList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Pool] @go(Items,[]Pool) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1/zz_poolrolesattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1/zz_poolrolesattachment_types_go_gen.cue deleted file mode 100644 index 7ed38dd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1/zz_poolrolesattachment_types_go_gen.cue +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MappingRuleInitParameters: { - // The claim name that must be present in the token, for example, "isAdmin" or "paid". - claim?: null | string @go(Claim,*string) - - // The match condition that specifies how closely the claim value in the IdP token must match Value. - matchType?: null | string @go(MatchType,*string) - - // A brief string that the claim must match, for example, "paid" or "yes". - value?: null | string @go(Value,*string) -} - -#MappingRuleObservation: { - // The claim name that must be present in the token, for example, "isAdmin" or "paid". - claim?: null | string @go(Claim,*string) - - // The match condition that specifies how closely the claim value in the IdP token must match Value. - matchType?: null | string @go(MatchType,*string) - - // The role ARN. - roleArn?: null | string @go(RoleArn,*string) - - // A brief string that the claim must match, for example, "paid" or "yes". - value?: null | string @go(Value,*string) -} - -#MappingRuleParameters: { - // The claim name that must be present in the token, for example, "isAdmin" or "paid". - // +kubebuilder:validation:Optional - claim?: null | string @go(Claim,*string) - - // The match condition that specifies how closely the claim value in the IdP token must match Value. - // +kubebuilder:validation:Optional - matchType?: null | string @go(MatchType,*string) - - // The role ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // A brief string that the claim must match, for example, "paid" or "yes". - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#PoolRolesAttachmentInitParameters: { - // A List of Role Mapping. - roleMapping?: [...#RoleMappingInitParameters] @go(RoleMapping,[]RoleMappingInitParameters) - - // The map of roles associated with this pool. For a given role, the key will be either "authenticated" or "unauthenticated" and the value will be the Role ARN. - roles?: {[string]: null | string} @go(Roles,map[string]*string) -} - -#PoolRolesAttachmentObservation: { - // The identity pool ID. - id?: null | string @go(ID,*string) - - // An identity pool ID in the format REGION_GUID. - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // A List of Role Mapping. - roleMapping?: [...#RoleMappingObservation] @go(RoleMapping,[]RoleMappingObservation) - - // The map of roles associated with this pool. For a given role, the key will be either "authenticated" or "unauthenticated" and the value will be the Role ARN. - roles?: {[string]: null | string} @go(Roles,map[string]*string) -} - -#PoolRolesAttachmentParameters: { - // An identity pool ID in the format REGION_GUID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidentity/v1beta1.Pool - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // Reference to a Pool in cognitoidentity to populate identityPoolId. - // +kubebuilder:validation:Optional - identityPoolIdRef?: null | v1.#Reference @go(IdentityPoolIDRef,*v1.Reference) - - // Selector for a Pool in cognitoidentity to populate identityPoolId. - // +kubebuilder:validation:Optional - identityPoolIdSelector?: null | v1.#Selector @go(IdentityPoolIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A List of Role Mapping. - // +kubebuilder:validation:Optional - roleMapping?: [...#RoleMappingParameters] @go(RoleMapping,[]RoleMappingParameters) - - // The map of roles associated with this pool. For a given role, the key will be either "authenticated" or "unauthenticated" and the value will be the Role ARN. - // +kubebuilder:validation:Optional - roles?: {[string]: null | string} @go(Roles,map[string]*string) -} - -#RoleMappingInitParameters: { - // Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type. Required if you specify Token or Rules as the Type. - ambiguousRoleResolution?: null | string @go(AmbiguousRoleResolution,*string) - - // A string identifying the identity provider, for example, "graph.facebook.com" or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". Depends on cognito_identity_providers set on aws_cognito_identity_pool resource or a aws_cognito_identity_provider resource. - identityProvider?: null | string @go(IdentityProvider,*string) - - // The Rules Configuration to be used for mapping users to roles. You can specify up to 25 rules per identity provider. Rules are evaluated in order. The first one to match specifies the role. - mappingRule?: [...#MappingRuleInitParameters] @go(MappingRule,[]MappingRuleInitParameters) - - // The role mapping type. - type?: null | string @go(Type,*string) -} - -#RoleMappingObservation: { - // Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type. Required if you specify Token or Rules as the Type. - ambiguousRoleResolution?: null | string @go(AmbiguousRoleResolution,*string) - - // A string identifying the identity provider, for example, "graph.facebook.com" or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". Depends on cognito_identity_providers set on aws_cognito_identity_pool resource or a aws_cognito_identity_provider resource. - identityProvider?: null | string @go(IdentityProvider,*string) - - // The Rules Configuration to be used for mapping users to roles. You can specify up to 25 rules per identity provider. Rules are evaluated in order. The first one to match specifies the role. - mappingRule?: [...#MappingRuleObservation] @go(MappingRule,[]MappingRuleObservation) - - // The role mapping type. - type?: null | string @go(Type,*string) -} - -#RoleMappingParameters: { - // Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type. Required if you specify Token or Rules as the Type. - // +kubebuilder:validation:Optional - ambiguousRoleResolution?: null | string @go(AmbiguousRoleResolution,*string) - - // A string identifying the identity provider, for example, "graph.facebook.com" or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". Depends on cognito_identity_providers set on aws_cognito_identity_pool resource or a aws_cognito_identity_provider resource. - // +kubebuilder:validation:Optional - identityProvider?: null | string @go(IdentityProvider,*string) - - // The Rules Configuration to be used for mapping users to roles. You can specify up to 25 rules per identity provider. Rules are evaluated in order. The first one to match specifies the role. - // +kubebuilder:validation:Optional - mappingRule?: [...#MappingRuleParameters] @go(MappingRule,[]MappingRuleParameters) - - // The role mapping type. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// PoolRolesAttachmentSpec defines the desired state of PoolRolesAttachment -#PoolRolesAttachmentSpec: { - v1.#ResourceSpec - forProvider: #PoolRolesAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PoolRolesAttachmentInitParameters @go(InitProvider) -} - -// PoolRolesAttachmentStatus defines the observed state of PoolRolesAttachment. -#PoolRolesAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #PoolRolesAttachmentObservation @go(AtProvider) -} - -// PoolRolesAttachment is the Schema for the PoolRolesAttachments API. Provides an AWS Cognito Identity Pool Roles Attachment. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PoolRolesAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.roles) || (has(self.initProvider) && has(self.initProvider.roles))",message="spec.forProvider.roles is a required parameter" - spec: #PoolRolesAttachmentSpec @go(Spec) - status?: #PoolRolesAttachmentStatus @go(Status) -} - -// PoolRolesAttachmentList contains a list of PoolRolesAttachments -#PoolRolesAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PoolRolesAttachment] @go(Items,[]PoolRolesAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 82dcfb4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidp/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=cognitoidp.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "cognitoidp.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_identityprovider_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_identityprovider_types_go_gen.cue deleted file mode 100644 index dc65abb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_identityprovider_types_go_gen.cue +++ /dev/null @@ -1,137 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IdentityProviderInitParameters: { - // The map of attribute mapping of user pool attributes. AttributeMapping in AWS API documentation - attributeMapping?: {[string]: null | string} @go(AttributeMapping,map[string]*string) - - // The list of identity providers. - idpIdentifiers?: [...null | string] @go(IdpIdentifiers,[]*string) - - // The map of identity details, such as access token - providerDetails?: {[string]: null | string} @go(ProviderDetails,map[string]*string) - - // The provider name - providerName?: null | string @go(ProviderName,*string) - - // The provider type. See AWS API for valid values - providerType?: null | string @go(ProviderType,*string) -} - -#IdentityProviderObservation: { - // The map of attribute mapping of user pool attributes. AttributeMapping in AWS API documentation - attributeMapping?: {[string]: null | string} @go(AttributeMapping,map[string]*string) - id?: null | string @go(ID,*string) - - // The list of identity providers. - idpIdentifiers?: [...null | string] @go(IdpIdentifiers,[]*string) - - // The map of identity details, such as access token - providerDetails?: {[string]: null | string} @go(ProviderDetails,map[string]*string) - - // The provider name - providerName?: null | string @go(ProviderName,*string) - - // The provider type. See AWS API for valid values - providerType?: null | string @go(ProviderType,*string) - - // The user pool id - userPoolId?: null | string @go(UserPoolID,*string) -} - -#IdentityProviderParameters: { - // The map of attribute mapping of user pool attributes. AttributeMapping in AWS API documentation - // +kubebuilder:validation:Optional - attributeMapping?: {[string]: null | string} @go(AttributeMapping,map[string]*string) - - // The list of identity providers. - // +kubebuilder:validation:Optional - idpIdentifiers?: [...null | string] @go(IdpIdentifiers,[]*string) - - // The map of identity details, such as access token - // +kubebuilder:validation:Optional - providerDetails?: {[string]: null | string} @go(ProviderDetails,map[string]*string) - - // The provider name - // +kubebuilder:validation:Optional - providerName?: null | string @go(ProviderName,*string) - - // The provider type. See AWS API for valid values - // +kubebuilder:validation:Optional - providerType?: null | string @go(ProviderType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The user pool id - // +crossplane:generate:reference:type=UserPool - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) - - // Reference to a UserPool to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdRef?: null | v1.#Reference @go(UserPoolIDRef,*v1.Reference) - - // Selector for a UserPool to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdSelector?: null | v1.#Selector @go(UserPoolIDSelector,*v1.Selector) -} - -// IdentityProviderSpec defines the desired state of IdentityProvider -#IdentityProviderSpec: { - v1.#ResourceSpec - forProvider: #IdentityProviderParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IdentityProviderInitParameters @go(InitProvider) -} - -// IdentityProviderStatus defines the observed state of IdentityProvider. -#IdentityProviderStatus: { - v1.#ResourceStatus - atProvider?: #IdentityProviderObservation @go(AtProvider) -} - -// IdentityProvider is the Schema for the IdentityProviders API. Provides a Cognito User Identity Provider resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#IdentityProvider: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.providerDetails) || (has(self.initProvider) && has(self.initProvider.providerDetails))",message="spec.forProvider.providerDetails is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.providerName) || (has(self.initProvider) && has(self.initProvider.providerName))",message="spec.forProvider.providerName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.providerType) || (has(self.initProvider) && has(self.initProvider.providerType))",message="spec.forProvider.providerType is a required parameter" - spec: #IdentityProviderSpec @go(Spec) - status?: #IdentityProviderStatus @go(Status) -} - -// IdentityProviderList contains a list of IdentityProviders -#IdentityProviderList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#IdentityProvider] @go(Items,[]IdentityProvider) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_resourceserver_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_resourceserver_types_go_gen.cue deleted file mode 100644 index eb7facb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_resourceserver_types_go_gen.cue +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourceServerInitParameters: { - // An identifier for the resource server. - identifier?: null | string @go(Identifier,*string) - - // A name for the resource server. - name?: null | string @go(Name,*string) - - // A list of Authorization Scope. - scope?: [...#ScopeInitParameters] @go(Scope,[]ScopeInitParameters) -} - -#ResourceServerObservation: { - id?: null | string @go(ID,*string) - - // An identifier for the resource server. - identifier?: null | string @go(Identifier,*string) - - // A name for the resource server. - name?: null | string @go(Name,*string) - - // A list of Authorization Scope. - scope?: [...#ScopeObservation] @go(Scope,[]ScopeObservation) - - // A list of all scopes configured for this resource server in the format identifier/scope_name. - scopeIdentifiers?: [...null | string] @go(ScopeIdentifiers,[]*string) - userPoolId?: null | string @go(UserPoolID,*string) -} - -#ResourceServerParameters: { - // An identifier for the resource server. - // +kubebuilder:validation:Optional - identifier?: null | string @go(Identifier,*string) - - // A name for the resource server. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A list of Authorization Scope. - // +kubebuilder:validation:Optional - scope?: [...#ScopeParameters] @go(Scope,[]ScopeParameters) - - // +crossplane:generate:reference:type=UserPool - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) - - // Reference to a UserPool to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdRef?: null | v1.#Reference @go(UserPoolIDRef,*v1.Reference) - - // Selector for a UserPool to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdSelector?: null | v1.#Selector @go(UserPoolIDSelector,*v1.Selector) -} - -#ScopeInitParameters: { - // The scope description. - scopeDescription?: null | string @go(ScopeDescription,*string) - - // The scope name. - scopeName?: null | string @go(ScopeName,*string) -} - -#ScopeObservation: { - // The scope description. - scopeDescription?: null | string @go(ScopeDescription,*string) - - // The scope name. - scopeName?: null | string @go(ScopeName,*string) -} - -#ScopeParameters: { - // The scope description. - // +kubebuilder:validation:Optional - scopeDescription?: null | string @go(ScopeDescription,*string) - - // The scope name. - // +kubebuilder:validation:Optional - scopeName?: null | string @go(ScopeName,*string) -} - -// ResourceServerSpec defines the desired state of ResourceServer -#ResourceServerSpec: { - v1.#ResourceSpec - forProvider: #ResourceServerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourceServerInitParameters @go(InitProvider) -} - -// ResourceServerStatus defines the observed state of ResourceServer. -#ResourceServerStatus: { - v1.#ResourceStatus - atProvider?: #ResourceServerObservation @go(AtProvider) -} - -// ResourceServer is the Schema for the ResourceServers API. Provides a Cognito Resource Server. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ResourceServer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.identifier) || (has(self.initProvider) && has(self.initProvider.identifier))",message="spec.forProvider.identifier is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ResourceServerSpec @go(Spec) - status?: #ResourceServerStatus @go(Status) -} - -// ResourceServerList contains a list of ResourceServers -#ResourceServerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ResourceServer] @go(Items,[]ResourceServer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_riskconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_riskconfiguration_types_go_gen.cue deleted file mode 100644 index fc55957..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_riskconfiguration_types_go_gen.cue +++ /dev/null @@ -1,520 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountTakeoverRiskConfigurationInitParameters: { - // Account takeover risk configuration actions. See details below. - actions?: [...#ActionsInitParameters] @go(Actions,[]ActionsInitParameters) - - // The notify configuration used to construct email notifications. See details below. - notifyConfiguration?: [...#NotifyConfigurationInitParameters] @go(NotifyConfiguration,[]NotifyConfigurationInitParameters) -} - -#AccountTakeoverRiskConfigurationObservation: { - // Account takeover risk configuration actions. See details below. - actions?: [...#ActionsObservation] @go(Actions,[]ActionsObservation) - - // The notify configuration used to construct email notifications. See details below. - notifyConfiguration?: [...#NotifyConfigurationObservation] @go(NotifyConfiguration,[]NotifyConfigurationObservation) -} - -#AccountTakeoverRiskConfigurationParameters: { - // Account takeover risk configuration actions. See details below. - // +kubebuilder:validation:Optional - actions: [...#ActionsParameters] @go(Actions,[]ActionsParameters) - - // The notify configuration used to construct email notifications. See details below. - // +kubebuilder:validation:Optional - notifyConfiguration: [...#NotifyConfigurationParameters] @go(NotifyConfiguration,[]NotifyConfigurationParameters) -} - -#ActionsInitParameters: { - // Action to take for a high risk. See action block below. - highAction?: [...#HighActionInitParameters] @go(HighAction,[]HighActionInitParameters) - - // Action to take for a low risk. See action block below. - lowAction?: [...#LowActionInitParameters] @go(LowAction,[]LowActionInitParameters) - - // Action to take for a medium risk. See action block below. - mediumAction?: [...#MediumActionInitParameters] @go(MediumAction,[]MediumActionInitParameters) -} - -#ActionsObservation: { - // Action to take for a high risk. See action block below. - highAction?: [...#HighActionObservation] @go(HighAction,[]HighActionObservation) - - // Action to take for a low risk. See action block below. - lowAction?: [...#LowActionObservation] @go(LowAction,[]LowActionObservation) - - // Action to take for a medium risk. See action block below. - mediumAction?: [...#MediumActionObservation] @go(MediumAction,[]MediumActionObservation) -} - -#ActionsParameters: { - // Action to take for a high risk. See action block below. - // +kubebuilder:validation:Optional - highAction?: [...#HighActionParameters] @go(HighAction,[]HighActionParameters) - - // Action to take for a low risk. See action block below. - // +kubebuilder:validation:Optional - lowAction?: [...#LowActionParameters] @go(LowAction,[]LowActionParameters) - - // Action to take for a medium risk. See action block below. - // +kubebuilder:validation:Optional - mediumAction?: [...#MediumActionParameters] @go(MediumAction,[]MediumActionParameters) -} - -#BlockEmailInitParameters: { - // The email HTML body. - htmlBody?: null | string @go(HTMLBody,*string) - - // The email subject. - subject?: null | string @go(Subject,*string) - - // The email text body. - textBody?: null | string @go(TextBody,*string) -} - -#BlockEmailObservation: { - // The email HTML body. - htmlBody?: null | string @go(HTMLBody,*string) - - // The email subject. - subject?: null | string @go(Subject,*string) - - // The email text body. - textBody?: null | string @go(TextBody,*string) -} - -#BlockEmailParameters: { - // The email HTML body. - // +kubebuilder:validation:Optional - htmlBody?: null | string @go(HTMLBody,*string) - - // The email subject. - // +kubebuilder:validation:Optional - subject?: null | string @go(Subject,*string) - - // The email text body. - // +kubebuilder:validation:Optional - textBody?: null | string @go(TextBody,*string) -} - -#CompromisedCredentialsRiskConfigurationActionsInitParameters: { - // The action to take in response to the account takeover action. Valid values are BLOCK, MFA_IF_CONFIGURED, MFA_REQUIRED and NO_ACTION. - eventAction?: null | string @go(EventAction,*string) -} - -#CompromisedCredentialsRiskConfigurationActionsObservation: { - // The action to take in response to the account takeover action. Valid values are BLOCK, MFA_IF_CONFIGURED, MFA_REQUIRED and NO_ACTION. - eventAction?: null | string @go(EventAction,*string) -} - -#CompromisedCredentialsRiskConfigurationActionsParameters: { - // The action to take in response to the account takeover action. Valid values are BLOCK, MFA_IF_CONFIGURED, MFA_REQUIRED and NO_ACTION. - // +kubebuilder:validation:Optional - eventAction?: null | string @go(EventAction,*string) -} - -#CompromisedCredentialsRiskConfigurationInitParameters: { - // The compromised credentials risk configuration actions. See details below. - actions?: [...#CompromisedCredentialsRiskConfigurationActionsInitParameters] @go(Actions,[]CompromisedCredentialsRiskConfigurationActionsInitParameters) - - // Perform the action for these events. The default is to perform all events if no event filter is specified. Valid values are SIGN_IN, PASSWORD_CHANGE, and SIGN_UP. - eventFilter?: [...null | string] @go(EventFilter,[]*string) -} - -#CompromisedCredentialsRiskConfigurationObservation: { - // The compromised credentials risk configuration actions. See details below. - actions?: [...#CompromisedCredentialsRiskConfigurationActionsObservation] @go(Actions,[]CompromisedCredentialsRiskConfigurationActionsObservation) - - // Perform the action for these events. The default is to perform all events if no event filter is specified. Valid values are SIGN_IN, PASSWORD_CHANGE, and SIGN_UP. - eventFilter?: [...null | string] @go(EventFilter,[]*string) -} - -#CompromisedCredentialsRiskConfigurationParameters: { - // The compromised credentials risk configuration actions. See details below. - // +kubebuilder:validation:Optional - actions: [...#CompromisedCredentialsRiskConfigurationActionsParameters] @go(Actions,[]CompromisedCredentialsRiskConfigurationActionsParameters) - - // Perform the action for these events. The default is to perform all events if no event filter is specified. Valid values are SIGN_IN, PASSWORD_CHANGE, and SIGN_UP. - // +kubebuilder:validation:Optional - eventFilter?: [...null | string] @go(EventFilter,[]*string) -} - -#HighActionInitParameters: { - // The action to take in response to the account takeover action. Valid values are BLOCK, MFA_IF_CONFIGURED, MFA_REQUIRED and NO_ACTION. - eventAction?: null | string @go(EventAction,*string) - - // Whether to send a notification. - notify?: null | bool @go(Notify,*bool) -} - -#HighActionObservation: { - // The action to take in response to the account takeover action. Valid values are BLOCK, MFA_IF_CONFIGURED, MFA_REQUIRED and NO_ACTION. - eventAction?: null | string @go(EventAction,*string) - - // Whether to send a notification. - notify?: null | bool @go(Notify,*bool) -} - -#HighActionParameters: { - // The action to take in response to the account takeover action. Valid values are BLOCK, MFA_IF_CONFIGURED, MFA_REQUIRED and NO_ACTION. - // +kubebuilder:validation:Optional - eventAction?: null | string @go(EventAction,*string) - - // Whether to send a notification. - // +kubebuilder:validation:Optional - notify?: null | bool @go(Notify,*bool) -} - -#LowActionInitParameters: { - // The action to take in response to the account takeover action. Valid values are BLOCK, MFA_IF_CONFIGURED, MFA_REQUIRED and NO_ACTION. - eventAction?: null | string @go(EventAction,*string) - - // Whether to send a notification. - notify?: null | bool @go(Notify,*bool) -} - -#LowActionObservation: { - // The action to take in response to the account takeover action. Valid values are BLOCK, MFA_IF_CONFIGURED, MFA_REQUIRED and NO_ACTION. - eventAction?: null | string @go(EventAction,*string) - - // Whether to send a notification. - notify?: null | bool @go(Notify,*bool) -} - -#LowActionParameters: { - // The action to take in response to the account takeover action. Valid values are BLOCK, MFA_IF_CONFIGURED, MFA_REQUIRED and NO_ACTION. - // +kubebuilder:validation:Optional - eventAction?: null | string @go(EventAction,*string) - - // Whether to send a notification. - // +kubebuilder:validation:Optional - notify?: null | bool @go(Notify,*bool) -} - -#MediumActionInitParameters: { - // The action to take in response to the account takeover action. Valid values are BLOCK, MFA_IF_CONFIGURED, MFA_REQUIRED and NO_ACTION. - eventAction?: null | string @go(EventAction,*string) - - // Whether to send a notification. - notify?: null | bool @go(Notify,*bool) -} - -#MediumActionObservation: { - // The action to take in response to the account takeover action. Valid values are BLOCK, MFA_IF_CONFIGURED, MFA_REQUIRED and NO_ACTION. - eventAction?: null | string @go(EventAction,*string) - - // Whether to send a notification. - notify?: null | bool @go(Notify,*bool) -} - -#MediumActionParameters: { - // The action to take in response to the account takeover action. Valid values are BLOCK, MFA_IF_CONFIGURED, MFA_REQUIRED and NO_ACTION. - // +kubebuilder:validation:Optional - eventAction?: null | string @go(EventAction,*string) - - // Whether to send a notification. - // +kubebuilder:validation:Optional - notify?: null | bool @go(Notify,*bool) -} - -#MfaEmailInitParameters: { - // The email HTML body. - htmlBody?: null | string @go(HTMLBody,*string) - - // The email subject. - subject?: null | string @go(Subject,*string) - - // The email text body. - textBody?: null | string @go(TextBody,*string) -} - -#MfaEmailObservation: { - // The email HTML body. - htmlBody?: null | string @go(HTMLBody,*string) - - // The email subject. - subject?: null | string @go(Subject,*string) - - // The email text body. - textBody?: null | string @go(TextBody,*string) -} - -#MfaEmailParameters: { - // The email HTML body. - // +kubebuilder:validation:Optional - htmlBody?: null | string @go(HTMLBody,*string) - - // The email subject. - // +kubebuilder:validation:Optional - subject?: null | string @go(Subject,*string) - - // The email text body. - // +kubebuilder:validation:Optional - textBody?: null | string @go(TextBody,*string) -} - -#NoActionEmailInitParameters: { - // The email HTML body. - htmlBody?: null | string @go(HTMLBody,*string) - - // The email subject. - subject?: null | string @go(Subject,*string) - - // The email text body. - textBody?: null | string @go(TextBody,*string) -} - -#NoActionEmailObservation: { - // The email HTML body. - htmlBody?: null | string @go(HTMLBody,*string) - - // The email subject. - subject?: null | string @go(Subject,*string) - - // The email text body. - textBody?: null | string @go(TextBody,*string) -} - -#NoActionEmailParameters: { - // The email HTML body. - // +kubebuilder:validation:Optional - htmlBody?: null | string @go(HTMLBody,*string) - - // The email subject. - // +kubebuilder:validation:Optional - subject?: null | string @go(Subject,*string) - - // The email text body. - // +kubebuilder:validation:Optional - textBody?: null | string @go(TextBody,*string) -} - -#NotifyConfigurationInitParameters: { - // Email template used when a detected risk event is blocked. See notify email type below. - blockEmail?: [...#BlockEmailInitParameters] @go(BlockEmail,[]BlockEmailInitParameters) - - // The email address that is sending the email. The address must be either individually verified with Amazon Simple Email Service, or from a domain that has been verified with Amazon SES. - from?: null | string @go(From,*string) - - // The multi-factor authentication (MFA) email template used when MFA is challenged as part of a detected risk. See notify email type below. - mfaEmail?: [...#MfaEmailInitParameters] @go(MfaEmail,[]MfaEmailInitParameters) - - // The email template used when a detected risk event is allowed. See notify email type below. - noActionEmail?: [...#NoActionEmailInitParameters] @go(NoActionEmail,[]NoActionEmailInitParameters) - - // The destination to which the receiver of an email should reply to. - replyTo?: null | string @go(ReplyTo,*string) - - // The Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy. This identity permits Amazon Cognito to send for the email address specified in the From parameter. - sourceArn?: null | string @go(SourceArn,*string) -} - -#NotifyConfigurationObservation: { - // Email template used when a detected risk event is blocked. See notify email type below. - blockEmail?: [...#BlockEmailObservation] @go(BlockEmail,[]BlockEmailObservation) - - // The email address that is sending the email. The address must be either individually verified with Amazon Simple Email Service, or from a domain that has been verified with Amazon SES. - from?: null | string @go(From,*string) - - // The multi-factor authentication (MFA) email template used when MFA is challenged as part of a detected risk. See notify email type below. - mfaEmail?: [...#MfaEmailObservation] @go(MfaEmail,[]MfaEmailObservation) - - // The email template used when a detected risk event is allowed. See notify email type below. - noActionEmail?: [...#NoActionEmailObservation] @go(NoActionEmail,[]NoActionEmailObservation) - - // The destination to which the receiver of an email should reply to. - replyTo?: null | string @go(ReplyTo,*string) - - // The Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy. This identity permits Amazon Cognito to send for the email address specified in the From parameter. - sourceArn?: null | string @go(SourceArn,*string) -} - -#NotifyConfigurationParameters: { - // Email template used when a detected risk event is blocked. See notify email type below. - // +kubebuilder:validation:Optional - blockEmail?: [...#BlockEmailParameters] @go(BlockEmail,[]BlockEmailParameters) - - // The email address that is sending the email. The address must be either individually verified with Amazon Simple Email Service, or from a domain that has been verified with Amazon SES. - // +kubebuilder:validation:Optional - from?: null | string @go(From,*string) - - // The multi-factor authentication (MFA) email template used when MFA is challenged as part of a detected risk. See notify email type below. - // +kubebuilder:validation:Optional - mfaEmail?: [...#MfaEmailParameters] @go(MfaEmail,[]MfaEmailParameters) - - // The email template used when a detected risk event is allowed. See notify email type below. - // +kubebuilder:validation:Optional - noActionEmail?: [...#NoActionEmailParameters] @go(NoActionEmail,[]NoActionEmailParameters) - - // The destination to which the receiver of an email should reply to. - // +kubebuilder:validation:Optional - replyTo?: null | string @go(ReplyTo,*string) - - // The Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy. This identity permits Amazon Cognito to send for the email address specified in the From parameter. - // +kubebuilder:validation:Optional - sourceArn?: null | string @go(SourceArn,*string) -} - -#RiskConfigurationInitParameters: { - // The account takeover risk configuration. See details below. - accountTakeoverRiskConfiguration?: [...#AccountTakeoverRiskConfigurationInitParameters] @go(AccountTakeoverRiskConfiguration,[]AccountTakeoverRiskConfigurationInitParameters) - - // The app client ID. When the client ID is not provided, the same risk configuration is applied to all the clients in the User Pool. - clientId?: null | string @go(ClientID,*string) - - // The compromised credentials risk configuration. See details below. - compromisedCredentialsRiskConfiguration?: [...#CompromisedCredentialsRiskConfigurationInitParameters] @go(CompromisedCredentialsRiskConfiguration,[]CompromisedCredentialsRiskConfigurationInitParameters) - - // The configuration to override the risk decision. See details below. - riskExceptionConfiguration?: [...#RiskExceptionConfigurationInitParameters] @go(RiskExceptionConfiguration,[]RiskExceptionConfigurationInitParameters) -} - -#RiskConfigurationObservation: { - // The account takeover risk configuration. See details below. - accountTakeoverRiskConfiguration?: [...#AccountTakeoverRiskConfigurationObservation] @go(AccountTakeoverRiskConfiguration,[]AccountTakeoverRiskConfigurationObservation) - - // The app client ID. When the client ID is not provided, the same risk configuration is applied to all the clients in the User Pool. - clientId?: null | string @go(ClientID,*string) - - // The compromised credentials risk configuration. See details below. - compromisedCredentialsRiskConfiguration?: [...#CompromisedCredentialsRiskConfigurationObservation] @go(CompromisedCredentialsRiskConfiguration,[]CompromisedCredentialsRiskConfigurationObservation) - - // The user pool ID. or The user pool ID and Client Id separated by a : if the configuration is client specific. - id?: null | string @go(ID,*string) - - // The configuration to override the risk decision. See details below. - riskExceptionConfiguration?: [...#RiskExceptionConfigurationObservation] @go(RiskExceptionConfiguration,[]RiskExceptionConfigurationObservation) - - // The user pool ID. - userPoolId?: null | string @go(UserPoolID,*string) -} - -#RiskConfigurationParameters: { - // The account takeover risk configuration. See details below. - // +kubebuilder:validation:Optional - accountTakeoverRiskConfiguration?: [...#AccountTakeoverRiskConfigurationParameters] @go(AccountTakeoverRiskConfiguration,[]AccountTakeoverRiskConfigurationParameters) - - // The app client ID. When the client ID is not provided, the same risk configuration is applied to all the clients in the User Pool. - // +kubebuilder:validation:Optional - clientId?: null | string @go(ClientID,*string) - - // The compromised credentials risk configuration. See details below. - // +kubebuilder:validation:Optional - compromisedCredentialsRiskConfiguration?: [...#CompromisedCredentialsRiskConfigurationParameters] @go(CompromisedCredentialsRiskConfiguration,[]CompromisedCredentialsRiskConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The configuration to override the risk decision. See details below. - // +kubebuilder:validation:Optional - riskExceptionConfiguration?: [...#RiskExceptionConfigurationParameters] @go(RiskExceptionConfiguration,[]RiskExceptionConfigurationParameters) - - // The user pool ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPool - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) - - // Reference to a UserPool in cognitoidp to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdRef?: null | v1.#Reference @go(UserPoolIDRef,*v1.Reference) - - // Selector for a UserPool in cognitoidp to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdSelector?: null | v1.#Selector @go(UserPoolIDSelector,*v1.Selector) -} - -#RiskExceptionConfigurationInitParameters: { - // Overrides the risk decision to always block the pre-authentication requests. - // The IP range is in CIDR notation, a compact representation of an IP address and its routing prefix. - // Can contain a maximum of 200 items. - blockedIpRangeList?: [...null | string] @go(BlockedIPRangeList,[]*string) - - // Risk detection isn't performed on the IP addresses in this range list. - // The IP range is in CIDR notation. - // Can contain a maximum of 200 items. - skippedIpRangeList?: [...null | string] @go(SkippedIPRangeList,[]*string) -} - -#RiskExceptionConfigurationObservation: { - // Overrides the risk decision to always block the pre-authentication requests. - // The IP range is in CIDR notation, a compact representation of an IP address and its routing prefix. - // Can contain a maximum of 200 items. - blockedIpRangeList?: [...null | string] @go(BlockedIPRangeList,[]*string) - - // Risk detection isn't performed on the IP addresses in this range list. - // The IP range is in CIDR notation. - // Can contain a maximum of 200 items. - skippedIpRangeList?: [...null | string] @go(SkippedIPRangeList,[]*string) -} - -#RiskExceptionConfigurationParameters: { - // Overrides the risk decision to always block the pre-authentication requests. - // The IP range is in CIDR notation, a compact representation of an IP address and its routing prefix. - // Can contain a maximum of 200 items. - // +kubebuilder:validation:Optional - blockedIpRangeList?: [...null | string] @go(BlockedIPRangeList,[]*string) - - // Risk detection isn't performed on the IP addresses in this range list. - // The IP range is in CIDR notation. - // Can contain a maximum of 200 items. - // +kubebuilder:validation:Optional - skippedIpRangeList?: [...null | string] @go(SkippedIPRangeList,[]*string) -} - -// RiskConfigurationSpec defines the desired state of RiskConfiguration -#RiskConfigurationSpec: { - v1.#ResourceSpec - forProvider: #RiskConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RiskConfigurationInitParameters @go(InitProvider) -} - -// RiskConfigurationStatus defines the observed state of RiskConfiguration. -#RiskConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #RiskConfigurationObservation @go(AtProvider) -} - -// RiskConfiguration is the Schema for the RiskConfigurations API. Provides a Cognito Risk Configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RiskConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RiskConfigurationSpec @go(Spec) - status?: #RiskConfigurationStatus @go(Status) -} - -// RiskConfigurationList contains a list of RiskConfigurations -#RiskConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RiskConfiguration] @go(Items,[]RiskConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_user_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_user_types_go_gen.cue deleted file mode 100644 index 2d8a55f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_user_types_go_gen.cue +++ /dev/null @@ -1,172 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserInitParameters: { - // A map that contains user attributes and attribute values to be set for the user. - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) - - // A map of custom key-value pairs that you can provide as input for any custom workflows that user creation triggers. Amazon Cognito does not store the client_metadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration does not include triggers, the ClientMetadata parameter serves no purpose. For more information, see Customizing User Pool Workflows with Lambda Triggers. - clientMetadata?: {[string]: null | string} @go(ClientMetadata,map[string]*string) - - // A list of mediums to the welcome message will be sent through. Allowed values are EMAIL and SMS. If it's provided, make sure you have also specified email attribute for the EMAIL medium and phone_number for the SMS. More than one value can be specified. Amazon Cognito does not store the desired_delivery_mediums value. Defaults to ["SMS"]. - desiredDeliveryMediums?: [...null | string] @go(DesiredDeliveryMediums,[]*string) - - // Specifies whether the user should be enabled after creation. The welcome message will be sent regardless of the enabled value. The behavior can be changed with message_action argument. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // If this parameter is set to True and the phone_number or email address specified in the attributes parameter already exists as an alias with a different user, Amazon Cognito will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias. Amazon Cognito does not store the force_alias_creation value. Defaults to false. - forceAliasCreation?: null | bool @go(ForceAliasCreation,*bool) - - // Set to RESEND to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to SUPPRESS to suppress sending the message. Only one value can be specified. Amazon Cognito does not store the message_action value. - messageAction?: null | string @go(MessageAction,*string) - - // The user's validation data. This is an array of name-value pairs that contain user attributes and attribute values that you can use for custom validation, such as restricting the types of user accounts that can be registered. Amazon Cognito does not store the validation_data value. For more information, see Customizing User Pool Workflows with Lambda Triggers. - validationData?: {[string]: null | string} @go(ValidationData,map[string]*string) -} - -#UserObservation: { - // A map that contains user attributes and attribute values to be set for the user. - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) - - // A map of custom key-value pairs that you can provide as input for any custom workflows that user creation triggers. Amazon Cognito does not store the client_metadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration does not include triggers, the ClientMetadata parameter serves no purpose. For more information, see Customizing User Pool Workflows with Lambda Triggers. - clientMetadata?: {[string]: null | string} @go(ClientMetadata,map[string]*string) - creationDate?: null | string @go(CreationDate,*string) - - // A list of mediums to the welcome message will be sent through. Allowed values are EMAIL and SMS. If it's provided, make sure you have also specified email attribute for the EMAIL medium and phone_number for the SMS. More than one value can be specified. Amazon Cognito does not store the desired_delivery_mediums value. Defaults to ["SMS"]. - desiredDeliveryMediums?: [...null | string] @go(DesiredDeliveryMediums,[]*string) - - // Specifies whether the user should be enabled after creation. The welcome message will be sent regardless of the enabled value. The behavior can be changed with message_action argument. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // If this parameter is set to True and the phone_number or email address specified in the attributes parameter already exists as an alias with a different user, Amazon Cognito will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias. Amazon Cognito does not store the force_alias_creation value. Defaults to false. - forceAliasCreation?: null | bool @go(ForceAliasCreation,*bool) - id?: null | string @go(ID,*string) - lastModifiedDate?: null | string @go(LastModifiedDate,*string) - - // Set to RESEND to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to SUPPRESS to suppress sending the message. Only one value can be specified. Amazon Cognito does not store the message_action value. - messageAction?: null | string @go(MessageAction,*string) - mfaSettingList?: [...null | string] @go(MfaSettingList,[]*string) - preferredMfaSetting?: null | string @go(PreferredMfaSetting,*string) - - // current user status. - status?: null | string @go(Status,*string) - - // unique user id that is never reassignable to another user. - sub?: null | string @go(Sub,*string) - - // The user pool ID for the user pool where the user will be created. - userPoolId?: null | string @go(UserPoolID,*string) - - // The user's validation data. This is an array of name-value pairs that contain user attributes and attribute values that you can use for custom validation, such as restricting the types of user accounts that can be registered. Amazon Cognito does not store the validation_data value. For more information, see Customizing User Pool Workflows with Lambda Triggers. - validationData?: {[string]: null | string} @go(ValidationData,map[string]*string) -} - -#UserParameters: { - // A map that contains user attributes and attribute values to be set for the user. - // +kubebuilder:validation:Optional - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) - - // A map of custom key-value pairs that you can provide as input for any custom workflows that user creation triggers. Amazon Cognito does not store the client_metadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration does not include triggers, the ClientMetadata parameter serves no purpose. For more information, see Customizing User Pool Workflows with Lambda Triggers. - // +kubebuilder:validation:Optional - clientMetadata?: {[string]: null | string} @go(ClientMetadata,map[string]*string) - - // A list of mediums to the welcome message will be sent through. Allowed values are EMAIL and SMS. If it's provided, make sure you have also specified email attribute for the EMAIL medium and phone_number for the SMS. More than one value can be specified. Amazon Cognito does not store the desired_delivery_mediums value. Defaults to ["SMS"]. - // +kubebuilder:validation:Optional - desiredDeliveryMediums?: [...null | string] @go(DesiredDeliveryMediums,[]*string) - - // Specifies whether the user should be enabled after creation. The welcome message will be sent regardless of the enabled value. The behavior can be changed with message_action argument. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // If this parameter is set to True and the phone_number or email address specified in the attributes parameter already exists as an alias with a different user, Amazon Cognito will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias. Amazon Cognito does not store the force_alias_creation value. Defaults to false. - // +kubebuilder:validation:Optional - forceAliasCreation?: null | bool @go(ForceAliasCreation,*bool) - - // Set to RESEND to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to SUPPRESS to suppress sending the message. Only one value can be specified. Amazon Cognito does not store the message_action value. - // +kubebuilder:validation:Optional - messageAction?: null | string @go(MessageAction,*string) - - // The user's permanent password. This password must conform to the password policy specified by user pool the user belongs to. The welcome message always contains only temporary_password value. You can suppress sending the welcome message with the message_action argument. Amazon Cognito does not store the password value. Conflicts with temporary_password. - // +kubebuilder:validation:Optional - passwordSecretRef?: null | v1.#SecretKeySelector @go(PasswordSecretRef,*v1.SecretKeySelector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The user's temporary password. Conflicts with password. - // +kubebuilder:validation:Optional - temporaryPasswordSecretRef?: null | v1.#SecretKeySelector @go(TemporaryPasswordSecretRef,*v1.SecretKeySelector) - - // The user pool ID for the user pool where the user will be created. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPool - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) - - // Reference to a UserPool in cognitoidp to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdRef?: null | v1.#Reference @go(UserPoolIDRef,*v1.Reference) - - // Selector for a UserPool in cognitoidp to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdSelector?: null | v1.#Selector @go(UserPoolIDSelector,*v1.Selector) - - // The user's validation data. This is an array of name-value pairs that contain user attributes and attribute values that you can use for custom validation, such as restricting the types of user accounts that can be registered. Amazon Cognito does not store the validation_data value. For more information, see Customizing User Pool Workflows with Lambda Triggers. - // +kubebuilder:validation:Optional - validationData?: {[string]: null | string} @go(ValidationData,map[string]*string) -} - -// UserSpec defines the desired state of User -#UserSpec: { - v1.#ResourceSpec - forProvider: #UserParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserInitParameters @go(InitProvider) -} - -// UserStatus defines the observed state of User. -#UserStatus: { - v1.#ResourceStatus - atProvider?: #UserObservation @go(AtProvider) -} - -// User is the Schema for the Users API. Provides a Cognito User resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#User: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #UserSpec @go(Spec) - status?: #UserStatus @go(Status) -} - -// UserList contains a list of Users -#UserList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#User] @go(Items,[]User) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_usergroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_usergroup_types_go_gen.cue deleted file mode 100644 index 8107307..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_usergroup_types_go_gen.cue +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserGroupInitParameters: { - // The description of the user group. - description?: null | string @go(Description,*string) - - // The name of the user group. - name?: null | string @go(Name,*string) - - // The precedence of the user group. - precedence?: null | float64 @go(Precedence,*float64) -} - -#UserGroupObservation: { - // The description of the user group. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // The name of the user group. - name?: null | string @go(Name,*string) - - // The precedence of the user group. - precedence?: null | float64 @go(Precedence,*float64) - - // The ARN of the IAM role to be associated with the user group. - roleArn?: null | string @go(RoleArn,*string) - - // The user pool ID. - userPoolId?: null | string @go(UserPoolID,*string) -} - -#UserGroupParameters: { - // The description of the user group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the user group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The precedence of the user group. - // +kubebuilder:validation:Optional - precedence?: null | float64 @go(Precedence,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of the IAM role to be associated with the user group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The user pool ID. - // +crossplane:generate:reference:type=UserPool - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) - - // Reference to a UserPool to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdRef?: null | v1.#Reference @go(UserPoolIDRef,*v1.Reference) - - // Selector for a UserPool to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdSelector?: null | v1.#Selector @go(UserPoolIDSelector,*v1.Selector) -} - -// UserGroupSpec defines the desired state of UserGroup -#UserGroupSpec: { - v1.#ResourceSpec - forProvider: #UserGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserGroupInitParameters @go(InitProvider) -} - -// UserGroupStatus defines the observed state of UserGroup. -#UserGroupStatus: { - v1.#ResourceStatus - atProvider?: #UserGroupObservation @go(AtProvider) -} - -// UserGroup is the Schema for the UserGroups API. Provides a Cognito User Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #UserGroupSpec @go(Spec) - status?: #UserGroupStatus @go(Status) -} - -// UserGroupList contains a list of UserGroups -#UserGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserGroup] @go(Items,[]UserGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_useringroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_useringroup_types_go_gen.cue deleted file mode 100644 index 296236f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_useringroup_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserInGroupInitParameters: { -} - -#UserInGroupObservation: { - // The name of the group to which the user is to be added. - groupName?: null | string @go(GroupName,*string) - id?: null | string @go(ID,*string) - - // The user pool ID of the user and group. - userPoolId?: null | string @go(UserPoolID,*string) - - // The username of the user to be added to the group. - username?: null | string @go(Username,*string) -} - -#UserInGroupParameters: { - // The name of the group to which the user is to be added. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserGroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - groupName?: null | string @go(GroupName,*string) - - // Reference to a UserGroup in cognitoidp to populate groupName. - // +kubebuilder:validation:Optional - groupNameRef?: null | v1.#Reference @go(GroupNameRef,*v1.Reference) - - // Selector for a UserGroup in cognitoidp to populate groupName. - // +kubebuilder:validation:Optional - groupNameSelector?: null | v1.#Selector @go(GroupNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The user pool ID of the user and group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPool - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) - - // Reference to a UserPool in cognitoidp to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdRef?: null | v1.#Reference @go(UserPoolIDRef,*v1.Reference) - - // Selector for a UserPool in cognitoidp to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdSelector?: null | v1.#Selector @go(UserPoolIDSelector,*v1.Selector) - - // The username of the user to be added to the group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.User - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) - - // Reference to a User in cognitoidp to populate username. - // +kubebuilder:validation:Optional - usernameRef?: null | v1.#Reference @go(UsernameRef,*v1.Reference) - - // Selector for a User in cognitoidp to populate username. - // +kubebuilder:validation:Optional - usernameSelector?: null | v1.#Selector @go(UsernameSelector,*v1.Selector) -} - -// UserInGroupSpec defines the desired state of UserInGroup -#UserInGroupSpec: { - v1.#ResourceSpec - forProvider: #UserInGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserInGroupInitParameters @go(InitProvider) -} - -// UserInGroupStatus defines the observed state of UserInGroup. -#UserInGroupStatus: { - v1.#ResourceStatus - atProvider?: #UserInGroupObservation @go(AtProvider) -} - -// UserInGroup is the Schema for the UserInGroups API. Adds the specified user to the specified group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserInGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #UserInGroupSpec @go(Spec) - status?: #UserInGroupStatus @go(Status) -} - -// UserInGroupList contains a list of UserInGroups -#UserInGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserInGroup] @go(Items,[]UserInGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_userpool_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_userpool_types_go_gen.cue deleted file mode 100644 index ae6baa5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_userpool_types_go_gen.cue +++ /dev/null @@ -1,1076 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountRecoverySettingInitParameters: { - // List of Account Recovery Options of the following structure: - recoveryMechanism?: [...#RecoveryMechanismInitParameters] @go(RecoveryMechanism,[]RecoveryMechanismInitParameters) -} - -#AccountRecoverySettingObservation: { - // List of Account Recovery Options of the following structure: - recoveryMechanism?: [...#RecoveryMechanismObservation] @go(RecoveryMechanism,[]RecoveryMechanismObservation) -} - -#AccountRecoverySettingParameters: { - // List of Account Recovery Options of the following structure: - // +kubebuilder:validation:Optional - recoveryMechanism?: [...#RecoveryMechanismParameters] @go(RecoveryMechanism,[]RecoveryMechanismParameters) -} - -#AdminCreateUserConfigInitParameters: { - // Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app. - allowAdminCreateUserOnly?: null | bool @go(AllowAdminCreateUserOnly,*bool) - - // Invite message template structure. Detailed below. - inviteMessageTemplate?: [...#InviteMessageTemplateInitParameters] @go(InviteMessageTemplate,[]InviteMessageTemplateInitParameters) -} - -#AdminCreateUserConfigObservation: { - // Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app. - allowAdminCreateUserOnly?: null | bool @go(AllowAdminCreateUserOnly,*bool) - - // Invite message template structure. Detailed below. - inviteMessageTemplate?: [...#InviteMessageTemplateObservation] @go(InviteMessageTemplate,[]InviteMessageTemplateObservation) -} - -#AdminCreateUserConfigParameters: { - // Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app. - // +kubebuilder:validation:Optional - allowAdminCreateUserOnly?: null | bool @go(AllowAdminCreateUserOnly,*bool) - - // Invite message template structure. Detailed below. - // +kubebuilder:validation:Optional - inviteMessageTemplate?: [...#InviteMessageTemplateParameters] @go(InviteMessageTemplate,[]InviteMessageTemplateParameters) -} - -#CustomEmailSenderInitParameters: { - // The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send email notifications to users. - lambdaArn?: null | string @go(LambdaArn,*string) - - // The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom email Lambda function. The only supported value is V1_0. - lambdaVersion?: null | string @go(LambdaVersion,*string) -} - -#CustomEmailSenderObservation: { - // The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send email notifications to users. - lambdaArn?: null | string @go(LambdaArn,*string) - - // The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom email Lambda function. The only supported value is V1_0. - lambdaVersion?: null | string @go(LambdaVersion,*string) -} - -#CustomEmailSenderParameters: { - // The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send email notifications to users. - // +kubebuilder:validation:Optional - lambdaArn?: null | string @go(LambdaArn,*string) - - // The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom email Lambda function. The only supported value is V1_0. - // +kubebuilder:validation:Optional - lambdaVersion?: null | string @go(LambdaVersion,*string) -} - -#CustomSMSSenderInitParameters: { - // The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send SMS notifications to users. - lambdaArn?: null | string @go(LambdaArn,*string) - - // The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom SMS Lambda function. The only supported value is V1_0. - lambdaVersion?: null | string @go(LambdaVersion,*string) -} - -#CustomSMSSenderObservation: { - // The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send SMS notifications to users. - lambdaArn?: null | string @go(LambdaArn,*string) - - // The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom SMS Lambda function. The only supported value is V1_0. - lambdaVersion?: null | string @go(LambdaVersion,*string) -} - -#CustomSMSSenderParameters: { - // The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send SMS notifications to users. - // +kubebuilder:validation:Optional - lambdaArn?: null | string @go(LambdaArn,*string) - - // The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom SMS Lambda function. The only supported value is V1_0. - // +kubebuilder:validation:Optional - lambdaVersion?: null | string @go(LambdaVersion,*string) -} - -#DeviceConfigurationInitParameters: { - // Whether a challenge is required on a new device. Only applicable to a new device. - challengeRequiredOnNewDevice?: null | bool @go(ChallengeRequiredOnNewDevice,*bool) - - // Whether a device is only remembered on user prompt. false equates to "Always" remember, true is "User Opt In," and not using a device_configuration block is "No." - deviceOnlyRememberedOnUserPrompt?: null | bool @go(DeviceOnlyRememberedOnUserPrompt,*bool) -} - -#DeviceConfigurationObservation: { - // Whether a challenge is required on a new device. Only applicable to a new device. - challengeRequiredOnNewDevice?: null | bool @go(ChallengeRequiredOnNewDevice,*bool) - - // Whether a device is only remembered on user prompt. false equates to "Always" remember, true is "User Opt In," and not using a device_configuration block is "No." - deviceOnlyRememberedOnUserPrompt?: null | bool @go(DeviceOnlyRememberedOnUserPrompt,*bool) -} - -#DeviceConfigurationParameters: { - // Whether a challenge is required on a new device. Only applicable to a new device. - // +kubebuilder:validation:Optional - challengeRequiredOnNewDevice?: null | bool @go(ChallengeRequiredOnNewDevice,*bool) - - // Whether a device is only remembered on user prompt. false equates to "Always" remember, true is "User Opt In," and not using a device_configuration block is "No." - // +kubebuilder:validation:Optional - deviceOnlyRememberedOnUserPrompt?: null | bool @go(DeviceOnlyRememberedOnUserPrompt,*bool) -} - -#EmailConfigurationInitParameters: { - // Email configuration set name from SES. - configurationSet?: null | string @go(ConfigurationSet,*string) - - // Email delivery method to use. COGNITO_DEFAULT for the default email functionality built into Cognito or DEVELOPER to use your Amazon SES configuration. - emailSendingAccount?: null | string @go(EmailSendingAccount,*string) - - // Sender’s email address or sender’s display name with their email address (e.g., john@example.com, John Smith or \"John Smith Ph.D.\" ). Escaped double quotes are required around display names that contain certain characters as specified in RFC 5322. - fromEmailAddress?: null | string @go(FromEmailAddress,*string) - - // REPLY-TO email address. - replyToEmailAddress?: null | string @go(ReplyToEmailAddress,*string) - - // ARN of the SES verified email identity to use. Required if email_sending_account is set to DEVELOPER. - sourceArn?: null | string @go(SourceArn,*string) -} - -#EmailConfigurationObservation: { - // Email configuration set name from SES. - configurationSet?: null | string @go(ConfigurationSet,*string) - - // Email delivery method to use. COGNITO_DEFAULT for the default email functionality built into Cognito or DEVELOPER to use your Amazon SES configuration. - emailSendingAccount?: null | string @go(EmailSendingAccount,*string) - - // Sender’s email address or sender’s display name with their email address (e.g., john@example.com, John Smith or \"John Smith Ph.D.\" ). Escaped double quotes are required around display names that contain certain characters as specified in RFC 5322. - fromEmailAddress?: null | string @go(FromEmailAddress,*string) - - // REPLY-TO email address. - replyToEmailAddress?: null | string @go(ReplyToEmailAddress,*string) - - // ARN of the SES verified email identity to use. Required if email_sending_account is set to DEVELOPER. - sourceArn?: null | string @go(SourceArn,*string) -} - -#EmailConfigurationParameters: { - // Email configuration set name from SES. - // +kubebuilder:validation:Optional - configurationSet?: null | string @go(ConfigurationSet,*string) - - // Email delivery method to use. COGNITO_DEFAULT for the default email functionality built into Cognito or DEVELOPER to use your Amazon SES configuration. - // +kubebuilder:validation:Optional - emailSendingAccount?: null | string @go(EmailSendingAccount,*string) - - // Sender’s email address or sender’s display name with their email address (e.g., john@example.com, John Smith or \"John Smith Ph.D.\" ). Escaped double quotes are required around display names that contain certain characters as specified in RFC 5322. - // +kubebuilder:validation:Optional - fromEmailAddress?: null | string @go(FromEmailAddress,*string) - - // REPLY-TO email address. - // +kubebuilder:validation:Optional - replyToEmailAddress?: null | string @go(ReplyToEmailAddress,*string) - - // ARN of the SES verified email identity to use. Required if email_sending_account is set to DEVELOPER. - // +kubebuilder:validation:Optional - sourceArn?: null | string @go(SourceArn,*string) -} - -#InviteMessageTemplateInitParameters: { - // Message template for email messages. Must contain {username} and {####} placeholders, for username and temporary password, respectively. - emailMessage?: null | string @go(EmailMessage,*string) - - // Subject line for email messages. - emailSubject?: null | string @go(EmailSubject,*string) - - // Message template for SMS messages. Must contain {username} and {####} placeholders, for username and temporary password, respectively. - smsMessage?: null | string @go(SMSMessage,*string) -} - -#InviteMessageTemplateObservation: { - // Message template for email messages. Must contain {username} and {####} placeholders, for username and temporary password, respectively. - emailMessage?: null | string @go(EmailMessage,*string) - - // Subject line for email messages. - emailSubject?: null | string @go(EmailSubject,*string) - - // Message template for SMS messages. Must contain {username} and {####} placeholders, for username and temporary password, respectively. - smsMessage?: null | string @go(SMSMessage,*string) -} - -#InviteMessageTemplateParameters: { - // Message template for email messages. Must contain {username} and {####} placeholders, for username and temporary password, respectively. - // +kubebuilder:validation:Optional - emailMessage?: null | string @go(EmailMessage,*string) - - // Subject line for email messages. - // +kubebuilder:validation:Optional - emailSubject?: null | string @go(EmailSubject,*string) - - // Message template for SMS messages. Must contain {username} and {####} placeholders, for username and temporary password, respectively. - // +kubebuilder:validation:Optional - smsMessage?: null | string @go(SMSMessage,*string) -} - -#LambdaConfigInitParameters: { - // ARN of the lambda creating an authentication challenge. - createAuthChallenge?: null | string @go(CreateAuthChallenge,*string) - - // A custom email sender AWS Lambda trigger. See custom_email_sender Below. - customEmailSender?: [...#CustomEmailSenderInitParameters] @go(CustomEmailSender,[]CustomEmailSenderInitParameters) - - // Custom Message AWS Lambda trigger. - customMessage?: null | string @go(CustomMessage,*string) - - // A custom SMS sender AWS Lambda trigger. See custom_sms_sender Below. - customSmsSender?: [...#CustomSMSSenderInitParameters] @go(CustomSMSSender,[]CustomSMSSenderInitParameters) - - // Defines the authentication challenge. - defineAuthChallenge?: null | string @go(DefineAuthChallenge,*string) - - // The Amazon Resource Name of Key Management Service Customer master keys. Amazon Cognito uses the key to encrypt codes and temporary passwords sent to CustomEmailSender and CustomSMSSender. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Post-authentication AWS Lambda trigger. - postAuthentication?: null | string @go(PostAuthentication,*string) - - // Post-confirmation AWS Lambda trigger. - postConfirmation?: null | string @go(PostConfirmation,*string) - - // Pre-authentication AWS Lambda trigger. - preAuthentication?: null | string @go(PreAuthentication,*string) - - // Pre-registration AWS Lambda trigger. - preSignUp?: null | string @go(PreSignUp,*string) - - // Allow to customize identity token claims before token generation. - preTokenGeneration?: null | string @go(PreTokenGeneration,*string) - - // User migration Lambda config type. - userMigration?: null | string @go(UserMigration,*string) - - // Verifies the authentication challenge response. - verifyAuthChallengeResponse?: null | string @go(VerifyAuthChallengeResponse,*string) -} - -#LambdaConfigObservation: { - // ARN of the lambda creating an authentication challenge. - createAuthChallenge?: null | string @go(CreateAuthChallenge,*string) - - // A custom email sender AWS Lambda trigger. See custom_email_sender Below. - customEmailSender?: [...#CustomEmailSenderObservation] @go(CustomEmailSender,[]CustomEmailSenderObservation) - - // Custom Message AWS Lambda trigger. - customMessage?: null | string @go(CustomMessage,*string) - - // A custom SMS sender AWS Lambda trigger. See custom_sms_sender Below. - customSmsSender?: [...#CustomSMSSenderObservation] @go(CustomSMSSender,[]CustomSMSSenderObservation) - - // Defines the authentication challenge. - defineAuthChallenge?: null | string @go(DefineAuthChallenge,*string) - - // The Amazon Resource Name of Key Management Service Customer master keys. Amazon Cognito uses the key to encrypt codes and temporary passwords sent to CustomEmailSender and CustomSMSSender. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Post-authentication AWS Lambda trigger. - postAuthentication?: null | string @go(PostAuthentication,*string) - - // Post-confirmation AWS Lambda trigger. - postConfirmation?: null | string @go(PostConfirmation,*string) - - // Pre-authentication AWS Lambda trigger. - preAuthentication?: null | string @go(PreAuthentication,*string) - - // Pre-registration AWS Lambda trigger. - preSignUp?: null | string @go(PreSignUp,*string) - - // Allow to customize identity token claims before token generation. - preTokenGeneration?: null | string @go(PreTokenGeneration,*string) - - // User migration Lambda config type. - userMigration?: null | string @go(UserMigration,*string) - - // Verifies the authentication challenge response. - verifyAuthChallengeResponse?: null | string @go(VerifyAuthChallengeResponse,*string) -} - -#LambdaConfigParameters: { - // ARN of the lambda creating an authentication challenge. - // +kubebuilder:validation:Optional - createAuthChallenge?: null | string @go(CreateAuthChallenge,*string) - - // A custom email sender AWS Lambda trigger. See custom_email_sender Below. - // +kubebuilder:validation:Optional - customEmailSender?: [...#CustomEmailSenderParameters] @go(CustomEmailSender,[]CustomEmailSenderParameters) - - // Custom Message AWS Lambda trigger. - // +kubebuilder:validation:Optional - customMessage?: null | string @go(CustomMessage,*string) - - // A custom SMS sender AWS Lambda trigger. See custom_sms_sender Below. - // +kubebuilder:validation:Optional - customSmsSender?: [...#CustomSMSSenderParameters] @go(CustomSMSSender,[]CustomSMSSenderParameters) - - // Defines the authentication challenge. - // +kubebuilder:validation:Optional - defineAuthChallenge?: null | string @go(DefineAuthChallenge,*string) - - // The Amazon Resource Name of Key Management Service Customer master keys. Amazon Cognito uses the key to encrypt codes and temporary passwords sent to CustomEmailSender and CustomSMSSender. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Post-authentication AWS Lambda trigger. - // +kubebuilder:validation:Optional - postAuthentication?: null | string @go(PostAuthentication,*string) - - // Post-confirmation AWS Lambda trigger. - // +kubebuilder:validation:Optional - postConfirmation?: null | string @go(PostConfirmation,*string) - - // Pre-authentication AWS Lambda trigger. - // +kubebuilder:validation:Optional - preAuthentication?: null | string @go(PreAuthentication,*string) - - // Pre-registration AWS Lambda trigger. - // +kubebuilder:validation:Optional - preSignUp?: null | string @go(PreSignUp,*string) - - // Allow to customize identity token claims before token generation. - // +kubebuilder:validation:Optional - preTokenGeneration?: null | string @go(PreTokenGeneration,*string) - - // User migration Lambda config type. - // +kubebuilder:validation:Optional - userMigration?: null | string @go(UserMigration,*string) - - // Verifies the authentication challenge response. - // +kubebuilder:validation:Optional - verifyAuthChallengeResponse?: null | string @go(VerifyAuthChallengeResponse,*string) -} - -#NumberAttributeConstraintsInitParameters: { - // Maximum value of an attribute that is of the number data type. - maxValue?: null | string @go(MaxValue,*string) - - // Minimum value of an attribute that is of the number data type. - minValue?: null | string @go(MinValue,*string) -} - -#NumberAttributeConstraintsObservation: { - // Maximum value of an attribute that is of the number data type. - maxValue?: null | string @go(MaxValue,*string) - - // Minimum value of an attribute that is of the number data type. - minValue?: null | string @go(MinValue,*string) -} - -#NumberAttributeConstraintsParameters: { - // Maximum value of an attribute that is of the number data type. - // +kubebuilder:validation:Optional - maxValue?: null | string @go(MaxValue,*string) - - // Minimum value of an attribute that is of the number data type. - // +kubebuilder:validation:Optional - minValue?: null | string @go(MinValue,*string) -} - -#PasswordPolicyInitParameters: { - // Minimum length of the password policy that you have set. - minimumLength?: null | float64 @go(MinimumLength,*float64) - - // Whether you have required users to use at least one lowercase letter in their password. - requireLowercase?: null | bool @go(RequireLowercase,*bool) - - // Whether you have required users to use at least one number in their password. - requireNumbers?: null | bool @go(RequireNumbers,*bool) - - // Whether you have required users to use at least one symbol in their password. - requireSymbols?: null | bool @go(RequireSymbols,*bool) - - // Whether you have required users to use at least one uppercase letter in their password. - requireUppercase?: null | bool @go(RequireUppercase,*bool) - - // In the password policy you have set, refers to the number of days a temporary password is valid. If the user does not sign-in during this time, their password will need to be reset by an administrator. - temporaryPasswordValidityDays?: null | float64 @go(TemporaryPasswordValidityDays,*float64) -} - -#PasswordPolicyObservation: { - // Minimum length of the password policy that you have set. - minimumLength?: null | float64 @go(MinimumLength,*float64) - - // Whether you have required users to use at least one lowercase letter in their password. - requireLowercase?: null | bool @go(RequireLowercase,*bool) - - // Whether you have required users to use at least one number in their password. - requireNumbers?: null | bool @go(RequireNumbers,*bool) - - // Whether you have required users to use at least one symbol in their password. - requireSymbols?: null | bool @go(RequireSymbols,*bool) - - // Whether you have required users to use at least one uppercase letter in their password. - requireUppercase?: null | bool @go(RequireUppercase,*bool) - - // In the password policy you have set, refers to the number of days a temporary password is valid. If the user does not sign-in during this time, their password will need to be reset by an administrator. - temporaryPasswordValidityDays?: null | float64 @go(TemporaryPasswordValidityDays,*float64) -} - -#PasswordPolicyParameters: { - // Minimum length of the password policy that you have set. - // +kubebuilder:validation:Optional - minimumLength?: null | float64 @go(MinimumLength,*float64) - - // Whether you have required users to use at least one lowercase letter in their password. - // +kubebuilder:validation:Optional - requireLowercase?: null | bool @go(RequireLowercase,*bool) - - // Whether you have required users to use at least one number in their password. - // +kubebuilder:validation:Optional - requireNumbers?: null | bool @go(RequireNumbers,*bool) - - // Whether you have required users to use at least one symbol in their password. - // +kubebuilder:validation:Optional - requireSymbols?: null | bool @go(RequireSymbols,*bool) - - // Whether you have required users to use at least one uppercase letter in their password. - // +kubebuilder:validation:Optional - requireUppercase?: null | bool @go(RequireUppercase,*bool) - - // In the password policy you have set, refers to the number of days a temporary password is valid. If the user does not sign-in during this time, their password will need to be reset by an administrator. - // +kubebuilder:validation:Optional - temporaryPasswordValidityDays?: null | float64 @go(TemporaryPasswordValidityDays,*float64) -} - -#RecoveryMechanismInitParameters: { - // Name of the user pool. - name?: null | string @go(Name,*string) - - // Positive integer specifying priority of a method with 1 being the highest priority. - priority?: null | float64 @go(Priority,*float64) -} - -#RecoveryMechanismObservation: { - // Name of the user pool. - name?: null | string @go(Name,*string) - - // Positive integer specifying priority of a method with 1 being the highest priority. - priority?: null | float64 @go(Priority,*float64) -} - -#RecoveryMechanismParameters: { - // Name of the user pool. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Positive integer specifying priority of a method with 1 being the highest priority. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) -} - -#SMSConfigurationInitParameters: { - // External ID used in IAM role trust relationships. For more information about using external IDs, see How to Use an External ID When Granting Access to Your AWS Resources to a Third Party. - externalId?: null | string @go(ExternalID,*string) - - // The AWS Region to use with Amazon SNS integration. You can choose the same Region as your user pool, or a supported Legacy Amazon SNS alternate Region. Amazon Cognito resources in the Asia Pacific (Seoul) AWS Region must use your Amazon SNS configuration in the Asia Pacific (Tokyo) Region. For more information, see SMS message settings for Amazon Cognito user pools. - snsRegion?: null | string @go(SnsRegion,*string) -} - -#SMSConfigurationObservation: { - // External ID used in IAM role trust relationships. For more information about using external IDs, see How to Use an External ID When Granting Access to Your AWS Resources to a Third Party. - externalId?: null | string @go(ExternalID,*string) - - // ARN of the Amazon SNS caller. This is usually the IAM role that you've given Cognito permission to assume. - snsCallerArn?: null | string @go(SnsCallerArn,*string) - - // The AWS Region to use with Amazon SNS integration. You can choose the same Region as your user pool, or a supported Legacy Amazon SNS alternate Region. Amazon Cognito resources in the Asia Pacific (Seoul) AWS Region must use your Amazon SNS configuration in the Asia Pacific (Tokyo) Region. For more information, see SMS message settings for Amazon Cognito user pools. - snsRegion?: null | string @go(SnsRegion,*string) -} - -#SMSConfigurationParameters: { - // External ID used in IAM role trust relationships. For more information about using external IDs, see How to Use an External ID When Granting Access to Your AWS Resources to a Third Party. - // +kubebuilder:validation:Optional - externalId?: null | string @go(ExternalID,*string) - - // ARN of the Amazon SNS caller. This is usually the IAM role that you've given Cognito permission to assume. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - snsCallerArn?: null | string @go(SnsCallerArn,*string) - - // Reference to a Role in iam to populate snsCallerArn. - // +kubebuilder:validation:Optional - snsCallerArnRef?: null | v1.#Reference @go(SnsCallerArnRef,*v1.Reference) - - // Selector for a Role in iam to populate snsCallerArn. - // +kubebuilder:validation:Optional - snsCallerArnSelector?: null | v1.#Selector @go(SnsCallerArnSelector,*v1.Selector) - - // The AWS Region to use with Amazon SNS integration. You can choose the same Region as your user pool, or a supported Legacy Amazon SNS alternate Region. Amazon Cognito resources in the Asia Pacific (Seoul) AWS Region must use your Amazon SNS configuration in the Asia Pacific (Tokyo) Region. For more information, see SMS message settings for Amazon Cognito user pools. - // +kubebuilder:validation:Optional - snsRegion?: null | string @go(SnsRegion,*string) -} - -#SchemaInitParameters: { - // Attribute data type. Must be one of Boolean, Number, String, DateTime. - attributeDataType?: null | string @go(AttributeDataType,*string) - - // Whether the attribute type is developer only. - developerOnlyAttribute?: null | bool @go(DeveloperOnlyAttribute,*bool) - - // Whether the attribute can be changed once it has been created. - mutable?: null | bool @go(Mutable,*bool) - - // Name of the user pool. - name?: null | string @go(Name,*string) - - // Configuration block for the constraints for an attribute of the number type. Detailed below. - numberAttributeConstraints?: [...#NumberAttributeConstraintsInitParameters] @go(NumberAttributeConstraints,[]NumberAttributeConstraintsInitParameters) - - // Whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail. - required?: null | bool @go(Required,*bool) - - // Constraints for an attribute of the string type. Detailed below. - stringAttributeConstraints?: [...#StringAttributeConstraintsInitParameters] @go(StringAttributeConstraints,[]StringAttributeConstraintsInitParameters) -} - -#SchemaObservation: { - // Attribute data type. Must be one of Boolean, Number, String, DateTime. - attributeDataType?: null | string @go(AttributeDataType,*string) - - // Whether the attribute type is developer only. - developerOnlyAttribute?: null | bool @go(DeveloperOnlyAttribute,*bool) - - // Whether the attribute can be changed once it has been created. - mutable?: null | bool @go(Mutable,*bool) - - // Name of the user pool. - name?: null | string @go(Name,*string) - - // Configuration block for the constraints for an attribute of the number type. Detailed below. - numberAttributeConstraints?: [...#NumberAttributeConstraintsObservation] @go(NumberAttributeConstraints,[]NumberAttributeConstraintsObservation) - - // Whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail. - required?: null | bool @go(Required,*bool) - - // Constraints for an attribute of the string type. Detailed below. - stringAttributeConstraints?: [...#StringAttributeConstraintsObservation] @go(StringAttributeConstraints,[]StringAttributeConstraintsObservation) -} - -#SchemaParameters: { - // Attribute data type. Must be one of Boolean, Number, String, DateTime. - // +kubebuilder:validation:Optional - attributeDataType?: null | string @go(AttributeDataType,*string) - - // Whether the attribute type is developer only. - // +kubebuilder:validation:Optional - developerOnlyAttribute?: null | bool @go(DeveloperOnlyAttribute,*bool) - - // Whether the attribute can be changed once it has been created. - // +kubebuilder:validation:Optional - mutable?: null | bool @go(Mutable,*bool) - - // Name of the user pool. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Configuration block for the constraints for an attribute of the number type. Detailed below. - // +kubebuilder:validation:Optional - numberAttributeConstraints?: [...#NumberAttributeConstraintsParameters] @go(NumberAttributeConstraints,[]NumberAttributeConstraintsParameters) - - // Whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail. - // +kubebuilder:validation:Optional - required?: null | bool @go(Required,*bool) - - // Constraints for an attribute of the string type. Detailed below. - // +kubebuilder:validation:Optional - stringAttributeConstraints?: [...#StringAttributeConstraintsParameters] @go(StringAttributeConstraints,[]StringAttributeConstraintsParameters) -} - -#SoftwareTokenMfaConfigurationInitParameters: { - // Boolean whether to enable software token Multi-Factor (MFA) tokens, such as Time-based One-Time Password (TOTP). To disable software token MFA When sms_configuration is not present, the mfa_configuration argument must be set to OFF and the software_token_mfa_configuration configuration block must be fully removed. - enabled?: null | bool @go(Enabled,*bool) -} - -#SoftwareTokenMfaConfigurationObservation: { - // Boolean whether to enable software token Multi-Factor (MFA) tokens, such as Time-based One-Time Password (TOTP). To disable software token MFA When sms_configuration is not present, the mfa_configuration argument must be set to OFF and the software_token_mfa_configuration configuration block must be fully removed. - enabled?: null | bool @go(Enabled,*bool) -} - -#SoftwareTokenMfaConfigurationParameters: { - // Boolean whether to enable software token Multi-Factor (MFA) tokens, such as Time-based One-Time Password (TOTP). To disable software token MFA When sms_configuration is not present, the mfa_configuration argument must be set to OFF and the software_token_mfa_configuration configuration block must be fully removed. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#StringAttributeConstraintsInitParameters: { - // Maximum length of an attribute value of the string type. - maxLength?: null | string @go(MaxLength,*string) - - // Minimum length of an attribute value of the string type. - minLength?: null | string @go(MinLength,*string) -} - -#StringAttributeConstraintsObservation: { - // Maximum length of an attribute value of the string type. - maxLength?: null | string @go(MaxLength,*string) - - // Minimum length of an attribute value of the string type. - minLength?: null | string @go(MinLength,*string) -} - -#StringAttributeConstraintsParameters: { - // Maximum length of an attribute value of the string type. - // +kubebuilder:validation:Optional - maxLength?: null | string @go(MaxLength,*string) - - // Minimum length of an attribute value of the string type. - // +kubebuilder:validation:Optional - minLength?: null | string @go(MinLength,*string) -} - -#UserAttributeUpdateSettingsInitParameters: { - // A list of attributes requiring verification before update. If set, the provided value(s) must also be set in auto_verified_attributes. Valid values: email, phone_number. - attributesRequireVerificationBeforeUpdate?: [...null | string] @go(AttributesRequireVerificationBeforeUpdate,[]*string) -} - -#UserAttributeUpdateSettingsObservation: { - // A list of attributes requiring verification before update. If set, the provided value(s) must also be set in auto_verified_attributes. Valid values: email, phone_number. - attributesRequireVerificationBeforeUpdate?: [...null | string] @go(AttributesRequireVerificationBeforeUpdate,[]*string) -} - -#UserAttributeUpdateSettingsParameters: { - // A list of attributes requiring verification before update. If set, the provided value(s) must also be set in auto_verified_attributes. Valid values: email, phone_number. - // +kubebuilder:validation:Optional - attributesRequireVerificationBeforeUpdate: [...null | string] @go(AttributesRequireVerificationBeforeUpdate,[]*string) -} - -#UserPoolAddOnsInitParameters: { - // Mode for advanced security, must be one of OFF, AUDIT or ENFORCED. - advancedSecurityMode?: null | string @go(AdvancedSecurityMode,*string) -} - -#UserPoolAddOnsObservation: { - // Mode for advanced security, must be one of OFF, AUDIT or ENFORCED. - advancedSecurityMode?: null | string @go(AdvancedSecurityMode,*string) -} - -#UserPoolAddOnsParameters: { - // Mode for advanced security, must be one of OFF, AUDIT or ENFORCED. - // +kubebuilder:validation:Optional - advancedSecurityMode?: null | string @go(AdvancedSecurityMode,*string) -} - -#UserPoolInitParameters: { - // Configuration block to define which verified available method a user can use to recover their forgotten password. Detailed below. - accountRecoverySetting?: [...#AccountRecoverySettingInitParameters] @go(AccountRecoverySetting,[]AccountRecoverySettingInitParameters) - - // Configuration block for creating a new user profile. Detailed below. - adminCreateUserConfig?: [...#AdminCreateUserConfigInitParameters] @go(AdminCreateUserConfig,[]AdminCreateUserConfigInitParameters) - - // Attributes supported as an alias for this user pool. Valid values: phone_number, email, or preferred_username. Conflicts with username_attributes. - aliasAttributes?: [...null | string] @go(AliasAttributes,[]*string) - - // Attributes to be auto-verified. Valid values: email, phone_number. - autoVerifiedAttributes?: [...null | string] @go(AutoVerifiedAttributes,[]*string) - - // When active, DeletionProtection prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature. Valid values are ACTIVE and INACTIVE, Default value is INACTIVE. - deletionProtection?: null | string @go(DeletionProtection,*string) - - // Configuration block for the user pool's device tracking. Detailed below. - deviceConfiguration?: [...#DeviceConfigurationInitParameters] @go(DeviceConfiguration,[]DeviceConfigurationInitParameters) - - // Configuration block for configuring email. Detailed below. - emailConfiguration?: [...#EmailConfigurationInitParameters] @go(EmailConfiguration,[]EmailConfigurationInitParameters) - - // String representing the email verification message. Conflicts with verification_message_template configuration block email_message argument. - emailVerificationMessage?: null | string @go(EmailVerificationMessage,*string) - - // String representing the email verification subject. Conflicts with verification_message_template configuration block email_subject argument. - emailVerificationSubject?: null | string @go(EmailVerificationSubject,*string) - - // Configuration block for the AWS Lambda triggers associated with the user pool. Detailed below. - lambdaConfig?: [...#LambdaConfigInitParameters] @go(LambdaConfig,[]LambdaConfigInitParameters) - - // Multi-Factor Authentication (MFA) configuration for the User Pool. Defaults of OFF. Valid values are OFF (MFA Tokens are not required), ON (MFA is required for all users to sign in; requires at least one of sms_configuration or software_token_mfa_configuration to be configured), or OPTIONAL (MFA Will be required only for individual users who have MFA Enabled; requires at least one of sms_configuration or software_token_mfa_configuration to be configured). - mfaConfiguration?: null | string @go(MfaConfiguration,*string) - - // Name of the user pool. - name?: null | string @go(Name,*string) - - // Configuration blocked for information about the user pool password policy. Detailed below. - passwordPolicy?: [...#PasswordPolicyInitParameters] @go(PasswordPolicy,[]PasswordPolicyInitParameters) - - // String representing the SMS authentication message. The Message must contain the {####} placeholder, which will be replaced with the code. - smsAuthenticationMessage?: null | string @go(SMSAuthenticationMessage,*string) - - // Configuration block for Short Message Service (SMS) settings. Detailed below. These settings apply to SMS user verification and SMS Multi-Factor Authentication (MFA). Due to Cognito API restrictions, the SMS configuration cannot be removed without recreating the Cognito User Pool. For user data safety, this resource will ignore the removal of this configuration by disabling drift detection. To force resource recreation after this configuration has been applied, see the taint command. - smsConfiguration?: [...#SMSConfigurationInitParameters] @go(SMSConfiguration,[]SMSConfigurationInitParameters) - - // String representing the SMS verification message. Conflicts with verification_message_template configuration block sms_message argument. - smsVerificationMessage?: null | string @go(SMSVerificationMessage,*string) - - // Configuration block for the schema attributes of a user pool. Detailed below. Schema attributes from the standard attribute set only need to be specified if they are different from the default configuration. Attributes can be added, but not modified or removed. Maximum of 50 attributes. - schema?: [...#SchemaInitParameters] @go(Schema,[]SchemaInitParameters) - - // Configuration block for software token Mult-Factor Authentication (MFA) settings. Detailed below. - softwareTokenMfaConfiguration?: [...#SoftwareTokenMfaConfigurationInitParameters] @go(SoftwareTokenMfaConfiguration,[]SoftwareTokenMfaConfigurationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for user attribute update settings. Detailed below. - userAttributeUpdateSettings?: [...#UserAttributeUpdateSettingsInitParameters] @go(UserAttributeUpdateSettings,[]UserAttributeUpdateSettingsInitParameters) - - // Configuration block for user pool add-ons to enable user pool advanced security mode features. Detailed below. - userPoolAddOns?: [...#UserPoolAddOnsInitParameters] @go(UserPoolAddOns,[]UserPoolAddOnsInitParameters) - - // Whether email addresses or phone numbers can be specified as usernames when a user signs up. Conflicts with alias_attributes. - usernameAttributes?: [...null | string] @go(UsernameAttributes,[]*string) - - // Configuration block for username configuration. Detailed below. - usernameConfiguration?: [...#UsernameConfigurationInitParameters] @go(UsernameConfiguration,[]UsernameConfigurationInitParameters) - - // Configuration block for verification message templates. Detailed below. - verificationMessageTemplate?: [...#VerificationMessageTemplateInitParameters] @go(VerificationMessageTemplate,[]VerificationMessageTemplateInitParameters) -} - -#UserPoolObservation: { - // Configuration block to define which verified available method a user can use to recover their forgotten password. Detailed below. - accountRecoverySetting?: [...#AccountRecoverySettingObservation] @go(AccountRecoverySetting,[]AccountRecoverySettingObservation) - - // Configuration block for creating a new user profile. Detailed below. - adminCreateUserConfig?: [...#AdminCreateUserConfigObservation] @go(AdminCreateUserConfig,[]AdminCreateUserConfigObservation) - - // Attributes supported as an alias for this user pool. Valid values: phone_number, email, or preferred_username. Conflicts with username_attributes. - aliasAttributes?: [...null | string] @go(AliasAttributes,[]*string) - - // ARN of the user pool. - arn?: null | string @go(Arn,*string) - - // Attributes to be auto-verified. Valid values: email, phone_number. - autoVerifiedAttributes?: [...null | string] @go(AutoVerifiedAttributes,[]*string) - - // Date the user pool was created. - creationDate?: null | string @go(CreationDate,*string) - - // A custom domain name that you provide to Amazon Cognito. This parameter applies only if you use a custom domain to host the sign-up and sign-in pages for your application. For example: auth.example.com. - customDomain?: null | string @go(CustomDomain,*string) - - // When active, DeletionProtection prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature. Valid values are ACTIVE and INACTIVE, Default value is INACTIVE. - deletionProtection?: null | string @go(DeletionProtection,*string) - - // Configuration block for the user pool's device tracking. Detailed below. - deviceConfiguration?: [...#DeviceConfigurationObservation] @go(DeviceConfiguration,[]DeviceConfigurationObservation) - - // Holds the domain prefix if the user pool has a domain associated with it. - domain?: null | string @go(Domain,*string) - - // Configuration block for configuring email. Detailed below. - emailConfiguration?: [...#EmailConfigurationObservation] @go(EmailConfiguration,[]EmailConfigurationObservation) - - // String representing the email verification message. Conflicts with verification_message_template configuration block email_message argument. - emailVerificationMessage?: null | string @go(EmailVerificationMessage,*string) - - // String representing the email verification subject. Conflicts with verification_message_template configuration block email_subject argument. - emailVerificationSubject?: null | string @go(EmailVerificationSubject,*string) - - // Endpoint name of the user pool. Example format: cognito-idp.REGION.amazonaws.com/xxxx_yyyyy - endpoint?: null | string @go(Endpoint,*string) - - // A number estimating the size of the user pool. - estimatedNumberOfUsers?: null | float64 @go(EstimatedNumberOfUsers,*float64) - - // ID of the user pool. - id?: null | string @go(ID,*string) - - // Configuration block for the AWS Lambda triggers associated with the user pool. Detailed below. - lambdaConfig?: [...#LambdaConfigObservation] @go(LambdaConfig,[]LambdaConfigObservation) - - // Date the user pool was last modified. - lastModifiedDate?: null | string @go(LastModifiedDate,*string) - - // Multi-Factor Authentication (MFA) configuration for the User Pool. Defaults of OFF. Valid values are OFF (MFA Tokens are not required), ON (MFA is required for all users to sign in; requires at least one of sms_configuration or software_token_mfa_configuration to be configured), or OPTIONAL (MFA Will be required only for individual users who have MFA Enabled; requires at least one of sms_configuration or software_token_mfa_configuration to be configured). - mfaConfiguration?: null | string @go(MfaConfiguration,*string) - - // Name of the user pool. - name?: null | string @go(Name,*string) - - // Configuration blocked for information about the user pool password policy. Detailed below. - passwordPolicy?: [...#PasswordPolicyObservation] @go(PasswordPolicy,[]PasswordPolicyObservation) - - // String representing the SMS authentication message. The Message must contain the {####} placeholder, which will be replaced with the code. - smsAuthenticationMessage?: null | string @go(SMSAuthenticationMessage,*string) - - // Configuration block for Short Message Service (SMS) settings. Detailed below. These settings apply to SMS user verification and SMS Multi-Factor Authentication (MFA). Due to Cognito API restrictions, the SMS configuration cannot be removed without recreating the Cognito User Pool. For user data safety, this resource will ignore the removal of this configuration by disabling drift detection. To force resource recreation after this configuration has been applied, see the taint command. - smsConfiguration?: [...#SMSConfigurationObservation] @go(SMSConfiguration,[]SMSConfigurationObservation) - - // String representing the SMS verification message. Conflicts with verification_message_template configuration block sms_message argument. - smsVerificationMessage?: null | string @go(SMSVerificationMessage,*string) - - // Configuration block for the schema attributes of a user pool. Detailed below. Schema attributes from the standard attribute set only need to be specified if they are different from the default configuration. Attributes can be added, but not modified or removed. Maximum of 50 attributes. - schema?: [...#SchemaObservation] @go(Schema,[]SchemaObservation) - - // Configuration block for software token Mult-Factor Authentication (MFA) settings. Detailed below. - softwareTokenMfaConfiguration?: [...#SoftwareTokenMfaConfigurationObservation] @go(SoftwareTokenMfaConfiguration,[]SoftwareTokenMfaConfigurationObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration block for user attribute update settings. Detailed below. - userAttributeUpdateSettings?: [...#UserAttributeUpdateSettingsObservation] @go(UserAttributeUpdateSettings,[]UserAttributeUpdateSettingsObservation) - - // Configuration block for user pool add-ons to enable user pool advanced security mode features. Detailed below. - userPoolAddOns?: [...#UserPoolAddOnsObservation] @go(UserPoolAddOns,[]UserPoolAddOnsObservation) - - // Whether email addresses or phone numbers can be specified as usernames when a user signs up. Conflicts with alias_attributes. - usernameAttributes?: [...null | string] @go(UsernameAttributes,[]*string) - - // Configuration block for username configuration. Detailed below. - usernameConfiguration?: [...#UsernameConfigurationObservation] @go(UsernameConfiguration,[]UsernameConfigurationObservation) - - // Configuration block for verification message templates. Detailed below. - verificationMessageTemplate?: [...#VerificationMessageTemplateObservation] @go(VerificationMessageTemplate,[]VerificationMessageTemplateObservation) -} - -#UserPoolParameters: { - // Configuration block to define which verified available method a user can use to recover their forgotten password. Detailed below. - // +kubebuilder:validation:Optional - accountRecoverySetting?: [...#AccountRecoverySettingParameters] @go(AccountRecoverySetting,[]AccountRecoverySettingParameters) - - // Configuration block for creating a new user profile. Detailed below. - // +kubebuilder:validation:Optional - adminCreateUserConfig?: [...#AdminCreateUserConfigParameters] @go(AdminCreateUserConfig,[]AdminCreateUserConfigParameters) - - // Attributes supported as an alias for this user pool. Valid values: phone_number, email, or preferred_username. Conflicts with username_attributes. - // +kubebuilder:validation:Optional - aliasAttributes?: [...null | string] @go(AliasAttributes,[]*string) - - // Attributes to be auto-verified. Valid values: email, phone_number. - // +kubebuilder:validation:Optional - autoVerifiedAttributes?: [...null | string] @go(AutoVerifiedAttributes,[]*string) - - // When active, DeletionProtection prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature. Valid values are ACTIVE and INACTIVE, Default value is INACTIVE. - // +kubebuilder:validation:Optional - deletionProtection?: null | string @go(DeletionProtection,*string) - - // Configuration block for the user pool's device tracking. Detailed below. - // +kubebuilder:validation:Optional - deviceConfiguration?: [...#DeviceConfigurationParameters] @go(DeviceConfiguration,[]DeviceConfigurationParameters) - - // Configuration block for configuring email. Detailed below. - // +kubebuilder:validation:Optional - emailConfiguration?: [...#EmailConfigurationParameters] @go(EmailConfiguration,[]EmailConfigurationParameters) - - // String representing the email verification message. Conflicts with verification_message_template configuration block email_message argument. - // +kubebuilder:validation:Optional - emailVerificationMessage?: null | string @go(EmailVerificationMessage,*string) - - // String representing the email verification subject. Conflicts with verification_message_template configuration block email_subject argument. - // +kubebuilder:validation:Optional - emailVerificationSubject?: null | string @go(EmailVerificationSubject,*string) - - // Configuration block for the AWS Lambda triggers associated with the user pool. Detailed below. - // +kubebuilder:validation:Optional - lambdaConfig?: [...#LambdaConfigParameters] @go(LambdaConfig,[]LambdaConfigParameters) - - // Multi-Factor Authentication (MFA) configuration for the User Pool. Defaults of OFF. Valid values are OFF (MFA Tokens are not required), ON (MFA is required for all users to sign in; requires at least one of sms_configuration or software_token_mfa_configuration to be configured), or OPTIONAL (MFA Will be required only for individual users who have MFA Enabled; requires at least one of sms_configuration or software_token_mfa_configuration to be configured). - // +kubebuilder:validation:Optional - mfaConfiguration?: null | string @go(MfaConfiguration,*string) - - // Name of the user pool. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Configuration blocked for information about the user pool password policy. Detailed below. - // +kubebuilder:validation:Optional - passwordPolicy?: [...#PasswordPolicyParameters] @go(PasswordPolicy,[]PasswordPolicyParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // String representing the SMS authentication message. The Message must contain the {####} placeholder, which will be replaced with the code. - // +kubebuilder:validation:Optional - smsAuthenticationMessage?: null | string @go(SMSAuthenticationMessage,*string) - - // Configuration block for Short Message Service (SMS) settings. Detailed below. These settings apply to SMS user verification and SMS Multi-Factor Authentication (MFA). Due to Cognito API restrictions, the SMS configuration cannot be removed without recreating the Cognito User Pool. For user data safety, this resource will ignore the removal of this configuration by disabling drift detection. To force resource recreation after this configuration has been applied, see the taint command. - // +kubebuilder:validation:Optional - smsConfiguration?: [...#SMSConfigurationParameters] @go(SMSConfiguration,[]SMSConfigurationParameters) - - // String representing the SMS verification message. Conflicts with verification_message_template configuration block sms_message argument. - // +kubebuilder:validation:Optional - smsVerificationMessage?: null | string @go(SMSVerificationMessage,*string) - - // Configuration block for the schema attributes of a user pool. Detailed below. Schema attributes from the standard attribute set only need to be specified if they are different from the default configuration. Attributes can be added, but not modified or removed. Maximum of 50 attributes. - // +kubebuilder:validation:Optional - schema?: [...#SchemaParameters] @go(Schema,[]SchemaParameters) - - // Configuration block for software token Mult-Factor Authentication (MFA) settings. Detailed below. - // +kubebuilder:validation:Optional - softwareTokenMfaConfiguration?: [...#SoftwareTokenMfaConfigurationParameters] @go(SoftwareTokenMfaConfiguration,[]SoftwareTokenMfaConfigurationParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for user attribute update settings. Detailed below. - // +kubebuilder:validation:Optional - userAttributeUpdateSettings?: [...#UserAttributeUpdateSettingsParameters] @go(UserAttributeUpdateSettings,[]UserAttributeUpdateSettingsParameters) - - // Configuration block for user pool add-ons to enable user pool advanced security mode features. Detailed below. - // +kubebuilder:validation:Optional - userPoolAddOns?: [...#UserPoolAddOnsParameters] @go(UserPoolAddOns,[]UserPoolAddOnsParameters) - - // Whether email addresses or phone numbers can be specified as usernames when a user signs up. Conflicts with alias_attributes. - // +kubebuilder:validation:Optional - usernameAttributes?: [...null | string] @go(UsernameAttributes,[]*string) - - // Configuration block for username configuration. Detailed below. - // +kubebuilder:validation:Optional - usernameConfiguration?: [...#UsernameConfigurationParameters] @go(UsernameConfiguration,[]UsernameConfigurationParameters) - - // Configuration block for verification message templates. Detailed below. - // +kubebuilder:validation:Optional - verificationMessageTemplate?: [...#VerificationMessageTemplateParameters] @go(VerificationMessageTemplate,[]VerificationMessageTemplateParameters) -} - -#UsernameConfigurationInitParameters: { - // Whether username case sensitivity will be applied for all users in the user pool through Cognito APIs. - caseSensitive?: null | bool @go(CaseSensitive,*bool) -} - -#UsernameConfigurationObservation: { - // Whether username case sensitivity will be applied for all users in the user pool through Cognito APIs. - caseSensitive?: null | bool @go(CaseSensitive,*bool) -} - -#UsernameConfigurationParameters: { - // Whether username case sensitivity will be applied for all users in the user pool through Cognito APIs. - // +kubebuilder:validation:Optional - caseSensitive?: null | bool @go(CaseSensitive,*bool) -} - -#VerificationMessageTemplateInitParameters: { - // Default email option. Must be either CONFIRM_WITH_CODE or CONFIRM_WITH_LINK. Defaults to CONFIRM_WITH_CODE. - defaultEmailOption?: null | string @go(DefaultEmailOption,*string) - - // Email message template. Must contain the {####} placeholder. Conflicts with email_verification_message argument. - emailMessage?: null | string @go(EmailMessage,*string) - - // Email message template for sending a confirmation link to the user, it must contain the {##Click Here##} placeholder. - emailMessageByLink?: null | string @go(EmailMessageByLink,*string) - - // Subject line for the email message template. Conflicts with email_verification_subject argument. - emailSubject?: null | string @go(EmailSubject,*string) - - // Subject line for the email message template for sending a confirmation link to the user. - emailSubjectByLink?: null | string @go(EmailSubjectByLink,*string) - - // SMS message template. Must contain the {####} placeholder. Conflicts with sms_verification_message argument. - smsMessage?: null | string @go(SMSMessage,*string) -} - -#VerificationMessageTemplateObservation: { - // Default email option. Must be either CONFIRM_WITH_CODE or CONFIRM_WITH_LINK. Defaults to CONFIRM_WITH_CODE. - defaultEmailOption?: null | string @go(DefaultEmailOption,*string) - - // Email message template. Must contain the {####} placeholder. Conflicts with email_verification_message argument. - emailMessage?: null | string @go(EmailMessage,*string) - - // Email message template for sending a confirmation link to the user, it must contain the {##Click Here##} placeholder. - emailMessageByLink?: null | string @go(EmailMessageByLink,*string) - - // Subject line for the email message template. Conflicts with email_verification_subject argument. - emailSubject?: null | string @go(EmailSubject,*string) - - // Subject line for the email message template for sending a confirmation link to the user. - emailSubjectByLink?: null | string @go(EmailSubjectByLink,*string) - - // SMS message template. Must contain the {####} placeholder. Conflicts with sms_verification_message argument. - smsMessage?: null | string @go(SMSMessage,*string) -} - -#VerificationMessageTemplateParameters: { - // Default email option. Must be either CONFIRM_WITH_CODE or CONFIRM_WITH_LINK. Defaults to CONFIRM_WITH_CODE. - // +kubebuilder:validation:Optional - defaultEmailOption?: null | string @go(DefaultEmailOption,*string) - - // Email message template. Must contain the {####} placeholder. Conflicts with email_verification_message argument. - // +kubebuilder:validation:Optional - emailMessage?: null | string @go(EmailMessage,*string) - - // Email message template for sending a confirmation link to the user, it must contain the {##Click Here##} placeholder. - // +kubebuilder:validation:Optional - emailMessageByLink?: null | string @go(EmailMessageByLink,*string) - - // Subject line for the email message template. Conflicts with email_verification_subject argument. - // +kubebuilder:validation:Optional - emailSubject?: null | string @go(EmailSubject,*string) - - // Subject line for the email message template for sending a confirmation link to the user. - // +kubebuilder:validation:Optional - emailSubjectByLink?: null | string @go(EmailSubjectByLink,*string) - - // SMS message template. Must contain the {####} placeholder. Conflicts with sms_verification_message argument. - // +kubebuilder:validation:Optional - smsMessage?: null | string @go(SMSMessage,*string) -} - -// UserPoolSpec defines the desired state of UserPool -#UserPoolSpec: { - v1.#ResourceSpec - forProvider: #UserPoolParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserPoolInitParameters @go(InitProvider) -} - -// UserPoolStatus defines the observed state of UserPool. -#UserPoolStatus: { - v1.#ResourceStatus - atProvider?: #UserPoolObservation @go(AtProvider) -} - -// UserPool is the Schema for the UserPools API. Provides a Cognito User Pool resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserPool: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #UserPoolSpec @go(Spec) - status?: #UserPoolStatus @go(Status) -} - -// UserPoolList contains a list of UserPools -#UserPoolList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserPool] @go(Items,[]UserPool) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_userpoolclient_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_userpoolclient_types_go_gen.cue deleted file mode 100644 index 786ed46..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_userpoolclient_types_go_gen.cue +++ /dev/null @@ -1,421 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AnalyticsConfigurationInitParameters: { - // Application ARN for an Amazon Pinpoint application. Conflicts with external_id and role_arn. - applicationArn?: null | string @go(ApplicationArn,*string) - - // ID for the Analytics Configuration. Conflicts with application_arn. - externalId?: null | string @go(ExternalID,*string) - - // If set to true, Amazon Cognito will include user data in the events it publishes to Amazon Pinpoint analytics. - userDataShared?: null | bool @go(UserDataShared,*bool) -} - -#AnalyticsConfigurationObservation: { - // Application ARN for an Amazon Pinpoint application. Conflicts with external_id and role_arn. - applicationArn?: null | string @go(ApplicationArn,*string) - - // Application ID for an Amazon Pinpoint application. - applicationId?: null | string @go(ApplicationID,*string) - - // ID for the Analytics Configuration. Conflicts with application_arn. - externalId?: null | string @go(ExternalID,*string) - - // ARN of an IAM role that authorizes Amazon Cognito to publish events to Amazon Pinpoint analytics. Conflicts with application_arn. - roleArn?: null | string @go(RoleArn,*string) - - // If set to true, Amazon Cognito will include user data in the events it publishes to Amazon Pinpoint analytics. - userDataShared?: null | bool @go(UserDataShared,*bool) -} - -#AnalyticsConfigurationParameters: { - // Application ARN for an Amazon Pinpoint application. Conflicts with external_id and role_arn. - // +kubebuilder:validation:Optional - applicationArn?: null | string @go(ApplicationArn,*string) - - // Application ID for an Amazon Pinpoint application. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/pinpoint/v1beta1.App - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("application_id",true) - // +kubebuilder:validation:Optional - applicationId?: null | string @go(ApplicationID,*string) - - // Reference to a App in pinpoint to populate applicationId. - // +kubebuilder:validation:Optional - applicationIdRef?: null | v1.#Reference @go(ApplicationIDRef,*v1.Reference) - - // Selector for a App in pinpoint to populate applicationId. - // +kubebuilder:validation:Optional - applicationIdSelector?: null | v1.#Selector @go(ApplicationIDSelector,*v1.Selector) - - // ID for the Analytics Configuration. Conflicts with application_arn. - // +kubebuilder:validation:Optional - externalId?: null | string @go(ExternalID,*string) - - // ARN of an IAM role that authorizes Amazon Cognito to publish events to Amazon Pinpoint analytics. Conflicts with application_arn. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // If set to true, Amazon Cognito will include user data in the events it publishes to Amazon Pinpoint analytics. - // +kubebuilder:validation:Optional - userDataShared?: null | bool @go(UserDataShared,*bool) -} - -#TokenValidityUnitsInitParameters: { - // Time unit in for the value in access_token_validity, defaults to hours. - accessToken?: null | string @go(AccessToken,*string) - - // Time unit in for the value in id_token_validity, defaults to hours. - idToken?: null | string @go(IDToken,*string) - - // Time unit in for the value in refresh_token_validity, defaults to days. - refreshToken?: null | string @go(RefreshToken,*string) -} - -#TokenValidityUnitsObservation: { - // Time unit in for the value in access_token_validity, defaults to hours. - accessToken?: null | string @go(AccessToken,*string) - - // Time unit in for the value in id_token_validity, defaults to hours. - idToken?: null | string @go(IDToken,*string) - - // Time unit in for the value in refresh_token_validity, defaults to days. - refreshToken?: null | string @go(RefreshToken,*string) -} - -#TokenValidityUnitsParameters: { - // Time unit in for the value in access_token_validity, defaults to hours. - // +kubebuilder:validation:Optional - accessToken?: null | string @go(AccessToken,*string) - - // Time unit in for the value in id_token_validity, defaults to hours. - // +kubebuilder:validation:Optional - idToken?: null | string @go(IDToken,*string) - - // Time unit in for the value in refresh_token_validity, defaults to days. - // +kubebuilder:validation:Optional - refreshToken?: null | string @go(RefreshToken,*string) -} - -#UserPoolClientInitParameters: { - // Time limit, between 5 minutes and 1 day, after which the access token is no longer valid and cannot be used. - // By default, the unit is hours. - // The unit can be overridden by a value in token_validity_units.access_token. - accessTokenValidity?: null | float64 @go(AccessTokenValidity,*float64) - - // List of allowed OAuth flows (code, implicit, client_credentials). - allowedOauthFlows?: [...null | string] @go(AllowedOauthFlows,[]*string) - - // Whether the client is allowed to follow the OAuth protocol when interacting with Cognito user pools. - allowedOauthFlowsUserPoolClient?: null | bool @go(AllowedOauthFlowsUserPoolClient,*bool) - - // List of allowed OAuth scopes (phone, email, openid, profile, and aws.cognito.signin.user.admin). - allowedOauthScopes?: [...null | string] @go(AllowedOauthScopes,[]*string) - - // Configuration block for Amazon Pinpoint analytics for collecting metrics for this user pool. Detailed below. - analyticsConfiguration?: [...#AnalyticsConfigurationInitParameters] @go(AnalyticsConfiguration,[]AnalyticsConfigurationInitParameters) - - // Amazon Cognito creates a session token for each API request in an authentication flow. AuthSessionValidity is the duration, in minutes, of that session token. Your user pool native user must respond to each authentication challenge before the session expires. Valid values between 3 and 15. Default value is 3. - authSessionValidity?: null | float64 @go(AuthSessionValidity,*float64) - - // List of allowed callback URLs for the identity providers. - callbackUrls?: [...null | string] @go(CallbackUrls,[]*string) - - // Default redirect URI. Must be in the list of callback URLs. - defaultRedirectUri?: null | string @go(DefaultRedirectURI,*string) - - // Activates the propagation of additional user context data. - enablePropagateAdditionalUserContextData?: null | bool @go(EnablePropagateAdditionalUserContextData,*bool) - - // Enables or disables token revocation. - enableTokenRevocation?: null | bool @go(EnableTokenRevocation,*bool) - - // List of authentication flows (ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, USER_PASSWORD_AUTH, ALLOW_ADMIN_USER_PASSWORD_AUTH, ALLOW_CUSTOM_AUTH, ALLOW_USER_PASSWORD_AUTH, ALLOW_USER_SRP_AUTH, ALLOW_REFRESH_TOKEN_AUTH). - explicitAuthFlows?: [...null | string] @go(ExplicitAuthFlows,[]*string) - - // Should an application secret be generated. - generateSecret?: null | bool @go(GenerateSecret,*bool) - - // Time limit, between 5 minutes and 1 day, after which the ID token is no longer valid and cannot be used. - // By default, the unit is hours. - // The unit can be overridden by a value in token_validity_units.id_token. - idTokenValidity?: null | float64 @go(IDTokenValidity,*float64) - - // List of allowed logout URLs for the identity providers. - logoutUrls?: [...null | string] @go(LogoutUrls,[]*string) - - // Name of the application client. - name?: null | string @go(Name,*string) - - // Choose which errors and responses are returned by Cognito APIs during authentication, account confirmation, and password recovery when the user does not exist in the user pool. When set to ENABLED and the user does not exist, authentication returns an error indicating either the username or password was incorrect, and account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to LEGACY, those APIs will return a UserNotFoundException exception if the user does not exist in the user pool. - preventUserExistenceErrors?: null | string @go(PreventUserExistenceErrors,*string) - - // List of user pool attributes the application client can read from. - readAttributes?: [...null | string] @go(ReadAttributes,[]*string) - - // Time limit, between 60 minutes and 10 years, after which the refresh token is no longer valid and cannot be used. - // By default, the unit is days. - // The unit can be overridden by a value in token_validity_units.refresh_token. - refreshTokenValidity?: null | float64 @go(RefreshTokenValidity,*float64) - - // List of provider names for the identity providers that are supported on this client. Uses the provider_name attribute of aws_cognito_identity_provider resource(s), or the equivalent string(s). - supportedIdentityProviders?: [...null | string] @go(SupportedIdentityProviders,[]*string) - - // Configuration block for units in which the validity times are represented in. Detailed below. - tokenValidityUnits?: [...#TokenValidityUnitsInitParameters] @go(TokenValidityUnits,[]TokenValidityUnitsInitParameters) - - // List of user pool attributes the application client can write to. - writeAttributes?: [...null | string] @go(WriteAttributes,[]*string) -} - -#UserPoolClientObservation: { - // Time limit, between 5 minutes and 1 day, after which the access token is no longer valid and cannot be used. - // By default, the unit is hours. - // The unit can be overridden by a value in token_validity_units.access_token. - accessTokenValidity?: null | float64 @go(AccessTokenValidity,*float64) - - // List of allowed OAuth flows (code, implicit, client_credentials). - allowedOauthFlows?: [...null | string] @go(AllowedOauthFlows,[]*string) - - // Whether the client is allowed to follow the OAuth protocol when interacting with Cognito user pools. - allowedOauthFlowsUserPoolClient?: null | bool @go(AllowedOauthFlowsUserPoolClient,*bool) - - // List of allowed OAuth scopes (phone, email, openid, profile, and aws.cognito.signin.user.admin). - allowedOauthScopes?: [...null | string] @go(AllowedOauthScopes,[]*string) - - // Configuration block for Amazon Pinpoint analytics for collecting metrics for this user pool. Detailed below. - analyticsConfiguration?: [...#AnalyticsConfigurationObservation] @go(AnalyticsConfiguration,[]AnalyticsConfigurationObservation) - - // Amazon Cognito creates a session token for each API request in an authentication flow. AuthSessionValidity is the duration, in minutes, of that session token. Your user pool native user must respond to each authentication challenge before the session expires. Valid values between 3 and 15. Default value is 3. - authSessionValidity?: null | float64 @go(AuthSessionValidity,*float64) - - // List of allowed callback URLs for the identity providers. - callbackUrls?: [...null | string] @go(CallbackUrls,[]*string) - - // Default redirect URI. Must be in the list of callback URLs. - defaultRedirectUri?: null | string @go(DefaultRedirectURI,*string) - - // Activates the propagation of additional user context data. - enablePropagateAdditionalUserContextData?: null | bool @go(EnablePropagateAdditionalUserContextData,*bool) - - // Enables or disables token revocation. - enableTokenRevocation?: null | bool @go(EnableTokenRevocation,*bool) - - // List of authentication flows (ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, USER_PASSWORD_AUTH, ALLOW_ADMIN_USER_PASSWORD_AUTH, ALLOW_CUSTOM_AUTH, ALLOW_USER_PASSWORD_AUTH, ALLOW_USER_SRP_AUTH, ALLOW_REFRESH_TOKEN_AUTH). - explicitAuthFlows?: [...null | string] @go(ExplicitAuthFlows,[]*string) - - // Should an application secret be generated. - generateSecret?: null | bool @go(GenerateSecret,*bool) - - // ID of the user pool client. - id?: null | string @go(ID,*string) - - // Time limit, between 5 minutes and 1 day, after which the ID token is no longer valid and cannot be used. - // By default, the unit is hours. - // The unit can be overridden by a value in token_validity_units.id_token. - idTokenValidity?: null | float64 @go(IDTokenValidity,*float64) - - // List of allowed logout URLs for the identity providers. - logoutUrls?: [...null | string] @go(LogoutUrls,[]*string) - - // Name of the application client. - name?: null | string @go(Name,*string) - - // Choose which errors and responses are returned by Cognito APIs during authentication, account confirmation, and password recovery when the user does not exist in the user pool. When set to ENABLED and the user does not exist, authentication returns an error indicating either the username or password was incorrect, and account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to LEGACY, those APIs will return a UserNotFoundException exception if the user does not exist in the user pool. - preventUserExistenceErrors?: null | string @go(PreventUserExistenceErrors,*string) - - // List of user pool attributes the application client can read from. - readAttributes?: [...null | string] @go(ReadAttributes,[]*string) - - // Time limit, between 60 minutes and 10 years, after which the refresh token is no longer valid and cannot be used. - // By default, the unit is days. - // The unit can be overridden by a value in token_validity_units.refresh_token. - refreshTokenValidity?: null | float64 @go(RefreshTokenValidity,*float64) - - // List of provider names for the identity providers that are supported on this client. Uses the provider_name attribute of aws_cognito_identity_provider resource(s), or the equivalent string(s). - supportedIdentityProviders?: [...null | string] @go(SupportedIdentityProviders,[]*string) - - // Configuration block for units in which the validity times are represented in. Detailed below. - tokenValidityUnits?: [...#TokenValidityUnitsObservation] @go(TokenValidityUnits,[]TokenValidityUnitsObservation) - - // User pool the client belongs to. - userPoolId?: null | string @go(UserPoolID,*string) - - // List of user pool attributes the application client can write to. - writeAttributes?: [...null | string] @go(WriteAttributes,[]*string) -} - -#UserPoolClientParameters: { - // Time limit, between 5 minutes and 1 day, after which the access token is no longer valid and cannot be used. - // By default, the unit is hours. - // The unit can be overridden by a value in token_validity_units.access_token. - // +kubebuilder:validation:Optional - accessTokenValidity?: null | float64 @go(AccessTokenValidity,*float64) - - // List of allowed OAuth flows (code, implicit, client_credentials). - // +kubebuilder:validation:Optional - allowedOauthFlows?: [...null | string] @go(AllowedOauthFlows,[]*string) - - // Whether the client is allowed to follow the OAuth protocol when interacting with Cognito user pools. - // +kubebuilder:validation:Optional - allowedOauthFlowsUserPoolClient?: null | bool @go(AllowedOauthFlowsUserPoolClient,*bool) - - // List of allowed OAuth scopes (phone, email, openid, profile, and aws.cognito.signin.user.admin). - // +kubebuilder:validation:Optional - allowedOauthScopes?: [...null | string] @go(AllowedOauthScopes,[]*string) - - // Configuration block for Amazon Pinpoint analytics for collecting metrics for this user pool. Detailed below. - // +kubebuilder:validation:Optional - analyticsConfiguration?: [...#AnalyticsConfigurationParameters] @go(AnalyticsConfiguration,[]AnalyticsConfigurationParameters) - - // Amazon Cognito creates a session token for each API request in an authentication flow. AuthSessionValidity is the duration, in minutes, of that session token. Your user pool native user must respond to each authentication challenge before the session expires. Valid values between 3 and 15. Default value is 3. - // +kubebuilder:validation:Optional - authSessionValidity?: null | float64 @go(AuthSessionValidity,*float64) - - // List of allowed callback URLs for the identity providers. - // +kubebuilder:validation:Optional - callbackUrls?: [...null | string] @go(CallbackUrls,[]*string) - - // Default redirect URI. Must be in the list of callback URLs. - // +kubebuilder:validation:Optional - defaultRedirectUri?: null | string @go(DefaultRedirectURI,*string) - - // Activates the propagation of additional user context data. - // +kubebuilder:validation:Optional - enablePropagateAdditionalUserContextData?: null | bool @go(EnablePropagateAdditionalUserContextData,*bool) - - // Enables or disables token revocation. - // +kubebuilder:validation:Optional - enableTokenRevocation?: null | bool @go(EnableTokenRevocation,*bool) - - // List of authentication flows (ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, USER_PASSWORD_AUTH, ALLOW_ADMIN_USER_PASSWORD_AUTH, ALLOW_CUSTOM_AUTH, ALLOW_USER_PASSWORD_AUTH, ALLOW_USER_SRP_AUTH, ALLOW_REFRESH_TOKEN_AUTH). - // +kubebuilder:validation:Optional - explicitAuthFlows?: [...null | string] @go(ExplicitAuthFlows,[]*string) - - // Should an application secret be generated. - // +kubebuilder:validation:Optional - generateSecret?: null | bool @go(GenerateSecret,*bool) - - // Time limit, between 5 minutes and 1 day, after which the ID token is no longer valid and cannot be used. - // By default, the unit is hours. - // The unit can be overridden by a value in token_validity_units.id_token. - // +kubebuilder:validation:Optional - idTokenValidity?: null | float64 @go(IDTokenValidity,*float64) - - // List of allowed logout URLs for the identity providers. - // +kubebuilder:validation:Optional - logoutUrls?: [...null | string] @go(LogoutUrls,[]*string) - - // Name of the application client. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Choose which errors and responses are returned by Cognito APIs during authentication, account confirmation, and password recovery when the user does not exist in the user pool. When set to ENABLED and the user does not exist, authentication returns an error indicating either the username or password was incorrect, and account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to LEGACY, those APIs will return a UserNotFoundException exception if the user does not exist in the user pool. - // +kubebuilder:validation:Optional - preventUserExistenceErrors?: null | string @go(PreventUserExistenceErrors,*string) - - // List of user pool attributes the application client can read from. - // +kubebuilder:validation:Optional - readAttributes?: [...null | string] @go(ReadAttributes,[]*string) - - // Time limit, between 60 minutes and 10 years, after which the refresh token is no longer valid and cannot be used. - // By default, the unit is days. - // The unit can be overridden by a value in token_validity_units.refresh_token. - // +kubebuilder:validation:Optional - refreshTokenValidity?: null | float64 @go(RefreshTokenValidity,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // List of provider names for the identity providers that are supported on this client. Uses the provider_name attribute of aws_cognito_identity_provider resource(s), or the equivalent string(s). - // +kubebuilder:validation:Optional - supportedIdentityProviders?: [...null | string] @go(SupportedIdentityProviders,[]*string) - - // Configuration block for units in which the validity times are represented in. Detailed below. - // +kubebuilder:validation:Optional - tokenValidityUnits?: [...#TokenValidityUnitsParameters] @go(TokenValidityUnits,[]TokenValidityUnitsParameters) - - // User pool the client belongs to. - // +crossplane:generate:reference:type=UserPool - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) - - // Reference to a UserPool to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdRef?: null | v1.#Reference @go(UserPoolIDRef,*v1.Reference) - - // Selector for a UserPool to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdSelector?: null | v1.#Selector @go(UserPoolIDSelector,*v1.Selector) - - // List of user pool attributes the application client can write to. - // +kubebuilder:validation:Optional - writeAttributes?: [...null | string] @go(WriteAttributes,[]*string) -} - -// UserPoolClientSpec defines the desired state of UserPoolClient -#UserPoolClientSpec: { - v1.#ResourceSpec - forProvider: #UserPoolClientParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserPoolClientInitParameters @go(InitProvider) -} - -// UserPoolClientStatus defines the observed state of UserPoolClient. -#UserPoolClientStatus: { - v1.#ResourceStatus - atProvider?: #UserPoolClientObservation @go(AtProvider) -} - -// UserPoolClient is the Schema for the UserPoolClients API. Provides a Cognito User Pool Client resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserPoolClient: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #UserPoolClientSpec @go(Spec) - status?: #UserPoolClientStatus @go(Status) -} - -// UserPoolClientList contains a list of UserPoolClients -#UserPoolClientList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserPoolClient] @go(Items,[]UserPoolClient) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_userpooldomain_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_userpooldomain_types_go_gen.cue deleted file mode 100644 index ed57ece..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_userpooldomain_types_go_gen.cue +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserPoolDomainInitParameters: { - // For custom domains, this is the fully-qualified domain name, such as auth.example.com. For Amazon Cognito prefix domains, this is the prefix alone, such as auth. - domain?: null | string @go(Domain,*string) -} - -#UserPoolDomainObservation: { - // The AWS account ID for the user pool owner. - awsAccountId?: null | string @go(AwsAccountID,*string) - - // The ARN of an ISSUED ACM certificate in us-east-1 for a custom domain. - certificateArn?: null | string @go(CertificateArn,*string) - - // The Amazon CloudFront endpoint (e.g. dpp0gtxikpq3y.cloudfront.net) that you use as the target of the alias that you set up with your Domain Name Service (DNS) provider. - cloudfrontDistribution?: null | string @go(CloudfrontDistribution,*string) - - // The URL of the CloudFront distribution. This is required to generate the ALIAS aws_route53_record - cloudfrontDistributionArn?: null | string @go(CloudfrontDistributionArn,*string) - - // The Route 53 hosted zone ID of the CloudFront distribution. - cloudfrontDistributionZoneId?: null | string @go(CloudfrontDistributionZoneID,*string) - - // For custom domains, this is the fully-qualified domain name, such as auth.example.com. For Amazon Cognito prefix domains, this is the prefix alone, such as auth. - domain?: null | string @go(Domain,*string) - id?: null | string @go(ID,*string) - - // The S3 bucket where the static files for this domain are stored. - s3Bucket?: null | string @go(S3Bucket,*string) - - // The user pool ID. - userPoolId?: null | string @go(UserPoolID,*string) - - // The app version. - version?: null | string @go(Version,*string) -} - -#UserPoolDomainParameters: { - // The ARN of an ISSUED ACM certificate in us-east-1 for a custom domain. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/acm/v1beta1.Certificate - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - certificateArn?: null | string @go(CertificateArn,*string) - - // Reference to a Certificate in acm to populate certificateArn. - // +kubebuilder:validation:Optional - certificateArnRef?: null | v1.#Reference @go(CertificateArnRef,*v1.Reference) - - // Selector for a Certificate in acm to populate certificateArn. - // +kubebuilder:validation:Optional - certificateArnSelector?: null | v1.#Selector @go(CertificateArnSelector,*v1.Selector) - - // For custom domains, this is the fully-qualified domain name, such as auth.example.com. For Amazon Cognito prefix domains, this is the prefix alone, such as auth. - // +kubebuilder:validation:Optional - domain?: null | string @go(Domain,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The user pool ID. - // +crossplane:generate:reference:type=UserPool - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) - - // Reference to a UserPool to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdRef?: null | v1.#Reference @go(UserPoolIDRef,*v1.Reference) - - // Selector for a UserPool to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdSelector?: null | v1.#Selector @go(UserPoolIDSelector,*v1.Selector) -} - -// UserPoolDomainSpec defines the desired state of UserPoolDomain -#UserPoolDomainSpec: { - v1.#ResourceSpec - forProvider: #UserPoolDomainParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserPoolDomainInitParameters @go(InitProvider) -} - -// UserPoolDomainStatus defines the observed state of UserPoolDomain. -#UserPoolDomainStatus: { - v1.#ResourceStatus - atProvider?: #UserPoolDomainObservation @go(AtProvider) -} - -// UserPoolDomain is the Schema for the UserPoolDomains API. Provides a Cognito User Pool Domain resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserPoolDomain: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.domain) || (has(self.initProvider) && has(self.initProvider.domain))",message="spec.forProvider.domain is a required parameter" - spec: #UserPoolDomainSpec @go(Spec) - status?: #UserPoolDomainStatus @go(Status) -} - -// UserPoolDomainList contains a list of UserPoolDomains -#UserPoolDomainList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserPoolDomain] @go(Items,[]UserPoolDomain) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_userpooluicustomization_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_userpooluicustomization_types_go_gen.cue deleted file mode 100644 index e29241d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cognitoidp/v1beta1/zz_userpooluicustomization_types_go_gen.cue +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cognitoidp/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserPoolUICustomizationInitParameters: { - // The CSS values in the UI customization, provided as a String. At least one of css or image_file is required. - css?: null | string @go(CSS,*string) - - // The uploaded logo image for the UI customization, provided as a base64-encoded String. Drift detection is not possible for this argument. At least one of css or image_file is required. - imageFile?: null | string @go(ImageFile,*string) -} - -#UserPoolUICustomizationObservation: { - // The CSS values in the UI customization, provided as a String. At least one of css or image_file is required. - css?: null | string @go(CSS,*string) - - // The CSS version number. - cssVersion?: null | string @go(CSSVersion,*string) - - // The client ID for the client app. Defaults to ALL. If ALL is specified, the css and/or image_file settings will be used for every client that has no UI customization set previously. - clientId?: null | string @go(ClientID,*string) - - // The creation date in RFC3339 format for the UI customization. - creationDate?: null | string @go(CreationDate,*string) - id?: null | string @go(ID,*string) - - // The uploaded logo image for the UI customization, provided as a base64-encoded String. Drift detection is not possible for this argument. At least one of css or image_file is required. - imageFile?: null | string @go(ImageFile,*string) - - // The logo image URL for the UI customization. - imageUrl?: null | string @go(ImageURL,*string) - - // The last-modified date in RFC3339 format for the UI customization. - lastModifiedDate?: null | string @go(LastModifiedDate,*string) - - // The user pool ID for the user pool. - userPoolId?: null | string @go(UserPoolID,*string) -} - -#UserPoolUICustomizationParameters: { - // The CSS values in the UI customization, provided as a String. At least one of css or image_file is required. - // +kubebuilder:validation:Optional - css?: null | string @go(CSS,*string) - - // The client ID for the client app. Defaults to ALL. If ALL is specified, the css and/or image_file settings will be used for every client that has no UI customization set previously. - // +crossplane:generate:reference:type=UserPoolClient - // +kubebuilder:validation:Optional - clientId?: null | string @go(ClientID,*string) - - // Reference to a UserPoolClient to populate clientId. - // +kubebuilder:validation:Optional - clientIdRef?: null | v1.#Reference @go(ClientIDRef,*v1.Reference) - - // Selector for a UserPoolClient to populate clientId. - // +kubebuilder:validation:Optional - clientIdSelector?: null | v1.#Selector @go(ClientIDSelector,*v1.Selector) - - // The uploaded logo image for the UI customization, provided as a base64-encoded String. Drift detection is not possible for this argument. At least one of css or image_file is required. - // +kubebuilder:validation:Optional - imageFile?: null | string @go(ImageFile,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The user pool ID for the user pool. - // +crossplane:generate:reference:type=UserPool - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) - - // Reference to a UserPool to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdRef?: null | v1.#Reference @go(UserPoolIDRef,*v1.Reference) - - // Selector for a UserPool to populate userPoolId. - // +kubebuilder:validation:Optional - userPoolIdSelector?: null | v1.#Selector @go(UserPoolIDSelector,*v1.Selector) -} - -// UserPoolUICustomizationSpec defines the desired state of UserPoolUICustomization -#UserPoolUICustomizationSpec: { - v1.#ResourceSpec - forProvider: #UserPoolUICustomizationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserPoolUICustomizationInitParameters @go(InitProvider) -} - -// UserPoolUICustomizationStatus defines the observed state of UserPoolUICustomization. -#UserPoolUICustomizationStatus: { - v1.#ResourceStatus - atProvider?: #UserPoolUICustomizationObservation @go(AtProvider) -} - -// UserPoolUICustomization is the Schema for the UserPoolUICustomizations API. Provides a Cognito User Pool UI Customization resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserPoolUICustomization: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #UserPoolUICustomizationSpec @go(Spec) - status?: #UserPoolUICustomizationStatus @go(Status) -} - -// UserPoolUICustomizationList contains a list of UserPoolUICustomizations -#UserPoolUICustomizationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserPoolUICustomization] @go(Items,[]UserPoolUICustomization) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_awsconfigurationrecorderstatus_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_awsconfigurationrecorderstatus_types_go_gen.cue deleted file mode 100644 index 8435ed5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_awsconfigurationrecorderstatus_types_go_gen.cue +++ /dev/null @@ -1,80 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/configservice/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AWSConfigurationRecorderStatusInitParameters: { - // Whether the configuration recorder should be enabled or disabled. - isEnabled?: null | bool @go(IsEnabled,*bool) -} - -#AWSConfigurationRecorderStatusObservation: { - id?: null | string @go(ID,*string) - - // Whether the configuration recorder should be enabled or disabled. - isEnabled?: null | bool @go(IsEnabled,*bool) -} - -#AWSConfigurationRecorderStatusParameters: { - // Whether the configuration recorder should be enabled or disabled. - // +kubebuilder:validation:Optional - isEnabled?: null | bool @go(IsEnabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// AWSConfigurationRecorderStatusSpec defines the desired state of AWSConfigurationRecorderStatus -#AWSConfigurationRecorderStatusSpec: { - v1.#ResourceSpec - forProvider: #AWSConfigurationRecorderStatusParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AWSConfigurationRecorderStatusInitParameters @go(InitProvider) -} - -// AWSConfigurationRecorderStatusStatus defines the observed state of AWSConfigurationRecorderStatus. -#AWSConfigurationRecorderStatusStatus: { - v1.#ResourceStatus - atProvider?: #AWSConfigurationRecorderStatusObservation @go(AtProvider) -} - -// AWSConfigurationRecorderStatus is the Schema for the AWSConfigurationRecorderStatuss API. Manages status of an AWS Config Configuration Recorder. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AWSConfigurationRecorderStatus: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.isEnabled) || (has(self.initProvider) && has(self.initProvider.isEnabled))",message="spec.forProvider.isEnabled is a required parameter" - spec: #AWSConfigurationRecorderStatusSpec @go(Spec) - status?: #AWSConfigurationRecorderStatusStatus @go(Status) -} - -// AWSConfigurationRecorderStatusList contains a list of AWSConfigurationRecorderStatuss -#AWSConfigurationRecorderStatusList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AWSConfigurationRecorderStatus] @go(Items,[]AWSConfigurationRecorderStatus) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_configrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_configrule_types_go_gen.cue deleted file mode 100644 index 2724fab..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_configrule_types_go_gen.cue +++ /dev/null @@ -1,309 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/configservice/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigRuleInitParameters: { - // Description of the rule - description?: null | string @go(Description,*string) - - // A string in JSON format that is passed to the AWS Config rule Lambda function. - inputParameters?: null | string @go(InputParameters,*string) - - // The maximum frequency with which AWS Config runs evaluations for a rule. - maximumExecutionFrequency?: null | string @go(MaximumExecutionFrequency,*string) - - // Scope defines which resources can trigger an evaluation for the rule. See Source Below. - scope?: [...#ScopeInitParameters] @go(Scope,[]ScopeInitParameters) - - // Source specifies the rule owner, the rule identifier, and the notifications that cause the function to evaluate your AWS resources. See Scope Below. - source?: [...#SourceInitParameters] @go(Source,[]SourceInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ConfigRuleObservation: { - // The ARN of the config rule - arn?: null | string @go(Arn,*string) - - // Description of the rule - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // A string in JSON format that is passed to the AWS Config rule Lambda function. - inputParameters?: null | string @go(InputParameters,*string) - - // The maximum frequency with which AWS Config runs evaluations for a rule. - maximumExecutionFrequency?: null | string @go(MaximumExecutionFrequency,*string) - - // The ID of the config rule - ruleId?: null | string @go(RuleID,*string) - - // Scope defines which resources can trigger an evaluation for the rule. See Source Below. - scope?: [...#ScopeObservation] @go(Scope,[]ScopeObservation) - - // Source specifies the rule owner, the rule identifier, and the notifications that cause the function to evaluate your AWS resources. See Scope Below. - source?: [...#SourceObservation] @go(Source,[]SourceObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ConfigRuleParameters: { - // Description of the rule - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A string in JSON format that is passed to the AWS Config rule Lambda function. - // +kubebuilder:validation:Optional - inputParameters?: null | string @go(InputParameters,*string) - - // The maximum frequency with which AWS Config runs evaluations for a rule. - // +kubebuilder:validation:Optional - maximumExecutionFrequency?: null | string @go(MaximumExecutionFrequency,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Scope defines which resources can trigger an evaluation for the rule. See Source Below. - // +kubebuilder:validation:Optional - scope?: [...#ScopeParameters] @go(Scope,[]ScopeParameters) - - // Source specifies the rule owner, the rule identifier, and the notifications that cause the function to evaluate your AWS resources. See Scope Below. - // +kubebuilder:validation:Optional - source?: [...#SourceParameters] @go(Source,[]SourceParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CustomPolicyDetailsInitParameters: { - // The boolean expression for enabling debug logging for your Config Custom Policy rule. The default value is false. - enableDebugLogDelivery?: null | bool @go(EnableDebugLogDelivery,*bool) - - // The runtime system for your Config Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by Config Custom Policy rules. For more information about Guard, see the Guard GitHub Repository. - policyRuntime?: null | string @go(PolicyRuntime,*string) - - // The policy definition containing the logic for your Config Custom Policy rule. - policyText?: null | string @go(PolicyText,*string) -} - -#CustomPolicyDetailsObservation: { - // The boolean expression for enabling debug logging for your Config Custom Policy rule. The default value is false. - enableDebugLogDelivery?: null | bool @go(EnableDebugLogDelivery,*bool) - - // The runtime system for your Config Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by Config Custom Policy rules. For more information about Guard, see the Guard GitHub Repository. - policyRuntime?: null | string @go(PolicyRuntime,*string) - - // The policy definition containing the logic for your Config Custom Policy rule. - policyText?: null | string @go(PolicyText,*string) -} - -#CustomPolicyDetailsParameters: { - // The boolean expression for enabling debug logging for your Config Custom Policy rule. The default value is false. - // +kubebuilder:validation:Optional - enableDebugLogDelivery?: null | bool @go(EnableDebugLogDelivery,*bool) - - // The runtime system for your Config Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by Config Custom Policy rules. For more information about Guard, see the Guard GitHub Repository. - // +kubebuilder:validation:Optional - policyRuntime?: null | string @go(PolicyRuntime,*string) - - // The policy definition containing the logic for your Config Custom Policy rule. - // +kubebuilder:validation:Optional - policyText?: null | string @go(PolicyText,*string) -} - -#ScopeInitParameters: { - // The IDs of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for compliance_resource_types. - complianceResourceId?: null | string @go(ComplianceResourceID,*string) - - // A list of resource types of only those AWS resources that you want to trigger an evaluation for the ruleE.g., AWS::EC2::Instance. You can only specify one type if you also specify a resource ID for compliance_resource_id. See relevant part of AWS Docs for available types. - complianceResourceTypes?: [...null | string] @go(ComplianceResourceTypes,[]*string) - - // The tag key that is applied to only those AWS resources that you want you want to trigger an evaluation for the rule. - tagKey?: null | string @go(TagKey,*string) - - // The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule. - tagValue?: null | string @go(TagValue,*string) -} - -#ScopeObservation: { - // The IDs of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for compliance_resource_types. - complianceResourceId?: null | string @go(ComplianceResourceID,*string) - - // A list of resource types of only those AWS resources that you want to trigger an evaluation for the ruleE.g., AWS::EC2::Instance. You can only specify one type if you also specify a resource ID for compliance_resource_id. See relevant part of AWS Docs for available types. - complianceResourceTypes?: [...null | string] @go(ComplianceResourceTypes,[]*string) - - // The tag key that is applied to only those AWS resources that you want you want to trigger an evaluation for the rule. - tagKey?: null | string @go(TagKey,*string) - - // The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule. - tagValue?: null | string @go(TagValue,*string) -} - -#ScopeParameters: { - // The IDs of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for compliance_resource_types. - // +kubebuilder:validation:Optional - complianceResourceId?: null | string @go(ComplianceResourceID,*string) - - // A list of resource types of only those AWS resources that you want to trigger an evaluation for the ruleE.g., AWS::EC2::Instance. You can only specify one type if you also specify a resource ID for compliance_resource_id. See relevant part of AWS Docs for available types. - // +kubebuilder:validation:Optional - complianceResourceTypes?: [...null | string] @go(ComplianceResourceTypes,[]*string) - - // The tag key that is applied to only those AWS resources that you want you want to trigger an evaluation for the rule. - // +kubebuilder:validation:Optional - tagKey?: null | string @go(TagKey,*string) - - // The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule. - // +kubebuilder:validation:Optional - tagValue?: null | string @go(TagValue,*string) -} - -#SourceDetailInitParameters: { - // The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWSresources. This defaults to aws.config and is the only valid value. - eventSource?: null | string @go(EventSource,*string) - - // The maximum frequency with which AWS Config runs evaluations for a rule. - maximumExecutionFrequency?: null | string @go(MaximumExecutionFrequency,*string) - - // The type of notification that triggers AWS Config to run an evaluation for a rule. You canspecify the following notification types: - messageType?: null | string @go(MessageType,*string) -} - -#SourceDetailObservation: { - // The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWSresources. This defaults to aws.config and is the only valid value. - eventSource?: null | string @go(EventSource,*string) - - // The maximum frequency with which AWS Config runs evaluations for a rule. - maximumExecutionFrequency?: null | string @go(MaximumExecutionFrequency,*string) - - // The type of notification that triggers AWS Config to run an evaluation for a rule. You canspecify the following notification types: - messageType?: null | string @go(MessageType,*string) -} - -#SourceDetailParameters: { - // The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWSresources. This defaults to aws.config and is the only valid value. - // +kubebuilder:validation:Optional - eventSource?: null | string @go(EventSource,*string) - - // The maximum frequency with which AWS Config runs evaluations for a rule. - // +kubebuilder:validation:Optional - maximumExecutionFrequency?: null | string @go(MaximumExecutionFrequency,*string) - - // The type of notification that triggers AWS Config to run an evaluation for a rule. You canspecify the following notification types: - // +kubebuilder:validation:Optional - messageType?: null | string @go(MessageType,*string) -} - -#SourceInitParameters: { - // Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to CUSTOM_POLICY. See Custom Policy Details Below. - customPolicyDetails?: [...#CustomPolicyDetailsInitParameters] @go(CustomPolicyDetails,[]CustomPolicyDetailsInitParameters) - - // Indicates whether AWS or the customer owns and manages the AWS Config rule. Valid values are AWS, CUSTOM_LAMBDA or CUSTOM_POLICY. For more information about managed rules, see the AWS Config Managed Rules documentation. For more information about custom rules, see the AWS Config Custom Rules documentation. Custom Lambda Functions require permissions to allow the AWS Config service to invoke them, e.g., via the aws_lambda_permission resource. - owner?: null | string @go(Owner,*string) - - // Provides the source and type of the event that causes AWS Config to evaluate your AWS resources. Only valid if owner is CUSTOM_LAMBDA or CUSTOM_POLICY. See Source Detail Below. - sourceDetail?: [...#SourceDetailInitParameters] @go(SourceDetail,[]SourceDetailInitParameters) -} - -#SourceObservation: { - // Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to CUSTOM_POLICY. See Custom Policy Details Below. - customPolicyDetails?: [...#CustomPolicyDetailsObservation] @go(CustomPolicyDetails,[]CustomPolicyDetailsObservation) - - // Indicates whether AWS or the customer owns and manages the AWS Config rule. Valid values are AWS, CUSTOM_LAMBDA or CUSTOM_POLICY. For more information about managed rules, see the AWS Config Managed Rules documentation. For more information about custom rules, see the AWS Config Custom Rules documentation. Custom Lambda Functions require permissions to allow the AWS Config service to invoke them, e.g., via the aws_lambda_permission resource. - owner?: null | string @go(Owner,*string) - - // Provides the source and type of the event that causes AWS Config to evaluate your AWS resources. Only valid if owner is CUSTOM_LAMBDA or CUSTOM_POLICY. See Source Detail Below. - sourceDetail?: [...#SourceDetailObservation] @go(SourceDetail,[]SourceDetailObservation) - - // For AWS Config managed rules, a predefined identifier, e.g IAM_PASSWORD_POLICY. For custom Lambda rules, the identifier is the ARN of the Lambda Function, such as arn:aws:lambda:us-east-1:123456789012:function:custom_rule_name or the arn attribute of the aws_lambda_function resource. - sourceIdentifier?: null | string @go(SourceIdentifier,*string) -} - -#SourceParameters: { - // Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to CUSTOM_POLICY. See Custom Policy Details Below. - // +kubebuilder:validation:Optional - customPolicyDetails?: [...#CustomPolicyDetailsParameters] @go(CustomPolicyDetails,[]CustomPolicyDetailsParameters) - - // Indicates whether AWS or the customer owns and manages the AWS Config rule. Valid values are AWS, CUSTOM_LAMBDA or CUSTOM_POLICY. For more information about managed rules, see the AWS Config Managed Rules documentation. For more information about custom rules, see the AWS Config Custom Rules documentation. Custom Lambda Functions require permissions to allow the AWS Config service to invoke them, e.g., via the aws_lambda_permission resource. - // +kubebuilder:validation:Optional - owner?: null | string @go(Owner,*string) - - // Provides the source and type of the event that causes AWS Config to evaluate your AWS resources. Only valid if owner is CUSTOM_LAMBDA or CUSTOM_POLICY. See Source Detail Below. - // +kubebuilder:validation:Optional - sourceDetail?: [...#SourceDetailParameters] @go(SourceDetail,[]SourceDetailParameters) - - // For AWS Config managed rules, a predefined identifier, e.g IAM_PASSWORD_POLICY. For custom Lambda rules, the identifier is the ARN of the Lambda Function, such as arn:aws:lambda:us-east-1:123456789012:function:custom_rule_name or the arn attribute of the aws_lambda_function resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - sourceIdentifier?: null | string @go(SourceIdentifier,*string) - - // Reference to a Function in lambda to populate sourceIdentifier. - // +kubebuilder:validation:Optional - sourceIdentifierRef?: null | v1.#Reference @go(SourceIdentifierRef,*v1.Reference) - - // Selector for a Function in lambda to populate sourceIdentifier. - // +kubebuilder:validation:Optional - sourceIdentifierSelector?: null | v1.#Selector @go(SourceIdentifierSelector,*v1.Selector) -} - -// ConfigRuleSpec defines the desired state of ConfigRule -#ConfigRuleSpec: { - v1.#ResourceSpec - forProvider: #ConfigRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConfigRuleInitParameters @go(InitProvider) -} - -// ConfigRuleStatus defines the observed state of ConfigRule. -#ConfigRuleStatus: { - v1.#ResourceStatus - atProvider?: #ConfigRuleObservation @go(AtProvider) -} - -// ConfigRule is the Schema for the ConfigRules API. Provides an AWS Config Rule. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ConfigRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.source) || (has(self.initProvider) && has(self.initProvider.source))",message="spec.forProvider.source is a required parameter" - spec: #ConfigRuleSpec @go(Spec) - status?: #ConfigRuleStatus @go(Status) -} - -// ConfigRuleList contains a list of ConfigRules -#ConfigRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConfigRule] @go(Items,[]ConfigRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_configurationaggregator_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_configurationaggregator_types_go_gen.cue deleted file mode 100644 index e44e25b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_configurationaggregator_types_go_gen.cue +++ /dev/null @@ -1,182 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/configservice/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountAggregationSourceInitParameters: { - // List of 12-digit account IDs of the account(s) being aggregated. - accountIds?: [...null | string] @go(AccountIds,[]*string) - - // If true, aggregate existing AWS Config regions and future regions. - allRegions?: null | bool @go(AllRegions,*bool) - - // List of source regions being aggregated. - regions?: [...null | string] @go(Regions,[]*string) -} - -#AccountAggregationSourceObservation: { - // List of 12-digit account IDs of the account(s) being aggregated. - accountIds?: [...null | string] @go(AccountIds,[]*string) - - // If true, aggregate existing AWS Config regions and future regions. - allRegions?: null | bool @go(AllRegions,*bool) - - // List of source regions being aggregated. - regions?: [...null | string] @go(Regions,[]*string) -} - -#AccountAggregationSourceParameters: { - // List of 12-digit account IDs of the account(s) being aggregated. - // +kubebuilder:validation:Optional - accountIds: [...null | string] @go(AccountIds,[]*string) - - // If true, aggregate existing AWS Config regions and future regions. - // +kubebuilder:validation:Optional - allRegions?: null | bool @go(AllRegions,*bool) - - // List of source regions being aggregated. - // +kubebuilder:validation:Optional - regions?: [...null | string] @go(Regions,[]*string) -} - -#ConfigurationAggregatorInitParameters: { - // The account(s) to aggregate config data from as documented below. - accountAggregationSource?: [...#AccountAggregationSourceInitParameters] @go(AccountAggregationSource,[]AccountAggregationSourceInitParameters) - - // The organization to aggregate config data from as documented below. - organizationAggregationSource?: [...#OrganizationAggregationSourceInitParameters] @go(OrganizationAggregationSource,[]OrganizationAggregationSourceInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ConfigurationAggregatorObservation: { - // The account(s) to aggregate config data from as documented below. - accountAggregationSource?: [...#AccountAggregationSourceObservation] @go(AccountAggregationSource,[]AccountAggregationSourceObservation) - - // The ARN of the aggregator - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // The organization to aggregate config data from as documented below. - organizationAggregationSource?: [...#OrganizationAggregationSourceObservation] @go(OrganizationAggregationSource,[]OrganizationAggregationSourceObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ConfigurationAggregatorParameters: { - // The account(s) to aggregate config data from as documented below. - // +kubebuilder:validation:Optional - accountAggregationSource?: [...#AccountAggregationSourceParameters] @go(AccountAggregationSource,[]AccountAggregationSourceParameters) - - // The organization to aggregate config data from as documented below. - // +kubebuilder:validation:Optional - organizationAggregationSource?: [...#OrganizationAggregationSourceParameters] @go(OrganizationAggregationSource,[]OrganizationAggregationSourceParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#OrganizationAggregationSourceInitParameters: { - // If true, aggregate existing AWS Config regions and future regions. - allRegions?: null | bool @go(AllRegions,*bool) - - // List of source regions being aggregated. - regions?: [...null | string] @go(Regions,[]*string) -} - -#OrganizationAggregationSourceObservation: { - // If true, aggregate existing AWS Config regions and future regions. - allRegions?: null | bool @go(AllRegions,*bool) - - // List of source regions being aggregated. - regions?: [...null | string] @go(Regions,[]*string) - - // ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account. - roleArn?: null | string @go(RoleArn,*string) -} - -#OrganizationAggregationSourceParameters: { - // If true, aggregate existing AWS Config regions and future regions. - // +kubebuilder:validation:Optional - allRegions?: null | bool @go(AllRegions,*bool) - - // List of source regions being aggregated. - // +kubebuilder:validation:Optional - regions?: [...null | string] @go(Regions,[]*string) - - // ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -// ConfigurationAggregatorSpec defines the desired state of ConfigurationAggregator -#ConfigurationAggregatorSpec: { - v1.#ResourceSpec - forProvider: #ConfigurationAggregatorParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConfigurationAggregatorInitParameters @go(InitProvider) -} - -// ConfigurationAggregatorStatus defines the observed state of ConfigurationAggregator. -#ConfigurationAggregatorStatus: { - v1.#ResourceStatus - atProvider?: #ConfigurationAggregatorObservation @go(AtProvider) -} - -// ConfigurationAggregator is the Schema for the ConfigurationAggregators API. Manages an AWS Config Configuration Aggregator. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ConfigurationAggregator: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ConfigurationAggregatorSpec @go(Spec) - status?: #ConfigurationAggregatorStatus @go(Status) -} - -// ConfigurationAggregatorList contains a list of ConfigurationAggregators -#ConfigurationAggregatorList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConfigurationAggregator] @go(Items,[]ConfigurationAggregator) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_configurationrecorder_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_configurationrecorder_types_go_gen.cue deleted file mode 100644 index 7b1fb2b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_configurationrecorder_types_go_gen.cue +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/configservice/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigurationRecorderInitParameters: { - // Recording group - see below. - recordingGroup?: [...#RecordingGroupInitParameters] @go(RecordingGroup,[]RecordingGroupInitParameters) -} - -#ConfigurationRecorderObservation: { - // Name of the recorder - id?: null | string @go(ID,*string) - - // Recording group - see below. - recordingGroup?: [...#RecordingGroupObservation] @go(RecordingGroup,[]RecordingGroupObservation) - - // Amazon Resource Name (ARN) of the IAM role. Used to make read or write requests to the delivery channel and to describe the AWS resources associated with the account. See AWS Docs for more details. - roleArn?: null | string @go(RoleArn,*string) -} - -#ConfigurationRecorderParameters: { - // Recording group - see below. - // +kubebuilder:validation:Optional - recordingGroup?: [...#RecordingGroupParameters] @go(RecordingGroup,[]RecordingGroupParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Resource Name (ARN) of the IAM role. Used to make read or write requests to the delivery channel and to describe the AWS resources associated with the account. See AWS Docs for more details. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -#RecordingGroupInitParameters: { - // Specifies whether AWS Config records configuration changes for every supported type of regional resource (which includes any new type that will become supported in the future). Conflicts with resource_types. Defaults to true. - allSupported?: null | bool @go(AllSupported,*bool) - - // Specifies whether AWS Config includes all supported types of global resources with the resources that it records. Requires all_supported = true. Conflicts with resource_types. - includeGlobalResourceTypes?: null | bool @go(IncludeGlobalResourceTypes,*bool) - - // A list that specifies the types of AWS resources for which AWS Config records configuration changes (for example, AWS::EC2::Instance or AWS::CloudTrail::Trail). See relevant part of AWS Docs for available types. In order to use this attribute, all_supported must be set to false. - resourceTypes?: [...null | string] @go(ResourceTypes,[]*string) -} - -#RecordingGroupObservation: { - // Specifies whether AWS Config records configuration changes for every supported type of regional resource (which includes any new type that will become supported in the future). Conflicts with resource_types. Defaults to true. - allSupported?: null | bool @go(AllSupported,*bool) - - // Specifies whether AWS Config includes all supported types of global resources with the resources that it records. Requires all_supported = true. Conflicts with resource_types. - includeGlobalResourceTypes?: null | bool @go(IncludeGlobalResourceTypes,*bool) - - // A list that specifies the types of AWS resources for which AWS Config records configuration changes (for example, AWS::EC2::Instance or AWS::CloudTrail::Trail). See relevant part of AWS Docs for available types. In order to use this attribute, all_supported must be set to false. - resourceTypes?: [...null | string] @go(ResourceTypes,[]*string) -} - -#RecordingGroupParameters: { - // Specifies whether AWS Config records configuration changes for every supported type of regional resource (which includes any new type that will become supported in the future). Conflicts with resource_types. Defaults to true. - // +kubebuilder:validation:Optional - allSupported?: null | bool @go(AllSupported,*bool) - - // Specifies whether AWS Config includes all supported types of global resources with the resources that it records. Requires all_supported = true. Conflicts with resource_types. - // +kubebuilder:validation:Optional - includeGlobalResourceTypes?: null | bool @go(IncludeGlobalResourceTypes,*bool) - - // A list that specifies the types of AWS resources for which AWS Config records configuration changes (for example, AWS::EC2::Instance or AWS::CloudTrail::Trail). See relevant part of AWS Docs for available types. In order to use this attribute, all_supported must be set to false. - // +kubebuilder:validation:Optional - resourceTypes?: [...null | string] @go(ResourceTypes,[]*string) -} - -// ConfigurationRecorderSpec defines the desired state of ConfigurationRecorder -#ConfigurationRecorderSpec: { - v1.#ResourceSpec - forProvider: #ConfigurationRecorderParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConfigurationRecorderInitParameters @go(InitProvider) -} - -// ConfigurationRecorderStatus defines the observed state of ConfigurationRecorder. -#ConfigurationRecorderStatus: { - v1.#ResourceStatus - atProvider?: #ConfigurationRecorderObservation @go(AtProvider) -} - -// ConfigurationRecorder is the Schema for the ConfigurationRecorders API. Provides an AWS Config Configuration Recorder. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ConfigurationRecorder: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ConfigurationRecorderSpec @go(Spec) - status?: #ConfigurationRecorderStatus @go(Status) -} - -// ConfigurationRecorderList contains a list of ConfigurationRecorders -#ConfigurationRecorderList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConfigurationRecorder] @go(Items,[]ConfigurationRecorder) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_conformancepack_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_conformancepack_types_go_gen.cue deleted file mode 100644 index d7b2346..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_conformancepack_types_go_gen.cue +++ /dev/null @@ -1,146 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/configservice/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConformancePackInitParameters: { - // Amazon S3 bucket where AWS Config stores conformance pack templates. Maximum length of 63. - deliveryS3Bucket?: null | string @go(DeliveryS3Bucket,*string) - - // The prefix for the Amazon S3 bucket. Maximum length of 1024. - deliveryS3KeyPrefix?: null | string @go(DeliveryS3KeyPrefix,*string) - - // Set of configuration blocks describing input parameters passed to the conformance pack template. Documented below. When configured, the parameters must also be included in the template_body or in the template stored in Amazon S3 if using template_s3_uri. - inputParameter?: [...#InputParameterInitParameters] @go(InputParameter,[]InputParameterInitParameters) - - // A string containing full conformance pack template body. Maximum length of 51200. Drift detection is not possible with this argument. - templateBody?: null | string @go(TemplateBody,*string) - - // Location of file, e.g., s3://bucketname/prefix, containing the template body. The uri must point to the conformance pack template that is located in an Amazon S3 bucket in the same region as the conformance pack. Maximum length of 1024. Drift detection is not possible with this argument. - templateS3Uri?: null | string @go(TemplateS3URI,*string) -} - -#ConformancePackObservation: { - // Amazon Resource Name (ARN) of the conformance pack. - arn?: null | string @go(Arn,*string) - - // Amazon S3 bucket where AWS Config stores conformance pack templates. Maximum length of 63. - deliveryS3Bucket?: null | string @go(DeliveryS3Bucket,*string) - - // The prefix for the Amazon S3 bucket. Maximum length of 1024. - deliveryS3KeyPrefix?: null | string @go(DeliveryS3KeyPrefix,*string) - id?: null | string @go(ID,*string) - - // Set of configuration blocks describing input parameters passed to the conformance pack template. Documented below. When configured, the parameters must also be included in the template_body or in the template stored in Amazon S3 if using template_s3_uri. - inputParameter?: [...#InputParameterObservation] @go(InputParameter,[]InputParameterObservation) - - // A string containing full conformance pack template body. Maximum length of 51200. Drift detection is not possible with this argument. - templateBody?: null | string @go(TemplateBody,*string) - - // Location of file, e.g., s3://bucketname/prefix, containing the template body. The uri must point to the conformance pack template that is located in an Amazon S3 bucket in the same region as the conformance pack. Maximum length of 1024. Drift detection is not possible with this argument. - templateS3Uri?: null | string @go(TemplateS3URI,*string) -} - -#ConformancePackParameters: { - // Amazon S3 bucket where AWS Config stores conformance pack templates. Maximum length of 63. - // +kubebuilder:validation:Optional - deliveryS3Bucket?: null | string @go(DeliveryS3Bucket,*string) - - // The prefix for the Amazon S3 bucket. Maximum length of 1024. - // +kubebuilder:validation:Optional - deliveryS3KeyPrefix?: null | string @go(DeliveryS3KeyPrefix,*string) - - // Set of configuration blocks describing input parameters passed to the conformance pack template. Documented below. When configured, the parameters must also be included in the template_body or in the template stored in Amazon S3 if using template_s3_uri. - // +kubebuilder:validation:Optional - inputParameter?: [...#InputParameterParameters] @go(InputParameter,[]InputParameterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A string containing full conformance pack template body. Maximum length of 51200. Drift detection is not possible with this argument. - // +kubebuilder:validation:Optional - templateBody?: null | string @go(TemplateBody,*string) - - // Location of file, e.g., s3://bucketname/prefix, containing the template body. The uri must point to the conformance pack template that is located in an Amazon S3 bucket in the same region as the conformance pack. Maximum length of 1024. Drift detection is not possible with this argument. - // +kubebuilder:validation:Optional - templateS3Uri?: null | string @go(TemplateS3URI,*string) -} - -#InputParameterInitParameters: { - // The input key. - parameterName?: null | string @go(ParameterName,*string) - - // The input value. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#InputParameterObservation: { - // The input key. - parameterName?: null | string @go(ParameterName,*string) - - // The input value. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#InputParameterParameters: { - // The input key. - // +kubebuilder:validation:Optional - parameterName?: null | string @go(ParameterName,*string) - - // The input value. - // +kubebuilder:validation:Optional - parameterValue?: null | string @go(ParameterValue,*string) -} - -// ConformancePackSpec defines the desired state of ConformancePack -#ConformancePackSpec: { - v1.#ResourceSpec - forProvider: #ConformancePackParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConformancePackInitParameters @go(InitProvider) -} - -// ConformancePackStatus defines the observed state of ConformancePack. -#ConformancePackStatus: { - v1.#ResourceStatus - atProvider?: #ConformancePackObservation @go(AtProvider) -} - -// ConformancePack is the Schema for the ConformancePacks API. Manages a Config Conformance Pack -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ConformancePack: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ConformancePackSpec @go(Spec) - status?: #ConformancePackStatus @go(Status) -} - -// ConformancePackList contains a list of ConformancePacks -#ConformancePackList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConformancePack] @go(Items,[]ConformancePack) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_deliverychannel_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_deliverychannel_types_go_gen.cue deleted file mode 100644 index e50a52e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_deliverychannel_types_go_gen.cue +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/configservice/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DeliveryChannelInitParameters: { - // The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket. - s3KmsKeyArn?: null | string @go(S3KMSKeyArn,*string) - - // The prefix for the specified S3 bucket. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) - - // Options for how AWS Config delivers configuration snapshots. See below - snapshotDeliveryProperties?: [...#SnapshotDeliveryPropertiesInitParameters] @go(SnapshotDeliveryProperties,[]SnapshotDeliveryPropertiesInitParameters) - - // The ARN of the SNS topic that AWS Config delivers notifications to. - snsTopicArn?: null | string @go(SnsTopicArn,*string) -} - -#DeliveryChannelObservation: { - // The name of the delivery channel. - id?: null | string @go(ID,*string) - - // The name of the S3 bucket used to store the configuration history. - s3BucketName?: null | string @go(S3BucketName,*string) - - // The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket. - s3KmsKeyArn?: null | string @go(S3KMSKeyArn,*string) - - // The prefix for the specified S3 bucket. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) - - // Options for how AWS Config delivers configuration snapshots. See below - snapshotDeliveryProperties?: [...#SnapshotDeliveryPropertiesObservation] @go(SnapshotDeliveryProperties,[]SnapshotDeliveryPropertiesObservation) - - // The ARN of the SNS topic that AWS Config delivers notifications to. - snsTopicArn?: null | string @go(SnsTopicArn,*string) -} - -#DeliveryChannelParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the S3 bucket used to store the configuration history. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +kubebuilder:validation:Optional - s3BucketName?: null | string @go(S3BucketName,*string) - - // Reference to a Bucket in s3 to populate s3BucketName. - // +kubebuilder:validation:Optional - s3BucketNameRef?: null | v1.#Reference @go(S3BucketNameRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate s3BucketName. - // +kubebuilder:validation:Optional - s3BucketNameSelector?: null | v1.#Selector @go(S3BucketNameSelector,*v1.Selector) - - // The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket. - // +kubebuilder:validation:Optional - s3KmsKeyArn?: null | string @go(S3KMSKeyArn,*string) - - // The prefix for the specified S3 bucket. - // +kubebuilder:validation:Optional - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) - - // Options for how AWS Config delivers configuration snapshots. See below - // +kubebuilder:validation:Optional - snapshotDeliveryProperties?: [...#SnapshotDeliveryPropertiesParameters] @go(SnapshotDeliveryProperties,[]SnapshotDeliveryPropertiesParameters) - - // The ARN of the SNS topic that AWS Config delivers notifications to. - // +kubebuilder:validation:Optional - snsTopicArn?: null | string @go(SnsTopicArn,*string) -} - -#SnapshotDeliveryPropertiesInitParameters: { - // - The frequency with which AWS Config recurringly delivers configuration snapshotsE.g., One_Hour or Three_Hours. Valid values are listed here. - deliveryFrequency?: null | string @go(DeliveryFrequency,*string) -} - -#SnapshotDeliveryPropertiesObservation: { - // - The frequency with which AWS Config recurringly delivers configuration snapshotsE.g., One_Hour or Three_Hours. Valid values are listed here. - deliveryFrequency?: null | string @go(DeliveryFrequency,*string) -} - -#SnapshotDeliveryPropertiesParameters: { - // - The frequency with which AWS Config recurringly delivers configuration snapshotsE.g., One_Hour or Three_Hours. Valid values are listed here. - // +kubebuilder:validation:Optional - deliveryFrequency?: null | string @go(DeliveryFrequency,*string) -} - -// DeliveryChannelSpec defines the desired state of DeliveryChannel -#DeliveryChannelSpec: { - v1.#ResourceSpec - forProvider: #DeliveryChannelParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DeliveryChannelInitParameters @go(InitProvider) -} - -// DeliveryChannelStatus defines the observed state of DeliveryChannel. -#DeliveryChannelStatus: { - v1.#ResourceStatus - atProvider?: #DeliveryChannelObservation @go(AtProvider) -} - -// DeliveryChannel is the Schema for the DeliveryChannels API. Provides an AWS Config Delivery Channel. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DeliveryChannel: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DeliveryChannelSpec @go(Spec) - status?: #DeliveryChannelStatus @go(Status) -} - -// DeliveryChannelList contains a list of DeliveryChannels -#DeliveryChannelList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DeliveryChannel] @go(Items,[]DeliveryChannel) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index cf46fba..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/configservice/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=configservice.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "configservice.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_remediationconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_remediationconfiguration_types_go_gen.cue deleted file mode 100644 index ea9b7da..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/configservice/v1beta1/zz_remediationconfiguration_types_go_gen.cue +++ /dev/null @@ -1,251 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/configservice/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ExecutionControlsInitParameters: { - // Configuration block for SSM controls. See below. - ssmControls?: [...#SsmControlsInitParameters] @go(SsmControls,[]SsmControlsInitParameters) -} - -#ExecutionControlsObservation: { - // Configuration block for SSM controls. See below. - ssmControls?: [...#SsmControlsObservation] @go(SsmControls,[]SsmControlsObservation) -} - -#ExecutionControlsParameters: { - // Configuration block for SSM controls. See below. - // +kubebuilder:validation:Optional - ssmControls?: [...#SsmControlsParameters] @go(SsmControls,[]SsmControlsParameters) -} - -#ParameterInitParameters: { - // Name of the attribute. - name?: null | string @go(Name,*string) - - // Value is dynamic and changes at run-time. - resourceValue?: null | string @go(ResourceValue,*string) - - // Value is static and does not change at run-time. - staticValue?: null | string @go(StaticValue,*string) - - // List of static values. - staticValues?: [...null | string] @go(StaticValues,[]*string) -} - -#ParameterObservation: { - // Name of the attribute. - name?: null | string @go(Name,*string) - - // Value is dynamic and changes at run-time. - resourceValue?: null | string @go(ResourceValue,*string) - - // Value is static and does not change at run-time. - staticValue?: null | string @go(StaticValue,*string) - - // List of static values. - staticValues?: [...null | string] @go(StaticValues,[]*string) -} - -#ParameterParameters: { - // Name of the attribute. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Value is dynamic and changes at run-time. - // +kubebuilder:validation:Optional - resourceValue?: null | string @go(ResourceValue,*string) - - // Value is static and does not change at run-time. - // +kubebuilder:validation:Optional - staticValue?: null | string @go(StaticValue,*string) - - // List of static values. - // +kubebuilder:validation:Optional - staticValues?: [...null | string] @go(StaticValues,[]*string) -} - -#RemediationConfigurationInitParameters: { - // Remediation is triggered automatically if true. - automatic?: null | bool @go(Automatic,*bool) - - // Configuration block for execution controls. See below. - executionControls?: [...#ExecutionControlsInitParameters] @go(ExecutionControls,[]ExecutionControlsInitParameters) - - // Maximum number of failed attempts for auto-remediation. If you do not select a number, the default is 5. - maximumAutomaticAttempts?: null | float64 @go(MaximumAutomaticAttempts,*float64) - - // Can be specified multiple times for each parameter. Each parameter block supports arguments below. - parameter?: [...#ParameterInitParameters] @go(Parameter,[]ParameterInitParameters) - - // Type of resource. - resourceType?: null | string @go(ResourceType,*string) - - // Maximum time in seconds that AWS Config runs auto-remediation. If you do not select a number, the default is 60 seconds. - retryAttemptSeconds?: null | float64 @go(RetryAttemptSeconds,*float64) - - // Target ID is the name of the public document. - targetId?: null | string @go(TargetID,*string) - - // Type of the target. Target executes remediation. For example, SSM document. - targetType?: null | string @go(TargetType,*string) - - // Version of the target. For example, version of the SSM document - targetVersion?: null | string @go(TargetVersion,*string) -} - -#RemediationConfigurationObservation: { - // ARN of the Config Remediation Configuration. - arn?: null | string @go(Arn,*string) - - // Remediation is triggered automatically if true. - automatic?: null | bool @go(Automatic,*bool) - - // Configuration block for execution controls. See below. - executionControls?: [...#ExecutionControlsObservation] @go(ExecutionControls,[]ExecutionControlsObservation) - id?: null | string @go(ID,*string) - - // Maximum number of failed attempts for auto-remediation. If you do not select a number, the default is 5. - maximumAutomaticAttempts?: null | float64 @go(MaximumAutomaticAttempts,*float64) - - // Can be specified multiple times for each parameter. Each parameter block supports arguments below. - parameter?: [...#ParameterObservation] @go(Parameter,[]ParameterObservation) - - // Type of resource. - resourceType?: null | string @go(ResourceType,*string) - - // Maximum time in seconds that AWS Config runs auto-remediation. If you do not select a number, the default is 60 seconds. - retryAttemptSeconds?: null | float64 @go(RetryAttemptSeconds,*float64) - - // Target ID is the name of the public document. - targetId?: null | string @go(TargetID,*string) - - // Type of the target. Target executes remediation. For example, SSM document. - targetType?: null | string @go(TargetType,*string) - - // Version of the target. For example, version of the SSM document - targetVersion?: null | string @go(TargetVersion,*string) -} - -#RemediationConfigurationParameters: { - // Remediation is triggered automatically if true. - // +kubebuilder:validation:Optional - automatic?: null | bool @go(Automatic,*bool) - - // Configuration block for execution controls. See below. - // +kubebuilder:validation:Optional - executionControls?: [...#ExecutionControlsParameters] @go(ExecutionControls,[]ExecutionControlsParameters) - - // Maximum number of failed attempts for auto-remediation. If you do not select a number, the default is 5. - // +kubebuilder:validation:Optional - maximumAutomaticAttempts?: null | float64 @go(MaximumAutomaticAttempts,*float64) - - // Can be specified multiple times for each parameter. Each parameter block supports arguments below. - // +kubebuilder:validation:Optional - parameter?: [...#ParameterParameters] @go(Parameter,[]ParameterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Type of resource. - // +kubebuilder:validation:Optional - resourceType?: null | string @go(ResourceType,*string) - - // Maximum time in seconds that AWS Config runs auto-remediation. If you do not select a number, the default is 60 seconds. - // +kubebuilder:validation:Optional - retryAttemptSeconds?: null | float64 @go(RetryAttemptSeconds,*float64) - - // Target ID is the name of the public document. - // +kubebuilder:validation:Optional - targetId?: null | string @go(TargetID,*string) - - // Type of the target. Target executes remediation. For example, SSM document. - // +kubebuilder:validation:Optional - targetType?: null | string @go(TargetType,*string) - - // Version of the target. For example, version of the SSM document - // +kubebuilder:validation:Optional - targetVersion?: null | string @go(TargetVersion,*string) -} - -#SsmControlsInitParameters: { - // Maximum percentage of remediation actions allowed to run in parallel on the non-compliant resources for that specific rule. The default value is 10%. - concurrentExecutionRatePercentage?: null | float64 @go(ConcurrentExecutionRatePercentage,*float64) - - // Percentage of errors that are allowed before SSM stops running automations on non-compliant resources for that specific rule. The default is 50%. - errorPercentage?: null | float64 @go(ErrorPercentage,*float64) -} - -#SsmControlsObservation: { - // Maximum percentage of remediation actions allowed to run in parallel on the non-compliant resources for that specific rule. The default value is 10%. - concurrentExecutionRatePercentage?: null | float64 @go(ConcurrentExecutionRatePercentage,*float64) - - // Percentage of errors that are allowed before SSM stops running automations on non-compliant resources for that specific rule. The default is 50%. - errorPercentage?: null | float64 @go(ErrorPercentage,*float64) -} - -#SsmControlsParameters: { - // Maximum percentage of remediation actions allowed to run in parallel on the non-compliant resources for that specific rule. The default value is 10%. - // +kubebuilder:validation:Optional - concurrentExecutionRatePercentage?: null | float64 @go(ConcurrentExecutionRatePercentage,*float64) - - // Percentage of errors that are allowed before SSM stops running automations on non-compliant resources for that specific rule. The default is 50%. - // +kubebuilder:validation:Optional - errorPercentage?: null | float64 @go(ErrorPercentage,*float64) -} - -// RemediationConfigurationSpec defines the desired state of RemediationConfiguration -#RemediationConfigurationSpec: { - v1.#ResourceSpec - forProvider: #RemediationConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RemediationConfigurationInitParameters @go(InitProvider) -} - -// RemediationConfigurationStatus defines the observed state of RemediationConfiguration. -#RemediationConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #RemediationConfigurationObservation @go(AtProvider) -} - -// RemediationConfiguration is the Schema for the RemediationConfigurations API. Provides an AWS Config Remediation Configuration. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RemediationConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targetId) || (has(self.initProvider) && has(self.initProvider.targetId))",message="spec.forProvider.targetId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targetType) || (has(self.initProvider) && has(self.initProvider.targetType))",message="spec.forProvider.targetType is a required parameter" - spec: #RemediationConfigurationSpec @go(Spec) - status?: #RemediationConfigurationStatus @go(Status) -} - -// RemediationConfigurationList contains a list of RemediationConfigurations -#RemediationConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RemediationConfiguration] @go(Items,[]RemediationConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_botassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_botassociation_types_go_gen.cue deleted file mode 100644 index b49122f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_botassociation_types_go_gen.cue +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BotAssociationInitParameters: { - // Configuration information of an Amazon Lex (V1) bot. Detailed below. - lexBot?: [...#LexBotInitParameters] @go(LexBot,[]LexBotInitParameters) -} - -#BotAssociationObservation: { - // The Amazon Connect instance ID, Lex (V1) bot name, and Lex (V1) bot region separated by colons (:). - id?: null | string @go(ID,*string) - - // The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance. - instanceId?: null | string @go(InstanceID,*string) - - // Configuration information of an Amazon Lex (V1) bot. Detailed below. - lexBot?: [...#LexBotObservation] @go(LexBot,[]LexBotObservation) -} - -#BotAssociationParameters: { - // The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Configuration information of an Amazon Lex (V1) bot. Detailed below. - // +kubebuilder:validation:Optional - lexBot?: [...#LexBotParameters] @go(LexBot,[]LexBotParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#LexBotInitParameters: { - // The Region that the Amazon Lex (V1) bot was created in. Defaults to current region. - lexRegion?: null | string @go(LexRegion,*string) -} - -#LexBotObservation: { - // The Region that the Amazon Lex (V1) bot was created in. Defaults to current region. - lexRegion?: null | string @go(LexRegion,*string) - - // The name of the Amazon Lex (V1) bot. - name?: null | string @go(Name,*string) -} - -#LexBotParameters: { - // The Region that the Amazon Lex (V1) bot was created in. Defaults to current region. - // +kubebuilder:validation:Optional - lexRegion?: null | string @go(LexRegion,*string) - - // The name of the Amazon Lex (V1) bot. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lexmodels/v1beta1.Bot - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Reference to a Bot in lexmodels to populate name. - // +kubebuilder:validation:Optional - nameRef?: null | v1.#Reference @go(NameRef,*v1.Reference) - - // Selector for a Bot in lexmodels to populate name. - // +kubebuilder:validation:Optional - nameSelector?: null | v1.#Selector @go(NameSelector,*v1.Selector) -} - -// BotAssociationSpec defines the desired state of BotAssociation -#BotAssociationSpec: { - v1.#ResourceSpec - forProvider: #BotAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BotAssociationInitParameters @go(InitProvider) -} - -// BotAssociationStatus defines the observed state of BotAssociation. -#BotAssociationStatus: { - v1.#ResourceStatus - atProvider?: #BotAssociationObservation @go(AtProvider) -} - -// BotAssociation is the Schema for the BotAssociations API. Associates an Amazon Connect instance to an Amazon Lex (V1) bot -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BotAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.lexBot) || (has(self.initProvider) && has(self.initProvider.lexBot))",message="spec.forProvider.lexBot is a required parameter" - spec: #BotAssociationSpec @go(Spec) - status?: #BotAssociationStatus @go(Status) -} - -// BotAssociationList contains a list of BotAssociations -#BotAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BotAssociation] @go(Items,[]BotAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_contactflow_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_contactflow_types_go_gen.cue deleted file mode 100644 index 25db6cc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_contactflow_types_go_gen.cue +++ /dev/null @@ -1,167 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ContactFlowInitParameters: { - // Specifies the content of the Contact Flow, provided as a JSON string, written in Amazon Connect Contact Flow Language. If defined, the filename argument cannot be used. - content?: null | string @go(Content,*string) - - // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow source specified with filename. The usual way to set this is filebase64sha256("mycontact_flow.11.12 and later) or base64sha256(file("mycontact_flow.11.11 and earlier), where "mycontact_flow.json" is the local filename of the Contact Flow source. - contentHash?: null | string @go(ContentHash,*string) - - // Specifies the description of the Contact Flow. - description?: null | string @go(Description,*string) - - // The path to the Contact Flow source within the local filesystem. Conflicts with content. - filename?: null | string @go(Filename,*string) - - // Specifies the name of the Contact Flow. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the type of the Contact Flow. Defaults to CONTACT_FLOW. Allowed Values are: CONTACT_FLOW, CUSTOMER_QUEUE, CUSTOMER_HOLD, CUSTOMER_WHISPER, AGENT_HOLD, AGENT_WHISPER, OUTBOUND_WHISPER, AGENT_TRANSFER, QUEUE_TRANSFER. - type?: null | string @go(Type,*string) -} - -#ContactFlowObservation: { - // The Amazon Resource Name (ARN) of the Contact Flow. - arn?: null | string @go(Arn,*string) - - // The identifier of the Contact Flow. - contactFlowId?: null | string @go(ContactFlowID,*string) - - // Specifies the content of the Contact Flow, provided as a JSON string, written in Amazon Connect Contact Flow Language. If defined, the filename argument cannot be used. - content?: null | string @go(Content,*string) - - // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow source specified with filename. The usual way to set this is filebase64sha256("mycontact_flow.11.12 and later) or base64sha256(file("mycontact_flow.11.11 and earlier), where "mycontact_flow.json" is the local filename of the Contact Flow source. - contentHash?: null | string @go(ContentHash,*string) - - // Specifies the description of the Contact Flow. - description?: null | string @go(Description,*string) - - // The path to the Contact Flow source within the local filesystem. Conflicts with content. - filename?: null | string @go(Filename,*string) - - // The identifier of the hosting Amazon Connect Instance and identifier of the Contact Flow separated by a colon (:). - id?: null | string @go(ID,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - instanceId?: null | string @go(InstanceID,*string) - - // Specifies the name of the Contact Flow. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Specifies the type of the Contact Flow. Defaults to CONTACT_FLOW. Allowed Values are: CONTACT_FLOW, CUSTOMER_QUEUE, CUSTOMER_HOLD, CUSTOMER_WHISPER, AGENT_HOLD, AGENT_WHISPER, OUTBOUND_WHISPER, AGENT_TRANSFER, QUEUE_TRANSFER. - type?: null | string @go(Type,*string) -} - -#ContactFlowParameters: { - // Specifies the content of the Contact Flow, provided as a JSON string, written in Amazon Connect Contact Flow Language. If defined, the filename argument cannot be used. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow source specified with filename. The usual way to set this is filebase64sha256("mycontact_flow.11.12 and later) or base64sha256(file("mycontact_flow.11.11 and earlier), where "mycontact_flow.json" is the local filename of the Contact Flow source. - // +kubebuilder:validation:Optional - contentHash?: null | string @go(ContentHash,*string) - - // Specifies the description of the Contact Flow. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The path to the Contact Flow source within the local filesystem. Conflicts with content. - // +kubebuilder:validation:Optional - filename?: null | string @go(Filename,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Specifies the name of the Contact Flow. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the type of the Contact Flow. Defaults to CONTACT_FLOW. Allowed Values are: CONTACT_FLOW, CUSTOMER_QUEUE, CUSTOMER_HOLD, CUSTOMER_WHISPER, AGENT_HOLD, AGENT_WHISPER, OUTBOUND_WHISPER, AGENT_TRANSFER, QUEUE_TRANSFER. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// ContactFlowSpec defines the desired state of ContactFlow -#ContactFlowSpec: { - v1.#ResourceSpec - forProvider: #ContactFlowParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ContactFlowInitParameters @go(InitProvider) -} - -// ContactFlowStatus defines the observed state of ContactFlow. -#ContactFlowStatus: { - v1.#ResourceStatus - atProvider?: #ContactFlowObservation @go(AtProvider) -} - -// ContactFlow is the Schema for the ContactFlows API. Provides details about a specific Amazon Connect Contact Flow. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ContactFlow: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ContactFlowSpec @go(Spec) - status?: #ContactFlowStatus @go(Status) -} - -// ContactFlowList contains a list of ContactFlows -#ContactFlowList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ContactFlow] @go(Items,[]ContactFlow) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_contactflowmodule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_contactflowmodule_types_go_gen.cue deleted file mode 100644 index 24154fe..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_contactflowmodule_types_go_gen.cue +++ /dev/null @@ -1,157 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ContactFlowModuleInitParameters: { - // Specifies the content of the Contact Flow Module, provided as a JSON string, written in Amazon Connect Contact Flow Language. If defined, the filename argument cannot be used. - content?: null | string @go(Content,*string) - - // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with filename. The usual way to set this is filebase64sha256("contact_flow_module.11.12 and later) or base64sha256(file("contact_flow_module.11.11 and earlier), where "contact_flow_module.json" is the local filename of the Contact Flow Module source. - contentHash?: null | string @go(ContentHash,*string) - - // Specifies the description of the Contact Flow Module. - description?: null | string @go(Description,*string) - - // The path to the Contact Flow Module source within the local filesystem. Conflicts with content. - filename?: null | string @go(Filename,*string) - - // Specifies the name of the Contact Flow Module. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ContactFlowModuleObservation: { - // The Amazon Resource Name (ARN) of the Contact Flow Module. - arn?: null | string @go(Arn,*string) - - // The identifier of the Contact Flow Module. - contactFlowModuleId?: null | string @go(ContactFlowModuleID,*string) - - // Specifies the content of the Contact Flow Module, provided as a JSON string, written in Amazon Connect Contact Flow Language. If defined, the filename argument cannot be used. - content?: null | string @go(Content,*string) - - // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with filename. The usual way to set this is filebase64sha256("contact_flow_module.11.12 and later) or base64sha256(file("contact_flow_module.11.11 and earlier), where "contact_flow_module.json" is the local filename of the Contact Flow Module source. - contentHash?: null | string @go(ContentHash,*string) - - // Specifies the description of the Contact Flow Module. - description?: null | string @go(Description,*string) - - // The path to the Contact Flow Module source within the local filesystem. Conflicts with content. - filename?: null | string @go(Filename,*string) - - // The identifier of the hosting Amazon Connect Instance and identifier of the Contact Flow Module separated by a colon (:). - id?: null | string @go(ID,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - instanceId?: null | string @go(InstanceID,*string) - - // Specifies the name of the Contact Flow Module. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ContactFlowModuleParameters: { - // Specifies the content of the Contact Flow Module, provided as a JSON string, written in Amazon Connect Contact Flow Language. If defined, the filename argument cannot be used. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with filename. The usual way to set this is filebase64sha256("contact_flow_module.11.12 and later) or base64sha256(file("contact_flow_module.11.11 and earlier), where "contact_flow_module.json" is the local filename of the Contact Flow Module source. - // +kubebuilder:validation:Optional - contentHash?: null | string @go(ContentHash,*string) - - // Specifies the description of the Contact Flow Module. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The path to the Contact Flow Module source within the local filesystem. Conflicts with content. - // +kubebuilder:validation:Optional - filename?: null | string @go(Filename,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Specifies the name of the Contact Flow Module. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ContactFlowModuleSpec defines the desired state of ContactFlowModule -#ContactFlowModuleSpec: { - v1.#ResourceSpec - forProvider: #ContactFlowModuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ContactFlowModuleInitParameters @go(InitProvider) -} - -// ContactFlowModuleStatus defines the observed state of ContactFlowModule. -#ContactFlowModuleStatus: { - v1.#ResourceStatus - atProvider?: #ContactFlowModuleObservation @go(AtProvider) -} - -// ContactFlowModule is the Schema for the ContactFlowModules API. Provides details about a specific Amazon Connect Contact Flow Module. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ContactFlowModule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ContactFlowModuleSpec @go(Spec) - status?: #ContactFlowModuleStatus @go(Status) -} - -// ContactFlowModuleList contains a list of ContactFlowModules -#ContactFlowModuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ContactFlowModule] @go(Items,[]ContactFlowModule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 4579713..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=connect.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "connect.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_hoursofoperation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_hoursofoperation_types_go_gen.cue deleted file mode 100644 index a44b932..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_hoursofoperation_types_go_gen.cue +++ /dev/null @@ -1,240 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigInitParameters: { - // Specifies the day that the hours of operation applies to. - day?: null | string @go(Day,*string) - - // A end time block specifies the time that your contact center closes. The end_time is documented below. - endTime?: [...#EndTimeInitParameters] @go(EndTime,[]EndTimeInitParameters) - - // A start time block specifies the time that your contact center opens. The start_time is documented below. - startTime?: [...#StartTimeInitParameters] @go(StartTime,[]StartTimeInitParameters) -} - -#ConfigObservation: { - // Specifies the day that the hours of operation applies to. - day?: null | string @go(Day,*string) - - // A end time block specifies the time that your contact center closes. The end_time is documented below. - endTime?: [...#EndTimeObservation] @go(EndTime,[]EndTimeObservation) - - // A start time block specifies the time that your contact center opens. The start_time is documented below. - startTime?: [...#StartTimeObservation] @go(StartTime,[]StartTimeObservation) -} - -#ConfigParameters: { - // Specifies the day that the hours of operation applies to. - // +kubebuilder:validation:Optional - day?: null | string @go(Day,*string) - - // A end time block specifies the time that your contact center closes. The end_time is documented below. - // +kubebuilder:validation:Optional - endTime: [...#EndTimeParameters] @go(EndTime,[]EndTimeParameters) - - // A start time block specifies the time that your contact center opens. The start_time is documented below. - // +kubebuilder:validation:Optional - startTime: [...#StartTimeParameters] @go(StartTime,[]StartTimeParameters) -} - -#EndTimeInitParameters: { - // Specifies the hour of closing. - hours?: null | float64 @go(Hours,*float64) - - // Specifies the minute of closing. - minutes?: null | float64 @go(Minutes,*float64) -} - -#EndTimeObservation: { - // Specifies the hour of closing. - hours?: null | float64 @go(Hours,*float64) - - // Specifies the minute of closing. - minutes?: null | float64 @go(Minutes,*float64) -} - -#EndTimeParameters: { - // Specifies the hour of closing. - // +kubebuilder:validation:Optional - hours?: null | float64 @go(Hours,*float64) - - // Specifies the minute of closing. - // +kubebuilder:validation:Optional - minutes?: null | float64 @go(Minutes,*float64) -} - -#HoursOfOperationInitParameters: { - // One or more config blocks which define the configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below. - config?: [...#ConfigInitParameters] @go(Config,[]ConfigInitParameters) - - // Specifies the description of the Hours of Operation. - description?: null | string @go(Description,*string) - - // Specifies the name of the Hours of Operation. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the time zone of the Hours of Operation. - timeZone?: null | string @go(TimeZone,*string) -} - -#HoursOfOperationObservation: { - // The Amazon Resource Name (ARN) of the Hours of Operation. - arn?: null | string @go(Arn,*string) - - // One or more config blocks which define the configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below. - config?: [...#ConfigObservation] @go(Config,[]ConfigObservation) - - // Specifies the description of the Hours of Operation. - description?: null | string @go(Description,*string) - - // (Deprecated) The Amazon Resource Name (ARN) of the Hours of Operation. - hoursOfOperationArn?: null | string @go(HoursOfOperationArn,*string) - - // The identifier for the hours of operation. - hoursOfOperationId?: null | string @go(HoursOfOperationID,*string) - - // The identifier of the hosting Amazon Connect Instance and identifier of the Hours of Operation separated by a colon (:). - id?: null | string @go(ID,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - instanceId?: null | string @go(InstanceID,*string) - - // Specifies the name of the Hours of Operation. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Specifies the time zone of the Hours of Operation. - timeZone?: null | string @go(TimeZone,*string) -} - -#HoursOfOperationParameters: { - // One or more config blocks which define the configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below. - // +kubebuilder:validation:Optional - config?: [...#ConfigParameters] @go(Config,[]ConfigParameters) - - // Specifies the description of the Hours of Operation. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Specifies the name of the Hours of Operation. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the time zone of the Hours of Operation. - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#StartTimeInitParameters: { - // Specifies the hour of opening. - hours?: null | float64 @go(Hours,*float64) - - // Specifies the minute of opening. - minutes?: null | float64 @go(Minutes,*float64) -} - -#StartTimeObservation: { - // Specifies the hour of opening. - hours?: null | float64 @go(Hours,*float64) - - // Specifies the minute of opening. - minutes?: null | float64 @go(Minutes,*float64) -} - -#StartTimeParameters: { - // Specifies the hour of opening. - // +kubebuilder:validation:Optional - hours?: null | float64 @go(Hours,*float64) - - // Specifies the minute of opening. - // +kubebuilder:validation:Optional - minutes?: null | float64 @go(Minutes,*float64) -} - -// HoursOfOperationSpec defines the desired state of HoursOfOperation -#HoursOfOperationSpec: { - v1.#ResourceSpec - forProvider: #HoursOfOperationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HoursOfOperationInitParameters @go(InitProvider) -} - -// HoursOfOperationStatus defines the observed state of HoursOfOperation. -#HoursOfOperationStatus: { - v1.#ResourceStatus - atProvider?: #HoursOfOperationObservation @go(AtProvider) -} - -// HoursOfOperation is the Schema for the HoursOfOperations API. Provides details about a specific Amazon Connect Hours of Operation. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HoursOfOperation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.config) || (has(self.initProvider) && has(self.initProvider.config))",message="spec.forProvider.config is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.timeZone) || (has(self.initProvider) && has(self.initProvider.timeZone))",message="spec.forProvider.timeZone is a required parameter" - spec: #HoursOfOperationSpec @go(Spec) - status?: #HoursOfOperationStatus @go(Status) -} - -// HoursOfOperationList contains a list of HoursOfOperations -#HoursOfOperationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HoursOfOperation] @go(Items,[]HoursOfOperation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_instance_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_instance_types_go_gen.cue deleted file mode 100644 index 81b7f41..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_instance_types_go_gen.cue +++ /dev/null @@ -1,192 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InstanceInitParameters: { - // Specifies whether auto resolve best voices is enabled. Defaults to true. - autoResolveBestVoicesEnabled?: null | bool @go(AutoResolveBestVoicesEnabled,*bool) - - // Specifies whether contact flow logs are enabled. Defaults to false. - contactFlowLogsEnabled?: null | bool @go(ContactFlowLogsEnabled,*bool) - - // Specifies whether contact lens is enabled. Defaults to true. - contactLensEnabled?: null | bool @go(ContactLensEnabled,*bool) - - // Specifies whether early media for outbound calls is enabled . Defaults to true if outbound calls is enabled. - earlyMediaEnabled?: null | bool @go(EarlyMediaEnabled,*bool) - - // Specifies the identity management type attached to the instance. Allowed Values are: SAML, CONNECT_MANAGED, EXISTING_DIRECTORY. - identityManagementType?: null | string @go(IdentityManagementType,*string) - - // Specifies whether inbound calls are enabled. - inboundCallsEnabled?: null | bool @go(InboundCallsEnabled,*bool) - - // Specifies the name of the instance. Required if directory_id not specified. - instanceAlias?: null | string @go(InstanceAlias,*string) - - // Specifies whether multi-party calls/conference is enabled. Defaults to false. - multiPartyConferenceEnabled?: null | bool @go(MultiPartyConferenceEnabled,*bool) - - // Specifies whether outbound calls are enabled. - outboundCallsEnabled?: null | bool @go(OutboundCallsEnabled,*bool) -} - -#InstanceObservation: { - // Amazon Resource Name (ARN) of the instance. - arn?: null | string @go(Arn,*string) - - // Specifies whether auto resolve best voices is enabled. Defaults to true. - autoResolveBestVoicesEnabled?: null | bool @go(AutoResolveBestVoicesEnabled,*bool) - - // Specifies whether contact flow logs are enabled. Defaults to false. - contactFlowLogsEnabled?: null | bool @go(ContactFlowLogsEnabled,*bool) - - // Specifies whether contact lens is enabled. Defaults to true. - contactLensEnabled?: null | bool @go(ContactLensEnabled,*bool) - - // When the instance was created. - createdTime?: null | string @go(CreatedTime,*string) - - // The identifier for the directory if identity_management_type is EXISTING_DIRECTORY. - directoryId?: null | string @go(DirectoryID,*string) - - // Specifies whether early media for outbound calls is enabled . Defaults to true if outbound calls is enabled. - earlyMediaEnabled?: null | bool @go(EarlyMediaEnabled,*bool) - - // The identifier of the instance. - id?: null | string @go(ID,*string) - - // Specifies the identity management type attached to the instance. Allowed Values are: SAML, CONNECT_MANAGED, EXISTING_DIRECTORY. - identityManagementType?: null | string @go(IdentityManagementType,*string) - - // Specifies whether inbound calls are enabled. - inboundCallsEnabled?: null | bool @go(InboundCallsEnabled,*bool) - - // Specifies the name of the instance. Required if directory_id not specified. - instanceAlias?: null | string @go(InstanceAlias,*string) - - // Specifies whether multi-party calls/conference is enabled. Defaults to false. - multiPartyConferenceEnabled?: null | bool @go(MultiPartyConferenceEnabled,*bool) - - // Specifies whether outbound calls are enabled. - outboundCallsEnabled?: null | bool @go(OutboundCallsEnabled,*bool) - - // The service role of the instance. - serviceRole?: null | string @go(ServiceRole,*string) - - // The state of the instance. - status?: null | string @go(Status,*string) -} - -#InstanceParameters: { - // Specifies whether auto resolve best voices is enabled. Defaults to true. - // +kubebuilder:validation:Optional - autoResolveBestVoicesEnabled?: null | bool @go(AutoResolveBestVoicesEnabled,*bool) - - // Specifies whether contact flow logs are enabled. Defaults to false. - // +kubebuilder:validation:Optional - contactFlowLogsEnabled?: null | bool @go(ContactFlowLogsEnabled,*bool) - - // Specifies whether contact lens is enabled. Defaults to true. - // +kubebuilder:validation:Optional - contactLensEnabled?: null | bool @go(ContactLensEnabled,*bool) - - // The identifier for the directory if identity_management_type is EXISTING_DIRECTORY. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ds/v1beta1.Directory - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - directoryId?: null | string @go(DirectoryID,*string) - - // Reference to a Directory in ds to populate directoryId. - // +kubebuilder:validation:Optional - directoryIdRef?: null | v1.#Reference @go(DirectoryIDRef,*v1.Reference) - - // Selector for a Directory in ds to populate directoryId. - // +kubebuilder:validation:Optional - directoryIdSelector?: null | v1.#Selector @go(DirectoryIDSelector,*v1.Selector) - - // Specifies whether early media for outbound calls is enabled . Defaults to true if outbound calls is enabled. - // +kubebuilder:validation:Optional - earlyMediaEnabled?: null | bool @go(EarlyMediaEnabled,*bool) - - // Specifies the identity management type attached to the instance. Allowed Values are: SAML, CONNECT_MANAGED, EXISTING_DIRECTORY. - // +kubebuilder:validation:Optional - identityManagementType?: null | string @go(IdentityManagementType,*string) - - // Specifies whether inbound calls are enabled. - // +kubebuilder:validation:Optional - inboundCallsEnabled?: null | bool @go(InboundCallsEnabled,*bool) - - // Specifies the name of the instance. Required if directory_id not specified. - // +kubebuilder:validation:Optional - instanceAlias?: null | string @go(InstanceAlias,*string) - - // Specifies whether multi-party calls/conference is enabled. Defaults to false. - // +kubebuilder:validation:Optional - multiPartyConferenceEnabled?: null | bool @go(MultiPartyConferenceEnabled,*bool) - - // Specifies whether outbound calls are enabled. - // +kubebuilder:validation:Optional - outboundCallsEnabled?: null | bool @go(OutboundCallsEnabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// InstanceSpec defines the desired state of Instance -#InstanceSpec: { - v1.#ResourceSpec - forProvider: #InstanceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InstanceInitParameters @go(InitProvider) -} - -// InstanceStatus defines the observed state of Instance. -#InstanceStatus: { - v1.#ResourceStatus - atProvider?: #InstanceObservation @go(AtProvider) -} - -// Instance is the Schema for the Instances API. Provides details about a specific Connect Instance. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Instance: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.identityManagementType) || (has(self.initProvider) && has(self.initProvider.identityManagementType))",message="spec.forProvider.identityManagementType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.inboundCallsEnabled) || (has(self.initProvider) && has(self.initProvider.inboundCallsEnabled))",message="spec.forProvider.inboundCallsEnabled is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.outboundCallsEnabled) || (has(self.initProvider) && has(self.initProvider.outboundCallsEnabled))",message="spec.forProvider.outboundCallsEnabled is a required parameter" - spec: #InstanceSpec @go(Spec) - status?: #InstanceStatus @go(Status) -} - -// InstanceList contains a list of Instances -#InstanceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Instance] @go(Items,[]Instance) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_instancestorageconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_instancestorageconfig_types_go_gen.cue deleted file mode 100644 index d408327..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_instancestorageconfig_types_go_gen.cue +++ /dev/null @@ -1,361 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EncryptionConfigInitParameters: { - // The type of encryption. Valid Values: KMS. - encryptionType?: null | string @go(EncryptionType,*string) -} - -#EncryptionConfigObservation: { - // The type of encryption. Valid Values: KMS. - encryptionType?: null | string @go(EncryptionType,*string) - - // The full ARN of the encryption key. Be sure to provide the full ARN of the encryption key, not just the ID. - keyId?: null | string @go(KeyID,*string) -} - -#EncryptionConfigParameters: { - // The type of encryption. Valid Values: KMS. - // +kubebuilder:validation:Optional - encryptionType?: null | string @go(EncryptionType,*string) - - // The full ARN of the encryption key. Be sure to provide the full ARN of the encryption key, not just the ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - keyId?: null | string @go(KeyID,*string) - - // Reference to a Key in kms to populate keyId. - // +kubebuilder:validation:Optional - keyIdRef?: null | v1.#Reference @go(KeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate keyId. - // +kubebuilder:validation:Optional - keyIdSelector?: null | v1.#Selector @go(KeyIDSelector,*v1.Selector) -} - -#InstanceStorageConfigInitParameters: { - // A valid resource type. Valid Values: CHAT_TRANSCRIPTS | CALL_RECORDINGS | SCHEDULED_REPORTS | MEDIA_STREAMS | CONTACT_TRACE_RECORDS | AGENT_EVENTS | REAL_TIME_CONTACT_ANALYSIS_SEGMENTS. - resourceType?: null | string @go(ResourceType,*string) - - // Specifies the storage configuration options for the Connect Instance. Documented below. - storageConfig?: [...#StorageConfigInitParameters] @go(StorageConfig,[]StorageConfigInitParameters) -} - -#InstanceStorageConfigObservation: { - // The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID. - associationId?: null | string @go(AssociationID,*string) - - // The identifier of the hosting Amazon Connect Instance, association_id, and resource_type separated by a colon (:). - id?: null | string @go(ID,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - instanceId?: null | string @go(InstanceID,*string) - - // A valid resource type. Valid Values: CHAT_TRANSCRIPTS | CALL_RECORDINGS | SCHEDULED_REPORTS | MEDIA_STREAMS | CONTACT_TRACE_RECORDS | AGENT_EVENTS | REAL_TIME_CONTACT_ANALYSIS_SEGMENTS. - resourceType?: null | string @go(ResourceType,*string) - - // Specifies the storage configuration options for the Connect Instance. Documented below. - storageConfig?: [...#StorageConfigObservation] @go(StorageConfig,[]StorageConfigObservation) -} - -#InstanceStorageConfigParameters: { - // Specifies the identifier of the hosting Amazon Connect Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A valid resource type. Valid Values: CHAT_TRANSCRIPTS | CALL_RECORDINGS | SCHEDULED_REPORTS | MEDIA_STREAMS | CONTACT_TRACE_RECORDS | AGENT_EVENTS | REAL_TIME_CONTACT_ANALYSIS_SEGMENTS. - // +kubebuilder:validation:Optional - resourceType?: null | string @go(ResourceType,*string) - - // Specifies the storage configuration options for the Connect Instance. Documented below. - // +kubebuilder:validation:Optional - storageConfig?: [...#StorageConfigParameters] @go(StorageConfig,[]StorageConfigParameters) -} - -#KinesisFirehoseConfigInitParameters: { -} - -#KinesisFirehoseConfigObservation: { - // The Amazon Resource Name (ARN) of the delivery stream. - firehoseArn?: null | string @go(FirehoseArn,*string) -} - -#KinesisFirehoseConfigParameters: { - // The Amazon Resource Name (ARN) of the delivery stream. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/firehose/v1beta1.DeliveryStream - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",false) - // +kubebuilder:validation:Optional - firehoseArn?: null | string @go(FirehoseArn,*string) - - // Reference to a DeliveryStream in firehose to populate firehoseArn. - // +kubebuilder:validation:Optional - firehoseArnRef?: null | v1.#Reference @go(FirehoseArnRef,*v1.Reference) - - // Selector for a DeliveryStream in firehose to populate firehoseArn. - // +kubebuilder:validation:Optional - firehoseArnSelector?: null | v1.#Selector @go(FirehoseArnSelector,*v1.Selector) -} - -#KinesisStreamConfigInitParameters: { -} - -#KinesisStreamConfigObservation: { - // The Amazon Resource Name (ARN) of the data stream. - streamArn?: null | string @go(StreamArn,*string) -} - -#KinesisStreamConfigParameters: { - // The Amazon Resource Name (ARN) of the data stream. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kinesis/v1beta1.Stream - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",false) - // +kubebuilder:validation:Optional - streamArn?: null | string @go(StreamArn,*string) - - // Reference to a Stream in kinesis to populate streamArn. - // +kubebuilder:validation:Optional - streamArnRef?: null | v1.#Reference @go(StreamArnRef,*v1.Reference) - - // Selector for a Stream in kinesis to populate streamArn. - // +kubebuilder:validation:Optional - streamArnSelector?: null | v1.#Selector @go(StreamArnSelector,*v1.Selector) -} - -#KinesisVideoStreamConfigInitParameters: { - // The encryption configuration. Documented below. - encryptionConfig?: [...#EncryptionConfigInitParameters] @go(EncryptionConfig,[]EncryptionConfigInitParameters) - - // The prefix of the video stream. Minimum length of 1. Maximum length of 128. When read from the state, the value returned is -connect--contact- since the API appends additional details to the prefix. - prefix?: null | string @go(Prefix,*string) - - // The number of hours data is retained in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream. Minimum value of 0. Maximum value of 87600. A value of 0, indicates that the stream does not persist data. - retentionPeriodHours?: null | float64 @go(RetentionPeriodHours,*float64) -} - -#KinesisVideoStreamConfigObservation: { - // The encryption configuration. Documented below. - encryptionConfig?: [...#EncryptionConfigObservation] @go(EncryptionConfig,[]EncryptionConfigObservation) - - // The prefix of the video stream. Minimum length of 1. Maximum length of 128. When read from the state, the value returned is -connect--contact- since the API appends additional details to the prefix. - prefix?: null | string @go(Prefix,*string) - - // The number of hours data is retained in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream. Minimum value of 0. Maximum value of 87600. A value of 0, indicates that the stream does not persist data. - retentionPeriodHours?: null | float64 @go(RetentionPeriodHours,*float64) -} - -#KinesisVideoStreamConfigParameters: { - // The encryption configuration. Documented below. - // +kubebuilder:validation:Optional - encryptionConfig: [...#EncryptionConfigParameters] @go(EncryptionConfig,[]EncryptionConfigParameters) - - // The prefix of the video stream. Minimum length of 1. Maximum length of 128. When read from the state, the value returned is -connect--contact- since the API appends additional details to the prefix. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // The number of hours data is retained in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream. Minimum value of 0. Maximum value of 87600. A value of 0, indicates that the stream does not persist data. - // +kubebuilder:validation:Optional - retentionPeriodHours?: null | float64 @go(RetentionPeriodHours,*float64) -} - -#S3ConfigEncryptionConfigInitParameters: { - // The type of encryption. Valid Values: KMS. - encryptionType?: null | string @go(EncryptionType,*string) -} - -#S3ConfigEncryptionConfigObservation: { - // The type of encryption. Valid Values: KMS. - encryptionType?: null | string @go(EncryptionType,*string) - - // The full ARN of the encryption key. Be sure to provide the full ARN of the encryption key, not just the ID. - keyId?: null | string @go(KeyID,*string) -} - -#S3ConfigEncryptionConfigParameters: { - // The type of encryption. Valid Values: KMS. - // +kubebuilder:validation:Optional - encryptionType?: null | string @go(EncryptionType,*string) - - // The full ARN of the encryption key. Be sure to provide the full ARN of the encryption key, not just the ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - keyId?: null | string @go(KeyID,*string) - - // Reference to a Key in kms to populate keyId. - // +kubebuilder:validation:Optional - keyIdRef?: null | v1.#Reference @go(KeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate keyId. - // +kubebuilder:validation:Optional - keyIdSelector?: null | v1.#Selector @go(KeyIDSelector,*v1.Selector) -} - -#S3ConfigInitParameters: { - // The S3 bucket prefix. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // The encryption configuration. Documented below. - encryptionConfig?: [...#S3ConfigEncryptionConfigInitParameters] @go(EncryptionConfig,[]S3ConfigEncryptionConfigInitParameters) -} - -#S3ConfigObservation: { - // The S3 bucket name. - bucketName?: null | string @go(BucketName,*string) - - // The S3 bucket prefix. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // The encryption configuration. Documented below. - encryptionConfig?: [...#S3ConfigEncryptionConfigObservation] @go(EncryptionConfig,[]S3ConfigEncryptionConfigObservation) -} - -#S3ConfigParameters: { - // The S3 bucket name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Reference to a Bucket in s3 to populate bucketName. - // +kubebuilder:validation:Optional - bucketNameRef?: null | v1.#Reference @go(BucketNameRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucketName. - // +kubebuilder:validation:Optional - bucketNameSelector?: null | v1.#Selector @go(BucketNameSelector,*v1.Selector) - - // The S3 bucket prefix. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // The encryption configuration. Documented below. - // +kubebuilder:validation:Optional - encryptionConfig?: [...#S3ConfigEncryptionConfigParameters] @go(EncryptionConfig,[]S3ConfigEncryptionConfigParameters) -} - -#StorageConfigInitParameters: { - // A block that specifies the configuration of the Kinesis Firehose delivery stream. Documented below. - kinesisFirehoseConfig?: [...#KinesisFirehoseConfigInitParameters] @go(KinesisFirehoseConfig,[]KinesisFirehoseConfigInitParameters) - - // A block that specifies the configuration of the Kinesis data stream. Documented below. - kinesisStreamConfig?: [...#KinesisStreamConfigInitParameters] @go(KinesisStreamConfig,[]KinesisStreamConfigInitParameters) - - // A block that specifies the configuration of the Kinesis video stream. Documented below. - kinesisVideoStreamConfig?: [...#KinesisVideoStreamConfigInitParameters] @go(KinesisVideoStreamConfig,[]KinesisVideoStreamConfigInitParameters) - - // A block that specifies the configuration of S3 Bucket. Documented below. - s3Config?: [...#S3ConfigInitParameters] @go(S3Config,[]S3ConfigInitParameters) - - // A valid storage type. Valid Values: S3 | KINESIS_VIDEO_STREAM | KINESIS_STREAM | KINESIS_FIREHOSE. - storageType?: null | string @go(StorageType,*string) -} - -#StorageConfigObservation: { - // A block that specifies the configuration of the Kinesis Firehose delivery stream. Documented below. - kinesisFirehoseConfig?: [...#KinesisFirehoseConfigObservation] @go(KinesisFirehoseConfig,[]KinesisFirehoseConfigObservation) - - // A block that specifies the configuration of the Kinesis data stream. Documented below. - kinesisStreamConfig?: [...#KinesisStreamConfigObservation] @go(KinesisStreamConfig,[]KinesisStreamConfigObservation) - - // A block that specifies the configuration of the Kinesis video stream. Documented below. - kinesisVideoStreamConfig?: [...#KinesisVideoStreamConfigObservation] @go(KinesisVideoStreamConfig,[]KinesisVideoStreamConfigObservation) - - // A block that specifies the configuration of S3 Bucket. Documented below. - s3Config?: [...#S3ConfigObservation] @go(S3Config,[]S3ConfigObservation) - - // A valid storage type. Valid Values: S3 | KINESIS_VIDEO_STREAM | KINESIS_STREAM | KINESIS_FIREHOSE. - storageType?: null | string @go(StorageType,*string) -} - -#StorageConfigParameters: { - // A block that specifies the configuration of the Kinesis Firehose delivery stream. Documented below. - // +kubebuilder:validation:Optional - kinesisFirehoseConfig?: [...#KinesisFirehoseConfigParameters] @go(KinesisFirehoseConfig,[]KinesisFirehoseConfigParameters) - - // A block that specifies the configuration of the Kinesis data stream. Documented below. - // +kubebuilder:validation:Optional - kinesisStreamConfig?: [...#KinesisStreamConfigParameters] @go(KinesisStreamConfig,[]KinesisStreamConfigParameters) - - // A block that specifies the configuration of the Kinesis video stream. Documented below. - // +kubebuilder:validation:Optional - kinesisVideoStreamConfig?: [...#KinesisVideoStreamConfigParameters] @go(KinesisVideoStreamConfig,[]KinesisVideoStreamConfigParameters) - - // A block that specifies the configuration of S3 Bucket. Documented below. - // +kubebuilder:validation:Optional - s3Config?: [...#S3ConfigParameters] @go(S3Config,[]S3ConfigParameters) - - // A valid storage type. Valid Values: S3 | KINESIS_VIDEO_STREAM | KINESIS_STREAM | KINESIS_FIREHOSE. - // +kubebuilder:validation:Optional - storageType?: null | string @go(StorageType,*string) -} - -// InstanceStorageConfigSpec defines the desired state of InstanceStorageConfig -#InstanceStorageConfigSpec: { - v1.#ResourceSpec - forProvider: #InstanceStorageConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InstanceStorageConfigInitParameters @go(InitProvider) -} - -// InstanceStorageConfigStatus defines the observed state of InstanceStorageConfig. -#InstanceStorageConfigStatus: { - v1.#ResourceStatus - atProvider?: #InstanceStorageConfigObservation @go(AtProvider) -} - -// InstanceStorageConfig is the Schema for the InstanceStorageConfigs API. Provides details about a specific Amazon Connect Instance Storage Config. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#InstanceStorageConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.resourceType) || (has(self.initProvider) && has(self.initProvider.resourceType))",message="spec.forProvider.resourceType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.storageConfig) || (has(self.initProvider) && has(self.initProvider.storageConfig))",message="spec.forProvider.storageConfig is a required parameter" - spec: #InstanceStorageConfigSpec @go(Spec) - status?: #InstanceStorageConfigStatus @go(Status) -} - -// InstanceStorageConfigList contains a list of InstanceStorageConfigs -#InstanceStorageConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#InstanceStorageConfig] @go(Items,[]InstanceStorageConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_lambdafunctionassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_lambdafunctionassociation_types_go_gen.cue deleted file mode 100644 index 428c9ad..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_lambdafunctionassociation_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LambdaFunctionAssociationInitParameters: { -} - -#LambdaFunctionAssociationObservation: { - // Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier. - functionArn?: null | string @go(FunctionArn,*string) - - // The Amazon Connect instance ID and Lambda Function ARN separated by a comma (,). - id?: null | string @go(ID,*string) - - // The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance. - instanceId?: null | string @go(InstanceID,*string) -} - -#LambdaFunctionAssociationParameters: { - // Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - functionArn?: null | string @go(FunctionArn,*string) - - // Reference to a Function in lambda to populate functionArn. - // +kubebuilder:validation:Optional - functionArnRef?: null | v1.#Reference @go(FunctionArnRef,*v1.Reference) - - // Selector for a Function in lambda to populate functionArn. - // +kubebuilder:validation:Optional - functionArnSelector?: null | v1.#Selector @go(FunctionArnSelector,*v1.Selector) - - // The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// LambdaFunctionAssociationSpec defines the desired state of LambdaFunctionAssociation -#LambdaFunctionAssociationSpec: { - v1.#ResourceSpec - forProvider: #LambdaFunctionAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LambdaFunctionAssociationInitParameters @go(InitProvider) -} - -// LambdaFunctionAssociationStatus defines the observed state of LambdaFunctionAssociation. -#LambdaFunctionAssociationStatus: { - v1.#ResourceStatus - atProvider?: #LambdaFunctionAssociationObservation @go(AtProvider) -} - -// LambdaFunctionAssociation is the Schema for the LambdaFunctionAssociations API. Provides details about a specific Connect Lambda Function Association. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LambdaFunctionAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #LambdaFunctionAssociationSpec @go(Spec) - status?: #LambdaFunctionAssociationStatus @go(Status) -} - -// LambdaFunctionAssociationList contains a list of LambdaFunctionAssociations -#LambdaFunctionAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LambdaFunctionAssociation] @go(Items,[]LambdaFunctionAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_phonenumber_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_phonenumber_types_go_gen.cue deleted file mode 100644 index 9db5ad1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_phonenumber_types_go_gen.cue +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PhoneNumberInitParameters: { - // The ISO country code. For a list of Valid values, refer to PhoneNumberCountryCode. - countryCode?: null | string @go(CountryCode,*string) - - // The description of the phone number. - description?: null | string @go(Description,*string) - - // The prefix of the phone number that is used to filter available phone numbers. If provided, it must contain + as part of the country code. Do not specify this argument when importing the resource. - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of phone number. Valid Values: TOLL_FREE | DID. - type?: null | string @go(Type,*string) -} - -#PhoneNumberObservation: { - // The ARN of the phone number. - arn?: null | string @go(Arn,*string) - - // The ISO country code. For a list of Valid values, refer to PhoneNumberCountryCode. - countryCode?: null | string @go(CountryCode,*string) - - // The description of the phone number. - description?: null | string @go(Description,*string) - - // The identifier of the phone number. - id?: null | string @go(ID,*string) - - // The phone number. Phone numbers are formatted [+] [country code] [subscriber number including area code]. - phoneNumber?: null | string @go(PhoneNumber,*string) - - // The prefix of the phone number that is used to filter available phone numbers. If provided, it must contain + as part of the country code. Do not specify this argument when importing the resource. - prefix?: null | string @go(Prefix,*string) - - // A block that specifies status of the phone number. Documented below. - status?: [...#StatusObservation] @go(Status,[]StatusObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers are claimed to. - targetArn?: null | string @go(TargetArn,*string) - - // The type of phone number. Valid Values: TOLL_FREE | DID. - type?: null | string @go(Type,*string) -} - -#PhoneNumberParameters: { - // The ISO country code. For a list of Valid values, refer to PhoneNumberCountryCode. - // +kubebuilder:validation:Optional - countryCode?: null | string @go(CountryCode,*string) - - // The description of the phone number. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The prefix of the phone number that is used to filter available phone numbers. If provided, it must contain + as part of the country code. Do not specify this argument when importing the resource. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers are claimed to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - targetArn?: null | string @go(TargetArn,*string) - - // Reference to a Instance in connect to populate targetArn. - // +kubebuilder:validation:Optional - targetArnRef?: null | v1.#Reference @go(TargetArnRef,*v1.Reference) - - // Selector for a Instance in connect to populate targetArn. - // +kubebuilder:validation:Optional - targetArnSelector?: null | v1.#Selector @go(TargetArnSelector,*v1.Selector) - - // The type of phone number. Valid Values: TOLL_FREE | DID. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#StatusInitParameters: { -} - -#StatusObservation: { - // The status message. - message?: null | string @go(Message,*string) - - // The status of the phone number. Valid Values: CLAIMED | IN_PROGRESS | FAILED. - status?: null | string @go(Status,*string) -} - -#StatusParameters: { -} - -// PhoneNumberSpec defines the desired state of PhoneNumber -#PhoneNumberSpec: { - v1.#ResourceSpec - forProvider: #PhoneNumberParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PhoneNumberInitParameters @go(InitProvider) -} - -// PhoneNumberStatus defines the observed state of PhoneNumber. -#PhoneNumberStatus: { - v1.#ResourceStatus - atProvider?: #PhoneNumberObservation @go(AtProvider) -} - -// PhoneNumber is the Schema for the PhoneNumbers API. Provides details about a specific Amazon Connect Phone Number. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PhoneNumber: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.countryCode) || (has(self.initProvider) && has(self.initProvider.countryCode))",message="spec.forProvider.countryCode is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #PhoneNumberSpec @go(Spec) - status?: #PhoneNumberStatus @go(Status) -} - -// PhoneNumberList contains a list of PhoneNumbers -#PhoneNumberList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PhoneNumber] @go(Items,[]PhoneNumber) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_queue_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_queue_types_go_gen.cue deleted file mode 100644 index de46aa9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_queue_types_go_gen.cue +++ /dev/null @@ -1,221 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#OutboundCallerConfigInitParameters: { - // Specifies the caller ID name. - outboundCallerIdName?: null | string @go(OutboundCallerIDName,*string) - - // Specifies the caller ID number. - outboundCallerIdNumberId?: null | string @go(OutboundCallerIDNumberID,*string) - - // Specifies outbound whisper flow to be used during an outbound call. - outboundFlowId?: null | string @go(OutboundFlowID,*string) -} - -#OutboundCallerConfigObservation: { - // Specifies the caller ID name. - outboundCallerIdName?: null | string @go(OutboundCallerIDName,*string) - - // Specifies the caller ID number. - outboundCallerIdNumberId?: null | string @go(OutboundCallerIDNumberID,*string) - - // Specifies outbound whisper flow to be used during an outbound call. - outboundFlowId?: null | string @go(OutboundFlowID,*string) -} - -#OutboundCallerConfigParameters: { - // Specifies the caller ID name. - // +kubebuilder:validation:Optional - outboundCallerIdName?: null | string @go(OutboundCallerIDName,*string) - - // Specifies the caller ID number. - // +kubebuilder:validation:Optional - outboundCallerIdNumberId?: null | string @go(OutboundCallerIDNumberID,*string) - - // Specifies outbound whisper flow to be used during an outbound call. - // +kubebuilder:validation:Optional - outboundFlowId?: null | string @go(OutboundFlowID,*string) -} - -#QueueInitParameters: { - // Specifies the description of the Queue. - description?: null | string @go(Description,*string) - - // Specifies the maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0. - maxContacts?: null | float64 @go(MaxContacts,*float64) - - // Specifies the name of the Queue. - name?: null | string @go(Name,*string) - - // A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below. - outboundCallerConfig?: [...#OutboundCallerConfigInitParameters] @go(OutboundCallerConfig,[]OutboundCallerConfigInitParameters) - - // Specifies a list of quick connects ids that determine the quick connects available to agents who are working the queue. - quickConnectIds?: [...null | string] @go(QuickConnectIds,[]*string) - - // Specifies the description of the Queue. Valid values are ENABLED, DISABLED. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#QueueObservation: { - // The Amazon Resource Name (ARN) of the Queue. - arn?: null | string @go(Arn,*string) - - // Specifies the description of the Queue. - description?: null | string @go(Description,*string) - - // Specifies the identifier of the Hours of Operation. - hoursOfOperationId?: null | string @go(HoursOfOperationID,*string) - - // The identifier of the hosting Amazon Connect Instance and identifier of the Queue separated by a colon (:). - id?: null | string @go(ID,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - instanceId?: null | string @go(InstanceID,*string) - - // Specifies the maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0. - maxContacts?: null | float64 @go(MaxContacts,*float64) - - // Specifies the name of the Queue. - name?: null | string @go(Name,*string) - - // A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below. - outboundCallerConfig?: [...#OutboundCallerConfigObservation] @go(OutboundCallerConfig,[]OutboundCallerConfigObservation) - - // The identifier for the Queue. - queueId?: null | string @go(QueueID,*string) - - // Specifies a list of quick connects ids that determine the quick connects available to agents who are working the queue. - quickConnectIds?: [...null | string] @go(QuickConnectIds,[]*string) - quickConnectIdsAssociated?: [...null | string] @go(QuickConnectIdsAssociated,[]*string) - - // Specifies the description of the Queue. Valid values are ENABLED, DISABLED. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#QueueParameters: { - // Specifies the description of the Queue. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies the identifier of the Hours of Operation. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.HoursOfOperation - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("hours_of_operation_id",true) - // +kubebuilder:validation:Optional - hoursOfOperationId?: null | string @go(HoursOfOperationID,*string) - - // Reference to a HoursOfOperation in connect to populate hoursOfOperationId. - // +kubebuilder:validation:Optional - hoursOfOperationIdRef?: null | v1.#Reference @go(HoursOfOperationIDRef,*v1.Reference) - - // Selector for a HoursOfOperation in connect to populate hoursOfOperationId. - // +kubebuilder:validation:Optional - hoursOfOperationIdSelector?: null | v1.#Selector @go(HoursOfOperationIDSelector,*v1.Selector) - - // Specifies the identifier of the hosting Amazon Connect Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Specifies the maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0. - // +kubebuilder:validation:Optional - maxContacts?: null | float64 @go(MaxContacts,*float64) - - // Specifies the name of the Queue. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below. - // +kubebuilder:validation:Optional - outboundCallerConfig?: [...#OutboundCallerConfigParameters] @go(OutboundCallerConfig,[]OutboundCallerConfigParameters) - - // Specifies a list of quick connects ids that determine the quick connects available to agents who are working the queue. - // +kubebuilder:validation:Optional - quickConnectIds?: [...null | string] @go(QuickConnectIds,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the description of the Queue. Valid values are ENABLED, DISABLED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// QueueSpec defines the desired state of Queue -#QueueSpec: { - v1.#ResourceSpec - forProvider: #QueueParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #QueueInitParameters @go(InitProvider) -} - -// QueueStatus defines the observed state of Queue. -#QueueStatus: { - v1.#ResourceStatus - atProvider?: #QueueObservation @go(AtProvider) -} - -// Queue is the Schema for the Queues API. Provides details about a specific Amazon Connect Queue -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Queue: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #QueueSpec @go(Spec) - status?: #QueueStatus @go(Status) -} - -// QueueList contains a list of Queues -#QueueList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Queue] @go(Items,[]Queue) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_quickconnect_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_quickconnect_types_go_gen.cue deleted file mode 100644 index 8dc2046..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_quickconnect_types_go_gen.cue +++ /dev/null @@ -1,252 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PhoneConfigInitParameters: { - // Specifies the phone number in in E.164 format. - phoneNumber?: null | string @go(PhoneNumber,*string) -} - -#PhoneConfigObservation: { - // Specifies the phone number in in E.164 format. - phoneNumber?: null | string @go(PhoneNumber,*string) -} - -#PhoneConfigParameters: { - // Specifies the phone number in in E.164 format. - // +kubebuilder:validation:Optional - phoneNumber?: null | string @go(PhoneNumber,*string) -} - -#QueueConfigInitParameters: { - // Specifies the identifier of the contact flow. - contactFlowId?: null | string @go(ContactFlowID,*string) - - // Specifies the identifier for the queue. - queueId?: null | string @go(QueueID,*string) -} - -#QueueConfigObservation: { - // Specifies the identifier of the contact flow. - contactFlowId?: null | string @go(ContactFlowID,*string) - - // Specifies the identifier for the queue. - queueId?: null | string @go(QueueID,*string) -} - -#QueueConfigParameters: { - // Specifies the identifier of the contact flow. - // +kubebuilder:validation:Optional - contactFlowId?: null | string @go(ContactFlowID,*string) - - // Specifies the identifier for the queue. - // +kubebuilder:validation:Optional - queueId?: null | string @go(QueueID,*string) -} - -#QuickConnectConfigInitParameters: { - // Specifies the phone configuration of the Quick Connect. This is required only if quick_connect_type is PHONE_NUMBER. The phone_config block is documented below. - phoneConfig?: [...#PhoneConfigInitParameters] @go(PhoneConfig,[]PhoneConfigInitParameters) - - // Specifies the queue configuration of the Quick Connect. This is required only if quick_connect_type is QUEUE. The queue_config block is documented below. - queueConfig?: [...#QueueConfigInitParameters] @go(QueueConfig,[]QueueConfigInitParameters) - - // Specifies the configuration type of the quick connect. valid values are PHONE_NUMBER, QUEUE, USER. - quickConnectType?: null | string @go(QuickConnectType,*string) - - // Specifies the user configuration of the Quick Connect. This is required only if quick_connect_type is USER. The user_config block is documented below. - userConfig?: [...#UserConfigInitParameters] @go(UserConfig,[]UserConfigInitParameters) -} - -#QuickConnectConfigObservation: { - // Specifies the phone configuration of the Quick Connect. This is required only if quick_connect_type is PHONE_NUMBER. The phone_config block is documented below. - phoneConfig?: [...#PhoneConfigObservation] @go(PhoneConfig,[]PhoneConfigObservation) - - // Specifies the queue configuration of the Quick Connect. This is required only if quick_connect_type is QUEUE. The queue_config block is documented below. - queueConfig?: [...#QueueConfigObservation] @go(QueueConfig,[]QueueConfigObservation) - - // Specifies the configuration type of the quick connect. valid values are PHONE_NUMBER, QUEUE, USER. - quickConnectType?: null | string @go(QuickConnectType,*string) - - // Specifies the user configuration of the Quick Connect. This is required only if quick_connect_type is USER. The user_config block is documented below. - userConfig?: [...#UserConfigObservation] @go(UserConfig,[]UserConfigObservation) -} - -#QuickConnectConfigParameters: { - // Specifies the phone configuration of the Quick Connect. This is required only if quick_connect_type is PHONE_NUMBER. The phone_config block is documented below. - // +kubebuilder:validation:Optional - phoneConfig?: [...#PhoneConfigParameters] @go(PhoneConfig,[]PhoneConfigParameters) - - // Specifies the queue configuration of the Quick Connect. This is required only if quick_connect_type is QUEUE. The queue_config block is documented below. - // +kubebuilder:validation:Optional - queueConfig?: [...#QueueConfigParameters] @go(QueueConfig,[]QueueConfigParameters) - - // Specifies the configuration type of the quick connect. valid values are PHONE_NUMBER, QUEUE, USER. - // +kubebuilder:validation:Optional - quickConnectType?: null | string @go(QuickConnectType,*string) - - // Specifies the user configuration of the Quick Connect. This is required only if quick_connect_type is USER. The user_config block is documented below. - // +kubebuilder:validation:Optional - userConfig?: [...#UserConfigParameters] @go(UserConfig,[]UserConfigParameters) -} - -#QuickConnectInitParameters: { - // Specifies the description of the Quick Connect. - description?: null | string @go(Description,*string) - - // Specifies the name of the Quick Connect. - name?: null | string @go(Name,*string) - - // A block that defines the configuration information for the Quick Connect: quick_connect_type and one of phone_config, queue_config, user_config . The Quick Connect Config block is documented below. - quickConnectConfig?: [...#QuickConnectConfigInitParameters] @go(QuickConnectConfig,[]QuickConnectConfigInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#QuickConnectObservation: { - // The Amazon Resource Name (ARN) of the Quick Connect. - arn?: null | string @go(Arn,*string) - - // Specifies the description of the Quick Connect. - description?: null | string @go(Description,*string) - - // The identifier of the hosting Amazon Connect Instance and identifier of the Quick Connect separated by a colon (:). - id?: null | string @go(ID,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - instanceId?: null | string @go(InstanceID,*string) - - // Specifies the name of the Quick Connect. - name?: null | string @go(Name,*string) - - // A block that defines the configuration information for the Quick Connect: quick_connect_type and one of phone_config, queue_config, user_config . The Quick Connect Config block is documented below. - quickConnectConfig?: [...#QuickConnectConfigObservation] @go(QuickConnectConfig,[]QuickConnectConfigObservation) - - // The identifier for the Quick Connect. - quickConnectId?: null | string @go(QuickConnectID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#QuickConnectParameters: { - // Specifies the description of the Quick Connect. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Specifies the name of the Quick Connect. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A block that defines the configuration information for the Quick Connect: quick_connect_type and one of phone_config, queue_config, user_config . The Quick Connect Config block is documented below. - // +kubebuilder:validation:Optional - quickConnectConfig?: [...#QuickConnectConfigParameters] @go(QuickConnectConfig,[]QuickConnectConfigParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#UserConfigInitParameters: { - // Specifies the identifier of the contact flow. - contactFlowId?: null | string @go(ContactFlowID,*string) - - // Specifies the identifier for the user. - userId?: null | string @go(UserID,*string) -} - -#UserConfigObservation: { - // Specifies the identifier of the contact flow. - contactFlowId?: null | string @go(ContactFlowID,*string) - - // Specifies the identifier for the user. - userId?: null | string @go(UserID,*string) -} - -#UserConfigParameters: { - // Specifies the identifier of the contact flow. - // +kubebuilder:validation:Optional - contactFlowId?: null | string @go(ContactFlowID,*string) - - // Specifies the identifier for the user. - // +kubebuilder:validation:Optional - userId?: null | string @go(UserID,*string) -} - -// QuickConnectSpec defines the desired state of QuickConnect -#QuickConnectSpec: { - v1.#ResourceSpec - forProvider: #QuickConnectParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #QuickConnectInitParameters @go(InitProvider) -} - -// QuickConnectStatus defines the observed state of QuickConnect. -#QuickConnectStatus: { - v1.#ResourceStatus - atProvider?: #QuickConnectObservation @go(AtProvider) -} - -// QuickConnect is the Schema for the QuickConnects API. Provides details about a specific Amazon Quick Connect -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#QuickConnect: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.quickConnectConfig) || (has(self.initProvider) && has(self.initProvider.quickConnectConfig))",message="spec.forProvider.quickConnectConfig is a required parameter" - spec: #QuickConnectSpec @go(Spec) - status?: #QuickConnectStatus @go(Status) -} - -// QuickConnectList contains a list of QuickConnects -#QuickConnectList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#QuickConnect] @go(Items,[]QuickConnect) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_routingprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_routingprofile_types_go_gen.cue deleted file mode 100644 index 4322630..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_routingprofile_types_go_gen.cue +++ /dev/null @@ -1,271 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MediaConcurrenciesInitParameters: { - // Specifies the channels that agents can handle in the Contact Control Panel (CCP). Valid values are VOICE, CHAT, TASK. - channel?: null | string @go(Channel,*string) - - // Specifies the number of contacts an agent can have on a channel simultaneously. Valid Range for VOICE: Minimum value of 1. Maximum value of 1. Valid Range for CHAT: Minimum value of 1. Maximum value of 10. Valid Range for TASK: Minimum value of 1. Maximum value of 10. - concurrency?: null | float64 @go(Concurrency,*float64) -} - -#MediaConcurrenciesObservation: { - // Specifies the channels that agents can handle in the Contact Control Panel (CCP). Valid values are VOICE, CHAT, TASK. - channel?: null | string @go(Channel,*string) - - // Specifies the number of contacts an agent can have on a channel simultaneously. Valid Range for VOICE: Minimum value of 1. Maximum value of 1. Valid Range for CHAT: Minimum value of 1. Maximum value of 10. Valid Range for TASK: Minimum value of 1. Maximum value of 10. - concurrency?: null | float64 @go(Concurrency,*float64) -} - -#MediaConcurrenciesParameters: { - // Specifies the channels that agents can handle in the Contact Control Panel (CCP). Valid values are VOICE, CHAT, TASK. - // +kubebuilder:validation:Optional - channel?: null | string @go(Channel,*string) - - // Specifies the number of contacts an agent can have on a channel simultaneously. Valid Range for VOICE: Minimum value of 1. Maximum value of 1. Valid Range for CHAT: Minimum value of 1. Maximum value of 10. Valid Range for TASK: Minimum value of 1. Maximum value of 10. - // +kubebuilder:validation:Optional - concurrency?: null | float64 @go(Concurrency,*float64) -} - -#QueueConfigsAssociatedInitParameters: { -} - -#QueueConfigsAssociatedObservation: { - // Specifies the channels agents can handle in the Contact Control Panel (CCP) for this routing profile. Valid values are VOICE, CHAT, TASK. - channel?: null | string @go(Channel,*string) - - // Specifies the delay, in seconds, that a contact should be in the queue before they are routed to an available agent - delay?: null | float64 @go(Delay,*float64) - - // Specifies the order in which contacts are to be handled for the queue. - priority?: null | float64 @go(Priority,*float64) - - // ARN for the queue. - queueArn?: null | string @go(QueueArn,*string) - - // Specifies the identifier for the queue. - queueId?: null | string @go(QueueID,*string) - - // Name for the queue. - queueName?: null | string @go(QueueName,*string) -} - -#QueueConfigsAssociatedParameters: { -} - -#QueueConfigsInitParameters: { - // Specifies the channels agents can handle in the Contact Control Panel (CCP) for this routing profile. Valid values are VOICE, CHAT, TASK. - channel?: null | string @go(Channel,*string) - - // Specifies the delay, in seconds, that a contact should be in the queue before they are routed to an available agent - delay?: null | float64 @go(Delay,*float64) - - // Specifies the order in which contacts are to be handled for the queue. - priority?: null | float64 @go(Priority,*float64) - - // Specifies the identifier for the queue. - queueId?: null | string @go(QueueID,*string) -} - -#QueueConfigsObservation: { - // Specifies the channels agents can handle in the Contact Control Panel (CCP) for this routing profile. Valid values are VOICE, CHAT, TASK. - channel?: null | string @go(Channel,*string) - - // Specifies the delay, in seconds, that a contact should be in the queue before they are routed to an available agent - delay?: null | float64 @go(Delay,*float64) - - // Specifies the order in which contacts are to be handled for the queue. - priority?: null | float64 @go(Priority,*float64) - - // ARN for the queue. - queueArn?: null | string @go(QueueArn,*string) - - // Specifies the identifier for the queue. - queueId?: null | string @go(QueueID,*string) - - // Name for the queue. - queueName?: null | string @go(QueueName,*string) -} - -#QueueConfigsParameters: { - // Specifies the channels agents can handle in the Contact Control Panel (CCP) for this routing profile. Valid values are VOICE, CHAT, TASK. - // +kubebuilder:validation:Optional - channel?: null | string @go(Channel,*string) - - // Specifies the delay, in seconds, that a contact should be in the queue before they are routed to an available agent - // +kubebuilder:validation:Optional - delay?: null | float64 @go(Delay,*float64) - - // Specifies the order in which contacts are to be handled for the queue. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // Specifies the identifier for the queue. - // +kubebuilder:validation:Optional - queueId?: null | string @go(QueueID,*string) -} - -#RoutingProfileInitParameters: { - // Specifies the description of the Routing Profile. - description?: null | string @go(Description,*string) - - // One or more media_concurrencies blocks that specify the channels that agents can handle in the Contact Control Panel (CCP) for this Routing Profile. The media_concurrencies block is documented below. - mediaConcurrencies?: [...#MediaConcurrenciesInitParameters] @go(MediaConcurrencies,[]MediaConcurrenciesInitParameters) - - // Specifies the name of the Routing Profile. - name?: null | string @go(Name,*string) - - // One or more queue_configs blocks that specify the inbound queues associated with the routing profile. If no queue is added, the agent only can make outbound calls. The queue_configs block is documented below. - queueConfigs?: [...#QueueConfigsInitParameters] @go(QueueConfigs,[]QueueConfigsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RoutingProfileObservation: { - // The Amazon Resource Name (ARN) of the Routing Profile. - arn?: null | string @go(Arn,*string) - - // Specifies the default outbound queue for the Routing Profile. - defaultOutboundQueueId?: null | string @go(DefaultOutboundQueueID,*string) - - // Specifies the description of the Routing Profile. - description?: null | string @go(Description,*string) - - // The identifier of the hosting Amazon Connect Instance and identifier of the Routing Profile separated by a colon (:). - id?: null | string @go(ID,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - instanceId?: null | string @go(InstanceID,*string) - - // One or more media_concurrencies blocks that specify the channels that agents can handle in the Contact Control Panel (CCP) for this Routing Profile. The media_concurrencies block is documented below. - mediaConcurrencies?: [...#MediaConcurrenciesObservation] @go(MediaConcurrencies,[]MediaConcurrenciesObservation) - - // Specifies the name of the Routing Profile. - name?: null | string @go(Name,*string) - - // One or more queue_configs blocks that specify the inbound queues associated with the routing profile. If no queue is added, the agent only can make outbound calls. The queue_configs block is documented below. - queueConfigs?: [...#QueueConfigsObservation] @go(QueueConfigs,[]QueueConfigsObservation) - queueConfigsAssociated?: [...#QueueConfigsAssociatedObservation] @go(QueueConfigsAssociated,[]QueueConfigsAssociatedObservation) - - // The identifier for the Routing Profile. - routingProfileId?: null | string @go(RoutingProfileID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RoutingProfileParameters: { - // Specifies the default outbound queue for the Routing Profile. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Queue - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("queue_id",true) - // +kubebuilder:validation:Optional - defaultOutboundQueueId?: null | string @go(DefaultOutboundQueueID,*string) - - // Reference to a Queue in connect to populate defaultOutboundQueueId. - // +kubebuilder:validation:Optional - defaultOutboundQueueIdRef?: null | v1.#Reference @go(DefaultOutboundQueueIDRef,*v1.Reference) - - // Selector for a Queue in connect to populate defaultOutboundQueueId. - // +kubebuilder:validation:Optional - defaultOutboundQueueIdSelector?: null | v1.#Selector @go(DefaultOutboundQueueIDSelector,*v1.Selector) - - // Specifies the description of the Routing Profile. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // One or more media_concurrencies blocks that specify the channels that agents can handle in the Contact Control Panel (CCP) for this Routing Profile. The media_concurrencies block is documented below. - // +kubebuilder:validation:Optional - mediaConcurrencies?: [...#MediaConcurrenciesParameters] @go(MediaConcurrencies,[]MediaConcurrenciesParameters) - - // Specifies the name of the Routing Profile. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // One or more queue_configs blocks that specify the inbound queues associated with the routing profile. If no queue is added, the agent only can make outbound calls. The queue_configs block is documented below. - // +kubebuilder:validation:Optional - queueConfigs?: [...#QueueConfigsParameters] @go(QueueConfigs,[]QueueConfigsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RoutingProfileSpec defines the desired state of RoutingProfile -#RoutingProfileSpec: { - v1.#ResourceSpec - forProvider: #RoutingProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RoutingProfileInitParameters @go(InitProvider) -} - -// RoutingProfileStatus defines the observed state of RoutingProfile. -#RoutingProfileStatus: { - v1.#ResourceStatus - atProvider?: #RoutingProfileObservation @go(AtProvider) -} - -// RoutingProfile is the Schema for the RoutingProfiles API. Provides details about a specific Amazon Connect Routing Profile. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RoutingProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.description) || (has(self.initProvider) && has(self.initProvider.description))",message="spec.forProvider.description is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.mediaConcurrencies) || (has(self.initProvider) && has(self.initProvider.mediaConcurrencies))",message="spec.forProvider.mediaConcurrencies is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #RoutingProfileSpec @go(Spec) - status?: #RoutingProfileStatus @go(Status) -} - -// RoutingProfileList contains a list of RoutingProfiles -#RoutingProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RoutingProfile] @go(Items,[]RoutingProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_securityprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_securityprofile_types_go_gen.cue deleted file mode 100644 index 9680533..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_securityprofile_types_go_gen.cue +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SecurityProfileInitParameters: { - // Specifies the description of the Security Profile. - description?: null | string @go(Description,*string) - - // Specifies the name of the Security Profile. - name?: null | string @go(Name,*string) - - // Specifies a list of permissions assigned to the security profile. - permissions?: [...null | string] @go(Permissions,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SecurityProfileObservation: { - // The Amazon Resource Name (ARN) of the Security Profile. - arn?: null | string @go(Arn,*string) - - // Specifies the description of the Security Profile. - description?: null | string @go(Description,*string) - - // The identifier of the hosting Amazon Connect Instance and identifier of the Security Profile separated by a colon (:). - id?: null | string @go(ID,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - instanceId?: null | string @go(InstanceID,*string) - - // Specifies the name of the Security Profile. - name?: null | string @go(Name,*string) - - // The organization resource identifier for the security profile. - organizationResourceId?: null | string @go(OrganizationResourceID,*string) - - // Specifies a list of permissions assigned to the security profile. - permissions?: [...null | string] @go(Permissions,[]*string) - - // The identifier for the Security Profile. - securityProfileId?: null | string @go(SecurityProfileID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SecurityProfileParameters: { - // Specifies the description of the Security Profile. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Specifies the name of the Security Profile. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Specifies a list of permissions assigned to the security profile. - // +kubebuilder:validation:Optional - permissions?: [...null | string] @go(Permissions,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SecurityProfileSpec defines the desired state of SecurityProfile -#SecurityProfileSpec: { - v1.#ResourceSpec - forProvider: #SecurityProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SecurityProfileInitParameters @go(InitProvider) -} - -// SecurityProfileStatus defines the observed state of SecurityProfile. -#SecurityProfileStatus: { - v1.#ResourceStatus - atProvider?: #SecurityProfileObservation @go(AtProvider) -} - -// SecurityProfile is the Schema for the SecurityProfiles API. Provides details about a specific Amazon Connect Security Profile. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SecurityProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #SecurityProfileSpec @go(Spec) - status?: #SecurityProfileStatus @go(Status) -} - -// SecurityProfileList contains a list of SecurityProfiles -#SecurityProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SecurityProfile] @go(Items,[]SecurityProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_user_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_user_types_go_gen.cue deleted file mode 100644 index 56af10c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_user_types_go_gen.cue +++ /dev/null @@ -1,273 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IdentityInfoInitParameters: { - // The email address. If you are using SAML for identity management and include this parameter, an error is returned. Note that updates to the email is supported. From the UpdateUserIdentityInfo API documentation it is strongly recommended to limit who has the ability to invoke UpdateUserIdentityInfo. Someone with that ability can change the login credentials of other users by changing their email address. This poses a security risk to your organization. They can change the email address of a user to the attacker's email address, and then reset the password through email. For more information, see Best Practices for Security Profiles in the Amazon Connect Administrator Guide. - email?: null | string @go(Email,*string) - - // The first name. This is required if you are using Amazon Connect or SAML for identity management. Minimum length of 1. Maximum length of 100. - firstName?: null | string @go(FirstName,*string) - - // The last name. This is required if you are using Amazon Connect or SAML for identity management. Minimum length of 1. Maximum length of 100. - lastName?: null | string @go(LastName,*string) -} - -#IdentityInfoObservation: { - // The email address. If you are using SAML for identity management and include this parameter, an error is returned. Note that updates to the email is supported. From the UpdateUserIdentityInfo API documentation it is strongly recommended to limit who has the ability to invoke UpdateUserIdentityInfo. Someone with that ability can change the login credentials of other users by changing their email address. This poses a security risk to your organization. They can change the email address of a user to the attacker's email address, and then reset the password through email. For more information, see Best Practices for Security Profiles in the Amazon Connect Administrator Guide. - email?: null | string @go(Email,*string) - - // The first name. This is required if you are using Amazon Connect or SAML for identity management. Minimum length of 1. Maximum length of 100. - firstName?: null | string @go(FirstName,*string) - - // The last name. This is required if you are using Amazon Connect or SAML for identity management. Minimum length of 1. Maximum length of 100. - lastName?: null | string @go(LastName,*string) -} - -#IdentityInfoParameters: { - // The email address. If you are using SAML for identity management and include this parameter, an error is returned. Note that updates to the email is supported. From the UpdateUserIdentityInfo API documentation it is strongly recommended to limit who has the ability to invoke UpdateUserIdentityInfo. Someone with that ability can change the login credentials of other users by changing their email address. This poses a security risk to your organization. They can change the email address of a user to the attacker's email address, and then reset the password through email. For more information, see Best Practices for Security Profiles in the Amazon Connect Administrator Guide. - // +kubebuilder:validation:Optional - email?: null | string @go(Email,*string) - - // The first name. This is required if you are using Amazon Connect or SAML for identity management. Minimum length of 1. Maximum length of 100. - // +kubebuilder:validation:Optional - firstName?: null | string @go(FirstName,*string) - - // The last name. This is required if you are using Amazon Connect or SAML for identity management. Minimum length of 1. Maximum length of 100. - // +kubebuilder:validation:Optional - lastName?: null | string @go(LastName,*string) -} - -#UserInitParameters: { - // The identifier of the user account in the directory used for identity management. If Amazon Connect cannot access the directory, you can specify this identifier to authenticate users. If you include the identifier, we assume that Amazon Connect cannot access the directory. Otherwise, the identity information is used to authenticate users from your directory. This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an error is returned. - directoryUserId?: null | string @go(DirectoryUserID,*string) - - // The identifier of the hierarchy group for the user. - hierarchyGroupId?: null | string @go(HierarchyGroupID,*string) - - // A block that contains information about the identity of the user. Documented below. - identityInfo?: [...#IdentityInfoInitParameters] @go(IdentityInfo,[]IdentityInfoInitParameters) - - // The user name for the account. For instances not using SAML for identity management, the user name can include up to 20 characters. If you are using SAML for identity management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+. - name?: null | string @go(Name,*string) - - // A block that contains information about the phone settings for the user. Documented below. - phoneConfig?: [...#UserPhoneConfigInitParameters] @go(PhoneConfig,[]UserPhoneConfigInitParameters) - - // A list of identifiers for the security profiles for the user. Specify a minimum of 1 and maximum of 10 security profile ids. For more information, see Best Practices for Security Profiles in the Amazon Connect Administrator Guide. - securityProfileIds?: [...null | string] @go(SecurityProfileIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#UserObservation: { - // The Amazon Resource Name (ARN) of the user. - arn?: null | string @go(Arn,*string) - - // The identifier of the user account in the directory used for identity management. If Amazon Connect cannot access the directory, you can specify this identifier to authenticate users. If you include the identifier, we assume that Amazon Connect cannot access the directory. Otherwise, the identity information is used to authenticate users from your directory. This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an error is returned. - directoryUserId?: null | string @go(DirectoryUserID,*string) - - // The identifier of the hierarchy group for the user. - hierarchyGroupId?: null | string @go(HierarchyGroupID,*string) - - // The identifier of the hosting Amazon Connect Instance and identifier of the user - // separated by a colon (:). - id?: null | string @go(ID,*string) - - // A block that contains information about the identity of the user. Documented below. - identityInfo?: [...#IdentityInfoObservation] @go(IdentityInfo,[]IdentityInfoObservation) - - // Specifies the identifier of the hosting Amazon Connect Instance. - instanceId?: null | string @go(InstanceID,*string) - - // The user name for the account. For instances not using SAML for identity management, the user name can include up to 20 characters. If you are using SAML for identity management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+. - name?: null | string @go(Name,*string) - - // A block that contains information about the phone settings for the user. Documented below. - phoneConfig?: [...#UserPhoneConfigObservation] @go(PhoneConfig,[]UserPhoneConfigObservation) - - // The identifier of the routing profile for the user. - routingProfileId?: null | string @go(RoutingProfileID,*string) - - // A list of identifiers for the security profiles for the user. Specify a minimum of 1 and maximum of 10 security profile ids. For more information, see Best Practices for Security Profiles in the Amazon Connect Administrator Guide. - securityProfileIds?: [...null | string] @go(SecurityProfileIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The identifier for the user. - userId?: null | string @go(UserID,*string) -} - -#UserParameters: { - // The identifier of the user account in the directory used for identity management. If Amazon Connect cannot access the directory, you can specify this identifier to authenticate users. If you include the identifier, we assume that Amazon Connect cannot access the directory. Otherwise, the identity information is used to authenticate users from your directory. This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an error is returned. - // +kubebuilder:validation:Optional - directoryUserId?: null | string @go(DirectoryUserID,*string) - - // The identifier of the hierarchy group for the user. - // +kubebuilder:validation:Optional - hierarchyGroupId?: null | string @go(HierarchyGroupID,*string) - - // A block that contains information about the identity of the user. Documented below. - // +kubebuilder:validation:Optional - identityInfo?: [...#IdentityInfoParameters] @go(IdentityInfo,[]IdentityInfoParameters) - - // Specifies the identifier of the hosting Amazon Connect Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // The user name for the account. For instances not using SAML for identity management, the user name can include up to 20 characters. If you are using SAML for identity management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The password for the user account. A password is required if you are using Amazon Connect for identity management. Otherwise, it is an error to include a password. - // +kubebuilder:validation:Optional - passwordSecretRef?: null | v1.#SecretKeySelector @go(PasswordSecretRef,*v1.SecretKeySelector) - - // A block that contains information about the phone settings for the user. Documented below. - // +kubebuilder:validation:Optional - phoneConfig?: [...#UserPhoneConfigParameters] @go(PhoneConfig,[]UserPhoneConfigParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The identifier of the routing profile for the user. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.RoutingProfile - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("routing_profile_id",true) - // +kubebuilder:validation:Optional - routingProfileId?: null | string @go(RoutingProfileID,*string) - - // Reference to a RoutingProfile in connect to populate routingProfileId. - // +kubebuilder:validation:Optional - routingProfileIdRef?: null | v1.#Reference @go(RoutingProfileIDRef,*v1.Reference) - - // Selector for a RoutingProfile in connect to populate routingProfileId. - // +kubebuilder:validation:Optional - routingProfileIdSelector?: null | v1.#Selector @go(RoutingProfileIDSelector,*v1.Selector) - - // A list of identifiers for the security profiles for the user. Specify a minimum of 1 and maximum of 10 security profile ids. For more information, see Best Practices for Security Profiles in the Amazon Connect Administrator Guide. - // +kubebuilder:validation:Optional - securityProfileIds?: [...null | string] @go(SecurityProfileIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#UserPhoneConfigInitParameters: { - // The After Call Work (ACW) timeout setting, in seconds. Minimum value of 0. - afterContactWorkTimeLimit?: null | float64 @go(AfterContactWorkTimeLimit,*float64) - - // When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically. - autoAccept?: null | bool @go(AutoAccept,*bool) - - // The phone number for the user's desk phone. Required if phone_type is set as DESK_PHONE. - deskPhoneNumber?: null | string @go(DeskPhoneNumber,*string) - - // The phone type. Valid values are DESK_PHONE and SOFT_PHONE. - phoneType?: null | string @go(PhoneType,*string) -} - -#UserPhoneConfigObservation: { - // The After Call Work (ACW) timeout setting, in seconds. Minimum value of 0. - afterContactWorkTimeLimit?: null | float64 @go(AfterContactWorkTimeLimit,*float64) - - // When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically. - autoAccept?: null | bool @go(AutoAccept,*bool) - - // The phone number for the user's desk phone. Required if phone_type is set as DESK_PHONE. - deskPhoneNumber?: null | string @go(DeskPhoneNumber,*string) - - // The phone type. Valid values are DESK_PHONE and SOFT_PHONE. - phoneType?: null | string @go(PhoneType,*string) -} - -#UserPhoneConfigParameters: { - // The After Call Work (ACW) timeout setting, in seconds. Minimum value of 0. - // +kubebuilder:validation:Optional - afterContactWorkTimeLimit?: null | float64 @go(AfterContactWorkTimeLimit,*float64) - - // When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically. - // +kubebuilder:validation:Optional - autoAccept?: null | bool @go(AutoAccept,*bool) - - // The phone number for the user's desk phone. Required if phone_type is set as DESK_PHONE. - // +kubebuilder:validation:Optional - deskPhoneNumber?: null | string @go(DeskPhoneNumber,*string) - - // The phone type. Valid values are DESK_PHONE and SOFT_PHONE. - // +kubebuilder:validation:Optional - phoneType?: null | string @go(PhoneType,*string) -} - -// UserSpec defines the desired state of User -#UserSpec: { - v1.#ResourceSpec - forProvider: #UserParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserInitParameters @go(InitProvider) -} - -// UserStatus defines the observed state of User. -#UserStatus: { - v1.#ResourceStatus - atProvider?: #UserObservation @go(AtProvider) -} - -// User is the Schema for the Users API. Provides details about a specific Amazon Connect User -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#User: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.phoneConfig) || (has(self.initProvider) && has(self.initProvider.phoneConfig))",message="spec.forProvider.phoneConfig is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.securityProfileIds) || (has(self.initProvider) && has(self.initProvider.securityProfileIds))",message="spec.forProvider.securityProfileIds is a required parameter" - spec: #UserSpec @go(Spec) - status?: #UserStatus @go(Status) -} - -// UserList contains a list of Users -#UserList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#User] @go(Items,[]User) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_userhierarchystructure_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_userhierarchystructure_types_go_gen.cue deleted file mode 100644 index 62246dd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_userhierarchystructure_types_go_gen.cue +++ /dev/null @@ -1,264 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HierarchyStructureInitParameters: { - // A block that defines the details of level five. The level block is documented below. - levelFive?: [...#LevelFiveInitParameters] @go(LevelFive,[]LevelFiveInitParameters) - - // A block that defines the details of level four. The level block is documented below. - levelFour?: [...#LevelFourInitParameters] @go(LevelFour,[]LevelFourInitParameters) - - // A block that defines the details of level one. The level block is documented below. - levelOne?: [...#LevelOneInitParameters] @go(LevelOne,[]LevelOneInitParameters) - - // A block that defines the details of level three. The level block is documented below. - levelThree?: [...#LevelThreeInitParameters] @go(LevelThree,[]LevelThreeInitParameters) - - // A block that defines the details of level two. The level block is documented below. - levelTwo?: [...#LevelTwoInitParameters] @go(LevelTwo,[]LevelTwoInitParameters) -} - -#HierarchyStructureObservation: { - // A block that defines the details of level five. The level block is documented below. - levelFive?: [...#LevelFiveObservation] @go(LevelFive,[]LevelFiveObservation) - - // A block that defines the details of level four. The level block is documented below. - levelFour?: [...#LevelFourObservation] @go(LevelFour,[]LevelFourObservation) - - // A block that defines the details of level one. The level block is documented below. - levelOne?: [...#LevelOneObservation] @go(LevelOne,[]LevelOneObservation) - - // A block that defines the details of level three. The level block is documented below. - levelThree?: [...#LevelThreeObservation] @go(LevelThree,[]LevelThreeObservation) - - // A block that defines the details of level two. The level block is documented below. - levelTwo?: [...#LevelTwoObservation] @go(LevelTwo,[]LevelTwoObservation) -} - -#HierarchyStructureParameters: { - // A block that defines the details of level five. The level block is documented below. - // +kubebuilder:validation:Optional - levelFive?: [...#LevelFiveParameters] @go(LevelFive,[]LevelFiveParameters) - - // A block that defines the details of level four. The level block is documented below. - // +kubebuilder:validation:Optional - levelFour?: [...#LevelFourParameters] @go(LevelFour,[]LevelFourParameters) - - // A block that defines the details of level one. The level block is documented below. - // +kubebuilder:validation:Optional - levelOne?: [...#LevelOneParameters] @go(LevelOne,[]LevelOneParameters) - - // A block that defines the details of level three. The level block is documented below. - // +kubebuilder:validation:Optional - levelThree?: [...#LevelThreeParameters] @go(LevelThree,[]LevelThreeParameters) - - // A block that defines the details of level two. The level block is documented below. - // +kubebuilder:validation:Optional - levelTwo?: [...#LevelTwoParameters] @go(LevelTwo,[]LevelTwoParameters) -} - -#LevelFiveInitParameters: { - // The name of the user hierarchy level. Must not be more than 50 characters. - name?: null | string @go(Name,*string) -} - -#LevelFiveObservation: { - // The Amazon Resource Name (ARN) of the hierarchy level. - arn?: null | string @go(Arn,*string) - - // The identifier of the hosting Amazon Connect Instance. - id?: null | string @go(ID,*string) - - // The name of the user hierarchy level. Must not be more than 50 characters. - name?: null | string @go(Name,*string) -} - -#LevelFiveParameters: { - // The name of the user hierarchy level. Must not be more than 50 characters. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#LevelFourInitParameters: { - // The name of the user hierarchy level. Must not be more than 50 characters. - name?: null | string @go(Name,*string) -} - -#LevelFourObservation: { - // The Amazon Resource Name (ARN) of the hierarchy level. - arn?: null | string @go(Arn,*string) - - // The identifier of the hosting Amazon Connect Instance. - id?: null | string @go(ID,*string) - - // The name of the user hierarchy level. Must not be more than 50 characters. - name?: null | string @go(Name,*string) -} - -#LevelFourParameters: { - // The name of the user hierarchy level. Must not be more than 50 characters. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#LevelOneInitParameters: { - // The name of the user hierarchy level. Must not be more than 50 characters. - name?: null | string @go(Name,*string) -} - -#LevelOneObservation: { - // The Amazon Resource Name (ARN) of the hierarchy level. - arn?: null | string @go(Arn,*string) - - // The identifier of the hosting Amazon Connect Instance. - id?: null | string @go(ID,*string) - - // The name of the user hierarchy level. Must not be more than 50 characters. - name?: null | string @go(Name,*string) -} - -#LevelOneParameters: { - // The name of the user hierarchy level. Must not be more than 50 characters. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#LevelThreeInitParameters: { - // The name of the user hierarchy level. Must not be more than 50 characters. - name?: null | string @go(Name,*string) -} - -#LevelThreeObservation: { - // The Amazon Resource Name (ARN) of the hierarchy level. - arn?: null | string @go(Arn,*string) - - // The identifier of the hosting Amazon Connect Instance. - id?: null | string @go(ID,*string) - - // The name of the user hierarchy level. Must not be more than 50 characters. - name?: null | string @go(Name,*string) -} - -#LevelThreeParameters: { - // The name of the user hierarchy level. Must not be more than 50 characters. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#LevelTwoInitParameters: { - // The name of the user hierarchy level. Must not be more than 50 characters. - name?: null | string @go(Name,*string) -} - -#LevelTwoObservation: { - // The Amazon Resource Name (ARN) of the hierarchy level. - arn?: null | string @go(Arn,*string) - - // The identifier of the hosting Amazon Connect Instance. - id?: null | string @go(ID,*string) - - // The name of the user hierarchy level. Must not be more than 50 characters. - name?: null | string @go(Name,*string) -} - -#LevelTwoParameters: { - // The name of the user hierarchy level. Must not be more than 50 characters. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#UserHierarchyStructureInitParameters: { - // A block that defines the hierarchy structure's levels. The hierarchy_structure block is documented below. - hierarchyStructure?: [...#HierarchyStructureInitParameters] @go(HierarchyStructure,[]HierarchyStructureInitParameters) -} - -#UserHierarchyStructureObservation: { - // A block that defines the hierarchy structure's levels. The hierarchy_structure block is documented below. - hierarchyStructure?: [...#HierarchyStructureObservation] @go(HierarchyStructure,[]HierarchyStructureObservation) - - // The identifier of the hosting Amazon Connect Instance. - id?: null | string @go(ID,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - instanceId?: null | string @go(InstanceID,*string) -} - -#UserHierarchyStructureParameters: { - // A block that defines the hierarchy structure's levels. The hierarchy_structure block is documented below. - // +kubebuilder:validation:Optional - hierarchyStructure?: [...#HierarchyStructureParameters] @go(HierarchyStructure,[]HierarchyStructureParameters) - - // Specifies the identifier of the hosting Amazon Connect Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// UserHierarchyStructureSpec defines the desired state of UserHierarchyStructure -#UserHierarchyStructureSpec: { - v1.#ResourceSpec - forProvider: #UserHierarchyStructureParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserHierarchyStructureInitParameters @go(InitProvider) -} - -// UserHierarchyStructureStatus defines the observed state of UserHierarchyStructure. -#UserHierarchyStructureStatus: { - v1.#ResourceStatus - atProvider?: #UserHierarchyStructureObservation @go(AtProvider) -} - -// UserHierarchyStructure is the Schema for the UserHierarchyStructures API. Provides details about a specific Amazon Connect User Hierarchy Structure -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserHierarchyStructure: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.hierarchyStructure) || (has(self.initProvider) && has(self.initProvider.hierarchyStructure))",message="spec.forProvider.hierarchyStructure is a required parameter" - spec: #UserHierarchyStructureSpec @go(Spec) - status?: #UserHierarchyStructureStatus @go(Status) -} - -// UserHierarchyStructureList contains a list of UserHierarchyStructures -#UserHierarchyStructureList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserHierarchyStructure] @go(Items,[]UserHierarchyStructure) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_vocabulary_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_vocabulary_types_go_gen.cue deleted file mode 100644 index 62fc906..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/connect/v1beta1/zz_vocabulary_types_go_gen.cue +++ /dev/null @@ -1,149 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/connect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VocabularyInitParameters: { - // The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. For more information, see Create a custom vocabulary using a table. Minimum length of 1. Maximum length of 60000. - content?: null | string @go(Content,*string) - - // The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?. Valid Values are ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP, ko-KR, pt-BR, pt-PT, zh-CN. - languageCode?: null | string @go(LanguageCode,*string) - - // A unique name of the custom vocabulary. Must not be more than 140 characters. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VocabularyObservation: { - // The Amazon Resource Name (ARN) of the vocabulary. - arn?: null | string @go(Arn,*string) - - // The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. For more information, see Create a custom vocabulary using a table. Minimum length of 1. Maximum length of 60000. - content?: null | string @go(Content,*string) - - // The reason why the custom vocabulary was not created. - failureReason?: null | string @go(FailureReason,*string) - - // The identifier of the hosting Amazon Connect Instance and identifier of the vocabulary - // separated by a colon (:). - id?: null | string @go(ID,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - instanceId?: null | string @go(InstanceID,*string) - - // The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?. Valid Values are ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP, ko-KR, pt-BR, pt-PT, zh-CN. - languageCode?: null | string @go(LanguageCode,*string) - - // The timestamp when the custom vocabulary was last modified. - lastModifiedTime?: null | string @go(LastModifiedTime,*string) - - // A unique name of the custom vocabulary. Must not be more than 140 characters. - name?: null | string @go(Name,*string) - - // The current state of the custom vocabulary. Valid values are CREATION_IN_PROGRESS, ACTIVE, CREATION_FAILED, DELETE_IN_PROGRESS. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The identifier of the custom vocabulary. - vocabularyId?: null | string @go(VocabularyID,*string) -} - -#VocabularyParameters: { - // The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. For more information, see Create a custom vocabulary using a table. Minimum length of 1. Maximum length of 60000. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // Specifies the identifier of the hosting Amazon Connect Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/connect/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in connect to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?. Valid Values are ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP, ko-KR, pt-BR, pt-PT, zh-CN. - // +kubebuilder:validation:Optional - languageCode?: null | string @go(LanguageCode,*string) - - // A unique name of the custom vocabulary. Must not be more than 140 characters. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// VocabularySpec defines the desired state of Vocabulary -#VocabularySpec: { - v1.#ResourceSpec - forProvider: #VocabularyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VocabularyInitParameters @go(InitProvider) -} - -// VocabularyStatus defines the observed state of Vocabulary. -#VocabularyStatus: { - v1.#ResourceStatus - atProvider?: #VocabularyObservation @go(AtProvider) -} - -// Vocabulary is the Schema for the Vocabularys API. Provides details about a specific Amazon Connect Vocabulary -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Vocabulary: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.content) || (has(self.initProvider) && has(self.initProvider.content))",message="spec.forProvider.content is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.languageCode) || (has(self.initProvider) && has(self.initProvider.languageCode))",message="spec.forProvider.languageCode is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #VocabularySpec @go(Spec) - status?: #VocabularyStatus @go(Status) -} - -// VocabularyList contains a list of Vocabularys -#VocabularyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Vocabulary] @go(Items,[]Vocabulary) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cur/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cur/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 1e9f43e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cur/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cur/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=cur.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "cur.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/cur/v1beta1/zz_reportdefinition_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/cur/v1beta1/zz_reportdefinition_types_go_gen.cue deleted file mode 100644 index 90e30e1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/cur/v1beta1/zz_reportdefinition_types_go_gen.cue +++ /dev/null @@ -1,182 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/cur/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ReportDefinitionInitParameters: { - // A list of additional artifacts. Valid values are: REDSHIFT, QUICKSIGHT, ATHENA. When ATHENA exists within additional_artifacts, no other artifact type can be declared and report_versioning must be OVERWRITE_REPORT. - additionalArtifacts?: [...null | string] @go(AdditionalArtifacts,[]*string) - - // A list of schema elements. Valid values are: RESOURCES. - additionalSchemaElements?: [...null | string] @go(AdditionalSchemaElements,[]*string) - - // Compression format for report. Valid values are: GZIP, ZIP, Parquet. If Parquet is used, then format must also be Parquet. - compression?: null | string @go(Compression,*string) - - // Format for report. Valid values are: textORcsv, Parquet. If Parquet is used, then Compression must also be Parquet. - format?: null | string @go(Format,*string) - - // Set to true to update your reports after they have been finalized if AWS detects charges related to previous months. - refreshClosedReports?: null | bool @go(RefreshClosedReports,*bool) - - // Overwrite the previous version of each report or to deliver the report in addition to the previous versions. Valid values are: CREATE_NEW_REPORT and OVERWRITE_REPORT. - reportVersioning?: null | string @go(ReportVersioning,*string) - - // Report path prefix. Limited to 256 characters. - s3Prefix?: null | string @go(S3Prefix,*string) - - // Region of the existing S3 bucket to hold generated reports. - s3Region?: null | string @go(S3Region,*string) - - // The frequency on which report data are measured and displayed. Valid values are: DAILY, HOURLY, MONTHLY. - timeUnit?: null | string @go(TimeUnit,*string) -} - -#ReportDefinitionObservation: { - // A list of additional artifacts. Valid values are: REDSHIFT, QUICKSIGHT, ATHENA. When ATHENA exists within additional_artifacts, no other artifact type can be declared and report_versioning must be OVERWRITE_REPORT. - additionalArtifacts?: [...null | string] @go(AdditionalArtifacts,[]*string) - - // A list of schema elements. Valid values are: RESOURCES. - additionalSchemaElements?: [...null | string] @go(AdditionalSchemaElements,[]*string) - - // The Amazon Resource Name (ARN) specifying the cur report. - arn?: null | string @go(Arn,*string) - - // Compression format for report. Valid values are: GZIP, ZIP, Parquet. If Parquet is used, then format must also be Parquet. - compression?: null | string @go(Compression,*string) - - // Format for report. Valid values are: textORcsv, Parquet. If Parquet is used, then Compression must also be Parquet. - format?: null | string @go(Format,*string) - id?: null | string @go(ID,*string) - - // Set to true to update your reports after they have been finalized if AWS detects charges related to previous months. - refreshClosedReports?: null | bool @go(RefreshClosedReports,*bool) - - // Overwrite the previous version of each report or to deliver the report in addition to the previous versions. Valid values are: CREATE_NEW_REPORT and OVERWRITE_REPORT. - reportVersioning?: null | string @go(ReportVersioning,*string) - - // Name of the existing S3 bucket to hold generated reports. - s3Bucket?: null | string @go(S3Bucket,*string) - - // Report path prefix. Limited to 256 characters. - s3Prefix?: null | string @go(S3Prefix,*string) - - // Region of the existing S3 bucket to hold generated reports. - s3Region?: null | string @go(S3Region,*string) - - // The frequency on which report data are measured and displayed. Valid values are: DAILY, HOURLY, MONTHLY. - timeUnit?: null | string @go(TimeUnit,*string) -} - -#ReportDefinitionParameters: { - // A list of additional artifacts. Valid values are: REDSHIFT, QUICKSIGHT, ATHENA. When ATHENA exists within additional_artifacts, no other artifact type can be declared and report_versioning must be OVERWRITE_REPORT. - // +kubebuilder:validation:Optional - additionalArtifacts?: [...null | string] @go(AdditionalArtifacts,[]*string) - - // A list of schema elements. Valid values are: RESOURCES. - // +kubebuilder:validation:Optional - additionalSchemaElements?: [...null | string] @go(AdditionalSchemaElements,[]*string) - - // Compression format for report. Valid values are: GZIP, ZIP, Parquet. If Parquet is used, then format must also be Parquet. - // +kubebuilder:validation:Optional - compression?: null | string @go(Compression,*string) - - // Format for report. Valid values are: textORcsv, Parquet. If Parquet is used, then Compression must also be Parquet. - // +kubebuilder:validation:Optional - format?: null | string @go(Format,*string) - - // Set to true to update your reports after they have been finalized if AWS detects charges related to previous months. - // +kubebuilder:validation:Optional - refreshClosedReports?: null | bool @go(RefreshClosedReports,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Overwrite the previous version of each report or to deliver the report in addition to the previous versions. Valid values are: CREATE_NEW_REPORT and OVERWRITE_REPORT. - // +kubebuilder:validation:Optional - reportVersioning?: null | string @go(ReportVersioning,*string) - - // Name of the existing S3 bucket to hold generated reports. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +kubebuilder:validation:Optional - s3Bucket?: null | string @go(S3Bucket,*string) - - // Reference to a Bucket in s3 to populate s3Bucket. - // +kubebuilder:validation:Optional - s3BucketRef?: null | v1.#Reference @go(S3BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate s3Bucket. - // +kubebuilder:validation:Optional - s3BucketSelector?: null | v1.#Selector @go(S3BucketSelector,*v1.Selector) - - // Report path prefix. Limited to 256 characters. - // +kubebuilder:validation:Optional - s3Prefix?: null | string @go(S3Prefix,*string) - - // Region of the existing S3 bucket to hold generated reports. - // +kubebuilder:validation:Optional - s3Region?: null | string @go(S3Region,*string) - - // The frequency on which report data are measured and displayed. Valid values are: DAILY, HOURLY, MONTHLY. - // +kubebuilder:validation:Optional - timeUnit?: null | string @go(TimeUnit,*string) -} - -// ReportDefinitionSpec defines the desired state of ReportDefinition -#ReportDefinitionSpec: { - v1.#ResourceSpec - forProvider: #ReportDefinitionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReportDefinitionInitParameters @go(InitProvider) -} - -// ReportDefinitionStatus defines the observed state of ReportDefinition. -#ReportDefinitionStatus: { - v1.#ResourceStatus - atProvider?: #ReportDefinitionObservation @go(AtProvider) -} - -// ReportDefinition is the Schema for the ReportDefinitions API. Provides a Cost and Usage Report Definition. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReportDefinition: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.additionalSchemaElements) || (has(self.initProvider) && has(self.initProvider.additionalSchemaElements))",message="spec.forProvider.additionalSchemaElements is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.compression) || (has(self.initProvider) && has(self.initProvider.compression))",message="spec.forProvider.compression is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.format) || (has(self.initProvider) && has(self.initProvider.format))",message="spec.forProvider.format is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.s3Region) || (has(self.initProvider) && has(self.initProvider.s3Region))",message="spec.forProvider.s3Region is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.timeUnit) || (has(self.initProvider) && has(self.initProvider.timeUnit))",message="spec.forProvider.timeUnit is a required parameter" - spec: #ReportDefinitionSpec @go(Spec) - status?: #ReportDefinitionStatus @go(Status) -} - -// ReportDefinitionList contains a list of ReportDefinitions -#ReportDefinitionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReportDefinition] @go(Items,[]ReportDefinition) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dataexchange/v1beta1/zz_dataset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dataexchange/v1beta1/zz_dataset_types_go_gen.cue deleted file mode 100644 index 44fb6c8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dataexchange/v1beta1/zz_dataset_types_go_gen.cue +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dataexchange/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DataSetInitParameters: { - // The type of asset that is added to a data set. Valid values are: S3_SNAPSHOT, REDSHIFT_DATA_SHARE, and API_GATEWAY_API. - assetType?: null | string @go(AssetType,*string) - - // A description for the data set. - description?: null | string @go(Description,*string) - - // The name of the data set. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DataSetObservation: { - // The Amazon Resource Name of this data set. - arn?: null | string @go(Arn,*string) - - // The type of asset that is added to a data set. Valid values are: S3_SNAPSHOT, REDSHIFT_DATA_SHARE, and API_GATEWAY_API. - assetType?: null | string @go(AssetType,*string) - - // A description for the data set. - description?: null | string @go(Description,*string) - - // The Id of the data set. - id?: null | string @go(ID,*string) - - // The name of the data set. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DataSetParameters: { - // The type of asset that is added to a data set. Valid values are: S3_SNAPSHOT, REDSHIFT_DATA_SHARE, and API_GATEWAY_API. - // +kubebuilder:validation:Optional - assetType?: null | string @go(AssetType,*string) - - // A description for the data set. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the data set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// DataSetSpec defines the desired state of DataSet -#DataSetSpec: { - v1.#ResourceSpec - forProvider: #DataSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DataSetInitParameters @go(InitProvider) -} - -// DataSetStatus defines the observed state of DataSet. -#DataSetStatus: { - v1.#ResourceStatus - atProvider?: #DataSetObservation @go(AtProvider) -} - -// DataSet is the Schema for the DataSets API. Provides a DataExchange DataSet -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DataSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.assetType) || (has(self.initProvider) && has(self.initProvider.assetType))",message="spec.forProvider.assetType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.description) || (has(self.initProvider) && has(self.initProvider.description))",message="spec.forProvider.description is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #DataSetSpec @go(Spec) - status?: #DataSetStatus @go(Status) -} - -// DataSetList contains a list of DataSets -#DataSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DataSet] @go(Items,[]DataSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dataexchange/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dataexchange/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index eefa580..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dataexchange/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dataexchange/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=dataexchange.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "dataexchange.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dataexchange/v1beta1/zz_revision_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dataexchange/v1beta1/zz_revision_types_go_gen.cue deleted file mode 100644 index 664f240..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dataexchange/v1beta1/zz_revision_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dataexchange/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RevisionInitParameters: { - // An optional comment about the revision. - comment?: null | string @go(Comment,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RevisionObservation: { - // The Amazon Resource Name of this data set. - arn?: null | string @go(Arn,*string) - - // An optional comment about the revision. - comment?: null | string @go(Comment,*string) - - // The dataset id. - dataSetId?: null | string @go(DataSetID,*string) - - // The Id of the data set. - id?: null | string @go(ID,*string) - - // The Id of the revision. - revisionId?: null | string @go(RevisionID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RevisionParameters: { - // An optional comment about the revision. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // The dataset id. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/dataexchange/v1beta1.DataSet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dataSetId?: null | string @go(DataSetID,*string) - - // Reference to a DataSet in dataexchange to populate dataSetId. - // +kubebuilder:validation:Optional - dataSetIdRef?: null | v1.#Reference @go(DataSetIDRef,*v1.Reference) - - // Selector for a DataSet in dataexchange to populate dataSetId. - // +kubebuilder:validation:Optional - dataSetIdSelector?: null | v1.#Selector @go(DataSetIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RevisionSpec defines the desired state of Revision -#RevisionSpec: { - v1.#ResourceSpec - forProvider: #RevisionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RevisionInitParameters @go(InitProvider) -} - -// RevisionStatus defines the observed state of Revision. -#RevisionStatus: { - v1.#ResourceStatus - atProvider?: #RevisionObservation @go(AtProvider) -} - -// Revision is the Schema for the Revisions API. Provides a DataExchange Revision -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Revision: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RevisionSpec @go(Spec) - status?: #RevisionStatus @go(Status) -} - -// RevisionList contains a list of Revisions -#RevisionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Revision] @go(Items,[]Revision) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/datapipeline/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/datapipeline/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 7d44828..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/datapipeline/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/datapipeline/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=datapipeline.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "datapipeline.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/datapipeline/v1beta1/zz_pipeline_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/datapipeline/v1beta1/zz_pipeline_types_go_gen.cue deleted file mode 100644 index b1eb11d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/datapipeline/v1beta1/zz_pipeline_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/datapipeline/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PipelineInitParameters: { - // The description of Pipeline. - description?: null | string @go(Description,*string) - - // The name of Pipeline. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PipelineObservation: { - // The description of Pipeline. - description?: null | string @go(Description,*string) - - // The identifier of the client certificate. - id?: null | string @go(ID,*string) - - // The name of Pipeline. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#PipelineParameters: { - // The description of Pipeline. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of Pipeline. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// PipelineSpec defines the desired state of Pipeline -#PipelineSpec: { - v1.#ResourceSpec - forProvider: #PipelineParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PipelineInitParameters @go(InitProvider) -} - -// PipelineStatus defines the observed state of Pipeline. -#PipelineStatus: { - v1.#ResourceStatus - atProvider?: #PipelineObservation @go(AtProvider) -} - -// Pipeline is the Schema for the Pipelines API. Provides a AWS DataPipeline Pipeline. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Pipeline: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #PipelineSpec @go(Spec) - status?: #PipelineStatus @go(Status) -} - -// PipelineList contains a list of Pipelines -#PipelineList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Pipeline] @go(Items,[]Pipeline) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/datasync/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/datasync/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index f498e0f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/datasync/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/datasync/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=datasync.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "datasync.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/datasync/v1beta1/zz_locations3_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/datasync/v1beta1/zz_locations3_types_go_gen.cue deleted file mode 100644 index aa9aaf7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/datasync/v1beta1/zz_locations3_types_go_gen.cue +++ /dev/null @@ -1,170 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/datasync/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LocationS3InitParameters: { - // A list of DataSync Agent ARNs with which this location will be associated. - agentArns?: [...null | string] @go(AgentArns,[]*string) - - // Configuration block containing information for connecting to S3. - s3Config?: [...#S3ConfigInitParameters] @go(S3Config,[]S3ConfigInitParameters) - - // The Amazon S3 storage class that you want to store your files in when this location is used as a task destination. Valid values - s3StorageClass?: null | string @go(S3StorageClass,*string) - - // Prefix to perform actions as source or destination. - subdirectory?: null | string @go(Subdirectory,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#LocationS3Observation: { - // A list of DataSync Agent ARNs with which this location will be associated. - agentArns?: [...null | string] @go(AgentArns,[]*string) - - // Amazon Resource Name (ARN) of the DataSync Location. - arn?: null | string @go(Arn,*string) - - // Amazon Resource Name (ARN) of the DataSync Location. - id?: null | string @go(ID,*string) - - // Amazon Resource Name (ARN) of the S3 Bucket. - s3BucketArn?: null | string @go(S3BucketArn,*string) - - // Configuration block containing information for connecting to S3. - s3Config?: [...#S3ConfigObservation] @go(S3Config,[]S3ConfigObservation) - - // The Amazon S3 storage class that you want to store your files in when this location is used as a task destination. Valid values - s3StorageClass?: null | string @go(S3StorageClass,*string) - - // Prefix to perform actions as source or destination. - subdirectory?: null | string @go(Subdirectory,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - uri?: null | string @go(URI,*string) -} - -#LocationS3Parameters: { - // A list of DataSync Agent ARNs with which this location will be associated. - // +kubebuilder:validation:Optional - agentArns?: [...null | string] @go(AgentArns,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Resource Name (ARN) of the S3 Bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - s3BucketArn?: null | string @go(S3BucketArn,*string) - - // Reference to a Bucket in s3 to populate s3BucketArn. - // +kubebuilder:validation:Optional - s3BucketArnRef?: null | v1.#Reference @go(S3BucketArnRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate s3BucketArn. - // +kubebuilder:validation:Optional - s3BucketArnSelector?: null | v1.#Selector @go(S3BucketArnSelector,*v1.Selector) - - // Configuration block containing information for connecting to S3. - // +kubebuilder:validation:Optional - s3Config?: [...#S3ConfigParameters] @go(S3Config,[]S3ConfigParameters) - - // The Amazon S3 storage class that you want to store your files in when this location is used as a task destination. Valid values - // +kubebuilder:validation:Optional - s3StorageClass?: null | string @go(S3StorageClass,*string) - - // Prefix to perform actions as source or destination. - // +kubebuilder:validation:Optional - subdirectory?: null | string @go(Subdirectory,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#S3ConfigInitParameters: { -} - -#S3ConfigObservation: { - // ARN of the IAM Role used to connect to the S3 Bucket. - bucketAccessRoleArn?: null | string @go(BucketAccessRoleArn,*string) -} - -#S3ConfigParameters: { - // ARN of the IAM Role used to connect to the S3 Bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - bucketAccessRoleArn?: null | string @go(BucketAccessRoleArn,*string) - - // Reference to a Role in iam to populate bucketAccessRoleArn. - // +kubebuilder:validation:Optional - bucketAccessRoleArnRef?: null | v1.#Reference @go(BucketAccessRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate bucketAccessRoleArn. - // +kubebuilder:validation:Optional - bucketAccessRoleArnSelector?: null | v1.#Selector @go(BucketAccessRoleArnSelector,*v1.Selector) -} - -// LocationS3Spec defines the desired state of LocationS3 -#LocationS3Spec: { - v1.#ResourceSpec - forProvider: #LocationS3Parameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LocationS3InitParameters @go(InitProvider) -} - -// LocationS3Status defines the observed state of LocationS3. -#LocationS3Status: { - v1.#ResourceStatus - atProvider?: #LocationS3Observation @go(AtProvider) -} - -// LocationS3 is the Schema for the LocationS3s API. Manages an AWS DataSync S3 Location -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LocationS3: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.s3Config) || (has(self.initProvider) && has(self.initProvider.s3Config))",message="spec.forProvider.s3Config is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.subdirectory) || (has(self.initProvider) && has(self.initProvider.subdirectory))",message="spec.forProvider.subdirectory is a required parameter" - spec: #LocationS3Spec @go(Spec) - status?: #LocationS3Status @go(Status) -} - -// LocationS3List contains a list of LocationS3s -#LocationS3List: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LocationS3] @go(Items,[]LocationS3) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/datasync/v1beta1/zz_task_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/datasync/v1beta1/zz_task_types_go_gen.cue deleted file mode 100644 index 1fb74d7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/datasync/v1beta1/zz_task_types_go_gen.cue +++ /dev/null @@ -1,398 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/datasync/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ExcludesInitParameters: { - // The type of filter rule to apply. Valid values: SIMPLE_PATTERN. - filterType?: null | string @go(FilterType,*string) - - // A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2 - value?: null | string @go(Value,*string) -} - -#ExcludesObservation: { - // The type of filter rule to apply. Valid values: SIMPLE_PATTERN. - filterType?: null | string @go(FilterType,*string) - - // A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2 - value?: null | string @go(Value,*string) -} - -#ExcludesParameters: { - // The type of filter rule to apply. Valid values: SIMPLE_PATTERN. - // +kubebuilder:validation:Optional - filterType?: null | string @go(FilterType,*string) - - // A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2 - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#IncludesInitParameters: { - // The type of filter rule to apply. Valid values: SIMPLE_PATTERN. - filterType?: null | string @go(FilterType,*string) - - // A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2 - value?: null | string @go(Value,*string) -} - -#IncludesObservation: { - // The type of filter rule to apply. Valid values: SIMPLE_PATTERN. - filterType?: null | string @go(FilterType,*string) - - // A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2 - value?: null | string @go(Value,*string) -} - -#IncludesParameters: { - // The type of filter rule to apply. Valid values: SIMPLE_PATTERN. - // +kubebuilder:validation:Optional - filterType?: null | string @go(FilterType,*string) - - // A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2 - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#OptionsInitParameters: { - // A file metadata that shows the last time a file was accessed (that is when the file was read or written to). If set to BEST_EFFORT, the DataSync Task attempts to preserve the original (that is, the version before sync PREPARING phase) atime attribute on all source files. Valid values: BEST_EFFORT, NONE. Default: BEST_EFFORT. - atime?: null | string @go(Atime,*string) - - // Limits the bandwidth utilized. For example, to set a maximum of 1 MB, set this value to 1048576. Value values: -1 or greater. Default: -1 (unlimited). - bytesPerSecond?: null | float64 @go(BytesPerSecond,*float64) - - // Group identifier of the file's owners. Valid values: BOTH, INT_VALUE, NAME, NONE. Default: INT_VALUE (preserve integer value of the ID). - gid?: null | string @go(GID,*string) - - // Determines the type of logs that DataSync publishes to a log stream in the Amazon CloudWatch log group that you provide. Valid values: OFF, BASIC, TRANSFER. Default: OFF. - logLevel?: null | string @go(LogLevel,*string) - - // A file metadata that indicates the last time a file was modified (written to) before the sync PREPARING phase. Value values: NONE, PRESERVE. Default: PRESERVE. - mtime?: null | string @go(Mtime,*string) - - // Determines whether files at the destination should be overwritten or preserved when copying files. Valid values: ALWAYS, NEVER. Default: ALWAYS. - overwriteMode?: null | string @go(OverwriteMode,*string) - - // Determines which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file. Valid values: NONE, PRESERVE. Default: PRESERVE. - posixPermissions?: null | string @go(PosixPermissions,*string) - - // Whether files deleted in the source should be removed or preserved in the destination file system. Valid values: PRESERVE, REMOVE. Default: PRESERVE. - preserveDeletedFiles?: null | string @go(PreserveDeletedFiles,*string) - - // Whether the DataSync Task should preserve the metadata of block and character devices in the source files system, and recreate the files with that device name and metadata on the destination. The DataSync Task can’t sync the actual contents of such devices, because many of the devices are non-terminal and don’t return an end of file (EOF) marker. Valid values: NONE, PRESERVE. Default: NONE (ignore special devices). - preserveDevices?: null | string @go(PreserveDevices,*string) - - // Determines which components of the SMB security descriptor are copied from source to destination objects. This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations, or between two Amazon FSx for Windows File Server locations. Valid values: NONE, OWNER_DACL, OWNER_DACL_SACL. - securityDescriptorCopyFlags?: null | string @go(SecurityDescriptorCopyFlags,*string) - - // Determines whether tasks should be queued before executing the tasks. Valid values: ENABLED, DISABLED. Default ENABLED. - taskQueueing?: null | string @go(TaskQueueing,*string) - - // Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location, or whether DataSync transfers all the content from the source, without comparing to the destination location. Valid values: CHANGED, ALL. Default: CHANGED - transferMode?: null | string @go(TransferMode,*string) - - // User identifier of the file's owners. Valid values: BOTH, INT_VALUE, NAME, NONE. Default: INT_VALUE (preserve integer value of the ID). - uid?: null | string @go(UID,*string) - - // Whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred. Valid values: NONE, POINT_IN_TIME_CONSISTENT, ONLY_FILES_TRANSFERRED. Default: POINT_IN_TIME_CONSISTENT. - verifyMode?: null | string @go(VerifyMode,*string) -} - -#OptionsObservation: { - // A file metadata that shows the last time a file was accessed (that is when the file was read or written to). If set to BEST_EFFORT, the DataSync Task attempts to preserve the original (that is, the version before sync PREPARING phase) atime attribute on all source files. Valid values: BEST_EFFORT, NONE. Default: BEST_EFFORT. - atime?: null | string @go(Atime,*string) - - // Limits the bandwidth utilized. For example, to set a maximum of 1 MB, set this value to 1048576. Value values: -1 or greater. Default: -1 (unlimited). - bytesPerSecond?: null | float64 @go(BytesPerSecond,*float64) - - // Group identifier of the file's owners. Valid values: BOTH, INT_VALUE, NAME, NONE. Default: INT_VALUE (preserve integer value of the ID). - gid?: null | string @go(GID,*string) - - // Determines the type of logs that DataSync publishes to a log stream in the Amazon CloudWatch log group that you provide. Valid values: OFF, BASIC, TRANSFER. Default: OFF. - logLevel?: null | string @go(LogLevel,*string) - - // A file metadata that indicates the last time a file was modified (written to) before the sync PREPARING phase. Value values: NONE, PRESERVE. Default: PRESERVE. - mtime?: null | string @go(Mtime,*string) - - // Determines whether files at the destination should be overwritten or preserved when copying files. Valid values: ALWAYS, NEVER. Default: ALWAYS. - overwriteMode?: null | string @go(OverwriteMode,*string) - - // Determines which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file. Valid values: NONE, PRESERVE. Default: PRESERVE. - posixPermissions?: null | string @go(PosixPermissions,*string) - - // Whether files deleted in the source should be removed or preserved in the destination file system. Valid values: PRESERVE, REMOVE. Default: PRESERVE. - preserveDeletedFiles?: null | string @go(PreserveDeletedFiles,*string) - - // Whether the DataSync Task should preserve the metadata of block and character devices in the source files system, and recreate the files with that device name and metadata on the destination. The DataSync Task can’t sync the actual contents of such devices, because many of the devices are non-terminal and don’t return an end of file (EOF) marker. Valid values: NONE, PRESERVE. Default: NONE (ignore special devices). - preserveDevices?: null | string @go(PreserveDevices,*string) - - // Determines which components of the SMB security descriptor are copied from source to destination objects. This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations, or between two Amazon FSx for Windows File Server locations. Valid values: NONE, OWNER_DACL, OWNER_DACL_SACL. - securityDescriptorCopyFlags?: null | string @go(SecurityDescriptorCopyFlags,*string) - - // Determines whether tasks should be queued before executing the tasks. Valid values: ENABLED, DISABLED. Default ENABLED. - taskQueueing?: null | string @go(TaskQueueing,*string) - - // Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location, or whether DataSync transfers all the content from the source, without comparing to the destination location. Valid values: CHANGED, ALL. Default: CHANGED - transferMode?: null | string @go(TransferMode,*string) - - // User identifier of the file's owners. Valid values: BOTH, INT_VALUE, NAME, NONE. Default: INT_VALUE (preserve integer value of the ID). - uid?: null | string @go(UID,*string) - - // Whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred. Valid values: NONE, POINT_IN_TIME_CONSISTENT, ONLY_FILES_TRANSFERRED. Default: POINT_IN_TIME_CONSISTENT. - verifyMode?: null | string @go(VerifyMode,*string) -} - -#OptionsParameters: { - // A file metadata that shows the last time a file was accessed (that is when the file was read or written to). If set to BEST_EFFORT, the DataSync Task attempts to preserve the original (that is, the version before sync PREPARING phase) atime attribute on all source files. Valid values: BEST_EFFORT, NONE. Default: BEST_EFFORT. - // +kubebuilder:validation:Optional - atime?: null | string @go(Atime,*string) - - // Limits the bandwidth utilized. For example, to set a maximum of 1 MB, set this value to 1048576. Value values: -1 or greater. Default: -1 (unlimited). - // +kubebuilder:validation:Optional - bytesPerSecond?: null | float64 @go(BytesPerSecond,*float64) - - // Group identifier of the file's owners. Valid values: BOTH, INT_VALUE, NAME, NONE. Default: INT_VALUE (preserve integer value of the ID). - // +kubebuilder:validation:Optional - gid?: null | string @go(GID,*string) - - // Determines the type of logs that DataSync publishes to a log stream in the Amazon CloudWatch log group that you provide. Valid values: OFF, BASIC, TRANSFER. Default: OFF. - // +kubebuilder:validation:Optional - logLevel?: null | string @go(LogLevel,*string) - - // A file metadata that indicates the last time a file was modified (written to) before the sync PREPARING phase. Value values: NONE, PRESERVE. Default: PRESERVE. - // +kubebuilder:validation:Optional - mtime?: null | string @go(Mtime,*string) - - // Determines whether files at the destination should be overwritten or preserved when copying files. Valid values: ALWAYS, NEVER. Default: ALWAYS. - // +kubebuilder:validation:Optional - overwriteMode?: null | string @go(OverwriteMode,*string) - - // Determines which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file. Valid values: NONE, PRESERVE. Default: PRESERVE. - // +kubebuilder:validation:Optional - posixPermissions?: null | string @go(PosixPermissions,*string) - - // Whether files deleted in the source should be removed or preserved in the destination file system. Valid values: PRESERVE, REMOVE. Default: PRESERVE. - // +kubebuilder:validation:Optional - preserveDeletedFiles?: null | string @go(PreserveDeletedFiles,*string) - - // Whether the DataSync Task should preserve the metadata of block and character devices in the source files system, and recreate the files with that device name and metadata on the destination. The DataSync Task can’t sync the actual contents of such devices, because many of the devices are non-terminal and don’t return an end of file (EOF) marker. Valid values: NONE, PRESERVE. Default: NONE (ignore special devices). - // +kubebuilder:validation:Optional - preserveDevices?: null | string @go(PreserveDevices,*string) - - // Determines which components of the SMB security descriptor are copied from source to destination objects. This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations, or between two Amazon FSx for Windows File Server locations. Valid values: NONE, OWNER_DACL, OWNER_DACL_SACL. - // +kubebuilder:validation:Optional - securityDescriptorCopyFlags?: null | string @go(SecurityDescriptorCopyFlags,*string) - - // Determines whether tasks should be queued before executing the tasks. Valid values: ENABLED, DISABLED. Default ENABLED. - // +kubebuilder:validation:Optional - taskQueueing?: null | string @go(TaskQueueing,*string) - - // Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location, or whether DataSync transfers all the content from the source, without comparing to the destination location. Valid values: CHANGED, ALL. Default: CHANGED - // +kubebuilder:validation:Optional - transferMode?: null | string @go(TransferMode,*string) - - // User identifier of the file's owners. Valid values: BOTH, INT_VALUE, NAME, NONE. Default: INT_VALUE (preserve integer value of the ID). - // +kubebuilder:validation:Optional - uid?: null | string @go(UID,*string) - - // Whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred. Valid values: NONE, POINT_IN_TIME_CONSISTENT, ONLY_FILES_TRANSFERRED. Default: POINT_IN_TIME_CONSISTENT. - // +kubebuilder:validation:Optional - verifyMode?: null | string @go(VerifyMode,*string) -} - -#ScheduleInitParameters: { - // Specifies the schedule you want your task to use for repeated executions. For more information, see Schedule Expressions for Rules. - scheduleExpression?: null | string @go(ScheduleExpression,*string) -} - -#ScheduleObservation: { - // Specifies the schedule you want your task to use for repeated executions. For more information, see Schedule Expressions for Rules. - scheduleExpression?: null | string @go(ScheduleExpression,*string) -} - -#ScheduleParameters: { - // Specifies the schedule you want your task to use for repeated executions. For more information, see Schedule Expressions for Rules. - // +kubebuilder:validation:Optional - scheduleExpression?: null | string @go(ScheduleExpression,*string) -} - -#TaskInitParameters: { - // Filter rules that determines which files to exclude from a task. - excludes?: [...#ExcludesInitParameters] @go(Excludes,[]ExcludesInitParameters) - - // Filter rules that determines which files to include in a task. - includes?: [...#IncludesInitParameters] @go(Includes,[]IncludesInitParameters) - - // Name of the DataSync Task. - name?: null | string @go(Name,*string) - - // Configuration block containing option that controls the default behavior when you start an execution of this DataSync Task. For each individual task execution, you can override these options by specifying an overriding configuration in those executions. - options?: [...#OptionsInitParameters] @go(Options,[]OptionsInitParameters) - - // Specifies a schedule used to periodically transfer files from a source to a destination location. - schedule?: [...#ScheduleInitParameters] @go(Schedule,[]ScheduleInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TaskObservation: { - // Amazon Resource Name (ARN) of the DataSync Task. - arn?: null | string @go(Arn,*string) - - // Amazon Resource Name (ARN) of the CloudWatch Log Group that is used to monitor and log events in the sync task. - cloudwatchLogGroupArn?: null | string @go(CloudwatchLogGroupArn,*string) - - // Amazon Resource Name (ARN) of destination DataSync Location. - destinationLocationArn?: null | string @go(DestinationLocationArn,*string) - - // Filter rules that determines which files to exclude from a task. - excludes?: [...#ExcludesObservation] @go(Excludes,[]ExcludesObservation) - - // Amazon Resource Name (ARN) of the DataSync Task. - id?: null | string @go(ID,*string) - - // Filter rules that determines which files to include in a task. - includes?: [...#IncludesObservation] @go(Includes,[]IncludesObservation) - - // Name of the DataSync Task. - name?: null | string @go(Name,*string) - - // Configuration block containing option that controls the default behavior when you start an execution of this DataSync Task. For each individual task execution, you can override these options by specifying an overriding configuration in those executions. - options?: [...#OptionsObservation] @go(Options,[]OptionsObservation) - - // Specifies a schedule used to periodically transfer files from a source to a destination location. - schedule?: [...#ScheduleObservation] @go(Schedule,[]ScheduleObservation) - - // Amazon Resource Name (ARN) of source DataSync Location. - sourceLocationArn?: null | string @go(SourceLocationArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#TaskParameters: { - // Amazon Resource Name (ARN) of the CloudWatch Log Group that is used to monitor and log events in the sync task. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - cloudwatchLogGroupArn?: null | string @go(CloudwatchLogGroupArn,*string) - - // Reference to a Group in cloudwatchlogs to populate cloudwatchLogGroupArn. - // +kubebuilder:validation:Optional - cloudwatchLogGroupArnRef?: null | v1.#Reference @go(CloudwatchLogGroupArnRef,*v1.Reference) - - // Selector for a Group in cloudwatchlogs to populate cloudwatchLogGroupArn. - // +kubebuilder:validation:Optional - cloudwatchLogGroupArnSelector?: null | v1.#Selector @go(CloudwatchLogGroupArnSelector,*v1.Selector) - - // Amazon Resource Name (ARN) of destination DataSync Location. - // +crossplane:generate:reference:type=LocationS3 - // +kubebuilder:validation:Optional - destinationLocationArn?: null | string @go(DestinationLocationArn,*string) - - // Reference to a LocationS3 to populate destinationLocationArn. - // +kubebuilder:validation:Optional - destinationLocationArnRef?: null | v1.#Reference @go(DestinationLocationArnRef,*v1.Reference) - - // Selector for a LocationS3 to populate destinationLocationArn. - // +kubebuilder:validation:Optional - destinationLocationArnSelector?: null | v1.#Selector @go(DestinationLocationArnSelector,*v1.Selector) - - // Filter rules that determines which files to exclude from a task. - // +kubebuilder:validation:Optional - excludes?: [...#ExcludesParameters] @go(Excludes,[]ExcludesParameters) - - // Filter rules that determines which files to include in a task. - // +kubebuilder:validation:Optional - includes?: [...#IncludesParameters] @go(Includes,[]IncludesParameters) - - // Name of the DataSync Task. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Configuration block containing option that controls the default behavior when you start an execution of this DataSync Task. For each individual task execution, you can override these options by specifying an overriding configuration in those executions. - // +kubebuilder:validation:Optional - options?: [...#OptionsParameters] @go(Options,[]OptionsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies a schedule used to periodically transfer files from a source to a destination location. - // +kubebuilder:validation:Optional - schedule?: [...#ScheduleParameters] @go(Schedule,[]ScheduleParameters) - - // Amazon Resource Name (ARN) of source DataSync Location. - // +crossplane:generate:reference:type=LocationS3 - // +kubebuilder:validation:Optional - sourceLocationArn?: null | string @go(SourceLocationArn,*string) - - // Reference to a LocationS3 to populate sourceLocationArn. - // +kubebuilder:validation:Optional - sourceLocationArnRef?: null | v1.#Reference @go(SourceLocationArnRef,*v1.Reference) - - // Selector for a LocationS3 to populate sourceLocationArn. - // +kubebuilder:validation:Optional - sourceLocationArnSelector?: null | v1.#Selector @go(SourceLocationArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// TaskSpec defines the desired state of Task -#TaskSpec: { - v1.#ResourceSpec - forProvider: #TaskParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TaskInitParameters @go(InitProvider) -} - -// TaskStatus defines the observed state of Task. -#TaskStatus: { - v1.#ResourceStatus - atProvider?: #TaskObservation @go(AtProvider) -} - -// Task is the Schema for the Tasks API. Manages an AWS DataSync Task -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Task: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TaskSpec @go(Spec) - status?: #TaskStatus @go(Status) -} - -// TaskList contains a list of Tasks -#TaskList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Task] @go(Items,[]Task) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dax/v1beta1/zz_cluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dax/v1beta1/zz_cluster_types_go_gen.cue deleted file mode 100644 index a09ee2e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dax/v1beta1/zz_cluster_types_go_gen.cue +++ /dev/null @@ -1,300 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dax/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterInitParameters: { - // List of Availability Zones in which the - // nodes will be created - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // – The type of encryption the - // cluster's endpoint should support. Valid values are: NONE and TLS. - // Default value is NONE. - clusterEndpointEncryptionType?: null | string @go(ClusterEndpointEncryptionType,*string) - - // – Description for the cluster - description?: null | string @go(Description,*string) - - // ddd:hh24:mi - // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Example: - // sun:05:00-sun:09:00 - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // – The compute and memory capacity of the nodes. See - // Nodes for supported node types - nodeType?: null | string @go(NodeType,*string) - - // east-1:012345678999:my_sns_topic - notificationTopicArn?: null | string @go(NotificationTopicArn,*string) - - // – Name of the parameter group to associate - // with this DAX cluster - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // node cluster, without any read - // replicas - replicationFactor?: null | float64 @go(ReplicationFactor,*float64) - - // Encrypt at rest options - serverSideEncryption?: [...#ServerSideEncryptionInitParameters] @go(ServerSideEncryption,[]ServerSideEncryptionInitParameters) - - // – Name of the subnet group to be used for the - // cluster - subnetGroupName?: null | string @go(SubnetGroupName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterObservation: { - // The ARN of the DAX cluster - arn?: null | string @go(Arn,*string) - - // List of Availability Zones in which the - // nodes will be created - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The DNS name of the DAX cluster without the port appended - clusterAddress?: null | string @go(ClusterAddress,*string) - - // – The type of encryption the - // cluster's endpoint should support. Valid values are: NONE and TLS. - // Default value is NONE. - clusterEndpointEncryptionType?: null | string @go(ClusterEndpointEncryptionType,*string) - - // The configuration endpoint for this DAX cluster, - // consisting of a DNS name and a port number - configurationEndpoint?: null | string @go(ConfigurationEndpoint,*string) - - // – Description for the cluster - description?: null | string @go(Description,*string) - - // A valid Amazon Resource Name (ARN) that identifies - // an IAM role. At runtime, DAX will assume this role and use the role's - // permissions to access DynamoDB on your behalf - iamRoleArn?: null | string @go(IAMRoleArn,*string) - id?: null | string @go(ID,*string) - - // ddd:hh24:mi - // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Example: - // sun:05:00-sun:09:00 - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // – The compute and memory capacity of the nodes. See - // Nodes for supported node types - nodeType?: null | string @go(NodeType,*string) - - // List of node objects including id, address, port and - // availability_zone. Referenceable e.g., as - // ${aws_dax_cluster.test.nodes.0.address} - nodes?: [...#NodesObservation] @go(Nodes,[]NodesObservation) - - // east-1:012345678999:my_sns_topic - notificationTopicArn?: null | string @go(NotificationTopicArn,*string) - - // – Name of the parameter group to associate - // with this DAX cluster - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // The port used by the configuration endpoint - port?: null | float64 @go(Port,*float64) - - // node cluster, without any read - // replicas - replicationFactor?: null | float64 @go(ReplicationFactor,*float64) - - // – One or more VPC security groups associated - // with the cluster - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Encrypt at rest options - serverSideEncryption?: [...#ServerSideEncryptionObservation] @go(ServerSideEncryption,[]ServerSideEncryptionObservation) - - // – Name of the subnet group to be used for the - // cluster - subnetGroupName?: null | string @go(SubnetGroupName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ClusterParameters: { - // List of Availability Zones in which the - // nodes will be created - // +kubebuilder:validation:Optional - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // – The type of encryption the - // cluster's endpoint should support. Valid values are: NONE and TLS. - // Default value is NONE. - // +kubebuilder:validation:Optional - clusterEndpointEncryptionType?: null | string @go(ClusterEndpointEncryptionType,*string) - - // – Description for the cluster - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A valid Amazon Resource Name (ARN) that identifies - // an IAM role. At runtime, DAX will assume this role and use the role's - // permissions to access DynamoDB on your behalf - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // Reference to a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnRef?: null | v1.#Reference @go(IAMRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnSelector?: null | v1.#Selector @go(IAMRoleArnSelector,*v1.Selector) - - // ddd:hh24:mi - // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Example: - // sun:05:00-sun:09:00 - // +kubebuilder:validation:Optional - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // – The compute and memory capacity of the nodes. See - // Nodes for supported node types - // +kubebuilder:validation:Optional - nodeType?: null | string @go(NodeType,*string) - - // east-1:012345678999:my_sns_topic - // +kubebuilder:validation:Optional - notificationTopicArn?: null | string @go(NotificationTopicArn,*string) - - // – Name of the parameter group to associate - // with this DAX cluster - // +kubebuilder:validation:Optional - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // node cluster, without any read - // replicas - // +kubebuilder:validation:Optional - replicationFactor?: null | float64 @go(ReplicationFactor,*float64) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // – One or more VPC security groups associated - // with the cluster - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Encrypt at rest options - // +kubebuilder:validation:Optional - serverSideEncryption?: [...#ServerSideEncryptionParameters] @go(ServerSideEncryption,[]ServerSideEncryptionParameters) - - // – Name of the subnet group to be used for the - // cluster - // +kubebuilder:validation:Optional - subnetGroupName?: null | string @go(SubnetGroupName,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#NodesInitParameters: { -} - -#NodesObservation: { - address?: null | string @go(Address,*string) - availabilityZone?: null | string @go(AvailabilityZone,*string) - id?: null | string @go(ID,*string) - - // The port used by the configuration endpoint - port?: null | float64 @go(Port,*float64) -} - -#NodesParameters: { -} - -#ServerSideEncryptionInitParameters: { - // Whether to enable encryption at rest. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) -} - -#ServerSideEncryptionObservation: { - // Whether to enable encryption at rest. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) -} - -#ServerSideEncryptionParameters: { - // Whether to enable encryption at rest. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -// ClusterSpec defines the desired state of Cluster -#ClusterSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInitParameters @go(InitProvider) -} - -// ClusterStatus defines the observed state of Cluster. -#ClusterStatus: { - v1.#ResourceStatus - atProvider?: #ClusterObservation @go(AtProvider) -} - -// Cluster is the Schema for the Clusters API. Provides an DAX Cluster resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Cluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.nodeType) || (has(self.initProvider) && has(self.initProvider.nodeType))",message="spec.forProvider.nodeType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.replicationFactor) || (has(self.initProvider) && has(self.initProvider.replicationFactor))",message="spec.forProvider.replicationFactor is a required parameter" - spec: #ClusterSpec @go(Spec) - status?: #ClusterStatus @go(Status) -} - -// ClusterList contains a list of Clusters -#ClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Cluster] @go(Items,[]Cluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dax/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dax/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 4bd1057..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dax/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dax/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=dax.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "dax.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dax/v1beta1/zz_parametergroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dax/v1beta1/zz_parametergroup_types_go_gen.cue deleted file mode 100644 index 706546b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dax/v1beta1/zz_parametergroup_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dax/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ParameterGroupInitParameters: { - // A description of the parameter group. - description?: null | string @go(Description,*string) - - // – The parameters of the parameter group. - parameters?: [...#ParametersInitParameters] @go(Parameters,[]ParametersInitParameters) -} - -#ParameterGroupObservation: { - // A description of the parameter group. - description?: null | string @go(Description,*string) - - // The name of the parameter group. - id?: null | string @go(ID,*string) - - // – The parameters of the parameter group. - parameters?: [...#ParametersObservation] @go(Parameters,[]ParametersObservation) -} - -#ParameterGroupParameters: { - // A description of the parameter group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // – The parameters of the parameter group. - // +kubebuilder:validation:Optional - parameters?: [...#ParametersParameters] @go(Parameters,[]ParametersParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#ParametersInitParameters: { - // The name of the parameter. - name?: null | string @go(Name,*string) - - // The value for the parameter. - value?: null | string @go(Value,*string) -} - -#ParametersObservation: { - // The name of the parameter. - name?: null | string @go(Name,*string) - - // The value for the parameter. - value?: null | string @go(Value,*string) -} - -#ParametersParameters: { - // The name of the parameter. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value for the parameter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// ParameterGroupSpec defines the desired state of ParameterGroup -#ParameterGroupSpec: { - v1.#ResourceSpec - forProvider: #ParameterGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ParameterGroupInitParameters @go(InitProvider) -} - -// ParameterGroupStatus defines the observed state of ParameterGroup. -#ParameterGroupStatus: { - v1.#ResourceStatus - atProvider?: #ParameterGroupObservation @go(AtProvider) -} - -// ParameterGroup is the Schema for the ParameterGroups API. Provides an DAX Parameter Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ParameterGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ParameterGroupSpec @go(Spec) - status?: #ParameterGroupStatus @go(Status) -} - -// ParameterGroupList contains a list of ParameterGroups -#ParameterGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ParameterGroup] @go(Items,[]ParameterGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dax/v1beta1/zz_subnetgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dax/v1beta1/zz_subnetgroup_types_go_gen.cue deleted file mode 100644 index 87ceed4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dax/v1beta1/zz_subnetgroup_types_go_gen.cue +++ /dev/null @@ -1,100 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dax/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SubnetGroupInitParameters: { - // A description of the subnet group. - description?: null | string @go(Description,*string) -} - -#SubnetGroupObservation: { - // A description of the subnet group. - description?: null | string @go(Description,*string) - - // The name of the subnet group. - id?: null | string @go(ID,*string) - - // – A list of VPC subnet IDs for the subnet group. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // – VPC ID of the subnet group. - vpcId?: null | string @go(VPCID,*string) -} - -#SubnetGroupParameters: { - // A description of the subnet group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // – A list of VPC subnet IDs for the subnet group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -// SubnetGroupSpec defines the desired state of SubnetGroup -#SubnetGroupSpec: { - v1.#ResourceSpec - forProvider: #SubnetGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SubnetGroupInitParameters @go(InitProvider) -} - -// SubnetGroupStatus defines the observed state of SubnetGroup. -#SubnetGroupStatus: { - v1.#ResourceStatus - atProvider?: #SubnetGroupObservation @go(AtProvider) -} - -// SubnetGroup is the Schema for the SubnetGroups API. Provides an DAX Subnet Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SubnetGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SubnetGroupSpec @go(Spec) - status?: #SubnetGroupStatus @go(Status) -} - -// SubnetGroupList contains a list of SubnetGroups -#SubnetGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SubnetGroup] @go(Items,[]SubnetGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/deploy/v1beta1/zz_app_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/deploy/v1beta1/zz_app_types_go_gen.cue deleted file mode 100644 index 7f07ffb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/deploy/v1beta1/zz_app_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/deploy/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AppInitParameters: { - // The compute platform can either be ECS, Lambda, or Server. Default is Server. - computePlatform?: null | string @go(ComputePlatform,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AppObservation: { - // The application ID. - applicationId?: null | string @go(ApplicationID,*string) - - // The ARN of the CodeDeploy application. - arn?: null | string @go(Arn,*string) - - // The compute platform can either be ECS, Lambda, or Server. Default is Server. - computePlatform?: null | string @go(ComputePlatform,*string) - - // The name for a connection to a GitHub account. - githubAccountName?: null | string @go(GithubAccountName,*string) - - // Amazon's assigned ID for the application. - id?: null | string @go(ID,*string) - - // Whether the user has authenticated with GitHub for the specified application. - linkedToGithub?: null | bool @go(LinkedToGithub,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#AppParameters: { - // The compute platform can either be ECS, Lambda, or Server. Default is Server. - // +kubebuilder:validation:Optional - computePlatform?: null | string @go(ComputePlatform,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// AppSpec defines the desired state of App -#AppSpec: { - v1.#ResourceSpec - forProvider: #AppParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AppInitParameters @go(InitProvider) -} - -// AppStatus defines the observed state of App. -#AppStatus: { - v1.#ResourceStatus - atProvider?: #AppObservation @go(AtProvider) -} - -// App is the Schema for the Apps API. Provides a CodeDeploy application. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#App: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AppSpec @go(Spec) - status?: #AppStatus @go(Status) -} - -// AppList contains a list of Apps -#AppList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#App] @go(Items,[]App) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/deploy/v1beta1/zz_deploymentconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/deploy/v1beta1/zz_deploymentconfig_types_go_gen.cue deleted file mode 100644 index f8ae670..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/deploy/v1beta1/zz_deploymentconfig_types_go_gen.cue +++ /dev/null @@ -1,225 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/deploy/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DeploymentConfigInitParameters: { - // The compute platform can be Server, Lambda, or ECS. Default is Server. - computePlatform?: null | string @go(ComputePlatform,*string) - - // A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below. - minimumHealthyHosts?: [...#MinimumHealthyHostsInitParameters] @go(MinimumHealthyHosts,[]MinimumHealthyHostsInitParameters) - - // A traffic_routing_config block. Traffic Routing Config is documented below. - trafficRoutingConfig?: [...#TrafficRoutingConfigInitParameters] @go(TrafficRoutingConfig,[]TrafficRoutingConfigInitParameters) -} - -#DeploymentConfigObservation: { - // The compute platform can be Server, Lambda, or ECS. Default is Server. - computePlatform?: null | string @go(ComputePlatform,*string) - - // The AWS Assigned deployment config id - deploymentConfigId?: null | string @go(DeploymentConfigID,*string) - - // The deployment group's config name. - id?: null | string @go(ID,*string) - - // A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below. - minimumHealthyHosts?: [...#MinimumHealthyHostsObservation] @go(MinimumHealthyHosts,[]MinimumHealthyHostsObservation) - - // A traffic_routing_config block. Traffic Routing Config is documented below. - trafficRoutingConfig?: [...#TrafficRoutingConfigObservation] @go(TrafficRoutingConfig,[]TrafficRoutingConfigObservation) -} - -#DeploymentConfigParameters: { - // The compute platform can be Server, Lambda, or ECS. Default is Server. - // +kubebuilder:validation:Optional - computePlatform?: null | string @go(ComputePlatform,*string) - - // A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below. - // +kubebuilder:validation:Optional - minimumHealthyHosts?: [...#MinimumHealthyHostsParameters] @go(MinimumHealthyHosts,[]MinimumHealthyHostsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A traffic_routing_config block. Traffic Routing Config is documented below. - // +kubebuilder:validation:Optional - trafficRoutingConfig?: [...#TrafficRoutingConfigParameters] @go(TrafficRoutingConfig,[]TrafficRoutingConfigParameters) -} - -#MinimumHealthyHostsInitParameters: { - // The type can either be FLEET_PERCENT or HOST_COUNT. - type?: null | string @go(Type,*string) - - // The value when the type is FLEET_PERCENT represents the minimum number of healthy instances as - // a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the - // deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. - // When the type is HOST_COUNT, the value represents the minimum number of healthy instances as an absolute value. - value?: null | float64 @go(Value,*float64) -} - -#MinimumHealthyHostsObservation: { - // The type can either be FLEET_PERCENT or HOST_COUNT. - type?: null | string @go(Type,*string) - - // The value when the type is FLEET_PERCENT represents the minimum number of healthy instances as - // a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the - // deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. - // When the type is HOST_COUNT, the value represents the minimum number of healthy instances as an absolute value. - value?: null | float64 @go(Value,*float64) -} - -#MinimumHealthyHostsParameters: { - // The type can either be FLEET_PERCENT or HOST_COUNT. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The value when the type is FLEET_PERCENT represents the minimum number of healthy instances as - // a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the - // deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. - // When the type is HOST_COUNT, the value represents the minimum number of healthy instances as an absolute value. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#TimeBasedCanaryInitParameters: { - // The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment. - interval?: null | float64 @go(Interval,*float64) - - // The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment. - percentage?: null | float64 @go(Percentage,*float64) -} - -#TimeBasedCanaryObservation: { - // The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment. - interval?: null | float64 @go(Interval,*float64) - - // The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment. - percentage?: null | float64 @go(Percentage,*float64) -} - -#TimeBasedCanaryParameters: { - // The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment. - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) - - // The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment. - // +kubebuilder:validation:Optional - percentage?: null | float64 @go(Percentage,*float64) -} - -#TimeBasedLinearInitParameters: { - // The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment. - interval?: null | float64 @go(Interval,*float64) - - // The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment. - percentage?: null | float64 @go(Percentage,*float64) -} - -#TimeBasedLinearObservation: { - // The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment. - interval?: null | float64 @go(Interval,*float64) - - // The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment. - percentage?: null | float64 @go(Percentage,*float64) -} - -#TimeBasedLinearParameters: { - // The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment. - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) - - // The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment. - // +kubebuilder:validation:Optional - percentage?: null | float64 @go(Percentage,*float64) -} - -#TrafficRoutingConfigInitParameters: { - // The time based canary configuration information. If type is TimeBasedLinear, use time_based_linear instead. - timeBasedCanary?: [...#TimeBasedCanaryInitParameters] @go(TimeBasedCanary,[]TimeBasedCanaryInitParameters) - - // The time based linear configuration information. If type is TimeBasedCanary, use time_based_canary instead. - timeBasedLinear?: [...#TimeBasedLinearInitParameters] @go(TimeBasedLinear,[]TimeBasedLinearInitParameters) - - // Type of traffic routing config. One of TimeBasedCanary, TimeBasedLinear, AllAtOnce. - type?: null | string @go(Type,*string) -} - -#TrafficRoutingConfigObservation: { - // The time based canary configuration information. If type is TimeBasedLinear, use time_based_linear instead. - timeBasedCanary?: [...#TimeBasedCanaryObservation] @go(TimeBasedCanary,[]TimeBasedCanaryObservation) - - // The time based linear configuration information. If type is TimeBasedCanary, use time_based_canary instead. - timeBasedLinear?: [...#TimeBasedLinearObservation] @go(TimeBasedLinear,[]TimeBasedLinearObservation) - - // Type of traffic routing config. One of TimeBasedCanary, TimeBasedLinear, AllAtOnce. - type?: null | string @go(Type,*string) -} - -#TrafficRoutingConfigParameters: { - // The time based canary configuration information. If type is TimeBasedLinear, use time_based_linear instead. - // +kubebuilder:validation:Optional - timeBasedCanary?: [...#TimeBasedCanaryParameters] @go(TimeBasedCanary,[]TimeBasedCanaryParameters) - - // The time based linear configuration information. If type is TimeBasedCanary, use time_based_canary instead. - // +kubebuilder:validation:Optional - timeBasedLinear?: [...#TimeBasedLinearParameters] @go(TimeBasedLinear,[]TimeBasedLinearParameters) - - // Type of traffic routing config. One of TimeBasedCanary, TimeBasedLinear, AllAtOnce. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// DeploymentConfigSpec defines the desired state of DeploymentConfig -#DeploymentConfigSpec: { - v1.#ResourceSpec - forProvider: #DeploymentConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DeploymentConfigInitParameters @go(InitProvider) -} - -// DeploymentConfigStatus defines the observed state of DeploymentConfig. -#DeploymentConfigStatus: { - v1.#ResourceStatus - atProvider?: #DeploymentConfigObservation @go(AtProvider) -} - -// DeploymentConfig is the Schema for the DeploymentConfigs API. Provides a CodeDeploy deployment config. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DeploymentConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DeploymentConfigSpec @go(Spec) - status?: #DeploymentConfigStatus @go(Status) -} - -// DeploymentConfigList contains a list of DeploymentConfigs -#DeploymentConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DeploymentConfig] @go(Items,[]DeploymentConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/deploy/v1beta1/zz_deploymentgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/deploy/v1beta1/zz_deploymentgroup_types_go_gen.cue deleted file mode 100644 index 320d103..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/deploy/v1beta1/zz_deploymentgroup_types_go_gen.cue +++ /dev/null @@ -1,809 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/deploy/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AlarmConfigurationInitParameters: { - // A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group. - alarms?: [...null | string] @go(Alarms,[]*string) - - // Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later. - enabled?: null | bool @go(Enabled,*bool) - - // Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is false. - ignorePollAlarmFailure?: null | bool @go(IgnorePollAlarmFailure,*bool) -} - -#AlarmConfigurationObservation: { - // A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group. - alarms?: [...null | string] @go(Alarms,[]*string) - - // Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later. - enabled?: null | bool @go(Enabled,*bool) - - // Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is false. - ignorePollAlarmFailure?: null | bool @go(IgnorePollAlarmFailure,*bool) -} - -#AlarmConfigurationParameters: { - // A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group. - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is false. - // +kubebuilder:validation:Optional - ignorePollAlarmFailure?: null | bool @go(IgnorePollAlarmFailure,*bool) -} - -#AutoRollbackConfigurationInitParameters: { - // Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later. - enabled?: null | bool @go(Enabled,*bool) - - // The event type or types that trigger a rollback. Supported types are DEPLOYMENT_FAILURE and DEPLOYMENT_STOP_ON_ALARM. - events?: [...null | string] @go(Events,[]*string) -} - -#AutoRollbackConfigurationObservation: { - // Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later. - enabled?: null | bool @go(Enabled,*bool) - - // The event type or types that trigger a rollback. Supported types are DEPLOYMENT_FAILURE and DEPLOYMENT_STOP_ON_ALARM. - events?: [...null | string] @go(Events,[]*string) -} - -#AutoRollbackConfigurationParameters: { - // Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The event type or types that trigger a rollback. Supported types are DEPLOYMENT_FAILURE and DEPLOYMENT_STOP_ON_ALARM. - // +kubebuilder:validation:Optional - events?: [...null | string] @go(Events,[]*string) -} - -#BlueGreenDeploymentConfigInitParameters: { - // Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below). - deploymentReadyOption?: [...#DeploymentReadyOptionInitParameters] @go(DeploymentReadyOption,[]DeploymentReadyOptionInitParameters) - - // Information about how instances are provisioned for a replacement environment in a blue/green deployment (documented below). - greenFleetProvisioningOption?: [...#GreenFleetProvisioningOptionInitParameters] @go(GreenFleetProvisioningOption,[]GreenFleetProvisioningOptionInitParameters) - - // Information about whether to terminate instances in the original fleet during a blue/green deployment (documented below). - terminateBlueInstancesOnDeploymentSuccess?: [...#TerminateBlueInstancesOnDeploymentSuccessInitParameters] @go(TerminateBlueInstancesOnDeploymentSuccess,[]TerminateBlueInstancesOnDeploymentSuccessInitParameters) -} - -#BlueGreenDeploymentConfigObservation: { - // Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below). - deploymentReadyOption?: [...#DeploymentReadyOptionObservation] @go(DeploymentReadyOption,[]DeploymentReadyOptionObservation) - - // Information about how instances are provisioned for a replacement environment in a blue/green deployment (documented below). - greenFleetProvisioningOption?: [...#GreenFleetProvisioningOptionObservation] @go(GreenFleetProvisioningOption,[]GreenFleetProvisioningOptionObservation) - - // Information about whether to terminate instances in the original fleet during a blue/green deployment (documented below). - terminateBlueInstancesOnDeploymentSuccess?: [...#TerminateBlueInstancesOnDeploymentSuccessObservation] @go(TerminateBlueInstancesOnDeploymentSuccess,[]TerminateBlueInstancesOnDeploymentSuccessObservation) -} - -#BlueGreenDeploymentConfigParameters: { - // Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below). - // +kubebuilder:validation:Optional - deploymentReadyOption?: [...#DeploymentReadyOptionParameters] @go(DeploymentReadyOption,[]DeploymentReadyOptionParameters) - - // Information about how instances are provisioned for a replacement environment in a blue/green deployment (documented below). - // +kubebuilder:validation:Optional - greenFleetProvisioningOption?: [...#GreenFleetProvisioningOptionParameters] @go(GreenFleetProvisioningOption,[]GreenFleetProvisioningOptionParameters) - - // Information about whether to terminate instances in the original fleet during a blue/green deployment (documented below). - // +kubebuilder:validation:Optional - terminateBlueInstancesOnDeploymentSuccess?: [...#TerminateBlueInstancesOnDeploymentSuccessParameters] @go(TerminateBlueInstancesOnDeploymentSuccess,[]TerminateBlueInstancesOnDeploymentSuccessParameters) -} - -#DeploymentGroupInitParameters: { - // Configuration block of alarms associated with the deployment group (documented below). - alarmConfiguration?: [...#AlarmConfigurationInitParameters] @go(AlarmConfiguration,[]AlarmConfigurationInitParameters) - - // Configuration block of the automatic rollback configuration associated with the deployment group (documented below). - autoRollbackConfiguration?: [...#AutoRollbackConfigurationInitParameters] @go(AutoRollbackConfiguration,[]AutoRollbackConfigurationInitParameters) - - // Autoscaling groups associated with the deployment group. - autoscalingGroups?: [...null | string] @go(AutoscalingGroups,[]*string) - - // Configuration block of the blue/green deployment options for a deployment group (documented below). - blueGreenDeploymentConfig?: [...#BlueGreenDeploymentConfigInitParameters] @go(BlueGreenDeploymentConfig,[]BlueGreenDeploymentConfigInitParameters) - - // The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime". - deploymentConfigName?: null | string @go(DeploymentConfigName,*string) - - // Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below). - deploymentStyle?: [...#DeploymentStyleInitParameters] @go(DeploymentStyle,[]DeploymentStyleInitParameters) - - // Tag filters associated with the deployment group. See the AWS docs for details. - ec2TagFilter?: [...#EC2TagFilterInitParameters] @go(EC2TagFilter,[]EC2TagFilterInitParameters) - - // Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details. - ec2TagSet?: [...#EC2TagSetInitParameters] @go(EC2TagSet,[]EC2TagSetInitParameters) - - // Configuration block(s) of the ECS services for a deployment group (documented below). - ecsService?: [...#EcsServiceInitParameters] @go(EcsService,[]EcsServiceInitParameters) - - // Single configuration block of the load balancer to use in a blue/green deployment (documented below). - loadBalancerInfo?: [...#LoadBalancerInfoInitParameters] @go(LoadBalancerInfo,[]LoadBalancerInfoInitParameters) - - // On premise tag filters associated with the group. See the AWS docs for details. - onPremisesInstanceTagFilter?: [...#OnPremisesInstanceTagFilterInitParameters] @go(OnPremisesInstanceTagFilter,[]OnPremisesInstanceTagFilterInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block(s) of the triggers for the deployment group (documented below). - triggerConfiguration?: [...#TriggerConfigurationInitParameters] @go(TriggerConfiguration,[]TriggerConfigurationInitParameters) -} - -#DeploymentGroupObservation: { - // Configuration block of alarms associated with the deployment group (documented below). - alarmConfiguration?: [...#AlarmConfigurationObservation] @go(AlarmConfiguration,[]AlarmConfigurationObservation) - - // The name of the application. - appName?: null | string @go(AppName,*string) - - // The ARN of the CodeDeploy deployment group. - arn?: null | string @go(Arn,*string) - - // Configuration block of the automatic rollback configuration associated with the deployment group (documented below). - autoRollbackConfiguration?: [...#AutoRollbackConfigurationObservation] @go(AutoRollbackConfiguration,[]AutoRollbackConfigurationObservation) - - // Autoscaling groups associated with the deployment group. - autoscalingGroups?: [...null | string] @go(AutoscalingGroups,[]*string) - - // Configuration block of the blue/green deployment options for a deployment group (documented below). - blueGreenDeploymentConfig?: [...#BlueGreenDeploymentConfigObservation] @go(BlueGreenDeploymentConfig,[]BlueGreenDeploymentConfigObservation) - - // The destination platform type for the deployment. - computePlatform?: null | string @go(ComputePlatform,*string) - - // The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime". - deploymentConfigName?: null | string @go(DeploymentConfigName,*string) - - // The ID of the CodeDeploy deployment group. - deploymentGroupId?: null | string @go(DeploymentGroupID,*string) - - // Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below). - deploymentStyle?: [...#DeploymentStyleObservation] @go(DeploymentStyle,[]DeploymentStyleObservation) - - // Tag filters associated with the deployment group. See the AWS docs for details. - ec2TagFilter?: [...#EC2TagFilterObservation] @go(EC2TagFilter,[]EC2TagFilterObservation) - - // Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details. - ec2TagSet?: [...#EC2TagSetObservation] @go(EC2TagSet,[]EC2TagSetObservation) - - // Configuration block(s) of the ECS services for a deployment group (documented below). - ecsService?: [...#EcsServiceObservation] @go(EcsService,[]EcsServiceObservation) - - // Application name and deployment group name. - id?: null | string @go(ID,*string) - - // Single configuration block of the load balancer to use in a blue/green deployment (documented below). - loadBalancerInfo?: [...#LoadBalancerInfoObservation] @go(LoadBalancerInfo,[]LoadBalancerInfoObservation) - - // On premise tag filters associated with the group. See the AWS docs for details. - onPremisesInstanceTagFilter?: [...#OnPremisesInstanceTagFilterObservation] @go(OnPremisesInstanceTagFilter,[]OnPremisesInstanceTagFilterObservation) - - // The service role ARN that allows deployments. - serviceRoleArn?: null | string @go(ServiceRoleArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration block(s) of the triggers for the deployment group (documented below). - triggerConfiguration?: [...#TriggerConfigurationObservation] @go(TriggerConfiguration,[]TriggerConfigurationObservation) -} - -#DeploymentGroupParameters: { - // Configuration block of alarms associated with the deployment group (documented below). - // +kubebuilder:validation:Optional - alarmConfiguration?: [...#AlarmConfigurationParameters] @go(AlarmConfiguration,[]AlarmConfigurationParameters) - - // The name of the application. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/deploy/v1beta1.App - // +kubebuilder:validation:Optional - appName?: null | string @go(AppName,*string) - - // Reference to a App in deploy to populate appName. - // +kubebuilder:validation:Optional - appNameRef?: null | v1.#Reference @go(AppNameRef,*v1.Reference) - - // Selector for a App in deploy to populate appName. - // +kubebuilder:validation:Optional - appNameSelector?: null | v1.#Selector @go(AppNameSelector,*v1.Selector) - - // Configuration block of the automatic rollback configuration associated with the deployment group (documented below). - // +kubebuilder:validation:Optional - autoRollbackConfiguration?: [...#AutoRollbackConfigurationParameters] @go(AutoRollbackConfiguration,[]AutoRollbackConfigurationParameters) - - // Autoscaling groups associated with the deployment group. - // +kubebuilder:validation:Optional - autoscalingGroups?: [...null | string] @go(AutoscalingGroups,[]*string) - - // Configuration block of the blue/green deployment options for a deployment group (documented below). - // +kubebuilder:validation:Optional - blueGreenDeploymentConfig?: [...#BlueGreenDeploymentConfigParameters] @go(BlueGreenDeploymentConfig,[]BlueGreenDeploymentConfigParameters) - - // The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime". - // +kubebuilder:validation:Optional - deploymentConfigName?: null | string @go(DeploymentConfigName,*string) - - // Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below). - // +kubebuilder:validation:Optional - deploymentStyle?: [...#DeploymentStyleParameters] @go(DeploymentStyle,[]DeploymentStyleParameters) - - // Tag filters associated with the deployment group. See the AWS docs for details. - // +kubebuilder:validation:Optional - ec2TagFilter?: [...#EC2TagFilterParameters] @go(EC2TagFilter,[]EC2TagFilterParameters) - - // Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details. - // +kubebuilder:validation:Optional - ec2TagSet?: [...#EC2TagSetParameters] @go(EC2TagSet,[]EC2TagSetParameters) - - // Configuration block(s) of the ECS services for a deployment group (documented below). - // +kubebuilder:validation:Optional - ecsService?: [...#EcsServiceParameters] @go(EcsService,[]EcsServiceParameters) - - // Single configuration block of the load balancer to use in a blue/green deployment (documented below). - // +kubebuilder:validation:Optional - loadBalancerInfo?: [...#LoadBalancerInfoParameters] @go(LoadBalancerInfo,[]LoadBalancerInfoParameters) - - // On premise tag filters associated with the group. See the AWS docs for details. - // +kubebuilder:validation:Optional - onPremisesInstanceTagFilter?: [...#OnPremisesInstanceTagFilterParameters] @go(OnPremisesInstanceTagFilter,[]OnPremisesInstanceTagFilterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The service role ARN that allows deployments. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - serviceRoleArn?: null | string @go(ServiceRoleArn,*string) - - // Reference to a Role in iam to populate serviceRoleArn. - // +kubebuilder:validation:Optional - serviceRoleArnRef?: null | v1.#Reference @go(ServiceRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate serviceRoleArn. - // +kubebuilder:validation:Optional - serviceRoleArnSelector?: null | v1.#Selector @go(ServiceRoleArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block(s) of the triggers for the deployment group (documented below). - // +kubebuilder:validation:Optional - triggerConfiguration?: [...#TriggerConfigurationParameters] @go(TriggerConfiguration,[]TriggerConfigurationParameters) -} - -#DeploymentReadyOptionInitParameters: { - // When to reroute traffic from an original environment to a replacement environment in a blue/green deployment. - actionOnTimeout?: null | string @go(ActionOnTimeout,*string) - - // The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for action_on_timeout. - waitTimeInMinutes?: null | float64 @go(WaitTimeInMinutes,*float64) -} - -#DeploymentReadyOptionObservation: { - // When to reroute traffic from an original environment to a replacement environment in a blue/green deployment. - actionOnTimeout?: null | string @go(ActionOnTimeout,*string) - - // The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for action_on_timeout. - waitTimeInMinutes?: null | float64 @go(WaitTimeInMinutes,*float64) -} - -#DeploymentReadyOptionParameters: { - // When to reroute traffic from an original environment to a replacement environment in a blue/green deployment. - // +kubebuilder:validation:Optional - actionOnTimeout?: null | string @go(ActionOnTimeout,*string) - - // The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for action_on_timeout. - // +kubebuilder:validation:Optional - waitTimeInMinutes?: null | float64 @go(WaitTimeInMinutes,*float64) -} - -#DeploymentStyleInitParameters: { - // Indicates whether to route deployment traffic behind a load balancer. Valid Values are WITH_TRAFFIC_CONTROL or WITHOUT_TRAFFIC_CONTROL. Default is WITHOUT_TRAFFIC_CONTROL. - deploymentOption?: null | string @go(DeploymentOption,*string) - - // Indicates whether to run an in-place deployment or a blue/green deployment. Valid Values are IN_PLACE or BLUE_GREEN. Default is IN_PLACE. - deploymentType?: null | string @go(DeploymentType,*string) -} - -#DeploymentStyleObservation: { - // Indicates whether to route deployment traffic behind a load balancer. Valid Values are WITH_TRAFFIC_CONTROL or WITHOUT_TRAFFIC_CONTROL. Default is WITHOUT_TRAFFIC_CONTROL. - deploymentOption?: null | string @go(DeploymentOption,*string) - - // Indicates whether to run an in-place deployment or a blue/green deployment. Valid Values are IN_PLACE or BLUE_GREEN. Default is IN_PLACE. - deploymentType?: null | string @go(DeploymentType,*string) -} - -#DeploymentStyleParameters: { - // Indicates whether to route deployment traffic behind a load balancer. Valid Values are WITH_TRAFFIC_CONTROL or WITHOUT_TRAFFIC_CONTROL. Default is WITHOUT_TRAFFIC_CONTROL. - // +kubebuilder:validation:Optional - deploymentOption?: null | string @go(DeploymentOption,*string) - - // Indicates whether to run an in-place deployment or a blue/green deployment. Valid Values are IN_PLACE or BLUE_GREEN. Default is IN_PLACE. - // +kubebuilder:validation:Optional - deploymentType?: null | string @go(DeploymentType,*string) -} - -#EC2TagFilterInitParameters: { - // The key of the tag filter. - key?: null | string @go(Key,*string) - - // The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE. - type?: null | string @go(Type,*string) - - // The value of the tag filter. - value?: null | string @go(Value,*string) -} - -#EC2TagFilterObservation: { - // The key of the tag filter. - key?: null | string @go(Key,*string) - - // The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE. - type?: null | string @go(Type,*string) - - // The value of the tag filter. - value?: null | string @go(Value,*string) -} - -#EC2TagFilterParameters: { - // The key of the tag filter. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The value of the tag filter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#EC2TagSetEC2TagFilterInitParameters: { - // The key of the tag filter. - key?: null | string @go(Key,*string) - - // The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE. - type?: null | string @go(Type,*string) - - // The value of the tag filter. - value?: null | string @go(Value,*string) -} - -#EC2TagSetEC2TagFilterObservation: { - // The key of the tag filter. - key?: null | string @go(Key,*string) - - // The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE. - type?: null | string @go(Type,*string) - - // The value of the tag filter. - value?: null | string @go(Value,*string) -} - -#EC2TagSetEC2TagFilterParameters: { - // The key of the tag filter. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The value of the tag filter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#EC2TagSetInitParameters: { - // Tag filters associated with the deployment group. See the AWS docs for details. - ec2TagFilter?: [...#EC2TagSetEC2TagFilterInitParameters] @go(EC2TagFilter,[]EC2TagSetEC2TagFilterInitParameters) -} - -#EC2TagSetObservation: { - // Tag filters associated with the deployment group. See the AWS docs for details. - ec2TagFilter?: [...#EC2TagSetEC2TagFilterObservation] @go(EC2TagFilter,[]EC2TagSetEC2TagFilterObservation) -} - -#EC2TagSetParameters: { - // Tag filters associated with the deployment group. See the AWS docs for details. - // +kubebuilder:validation:Optional - ec2TagFilter?: [...#EC2TagSetEC2TagFilterParameters] @go(EC2TagFilter,[]EC2TagSetEC2TagFilterParameters) -} - -#ELBInfoInitParameters: { -} - -#ELBInfoObservation: { - // The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. - name?: null | string @go(Name,*string) -} - -#ELBInfoParameters: { - // The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elb/v1beta1.ELB - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Reference to a ELB in elb to populate name. - // +kubebuilder:validation:Optional - nameRef?: null | v1.#Reference @go(NameRef,*v1.Reference) - - // Selector for a ELB in elb to populate name. - // +kubebuilder:validation:Optional - nameSelector?: null | v1.#Selector @go(NameSelector,*v1.Selector) -} - -#EcsServiceInitParameters: { -} - -#EcsServiceObservation: { - // The name of the ECS cluster. - clusterName?: null | string @go(ClusterName,*string) - - // The name of the ECS service. - serviceName?: null | string @go(ServiceName,*string) -} - -#EcsServiceParameters: { - // The name of the ECS cluster. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ecs/v1beta1.Cluster - // +kubebuilder:validation:Optional - clusterName?: null | string @go(ClusterName,*string) - - // Reference to a Cluster in ecs to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameRef?: null | v1.#Reference @go(ClusterNameRef,*v1.Reference) - - // Selector for a Cluster in ecs to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameSelector?: null | v1.#Selector @go(ClusterNameSelector,*v1.Selector) - - // The name of the ECS service. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ecs/v1beta1.Service - // +kubebuilder:validation:Optional - serviceName?: null | string @go(ServiceName,*string) - - // Reference to a Service in ecs to populate serviceName. - // +kubebuilder:validation:Optional - serviceNameRef?: null | v1.#Reference @go(ServiceNameRef,*v1.Reference) - - // Selector for a Service in ecs to populate serviceName. - // +kubebuilder:validation:Optional - serviceNameSelector?: null | v1.#Selector @go(ServiceNameSelector,*v1.Selector) -} - -#GreenFleetProvisioningOptionInitParameters: { - // The method used to add instances to a replacement environment. - action?: null | string @go(Action,*string) -} - -#GreenFleetProvisioningOptionObservation: { - // The method used to add instances to a replacement environment. - action?: null | string @go(Action,*string) -} - -#GreenFleetProvisioningOptionParameters: { - // The method used to add instances to a replacement environment. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) -} - -#LoadBalancerInfoInitParameters: { - // The Classic Elastic Load Balancer to use in a deployment. Conflicts with target_group_info and target_group_pair_info. - elbInfo?: [...#ELBInfoInitParameters] @go(ELBInfo,[]ELBInfoInitParameters) - - // The (Application/Network Load Balancer) target group to use in a deployment. Conflicts with elb_info and target_group_pair_info. - targetGroupInfo?: [...#TargetGroupInfoInitParameters] @go(TargetGroupInfo,[]TargetGroupInfoInitParameters) - - // The (Application/Network Load Balancer) target group pair to use in a deployment. Conflicts with elb_info and target_group_info. - targetGroupPairInfo?: [...#TargetGroupPairInfoInitParameters] @go(TargetGroupPairInfo,[]TargetGroupPairInfoInitParameters) -} - -#LoadBalancerInfoObservation: { - // The Classic Elastic Load Balancer to use in a deployment. Conflicts with target_group_info and target_group_pair_info. - elbInfo?: [...#ELBInfoObservation] @go(ELBInfo,[]ELBInfoObservation) - - // The (Application/Network Load Balancer) target group to use in a deployment. Conflicts with elb_info and target_group_pair_info. - targetGroupInfo?: [...#TargetGroupInfoObservation] @go(TargetGroupInfo,[]TargetGroupInfoObservation) - - // The (Application/Network Load Balancer) target group pair to use in a deployment. Conflicts with elb_info and target_group_info. - targetGroupPairInfo?: [...#TargetGroupPairInfoObservation] @go(TargetGroupPairInfo,[]TargetGroupPairInfoObservation) -} - -#LoadBalancerInfoParameters: { - // The Classic Elastic Load Balancer to use in a deployment. Conflicts with target_group_info and target_group_pair_info. - // +kubebuilder:validation:Optional - elbInfo?: [...#ELBInfoParameters] @go(ELBInfo,[]ELBInfoParameters) - - // The (Application/Network Load Balancer) target group to use in a deployment. Conflicts with elb_info and target_group_pair_info. - // +kubebuilder:validation:Optional - targetGroupInfo?: [...#TargetGroupInfoParameters] @go(TargetGroupInfo,[]TargetGroupInfoParameters) - - // The (Application/Network Load Balancer) target group pair to use in a deployment. Conflicts with elb_info and target_group_info. - // +kubebuilder:validation:Optional - targetGroupPairInfo?: [...#TargetGroupPairInfoParameters] @go(TargetGroupPairInfo,[]TargetGroupPairInfoParameters) -} - -#OnPremisesInstanceTagFilterInitParameters: { - // The key of the tag filter. - key?: null | string @go(Key,*string) - - // The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE. - type?: null | string @go(Type,*string) - - // The value of the tag filter. - value?: null | string @go(Value,*string) -} - -#OnPremisesInstanceTagFilterObservation: { - // The key of the tag filter. - key?: null | string @go(Key,*string) - - // The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE. - type?: null | string @go(Type,*string) - - // The value of the tag filter. - value?: null | string @go(Value,*string) -} - -#OnPremisesInstanceTagFilterParameters: { - // The key of the tag filter. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The value of the tag filter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ProdTrafficRouteInitParameters: { - // List of Amazon Resource Names (ARNs) of the load balancer listeners. - listenerArns?: [...null | string] @go(ListenerArns,[]*string) -} - -#ProdTrafficRouteObservation: { - // List of Amazon Resource Names (ARNs) of the load balancer listeners. - listenerArns?: [...null | string] @go(ListenerArns,[]*string) -} - -#ProdTrafficRouteParameters: { - // List of Amazon Resource Names (ARNs) of the load balancer listeners. - // +kubebuilder:validation:Optional - listenerArns: [...null | string] @go(ListenerArns,[]*string) -} - -#TargetGroupInfoInitParameters: { - // The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. - name?: null | string @go(Name,*string) -} - -#TargetGroupInfoObservation: { - // The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. - name?: null | string @go(Name,*string) -} - -#TargetGroupInfoParameters: { - // The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#TargetGroupInitParameters: { -} - -#TargetGroupObservation: { - // The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. - name?: null | string @go(Name,*string) -} - -#TargetGroupPairInfoInitParameters: { - // Configuration block for the production traffic route (documented below). - prodTrafficRoute?: [...#ProdTrafficRouteInitParameters] @go(ProdTrafficRoute,[]ProdTrafficRouteInitParameters) - - // Configuration blocks for a target group within a target group pair (documented below). - targetGroup?: [...#TargetGroupInitParameters] @go(TargetGroup,[]TargetGroupInitParameters) - - // Configuration block for the test traffic route (documented below). - testTrafficRoute?: [...#TestTrafficRouteInitParameters] @go(TestTrafficRoute,[]TestTrafficRouteInitParameters) -} - -#TargetGroupPairInfoObservation: { - // Configuration block for the production traffic route (documented below). - prodTrafficRoute?: [...#ProdTrafficRouteObservation] @go(ProdTrafficRoute,[]ProdTrafficRouteObservation) - - // Configuration blocks for a target group within a target group pair (documented below). - targetGroup?: [...#TargetGroupObservation] @go(TargetGroup,[]TargetGroupObservation) - - // Configuration block for the test traffic route (documented below). - testTrafficRoute?: [...#TestTrafficRouteObservation] @go(TestTrafficRoute,[]TestTrafficRouteObservation) -} - -#TargetGroupPairInfoParameters: { - // Configuration block for the production traffic route (documented below). - // +kubebuilder:validation:Optional - prodTrafficRoute: [...#ProdTrafficRouteParameters] @go(ProdTrafficRoute,[]ProdTrafficRouteParameters) - - // Configuration blocks for a target group within a target group pair (documented below). - // +kubebuilder:validation:Optional - targetGroup: [...#TargetGroupParameters] @go(TargetGroup,[]TargetGroupParameters) - - // Configuration block for the test traffic route (documented below). - // +kubebuilder:validation:Optional - testTrafficRoute?: [...#TestTrafficRouteParameters] @go(TestTrafficRoute,[]TestTrafficRouteParameters) -} - -#TargetGroupParameters: { - // The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elbv2/v1beta1.LBTargetGroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Reference to a LBTargetGroup in elbv2 to populate name. - // +kubebuilder:validation:Optional - nameRef?: null | v1.#Reference @go(NameRef,*v1.Reference) - - // Selector for a LBTargetGroup in elbv2 to populate name. - // +kubebuilder:validation:Optional - nameSelector?: null | v1.#Selector @go(NameSelector,*v1.Selector) -} - -#TerminateBlueInstancesOnDeploymentSuccessInitParameters: { - // The method used to add instances to a replacement environment. - action?: null | string @go(Action,*string) - - // The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment. - terminationWaitTimeInMinutes?: null | float64 @go(TerminationWaitTimeInMinutes,*float64) -} - -#TerminateBlueInstancesOnDeploymentSuccessObservation: { - // The method used to add instances to a replacement environment. - action?: null | string @go(Action,*string) - - // The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment. - terminationWaitTimeInMinutes?: null | float64 @go(TerminationWaitTimeInMinutes,*float64) -} - -#TerminateBlueInstancesOnDeploymentSuccessParameters: { - // The method used to add instances to a replacement environment. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) - - // The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment. - // +kubebuilder:validation:Optional - terminationWaitTimeInMinutes?: null | float64 @go(TerminationWaitTimeInMinutes,*float64) -} - -#TestTrafficRouteInitParameters: { - // List of Amazon Resource Names (ARNs) of the load balancer listeners. - listenerArns?: [...null | string] @go(ListenerArns,[]*string) -} - -#TestTrafficRouteObservation: { - // List of Amazon Resource Names (ARNs) of the load balancer listeners. - listenerArns?: [...null | string] @go(ListenerArns,[]*string) -} - -#TestTrafficRouteParameters: { - // List of Amazon Resource Names (ARNs) of the load balancer listeners. - // +kubebuilder:validation:Optional - listenerArns: [...null | string] @go(ListenerArns,[]*string) -} - -#TriggerConfigurationInitParameters: { - // The event type or types for which notifications are triggered. Some values that are supported: DeploymentStart, DeploymentSuccess, DeploymentFailure, DeploymentStop, DeploymentRollback, InstanceStart, InstanceSuccess, InstanceFailure. See the CodeDeploy documentation for all possible values. - triggerEvents?: [...null | string] @go(TriggerEvents,[]*string) - - // The name of the notification trigger. - triggerName?: null | string @go(TriggerName,*string) -} - -#TriggerConfigurationObservation: { - // The event type or types for which notifications are triggered. Some values that are supported: DeploymentStart, DeploymentSuccess, DeploymentFailure, DeploymentStop, DeploymentRollback, InstanceStart, InstanceSuccess, InstanceFailure. See the CodeDeploy documentation for all possible values. - triggerEvents?: [...null | string] @go(TriggerEvents,[]*string) - - // The name of the notification trigger. - triggerName?: null | string @go(TriggerName,*string) - - // The ARN of the SNS topic through which notifications are sent. - triggerTargetArn?: null | string @go(TriggerTargetArn,*string) -} - -#TriggerConfigurationParameters: { - // The event type or types for which notifications are triggered. Some values that are supported: DeploymentStart, DeploymentSuccess, DeploymentFailure, DeploymentStop, DeploymentRollback, InstanceStart, InstanceSuccess, InstanceFailure. See the CodeDeploy documentation for all possible values. - // +kubebuilder:validation:Optional - triggerEvents: [...null | string] @go(TriggerEvents,[]*string) - - // The name of the notification trigger. - // +kubebuilder:validation:Optional - triggerName?: null | string @go(TriggerName,*string) - - // The ARN of the SNS topic through which notifications are sent. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - triggerTargetArn?: null | string @go(TriggerTargetArn,*string) - - // Reference to a Topic in sns to populate triggerTargetArn. - // +kubebuilder:validation:Optional - triggerTargetArnRef?: null | v1.#Reference @go(TriggerTargetArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate triggerTargetArn. - // +kubebuilder:validation:Optional - triggerTargetArnSelector?: null | v1.#Selector @go(TriggerTargetArnSelector,*v1.Selector) -} - -// DeploymentGroupSpec defines the desired state of DeploymentGroup -#DeploymentGroupSpec: { - v1.#ResourceSpec - forProvider: #DeploymentGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DeploymentGroupInitParameters @go(InitProvider) -} - -// DeploymentGroupStatus defines the observed state of DeploymentGroup. -#DeploymentGroupStatus: { - v1.#ResourceStatus - atProvider?: #DeploymentGroupObservation @go(AtProvider) -} - -// DeploymentGroup is the Schema for the DeploymentGroups API. Provides a CodeDeploy deployment group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DeploymentGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DeploymentGroupSpec @go(Spec) - status?: #DeploymentGroupStatus @go(Status) -} - -// DeploymentGroupList contains a list of DeploymentGroups -#DeploymentGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DeploymentGroup] @go(Items,[]DeploymentGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/deploy/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/deploy/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 8389953..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/deploy/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/deploy/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=deploy.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "deploy.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/detective/v1beta1/zz_graph_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/detective/v1beta1/zz_graph_types_go_gen.cue deleted file mode 100644 index 66b91e0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/detective/v1beta1/zz_graph_types_go_gen.cue +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/detective/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GraphInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#GraphObservation: { - // Date and time, in UTC and extended RFC 3339 format, when the Amazon Detective Graph was created. - createdTime?: null | string @go(CreatedTime,*string) - - // ARN of the Detective Graph. - graphArn?: null | string @go(GraphArn,*string) - - // ARN of the Detective Graph. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#GraphParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// GraphSpec defines the desired state of Graph -#GraphSpec: { - v1.#ResourceSpec - forProvider: #GraphParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GraphInitParameters @go(InitProvider) -} - -// GraphStatus defines the observed state of Graph. -#GraphStatus: { - v1.#ResourceStatus - atProvider?: #GraphObservation @go(AtProvider) -} - -// Graph is the Schema for the Graphs API. Provides a resource to manage an Amazon Detective graph. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Graph: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #GraphSpec @go(Spec) - status?: #GraphStatus @go(Status) -} - -// GraphList contains a list of Graphs -#GraphList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Graph] @go(Items,[]Graph) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/detective/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/detective/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index b5631c0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/detective/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/detective/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=detective.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "detective.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/detective/v1beta1/zz_invitationaccepter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/detective/v1beta1/zz_invitationaccepter_types_go_gen.cue deleted file mode 100644 index d11b040..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/detective/v1beta1/zz_invitationaccepter_types_go_gen.cue +++ /dev/null @@ -1,87 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/detective/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InvitationAccepterInitParameters: { -} - -#InvitationAccepterObservation: { - // ARN of the behavior graph that the member account is accepting the invitation for. - graphArn?: null | string @go(GraphArn,*string) - - // Unique identifier (ID) of the Detective invitation accepter. - id?: null | string @go(ID,*string) -} - -#InvitationAccepterParameters: { - // ARN of the behavior graph that the member account is accepting the invitation for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/detective/v1beta1.Graph - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("graph_arn",true) - // +kubebuilder:validation:Optional - graphArn?: null | string @go(GraphArn,*string) - - // Reference to a Graph in detective to populate graphArn. - // +kubebuilder:validation:Optional - graphArnRef?: null | v1.#Reference @go(GraphArnRef,*v1.Reference) - - // Selector for a Graph in detective to populate graphArn. - // +kubebuilder:validation:Optional - graphArnSelector?: null | v1.#Selector @go(GraphArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// InvitationAccepterSpec defines the desired state of InvitationAccepter -#InvitationAccepterSpec: { - v1.#ResourceSpec - forProvider: #InvitationAccepterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InvitationAccepterInitParameters @go(InitProvider) -} - -// InvitationAccepterStatus defines the observed state of InvitationAccepter. -#InvitationAccepterStatus: { - v1.#ResourceStatus - atProvider?: #InvitationAccepterObservation @go(AtProvider) -} - -// InvitationAccepter is the Schema for the InvitationAccepters API. Provides a resource to manage an Amazon Detective member invitation accepter. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#InvitationAccepter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #InvitationAccepterSpec @go(Spec) - status?: #InvitationAccepterStatus @go(Status) -} - -// InvitationAccepterList contains a list of InvitationAccepters -#InvitationAccepterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#InvitationAccepter] @go(Items,[]InvitationAccepter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/detective/v1beta1/zz_member_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/detective/v1beta1/zz_member_types_go_gen.cue deleted file mode 100644 index 62945a5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/detective/v1beta1/zz_member_types_go_gen.cue +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/detective/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MemberInitParameters: { - // AWS account ID for the account. - accountId?: null | string @go(AccountID,*string) - - // If set to true, then the root user of the invited account will not receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to false. - disableEmailNotification?: null | bool @go(DisableEmailNotification,*bool) - - // Email address for the account. - emailAddress?: null | string @go(EmailAddress,*string) - - // A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation. - message?: null | string @go(Message,*string) -} - -#MemberObservation: { - // AWS account ID for the account. - accountId?: null | string @go(AccountID,*string) - - // AWS account ID for the administrator account. - administratorId?: null | string @go(AdministratorID,*string) - - // If set to true, then the root user of the invited account will not receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to false. - disableEmailNotification?: null | bool @go(DisableEmailNotification,*bool) - disabledReason?: null | string @go(DisabledReason,*string) - - // Email address for the account. - emailAddress?: null | string @go(EmailAddress,*string) - - // ARN of the behavior graph to invite the member accounts to contribute their data to. - graphArn?: null | string @go(GraphArn,*string) - - // Unique identifier (ID) of the Detective. - id?: null | string @go(ID,*string) - - // Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account. - invitedTime?: null | string @go(InvitedTime,*string) - - // A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation. - message?: null | string @go(Message,*string) - - // Current membership status of the member account. - status?: null | string @go(Status,*string) - - // Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status. - updatedTime?: null | string @go(UpdatedTime,*string) - - // Data volume in bytes per day for the member account. - volumeUsageInBytes?: null | string @go(VolumeUsageInBytes,*string) -} - -#MemberParameters: { - // AWS account ID for the account. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // If set to true, then the root user of the invited account will not receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to false. - // +kubebuilder:validation:Optional - disableEmailNotification?: null | bool @go(DisableEmailNotification,*bool) - - // Email address for the account. - // +kubebuilder:validation:Optional - emailAddress?: null | string @go(EmailAddress,*string) - - // ARN of the behavior graph to invite the member accounts to contribute their data to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/detective/v1beta1.Graph - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - graphArn?: null | string @go(GraphArn,*string) - - // Reference to a Graph in detective to populate graphArn. - // +kubebuilder:validation:Optional - graphArnRef?: null | v1.#Reference @go(GraphArnRef,*v1.Reference) - - // Selector for a Graph in detective to populate graphArn. - // +kubebuilder:validation:Optional - graphArnSelector?: null | v1.#Selector @go(GraphArnSelector,*v1.Selector) - - // A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation. - // +kubebuilder:validation:Optional - message?: null | string @go(Message,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// MemberSpec defines the desired state of Member -#MemberSpec: { - v1.#ResourceSpec - forProvider: #MemberParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MemberInitParameters @go(InitProvider) -} - -// MemberStatus defines the observed state of Member. -#MemberStatus: { - v1.#ResourceStatus - atProvider?: #MemberObservation @go(AtProvider) -} - -// Member is the Schema for the Members API. Provides a resource to manage an Amazon Detective member. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Member: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accountId) || (has(self.initProvider) && has(self.initProvider.accountId))",message="spec.forProvider.accountId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.emailAddress) || (has(self.initProvider) && has(self.initProvider.emailAddress))",message="spec.forProvider.emailAddress is a required parameter" - spec: #MemberSpec @go(Spec) - status?: #MemberStatus @go(Status) -} - -// MemberList contains a list of Members -#MemberList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Member] @go(Items,[]Member) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_devicepool_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_devicepool_types_go_gen.cue deleted file mode 100644 index 38426b5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_devicepool_types_go_gen.cue +++ /dev/null @@ -1,180 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/devicefarm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DevicePoolInitParameters: { - // The device pool's description. - description?: null | string @go(Description,*string) - - // The number of devices that Device Farm can add to your device pool. - maxDevices?: null | float64 @go(MaxDevices,*float64) - - // The name of the Device Pool - name?: null | string @go(Name,*string) - - // The device pool's rules. See Rule. - rule?: [...#RuleInitParameters] @go(Rule,[]RuleInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DevicePoolObservation: { - // The Amazon Resource Name of this Device Pool - arn?: null | string @go(Arn,*string) - - // The device pool's description. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // The number of devices that Device Farm can add to your device pool. - maxDevices?: null | float64 @go(MaxDevices,*float64) - - // The name of the Device Pool - name?: null | string @go(Name,*string) - - // The ARN of the project for the device pool. - projectArn?: null | string @go(ProjectArn,*string) - - // The device pool's rules. See Rule. - rule?: [...#RuleObservation] @go(Rule,[]RuleObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - type?: null | string @go(Type,*string) -} - -#DevicePoolParameters: { - // The device pool's description. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The number of devices that Device Farm can add to your device pool. - // +kubebuilder:validation:Optional - maxDevices?: null | float64 @go(MaxDevices,*float64) - - // The name of the Device Pool - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The ARN of the project for the device pool. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/devicefarm/v1beta1.Project - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - projectArn?: null | string @go(ProjectArn,*string) - - // Reference to a Project in devicefarm to populate projectArn. - // +kubebuilder:validation:Optional - projectArnRef?: null | v1.#Reference @go(ProjectArnRef,*v1.Reference) - - // Selector for a Project in devicefarm to populate projectArn. - // +kubebuilder:validation:Optional - projectArnSelector?: null | v1.#Selector @go(ProjectArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The device pool's rules. See Rule. - // +kubebuilder:validation:Optional - rule?: [...#RuleParameters] @go(Rule,[]RuleParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RuleInitParameters: { - // The rule's stringified attribute. Valid values are: APPIUM_VERSION, ARN, AVAILABILITY, FLEET_TYPE, FORM_FACTOR, INSTANCE_ARN, INSTANCE_LABELS, MANUFACTURER, MODEL, OS_VERSION, PLATFORM, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED. - attribute?: null | string @go(Attribute,*string) - - // Specifies how Device Farm compares the rule's attribute to the value. For the operators that are supported by each attribute. Valid values are: EQUALS, NOT_IN, IN, GREATER_THAN, GREATER_THAN_OR_EQUALS, LESS_THAN, LESS_THAN_OR_EQUALS, CONTAINS. - operator?: null | string @go(Operator,*string) - - // The rule's value. - value?: null | string @go(Value,*string) -} - -#RuleObservation: { - // The rule's stringified attribute. Valid values are: APPIUM_VERSION, ARN, AVAILABILITY, FLEET_TYPE, FORM_FACTOR, INSTANCE_ARN, INSTANCE_LABELS, MANUFACTURER, MODEL, OS_VERSION, PLATFORM, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED. - attribute?: null | string @go(Attribute,*string) - - // Specifies how Device Farm compares the rule's attribute to the value. For the operators that are supported by each attribute. Valid values are: EQUALS, NOT_IN, IN, GREATER_THAN, GREATER_THAN_OR_EQUALS, LESS_THAN, LESS_THAN_OR_EQUALS, CONTAINS. - operator?: null | string @go(Operator,*string) - - // The rule's value. - value?: null | string @go(Value,*string) -} - -#RuleParameters: { - // The rule's stringified attribute. Valid values are: APPIUM_VERSION, ARN, AVAILABILITY, FLEET_TYPE, FORM_FACTOR, INSTANCE_ARN, INSTANCE_LABELS, MANUFACTURER, MODEL, OS_VERSION, PLATFORM, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED. - // +kubebuilder:validation:Optional - attribute?: null | string @go(Attribute,*string) - - // Specifies how Device Farm compares the rule's attribute to the value. For the operators that are supported by each attribute. Valid values are: EQUALS, NOT_IN, IN, GREATER_THAN, GREATER_THAN_OR_EQUALS, LESS_THAN, LESS_THAN_OR_EQUALS, CONTAINS. - // +kubebuilder:validation:Optional - operator?: null | string @go(Operator,*string) - - // The rule's value. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// DevicePoolSpec defines the desired state of DevicePool -#DevicePoolSpec: { - v1.#ResourceSpec - forProvider: #DevicePoolParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DevicePoolInitParameters @go(InitProvider) -} - -// DevicePoolStatus defines the observed state of DevicePool. -#DevicePoolStatus: { - v1.#ResourceStatus - atProvider?: #DevicePoolObservation @go(AtProvider) -} - -// DevicePool is the Schema for the DevicePools API. Provides a Devicefarm device_pool -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DevicePool: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rule) || (has(self.initProvider) && has(self.initProvider.rule))",message="spec.forProvider.rule is a required parameter" - spec: #DevicePoolSpec @go(Spec) - status?: #DevicePoolStatus @go(Status) -} - -// DevicePoolList contains a list of DevicePools -#DevicePoolList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DevicePool] @go(Items,[]DevicePool) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 4ea62d7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/devicefarm/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=devicefarm.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "devicefarm.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_instanceprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_instanceprofile_types_go_gen.cue deleted file mode 100644 index b852a85..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_instanceprofile_types_go_gen.cue +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/devicefarm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InstanceProfileInitParameters: { - // The description of the instance profile. - description?: null | string @go(Description,*string) - - // An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run. - excludeAppPackagesFromCleanup?: [...null | string] @go(ExcludeAppPackagesFromCleanup,[]*string) - - // The name for the instance profile. - name?: null | string @go(Name,*string) - - // When set to true, Device Farm removes app packages after a test run. The default value is false for private devices. - packageCleanup?: null | bool @go(PackageCleanup,*bool) - - // When set to true, Device Farm reboots the instance after a test run. The default value is true. - rebootAfterUse?: null | bool @go(RebootAfterUse,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#InstanceProfileObservation: { - // The Amazon Resource Name of this instance profile. - arn?: null | string @go(Arn,*string) - - // The description of the instance profile. - description?: null | string @go(Description,*string) - - // An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run. - excludeAppPackagesFromCleanup?: [...null | string] @go(ExcludeAppPackagesFromCleanup,[]*string) - id?: null | string @go(ID,*string) - - // The name for the instance profile. - name?: null | string @go(Name,*string) - - // When set to true, Device Farm removes app packages after a test run. The default value is false for private devices. - packageCleanup?: null | bool @go(PackageCleanup,*bool) - - // When set to true, Device Farm reboots the instance after a test run. The default value is true. - rebootAfterUse?: null | bool @go(RebootAfterUse,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#InstanceProfileParameters: { - // The description of the instance profile. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run. - // +kubebuilder:validation:Optional - excludeAppPackagesFromCleanup?: [...null | string] @go(ExcludeAppPackagesFromCleanup,[]*string) - - // The name for the instance profile. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // When set to true, Device Farm removes app packages after a test run. The default value is false for private devices. - // +kubebuilder:validation:Optional - packageCleanup?: null | bool @go(PackageCleanup,*bool) - - // When set to true, Device Farm reboots the instance after a test run. The default value is true. - // +kubebuilder:validation:Optional - rebootAfterUse?: null | bool @go(RebootAfterUse,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// InstanceProfileSpec defines the desired state of InstanceProfile -#InstanceProfileSpec: { - v1.#ResourceSpec - forProvider: #InstanceProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InstanceProfileInitParameters @go(InitProvider) -} - -// InstanceProfileStatus defines the observed state of InstanceProfile. -#InstanceProfileStatus: { - v1.#ResourceStatus - atProvider?: #InstanceProfileObservation @go(AtProvider) -} - -// InstanceProfile is the Schema for the InstanceProfiles API. Provides a Devicefarm instance profile -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#InstanceProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #InstanceProfileSpec @go(Spec) - status?: #InstanceProfileStatus @go(Status) -} - -// InstanceProfileList contains a list of InstanceProfiles -#InstanceProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#InstanceProfile] @go(Items,[]InstanceProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_networkprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_networkprofile_types_go_gen.cue deleted file mode 100644 index 252eabf..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_networkprofile_types_go_gen.cue +++ /dev/null @@ -1,212 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/devicefarm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NetworkProfileInitParameters: { - // The description of the network profile. - description?: null | string @go(Description,*string) - - // The data throughput rate in bits per second, as an integer from 0 to 104857600. Default value is 104857600. - downlinkBandwidthBits?: null | float64 @go(DownlinkBandwidthBits,*float64) - - // Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. - downlinkDelayMs?: null | float64 @go(DownlinkDelayMs,*float64) - - // Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. - downlinkJitterMs?: null | float64 @go(DownlinkJitterMs,*float64) - - // Proportion of received packets that fail to arrive from 0 to 100 percent. - downlinkLossPercent?: null | float64 @go(DownlinkLossPercent,*float64) - - // The name for the network profile. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of network profile to create. Valid values are listed are PRIVATE and CURATED. - type?: null | string @go(Type,*string) - - // The data throughput rate in bits per second, as an integer from 0 to 104857600. Default value is 104857600. - uplinkBandwidthBits?: null | float64 @go(UplinkBandwidthBits,*float64) - - // Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. - uplinkDelayMs?: null | float64 @go(UplinkDelayMs,*float64) - - // Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. - uplinkJitterMs?: null | float64 @go(UplinkJitterMs,*float64) - - // Proportion of received packets that fail to arrive from 0 to 100 percent. - uplinkLossPercent?: null | float64 @go(UplinkLossPercent,*float64) -} - -#NetworkProfileObservation: { - // The Amazon Resource Name of this network profile. - arn?: null | string @go(Arn,*string) - - // The description of the network profile. - description?: null | string @go(Description,*string) - - // The data throughput rate in bits per second, as an integer from 0 to 104857600. Default value is 104857600. - downlinkBandwidthBits?: null | float64 @go(DownlinkBandwidthBits,*float64) - - // Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. - downlinkDelayMs?: null | float64 @go(DownlinkDelayMs,*float64) - - // Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. - downlinkJitterMs?: null | float64 @go(DownlinkJitterMs,*float64) - - // Proportion of received packets that fail to arrive from 0 to 100 percent. - downlinkLossPercent?: null | float64 @go(DownlinkLossPercent,*float64) - id?: null | string @go(ID,*string) - - // The name for the network profile. - name?: null | string @go(Name,*string) - - // The ARN of the project for the network profile. - projectArn?: null | string @go(ProjectArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The type of network profile to create. Valid values are listed are PRIVATE and CURATED. - type?: null | string @go(Type,*string) - - // The data throughput rate in bits per second, as an integer from 0 to 104857600. Default value is 104857600. - uplinkBandwidthBits?: null | float64 @go(UplinkBandwidthBits,*float64) - - // Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. - uplinkDelayMs?: null | float64 @go(UplinkDelayMs,*float64) - - // Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. - uplinkJitterMs?: null | float64 @go(UplinkJitterMs,*float64) - - // Proportion of received packets that fail to arrive from 0 to 100 percent. - uplinkLossPercent?: null | float64 @go(UplinkLossPercent,*float64) -} - -#NetworkProfileParameters: { - // The description of the network profile. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The data throughput rate in bits per second, as an integer from 0 to 104857600. Default value is 104857600. - // +kubebuilder:validation:Optional - downlinkBandwidthBits?: null | float64 @go(DownlinkBandwidthBits,*float64) - - // Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. - // +kubebuilder:validation:Optional - downlinkDelayMs?: null | float64 @go(DownlinkDelayMs,*float64) - - // Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. - // +kubebuilder:validation:Optional - downlinkJitterMs?: null | float64 @go(DownlinkJitterMs,*float64) - - // Proportion of received packets that fail to arrive from 0 to 100 percent. - // +kubebuilder:validation:Optional - downlinkLossPercent?: null | float64 @go(DownlinkLossPercent,*float64) - - // The name for the network profile. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The ARN of the project for the network profile. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/devicefarm/v1beta1.Project - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - projectArn?: null | string @go(ProjectArn,*string) - - // Reference to a Project in devicefarm to populate projectArn. - // +kubebuilder:validation:Optional - projectArnRef?: null | v1.#Reference @go(ProjectArnRef,*v1.Reference) - - // Selector for a Project in devicefarm to populate projectArn. - // +kubebuilder:validation:Optional - projectArnSelector?: null | v1.#Selector @go(ProjectArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of network profile to create. Valid values are listed are PRIVATE and CURATED. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The data throughput rate in bits per second, as an integer from 0 to 104857600. Default value is 104857600. - // +kubebuilder:validation:Optional - uplinkBandwidthBits?: null | float64 @go(UplinkBandwidthBits,*float64) - - // Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. - // +kubebuilder:validation:Optional - uplinkDelayMs?: null | float64 @go(UplinkDelayMs,*float64) - - // Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. - // +kubebuilder:validation:Optional - uplinkJitterMs?: null | float64 @go(UplinkJitterMs,*float64) - - // Proportion of received packets that fail to arrive from 0 to 100 percent. - // +kubebuilder:validation:Optional - uplinkLossPercent?: null | float64 @go(UplinkLossPercent,*float64) -} - -// NetworkProfileSpec defines the desired state of NetworkProfile -#NetworkProfileSpec: { - v1.#ResourceSpec - forProvider: #NetworkProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NetworkProfileInitParameters @go(InitProvider) -} - -// NetworkProfileStatus defines the observed state of NetworkProfile. -#NetworkProfileStatus: { - v1.#ResourceStatus - atProvider?: #NetworkProfileObservation @go(AtProvider) -} - -// NetworkProfile is the Schema for the NetworkProfiles API. Provides a Devicefarm network profile -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NetworkProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #NetworkProfileSpec @go(Spec) - status?: #NetworkProfileStatus @go(Status) -} - -// NetworkProfileList contains a list of NetworkProfiles -#NetworkProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NetworkProfile] @go(Items,[]NetworkProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_project_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_project_types_go_gen.cue deleted file mode 100644 index ab796e4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_project_types_go_gen.cue +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/devicefarm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ProjectInitParameters: { - // Sets the execution timeout value (in minutes) for a project. All test runs in this project use the specified execution timeout value unless overridden when scheduling a run. - defaultJobTimeoutMinutes?: null | float64 @go(DefaultJobTimeoutMinutes,*float64) - - // The name of the project - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ProjectObservation: { - // The Amazon Resource Name of this project - arn?: null | string @go(Arn,*string) - - // Sets the execution timeout value (in minutes) for a project. All test runs in this project use the specified execution timeout value unless overridden when scheduling a run. - defaultJobTimeoutMinutes?: null | float64 @go(DefaultJobTimeoutMinutes,*float64) - id?: null | string @go(ID,*string) - - // The name of the project - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ProjectParameters: { - // Sets the execution timeout value (in minutes) for a project. All test runs in this project use the specified execution timeout value unless overridden when scheduling a run. - // +kubebuilder:validation:Optional - defaultJobTimeoutMinutes?: null | float64 @go(DefaultJobTimeoutMinutes,*float64) - - // The name of the project - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ProjectSpec defines the desired state of Project -#ProjectSpec: { - v1.#ResourceSpec - forProvider: #ProjectParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProjectInitParameters @go(InitProvider) -} - -// ProjectStatus defines the observed state of Project. -#ProjectStatus: { - v1.#ResourceStatus - atProvider?: #ProjectObservation @go(AtProvider) -} - -// Project is the Schema for the Projects API. Provides a Devicefarm project -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Project: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ProjectSpec @go(Spec) - status?: #ProjectStatus @go(Status) -} - -// ProjectList contains a list of Projects -#ProjectList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Project] @go(Items,[]Project) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_testgridproject_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_testgridproject_types_go_gen.cue deleted file mode 100644 index df70fe7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_testgridproject_types_go_gen.cue +++ /dev/null @@ -1,175 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/devicefarm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TestGridProjectInitParameters: { - // Human-readable description of the project. - description?: null | string @go(Description,*string) - - // The name of the Selenium testing project. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VPC security groups and subnets that are attached to a project. See VPC Config below. - vpcConfig?: [...#VPCConfigInitParameters] @go(VPCConfig,[]VPCConfigInitParameters) -} - -#TestGridProjectObservation: { - // The Amazon Resource Name of this Test Grid Project. - arn?: null | string @go(Arn,*string) - - // Human-readable description of the project. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // The name of the Selenium testing project. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The VPC security groups and subnets that are attached to a project. See VPC Config below. - vpcConfig?: [...#VPCConfigObservation] @go(VPCConfig,[]VPCConfigObservation) -} - -#TestGridProjectParameters: { - // Human-readable description of the project. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the Selenium testing project. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VPC security groups and subnets that are attached to a project. See VPC Config below. - // +kubebuilder:validation:Optional - vpcConfig?: [...#VPCConfigParameters] @go(VPCConfig,[]VPCConfigParameters) -} - -#VPCConfigInitParameters: { -} - -#VPCConfigObservation: { - // A list of VPC security group IDs in your Amazon VPC. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of VPC subnet IDs in your Amazon VPC. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // The ID of the Amazon VPC. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCConfigParameters: { - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // A list of VPC security group IDs in your Amazon VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // A list of VPC subnet IDs in your Amazon VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // The ID of the Amazon VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// TestGridProjectSpec defines the desired state of TestGridProject -#TestGridProjectSpec: { - v1.#ResourceSpec - forProvider: #TestGridProjectParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TestGridProjectInitParameters @go(InitProvider) -} - -// TestGridProjectStatus defines the observed state of TestGridProject. -#TestGridProjectStatus: { - v1.#ResourceStatus - atProvider?: #TestGridProjectObservation @go(AtProvider) -} - -// TestGridProject is the Schema for the TestGridProjects API. Provides a Devicefarm test_grid_project -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TestGridProject: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #TestGridProjectSpec @go(Spec) - status?: #TestGridProjectStatus @go(Status) -} - -// TestGridProjectList contains a list of TestGridProjects -#TestGridProjectList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TestGridProject] @go(Items,[]TestGridProject) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_upload_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_upload_types_go_gen.cue deleted file mode 100644 index ee1af4b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/devicefarm/v1beta1/zz_upload_types_go_gen.cue +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/devicefarm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UploadInitParameters: { - // The upload's content type (for example, application/octet-stream). - contentType?: null | string @go(ContentType,*string) - - // The upload's file name. The name should not contain any forward slashes (/). If you are uploading an iOS app, the file name must end with the .ipa extension. If you are uploading an Android app, the file name must end with the .apk extension. For all others, the file name must end with the .zip file extension. - name?: null | string @go(Name,*string) - - // The upload's upload type. See AWS Docs for valid list of values. - type?: null | string @go(Type,*string) -} - -#UploadObservation: { - // The Amazon Resource Name of this upload. - arn?: null | string @go(Arn,*string) - - // The upload's category. - category?: null | string @go(Category,*string) - - // The upload's content type (for example, application/octet-stream). - contentType?: null | string @go(ContentType,*string) - id?: null | string @go(ID,*string) - - // The upload's metadata. For example, for Android, this contains information that is parsed from the manifest and is displayed in the AWS Device Farm console after the associated app is uploaded. - metadata?: null | string @go(Metadata,*string) - - // The upload's file name. The name should not contain any forward slashes (/). If you are uploading an iOS app, the file name must end with the .ipa extension. If you are uploading an Android app, the file name must end with the .apk extension. For all others, the file name must end with the .zip file extension. - name?: null | string @go(Name,*string) - - // The ARN of the project for the upload. - projectArn?: null | string @go(ProjectArn,*string) - - // The upload's upload type. See AWS Docs for valid list of values. - type?: null | string @go(Type,*string) - - // The presigned Amazon S3 URL that was used to store a file using a PUT request. - url?: null | string @go(URL,*string) -} - -#UploadParameters: { - // The upload's content type (for example, application/octet-stream). - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // The upload's file name. The name should not contain any forward slashes (/). If you are uploading an iOS app, the file name must end with the .ipa extension. If you are uploading an Android app, the file name must end with the .apk extension. For all others, the file name must end with the .zip file extension. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The ARN of the project for the upload. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/devicefarm/v1beta1.Project - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - projectArn?: null | string @go(ProjectArn,*string) - - // Reference to a Project in devicefarm to populate projectArn. - // +kubebuilder:validation:Optional - projectArnRef?: null | v1.#Reference @go(ProjectArnRef,*v1.Reference) - - // Selector for a Project in devicefarm to populate projectArn. - // +kubebuilder:validation:Optional - projectArnSelector?: null | v1.#Selector @go(ProjectArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The upload's upload type. See AWS Docs for valid list of values. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// UploadSpec defines the desired state of Upload -#UploadSpec: { - v1.#ResourceSpec - forProvider: #UploadParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UploadInitParameters @go(InitProvider) -} - -// UploadStatus defines the observed state of Upload. -#UploadStatus: { - v1.#ResourceStatus - atProvider?: #UploadObservation @go(AtProvider) -} - -// Upload is the Schema for the Uploads API. Provides a Devicefarm upload -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Upload: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #UploadSpec @go(Spec) - status?: #UploadStatus @go(Status) -} - -// UploadList contains a list of Uploads -#UploadList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Upload] @go(Items,[]Upload) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_bgppeer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_bgppeer_types_go_gen.cue deleted file mode 100644 index 8f13882..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_bgppeer_types_go_gen.cue +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BGPPeerInitParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. - // Required for IPv4 BGP peers on public virtual interfaces. - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. - // Required for IPv4 BGP peers on public virtual interfaces. - customerAddress?: null | string @go(CustomerAddress,*string) -} - -#BGPPeerObservation: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. - // Required for IPv4 BGP peers on public virtual interfaces. - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The Direct Connect endpoint on which the BGP peer terminates. - awsDevice?: null | string @go(AwsDevice,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the BGP peer. - bgpPeerId?: null | string @go(BGPPeerID,*string) - - // The Up/Down state of the BGP peer. - bgpStatus?: null | string @go(BGPStatus,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. - // Required for IPv4 BGP peers on public virtual interfaces. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The ID of the BGP peer resource. - id?: null | string @go(ID,*string) - - // The ID of the Direct Connect virtual interface on which to create the BGP peer. - virtualInterfaceId?: null | string @go(VirtualInterfaceID,*string) -} - -#BGPPeerParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - // +kubebuilder:validation:Optional - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. - // Required for IPv4 BGP peers on public virtual interfaces. - // +kubebuilder:validation:Optional - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - // +kubebuilder:validation:Optional - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - // +kubebuilder:validation:Optional - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. - // Required for IPv4 BGP peers on public virtual interfaces. - // +kubebuilder:validation:Optional - customerAddress?: null | string @go(CustomerAddress,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the Direct Connect virtual interface on which to create the BGP peer. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/directconnect/v1beta1.PrivateVirtualInterface - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - virtualInterfaceId?: null | string @go(VirtualInterfaceID,*string) - - // Reference to a PrivateVirtualInterface in directconnect to populate virtualInterfaceId. - // +kubebuilder:validation:Optional - virtualInterfaceIdRef?: null | v1.#Reference @go(VirtualInterfaceIDRef,*v1.Reference) - - // Selector for a PrivateVirtualInterface in directconnect to populate virtualInterfaceId. - // +kubebuilder:validation:Optional - virtualInterfaceIdSelector?: null | v1.#Selector @go(VirtualInterfaceIDSelector,*v1.Selector) -} - -// BGPPeerSpec defines the desired state of BGPPeer -#BGPPeerSpec: { - v1.#ResourceSpec - forProvider: #BGPPeerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BGPPeerInitParameters @go(InitProvider) -} - -// BGPPeerStatus defines the observed state of BGPPeer. -#BGPPeerStatus: { - v1.#ResourceStatus - atProvider?: #BGPPeerObservation @go(AtProvider) -} - -// BGPPeer is the Schema for the BGPPeers API. Provides a Direct Connect BGP peer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BGPPeer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.addressFamily) || (has(self.initProvider) && has(self.initProvider.addressFamily))",message="spec.forProvider.addressFamily is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bgpAsn) || (has(self.initProvider) && has(self.initProvider.bgpAsn))",message="spec.forProvider.bgpAsn is a required parameter" - spec: #BGPPeerSpec @go(Spec) - status?: #BGPPeerStatus @go(Status) -} - -// BGPPeerList contains a list of BGPPeers -#BGPPeerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BGPPeer] @go(Items,[]BGPPeer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_connection_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_connection_types_go_gen.cue deleted file mode 100644 index 49c7f59..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_connection_types_go_gen.cue +++ /dev/null @@ -1,178 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConnectionInitParameters: { - // The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sensitive. - bandwidth?: null | string @go(Bandwidth,*string) - - // The connection MAC Security (MACsec) encryption mode. MAC Security (MACsec) is only available on dedicated connections. Valid values are no_encrypt, should_encrypt, and must_encrypt. - encryptionMode?: null | string @go(EncryptionMode,*string) - - // The AWS Direct Connect location where the connection is located. See DescribeLocations for the list of AWS Direct Connect locations. Use locationCode. - location?: null | string @go(Location,*string) - - // The name of the connection. - name?: null | string @go(Name,*string) - - // The name of the service provider associated with the connection. - providerName?: null | string @go(ProviderName,*string) - - // Boolean value indicating whether you want the connection to support MAC Security (MACsec). MAC Security (MACsec) is only available on dedicated connections. See MACsec prerequisites for more information about MAC Security (MACsec) prerequisites. Default value: false. - requestMacsec?: null | bool @go(RequestMacsec,*bool) - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ConnectionObservation: { - // The ARN of the connection. - arn?: null | string @go(Arn,*string) - - // The Direct Connect endpoint on which the physical connection terminates. - awsDevice?: null | string @go(AwsDevice,*string) - - // The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sensitive. - bandwidth?: null | string @go(Bandwidth,*string) - - // The connection MAC Security (MACsec) encryption mode. MAC Security (MACsec) is only available on dedicated connections. Valid values are no_encrypt, should_encrypt, and must_encrypt. - encryptionMode?: null | string @go(EncryptionMode,*string) - - // Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6). - hasLogicalRedundancy?: null | string @go(HasLogicalRedundancy,*string) - - // The ID of the connection. - id?: null | string @go(ID,*string) - - // Boolean value representing if jumbo frames have been enabled for this connection. - jumboFrameCapable?: null | bool @go(JumboFrameCapable,*bool) - - // The AWS Direct Connect location where the connection is located. See DescribeLocations for the list of AWS Direct Connect locations. Use locationCode. - location?: null | string @go(Location,*string) - - // Boolean value indicating whether the connection supports MAC Security (MACsec). - macsecCapable?: null | bool @go(MacsecCapable,*bool) - - // The name of the connection. - name?: null | string @go(Name,*string) - - // The ID of the AWS account that owns the connection. - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // The name of the AWS Direct Connect service provider associated with the connection. - partnerName?: null | string @go(PartnerName,*string) - - // The MAC Security (MACsec) port link status of the connection. - portEncryptionStatus?: null | string @go(PortEncryptionStatus,*string) - - // The name of the service provider associated with the connection. - providerName?: null | string @go(ProviderName,*string) - - // Boolean value indicating whether you want the connection to support MAC Security (MACsec). MAC Security (MACsec) is only available on dedicated connections. See MACsec prerequisites for more information about MAC Security (MACsec) prerequisites. Default value: false. - requestMacsec?: null | bool @go(RequestMacsec,*bool) - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The VLAN ID. - vlanId?: null | string @go(VlanID,*string) -} - -#ConnectionParameters: { - // The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sensitive. - // +kubebuilder:validation:Optional - bandwidth?: null | string @go(Bandwidth,*string) - - // The connection MAC Security (MACsec) encryption mode. MAC Security (MACsec) is only available on dedicated connections. Valid values are no_encrypt, should_encrypt, and must_encrypt. - // +kubebuilder:validation:Optional - encryptionMode?: null | string @go(EncryptionMode,*string) - - // The AWS Direct Connect location where the connection is located. See DescribeLocations for the list of AWS Direct Connect locations. Use locationCode. - // +kubebuilder:validation:Optional - location?: null | string @go(Location,*string) - - // The name of the connection. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The name of the service provider associated with the connection. - // +kubebuilder:validation:Optional - providerName?: null | string @go(ProviderName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Boolean value indicating whether you want the connection to support MAC Security (MACsec). MAC Security (MACsec) is only available on dedicated connections. See MACsec prerequisites for more information about MAC Security (MACsec) prerequisites. Default value: false. - // +kubebuilder:validation:Optional - requestMacsec?: null | bool @go(RequestMacsec,*bool) - - // +kubebuilder:validation:Optional - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ConnectionSpec defines the desired state of Connection -#ConnectionSpec: { - v1.#ResourceSpec - forProvider: #ConnectionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConnectionInitParameters @go(InitProvider) -} - -// ConnectionStatus defines the observed state of Connection. -#ConnectionStatus: { - v1.#ResourceStatus - atProvider?: #ConnectionObservation @go(AtProvider) -} - -// Connection is the Schema for the Connections API. Provides a Connection of Direct Connect. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Connection: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bandwidth) || (has(self.initProvider) && has(self.initProvider.bandwidth))",message="spec.forProvider.bandwidth is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.location) || (has(self.initProvider) && has(self.initProvider.location))",message="spec.forProvider.location is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ConnectionSpec @go(Spec) - status?: #ConnectionStatus @go(Status) -} - -// ConnectionList contains a list of Connections -#ConnectionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Connection] @go(Items,[]Connection) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_connectionassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_connectionassociation_types_go_gen.cue deleted file mode 100644 index 8ad89b8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_connectionassociation_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConnectionAssociationInitParameters: { -} - -#ConnectionAssociationObservation: { - // The ID of the connection. - connectionId?: null | string @go(ConnectionID,*string) - id?: null | string @go(ID,*string) - - // The ID of the LAG with which to associate the connection. - lagId?: null | string @go(LagID,*string) -} - -#ConnectionAssociationParameters: { - // The ID of the connection. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/directconnect/v1beta1.Connection - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - connectionId?: null | string @go(ConnectionID,*string) - - // Reference to a Connection in directconnect to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdRef?: null | v1.#Reference @go(ConnectionIDRef,*v1.Reference) - - // Selector for a Connection in directconnect to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdSelector?: null | v1.#Selector @go(ConnectionIDSelector,*v1.Selector) - - // The ID of the LAG with which to associate the connection. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/directconnect/v1beta1.Lag - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - lagId?: null | string @go(LagID,*string) - - // Reference to a Lag in directconnect to populate lagId. - // +kubebuilder:validation:Optional - lagIdRef?: null | v1.#Reference @go(LagIDRef,*v1.Reference) - - // Selector for a Lag in directconnect to populate lagId. - // +kubebuilder:validation:Optional - lagIdSelector?: null | v1.#Selector @go(LagIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ConnectionAssociationSpec defines the desired state of ConnectionAssociation -#ConnectionAssociationSpec: { - v1.#ResourceSpec - forProvider: #ConnectionAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConnectionAssociationInitParameters @go(InitProvider) -} - -// ConnectionAssociationStatus defines the observed state of ConnectionAssociation. -#ConnectionAssociationStatus: { - v1.#ResourceStatus - atProvider?: #ConnectionAssociationObservation @go(AtProvider) -} - -// ConnectionAssociation is the Schema for the ConnectionAssociations API. Associates a Direct Connect Connection with a LAG. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ConnectionAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ConnectionAssociationSpec @go(Spec) - status?: #ConnectionAssociationStatus @go(Status) -} - -// ConnectionAssociationList contains a list of ConnectionAssociations -#ConnectionAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConnectionAssociation] @go(Items,[]ConnectionAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_gateway_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_gateway_types_go_gen.cue deleted file mode 100644 index 92c3ba7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_gateway_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GatewayInitParameters: { - // The ASN to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. - amazonSideAsn?: null | string @go(AmazonSideAsn,*string) - - // The name of the connection. - name?: null | string @go(Name,*string) -} - -#GatewayObservation: { - // The ASN to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. - amazonSideAsn?: null | string @go(AmazonSideAsn,*string) - - // The ID of the gateway. - id?: null | string @go(ID,*string) - - // The name of the connection. - name?: null | string @go(Name,*string) - - // AWS Account ID of the gateway. - ownerAccountId?: null | string @go(OwnerAccountID,*string) -} - -#GatewayParameters: { - // The ASN to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. - // +kubebuilder:validation:Optional - amazonSideAsn?: null | string @go(AmazonSideAsn,*string) - - // The name of the connection. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// GatewaySpec defines the desired state of Gateway -#GatewaySpec: { - v1.#ResourceSpec - forProvider: #GatewayParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GatewayInitParameters @go(InitProvider) -} - -// GatewayStatus defines the observed state of Gateway. -#GatewayStatus: { - v1.#ResourceStatus - atProvider?: #GatewayObservation @go(AtProvider) -} - -// Gateway is the Schema for the Gateways API. Provides a Direct Connect Gateway. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Gateway: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.amazonSideAsn) || (has(self.initProvider) && has(self.initProvider.amazonSideAsn))",message="spec.forProvider.amazonSideAsn is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #GatewaySpec @go(Spec) - status?: #GatewayStatus @go(Status) -} - -// GatewayList contains a list of Gateways -#GatewayList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Gateway] @go(Items,[]Gateway) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_gatewayassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_gatewayassociation_types_go_gen.cue deleted file mode 100644 index fec3196..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_gatewayassociation_types_go_gen.cue +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GatewayAssociationInitParameters: { - // VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured. - allowedPrefixes?: [...null | string] @go(AllowedPrefixes,[]*string) - - // The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway. - // Used for cross-account Direct Connect gateway associations. - associatedGatewayOwnerAccountId?: null | string @go(AssociatedGatewayOwnerAccountID,*string) - - // The ID of the Direct Connect gateway association proposal. - // Used for cross-account Direct Connect gateway associations. - proposalId?: null | string @go(ProposalID,*string) - - // The ID of the Direct Connect gateway association resource. - vpnGatewayId?: null | string @go(VPNGatewayID,*string) -} - -#GatewayAssociationObservation: { - // VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured. - allowedPrefixes?: [...null | string] @go(AllowedPrefixes,[]*string) - - // The ID of the VGW or transit gateway with which to associate the Direct Connect gateway. - // Used for single account Direct Connect gateway associations. - associatedGatewayId?: null | string @go(AssociatedGatewayID,*string) - - // The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway. - // Used for cross-account Direct Connect gateway associations. - associatedGatewayOwnerAccountId?: null | string @go(AssociatedGatewayOwnerAccountID,*string) - - // The type of the associated gateway, transitGateway or virtualPrivateGateway. - associatedGatewayType?: null | string @go(AssociatedGatewayType,*string) - - // The ID of the Direct Connect gateway association. - dxGatewayAssociationId?: null | string @go(DxGatewayAssociationID,*string) - - // The ID of the Direct Connect gateway. - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // The ID of the AWS account that owns the Direct Connect gateway. - dxGatewayOwnerAccountId?: null | string @go(DxGatewayOwnerAccountID,*string) - - // The ID of the Direct Connect gateway association resource. - id?: null | string @go(ID,*string) - - // The ID of the Direct Connect gateway association proposal. - // Used for cross-account Direct Connect gateway associations. - proposalId?: null | string @go(ProposalID,*string) - - // The ID of the Direct Connect gateway association resource. - vpnGatewayId?: null | string @go(VPNGatewayID,*string) -} - -#GatewayAssociationParameters: { - // VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured. - // +kubebuilder:validation:Optional - allowedPrefixes?: [...null | string] @go(AllowedPrefixes,[]*string) - - // The ID of the VGW or transit gateway with which to associate the Direct Connect gateway. - // Used for single account Direct Connect gateway associations. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPNGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - associatedGatewayId?: null | string @go(AssociatedGatewayID,*string) - - // Reference to a VPNGateway in ec2 to populate associatedGatewayId. - // +kubebuilder:validation:Optional - associatedGatewayIdRef?: null | v1.#Reference @go(AssociatedGatewayIDRef,*v1.Reference) - - // Selector for a VPNGateway in ec2 to populate associatedGatewayId. - // +kubebuilder:validation:Optional - associatedGatewayIdSelector?: null | v1.#Selector @go(AssociatedGatewayIDSelector,*v1.Selector) - - // The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway. - // Used for cross-account Direct Connect gateway associations. - // +kubebuilder:validation:Optional - associatedGatewayOwnerAccountId?: null | string @go(AssociatedGatewayOwnerAccountID,*string) - - // The ID of the Direct Connect gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/directconnect/v1beta1.Gateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // Reference to a Gateway in directconnect to populate dxGatewayId. - // +kubebuilder:validation:Optional - dxGatewayIdRef?: null | v1.#Reference @go(DxGatewayIDRef,*v1.Reference) - - // Selector for a Gateway in directconnect to populate dxGatewayId. - // +kubebuilder:validation:Optional - dxGatewayIdSelector?: null | v1.#Selector @go(DxGatewayIDSelector,*v1.Selector) - - // The ID of the Direct Connect gateway association proposal. - // Used for cross-account Direct Connect gateway associations. - // +kubebuilder:validation:Optional - proposalId?: null | string @go(ProposalID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the Direct Connect gateway association resource. - // +kubebuilder:validation:Optional - vpnGatewayId?: null | string @go(VPNGatewayID,*string) -} - -// GatewayAssociationSpec defines the desired state of GatewayAssociation -#GatewayAssociationSpec: { - v1.#ResourceSpec - forProvider: #GatewayAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GatewayAssociationInitParameters @go(InitProvider) -} - -// GatewayAssociationStatus defines the observed state of GatewayAssociation. -#GatewayAssociationStatus: { - v1.#ResourceStatus - atProvider?: #GatewayAssociationObservation @go(AtProvider) -} - -// GatewayAssociation is the Schema for the GatewayAssociations API. Associates a Direct Connect Gateway with a VGW or transit gateway. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GatewayAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #GatewayAssociationSpec @go(Spec) - status?: #GatewayAssociationStatus @go(Status) -} - -// GatewayAssociationList contains a list of GatewayAssociations -#GatewayAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GatewayAssociation] @go(Items,[]GatewayAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_gatewayassociationproposal_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_gatewayassociationproposal_types_go_gen.cue deleted file mode 100644 index fda765a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_gatewayassociationproposal_types_go_gen.cue +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GatewayAssociationProposalInitParameters: { - // VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured. - allowedPrefixes?: [...null | string] @go(AllowedPrefixes,[]*string) -} - -#GatewayAssociationProposalObservation: { - // VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured. - allowedPrefixes?: [...null | string] @go(AllowedPrefixes,[]*string) - - // The ID of the VGW or transit gateway with which to associate the Direct Connect gateway. - associatedGatewayId?: null | string @go(AssociatedGatewayID,*string) - - // The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway. - associatedGatewayOwnerAccountId?: null | string @go(AssociatedGatewayOwnerAccountID,*string) - - // The type of the associated gateway, transitGateway or virtualPrivateGateway. - associatedGatewayType?: null | string @go(AssociatedGatewayType,*string) - - // Direct Connect Gateway identifier. - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // AWS Account identifier of the Direct Connect Gateway's owner. - dxGatewayOwnerAccountId?: null | string @go(DxGatewayOwnerAccountID,*string) - - // Direct Connect Gateway Association Proposal identifier. - id?: null | string @go(ID,*string) -} - -#GatewayAssociationProposalParameters: { - // VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured. - // +kubebuilder:validation:Optional - allowedPrefixes?: [...null | string] @go(AllowedPrefixes,[]*string) - - // The ID of the VGW or transit gateway with which to associate the Direct Connect gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPNGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - associatedGatewayId?: null | string @go(AssociatedGatewayID,*string) - - // Reference to a VPNGateway in ec2 to populate associatedGatewayId. - // +kubebuilder:validation:Optional - associatedGatewayIdRef?: null | v1.#Reference @go(AssociatedGatewayIDRef,*v1.Reference) - - // Selector for a VPNGateway in ec2 to populate associatedGatewayId. - // +kubebuilder:validation:Optional - associatedGatewayIdSelector?: null | v1.#Selector @go(AssociatedGatewayIDSelector,*v1.Selector) - - // Direct Connect Gateway identifier. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/directconnect/v1beta1.Gateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // Reference to a Gateway in directconnect to populate dxGatewayId. - // +kubebuilder:validation:Optional - dxGatewayIdRef?: null | v1.#Reference @go(DxGatewayIDRef,*v1.Reference) - - // Selector for a Gateway in directconnect to populate dxGatewayId. - // +kubebuilder:validation:Optional - dxGatewayIdSelector?: null | v1.#Selector @go(DxGatewayIDSelector,*v1.Selector) - - // AWS Account identifier of the Direct Connect Gateway's owner. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/directconnect/v1beta1.Gateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("owner_account_id",true) - // +kubebuilder:validation:Optional - dxGatewayOwnerAccountId?: null | string @go(DxGatewayOwnerAccountID,*string) - - // Reference to a Gateway in directconnect to populate dxGatewayOwnerAccountId. - // +kubebuilder:validation:Optional - dxGatewayOwnerAccountIdRef?: null | v1.#Reference @go(DxGatewayOwnerAccountIDRef,*v1.Reference) - - // Selector for a Gateway in directconnect to populate dxGatewayOwnerAccountId. - // +kubebuilder:validation:Optional - dxGatewayOwnerAccountIdSelector?: null | v1.#Selector @go(DxGatewayOwnerAccountIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// GatewayAssociationProposalSpec defines the desired state of GatewayAssociationProposal -#GatewayAssociationProposalSpec: { - v1.#ResourceSpec - forProvider: #GatewayAssociationProposalParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GatewayAssociationProposalInitParameters @go(InitProvider) -} - -// GatewayAssociationProposalStatus defines the observed state of GatewayAssociationProposal. -#GatewayAssociationProposalStatus: { - v1.#ResourceStatus - atProvider?: #GatewayAssociationProposalObservation @go(AtProvider) -} - -// GatewayAssociationProposal is the Schema for the GatewayAssociationProposals API. Manages a Direct Connect Gateway Association Proposal. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GatewayAssociationProposal: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #GatewayAssociationProposalSpec @go(Spec) - status?: #GatewayAssociationProposalStatus @go(Status) -} - -// GatewayAssociationProposalList contains a list of GatewayAssociationProposals -#GatewayAssociationProposalList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GatewayAssociationProposal] @go(Items,[]GatewayAssociationProposal) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 278b455..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=directconnect.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "directconnect.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedprivatevirtualinterface_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedprivatevirtualinterface_types_go_gen.cue deleted file mode 100644 index 42be0bd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedprivatevirtualinterface_types_go_gen.cue +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HostedPrivateVirtualInterfaceInitParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual private interface can be either 1500 or 9001 (jumbo frames). Default is 1500. - mtu?: null | float64 @go(Mtu,*float64) - - // The name for the virtual interface. - name?: null | string @go(Name,*string) - - // The AWS account that will own the new virtual interface. - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // The VLAN ID. - vlan?: null | float64 @go(Vlan,*float64) -} - -#HostedPrivateVirtualInterfaceObservation: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - amazonAddress?: null | string @go(AmazonAddress,*string) - amazonSideAsn?: null | string @go(AmazonSideAsn,*string) - - // The ARN of the virtual interface. - arn?: null | string @go(Arn,*string) - - // The Direct Connect endpoint on which the virtual interface terminates. - awsDevice?: null | string @go(AwsDevice,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the Direct Connect connection (or LAG) on which to create the virtual interface. - connectionId?: null | string @go(ConnectionID,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The ID of the virtual interface. - id?: null | string @go(ID,*string) - - // Indicates whether jumbo frames (9001 MTU) are supported. - jumboFrameCapable?: null | bool @go(JumboFrameCapable,*bool) - - // The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual private interface can be either 1500 or 9001 (jumbo frames). Default is 1500. - mtu?: null | float64 @go(Mtu,*float64) - - // The name for the virtual interface. - name?: null | string @go(Name,*string) - - // The AWS account that will own the new virtual interface. - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // The VLAN ID. - vlan?: null | float64 @go(Vlan,*float64) -} - -#HostedPrivateVirtualInterfaceParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - // +kubebuilder:validation:Optional - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - // +kubebuilder:validation:Optional - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - // +kubebuilder:validation:Optional - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - // +kubebuilder:validation:Optional - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the Direct Connect connection (or LAG) on which to create the virtual interface. - // +crossplane:generate:reference:type=Connection - // +kubebuilder:validation:Optional - connectionId?: null | string @go(ConnectionID,*string) - - // Reference to a Connection to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdRef?: null | v1.#Reference @go(ConnectionIDRef,*v1.Reference) - - // Selector for a Connection to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdSelector?: null | v1.#Selector @go(ConnectionIDSelector,*v1.Selector) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - // +kubebuilder:validation:Optional - customerAddress?: null | string @go(CustomerAddress,*string) - - // The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual private interface can be either 1500 or 9001 (jumbo frames). Default is 1500. - // +kubebuilder:validation:Optional - mtu?: null | float64 @go(Mtu,*float64) - - // The name for the virtual interface. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The AWS account that will own the new virtual interface. - // +kubebuilder:validation:Optional - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The VLAN ID. - // +kubebuilder:validation:Optional - vlan?: null | float64 @go(Vlan,*float64) -} - -// HostedPrivateVirtualInterfaceSpec defines the desired state of HostedPrivateVirtualInterface -#HostedPrivateVirtualInterfaceSpec: { - v1.#ResourceSpec - forProvider: #HostedPrivateVirtualInterfaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HostedPrivateVirtualInterfaceInitParameters @go(InitProvider) -} - -// HostedPrivateVirtualInterfaceStatus defines the observed state of HostedPrivateVirtualInterface. -#HostedPrivateVirtualInterfaceStatus: { - v1.#ResourceStatus - atProvider?: #HostedPrivateVirtualInterfaceObservation @go(AtProvider) -} - -// HostedPrivateVirtualInterface is the Schema for the HostedPrivateVirtualInterfaces API. Provides a Direct Connect hosted private virtual interface resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HostedPrivateVirtualInterface: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.addressFamily) || (has(self.initProvider) && has(self.initProvider.addressFamily))",message="spec.forProvider.addressFamily is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bgpAsn) || (has(self.initProvider) && has(self.initProvider.bgpAsn))",message="spec.forProvider.bgpAsn is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ownerAccountId) || (has(self.initProvider) && has(self.initProvider.ownerAccountId))",message="spec.forProvider.ownerAccountId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.vlan) || (has(self.initProvider) && has(self.initProvider.vlan))",message="spec.forProvider.vlan is a required parameter" - spec: #HostedPrivateVirtualInterfaceSpec @go(Spec) - status?: #HostedPrivateVirtualInterfaceStatus @go(Status) -} - -// HostedPrivateVirtualInterfaceList contains a list of HostedPrivateVirtualInterfaces -#HostedPrivateVirtualInterfaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HostedPrivateVirtualInterface] @go(Items,[]HostedPrivateVirtualInterface) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedprivatevirtualinterfaceaccepter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedprivatevirtualinterfaceaccepter_types_go_gen.cue deleted file mode 100644 index f9908f7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedprivatevirtualinterfaceaccepter_types_go_gen.cue +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HostedPrivateVirtualInterfaceAccepterInitParameters: { - // The ID of the Direct Connect gateway to which to connect the virtual interface. - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#HostedPrivateVirtualInterfaceAccepterObservation: { - // The ARN of the virtual interface. - arn?: null | string @go(Arn,*string) - - // The ID of the Direct Connect gateway to which to connect the virtual interface. - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // The ID of the virtual interface. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the virtual private gateway to which to connect the virtual interface. - vpnGatewayId?: null | string @go(VPNGatewayID,*string) - - // The ID of the Direct Connect virtual interface to accept. - virtualInterfaceId?: null | string @go(VirtualInterfaceID,*string) -} - -#HostedPrivateVirtualInterfaceAccepterParameters: { - // The ID of the Direct Connect gateway to which to connect the virtual interface. - // +kubebuilder:validation:Optional - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the virtual private gateway to which to connect the virtual interface. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPNGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpnGatewayId?: null | string @go(VPNGatewayID,*string) - - // Reference to a VPNGateway in ec2 to populate vpnGatewayId. - // +kubebuilder:validation:Optional - vpnGatewayIdRef?: null | v1.#Reference @go(VPNGatewayIDRef,*v1.Reference) - - // Selector for a VPNGateway in ec2 to populate vpnGatewayId. - // +kubebuilder:validation:Optional - vpnGatewayIdSelector?: null | v1.#Selector @go(VPNGatewayIDSelector,*v1.Selector) - - // The ID of the Direct Connect virtual interface to accept. - // +crossplane:generate:reference:type=HostedPrivateVirtualInterface - // +kubebuilder:validation:Optional - virtualInterfaceId?: null | string @go(VirtualInterfaceID,*string) - - // Reference to a HostedPrivateVirtualInterface to populate virtualInterfaceId. - // +kubebuilder:validation:Optional - virtualInterfaceIdRef?: null | v1.#Reference @go(VirtualInterfaceIDRef,*v1.Reference) - - // Selector for a HostedPrivateVirtualInterface to populate virtualInterfaceId. - // +kubebuilder:validation:Optional - virtualInterfaceIdSelector?: null | v1.#Selector @go(VirtualInterfaceIDSelector,*v1.Selector) -} - -// HostedPrivateVirtualInterfaceAccepterSpec defines the desired state of HostedPrivateVirtualInterfaceAccepter -#HostedPrivateVirtualInterfaceAccepterSpec: { - v1.#ResourceSpec - forProvider: #HostedPrivateVirtualInterfaceAccepterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HostedPrivateVirtualInterfaceAccepterInitParameters @go(InitProvider) -} - -// HostedPrivateVirtualInterfaceAccepterStatus defines the observed state of HostedPrivateVirtualInterfaceAccepter. -#HostedPrivateVirtualInterfaceAccepterStatus: { - v1.#ResourceStatus - atProvider?: #HostedPrivateVirtualInterfaceAccepterObservation @go(AtProvider) -} - -// HostedPrivateVirtualInterfaceAccepter is the Schema for the HostedPrivateVirtualInterfaceAccepters API. Provides a resource to manage the accepter's side of a Direct Connect hosted private virtual interface. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HostedPrivateVirtualInterfaceAccepter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #HostedPrivateVirtualInterfaceAccepterSpec @go(Spec) - status?: #HostedPrivateVirtualInterfaceAccepterStatus @go(Status) -} - -// HostedPrivateVirtualInterfaceAccepterList contains a list of HostedPrivateVirtualInterfaceAccepters -#HostedPrivateVirtualInterfaceAccepterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HostedPrivateVirtualInterfaceAccepter] @go(Items,[]HostedPrivateVirtualInterfaceAccepter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedpublicvirtualinterface_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedpublicvirtualinterface_types_go_gen.cue deleted file mode 100644 index a945d81..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedpublicvirtualinterface_types_go_gen.cue +++ /dev/null @@ -1,189 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HostedPublicVirtualInterfaceInitParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The name for the virtual interface. - name?: null | string @go(Name,*string) - - // The AWS account that will own the new virtual interface. - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // A list of routes to be advertised to the AWS network in this region. - routeFilterPrefixes?: [...null | string] @go(RouteFilterPrefixes,[]*string) - - // The VLAN ID. - vlan?: null | float64 @go(Vlan,*float64) -} - -#HostedPublicVirtualInterfaceObservation: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - amazonAddress?: null | string @go(AmazonAddress,*string) - amazonSideAsn?: null | string @go(AmazonSideAsn,*string) - - // The ARN of the virtual interface. - arn?: null | string @go(Arn,*string) - - // The Direct Connect endpoint on which the virtual interface terminates. - awsDevice?: null | string @go(AwsDevice,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the Direct Connect connection (or LAG) on which to create the virtual interface. - connectionId?: null | string @go(ConnectionID,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The ID of the virtual interface. - id?: null | string @go(ID,*string) - - // The name for the virtual interface. - name?: null | string @go(Name,*string) - - // The AWS account that will own the new virtual interface. - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // A list of routes to be advertised to the AWS network in this region. - routeFilterPrefixes?: [...null | string] @go(RouteFilterPrefixes,[]*string) - - // The VLAN ID. - vlan?: null | float64 @go(Vlan,*float64) -} - -#HostedPublicVirtualInterfaceParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - // +kubebuilder:validation:Optional - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - // +kubebuilder:validation:Optional - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - // +kubebuilder:validation:Optional - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - // +kubebuilder:validation:Optional - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the Direct Connect connection (or LAG) on which to create the virtual interface. - // +crossplane:generate:reference:type=Connection - // +kubebuilder:validation:Optional - connectionId?: null | string @go(ConnectionID,*string) - - // Reference to a Connection to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdRef?: null | v1.#Reference @go(ConnectionIDRef,*v1.Reference) - - // Selector for a Connection to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdSelector?: null | v1.#Selector @go(ConnectionIDSelector,*v1.Selector) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - // +kubebuilder:validation:Optional - customerAddress?: null | string @go(CustomerAddress,*string) - - // The name for the virtual interface. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The AWS account that will own the new virtual interface. - // +kubebuilder:validation:Optional - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A list of routes to be advertised to the AWS network in this region. - // +kubebuilder:validation:Optional - routeFilterPrefixes?: [...null | string] @go(RouteFilterPrefixes,[]*string) - - // The VLAN ID. - // +kubebuilder:validation:Optional - vlan?: null | float64 @go(Vlan,*float64) -} - -// HostedPublicVirtualInterfaceSpec defines the desired state of HostedPublicVirtualInterface -#HostedPublicVirtualInterfaceSpec: { - v1.#ResourceSpec - forProvider: #HostedPublicVirtualInterfaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HostedPublicVirtualInterfaceInitParameters @go(InitProvider) -} - -// HostedPublicVirtualInterfaceStatus defines the observed state of HostedPublicVirtualInterface. -#HostedPublicVirtualInterfaceStatus: { - v1.#ResourceStatus - atProvider?: #HostedPublicVirtualInterfaceObservation @go(AtProvider) -} - -// HostedPublicVirtualInterface is the Schema for the HostedPublicVirtualInterfaces API. Provides a Direct Connect hosted public virtual interface resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HostedPublicVirtualInterface: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.addressFamily) || (has(self.initProvider) && has(self.initProvider.addressFamily))",message="spec.forProvider.addressFamily is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bgpAsn) || (has(self.initProvider) && has(self.initProvider.bgpAsn))",message="spec.forProvider.bgpAsn is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ownerAccountId) || (has(self.initProvider) && has(self.initProvider.ownerAccountId))",message="spec.forProvider.ownerAccountId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.routeFilterPrefixes) || (has(self.initProvider) && has(self.initProvider.routeFilterPrefixes))",message="spec.forProvider.routeFilterPrefixes is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.vlan) || (has(self.initProvider) && has(self.initProvider.vlan))",message="spec.forProvider.vlan is a required parameter" - spec: #HostedPublicVirtualInterfaceSpec @go(Spec) - status?: #HostedPublicVirtualInterfaceStatus @go(Status) -} - -// HostedPublicVirtualInterfaceList contains a list of HostedPublicVirtualInterfaces -#HostedPublicVirtualInterfaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HostedPublicVirtualInterface] @go(Items,[]HostedPublicVirtualInterface) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedpublicvirtualinterfaceaccepter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedpublicvirtualinterfaceaccepter_types_go_gen.cue deleted file mode 100644 index 4df8150..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedpublicvirtualinterfaceaccepter_types_go_gen.cue +++ /dev/null @@ -1,101 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HostedPublicVirtualInterfaceAccepterInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#HostedPublicVirtualInterfaceAccepterObservation: { - // The ARN of the virtual interface. - arn?: null | string @go(Arn,*string) - - // The ID of the virtual interface. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the Direct Connect virtual interface to accept. - virtualInterfaceId?: null | string @go(VirtualInterfaceID,*string) -} - -#HostedPublicVirtualInterfaceAccepterParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the Direct Connect virtual interface to accept. - // +crossplane:generate:reference:type=HostedPublicVirtualInterface - // +kubebuilder:validation:Optional - virtualInterfaceId?: null | string @go(VirtualInterfaceID,*string) - - // Reference to a HostedPublicVirtualInterface to populate virtualInterfaceId. - // +kubebuilder:validation:Optional - virtualInterfaceIdRef?: null | v1.#Reference @go(VirtualInterfaceIDRef,*v1.Reference) - - // Selector for a HostedPublicVirtualInterface to populate virtualInterfaceId. - // +kubebuilder:validation:Optional - virtualInterfaceIdSelector?: null | v1.#Selector @go(VirtualInterfaceIDSelector,*v1.Selector) -} - -// HostedPublicVirtualInterfaceAccepterSpec defines the desired state of HostedPublicVirtualInterfaceAccepter -#HostedPublicVirtualInterfaceAccepterSpec: { - v1.#ResourceSpec - forProvider: #HostedPublicVirtualInterfaceAccepterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HostedPublicVirtualInterfaceAccepterInitParameters @go(InitProvider) -} - -// HostedPublicVirtualInterfaceAccepterStatus defines the observed state of HostedPublicVirtualInterfaceAccepter. -#HostedPublicVirtualInterfaceAccepterStatus: { - v1.#ResourceStatus - atProvider?: #HostedPublicVirtualInterfaceAccepterObservation @go(AtProvider) -} - -// HostedPublicVirtualInterfaceAccepter is the Schema for the HostedPublicVirtualInterfaceAccepters API. Provides a resource to manage the accepter's side of a Direct Connect hosted public virtual interface. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HostedPublicVirtualInterfaceAccepter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #HostedPublicVirtualInterfaceAccepterSpec @go(Spec) - status?: #HostedPublicVirtualInterfaceAccepterStatus @go(Status) -} - -// HostedPublicVirtualInterfaceAccepterList contains a list of HostedPublicVirtualInterfaceAccepters -#HostedPublicVirtualInterfaceAccepterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HostedPublicVirtualInterfaceAccepter] @go(Items,[]HostedPublicVirtualInterfaceAccepter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedtransitvirtualinterface_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedtransitvirtualinterface_types_go_gen.cue deleted file mode 100644 index 183f8e0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedtransitvirtualinterface_types_go_gen.cue +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HostedTransitVirtualInterfaceInitParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual transit interface can be either 1500 or 8500 (jumbo frames). Default is 1500. - mtu?: null | float64 @go(Mtu,*float64) - - // The name for the virtual interface. - name?: null | string @go(Name,*string) - - // The AWS account that will own the new virtual interface. - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // The VLAN ID. - vlan?: null | float64 @go(Vlan,*float64) -} - -#HostedTransitVirtualInterfaceObservation: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - amazonAddress?: null | string @go(AmazonAddress,*string) - amazonSideAsn?: null | string @go(AmazonSideAsn,*string) - - // The ARN of the virtual interface. - arn?: null | string @go(Arn,*string) - - // The Direct Connect endpoint on which the virtual interface terminates. - awsDevice?: null | string @go(AwsDevice,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the Direct Connect connection (or LAG) on which to create the virtual interface. - connectionId?: null | string @go(ConnectionID,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The ID of the virtual interface. - id?: null | string @go(ID,*string) - - // Indicates whether jumbo frames (8500 MTU) are supported. - jumboFrameCapable?: null | bool @go(JumboFrameCapable,*bool) - - // The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual transit interface can be either 1500 or 8500 (jumbo frames). Default is 1500. - mtu?: null | float64 @go(Mtu,*float64) - - // The name for the virtual interface. - name?: null | string @go(Name,*string) - - // The AWS account that will own the new virtual interface. - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // The VLAN ID. - vlan?: null | float64 @go(Vlan,*float64) -} - -#HostedTransitVirtualInterfaceParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - // +kubebuilder:validation:Optional - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - // +kubebuilder:validation:Optional - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - // +kubebuilder:validation:Optional - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - // +kubebuilder:validation:Optional - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the Direct Connect connection (or LAG) on which to create the virtual interface. - // +crossplane:generate:reference:type=Connection - // +kubebuilder:validation:Optional - connectionId?: null | string @go(ConnectionID,*string) - - // Reference to a Connection to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdRef?: null | v1.#Reference @go(ConnectionIDRef,*v1.Reference) - - // Selector for a Connection to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdSelector?: null | v1.#Selector @go(ConnectionIDSelector,*v1.Selector) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - // +kubebuilder:validation:Optional - customerAddress?: null | string @go(CustomerAddress,*string) - - // The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual transit interface can be either 1500 or 8500 (jumbo frames). Default is 1500. - // +kubebuilder:validation:Optional - mtu?: null | float64 @go(Mtu,*float64) - - // The name for the virtual interface. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The AWS account that will own the new virtual interface. - // +kubebuilder:validation:Optional - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The VLAN ID. - // +kubebuilder:validation:Optional - vlan?: null | float64 @go(Vlan,*float64) -} - -// HostedTransitVirtualInterfaceSpec defines the desired state of HostedTransitVirtualInterface -#HostedTransitVirtualInterfaceSpec: { - v1.#ResourceSpec - forProvider: #HostedTransitVirtualInterfaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HostedTransitVirtualInterfaceInitParameters @go(InitProvider) -} - -// HostedTransitVirtualInterfaceStatus defines the observed state of HostedTransitVirtualInterface. -#HostedTransitVirtualInterfaceStatus: { - v1.#ResourceStatus - atProvider?: #HostedTransitVirtualInterfaceObservation @go(AtProvider) -} - -// HostedTransitVirtualInterface is the Schema for the HostedTransitVirtualInterfaces API. Provides a Direct Connect hosted transit virtual interface resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HostedTransitVirtualInterface: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.addressFamily) || (has(self.initProvider) && has(self.initProvider.addressFamily))",message="spec.forProvider.addressFamily is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bgpAsn) || (has(self.initProvider) && has(self.initProvider.bgpAsn))",message="spec.forProvider.bgpAsn is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ownerAccountId) || (has(self.initProvider) && has(self.initProvider.ownerAccountId))",message="spec.forProvider.ownerAccountId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.vlan) || (has(self.initProvider) && has(self.initProvider.vlan))",message="spec.forProvider.vlan is a required parameter" - spec: #HostedTransitVirtualInterfaceSpec @go(Spec) - status?: #HostedTransitVirtualInterfaceStatus @go(Status) -} - -// HostedTransitVirtualInterfaceList contains a list of HostedTransitVirtualInterfaces -#HostedTransitVirtualInterfaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HostedTransitVirtualInterface] @go(Items,[]HostedTransitVirtualInterface) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedtransitvirtualinterfaceaccepter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedtransitvirtualinterfaceaccepter_types_go_gen.cue deleted file mode 100644 index b74d838..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_hostedtransitvirtualinterfaceaccepter_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HostedTransitVirtualInterfaceAccepterInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#HostedTransitVirtualInterfaceAccepterObservation: { - // The ARN of the virtual interface. - arn?: null | string @go(Arn,*string) - - // The ID of the Direct Connect gateway to which to connect the virtual interface. - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // The ID of the virtual interface. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the Direct Connect virtual interface to accept. - virtualInterfaceId?: null | string @go(VirtualInterfaceID,*string) -} - -#HostedTransitVirtualInterfaceAccepterParameters: { - // The ID of the Direct Connect gateway to which to connect the virtual interface. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/directconnect/v1beta1.Gateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // Reference to a Gateway in directconnect to populate dxGatewayId. - // +kubebuilder:validation:Optional - dxGatewayIdRef?: null | v1.#Reference @go(DxGatewayIDRef,*v1.Reference) - - // Selector for a Gateway in directconnect to populate dxGatewayId. - // +kubebuilder:validation:Optional - dxGatewayIdSelector?: null | v1.#Selector @go(DxGatewayIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the Direct Connect virtual interface to accept. - // +crossplane:generate:reference:type=HostedTransitVirtualInterface - // +kubebuilder:validation:Optional - virtualInterfaceId?: null | string @go(VirtualInterfaceID,*string) - - // Reference to a HostedTransitVirtualInterface to populate virtualInterfaceId. - // +kubebuilder:validation:Optional - virtualInterfaceIdRef?: null | v1.#Reference @go(VirtualInterfaceIDRef,*v1.Reference) - - // Selector for a HostedTransitVirtualInterface to populate virtualInterfaceId. - // +kubebuilder:validation:Optional - virtualInterfaceIdSelector?: null | v1.#Selector @go(VirtualInterfaceIDSelector,*v1.Selector) -} - -// HostedTransitVirtualInterfaceAccepterSpec defines the desired state of HostedTransitVirtualInterfaceAccepter -#HostedTransitVirtualInterfaceAccepterSpec: { - v1.#ResourceSpec - forProvider: #HostedTransitVirtualInterfaceAccepterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HostedTransitVirtualInterfaceAccepterInitParameters @go(InitProvider) -} - -// HostedTransitVirtualInterfaceAccepterStatus defines the observed state of HostedTransitVirtualInterfaceAccepter. -#HostedTransitVirtualInterfaceAccepterStatus: { - v1.#ResourceStatus - atProvider?: #HostedTransitVirtualInterfaceAccepterObservation @go(AtProvider) -} - -// HostedTransitVirtualInterfaceAccepter is the Schema for the HostedTransitVirtualInterfaceAccepters API. Provides a resource to manage the accepter's side of a Direct Connect hosted transit virtual interface. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HostedTransitVirtualInterfaceAccepter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #HostedTransitVirtualInterfaceAccepterSpec @go(Spec) - status?: #HostedTransitVirtualInterfaceAccepterStatus @go(Status) -} - -// HostedTransitVirtualInterfaceAccepterList contains a list of HostedTransitVirtualInterfaceAccepters -#HostedTransitVirtualInterfaceAccepterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HostedTransitVirtualInterfaceAccepter] @go(Items,[]HostedTransitVirtualInterfaceAccepter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_lag_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_lag_types_go_gen.cue deleted file mode 100644 index e708f97..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_lag_types_go_gen.cue +++ /dev/null @@ -1,158 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LagInitParameters: { - // The ID of an existing dedicated connection to migrate to the LAG. - connectionId?: null | string @go(ConnectionID,*string) - - // The bandwidth of the individual physical connections bundled by the LAG. Valid values: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sensitive. - connectionsBandwidth?: null | string @go(ConnectionsBandwidth,*string) - - // A boolean that indicates all connections associated with the LAG should be deleted so that the LAG can be destroyed without error. These objects are not recoverable. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // The AWS Direct Connect location in which the LAG should be allocated. See DescribeLocations for the list of AWS Direct Connect locations. Use locationCode. - location?: null | string @go(Location,*string) - - // The name of the LAG. - name?: null | string @go(Name,*string) - - // The name of the service provider associated with the LAG. - providerName?: null | string @go(ProviderName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#LagObservation: { - // The ARN of the LAG. - arn?: null | string @go(Arn,*string) - - // The ID of an existing dedicated connection to migrate to the LAG. - connectionId?: null | string @go(ConnectionID,*string) - - // The bandwidth of the individual physical connections bundled by the LAG. Valid values: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sensitive. - connectionsBandwidth?: null | string @go(ConnectionsBandwidth,*string) - - // A boolean that indicates all connections associated with the LAG should be deleted so that the LAG can be destroyed without error. These objects are not recoverable. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). - hasLogicalRedundancy?: null | string @go(HasLogicalRedundancy,*string) - - // The ID of the LAG. - id?: null | string @go(ID,*string) - - // Indicates whether jumbo frames (9001 MTU) are supported. - jumboFrameCapable?: null | bool @go(JumboFrameCapable,*bool) - - // The AWS Direct Connect location in which the LAG should be allocated. See DescribeLocations for the list of AWS Direct Connect locations. Use locationCode. - location?: null | string @go(Location,*string) - - // The name of the LAG. - name?: null | string @go(Name,*string) - - // The ID of the AWS account that owns the LAG. - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // The name of the service provider associated with the LAG. - providerName?: null | string @go(ProviderName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#LagParameters: { - // The ID of an existing dedicated connection to migrate to the LAG. - // +kubebuilder:validation:Optional - connectionId?: null | string @go(ConnectionID,*string) - - // The bandwidth of the individual physical connections bundled by the LAG. Valid values: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sensitive. - // +kubebuilder:validation:Optional - connectionsBandwidth?: null | string @go(ConnectionsBandwidth,*string) - - // A boolean that indicates all connections associated with the LAG should be deleted so that the LAG can be destroyed without error. These objects are not recoverable. - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // The AWS Direct Connect location in which the LAG should be allocated. See DescribeLocations for the list of AWS Direct Connect locations. Use locationCode. - // +kubebuilder:validation:Optional - location?: null | string @go(Location,*string) - - // The name of the LAG. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The name of the service provider associated with the LAG. - // +kubebuilder:validation:Optional - providerName?: null | string @go(ProviderName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// LagSpec defines the desired state of Lag -#LagSpec: { - v1.#ResourceSpec - forProvider: #LagParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LagInitParameters @go(InitProvider) -} - -// LagStatus defines the observed state of Lag. -#LagStatus: { - v1.#ResourceStatus - atProvider?: #LagObservation @go(AtProvider) -} - -// Lag is the Schema for the Lags API. Provides a Direct Connect LAG. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Lag: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.connectionsBandwidth) || (has(self.initProvider) && has(self.initProvider.connectionsBandwidth))",message="spec.forProvider.connectionsBandwidth is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.location) || (has(self.initProvider) && has(self.initProvider.location))",message="spec.forProvider.location is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #LagSpec @go(Spec) - status?: #LagStatus @go(Status) -} - -// LagList contains a list of Lags -#LagList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Lag] @go(Items,[]Lag) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_privatevirtualinterface_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_privatevirtualinterface_types_go_gen.cue deleted file mode 100644 index afb482f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_privatevirtualinterface_types_go_gen.cue +++ /dev/null @@ -1,232 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PrivateVirtualInterfaceInitParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The ID of the Direct Connect gateway to which to connect the virtual interface. - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. - // The MTU of a virtual private interface can be either 1500 or 9001 (jumbo frames). Default is 1500. - mtu?: null | float64 @go(Mtu,*float64) - - // The name for the virtual interface. - name?: null | string @go(Name,*string) - - // Indicates whether to enable or disable SiteLink. - sitelinkEnabled?: null | bool @go(SitelinkEnabled,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VLAN ID. - vlan?: null | float64 @go(Vlan,*float64) -} - -#PrivateVirtualInterfaceObservation: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - amazonAddress?: null | string @go(AmazonAddress,*string) - amazonSideAsn?: null | string @go(AmazonSideAsn,*string) - - // The ARN of the virtual interface. - arn?: null | string @go(Arn,*string) - - // The Direct Connect endpoint on which the virtual interface terminates. - awsDevice?: null | string @go(AwsDevice,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the Direct Connect connection (or LAG) on which to create the virtual interface. - connectionId?: null | string @go(ConnectionID,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The ID of the Direct Connect gateway to which to connect the virtual interface. - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // The ID of the virtual interface. - id?: null | string @go(ID,*string) - - // Indicates whether jumbo frames (9001 MTU) are supported. - jumboFrameCapable?: null | bool @go(JumboFrameCapable,*bool) - - // The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. - // The MTU of a virtual private interface can be either 1500 or 9001 (jumbo frames). Default is 1500. - mtu?: null | float64 @go(Mtu,*float64) - - // The name for the virtual interface. - name?: null | string @go(Name,*string) - - // Indicates whether to enable or disable SiteLink. - sitelinkEnabled?: null | bool @go(SitelinkEnabled,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the virtual private gateway to which to connect the virtual interface. - vpnGatewayId?: null | string @go(VPNGatewayID,*string) - - // The VLAN ID. - vlan?: null | float64 @go(Vlan,*float64) -} - -#PrivateVirtualInterfaceParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - // +kubebuilder:validation:Optional - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - // +kubebuilder:validation:Optional - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - // +kubebuilder:validation:Optional - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - // +kubebuilder:validation:Optional - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the Direct Connect connection (or LAG) on which to create the virtual interface. - // +crossplane:generate:reference:type=Connection - // +kubebuilder:validation:Optional - connectionId?: null | string @go(ConnectionID,*string) - - // Reference to a Connection to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdRef?: null | v1.#Reference @go(ConnectionIDRef,*v1.Reference) - - // Selector for a Connection to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdSelector?: null | v1.#Selector @go(ConnectionIDSelector,*v1.Selector) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - // +kubebuilder:validation:Optional - customerAddress?: null | string @go(CustomerAddress,*string) - - // The ID of the Direct Connect gateway to which to connect the virtual interface. - // +kubebuilder:validation:Optional - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. - // The MTU of a virtual private interface can be either 1500 or 9001 (jumbo frames). Default is 1500. - // +kubebuilder:validation:Optional - mtu?: null | float64 @go(Mtu,*float64) - - // The name for the virtual interface. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Indicates whether to enable or disable SiteLink. - // +kubebuilder:validation:Optional - sitelinkEnabled?: null | bool @go(SitelinkEnabled,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the virtual private gateway to which to connect the virtual interface. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPNGateway - // +kubebuilder:validation:Optional - vpnGatewayId?: null | string @go(VPNGatewayID,*string) - - // Reference to a VPNGateway in ec2 to populate vpnGatewayId. - // +kubebuilder:validation:Optional - vpnGatewayIdRef?: null | v1.#Reference @go(VPNGatewayIDRef,*v1.Reference) - - // Selector for a VPNGateway in ec2 to populate vpnGatewayId. - // +kubebuilder:validation:Optional - vpnGatewayIdSelector?: null | v1.#Selector @go(VPNGatewayIDSelector,*v1.Selector) - - // The VLAN ID. - // +kubebuilder:validation:Optional - vlan?: null | float64 @go(Vlan,*float64) -} - -// PrivateVirtualInterfaceSpec defines the desired state of PrivateVirtualInterface -#PrivateVirtualInterfaceSpec: { - v1.#ResourceSpec - forProvider: #PrivateVirtualInterfaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PrivateVirtualInterfaceInitParameters @go(InitProvider) -} - -// PrivateVirtualInterfaceStatus defines the observed state of PrivateVirtualInterface. -#PrivateVirtualInterfaceStatus: { - v1.#ResourceStatus - atProvider?: #PrivateVirtualInterfaceObservation @go(AtProvider) -} - -// PrivateVirtualInterface is the Schema for the PrivateVirtualInterfaces API. Provides a Direct Connect private virtual interface resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PrivateVirtualInterface: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.addressFamily) || (has(self.initProvider) && has(self.initProvider.addressFamily))",message="spec.forProvider.addressFamily is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bgpAsn) || (has(self.initProvider) && has(self.initProvider.bgpAsn))",message="spec.forProvider.bgpAsn is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.vlan) || (has(self.initProvider) && has(self.initProvider.vlan))",message="spec.forProvider.vlan is a required parameter" - spec: #PrivateVirtualInterfaceSpec @go(Spec) - status?: #PrivateVirtualInterfaceStatus @go(Status) -} - -// PrivateVirtualInterfaceList contains a list of PrivateVirtualInterfaces -#PrivateVirtualInterfaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PrivateVirtualInterface] @go(Items,[]PrivateVirtualInterface) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_publicvirtualinterface_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_publicvirtualinterface_types_go_gen.cue deleted file mode 100644 index 2aa66ea..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_publicvirtualinterface_types_go_gen.cue +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PublicVirtualInterfaceInitParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The name for the virtual interface. - name?: null | string @go(Name,*string) - - // A list of routes to be advertised to the AWS network in this region. - routeFilterPrefixes?: [...null | string] @go(RouteFilterPrefixes,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VLAN ID. - vlan?: null | float64 @go(Vlan,*float64) -} - -#PublicVirtualInterfaceObservation: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - amazonAddress?: null | string @go(AmazonAddress,*string) - amazonSideAsn?: null | string @go(AmazonSideAsn,*string) - - // The ARN of the virtual interface. - arn?: null | string @go(Arn,*string) - - // The Direct Connect endpoint on which the virtual interface terminates. - awsDevice?: null | string @go(AwsDevice,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the Direct Connect connection (or LAG) on which to create the virtual interface. - connectionId?: null | string @go(ConnectionID,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The ID of the virtual interface. - id?: null | string @go(ID,*string) - - // The name for the virtual interface. - name?: null | string @go(Name,*string) - - // A list of routes to be advertised to the AWS network in this region. - routeFilterPrefixes?: [...null | string] @go(RouteFilterPrefixes,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The VLAN ID. - vlan?: null | float64 @go(Vlan,*float64) -} - -#PublicVirtualInterfaceParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - // +kubebuilder:validation:Optional - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - // +kubebuilder:validation:Optional - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - // +kubebuilder:validation:Optional - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - // +kubebuilder:validation:Optional - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the Direct Connect connection (or LAG) on which to create the virtual interface. - // +crossplane:generate:reference:type=Connection - // +kubebuilder:validation:Optional - connectionId?: null | string @go(ConnectionID,*string) - - // Reference to a Connection to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdRef?: null | v1.#Reference @go(ConnectionIDRef,*v1.Reference) - - // Selector for a Connection to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdSelector?: null | v1.#Selector @go(ConnectionIDSelector,*v1.Selector) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - // +kubebuilder:validation:Optional - customerAddress?: null | string @go(CustomerAddress,*string) - - // The name for the virtual interface. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A list of routes to be advertised to the AWS network in this region. - // +kubebuilder:validation:Optional - routeFilterPrefixes?: [...null | string] @go(RouteFilterPrefixes,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VLAN ID. - // +kubebuilder:validation:Optional - vlan?: null | float64 @go(Vlan,*float64) -} - -// PublicVirtualInterfaceSpec defines the desired state of PublicVirtualInterface -#PublicVirtualInterfaceSpec: { - v1.#ResourceSpec - forProvider: #PublicVirtualInterfaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PublicVirtualInterfaceInitParameters @go(InitProvider) -} - -// PublicVirtualInterfaceStatus defines the observed state of PublicVirtualInterface. -#PublicVirtualInterfaceStatus: { - v1.#ResourceStatus - atProvider?: #PublicVirtualInterfaceObservation @go(AtProvider) -} - -// PublicVirtualInterface is the Schema for the PublicVirtualInterfaces API. Provides a Direct Connect public virtual interface resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PublicVirtualInterface: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.addressFamily) || (has(self.initProvider) && has(self.initProvider.addressFamily))",message="spec.forProvider.addressFamily is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bgpAsn) || (has(self.initProvider) && has(self.initProvider.bgpAsn))",message="spec.forProvider.bgpAsn is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.routeFilterPrefixes) || (has(self.initProvider) && has(self.initProvider.routeFilterPrefixes))",message="spec.forProvider.routeFilterPrefixes is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.vlan) || (has(self.initProvider) && has(self.initProvider.vlan))",message="spec.forProvider.vlan is a required parameter" - spec: #PublicVirtualInterfaceSpec @go(Spec) - status?: #PublicVirtualInterfaceStatus @go(Status) -} - -// PublicVirtualInterfaceList contains a list of PublicVirtualInterfaces -#PublicVirtualInterfaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PublicVirtualInterface] @go(Items,[]PublicVirtualInterface) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_transitvirtualinterface_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_transitvirtualinterface_types_go_gen.cue deleted file mode 100644 index 8c95dc8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/directconnect/v1beta1/zz_transitvirtualinterface_types_go_gen.cue +++ /dev/null @@ -1,224 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/directconnect/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitVirtualInterfaceInitParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. - // The MTU of a virtual transit interface can be either 1500 or 8500 (jumbo frames). Default is 1500. - mtu?: null | float64 @go(Mtu,*float64) - - // The name for the virtual interface. - name?: null | string @go(Name,*string) - - // Indicates whether to enable or disable SiteLink. - sitelinkEnabled?: null | bool @go(SitelinkEnabled,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VLAN ID. - vlan?: null | float64 @go(Vlan,*float64) -} - -#TransitVirtualInterfaceObservation: { - // The address family for the BGP peer. ipv4 or ipv6. - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - amazonAddress?: null | string @go(AmazonAddress,*string) - amazonSideAsn?: null | string @go(AmazonSideAsn,*string) - - // The ARN of the virtual interface. - arn?: null | string @go(Arn,*string) - - // The Direct Connect endpoint on which the virtual interface terminates. - awsDevice?: null | string @go(AwsDevice,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the Direct Connect connection (or LAG) on which to create the virtual interface. - connectionId?: null | string @go(ConnectionID,*string) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - customerAddress?: null | string @go(CustomerAddress,*string) - - // The ID of the Direct Connect gateway to which to connect the virtual interface. - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // The ID of the virtual interface. - id?: null | string @go(ID,*string) - - // Indicates whether jumbo frames (8500 MTU) are supported. - jumboFrameCapable?: null | bool @go(JumboFrameCapable,*bool) - - // The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. - // The MTU of a virtual transit interface can be either 1500 or 8500 (jumbo frames). Default is 1500. - mtu?: null | float64 @go(Mtu,*float64) - - // The name for the virtual interface. - name?: null | string @go(Name,*string) - - // Indicates whether to enable or disable SiteLink. - sitelinkEnabled?: null | bool @go(SitelinkEnabled,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The VLAN ID. - vlan?: null | float64 @go(Vlan,*float64) -} - -#TransitVirtualInterfaceParameters: { - // The address family for the BGP peer. ipv4 or ipv6. - // +kubebuilder:validation:Optional - addressFamily?: null | string @go(AddressFamily,*string) - - // The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. - // +kubebuilder:validation:Optional - amazonAddress?: null | string @go(AmazonAddress,*string) - - // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. - // +kubebuilder:validation:Optional - bgpAsn?: null | float64 @go(BGPAsn,*float64) - - // The authentication key for BGP configuration. - // +kubebuilder:validation:Optional - bgpAuthKey?: null | string @go(BGPAuthKey,*string) - - // The ID of the Direct Connect connection (or LAG) on which to create the virtual interface. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/directconnect/v1beta1.Connection - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - connectionId?: null | string @go(ConnectionID,*string) - - // Reference to a Connection in directconnect to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdRef?: null | v1.#Reference @go(ConnectionIDRef,*v1.Reference) - - // Selector for a Connection in directconnect to populate connectionId. - // +kubebuilder:validation:Optional - connectionIdSelector?: null | v1.#Selector @go(ConnectionIDSelector,*v1.Selector) - - // The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers. - // +kubebuilder:validation:Optional - customerAddress?: null | string @go(CustomerAddress,*string) - - // The ID of the Direct Connect gateway to which to connect the virtual interface. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/directconnect/v1beta1.Gateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dxGatewayId?: null | string @go(DxGatewayID,*string) - - // Reference to a Gateway in directconnect to populate dxGatewayId. - // +kubebuilder:validation:Optional - dxGatewayIdRef?: null | v1.#Reference @go(DxGatewayIDRef,*v1.Reference) - - // Selector for a Gateway in directconnect to populate dxGatewayId. - // +kubebuilder:validation:Optional - dxGatewayIdSelector?: null | v1.#Selector @go(DxGatewayIDSelector,*v1.Selector) - - // The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. - // The MTU of a virtual transit interface can be either 1500 or 8500 (jumbo frames). Default is 1500. - // +kubebuilder:validation:Optional - mtu?: null | float64 @go(Mtu,*float64) - - // The name for the virtual interface. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Indicates whether to enable or disable SiteLink. - // +kubebuilder:validation:Optional - sitelinkEnabled?: null | bool @go(SitelinkEnabled,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VLAN ID. - // +kubebuilder:validation:Optional - vlan?: null | float64 @go(Vlan,*float64) -} - -// TransitVirtualInterfaceSpec defines the desired state of TransitVirtualInterface -#TransitVirtualInterfaceSpec: { - v1.#ResourceSpec - forProvider: #TransitVirtualInterfaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitVirtualInterfaceInitParameters @go(InitProvider) -} - -// TransitVirtualInterfaceStatus defines the observed state of TransitVirtualInterface. -#TransitVirtualInterfaceStatus: { - v1.#ResourceStatus - atProvider?: #TransitVirtualInterfaceObservation @go(AtProvider) -} - -// TransitVirtualInterface is the Schema for the TransitVirtualInterfaces API. Provides a Direct Connect transit virtual interface resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitVirtualInterface: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.addressFamily) || (has(self.initProvider) && has(self.initProvider.addressFamily))",message="spec.forProvider.addressFamily is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bgpAsn) || (has(self.initProvider) && has(self.initProvider.bgpAsn))",message="spec.forProvider.bgpAsn is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.vlan) || (has(self.initProvider) && has(self.initProvider.vlan))",message="spec.forProvider.vlan is a required parameter" - spec: #TransitVirtualInterfaceSpec @go(Spec) - status?: #TransitVirtualInterfaceStatus @go(Status) -} - -// TransitVirtualInterfaceList contains a list of TransitVirtualInterfaces -#TransitVirtualInterfaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitVirtualInterface] @go(Items,[]TransitVirtualInterface) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dlm/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dlm/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 4bb9494..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dlm/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dlm/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=dlm.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "dlm.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dlm/v1beta1/zz_lifecyclepolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dlm/v1beta1/zz_lifecyclepolicy_types_go_gen.cue deleted file mode 100644 index 3073771..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dlm/v1beta1/zz_lifecyclepolicy_types_go_gen.cue +++ /dev/null @@ -1,864 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dlm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionInitParameters: { - // The rule for copying shared snapshots across Regions. See the cross_region_copy configuration block. - crossRegionCopy?: [...#CrossRegionCopyInitParameters] @go(CrossRegionCopy,[]CrossRegionCopyInitParameters) - - // A descriptive name for the action. - name?: null | string @go(Name,*string) -} - -#ActionObservation: { - // The rule for copying shared snapshots across Regions. See the cross_region_copy configuration block. - crossRegionCopy?: [...#CrossRegionCopyObservation] @go(CrossRegionCopy,[]CrossRegionCopyObservation) - - // A descriptive name for the action. - name?: null | string @go(Name,*string) -} - -#ActionParameters: { - // The rule for copying shared snapshots across Regions. See the cross_region_copy configuration block. - // +kubebuilder:validation:Optional - crossRegionCopy: [...#CrossRegionCopyParameters] @go(CrossRegionCopy,[]CrossRegionCopyParameters) - - // A descriptive name for the action. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#CreateRuleInitParameters: { - // The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. - cronExpression?: null | string @go(CronExpression,*string) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) - - // Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, CLOUD is used by default. If the policy targets resources in an AWS Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost. Valid values are CLOUD and OUTPOST_LOCAL. - location?: null | string @go(Location,*string) - - // A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1. - times?: [...null | string] @go(Times,[]*string) -} - -#CreateRuleObservation: { - // The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. - cronExpression?: null | string @go(CronExpression,*string) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) - - // Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, CLOUD is used by default. If the policy targets resources in an AWS Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost. Valid values are CLOUD and OUTPOST_LOCAL. - location?: null | string @go(Location,*string) - - // A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1. - times?: [...null | string] @go(Times,[]*string) -} - -#CreateRuleParameters: { - // The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. - // +kubebuilder:validation:Optional - cronExpression?: null | string @go(CronExpression,*string) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - // +kubebuilder:validation:Optional - intervalUnit?: null | string @go(IntervalUnit,*string) - - // Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, CLOUD is used by default. If the policy targets resources in an AWS Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost. Valid values are CLOUD and OUTPOST_LOCAL. - // +kubebuilder:validation:Optional - location?: null | string @go(Location,*string) - - // A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1. - // +kubebuilder:validation:Optional - times?: [...null | string] @go(Times,[]*string) -} - -#CrossRegionCopyInitParameters: { - // The encryption settings for the copied snapshot. See the encryption_configuration block. Max of 1 per action. - encryptionConfiguration?: [...#EncryptionConfigurationInitParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationInitParameters) - - // Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action. - retainRule?: [...#RetainRuleInitParameters] @go(RetainRule,[]RetainRuleInitParameters) - - // The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies. - target?: null | string @go(Target,*string) -} - -#CrossRegionCopyObservation: { - // The encryption settings for the copied snapshot. See the encryption_configuration block. Max of 1 per action. - encryptionConfiguration?: [...#EncryptionConfigurationObservation] @go(EncryptionConfiguration,[]EncryptionConfigurationObservation) - - // Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action. - retainRule?: [...#RetainRuleObservation] @go(RetainRule,[]RetainRuleObservation) - - // The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies. - target?: null | string @go(Target,*string) -} - -#CrossRegionCopyParameters: { - // The encryption settings for the copied snapshot. See the encryption_configuration block. Max of 1 per action. - // +kubebuilder:validation:Optional - encryptionConfiguration: [...#EncryptionConfigurationParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationParameters) - - // Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action. - // +kubebuilder:validation:Optional - retainRule?: [...#RetainRuleParameters] @go(RetainRule,[]RetainRuleParameters) - - // The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies. - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) -} - -#CrossRegionCopyRuleInitParameters: { - // Copy all user-defined tags on a source volume to snapshots of the volume created by this policy. - copyTags?: null | bool @go(CopyTags,*bool) - - // See the deprecate_rule block. Max of 1 per schedule. - deprecateRule?: [...#DeprecateRuleInitParameters] @go(DeprecateRule,[]DeprecateRuleInitParameters) - - // To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled. - encrypted?: null | bool @go(Encrypted,*bool) - - // Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action. - retainRule?: [...#CrossRegionCopyRuleRetainRuleInitParameters] @go(RetainRule,[]CrossRegionCopyRuleRetainRuleInitParameters) - - // The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies. - target?: null | string @go(Target,*string) -} - -#CrossRegionCopyRuleObservation: { - // The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used. - cmkArn?: null | string @go(CmkArn,*string) - - // Copy all user-defined tags on a source volume to snapshots of the volume created by this policy. - copyTags?: null | bool @go(CopyTags,*bool) - - // See the deprecate_rule block. Max of 1 per schedule. - deprecateRule?: [...#DeprecateRuleObservation] @go(DeprecateRule,[]DeprecateRuleObservation) - - // To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled. - encrypted?: null | bool @go(Encrypted,*bool) - - // Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action. - retainRule?: [...#CrossRegionCopyRuleRetainRuleObservation] @go(RetainRule,[]CrossRegionCopyRuleRetainRuleObservation) - - // The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies. - target?: null | string @go(Target,*string) -} - -#CrossRegionCopyRuleParameters: { - // The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - cmkArn?: null | string @go(CmkArn,*string) - - // Reference to a Key in kms to populate cmkArn. - // +kubebuilder:validation:Optional - cmkArnRef?: null | v1.#Reference @go(CmkArnRef,*v1.Reference) - - // Selector for a Key in kms to populate cmkArn. - // +kubebuilder:validation:Optional - cmkArnSelector?: null | v1.#Selector @go(CmkArnSelector,*v1.Selector) - - // Copy all user-defined tags on a source volume to snapshots of the volume created by this policy. - // +kubebuilder:validation:Optional - copyTags?: null | bool @go(CopyTags,*bool) - - // See the deprecate_rule block. Max of 1 per schedule. - // +kubebuilder:validation:Optional - deprecateRule?: [...#DeprecateRuleParameters] @go(DeprecateRule,[]DeprecateRuleParameters) - - // To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action. - // +kubebuilder:validation:Optional - retainRule?: [...#CrossRegionCopyRuleRetainRuleParameters] @go(RetainRule,[]CrossRegionCopyRuleRetainRuleParameters) - - // The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies. - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) -} - -#CrossRegionCopyRuleRetainRuleInitParameters: { - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#CrossRegionCopyRuleRetainRuleObservation: { - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#CrossRegionCopyRuleRetainRuleParameters: { - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - // +kubebuilder:validation:Optional - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#DeprecateRuleInitParameters: { - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#DeprecateRuleObservation: { - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#DeprecateRuleParameters: { - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - // +kubebuilder:validation:Optional - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#EncryptionConfigurationInitParameters: { - // The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used. - cmkArn?: null | string @go(CmkArn,*string) - - // To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled. - encrypted?: null | bool @go(Encrypted,*bool) -} - -#EncryptionConfigurationObservation: { - // The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used. - cmkArn?: null | string @go(CmkArn,*string) - - // To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled. - encrypted?: null | bool @go(Encrypted,*bool) -} - -#EncryptionConfigurationParameters: { - // The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used. - // +kubebuilder:validation:Optional - cmkArn?: null | string @go(CmkArn,*string) - - // To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) -} - -#EventSourceInitParameters: { - // A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block. - parameters?: [...#ParametersInitParameters] @go(Parameters,[]ParametersInitParameters) - - // The source of the event. Currently only managed CloudWatch Events rules are supported. Valid values are MANAGED_CWE. - type?: null | string @go(Type,*string) -} - -#EventSourceObservation: { - // A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block. - parameters?: [...#ParametersObservation] @go(Parameters,[]ParametersObservation) - - // The source of the event. Currently only managed CloudWatch Events rules are supported. Valid values are MANAGED_CWE. - type?: null | string @go(Type,*string) -} - -#EventSourceParameters: { - // A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block. - // +kubebuilder:validation:Optional - parameters: [...#ParametersParameters] @go(Parameters,[]ParametersParameters) - - // The source of the event. Currently only managed CloudWatch Events rules are supported. Valid values are MANAGED_CWE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#FastRestoreRuleInitParameters: { - // The Availability Zones in which to enable fast snapshot restore. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000. - count?: null | float64 @go(Count,*float64) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#FastRestoreRuleObservation: { - // The Availability Zones in which to enable fast snapshot restore. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000. - count?: null | float64 @go(Count,*float64) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#FastRestoreRuleParameters: { - // The Availability Zones in which to enable fast snapshot restore. - // +kubebuilder:validation:Optional - availabilityZones: [...null | string] @go(AvailabilityZones,[]*string) - - // Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000. - // +kubebuilder:validation:Optional - count?: null | float64 @go(Count,*float64) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - // +kubebuilder:validation:Optional - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#LifecyclePolicyInitParameters: { - // A description for the DLM lifecycle policy. - description?: null | string @go(Description,*string) - - // See the policy_details configuration block. Max of 1. - policyDetails?: [...#PolicyDetailsInitParameters] @go(PolicyDetails,[]PolicyDetailsInitParameters) - - // Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#LifecyclePolicyObservation: { - // Amazon Resource Name (ARN) of the DLM Lifecycle Policy. - arn?: null | string @go(Arn,*string) - - // A description for the DLM lifecycle policy. - description?: null | string @go(Description,*string) - - // The ARN of an IAM role that is able to be assumed by the DLM service. - executionRoleArn?: null | string @go(ExecutionRoleArn,*string) - - // Identifier of the DLM Lifecycle Policy. - id?: null | string @go(ID,*string) - - // See the policy_details configuration block. Max of 1. - policyDetails?: [...#PolicyDetailsObservation] @go(PolicyDetails,[]PolicyDetailsObservation) - - // Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#LifecyclePolicyParameters: { - // A description for the DLM lifecycle policy. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The ARN of an IAM role that is able to be assumed by the DLM service. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - executionRoleArn?: null | string @go(ExecutionRoleArn,*string) - - // Reference to a Role in iam to populate executionRoleArn. - // +kubebuilder:validation:Optional - executionRoleArnRef?: null | v1.#Reference @go(ExecutionRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate executionRoleArn. - // +kubebuilder:validation:Optional - executionRoleArnSelector?: null | v1.#Selector @go(ExecutionRoleArnSelector,*v1.Selector) - - // See the policy_details configuration block. Max of 1. - // +kubebuilder:validation:Optional - policyDetails?: [...#PolicyDetailsParameters] @go(PolicyDetails,[]PolicyDetailsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED. - // +kubebuilder:validation:Optional - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParametersInitParameters: { - // The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account. - descriptionRegex?: null | string @go(DescriptionRegex,*string) - - // The type of event. Currently, only shareSnapshot events are supported. - eventType?: null | string @go(EventType,*string) - - // The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified AWS accounts shares a snapshot with your account. - snapshotOwner?: [...null | string] @go(SnapshotOwner,[]*string) -} - -#ParametersObservation: { - // The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account. - descriptionRegex?: null | string @go(DescriptionRegex,*string) - - // The type of event. Currently, only shareSnapshot events are supported. - eventType?: null | string @go(EventType,*string) - - // The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified AWS accounts shares a snapshot with your account. - snapshotOwner?: [...null | string] @go(SnapshotOwner,[]*string) -} - -#ParametersParameters: { - // The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account. - // +kubebuilder:validation:Optional - descriptionRegex?: null | string @go(DescriptionRegex,*string) - - // The type of event. Currently, only shareSnapshot events are supported. - // +kubebuilder:validation:Optional - eventType?: null | string @go(EventType,*string) - - // The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified AWS accounts shares a snapshot with your account. - // +kubebuilder:validation:Optional - snapshotOwner: [...null | string] @go(SnapshotOwner,[]*string) -} - -#PolicyDetailsInitParameters: { - // The actions to be performed when the event-based policy is triggered. You can specify only one action per policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the action configuration block. - action?: [...#ActionInitParameters] @go(Action,[]ActionInitParameters) - - // The event that triggers the event-based policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the event_source configuration block. - eventSource?: [...#EventSourceInitParameters] @go(EventSource,[]EventSourceInitParameters) - - // A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block. - parameters?: [...#PolicyDetailsParametersInitParameters] @go(Parameters,[]PolicyDetailsParametersInitParameters) - - // The valid target resource types and actions a policy can manage. Specify EBS_SNAPSHOT_MANAGEMENT to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify IMAGE_MANAGEMENT to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify EVENT_BASED_POLICY to create an event-based policy that performs specific actions when a defined event occurs in your AWS account. Default value is EBS_SNAPSHOT_MANAGEMENT. - policyType?: null | string @go(PolicyType,*string) - - // The location of the resources to backup. If the source resources are located in an AWS Region, specify CLOUD. If the source resources are located on an Outpost in your account, specify OUTPOST. If you specify OUTPOST, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account. Valid values are CLOUD and OUTPOST. - resourceLocations?: [...null | string] @go(ResourceLocations,[]*string) - - // A list of resource types that should be targeted by the lifecycle policy. Valid values are VOLUME and INSTANCE. - resourceTypes?: [...null | string] @go(ResourceTypes,[]*string) - - // See the schedule configuration block. - schedule?: [...#ScheduleInitParameters] @go(Schedule,[]ScheduleInitParameters) - - // A map of tag keys and their values. Any resources that match the resource_types and are tagged with any of these tags will be targeted. - targetTags?: {[string]: null | string} @go(TargetTags,map[string]*string) -} - -#PolicyDetailsObservation: { - // The actions to be performed when the event-based policy is triggered. You can specify only one action per policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the action configuration block. - action?: [...#ActionObservation] @go(Action,[]ActionObservation) - - // The event that triggers the event-based policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the event_source configuration block. - eventSource?: [...#EventSourceObservation] @go(EventSource,[]EventSourceObservation) - - // A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block. - parameters?: [...#PolicyDetailsParametersObservation] @go(Parameters,[]PolicyDetailsParametersObservation) - - // The valid target resource types and actions a policy can manage. Specify EBS_SNAPSHOT_MANAGEMENT to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify IMAGE_MANAGEMENT to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify EVENT_BASED_POLICY to create an event-based policy that performs specific actions when a defined event occurs in your AWS account. Default value is EBS_SNAPSHOT_MANAGEMENT. - policyType?: null | string @go(PolicyType,*string) - - // The location of the resources to backup. If the source resources are located in an AWS Region, specify CLOUD. If the source resources are located on an Outpost in your account, specify OUTPOST. If you specify OUTPOST, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account. Valid values are CLOUD and OUTPOST. - resourceLocations?: [...null | string] @go(ResourceLocations,[]*string) - - // A list of resource types that should be targeted by the lifecycle policy. Valid values are VOLUME and INSTANCE. - resourceTypes?: [...null | string] @go(ResourceTypes,[]*string) - - // See the schedule configuration block. - schedule?: [...#ScheduleObservation] @go(Schedule,[]ScheduleObservation) - - // A map of tag keys and their values. Any resources that match the resource_types and are tagged with any of these tags will be targeted. - targetTags?: {[string]: null | string} @go(TargetTags,map[string]*string) -} - -#PolicyDetailsParameters: { - // The actions to be performed when the event-based policy is triggered. You can specify only one action per policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the action configuration block. - // +kubebuilder:validation:Optional - action?: [...#ActionParameters] @go(Action,[]ActionParameters) - - // The event that triggers the event-based policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the event_source configuration block. - // +kubebuilder:validation:Optional - eventSource?: [...#EventSourceParameters] @go(EventSource,[]EventSourceParameters) - - // A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block. - // +kubebuilder:validation:Optional - parameters?: [...#PolicyDetailsParametersParameters] @go(Parameters,[]PolicyDetailsParametersParameters) - - // The valid target resource types and actions a policy can manage. Specify EBS_SNAPSHOT_MANAGEMENT to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify IMAGE_MANAGEMENT to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify EVENT_BASED_POLICY to create an event-based policy that performs specific actions when a defined event occurs in your AWS account. Default value is EBS_SNAPSHOT_MANAGEMENT. - // +kubebuilder:validation:Optional - policyType?: null | string @go(PolicyType,*string) - - // The location of the resources to backup. If the source resources are located in an AWS Region, specify CLOUD. If the source resources are located on an Outpost in your account, specify OUTPOST. If you specify OUTPOST, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account. Valid values are CLOUD and OUTPOST. - // +kubebuilder:validation:Optional - resourceLocations?: [...null | string] @go(ResourceLocations,[]*string) - - // A list of resource types that should be targeted by the lifecycle policy. Valid values are VOLUME and INSTANCE. - // +kubebuilder:validation:Optional - resourceTypes?: [...null | string] @go(ResourceTypes,[]*string) - - // See the schedule configuration block. - // +kubebuilder:validation:Optional - schedule?: [...#ScheduleParameters] @go(Schedule,[]ScheduleParameters) - - // A map of tag keys and their values. Any resources that match the resource_types and are tagged with any of these tags will be targeted. - // +kubebuilder:validation:Optional - targetTags?: {[string]: null | string} @go(TargetTags,map[string]*string) -} - -#PolicyDetailsParametersInitParameters: { - // Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is false. - excludeBootVolume?: null | bool @go(ExcludeBootVolume,*bool) - - // Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. true indicates that targeted instances are not rebooted when the policy runs. false indicates that target instances are rebooted when the policy runs. The default is true (instances are not rebooted). - noReboot?: null | bool @go(NoReboot,*bool) -} - -#PolicyDetailsParametersObservation: { - // Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is false. - excludeBootVolume?: null | bool @go(ExcludeBootVolume,*bool) - - // Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. true indicates that targeted instances are not rebooted when the policy runs. false indicates that target instances are rebooted when the policy runs. The default is true (instances are not rebooted). - noReboot?: null | bool @go(NoReboot,*bool) -} - -#PolicyDetailsParametersParameters: { - // Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is false. - // +kubebuilder:validation:Optional - excludeBootVolume?: null | bool @go(ExcludeBootVolume,*bool) - - // Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. true indicates that targeted instances are not rebooted when the policy runs. false indicates that target instances are rebooted when the policy runs. The default is true (instances are not rebooted). - // +kubebuilder:validation:Optional - noReboot?: null | bool @go(NoReboot,*bool) -} - -#RetainRuleInitParameters: { - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#RetainRuleObservation: { - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#RetainRuleParameters: { - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - // +kubebuilder:validation:Optional - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#ScheduleDeprecateRuleInitParameters: { - // Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000. - count?: null | float64 @go(Count,*float64) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#ScheduleDeprecateRuleObservation: { - // Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000. - count?: null | float64 @go(Count,*float64) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#ScheduleDeprecateRuleParameters: { - // Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000. - // +kubebuilder:validation:Optional - count?: null | float64 @go(Count,*float64) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - // +kubebuilder:validation:Optional - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#ScheduleInitParameters: { - // Copy all user-defined tags on a source volume to snapshots of the volume created by this policy. - copyTags?: null | bool @go(CopyTags,*bool) - - // See the create_rule block. Max of 1 per schedule. - createRule?: [...#CreateRuleInitParameters] @go(CreateRule,[]CreateRuleInitParameters) - - // See the cross_region_copy_rule block. Max of 3 per schedule. - crossRegionCopyRule?: [...#CrossRegionCopyRuleInitParameters] @go(CrossRegionCopyRule,[]CrossRegionCopyRuleInitParameters) - - // See the deprecate_rule block. Max of 1 per schedule. - deprecateRule?: [...#ScheduleDeprecateRuleInitParameters] @go(DeprecateRule,[]ScheduleDeprecateRuleInitParameters) - - // See the fast_restore_rule block. Max of 1 per schedule. - fastRestoreRule?: [...#FastRestoreRuleInitParameters] @go(FastRestoreRule,[]FastRestoreRuleInitParameters) - - // A descriptive name for the action. - name?: null | string @go(Name,*string) - - // Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action. - retainRule?: [...#ScheduleRetainRuleInitParameters] @go(RetainRule,[]ScheduleRetainRuleInitParameters) - - // See the share_rule block. Max of 1 per schedule. - shareRule?: [...#ShareRuleInitParameters] @go(ShareRule,[]ShareRuleInitParameters) - - // A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these. - tagsToAdd?: {[string]: null | string} @go(TagsToAdd,map[string]*string) - - // A map of tag keys and variable values, where the values are determined when the policy is executed. Only $(instance-id) or $(timestamp) are valid values. Can only be used when resource_types is INSTANCE. - variableTags?: {[string]: null | string} @go(VariableTags,map[string]*string) -} - -#ScheduleObservation: { - // Copy all user-defined tags on a source volume to snapshots of the volume created by this policy. - copyTags?: null | bool @go(CopyTags,*bool) - - // See the create_rule block. Max of 1 per schedule. - createRule?: [...#CreateRuleObservation] @go(CreateRule,[]CreateRuleObservation) - - // See the cross_region_copy_rule block. Max of 3 per schedule. - crossRegionCopyRule?: [...#CrossRegionCopyRuleObservation] @go(CrossRegionCopyRule,[]CrossRegionCopyRuleObservation) - - // See the deprecate_rule block. Max of 1 per schedule. - deprecateRule?: [...#ScheduleDeprecateRuleObservation] @go(DeprecateRule,[]ScheduleDeprecateRuleObservation) - - // See the fast_restore_rule block. Max of 1 per schedule. - fastRestoreRule?: [...#FastRestoreRuleObservation] @go(FastRestoreRule,[]FastRestoreRuleObservation) - - // A descriptive name for the action. - name?: null | string @go(Name,*string) - - // Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action. - retainRule?: [...#ScheduleRetainRuleObservation] @go(RetainRule,[]ScheduleRetainRuleObservation) - - // See the share_rule block. Max of 1 per schedule. - shareRule?: [...#ShareRuleObservation] @go(ShareRule,[]ShareRuleObservation) - - // A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these. - tagsToAdd?: {[string]: null | string} @go(TagsToAdd,map[string]*string) - - // A map of tag keys and variable values, where the values are determined when the policy is executed. Only $(instance-id) or $(timestamp) are valid values. Can only be used when resource_types is INSTANCE. - variableTags?: {[string]: null | string} @go(VariableTags,map[string]*string) -} - -#ScheduleParameters: { - // Copy all user-defined tags on a source volume to snapshots of the volume created by this policy. - // +kubebuilder:validation:Optional - copyTags?: null | bool @go(CopyTags,*bool) - - // See the create_rule block. Max of 1 per schedule. - // +kubebuilder:validation:Optional - createRule: [...#CreateRuleParameters] @go(CreateRule,[]CreateRuleParameters) - - // See the cross_region_copy_rule block. Max of 3 per schedule. - // +kubebuilder:validation:Optional - crossRegionCopyRule?: [...#CrossRegionCopyRuleParameters] @go(CrossRegionCopyRule,[]CrossRegionCopyRuleParameters) - - // See the deprecate_rule block. Max of 1 per schedule. - // +kubebuilder:validation:Optional - deprecateRule?: [...#ScheduleDeprecateRuleParameters] @go(DeprecateRule,[]ScheduleDeprecateRuleParameters) - - // See the fast_restore_rule block. Max of 1 per schedule. - // +kubebuilder:validation:Optional - fastRestoreRule?: [...#FastRestoreRuleParameters] @go(FastRestoreRule,[]FastRestoreRuleParameters) - - // A descriptive name for the action. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action. - // +kubebuilder:validation:Optional - retainRule: [...#ScheduleRetainRuleParameters] @go(RetainRule,[]ScheduleRetainRuleParameters) - - // See the share_rule block. Max of 1 per schedule. - // +kubebuilder:validation:Optional - shareRule?: [...#ShareRuleParameters] @go(ShareRule,[]ShareRuleParameters) - - // A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these. - // +kubebuilder:validation:Optional - tagsToAdd?: {[string]: null | string} @go(TagsToAdd,map[string]*string) - - // A map of tag keys and variable values, where the values are determined when the policy is executed. Only $(instance-id) or $(timestamp) are valid values. Can only be used when resource_types is INSTANCE. - // +kubebuilder:validation:Optional - variableTags?: {[string]: null | string} @go(VariableTags,map[string]*string) -} - -#ScheduleRetainRuleInitParameters: { - // Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000. - count?: null | float64 @go(Count,*float64) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#ScheduleRetainRuleObservation: { - // Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000. - count?: null | float64 @go(Count,*float64) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#ScheduleRetainRuleParameters: { - // Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000. - // +kubebuilder:validation:Optional - count?: null | float64 @go(Count,*float64) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - // +kubebuilder:validation:Optional - intervalUnit?: null | string @go(IntervalUnit,*string) -} - -#ShareRuleInitParameters: { - // The IDs of the AWS accounts with which to share the snapshots. - targetAccounts?: [...null | string] @go(TargetAccounts,[]*string) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - unshareInterval?: null | float64 @go(UnshareInterval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - unshareIntervalUnit?: null | string @go(UnshareIntervalUnit,*string) -} - -#ShareRuleObservation: { - // The IDs of the AWS accounts with which to share the snapshots. - targetAccounts?: [...null | string] @go(TargetAccounts,[]*string) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - unshareInterval?: null | float64 @go(UnshareInterval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - unshareIntervalUnit?: null | string @go(UnshareIntervalUnit,*string) -} - -#ShareRuleParameters: { - // The IDs of the AWS accounts with which to share the snapshots. - // +kubebuilder:validation:Optional - targetAccounts: [...null | string] @go(TargetAccounts,[]*string) - - // How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values. - // +kubebuilder:validation:Optional - unshareInterval?: null | float64 @go(UnshareInterval,*float64) - - // The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value. - // +kubebuilder:validation:Optional - unshareIntervalUnit?: null | string @go(UnshareIntervalUnit,*string) -} - -// LifecyclePolicySpec defines the desired state of LifecyclePolicy -#LifecyclePolicySpec: { - v1.#ResourceSpec - forProvider: #LifecyclePolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LifecyclePolicyInitParameters @go(InitProvider) -} - -// LifecyclePolicyStatus defines the observed state of LifecyclePolicy. -#LifecyclePolicyStatus: { - v1.#ResourceStatus - atProvider?: #LifecyclePolicyObservation @go(AtProvider) -} - -// LifecyclePolicy is the Schema for the LifecyclePolicys API. Provides a Data Lifecycle Manager (DLM) lifecycle policy for managing snapshots. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LifecyclePolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.description) || (has(self.initProvider) && has(self.initProvider.description))",message="spec.forProvider.description is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policyDetails) || (has(self.initProvider) && has(self.initProvider.policyDetails))",message="spec.forProvider.policyDetails is a required parameter" - spec: #LifecyclePolicySpec @go(Spec) - status?: #LifecyclePolicyStatus @go(Status) -} - -// LifecyclePolicyList contains a list of LifecyclePolicys -#LifecyclePolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LifecyclePolicy] @go(Items,[]LifecyclePolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_certificate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_certificate_types_go_gen.cue deleted file mode 100644 index 72ea850..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_certificate_types_go_gen.cue +++ /dev/null @@ -1,91 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CertificateInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CertificateObservation: { - // The Amazon Resource Name (ARN) for the certificate. - certificateArn?: null | string @go(CertificateArn,*string) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#CertificateParameters: { - // The contents of the .pem X.509 certificate file for the certificate. Either certificate_pem or certificate_wallet must be set. - // +kubebuilder:validation:Optional - certificatePemSecretRef?: null | v1.#SecretKeySelector @go(CertificatePemSecretRef,*v1.SecretKeySelector) - - // The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either certificate_pem or certificate_wallet must be set. - // +kubebuilder:validation:Optional - certificateWalletSecretRef?: null | v1.#SecretKeySelector @go(CertificateWalletSecretRef,*v1.SecretKeySelector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// CertificateSpec defines the desired state of Certificate -#CertificateSpec: { - v1.#ResourceSpec - forProvider: #CertificateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CertificateInitParameters @go(InitProvider) -} - -// CertificateStatus defines the observed state of Certificate. -#CertificateStatus: { - v1.#ResourceStatus - atProvider?: #CertificateObservation @go(AtProvider) -} - -// Certificate is the Schema for the Certificates API. Provides a DMS (Data Migration Service) certificate resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Certificate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CertificateSpec @go(Spec) - status?: #CertificateStatus @go(Status) -} - -// CertificateList contains a list of Certificates -#CertificateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Certificate] @go(Items,[]Certificate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_endpoint_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_endpoint_types_go_gen.cue deleted file mode 100644 index 8e44db2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_endpoint_types_go_gen.cue +++ /dev/null @@ -1,1206 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ElasticsearchSettingsInitParameters: { - // Endpoint for the OpenSearch cluster. - endpointUri?: null | string @go(EndpointURI,*string) - - // Maximum number of seconds for which DMS retries failed API requests to the OpenSearch cluster. Default is 300. - errorRetryDuration?: null | float64 @go(ErrorRetryDuration,*float64) - - // Maximum percentage of records that can fail to be written before a full load operation stops. Default is 10. - fullLoadErrorPercentage?: null | float64 @go(FullLoadErrorPercentage,*float64) - - // ARN of the IAM Role with permissions to write to the OpenSearch cluster. - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) -} - -#ElasticsearchSettingsObservation: { - // Endpoint for the OpenSearch cluster. - endpointUri?: null | string @go(EndpointURI,*string) - - // Maximum number of seconds for which DMS retries failed API requests to the OpenSearch cluster. Default is 300. - errorRetryDuration?: null | float64 @go(ErrorRetryDuration,*float64) - - // Maximum percentage of records that can fail to be written before a full load operation stops. Default is 10. - fullLoadErrorPercentage?: null | float64 @go(FullLoadErrorPercentage,*float64) - - // ARN of the IAM Role with permissions to write to the OpenSearch cluster. - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) -} - -#ElasticsearchSettingsParameters: { - // Endpoint for the OpenSearch cluster. - // +kubebuilder:validation:Optional - endpointUri?: null | string @go(EndpointURI,*string) - - // Maximum number of seconds for which DMS retries failed API requests to the OpenSearch cluster. Default is 300. - // +kubebuilder:validation:Optional - errorRetryDuration?: null | float64 @go(ErrorRetryDuration,*float64) - - // Maximum percentage of records that can fail to be written before a full load operation stops. Default is 10. - // +kubebuilder:validation:Optional - fullLoadErrorPercentage?: null | float64 @go(FullLoadErrorPercentage,*float64) - - // ARN of the IAM Role with permissions to write to the OpenSearch cluster. - // +kubebuilder:validation:Optional - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) -} - -#EndpointInitParameters: { - // ARN for the certificate. - certificateArn?: null | string @go(CertificateArn,*string) - - // Name of the endpoint database. - databaseName?: null | string @go(DatabaseName,*string) - - // Configuration block for OpenSearch settings. See below. - elasticsearchSettings?: [...#ElasticsearchSettingsInitParameters] @go(ElasticsearchSettings,[]ElasticsearchSettingsInitParameters) - - // Type of endpoint. Valid values are source, target. - endpointType?: null | string @go(EndpointType,*string) - - // Type of engine for the endpoint. Valid values are aurora, aurora-postgresql, azuredb, azure-sql-managed-instance, db2, db2-zos, docdb, dynamodb, elasticsearch, kafka, kinesis, mariadb, mongodb, mysql, opensearch, oracle, postgres, redshift, s3, sqlserver, sybase. Please note that some of engine names are available only for target endpoint type (e.g. redshift). - engineName?: null | string @go(EngineName,*string) - - // Additional attributes associated with the connection. For available attributes for a source Endpoint, see Sources for data migration. For available attributes for a target Endpoint, see Targets for data migration. - extraConnectionAttributes?: null | string @go(ExtraConnectionAttributes,*string) - - // Configuration block for Kafka settings. See below. - kafkaSettings?: [...#KafkaSettingsInitParameters] @go(KafkaSettings,[]KafkaSettingsInitParameters) - - // Configuration block for Kinesis settings. See below. - kinesisSettings?: [...#KinesisSettingsInitParameters] @go(KinesisSettings,[]KinesisSettingsInitParameters) - - // Configuration block for MongoDB settings. See below. - mongodbSettings?: [...#MongodbSettingsInitParameters] @go(MongodbSettings,[]MongodbSettingsInitParameters) - - // Port used by the endpoint database. - port?: null | float64 @go(Port,*float64) - redisSettings?: [...#RedisSettingsInitParameters] @go(RedisSettings,[]RedisSettingsInitParameters) - - // Configuration block for Redshift settings. See below. - redshiftSettings?: [...#RedshiftSettingsInitParameters] @go(RedshiftSettings,[]RedshiftSettingsInitParameters) - - // (Deprecated, use the aws_dms_s3_endpoint resource instead) Configuration block for S3 settings. See below. - // This argument is deprecated and will be removed in a future version; use aws_dms_s3_endpoint instead - s3Settings?: [...#S3SettingsInitParameters] @go(S3Settings,[]S3SettingsInitParameters) - - // SSL mode to use for the connection. Valid values are none, require, verify-ca, verify-full - sslMode?: null | string @go(SSLMode,*string) - - // Full ARN, partial ARN, or friendly name of the SecretsManagerSecret that contains the endpoint connection details. Supported only when engine_name is aurora, aurora-postgresql, mariadb, mongodb, mysql, oracle, postgres, redshift, or sqlserver. - secretsManagerArn?: null | string @go(SecretsManagerArn,*string) - - // Host name of the server. - serverName?: null | string @go(ServerName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // User name to be used to login to the endpoint database. - username?: null | string @go(Username,*string) -} - -#EndpointObservation: { - // ARN for the certificate. - certificateArn?: null | string @go(CertificateArn,*string) - - // Name of the endpoint database. - databaseName?: null | string @go(DatabaseName,*string) - - // Configuration block for OpenSearch settings. See below. - elasticsearchSettings?: [...#ElasticsearchSettingsObservation] @go(ElasticsearchSettings,[]ElasticsearchSettingsObservation) - - // ARN for the endpoint. - endpointArn?: null | string @go(EndpointArn,*string) - - // Type of endpoint. Valid values are source, target. - endpointType?: null | string @go(EndpointType,*string) - - // Type of engine for the endpoint. Valid values are aurora, aurora-postgresql, azuredb, azure-sql-managed-instance, db2, db2-zos, docdb, dynamodb, elasticsearch, kafka, kinesis, mariadb, mongodb, mysql, opensearch, oracle, postgres, redshift, s3, sqlserver, sybase. Please note that some of engine names are available only for target endpoint type (e.g. redshift). - engineName?: null | string @go(EngineName,*string) - - // Additional attributes associated with the connection. For available attributes for a source Endpoint, see Sources for data migration. For available attributes for a target Endpoint, see Targets for data migration. - extraConnectionAttributes?: null | string @go(ExtraConnectionAttributes,*string) - id?: null | string @go(ID,*string) - - // ARN for the KMS key that will be used to encrypt the connection parameters. If you do not specify a value for kms_key_arn, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region. To encrypt an S3 target with a KMS Key, use the parameter s3_settings.server_side_encryption_kms_key_id. When engine_name is redshift, kms_key_arn is the KMS Key for the Redshift target and the parameter redshift_settings.server_side_encryption_kms_key_id encrypts the S3 intermediate storage. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Configuration block for Kafka settings. See below. - kafkaSettings?: [...#KafkaSettingsObservation] @go(KafkaSettings,[]KafkaSettingsObservation) - - // Configuration block for Kinesis settings. See below. - kinesisSettings?: [...#KinesisSettingsObservation] @go(KinesisSettings,[]KinesisSettingsObservation) - - // Configuration block for MongoDB settings. See below. - mongodbSettings?: [...#MongodbSettingsObservation] @go(MongodbSettings,[]MongodbSettingsObservation) - - // Port used by the endpoint database. - port?: null | float64 @go(Port,*float64) - redisSettings?: [...#RedisSettingsObservation] @go(RedisSettings,[]RedisSettingsObservation) - - // Configuration block for Redshift settings. See below. - redshiftSettings?: [...#RedshiftSettingsObservation] @go(RedshiftSettings,[]RedshiftSettingsObservation) - - // (Deprecated, use the aws_dms_s3_endpoint resource instead) Configuration block for S3 settings. See below. - // This argument is deprecated and will be removed in a future version; use aws_dms_s3_endpoint instead - s3Settings?: [...#S3SettingsObservation] @go(S3Settings,[]S3SettingsObservation) - - // SSL mode to use for the connection. Valid values are none, require, verify-ca, verify-full - sslMode?: null | string @go(SSLMode,*string) - - // ARN of the IAM role that specifies AWS DMS as the trusted entity and has the required permissions to access the value in SecretsManagerSecret. - secretsManagerAccessRoleArn?: null | string @go(SecretsManagerAccessRoleArn,*string) - - // Full ARN, partial ARN, or friendly name of the SecretsManagerSecret that contains the endpoint connection details. Supported only when engine_name is aurora, aurora-postgresql, mariadb, mongodb, mysql, oracle, postgres, redshift, or sqlserver. - secretsManagerArn?: null | string @go(SecretsManagerArn,*string) - - // Host name of the server. - serverName?: null | string @go(ServerName,*string) - - // ARN used by the service access IAM role for dynamodb endpoints. - serviceAccessRole?: null | string @go(ServiceAccessRole,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // User name to be used to login to the endpoint database. - username?: null | string @go(Username,*string) -} - -#EndpointParameters: { - // ARN for the certificate. - // +kubebuilder:validation:Optional - certificateArn?: null | string @go(CertificateArn,*string) - - // Name of the endpoint database. - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // Configuration block for OpenSearch settings. See below. - // +kubebuilder:validation:Optional - elasticsearchSettings?: [...#ElasticsearchSettingsParameters] @go(ElasticsearchSettings,[]ElasticsearchSettingsParameters) - - // Type of endpoint. Valid values are source, target. - // +kubebuilder:validation:Optional - endpointType?: null | string @go(EndpointType,*string) - - // Type of engine for the endpoint. Valid values are aurora, aurora-postgresql, azuredb, azure-sql-managed-instance, db2, db2-zos, docdb, dynamodb, elasticsearch, kafka, kinesis, mariadb, mongodb, mysql, opensearch, oracle, postgres, redshift, s3, sqlserver, sybase. Please note that some of engine names are available only for target endpoint type (e.g. redshift). - // +kubebuilder:validation:Optional - engineName?: null | string @go(EngineName,*string) - - // Additional attributes associated with the connection. For available attributes for a source Endpoint, see Sources for data migration. For available attributes for a target Endpoint, see Targets for data migration. - // +kubebuilder:validation:Optional - extraConnectionAttributes?: null | string @go(ExtraConnectionAttributes,*string) - - // ARN for the KMS key that will be used to encrypt the connection parameters. If you do not specify a value for kms_key_arn, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region. To encrypt an S3 target with a KMS Key, use the parameter s3_settings.server_side_encryption_kms_key_id. When engine_name is redshift, kms_key_arn is the KMS Key for the Redshift target and the parameter redshift_settings.server_side_encryption_kms_key_id encrypts the S3 intermediate storage. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) - - // Configuration block for Kafka settings. See below. - // +kubebuilder:validation:Optional - kafkaSettings?: [...#KafkaSettingsParameters] @go(KafkaSettings,[]KafkaSettingsParameters) - - // Configuration block for Kinesis settings. See below. - // +kubebuilder:validation:Optional - kinesisSettings?: [...#KinesisSettingsParameters] @go(KinesisSettings,[]KinesisSettingsParameters) - - // Configuration block for MongoDB settings. See below. - // +kubebuilder:validation:Optional - mongodbSettings?: [...#MongodbSettingsParameters] @go(MongodbSettings,[]MongodbSettingsParameters) - - // Password to be used to login to the endpoint database. - // +kubebuilder:validation:Optional - passwordSecretRef?: null | v1.#SecretKeySelector @go(PasswordSecretRef,*v1.SecretKeySelector) - - // Port used by the endpoint database. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // +kubebuilder:validation:Optional - redisSettings?: [...#RedisSettingsParameters] @go(RedisSettings,[]RedisSettingsParameters) - - // Configuration block for Redshift settings. See below. - // +kubebuilder:validation:Optional - redshiftSettings?: [...#RedshiftSettingsParameters] @go(RedshiftSettings,[]RedshiftSettingsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // (Deprecated, use the aws_dms_s3_endpoint resource instead) Configuration block for S3 settings. See below. - // This argument is deprecated and will be removed in a future version; use aws_dms_s3_endpoint instead - // +kubebuilder:validation:Optional - s3Settings?: [...#S3SettingsParameters] @go(S3Settings,[]S3SettingsParameters) - - // SSL mode to use for the connection. Valid values are none, require, verify-ca, verify-full - // +kubebuilder:validation:Optional - sslMode?: null | string @go(SSLMode,*string) - - // ARN of the IAM role that specifies AWS DMS as the trusted entity and has the required permissions to access the value in SecretsManagerSecret. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - secretsManagerAccessRoleArn?: null | string @go(SecretsManagerAccessRoleArn,*string) - - // Reference to a Role in iam to populate secretsManagerAccessRoleArn. - // +kubebuilder:validation:Optional - secretsManagerAccessRoleArnRef?: null | v1.#Reference @go(SecretsManagerAccessRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate secretsManagerAccessRoleArn. - // +kubebuilder:validation:Optional - secretsManagerAccessRoleArnSelector?: null | v1.#Selector @go(SecretsManagerAccessRoleArnSelector,*v1.Selector) - - // Full ARN, partial ARN, or friendly name of the SecretsManagerSecret that contains the endpoint connection details. Supported only when engine_name is aurora, aurora-postgresql, mariadb, mongodb, mysql, oracle, postgres, redshift, or sqlserver. - // +kubebuilder:validation:Optional - secretsManagerArn?: null | string @go(SecretsManagerArn,*string) - - // Host name of the server. - // +kubebuilder:validation:Optional - serverName?: null | string @go(ServerName,*string) - - // ARN used by the service access IAM role for dynamodb endpoints. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - serviceAccessRole?: null | string @go(ServiceAccessRole,*string) - - // Reference to a Role in iam to populate serviceAccessRole. - // +kubebuilder:validation:Optional - serviceAccessRoleRef?: null | v1.#Reference @go(ServiceAccessRoleRef,*v1.Reference) - - // Selector for a Role in iam to populate serviceAccessRole. - // +kubebuilder:validation:Optional - serviceAccessRoleSelector?: null | v1.#Selector @go(ServiceAccessRoleSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // User name to be used to login to the endpoint database. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -#KafkaSettingsInitParameters: { - // Kafka broker location. Specify in the form broker-hostname-or-ip:port. - broker?: null | string @go(Broker,*string) - - // Shows detailed control information for table definition, column definition, and table and column changes in the Kafka message output. Default is false. - includeControlDetails?: null | bool @go(IncludeControlDetails,*bool) - - // Include NULL and empty columns for records migrated to the endpoint. Default is false. - includeNullAndEmpty?: null | bool @go(IncludeNullAndEmpty,*bool) - - // Shows the partition value within the Kafka message output unless the partition type is schema-table-type. Default is false. - includePartitionValue?: null | bool @go(IncludePartitionValue,*bool) - - // Includes any data definition language (DDL) operations that change the table in the control data, such as rename-table, drop-table, add-column, drop-column, and rename-column. Default is false. - includeTableAlterOperations?: null | bool @go(IncludeTableAlterOperations,*bool) - - // Provides detailed transaction information from the source database. This information includes a commit timestamp, a log position, and values for transaction_id, previous transaction_id, and transaction_record_id (the record offset within a transaction). Default is false. - includeTransactionDetails?: null | bool @go(IncludeTransactionDetails,*bool) - - // Output format for the records created on the endpoint. Message format is JSON (default) or JSON_UNFORMATTED (a single line with no tab). - messageFormat?: null | string @go(MessageFormat,*string) - - // Maximum size in bytes for records created on the endpoint Default is 1,000,000. - messageMaxBytes?: null | float64 @go(MessageMaxBytes,*float64) - - // Set this optional parameter to true to avoid adding a '0x' prefix to raw data in hexadecimal format. For example, by default, AWS DMS adds a '0x' prefix to the LOB column type in hexadecimal format moving from an Oracle source to a Kafka target. Use the no_hex_prefix endpoint setting to enable migration of RAW data type columns without adding the '0x' prefix. - noHexPrefix?: null | bool @go(NoHexPrefix,*bool) - - // Prefixes schema and table names to partition values, when the partition type is primary-key-type. Doing this increases data distribution among Kafka partitions. For example, suppose that a SysBench schema has thousands of tables and each table has only limited range for a primary key. In this case, the same primary key is sent from thousands of tables to the same partition, which causes throttling. Default is false. - partitionIncludeSchemaTable?: null | bool @go(PartitionIncludeSchemaTable,*bool) - - // ARN for the private certificate authority (CA) cert that AWS DMS uses to securely connect to your Kafka target endpoint. - sslCaCertificateArn?: null | string @go(SSLCACertificateArn,*string) - - // ARN of the client certificate used to securely connect to a Kafka target endpoint. - sslClientCertificateArn?: null | string @go(SSLClientCertificateArn,*string) - - // ARN for the client private key used to securely connect to a Kafka target endpoint. - sslClientKeyArn?: null | string @go(SSLClientKeyArn,*string) - - // Secure user name you created when you first set up your MSK cluster to validate a client identity and make an encrypted connection between server and client using SASL-SSL authentication. - saslUsername?: null | string @go(SaslUsername,*string) - - // Set secure connection to a Kafka target endpoint using Transport Layer Security (TLS). Options include ssl-encryption, ssl-authentication, and sasl-ssl. sasl-ssl requires sasl_username and sasl_password. - securityProtocol?: null | string @go(SecurityProtocol,*string) - - // Kafka topic for migration. Default is kafka-default-topic. - topic?: null | string @go(Topic,*string) -} - -#KafkaSettingsObservation: { - // Kafka broker location. Specify in the form broker-hostname-or-ip:port. - broker?: null | string @go(Broker,*string) - - // Shows detailed control information for table definition, column definition, and table and column changes in the Kafka message output. Default is false. - includeControlDetails?: null | bool @go(IncludeControlDetails,*bool) - - // Include NULL and empty columns for records migrated to the endpoint. Default is false. - includeNullAndEmpty?: null | bool @go(IncludeNullAndEmpty,*bool) - - // Shows the partition value within the Kafka message output unless the partition type is schema-table-type. Default is false. - includePartitionValue?: null | bool @go(IncludePartitionValue,*bool) - - // Includes any data definition language (DDL) operations that change the table in the control data, such as rename-table, drop-table, add-column, drop-column, and rename-column. Default is false. - includeTableAlterOperations?: null | bool @go(IncludeTableAlterOperations,*bool) - - // Provides detailed transaction information from the source database. This information includes a commit timestamp, a log position, and values for transaction_id, previous transaction_id, and transaction_record_id (the record offset within a transaction). Default is false. - includeTransactionDetails?: null | bool @go(IncludeTransactionDetails,*bool) - - // Output format for the records created on the endpoint. Message format is JSON (default) or JSON_UNFORMATTED (a single line with no tab). - messageFormat?: null | string @go(MessageFormat,*string) - - // Maximum size in bytes for records created on the endpoint Default is 1,000,000. - messageMaxBytes?: null | float64 @go(MessageMaxBytes,*float64) - - // Set this optional parameter to true to avoid adding a '0x' prefix to raw data in hexadecimal format. For example, by default, AWS DMS adds a '0x' prefix to the LOB column type in hexadecimal format moving from an Oracle source to a Kafka target. Use the no_hex_prefix endpoint setting to enable migration of RAW data type columns without adding the '0x' prefix. - noHexPrefix?: null | bool @go(NoHexPrefix,*bool) - - // Prefixes schema and table names to partition values, when the partition type is primary-key-type. Doing this increases data distribution among Kafka partitions. For example, suppose that a SysBench schema has thousands of tables and each table has only limited range for a primary key. In this case, the same primary key is sent from thousands of tables to the same partition, which causes throttling. Default is false. - partitionIncludeSchemaTable?: null | bool @go(PartitionIncludeSchemaTable,*bool) - - // ARN for the private certificate authority (CA) cert that AWS DMS uses to securely connect to your Kafka target endpoint. - sslCaCertificateArn?: null | string @go(SSLCACertificateArn,*string) - - // ARN of the client certificate used to securely connect to a Kafka target endpoint. - sslClientCertificateArn?: null | string @go(SSLClientCertificateArn,*string) - - // ARN for the client private key used to securely connect to a Kafka target endpoint. - sslClientKeyArn?: null | string @go(SSLClientKeyArn,*string) - - // Secure user name you created when you first set up your MSK cluster to validate a client identity and make an encrypted connection between server and client using SASL-SSL authentication. - saslUsername?: null | string @go(SaslUsername,*string) - - // Set secure connection to a Kafka target endpoint using Transport Layer Security (TLS). Options include ssl-encryption, ssl-authentication, and sasl-ssl. sasl-ssl requires sasl_username and sasl_password. - securityProtocol?: null | string @go(SecurityProtocol,*string) - - // Kafka topic for migration. Default is kafka-default-topic. - topic?: null | string @go(Topic,*string) -} - -#KafkaSettingsParameters: { - // Kafka broker location. Specify in the form broker-hostname-or-ip:port. - // +kubebuilder:validation:Optional - broker?: null | string @go(Broker,*string) - - // Shows detailed control information for table definition, column definition, and table and column changes in the Kafka message output. Default is false. - // +kubebuilder:validation:Optional - includeControlDetails?: null | bool @go(IncludeControlDetails,*bool) - - // Include NULL and empty columns for records migrated to the endpoint. Default is false. - // +kubebuilder:validation:Optional - includeNullAndEmpty?: null | bool @go(IncludeNullAndEmpty,*bool) - - // Shows the partition value within the Kafka message output unless the partition type is schema-table-type. Default is false. - // +kubebuilder:validation:Optional - includePartitionValue?: null | bool @go(IncludePartitionValue,*bool) - - // Includes any data definition language (DDL) operations that change the table in the control data, such as rename-table, drop-table, add-column, drop-column, and rename-column. Default is false. - // +kubebuilder:validation:Optional - includeTableAlterOperations?: null | bool @go(IncludeTableAlterOperations,*bool) - - // Provides detailed transaction information from the source database. This information includes a commit timestamp, a log position, and values for transaction_id, previous transaction_id, and transaction_record_id (the record offset within a transaction). Default is false. - // +kubebuilder:validation:Optional - includeTransactionDetails?: null | bool @go(IncludeTransactionDetails,*bool) - - // Output format for the records created on the endpoint. Message format is JSON (default) or JSON_UNFORMATTED (a single line with no tab). - // +kubebuilder:validation:Optional - messageFormat?: null | string @go(MessageFormat,*string) - - // Maximum size in bytes for records created on the endpoint Default is 1,000,000. - // +kubebuilder:validation:Optional - messageMaxBytes?: null | float64 @go(MessageMaxBytes,*float64) - - // Set this optional parameter to true to avoid adding a '0x' prefix to raw data in hexadecimal format. For example, by default, AWS DMS adds a '0x' prefix to the LOB column type in hexadecimal format moving from an Oracle source to a Kafka target. Use the no_hex_prefix endpoint setting to enable migration of RAW data type columns without adding the '0x' prefix. - // +kubebuilder:validation:Optional - noHexPrefix?: null | bool @go(NoHexPrefix,*bool) - - // Prefixes schema and table names to partition values, when the partition type is primary-key-type. Doing this increases data distribution among Kafka partitions. For example, suppose that a SysBench schema has thousands of tables and each table has only limited range for a primary key. In this case, the same primary key is sent from thousands of tables to the same partition, which causes throttling. Default is false. - // +kubebuilder:validation:Optional - partitionIncludeSchemaTable?: null | bool @go(PartitionIncludeSchemaTable,*bool) - - // ARN for the private certificate authority (CA) cert that AWS DMS uses to securely connect to your Kafka target endpoint. - // +kubebuilder:validation:Optional - sslCaCertificateArn?: null | string @go(SSLCACertificateArn,*string) - - // ARN of the client certificate used to securely connect to a Kafka target endpoint. - // +kubebuilder:validation:Optional - sslClientCertificateArn?: null | string @go(SSLClientCertificateArn,*string) - - // ARN for the client private key used to securely connect to a Kafka target endpoint. - // +kubebuilder:validation:Optional - sslClientKeyArn?: null | string @go(SSLClientKeyArn,*string) - - // Password for the client private key used to securely connect to a Kafka target endpoint. - // +kubebuilder:validation:Optional - sslClientKeyPasswordSecretRef?: null | v1.#SecretKeySelector @go(SSLClientKeyPasswordSecretRef,*v1.SecretKeySelector) - - // Secure password you created when you first set up your MSK cluster to validate a client identity and make an encrypted connection between server and client using SASL-SSL authentication. - // +kubebuilder:validation:Optional - saslPasswordSecretRef?: null | v1.#SecretKeySelector @go(SaslPasswordSecretRef,*v1.SecretKeySelector) - - // Secure user name you created when you first set up your MSK cluster to validate a client identity and make an encrypted connection between server and client using SASL-SSL authentication. - // +kubebuilder:validation:Optional - saslUsername?: null | string @go(SaslUsername,*string) - - // Set secure connection to a Kafka target endpoint using Transport Layer Security (TLS). Options include ssl-encryption, ssl-authentication, and sasl-ssl. sasl-ssl requires sasl_username and sasl_password. - // +kubebuilder:validation:Optional - securityProtocol?: null | string @go(SecurityProtocol,*string) - - // Kafka topic for migration. Default is kafka-default-topic. - // +kubebuilder:validation:Optional - topic?: null | string @go(Topic,*string) -} - -#KinesisSettingsInitParameters: { - // Shows detailed control information for table definition, column definition, and table and column changes in the Kinesis message output. Default is false. - includeControlDetails?: null | bool @go(IncludeControlDetails,*bool) - - // Include NULL and empty columns in the target. Default is false. - includeNullAndEmpty?: null | bool @go(IncludeNullAndEmpty,*bool) - - // Shows the partition value within the Kinesis message output, unless the partition type is schema-table-type. Default is false. - includePartitionValue?: null | bool @go(IncludePartitionValue,*bool) - - // Includes any data definition language (DDL) operations that change the table in the control data. Default is false. - includeTableAlterOperations?: null | bool @go(IncludeTableAlterOperations,*bool) - - // Provides detailed transaction information from the source database. Default is false. - includeTransactionDetails?: null | bool @go(IncludeTransactionDetails,*bool) - - // Output format for the records created. Default is json. Valid values are json and json-unformatted (a single line with no tab). - messageFormat?: null | string @go(MessageFormat,*string) - - // Prefixes schema and table names to partition values, when the partition type is primary-key-type. Default is false. - partitionIncludeSchemaTable?: null | bool @go(PartitionIncludeSchemaTable,*bool) - - // ARN of the IAM Role with permissions to write to the Kinesis data stream. - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) - - // ARN of the Kinesis data stream. - streamArn?: null | string @go(StreamArn,*string) -} - -#KinesisSettingsObservation: { - // Shows detailed control information for table definition, column definition, and table and column changes in the Kinesis message output. Default is false. - includeControlDetails?: null | bool @go(IncludeControlDetails,*bool) - - // Include NULL and empty columns in the target. Default is false. - includeNullAndEmpty?: null | bool @go(IncludeNullAndEmpty,*bool) - - // Shows the partition value within the Kinesis message output, unless the partition type is schema-table-type. Default is false. - includePartitionValue?: null | bool @go(IncludePartitionValue,*bool) - - // Includes any data definition language (DDL) operations that change the table in the control data. Default is false. - includeTableAlterOperations?: null | bool @go(IncludeTableAlterOperations,*bool) - - // Provides detailed transaction information from the source database. Default is false. - includeTransactionDetails?: null | bool @go(IncludeTransactionDetails,*bool) - - // Output format for the records created. Default is json. Valid values are json and json-unformatted (a single line with no tab). - messageFormat?: null | string @go(MessageFormat,*string) - - // Prefixes schema and table names to partition values, when the partition type is primary-key-type. Default is false. - partitionIncludeSchemaTable?: null | bool @go(PartitionIncludeSchemaTable,*bool) - - // ARN of the IAM Role with permissions to write to the Kinesis data stream. - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) - - // ARN of the Kinesis data stream. - streamArn?: null | string @go(StreamArn,*string) -} - -#KinesisSettingsParameters: { - // Shows detailed control information for table definition, column definition, and table and column changes in the Kinesis message output. Default is false. - // +kubebuilder:validation:Optional - includeControlDetails?: null | bool @go(IncludeControlDetails,*bool) - - // Include NULL and empty columns in the target. Default is false. - // +kubebuilder:validation:Optional - includeNullAndEmpty?: null | bool @go(IncludeNullAndEmpty,*bool) - - // Shows the partition value within the Kinesis message output, unless the partition type is schema-table-type. Default is false. - // +kubebuilder:validation:Optional - includePartitionValue?: null | bool @go(IncludePartitionValue,*bool) - - // Includes any data definition language (DDL) operations that change the table in the control data. Default is false. - // +kubebuilder:validation:Optional - includeTableAlterOperations?: null | bool @go(IncludeTableAlterOperations,*bool) - - // Provides detailed transaction information from the source database. Default is false. - // +kubebuilder:validation:Optional - includeTransactionDetails?: null | bool @go(IncludeTransactionDetails,*bool) - - // Output format for the records created. Default is json. Valid values are json and json-unformatted (a single line with no tab). - // +kubebuilder:validation:Optional - messageFormat?: null | string @go(MessageFormat,*string) - - // Prefixes schema and table names to partition values, when the partition type is primary-key-type. Default is false. - // +kubebuilder:validation:Optional - partitionIncludeSchemaTable?: null | bool @go(PartitionIncludeSchemaTable,*bool) - - // ARN of the IAM Role with permissions to write to the Kinesis data stream. - // +kubebuilder:validation:Optional - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) - - // ARN of the Kinesis data stream. - // +kubebuilder:validation:Optional - streamArn?: null | string @go(StreamArn,*string) -} - -#MongodbSettingsInitParameters: { - // Authentication mechanism to access the MongoDB source endpoint. Default is default. - authMechanism?: null | string @go(AuthMechanism,*string) - - // Authentication database name. Not used when auth_type is no. Default is admin. - authSource?: null | string @go(AuthSource,*string) - - // Authentication type to access the MongoDB source endpoint. Default is password. - authType?: null | string @go(AuthType,*string) - - // Number of documents to preview to determine the document organization. Use this setting when nesting_level is set to one. Default is 1000. - docsToInvestigate?: null | string @go(DocsToInvestigate,*string) - - // Document ID. Use this setting when nesting_level is set to none. Default is false. - extractDocId?: null | string @go(ExtractDocID,*string) - - // Specifies either document or table mode. Default is none. Valid values are one (table mode) and none (document mode). - nestingLevel?: null | string @go(NestingLevel,*string) -} - -#MongodbSettingsObservation: { - // Authentication mechanism to access the MongoDB source endpoint. Default is default. - authMechanism?: null | string @go(AuthMechanism,*string) - - // Authentication database name. Not used when auth_type is no. Default is admin. - authSource?: null | string @go(AuthSource,*string) - - // Authentication type to access the MongoDB source endpoint. Default is password. - authType?: null | string @go(AuthType,*string) - - // Number of documents to preview to determine the document organization. Use this setting when nesting_level is set to one. Default is 1000. - docsToInvestigate?: null | string @go(DocsToInvestigate,*string) - - // Document ID. Use this setting when nesting_level is set to none. Default is false. - extractDocId?: null | string @go(ExtractDocID,*string) - - // Specifies either document or table mode. Default is none. Valid values are one (table mode) and none (document mode). - nestingLevel?: null | string @go(NestingLevel,*string) -} - -#MongodbSettingsParameters: { - // Authentication mechanism to access the MongoDB source endpoint. Default is default. - // +kubebuilder:validation:Optional - authMechanism?: null | string @go(AuthMechanism,*string) - - // Authentication database name. Not used when auth_type is no. Default is admin. - // +kubebuilder:validation:Optional - authSource?: null | string @go(AuthSource,*string) - - // Authentication type to access the MongoDB source endpoint. Default is password. - // +kubebuilder:validation:Optional - authType?: null | string @go(AuthType,*string) - - // Number of documents to preview to determine the document organization. Use this setting when nesting_level is set to one. Default is 1000. - // +kubebuilder:validation:Optional - docsToInvestigate?: null | string @go(DocsToInvestigate,*string) - - // Document ID. Use this setting when nesting_level is set to none. Default is false. - // +kubebuilder:validation:Optional - extractDocId?: null | string @go(ExtractDocID,*string) - - // Specifies either document or table mode. Default is none. Valid values are one (table mode) and none (document mode). - // +kubebuilder:validation:Optional - nestingLevel?: null | string @go(NestingLevel,*string) -} - -#RedisSettingsInitParameters: { - // Authentication type to access the MongoDB source endpoint. Default is password. - authType?: null | string @go(AuthType,*string) - - // The username provided with the auth-role option of the AuthType setting for a Redis target endpoint. - authUserName?: null | string @go(AuthUserName,*string) - - // Port used by the endpoint database. - port?: null | float64 @go(Port,*float64) - - // The Amazon Resource Name (ARN) for the certificate authority (CA) that DMS uses to connect to your Redis target endpoint. - sslCaCertificateArn?: null | string @go(SSLCACertificateArn,*string) - - // The plaintext option doesn't provide Transport Layer Security (TLS) encryption for traffic between endpoint and database. Options include plaintext, ssl-encryption. The default is ssl-encryption. - sslSecurityProtocol?: null | string @go(SSLSecurityProtocol,*string) - - // Host name of the server. - serverName?: null | string @go(ServerName,*string) -} - -#RedisSettingsObservation: { - // Authentication type to access the MongoDB source endpoint. Default is password. - authType?: null | string @go(AuthType,*string) - - // The username provided with the auth-role option of the AuthType setting for a Redis target endpoint. - authUserName?: null | string @go(AuthUserName,*string) - - // Port used by the endpoint database. - port?: null | float64 @go(Port,*float64) - - // The Amazon Resource Name (ARN) for the certificate authority (CA) that DMS uses to connect to your Redis target endpoint. - sslCaCertificateArn?: null | string @go(SSLCACertificateArn,*string) - - // The plaintext option doesn't provide Transport Layer Security (TLS) encryption for traffic between endpoint and database. Options include plaintext, ssl-encryption. The default is ssl-encryption. - sslSecurityProtocol?: null | string @go(SSLSecurityProtocol,*string) - - // Host name of the server. - serverName?: null | string @go(ServerName,*string) -} - -#RedisSettingsParameters: { - // The password provided with the auth-role and auth-token options of the AuthType setting for a Redis target endpoint. - // +kubebuilder:validation:Optional - authPasswordSecretRef?: null | v1.#SecretKeySelector @go(AuthPasswordSecretRef,*v1.SecretKeySelector) - - // Authentication type to access the MongoDB source endpoint. Default is password. - // +kubebuilder:validation:Optional - authType?: null | string @go(AuthType,*string) - - // The username provided with the auth-role option of the AuthType setting for a Redis target endpoint. - // +kubebuilder:validation:Optional - authUserName?: null | string @go(AuthUserName,*string) - - // Port used by the endpoint database. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // The Amazon Resource Name (ARN) for the certificate authority (CA) that DMS uses to connect to your Redis target endpoint. - // +kubebuilder:validation:Optional - sslCaCertificateArn?: null | string @go(SSLCACertificateArn,*string) - - // The plaintext option doesn't provide Transport Layer Security (TLS) encryption for traffic between endpoint and database. Options include plaintext, ssl-encryption. The default is ssl-encryption. - // +kubebuilder:validation:Optional - sslSecurityProtocol?: null | string @go(SSLSecurityProtocol,*string) - - // Host name of the server. - // +kubebuilder:validation:Optional - serverName?: null | string @go(ServerName,*string) -} - -#RedshiftSettingsInitParameters: { - // Custom S3 Bucket Object prefix for intermediate storage. - bucketFolder?: null | string @go(BucketFolder,*string) - - // Custom S3 Bucket name for intermediate storage. - bucketName?: null | string @go(BucketName,*string) - - // The server-side encryption mode that you want to encrypt your intermediate .csv object files copied to S3. Defaults to SSE_S3. Valid values are SSE_S3 and SSE_KMS. - encryptionMode?: null | string @go(EncryptionMode,*string) - - // ARN or Id of KMS Key to use when encryption_mode is SSE_KMS. - serverSideEncryptionKmsKeyId?: null | string @go(ServerSideEncryptionKMSKeyID,*string) - - // Amazon Resource Name (ARN) of the IAM Role with permissions to read from or write to the S3 Bucket for intermediate storage. - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) -} - -#RedshiftSettingsObservation: { - // Custom S3 Bucket Object prefix for intermediate storage. - bucketFolder?: null | string @go(BucketFolder,*string) - - // Custom S3 Bucket name for intermediate storage. - bucketName?: null | string @go(BucketName,*string) - - // The server-side encryption mode that you want to encrypt your intermediate .csv object files copied to S3. Defaults to SSE_S3. Valid values are SSE_S3 and SSE_KMS. - encryptionMode?: null | string @go(EncryptionMode,*string) - - // ARN or Id of KMS Key to use when encryption_mode is SSE_KMS. - serverSideEncryptionKmsKeyId?: null | string @go(ServerSideEncryptionKMSKeyID,*string) - - // Amazon Resource Name (ARN) of the IAM Role with permissions to read from or write to the S3 Bucket for intermediate storage. - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) -} - -#RedshiftSettingsParameters: { - // Custom S3 Bucket Object prefix for intermediate storage. - // +kubebuilder:validation:Optional - bucketFolder?: null | string @go(BucketFolder,*string) - - // Custom S3 Bucket name for intermediate storage. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // The server-side encryption mode that you want to encrypt your intermediate .csv object files copied to S3. Defaults to SSE_S3. Valid values are SSE_S3 and SSE_KMS. - // +kubebuilder:validation:Optional - encryptionMode?: null | string @go(EncryptionMode,*string) - - // ARN or Id of KMS Key to use when encryption_mode is SSE_KMS. - // +kubebuilder:validation:Optional - serverSideEncryptionKmsKeyId?: null | string @go(ServerSideEncryptionKMSKeyID,*string) - - // Amazon Resource Name (ARN) of the IAM Role with permissions to read from or write to the S3 Bucket for intermediate storage. - // +kubebuilder:validation:Optional - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) -} - -#S3SettingsInitParameters: { - // Whether to add column name information to the .csv output file. Default is false. - addColumnName?: null | bool @go(AddColumnName,*bool) - - // S3 object prefix. - bucketFolder?: null | string @go(BucketFolder,*string) - - // S3 bucket name. - bucketName?: null | string @go(BucketName,*string) - - // Predefined (canned) access control list for objects created in an S3 bucket. Valid values include none, private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, and bucket-owner-full-control. Default is none. - cannedAclForObjects?: null | string @go(CannedACLForObjects,*string) - - // Whether to write insert and update operations to .csv or .parquet output files. Default is false. - cdcInsertsAndUpdates?: null | bool @go(CdcInsertsAndUpdates,*bool) - - // Whether to write insert operations to .csv or .parquet output files. Default is false. - cdcInsertsOnly?: null | bool @go(CdcInsertsOnly,*bool) - - // Maximum length of the interval, defined in seconds, after which to output a file to Amazon S3. Default is 60. - cdcMaxBatchInterval?: null | float64 @go(CdcMaxBatchInterval,*float64) - - // Minimum file size condition as defined in kilobytes to output a file to Amazon S3. Default is 32000. NOTE: Previously, this setting was measured in megabytes but now represents kilobytes. Update configurations accordingly. - cdcMinFileSize?: null | float64 @go(CdcMinFileSize,*float64) - - // Folder path of CDC files. For an S3 source, this setting is required if a task captures change data; otherwise, it's optional. If cdc_path is set, AWS DMS reads CDC files from this path and replicates the data changes to the target endpoint. Supported in AWS DMS versions 3.4.2 and later. - cdcPath?: null | string @go(CdcPath,*string) - - // Set to compress target files. Default is NONE. Valid values are GZIP and NONE. - compressionType?: null | string @go(CompressionType,*string) - - // Delimiter used to separate columns in the source files. Default is ,. - csvDelimiter?: null | string @go(CsvDelimiter,*string) - - // String to use for all columns not included in the supplemental log. - csvNoSupValue?: null | string @go(CsvNoSupValue,*string) - - // String to as null when writing to the target. - csvNullValue?: null | string @go(CsvNullValue,*string) - - // Delimiter used to separate rows in the source files. Default is \n. - csvRowDelimiter?: null | string @go(CsvRowDelimiter,*string) - - // Output format for the files that AWS DMS uses to create S3 objects. Valid values are csv and parquet. Default is csv. - dataFormat?: null | string @go(DataFormat,*string) - - // Size of one data page in bytes. Default is 1048576 (1 MiB). - dataPageSize?: null | float64 @go(DataPageSize,*float64) - - // Date separating delimiter to use during folder partitioning. Valid values are SLASH, UNDERSCORE, DASH, and NONE. Default is SLASH. - datePartitionDelimiter?: null | string @go(DatePartitionDelimiter,*string) - - // Partition S3 bucket folders based on transaction commit dates. Default is false. - datePartitionEnabled?: null | bool @go(DatePartitionEnabled,*bool) - - // Date format to use during folder partitioning. Use this parameter when date_partition_enabled is set to true. Valid values are YYYYMMDD, YYYYMMDDHH, YYYYMM, MMYYYYDD, and DDMMYYYY. Default is YYYYMMDD. - datePartitionSequence?: null | string @go(DatePartitionSequence,*string) - - // Maximum size in bytes of an encoded dictionary page of a column. Default is 1048576 (1 MiB). - dictPageSizeLimit?: null | float64 @go(DictPageSizeLimit,*float64) - - // Whether to enable statistics for Parquet pages and row groups. Default is true. - enableStatistics?: null | bool @go(EnableStatistics,*bool) - - // Type of encoding to use. Value values are rle_dictionary, plain, and plain_dictionary. Default is rle_dictionary. - encodingType?: null | string @go(EncodingType,*string) - - // Server-side encryption mode that you want to encrypt your .csv or .parquet object files copied to S3. Valid values are SSE_S3 and SSE_KMS. Default is SSE_S3. - encryptionMode?: null | string @go(EncryptionMode,*string) - - // JSON document that describes how AWS DMS should interpret the data. - externalTableDefinition?: null | string @go(ExternalTableDefinition,*string) - - // When this value is set to 1, DMS ignores the first row header in a .csv file. Default is 0. - ignoreHeaderRows?: null | float64 @go(IgnoreHeaderRows,*float64) - - // Deprecated. This setting has no effect. Will be removed in a future version. - // This setting has no effect, is deprecated, and will be removed in a future version - ignoreHeadersRow?: null | float64 @go(IgnoreHeadersRow,*float64) - - // Whether to enable a full load to write INSERT operations to the .csv output files only to indicate how the rows were added to the source database. Default is false. - includeOpForFullLoad?: null | bool @go(IncludeOpForFullLoad,*bool) - - // Maximum size (in KB) of any .csv file to be created while migrating to an S3 target during full load. Valid values are from 1 to 1048576. Default is 1048576 (1 GB). - maxFileSize?: null | float64 @go(MaxFileSize,*float64) - - // - Specifies the precision of any TIMESTAMP column values written to an S3 object file in .parquet format. Default is false. - parquetTimestampInMillisecond?: null | bool @go(ParquetTimestampInMillisecond,*bool) - - // Version of the .parquet file format. Default is parquet-1-0. Valid values are parquet-1-0 and parquet-2-0. - parquetVersion?: null | string @go(ParquetVersion,*string) - - // Whether DMS saves the transaction order for a CDC load on the S3 target specified by cdc_path. Default is false. - preserveTransactions?: null | bool @go(PreserveTransactions,*bool) - - // For an S3 source, whether each leading double quotation mark has to be followed by an ending double quotation mark. Default is true. - rfc4180?: null | bool @go(Rfc4180,*bool) - - // Number of rows in a row group. Default is 10000. - rowGroupLength?: null | float64 @go(RowGroupLength,*float64) - - // ARN or Id of KMS Key to use when encryption_mode is SSE_KMS. - serverSideEncryptionKmsKeyId?: null | string @go(ServerSideEncryptionKMSKeyID,*string) - - // ARN of the IAM Role with permissions to read from or write to the S3 Bucket. - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) - - // Column to add with timestamp information to the endpoint data for an Amazon S3 target. - timestampColumnName?: null | string @go(TimestampColumnName,*string) - - // Whether to use csv_no_sup_value for columns not included in the supplemental log. - useCsvNoSupValue?: null | bool @go(UseCsvNoSupValue,*bool) - - // When set to true, uses the task start time as the timestamp column value instead of the time data is written to target. For full load, when set to true, each row of the timestamp column contains the task start time. For CDC loads, each row of the timestamp column contains the transaction commit time. When set to false, the full load timestamp in the timestamp column increments with the time data arrives at the target. Default is false. - useTaskStartTimeForFullLoadTimestamp?: null | bool @go(UseTaskStartTimeForFullLoadTimestamp,*bool) -} - -#S3SettingsObservation: { - // Whether to add column name information to the .csv output file. Default is false. - addColumnName?: null | bool @go(AddColumnName,*bool) - - // S3 object prefix. - bucketFolder?: null | string @go(BucketFolder,*string) - - // S3 bucket name. - bucketName?: null | string @go(BucketName,*string) - - // Predefined (canned) access control list for objects created in an S3 bucket. Valid values include none, private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, and bucket-owner-full-control. Default is none. - cannedAclForObjects?: null | string @go(CannedACLForObjects,*string) - - // Whether to write insert and update operations to .csv or .parquet output files. Default is false. - cdcInsertsAndUpdates?: null | bool @go(CdcInsertsAndUpdates,*bool) - - // Whether to write insert operations to .csv or .parquet output files. Default is false. - cdcInsertsOnly?: null | bool @go(CdcInsertsOnly,*bool) - - // Maximum length of the interval, defined in seconds, after which to output a file to Amazon S3. Default is 60. - cdcMaxBatchInterval?: null | float64 @go(CdcMaxBatchInterval,*float64) - - // Minimum file size condition as defined in kilobytes to output a file to Amazon S3. Default is 32000. NOTE: Previously, this setting was measured in megabytes but now represents kilobytes. Update configurations accordingly. - cdcMinFileSize?: null | float64 @go(CdcMinFileSize,*float64) - - // Folder path of CDC files. For an S3 source, this setting is required if a task captures change data; otherwise, it's optional. If cdc_path is set, AWS DMS reads CDC files from this path and replicates the data changes to the target endpoint. Supported in AWS DMS versions 3.4.2 and later. - cdcPath?: null | string @go(CdcPath,*string) - - // Set to compress target files. Default is NONE. Valid values are GZIP and NONE. - compressionType?: null | string @go(CompressionType,*string) - - // Delimiter used to separate columns in the source files. Default is ,. - csvDelimiter?: null | string @go(CsvDelimiter,*string) - - // String to use for all columns not included in the supplemental log. - csvNoSupValue?: null | string @go(CsvNoSupValue,*string) - - // String to as null when writing to the target. - csvNullValue?: null | string @go(CsvNullValue,*string) - - // Delimiter used to separate rows in the source files. Default is \n. - csvRowDelimiter?: null | string @go(CsvRowDelimiter,*string) - - // Output format for the files that AWS DMS uses to create S3 objects. Valid values are csv and parquet. Default is csv. - dataFormat?: null | string @go(DataFormat,*string) - - // Size of one data page in bytes. Default is 1048576 (1 MiB). - dataPageSize?: null | float64 @go(DataPageSize,*float64) - - // Date separating delimiter to use during folder partitioning. Valid values are SLASH, UNDERSCORE, DASH, and NONE. Default is SLASH. - datePartitionDelimiter?: null | string @go(DatePartitionDelimiter,*string) - - // Partition S3 bucket folders based on transaction commit dates. Default is false. - datePartitionEnabled?: null | bool @go(DatePartitionEnabled,*bool) - - // Date format to use during folder partitioning. Use this parameter when date_partition_enabled is set to true. Valid values are YYYYMMDD, YYYYMMDDHH, YYYYMM, MMYYYYDD, and DDMMYYYY. Default is YYYYMMDD. - datePartitionSequence?: null | string @go(DatePartitionSequence,*string) - - // Maximum size in bytes of an encoded dictionary page of a column. Default is 1048576 (1 MiB). - dictPageSizeLimit?: null | float64 @go(DictPageSizeLimit,*float64) - - // Whether to enable statistics for Parquet pages and row groups. Default is true. - enableStatistics?: null | bool @go(EnableStatistics,*bool) - - // Type of encoding to use. Value values are rle_dictionary, plain, and plain_dictionary. Default is rle_dictionary. - encodingType?: null | string @go(EncodingType,*string) - - // Server-side encryption mode that you want to encrypt your .csv or .parquet object files copied to S3. Valid values are SSE_S3 and SSE_KMS. Default is SSE_S3. - encryptionMode?: null | string @go(EncryptionMode,*string) - - // JSON document that describes how AWS DMS should interpret the data. - externalTableDefinition?: null | string @go(ExternalTableDefinition,*string) - - // When this value is set to 1, DMS ignores the first row header in a .csv file. Default is 0. - ignoreHeaderRows?: null | float64 @go(IgnoreHeaderRows,*float64) - - // Deprecated. This setting has no effect. Will be removed in a future version. - // This setting has no effect, is deprecated, and will be removed in a future version - ignoreHeadersRow?: null | float64 @go(IgnoreHeadersRow,*float64) - - // Whether to enable a full load to write INSERT operations to the .csv output files only to indicate how the rows were added to the source database. Default is false. - includeOpForFullLoad?: null | bool @go(IncludeOpForFullLoad,*bool) - - // Maximum size (in KB) of any .csv file to be created while migrating to an S3 target during full load. Valid values are from 1 to 1048576. Default is 1048576 (1 GB). - maxFileSize?: null | float64 @go(MaxFileSize,*float64) - - // - Specifies the precision of any TIMESTAMP column values written to an S3 object file in .parquet format. Default is false. - parquetTimestampInMillisecond?: null | bool @go(ParquetTimestampInMillisecond,*bool) - - // Version of the .parquet file format. Default is parquet-1-0. Valid values are parquet-1-0 and parquet-2-0. - parquetVersion?: null | string @go(ParquetVersion,*string) - - // Whether DMS saves the transaction order for a CDC load on the S3 target specified by cdc_path. Default is false. - preserveTransactions?: null | bool @go(PreserveTransactions,*bool) - - // For an S3 source, whether each leading double quotation mark has to be followed by an ending double quotation mark. Default is true. - rfc4180?: null | bool @go(Rfc4180,*bool) - - // Number of rows in a row group. Default is 10000. - rowGroupLength?: null | float64 @go(RowGroupLength,*float64) - - // ARN or Id of KMS Key to use when encryption_mode is SSE_KMS. - serverSideEncryptionKmsKeyId?: null | string @go(ServerSideEncryptionKMSKeyID,*string) - - // ARN of the IAM Role with permissions to read from or write to the S3 Bucket. - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) - - // Column to add with timestamp information to the endpoint data for an Amazon S3 target. - timestampColumnName?: null | string @go(TimestampColumnName,*string) - - // Whether to use csv_no_sup_value for columns not included in the supplemental log. - useCsvNoSupValue?: null | bool @go(UseCsvNoSupValue,*bool) - - // When set to true, uses the task start time as the timestamp column value instead of the time data is written to target. For full load, when set to true, each row of the timestamp column contains the task start time. For CDC loads, each row of the timestamp column contains the transaction commit time. When set to false, the full load timestamp in the timestamp column increments with the time data arrives at the target. Default is false. - useTaskStartTimeForFullLoadTimestamp?: null | bool @go(UseTaskStartTimeForFullLoadTimestamp,*bool) -} - -#S3SettingsParameters: { - // Whether to add column name information to the .csv output file. Default is false. - // +kubebuilder:validation:Optional - addColumnName?: null | bool @go(AddColumnName,*bool) - - // S3 object prefix. - // +kubebuilder:validation:Optional - bucketFolder?: null | string @go(BucketFolder,*string) - - // S3 bucket name. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Predefined (canned) access control list for objects created in an S3 bucket. Valid values include none, private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, and bucket-owner-full-control. Default is none. - // +kubebuilder:validation:Optional - cannedAclForObjects?: null | string @go(CannedACLForObjects,*string) - - // Whether to write insert and update operations to .csv or .parquet output files. Default is false. - // +kubebuilder:validation:Optional - cdcInsertsAndUpdates?: null | bool @go(CdcInsertsAndUpdates,*bool) - - // Whether to write insert operations to .csv or .parquet output files. Default is false. - // +kubebuilder:validation:Optional - cdcInsertsOnly?: null | bool @go(CdcInsertsOnly,*bool) - - // Maximum length of the interval, defined in seconds, after which to output a file to Amazon S3. Default is 60. - // +kubebuilder:validation:Optional - cdcMaxBatchInterval?: null | float64 @go(CdcMaxBatchInterval,*float64) - - // Minimum file size condition as defined in kilobytes to output a file to Amazon S3. Default is 32000. NOTE: Previously, this setting was measured in megabytes but now represents kilobytes. Update configurations accordingly. - // +kubebuilder:validation:Optional - cdcMinFileSize?: null | float64 @go(CdcMinFileSize,*float64) - - // Folder path of CDC files. For an S3 source, this setting is required if a task captures change data; otherwise, it's optional. If cdc_path is set, AWS DMS reads CDC files from this path and replicates the data changes to the target endpoint. Supported in AWS DMS versions 3.4.2 and later. - // +kubebuilder:validation:Optional - cdcPath?: null | string @go(CdcPath,*string) - - // Set to compress target files. Default is NONE. Valid values are GZIP and NONE. - // +kubebuilder:validation:Optional - compressionType?: null | string @go(CompressionType,*string) - - // Delimiter used to separate columns in the source files. Default is ,. - // +kubebuilder:validation:Optional - csvDelimiter?: null | string @go(CsvDelimiter,*string) - - // String to use for all columns not included in the supplemental log. - // +kubebuilder:validation:Optional - csvNoSupValue?: null | string @go(CsvNoSupValue,*string) - - // String to as null when writing to the target. - // +kubebuilder:validation:Optional - csvNullValue?: null | string @go(CsvNullValue,*string) - - // Delimiter used to separate rows in the source files. Default is \n. - // +kubebuilder:validation:Optional - csvRowDelimiter?: null | string @go(CsvRowDelimiter,*string) - - // Output format for the files that AWS DMS uses to create S3 objects. Valid values are csv and parquet. Default is csv. - // +kubebuilder:validation:Optional - dataFormat?: null | string @go(DataFormat,*string) - - // Size of one data page in bytes. Default is 1048576 (1 MiB). - // +kubebuilder:validation:Optional - dataPageSize?: null | float64 @go(DataPageSize,*float64) - - // Date separating delimiter to use during folder partitioning. Valid values are SLASH, UNDERSCORE, DASH, and NONE. Default is SLASH. - // +kubebuilder:validation:Optional - datePartitionDelimiter?: null | string @go(DatePartitionDelimiter,*string) - - // Partition S3 bucket folders based on transaction commit dates. Default is false. - // +kubebuilder:validation:Optional - datePartitionEnabled?: null | bool @go(DatePartitionEnabled,*bool) - - // Date format to use during folder partitioning. Use this parameter when date_partition_enabled is set to true. Valid values are YYYYMMDD, YYYYMMDDHH, YYYYMM, MMYYYYDD, and DDMMYYYY. Default is YYYYMMDD. - // +kubebuilder:validation:Optional - datePartitionSequence?: null | string @go(DatePartitionSequence,*string) - - // Maximum size in bytes of an encoded dictionary page of a column. Default is 1048576 (1 MiB). - // +kubebuilder:validation:Optional - dictPageSizeLimit?: null | float64 @go(DictPageSizeLimit,*float64) - - // Whether to enable statistics for Parquet pages and row groups. Default is true. - // +kubebuilder:validation:Optional - enableStatistics?: null | bool @go(EnableStatistics,*bool) - - // Type of encoding to use. Value values are rle_dictionary, plain, and plain_dictionary. Default is rle_dictionary. - // +kubebuilder:validation:Optional - encodingType?: null | string @go(EncodingType,*string) - - // Server-side encryption mode that you want to encrypt your .csv or .parquet object files copied to S3. Valid values are SSE_S3 and SSE_KMS. Default is SSE_S3. - // +kubebuilder:validation:Optional - encryptionMode?: null | string @go(EncryptionMode,*string) - - // JSON document that describes how AWS DMS should interpret the data. - // +kubebuilder:validation:Optional - externalTableDefinition?: null | string @go(ExternalTableDefinition,*string) - - // When this value is set to 1, DMS ignores the first row header in a .csv file. Default is 0. - // +kubebuilder:validation:Optional - ignoreHeaderRows?: null | float64 @go(IgnoreHeaderRows,*float64) - - // Deprecated. This setting has no effect. Will be removed in a future version. - // This setting has no effect, is deprecated, and will be removed in a future version - // +kubebuilder:validation:Optional - ignoreHeadersRow?: null | float64 @go(IgnoreHeadersRow,*float64) - - // Whether to enable a full load to write INSERT operations to the .csv output files only to indicate how the rows were added to the source database. Default is false. - // +kubebuilder:validation:Optional - includeOpForFullLoad?: null | bool @go(IncludeOpForFullLoad,*bool) - - // Maximum size (in KB) of any .csv file to be created while migrating to an S3 target during full load. Valid values are from 1 to 1048576. Default is 1048576 (1 GB). - // +kubebuilder:validation:Optional - maxFileSize?: null | float64 @go(MaxFileSize,*float64) - - // - Specifies the precision of any TIMESTAMP column values written to an S3 object file in .parquet format. Default is false. - // +kubebuilder:validation:Optional - parquetTimestampInMillisecond?: null | bool @go(ParquetTimestampInMillisecond,*bool) - - // Version of the .parquet file format. Default is parquet-1-0. Valid values are parquet-1-0 and parquet-2-0. - // +kubebuilder:validation:Optional - parquetVersion?: null | string @go(ParquetVersion,*string) - - // Whether DMS saves the transaction order for a CDC load on the S3 target specified by cdc_path. Default is false. - // +kubebuilder:validation:Optional - preserveTransactions?: null | bool @go(PreserveTransactions,*bool) - - // For an S3 source, whether each leading double quotation mark has to be followed by an ending double quotation mark. Default is true. - // +kubebuilder:validation:Optional - rfc4180?: null | bool @go(Rfc4180,*bool) - - // Number of rows in a row group. Default is 10000. - // +kubebuilder:validation:Optional - rowGroupLength?: null | float64 @go(RowGroupLength,*float64) - - // ARN or Id of KMS Key to use when encryption_mode is SSE_KMS. - // +kubebuilder:validation:Optional - serverSideEncryptionKmsKeyId?: null | string @go(ServerSideEncryptionKMSKeyID,*string) - - // ARN of the IAM Role with permissions to read from or write to the S3 Bucket. - // +kubebuilder:validation:Optional - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) - - // Column to add with timestamp information to the endpoint data for an Amazon S3 target. - // +kubebuilder:validation:Optional - timestampColumnName?: null | string @go(TimestampColumnName,*string) - - // Whether to use csv_no_sup_value for columns not included in the supplemental log. - // +kubebuilder:validation:Optional - useCsvNoSupValue?: null | bool @go(UseCsvNoSupValue,*bool) - - // When set to true, uses the task start time as the timestamp column value instead of the time data is written to target. For full load, when set to true, each row of the timestamp column contains the task start time. For CDC loads, each row of the timestamp column contains the transaction commit time. When set to false, the full load timestamp in the timestamp column increments with the time data arrives at the target. Default is false. - // +kubebuilder:validation:Optional - useTaskStartTimeForFullLoadTimestamp?: null | bool @go(UseTaskStartTimeForFullLoadTimestamp,*bool) -} - -// EndpointSpec defines the desired state of Endpoint -#EndpointSpec: { - v1.#ResourceSpec - forProvider: #EndpointParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EndpointInitParameters @go(InitProvider) -} - -// EndpointStatus defines the observed state of Endpoint. -#EndpointStatus: { - v1.#ResourceStatus - atProvider?: #EndpointObservation @go(AtProvider) -} - -// Endpoint is the Schema for the Endpoints API. Provides a DMS (Data Migration Service) endpoint resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Endpoint: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.endpointType) || (has(self.initProvider) && has(self.initProvider.endpointType))",message="spec.forProvider.endpointType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.engineName) || (has(self.initProvider) && has(self.initProvider.engineName))",message="spec.forProvider.engineName is a required parameter" - spec: #EndpointSpec @go(Spec) - status?: #EndpointStatus @go(Status) -} - -// EndpointList contains a list of Endpoints -#EndpointList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Endpoint] @go(Items,[]Endpoint) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_eventsubscription_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_eventsubscription_types_go_gen.cue deleted file mode 100644 index 5f63d8d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_eventsubscription_types_go_gen.cue +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EventSubscriptionInitParameters: { - // Whether the event subscription should be enabled. - enabled?: null | bool @go(Enabled,*bool) - - // List of event categories to listen for, see DescribeEventCategories for a canonical list. - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // Ids of sources to listen to. - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // Type of source for events. Valid values: replication-instance or replication-task - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EventSubscriptionObservation: { - // Amazon Resource Name (ARN) of the DMS Event Subscription. - arn?: null | string @go(Arn,*string) - - // Whether the event subscription should be enabled. - enabled?: null | bool @go(Enabled,*bool) - - // List of event categories to listen for, see DescribeEventCategories for a canonical list. - eventCategories?: [...null | string] @go(EventCategories,[]*string) - id?: null | string @go(ID,*string) - - // SNS topic arn to send events on. - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // Ids of sources to listen to. - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // Type of source for events. Valid values: replication-instance or replication-task - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#EventSubscriptionParameters: { - // Whether the event subscription should be enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // List of event categories to listen for, see DescribeEventCategories for a canonical list. - // +kubebuilder:validation:Optional - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // SNS topic arn to send events on. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // Reference to a Topic in sns to populate snsTopicArn. - // +kubebuilder:validation:Optional - snsTopicArnRef?: null | v1.#Reference @go(SnsTopicArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate snsTopicArn. - // +kubebuilder:validation:Optional - snsTopicArnSelector?: null | v1.#Selector @go(SnsTopicArnSelector,*v1.Selector) - - // Ids of sources to listen to. - // +kubebuilder:validation:Optional - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // Type of source for events. Valid values: replication-instance or replication-task - // +kubebuilder:validation:Optional - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// EventSubscriptionSpec defines the desired state of EventSubscription -#EventSubscriptionSpec: { - v1.#ResourceSpec - forProvider: #EventSubscriptionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EventSubscriptionInitParameters @go(InitProvider) -} - -// EventSubscriptionStatus defines the observed state of EventSubscription. -#EventSubscriptionStatus: { - v1.#ResourceStatus - atProvider?: #EventSubscriptionObservation @go(AtProvider) -} - -// EventSubscription is the Schema for the EventSubscriptions API. Provides a DMS (Data Migration Service) event subscription resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EventSubscription: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.eventCategories) || (has(self.initProvider) && has(self.initProvider.eventCategories))",message="spec.forProvider.eventCategories is a required parameter" - spec: #EventSubscriptionSpec @go(Spec) - status?: #EventSubscriptionStatus @go(Status) -} - -// EventSubscriptionList contains a list of EventSubscriptions -#EventSubscriptionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EventSubscription] @go(Items,[]EventSubscription) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index e9fead1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dms/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=dms.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "dms.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_replicationinstance_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_replicationinstance_types_go_gen.cue deleted file mode 100644 index 5cbe0dc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_replicationinstance_types_go_gen.cue +++ /dev/null @@ -1,242 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ReplicationInstanceInitParameters: { - // The amount of storage (in gigabytes) to be initially allocated for the replication instance. - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // Indicates that major version upgrades are allowed. - allowMajorVersionUpgrade?: null | bool @go(AllowMajorVersionUpgrade,*bool) - - // Indicates whether the changes should be applied immediately or during the next maintenance window. Only used when updating an existing resource. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The EC2 Availability Zone that the replication instance will be created in. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The engine version number of the replication instance. - engineVersion?: null | string @go(EngineVersion,*string) - - // Specifies if the replication instance is a multi-az deployment. You cannot set the availability_zone parameter if the multi_az parameter is set to true. - multiAz?: null | bool @go(MultiAz,*bool) - - // The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // The compute and memory capacity of the replication instance as specified by the replication instance class. See AWS DMS User Guide for available instance sizes and advice on which one to choose. - replicationInstanceClass?: null | string @go(ReplicationInstanceClass,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ReplicationInstanceObservation: { - // The amount of storage (in gigabytes) to be initially allocated for the replication instance. - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // Indicates that major version upgrades are allowed. - allowMajorVersionUpgrade?: null | bool @go(AllowMajorVersionUpgrade,*bool) - - // Indicates whether the changes should be applied immediately or during the next maintenance window. Only used when updating an existing resource. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The EC2 Availability Zone that the replication instance will be created in. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The engine version number of the replication instance. - engineVersion?: null | string @go(EngineVersion,*string) - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) for the KMS key that will be used to encrypt the connection parameters. If you do not specify a value for kms_key_arn, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Specifies if the replication instance is a multi-az deployment. You cannot set the availability_zone parameter if the multi_az parameter is set to true. - multiAz?: null | bool @go(MultiAz,*bool) - - // The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // The Amazon Resource Name (ARN) of the replication instance. - replicationInstanceArn?: null | string @go(ReplicationInstanceArn,*string) - - // The compute and memory capacity of the replication instance as specified by the replication instance class. See AWS DMS User Guide for available instance sizes and advice on which one to choose. - replicationInstanceClass?: null | string @go(ReplicationInstanceClass,*string) - - // A list of the private IP addresses of the replication instance. - replicationInstancePrivateIps?: [...null | string] @go(ReplicationInstancePrivateIps,[]*string) - - // A list of the public IP addresses of the replication instance. - replicationInstancePublicIps?: [...null | string] @go(ReplicationInstancePublicIps,[]*string) - - // A subnet group to associate with the replication instance. - replicationSubnetGroupId?: null | string @go(ReplicationSubnetGroupID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // A list of VPC security group IDs to be used with the replication instance. The VPC security groups must work with the VPC containing the replication instance. - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -#ReplicationInstanceParameters: { - // The amount of storage (in gigabytes) to be initially allocated for the replication instance. - // +kubebuilder:validation:Optional - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // Indicates that major version upgrades are allowed. - // +kubebuilder:validation:Optional - allowMajorVersionUpgrade?: null | bool @go(AllowMajorVersionUpgrade,*bool) - - // Indicates whether the changes should be applied immediately or during the next maintenance window. Only used when updating an existing resource. - // +kubebuilder:validation:Optional - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window. - // +kubebuilder:validation:Optional - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The EC2 Availability Zone that the replication instance will be created in. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The engine version number of the replication instance. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // The Amazon Resource Name (ARN) for the KMS key that will be used to encrypt the connection parameters. If you do not specify a value for kms_key_arn, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) - - // Specifies if the replication instance is a multi-az deployment. You cannot set the availability_zone parameter if the multi_az parameter is set to true. - // +kubebuilder:validation:Optional - multiAz?: null | bool @go(MultiAz,*bool) - - // The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). - // +kubebuilder:validation:Optional - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address. - // +kubebuilder:validation:Optional - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The compute and memory capacity of the replication instance as specified by the replication instance class. See AWS DMS User Guide for available instance sizes and advice on which one to choose. - // +kubebuilder:validation:Optional - replicationInstanceClass?: null | string @go(ReplicationInstanceClass,*string) - - // A subnet group to associate with the replication instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/dms/v1beta1.ReplicationSubnetGroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - replicationSubnetGroupId?: null | string @go(ReplicationSubnetGroupID,*string) - - // Reference to a ReplicationSubnetGroup in dms to populate replicationSubnetGroupId. - // +kubebuilder:validation:Optional - replicationSubnetGroupIdRef?: null | v1.#Reference @go(ReplicationSubnetGroupIDRef,*v1.Reference) - - // Selector for a ReplicationSubnetGroup in dms to populate replicationSubnetGroupId. - // +kubebuilder:validation:Optional - replicationSubnetGroupIdSelector?: null | v1.#Selector @go(ReplicationSubnetGroupIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // References to SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdRefs?: [...v1.#Reference] @go(VPCSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdSelector?: null | v1.#Selector @go(VPCSecurityGroupIDSelector,*v1.Selector) - - // A list of VPC security group IDs to be used with the replication instance. The VPC security groups must work with the VPC containing the replication instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -// ReplicationInstanceSpec defines the desired state of ReplicationInstance -#ReplicationInstanceSpec: { - v1.#ResourceSpec - forProvider: #ReplicationInstanceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReplicationInstanceInitParameters @go(InitProvider) -} - -// ReplicationInstanceStatus defines the observed state of ReplicationInstance. -#ReplicationInstanceStatus: { - v1.#ResourceStatus - atProvider?: #ReplicationInstanceObservation @go(AtProvider) -} - -// ReplicationInstance is the Schema for the ReplicationInstances API. Provides a DMS (Data Migration Service) replication instance resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReplicationInstance: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.replicationInstanceClass) || (has(self.initProvider) && has(self.initProvider.replicationInstanceClass))",message="spec.forProvider.replicationInstanceClass is a required parameter" - spec: #ReplicationInstanceSpec @go(Spec) - status?: #ReplicationInstanceStatus @go(Status) -} - -// ReplicationInstanceList contains a list of ReplicationInstances -#ReplicationInstanceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReplicationInstance] @go(Items,[]ReplicationInstance) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_replicationsubnetgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_replicationsubnetgroup_types_go_gen.cue deleted file mode 100644 index ba2f15f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_replicationsubnetgroup_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ReplicationSubnetGroupInitParameters: { - // Description for the subnet group. - replicationSubnetGroupDescription?: null | string @go(ReplicationSubnetGroupDescription,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ReplicationSubnetGroupObservation: { - id?: null | string @go(ID,*string) - replicationSubnetGroupArn?: null | string @go(ReplicationSubnetGroupArn,*string) - - // Description for the subnet group. - replicationSubnetGroupDescription?: null | string @go(ReplicationSubnetGroupDescription,*string) - - // List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the VPC the subnet group is in. - vpcId?: null | string @go(VPCID,*string) -} - -#ReplicationSubnetGroupParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Description for the subnet group. - // +kubebuilder:validation:Optional - replicationSubnetGroupDescription?: null | string @go(ReplicationSubnetGroupDescription,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ReplicationSubnetGroupSpec defines the desired state of ReplicationSubnetGroup -#ReplicationSubnetGroupSpec: { - v1.#ResourceSpec - forProvider: #ReplicationSubnetGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReplicationSubnetGroupInitParameters @go(InitProvider) -} - -// ReplicationSubnetGroupStatus defines the observed state of ReplicationSubnetGroup. -#ReplicationSubnetGroupStatus: { - v1.#ResourceStatus - atProvider?: #ReplicationSubnetGroupObservation @go(AtProvider) -} - -// ReplicationSubnetGroup is the Schema for the ReplicationSubnetGroups API. Provides a DMS (Data Migration Service) subnet group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReplicationSubnetGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.replicationSubnetGroupDescription) || (has(self.initProvider) && has(self.initProvider.replicationSubnetGroupDescription))",message="spec.forProvider.replicationSubnetGroupDescription is a required parameter" - spec: #ReplicationSubnetGroupSpec @go(Spec) - status?: #ReplicationSubnetGroupStatus @go(Status) -} - -// ReplicationSubnetGroupList contains a list of ReplicationSubnetGroups -#ReplicationSubnetGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReplicationSubnetGroup] @go(Items,[]ReplicationSubnetGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_replicationtask_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_replicationtask_types_go_gen.cue deleted file mode 100644 index fa14ee2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_replicationtask_types_go_gen.cue +++ /dev/null @@ -1,200 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ReplicationTaskInitParameters: { - // Indicates when you want a change data capture (CDC) operation to start. The value can be in date, checkpoint, or LSN/SCN format depending on the source engine. For more information, see Determining a CDC native start point. - cdcStartPosition?: null | string @go(CdcStartPosition,*string) - - // The Unix timestamp integer for the start of the Change Data Capture (CDC) operation. - cdcStartTime?: null | string @go(CdcStartTime,*string) - - // The migration type. Can be one of full-load | cdc | full-load-and-cdc. - migrationType?: null | string @go(MigrationType,*string) - - // An escaped JSON string that contains the task settings. For a complete list of task settings, see Task Settings for AWS Database Migration Service Tasks. - replicationTaskSettings?: null | string @go(ReplicationTaskSettings,*string) - - // Whether to run or stop the replication task. - startReplicationTask?: null | bool @go(StartReplicationTask,*bool) - - // An escaped JSON string that contains the table mappings. For information on table mapping see Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data - tableMappings?: null | string @go(TableMappings,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ReplicationTaskObservation: { - // Indicates when you want a change data capture (CDC) operation to start. The value can be in date, checkpoint, or LSN/SCN format depending on the source engine. For more information, see Determining a CDC native start point. - cdcStartPosition?: null | string @go(CdcStartPosition,*string) - - // The Unix timestamp integer for the start of the Change Data Capture (CDC) operation. - cdcStartTime?: null | string @go(CdcStartTime,*string) - id?: null | string @go(ID,*string) - - // The migration type. Can be one of full-load | cdc | full-load-and-cdc. - migrationType?: null | string @go(MigrationType,*string) - - // The Amazon Resource Name (ARN) of the replication instance. - replicationInstanceArn?: null | string @go(ReplicationInstanceArn,*string) - - // The Amazon Resource Name (ARN) for the replication task. - replicationTaskArn?: null | string @go(ReplicationTaskArn,*string) - - // An escaped JSON string that contains the task settings. For a complete list of task settings, see Task Settings for AWS Database Migration Service Tasks. - replicationTaskSettings?: null | string @go(ReplicationTaskSettings,*string) - - // The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. - sourceEndpointArn?: null | string @go(SourceEndpointArn,*string) - - // Whether to run or stop the replication task. - startReplicationTask?: null | bool @go(StartReplicationTask,*bool) - - // Replication Task status. - status?: null | string @go(Status,*string) - - // An escaped JSON string that contains the table mappings. For information on table mapping see Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data - tableMappings?: null | string @go(TableMappings,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. - targetEndpointArn?: null | string @go(TargetEndpointArn,*string) -} - -#ReplicationTaskParameters: { - // Indicates when you want a change data capture (CDC) operation to start. The value can be in date, checkpoint, or LSN/SCN format depending on the source engine. For more information, see Determining a CDC native start point. - // +kubebuilder:validation:Optional - cdcStartPosition?: null | string @go(CdcStartPosition,*string) - - // The Unix timestamp integer for the start of the Change Data Capture (CDC) operation. - // +kubebuilder:validation:Optional - cdcStartTime?: null | string @go(CdcStartTime,*string) - - // The migration type. Can be one of full-load | cdc | full-load-and-cdc. - // +kubebuilder:validation:Optional - migrationType?: null | string @go(MigrationType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of the replication instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/dms/v1beta1.ReplicationInstance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("replication_instance_arn",true) - // +kubebuilder:validation:Optional - replicationInstanceArn?: null | string @go(ReplicationInstanceArn,*string) - - // Reference to a ReplicationInstance in dms to populate replicationInstanceArn. - // +kubebuilder:validation:Optional - replicationInstanceArnRef?: null | v1.#Reference @go(ReplicationInstanceArnRef,*v1.Reference) - - // Selector for a ReplicationInstance in dms to populate replicationInstanceArn. - // +kubebuilder:validation:Optional - replicationInstanceArnSelector?: null | v1.#Selector @go(ReplicationInstanceArnSelector,*v1.Selector) - - // An escaped JSON string that contains the task settings. For a complete list of task settings, see Task Settings for AWS Database Migration Service Tasks. - // +kubebuilder:validation:Optional - replicationTaskSettings?: null | string @go(ReplicationTaskSettings,*string) - - // The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/dms/v1beta1.Endpoint - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("endpoint_arn",true) - // +kubebuilder:validation:Optional - sourceEndpointArn?: null | string @go(SourceEndpointArn,*string) - - // Reference to a Endpoint in dms to populate sourceEndpointArn. - // +kubebuilder:validation:Optional - sourceEndpointArnRef?: null | v1.#Reference @go(SourceEndpointArnRef,*v1.Reference) - - // Selector for a Endpoint in dms to populate sourceEndpointArn. - // +kubebuilder:validation:Optional - sourceEndpointArnSelector?: null | v1.#Selector @go(SourceEndpointArnSelector,*v1.Selector) - - // Whether to run or stop the replication task. - // +kubebuilder:validation:Optional - startReplicationTask?: null | bool @go(StartReplicationTask,*bool) - - // An escaped JSON string that contains the table mappings. For information on table mapping see Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data - // +kubebuilder:validation:Optional - tableMappings?: null | string @go(TableMappings,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/dms/v1beta1.Endpoint - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("endpoint_arn",true) - // +kubebuilder:validation:Optional - targetEndpointArn?: null | string @go(TargetEndpointArn,*string) - - // Reference to a Endpoint in dms to populate targetEndpointArn. - // +kubebuilder:validation:Optional - targetEndpointArnRef?: null | v1.#Reference @go(TargetEndpointArnRef,*v1.Reference) - - // Selector for a Endpoint in dms to populate targetEndpointArn. - // +kubebuilder:validation:Optional - targetEndpointArnSelector?: null | v1.#Selector @go(TargetEndpointArnSelector,*v1.Selector) -} - -// ReplicationTaskSpec defines the desired state of ReplicationTask -#ReplicationTaskSpec: { - v1.#ResourceSpec - forProvider: #ReplicationTaskParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReplicationTaskInitParameters @go(InitProvider) -} - -// ReplicationTaskStatus defines the observed state of ReplicationTask. -#ReplicationTaskStatus: { - v1.#ResourceStatus - atProvider?: #ReplicationTaskObservation @go(AtProvider) -} - -// ReplicationTask is the Schema for the ReplicationTasks API. Provides a DMS (Data Migration Service) replication task resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReplicationTask: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.migrationType) || (has(self.initProvider) && has(self.initProvider.migrationType))",message="spec.forProvider.migrationType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.tableMappings) || (has(self.initProvider) && has(self.initProvider.tableMappings))",message="spec.forProvider.tableMappings is a required parameter" - spec: #ReplicationTaskSpec @go(Spec) - status?: #ReplicationTaskStatus @go(Status) -} - -// ReplicationTaskList contains a list of ReplicationTasks -#ReplicationTaskList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReplicationTask] @go(Items,[]ReplicationTask) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_s3endpoint_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_s3endpoint_types_go_gen.cue deleted file mode 100644 index e154e0b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dms/v1beta1/zz_s3endpoint_types_go_gen.cue +++ /dev/null @@ -1,565 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#S3EndpointInitParameters: { - // Whether to add column name information to the .csv output file. Default is false. - addColumnName?: null | bool @go(AddColumnName,*bool) - - // Whether to add padding. Default is false. (Ignored for source endpoints.) - addTrailingPaddingCharacter?: null | bool @go(AddTrailingPaddingCharacter,*bool) - - // S3 object prefix. - bucketFolder?: null | string @go(BucketFolder,*string) - - // S3 bucket name. - bucketName?: null | string @go(BucketName,*string) - - // Predefined (canned) access control list for objects created in an S3 bucket. Valid values include none, private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, and bucket-owner-full-control. Default is none. - cannedAclForObjects?: null | string @go(CannedACLForObjects,*string) - - // Whether to write insert and update operations to .csv or .parquet output files. Default is false. - cdcInsertsAndUpdates?: null | bool @go(CdcInsertsAndUpdates,*bool) - - // Whether to write insert operations to .csv or .parquet output files. Default is false. - cdcInsertsOnly?: null | bool @go(CdcInsertsOnly,*bool) - - // Maximum length of the interval, defined in seconds, after which to output a file to Amazon S3. (AWS default is 60.) - cdcMaxBatchInterval?: null | float64 @go(CdcMaxBatchInterval,*float64) - - // Minimum file size condition as defined in kilobytes to output a file to Amazon S3. (AWS default is 32000 KB.) - cdcMinFileSize?: null | float64 @go(CdcMinFileSize,*float64) - - // Folder path of CDC files. If cdc_path is set, AWS DMS reads CDC files from this path and replicates the data changes to the target endpoint. Supported in AWS DMS versions 3.4.2 and later. - cdcPath?: null | string @go(CdcPath,*string) - - // ARN for the certificate. - certificateArn?: null | string @go(CertificateArn,*string) - - // Set to compress target files. Valid values are GZIP and NONE. Default is NONE. (Ignored for source endpoints.) - compressionType?: null | string @go(CompressionType,*string) - - // Delimiter used to separate columns in the source files. Default is ,. - csvDelimiter?: null | string @go(CsvDelimiter,*string) - - // Only applies if output files for a CDC load are written in .csv format. If use_csv_no_sup_value is set to true, string to use for all columns not included in the supplemental log. If you do not specify a string value, DMS uses the null value for these columns regardless of use_csv_no_sup_value. (Ignored for source endpoints.) - csvNoSupValue?: null | string @go(CsvNoSupValue,*string) - - // String to as null when writing to the target. (AWS default is NULL.) - csvNullValue?: null | string @go(CsvNullValue,*string) - - // Delimiter used to separate rows in the source files. Default is newline (i.e., \n). - csvRowDelimiter?: null | string @go(CsvRowDelimiter,*string) - - // Output format for the files that AWS DMS uses to create S3 objects. Valid values are csv and parquet. (Ignored for source endpoints -- only csv is valid.) - dataFormat?: null | string @go(DataFormat,*string) - - // Size of one data page in bytes. (AWS default is 1 MiB, i.e., 1048576.) - dataPageSize?: null | float64 @go(DataPageSize,*float64) - - // Date separating delimiter to use during folder partitioning. Valid values are SLASH, UNDERSCORE, DASH, and NONE. (AWS default is SLASH.) (Ignored for source endpoints.) - datePartitionDelimiter?: null | string @go(DatePartitionDelimiter,*string) - - // Partition S3 bucket folders based on transaction commit dates. Default is false. (Ignored for source endpoints.) - datePartitionEnabled?: null | bool @go(DatePartitionEnabled,*bool) - - // Date format to use during folder partitioning. Use this parameter when date_partition_enabled is set to true. Valid values are YYYYMMDD, YYYYMMDDHH, YYYYMM, MMYYYYDD, and DDMMYYYY. (AWS default is YYYYMMDD.) (Ignored for source endpoints.) - datePartitionSequence?: null | string @go(DatePartitionSequence,*string) - - // Convert the current UTC time to a timezone. The conversion occurs when a date partition folder is created and a CDC filename is generated. The timezone format is Area/Location (e.g., Europe/Paris). Use this when date_partition_enabled is true. (Ignored for source endpoints.) - datePartitionTimezone?: null | string @go(DatePartitionTimezone,*string) - - // Undocumented argument for use as directed by AWS Support. - detachTargetOnLobLookupFailureParquet?: null | bool @go(DetachTargetOnLobLookupFailureParquet,*bool) - - // Maximum size in bytes of an encoded dictionary page of a column. (AWS default is 1 MiB, i.e., 1048576.) - dictPageSizeLimit?: null | float64 @go(DictPageSizeLimit,*float64) - - // Whether to enable statistics for Parquet pages and row groups. Default is true. - enableStatistics?: null | bool @go(EnableStatistics,*bool) - - // Type of encoding to use. Value values are rle_dictionary, plain, and plain_dictionary. (AWS default is rle_dictionary.) - encodingType?: null | string @go(EncodingType,*string) - - // Server-side encryption mode that you want to encrypt your .csv or .parquet object files copied to S3. Valid values are SSE_S3 and SSE_KMS. (AWS default is SSE_S3.) (Ignored for source endpoints -- only SSE_S3 is valid.) - encryptionMode?: null | string @go(EncryptionMode,*string) - - // Type of endpoint. Valid values are source, target. - endpointType?: null | string @go(EndpointType,*string) - - // Bucket owner to prevent sniping. Value is an AWS account ID. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // JSON document that describes how AWS DMS should interpret the data. - externalTableDefinition?: null | string @go(ExternalTableDefinition,*string) - - // When this value is set to 1, DMS ignores the first row header in a .csv file. (AWS default is 0.) - ignoreHeaderRows?: null | float64 @go(IgnoreHeaderRows,*float64) - - // Whether to enable a full load to write INSERT operations to the .csv output files only to indicate how the rows were added to the source database. Default is false. - includeOpForFullLoad?: null | bool @go(IncludeOpForFullLoad,*bool) - - // Maximum size (in KB) of any .csv file to be created while migrating to an S3 target during full load. Valid values are from 1 to 1048576. (AWS default is 1 GB, i.e., 1048576.) - maxFileSize?: null | float64 @go(MaxFileSize,*float64) - - // - Specifies the precision of any TIMESTAMP column values written to an S3 object file in .parquet format. Default is false. (Ignored for source endpoints.) - parquetTimestampInMillisecond?: null | bool @go(ParquetTimestampInMillisecond,*bool) - - // Version of the .parquet file format. Valid values are parquet-1-0 and parquet-2-0. (AWS default is parquet-1-0.) (Ignored for source endpoints.) - parquetVersion?: null | string @go(ParquetVersion,*string) - - // Whether DMS saves the transaction order for a CDC load on the S3 target specified by cdc_path. Default is false. (Ignored for source endpoints.) - preserveTransactions?: null | bool @go(PreserveTransactions,*bool) - - // For an S3 source, whether each leading double quotation mark has to be followed by an ending double quotation mark. Default is true. - rfc4180?: null | bool @go(Rfc4180,*bool) - - // Number of rows in a row group. (AWS default is 10000.) - rowGroupLength?: null | float64 @go(RowGroupLength,*float64) - - // SSL mode to use for the connection. Valid values are none, require, verify-ca, verify-full. (AWS default is none.) - sslMode?: null | string @go(SSLMode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Column to add with timestamp information to the endpoint data for an Amazon S3 target. - timestampColumnName?: null | string @go(TimestampColumnName,*string) - - // Whether to use csv_no_sup_value for columns not included in the supplemental log. (Ignored for source endpoints.) - useCsvNoSupValue?: null | bool @go(UseCsvNoSupValue,*bool) - - // When set to true, uses the task start time as the timestamp column value instead of the time data is written to target. For full load, when set to true, each row of the timestamp column contains the task start time. For CDC loads, each row of the timestamp column contains the transaction commit time.When set to false, the full load timestamp in the timestamp column increments with the time data arrives at the target. Default is false. - useTaskStartTimeForFullLoadTimestamp?: null | bool @go(UseTaskStartTimeForFullLoadTimestamp,*bool) -} - -#S3EndpointObservation: { - // Whether to add column name information to the .csv output file. Default is false. - addColumnName?: null | bool @go(AddColumnName,*bool) - - // Whether to add padding. Default is false. (Ignored for source endpoints.) - addTrailingPaddingCharacter?: null | bool @go(AddTrailingPaddingCharacter,*bool) - - // S3 object prefix. - bucketFolder?: null | string @go(BucketFolder,*string) - - // S3 bucket name. - bucketName?: null | string @go(BucketName,*string) - - // Predefined (canned) access control list for objects created in an S3 bucket. Valid values include none, private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, and bucket-owner-full-control. Default is none. - cannedAclForObjects?: null | string @go(CannedACLForObjects,*string) - - // Whether to write insert and update operations to .csv or .parquet output files. Default is false. - cdcInsertsAndUpdates?: null | bool @go(CdcInsertsAndUpdates,*bool) - - // Whether to write insert operations to .csv or .parquet output files. Default is false. - cdcInsertsOnly?: null | bool @go(CdcInsertsOnly,*bool) - - // Maximum length of the interval, defined in seconds, after which to output a file to Amazon S3. (AWS default is 60.) - cdcMaxBatchInterval?: null | float64 @go(CdcMaxBatchInterval,*float64) - - // Minimum file size condition as defined in kilobytes to output a file to Amazon S3. (AWS default is 32000 KB.) - cdcMinFileSize?: null | float64 @go(CdcMinFileSize,*float64) - - // Folder path of CDC files. If cdc_path is set, AWS DMS reads CDC files from this path and replicates the data changes to the target endpoint. Supported in AWS DMS versions 3.4.2 and later. - cdcPath?: null | string @go(CdcPath,*string) - - // ARN for the certificate. - certificateArn?: null | string @go(CertificateArn,*string) - - // Set to compress target files. Valid values are GZIP and NONE. Default is NONE. (Ignored for source endpoints.) - compressionType?: null | string @go(CompressionType,*string) - - // Delimiter used to separate columns in the source files. Default is ,. - csvDelimiter?: null | string @go(CsvDelimiter,*string) - - // Only applies if output files for a CDC load are written in .csv format. If use_csv_no_sup_value is set to true, string to use for all columns not included in the supplemental log. If you do not specify a string value, DMS uses the null value for these columns regardless of use_csv_no_sup_value. (Ignored for source endpoints.) - csvNoSupValue?: null | string @go(CsvNoSupValue,*string) - - // String to as null when writing to the target. (AWS default is NULL.) - csvNullValue?: null | string @go(CsvNullValue,*string) - - // Delimiter used to separate rows in the source files. Default is newline (i.e., \n). - csvRowDelimiter?: null | string @go(CsvRowDelimiter,*string) - - // Output format for the files that AWS DMS uses to create S3 objects. Valid values are csv and parquet. (Ignored for source endpoints -- only csv is valid.) - dataFormat?: null | string @go(DataFormat,*string) - - // Size of one data page in bytes. (AWS default is 1 MiB, i.e., 1048576.) - dataPageSize?: null | float64 @go(DataPageSize,*float64) - - // Date separating delimiter to use during folder partitioning. Valid values are SLASH, UNDERSCORE, DASH, and NONE. (AWS default is SLASH.) (Ignored for source endpoints.) - datePartitionDelimiter?: null | string @go(DatePartitionDelimiter,*string) - - // Partition S3 bucket folders based on transaction commit dates. Default is false. (Ignored for source endpoints.) - datePartitionEnabled?: null | bool @go(DatePartitionEnabled,*bool) - - // Date format to use during folder partitioning. Use this parameter when date_partition_enabled is set to true. Valid values are YYYYMMDD, YYYYMMDDHH, YYYYMM, MMYYYYDD, and DDMMYYYY. (AWS default is YYYYMMDD.) (Ignored for source endpoints.) - datePartitionSequence?: null | string @go(DatePartitionSequence,*string) - - // Convert the current UTC time to a timezone. The conversion occurs when a date partition folder is created and a CDC filename is generated. The timezone format is Area/Location (e.g., Europe/Paris). Use this when date_partition_enabled is true. (Ignored for source endpoints.) - datePartitionTimezone?: null | string @go(DatePartitionTimezone,*string) - - // Undocumented argument for use as directed by AWS Support. - detachTargetOnLobLookupFailureParquet?: null | bool @go(DetachTargetOnLobLookupFailureParquet,*bool) - - // Maximum size in bytes of an encoded dictionary page of a column. (AWS default is 1 MiB, i.e., 1048576.) - dictPageSizeLimit?: null | float64 @go(DictPageSizeLimit,*float64) - - // Whether to enable statistics for Parquet pages and row groups. Default is true. - enableStatistics?: null | bool @go(EnableStatistics,*bool) - - // Type of encoding to use. Value values are rle_dictionary, plain, and plain_dictionary. (AWS default is rle_dictionary.) - encodingType?: null | string @go(EncodingType,*string) - - // Server-side encryption mode that you want to encrypt your .csv or .parquet object files copied to S3. Valid values are SSE_S3 and SSE_KMS. (AWS default is SSE_S3.) (Ignored for source endpoints -- only SSE_S3 is valid.) - encryptionMode?: null | string @go(EncryptionMode,*string) - - // ARN for the endpoint. - endpointArn?: null | string @go(EndpointArn,*string) - - // Type of endpoint. Valid values are source, target. - endpointType?: null | string @go(EndpointType,*string) - - // Expanded name for the engine name. - engineDisplayName?: null | string @go(EngineDisplayName,*string) - - // Bucket owner to prevent sniping. Value is an AWS account ID. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Can be used for cross-account validation. Use it in another account with aws_dms_s3_endpoint to create the endpoint cross-account. - externalId?: null | string @go(ExternalID,*string) - - // JSON document that describes how AWS DMS should interpret the data. - externalTableDefinition?: null | string @go(ExternalTableDefinition,*string) - id?: null | string @go(ID,*string) - - // When this value is set to 1, DMS ignores the first row header in a .csv file. (AWS default is 0.) - ignoreHeaderRows?: null | float64 @go(IgnoreHeaderRows,*float64) - - // Whether to enable a full load to write INSERT operations to the .csv output files only to indicate how the rows were added to the source database. Default is false. - includeOpForFullLoad?: null | bool @go(IncludeOpForFullLoad,*bool) - - // ARN for the KMS key that will be used to encrypt the connection parameters. If you do not specify a value for kms_key_arn, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Maximum size (in KB) of any .csv file to be created while migrating to an S3 target during full load. Valid values are from 1 to 1048576. (AWS default is 1 GB, i.e., 1048576.) - maxFileSize?: null | float64 @go(MaxFileSize,*float64) - - // - Specifies the precision of any TIMESTAMP column values written to an S3 object file in .parquet format. Default is false. (Ignored for source endpoints.) - parquetTimestampInMillisecond?: null | bool @go(ParquetTimestampInMillisecond,*bool) - - // Version of the .parquet file format. Valid values are parquet-1-0 and parquet-2-0. (AWS default is parquet-1-0.) (Ignored for source endpoints.) - parquetVersion?: null | string @go(ParquetVersion,*string) - - // Whether DMS saves the transaction order for a CDC load on the S3 target specified by cdc_path. Default is false. (Ignored for source endpoints.) - preserveTransactions?: null | bool @go(PreserveTransactions,*bool) - - // For an S3 source, whether each leading double quotation mark has to be followed by an ending double quotation mark. Default is true. - rfc4180?: null | bool @go(Rfc4180,*bool) - - // Number of rows in a row group. (AWS default is 10000.) - rowGroupLength?: null | float64 @go(RowGroupLength,*float64) - - // SSL mode to use for the connection. Valid values are none, require, verify-ca, verify-full. (AWS default is none.) - sslMode?: null | string @go(SSLMode,*string) - - // When encryption_mode is SSE_KMS, ARN for the AWS KMS key. (Ignored for source endpoints -- only SSE_S3 encryption_mode is valid.) - serverSideEncryptionKmsKeyId?: null | string @go(ServerSideEncryptionKMSKeyID,*string) - - // ARN of the IAM role with permissions to the S3 Bucket. - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) - - // Status of the endpoint. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Column to add with timestamp information to the endpoint data for an Amazon S3 target. - timestampColumnName?: null | string @go(TimestampColumnName,*string) - - // Whether to use csv_no_sup_value for columns not included in the supplemental log. (Ignored for source endpoints.) - useCsvNoSupValue?: null | bool @go(UseCsvNoSupValue,*bool) - - // When set to true, uses the task start time as the timestamp column value instead of the time data is written to target. For full load, when set to true, each row of the timestamp column contains the task start time. For CDC loads, each row of the timestamp column contains the transaction commit time.When set to false, the full load timestamp in the timestamp column increments with the time data arrives at the target. Default is false. - useTaskStartTimeForFullLoadTimestamp?: null | bool @go(UseTaskStartTimeForFullLoadTimestamp,*bool) -} - -#S3EndpointParameters: { - // Whether to add column name information to the .csv output file. Default is false. - // +kubebuilder:validation:Optional - addColumnName?: null | bool @go(AddColumnName,*bool) - - // Whether to add padding. Default is false. (Ignored for source endpoints.) - // +kubebuilder:validation:Optional - addTrailingPaddingCharacter?: null | bool @go(AddTrailingPaddingCharacter,*bool) - - // S3 object prefix. - // +kubebuilder:validation:Optional - bucketFolder?: null | string @go(BucketFolder,*string) - - // S3 bucket name. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Predefined (canned) access control list for objects created in an S3 bucket. Valid values include none, private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, and bucket-owner-full-control. Default is none. - // +kubebuilder:validation:Optional - cannedAclForObjects?: null | string @go(CannedACLForObjects,*string) - - // Whether to write insert and update operations to .csv or .parquet output files. Default is false. - // +kubebuilder:validation:Optional - cdcInsertsAndUpdates?: null | bool @go(CdcInsertsAndUpdates,*bool) - - // Whether to write insert operations to .csv or .parquet output files. Default is false. - // +kubebuilder:validation:Optional - cdcInsertsOnly?: null | bool @go(CdcInsertsOnly,*bool) - - // Maximum length of the interval, defined in seconds, after which to output a file to Amazon S3. (AWS default is 60.) - // +kubebuilder:validation:Optional - cdcMaxBatchInterval?: null | float64 @go(CdcMaxBatchInterval,*float64) - - // Minimum file size condition as defined in kilobytes to output a file to Amazon S3. (AWS default is 32000 KB.) - // +kubebuilder:validation:Optional - cdcMinFileSize?: null | float64 @go(CdcMinFileSize,*float64) - - // Folder path of CDC files. If cdc_path is set, AWS DMS reads CDC files from this path and replicates the data changes to the target endpoint. Supported in AWS DMS versions 3.4.2 and later. - // +kubebuilder:validation:Optional - cdcPath?: null | string @go(CdcPath,*string) - - // ARN for the certificate. - // +kubebuilder:validation:Optional - certificateArn?: null | string @go(CertificateArn,*string) - - // Set to compress target files. Valid values are GZIP and NONE. Default is NONE. (Ignored for source endpoints.) - // +kubebuilder:validation:Optional - compressionType?: null | string @go(CompressionType,*string) - - // Delimiter used to separate columns in the source files. Default is ,. - // +kubebuilder:validation:Optional - csvDelimiter?: null | string @go(CsvDelimiter,*string) - - // Only applies if output files for a CDC load are written in .csv format. If use_csv_no_sup_value is set to true, string to use for all columns not included in the supplemental log. If you do not specify a string value, DMS uses the null value for these columns regardless of use_csv_no_sup_value. (Ignored for source endpoints.) - // +kubebuilder:validation:Optional - csvNoSupValue?: null | string @go(CsvNoSupValue,*string) - - // String to as null when writing to the target. (AWS default is NULL.) - // +kubebuilder:validation:Optional - csvNullValue?: null | string @go(CsvNullValue,*string) - - // Delimiter used to separate rows in the source files. Default is newline (i.e., \n). - // +kubebuilder:validation:Optional - csvRowDelimiter?: null | string @go(CsvRowDelimiter,*string) - - // Output format for the files that AWS DMS uses to create S3 objects. Valid values are csv and parquet. (Ignored for source endpoints -- only csv is valid.) - // +kubebuilder:validation:Optional - dataFormat?: null | string @go(DataFormat,*string) - - // Size of one data page in bytes. (AWS default is 1 MiB, i.e., 1048576.) - // +kubebuilder:validation:Optional - dataPageSize?: null | float64 @go(DataPageSize,*float64) - - // Date separating delimiter to use during folder partitioning. Valid values are SLASH, UNDERSCORE, DASH, and NONE. (AWS default is SLASH.) (Ignored for source endpoints.) - // +kubebuilder:validation:Optional - datePartitionDelimiter?: null | string @go(DatePartitionDelimiter,*string) - - // Partition S3 bucket folders based on transaction commit dates. Default is false. (Ignored for source endpoints.) - // +kubebuilder:validation:Optional - datePartitionEnabled?: null | bool @go(DatePartitionEnabled,*bool) - - // Date format to use during folder partitioning. Use this parameter when date_partition_enabled is set to true. Valid values are YYYYMMDD, YYYYMMDDHH, YYYYMM, MMYYYYDD, and DDMMYYYY. (AWS default is YYYYMMDD.) (Ignored for source endpoints.) - // +kubebuilder:validation:Optional - datePartitionSequence?: null | string @go(DatePartitionSequence,*string) - - // Convert the current UTC time to a timezone. The conversion occurs when a date partition folder is created and a CDC filename is generated. The timezone format is Area/Location (e.g., Europe/Paris). Use this when date_partition_enabled is true. (Ignored for source endpoints.) - // +kubebuilder:validation:Optional - datePartitionTimezone?: null | string @go(DatePartitionTimezone,*string) - - // Undocumented argument for use as directed by AWS Support. - // +kubebuilder:validation:Optional - detachTargetOnLobLookupFailureParquet?: null | bool @go(DetachTargetOnLobLookupFailureParquet,*bool) - - // Maximum size in bytes of an encoded dictionary page of a column. (AWS default is 1 MiB, i.e., 1048576.) - // +kubebuilder:validation:Optional - dictPageSizeLimit?: null | float64 @go(DictPageSizeLimit,*float64) - - // Whether to enable statistics for Parquet pages and row groups. Default is true. - // +kubebuilder:validation:Optional - enableStatistics?: null | bool @go(EnableStatistics,*bool) - - // Type of encoding to use. Value values are rle_dictionary, plain, and plain_dictionary. (AWS default is rle_dictionary.) - // +kubebuilder:validation:Optional - encodingType?: null | string @go(EncodingType,*string) - - // Server-side encryption mode that you want to encrypt your .csv or .parquet object files copied to S3. Valid values are SSE_S3 and SSE_KMS. (AWS default is SSE_S3.) (Ignored for source endpoints -- only SSE_S3 is valid.) - // +kubebuilder:validation:Optional - encryptionMode?: null | string @go(EncryptionMode,*string) - - // Type of endpoint. Valid values are source, target. - // +kubebuilder:validation:Optional - endpointType?: null | string @go(EndpointType,*string) - - // Bucket owner to prevent sniping. Value is an AWS account ID. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // JSON document that describes how AWS DMS should interpret the data. - // +kubebuilder:validation:Optional - externalTableDefinition?: null | string @go(ExternalTableDefinition,*string) - - // When this value is set to 1, DMS ignores the first row header in a .csv file. (AWS default is 0.) - // +kubebuilder:validation:Optional - ignoreHeaderRows?: null | float64 @go(IgnoreHeaderRows,*float64) - - // Whether to enable a full load to write INSERT operations to the .csv output files only to indicate how the rows were added to the source database. Default is false. - // +kubebuilder:validation:Optional - includeOpForFullLoad?: null | bool @go(IncludeOpForFullLoad,*bool) - - // ARN for the KMS key that will be used to encrypt the connection parameters. If you do not specify a value for kms_key_arn, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) - - // Maximum size (in KB) of any .csv file to be created while migrating to an S3 target during full load. Valid values are from 1 to 1048576. (AWS default is 1 GB, i.e., 1048576.) - // +kubebuilder:validation:Optional - maxFileSize?: null | float64 @go(MaxFileSize,*float64) - - // - Specifies the precision of any TIMESTAMP column values written to an S3 object file in .parquet format. Default is false. (Ignored for source endpoints.) - // +kubebuilder:validation:Optional - parquetTimestampInMillisecond?: null | bool @go(ParquetTimestampInMillisecond,*bool) - - // Version of the .parquet file format. Valid values are parquet-1-0 and parquet-2-0. (AWS default is parquet-1-0.) (Ignored for source endpoints.) - // +kubebuilder:validation:Optional - parquetVersion?: null | string @go(ParquetVersion,*string) - - // Whether DMS saves the transaction order for a CDC load on the S3 target specified by cdc_path. Default is false. (Ignored for source endpoints.) - // +kubebuilder:validation:Optional - preserveTransactions?: null | bool @go(PreserveTransactions,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // For an S3 source, whether each leading double quotation mark has to be followed by an ending double quotation mark. Default is true. - // +kubebuilder:validation:Optional - rfc4180?: null | bool @go(Rfc4180,*bool) - - // Number of rows in a row group. (AWS default is 10000.) - // +kubebuilder:validation:Optional - rowGroupLength?: null | float64 @go(RowGroupLength,*float64) - - // SSL mode to use for the connection. Valid values are none, require, verify-ca, verify-full. (AWS default is none.) - // +kubebuilder:validation:Optional - sslMode?: null | string @go(SSLMode,*string) - - // When encryption_mode is SSE_KMS, ARN for the AWS KMS key. (Ignored for source endpoints -- only SSE_S3 encryption_mode is valid.) - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - serverSideEncryptionKmsKeyId?: null | string @go(ServerSideEncryptionKMSKeyID,*string) - - // Reference to a Key in kms to populate serverSideEncryptionKmsKeyId. - // +kubebuilder:validation:Optional - serverSideEncryptionKmsKeyIdRef?: null | v1.#Reference @go(ServerSideEncryptionKMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate serverSideEncryptionKmsKeyId. - // +kubebuilder:validation:Optional - serverSideEncryptionKmsKeyIdSelector?: null | v1.#Selector @go(ServerSideEncryptionKMSKeyIDSelector,*v1.Selector) - - // ARN of the IAM role with permissions to the S3 Bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - serviceAccessRoleArn?: null | string @go(ServiceAccessRoleArn,*string) - - // Reference to a Role in iam to populate serviceAccessRoleArn. - // +kubebuilder:validation:Optional - serviceAccessRoleArnRef?: null | v1.#Reference @go(ServiceAccessRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate serviceAccessRoleArn. - // +kubebuilder:validation:Optional - serviceAccessRoleArnSelector?: null | v1.#Selector @go(ServiceAccessRoleArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Column to add with timestamp information to the endpoint data for an Amazon S3 target. - // +kubebuilder:validation:Optional - timestampColumnName?: null | string @go(TimestampColumnName,*string) - - // Whether to use csv_no_sup_value for columns not included in the supplemental log. (Ignored for source endpoints.) - // +kubebuilder:validation:Optional - useCsvNoSupValue?: null | bool @go(UseCsvNoSupValue,*bool) - - // When set to true, uses the task start time as the timestamp column value instead of the time data is written to target. For full load, when set to true, each row of the timestamp column contains the task start time. For CDC loads, each row of the timestamp column contains the transaction commit time.When set to false, the full load timestamp in the timestamp column increments with the time data arrives at the target. Default is false. - // +kubebuilder:validation:Optional - useTaskStartTimeForFullLoadTimestamp?: null | bool @go(UseTaskStartTimeForFullLoadTimestamp,*bool) -} - -// S3EndpointSpec defines the desired state of S3Endpoint -#S3EndpointSpec: { - v1.#ResourceSpec - forProvider: #S3EndpointParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #S3EndpointInitParameters @go(InitProvider) -} - -// S3EndpointStatus defines the observed state of S3Endpoint. -#S3EndpointStatus: { - v1.#ResourceStatus - atProvider?: #S3EndpointObservation @go(AtProvider) -} - -// S3Endpoint is the Schema for the S3Endpoints API. Provides a DMS (Data Migration Service) S3 endpoint resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#S3Endpoint: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bucketName) || (has(self.initProvider) && has(self.initProvider.bucketName))",message="spec.forProvider.bucketName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.endpointType) || (has(self.initProvider) && has(self.initProvider.endpointType))",message="spec.forProvider.endpointType is a required parameter" - spec: #S3EndpointSpec @go(Spec) - status?: #S3EndpointStatus @go(Status) -} - -// S3EndpointList contains a list of S3Endpoints -#S3EndpointList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#S3Endpoint] @go(Items,[]S3Endpoint) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_cluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_cluster_types_go_gen.cue deleted file mode 100644 index 5bede11..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_cluster_types_go_gen.cue +++ /dev/null @@ -1,342 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/docdb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterInitParameters: { - // Specifies whether any cluster modifications - // are applied immediately, or during the next maintenance window. Default is - // false. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // A list of EC2 Availability Zones that - // instances in the DB cluster can be created in. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The days to retain backups for. Default 1 - backupRetentionPeriod?: null | float64 @go(BackupRetentionPeriod,*float64) - - // A cluster parameter group to associate with the cluster. - dbClusterParameterGroupName?: null | string @go(DBClusterParameterGroupName,*string) - - // A DB subnet group to associate with this DB instance. - dbSubnetGroupName?: null | string @go(DBSubnetGroupName,*string) - - // A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // List of log types to export to cloudwatch. If omitted, no logs will be exported. - // The following log types are supported: audit, profiler. - enabledCloudwatchLogsExports?: [...null | string] @go(EnabledCloudwatchLogsExports,[]*string) - - // The name of the database engine to be used for this DB cluster. Defaults to docdb. Valid Values: docdb - engine?: null | string @go(Engine,*string) - - // The database engine version. Updating this argument results in an outage. - engineVersion?: null | string @go(EngineVersion,*string) - - // The name of your final DB snapshot - // when this DB cluster is deleted. If omitted, no final snapshot will be - // made. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The global cluster identifier specified on aws_docdb_global_cluster. - globalClusterIdentifier?: null | string @go(GlobalClusterIdentifier,*string) - - // Username for the master DB user. - masterUsername?: null | string @go(MasterUsername,*string) - - // The port on which the DB accepts connections - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter.Time in UTC - // Default: A 30-minute window selected at random from an 8-hour block of time per regionE.g., 04:00-09:00 - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The weekly time range during which system maintenance can occur, in (UTC) e.g., wed:04:00-wed:04:30 - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Determines whether a final DB snapshot is created before the DB cluster is deleted. If true is specified, no DB snapshot is created. If false is specified, a DB snapshot is created before the DB cluster is deleted, using the value from final_snapshot_identifier. Default is false. - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // Specifies whether or not to create this cluster from a snapshot. You can use either the name or ARN when specifying a DB cluster snapshot, or the ARN when specifying a DB snapshot. - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // Specifies whether the DB cluster is encrypted. The default is false. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterObservation: { - // Specifies whether any cluster modifications - // are applied immediately, or during the next maintenance window. Default is - // false. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Amazon Resource Name (ARN) of cluster - arn?: null | string @go(Arn,*string) - - // A list of EC2 Availability Zones that - // instances in the DB cluster can be created in. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The days to retain backups for. Default 1 - backupRetentionPeriod?: null | float64 @go(BackupRetentionPeriod,*float64) - - // – List of DocumentDB Instances that are a part of this cluster - clusterMembers?: [...null | string] @go(ClusterMembers,[]*string) - - // The DocumentDB Cluster Resource ID - clusterResourceId?: null | string @go(ClusterResourceID,*string) - - // A cluster parameter group to associate with the cluster. - dbClusterParameterGroupName?: null | string @go(DBClusterParameterGroupName,*string) - - // A DB subnet group to associate with this DB instance. - dbSubnetGroupName?: null | string @go(DBSubnetGroupName,*string) - - // A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // List of log types to export to cloudwatch. If omitted, no logs will be exported. - // The following log types are supported: audit, profiler. - enabledCloudwatchLogsExports?: [...null | string] @go(EnabledCloudwatchLogsExports,[]*string) - - // The DNS address of the DocumentDB instance - endpoint?: null | string @go(Endpoint,*string) - - // The name of the database engine to be used for this DB cluster. Defaults to docdb. Valid Values: docdb - engine?: null | string @go(Engine,*string) - - // The database engine version. Updating this argument results in an outage. - engineVersion?: null | string @go(EngineVersion,*string) - - // The name of your final DB snapshot - // when this DB cluster is deleted. If omitted, no final snapshot will be - // made. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The global cluster identifier specified on aws_docdb_global_cluster. - globalClusterIdentifier?: null | string @go(GlobalClusterIdentifier,*string) - - // The Route53 Hosted Zone ID of the endpoint - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // The DocumentDB Cluster Identifier - id?: null | string @go(ID,*string) - - // The ARN for the KMS encryption key. When specifying kms_key_id, storage_encrypted needs to be set to true. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Username for the master DB user. - masterUsername?: null | string @go(MasterUsername,*string) - - // The port on which the DB accepts connections - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter.Time in UTC - // Default: A 30-minute window selected at random from an 8-hour block of time per regionE.g., 04:00-09:00 - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The weekly time range during which system maintenance can occur, in (UTC) e.g., wed:04:00-wed:04:30 - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // A read-only endpoint for the DocumentDB cluster, automatically load-balanced across replicas - readerEndpoint?: null | string @go(ReaderEndpoint,*string) - - // Determines whether a final DB snapshot is created before the DB cluster is deleted. If true is specified, no DB snapshot is created. If false is specified, a DB snapshot is created before the DB cluster is deleted, using the value from final_snapshot_identifier. Default is false. - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // Specifies whether or not to create this cluster from a snapshot. You can use either the name or ARN when specifying a DB cluster snapshot, or the ARN when specifying a DB snapshot. - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // Specifies whether the DB cluster is encrypted. The default is false. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // List of VPC security groups to associate - // with the Cluster - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -#ClusterParameters: { - // Specifies whether any cluster modifications - // are applied immediately, or during the next maintenance window. Default is - // false. - // +kubebuilder:validation:Optional - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // A list of EC2 Availability Zones that - // instances in the DB cluster can be created in. - // +kubebuilder:validation:Optional - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The days to retain backups for. Default 1 - // +kubebuilder:validation:Optional - backupRetentionPeriod?: null | float64 @go(BackupRetentionPeriod,*float64) - - // A cluster parameter group to associate with the cluster. - // +kubebuilder:validation:Optional - dbClusterParameterGroupName?: null | string @go(DBClusterParameterGroupName,*string) - - // A DB subnet group to associate with this DB instance. - // +kubebuilder:validation:Optional - dbSubnetGroupName?: null | string @go(DBSubnetGroupName,*string) - - // A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. - // +kubebuilder:validation:Optional - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // List of log types to export to cloudwatch. If omitted, no logs will be exported. - // The following log types are supported: audit, profiler. - // +kubebuilder:validation:Optional - enabledCloudwatchLogsExports?: [...null | string] @go(EnabledCloudwatchLogsExports,[]*string) - - // The name of the database engine to be used for this DB cluster. Defaults to docdb. Valid Values: docdb - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // The database engine version. Updating this argument results in an outage. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // The name of your final DB snapshot - // when this DB cluster is deleted. If omitted, no final snapshot will be - // made. - // +kubebuilder:validation:Optional - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The global cluster identifier specified on aws_docdb_global_cluster. - // +kubebuilder:validation:Optional - globalClusterIdentifier?: null | string @go(GlobalClusterIdentifier,*string) - - // The ARN for the KMS encryption key. When specifying kms_key_id, storage_encrypted needs to be set to true. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Password for the master DB user. Note that this may - // show up in logs, and it will be stored in the state file. Please refer to the DocumentDB Naming Constraints. - // +kubebuilder:validation:Optional - masterPasswordSecretRef?: null | v1.#SecretKeySelector @go(MasterPasswordSecretRef,*v1.SecretKeySelector) - - // Username for the master DB user. - // +kubebuilder:validation:Optional - masterUsername?: null | string @go(MasterUsername,*string) - - // The port on which the DB accepts connections - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter.Time in UTC - // Default: A 30-minute window selected at random from an 8-hour block of time per regionE.g., 04:00-09:00 - // +kubebuilder:validation:Optional - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The weekly time range during which system maintenance can occur, in (UTC) e.g., wed:04:00-wed:04:30 - // +kubebuilder:validation:Optional - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Determines whether a final DB snapshot is created before the DB cluster is deleted. If true is specified, no DB snapshot is created. If false is specified, a DB snapshot is created before the DB cluster is deleted, using the value from final_snapshot_identifier. Default is false. - // +kubebuilder:validation:Optional - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // Specifies whether or not to create this cluster from a snapshot. You can use either the name or ARN when specifying a DB cluster snapshot, or the ARN when specifying a DB snapshot. - // +kubebuilder:validation:Optional - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // Specifies whether the DB cluster is encrypted. The default is false. - // +kubebuilder:validation:Optional - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // References to SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdRefs?: [...v1.#Reference] @go(VPCSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdSelector?: null | v1.#Selector @go(VPCSecurityGroupIDSelector,*v1.Selector) - - // List of VPC security groups to associate - // with the Cluster - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -// ClusterSpec defines the desired state of Cluster -#ClusterSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInitParameters @go(InitProvider) -} - -// ClusterStatus defines the observed state of Cluster. -#ClusterStatus: { - v1.#ResourceStatus - atProvider?: #ClusterObservation @go(AtProvider) -} - -// Cluster is the Schema for the Clusters API. Manages a DocumentDB Aurora Cluster -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Cluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ClusterSpec @go(Spec) - status?: #ClusterStatus @go(Status) -} - -// ClusterList contains a list of Clusters -#ClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Cluster] @go(Items,[]Cluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_clusterinstance_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_clusterinstance_types_go_gen.cue deleted file mode 100644 index cc27f91..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_clusterinstance_types_go_gen.cue +++ /dev/null @@ -1,241 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/docdb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterInstanceInitParameters: { - // Specifies whether any database modifications - // are applied immediately, or during the next maintenance window. Default isfalse. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The EC2 Availability Zone that the DB instance is created in. See docs about the details. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The identifier of the CA certificate for the DB instance. - caCertIdentifier?: null | string @go(CACertIdentifier,*string) - - // A value that indicates whether to enable Performance Insights for the DB Instance. Default false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - enablePerformanceInsights?: null | bool @go(EnablePerformanceInsights,*bool) - - // The name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb. - engine?: null | string @go(Engine,*string) - - // The instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. - // DocumentDB currently supports the below instance classes. - // Please see AWS Documentation for complete details. - instanceClass?: null | string @go(InstanceClass,*string) - - // The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If you do not specify a value for PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key. - performanceInsightsKmsKeyId?: null | string @go(PerformanceInsightsKMSKeyID,*string) - - // The window to perform maintenance in. - // Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer. - promotionTier?: null | float64 @go(PromotionTier,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterInstanceObservation: { - // Specifies whether any database modifications - // are applied immediately, or during the next maintenance window. Default isfalse. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Amazon Resource Name (ARN) of cluster instance - arn?: null | string @go(Arn,*string) - - // This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The EC2 Availability Zone that the DB instance is created in. See docs about the details. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The identifier of the CA certificate for the DB instance. - caCertIdentifier?: null | string @go(CACertIdentifier,*string) - - // The identifier of the aws_docdb_cluster in which to launch this instance. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // The DB subnet group to associate with this DB instance. - dbSubnetGroupName?: null | string @go(DBSubnetGroupName,*string) - - // The region-unique, immutable identifier for the DB instance. - dbiResourceId?: null | string @go(DbiResourceID,*string) - - // A value that indicates whether to enable Performance Insights for the DB Instance. Default false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - enablePerformanceInsights?: null | bool @go(EnablePerformanceInsights,*bool) - - // The DNS address for this instance. May not be writable - endpoint?: null | string @go(Endpoint,*string) - - // The name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb. - engine?: null | string @go(Engine,*string) - - // The database engine version - engineVersion?: null | string @go(EngineVersion,*string) - id?: null | string @go(ID,*string) - - // The instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. - // DocumentDB currently supports the below instance classes. - // Please see AWS Documentation for complete details. - instanceClass?: null | string @go(InstanceClass,*string) - - // The ARN for the KMS encryption key if one is set to the cluster. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If you do not specify a value for PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key. - performanceInsightsKmsKeyId?: null | string @go(PerformanceInsightsKMSKeyID,*string) - - // The database port - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled. - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The window to perform maintenance in. - // Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer. - promotionTier?: null | float64 @go(PromotionTier,*float64) - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Specifies whether the DB cluster is encrypted. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // – Boolean indicating if this instance is writable. False indicates this instance is a read replica. - writer?: null | bool @go(Writer,*bool) -} - -#ClusterInstanceParameters: { - // Specifies whether any database modifications - // are applied immediately, or during the next maintenance window. Default isfalse. - // +kubebuilder:validation:Optional - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see docs). Default true. - // +kubebuilder:validation:Optional - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The EC2 Availability Zone that the DB instance is created in. See docs about the details. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The identifier of the CA certificate for the DB instance. - // +kubebuilder:validation:Optional - caCertIdentifier?: null | string @go(CACertIdentifier,*string) - - // The identifier of the aws_docdb_cluster in which to launch this instance. - // +crossplane:generate:reference:type=Cluster - // +kubebuilder:validation:Optional - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // Reference to a Cluster to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierRef?: null | v1.#Reference @go(ClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierSelector?: null | v1.#Selector @go(ClusterIdentifierSelector,*v1.Selector) - - // A value that indicates whether to enable Performance Insights for the DB Instance. Default false. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details. - // +kubebuilder:validation:Optional - enablePerformanceInsights?: null | bool @go(EnablePerformanceInsights,*bool) - - // The name of the database engine to be used for the DocumentDB instance. Defaults to docdb. Valid Values: docdb. - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // The instance class to use. For details on CPU and memory, see Scaling for DocumentDB Instances. - // DocumentDB currently supports the below instance classes. - // Please see AWS Documentation for complete details. - // +kubebuilder:validation:Optional - instanceClass?: null | string @go(InstanceClass,*string) - - // The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If you do not specify a value for PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key. - // +kubebuilder:validation:Optional - performanceInsightsKmsKeyId?: null | string @go(PerformanceInsightsKMSKeyID,*string) - - // The window to perform maintenance in. - // Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". - // +kubebuilder:validation:Optional - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer. - // +kubebuilder:validation:Optional - promotionTier?: null | float64 @go(PromotionTier,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ClusterInstanceSpec defines the desired state of ClusterInstance -#ClusterInstanceSpec: { - v1.#ResourceSpec - forProvider: #ClusterInstanceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInstanceInitParameters @go(InitProvider) -} - -// ClusterInstanceStatus defines the observed state of ClusterInstance. -#ClusterInstanceStatus: { - v1.#ResourceStatus - atProvider?: #ClusterInstanceObservation @go(AtProvider) -} - -// ClusterInstance is the Schema for the ClusterInstances API. Provides an DocumentDB Cluster Resource Instance -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterInstance: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceClass) || (has(self.initProvider) && has(self.initProvider.instanceClass))",message="spec.forProvider.instanceClass is a required parameter" - spec: #ClusterInstanceSpec @go(Spec) - status?: #ClusterInstanceStatus @go(Status) -} - -// ClusterInstanceList contains a list of ClusterInstances -#ClusterInstanceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterInstance] @go(Items,[]ClusterInstance) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_clusterparametergroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_clusterparametergroup_types_go_gen.cue deleted file mode 100644 index 64d8117..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_clusterparametergroup_types_go_gen.cue +++ /dev/null @@ -1,153 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/docdb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterParameterGroupInitParameters: { - // The description of the DocumentDB cluster parameter group. - description?: null | string @go(Description,*string) - - // The family of the DocumentDB cluster parameter group. - family?: null | string @go(Family,*string) - - // A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources. - parameter?: [...#ParameterInitParameters] @go(Parameter,[]ParameterInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterParameterGroupObservation: { - // The ARN of the DocumentDB cluster parameter group. - arn?: null | string @go(Arn,*string) - - // The description of the DocumentDB cluster parameter group. - description?: null | string @go(Description,*string) - - // The family of the DocumentDB cluster parameter group. - family?: null | string @go(Family,*string) - - // The DocumentDB cluster parameter group name. - id?: null | string @go(ID,*string) - - // A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources. - parameter?: [...#ParameterObservation] @go(Parameter,[]ParameterObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ClusterParameterGroupParameters: { - // The description of the DocumentDB cluster parameter group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The family of the DocumentDB cluster parameter group. - // +kubebuilder:validation:Optional - family?: null | string @go(Family,*string) - - // A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources. - // +kubebuilder:validation:Optional - parameter?: [...#ParameterParameters] @go(Parameter,[]ParameterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParameterInitParameters: { - // Valid values are immediate and pending-reboot. Defaults to pending-reboot. - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the DocumentDB cluster parameter group. - name?: null | string @go(Name,*string) - - // The value of the DocumentDB parameter. - value?: null | string @go(Value,*string) -} - -#ParameterObservation: { - // Valid values are immediate and pending-reboot. Defaults to pending-reboot. - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the DocumentDB cluster parameter group. - name?: null | string @go(Name,*string) - - // The value of the DocumentDB parameter. - value?: null | string @go(Value,*string) -} - -#ParameterParameters: { - // Valid values are immediate and pending-reboot. Defaults to pending-reboot. - // +kubebuilder:validation:Optional - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the DocumentDB cluster parameter group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of the DocumentDB parameter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// ClusterParameterGroupSpec defines the desired state of ClusterParameterGroup -#ClusterParameterGroupSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameterGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterParameterGroupInitParameters @go(InitProvider) -} - -// ClusterParameterGroupStatus defines the observed state of ClusterParameterGroup. -#ClusterParameterGroupStatus: { - v1.#ResourceStatus - atProvider?: #ClusterParameterGroupObservation @go(AtProvider) -} - -// ClusterParameterGroup is the Schema for the ClusterParameterGroups API. Manages a DocumentDB Cluster Parameter Group -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterParameterGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.family) || (has(self.initProvider) && has(self.initProvider.family))",message="spec.forProvider.family is a required parameter" - spec: #ClusterParameterGroupSpec @go(Spec) - status?: #ClusterParameterGroupStatus @go(Status) -} - -// ClusterParameterGroupList contains a list of ClusterParameterGroups -#ClusterParameterGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterParameterGroup] @go(Items,[]ClusterParameterGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_clustersnapshot_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_clustersnapshot_types_go_gen.cue deleted file mode 100644 index 7033a2f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_clustersnapshot_types_go_gen.cue +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/docdb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterSnapshotInitParameters: { -} - -#ClusterSnapshotObservation: { - // List of EC2 Availability Zones that instances in the DocumentDB cluster snapshot can be restored in. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The DocumentDB Cluster Identifier from which to take the snapshot. - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // The Amazon Resource Name (ARN) for the DocumentDB Cluster Snapshot. - dbClusterSnapshotArn?: null | string @go(DBClusterSnapshotArn,*string) - - // Specifies the name of the database engine. - engine?: null | string @go(Engine,*string) - - // Version of the database engine for this DocumentDB cluster snapshot. - engineVersion?: null | string @go(EngineVersion,*string) - id?: null | string @go(ID,*string) - - // If storage_encrypted is true, the AWS KMS key identifier for the encrypted DocumentDB cluster snapshot. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Port that the DocumentDB cluster was listening on at the time of the snapshot. - port?: null | float64 @go(Port,*float64) - snapshotType?: null | string @go(SnapshotType,*string) - - // The Amazon Resource Name (ARN) for the DocumentDB Cluster Snapshot. - sourceDbClusterSnapshotArn?: null | string @go(SourceDBClusterSnapshotArn,*string) - - // The status of this DocumentDB Cluster Snapshot. - status?: null | string @go(Status,*string) - - // Specifies whether the DocumentDB cluster snapshot is encrypted. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // The VPC ID associated with the DocumentDB cluster snapshot. - vpcId?: null | string @go(VPCID,*string) -} - -#ClusterSnapshotParameters: { - // The DocumentDB Cluster Identifier from which to take the snapshot. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/docdb/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // Reference to a Cluster in docdb to populate dbClusterIdentifier. - // +kubebuilder:validation:Optional - dbClusterIdentifierRef?: null | v1.#Reference @go(DBClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster in docdb to populate dbClusterIdentifier. - // +kubebuilder:validation:Optional - dbClusterIdentifierSelector?: null | v1.#Selector @go(DBClusterIdentifierSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ClusterSnapshotSpec defines the desired state of ClusterSnapshot -#ClusterSnapshotSpec: { - v1.#ResourceSpec - forProvider: #ClusterSnapshotParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterSnapshotInitParameters @go(InitProvider) -} - -// ClusterSnapshotStatus defines the observed state of ClusterSnapshot. -#ClusterSnapshotStatus: { - v1.#ResourceStatus - atProvider?: #ClusterSnapshotObservation @go(AtProvider) -} - -// ClusterSnapshot is the Schema for the ClusterSnapshots API. Manages a DocumentDB database cluster snapshot. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterSnapshot: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ClusterSnapshotSpec @go(Spec) - status?: #ClusterSnapshotStatus @go(Status) -} - -// ClusterSnapshotList contains a list of ClusterSnapshots -#ClusterSnapshotList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterSnapshot] @go(Items,[]ClusterSnapshot) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_eventsubscription_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_eventsubscription_types_go_gen.cue deleted file mode 100644 index 349609c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_eventsubscription_types_go_gen.cue +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/docdb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EventSubscriptionInitParameters: { - // A boolean flag to enable/disable the subscription. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // A list of event categories for a SourceType that you want to subscribe to. See https://docs.aws.amazon.com/documentdb/latest/developerguide/API_Event.html or run aws docdb describe-event-categories. - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified. - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // The type of source that will be generating the events. Valid options are db-instance, db-cluster, db-parameter-group, db-security-group, db-cluster-snapshot. If not set, all sources will be subscribed to. - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EventSubscriptionObservation: { - // The Amazon Resource Name of the DocumentDB event notification subscription - arn?: null | string @go(Arn,*string) - - // The AWS customer account associated with the DocumentDB event notification subscription - customerAwsId?: null | string @go(CustomerAwsID,*string) - - // A boolean flag to enable/disable the subscription. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // A list of event categories for a SourceType that you want to subscribe to. See https://docs.aws.amazon.com/documentdb/latest/developerguide/API_Event.html or run aws docdb describe-event-categories. - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // The name of the DocumentDB event notification subscription - id?: null | string @go(ID,*string) - - // The Amazon Resource Name of the DocumentDB event notification subscription - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified. - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // The type of source that will be generating the events. Valid options are db-instance, db-cluster, db-parameter-group, db-security-group, db-cluster-snapshot. If not set, all sources will be subscribed to. - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#EventSubscriptionParameters: { - // A boolean flag to enable/disable the subscription. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // A list of event categories for a SourceType that you want to subscribe to. See https://docs.aws.amazon.com/documentdb/latest/developerguide/API_Event.html or run aws docdb describe-event-categories. - // +kubebuilder:validation:Optional - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name of the DocumentDB event notification subscription - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // Reference to a Topic in sns to populate snsTopicArn. - // +kubebuilder:validation:Optional - snsTopicArnRef?: null | v1.#Reference @go(SnsTopicArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate snsTopicArn. - // +kubebuilder:validation:Optional - snsTopicArnSelector?: null | v1.#Selector @go(SnsTopicArnSelector,*v1.Selector) - - // A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified. - // +kubebuilder:validation:Optional - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // The type of source that will be generating the events. Valid options are db-instance, db-cluster, db-parameter-group, db-security-group, db-cluster-snapshot. If not set, all sources will be subscribed to. - // +kubebuilder:validation:Optional - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// EventSubscriptionSpec defines the desired state of EventSubscription -#EventSubscriptionSpec: { - v1.#ResourceSpec - forProvider: #EventSubscriptionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EventSubscriptionInitParameters @go(InitProvider) -} - -// EventSubscriptionStatus defines the observed state of EventSubscription. -#EventSubscriptionStatus: { - v1.#ResourceStatus - atProvider?: #EventSubscriptionObservation @go(AtProvider) -} - -// EventSubscription is the Schema for the EventSubscriptions API. Provides a DocumentDB event subscription resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EventSubscription: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EventSubscriptionSpec @go(Spec) - status?: #EventSubscriptionStatus @go(Status) -} - -// EventSubscriptionList contains a list of EventSubscriptions -#EventSubscriptionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EventSubscription] @go(Items,[]EventSubscription) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_globalcluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_globalcluster_types_go_gen.cue deleted file mode 100644 index fdb3750..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_globalcluster_types_go_gen.cue +++ /dev/null @@ -1,172 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/docdb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GlobalClusterInitParameters: { - // Name for an automatically created database on cluster creation. - databaseName?: null | string @go(DatabaseName,*string) - - // If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // Name of the database engine to be used for this DB cluster. Current Valid values: docdb. Defaults to docdb. Conflicts with source_db_cluster_identifier. - engine?: null | string @go(Engine,*string) - - // Engine version of the global database. Upgrading the engine version will result in all cluster members being immediately updated and will. - engineVersion?: null | string @go(EngineVersion,*string) - - // The global cluster identifier. - globalClusterIdentifier?: null | string @go(GlobalClusterIdentifier,*string) - - // Specifies whether the DB cluster is encrypted. The default is false unless source_db_cluster_identifier is specified and encrypted. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) -} - -#GlobalClusterMembersInitParameters: { -} - -#GlobalClusterMembersObservation: { - // Amazon Resource Name (ARN) of member DB Cluster. - dbClusterArn?: null | string @go(DBClusterArn,*string) - - // Whether the member is the primary DB Cluster. - isWriter?: null | bool @go(IsWriter,*bool) -} - -#GlobalClusterMembersParameters: { -} - -#GlobalClusterObservation: { - // Global Cluster Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // Name for an automatically created database on cluster creation. - databaseName?: null | string @go(DatabaseName,*string) - - // If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // Name of the database engine to be used for this DB cluster. Current Valid values: docdb. Defaults to docdb. Conflicts with source_db_cluster_identifier. - engine?: null | string @go(Engine,*string) - - // Engine version of the global database. Upgrading the engine version will result in all cluster members being immediately updated and will. - engineVersion?: null | string @go(EngineVersion,*string) - - // The global cluster identifier. - globalClusterIdentifier?: null | string @go(GlobalClusterIdentifier,*string) - - // Set of objects containing Global Cluster members. - globalClusterMembers?: [...#GlobalClusterMembersObservation] @go(GlobalClusterMembers,[]GlobalClusterMembersObservation) - - // AWS Region-unique, immutable identifier for the global database cluster. This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB cluster is accessed. - globalClusterResourceId?: null | string @go(GlobalClusterResourceID,*string) - - // DocumentDB Global Cluster ID. - id?: null | string @go(ID,*string) - - // Amazon Resource Name (ARN) to use as the primary DB Cluster of the Global Cluster on creation. - sourceDbClusterIdentifier?: null | string @go(SourceDBClusterIdentifier,*string) - status?: null | string @go(Status,*string) - - // Specifies whether the DB cluster is encrypted. The default is false unless source_db_cluster_identifier is specified and encrypted. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) -} - -#GlobalClusterParameters: { - // Name for an automatically created database on cluster creation. - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - // +kubebuilder:validation:Optional - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // Name of the database engine to be used for this DB cluster. Current Valid values: docdb. Defaults to docdb. Conflicts with source_db_cluster_identifier. - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // Engine version of the global database. Upgrading the engine version will result in all cluster members being immediately updated and will. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // The global cluster identifier. - // +kubebuilder:validation:Optional - globalClusterIdentifier?: null | string @go(GlobalClusterIdentifier,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Resource Name (ARN) to use as the primary DB Cluster of the Global Cluster on creation. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/docdb/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - sourceDbClusterIdentifier?: null | string @go(SourceDBClusterIdentifier,*string) - - // Reference to a Cluster in docdb to populate sourceDbClusterIdentifier. - // +kubebuilder:validation:Optional - sourceDbClusterIdentifierRef?: null | v1.#Reference @go(SourceDBClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster in docdb to populate sourceDbClusterIdentifier. - // +kubebuilder:validation:Optional - sourceDbClusterIdentifierSelector?: null | v1.#Selector @go(SourceDBClusterIdentifierSelector,*v1.Selector) - - // Specifies whether the DB cluster is encrypted. The default is false unless source_db_cluster_identifier is specified and encrypted. - // +kubebuilder:validation:Optional - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) -} - -// GlobalClusterSpec defines the desired state of GlobalCluster -#GlobalClusterSpec: { - v1.#ResourceSpec - forProvider: #GlobalClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GlobalClusterInitParameters @go(InitProvider) -} - -// GlobalClusterStatus defines the observed state of GlobalCluster. -#GlobalClusterStatus: { - v1.#ResourceStatus - atProvider?: #GlobalClusterObservation @go(AtProvider) -} - -// GlobalCluster is the Schema for the GlobalClusters API. Manages a DocumentDB Global Cluster -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GlobalCluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.globalClusterIdentifier) || (has(self.initProvider) && has(self.initProvider.globalClusterIdentifier))",message="spec.forProvider.globalClusterIdentifier is a required parameter" - spec: #GlobalClusterSpec @go(Spec) - status?: #GlobalClusterStatus @go(Status) -} - -// GlobalClusterList contains a list of GlobalClusters -#GlobalClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GlobalCluster] @go(Items,[]GlobalCluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 121151b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/docdb/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=docdb.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "docdb.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_subnetgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_subnetgroup_types_go_gen.cue deleted file mode 100644 index fa1b17b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/docdb/v1beta1/zz_subnetgroup_types_go_gen.cue +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/docdb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SubnetGroupInitParameters: { - // The description of the docDB subnet group. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SubnetGroupObservation: { - // The ARN of the docDB subnet group. - arn?: null | string @go(Arn,*string) - - // The description of the docDB subnet group. - description?: null | string @go(Description,*string) - - // The docDB subnet group name. - id?: null | string @go(ID,*string) - - // A list of VPC subnet IDs. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SubnetGroupParameters: { - // The description of the docDB subnet group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A list of VPC subnet IDs. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdsRefs?: [...v1.#Reference] @go(SubnetIdsRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdsSelector?: null | v1.#Selector @go(SubnetIdsSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SubnetGroupSpec defines the desired state of SubnetGroup -#SubnetGroupSpec: { - v1.#ResourceSpec - forProvider: #SubnetGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SubnetGroupInitParameters @go(InitProvider) -} - -// SubnetGroupStatus defines the observed state of SubnetGroup. -#SubnetGroupStatus: { - v1.#ResourceStatus - atProvider?: #SubnetGroupObservation @go(AtProvider) -} - -// SubnetGroup is the Schema for the SubnetGroups API. Provides an DocumentDB subnet group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SubnetGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SubnetGroupSpec @go(Spec) - status?: #SubnetGroupStatus @go(Status) -} - -// SubnetGroupList contains a list of SubnetGroups -#SubnetGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SubnetGroup] @go(Items,[]SubnetGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ds/v1beta1/zz_conditionalforwarder_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ds/v1beta1/zz_conditionalforwarder_types_go_gen.cue deleted file mode 100644 index 5e5f58e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ds/v1beta1/zz_conditionalforwarder_types_go_gen.cue +++ /dev/null @@ -1,103 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConditionalForwarderInitParameters: { - // A list of forwarder IP addresses. - dnsIps?: [...null | string] @go(DNSIps,[]*string) -} - -#ConditionalForwarderObservation: { - // A list of forwarder IP addresses. - dnsIps?: [...null | string] @go(DNSIps,[]*string) - - // ID of directory. - directoryId?: null | string @go(DirectoryID,*string) - id?: null | string @go(ID,*string) - - // The fully qualified domain name of the remote domain for which forwarders will be used. - remoteDomainName?: null | string @go(RemoteDomainName,*string) -} - -#ConditionalForwarderParameters: { - // A list of forwarder IP addresses. - // +kubebuilder:validation:Optional - dnsIps?: [...null | string] @go(DNSIps,[]*string) - - // ID of directory. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ds/v1beta1.Directory - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - directoryId?: null | string @go(DirectoryID,*string) - - // Reference to a Directory in ds to populate directoryId. - // +kubebuilder:validation:Optional - directoryIdRef?: null | v1.#Reference @go(DirectoryIDRef,*v1.Reference) - - // Selector for a Directory in ds to populate directoryId. - // +kubebuilder:validation:Optional - directoryIdSelector?: null | v1.#Selector @go(DirectoryIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The fully qualified domain name of the remote domain for which forwarders will be used. - // +kubebuilder:validation:Required - remoteDomainName?: null | string @go(RemoteDomainName,*string) -} - -// ConditionalForwarderSpec defines the desired state of ConditionalForwarder -#ConditionalForwarderSpec: { - v1.#ResourceSpec - forProvider: #ConditionalForwarderParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConditionalForwarderInitParameters @go(InitProvider) -} - -// ConditionalForwarderStatus defines the observed state of ConditionalForwarder. -#ConditionalForwarderStatus: { - v1.#ResourceStatus - atProvider?: #ConditionalForwarderObservation @go(AtProvider) -} - -// ConditionalForwarder is the Schema for the ConditionalForwarders API. Provides a conditional forwarder for managed Microsoft AD in AWS Directory Service. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ConditionalForwarder: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dnsIps) || (has(self.initProvider) && has(self.initProvider.dnsIps))",message="spec.forProvider.dnsIps is a required parameter" - spec: #ConditionalForwarderSpec @go(Spec) - status?: #ConditionalForwarderStatus @go(Status) -} - -// ConditionalForwarderList contains a list of ConditionalForwarders -#ConditionalForwarderList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConditionalForwarder] @go(Items,[]ConditionalForwarder) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ds/v1beta1/zz_directory_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ds/v1beta1/zz_directory_types_go_gen.cue deleted file mode 100644 index 43ab910..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ds/v1beta1/zz_directory_types_go_gen.cue +++ /dev/null @@ -1,314 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConnectSettingsInitParameters: { - // The DNS IP addresses of the domain to connect to. - customerDnsIps?: [...null | string] @go(CustomerDNSIps,[]*string) - - // The username corresponding to the password provided. - customerUsername?: null | string @go(CustomerUsername,*string) -} - -#ConnectSettingsObservation: { - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The IP addresses of the AD Connector servers. - connectIps?: [...null | string] @go(ConnectIps,[]*string) - - // The DNS IP addresses of the domain to connect to. - customerDnsIps?: [...null | string] @go(CustomerDNSIps,[]*string) - - // The username corresponding to the password provided. - customerUsername?: null | string @go(CustomerUsername,*string) - - // The identifiers of the subnets for the directory servers (2 subnets in 2 different AZs). - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // The identifier of the VPC that the directory is in. - vpcId?: null | string @go(VPCID,*string) -} - -#ConnectSettingsParameters: { - // The DNS IP addresses of the domain to connect to. - // +kubebuilder:validation:Optional - customerDnsIps: [...null | string] @go(CustomerDNSIps,[]*string) - - // The username corresponding to the password provided. - // +kubebuilder:validation:Optional - customerUsername?: null | string @go(CustomerUsername,*string) - - // The identifiers of the subnets for the directory servers (2 subnets in 2 different AZs). - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdsRefs?: [...v1.#Reference] @go(SubnetIdsRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdsSelector?: null | v1.#Selector @go(SubnetIdsSelector,*v1.Selector) - - // The identifier of the VPC that the directory is in. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -#DirectoryInitParameters: { - // The alias for the directory (must be unique amongst all aliases in AWS). Required for enable_sso. - alias?: null | string @go(Alias,*string) - - // Connector related information about the directory. Fields documented below. - connectSettings?: [...#ConnectSettingsInitParameters] @go(ConnectSettings,[]ConnectSettingsInitParameters) - - // A textual description for the directory. - description?: null | string @go(Description,*string) - - // The number of domain controllers desired in the directory. Minimum value of 2. Scaling of domain controllers is only supported for MicrosoftAD directories. - desiredNumberOfDomainControllers?: null | float64 @go(DesiredNumberOfDomainControllers,*float64) - - // The MicrosoftAD edition (Standard or Enterprise). Defaults to Enterprise. - edition?: null | string @go(Edition,*string) - - // Whether to enable single-sign on for the directory. Requires alias. Defaults to false. - enableSso?: null | bool @go(EnableSso,*bool) - - // The fully qualified name for the directory, such as corp.example.com - name?: null | string @go(Name,*string) - - // The short name of the directory, such as CORP. - shortName?: null | string @go(ShortName,*string) - - // (For SimpleAD and ADConnector types) The size of the directory (Small or Large are accepted values). Large by default. - size?: null | string @go(Size,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The directory type (SimpleAD, ADConnector or MicrosoftAD are accepted values). Defaults to SimpleAD. - type?: null | string @go(Type,*string) - - // VPC related information about the directory. Fields documented below. - vpcSettings?: [...#VPCSettingsInitParameters] @go(VPCSettings,[]VPCSettingsInitParameters) -} - -#DirectoryObservation: { - // The access URL for the directory, such as http://alias.awsapps.com. - accessUrl?: null | string @go(AccessURL,*string) - - // The alias for the directory (must be unique amongst all aliases in AWS). Required for enable_sso. - alias?: null | string @go(Alias,*string) - - // Connector related information about the directory. Fields documented below. - connectSettings?: [...#ConnectSettingsObservation] @go(ConnectSettings,[]ConnectSettingsObservation) - - // A list of IP addresses of the DNS servers for the directory or connector. - dnsIpAddresses?: [...null | string] @go(DNSIPAddresses,[]*string) - - // A textual description for the directory. - description?: null | string @go(Description,*string) - - // The number of domain controllers desired in the directory. Minimum value of 2. Scaling of domain controllers is only supported for MicrosoftAD directories. - desiredNumberOfDomainControllers?: null | float64 @go(DesiredNumberOfDomainControllers,*float64) - - // The MicrosoftAD edition (Standard or Enterprise). Defaults to Enterprise. - edition?: null | string @go(Edition,*string) - - // Whether to enable single-sign on for the directory. Requires alias. Defaults to false. - enableSso?: null | bool @go(EnableSso,*bool) - - // The directory identifier. - id?: null | string @go(ID,*string) - - // The fully qualified name for the directory, such as corp.example.com - name?: null | string @go(Name,*string) - - // The ID of the security group created by the directory. - securityGroupId?: null | string @go(SecurityGroupID,*string) - - // The short name of the directory, such as CORP. - shortName?: null | string @go(ShortName,*string) - - // (For SimpleAD and ADConnector types) The size of the directory (Small or Large are accepted values). Large by default. - size?: null | string @go(Size,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The directory type (SimpleAD, ADConnector or MicrosoftAD are accepted values). Defaults to SimpleAD. - type?: null | string @go(Type,*string) - - // VPC related information about the directory. Fields documented below. - vpcSettings?: [...#VPCSettingsObservation] @go(VPCSettings,[]VPCSettingsObservation) -} - -#DirectoryParameters: { - // The alias for the directory (must be unique amongst all aliases in AWS). Required for enable_sso. - // +kubebuilder:validation:Optional - alias?: null | string @go(Alias,*string) - - // Connector related information about the directory. Fields documented below. - // +kubebuilder:validation:Optional - connectSettings?: [...#ConnectSettingsParameters] @go(ConnectSettings,[]ConnectSettingsParameters) - - // A textual description for the directory. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The number of domain controllers desired in the directory. Minimum value of 2. Scaling of domain controllers is only supported for MicrosoftAD directories. - // +kubebuilder:validation:Optional - desiredNumberOfDomainControllers?: null | float64 @go(DesiredNumberOfDomainControllers,*float64) - - // The MicrosoftAD edition (Standard or Enterprise). Defaults to Enterprise. - // +kubebuilder:validation:Optional - edition?: null | string @go(Edition,*string) - - // Whether to enable single-sign on for the directory. Requires alias. Defaults to false. - // +kubebuilder:validation:Optional - enableSso?: null | bool @go(EnableSso,*bool) - - // The fully qualified name for the directory, such as corp.example.com - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The password for the directory administrator or connector user. - // +kubebuilder:validation:Optional - passwordSecretRef: v1.#SecretKeySelector @go(PasswordSecretRef) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The short name of the directory, such as CORP. - // +kubebuilder:validation:Optional - shortName?: null | string @go(ShortName,*string) - - // (For SimpleAD and ADConnector types) The size of the directory (Small or Large are accepted values). Large by default. - // +kubebuilder:validation:Optional - size?: null | string @go(Size,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The directory type (SimpleAD, ADConnector or MicrosoftAD are accepted values). Defaults to SimpleAD. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // VPC related information about the directory. Fields documented below. - // +kubebuilder:validation:Optional - vpcSettings?: [...#VPCSettingsParameters] @go(VPCSettings,[]VPCSettingsParameters) -} - -#VPCSettingsInitParameters: { -} - -#VPCSettingsObservation: { - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The identifiers of the subnets for the directory servers (2 subnets in 2 different AZs). - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // The identifier of the VPC that the directory is in. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCSettingsParameters: { - // The identifiers of the subnets for the directory servers (2 subnets in 2 different AZs). - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdsRefs?: [...v1.#Reference] @go(SubnetIdsRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdsSelector?: null | v1.#Selector @go(SubnetIdsSelector,*v1.Selector) - - // The identifier of the VPC that the directory is in. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// DirectorySpec defines the desired state of Directory -#DirectorySpec: { - v1.#ResourceSpec - forProvider: #DirectoryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DirectoryInitParameters @go(InitProvider) -} - -// DirectoryStatus defines the observed state of Directory. -#DirectoryStatus: { - v1.#ResourceStatus - atProvider?: #DirectoryObservation @go(AtProvider) -} - -// Directory is the Schema for the Directorys API. Provides a directory in AWS Directory Service. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Directory: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.passwordSecretRef)",message="spec.forProvider.passwordSecretRef is a required parameter" - spec: #DirectorySpec @go(Spec) - status?: #DirectoryStatus @go(Status) -} - -// DirectoryList contains a list of Directorys -#DirectoryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Directory] @go(Items,[]Directory) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ds/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ds/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 1e71f47..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ds/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ds/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=ds.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "ds.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ds/v1beta1/zz_shareddirectory_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ds/v1beta1/zz_shareddirectory_types_go_gen.cue deleted file mode 100644 index fc070f8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ds/v1beta1/zz_shareddirectory_types_go_gen.cue +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SharedDirectoryInitParameters: { - // Method used when sharing a directory. Valid values are ORGANIZATIONS and HANDSHAKE. Default is HANDSHAKE. - method?: null | string @go(Method,*string) - - // Identifier for the directory consumer account with whom the directory is to be shared. See below. - target?: [...#TargetInitParameters] @go(Target,[]TargetInitParameters) -} - -#SharedDirectoryObservation: { - // Identifier of the Managed Microsoft AD directory that you want to share with other accounts. - directoryId?: null | string @go(DirectoryID,*string) - - // Identifier of the shared directory. - id?: null | string @go(ID,*string) - - // Method used when sharing a directory. Valid values are ORGANIZATIONS and HANDSHAKE. Default is HANDSHAKE. - method?: null | string @go(Method,*string) - - // Identifier of the directory that is stored in the directory consumer account that corresponds to the shared directory in the owner account. - sharedDirectoryId?: null | string @go(SharedDirectoryID,*string) - - // Identifier for the directory consumer account with whom the directory is to be shared. See below. - target?: [...#TargetObservation] @go(Target,[]TargetObservation) -} - -#SharedDirectoryParameters: { - // Identifier of the Managed Microsoft AD directory that you want to share with other accounts. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ds/v1beta1.Directory - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - directoryId?: null | string @go(DirectoryID,*string) - - // Reference to a Directory in ds to populate directoryId. - // +kubebuilder:validation:Optional - directoryIdRef?: null | v1.#Reference @go(DirectoryIDRef,*v1.Reference) - - // Selector for a Directory in ds to populate directoryId. - // +kubebuilder:validation:Optional - directoryIdSelector?: null | v1.#Selector @go(DirectoryIDSelector,*v1.Selector) - - // Method used when sharing a directory. Valid values are ORGANIZATIONS and HANDSHAKE. Default is HANDSHAKE. - // +kubebuilder:validation:Optional - method?: null | string @go(Method,*string) - - // Message sent by the directory owner to the directory consumer to help the directory consumer administrator determine whether to approve or reject the share invitation. - // +kubebuilder:validation:Optional - notesSecretRef?: null | v1.#SecretKeySelector @go(NotesSecretRef,*v1.SecretKeySelector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Identifier for the directory consumer account with whom the directory is to be shared. See below. - // +kubebuilder:validation:Optional - target?: [...#TargetParameters] @go(Target,[]TargetParameters) -} - -#TargetInitParameters: { - // Identifier of the directory consumer account. - id?: null | string @go(ID,*string) - - // Type of identifier to be used in the id field. Valid value is ACCOUNT. Default is ACCOUNT. - type?: null | string @go(Type,*string) -} - -#TargetObservation: { - // Identifier of the directory consumer account. - id?: null | string @go(ID,*string) - - // Type of identifier to be used in the id field. Valid value is ACCOUNT. Default is ACCOUNT. - type?: null | string @go(Type,*string) -} - -#TargetParameters: { - // Identifier of the directory consumer account. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Type of identifier to be used in the id field. Valid value is ACCOUNT. Default is ACCOUNT. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// SharedDirectorySpec defines the desired state of SharedDirectory -#SharedDirectorySpec: { - v1.#ResourceSpec - forProvider: #SharedDirectoryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SharedDirectoryInitParameters @go(InitProvider) -} - -// SharedDirectoryStatus defines the observed state of SharedDirectory. -#SharedDirectoryStatus: { - v1.#ResourceStatus - atProvider?: #SharedDirectoryObservation @go(AtProvider) -} - -// SharedDirectory is the Schema for the SharedDirectorys API. Manages a directory in your account (directory owner) shared with another account (directory consumer). -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SharedDirectory: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.target) || (has(self.initProvider) && has(self.initProvider.target))",message="spec.forProvider.target is a required parameter" - spec: #SharedDirectorySpec @go(Spec) - status?: #SharedDirectoryStatus @go(Status) -} - -// SharedDirectoryList contains a list of SharedDirectorys -#SharedDirectoryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SharedDirectory] @go(Items,[]SharedDirectory) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_contributorinsights_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_contributorinsights_types_go_gen.cue deleted file mode 100644 index 6a7c075..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_contributorinsights_types_go_gen.cue +++ /dev/null @@ -1,94 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dynamodb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ContributorInsightsInitParameters: { - // The global secondary index name - indexName?: null | string @go(IndexName,*string) -} - -#ContributorInsightsObservation: { - id?: null | string @go(ID,*string) - - // The global secondary index name - indexName?: null | string @go(IndexName,*string) - - // The name of the table to enable contributor insights - tableName?: null | string @go(TableName,*string) -} - -#ContributorInsightsParameters: { - // The global secondary index name - // +kubebuilder:validation:Optional - indexName?: null | string @go(IndexName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the table to enable contributor insights - // +crossplane:generate:reference:type=Table - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) - - // Reference to a Table to populate tableName. - // +kubebuilder:validation:Optional - tableNameRef?: null | v1.#Reference @go(TableNameRef,*v1.Reference) - - // Selector for a Table to populate tableName. - // +kubebuilder:validation:Optional - tableNameSelector?: null | v1.#Selector @go(TableNameSelector,*v1.Selector) -} - -// ContributorInsightsSpec defines the desired state of ContributorInsights -#ContributorInsightsSpec: { - v1.#ResourceSpec - forProvider: #ContributorInsightsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ContributorInsightsInitParameters @go(InitProvider) -} - -// ContributorInsightsStatus defines the observed state of ContributorInsights. -#ContributorInsightsStatus: { - v1.#ResourceStatus - atProvider?: #ContributorInsightsObservation @go(AtProvider) -} - -// ContributorInsights is the Schema for the ContributorInsightss API. Provides a DynamoDB contributor insights resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ContributorInsights: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ContributorInsightsSpec @go(Spec) - status?: #ContributorInsightsStatus @go(Status) -} - -// ContributorInsightsList contains a list of ContributorInsightss -#ContributorInsightsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ContributorInsights] @go(Items,[]ContributorInsights) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_globaltable_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_globaltable_types_go_gen.cue deleted file mode 100644 index d19844d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_globaltable_types_go_gen.cue +++ /dev/null @@ -1,100 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dynamodb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GlobalTableInitParameters: { - // Underlying DynamoDB Table. At least 1 replica must be defined. See below. - replica?: [...#ReplicaInitParameters] @go(Replica,[]ReplicaInitParameters) -} - -#GlobalTableObservation: { - // The ARN of the DynamoDB Global Table - arn?: null | string @go(Arn,*string) - - // The name of the DynamoDB Global Table - id?: null | string @go(ID,*string) - - // Underlying DynamoDB Table. At least 1 replica must be defined. See below. - replica?: [...#ReplicaObservation] @go(Replica,[]ReplicaObservation) -} - -#GlobalTableParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Underlying DynamoDB Table. At least 1 replica must be defined. See below. - // +kubebuilder:validation:Optional - replica?: [...#ReplicaParameters] @go(Replica,[]ReplicaParameters) -} - -#ReplicaInitParameters: { - // AWS region name of replica DynamoDB TableE.g., us-east-1 - regionName?: null | string @go(RegionName,*string) -} - -#ReplicaObservation: { - // AWS region name of replica DynamoDB TableE.g., us-east-1 - regionName?: null | string @go(RegionName,*string) -} - -#ReplicaParameters: { - // AWS region name of replica DynamoDB TableE.g., us-east-1 - // +kubebuilder:validation:Optional - regionName?: null | string @go(RegionName,*string) -} - -// GlobalTableSpec defines the desired state of GlobalTable -#GlobalTableSpec: { - v1.#ResourceSpec - forProvider: #GlobalTableParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GlobalTableInitParameters @go(InitProvider) -} - -// GlobalTableStatus defines the observed state of GlobalTable. -#GlobalTableStatus: { - v1.#ResourceStatus - atProvider?: #GlobalTableObservation @go(AtProvider) -} - -// GlobalTable is the Schema for the GlobalTables API. Manages DynamoDB Global Tables V1 (version 2017.11.29) -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GlobalTable: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.replica) || (has(self.initProvider) && has(self.initProvider.replica))",message="spec.forProvider.replica is a required parameter" - spec: #GlobalTableSpec @go(Spec) - status?: #GlobalTableStatus @go(Status) -} - -// GlobalTableList contains a list of GlobalTables -#GlobalTableList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GlobalTable] @go(Items,[]GlobalTable) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index ee8270e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dynamodb/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=dynamodb.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "dynamodb.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_kinesisstreamingdestination_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_kinesisstreamingdestination_types_go_gen.cue deleted file mode 100644 index 54ad2fa..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_kinesisstreamingdestination_types_go_gen.cue +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dynamodb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#KinesisStreamingDestinationInitParameters: { -} - -#KinesisStreamingDestinationObservation: { - // The table_name and stream_arn separated by a comma (,). - id?: null | string @go(ID,*string) - - // The ARN for a Kinesis data stream. This must exist in the same account and region as the DynamoDB table. - streamArn?: null | string @go(StreamArn,*string) - - // The name of the DynamoDB table. There - // can only be one Kinesis streaming destination for a given DynamoDB table. - tableName?: null | string @go(TableName,*string) -} - -#KinesisStreamingDestinationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN for a Kinesis data stream. This must exist in the same account and region as the DynamoDB table. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kinesis/v1beta1.Stream - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - streamArn?: null | string @go(StreamArn,*string) - - // Reference to a Stream in kinesis to populate streamArn. - // +kubebuilder:validation:Optional - streamArnRef?: null | v1.#Reference @go(StreamArnRef,*v1.Reference) - - // Selector for a Stream in kinesis to populate streamArn. - // +kubebuilder:validation:Optional - streamArnSelector?: null | v1.#Selector @go(StreamArnSelector,*v1.Selector) - - // The name of the DynamoDB table. There - // can only be one Kinesis streaming destination for a given DynamoDB table. - // +crossplane:generate:reference:type=Table - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) - - // Reference to a Table to populate tableName. - // +kubebuilder:validation:Optional - tableNameRef?: null | v1.#Reference @go(TableNameRef,*v1.Reference) - - // Selector for a Table to populate tableName. - // +kubebuilder:validation:Optional - tableNameSelector?: null | v1.#Selector @go(TableNameSelector,*v1.Selector) -} - -// KinesisStreamingDestinationSpec defines the desired state of KinesisStreamingDestination -#KinesisStreamingDestinationSpec: { - v1.#ResourceSpec - forProvider: #KinesisStreamingDestinationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #KinesisStreamingDestinationInitParameters @go(InitProvider) -} - -// KinesisStreamingDestinationStatus defines the observed state of KinesisStreamingDestination. -#KinesisStreamingDestinationStatus: { - v1.#ResourceStatus - atProvider?: #KinesisStreamingDestinationObservation @go(AtProvider) -} - -// KinesisStreamingDestination is the Schema for the KinesisStreamingDestinations API. Enables a Kinesis streaming destination for a DynamoDB table -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#KinesisStreamingDestination: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #KinesisStreamingDestinationSpec @go(Spec) - status?: #KinesisStreamingDestinationStatus @go(Status) -} - -// KinesisStreamingDestinationList contains a list of KinesisStreamingDestinations -#KinesisStreamingDestinationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#KinesisStreamingDestination] @go(Items,[]KinesisStreamingDestination) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_table_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_table_types_go_gen.cue deleted file mode 100644 index cf28ec0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_table_types_go_gen.cue +++ /dev/null @@ -1,558 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dynamodb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AttributeInitParameters: { - // Name of the attribute - name?: null | string @go(Name,*string) - - // Attribute type. Valid values are S (string), N (number), B (binary). - type?: null | string @go(Type,*string) -} - -#AttributeObservation: { - // Name of the attribute - name?: null | string @go(Name,*string) - - // Attribute type. Valid values are S (string), N (number), B (binary). - type?: null | string @go(Type,*string) -} - -#AttributeParameters: { - // Name of the attribute - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Attribute type. Valid values are S (string), N (number), B (binary). - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#GlobalSecondaryIndexInitParameters: { - // Name of the hash key in the index; must be defined as an attribute in the resource. - hashKey?: null | string @go(HashKey,*string) - - // Name of the index. - name?: null | string @go(Name,*string) - - // Only required with INCLUDE as a projection type; a list of attributes to project into the index. These do not need to be defined as attributes on the table. - nonKeyAttributes?: [...null | string] @go(NonKeyAttributes,[]*string) - - // One of ALL, INCLUDE or KEYS_ONLY where ALL projects every attribute into the index, KEYS_ONLY projects into the index only the table and index hash_key and sort_key attributes , INCLUDE projects into the index all of the attributes that are defined in non_key_attributes in addition to the attributes that thatKEYS_ONLY project. - projectionType?: null | string @go(ProjectionType,*string) - - // Name of the range key; must be defined - rangeKey?: null | string @go(RangeKey,*string) - - // Number of read units for this index. Must be set if billing_mode is set to PROVISIONED. - readCapacity?: null | float64 @go(ReadCapacity,*float64) - - // Number of write units for this index. Must be set if billing_mode is set to PROVISIONED. - writeCapacity?: null | float64 @go(WriteCapacity,*float64) -} - -#GlobalSecondaryIndexObservation: { - // Name of the hash key in the index; must be defined as an attribute in the resource. - hashKey?: null | string @go(HashKey,*string) - - // Name of the index. - name?: null | string @go(Name,*string) - - // Only required with INCLUDE as a projection type; a list of attributes to project into the index. These do not need to be defined as attributes on the table. - nonKeyAttributes?: [...null | string] @go(NonKeyAttributes,[]*string) - - // One of ALL, INCLUDE or KEYS_ONLY where ALL projects every attribute into the index, KEYS_ONLY projects into the index only the table and index hash_key and sort_key attributes , INCLUDE projects into the index all of the attributes that are defined in non_key_attributes in addition to the attributes that thatKEYS_ONLY project. - projectionType?: null | string @go(ProjectionType,*string) - - // Name of the range key; must be defined - rangeKey?: null | string @go(RangeKey,*string) - - // Number of read units for this index. Must be set if billing_mode is set to PROVISIONED. - readCapacity?: null | float64 @go(ReadCapacity,*float64) - - // Number of write units for this index. Must be set if billing_mode is set to PROVISIONED. - writeCapacity?: null | float64 @go(WriteCapacity,*float64) -} - -#GlobalSecondaryIndexParameters: { - // Name of the hash key in the index; must be defined as an attribute in the resource. - // +kubebuilder:validation:Optional - hashKey?: null | string @go(HashKey,*string) - - // Name of the index. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Only required with INCLUDE as a projection type; a list of attributes to project into the index. These do not need to be defined as attributes on the table. - // +kubebuilder:validation:Optional - nonKeyAttributes?: [...null | string] @go(NonKeyAttributes,[]*string) - - // One of ALL, INCLUDE or KEYS_ONLY where ALL projects every attribute into the index, KEYS_ONLY projects into the index only the table and index hash_key and sort_key attributes , INCLUDE projects into the index all of the attributes that are defined in non_key_attributes in addition to the attributes that thatKEYS_ONLY project. - // +kubebuilder:validation:Optional - projectionType?: null | string @go(ProjectionType,*string) - - // Name of the range key; must be defined - // +kubebuilder:validation:Optional - rangeKey?: null | string @go(RangeKey,*string) - - // Number of read units for this index. Must be set if billing_mode is set to PROVISIONED. - // +kubebuilder:validation:Optional - readCapacity?: null | float64 @go(ReadCapacity,*float64) - - // Number of write units for this index. Must be set if billing_mode is set to PROVISIONED. - // +kubebuilder:validation:Optional - writeCapacity?: null | float64 @go(WriteCapacity,*float64) -} - -#LocalSecondaryIndexInitParameters: { - // Name of the index - name?: null | string @go(Name,*string) - - // Only required with INCLUDE as a projection type; a list of attributes to project into the index. These do not need to be defined as attributes on the table. - nonKeyAttributes?: [...null | string] @go(NonKeyAttributes,[]*string) - - // One of ALL, INCLUDE or KEYS_ONLY where ALL projects every attribute into the index, KEYS_ONLY projects into the index only the table and index hash_key and sort_key attributes , INCLUDE projects into the index all of the attributes that are defined in non_key_attributes in addition to the attributes that thatKEYS_ONLY project. - projectionType?: null | string @go(ProjectionType,*string) - - // Name of the range key. - rangeKey?: null | string @go(RangeKey,*string) -} - -#LocalSecondaryIndexObservation: { - // Name of the index - name?: null | string @go(Name,*string) - - // Only required with INCLUDE as a projection type; a list of attributes to project into the index. These do not need to be defined as attributes on the table. - nonKeyAttributes?: [...null | string] @go(NonKeyAttributes,[]*string) - - // One of ALL, INCLUDE or KEYS_ONLY where ALL projects every attribute into the index, KEYS_ONLY projects into the index only the table and index hash_key and sort_key attributes , INCLUDE projects into the index all of the attributes that are defined in non_key_attributes in addition to the attributes that thatKEYS_ONLY project. - projectionType?: null | string @go(ProjectionType,*string) - - // Name of the range key. - rangeKey?: null | string @go(RangeKey,*string) -} - -#LocalSecondaryIndexParameters: { - // Name of the index - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Only required with INCLUDE as a projection type; a list of attributes to project into the index. These do not need to be defined as attributes on the table. - // +kubebuilder:validation:Optional - nonKeyAttributes?: [...null | string] @go(NonKeyAttributes,[]*string) - - // One of ALL, INCLUDE or KEYS_ONLY where ALL projects every attribute into the index, KEYS_ONLY projects into the index only the table and index hash_key and sort_key attributes , INCLUDE projects into the index all of the attributes that are defined in non_key_attributes in addition to the attributes that thatKEYS_ONLY project. - // +kubebuilder:validation:Optional - projectionType?: null | string @go(ProjectionType,*string) - - // Name of the range key. - // +kubebuilder:validation:Optional - rangeKey?: null | string @go(RangeKey,*string) -} - -#PointInTimeRecoveryInitParameters: { - // Whether to enable point-in-time recovery. It can take 10 minutes to enable for new tables. If the point_in_time_recovery block is not provided, this defaults to false. - enabled?: null | bool @go(Enabled,*bool) -} - -#PointInTimeRecoveryObservation: { - // Whether to enable point-in-time recovery. It can take 10 minutes to enable for new tables. If the point_in_time_recovery block is not provided, this defaults to false. - enabled?: null | bool @go(Enabled,*bool) -} - -#PointInTimeRecoveryParameters: { - // Whether to enable point-in-time recovery. It can take 10 minutes to enable for new tables. If the point_in_time_recovery block is not provided, this defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#ServerSideEncryptionInitParameters: { - // Whether or not to enable encryption at rest using an AWS managed KMS customer master key (CMK). If enabled is false then server-side encryption is set to AWS-owned key (shown as DEFAULT in the AWS console). Potentially confusingly, if enabled is true and no kms_key_arn is specified then server-side encryption is set to the default KMS-managed key (shown as KMS in the AWS console). The AWS KMS documentation explains the difference between AWS-owned and KMS-managed keys. - enabled?: null | bool @go(Enabled,*bool) - - // ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) -} - -#ServerSideEncryptionObservation: { - // Whether or not to enable encryption at rest using an AWS managed KMS customer master key (CMK). If enabled is false then server-side encryption is set to AWS-owned key (shown as DEFAULT in the AWS console). Potentially confusingly, if enabled is true and no kms_key_arn is specified then server-side encryption is set to the default KMS-managed key (shown as KMS in the AWS console). The AWS KMS documentation explains the difference between AWS-owned and KMS-managed keys. - enabled?: null | bool @go(Enabled,*bool) - - // ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) -} - -#ServerSideEncryptionParameters: { - // Whether or not to enable encryption at rest using an AWS managed KMS customer master key (CMK). If enabled is false then server-side encryption is set to AWS-owned key (shown as DEFAULT in the AWS console). Potentially confusingly, if enabled is true and no kms_key_arn is specified then server-side encryption is set to the default KMS-managed key (shown as KMS in the AWS console). The AWS KMS documentation explains the difference between AWS-owned and KMS-managed keys. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys. - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) -} - -#TTLInitParameters: { - // Name of the table attribute to store the TTL timestamp in. - attributeName?: null | string @go(AttributeName,*string) - - // Whether TTL is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#TTLObservation: { - // Name of the table attribute to store the TTL timestamp in. - attributeName?: null | string @go(AttributeName,*string) - - // Whether TTL is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#TTLParameters: { - // Name of the table attribute to store the TTL timestamp in. - // +kubebuilder:validation:Optional - attributeName?: null | string @go(AttributeName,*string) - - // Whether TTL is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#TableInitParameters: { - // Set of nested attribute definitions. Only required for hash_key and range_key attributes. See below. - attribute?: [...#AttributeInitParameters] @go(Attribute,[]AttributeInitParameters) - - // Controls how you are charged for read and write throughput and how you manage capacity. The valid values are PROVISIONED and PAY_PER_REQUEST. Defaults to PROVISIONED. - billingMode?: null | string @go(BillingMode,*string) - - // Enables deletion protection for table. Defaults to false. - deletionProtectionEnabled?: null | bool @go(DeletionProtectionEnabled,*bool) - - // Describe a GSI for the table; subject to the normal limits on the number of GSIs, projected attributes, etc. See below. - globalSecondaryIndex?: [...#GlobalSecondaryIndexInitParameters] @go(GlobalSecondaryIndex,[]GlobalSecondaryIndexInitParameters) - - // Attribute to use as the hash (partition) key. Must also be defined as an attribute. See below. - hashKey?: null | string @go(HashKey,*string) - - // Describe an LSI on the table; these can only be allocated at creation so you cannot change this definition after you have created the resource. See below. - localSecondaryIndex?: [...#LocalSecondaryIndexInitParameters] @go(LocalSecondaryIndex,[]LocalSecondaryIndexInitParameters) - - // Enable point-in-time recovery options. See below. - pointInTimeRecovery?: [...#PointInTimeRecoveryInitParameters] @go(PointInTimeRecovery,[]PointInTimeRecoveryInitParameters) - - // Attribute to use as the range (sort) key. Must also be defined as an attribute, see below. - rangeKey?: null | string @go(RangeKey,*string) - - // Number of read units for this table. If the billing_mode is PROVISIONED, this field is required. - readCapacity?: null | float64 @go(ReadCapacity,*float64) - - // Configuration block(s) with DynamoDB Global Tables V2 (version 2019.11.21) replication configurations. See below. - replica?: [...#TableReplicaInitParameters] @go(Replica,[]TableReplicaInitParameters) - - // Time of the point-in-time recovery point to restore. - restoreDateTime?: null | string @go(RestoreDateTime,*string) - - // Name of the table to restore. Must match the name of an existing table. - restoreSourceName?: null | string @go(RestoreSourceName,*string) - - // If set, restores table to the most recent point-in-time recovery point. - restoreToLatestTime?: null | bool @go(RestoreToLatestTime,*bool) - - // Encryption at rest options. AWS DynamoDB tables are automatically encrypted at rest with an AWS-owned Customer Master Key if this argument isn't specified. See below. - serverSideEncryption?: [...#ServerSideEncryptionInitParameters] @go(ServerSideEncryption,[]ServerSideEncryptionInitParameters) - - // Whether Streams are enabled. - streamEnabled?: null | bool @go(StreamEnabled,*bool) - - // When an item in the table is modified, StreamViewType determines what information is written to the table's stream. Valid values are KEYS_ONLY, NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES. - streamViewType?: null | string @go(StreamViewType,*string) - - // Configuration block for TTL. See below. - ttl?: [...#TTLInitParameters] @go(TTL,[]TTLInitParameters) - - // Storage class of the table. - // Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. - // Default value is STANDARD. - tableClass?: null | string @go(TableClass,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Number of write units for this table. If the billing_mode is PROVISIONED, this field is required. - writeCapacity?: null | float64 @go(WriteCapacity,*float64) -} - -#TableObservation: { - // ARN of the table - arn?: null | string @go(Arn,*string) - - // Set of nested attribute definitions. Only required for hash_key and range_key attributes. See below. - attribute?: [...#AttributeObservation] @go(Attribute,[]AttributeObservation) - - // Controls how you are charged for read and write throughput and how you manage capacity. The valid values are PROVISIONED and PAY_PER_REQUEST. Defaults to PROVISIONED. - billingMode?: null | string @go(BillingMode,*string) - - // Enables deletion protection for table. Defaults to false. - deletionProtectionEnabled?: null | bool @go(DeletionProtectionEnabled,*bool) - - // Describe a GSI for the table; subject to the normal limits on the number of GSIs, projected attributes, etc. See below. - globalSecondaryIndex?: [...#GlobalSecondaryIndexObservation] @go(GlobalSecondaryIndex,[]GlobalSecondaryIndexObservation) - - // Attribute to use as the hash (partition) key. Must also be defined as an attribute. See below. - hashKey?: null | string @go(HashKey,*string) - - // Name of the table - id?: null | string @go(ID,*string) - - // Describe an LSI on the table; these can only be allocated at creation so you cannot change this definition after you have created the resource. See below. - localSecondaryIndex?: [...#LocalSecondaryIndexObservation] @go(LocalSecondaryIndex,[]LocalSecondaryIndexObservation) - - // Enable point-in-time recovery options. See below. - pointInTimeRecovery?: [...#PointInTimeRecoveryObservation] @go(PointInTimeRecovery,[]PointInTimeRecoveryObservation) - - // Attribute to use as the range (sort) key. Must also be defined as an attribute, see below. - rangeKey?: null | string @go(RangeKey,*string) - - // Number of read units for this table. If the billing_mode is PROVISIONED, this field is required. - readCapacity?: null | float64 @go(ReadCapacity,*float64) - - // Configuration block(s) with DynamoDB Global Tables V2 (version 2019.11.21) replication configurations. See below. - replica?: [...#TableReplicaObservation] @go(Replica,[]TableReplicaObservation) - - // Time of the point-in-time recovery point to restore. - restoreDateTime?: null | string @go(RestoreDateTime,*string) - - // Name of the table to restore. Must match the name of an existing table. - restoreSourceName?: null | string @go(RestoreSourceName,*string) - - // If set, restores table to the most recent point-in-time recovery point. - restoreToLatestTime?: null | bool @go(RestoreToLatestTime,*bool) - - // Encryption at rest options. AWS DynamoDB tables are automatically encrypted at rest with an AWS-owned Customer Master Key if this argument isn't specified. See below. - serverSideEncryption?: [...#ServerSideEncryptionObservation] @go(ServerSideEncryption,[]ServerSideEncryptionObservation) - - // ARN of the Table Stream. Only available when stream_enabled = true - streamArn?: null | string @go(StreamArn,*string) - - // Whether Streams are enabled. - streamEnabled?: null | bool @go(StreamEnabled,*bool) - - // Timestamp, in ISO 8601 format, for this stream. Note that this timestamp is not a unique identifier for the stream on its own. However, the combination of AWS customer ID, table name and this field is guaranteed to be unique. It can be used for creating CloudWatch Alarms. Only available when stream_enabled = true. - streamLabel?: null | string @go(StreamLabel,*string) - - // When an item in the table is modified, StreamViewType determines what information is written to the table's stream. Valid values are KEYS_ONLY, NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES. - streamViewType?: null | string @go(StreamViewType,*string) - - // Configuration block for TTL. See below. - ttl?: [...#TTLObservation] @go(TTL,[]TTLObservation) - - // Storage class of the table. - // Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. - // Default value is STANDARD. - tableClass?: null | string @go(TableClass,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Number of write units for this table. If the billing_mode is PROVISIONED, this field is required. - writeCapacity?: null | float64 @go(WriteCapacity,*float64) -} - -#TableParameters: { - // Set of nested attribute definitions. Only required for hash_key and range_key attributes. See below. - // +kubebuilder:validation:Optional - attribute?: [...#AttributeParameters] @go(Attribute,[]AttributeParameters) - - // Controls how you are charged for read and write throughput and how you manage capacity. The valid values are PROVISIONED and PAY_PER_REQUEST. Defaults to PROVISIONED. - // +kubebuilder:validation:Optional - billingMode?: null | string @go(BillingMode,*string) - - // Enables deletion protection for table. Defaults to false. - // +kubebuilder:validation:Optional - deletionProtectionEnabled?: null | bool @go(DeletionProtectionEnabled,*bool) - - // Describe a GSI for the table; subject to the normal limits on the number of GSIs, projected attributes, etc. See below. - // +kubebuilder:validation:Optional - globalSecondaryIndex?: [...#GlobalSecondaryIndexParameters] @go(GlobalSecondaryIndex,[]GlobalSecondaryIndexParameters) - - // Attribute to use as the hash (partition) key. Must also be defined as an attribute. See below. - // +kubebuilder:validation:Optional - hashKey?: null | string @go(HashKey,*string) - - // Describe an LSI on the table; these can only be allocated at creation so you cannot change this definition after you have created the resource. See below. - // +kubebuilder:validation:Optional - localSecondaryIndex?: [...#LocalSecondaryIndexParameters] @go(LocalSecondaryIndex,[]LocalSecondaryIndexParameters) - - // Enable point-in-time recovery options. See below. - // +kubebuilder:validation:Optional - pointInTimeRecovery?: [...#PointInTimeRecoveryParameters] @go(PointInTimeRecovery,[]PointInTimeRecoveryParameters) - - // Attribute to use as the range (sort) key. Must also be defined as an attribute, see below. - // +kubebuilder:validation:Optional - rangeKey?: null | string @go(RangeKey,*string) - - // Number of read units for this table. If the billing_mode is PROVISIONED, this field is required. - // +kubebuilder:validation:Optional - readCapacity?: null | float64 @go(ReadCapacity,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block(s) with DynamoDB Global Tables V2 (version 2019.11.21) replication configurations. See below. - // +kubebuilder:validation:Optional - replica?: [...#TableReplicaParameters] @go(Replica,[]TableReplicaParameters) - - // Time of the point-in-time recovery point to restore. - // +kubebuilder:validation:Optional - restoreDateTime?: null | string @go(RestoreDateTime,*string) - - // Name of the table to restore. Must match the name of an existing table. - // +kubebuilder:validation:Optional - restoreSourceName?: null | string @go(RestoreSourceName,*string) - - // If set, restores table to the most recent point-in-time recovery point. - // +kubebuilder:validation:Optional - restoreToLatestTime?: null | bool @go(RestoreToLatestTime,*bool) - - // Encryption at rest options. AWS DynamoDB tables are automatically encrypted at rest with an AWS-owned Customer Master Key if this argument isn't specified. See below. - // +kubebuilder:validation:Optional - serverSideEncryption?: [...#ServerSideEncryptionParameters] @go(ServerSideEncryption,[]ServerSideEncryptionParameters) - - // Whether Streams are enabled. - // +kubebuilder:validation:Optional - streamEnabled?: null | bool @go(StreamEnabled,*bool) - - // When an item in the table is modified, StreamViewType determines what information is written to the table's stream. Valid values are KEYS_ONLY, NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES. - // +kubebuilder:validation:Optional - streamViewType?: null | string @go(StreamViewType,*string) - - // Configuration block for TTL. See below. - // +kubebuilder:validation:Optional - ttl?: [...#TTLParameters] @go(TTL,[]TTLParameters) - - // Storage class of the table. - // Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. - // Default value is STANDARD. - // +kubebuilder:validation:Optional - tableClass?: null | string @go(TableClass,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Number of write units for this table. If the billing_mode is PROVISIONED, this field is required. - // +kubebuilder:validation:Optional - writeCapacity?: null | float64 @go(WriteCapacity,*float64) -} - -#TableReplicaInitParameters: { - // ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Whether to enable Point In Time Recovery for the replica. Default is false. - pointInTimeRecovery?: null | bool @go(PointInTimeRecovery,*bool) - - // Whether to propagate the global table's tags to a replica. Default is false. Changes to tags only move in one direction: from global (source) to replica. In other words, tag drift on a replica will not trigger an update. Tag or replica changes on the global table, whether from drift or configuration changes, are propagated to replicas. Changing from true to false on a subsequent apply means replica tags are left as they were, unmanaged, not deleted. - propagateTags?: null | bool @go(PropagateTags,*bool) - - // Region name of the replica. - regionName?: null | string @go(RegionName,*string) -} - -#TableReplicaObservation: { - // ARN of the replica - arn?: null | string @go(Arn,*string) - - // ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Whether to enable Point In Time Recovery for the replica. Default is false. - pointInTimeRecovery?: null | bool @go(PointInTimeRecovery,*bool) - - // Whether to propagate the global table's tags to a replica. Default is false. Changes to tags only move in one direction: from global (source) to replica. In other words, tag drift on a replica will not trigger an update. Tag or replica changes on the global table, whether from drift or configuration changes, are propagated to replicas. Changing from true to false on a subsequent apply means replica tags are left as they were, unmanaged, not deleted. - propagateTags?: null | bool @go(PropagateTags,*bool) - - // Region name of the replica. - regionName?: null | string @go(RegionName,*string) - - // ARN of the Table Stream. Only available when stream_enabled = true - streamArn?: null | string @go(StreamArn,*string) - - // Timestamp, in ISO 8601 format, for this stream. Note that this timestamp is not a unique identifier for the stream on its own. However, the combination of AWS customer ID, table name and this field is guaranteed to be unique. It can be used for creating CloudWatch Alarms. Only available when stream_enabled = true. - streamLabel?: null | string @go(StreamLabel,*string) -} - -#TableReplicaParameters: { - // ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys. - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Whether to enable Point In Time Recovery for the replica. Default is false. - // +kubebuilder:validation:Optional - pointInTimeRecovery?: null | bool @go(PointInTimeRecovery,*bool) - - // Whether to propagate the global table's tags to a replica. Default is false. Changes to tags only move in one direction: from global (source) to replica. In other words, tag drift on a replica will not trigger an update. Tag or replica changes on the global table, whether from drift or configuration changes, are propagated to replicas. Changing from true to false on a subsequent apply means replica tags are left as they were, unmanaged, not deleted. - // +kubebuilder:validation:Optional - propagateTags?: null | bool @go(PropagateTags,*bool) - - // Region name of the replica. - // +kubebuilder:validation:Optional - regionName?: null | string @go(RegionName,*string) -} - -// TableSpec defines the desired state of Table -#TableSpec: { - v1.#ResourceSpec - forProvider: #TableParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TableInitParameters @go(InitProvider) -} - -// TableStatus defines the observed state of Table. -#TableStatus: { - v1.#ResourceStatus - atProvider?: #TableObservation @go(AtProvider) -} - -// Table is the Schema for the Tables API. Provides a DynamoDB table resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Table: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TableSpec @go(Spec) - status?: #TableStatus @go(Status) -} - -// TableList contains a list of Tables -#TableList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Table] @go(Items,[]Table) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_tableitem_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_tableitem_types_go_gen.cue deleted file mode 100644 index 636d757..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_tableitem_types_go_gen.cue +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dynamodb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TableItemInitParameters: { - // Hash key to use for lookups and identification of the item - hashKey?: null | string @go(HashKey,*string) - - // JSON representation of a map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item. - item?: null | string @go(Item,*string) - - // Range key to use for lookups and identification of the item. Required if there is range key defined in the table. - rangeKey?: null | string @go(RangeKey,*string) -} - -#TableItemObservation: { - // Hash key to use for lookups and identification of the item - hashKey?: null | string @go(HashKey,*string) - id?: null | string @go(ID,*string) - - // JSON representation of a map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item. - item?: null | string @go(Item,*string) - - // Range key to use for lookups and identification of the item. Required if there is range key defined in the table. - rangeKey?: null | string @go(RangeKey,*string) - - // Name of the table to contain the item. - tableName?: null | string @go(TableName,*string) -} - -#TableItemParameters: { - // Hash key to use for lookups and identification of the item - // +kubebuilder:validation:Optional - hashKey?: null | string @go(HashKey,*string) - - // JSON representation of a map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item. - // +kubebuilder:validation:Optional - item?: null | string @go(Item,*string) - - // Range key to use for lookups and identification of the item. Required if there is range key defined in the table. - // +kubebuilder:validation:Optional - rangeKey?: null | string @go(RangeKey,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Name of the table to contain the item. - // +crossplane:generate:reference:type=Table - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) - - // Reference to a Table to populate tableName. - // +kubebuilder:validation:Optional - tableNameRef?: null | v1.#Reference @go(TableNameRef,*v1.Reference) - - // Selector for a Table to populate tableName. - // +kubebuilder:validation:Optional - tableNameSelector?: null | v1.#Selector @go(TableNameSelector,*v1.Selector) -} - -// TableItemSpec defines the desired state of TableItem -#TableItemSpec: { - v1.#ResourceSpec - forProvider: #TableItemParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TableItemInitParameters @go(InitProvider) -} - -// TableItemStatus defines the observed state of TableItem. -#TableItemStatus: { - v1.#ResourceStatus - atProvider?: #TableItemObservation @go(AtProvider) -} - -// TableItem is the Schema for the TableItems API. Provides a DynamoDB table item resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TableItem: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.hashKey) || (has(self.initProvider) && has(self.initProvider.hashKey))",message="spec.forProvider.hashKey is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.item) || (has(self.initProvider) && has(self.initProvider.item))",message="spec.forProvider.item is a required parameter" - spec: #TableItemSpec @go(Spec) - status?: #TableItemStatus @go(Status) -} - -// TableItemList contains a list of TableItems -#TableItemList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TableItem] @go(Items,[]TableItem) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_tablereplica_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_tablereplica_types_go_gen.cue deleted file mode 100644 index 193f7ba..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_tablereplica_types_go_gen.cue +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dynamodb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TableReplicaInitParameters_2: { - // Whether to enable Point In Time Recovery for the replica. Default is false. - pointInTimeRecovery?: null | bool @go(PointInTimeRecovery,*bool) - - // Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table. - tableClassOverride?: null | string @go(TableClassOverride,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TableReplicaObservation_2: { - // ARN of the table replica. - arn?: null | string @go(Arn,*string) - - // ARN of the main or global table which this resource will replicate. - globalTableArn?: null | string @go(GlobalTableArn,*string) - - // Name of the table and region of the main global table joined with a semicolon (e.g., TableName:us-east-1). - id?: null | string @go(ID,*string) - - // ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Whether to enable Point In Time Recovery for the replica. Default is false. - pointInTimeRecovery?: null | bool @go(PointInTimeRecovery,*bool) - - // Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table. - tableClassOverride?: null | string @go(TableClassOverride,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#TableReplicaParameters_2: { - // ARN of the main or global table which this resource will replicate. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/dynamodb/v1beta1.Table - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - globalTableArn?: null | string @go(GlobalTableArn,*string) - - // Reference to a Table in dynamodb to populate globalTableArn. - // +kubebuilder:validation:Optional - globalTableArnRef?: null | v1.#Reference @go(GlobalTableArnRef,*v1.Reference) - - // Selector for a Table in dynamodb to populate globalTableArn. - // +kubebuilder:validation:Optional - globalTableArnSelector?: null | v1.#Selector @go(GlobalTableArnSelector,*v1.Selector) - - // ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) - - // Whether to enable Point In Time Recovery for the replica. Default is false. - // +kubebuilder:validation:Optional - pointInTimeRecovery?: null | bool @go(PointInTimeRecovery,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table. - // +kubebuilder:validation:Optional - tableClassOverride?: null | string @go(TableClassOverride,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// TableReplicaSpec defines the desired state of TableReplica -#TableReplicaSpec: { - v1.#ResourceSpec - forProvider: #TableReplicaParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TableReplicaInitParameters_2 @go(InitProvider) -} - -// TableReplicaStatus defines the observed state of TableReplica. -#TableReplicaStatus: { - v1.#ResourceStatus - atProvider?: #TableReplicaObservation_2 @go(AtProvider) -} - -// TableReplica is the Schema for the TableReplicas API. Provides a DynamoDB table replica resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TableReplica: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TableReplicaSpec @go(Spec) - status?: #TableReplicaStatus @go(Status) -} - -// TableReplicaList contains a list of TableReplicas -#TableReplicaList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TableReplica] @go(Items,[]TableReplica) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_tag_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_tag_types_go_gen.cue deleted file mode 100644 index a4b8f92..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/dynamodb/v1beta1/zz_tag_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/dynamodb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TagInitParameters: { - // Tag value. - value?: null | string @go(Value,*string) -} - -#TagObservation: { - // DynamoDB resource identifier and key, separated by a comma (,) - id?: null | string @go(ID,*string) - - // Tag name. - key?: null | string @go(Key,*string) - - // Amazon Resource Name (ARN) of the DynamoDB resource to tag. - resourceArn?: null | string @go(ResourceArn,*string) - - // Tag value. - value?: null | string @go(Value,*string) -} - -#TagParameters: { - // Tag name. - // +kubebuilder:validation:Required - key?: null | string @go(Key,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Resource Name (ARN) of the DynamoDB resource to tag. - // +kubebuilder:validation:Required - resourceArn?: null | string @go(ResourceArn,*string) - - // Tag value. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// TagSpec defines the desired state of Tag -#TagSpec: { - v1.#ResourceSpec - forProvider: #TagParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TagInitParameters @go(InitProvider) -} - -// TagStatus defines the observed state of Tag. -#TagStatus: { - v1.#ResourceStatus - atProvider?: #TagObservation @go(AtProvider) -} - -// Tag is the Schema for the Tags API. Manages an individual DynamoDB resource tag -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Tag: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.value) || (has(self.initProvider) && has(self.initProvider.value))",message="spec.forProvider.value is a required parameter" - spec: #TagSpec @go(Spec) - status?: #TagStatus @go(Status) -} - -// TagList contains a list of Tags -#TagList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Tag] @go(Items,[]Tag) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ami_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ami_types_go_gen.cue deleted file mode 100644 index 4173ff7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ami_types_go_gen.cue +++ /dev/null @@ -1,446 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AMIInitParameters: { - // Machine architecture for created instances. Defaults to "x86_64". - architecture?: null | string @go(Architecture,*string) - - // Boot mode of the AMI. For more information, see Boot modes in the Amazon Elastic Compute Cloud User Guide. - bootMode?: null | string @go(BootMode,*string) - - // Date and time to deprecate the AMI. If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ) - deprecationTime?: null | string @go(DeprecationTime,*string) - - // Longer, human-readable description for the AMI. - description?: null | string @go(Description,*string) - - // Nested block describing an EBS block device that should be - // attached to created instances. The structure of this block is described below. - ebsBlockDevice?: [...#EBSBlockDeviceInitParameters] @go(EBSBlockDevice,[]EBSBlockDeviceInitParameters) - - // Whether enhanced networking with ENA is enabled. Defaults to false. - enaSupport?: null | bool @go(EnaSupport,*bool) - - // Nested block describing an ephemeral block device that - // should be attached to created instances. The structure of this block is described below. - ephemeralBlockDevice?: [...#EphemeralBlockDeviceInitParameters] @go(EphemeralBlockDevice,[]EphemeralBlockDeviceInitParameters) - - // Path to an S3 object containing an image manifest, e.g., created - // by the ec2-upload-bundle command in the EC2 command line tools. - imageLocation?: null | string @go(ImageLocation,*string) - - // If EC2 instances started from this image should require the use of the Instance Metadata Service V2 (IMDSv2), set this argument to v2.0. For more information, see Configure instance metadata options for new instances. - imdsSupport?: null | string @go(ImdsSupport,*string) - - // ID of the kernel image (AKI) that will be used as the paravirtual - // kernel in created instances. - kernelId?: null | string @go(KernelID,*string) - - // Region-unique name for the AMI. - name?: null | string @go(Name,*string) - - // ID of an initrd image (ARI) that will be used when booting the - // created instances. - ramdiskId?: null | string @go(RamdiskID,*string) - - // Name of the root device (for example, /dev/sda1, or /dev/xvda). - rootDeviceName?: null | string @go(RootDeviceName,*string) - - // When set to "simple" (the default), enables enhanced networking - // for created instances. No other value is supported at this time. - sriovNetSupport?: null | string @go(SriovNetSupport,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // If the image is configured for NitroTPM support, the value is v2.0. For more information, see NitroTPM in the Amazon Elastic Compute Cloud User Guide. - tpmSupport?: null | string @go(TpmSupport,*string) - - // Keyword to choose what virtualization mode created instances - // will use. Can be either "paravirtual" (the default) or "hvm". The choice of virtualization type - // changes the set of further arguments that are required, as described below. - virtualizationType?: null | string @go(VirtualizationType,*string) -} - -#AMIObservation: { - // Machine architecture for created instances. Defaults to "x86_64". - architecture?: null | string @go(Architecture,*string) - - // ARN of the AMI. - arn?: null | string @go(Arn,*string) - - // Boot mode of the AMI. For more information, see Boot modes in the Amazon Elastic Compute Cloud User Guide. - bootMode?: null | string @go(BootMode,*string) - - // Date and time to deprecate the AMI. If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ) - deprecationTime?: null | string @go(DeprecationTime,*string) - - // Longer, human-readable description for the AMI. - description?: null | string @go(Description,*string) - - // Nested block describing an EBS block device that should be - // attached to created instances. The structure of this block is described below. - ebsBlockDevice?: [...#EBSBlockDeviceObservation] @go(EBSBlockDevice,[]EBSBlockDeviceObservation) - - // Whether enhanced networking with ENA is enabled. Defaults to false. - enaSupport?: null | bool @go(EnaSupport,*bool) - - // Nested block describing an ephemeral block device that - // should be attached to created instances. The structure of this block is described below. - ephemeralBlockDevice?: [...#EphemeralBlockDeviceObservation] @go(EphemeralBlockDevice,[]EphemeralBlockDeviceObservation) - - // Hypervisor type of the image. - hypervisor?: null | string @go(Hypervisor,*string) - - // ID of the created AMI. - id?: null | string @go(ID,*string) - - // Path to an S3 object containing an image manifest, e.g., created - // by the ec2-upload-bundle command in the EC2 command line tools. - imageLocation?: null | string @go(ImageLocation,*string) - - // AWS account alias (for example, amazon, self) or the AWS account ID of the AMI owner. - imageOwnerAlias?: null | string @go(ImageOwnerAlias,*string) - - // Type of image. - imageType?: null | string @go(ImageType,*string) - - // If EC2 instances started from this image should require the use of the Instance Metadata Service V2 (IMDSv2), set this argument to v2.0. For more information, see Configure instance metadata options for new instances. - imdsSupport?: null | string @go(ImdsSupport,*string) - - // ID of the kernel image (AKI) that will be used as the paravirtual - // kernel in created instances. - kernelId?: null | string @go(KernelID,*string) - manageEbsSnapshots?: null | bool @go(ManageEBSSnapshots,*bool) - - // Region-unique name for the AMI. - name?: null | string @go(Name,*string) - - // AWS account ID of the image owner. - ownerId?: null | string @go(OwnerID,*string) - - // This value is set to windows for Windows AMIs; otherwise, it is blank. - platform?: null | string @go(Platform,*string) - - // Platform details associated with the billing code of the AMI. - platformDetails?: null | string @go(PlatformDetails,*string) - - // Whether the image has public launch permissions. - public?: null | bool @go(Public,*bool) - - // ID of an initrd image (ARI) that will be used when booting the - // created instances. - ramdiskId?: null | string @go(RamdiskID,*string) - - // Name of the root device (for example, /dev/sda1, or /dev/xvda). - rootDeviceName?: null | string @go(RootDeviceName,*string) - - // Snapshot ID for the root volume (for EBS-backed AMIs) - rootSnapshotId?: null | string @go(RootSnapshotID,*string) - - // When set to "simple" (the default), enables enhanced networking - // for created instances. No other value is supported at this time. - sriovNetSupport?: null | string @go(SriovNetSupport,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // If the image is configured for NitroTPM support, the value is v2.0. For more information, see NitroTPM in the Amazon Elastic Compute Cloud User Guide. - tpmSupport?: null | string @go(TpmSupport,*string) - - // Operation of the Amazon EC2 instance and the billing code that is associated with the AMI. - usageOperation?: null | string @go(UsageOperation,*string) - - // Keyword to choose what virtualization mode created instances - // will use. Can be either "paravirtual" (the default) or "hvm". The choice of virtualization type - // changes the set of further arguments that are required, as described below. - virtualizationType?: null | string @go(VirtualizationType,*string) -} - -#AMIParameters: { - // Machine architecture for created instances. Defaults to "x86_64". - // +kubebuilder:validation:Optional - architecture?: null | string @go(Architecture,*string) - - // Boot mode of the AMI. For more information, see Boot modes in the Amazon Elastic Compute Cloud User Guide. - // +kubebuilder:validation:Optional - bootMode?: null | string @go(BootMode,*string) - - // Date and time to deprecate the AMI. If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ) - // +kubebuilder:validation:Optional - deprecationTime?: null | string @go(DeprecationTime,*string) - - // Longer, human-readable description for the AMI. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Nested block describing an EBS block device that should be - // attached to created instances. The structure of this block is described below. - // +kubebuilder:validation:Optional - ebsBlockDevice?: [...#EBSBlockDeviceParameters] @go(EBSBlockDevice,[]EBSBlockDeviceParameters) - - // Whether enhanced networking with ENA is enabled. Defaults to false. - // +kubebuilder:validation:Optional - enaSupport?: null | bool @go(EnaSupport,*bool) - - // Nested block describing an ephemeral block device that - // should be attached to created instances. The structure of this block is described below. - // +kubebuilder:validation:Optional - ephemeralBlockDevice?: [...#EphemeralBlockDeviceParameters] @go(EphemeralBlockDevice,[]EphemeralBlockDeviceParameters) - - // Path to an S3 object containing an image manifest, e.g., created - // by the ec2-upload-bundle command in the EC2 command line tools. - // +kubebuilder:validation:Optional - imageLocation?: null | string @go(ImageLocation,*string) - - // If EC2 instances started from this image should require the use of the Instance Metadata Service V2 (IMDSv2), set this argument to v2.0. For more information, see Configure instance metadata options for new instances. - // +kubebuilder:validation:Optional - imdsSupport?: null | string @go(ImdsSupport,*string) - - // ID of the kernel image (AKI) that will be used as the paravirtual - // kernel in created instances. - // +kubebuilder:validation:Optional - kernelId?: null | string @go(KernelID,*string) - - // Region-unique name for the AMI. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // ID of an initrd image (ARI) that will be used when booting the - // created instances. - // +kubebuilder:validation:Optional - ramdiskId?: null | string @go(RamdiskID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Name of the root device (for example, /dev/sda1, or /dev/xvda). - // +kubebuilder:validation:Optional - rootDeviceName?: null | string @go(RootDeviceName,*string) - - // When set to "simple" (the default), enables enhanced networking - // for created instances. No other value is supported at this time. - // +kubebuilder:validation:Optional - sriovNetSupport?: null | string @go(SriovNetSupport,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // If the image is configured for NitroTPM support, the value is v2.0. For more information, see NitroTPM in the Amazon Elastic Compute Cloud User Guide. - // +kubebuilder:validation:Optional - tpmSupport?: null | string @go(TpmSupport,*string) - - // Keyword to choose what virtualization mode created instances - // will use. Can be either "paravirtual" (the default) or "hvm". The choice of virtualization type - // changes the set of further arguments that are required, as described below. - // +kubebuilder:validation:Optional - virtualizationType?: null | string @go(VirtualizationType,*string) -} - -#EBSBlockDeviceInitParameters: { - // Boolean controlling whether the EBS volumes created to - // support each created instance will be deleted once that instance is terminated. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Path at which the device is exposed to created instances. - deviceName?: null | string @go(DeviceName,*string) - - // Boolean controlling whether the created EBS volumes will be encrypted. Can't be used with snapshot_id. - encrypted?: null | bool @go(Encrypted,*bool) - - // Number of I/O operations per second the - // created volumes will support. - iops?: null | float64 @go(Iops,*float64) - - // ARN of the Outpost on which the snapshot is stored. - outpostArn?: null | string @go(OutpostArn,*string) - - // Throughput that the EBS volume supports, in MiB/s. Only valid for volume_type of gp3. - throughput?: null | float64 @go(Throughput,*float64) - - // Size of created volumes in GiB. - // If snapshot_id is set and volume_size is omitted then the volume will have the same size - // as the selected snapshot. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of EBS volume to create. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: standard). - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSBlockDeviceObservation: { - // Boolean controlling whether the EBS volumes created to - // support each created instance will be deleted once that instance is terminated. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Path at which the device is exposed to created instances. - deviceName?: null | string @go(DeviceName,*string) - - // Boolean controlling whether the created EBS volumes will be encrypted. Can't be used with snapshot_id. - encrypted?: null | bool @go(Encrypted,*bool) - - // Number of I/O operations per second the - // created volumes will support. - iops?: null | float64 @go(Iops,*float64) - - // ARN of the Outpost on which the snapshot is stored. - outpostArn?: null | string @go(OutpostArn,*string) - - // ID of an EBS snapshot that will be used to initialize the created - // EBS volumes. If set, the volume_size attribute must be at least as large as the referenced - // snapshot. - snapshotId?: null | string @go(SnapshotID,*string) - - // Throughput that the EBS volume supports, in MiB/s. Only valid for volume_type of gp3. - throughput?: null | float64 @go(Throughput,*float64) - - // Size of created volumes in GiB. - // If snapshot_id is set and volume_size is omitted then the volume will have the same size - // as the selected snapshot. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of EBS volume to create. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: standard). - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSBlockDeviceParameters: { - // Boolean controlling whether the EBS volumes created to - // support each created instance will be deleted once that instance is terminated. - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Path at which the device is exposed to created instances. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Boolean controlling whether the created EBS volumes will be encrypted. Can't be used with snapshot_id. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // Number of I/O operations per second the - // created volumes will support. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // ARN of the Outpost on which the snapshot is stored. - // +kubebuilder:validation:Optional - outpostArn?: null | string @go(OutpostArn,*string) - - // ID of an EBS snapshot that will be used to initialize the created - // EBS volumes. If set, the volume_size attribute must be at least as large as the referenced - // snapshot. - // +crossplane:generate:reference:type=EBSSnapshot - // +kubebuilder:validation:Optional - snapshotId?: null | string @go(SnapshotID,*string) - - // Reference to a EBSSnapshot to populate snapshotId. - // +kubebuilder:validation:Optional - snapshotIdRef?: null | v1.#Reference @go(SnapshotIDRef,*v1.Reference) - - // Selector for a EBSSnapshot to populate snapshotId. - // +kubebuilder:validation:Optional - snapshotIdSelector?: null | v1.#Selector @go(SnapshotIDSelector,*v1.Selector) - - // Throughput that the EBS volume supports, in MiB/s. Only valid for volume_type of gp3. - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // Size of created volumes in GiB. - // If snapshot_id is set and volume_size is omitted then the volume will have the same size - // as the selected snapshot. - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of EBS volume to create. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: standard). - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -#EphemeralBlockDeviceInitParameters: { - // Path at which the device is exposed to created instances. - deviceName?: null | string @go(DeviceName,*string) - - // Name for the ephemeral device, of the form "ephemeralN" where - // N is a volume number starting from zero. - virtualName?: null | string @go(VirtualName,*string) -} - -#EphemeralBlockDeviceObservation: { - // Path at which the device is exposed to created instances. - deviceName?: null | string @go(DeviceName,*string) - - // Name for the ephemeral device, of the form "ephemeralN" where - // N is a volume number starting from zero. - virtualName?: null | string @go(VirtualName,*string) -} - -#EphemeralBlockDeviceParameters: { - // Path at which the device is exposed to created instances. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Name for the ephemeral device, of the form "ephemeralN" where - // N is a volume number starting from zero. - // +kubebuilder:validation:Optional - virtualName?: null | string @go(VirtualName,*string) -} - -// AMISpec defines the desired state of AMI -#AMISpec: { - v1.#ResourceSpec - forProvider: #AMIParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AMIInitParameters @go(InitProvider) -} - -// AMIStatus defines the observed state of AMI. -#AMIStatus: { - v1.#ResourceStatus - atProvider?: #AMIObservation @go(AtProvider) -} - -// AMI is the Schema for the AMIs API. Creates and manages a custom Amazon Machine Image (AMI). -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AMI: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #AMISpec @go(Spec) - status?: #AMIStatus @go(Status) -} - -// AMIList contains a list of AMIs -#AMIList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AMI] @go(Items,[]AMI) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_amicopy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_amicopy_types_go_gen.cue deleted file mode 100644 index 3e1f1d7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_amicopy_types_go_gen.cue +++ /dev/null @@ -1,259 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AMICopyEBSBlockDeviceInitParameters: { -} - -#AMICopyEBSBlockDeviceObservation: { - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Region-unique name for the AMI. - deviceName?: null | string @go(DeviceName,*string) - - // Whether the destination snapshots of the copied image should be encrypted. Defaults to false - encrypted?: null | bool @go(Encrypted,*bool) - iops?: null | float64 @go(Iops,*float64) - - // ARN of the AMI. - outpostArn?: null | string @go(OutpostArn,*string) - - // ID of the created AMI. - snapshotId?: null | string @go(SnapshotID,*string) - throughput?: null | float64 @go(Throughput,*float64) - volumeSize?: null | float64 @go(VolumeSize,*float64) - volumeType?: null | string @go(VolumeType,*string) -} - -#AMICopyEBSBlockDeviceParameters: { -} - -#AMICopyEphemeralBlockDeviceInitParameters: { -} - -#AMICopyEphemeralBlockDeviceObservation: { - // Region-unique name for the AMI. - deviceName?: null | string @go(DeviceName,*string) - - // Region-unique name for the AMI. - virtualName?: null | string @go(VirtualName,*string) -} - -#AMICopyEphemeralBlockDeviceParameters: { -} - -#AMICopyInitParameters: { - deprecationTime?: null | string @go(DeprecationTime,*string) - description?: null | string @go(Description,*string) - - // ARN of the Outpost to which to copy the AMI. - // Only specify this parameter when copying an AMI from an AWS Region to an Outpost. The AMI must be in the Region of the destination Outpost. - destinationOutpostArn?: null | string @go(DestinationOutpostArn,*string) - ebsBlockDevice?: [...#AMICopyEBSBlockDeviceInitParameters] @go(EBSBlockDevice,[]AMICopyEBSBlockDeviceInitParameters) - - // Whether the destination snapshots of the copied image should be encrypted. Defaults to false - encrypted?: null | bool @go(Encrypted,*bool) - ephemeralBlockDevice?: [...#AMICopyEphemeralBlockDeviceInitParameters] @go(EphemeralBlockDevice,[]AMICopyEphemeralBlockDeviceInitParameters) - - // Region-unique name for the AMI. - name?: null | string @go(Name,*string) - - // Region from which the AMI will be copied. This may be the - // same as the AWS provider region in order to create a copy within the same region. - sourceAmiRegion?: null | string @go(SourceAMIRegion,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AMICopyObservation: { - architecture?: null | string @go(Architecture,*string) - - // ARN of the AMI. - arn?: null | string @go(Arn,*string) - bootMode?: null | string @go(BootMode,*string) - deprecationTime?: null | string @go(DeprecationTime,*string) - description?: null | string @go(Description,*string) - - // ARN of the Outpost to which to copy the AMI. - // Only specify this parameter when copying an AMI from an AWS Region to an Outpost. The AMI must be in the Region of the destination Outpost. - destinationOutpostArn?: null | string @go(DestinationOutpostArn,*string) - ebsBlockDevice?: [...#AMICopyEBSBlockDeviceObservation] @go(EBSBlockDevice,[]AMICopyEBSBlockDeviceObservation) - enaSupport?: null | bool @go(EnaSupport,*bool) - - // Whether the destination snapshots of the copied image should be encrypted. Defaults to false - encrypted?: null | bool @go(Encrypted,*bool) - ephemeralBlockDevice?: [...#AMICopyEphemeralBlockDeviceObservation] @go(EphemeralBlockDevice,[]AMICopyEphemeralBlockDeviceObservation) - hypervisor?: null | string @go(Hypervisor,*string) - - // ID of the created AMI. - id?: null | string @go(ID,*string) - imageLocation?: null | string @go(ImageLocation,*string) - imageOwnerAlias?: null | string @go(ImageOwnerAlias,*string) - imageType?: null | string @go(ImageType,*string) - imdsSupport?: null | string @go(ImdsSupport,*string) - - // Full ARN of the KMS Key to use when encrypting the snapshots of an image during a copy operation. If not specified, then the default AWS KMS Key will be used - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // ID of the created AMI. - kernelId?: null | string @go(KernelID,*string) - manageEbsSnapshots?: null | bool @go(ManageEBSSnapshots,*bool) - - // Region-unique name for the AMI. - name?: null | string @go(Name,*string) - - // ID of the created AMI. - ownerId?: null | string @go(OwnerID,*string) - platform?: null | string @go(Platform,*string) - platformDetails?: null | string @go(PlatformDetails,*string) - public?: null | bool @go(Public,*bool) - - // ID of the created AMI. - ramdiskId?: null | string @go(RamdiskID,*string) - - // Region-unique name for the AMI. - rootDeviceName?: null | string @go(RootDeviceName,*string) - - // ID of the created AMI. - rootSnapshotId?: null | string @go(RootSnapshotID,*string) - - // Id of the AMI to copy. This id must be valid in the region - // given by source_ami_region. - sourceAmiId?: null | string @go(SourceAMIID,*string) - - // Region from which the AMI will be copied. This may be the - // same as the AWS provider region in order to create a copy within the same region. - sourceAmiRegion?: null | string @go(SourceAMIRegion,*string) - sriovNetSupport?: null | string @go(SriovNetSupport,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - tpmSupport?: null | string @go(TpmSupport,*string) - usageOperation?: null | string @go(UsageOperation,*string) - virtualizationType?: null | string @go(VirtualizationType,*string) -} - -#AMICopyParameters: { - // +kubebuilder:validation:Optional - deprecationTime?: null | string @go(DeprecationTime,*string) - - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // ARN of the Outpost to which to copy the AMI. - // Only specify this parameter when copying an AMI from an AWS Region to an Outpost. The AMI must be in the Region of the destination Outpost. - // +kubebuilder:validation:Optional - destinationOutpostArn?: null | string @go(DestinationOutpostArn,*string) - - // +kubebuilder:validation:Optional - ebsBlockDevice?: [...#AMICopyEBSBlockDeviceParameters] @go(EBSBlockDevice,[]AMICopyEBSBlockDeviceParameters) - - // Whether the destination snapshots of the copied image should be encrypted. Defaults to false - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // +kubebuilder:validation:Optional - ephemeralBlockDevice?: [...#AMICopyEphemeralBlockDeviceParameters] @go(EphemeralBlockDevice,[]AMICopyEphemeralBlockDeviceParameters) - - // Full ARN of the KMS Key to use when encrypting the snapshots of an image during a copy operation. If not specified, then the default AWS KMS Key will be used - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Region-unique name for the AMI. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Id of the AMI to copy. This id must be valid in the region - // given by source_ami_region. - // +crossplane:generate:reference:type=AMI - // +kubebuilder:validation:Optional - sourceAmiId?: null | string @go(SourceAMIID,*string) - - // Reference to a AMI to populate sourceAmiId. - // +kubebuilder:validation:Optional - sourceAmiIdRef?: null | v1.#Reference @go(SourceAMIIDRef,*v1.Reference) - - // Selector for a AMI to populate sourceAmiId. - // +kubebuilder:validation:Optional - sourceAmiIdSelector?: null | v1.#Selector @go(SourceAMIIDSelector,*v1.Selector) - - // Region from which the AMI will be copied. This may be the - // same as the AWS provider region in order to create a copy within the same region. - // +kubebuilder:validation:Optional - sourceAmiRegion?: null | string @go(SourceAMIRegion,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// AMICopySpec defines the desired state of AMICopy -#AMICopySpec: { - v1.#ResourceSpec - forProvider: #AMICopyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AMICopyInitParameters @go(InitProvider) -} - -// AMICopyStatus defines the observed state of AMICopy. -#AMICopyStatus: { - v1.#ResourceStatus - atProvider?: #AMICopyObservation @go(AtProvider) -} - -// AMICopy is the Schema for the AMICopys API. Duplicates an existing Amazon Machine Image (AMI) -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AMICopy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sourceAmiRegion) || (has(self.initProvider) && has(self.initProvider.sourceAmiRegion))",message="spec.forProvider.sourceAmiRegion is a required parameter" - spec: #AMICopySpec @go(Spec) - status?: #AMICopyStatus @go(Status) -} - -// AMICopyList contains a list of AMICopys -#AMICopyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AMICopy] @go(Items,[]AMICopy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_amilaunchpermission_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_amilaunchpermission_types_go_gen.cue deleted file mode 100644 index 7d37f9f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_amilaunchpermission_types_go_gen.cue +++ /dev/null @@ -1,125 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AMILaunchPermissionInitParameters: { - // AWS account ID for the launch permission. - accountId?: null | string @go(AccountID,*string) - - // Name of the group for the launch permission. Valid values: "all". - group?: null | string @go(Group,*string) - - // ARN of an organization for the launch permission. - organizationArn?: null | string @go(OrganizationArn,*string) - - // ARN of an organizational unit for the launch permission. - organizationalUnitArn?: null | string @go(OrganizationalUnitArn,*string) -} - -#AMILaunchPermissionObservation: { - // AWS account ID for the launch permission. - accountId?: null | string @go(AccountID,*string) - - // Name of the group for the launch permission. Valid values: "all". - group?: null | string @go(Group,*string) - - // Launch permission ID. - id?: null | string @go(ID,*string) - - // ID of the AMI. - imageId?: null | string @go(ImageID,*string) - - // ARN of an organization for the launch permission. - organizationArn?: null | string @go(OrganizationArn,*string) - - // ARN of an organizational unit for the launch permission. - organizationalUnitArn?: null | string @go(OrganizationalUnitArn,*string) -} - -#AMILaunchPermissionParameters: { - // AWS account ID for the launch permission. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // Name of the group for the launch permission. Valid values: "all". - // +kubebuilder:validation:Optional - group?: null | string @go(Group,*string) - - // ID of the AMI. - // +crossplane:generate:reference:type=AMI - // +kubebuilder:validation:Optional - imageId?: null | string @go(ImageID,*string) - - // Reference to a AMI to populate imageId. - // +kubebuilder:validation:Optional - imageIdRef?: null | v1.#Reference @go(ImageIDRef,*v1.Reference) - - // Selector for a AMI to populate imageId. - // +kubebuilder:validation:Optional - imageIdSelector?: null | v1.#Selector @go(ImageIDSelector,*v1.Selector) - - // ARN of an organization for the launch permission. - // +kubebuilder:validation:Optional - organizationArn?: null | string @go(OrganizationArn,*string) - - // ARN of an organizational unit for the launch permission. - // +kubebuilder:validation:Optional - organizationalUnitArn?: null | string @go(OrganizationalUnitArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// AMILaunchPermissionSpec defines the desired state of AMILaunchPermission -#AMILaunchPermissionSpec: { - v1.#ResourceSpec - forProvider: #AMILaunchPermissionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AMILaunchPermissionInitParameters @go(InitProvider) -} - -// AMILaunchPermissionStatus defines the observed state of AMILaunchPermission. -#AMILaunchPermissionStatus: { - v1.#ResourceStatus - atProvider?: #AMILaunchPermissionObservation @go(AtProvider) -} - -// AMILaunchPermission is the Schema for the AMILaunchPermissions API. Adds a launch permission to an Amazon Machine Image (AMI). -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AMILaunchPermission: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AMILaunchPermissionSpec @go(Spec) - status?: #AMILaunchPermissionStatus @go(Status) -} - -// AMILaunchPermissionList contains a list of AMILaunchPermissions -#AMILaunchPermissionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AMILaunchPermission] @go(Items,[]AMILaunchPermission) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_availabilityzonegroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_availabilityzonegroup_types_go_gen.cue deleted file mode 100644 index 0238ed2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_availabilityzonegroup_types_go_gen.cue +++ /dev/null @@ -1,81 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AvailabilityZoneGroupInitParameters: { - // Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in. - optInStatus?: null | string @go(OptInStatus,*string) -} - -#AvailabilityZoneGroupObservation: { - // Name of the Availability Zone Group. - id?: null | string @go(ID,*string) - - // Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in. - optInStatus?: null | string @go(OptInStatus,*string) -} - -#AvailabilityZoneGroupParameters: { - // Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in. - // +kubebuilder:validation:Optional - optInStatus?: null | string @go(OptInStatus,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// AvailabilityZoneGroupSpec defines the desired state of AvailabilityZoneGroup -#AvailabilityZoneGroupSpec: { - v1.#ResourceSpec - forProvider: #AvailabilityZoneGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AvailabilityZoneGroupInitParameters @go(InitProvider) -} - -// AvailabilityZoneGroupStatus defines the observed state of AvailabilityZoneGroup. -#AvailabilityZoneGroupStatus: { - v1.#ResourceStatus - atProvider?: #AvailabilityZoneGroupObservation @go(AtProvider) -} - -// AvailabilityZoneGroup is the Schema for the AvailabilityZoneGroups API. Manages an EC2 Availability Zone Group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AvailabilityZoneGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.optInStatus) || (has(self.initProvider) && has(self.initProvider.optInStatus))",message="spec.forProvider.optInStatus is a required parameter" - spec: #AvailabilityZoneGroupSpec @go(Spec) - status?: #AvailabilityZoneGroupStatus @go(Status) -} - -// AvailabilityZoneGroupList contains a list of AvailabilityZoneGroups -#AvailabilityZoneGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AvailabilityZoneGroup] @go(Items,[]AvailabilityZoneGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_capacityreservation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_capacityreservation_types_go_gen.cue deleted file mode 100644 index 13c78a3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_capacityreservation_types_go_gen.cue +++ /dev/null @@ -1,213 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CapacityReservationInitParameters: { - // The Availability Zone in which to create the Capacity Reservation. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Indicates whether the Capacity Reservation supports EBS-optimized instances. - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ) - endDate?: null | string @go(EndDate,*string) - - // Indicates the way in which the Capacity Reservation ends. Specify either unlimited or limited. - endDateType?: null | string @go(EndDateType,*string) - - // Indicates whether the Capacity Reservation supports instances with temporary, block-level storage. - ephemeralStorage?: null | bool @go(EphemeralStorage,*bool) - - // The number of instances for which to reserve capacity. - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // Indicates the type of instance launches that the Capacity Reservation accepts. Specify either open or targeted. - instanceMatchCriteria?: null | string @go(InstanceMatchCriteria,*string) - - // The type of operating system for which to reserve capacity. Valid options are Linux/UNIX, Red Hat Enterprise Linux, SUSE Linux, Windows, Windows with SQL Server, Windows with SQL Server Enterprise, Windows with SQL Server Standard or Windows with SQL Server Web. - instancePlatform?: null | string @go(InstancePlatform,*string) - - // The instance type for which to reserve capacity. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation. - outpostArn?: null | string @go(OutpostArn,*string) - - // The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. - placementGroupArn?: null | string @go(PlacementGroupArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Indicates the tenancy of the Capacity Reservation. Specify either default or dedicated. - tenancy?: null | string @go(Tenancy,*string) -} - -#CapacityReservationObservation: { - // The ARN of the Capacity Reservation. - arn?: null | string @go(Arn,*string) - - // The Availability Zone in which to create the Capacity Reservation. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Indicates whether the Capacity Reservation supports EBS-optimized instances. - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ) - endDate?: null | string @go(EndDate,*string) - - // Indicates the way in which the Capacity Reservation ends. Specify either unlimited or limited. - endDateType?: null | string @go(EndDateType,*string) - - // Indicates whether the Capacity Reservation supports instances with temporary, block-level storage. - ephemeralStorage?: null | bool @go(EphemeralStorage,*bool) - - // The Capacity Reservation ID. - id?: null | string @go(ID,*string) - - // The number of instances for which to reserve capacity. - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // Indicates the type of instance launches that the Capacity Reservation accepts. Specify either open or targeted. - instanceMatchCriteria?: null | string @go(InstanceMatchCriteria,*string) - - // The type of operating system for which to reserve capacity. Valid options are Linux/UNIX, Red Hat Enterprise Linux, SUSE Linux, Windows, Windows with SQL Server, Windows with SQL Server Enterprise, Windows with SQL Server Standard or Windows with SQL Server Web. - instancePlatform?: null | string @go(InstancePlatform,*string) - - // The instance type for which to reserve capacity. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation. - outpostArn?: null | string @go(OutpostArn,*string) - - // The ID of the AWS account that owns the Capacity Reservation. - ownerId?: null | string @go(OwnerID,*string) - - // The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. - placementGroupArn?: null | string @go(PlacementGroupArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Indicates the tenancy of the Capacity Reservation. Specify either default or dedicated. - tenancy?: null | string @go(Tenancy,*string) -} - -#CapacityReservationParameters: { - // The Availability Zone in which to create the Capacity Reservation. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Indicates whether the Capacity Reservation supports EBS-optimized instances. - // +kubebuilder:validation:Optional - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ) - // +kubebuilder:validation:Optional - endDate?: null | string @go(EndDate,*string) - - // Indicates the way in which the Capacity Reservation ends. Specify either unlimited or limited. - // +kubebuilder:validation:Optional - endDateType?: null | string @go(EndDateType,*string) - - // Indicates whether the Capacity Reservation supports instances with temporary, block-level storage. - // +kubebuilder:validation:Optional - ephemeralStorage?: null | bool @go(EphemeralStorage,*bool) - - // The number of instances for which to reserve capacity. - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // Indicates the type of instance launches that the Capacity Reservation accepts. Specify either open or targeted. - // +kubebuilder:validation:Optional - instanceMatchCriteria?: null | string @go(InstanceMatchCriteria,*string) - - // The type of operating system for which to reserve capacity. Valid options are Linux/UNIX, Red Hat Enterprise Linux, SUSE Linux, Windows, Windows with SQL Server, Windows with SQL Server Enterprise, Windows with SQL Server Standard or Windows with SQL Server Web. - // +kubebuilder:validation:Optional - instancePlatform?: null | string @go(InstancePlatform,*string) - - // The instance type for which to reserve capacity. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation. - // +kubebuilder:validation:Optional - outpostArn?: null | string @go(OutpostArn,*string) - - // The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. - // +kubebuilder:validation:Optional - placementGroupArn?: null | string @go(PlacementGroupArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Indicates the tenancy of the Capacity Reservation. Specify either default or dedicated. - // +kubebuilder:validation:Optional - tenancy?: null | string @go(Tenancy,*string) -} - -// CapacityReservationSpec defines the desired state of CapacityReservation -#CapacityReservationSpec: { - v1.#ResourceSpec - forProvider: #CapacityReservationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CapacityReservationInitParameters @go(InitProvider) -} - -// CapacityReservationStatus defines the observed state of CapacityReservation. -#CapacityReservationStatus: { - v1.#ResourceStatus - atProvider?: #CapacityReservationObservation @go(AtProvider) -} - -// CapacityReservation is the Schema for the CapacityReservations API. Provides an EC2 Capacity Reservation. This allows you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CapacityReservation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.availabilityZone) || (has(self.initProvider) && has(self.initProvider.availabilityZone))",message="spec.forProvider.availabilityZone is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceCount) || (has(self.initProvider) && has(self.initProvider.instanceCount))",message="spec.forProvider.instanceCount is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instancePlatform) || (has(self.initProvider) && has(self.initProvider.instancePlatform))",message="spec.forProvider.instancePlatform is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceType) || (has(self.initProvider) && has(self.initProvider.instanceType))",message="spec.forProvider.instanceType is a required parameter" - spec: #CapacityReservationSpec @go(Spec) - status?: #CapacityReservationStatus @go(Status) -} - -// CapacityReservationList contains a list of CapacityReservations -#CapacityReservationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CapacityReservation] @go(Items,[]CapacityReservation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_carriergateway_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_carriergateway_types_go_gen.cue deleted file mode 100644 index 9ff9d35..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_carriergateway_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CarrierGatewayInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CarrierGatewayObservation: { - // The ARN of the carrier gateway. - arn?: null | string @go(Arn,*string) - - // The ID of the carrier gateway. - id?: null | string @go(ID,*string) - - // The AWS account ID of the owner of the carrier gateway. - ownerId?: null | string @go(OwnerID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the VPC to associate with the carrier gateway. - vpcId?: null | string @go(VPCID,*string) -} - -#CarrierGatewayParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the VPC to associate with the carrier gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// CarrierGatewaySpec defines the desired state of CarrierGateway -#CarrierGatewaySpec: { - v1.#ResourceSpec - forProvider: #CarrierGatewayParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CarrierGatewayInitParameters @go(InitProvider) -} - -// CarrierGatewayStatus defines the observed state of CarrierGateway. -#CarrierGatewayStatus: { - v1.#ResourceStatus - atProvider?: #CarrierGatewayObservation @go(AtProvider) -} - -// CarrierGateway is the Schema for the CarrierGateways API. Manages an EC2 Carrier Gateway. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CarrierGateway: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CarrierGatewaySpec @go(Spec) - status?: #CarrierGatewayStatus @go(Status) -} - -// CarrierGatewayList contains a list of CarrierGateways -#CarrierGatewayList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CarrierGateway] @go(Items,[]CarrierGateway) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_customergateway_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_customergateway_types_go_gen.cue deleted file mode 100644 index b715971..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_customergateway_types_go_gen.cue +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CustomerGatewayInitParameters: { - // The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN). - bgpAsn?: null | string @go(BGPAsn,*string) - - // The Amazon Resource Name (ARN) for the customer gateway certificate. - certificateArn?: null | string @go(CertificateArn,*string) - - // A name for the customer gateway device. - deviceName?: null | string @go(DeviceName,*string) - - // The IPv4 address for the customer gateway device's outside interface. - ipAddress?: null | string @go(IPAddress,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of customer gateway. The only type AWS - // supports at this time is "ipsec.1". - type?: null | string @go(Type,*string) -} - -#CustomerGatewayObservation: { - // The ARN of the customer gateway. - arn?: null | string @go(Arn,*string) - - // The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN). - bgpAsn?: null | string @go(BGPAsn,*string) - - // The Amazon Resource Name (ARN) for the customer gateway certificate. - certificateArn?: null | string @go(CertificateArn,*string) - - // A name for the customer gateway device. - deviceName?: null | string @go(DeviceName,*string) - - // The amazon-assigned ID of the gateway. - id?: null | string @go(ID,*string) - - // The IPv4 address for the customer gateway device's outside interface. - ipAddress?: null | string @go(IPAddress,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The type of customer gateway. The only type AWS - // supports at this time is "ipsec.1". - type?: null | string @go(Type,*string) -} - -#CustomerGatewayParameters: { - // The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN). - // +kubebuilder:validation:Optional - bgpAsn?: null | string @go(BGPAsn,*string) - - // The Amazon Resource Name (ARN) for the customer gateway certificate. - // +kubebuilder:validation:Optional - certificateArn?: null | string @go(CertificateArn,*string) - - // A name for the customer gateway device. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // The IPv4 address for the customer gateway device's outside interface. - // +kubebuilder:validation:Optional - ipAddress?: null | string @go(IPAddress,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of customer gateway. The only type AWS - // supports at this time is "ipsec.1". - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// CustomerGatewaySpec defines the desired state of CustomerGateway -#CustomerGatewaySpec: { - v1.#ResourceSpec - forProvider: #CustomerGatewayParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CustomerGatewayInitParameters @go(InitProvider) -} - -// CustomerGatewayStatus defines the observed state of CustomerGateway. -#CustomerGatewayStatus: { - v1.#ResourceStatus - atProvider?: #CustomerGatewayObservation @go(AtProvider) -} - -// CustomerGateway is the Schema for the CustomerGateways API. Provides a customer gateway inside a VPC. These objects can be connected to VPN gateways via VPN connections, and allow you to establish tunnels between your network and the VPC. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CustomerGateway: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bgpAsn) || (has(self.initProvider) && has(self.initProvider.bgpAsn))",message="spec.forProvider.bgpAsn is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #CustomerGatewaySpec @go(Spec) - status?: #CustomerGatewayStatus @go(Status) -} - -// CustomerGatewayList contains a list of CustomerGateways -#CustomerGatewayList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CustomerGateway] @go(Items,[]CustomerGateway) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultnetworkacl_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultnetworkacl_types_go_gen.cue deleted file mode 100644 index c01b230..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultnetworkacl_types_go_gen.cue +++ /dev/null @@ -1,345 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DefaultNetworkACLInitParameters: { - // Configuration block for an egress rule. Detailed below. - egress?: [...#EgressInitParameters] @go(Egress,[]EgressInitParameters) - - // Configuration block for an ingress rule. Detailed below. - ingress?: [...#IngressInitParameters] @go(Ingress,[]IngressInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DefaultNetworkACLObservation: { - // ARN of the Default Network ACL - arn?: null | string @go(Arn,*string) - - // Network ACL ID to manage. This attribute is exported from aws_vpc, or manually found via the AWS Console. - defaultNetworkAclId?: null | string @go(DefaultNetworkACLID,*string) - - // Configuration block for an egress rule. Detailed below. - egress?: [...#EgressObservation] @go(Egress,[]EgressObservation) - - // ID of the Default Network ACL - id?: null | string @go(ID,*string) - - // Configuration block for an ingress rule. Detailed below. - ingress?: [...#IngressObservation] @go(Ingress,[]IngressObservation) - - // ID of the AWS account that owns the Default Network ACL - ownerId?: null | string @go(OwnerID,*string) - - // List of Subnet IDs to apply the ACL to. See the notes above on Managing Subnets in the Default Network ACL - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // ID of the associated VPC - vpcId?: null | string @go(VPCID,*string) -} - -#DefaultNetworkACLParameters: { - // Network ACL ID to manage. This attribute is exported from aws_vpc, or manually found via the AWS Console. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("default_network_acl_id",true) - // +kubebuilder:validation:Optional - defaultNetworkAclId?: null | string @go(DefaultNetworkACLID,*string) - - // Reference to a VPC in ec2 to populate defaultNetworkAclId. - // +kubebuilder:validation:Optional - defaultNetworkAclIdRef?: null | v1.#Reference @go(DefaultNetworkACLIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate defaultNetworkAclId. - // +kubebuilder:validation:Optional - defaultNetworkAclIdSelector?: null | v1.#Selector @go(DefaultNetworkACLIDSelector,*v1.Selector) - - // Configuration block for an egress rule. Detailed below. - // +kubebuilder:validation:Optional - egress?: [...#EgressParameters] @go(Egress,[]EgressParameters) - - // Configuration block for an ingress rule. Detailed below. - // +kubebuilder:validation:Optional - ingress?: [...#IngressParameters] @go(Ingress,[]IngressParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // List of Subnet IDs to apply the ACL to. See the notes above on Managing Subnets in the Default Network ACL - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EgressInitParameters: { - // The action to take. - action?: null | string @go(Action,*string) - - // The CIDR block to match. This must be a valid network mask. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The from port to match. - fromPort?: null | float64 @go(FromPort,*float64) - - // The IPv6 CIDR block. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // The ICMP type code to be used. Default 0. - icmpCode?: null | float64 @go(IcmpCode,*float64) - - // The ICMP type to be used. Default 0. - icmpType?: null | float64 @go(IcmpType,*float64) - - // The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0. - protocol?: null | string @go(Protocol,*string) - - // The rule number. Used for ordering. - ruleNo?: null | float64 @go(RuleNo,*float64) - - // The to port to match. - toPort?: null | float64 @go(ToPort,*float64) -} - -#EgressObservation: { - // The action to take. - action?: null | string @go(Action,*string) - - // The CIDR block to match. This must be a valid network mask. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The from port to match. - fromPort?: null | float64 @go(FromPort,*float64) - - // The IPv6 CIDR block. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // The ICMP type code to be used. Default 0. - icmpCode?: null | float64 @go(IcmpCode,*float64) - - // The ICMP type to be used. Default 0. - icmpType?: null | float64 @go(IcmpType,*float64) - - // The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0. - protocol?: null | string @go(Protocol,*string) - - // The rule number. Used for ordering. - ruleNo?: null | float64 @go(RuleNo,*float64) - - // The to port to match. - toPort?: null | float64 @go(ToPort,*float64) -} - -#EgressParameters: { - // The action to take. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) - - // The CIDR block to match. This must be a valid network mask. - // +kubebuilder:validation:Optional - cidrBlock?: null | string @go(CidrBlock,*string) - - // The from port to match. - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // The IPv6 CIDR block. - // +kubebuilder:validation:Optional - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // The ICMP type code to be used. Default 0. - // +kubebuilder:validation:Optional - icmpCode?: null | float64 @go(IcmpCode,*float64) - - // The ICMP type to be used. Default 0. - // +kubebuilder:validation:Optional - icmpType?: null | float64 @go(IcmpType,*float64) - - // The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // The rule number. Used for ordering. - // +kubebuilder:validation:Optional - ruleNo?: null | float64 @go(RuleNo,*float64) - - // The to port to match. - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -#IngressInitParameters: { - // The action to take. - action?: null | string @go(Action,*string) - - // The from port to match. - fromPort?: null | float64 @go(FromPort,*float64) - - // The IPv6 CIDR block. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // The ICMP type code to be used. Default 0. - icmpCode?: null | float64 @go(IcmpCode,*float64) - - // The ICMP type to be used. Default 0. - icmpType?: null | float64 @go(IcmpType,*float64) - - // The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0. - protocol?: null | string @go(Protocol,*string) - - // The rule number. Used for ordering. - ruleNo?: null | float64 @go(RuleNo,*float64) - - // The to port to match. - toPort?: null | float64 @go(ToPort,*float64) -} - -#IngressObservation: { - // The action to take. - action?: null | string @go(Action,*string) - - // The CIDR block to match. This must be a valid network mask. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The from port to match. - fromPort?: null | float64 @go(FromPort,*float64) - - // The IPv6 CIDR block. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // The ICMP type code to be used. Default 0. - icmpCode?: null | float64 @go(IcmpCode,*float64) - - // The ICMP type to be used. Default 0. - icmpType?: null | float64 @go(IcmpType,*float64) - - // The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0. - protocol?: null | string @go(Protocol,*string) - - // The rule number. Used for ordering. - ruleNo?: null | float64 @go(RuleNo,*float64) - - // The to port to match. - toPort?: null | float64 @go(ToPort,*float64) -} - -#IngressParameters: { - // The action to take. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) - - // The CIDR block to match. This must be a valid network mask. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.DefaultVPC - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("cidr_block",true) - // +kubebuilder:validation:Optional - cidrBlock?: null | string @go(CidrBlock,*string) - - // Reference to a DefaultVPC in ec2 to populate cidrBlock. - // +kubebuilder:validation:Optional - cidrBlockRef?: null | v1.#Reference @go(CidrBlockRef,*v1.Reference) - - // Selector for a DefaultVPC in ec2 to populate cidrBlock. - // +kubebuilder:validation:Optional - cidrBlockSelector?: null | v1.#Selector @go(CidrBlockSelector,*v1.Selector) - - // The from port to match. - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // The IPv6 CIDR block. - // +kubebuilder:validation:Optional - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // The ICMP type code to be used. Default 0. - // +kubebuilder:validation:Optional - icmpCode?: null | float64 @go(IcmpCode,*float64) - - // The ICMP type to be used. Default 0. - // +kubebuilder:validation:Optional - icmpType?: null | float64 @go(IcmpType,*float64) - - // The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // The rule number. Used for ordering. - // +kubebuilder:validation:Optional - ruleNo?: null | float64 @go(RuleNo,*float64) - - // The to port to match. - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -// DefaultNetworkACLSpec defines the desired state of DefaultNetworkACL -#DefaultNetworkACLSpec: { - v1.#ResourceSpec - forProvider: #DefaultNetworkACLParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DefaultNetworkACLInitParameters @go(InitProvider) -} - -// DefaultNetworkACLStatus defines the observed state of DefaultNetworkACL. -#DefaultNetworkACLStatus: { - v1.#ResourceStatus - atProvider?: #DefaultNetworkACLObservation @go(AtProvider) -} - -// DefaultNetworkACL is the Schema for the DefaultNetworkACLs API. Manage a default network ACL. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DefaultNetworkACL: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DefaultNetworkACLSpec @go(Spec) - status?: #DefaultNetworkACLStatus @go(Status) -} - -// DefaultNetworkACLList contains a list of DefaultNetworkACLs -#DefaultNetworkACLList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DefaultNetworkACL] @go(Items,[]DefaultNetworkACL) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultroutetable_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultroutetable_types_go_gen.cue deleted file mode 100644 index b857937..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultroutetable_types_go_gen.cue +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DefaultRouteTableInitParameters: { - // List of virtual gateways for propagation. - propagatingVgws?: [...null | string] @go(PropagatingVgws,[]*string) - - // Configuration block of routes. Detailed below. This argument is processed in attribute-as-blocks mode. This means that omitting this argument is interpreted as ignoring any existing routes. To remove all managed routes an empty list should be specified. See the example above. - route?: [...#RouteInitParameters] @go(Route,[]RouteInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DefaultRouteTableObservation: { - // The ARN of the route table. - arn?: null | string @go(Arn,*string) - - // ID of the default route table. - defaultRouteTableId?: null | string @go(DefaultRouteTableID,*string) - - // ID of the route table. - id?: null | string @go(ID,*string) - - // ID of the AWS account that owns the route table. - ownerId?: null | string @go(OwnerID,*string) - - // List of virtual gateways for propagation. - propagatingVgws?: [...null | string] @go(PropagatingVgws,[]*string) - - // Configuration block of routes. Detailed below. This argument is processed in attribute-as-blocks mode. This means that omitting this argument is interpreted as ignoring any existing routes. To remove all managed routes an empty list should be specified. See the example above. - route?: [...#RouteObservation] @go(Route,[]RouteObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // ID of the VPC. - vpcId?: null | string @go(VPCID,*string) -} - -#DefaultRouteTableParameters: { - // ID of the default route table. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("default_route_table_id",true) - // +kubebuilder:validation:Optional - defaultRouteTableId?: null | string @go(DefaultRouteTableID,*string) - - // Reference to a VPC in ec2 to populate defaultRouteTableId. - // +kubebuilder:validation:Optional - defaultRouteTableIdRef?: null | v1.#Reference @go(DefaultRouteTableIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate defaultRouteTableId. - // +kubebuilder:validation:Optional - defaultRouteTableIdSelector?: null | v1.#Selector @go(DefaultRouteTableIDSelector,*v1.Selector) - - // List of virtual gateways for propagation. - // +kubebuilder:validation:Optional - propagatingVgws?: [...null | string] @go(PropagatingVgws,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block of routes. Detailed below. This argument is processed in attribute-as-blocks mode. This means that omitting this argument is interpreted as ignoring any existing routes. To remove all managed routes an empty list should be specified. See the example above. - // +kubebuilder:validation:Optional - route?: [...#RouteParameters] @go(Route,[]RouteParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RouteInitParameters: { - // The CIDR block of the route. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The Amazon Resource Name (ARN) of a core network. - coreNetworkArn?: null | string @go(CoreNetworkArn,*string) - - // The ID of a managed prefix list destination of the route. - destinationPrefixListId?: null | string @go(DestinationPrefixListID,*string) - - // The Ipv6 CIDR block of the route - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // Identifier of an EC2 instance. - instanceId?: null | string @go(InstanceID,*string) - - // Identifier of a VPC NAT gateway. - natGatewayId?: null | string @go(NATGatewayID,*string) - - // Identifier of an EC2 network interface. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // Identifier of an EC2 Transit Gateway. - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Identifier of a VPC Endpoint. This route must be removed prior to VPC Endpoint deletion. - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // Identifier of a VPC peering connection. - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) -} - -#RouteObservation: { - // The CIDR block of the route. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The Amazon Resource Name (ARN) of a core network. - coreNetworkArn?: null | string @go(CoreNetworkArn,*string) - - // The ID of a managed prefix list destination of the route. - destinationPrefixListId?: null | string @go(DestinationPrefixListID,*string) - - // Identifier of a VPC Egress Only Internet Gateway. - egressOnlyGatewayId?: null | string @go(EgressOnlyGatewayID,*string) - - // Identifier of a VPC internet gateway or a virtual private gateway. - gatewayId?: null | string @go(GatewayID,*string) - - // The Ipv6 CIDR block of the route - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // Identifier of an EC2 instance. - instanceId?: null | string @go(InstanceID,*string) - - // Identifier of a VPC NAT gateway. - natGatewayId?: null | string @go(NATGatewayID,*string) - - // Identifier of an EC2 network interface. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // Identifier of an EC2 Transit Gateway. - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Identifier of a VPC Endpoint. This route must be removed prior to VPC Endpoint deletion. - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // Identifier of a VPC peering connection. - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) -} - -#RouteParameters: { - // The CIDR block of the route. - // +kubebuilder:validation:Optional - cidrBlock?: null | string @go(CidrBlock,*string) - - // The Amazon Resource Name (ARN) of a core network. - // +kubebuilder:validation:Optional - coreNetworkArn?: null | string @go(CoreNetworkArn,*string) - - // The ID of a managed prefix list destination of the route. - // +kubebuilder:validation:Optional - destinationPrefixListId?: null | string @go(DestinationPrefixListID,*string) - - // Identifier of a VPC Egress Only Internet Gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.EgressOnlyInternetGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - egressOnlyGatewayId?: null | string @go(EgressOnlyGatewayID,*string) - - // Reference to a EgressOnlyInternetGateway in ec2 to populate egressOnlyGatewayId. - // +kubebuilder:validation:Optional - egressOnlyGatewayIdRef?: null | v1.#Reference @go(EgressOnlyGatewayIDRef,*v1.Reference) - - // Selector for a EgressOnlyInternetGateway in ec2 to populate egressOnlyGatewayId. - // +kubebuilder:validation:Optional - egressOnlyGatewayIdSelector?: null | v1.#Selector @go(EgressOnlyGatewayIDSelector,*v1.Selector) - - // Identifier of a VPC internet gateway or a virtual private gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.InternetGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - gatewayId?: null | string @go(GatewayID,*string) - - // Reference to a InternetGateway in ec2 to populate gatewayId. - // +kubebuilder:validation:Optional - gatewayIdRef?: null | v1.#Reference @go(GatewayIDRef,*v1.Reference) - - // Selector for a InternetGateway in ec2 to populate gatewayId. - // +kubebuilder:validation:Optional - gatewayIdSelector?: null | v1.#Selector @go(GatewayIDSelector,*v1.Selector) - - // The Ipv6 CIDR block of the route - // +kubebuilder:validation:Optional - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // Identifier of an EC2 instance. - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Identifier of a VPC NAT gateway. - // +kubebuilder:validation:Optional - natGatewayId?: null | string @go(NATGatewayID,*string) - - // Identifier of an EC2 network interface. - // +kubebuilder:validation:Optional - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // Identifier of an EC2 Transit Gateway. - // +kubebuilder:validation:Optional - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Identifier of a VPC Endpoint. This route must be removed prior to VPC Endpoint deletion. - // +kubebuilder:validation:Optional - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // Identifier of a VPC peering connection. - // +kubebuilder:validation:Optional - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) -} - -// DefaultRouteTableSpec defines the desired state of DefaultRouteTable -#DefaultRouteTableSpec: { - v1.#ResourceSpec - forProvider: #DefaultRouteTableParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DefaultRouteTableInitParameters @go(InitProvider) -} - -// DefaultRouteTableStatus defines the observed state of DefaultRouteTable. -#DefaultRouteTableStatus: { - v1.#ResourceStatus - atProvider?: #DefaultRouteTableObservation @go(AtProvider) -} - -// DefaultRouteTable is the Schema for the DefaultRouteTables API. Provides a resource to manage a default route table of a VPC. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DefaultRouteTable: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DefaultRouteTableSpec @go(Spec) - status?: #DefaultRouteTableStatus @go(Status) -} - -// DefaultRouteTableList contains a list of DefaultRouteTables -#DefaultRouteTableList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DefaultRouteTable] @go(Items,[]DefaultRouteTable) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultsecuritygroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultsecuritygroup_types_go_gen.cue deleted file mode 100644 index f265d13..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultsecuritygroup_types_go_gen.cue +++ /dev/null @@ -1,327 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DefaultSecurityGroupEgressInitParameters: { - // List of CIDR blocks. - cidrBlocks?: [...null | string] @go(CidrBlocks,[]*string) - - // Description of this rule. - description?: null | string @go(Description,*string) - - // Start port (or ICMP type number if protocol is icmp) - fromPort?: null | float64 @go(FromPort,*float64) - - // List of IPv6 CIDR blocks. - ipv6CidrBlocks?: [...null | string] @go(IPv6CidrBlocks,[]*string) - - // List of prefix list IDs (for allowing access to VPC endpoints) - prefixListIds?: [...null | string] @go(PrefixListIds,[]*string) - - // Protocol. If you select a protocol of "-1" (semantically equivalent to all, which is not a valid value here), you must specify a from_port and to_port equal to 0. If not icmp, tcp, udp, or -1 use the protocol number. - protocol?: null | string @go(Protocol,*string) - - // List of security groups. A group name can be used relative to the default VPC. Otherwise, group ID. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Whether the security group itself will be added as a source to this egress rule. - self?: null | bool @go(Self,*bool) - - // End range port (or ICMP code if protocol is icmp). - toPort?: null | float64 @go(ToPort,*float64) -} - -#DefaultSecurityGroupEgressObservation: { - // List of CIDR blocks. - cidrBlocks?: [...null | string] @go(CidrBlocks,[]*string) - - // Description of this rule. - description?: null | string @go(Description,*string) - - // Start port (or ICMP type number if protocol is icmp) - fromPort?: null | float64 @go(FromPort,*float64) - - // List of IPv6 CIDR blocks. - ipv6CidrBlocks?: [...null | string] @go(IPv6CidrBlocks,[]*string) - - // List of prefix list IDs (for allowing access to VPC endpoints) - prefixListIds?: [...null | string] @go(PrefixListIds,[]*string) - - // Protocol. If you select a protocol of "-1" (semantically equivalent to all, which is not a valid value here), you must specify a from_port and to_port equal to 0. If not icmp, tcp, udp, or -1 use the protocol number. - protocol?: null | string @go(Protocol,*string) - - // List of security groups. A group name can be used relative to the default VPC. Otherwise, group ID. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Whether the security group itself will be added as a source to this egress rule. - self?: null | bool @go(Self,*bool) - - // End range port (or ICMP code if protocol is icmp). - toPort?: null | float64 @go(ToPort,*float64) -} - -#DefaultSecurityGroupEgressParameters: { - // List of CIDR blocks. - // +kubebuilder:validation:Optional - cidrBlocks?: [...null | string] @go(CidrBlocks,[]*string) - - // Description of this rule. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Start port (or ICMP type number if protocol is icmp) - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // List of IPv6 CIDR blocks. - // +kubebuilder:validation:Optional - ipv6CidrBlocks?: [...null | string] @go(IPv6CidrBlocks,[]*string) - - // List of prefix list IDs (for allowing access to VPC endpoints) - // +kubebuilder:validation:Optional - prefixListIds?: [...null | string] @go(PrefixListIds,[]*string) - - // Protocol. If you select a protocol of "-1" (semantically equivalent to all, which is not a valid value here), you must specify a from_port and to_port equal to 0. If not icmp, tcp, udp, or -1 use the protocol number. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // List of security groups. A group name can be used relative to the default VPC. Otherwise, group ID. - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Whether the security group itself will be added as a source to this egress rule. - // +kubebuilder:validation:Optional - self?: null | bool @go(Self,*bool) - - // End range port (or ICMP code if protocol is icmp). - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -#DefaultSecurityGroupIngressInitParameters: { - // List of CIDR blocks. - cidrBlocks?: [...null | string] @go(CidrBlocks,[]*string) - - // Description of this rule. - description?: null | string @go(Description,*string) - - // Start port (or ICMP type number if protocol is icmp) - fromPort?: null | float64 @go(FromPort,*float64) - - // List of IPv6 CIDR blocks. - ipv6CidrBlocks?: [...null | string] @go(IPv6CidrBlocks,[]*string) - - // List of prefix list IDs (for allowing access to VPC endpoints) - prefixListIds?: [...null | string] @go(PrefixListIds,[]*string) - - // Protocol. If you select a protocol of "-1" (semantically equivalent to all, which is not a valid value here), you must specify a from_port and to_port equal to 0. If not icmp, tcp, udp, or -1 use the protocol number. - protocol?: null | string @go(Protocol,*string) - - // List of security groups. A group name can be used relative to the default VPC. Otherwise, group ID. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Whether the security group itself will be added as a source to this egress rule. - self?: null | bool @go(Self,*bool) - - // End range port (or ICMP code if protocol is icmp). - toPort?: null | float64 @go(ToPort,*float64) -} - -#DefaultSecurityGroupIngressObservation: { - // List of CIDR blocks. - cidrBlocks?: [...null | string] @go(CidrBlocks,[]*string) - - // Description of this rule. - description?: null | string @go(Description,*string) - - // Start port (or ICMP type number if protocol is icmp) - fromPort?: null | float64 @go(FromPort,*float64) - - // List of IPv6 CIDR blocks. - ipv6CidrBlocks?: [...null | string] @go(IPv6CidrBlocks,[]*string) - - // List of prefix list IDs (for allowing access to VPC endpoints) - prefixListIds?: [...null | string] @go(PrefixListIds,[]*string) - - // Protocol. If you select a protocol of "-1" (semantically equivalent to all, which is not a valid value here), you must specify a from_port and to_port equal to 0. If not icmp, tcp, udp, or -1 use the protocol number. - protocol?: null | string @go(Protocol,*string) - - // List of security groups. A group name can be used relative to the default VPC. Otherwise, group ID. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Whether the security group itself will be added as a source to this egress rule. - self?: null | bool @go(Self,*bool) - - // End range port (or ICMP code if protocol is icmp). - toPort?: null | float64 @go(ToPort,*float64) -} - -#DefaultSecurityGroupIngressParameters: { - // List of CIDR blocks. - // +kubebuilder:validation:Optional - cidrBlocks?: [...null | string] @go(CidrBlocks,[]*string) - - // Description of this rule. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Start port (or ICMP type number if protocol is icmp) - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // List of IPv6 CIDR blocks. - // +kubebuilder:validation:Optional - ipv6CidrBlocks?: [...null | string] @go(IPv6CidrBlocks,[]*string) - - // List of prefix list IDs (for allowing access to VPC endpoints) - // +kubebuilder:validation:Optional - prefixListIds?: [...null | string] @go(PrefixListIds,[]*string) - - // Protocol. If you select a protocol of "-1" (semantically equivalent to all, which is not a valid value here), you must specify a from_port and to_port equal to 0. If not icmp, tcp, udp, or -1 use the protocol number. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // List of security groups. A group name can be used relative to the default VPC. Otherwise, group ID. - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Whether the security group itself will be added as a source to this egress rule. - // +kubebuilder:validation:Optional - self?: null | bool @go(Self,*bool) - - // End range port (or ICMP code if protocol is icmp). - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -#DefaultSecurityGroupInitParameters: { - // Configuration block. Detailed below. - egress?: [...#DefaultSecurityGroupEgressInitParameters] @go(Egress,[]DefaultSecurityGroupEgressInitParameters) - - // Configuration block. Detailed below. - ingress?: [...#DefaultSecurityGroupIngressInitParameters] @go(Ingress,[]DefaultSecurityGroupIngressInitParameters) - revokeRulesOnDelete?: null | bool @go(RevokeRulesOnDelete,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DefaultSecurityGroupObservation: { - // ARN of the security group. - arn?: null | string @go(Arn,*string) - - // Description of this rule. - description?: null | string @go(Description,*string) - - // Configuration block. Detailed below. - egress?: [...#DefaultSecurityGroupEgressObservation] @go(Egress,[]DefaultSecurityGroupEgressObservation) - - // ID of the security group. - id?: null | string @go(ID,*string) - - // Configuration block. Detailed below. - ingress?: [...#DefaultSecurityGroupIngressObservation] @go(Ingress,[]DefaultSecurityGroupIngressObservation) - - // Name of the security group. - name?: null | string @go(Name,*string) - - // Owner ID. - ownerId?: null | string @go(OwnerID,*string) - revokeRulesOnDelete?: null | bool @go(RevokeRulesOnDelete,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // VPC ID. Note that changing the It will be left in its current state. - vpcId?: null | string @go(VPCID,*string) -} - -#DefaultSecurityGroupParameters: { - // Configuration block. Detailed below. - // +kubebuilder:validation:Optional - egress?: [...#DefaultSecurityGroupEgressParameters] @go(Egress,[]DefaultSecurityGroupEgressParameters) - - // Configuration block. Detailed below. - // +kubebuilder:validation:Optional - ingress?: [...#DefaultSecurityGroupIngressParameters] @go(Ingress,[]DefaultSecurityGroupIngressParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // +kubebuilder:validation:Optional - revokeRulesOnDelete?: null | bool @go(RevokeRulesOnDelete,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // VPC ID. Note that changing the It will be left in its current state. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// DefaultSecurityGroupSpec defines the desired state of DefaultSecurityGroup -#DefaultSecurityGroupSpec: { - v1.#ResourceSpec - forProvider: #DefaultSecurityGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DefaultSecurityGroupInitParameters @go(InitProvider) -} - -// DefaultSecurityGroupStatus defines the observed state of DefaultSecurityGroup. -#DefaultSecurityGroupStatus: { - v1.#ResourceStatus - atProvider?: #DefaultSecurityGroupObservation @go(AtProvider) -} - -// DefaultSecurityGroup is the Schema for the DefaultSecurityGroups API. Manage a default security group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DefaultSecurityGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DefaultSecurityGroupSpec @go(Spec) - status?: #DefaultSecurityGroupStatus @go(Status) -} - -// DefaultSecurityGroupList contains a list of DefaultSecurityGroups -#DefaultSecurityGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DefaultSecurityGroup] @go(Items,[]DefaultSecurityGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultsubnet_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultsubnet_types_go_gen.cue deleted file mode 100644 index 322096f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultsubnet_types_go_gen.cue +++ /dev/null @@ -1,172 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DefaultSubnetInitParameters: { - assignIpv6AddressOnCreation?: null | bool @go(AssignIPv6AddressOnCreation,*bool) - - // is required - availabilityZone?: null | string @go(AvailabilityZone,*string) - customerOwnedIpv4Pool?: null | string @go(CustomerOwnedIPv4Pool,*string) - enableDns64?: null | bool @go(EnableDns64,*bool) - enableResourceNameDnsARecordOnLaunch?: null | bool @go(EnableResourceNameDNSARecordOnLaunch,*bool) - enableResourceNameDnsAaaaRecordOnLaunch?: null | bool @go(EnableResourceNameDNSAaaaRecordOnLaunch,*bool) - - // Whether destroying the resource deletes the default subnet. Default: false - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // The IPv4 CIDR block assigned to the subnet - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - ipv6Native?: null | bool @go(IPv6Native,*bool) - mapCustomerOwnedIpOnLaunch?: null | bool @go(MapCustomerOwnedIPOnLaunch,*bool) - - // is true - mapPublicIpOnLaunch?: null | bool @go(MapPublicIPOnLaunch,*bool) - privateDnsHostnameTypeOnLaunch?: null | string @go(PrivateDNSHostnameTypeOnLaunch,*string) - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DefaultSubnetObservation: { - arn?: null | string @go(Arn,*string) - assignIpv6AddressOnCreation?: null | bool @go(AssignIPv6AddressOnCreation,*bool) - - // is required - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // , cidr_block and vpc_id arguments become computed attributes - availabilityZoneId?: null | string @go(AvailabilityZoneID,*string) - - // The IPv4 CIDR block assigned to the subnet - cidrBlock?: null | string @go(CidrBlock,*string) - customerOwnedIpv4Pool?: null | string @go(CustomerOwnedIPv4Pool,*string) - enableDns64?: null | bool @go(EnableDns64,*bool) - enableLniAtDeviceIndex?: null | float64 @go(EnableLniAtDeviceIndex,*float64) - enableResourceNameDnsARecordOnLaunch?: null | bool @go(EnableResourceNameDNSARecordOnLaunch,*bool) - enableResourceNameDnsAaaaRecordOnLaunch?: null | bool @go(EnableResourceNameDNSAaaaRecordOnLaunch,*bool) - existingDefaultSubnet?: null | bool @go(ExistingDefaultSubnet,*bool) - - // Whether destroying the resource deletes the default subnet. Default: false - forceDestroy?: null | bool @go(ForceDestroy,*bool) - id?: null | string @go(ID,*string) - - // The IPv4 CIDR block assigned to the subnet - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - ipv6CidrBlockAssociationId?: null | string @go(IPv6CidrBlockAssociationID,*string) - ipv6Native?: null | bool @go(IPv6Native,*bool) - mapCustomerOwnedIpOnLaunch?: null | bool @go(MapCustomerOwnedIPOnLaunch,*bool) - - // is true - mapPublicIpOnLaunch?: null | bool @go(MapPublicIPOnLaunch,*bool) - outpostArn?: null | string @go(OutpostArn,*string) - ownerId?: null | string @go(OwnerID,*string) - privateDnsHostnameTypeOnLaunch?: null | string @go(PrivateDNSHostnameTypeOnLaunch,*string) - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the VPC the subnet is in - vpcId?: null | string @go(VPCID,*string) -} - -#DefaultSubnetParameters: { - // +kubebuilder:validation:Optional - assignIpv6AddressOnCreation?: null | bool @go(AssignIPv6AddressOnCreation,*bool) - - // is required - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // +kubebuilder:validation:Optional - customerOwnedIpv4Pool?: null | string @go(CustomerOwnedIPv4Pool,*string) - - // +kubebuilder:validation:Optional - enableDns64?: null | bool @go(EnableDns64,*bool) - - // +kubebuilder:validation:Optional - enableResourceNameDnsARecordOnLaunch?: null | bool @go(EnableResourceNameDNSARecordOnLaunch,*bool) - - // +kubebuilder:validation:Optional - enableResourceNameDnsAaaaRecordOnLaunch?: null | bool @go(EnableResourceNameDNSAaaaRecordOnLaunch,*bool) - - // Whether destroying the resource deletes the default subnet. Default: false - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // The IPv4 CIDR block assigned to the subnet - // +kubebuilder:validation:Optional - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // +kubebuilder:validation:Optional - ipv6Native?: null | bool @go(IPv6Native,*bool) - - // +kubebuilder:validation:Optional - mapCustomerOwnedIpOnLaunch?: null | bool @go(MapCustomerOwnedIPOnLaunch,*bool) - - // is true - // +kubebuilder:validation:Optional - mapPublicIpOnLaunch?: null | bool @go(MapPublicIPOnLaunch,*bool) - - // +kubebuilder:validation:Optional - privateDnsHostnameTypeOnLaunch?: null | string @go(PrivateDNSHostnameTypeOnLaunch,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// DefaultSubnetSpec defines the desired state of DefaultSubnet -#DefaultSubnetSpec: { - v1.#ResourceSpec - forProvider: #DefaultSubnetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DefaultSubnetInitParameters @go(InitProvider) -} - -// DefaultSubnetStatus defines the observed state of DefaultSubnet. -#DefaultSubnetStatus: { - v1.#ResourceStatus - atProvider?: #DefaultSubnetObservation @go(AtProvider) -} - -// DefaultSubnet is the Schema for the DefaultSubnets API. Manage a default subnet resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DefaultSubnet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.availabilityZone) || (has(self.initProvider) && has(self.initProvider.availabilityZone))",message="spec.forProvider.availabilityZone is a required parameter" - spec: #DefaultSubnetSpec @go(Spec) - status?: #DefaultSubnetStatus @go(Status) -} - -// DefaultSubnetList contains a list of DefaultSubnets -#DefaultSubnetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DefaultSubnet] @go(Items,[]DefaultSubnet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultvpc_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultvpc_types_go_gen.cue deleted file mode 100644 index daafc45..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultvpc_types_go_gen.cue +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DefaultVPCInitParameters: { - // and instance_tenancy arguments become computed attributes - assignGeneratedIpv6CidrBlock?: null | bool @go(AssignGeneratedIPv6CidrBlock,*bool) - enableClassiclink?: null | bool @go(EnableClassiclink,*bool) - enableClassiclinkDnsSupport?: null | bool @go(EnableClassiclinkDNSSupport,*bool) - - // is true - enableDnsHostnames?: null | bool @go(EnableDNSHostnames,*bool) - enableDnsSupport?: null | bool @go(EnableDNSSupport,*bool) - enableNetworkAddressUsageMetrics?: null | bool @go(EnableNetworkAddressUsageMetrics,*bool) - - // Whether destroying the resource deletes the default VPC. Default: false - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // and instance_tenancy arguments become computed attributes - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - ipv6CidrBlockNetworkBorderGroup?: null | string @go(IPv6CidrBlockNetworkBorderGroup,*string) - ipv6IpamPoolId?: null | string @go(IPv6IpamPoolID,*string) - ipv6NetmaskLength?: null | float64 @go(IPv6NetmaskLength,*float64) - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DefaultVPCObservation: { - arn?: null | string @go(Arn,*string) - - // and instance_tenancy arguments become computed attributes - assignGeneratedIpv6CidrBlock?: null | bool @go(AssignGeneratedIPv6CidrBlock,*bool) - - // and instance_tenancy arguments become computed attributes - cidrBlock?: null | string @go(CidrBlock,*string) - dhcpOptionsId?: null | string @go(DHCPOptionsID,*string) - defaultNetworkAclId?: null | string @go(DefaultNetworkACLID,*string) - defaultRouteTableId?: null | string @go(DefaultRouteTableID,*string) - defaultSecurityGroupId?: null | string @go(DefaultSecurityGroupID,*string) - enableClassiclink?: null | bool @go(EnableClassiclink,*bool) - enableClassiclinkDnsSupport?: null | bool @go(EnableClassiclinkDNSSupport,*bool) - - // is true - enableDnsHostnames?: null | bool @go(EnableDNSHostnames,*bool) - enableDnsSupport?: null | bool @go(EnableDNSSupport,*bool) - enableNetworkAddressUsageMetrics?: null | bool @go(EnableNetworkAddressUsageMetrics,*bool) - existingDefaultVpc?: null | bool @go(ExistingDefaultVPC,*bool) - - // Whether destroying the resource deletes the default VPC. Default: false - forceDestroy?: null | bool @go(ForceDestroy,*bool) - id?: null | string @go(ID,*string) - ipv6AssociationId?: null | string @go(IPv6AssociationID,*string) - - // and instance_tenancy arguments become computed attributes - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - ipv6CidrBlockNetworkBorderGroup?: null | string @go(IPv6CidrBlockNetworkBorderGroup,*string) - ipv6IpamPoolId?: null | string @go(IPv6IpamPoolID,*string) - ipv6NetmaskLength?: null | float64 @go(IPv6NetmaskLength,*float64) - - // The allowed tenancy of instances launched into the VPC - instanceTenancy?: null | string @go(InstanceTenancy,*string) - mainRouteTableId?: null | string @go(MainRouteTableID,*string) - ownerId?: null | string @go(OwnerID,*string) - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DefaultVPCParameters: { - // and instance_tenancy arguments become computed attributes - // +kubebuilder:validation:Optional - assignGeneratedIpv6CidrBlock?: null | bool @go(AssignGeneratedIPv6CidrBlock,*bool) - - // +kubebuilder:validation:Optional - enableClassiclink?: null | bool @go(EnableClassiclink,*bool) - - // +kubebuilder:validation:Optional - enableClassiclinkDnsSupport?: null | bool @go(EnableClassiclinkDNSSupport,*bool) - - // is true - // +kubebuilder:validation:Optional - enableDnsHostnames?: null | bool @go(EnableDNSHostnames,*bool) - - // +kubebuilder:validation:Optional - enableDnsSupport?: null | bool @go(EnableDNSSupport,*bool) - - // +kubebuilder:validation:Optional - enableNetworkAddressUsageMetrics?: null | bool @go(EnableNetworkAddressUsageMetrics,*bool) - - // Whether destroying the resource deletes the default VPC. Default: false - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // and instance_tenancy arguments become computed attributes - // +kubebuilder:validation:Optional - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // +kubebuilder:validation:Optional - ipv6CidrBlockNetworkBorderGroup?: null | string @go(IPv6CidrBlockNetworkBorderGroup,*string) - - // +kubebuilder:validation:Optional - ipv6IpamPoolId?: null | string @go(IPv6IpamPoolID,*string) - - // +kubebuilder:validation:Optional - ipv6NetmaskLength?: null | float64 @go(IPv6NetmaskLength,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// DefaultVPCSpec defines the desired state of DefaultVPC -#DefaultVPCSpec: { - v1.#ResourceSpec - forProvider: #DefaultVPCParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DefaultVPCInitParameters @go(InitProvider) -} - -// DefaultVPCStatus defines the observed state of DefaultVPC. -#DefaultVPCStatus: { - v1.#ResourceStatus - atProvider?: #DefaultVPCObservation @go(AtProvider) -} - -// DefaultVPC is the Schema for the DefaultVPCs API. Manage a default VPC resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DefaultVPC: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DefaultVPCSpec @go(Spec) - status?: #DefaultVPCStatus @go(Status) -} - -// DefaultVPCList contains a list of DefaultVPCs -#DefaultVPCList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DefaultVPC] @go(Items,[]DefaultVPC) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultvpcdhcpoptions_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultvpcdhcpoptions_types_go_gen.cue deleted file mode 100644 index b7c6981..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_defaultvpcdhcpoptions_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DefaultVPCDHCPOptionsInitParameters: { - // The ID of the AWS account that owns the DHCP options set. - ownerId?: null | string @go(OwnerID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DefaultVPCDHCPOptionsObservation: { - // The ARN of the DHCP Options Set. - arn?: null | string @go(Arn,*string) - domainName?: null | string @go(DomainName,*string) - domainNameServers?: null | string @go(DomainNameServers,*string) - - // The ID of the DHCP Options Set. - id?: null | string @go(ID,*string) - - // List of NETBIOS name servers. - netbiosNameServers?: null | string @go(NetbiosNameServers,*string) - - // The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132. - netbiosNodeType?: null | string @go(NetbiosNodeType,*string) - ntpServers?: null | string @go(NtpServers,*string) - - // The ID of the AWS account that owns the DHCP options set. - ownerId?: null | string @go(OwnerID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DefaultVPCDHCPOptionsParameters: { - // The ID of the AWS account that owns the DHCP options set. - // +kubebuilder:validation:Optional - ownerId?: null | string @go(OwnerID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// DefaultVPCDHCPOptionsSpec defines the desired state of DefaultVPCDHCPOptions -#DefaultVPCDHCPOptionsSpec: { - v1.#ResourceSpec - forProvider: #DefaultVPCDHCPOptionsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DefaultVPCDHCPOptionsInitParameters @go(InitProvider) -} - -// DefaultVPCDHCPOptionsStatus defines the observed state of DefaultVPCDHCPOptions. -#DefaultVPCDHCPOptionsStatus: { - v1.#ResourceStatus - atProvider?: #DefaultVPCDHCPOptionsObservation @go(AtProvider) -} - -// DefaultVPCDHCPOptions is the Schema for the DefaultVPCDHCPOptionss API. Manage the default VPC DHCP Options resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DefaultVPCDHCPOptions: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DefaultVPCDHCPOptionsSpec @go(Spec) - status?: #DefaultVPCDHCPOptionsStatus @go(Status) -} - -// DefaultVPCDHCPOptionsList contains a list of DefaultVPCDHCPOptionss -#DefaultVPCDHCPOptionsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DefaultVPCDHCPOptions] @go(Items,[]DefaultVPCDHCPOptions) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebsdefaultkmskey_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebsdefaultkmskey_types_go_gen.cue deleted file mode 100644 index 5ee72d7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebsdefaultkmskey_types_go_gen.cue +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EBSDefaultKMSKeyInitParameters: { -} - -#EBSDefaultKMSKeyObservation: { - id?: null | string @go(ID,*string) - - // The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use to encrypt the EBS volume. - keyArn?: null | string @go(KeyArn,*string) -} - -#EBSDefaultKMSKeyParameters: { - // The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use to encrypt the EBS volume. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - keyArn?: null | string @go(KeyArn,*string) - - // Reference to a Key in kms to populate keyArn. - // +kubebuilder:validation:Optional - keyArnRef?: null | v1.#Reference @go(KeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate keyArn. - // +kubebuilder:validation:Optional - keyArnSelector?: null | v1.#Selector @go(KeyArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// EBSDefaultKMSKeySpec defines the desired state of EBSDefaultKMSKey -#EBSDefaultKMSKeySpec: { - v1.#ResourceSpec - forProvider: #EBSDefaultKMSKeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EBSDefaultKMSKeyInitParameters @go(InitProvider) -} - -// EBSDefaultKMSKeyStatus defines the observed state of EBSDefaultKMSKey. -#EBSDefaultKMSKeyStatus: { - v1.#ResourceStatus - atProvider?: #EBSDefaultKMSKeyObservation @go(AtProvider) -} - -// EBSDefaultKMSKey is the Schema for the EBSDefaultKMSKeys API. Manages the default customer master key (CMK) that your AWS account uses to encrypt EBS volumes. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EBSDefaultKMSKey: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EBSDefaultKMSKeySpec @go(Spec) - status?: #EBSDefaultKMSKeyStatus @go(Status) -} - -// EBSDefaultKMSKeyList contains a list of EBSDefaultKMSKeys -#EBSDefaultKMSKeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EBSDefaultKMSKey] @go(Items,[]EBSDefaultKMSKey) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebsencryptionbydefault_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebsencryptionbydefault_types_go_gen.cue deleted file mode 100644 index 3336877..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebsencryptionbydefault_types_go_gen.cue +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EBSEncryptionByDefaultInitParameters: { - // Whether or not default EBS encryption is enabled. Valid values are true or false. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) -} - -#EBSEncryptionByDefaultObservation: { - // Whether or not default EBS encryption is enabled. Valid values are true or false. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - id?: null | string @go(ID,*string) -} - -#EBSEncryptionByDefaultParameters: { - // Whether or not default EBS encryption is enabled. Valid values are true or false. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// EBSEncryptionByDefaultSpec defines the desired state of EBSEncryptionByDefault -#EBSEncryptionByDefaultSpec: { - v1.#ResourceSpec - forProvider: #EBSEncryptionByDefaultParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EBSEncryptionByDefaultInitParameters @go(InitProvider) -} - -// EBSEncryptionByDefaultStatus defines the observed state of EBSEncryptionByDefault. -#EBSEncryptionByDefaultStatus: { - v1.#ResourceStatus - atProvider?: #EBSEncryptionByDefaultObservation @go(AtProvider) -} - -// EBSEncryptionByDefault is the Schema for the EBSEncryptionByDefaults API. Manages whether default EBS encryption is enabled for your AWS account in the current AWS region. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EBSEncryptionByDefault: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EBSEncryptionByDefaultSpec @go(Spec) - status?: #EBSEncryptionByDefaultStatus @go(Status) -} - -// EBSEncryptionByDefaultList contains a list of EBSEncryptionByDefaults -#EBSEncryptionByDefaultList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EBSEncryptionByDefault] @go(Items,[]EBSEncryptionByDefault) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebssnapshot_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebssnapshot_types_go_gen.cue deleted file mode 100644 index 697c953..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebssnapshot_types_go_gen.cue +++ /dev/null @@ -1,170 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EBSSnapshotInitParameters: { - // A description of what the snapshot is. - description?: null | string @go(Description,*string) - - // The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot. - outpostArn?: null | string @go(OutpostArn,*string) - - // Indicates whether to permanently restore an archived snapshot. - permanentRestore?: null | bool @go(PermanentRestore,*bool) - - // The name of the storage tier. Valid values are archive and standard. Default value is standard. - storageTier?: null | string @go(StorageTier,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period. - temporaryRestoreDays?: null | float64 @go(TemporaryRestoreDays,*float64) -} - -#EBSSnapshotObservation: { - // Amazon Resource Name (ARN) of the EBS Snapshot. - arn?: null | string @go(Arn,*string) - - // The data encryption key identifier for the snapshot. - dataEncryptionKeyId?: null | string @go(DataEncryptionKeyID,*string) - - // A description of what the snapshot is. - description?: null | string @go(Description,*string) - - // Whether the snapshot is encrypted. - encrypted?: null | bool @go(Encrypted,*bool) - - // The snapshot ID (e.g., snap-59fcb34e). - id?: null | string @go(ID,*string) - - // The ARN for the KMS encryption key. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot. - outpostArn?: null | string @go(OutpostArn,*string) - - // Value from an Amazon-maintained list (amazon, aws-marketplace, microsoft) of snapshot owners. - ownerAlias?: null | string @go(OwnerAlias,*string) - - // The AWS account ID of the EBS snapshot owner. - ownerId?: null | string @go(OwnerID,*string) - - // Indicates whether to permanently restore an archived snapshot. - permanentRestore?: null | bool @go(PermanentRestore,*bool) - - // The name of the storage tier. Valid values are archive and standard. Default value is standard. - storageTier?: null | string @go(StorageTier,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period. - temporaryRestoreDays?: null | float64 @go(TemporaryRestoreDays,*float64) - - // The Volume ID of which to make a snapshot. - volumeId?: null | string @go(VolumeID,*string) - - // The size of the drive in GiBs. - volumeSize?: null | float64 @go(VolumeSize,*float64) -} - -#EBSSnapshotParameters: { - // A description of what the snapshot is. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot. - // +kubebuilder:validation:Optional - outpostArn?: null | string @go(OutpostArn,*string) - - // Indicates whether to permanently restore an archived snapshot. - // +kubebuilder:validation:Optional - permanentRestore?: null | bool @go(PermanentRestore,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the storage tier. Valid values are archive and standard. Default value is standard. - // +kubebuilder:validation:Optional - storageTier?: null | string @go(StorageTier,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period. - // +kubebuilder:validation:Optional - temporaryRestoreDays?: null | float64 @go(TemporaryRestoreDays,*float64) - - // The Volume ID of which to make a snapshot. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.EBSVolume - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - volumeId?: null | string @go(VolumeID,*string) - - // Reference to a EBSVolume in ec2 to populate volumeId. - // +kubebuilder:validation:Optional - volumeIdRef?: null | v1.#Reference @go(VolumeIDRef,*v1.Reference) - - // Selector for a EBSVolume in ec2 to populate volumeId. - // +kubebuilder:validation:Optional - volumeIdSelector?: null | v1.#Selector @go(VolumeIDSelector,*v1.Selector) -} - -// EBSSnapshotSpec defines the desired state of EBSSnapshot -#EBSSnapshotSpec: { - v1.#ResourceSpec - forProvider: #EBSSnapshotParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EBSSnapshotInitParameters @go(InitProvider) -} - -// EBSSnapshotStatus defines the observed state of EBSSnapshot. -#EBSSnapshotStatus: { - v1.#ResourceStatus - atProvider?: #EBSSnapshotObservation @go(AtProvider) -} - -// EBSSnapshot is the Schema for the EBSSnapshots API. Provides an elastic block storage snapshot resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EBSSnapshot: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EBSSnapshotSpec @go(Spec) - status?: #EBSSnapshotStatus @go(Status) -} - -// EBSSnapshotList contains a list of EBSSnapshots -#EBSSnapshotList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EBSSnapshot] @go(Items,[]EBSSnapshot) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebssnapshotcopy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebssnapshotcopy_types_go_gen.cue deleted file mode 100644 index 7a0a288..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebssnapshotcopy_types_go_gen.cue +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EBSSnapshotCopyInitParameters: { - // A description of what the snapshot is. - description?: null | string @go(Description,*string) - - // Whether the snapshot is encrypted. - encrypted?: null | bool @go(Encrypted,*bool) - - // Indicates whether to permanently restore an archived snapshot. - permanentRestore?: null | bool @go(PermanentRestore,*bool) - - // The region of the source snapshot. - sourceRegion?: null | string @go(SourceRegion,*string) - - // The name of the storage tier. Valid values are archive and standard. Default value is standard. - storageTier?: null | string @go(StorageTier,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period. - temporaryRestoreDays?: null | float64 @go(TemporaryRestoreDays,*float64) -} - -#EBSSnapshotCopyObservation: { - // Amazon Resource Name (ARN) of the EBS Snapshot. - arn?: null | string @go(Arn,*string) - - // The data encryption key identifier for the snapshot. - dataEncryptionKeyId?: null | string @go(DataEncryptionKeyID,*string) - - // A description of what the snapshot is. - description?: null | string @go(Description,*string) - - // Whether the snapshot is encrypted. - encrypted?: null | bool @go(Encrypted,*bool) - - // The snapshot ID (e.g., snap-59fcb34e). - id?: null | string @go(ID,*string) - - // The ARN for the KMS encryption key. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Amazon Resource Name (ARN) of the EBS Snapshot. - outpostArn?: null | string @go(OutpostArn,*string) - - // Value from an Amazon-maintained list (amazon, aws-marketplace, microsoft) of snapshot owners. - ownerAlias?: null | string @go(OwnerAlias,*string) - - // The AWS account ID of the snapshot owner. - ownerId?: null | string @go(OwnerID,*string) - - // Indicates whether to permanently restore an archived snapshot. - permanentRestore?: null | bool @go(PermanentRestore,*bool) - - // The region of the source snapshot. - sourceRegion?: null | string @go(SourceRegion,*string) - - // The ARN for the snapshot to be copied. - sourceSnapshotId?: null | string @go(SourceSnapshotID,*string) - - // The name of the storage tier. Valid values are archive and standard. Default value is standard. - storageTier?: null | string @go(StorageTier,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period. - temporaryRestoreDays?: null | float64 @go(TemporaryRestoreDays,*float64) - - // The snapshot ID (e.g., snap-59fcb34e). - volumeId?: null | string @go(VolumeID,*string) - - // The size of the drive in GiBs. - volumeSize?: null | float64 @go(VolumeSize,*float64) -} - -#EBSSnapshotCopyParameters: { - // A description of what the snapshot is. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether the snapshot is encrypted. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // The ARN for the KMS encryption key. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Indicates whether to permanently restore an archived snapshot. - // +kubebuilder:validation:Optional - permanentRestore?: null | bool @go(PermanentRestore,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The region of the source snapshot. - // +kubebuilder:validation:Optional - sourceRegion?: null | string @go(SourceRegion,*string) - - // The ARN for the snapshot to be copied. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.EBSSnapshot - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - sourceSnapshotId?: null | string @go(SourceSnapshotID,*string) - - // Reference to a EBSSnapshot in ec2 to populate sourceSnapshotId. - // +kubebuilder:validation:Optional - sourceSnapshotIdRef?: null | v1.#Reference @go(SourceSnapshotIDRef,*v1.Reference) - - // Selector for a EBSSnapshot in ec2 to populate sourceSnapshotId. - // +kubebuilder:validation:Optional - sourceSnapshotIdSelector?: null | v1.#Selector @go(SourceSnapshotIDSelector,*v1.Selector) - - // The name of the storage tier. Valid values are archive and standard. Default value is standard. - // +kubebuilder:validation:Optional - storageTier?: null | string @go(StorageTier,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period. - // +kubebuilder:validation:Optional - temporaryRestoreDays?: null | float64 @go(TemporaryRestoreDays,*float64) -} - -// EBSSnapshotCopySpec defines the desired state of EBSSnapshotCopy -#EBSSnapshotCopySpec: { - v1.#ResourceSpec - forProvider: #EBSSnapshotCopyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EBSSnapshotCopyInitParameters @go(InitProvider) -} - -// EBSSnapshotCopyStatus defines the observed state of EBSSnapshotCopy. -#EBSSnapshotCopyStatus: { - v1.#ResourceStatus - atProvider?: #EBSSnapshotCopyObservation @go(AtProvider) -} - -// EBSSnapshotCopy is the Schema for the EBSSnapshotCopys API. Duplicates an existing Amazon snapshot -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EBSSnapshotCopy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sourceRegion) || (has(self.initProvider) && has(self.initProvider.sourceRegion))",message="spec.forProvider.sourceRegion is a required parameter" - spec: #EBSSnapshotCopySpec @go(Spec) - status?: #EBSSnapshotCopyStatus @go(Status) -} - -// EBSSnapshotCopyList contains a list of EBSSnapshotCopys -#EBSSnapshotCopyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EBSSnapshotCopy] @go(Items,[]EBSSnapshotCopy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebssnapshotimport_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebssnapshotimport_types_go_gen.cue deleted file mode 100644 index 4c68e80..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebssnapshotimport_types_go_gen.cue +++ /dev/null @@ -1,319 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClientDataInitParameters: { - // A user-defined comment about the disk upload. - comment?: null | string @go(Comment,*string) - - // The time that the disk upload ends. - uploadEnd?: null | string @go(UploadEnd,*string) - - // The size of the uploaded disk image, in GiB. - uploadSize?: null | float64 @go(UploadSize,*float64) - - // The time that the disk upload starts. - uploadStart?: null | string @go(UploadStart,*string) -} - -#ClientDataObservation: { - // A user-defined comment about the disk upload. - comment?: null | string @go(Comment,*string) - - // The time that the disk upload ends. - uploadEnd?: null | string @go(UploadEnd,*string) - - // The size of the uploaded disk image, in GiB. - uploadSize?: null | float64 @go(UploadSize,*float64) - - // The time that the disk upload starts. - uploadStart?: null | string @go(UploadStart,*string) -} - -#ClientDataParameters: { - // A user-defined comment about the disk upload. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // The time that the disk upload ends. - // +kubebuilder:validation:Optional - uploadEnd?: null | string @go(UploadEnd,*string) - - // The size of the uploaded disk image, in GiB. - // +kubebuilder:validation:Optional - uploadSize?: null | float64 @go(UploadSize,*float64) - - // The time that the disk upload starts. - // +kubebuilder:validation:Optional - uploadStart?: null | string @go(UploadStart,*string) -} - -#DiskContainerInitParameters: { - // The description of the disk image being imported. - description?: null | string @go(Description,*string) - - // The format of the disk image being imported. One of VHD or VMDK. - format?: null | string @go(Format,*string) - - // The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..). One of url or user_bucket must be set. - url?: null | string @go(URL,*string) - - // The Amazon S3 bucket for the disk image. One of url or user_bucket must be set. Detailed below. - userBucket?: [...#UserBucketInitParameters] @go(UserBucket,[]UserBucketInitParameters) -} - -#DiskContainerObservation: { - // The description of the disk image being imported. - description?: null | string @go(Description,*string) - - // The format of the disk image being imported. One of VHD or VMDK. - format?: null | string @go(Format,*string) - - // The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..). One of url or user_bucket must be set. - url?: null | string @go(URL,*string) - - // The Amazon S3 bucket for the disk image. One of url or user_bucket must be set. Detailed below. - userBucket?: [...#UserBucketObservation] @go(UserBucket,[]UserBucketObservation) -} - -#DiskContainerParameters: { - // The description of the disk image being imported. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The format of the disk image being imported. One of VHD or VMDK. - // +kubebuilder:validation:Optional - format?: null | string @go(Format,*string) - - // The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..). One of url or user_bucket must be set. - // +kubebuilder:validation:Optional - url?: null | string @go(URL,*string) - - // The Amazon S3 bucket for the disk image. One of url or user_bucket must be set. Detailed below. - // +kubebuilder:validation:Optional - userBucket?: [...#UserBucketParameters] @go(UserBucket,[]UserBucketParameters) -} - -#EBSSnapshotImportInitParameters: { - // The client-specific data. Detailed below. - clientData?: [...#ClientDataInitParameters] @go(ClientData,[]ClientDataInitParameters) - - // The description string for the import snapshot task. - description?: null | string @go(Description,*string) - - // Information about the disk container. Detailed below. - diskContainer?: [...#DiskContainerInitParameters] @go(DiskContainer,[]DiskContainerInitParameters) - - // Specifies whether the destination snapshot of the imported image should be encrypted. The default KMS key for EBS is used unless you specify a non-default KMS key using KmsKeyId. - encrypted?: null | bool @go(Encrypted,*bool) - - // Indicates whether to permanently restore an archived snapshot. - permanentRestore?: null | bool @go(PermanentRestore,*bool) - - // The name of the IAM Role the VM Import/Export service will assume. This role needs certain permissions. See https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#vmimport-role. Default: vmimport - roleName?: null | string @go(RoleName,*string) - - // The name of the storage tier. Valid values are archive and standard. Default value is standard. - storageTier?: null | string @go(StorageTier,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period. - temporaryRestoreDays?: null | float64 @go(TemporaryRestoreDays,*float64) -} - -#EBSSnapshotImportObservation: { - // Amazon Resource Name (ARN) of the EBS Snapshot. - arn?: null | string @go(Arn,*string) - - // The client-specific data. Detailed below. - clientData?: [...#ClientDataObservation] @go(ClientData,[]ClientDataObservation) - - // The data encryption key identifier for the snapshot. - dataEncryptionKeyId?: null | string @go(DataEncryptionKeyID,*string) - - // The description string for the import snapshot task. - description?: null | string @go(Description,*string) - - // Information about the disk container. Detailed below. - diskContainer?: [...#DiskContainerObservation] @go(DiskContainer,[]DiskContainerObservation) - - // Specifies whether the destination snapshot of the imported image should be encrypted. The default KMS key for EBS is used unless you specify a non-default KMS key using KmsKeyId. - encrypted?: null | bool @go(Encrypted,*bool) - - // The snapshot ID (e.g., snap-59fcb34e). - id?: null | string @go(ID,*string) - - // An identifier for the symmetric KMS key to use when creating the encrypted snapshot. This parameter is only required if you want to use a non-default KMS key; if this parameter is not specified, the default KMS key for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Amazon Resource Name (ARN) of the EBS Snapshot. - outpostArn?: null | string @go(OutpostArn,*string) - - // Value from an Amazon-maintained list (amazon, aws-marketplace, microsoft) of snapshot owners. - ownerAlias?: null | string @go(OwnerAlias,*string) - - // The AWS account ID of the EBS snapshot owner. - ownerId?: null | string @go(OwnerID,*string) - - // Indicates whether to permanently restore an archived snapshot. - permanentRestore?: null | bool @go(PermanentRestore,*bool) - - // The name of the IAM Role the VM Import/Export service will assume. This role needs certain permissions. See https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#vmimport-role. Default: vmimport - roleName?: null | string @go(RoleName,*string) - - // The name of the storage tier. Valid values are archive and standard. Default value is standard. - storageTier?: null | string @go(StorageTier,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period. - temporaryRestoreDays?: null | float64 @go(TemporaryRestoreDays,*float64) - - // The snapshot ID (e.g., snap-59fcb34e). - volumeId?: null | string @go(VolumeID,*string) - - // The size of the drive in GiBs. - volumeSize?: null | float64 @go(VolumeSize,*float64) -} - -#EBSSnapshotImportParameters: { - // The client-specific data. Detailed below. - // +kubebuilder:validation:Optional - clientData?: [...#ClientDataParameters] @go(ClientData,[]ClientDataParameters) - - // The description string for the import snapshot task. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Information about the disk container. Detailed below. - // +kubebuilder:validation:Optional - diskContainer?: [...#DiskContainerParameters] @go(DiskContainer,[]DiskContainerParameters) - - // Specifies whether the destination snapshot of the imported image should be encrypted. The default KMS key for EBS is used unless you specify a non-default KMS key using KmsKeyId. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // An identifier for the symmetric KMS key to use when creating the encrypted snapshot. This parameter is only required if you want to use a non-default KMS key; if this parameter is not specified, the default KMS key for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Indicates whether to permanently restore an archived snapshot. - // +kubebuilder:validation:Optional - permanentRestore?: null | bool @go(PermanentRestore,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the IAM Role the VM Import/Export service will assume. This role needs certain permissions. See https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#vmimport-role. Default: vmimport - // +kubebuilder:validation:Optional - roleName?: null | string @go(RoleName,*string) - - // The name of the storage tier. Valid values are archive and standard. Default value is standard. - // +kubebuilder:validation:Optional - storageTier?: null | string @go(StorageTier,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period. - // +kubebuilder:validation:Optional - temporaryRestoreDays?: null | float64 @go(TemporaryRestoreDays,*float64) -} - -#UserBucketInitParameters: { - // The name of the Amazon S3 bucket where the disk image is located. - s3Bucket?: null | string @go(S3Bucket,*string) - - // The file name of the disk image. - s3Key?: null | string @go(S3Key,*string) -} - -#UserBucketObservation: { - // The name of the Amazon S3 bucket where the disk image is located. - s3Bucket?: null | string @go(S3Bucket,*string) - - // The file name of the disk image. - s3Key?: null | string @go(S3Key,*string) -} - -#UserBucketParameters: { - // The name of the Amazon S3 bucket where the disk image is located. - // +kubebuilder:validation:Optional - s3Bucket?: null | string @go(S3Bucket,*string) - - // The file name of the disk image. - // +kubebuilder:validation:Optional - s3Key?: null | string @go(S3Key,*string) -} - -// EBSSnapshotImportSpec defines the desired state of EBSSnapshotImport -#EBSSnapshotImportSpec: { - v1.#ResourceSpec - forProvider: #EBSSnapshotImportParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EBSSnapshotImportInitParameters @go(InitProvider) -} - -// EBSSnapshotImportStatus defines the observed state of EBSSnapshotImport. -#EBSSnapshotImportStatus: { - v1.#ResourceStatus - atProvider?: #EBSSnapshotImportObservation @go(AtProvider) -} - -// EBSSnapshotImport is the Schema for the EBSSnapshotImports API. Provides an elastic block storage snapshot import resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EBSSnapshotImport: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.diskContainer) || (has(self.initProvider) && has(self.initProvider.diskContainer))",message="spec.forProvider.diskContainer is a required parameter" - spec: #EBSSnapshotImportSpec @go(Spec) - status?: #EBSSnapshotImportStatus @go(Status) -} - -// EBSSnapshotImportList contains a list of EBSSnapshotImports -#EBSSnapshotImportList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EBSSnapshotImport] @go(Items,[]EBSSnapshotImport) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebsvolume_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebsvolume_types_go_gen.cue deleted file mode 100644 index 0b9f29e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_ebsvolume_types_go_gen.cue +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EBSVolumeInitParameters: { - // The AZ where the EBS volume will exist. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // If true, the disk will be encrypted. - encrypted?: null | bool @go(Encrypted,*bool) - - // If true, snapshot will be created before volume deletion. Any tags on the volume will be migrated to the snapshot. By default set to false - finalSnapshot?: null | bool @go(FinalSnapshot,*bool) - - // The amount of IOPS to provision for the disk. Only valid for type of io1, io2 or gp3. - iops?: null | float64 @go(Iops,*float64) - - // Specifies whether to enable Amazon EBS Multi-Attach. Multi-Attach is supported on io1 and io2 volumes. - multiAttachEnabled?: null | bool @go(MultiAttachEnabled,*bool) - - // The Amazon Resource Name (ARN) of the Outpost. - outpostArn?: null | string @go(OutpostArn,*string) - - // The size of the drive in GiBs. - size?: null | float64 @go(Size,*float64) - - // A snapshot to base the EBS volume off of. - snapshotId?: null | string @go(SnapshotID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The throughput that the volume supports, in MiB/s. Only valid for type of gp3. - throughput?: null | float64 @go(Throughput,*float64) - - // The type of EBS volume. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: gp2). - type?: null | string @go(Type,*string) -} - -#EBSVolumeObservation: { - // The volume ARN (e.g., arn:aws:ec2:us-east-1:0123456789012:volume/vol-59fcb34e). - arn?: null | string @go(Arn,*string) - - // The AZ where the EBS volume will exist. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // If true, the disk will be encrypted. - encrypted?: null | bool @go(Encrypted,*bool) - - // If true, snapshot will be created before volume deletion. Any tags on the volume will be migrated to the snapshot. By default set to false - finalSnapshot?: null | bool @go(FinalSnapshot,*bool) - - // The volume ID (e.g., vol-59fcb34e). - id?: null | string @go(ID,*string) - - // The amount of IOPS to provision for the disk. Only valid for type of io1, io2 or gp3. - iops?: null | float64 @go(Iops,*float64) - - // The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Specifies whether to enable Amazon EBS Multi-Attach. Multi-Attach is supported on io1 and io2 volumes. - multiAttachEnabled?: null | bool @go(MultiAttachEnabled,*bool) - - // The Amazon Resource Name (ARN) of the Outpost. - outpostArn?: null | string @go(OutpostArn,*string) - - // The size of the drive in GiBs. - size?: null | float64 @go(Size,*float64) - - // A snapshot to base the EBS volume off of. - snapshotId?: null | string @go(SnapshotID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The throughput that the volume supports, in MiB/s. Only valid for type of gp3. - throughput?: null | float64 @go(Throughput,*float64) - - // The type of EBS volume. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: gp2). - type?: null | string @go(Type,*string) -} - -#EBSVolumeParameters: { - // The AZ where the EBS volume will exist. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // If true, the disk will be encrypted. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // If true, snapshot will be created before volume deletion. Any tags on the volume will be migrated to the snapshot. By default set to false - // +kubebuilder:validation:Optional - finalSnapshot?: null | bool @go(FinalSnapshot,*bool) - - // The amount of IOPS to provision for the disk. Only valid for type of io1, io2 or gp3. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Specifies whether to enable Amazon EBS Multi-Attach. Multi-Attach is supported on io1 and io2 volumes. - // +kubebuilder:validation:Optional - multiAttachEnabled?: null | bool @go(MultiAttachEnabled,*bool) - - // The Amazon Resource Name (ARN) of the Outpost. - // +kubebuilder:validation:Optional - outpostArn?: null | string @go(OutpostArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The size of the drive in GiBs. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // A snapshot to base the EBS volume off of. - // +kubebuilder:validation:Optional - snapshotId?: null | string @go(SnapshotID,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The throughput that the volume supports, in MiB/s. Only valid for type of gp3. - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // The type of EBS volume. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: gp2). - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// EBSVolumeSpec defines the desired state of EBSVolume -#EBSVolumeSpec: { - v1.#ResourceSpec - forProvider: #EBSVolumeParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EBSVolumeInitParameters @go(InitProvider) -} - -// EBSVolumeStatus defines the observed state of EBSVolume. -#EBSVolumeStatus: { - v1.#ResourceStatus - atProvider?: #EBSVolumeObservation @go(AtProvider) -} - -// EBSVolume is the Schema for the EBSVolumes API. Provides an elastic block storage resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EBSVolume: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.availabilityZone) || (has(self.initProvider) && has(self.initProvider.availabilityZone))",message="spec.forProvider.availabilityZone is a required parameter" - spec: #EBSVolumeSpec @go(Spec) - status?: #EBSVolumeStatus @go(Status) -} - -// EBSVolumeList contains a list of EBSVolumes -#EBSVolumeList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EBSVolume] @go(Items,[]EBSVolume) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_egressonlyinternetgateway_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_egressonlyinternetgateway_types_go_gen.cue deleted file mode 100644 index ee1e534..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_egressonlyinternetgateway_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EgressOnlyInternetGatewayInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EgressOnlyInternetGatewayObservation: { - // The ID of the egress-only Internet gateway. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The VPC ID to create in. - vpcId?: null | string @go(VPCID,*string) -} - -#EgressOnlyInternetGatewayParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VPC ID to create in. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// EgressOnlyInternetGatewaySpec defines the desired state of EgressOnlyInternetGateway -#EgressOnlyInternetGatewaySpec: { - v1.#ResourceSpec - forProvider: #EgressOnlyInternetGatewayParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EgressOnlyInternetGatewayInitParameters @go(InitProvider) -} - -// EgressOnlyInternetGatewayStatus defines the observed state of EgressOnlyInternetGateway. -#EgressOnlyInternetGatewayStatus: { - v1.#ResourceStatus - atProvider?: #EgressOnlyInternetGatewayObservation @go(AtProvider) -} - -// EgressOnlyInternetGateway is the Schema for the EgressOnlyInternetGateways API. Provides a resource to create an egress-only Internet gateway. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EgressOnlyInternetGateway: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EgressOnlyInternetGatewaySpec @go(Spec) - status?: #EgressOnlyInternetGatewayStatus @go(Status) -} - -// EgressOnlyInternetGatewayList contains a list of EgressOnlyInternetGateways -#EgressOnlyInternetGatewayList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EgressOnlyInternetGateway] @go(Items,[]EgressOnlyInternetGateway) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_eip_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_eip_types_go_gen.cue deleted file mode 100644 index f46c373..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_eip_types_go_gen.cue +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EIPInitParameters: { - // IP address from an EC2 BYOIP pool. This option is only available for VPC EIPs. - address?: null | string @go(Address,*string) - - // User-specified primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address. - associateWithPrivateIp?: null | string @go(AssociateWithPrivateIP,*string) - - // ID of a customer-owned address pool. For more on customer owned IP addressed check out Customer-owned IP addresses guide. - customerOwnedIpv4Pool?: null | string @go(CustomerOwnedIPv4Pool,*string) - - // Location from which the IP address is advertised. Use this parameter to limit the address to this location. - networkBorderGroup?: null | string @go(NetworkBorderGroup,*string) - - // EC2 IPv4 address pool identifier or amazon. - // This option is only available for VPC EIPs. - publicIpv4Pool?: null | string @go(PublicIPv4Pool,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Boolean if the EIP is in a VPC or not. - // Defaults to true unless the region supports EC2-Classic. - vpc?: null | bool @go(VPC,*bool) -} - -#EIPObservation: { - // IP address from an EC2 BYOIP pool. This option is only available for VPC EIPs. - address?: null | string @go(Address,*string) - - // ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC. - allocationId?: null | string @go(AllocationID,*string) - - // User-specified primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address. - associateWithPrivateIp?: null | string @go(AssociateWithPrivateIP,*string) - - // ID representing the association of the address with an instance in a VPC. - associationId?: null | string @go(AssociationID,*string) - - // Carrier IP address. - carrierIp?: null | string @go(CarrierIP,*string) - - // Customer owned IP. - customerOwnedIp?: null | string @go(CustomerOwnedIP,*string) - - // ID of a customer-owned address pool. For more on customer owned IP addressed check out Customer-owned IP addresses guide. - customerOwnedIpv4Pool?: null | string @go(CustomerOwnedIPv4Pool,*string) - - // Indicates if this EIP is for use in VPC (vpc) or EC2-Classic (standard). - domain?: null | string @go(Domain,*string) - - // Contains the EIP allocation ID. - id?: null | string @go(ID,*string) - - // EC2 instance ID. - instance?: null | string @go(Instance,*string) - - // Location from which the IP address is advertised. Use this parameter to limit the address to this location. - networkBorderGroup?: null | string @go(NetworkBorderGroup,*string) - - // Network interface ID to associate with. - networkInterface?: null | string @go(NetworkInterface,*string) - - // The Private DNS associated with the Elastic IP address (if in VPC). - privateDns?: null | string @go(PrivateDNS,*string) - - // Contains the private IP address (if in VPC). - privateIp?: null | string @go(PrivateIP,*string) - - // Public DNS associated with the Elastic IP address. - publicDns?: null | string @go(PublicDNS,*string) - - // Contains the public IP address. - publicIp?: null | string @go(PublicIP,*string) - - // EC2 IPv4 address pool identifier or amazon. - // This option is only available for VPC EIPs. - publicIpv4Pool?: null | string @go(PublicIPv4Pool,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Boolean if the EIP is in a VPC or not. - // Defaults to true unless the region supports EC2-Classic. - vpc?: null | bool @go(VPC,*bool) -} - -#EIPParameters: { - // IP address from an EC2 BYOIP pool. This option is only available for VPC EIPs. - // +kubebuilder:validation:Optional - address?: null | string @go(Address,*string) - - // User-specified primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address. - // +kubebuilder:validation:Optional - associateWithPrivateIp?: null | string @go(AssociateWithPrivateIP,*string) - - // ID of a customer-owned address pool. For more on customer owned IP addressed check out Customer-owned IP addresses guide. - // +kubebuilder:validation:Optional - customerOwnedIpv4Pool?: null | string @go(CustomerOwnedIPv4Pool,*string) - - // EC2 instance ID. - // +crossplane:generate:reference:type=Instance - // +kubebuilder:validation:Optional - instance?: null | string @go(Instance,*string) - - // Reference to a Instance to populate instance. - // +kubebuilder:validation:Optional - instanceRef?: null | v1.#Reference @go(InstanceRef,*v1.Reference) - - // Selector for a Instance to populate instance. - // +kubebuilder:validation:Optional - instanceSelector?: null | v1.#Selector @go(InstanceSelector,*v1.Selector) - - // Location from which the IP address is advertised. Use this parameter to limit the address to this location. - // +kubebuilder:validation:Optional - networkBorderGroup?: null | string @go(NetworkBorderGroup,*string) - - // Network interface ID to associate with. - // +crossplane:generate:reference:type=NetworkInterface - // +kubebuilder:validation:Optional - networkInterface?: null | string @go(NetworkInterface,*string) - - // Reference to a NetworkInterface to populate networkInterface. - // +kubebuilder:validation:Optional - networkInterfaceRef?: null | v1.#Reference @go(NetworkInterfaceRef,*v1.Reference) - - // Selector for a NetworkInterface to populate networkInterface. - // +kubebuilder:validation:Optional - networkInterfaceSelector?: null | v1.#Selector @go(NetworkInterfaceSelector,*v1.Selector) - - // EC2 IPv4 address pool identifier or amazon. - // This option is only available for VPC EIPs. - // +kubebuilder:validation:Optional - publicIpv4Pool?: null | string @go(PublicIPv4Pool,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Boolean if the EIP is in a VPC or not. - // Defaults to true unless the region supports EC2-Classic. - // +kubebuilder:validation:Optional - vpc?: null | bool @go(VPC,*bool) -} - -// EIPSpec defines the desired state of EIP -#EIPSpec: { - v1.#ResourceSpec - forProvider: #EIPParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EIPInitParameters @go(InitProvider) -} - -// EIPStatus defines the observed state of EIP. -#EIPStatus: { - v1.#ResourceStatus - atProvider?: #EIPObservation @go(AtProvider) -} - -// EIP is the Schema for the EIPs API. Provides an Elastic IP resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EIP: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EIPSpec @go(Spec) - status?: #EIPStatus @go(Status) -} - -// EIPList contains a list of EIPs -#EIPList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EIP] @go(Items,[]EIP) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_eipassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_eipassociation_types_go_gen.cue deleted file mode 100644 index 8acb244..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_eipassociation_types_go_gen.cue +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EIPAssociationInitParameters: { - // Whether to allow an Elastic IP to - // be re-associated. Defaults to true in VPC. - allowReassociation?: null | bool @go(AllowReassociation,*bool) - - // The ID of the network interface. If the - // instance has more than one network interface, you must specify a network - // interface ID. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // The primary or secondary private IP address - // to associate with the Elastic IP address. If no private IP address is - // specified, the Elastic IP address is associated with the primary private IP - // address. - privateIpAddress?: null | string @go(PrivateIPAddress,*string) - - // The Elastic IP address. This is required for EC2-Classic. - publicIp?: null | string @go(PublicIP,*string) -} - -#EIPAssociationObservation: { - // The allocation ID. This is required for EC2-VPC. - allocationId?: null | string @go(AllocationID,*string) - - // Whether to allow an Elastic IP to - // be re-associated. Defaults to true in VPC. - allowReassociation?: null | bool @go(AllowReassociation,*bool) - id?: null | string @go(ID,*string) - - // The ID of the instance. This is required for - // EC2-Classic. For EC2-VPC, you can specify either the instance ID or the - // network interface ID, but not both. The operation fails if you specify an - // instance ID unless exactly one network interface is attached. - instanceId?: null | string @go(InstanceID,*string) - - // The ID of the network interface. If the - // instance has more than one network interface, you must specify a network - // interface ID. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // The primary or secondary private IP address - // to associate with the Elastic IP address. If no private IP address is - // specified, the Elastic IP address is associated with the primary private IP - // address. - privateIpAddress?: null | string @go(PrivateIPAddress,*string) - - // The Elastic IP address. This is required for EC2-Classic. - publicIp?: null | string @go(PublicIP,*string) -} - -#EIPAssociationParameters: { - // The allocation ID. This is required for EC2-VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.EIP - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - allocationId?: null | string @go(AllocationID,*string) - - // Reference to a EIP in ec2 to populate allocationId. - // +kubebuilder:validation:Optional - allocationIdRef?: null | v1.#Reference @go(AllocationIDRef,*v1.Reference) - - // Selector for a EIP in ec2 to populate allocationId. - // +kubebuilder:validation:Optional - allocationIdSelector?: null | v1.#Selector @go(AllocationIDSelector,*v1.Selector) - - // Whether to allow an Elastic IP to - // be re-associated. Defaults to true in VPC. - // +kubebuilder:validation:Optional - allowReassociation?: null | bool @go(AllowReassociation,*bool) - - // The ID of the instance. This is required for - // EC2-Classic. For EC2-VPC, you can specify either the instance ID or the - // network interface ID, but not both. The operation fails if you specify an - // instance ID unless exactly one network interface is attached. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in ec2 to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in ec2 to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // The ID of the network interface. If the - // instance has more than one network interface, you must specify a network - // interface ID. - // +kubebuilder:validation:Optional - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // The primary or secondary private IP address - // to associate with the Elastic IP address. If no private IP address is - // specified, the Elastic IP address is associated with the primary private IP - // address. - // +kubebuilder:validation:Optional - privateIpAddress?: null | string @go(PrivateIPAddress,*string) - - // The Elastic IP address. This is required for EC2-Classic. - // +kubebuilder:validation:Optional - publicIp?: null | string @go(PublicIP,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// EIPAssociationSpec defines the desired state of EIPAssociation -#EIPAssociationSpec: { - v1.#ResourceSpec - forProvider: #EIPAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EIPAssociationInitParameters @go(InitProvider) -} - -// EIPAssociationStatus defines the observed state of EIPAssociation. -#EIPAssociationStatus: { - v1.#ResourceStatus - atProvider?: #EIPAssociationObservation @go(AtProvider) -} - -// EIPAssociation is the Schema for the EIPAssociations API. Provides an AWS EIP Association -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EIPAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EIPAssociationSpec @go(Spec) - status?: #EIPAssociationStatus @go(Status) -} - -// EIPAssociationList contains a list of EIPAssociations -#EIPAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EIPAssociation] @go(Items,[]EIPAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_flowlog_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_flowlog_types_go_gen.cue deleted file mode 100644 index 1ca41ce..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_flowlog_types_go_gen.cue +++ /dev/null @@ -1,296 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DestinationOptionsInitParameters: { - // The format for the flow log. Default value: plain-text. Valid values: plain-text, parquet. - fileFormat?: null | string @go(FileFormat,*string) - - // Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3. Default value: false. - hiveCompatiblePartitions?: null | bool @go(HiveCompatiblePartitions,*bool) - - // Indicates whether to partition the flow log per hour. This reduces the cost and response time for queries. Default value: false. - perHourPartition?: null | bool @go(PerHourPartition,*bool) -} - -#DestinationOptionsObservation: { - // The format for the flow log. Default value: plain-text. Valid values: plain-text, parquet. - fileFormat?: null | string @go(FileFormat,*string) - - // Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3. Default value: false. - hiveCompatiblePartitions?: null | bool @go(HiveCompatiblePartitions,*bool) - - // Indicates whether to partition the flow log per hour. This reduces the cost and response time for queries. Default value: false. - perHourPartition?: null | bool @go(PerHourPartition,*bool) -} - -#DestinationOptionsParameters: { - // The format for the flow log. Default value: plain-text. Valid values: plain-text, parquet. - // +kubebuilder:validation:Optional - fileFormat?: null | string @go(FileFormat,*string) - - // Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3. Default value: false. - // +kubebuilder:validation:Optional - hiveCompatiblePartitions?: null | bool @go(HiveCompatiblePartitions,*bool) - - // Indicates whether to partition the flow log per hour. This reduces the cost and response time for queries. Default value: false. - // +kubebuilder:validation:Optional - perHourPartition?: null | bool @go(PerHourPartition,*bool) -} - -#FlowLogInitParameters: { - // ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts. - deliverCrossAccountRole?: null | string @go(DeliverCrossAccountRole,*string) - - // Describes the destination options for a flow log. More details below. - destinationOptions?: [...#DestinationOptionsInitParameters] @go(DestinationOptions,[]DestinationOptionsInitParameters) - - // Elastic Network Interface ID to attach to - eniId?: null | string @go(EniID,*string) - - // The type of the logging destination. Valid values: cloud-watch-logs, s3, kinesis-data-firehose. Default: cloud-watch-logs. - logDestinationType?: null | string @go(LogDestinationType,*string) - - // The fields to include in the flow log record, in the order in which they should appear. - logFormat?: null | string @go(LogFormat,*string) - - // Deprecated: Use log_destination instead. The name of the CloudWatch log group. Either log_group_name or log_destination must be set. - logGroupName?: null | string @go(LogGroupName,*string) - - // The maximum interval of time - // during which a flow of packets is captured and aggregated into a flow - // log record. Valid Values: 60 seconds (1 minute) or 600 seconds (10 - // minutes). Default: 600. When transit_gateway_id or transit_gateway_attachment_id is specified, max_aggregation_interval must be 60 seconds (1 minute). - maxAggregationInterval?: null | float64 @go(MaxAggregationInterval,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of traffic to capture. Valid values: ACCEPT,REJECT, ALL. - trafficType?: null | string @go(TrafficType,*string) - - // Transit Gateway Attachment ID to attach to - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Transit Gateway ID to attach to - transitGatewayId?: null | string @go(TransitGatewayID,*string) -} - -#FlowLogObservation: { - // The ARN of the Flow Log. - arn?: null | string @go(Arn,*string) - - // ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts. - deliverCrossAccountRole?: null | string @go(DeliverCrossAccountRole,*string) - - // Describes the destination options for a flow log. More details below. - destinationOptions?: [...#DestinationOptionsObservation] @go(DestinationOptions,[]DestinationOptionsObservation) - - // Elastic Network Interface ID to attach to - eniId?: null | string @go(EniID,*string) - - // The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // The Flow Log ID - id?: null | string @go(ID,*string) - - // The ARN of the logging destination. Either log_destination or log_group_name must be set. - logDestination?: null | string @go(LogDestination,*string) - - // The type of the logging destination. Valid values: cloud-watch-logs, s3, kinesis-data-firehose. Default: cloud-watch-logs. - logDestinationType?: null | string @go(LogDestinationType,*string) - - // The fields to include in the flow log record, in the order in which they should appear. - logFormat?: null | string @go(LogFormat,*string) - - // Deprecated: Use log_destination instead. The name of the CloudWatch log group. Either log_group_name or log_destination must be set. - logGroupName?: null | string @go(LogGroupName,*string) - - // The maximum interval of time - // during which a flow of packets is captured and aggregated into a flow - // log record. Valid Values: 60 seconds (1 minute) or 600 seconds (10 - // minutes). Default: 600. When transit_gateway_id or transit_gateway_attachment_id is specified, max_aggregation_interval must be 60 seconds (1 minute). - maxAggregationInterval?: null | float64 @go(MaxAggregationInterval,*float64) - - // Subnet ID to attach to - subnetId?: null | string @go(SubnetID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The type of traffic to capture. Valid values: ACCEPT,REJECT, ALL. - trafficType?: null | string @go(TrafficType,*string) - - // Transit Gateway Attachment ID to attach to - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Transit Gateway ID to attach to - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // VPC ID to attach to - vpcId?: null | string @go(VPCID,*string) -} - -#FlowLogParameters: { - // ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts. - // +kubebuilder:validation:Optional - deliverCrossAccountRole?: null | string @go(DeliverCrossAccountRole,*string) - - // Describes the destination options for a flow log. More details below. - // +kubebuilder:validation:Optional - destinationOptions?: [...#DestinationOptionsParameters] @go(DestinationOptions,[]DestinationOptionsParameters) - - // Elastic Network Interface ID to attach to - // +kubebuilder:validation:Optional - eniId?: null | string @go(EniID,*string) - - // The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // Reference to a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnRef?: null | v1.#Reference @go(IAMRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnSelector?: null | v1.#Selector @go(IAMRoleArnSelector,*v1.Selector) - - // The ARN of the logging destination. Either log_destination or log_group_name must be set. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - logDestination?: null | string @go(LogDestination,*string) - - // Reference to a Group in cloudwatchlogs to populate logDestination. - // +kubebuilder:validation:Optional - logDestinationRef?: null | v1.#Reference @go(LogDestinationRef,*v1.Reference) - - // Selector for a Group in cloudwatchlogs to populate logDestination. - // +kubebuilder:validation:Optional - logDestinationSelector?: null | v1.#Selector @go(LogDestinationSelector,*v1.Selector) - - // The type of the logging destination. Valid values: cloud-watch-logs, s3, kinesis-data-firehose. Default: cloud-watch-logs. - // +kubebuilder:validation:Optional - logDestinationType?: null | string @go(LogDestinationType,*string) - - // The fields to include in the flow log record, in the order in which they should appear. - // +kubebuilder:validation:Optional - logFormat?: null | string @go(LogFormat,*string) - - // Deprecated: Use log_destination instead. The name of the CloudWatch log group. Either log_group_name or log_destination must be set. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // The maximum interval of time - // during which a flow of packets is captured and aggregated into a flow - // log record. Valid Values: 60 seconds (1 minute) or 600 seconds (10 - // minutes). Default: 600. When transit_gateway_id or transit_gateway_attachment_id is specified, max_aggregation_interval must be 60 seconds (1 minute). - // +kubebuilder:validation:Optional - maxAggregationInterval?: null | float64 @go(MaxAggregationInterval,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Subnet ID to attach to - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of traffic to capture. Valid values: ACCEPT,REJECT, ALL. - // +kubebuilder:validation:Optional - trafficType?: null | string @go(TrafficType,*string) - - // Transit Gateway Attachment ID to attach to - // +kubebuilder:validation:Optional - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Transit Gateway ID to attach to - // +kubebuilder:validation:Optional - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // VPC ID to attach to - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// FlowLogSpec defines the desired state of FlowLog -#FlowLogSpec: { - v1.#ResourceSpec - forProvider: #FlowLogParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FlowLogInitParameters @go(InitProvider) -} - -// FlowLogStatus defines the observed state of FlowLog. -#FlowLogStatus: { - v1.#ResourceStatus - atProvider?: #FlowLogObservation @go(AtProvider) -} - -// FlowLog is the Schema for the FlowLogs API. Provides a VPC/Subnet/ENI Flow Log -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FlowLog: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #FlowLogSpec @go(Spec) - status?: #FlowLogStatus @go(Status) -} - -// FlowLogList contains a list of FlowLogs -#FlowLogList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FlowLog] @go(Items,[]FlowLog) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index ff59589..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=ec2.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "ec2.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_host_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_host_types_go_gen.cue deleted file mode 100644 index e40419f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_host_types_go_gen.cue +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HostInitParameters: { - // Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. Valid values: on, off. Default: on. - autoPlacement?: null | string @go(AutoPlacement,*string) - - // The Availability Zone in which to allocate the Dedicated Host. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values: on, off. Default: off. - hostRecovery?: null | string @go(HostRecovery,*string) - - // Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of instance_family or instance_type must be specified. - instanceFamily?: null | string @go(InstanceFamily,*string) - - // Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of instance_family or instance_type must be specified. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host. - outpostArn?: null | string @go(OutpostArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#HostObservation: { - // The ARN of the Dedicated Host. - arn?: null | string @go(Arn,*string) - - // Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. Valid values: on, off. Default: on. - autoPlacement?: null | string @go(AutoPlacement,*string) - - // The Availability Zone in which to allocate the Dedicated Host. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values: on, off. Default: off. - hostRecovery?: null | string @go(HostRecovery,*string) - - // The ID of the allocated Dedicated Host. This is used to launch an instance onto a specific host. - id?: null | string @go(ID,*string) - - // Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of instance_family or instance_type must be specified. - instanceFamily?: null | string @go(InstanceFamily,*string) - - // Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of instance_family or instance_type must be specified. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host. - outpostArn?: null | string @go(OutpostArn,*string) - - // The ID of the AWS account that owns the Dedicated Host. - ownerId?: null | string @go(OwnerID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#HostParameters: { - // Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. Valid values: on, off. Default: on. - // +kubebuilder:validation:Optional - autoPlacement?: null | string @go(AutoPlacement,*string) - - // The Availability Zone in which to allocate the Dedicated Host. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values: on, off. Default: off. - // +kubebuilder:validation:Optional - hostRecovery?: null | string @go(HostRecovery,*string) - - // Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of instance_family or instance_type must be specified. - // +kubebuilder:validation:Optional - instanceFamily?: null | string @go(InstanceFamily,*string) - - // Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of instance_family or instance_type must be specified. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host. - // +kubebuilder:validation:Optional - outpostArn?: null | string @go(OutpostArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// HostSpec defines the desired state of Host -#HostSpec: { - v1.#ResourceSpec - forProvider: #HostParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HostInitParameters @go(InitProvider) -} - -// HostStatus defines the observed state of Host. -#HostStatus: { - v1.#ResourceStatus - atProvider?: #HostObservation @go(AtProvider) -} - -// Host is the Schema for the Hosts API. Provides an EC2 Host resource. This allows Dedicated Hosts to be allocated, modified, and released. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Host: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.availabilityZone) || (has(self.initProvider) && has(self.initProvider.availabilityZone))",message="spec.forProvider.availabilityZone is a required parameter" - spec: #HostSpec @go(Spec) - status?: #HostStatus @go(Status) -} - -// HostList contains a list of Hosts -#HostList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Host] @go(Items,[]Host) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_instance_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_instance_types_go_gen.cue deleted file mode 100644 index ffc24f5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_instance_types_go_gen.cue +++ /dev/null @@ -1,1108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CPUOptionsInitParameters: { - // Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are enabled and disabled. - amdSevSnp?: null | string @go(AmdSevSnp,*string) - - // Sets the number of CPU cores for an instance. This option is only supported on creation of instance type that support CPU Options CPU Cores and Threads Per CPU Core Per Instance Type - specifying this option for unsupported instance types will return an error from the EC2 API. - coreCount?: null | float64 @go(CoreCount,*float64) - - // If set to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See Optimizing CPU Options for more information. - threadsPerCore?: null | float64 @go(ThreadsPerCore,*float64) -} - -#CPUOptionsObservation: { - // Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are enabled and disabled. - amdSevSnp?: null | string @go(AmdSevSnp,*string) - - // Sets the number of CPU cores for an instance. This option is only supported on creation of instance type that support CPU Options CPU Cores and Threads Per CPU Core Per Instance Type - specifying this option for unsupported instance types will return an error from the EC2 API. - coreCount?: null | float64 @go(CoreCount,*float64) - - // If set to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See Optimizing CPU Options for more information. - threadsPerCore?: null | float64 @go(ThreadsPerCore,*float64) -} - -#CPUOptionsParameters: { - // Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are enabled and disabled. - // +kubebuilder:validation:Optional - amdSevSnp?: null | string @go(AmdSevSnp,*string) - - // Sets the number of CPU cores for an instance. This option is only supported on creation of instance type that support CPU Options CPU Cores and Threads Per CPU Core Per Instance Type - specifying this option for unsupported instance types will return an error from the EC2 API. - // +kubebuilder:validation:Optional - coreCount?: null | float64 @go(CoreCount,*float64) - - // If set to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See Optimizing CPU Options for more information. - // +kubebuilder:validation:Optional - threadsPerCore?: null | float64 @go(ThreadsPerCore,*float64) -} - -#CapacityReservationSpecificationInitParameters: { - // Indicates the instance's Capacity Reservation preferences. Can be "open" or "none". (Default: "open"). - capacityReservationPreference?: null | string @go(CapacityReservationPreference,*string) - - // Information about the target Capacity Reservation. See Capacity Reservation Target below for more details. - capacityReservationTarget?: [...#CapacityReservationTargetInitParameters] @go(CapacityReservationTarget,[]CapacityReservationTargetInitParameters) -} - -#CapacityReservationSpecificationObservation: { - // Indicates the instance's Capacity Reservation preferences. Can be "open" or "none". (Default: "open"). - capacityReservationPreference?: null | string @go(CapacityReservationPreference,*string) - - // Information about the target Capacity Reservation. See Capacity Reservation Target below for more details. - capacityReservationTarget?: [...#CapacityReservationTargetObservation] @go(CapacityReservationTarget,[]CapacityReservationTargetObservation) -} - -#CapacityReservationSpecificationParameters: { - // Indicates the instance's Capacity Reservation preferences. Can be "open" or "none". (Default: "open"). - // +kubebuilder:validation:Optional - capacityReservationPreference?: null | string @go(CapacityReservationPreference,*string) - - // Information about the target Capacity Reservation. See Capacity Reservation Target below for more details. - // +kubebuilder:validation:Optional - capacityReservationTarget?: [...#CapacityReservationTargetParameters] @go(CapacityReservationTarget,[]CapacityReservationTargetParameters) -} - -#CapacityReservationTargetInitParameters: { - // ID of the Capacity Reservation in which to run the instance. - capacityReservationId?: null | string @go(CapacityReservationID,*string) - - // ARN of the Capacity Reservation resource group in which to run the instance. - capacityReservationResourceGroupArn?: null | string @go(CapacityReservationResourceGroupArn,*string) -} - -#CapacityReservationTargetObservation: { - // ID of the Capacity Reservation in which to run the instance. - capacityReservationId?: null | string @go(CapacityReservationID,*string) - - // ARN of the Capacity Reservation resource group in which to run the instance. - capacityReservationResourceGroupArn?: null | string @go(CapacityReservationResourceGroupArn,*string) -} - -#CapacityReservationTargetParameters: { - // ID of the Capacity Reservation in which to run the instance. - // +kubebuilder:validation:Optional - capacityReservationId?: null | string @go(CapacityReservationID,*string) - - // ARN of the Capacity Reservation resource group in which to run the instance. - // +kubebuilder:validation:Optional - capacityReservationResourceGroupArn?: null | string @go(CapacityReservationResourceGroupArn,*string) -} - -#CreditSpecificationInitParameters: { - // Credit option for CPU usage. Valid values include standard or unlimited. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default. - cpuCredits?: null | string @go(CPUCredits,*string) -} - -#CreditSpecificationObservation: { - // Credit option for CPU usage. Valid values include standard or unlimited. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default. - cpuCredits?: null | string @go(CPUCredits,*string) -} - -#CreditSpecificationParameters: { - // Credit option for CPU usage. Valid values include standard or unlimited. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default. - // +kubebuilder:validation:Optional - cpuCredits?: null | string @go(CPUCredits,*string) -} - -#EnclaveOptionsInitParameters: { - // Whether Nitro Enclaves will be enabled on the instance. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) -} - -#EnclaveOptionsObservation: { - // Whether Nitro Enclaves will be enabled on the instance. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) -} - -#EnclaveOptionsParameters: { - // Whether Nitro Enclaves will be enabled on the instance. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#InstanceEBSBlockDeviceInitParameters: { - // Whether the volume should be destroyed on instance termination. Defaults to true. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Name of the device to mount. - deviceName?: null | string @go(DeviceName,*string) - - // Enables EBS encryption on the volume. Defaults to false. Cannot be used with snapshot_id. Must be configured to perform drift detection. - encrypted?: null | bool @go(Encrypted,*bool) - - // Amount of provisioned IOPS. Only valid for volume_type of io1, io2 or gp3. - iops?: null | float64 @go(Iops,*float64) - - // Snapshot ID to mount. - snapshotId?: null | string @go(SnapshotID,*string) - - // Map of tags to assign to the device. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for volume_type of gp3. - throughput?: null | float64 @go(Throughput,*float64) - - // Size of the volume in gibibytes (GiB). - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of volume. Valid values include standard, gp2, gp3, io1, io2, sc1, or st1. Defaults to gp2. - volumeType?: null | string @go(VolumeType,*string) -} - -#InstanceEBSBlockDeviceObservation: { - // Whether the volume should be destroyed on instance termination. Defaults to true. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Name of the device to mount. - deviceName?: null | string @go(DeviceName,*string) - - // Enables EBS encryption on the volume. Defaults to false. Cannot be used with snapshot_id. Must be configured to perform drift detection. - encrypted?: null | bool @go(Encrypted,*bool) - - // Amount of provisioned IOPS. Only valid for volume_type of io1, io2 or gp3. - iops?: null | float64 @go(Iops,*float64) - - // Amazon Resource Name (ARN) of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Snapshot ID to mount. - snapshotId?: null | string @go(SnapshotID,*string) - - // Map of tags to assign to the device. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for volume_type of gp3. - throughput?: null | float64 @go(Throughput,*float64) - - // ID of the volume. For example, the ID can be accessed like this, aws_instance.web.ebs_block_device.2.volume_id. - volumeId?: null | string @go(VolumeID,*string) - - // Size of the volume in gibibytes (GiB). - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of volume. Valid values include standard, gp2, gp3, io1, io2, sc1, or st1. Defaults to gp2. - volumeType?: null | string @go(VolumeType,*string) -} - -#InstanceEBSBlockDeviceParameters: { - // Whether the volume should be destroyed on instance termination. Defaults to true. - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Name of the device to mount. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Enables EBS encryption on the volume. Defaults to false. Cannot be used with snapshot_id. Must be configured to perform drift detection. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // Amount of provisioned IOPS. Only valid for volume_type of io1, io2 or gp3. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // Amazon Resource Name (ARN) of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Snapshot ID to mount. - // +kubebuilder:validation:Optional - snapshotId?: null | string @go(SnapshotID,*string) - - // Map of tags to assign to the device. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for volume_type of gp3. - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // Size of the volume in gibibytes (GiB). - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of volume. Valid values include standard, gp2, gp3, io1, io2, sc1, or st1. Defaults to gp2. - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -#InstanceEphemeralBlockDeviceInitParameters: { - // Name of the block device to mount on the instance. - deviceName?: null | string @go(DeviceName,*string) - - // Suppresses the specified device included in the AMI's block device mapping. - noDevice?: null | bool @go(NoDevice,*bool) - - // Instance Store Device Name (e.g., ephemeral0). - virtualName?: null | string @go(VirtualName,*string) -} - -#InstanceEphemeralBlockDeviceObservation: { - // Name of the block device to mount on the instance. - deviceName?: null | string @go(DeviceName,*string) - - // Suppresses the specified device included in the AMI's block device mapping. - noDevice?: null | bool @go(NoDevice,*bool) - - // Instance Store Device Name (e.g., ephemeral0). - virtualName?: null | string @go(VirtualName,*string) -} - -#InstanceEphemeralBlockDeviceParameters: { - // Name of the block device to mount on the instance. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Suppresses the specified device included in the AMI's block device mapping. - // +kubebuilder:validation:Optional - noDevice?: null | bool @go(NoDevice,*bool) - - // Instance Store Device Name (e.g., ephemeral0). - // +kubebuilder:validation:Optional - virtualName?: null | string @go(VirtualName,*string) -} - -#InstanceInitParameters: { - // AMI to use for the instance. Required unless launch_template is specified and the Launch Template specifes an AMI. If an AMI is specified in the Launch Template, setting ami will override the AMI specified in the Launch Template. - ami?: null | string @go(AMI,*string) - - // Whether to associate a public IP address with an instance in a VPC. - associatePublicIpAddress?: null | bool @go(AssociatePublicIPAddress,*bool) - - // AZ to start the instance in. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Sets the number of CPU cores for an instance. This option is only supported on creation of instance type that support CPU Options CPU Cores and Threads Per CPU Core Per Instance Type - specifying this option for unsupported instance types will return an error from the EC2 API. - cpuCoreCount?: null | float64 @go(CPUCoreCount,*float64) - - // The CPU options for the instance. See CPU Options below for more details. - cpuOptions?: [...#CPUOptionsInitParameters] @go(CPUOptions,[]CPUOptionsInitParameters) - - // If set to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See Optimizing CPU Options for more information. - cpuThreadsPerCore?: null | float64 @go(CPUThreadsPerCore,*float64) - - // Describes an instance's Capacity Reservation targeting option. See Capacity Reservation Specification below for more details. - capacityReservationSpecification?: [...#CapacityReservationSpecificationInitParameters] @go(CapacityReservationSpecification,[]CapacityReservationSpecificationInitParameters) - - // Configuration block for customizing the credit specification of the instance. See Credit Specification below for more details. Removing this configuration on existing instances will only stop managing it. It will not change the configuration back to the default for the instance type. - creditSpecification?: [...#CreditSpecificationInitParameters] @go(CreditSpecification,[]CreditSpecificationInitParameters) - - // If true, enables EC2 Instance Stop Protection. - disableApiStop?: null | bool @go(DisableAPIStop,*bool) - - // If true, enables EC2 Instance Termination Protection. - disableApiTermination?: null | bool @go(DisableAPITermination,*bool) - - // One or more configuration blocks with additional EBS block devices to attach to the instance. Block device configurations only apply on resource creation. See Block Devices below for details on attributes and drift detection. When accessing this as an attribute reference, it is a set of objects. - ebsBlockDevice?: [...#InstanceEBSBlockDeviceInitParameters] @go(EBSBlockDevice,[]InstanceEBSBlockDeviceInitParameters) - - // If true, the launched EC2 instance will be EBS-optimized. Note that if this is not set on an instance type that is optimized by default then this will show as disabled but if the instance type is optimized by default then there is no need to set this and there is no effect to disabling it. See the EBS Optimized section of the AWS User Guide for more information. - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // Enable Nitro Enclaves on launched instances. See Enclave Options below for more details. - enclaveOptions?: [...#EnclaveOptionsInitParameters] @go(EnclaveOptions,[]EnclaveOptionsInitParameters) - - // One or more configuration blocks to customize Ephemeral (also known as "Instance Store") volumes on the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a set of objects. - ephemeralBlockDevice?: [...#InstanceEphemeralBlockDeviceInitParameters] @go(EphemeralBlockDevice,[]InstanceEphemeralBlockDeviceInitParameters) - - // If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the password_data attribute. See GetPasswordData for more information. - getPasswordData?: null | bool @go(GetPasswordData,*bool) - - // If true, the launched EC2 instance will support hibernation. - hibernation?: null | bool @go(Hibernation,*bool) - - // ID of a dedicated host that the instance will be assigned to. Use when an instance is to be launched on a specific dedicated host. - hostId?: null | string @go(HostID,*string) - - // ARN of the host resource group in which to launch the instances. If you specify an ARN, omit the tenancy parameter or set it to host. - hostResourceGroupArn?: null | string @go(HostResourceGroupArn,*string) - - // IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile. Ensure your credentials have the correct permission to assign the instance profile according to the EC2 documentation, notably iam:PassRole. - iamInstanceProfile?: null | string @go(IAMInstanceProfile,*string) - - // Number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. - ipv6AddressCount?: null | float64 @go(IPv6AddressCount,*float64) - - // Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - - // Shutdown behavior for the instance. Amazon defaults this to stop for EBS-backed instances and terminate for instance-store instances. Cannot be set on instance-store instances. See Shutdown Behavior for more information. - instanceInitiatedShutdownBehavior?: null | string @go(InstanceInitiatedShutdownBehavior,*string) - - // Instance type to use for the instance. Required unless launch_template is specified and the Launch Template specifies an instance type. If an instance type is specified in the Launch Template, setting instance_type will override the instance type specified in the Launch Template. Updates to this field will trigger a stop/start of the EC2 instance. - instanceType?: null | string @go(InstanceType,*string) - - // Key name of the Key Pair to use for the instance; which can be managed using the . - keyName?: null | string @go(KeyName,*string) - - // Specifies a Launch Template to configure the instance. Parameters configured on this resource will override the corresponding parameters in the Launch Template. See Launch Template Specification below for more details. - launchTemplate?: [...#LaunchTemplateInitParameters] @go(LaunchTemplate,[]LaunchTemplateInitParameters) - - // Maintenance and recovery options for the instance. See Maintenance Options below for more details. - maintenanceOptions?: [...#MaintenanceOptionsInitParameters] @go(MaintenanceOptions,[]MaintenanceOptionsInitParameters) - - // Customize the metadata options of the instance. See Metadata Options below for more details. - metadataOptions?: [...#MetadataOptionsInitParameters] @go(MetadataOptions,[]MetadataOptionsInitParameters) - - // If true, the launched EC2 instance will have detailed monitoring enabled. (Available since v0.6.0) - monitoring?: null | bool @go(Monitoring,*bool) - - // Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details. - networkInterface?: [...#InstanceNetworkInterfaceInitParameters] @go(NetworkInterface,[]InstanceNetworkInterfaceInitParameters) - - // Placement Group to start the instance in. - placementGroup?: null | string @go(PlacementGroup,*string) - - // Number of the partition the instance is in. Valid only if the strategy argument is set to "partition". - placementPartitionNumber?: null | float64 @go(PlacementPartitionNumber,*float64) - - // Options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details. - privateDnsNameOptions?: [...#PrivateDNSNameOptionsInitParameters] @go(PrivateDNSNameOptions,[]PrivateDNSNameOptionsInitParameters) - - // Private IP address to associate with the instance in a VPC. - privateIp?: null | string @go(PrivateIP,*string) - - // Configuration block to customize details about the root block device of the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a list containing one object. - rootBlockDevice?: [...#RootBlockDeviceInitParameters] @go(RootBlockDevice,[]RootBlockDeviceInitParameters) - - // List of secondary private IPv4 addresses to assign to the instance's primary network interface (eth0) in a VPC. Can only be assigned to the primary network interface (eth0) attached at instance creation, not a pre-existing network interface i.e., referenced in a network_interface block. Refer to the Elastic network interfaces documentation to see the maximum number of private IP addresses allowed per instance type. - secondaryPrivateIps?: [...null | string] @go(SecondaryPrivateIps,[]*string) - - // Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs. Defaults true. - sourceDestCheck?: null | bool @go(SourceDestCheck,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the import-instance command. Valid values are default, dedicated, and host. - tenancy?: null | string @go(Tenancy,*string) - - // User data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change is set then updates to this field will trigger a destroy and recreate. - userData?: null | string @go(UserData,*string) - - // Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change is set then updates to this field will trigger a destroy and recreate. - userDataBase64?: null | string @go(UserDataBase64,*string) - - // When used in combination with user_data or user_data_base64 will trigger a destroy and recreate when set to true. Defaults to false if not set. - userDataReplaceOnChange?: null | bool @go(UserDataReplaceOnChange,*bool) - - // Map of tags to assign, at instance-creation time, to root and EBS volumes. - volumeTags?: {[string]: null | string} @go(VolumeTags,map[string]*string) -} - -#InstanceNetworkInterfaceInitParameters: { - // Whether or not to delete the network interface on instance termination. Defaults to false. Currently, the only valid value is false, as this is only supported when creating new network interfaces when launching an instance. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Integer index of the network interface attachment. Limited by instance type. - deviceIndex?: null | float64 @go(DeviceIndex,*float64) - - // Integer index of the network card. Limited by instance type. The default index is 0. - networkCardIndex?: null | float64 @go(NetworkCardIndex,*float64) -} - -#InstanceNetworkInterfaceObservation: { - // Whether or not to delete the network interface on instance termination. Defaults to false. Currently, the only valid value is false, as this is only supported when creating new network interfaces when launching an instance. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Integer index of the network interface attachment. Limited by instance type. - deviceIndex?: null | float64 @go(DeviceIndex,*float64) - - // Integer index of the network card. Limited by instance type. The default index is 0. - networkCardIndex?: null | float64 @go(NetworkCardIndex,*float64) - - // ID of the network interface to attach. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) -} - -#InstanceNetworkInterfaceParameters: { - // Whether or not to delete the network interface on instance termination. Defaults to false. Currently, the only valid value is false, as this is only supported when creating new network interfaces when launching an instance. - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Integer index of the network interface attachment. Limited by instance type. - // +kubebuilder:validation:Optional - deviceIndex?: null | float64 @go(DeviceIndex,*float64) - - // Integer index of the network card. Limited by instance type. The default index is 0. - // +kubebuilder:validation:Optional - networkCardIndex?: null | float64 @go(NetworkCardIndex,*float64) - - // ID of the network interface to attach. - // +crossplane:generate:reference:type=NetworkInterface - // +kubebuilder:validation:Optional - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // Reference to a NetworkInterface to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdRef?: null | v1.#Reference @go(NetworkInterfaceIDRef,*v1.Reference) - - // Selector for a NetworkInterface to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdSelector?: null | v1.#Selector @go(NetworkInterfaceIDSelector,*v1.Selector) -} - -#InstanceObservation: { - // AMI to use for the instance. Required unless launch_template is specified and the Launch Template specifes an AMI. If an AMI is specified in the Launch Template, setting ami will override the AMI specified in the Launch Template. - ami?: null | string @go(AMI,*string) - - // ARN of the instance. - arn?: null | string @go(Arn,*string) - - // Whether to associate a public IP address with an instance in a VPC. - associatePublicIpAddress?: null | bool @go(AssociatePublicIPAddress,*bool) - - // AZ to start the instance in. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Sets the number of CPU cores for an instance. This option is only supported on creation of instance type that support CPU Options CPU Cores and Threads Per CPU Core Per Instance Type - specifying this option for unsupported instance types will return an error from the EC2 API. - cpuCoreCount?: null | float64 @go(CPUCoreCount,*float64) - - // The CPU options for the instance. See CPU Options below for more details. - cpuOptions?: [...#CPUOptionsObservation] @go(CPUOptions,[]CPUOptionsObservation) - - // If set to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See Optimizing CPU Options for more information. - cpuThreadsPerCore?: null | float64 @go(CPUThreadsPerCore,*float64) - - // Describes an instance's Capacity Reservation targeting option. See Capacity Reservation Specification below for more details. - capacityReservationSpecification?: [...#CapacityReservationSpecificationObservation] @go(CapacityReservationSpecification,[]CapacityReservationSpecificationObservation) - - // Configuration block for customizing the credit specification of the instance. See Credit Specification below for more details. Removing this configuration on existing instances will only stop managing it. It will not change the configuration back to the default for the instance type. - creditSpecification?: [...#CreditSpecificationObservation] @go(CreditSpecification,[]CreditSpecificationObservation) - - // If true, enables EC2 Instance Stop Protection. - disableApiStop?: null | bool @go(DisableAPIStop,*bool) - - // If true, enables EC2 Instance Termination Protection. - disableApiTermination?: null | bool @go(DisableAPITermination,*bool) - - // One or more configuration blocks with additional EBS block devices to attach to the instance. Block device configurations only apply on resource creation. See Block Devices below for details on attributes and drift detection. When accessing this as an attribute reference, it is a set of objects. - ebsBlockDevice?: [...#InstanceEBSBlockDeviceObservation] @go(EBSBlockDevice,[]InstanceEBSBlockDeviceObservation) - - // If true, the launched EC2 instance will be EBS-optimized. Note that if this is not set on an instance type that is optimized by default then this will show as disabled but if the instance type is optimized by default then there is no need to set this and there is no effect to disabling it. See the EBS Optimized section of the AWS User Guide for more information. - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // Enable Nitro Enclaves on launched instances. See Enclave Options below for more details. - enclaveOptions?: [...#EnclaveOptionsObservation] @go(EnclaveOptions,[]EnclaveOptionsObservation) - - // One or more configuration blocks to customize Ephemeral (also known as "Instance Store") volumes on the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a set of objects. - ephemeralBlockDevice?: [...#InstanceEphemeralBlockDeviceObservation] @go(EphemeralBlockDevice,[]InstanceEphemeralBlockDeviceObservation) - - // If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the password_data attribute. See GetPasswordData for more information. - getPasswordData?: null | bool @go(GetPasswordData,*bool) - - // If true, the launched EC2 instance will support hibernation. - hibernation?: null | bool @go(Hibernation,*bool) - - // ID of a dedicated host that the instance will be assigned to. Use when an instance is to be launched on a specific dedicated host. - hostId?: null | string @go(HostID,*string) - - // ARN of the host resource group in which to launch the instances. If you specify an ARN, omit the tenancy parameter or set it to host. - hostResourceGroupArn?: null | string @go(HostResourceGroupArn,*string) - - // IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile. Ensure your credentials have the correct permission to assign the instance profile according to the EC2 documentation, notably iam:PassRole. - iamInstanceProfile?: null | string @go(IAMInstanceProfile,*string) - - // ID of the launch template. Conflicts with name. - id?: null | string @go(ID,*string) - - // Number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. - ipv6AddressCount?: null | float64 @go(IPv6AddressCount,*float64) - - // Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - - // Shutdown behavior for the instance. Amazon defaults this to stop for EBS-backed instances and terminate for instance-store instances. Cannot be set on instance-store instances. See Shutdown Behavior for more information. - instanceInitiatedShutdownBehavior?: null | string @go(InstanceInitiatedShutdownBehavior,*string) - - // State of the instance. One of: pending, running, shutting-down, terminated, stopping, stopped. See Instance Lifecycle for more information. - instanceState?: null | string @go(InstanceState,*string) - - // Instance type to use for the instance. Required unless launch_template is specified and the Launch Template specifies an instance type. If an instance type is specified in the Launch Template, setting instance_type will override the instance type specified in the Launch Template. Updates to this field will trigger a stop/start of the EC2 instance. - instanceType?: null | string @go(InstanceType,*string) - - // Key name of the Key Pair to use for the instance; which can be managed using the . - keyName?: null | string @go(KeyName,*string) - - // Specifies a Launch Template to configure the instance. Parameters configured on this resource will override the corresponding parameters in the Launch Template. See Launch Template Specification below for more details. - launchTemplate?: [...#LaunchTemplateObservation] @go(LaunchTemplate,[]LaunchTemplateObservation) - - // Maintenance and recovery options for the instance. See Maintenance Options below for more details. - maintenanceOptions?: [...#MaintenanceOptionsObservation] @go(MaintenanceOptions,[]MaintenanceOptionsObservation) - - // Customize the metadata options of the instance. See Metadata Options below for more details. - metadataOptions?: [...#MetadataOptionsObservation] @go(MetadataOptions,[]MetadataOptionsObservation) - - // If true, the launched EC2 instance will have detailed monitoring enabled. (Available since v0.6.0) - monitoring?: null | bool @go(Monitoring,*bool) - - // Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details. - networkInterface?: [...#InstanceNetworkInterfaceObservation] @go(NetworkInterface,[]InstanceNetworkInterfaceObservation) - - // ARN of the Outpost the instance is assigned to. - outpostArn?: null | string @go(OutpostArn,*string) - - // Base-64 encoded encrypted password data for the instance. Useful for getting the administrator password for instances running Microsoft Windows. This attribute is only exported if get_password_data is true. Note that this encrypted value will be stored in the state file, as with all exported attributes. See GetPasswordData for more information. - passwordData?: null | string @go(PasswordData,*string) - - // Placement Group to start the instance in. - placementGroup?: null | string @go(PlacementGroup,*string) - - // Number of the partition the instance is in. Valid only if the strategy argument is set to "partition". - placementPartitionNumber?: null | float64 @go(PlacementPartitionNumber,*float64) - - // ID of the instance's primary network interface. - primaryNetworkInterfaceId?: null | string @go(PrimaryNetworkInterfaceID,*string) - - // Private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you've enabled DNS hostnames for your VPC. - privateDns?: null | string @go(PrivateDNS,*string) - - // Options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details. - privateDnsNameOptions?: [...#PrivateDNSNameOptionsObservation] @go(PrivateDNSNameOptions,[]PrivateDNSNameOptionsObservation) - - // Private IP address to associate with the instance in a VPC. - privateIp?: null | string @go(PrivateIP,*string) - - // Public DNS name assigned to the instance. For EC2-VPC, this is only available if you've enabled DNS hostnames for your VPC. - publicDns?: null | string @go(PublicDNS,*string) - - // Public IP address assigned to the instance, if applicable. NOTE: If you are using an aws_eip with your instance, you should refer to the EIP's address directly and not use public_ip as this field will change after the EIP is attached. - publicIp?: null | string @go(PublicIP,*string) - - // Configuration block to customize details about the root block device of the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a list containing one object. - rootBlockDevice?: [...#RootBlockDeviceObservation] @go(RootBlockDevice,[]RootBlockDeviceObservation) - - // List of secondary private IPv4 addresses to assign to the instance's primary network interface (eth0) in a VPC. Can only be assigned to the primary network interface (eth0) attached at instance creation, not a pre-existing network interface i.e., referenced in a network_interface block. Refer to the Elastic network interfaces documentation to see the maximum number of private IP addresses allowed per instance type. - secondaryPrivateIps?: [...null | string] @go(SecondaryPrivateIps,[]*string) - - // List of security group names to associate with. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs. Defaults true. - sourceDestCheck?: null | bool @go(SourceDestCheck,*bool) - - // VPC Subnet ID to launch in. - subnetId?: null | string @go(SubnetID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the import-instance command. Valid values are default, dedicated, and host. - tenancy?: null | string @go(Tenancy,*string) - - // User data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change is set then updates to this field will trigger a destroy and recreate. - userData?: null | string @go(UserData,*string) - - // Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change is set then updates to this field will trigger a destroy and recreate. - userDataBase64?: null | string @go(UserDataBase64,*string) - - // When used in combination with user_data or user_data_base64 will trigger a destroy and recreate when set to true. Defaults to false if not set. - userDataReplaceOnChange?: null | bool @go(UserDataReplaceOnChange,*bool) - - // List of security group IDs to associate with. - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // Map of tags to assign, at instance-creation time, to root and EBS volumes. - volumeTags?: {[string]: null | string} @go(VolumeTags,map[string]*string) -} - -#InstanceParameters: { - // AMI to use for the instance. Required unless launch_template is specified and the Launch Template specifes an AMI. If an AMI is specified in the Launch Template, setting ami will override the AMI specified in the Launch Template. - // +kubebuilder:validation:Optional - ami?: null | string @go(AMI,*string) - - // Whether to associate a public IP address with an instance in a VPC. - // +kubebuilder:validation:Optional - associatePublicIpAddress?: null | bool @go(AssociatePublicIPAddress,*bool) - - // AZ to start the instance in. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Sets the number of CPU cores for an instance. This option is only supported on creation of instance type that support CPU Options CPU Cores and Threads Per CPU Core Per Instance Type - specifying this option for unsupported instance types will return an error from the EC2 API. - // +kubebuilder:validation:Optional - cpuCoreCount?: null | float64 @go(CPUCoreCount,*float64) - - // The CPU options for the instance. See CPU Options below for more details. - // +kubebuilder:validation:Optional - cpuOptions?: [...#CPUOptionsParameters] @go(CPUOptions,[]CPUOptionsParameters) - - // If set to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See Optimizing CPU Options for more information. - // +kubebuilder:validation:Optional - cpuThreadsPerCore?: null | float64 @go(CPUThreadsPerCore,*float64) - - // Describes an instance's Capacity Reservation targeting option. See Capacity Reservation Specification below for more details. - // +kubebuilder:validation:Optional - capacityReservationSpecification?: [...#CapacityReservationSpecificationParameters] @go(CapacityReservationSpecification,[]CapacityReservationSpecificationParameters) - - // Configuration block for customizing the credit specification of the instance. See Credit Specification below for more details. Removing this configuration on existing instances will only stop managing it. It will not change the configuration back to the default for the instance type. - // +kubebuilder:validation:Optional - creditSpecification?: [...#CreditSpecificationParameters] @go(CreditSpecification,[]CreditSpecificationParameters) - - // If true, enables EC2 Instance Stop Protection. - // +kubebuilder:validation:Optional - disableApiStop?: null | bool @go(DisableAPIStop,*bool) - - // If true, enables EC2 Instance Termination Protection. - // +kubebuilder:validation:Optional - disableApiTermination?: null | bool @go(DisableAPITermination,*bool) - - // One or more configuration blocks with additional EBS block devices to attach to the instance. Block device configurations only apply on resource creation. See Block Devices below for details on attributes and drift detection. When accessing this as an attribute reference, it is a set of objects. - // +kubebuilder:validation:Optional - ebsBlockDevice?: [...#InstanceEBSBlockDeviceParameters] @go(EBSBlockDevice,[]InstanceEBSBlockDeviceParameters) - - // If true, the launched EC2 instance will be EBS-optimized. Note that if this is not set on an instance type that is optimized by default then this will show as disabled but if the instance type is optimized by default then there is no need to set this and there is no effect to disabling it. See the EBS Optimized section of the AWS User Guide for more information. - // +kubebuilder:validation:Optional - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // Enable Nitro Enclaves on launched instances. See Enclave Options below for more details. - // +kubebuilder:validation:Optional - enclaveOptions?: [...#EnclaveOptionsParameters] @go(EnclaveOptions,[]EnclaveOptionsParameters) - - // One or more configuration blocks to customize Ephemeral (also known as "Instance Store") volumes on the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a set of objects. - // +kubebuilder:validation:Optional - ephemeralBlockDevice?: [...#InstanceEphemeralBlockDeviceParameters] @go(EphemeralBlockDevice,[]InstanceEphemeralBlockDeviceParameters) - - // If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the password_data attribute. See GetPasswordData for more information. - // +kubebuilder:validation:Optional - getPasswordData?: null | bool @go(GetPasswordData,*bool) - - // If true, the launched EC2 instance will support hibernation. - // +kubebuilder:validation:Optional - hibernation?: null | bool @go(Hibernation,*bool) - - // ID of a dedicated host that the instance will be assigned to. Use when an instance is to be launched on a specific dedicated host. - // +kubebuilder:validation:Optional - hostId?: null | string @go(HostID,*string) - - // ARN of the host resource group in which to launch the instances. If you specify an ARN, omit the tenancy parameter or set it to host. - // +kubebuilder:validation:Optional - hostResourceGroupArn?: null | string @go(HostResourceGroupArn,*string) - - // IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile. Ensure your credentials have the correct permission to assign the instance profile according to the EC2 documentation, notably iam:PassRole. - // +kubebuilder:validation:Optional - iamInstanceProfile?: null | string @go(IAMInstanceProfile,*string) - - // Number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. - // +kubebuilder:validation:Optional - ipv6AddressCount?: null | float64 @go(IPv6AddressCount,*float64) - - // Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface - // +kubebuilder:validation:Optional - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - - // Shutdown behavior for the instance. Amazon defaults this to stop for EBS-backed instances and terminate for instance-store instances. Cannot be set on instance-store instances. See Shutdown Behavior for more information. - // +kubebuilder:validation:Optional - instanceInitiatedShutdownBehavior?: null | string @go(InstanceInitiatedShutdownBehavior,*string) - - // Instance type to use for the instance. Required unless launch_template is specified and the Launch Template specifies an instance type. If an instance type is specified in the Launch Template, setting instance_type will override the instance type specified in the Launch Template. Updates to this field will trigger a stop/start of the EC2 instance. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // Key name of the Key Pair to use for the instance; which can be managed using the . - // +kubebuilder:validation:Optional - keyName?: null | string @go(KeyName,*string) - - // Specifies a Launch Template to configure the instance. Parameters configured on this resource will override the corresponding parameters in the Launch Template. See Launch Template Specification below for more details. - // +kubebuilder:validation:Optional - launchTemplate?: [...#LaunchTemplateParameters] @go(LaunchTemplate,[]LaunchTemplateParameters) - - // Maintenance and recovery options for the instance. See Maintenance Options below for more details. - // +kubebuilder:validation:Optional - maintenanceOptions?: [...#MaintenanceOptionsParameters] @go(MaintenanceOptions,[]MaintenanceOptionsParameters) - - // Customize the metadata options of the instance. See Metadata Options below for more details. - // +kubebuilder:validation:Optional - metadataOptions?: [...#MetadataOptionsParameters] @go(MetadataOptions,[]MetadataOptionsParameters) - - // If true, the launched EC2 instance will have detailed monitoring enabled. (Available since v0.6.0) - // +kubebuilder:validation:Optional - monitoring?: null | bool @go(Monitoring,*bool) - - // Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details. - // +kubebuilder:validation:Optional - networkInterface?: [...#InstanceNetworkInterfaceParameters] @go(NetworkInterface,[]InstanceNetworkInterfaceParameters) - - // Placement Group to start the instance in. - // +kubebuilder:validation:Optional - placementGroup?: null | string @go(PlacementGroup,*string) - - // Number of the partition the instance is in. Valid only if the strategy argument is set to "partition". - // +kubebuilder:validation:Optional - placementPartitionNumber?: null | float64 @go(PlacementPartitionNumber,*float64) - - // Options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details. - // +kubebuilder:validation:Optional - privateDnsNameOptions?: [...#PrivateDNSNameOptionsParameters] @go(PrivateDNSNameOptions,[]PrivateDNSNameOptionsParameters) - - // Private IP address to associate with the instance in a VPC. - // +kubebuilder:validation:Optional - privateIp?: null | string @go(PrivateIP,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block to customize details about the root block device of the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a list containing one object. - // +kubebuilder:validation:Optional - rootBlockDevice?: [...#RootBlockDeviceParameters] @go(RootBlockDevice,[]RootBlockDeviceParameters) - - // List of secondary private IPv4 addresses to assign to the instance's primary network interface (eth0) in a VPC. Can only be assigned to the primary network interface (eth0) attached at instance creation, not a pre-existing network interface i.e., referenced in a network_interface block. Refer to the Elastic network interfaces documentation to see the maximum number of private IP addresses allowed per instance type. - // +kubebuilder:validation:Optional - secondaryPrivateIps?: [...null | string] @go(SecondaryPrivateIps,[]*string) - - // Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs. Defaults true. - // +kubebuilder:validation:Optional - sourceDestCheck?: null | bool @go(SourceDestCheck,*bool) - - // VPC Subnet ID to launch in. - // +crossplane:generate:reference:type=Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the import-instance command. Valid values are default, dedicated, and host. - // +kubebuilder:validation:Optional - tenancy?: null | string @go(Tenancy,*string) - - // User data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change is set then updates to this field will trigger a destroy and recreate. - // +kubebuilder:validation:Optional - userData?: null | string @go(UserData,*string) - - // Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change is set then updates to this field will trigger a destroy and recreate. - // +kubebuilder:validation:Optional - userDataBase64?: null | string @go(UserDataBase64,*string) - - // When used in combination with user_data or user_data_base64 will trigger a destroy and recreate when set to true. Defaults to false if not set. - // +kubebuilder:validation:Optional - userDataReplaceOnChange?: null | bool @go(UserDataReplaceOnChange,*bool) - - // References to SecurityGroup to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdRefs?: [...v1.#Reference] @go(VPCSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdSelector?: null | v1.#Selector @go(VPCSecurityGroupIDSelector,*v1.Selector) - - // List of security group IDs to associate with. - // +crossplane:generate:reference:type=SecurityGroup - // +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // Map of tags to assign, at instance-creation time, to root and EBS volumes. - // +kubebuilder:validation:Optional - volumeTags?: {[string]: null | string} @go(VolumeTags,map[string]*string) -} - -#LaunchTemplateInitParameters: { - // ID of the launch template. Conflicts with name. - id?: null | string @go(ID,*string) - - // Name of the launch template. Conflicts with id. - name?: null | string @go(Name,*string) - - // Template version. Can be a specific version number, $Latest or $Default. The default value is $Default. - version?: null | string @go(Version,*string) -} - -#LaunchTemplateObservation: { - // ID of the launch template. Conflicts with name. - id?: null | string @go(ID,*string) - - // Name of the launch template. Conflicts with id. - name?: null | string @go(Name,*string) - - // Template version. Can be a specific version number, $Latest or $Default. The default value is $Default. - version?: null | string @go(Version,*string) -} - -#LaunchTemplateParameters: { - // ID of the launch template. Conflicts with name. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Name of the launch template. Conflicts with id. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Template version. Can be a specific version number, $Latest or $Default. The default value is $Default. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#MaintenanceOptionsInitParameters: { - // Automatic recovery behavior of the Instance. Can be "default" or "disabled". See Recover your instance for more details. - autoRecovery?: null | string @go(AutoRecovery,*string) -} - -#MaintenanceOptionsObservation: { - // Automatic recovery behavior of the Instance. Can be "default" or "disabled". See Recover your instance for more details. - autoRecovery?: null | string @go(AutoRecovery,*string) -} - -#MaintenanceOptionsParameters: { - // Automatic recovery behavior of the Instance. Can be "default" or "disabled". See Recover your instance for more details. - // +kubebuilder:validation:Optional - autoRecovery?: null | string @go(AutoRecovery,*string) -} - -#MetadataOptionsInitParameters: { - // Whether the metadata service is available. Valid values include enabled or disabled. Defaults to enabled. - httpEndpoint?: null | string @go(HTTPEndpoint,*string) - - // Desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Valid values are integer from 1 to 64. Defaults to 1. - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2). Valid values include optional or required. Defaults to optional. - httpTokens?: null | string @go(HTTPTokens,*string) - - // Enables or disables access to instance tags from the instance metadata service. Valid values include enabled or disabled. Defaults to disabled. - instanceMetadataTags?: null | string @go(InstanceMetadataTags,*string) -} - -#MetadataOptionsObservation: { - // Whether the metadata service is available. Valid values include enabled or disabled. Defaults to enabled. - httpEndpoint?: null | string @go(HTTPEndpoint,*string) - - // Desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Valid values are integer from 1 to 64. Defaults to 1. - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2). Valid values include optional or required. Defaults to optional. - httpTokens?: null | string @go(HTTPTokens,*string) - - // Enables or disables access to instance tags from the instance metadata service. Valid values include enabled or disabled. Defaults to disabled. - instanceMetadataTags?: null | string @go(InstanceMetadataTags,*string) -} - -#MetadataOptionsParameters: { - // Whether the metadata service is available. Valid values include enabled or disabled. Defaults to enabled. - // +kubebuilder:validation:Optional - httpEndpoint?: null | string @go(HTTPEndpoint,*string) - - // Desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Valid values are integer from 1 to 64. Defaults to 1. - // +kubebuilder:validation:Optional - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2). Valid values include optional or required. Defaults to optional. - // +kubebuilder:validation:Optional - httpTokens?: null | string @go(HTTPTokens,*string) - - // Enables or disables access to instance tags from the instance metadata service. Valid values include enabled or disabled. Defaults to disabled. - // +kubebuilder:validation:Optional - instanceMetadataTags?: null | string @go(InstanceMetadataTags,*string) -} - -#PrivateDNSNameOptionsInitParameters: { - // Indicates whether to respond to DNS queries for instance hostnames with DNS A records. - enableResourceNameDnsARecord?: null | bool @go(EnableResourceNameDNSARecord,*bool) - - // Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. - enableResourceNameDnsAaaaRecord?: null | bool @go(EnableResourceNameDNSAaaaRecord,*bool) - - // Type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name and resource-name. - hostnameType?: null | string @go(HostnameType,*string) -} - -#PrivateDNSNameOptionsObservation: { - // Indicates whether to respond to DNS queries for instance hostnames with DNS A records. - enableResourceNameDnsARecord?: null | bool @go(EnableResourceNameDNSARecord,*bool) - - // Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. - enableResourceNameDnsAaaaRecord?: null | bool @go(EnableResourceNameDNSAaaaRecord,*bool) - - // Type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name and resource-name. - hostnameType?: null | string @go(HostnameType,*string) -} - -#PrivateDNSNameOptionsParameters: { - // Indicates whether to respond to DNS queries for instance hostnames with DNS A records. - // +kubebuilder:validation:Optional - enableResourceNameDnsARecord?: null | bool @go(EnableResourceNameDNSARecord,*bool) - - // Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. - // +kubebuilder:validation:Optional - enableResourceNameDnsAaaaRecord?: null | bool @go(EnableResourceNameDNSAaaaRecord,*bool) - - // Type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name and resource-name. - // +kubebuilder:validation:Optional - hostnameType?: null | string @go(HostnameType,*string) -} - -#RootBlockDeviceInitParameters: { - // Whether the volume should be destroyed on instance termination. Defaults to true. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Whether to enable volume encryption. Defaults to false. Must be configured to perform drift detection. - encrypted?: null | bool @go(Encrypted,*bool) - - // Amount of provisioned IOPS. Only valid for volume_type of io1, io2 or gp3. - iops?: null | float64 @go(Iops,*float64) - - // Map of tags to assign to the device. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for volume_type of gp3. - throughput?: null | float64 @go(Throughput,*float64) - - // Size of the volume in gibibytes (GiB). - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of volume. Valid values include standard, gp2, gp3, io1, io2, sc1, or st1. Defaults to gp2. - volumeType?: null | string @go(VolumeType,*string) -} - -#RootBlockDeviceObservation: { - // Whether the volume should be destroyed on instance termination. Defaults to true. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Device name, e.g., /dev/sdh or xvdh. - deviceName?: null | string @go(DeviceName,*string) - - // Whether to enable volume encryption. Defaults to false. Must be configured to perform drift detection. - encrypted?: null | bool @go(Encrypted,*bool) - - // Amount of provisioned IOPS. Only valid for volume_type of io1, io2 or gp3. - iops?: null | float64 @go(Iops,*float64) - - // Amazon Resource Name (ARN) of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Map of tags to assign to the device. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for volume_type of gp3. - throughput?: null | float64 @go(Throughput,*float64) - - // ID of the volume. For example, the ID can be accessed like this, aws_instance.web.root_block_device.0.volume_id. - volumeId?: null | string @go(VolumeID,*string) - - // Size of the volume in gibibytes (GiB). - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of volume. Valid values include standard, gp2, gp3, io1, io2, sc1, or st1. Defaults to gp2. - volumeType?: null | string @go(VolumeType,*string) -} - -#RootBlockDeviceParameters: { - // Whether the volume should be destroyed on instance termination. Defaults to true. - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Whether to enable volume encryption. Defaults to false. Must be configured to perform drift detection. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // Amount of provisioned IOPS. Only valid for volume_type of io1, io2 or gp3. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // Amazon Resource Name (ARN) of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Map of tags to assign to the device. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for volume_type of gp3. - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // Size of the volume in gibibytes (GiB). - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of volume. Valid values include standard, gp2, gp3, io1, io2, sc1, or st1. Defaults to gp2. - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -// InstanceSpec defines the desired state of Instance -#InstanceSpec: { - v1.#ResourceSpec - forProvider: #InstanceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InstanceInitParameters @go(InitProvider) -} - -// InstanceStatus defines the observed state of Instance. -#InstanceStatus: { - v1.#ResourceStatus - atProvider?: #InstanceObservation @go(AtProvider) -} - -// Instance is the Schema for the Instances API. Provides an EC2 instance resource. This allows instances to be created, updated, and deleted. Instances also support provisioning. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Instance: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #InstanceSpec @go(Spec) - status?: #InstanceStatus @go(Status) -} - -// InstanceList contains a list of Instances -#InstanceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Instance] @go(Items,[]Instance) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_instancestate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_instancestate_types_go_gen.cue deleted file mode 100644 index 832c474..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_instancestate_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InstanceStateInitParameters: { - // Whether to request a forced stop when state is stopped. Otherwise (i.e., state is running), ignored. When an instance is forced to stop, it does not flush file system caches or file system metadata, and you must subsequently perform file system check and repair. Not recommended for Windows instances. Defaults to false. - force?: null | bool @go(Force,*bool) - - // - State of the instance. Valid values are stopped, running. - state?: null | string @go(State,*string) -} - -#InstanceStateObservation: { - // Whether to request a forced stop when state is stopped. Otherwise (i.e., state is running), ignored. When an instance is forced to stop, it does not flush file system caches or file system metadata, and you must subsequently perform file system check and repair. Not recommended for Windows instances. Defaults to false. - force?: null | bool @go(Force,*bool) - - // ID of the instance (matches instance_id). - id?: null | string @go(ID,*string) - - // ID of the instance. - instanceId?: null | string @go(InstanceID,*string) - - // - State of the instance. Valid values are stopped, running. - state?: null | string @go(State,*string) -} - -#InstanceStateParameters: { - // Whether to request a forced stop when state is stopped. Otherwise (i.e., state is running), ignored. When an instance is forced to stop, it does not flush file system caches or file system metadata, and you must subsequently perform file system check and repair. Not recommended for Windows instances. Defaults to false. - // +kubebuilder:validation:Optional - force?: null | bool @go(Force,*bool) - - // ID of the instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in ec2 to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in ec2 to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // - State of the instance. Valid values are stopped, running. - // +kubebuilder:validation:Optional - state?: null | string @go(State,*string) -} - -// InstanceStateSpec defines the desired state of InstanceState -#InstanceStateSpec: { - v1.#ResourceSpec - forProvider: #InstanceStateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InstanceStateInitParameters @go(InitProvider) -} - -// InstanceStateStatus defines the observed state of InstanceState. -#InstanceStateStatus: { - v1.#ResourceStatus - atProvider?: #InstanceStateObservation @go(AtProvider) -} - -// InstanceState is the Schema for the InstanceStates API. Provides an EC2 instance state resource. This allows managing an instance power state. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#InstanceState: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.state) || (has(self.initProvider) && has(self.initProvider.state))",message="spec.forProvider.state is a required parameter" - spec: #InstanceStateSpec @go(Spec) - status?: #InstanceStateStatus @go(Status) -} - -// InstanceStateList contains a list of InstanceStates -#InstanceStateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#InstanceState] @go(Items,[]InstanceState) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_internetgateway_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_internetgateway_types_go_gen.cue deleted file mode 100644 index 793bc50..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_internetgateway_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InternetGatewayInitParameters_2: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#InternetGatewayObservation_2: { - // The ARN of the Internet Gateway. - arn?: null | string @go(Arn,*string) - - // The ID of the Internet Gateway. - id?: null | string @go(ID,*string) - - // The ID of the AWS account that owns the internet gateway. - ownerId?: null | string @go(OwnerID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The VPC ID to create in. See the aws_internet_gateway_attachment resource for an alternate way to attach an Internet Gateway to a VPC. - vpcId?: null | string @go(VPCID,*string) -} - -#InternetGatewayParameters_2: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VPC ID to create in. See the aws_internet_gateway_attachment resource for an alternate way to attach an Internet Gateway to a VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// InternetGatewaySpec defines the desired state of InternetGateway -#InternetGatewaySpec: { - v1.#ResourceSpec - forProvider: #InternetGatewayParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InternetGatewayInitParameters_2 @go(InitProvider) -} - -// InternetGatewayStatus defines the observed state of InternetGateway. -#InternetGatewayStatus: { - v1.#ResourceStatus - atProvider?: #InternetGatewayObservation_2 @go(AtProvider) -} - -// InternetGateway is the Schema for the InternetGateways API. Provides a resource to create a VPC Internet Gateway. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#InternetGateway: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #InternetGatewaySpec @go(Spec) - status?: #InternetGatewayStatus @go(Status) -} - -// InternetGatewayList contains a list of InternetGateways -#InternetGatewayList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#InternetGateway] @go(Items,[]InternetGateway) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_keypair_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_keypair_types_go_gen.cue deleted file mode 100644 index 1d11c26..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_keypair_types_go_gen.cue +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#KeyPairInitParameters: { - // The public key material. - publicKey?: null | string @go(PublicKey,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#KeyPairObservation: { - // The key pair ARN. - arn?: null | string @go(Arn,*string) - - // The MD5 public key fingerprint as specified in section 4 of RFC 4716. - fingerprint?: null | string @go(Fingerprint,*string) - - // The key pair name. - id?: null | string @go(ID,*string) - - // The key pair ID. - keyPairId?: null | string @go(KeyPairID,*string) - - // The type of key pair. - keyType?: null | string @go(KeyType,*string) - - // The public key material. - publicKey?: null | string @go(PublicKey,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#KeyPairParameters: { - // The public key material. - // +kubebuilder:validation:Optional - publicKey?: null | string @go(PublicKey,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// KeyPairSpec defines the desired state of KeyPair -#KeyPairSpec: { - v1.#ResourceSpec - forProvider: #KeyPairParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #KeyPairInitParameters @go(InitProvider) -} - -// KeyPairStatus defines the observed state of KeyPair. -#KeyPairStatus: { - v1.#ResourceStatus - atProvider?: #KeyPairObservation @go(AtProvider) -} - -// KeyPair is the Schema for the KeyPairs API. Provides a Key Pair resource. Currently this supports importing an existing key pair but not creating a new key pair. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#KeyPair: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.publicKey) || (has(self.initProvider) && has(self.initProvider.publicKey))",message="spec.forProvider.publicKey is a required parameter" - spec: #KeyPairSpec @go(Spec) - status?: #KeyPairStatus @go(Status) -} - -// KeyPairList contains a list of KeyPairs -#KeyPairList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#KeyPair] @go(Items,[]KeyPair) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_launchtemplate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_launchtemplate_types_go_gen.cue deleted file mode 100644 index 4727ffb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_launchtemplate_types_go_gen.cue +++ /dev/null @@ -1,1894 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AcceleratorCountInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#AcceleratorCountObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#AcceleratorCountParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#AcceleratorTotalMemoryMibInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#AcceleratorTotalMemoryMibObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#AcceleratorTotalMemoryMibParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#BaselineEBSBandwidthMbpsInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#BaselineEBSBandwidthMbpsObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#BaselineEBSBandwidthMbpsParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#BlockDeviceMappingsInitParameters: { - // The name of the device to mount. - deviceName?: null | string @go(DeviceName,*string) - - // Configure EBS volume properties. - ebs?: [...#EBSInitParameters] @go(EBS,[]EBSInitParameters) - - // Suppresses the specified device included in the AMI's block device mapping. - noDevice?: null | string @go(NoDevice,*string) - - // The Instance Store Device - // Name - // (e.g., "ephemeral0"). - virtualName?: null | string @go(VirtualName,*string) -} - -#BlockDeviceMappingsObservation: { - // The name of the device to mount. - deviceName?: null | string @go(DeviceName,*string) - - // Configure EBS volume properties. - ebs?: [...#EBSObservation] @go(EBS,[]EBSObservation) - - // Suppresses the specified device included in the AMI's block device mapping. - noDevice?: null | string @go(NoDevice,*string) - - // The Instance Store Device - // Name - // (e.g., "ephemeral0"). - virtualName?: null | string @go(VirtualName,*string) -} - -#BlockDeviceMappingsParameters: { - // The name of the device to mount. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Configure EBS volume properties. - // +kubebuilder:validation:Optional - ebs?: [...#EBSParameters] @go(EBS,[]EBSParameters) - - // Suppresses the specified device included in the AMI's block device mapping. - // +kubebuilder:validation:Optional - noDevice?: null | string @go(NoDevice,*string) - - // The Instance Store Device - // Name - // (e.g., "ephemeral0"). - // +kubebuilder:validation:Optional - virtualName?: null | string @go(VirtualName,*string) -} - -#CapacityReservationSpecificationCapacityReservationTargetInitParameters: { - // The ID of the Capacity Reservation in which to run the instance. - capacityReservationId?: null | string @go(CapacityReservationID,*string) - - // The ARN of the Capacity Reservation resource group in which to run the instance. - capacityReservationResourceGroupArn?: null | string @go(CapacityReservationResourceGroupArn,*string) -} - -#CapacityReservationSpecificationCapacityReservationTargetObservation: { - // The ID of the Capacity Reservation in which to run the instance. - capacityReservationId?: null | string @go(CapacityReservationID,*string) - - // The ARN of the Capacity Reservation resource group in which to run the instance. - capacityReservationResourceGroupArn?: null | string @go(CapacityReservationResourceGroupArn,*string) -} - -#CapacityReservationSpecificationCapacityReservationTargetParameters: { - // The ID of the Capacity Reservation in which to run the instance. - // +kubebuilder:validation:Optional - capacityReservationId?: null | string @go(CapacityReservationID,*string) - - // The ARN of the Capacity Reservation resource group in which to run the instance. - // +kubebuilder:validation:Optional - capacityReservationResourceGroupArn?: null | string @go(CapacityReservationResourceGroupArn,*string) -} - -#EBSInitParameters: { - // Whether the volume should be destroyed on instance termination. - // See Preserving Amazon EBS Volumes on Instance Termination for more information. - deleteOnTermination?: null | string @go(DeleteOnTermination,*string) - - // Enables EBS encryption on the volume. - // Cannot be used with snapshot_id. - encrypted?: null | string @go(Encrypted,*string) - - // The amount of provisioned IOPS. - // This must be set with a volume_type of "io1/io2/gp3". - iops?: null | float64 @go(Iops,*float64) - - // The Snapshot ID to mount. - snapshotId?: null | string @go(SnapshotID,*string) - - // The throughput to provision for a gp3 volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s. - throughput?: null | float64 @go(Throughput,*float64) - - // The size of the volume in gigabytes. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // The volume type. - // Can be one of standard, gp2, gp3, io1, io2, sc1 or st1. - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSObservation: { - // Whether the volume should be destroyed on instance termination. - // See Preserving Amazon EBS Volumes on Instance Termination for more information. - deleteOnTermination?: null | string @go(DeleteOnTermination,*string) - - // Enables EBS encryption on the volume. - // Cannot be used with snapshot_id. - encrypted?: null | string @go(Encrypted,*string) - - // The amount of provisioned IOPS. - // This must be set with a volume_type of "io1/io2/gp3". - iops?: null | float64 @go(Iops,*float64) - - // The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. - // encrypted must be set to true when this is set. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The Snapshot ID to mount. - snapshotId?: null | string @go(SnapshotID,*string) - - // The throughput to provision for a gp3 volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s. - throughput?: null | float64 @go(Throughput,*float64) - - // The size of the volume in gigabytes. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // The volume type. - // Can be one of standard, gp2, gp3, io1, io2, sc1 or st1. - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSParameters: { - // Whether the volume should be destroyed on instance termination. - // See Preserving Amazon EBS Volumes on Instance Termination for more information. - // +kubebuilder:validation:Optional - deleteOnTermination?: null | string @go(DeleteOnTermination,*string) - - // Enables EBS encryption on the volume. - // Cannot be used with snapshot_id. - // +kubebuilder:validation:Optional - encrypted?: null | string @go(Encrypted,*string) - - // The amount of provisioned IOPS. - // This must be set with a volume_type of "io1/io2/gp3". - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. - // encrypted must be set to true when this is set. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // The Snapshot ID to mount. - // +kubebuilder:validation:Optional - snapshotId?: null | string @go(SnapshotID,*string) - - // The throughput to provision for a gp3 volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s. - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // The volume type. - // Can be one of standard, gp2, gp3, io1, io2, sc1 or st1. - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -#ElasticGpuSpecificationsInitParameters: { - // The Elastic GPU Type - type?: null | string @go(Type,*string) -} - -#ElasticGpuSpecificationsObservation: { - // The Elastic GPU Type - type?: null | string @go(Type,*string) -} - -#ElasticGpuSpecificationsParameters: { - // The Elastic GPU Type - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#ElasticInferenceAcceleratorInitParameters: { - // Accelerator type. - type?: null | string @go(Type,*string) -} - -#ElasticInferenceAcceleratorObservation: { - // Accelerator type. - type?: null | string @go(Type,*string) -} - -#ElasticInferenceAcceleratorParameters: { - // Accelerator type. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#HibernationOptionsInitParameters: { - // If set to true, the launched EC2 instance will hibernation enabled. - configured?: null | bool @go(Configured,*bool) -} - -#HibernationOptionsObservation: { - // If set to true, the launched EC2 instance will hibernation enabled. - configured?: null | bool @go(Configured,*bool) -} - -#HibernationOptionsParameters: { - // If set to true, the launched EC2 instance will hibernation enabled. - // +kubebuilder:validation:Optional - configured?: null | bool @go(Configured,*bool) -} - -#IAMInstanceProfileInitParameters: { -} - -#IAMInstanceProfileObservation: { - // The Amazon Resource Name (ARN) of the instance profile. - arn?: null | string @go(Arn,*string) - - // The name of the instance profile. - name?: null | string @go(Name,*string) -} - -#IAMInstanceProfileParameters: { - // The Amazon Resource Name (ARN) of the instance profile. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.InstanceProfile - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // Reference to a InstanceProfile in iam to populate arn. - // +kubebuilder:validation:Optional - arnRef?: null | v1.#Reference @go(ArnRef,*v1.Reference) - - // Selector for a InstanceProfile in iam to populate arn. - // +kubebuilder:validation:Optional - arnSelector?: null | v1.#Selector @go(ArnSelector,*v1.Selector) - - // The name of the instance profile. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.InstanceProfile - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Reference to a InstanceProfile in iam to populate name. - // +kubebuilder:validation:Optional - nameRef?: null | v1.#Reference @go(NameRef,*v1.Reference) - - // Selector for a InstanceProfile in iam to populate name. - // +kubebuilder:validation:Optional - nameSelector?: null | v1.#Selector @go(NameSelector,*v1.Selector) -} - -#InstanceMarketOptionsInitParameters: { - // The market type. Can be spot. - marketType?: null | string @go(MarketType,*string) - - // The options for Spot Instance - spotOptions?: [...#SpotOptionsInitParameters] @go(SpotOptions,[]SpotOptionsInitParameters) -} - -#InstanceMarketOptionsObservation: { - // The market type. Can be spot. - marketType?: null | string @go(MarketType,*string) - - // The options for Spot Instance - spotOptions?: [...#SpotOptionsObservation] @go(SpotOptions,[]SpotOptionsObservation) -} - -#InstanceMarketOptionsParameters: { - // The market type. Can be spot. - // +kubebuilder:validation:Optional - marketType?: null | string @go(MarketType,*string) - - // The options for Spot Instance - // +kubebuilder:validation:Optional - spotOptions?: [...#SpotOptionsParameters] @go(SpotOptions,[]SpotOptionsParameters) -} - -#InstanceRequirementsInitParameters: { - // Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. - acceleratorCount?: [...#AcceleratorCountInitParameters] @go(AcceleratorCount,[]AcceleratorCountInitParameters) - - // List of accelerator manufacturer names. Default is any manufacturer. - acceleratorManufacturers?: [...null | string] @go(AcceleratorManufacturers,[]*string) - - // List of accelerator names. Default is any acclerator. - acceleratorNames?: [...null | string] @go(AcceleratorNames,[]*string) - - // Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. - acceleratorTotalMemoryMib?: [...#AcceleratorTotalMemoryMibInitParameters] @go(AcceleratorTotalMemoryMib,[]AcceleratorTotalMemoryMibInitParameters) - - // List of accelerator types. Default is any accelerator type. - acceleratorTypes?: [...null | string] @go(AcceleratorTypes,[]*string) - - // List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types. - allowedInstanceTypes?: [...null | string] @go(AllowedInstanceTypes,[]*string) - - // Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded. - bareMetal?: null | string @go(BareMetal,*string) - - // Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. - baselineEbsBandwidthMbps?: [...#BaselineEBSBandwidthMbpsInitParameters] @go(BaselineEBSBandwidthMbps,[]BaselineEBSBandwidthMbpsInitParameters) - - // Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded. - burstablePerformance?: null | string @go(BurstablePerformance,*string) - - // List of CPU manufacturer names. Default is any manufacturer. - cpuManufacturers?: [...null | string] @go(CPUManufacturers,[]*string) - - // List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. - excludedInstanceTypes?: [...null | string] @go(ExcludedInstanceTypes,[]*string) - - // List of instance generation names. Default is any generation. - instanceGenerations?: [...null | string] @go(InstanceGenerations,[]*string) - - // Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included. - localStorage?: null | string @go(LocalStorage,*string) - - // List of local storage type names. Default any storage type. - localStorageTypes?: [...null | string] @go(LocalStorageTypes,[]*string) - - // Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. - memoryGibPerVcpu?: [...#MemoryGibPerVcpuInitParameters] @go(MemoryGibPerVcpu,[]MemoryGibPerVcpuInitParameters) - - // Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. - memoryMib?: [...#MemoryMibInitParameters] @go(MemoryMib,[]MemoryMibInitParameters) - - // Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum. - networkBandwidthGbps?: [...#NetworkBandwidthGbpsInitParameters] @go(NetworkBandwidthGbps,[]NetworkBandwidthGbpsInitParameters) - - // Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. - networkInterfaceCount?: [...#NetworkInterfaceCountInitParameters] @go(NetworkInterfaceCount,[]NetworkInterfaceCountInitParameters) - - // The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. - onDemandMaxPricePercentageOverLowestPrice?: null | float64 @go(OnDemandMaxPricePercentageOverLowestPrice,*float64) - - // Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false. - requireHibernateSupport?: null | bool @go(RequireHibernateSupport,*bool) - - // The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. - spotMaxPricePercentageOverLowestPrice?: null | float64 @go(SpotMaxPricePercentageOverLowestPrice,*float64) - - // Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. - totalLocalStorageGb?: [...#TotalLocalStorageGbInitParameters] @go(TotalLocalStorageGb,[]TotalLocalStorageGbInitParameters) - - // Block describing the minimum and maximum number of vCPUs. Default is no maximum. - vcpuCount?: [...#VcpuCountInitParameters] @go(VcpuCount,[]VcpuCountInitParameters) -} - -#InstanceRequirementsObservation: { - // Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. - acceleratorCount?: [...#AcceleratorCountObservation] @go(AcceleratorCount,[]AcceleratorCountObservation) - - // List of accelerator manufacturer names. Default is any manufacturer. - acceleratorManufacturers?: [...null | string] @go(AcceleratorManufacturers,[]*string) - - // List of accelerator names. Default is any acclerator. - acceleratorNames?: [...null | string] @go(AcceleratorNames,[]*string) - - // Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. - acceleratorTotalMemoryMib?: [...#AcceleratorTotalMemoryMibObservation] @go(AcceleratorTotalMemoryMib,[]AcceleratorTotalMemoryMibObservation) - - // List of accelerator types. Default is any accelerator type. - acceleratorTypes?: [...null | string] @go(AcceleratorTypes,[]*string) - - // List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types. - allowedInstanceTypes?: [...null | string] @go(AllowedInstanceTypes,[]*string) - - // Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded. - bareMetal?: null | string @go(BareMetal,*string) - - // Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. - baselineEbsBandwidthMbps?: [...#BaselineEBSBandwidthMbpsObservation] @go(BaselineEBSBandwidthMbps,[]BaselineEBSBandwidthMbpsObservation) - - // Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded. - burstablePerformance?: null | string @go(BurstablePerformance,*string) - - // List of CPU manufacturer names. Default is any manufacturer. - cpuManufacturers?: [...null | string] @go(CPUManufacturers,[]*string) - - // List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. - excludedInstanceTypes?: [...null | string] @go(ExcludedInstanceTypes,[]*string) - - // List of instance generation names. Default is any generation. - instanceGenerations?: [...null | string] @go(InstanceGenerations,[]*string) - - // Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included. - localStorage?: null | string @go(LocalStorage,*string) - - // List of local storage type names. Default any storage type. - localStorageTypes?: [...null | string] @go(LocalStorageTypes,[]*string) - - // Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. - memoryGibPerVcpu?: [...#MemoryGibPerVcpuObservation] @go(MemoryGibPerVcpu,[]MemoryGibPerVcpuObservation) - - // Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. - memoryMib?: [...#MemoryMibObservation] @go(MemoryMib,[]MemoryMibObservation) - - // Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum. - networkBandwidthGbps?: [...#NetworkBandwidthGbpsObservation] @go(NetworkBandwidthGbps,[]NetworkBandwidthGbpsObservation) - - // Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. - networkInterfaceCount?: [...#NetworkInterfaceCountObservation] @go(NetworkInterfaceCount,[]NetworkInterfaceCountObservation) - - // The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. - onDemandMaxPricePercentageOverLowestPrice?: null | float64 @go(OnDemandMaxPricePercentageOverLowestPrice,*float64) - - // Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false. - requireHibernateSupport?: null | bool @go(RequireHibernateSupport,*bool) - - // The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. - spotMaxPricePercentageOverLowestPrice?: null | float64 @go(SpotMaxPricePercentageOverLowestPrice,*float64) - - // Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. - totalLocalStorageGb?: [...#TotalLocalStorageGbObservation] @go(TotalLocalStorageGb,[]TotalLocalStorageGbObservation) - - // Block describing the minimum and maximum number of vCPUs. Default is no maximum. - vcpuCount?: [...#VcpuCountObservation] @go(VcpuCount,[]VcpuCountObservation) -} - -#InstanceRequirementsParameters: { - // Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. - // +kubebuilder:validation:Optional - acceleratorCount?: [...#AcceleratorCountParameters] @go(AcceleratorCount,[]AcceleratorCountParameters) - - // List of accelerator manufacturer names. Default is any manufacturer. - // +kubebuilder:validation:Optional - acceleratorManufacturers?: [...null | string] @go(AcceleratorManufacturers,[]*string) - - // List of accelerator names. Default is any acclerator. - // +kubebuilder:validation:Optional - acceleratorNames?: [...null | string] @go(AcceleratorNames,[]*string) - - // Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. - // +kubebuilder:validation:Optional - acceleratorTotalMemoryMib?: [...#AcceleratorTotalMemoryMibParameters] @go(AcceleratorTotalMemoryMib,[]AcceleratorTotalMemoryMibParameters) - - // List of accelerator types. Default is any accelerator type. - // +kubebuilder:validation:Optional - acceleratorTypes?: [...null | string] @go(AcceleratorTypes,[]*string) - - // List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types. - // +kubebuilder:validation:Optional - allowedInstanceTypes?: [...null | string] @go(AllowedInstanceTypes,[]*string) - - // Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded. - // +kubebuilder:validation:Optional - bareMetal?: null | string @go(BareMetal,*string) - - // Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. - // +kubebuilder:validation:Optional - baselineEbsBandwidthMbps?: [...#BaselineEBSBandwidthMbpsParameters] @go(BaselineEBSBandwidthMbps,[]BaselineEBSBandwidthMbpsParameters) - - // Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded. - // +kubebuilder:validation:Optional - burstablePerformance?: null | string @go(BurstablePerformance,*string) - - // List of CPU manufacturer names. Default is any manufacturer. - // +kubebuilder:validation:Optional - cpuManufacturers?: [...null | string] @go(CPUManufacturers,[]*string) - - // List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. - // +kubebuilder:validation:Optional - excludedInstanceTypes?: [...null | string] @go(ExcludedInstanceTypes,[]*string) - - // List of instance generation names. Default is any generation. - // +kubebuilder:validation:Optional - instanceGenerations?: [...null | string] @go(InstanceGenerations,[]*string) - - // Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included. - // +kubebuilder:validation:Optional - localStorage?: null | string @go(LocalStorage,*string) - - // List of local storage type names. Default any storage type. - // +kubebuilder:validation:Optional - localStorageTypes?: [...null | string] @go(LocalStorageTypes,[]*string) - - // Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. - // +kubebuilder:validation:Optional - memoryGibPerVcpu?: [...#MemoryGibPerVcpuParameters] @go(MemoryGibPerVcpu,[]MemoryGibPerVcpuParameters) - - // Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. - // +kubebuilder:validation:Optional - memoryMib: [...#MemoryMibParameters] @go(MemoryMib,[]MemoryMibParameters) - - // Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum. - // +kubebuilder:validation:Optional - networkBandwidthGbps?: [...#NetworkBandwidthGbpsParameters] @go(NetworkBandwidthGbps,[]NetworkBandwidthGbpsParameters) - - // Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. - // +kubebuilder:validation:Optional - networkInterfaceCount?: [...#NetworkInterfaceCountParameters] @go(NetworkInterfaceCount,[]NetworkInterfaceCountParameters) - - // The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. - // +kubebuilder:validation:Optional - onDemandMaxPricePercentageOverLowestPrice?: null | float64 @go(OnDemandMaxPricePercentageOverLowestPrice,*float64) - - // Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false. - // +kubebuilder:validation:Optional - requireHibernateSupport?: null | bool @go(RequireHibernateSupport,*bool) - - // The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. - // +kubebuilder:validation:Optional - spotMaxPricePercentageOverLowestPrice?: null | float64 @go(SpotMaxPricePercentageOverLowestPrice,*float64) - - // Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. - // +kubebuilder:validation:Optional - totalLocalStorageGb?: [...#TotalLocalStorageGbParameters] @go(TotalLocalStorageGb,[]TotalLocalStorageGbParameters) - - // Block describing the minimum and maximum number of vCPUs. Default is no maximum. - // +kubebuilder:validation:Optional - vcpuCount: [...#VcpuCountParameters] @go(VcpuCount,[]VcpuCountParameters) -} - -#LaunchTemplateCPUOptionsInitParameters: { - // Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are enabled and disabled. - amdSevSnp?: null | string @go(AmdSevSnp,*string) - - // The number of CPU cores for the instance. - coreCount?: null | float64 @go(CoreCount,*float64) - - // The number of threads per CPU core. - // To disable Intel Hyper-Threading Technology for the instance, specify a value of 1. - // Otherwise, specify the default value of 2. - threadsPerCore?: null | float64 @go(ThreadsPerCore,*float64) -} - -#LaunchTemplateCPUOptionsObservation: { - // Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are enabled and disabled. - amdSevSnp?: null | string @go(AmdSevSnp,*string) - - // The number of CPU cores for the instance. - coreCount?: null | float64 @go(CoreCount,*float64) - - // The number of threads per CPU core. - // To disable Intel Hyper-Threading Technology for the instance, specify a value of 1. - // Otherwise, specify the default value of 2. - threadsPerCore?: null | float64 @go(ThreadsPerCore,*float64) -} - -#LaunchTemplateCPUOptionsParameters: { - // Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are enabled and disabled. - // +kubebuilder:validation:Optional - amdSevSnp?: null | string @go(AmdSevSnp,*string) - - // The number of CPU cores for the instance. - // +kubebuilder:validation:Optional - coreCount?: null | float64 @go(CoreCount,*float64) - - // The number of threads per CPU core. - // To disable Intel Hyper-Threading Technology for the instance, specify a value of 1. - // Otherwise, specify the default value of 2. - // +kubebuilder:validation:Optional - threadsPerCore?: null | float64 @go(ThreadsPerCore,*float64) -} - -#LaunchTemplateCapacityReservationSpecificationInitParameters: { - // Indicates the instance's Capacity Reservation preferences. Can be open or none. (Default none). - capacityReservationPreference?: null | string @go(CapacityReservationPreference,*string) - - // Used to target a specific Capacity Reservation: - capacityReservationTarget?: [...#CapacityReservationSpecificationCapacityReservationTargetInitParameters] @go(CapacityReservationTarget,[]CapacityReservationSpecificationCapacityReservationTargetInitParameters) -} - -#LaunchTemplateCapacityReservationSpecificationObservation: { - // Indicates the instance's Capacity Reservation preferences. Can be open or none. (Default none). - capacityReservationPreference?: null | string @go(CapacityReservationPreference,*string) - - // Used to target a specific Capacity Reservation: - capacityReservationTarget?: [...#CapacityReservationSpecificationCapacityReservationTargetObservation] @go(CapacityReservationTarget,[]CapacityReservationSpecificationCapacityReservationTargetObservation) -} - -#LaunchTemplateCapacityReservationSpecificationParameters: { - // Indicates the instance's Capacity Reservation preferences. Can be open or none. (Default none). - // +kubebuilder:validation:Optional - capacityReservationPreference?: null | string @go(CapacityReservationPreference,*string) - - // Used to target a specific Capacity Reservation: - // +kubebuilder:validation:Optional - capacityReservationTarget?: [...#CapacityReservationSpecificationCapacityReservationTargetParameters] @go(CapacityReservationTarget,[]CapacityReservationSpecificationCapacityReservationTargetParameters) -} - -#LaunchTemplateCreditSpecificationInitParameters: { - // The credit option for CPU usage. - // Can be standard or unlimited. - // T3 instances are launched as unlimited by default. - // T2 instances are launched as standard by default. - cpuCredits?: null | string @go(CPUCredits,*string) -} - -#LaunchTemplateCreditSpecificationObservation: { - // The credit option for CPU usage. - // Can be standard or unlimited. - // T3 instances are launched as unlimited by default. - // T2 instances are launched as standard by default. - cpuCredits?: null | string @go(CPUCredits,*string) -} - -#LaunchTemplateCreditSpecificationParameters: { - // The credit option for CPU usage. - // Can be standard or unlimited. - // T3 instances are launched as unlimited by default. - // T2 instances are launched as standard by default. - // +kubebuilder:validation:Optional - cpuCredits?: null | string @go(CPUCredits,*string) -} - -#LaunchTemplateEnclaveOptionsInitParameters: { - // If set to true, Nitro Enclaves will be enabled on the instance. - enabled?: null | bool @go(Enabled,*bool) -} - -#LaunchTemplateEnclaveOptionsObservation: { - // If set to true, Nitro Enclaves will be enabled on the instance. - enabled?: null | bool @go(Enabled,*bool) -} - -#LaunchTemplateEnclaveOptionsParameters: { - // If set to true, Nitro Enclaves will be enabled on the instance. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#LaunchTemplateInitParameters_2: { - // Specify volumes to attach to the instance besides the volumes specified by the AMI. - // See Block Devices below for details. - blockDeviceMappings?: [...#BlockDeviceMappingsInitParameters] @go(BlockDeviceMappings,[]BlockDeviceMappingsInitParameters) - - // The CPU options for the instance. See CPU Options below for more details. - cpuOptions?: [...#LaunchTemplateCPUOptionsInitParameters] @go(CPUOptions,[]LaunchTemplateCPUOptionsInitParameters) - - // Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details. - capacityReservationSpecification?: [...#LaunchTemplateCapacityReservationSpecificationInitParameters] @go(CapacityReservationSpecification,[]LaunchTemplateCapacityReservationSpecificationInitParameters) - - // Customize the credit specification of the instance. See Credit - // Specification below for more details. - creditSpecification?: [...#LaunchTemplateCreditSpecificationInitParameters] @go(CreditSpecification,[]LaunchTemplateCreditSpecificationInitParameters) - - // Default Version of the launch template. - defaultVersion?: null | float64 @go(DefaultVersion,*float64) - - // Description of the launch template. - description?: null | string @go(Description,*string) - - // If true, enables EC2 Instance Stop Protection. - disableApiStop?: null | bool @go(DisableAPIStop,*bool) - - // If true, enables EC2 Instance - // Termination Protection - disableApiTermination?: null | bool @go(DisableAPITermination,*bool) - - // If true, the launched EC2 instance will be EBS-optimized. - ebsOptimized?: null | string @go(EBSOptimized,*string) - - // The elastic GPU to attach to the instance. See Elastic GPU - // below for more details. - elasticGpuSpecifications?: [...#ElasticGpuSpecificationsInitParameters] @go(ElasticGpuSpecifications,[]ElasticGpuSpecificationsInitParameters) - - // Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details. - elasticInferenceAccelerator?: [...#ElasticInferenceAcceleratorInitParameters] @go(ElasticInferenceAccelerator,[]ElasticInferenceAcceleratorInitParameters) - - // Enable Nitro Enclaves on launched instances. See Enclave Options below for more details. - enclaveOptions?: [...#LaunchTemplateEnclaveOptionsInitParameters] @go(EnclaveOptions,[]LaunchTemplateEnclaveOptionsInitParameters) - - // The hibernation options for the instance. See Hibernation Options below for more details. - hibernationOptions?: [...#HibernationOptionsInitParameters] @go(HibernationOptions,[]HibernationOptionsInitParameters) - - // The IAM Instance Profile to launch the instance with. See Instance Profile - // below for more details. - iamInstanceProfile?: [...#IAMInstanceProfileInitParameters] @go(IAMInstanceProfile,[]IAMInstanceProfileInitParameters) - - // The AMI from which to launch the instance. - imageId?: null | string @go(ImageID,*string) - - // Shutdown behavior for the instance. Can be stop or terminate. - // (Default: stop). - instanceInitiatedShutdownBehavior?: null | string @go(InstanceInitiatedShutdownBehavior,*string) - - // The market (purchasing) option for the instance. See Market Options - // below for details. - instanceMarketOptions?: [...#InstanceMarketOptionsInitParameters] @go(InstanceMarketOptions,[]InstanceMarketOptionsInitParameters) - - // The attribute requirements for the type of instance. If present then instance_type cannot be present. - instanceRequirements?: [...#InstanceRequirementsInitParameters] @go(InstanceRequirements,[]InstanceRequirementsInitParameters) - - // The type of the instance. If present then instance_requirements cannot be present. - instanceType?: null | string @go(InstanceType,*string) - - // The kernel ID. - kernelId?: null | string @go(KernelID,*string) - - // The key name to use for the instance. - keyName?: null | string @go(KeyName,*string) - - // A list of license specifications to associate with. See License Specification below for more details. - licenseSpecification?: [...#LicenseSpecificationInitParameters] @go(LicenseSpecification,[]LicenseSpecificationInitParameters) - - // The maintenance options for the instance. See Maintenance Options below for more details. - maintenanceOptions?: [...#LaunchTemplateMaintenanceOptionsInitParameters] @go(MaintenanceOptions,[]LaunchTemplateMaintenanceOptionsInitParameters) - - // Customize the metadata options for the instance. See Metadata Options below for more details. - metadataOptions?: [...#LaunchTemplateMetadataOptionsInitParameters] @go(MetadataOptions,[]LaunchTemplateMetadataOptionsInitParameters) - - // The monitoring option for the instance. See Monitoring below for more details. - monitoring?: [...#MonitoringInitParameters] @go(Monitoring,[]MonitoringInitParameters) - - // The name of the launch template. - name?: null | string @go(Name,*string) - - // Customize network interfaces to be attached at instance boot time. See Network - // Interfaces below for more details. - networkInterfaces?: [...#NetworkInterfacesInitParameters] @go(NetworkInterfaces,[]NetworkInterfacesInitParameters) - - // The placement of the instance. See Placement below for more details. - placement?: [...#PlacementInitParameters] @go(Placement,[]PlacementInitParameters) - - // The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details. - privateDnsNameOptions?: [...#LaunchTemplatePrivateDNSNameOptionsInitParameters] @go(PrivateDNSNameOptions,[]LaunchTemplatePrivateDNSNameOptionsInitParameters) - - // The ID of the RAM disk. - ramDiskId?: null | string @go(RAMDiskID,*string) - - // The tags to apply to the resources during launch. See Tag Specifications below for more details. - tagSpecifications?: [...#TagSpecificationsInitParameters] @go(TagSpecifications,[]TagSpecificationsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to update Default Version each update. Conflicts with default_version. - updateDefaultVersion?: null | bool @go(UpdateDefaultVersion,*bool) - - // The base64-encoded user data to provide when launching the instance. - userData?: null | string @go(UserData,*string) -} - -#LaunchTemplateMaintenanceOptionsInitParameters: { - // Disables the automatic recovery behavior of your instance or sets it to default. Can be "default" or "disabled". See Recover your instance for more details. - autoRecovery?: null | string @go(AutoRecovery,*string) -} - -#LaunchTemplateMaintenanceOptionsObservation: { - // Disables the automatic recovery behavior of your instance or sets it to default. Can be "default" or "disabled". See Recover your instance for more details. - autoRecovery?: null | string @go(AutoRecovery,*string) -} - -#LaunchTemplateMaintenanceOptionsParameters: { - // Disables the automatic recovery behavior of your instance or sets it to default. Can be "default" or "disabled". See Recover your instance for more details. - // +kubebuilder:validation:Optional - autoRecovery?: null | string @go(AutoRecovery,*string) -} - -#LaunchTemplateMetadataOptionsInitParameters: { - // Whether the metadata service is available. Can be enabled or disabled. - httpEndpoint?: null | string @go(HTTPEndpoint,*string) - - // Enables or disables the IPv6 endpoint for the instance metadata service. (Default: disabled). - httpProtocolIpv6?: null | string @go(HTTPProtocolIPv6,*string) - - // The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Can be an integer from 1 to 64. - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2). Can be optional or required. - httpTokens?: null | string @go(HTTPTokens,*string) - - // Enables or disables access to instance tags from the instance metadata service. (Default: disabled). - instanceMetadataTags?: null | string @go(InstanceMetadataTags,*string) -} - -#LaunchTemplateMetadataOptionsObservation: { - // Whether the metadata service is available. Can be enabled or disabled. - httpEndpoint?: null | string @go(HTTPEndpoint,*string) - - // Enables or disables the IPv6 endpoint for the instance metadata service. (Default: disabled). - httpProtocolIpv6?: null | string @go(HTTPProtocolIPv6,*string) - - // The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Can be an integer from 1 to 64. - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2). Can be optional or required. - httpTokens?: null | string @go(HTTPTokens,*string) - - // Enables or disables access to instance tags from the instance metadata service. (Default: disabled). - instanceMetadataTags?: null | string @go(InstanceMetadataTags,*string) -} - -#LaunchTemplateMetadataOptionsParameters: { - // Whether the metadata service is available. Can be enabled or disabled. - // +kubebuilder:validation:Optional - httpEndpoint?: null | string @go(HTTPEndpoint,*string) - - // Enables or disables the IPv6 endpoint for the instance metadata service. (Default: disabled). - // +kubebuilder:validation:Optional - httpProtocolIpv6?: null | string @go(HTTPProtocolIPv6,*string) - - // The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Can be an integer from 1 to 64. - // +kubebuilder:validation:Optional - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2). Can be optional or required. - // +kubebuilder:validation:Optional - httpTokens?: null | string @go(HTTPTokens,*string) - - // Enables or disables access to instance tags from the instance metadata service. (Default: disabled). - // +kubebuilder:validation:Optional - instanceMetadataTags?: null | string @go(InstanceMetadataTags,*string) -} - -#LaunchTemplateObservation_2: { - // Amazon Resource Name (ARN) of the launch template. - arn?: null | string @go(Arn,*string) - - // Specify volumes to attach to the instance besides the volumes specified by the AMI. - // See Block Devices below for details. - blockDeviceMappings?: [...#BlockDeviceMappingsObservation] @go(BlockDeviceMappings,[]BlockDeviceMappingsObservation) - - // The CPU options for the instance. See CPU Options below for more details. - cpuOptions?: [...#LaunchTemplateCPUOptionsObservation] @go(CPUOptions,[]LaunchTemplateCPUOptionsObservation) - - // Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details. - capacityReservationSpecification?: [...#LaunchTemplateCapacityReservationSpecificationObservation] @go(CapacityReservationSpecification,[]LaunchTemplateCapacityReservationSpecificationObservation) - - // Customize the credit specification of the instance. See Credit - // Specification below for more details. - creditSpecification?: [...#LaunchTemplateCreditSpecificationObservation] @go(CreditSpecification,[]LaunchTemplateCreditSpecificationObservation) - - // Default Version of the launch template. - defaultVersion?: null | float64 @go(DefaultVersion,*float64) - - // Description of the launch template. - description?: null | string @go(Description,*string) - - // If true, enables EC2 Instance Stop Protection. - disableApiStop?: null | bool @go(DisableAPIStop,*bool) - - // If true, enables EC2 Instance - // Termination Protection - disableApiTermination?: null | bool @go(DisableAPITermination,*bool) - - // If true, the launched EC2 instance will be EBS-optimized. - ebsOptimized?: null | string @go(EBSOptimized,*string) - - // The elastic GPU to attach to the instance. See Elastic GPU - // below for more details. - elasticGpuSpecifications?: [...#ElasticGpuSpecificationsObservation] @go(ElasticGpuSpecifications,[]ElasticGpuSpecificationsObservation) - - // Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details. - elasticInferenceAccelerator?: [...#ElasticInferenceAcceleratorObservation] @go(ElasticInferenceAccelerator,[]ElasticInferenceAcceleratorObservation) - - // Enable Nitro Enclaves on launched instances. See Enclave Options below for more details. - enclaveOptions?: [...#LaunchTemplateEnclaveOptionsObservation] @go(EnclaveOptions,[]LaunchTemplateEnclaveOptionsObservation) - - // The hibernation options for the instance. See Hibernation Options below for more details. - hibernationOptions?: [...#HibernationOptionsObservation] @go(HibernationOptions,[]HibernationOptionsObservation) - - // The IAM Instance Profile to launch the instance with. See Instance Profile - // below for more details. - iamInstanceProfile?: [...#IAMInstanceProfileObservation] @go(IAMInstanceProfile,[]IAMInstanceProfileObservation) - - // The ID of the launch template. - id?: null | string @go(ID,*string) - - // The AMI from which to launch the instance. - imageId?: null | string @go(ImageID,*string) - - // Shutdown behavior for the instance. Can be stop or terminate. - // (Default: stop). - instanceInitiatedShutdownBehavior?: null | string @go(InstanceInitiatedShutdownBehavior,*string) - - // The market (purchasing) option for the instance. See Market Options - // below for details. - instanceMarketOptions?: [...#InstanceMarketOptionsObservation] @go(InstanceMarketOptions,[]InstanceMarketOptionsObservation) - - // The attribute requirements for the type of instance. If present then instance_type cannot be present. - instanceRequirements?: [...#InstanceRequirementsObservation] @go(InstanceRequirements,[]InstanceRequirementsObservation) - - // The type of the instance. If present then instance_requirements cannot be present. - instanceType?: null | string @go(InstanceType,*string) - - // The kernel ID. - kernelId?: null | string @go(KernelID,*string) - - // The key name to use for the instance. - keyName?: null | string @go(KeyName,*string) - - // The latest version of the launch template. - latestVersion?: null | float64 @go(LatestVersion,*float64) - - // A list of license specifications to associate with. See License Specification below for more details. - licenseSpecification?: [...#LicenseSpecificationObservation] @go(LicenseSpecification,[]LicenseSpecificationObservation) - - // The maintenance options for the instance. See Maintenance Options below for more details. - maintenanceOptions?: [...#LaunchTemplateMaintenanceOptionsObservation] @go(MaintenanceOptions,[]LaunchTemplateMaintenanceOptionsObservation) - - // Customize the metadata options for the instance. See Metadata Options below for more details. - metadataOptions?: [...#LaunchTemplateMetadataOptionsObservation] @go(MetadataOptions,[]LaunchTemplateMetadataOptionsObservation) - - // The monitoring option for the instance. See Monitoring below for more details. - monitoring?: [...#MonitoringObservation] @go(Monitoring,[]MonitoringObservation) - - // The name of the launch template. - name?: null | string @go(Name,*string) - - // Customize network interfaces to be attached at instance boot time. See Network - // Interfaces below for more details. - networkInterfaces?: [...#NetworkInterfacesObservation] @go(NetworkInterfaces,[]NetworkInterfacesObservation) - - // The placement of the instance. See Placement below for more details. - placement?: [...#PlacementObservation] @go(Placement,[]PlacementObservation) - - // The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details. - privateDnsNameOptions?: [...#LaunchTemplatePrivateDNSNameOptionsObservation] @go(PrivateDNSNameOptions,[]LaunchTemplatePrivateDNSNameOptionsObservation) - - // The ID of the RAM disk. - ramDiskId?: null | string @go(RAMDiskID,*string) - - // A list of security group names to associate with. If you are creating Instances in a VPC, use - // vpc_security_group_ids instead. - securityGroupNames?: [...null | string] @go(SecurityGroupNames,[]*string) - - // The tags to apply to the resources during launch. See Tag Specifications below for more details. - tagSpecifications?: [...#TagSpecificationsObservation] @go(TagSpecifications,[]TagSpecificationsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether to update Default Version each update. Conflicts with default_version. - updateDefaultVersion?: null | bool @go(UpdateDefaultVersion,*bool) - - // The base64-encoded user data to provide when launching the instance. - userData?: null | string @go(UserData,*string) - - // A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -#LaunchTemplateParameters_2: { - // Specify volumes to attach to the instance besides the volumes specified by the AMI. - // See Block Devices below for details. - // +kubebuilder:validation:Optional - blockDeviceMappings?: [...#BlockDeviceMappingsParameters] @go(BlockDeviceMappings,[]BlockDeviceMappingsParameters) - - // The CPU options for the instance. See CPU Options below for more details. - // +kubebuilder:validation:Optional - cpuOptions?: [...#LaunchTemplateCPUOptionsParameters] @go(CPUOptions,[]LaunchTemplateCPUOptionsParameters) - - // Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details. - // +kubebuilder:validation:Optional - capacityReservationSpecification?: [...#LaunchTemplateCapacityReservationSpecificationParameters] @go(CapacityReservationSpecification,[]LaunchTemplateCapacityReservationSpecificationParameters) - - // Customize the credit specification of the instance. See Credit - // Specification below for more details. - // +kubebuilder:validation:Optional - creditSpecification?: [...#LaunchTemplateCreditSpecificationParameters] @go(CreditSpecification,[]LaunchTemplateCreditSpecificationParameters) - - // Default Version of the launch template. - // +kubebuilder:validation:Optional - defaultVersion?: null | float64 @go(DefaultVersion,*float64) - - // Description of the launch template. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // If true, enables EC2 Instance Stop Protection. - // +kubebuilder:validation:Optional - disableApiStop?: null | bool @go(DisableAPIStop,*bool) - - // If true, enables EC2 Instance - // Termination Protection - // +kubebuilder:validation:Optional - disableApiTermination?: null | bool @go(DisableAPITermination,*bool) - - // If true, the launched EC2 instance will be EBS-optimized. - // +kubebuilder:validation:Optional - ebsOptimized?: null | string @go(EBSOptimized,*string) - - // The elastic GPU to attach to the instance. See Elastic GPU - // below for more details. - // +kubebuilder:validation:Optional - elasticGpuSpecifications?: [...#ElasticGpuSpecificationsParameters] @go(ElasticGpuSpecifications,[]ElasticGpuSpecificationsParameters) - - // Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details. - // +kubebuilder:validation:Optional - elasticInferenceAccelerator?: [...#ElasticInferenceAcceleratorParameters] @go(ElasticInferenceAccelerator,[]ElasticInferenceAcceleratorParameters) - - // Enable Nitro Enclaves on launched instances. See Enclave Options below for more details. - // +kubebuilder:validation:Optional - enclaveOptions?: [...#LaunchTemplateEnclaveOptionsParameters] @go(EnclaveOptions,[]LaunchTemplateEnclaveOptionsParameters) - - // The hibernation options for the instance. See Hibernation Options below for more details. - // +kubebuilder:validation:Optional - hibernationOptions?: [...#HibernationOptionsParameters] @go(HibernationOptions,[]HibernationOptionsParameters) - - // The IAM Instance Profile to launch the instance with. See Instance Profile - // below for more details. - // +kubebuilder:validation:Optional - iamInstanceProfile?: [...#IAMInstanceProfileParameters] @go(IAMInstanceProfile,[]IAMInstanceProfileParameters) - - // The AMI from which to launch the instance. - // +kubebuilder:validation:Optional - imageId?: null | string @go(ImageID,*string) - - // Shutdown behavior for the instance. Can be stop or terminate. - // (Default: stop). - // +kubebuilder:validation:Optional - instanceInitiatedShutdownBehavior?: null | string @go(InstanceInitiatedShutdownBehavior,*string) - - // The market (purchasing) option for the instance. See Market Options - // below for details. - // +kubebuilder:validation:Optional - instanceMarketOptions?: [...#InstanceMarketOptionsParameters] @go(InstanceMarketOptions,[]InstanceMarketOptionsParameters) - - // The attribute requirements for the type of instance. If present then instance_type cannot be present. - // +kubebuilder:validation:Optional - instanceRequirements?: [...#InstanceRequirementsParameters] @go(InstanceRequirements,[]InstanceRequirementsParameters) - - // The type of the instance. If present then instance_requirements cannot be present. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The kernel ID. - // +kubebuilder:validation:Optional - kernelId?: null | string @go(KernelID,*string) - - // The key name to use for the instance. - // +kubebuilder:validation:Optional - keyName?: null | string @go(KeyName,*string) - - // A list of license specifications to associate with. See License Specification below for more details. - // +kubebuilder:validation:Optional - licenseSpecification?: [...#LicenseSpecificationParameters] @go(LicenseSpecification,[]LicenseSpecificationParameters) - - // The maintenance options for the instance. See Maintenance Options below for more details. - // +kubebuilder:validation:Optional - maintenanceOptions?: [...#LaunchTemplateMaintenanceOptionsParameters] @go(MaintenanceOptions,[]LaunchTemplateMaintenanceOptionsParameters) - - // Customize the metadata options for the instance. See Metadata Options below for more details. - // +kubebuilder:validation:Optional - metadataOptions?: [...#LaunchTemplateMetadataOptionsParameters] @go(MetadataOptions,[]LaunchTemplateMetadataOptionsParameters) - - // The monitoring option for the instance. See Monitoring below for more details. - // +kubebuilder:validation:Optional - monitoring?: [...#MonitoringParameters] @go(Monitoring,[]MonitoringParameters) - - // The name of the launch template. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Customize network interfaces to be attached at instance boot time. See Network - // Interfaces below for more details. - // +kubebuilder:validation:Optional - networkInterfaces?: [...#NetworkInterfacesParameters] @go(NetworkInterfaces,[]NetworkInterfacesParameters) - - // The placement of the instance. See Placement below for more details. - // +kubebuilder:validation:Optional - placement?: [...#PlacementParameters] @go(Placement,[]PlacementParameters) - - // The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details. - // +kubebuilder:validation:Optional - privateDnsNameOptions?: [...#LaunchTemplatePrivateDNSNameOptionsParameters] @go(PrivateDNSNameOptions,[]LaunchTemplatePrivateDNSNameOptionsParameters) - - // The ID of the RAM disk. - // +kubebuilder:validation:Optional - ramDiskId?: null | string @go(RAMDiskID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to SecurityGroup to populate securityGroupNames. - // +kubebuilder:validation:Optional - securityGroupNameRefs?: [...v1.#Reference] @go(SecurityGroupNameRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup to populate securityGroupNames. - // +kubebuilder:validation:Optional - securityGroupNameSelector?: null | v1.#Selector @go(SecurityGroupNameSelector,*v1.Selector) - - // A list of security group names to associate with. If you are creating Instances in a VPC, use - // vpc_security_group_ids instead. - // +crossplane:generate:reference:type=SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupNameRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupNameSelector - // +kubebuilder:validation:Optional - securityGroupNames?: [...null | string] @go(SecurityGroupNames,[]*string) - - // The tags to apply to the resources during launch. See Tag Specifications below for more details. - // +kubebuilder:validation:Optional - tagSpecifications?: [...#TagSpecificationsParameters] @go(TagSpecifications,[]TagSpecificationsParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to update Default Version each update. Conflicts with default_version. - // +kubebuilder:validation:Optional - updateDefaultVersion?: null | bool @go(UpdateDefaultVersion,*bool) - - // The base64-encoded user data to provide when launching the instance. - // +kubebuilder:validation:Optional - userData?: null | string @go(UserData,*string) - - // References to SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdRefs?: [...v1.#Reference] @go(VPCSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdSelector?: null | v1.#Selector @go(VPCSecurityGroupIDSelector,*v1.Selector) - - // A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -#LaunchTemplatePrivateDNSNameOptionsInitParameters: { - // Indicates whether to respond to DNS queries for instance hostnames with DNS A records. - enableResourceNameDnsARecord?: null | bool @go(EnableResourceNameDNSARecord,*bool) - - // Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. - enableResourceNameDnsAaaaRecord?: null | bool @go(EnableResourceNameDNSAaaaRecord,*bool) - - // The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name and resource-name. - hostnameType?: null | string @go(HostnameType,*string) -} - -#LaunchTemplatePrivateDNSNameOptionsObservation: { - // Indicates whether to respond to DNS queries for instance hostnames with DNS A records. - enableResourceNameDnsARecord?: null | bool @go(EnableResourceNameDNSARecord,*bool) - - // Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. - enableResourceNameDnsAaaaRecord?: null | bool @go(EnableResourceNameDNSAaaaRecord,*bool) - - // The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name and resource-name. - hostnameType?: null | string @go(HostnameType,*string) -} - -#LaunchTemplatePrivateDNSNameOptionsParameters: { - // Indicates whether to respond to DNS queries for instance hostnames with DNS A records. - // +kubebuilder:validation:Optional - enableResourceNameDnsARecord?: null | bool @go(EnableResourceNameDNSARecord,*bool) - - // Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. - // +kubebuilder:validation:Optional - enableResourceNameDnsAaaaRecord?: null | bool @go(EnableResourceNameDNSAaaaRecord,*bool) - - // The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name and resource-name. - // +kubebuilder:validation:Optional - hostnameType?: null | string @go(HostnameType,*string) -} - -#LicenseSpecificationInitParameters: { - // ARN of the license configuration. - licenseConfigurationArn?: null | string @go(LicenseConfigurationArn,*string) -} - -#LicenseSpecificationObservation: { - // ARN of the license configuration. - licenseConfigurationArn?: null | string @go(LicenseConfigurationArn,*string) -} - -#LicenseSpecificationParameters: { - // ARN of the license configuration. - // +kubebuilder:validation:Optional - licenseConfigurationArn?: null | string @go(LicenseConfigurationArn,*string) -} - -#MemoryGibPerVcpuInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#MemoryGibPerVcpuObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#MemoryGibPerVcpuParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#MemoryMibInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#MemoryMibObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#MemoryMibParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#MonitoringInitParameters: { - // If true, the launched EC2 instance will have detailed monitoring enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#MonitoringObservation: { - // If true, the launched EC2 instance will have detailed monitoring enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#MonitoringParameters: { - // If true, the launched EC2 instance will have detailed monitoring enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#NetworkBandwidthGbpsInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#NetworkBandwidthGbpsObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#NetworkBandwidthGbpsParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#NetworkInterfaceCountInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#NetworkInterfaceCountObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#NetworkInterfaceCountParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#NetworkInterfacesInitParameters: { - // Associate a Carrier IP address with eth0 for a new network interface. - // Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. - // Boolean value, can be left unset. - associateCarrierIpAddress?: null | string @go(AssociateCarrierIPAddress,*string) - - // Associate a public ip address with the network interface. - // Boolean value, can be left unset. - associatePublicIpAddress?: null | string @go(AssociatePublicIPAddress,*string) - - // Whether the network interface should be destroyed on instance termination. - deleteOnTermination?: null | string @go(DeleteOnTermination,*string) - - // Description of the network interface. - description?: null | string @go(Description,*string) - - // The integer index of the network interface attachment. - deviceIndex?: null | float64 @go(DeviceIndex,*float64) - - // The number of secondary private IPv4 addresses to assign to a network interface. Conflicts with ipv4_addresses - ipv4AddressCount?: null | float64 @go(IPv4AddressCount,*float64) - - // One or more private IPv4 addresses to associate. Conflicts with ipv4_address_count - ipv4Addresses?: [...null | string] @go(IPv4Addresses,[]*string) - - // The number of IPv4 prefixes to be automatically assigned to the network interface. Conflicts with ipv4_prefixes - ipv4PrefixCount?: null | float64 @go(IPv4PrefixCount,*float64) - - // One or more IPv4 prefixes to be assigned to the network interface. Conflicts with ipv4_prefix_count - ipv4Prefixes?: [...null | string] @go(IPv4Prefixes,[]*string) - - // The number of IPv6 addresses to assign to a network interface. Conflicts with ipv6_addresses - ipv6AddressCount?: null | float64 @go(IPv6AddressCount,*float64) - - // One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Conflicts with ipv6_address_count - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - - // The number of IPv6 prefixes to be automatically assigned to the network interface. Conflicts with ipv6_prefixes - ipv6PrefixCount?: null | float64 @go(IPv6PrefixCount,*float64) - - // One or more IPv6 prefixes to be assigned to the network interface. Conflicts with ipv6_prefix_count - ipv6Prefixes?: [...null | string] @go(IPv6Prefixes,[]*string) - - // The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa. - interfaceType?: null | string @go(InterfaceType,*string) - - // The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0. - networkCardIndex?: null | float64 @go(NetworkCardIndex,*float64) - - // The primary private IPv4 address. - privateIpAddress?: null | string @go(PrivateIPAddress,*string) -} - -#NetworkInterfacesObservation: { - // Associate a Carrier IP address with eth0 for a new network interface. - // Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. - // Boolean value, can be left unset. - associateCarrierIpAddress?: null | string @go(AssociateCarrierIPAddress,*string) - - // Associate a public ip address with the network interface. - // Boolean value, can be left unset. - associatePublicIpAddress?: null | string @go(AssociatePublicIPAddress,*string) - - // Whether the network interface should be destroyed on instance termination. - deleteOnTermination?: null | string @go(DeleteOnTermination,*string) - - // Description of the network interface. - description?: null | string @go(Description,*string) - - // The integer index of the network interface attachment. - deviceIndex?: null | float64 @go(DeviceIndex,*float64) - - // The number of secondary private IPv4 addresses to assign to a network interface. Conflicts with ipv4_addresses - ipv4AddressCount?: null | float64 @go(IPv4AddressCount,*float64) - - // One or more private IPv4 addresses to associate. Conflicts with ipv4_address_count - ipv4Addresses?: [...null | string] @go(IPv4Addresses,[]*string) - - // The number of IPv4 prefixes to be automatically assigned to the network interface. Conflicts with ipv4_prefixes - ipv4PrefixCount?: null | float64 @go(IPv4PrefixCount,*float64) - - // One or more IPv4 prefixes to be assigned to the network interface. Conflicts with ipv4_prefix_count - ipv4Prefixes?: [...null | string] @go(IPv4Prefixes,[]*string) - - // The number of IPv6 addresses to assign to a network interface. Conflicts with ipv6_addresses - ipv6AddressCount?: null | float64 @go(IPv6AddressCount,*float64) - - // One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Conflicts with ipv6_address_count - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - - // The number of IPv6 prefixes to be automatically assigned to the network interface. Conflicts with ipv6_prefixes - ipv6PrefixCount?: null | float64 @go(IPv6PrefixCount,*float64) - - // One or more IPv6 prefixes to be assigned to the network interface. Conflicts with ipv6_prefix_count - ipv6Prefixes?: [...null | string] @go(IPv6Prefixes,[]*string) - - // The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa. - interfaceType?: null | string @go(InterfaceType,*string) - - // The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0. - networkCardIndex?: null | float64 @go(NetworkCardIndex,*float64) - - // The ID of the network interface to attach. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // The primary private IPv4 address. - privateIpAddress?: null | string @go(PrivateIPAddress,*string) - - // A list of security group IDs to associate. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The VPC Subnet ID to associate. - subnetId?: null | string @go(SubnetID,*string) -} - -#NetworkInterfacesParameters: { - // Associate a Carrier IP address with eth0 for a new network interface. - // Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. - // Boolean value, can be left unset. - // +kubebuilder:validation:Optional - associateCarrierIpAddress?: null | string @go(AssociateCarrierIPAddress,*string) - - // Associate a public ip address with the network interface. - // Boolean value, can be left unset. - // +kubebuilder:validation:Optional - associatePublicIpAddress?: null | string @go(AssociatePublicIPAddress,*string) - - // Whether the network interface should be destroyed on instance termination. - // +kubebuilder:validation:Optional - deleteOnTermination?: null | string @go(DeleteOnTermination,*string) - - // Description of the network interface. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The integer index of the network interface attachment. - // +kubebuilder:validation:Optional - deviceIndex?: null | float64 @go(DeviceIndex,*float64) - - // The number of secondary private IPv4 addresses to assign to a network interface. Conflicts with ipv4_addresses - // +kubebuilder:validation:Optional - ipv4AddressCount?: null | float64 @go(IPv4AddressCount,*float64) - - // One or more private IPv4 addresses to associate. Conflicts with ipv4_address_count - // +kubebuilder:validation:Optional - ipv4Addresses?: [...null | string] @go(IPv4Addresses,[]*string) - - // The number of IPv4 prefixes to be automatically assigned to the network interface. Conflicts with ipv4_prefixes - // +kubebuilder:validation:Optional - ipv4PrefixCount?: null | float64 @go(IPv4PrefixCount,*float64) - - // One or more IPv4 prefixes to be assigned to the network interface. Conflicts with ipv4_prefix_count - // +kubebuilder:validation:Optional - ipv4Prefixes?: [...null | string] @go(IPv4Prefixes,[]*string) - - // The number of IPv6 addresses to assign to a network interface. Conflicts with ipv6_addresses - // +kubebuilder:validation:Optional - ipv6AddressCount?: null | float64 @go(IPv6AddressCount,*float64) - - // One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Conflicts with ipv6_address_count - // +kubebuilder:validation:Optional - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - - // The number of IPv6 prefixes to be automatically assigned to the network interface. Conflicts with ipv6_prefixes - // +kubebuilder:validation:Optional - ipv6PrefixCount?: null | float64 @go(IPv6PrefixCount,*float64) - - // One or more IPv6 prefixes to be assigned to the network interface. Conflicts with ipv6_prefix_count - // +kubebuilder:validation:Optional - ipv6Prefixes?: [...null | string] @go(IPv6Prefixes,[]*string) - - // The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa. - // +kubebuilder:validation:Optional - interfaceType?: null | string @go(InterfaceType,*string) - - // The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0. - // +kubebuilder:validation:Optional - networkCardIndex?: null | float64 @go(NetworkCardIndex,*float64) - - // The ID of the network interface to attach. - // +crossplane:generate:reference:type=NetworkInterface - // +kubebuilder:validation:Optional - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // Reference to a NetworkInterface to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdRef?: null | v1.#Reference @go(NetworkInterfaceIDRef,*v1.Reference) - - // Selector for a NetworkInterface to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdSelector?: null | v1.#Selector @go(NetworkInterfaceIDSelector,*v1.Selector) - - // The primary private IPv4 address. - // +kubebuilder:validation:Optional - privateIpAddress?: null | string @go(PrivateIPAddress,*string) - - // References to SecurityGroup to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupRefs?: [...v1.#Reference] @go(SecurityGroupRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupSelector?: null | v1.#Selector @go(SecurityGroupSelector,*v1.Selector) - - // A list of security group IDs to associate. - // +crossplane:generate:reference:type=SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupSelector - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The VPC Subnet ID to associate. - // +crossplane:generate:reference:type=Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) -} - -#PlacementInitParameters: { - // The affinity setting for an instance on a Dedicated Host. - affinity?: null | string @go(Affinity,*string) - - // The Availability Zone for the instance. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The name of the placement group for the instance. - groupName?: null | string @go(GroupName,*string) - - // The ID of the Dedicated Host for the instance. - hostId?: null | string @go(HostID,*string) - - // The ARN of the Host Resource Group in which to launch instances. - hostResourceGroupArn?: null | string @go(HostResourceGroupArn,*string) - - // The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition. - partitionNumber?: null | float64 @go(PartitionNumber,*float64) - - // Reserved for future use. - spreadDomain?: null | string @go(SpreadDomain,*string) - - // The tenancy of the instance (if the instance is running in a VPC). Can be default, dedicated, or host. - tenancy?: null | string @go(Tenancy,*string) -} - -#PlacementObservation: { - // The affinity setting for an instance on a Dedicated Host. - affinity?: null | string @go(Affinity,*string) - - // The Availability Zone for the instance. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The name of the placement group for the instance. - groupName?: null | string @go(GroupName,*string) - - // The ID of the Dedicated Host for the instance. - hostId?: null | string @go(HostID,*string) - - // The ARN of the Host Resource Group in which to launch instances. - hostResourceGroupArn?: null | string @go(HostResourceGroupArn,*string) - - // The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition. - partitionNumber?: null | float64 @go(PartitionNumber,*float64) - - // Reserved for future use. - spreadDomain?: null | string @go(SpreadDomain,*string) - - // The tenancy of the instance (if the instance is running in a VPC). Can be default, dedicated, or host. - tenancy?: null | string @go(Tenancy,*string) -} - -#PlacementParameters: { - // The affinity setting for an instance on a Dedicated Host. - // +kubebuilder:validation:Optional - affinity?: null | string @go(Affinity,*string) - - // The Availability Zone for the instance. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The name of the placement group for the instance. - // +kubebuilder:validation:Optional - groupName?: null | string @go(GroupName,*string) - - // The ID of the Dedicated Host for the instance. - // +kubebuilder:validation:Optional - hostId?: null | string @go(HostID,*string) - - // The ARN of the Host Resource Group in which to launch instances. - // +kubebuilder:validation:Optional - hostResourceGroupArn?: null | string @go(HostResourceGroupArn,*string) - - // The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition. - // +kubebuilder:validation:Optional - partitionNumber?: null | float64 @go(PartitionNumber,*float64) - - // Reserved for future use. - // +kubebuilder:validation:Optional - spreadDomain?: null | string @go(SpreadDomain,*string) - - // The tenancy of the instance (if the instance is running in a VPC). Can be default, dedicated, or host. - // +kubebuilder:validation:Optional - tenancy?: null | string @go(Tenancy,*string) -} - -#SpotOptionsInitParameters: { - // The required duration in minutes. This value must be a multiple of 60. - blockDurationMinutes?: null | float64 @go(BlockDurationMinutes,*float64) - - // The behavior when a Spot Instance is interrupted. Can be hibernate, - // stop, or terminate. (Default: terminate). - instanceInterruptionBehavior?: null | string @go(InstanceInterruptionBehavior,*string) - - // The maximum hourly price you're willing to pay for the Spot Instances. - maxPrice?: null | string @go(MaxPrice,*string) - - // The Spot Instance request type. Can be one-time, or persistent. - spotInstanceType?: null | string @go(SpotInstanceType,*string) - - // The end date of the request. - validUntil?: null | string @go(ValidUntil,*string) -} - -#SpotOptionsObservation: { - // The required duration in minutes. This value must be a multiple of 60. - blockDurationMinutes?: null | float64 @go(BlockDurationMinutes,*float64) - - // The behavior when a Spot Instance is interrupted. Can be hibernate, - // stop, or terminate. (Default: terminate). - instanceInterruptionBehavior?: null | string @go(InstanceInterruptionBehavior,*string) - - // The maximum hourly price you're willing to pay for the Spot Instances. - maxPrice?: null | string @go(MaxPrice,*string) - - // The Spot Instance request type. Can be one-time, or persistent. - spotInstanceType?: null | string @go(SpotInstanceType,*string) - - // The end date of the request. - validUntil?: null | string @go(ValidUntil,*string) -} - -#SpotOptionsParameters: { - // The required duration in minutes. This value must be a multiple of 60. - // +kubebuilder:validation:Optional - blockDurationMinutes?: null | float64 @go(BlockDurationMinutes,*float64) - - // The behavior when a Spot Instance is interrupted. Can be hibernate, - // stop, or terminate. (Default: terminate). - // +kubebuilder:validation:Optional - instanceInterruptionBehavior?: null | string @go(InstanceInterruptionBehavior,*string) - - // The maximum hourly price you're willing to pay for the Spot Instances. - // +kubebuilder:validation:Optional - maxPrice?: null | string @go(MaxPrice,*string) - - // The Spot Instance request type. Can be one-time, or persistent. - // +kubebuilder:validation:Optional - spotInstanceType?: null | string @go(SpotInstanceType,*string) - - // The end date of the request. - // +kubebuilder:validation:Optional - validUntil?: null | string @go(ValidUntil,*string) -} - -#TagSpecificationsInitParameters: { - // The type of resource to tag. - resourceType?: null | string @go(ResourceType,*string) - - // A map of tags to assign to the resource. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TagSpecificationsObservation: { - // The type of resource to tag. - resourceType?: null | string @go(ResourceType,*string) - - // A map of tags to assign to the resource. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TagSpecificationsParameters: { - // The type of resource to tag. - // +kubebuilder:validation:Optional - resourceType?: null | string @go(ResourceType,*string) - - // A map of tags to assign to the resource. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TotalLocalStorageGbInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#TotalLocalStorageGbObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#TotalLocalStorageGbParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#VcpuCountInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#VcpuCountObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#VcpuCountParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -// LaunchTemplateSpec defines the desired state of LaunchTemplate -#LaunchTemplateSpec: { - v1.#ResourceSpec - forProvider: #LaunchTemplateParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LaunchTemplateInitParameters_2 @go(InitProvider) -} - -// LaunchTemplateStatus defines the observed state of LaunchTemplate. -#LaunchTemplateStatus: { - v1.#ResourceStatus - atProvider?: #LaunchTemplateObservation_2 @go(AtProvider) -} - -// LaunchTemplate is the Schema for the LaunchTemplates API. Provides an EC2 launch template resource. Can be used to create instances or auto scaling groups. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LaunchTemplate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #LaunchTemplateSpec @go(Spec) - status?: #LaunchTemplateStatus @go(Status) -} - -// LaunchTemplateList contains a list of LaunchTemplates -#LaunchTemplateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LaunchTemplate] @go(Items,[]LaunchTemplate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_mainroutetableassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_mainroutetableassociation_types_go_gen.cue deleted file mode 100644 index fcf0f92..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_mainroutetableassociation_types_go_gen.cue +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MainRouteTableAssociationInitParameters: { -} - -#MainRouteTableAssociationObservation: { - // The ID of the Route Table Association - id?: null | string @go(ID,*string) - - // Used internally, see Notes below - originalRouteTableId?: null | string @go(OriginalRouteTableID,*string) - - // The ID of the Route Table to set as the new - // main route table for the target VPC - routeTableId?: null | string @go(RouteTableID,*string) - - // The ID of the VPC whose main route table should be set - vpcId?: null | string @go(VPCID,*string) -} - -#MainRouteTableAssociationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the Route Table to set as the new - // main route table for the target VPC - // +crossplane:generate:reference:type=RouteTable - // +kubebuilder:validation:Optional - routeTableId?: null | string @go(RouteTableID,*string) - - // Reference to a RouteTable to populate routeTableId. - // +kubebuilder:validation:Optional - routeTableIdRef?: null | v1.#Reference @go(RouteTableIDRef,*v1.Reference) - - // Selector for a RouteTable to populate routeTableId. - // +kubebuilder:validation:Optional - routeTableIdSelector?: null | v1.#Selector @go(RouteTableIDSelector,*v1.Selector) - - // The ID of the VPC whose main route table should be set - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// MainRouteTableAssociationSpec defines the desired state of MainRouteTableAssociation -#MainRouteTableAssociationSpec: { - v1.#ResourceSpec - forProvider: #MainRouteTableAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MainRouteTableAssociationInitParameters @go(InitProvider) -} - -// MainRouteTableAssociationStatus defines the observed state of MainRouteTableAssociation. -#MainRouteTableAssociationStatus: { - v1.#ResourceStatus - atProvider?: #MainRouteTableAssociationObservation @go(AtProvider) -} - -// MainRouteTableAssociation is the Schema for the MainRouteTableAssociations API. Provides a resource for managing the main routing table of a VPC. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MainRouteTableAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #MainRouteTableAssociationSpec @go(Spec) - status?: #MainRouteTableAssociationStatus @go(Status) -} - -// MainRouteTableAssociationList contains a list of MainRouteTableAssociations -#MainRouteTableAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MainRouteTableAssociation] @go(Items,[]MainRouteTableAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_managedprefixlist_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_managedprefixlist_types_go_gen.cue deleted file mode 100644 index 2fad30e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_managedprefixlist_types_go_gen.cue +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EntryInitParameters: { - // Description of this entry. Due to API limitations, updating only the description of an existing entry requires temporarily removing and re-adding the entry. - description?: null | string @go(Description,*string) -} - -#EntryObservation: { - // CIDR block of this entry. - cidr?: null | string @go(Cidr,*string) - - // Description of this entry. Due to API limitations, updating only the description of an existing entry requires temporarily removing and re-adding the entry. - description?: null | string @go(Description,*string) -} - -#EntryParameters: { - // CIDR block of this entry. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCIPv4CidrBlockAssociation - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("cidr_block",false) - // +kubebuilder:validation:Optional - cidr?: null | string @go(Cidr,*string) - - // Reference to a VPCIPv4CidrBlockAssociation in ec2 to populate cidr. - // +kubebuilder:validation:Optional - cidrRef?: null | v1.#Reference @go(CidrRef,*v1.Reference) - - // Selector for a VPCIPv4CidrBlockAssociation in ec2 to populate cidr. - // +kubebuilder:validation:Optional - cidrSelector?: null | v1.#Selector @go(CidrSelector,*v1.Selector) - - // Description of this entry. Due to API limitations, updating only the description of an existing entry requires temporarily removing and re-adding the entry. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) -} - -#ManagedPrefixListInitParameters: { - // Address family (IPv4 or IPv6) of this prefix list. - addressFamily?: null | string @go(AddressFamily,*string) - - // Configuration block for prefix list entry. Detailed below. Different entries may have overlapping CIDR blocks, but a particular CIDR should not be duplicated. - entry?: [...#EntryInitParameters] @go(Entry,[]EntryInitParameters) - - // Maximum number of entries that this prefix list can contain. - maxEntries?: null | float64 @go(MaxEntries,*float64) - - // Name of this resource. The name must not start with com.amazonaws. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ManagedPrefixListObservation: { - // Address family (IPv4 or IPv6) of this prefix list. - addressFamily?: null | string @go(AddressFamily,*string) - - // ARN of the prefix list. - arn?: null | string @go(Arn,*string) - - // Configuration block for prefix list entry. Detailed below. Different entries may have overlapping CIDR blocks, but a particular CIDR should not be duplicated. - entry?: [...#EntryObservation] @go(Entry,[]EntryObservation) - - // ID of the prefix list. - id?: null | string @go(ID,*string) - - // Maximum number of entries that this prefix list can contain. - maxEntries?: null | float64 @go(MaxEntries,*float64) - - // Name of this resource. The name must not start with com.amazonaws. - name?: null | string @go(Name,*string) - - // ID of the AWS account that owns this prefix list. - ownerId?: null | string @go(OwnerID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Latest version of this prefix list. - version?: null | float64 @go(Version,*float64) -} - -#ManagedPrefixListParameters: { - // Address family (IPv4 or IPv6) of this prefix list. - // +kubebuilder:validation:Optional - addressFamily?: null | string @go(AddressFamily,*string) - - // Configuration block for prefix list entry. Detailed below. Different entries may have overlapping CIDR blocks, but a particular CIDR should not be duplicated. - // +kubebuilder:validation:Optional - entry?: [...#EntryParameters] @go(Entry,[]EntryParameters) - - // Maximum number of entries that this prefix list can contain. - // +kubebuilder:validation:Optional - maxEntries?: null | float64 @go(MaxEntries,*float64) - - // Name of this resource. The name must not start with com.amazonaws. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ManagedPrefixListSpec defines the desired state of ManagedPrefixList -#ManagedPrefixListSpec: { - v1.#ResourceSpec - forProvider: #ManagedPrefixListParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ManagedPrefixListInitParameters @go(InitProvider) -} - -// ManagedPrefixListStatus defines the observed state of ManagedPrefixList. -#ManagedPrefixListStatus: { - v1.#ResourceStatus - atProvider?: #ManagedPrefixListObservation @go(AtProvider) -} - -// ManagedPrefixList is the Schema for the ManagedPrefixLists API. Provides a managed prefix list resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ManagedPrefixList: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.addressFamily) || (has(self.initProvider) && has(self.initProvider.addressFamily))",message="spec.forProvider.addressFamily is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.maxEntries) || (has(self.initProvider) && has(self.initProvider.maxEntries))",message="spec.forProvider.maxEntries is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ManagedPrefixListSpec @go(Spec) - status?: #ManagedPrefixListStatus @go(Status) -} - -// ManagedPrefixListList contains a list of ManagedPrefixLists -#ManagedPrefixListList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ManagedPrefixList] @go(Items,[]ManagedPrefixList) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_managedprefixlistentry_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_managedprefixlistentry_types_go_gen.cue deleted file mode 100644 index 2bcff31..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_managedprefixlistentry_types_go_gen.cue +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ManagedPrefixListEntryInitParameters: { - // Description of this entry. Due to API limitations, updating only the description of an entry requires recreating the entry. - description?: null | string @go(Description,*string) -} - -#ManagedPrefixListEntryObservation: { - // CIDR block of this entry. - cidr?: null | string @go(Cidr,*string) - - // Description of this entry. Due to API limitations, updating only the description of an entry requires recreating the entry. - description?: null | string @go(Description,*string) - - // ID of the managed prefix list entry. - id?: null | string @go(ID,*string) - - // CIDR block of this entry. - prefixListId?: null | string @go(PrefixListID,*string) -} - -#ManagedPrefixListEntryParameters: { - // CIDR block of this entry. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("cidr_block",false) - // +kubebuilder:validation:Optional - cidr?: null | string @go(Cidr,*string) - - // Reference to a VPC in ec2 to populate cidr. - // +kubebuilder:validation:Optional - cidrRef?: null | v1.#Reference @go(CidrRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate cidr. - // +kubebuilder:validation:Optional - cidrSelector?: null | v1.#Selector @go(CidrSelector,*v1.Selector) - - // Description of this entry. Due to API limitations, updating only the description of an entry requires recreating the entry. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // CIDR block of this entry. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.ManagedPrefixList - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - prefixListId?: null | string @go(PrefixListID,*string) - - // Reference to a ManagedPrefixList in ec2 to populate prefixListId. - // +kubebuilder:validation:Optional - prefixListIdRef?: null | v1.#Reference @go(PrefixListIDRef,*v1.Reference) - - // Selector for a ManagedPrefixList in ec2 to populate prefixListId. - // +kubebuilder:validation:Optional - prefixListIdSelector?: null | v1.#Selector @go(PrefixListIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ManagedPrefixListEntrySpec defines the desired state of ManagedPrefixListEntry -#ManagedPrefixListEntrySpec: { - v1.#ResourceSpec - forProvider: #ManagedPrefixListEntryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ManagedPrefixListEntryInitParameters @go(InitProvider) -} - -// ManagedPrefixListEntryStatus defines the observed state of ManagedPrefixListEntry. -#ManagedPrefixListEntryStatus: { - v1.#ResourceStatus - atProvider?: #ManagedPrefixListEntryObservation @go(AtProvider) -} - -// ManagedPrefixListEntry is the Schema for the ManagedPrefixListEntrys API. Provides a managed prefix list entry resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ManagedPrefixListEntry: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ManagedPrefixListEntrySpec @go(Spec) - status?: #ManagedPrefixListEntryStatus @go(Status) -} - -// ManagedPrefixListEntryList contains a list of ManagedPrefixListEntrys -#ManagedPrefixListEntryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ManagedPrefixListEntry] @go(Items,[]ManagedPrefixListEntry) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_natgateway_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_natgateway_types_go_gen.cue deleted file mode 100644 index 12979b1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_natgateway_types_go_gen.cue +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NATGatewayInitParameters_2: { - // Connectivity type for the gateway. Valid values are private and public. Defaults to public. - connectivityType?: null | string @go(ConnectivityType,*string) - - // The private IPv4 address to assign to the NAT gateway. If you don't provide an address, a private IPv4 address will be automatically assigned. - privateIp?: null | string @go(PrivateIP,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#NATGatewayObservation_2: { - // The Allocation ID of the Elastic IP address for the gateway. Required for connectivity_type of public. - allocationId?: null | string @go(AllocationID,*string) - - // The association ID of the Elastic IP address that's associated with the NAT gateway. Only available when connectivity_type is public. - associationId?: null | string @go(AssociationID,*string) - - // Connectivity type for the gateway. Valid values are private and public. Defaults to public. - connectivityType?: null | string @go(ConnectivityType,*string) - - // The ID of the NAT Gateway. - id?: null | string @go(ID,*string) - - // The ID of the network interface associated with the NAT gateway. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // The private IPv4 address to assign to the NAT gateway. If you don't provide an address, a private IPv4 address will be automatically assigned. - privateIp?: null | string @go(PrivateIP,*string) - - // The Elastic IP address associated with the NAT gateway. - publicIp?: null | string @go(PublicIP,*string) - - // The Subnet ID of the subnet in which to place the gateway. - subnetId?: null | string @go(SubnetID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#NATGatewayParameters_2: { - // The Allocation ID of the Elastic IP address for the gateway. Required for connectivity_type of public. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.EIP - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - allocationId?: null | string @go(AllocationID,*string) - - // Reference to a EIP in ec2 to populate allocationId. - // +kubebuilder:validation:Optional - allocationIdRef?: null | v1.#Reference @go(AllocationIDRef,*v1.Reference) - - // Selector for a EIP in ec2 to populate allocationId. - // +kubebuilder:validation:Optional - allocationIdSelector?: null | v1.#Selector @go(AllocationIDSelector,*v1.Selector) - - // Connectivity type for the gateway. Valid values are private and public. Defaults to public. - // +kubebuilder:validation:Optional - connectivityType?: null | string @go(ConnectivityType,*string) - - // The private IPv4 address to assign to the NAT gateway. If you don't provide an address, a private IPv4 address will be automatically assigned. - // +kubebuilder:validation:Optional - privateIp?: null | string @go(PrivateIP,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Subnet ID of the subnet in which to place the gateway. - // +crossplane:generate:reference:type=Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// NATGatewaySpec defines the desired state of NATGateway -#NATGatewaySpec: { - v1.#ResourceSpec - forProvider: #NATGatewayParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NATGatewayInitParameters_2 @go(InitProvider) -} - -// NATGatewayStatus defines the observed state of NATGateway. -#NATGatewayStatus: { - v1.#ResourceStatus - atProvider?: #NATGatewayObservation_2 @go(AtProvider) -} - -// NATGateway is the Schema for the NATGateways API. Provides a resource to create a VPC NAT Gateway. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NATGateway: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #NATGatewaySpec @go(Spec) - status?: #NATGatewayStatus @go(Status) -} - -// NATGatewayList contains a list of NATGateways -#NATGatewayList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NATGateway] @go(Items,[]NATGateway) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkacl_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkacl_types_go_gen.cue deleted file mode 100644 index 4091294..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkacl_types_go_gen.cue +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NetworkACLEgressInitParameters: { -} - -#NetworkACLEgressObservation: { - // The action to take. - action?: null | string @go(Action,*string) - - // The CIDR block to match. This must be a - // valid network mask. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The from port to match. - fromPort?: null | float64 @go(FromPort,*float64) - - // The IPv6 CIDR block. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // The ICMP type code to be used. Default 0. - icmpCode?: null | float64 @go(IcmpCode,*float64) - - // The ICMP type to be used. Default 0. - icmpType?: null | float64 @go(IcmpType,*float64) - - // The protocol to match. If using the -1 'all' - // protocol, you must specify a from and to port of 0. - protocol?: null | string @go(Protocol,*string) - - // The rule number. Used for ordering. - ruleNo?: null | float64 @go(RuleNo,*float64) - - // The to port to match. - toPort?: null | float64 @go(ToPort,*float64) -} - -#NetworkACLEgressParameters: { -} - -#NetworkACLIngressInitParameters: { -} - -#NetworkACLIngressObservation: { - // The action to take. - action?: null | string @go(Action,*string) - - // The CIDR block to match. This must be a - // valid network mask. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The from port to match. - fromPort?: null | float64 @go(FromPort,*float64) - - // The IPv6 CIDR block. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // The ICMP type code to be used. Default 0. - icmpCode?: null | float64 @go(IcmpCode,*float64) - - // The ICMP type to be used. Default 0. - icmpType?: null | float64 @go(IcmpType,*float64) - - // The protocol to match. If using the -1 'all' - // protocol, you must specify a from and to port of 0. - protocol?: null | string @go(Protocol,*string) - - // The rule number. Used for ordering. - ruleNo?: null | float64 @go(RuleNo,*float64) - - // The to port to match. - toPort?: null | float64 @go(ToPort,*float64) -} - -#NetworkACLIngressParameters: { -} - -#NetworkACLInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#NetworkACLObservation: { - // The ARN of the network ACL - arn?: null | string @go(Arn,*string) - - // Specifies an egress rule. Parameters defined below. - // This argument is processed in attribute-as-blocks mode. - egress?: [...#NetworkACLEgressObservation] @go(Egress,[]NetworkACLEgressObservation) - - // The ID of the network ACL - id?: null | string @go(ID,*string) - - // Specifies an ingress rule. Parameters defined below. - // This argument is processed in attribute-as-blocks mode. - ingress?: [...#NetworkACLIngressObservation] @go(Ingress,[]NetworkACLIngressObservation) - - // The ID of the AWS account that owns the network ACL. - ownerId?: null | string @go(OwnerID,*string) - - // A list of Subnet IDs to apply the ACL to - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the associated VPC. - vpcId?: null | string @go(VPCID,*string) -} - -#NetworkACLParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // A list of Subnet IDs to apply the ACL to - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the associated VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// NetworkACLSpec defines the desired state of NetworkACL -#NetworkACLSpec: { - v1.#ResourceSpec - forProvider: #NetworkACLParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NetworkACLInitParameters @go(InitProvider) -} - -// NetworkACLStatus defines the observed state of NetworkACL. -#NetworkACLStatus: { - v1.#ResourceStatus - atProvider?: #NetworkACLObservation @go(AtProvider) -} - -// NetworkACL is the Schema for the NetworkACLs API. Provides an network ACL resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NetworkACL: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #NetworkACLSpec @go(Spec) - status?: #NetworkACLStatus @go(Status) -} - -// NetworkACLList contains a list of NetworkACLs -#NetworkACLList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NetworkACL] @go(Items,[]NetworkACL) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkaclrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkaclrule_types_go_gen.cue deleted file mode 100644 index 130d733..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkaclrule_types_go_gen.cue +++ /dev/null @@ -1,190 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NetworkACLRuleInitParameters: { - // The network range to allow or deny, in CIDR notation (for example 172.16.0.0/24 ). - cidrBlock?: null | string @go(CidrBlock,*string) - - // Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet). Default false. - egress?: null | bool @go(Egress,*bool) - - // The from port to match. - fromPort?: null | float64 @go(FromPort,*float64) - - // The IPv6 CIDR block to allow or deny. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // ICMP protocol: The ICMP code. Required if specifying ICMP for the protocolE.g., -1 - icmpCode?: null | float64 @go(IcmpCode,*float64) - - // ICMP protocol: The ICMP type. Required if specifying ICMP for the protocolE.g., -1 - icmpType?: null | float64 @go(IcmpType,*float64) - - // The protocol. A value of -1 means all protocols. - protocol?: null | string @go(Protocol,*string) - - // Indicates whether to allow or deny the traffic that matches the rule. Accepted values: allow | deny - ruleAction?: null | string @go(RuleAction,*string) - - // The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number. - ruleNumber?: null | float64 @go(RuleNumber,*float64) - - // The to port to match. - toPort?: null | float64 @go(ToPort,*float64) -} - -#NetworkACLRuleObservation: { - // The network range to allow or deny, in CIDR notation (for example 172.16.0.0/24 ). - cidrBlock?: null | string @go(CidrBlock,*string) - - // Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet). Default false. - egress?: null | bool @go(Egress,*bool) - - // The from port to match. - fromPort?: null | float64 @go(FromPort,*float64) - - // The ID of the network ACL Rule - id?: null | string @go(ID,*string) - - // The IPv6 CIDR block to allow or deny. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // ICMP protocol: The ICMP code. Required if specifying ICMP for the protocolE.g., -1 - icmpCode?: null | float64 @go(IcmpCode,*float64) - - // ICMP protocol: The ICMP type. Required if specifying ICMP for the protocolE.g., -1 - icmpType?: null | float64 @go(IcmpType,*float64) - - // The ID of the network ACL. - networkAclId?: null | string @go(NetworkACLID,*string) - - // The protocol. A value of -1 means all protocols. - protocol?: null | string @go(Protocol,*string) - - // Indicates whether to allow or deny the traffic that matches the rule. Accepted values: allow | deny - ruleAction?: null | string @go(RuleAction,*string) - - // The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number. - ruleNumber?: null | float64 @go(RuleNumber,*float64) - - // The to port to match. - toPort?: null | float64 @go(ToPort,*float64) -} - -#NetworkACLRuleParameters: { - // The network range to allow or deny, in CIDR notation (for example 172.16.0.0/24 ). - // +kubebuilder:validation:Optional - cidrBlock?: null | string @go(CidrBlock,*string) - - // Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet). Default false. - // +kubebuilder:validation:Optional - egress?: null | bool @go(Egress,*bool) - - // The from port to match. - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // The IPv6 CIDR block to allow or deny. - // +kubebuilder:validation:Optional - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // ICMP protocol: The ICMP code. Required if specifying ICMP for the protocolE.g., -1 - // +kubebuilder:validation:Optional - icmpCode?: null | float64 @go(IcmpCode,*float64) - - // ICMP protocol: The ICMP type. Required if specifying ICMP for the protocolE.g., -1 - // +kubebuilder:validation:Optional - icmpType?: null | float64 @go(IcmpType,*float64) - - // The ID of the network ACL. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.NetworkACL - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - networkAclId?: null | string @go(NetworkACLID,*string) - - // Reference to a NetworkACL in ec2 to populate networkAclId. - // +kubebuilder:validation:Optional - networkAclIdRef?: null | v1.#Reference @go(NetworkACLIDRef,*v1.Reference) - - // Selector for a NetworkACL in ec2 to populate networkAclId. - // +kubebuilder:validation:Optional - networkAclIdSelector?: null | v1.#Selector @go(NetworkACLIDSelector,*v1.Selector) - - // The protocol. A value of -1 means all protocols. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Indicates whether to allow or deny the traffic that matches the rule. Accepted values: allow | deny - // +kubebuilder:validation:Optional - ruleAction?: null | string @go(RuleAction,*string) - - // The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number. - // +kubebuilder:validation:Optional - ruleNumber?: null | float64 @go(RuleNumber,*float64) - - // The to port to match. - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -// NetworkACLRuleSpec defines the desired state of NetworkACLRule -#NetworkACLRuleSpec: { - v1.#ResourceSpec - forProvider: #NetworkACLRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NetworkACLRuleInitParameters @go(InitProvider) -} - -// NetworkACLRuleStatus defines the observed state of NetworkACLRule. -#NetworkACLRuleStatus: { - v1.#ResourceStatus - atProvider?: #NetworkACLRuleObservation @go(AtProvider) -} - -// NetworkACLRule is the Schema for the NetworkACLRules API. Provides an network ACL Rule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NetworkACLRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.protocol) || (has(self.initProvider) && has(self.initProvider.protocol))",message="spec.forProvider.protocol is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ruleAction) || (has(self.initProvider) && has(self.initProvider.ruleAction))",message="spec.forProvider.ruleAction is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ruleNumber) || (has(self.initProvider) && has(self.initProvider.ruleNumber))",message="spec.forProvider.ruleNumber is a required parameter" - spec: #NetworkACLRuleSpec @go(Spec) - status?: #NetworkACLRuleStatus @go(Status) -} - -// NetworkACLRuleList contains a list of NetworkACLRules -#NetworkACLRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NetworkACLRule] @go(Items,[]NetworkACLRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinsightsanalysis_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinsightsanalysis_types_go_gen.cue deleted file mode 100644 index 133f5fc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinsightsanalysis_types_go_gen.cue +++ /dev/null @@ -1,1454 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ACLInitParameters: { -} - -#ACLObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ACLParameters: { -} - -#ACLRuleInitParameters: { -} - -#ACLRuleObservation: { - cidr?: null | string @go(Cidr,*string) - egress?: null | bool @go(Egress,*bool) - portRange?: [...#PortRangeObservation] @go(PortRange,[]PortRangeObservation) - protocol?: null | string @go(Protocol,*string) - ruleAction?: null | string @go(RuleAction,*string) - ruleNumber?: null | float64 @go(RuleNumber,*float64) -} - -#ACLRuleParameters: { -} - -#ACLRulePortRangeInitParameters: { -} - -#ACLRulePortRangeObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#ACLRulePortRangeParameters: { -} - -#AdditionalDetailsComponentInitParameters: { -} - -#AdditionalDetailsComponentObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#AdditionalDetailsComponentParameters: { -} - -#AdditionalDetailsInitParameters: { -} - -#AdditionalDetailsObservation: { - additionalDetailType?: null | string @go(AdditionalDetailType,*string) - component?: [...#AdditionalDetailsComponentObservation] @go(Component,[]AdditionalDetailsComponentObservation) -} - -#AdditionalDetailsParameters: { -} - -#AlternatePathHintsInitParameters: { -} - -#AlternatePathHintsObservation: { - // The Amazon Resource Name (ARN) of the component. - componentArn?: null | string @go(ComponentArn,*string) - - // The ID of the component. - componentId?: null | string @go(ComponentID,*string) -} - -#AlternatePathHintsParameters: { -} - -#AttachedToInitParameters: { -} - -#AttachedToObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#AttachedToParameters: { -} - -#ClassicLoadBalancerListenerInitParameters: { -} - -#ClassicLoadBalancerListenerObservation: { - instancePort?: null | float64 @go(InstancePort,*float64) - loadBalancerPort?: null | float64 @go(LoadBalancerPort,*float64) -} - -#ClassicLoadBalancerListenerParameters: { -} - -#ComponentInitParameters: { -} - -#ComponentObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ComponentParameters: { -} - -#DestinationInitParameters: { -} - -#DestinationObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#DestinationParameters: { -} - -#DestinationPortRangesInitParameters: { -} - -#DestinationPortRangesObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#DestinationPortRangesParameters: { -} - -#DestinationVPCInitParameters: { -} - -#DestinationVPCObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#DestinationVPCParameters: { -} - -#ElasticLoadBalancerListenerInitParameters: { -} - -#ElasticLoadBalancerListenerObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ElasticLoadBalancerListenerParameters: { -} - -#ExplanationsCustomerGatewayInitParameters: { -} - -#ExplanationsCustomerGatewayObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ExplanationsCustomerGatewayParameters: { -} - -#ExplanationsInitParameters: { -} - -#ExplanationsObservation: { - acl?: [...#ACLObservation] @go(ACL,[]ACLObservation) - aclRule?: [...#ACLRuleObservation] @go(ACLRule,[]ACLRuleObservation) - address?: null | string @go(Address,*string) - addresses?: [...null | string] @go(Addresses,[]*string) - attachedTo?: [...#AttachedToObservation] @go(AttachedTo,[]AttachedToObservation) - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - cidrs?: [...null | string] @go(Cidrs,[]*string) - classicLoadBalancerListener?: [...#ClassicLoadBalancerListenerObservation] @go(ClassicLoadBalancerListener,[]ClassicLoadBalancerListenerObservation) - component?: [...#ComponentObservation] @go(Component,[]ComponentObservation) - customerGateway?: [...#ExplanationsCustomerGatewayObservation] @go(CustomerGateway,[]ExplanationsCustomerGatewayObservation) - destination?: [...#DestinationObservation] @go(Destination,[]DestinationObservation) - destinationVpc?: [...#DestinationVPCObservation] @go(DestinationVPC,[]DestinationVPCObservation) - direction?: null | string @go(Direction,*string) - elasticLoadBalancerListener?: [...#ElasticLoadBalancerListenerObservation] @go(ElasticLoadBalancerListener,[]ElasticLoadBalancerListenerObservation) - explanationCode?: null | string @go(ExplanationCode,*string) - ingressRouteTable?: [...#IngressRouteTableObservation] @go(IngressRouteTable,[]IngressRouteTableObservation) - internetGateway?: [...#InternetGatewayObservation] @go(InternetGateway,[]InternetGatewayObservation) - - // ARN of the Network Insights Analysis. - loadBalancerArn?: null | string @go(LoadBalancerArn,*string) - loadBalancerListenerPort?: null | float64 @go(LoadBalancerListenerPort,*float64) - loadBalancerTargetGroup?: [...#LoadBalancerTargetGroupObservation] @go(LoadBalancerTargetGroup,[]LoadBalancerTargetGroupObservation) - loadBalancerTargetGroups?: [...#LoadBalancerTargetGroupsObservation] @go(LoadBalancerTargetGroups,[]LoadBalancerTargetGroupsObservation) - loadBalancerTargetPort?: null | float64 @go(LoadBalancerTargetPort,*float64) - missingComponent?: null | string @go(MissingComponent,*string) - natGateway?: [...#NATGatewayObservation] @go(NATGateway,[]NATGatewayObservation) - networkInterface?: [...#NetworkInterfaceObservation] @go(NetworkInterface,[]NetworkInterfaceObservation) - packetField?: null | string @go(PacketField,*string) - port?: null | float64 @go(Port,*float64) - portRanges?: [...#PortRangesObservation] @go(PortRanges,[]PortRangesObservation) - prefixList?: [...#PrefixListObservation] @go(PrefixList,[]PrefixListObservation) - protocols?: [...null | string] @go(Protocols,[]*string) - routeTable?: [...#RouteTableObservation] @go(RouteTable,[]RouteTableObservation) - routeTableRoute?: [...#RouteTableRouteObservation] @go(RouteTableRoute,[]RouteTableRouteObservation) - securityGroup?: [...#SecurityGroupObservation] @go(SecurityGroup,[]SecurityGroupObservation) - securityGroupRule?: [...#SecurityGroupRuleObservation] @go(SecurityGroupRule,[]SecurityGroupRuleObservation) - securityGroups?: [...#SecurityGroupsObservation] @go(SecurityGroups,[]SecurityGroupsObservation) - sourceVpc?: [...#SourceVPCObservation] @go(SourceVPC,[]SourceVPCObservation) - state?: null | string @go(State,*string) - subnet?: [...#SubnetObservation] @go(Subnet,[]SubnetObservation) - subnetRouteTable?: [...#SubnetRouteTableObservation] @go(SubnetRouteTable,[]SubnetRouteTableObservation) - transitGateway?: [...#TransitGatewayObservation] @go(TransitGateway,[]TransitGatewayObservation) - transitGatewayAttachment?: [...#TransitGatewayAttachmentObservation] @go(TransitGatewayAttachment,[]TransitGatewayAttachmentObservation) - transitGatewayRouteTable?: [...#TransitGatewayRouteTableObservation] @go(TransitGatewayRouteTable,[]TransitGatewayRouteTableObservation) - transitGatewayRouteTableRoute?: [...#TransitGatewayRouteTableRouteObservation] @go(TransitGatewayRouteTableRoute,[]TransitGatewayRouteTableRouteObservation) - vpc?: [...#VPCObservation] @go(VPC,[]VPCObservation) - vpcEndpoint?: [...#VPCEndpointObservation] @go(VPCEndpoint,[]VPCEndpointObservation) - vpcPeeringConnection?: [...#VPCPeeringConnectionObservation] @go(VPCPeeringConnection,[]VPCPeeringConnectionObservation) - vpnConnection?: [...#VPNConnectionObservation] @go(VPNConnection,[]VPNConnectionObservation) - vpnGateway?: [...#VPNGatewayObservation] @go(VPNGateway,[]VPNGatewayObservation) -} - -#ExplanationsParameters: { -} - -#ForwardPathComponentsACLRuleInitParameters: { -} - -#ForwardPathComponentsACLRuleObservation: { - cidr?: null | string @go(Cidr,*string) - egress?: null | bool @go(Egress,*bool) - portRange?: [...#ACLRulePortRangeObservation] @go(PortRange,[]ACLRulePortRangeObservation) - protocol?: null | string @go(Protocol,*string) - ruleAction?: null | string @go(RuleAction,*string) - ruleNumber?: null | float64 @go(RuleNumber,*float64) -} - -#ForwardPathComponentsACLRuleParameters: { -} - -#ForwardPathComponentsAttachedToInitParameters: { -} - -#ForwardPathComponentsAttachedToObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ForwardPathComponentsAttachedToParameters: { -} - -#ForwardPathComponentsComponentInitParameters: { -} - -#ForwardPathComponentsComponentObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ForwardPathComponentsComponentParameters: { -} - -#ForwardPathComponentsDestinationVPCInitParameters: { -} - -#ForwardPathComponentsDestinationVPCObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ForwardPathComponentsDestinationVPCParameters: { -} - -#ForwardPathComponentsInitParameters: { -} - -#ForwardPathComponentsObservation: { - aclRule?: [...#ForwardPathComponentsACLRuleObservation] @go(ACLRule,[]ForwardPathComponentsACLRuleObservation) - additionalDetails?: [...#AdditionalDetailsObservation] @go(AdditionalDetails,[]AdditionalDetailsObservation) - attachedTo?: [...#ForwardPathComponentsAttachedToObservation] @go(AttachedTo,[]ForwardPathComponentsAttachedToObservation) - component?: [...#ForwardPathComponentsComponentObservation] @go(Component,[]ForwardPathComponentsComponentObservation) - destinationVpc?: [...#ForwardPathComponentsDestinationVPCObservation] @go(DestinationVPC,[]ForwardPathComponentsDestinationVPCObservation) - inboundHeader?: [...#InboundHeaderObservation] @go(InboundHeader,[]InboundHeaderObservation) - outboundHeader?: [...#OutboundHeaderObservation] @go(OutboundHeader,[]OutboundHeaderObservation) - routeTableRoute?: [...#ForwardPathComponentsRouteTableRouteObservation] @go(RouteTableRoute,[]ForwardPathComponentsRouteTableRouteObservation) - securityGroupRule?: [...#ForwardPathComponentsSecurityGroupRuleObservation] @go(SecurityGroupRule,[]ForwardPathComponentsSecurityGroupRuleObservation) - sequenceNumber?: null | float64 @go(SequenceNumber,*float64) - sourceVpc?: [...#ForwardPathComponentsSourceVPCObservation] @go(SourceVPC,[]ForwardPathComponentsSourceVPCObservation) - subnet?: [...#ForwardPathComponentsSubnetObservation] @go(Subnet,[]ForwardPathComponentsSubnetObservation) - transitGateway?: [...#ForwardPathComponentsTransitGatewayObservation] @go(TransitGateway,[]ForwardPathComponentsTransitGatewayObservation) - transitGatewayRouteTableRoute?: [...#ForwardPathComponentsTransitGatewayRouteTableRouteObservation] @go(TransitGatewayRouteTableRoute,[]ForwardPathComponentsTransitGatewayRouteTableRouteObservation) - vpc?: [...#ForwardPathComponentsVPCObservation] @go(VPC,[]ForwardPathComponentsVPCObservation) -} - -#ForwardPathComponentsParameters: { -} - -#ForwardPathComponentsRouteTableRouteInitParameters: { -} - -#ForwardPathComponentsRouteTableRouteObservation: { - destinationCidr?: null | string @go(DestinationCidr,*string) - - // ID of the Network Insights Analysis. - destinationPrefixListId?: null | string @go(DestinationPrefixListID,*string) - - // ID of the Network Insights Analysis. - egressOnlyInternetGatewayId?: null | string @go(EgressOnlyInternetGatewayID,*string) - - // ID of the Network Insights Analysis. - gatewayId?: null | string @go(GatewayID,*string) - - // ID of the Network Insights Analysis. - instanceId?: null | string @go(InstanceID,*string) - - // ID of the Network Insights Analysis. - natGatewayId?: null | string @go(NATGatewayID,*string) - - // ID of the Network Insights Analysis. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - origin?: null | string @go(Origin,*string) - - // ID of the Network Insights Analysis. - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // ID of the Network Insights Analysis. - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) -} - -#ForwardPathComponentsRouteTableRouteParameters: { -} - -#ForwardPathComponentsSecurityGroupRuleInitParameters: { -} - -#ForwardPathComponentsSecurityGroupRuleObservation: { - cidr?: null | string @go(Cidr,*string) - direction?: null | string @go(Direction,*string) - portRange?: [...#ForwardPathComponentsSecurityGroupRulePortRangeObservation] @go(PortRange,[]ForwardPathComponentsSecurityGroupRulePortRangeObservation) - - // ID of the Network Insights Analysis. - prefixListId?: null | string @go(PrefixListID,*string) - protocol?: null | string @go(Protocol,*string) - - // ID of the Network Insights Analysis. - securityGroupId?: null | string @go(SecurityGroupID,*string) -} - -#ForwardPathComponentsSecurityGroupRuleParameters: { -} - -#ForwardPathComponentsSecurityGroupRulePortRangeInitParameters: { -} - -#ForwardPathComponentsSecurityGroupRulePortRangeObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#ForwardPathComponentsSecurityGroupRulePortRangeParameters: { -} - -#ForwardPathComponentsSourceVPCInitParameters: { -} - -#ForwardPathComponentsSourceVPCObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ForwardPathComponentsSourceVPCParameters: { -} - -#ForwardPathComponentsSubnetInitParameters: { -} - -#ForwardPathComponentsSubnetObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ForwardPathComponentsSubnetParameters: { -} - -#ForwardPathComponentsTransitGatewayInitParameters: { -} - -#ForwardPathComponentsTransitGatewayObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ForwardPathComponentsTransitGatewayParameters: { -} - -#ForwardPathComponentsTransitGatewayRouteTableRouteInitParameters: { -} - -#ForwardPathComponentsTransitGatewayRouteTableRouteObservation: { - // ID of the Network Insights Analysis. - attachmentId?: null | string @go(AttachmentID,*string) - destinationCidr?: null | string @go(DestinationCidr,*string) - - // ID of the Network Insights Analysis. - prefixListId?: null | string @go(PrefixListID,*string) - - // ID of the Network Insights Analysis. - resourceId?: null | string @go(ResourceID,*string) - resourceType?: null | string @go(ResourceType,*string) - routeOrigin?: null | string @go(RouteOrigin,*string) - state?: null | string @go(State,*string) -} - -#ForwardPathComponentsTransitGatewayRouteTableRouteParameters: { -} - -#ForwardPathComponentsVPCInitParameters: { -} - -#ForwardPathComponentsVPCObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ForwardPathComponentsVPCParameters: { -} - -#InboundHeaderDestinationPortRangesInitParameters: { -} - -#InboundHeaderDestinationPortRangesObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#InboundHeaderDestinationPortRangesParameters: { -} - -#InboundHeaderInitParameters: { -} - -#InboundHeaderObservation: { - destinationAddresses?: [...null | string] @go(DestinationAddresses,[]*string) - destinationPortRanges?: [...#DestinationPortRangesObservation] @go(DestinationPortRanges,[]DestinationPortRangesObservation) - protocol?: null | string @go(Protocol,*string) - sourceAddresses?: [...null | string] @go(SourceAddresses,[]*string) - sourcePortRanges?: [...#SourcePortRangesObservation] @go(SourcePortRanges,[]SourcePortRangesObservation) -} - -#InboundHeaderParameters: { -} - -#InboundHeaderSourcePortRangesInitParameters: { -} - -#InboundHeaderSourcePortRangesObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#InboundHeaderSourcePortRangesParameters: { -} - -#IngressRouteTableInitParameters: { -} - -#IngressRouteTableObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#IngressRouteTableParameters: { -} - -#InternetGatewayInitParameters: { -} - -#InternetGatewayObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#InternetGatewayParameters: { -} - -#LoadBalancerTargetGroupInitParameters: { -} - -#LoadBalancerTargetGroupObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#LoadBalancerTargetGroupParameters: { -} - -#LoadBalancerTargetGroupsInitParameters: { -} - -#LoadBalancerTargetGroupsObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#LoadBalancerTargetGroupsParameters: { -} - -#NATGatewayInitParameters: { -} - -#NATGatewayObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#NATGatewayParameters: { -} - -#NetworkInsightsAnalysisInitParameters: { - // A list of ARNs for resources the path must traverse. - filterInArns?: [...null | string] @go(FilterInArns,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // If enabled, the resource will wait for the Network Insights Analysis status to change to succeeded or failed. Setting this to false will skip the process. Default: true. - waitForCompletion?: null | bool @go(WaitForCompletion,*bool) -} - -#NetworkInsightsAnalysisObservation: { - // Potential intermediate components of a feasible path. Described below. - alternatePathHints?: [...#AlternatePathHintsObservation] @go(AlternatePathHints,[]AlternatePathHintsObservation) - - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // Explanation codes for an unreachable path. See the AWS documentation for details. - explanations?: [...#ExplanationsObservation] @go(Explanations,[]ExplanationsObservation) - - // A list of ARNs for resources the path must traverse. - filterInArns?: [...null | string] @go(FilterInArns,[]*string) - - // The components in the path from source to destination. See the AWS documentation for details. - forwardPathComponents?: [...#ForwardPathComponentsObservation] @go(ForwardPathComponents,[]ForwardPathComponentsObservation) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - - // ID of the Network Insights Path to run an analysis on. - networkInsightsPathId?: null | string @go(NetworkInsightsPathID,*string) - - // Set to true if the destination was reachable. - pathFound?: null | bool @go(PathFound,*bool) - - // The components in the path from destination to source. See the AWS documentation for details. - returnPathComponents?: [...#ReturnPathComponentsObservation] @go(ReturnPathComponents,[]ReturnPathComponentsObservation) - - // The date/time the analysis was started. - startDate?: null | string @go(StartDate,*string) - - // The status of the analysis. succeeded means the analysis was completed, not that a path was found, for that see path_found. - status?: null | string @go(Status,*string) - - // A message to provide more context when the status is failed. - statusMessage?: null | string @go(StatusMessage,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // If enabled, the resource will wait for the Network Insights Analysis status to change to succeeded or failed. Setting this to false will skip the process. Default: true. - waitForCompletion?: null | bool @go(WaitForCompletion,*bool) - - // The warning message. - warningMessage?: null | string @go(WarningMessage,*string) -} - -#NetworkInsightsAnalysisParameters: { - // A list of ARNs for resources the path must traverse. - // +kubebuilder:validation:Optional - filterInArns?: [...null | string] @go(FilterInArns,[]*string) - - // ID of the Network Insights Path to run an analysis on. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.NetworkInsightsPath - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - networkInsightsPathId?: null | string @go(NetworkInsightsPathID,*string) - - // Reference to a NetworkInsightsPath in ec2 to populate networkInsightsPathId. - // +kubebuilder:validation:Optional - networkInsightsPathIdRef?: null | v1.#Reference @go(NetworkInsightsPathIDRef,*v1.Reference) - - // Selector for a NetworkInsightsPath in ec2 to populate networkInsightsPathId. - // +kubebuilder:validation:Optional - networkInsightsPathIdSelector?: null | v1.#Selector @go(NetworkInsightsPathIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // If enabled, the resource will wait for the Network Insights Analysis status to change to succeeded or failed. Setting this to false will skip the process. Default: true. - // +kubebuilder:validation:Optional - waitForCompletion?: null | bool @go(WaitForCompletion,*bool) -} - -#NetworkInterfaceInitParameters: { -} - -#NetworkInterfaceObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#NetworkInterfaceParameters: { -} - -#OutboundHeaderDestinationPortRangesInitParameters: { -} - -#OutboundHeaderDestinationPortRangesObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#OutboundHeaderDestinationPortRangesParameters: { -} - -#OutboundHeaderInitParameters: { -} - -#OutboundHeaderObservation: { - destinationAddresses?: [...null | string] @go(DestinationAddresses,[]*string) - destinationPortRanges?: [...#OutboundHeaderDestinationPortRangesObservation] @go(DestinationPortRanges,[]OutboundHeaderDestinationPortRangesObservation) - protocol?: null | string @go(Protocol,*string) - sourceAddresses?: [...null | string] @go(SourceAddresses,[]*string) - sourcePortRanges?: [...#OutboundHeaderSourcePortRangesObservation] @go(SourcePortRanges,[]OutboundHeaderSourcePortRangesObservation) -} - -#OutboundHeaderParameters: { -} - -#OutboundHeaderSourcePortRangesInitParameters: { -} - -#OutboundHeaderSourcePortRangesObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#OutboundHeaderSourcePortRangesParameters: { -} - -#PortRangeInitParameters: { -} - -#PortRangeObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#PortRangeParameters: { -} - -#PortRangesInitParameters: { -} - -#PortRangesObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#PortRangesParameters: { -} - -#PrefixListInitParameters: { -} - -#PrefixListObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#PrefixListParameters: { -} - -#ReturnPathComponentsACLRuleInitParameters: { -} - -#ReturnPathComponentsACLRuleObservation: { - cidr?: null | string @go(Cidr,*string) - egress?: null | bool @go(Egress,*bool) - portRange?: [...#ReturnPathComponentsACLRulePortRangeObservation] @go(PortRange,[]ReturnPathComponentsACLRulePortRangeObservation) - protocol?: null | string @go(Protocol,*string) - ruleAction?: null | string @go(RuleAction,*string) - ruleNumber?: null | float64 @go(RuleNumber,*float64) -} - -#ReturnPathComponentsACLRuleParameters: { -} - -#ReturnPathComponentsACLRulePortRangeInitParameters: { -} - -#ReturnPathComponentsACLRulePortRangeObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#ReturnPathComponentsACLRulePortRangeParameters: { -} - -#ReturnPathComponentsAdditionalDetailsComponentInitParameters: { -} - -#ReturnPathComponentsAdditionalDetailsComponentObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ReturnPathComponentsAdditionalDetailsComponentParameters: { -} - -#ReturnPathComponentsAdditionalDetailsInitParameters: { -} - -#ReturnPathComponentsAdditionalDetailsObservation: { - additionalDetailType?: null | string @go(AdditionalDetailType,*string) - component?: [...#ReturnPathComponentsAdditionalDetailsComponentObservation] @go(Component,[]ReturnPathComponentsAdditionalDetailsComponentObservation) -} - -#ReturnPathComponentsAdditionalDetailsParameters: { -} - -#ReturnPathComponentsAttachedToInitParameters: { -} - -#ReturnPathComponentsAttachedToObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ReturnPathComponentsAttachedToParameters: { -} - -#ReturnPathComponentsComponentInitParameters: { -} - -#ReturnPathComponentsComponentObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ReturnPathComponentsComponentParameters: { -} - -#ReturnPathComponentsDestinationVPCInitParameters: { -} - -#ReturnPathComponentsDestinationVPCObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ReturnPathComponentsDestinationVPCParameters: { -} - -#ReturnPathComponentsInboundHeaderInitParameters: { -} - -#ReturnPathComponentsInboundHeaderObservation: { - destinationAddresses?: [...null | string] @go(DestinationAddresses,[]*string) - destinationPortRanges?: [...#InboundHeaderDestinationPortRangesObservation] @go(DestinationPortRanges,[]InboundHeaderDestinationPortRangesObservation) - protocol?: null | string @go(Protocol,*string) - sourceAddresses?: [...null | string] @go(SourceAddresses,[]*string) - sourcePortRanges?: [...#InboundHeaderSourcePortRangesObservation] @go(SourcePortRanges,[]InboundHeaderSourcePortRangesObservation) -} - -#ReturnPathComponentsInboundHeaderParameters: { -} - -#ReturnPathComponentsInitParameters: { -} - -#ReturnPathComponentsObservation: { - aclRule?: [...#ReturnPathComponentsACLRuleObservation] @go(ACLRule,[]ReturnPathComponentsACLRuleObservation) - additionalDetails?: [...#ReturnPathComponentsAdditionalDetailsObservation] @go(AdditionalDetails,[]ReturnPathComponentsAdditionalDetailsObservation) - attachedTo?: [...#ReturnPathComponentsAttachedToObservation] @go(AttachedTo,[]ReturnPathComponentsAttachedToObservation) - component?: [...#ReturnPathComponentsComponentObservation] @go(Component,[]ReturnPathComponentsComponentObservation) - destinationVpc?: [...#ReturnPathComponentsDestinationVPCObservation] @go(DestinationVPC,[]ReturnPathComponentsDestinationVPCObservation) - inboundHeader?: [...#ReturnPathComponentsInboundHeaderObservation] @go(InboundHeader,[]ReturnPathComponentsInboundHeaderObservation) - outboundHeader?: [...#ReturnPathComponentsOutboundHeaderObservation] @go(OutboundHeader,[]ReturnPathComponentsOutboundHeaderObservation) - routeTableRoute?: [...#ReturnPathComponentsRouteTableRouteObservation] @go(RouteTableRoute,[]ReturnPathComponentsRouteTableRouteObservation) - securityGroupRule?: [...#ReturnPathComponentsSecurityGroupRuleObservation] @go(SecurityGroupRule,[]ReturnPathComponentsSecurityGroupRuleObservation) - sequenceNumber?: null | float64 @go(SequenceNumber,*float64) - sourceVpc?: [...#ReturnPathComponentsSourceVPCObservation] @go(SourceVPC,[]ReturnPathComponentsSourceVPCObservation) - subnet?: [...#ReturnPathComponentsSubnetObservation] @go(Subnet,[]ReturnPathComponentsSubnetObservation) - transitGateway?: [...#ReturnPathComponentsTransitGatewayObservation] @go(TransitGateway,[]ReturnPathComponentsTransitGatewayObservation) - transitGatewayRouteTableRoute?: [...#ReturnPathComponentsTransitGatewayRouteTableRouteObservation] @go(TransitGatewayRouteTableRoute,[]ReturnPathComponentsTransitGatewayRouteTableRouteObservation) - vpc?: [...#ReturnPathComponentsVPCObservation] @go(VPC,[]ReturnPathComponentsVPCObservation) -} - -#ReturnPathComponentsOutboundHeaderDestinationPortRangesInitParameters: { -} - -#ReturnPathComponentsOutboundHeaderDestinationPortRangesObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#ReturnPathComponentsOutboundHeaderDestinationPortRangesParameters: { -} - -#ReturnPathComponentsOutboundHeaderInitParameters: { -} - -#ReturnPathComponentsOutboundHeaderObservation: { - destinationAddresses?: [...null | string] @go(DestinationAddresses,[]*string) - destinationPortRanges?: [...#ReturnPathComponentsOutboundHeaderDestinationPortRangesObservation] @go(DestinationPortRanges,[]ReturnPathComponentsOutboundHeaderDestinationPortRangesObservation) - protocol?: null | string @go(Protocol,*string) - sourceAddresses?: [...null | string] @go(SourceAddresses,[]*string) - sourcePortRanges?: [...#ReturnPathComponentsOutboundHeaderSourcePortRangesObservation] @go(SourcePortRanges,[]ReturnPathComponentsOutboundHeaderSourcePortRangesObservation) -} - -#ReturnPathComponentsOutboundHeaderParameters: { -} - -#ReturnPathComponentsOutboundHeaderSourcePortRangesInitParameters: { -} - -#ReturnPathComponentsOutboundHeaderSourcePortRangesObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#ReturnPathComponentsOutboundHeaderSourcePortRangesParameters: { -} - -#ReturnPathComponentsParameters: { -} - -#ReturnPathComponentsRouteTableRouteInitParameters: { -} - -#ReturnPathComponentsRouteTableRouteObservation: { - destinationCidr?: null | string @go(DestinationCidr,*string) - - // ID of the Network Insights Analysis. - destinationPrefixListId?: null | string @go(DestinationPrefixListID,*string) - - // ID of the Network Insights Analysis. - egressOnlyInternetGatewayId?: null | string @go(EgressOnlyInternetGatewayID,*string) - - // ID of the Network Insights Analysis. - gatewayId?: null | string @go(GatewayID,*string) - - // ID of the Network Insights Analysis. - instanceId?: null | string @go(InstanceID,*string) - - // ID of the Network Insights Analysis. - natGatewayId?: null | string @go(NATGatewayID,*string) - - // ID of the Network Insights Analysis. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - origin?: null | string @go(Origin,*string) - - // ID of the Network Insights Analysis. - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // ID of the Network Insights Analysis. - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) -} - -#ReturnPathComponentsRouteTableRouteParameters: { -} - -#ReturnPathComponentsSecurityGroupRuleInitParameters: { -} - -#ReturnPathComponentsSecurityGroupRuleObservation: { - cidr?: null | string @go(Cidr,*string) - direction?: null | string @go(Direction,*string) - portRange?: [...#ReturnPathComponentsSecurityGroupRulePortRangeObservation] @go(PortRange,[]ReturnPathComponentsSecurityGroupRulePortRangeObservation) - - // ID of the Network Insights Analysis. - prefixListId?: null | string @go(PrefixListID,*string) - protocol?: null | string @go(Protocol,*string) - - // ID of the Network Insights Analysis. - securityGroupId?: null | string @go(SecurityGroupID,*string) -} - -#ReturnPathComponentsSecurityGroupRuleParameters: { -} - -#ReturnPathComponentsSecurityGroupRulePortRangeInitParameters: { -} - -#ReturnPathComponentsSecurityGroupRulePortRangeObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#ReturnPathComponentsSecurityGroupRulePortRangeParameters: { -} - -#ReturnPathComponentsSourceVPCInitParameters: { -} - -#ReturnPathComponentsSourceVPCObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ReturnPathComponentsSourceVPCParameters: { -} - -#ReturnPathComponentsSubnetInitParameters: { -} - -#ReturnPathComponentsSubnetObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ReturnPathComponentsSubnetParameters: { -} - -#ReturnPathComponentsTransitGatewayInitParameters: { -} - -#ReturnPathComponentsTransitGatewayObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ReturnPathComponentsTransitGatewayParameters: { -} - -#ReturnPathComponentsTransitGatewayRouteTableRouteInitParameters: { -} - -#ReturnPathComponentsTransitGatewayRouteTableRouteObservation: { - // ID of the Network Insights Analysis. - attachmentId?: null | string @go(AttachmentID,*string) - destinationCidr?: null | string @go(DestinationCidr,*string) - - // ID of the Network Insights Analysis. - prefixListId?: null | string @go(PrefixListID,*string) - - // ID of the Network Insights Analysis. - resourceId?: null | string @go(ResourceID,*string) - resourceType?: null | string @go(ResourceType,*string) - routeOrigin?: null | string @go(RouteOrigin,*string) - state?: null | string @go(State,*string) -} - -#ReturnPathComponentsTransitGatewayRouteTableRouteParameters: { -} - -#ReturnPathComponentsVPCInitParameters: { -} - -#ReturnPathComponentsVPCObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#ReturnPathComponentsVPCParameters: { -} - -#RouteTableInitParameters: { -} - -#RouteTableObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#RouteTableParameters: { -} - -#RouteTableRouteInitParameters: { -} - -#RouteTableRouteObservation: { - destinationCidr?: null | string @go(DestinationCidr,*string) - - // ID of the Network Insights Analysis. - destinationPrefixListId?: null | string @go(DestinationPrefixListID,*string) - - // ID of the Network Insights Analysis. - egressOnlyInternetGatewayId?: null | string @go(EgressOnlyInternetGatewayID,*string) - - // ID of the Network Insights Analysis. - gatewayId?: null | string @go(GatewayID,*string) - - // ID of the Network Insights Analysis. - instanceId?: null | string @go(InstanceID,*string) - - // ID of the Network Insights Analysis. - natGatewayId?: null | string @go(NATGatewayID,*string) - - // ID of the Network Insights Analysis. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - origin?: null | string @go(Origin,*string) - - // ID of the Network Insights Analysis. - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // ID of the Network Insights Analysis. - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) -} - -#RouteTableRouteParameters: { -} - -#SecurityGroupInitParameters: { -} - -#SecurityGroupObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#SecurityGroupParameters: { -} - -#SecurityGroupRuleInitParameters: { -} - -#SecurityGroupRuleObservation: { - cidr?: null | string @go(Cidr,*string) - direction?: null | string @go(Direction,*string) - portRange?: [...#SecurityGroupRulePortRangeObservation] @go(PortRange,[]SecurityGroupRulePortRangeObservation) - - // ID of the Network Insights Analysis. - prefixListId?: null | string @go(PrefixListID,*string) - protocol?: null | string @go(Protocol,*string) - - // ID of the Network Insights Analysis. - securityGroupId?: null | string @go(SecurityGroupID,*string) -} - -#SecurityGroupRuleParameters: { -} - -#SecurityGroupRulePortRangeInitParameters: { -} - -#SecurityGroupRulePortRangeObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#SecurityGroupRulePortRangeParameters: { -} - -#SecurityGroupsInitParameters: { -} - -#SecurityGroupsObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#SecurityGroupsParameters: { -} - -#SourcePortRangesInitParameters: { -} - -#SourcePortRangesObservation: { - from?: null | float64 @go(From,*float64) - to?: null | float64 @go(To,*float64) -} - -#SourcePortRangesParameters: { -} - -#SourceVPCInitParameters: { -} - -#SourceVPCObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#SourceVPCParameters: { -} - -#SubnetInitParameters: { -} - -#SubnetObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#SubnetParameters: { -} - -#SubnetRouteTableInitParameters: { -} - -#SubnetRouteTableObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#SubnetRouteTableParameters: { -} - -#TransitGatewayAttachmentInitParameters: { -} - -#TransitGatewayAttachmentObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#TransitGatewayAttachmentParameters: { -} - -#TransitGatewayInitParameters: { -} - -#TransitGatewayObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#TransitGatewayParameters: { -} - -#TransitGatewayRouteTableInitParameters: { -} - -#TransitGatewayRouteTableObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#TransitGatewayRouteTableParameters: { -} - -#TransitGatewayRouteTableRouteInitParameters: { -} - -#TransitGatewayRouteTableRouteObservation: { - // ID of the Network Insights Analysis. - attachmentId?: null | string @go(AttachmentID,*string) - destinationCidr?: null | string @go(DestinationCidr,*string) - - // ID of the Network Insights Analysis. - prefixListId?: null | string @go(PrefixListID,*string) - - // ID of the Network Insights Analysis. - resourceId?: null | string @go(ResourceID,*string) - resourceType?: null | string @go(ResourceType,*string) - routeOrigin?: null | string @go(RouteOrigin,*string) - state?: null | string @go(State,*string) -} - -#TransitGatewayRouteTableRouteParameters: { -} - -#VPCEndpointInitParameters: { -} - -#VPCEndpointObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#VPCEndpointParameters: { -} - -#VPCInitParameters: { -} - -#VPCObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#VPCParameters: { -} - -#VPCPeeringConnectionInitParameters: { -} - -#VPCPeeringConnectionObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#VPCPeeringConnectionParameters: { -} - -#VPNConnectionInitParameters: { -} - -#VPNConnectionObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#VPNConnectionParameters: { -} - -#VPNGatewayInitParameters: { -} - -#VPNGatewayObservation: { - // ARN of the Network Insights Analysis. - arn?: null | string @go(Arn,*string) - - // ID of the Network Insights Analysis. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) -} - -#VPNGatewayParameters: { -} - -// NetworkInsightsAnalysisSpec defines the desired state of NetworkInsightsAnalysis -#NetworkInsightsAnalysisSpec: { - v1.#ResourceSpec - forProvider: #NetworkInsightsAnalysisParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NetworkInsightsAnalysisInitParameters @go(InitProvider) -} - -// NetworkInsightsAnalysisStatus defines the observed state of NetworkInsightsAnalysis. -#NetworkInsightsAnalysisStatus: { - v1.#ResourceStatus - atProvider?: #NetworkInsightsAnalysisObservation @go(AtProvider) -} - -// NetworkInsightsAnalysis is the Schema for the NetworkInsightsAnalysiss API. Provides a Network Insights Analysis resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NetworkInsightsAnalysis: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #NetworkInsightsAnalysisSpec @go(Spec) - status?: #NetworkInsightsAnalysisStatus @go(Status) -} - -// NetworkInsightsAnalysisList contains a list of NetworkInsightsAnalysiss -#NetworkInsightsAnalysisList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NetworkInsightsAnalysis] @go(Items,[]NetworkInsightsAnalysis) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinsightspath_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinsightspath_types_go_gen.cue deleted file mode 100644 index 02cbd80..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinsightspath_types_go_gen.cue +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NetworkInsightsPathInitParameters: { - // IP address of the destination resource. - destinationIp?: null | string @go(DestinationIP,*string) - - // Destination port to analyze access to. - destinationPort?: null | float64 @go(DestinationPort,*float64) - - // Protocol to use for analysis. Valid options are tcp or udp. - protocol?: null | string @go(Protocol,*string) - - // IP address of the source resource. - sourceIp?: null | string @go(SourceIP,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#NetworkInsightsPathObservation: { - // ARN of the Network Insights Path. - arn?: null | string @go(Arn,*string) - - // ID of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. - destination?: null | string @go(Destination,*string) - - // IP address of the destination resource. - destinationIp?: null | string @go(DestinationIP,*string) - - // Destination port to analyze access to. - destinationPort?: null | float64 @go(DestinationPort,*float64) - - // ID of the Network Insights Path. - id?: null | string @go(ID,*string) - - // Protocol to use for analysis. Valid options are tcp or udp. - protocol?: null | string @go(Protocol,*string) - - // ID of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. - source?: null | string @go(Source,*string) - - // IP address of the source resource. - sourceIp?: null | string @go(SourceIP,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#NetworkInsightsPathParameters: { - // ID of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.NetworkInterface - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - destination?: null | string @go(Destination,*string) - - // IP address of the destination resource. - // +kubebuilder:validation:Optional - destinationIp?: null | string @go(DestinationIP,*string) - - // Destination port to analyze access to. - // +kubebuilder:validation:Optional - destinationPort?: null | float64 @go(DestinationPort,*float64) - - // Reference to a NetworkInterface in ec2 to populate destination. - // +kubebuilder:validation:Optional - destinationRef?: null | v1.#Reference @go(DestinationRef,*v1.Reference) - - // Selector for a NetworkInterface in ec2 to populate destination. - // +kubebuilder:validation:Optional - destinationSelector?: null | v1.#Selector @go(DestinationSelector,*v1.Selector) - - // Protocol to use for analysis. Valid options are tcp or udp. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.NetworkInterface - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - source?: null | string @go(Source,*string) - - // IP address of the source resource. - // +kubebuilder:validation:Optional - sourceIp?: null | string @go(SourceIP,*string) - - // Reference to a NetworkInterface in ec2 to populate source. - // +kubebuilder:validation:Optional - sourceRef?: null | v1.#Reference @go(SourceRef,*v1.Reference) - - // Selector for a NetworkInterface in ec2 to populate source. - // +kubebuilder:validation:Optional - sourceSelector?: null | v1.#Selector @go(SourceSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// NetworkInsightsPathSpec defines the desired state of NetworkInsightsPath -#NetworkInsightsPathSpec: { - v1.#ResourceSpec - forProvider: #NetworkInsightsPathParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NetworkInsightsPathInitParameters @go(InitProvider) -} - -// NetworkInsightsPathStatus defines the observed state of NetworkInsightsPath. -#NetworkInsightsPathStatus: { - v1.#ResourceStatus - atProvider?: #NetworkInsightsPathObservation @go(AtProvider) -} - -// NetworkInsightsPath is the Schema for the NetworkInsightsPaths API. Provides a Network Insights Path resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NetworkInsightsPath: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.protocol) || (has(self.initProvider) && has(self.initProvider.protocol))",message="spec.forProvider.protocol is a required parameter" - spec: #NetworkInsightsPathSpec @go(Spec) - status?: #NetworkInsightsPathStatus @go(Status) -} - -// NetworkInsightsPathList contains a list of NetworkInsightsPaths -#NetworkInsightsPathList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NetworkInsightsPath] @go(Items,[]NetworkInsightsPath) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinterface_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinterface_types_go_gen.cue deleted file mode 100644 index 7382b86..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinterface_types_go_gen.cue +++ /dev/null @@ -1,306 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AttachmentInitParameters: { -} - -#AttachmentObservation: { - // ID of the network interface. - attachmentId?: null | string @go(AttachmentID,*string) - - // Integer to define the devices index. - deviceIndex?: null | float64 @go(DeviceIndex,*float64) - - // ID of the instance to attach to. - instance?: null | string @go(Instance,*string) -} - -#AttachmentParameters: { -} - -#NetworkInterfaceInitParameters_2: { - // Description for the network interface. - description?: null | string @go(Description,*string) - - // Number of IPv4 prefixes that AWS automatically assigns to the network interface. - ipv4PrefixCount?: null | float64 @go(IPv4PrefixCount,*float64) - - // One or more IPv4 prefixes assigned to the network interface. - ipv4Prefixes?: [...null | string] @go(IPv4Prefixes,[]*string) - - // Number of IPv6 addresses to assign to a network interface. You can't use this option if specifying specific ipv6_addresses. If your subnet has the AssignIpv6AddressOnCreation attribute set to true, you can specify 0 to override this setting. - ipv6AddressCount?: null | float64 @go(IPv6AddressCount,*float64) - - // List of private IPs to assign to the ENI in sequential order. - ipv6AddressList?: [...null | string] @go(IPv6AddressList,[]*string) - - // Whether ipv6_address_list is allowed and controls the IPs to assign to the ENI and ipv6_addresses and ipv6_address_count become read-only. Default false. - ipv6AddressListEnabled?: null | bool @go(IPv6AddressListEnabled,*bool) - - // One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Addresses are assigned without regard to order. You can't use this option if you're specifying ipv6_address_count. - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - - // Number of IPv6 prefixes that AWS automatically assigns to the network interface. - ipv6PrefixCount?: null | float64 @go(IPv6PrefixCount,*float64) - - // One or more IPv6 prefixes assigned to the network interface. - ipv6Prefixes?: [...null | string] @go(IPv6Prefixes,[]*string) - - // Type of network interface to create. Set to efa for Elastic Fabric Adapter. Changing interface_type will cause the resource to be destroyed and re-created. - interfaceType?: null | string @go(InterfaceType,*string) - privateIp?: null | string @go(PrivateIP,*string) - - // List of private IPs to assign to the ENI in sequential order. Requires setting private_ip_list_enabled to true. - privateIpList?: [...null | string] @go(PrivateIPList,[]*string) - - // Whether private_ip_list is allowed and controls the IPs to assign to the ENI and private_ips and private_ips_count become read-only. Default false. - privateIpListEnabled?: null | bool @go(PrivateIPListEnabled,*bool) - - // List of private IPs to assign to the ENI without regard to order. - privateIps?: [...null | string] @go(PrivateIps,[]*string) - - // Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default. - privateIpsCount?: null | float64 @go(PrivateIpsCount,*float64) - - // Whether to enable source destination checking for the ENI. Default true. - sourceDestCheck?: null | bool @go(SourceDestCheck,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#NetworkInterfaceObservation_2: { - // ARN of the network interface. - arn?: null | string @go(Arn,*string) - - // Configuration block to define the attachment of the ENI. See Attachment below for more details! - attachment?: [...#AttachmentObservation] @go(Attachment,[]AttachmentObservation) - - // Description for the network interface. - description?: null | string @go(Description,*string) - - // ID of the network interface. - id?: null | string @go(ID,*string) - - // Number of IPv4 prefixes that AWS automatically assigns to the network interface. - ipv4PrefixCount?: null | float64 @go(IPv4PrefixCount,*float64) - - // One or more IPv4 prefixes assigned to the network interface. - ipv4Prefixes?: [...null | string] @go(IPv4Prefixes,[]*string) - - // Number of IPv6 addresses to assign to a network interface. You can't use this option if specifying specific ipv6_addresses. If your subnet has the AssignIpv6AddressOnCreation attribute set to true, you can specify 0 to override this setting. - ipv6AddressCount?: null | float64 @go(IPv6AddressCount,*float64) - - // List of private IPs to assign to the ENI in sequential order. - ipv6AddressList?: [...null | string] @go(IPv6AddressList,[]*string) - - // Whether ipv6_address_list is allowed and controls the IPs to assign to the ENI and ipv6_addresses and ipv6_address_count become read-only. Default false. - ipv6AddressListEnabled?: null | bool @go(IPv6AddressListEnabled,*bool) - - // One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Addresses are assigned without regard to order. You can't use this option if you're specifying ipv6_address_count. - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - - // Number of IPv6 prefixes that AWS automatically assigns to the network interface. - ipv6PrefixCount?: null | float64 @go(IPv6PrefixCount,*float64) - - // One or more IPv6 prefixes assigned to the network interface. - ipv6Prefixes?: [...null | string] @go(IPv6Prefixes,[]*string) - - // Type of network interface to create. Set to efa for Elastic Fabric Adapter. Changing interface_type will cause the resource to be destroyed and re-created. - interfaceType?: null | string @go(InterfaceType,*string) - - // MAC address of the network interface. - macAddress?: null | string @go(MacAddress,*string) - - // ARN of the network interface. - outpostArn?: null | string @go(OutpostArn,*string) - - // AWS account ID of the owner of the network interface. - ownerId?: null | string @go(OwnerID,*string) - - // Private DNS name of the network interface (IPv4). - privateDnsName?: null | string @go(PrivateDNSName,*string) - privateIp?: null | string @go(PrivateIP,*string) - - // List of private IPs to assign to the ENI in sequential order. Requires setting private_ip_list_enabled to true. - privateIpList?: [...null | string] @go(PrivateIPList,[]*string) - - // Whether private_ip_list is allowed and controls the IPs to assign to the ENI and private_ips and private_ips_count become read-only. Default false. - privateIpListEnabled?: null | bool @go(PrivateIPListEnabled,*bool) - - // List of private IPs to assign to the ENI without regard to order. - privateIps?: [...null | string] @go(PrivateIps,[]*string) - - // Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default. - privateIpsCount?: null | float64 @go(PrivateIpsCount,*float64) - - // List of security group IDs to assign to the ENI. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Whether to enable source destination checking for the ENI. Default true. - sourceDestCheck?: null | bool @go(SourceDestCheck,*bool) - - // Subnet ID to create the ENI in. - subnetId?: null | string @go(SubnetID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#NetworkInterfaceParameters_2: { - // Description for the network interface. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Number of IPv4 prefixes that AWS automatically assigns to the network interface. - // +kubebuilder:validation:Optional - ipv4PrefixCount?: null | float64 @go(IPv4PrefixCount,*float64) - - // One or more IPv4 prefixes assigned to the network interface. - // +kubebuilder:validation:Optional - ipv4Prefixes?: [...null | string] @go(IPv4Prefixes,[]*string) - - // Number of IPv6 addresses to assign to a network interface. You can't use this option if specifying specific ipv6_addresses. If your subnet has the AssignIpv6AddressOnCreation attribute set to true, you can specify 0 to override this setting. - // +kubebuilder:validation:Optional - ipv6AddressCount?: null | float64 @go(IPv6AddressCount,*float64) - - // List of private IPs to assign to the ENI in sequential order. - // +kubebuilder:validation:Optional - ipv6AddressList?: [...null | string] @go(IPv6AddressList,[]*string) - - // Whether ipv6_address_list is allowed and controls the IPs to assign to the ENI and ipv6_addresses and ipv6_address_count become read-only. Default false. - // +kubebuilder:validation:Optional - ipv6AddressListEnabled?: null | bool @go(IPv6AddressListEnabled,*bool) - - // One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Addresses are assigned without regard to order. You can't use this option if you're specifying ipv6_address_count. - // +kubebuilder:validation:Optional - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - - // Number of IPv6 prefixes that AWS automatically assigns to the network interface. - // +kubebuilder:validation:Optional - ipv6PrefixCount?: null | float64 @go(IPv6PrefixCount,*float64) - - // One or more IPv6 prefixes assigned to the network interface. - // +kubebuilder:validation:Optional - ipv6Prefixes?: [...null | string] @go(IPv6Prefixes,[]*string) - - // Type of network interface to create. Set to efa for Elastic Fabric Adapter. Changing interface_type will cause the resource to be destroyed and re-created. - // +kubebuilder:validation:Optional - interfaceType?: null | string @go(InterfaceType,*string) - - // +kubebuilder:validation:Optional - privateIp?: null | string @go(PrivateIP,*string) - - // List of private IPs to assign to the ENI in sequential order. Requires setting private_ip_list_enabled to true. - // +kubebuilder:validation:Optional - privateIpList?: [...null | string] @go(PrivateIPList,[]*string) - - // Whether private_ip_list is allowed and controls the IPs to assign to the ENI and private_ips and private_ips_count become read-only. Default false. - // +kubebuilder:validation:Optional - privateIpListEnabled?: null | bool @go(PrivateIPListEnabled,*bool) - - // List of private IPs to assign to the ENI without regard to order. - // +kubebuilder:validation:Optional - privateIps?: [...null | string] @go(PrivateIps,[]*string) - - // Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default. - // +kubebuilder:validation:Optional - privateIpsCount?: null | float64 @go(PrivateIpsCount,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to SecurityGroup to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupRefs?: [...v1.#Reference] @go(SecurityGroupRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupSelector?: null | v1.#Selector @go(SecurityGroupSelector,*v1.Selector) - - // List of security group IDs to assign to the ENI. - // +crossplane:generate:reference:type=SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupSelector - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Whether to enable source destination checking for the ENI. Default true. - // +kubebuilder:validation:Optional - sourceDestCheck?: null | bool @go(SourceDestCheck,*bool) - - // Subnet ID to create the ENI in. - // +crossplane:generate:reference:type=Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// NetworkInterfaceSpec defines the desired state of NetworkInterface -#NetworkInterfaceSpec: { - v1.#ResourceSpec - forProvider: #NetworkInterfaceParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NetworkInterfaceInitParameters_2 @go(InitProvider) -} - -// NetworkInterfaceStatus defines the observed state of NetworkInterface. -#NetworkInterfaceStatus: { - v1.#ResourceStatus - atProvider?: #NetworkInterfaceObservation_2 @go(AtProvider) -} - -// NetworkInterface is the Schema for the NetworkInterfaces API. Provides an Elastic network interface (ENI) resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NetworkInterface: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #NetworkInterfaceSpec @go(Spec) - status?: #NetworkInterfaceStatus @go(Status) -} - -// NetworkInterfaceList contains a list of NetworkInterfaces -#NetworkInterfaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NetworkInterface] @go(Items,[]NetworkInterface) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinterfaceattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinterfaceattachment_types_go_gen.cue deleted file mode 100644 index d7b7019..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinterfaceattachment_types_go_gen.cue +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NetworkInterfaceAttachmentInitParameters: { - // Network interface index (int). - deviceIndex?: null | float64 @go(DeviceIndex,*float64) -} - -#NetworkInterfaceAttachmentObservation: { - // The ENI Attachment ID. - attachmentId?: null | string @go(AttachmentID,*string) - - // Network interface index (int). - deviceIndex?: null | float64 @go(DeviceIndex,*float64) - id?: null | string @go(ID,*string) - - // Instance ID to attach. - instanceId?: null | string @go(InstanceID,*string) - - // ENI ID to attach. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // The status of the Network Interface Attachment. - status?: null | string @go(Status,*string) -} - -#NetworkInterfaceAttachmentParameters: { - // Network interface index (int). - // +kubebuilder:validation:Optional - deviceIndex?: null | float64 @go(DeviceIndex,*float64) - - // Instance ID to attach. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in ec2 to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in ec2 to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // ENI ID to attach. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.NetworkInterface - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // Reference to a NetworkInterface in ec2 to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdRef?: null | v1.#Reference @go(NetworkInterfaceIDRef,*v1.Reference) - - // Selector for a NetworkInterface in ec2 to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdSelector?: null | v1.#Selector @go(NetworkInterfaceIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// NetworkInterfaceAttachmentSpec defines the desired state of NetworkInterfaceAttachment -#NetworkInterfaceAttachmentSpec: { - v1.#ResourceSpec - forProvider: #NetworkInterfaceAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NetworkInterfaceAttachmentInitParameters @go(InitProvider) -} - -// NetworkInterfaceAttachmentStatus defines the observed state of NetworkInterfaceAttachment. -#NetworkInterfaceAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #NetworkInterfaceAttachmentObservation @go(AtProvider) -} - -// NetworkInterfaceAttachment is the Schema for the NetworkInterfaceAttachments API. Attach an Elastic network interface (ENI) resource with EC2 instance. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NetworkInterfaceAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.deviceIndex) || (has(self.initProvider) && has(self.initProvider.deviceIndex))",message="spec.forProvider.deviceIndex is a required parameter" - spec: #NetworkInterfaceAttachmentSpec @go(Spec) - status?: #NetworkInterfaceAttachmentStatus @go(Status) -} - -// NetworkInterfaceAttachmentList contains a list of NetworkInterfaceAttachments -#NetworkInterfaceAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NetworkInterfaceAttachment] @go(Items,[]NetworkInterfaceAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinterfacesgattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinterfacesgattachment_types_go_gen.cue deleted file mode 100644 index bab7bf1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_networkinterfacesgattachment_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NetworkInterfaceSgAttachmentInitParameters: { -} - -#NetworkInterfaceSgAttachmentObservation: { - id?: null | string @go(ID,*string) - - // The ID of the network interface to attach to. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // The ID of the security group. - securityGroupId?: null | string @go(SecurityGroupID,*string) -} - -#NetworkInterfaceSgAttachmentParameters: { - // The ID of the network interface to attach to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("primary_network_interface_id",true) - // +kubebuilder:validation:Optional - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // Reference to a Instance in ec2 to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdRef?: null | v1.#Reference @go(NetworkInterfaceIDRef,*v1.Reference) - - // Selector for a Instance in ec2 to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdSelector?: null | v1.#Selector @go(NetworkInterfaceIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the security group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +kubebuilder:validation:Optional - securityGroupId?: null | string @go(SecurityGroupID,*string) - - // Reference to a SecurityGroup in ec2 to populate securityGroupId. - // +kubebuilder:validation:Optional - securityGroupIdRef?: null | v1.#Reference @go(SecurityGroupIDRef,*v1.Reference) - - // Selector for a SecurityGroup in ec2 to populate securityGroupId. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) -} - -// NetworkInterfaceSgAttachmentSpec defines the desired state of NetworkInterfaceSgAttachment -#NetworkInterfaceSgAttachmentSpec: { - v1.#ResourceSpec - forProvider: #NetworkInterfaceSgAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NetworkInterfaceSgAttachmentInitParameters @go(InitProvider) -} - -// NetworkInterfaceSgAttachmentStatus defines the observed state of NetworkInterfaceSgAttachment. -#NetworkInterfaceSgAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #NetworkInterfaceSgAttachmentObservation @go(AtProvider) -} - -// NetworkInterfaceSgAttachment is the Schema for the NetworkInterfaceSgAttachments API. Associates a security group with a network interface. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NetworkInterfaceSgAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #NetworkInterfaceSgAttachmentSpec @go(Spec) - status?: #NetworkInterfaceSgAttachmentStatus @go(Status) -} - -// NetworkInterfaceSgAttachmentList contains a list of NetworkInterfaceSgAttachments -#NetworkInterfaceSgAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NetworkInterfaceSgAttachment] @go(Items,[]NetworkInterfaceSgAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_placementgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_placementgroup_types_go_gen.cue deleted file mode 100644 index 3b56f29..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_placementgroup_types_go_gen.cue +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PlacementGroupInitParameters: { - // The number of partitions to create in the - // placement group. Can only be specified when the strategy is set to - // partition. Valid values are 1 - 7 (default is 2). - partitionCount?: null | float64 @go(PartitionCount,*float64) - - // Determines how placement groups spread instances. Can only be used - // when the strategy is set to spread. Can be host or rack. host can only be used for Outpost placement groups. Defaults to rack. - spreadLevel?: null | string @go(SpreadLevel,*string) - - // The placement strategy. Can be cluster, partition or spread. - strategy?: null | string @go(Strategy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PlacementGroupObservation: { - // Amazon Resource Name (ARN) of the placement group. - arn?: null | string @go(Arn,*string) - - // The name of the placement group. - id?: null | string @go(ID,*string) - - // The number of partitions to create in the - // placement group. Can only be specified when the strategy is set to - // partition. Valid values are 1 - 7 (default is 2). - partitionCount?: null | float64 @go(PartitionCount,*float64) - - // The ID of the placement group. - placementGroupId?: null | string @go(PlacementGroupID,*string) - - // Determines how placement groups spread instances. Can only be used - // when the strategy is set to spread. Can be host or rack. host can only be used for Outpost placement groups. Defaults to rack. - spreadLevel?: null | string @go(SpreadLevel,*string) - - // The placement strategy. Can be cluster, partition or spread. - strategy?: null | string @go(Strategy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#PlacementGroupParameters: { - // The number of partitions to create in the - // placement group. Can only be specified when the strategy is set to - // partition. Valid values are 1 - 7 (default is 2). - // +kubebuilder:validation:Optional - partitionCount?: null | float64 @go(PartitionCount,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Determines how placement groups spread instances. Can only be used - // when the strategy is set to spread. Can be host or rack. host can only be used for Outpost placement groups. Defaults to rack. - // +kubebuilder:validation:Optional - spreadLevel?: null | string @go(SpreadLevel,*string) - - // The placement strategy. Can be cluster, partition or spread. - // +kubebuilder:validation:Optional - strategy?: null | string @go(Strategy,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// PlacementGroupSpec defines the desired state of PlacementGroup -#PlacementGroupSpec: { - v1.#ResourceSpec - forProvider: #PlacementGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PlacementGroupInitParameters @go(InitProvider) -} - -// PlacementGroupStatus defines the observed state of PlacementGroup. -#PlacementGroupStatus: { - v1.#ResourceStatus - atProvider?: #PlacementGroupObservation @go(AtProvider) -} - -// PlacementGroup is the Schema for the PlacementGroups API. Provides an EC2 placement group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PlacementGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.strategy) || (has(self.initProvider) && has(self.initProvider.strategy))",message="spec.forProvider.strategy is a required parameter" - spec: #PlacementGroupSpec @go(Spec) - status?: #PlacementGroupStatus @go(Status) -} - -// PlacementGroupList contains a list of PlacementGroups -#PlacementGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PlacementGroup] @go(Items,[]PlacementGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_route_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_route_types_go_gen.cue deleted file mode 100644 index 5b3640c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_route_types_go_gen.cue +++ /dev/null @@ -1,289 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RouteInitParameters_2: { - // Identifier of a carrier gateway. This attribute can only be used when the VPC contains a subnet which is associated with a Wavelength Zone. - carrierGatewayId?: null | string @go(CarrierGatewayID,*string) - - // The Amazon Resource Name (ARN) of a core network. - coreNetworkArn?: null | string @go(CoreNetworkArn,*string) - - // The destination CIDR block. - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) - - // The destination IPv6 CIDR block. - destinationIpv6CidrBlock?: null | string @go(DestinationIPv6CidrBlock,*string) - - // Identifier of a Outpost local gateway. - localGatewayId?: null | string @go(LocalGatewayID,*string) -} - -#RouteObservation_2: { - // Identifier of a carrier gateway. This attribute can only be used when the VPC contains a subnet which is associated with a Wavelength Zone. - carrierGatewayId?: null | string @go(CarrierGatewayID,*string) - - // The Amazon Resource Name (ARN) of a core network. - coreNetworkArn?: null | string @go(CoreNetworkArn,*string) - - // The destination CIDR block. - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) - - // The destination IPv6 CIDR block. - destinationIpv6CidrBlock?: null | string @go(DestinationIPv6CidrBlock,*string) - - // The ID of a managed prefix list destination. - destinationPrefixListId?: null | string @go(DestinationPrefixListID,*string) - - // Identifier of a VPC Egress Only Internet Gateway. - egressOnlyGatewayId?: null | string @go(EgressOnlyGatewayID,*string) - - // Identifier of a VPC internet gateway or a virtual private gateway. Specify local when updating a previously imported local route. - gatewayId?: null | string @go(GatewayID,*string) - - // Route identifier computed from the routing table identifier and route destination. - id?: null | string @go(ID,*string) - - // Identifier of an EC2 instance. - instanceId?: null | string @go(InstanceID,*string) - - // The AWS account ID of the owner of the EC2 instance. - instanceOwnerId?: null | string @go(InstanceOwnerID,*string) - - // Identifier of a Outpost local gateway. - localGatewayId?: null | string @go(LocalGatewayID,*string) - - // Identifier of a VPC NAT gateway. - natGatewayId?: null | string @go(NATGatewayID,*string) - - // Identifier of an EC2 network interface. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // How the route was created - CreateRouteTable, CreateRoute or EnableVgwRoutePropagation. - origin?: null | string @go(Origin,*string) - - // The ID of the routing table. - routeTableId?: null | string @go(RouteTableID,*string) - - // The state of the route - active or blackhole. - state?: null | string @go(State,*string) - - // Identifier of an EC2 Transit Gateway. - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Identifier of a VPC Endpoint. - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // Identifier of a VPC peering connection. - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) -} - -#RouteParameters_2: { - // Identifier of a carrier gateway. This attribute can only be used when the VPC contains a subnet which is associated with a Wavelength Zone. - // +kubebuilder:validation:Optional - carrierGatewayId?: null | string @go(CarrierGatewayID,*string) - - // The Amazon Resource Name (ARN) of a core network. - // +kubebuilder:validation:Optional - coreNetworkArn?: null | string @go(CoreNetworkArn,*string) - - // The destination CIDR block. - // +kubebuilder:validation:Optional - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) - - // The destination IPv6 CIDR block. - // +kubebuilder:validation:Optional - destinationIpv6CidrBlock?: null | string @go(DestinationIPv6CidrBlock,*string) - - // The ID of a managed prefix list destination. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.ManagedPrefixList - // +kubebuilder:validation:Optional - destinationPrefixListId?: null | string @go(DestinationPrefixListID,*string) - - // Reference to a ManagedPrefixList in ec2 to populate destinationPrefixListId. - // +kubebuilder:validation:Optional - destinationPrefixListIdRef?: null | v1.#Reference @go(DestinationPrefixListIDRef,*v1.Reference) - - // Selector for a ManagedPrefixList in ec2 to populate destinationPrefixListId. - // +kubebuilder:validation:Optional - destinationPrefixListIdSelector?: null | v1.#Selector @go(DestinationPrefixListIDSelector,*v1.Selector) - - // Identifier of a VPC Egress Only Internet Gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.EgressOnlyInternetGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - egressOnlyGatewayId?: null | string @go(EgressOnlyGatewayID,*string) - - // Reference to a EgressOnlyInternetGateway in ec2 to populate egressOnlyGatewayId. - // +kubebuilder:validation:Optional - egressOnlyGatewayIdRef?: null | v1.#Reference @go(EgressOnlyGatewayIDRef,*v1.Reference) - - // Selector for a EgressOnlyInternetGateway in ec2 to populate egressOnlyGatewayId. - // +kubebuilder:validation:Optional - egressOnlyGatewayIdSelector?: null | v1.#Selector @go(EgressOnlyGatewayIDSelector,*v1.Selector) - - // Identifier of a VPC internet gateway or a virtual private gateway. Specify local when updating a previously imported local route. - // +crossplane:generate:reference:type=InternetGateway - // +kubebuilder:validation:Optional - gatewayId?: null | string @go(GatewayID,*string) - - // Reference to a InternetGateway to populate gatewayId. - // +kubebuilder:validation:Optional - gatewayIdRef?: null | v1.#Reference @go(GatewayIDRef,*v1.Reference) - - // Selector for a InternetGateway to populate gatewayId. - // +kubebuilder:validation:Optional - gatewayIdSelector?: null | v1.#Selector @go(GatewayIDSelector,*v1.Selector) - - // Identifier of an EC2 instance. - // +crossplane:generate:reference:type=Instance - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Identifier of a Outpost local gateway. - // +kubebuilder:validation:Optional - localGatewayId?: null | string @go(LocalGatewayID,*string) - - // Identifier of a VPC NAT gateway. - // +crossplane:generate:reference:type=NATGateway - // +kubebuilder:validation:Optional - natGatewayId?: null | string @go(NATGatewayID,*string) - - // Reference to a NATGateway to populate natGatewayId. - // +kubebuilder:validation:Optional - natGatewayIdRef?: null | v1.#Reference @go(NATGatewayIDRef,*v1.Reference) - - // Selector for a NATGateway to populate natGatewayId. - // +kubebuilder:validation:Optional - natGatewayIdSelector?: null | v1.#Selector @go(NATGatewayIDSelector,*v1.Selector) - - // Identifier of an EC2 network interface. - // +crossplane:generate:reference:type=NetworkInterface - // +kubebuilder:validation:Optional - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // Reference to a NetworkInterface to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdRef?: null | v1.#Reference @go(NetworkInterfaceIDRef,*v1.Reference) - - // Selector for a NetworkInterface to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdSelector?: null | v1.#Selector @go(NetworkInterfaceIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the routing table. - // +crossplane:generate:reference:type=RouteTable - // +kubebuilder:validation:Optional - routeTableId?: null | string @go(RouteTableID,*string) - - // Reference to a RouteTable to populate routeTableId. - // +kubebuilder:validation:Optional - routeTableIdRef?: null | v1.#Reference @go(RouteTableIDRef,*v1.Reference) - - // Selector for a RouteTable to populate routeTableId. - // +kubebuilder:validation:Optional - routeTableIdSelector?: null | v1.#Selector @go(RouteTableIDSelector,*v1.Selector) - - // Identifier of an EC2 Transit Gateway. - // +crossplane:generate:reference:type=TransitGateway - // +kubebuilder:validation:Optional - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Reference to a TransitGateway to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdRef?: null | v1.#Reference @go(TransitGatewayIDRef,*v1.Reference) - - // Selector for a TransitGateway to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdSelector?: null | v1.#Selector @go(TransitGatewayIDSelector,*v1.Selector) - - // Identifier of a VPC Endpoint. - // +crossplane:generate:reference:type=VPCEndpoint - // +kubebuilder:validation:Optional - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // Reference to a VPCEndpoint to populate vpcEndpointId. - // +kubebuilder:validation:Optional - vpcEndpointIdRef?: null | v1.#Reference @go(VPCEndpointIDRef,*v1.Reference) - - // Selector for a VPCEndpoint to populate vpcEndpointId. - // +kubebuilder:validation:Optional - vpcEndpointIdSelector?: null | v1.#Selector @go(VPCEndpointIDSelector,*v1.Selector) - - // Identifier of a VPC peering connection. - // +crossplane:generate:reference:type=VPCPeeringConnection - // +kubebuilder:validation:Optional - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) - - // Reference to a VPCPeeringConnection to populate vpcPeeringConnectionId. - // +kubebuilder:validation:Optional - vpcPeeringConnectionIdRef?: null | v1.#Reference @go(VPCPeeringConnectionIDRef,*v1.Reference) - - // Selector for a VPCPeeringConnection to populate vpcPeeringConnectionId. - // +kubebuilder:validation:Optional - vpcPeeringConnectionIdSelector?: null | v1.#Selector @go(VPCPeeringConnectionIDSelector,*v1.Selector) -} - -// RouteSpec defines the desired state of Route -#RouteSpec: { - v1.#ResourceSpec - forProvider: #RouteParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RouteInitParameters_2 @go(InitProvider) -} - -// RouteStatus defines the observed state of Route. -#RouteStatus: { - v1.#ResourceStatus - atProvider?: #RouteObservation_2 @go(AtProvider) -} - -// Route is the Schema for the Routes API. Provides a resource to create a routing entry in a VPC routing table. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Route: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RouteSpec @go(Spec) - status?: #RouteStatus @go(Status) -} - -// RouteList contains a list of Routes -#RouteList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Route] @go(Items,[]Route) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_routetable_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_routetable_types_go_gen.cue deleted file mode 100644 index a0d4a24..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_routetable_types_go_gen.cue +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RouteTableInitParameters_2: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RouteTableObservation_2: { - // The ARN of the route table. - arn?: null | string @go(Arn,*string) - - // The ID of the routing table. - id?: null | string @go(ID,*string) - - // The ID of the AWS account that owns the route table. - ownerId?: null | string @go(OwnerID,*string) - - // A list of virtual gateways for propagation. - propagatingVgws?: [...null | string] @go(PropagatingVgws,[]*string) - - // A list of route objects. Their keys are documented below. This argument is processed in attribute-as-blocks mode. - // This means that omitting this argument is interpreted as ignoring any existing routes. To remove all managed routes an empty list should be specified. See the example above. - route?: [...#RouteTableRouteObservation_2] @go(Route,[]RouteTableRouteObservation_2) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The VPC ID. - vpcId?: null | string @go(VPCID,*string) -} - -#RouteTableParameters_2: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VPC ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -#RouteTableRouteInitParameters_2: { -} - -#RouteTableRouteObservation_2: { - // Identifier of a carrier gateway. This attribute can only be used when the VPC contains a subnet which is associated with a Wavelength Zone. - carrierGatewayId?: null | string @go(CarrierGatewayID,*string) - - // The CIDR block of the route. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The Amazon Resource Name (ARN) of a core network. - coreNetworkArn?: null | string @go(CoreNetworkArn,*string) - - // The ID of a managed prefix list destination of the route. - destinationPrefixListId?: null | string @go(DestinationPrefixListID,*string) - - // Identifier of a VPC Egress Only Internet Gateway. - egressOnlyGatewayId?: null | string @go(EgressOnlyGatewayID,*string) - - // Identifier of a VPC internet gateway or a virtual private gateway. - gatewayId?: null | string @go(GatewayID,*string) - - // The Ipv6 CIDR block of the route. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // Identifier of an EC2 instance. - instanceId?: null | string @go(InstanceID,*string) - - // Identifier of a Outpost local gateway. - localGatewayId?: null | string @go(LocalGatewayID,*string) - - // Identifier of a VPC NAT gateway. - natGatewayId?: null | string @go(NATGatewayID,*string) - - // Identifier of an EC2 network interface. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // Identifier of an EC2 Transit Gateway. - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Identifier of a VPC Endpoint. - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // Identifier of a VPC peering connection. - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) -} - -#RouteTableRouteParameters_2: { -} - -// RouteTableSpec defines the desired state of RouteTable -#RouteTableSpec: { - v1.#ResourceSpec - forProvider: #RouteTableParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RouteTableInitParameters_2 @go(InitProvider) -} - -// RouteTableStatus defines the observed state of RouteTable. -#RouteTableStatus: { - v1.#ResourceStatus - atProvider?: #RouteTableObservation_2 @go(AtProvider) -} - -// RouteTable is the Schema for the RouteTables API. Provides a resource to create a VPC routing table. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RouteTable: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RouteTableSpec @go(Spec) - status?: #RouteTableStatus @go(Status) -} - -// RouteTableList contains a list of RouteTables -#RouteTableList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RouteTable] @go(Items,[]RouteTable) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_routetableassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_routetableassociation_types_go_gen.cue deleted file mode 100644 index faa02da..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_routetableassociation_types_go_gen.cue +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RouteTableAssociationInitParameters: { -} - -#RouteTableAssociationObservation: { - // The gateway ID to create an association. Conflicts with subnet_id. - gatewayId?: null | string @go(GatewayID,*string) - - // The ID of the association - id?: null | string @go(ID,*string) - - // The ID of the routing table to associate with. - routeTableId?: null | string @go(RouteTableID,*string) - - // The subnet ID to create an association. Conflicts with gateway_id. - subnetId?: null | string @go(SubnetID,*string) -} - -#RouteTableAssociationParameters: { - // The gateway ID to create an association. Conflicts with subnet_id. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.InternetGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - gatewayId?: null | string @go(GatewayID,*string) - - // Reference to a InternetGateway in ec2 to populate gatewayId. - // +kubebuilder:validation:Optional - gatewayIdRef?: null | v1.#Reference @go(GatewayIDRef,*v1.Reference) - - // Selector for a InternetGateway in ec2 to populate gatewayId. - // +kubebuilder:validation:Optional - gatewayIdSelector?: null | v1.#Selector @go(GatewayIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the routing table to associate with. - // +crossplane:generate:reference:type=RouteTable - // +kubebuilder:validation:Optional - routeTableId?: null | string @go(RouteTableID,*string) - - // Reference to a RouteTable to populate routeTableId. - // +kubebuilder:validation:Optional - routeTableIdRef?: null | v1.#Reference @go(RouteTableIDRef,*v1.Reference) - - // Selector for a RouteTable to populate routeTableId. - // +kubebuilder:validation:Optional - routeTableIdSelector?: null | v1.#Selector @go(RouteTableIDSelector,*v1.Selector) - - // The subnet ID to create an association. Conflicts with gateway_id. - // +crossplane:generate:reference:type=Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) -} - -// RouteTableAssociationSpec defines the desired state of RouteTableAssociation -#RouteTableAssociationSpec: { - v1.#ResourceSpec - forProvider: #RouteTableAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RouteTableAssociationInitParameters @go(InitProvider) -} - -// RouteTableAssociationStatus defines the observed state of RouteTableAssociation. -#RouteTableAssociationStatus: { - v1.#ResourceStatus - atProvider?: #RouteTableAssociationObservation @go(AtProvider) -} - -// RouteTableAssociation is the Schema for the RouteTableAssociations API. Provides a resource to create an association between a route table and a subnet or a route table and an internet gateway or virtual private gateway. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RouteTableAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RouteTableAssociationSpec @go(Spec) - status?: #RouteTableAssociationStatus @go(Status) -} - -// RouteTableAssociationList contains a list of RouteTableAssociations -#RouteTableAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RouteTableAssociation] @go(Items,[]RouteTableAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_securitygroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_securitygroup_types_go_gen.cue deleted file mode 100644 index 339887a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_securitygroup_types_go_gen.cue +++ /dev/null @@ -1,210 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SecurityGroupEgressInitParameters: { -} - -#SecurityGroupEgressObservation: { - // List of CIDR blocks. - cidrBlocks?: [...null | string] @go(CidrBlocks,[]*string) - - // Security group description. Cannot be "". NOTE: This field maps to the AWS GroupDescription attribute, for which there is no Update API. If you'd like to classify your security groups in a way that can be updated, use tags. - description?: null | string @go(Description,*string) - - // Start port (or ICMP type number if protocol is icmp or icmpv6). - fromPort?: null | float64 @go(FromPort,*float64) - - // List of IPv6 CIDR blocks. - ipv6CidrBlocks?: [...null | string] @go(IPv6CidrBlocks,[]*string) - - // List of Prefix List IDs. - prefixListIds?: [...null | string] @go(PrefixListIds,[]*string) - - // Protocol. If you select a protocol of -1 (semantically equivalent to all, which is not a valid value here), you must specify a from_port and to_port equal to 0. The supported values are defined in the IpProtocol argument on the IpPermission API reference.12. - protocol?: null | string @go(Protocol,*string) - - // List of security groups. A group name can be used relative to the default VPC. Otherwise, group ID. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Whether the security group itself will be added as a source to this ingress rule. - self?: null | bool @go(Self,*bool) - - // End range port (or ICMP code if protocol is icmp). - toPort?: null | float64 @go(ToPort,*float64) -} - -#SecurityGroupEgressParameters: { -} - -#SecurityGroupIngressInitParameters: { -} - -#SecurityGroupIngressObservation: { - // List of CIDR blocks. - cidrBlocks?: [...null | string] @go(CidrBlocks,[]*string) - - // Security group description. Cannot be "". NOTE: This field maps to the AWS GroupDescription attribute, for which there is no Update API. If you'd like to classify your security groups in a way that can be updated, use tags. - description?: null | string @go(Description,*string) - - // Start port (or ICMP type number if protocol is icmp or icmpv6). - fromPort?: null | float64 @go(FromPort,*float64) - - // List of IPv6 CIDR blocks. - ipv6CidrBlocks?: [...null | string] @go(IPv6CidrBlocks,[]*string) - - // List of Prefix List IDs. - prefixListIds?: [...null | string] @go(PrefixListIds,[]*string) - - // Protocol. If you select a protocol of -1 (semantically equivalent to all, which is not a valid value here), you must specify a from_port and to_port equal to 0. The supported values are defined in the IpProtocol argument on the IpPermission API reference.12. - protocol?: null | string @go(Protocol,*string) - - // List of security groups. A group name can be used relative to the default VPC. Otherwise, group ID. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Whether the security group itself will be added as a source to this ingress rule. - self?: null | bool @go(Self,*bool) - - // End range port (or ICMP code if protocol is icmp). - toPort?: null | float64 @go(ToPort,*float64) -} - -#SecurityGroupIngressParameters: { -} - -#SecurityGroupInitParameters_2: { - // Security group description. Cannot be "". NOTE: This field maps to the AWS GroupDescription attribute, for which there is no Update API. If you'd like to classify your security groups in a way that can be updated, use tags. - description?: null | string @go(Description,*string) - - // Name of the security group. - name?: null | string @go(Name,*string) - - // This is normally not needed, however certain AWS services such as Elastic Map Reduce may automatically add required rules to security groups used with the service, and those rules may contain a cyclic dependency that prevent the security groups from being destroyed without removing the dependency first. Default false. - revokeRulesOnDelete?: null | bool @go(RevokeRulesOnDelete,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SecurityGroupObservation_2: { - // ARN of the security group. - arn?: null | string @go(Arn,*string) - - // Security group description. Cannot be "". NOTE: This field maps to the AWS GroupDescription attribute, for which there is no Update API. If you'd like to classify your security groups in a way that can be updated, use tags. - description?: null | string @go(Description,*string) - - // Configuration block for egress rules. Can be specified multiple times for each egress rule. Each egress block supports fields documented below. This argument is processed in attribute-as-blocks mode. - egress?: [...#SecurityGroupEgressObservation] @go(Egress,[]SecurityGroupEgressObservation) - - // ID of the security group. - id?: null | string @go(ID,*string) - - // Configuration block for ingress rules. Can be specified multiple times for each ingress rule. Each ingress block supports fields documented below. This argument is processed in attribute-as-blocks mode. - ingress?: [...#SecurityGroupIngressObservation] @go(Ingress,[]SecurityGroupIngressObservation) - - // Name of the security group. - name?: null | string @go(Name,*string) - - // Owner ID. - ownerId?: null | string @go(OwnerID,*string) - - // This is normally not needed, however certain AWS services such as Elastic Map Reduce may automatically add required rules to security groups used with the service, and those rules may contain a cyclic dependency that prevent the security groups from being destroyed without removing the dependency first. Default false. - revokeRulesOnDelete?: null | bool @go(RevokeRulesOnDelete,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // VPC ID. Defaults to the region's default VPC. - vpcId?: null | string @go(VPCID,*string) -} - -#SecurityGroupParameters_2: { - // Security group description. Cannot be "". NOTE: This field maps to the AWS GroupDescription attribute, for which there is no Update API. If you'd like to classify your security groups in a way that can be updated, use tags. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Name of the security group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // This is normally not needed, however certain AWS services such as Elastic Map Reduce may automatically add required rules to security groups used with the service, and those rules may contain a cyclic dependency that prevent the security groups from being destroyed without removing the dependency first. Default false. - // +kubebuilder:validation:Optional - revokeRulesOnDelete?: null | bool @go(RevokeRulesOnDelete,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // VPC ID. Defaults to the region's default VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// SecurityGroupSpec defines the desired state of SecurityGroup -#SecurityGroupSpec: { - v1.#ResourceSpec - forProvider: #SecurityGroupParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SecurityGroupInitParameters_2 @go(InitProvider) -} - -// SecurityGroupStatus defines the observed state of SecurityGroup. -#SecurityGroupStatus: { - v1.#ResourceStatus - atProvider?: #SecurityGroupObservation_2 @go(AtProvider) -} - -// SecurityGroup is the Schema for the SecurityGroups API. Provides a security group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SecurityGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SecurityGroupSpec @go(Spec) - status?: #SecurityGroupStatus @go(Status) -} - -// SecurityGroupList contains a list of SecurityGroups -#SecurityGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SecurityGroup] @go(Items,[]SecurityGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_securitygroupegressrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_securitygroupegressrule_types_go_gen.cue deleted file mode 100644 index 04bbcf9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_securitygroupegressrule_types_go_gen.cue +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SecurityGroupEgressRuleInitParameters: { - // The destination IPv4 CIDR range. - cidrIpv4?: null | string @go(CidrIPv4,*string) - - // The destination IPv6 CIDR range. - cidrIpv6?: null | string @go(CidrIPv6,*string) - - // The security group rule description. - description?: null | string @go(Description,*string) - - // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type. - fromPort?: null | float64 @go(FromPort,*float64) - - // The IP protocol name or number. Use -1 to specify all protocols. - ipProtocol?: null | string @go(IPProtocol,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. - toPort?: null | float64 @go(ToPort,*float64) -} - -#SecurityGroupEgressRuleObservation: { - // The Amazon Resource Name (ARN) of the security group rule. - arn?: null | string @go(Arn,*string) - - // The destination IPv4 CIDR range. - cidrIpv4?: null | string @go(CidrIPv4,*string) - - // The destination IPv6 CIDR range. - cidrIpv6?: null | string @go(CidrIPv6,*string) - - // The security group rule description. - description?: null | string @go(Description,*string) - - // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type. - fromPort?: null | float64 @go(FromPort,*float64) - id?: null | string @go(ID,*string) - - // The IP protocol name or number. Use -1 to specify all protocols. - ipProtocol?: null | string @go(IPProtocol,*string) - - // The ID of the destination prefix list. - prefixListId?: null | string @go(PrefixListID,*string) - - // The destination security group that is referenced in the rule. - referencedSecurityGroupId?: null | string @go(ReferencedSecurityGroupID,*string) - - // The ID of the security group. - securityGroupId?: null | string @go(SecurityGroupID,*string) - - // The ID of the security group rule. - securityGroupRuleId?: null | string @go(SecurityGroupRuleID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. - toPort?: null | float64 @go(ToPort,*float64) -} - -#SecurityGroupEgressRuleParameters: { - // The destination IPv4 CIDR range. - // +kubebuilder:validation:Optional - cidrIpv4?: null | string @go(CidrIPv4,*string) - - // The destination IPv6 CIDR range. - // +kubebuilder:validation:Optional - cidrIpv6?: null | string @go(CidrIPv6,*string) - - // The security group rule description. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type. - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // The IP protocol name or number. Use -1 to specify all protocols. - // +kubebuilder:validation:Optional - ipProtocol?: null | string @go(IPProtocol,*string) - - // The ID of the destination prefix list. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.ManagedPrefixList - // +kubebuilder:validation:Optional - prefixListId?: null | string @go(PrefixListID,*string) - - // Reference to a ManagedPrefixList in ec2 to populate prefixListId. - // +kubebuilder:validation:Optional - prefixListIdRef?: null | v1.#Reference @go(PrefixListIDRef,*v1.Reference) - - // Selector for a ManagedPrefixList in ec2 to populate prefixListId. - // +kubebuilder:validation:Optional - prefixListIdSelector?: null | v1.#Selector @go(PrefixListIDSelector,*v1.Selector) - - // The destination security group that is referenced in the rule. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +kubebuilder:validation:Optional - referencedSecurityGroupId?: null | string @go(ReferencedSecurityGroupID,*string) - - // Reference to a SecurityGroup in ec2 to populate referencedSecurityGroupId. - // +kubebuilder:validation:Optional - referencedSecurityGroupIdRef?: null | v1.#Reference @go(ReferencedSecurityGroupIDRef,*v1.Reference) - - // Selector for a SecurityGroup in ec2 to populate referencedSecurityGroupId. - // +kubebuilder:validation:Optional - referencedSecurityGroupIdSelector?: null | v1.#Selector @go(ReferencedSecurityGroupIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the security group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +kubebuilder:validation:Optional - securityGroupId?: null | string @go(SecurityGroupID,*string) - - // Reference to a SecurityGroup in ec2 to populate securityGroupId. - // +kubebuilder:validation:Optional - securityGroupIdRef?: null | v1.#Reference @go(SecurityGroupIDRef,*v1.Reference) - - // Selector for a SecurityGroup in ec2 to populate securityGroupId. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -// SecurityGroupEgressRuleSpec defines the desired state of SecurityGroupEgressRule -#SecurityGroupEgressRuleSpec: { - v1.#ResourceSpec - forProvider: #SecurityGroupEgressRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SecurityGroupEgressRuleInitParameters @go(InitProvider) -} - -// SecurityGroupEgressRuleStatus defines the observed state of SecurityGroupEgressRule. -#SecurityGroupEgressRuleStatus: { - v1.#ResourceStatus - atProvider?: #SecurityGroupEgressRuleObservation @go(AtProvider) -} - -// SecurityGroupEgressRule is the Schema for the SecurityGroupEgressRules API. Provides a VPC security group egress rule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SecurityGroupEgressRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ipProtocol) || (has(self.initProvider) && has(self.initProvider.ipProtocol))",message="spec.forProvider.ipProtocol is a required parameter" - spec: #SecurityGroupEgressRuleSpec @go(Spec) - status?: #SecurityGroupEgressRuleStatus @go(Status) -} - -// SecurityGroupEgressRuleList contains a list of SecurityGroupEgressRules -#SecurityGroupEgressRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SecurityGroupEgressRule] @go(Items,[]SecurityGroupEgressRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_securitygroupingressrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_securitygroupingressrule_types_go_gen.cue deleted file mode 100644 index a37f245..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_securitygroupingressrule_types_go_gen.cue +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SecurityGroupIngressRuleInitParameters: { - // The source IPv4 CIDR range. - cidrIpv4?: null | string @go(CidrIPv4,*string) - - // The source IPv6 CIDR range. - cidrIpv6?: null | string @go(CidrIPv6,*string) - - // The security group rule description. - description?: null | string @go(Description,*string) - - // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type. - fromPort?: null | float64 @go(FromPort,*float64) - - // The IP protocol name or number. Use -1 to specify all protocols. - ipProtocol?: null | string @go(IPProtocol,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. - toPort?: null | float64 @go(ToPort,*float64) -} - -#SecurityGroupIngressRuleObservation: { - // The Amazon Resource Name (ARN) of the security group rule. - arn?: null | string @go(Arn,*string) - - // The source IPv4 CIDR range. - cidrIpv4?: null | string @go(CidrIPv4,*string) - - // The source IPv6 CIDR range. - cidrIpv6?: null | string @go(CidrIPv6,*string) - - // The security group rule description. - description?: null | string @go(Description,*string) - - // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type. - fromPort?: null | float64 @go(FromPort,*float64) - id?: null | string @go(ID,*string) - - // The IP protocol name or number. Use -1 to specify all protocols. - ipProtocol?: null | string @go(IPProtocol,*string) - - // The ID of the source prefix list. - prefixListId?: null | string @go(PrefixListID,*string) - - // The source security group that is referenced in the rule. - referencedSecurityGroupId?: null | string @go(ReferencedSecurityGroupID,*string) - - // The ID of the security group. - securityGroupId?: null | string @go(SecurityGroupID,*string) - - // The ID of the security group rule. - securityGroupRuleId?: null | string @go(SecurityGroupRuleID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. - toPort?: null | float64 @go(ToPort,*float64) -} - -#SecurityGroupIngressRuleParameters: { - // The source IPv4 CIDR range. - // +kubebuilder:validation:Optional - cidrIpv4?: null | string @go(CidrIPv4,*string) - - // The source IPv6 CIDR range. - // +kubebuilder:validation:Optional - cidrIpv6?: null | string @go(CidrIPv6,*string) - - // The security group rule description. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type. - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // The IP protocol name or number. Use -1 to specify all protocols. - // +kubebuilder:validation:Optional - ipProtocol?: null | string @go(IPProtocol,*string) - - // The ID of the source prefix list. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.ManagedPrefixList - // +kubebuilder:validation:Optional - prefixListId?: null | string @go(PrefixListID,*string) - - // Reference to a ManagedPrefixList in ec2 to populate prefixListId. - // +kubebuilder:validation:Optional - prefixListIdRef?: null | v1.#Reference @go(PrefixListIDRef,*v1.Reference) - - // Selector for a ManagedPrefixList in ec2 to populate prefixListId. - // +kubebuilder:validation:Optional - prefixListIdSelector?: null | v1.#Selector @go(PrefixListIDSelector,*v1.Selector) - - // The source security group that is referenced in the rule. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +kubebuilder:validation:Optional - referencedSecurityGroupId?: null | string @go(ReferencedSecurityGroupID,*string) - - // Reference to a SecurityGroup in ec2 to populate referencedSecurityGroupId. - // +kubebuilder:validation:Optional - referencedSecurityGroupIdRef?: null | v1.#Reference @go(ReferencedSecurityGroupIDRef,*v1.Reference) - - // Selector for a SecurityGroup in ec2 to populate referencedSecurityGroupId. - // +kubebuilder:validation:Optional - referencedSecurityGroupIdSelector?: null | v1.#Selector @go(ReferencedSecurityGroupIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the security group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +kubebuilder:validation:Optional - securityGroupId?: null | string @go(SecurityGroupID,*string) - - // Reference to a SecurityGroup in ec2 to populate securityGroupId. - // +kubebuilder:validation:Optional - securityGroupIdRef?: null | v1.#Reference @go(SecurityGroupIDRef,*v1.Reference) - - // Selector for a SecurityGroup in ec2 to populate securityGroupId. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -// SecurityGroupIngressRuleSpec defines the desired state of SecurityGroupIngressRule -#SecurityGroupIngressRuleSpec: { - v1.#ResourceSpec - forProvider: #SecurityGroupIngressRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SecurityGroupIngressRuleInitParameters @go(InitProvider) -} - -// SecurityGroupIngressRuleStatus defines the observed state of SecurityGroupIngressRule. -#SecurityGroupIngressRuleStatus: { - v1.#ResourceStatus - atProvider?: #SecurityGroupIngressRuleObservation @go(AtProvider) -} - -// SecurityGroupIngressRule is the Schema for the SecurityGroupIngressRules API. Provides a VPC security group ingress rule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SecurityGroupIngressRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ipProtocol) || (has(self.initProvider) && has(self.initProvider.ipProtocol))",message="spec.forProvider.ipProtocol is a required parameter" - spec: #SecurityGroupIngressRuleSpec @go(Spec) - status?: #SecurityGroupIngressRuleStatus @go(Status) -} - -// SecurityGroupIngressRuleList contains a list of SecurityGroupIngressRules -#SecurityGroupIngressRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SecurityGroupIngressRule] @go(Items,[]SecurityGroupIngressRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_securitygrouprule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_securitygrouprule_types_go_gen.cue deleted file mode 100644 index 421eff1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_securitygrouprule_types_go_gen.cue +++ /dev/null @@ -1,210 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SecurityGroupRuleInitParameters_2: { - // List of CIDR blocks. Cannot be specified with source_security_group_id or self. - cidrBlocks?: [...null | string] @go(CidrBlocks,[]*string) - - // Description of the rule. - description?: null | string @go(Description,*string) - - // Start port (or ICMP type number if protocol is "icmp" or "icmpv6"). - fromPort?: null | float64 @go(FromPort,*float64) - - // List of IPv6 CIDR blocks. Cannot be specified with source_security_group_id or self. - ipv6CidrBlocks?: [...null | string] @go(IPv6CidrBlocks,[]*string) - - // Protocol. If not icmp, icmpv6, tcp, udp, or all use the protocol number - protocol?: null | string @go(Protocol,*string) - - // Whether the security group itself will be added as a source to this ingress rule. Cannot be specified with cidr_blocks, ipv6_cidr_blocks, or source_security_group_id. - self?: null | bool @go(Self,*bool) - - // End port (or ICMP code if protocol is "icmp"). - toPort?: null | float64 @go(ToPort,*float64) - - // Type of rule being created. Valid options are ingress (inbound) - // or egress (outbound). - type?: null | string @go(Type,*string) -} - -#SecurityGroupRuleObservation_2: { - // List of CIDR blocks. Cannot be specified with source_security_group_id or self. - cidrBlocks?: [...null | string] @go(CidrBlocks,[]*string) - - // Description of the rule. - description?: null | string @go(Description,*string) - - // Start port (or ICMP type number if protocol is "icmp" or "icmpv6"). - fromPort?: null | float64 @go(FromPort,*float64) - - // ID of the security group rule. - id?: null | string @go(ID,*string) - - // List of IPv6 CIDR blocks. Cannot be specified with source_security_group_id or self. - ipv6CidrBlocks?: [...null | string] @go(IPv6CidrBlocks,[]*string) - - // List of Prefix List IDs. - prefixListIds?: [...null | string] @go(PrefixListIds,[]*string) - - // Protocol. If not icmp, icmpv6, tcp, udp, or all use the protocol number - protocol?: null | string @go(Protocol,*string) - - // Security group to apply this rule to. - securityGroupId?: null | string @go(SecurityGroupID,*string) - - // If the aws_security_group_rule resource has a single source or destination then this is the AWS Security Group Rule resource ID. Otherwise it is empty. - securityGroupRuleId?: null | string @go(SecurityGroupRuleID,*string) - - // Whether the security group itself will be added as a source to this ingress rule. Cannot be specified with cidr_blocks, ipv6_cidr_blocks, or source_security_group_id. - self?: null | bool @go(Self,*bool) - - // Security group id to allow access to/from, depending on the type. Cannot be specified with cidr_blocks, ipv6_cidr_blocks, or self. - sourceSecurityGroupId?: null | string @go(SourceSecurityGroupID,*string) - - // End port (or ICMP code if protocol is "icmp"). - toPort?: null | float64 @go(ToPort,*float64) - - // Type of rule being created. Valid options are ingress (inbound) - // or egress (outbound). - type?: null | string @go(Type,*string) -} - -#SecurityGroupRuleParameters_2: { - // List of CIDR blocks. Cannot be specified with source_security_group_id or self. - // +kubebuilder:validation:Optional - cidrBlocks?: [...null | string] @go(CidrBlocks,[]*string) - - // Description of the rule. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Start port (or ICMP type number if protocol is "icmp" or "icmpv6"). - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // List of IPv6 CIDR blocks. Cannot be specified with source_security_group_id or self. - // +kubebuilder:validation:Optional - ipv6CidrBlocks?: [...null | string] @go(IPv6CidrBlocks,[]*string) - - // References to ManagedPrefixList in ec2 to populate prefixListIds. - // +kubebuilder:validation:Optional - prefixListIdRefs?: [...v1.#Reference] @go(PrefixListIDRefs,[]v1.Reference) - - // Selector for a list of ManagedPrefixList in ec2 to populate prefixListIds. - // +kubebuilder:validation:Optional - prefixListIdSelector?: null | v1.#Selector @go(PrefixListIDSelector,*v1.Selector) - - // List of Prefix List IDs. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.ManagedPrefixList - // +crossplane:generate:reference:refFieldName=PrefixListIDRefs - // +crossplane:generate:reference:selectorFieldName=PrefixListIDSelector - // +kubebuilder:validation:Optional - prefixListIds?: [...null | string] @go(PrefixListIds,[]*string) - - // Protocol. If not icmp, icmpv6, tcp, udp, or all use the protocol number - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Security group to apply this rule to. - // +crossplane:generate:reference:type=SecurityGroup - // +kubebuilder:validation:Optional - securityGroupId?: null | string @go(SecurityGroupID,*string) - - // Reference to a SecurityGroup to populate securityGroupId. - // +kubebuilder:validation:Optional - securityGroupIdRef?: null | v1.#Reference @go(SecurityGroupIDRef,*v1.Reference) - - // Selector for a SecurityGroup to populate securityGroupId. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // Whether the security group itself will be added as a source to this ingress rule. Cannot be specified with cidr_blocks, ipv6_cidr_blocks, or source_security_group_id. - // +kubebuilder:validation:Optional - self?: null | bool @go(Self,*bool) - - // Security group id to allow access to/from, depending on the type. Cannot be specified with cidr_blocks, ipv6_cidr_blocks, or self. - // +crossplane:generate:reference:type=SecurityGroup - // +kubebuilder:validation:Optional - sourceSecurityGroupId?: null | string @go(SourceSecurityGroupID,*string) - - // Reference to a SecurityGroup to populate sourceSecurityGroupId. - // +kubebuilder:validation:Optional - sourceSecurityGroupIdRef?: null | v1.#Reference @go(SourceSecurityGroupIDRef,*v1.Reference) - - // Selector for a SecurityGroup to populate sourceSecurityGroupId. - // +kubebuilder:validation:Optional - sourceSecurityGroupIdSelector?: null | v1.#Selector @go(SourceSecurityGroupIDSelector,*v1.Selector) - - // End port (or ICMP code if protocol is "icmp"). - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) - - // Type of rule being created. Valid options are ingress (inbound) - // or egress (outbound). - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// SecurityGroupRuleSpec defines the desired state of SecurityGroupRule -#SecurityGroupRuleSpec: { - v1.#ResourceSpec - forProvider: #SecurityGroupRuleParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SecurityGroupRuleInitParameters_2 @go(InitProvider) -} - -// SecurityGroupRuleStatus defines the observed state of SecurityGroupRule. -#SecurityGroupRuleStatus: { - v1.#ResourceStatus - atProvider?: #SecurityGroupRuleObservation_2 @go(AtProvider) -} - -// SecurityGroupRule is the Schema for the SecurityGroupRules API. Provides an security group rule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SecurityGroupRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.fromPort) || (has(self.initProvider) && has(self.initProvider.fromPort))",message="spec.forProvider.fromPort is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.protocol) || (has(self.initProvider) && has(self.initProvider.protocol))",message="spec.forProvider.protocol is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.toPort) || (has(self.initProvider) && has(self.initProvider.toPort))",message="spec.forProvider.toPort is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #SecurityGroupRuleSpec @go(Spec) - status?: #SecurityGroupRuleStatus @go(Status) -} - -// SecurityGroupRuleList contains a list of SecurityGroupRules -#SecurityGroupRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SecurityGroupRule] @go(Items,[]SecurityGroupRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_serialconsoleaccess_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_serialconsoleaccess_types_go_gen.cue deleted file mode 100644 index 780824e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_serialconsoleaccess_types_go_gen.cue +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SerialConsoleAccessInitParameters: { - // Whether or not serial console access is enabled. Valid values are true or false. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) -} - -#SerialConsoleAccessObservation: { - // Whether or not serial console access is enabled. Valid values are true or false. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - id?: null | string @go(ID,*string) -} - -#SerialConsoleAccessParameters: { - // Whether or not serial console access is enabled. Valid values are true or false. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// SerialConsoleAccessSpec defines the desired state of SerialConsoleAccess -#SerialConsoleAccessSpec: { - v1.#ResourceSpec - forProvider: #SerialConsoleAccessParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SerialConsoleAccessInitParameters @go(InitProvider) -} - -// SerialConsoleAccessStatus defines the observed state of SerialConsoleAccess. -#SerialConsoleAccessStatus: { - v1.#ResourceStatus - atProvider?: #SerialConsoleAccessObservation @go(AtProvider) -} - -// SerialConsoleAccess is the Schema for the SerialConsoleAccesss API. Manages whether serial console access is enabled for your AWS account in the current AWS region. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SerialConsoleAccess: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SerialConsoleAccessSpec @go(Spec) - status?: #SerialConsoleAccessStatus @go(Status) -} - -// SerialConsoleAccessList contains a list of SerialConsoleAccesss -#SerialConsoleAccessList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SerialConsoleAccess] @go(Items,[]SerialConsoleAccess) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_snapshotcreatevolumepermission_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_snapshotcreatevolumepermission_types_go_gen.cue deleted file mode 100644 index 875d5ff..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_snapshotcreatevolumepermission_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SnapshotCreateVolumePermissionInitParameters: { - // An AWS Account ID to add create volume permissions. The AWS Account cannot be the snapshot's owner - accountId?: null | string @go(AccountID,*string) -} - -#SnapshotCreateVolumePermissionObservation: { - // An AWS Account ID to add create volume permissions. The AWS Account cannot be the snapshot's owner - accountId?: null | string @go(AccountID,*string) - - // A combination of "snapshot_id-account_id". - id?: null | string @go(ID,*string) - - // A snapshot ID - snapshotId?: null | string @go(SnapshotID,*string) -} - -#SnapshotCreateVolumePermissionParameters: { - // An AWS Account ID to add create volume permissions. The AWS Account cannot be the snapshot's owner - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A snapshot ID - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.EBSSnapshot - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - snapshotId?: null | string @go(SnapshotID,*string) - - // Reference to a EBSSnapshot in ec2 to populate snapshotId. - // +kubebuilder:validation:Optional - snapshotIdRef?: null | v1.#Reference @go(SnapshotIDRef,*v1.Reference) - - // Selector for a EBSSnapshot in ec2 to populate snapshotId. - // +kubebuilder:validation:Optional - snapshotIdSelector?: null | v1.#Selector @go(SnapshotIDSelector,*v1.Selector) -} - -// SnapshotCreateVolumePermissionSpec defines the desired state of SnapshotCreateVolumePermission -#SnapshotCreateVolumePermissionSpec: { - v1.#ResourceSpec - forProvider: #SnapshotCreateVolumePermissionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SnapshotCreateVolumePermissionInitParameters @go(InitProvider) -} - -// SnapshotCreateVolumePermissionStatus defines the observed state of SnapshotCreateVolumePermission. -#SnapshotCreateVolumePermissionStatus: { - v1.#ResourceStatus - atProvider?: #SnapshotCreateVolumePermissionObservation @go(AtProvider) -} - -// SnapshotCreateVolumePermission is the Schema for the SnapshotCreateVolumePermissions API. Adds create volume permission to an EBS Snapshot -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SnapshotCreateVolumePermission: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accountId) || (has(self.initProvider) && has(self.initProvider.accountId))",message="spec.forProvider.accountId is a required parameter" - spec: #SnapshotCreateVolumePermissionSpec @go(Spec) - status?: #SnapshotCreateVolumePermissionStatus @go(Status) -} - -// SnapshotCreateVolumePermissionList contains a list of SnapshotCreateVolumePermissions -#SnapshotCreateVolumePermissionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SnapshotCreateVolumePermission] @go(Items,[]SnapshotCreateVolumePermission) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_spotdatafeedsubscription_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_spotdatafeedsubscription_types_go_gen.cue deleted file mode 100644 index a7857c2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_spotdatafeedsubscription_types_go_gen.cue +++ /dev/null @@ -1,89 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SpotDatafeedSubscriptionInitParameters: { - // The Amazon S3 bucket in which to store the Spot instance data feed. - bucket?: null | string @go(Bucket,*string) - - // Path of folder inside bucket to place spot pricing data. - prefix?: null | string @go(Prefix,*string) -} - -#SpotDatafeedSubscriptionObservation: { - // The Amazon S3 bucket in which to store the Spot instance data feed. - bucket?: null | string @go(Bucket,*string) - id?: null | string @go(ID,*string) - - // Path of folder inside bucket to place spot pricing data. - prefix?: null | string @go(Prefix,*string) -} - -#SpotDatafeedSubscriptionParameters: { - // The Amazon S3 bucket in which to store the Spot instance data feed. - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Path of folder inside bucket to place spot pricing data. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// SpotDatafeedSubscriptionSpec defines the desired state of SpotDatafeedSubscription -#SpotDatafeedSubscriptionSpec: { - v1.#ResourceSpec - forProvider: #SpotDatafeedSubscriptionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SpotDatafeedSubscriptionInitParameters @go(InitProvider) -} - -// SpotDatafeedSubscriptionStatus defines the observed state of SpotDatafeedSubscription. -#SpotDatafeedSubscriptionStatus: { - v1.#ResourceStatus - atProvider?: #SpotDatafeedSubscriptionObservation @go(AtProvider) -} - -// SpotDatafeedSubscription is the Schema for the SpotDatafeedSubscriptions API. Provides a Spot Datafeed Subscription resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SpotDatafeedSubscription: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bucket) || (has(self.initProvider) && has(self.initProvider.bucket))",message="spec.forProvider.bucket is a required parameter" - spec: #SpotDatafeedSubscriptionSpec @go(Spec) - status?: #SpotDatafeedSubscriptionStatus @go(Status) -} - -// SpotDatafeedSubscriptionList contains a list of SpotDatafeedSubscriptions -#SpotDatafeedSubscriptionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SpotDatafeedSubscription] @go(Items,[]SpotDatafeedSubscription) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_spotfleetrequest_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_spotfleetrequest_types_go_gen.cue deleted file mode 100644 index 69f76db..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_spotfleetrequest_types_go_gen.cue +++ /dev/null @@ -1,1335 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CapacityRebalanceInitParameters: { - // The replacement strategy to use. Only available for spot fleets with fleet_type set to maintain. Valid values: launch. - replacementStrategy?: null | string @go(ReplacementStrategy,*string) -} - -#CapacityRebalanceObservation: { - // The replacement strategy to use. Only available for spot fleets with fleet_type set to maintain. Valid values: launch. - replacementStrategy?: null | string @go(ReplacementStrategy,*string) -} - -#CapacityRebalanceParameters: { - // The replacement strategy to use. Only available for spot fleets with fleet_type set to maintain. Valid values: launch. - // +kubebuilder:validation:Optional - replacementStrategy?: null | string @go(ReplacementStrategy,*string) -} - -#InstanceRequirementsAcceleratorCountInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsAcceleratorCountObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsAcceleratorCountParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsAcceleratorTotalMemoryMibInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsAcceleratorTotalMemoryMibObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsAcceleratorTotalMemoryMibParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsBaselineEBSBandwidthMbpsInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsBaselineEBSBandwidthMbpsObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsBaselineEBSBandwidthMbpsParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsMemoryGibPerVcpuInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsMemoryGibPerVcpuObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsMemoryGibPerVcpuParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsMemoryMibInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsMemoryMibObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsMemoryMibParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsNetworkBandwidthGbpsInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsNetworkBandwidthGbpsObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsNetworkBandwidthGbpsParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsNetworkInterfaceCountInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsNetworkInterfaceCountObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsNetworkInterfaceCountParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsTotalLocalStorageGbInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsTotalLocalStorageGbObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsTotalLocalStorageGbParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsVcpuCountInitParameters: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsVcpuCountObservation: { - // Maximum. - max?: null | float64 @go(Max,*float64) - - // Minimum. - min?: null | float64 @go(Min,*float64) -} - -#InstanceRequirementsVcpuCountParameters: { - // Maximum. - // +kubebuilder:validation:Optional - max?: null | float64 @go(Max,*float64) - - // Minimum. - // +kubebuilder:validation:Optional - min?: null | float64 @go(Min,*float64) -} - -#LaunchSpecificationEBSBlockDeviceInitParameters: { - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // The name of the launch template. Conflicts with id. - deviceName?: null | string @go(DeviceName,*string) - encrypted?: null | bool @go(Encrypted,*bool) - iops?: null | float64 @go(Iops,*float64) - - // The ID of the launch template. Conflicts with name. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The ID of the launch template. Conflicts with name. - snapshotId?: null | string @go(SnapshotID,*string) - throughput?: null | float64 @go(Throughput,*float64) - volumeSize?: null | float64 @go(VolumeSize,*float64) - volumeType?: null | string @go(VolumeType,*string) -} - -#LaunchSpecificationEBSBlockDeviceObservation: { - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // The name of the launch template. Conflicts with id. - deviceName?: null | string @go(DeviceName,*string) - encrypted?: null | bool @go(Encrypted,*bool) - iops?: null | float64 @go(Iops,*float64) - - // The ID of the launch template. Conflicts with name. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The ID of the launch template. Conflicts with name. - snapshotId?: null | string @go(SnapshotID,*string) - throughput?: null | float64 @go(Throughput,*float64) - volumeSize?: null | float64 @go(VolumeSize,*float64) - volumeType?: null | string @go(VolumeType,*string) -} - -#LaunchSpecificationEBSBlockDeviceParameters: { - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // The name of the launch template. Conflicts with id. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The ID of the launch template. Conflicts with name. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The ID of the launch template. Conflicts with name. - // +kubebuilder:validation:Optional - snapshotId?: null | string @go(SnapshotID,*string) - - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -#LaunchSpecificationEphemeralBlockDeviceInitParameters: { - // The name of the launch template. Conflicts with id. - deviceName?: null | string @go(DeviceName,*string) - - // The name of the launch template. Conflicts with id. - virtualName?: null | string @go(VirtualName,*string) -} - -#LaunchSpecificationEphemeralBlockDeviceObservation: { - // The name of the launch template. Conflicts with id. - deviceName?: null | string @go(DeviceName,*string) - - // The name of the launch template. Conflicts with id. - virtualName?: null | string @go(VirtualName,*string) -} - -#LaunchSpecificationEphemeralBlockDeviceParameters: { - // The name of the launch template. Conflicts with id. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // The name of the launch template. Conflicts with id. - // +kubebuilder:validation:Optional - virtualName?: null | string @go(VirtualName,*string) -} - -#LaunchSpecificationInitParameters: { - ami?: null | string @go(AMI,*string) - associatePublicIpAddress?: null | bool @go(AssociatePublicIPAddress,*bool) - - // The availability zone in which to place the request. - availabilityZone?: null | string @go(AvailabilityZone,*string) - ebsBlockDevice?: [...#LaunchSpecificationEBSBlockDeviceInitParameters] @go(EBSBlockDevice,[]LaunchSpecificationEBSBlockDeviceInitParameters) - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - ephemeralBlockDevice?: [...#LaunchSpecificationEphemeralBlockDeviceInitParameters] @go(EphemeralBlockDevice,[]LaunchSpecificationEphemeralBlockDeviceInitParameters) - iamInstanceProfile?: null | string @go(IAMInstanceProfile,*string) - - // The type of instance to request. - instanceType?: null | string @go(InstanceType,*string) - - // The name of the launch template. Conflicts with id. - keyName?: null | string @go(KeyName,*string) - monitoring?: null | bool @go(Monitoring,*bool) - placementGroup?: null | string @go(PlacementGroup,*string) - placementTenancy?: null | string @go(PlacementTenancy,*string) - rootBlockDevice?: [...#LaunchSpecificationRootBlockDeviceInitParameters] @go(RootBlockDevice,[]LaunchSpecificationRootBlockDeviceInitParameters) - - // The maximum bid price per unit hour. - spotPrice?: null | string @go(SpotPrice,*string) - - // The subnet in which to launch the requested instance. - subnetId?: null | string @go(SubnetID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - userData?: null | string @go(UserData,*string) - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // The capacity added to the fleet by a fulfilled request. - weightedCapacity?: null | string @go(WeightedCapacity,*string) -} - -#LaunchSpecificationObservation: { - ami?: null | string @go(AMI,*string) - associatePublicIpAddress?: null | bool @go(AssociatePublicIPAddress,*bool) - - // The availability zone in which to place the request. - availabilityZone?: null | string @go(AvailabilityZone,*string) - ebsBlockDevice?: [...#LaunchSpecificationEBSBlockDeviceObservation] @go(EBSBlockDevice,[]LaunchSpecificationEBSBlockDeviceObservation) - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - ephemeralBlockDevice?: [...#LaunchSpecificationEphemeralBlockDeviceObservation] @go(EphemeralBlockDevice,[]LaunchSpecificationEphemeralBlockDeviceObservation) - iamInstanceProfile?: null | string @go(IAMInstanceProfile,*string) - - // takes aws_iam_instance_profile attribute arn as input. - iamInstanceProfileArn?: null | string @go(IAMInstanceProfileArn,*string) - - // The type of instance to request. - instanceType?: null | string @go(InstanceType,*string) - - // The name of the launch template. Conflicts with id. - keyName?: null | string @go(KeyName,*string) - monitoring?: null | bool @go(Monitoring,*bool) - placementGroup?: null | string @go(PlacementGroup,*string) - placementTenancy?: null | string @go(PlacementTenancy,*string) - rootBlockDevice?: [...#LaunchSpecificationRootBlockDeviceObservation] @go(RootBlockDevice,[]LaunchSpecificationRootBlockDeviceObservation) - - // The maximum bid price per unit hour. - spotPrice?: null | string @go(SpotPrice,*string) - - // The subnet in which to launch the requested instance. - subnetId?: null | string @go(SubnetID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - userData?: null | string @go(UserData,*string) - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // The capacity added to the fleet by a fulfilled request. - weightedCapacity?: null | string @go(WeightedCapacity,*string) -} - -#LaunchSpecificationParameters: { - // +kubebuilder:validation:Optional - ami?: null | string @go(AMI,*string) - - // +kubebuilder:validation:Optional - associatePublicIpAddress?: null | bool @go(AssociatePublicIPAddress,*bool) - - // The availability zone in which to place the request. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // +kubebuilder:validation:Optional - ebsBlockDevice?: [...#LaunchSpecificationEBSBlockDeviceParameters] @go(EBSBlockDevice,[]LaunchSpecificationEBSBlockDeviceParameters) - - // +kubebuilder:validation:Optional - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // +kubebuilder:validation:Optional - ephemeralBlockDevice?: [...#LaunchSpecificationEphemeralBlockDeviceParameters] @go(EphemeralBlockDevice,[]LaunchSpecificationEphemeralBlockDeviceParameters) - - // +kubebuilder:validation:Optional - iamInstanceProfile?: null | string @go(IAMInstanceProfile,*string) - - // takes aws_iam_instance_profile attribute arn as input. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.InstanceProfile - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - iamInstanceProfileArn?: null | string @go(IAMInstanceProfileArn,*string) - - // Reference to a InstanceProfile in iam to populate iamInstanceProfileArn. - // +kubebuilder:validation:Optional - iamInstanceProfileArnRef?: null | v1.#Reference @go(IAMInstanceProfileArnRef,*v1.Reference) - - // Selector for a InstanceProfile in iam to populate iamInstanceProfileArn. - // +kubebuilder:validation:Optional - iamInstanceProfileArnSelector?: null | v1.#Selector @go(IAMInstanceProfileArnSelector,*v1.Selector) - - // The type of instance to request. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The name of the launch template. Conflicts with id. - // +kubebuilder:validation:Optional - keyName?: null | string @go(KeyName,*string) - - // +kubebuilder:validation:Optional - monitoring?: null | bool @go(Monitoring,*bool) - - // +kubebuilder:validation:Optional - placementGroup?: null | string @go(PlacementGroup,*string) - - // +kubebuilder:validation:Optional - placementTenancy?: null | string @go(PlacementTenancy,*string) - - // +kubebuilder:validation:Optional - rootBlockDevice?: [...#LaunchSpecificationRootBlockDeviceParameters] @go(RootBlockDevice,[]LaunchSpecificationRootBlockDeviceParameters) - - // The maximum bid price per unit hour. - // +kubebuilder:validation:Optional - spotPrice?: null | string @go(SpotPrice,*string) - - // The subnet in which to launch the requested instance. - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // +kubebuilder:validation:Optional - userData?: null | string @go(UserData,*string) - - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // The capacity added to the fleet by a fulfilled request. - // +kubebuilder:validation:Optional - weightedCapacity?: null | string @go(WeightedCapacity,*string) -} - -#LaunchSpecificationRootBlockDeviceInitParameters: { - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - encrypted?: null | bool @go(Encrypted,*bool) - iops?: null | float64 @go(Iops,*float64) - - // The ID of the launch template. Conflicts with name. - kmsKeyId?: null | string @go(KMSKeyID,*string) - throughput?: null | float64 @go(Throughput,*float64) - volumeSize?: null | float64 @go(VolumeSize,*float64) - volumeType?: null | string @go(VolumeType,*string) -} - -#LaunchSpecificationRootBlockDeviceObservation: { - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - encrypted?: null | bool @go(Encrypted,*bool) - iops?: null | float64 @go(Iops,*float64) - - // The ID of the launch template. Conflicts with name. - kmsKeyId?: null | string @go(KMSKeyID,*string) - throughput?: null | float64 @go(Throughput,*float64) - volumeSize?: null | float64 @go(VolumeSize,*float64) - volumeType?: null | string @go(VolumeType,*string) -} - -#LaunchSpecificationRootBlockDeviceParameters: { - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The ID of the launch template. Conflicts with name. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -#LaunchTemplateConfigInitParameters: { - // Launch template specification. See Launch Template Specification below for more details. - launchTemplateSpecification?: [...#LaunchTemplateSpecificationInitParameters] @go(LaunchTemplateSpecification,[]LaunchTemplateSpecificationInitParameters) - - // One or more override configurations. See Overrides below for more details. - overrides?: [...#OverridesInitParameters] @go(Overrides,[]OverridesInitParameters) -} - -#LaunchTemplateConfigObservation: { - // Launch template specification. See Launch Template Specification below for more details. - launchTemplateSpecification?: [...#LaunchTemplateSpecificationObservation] @go(LaunchTemplateSpecification,[]LaunchTemplateSpecificationObservation) - - // One or more override configurations. See Overrides below for more details. - overrides?: [...#OverridesObservation] @go(Overrides,[]OverridesObservation) -} - -#LaunchTemplateConfigParameters: { - // Launch template specification. See Launch Template Specification below for more details. - // +kubebuilder:validation:Optional - launchTemplateSpecification: [...#LaunchTemplateSpecificationParameters] @go(LaunchTemplateSpecification,[]LaunchTemplateSpecificationParameters) - - // One or more override configurations. See Overrides below for more details. - // +kubebuilder:validation:Optional - overrides?: [...#OverridesParameters] @go(Overrides,[]OverridesParameters) -} - -#LaunchTemplateSpecificationInitParameters: { - // The name of the launch template. Conflicts with id. - name?: null | string @go(Name,*string) -} - -#LaunchTemplateSpecificationObservation: { - // The ID of the launch template. Conflicts with name. - id?: null | string @go(ID,*string) - - // The name of the launch template. Conflicts with id. - name?: null | string @go(Name,*string) - - // Template version. Unlike the autoscaling equivalent, does not support $Latest or $Default, so use the launch_template resource's attribute, e.g., "${aws_launch_template.foo.latest_version}". It will use the default version if omitted. - version?: null | string @go(Version,*string) -} - -#LaunchTemplateSpecificationParameters: { - // The ID of the launch template. Conflicts with name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.LaunchTemplate - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Reference to a LaunchTemplate in ec2 to populate id. - // +kubebuilder:validation:Optional - idRef?: null | v1.#Reference @go(IDRef,*v1.Reference) - - // Selector for a LaunchTemplate in ec2 to populate id. - // +kubebuilder:validation:Optional - idSelector?: null | v1.#Selector @go(IDSelector,*v1.Selector) - - // The name of the launch template. Conflicts with id. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Template version. Unlike the autoscaling equivalent, does not support $Latest or $Default, so use the launch_template resource's attribute, e.g., "${aws_launch_template.foo.latest_version}". It will use the default version if omitted. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.LaunchTemplate - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("latest_version",true) - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) - - // Reference to a LaunchTemplate in ec2 to populate version. - // +kubebuilder:validation:Optional - versionRef?: null | v1.#Reference @go(VersionRef,*v1.Reference) - - // Selector for a LaunchTemplate in ec2 to populate version. - // +kubebuilder:validation:Optional - versionSelector?: null | v1.#Selector @go(VersionSelector,*v1.Selector) -} - -#OverridesInitParameters: { - // The availability zone in which to place the request. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The instance requirements. See below. - instanceRequirements?: [...#OverridesInstanceRequirementsInitParameters] @go(InstanceRequirements,[]OverridesInstanceRequirementsInitParameters) - - // The type of instance to request. - instanceType?: null | string @go(InstanceType,*string) - - // The priority for the launch template override. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. - priority?: null | float64 @go(Priority,*float64) - - // The maximum bid price per unit hour. - spotPrice?: null | string @go(SpotPrice,*string) - - // The subnet in which to launch the requested instance. - subnetId?: null | string @go(SubnetID,*string) - - // The capacity added to the fleet by a fulfilled request. - weightedCapacity?: null | float64 @go(WeightedCapacity,*float64) -} - -#OverridesInstanceRequirementsInitParameters: { - // Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. - acceleratorCount?: [...#InstanceRequirementsAcceleratorCountInitParameters] @go(AcceleratorCount,[]InstanceRequirementsAcceleratorCountInitParameters) - - // List of accelerator manufacturer names. Default is any manufacturer. - acceleratorManufacturers?: [...null | string] @go(AcceleratorManufacturers,[]*string) - - // List of accelerator names. Default is any acclerator. - acceleratorNames?: [...null | string] @go(AcceleratorNames,[]*string) - - // Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. - acceleratorTotalMemoryMib?: [...#InstanceRequirementsAcceleratorTotalMemoryMibInitParameters] @go(AcceleratorTotalMemoryMib,[]InstanceRequirementsAcceleratorTotalMemoryMibInitParameters) - - // List of accelerator types. Default is any accelerator type. - acceleratorTypes?: [...null | string] @go(AcceleratorTypes,[]*string) - - // List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types. - allowedInstanceTypes?: [...null | string] @go(AllowedInstanceTypes,[]*string) - - // Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded. - bareMetal?: null | string @go(BareMetal,*string) - - // Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. - baselineEbsBandwidthMbps?: [...#InstanceRequirementsBaselineEBSBandwidthMbpsInitParameters] @go(BaselineEBSBandwidthMbps,[]InstanceRequirementsBaselineEBSBandwidthMbpsInitParameters) - - // Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded. - burstablePerformance?: null | string @go(BurstablePerformance,*string) - - // List of CPU manufacturer names. Default is any manufacturer. - cpuManufacturers?: [...null | string] @go(CPUManufacturers,[]*string) - - // List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. - excludedInstanceTypes?: [...null | string] @go(ExcludedInstanceTypes,[]*string) - - // List of instance generation names. Default is any generation. - instanceGenerations?: [...null | string] @go(InstanceGenerations,[]*string) - - // Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included. - localStorage?: null | string @go(LocalStorage,*string) - - // List of local storage type names. Default any storage type. - localStorageTypes?: [...null | string] @go(LocalStorageTypes,[]*string) - - // Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. - memoryGibPerVcpu?: [...#InstanceRequirementsMemoryGibPerVcpuInitParameters] @go(MemoryGibPerVcpu,[]InstanceRequirementsMemoryGibPerVcpuInitParameters) - - // Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. - memoryMib?: [...#InstanceRequirementsMemoryMibInitParameters] @go(MemoryMib,[]InstanceRequirementsMemoryMibInitParameters) - - // Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum. - networkBandwidthGbps?: [...#InstanceRequirementsNetworkBandwidthGbpsInitParameters] @go(NetworkBandwidthGbps,[]InstanceRequirementsNetworkBandwidthGbpsInitParameters) - - // Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. - networkInterfaceCount?: [...#InstanceRequirementsNetworkInterfaceCountInitParameters] @go(NetworkInterfaceCount,[]InstanceRequirementsNetworkInterfaceCountInitParameters) - - // The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. - onDemandMaxPricePercentageOverLowestPrice?: null | float64 @go(OnDemandMaxPricePercentageOverLowestPrice,*float64) - - // Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false. - requireHibernateSupport?: null | bool @go(RequireHibernateSupport,*bool) - - // The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. - spotMaxPricePercentageOverLowestPrice?: null | float64 @go(SpotMaxPricePercentageOverLowestPrice,*float64) - - // Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. - totalLocalStorageGb?: [...#InstanceRequirementsTotalLocalStorageGbInitParameters] @go(TotalLocalStorageGb,[]InstanceRequirementsTotalLocalStorageGbInitParameters) - - // Block describing the minimum and maximum number of vCPUs. Default is no maximum. - vcpuCount?: [...#InstanceRequirementsVcpuCountInitParameters] @go(VcpuCount,[]InstanceRequirementsVcpuCountInitParameters) -} - -#OverridesInstanceRequirementsObservation: { - // Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. - acceleratorCount?: [...#InstanceRequirementsAcceleratorCountObservation] @go(AcceleratorCount,[]InstanceRequirementsAcceleratorCountObservation) - - // List of accelerator manufacturer names. Default is any manufacturer. - acceleratorManufacturers?: [...null | string] @go(AcceleratorManufacturers,[]*string) - - // List of accelerator names. Default is any acclerator. - acceleratorNames?: [...null | string] @go(AcceleratorNames,[]*string) - - // Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. - acceleratorTotalMemoryMib?: [...#InstanceRequirementsAcceleratorTotalMemoryMibObservation] @go(AcceleratorTotalMemoryMib,[]InstanceRequirementsAcceleratorTotalMemoryMibObservation) - - // List of accelerator types. Default is any accelerator type. - acceleratorTypes?: [...null | string] @go(AcceleratorTypes,[]*string) - - // List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types. - allowedInstanceTypes?: [...null | string] @go(AllowedInstanceTypes,[]*string) - - // Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded. - bareMetal?: null | string @go(BareMetal,*string) - - // Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. - baselineEbsBandwidthMbps?: [...#InstanceRequirementsBaselineEBSBandwidthMbpsObservation] @go(BaselineEBSBandwidthMbps,[]InstanceRequirementsBaselineEBSBandwidthMbpsObservation) - - // Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded. - burstablePerformance?: null | string @go(BurstablePerformance,*string) - - // List of CPU manufacturer names. Default is any manufacturer. - cpuManufacturers?: [...null | string] @go(CPUManufacturers,[]*string) - - // List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. - excludedInstanceTypes?: [...null | string] @go(ExcludedInstanceTypes,[]*string) - - // List of instance generation names. Default is any generation. - instanceGenerations?: [...null | string] @go(InstanceGenerations,[]*string) - - // Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included. - localStorage?: null | string @go(LocalStorage,*string) - - // List of local storage type names. Default any storage type. - localStorageTypes?: [...null | string] @go(LocalStorageTypes,[]*string) - - // Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. - memoryGibPerVcpu?: [...#InstanceRequirementsMemoryGibPerVcpuObservation] @go(MemoryGibPerVcpu,[]InstanceRequirementsMemoryGibPerVcpuObservation) - - // Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. - memoryMib?: [...#InstanceRequirementsMemoryMibObservation] @go(MemoryMib,[]InstanceRequirementsMemoryMibObservation) - - // Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum. - networkBandwidthGbps?: [...#InstanceRequirementsNetworkBandwidthGbpsObservation] @go(NetworkBandwidthGbps,[]InstanceRequirementsNetworkBandwidthGbpsObservation) - - // Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. - networkInterfaceCount?: [...#InstanceRequirementsNetworkInterfaceCountObservation] @go(NetworkInterfaceCount,[]InstanceRequirementsNetworkInterfaceCountObservation) - - // The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. - onDemandMaxPricePercentageOverLowestPrice?: null | float64 @go(OnDemandMaxPricePercentageOverLowestPrice,*float64) - - // Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false. - requireHibernateSupport?: null | bool @go(RequireHibernateSupport,*bool) - - // The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. - spotMaxPricePercentageOverLowestPrice?: null | float64 @go(SpotMaxPricePercentageOverLowestPrice,*float64) - - // Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. - totalLocalStorageGb?: [...#InstanceRequirementsTotalLocalStorageGbObservation] @go(TotalLocalStorageGb,[]InstanceRequirementsTotalLocalStorageGbObservation) - - // Block describing the minimum and maximum number of vCPUs. Default is no maximum. - vcpuCount?: [...#InstanceRequirementsVcpuCountObservation] @go(VcpuCount,[]InstanceRequirementsVcpuCountObservation) -} - -#OverridesInstanceRequirementsParameters: { - // Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. - // +kubebuilder:validation:Optional - acceleratorCount?: [...#InstanceRequirementsAcceleratorCountParameters] @go(AcceleratorCount,[]InstanceRequirementsAcceleratorCountParameters) - - // List of accelerator manufacturer names. Default is any manufacturer. - // +kubebuilder:validation:Optional - acceleratorManufacturers?: [...null | string] @go(AcceleratorManufacturers,[]*string) - - // List of accelerator names. Default is any acclerator. - // +kubebuilder:validation:Optional - acceleratorNames?: [...null | string] @go(AcceleratorNames,[]*string) - - // Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. - // +kubebuilder:validation:Optional - acceleratorTotalMemoryMib?: [...#InstanceRequirementsAcceleratorTotalMemoryMibParameters] @go(AcceleratorTotalMemoryMib,[]InstanceRequirementsAcceleratorTotalMemoryMibParameters) - - // List of accelerator types. Default is any accelerator type. - // +kubebuilder:validation:Optional - acceleratorTypes?: [...null | string] @go(AcceleratorTypes,[]*string) - - // List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types. - // +kubebuilder:validation:Optional - allowedInstanceTypes?: [...null | string] @go(AllowedInstanceTypes,[]*string) - - // Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded. - // +kubebuilder:validation:Optional - bareMetal?: null | string @go(BareMetal,*string) - - // Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. - // +kubebuilder:validation:Optional - baselineEbsBandwidthMbps?: [...#InstanceRequirementsBaselineEBSBandwidthMbpsParameters] @go(BaselineEBSBandwidthMbps,[]InstanceRequirementsBaselineEBSBandwidthMbpsParameters) - - // Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded. - // +kubebuilder:validation:Optional - burstablePerformance?: null | string @go(BurstablePerformance,*string) - - // List of CPU manufacturer names. Default is any manufacturer. - // +kubebuilder:validation:Optional - cpuManufacturers?: [...null | string] @go(CPUManufacturers,[]*string) - - // List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. - // +kubebuilder:validation:Optional - excludedInstanceTypes?: [...null | string] @go(ExcludedInstanceTypes,[]*string) - - // List of instance generation names. Default is any generation. - // +kubebuilder:validation:Optional - instanceGenerations?: [...null | string] @go(InstanceGenerations,[]*string) - - // Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included. - // +kubebuilder:validation:Optional - localStorage?: null | string @go(LocalStorage,*string) - - // List of local storage type names. Default any storage type. - // +kubebuilder:validation:Optional - localStorageTypes?: [...null | string] @go(LocalStorageTypes,[]*string) - - // Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. - // +kubebuilder:validation:Optional - memoryGibPerVcpu?: [...#InstanceRequirementsMemoryGibPerVcpuParameters] @go(MemoryGibPerVcpu,[]InstanceRequirementsMemoryGibPerVcpuParameters) - - // Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. - // +kubebuilder:validation:Optional - memoryMib?: [...#InstanceRequirementsMemoryMibParameters] @go(MemoryMib,[]InstanceRequirementsMemoryMibParameters) - - // Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum. - // +kubebuilder:validation:Optional - networkBandwidthGbps?: [...#InstanceRequirementsNetworkBandwidthGbpsParameters] @go(NetworkBandwidthGbps,[]InstanceRequirementsNetworkBandwidthGbpsParameters) - - // Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. - // +kubebuilder:validation:Optional - networkInterfaceCount?: [...#InstanceRequirementsNetworkInterfaceCountParameters] @go(NetworkInterfaceCount,[]InstanceRequirementsNetworkInterfaceCountParameters) - - // The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. - // +kubebuilder:validation:Optional - onDemandMaxPricePercentageOverLowestPrice?: null | float64 @go(OnDemandMaxPricePercentageOverLowestPrice,*float64) - - // Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false. - // +kubebuilder:validation:Optional - requireHibernateSupport?: null | bool @go(RequireHibernateSupport,*bool) - - // The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. - // +kubebuilder:validation:Optional - spotMaxPricePercentageOverLowestPrice?: null | float64 @go(SpotMaxPricePercentageOverLowestPrice,*float64) - - // Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. - // +kubebuilder:validation:Optional - totalLocalStorageGb?: [...#InstanceRequirementsTotalLocalStorageGbParameters] @go(TotalLocalStorageGb,[]InstanceRequirementsTotalLocalStorageGbParameters) - - // Block describing the minimum and maximum number of vCPUs. Default is no maximum. - // +kubebuilder:validation:Optional - vcpuCount?: [...#InstanceRequirementsVcpuCountParameters] @go(VcpuCount,[]InstanceRequirementsVcpuCountParameters) -} - -#OverridesObservation: { - // The availability zone in which to place the request. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The instance requirements. See below. - instanceRequirements?: [...#OverridesInstanceRequirementsObservation] @go(InstanceRequirements,[]OverridesInstanceRequirementsObservation) - - // The type of instance to request. - instanceType?: null | string @go(InstanceType,*string) - - // The priority for the launch template override. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. - priority?: null | float64 @go(Priority,*float64) - - // The maximum bid price per unit hour. - spotPrice?: null | string @go(SpotPrice,*string) - - // The subnet in which to launch the requested instance. - subnetId?: null | string @go(SubnetID,*string) - - // The capacity added to the fleet by a fulfilled request. - weightedCapacity?: null | float64 @go(WeightedCapacity,*float64) -} - -#OverridesParameters: { - // The availability zone in which to place the request. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The instance requirements. See below. - // +kubebuilder:validation:Optional - instanceRequirements?: [...#OverridesInstanceRequirementsParameters] @go(InstanceRequirements,[]OverridesInstanceRequirementsParameters) - - // The type of instance to request. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The priority for the launch template override. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // The maximum bid price per unit hour. - // +kubebuilder:validation:Optional - spotPrice?: null | string @go(SpotPrice,*string) - - // The subnet in which to launch the requested instance. - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // The capacity added to the fleet by a fulfilled request. - // +kubebuilder:validation:Optional - weightedCapacity?: null | float64 @go(WeightedCapacity,*float64) -} - -#SpotFleetRequestInitParameters: { - // Indicates how to allocate the target capacity across - // the Spot pools specified by the Spot fleet request. Valid values: lowestPrice, diversified, capacityOptimized, capacityOptimizedPrioritized, and priceCapacityOptimized. The default is - // lowestPrice. - allocationStrategy?: null | string @go(AllocationStrategy,*string) - - // Reserved. - context?: null | string @go(Context,*string) - - // Indicates whether running Spot - // instances should be terminated if the target capacity of the Spot fleet - // request is decreased below the current size of the Spot fleet. - excessCapacityTerminationPolicy?: null | string @go(ExcessCapacityTerminationPolicy,*string) - - // The type of fleet request. Indicates whether the Spot Fleet only requests the target - // capacity or also attempts to maintain it. Default is maintain. - fleetType?: null | string @go(FleetType,*string) - - // Grants the Spot fleet permission to terminate - // Spot instances on your behalf when you cancel its Spot fleet request using - // CancelSpotFleetRequests or when the Spot fleet request expires, if you set - // terminateInstancesWithExpiration. - iamFleetRole?: null | string @go(IAMFleetRole,*string) - - // Indicates whether a Spot - // instance stops or terminates when it is interrupted. Default is - // terminate. - instanceInterruptionBehaviour?: null | string @go(InstanceInterruptionBehaviour,*string) - - // The number of Spot pools across which to allocate your target Spot capacity. - // Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects - // the cheapest Spot pools and evenly allocates your target Spot capacity across - // the number of Spot pools that you specify. - instancePoolsToUseCount?: null | float64 @go(InstancePoolsToUseCount,*float64) - - // Used to define the launch configuration of the - // spot-fleet request. Can be specified multiple times to define different bids - // across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required. - launchSpecification?: [...#LaunchSpecificationInitParameters] @go(LaunchSpecification,[]LaunchSpecificationInitParameters) - - // Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required. - launchTemplateConfig?: [...#LaunchTemplateConfigInitParameters] @go(LaunchTemplateConfig,[]LaunchTemplateConfigInitParameters) - - // A list of elastic load balancer names to add to the Spot fleet. - loadBalancers?: [...null | string] @go(LoadBalancers,[]*string) - - // The order of the launch template overrides to use in fulfilling On-Demand capacity. the possible values are: lowestPrice and prioritized. the default is lowestPrice. - onDemandAllocationStrategy?: null | string @go(OnDemandAllocationStrategy,*string) - - // The maximum amount per hour for On-Demand Instances that you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity. - onDemandMaxTotalPrice?: null | string @go(OnDemandMaxTotalPrice,*string) - - // The number of On-Demand units to request. If the request type is maintain, you can specify a target capacity of 0 and add capacity later. - onDemandTargetCapacity?: null | float64 @go(OnDemandTargetCapacity,*float64) - - // Indicates whether Spot fleet should replace unhealthy instances. Default false. - replaceUnhealthyInstances?: null | bool @go(ReplaceUnhealthyInstances,*bool) - - // Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below. - spotMaintenanceStrategies?: [...#SpotMaintenanceStrategiesInitParameters] @go(SpotMaintenanceStrategies,[]SpotMaintenanceStrategiesInitParameters) - - // The maximum bid price per unit hour. - spotPrice?: null | string @go(SpotPrice,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The number of units to request. You can choose to set the - // target capacity in terms of instances or a performance characteristic that is - // important to your application workload, such as vCPUs, memory, or I/O. - targetCapacity?: null | float64 @go(TargetCapacity,*float64) - - // The unit for the target capacity. This can only be done with instance_requirements defined - targetCapacityUnitType?: null | string @go(TargetCapacityUnitType,*string) - - // A list of aws_alb_target_group ARNs, for use with Application Load Balancing. - targetGroupArns?: [...null | string] @go(TargetGroupArns,[]*string) - - // Indicates whether running Spot - // instances should be terminated when the resource is deleted (and the Spot fleet request cancelled). - // If no value is specified, the value of the terminate_instances_with_expiration argument is used. - terminateInstancesOnDelete?: null | string @go(TerminateInstancesOnDelete,*string) - - // Indicates whether running Spot - // instances should be terminated when the Spot fleet request expires. - terminateInstancesWithExpiration?: null | bool @go(TerminateInstancesWithExpiration,*bool) - - // The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately. - validFrom?: null | string @go(ValidFrom,*string) - - // The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. - validUntil?: null | string @go(ValidUntil,*string) - waitForFulfillment?: null | bool @go(WaitForFulfillment,*bool) -} - -#SpotFleetRequestObservation: { - // Indicates how to allocate the target capacity across - // the Spot pools specified by the Spot fleet request. Valid values: lowestPrice, diversified, capacityOptimized, capacityOptimizedPrioritized, and priceCapacityOptimized. The default is - // lowestPrice. - allocationStrategy?: null | string @go(AllocationStrategy,*string) - clientToken?: null | string @go(ClientToken,*string) - - // Reserved. - context?: null | string @go(Context,*string) - - // Indicates whether running Spot - // instances should be terminated if the target capacity of the Spot fleet - // request is decreased below the current size of the Spot fleet. - excessCapacityTerminationPolicy?: null | string @go(ExcessCapacityTerminationPolicy,*string) - - // The type of fleet request. Indicates whether the Spot Fleet only requests the target - // capacity or also attempts to maintain it. Default is maintain. - fleetType?: null | string @go(FleetType,*string) - - // Grants the Spot fleet permission to terminate - // Spot instances on your behalf when you cancel its Spot fleet request using - // CancelSpotFleetRequests or when the Spot fleet request expires, if you set - // terminateInstancesWithExpiration. - iamFleetRole?: null | string @go(IAMFleetRole,*string) - - // The ID of the launch template. Conflicts with name. - id?: null | string @go(ID,*string) - - // Indicates whether a Spot - // instance stops or terminates when it is interrupted. Default is - // terminate. - instanceInterruptionBehaviour?: null | string @go(InstanceInterruptionBehaviour,*string) - - // The number of Spot pools across which to allocate your target Spot capacity. - // Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects - // the cheapest Spot pools and evenly allocates your target Spot capacity across - // the number of Spot pools that you specify. - instancePoolsToUseCount?: null | float64 @go(InstancePoolsToUseCount,*float64) - - // Used to define the launch configuration of the - // spot-fleet request. Can be specified multiple times to define different bids - // across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required. - launchSpecification?: [...#LaunchSpecificationObservation] @go(LaunchSpecification,[]LaunchSpecificationObservation) - - // Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required. - launchTemplateConfig?: [...#LaunchTemplateConfigObservation] @go(LaunchTemplateConfig,[]LaunchTemplateConfigObservation) - - // A list of elastic load balancer names to add to the Spot fleet. - loadBalancers?: [...null | string] @go(LoadBalancers,[]*string) - - // The order of the launch template overrides to use in fulfilling On-Demand capacity. the possible values are: lowestPrice and prioritized. the default is lowestPrice. - onDemandAllocationStrategy?: null | string @go(OnDemandAllocationStrategy,*string) - - // The maximum amount per hour for On-Demand Instances that you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity. - onDemandMaxTotalPrice?: null | string @go(OnDemandMaxTotalPrice,*string) - - // The number of On-Demand units to request. If the request type is maintain, you can specify a target capacity of 0 and add capacity later. - onDemandTargetCapacity?: null | float64 @go(OnDemandTargetCapacity,*float64) - - // Indicates whether Spot fleet should replace unhealthy instances. Default false. - replaceUnhealthyInstances?: null | bool @go(ReplaceUnhealthyInstances,*bool) - - // Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below. - spotMaintenanceStrategies?: [...#SpotMaintenanceStrategiesObservation] @go(SpotMaintenanceStrategies,[]SpotMaintenanceStrategiesObservation) - - // The maximum bid price per unit hour. - spotPrice?: null | string @go(SpotPrice,*string) - - // The state of the Spot fleet request. - spotRequestState?: null | string @go(SpotRequestState,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The number of units to request. You can choose to set the - // target capacity in terms of instances or a performance characteristic that is - // important to your application workload, such as vCPUs, memory, or I/O. - targetCapacity?: null | float64 @go(TargetCapacity,*float64) - - // The unit for the target capacity. This can only be done with instance_requirements defined - targetCapacityUnitType?: null | string @go(TargetCapacityUnitType,*string) - - // A list of aws_alb_target_group ARNs, for use with Application Load Balancing. - targetGroupArns?: [...null | string] @go(TargetGroupArns,[]*string) - - // Indicates whether running Spot - // instances should be terminated when the resource is deleted (and the Spot fleet request cancelled). - // If no value is specified, the value of the terminate_instances_with_expiration argument is used. - terminateInstancesOnDelete?: null | string @go(TerminateInstancesOnDelete,*string) - - // Indicates whether running Spot - // instances should be terminated when the Spot fleet request expires. - terminateInstancesWithExpiration?: null | bool @go(TerminateInstancesWithExpiration,*bool) - - // The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately. - validFrom?: null | string @go(ValidFrom,*string) - - // The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. - validUntil?: null | string @go(ValidUntil,*string) - waitForFulfillment?: null | bool @go(WaitForFulfillment,*bool) -} - -#SpotFleetRequestParameters: { - // Indicates how to allocate the target capacity across - // the Spot pools specified by the Spot fleet request. Valid values: lowestPrice, diversified, capacityOptimized, capacityOptimizedPrioritized, and priceCapacityOptimized. The default is - // lowestPrice. - // +kubebuilder:validation:Optional - allocationStrategy?: null | string @go(AllocationStrategy,*string) - - // Reserved. - // +kubebuilder:validation:Optional - context?: null | string @go(Context,*string) - - // Indicates whether running Spot - // instances should be terminated if the target capacity of the Spot fleet - // request is decreased below the current size of the Spot fleet. - // +kubebuilder:validation:Optional - excessCapacityTerminationPolicy?: null | string @go(ExcessCapacityTerminationPolicy,*string) - - // The type of fleet request. Indicates whether the Spot Fleet only requests the target - // capacity or also attempts to maintain it. Default is maintain. - // +kubebuilder:validation:Optional - fleetType?: null | string @go(FleetType,*string) - - // Grants the Spot fleet permission to terminate - // Spot instances on your behalf when you cancel its Spot fleet request using - // CancelSpotFleetRequests or when the Spot fleet request expires, if you set - // terminateInstancesWithExpiration. - // +kubebuilder:validation:Optional - iamFleetRole?: null | string @go(IAMFleetRole,*string) - - // Indicates whether a Spot - // instance stops or terminates when it is interrupted. Default is - // terminate. - // +kubebuilder:validation:Optional - instanceInterruptionBehaviour?: null | string @go(InstanceInterruptionBehaviour,*string) - - // The number of Spot pools across which to allocate your target Spot capacity. - // Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects - // the cheapest Spot pools and evenly allocates your target Spot capacity across - // the number of Spot pools that you specify. - // +kubebuilder:validation:Optional - instancePoolsToUseCount?: null | float64 @go(InstancePoolsToUseCount,*float64) - - // Used to define the launch configuration of the - // spot-fleet request. Can be specified multiple times to define different bids - // across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required. - // +kubebuilder:validation:Optional - launchSpecification?: [...#LaunchSpecificationParameters] @go(LaunchSpecification,[]LaunchSpecificationParameters) - - // Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required. - // +kubebuilder:validation:Optional - launchTemplateConfig?: [...#LaunchTemplateConfigParameters] @go(LaunchTemplateConfig,[]LaunchTemplateConfigParameters) - - // A list of elastic load balancer names to add to the Spot fleet. - // +kubebuilder:validation:Optional - loadBalancers?: [...null | string] @go(LoadBalancers,[]*string) - - // The order of the launch template overrides to use in fulfilling On-Demand capacity. the possible values are: lowestPrice and prioritized. the default is lowestPrice. - // +kubebuilder:validation:Optional - onDemandAllocationStrategy?: null | string @go(OnDemandAllocationStrategy,*string) - - // The maximum amount per hour for On-Demand Instances that you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity. - // +kubebuilder:validation:Optional - onDemandMaxTotalPrice?: null | string @go(OnDemandMaxTotalPrice,*string) - - // The number of On-Demand units to request. If the request type is maintain, you can specify a target capacity of 0 and add capacity later. - // +kubebuilder:validation:Optional - onDemandTargetCapacity?: null | float64 @go(OnDemandTargetCapacity,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Indicates whether Spot fleet should replace unhealthy instances. Default false. - // +kubebuilder:validation:Optional - replaceUnhealthyInstances?: null | bool @go(ReplaceUnhealthyInstances,*bool) - - // Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below. - // +kubebuilder:validation:Optional - spotMaintenanceStrategies?: [...#SpotMaintenanceStrategiesParameters] @go(SpotMaintenanceStrategies,[]SpotMaintenanceStrategiesParameters) - - // The maximum bid price per unit hour. - // +kubebuilder:validation:Optional - spotPrice?: null | string @go(SpotPrice,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The number of units to request. You can choose to set the - // target capacity in terms of instances or a performance characteristic that is - // important to your application workload, such as vCPUs, memory, or I/O. - // +kubebuilder:validation:Optional - targetCapacity?: null | float64 @go(TargetCapacity,*float64) - - // The unit for the target capacity. This can only be done with instance_requirements defined - // +kubebuilder:validation:Optional - targetCapacityUnitType?: null | string @go(TargetCapacityUnitType,*string) - - // A list of aws_alb_target_group ARNs, for use with Application Load Balancing. - // +kubebuilder:validation:Optional - targetGroupArns?: [...null | string] @go(TargetGroupArns,[]*string) - - // Indicates whether running Spot - // instances should be terminated when the resource is deleted (and the Spot fleet request cancelled). - // If no value is specified, the value of the terminate_instances_with_expiration argument is used. - // +kubebuilder:validation:Optional - terminateInstancesOnDelete?: null | string @go(TerminateInstancesOnDelete,*string) - - // Indicates whether running Spot - // instances should be terminated when the Spot fleet request expires. - // +kubebuilder:validation:Optional - terminateInstancesWithExpiration?: null | bool @go(TerminateInstancesWithExpiration,*bool) - - // The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately. - // +kubebuilder:validation:Optional - validFrom?: null | string @go(ValidFrom,*string) - - // The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. - // +kubebuilder:validation:Optional - validUntil?: null | string @go(ValidUntil,*string) - - // +kubebuilder:validation:Optional - waitForFulfillment?: null | bool @go(WaitForFulfillment,*bool) -} - -#SpotMaintenanceStrategiesInitParameters: { - // Nested argument containing the capacity rebalance for your fleet request. Defined below. - capacityRebalance?: [...#CapacityRebalanceInitParameters] @go(CapacityRebalance,[]CapacityRebalanceInitParameters) -} - -#SpotMaintenanceStrategiesObservation: { - // Nested argument containing the capacity rebalance for your fleet request. Defined below. - capacityRebalance?: [...#CapacityRebalanceObservation] @go(CapacityRebalance,[]CapacityRebalanceObservation) -} - -#SpotMaintenanceStrategiesParameters: { - // Nested argument containing the capacity rebalance for your fleet request. Defined below. - // +kubebuilder:validation:Optional - capacityRebalance?: [...#CapacityRebalanceParameters] @go(CapacityRebalance,[]CapacityRebalanceParameters) -} - -// SpotFleetRequestSpec defines the desired state of SpotFleetRequest -#SpotFleetRequestSpec: { - v1.#ResourceSpec - forProvider: #SpotFleetRequestParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SpotFleetRequestInitParameters @go(InitProvider) -} - -// SpotFleetRequestStatus defines the observed state of SpotFleetRequest. -#SpotFleetRequestStatus: { - v1.#ResourceStatus - atProvider?: #SpotFleetRequestObservation @go(AtProvider) -} - -// SpotFleetRequest is the Schema for the SpotFleetRequests API. Provides a Spot Fleet Request resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SpotFleetRequest: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.iamFleetRole) || (has(self.initProvider) && has(self.initProvider.iamFleetRole))",message="spec.forProvider.iamFleetRole is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targetCapacity) || (has(self.initProvider) && has(self.initProvider.targetCapacity))",message="spec.forProvider.targetCapacity is a required parameter" - spec: #SpotFleetRequestSpec @go(Spec) - status?: #SpotFleetRequestStatus @go(Status) -} - -// SpotFleetRequestList contains a list of SpotFleetRequests -#SpotFleetRequestList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SpotFleetRequest] @go(Items,[]SpotFleetRequest) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_spotinstancerequest_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_spotinstancerequest_types_go_gen.cue deleted file mode 100644 index acb5dff..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_spotinstancerequest_types_go_gen.cue +++ /dev/null @@ -1,837 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SpotInstanceRequestCPUOptionsInitParameters: { - amdSevSnp?: null | string @go(AmdSevSnp,*string) - coreCount?: null | float64 @go(CoreCount,*float64) - threadsPerCore?: null | float64 @go(ThreadsPerCore,*float64) -} - -#SpotInstanceRequestCPUOptionsObservation: { - amdSevSnp?: null | string @go(AmdSevSnp,*string) - coreCount?: null | float64 @go(CoreCount,*float64) - threadsPerCore?: null | float64 @go(ThreadsPerCore,*float64) -} - -#SpotInstanceRequestCPUOptionsParameters: { - // +kubebuilder:validation:Optional - amdSevSnp?: null | string @go(AmdSevSnp,*string) - - // +kubebuilder:validation:Optional - coreCount?: null | float64 @go(CoreCount,*float64) - - // +kubebuilder:validation:Optional - threadsPerCore?: null | float64 @go(ThreadsPerCore,*float64) -} - -#SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTargetInitParameters: { - // The Spot Instance Request ID. - capacityReservationId?: null | string @go(CapacityReservationID,*string) - capacityReservationResourceGroupArn?: null | string @go(CapacityReservationResourceGroupArn,*string) -} - -#SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTargetObservation: { - // The Spot Instance Request ID. - capacityReservationId?: null | string @go(CapacityReservationID,*string) - capacityReservationResourceGroupArn?: null | string @go(CapacityReservationResourceGroupArn,*string) -} - -#SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTargetParameters: { - // The Spot Instance Request ID. - // +kubebuilder:validation:Optional - capacityReservationId?: null | string @go(CapacityReservationID,*string) - - // +kubebuilder:validation:Optional - capacityReservationResourceGroupArn?: null | string @go(CapacityReservationResourceGroupArn,*string) -} - -#SpotInstanceRequestCapacityReservationSpecificationInitParameters: { - capacityReservationPreference?: null | string @go(CapacityReservationPreference,*string) - capacityReservationTarget?: [...#SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTargetInitParameters] @go(CapacityReservationTarget,[]SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTargetInitParameters) -} - -#SpotInstanceRequestCapacityReservationSpecificationObservation: { - capacityReservationPreference?: null | string @go(CapacityReservationPreference,*string) - capacityReservationTarget?: [...#SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTargetObservation] @go(CapacityReservationTarget,[]SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTargetObservation) -} - -#SpotInstanceRequestCapacityReservationSpecificationParameters: { - // +kubebuilder:validation:Optional - capacityReservationPreference?: null | string @go(CapacityReservationPreference,*string) - - // +kubebuilder:validation:Optional - capacityReservationTarget?: [...#SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTargetParameters] @go(CapacityReservationTarget,[]SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTargetParameters) -} - -#SpotInstanceRequestCreditSpecificationInitParameters: { - cpuCredits?: null | string @go(CPUCredits,*string) -} - -#SpotInstanceRequestCreditSpecificationObservation: { - cpuCredits?: null | string @go(CPUCredits,*string) -} - -#SpotInstanceRequestCreditSpecificationParameters: { - // +kubebuilder:validation:Optional - cpuCredits?: null | string @go(CPUCredits,*string) -} - -#SpotInstanceRequestEBSBlockDeviceInitParameters: { - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - deviceName?: null | string @go(DeviceName,*string) - encrypted?: null | bool @go(Encrypted,*bool) - iops?: null | float64 @go(Iops,*float64) - - // The Spot Instance Request ID. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The Spot Instance Request ID. - snapshotId?: null | string @go(SnapshotID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - throughput?: null | float64 @go(Throughput,*float64) - volumeSize?: null | float64 @go(VolumeSize,*float64) - volumeType?: null | string @go(VolumeType,*string) -} - -#SpotInstanceRequestEBSBlockDeviceObservation: { - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - deviceName?: null | string @go(DeviceName,*string) - encrypted?: null | bool @go(Encrypted,*bool) - iops?: null | float64 @go(Iops,*float64) - - // The Spot Instance Request ID. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The Spot Instance Request ID. - snapshotId?: null | string @go(SnapshotID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - throughput?: null | float64 @go(Throughput,*float64) - - // The Spot Instance Request ID. - volumeId?: null | string @go(VolumeID,*string) - volumeSize?: null | float64 @go(VolumeSize,*float64) - volumeType?: null | string @go(VolumeType,*string) -} - -#SpotInstanceRequestEBSBlockDeviceParameters: { - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The Spot Instance Request ID. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The Spot Instance Request ID. - // +kubebuilder:validation:Optional - snapshotId?: null | string @go(SnapshotID,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -#SpotInstanceRequestEnclaveOptionsInitParameters: { - enabled?: null | bool @go(Enabled,*bool) -} - -#SpotInstanceRequestEnclaveOptionsObservation: { - enabled?: null | bool @go(Enabled,*bool) -} - -#SpotInstanceRequestEnclaveOptionsParameters: { - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#SpotInstanceRequestEphemeralBlockDeviceInitParameters: { - deviceName?: null | string @go(DeviceName,*string) - noDevice?: null | bool @go(NoDevice,*bool) - virtualName?: null | string @go(VirtualName,*string) -} - -#SpotInstanceRequestEphemeralBlockDeviceObservation: { - deviceName?: null | string @go(DeviceName,*string) - noDevice?: null | bool @go(NoDevice,*bool) - virtualName?: null | string @go(VirtualName,*string) -} - -#SpotInstanceRequestEphemeralBlockDeviceParameters: { - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // +kubebuilder:validation:Optional - noDevice?: null | bool @go(NoDevice,*bool) - - // +kubebuilder:validation:Optional - virtualName?: null | string @go(VirtualName,*string) -} - -#SpotInstanceRequestInitParameters: { - ami?: null | string @go(AMI,*string) - associatePublicIpAddress?: null | bool @go(AssociatePublicIPAddress,*bool) - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The required duration for the Spot instances, in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). - // The duration period starts as soon as your Spot instance receives its instance ID. At the end of the duration period, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates. - // Note that you can't specify an Availability Zone group or a launch group if you specify a duration. - blockDurationMinutes?: null | float64 @go(BlockDurationMinutes,*float64) - cpuCoreCount?: null | float64 @go(CPUCoreCount,*float64) - cpuOptions?: [...#SpotInstanceRequestCPUOptionsInitParameters] @go(CPUOptions,[]SpotInstanceRequestCPUOptionsInitParameters) - cpuThreadsPerCore?: null | float64 @go(CPUThreadsPerCore,*float64) - capacityReservationSpecification?: [...#SpotInstanceRequestCapacityReservationSpecificationInitParameters] @go(CapacityReservationSpecification,[]SpotInstanceRequestCapacityReservationSpecificationInitParameters) - creditSpecification?: [...#SpotInstanceRequestCreditSpecificationInitParameters] @go(CreditSpecification,[]SpotInstanceRequestCreditSpecificationInitParameters) - disableApiStop?: null | bool @go(DisableAPIStop,*bool) - disableApiTermination?: null | bool @go(DisableAPITermination,*bool) - ebsBlockDevice?: [...#SpotInstanceRequestEBSBlockDeviceInitParameters] @go(EBSBlockDevice,[]SpotInstanceRequestEBSBlockDeviceInitParameters) - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - enclaveOptions?: [...#SpotInstanceRequestEnclaveOptionsInitParameters] @go(EnclaveOptions,[]SpotInstanceRequestEnclaveOptionsInitParameters) - ephemeralBlockDevice?: [...#SpotInstanceRequestEphemeralBlockDeviceInitParameters] @go(EphemeralBlockDevice,[]SpotInstanceRequestEphemeralBlockDeviceInitParameters) - getPasswordData?: null | bool @go(GetPasswordData,*bool) - hibernation?: null | bool @go(Hibernation,*bool) - - // The Spot Instance Request ID. - hostId?: null | string @go(HostID,*string) - hostResourceGroupArn?: null | string @go(HostResourceGroupArn,*string) - iamInstanceProfile?: null | string @go(IAMInstanceProfile,*string) - ipv6AddressCount?: null | float64 @go(IPv6AddressCount,*float64) - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - instanceInitiatedShutdownBehavior?: null | string @go(InstanceInitiatedShutdownBehavior,*string) - - // Indicates Spot instance behavior when it is interrupted. Valid values are terminate, stop, or hibernate. Default value is terminate. - instanceInterruptionBehavior?: null | string @go(InstanceInterruptionBehavior,*string) - instanceType?: null | string @go(InstanceType,*string) - keyName?: null | string @go(KeyName,*string) - - // A launch group is a group of spot instances that launch together and terminate together. - // If left empty instances are launched and terminated individually. - launchGroup?: null | string @go(LaunchGroup,*string) - launchTemplate?: [...#SpotInstanceRequestLaunchTemplateInitParameters] @go(LaunchTemplate,[]SpotInstanceRequestLaunchTemplateInitParameters) - maintenanceOptions?: [...#SpotInstanceRequestMaintenanceOptionsInitParameters] @go(MaintenanceOptions,[]SpotInstanceRequestMaintenanceOptionsInitParameters) - metadataOptions?: [...#SpotInstanceRequestMetadataOptionsInitParameters] @go(MetadataOptions,[]SpotInstanceRequestMetadataOptionsInitParameters) - monitoring?: null | bool @go(Monitoring,*bool) - networkInterface?: [...#SpotInstanceRequestNetworkInterfaceInitParameters] @go(NetworkInterface,[]SpotInstanceRequestNetworkInterfaceInitParameters) - placementGroup?: null | string @go(PlacementGroup,*string) - placementPartitionNumber?: null | float64 @go(PlacementPartitionNumber,*float64) - privateDnsNameOptions?: [...#SpotInstanceRequestPrivateDNSNameOptionsInitParameters] @go(PrivateDNSNameOptions,[]SpotInstanceRequestPrivateDNSNameOptionsInitParameters) - - // The private IP address assigned to the instance - privateIp?: null | string @go(PrivateIP,*string) - rootBlockDevice?: [...#SpotInstanceRequestRootBlockDeviceInitParameters] @go(RootBlockDevice,[]SpotInstanceRequestRootBlockDeviceInitParameters) - secondaryPrivateIps?: [...null | string] @go(SecondaryPrivateIps,[]*string) - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - sourceDestCheck?: null | bool @go(SourceDestCheck,*bool) - - // The maximum price to request on the spot market. - spotPrice?: null | string @go(SpotPrice,*string) - - // If set to one-time, after - // the instance is terminated, the spot request will be closed. - spotType?: null | string @go(SpotType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tenancy?: null | string @go(Tenancy,*string) - userData?: null | string @go(UserData,*string) - userDataBase64?: null | string @go(UserDataBase64,*string) - userDataReplaceOnChange?: null | bool @go(UserDataReplaceOnChange,*bool) - - // The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately. - validFrom?: null | string @go(ValidFrom,*string) - - // The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. The default end date is 7 days from the current date. - validUntil?: null | string @go(ValidUntil,*string) - - // Key-value map of resource tags. - volumeTags?: {[string]: null | string} @go(VolumeTags,map[string]*string) - waitForFulfillment?: null | bool @go(WaitForFulfillment,*bool) -} - -#SpotInstanceRequestLaunchTemplateInitParameters: { - // The Spot Instance Request ID. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) - version?: null | string @go(Version,*string) -} - -#SpotInstanceRequestLaunchTemplateObservation: { - // The Spot Instance Request ID. - id?: null | string @go(ID,*string) - name?: null | string @go(Name,*string) - version?: null | string @go(Version,*string) -} - -#SpotInstanceRequestLaunchTemplateParameters: { - // The Spot Instance Request ID. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#SpotInstanceRequestMaintenanceOptionsInitParameters: { - autoRecovery?: null | string @go(AutoRecovery,*string) -} - -#SpotInstanceRequestMaintenanceOptionsObservation: { - autoRecovery?: null | string @go(AutoRecovery,*string) -} - -#SpotInstanceRequestMaintenanceOptionsParameters: { - // +kubebuilder:validation:Optional - autoRecovery?: null | string @go(AutoRecovery,*string) -} - -#SpotInstanceRequestMetadataOptionsInitParameters: { - httpEndpoint?: null | string @go(HTTPEndpoint,*string) - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - httpTokens?: null | string @go(HTTPTokens,*string) - - // Key-value map of resource tags. - instanceMetadataTags?: null | string @go(InstanceMetadataTags,*string) -} - -#SpotInstanceRequestMetadataOptionsObservation: { - httpEndpoint?: null | string @go(HTTPEndpoint,*string) - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - httpTokens?: null | string @go(HTTPTokens,*string) - - // Key-value map of resource tags. - instanceMetadataTags?: null | string @go(InstanceMetadataTags,*string) -} - -#SpotInstanceRequestMetadataOptionsParameters: { - // +kubebuilder:validation:Optional - httpEndpoint?: null | string @go(HTTPEndpoint,*string) - - // +kubebuilder:validation:Optional - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // +kubebuilder:validation:Optional - httpTokens?: null | string @go(HTTPTokens,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - instanceMetadataTags?: null | string @go(InstanceMetadataTags,*string) -} - -#SpotInstanceRequestNetworkInterfaceInitParameters: { - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - deviceIndex?: null | float64 @go(DeviceIndex,*float64) - networkCardIndex?: null | float64 @go(NetworkCardIndex,*float64) - - // The Spot Instance Request ID. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) -} - -#SpotInstanceRequestNetworkInterfaceObservation: { - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - deviceIndex?: null | float64 @go(DeviceIndex,*float64) - networkCardIndex?: null | float64 @go(NetworkCardIndex,*float64) - - // The Spot Instance Request ID. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) -} - -#SpotInstanceRequestNetworkInterfaceParameters: { - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // +kubebuilder:validation:Optional - deviceIndex?: null | float64 @go(DeviceIndex,*float64) - - // +kubebuilder:validation:Optional - networkCardIndex?: null | float64 @go(NetworkCardIndex,*float64) - - // The Spot Instance Request ID. - // +kubebuilder:validation:Optional - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) -} - -#SpotInstanceRequestObservation: { - ami?: null | string @go(AMI,*string) - arn?: null | string @go(Arn,*string) - associatePublicIpAddress?: null | bool @go(AssociatePublicIPAddress,*bool) - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The required duration for the Spot instances, in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). - // The duration period starts as soon as your Spot instance receives its instance ID. At the end of the duration period, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates. - // Note that you can't specify an Availability Zone group or a launch group if you specify a duration. - blockDurationMinutes?: null | float64 @go(BlockDurationMinutes,*float64) - cpuCoreCount?: null | float64 @go(CPUCoreCount,*float64) - cpuOptions?: [...#SpotInstanceRequestCPUOptionsObservation] @go(CPUOptions,[]SpotInstanceRequestCPUOptionsObservation) - cpuThreadsPerCore?: null | float64 @go(CPUThreadsPerCore,*float64) - capacityReservationSpecification?: [...#SpotInstanceRequestCapacityReservationSpecificationObservation] @go(CapacityReservationSpecification,[]SpotInstanceRequestCapacityReservationSpecificationObservation) - creditSpecification?: [...#SpotInstanceRequestCreditSpecificationObservation] @go(CreditSpecification,[]SpotInstanceRequestCreditSpecificationObservation) - disableApiStop?: null | bool @go(DisableAPIStop,*bool) - disableApiTermination?: null | bool @go(DisableAPITermination,*bool) - ebsBlockDevice?: [...#SpotInstanceRequestEBSBlockDeviceObservation] @go(EBSBlockDevice,[]SpotInstanceRequestEBSBlockDeviceObservation) - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - enclaveOptions?: [...#SpotInstanceRequestEnclaveOptionsObservation] @go(EnclaveOptions,[]SpotInstanceRequestEnclaveOptionsObservation) - ephemeralBlockDevice?: [...#SpotInstanceRequestEphemeralBlockDeviceObservation] @go(EphemeralBlockDevice,[]SpotInstanceRequestEphemeralBlockDeviceObservation) - getPasswordData?: null | bool @go(GetPasswordData,*bool) - hibernation?: null | bool @go(Hibernation,*bool) - - // The Spot Instance Request ID. - hostId?: null | string @go(HostID,*string) - hostResourceGroupArn?: null | string @go(HostResourceGroupArn,*string) - iamInstanceProfile?: null | string @go(IAMInstanceProfile,*string) - - // The Spot Instance Request ID. - id?: null | string @go(ID,*string) - ipv6AddressCount?: null | float64 @go(IPv6AddressCount,*float64) - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - instanceInitiatedShutdownBehavior?: null | string @go(InstanceInitiatedShutdownBehavior,*string) - - // Indicates Spot instance behavior when it is interrupted. Valid values are terminate, stop, or hibernate. Default value is terminate. - instanceInterruptionBehavior?: null | string @go(InstanceInterruptionBehavior,*string) - instanceState?: null | string @go(InstanceState,*string) - instanceType?: null | string @go(InstanceType,*string) - keyName?: null | string @go(KeyName,*string) - - // A launch group is a group of spot instances that launch together and terminate together. - // If left empty instances are launched and terminated individually. - launchGroup?: null | string @go(LaunchGroup,*string) - launchTemplate?: [...#SpotInstanceRequestLaunchTemplateObservation] @go(LaunchTemplate,[]SpotInstanceRequestLaunchTemplateObservation) - maintenanceOptions?: [...#SpotInstanceRequestMaintenanceOptionsObservation] @go(MaintenanceOptions,[]SpotInstanceRequestMaintenanceOptionsObservation) - metadataOptions?: [...#SpotInstanceRequestMetadataOptionsObservation] @go(MetadataOptions,[]SpotInstanceRequestMetadataOptionsObservation) - monitoring?: null | bool @go(Monitoring,*bool) - networkInterface?: [...#SpotInstanceRequestNetworkInterfaceObservation] @go(NetworkInterface,[]SpotInstanceRequestNetworkInterfaceObservation) - outpostArn?: null | string @go(OutpostArn,*string) - passwordData?: null | string @go(PasswordData,*string) - placementGroup?: null | string @go(PlacementGroup,*string) - placementPartitionNumber?: null | float64 @go(PlacementPartitionNumber,*float64) - - // The Spot Instance Request ID. - primaryNetworkInterfaceId?: null | string @go(PrimaryNetworkInterfaceID,*string) - - // The private DNS name assigned to the instance. Can only be - // used inside the Amazon EC2, and only available if you've enabled DNS hostnames - // for your VPC - privateDns?: null | string @go(PrivateDNS,*string) - privateDnsNameOptions?: [...#SpotInstanceRequestPrivateDNSNameOptionsObservation] @go(PrivateDNSNameOptions,[]SpotInstanceRequestPrivateDNSNameOptionsObservation) - - // The private IP address assigned to the instance - privateIp?: null | string @go(PrivateIP,*string) - - // The public DNS name assigned to the instance. For EC2-VPC, this - // is only available if you've enabled DNS hostnames for your VPC - publicDns?: null | string @go(PublicDNS,*string) - - // The public IP address assigned to the instance, if applicable. - publicIp?: null | string @go(PublicIP,*string) - rootBlockDevice?: [...#SpotInstanceRequestRootBlockDeviceObservation] @go(RootBlockDevice,[]SpotInstanceRequestRootBlockDeviceObservation) - secondaryPrivateIps?: [...null | string] @go(SecondaryPrivateIps,[]*string) - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - sourceDestCheck?: null | bool @go(SourceDestCheck,*bool) - - // The current bid - // status - // of the Spot Instance Request. - spotBidStatus?: null | string @go(SpotBidStatus,*string) - - // The Instance ID (if any) that is currently fulfilling - // the Spot Instance request. - spotInstanceId?: null | string @go(SpotInstanceID,*string) - - // The maximum price to request on the spot market. - spotPrice?: null | string @go(SpotPrice,*string) - - // The current request - // state - // of the Spot Instance Request. - spotRequestState?: null | string @go(SpotRequestState,*string) - - // If set to one-time, after - // the instance is terminated, the spot request will be closed. - spotType?: null | string @go(SpotType,*string) - - // The Spot Instance Request ID. - subnetId?: null | string @go(SubnetID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - tenancy?: null | string @go(Tenancy,*string) - userData?: null | string @go(UserData,*string) - userDataBase64?: null | string @go(UserDataBase64,*string) - userDataReplaceOnChange?: null | bool @go(UserDataReplaceOnChange,*bool) - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately. - validFrom?: null | string @go(ValidFrom,*string) - - // The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. The default end date is 7 days from the current date. - validUntil?: null | string @go(ValidUntil,*string) - - // Key-value map of resource tags. - volumeTags?: {[string]: null | string} @go(VolumeTags,map[string]*string) - waitForFulfillment?: null | bool @go(WaitForFulfillment,*bool) -} - -#SpotInstanceRequestParameters: { - // +kubebuilder:validation:Optional - ami?: null | string @go(AMI,*string) - - // +kubebuilder:validation:Optional - associatePublicIpAddress?: null | bool @go(AssociatePublicIPAddress,*bool) - - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The required duration for the Spot instances, in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). - // The duration period starts as soon as your Spot instance receives its instance ID. At the end of the duration period, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates. - // Note that you can't specify an Availability Zone group or a launch group if you specify a duration. - // +kubebuilder:validation:Optional - blockDurationMinutes?: null | float64 @go(BlockDurationMinutes,*float64) - - // +kubebuilder:validation:Optional - cpuCoreCount?: null | float64 @go(CPUCoreCount,*float64) - - // +kubebuilder:validation:Optional - cpuOptions?: [...#SpotInstanceRequestCPUOptionsParameters] @go(CPUOptions,[]SpotInstanceRequestCPUOptionsParameters) - - // +kubebuilder:validation:Optional - cpuThreadsPerCore?: null | float64 @go(CPUThreadsPerCore,*float64) - - // +kubebuilder:validation:Optional - capacityReservationSpecification?: [...#SpotInstanceRequestCapacityReservationSpecificationParameters] @go(CapacityReservationSpecification,[]SpotInstanceRequestCapacityReservationSpecificationParameters) - - // +kubebuilder:validation:Optional - creditSpecification?: [...#SpotInstanceRequestCreditSpecificationParameters] @go(CreditSpecification,[]SpotInstanceRequestCreditSpecificationParameters) - - // +kubebuilder:validation:Optional - disableApiStop?: null | bool @go(DisableAPIStop,*bool) - - // +kubebuilder:validation:Optional - disableApiTermination?: null | bool @go(DisableAPITermination,*bool) - - // +kubebuilder:validation:Optional - ebsBlockDevice?: [...#SpotInstanceRequestEBSBlockDeviceParameters] @go(EBSBlockDevice,[]SpotInstanceRequestEBSBlockDeviceParameters) - - // +kubebuilder:validation:Optional - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // +kubebuilder:validation:Optional - enclaveOptions?: [...#SpotInstanceRequestEnclaveOptionsParameters] @go(EnclaveOptions,[]SpotInstanceRequestEnclaveOptionsParameters) - - // +kubebuilder:validation:Optional - ephemeralBlockDevice?: [...#SpotInstanceRequestEphemeralBlockDeviceParameters] @go(EphemeralBlockDevice,[]SpotInstanceRequestEphemeralBlockDeviceParameters) - - // +kubebuilder:validation:Optional - getPasswordData?: null | bool @go(GetPasswordData,*bool) - - // +kubebuilder:validation:Optional - hibernation?: null | bool @go(Hibernation,*bool) - - // The Spot Instance Request ID. - // +kubebuilder:validation:Optional - hostId?: null | string @go(HostID,*string) - - // +kubebuilder:validation:Optional - hostResourceGroupArn?: null | string @go(HostResourceGroupArn,*string) - - // +kubebuilder:validation:Optional - iamInstanceProfile?: null | string @go(IAMInstanceProfile,*string) - - // +kubebuilder:validation:Optional - ipv6AddressCount?: null | float64 @go(IPv6AddressCount,*float64) - - // +kubebuilder:validation:Optional - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - - // +kubebuilder:validation:Optional - instanceInitiatedShutdownBehavior?: null | string @go(InstanceInitiatedShutdownBehavior,*string) - - // Indicates Spot instance behavior when it is interrupted. Valid values are terminate, stop, or hibernate. Default value is terminate. - // +kubebuilder:validation:Optional - instanceInterruptionBehavior?: null | string @go(InstanceInterruptionBehavior,*string) - - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // +kubebuilder:validation:Optional - keyName?: null | string @go(KeyName,*string) - - // A launch group is a group of spot instances that launch together and terminate together. - // If left empty instances are launched and terminated individually. - // +kubebuilder:validation:Optional - launchGroup?: null | string @go(LaunchGroup,*string) - - // +kubebuilder:validation:Optional - launchTemplate?: [...#SpotInstanceRequestLaunchTemplateParameters] @go(LaunchTemplate,[]SpotInstanceRequestLaunchTemplateParameters) - - // +kubebuilder:validation:Optional - maintenanceOptions?: [...#SpotInstanceRequestMaintenanceOptionsParameters] @go(MaintenanceOptions,[]SpotInstanceRequestMaintenanceOptionsParameters) - - // +kubebuilder:validation:Optional - metadataOptions?: [...#SpotInstanceRequestMetadataOptionsParameters] @go(MetadataOptions,[]SpotInstanceRequestMetadataOptionsParameters) - - // +kubebuilder:validation:Optional - monitoring?: null | bool @go(Monitoring,*bool) - - // +kubebuilder:validation:Optional - networkInterface?: [...#SpotInstanceRequestNetworkInterfaceParameters] @go(NetworkInterface,[]SpotInstanceRequestNetworkInterfaceParameters) - - // +kubebuilder:validation:Optional - placementGroup?: null | string @go(PlacementGroup,*string) - - // +kubebuilder:validation:Optional - placementPartitionNumber?: null | float64 @go(PlacementPartitionNumber,*float64) - - // +kubebuilder:validation:Optional - privateDnsNameOptions?: [...#SpotInstanceRequestPrivateDNSNameOptionsParameters] @go(PrivateDNSNameOptions,[]SpotInstanceRequestPrivateDNSNameOptionsParameters) - - // The private IP address assigned to the instance - // +kubebuilder:validation:Optional - privateIp?: null | string @go(PrivateIP,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // +kubebuilder:validation:Optional - rootBlockDevice?: [...#SpotInstanceRequestRootBlockDeviceParameters] @go(RootBlockDevice,[]SpotInstanceRequestRootBlockDeviceParameters) - - // +kubebuilder:validation:Optional - secondaryPrivateIps?: [...null | string] @go(SecondaryPrivateIps,[]*string) - - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // +kubebuilder:validation:Optional - sourceDestCheck?: null | bool @go(SourceDestCheck,*bool) - - // The maximum price to request on the spot market. - // +kubebuilder:validation:Optional - spotPrice?: null | string @go(SpotPrice,*string) - - // If set to one-time, after - // the instance is terminated, the spot request will be closed. - // +kubebuilder:validation:Optional - spotType?: null | string @go(SpotType,*string) - - // The Spot Instance Request ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // +kubebuilder:validation:Optional - tenancy?: null | string @go(Tenancy,*string) - - // +kubebuilder:validation:Optional - userData?: null | string @go(UserData,*string) - - // +kubebuilder:validation:Optional - userDataBase64?: null | string @go(UserDataBase64,*string) - - // +kubebuilder:validation:Optional - userDataReplaceOnChange?: null | bool @go(UserDataReplaceOnChange,*bool) - - // References to SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdRefs?: [...v1.#Reference] @go(VPCSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdSelector?: null | v1.#Selector @go(VPCSecurityGroupIDSelector,*v1.Selector) - - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately. - // +kubebuilder:validation:Optional - validFrom?: null | string @go(ValidFrom,*string) - - // The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. The default end date is 7 days from the current date. - // +kubebuilder:validation:Optional - validUntil?: null | string @go(ValidUntil,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - volumeTags?: {[string]: null | string} @go(VolumeTags,map[string]*string) - - // +kubebuilder:validation:Optional - waitForFulfillment?: null | bool @go(WaitForFulfillment,*bool) -} - -#SpotInstanceRequestPrivateDNSNameOptionsInitParameters: { - enableResourceNameDnsARecord?: null | bool @go(EnableResourceNameDNSARecord,*bool) - enableResourceNameDnsAaaaRecord?: null | bool @go(EnableResourceNameDNSAaaaRecord,*bool) - hostnameType?: null | string @go(HostnameType,*string) -} - -#SpotInstanceRequestPrivateDNSNameOptionsObservation: { - enableResourceNameDnsARecord?: null | bool @go(EnableResourceNameDNSARecord,*bool) - enableResourceNameDnsAaaaRecord?: null | bool @go(EnableResourceNameDNSAaaaRecord,*bool) - hostnameType?: null | string @go(HostnameType,*string) -} - -#SpotInstanceRequestPrivateDNSNameOptionsParameters: { - // +kubebuilder:validation:Optional - enableResourceNameDnsARecord?: null | bool @go(EnableResourceNameDNSARecord,*bool) - - // +kubebuilder:validation:Optional - enableResourceNameDnsAaaaRecord?: null | bool @go(EnableResourceNameDNSAaaaRecord,*bool) - - // +kubebuilder:validation:Optional - hostnameType?: null | string @go(HostnameType,*string) -} - -#SpotInstanceRequestRootBlockDeviceInitParameters: { - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - encrypted?: null | bool @go(Encrypted,*bool) - iops?: null | float64 @go(Iops,*float64) - - // The Spot Instance Request ID. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - throughput?: null | float64 @go(Throughput,*float64) - volumeSize?: null | float64 @go(VolumeSize,*float64) - volumeType?: null | string @go(VolumeType,*string) -} - -#SpotInstanceRequestRootBlockDeviceObservation: { - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - deviceName?: null | string @go(DeviceName,*string) - encrypted?: null | bool @go(Encrypted,*bool) - iops?: null | float64 @go(Iops,*float64) - - // The Spot Instance Request ID. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - throughput?: null | float64 @go(Throughput,*float64) - - // The Spot Instance Request ID. - volumeId?: null | string @go(VolumeID,*string) - volumeSize?: null | float64 @go(VolumeSize,*float64) - volumeType?: null | string @go(VolumeType,*string) -} - -#SpotInstanceRequestRootBlockDeviceParameters: { - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The Spot Instance Request ID. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -// SpotInstanceRequestSpec defines the desired state of SpotInstanceRequest -#SpotInstanceRequestSpec: { - v1.#ResourceSpec - forProvider: #SpotInstanceRequestParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SpotInstanceRequestInitParameters @go(InitProvider) -} - -// SpotInstanceRequestStatus defines the observed state of SpotInstanceRequest. -#SpotInstanceRequestStatus: { - v1.#ResourceStatus - atProvider?: #SpotInstanceRequestObservation @go(AtProvider) -} - -// SpotInstanceRequest is the Schema for the SpotInstanceRequests API. Provides a Spot Instance Request resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SpotInstanceRequest: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SpotInstanceRequestSpec @go(Spec) - status?: #SpotInstanceRequestStatus @go(Status) -} - -// SpotInstanceRequestList contains a list of SpotInstanceRequests -#SpotInstanceRequestList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SpotInstanceRequest] @go(Items,[]SpotInstanceRequest) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_subnet_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_subnet_types_go_gen.cue deleted file mode 100644 index fce98c4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_subnet_types_go_gen.cue +++ /dev/null @@ -1,272 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SubnetInitParameters_2: { - // Specify true to indicate - // that network interfaces created in the specified subnet should be - // assigned an IPv6 address. Default is false - assignIpv6AddressOnCreation?: null | bool @go(AssignIPv6AddressOnCreation,*bool) - - // AZ for the subnet. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // AZ ID of the subnet. This argument is not supported in all regions or partitions. If necessary, use availability_zone instead. - availabilityZoneId?: null | string @go(AvailabilityZoneID,*string) - - // The IPv4 CIDR block for the subnet. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The customer owned IPv4 address pool. Typically used with the map_customer_owned_ip_on_launch argument. The outpost_arn argument must be specified when configured. - customerOwnedIpv4Pool?: null | string @go(CustomerOwnedIPv4Pool,*string) - - // Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations. Default: false. - enableDns64?: null | bool @go(EnableDns64,*bool) - - // Indicates the device position for local network interfaces in this subnet. For example, 1 indicates local network interfaces in this subnet are the secondary network interface (eth1). A local network interface cannot be the primary network interface (eth0). - enableLniAtDeviceIndex?: null | float64 @go(EnableLniAtDeviceIndex,*float64) - - // Indicates whether to respond to DNS queries for instance hostnames with DNS A records. Default: false. - enableResourceNameDnsARecordOnLaunch?: null | bool @go(EnableResourceNameDNSARecordOnLaunch,*bool) - - // Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. Default: false. - enableResourceNameDnsAaaaRecordOnLaunch?: null | bool @go(EnableResourceNameDNSAaaaRecordOnLaunch,*bool) - - // The IPv6 network range for the subnet, - // in CIDR notation. The subnet size must use a /64 prefix length. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // Indicates whether to create an IPv6-only subnet. Default: false. - ipv6Native?: null | bool @go(IPv6Native,*bool) - - // Specify true to indicate that network interfaces created in the subnet should be assigned a customer owned IP address. The customer_owned_ipv4_pool and outpost_arn arguments must be specified when set to true. Default is false. - mapCustomerOwnedIpOnLaunch?: null | bool @go(MapCustomerOwnedIPOnLaunch,*bool) - - // Specify true to indicate - // that instances launched into the subnet should be assigned - // a public IP address. Default is false. - mapPublicIpOnLaunch?: null | bool @go(MapPublicIPOnLaunch,*bool) - - // The Amazon Resource Name (ARN) of the Outpost. - outpostArn?: null | string @go(OutpostArn,*string) - - // The type of hostnames to assign to instances in the subnet at launch. For IPv6-only subnets, an instance DNS name must be based on the instance ID. For dual-stack and IPv4-only subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name, resource-name. - privateDnsHostnameTypeOnLaunch?: null | string @go(PrivateDNSHostnameTypeOnLaunch,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SubnetObservation_2: { - // The ARN of the subnet. - arn?: null | string @go(Arn,*string) - - // Specify true to indicate - // that network interfaces created in the specified subnet should be - // assigned an IPv6 address. Default is false - assignIpv6AddressOnCreation?: null | bool @go(AssignIPv6AddressOnCreation,*bool) - - // AZ for the subnet. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // AZ ID of the subnet. This argument is not supported in all regions or partitions. If necessary, use availability_zone instead. - availabilityZoneId?: null | string @go(AvailabilityZoneID,*string) - - // The IPv4 CIDR block for the subnet. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The customer owned IPv4 address pool. Typically used with the map_customer_owned_ip_on_launch argument. The outpost_arn argument must be specified when configured. - customerOwnedIpv4Pool?: null | string @go(CustomerOwnedIPv4Pool,*string) - - // Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations. Default: false. - enableDns64?: null | bool @go(EnableDns64,*bool) - - // Indicates the device position for local network interfaces in this subnet. For example, 1 indicates local network interfaces in this subnet are the secondary network interface (eth1). A local network interface cannot be the primary network interface (eth0). - enableLniAtDeviceIndex?: null | float64 @go(EnableLniAtDeviceIndex,*float64) - - // Indicates whether to respond to DNS queries for instance hostnames with DNS A records. Default: false. - enableResourceNameDnsARecordOnLaunch?: null | bool @go(EnableResourceNameDNSARecordOnLaunch,*bool) - - // Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. Default: false. - enableResourceNameDnsAaaaRecordOnLaunch?: null | bool @go(EnableResourceNameDNSAaaaRecordOnLaunch,*bool) - - // The ID of the subnet - id?: null | string @go(ID,*string) - - // The IPv6 network range for the subnet, - // in CIDR notation. The subnet size must use a /64 prefix length. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // The association ID for the IPv6 CIDR block. - ipv6CidrBlockAssociationId?: null | string @go(IPv6CidrBlockAssociationID,*string) - - // Indicates whether to create an IPv6-only subnet. Default: false. - ipv6Native?: null | bool @go(IPv6Native,*bool) - - // Specify true to indicate that network interfaces created in the subnet should be assigned a customer owned IP address. The customer_owned_ipv4_pool and outpost_arn arguments must be specified when set to true. Default is false. - mapCustomerOwnedIpOnLaunch?: null | bool @go(MapCustomerOwnedIPOnLaunch,*bool) - - // Specify true to indicate - // that instances launched into the subnet should be assigned - // a public IP address. Default is false. - mapPublicIpOnLaunch?: null | bool @go(MapPublicIPOnLaunch,*bool) - - // The Amazon Resource Name (ARN) of the Outpost. - outpostArn?: null | string @go(OutpostArn,*string) - - // The ID of the AWS account that owns the subnet. - ownerId?: null | string @go(OwnerID,*string) - - // The type of hostnames to assign to instances in the subnet at launch. For IPv6-only subnets, an instance DNS name must be based on the instance ID. For dual-stack and IPv4-only subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name, resource-name. - privateDnsHostnameTypeOnLaunch?: null | string @go(PrivateDNSHostnameTypeOnLaunch,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The VPC ID. - vpcId?: null | string @go(VPCID,*string) -} - -#SubnetParameters_2: { - // Specify true to indicate - // that network interfaces created in the specified subnet should be - // assigned an IPv6 address. Default is false - // +kubebuilder:validation:Optional - assignIpv6AddressOnCreation?: null | bool @go(AssignIPv6AddressOnCreation,*bool) - - // AZ for the subnet. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // AZ ID of the subnet. This argument is not supported in all regions or partitions. If necessary, use availability_zone instead. - // +kubebuilder:validation:Optional - availabilityZoneId?: null | string @go(AvailabilityZoneID,*string) - - // The IPv4 CIDR block for the subnet. - // +kubebuilder:validation:Optional - cidrBlock?: null | string @go(CidrBlock,*string) - - // The customer owned IPv4 address pool. Typically used with the map_customer_owned_ip_on_launch argument. The outpost_arn argument must be specified when configured. - // +kubebuilder:validation:Optional - customerOwnedIpv4Pool?: null | string @go(CustomerOwnedIPv4Pool,*string) - - // Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations. Default: false. - // +kubebuilder:validation:Optional - enableDns64?: null | bool @go(EnableDns64,*bool) - - // Indicates the device position for local network interfaces in this subnet. For example, 1 indicates local network interfaces in this subnet are the secondary network interface (eth1). A local network interface cannot be the primary network interface (eth0). - // +kubebuilder:validation:Optional - enableLniAtDeviceIndex?: null | float64 @go(EnableLniAtDeviceIndex,*float64) - - // Indicates whether to respond to DNS queries for instance hostnames with DNS A records. Default: false. - // +kubebuilder:validation:Optional - enableResourceNameDnsARecordOnLaunch?: null | bool @go(EnableResourceNameDNSARecordOnLaunch,*bool) - - // Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. Default: false. - // +kubebuilder:validation:Optional - enableResourceNameDnsAaaaRecordOnLaunch?: null | bool @go(EnableResourceNameDNSAaaaRecordOnLaunch,*bool) - - // The IPv6 network range for the subnet, - // in CIDR notation. The subnet size must use a /64 prefix length. - // +kubebuilder:validation:Optional - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // Indicates whether to create an IPv6-only subnet. Default: false. - // +kubebuilder:validation:Optional - ipv6Native?: null | bool @go(IPv6Native,*bool) - - // Specify true to indicate that network interfaces created in the subnet should be assigned a customer owned IP address. The customer_owned_ipv4_pool and outpost_arn arguments must be specified when set to true. Default is false. - // +kubebuilder:validation:Optional - mapCustomerOwnedIpOnLaunch?: null | bool @go(MapCustomerOwnedIPOnLaunch,*bool) - - // Specify true to indicate - // that instances launched into the subnet should be assigned - // a public IP address. Default is false. - // +kubebuilder:validation:Optional - mapPublicIpOnLaunch?: null | bool @go(MapPublicIPOnLaunch,*bool) - - // The Amazon Resource Name (ARN) of the Outpost. - // +kubebuilder:validation:Optional - outpostArn?: null | string @go(OutpostArn,*string) - - // The type of hostnames to assign to instances in the subnet at launch. For IPv6-only subnets, an instance DNS name must be based on the instance ID. For dual-stack and IPv4-only subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name, resource-name. - // +kubebuilder:validation:Optional - privateDnsHostnameTypeOnLaunch?: null | string @go(PrivateDNSHostnameTypeOnLaunch,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VPC ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// SubnetSpec defines the desired state of Subnet -#SubnetSpec: { - v1.#ResourceSpec - forProvider: #SubnetParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SubnetInitParameters_2 @go(InitProvider) -} - -// SubnetStatus defines the observed state of Subnet. -#SubnetStatus: { - v1.#ResourceStatus - atProvider?: #SubnetObservation_2 @go(AtProvider) -} - -// Subnet is the Schema for the Subnets API. Provides an VPC subnet resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Subnet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SubnetSpec @go(Spec) - status?: #SubnetStatus @go(Status) -} - -// SubnetList contains a list of Subnets -#SubnetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Subnet] @go(Items,[]Subnet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_subnetcidrreservation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_subnetcidrreservation_types_go_gen.cue deleted file mode 100644 index 5cfd5e0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_subnetcidrreservation_types_go_gen.cue +++ /dev/null @@ -1,121 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SubnetCidrReservationInitParameters: { - // The CIDR block for the reservation. - cidrBlock?: null | string @go(CidrBlock,*string) - - // A brief description of the reservation. - description?: null | string @go(Description,*string) - - // The type of reservation to create. Valid values: explicit, prefix - reservationType?: null | string @go(ReservationType,*string) -} - -#SubnetCidrReservationObservation: { - // The CIDR block for the reservation. - cidrBlock?: null | string @go(CidrBlock,*string) - - // A brief description of the reservation. - description?: null | string @go(Description,*string) - - // ID of the CIDR reservation. - id?: null | string @go(ID,*string) - - // ID of the AWS account that owns this CIDR reservation. - ownerId?: null | string @go(OwnerID,*string) - - // The type of reservation to create. Valid values: explicit, prefix - reservationType?: null | string @go(ReservationType,*string) - - // The ID of the subnet to create the reservation for. - subnetId?: null | string @go(SubnetID,*string) -} - -#SubnetCidrReservationParameters: { - // The CIDR block for the reservation. - // +kubebuilder:validation:Optional - cidrBlock?: null | string @go(CidrBlock,*string) - - // A brief description of the reservation. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The type of reservation to create. Valid values: explicit, prefix - // +kubebuilder:validation:Optional - reservationType?: null | string @go(ReservationType,*string) - - // The ID of the subnet to create the reservation for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) -} - -// SubnetCidrReservationSpec defines the desired state of SubnetCidrReservation -#SubnetCidrReservationSpec: { - v1.#ResourceSpec - forProvider: #SubnetCidrReservationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SubnetCidrReservationInitParameters @go(InitProvider) -} - -// SubnetCidrReservationStatus defines the observed state of SubnetCidrReservation. -#SubnetCidrReservationStatus: { - v1.#ResourceStatus - atProvider?: #SubnetCidrReservationObservation @go(AtProvider) -} - -// SubnetCidrReservation is the Schema for the SubnetCidrReservations API. Provides a subnet CIDR reservation resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SubnetCidrReservation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.cidrBlock) || (has(self.initProvider) && has(self.initProvider.cidrBlock))",message="spec.forProvider.cidrBlock is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.reservationType) || (has(self.initProvider) && has(self.initProvider.reservationType))",message="spec.forProvider.reservationType is a required parameter" - spec: #SubnetCidrReservationSpec @go(Spec) - status?: #SubnetCidrReservationStatus @go(Status) -} - -// SubnetCidrReservationList contains a list of SubnetCidrReservations -#SubnetCidrReservationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SubnetCidrReservation] @go(Items,[]SubnetCidrReservation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_tag_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_tag_types_go_gen.cue deleted file mode 100644 index e13139c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_tag_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TagInitParameters: { - // The value of the tag. - value?: null | string @go(Value,*string) -} - -#TagObservation: { - // EC2 resource identifier and key, separated by a comma (,) - id?: null | string @go(ID,*string) - - // The tag name. - key?: null | string @go(Key,*string) - - // The ID of the EC2 resource to manage the tag for. - resourceId?: null | string @go(ResourceID,*string) - - // The value of the tag. - value?: null | string @go(Value,*string) -} - -#TagParameters: { - // The tag name. - // +kubebuilder:validation:Required - key?: null | string @go(Key,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the EC2 resource to manage the tag for. - // +kubebuilder:validation:Required - resourceId?: null | string @go(ResourceID,*string) - - // The value of the tag. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// TagSpec defines the desired state of Tag -#TagSpec: { - v1.#ResourceSpec - forProvider: #TagParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TagInitParameters @go(InitProvider) -} - -// TagStatus defines the observed state of Tag. -#TagStatus: { - v1.#ResourceStatus - atProvider?: #TagObservation @go(AtProvider) -} - -// Tag is the Schema for the Tags API. Manages an individual EC2 resource tag -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Tag: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.value) || (has(self.initProvider) && has(self.initProvider.value))",message="spec.forProvider.value is a required parameter" - spec: #TagSpec @go(Spec) - status?: #TagStatus @go(Status) -} - -// TagList contains a list of Tags -#TagList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Tag] @go(Items,[]Tag) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_trafficmirrorfilter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_trafficmirrorfilter_types_go_gen.cue deleted file mode 100644 index 9dce725..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_trafficmirrorfilter_types_go_gen.cue +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TrafficMirrorFilterInitParameters: { - // A description of the filter. - description?: null | string @go(Description,*string) - - // List of amazon network services that should be mirrored. Valid values: amazon-dns. - networkServices?: [...null | string] @go(NetworkServices,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TrafficMirrorFilterObservation: { - // The ARN of the traffic mirror filter. - arn?: null | string @go(Arn,*string) - - // A description of the filter. - description?: null | string @go(Description,*string) - - // The name of the filter. - id?: null | string @go(ID,*string) - - // List of amazon network services that should be mirrored. Valid values: amazon-dns. - networkServices?: [...null | string] @go(NetworkServices,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#TrafficMirrorFilterParameters: { - // A description of the filter. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // List of amazon network services that should be mirrored. Valid values: amazon-dns. - // +kubebuilder:validation:Optional - networkServices?: [...null | string] @go(NetworkServices,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// TrafficMirrorFilterSpec defines the desired state of TrafficMirrorFilter -#TrafficMirrorFilterSpec: { - v1.#ResourceSpec - forProvider: #TrafficMirrorFilterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TrafficMirrorFilterInitParameters @go(InitProvider) -} - -// TrafficMirrorFilterStatus defines the observed state of TrafficMirrorFilter. -#TrafficMirrorFilterStatus: { - v1.#ResourceStatus - atProvider?: #TrafficMirrorFilterObservation @go(AtProvider) -} - -// TrafficMirrorFilter is the Schema for the TrafficMirrorFilters API. Provides an Traffic mirror filter -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TrafficMirrorFilter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TrafficMirrorFilterSpec @go(Spec) - status?: #TrafficMirrorFilterStatus @go(Status) -} - -// TrafficMirrorFilterList contains a list of TrafficMirrorFilters -#TrafficMirrorFilterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TrafficMirrorFilter] @go(Items,[]TrafficMirrorFilter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_trafficmirrorfilterrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_trafficmirrorfilterrule_types_go_gen.cue deleted file mode 100644 index b2a5537..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_trafficmirrorfilterrule_types_go_gen.cue +++ /dev/null @@ -1,237 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DestinationPortRangeInitParameters: { - // Starting port of the range - fromPort?: null | float64 @go(FromPort,*float64) - - // Ending port of the range - toPort?: null | float64 @go(ToPort,*float64) -} - -#DestinationPortRangeObservation: { - // Starting port of the range - fromPort?: null | float64 @go(FromPort,*float64) - - // Ending port of the range - toPort?: null | float64 @go(ToPort,*float64) -} - -#DestinationPortRangeParameters: { - // Starting port of the range - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // Ending port of the range - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -#SourcePortRangeInitParameters: { - // Starting port of the range - fromPort?: null | float64 @go(FromPort,*float64) - - // Ending port of the range - toPort?: null | float64 @go(ToPort,*float64) -} - -#SourcePortRangeObservation: { - // Starting port of the range - fromPort?: null | float64 @go(FromPort,*float64) - - // Ending port of the range - toPort?: null | float64 @go(ToPort,*float64) -} - -#SourcePortRangeParameters: { - // Starting port of the range - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // Ending port of the range - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -#TrafficMirrorFilterRuleInitParameters: { - // Description of the traffic mirror filter rule. - description?: null | string @go(Description,*string) - - // Destination CIDR block to assign to the Traffic Mirror rule. - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) - - // Destination port range. Supported only when the protocol is set to TCP(6) or UDP(17). See Traffic mirror port range documented below - destinationPortRange?: [...#DestinationPortRangeInitParameters] @go(DestinationPortRange,[]DestinationPortRangeInitParameters) - - // Protocol number, for example 17 (UDP), to assign to the Traffic Mirror rule. For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website. - protocol?: null | float64 @go(Protocol,*float64) - - // Action to take (accept | reject) on the filtered traffic. Valid values are accept and reject - ruleAction?: null | string @go(RuleAction,*string) - - // Number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number. - ruleNumber?: null | float64 @go(RuleNumber,*float64) - - // Source CIDR block to assign to the Traffic Mirror rule. - sourceCidrBlock?: null | string @go(SourceCidrBlock,*string) - - // Source port range. Supported only when the protocol is set to TCP(6) or UDP(17). See Traffic mirror port range documented below - sourcePortRange?: [...#SourcePortRangeInitParameters] @go(SourcePortRange,[]SourcePortRangeInitParameters) - - // Direction of traffic to be captured. Valid values are ingress and egress - trafficDirection?: null | string @go(TrafficDirection,*string) -} - -#TrafficMirrorFilterRuleObservation: { - // ARN of the traffic mirror filter rule. - arn?: null | string @go(Arn,*string) - - // Description of the traffic mirror filter rule. - description?: null | string @go(Description,*string) - - // Destination CIDR block to assign to the Traffic Mirror rule. - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) - - // Destination port range. Supported only when the protocol is set to TCP(6) or UDP(17). See Traffic mirror port range documented below - destinationPortRange?: [...#DestinationPortRangeObservation] @go(DestinationPortRange,[]DestinationPortRangeObservation) - - // Name of the traffic mirror filter rule. - id?: null | string @go(ID,*string) - - // Protocol number, for example 17 (UDP), to assign to the Traffic Mirror rule. For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website. - protocol?: null | float64 @go(Protocol,*float64) - - // Action to take (accept | reject) on the filtered traffic. Valid values are accept and reject - ruleAction?: null | string @go(RuleAction,*string) - - // Number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number. - ruleNumber?: null | float64 @go(RuleNumber,*float64) - - // Source CIDR block to assign to the Traffic Mirror rule. - sourceCidrBlock?: null | string @go(SourceCidrBlock,*string) - - // Source port range. Supported only when the protocol is set to TCP(6) or UDP(17). See Traffic mirror port range documented below - sourcePortRange?: [...#SourcePortRangeObservation] @go(SourcePortRange,[]SourcePortRangeObservation) - - // Direction of traffic to be captured. Valid values are ingress and egress - trafficDirection?: null | string @go(TrafficDirection,*string) - - // ID of the traffic mirror filter to which this rule should be added - trafficMirrorFilterId?: null | string @go(TrafficMirrorFilterID,*string) -} - -#TrafficMirrorFilterRuleParameters: { - // Description of the traffic mirror filter rule. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Destination CIDR block to assign to the Traffic Mirror rule. - // +kubebuilder:validation:Optional - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) - - // Destination port range. Supported only when the protocol is set to TCP(6) or UDP(17). See Traffic mirror port range documented below - // +kubebuilder:validation:Optional - destinationPortRange?: [...#DestinationPortRangeParameters] @go(DestinationPortRange,[]DestinationPortRangeParameters) - - // Protocol number, for example 17 (UDP), to assign to the Traffic Mirror rule. For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website. - // +kubebuilder:validation:Optional - protocol?: null | float64 @go(Protocol,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Action to take (accept | reject) on the filtered traffic. Valid values are accept and reject - // +kubebuilder:validation:Optional - ruleAction?: null | string @go(RuleAction,*string) - - // Number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number. - // +kubebuilder:validation:Optional - ruleNumber?: null | float64 @go(RuleNumber,*float64) - - // Source CIDR block to assign to the Traffic Mirror rule. - // +kubebuilder:validation:Optional - sourceCidrBlock?: null | string @go(SourceCidrBlock,*string) - - // Source port range. Supported only when the protocol is set to TCP(6) or UDP(17). See Traffic mirror port range documented below - // +kubebuilder:validation:Optional - sourcePortRange?: [...#SourcePortRangeParameters] @go(SourcePortRange,[]SourcePortRangeParameters) - - // Direction of traffic to be captured. Valid values are ingress and egress - // +kubebuilder:validation:Optional - trafficDirection?: null | string @go(TrafficDirection,*string) - - // ID of the traffic mirror filter to which this rule should be added - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TrafficMirrorFilter - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - trafficMirrorFilterId?: null | string @go(TrafficMirrorFilterID,*string) - - // Reference to a TrafficMirrorFilter in ec2 to populate trafficMirrorFilterId. - // +kubebuilder:validation:Optional - trafficMirrorFilterIdRef?: null | v1.#Reference @go(TrafficMirrorFilterIDRef,*v1.Reference) - - // Selector for a TrafficMirrorFilter in ec2 to populate trafficMirrorFilterId. - // +kubebuilder:validation:Optional - trafficMirrorFilterIdSelector?: null | v1.#Selector @go(TrafficMirrorFilterIDSelector,*v1.Selector) -} - -// TrafficMirrorFilterRuleSpec defines the desired state of TrafficMirrorFilterRule -#TrafficMirrorFilterRuleSpec: { - v1.#ResourceSpec - forProvider: #TrafficMirrorFilterRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TrafficMirrorFilterRuleInitParameters @go(InitProvider) -} - -// TrafficMirrorFilterRuleStatus defines the observed state of TrafficMirrorFilterRule. -#TrafficMirrorFilterRuleStatus: { - v1.#ResourceStatus - atProvider?: #TrafficMirrorFilterRuleObservation @go(AtProvider) -} - -// TrafficMirrorFilterRule is the Schema for the TrafficMirrorFilterRules API. Provides an Traffic mirror filter rule -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TrafficMirrorFilterRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destinationCidrBlock) || (has(self.initProvider) && has(self.initProvider.destinationCidrBlock))",message="spec.forProvider.destinationCidrBlock is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ruleAction) || (has(self.initProvider) && has(self.initProvider.ruleAction))",message="spec.forProvider.ruleAction is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ruleNumber) || (has(self.initProvider) && has(self.initProvider.ruleNumber))",message="spec.forProvider.ruleNumber is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sourceCidrBlock) || (has(self.initProvider) && has(self.initProvider.sourceCidrBlock))",message="spec.forProvider.sourceCidrBlock is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.trafficDirection) || (has(self.initProvider) && has(self.initProvider.trafficDirection))",message="spec.forProvider.trafficDirection is a required parameter" - spec: #TrafficMirrorFilterRuleSpec @go(Spec) - status?: #TrafficMirrorFilterRuleStatus @go(Status) -} - -// TrafficMirrorFilterRuleList contains a list of TrafficMirrorFilterRules -#TrafficMirrorFilterRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TrafficMirrorFilterRule] @go(Items,[]TrafficMirrorFilterRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgateway_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgateway_types_go_gen.cue deleted file mode 100644 index 32cab53..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgateway_types_go_gen.cue +++ /dev/null @@ -1,184 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayInitParameters_2: { - // Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. Default value: 64512. - amazonSideAsn?: null | float64 @go(AmazonSideAsn,*float64) - - // Whether resource attachment requests are automatically accepted. Valid values: disable, enable. Default value: disable. - autoAcceptSharedAttachments?: null | string @go(AutoAcceptSharedAttachments,*string) - - // Whether DNS support is enabled. Valid values: disable, enable. Default value: enable. - dnsSupport?: null | string @go(DNSSupport,*string) - - // Whether resource attachments are automatically associated with the default association route table. Valid values: disable, enable. Default value: enable. - defaultRouteTableAssociation?: null | string @go(DefaultRouteTableAssociation,*string) - - // Whether resource attachments automatically propagate routes to the default propagation route table. Valid values: disable, enable. Default value: enable. - defaultRouteTablePropagation?: null | string @go(DefaultRouteTablePropagation,*string) - - // Description of the EC2 Transit Gateway. - description?: null | string @go(Description,*string) - - // Whether Multicast support is enabled. Required to use ec2_transit_gateway_multicast_domain. Valid values: disable, enable. Default value: disable. - multicastSupport?: null | string @go(MulticastSupport,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6. - transitGatewayCidrBlocks?: [...null | string] @go(TransitGatewayCidrBlocks,[]*string) - - // Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values: disable, enable. Default value: enable. - vpnEcmpSupport?: null | string @go(VPNEcmpSupport,*string) -} - -#TransitGatewayObservation_2: { - // Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. Default value: 64512. - amazonSideAsn?: null | float64 @go(AmazonSideAsn,*float64) - - // EC2 Transit Gateway Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // Identifier of the default association route table - associationDefaultRouteTableId?: null | string @go(AssociationDefaultRouteTableID,*string) - - // Whether resource attachment requests are automatically accepted. Valid values: disable, enable. Default value: disable. - autoAcceptSharedAttachments?: null | string @go(AutoAcceptSharedAttachments,*string) - - // Whether DNS support is enabled. Valid values: disable, enable. Default value: enable. - dnsSupport?: null | string @go(DNSSupport,*string) - - // Whether resource attachments are automatically associated with the default association route table. Valid values: disable, enable. Default value: enable. - defaultRouteTableAssociation?: null | string @go(DefaultRouteTableAssociation,*string) - - // Whether resource attachments automatically propagate routes to the default propagation route table. Valid values: disable, enable. Default value: enable. - defaultRouteTablePropagation?: null | string @go(DefaultRouteTablePropagation,*string) - - // Description of the EC2 Transit Gateway. - description?: null | string @go(Description,*string) - - // EC2 Transit Gateway identifier - id?: null | string @go(ID,*string) - - // Whether Multicast support is enabled. Required to use ec2_transit_gateway_multicast_domain. Valid values: disable, enable. Default value: disable. - multicastSupport?: null | string @go(MulticastSupport,*string) - - // Identifier of the AWS account that owns the EC2 Transit Gateway - ownerId?: null | string @go(OwnerID,*string) - - // Identifier of the default propagation route table - propagationDefaultRouteTableId?: null | string @go(PropagationDefaultRouteTableID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6. - transitGatewayCidrBlocks?: [...null | string] @go(TransitGatewayCidrBlocks,[]*string) - - // Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values: disable, enable. Default value: enable. - vpnEcmpSupport?: null | string @go(VPNEcmpSupport,*string) -} - -#TransitGatewayParameters_2: { - // Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. Default value: 64512. - // +kubebuilder:validation:Optional - amazonSideAsn?: null | float64 @go(AmazonSideAsn,*float64) - - // Whether resource attachment requests are automatically accepted. Valid values: disable, enable. Default value: disable. - // +kubebuilder:validation:Optional - autoAcceptSharedAttachments?: null | string @go(AutoAcceptSharedAttachments,*string) - - // Whether DNS support is enabled. Valid values: disable, enable. Default value: enable. - // +kubebuilder:validation:Optional - dnsSupport?: null | string @go(DNSSupport,*string) - - // Whether resource attachments are automatically associated with the default association route table. Valid values: disable, enable. Default value: enable. - // +kubebuilder:validation:Optional - defaultRouteTableAssociation?: null | string @go(DefaultRouteTableAssociation,*string) - - // Whether resource attachments automatically propagate routes to the default propagation route table. Valid values: disable, enable. Default value: enable. - // +kubebuilder:validation:Optional - defaultRouteTablePropagation?: null | string @go(DefaultRouteTablePropagation,*string) - - // Description of the EC2 Transit Gateway. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether Multicast support is enabled. Required to use ec2_transit_gateway_multicast_domain. Valid values: disable, enable. Default value: disable. - // +kubebuilder:validation:Optional - multicastSupport?: null | string @go(MulticastSupport,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6. - // +kubebuilder:validation:Optional - transitGatewayCidrBlocks?: [...null | string] @go(TransitGatewayCidrBlocks,[]*string) - - // Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values: disable, enable. Default value: enable. - // +kubebuilder:validation:Optional - vpnEcmpSupport?: null | string @go(VPNEcmpSupport,*string) -} - -// TransitGatewaySpec defines the desired state of TransitGateway -#TransitGatewaySpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayInitParameters_2 @go(InitProvider) -} - -// TransitGatewayStatus defines the observed state of TransitGateway. -#TransitGatewayStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayObservation_2 @go(AtProvider) -} - -// TransitGateway is the Schema for the TransitGateways API. Manages an EC2 Transit Gateway -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGateway: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewaySpec @go(Spec) - status?: #TransitGatewayStatus @go(Status) -} - -// TransitGatewayList contains a list of TransitGateways -#TransitGatewayList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGateway] @go(Items,[]TransitGateway) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayconnect_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayconnect_types_go_gen.cue deleted file mode 100644 index 1150c6e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayconnect_types_go_gen.cue +++ /dev/null @@ -1,146 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayConnectInitParameters: { - // The tunnel protocol. Valida values: gre. Default is gre. - protocol?: null | string @go(Protocol,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Boolean whether the Connect should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. - transitGatewayDefaultRouteTableAssociation?: null | bool @go(TransitGatewayDefaultRouteTableAssociation,*bool) - - // Boolean whether the Connect should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. - transitGatewayDefaultRouteTablePropagation?: null | bool @go(TransitGatewayDefaultRouteTablePropagation,*bool) -} - -#TransitGatewayConnectObservation: { - // EC2 Transit Gateway Attachment identifier - id?: null | string @go(ID,*string) - - // The tunnel protocol. Valida values: gre. Default is gre. - protocol?: null | string @go(Protocol,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Boolean whether the Connect should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. - transitGatewayDefaultRouteTableAssociation?: null | bool @go(TransitGatewayDefaultRouteTableAssociation,*bool) - - // Boolean whether the Connect should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. - transitGatewayDefaultRouteTablePropagation?: null | bool @go(TransitGatewayDefaultRouteTablePropagation,*bool) - - // Identifier of EC2 Transit Gateway. - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // The underlaying VPC attachment - transportAttachmentId?: null | string @go(TransportAttachmentID,*string) -} - -#TransitGatewayConnectParameters: { - // The tunnel protocol. Valida values: gre. Default is gre. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Boolean whether the Connect should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. - // +kubebuilder:validation:Optional - transitGatewayDefaultRouteTableAssociation?: null | bool @go(TransitGatewayDefaultRouteTableAssociation,*bool) - - // Boolean whether the Connect should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. - // +kubebuilder:validation:Optional - transitGatewayDefaultRouteTablePropagation?: null | bool @go(TransitGatewayDefaultRouteTablePropagation,*bool) - - // Identifier of EC2 Transit Gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Reference to a TransitGateway in ec2 to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdRef?: null | v1.#Reference @go(TransitGatewayIDRef,*v1.Reference) - - // Selector for a TransitGateway in ec2 to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdSelector?: null | v1.#Selector @go(TransitGatewayIDSelector,*v1.Selector) - - // The underlaying VPC attachment - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGatewayVPCAttachment - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transportAttachmentId?: null | string @go(TransportAttachmentID,*string) - - // Reference to a TransitGatewayVPCAttachment in ec2 to populate transportAttachmentId. - // +kubebuilder:validation:Optional - transportAttachmentIdRef?: null | v1.#Reference @go(TransportAttachmentIDRef,*v1.Reference) - - // Selector for a TransitGatewayVPCAttachment in ec2 to populate transportAttachmentId. - // +kubebuilder:validation:Optional - transportAttachmentIdSelector?: null | v1.#Selector @go(TransportAttachmentIDSelector,*v1.Selector) -} - -// TransitGatewayConnectSpec defines the desired state of TransitGatewayConnect -#TransitGatewayConnectSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayConnectParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayConnectInitParameters @go(InitProvider) -} - -// TransitGatewayConnectStatus defines the observed state of TransitGatewayConnect. -#TransitGatewayConnectStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayConnectObservation @go(AtProvider) -} - -// TransitGatewayConnect is the Schema for the TransitGatewayConnects API. Manages an EC2 Transit Gateway Connect -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayConnect: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayConnectSpec @go(Spec) - status?: #TransitGatewayConnectStatus @go(Status) -} - -// TransitGatewayConnectList contains a list of TransitGatewayConnects -#TransitGatewayConnectList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayConnect] @go(Items,[]TransitGatewayConnect) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayconnectpeer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayconnectpeer_types_go_gen.cue deleted file mode 100644 index 43695ff..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayconnectpeer_types_go_gen.cue +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayConnectPeerInitParameters: { - // The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway. - bgpAsn?: null | string @go(BGPAsn,*string) - - // The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway) - insideCidrBlocks?: [...null | string] @go(InsideCidrBlocks,[]*string) - - // The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address - peerAddress?: null | string @go(PeerAddress,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks - transitGatewayAddress?: null | string @go(TransitGatewayAddress,*string) -} - -#TransitGatewayConnectPeerObservation: { - // EC2 Transit Gateway Connect Peer ARN - arn?: null | string @go(Arn,*string) - - // The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway. - bgpAsn?: null | string @go(BGPAsn,*string) - - // EC2 Transit Gateway Connect Peer identifier - id?: null | string @go(ID,*string) - - // The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway) - insideCidrBlocks?: [...null | string] @go(InsideCidrBlocks,[]*string) - - // The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address - peerAddress?: null | string @go(PeerAddress,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks - transitGatewayAddress?: null | string @go(TransitGatewayAddress,*string) - - // The Transit Gateway Connect - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) -} - -#TransitGatewayConnectPeerParameters: { - // The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway. - // +kubebuilder:validation:Optional - bgpAsn?: null | string @go(BGPAsn,*string) - - // The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway) - // +kubebuilder:validation:Optional - insideCidrBlocks?: [...null | string] @go(InsideCidrBlocks,[]*string) - - // The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address - // +kubebuilder:validation:Optional - peerAddress?: null | string @go(PeerAddress,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks - // +kubebuilder:validation:Optional - transitGatewayAddress?: null | string @go(TransitGatewayAddress,*string) - - // The Transit Gateway Connect - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGatewayConnect - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Reference to a TransitGatewayConnect in ec2 to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdRef?: null | v1.#Reference @go(TransitGatewayAttachmentIDRef,*v1.Reference) - - // Selector for a TransitGatewayConnect in ec2 to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdSelector?: null | v1.#Selector @go(TransitGatewayAttachmentIDSelector,*v1.Selector) -} - -// TransitGatewayConnectPeerSpec defines the desired state of TransitGatewayConnectPeer -#TransitGatewayConnectPeerSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayConnectPeerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayConnectPeerInitParameters @go(InitProvider) -} - -// TransitGatewayConnectPeerStatus defines the observed state of TransitGatewayConnectPeer. -#TransitGatewayConnectPeerStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayConnectPeerObservation @go(AtProvider) -} - -// TransitGatewayConnectPeer is the Schema for the TransitGatewayConnectPeers API. Manages an EC2 Transit Gateway Connect Peer -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayConnectPeer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.insideCidrBlocks) || (has(self.initProvider) && has(self.initProvider.insideCidrBlocks))",message="spec.forProvider.insideCidrBlocks is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.peerAddress) || (has(self.initProvider) && has(self.initProvider.peerAddress))",message="spec.forProvider.peerAddress is a required parameter" - spec: #TransitGatewayConnectPeerSpec @go(Spec) - status?: #TransitGatewayConnectPeerStatus @go(Status) -} - -// TransitGatewayConnectPeerList contains a list of TransitGatewayConnectPeers -#TransitGatewayConnectPeerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayConnectPeer] @go(Items,[]TransitGatewayConnectPeer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaymulticastdomain_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaymulticastdomain_types_go_gen.cue deleted file mode 100644 index b6d5be2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaymulticastdomain_types_go_gen.cue +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayMulticastDomainInitParameters: { - // Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable. - autoAcceptSharedAssociations?: null | string @go(AutoAcceptSharedAssociations,*string) - - // Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable. - igmpv2Support?: null | string @go(Igmpv2Support,*string) - - // Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable. - staticSourcesSupport?: null | string @go(StaticSourcesSupport,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TransitGatewayMulticastDomainObservation: { - // EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN). - arn?: null | string @go(Arn,*string) - - // Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable. - autoAcceptSharedAssociations?: null | string @go(AutoAcceptSharedAssociations,*string) - - // EC2 Transit Gateway Multicast Domain identifier. - id?: null | string @go(ID,*string) - - // Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable. - igmpv2Support?: null | string @go(Igmpv2Support,*string) - - // Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain. - ownerId?: null | string @go(OwnerID,*string) - - // Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable. - staticSourcesSupport?: null | string @go(StaticSourcesSupport,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled. - transitGatewayId?: null | string @go(TransitGatewayID,*string) -} - -#TransitGatewayMulticastDomainParameters: { - // Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable. - // +kubebuilder:validation:Optional - autoAcceptSharedAssociations?: null | string @go(AutoAcceptSharedAssociations,*string) - - // Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable. - // +kubebuilder:validation:Optional - igmpv2Support?: null | string @go(Igmpv2Support,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable. - // +kubebuilder:validation:Optional - staticSourcesSupport?: null | string @go(StaticSourcesSupport,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled. - // +crossplane:generate:reference:type=TransitGateway - // +kubebuilder:validation:Optional - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Reference to a TransitGateway to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdRef?: null | v1.#Reference @go(TransitGatewayIDRef,*v1.Reference) - - // Selector for a TransitGateway to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdSelector?: null | v1.#Selector @go(TransitGatewayIDSelector,*v1.Selector) -} - -// TransitGatewayMulticastDomainSpec defines the desired state of TransitGatewayMulticastDomain -#TransitGatewayMulticastDomainSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayMulticastDomainParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayMulticastDomainInitParameters @go(InitProvider) -} - -// TransitGatewayMulticastDomainStatus defines the observed state of TransitGatewayMulticastDomain. -#TransitGatewayMulticastDomainStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayMulticastDomainObservation @go(AtProvider) -} - -// TransitGatewayMulticastDomain is the Schema for the TransitGatewayMulticastDomains API. Manages an EC2 Transit Gateway Multicast Domain -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayMulticastDomain: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayMulticastDomainSpec @go(Spec) - status?: #TransitGatewayMulticastDomainStatus @go(Status) -} - -// TransitGatewayMulticastDomainList contains a list of TransitGatewayMulticastDomains -#TransitGatewayMulticastDomainList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayMulticastDomain] @go(Items,[]TransitGatewayMulticastDomain) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaymulticastdomainassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaymulticastdomainassociation_types_go_gen.cue deleted file mode 100644 index a63d4c5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaymulticastdomainassociation_types_go_gen.cue +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayMulticastDomainAssociationInitParameters: { -} - -#TransitGatewayMulticastDomainAssociationObservation: { - // EC2 Transit Gateway Multicast Domain Association identifier. - id?: null | string @go(ID,*string) - - // The ID of the subnet to associate with the transit gateway multicast domain. - subnetId?: null | string @go(SubnetID,*string) - - // The ID of the transit gateway attachment. - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // The ID of the transit gateway multicast domain. - transitGatewayMulticastDomainId?: null | string @go(TransitGatewayMulticastDomainID,*string) -} - -#TransitGatewayMulticastDomainAssociationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the subnet to associate with the transit gateway multicast domain. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // The ID of the transit gateway attachment. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGatewayVPCAttachment - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Reference to a TransitGatewayVPCAttachment in ec2 to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdRef?: null | v1.#Reference @go(TransitGatewayAttachmentIDRef,*v1.Reference) - - // Selector for a TransitGatewayVPCAttachment in ec2 to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdSelector?: null | v1.#Selector @go(TransitGatewayAttachmentIDSelector,*v1.Selector) - - // The ID of the transit gateway multicast domain. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGatewayMulticastDomain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transitGatewayMulticastDomainId?: null | string @go(TransitGatewayMulticastDomainID,*string) - - // Reference to a TransitGatewayMulticastDomain in ec2 to populate transitGatewayMulticastDomainId. - // +kubebuilder:validation:Optional - transitGatewayMulticastDomainIdRef?: null | v1.#Reference @go(TransitGatewayMulticastDomainIDRef,*v1.Reference) - - // Selector for a TransitGatewayMulticastDomain in ec2 to populate transitGatewayMulticastDomainId. - // +kubebuilder:validation:Optional - transitGatewayMulticastDomainIdSelector?: null | v1.#Selector @go(TransitGatewayMulticastDomainIDSelector,*v1.Selector) -} - -// TransitGatewayMulticastDomainAssociationSpec defines the desired state of TransitGatewayMulticastDomainAssociation -#TransitGatewayMulticastDomainAssociationSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayMulticastDomainAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayMulticastDomainAssociationInitParameters @go(InitProvider) -} - -// TransitGatewayMulticastDomainAssociationStatus defines the observed state of TransitGatewayMulticastDomainAssociation. -#TransitGatewayMulticastDomainAssociationStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayMulticastDomainAssociationObservation @go(AtProvider) -} - -// TransitGatewayMulticastDomainAssociation is the Schema for the TransitGatewayMulticastDomainAssociations API. Manages an EC2 Transit Gateway Multicast Domain Association -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayMulticastDomainAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayMulticastDomainAssociationSpec @go(Spec) - status?: #TransitGatewayMulticastDomainAssociationStatus @go(Status) -} - -// TransitGatewayMulticastDomainAssociationList contains a list of TransitGatewayMulticastDomainAssociations -#TransitGatewayMulticastDomainAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayMulticastDomainAssociation] @go(Items,[]TransitGatewayMulticastDomainAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaymulticastgroupmember_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaymulticastgroupmember_types_go_gen.cue deleted file mode 100644 index bc47b4b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaymulticastgroupmember_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayMulticastGroupMemberInitParameters: { - // The IP address assigned to the transit gateway multicast group. - groupIpAddress?: null | string @go(GroupIPAddress,*string) -} - -#TransitGatewayMulticastGroupMemberObservation: { - // The IP address assigned to the transit gateway multicast group. - groupIpAddress?: null | string @go(GroupIPAddress,*string) - - // EC2 Transit Gateway Multicast Group Member identifier. - id?: null | string @go(ID,*string) - - // The group members' network interface ID to register with the transit gateway multicast group. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // The ID of the transit gateway multicast domain. - transitGatewayMulticastDomainId?: null | string @go(TransitGatewayMulticastDomainID,*string) -} - -#TransitGatewayMulticastGroupMemberParameters: { - // The IP address assigned to the transit gateway multicast group. - // +kubebuilder:validation:Optional - groupIpAddress?: null | string @go(GroupIPAddress,*string) - - // The group members' network interface ID to register with the transit gateway multicast group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.NetworkInterface - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // Reference to a NetworkInterface in ec2 to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdRef?: null | v1.#Reference @go(NetworkInterfaceIDRef,*v1.Reference) - - // Selector for a NetworkInterface in ec2 to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdSelector?: null | v1.#Selector @go(NetworkInterfaceIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the transit gateway multicast domain. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGatewayMulticastDomain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transitGatewayMulticastDomainId?: null | string @go(TransitGatewayMulticastDomainID,*string) - - // Reference to a TransitGatewayMulticastDomain in ec2 to populate transitGatewayMulticastDomainId. - // +kubebuilder:validation:Optional - transitGatewayMulticastDomainIdRef?: null | v1.#Reference @go(TransitGatewayMulticastDomainIDRef,*v1.Reference) - - // Selector for a TransitGatewayMulticastDomain in ec2 to populate transitGatewayMulticastDomainId. - // +kubebuilder:validation:Optional - transitGatewayMulticastDomainIdSelector?: null | v1.#Selector @go(TransitGatewayMulticastDomainIDSelector,*v1.Selector) -} - -// TransitGatewayMulticastGroupMemberSpec defines the desired state of TransitGatewayMulticastGroupMember -#TransitGatewayMulticastGroupMemberSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayMulticastGroupMemberParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayMulticastGroupMemberInitParameters @go(InitProvider) -} - -// TransitGatewayMulticastGroupMemberStatus defines the observed state of TransitGatewayMulticastGroupMember. -#TransitGatewayMulticastGroupMemberStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayMulticastGroupMemberObservation @go(AtProvider) -} - -// TransitGatewayMulticastGroupMember is the Schema for the TransitGatewayMulticastGroupMembers API. Manages an EC2 Transit Gateway Multicast Group Member -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayMulticastGroupMember: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.groupIpAddress) || (has(self.initProvider) && has(self.initProvider.groupIpAddress))",message="spec.forProvider.groupIpAddress is a required parameter" - spec: #TransitGatewayMulticastGroupMemberSpec @go(Spec) - status?: #TransitGatewayMulticastGroupMemberStatus @go(Status) -} - -// TransitGatewayMulticastGroupMemberList contains a list of TransitGatewayMulticastGroupMembers -#TransitGatewayMulticastGroupMemberList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayMulticastGroupMember] @go(Items,[]TransitGatewayMulticastGroupMember) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaymulticastgroupsource_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaymulticastgroupsource_types_go_gen.cue deleted file mode 100644 index dafef2e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaymulticastgroupsource_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayMulticastGroupSourceInitParameters: { - // The IP address assigned to the transit gateway multicast group. - groupIpAddress?: null | string @go(GroupIPAddress,*string) -} - -#TransitGatewayMulticastGroupSourceObservation: { - // The IP address assigned to the transit gateway multicast group. - groupIpAddress?: null | string @go(GroupIPAddress,*string) - - // EC2 Transit Gateway Multicast Group Member identifier. - id?: null | string @go(ID,*string) - - // The group members' network interface ID to register with the transit gateway multicast group. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // The ID of the transit gateway multicast domain. - transitGatewayMulticastDomainId?: null | string @go(TransitGatewayMulticastDomainID,*string) -} - -#TransitGatewayMulticastGroupSourceParameters: { - // The IP address assigned to the transit gateway multicast group. - // +kubebuilder:validation:Optional - groupIpAddress?: null | string @go(GroupIPAddress,*string) - - // The group members' network interface ID to register with the transit gateway multicast group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.NetworkInterface - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // Reference to a NetworkInterface in ec2 to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdRef?: null | v1.#Reference @go(NetworkInterfaceIDRef,*v1.Reference) - - // Selector for a NetworkInterface in ec2 to populate networkInterfaceId. - // +kubebuilder:validation:Optional - networkInterfaceIdSelector?: null | v1.#Selector @go(NetworkInterfaceIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the transit gateway multicast domain. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGatewayMulticastDomain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transitGatewayMulticastDomainId?: null | string @go(TransitGatewayMulticastDomainID,*string) - - // Reference to a TransitGatewayMulticastDomain in ec2 to populate transitGatewayMulticastDomainId. - // +kubebuilder:validation:Optional - transitGatewayMulticastDomainIdRef?: null | v1.#Reference @go(TransitGatewayMulticastDomainIDRef,*v1.Reference) - - // Selector for a TransitGatewayMulticastDomain in ec2 to populate transitGatewayMulticastDomainId. - // +kubebuilder:validation:Optional - transitGatewayMulticastDomainIdSelector?: null | v1.#Selector @go(TransitGatewayMulticastDomainIDSelector,*v1.Selector) -} - -// TransitGatewayMulticastGroupSourceSpec defines the desired state of TransitGatewayMulticastGroupSource -#TransitGatewayMulticastGroupSourceSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayMulticastGroupSourceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayMulticastGroupSourceInitParameters @go(InitProvider) -} - -// TransitGatewayMulticastGroupSourceStatus defines the observed state of TransitGatewayMulticastGroupSource. -#TransitGatewayMulticastGroupSourceStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayMulticastGroupSourceObservation @go(AtProvider) -} - -// TransitGatewayMulticastGroupSource is the Schema for the TransitGatewayMulticastGroupSources API. Manages an EC2 Transit Gateway Multicast Group Source -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayMulticastGroupSource: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.groupIpAddress) || (has(self.initProvider) && has(self.initProvider.groupIpAddress))",message="spec.forProvider.groupIpAddress is a required parameter" - spec: #TransitGatewayMulticastGroupSourceSpec @go(Spec) - status?: #TransitGatewayMulticastGroupSourceStatus @go(Status) -} - -// TransitGatewayMulticastGroupSourceList contains a list of TransitGatewayMulticastGroupSources -#TransitGatewayMulticastGroupSourceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayMulticastGroupSource] @go(Items,[]TransitGatewayMulticastGroupSource) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaypeeringattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaypeeringattachment_types_go_gen.cue deleted file mode 100644 index 53eea86..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaypeeringattachment_types_go_gen.cue +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayPeeringAttachmentInitParameters: { - // Account ID of EC2 Transit Gateway to peer with. Defaults to the account ID the AWS provider is currently connected to. - peerAccountId?: null | string @go(PeerAccountID,*string) - - // Region of EC2 Transit Gateway to peer with. - peerRegion?: null | string @go(PeerRegion,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TransitGatewayPeeringAttachmentObservation: { - // EC2 Transit Gateway Attachment identifier - id?: null | string @go(ID,*string) - - // Account ID of EC2 Transit Gateway to peer with. Defaults to the account ID the AWS provider is currently connected to. - peerAccountId?: null | string @go(PeerAccountID,*string) - - // Region of EC2 Transit Gateway to peer with. - peerRegion?: null | string @go(PeerRegion,*string) - - // Identifier of EC2 Transit Gateway to peer with. - peerTransitGatewayId?: null | string @go(PeerTransitGatewayID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Identifier of EC2 Transit Gateway. - transitGatewayId?: null | string @go(TransitGatewayID,*string) -} - -#TransitGatewayPeeringAttachmentParameters: { - // Account ID of EC2 Transit Gateway to peer with. Defaults to the account ID the AWS provider is currently connected to. - // +kubebuilder:validation:Optional - peerAccountId?: null | string @go(PeerAccountID,*string) - - // Region of EC2 Transit Gateway to peer with. - // +kubebuilder:validation:Optional - peerRegion?: null | string @go(PeerRegion,*string) - - // Identifier of EC2 Transit Gateway to peer with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - peerTransitGatewayId?: null | string @go(PeerTransitGatewayID,*string) - - // Reference to a TransitGateway in ec2 to populate peerTransitGatewayId. - // +kubebuilder:validation:Optional - peerTransitGatewayIdRef?: null | v1.#Reference @go(PeerTransitGatewayIDRef,*v1.Reference) - - // Selector for a TransitGateway in ec2 to populate peerTransitGatewayId. - // +kubebuilder:validation:Optional - peerTransitGatewayIdSelector?: null | v1.#Selector @go(PeerTransitGatewayIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Identifier of EC2 Transit Gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Reference to a TransitGateway in ec2 to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdRef?: null | v1.#Reference @go(TransitGatewayIDRef,*v1.Reference) - - // Selector for a TransitGateway in ec2 to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdSelector?: null | v1.#Selector @go(TransitGatewayIDSelector,*v1.Selector) -} - -// TransitGatewayPeeringAttachmentSpec defines the desired state of TransitGatewayPeeringAttachment -#TransitGatewayPeeringAttachmentSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayPeeringAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayPeeringAttachmentInitParameters @go(InitProvider) -} - -// TransitGatewayPeeringAttachmentStatus defines the observed state of TransitGatewayPeeringAttachment. -#TransitGatewayPeeringAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayPeeringAttachmentObservation @go(AtProvider) -} - -// TransitGatewayPeeringAttachment is the Schema for the TransitGatewayPeeringAttachments API. Manages an EC2 Transit Gateway Peering Attachment -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayPeeringAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.peerRegion) || (has(self.initProvider) && has(self.initProvider.peerRegion))",message="spec.forProvider.peerRegion is a required parameter" - spec: #TransitGatewayPeeringAttachmentSpec @go(Spec) - status?: #TransitGatewayPeeringAttachmentStatus @go(Status) -} - -// TransitGatewayPeeringAttachmentList contains a list of TransitGatewayPeeringAttachments -#TransitGatewayPeeringAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayPeeringAttachment] @go(Items,[]TransitGatewayPeeringAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaypeeringattachmentaccepter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaypeeringattachmentaccepter_types_go_gen.cue deleted file mode 100644 index 98512b8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaypeeringattachmentaccepter_types_go_gen.cue +++ /dev/null @@ -1,109 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayPeeringAttachmentAccepterInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TransitGatewayPeeringAttachmentAccepterObservation: { - // EC2 Transit Gateway Attachment identifier - id?: null | string @go(ID,*string) - - // Identifier of the AWS account that owns the EC2 TGW peering. - peerAccountId?: null | string @go(PeerAccountID,*string) - peerRegion?: null | string @go(PeerRegion,*string) - - // Identifier of EC2 Transit Gateway to peer with. - peerTransitGatewayId?: null | string @go(PeerTransitGatewayID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the EC2 Transit Gateway Peering Attachment to manage. - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Identifier of EC2 Transit Gateway. - transitGatewayId?: null | string @go(TransitGatewayID,*string) -} - -#TransitGatewayPeeringAttachmentAccepterParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the EC2 Transit Gateway Peering Attachment to manage. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGatewayPeeringAttachment - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Reference to a TransitGatewayPeeringAttachment in ec2 to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdRef?: null | v1.#Reference @go(TransitGatewayAttachmentIDRef,*v1.Reference) - - // Selector for a TransitGatewayPeeringAttachment in ec2 to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdSelector?: null | v1.#Selector @go(TransitGatewayAttachmentIDSelector,*v1.Selector) -} - -// TransitGatewayPeeringAttachmentAccepterSpec defines the desired state of TransitGatewayPeeringAttachmentAccepter -#TransitGatewayPeeringAttachmentAccepterSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayPeeringAttachmentAccepterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayPeeringAttachmentAccepterInitParameters @go(InitProvider) -} - -// TransitGatewayPeeringAttachmentAccepterStatus defines the observed state of TransitGatewayPeeringAttachmentAccepter. -#TransitGatewayPeeringAttachmentAccepterStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayPeeringAttachmentAccepterObservation @go(AtProvider) -} - -// TransitGatewayPeeringAttachmentAccepter is the Schema for the TransitGatewayPeeringAttachmentAccepters API. Manages the accepter's side of an EC2 Transit Gateway peering Attachment -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayPeeringAttachmentAccepter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayPeeringAttachmentAccepterSpec @go(Spec) - status?: #TransitGatewayPeeringAttachmentAccepterStatus @go(Status) -} - -// TransitGatewayPeeringAttachmentAccepterList contains a list of TransitGatewayPeeringAttachmentAccepters -#TransitGatewayPeeringAttachmentAccepterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayPeeringAttachmentAccepter] @go(Items,[]TransitGatewayPeeringAttachmentAccepter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaypolicytable_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaypolicytable_types_go_gen.cue deleted file mode 100644 index 6487263..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewaypolicytable_types_go_gen.cue +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayPolicyTableInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TransitGatewayPolicyTableObservation: { - // EC2 Transit Gateway Policy Table Amazon Resource Name (ARN). - arn?: null | string @go(Arn,*string) - - // EC2 Transit Gateway Policy Table identifier. - id?: null | string @go(ID,*string) - - // The state of the EC2 Transit Gateway Policy Table. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // EC2 Transit Gateway identifier. - transitGatewayId?: null | string @go(TransitGatewayID,*string) -} - -#TransitGatewayPolicyTableParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // EC2 Transit Gateway identifier. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Reference to a TransitGateway in ec2 to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdRef?: null | v1.#Reference @go(TransitGatewayIDRef,*v1.Reference) - - // Selector for a TransitGateway in ec2 to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdSelector?: null | v1.#Selector @go(TransitGatewayIDSelector,*v1.Selector) -} - -// TransitGatewayPolicyTableSpec defines the desired state of TransitGatewayPolicyTable -#TransitGatewayPolicyTableSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayPolicyTableParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayPolicyTableInitParameters @go(InitProvider) -} - -// TransitGatewayPolicyTableStatus defines the observed state of TransitGatewayPolicyTable. -#TransitGatewayPolicyTableStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayPolicyTableObservation @go(AtProvider) -} - -// TransitGatewayPolicyTable is the Schema for the TransitGatewayPolicyTables API. Manages an EC2 Transit Gateway Policy Table -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayPolicyTable: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayPolicyTableSpec @go(Spec) - status?: #TransitGatewayPolicyTableStatus @go(Status) -} - -// TransitGatewayPolicyTableList contains a list of TransitGatewayPolicyTables -#TransitGatewayPolicyTableList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayPolicyTable] @go(Items,[]TransitGatewayPolicyTable) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayprefixlistreference_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayprefixlistreference_types_go_gen.cue deleted file mode 100644 index fadd30d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayprefixlistreference_types_go_gen.cue +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayPrefixListReferenceInitParameters: { - // Indicates whether to drop traffic that matches the Prefix List. Defaults to false. - blackhole?: null | bool @go(Blackhole,*bool) -} - -#TransitGatewayPrefixListReferenceObservation: { - // Indicates whether to drop traffic that matches the Prefix List. Defaults to false. - blackhole?: null | bool @go(Blackhole,*bool) - - // EC2 Transit Gateway Route Table identifier and EC2 Prefix List identifier, separated by an underscore (_) - id?: null | string @go(ID,*string) - - // Identifier of EC2 Prefix List. - prefixListId?: null | string @go(PrefixListID,*string) - - // EC2 Transit Gateway Route Table identifier and EC2 Prefix List identifier, separated by an underscore (_) - prefixListOwnerId?: null | string @go(PrefixListOwnerID,*string) - - // Identifier of EC2 Transit Gateway Attachment. - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Identifier of EC2 Transit Gateway Route Table. - transitGatewayRouteTableId?: null | string @go(TransitGatewayRouteTableID,*string) -} - -#TransitGatewayPrefixListReferenceParameters: { - // Indicates whether to drop traffic that matches the Prefix List. Defaults to false. - // +kubebuilder:validation:Optional - blackhole?: null | bool @go(Blackhole,*bool) - - // Identifier of EC2 Prefix List. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.ManagedPrefixList - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - prefixListId?: null | string @go(PrefixListID,*string) - - // Reference to a ManagedPrefixList in ec2 to populate prefixListId. - // +kubebuilder:validation:Optional - prefixListIdRef?: null | v1.#Reference @go(PrefixListIDRef,*v1.Reference) - - // Selector for a ManagedPrefixList in ec2 to populate prefixListId. - // +kubebuilder:validation:Optional - prefixListIdSelector?: null | v1.#Selector @go(PrefixListIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Identifier of EC2 Transit Gateway Attachment. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGatewayVPCAttachment - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Reference to a TransitGatewayVPCAttachment in ec2 to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdRef?: null | v1.#Reference @go(TransitGatewayAttachmentIDRef,*v1.Reference) - - // Selector for a TransitGatewayVPCAttachment in ec2 to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdSelector?: null | v1.#Selector @go(TransitGatewayAttachmentIDSelector,*v1.Selector) - - // Identifier of EC2 Transit Gateway Route Table. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("association_default_route_table_id",true) - // +kubebuilder:validation:Optional - transitGatewayRouteTableId?: null | string @go(TransitGatewayRouteTableID,*string) - - // Reference to a TransitGateway in ec2 to populate transitGatewayRouteTableId. - // +kubebuilder:validation:Optional - transitGatewayRouteTableIdRef?: null | v1.#Reference @go(TransitGatewayRouteTableIDRef,*v1.Reference) - - // Selector for a TransitGateway in ec2 to populate transitGatewayRouteTableId. - // +kubebuilder:validation:Optional - transitGatewayRouteTableIdSelector?: null | v1.#Selector @go(TransitGatewayRouteTableIDSelector,*v1.Selector) -} - -// TransitGatewayPrefixListReferenceSpec defines the desired state of TransitGatewayPrefixListReference -#TransitGatewayPrefixListReferenceSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayPrefixListReferenceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayPrefixListReferenceInitParameters @go(InitProvider) -} - -// TransitGatewayPrefixListReferenceStatus defines the observed state of TransitGatewayPrefixListReference. -#TransitGatewayPrefixListReferenceStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayPrefixListReferenceObservation @go(AtProvider) -} - -// TransitGatewayPrefixListReference is the Schema for the TransitGatewayPrefixListReferences API. Manages an EC2 Transit Gateway Prefix List Reference -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayPrefixListReference: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayPrefixListReferenceSpec @go(Spec) - status?: #TransitGatewayPrefixListReferenceStatus @go(Status) -} - -// TransitGatewayPrefixListReferenceList contains a list of TransitGatewayPrefixListReferences -#TransitGatewayPrefixListReferenceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayPrefixListReference] @go(Items,[]TransitGatewayPrefixListReference) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayroute_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayroute_types_go_gen.cue deleted file mode 100644 index f2026cd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayroute_types_go_gen.cue +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayRouteInitParameters: { - // Indicates whether to drop traffic that matches this route (default to false). - blackhole?: null | bool @go(Blackhole,*bool) - - // IPv4 or IPv6 RFC1924 CIDR used for destination matches. Routing decisions are based on the most specific match. - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) -} - -#TransitGatewayRouteObservation: { - // Indicates whether to drop traffic that matches this route (default to false). - blackhole?: null | bool @go(Blackhole,*bool) - - // IPv4 or IPv6 RFC1924 CIDR used for destination matches. Routing decisions are based on the most specific match. - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) - - // EC2 Transit Gateway Route Table identifier combined with destination - id?: null | string @go(ID,*string) - - // Identifier of EC2 Transit Gateway Attachment . - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Identifier of EC2 Transit Gateway Route Table. - transitGatewayRouteTableId?: null | string @go(TransitGatewayRouteTableID,*string) -} - -#TransitGatewayRouteParameters: { - // Indicates whether to drop traffic that matches this route (default to false). - // +kubebuilder:validation:Optional - blackhole?: null | bool @go(Blackhole,*bool) - - // IPv4 or IPv6 RFC1924 CIDR used for destination matches. Routing decisions are based on the most specific match. - // +kubebuilder:validation:Optional - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Identifier of EC2 Transit Gateway Attachment . - // +crossplane:generate:reference:type=TransitGatewayVPCAttachment - // +kubebuilder:validation:Optional - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Reference to a TransitGatewayVPCAttachment to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdRef?: null | v1.#Reference @go(TransitGatewayAttachmentIDRef,*v1.Reference) - - // Selector for a TransitGatewayVPCAttachment to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdSelector?: null | v1.#Selector @go(TransitGatewayAttachmentIDSelector,*v1.Selector) - - // Identifier of EC2 Transit Gateway Route Table. - // +crossplane:generate:reference:type=TransitGatewayRouteTable - // +kubebuilder:validation:Optional - transitGatewayRouteTableId?: null | string @go(TransitGatewayRouteTableID,*string) - - // Reference to a TransitGatewayRouteTable to populate transitGatewayRouteTableId. - // +kubebuilder:validation:Optional - transitGatewayRouteTableIdRef?: null | v1.#Reference @go(TransitGatewayRouteTableIDRef,*v1.Reference) - - // Selector for a TransitGatewayRouteTable to populate transitGatewayRouteTableId. - // +kubebuilder:validation:Optional - transitGatewayRouteTableIdSelector?: null | v1.#Selector @go(TransitGatewayRouteTableIDSelector,*v1.Selector) -} - -// TransitGatewayRouteSpec defines the desired state of TransitGatewayRoute -#TransitGatewayRouteSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayRouteParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayRouteInitParameters @go(InitProvider) -} - -// TransitGatewayRouteStatus defines the observed state of TransitGatewayRoute. -#TransitGatewayRouteStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayRouteObservation @go(AtProvider) -} - -// TransitGatewayRoute is the Schema for the TransitGatewayRoutes API. Manages an EC2 Transit Gateway Route -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayRoute: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destinationCidrBlock) || (has(self.initProvider) && has(self.initProvider.destinationCidrBlock))",message="spec.forProvider.destinationCidrBlock is a required parameter" - spec: #TransitGatewayRouteSpec @go(Spec) - status?: #TransitGatewayRouteStatus @go(Status) -} - -// TransitGatewayRouteList contains a list of TransitGatewayRoutes -#TransitGatewayRouteList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayRoute] @go(Items,[]TransitGatewayRoute) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayroutetable_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayroutetable_types_go_gen.cue deleted file mode 100644 index d7ca7c6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayroutetable_types_go_gen.cue +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayRouteTableInitParameters_2: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TransitGatewayRouteTableObservation_2: { - // EC2 Transit Gateway Route Table Amazon Resource Name (ARN). - arn?: null | string @go(Arn,*string) - - // Boolean whether this is the default association route table for the EC2 Transit Gateway. - defaultAssociationRouteTable?: null | bool @go(DefaultAssociationRouteTable,*bool) - - // Boolean whether this is the default propagation route table for the EC2 Transit Gateway. - defaultPropagationRouteTable?: null | bool @go(DefaultPropagationRouteTable,*bool) - - // EC2 Transit Gateway Route Table identifier - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Identifier of EC2 Transit Gateway. - transitGatewayId?: null | string @go(TransitGatewayID,*string) -} - -#TransitGatewayRouteTableParameters_2: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Identifier of EC2 Transit Gateway. - // +crossplane:generate:reference:type=TransitGateway - // +kubebuilder:validation:Optional - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Reference to a TransitGateway to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdRef?: null | v1.#Reference @go(TransitGatewayIDRef,*v1.Reference) - - // Selector for a TransitGateway to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdSelector?: null | v1.#Selector @go(TransitGatewayIDSelector,*v1.Selector) -} - -// TransitGatewayRouteTableSpec defines the desired state of TransitGatewayRouteTable -#TransitGatewayRouteTableSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayRouteTableParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayRouteTableInitParameters_2 @go(InitProvider) -} - -// TransitGatewayRouteTableStatus defines the observed state of TransitGatewayRouteTable. -#TransitGatewayRouteTableStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayRouteTableObservation_2 @go(AtProvider) -} - -// TransitGatewayRouteTable is the Schema for the TransitGatewayRouteTables API. Manages an EC2 Transit Gateway Route Table -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayRouteTable: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayRouteTableSpec @go(Spec) - status?: #TransitGatewayRouteTableStatus @go(Status) -} - -// TransitGatewayRouteTableList contains a list of TransitGatewayRouteTables -#TransitGatewayRouteTableList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayRouteTable] @go(Items,[]TransitGatewayRouteTable) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayroutetableassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayroutetableassociation_types_go_gen.cue deleted file mode 100644 index a38510f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayroutetableassociation_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayRouteTableAssociationInitParameters: { -} - -#TransitGatewayRouteTableAssociationObservation: { - // EC2 Transit Gateway Route Table identifier combined with EC2 Transit Gateway Attachment identifier - id?: null | string @go(ID,*string) - - // Identifier of the resource - resourceId?: null | string @go(ResourceID,*string) - - // Type of the resource - resourceType?: null | string @go(ResourceType,*string) - - // Identifier of EC2 Transit Gateway Attachment. - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Identifier of EC2 Transit Gateway Route Table. - transitGatewayRouteTableId?: null | string @go(TransitGatewayRouteTableID,*string) -} - -#TransitGatewayRouteTableAssociationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Identifier of EC2 Transit Gateway Attachment. - // +crossplane:generate:reference:type=TransitGatewayVPCAttachment - // +kubebuilder:validation:Optional - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Reference to a TransitGatewayVPCAttachment to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdRef?: null | v1.#Reference @go(TransitGatewayAttachmentIDRef,*v1.Reference) - - // Selector for a TransitGatewayVPCAttachment to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdSelector?: null | v1.#Selector @go(TransitGatewayAttachmentIDSelector,*v1.Selector) - - // Identifier of EC2 Transit Gateway Route Table. - // +crossplane:generate:reference:type=TransitGatewayRouteTable - // +kubebuilder:validation:Optional - transitGatewayRouteTableId?: null | string @go(TransitGatewayRouteTableID,*string) - - // Reference to a TransitGatewayRouteTable to populate transitGatewayRouteTableId. - // +kubebuilder:validation:Optional - transitGatewayRouteTableIdRef?: null | v1.#Reference @go(TransitGatewayRouteTableIDRef,*v1.Reference) - - // Selector for a TransitGatewayRouteTable to populate transitGatewayRouteTableId. - // +kubebuilder:validation:Optional - transitGatewayRouteTableIdSelector?: null | v1.#Selector @go(TransitGatewayRouteTableIDSelector,*v1.Selector) -} - -// TransitGatewayRouteTableAssociationSpec defines the desired state of TransitGatewayRouteTableAssociation -#TransitGatewayRouteTableAssociationSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayRouteTableAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayRouteTableAssociationInitParameters @go(InitProvider) -} - -// TransitGatewayRouteTableAssociationStatus defines the observed state of TransitGatewayRouteTableAssociation. -#TransitGatewayRouteTableAssociationStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayRouteTableAssociationObservation @go(AtProvider) -} - -// TransitGatewayRouteTableAssociation is the Schema for the TransitGatewayRouteTableAssociations API. Manages an EC2 Transit Gateway Route Table association -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayRouteTableAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayRouteTableAssociationSpec @go(Spec) - status?: #TransitGatewayRouteTableAssociationStatus @go(Status) -} - -// TransitGatewayRouteTableAssociationList contains a list of TransitGatewayRouteTableAssociations -#TransitGatewayRouteTableAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayRouteTableAssociation] @go(Items,[]TransitGatewayRouteTableAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayroutetablepropagation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayroutetablepropagation_types_go_gen.cue deleted file mode 100644 index bb061d4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayroutetablepropagation_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayRouteTablePropagationInitParameters: { -} - -#TransitGatewayRouteTablePropagationObservation: { - // EC2 Transit Gateway Route Table identifier combined with EC2 Transit Gateway Attachment identifier - id?: null | string @go(ID,*string) - - // Identifier of the resource - resourceId?: null | string @go(ResourceID,*string) - - // Type of the resource - resourceType?: null | string @go(ResourceType,*string) - - // Identifier of EC2 Transit Gateway Attachment. - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Identifier of EC2 Transit Gateway Route Table. - transitGatewayRouteTableId?: null | string @go(TransitGatewayRouteTableID,*string) -} - -#TransitGatewayRouteTablePropagationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Identifier of EC2 Transit Gateway Attachment. - // +crossplane:generate:reference:type=TransitGatewayVPCAttachment - // +kubebuilder:validation:Optional - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Reference to a TransitGatewayVPCAttachment to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdRef?: null | v1.#Reference @go(TransitGatewayAttachmentIDRef,*v1.Reference) - - // Selector for a TransitGatewayVPCAttachment to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdSelector?: null | v1.#Selector @go(TransitGatewayAttachmentIDSelector,*v1.Selector) - - // Identifier of EC2 Transit Gateway Route Table. - // +crossplane:generate:reference:type=TransitGatewayRouteTable - // +kubebuilder:validation:Optional - transitGatewayRouteTableId?: null | string @go(TransitGatewayRouteTableID,*string) - - // Reference to a TransitGatewayRouteTable to populate transitGatewayRouteTableId. - // +kubebuilder:validation:Optional - transitGatewayRouteTableIdRef?: null | v1.#Reference @go(TransitGatewayRouteTableIDRef,*v1.Reference) - - // Selector for a TransitGatewayRouteTable to populate transitGatewayRouteTableId. - // +kubebuilder:validation:Optional - transitGatewayRouteTableIdSelector?: null | v1.#Selector @go(TransitGatewayRouteTableIDSelector,*v1.Selector) -} - -// TransitGatewayRouteTablePropagationSpec defines the desired state of TransitGatewayRouteTablePropagation -#TransitGatewayRouteTablePropagationSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayRouteTablePropagationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayRouteTablePropagationInitParameters @go(InitProvider) -} - -// TransitGatewayRouteTablePropagationStatus defines the observed state of TransitGatewayRouteTablePropagation. -#TransitGatewayRouteTablePropagationStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayRouteTablePropagationObservation @go(AtProvider) -} - -// TransitGatewayRouteTablePropagation is the Schema for the TransitGatewayRouteTablePropagations API. Manages an EC2 Transit Gateway Route Table propagation -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayRouteTablePropagation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayRouteTablePropagationSpec @go(Spec) - status?: #TransitGatewayRouteTablePropagationStatus @go(Status) -} - -// TransitGatewayRouteTablePropagationList contains a list of TransitGatewayRouteTablePropagations -#TransitGatewayRouteTablePropagationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayRouteTablePropagation] @go(Items,[]TransitGatewayRouteTablePropagation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayvpcattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayvpcattachment_types_go_gen.cue deleted file mode 100644 index 36c2d1e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayvpcattachment_types_go_gen.cue +++ /dev/null @@ -1,185 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayVPCAttachmentInitParameters: { - // Whether Appliance Mode support is enabled. If enabled, a traffic flow between a source and destination uses the same Availability Zone for the VPC attachment for the lifetime of that flow. Valid values: disable, enable. Default value: disable. - applianceModeSupport?: null | string @go(ApplianceModeSupport,*string) - - // Whether DNS support is enabled. Valid values: disable, enable. Default value: enable. - dnsSupport?: null | string @go(DNSSupport,*string) - - // Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable. - ipv6Support?: null | string @go(IPv6Support,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. - transitGatewayDefaultRouteTableAssociation?: null | bool @go(TransitGatewayDefaultRouteTableAssociation,*bool) - - // Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. - transitGatewayDefaultRouteTablePropagation?: null | bool @go(TransitGatewayDefaultRouteTablePropagation,*bool) -} - -#TransitGatewayVPCAttachmentObservation: { - // Whether Appliance Mode support is enabled. If enabled, a traffic flow between a source and destination uses the same Availability Zone for the VPC attachment for the lifetime of that flow. Valid values: disable, enable. Default value: disable. - applianceModeSupport?: null | string @go(ApplianceModeSupport,*string) - - // Whether DNS support is enabled. Valid values: disable, enable. Default value: enable. - dnsSupport?: null | string @go(DNSSupport,*string) - - // EC2 Transit Gateway Attachment identifier - id?: null | string @go(ID,*string) - - // Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable. - ipv6Support?: null | string @go(IPv6Support,*string) - - // Identifiers of EC2 Subnets. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. - transitGatewayDefaultRouteTableAssociation?: null | bool @go(TransitGatewayDefaultRouteTableAssociation,*bool) - - // Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. - transitGatewayDefaultRouteTablePropagation?: null | bool @go(TransitGatewayDefaultRouteTablePropagation,*bool) - - // Identifier of EC2 Transit Gateway. - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Identifier of EC2 VPC. - vpcId?: null | string @go(VPCID,*string) - - // Identifier of the AWS account that owns the EC2 VPC. - vpcOwnerId?: null | string @go(VPCOwnerID,*string) -} - -#TransitGatewayVPCAttachmentParameters: { - // Whether Appliance Mode support is enabled. If enabled, a traffic flow between a source and destination uses the same Availability Zone for the VPC attachment for the lifetime of that flow. Valid values: disable, enable. Default value: disable. - // +kubebuilder:validation:Optional - applianceModeSupport?: null | string @go(ApplianceModeSupport,*string) - - // Whether DNS support is enabled. Valid values: disable, enable. Default value: enable. - // +kubebuilder:validation:Optional - dnsSupport?: null | string @go(DNSSupport,*string) - - // Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable. - // +kubebuilder:validation:Optional - ipv6Support?: null | string @go(IPv6Support,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Identifiers of EC2 Subnets. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. - // +kubebuilder:validation:Optional - transitGatewayDefaultRouteTableAssociation?: null | bool @go(TransitGatewayDefaultRouteTableAssociation,*bool) - - // Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. - // +kubebuilder:validation:Optional - transitGatewayDefaultRouteTablePropagation?: null | bool @go(TransitGatewayDefaultRouteTablePropagation,*bool) - - // Identifier of EC2 Transit Gateway. - // +crossplane:generate:reference:type=TransitGateway - // +kubebuilder:validation:Optional - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Reference to a TransitGateway to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdRef?: null | v1.#Reference @go(TransitGatewayIDRef,*v1.Reference) - - // Selector for a TransitGateway to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdSelector?: null | v1.#Selector @go(TransitGatewayIDSelector,*v1.Selector) - - // Identifier of EC2 VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// TransitGatewayVPCAttachmentSpec defines the desired state of TransitGatewayVPCAttachment -#TransitGatewayVPCAttachmentSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayVPCAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayVPCAttachmentInitParameters @go(InitProvider) -} - -// TransitGatewayVPCAttachmentStatus defines the observed state of TransitGatewayVPCAttachment. -#TransitGatewayVPCAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayVPCAttachmentObservation @go(AtProvider) -} - -// TransitGatewayVPCAttachment is the Schema for the TransitGatewayVPCAttachments API. Manages an EC2 Transit Gateway VPC Attachment -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayVPCAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayVPCAttachmentSpec @go(Spec) - status?: #TransitGatewayVPCAttachmentStatus @go(Status) -} - -// TransitGatewayVPCAttachmentList contains a list of TransitGatewayVPCAttachments -#TransitGatewayVPCAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayVPCAttachment] @go(Items,[]TransitGatewayVPCAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayvpcattachmentaccepter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayvpcattachmentaccepter_types_go_gen.cue deleted file mode 100644 index a516dcd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_transitgatewayvpcattachmentaccepter_types_go_gen.cue +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayVPCAttachmentAccepterInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true. - transitGatewayDefaultRouteTableAssociation?: null | bool @go(TransitGatewayDefaultRouteTableAssociation,*bool) - - // Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true. - transitGatewayDefaultRouteTablePropagation?: null | bool @go(TransitGatewayDefaultRouteTablePropagation,*bool) -} - -#TransitGatewayVPCAttachmentAccepterObservation: { - // Whether Appliance Mode support is enabled. Valid values: disable, enable. - applianceModeSupport?: null | string @go(ApplianceModeSupport,*string) - - // Whether DNS support is enabled. Valid values: disable, enable. - dnsSupport?: null | string @go(DNSSupport,*string) - - // EC2 Transit Gateway Attachment identifier - id?: null | string @go(ID,*string) - - // Whether IPv6 support is enabled. Valid values: disable, enable. - ipv6Support?: null | string @go(IPv6Support,*string) - - // Identifiers of EC2 Subnets. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the EC2 Transit Gateway Attachment to manage. - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true. - transitGatewayDefaultRouteTableAssociation?: null | bool @go(TransitGatewayDefaultRouteTableAssociation,*bool) - - // Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true. - transitGatewayDefaultRouteTablePropagation?: null | bool @go(TransitGatewayDefaultRouteTablePropagation,*bool) - - // Identifier of EC2 Transit Gateway. - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Identifier of EC2 VPC. - vpcId?: null | string @go(VPCID,*string) - - // Identifier of the AWS account that owns the EC2 VPC. - vpcOwnerId?: null | string @go(VPCOwnerID,*string) -} - -#TransitGatewayVPCAttachmentAccepterParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the EC2 Transit Gateway Attachment to manage. - // +crossplane:generate:reference:type=TransitGatewayVPCAttachment - // +kubebuilder:validation:Optional - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // Reference to a TransitGatewayVPCAttachment to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdRef?: null | v1.#Reference @go(TransitGatewayAttachmentIDRef,*v1.Reference) - - // Selector for a TransitGatewayVPCAttachment to populate transitGatewayAttachmentId. - // +kubebuilder:validation:Optional - transitGatewayAttachmentIdSelector?: null | v1.#Selector @go(TransitGatewayAttachmentIDSelector,*v1.Selector) - - // Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true. - // +kubebuilder:validation:Optional - transitGatewayDefaultRouteTableAssociation?: null | bool @go(TransitGatewayDefaultRouteTableAssociation,*bool) - - // Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true. - // +kubebuilder:validation:Optional - transitGatewayDefaultRouteTablePropagation?: null | bool @go(TransitGatewayDefaultRouteTablePropagation,*bool) -} - -// TransitGatewayVPCAttachmentAccepterSpec defines the desired state of TransitGatewayVPCAttachmentAccepter -#TransitGatewayVPCAttachmentAccepterSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayVPCAttachmentAccepterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayVPCAttachmentAccepterInitParameters @go(InitProvider) -} - -// TransitGatewayVPCAttachmentAccepterStatus defines the observed state of TransitGatewayVPCAttachmentAccepter. -#TransitGatewayVPCAttachmentAccepterStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayVPCAttachmentAccepterObservation @go(AtProvider) -} - -// TransitGatewayVPCAttachmentAccepter is the Schema for the TransitGatewayVPCAttachmentAccepters API. Manages the accepter's side of an EC2 Transit Gateway VPC Attachment -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayVPCAttachmentAccepter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayVPCAttachmentAccepterSpec @go(Spec) - status?: #TransitGatewayVPCAttachmentAccepterStatus @go(Status) -} - -// TransitGatewayVPCAttachmentAccepterList contains a list of TransitGatewayVPCAttachmentAccepters -#TransitGatewayVPCAttachmentAccepterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayVPCAttachmentAccepter] @go(Items,[]TransitGatewayVPCAttachmentAccepter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_volumeattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_volumeattachment_types_go_gen.cue deleted file mode 100644 index 33e5d59..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_volumeattachment_types_go_gen.cue +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VolumeAttachmentInitParameters: { - // The device name to expose to the instance (for - // example, /dev/sdh or xvdh). See Device Naming on Linux Instances and Device Naming on Windows Instances for more information. - deviceName?: null | string @go(DeviceName,*string) - - // Set to true if you want to force the - // volume to detach. Useful if previous attempts failed, but use this option only - // as a last resort, as this can result in data loss. See - // Detaching an Amazon EBS Volume from an Instance for more information. - forceDetach?: null | bool @go(ForceDetach,*bool) - - // This is - // useful when destroying an instance which has volumes created by some other - // means attached. - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Set this to true to ensure that the target instance is stopped - // before trying to detach the volume. Stops the instance, if it is not already stopped. - stopInstanceBeforeDetaching?: null | bool @go(StopInstanceBeforeDetaching,*bool) -} - -#VolumeAttachmentObservation: { - // The device name to expose to the instance (for - // example, /dev/sdh or xvdh). See Device Naming on Linux Instances and Device Naming on Windows Instances for more information. - deviceName?: null | string @go(DeviceName,*string) - - // Set to true if you want to force the - // volume to detach. Useful if previous attempts failed, but use this option only - // as a last resort, as this can result in data loss. See - // Detaching an Amazon EBS Volume from an Instance for more information. - forceDetach?: null | bool @go(ForceDetach,*bool) - id?: null | string @go(ID,*string) - - // ID of the Instance to attach to - instanceId?: null | string @go(InstanceID,*string) - - // This is - // useful when destroying an instance which has volumes created by some other - // means attached. - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Set this to true to ensure that the target instance is stopped - // before trying to detach the volume. Stops the instance, if it is not already stopped. - stopInstanceBeforeDetaching?: null | bool @go(StopInstanceBeforeDetaching,*bool) - - // ID of the Volume to be attached - volumeId?: null | string @go(VolumeID,*string) -} - -#VolumeAttachmentParameters: { - // The device name to expose to the instance (for - // example, /dev/sdh or xvdh). See Device Naming on Linux Instances and Device Naming on Windows Instances for more information. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Set to true if you want to force the - // volume to detach. Useful if previous attempts failed, but use this option only - // as a last resort, as this can result in data loss. See - // Detaching an Amazon EBS Volume from an Instance for more information. - // +kubebuilder:validation:Optional - forceDetach?: null | bool @go(ForceDetach,*bool) - - // ID of the Instance to attach to - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // Reference to a Instance in ec2 to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdRef?: null | v1.#Reference @go(InstanceIDRef,*v1.Reference) - - // Selector for a Instance in ec2 to populate instanceId. - // +kubebuilder:validation:Optional - instanceIdSelector?: null | v1.#Selector @go(InstanceIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // This is - // useful when destroying an instance which has volumes created by some other - // means attached. - // +kubebuilder:validation:Optional - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Set this to true to ensure that the target instance is stopped - // before trying to detach the volume. Stops the instance, if it is not already stopped. - // +kubebuilder:validation:Optional - stopInstanceBeforeDetaching?: null | bool @go(StopInstanceBeforeDetaching,*bool) - - // ID of the Volume to be attached - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.EBSVolume - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - volumeId?: null | string @go(VolumeID,*string) - - // Reference to a EBSVolume in ec2 to populate volumeId. - // +kubebuilder:validation:Optional - volumeIdRef?: null | v1.#Reference @go(VolumeIDRef,*v1.Reference) - - // Selector for a EBSVolume in ec2 to populate volumeId. - // +kubebuilder:validation:Optional - volumeIdSelector?: null | v1.#Selector @go(VolumeIDSelector,*v1.Selector) -} - -// VolumeAttachmentSpec defines the desired state of VolumeAttachment -#VolumeAttachmentSpec: { - v1.#ResourceSpec - forProvider: #VolumeAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VolumeAttachmentInitParameters @go(InitProvider) -} - -// VolumeAttachmentStatus defines the observed state of VolumeAttachment. -#VolumeAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #VolumeAttachmentObservation @go(AtProvider) -} - -// VolumeAttachment is the Schema for the VolumeAttachments API. Provides an AWS EBS Volume Attachment -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VolumeAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.deviceName) || (has(self.initProvider) && has(self.initProvider.deviceName))",message="spec.forProvider.deviceName is a required parameter" - spec: #VolumeAttachmentSpec @go(Spec) - status?: #VolumeAttachmentStatus @go(Status) -} - -// VolumeAttachmentList contains a list of VolumeAttachments -#VolumeAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VolumeAttachment] @go(Items,[]VolumeAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpc_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpc_types_go_gen.cue deleted file mode 100644 index 242bde3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpc_types_go_gen.cue +++ /dev/null @@ -1,264 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCInitParameters_2: { - // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is false. Conflicts with ipv6_ipam_pool_id - assignGeneratedIpv6CidrBlock?: null | bool @go(AssignGeneratedIPv6CidrBlock,*bool) - - // The IPv4 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using ipv4_netmask_length. - cidrBlock?: null | string @go(CidrBlock,*string) - - // A boolean flag to enable/disable ClassicLink - // for the VPC. Only valid in regions and accounts that support EC2 Classic. - // See the ClassicLink documentation for more information. Defaults false. - enableClassiclink?: null | bool @go(EnableClassiclink,*bool) - - // A boolean flag to enable/disable ClassicLink DNS Support for the VPC. - // Only valid in regions and accounts that support EC2 Classic. - enableClassiclinkDnsSupport?: null | bool @go(EnableClassiclinkDNSSupport,*bool) - - // A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false. - enableDnsHostnames?: null | bool @go(EnableDNSHostnames,*bool) - - // A boolean flag to enable/disable DNS support in the VPC. Defaults to true. - enableDnsSupport?: null | bool @go(EnableDNSSupport,*bool) - - // Indicates whether Network Address Usage metrics are enabled for your VPC. Defaults to false. - enableNetworkAddressUsageMetrics?: null | bool @go(EnableNetworkAddressUsageMetrics,*bool) - - // The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a ipv4_ipam_pool_id. - ipv4NetmaskLength?: null | float64 @go(IPv4NetmaskLength,*float64) - - // IPv6 CIDR block to request from an IPAM Pool. Can be set explicitly or derived from IPAM using ipv6_netmask_length. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // By default when an IPv6 CIDR is assigned to a VPC a default ipv6_cidr_block_network_border_group will be set to the region of the VPC. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones. - ipv6CidrBlockNetworkBorderGroup?: null | string @go(IPv6CidrBlockNetworkBorderGroup,*string) - - // IPAM Pool ID for a IPv6 pool. Conflicts with assign_generated_ipv6_cidr_block. - ipv6IpamPoolId?: null | string @go(IPv6IpamPoolID,*string) - - // Netmask length to request from IPAM Pool. Conflicts with ipv6_cidr_block. This can be omitted if IPAM pool as a allocation_default_netmask_length set. Valid values: 56. - ipv6NetmaskLength?: null | float64 @go(IPv6NetmaskLength,*float64) - - // A tenancy option for instances launched into the VPC. Default is default, which ensures that EC2 instances launched in this VPC use the EC2 instance tenancy attribute specified when the EC2 instance is launched. The only other option is dedicated, which ensures that EC2 instances launched in this VPC are run on dedicated tenancy instances regardless of the tenancy attribute specified at launch. This has a dedicated per region fee of $2 per hour, plus an hourly per instance usage fee. - instanceTenancy?: null | string @go(InstanceTenancy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VPCObservation_2: { - // Amazon Resource Name (ARN) of VPC - arn?: null | string @go(Arn,*string) - - // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is false. Conflicts with ipv6_ipam_pool_id - assignGeneratedIpv6CidrBlock?: null | bool @go(AssignGeneratedIPv6CidrBlock,*bool) - - // The IPv4 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using ipv4_netmask_length. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The ID of the VPC - dhcpOptionsId?: null | string @go(DHCPOptionsID,*string) - - // The ID of the network ACL created by default on VPC creation - defaultNetworkAclId?: null | string @go(DefaultNetworkACLID,*string) - - // The ID of the route table created by default on VPC creation - defaultRouteTableId?: null | string @go(DefaultRouteTableID,*string) - - // The ID of the security group created by default on VPC creation - defaultSecurityGroupId?: null | string @go(DefaultSecurityGroupID,*string) - - // A boolean flag to enable/disable ClassicLink - // for the VPC. Only valid in regions and accounts that support EC2 Classic. - // See the ClassicLink documentation for more information. Defaults false. - enableClassiclink?: null | bool @go(EnableClassiclink,*bool) - - // A boolean flag to enable/disable ClassicLink DNS Support for the VPC. - // Only valid in regions and accounts that support EC2 Classic. - enableClassiclinkDnsSupport?: null | bool @go(EnableClassiclinkDNSSupport,*bool) - - // A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false. - enableDnsHostnames?: null | bool @go(EnableDNSHostnames,*bool) - - // A boolean flag to enable/disable DNS support in the VPC. Defaults to true. - enableDnsSupport?: null | bool @go(EnableDNSSupport,*bool) - - // Indicates whether Network Address Usage metrics are enabled for your VPC. Defaults to false. - enableNetworkAddressUsageMetrics?: null | bool @go(EnableNetworkAddressUsageMetrics,*bool) - - // The ID of the VPC - id?: null | string @go(ID,*string) - - // The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization. - ipv4IpamPoolId?: null | string @go(IPv4IpamPoolID,*string) - - // The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a ipv4_ipam_pool_id. - ipv4NetmaskLength?: null | float64 @go(IPv4NetmaskLength,*float64) - - // The association ID for the IPv6 CIDR block. - ipv6AssociationId?: null | string @go(IPv6AssociationID,*string) - - // IPv6 CIDR block to request from an IPAM Pool. Can be set explicitly or derived from IPAM using ipv6_netmask_length. - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // By default when an IPv6 CIDR is assigned to a VPC a default ipv6_cidr_block_network_border_group will be set to the region of the VPC. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones. - ipv6CidrBlockNetworkBorderGroup?: null | string @go(IPv6CidrBlockNetworkBorderGroup,*string) - - // IPAM Pool ID for a IPv6 pool. Conflicts with assign_generated_ipv6_cidr_block. - ipv6IpamPoolId?: null | string @go(IPv6IpamPoolID,*string) - - // Netmask length to request from IPAM Pool. Conflicts with ipv6_cidr_block. This can be omitted if IPAM pool as a allocation_default_netmask_length set. Valid values: 56. - ipv6NetmaskLength?: null | float64 @go(IPv6NetmaskLength,*float64) - - // A tenancy option for instances launched into the VPC. Default is default, which ensures that EC2 instances launched in this VPC use the EC2 instance tenancy attribute specified when the EC2 instance is launched. The only other option is dedicated, which ensures that EC2 instances launched in this VPC are run on dedicated tenancy instances regardless of the tenancy attribute specified at launch. This has a dedicated per region fee of $2 per hour, plus an hourly per instance usage fee. - instanceTenancy?: null | string @go(InstanceTenancy,*string) - - // The ID of the main route table associated with - // this VPC. Note that you can change a VPC's main route table by using an - // aws_main_route_table_association. - mainRouteTableId?: null | string @go(MainRouteTableID,*string) - - // The ID of the AWS account that owns the VPC. - ownerId?: null | string @go(OwnerID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VPCParameters_2: { - // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is false. Conflicts with ipv6_ipam_pool_id - // +kubebuilder:validation:Optional - assignGeneratedIpv6CidrBlock?: null | bool @go(AssignGeneratedIPv6CidrBlock,*bool) - - // The IPv4 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using ipv4_netmask_length. - // +kubebuilder:validation:Optional - cidrBlock?: null | string @go(CidrBlock,*string) - - // A boolean flag to enable/disable ClassicLink - // for the VPC. Only valid in regions and accounts that support EC2 Classic. - // See the ClassicLink documentation for more information. Defaults false. - // +kubebuilder:validation:Optional - enableClassiclink?: null | bool @go(EnableClassiclink,*bool) - - // A boolean flag to enable/disable ClassicLink DNS Support for the VPC. - // Only valid in regions and accounts that support EC2 Classic. - // +kubebuilder:validation:Optional - enableClassiclinkDnsSupport?: null | bool @go(EnableClassiclinkDNSSupport,*bool) - - // A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false. - // +kubebuilder:validation:Optional - enableDnsHostnames?: null | bool @go(EnableDNSHostnames,*bool) - - // A boolean flag to enable/disable DNS support in the VPC. Defaults to true. - // +kubebuilder:validation:Optional - enableDnsSupport?: null | bool @go(EnableDNSSupport,*bool) - - // Indicates whether Network Address Usage metrics are enabled for your VPC. Defaults to false. - // +kubebuilder:validation:Optional - enableNetworkAddressUsageMetrics?: null | bool @go(EnableNetworkAddressUsageMetrics,*bool) - - // The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCIpamPool - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - ipv4IpamPoolId?: null | string @go(IPv4IpamPoolID,*string) - - // Reference to a VPCIpamPool in ec2 to populate ipv4IpamPoolId. - // +kubebuilder:validation:Optional - ipv4IpamPoolIdRef?: null | v1.#Reference @go(IPv4IpamPoolIDRef,*v1.Reference) - - // Selector for a VPCIpamPool in ec2 to populate ipv4IpamPoolId. - // +kubebuilder:validation:Optional - ipv4IpamPoolIdSelector?: null | v1.#Selector @go(IPv4IpamPoolIDSelector,*v1.Selector) - - // The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a ipv4_ipam_pool_id. - // +kubebuilder:validation:Optional - ipv4NetmaskLength?: null | float64 @go(IPv4NetmaskLength,*float64) - - // IPv6 CIDR block to request from an IPAM Pool. Can be set explicitly or derived from IPAM using ipv6_netmask_length. - // +kubebuilder:validation:Optional - ipv6CidrBlock?: null | string @go(IPv6CidrBlock,*string) - - // By default when an IPv6 CIDR is assigned to a VPC a default ipv6_cidr_block_network_border_group will be set to the region of the VPC. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones. - // +kubebuilder:validation:Optional - ipv6CidrBlockNetworkBorderGroup?: null | string @go(IPv6CidrBlockNetworkBorderGroup,*string) - - // IPAM Pool ID for a IPv6 pool. Conflicts with assign_generated_ipv6_cidr_block. - // +kubebuilder:validation:Optional - ipv6IpamPoolId?: null | string @go(IPv6IpamPoolID,*string) - - // Netmask length to request from IPAM Pool. Conflicts with ipv6_cidr_block. This can be omitted if IPAM pool as a allocation_default_netmask_length set. Valid values: 56. - // +kubebuilder:validation:Optional - ipv6NetmaskLength?: null | float64 @go(IPv6NetmaskLength,*float64) - - // A tenancy option for instances launched into the VPC. Default is default, which ensures that EC2 instances launched in this VPC use the EC2 instance tenancy attribute specified when the EC2 instance is launched. The only other option is dedicated, which ensures that EC2 instances launched in this VPC are run on dedicated tenancy instances regardless of the tenancy attribute specified at launch. This has a dedicated per region fee of $2 per hour, plus an hourly per instance usage fee. - // +kubebuilder:validation:Optional - instanceTenancy?: null | string @go(InstanceTenancy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// VPCSpec defines the desired state of VPC -#VPCSpec: { - v1.#ResourceSpec - forProvider: #VPCParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCInitParameters_2 @go(InitProvider) -} - -// VPCStatus defines the observed state of VPC. -#VPCStatus: { - v1.#ResourceStatus - atProvider?: #VPCObservation_2 @go(AtProvider) -} - -// VPC is the Schema for the VPCs API. Provides a VPC resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPC: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCSpec @go(Spec) - status?: #VPCStatus @go(Status) -} - -// VPCList contains a list of VPCs -#VPCList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPC] @go(Items,[]VPC) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcdhcpoptions_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcdhcpoptions_types_go_gen.cue deleted file mode 100644 index f68cb96..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcdhcpoptions_types_go_gen.cue +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCDHCPOptionsInitParameters: { - // the suffix domain name to use by default when resolving non Fully Qualified Domain Names. In other words, this is what ends up being the search value in the /etc/resolv.conf file. - domainName?: null | string @go(DomainName,*string) - - // List of name servers to configure in /etc/resolv.conf. If you want to use the default AWS nameservers you should set this to AmazonProvidedDNS. - domainNameServers?: [...null | string] @go(DomainNameServers,[]*string) - - // List of NETBIOS name servers. - netbiosNameServers?: [...null | string] @go(NetbiosNameServers,[]*string) - - // The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132. - netbiosNodeType?: null | string @go(NetbiosNodeType,*string) - - // List of NTP servers to configure. - ntpServers?: [...null | string] @go(NtpServers,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VPCDHCPOptionsObservation: { - // The ARN of the DHCP Options Set. - arn?: null | string @go(Arn,*string) - - // the suffix domain name to use by default when resolving non Fully Qualified Domain Names. In other words, this is what ends up being the search value in the /etc/resolv.conf file. - domainName?: null | string @go(DomainName,*string) - - // List of name servers to configure in /etc/resolv.conf. If you want to use the default AWS nameservers you should set this to AmazonProvidedDNS. - domainNameServers?: [...null | string] @go(DomainNameServers,[]*string) - - // The ID of the DHCP Options Set. - id?: null | string @go(ID,*string) - - // List of NETBIOS name servers. - netbiosNameServers?: [...null | string] @go(NetbiosNameServers,[]*string) - - // The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132. - netbiosNodeType?: null | string @go(NetbiosNodeType,*string) - - // List of NTP servers to configure. - ntpServers?: [...null | string] @go(NtpServers,[]*string) - - // The ID of the AWS account that owns the DHCP options set. - ownerId?: null | string @go(OwnerID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VPCDHCPOptionsParameters: { - // the suffix domain name to use by default when resolving non Fully Qualified Domain Names. In other words, this is what ends up being the search value in the /etc/resolv.conf file. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // List of name servers to configure in /etc/resolv.conf. If you want to use the default AWS nameservers you should set this to AmazonProvidedDNS. - // +kubebuilder:validation:Optional - domainNameServers?: [...null | string] @go(DomainNameServers,[]*string) - - // List of NETBIOS name servers. - // +kubebuilder:validation:Optional - netbiosNameServers?: [...null | string] @go(NetbiosNameServers,[]*string) - - // The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132. - // +kubebuilder:validation:Optional - netbiosNodeType?: null | string @go(NetbiosNodeType,*string) - - // List of NTP servers to configure. - // +kubebuilder:validation:Optional - ntpServers?: [...null | string] @go(NtpServers,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// VPCDHCPOptionsSpec defines the desired state of VPCDHCPOptions -#VPCDHCPOptionsSpec: { - v1.#ResourceSpec - forProvider: #VPCDHCPOptionsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCDHCPOptionsInitParameters @go(InitProvider) -} - -// VPCDHCPOptionsStatus defines the observed state of VPCDHCPOptions. -#VPCDHCPOptionsStatus: { - v1.#ResourceStatus - atProvider?: #VPCDHCPOptionsObservation @go(AtProvider) -} - -// VPCDHCPOptions is the Schema for the VPCDHCPOptionss API. Provides a VPC DHCP Options resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCDHCPOptions: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCDHCPOptionsSpec @go(Spec) - status?: #VPCDHCPOptionsStatus @go(Status) -} - -// VPCDHCPOptionsList contains a list of VPCDHCPOptionss -#VPCDHCPOptionsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCDHCPOptions] @go(Items,[]VPCDHCPOptions) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcdhcpoptionsassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcdhcpoptionsassociation_types_go_gen.cue deleted file mode 100644 index 2f24b4c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcdhcpoptionsassociation_types_go_gen.cue +++ /dev/null @@ -1,103 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCDHCPOptionsAssociationInitParameters: { -} - -#VPCDHCPOptionsAssociationObservation: { - // The ID of the DHCP Options Set to associate to the VPC. - dhcpOptionsId?: null | string @go(DHCPOptionsID,*string) - - // The ID of the DHCP Options Set Association. - id?: null | string @go(ID,*string) - - // The ID of the VPC to which we would like to associate a DHCP Options Set. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCDHCPOptionsAssociationParameters: { - // The ID of the DHCP Options Set to associate to the VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCDHCPOptions - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dhcpOptionsId?: null | string @go(DHCPOptionsID,*string) - - // Reference to a VPCDHCPOptions in ec2 to populate dhcpOptionsId. - // +kubebuilder:validation:Optional - dhcpOptionsIdRef?: null | v1.#Reference @go(DHCPOptionsIDRef,*v1.Reference) - - // Selector for a VPCDHCPOptions in ec2 to populate dhcpOptionsId. - // +kubebuilder:validation:Optional - dhcpOptionsIdSelector?: null | v1.#Selector @go(DHCPOptionsIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the VPC to which we would like to associate a DHCP Options Set. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// VPCDHCPOptionsAssociationSpec defines the desired state of VPCDHCPOptionsAssociation -#VPCDHCPOptionsAssociationSpec: { - v1.#ResourceSpec - forProvider: #VPCDHCPOptionsAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCDHCPOptionsAssociationInitParameters @go(InitProvider) -} - -// VPCDHCPOptionsAssociationStatus defines the observed state of VPCDHCPOptionsAssociation. -#VPCDHCPOptionsAssociationStatus: { - v1.#ResourceStatus - atProvider?: #VPCDHCPOptionsAssociationObservation @go(AtProvider) -} - -// VPCDHCPOptionsAssociation is the Schema for the VPCDHCPOptionsAssociations API. Provides a VPC DHCP Options Association resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCDHCPOptionsAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCDHCPOptionsAssociationSpec @go(Spec) - status?: #VPCDHCPOptionsAssociationStatus @go(Status) -} - -// VPCDHCPOptionsAssociationList contains a list of VPCDHCPOptionsAssociations -#VPCDHCPOptionsAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCDHCPOptionsAssociation] @go(Items,[]VPCDHCPOptionsAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpoint_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpoint_types_go_gen.cue deleted file mode 100644 index a174d60..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpoint_types_go_gen.cue +++ /dev/null @@ -1,242 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DNSEntryInitParameters: { -} - -#DNSEntryObservation: { - // The DNS name. - dnsName?: null | string @go(DNSName,*string) - - // The ID of the private hosted zone. - hostedZoneId?: null | string @go(HostedZoneID,*string) -} - -#DNSEntryParameters: { -} - -#DNSOptionsInitParameters: { - // The DNS records created for the endpoint. Valid values are ipv4, dualstack, service-defined, and ipv6. - dnsRecordIpType?: null | string @go(DNSRecordIPType,*string) -} - -#DNSOptionsObservation: { - // The DNS records created for the endpoint. Valid values are ipv4, dualstack, service-defined, and ipv6. - dnsRecordIpType?: null | string @go(DNSRecordIPType,*string) -} - -#DNSOptionsParameters: { - // The DNS records created for the endpoint. Valid values are ipv4, dualstack, service-defined, and ipv6. - // +kubebuilder:validation:Optional - dnsRecordIpType?: null | string @go(DNSRecordIPType,*string) -} - -#VPCEndpointInitParameters_2: { - // Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account). - autoAccept?: null | bool @go(AutoAccept,*bool) - - // The DNS options for the endpoint. See dns_options below. - dnsOptions?: [...#DNSOptionsInitParameters] @go(DNSOptions,[]DNSOptionsInitParameters) - - // The IP address type for the endpoint. Valid values are ipv4, dualstack, and ipv6. - ipAddressType?: null | string @go(IPAddressType,*string) - - // A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details. - policy?: null | string @go(Policy,*string) - - // Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. - // Defaults to false. - privateDnsEnabled?: null | bool @go(PrivateDNSEnabled,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway. - vpcEndpointType?: null | string @go(VPCEndpointType,*string) -} - -#VPCEndpointObservation_2: { - // The Amazon Resource Name (ARN) of the VPC endpoint. - arn?: null | string @go(Arn,*string) - - // Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account). - autoAccept?: null | bool @go(AutoAccept,*bool) - - // The list of CIDR blocks for the exposed AWS service. Applicable for endpoints of type Gateway. - cidrBlocks?: [...null | string] @go(CidrBlocks,[]*string) - - // The DNS entries for the VPC Endpoint. Applicable for endpoints of type Interface. DNS blocks are documented below. - dnsEntry?: [...#DNSEntryObservation] @go(DNSEntry,[]DNSEntryObservation) - - // The DNS options for the endpoint. See dns_options below. - dnsOptions?: [...#DNSOptionsObservation] @go(DNSOptions,[]DNSOptionsObservation) - - // The ID of the VPC endpoint. - id?: null | string @go(ID,*string) - - // The IP address type for the endpoint. Valid values are ipv4, dualstack, and ipv6. - ipAddressType?: null | string @go(IPAddressType,*string) - - // One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type Interface. - networkInterfaceIds?: [...null | string] @go(NetworkInterfaceIds,[]*string) - - // The ID of the AWS account that owns the VPC endpoint. - ownerId?: null | string @go(OwnerID,*string) - - // A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details. - policy?: null | string @go(Policy,*string) - - // The prefix list ID of the exposed AWS service. Applicable for endpoints of type Gateway. - prefixListId?: null | string @go(PrefixListID,*string) - - // Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. - // Defaults to false. - privateDnsEnabled?: null | bool @go(PrivateDNSEnabled,*bool) - - // Whether or not the VPC Endpoint is being managed by its service - true or false. - requesterManaged?: null | bool @go(RequesterManaged,*bool) - - // One or more route table IDs. Applicable for endpoints of type Gateway. - routeTableIds?: [...null | string] @go(RouteTableIds,[]*string) - - // The ID of one or more security groups to associate with the network interface. Applicable for endpoints of type Interface. - // If no security groups are specified, the VPC's default security group is associated with the endpoint. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The service name. For AWS services the service name is usually in the form com.amazonaws.. (the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker..notebook). - serviceName?: null | string @go(ServiceName,*string) - - // The state of the VPC endpoint. - state?: null | string @go(State,*string) - - // The ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type GatewayLoadBalancer and Interface. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway. - vpcEndpointType?: null | string @go(VPCEndpointType,*string) - - // The ID of the VPC in which the endpoint will be used. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCEndpointParameters_2: { - // Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account). - // +kubebuilder:validation:Optional - autoAccept?: null | bool @go(AutoAccept,*bool) - - // The DNS options for the endpoint. See dns_options below. - // +kubebuilder:validation:Optional - dnsOptions?: [...#DNSOptionsParameters] @go(DNSOptions,[]DNSOptionsParameters) - - // The IP address type for the endpoint. Valid values are ipv4, dualstack, and ipv6. - // +kubebuilder:validation:Optional - ipAddressType?: null | string @go(IPAddressType,*string) - - // A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. - // Defaults to false. - // +kubebuilder:validation:Optional - privateDnsEnabled?: null | bool @go(PrivateDNSEnabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The service name. For AWS services the service name is usually in the form com.amazonaws.. (the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker..notebook). - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCEndpointService - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("service_name",true) - // +kubebuilder:validation:Optional - serviceName?: null | string @go(ServiceName,*string) - - // Reference to a VPCEndpointService in ec2 to populate serviceName. - // +kubebuilder:validation:Optional - serviceNameRef?: null | v1.#Reference @go(ServiceNameRef,*v1.Reference) - - // Selector for a VPCEndpointService in ec2 to populate serviceName. - // +kubebuilder:validation:Optional - serviceNameSelector?: null | v1.#Selector @go(ServiceNameSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway. - // +kubebuilder:validation:Optional - vpcEndpointType?: null | string @go(VPCEndpointType,*string) - - // The ID of the VPC in which the endpoint will be used. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// VPCEndpointSpec defines the desired state of VPCEndpoint -#VPCEndpointSpec: { - v1.#ResourceSpec - forProvider: #VPCEndpointParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCEndpointInitParameters_2 @go(InitProvider) -} - -// VPCEndpointStatus defines the observed state of VPCEndpoint. -#VPCEndpointStatus: { - v1.#ResourceStatus - atProvider?: #VPCEndpointObservation_2 @go(AtProvider) -} - -// VPCEndpoint is the Schema for the VPCEndpoints API. Provides a VPC Endpoint resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCEndpoint: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCEndpointSpec @go(Spec) - status?: #VPCEndpointStatus @go(Status) -} - -// VPCEndpointList contains a list of VPCEndpoints -#VPCEndpointList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCEndpoint] @go(Items,[]VPCEndpoint) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointconnectionnotification_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointconnectionnotification_types_go_gen.cue deleted file mode 100644 index 65dd388..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointconnectionnotification_types_go_gen.cue +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCEndpointConnectionNotificationInitParameters: { - // One or more endpoint events for which to receive notifications. - connectionEvents?: [...null | string] @go(ConnectionEvents,[]*string) - - // The ID of the VPC Endpoint to receive notifications for. - vpcEndpointId?: null | string @go(VPCEndpointID,*string) -} - -#VPCEndpointConnectionNotificationObservation: { - // One or more endpoint events for which to receive notifications. - connectionEvents?: [...null | string] @go(ConnectionEvents,[]*string) - - // The ARN of the SNS topic for the notifications. - connectionNotificationArn?: null | string @go(ConnectionNotificationArn,*string) - - // The ID of the VPC connection notification. - id?: null | string @go(ID,*string) - - // The type of notification. - notificationType?: null | string @go(NotificationType,*string) - - // The state of the notification. - state?: null | string @go(State,*string) - - // The ID of the VPC Endpoint to receive notifications for. - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // The ID of the VPC Endpoint Service to receive notifications for. - vpcEndpointServiceId?: null | string @go(VPCEndpointServiceID,*string) -} - -#VPCEndpointConnectionNotificationParameters: { - // One or more endpoint events for which to receive notifications. - // +kubebuilder:validation:Optional - connectionEvents?: [...null | string] @go(ConnectionEvents,[]*string) - - // The ARN of the SNS topic for the notifications. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - connectionNotificationArn?: null | string @go(ConnectionNotificationArn,*string) - - // Reference to a Topic in sns to populate connectionNotificationArn. - // +kubebuilder:validation:Optional - connectionNotificationArnRef?: null | v1.#Reference @go(ConnectionNotificationArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate connectionNotificationArn. - // +kubebuilder:validation:Optional - connectionNotificationArnSelector?: null | v1.#Selector @go(ConnectionNotificationArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the VPC Endpoint to receive notifications for. - // +kubebuilder:validation:Optional - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // The ID of the VPC Endpoint Service to receive notifications for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCEndpointService - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcEndpointServiceId?: null | string @go(VPCEndpointServiceID,*string) - - // Reference to a VPCEndpointService in ec2 to populate vpcEndpointServiceId. - // +kubebuilder:validation:Optional - vpcEndpointServiceIdRef?: null | v1.#Reference @go(VPCEndpointServiceIDRef,*v1.Reference) - - // Selector for a VPCEndpointService in ec2 to populate vpcEndpointServiceId. - // +kubebuilder:validation:Optional - vpcEndpointServiceIdSelector?: null | v1.#Selector @go(VPCEndpointServiceIDSelector,*v1.Selector) -} - -// VPCEndpointConnectionNotificationSpec defines the desired state of VPCEndpointConnectionNotification -#VPCEndpointConnectionNotificationSpec: { - v1.#ResourceSpec - forProvider: #VPCEndpointConnectionNotificationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCEndpointConnectionNotificationInitParameters @go(InitProvider) -} - -// VPCEndpointConnectionNotificationStatus defines the observed state of VPCEndpointConnectionNotification. -#VPCEndpointConnectionNotificationStatus: { - v1.#ResourceStatus - atProvider?: #VPCEndpointConnectionNotificationObservation @go(AtProvider) -} - -// VPCEndpointConnectionNotification is the Schema for the VPCEndpointConnectionNotifications API. Provides a VPC Endpoint connection notification resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCEndpointConnectionNotification: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.connectionEvents) || (has(self.initProvider) && has(self.initProvider.connectionEvents))",message="spec.forProvider.connectionEvents is a required parameter" - spec: #VPCEndpointConnectionNotificationSpec @go(Spec) - status?: #VPCEndpointConnectionNotificationStatus @go(Status) -} - -// VPCEndpointConnectionNotificationList contains a list of VPCEndpointConnectionNotifications -#VPCEndpointConnectionNotificationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCEndpointConnectionNotification] @go(Items,[]VPCEndpointConnectionNotification) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointroutetableassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointroutetableassociation_types_go_gen.cue deleted file mode 100644 index 11e2595..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointroutetableassociation_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCEndpointRouteTableAssociationInitParameters: { -} - -#VPCEndpointRouteTableAssociationObservation: { - // A hash of the EC2 Route Table and VPC Endpoint identifiers. - id?: null | string @go(ID,*string) - - // Identifier of the EC2 Route Table to be associated with the VPC Endpoint. - routeTableId?: null | string @go(RouteTableID,*string) - - // Identifier of the VPC Endpoint with which the EC2 Route Table will be associated. - vpcEndpointId?: null | string @go(VPCEndpointID,*string) -} - -#VPCEndpointRouteTableAssociationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Identifier of the EC2 Route Table to be associated with the VPC Endpoint. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.RouteTable - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - routeTableId?: null | string @go(RouteTableID,*string) - - // Reference to a RouteTable in ec2 to populate routeTableId. - // +kubebuilder:validation:Optional - routeTableIdRef?: null | v1.#Reference @go(RouteTableIDRef,*v1.Reference) - - // Selector for a RouteTable in ec2 to populate routeTableId. - // +kubebuilder:validation:Optional - routeTableIdSelector?: null | v1.#Selector @go(RouteTableIDSelector,*v1.Selector) - - // Identifier of the VPC Endpoint with which the EC2 Route Table will be associated. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCEndpoint - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // Reference to a VPCEndpoint in ec2 to populate vpcEndpointId. - // +kubebuilder:validation:Optional - vpcEndpointIdRef?: null | v1.#Reference @go(VPCEndpointIDRef,*v1.Reference) - - // Selector for a VPCEndpoint in ec2 to populate vpcEndpointId. - // +kubebuilder:validation:Optional - vpcEndpointIdSelector?: null | v1.#Selector @go(VPCEndpointIDSelector,*v1.Selector) -} - -// VPCEndpointRouteTableAssociationSpec defines the desired state of VPCEndpointRouteTableAssociation -#VPCEndpointRouteTableAssociationSpec: { - v1.#ResourceSpec - forProvider: #VPCEndpointRouteTableAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCEndpointRouteTableAssociationInitParameters @go(InitProvider) -} - -// VPCEndpointRouteTableAssociationStatus defines the observed state of VPCEndpointRouteTableAssociation. -#VPCEndpointRouteTableAssociationStatus: { - v1.#ResourceStatus - atProvider?: #VPCEndpointRouteTableAssociationObservation @go(AtProvider) -} - -// VPCEndpointRouteTableAssociation is the Schema for the VPCEndpointRouteTableAssociations API. Manages a VPC Endpoint Route Table Association -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCEndpointRouteTableAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCEndpointRouteTableAssociationSpec @go(Spec) - status?: #VPCEndpointRouteTableAssociationStatus @go(Status) -} - -// VPCEndpointRouteTableAssociationList contains a list of VPCEndpointRouteTableAssociations -#VPCEndpointRouteTableAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCEndpointRouteTableAssociation] @go(Items,[]VPCEndpointRouteTableAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointsecuritygroupassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointsecuritygroupassociation_types_go_gen.cue deleted file mode 100644 index 023c17d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointsecuritygroupassociation_types_go_gen.cue +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCEndpointSecurityGroupAssociationInitParameters: { - // Whether this association should replace the association with the VPC's default security group that is created when no security groups are specified during VPC endpoint creation. At most 1 association per-VPC endpoint should be configured with replace_default_association = true. - replaceDefaultAssociation?: null | bool @go(ReplaceDefaultAssociation,*bool) -} - -#VPCEndpointSecurityGroupAssociationObservation: { - // The ID of the association. - id?: null | string @go(ID,*string) - - // Whether this association should replace the association with the VPC's default security group that is created when no security groups are specified during VPC endpoint creation. At most 1 association per-VPC endpoint should be configured with replace_default_association = true. - replaceDefaultAssociation?: null | bool @go(ReplaceDefaultAssociation,*bool) - - // The ID of the security group to be associated with the VPC endpoint. - securityGroupId?: null | string @go(SecurityGroupID,*string) - - // The ID of the VPC endpoint with which the security group will be associated. - vpcEndpointId?: null | string @go(VPCEndpointID,*string) -} - -#VPCEndpointSecurityGroupAssociationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Whether this association should replace the association with the VPC's default security group that is created when no security groups are specified during VPC endpoint creation. At most 1 association per-VPC endpoint should be configured with replace_default_association = true. - // +kubebuilder:validation:Optional - replaceDefaultAssociation?: null | bool @go(ReplaceDefaultAssociation,*bool) - - // The ID of the security group to be associated with the VPC endpoint. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +kubebuilder:validation:Optional - securityGroupId?: null | string @go(SecurityGroupID,*string) - - // Reference to a SecurityGroup in ec2 to populate securityGroupId. - // +kubebuilder:validation:Optional - securityGroupIdRef?: null | v1.#Reference @go(SecurityGroupIDRef,*v1.Reference) - - // Selector for a SecurityGroup in ec2 to populate securityGroupId. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // The ID of the VPC endpoint with which the security group will be associated. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCEndpoint - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // Reference to a VPCEndpoint in ec2 to populate vpcEndpointId. - // +kubebuilder:validation:Optional - vpcEndpointIdRef?: null | v1.#Reference @go(VPCEndpointIDRef,*v1.Reference) - - // Selector for a VPCEndpoint in ec2 to populate vpcEndpointId. - // +kubebuilder:validation:Optional - vpcEndpointIdSelector?: null | v1.#Selector @go(VPCEndpointIDSelector,*v1.Selector) -} - -// VPCEndpointSecurityGroupAssociationSpec defines the desired state of VPCEndpointSecurityGroupAssociation -#VPCEndpointSecurityGroupAssociationSpec: { - v1.#ResourceSpec - forProvider: #VPCEndpointSecurityGroupAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCEndpointSecurityGroupAssociationInitParameters @go(InitProvider) -} - -// VPCEndpointSecurityGroupAssociationStatus defines the observed state of VPCEndpointSecurityGroupAssociation. -#VPCEndpointSecurityGroupAssociationStatus: { - v1.#ResourceStatus - atProvider?: #VPCEndpointSecurityGroupAssociationObservation @go(AtProvider) -} - -// VPCEndpointSecurityGroupAssociation is the Schema for the VPCEndpointSecurityGroupAssociations API. Provides a resource to create an association between a VPC endpoint and a security group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCEndpointSecurityGroupAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCEndpointSecurityGroupAssociationSpec @go(Spec) - status?: #VPCEndpointSecurityGroupAssociationStatus @go(Status) -} - -// VPCEndpointSecurityGroupAssociationList contains a list of VPCEndpointSecurityGroupAssociations -#VPCEndpointSecurityGroupAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCEndpointSecurityGroupAssociation] @go(Items,[]VPCEndpointSecurityGroupAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointservice_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointservice_types_go_gen.cue deleted file mode 100644 index 37f6933..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointservice_types_go_gen.cue +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PrivateDNSNameConfigurationInitParameters: { -} - -#PrivateDNSNameConfigurationObservation: { - // Name of the record subdomain the service provider needs to create. - name?: null | string @go(Name,*string) - - // The state of the VPC endpoint service. - state?: null | string @go(State,*string) - - // Endpoint service verification type, for example TXT. - type?: null | string @go(Type,*string) - - // Value the service provider adds to the private DNS name domain record before verification. - value?: null | string @go(Value,*string) -} - -#PrivateDNSNameConfigurationParameters: { -} - -#VPCEndpointServiceInitParameters: { - // Whether or not VPC endpoint connection requests to the service must be accepted by the service owner - true or false. - acceptanceRequired?: null | bool @go(AcceptanceRequired,*bool) - - // Amazon Resource Names (ARNs) of one or more Gateway Load Balancers for the endpoint service. - gatewayLoadBalancerArns?: [...null | string] @go(GatewayLoadBalancerArns,[]*string) - - // Amazon Resource Names (ARNs) of one or more Network Load Balancers for the endpoint service. - networkLoadBalancerArns?: [...null | string] @go(NetworkLoadBalancerArns,[]*string) - - // The private DNS name for the service. - privateDnsName?: null | string @go(PrivateDNSName,*string) - - // The supported IP address types. The possible values are ipv4 and ipv6. - supportedIpAddressTypes?: [...null | string] @go(SupportedIPAddressTypes,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VPCEndpointServiceObservation: { - // Whether or not VPC endpoint connection requests to the service must be accepted by the service owner - true or false. - acceptanceRequired?: null | bool @go(AcceptanceRequired,*bool) - - // The ARNs of one or more principals allowed to discover the endpoint service. - allowedPrincipals?: [...null | string] @go(AllowedPrincipals,[]*string) - - // The Amazon Resource Name (ARN) of the VPC endpoint service. - arn?: null | string @go(Arn,*string) - - // A set of Availability Zones in which the service is available. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // A set of DNS names for the service. - baseEndpointDnsNames?: [...null | string] @go(BaseEndpointDNSNames,[]*string) - - // Amazon Resource Names (ARNs) of one or more Gateway Load Balancers for the endpoint service. - gatewayLoadBalancerArns?: [...null | string] @go(GatewayLoadBalancerArns,[]*string) - - // The ID of the VPC endpoint service. - id?: null | string @go(ID,*string) - - // Whether or not the service manages its VPC endpoints - true or false. - managesVpcEndpoints?: null | bool @go(ManagesVPCEndpoints,*bool) - - // Amazon Resource Names (ARNs) of one or more Network Load Balancers for the endpoint service. - networkLoadBalancerArns?: [...null | string] @go(NetworkLoadBalancerArns,[]*string) - - // The private DNS name for the service. - privateDnsName?: null | string @go(PrivateDNSName,*string) - - // List of objects containing information about the endpoint service private DNS name configuration. - privateDnsNameConfiguration?: [...#PrivateDNSNameConfigurationObservation] @go(PrivateDNSNameConfiguration,[]PrivateDNSNameConfigurationObservation) - - // The service name. - serviceName?: null | string @go(ServiceName,*string) - - // The service type, Gateway or Interface. - serviceType?: null | string @go(ServiceType,*string) - - // The state of the VPC endpoint service. - state?: null | string @go(State,*string) - - // The supported IP address types. The possible values are ipv4 and ipv6. - supportedIpAddressTypes?: [...null | string] @go(SupportedIPAddressTypes,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VPCEndpointServiceParameters: { - // Whether or not VPC endpoint connection requests to the service must be accepted by the service owner - true or false. - // +kubebuilder:validation:Optional - acceptanceRequired?: null | bool @go(AcceptanceRequired,*bool) - - // Amazon Resource Names (ARNs) of one or more Gateway Load Balancers for the endpoint service. - // +kubebuilder:validation:Optional - gatewayLoadBalancerArns?: [...null | string] @go(GatewayLoadBalancerArns,[]*string) - - // Amazon Resource Names (ARNs) of one or more Network Load Balancers for the endpoint service. - // +kubebuilder:validation:Optional - networkLoadBalancerArns?: [...null | string] @go(NetworkLoadBalancerArns,[]*string) - - // The private DNS name for the service. - // +kubebuilder:validation:Optional - privateDnsName?: null | string @go(PrivateDNSName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The supported IP address types. The possible values are ipv4 and ipv6. - // +kubebuilder:validation:Optional - supportedIpAddressTypes?: [...null | string] @go(SupportedIPAddressTypes,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// VPCEndpointServiceSpec defines the desired state of VPCEndpointService -#VPCEndpointServiceSpec: { - v1.#ResourceSpec - forProvider: #VPCEndpointServiceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCEndpointServiceInitParameters @go(InitProvider) -} - -// VPCEndpointServiceStatus defines the observed state of VPCEndpointService. -#VPCEndpointServiceStatus: { - v1.#ResourceStatus - atProvider?: #VPCEndpointServiceObservation @go(AtProvider) -} - -// VPCEndpointService is the Schema for the VPCEndpointServices API. Provides a VPC Endpoint Service resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCEndpointService: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.acceptanceRequired) || (has(self.initProvider) && has(self.initProvider.acceptanceRequired))",message="spec.forProvider.acceptanceRequired is a required parameter" - spec: #VPCEndpointServiceSpec @go(Spec) - status?: #VPCEndpointServiceStatus @go(Status) -} - -// VPCEndpointServiceList contains a list of VPCEndpointServices -#VPCEndpointServiceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCEndpointService] @go(Items,[]VPCEndpointService) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointserviceallowedprincipal_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointserviceallowedprincipal_types_go_gen.cue deleted file mode 100644 index 12b414b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointserviceallowedprincipal_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCEndpointServiceAllowedPrincipalInitParameters: { - // The ARN of the principal to allow permissions. - principalArn?: null | string @go(PrincipalArn,*string) -} - -#VPCEndpointServiceAllowedPrincipalObservation: { - // The ID of the association. - id?: null | string @go(ID,*string) - - // The ARN of the principal to allow permissions. - principalArn?: null | string @go(PrincipalArn,*string) - - // The ID of the VPC endpoint service to allow permission. - vpcEndpointServiceId?: null | string @go(VPCEndpointServiceID,*string) -} - -#VPCEndpointServiceAllowedPrincipalParameters: { - // The ARN of the principal to allow permissions. - // +kubebuilder:validation:Optional - principalArn?: null | string @go(PrincipalArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the VPC endpoint service to allow permission. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCEndpointService - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcEndpointServiceId?: null | string @go(VPCEndpointServiceID,*string) - - // Reference to a VPCEndpointService in ec2 to populate vpcEndpointServiceId. - // +kubebuilder:validation:Optional - vpcEndpointServiceIdRef?: null | v1.#Reference @go(VPCEndpointServiceIDRef,*v1.Reference) - - // Selector for a VPCEndpointService in ec2 to populate vpcEndpointServiceId. - // +kubebuilder:validation:Optional - vpcEndpointServiceIdSelector?: null | v1.#Selector @go(VPCEndpointServiceIDSelector,*v1.Selector) -} - -// VPCEndpointServiceAllowedPrincipalSpec defines the desired state of VPCEndpointServiceAllowedPrincipal -#VPCEndpointServiceAllowedPrincipalSpec: { - v1.#ResourceSpec - forProvider: #VPCEndpointServiceAllowedPrincipalParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCEndpointServiceAllowedPrincipalInitParameters @go(InitProvider) -} - -// VPCEndpointServiceAllowedPrincipalStatus defines the observed state of VPCEndpointServiceAllowedPrincipal. -#VPCEndpointServiceAllowedPrincipalStatus: { - v1.#ResourceStatus - atProvider?: #VPCEndpointServiceAllowedPrincipalObservation @go(AtProvider) -} - -// VPCEndpointServiceAllowedPrincipal is the Schema for the VPCEndpointServiceAllowedPrincipals API. Provides a resource to allow a principal to discover a VPC endpoint service. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCEndpointServiceAllowedPrincipal: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.principalArn) || (has(self.initProvider) && has(self.initProvider.principalArn))",message="spec.forProvider.principalArn is a required parameter" - spec: #VPCEndpointServiceAllowedPrincipalSpec @go(Spec) - status?: #VPCEndpointServiceAllowedPrincipalStatus @go(Status) -} - -// VPCEndpointServiceAllowedPrincipalList contains a list of VPCEndpointServiceAllowedPrincipals -#VPCEndpointServiceAllowedPrincipalList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCEndpointServiceAllowedPrincipal] @go(Items,[]VPCEndpointServiceAllowedPrincipal) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointsubnetassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointsubnetassociation_types_go_gen.cue deleted file mode 100644 index 2e6c681..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcendpointsubnetassociation_types_go_gen.cue +++ /dev/null @@ -1,103 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCEndpointSubnetAssociationInitParameters: { -} - -#VPCEndpointSubnetAssociationObservation: { - // The ID of the association. - id?: null | string @go(ID,*string) - - // The ID of the subnet to be associated with the VPC endpoint. - subnetId?: null | string @go(SubnetID,*string) - - // The ID of the VPC endpoint with which the subnet will be associated. - vpcEndpointId?: null | string @go(VPCEndpointID,*string) -} - -#VPCEndpointSubnetAssociationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the subnet to be associated with the VPC endpoint. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // The ID of the VPC endpoint with which the subnet will be associated. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCEndpoint - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // Reference to a VPCEndpoint in ec2 to populate vpcEndpointId. - // +kubebuilder:validation:Optional - vpcEndpointIdRef?: null | v1.#Reference @go(VPCEndpointIDRef,*v1.Reference) - - // Selector for a VPCEndpoint in ec2 to populate vpcEndpointId. - // +kubebuilder:validation:Optional - vpcEndpointIdSelector?: null | v1.#Selector @go(VPCEndpointIDSelector,*v1.Selector) -} - -// VPCEndpointSubnetAssociationSpec defines the desired state of VPCEndpointSubnetAssociation -#VPCEndpointSubnetAssociationSpec: { - v1.#ResourceSpec - forProvider: #VPCEndpointSubnetAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCEndpointSubnetAssociationInitParameters @go(InitProvider) -} - -// VPCEndpointSubnetAssociationStatus defines the observed state of VPCEndpointSubnetAssociation. -#VPCEndpointSubnetAssociationStatus: { - v1.#ResourceStatus - atProvider?: #VPCEndpointSubnetAssociationObservation @go(AtProvider) -} - -// VPCEndpointSubnetAssociation is the Schema for the VPCEndpointSubnetAssociations API. Provides a resource to create an association between a VPC endpoint and a subnet. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCEndpointSubnetAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCEndpointSubnetAssociationSpec @go(Spec) - status?: #VPCEndpointSubnetAssociationStatus @go(Status) -} - -// VPCEndpointSubnetAssociationList contains a list of VPCEndpointSubnetAssociations -#VPCEndpointSubnetAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCEndpointSubnetAssociation] @go(Items,[]VPCEndpointSubnetAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipam_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipam_types_go_gen.cue deleted file mode 100644 index ca1b92a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipam_types_go_gen.cue +++ /dev/null @@ -1,149 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#OperatingRegionsInitParameters: { - // The name of the Region you want to add to the IPAM. - regionName?: null | string @go(RegionName,*string) -} - -#OperatingRegionsObservation: { - // The name of the Region you want to add to the IPAM. - regionName?: null | string @go(RegionName,*string) -} - -#OperatingRegionsParameters: { - // The name of the Region you want to add to the IPAM. - // +kubebuilder:validation:Optional - regionName?: null | string @go(RegionName,*string) -} - -#VPCIpamInitParameters: { - // Enables you to quickly delete an IPAM, private scopes, pools in private scopes, and any allocations in the pools in private scopes. - cascade?: null | bool @go(Cascade,*bool) - - // A description for the IPAM. - description?: null | string @go(Description,*string) - - // Determines which locales can be chosen when you create pools. Locale is the Region where you want to make an IPAM pool available for allocations. You can only create pools with locales that match the operating Regions of the IPAM. You can only create VPCs from a pool whose locale matches the VPC's Region. You specify a region using the region_name parameter. You must set your provider block region as an operating_region. - operatingRegions?: [...#OperatingRegionsInitParameters] @go(OperatingRegions,[]OperatingRegionsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VPCIpamObservation: { - // Amazon Resource Name (ARN) of IPAM - arn?: null | string @go(Arn,*string) - - // Enables you to quickly delete an IPAM, private scopes, pools in private scopes, and any allocations in the pools in private scopes. - cascade?: null | bool @go(Cascade,*bool) - - // The IPAM's default resource discovery association ID. - defaultResourceDiscoveryAssociationId?: null | string @go(DefaultResourceDiscoveryAssociationID,*string) - - // The IPAM's default resource discovery ID. - defaultResourceDiscoveryId?: null | string @go(DefaultResourceDiscoveryID,*string) - - // A description for the IPAM. - description?: null | string @go(Description,*string) - - // The ID of the IPAM - id?: null | string @go(ID,*string) - - // Determines which locales can be chosen when you create pools. Locale is the Region where you want to make an IPAM pool available for allocations. You can only create pools with locales that match the operating Regions of the IPAM. You can only create VPCs from a pool whose locale matches the VPC's Region. You specify a region using the region_name parameter. You must set your provider block region as an operating_region. - operatingRegions?: [...#OperatingRegionsObservation] @go(OperatingRegions,[]OperatingRegionsObservation) - - // The ID of the IPAM's private scope. A scope is a top-level container in IPAM. Each scope represents an IP-independent network. Scopes enable you to represent networks where you have overlapping IP space. When you create an IPAM, IPAM automatically creates two scopes: public and private. The private scope is intended for private IP space. The public scope is intended for all internet-routable IP space. - privateDefaultScopeId?: null | string @go(PrivateDefaultScopeID,*string) - - // The ID of the IPAM's public scope. A scope is a top-level container in IPAM. Each scope represents an IP-independent network. Scopes enable you to represent networks where you have overlapping IP space. When you create an IPAM, IPAM automatically creates two scopes: public and private. The private scope is intended for private - // IP space. The public scope is intended for all internet-routable IP space. - publicDefaultScopeId?: null | string @go(PublicDefaultScopeID,*string) - - // The number of scopes in the IPAM. - scopeCount?: null | float64 @go(ScopeCount,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VPCIpamParameters: { - // Enables you to quickly delete an IPAM, private scopes, pools in private scopes, and any allocations in the pools in private scopes. - // +kubebuilder:validation:Optional - cascade?: null | bool @go(Cascade,*bool) - - // A description for the IPAM. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Determines which locales can be chosen when you create pools. Locale is the Region where you want to make an IPAM pool available for allocations. You can only create pools with locales that match the operating Regions of the IPAM. You can only create VPCs from a pool whose locale matches the VPC's Region. You specify a region using the region_name parameter. You must set your provider block region as an operating_region. - // +kubebuilder:validation:Optional - operatingRegions?: [...#OperatingRegionsParameters] @go(OperatingRegions,[]OperatingRegionsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// VPCIpamSpec defines the desired state of VPCIpam -#VPCIpamSpec: { - v1.#ResourceSpec - forProvider: #VPCIpamParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCIpamInitParameters @go(InitProvider) -} - -// VPCIpamStatus defines the observed state of VPCIpam. -#VPCIpamStatus: { - v1.#ResourceStatus - atProvider?: #VPCIpamObservation @go(AtProvider) -} - -// VPCIpam is the Schema for the VPCIpams API. Provides an IPAM resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCIpam: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.operatingRegions) || (has(self.initProvider) && has(self.initProvider.operatingRegions))",message="spec.forProvider.operatingRegions is a required parameter" - spec: #VPCIpamSpec @go(Spec) - status?: #VPCIpamStatus @go(Status) -} - -// VPCIpamList contains a list of VPCIpams -#VPCIpamList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCIpam] @go(Items,[]VPCIpam) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipampool_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipampool_types_go_gen.cue deleted file mode 100644 index 104c309..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipampool_types_go_gen.cue +++ /dev/null @@ -1,238 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCIpamPoolInitParameters: { - // The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool. - addressFamily?: null | string @go(AddressFamily,*string) - - // A default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16 (unless you provide a different netmask value when you create the new allocation). - allocationDefaultNetmaskLength?: null | float64 @go(AllocationDefaultNetmaskLength,*float64) - - // The maximum netmask length that will be required for CIDR allocations in this pool. - allocationMaxNetmaskLength?: null | float64 @go(AllocationMaxNetmaskLength,*float64) - - // The minimum netmask length that will be required for CIDR allocations in this pool. - allocationMinNetmaskLength?: null | float64 @go(AllocationMinNetmaskLength,*float64) - - // Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant. - allocationResourceTags?: {[string]: null | string} @go(AllocationResourceTags,map[string]*string) - - // If you include this argument, IPAM automatically imports any VPCs you have in your scope that fall - // within the CIDR range in the pool. - autoImport?: null | bool @go(AutoImport,*bool) - - // Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values: ec2. - awsService?: null | string @go(AwsService,*string) - - // A description for the IPAM pool. - description?: null | string @go(Description,*string) - - // The locale in which you would like to create the IPAM pool. Locale is the Region where you want to make an IPAM pool available for allocations. You can only create pools with locales that match the operating Regions of the IPAM. You can only create VPCs from a pool whose locale matches the VPC's Region. Possible values: Any AWS region, such as us-east-1. - locale?: null | string @go(Locale,*string) - - // The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Valid values are byoip or amazon. Default is byoip. - publicIpSource?: null | string @go(PublicIPSource,*string) - - // Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if address_family = "ipv6" and public_ip_source = "byoip", default is false. This option is not available for IPv4 pool space or if public_ip_source = "amazon". - publiclyAdvertisable?: null | bool @go(PubliclyAdvertisable,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VPCIpamPoolObservation: { - // The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool. - addressFamily?: null | string @go(AddressFamily,*string) - - // A default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16 (unless you provide a different netmask value when you create the new allocation). - allocationDefaultNetmaskLength?: null | float64 @go(AllocationDefaultNetmaskLength,*float64) - - // The maximum netmask length that will be required for CIDR allocations in this pool. - allocationMaxNetmaskLength?: null | float64 @go(AllocationMaxNetmaskLength,*float64) - - // The minimum netmask length that will be required for CIDR allocations in this pool. - allocationMinNetmaskLength?: null | float64 @go(AllocationMinNetmaskLength,*float64) - - // Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant. - allocationResourceTags?: {[string]: null | string} @go(AllocationResourceTags,map[string]*string) - - // Amazon Resource Name (ARN) of IPAM - arn?: null | string @go(Arn,*string) - - // If you include this argument, IPAM automatically imports any VPCs you have in your scope that fall - // within the CIDR range in the pool. - autoImport?: null | bool @go(AutoImport,*bool) - - // Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values: ec2. - awsService?: null | string @go(AwsService,*string) - - // A description for the IPAM pool. - description?: null | string @go(Description,*string) - - // The ID of the IPAM - id?: null | string @go(ID,*string) - - // The ID of the scope in which you would like to create the IPAM pool. - ipamScopeId?: null | string @go(IpamScopeID,*string) - ipamScopeType?: null | string @go(IpamScopeType,*string) - - // The locale in which you would like to create the IPAM pool. Locale is the Region where you want to make an IPAM pool available for allocations. You can only create pools with locales that match the operating Regions of the IPAM. You can only create VPCs from a pool whose locale matches the VPC's Region. Possible values: Any AWS region, such as us-east-1. - locale?: null | string @go(Locale,*string) - poolDepth?: null | float64 @go(PoolDepth,*float64) - - // The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Valid values are byoip or amazon. Default is byoip. - publicIpSource?: null | string @go(PublicIPSource,*string) - - // Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if address_family = "ipv6" and public_ip_source = "byoip", default is false. This option is not available for IPv4 pool space or if public_ip_source = "amazon". - publiclyAdvertisable?: null | bool @go(PubliclyAdvertisable,*bool) - - // The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool. - sourceIpamPoolId?: null | string @go(SourceIpamPoolID,*string) - - // The ID of the IPAM - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VPCIpamPoolParameters: { - // The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool. - // +kubebuilder:validation:Optional - addressFamily?: null | string @go(AddressFamily,*string) - - // A default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16 (unless you provide a different netmask value when you create the new allocation). - // +kubebuilder:validation:Optional - allocationDefaultNetmaskLength?: null | float64 @go(AllocationDefaultNetmaskLength,*float64) - - // The maximum netmask length that will be required for CIDR allocations in this pool. - // +kubebuilder:validation:Optional - allocationMaxNetmaskLength?: null | float64 @go(AllocationMaxNetmaskLength,*float64) - - // The minimum netmask length that will be required for CIDR allocations in this pool. - // +kubebuilder:validation:Optional - allocationMinNetmaskLength?: null | float64 @go(AllocationMinNetmaskLength,*float64) - - // Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant. - // +kubebuilder:validation:Optional - allocationResourceTags?: {[string]: null | string} @go(AllocationResourceTags,map[string]*string) - - // If you include this argument, IPAM automatically imports any VPCs you have in your scope that fall - // within the CIDR range in the pool. - // +kubebuilder:validation:Optional - autoImport?: null | bool @go(AutoImport,*bool) - - // Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values: ec2. - // +kubebuilder:validation:Optional - awsService?: null | string @go(AwsService,*string) - - // A description for the IPAM pool. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The ID of the scope in which you would like to create the IPAM pool. - // +crossplane:generate:reference:type=VPCIpamScope - // +kubebuilder:validation:Optional - ipamScopeId?: null | string @go(IpamScopeID,*string) - - // Reference to a VPCIpamScope to populate ipamScopeId. - // +kubebuilder:validation:Optional - ipamScopeIdRef?: null | v1.#Reference @go(IpamScopeIDRef,*v1.Reference) - - // Selector for a VPCIpamScope to populate ipamScopeId. - // +kubebuilder:validation:Optional - ipamScopeIdSelector?: null | v1.#Selector @go(IpamScopeIDSelector,*v1.Selector) - - // The locale in which you would like to create the IPAM pool. Locale is the Region where you want to make an IPAM pool available for allocations. You can only create pools with locales that match the operating Regions of the IPAM. You can only create VPCs from a pool whose locale matches the VPC's Region. Possible values: Any AWS region, such as us-east-1. - // +kubebuilder:validation:Optional - locale?: null | string @go(Locale,*string) - - // The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Valid values are byoip or amazon. Default is byoip. - // +kubebuilder:validation:Optional - publicIpSource?: null | string @go(PublicIPSource,*string) - - // Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if address_family = "ipv6" and public_ip_source = "byoip", default is false. This option is not available for IPv4 pool space or if public_ip_source = "amazon". - // +kubebuilder:validation:Optional - publiclyAdvertisable?: null | bool @go(PubliclyAdvertisable,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCIpamPool - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - sourceIpamPoolId?: null | string @go(SourceIpamPoolID,*string) - - // Reference to a VPCIpamPool in ec2 to populate sourceIpamPoolId. - // +kubebuilder:validation:Optional - sourceIpamPoolIdRef?: null | v1.#Reference @go(SourceIpamPoolIDRef,*v1.Reference) - - // Selector for a VPCIpamPool in ec2 to populate sourceIpamPoolId. - // +kubebuilder:validation:Optional - sourceIpamPoolIdSelector?: null | v1.#Selector @go(SourceIpamPoolIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// VPCIpamPoolSpec defines the desired state of VPCIpamPool -#VPCIpamPoolSpec: { - v1.#ResourceSpec - forProvider: #VPCIpamPoolParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCIpamPoolInitParameters @go(InitProvider) -} - -// VPCIpamPoolStatus defines the observed state of VPCIpamPool. -#VPCIpamPoolStatus: { - v1.#ResourceStatus - atProvider?: #VPCIpamPoolObservation @go(AtProvider) -} - -// VPCIpamPool is the Schema for the VPCIpamPools API. Provides a IP address pool resource for IPAM. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCIpamPool: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.addressFamily) || (has(self.initProvider) && has(self.initProvider.addressFamily))",message="spec.forProvider.addressFamily is a required parameter" - spec: #VPCIpamPoolSpec @go(Spec) - status?: #VPCIpamPoolStatus @go(Status) -} - -// VPCIpamPoolList contains a list of VPCIpamPools -#VPCIpamPoolList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCIpamPool] @go(Items,[]VPCIpamPool) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipampoolcidr_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipampoolcidr_types_go_gen.cue deleted file mode 100644 index b0c3428..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipampoolcidr_types_go_gen.cue +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CidrAuthorizationContextInitParameters: { - // The plain-text authorization message for the prefix and account. - message?: null | string @go(Message,*string) - - // The signed authorization message for the prefix and account. - signature?: null | string @go(Signature,*string) -} - -#CidrAuthorizationContextObservation: { - // The plain-text authorization message for the prefix and account. - message?: null | string @go(Message,*string) - - // The signed authorization message for the prefix and account. - signature?: null | string @go(Signature,*string) -} - -#CidrAuthorizationContextParameters: { - // The plain-text authorization message for the prefix and account. - // +kubebuilder:validation:Optional - message?: null | string @go(Message,*string) - - // The signed authorization message for the prefix and account. - // +kubebuilder:validation:Optional - signature?: null | string @go(Signature,*string) -} - -#VPCIpamPoolCidrInitParameters: { - // The CIDR you want to assign to the pool. Conflicts with netmask_length. - cidr?: null | string @go(Cidr,*string) - - // A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP. This is not stored in the state file. See cidr_authorization_context for more information. - cidrAuthorizationContext?: [...#CidrAuthorizationContextInitParameters] @go(CidrAuthorizationContext,[]CidrAuthorizationContextInitParameters) - - // If provided, the cidr provisioned into the specified pool will be the next available cidr given this declared netmask length. Conflicts with cidr. - netmaskLength?: null | float64 @go(NetmaskLength,*float64) -} - -#VPCIpamPoolCidrObservation: { - // The CIDR you want to assign to the pool. Conflicts with netmask_length. - cidr?: null | string @go(Cidr,*string) - - // A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP. This is not stored in the state file. See cidr_authorization_context for more information. - cidrAuthorizationContext?: [...#CidrAuthorizationContextObservation] @go(CidrAuthorizationContext,[]CidrAuthorizationContextObservation) - - // The ID of the IPAM Pool Cidr concatenated with the IPAM Pool ID. - id?: null | string @go(ID,*string) - - // The unique ID generated by AWS for the pool cidr. - ipamPoolCidrId?: null | string @go(IpamPoolCidrID,*string) - - // The ID of the pool to which you want to assign a CIDR. - ipamPoolId?: null | string @go(IpamPoolID,*string) - - // If provided, the cidr provisioned into the specified pool will be the next available cidr given this declared netmask length. Conflicts with cidr. - netmaskLength?: null | float64 @go(NetmaskLength,*float64) -} - -#VPCIpamPoolCidrParameters: { - // The CIDR you want to assign to the pool. Conflicts with netmask_length. - // +kubebuilder:validation:Optional - cidr?: null | string @go(Cidr,*string) - - // A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP. This is not stored in the state file. See cidr_authorization_context for more information. - // +kubebuilder:validation:Optional - cidrAuthorizationContext?: [...#CidrAuthorizationContextParameters] @go(CidrAuthorizationContext,[]CidrAuthorizationContextParameters) - - // The ID of the pool to which you want to assign a CIDR. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCIpamPool - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - ipamPoolId?: null | string @go(IpamPoolID,*string) - - // Reference to a VPCIpamPool in ec2 to populate ipamPoolId. - // +kubebuilder:validation:Optional - ipamPoolIdRef?: null | v1.#Reference @go(IpamPoolIDRef,*v1.Reference) - - // Selector for a VPCIpamPool in ec2 to populate ipamPoolId. - // +kubebuilder:validation:Optional - ipamPoolIdSelector?: null | v1.#Selector @go(IpamPoolIDSelector,*v1.Selector) - - // If provided, the cidr provisioned into the specified pool will be the next available cidr given this declared netmask length. Conflicts with cidr. - // +kubebuilder:validation:Optional - netmaskLength?: null | float64 @go(NetmaskLength,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// VPCIpamPoolCidrSpec defines the desired state of VPCIpamPoolCidr -#VPCIpamPoolCidrSpec: { - v1.#ResourceSpec - forProvider: #VPCIpamPoolCidrParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCIpamPoolCidrInitParameters @go(InitProvider) -} - -// VPCIpamPoolCidrStatus defines the observed state of VPCIpamPoolCidr. -#VPCIpamPoolCidrStatus: { - v1.#ResourceStatus - atProvider?: #VPCIpamPoolCidrObservation @go(AtProvider) -} - -// VPCIpamPoolCidr is the Schema for the VPCIpamPoolCidrs API. Provisions a CIDR from an IPAM address pool. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCIpamPoolCidr: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCIpamPoolCidrSpec @go(Spec) - status?: #VPCIpamPoolCidrStatus @go(Status) -} - -// VPCIpamPoolCidrList contains a list of VPCIpamPoolCidrs -#VPCIpamPoolCidrList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCIpamPoolCidr] @go(Items,[]VPCIpamPoolCidr) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipampoolcidrallocation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipampoolcidrallocation_types_go_gen.cue deleted file mode 100644 index 1af3af4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipampoolcidrallocation_types_go_gen.cue +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCIpamPoolCidrAllocationInitParameters: { - // The CIDR you want to assign to the pool. - cidr?: null | string @go(Cidr,*string) - - // The description for the allocation. - description?: null | string @go(Description,*string) - - // Exclude a particular CIDR range from being returned by the pool. - disallowedCidrs?: [...null | string] @go(DisallowedCidrs,[]*string) - - // The netmask length of the CIDR you would like to allocate to the IPAM pool. Valid Values: 0-128. - netmaskLength?: null | float64 @go(NetmaskLength,*float64) -} - -#VPCIpamPoolCidrAllocationObservation: { - // The CIDR you want to assign to the pool. - cidr?: null | string @go(Cidr,*string) - - // The description for the allocation. - description?: null | string @go(Description,*string) - - // Exclude a particular CIDR range from being returned by the pool. - disallowedCidrs?: [...null | string] @go(DisallowedCidrs,[]*string) - - // The ID of the allocation. - id?: null | string @go(ID,*string) - - // The ID of the allocation. - ipamPoolAllocationId?: null | string @go(IpamPoolAllocationID,*string) - - // The ID of the pool to which you want to assign a CIDR. - ipamPoolId?: null | string @go(IpamPoolID,*string) - - // The netmask length of the CIDR you would like to allocate to the IPAM pool. Valid Values: 0-128. - netmaskLength?: null | float64 @go(NetmaskLength,*float64) - - // The ID of the resource. - resourceId?: null | string @go(ResourceID,*string) - - // The owner of the resource. - resourceOwner?: null | string @go(ResourceOwner,*string) - - // The type of the resource. - resourceType?: null | string @go(ResourceType,*string) -} - -#VPCIpamPoolCidrAllocationParameters: { - // The CIDR you want to assign to the pool. - // +kubebuilder:validation:Optional - cidr?: null | string @go(Cidr,*string) - - // The description for the allocation. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Exclude a particular CIDR range from being returned by the pool. - // +kubebuilder:validation:Optional - disallowedCidrs?: [...null | string] @go(DisallowedCidrs,[]*string) - - // The ID of the pool to which you want to assign a CIDR. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCIpamPool - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - ipamPoolId?: null | string @go(IpamPoolID,*string) - - // Reference to a VPCIpamPool in ec2 to populate ipamPoolId. - // +kubebuilder:validation:Optional - ipamPoolIdRef?: null | v1.#Reference @go(IpamPoolIDRef,*v1.Reference) - - // Selector for a VPCIpamPool in ec2 to populate ipamPoolId. - // +kubebuilder:validation:Optional - ipamPoolIdSelector?: null | v1.#Selector @go(IpamPoolIDSelector,*v1.Selector) - - // The netmask length of the CIDR you would like to allocate to the IPAM pool. Valid Values: 0-128. - // +kubebuilder:validation:Optional - netmaskLength?: null | float64 @go(NetmaskLength,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// VPCIpamPoolCidrAllocationSpec defines the desired state of VPCIpamPoolCidrAllocation -#VPCIpamPoolCidrAllocationSpec: { - v1.#ResourceSpec - forProvider: #VPCIpamPoolCidrAllocationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCIpamPoolCidrAllocationInitParameters @go(InitProvider) -} - -// VPCIpamPoolCidrAllocationStatus defines the observed state of VPCIpamPoolCidrAllocation. -#VPCIpamPoolCidrAllocationStatus: { - v1.#ResourceStatus - atProvider?: #VPCIpamPoolCidrAllocationObservation @go(AtProvider) -} - -// VPCIpamPoolCidrAllocation is the Schema for the VPCIpamPoolCidrAllocations API. Allocates (reserves) a CIDR from an IPAM address pool, preventing usage by IPAM. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCIpamPoolCidrAllocation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCIpamPoolCidrAllocationSpec @go(Spec) - status?: #VPCIpamPoolCidrAllocationStatus @go(Status) -} - -// VPCIpamPoolCidrAllocationList contains a list of VPCIpamPoolCidrAllocations -#VPCIpamPoolCidrAllocationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCIpamPoolCidrAllocation] @go(Items,[]VPCIpamPoolCidrAllocation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipamscope_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipamscope_types_go_gen.cue deleted file mode 100644 index 9fd66be..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipamscope_types_go_gen.cue +++ /dev/null @@ -1,121 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCIpamScopeInitParameters: { - // A description for the scope you're creating. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VPCIpamScopeObservation: { - // The Amazon Resource Name (ARN) of the scope. - arn?: null | string @go(Arn,*string) - - // A description for the scope you're creating. - description?: null | string @go(Description,*string) - - // The ID of the IPAM Scope. - id?: null | string @go(ID,*string) - - // The ARN of the IPAM for which you're creating this scope. - ipamArn?: null | string @go(IpamArn,*string) - - // The ID of the IPAM for which you're creating this scope. - ipamId?: null | string @go(IpamID,*string) - - // The type of the scope. - ipamScopeType?: null | string @go(IpamScopeType,*string) - - // Defines if the scope is the default scope or not. - isDefault?: null | bool @go(IsDefault,*bool) - - // The number of pools in the scope. - poolCount?: null | float64 @go(PoolCount,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VPCIpamScopeParameters: { - // A description for the scope you're creating. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The ID of the IPAM for which you're creating this scope. - // +crossplane:generate:reference:type=VPCIpam - // +kubebuilder:validation:Optional - ipamId?: null | string @go(IpamID,*string) - - // Reference to a VPCIpam to populate ipamId. - // +kubebuilder:validation:Optional - ipamIdRef?: null | v1.#Reference @go(IpamIDRef,*v1.Reference) - - // Selector for a VPCIpam to populate ipamId. - // +kubebuilder:validation:Optional - ipamIdSelector?: null | v1.#Selector @go(IpamIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// VPCIpamScopeSpec defines the desired state of VPCIpamScope -#VPCIpamScopeSpec: { - v1.#ResourceSpec - forProvider: #VPCIpamScopeParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCIpamScopeInitParameters @go(InitProvider) -} - -// VPCIpamScopeStatus defines the observed state of VPCIpamScope. -#VPCIpamScopeStatus: { - v1.#ResourceStatus - atProvider?: #VPCIpamScopeObservation @go(AtProvider) -} - -// VPCIpamScope is the Schema for the VPCIpamScopes API. Creates a scope for AWS IPAM. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCIpamScope: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCIpamScopeSpec @go(Spec) - status?: #VPCIpamScopeStatus @go(Status) -} - -// VPCIpamScopeList contains a list of VPCIpamScopes -#VPCIpamScopeList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCIpamScope] @go(Items,[]VPCIpamScope) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipv4cidrblockassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipv4cidrblockassociation_types_go_gen.cue deleted file mode 100644 index 371be49..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcipv4cidrblockassociation_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCIPv4CidrBlockAssociationInitParameters: { - // The IPv4 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using ipv4_netmask_length. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization. - ipv4IpamPoolId?: null | string @go(IPv4IpamPoolID,*string) - - // The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a ipv4_ipam_pool_id. - ipv4NetmaskLength?: null | float64 @go(IPv4NetmaskLength,*float64) -} - -#VPCIPv4CidrBlockAssociationObservation: { - // The IPv4 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using ipv4_netmask_length. - cidrBlock?: null | string @go(CidrBlock,*string) - - // The ID of the VPC CIDR association - id?: null | string @go(ID,*string) - - // The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization. - ipv4IpamPoolId?: null | string @go(IPv4IpamPoolID,*string) - - // The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a ipv4_ipam_pool_id. - ipv4NetmaskLength?: null | float64 @go(IPv4NetmaskLength,*float64) - - // The ID of the VPC to make the association with. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCIPv4CidrBlockAssociationParameters: { - // The IPv4 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using ipv4_netmask_length. - // +kubebuilder:validation:Optional - cidrBlock?: null | string @go(CidrBlock,*string) - - // The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization. - // +kubebuilder:validation:Optional - ipv4IpamPoolId?: null | string @go(IPv4IpamPoolID,*string) - - // The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a ipv4_ipam_pool_id. - // +kubebuilder:validation:Optional - ipv4NetmaskLength?: null | float64 @go(IPv4NetmaskLength,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the VPC to make the association with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// VPCIPv4CidrBlockAssociationSpec defines the desired state of VPCIPv4CidrBlockAssociation -#VPCIPv4CidrBlockAssociationSpec: { - v1.#ResourceSpec - forProvider: #VPCIPv4CidrBlockAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCIPv4CidrBlockAssociationInitParameters @go(InitProvider) -} - -// VPCIPv4CidrBlockAssociationStatus defines the observed state of VPCIPv4CidrBlockAssociation. -#VPCIPv4CidrBlockAssociationStatus: { - v1.#ResourceStatus - atProvider?: #VPCIPv4CidrBlockAssociationObservation @go(AtProvider) -} - -// VPCIPv4CidrBlockAssociation is the Schema for the VPCIPv4CidrBlockAssociations API. Associate additional IPv4 CIDR blocks with a VPC -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCIPv4CidrBlockAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCIPv4CidrBlockAssociationSpec @go(Spec) - status?: #VPCIPv4CidrBlockAssociationStatus @go(Status) -} - -// VPCIPv4CidrBlockAssociationList contains a list of VPCIPv4CidrBlockAssociations -#VPCIPv4CidrBlockAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCIPv4CidrBlockAssociation] @go(Items,[]VPCIPv4CidrBlockAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcpeeringconnection_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcpeeringconnection_types_go_gen.cue deleted file mode 100644 index d7803cb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcpeeringconnection_types_go_gen.cue +++ /dev/null @@ -1,205 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccepterInitParameters: { -} - -#AccepterObservation: { - // Allow a local linked EC2-Classic instance to communicate - // with instances in a peer VPC. This enables an outbound communication from the local ClassicLink connection - // to the remote VPC. - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Allow a local VPC to resolve public DNS hostnames to - // private IP addresses when queried from instances in the peer VPC. - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Allow a local VPC to communicate with a linked EC2-Classic - // instance in a peer VPC. This enables an outbound communication from the local VPC to the remote ClassicLink - // connection. - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -#AccepterParameters: { -} - -#RequesterInitParameters: { -} - -#RequesterObservation: { - // Allow a local linked EC2-Classic instance to communicate - // with instances in a peer VPC. This enables an outbound communication from the local ClassicLink connection - // to the remote VPC. - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Allow a local VPC to resolve public DNS hostnames to - // private IP addresses when queried from instances in the peer VPC. - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Allow a local VPC to communicate with a linked EC2-Classic - // instance in a peer VPC. This enables an outbound communication from the local VPC to the remote ClassicLink - // connection. - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -#RequesterParameters: { -} - -#VPCPeeringConnectionInitParameters_2: { - // Accept the peering (both VPCs need to be in the same AWS account and region). - autoAccept?: null | bool @go(AutoAccept,*bool) - - // The AWS account ID of the owner of the peer VPC. - // Defaults to the account ID the AWS provider is currently connected to. - peerOwnerId?: null | string @go(PeerOwnerID,*string) - - // The region of the accepter VPC of the VPC Peering Connection. auto_accept must be false, - // and use the aws_vpc_peering_connection_accepter to manage the accepter side. - peerRegion?: null | string @go(PeerRegion,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VPCPeeringConnectionObservation_2: { - // The status of the VPC Peering Connection request. - acceptStatus?: null | string @go(AcceptStatus,*string) - - // An optional configuration block that allows for VPC Peering Connection options to be set for the VPC that accepts - // the peering connection (a maximum of one). - accepter?: [...#AccepterObservation] @go(Accepter,[]AccepterObservation) - - // Accept the peering (both VPCs need to be in the same AWS account and region). - autoAccept?: null | bool @go(AutoAccept,*bool) - - // The ID of the VPC Peering Connection. - id?: null | string @go(ID,*string) - - // The AWS account ID of the owner of the peer VPC. - // Defaults to the account ID the AWS provider is currently connected to. - peerOwnerId?: null | string @go(PeerOwnerID,*string) - - // The region of the accepter VPC of the VPC Peering Connection. auto_accept must be false, - // and use the aws_vpc_peering_connection_accepter to manage the accepter side. - peerRegion?: null | string @go(PeerRegion,*string) - - // The ID of the VPC with which you are creating the VPC Peering Connection. - peerVpcId?: null | string @go(PeerVPCID,*string) - - // A optional configuration block that allows for VPC Peering Connection options to be set for the VPC that requests - // the peering connection (a maximum of one). - requester?: [...#RequesterObservation] @go(Requester,[]RequesterObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the requester VPC. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCPeeringConnectionParameters_2: { - // Accept the peering (both VPCs need to be in the same AWS account and region). - // +kubebuilder:validation:Optional - autoAccept?: null | bool @go(AutoAccept,*bool) - - // The AWS account ID of the owner of the peer VPC. - // Defaults to the account ID the AWS provider is currently connected to. - // +kubebuilder:validation:Optional - peerOwnerId?: null | string @go(PeerOwnerID,*string) - - // The region of the accepter VPC of the VPC Peering Connection. auto_accept must be false, - // and use the aws_vpc_peering_connection_accepter to manage the accepter side. - // +kubebuilder:validation:Optional - peerRegion?: null | string @go(PeerRegion,*string) - - // The ID of the VPC with which you are creating the VPC Peering Connection. - // +crossplane:generate:reference:type=VPC - // +kubebuilder:validation:Optional - peerVpcId?: null | string @go(PeerVPCID,*string) - - // Reference to a VPC to populate peerVpcId. - // +kubebuilder:validation:Optional - peerVpcIdRef?: null | v1.#Reference @go(PeerVPCIDRef,*v1.Reference) - - // Selector for a VPC to populate peerVpcId. - // +kubebuilder:validation:Optional - peerVpcIdSelector?: null | v1.#Selector @go(PeerVPCIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the requester VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// VPCPeeringConnectionSpec defines the desired state of VPCPeeringConnection -#VPCPeeringConnectionSpec: { - v1.#ResourceSpec - forProvider: #VPCPeeringConnectionParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCPeeringConnectionInitParameters_2 @go(InitProvider) -} - -// VPCPeeringConnectionStatus defines the observed state of VPCPeeringConnection. -#VPCPeeringConnectionStatus: { - v1.#ResourceStatus - atProvider?: #VPCPeeringConnectionObservation_2 @go(AtProvider) -} - -// VPCPeeringConnection is the Schema for the VPCPeeringConnections API. Provides a resource to manage a VPC peering connection. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCPeeringConnection: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCPeeringConnectionSpec @go(Spec) - status?: #VPCPeeringConnectionStatus @go(Status) -} - -// VPCPeeringConnectionList contains a list of VPCPeeringConnections -#VPCPeeringConnectionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCPeeringConnection] @go(Items,[]VPCPeeringConnection) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcpeeringconnectionaccepter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcpeeringconnectionaccepter_types_go_gen.cue deleted file mode 100644 index 1672909..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcpeeringconnectionaccepter_types_go_gen.cue +++ /dev/null @@ -1,240 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCPeeringConnectionAccepterAccepterInitParameters: { - // Indicates whether a local ClassicLink connection can communicate - // with the peer VPC over the VPC Peering Connection. - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Indicates whether a local VPC can resolve public DNS hostnames to - // private IP addresses when queried from instances in a peer VPC. - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Indicates whether a local VPC can communicate with a ClassicLink - // connection in the peer VPC over the VPC Peering Connection. - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -#VPCPeeringConnectionAccepterAccepterObservation: { - // Indicates whether a local ClassicLink connection can communicate - // with the peer VPC over the VPC Peering Connection. - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Indicates whether a local VPC can resolve public DNS hostnames to - // private IP addresses when queried from instances in a peer VPC. - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Indicates whether a local VPC can communicate with a ClassicLink - // connection in the peer VPC over the VPC Peering Connection. - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -#VPCPeeringConnectionAccepterAccepterParameters: { - // Indicates whether a local ClassicLink connection can communicate - // with the peer VPC over the VPC Peering Connection. - // +kubebuilder:validation:Optional - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Indicates whether a local VPC can resolve public DNS hostnames to - // private IP addresses when queried from instances in a peer VPC. - // +kubebuilder:validation:Optional - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Indicates whether a local VPC can communicate with a ClassicLink - // connection in the peer VPC over the VPC Peering Connection. - // +kubebuilder:validation:Optional - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -#VPCPeeringConnectionAccepterInitParameters: { - // A configuration block that describes [VPC Peering Connection] - // (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC. - accepter?: [...#VPCPeeringConnectionAccepterAccepterInitParameters] @go(Accepter,[]VPCPeeringConnectionAccepterAccepterInitParameters) - - // Whether or not to accept the peering request. Defaults to false. - autoAccept?: null | bool @go(AutoAccept,*bool) - - // A configuration block that describes [VPC Peering Connection] - // (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC. - requester?: [...#VPCPeeringConnectionAccepterRequesterInitParameters] @go(Requester,[]VPCPeeringConnectionAccepterRequesterInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VPCPeeringConnectionAccepterObservation: { - // The status of the VPC Peering Connection request. - acceptStatus?: null | string @go(AcceptStatus,*string) - - // A configuration block that describes [VPC Peering Connection] - // (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC. - accepter?: [...#VPCPeeringConnectionAccepterAccepterObservation] @go(Accepter,[]VPCPeeringConnectionAccepterAccepterObservation) - - // Whether or not to accept the peering request. Defaults to false. - autoAccept?: null | bool @go(AutoAccept,*bool) - - // The ID of the VPC Peering Connection. - id?: null | string @go(ID,*string) - - // The AWS account ID of the owner of the requester VPC. - peerOwnerId?: null | string @go(PeerOwnerID,*string) - - // The region of the accepter VPC. - peerRegion?: null | string @go(PeerRegion,*string) - - // The ID of the requester VPC. - peerVpcId?: null | string @go(PeerVPCID,*string) - - // A configuration block that describes [VPC Peering Connection] - // (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC. - requester?: [...#VPCPeeringConnectionAccepterRequesterObservation] @go(Requester,[]VPCPeeringConnectionAccepterRequesterObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the accepter VPC. - vpcId?: null | string @go(VPCID,*string) - - // The VPC Peering Connection ID to manage. - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) -} - -#VPCPeeringConnectionAccepterParameters: { - // A configuration block that describes [VPC Peering Connection] - // (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC. - // +kubebuilder:validation:Optional - accepter?: [...#VPCPeeringConnectionAccepterAccepterParameters] @go(Accepter,[]VPCPeeringConnectionAccepterAccepterParameters) - - // Whether or not to accept the peering request. Defaults to false. - // +kubebuilder:validation:Optional - autoAccept?: null | bool @go(AutoAccept,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A configuration block that describes [VPC Peering Connection] - // (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC. - // +kubebuilder:validation:Optional - requester?: [...#VPCPeeringConnectionAccepterRequesterParameters] @go(Requester,[]VPCPeeringConnectionAccepterRequesterParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VPC Peering Connection ID to manage. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCPeeringConnection - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) - - // Reference to a VPCPeeringConnection in ec2 to populate vpcPeeringConnectionId. - // +kubebuilder:validation:Optional - vpcPeeringConnectionIdRef?: null | v1.#Reference @go(VPCPeeringConnectionIDRef,*v1.Reference) - - // Selector for a VPCPeeringConnection in ec2 to populate vpcPeeringConnectionId. - // +kubebuilder:validation:Optional - vpcPeeringConnectionIdSelector?: null | v1.#Selector @go(VPCPeeringConnectionIDSelector,*v1.Selector) -} - -#VPCPeeringConnectionAccepterRequesterInitParameters: { - // Indicates whether a local ClassicLink connection can communicate - // with the peer VPC over the VPC Peering Connection. - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Indicates whether a local VPC can resolve public DNS hostnames to - // private IP addresses when queried from instances in a peer VPC. - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Indicates whether a local VPC can communicate with a ClassicLink - // connection in the peer VPC over the VPC Peering Connection. - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -#VPCPeeringConnectionAccepterRequesterObservation: { - // Indicates whether a local ClassicLink connection can communicate - // with the peer VPC over the VPC Peering Connection. - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Indicates whether a local VPC can resolve public DNS hostnames to - // private IP addresses when queried from instances in a peer VPC. - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Indicates whether a local VPC can communicate with a ClassicLink - // connection in the peer VPC over the VPC Peering Connection. - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -#VPCPeeringConnectionAccepterRequesterParameters: { - // Indicates whether a local ClassicLink connection can communicate - // with the peer VPC over the VPC Peering Connection. - // +kubebuilder:validation:Optional - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Indicates whether a local VPC can resolve public DNS hostnames to - // private IP addresses when queried from instances in a peer VPC. - // +kubebuilder:validation:Optional - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Indicates whether a local VPC can communicate with a ClassicLink - // connection in the peer VPC over the VPC Peering Connection. - // +kubebuilder:validation:Optional - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -// VPCPeeringConnectionAccepterSpec defines the desired state of VPCPeeringConnectionAccepter -#VPCPeeringConnectionAccepterSpec: { - v1.#ResourceSpec - forProvider: #VPCPeeringConnectionAccepterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCPeeringConnectionAccepterInitParameters @go(InitProvider) -} - -// VPCPeeringConnectionAccepterStatus defines the observed state of VPCPeeringConnectionAccepter. -#VPCPeeringConnectionAccepterStatus: { - v1.#ResourceStatus - atProvider?: #VPCPeeringConnectionAccepterObservation @go(AtProvider) -} - -// VPCPeeringConnectionAccepter is the Schema for the VPCPeeringConnectionAccepters API. Manage the accepter's side of a VPC Peering Connection. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCPeeringConnectionAccepter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCPeeringConnectionAccepterSpec @go(Spec) - status?: #VPCPeeringConnectionAccepterStatus @go(Status) -} - -// VPCPeeringConnectionAccepterList contains a list of VPCPeeringConnectionAccepters -#VPCPeeringConnectionAccepterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCPeeringConnectionAccepter] @go(Items,[]VPCPeeringConnectionAccepter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcpeeringconnectionoptions_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcpeeringconnectionoptions_types_go_gen.cue deleted file mode 100644 index ce92523..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpcpeeringconnectionoptions_types_go_gen.cue +++ /dev/null @@ -1,220 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCPeeringConnectionOptionsAccepterInitParameters: { - // Allow a local linked EC2-Classic instance to communicate - // with instances in a peer VPC. This enables an outbound communication from the local ClassicLink connection - // to the remote VPC. This option is not supported for inter-region VPC peering. - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Allow a local VPC to resolve public DNS hostnames to - // private IP addresses when queried from instances in the peer VPC. - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Allow a local VPC to communicate with a linked EC2-Classic - // instance in a peer VPC. This enables an outbound communication from the local VPC to the remote ClassicLink - // connection. This option is not supported for inter-region VPC peering. - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -#VPCPeeringConnectionOptionsAccepterObservation: { - // Allow a local linked EC2-Classic instance to communicate - // with instances in a peer VPC. This enables an outbound communication from the local ClassicLink connection - // to the remote VPC. This option is not supported for inter-region VPC peering. - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Allow a local VPC to resolve public DNS hostnames to - // private IP addresses when queried from instances in the peer VPC. - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Allow a local VPC to communicate with a linked EC2-Classic - // instance in a peer VPC. This enables an outbound communication from the local VPC to the remote ClassicLink - // connection. This option is not supported for inter-region VPC peering. - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -#VPCPeeringConnectionOptionsAccepterParameters: { - // Allow a local linked EC2-Classic instance to communicate - // with instances in a peer VPC. This enables an outbound communication from the local ClassicLink connection - // to the remote VPC. This option is not supported for inter-region VPC peering. - // +kubebuilder:validation:Optional - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Allow a local VPC to resolve public DNS hostnames to - // private IP addresses when queried from instances in the peer VPC. - // +kubebuilder:validation:Optional - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Allow a local VPC to communicate with a linked EC2-Classic - // instance in a peer VPC. This enables an outbound communication from the local VPC to the remote ClassicLink - // connection. This option is not supported for inter-region VPC peering. - // +kubebuilder:validation:Optional - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -#VPCPeeringConnectionOptionsInitParameters: { - // An optional configuration block that allows for [VPC Peering Connection] - // (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that accepts - // the peering connection (a maximum of one). - accepter?: [...#VPCPeeringConnectionOptionsAccepterInitParameters] @go(Accepter,[]VPCPeeringConnectionOptionsAccepterInitParameters) - - // A optional configuration block that allows for [VPC Peering Connection] - // (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that requests - // the peering connection (a maximum of one). - requester?: [...#VPCPeeringConnectionOptionsRequesterInitParameters] @go(Requester,[]VPCPeeringConnectionOptionsRequesterInitParameters) -} - -#VPCPeeringConnectionOptionsObservation: { - // An optional configuration block that allows for [VPC Peering Connection] - // (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that accepts - // the peering connection (a maximum of one). - accepter?: [...#VPCPeeringConnectionOptionsAccepterObservation] @go(Accepter,[]VPCPeeringConnectionOptionsAccepterObservation) - - // The ID of the VPC Peering Connection Options. - id?: null | string @go(ID,*string) - - // A optional configuration block that allows for [VPC Peering Connection] - // (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that requests - // the peering connection (a maximum of one). - requester?: [...#VPCPeeringConnectionOptionsRequesterObservation] @go(Requester,[]VPCPeeringConnectionOptionsRequesterObservation) - - // The ID of the requester VPC peering connection. - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) -} - -#VPCPeeringConnectionOptionsParameters: { - // An optional configuration block that allows for [VPC Peering Connection] - // (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that accepts - // the peering connection (a maximum of one). - // +kubebuilder:validation:Optional - accepter?: [...#VPCPeeringConnectionOptionsAccepterParameters] @go(Accepter,[]VPCPeeringConnectionOptionsAccepterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A optional configuration block that allows for [VPC Peering Connection] - // (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options to be set for the VPC that requests - // the peering connection (a maximum of one). - // +kubebuilder:validation:Optional - requester?: [...#VPCPeeringConnectionOptionsRequesterParameters] @go(Requester,[]VPCPeeringConnectionOptionsRequesterParameters) - - // The ID of the requester VPC peering connection. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCPeeringConnection - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcPeeringConnectionId?: null | string @go(VPCPeeringConnectionID,*string) - - // Reference to a VPCPeeringConnection in ec2 to populate vpcPeeringConnectionId. - // +kubebuilder:validation:Optional - vpcPeeringConnectionIdRef?: null | v1.#Reference @go(VPCPeeringConnectionIDRef,*v1.Reference) - - // Selector for a VPCPeeringConnection in ec2 to populate vpcPeeringConnectionId. - // +kubebuilder:validation:Optional - vpcPeeringConnectionIdSelector?: null | v1.#Selector @go(VPCPeeringConnectionIDSelector,*v1.Selector) -} - -#VPCPeeringConnectionOptionsRequesterInitParameters: { - // Allow a local linked EC2-Classic instance to communicate - // with instances in a peer VPC. This enables an outbound communication from the local ClassicLink connection - // to the remote VPC. This option is not supported for inter-region VPC peering. - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Allow a local VPC to resolve public DNS hostnames to - // private IP addresses when queried from instances in the peer VPC. - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Allow a local VPC to communicate with a linked EC2-Classic - // instance in a peer VPC. This enables an outbound communication from the local VPC to the remote ClassicLink - // connection. This option is not supported for inter-region VPC peering. - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -#VPCPeeringConnectionOptionsRequesterObservation: { - // Allow a local linked EC2-Classic instance to communicate - // with instances in a peer VPC. This enables an outbound communication from the local ClassicLink connection - // to the remote VPC. This option is not supported for inter-region VPC peering. - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Allow a local VPC to resolve public DNS hostnames to - // private IP addresses when queried from instances in the peer VPC. - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Allow a local VPC to communicate with a linked EC2-Classic - // instance in a peer VPC. This enables an outbound communication from the local VPC to the remote ClassicLink - // connection. This option is not supported for inter-region VPC peering. - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -#VPCPeeringConnectionOptionsRequesterParameters: { - // Allow a local linked EC2-Classic instance to communicate - // with instances in a peer VPC. This enables an outbound communication from the local ClassicLink connection - // to the remote VPC. This option is not supported for inter-region VPC peering. - // +kubebuilder:validation:Optional - allowClassicLinkToRemoteVpc?: null | bool @go(AllowClassicLinkToRemoteVPC,*bool) - - // Allow a local VPC to resolve public DNS hostnames to - // private IP addresses when queried from instances in the peer VPC. - // +kubebuilder:validation:Optional - allowRemoteVpcDnsResolution?: null | bool @go(AllowRemoteVPCDNSResolution,*bool) - - // Allow a local VPC to communicate with a linked EC2-Classic - // instance in a peer VPC. This enables an outbound communication from the local VPC to the remote ClassicLink - // connection. This option is not supported for inter-region VPC peering. - // +kubebuilder:validation:Optional - allowVpcToRemoteClassicLink?: null | bool @go(AllowVPCToRemoteClassicLink,*bool) -} - -// VPCPeeringConnectionOptionsSpec defines the desired state of VPCPeeringConnectionOptions -#VPCPeeringConnectionOptionsSpec: { - v1.#ResourceSpec - forProvider: #VPCPeeringConnectionOptionsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCPeeringConnectionOptionsInitParameters @go(InitProvider) -} - -// VPCPeeringConnectionOptionsStatus defines the observed state of VPCPeeringConnectionOptions. -#VPCPeeringConnectionOptionsStatus: { - v1.#ResourceStatus - atProvider?: #VPCPeeringConnectionOptionsObservation @go(AtProvider) -} - -// VPCPeeringConnectionOptions is the Schema for the VPCPeeringConnectionOptionss API. Provides a resource to manage VPC peering connection options. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCPeeringConnectionOptions: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCPeeringConnectionOptionsSpec @go(Spec) - status?: #VPCPeeringConnectionOptionsStatus @go(Status) -} - -// VPCPeeringConnectionOptionsList contains a list of VPCPeeringConnectionOptionss -#VPCPeeringConnectionOptionsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCPeeringConnectionOptions] @go(Items,[]VPCPeeringConnectionOptions) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpnconnection_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpnconnection_types_go_gen.cue deleted file mode 100644 index 420c3ff..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpnconnection_types_go_gen.cue +++ /dev/null @@ -1,822 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CloudwatchLogOptionsInitParameters: { - // Enable or disable VPN tunnel logging feature. The default is false. - logEnabled?: null | bool @go(LogEnabled,*bool) - - // The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to. - logGroupArn?: null | string @go(LogGroupArn,*string) - - // Set log format. Default format is json. Possible values are: json and text. The default is json. - logOutputFormat?: null | string @go(LogOutputFormat,*string) -} - -#CloudwatchLogOptionsObservation: { - // Enable or disable VPN tunnel logging feature. The default is false. - logEnabled?: null | bool @go(LogEnabled,*bool) - - // The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to. - logGroupArn?: null | string @go(LogGroupArn,*string) - - // Set log format. Default format is json. Possible values are: json and text. The default is json. - logOutputFormat?: null | string @go(LogOutputFormat,*string) -} - -#CloudwatchLogOptionsParameters: { - // Enable or disable VPN tunnel logging feature. The default is false. - // +kubebuilder:validation:Optional - logEnabled?: null | bool @go(LogEnabled,*bool) - - // The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to. - // +kubebuilder:validation:Optional - logGroupArn?: null | string @go(LogGroupArn,*string) - - // Set log format. Default format is json. Possible values are: json and text. The default is json. - // +kubebuilder:validation:Optional - logOutputFormat?: null | string @go(LogOutputFormat,*string) -} - -#RoutesInitParameters: { -} - -#RoutesObservation: { - // The CIDR block associated with the local subnet of the customer data center. - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) - - // Indicates how the routes were provided. - source?: null | string @go(Source,*string) - - // The current state of the static route. - state?: null | string @go(State,*string) -} - -#RoutesParameters: { -} - -#Tunnel1LogOptionsInitParameters: { - // Options for sending VPN tunnel logs to CloudWatch. See CloudWatch Log Options below for more details. - cloudwatchLogOptions?: [...#CloudwatchLogOptionsInitParameters] @go(CloudwatchLogOptions,[]CloudwatchLogOptionsInitParameters) -} - -#Tunnel1LogOptionsObservation: { - // Options for sending VPN tunnel logs to CloudWatch. See CloudWatch Log Options below for more details. - cloudwatchLogOptions?: [...#CloudwatchLogOptionsObservation] @go(CloudwatchLogOptions,[]CloudwatchLogOptionsObservation) -} - -#Tunnel1LogOptionsParameters: { - // Options for sending VPN tunnel logs to CloudWatch. See CloudWatch Log Options below for more details. - // +kubebuilder:validation:Optional - cloudwatchLogOptions?: [...#CloudwatchLogOptionsParameters] @go(CloudwatchLogOptions,[]CloudwatchLogOptionsParameters) -} - -#Tunnel2LogOptionsCloudwatchLogOptionsInitParameters: { - // Enable or disable VPN tunnel logging feature. The default is false. - logEnabled?: null | bool @go(LogEnabled,*bool) - - // The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to. - logGroupArn?: null | string @go(LogGroupArn,*string) - - // Set log format. Default format is json. Possible values are: json and text. The default is json. - logOutputFormat?: null | string @go(LogOutputFormat,*string) -} - -#Tunnel2LogOptionsCloudwatchLogOptionsObservation: { - // Enable or disable VPN tunnel logging feature. The default is false. - logEnabled?: null | bool @go(LogEnabled,*bool) - - // The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to. - logGroupArn?: null | string @go(LogGroupArn,*string) - - // Set log format. Default format is json. Possible values are: json and text. The default is json. - logOutputFormat?: null | string @go(LogOutputFormat,*string) -} - -#Tunnel2LogOptionsCloudwatchLogOptionsParameters: { - // Enable or disable VPN tunnel logging feature. The default is false. - // +kubebuilder:validation:Optional - logEnabled?: null | bool @go(LogEnabled,*bool) - - // The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to. - // +kubebuilder:validation:Optional - logGroupArn?: null | string @go(LogGroupArn,*string) - - // Set log format. Default format is json. Possible values are: json and text. The default is json. - // +kubebuilder:validation:Optional - logOutputFormat?: null | string @go(LogOutputFormat,*string) -} - -#Tunnel2LogOptionsInitParameters: { - // Options for sending VPN tunnel logs to CloudWatch. See CloudWatch Log Options below for more details. - cloudwatchLogOptions?: [...#Tunnel2LogOptionsCloudwatchLogOptionsInitParameters] @go(CloudwatchLogOptions,[]Tunnel2LogOptionsCloudwatchLogOptionsInitParameters) -} - -#Tunnel2LogOptionsObservation: { - // Options for sending VPN tunnel logs to CloudWatch. See CloudWatch Log Options below for more details. - cloudwatchLogOptions?: [...#Tunnel2LogOptionsCloudwatchLogOptionsObservation] @go(CloudwatchLogOptions,[]Tunnel2LogOptionsCloudwatchLogOptionsObservation) -} - -#Tunnel2LogOptionsParameters: { - // Options for sending VPN tunnel logs to CloudWatch. See CloudWatch Log Options below for more details. - // +kubebuilder:validation:Optional - cloudwatchLogOptions?: [...#Tunnel2LogOptionsCloudwatchLogOptionsParameters] @go(CloudwatchLogOptions,[]Tunnel2LogOptionsCloudwatchLogOptionsParameters) -} - -#VPNConnectionInitParameters_2: { - // Indicate whether to enable acceleration for the VPN connection. Supports only EC2 Transit Gateway. - enableAcceleration?: null | bool @go(EnableAcceleration,*bool) - - // The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. - localIpv4NetworkCidr?: null | string @go(LocalIPv4NetworkCidr,*string) - - // The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. - localIpv6NetworkCidr?: null | string @go(LocalIPv6NetworkCidr,*string) - - // Indicates if a Public S2S VPN or Private S2S VPN over AWS Direct Connect. Valid values are PublicIpv4 | PrivateIpv4 - outsideIpAddressType?: null | string @go(OutsideIPAddressType,*string) - - // The IPv4 CIDR on the AWS side of the VPN connection. - remoteIpv4NetworkCidr?: null | string @go(RemoteIPv4NetworkCidr,*string) - - // The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. - remoteIpv6NetworkCidr?: null | string @go(RemoteIPv6NetworkCidr,*string) - - // Whether the VPN connection uses static routes exclusively. Static routes must be used for devices that don't support BGP. - staticRoutesOnly?: null | bool @go(StaticRoutesOnly,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // . The attachment ID of the Transit Gateway attachment to Direct Connect Gateway. The ID is obtained through a data source only. - transportTransitGatewayAttachmentId?: null | string @go(TransportTransitGatewayAttachmentID,*string) - - // The action to take after DPD timeout occurs for the first VPN tunnel. Specify restart to restart the IKE initiation. Specify clear to end the IKE session. Valid values are clear | none | restart. - tunnel1DpdTimeoutAction?: null | string @go(Tunnel1DpdTimeoutAction,*string) - - // The number of seconds after which a DPD timeout occurs for the first VPN tunnel. Valid value is equal or higher than 30. - tunnel1DpdTimeoutSeconds?: null | float64 @go(Tunnel1DpdTimeoutSeconds,*float64) - - // Turn on or off tunnel endpoint lifecycle control feature for the first VPN tunnel. Valid values are true | false. - tunnel1EnableTunnelLifecycleControl?: null | bool @go(Tunnel1EnableTunnelLifecycleControl,*bool) - - // The IKE versions that are permitted for the first VPN tunnel. Valid values are ikev1 | ikev2. - tunnel1IkeVersions?: [...null | string] @go(Tunnel1IkeVersions,[]*string) - - // The CIDR block of the inside IP addresses for the first VPN tunnel. Valid value is a size /30 CIDR block from the 169.254.0.0/16 range. - tunnel1InsideCidr?: null | string @go(Tunnel1InsideCidr,*string) - - // The range of inside IPv6 addresses for the first VPN tunnel. Supports only EC2 Transit Gateway. Valid value is a size /126 CIDR block from the local fd00::/8 range. - tunnel1InsideIpv6Cidr?: null | string @go(Tunnel1InsideIPv6Cidr,*string) - - // Options for logging VPN tunnel activity. See Log Options below for more details. - tunnel1LogOptions?: [...#Tunnel1LogOptionsInitParameters] @go(Tunnel1LogOptions,[]Tunnel1LogOptionsInitParameters) - - // List of one or more Diffie-Hellman group numbers that are permitted for the first VPN tunnel for phase 1 IKE negotiations. Valid values are 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. - tunnel1Phase1DhGroupNumbers?: [...null | float64] @go(Tunnel1Phase1DhGroupNumbers,[]*float64) - - // List of one or more encryption algorithms that are permitted for the first VPN tunnel for phase 1 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. - tunnel1Phase1EncryptionAlgorithms?: [...null | string] @go(Tunnel1Phase1EncryptionAlgorithms,[]*string) - - // One or more integrity algorithms that are permitted for the first VPN tunnel for phase 1 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. - tunnel1Phase1IntegrityAlgorithms?: [...null | string] @go(Tunnel1Phase1IntegrityAlgorithms,[]*string) - - // The lifetime for phase 1 of the IKE negotiation for the first VPN tunnel, in seconds. Valid value is between 900 and 28800. - tunnel1Phase1LifetimeSeconds?: null | float64 @go(Tunnel1Phase1LifetimeSeconds,*float64) - - // List of one or more Diffie-Hellman group numbers that are permitted for the first VPN tunnel for phase 2 IKE negotiations. Valid values are 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. - tunnel1Phase2DhGroupNumbers?: [...null | float64] @go(Tunnel1Phase2DhGroupNumbers,[]*float64) - - // List of one or more encryption algorithms that are permitted for the first VPN tunnel for phase 2 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. - tunnel1Phase2EncryptionAlgorithms?: [...null | string] @go(Tunnel1Phase2EncryptionAlgorithms,[]*string) - - // List of one or more integrity algorithms that are permitted for the first VPN tunnel for phase 2 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. - tunnel1Phase2IntegrityAlgorithms?: [...null | string] @go(Tunnel1Phase2IntegrityAlgorithms,[]*string) - - // The lifetime for phase 2 of the IKE negotiation for the first VPN tunnel, in seconds. Valid value is between 900 and 3600. - tunnel1Phase2LifetimeSeconds?: null | float64 @go(Tunnel1Phase2LifetimeSeconds,*float64) - - // The percentage of the rekey window for the first VPN tunnel (determined by tunnel1_rekey_margin_time_seconds) during which the rekey time is randomly selected. Valid value is between 0 and 100. - tunnel1RekeyFuzzPercentage?: null | float64 @go(Tunnel1RekeyFuzzPercentage,*float64) - - // The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the first VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for tunnel1_rekey_fuzz_percentage. Valid value is between 60 and half of tunnel1_phase2_lifetime_seconds. - tunnel1RekeyMarginTimeSeconds?: null | float64 @go(Tunnel1RekeyMarginTimeSeconds,*float64) - - // The number of packets in an IKE replay window for the first VPN tunnel. Valid value is between 64 and 2048. - tunnel1ReplayWindowSize?: null | float64 @go(Tunnel1ReplayWindowSize,*float64) - - // The action to take when the establishing the tunnel for the first VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify start for AWS to initiate the IKE negotiation. Valid values are add | start. - tunnel1StartupAction?: null | string @go(Tunnel1StartupAction,*string) - - // The action to take after DPD timeout occurs for the second VPN tunnel. Specify restart to restart the IKE initiation. Specify clear to end the IKE session. Valid values are clear | none | restart. - tunnel2DpdTimeoutAction?: null | string @go(Tunnel2DpdTimeoutAction,*string) - - // The number of seconds after which a DPD timeout occurs for the second VPN tunnel. Valid value is equal or higher than 30. - tunnel2DpdTimeoutSeconds?: null | float64 @go(Tunnel2DpdTimeoutSeconds,*float64) - - // Turn on or off tunnel endpoint lifecycle control feature for the second VPN tunnel. Valid values are true | false. - tunnel2EnableTunnelLifecycleControl?: null | bool @go(Tunnel2EnableTunnelLifecycleControl,*bool) - - // The IKE versions that are permitted for the second VPN tunnel. Valid values are ikev1 | ikev2. - tunnel2IkeVersions?: [...null | string] @go(Tunnel2IkeVersions,[]*string) - - // The CIDR block of the inside IP addresses for the second VPN tunnel. Valid value is a size /30 CIDR block from the 169.254.0.0/16 range. - tunnel2InsideCidr?: null | string @go(Tunnel2InsideCidr,*string) - - // The range of inside IPv6 addresses for the second VPN tunnel. Supports only EC2 Transit Gateway. Valid value is a size /126 CIDR block from the local fd00::/8 range. - tunnel2InsideIpv6Cidr?: null | string @go(Tunnel2InsideIPv6Cidr,*string) - - // Options for logging VPN tunnel activity. See Log Options below for more details. - tunnel2LogOptions?: [...#Tunnel2LogOptionsInitParameters] @go(Tunnel2LogOptions,[]Tunnel2LogOptionsInitParameters) - - // List of one or more Diffie-Hellman group numbers that are permitted for the second VPN tunnel for phase 1 IKE negotiations. Valid values are 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. - tunnel2Phase1DhGroupNumbers?: [...null | float64] @go(Tunnel2Phase1DhGroupNumbers,[]*float64) - - // List of one or more encryption algorithms that are permitted for the second VPN tunnel for phase 1 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. - tunnel2Phase1EncryptionAlgorithms?: [...null | string] @go(Tunnel2Phase1EncryptionAlgorithms,[]*string) - - // One or more integrity algorithms that are permitted for the second VPN tunnel for phase 1 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. - tunnel2Phase1IntegrityAlgorithms?: [...null | string] @go(Tunnel2Phase1IntegrityAlgorithms,[]*string) - - // The lifetime for phase 1 of the IKE negotiation for the second VPN tunnel, in seconds. Valid value is between 900 and 28800. - tunnel2Phase1LifetimeSeconds?: null | float64 @go(Tunnel2Phase1LifetimeSeconds,*float64) - - // List of one or more Diffie-Hellman group numbers that are permitted for the second VPN tunnel for phase 2 IKE negotiations. Valid values are 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. - tunnel2Phase2DhGroupNumbers?: [...null | float64] @go(Tunnel2Phase2DhGroupNumbers,[]*float64) - - // List of one or more encryption algorithms that are permitted for the second VPN tunnel for phase 2 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. - tunnel2Phase2EncryptionAlgorithms?: [...null | string] @go(Tunnel2Phase2EncryptionAlgorithms,[]*string) - - // List of one or more integrity algorithms that are permitted for the second VPN tunnel for phase 2 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. - tunnel2Phase2IntegrityAlgorithms?: [...null | string] @go(Tunnel2Phase2IntegrityAlgorithms,[]*string) - - // The lifetime for phase 2 of the IKE negotiation for the second VPN tunnel, in seconds. Valid value is between 900 and 3600. - tunnel2Phase2LifetimeSeconds?: null | float64 @go(Tunnel2Phase2LifetimeSeconds,*float64) - - // The percentage of the rekey window for the second VPN tunnel (determined by tunnel2_rekey_margin_time_seconds) during which the rekey time is randomly selected. Valid value is between 0 and 100. - tunnel2RekeyFuzzPercentage?: null | float64 @go(Tunnel2RekeyFuzzPercentage,*float64) - - // The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the second VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for tunnel2_rekey_fuzz_percentage. Valid value is between 60 and half of tunnel2_phase2_lifetime_seconds. - tunnel2RekeyMarginTimeSeconds?: null | float64 @go(Tunnel2RekeyMarginTimeSeconds,*float64) - - // The number of packets in an IKE replay window for the second VPN tunnel. Valid value is between 64 and 2048. - tunnel2ReplayWindowSize?: null | float64 @go(Tunnel2ReplayWindowSize,*float64) - - // The action to take when the establishing the tunnel for the second VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify start for AWS to initiate the IKE negotiation. Valid values are add | start. - tunnel2StartupAction?: null | string @go(Tunnel2StartupAction,*string) - - // Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. Valid values are ipv4 | ipv6. ipv6 Supports only EC2 Transit Gateway. - tunnelInsideIpVersion?: null | string @go(TunnelInsideIPVersion,*string) -} - -#VPNConnectionObservation_2: { - // Amazon Resource Name (ARN) of the VPN Connection. - arn?: null | string @go(Arn,*string) - - // The ARN of the core network. - coreNetworkArn?: null | string @go(CoreNetworkArn,*string) - - // The ARN of the core network attachment. - coreNetworkAttachmentArn?: null | string @go(CoreNetworkAttachmentArn,*string) - - // The ID of the customer gateway. - customerGatewayId?: null | string @go(CustomerGatewayID,*string) - - // Indicate whether to enable acceleration for the VPN connection. Supports only EC2 Transit Gateway. - enableAcceleration?: null | bool @go(EnableAcceleration,*bool) - - // The amazon-assigned ID of the VPN connection. - id?: null | string @go(ID,*string) - - // The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. - localIpv4NetworkCidr?: null | string @go(LocalIPv4NetworkCidr,*string) - - // The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. - localIpv6NetworkCidr?: null | string @go(LocalIPv6NetworkCidr,*string) - - // Indicates if a Public S2S VPN or Private S2S VPN over AWS Direct Connect. Valid values are PublicIpv4 | PrivateIpv4 - outsideIpAddressType?: null | string @go(OutsideIPAddressType,*string) - - // The IPv4 CIDR on the AWS side of the VPN connection. - remoteIpv4NetworkCidr?: null | string @go(RemoteIPv4NetworkCidr,*string) - - // The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. - remoteIpv6NetworkCidr?: null | string @go(RemoteIPv6NetworkCidr,*string) - - // The static routes associated with the VPN connection. Detailed below. - routes?: [...#RoutesObservation] @go(Routes,[]RoutesObservation) - - // Whether the VPN connection uses static routes exclusively. Static routes must be used for devices that don't support BGP. - staticRoutesOnly?: null | bool @go(StaticRoutesOnly,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // When associated with an EC2 Transit Gateway (transit_gateway_id argument), the attachment ID. See also the aws_ec2_tag resource for tagging the EC2 Transit Gateway VPN Attachment. - transitGatewayAttachmentId?: null | string @go(TransitGatewayAttachmentID,*string) - - // The ID of the EC2 Transit Gateway. - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // . The attachment ID of the Transit Gateway attachment to Direct Connect Gateway. The ID is obtained through a data source only. - transportTransitGatewayAttachmentId?: null | string @go(TransportTransitGatewayAttachmentID,*string) - - // The public IP address of the first VPN tunnel. - tunnel1Address?: null | string @go(Tunnel1Address,*string) - - // The bgp asn number of the first VPN tunnel. - tunnel1BgpAsn?: null | string @go(Tunnel1BGPAsn,*string) - - // The bgp holdtime of the first VPN tunnel. - tunnel1BgpHoldtime?: null | float64 @go(Tunnel1BGPHoldtime,*float64) - - // The RFC 6890 link-local address of the first VPN tunnel (Customer Gateway Side). - tunnel1CgwInsideAddress?: null | string @go(Tunnel1CgwInsideAddress,*string) - - // The action to take after DPD timeout occurs for the first VPN tunnel. Specify restart to restart the IKE initiation. Specify clear to end the IKE session. Valid values are clear | none | restart. - tunnel1DpdTimeoutAction?: null | string @go(Tunnel1DpdTimeoutAction,*string) - - // The number of seconds after which a DPD timeout occurs for the first VPN tunnel. Valid value is equal or higher than 30. - tunnel1DpdTimeoutSeconds?: null | float64 @go(Tunnel1DpdTimeoutSeconds,*float64) - - // Turn on or off tunnel endpoint lifecycle control feature for the first VPN tunnel. Valid values are true | false. - tunnel1EnableTunnelLifecycleControl?: null | bool @go(Tunnel1EnableTunnelLifecycleControl,*bool) - - // The IKE versions that are permitted for the first VPN tunnel. Valid values are ikev1 | ikev2. - tunnel1IkeVersions?: [...null | string] @go(Tunnel1IkeVersions,[]*string) - - // The CIDR block of the inside IP addresses for the first VPN tunnel. Valid value is a size /30 CIDR block from the 169.254.0.0/16 range. - tunnel1InsideCidr?: null | string @go(Tunnel1InsideCidr,*string) - - // The range of inside IPv6 addresses for the first VPN tunnel. Supports only EC2 Transit Gateway. Valid value is a size /126 CIDR block from the local fd00::/8 range. - tunnel1InsideIpv6Cidr?: null | string @go(Tunnel1InsideIPv6Cidr,*string) - - // Options for logging VPN tunnel activity. See Log Options below for more details. - tunnel1LogOptions?: [...#Tunnel1LogOptionsObservation] @go(Tunnel1LogOptions,[]Tunnel1LogOptionsObservation) - - // List of one or more Diffie-Hellman group numbers that are permitted for the first VPN tunnel for phase 1 IKE negotiations. Valid values are 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. - tunnel1Phase1DhGroupNumbers?: [...null | float64] @go(Tunnel1Phase1DhGroupNumbers,[]*float64) - - // List of one or more encryption algorithms that are permitted for the first VPN tunnel for phase 1 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. - tunnel1Phase1EncryptionAlgorithms?: [...null | string] @go(Tunnel1Phase1EncryptionAlgorithms,[]*string) - - // One or more integrity algorithms that are permitted for the first VPN tunnel for phase 1 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. - tunnel1Phase1IntegrityAlgorithms?: [...null | string] @go(Tunnel1Phase1IntegrityAlgorithms,[]*string) - - // The lifetime for phase 1 of the IKE negotiation for the first VPN tunnel, in seconds. Valid value is between 900 and 28800. - tunnel1Phase1LifetimeSeconds?: null | float64 @go(Tunnel1Phase1LifetimeSeconds,*float64) - - // List of one or more Diffie-Hellman group numbers that are permitted for the first VPN tunnel for phase 2 IKE negotiations. Valid values are 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. - tunnel1Phase2DhGroupNumbers?: [...null | float64] @go(Tunnel1Phase2DhGroupNumbers,[]*float64) - - // List of one or more encryption algorithms that are permitted for the first VPN tunnel for phase 2 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. - tunnel1Phase2EncryptionAlgorithms?: [...null | string] @go(Tunnel1Phase2EncryptionAlgorithms,[]*string) - - // List of one or more integrity algorithms that are permitted for the first VPN tunnel for phase 2 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. - tunnel1Phase2IntegrityAlgorithms?: [...null | string] @go(Tunnel1Phase2IntegrityAlgorithms,[]*string) - - // The lifetime for phase 2 of the IKE negotiation for the first VPN tunnel, in seconds. Valid value is between 900 and 3600. - tunnel1Phase2LifetimeSeconds?: null | float64 @go(Tunnel1Phase2LifetimeSeconds,*float64) - - // The percentage of the rekey window for the first VPN tunnel (determined by tunnel1_rekey_margin_time_seconds) during which the rekey time is randomly selected. Valid value is between 0 and 100. - tunnel1RekeyFuzzPercentage?: null | float64 @go(Tunnel1RekeyFuzzPercentage,*float64) - - // The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the first VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for tunnel1_rekey_fuzz_percentage. Valid value is between 60 and half of tunnel1_phase2_lifetime_seconds. - tunnel1RekeyMarginTimeSeconds?: null | float64 @go(Tunnel1RekeyMarginTimeSeconds,*float64) - - // The number of packets in an IKE replay window for the first VPN tunnel. Valid value is between 64 and 2048. - tunnel1ReplayWindowSize?: null | float64 @go(Tunnel1ReplayWindowSize,*float64) - - // The action to take when the establishing the tunnel for the first VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify start for AWS to initiate the IKE negotiation. Valid values are add | start. - tunnel1StartupAction?: null | string @go(Tunnel1StartupAction,*string) - - // The RFC 6890 link-local address of the first VPN tunnel (VPN Gateway Side). - tunnel1VgwInsideAddress?: null | string @go(Tunnel1VgwInsideAddress,*string) - - // The public IP address of the second VPN tunnel. - tunnel2Address?: null | string @go(Tunnel2Address,*string) - - // The bgp asn number of the second VPN tunnel. - tunnel2BgpAsn?: null | string @go(Tunnel2BGPAsn,*string) - - // The bgp holdtime of the second VPN tunnel. - tunnel2BgpHoldtime?: null | float64 @go(Tunnel2BGPHoldtime,*float64) - - // The RFC 6890 link-local address of the second VPN tunnel (Customer Gateway Side). - tunnel2CgwInsideAddress?: null | string @go(Tunnel2CgwInsideAddress,*string) - - // The action to take after DPD timeout occurs for the second VPN tunnel. Specify restart to restart the IKE initiation. Specify clear to end the IKE session. Valid values are clear | none | restart. - tunnel2DpdTimeoutAction?: null | string @go(Tunnel2DpdTimeoutAction,*string) - - // The number of seconds after which a DPD timeout occurs for the second VPN tunnel. Valid value is equal or higher than 30. - tunnel2DpdTimeoutSeconds?: null | float64 @go(Tunnel2DpdTimeoutSeconds,*float64) - - // Turn on or off tunnel endpoint lifecycle control feature for the second VPN tunnel. Valid values are true | false. - tunnel2EnableTunnelLifecycleControl?: null | bool @go(Tunnel2EnableTunnelLifecycleControl,*bool) - - // The IKE versions that are permitted for the second VPN tunnel. Valid values are ikev1 | ikev2. - tunnel2IkeVersions?: [...null | string] @go(Tunnel2IkeVersions,[]*string) - - // The CIDR block of the inside IP addresses for the second VPN tunnel. Valid value is a size /30 CIDR block from the 169.254.0.0/16 range. - tunnel2InsideCidr?: null | string @go(Tunnel2InsideCidr,*string) - - // The range of inside IPv6 addresses for the second VPN tunnel. Supports only EC2 Transit Gateway. Valid value is a size /126 CIDR block from the local fd00::/8 range. - tunnel2InsideIpv6Cidr?: null | string @go(Tunnel2InsideIPv6Cidr,*string) - - // Options for logging VPN tunnel activity. See Log Options below for more details. - tunnel2LogOptions?: [...#Tunnel2LogOptionsObservation] @go(Tunnel2LogOptions,[]Tunnel2LogOptionsObservation) - - // List of one or more Diffie-Hellman group numbers that are permitted for the second VPN tunnel for phase 1 IKE negotiations. Valid values are 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. - tunnel2Phase1DhGroupNumbers?: [...null | float64] @go(Tunnel2Phase1DhGroupNumbers,[]*float64) - - // List of one or more encryption algorithms that are permitted for the second VPN tunnel for phase 1 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. - tunnel2Phase1EncryptionAlgorithms?: [...null | string] @go(Tunnel2Phase1EncryptionAlgorithms,[]*string) - - // One or more integrity algorithms that are permitted for the second VPN tunnel for phase 1 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. - tunnel2Phase1IntegrityAlgorithms?: [...null | string] @go(Tunnel2Phase1IntegrityAlgorithms,[]*string) - - // The lifetime for phase 1 of the IKE negotiation for the second VPN tunnel, in seconds. Valid value is between 900 and 28800. - tunnel2Phase1LifetimeSeconds?: null | float64 @go(Tunnel2Phase1LifetimeSeconds,*float64) - - // List of one or more Diffie-Hellman group numbers that are permitted for the second VPN tunnel for phase 2 IKE negotiations. Valid values are 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. - tunnel2Phase2DhGroupNumbers?: [...null | float64] @go(Tunnel2Phase2DhGroupNumbers,[]*float64) - - // List of one or more encryption algorithms that are permitted for the second VPN tunnel for phase 2 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. - tunnel2Phase2EncryptionAlgorithms?: [...null | string] @go(Tunnel2Phase2EncryptionAlgorithms,[]*string) - - // List of one or more integrity algorithms that are permitted for the second VPN tunnel for phase 2 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. - tunnel2Phase2IntegrityAlgorithms?: [...null | string] @go(Tunnel2Phase2IntegrityAlgorithms,[]*string) - - // The lifetime for phase 2 of the IKE negotiation for the second VPN tunnel, in seconds. Valid value is between 900 and 3600. - tunnel2Phase2LifetimeSeconds?: null | float64 @go(Tunnel2Phase2LifetimeSeconds,*float64) - - // The percentage of the rekey window for the second VPN tunnel (determined by tunnel2_rekey_margin_time_seconds) during which the rekey time is randomly selected. Valid value is between 0 and 100. - tunnel2RekeyFuzzPercentage?: null | float64 @go(Tunnel2RekeyFuzzPercentage,*float64) - - // The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the second VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for tunnel2_rekey_fuzz_percentage. Valid value is between 60 and half of tunnel2_phase2_lifetime_seconds. - tunnel2RekeyMarginTimeSeconds?: null | float64 @go(Tunnel2RekeyMarginTimeSeconds,*float64) - - // The number of packets in an IKE replay window for the second VPN tunnel. Valid value is between 64 and 2048. - tunnel2ReplayWindowSize?: null | float64 @go(Tunnel2ReplayWindowSize,*float64) - - // The action to take when the establishing the tunnel for the second VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify start for AWS to initiate the IKE negotiation. Valid values are add | start. - tunnel2StartupAction?: null | string @go(Tunnel2StartupAction,*string) - - // The RFC 6890 link-local address of the second VPN tunnel (VPN Gateway Side). - tunnel2VgwInsideAddress?: null | string @go(Tunnel2VgwInsideAddress,*string) - - // Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. Valid values are ipv4 | ipv6. ipv6 Supports only EC2 Transit Gateway. - tunnelInsideIpVersion?: null | string @go(TunnelInsideIPVersion,*string) - - // The type of VPN connection. The only type AWS supports at this time is "ipsec.1". - type?: null | string @go(Type,*string) - - // The ID of the Virtual Private Gateway. - vpnGatewayId?: null | string @go(VPNGatewayID,*string) - - // Telemetry for the VPN tunnels. Detailed below. - vgwTelemetry?: [...#VgwTelemetryObservation] @go(VgwTelemetry,[]VgwTelemetryObservation) -} - -#VPNConnectionParameters_2: { - // The ID of the customer gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.CustomerGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - customerGatewayId?: null | string @go(CustomerGatewayID,*string) - - // Reference to a CustomerGateway in ec2 to populate customerGatewayId. - // +kubebuilder:validation:Optional - customerGatewayIdRef?: null | v1.#Reference @go(CustomerGatewayIDRef,*v1.Reference) - - // Selector for a CustomerGateway in ec2 to populate customerGatewayId. - // +kubebuilder:validation:Optional - customerGatewayIdSelector?: null | v1.#Selector @go(CustomerGatewayIDSelector,*v1.Selector) - - // Indicate whether to enable acceleration for the VPN connection. Supports only EC2 Transit Gateway. - // +kubebuilder:validation:Optional - enableAcceleration?: null | bool @go(EnableAcceleration,*bool) - - // The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. - // +kubebuilder:validation:Optional - localIpv4NetworkCidr?: null | string @go(LocalIPv4NetworkCidr,*string) - - // The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. - // +kubebuilder:validation:Optional - localIpv6NetworkCidr?: null | string @go(LocalIPv6NetworkCidr,*string) - - // Indicates if a Public S2S VPN or Private S2S VPN over AWS Direct Connect. Valid values are PublicIpv4 | PrivateIpv4 - // +kubebuilder:validation:Optional - outsideIpAddressType?: null | string @go(OutsideIPAddressType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The IPv4 CIDR on the AWS side of the VPN connection. - // +kubebuilder:validation:Optional - remoteIpv4NetworkCidr?: null | string @go(RemoteIPv4NetworkCidr,*string) - - // The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. - // +kubebuilder:validation:Optional - remoteIpv6NetworkCidr?: null | string @go(RemoteIPv6NetworkCidr,*string) - - // Whether the VPN connection uses static routes exclusively. Static routes must be used for devices that don't support BGP. - // +kubebuilder:validation:Optional - staticRoutesOnly?: null | bool @go(StaticRoutesOnly,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the EC2 Transit Gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transitGatewayId?: null | string @go(TransitGatewayID,*string) - - // Reference to a TransitGateway in ec2 to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdRef?: null | v1.#Reference @go(TransitGatewayIDRef,*v1.Reference) - - // Selector for a TransitGateway in ec2 to populate transitGatewayId. - // +kubebuilder:validation:Optional - transitGatewayIdSelector?: null | v1.#Selector @go(TransitGatewayIDSelector,*v1.Selector) - - // . The attachment ID of the Transit Gateway attachment to Direct Connect Gateway. The ID is obtained through a data source only. - // +kubebuilder:validation:Optional - transportTransitGatewayAttachmentId?: null | string @go(TransportTransitGatewayAttachmentID,*string) - - // The action to take after DPD timeout occurs for the first VPN tunnel. Specify restart to restart the IKE initiation. Specify clear to end the IKE session. Valid values are clear | none | restart. - // +kubebuilder:validation:Optional - tunnel1DpdTimeoutAction?: null | string @go(Tunnel1DpdTimeoutAction,*string) - - // The number of seconds after which a DPD timeout occurs for the first VPN tunnel. Valid value is equal or higher than 30. - // +kubebuilder:validation:Optional - tunnel1DpdTimeoutSeconds?: null | float64 @go(Tunnel1DpdTimeoutSeconds,*float64) - - // Turn on or off tunnel endpoint lifecycle control feature for the first VPN tunnel. Valid values are true | false. - // +kubebuilder:validation:Optional - tunnel1EnableTunnelLifecycleControl?: null | bool @go(Tunnel1EnableTunnelLifecycleControl,*bool) - - // The IKE versions that are permitted for the first VPN tunnel. Valid values are ikev1 | ikev2. - // +kubebuilder:validation:Optional - tunnel1IkeVersions?: [...null | string] @go(Tunnel1IkeVersions,[]*string) - - // The CIDR block of the inside IP addresses for the first VPN tunnel. Valid value is a size /30 CIDR block from the 169.254.0.0/16 range. - // +kubebuilder:validation:Optional - tunnel1InsideCidr?: null | string @go(Tunnel1InsideCidr,*string) - - // The range of inside IPv6 addresses for the first VPN tunnel. Supports only EC2 Transit Gateway. Valid value is a size /126 CIDR block from the local fd00::/8 range. - // +kubebuilder:validation:Optional - tunnel1InsideIpv6Cidr?: null | string @go(Tunnel1InsideIPv6Cidr,*string) - - // Options for logging VPN tunnel activity. See Log Options below for more details. - // +kubebuilder:validation:Optional - tunnel1LogOptions?: [...#Tunnel1LogOptionsParameters] @go(Tunnel1LogOptions,[]Tunnel1LogOptionsParameters) - - // List of one or more Diffie-Hellman group numbers that are permitted for the first VPN tunnel for phase 1 IKE negotiations. Valid values are 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. - // +kubebuilder:validation:Optional - tunnel1Phase1DhGroupNumbers?: [...null | float64] @go(Tunnel1Phase1DhGroupNumbers,[]*float64) - - // List of one or more encryption algorithms that are permitted for the first VPN tunnel for phase 1 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. - // +kubebuilder:validation:Optional - tunnel1Phase1EncryptionAlgorithms?: [...null | string] @go(Tunnel1Phase1EncryptionAlgorithms,[]*string) - - // One or more integrity algorithms that are permitted for the first VPN tunnel for phase 1 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. - // +kubebuilder:validation:Optional - tunnel1Phase1IntegrityAlgorithms?: [...null | string] @go(Tunnel1Phase1IntegrityAlgorithms,[]*string) - - // The lifetime for phase 1 of the IKE negotiation for the first VPN tunnel, in seconds. Valid value is between 900 and 28800. - // +kubebuilder:validation:Optional - tunnel1Phase1LifetimeSeconds?: null | float64 @go(Tunnel1Phase1LifetimeSeconds,*float64) - - // List of one or more Diffie-Hellman group numbers that are permitted for the first VPN tunnel for phase 2 IKE negotiations. Valid values are 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. - // +kubebuilder:validation:Optional - tunnel1Phase2DhGroupNumbers?: [...null | float64] @go(Tunnel1Phase2DhGroupNumbers,[]*float64) - - // List of one or more encryption algorithms that are permitted for the first VPN tunnel for phase 2 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. - // +kubebuilder:validation:Optional - tunnel1Phase2EncryptionAlgorithms?: [...null | string] @go(Tunnel1Phase2EncryptionAlgorithms,[]*string) - - // List of one or more integrity algorithms that are permitted for the first VPN tunnel for phase 2 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. - // +kubebuilder:validation:Optional - tunnel1Phase2IntegrityAlgorithms?: [...null | string] @go(Tunnel1Phase2IntegrityAlgorithms,[]*string) - - // The lifetime for phase 2 of the IKE negotiation for the first VPN tunnel, in seconds. Valid value is between 900 and 3600. - // +kubebuilder:validation:Optional - tunnel1Phase2LifetimeSeconds?: null | float64 @go(Tunnel1Phase2LifetimeSeconds,*float64) - - // The preshared key of the first VPN tunnel. The preshared key must be between 8 and 64 characters in length and cannot start with zero(0). Allowed characters are alphanumeric characters, periods(.) and underscores(_). - // +kubebuilder:validation:Optional - tunnel1PresharedKeySecretRef?: null | v1.#SecretKeySelector @go(Tunnel1PresharedKeySecretRef,*v1.SecretKeySelector) - - // The percentage of the rekey window for the first VPN tunnel (determined by tunnel1_rekey_margin_time_seconds) during which the rekey time is randomly selected. Valid value is between 0 and 100. - // +kubebuilder:validation:Optional - tunnel1RekeyFuzzPercentage?: null | float64 @go(Tunnel1RekeyFuzzPercentage,*float64) - - // The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the first VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for tunnel1_rekey_fuzz_percentage. Valid value is between 60 and half of tunnel1_phase2_lifetime_seconds. - // +kubebuilder:validation:Optional - tunnel1RekeyMarginTimeSeconds?: null | float64 @go(Tunnel1RekeyMarginTimeSeconds,*float64) - - // The number of packets in an IKE replay window for the first VPN tunnel. Valid value is between 64 and 2048. - // +kubebuilder:validation:Optional - tunnel1ReplayWindowSize?: null | float64 @go(Tunnel1ReplayWindowSize,*float64) - - // The action to take when the establishing the tunnel for the first VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify start for AWS to initiate the IKE negotiation. Valid values are add | start. - // +kubebuilder:validation:Optional - tunnel1StartupAction?: null | string @go(Tunnel1StartupAction,*string) - - // The action to take after DPD timeout occurs for the second VPN tunnel. Specify restart to restart the IKE initiation. Specify clear to end the IKE session. Valid values are clear | none | restart. - // +kubebuilder:validation:Optional - tunnel2DpdTimeoutAction?: null | string @go(Tunnel2DpdTimeoutAction,*string) - - // The number of seconds after which a DPD timeout occurs for the second VPN tunnel. Valid value is equal or higher than 30. - // +kubebuilder:validation:Optional - tunnel2DpdTimeoutSeconds?: null | float64 @go(Tunnel2DpdTimeoutSeconds,*float64) - - // Turn on or off tunnel endpoint lifecycle control feature for the second VPN tunnel. Valid values are true | false. - // +kubebuilder:validation:Optional - tunnel2EnableTunnelLifecycleControl?: null | bool @go(Tunnel2EnableTunnelLifecycleControl,*bool) - - // The IKE versions that are permitted for the second VPN tunnel. Valid values are ikev1 | ikev2. - // +kubebuilder:validation:Optional - tunnel2IkeVersions?: [...null | string] @go(Tunnel2IkeVersions,[]*string) - - // The CIDR block of the inside IP addresses for the second VPN tunnel. Valid value is a size /30 CIDR block from the 169.254.0.0/16 range. - // +kubebuilder:validation:Optional - tunnel2InsideCidr?: null | string @go(Tunnel2InsideCidr,*string) - - // The range of inside IPv6 addresses for the second VPN tunnel. Supports only EC2 Transit Gateway. Valid value is a size /126 CIDR block from the local fd00::/8 range. - // +kubebuilder:validation:Optional - tunnel2InsideIpv6Cidr?: null | string @go(Tunnel2InsideIPv6Cidr,*string) - - // Options for logging VPN tunnel activity. See Log Options below for more details. - // +kubebuilder:validation:Optional - tunnel2LogOptions?: [...#Tunnel2LogOptionsParameters] @go(Tunnel2LogOptions,[]Tunnel2LogOptionsParameters) - - // List of one or more Diffie-Hellman group numbers that are permitted for the second VPN tunnel for phase 1 IKE negotiations. Valid values are 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. - // +kubebuilder:validation:Optional - tunnel2Phase1DhGroupNumbers?: [...null | float64] @go(Tunnel2Phase1DhGroupNumbers,[]*float64) - - // List of one or more encryption algorithms that are permitted for the second VPN tunnel for phase 1 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. - // +kubebuilder:validation:Optional - tunnel2Phase1EncryptionAlgorithms?: [...null | string] @go(Tunnel2Phase1EncryptionAlgorithms,[]*string) - - // One or more integrity algorithms that are permitted for the second VPN tunnel for phase 1 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. - // +kubebuilder:validation:Optional - tunnel2Phase1IntegrityAlgorithms?: [...null | string] @go(Tunnel2Phase1IntegrityAlgorithms,[]*string) - - // The lifetime for phase 1 of the IKE negotiation for the second VPN tunnel, in seconds. Valid value is between 900 and 28800. - // +kubebuilder:validation:Optional - tunnel2Phase1LifetimeSeconds?: null | float64 @go(Tunnel2Phase1LifetimeSeconds,*float64) - - // List of one or more Diffie-Hellman group numbers that are permitted for the second VPN tunnel for phase 2 IKE negotiations. Valid values are 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. - // +kubebuilder:validation:Optional - tunnel2Phase2DhGroupNumbers?: [...null | float64] @go(Tunnel2Phase2DhGroupNumbers,[]*float64) - - // List of one or more encryption algorithms that are permitted for the second VPN tunnel for phase 2 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. - // +kubebuilder:validation:Optional - tunnel2Phase2EncryptionAlgorithms?: [...null | string] @go(Tunnel2Phase2EncryptionAlgorithms,[]*string) - - // List of one or more integrity algorithms that are permitted for the second VPN tunnel for phase 2 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. - // +kubebuilder:validation:Optional - tunnel2Phase2IntegrityAlgorithms?: [...null | string] @go(Tunnel2Phase2IntegrityAlgorithms,[]*string) - - // The lifetime for phase 2 of the IKE negotiation for the second VPN tunnel, in seconds. Valid value is between 900 and 3600. - // +kubebuilder:validation:Optional - tunnel2Phase2LifetimeSeconds?: null | float64 @go(Tunnel2Phase2LifetimeSeconds,*float64) - - // The preshared key of the second VPN tunnel. The preshared key must be between 8 and 64 characters in length and cannot start with zero(0). Allowed characters are alphanumeric characters, periods(.) and underscores(_). - // +kubebuilder:validation:Optional - tunnel2PresharedKeySecretRef?: null | v1.#SecretKeySelector @go(Tunnel2PresharedKeySecretRef,*v1.SecretKeySelector) - - // The percentage of the rekey window for the second VPN tunnel (determined by tunnel2_rekey_margin_time_seconds) during which the rekey time is randomly selected. Valid value is between 0 and 100. - // +kubebuilder:validation:Optional - tunnel2RekeyFuzzPercentage?: null | float64 @go(Tunnel2RekeyFuzzPercentage,*float64) - - // The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the second VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for tunnel2_rekey_fuzz_percentage. Valid value is between 60 and half of tunnel2_phase2_lifetime_seconds. - // +kubebuilder:validation:Optional - tunnel2RekeyMarginTimeSeconds?: null | float64 @go(Tunnel2RekeyMarginTimeSeconds,*float64) - - // The number of packets in an IKE replay window for the second VPN tunnel. Valid value is between 64 and 2048. - // +kubebuilder:validation:Optional - tunnel2ReplayWindowSize?: null | float64 @go(Tunnel2ReplayWindowSize,*float64) - - // The action to take when the establishing the tunnel for the second VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify start for AWS to initiate the IKE negotiation. Valid values are add | start. - // +kubebuilder:validation:Optional - tunnel2StartupAction?: null | string @go(Tunnel2StartupAction,*string) - - // Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. Valid values are ipv4 | ipv6. ipv6 Supports only EC2 Transit Gateway. - // +kubebuilder:validation:Optional - tunnelInsideIpVersion?: null | string @go(TunnelInsideIPVersion,*string) - - // The type of VPN connection. The only type AWS supports at this time is "ipsec.1". - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.CustomerGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("type",false) - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // Reference to a CustomerGateway in ec2 to populate type. - // +kubebuilder:validation:Optional - typeRef?: null | v1.#Reference @go(TypeRef,*v1.Reference) - - // Selector for a CustomerGateway in ec2 to populate type. - // +kubebuilder:validation:Optional - typeSelector?: null | v1.#Selector @go(TypeSelector,*v1.Selector) - - // The ID of the Virtual Private Gateway. - // +crossplane:generate:reference:type=VPNGateway - // +kubebuilder:validation:Optional - vpnGatewayId?: null | string @go(VPNGatewayID,*string) - - // Reference to a VPNGateway to populate vpnGatewayId. - // +kubebuilder:validation:Optional - vpnGatewayIdRef?: null | v1.#Reference @go(VPNGatewayIDRef,*v1.Reference) - - // Selector for a VPNGateway to populate vpnGatewayId. - // +kubebuilder:validation:Optional - vpnGatewayIdSelector?: null | v1.#Selector @go(VPNGatewayIDSelector,*v1.Selector) -} - -#VgwTelemetryInitParameters: { -} - -#VgwTelemetryObservation: { - // The number of accepted routes. - acceptedRouteCount?: null | float64 @go(AcceptedRouteCount,*float64) - - // The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate. - certificateArn?: null | string @go(CertificateArn,*string) - - // The date and time of the last change in status. - lastStatusChange?: null | string @go(LastStatusChange,*string) - - // The Internet-routable IP address of the virtual private gateway's outside interface. - outsideIpAddress?: null | string @go(OutsideIPAddress,*string) - - // The status of the VPN tunnel. - status?: null | string @go(Status,*string) - - // If an error occurs, a description of the error. - statusMessage?: null | string @go(StatusMessage,*string) -} - -#VgwTelemetryParameters: { -} - -// VPNConnectionSpec defines the desired state of VPNConnection -#VPNConnectionSpec: { - v1.#ResourceSpec - forProvider: #VPNConnectionParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPNConnectionInitParameters_2 @go(InitProvider) -} - -// VPNConnectionStatus defines the observed state of VPNConnection. -#VPNConnectionStatus: { - v1.#ResourceStatus - atProvider?: #VPNConnectionObservation_2 @go(AtProvider) -} - -// VPNConnection is the Schema for the VPNConnections API. Manages a Site-to-Site VPN connection. A Site-to-Site VPN connection is an Internet Protocol security (IPsec) VPN connection between a VPC and an on-premises network. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPNConnection: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPNConnectionSpec @go(Spec) - status?: #VPNConnectionStatus @go(Status) -} - -// VPNConnectionList contains a list of VPNConnections -#VPNConnectionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPNConnection] @go(Items,[]VPNConnection) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpnconnectionroute_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpnconnectionroute_types_go_gen.cue deleted file mode 100644 index 47aab48..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpnconnectionroute_types_go_gen.cue +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPNConnectionRouteInitParameters: { - // The CIDR block associated with the local subnet of the customer network. - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) -} - -#VPNConnectionRouteObservation: { - // The CIDR block associated with the local subnet of the customer network. - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) - id?: null | string @go(ID,*string) - - // The ID of the VPN connection. - vpnConnectionId?: null | string @go(VPNConnectionID,*string) -} - -#VPNConnectionRouteParameters: { - // The CIDR block associated with the local subnet of the customer network. - // +kubebuilder:validation:Optional - destinationCidrBlock?: null | string @go(DestinationCidrBlock,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the VPN connection. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPNConnection - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpnConnectionId?: null | string @go(VPNConnectionID,*string) - - // Reference to a VPNConnection in ec2 to populate vpnConnectionId. - // +kubebuilder:validation:Optional - vpnConnectionIdRef?: null | v1.#Reference @go(VPNConnectionIDRef,*v1.Reference) - - // Selector for a VPNConnection in ec2 to populate vpnConnectionId. - // +kubebuilder:validation:Optional - vpnConnectionIdSelector?: null | v1.#Selector @go(VPNConnectionIDSelector,*v1.Selector) -} - -// VPNConnectionRouteSpec defines the desired state of VPNConnectionRoute -#VPNConnectionRouteSpec: { - v1.#ResourceSpec - forProvider: #VPNConnectionRouteParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPNConnectionRouteInitParameters @go(InitProvider) -} - -// VPNConnectionRouteStatus defines the observed state of VPNConnectionRoute. -#VPNConnectionRouteStatus: { - v1.#ResourceStatus - atProvider?: #VPNConnectionRouteObservation @go(AtProvider) -} - -// VPNConnectionRoute is the Schema for the VPNConnectionRoutes API. Provides a static route between a VPN connection and a customer gateway. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPNConnectionRoute: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destinationCidrBlock) || (has(self.initProvider) && has(self.initProvider.destinationCidrBlock))",message="spec.forProvider.destinationCidrBlock is a required parameter" - spec: #VPNConnectionRouteSpec @go(Spec) - status?: #VPNConnectionRouteStatus @go(Status) -} - -// VPNConnectionRouteList contains a list of VPNConnectionRoutes -#VPNConnectionRouteList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPNConnectionRoute] @go(Items,[]VPNConnectionRoute) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpngateway_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpngateway_types_go_gen.cue deleted file mode 100644 index e226c63..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpngateway_types_go_gen.cue +++ /dev/null @@ -1,121 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPNGatewayInitParameters_2: { - // The Autonomous System Number (ASN) for the Amazon side of the gateway. If you don't specify an ASN, the virtual private gateway is created with the default ASN. - amazonSideAsn?: null | string @go(AmazonSideAsn,*string) - - // The Availability Zone for the virtual private gateway. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VPNGatewayObservation_2: { - // The Autonomous System Number (ASN) for the Amazon side of the gateway. If you don't specify an ASN, the virtual private gateway is created with the default ASN. - amazonSideAsn?: null | string @go(AmazonSideAsn,*string) - - // Amazon Resource Name (ARN) of the VPN Gateway. - arn?: null | string @go(Arn,*string) - - // The Availability Zone for the virtual private gateway. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The ID of the VPN Gateway. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The VPC ID to create in. - vpcId?: null | string @go(VPCID,*string) -} - -#VPNGatewayParameters_2: { - // The Autonomous System Number (ASN) for the Amazon side of the gateway. If you don't specify an ASN, the virtual private gateway is created with the default ASN. - // +kubebuilder:validation:Optional - amazonSideAsn?: null | string @go(AmazonSideAsn,*string) - - // The Availability Zone for the virtual private gateway. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The VPC ID to create in. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// VPNGatewaySpec defines the desired state of VPNGateway -#VPNGatewaySpec: { - v1.#ResourceSpec - forProvider: #VPNGatewayParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPNGatewayInitParameters_2 @go(InitProvider) -} - -// VPNGatewayStatus defines the observed state of VPNGateway. -#VPNGatewayStatus: { - v1.#ResourceStatus - atProvider?: #VPNGatewayObservation_2 @go(AtProvider) -} - -// VPNGateway is the Schema for the VPNGateways API. Provides a resource to create a VPC VPN Gateway. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPNGateway: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPNGatewaySpec @go(Spec) - status?: #VPNGatewayStatus @go(Status) -} - -// VPNGatewayList contains a list of VPNGateways -#VPNGatewayList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPNGateway] @go(Items,[]VPNGateway) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpngatewayattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpngatewayattachment_types_go_gen.cue deleted file mode 100644 index 6bb489f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpngatewayattachment_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPNGatewayAttachmentInitParameters: { -} - -#VPNGatewayAttachmentObservation: { - id?: null | string @go(ID,*string) - - // The ID of the VPC. - vpcId?: null | string @go(VPCID,*string) - - // The ID of the Virtual Private Gateway. - vpnGatewayId?: null | string @go(VPNGatewayID,*string) -} - -#VPNGatewayAttachmentParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) - - // The ID of the Virtual Private Gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPNGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpnGatewayId?: null | string @go(VPNGatewayID,*string) - - // Reference to a VPNGateway in ec2 to populate vpnGatewayId. - // +kubebuilder:validation:Optional - vpnGatewayIdRef?: null | v1.#Reference @go(VPNGatewayIDRef,*v1.Reference) - - // Selector for a VPNGateway in ec2 to populate vpnGatewayId. - // +kubebuilder:validation:Optional - vpnGatewayIdSelector?: null | v1.#Selector @go(VPNGatewayIDSelector,*v1.Selector) -} - -// VPNGatewayAttachmentSpec defines the desired state of VPNGatewayAttachment -#VPNGatewayAttachmentSpec: { - v1.#ResourceSpec - forProvider: #VPNGatewayAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPNGatewayAttachmentInitParameters @go(InitProvider) -} - -// VPNGatewayAttachmentStatus defines the observed state of VPNGatewayAttachment. -#VPNGatewayAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #VPNGatewayAttachmentObservation @go(AtProvider) -} - -// VPNGatewayAttachment is the Schema for the VPNGatewayAttachments API. Provides a Virtual Private Gateway attachment resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPNGatewayAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPNGatewayAttachmentSpec @go(Spec) - status?: #VPNGatewayAttachmentStatus @go(Status) -} - -// VPNGatewayAttachmentList contains a list of VPNGatewayAttachments -#VPNGatewayAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPNGatewayAttachment] @go(Items,[]VPNGatewayAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpngatewayroutepropagation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpngatewayroutepropagation_types_go_gen.cue deleted file mode 100644 index e219b2f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ec2/v1beta1/zz_vpngatewayroutepropagation_types_go_gen.cue +++ /dev/null @@ -1,103 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ec2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPNGatewayRoutePropagationInitParameters: { -} - -#VPNGatewayRoutePropagationObservation: { - id?: null | string @go(ID,*string) - - // The id of the aws_route_table to propagate routes into. - routeTableId?: null | string @go(RouteTableID,*string) - - // The id of the aws_vpn_gateway to propagate routes from. - vpnGatewayId?: null | string @go(VPNGatewayID,*string) -} - -#VPNGatewayRoutePropagationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The id of the aws_route_table to propagate routes into. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.RouteTable - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - routeTableId?: null | string @go(RouteTableID,*string) - - // Reference to a RouteTable in ec2 to populate routeTableId. - // +kubebuilder:validation:Optional - routeTableIdRef?: null | v1.#Reference @go(RouteTableIDRef,*v1.Reference) - - // Selector for a RouteTable in ec2 to populate routeTableId. - // +kubebuilder:validation:Optional - routeTableIdSelector?: null | v1.#Selector @go(RouteTableIDSelector,*v1.Selector) - - // The id of the aws_vpn_gateway to propagate routes from. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPNGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpnGatewayId?: null | string @go(VPNGatewayID,*string) - - // Reference to a VPNGateway in ec2 to populate vpnGatewayId. - // +kubebuilder:validation:Optional - vpnGatewayIdRef?: null | v1.#Reference @go(VPNGatewayIDRef,*v1.Reference) - - // Selector for a VPNGateway in ec2 to populate vpnGatewayId. - // +kubebuilder:validation:Optional - vpnGatewayIdSelector?: null | v1.#Selector @go(VPNGatewayIDSelector,*v1.Selector) -} - -// VPNGatewayRoutePropagationSpec defines the desired state of VPNGatewayRoutePropagation -#VPNGatewayRoutePropagationSpec: { - v1.#ResourceSpec - forProvider: #VPNGatewayRoutePropagationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPNGatewayRoutePropagationInitParameters @go(InitProvider) -} - -// VPNGatewayRoutePropagationStatus defines the observed state of VPNGatewayRoutePropagation. -#VPNGatewayRoutePropagationStatus: { - v1.#ResourceStatus - atProvider?: #VPNGatewayRoutePropagationObservation @go(AtProvider) -} - -// VPNGatewayRoutePropagation is the Schema for the VPNGatewayRoutePropagations API. Requests automatic route propagation between a VPN gateway and a route table. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPNGatewayRoutePropagation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPNGatewayRoutePropagationSpec @go(Spec) - status?: #VPNGatewayRoutePropagationStatus @go(Status) -} - -// VPNGatewayRoutePropagationList contains a list of VPNGatewayRoutePropagations -#VPNGatewayRoutePropagationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPNGatewayRoutePropagation] @go(Items,[]VPNGatewayRoutePropagation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 1c1c150..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecr/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=ecr.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "ecr.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_lifecyclepolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_lifecyclepolicy_types_go_gen.cue deleted file mode 100644 index 336c352..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_lifecyclepolicy_types_go_gen.cue +++ /dev/null @@ -1,99 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecr/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LifecyclePolicyInitParameters: { - // The policy document. This is a JSON formatted string. See more details about Policy Parameters in the official AWS docs. - policy?: null | string @go(Policy,*string) -} - -#LifecyclePolicyObservation: { - id?: null | string @go(ID,*string) - - // The policy document. This is a JSON formatted string. See more details about Policy Parameters in the official AWS docs. - policy?: null | string @go(Policy,*string) - - // The registry ID where the repository was created. - registryId?: null | string @go(RegistryID,*string) - - // Name of the repository to apply the policy. - repository?: null | string @go(Repository,*string) -} - -#LifecyclePolicyParameters: { - // The policy document. This is a JSON formatted string. See more details about Policy Parameters in the official AWS docs. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Name of the repository to apply the policy. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ecr/v1beta1.Repository - // +kubebuilder:validation:Optional - repository?: null | string @go(Repository,*string) - - // Reference to a Repository in ecr to populate repository. - // +kubebuilder:validation:Optional - repositoryRef?: null | v1.#Reference @go(RepositoryRef,*v1.Reference) - - // Selector for a Repository in ecr to populate repository. - // +kubebuilder:validation:Optional - repositorySelector?: null | v1.#Selector @go(RepositorySelector,*v1.Selector) -} - -// LifecyclePolicySpec defines the desired state of LifecyclePolicy -#LifecyclePolicySpec: { - v1.#ResourceSpec - forProvider: #LifecyclePolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LifecyclePolicyInitParameters @go(InitProvider) -} - -// LifecyclePolicyStatus defines the observed state of LifecyclePolicy. -#LifecyclePolicyStatus: { - v1.#ResourceStatus - atProvider?: #LifecyclePolicyObservation @go(AtProvider) -} - -// LifecyclePolicy is the Schema for the LifecyclePolicys API. Manages an ECR repository lifecycle policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LifecyclePolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #LifecyclePolicySpec @go(Spec) - status?: #LifecyclePolicyStatus @go(Status) -} - -// LifecyclePolicyList contains a list of LifecyclePolicys -#LifecyclePolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LifecyclePolicy] @go(Items,[]LifecyclePolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_pullthroughcacherule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_pullthroughcacherule_types_go_gen.cue deleted file mode 100644 index 44b7af9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_pullthroughcacherule_types_go_gen.cue +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecr/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PullThroughCacheRuleInitParameters: { - // The repository name prefix to use when caching images from the source registry. - ecrRepositoryPrefix?: null | string @go(EcrRepositoryPrefix,*string) - - // The registry URL of the upstream public registry to use as the source. - upstreamRegistryUrl?: null | string @go(UpstreamRegistryURL,*string) -} - -#PullThroughCacheRuleObservation: { - // The repository name prefix to use when caching images from the source registry. - ecrRepositoryPrefix?: null | string @go(EcrRepositoryPrefix,*string) - id?: null | string @go(ID,*string) - - // The registry ID where the repository was created. - registryId?: null | string @go(RegistryID,*string) - - // The registry URL of the upstream public registry to use as the source. - upstreamRegistryUrl?: null | string @go(UpstreamRegistryURL,*string) -} - -#PullThroughCacheRuleParameters: { - // The repository name prefix to use when caching images from the source registry. - // +kubebuilder:validation:Optional - ecrRepositoryPrefix?: null | string @go(EcrRepositoryPrefix,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The registry URL of the upstream public registry to use as the source. - // +kubebuilder:validation:Optional - upstreamRegistryUrl?: null | string @go(UpstreamRegistryURL,*string) -} - -// PullThroughCacheRuleSpec defines the desired state of PullThroughCacheRule -#PullThroughCacheRuleSpec: { - v1.#ResourceSpec - forProvider: #PullThroughCacheRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PullThroughCacheRuleInitParameters @go(InitProvider) -} - -// PullThroughCacheRuleStatus defines the observed state of PullThroughCacheRule. -#PullThroughCacheRuleStatus: { - v1.#ResourceStatus - atProvider?: #PullThroughCacheRuleObservation @go(AtProvider) -} - -// PullThroughCacheRule is the Schema for the PullThroughCacheRules API. Provides an Elastic Container Registry Pull Through Cache Rule. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PullThroughCacheRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ecrRepositoryPrefix) || (has(self.initProvider) && has(self.initProvider.ecrRepositoryPrefix))",message="spec.forProvider.ecrRepositoryPrefix is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.upstreamRegistryUrl) || (has(self.initProvider) && has(self.initProvider.upstreamRegistryUrl))",message="spec.forProvider.upstreamRegistryUrl is a required parameter" - spec: #PullThroughCacheRuleSpec @go(Spec) - status?: #PullThroughCacheRuleStatus @go(Status) -} - -// PullThroughCacheRuleList contains a list of PullThroughCacheRules -#PullThroughCacheRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PullThroughCacheRule] @go(Items,[]PullThroughCacheRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_registrypolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_registrypolicy_types_go_gen.cue deleted file mode 100644 index 1d8fc57..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_registrypolicy_types_go_gen.cue +++ /dev/null @@ -1,83 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecr/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RegistryPolicyInitParameters: { - // The policy document. This is a JSON formatted string - policy?: null | string @go(Policy,*string) -} - -#RegistryPolicyObservation: { - id?: null | string @go(ID,*string) - - // The policy document. This is a JSON formatted string - policy?: null | string @go(Policy,*string) - - // The registry ID where the registry was created. - registryId?: null | string @go(RegistryID,*string) -} - -#RegistryPolicyParameters: { - // The policy document. This is a JSON formatted string - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// RegistryPolicySpec defines the desired state of RegistryPolicy -#RegistryPolicySpec: { - v1.#ResourceSpec - forProvider: #RegistryPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RegistryPolicyInitParameters @go(InitProvider) -} - -// RegistryPolicyStatus defines the observed state of RegistryPolicy. -#RegistryPolicyStatus: { - v1.#ResourceStatus - atProvider?: #RegistryPolicyObservation @go(AtProvider) -} - -// RegistryPolicy is the Schema for the RegistryPolicys API. Provides an Elastic Container Registry Policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RegistryPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #RegistryPolicySpec @go(Spec) - status?: #RegistryPolicyStatus @go(Status) -} - -// RegistryPolicyList contains a list of RegistryPolicys -#RegistryPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RegistryPolicy] @go(Items,[]RegistryPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_registryscanningconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_registryscanningconfiguration_types_go_gen.cue deleted file mode 100644 index cdba8e0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_registryscanningconfiguration_types_go_gen.cue +++ /dev/null @@ -1,137 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecr/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RegistryScanningConfigurationInitParameters: { - // One or multiple blocks specifying scanning rules to determine which repository filters are used and at what frequency scanning will occur. See below for schema. - rule?: [...#RuleInitParameters] @go(Rule,[]RuleInitParameters) - - // the scanning type to set for the registry. Can be either ENHANCED or BASIC. - scanType?: null | string @go(ScanType,*string) -} - -#RegistryScanningConfigurationObservation: { - id?: null | string @go(ID,*string) - - // The registry ID the scanning configuration applies to. - registryId?: null | string @go(RegistryID,*string) - - // One or multiple blocks specifying scanning rules to determine which repository filters are used and at what frequency scanning will occur. See below for schema. - rule?: [...#RuleObservation] @go(Rule,[]RuleObservation) - - // the scanning type to set for the registry. Can be either ENHANCED or BASIC. - scanType?: null | string @go(ScanType,*string) -} - -#RegistryScanningConfigurationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // One or multiple blocks specifying scanning rules to determine which repository filters are used and at what frequency scanning will occur. See below for schema. - // +kubebuilder:validation:Optional - rule?: [...#RuleParameters] @go(Rule,[]RuleParameters) - - // the scanning type to set for the registry. Can be either ENHANCED or BASIC. - // +kubebuilder:validation:Optional - scanType?: null | string @go(ScanType,*string) -} - -#RepositoryFilterInitParameters: { - filter?: null | string @go(Filter,*string) - filterType?: null | string @go(FilterType,*string) -} - -#RepositoryFilterObservation: { - filter?: null | string @go(Filter,*string) - filterType?: null | string @go(FilterType,*string) -} - -#RepositoryFilterParameters: { - // +kubebuilder:validation:Optional - filter?: null | string @go(Filter,*string) - - // +kubebuilder:validation:Optional - filterType?: null | string @go(FilterType,*string) -} - -#RuleInitParameters: { - // One or more repository filter blocks, containing a filter and a filter_type . - repositoryFilter?: [...#RepositoryFilterInitParameters] @go(RepositoryFilter,[]RepositoryFilterInitParameters) - - // The frequency that scans are performed at for a private registry. Can be SCAN_ON_PUSH, CONTINUOUS_SCAN, or MANUAL. - scanFrequency?: null | string @go(ScanFrequency,*string) -} - -#RuleObservation: { - // One or more repository filter blocks, containing a filter and a filter_type . - repositoryFilter?: [...#RepositoryFilterObservation] @go(RepositoryFilter,[]RepositoryFilterObservation) - - // The frequency that scans are performed at for a private registry. Can be SCAN_ON_PUSH, CONTINUOUS_SCAN, or MANUAL. - scanFrequency?: null | string @go(ScanFrequency,*string) -} - -#RuleParameters: { - // One or more repository filter blocks, containing a filter and a filter_type . - // +kubebuilder:validation:Optional - repositoryFilter: [...#RepositoryFilterParameters] @go(RepositoryFilter,[]RepositoryFilterParameters) - - // The frequency that scans are performed at for a private registry. Can be SCAN_ON_PUSH, CONTINUOUS_SCAN, or MANUAL. - // +kubebuilder:validation:Optional - scanFrequency?: null | string @go(ScanFrequency,*string) -} - -// RegistryScanningConfigurationSpec defines the desired state of RegistryScanningConfiguration -#RegistryScanningConfigurationSpec: { - v1.#ResourceSpec - forProvider: #RegistryScanningConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RegistryScanningConfigurationInitParameters @go(InitProvider) -} - -// RegistryScanningConfigurationStatus defines the observed state of RegistryScanningConfiguration. -#RegistryScanningConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #RegistryScanningConfigurationObservation @go(AtProvider) -} - -// RegistryScanningConfiguration is the Schema for the RegistryScanningConfigurations API. Provides an Elastic Container Registry Scanning Configuration. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RegistryScanningConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scanType) || (has(self.initProvider) && has(self.initProvider.scanType))",message="spec.forProvider.scanType is a required parameter" - spec: #RegistryScanningConfigurationSpec @go(Spec) - status?: #RegistryScanningConfigurationStatus @go(Status) -} - -// RegistryScanningConfigurationList contains a list of RegistryScanningConfigurations -#RegistryScanningConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RegistryScanningConfiguration] @go(Items,[]RegistryScanningConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_replicationconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_replicationconfiguration_types_go_gen.cue deleted file mode 100644 index 6173a6c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_replicationconfiguration_types_go_gen.cue +++ /dev/null @@ -1,173 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecr/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DestinationInitParameters: { - // The account ID of the destination registry to replicate to. - registryId?: null | string @go(RegistryID,*string) -} - -#DestinationObservation: { - // A Region to replicate to. - region?: null | string @go(Region,*string) - - // The account ID of the destination registry to replicate to. - registryId?: null | string @go(RegistryID,*string) -} - -#DestinationParameters: { - // A Region to replicate to. - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The account ID of the destination registry to replicate to. - // +kubebuilder:validation:Optional - registryId?: null | string @go(RegistryID,*string) -} - -#ReplicationConfigurationInitParameters: { - // Replication configuration for a registry. See Replication Configuration. - replicationConfiguration?: [...#ReplicationConfigurationReplicationConfigurationInitParameters] @go(ReplicationConfiguration,[]ReplicationConfigurationReplicationConfigurationInitParameters) -} - -#ReplicationConfigurationObservation: { - id?: null | string @go(ID,*string) - - // The account ID of the destination registry to replicate to. - registryId?: null | string @go(RegistryID,*string) - - // Replication configuration for a registry. See Replication Configuration. - replicationConfiguration?: [...#ReplicationConfigurationReplicationConfigurationObservation] @go(ReplicationConfiguration,[]ReplicationConfigurationReplicationConfigurationObservation) -} - -#ReplicationConfigurationParameters: { - // A Region to replicate to. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Replication configuration for a registry. See Replication Configuration. - // +kubebuilder:validation:Optional - replicationConfiguration?: [...#ReplicationConfigurationReplicationConfigurationParameters] @go(ReplicationConfiguration,[]ReplicationConfigurationReplicationConfigurationParameters) -} - -#ReplicationConfigurationReplicationConfigurationInitParameters: { - // The replication rules for a replication configuration. A maximum of 10 are allowed per replication_configuration. See Rule - rule?: [...#ReplicationConfigurationRuleInitParameters] @go(Rule,[]ReplicationConfigurationRuleInitParameters) -} - -#ReplicationConfigurationReplicationConfigurationObservation: { - // The replication rules for a replication configuration. A maximum of 10 are allowed per replication_configuration. See Rule - rule?: [...#ReplicationConfigurationRuleObservation] @go(Rule,[]ReplicationConfigurationRuleObservation) -} - -#ReplicationConfigurationReplicationConfigurationParameters: { - // The replication rules for a replication configuration. A maximum of 10 are allowed per replication_configuration. See Rule - // +kubebuilder:validation:Optional - rule: [...#ReplicationConfigurationRuleParameters] @go(Rule,[]ReplicationConfigurationRuleParameters) -} - -#ReplicationConfigurationRuleInitParameters: { - // the details of a replication destination. A maximum of 25 are allowed per rule. See Destination. - destination?: [...#DestinationInitParameters] @go(Destination,[]DestinationInitParameters) - - // filters for a replication rule. See Repository Filter. - repositoryFilter?: [...#RuleRepositoryFilterInitParameters] @go(RepositoryFilter,[]RuleRepositoryFilterInitParameters) -} - -#ReplicationConfigurationRuleObservation: { - // the details of a replication destination. A maximum of 25 are allowed per rule. See Destination. - destination?: [...#DestinationObservation] @go(Destination,[]DestinationObservation) - - // filters for a replication rule. See Repository Filter. - repositoryFilter?: [...#RuleRepositoryFilterObservation] @go(RepositoryFilter,[]RuleRepositoryFilterObservation) -} - -#ReplicationConfigurationRuleParameters: { - // the details of a replication destination. A maximum of 25 are allowed per rule. See Destination. - // +kubebuilder:validation:Optional - destination: [...#DestinationParameters] @go(Destination,[]DestinationParameters) - - // filters for a replication rule. See Repository Filter. - // +kubebuilder:validation:Optional - repositoryFilter?: [...#RuleRepositoryFilterParameters] @go(RepositoryFilter,[]RuleRepositoryFilterParameters) -} - -#RuleRepositoryFilterInitParameters: { - // The repository filter details. - filter?: null | string @go(Filter,*string) - - // The repository filter type. The only supported value is PREFIX_MATCH, which is a repository name prefix specified with the filter parameter. - filterType?: null | string @go(FilterType,*string) -} - -#RuleRepositoryFilterObservation: { - // The repository filter details. - filter?: null | string @go(Filter,*string) - - // The repository filter type. The only supported value is PREFIX_MATCH, which is a repository name prefix specified with the filter parameter. - filterType?: null | string @go(FilterType,*string) -} - -#RuleRepositoryFilterParameters: { - // The repository filter details. - // +kubebuilder:validation:Optional - filter?: null | string @go(Filter,*string) - - // The repository filter type. The only supported value is PREFIX_MATCH, which is a repository name prefix specified with the filter parameter. - // +kubebuilder:validation:Optional - filterType?: null | string @go(FilterType,*string) -} - -// ReplicationConfigurationSpec defines the desired state of ReplicationConfiguration -#ReplicationConfigurationSpec: { - v1.#ResourceSpec - forProvider: #ReplicationConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReplicationConfigurationInitParameters @go(InitProvider) -} - -// ReplicationConfigurationStatus defines the observed state of ReplicationConfiguration. -#ReplicationConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #ReplicationConfigurationObservation @go(AtProvider) -} - -// ReplicationConfiguration is the Schema for the ReplicationConfigurations API. Provides an Elastic Container Registry Replication Configuration. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReplicationConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ReplicationConfigurationSpec @go(Spec) - status?: #ReplicationConfigurationStatus @go(Status) -} - -// ReplicationConfigurationList contains a list of ReplicationConfigurations -#ReplicationConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReplicationConfiguration] @go(Items,[]ReplicationConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_repository_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_repository_types_go_gen.cue deleted file mode 100644 index 6ac21a1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_repository_types_go_gen.cue +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecr/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EncryptionConfigurationInitParameters: { - // The encryption type to use for the repository. Valid values are AES256 or KMS. Defaults to AES256. - encryptionType?: null | string @go(EncryptionType,*string) -} - -#EncryptionConfigurationObservation: { - // The encryption type to use for the repository. Valid values are AES256 or KMS. Defaults to AES256. - encryptionType?: null | string @go(EncryptionType,*string) - - // The ARN of the KMS key to use when encryption_type is KMS. If not specified, uses the default AWS managed key for ECR. - kmsKey?: null | string @go(KMSKey,*string) -} - -#EncryptionConfigurationParameters: { - // The encryption type to use for the repository. Valid values are AES256 or KMS. Defaults to AES256. - // +kubebuilder:validation:Optional - encryptionType?: null | string @go(EncryptionType,*string) - - // The ARN of the KMS key to use when encryption_type is KMS. If not specified, uses the default AWS managed key for ECR. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - kmsKey?: null | string @go(KMSKey,*string) - - // Reference to a Key in kms to populate kmsKey. - // +kubebuilder:validation:Optional - kmsKeyRef?: null | v1.#Reference @go(KMSKeyRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKey. - // +kubebuilder:validation:Optional - kmsKeySelector?: null | v1.#Selector @go(KMSKeySelector,*v1.Selector) -} - -#ImageScanningConfigurationInitParameters: { - // Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false). - scanOnPush?: null | bool @go(ScanOnPush,*bool) -} - -#ImageScanningConfigurationObservation: { - // Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false). - scanOnPush?: null | bool @go(ScanOnPush,*bool) -} - -#ImageScanningConfigurationParameters: { - // Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false). - // +kubebuilder:validation:Optional - scanOnPush?: null | bool @go(ScanOnPush,*bool) -} - -#RepositoryInitParameters: { - // Encryption configuration for the repository. See below for schema. - encryptionConfiguration?: [...#EncryptionConfigurationInitParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationInitParameters) - - // If true, will delete the repository even if it contains images. - // Defaults to false. - forceDelete?: null | bool @go(ForceDelete,*bool) - - // Configuration block that defines image scanning configuration for the repository. By default, image scanning must be manually triggered. See the ECR User Guide for more information about image scanning. - imageScanningConfiguration?: [...#ImageScanningConfigurationInitParameters] @go(ImageScanningConfiguration,[]ImageScanningConfigurationInitParameters) - - // The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE. - imageTagMutability?: null | string @go(ImageTagMutability,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RepositoryObservation: { - // Full ARN of the repository. - arn?: null | string @go(Arn,*string) - - // Encryption configuration for the repository. See below for schema. - encryptionConfiguration?: [...#EncryptionConfigurationObservation] @go(EncryptionConfiguration,[]EncryptionConfigurationObservation) - - // If true, will delete the repository even if it contains images. - // Defaults to false. - forceDelete?: null | bool @go(ForceDelete,*bool) - id?: null | string @go(ID,*string) - - // Configuration block that defines image scanning configuration for the repository. By default, image scanning must be manually triggered. See the ECR User Guide for more information about image scanning. - imageScanningConfiguration?: [...#ImageScanningConfigurationObservation] @go(ImageScanningConfiguration,[]ImageScanningConfigurationObservation) - - // The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE. - imageTagMutability?: null | string @go(ImageTagMutability,*string) - - // The registry ID where the repository was created. - registryId?: null | string @go(RegistryID,*string) - - // The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName). - repositoryUrl?: null | string @go(RepositoryURL,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RepositoryParameters: { - // Encryption configuration for the repository. See below for schema. - // +kubebuilder:validation:Optional - encryptionConfiguration?: [...#EncryptionConfigurationParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationParameters) - - // If true, will delete the repository even if it contains images. - // Defaults to false. - // +kubebuilder:validation:Optional - forceDelete?: null | bool @go(ForceDelete,*bool) - - // Configuration block that defines image scanning configuration for the repository. By default, image scanning must be manually triggered. See the ECR User Guide for more information about image scanning. - // +kubebuilder:validation:Optional - imageScanningConfiguration?: [...#ImageScanningConfigurationParameters] @go(ImageScanningConfiguration,[]ImageScanningConfigurationParameters) - - // The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE. - // +kubebuilder:validation:Optional - imageTagMutability?: null | string @go(ImageTagMutability,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RepositorySpec defines the desired state of Repository -#RepositorySpec: { - v1.#ResourceSpec - forProvider: #RepositoryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RepositoryInitParameters @go(InitProvider) -} - -// RepositoryStatus defines the observed state of Repository. -#RepositoryStatus: { - v1.#ResourceStatus - atProvider?: #RepositoryObservation @go(AtProvider) -} - -// Repository is the Schema for the Repositorys API. Provides an Elastic Container Registry Repository. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Repository: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RepositorySpec @go(Spec) - status?: #RepositoryStatus @go(Status) -} - -// RepositoryList contains a list of Repositorys -#RepositoryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Repository] @go(Items,[]Repository) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_repositorypolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_repositorypolicy_types_go_gen.cue deleted file mode 100644 index 4a91dc5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecr/v1beta1/zz_repositorypolicy_types_go_gen.cue +++ /dev/null @@ -1,99 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecr/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RepositoryPolicyInitParameters: { - // The policy document. This is a JSON formatted string - policy?: null | string @go(Policy,*string) -} - -#RepositoryPolicyObservation: { - id?: null | string @go(ID,*string) - - // The policy document. This is a JSON formatted string - policy?: null | string @go(Policy,*string) - - // The registry ID where the repository was created. - registryId?: null | string @go(RegistryID,*string) - - // Name of the repository to apply the policy. - repository?: null | string @go(Repository,*string) -} - -#RepositoryPolicyParameters: { - // The policy document. This is a JSON formatted string - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Name of the repository to apply the policy. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ecr/v1beta1.Repository - // +kubebuilder:validation:Optional - repository?: null | string @go(Repository,*string) - - // Reference to a Repository in ecr to populate repository. - // +kubebuilder:validation:Optional - repositoryRef?: null | v1.#Reference @go(RepositoryRef,*v1.Reference) - - // Selector for a Repository in ecr to populate repository. - // +kubebuilder:validation:Optional - repositorySelector?: null | v1.#Selector @go(RepositorySelector,*v1.Selector) -} - -// RepositoryPolicySpec defines the desired state of RepositoryPolicy -#RepositoryPolicySpec: { - v1.#ResourceSpec - forProvider: #RepositoryPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RepositoryPolicyInitParameters @go(InitProvider) -} - -// RepositoryPolicyStatus defines the observed state of RepositoryPolicy. -#RepositoryPolicyStatus: { - v1.#ResourceStatus - atProvider?: #RepositoryPolicyObservation @go(AtProvider) -} - -// RepositoryPolicy is the Schema for the RepositoryPolicys API. Provides an Elastic Container Registry Repository Policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RepositoryPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #RepositoryPolicySpec @go(Spec) - status?: #RepositoryPolicyStatus @go(Status) -} - -// RepositoryPolicyList contains a list of RepositoryPolicys -#RepositoryPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RepositoryPolicy] @go(Items,[]RepositoryPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecrpublic/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecrpublic/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 028dab4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecrpublic/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecrpublic/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=ecrpublic.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "ecrpublic.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecrpublic/v1beta1/zz_repository_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecrpublic/v1beta1/zz_repository_types_go_gen.cue deleted file mode 100644 index 0c628f9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecrpublic/v1beta1/zz_repository_types_go_gen.cue +++ /dev/null @@ -1,172 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecrpublic/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CatalogDataInitParameters: { - // A detailed description of the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format. - aboutText?: null | string @go(AboutText,*string) - - // The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures will appear as badges on the repository and are used as search filters: ARM, ARM 64, x86, x86-64 - architectures?: [...null | string] @go(Architectures,[]*string) - - // A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery. - description?: null | string @go(Description,*string) - - // The base64-encoded repository logo payload. (Only visible for verified accounts) Note that drift detection is disabled for this attribute. - logoImageBlob?: null | string @go(LogoImageBlob,*string) - - // The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems will appear as badges on the repository and are used as search filters: Linux, Windows - operatingSystems?: [...null | string] @go(OperatingSystems,[]*string) - - // Detailed information on how to use the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format. - usageText?: null | string @go(UsageText,*string) -} - -#CatalogDataObservation: { - // A detailed description of the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format. - aboutText?: null | string @go(AboutText,*string) - - // The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures will appear as badges on the repository and are used as search filters: ARM, ARM 64, x86, x86-64 - architectures?: [...null | string] @go(Architectures,[]*string) - - // A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery. - description?: null | string @go(Description,*string) - - // The base64-encoded repository logo payload. (Only visible for verified accounts) Note that drift detection is disabled for this attribute. - logoImageBlob?: null | string @go(LogoImageBlob,*string) - - // The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems will appear as badges on the repository and are used as search filters: Linux, Windows - operatingSystems?: [...null | string] @go(OperatingSystems,[]*string) - - // Detailed information on how to use the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format. - usageText?: null | string @go(UsageText,*string) -} - -#CatalogDataParameters: { - // A detailed description of the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format. - // +kubebuilder:validation:Optional - aboutText?: null | string @go(AboutText,*string) - - // The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures will appear as badges on the repository and are used as search filters: ARM, ARM 64, x86, x86-64 - // +kubebuilder:validation:Optional - architectures?: [...null | string] @go(Architectures,[]*string) - - // A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The base64-encoded repository logo payload. (Only visible for verified accounts) Note that drift detection is disabled for this attribute. - // +kubebuilder:validation:Optional - logoImageBlob?: null | string @go(LogoImageBlob,*string) - - // The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems will appear as badges on the repository and are used as search filters: Linux, Windows - // +kubebuilder:validation:Optional - operatingSystems?: [...null | string] @go(OperatingSystems,[]*string) - - // Detailed information on how to use the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format. - // +kubebuilder:validation:Optional - usageText?: null | string @go(UsageText,*string) -} - -#RepositoryInitParameters: { - // Catalog data configuration for the repository. See below for schema. - catalogData?: [...#CatalogDataInitParameters] @go(CatalogData,[]CatalogDataInitParameters) - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RepositoryObservation: { - // Full ARN of the repository. - arn?: null | string @go(Arn,*string) - - // Catalog data configuration for the repository. See below for schema. - catalogData?: [...#CatalogDataObservation] @go(CatalogData,[]CatalogDataObservation) - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // The repository name. - id?: null | string @go(ID,*string) - - // The registry ID where the repository was created. - registryId?: null | string @go(RegistryID,*string) - - // The URI of the repository. - repositoryUri?: null | string @go(RepositoryURI,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RepositoryParameters: { - // Catalog data configuration for the repository. See below for schema. - // +kubebuilder:validation:Optional - catalogData?: [...#CatalogDataParameters] @go(CatalogData,[]CatalogDataParameters) - - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RepositorySpec defines the desired state of Repository -#RepositorySpec: { - v1.#ResourceSpec - forProvider: #RepositoryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RepositoryInitParameters @go(InitProvider) -} - -// RepositoryStatus defines the observed state of Repository. -#RepositoryStatus: { - v1.#ResourceStatus - atProvider?: #RepositoryObservation @go(AtProvider) -} - -// Repository is the Schema for the Repositorys API. Provides a Public Elastic Container Registry Repository. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Repository: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RepositorySpec @go(Spec) - status?: #RepositoryStatus @go(Status) -} - -// RepositoryList contains a list of Repositorys -#RepositoryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Repository] @go(Items,[]Repository) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecrpublic/v1beta1/zz_repositorypolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecrpublic/v1beta1/zz_repositorypolicy_types_go_gen.cue deleted file mode 100644 index f8d0c0c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecrpublic/v1beta1/zz_repositorypolicy_types_go_gen.cue +++ /dev/null @@ -1,99 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecrpublic/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RepositoryPolicyInitParameters: { - // The policy document. This is a JSON formatted string - policy?: null | string @go(Policy,*string) -} - -#RepositoryPolicyObservation: { - id?: null | string @go(ID,*string) - - // The policy document. This is a JSON formatted string - policy?: null | string @go(Policy,*string) - - // The registry ID where the repository was created. - registryId?: null | string @go(RegistryID,*string) - - // Name of the repository to apply the policy. - repositoryName?: null | string @go(RepositoryName,*string) -} - -#RepositoryPolicyParameters: { - // The policy document. This is a JSON formatted string - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Name of the repository to apply the policy. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ecrpublic/v1beta1.Repository - // +kubebuilder:validation:Optional - repositoryName?: null | string @go(RepositoryName,*string) - - // Reference to a Repository in ecrpublic to populate repositoryName. - // +kubebuilder:validation:Optional - repositoryNameRef?: null | v1.#Reference @go(RepositoryNameRef,*v1.Reference) - - // Selector for a Repository in ecrpublic to populate repositoryName. - // +kubebuilder:validation:Optional - repositoryNameSelector?: null | v1.#Selector @go(RepositoryNameSelector,*v1.Selector) -} - -// RepositoryPolicySpec defines the desired state of RepositoryPolicy -#RepositoryPolicySpec: { - v1.#ResourceSpec - forProvider: #RepositoryPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RepositoryPolicyInitParameters @go(InitProvider) -} - -// RepositoryPolicyStatus defines the observed state of RepositoryPolicy. -#RepositoryPolicyStatus: { - v1.#ResourceStatus - atProvider?: #RepositoryPolicyObservation @go(AtProvider) -} - -// RepositoryPolicy is the Schema for the RepositoryPolicys API. Provides an Elastic Container Registry Public Repository Policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RepositoryPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #RepositoryPolicySpec @go(Spec) - status?: #RepositoryPolicyStatus @go(Status) -} - -// RepositoryPolicyList contains a list of RepositoryPolicys -#RepositoryPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RepositoryPolicy] @go(Items,[]RepositoryPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_accountsettingdefault_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_accountsettingdefault_types_go_gen.cue deleted file mode 100644 index a4a0886..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_accountsettingdefault_types_go_gen.cue +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountSettingDefaultInitParameters: { - // Name of the account setting to set. Valid values are serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking and containerInsights. - name?: null | string @go(Name,*string) - - // State of the setting. Valid values are enabled and disabled. - value?: null | string @go(Value,*string) -} - -#AccountSettingDefaultObservation: { - // ARN that identifies the account setting. - id?: null | string @go(ID,*string) - - // Name of the account setting to set. Valid values are serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking and containerInsights. - name?: null | string @go(Name,*string) - principalArn?: null | string @go(PrincipalArn,*string) - - // State of the setting. Valid values are enabled and disabled. - value?: null | string @go(Value,*string) -} - -#AccountSettingDefaultParameters: { - // Name of the account setting to set. Valid values are serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking and containerInsights. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // State of the setting. Valid values are enabled and disabled. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// AccountSettingDefaultSpec defines the desired state of AccountSettingDefault -#AccountSettingDefaultSpec: { - v1.#ResourceSpec - forProvider: #AccountSettingDefaultParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccountSettingDefaultInitParameters @go(InitProvider) -} - -// AccountSettingDefaultStatus defines the observed state of AccountSettingDefault. -#AccountSettingDefaultStatus: { - v1.#ResourceStatus - atProvider?: #AccountSettingDefaultObservation @go(AtProvider) -} - -// AccountSettingDefault is the Schema for the AccountSettingDefaults API. Provides an ECS Default account setting. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AccountSettingDefault: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.value) || (has(self.initProvider) && has(self.initProvider.value))",message="spec.forProvider.value is a required parameter" - spec: #AccountSettingDefaultSpec @go(Spec) - status?: #AccountSettingDefaultStatus @go(Status) -} - -// AccountSettingDefaultList contains a list of AccountSettingDefaults -#AccountSettingDefaultList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AccountSettingDefault] @go(Items,[]AccountSettingDefault) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_capacityprovider_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_capacityprovider_types_go_gen.cue deleted file mode 100644 index b319a01..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_capacityprovider_types_go_gen.cue +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AutoScalingGroupProviderInitParameters: { - // - Configuration block defining the parameters of the auto scaling. Detailed below. - managedScaling?: [...#ManagedScalingInitParameters] @go(ManagedScaling,[]ManagedScalingInitParameters) - - // - Enables or disables container-aware termination of instances in the auto scaling group when scale-in happens. Valid values are ENABLED and DISABLED. - managedTerminationProtection?: null | string @go(ManagedTerminationProtection,*string) -} - -#AutoScalingGroupProviderObservation: { - // - ARN of the associated auto scaling group. - autoScalingGroupArn?: null | string @go(AutoScalingGroupArn,*string) - - // - Configuration block defining the parameters of the auto scaling. Detailed below. - managedScaling?: [...#ManagedScalingObservation] @go(ManagedScaling,[]ManagedScalingObservation) - - // - Enables or disables container-aware termination of instances in the auto scaling group when scale-in happens. Valid values are ENABLED and DISABLED. - managedTerminationProtection?: null | string @go(ManagedTerminationProtection,*string) -} - -#AutoScalingGroupProviderParameters: { - // - ARN of the associated auto scaling group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/autoscaling/v1beta1.AutoscalingGroup - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - autoScalingGroupArn?: null | string @go(AutoScalingGroupArn,*string) - - // Reference to a AutoscalingGroup in autoscaling to populate autoScalingGroupArn. - // +kubebuilder:validation:Optional - autoScalingGroupArnRef?: null | v1.#Reference @go(AutoScalingGroupArnRef,*v1.Reference) - - // Selector for a AutoscalingGroup in autoscaling to populate autoScalingGroupArn. - // +kubebuilder:validation:Optional - autoScalingGroupArnSelector?: null | v1.#Selector @go(AutoScalingGroupArnSelector,*v1.Selector) - - // - Configuration block defining the parameters of the auto scaling. Detailed below. - // +kubebuilder:validation:Optional - managedScaling?: [...#ManagedScalingParameters] @go(ManagedScaling,[]ManagedScalingParameters) - - // - Enables or disables container-aware termination of instances in the auto scaling group when scale-in happens. Valid values are ENABLED and DISABLED. - // +kubebuilder:validation:Optional - managedTerminationProtection?: null | string @go(ManagedTerminationProtection,*string) -} - -#CapacityProviderInitParameters: { - // Configuration block for the provider for the ECS auto scaling group. Detailed below. - autoScalingGroupProvider?: [...#AutoScalingGroupProviderInitParameters] @go(AutoScalingGroupProvider,[]AutoScalingGroupProviderInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CapacityProviderObservation: { - // ARN that identifies the capacity provider. - arn?: null | string @go(Arn,*string) - - // Configuration block for the provider for the ECS auto scaling group. Detailed below. - autoScalingGroupProvider?: [...#AutoScalingGroupProviderObservation] @go(AutoScalingGroupProvider,[]AutoScalingGroupProviderObservation) - - // ARN that identifies the capacity provider. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#CapacityProviderParameters: { - // Configuration block for the provider for the ECS auto scaling group. Detailed below. - // +kubebuilder:validation:Optional - autoScalingGroupProvider?: [...#AutoScalingGroupProviderParameters] @go(AutoScalingGroupProvider,[]AutoScalingGroupProviderParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ManagedScalingInitParameters: { - // Period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics for Auto Scaling group. If this parameter is omitted, the default value of 300 seconds is used. - instanceWarmupPeriod?: null | float64 @go(InstanceWarmupPeriod,*float64) - - // Maximum step adjustment size. A number between 1 and 10,000. - maximumScalingStepSize?: null | float64 @go(MaximumScalingStepSize,*float64) - - // Minimum step adjustment size. A number between 1 and 10,000. - minimumScalingStepSize?: null | float64 @go(MinimumScalingStepSize,*float64) - - // Whether auto scaling is managed by ECS. Valid values are ENABLED and DISABLED. - status?: null | string @go(Status,*string) - - // Target utilization for the capacity provider. A number between 1 and 100. - targetCapacity?: null | float64 @go(TargetCapacity,*float64) -} - -#ManagedScalingObservation: { - // Period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics for Auto Scaling group. If this parameter is omitted, the default value of 300 seconds is used. - instanceWarmupPeriod?: null | float64 @go(InstanceWarmupPeriod,*float64) - - // Maximum step adjustment size. A number between 1 and 10,000. - maximumScalingStepSize?: null | float64 @go(MaximumScalingStepSize,*float64) - - // Minimum step adjustment size. A number between 1 and 10,000. - minimumScalingStepSize?: null | float64 @go(MinimumScalingStepSize,*float64) - - // Whether auto scaling is managed by ECS. Valid values are ENABLED and DISABLED. - status?: null | string @go(Status,*string) - - // Target utilization for the capacity provider. A number between 1 and 100. - targetCapacity?: null | float64 @go(TargetCapacity,*float64) -} - -#ManagedScalingParameters: { - // Period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics for Auto Scaling group. If this parameter is omitted, the default value of 300 seconds is used. - // +kubebuilder:validation:Optional - instanceWarmupPeriod?: null | float64 @go(InstanceWarmupPeriod,*float64) - - // Maximum step adjustment size. A number between 1 and 10,000. - // +kubebuilder:validation:Optional - maximumScalingStepSize?: null | float64 @go(MaximumScalingStepSize,*float64) - - // Minimum step adjustment size. A number between 1 and 10,000. - // +kubebuilder:validation:Optional - minimumScalingStepSize?: null | float64 @go(MinimumScalingStepSize,*float64) - - // Whether auto scaling is managed by ECS. Valid values are ENABLED and DISABLED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // Target utilization for the capacity provider. A number between 1 and 100. - // +kubebuilder:validation:Optional - targetCapacity?: null | float64 @go(TargetCapacity,*float64) -} - -// CapacityProviderSpec defines the desired state of CapacityProvider -#CapacityProviderSpec: { - v1.#ResourceSpec - forProvider: #CapacityProviderParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CapacityProviderInitParameters @go(InitProvider) -} - -// CapacityProviderStatus defines the observed state of CapacityProvider. -#CapacityProviderStatus: { - v1.#ResourceStatus - atProvider?: #CapacityProviderObservation @go(AtProvider) -} - -// CapacityProvider is the Schema for the CapacityProviders API. Provides an ECS cluster capacity provider. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CapacityProvider: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.autoScalingGroupProvider) || (has(self.initProvider) && has(self.initProvider.autoScalingGroupProvider))",message="spec.forProvider.autoScalingGroupProvider is a required parameter" - spec: #CapacityProviderSpec @go(Spec) - status?: #CapacityProviderStatus @go(Status) -} - -// CapacityProviderList contains a list of CapacityProviders -#CapacityProviderList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CapacityProvider] @go(Items,[]CapacityProvider) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_cluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_cluster_types_go_gen.cue deleted file mode 100644 index 847b7ea..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_cluster_types_go_gen.cue +++ /dev/null @@ -1,314 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterInitParameters: { - // The execute command configuration for the cluster. Detailed below. - configuration?: [...#ConfigurationInitParameters] @go(Configuration,[]ConfigurationInitParameters) - - // Configuration block for capacity provider strategy to use by default for the cluster. Can be one or more. Detailed below. - defaultCapacityProviderStrategy?: [...#DefaultCapacityProviderStrategyInitParameters] @go(DefaultCapacityProviderStrategy,[]DefaultCapacityProviderStrategyInitParameters) - - // Configures a default Service Connect namespace. Detailed below. - serviceConnectDefaults?: [...#ServiceConnectDefaultsInitParameters] @go(ServiceConnectDefaults,[]ServiceConnectDefaultsInitParameters) - - // Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. Detailed below. - setting?: [...#SettingInitParameters] @go(Setting,[]SettingInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterObservation: { - // ARN that identifies the cluster. - arn?: null | string @go(Arn,*string) - - // List of short names of one or more capacity providers to associate with the cluster. Valid values also include FARGATE and FARGATE_SPOT. - capacityProviders?: [...null | string] @go(CapacityProviders,[]*string) - - // The execute command configuration for the cluster. Detailed below. - configuration?: [...#ConfigurationObservation] @go(Configuration,[]ConfigurationObservation) - - // Configuration block for capacity provider strategy to use by default for the cluster. Can be one or more. Detailed below. - defaultCapacityProviderStrategy?: [...#DefaultCapacityProviderStrategyObservation] @go(DefaultCapacityProviderStrategy,[]DefaultCapacityProviderStrategyObservation) - - // ARN that identifies the cluster. - id?: null | string @go(ID,*string) - - // Configures a default Service Connect namespace. Detailed below. - serviceConnectDefaults?: [...#ServiceConnectDefaultsObservation] @go(ServiceConnectDefaults,[]ServiceConnectDefaultsObservation) - - // Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. Detailed below. - setting?: [...#SettingObservation] @go(Setting,[]SettingObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ClusterParameters: { - // The execute command configuration for the cluster. Detailed below. - // +kubebuilder:validation:Optional - configuration?: [...#ConfigurationParameters] @go(Configuration,[]ConfigurationParameters) - - // Configuration block for capacity provider strategy to use by default for the cluster. Can be one or more. Detailed below. - // +kubebuilder:validation:Optional - defaultCapacityProviderStrategy?: [...#DefaultCapacityProviderStrategyParameters] @go(DefaultCapacityProviderStrategy,[]DefaultCapacityProviderStrategyParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configures a default Service Connect namespace. Detailed below. - // +kubebuilder:validation:Optional - serviceConnectDefaults?: [...#ServiceConnectDefaultsParameters] @go(ServiceConnectDefaults,[]ServiceConnectDefaultsParameters) - - // Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. Detailed below. - // +kubebuilder:validation:Optional - setting?: [...#SettingParameters] @go(Setting,[]SettingParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ConfigurationInitParameters: { - // The details of the execute command configuration. Detailed below. - executeCommandConfiguration?: [...#ExecuteCommandConfigurationInitParameters] @go(ExecuteCommandConfiguration,[]ExecuteCommandConfigurationInitParameters) -} - -#ConfigurationObservation: { - // The details of the execute command configuration. Detailed below. - executeCommandConfiguration?: [...#ExecuteCommandConfigurationObservation] @go(ExecuteCommandConfiguration,[]ExecuteCommandConfigurationObservation) -} - -#ConfigurationParameters: { - // The details of the execute command configuration. Detailed below. - // +kubebuilder:validation:Optional - executeCommandConfiguration?: [...#ExecuteCommandConfigurationParameters] @go(ExecuteCommandConfiguration,[]ExecuteCommandConfigurationParameters) -} - -#DefaultCapacityProviderStrategyInitParameters: { - // The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. - base?: null | float64 @go(Base,*float64) - - // The short name of the capacity provider. - capacityProvider?: null | string @go(CapacityProvider,*string) - - // The relative percentage of the total number of launched tasks that should use the specified capacity provider. - weight?: null | float64 @go(Weight,*float64) -} - -#DefaultCapacityProviderStrategyObservation: { - // The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. - base?: null | float64 @go(Base,*float64) - - // The short name of the capacity provider. - capacityProvider?: null | string @go(CapacityProvider,*string) - - // The relative percentage of the total number of launched tasks that should use the specified capacity provider. - weight?: null | float64 @go(Weight,*float64) -} - -#DefaultCapacityProviderStrategyParameters: { - // The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. - // +kubebuilder:validation:Optional - base?: null | float64 @go(Base,*float64) - - // The short name of the capacity provider. - // +kubebuilder:validation:Optional - capacityProvider?: null | string @go(CapacityProvider,*string) - - // The relative percentage of the total number of launched tasks that should use the specified capacity provider. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -#ExecuteCommandConfigurationInitParameters: { - // The AWS Key Management Service key ID to encrypt the data between the local client and the container. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The log configuration for the results of the execute command actions Required when logging is OVERRIDE. Detailed below. - logConfiguration?: [...#LogConfigurationInitParameters] @go(LogConfiguration,[]LogConfigurationInitParameters) - - // The log setting to use for redirecting logs for your execute command results. Valid values are NONE, DEFAULT, and OVERRIDE. - logging?: null | string @go(Logging,*string) -} - -#ExecuteCommandConfigurationObservation: { - // The AWS Key Management Service key ID to encrypt the data between the local client and the container. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The log configuration for the results of the execute command actions Required when logging is OVERRIDE. Detailed below. - logConfiguration?: [...#LogConfigurationObservation] @go(LogConfiguration,[]LogConfigurationObservation) - - // The log setting to use for redirecting logs for your execute command results. Valid values are NONE, DEFAULT, and OVERRIDE. - logging?: null | string @go(Logging,*string) -} - -#ExecuteCommandConfigurationParameters: { - // The AWS Key Management Service key ID to encrypt the data between the local client and the container. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The log configuration for the results of the execute command actions Required when logging is OVERRIDE. Detailed below. - // +kubebuilder:validation:Optional - logConfiguration?: [...#LogConfigurationParameters] @go(LogConfiguration,[]LogConfigurationParameters) - - // The log setting to use for redirecting logs for your execute command results. Valid values are NONE, DEFAULT, and OVERRIDE. - // +kubebuilder:validation:Optional - logging?: null | string @go(Logging,*string) -} - -#LogConfigurationInitParameters: { - // Whether or not to enable encryption on the CloudWatch logs. If not specified, encryption will be disabled. - cloudWatchEncryptionEnabled?: null | bool @go(CloudWatchEncryptionEnabled,*bool) - - // The name of the CloudWatch log group to send logs to. - cloudWatchLogGroupName?: null | string @go(CloudWatchLogGroupName,*string) - - // Whether or not to enable encryption on the logs sent to S3. If not specified, encryption will be disabled. - s3BucketEncryptionEnabled?: null | bool @go(S3BucketEncryptionEnabled,*bool) - - // The name of the S3 bucket to send logs to. - s3BucketName?: null | string @go(S3BucketName,*string) - - // An optional folder in the S3 bucket to place logs in. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) -} - -#LogConfigurationObservation: { - // Whether or not to enable encryption on the CloudWatch logs. If not specified, encryption will be disabled. - cloudWatchEncryptionEnabled?: null | bool @go(CloudWatchEncryptionEnabled,*bool) - - // The name of the CloudWatch log group to send logs to. - cloudWatchLogGroupName?: null | string @go(CloudWatchLogGroupName,*string) - - // Whether or not to enable encryption on the logs sent to S3. If not specified, encryption will be disabled. - s3BucketEncryptionEnabled?: null | bool @go(S3BucketEncryptionEnabled,*bool) - - // The name of the S3 bucket to send logs to. - s3BucketName?: null | string @go(S3BucketName,*string) - - // An optional folder in the S3 bucket to place logs in. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) -} - -#LogConfigurationParameters: { - // Whether or not to enable encryption on the CloudWatch logs. If not specified, encryption will be disabled. - // +kubebuilder:validation:Optional - cloudWatchEncryptionEnabled?: null | bool @go(CloudWatchEncryptionEnabled,*bool) - - // The name of the CloudWatch log group to send logs to. - // +kubebuilder:validation:Optional - cloudWatchLogGroupName?: null | string @go(CloudWatchLogGroupName,*string) - - // Whether or not to enable encryption on the logs sent to S3. If not specified, encryption will be disabled. - // +kubebuilder:validation:Optional - s3BucketEncryptionEnabled?: null | bool @go(S3BucketEncryptionEnabled,*bool) - - // The name of the S3 bucket to send logs to. - // +kubebuilder:validation:Optional - s3BucketName?: null | string @go(S3BucketName,*string) - - // An optional folder in the S3 bucket to place logs in. - // +kubebuilder:validation:Optional - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) -} - -#ServiceConnectDefaultsInitParameters: { - // The ARN of the aws_service_discovery_http_namespace that's used when you create a service and don't specify a Service Connect configuration. - namespace?: null | string @go(Namespace,*string) -} - -#ServiceConnectDefaultsObservation: { - // The ARN of the aws_service_discovery_http_namespace that's used when you create a service and don't specify a Service Connect configuration. - namespace?: null | string @go(Namespace,*string) -} - -#ServiceConnectDefaultsParameters: { - // The ARN of the aws_service_discovery_http_namespace that's used when you create a service and don't specify a Service Connect configuration. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) -} - -#SettingInitParameters: { - // Name of the setting to manage. Valid values: containerInsights. - name?: null | string @go(Name,*string) - - // The value to assign to the setting. Valid values are enabled and disabled. - value?: null | string @go(Value,*string) -} - -#SettingObservation: { - // Name of the setting to manage. Valid values: containerInsights. - name?: null | string @go(Name,*string) - - // The value to assign to the setting. Valid values are enabled and disabled. - value?: null | string @go(Value,*string) -} - -#SettingParameters: { - // Name of the setting to manage. Valid values: containerInsights. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value to assign to the setting. Valid values are enabled and disabled. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// ClusterSpec defines the desired state of Cluster -#ClusterSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInitParameters @go(InitProvider) -} - -// ClusterStatus defines the observed state of Cluster. -#ClusterStatus: { - v1.#ResourceStatus - atProvider?: #ClusterObservation @go(AtProvider) -} - -// Cluster is the Schema for the Clusters API. Provides an ECS cluster. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Cluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ClusterSpec @go(Spec) - status?: #ClusterStatus @go(Status) -} - -// ClusterList contains a list of Clusters -#ClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Cluster] @go(Items,[]Cluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_clustercapacityproviders_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_clustercapacityproviders_types_go_gen.cue deleted file mode 100644 index 7e1971f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_clustercapacityproviders_types_go_gen.cue +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterCapacityProvidersDefaultCapacityProviderStrategyInitParameters: { - // The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. Defaults to 0. - base?: null | float64 @go(Base,*float64) - - // Name of the capacity provider. - capacityProvider?: null | string @go(CapacityProvider,*string) - - // The relative percentage of the total number of launched tasks that should use the specified capacity provider. The weight value is taken into consideration after the base count of tasks has been satisfied. Defaults to 0. - weight?: null | float64 @go(Weight,*float64) -} - -#ClusterCapacityProvidersDefaultCapacityProviderStrategyObservation: { - // The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. Defaults to 0. - base?: null | float64 @go(Base,*float64) - - // Name of the capacity provider. - capacityProvider?: null | string @go(CapacityProvider,*string) - - // The relative percentage of the total number of launched tasks that should use the specified capacity provider. The weight value is taken into consideration after the base count of tasks has been satisfied. Defaults to 0. - weight?: null | float64 @go(Weight,*float64) -} - -#ClusterCapacityProvidersDefaultCapacityProviderStrategyParameters: { - // The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. Defaults to 0. - // +kubebuilder:validation:Optional - base?: null | float64 @go(Base,*float64) - - // Name of the capacity provider. - // +kubebuilder:validation:Optional - capacityProvider?: null | string @go(CapacityProvider,*string) - - // The relative percentage of the total number of launched tasks that should use the specified capacity provider. The weight value is taken into consideration after the base count of tasks has been satisfied. Defaults to 0. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -#ClusterCapacityProvidersInitParameters: { - // Set of names of one or more capacity providers to associate with the cluster. Valid values also include FARGATE and FARGATE_SPOT. - capacityProviders?: [...null | string] @go(CapacityProviders,[]*string) - - // Set of capacity provider strategies to use by default for the cluster. Detailed below. - defaultCapacityProviderStrategy?: [...#ClusterCapacityProvidersDefaultCapacityProviderStrategyInitParameters] @go(DefaultCapacityProviderStrategy,[]ClusterCapacityProvidersDefaultCapacityProviderStrategyInitParameters) -} - -#ClusterCapacityProvidersObservation: { - // Set of names of one or more capacity providers to associate with the cluster. Valid values also include FARGATE and FARGATE_SPOT. - capacityProviders?: [...null | string] @go(CapacityProviders,[]*string) - - // Name of the ECS cluster to manage capacity providers for. - clusterName?: null | string @go(ClusterName,*string) - - // Set of capacity provider strategies to use by default for the cluster. Detailed below. - defaultCapacityProviderStrategy?: [...#ClusterCapacityProvidersDefaultCapacityProviderStrategyObservation] @go(DefaultCapacityProviderStrategy,[]ClusterCapacityProvidersDefaultCapacityProviderStrategyObservation) - - // Same as cluster_name. - id?: null | string @go(ID,*string) -} - -#ClusterCapacityProvidersParameters: { - // Set of names of one or more capacity providers to associate with the cluster. Valid values also include FARGATE and FARGATE_SPOT. - // +kubebuilder:validation:Optional - capacityProviders?: [...null | string] @go(CapacityProviders,[]*string) - - // Name of the ECS cluster to manage capacity providers for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ecs/v1beta1.Cluster - // +kubebuilder:validation:Optional - clusterName?: null | string @go(ClusterName,*string) - - // Reference to a Cluster in ecs to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameRef?: null | v1.#Reference @go(ClusterNameRef,*v1.Reference) - - // Selector for a Cluster in ecs to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameSelector?: null | v1.#Selector @go(ClusterNameSelector,*v1.Selector) - - // Set of capacity provider strategies to use by default for the cluster. Detailed below. - // +kubebuilder:validation:Optional - defaultCapacityProviderStrategy?: [...#ClusterCapacityProvidersDefaultCapacityProviderStrategyParameters] @go(DefaultCapacityProviderStrategy,[]ClusterCapacityProvidersDefaultCapacityProviderStrategyParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ClusterCapacityProvidersSpec defines the desired state of ClusterCapacityProviders -#ClusterCapacityProvidersSpec: { - v1.#ResourceSpec - forProvider: #ClusterCapacityProvidersParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterCapacityProvidersInitParameters @go(InitProvider) -} - -// ClusterCapacityProvidersStatus defines the observed state of ClusterCapacityProviders. -#ClusterCapacityProvidersStatus: { - v1.#ResourceStatus - atProvider?: #ClusterCapacityProvidersObservation @go(AtProvider) -} - -// ClusterCapacityProviders is the Schema for the ClusterCapacityProviderss API. Provides an ECS cluster capacity providers resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterCapacityProviders: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ClusterCapacityProvidersSpec @go(Spec) - status?: #ClusterCapacityProvidersStatus @go(Status) -} - -// ClusterCapacityProvidersList contains a list of ClusterCapacityProviderss -#ClusterCapacityProvidersList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterCapacityProviders] @go(Items,[]ClusterCapacityProviders) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 99af4f3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecs/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=ecs.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "ecs.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_service_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_service_types_go_gen.cue deleted file mode 100644 index a83c8d6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_service_types_go_gen.cue +++ /dev/null @@ -1,866 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AlarmsInitParameters: { - // One or more CloudWatch alarm names. - alarmNames?: [...null | string] @go(AlarmNames,[]*string) - - // Determines whether to use the CloudWatch alarm option in the service deployment process. - enable?: null | bool @go(Enable,*bool) - - // Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully. - rollback?: null | bool @go(Rollback,*bool) -} - -#AlarmsObservation: { - // One or more CloudWatch alarm names. - alarmNames?: [...null | string] @go(AlarmNames,[]*string) - - // Determines whether to use the CloudWatch alarm option in the service deployment process. - enable?: null | bool @go(Enable,*bool) - - // Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully. - rollback?: null | bool @go(Rollback,*bool) -} - -#AlarmsParameters: { - // One or more CloudWatch alarm names. - // +kubebuilder:validation:Optional - alarmNames: [...null | string] @go(AlarmNames,[]*string) - - // Determines whether to use the CloudWatch alarm option in the service deployment process. - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully. - // +kubebuilder:validation:Optional - rollback?: null | bool @go(Rollback,*bool) -} - -#CapacityProviderStrategyInitParameters: { - // Number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. - base?: null | float64 @go(Base,*float64) - - // Short name of the capacity provider. - capacityProvider?: null | string @go(CapacityProvider,*string) - - // Relative percentage of the total number of launched tasks that should use the specified capacity provider. - weight?: null | float64 @go(Weight,*float64) -} - -#CapacityProviderStrategyObservation: { - // Number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. - base?: null | float64 @go(Base,*float64) - - // Short name of the capacity provider. - capacityProvider?: null | string @go(CapacityProvider,*string) - - // Relative percentage of the total number of launched tasks that should use the specified capacity provider. - weight?: null | float64 @go(Weight,*float64) -} - -#CapacityProviderStrategyParameters: { - // Number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. - // +kubebuilder:validation:Optional - base?: null | float64 @go(Base,*float64) - - // Short name of the capacity provider. - // +kubebuilder:validation:Optional - capacityProvider?: null | string @go(CapacityProvider,*string) - - // Relative percentage of the total number of launched tasks that should use the specified capacity provider. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -#ClientAliasInitParameters: { - // The name that you use in the applications of client tasks to connect to this service. - dnsName?: null | string @go(DNSName,*string) - - // The listening port number for the Service Connect proxy. This port is available inside of all of the tasks within the same namespace. - port?: null | float64 @go(Port,*float64) -} - -#ClientAliasObservation: { - // The name that you use in the applications of client tasks to connect to this service. - dnsName?: null | string @go(DNSName,*string) - - // The listening port number for the Service Connect proxy. This port is available inside of all of the tasks within the same namespace. - port?: null | float64 @go(Port,*float64) -} - -#ClientAliasParameters: { - // The name that you use in the applications of client tasks to connect to this service. - // +kubebuilder:validation:Optional - dnsName?: null | string @go(DNSName,*string) - - // The listening port number for the Service Connect proxy. This port is available inside of all of the tasks within the same namespace. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) -} - -#DeploymentCircuitBreakerInitParameters: { - // Whether to enable the deployment circuit breaker logic for the service. - enable?: null | bool @go(Enable,*bool) - - // Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully. - rollback?: null | bool @go(Rollback,*bool) -} - -#DeploymentCircuitBreakerObservation: { - // Whether to enable the deployment circuit breaker logic for the service. - enable?: null | bool @go(Enable,*bool) - - // Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully. - rollback?: null | bool @go(Rollback,*bool) -} - -#DeploymentCircuitBreakerParameters: { - // Whether to enable the deployment circuit breaker logic for the service. - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully. - // +kubebuilder:validation:Optional - rollback?: null | bool @go(Rollback,*bool) -} - -#DeploymentControllerInitParameters: { - // Type of deployment controller. Valid values: CODE_DEPLOY, ECS, EXTERNAL. Default: ECS. - type?: null | string @go(Type,*string) -} - -#DeploymentControllerObservation: { - // Type of deployment controller. Valid values: CODE_DEPLOY, ECS, EXTERNAL. Default: ECS. - type?: null | string @go(Type,*string) -} - -#DeploymentControllerParameters: { - // Type of deployment controller. Valid values: CODE_DEPLOY, ECS, EXTERNAL. Default: ECS. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#LoadBalancerInitParameters: { - // Name of the container to associate with the load balancer (as it appears in a container definition). - containerName?: null | string @go(ContainerName,*string) - - // Port on the container to associate with the load balancer. - containerPort?: null | float64 @go(ContainerPort,*float64) - - // Name of the ELB (Classic) to associate with the service. - elbName?: null | string @go(ELBName,*string) -} - -#LoadBalancerObservation: { - // Name of the container to associate with the load balancer (as it appears in a container definition). - containerName?: null | string @go(ContainerName,*string) - - // Port on the container to associate with the load balancer. - containerPort?: null | float64 @go(ContainerPort,*float64) - - // Name of the ELB (Classic) to associate with the service. - elbName?: null | string @go(ELBName,*string) - - // ARN of the Load Balancer target group to associate with the service. - targetGroupArn?: null | string @go(TargetGroupArn,*string) -} - -#LoadBalancerParameters: { - // Name of the container to associate with the load balancer (as it appears in a container definition). - // +kubebuilder:validation:Optional - containerName?: null | string @go(ContainerName,*string) - - // Port on the container to associate with the load balancer. - // +kubebuilder:validation:Optional - containerPort?: null | float64 @go(ContainerPort,*float64) - - // Name of the ELB (Classic) to associate with the service. - // +kubebuilder:validation:Optional - elbName?: null | string @go(ELBName,*string) - - // ARN of the Load Balancer target group to associate with the service. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elbv2/v1beta1.LBTargetGroup - // +kubebuilder:validation:Optional - targetGroupArn?: null | string @go(TargetGroupArn,*string) - - // Reference to a LBTargetGroup in elbv2 to populate targetGroupArn. - // +kubebuilder:validation:Optional - targetGroupArnRef?: null | v1.#Reference @go(TargetGroupArnRef,*v1.Reference) - - // Selector for a LBTargetGroup in elbv2 to populate targetGroupArn. - // +kubebuilder:validation:Optional - targetGroupArnSelector?: null | v1.#Selector @go(TargetGroupArnSelector,*v1.Selector) -} - -#NetworkConfigurationInitParameters: { - // Assign a public IP address to the ENI (Fargate launch type only). Valid values are true or false. Default false. - assignPublicIp?: null | bool @go(AssignPublicIP,*bool) -} - -#NetworkConfigurationObservation: { - // Assign a public IP address to the ENI (Fargate launch type only). Valid values are true or false. Default false. - assignPublicIp?: null | bool @go(AssignPublicIP,*bool) - - // Security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Subnets associated with the task or service. - subnets?: [...null | string] @go(Subnets,[]*string) -} - -#NetworkConfigurationParameters: { - // Assign a public IP address to the ENI (Fargate launch type only). Valid values are true or false. Default false. - // +kubebuilder:validation:Optional - assignPublicIp?: null | bool @go(AssignPublicIP,*bool) - - // References to SecurityGroup in ec2 to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupRefs?: [...v1.#Reference] @go(SecurityGroupRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupSelector?: null | v1.#Selector @go(SecurityGroupSelector,*v1.Selector) - - // Security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupSelector - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // References to Subnet in ec2 to populate subnets. - // +kubebuilder:validation:Optional - subnetRefs?: [...v1.#Reference] @go(SubnetRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnets. - // +kubebuilder:validation:Optional - subnetSelector?: null | v1.#Selector @go(SubnetSelector,*v1.Selector) - - // Subnets associated with the task or service. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetRefs - // +crossplane:generate:reference:selectorFieldName=SubnetSelector - // +kubebuilder:validation:Optional - subnets?: [...null | string] @go(Subnets,[]*string) -} - -#OrderedPlacementStrategyInitParameters: { - // For the spread placement strategy, valid values are instanceId (or host, - // which has the same effect), or any platform or custom attribute that is applied to a container instance. - // For the binpack type, valid values are memory and cpu. For the random type, this attribute is not - // needed. For more information, see Placement Strategy. - field?: null | string @go(Field,*string) - - // Type of placement strategy. Must be one of: binpack, random, or spread - type?: null | string @go(Type,*string) -} - -#OrderedPlacementStrategyObservation: { - // For the spread placement strategy, valid values are instanceId (or host, - // which has the same effect), or any platform or custom attribute that is applied to a container instance. - // For the binpack type, valid values are memory and cpu. For the random type, this attribute is not - // needed. For more information, see Placement Strategy. - field?: null | string @go(Field,*string) - - // Type of placement strategy. Must be one of: binpack, random, or spread - type?: null | string @go(Type,*string) -} - -#OrderedPlacementStrategyParameters: { - // For the spread placement strategy, valid values are instanceId (or host, - // which has the same effect), or any platform or custom attribute that is applied to a container instance. - // For the binpack type, valid values are memory and cpu. For the random type, this attribute is not - // needed. For more information, see Placement Strategy. - // +kubebuilder:validation:Optional - field?: null | string @go(Field,*string) - - // Type of placement strategy. Must be one of: binpack, random, or spread - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#PlacementConstraintsInitParameters: { - // Cluster Query Language expression to apply to the constraint. Does not need to be specified for the distinctInstance type. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide. - expression?: null | string @go(Expression,*string) - - // Type of constraint. The only valid values at this time are memberOf and distinctInstance. - type?: null | string @go(Type,*string) -} - -#PlacementConstraintsObservation: { - // Cluster Query Language expression to apply to the constraint. Does not need to be specified for the distinctInstance type. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide. - expression?: null | string @go(Expression,*string) - - // Type of constraint. The only valid values at this time are memberOf and distinctInstance. - type?: null | string @go(Type,*string) -} - -#PlacementConstraintsParameters: { - // Cluster Query Language expression to apply to the constraint. Does not need to be specified for the distinctInstance type. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide. - // +kubebuilder:validation:Optional - expression?: null | string @go(Expression,*string) - - // Type of constraint. The only valid values at this time are memberOf and distinctInstance. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#SecretOptionInitParameters: { - // The name of the secret. - name?: null | string @go(Name,*string) - - // The secret to expose to the container. The supported values are either the full ARN of the AWS Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store. - valueFrom?: null | string @go(ValueFrom,*string) -} - -#SecretOptionObservation: { - // The name of the secret. - name?: null | string @go(Name,*string) - - // The secret to expose to the container. The supported values are either the full ARN of the AWS Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store. - valueFrom?: null | string @go(ValueFrom,*string) -} - -#SecretOptionParameters: { - // The name of the secret. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The secret to expose to the container. The supported values are either the full ARN of the AWS Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store. - // +kubebuilder:validation:Optional - valueFrom?: null | string @go(ValueFrom,*string) -} - -#ServiceConnectConfigurationInitParameters: { - // Specifies whether to use Service Connect with this service. - enabled?: null | bool @go(Enabled,*bool) - - // The log configuration for the container. See below. - logConfiguration?: [...#ServiceConnectConfigurationLogConfigurationInitParameters] @go(LogConfiguration,[]ServiceConnectConfigurationLogConfigurationInitParameters) - - // The namespace name or ARN of the aws_service_discovery_http_namespace for use with Service Connect. - namespace?: null | string @go(Namespace,*string) - - // The list of Service Connect service objects. See below. - service?: [...#ServiceConnectConfigurationServiceInitParameters] @go(Service,[]ServiceConnectConfigurationServiceInitParameters) -} - -#ServiceConnectConfigurationLogConfigurationInitParameters: { - // The log driver to use for the container. - logDriver?: null | string @go(LogDriver,*string) - - // The configuration options to send to the log driver. - options?: {[string]: null | string} @go(Options,map[string]*string) - - // The secrets to pass to the log configuration. See below. - secretOption?: [...#SecretOptionInitParameters] @go(SecretOption,[]SecretOptionInitParameters) -} - -#ServiceConnectConfigurationLogConfigurationObservation: { - // The log driver to use for the container. - logDriver?: null | string @go(LogDriver,*string) - - // The configuration options to send to the log driver. - options?: {[string]: null | string} @go(Options,map[string]*string) - - // The secrets to pass to the log configuration. See below. - secretOption?: [...#SecretOptionObservation] @go(SecretOption,[]SecretOptionObservation) -} - -#ServiceConnectConfigurationLogConfigurationParameters: { - // The log driver to use for the container. - // +kubebuilder:validation:Optional - logDriver?: null | string @go(LogDriver,*string) - - // The configuration options to send to the log driver. - // +kubebuilder:validation:Optional - options?: {[string]: null | string} @go(Options,map[string]*string) - - // The secrets to pass to the log configuration. See below. - // +kubebuilder:validation:Optional - secretOption?: [...#SecretOptionParameters] @go(SecretOption,[]SecretOptionParameters) -} - -#ServiceConnectConfigurationObservation: { - // Specifies whether to use Service Connect with this service. - enabled?: null | bool @go(Enabled,*bool) - - // The log configuration for the container. See below. - logConfiguration?: [...#ServiceConnectConfigurationLogConfigurationObservation] @go(LogConfiguration,[]ServiceConnectConfigurationLogConfigurationObservation) - - // The namespace name or ARN of the aws_service_discovery_http_namespace for use with Service Connect. - namespace?: null | string @go(Namespace,*string) - - // The list of Service Connect service objects. See below. - service?: [...#ServiceConnectConfigurationServiceObservation] @go(Service,[]ServiceConnectConfigurationServiceObservation) -} - -#ServiceConnectConfigurationParameters: { - // Specifies whether to use Service Connect with this service. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The log configuration for the container. See below. - // +kubebuilder:validation:Optional - logConfiguration?: [...#ServiceConnectConfigurationLogConfigurationParameters] @go(LogConfiguration,[]ServiceConnectConfigurationLogConfigurationParameters) - - // The namespace name or ARN of the aws_service_discovery_http_namespace for use with Service Connect. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) - - // The list of Service Connect service objects. See below. - // +kubebuilder:validation:Optional - service?: [...#ServiceConnectConfigurationServiceParameters] @go(Service,[]ServiceConnectConfigurationServiceParameters) -} - -#ServiceConnectConfigurationServiceInitParameters: { - // The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1. See below. - clientAlias?: [...#ClientAliasInitParameters] @go(ClientAlias,[]ClientAliasInitParameters) - - // The name of the new AWS Cloud Map service that Amazon ECS creates for this Amazon ECS service. - discoveryName?: null | string @go(DiscoveryName,*string) - - // The port number for the Service Connect proxy to listen on. - ingressPortOverride?: null | float64 @go(IngressPortOverride,*float64) - - // The name of one of the portMappings from all the containers in the task definition of this Amazon ECS service. - portName?: null | string @go(PortName,*string) -} - -#ServiceConnectConfigurationServiceObservation: { - // The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1. See below. - clientAlias?: [...#ClientAliasObservation] @go(ClientAlias,[]ClientAliasObservation) - - // The name of the new AWS Cloud Map service that Amazon ECS creates for this Amazon ECS service. - discoveryName?: null | string @go(DiscoveryName,*string) - - // The port number for the Service Connect proxy to listen on. - ingressPortOverride?: null | float64 @go(IngressPortOverride,*float64) - - // The name of one of the portMappings from all the containers in the task definition of this Amazon ECS service. - portName?: null | string @go(PortName,*string) -} - -#ServiceConnectConfigurationServiceParameters: { - // The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1. See below. - // +kubebuilder:validation:Optional - clientAlias?: [...#ClientAliasParameters] @go(ClientAlias,[]ClientAliasParameters) - - // The name of the new AWS Cloud Map service that Amazon ECS creates for this Amazon ECS service. - // +kubebuilder:validation:Optional - discoveryName?: null | string @go(DiscoveryName,*string) - - // The port number for the Service Connect proxy to listen on. - // +kubebuilder:validation:Optional - ingressPortOverride?: null | float64 @go(IngressPortOverride,*float64) - - // The name of one of the portMappings from all the containers in the task definition of this Amazon ECS service. - // +kubebuilder:validation:Optional - portName?: null | string @go(PortName,*string) -} - -#ServiceInitParameters: { - // Information about the CloudWatch alarms. See below. - alarms?: [...#AlarmsInitParameters] @go(Alarms,[]AlarmsInitParameters) - - // Capacity provider strategies to use for the service. Can be one or more. These can be updated without destroying and recreating the service only if force_new_deployment = true and not changing from 0 capacity_provider_strategy blocks to greater than 0, or vice versa. See below. - capacityProviderStrategy?: [...#CapacityProviderStrategyInitParameters] @go(CapacityProviderStrategy,[]CapacityProviderStrategyInitParameters) - - // Configuration block for deployment circuit breaker. See below. - deploymentCircuitBreaker?: [...#DeploymentCircuitBreakerInitParameters] @go(DeploymentCircuitBreaker,[]DeploymentCircuitBreakerInitParameters) - - // Configuration block for deployment controller configuration. See below. - deploymentController?: [...#DeploymentControllerInitParameters] @go(DeploymentController,[]DeploymentControllerInitParameters) - - // Upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. Not valid when using the DAEMON scheduling strategy. - deploymentMaximumPercent?: null | float64 @go(DeploymentMaximumPercent,*float64) - - // Lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. - deploymentMinimumHealthyPercent?: null | float64 @go(DeploymentMinimumHealthyPercent,*float64) - - // Number of instances of the task definition to place and keep running. Defaults to 0. Do not specify if using the DAEMON scheduling strategy. - desiredCount?: null | float64 @go(DesiredCount,*float64) - - // Specifies whether to enable Amazon ECS managed tags for the tasks within the service. - enableEcsManagedTags?: null | bool @go(EnableEcsManagedTags,*bool) - - // Specifies whether to enable Amazon ECS Exec for the tasks within the service. - enableExecuteCommand?: null | bool @go(EnableExecuteCommand,*bool) - - // Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., myimage:latest), roll Fargate tasks onto a newer platform version, or immediately deploy ordered_placement_strategy and placement_constraints updates. - forceNewDeployment?: null | bool @go(ForceNewDeployment,*bool) - - // Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Only valid for services configured to use load balancers. - healthCheckGracePeriodSeconds?: null | float64 @go(HealthCheckGracePeriodSeconds,*float64) - - // Launch type on which to run your service. The valid values are EC2, FARGATE, and EXTERNAL. Defaults to EC2. - launchType?: null | string @go(LaunchType,*string) - - // Configuration block for load balancers. See below. - loadBalancer?: [...#LoadBalancerInitParameters] @go(LoadBalancer,[]LoadBalancerInitParameters) - - // Network configuration for the service. This parameter is required for task definitions that use the awsvpc network mode to receive their own Elastic Network Interface, and it is not supported for other network modes. See below. - networkConfiguration?: [...#NetworkConfigurationInitParameters] @go(NetworkConfiguration,[]NetworkConfigurationInitParameters) - - // Service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. Updates to this configuration will take effect next task deployment unless force_new_deployment is enabled. The maximum number of ordered_placement_strategy blocks is 5. See below. - orderedPlacementStrategy?: [...#OrderedPlacementStrategyInitParameters] @go(OrderedPlacementStrategy,[]OrderedPlacementStrategyInitParameters) - - // Rules that are taken into consideration during task placement. Updates to this configuration will take effect next task deployment unless force_new_deployment is enabled. Maximum number of placement_constraints is 10. See below. - placementConstraints?: [...#PlacementConstraintsInitParameters] @go(PlacementConstraints,[]PlacementConstraintsInitParameters) - - // Platform version on which to run your service. Only applicable for launch_type set to FARGATE. Defaults to LATEST. More information about Fargate platform versions can be found in the AWS ECS User Guide. - platformVersion?: null | string @go(PlatformVersion,*string) - - // Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are SERVICE and TASK_DEFINITION. - propagateTags?: null | string @go(PropagateTags,*string) - - // Scheduling strategy to use for the service. The valid values are REPLICA and DAEMON. Defaults to REPLICA. Note that Tasks using the Fargate launch type or the . - schedulingStrategy?: null | string @go(SchedulingStrategy,*string) - - // The ECS Service Connect configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace. See below. - serviceConnectConfiguration?: [...#ServiceConnectConfigurationInitParameters] @go(ServiceConnectConfiguration,[]ServiceConnectConfigurationInitParameters) - - // Service discovery registries for the service. The maximum number of service_registries blocks is 1. See below. - serviceRegistries?: [...#ServiceRegistriesInitParameters] @go(ServiceRegistries,[]ServiceRegistriesInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of arbitrary keys and values that, when changed, will trigger an in-place update (redeployment). Useful with timestamp(). See example above. - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) - - // Default false. - waitForSteadyState?: null | bool @go(WaitForSteadyState,*bool) -} - -#ServiceObservation: { - // Information about the CloudWatch alarms. See below. - alarms?: [...#AlarmsObservation] @go(Alarms,[]AlarmsObservation) - - // Capacity provider strategies to use for the service. Can be one or more. These can be updated without destroying and recreating the service only if force_new_deployment = true and not changing from 0 capacity_provider_strategy blocks to greater than 0, or vice versa. See below. - capacityProviderStrategy?: [...#CapacityProviderStrategyObservation] @go(CapacityProviderStrategy,[]CapacityProviderStrategyObservation) - - // Name of an ECS cluster. - cluster?: null | string @go(Cluster,*string) - - // Configuration block for deployment circuit breaker. See below. - deploymentCircuitBreaker?: [...#DeploymentCircuitBreakerObservation] @go(DeploymentCircuitBreaker,[]DeploymentCircuitBreakerObservation) - - // Configuration block for deployment controller configuration. See below. - deploymentController?: [...#DeploymentControllerObservation] @go(DeploymentController,[]DeploymentControllerObservation) - - // Upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. Not valid when using the DAEMON scheduling strategy. - deploymentMaximumPercent?: null | float64 @go(DeploymentMaximumPercent,*float64) - - // Lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. - deploymentMinimumHealthyPercent?: null | float64 @go(DeploymentMinimumHealthyPercent,*float64) - - // Number of instances of the task definition to place and keep running. Defaults to 0. Do not specify if using the DAEMON scheduling strategy. - desiredCount?: null | float64 @go(DesiredCount,*float64) - - // Specifies whether to enable Amazon ECS managed tags for the tasks within the service. - enableEcsManagedTags?: null | bool @go(EnableEcsManagedTags,*bool) - - // Specifies whether to enable Amazon ECS Exec for the tasks within the service. - enableExecuteCommand?: null | bool @go(EnableExecuteCommand,*bool) - - // Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., myimage:latest), roll Fargate tasks onto a newer platform version, or immediately deploy ordered_placement_strategy and placement_constraints updates. - forceNewDeployment?: null | bool @go(ForceNewDeployment,*bool) - - // Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Only valid for services configured to use load balancers. - healthCheckGracePeriodSeconds?: null | float64 @go(HealthCheckGracePeriodSeconds,*float64) - - // ARN of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. This parameter is required if you are using a load balancer with your service, but only if your task definition does not use the awsvpc network mode. If using awsvpc network mode, do not specify this role. If your account has already created the Amazon ECS service-linked role, that role is used by default for your service unless you specify a role here. - iamRole?: null | string @go(IAMRole,*string) - - // ARN that identifies the service. - id?: null | string @go(ID,*string) - - // Launch type on which to run your service. The valid values are EC2, FARGATE, and EXTERNAL. Defaults to EC2. - launchType?: null | string @go(LaunchType,*string) - - // Configuration block for load balancers. See below. - loadBalancer?: [...#LoadBalancerObservation] @go(LoadBalancer,[]LoadBalancerObservation) - - // Network configuration for the service. This parameter is required for task definitions that use the awsvpc network mode to receive their own Elastic Network Interface, and it is not supported for other network modes. See below. - networkConfiguration?: [...#NetworkConfigurationObservation] @go(NetworkConfiguration,[]NetworkConfigurationObservation) - - // Service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. Updates to this configuration will take effect next task deployment unless force_new_deployment is enabled. The maximum number of ordered_placement_strategy blocks is 5. See below. - orderedPlacementStrategy?: [...#OrderedPlacementStrategyObservation] @go(OrderedPlacementStrategy,[]OrderedPlacementStrategyObservation) - - // Rules that are taken into consideration during task placement. Updates to this configuration will take effect next task deployment unless force_new_deployment is enabled. Maximum number of placement_constraints is 10. See below. - placementConstraints?: [...#PlacementConstraintsObservation] @go(PlacementConstraints,[]PlacementConstraintsObservation) - - // Platform version on which to run your service. Only applicable for launch_type set to FARGATE. Defaults to LATEST. More information about Fargate platform versions can be found in the AWS ECS User Guide. - platformVersion?: null | string @go(PlatformVersion,*string) - - // Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are SERVICE and TASK_DEFINITION. - propagateTags?: null | string @go(PropagateTags,*string) - - // Scheduling strategy to use for the service. The valid values are REPLICA and DAEMON. Defaults to REPLICA. Note that Tasks using the Fargate launch type or the . - schedulingStrategy?: null | string @go(SchedulingStrategy,*string) - - // The ECS Service Connect configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace. See below. - serviceConnectConfiguration?: [...#ServiceConnectConfigurationObservation] @go(ServiceConnectConfiguration,[]ServiceConnectConfigurationObservation) - - // Service discovery registries for the service. The maximum number of service_registries blocks is 1. See below. - serviceRegistries?: [...#ServiceRegistriesObservation] @go(ServiceRegistries,[]ServiceRegistriesObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Family and revision (family:revision) or full ARN of the task definition that you want to run in your service. Required unless using the EXTERNAL deployment controller. If a revision is not specified, the latest ACTIVE revision is used. - taskDefinition?: null | string @go(TaskDefinition,*string) - - // Map of arbitrary keys and values that, when changed, will trigger an in-place update (redeployment). Useful with timestamp(). See example above. - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) - - // Default false. - waitForSteadyState?: null | bool @go(WaitForSteadyState,*bool) -} - -#ServiceParameters: { - // Information about the CloudWatch alarms. See below. - // +kubebuilder:validation:Optional - alarms?: [...#AlarmsParameters] @go(Alarms,[]AlarmsParameters) - - // Capacity provider strategies to use for the service. Can be one or more. These can be updated without destroying and recreating the service only if force_new_deployment = true and not changing from 0 capacity_provider_strategy blocks to greater than 0, or vice versa. See below. - // +kubebuilder:validation:Optional - capacityProviderStrategy?: [...#CapacityProviderStrategyParameters] @go(CapacityProviderStrategy,[]CapacityProviderStrategyParameters) - - // Name of an ECS cluster. - // +crossplane:generate:reference:type=Cluster - // +kubebuilder:validation:Optional - cluster?: null | string @go(Cluster,*string) - - // Reference to a Cluster to populate cluster. - // +kubebuilder:validation:Optional - clusterRef?: null | v1.#Reference @go(ClusterRef,*v1.Reference) - - // Selector for a Cluster to populate cluster. - // +kubebuilder:validation:Optional - clusterSelector?: null | v1.#Selector @go(ClusterSelector,*v1.Selector) - - // Configuration block for deployment circuit breaker. See below. - // +kubebuilder:validation:Optional - deploymentCircuitBreaker?: [...#DeploymentCircuitBreakerParameters] @go(DeploymentCircuitBreaker,[]DeploymentCircuitBreakerParameters) - - // Configuration block for deployment controller configuration. See below. - // +kubebuilder:validation:Optional - deploymentController?: [...#DeploymentControllerParameters] @go(DeploymentController,[]DeploymentControllerParameters) - - // Upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. Not valid when using the DAEMON scheduling strategy. - // +kubebuilder:validation:Optional - deploymentMaximumPercent?: null | float64 @go(DeploymentMaximumPercent,*float64) - - // Lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. - // +kubebuilder:validation:Optional - deploymentMinimumHealthyPercent?: null | float64 @go(DeploymentMinimumHealthyPercent,*float64) - - // Number of instances of the task definition to place and keep running. Defaults to 0. Do not specify if using the DAEMON scheduling strategy. - // +kubebuilder:validation:Optional - desiredCount?: null | float64 @go(DesiredCount,*float64) - - // Specifies whether to enable Amazon ECS managed tags for the tasks within the service. - // +kubebuilder:validation:Optional - enableEcsManagedTags?: null | bool @go(EnableEcsManagedTags,*bool) - - // Specifies whether to enable Amazon ECS Exec for the tasks within the service. - // +kubebuilder:validation:Optional - enableExecuteCommand?: null | bool @go(EnableExecuteCommand,*bool) - - // Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., myimage:latest), roll Fargate tasks onto a newer platform version, or immediately deploy ordered_placement_strategy and placement_constraints updates. - // +kubebuilder:validation:Optional - forceNewDeployment?: null | bool @go(ForceNewDeployment,*bool) - - // Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Only valid for services configured to use load balancers. - // +kubebuilder:validation:Optional - healthCheckGracePeriodSeconds?: null | float64 @go(HealthCheckGracePeriodSeconds,*float64) - - // ARN of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. This parameter is required if you are using a load balancer with your service, but only if your task definition does not use the awsvpc network mode. If using awsvpc network mode, do not specify this role. If your account has already created the Amazon ECS service-linked role, that role is used by default for your service unless you specify a role here. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - iamRole?: null | string @go(IAMRole,*string) - - // Reference to a Role in iam to populate iamRole. - // +kubebuilder:validation:Optional - iamRoleRef?: null | v1.#Reference @go(IAMRoleRef,*v1.Reference) - - // Selector for a Role in iam to populate iamRole. - // +kubebuilder:validation:Optional - iamRoleSelector?: null | v1.#Selector @go(IAMRoleSelector,*v1.Selector) - - // Launch type on which to run your service. The valid values are EC2, FARGATE, and EXTERNAL. Defaults to EC2. - // +kubebuilder:validation:Optional - launchType?: null | string @go(LaunchType,*string) - - // Configuration block for load balancers. See below. - // +kubebuilder:validation:Optional - loadBalancer?: [...#LoadBalancerParameters] @go(LoadBalancer,[]LoadBalancerParameters) - - // Network configuration for the service. This parameter is required for task definitions that use the awsvpc network mode to receive their own Elastic Network Interface, and it is not supported for other network modes. See below. - // +kubebuilder:validation:Optional - networkConfiguration?: [...#NetworkConfigurationParameters] @go(NetworkConfiguration,[]NetworkConfigurationParameters) - - // Service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. Updates to this configuration will take effect next task deployment unless force_new_deployment is enabled. The maximum number of ordered_placement_strategy blocks is 5. See below. - // +kubebuilder:validation:Optional - orderedPlacementStrategy?: [...#OrderedPlacementStrategyParameters] @go(OrderedPlacementStrategy,[]OrderedPlacementStrategyParameters) - - // Rules that are taken into consideration during task placement. Updates to this configuration will take effect next task deployment unless force_new_deployment is enabled. Maximum number of placement_constraints is 10. See below. - // +kubebuilder:validation:Optional - placementConstraints?: [...#PlacementConstraintsParameters] @go(PlacementConstraints,[]PlacementConstraintsParameters) - - // Platform version on which to run your service. Only applicable for launch_type set to FARGATE. Defaults to LATEST. More information about Fargate platform versions can be found in the AWS ECS User Guide. - // +kubebuilder:validation:Optional - platformVersion?: null | string @go(PlatformVersion,*string) - - // Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are SERVICE and TASK_DEFINITION. - // +kubebuilder:validation:Optional - propagateTags?: null | string @go(PropagateTags,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Scheduling strategy to use for the service. The valid values are REPLICA and DAEMON. Defaults to REPLICA. Note that Tasks using the Fargate launch type or the . - // +kubebuilder:validation:Optional - schedulingStrategy?: null | string @go(SchedulingStrategy,*string) - - // The ECS Service Connect configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace. See below. - // +kubebuilder:validation:Optional - serviceConnectConfiguration?: [...#ServiceConnectConfigurationParameters] @go(ServiceConnectConfiguration,[]ServiceConnectConfigurationParameters) - - // Service discovery registries for the service. The maximum number of service_registries blocks is 1. See below. - // +kubebuilder:validation:Optional - serviceRegistries?: [...#ServiceRegistriesParameters] @go(ServiceRegistries,[]ServiceRegistriesParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Family and revision (family:revision) or full ARN of the task definition that you want to run in your service. Required unless using the EXTERNAL deployment controller. If a revision is not specified, the latest ACTIVE revision is used. - // +crossplane:generate:reference:type=TaskDefinition - // +kubebuilder:validation:Optional - taskDefinition?: null | string @go(TaskDefinition,*string) - - // Reference to a TaskDefinition to populate taskDefinition. - // +kubebuilder:validation:Optional - taskDefinitionRef?: null | v1.#Reference @go(TaskDefinitionRef,*v1.Reference) - - // Selector for a TaskDefinition to populate taskDefinition. - // +kubebuilder:validation:Optional - taskDefinitionSelector?: null | v1.#Selector @go(TaskDefinitionSelector,*v1.Selector) - - // Map of arbitrary keys and values that, when changed, will trigger an in-place update (redeployment). Useful with timestamp(). See example above. - // +kubebuilder:validation:Optional - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) - - // Default false. - // +kubebuilder:validation:Optional - waitForSteadyState?: null | bool @go(WaitForSteadyState,*bool) -} - -#ServiceRegistriesInitParameters: { - // Container name value, already specified in the task definition, to be used for your service discovery service. - containerName?: null | string @go(ContainerName,*string) - - // Port value, already specified in the task definition, to be used for your service discovery service. - containerPort?: null | float64 @go(ContainerPort,*float64) - - // Port value used if your Service Discovery service specified an SRV record. - port?: null | float64 @go(Port,*float64) - - // ARN of the Service Registry. The currently supported service registry is Amazon Route 53 Auto Naming Service(aws_service_discovery_service). For more information, see Service - registryArn?: null | string @go(RegistryArn,*string) -} - -#ServiceRegistriesObservation: { - // Container name value, already specified in the task definition, to be used for your service discovery service. - containerName?: null | string @go(ContainerName,*string) - - // Port value, already specified in the task definition, to be used for your service discovery service. - containerPort?: null | float64 @go(ContainerPort,*float64) - - // Port value used if your Service Discovery service specified an SRV record. - port?: null | float64 @go(Port,*float64) - - // ARN of the Service Registry. The currently supported service registry is Amazon Route 53 Auto Naming Service(aws_service_discovery_service). For more information, see Service - registryArn?: null | string @go(RegistryArn,*string) -} - -#ServiceRegistriesParameters: { - // Container name value, already specified in the task definition, to be used for your service discovery service. - // +kubebuilder:validation:Optional - containerName?: null | string @go(ContainerName,*string) - - // Port value, already specified in the task definition, to be used for your service discovery service. - // +kubebuilder:validation:Optional - containerPort?: null | float64 @go(ContainerPort,*float64) - - // Port value used if your Service Discovery service specified an SRV record. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // ARN of the Service Registry. The currently supported service registry is Amazon Route 53 Auto Naming Service(aws_service_discovery_service). For more information, see Service - // +kubebuilder:validation:Optional - registryArn?: null | string @go(RegistryArn,*string) -} - -// ServiceSpec defines the desired state of Service -#ServiceSpec: { - v1.#ResourceSpec - forProvider: #ServiceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ServiceInitParameters @go(InitProvider) -} - -// ServiceStatus defines the observed state of Service. -#ServiceStatus: { - v1.#ResourceStatus - atProvider?: #ServiceObservation @go(AtProvider) -} - -// Service is the Schema for the Services API. Provides an ECS service. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Service: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ServiceSpec @go(Spec) - status?: #ServiceStatus @go(Status) -} - -// ServiceList contains a list of Services -#ServiceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Service] @go(Items,[]Service) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_taskdefinition_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_taskdefinition_types_go_gen.cue deleted file mode 100644 index 3050326..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ecs/v1beta1/zz_taskdefinition_types_go_gen.cue +++ /dev/null @@ -1,658 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ecs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AuthorizationConfigInitParameters: { - // Access point ID to use. If an access point is specified, the root directory value will be relative to the directory set for the access point. If specified, transit encryption must be enabled in the EFSVolumeConfiguration. - accessPointId?: null | string @go(AccessPointID,*string) - - // Whether or not to use the Amazon ECS task IAM role defined in a task definition when mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. Valid values: ENABLED, DISABLED. If this parameter is omitted, the default value of DISABLED is used. - iam?: null | string @go(IAM,*string) -} - -#AuthorizationConfigObservation: { - // Access point ID to use. If an access point is specified, the root directory value will be relative to the directory set for the access point. If specified, transit encryption must be enabled in the EFSVolumeConfiguration. - accessPointId?: null | string @go(AccessPointID,*string) - - // Whether or not to use the Amazon ECS task IAM role defined in a task definition when mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. Valid values: ENABLED, DISABLED. If this parameter is omitted, the default value of DISABLED is used. - iam?: null | string @go(IAM,*string) -} - -#AuthorizationConfigParameters: { - // Access point ID to use. If an access point is specified, the root directory value will be relative to the directory set for the access point. If specified, transit encryption must be enabled in the EFSVolumeConfiguration. - // +kubebuilder:validation:Optional - accessPointId?: null | string @go(AccessPointID,*string) - - // Whether or not to use the Amazon ECS task IAM role defined in a task definition when mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. Valid values: ENABLED, DISABLED. If this parameter is omitted, the default value of DISABLED is used. - // +kubebuilder:validation:Optional - iam?: null | string @go(IAM,*string) -} - -#DockerVolumeConfigurationInitParameters: { - // If this value is true, the Docker volume is created if it does not already exist. Note: This field is only used if the scope is shared. - autoprovision?: null | bool @go(Autoprovision,*bool) - - // Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. - driver?: null | string @go(Driver,*string) - - // Map of Docker driver specific options. - driverOpts?: {[string]: null | string} @go(DriverOpts,map[string]*string) - - // Map of custom metadata to add to your Docker volume. - labels?: {[string]: null | string} @go(Labels,map[string]*string) - - // Scope for the Docker volume, which determines its lifecycle, either task or shared. Docker volumes that are scoped to a task are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are scoped as shared persist after the task stops. - scope?: null | string @go(Scope,*string) -} - -#DockerVolumeConfigurationObservation: { - // If this value is true, the Docker volume is created if it does not already exist. Note: This field is only used if the scope is shared. - autoprovision?: null | bool @go(Autoprovision,*bool) - - // Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. - driver?: null | string @go(Driver,*string) - - // Map of Docker driver specific options. - driverOpts?: {[string]: null | string} @go(DriverOpts,map[string]*string) - - // Map of custom metadata to add to your Docker volume. - labels?: {[string]: null | string} @go(Labels,map[string]*string) - - // Scope for the Docker volume, which determines its lifecycle, either task or shared. Docker volumes that are scoped to a task are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are scoped as shared persist after the task stops. - scope?: null | string @go(Scope,*string) -} - -#DockerVolumeConfigurationParameters: { - // If this value is true, the Docker volume is created if it does not already exist. Note: This field is only used if the scope is shared. - // +kubebuilder:validation:Optional - autoprovision?: null | bool @go(Autoprovision,*bool) - - // Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. - // +kubebuilder:validation:Optional - driver?: null | string @go(Driver,*string) - - // Map of Docker driver specific options. - // +kubebuilder:validation:Optional - driverOpts?: {[string]: null | string} @go(DriverOpts,map[string]*string) - - // Map of custom metadata to add to your Docker volume. - // +kubebuilder:validation:Optional - labels?: {[string]: null | string} @go(Labels,map[string]*string) - - // Scope for the Docker volume, which determines its lifecycle, either task or shared. Docker volumes that are scoped to a task are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are scoped as shared persist after the task stops. - // +kubebuilder:validation:Optional - scope?: null | string @go(Scope,*string) -} - -#EFSVolumeConfigurationInitParameters: { - // Configuration block for authorization for the Amazon EFS file system. Detailed below. - authorizationConfig?: [...#AuthorizationConfigInitParameters] @go(AuthorizationConfig,[]AuthorizationConfigInitParameters) - - // ID of the EFS File System. - fileSystemId?: null | string @go(FileSystemID,*string) - - // Directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume will be used. Specifying / will have the same effect as omitting this parameter. This argument is ignored when using authorization_config. - rootDirectory?: null | string @go(RootDirectory,*string) - - // Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. Valid values: ENABLED, DISABLED. If this parameter is omitted, the default value of DISABLED is used. - transitEncryption?: null | string @go(TransitEncryption,*string) - - // Port to use for transit encryption. If you do not specify a transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses. - transitEncryptionPort?: null | float64 @go(TransitEncryptionPort,*float64) -} - -#EFSVolumeConfigurationObservation: { - // Configuration block for authorization for the Amazon EFS file system. Detailed below. - authorizationConfig?: [...#AuthorizationConfigObservation] @go(AuthorizationConfig,[]AuthorizationConfigObservation) - - // ID of the EFS File System. - fileSystemId?: null | string @go(FileSystemID,*string) - - // Directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume will be used. Specifying / will have the same effect as omitting this parameter. This argument is ignored when using authorization_config. - rootDirectory?: null | string @go(RootDirectory,*string) - - // Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. Valid values: ENABLED, DISABLED. If this parameter is omitted, the default value of DISABLED is used. - transitEncryption?: null | string @go(TransitEncryption,*string) - - // Port to use for transit encryption. If you do not specify a transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses. - transitEncryptionPort?: null | float64 @go(TransitEncryptionPort,*float64) -} - -#EFSVolumeConfigurationParameters: { - // Configuration block for authorization for the Amazon EFS file system. Detailed below. - // +kubebuilder:validation:Optional - authorizationConfig?: [...#AuthorizationConfigParameters] @go(AuthorizationConfig,[]AuthorizationConfigParameters) - - // ID of the EFS File System. - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // Directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume will be used. Specifying / will have the same effect as omitting this parameter. This argument is ignored when using authorization_config. - // +kubebuilder:validation:Optional - rootDirectory?: null | string @go(RootDirectory,*string) - - // Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. Valid values: ENABLED, DISABLED. If this parameter is omitted, the default value of DISABLED is used. - // +kubebuilder:validation:Optional - transitEncryption?: null | string @go(TransitEncryption,*string) - - // Port to use for transit encryption. If you do not specify a transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses. - // +kubebuilder:validation:Optional - transitEncryptionPort?: null | float64 @go(TransitEncryptionPort,*float64) -} - -#EphemeralStorageInitParameters: { - // The total amount, in GiB, of ephemeral storage to set for the task. The minimum supported value is 21 GiB and the maximum supported value is 200 GiB. - sizeInGib?: null | float64 @go(SizeInGib,*float64) -} - -#EphemeralStorageObservation: { - // The total amount, in GiB, of ephemeral storage to set for the task. The minimum supported value is 21 GiB and the maximum supported value is 200 GiB. - sizeInGib?: null | float64 @go(SizeInGib,*float64) -} - -#EphemeralStorageParameters: { - // The total amount, in GiB, of ephemeral storage to set for the task. The minimum supported value is 21 GiB and the maximum supported value is 200 GiB. - // +kubebuilder:validation:Optional - sizeInGib?: null | float64 @go(SizeInGib,*float64) -} - -#FSXWindowsFileServerVolumeConfigurationAuthorizationConfigInitParameters: { - // The authorization credential option to use. The authorization credential options can be provided using either the Amazon Resource Name (ARN) of an AWS Secrets Manager secret or AWS Systems Manager Parameter Store parameter. The ARNs refer to the stored credentials. - credentialsParameter?: null | string @go(CredentialsParameter,*string) - - // A fully qualified domain name hosted by an AWS Directory Service Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. - domain?: null | string @go(Domain,*string) -} - -#FSXWindowsFileServerVolumeConfigurationAuthorizationConfigObservation: { - // The authorization credential option to use. The authorization credential options can be provided using either the Amazon Resource Name (ARN) of an AWS Secrets Manager secret or AWS Systems Manager Parameter Store parameter. The ARNs refer to the stored credentials. - credentialsParameter?: null | string @go(CredentialsParameter,*string) - - // A fully qualified domain name hosted by an AWS Directory Service Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. - domain?: null | string @go(Domain,*string) -} - -#FSXWindowsFileServerVolumeConfigurationAuthorizationConfigParameters: { - // The authorization credential option to use. The authorization credential options can be provided using either the Amazon Resource Name (ARN) of an AWS Secrets Manager secret or AWS Systems Manager Parameter Store parameter. The ARNs refer to the stored credentials. - // +kubebuilder:validation:Optional - credentialsParameter?: null | string @go(CredentialsParameter,*string) - - // A fully qualified domain name hosted by an AWS Directory Service Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. - // +kubebuilder:validation:Optional - domain?: null | string @go(Domain,*string) -} - -#FSXWindowsFileServerVolumeConfigurationInitParameters: { - // Configuration block for authorization for the Amazon FSx for Windows File Server file system detailed below. - authorizationConfig?: [...#FSXWindowsFileServerVolumeConfigurationAuthorizationConfigInitParameters] @go(AuthorizationConfig,[]FSXWindowsFileServerVolumeConfigurationAuthorizationConfigInitParameters) - - // The Amazon FSx for Windows File Server file system ID to use. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host. - rootDirectory?: null | string @go(RootDirectory,*string) -} - -#FSXWindowsFileServerVolumeConfigurationObservation: { - // Configuration block for authorization for the Amazon FSx for Windows File Server file system detailed below. - authorizationConfig?: [...#FSXWindowsFileServerVolumeConfigurationAuthorizationConfigObservation] @go(AuthorizationConfig,[]FSXWindowsFileServerVolumeConfigurationAuthorizationConfigObservation) - - // The Amazon FSx for Windows File Server file system ID to use. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host. - rootDirectory?: null | string @go(RootDirectory,*string) -} - -#FSXWindowsFileServerVolumeConfigurationParameters: { - // Configuration block for authorization for the Amazon FSx for Windows File Server file system detailed below. - // +kubebuilder:validation:Optional - authorizationConfig: [...#FSXWindowsFileServerVolumeConfigurationAuthorizationConfigParameters] @go(AuthorizationConfig,[]FSXWindowsFileServerVolumeConfigurationAuthorizationConfigParameters) - - // The Amazon FSx for Windows File Server file system ID to use. - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host. - // +kubebuilder:validation:Optional - rootDirectory?: null | string @go(RootDirectory,*string) -} - -#InferenceAcceleratorInitParameters: { - // Elastic Inference accelerator device name. The deviceName must also be referenced in a container definition as a ResourceRequirement. - deviceName?: null | string @go(DeviceName,*string) - - // Elastic Inference accelerator type to use. - deviceType?: null | string @go(DeviceType,*string) -} - -#InferenceAcceleratorObservation: { - // Elastic Inference accelerator device name. The deviceName must also be referenced in a container definition as a ResourceRequirement. - deviceName?: null | string @go(DeviceName,*string) - - // Elastic Inference accelerator type to use. - deviceType?: null | string @go(DeviceType,*string) -} - -#InferenceAcceleratorParameters: { - // Elastic Inference accelerator device name. The deviceName must also be referenced in a container definition as a ResourceRequirement. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Elastic Inference accelerator type to use. - // +kubebuilder:validation:Optional - deviceType?: null | string @go(DeviceType,*string) -} - -#ProxyConfigurationInitParameters: { - // Name of the container that will serve as the App Mesh proxy. - containerName?: null | string @go(ContainerName,*string) - - // Set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified a key-value mapping. - properties?: {[string]: null | string} @go(Properties,map[string]*string) - - // Proxy type. The default value is APPMESH. The only supported value is APPMESH. - type?: null | string @go(Type,*string) -} - -#ProxyConfigurationObservation: { - // Name of the container that will serve as the App Mesh proxy. - containerName?: null | string @go(ContainerName,*string) - - // Set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified a key-value mapping. - properties?: {[string]: null | string} @go(Properties,map[string]*string) - - // Proxy type. The default value is APPMESH. The only supported value is APPMESH. - type?: null | string @go(Type,*string) -} - -#ProxyConfigurationParameters: { - // Name of the container that will serve as the App Mesh proxy. - // +kubebuilder:validation:Optional - containerName?: null | string @go(ContainerName,*string) - - // Set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified a key-value mapping. - // +kubebuilder:validation:Optional - properties?: {[string]: null | string} @go(Properties,map[string]*string) - - // Proxy type. The default value is APPMESH. The only supported value is APPMESH. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RuntimePlatformInitParameters: { - // Must be set to either X86_64 or ARM64; see cpu architecture - cpuArchitecture?: null | string @go(CPUArchitecture,*string) - - // If the requires_compatibilities is FARGATE this field is required; must be set to a valid option from the operating system family in the runtime platform setting - operatingSystemFamily?: null | string @go(OperatingSystemFamily,*string) -} - -#RuntimePlatformObservation: { - // Must be set to either X86_64 or ARM64; see cpu architecture - cpuArchitecture?: null | string @go(CPUArchitecture,*string) - - // If the requires_compatibilities is FARGATE this field is required; must be set to a valid option from the operating system family in the runtime platform setting - operatingSystemFamily?: null | string @go(OperatingSystemFamily,*string) -} - -#RuntimePlatformParameters: { - // Must be set to either X86_64 or ARM64; see cpu architecture - // +kubebuilder:validation:Optional - cpuArchitecture?: null | string @go(CPUArchitecture,*string) - - // If the requires_compatibilities is FARGATE this field is required; must be set to a valid option from the operating system family in the runtime platform setting - // +kubebuilder:validation:Optional - operatingSystemFamily?: null | string @go(OperatingSystemFamily,*string) -} - -#TaskDefinitionInitParameters: { - // Number of cpu units used by the task. If the requires_compatibilities is FARGATE this field is required. - cpu?: null | string @go(CPU,*string) - - // A list of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide. - containerDefinitions?: null | string @go(ContainerDefinitions,*string) - - // The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate. See Ephemeral Storage. - ephemeralStorage?: [...#EphemeralStorageInitParameters] @go(EphemeralStorage,[]EphemeralStorageInitParameters) - - // A unique name for your task definition. - family?: null | string @go(Family,*string) - - // Configuration block(s) with Inference Accelerators settings. Detailed below. - inferenceAccelerator?: [...#InferenceAcceleratorInitParameters] @go(InferenceAccelerator,[]InferenceAcceleratorInitParameters) - - // IPC resource namespace to be used for the containers in the task The valid values are host, task, and none. - ipcMode?: null | string @go(IpcMode,*string) - - // Amount (in MiB) of memory used by the task. If the requires_compatibilities is FARGATE this field is required. - memory?: null | string @go(Memory,*string) - - // Docker networking mode to use for the containers in the task. Valid values are none, bridge, awsvpc, and host. - networkMode?: null | string @go(NetworkMode,*string) - - // Process namespace to use for the containers in the task. The valid values are host and task. - pidMode?: null | string @go(PidMode,*string) - - // Configuration block for rules that are taken into consideration during task placement. Maximum number of placement_constraints is 10. Detailed below. - placementConstraints?: [...#TaskDefinitionPlacementConstraintsInitParameters] @go(PlacementConstraints,[]TaskDefinitionPlacementConstraintsInitParameters) - - // Configuration block for the App Mesh proxy. Detailed below. - proxyConfiguration?: [...#ProxyConfigurationInitParameters] @go(ProxyConfiguration,[]ProxyConfigurationInitParameters) - - // Set of launch types required by the task. The valid values are EC2 and FARGATE. - requiresCompatibilities?: [...null | string] @go(RequiresCompatibilities,[]*string) - - // Configuration block for runtime_platform that containers in your task may use. - runtimePlatform?: [...#RuntimePlatformInitParameters] @go(RuntimePlatform,[]RuntimePlatformInitParameters) - - // Whether to retain the old revision when the resource is destroyed or replacement is necessary. Default is false. - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services. - taskRoleArn?: null | string @go(TaskRoleArn,*string) - - // Configuration block for volumes that containers in your task may use. Detailed below. - volume?: [...#VolumeInitParameters] @go(Volume,[]VolumeInitParameters) -} - -#TaskDefinitionObservation: { - // Full ARN of the Task Definition (including both family and revision). - arn?: null | string @go(Arn,*string) - - // ARN of the Task Definition with the trailing revision removed. This may be useful for situations where the latest task definition is always desired. If a revision isn't specified, the latest ACTIVE revision is used. See the AWS documentation for details. - arnWithoutRevision?: null | string @go(ArnWithoutRevision,*string) - - // Number of cpu units used by the task. If the requires_compatibilities is FARGATE this field is required. - cpu?: null | string @go(CPU,*string) - - // A list of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide. - containerDefinitions?: null | string @go(ContainerDefinitions,*string) - - // The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate. See Ephemeral Storage. - ephemeralStorage?: [...#EphemeralStorageObservation] @go(EphemeralStorage,[]EphemeralStorageObservation) - - // ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume. - executionRoleArn?: null | string @go(ExecutionRoleArn,*string) - - // A unique name for your task definition. - family?: null | string @go(Family,*string) - id?: null | string @go(ID,*string) - - // Configuration block(s) with Inference Accelerators settings. Detailed below. - inferenceAccelerator?: [...#InferenceAcceleratorObservation] @go(InferenceAccelerator,[]InferenceAcceleratorObservation) - - // IPC resource namespace to be used for the containers in the task The valid values are host, task, and none. - ipcMode?: null | string @go(IpcMode,*string) - - // Amount (in MiB) of memory used by the task. If the requires_compatibilities is FARGATE this field is required. - memory?: null | string @go(Memory,*string) - - // Docker networking mode to use for the containers in the task. Valid values are none, bridge, awsvpc, and host. - networkMode?: null | string @go(NetworkMode,*string) - - // Process namespace to use for the containers in the task. The valid values are host and task. - pidMode?: null | string @go(PidMode,*string) - - // Configuration block for rules that are taken into consideration during task placement. Maximum number of placement_constraints is 10. Detailed below. - placementConstraints?: [...#TaskDefinitionPlacementConstraintsObservation] @go(PlacementConstraints,[]TaskDefinitionPlacementConstraintsObservation) - - // Configuration block for the App Mesh proxy. Detailed below. - proxyConfiguration?: [...#ProxyConfigurationObservation] @go(ProxyConfiguration,[]ProxyConfigurationObservation) - - // Set of launch types required by the task. The valid values are EC2 and FARGATE. - requiresCompatibilities?: [...null | string] @go(RequiresCompatibilities,[]*string) - - // Revision of the task in a particular family. - revision?: null | float64 @go(Revision,*float64) - - // Configuration block for runtime_platform that containers in your task may use. - runtimePlatform?: [...#RuntimePlatformObservation] @go(RuntimePlatform,[]RuntimePlatformObservation) - - // Whether to retain the old revision when the resource is destroyed or replacement is necessary. Default is false. - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services. - taskRoleArn?: null | string @go(TaskRoleArn,*string) - - // Configuration block for volumes that containers in your task may use. Detailed below. - volume?: [...#VolumeObservation] @go(Volume,[]VolumeObservation) -} - -#TaskDefinitionParameters: { - // Number of cpu units used by the task. If the requires_compatibilities is FARGATE this field is required. - // +kubebuilder:validation:Optional - cpu?: null | string @go(CPU,*string) - - // A list of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide. - // +kubebuilder:validation:Optional - containerDefinitions?: null | string @go(ContainerDefinitions,*string) - - // The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate. See Ephemeral Storage. - // +kubebuilder:validation:Optional - ephemeralStorage?: [...#EphemeralStorageParameters] @go(EphemeralStorage,[]EphemeralStorageParameters) - - // ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - executionRoleArn?: null | string @go(ExecutionRoleArn,*string) - - // Reference to a Role in iam to populate executionRoleArn. - // +kubebuilder:validation:Optional - executionRoleArnRef?: null | v1.#Reference @go(ExecutionRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate executionRoleArn. - // +kubebuilder:validation:Optional - executionRoleArnSelector?: null | v1.#Selector @go(ExecutionRoleArnSelector,*v1.Selector) - - // A unique name for your task definition. - // +kubebuilder:validation:Optional - family?: null | string @go(Family,*string) - - // Configuration block(s) with Inference Accelerators settings. Detailed below. - // +kubebuilder:validation:Optional - inferenceAccelerator?: [...#InferenceAcceleratorParameters] @go(InferenceAccelerator,[]InferenceAcceleratorParameters) - - // IPC resource namespace to be used for the containers in the task The valid values are host, task, and none. - // +kubebuilder:validation:Optional - ipcMode?: null | string @go(IpcMode,*string) - - // Amount (in MiB) of memory used by the task. If the requires_compatibilities is FARGATE this field is required. - // +kubebuilder:validation:Optional - memory?: null | string @go(Memory,*string) - - // Docker networking mode to use for the containers in the task. Valid values are none, bridge, awsvpc, and host. - // +kubebuilder:validation:Optional - networkMode?: null | string @go(NetworkMode,*string) - - // Process namespace to use for the containers in the task. The valid values are host and task. - // +kubebuilder:validation:Optional - pidMode?: null | string @go(PidMode,*string) - - // Configuration block for rules that are taken into consideration during task placement. Maximum number of placement_constraints is 10. Detailed below. - // +kubebuilder:validation:Optional - placementConstraints?: [...#TaskDefinitionPlacementConstraintsParameters] @go(PlacementConstraints,[]TaskDefinitionPlacementConstraintsParameters) - - // Configuration block for the App Mesh proxy. Detailed below. - // +kubebuilder:validation:Optional - proxyConfiguration?: [...#ProxyConfigurationParameters] @go(ProxyConfiguration,[]ProxyConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Set of launch types required by the task. The valid values are EC2 and FARGATE. - // +kubebuilder:validation:Optional - requiresCompatibilities?: [...null | string] @go(RequiresCompatibilities,[]*string) - - // Configuration block for runtime_platform that containers in your task may use. - // +kubebuilder:validation:Optional - runtimePlatform?: [...#RuntimePlatformParameters] @go(RuntimePlatform,[]RuntimePlatformParameters) - - // Whether to retain the old revision when the resource is destroyed or replacement is necessary. Default is false. - // +kubebuilder:validation:Optional - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services. - // +kubebuilder:validation:Optional - taskRoleArn?: null | string @go(TaskRoleArn,*string) - - // Configuration block for volumes that containers in your task may use. Detailed below. - // +kubebuilder:validation:Optional - volume?: [...#VolumeParameters] @go(Volume,[]VolumeParameters) -} - -#TaskDefinitionPlacementConstraintsInitParameters: { - // Cluster Query Language expression to apply to the constraint. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide. - expression?: null | string @go(Expression,*string) - - // Type of constraint. Use memberOf to restrict selection to a group of valid candidates. Note that distinctInstance is not supported in task definitions. - type?: null | string @go(Type,*string) -} - -#TaskDefinitionPlacementConstraintsObservation: { - // Cluster Query Language expression to apply to the constraint. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide. - expression?: null | string @go(Expression,*string) - - // Type of constraint. Use memberOf to restrict selection to a group of valid candidates. Note that distinctInstance is not supported in task definitions. - type?: null | string @go(Type,*string) -} - -#TaskDefinitionPlacementConstraintsParameters: { - // Cluster Query Language expression to apply to the constraint. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide. - // +kubebuilder:validation:Optional - expression?: null | string @go(Expression,*string) - - // Type of constraint. Use memberOf to restrict selection to a group of valid candidates. Note that distinctInstance is not supported in task definitions. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#VolumeInitParameters: { - // Configuration block to configure a docker volume. Detailed below. - dockerVolumeConfiguration?: [...#DockerVolumeConfigurationInitParameters] @go(DockerVolumeConfiguration,[]DockerVolumeConfigurationInitParameters) - - // Configuration block for an EFS volume. Detailed below. - efsVolumeConfiguration?: [...#EFSVolumeConfigurationInitParameters] @go(EFSVolumeConfiguration,[]EFSVolumeConfigurationInitParameters) - - // Configuration block for an FSX Windows File Server volume. Detailed below. - fsxWindowsFileServerVolumeConfiguration?: [...#FSXWindowsFileServerVolumeConfigurationInitParameters] @go(FSXWindowsFileServerVolumeConfiguration,[]FSXWindowsFileServerVolumeConfigurationInitParameters) - - // Path on the host container instance that is presented to the container. If not set, ECS will create a nonpersistent data volume that starts empty and is deleted after the task has finished. - hostPath?: null | string @go(HostPath,*string) - - // Name of the volume. This name is referenced in the sourceVolume - // parameter of container definition in the mountPoints section. - name?: null | string @go(Name,*string) -} - -#VolumeObservation: { - // Configuration block to configure a docker volume. Detailed below. - dockerVolumeConfiguration?: [...#DockerVolumeConfigurationObservation] @go(DockerVolumeConfiguration,[]DockerVolumeConfigurationObservation) - - // Configuration block for an EFS volume. Detailed below. - efsVolumeConfiguration?: [...#EFSVolumeConfigurationObservation] @go(EFSVolumeConfiguration,[]EFSVolumeConfigurationObservation) - - // Configuration block for an FSX Windows File Server volume. Detailed below. - fsxWindowsFileServerVolumeConfiguration?: [...#FSXWindowsFileServerVolumeConfigurationObservation] @go(FSXWindowsFileServerVolumeConfiguration,[]FSXWindowsFileServerVolumeConfigurationObservation) - - // Path on the host container instance that is presented to the container. If not set, ECS will create a nonpersistent data volume that starts empty and is deleted after the task has finished. - hostPath?: null | string @go(HostPath,*string) - - // Name of the volume. This name is referenced in the sourceVolume - // parameter of container definition in the mountPoints section. - name?: null | string @go(Name,*string) -} - -#VolumeParameters: { - // Configuration block to configure a docker volume. Detailed below. - // +kubebuilder:validation:Optional - dockerVolumeConfiguration?: [...#DockerVolumeConfigurationParameters] @go(DockerVolumeConfiguration,[]DockerVolumeConfigurationParameters) - - // Configuration block for an EFS volume. Detailed below. - // +kubebuilder:validation:Optional - efsVolumeConfiguration?: [...#EFSVolumeConfigurationParameters] @go(EFSVolumeConfiguration,[]EFSVolumeConfigurationParameters) - - // Configuration block for an FSX Windows File Server volume. Detailed below. - // +kubebuilder:validation:Optional - fsxWindowsFileServerVolumeConfiguration?: [...#FSXWindowsFileServerVolumeConfigurationParameters] @go(FSXWindowsFileServerVolumeConfiguration,[]FSXWindowsFileServerVolumeConfigurationParameters) - - // Path on the host container instance that is presented to the container. If not set, ECS will create a nonpersistent data volume that starts empty and is deleted after the task has finished. - // +kubebuilder:validation:Optional - hostPath?: null | string @go(HostPath,*string) - - // Name of the volume. This name is referenced in the sourceVolume - // parameter of container definition in the mountPoints section. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -// TaskDefinitionSpec defines the desired state of TaskDefinition -#TaskDefinitionSpec: { - v1.#ResourceSpec - forProvider: #TaskDefinitionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TaskDefinitionInitParameters @go(InitProvider) -} - -// TaskDefinitionStatus defines the observed state of TaskDefinition. -#TaskDefinitionStatus: { - v1.#ResourceStatus - atProvider?: #TaskDefinitionObservation @go(AtProvider) -} - -// TaskDefinition is the Schema for the TaskDefinitions API. Manages a revision of an ECS task definition. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TaskDefinition: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.containerDefinitions) || (has(self.initProvider) && has(self.initProvider.containerDefinitions))",message="spec.forProvider.containerDefinitions is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.family) || (has(self.initProvider) && has(self.initProvider.family))",message="spec.forProvider.family is a required parameter" - spec: #TaskDefinitionSpec @go(Spec) - status?: #TaskDefinitionStatus @go(Status) -} - -// TaskDefinitionList contains a list of TaskDefinitions -#TaskDefinitionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TaskDefinition] @go(Items,[]TaskDefinition) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_accesspoint_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_accesspoint_types_go_gen.cue deleted file mode 100644 index c731cc1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_accesspoint_types_go_gen.cue +++ /dev/null @@ -1,225 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/efs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessPointInitParameters: { - // Operating system user and group applied to all file system requests made using the access point. Detailed below. - posixUser?: [...#PosixUserInitParameters] @go(PosixUser,[]PosixUserInitParameters) - - // Directory on the Amazon EFS file system that the access point provides access to. Detailed below. - rootDirectory?: [...#RootDirectoryInitParameters] @go(RootDirectory,[]RootDirectoryInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AccessPointObservation: { - // ARN of the access point. - arn?: null | string @go(Arn,*string) - - // ARN of the file system. - fileSystemArn?: null | string @go(FileSystemArn,*string) - - // ID of the file system for which the access point is intended. - fileSystemId?: null | string @go(FileSystemID,*string) - - // ID of the access point. - id?: null | string @go(ID,*string) - - // ID of the access point. - ownerId?: null | string @go(OwnerID,*string) - - // Operating system user and group applied to all file system requests made using the access point. Detailed below. - posixUser?: [...#PosixUserObservation] @go(PosixUser,[]PosixUserObservation) - - // Directory on the Amazon EFS file system that the access point provides access to. Detailed below. - rootDirectory?: [...#RootDirectoryObservation] @go(RootDirectory,[]RootDirectoryObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#AccessPointParameters: { - // ID of the file system for which the access point is intended. - // +crossplane:generate:reference:type=FileSystem - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // Reference to a FileSystem to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdRef?: null | v1.#Reference @go(FileSystemIDRef,*v1.Reference) - - // Selector for a FileSystem to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdSelector?: null | v1.#Selector @go(FileSystemIDSelector,*v1.Selector) - - // Operating system user and group applied to all file system requests made using the access point. Detailed below. - // +kubebuilder:validation:Optional - posixUser?: [...#PosixUserParameters] @go(PosixUser,[]PosixUserParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Directory on the Amazon EFS file system that the access point provides access to. Detailed below. - // +kubebuilder:validation:Optional - rootDirectory?: [...#RootDirectoryParameters] @go(RootDirectory,[]RootDirectoryParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CreationInfoInitParameters: { - // POSIX group ID to apply to the root_directory. - ownerGid?: null | float64 @go(OwnerGID,*float64) - - // POSIX user ID to apply to the root_directory. - ownerUid?: null | float64 @go(OwnerUID,*float64) - - // POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits. - permissions?: null | string @go(Permissions,*string) -} - -#CreationInfoObservation: { - // POSIX group ID to apply to the root_directory. - ownerGid?: null | float64 @go(OwnerGID,*float64) - - // POSIX user ID to apply to the root_directory. - ownerUid?: null | float64 @go(OwnerUID,*float64) - - // POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits. - permissions?: null | string @go(Permissions,*string) -} - -#CreationInfoParameters: { - // POSIX group ID to apply to the root_directory. - // +kubebuilder:validation:Optional - ownerGid?: null | float64 @go(OwnerGID,*float64) - - // POSIX user ID to apply to the root_directory. - // +kubebuilder:validation:Optional - ownerUid?: null | float64 @go(OwnerUID,*float64) - - // POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits. - // +kubebuilder:validation:Optional - permissions?: null | string @go(Permissions,*string) -} - -#PosixUserInitParameters: { - // POSIX group ID used for all file system operations using this access point. - gid?: null | float64 @go(GID,*float64) - - // Secondary POSIX group IDs used for all file system operations using this access point. - secondaryGids?: [...null | float64] @go(SecondaryGids,[]*float64) - - // POSIX user ID used for all file system operations using this access point. - uid?: null | float64 @go(UID,*float64) -} - -#PosixUserObservation: { - // POSIX group ID used for all file system operations using this access point. - gid?: null | float64 @go(GID,*float64) - - // Secondary POSIX group IDs used for all file system operations using this access point. - secondaryGids?: [...null | float64] @go(SecondaryGids,[]*float64) - - // POSIX user ID used for all file system operations using this access point. - uid?: null | float64 @go(UID,*float64) -} - -#PosixUserParameters: { - // POSIX group ID used for all file system operations using this access point. - // +kubebuilder:validation:Optional - gid?: null | float64 @go(GID,*float64) - - // Secondary POSIX group IDs used for all file system operations using this access point. - // +kubebuilder:validation:Optional - secondaryGids?: [...null | float64] @go(SecondaryGids,[]*float64) - - // POSIX user ID used for all file system operations using this access point. - // +kubebuilder:validation:Optional - uid?: null | float64 @go(UID,*float64) -} - -#RootDirectoryInitParameters: { - // POSIX IDs and permissions to apply to the access point's Root Directory. See Creation Info below. - creationInfo?: [...#CreationInfoInitParameters] @go(CreationInfo,[]CreationInfoInitParameters) - - // Path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide creation_info. - path?: null | string @go(Path,*string) -} - -#RootDirectoryObservation: { - // POSIX IDs and permissions to apply to the access point's Root Directory. See Creation Info below. - creationInfo?: [...#CreationInfoObservation] @go(CreationInfo,[]CreationInfoObservation) - - // Path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide creation_info. - path?: null | string @go(Path,*string) -} - -#RootDirectoryParameters: { - // POSIX IDs and permissions to apply to the access point's Root Directory. See Creation Info below. - // +kubebuilder:validation:Optional - creationInfo?: [...#CreationInfoParameters] @go(CreationInfo,[]CreationInfoParameters) - - // Path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide creation_info. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) -} - -// AccessPointSpec defines the desired state of AccessPoint -#AccessPointSpec: { - v1.#ResourceSpec - forProvider: #AccessPointParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccessPointInitParameters @go(InitProvider) -} - -// AccessPointStatus defines the observed state of AccessPoint. -#AccessPointStatus: { - v1.#ResourceStatus - atProvider?: #AccessPointObservation @go(AtProvider) -} - -// AccessPoint is the Schema for the AccessPoints API. Provides an Elastic File System (EFS) access point. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AccessPoint: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AccessPointSpec @go(Spec) - status?: #AccessPointStatus @go(Status) -} - -// AccessPointList contains a list of AccessPoints -#AccessPointList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AccessPoint] @go(Items,[]AccessPoint) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_backuppolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_backuppolicy_types_go_gen.cue deleted file mode 100644 index 20735b5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_backuppolicy_types_go_gen.cue +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/efs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BackupPolicyBackupPolicyInitParameters: { - // A status of the backup policy. Valid values: ENABLED, DISABLED. - status?: null | string @go(Status,*string) -} - -#BackupPolicyBackupPolicyObservation: { - // A status of the backup policy. Valid values: ENABLED, DISABLED. - status?: null | string @go(Status,*string) -} - -#BackupPolicyBackupPolicyParameters: { - // A status of the backup policy. Valid values: ENABLED, DISABLED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -#BackupPolicyInitParameters: { - // A backup_policy object (documented below). - backupPolicy?: [...#BackupPolicyBackupPolicyInitParameters] @go(BackupPolicy,[]BackupPolicyBackupPolicyInitParameters) -} - -#BackupPolicyObservation: { - // A backup_policy object (documented below). - backupPolicy?: [...#BackupPolicyBackupPolicyObservation] @go(BackupPolicy,[]BackupPolicyBackupPolicyObservation) - - // The ID of the EFS file system. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The ID that identifies the file system (e.g., fs-ccfc0d65). - id?: null | string @go(ID,*string) -} - -#BackupPolicyParameters: { - // A backup_policy object (documented below). - // +kubebuilder:validation:Optional - backupPolicy?: [...#BackupPolicyBackupPolicyParameters] @go(BackupPolicy,[]BackupPolicyBackupPolicyParameters) - - // The ID of the EFS file system. - // +crossplane:generate:reference:type=FileSystem - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // Reference to a FileSystem to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdRef?: null | v1.#Reference @go(FileSystemIDRef,*v1.Reference) - - // Selector for a FileSystem to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdSelector?: null | v1.#Selector @go(FileSystemIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// BackupPolicySpec defines the desired state of BackupPolicy -#BackupPolicySpec: { - v1.#ResourceSpec - forProvider: #BackupPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BackupPolicyInitParameters @go(InitProvider) -} - -// BackupPolicyStatus defines the observed state of BackupPolicy. -#BackupPolicyStatus: { - v1.#ResourceStatus - atProvider?: #BackupPolicyObservation @go(AtProvider) -} - -// BackupPolicy is the Schema for the BackupPolicys API. Provides an Elastic File System (EFS) Backup Policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BackupPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.backupPolicy) || (has(self.initProvider) && has(self.initProvider.backupPolicy))",message="spec.forProvider.backupPolicy is a required parameter" - spec: #BackupPolicySpec @go(Spec) - status?: #BackupPolicyStatus @go(Status) -} - -// BackupPolicyList contains a list of BackupPolicys -#BackupPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BackupPolicy] @go(Items,[]BackupPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_filesystem_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_filesystem_types_go_gen.cue deleted file mode 100644 index 264ec4d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_filesystem_types_go_gen.cue +++ /dev/null @@ -1,239 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/efs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#FileSystemInitParameters: { - // the AWS Availability Zone in which to create the file system. Used to create a file system that uses One Zone storage classes. See user guide for more information. - availabilityZoneName?: null | string @go(AvailabilityZoneName,*string) - - // A unique name (a maximum of 64 characters are allowed) - // used as reference when creating the Elastic File System to ensure idempotent file - // system creation. See Elastic File System - // user guide for more information. - creationToken?: null | string @go(CreationToken,*string) - - // If true, the disk will be encrypted. - encrypted?: null | bool @go(Encrypted,*bool) - - // A file system lifecycle policy object (documented below). - lifecyclePolicy?: [...#LifecyclePolicyInitParameters] @go(LifecyclePolicy,[]LifecyclePolicyInitParameters) - - // The file system performance mode. Can be either "generalPurpose" or "maxIO" (Default: "generalPurpose"). - performanceMode?: null | string @go(PerformanceMode,*string) - - // The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with throughput_mode set to provisioned. - provisionedThroughputInMibps?: null | float64 @go(ProvisionedThroughputInMibps,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Throughput mode for the file system. Defaults to bursting. Valid values: bursting, provisioned, or elastic. When using provisioned, also set provisioned_throughput_in_mibps. - throughputMode?: null | string @go(ThroughputMode,*string) -} - -#FileSystemObservation: { - // Amazon Resource Name of the file system. - arn?: null | string @go(Arn,*string) - - // The identifier of the Availability Zone in which the file system's One Zone storage classes exist. - availabilityZoneId?: null | string @go(AvailabilityZoneID,*string) - - // the AWS Availability Zone in which to create the file system. Used to create a file system that uses One Zone storage classes. See user guide for more information. - availabilityZoneName?: null | string @go(AvailabilityZoneName,*string) - - // A unique name (a maximum of 64 characters are allowed) - // used as reference when creating the Elastic File System to ensure idempotent file - // system creation. See Elastic File System - // user guide for more information. - creationToken?: null | string @go(CreationToken,*string) - - // The DNS name for the filesystem per documented convention. - dnsName?: null | string @go(DNSName,*string) - - // If true, the disk will be encrypted. - encrypted?: null | bool @go(Encrypted,*bool) - - // The ID that identifies the file system (e.g., fs-ccfc0d65). - id?: null | string @go(ID,*string) - - // The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // A file system lifecycle policy object (documented below). - lifecyclePolicy?: [...#LifecyclePolicyObservation] @go(LifecyclePolicy,[]LifecyclePolicyObservation) - - // The current number of mount targets that the file system has. - numberOfMountTargets?: null | float64 @go(NumberOfMountTargets,*float64) - - // The AWS account that created the file system. If the file system was createdby an IAM user, the parent account to which the user belongs is the owner. - ownerId?: null | string @go(OwnerID,*string) - - // The file system performance mode. Can be either "generalPurpose" or "maxIO" (Default: "generalPurpose"). - performanceMode?: null | string @go(PerformanceMode,*string) - - // The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with throughput_mode set to provisioned. - provisionedThroughputInMibps?: null | float64 @go(ProvisionedThroughputInMibps,*float64) - - // The latest known metered size (in bytes) of data stored in the file system, the value is not the exact size that the file system was at any point in time. See Size In Bytes. - sizeInBytes?: [...#SizeInBytesObservation] @go(SizeInBytes,[]SizeInBytesObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Throughput mode for the file system. Defaults to bursting. Valid values: bursting, provisioned, or elastic. When using provisioned, also set provisioned_throughput_in_mibps. - throughputMode?: null | string @go(ThroughputMode,*string) -} - -#FileSystemParameters: { - // the AWS Availability Zone in which to create the file system. Used to create a file system that uses One Zone storage classes. See user guide for more information. - // +kubebuilder:validation:Optional - availabilityZoneName?: null | string @go(AvailabilityZoneName,*string) - - // A unique name (a maximum of 64 characters are allowed) - // used as reference when creating the Elastic File System to ensure idempotent file - // system creation. See Elastic File System - // user guide for more information. - // +kubebuilder:validation:Optional - creationToken?: null | string @go(CreationToken,*string) - - // If true, the disk will be encrypted. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // A file system lifecycle policy object (documented below). - // +kubebuilder:validation:Optional - lifecyclePolicy?: [...#LifecyclePolicyParameters] @go(LifecyclePolicy,[]LifecyclePolicyParameters) - - // The file system performance mode. Can be either "generalPurpose" or "maxIO" (Default: "generalPurpose"). - // +kubebuilder:validation:Optional - performanceMode?: null | string @go(PerformanceMode,*string) - - // The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with throughput_mode set to provisioned. - // +kubebuilder:validation:Optional - provisionedThroughputInMibps?: null | float64 @go(ProvisionedThroughputInMibps,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Throughput mode for the file system. Defaults to bursting. Valid values: bursting, provisioned, or elastic. When using provisioned, also set provisioned_throughput_in_mibps. - // +kubebuilder:validation:Optional - throughputMode?: null | string @go(ThroughputMode,*string) -} - -#LifecyclePolicyInitParameters: { - // Indicates how long it takes to transition files to the IA storage class. Valid values: AFTER_1_DAY, AFTER_7_DAYS, AFTER_14_DAYS, AFTER_30_DAYS, AFTER_60_DAYS, or AFTER_90_DAYS. - transitionToIa?: null | string @go(TransitionToIa,*string) - - // Describes the policy used to transition a file from infequent access storage to primary storage. Valid values: AFTER_1_ACCESS. - transitionToPrimaryStorageClass?: null | string @go(TransitionToPrimaryStorageClass,*string) -} - -#LifecyclePolicyObservation: { - // Indicates how long it takes to transition files to the IA storage class. Valid values: AFTER_1_DAY, AFTER_7_DAYS, AFTER_14_DAYS, AFTER_30_DAYS, AFTER_60_DAYS, or AFTER_90_DAYS. - transitionToIa?: null | string @go(TransitionToIa,*string) - - // Describes the policy used to transition a file from infequent access storage to primary storage. Valid values: AFTER_1_ACCESS. - transitionToPrimaryStorageClass?: null | string @go(TransitionToPrimaryStorageClass,*string) -} - -#LifecyclePolicyParameters: { - // Indicates how long it takes to transition files to the IA storage class. Valid values: AFTER_1_DAY, AFTER_7_DAYS, AFTER_14_DAYS, AFTER_30_DAYS, AFTER_60_DAYS, or AFTER_90_DAYS. - // +kubebuilder:validation:Optional - transitionToIa?: null | string @go(TransitionToIa,*string) - - // Describes the policy used to transition a file from infequent access storage to primary storage. Valid values: AFTER_1_ACCESS. - // +kubebuilder:validation:Optional - transitionToPrimaryStorageClass?: null | string @go(TransitionToPrimaryStorageClass,*string) -} - -#SizeInBytesInitParameters: { -} - -#SizeInBytesObservation: { - // The latest known metered size (in bytes) of data stored in the file system. - value?: null | float64 @go(Value,*float64) - - // The latest known metered size (in bytes) of data stored in the Infrequent Access storage class. - valueInIa?: null | float64 @go(ValueInIa,*float64) - - // The latest known metered size (in bytes) of data stored in the Standard storage class. - valueInStandard?: null | float64 @go(ValueInStandard,*float64) -} - -#SizeInBytesParameters: { -} - -// FileSystemSpec defines the desired state of FileSystem -#FileSystemSpec: { - v1.#ResourceSpec - forProvider: #FileSystemParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FileSystemInitParameters @go(InitProvider) -} - -// FileSystemStatus defines the observed state of FileSystem. -#FileSystemStatus: { - v1.#ResourceStatus - atProvider?: #FileSystemObservation @go(AtProvider) -} - -// FileSystem is the Schema for the FileSystems API. Provides an Elastic File System (EFS) File System resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FileSystem: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #FileSystemSpec @go(Spec) - status?: #FileSystemStatus @go(Status) -} - -// FileSystemList contains a list of FileSystems -#FileSystemList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FileSystem] @go(Items,[]FileSystem) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_filesystempolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_filesystempolicy_types_go_gen.cue deleted file mode 100644 index d45d20e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_filesystempolicy_types_go_gen.cue +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/efs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#FileSystemPolicyInitParameters: { - // A flag to indicate whether to bypass the aws_efs_file_system_policy lockout safety check. The policy lockout safety check determines whether the policy in the request will prevent the principal making the request will be locked out from making future PutFileSystemPolicy requests on the file system. Set bypass_policy_lockout_safety_check to true only when you intend to prevent the principal that is making the request from making a subsequent PutFileSystemPolicy request on the file system. The default value is false. - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // The JSON formatted file system policy for the EFS file system. see Docs for more info. - policy?: null | string @go(Policy,*string) -} - -#FileSystemPolicyObservation: { - // A flag to indicate whether to bypass the aws_efs_file_system_policy lockout safety check. The policy lockout safety check determines whether the policy in the request will prevent the principal making the request will be locked out from making future PutFileSystemPolicy requests on the file system. Set bypass_policy_lockout_safety_check to true only when you intend to prevent the principal that is making the request from making a subsequent PutFileSystemPolicy request on the file system. The default value is false. - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // The ID of the EFS file system. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The ID that identifies the file system (e.g., fs-ccfc0d65). - id?: null | string @go(ID,*string) - - // The JSON formatted file system policy for the EFS file system. see Docs for more info. - policy?: null | string @go(Policy,*string) -} - -#FileSystemPolicyParameters: { - // A flag to indicate whether to bypass the aws_efs_file_system_policy lockout safety check. The policy lockout safety check determines whether the policy in the request will prevent the principal making the request will be locked out from making future PutFileSystemPolicy requests on the file system. Set bypass_policy_lockout_safety_check to true only when you intend to prevent the principal that is making the request from making a subsequent PutFileSystemPolicy request on the file system. The default value is false. - // +kubebuilder:validation:Optional - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // The ID of the EFS file system. - // +crossplane:generate:reference:type=FileSystem - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // Reference to a FileSystem to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdRef?: null | v1.#Reference @go(FileSystemIDRef,*v1.Reference) - - // Selector for a FileSystem to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdSelector?: null | v1.#Selector @go(FileSystemIDSelector,*v1.Selector) - - // The JSON formatted file system policy for the EFS file system. see Docs for more info. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// FileSystemPolicySpec defines the desired state of FileSystemPolicy -#FileSystemPolicySpec: { - v1.#ResourceSpec - forProvider: #FileSystemPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FileSystemPolicyInitParameters @go(InitProvider) -} - -// FileSystemPolicyStatus defines the observed state of FileSystemPolicy. -#FileSystemPolicyStatus: { - v1.#ResourceStatus - atProvider?: #FileSystemPolicyObservation @go(AtProvider) -} - -// FileSystemPolicy is the Schema for the FileSystemPolicys API. Provides an Elastic File System (EFS) File System Policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FileSystemPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #FileSystemPolicySpec @go(Spec) - status?: #FileSystemPolicyStatus @go(Status) -} - -// FileSystemPolicyList contains a list of FileSystemPolicys -#FileSystemPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FileSystemPolicy] @go(Items,[]FileSystemPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 413f86d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/efs/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=efs.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "efs.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_mounttarget_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_mounttarget_types_go_gen.cue deleted file mode 100644 index d872a85..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_mounttarget_types_go_gen.cue +++ /dev/null @@ -1,153 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/efs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MountTargetInitParameters: { - // The address (within the address range of the specified subnet) at - // which the file system may be mounted via the mount target. - ipAddress?: null | string @go(IPAddress,*string) -} - -#MountTargetObservation: { - // The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in. - availabilityZoneId?: null | string @go(AvailabilityZoneID,*string) - - // The name of the Availability Zone (AZ) that the mount target resides in. - availabilityZoneName?: null | string @go(AvailabilityZoneName,*string) - - // The DNS name for the EFS file system. - dnsName?: null | string @go(DNSName,*string) - - // Amazon Resource Name of the file system. - fileSystemArn?: null | string @go(FileSystemArn,*string) - - // The ID of the file system for which the mount target is intended. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The ID of the mount target. - id?: null | string @go(ID,*string) - - // The address (within the address range of the specified subnet) at - // which the file system may be mounted via the mount target. - ipAddress?: null | string @go(IPAddress,*string) - - // The DNS name for the given subnet/AZ per documented convention. - mountTargetDnsName?: null | string @go(MountTargetDNSName,*string) - - // The ID of the network interface that Amazon EFS created when it created the mount target. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // AWS account ID that owns the resource. - ownerId?: null | string @go(OwnerID,*string) - - // A list of up to 5 VPC security group IDs (that must - // be for the same VPC as subnet specified) in effect for the mount target. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The ID of the subnet to add the mount target in. - subnetId?: null | string @go(SubnetID,*string) -} - -#MountTargetParameters: { - // The ID of the file system for which the mount target is intended. - // +crossplane:generate:reference:type=FileSystem - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // Reference to a FileSystem to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdRef?: null | v1.#Reference @go(FileSystemIDRef,*v1.Reference) - - // Selector for a FileSystem to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdSelector?: null | v1.#Selector @go(FileSystemIDSelector,*v1.Selector) - - // The address (within the address range of the specified subnet) at - // which the file system may be mounted via the mount target. - // +kubebuilder:validation:Optional - ipAddress?: null | string @go(IPAddress,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A list of up to 5 VPC security group IDs (that must - // be for the same VPC as subnet specified) in effect for the mount target. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // References to SecurityGroup in ec2 to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupsRefs?: [...v1.#Reference] @go(SecurityGroupsRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupsSelector?: null | v1.#Selector @go(SecurityGroupsSelector,*v1.Selector) - - // The ID of the subnet to add the mount target in. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) -} - -// MountTargetSpec defines the desired state of MountTarget -#MountTargetSpec: { - v1.#ResourceSpec - forProvider: #MountTargetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MountTargetInitParameters @go(InitProvider) -} - -// MountTargetStatus defines the observed state of MountTarget. -#MountTargetStatus: { - v1.#ResourceStatus - atProvider?: #MountTargetObservation @go(AtProvider) -} - -// MountTarget is the Schema for the MountTargets API. Provides an Elastic File System (EFS) mount target. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MountTarget: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #MountTargetSpec @go(Spec) - status?: #MountTargetStatus @go(Status) -} - -// MountTargetList contains a list of MountTargets -#MountTargetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MountTarget] @go(Items,[]MountTarget) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_replicationconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_replicationconfiguration_types_go_gen.cue deleted file mode 100644 index 2885c6e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/efs/v1beta1/zz_replicationconfiguration_types_go_gen.cue +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/efs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DestinationInitParameters: { - // The availability zone in which the replica should be created. If specified, the replica will be created with One Zone storage. If omitted, regional storage will be used. - availabilityZoneName?: null | string @go(AvailabilityZoneName,*string) - - // The Key ID, ARN, alias, or alias ARN of the KMS key that should be used to encrypt the replica file system. If omitted, the default KMS key for EFS /aws/elasticfilesystem will be used. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#DestinationObservation: { - // The availability zone in which the replica should be created. If specified, the replica will be created with One Zone storage. If omitted, regional storage will be used. - availabilityZoneName?: null | string @go(AvailabilityZoneName,*string) - - // The fs ID of the replica. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The Key ID, ARN, alias, or alias ARN of the KMS key that should be used to encrypt the replica file system. If omitted, the default KMS key for EFS /aws/elasticfilesystem will be used. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The region in which the replica should be created. - region?: null | string @go(Region,*string) - - // The status of the replication. - status?: null | string @go(Status,*string) -} - -#DestinationParameters: { - // The availability zone in which the replica should be created. If specified, the replica will be created with One Zone storage. If omitted, regional storage will be used. - // +kubebuilder:validation:Optional - availabilityZoneName?: null | string @go(AvailabilityZoneName,*string) - - // The Key ID, ARN, alias, or alias ARN of the KMS key that should be used to encrypt the replica file system. If omitted, the default KMS key for EFS /aws/elasticfilesystem will be used. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The region in which the replica should be created. - // +kubebuilder:validation:Optional - region?: null | string @go(Region,*string) -} - -#ReplicationConfigurationInitParameters: { - // A destination configuration block (documented below). - destination?: [...#DestinationInitParameters] @go(Destination,[]DestinationInitParameters) -} - -#ReplicationConfigurationObservation: { - // When the replication configuration was created. - creationTime?: null | string @go(CreationTime,*string) - - // A destination configuration block (documented below). - destination?: [...#DestinationObservation] @go(Destination,[]DestinationObservation) - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) of the original source Amazon EFS file system in the replication configuration. - originalSourceFileSystemArn?: null | string @go(OriginalSourceFileSystemArn,*string) - - // The Amazon Resource Name (ARN) of the current source file system in the replication configuration. - sourceFileSystemArn?: null | string @go(SourceFileSystemArn,*string) - - // The ID of the file system that is to be replicated. - sourceFileSystemId?: null | string @go(SourceFileSystemID,*string) - - // The AWS Region in which the source Amazon EFS file system is located. - sourceFileSystemRegion?: null | string @go(SourceFileSystemRegion,*string) -} - -#ReplicationConfigurationParameters: { - // A destination configuration block (documented below). - // +kubebuilder:validation:Optional - destination?: [...#DestinationParameters] @go(Destination,[]DestinationParameters) - - // The region in which the replica should be created. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the file system that is to be replicated. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/efs/v1beta1.FileSystem - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - sourceFileSystemId?: null | string @go(SourceFileSystemID,*string) - - // Reference to a FileSystem in efs to populate sourceFileSystemId. - // +kubebuilder:validation:Optional - sourceFileSystemIdRef?: null | v1.#Reference @go(SourceFileSystemIDRef,*v1.Reference) - - // Selector for a FileSystem in efs to populate sourceFileSystemId. - // +kubebuilder:validation:Optional - sourceFileSystemIdSelector?: null | v1.#Selector @go(SourceFileSystemIDSelector,*v1.Selector) -} - -// ReplicationConfigurationSpec defines the desired state of ReplicationConfiguration -#ReplicationConfigurationSpec: { - v1.#ResourceSpec - forProvider: #ReplicationConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReplicationConfigurationInitParameters @go(InitProvider) -} - -// ReplicationConfigurationStatus defines the observed state of ReplicationConfiguration. -#ReplicationConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #ReplicationConfigurationObservation @go(AtProvider) -} - -// ReplicationConfiguration is the Schema for the ReplicationConfigurations API. Provides an Elastic File System (EFS) Replication Configuration. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReplicationConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destination) || (has(self.initProvider) && has(self.initProvider.destination))",message="spec.forProvider.destination is a required parameter" - spec: #ReplicationConfigurationSpec @go(Spec) - status?: #ReplicationConfigurationStatus @go(Status) -} - -// ReplicationConfigurationList contains a list of ReplicationConfigurations -#ReplicationConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReplicationConfiguration] @go(Items,[]ReplicationConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/clusterauth_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/clusterauth_types_go_gen.cue deleted file mode 100644 index a709f2c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/clusterauth_types_go_gen.cue +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/eks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterAuthParameters: { - // Region is the region you'd like your resource to be created in. - // +terrajet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region: string @go(Region) - - // ClusterName is the name of the cluster you'd like to fetch Kubeconfig of. - // Either ClusterName, ClusterNameRef or ClusterNameSelector has to be given. - // +crossplane:generate:reference:type=Cluster - // +crossplane:generate:reference:extractor=ExternalNameIfClusterActive() - clusterName?: string @go(ClusterName) - - // Reference to a Cluster to populate clusterName. - // Either ClusterName, ClusterNameRef or ClusterNameSelector has to be given. - // +kubebuilder:validation:Optional - clusterNameRef?: null | v1.#Reference @go(ClusterNameRef,*v1.Reference) - - // Selector for a Cluster to populate clusterName. - // Either ClusterName, ClusterNameRef or ClusterNameSelector has to be given. - // +kubebuilder:validation:Optional - clusterNameSelector?: null | v1.#Selector @go(ClusterNameSelector,*v1.Selector) - - // RefreshPeriod is how frequently you'd like the token in the published - // Kubeconfig to be refreshed. The maximum is 10m0s. - // The default is 10m0s. - // +kubebuilder:default:="10m0s" - refreshPeriod?: null | metav1.#Duration @go(RefreshPeriod,*metav1.Duration) -} - -#ClusterAuthObservation: { - // LastRefreshTime is the time when the token was refreshed. - lastRefreshTime?: null | metav1.#Time @go(LastRefreshTime,*metav1.Time) -} - -// ClusterAuthSpec defines the desired state of ClusterAuth -#ClusterAuthSpec: { - v1.#ResourceSpec - forProvider: #ClusterAuthParameters @go(ForProvider) -} - -// ClusterAuthStatus defines the observed state of ClusterAuth. -#ClusterAuthStatus: { - v1.#ResourceStatus - atProvider?: #ClusterAuthObservation @go(AtProvider) -} - -// ClusterAuth is used to retrieve Kubeconfig of given EKS cluster. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterAuth: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ClusterAuthSpec @go(Spec) - status?: #ClusterAuthStatus @go(Status) -} - -// ClusterAuthList contains a list of ClusterAuths -#ClusterAuthList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterAuth] @go(Items,[]ClusterAuth) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_addon_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_addon_types_go_gen.cue deleted file mode 100644 index dec9c8d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_addon_types_go_gen.cue +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/eks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AddonInitParameters: { - // on. The name must match one of - // the names returned by describe-addon-versions. - addonName?: null | string @go(AddonName,*string) - - // on. The version must - // match one of the versions returned by describe-addon-versions. - addonVersion?: null | string @go(AddonVersion,*string) - - // custom configuration values for addons with single JSON string. This JSON string value must match the JSON schema derived from describe-addon-configuration. - configurationValues?: null | string @go(ConfigurationValues,*string) - - // Indicates if you want to preserve the created resources when deleting the EKS add-on. - preserve?: null | bool @go(Preserve,*bool) - - // Define how to resolve parameter value conflicts - // when migrating an existing add-on to an Amazon EKS add-on or when applying - // version updates to the add-on. Valid values are NONE, OVERWRITE and PRESERVE. For more details check UpdateAddon API Docs. - resolveConflicts?: null | string @go(ResolveConflicts,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AddonObservation: { - // on. The name must match one of - // the names returned by describe-addon-versions. - addonName?: null | string @go(AddonName,*string) - - // on. The version must - // match one of the versions returned by describe-addon-versions. - addonVersion?: null | string @go(AddonVersion,*string) - - // Amazon Resource Name (ARN) of the EKS add-on. - arn?: null | string @go(Arn,*string) - - // 100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (^[0-9A-Za-z][A-Za-z0-9\-_]+$). - clusterName?: null | string @go(ClusterName,*string) - - // custom configuration values for addons with single JSON string. This JSON string value must match the JSON schema derived from describe-addon-configuration. - configurationValues?: null | string @go(ConfigurationValues,*string) - - // Date and time in RFC3339 format that the EKS add-on was created. - createdAt?: null | string @go(CreatedAt,*string) - - // EKS Cluster name and EKS Addon name separated by a colon (:). - id?: null | string @go(ID,*string) - - // Date and time in RFC3339 format that the EKS add-on was updated. - modifiedAt?: null | string @go(ModifiedAt,*string) - - // Indicates if you want to preserve the created resources when deleting the EKS add-on. - preserve?: null | bool @go(Preserve,*bool) - - // Define how to resolve parameter value conflicts - // when migrating an existing add-on to an Amazon EKS add-on or when applying - // version updates to the add-on. Valid values are NONE, OVERWRITE and PRESERVE. For more details check UpdateAddon API Docs. - resolveConflicts?: null | string @go(ResolveConflicts,*string) - - // The Amazon Resource Name (ARN) of an - // existing IAM role to bind to the add-on's service account. The role must be - // assigned the IAM permissions required by the add-on. If you don't specify - // an existing IAM role, then the add-on uses the permissions assigned to the node - // IAM role. For more information, see Amazon EKS node IAM role - // in the Amazon EKS User Guide. - serviceAccountRoleArn?: null | string @go(ServiceAccountRoleArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Key-value map of resource tags, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#AddonParameters: { - // on. The name must match one of - // the names returned by describe-addon-versions. - // +kubebuilder:validation:Optional - addonName?: null | string @go(AddonName,*string) - - // on. The version must - // match one of the versions returned by describe-addon-versions. - // +kubebuilder:validation:Optional - addonVersion?: null | string @go(AddonVersion,*string) - - // 100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (^[0-9A-Za-z][A-Za-z0-9\-_]+$). - // +crossplane:generate:reference:type=Cluster - // +kubebuilder:validation:Optional - clusterName?: null | string @go(ClusterName,*string) - - // Reference to a Cluster to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameRef?: null | v1.#Reference @go(ClusterNameRef,*v1.Reference) - - // Selector for a Cluster to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameSelector?: null | v1.#Selector @go(ClusterNameSelector,*v1.Selector) - - // custom configuration values for addons with single JSON string. This JSON string value must match the JSON schema derived from describe-addon-configuration. - // +kubebuilder:validation:Optional - configurationValues?: null | string @go(ConfigurationValues,*string) - - // Indicates if you want to preserve the created resources when deleting the EKS add-on. - // +kubebuilder:validation:Optional - preserve?: null | bool @go(Preserve,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Define how to resolve parameter value conflicts - // when migrating an existing add-on to an Amazon EKS add-on or when applying - // version updates to the add-on. Valid values are NONE, OVERWRITE and PRESERVE. For more details check UpdateAddon API Docs. - // +kubebuilder:validation:Optional - resolveConflicts?: null | string @go(ResolveConflicts,*string) - - // The Amazon Resource Name (ARN) of an - // existing IAM role to bind to the add-on's service account. The role must be - // assigned the IAM permissions required by the add-on. If you don't specify - // an existing IAM role, then the add-on uses the permissions assigned to the node - // IAM role. For more information, see Amazon EKS node IAM role - // in the Amazon EKS User Guide. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - serviceAccountRoleArn?: null | string @go(ServiceAccountRoleArn,*string) - - // Reference to a Role in iam to populate serviceAccountRoleArn. - // +kubebuilder:validation:Optional - serviceAccountRoleArnRef?: null | v1.#Reference @go(ServiceAccountRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate serviceAccountRoleArn. - // +kubebuilder:validation:Optional - serviceAccountRoleArnSelector?: null | v1.#Selector @go(ServiceAccountRoleArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// AddonSpec defines the desired state of Addon -#AddonSpec: { - v1.#ResourceSpec - forProvider: #AddonParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AddonInitParameters @go(InitProvider) -} - -// AddonStatus defines the observed state of Addon. -#AddonStatus: { - v1.#ResourceStatus - atProvider?: #AddonObservation @go(AtProvider) -} - -// Addon is the Schema for the Addons API. Manages an EKS add-on -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Addon: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.addonName) || (has(self.initProvider) && has(self.initProvider.addonName))",message="spec.forProvider.addonName is a required parameter" - spec: #AddonSpec @go(Spec) - status?: #AddonStatus @go(Status) -} - -// AddonList contains a list of Addons -#AddonList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Addon] @go(Items,[]Addon) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_cluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_cluster_types_go_gen.cue deleted file mode 100644 index 2621da4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_cluster_types_go_gen.cue +++ /dev/null @@ -1,422 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/eks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CertificateAuthorityInitParameters: { -} - -#CertificateAuthorityObservation: { - // Base64 encoded certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster. - data?: null | string @go(Data,*string) -} - -#CertificateAuthorityParameters: { -} - -#ClusterInitParameters: { - // List of the desired control plane logging to enable. For more information, see Amazon EKS Control Plane Logging. - enabledClusterLogTypes?: [...null | string] @go(EnabledClusterLogTypes,[]*string) - - // Configuration block with encryption configuration for the cluster. Only available on Kubernetes 1.13 and above clusters created after March 6, 2020. Detailed below. - encryptionConfig?: [...#EncryptionConfigInitParameters] @go(EncryptionConfig,[]EncryptionConfigInitParameters) - - // Configuration block with kubernetes network configuration for the cluster. Detailed below. - kubernetesNetworkConfig?: [...#KubernetesNetworkConfigInitParameters] @go(KubernetesNetworkConfig,[]KubernetesNetworkConfigInitParameters) - - // Configuration block representing the configuration of your local Amazon EKS cluster on an AWS Outpost. This block isn't available for creating Amazon EKS clusters on the AWS cloud. - outpostConfig?: [...#OutpostConfigInitParameters] @go(OutpostConfig,[]OutpostConfigInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for the VPC associated with your cluster. Amazon EKS VPC resources have specific requirements to work properly with Kubernetes. For more information, see Cluster VPC Considerations and Cluster Security Group Considerations in the Amazon EKS User Guide. Detailed below. Also contains attributes detailed in the Attributes section. - vpcConfig?: [...#VPCConfigInitParameters] @go(VPCConfig,[]VPCConfigInitParameters) - - // – Desired Kubernetes master version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except those automatically triggered by EKS. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by EKS. - version?: null | string @go(Version,*string) -} - -#ClusterObservation: { - // ARN of the cluster. - arn?: null | string @go(Arn,*string) - - // Attribute block containing certificate-authority-data for your cluster. Detailed below. - certificateAuthority?: [...#CertificateAuthorityObservation] @go(CertificateAuthority,[]CertificateAuthorityObservation) - - // The ID of your local Amazon EKS cluster on the AWS Outpost. This attribute isn't available for an AWS EKS cluster on AWS cloud. - clusterId?: null | string @go(ClusterID,*string) - - // Unix epoch timestamp in seconds for when the cluster was created. - createdAt?: null | string @go(CreatedAt,*string) - - // List of the desired control plane logging to enable. For more information, see Amazon EKS Control Plane Logging. - enabledClusterLogTypes?: [...null | string] @go(EnabledClusterLogTypes,[]*string) - - // Configuration block with encryption configuration for the cluster. Only available on Kubernetes 1.13 and above clusters created after March 6, 2020. Detailed below. - encryptionConfig?: [...#EncryptionConfigObservation] @go(EncryptionConfig,[]EncryptionConfigObservation) - - // Endpoint for your Kubernetes API server. - endpoint?: null | string @go(Endpoint,*string) - - // Name of the cluster. - id?: null | string @go(ID,*string) - - // Attribute block containing identity provider information for your cluster. Only available on Kubernetes version 1.13 and 1.14 clusters created or upgraded on or after September 3, 2019. Detailed below. - identity?: [...#IdentityObservation] @go(Identity,[]IdentityObservation) - - // Configuration block with kubernetes network configuration for the cluster. Detailed below. - kubernetesNetworkConfig?: [...#KubernetesNetworkConfigObservation] @go(KubernetesNetworkConfig,[]KubernetesNetworkConfigObservation) - - // Configuration block representing the configuration of your local Amazon EKS cluster on an AWS Outpost. This block isn't available for creating Amazon EKS clusters on the AWS cloud. - outpostConfig?: [...#OutpostConfigObservation] @go(OutpostConfig,[]OutpostConfigObservation) - - // Platform version for the cluster. - platformVersion?: null | string @go(PlatformVersion,*string) - - // ARN of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf. Ensure the resource configuration includes explicit dependencies on the IAM Role permissions by adding depends_on if using the aws_iam_role_policy resource or aws_iam_role_policy_attachment resource, otherwise EKS cannot delete EKS managed EC2 infrastructure such as Security Groups on EKS Cluster deletion. - roleArn?: null | string @go(RoleArn,*string) - - // Status of the EKS cluster. One of CREATING, ACTIVE, DELETING, FAILED. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration block for the VPC associated with your cluster. Amazon EKS VPC resources have specific requirements to work properly with Kubernetes. For more information, see Cluster VPC Considerations and Cluster Security Group Considerations in the Amazon EKS User Guide. Detailed below. Also contains attributes detailed in the Attributes section. - vpcConfig?: [...#VPCConfigObservation] @go(VPCConfig,[]VPCConfigObservation) - - // – Desired Kubernetes master version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except those automatically triggered by EKS. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by EKS. - version?: null | string @go(Version,*string) -} - -#ClusterParameters: { - // List of the desired control plane logging to enable. For more information, see Amazon EKS Control Plane Logging. - // +kubebuilder:validation:Optional - enabledClusterLogTypes?: [...null | string] @go(EnabledClusterLogTypes,[]*string) - - // Configuration block with encryption configuration for the cluster. Only available on Kubernetes 1.13 and above clusters created after March 6, 2020. Detailed below. - // +kubebuilder:validation:Optional - encryptionConfig?: [...#EncryptionConfigParameters] @go(EncryptionConfig,[]EncryptionConfigParameters) - - // Configuration block with kubernetes network configuration for the cluster. Detailed below. - // +kubebuilder:validation:Optional - kubernetesNetworkConfig?: [...#KubernetesNetworkConfigParameters] @go(KubernetesNetworkConfig,[]KubernetesNetworkConfigParameters) - - // Configuration block representing the configuration of your local Amazon EKS cluster on an AWS Outpost. This block isn't available for creating Amazon EKS clusters on the AWS cloud. - // +kubebuilder:validation:Optional - outpostConfig?: [...#OutpostConfigParameters] @go(OutpostConfig,[]OutpostConfigParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ARN of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf. Ensure the resource configuration includes explicit dependencies on the IAM Role permissions by adding depends_on if using the aws_iam_role_policy resource or aws_iam_role_policy_attachment resource, otherwise EKS cannot delete EKS managed EC2 infrastructure such as Security Groups on EKS Cluster deletion. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for the VPC associated with your cluster. Amazon EKS VPC resources have specific requirements to work properly with Kubernetes. For more information, see Cluster VPC Considerations and Cluster Security Group Considerations in the Amazon EKS User Guide. Detailed below. Also contains attributes detailed in the Attributes section. - // +kubebuilder:validation:Optional - vpcConfig?: [...#VPCConfigParameters] @go(VPCConfig,[]VPCConfigParameters) - - // – Desired Kubernetes master version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except those automatically triggered by EKS. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by EKS. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#ControlPlanePlacementInitParameters: { - // The name of the placement group for the Kubernetes control plane instances. This setting can't be changed after cluster creation. - groupName?: null | string @go(GroupName,*string) -} - -#ControlPlanePlacementObservation: { - // The name of the placement group for the Kubernetes control plane instances. This setting can't be changed after cluster creation. - groupName?: null | string @go(GroupName,*string) -} - -#ControlPlanePlacementParameters: { - // The name of the placement group for the Kubernetes control plane instances. This setting can't be changed after cluster creation. - // +kubebuilder:validation:Optional - groupName?: null | string @go(GroupName,*string) -} - -#EncryptionConfigInitParameters: { - // Configuration block with provider for encryption. Detailed below. - provider?: [...#ProviderInitParameters] @go(Provider,[]ProviderInitParameters) - - // List of strings with resources to be encrypted. Valid values: secrets. - resources?: [...null | string] @go(Resources,[]*string) -} - -#EncryptionConfigObservation: { - // Configuration block with provider for encryption. Detailed below. - provider?: [...#ProviderObservation] @go(Provider,[]ProviderObservation) - - // List of strings with resources to be encrypted. Valid values: secrets. - resources?: [...null | string] @go(Resources,[]*string) -} - -#EncryptionConfigParameters: { - // Configuration block with provider for encryption. Detailed below. - // +kubebuilder:validation:Optional - provider: [...#ProviderParameters] @go(Provider,[]ProviderParameters) - - // List of strings with resources to be encrypted. Valid values: secrets. - // +kubebuilder:validation:Optional - resources: [...null | string] @go(Resources,[]*string) -} - -#IdentityInitParameters: { -} - -#IdentityObservation: { - // Nested block containing OpenID Connect identity provider information for the cluster. Detailed below. - oidc?: [...#OidcObservation] @go(Oidc,[]OidcObservation) -} - -#IdentityParameters: { -} - -#KubernetesNetworkConfigInitParameters: { - // The IP family used to assign Kubernetes pod and service addresses. Valid values are ipv4 (default) and ipv6. You can only specify an IP family when you create a cluster, changing this value will force a new cluster to be created. - ipFamily?: null | string @go(IPFamily,*string) - - // The CIDR block to assign Kubernetes pod and service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. You can only specify a custom CIDR block when you create a cluster, changing this value will force a new cluster to be created. The block must meet the following requirements: - serviceIpv4Cidr?: null | string @go(ServiceIPv4Cidr,*string) -} - -#KubernetesNetworkConfigObservation: { - // The IP family used to assign Kubernetes pod and service addresses. Valid values are ipv4 (default) and ipv6. You can only specify an IP family when you create a cluster, changing this value will force a new cluster to be created. - ipFamily?: null | string @go(IPFamily,*string) - - // The CIDR block to assign Kubernetes pod and service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. You can only specify a custom CIDR block when you create a cluster, changing this value will force a new cluster to be created. The block must meet the following requirements: - serviceIpv4Cidr?: null | string @go(ServiceIPv4Cidr,*string) - - // The CIDR block that Kubernetes pod and service IP addresses are assigned from if you specified ipv6 for ipFamily when you created the cluster. Kubernetes assigns service addresses from the unique local address range (fc00::/7) because you can't specify a custom IPv6 CIDR block when you create the cluster. - serviceIpv6Cidr?: null | string @go(ServiceIPv6Cidr,*string) -} - -#KubernetesNetworkConfigParameters: { - // The IP family used to assign Kubernetes pod and service addresses. Valid values are ipv4 (default) and ipv6. You can only specify an IP family when you create a cluster, changing this value will force a new cluster to be created. - // +kubebuilder:validation:Optional - ipFamily?: null | string @go(IPFamily,*string) - - // The CIDR block to assign Kubernetes pod and service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. You can only specify a custom CIDR block when you create a cluster, changing this value will force a new cluster to be created. The block must meet the following requirements: - // +kubebuilder:validation:Optional - serviceIpv4Cidr?: null | string @go(ServiceIPv4Cidr,*string) -} - -#OidcInitParameters: { -} - -#OidcObservation: { - // Issuer URL for the OpenID Connect identity provider. - issuer?: null | string @go(Issuer,*string) -} - -#OidcParameters: { -} - -#OutpostConfigInitParameters: { - // The Amazon EC2 instance type that you want to use for your local Amazon EKS cluster on Outposts. The instance type that you specify is used for all Kubernetes control plane instances. The instance type can't be changed after cluster creation. Choose an instance type based on the number of nodes that your cluster will have. If your cluster will have: - controlPlaneInstanceType?: null | string @go(ControlPlaneInstanceType,*string) - - // An object representing the placement configuration for all the control plane instances of your local Amazon EKS cluster on AWS Outpost. - // The following arguments are supported in the control_plane_placement configuration block: - controlPlanePlacement?: [...#ControlPlanePlacementInitParameters] @go(ControlPlanePlacement,[]ControlPlanePlacementInitParameters) - - // The ARN of the Outpost that you want to use for your local Amazon EKS cluster on Outposts. This argument is a list of arns, but only a single Outpost ARN is supported currently. - outpostArns?: [...null | string] @go(OutpostArns,[]*string) -} - -#OutpostConfigObservation: { - // The Amazon EC2 instance type that you want to use for your local Amazon EKS cluster on Outposts. The instance type that you specify is used for all Kubernetes control plane instances. The instance type can't be changed after cluster creation. Choose an instance type based on the number of nodes that your cluster will have. If your cluster will have: - controlPlaneInstanceType?: null | string @go(ControlPlaneInstanceType,*string) - - // An object representing the placement configuration for all the control plane instances of your local Amazon EKS cluster on AWS Outpost. - // The following arguments are supported in the control_plane_placement configuration block: - controlPlanePlacement?: [...#ControlPlanePlacementObservation] @go(ControlPlanePlacement,[]ControlPlanePlacementObservation) - - // The ARN of the Outpost that you want to use for your local Amazon EKS cluster on Outposts. This argument is a list of arns, but only a single Outpost ARN is supported currently. - outpostArns?: [...null | string] @go(OutpostArns,[]*string) -} - -#OutpostConfigParameters: { - // The Amazon EC2 instance type that you want to use for your local Amazon EKS cluster on Outposts. The instance type that you specify is used for all Kubernetes control plane instances. The instance type can't be changed after cluster creation. Choose an instance type based on the number of nodes that your cluster will have. If your cluster will have: - // +kubebuilder:validation:Optional - controlPlaneInstanceType?: null | string @go(ControlPlaneInstanceType,*string) - - // An object representing the placement configuration for all the control plane instances of your local Amazon EKS cluster on AWS Outpost. - // The following arguments are supported in the control_plane_placement configuration block: - // +kubebuilder:validation:Optional - controlPlanePlacement?: [...#ControlPlanePlacementParameters] @go(ControlPlanePlacement,[]ControlPlanePlacementParameters) - - // The ARN of the Outpost that you want to use for your local Amazon EKS cluster on Outposts. This argument is a list of arns, but only a single Outpost ARN is supported currently. - // +kubebuilder:validation:Optional - outpostArns: [...null | string] @go(OutpostArns,[]*string) -} - -#ProviderInitParameters: { - // ARN of the Key Management Service (KMS) customer master key (CMK). The CMK must be symmetric, created in the same region as the cluster, and if the CMK was created in a different account, the user must have access to the CMK. For more information, see Allowing Users in Other Accounts to Use a CMK in the AWS Key Management Service Developer Guide. - keyArn?: null | string @go(KeyArn,*string) -} - -#ProviderObservation: { - // ARN of the Key Management Service (KMS) customer master key (CMK). The CMK must be symmetric, created in the same region as the cluster, and if the CMK was created in a different account, the user must have access to the CMK. For more information, see Allowing Users in Other Accounts to Use a CMK in the AWS Key Management Service Developer Guide. - keyArn?: null | string @go(KeyArn,*string) -} - -#ProviderParameters: { - // ARN of the Key Management Service (KMS) customer master key (CMK). The CMK must be symmetric, created in the same region as the cluster, and if the CMK was created in a different account, the user must have access to the CMK. For more information, see Allowing Users in Other Accounts to Use a CMK in the AWS Key Management Service Developer Guide. - // +kubebuilder:validation:Optional - keyArn?: null | string @go(KeyArn,*string) -} - -#VPCConfigInitParameters: { - // Whether the Amazon EKS private API server endpoint is enabled. Default is false. - endpointPrivateAccess?: null | bool @go(EndpointPrivateAccess,*bool) - - // Whether the Amazon EKS public API server endpoint is enabled. Default is true. - endpointPublicAccess?: null | bool @go(EndpointPublicAccess,*bool) - - // List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint when enabled. EKS defaults this to a list with 0.0.0.0/0. - publicAccessCidrs?: [...null | string] @go(PublicAccessCidrs,[]*string) -} - -#VPCConfigObservation: { - // Cluster security group that was created by Amazon EKS for the cluster. Managed node groups use this security group for control-plane-to-data-plane communication. - clusterSecurityGroupId?: null | string @go(ClusterSecurityGroupID,*string) - - // Whether the Amazon EKS private API server endpoint is enabled. Default is false. - endpointPrivateAccess?: null | bool @go(EndpointPrivateAccess,*bool) - - // Whether the Amazon EKS public API server endpoint is enabled. Default is true. - endpointPublicAccess?: null | bool @go(EndpointPublicAccess,*bool) - - // List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint when enabled. EKS defaults this to a list with 0.0.0.0/0. - publicAccessCidrs?: [...null | string] @go(PublicAccessCidrs,[]*string) - - // account elastic network interfaces that Amazon EKS creates to use to allow communication between your worker nodes and the Kubernetes control plane. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // account elastic network interfaces in these subnets to allow communication between your worker nodes and the Kubernetes control plane. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // ID of the VPC associated with your cluster. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCConfigParameters: { - // Whether the Amazon EKS private API server endpoint is enabled. Default is false. - // +kubebuilder:validation:Optional - endpointPrivateAccess?: null | bool @go(EndpointPrivateAccess,*bool) - - // Whether the Amazon EKS public API server endpoint is enabled. Default is true. - // +kubebuilder:validation:Optional - endpointPublicAccess?: null | bool @go(EndpointPublicAccess,*bool) - - // List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint when enabled. EKS defaults this to a list with 0.0.0.0/0. - // +kubebuilder:validation:Optional - publicAccessCidrs?: [...null | string] @go(PublicAccessCidrs,[]*string) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // account elastic network interfaces that Amazon EKS creates to use to allow communication between your worker nodes and the Kubernetes control plane. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // account elastic network interfaces in these subnets to allow communication between your worker nodes and the Kubernetes control plane. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -// ClusterSpec defines the desired state of Cluster -#ClusterSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInitParameters @go(InitProvider) -} - -// ClusterStatus defines the observed state of Cluster. -#ClusterStatus: { - v1.#ResourceStatus - atProvider?: #ClusterObservation @go(AtProvider) -} - -// Cluster is the Schema for the Clusters API. Manages an EKS Cluster -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Cluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.vpcConfig) || (has(self.initProvider) && has(self.initProvider.vpcConfig))",message="spec.forProvider.vpcConfig is a required parameter" - spec: #ClusterSpec @go(Spec) - status?: #ClusterStatus @go(Status) -} - -// ClusterList contains a list of Clusters -#ClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Cluster] @go(Items,[]Cluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_fargateprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_fargateprofile_types_go_gen.cue deleted file mode 100644 index 1543763..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_fargateprofile_types_go_gen.cue +++ /dev/null @@ -1,177 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/eks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#FargateProfileInitParameters: { - // Configuration block(s) for selecting Kubernetes Pods to execute with this EKS Fargate Profile. Detailed below. - selector?: [...#SelectorInitParameters] @go(Selector,[]SelectorInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FargateProfileObservation: { - // Amazon Resource Name (ARN) of the EKS Fargate Profile. - arn?: null | string @go(Arn,*string) - - // 100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (^[0-9A-Za-z][A-Za-z0-9\-_]+$). - clusterName?: null | string @go(ClusterName,*string) - - // EKS Cluster name and EKS Fargate Profile name separated by a colon (:). - id?: null | string @go(ID,*string) - - // – Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Fargate Profile. - podExecutionRoleArn?: null | string @go(PodExecutionRoleArn,*string) - - // Configuration block(s) for selecting Kubernetes Pods to execute with this EKS Fargate Profile. Detailed below. - selector?: [...#SelectorObservation] @go(Selector,[]SelectorObservation) - - // Status of the EKS Fargate Profile. - status?: null | string @go(Status,*string) - - // – Identifiers of private EC2 Subnets to associate with the EKS Fargate Profile. These subnets must have the following resource tag: kubernetes.io/cluster/CLUSTER_NAME (where CLUSTER_NAME is replaced with the name of the EKS Cluster). - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#FargateProfileParameters: { - // 100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (^[0-9A-Za-z][A-Za-z0-9\-_]+$). - // +crossplane:generate:reference:type=Cluster - // +kubebuilder:validation:Optional - clusterName?: null | string @go(ClusterName,*string) - - // Reference to a Cluster to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameRef?: null | v1.#Reference @go(ClusterNameRef,*v1.Reference) - - // Selector for a Cluster to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameSelector?: null | v1.#Selector @go(ClusterNameSelector,*v1.Selector) - - // – Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Fargate Profile. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - podExecutionRoleArn?: null | string @go(PodExecutionRoleArn,*string) - - // Reference to a Role in iam to populate podExecutionRoleArn. - // +kubebuilder:validation:Optional - podExecutionRoleArnRef?: null | v1.#Reference @go(PodExecutionRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate podExecutionRoleArn. - // +kubebuilder:validation:Optional - podExecutionRoleArnSelector?: null | v1.#Selector @go(PodExecutionRoleArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block(s) for selecting Kubernetes Pods to execute with this EKS Fargate Profile. Detailed below. - // +kubebuilder:validation:Optional - selector?: [...#SelectorParameters] @go(Selector,[]SelectorParameters) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // – Identifiers of private EC2 Subnets to associate with the EKS Fargate Profile. These subnets must have the following resource tag: kubernetes.io/cluster/CLUSTER_NAME (where CLUSTER_NAME is replaced with the name of the EKS Cluster). - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SelectorInitParameters: { - // Key-value map of Kubernetes labels for selection. - labels?: {[string]: null | string} @go(Labels,map[string]*string) - - // Kubernetes namespace for selection. - namespace?: null | string @go(Namespace,*string) -} - -#SelectorObservation: { - // Key-value map of Kubernetes labels for selection. - labels?: {[string]: null | string} @go(Labels,map[string]*string) - - // Kubernetes namespace for selection. - namespace?: null | string @go(Namespace,*string) -} - -#SelectorParameters: { - // Key-value map of Kubernetes labels for selection. - // +kubebuilder:validation:Optional - labels?: {[string]: null | string} @go(Labels,map[string]*string) - - // Kubernetes namespace for selection. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) -} - -// FargateProfileSpec defines the desired state of FargateProfile -#FargateProfileSpec: { - v1.#ResourceSpec - forProvider: #FargateProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FargateProfileInitParameters @go(InitProvider) -} - -// FargateProfileStatus defines the observed state of FargateProfile. -#FargateProfileStatus: { - v1.#ResourceStatus - atProvider?: #FargateProfileObservation @go(AtProvider) -} - -// FargateProfile is the Schema for the FargateProfiles API. Manages an EKS Fargate Profile -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FargateProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.selector) || (has(self.initProvider) && has(self.initProvider.selector))",message="spec.forProvider.selector is a required parameter" - spec: #FargateProfileSpec @go(Spec) - status?: #FargateProfileStatus @go(Status) -} - -// FargateProfileList contains a list of FargateProfiles -#FargateProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FargateProfile] @go(Items,[]FargateProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index d1dd4db..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/eks/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=eks.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "eks.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_identityproviderconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_identityproviderconfig_types_go_gen.cue deleted file mode 100644 index aecc8d1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_identityproviderconfig_types_go_gen.cue +++ /dev/null @@ -1,192 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/eks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IdentityProviderConfigInitParameters: { - // Nested attribute containing OpenID Connect identity provider information for the cluster. Detailed below. - oidc?: [...#IdentityProviderConfigOidcInitParameters] @go(Oidc,[]IdentityProviderConfigOidcInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#IdentityProviderConfigObservation: { - // Amazon Resource Name (ARN) of the EKS Identity Provider Configuration. - arn?: null | string @go(Arn,*string) - - // – Name of the EKS Cluster. - clusterName?: null | string @go(ClusterName,*string) - - // EKS Cluster name and EKS Identity Provider Configuration name separated by a colon (:). - id?: null | string @go(ID,*string) - - // Nested attribute containing OpenID Connect identity provider information for the cluster. Detailed below. - oidc?: [...#IdentityProviderConfigOidcObservation] @go(Oidc,[]IdentityProviderConfigOidcObservation) - - // Status of the EKS Identity Provider Configuration. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#IdentityProviderConfigOidcInitParameters: { - // – Client ID for the OpenID Connect identity provider. - clientId?: null | string @go(ClientID,*string) - - // The JWT claim that the provider will use to return groups. - groupsClaim?: null | string @go(GroupsClaim,*string) - - // A prefix that is prepended to group claims e.g., oidc:. - groupsPrefix?: null | string @go(GroupsPrefix,*string) - - // Issuer URL for the OpenID Connect identity provider. - issuerUrl?: null | string @go(IssuerURL,*string) - - // The key value pairs that describe required claims in the identity token. - requiredClaims?: {[string]: null | string} @go(RequiredClaims,map[string]*string) - - // The JWT claim that the provider will use as the username. - usernameClaim?: null | string @go(UsernameClaim,*string) - - // A prefix that is prepended to username claims. - usernamePrefix?: null | string @go(UsernamePrefix,*string) -} - -#IdentityProviderConfigOidcObservation: { - // – Client ID for the OpenID Connect identity provider. - clientId?: null | string @go(ClientID,*string) - - // The JWT claim that the provider will use to return groups. - groupsClaim?: null | string @go(GroupsClaim,*string) - - // A prefix that is prepended to group claims e.g., oidc:. - groupsPrefix?: null | string @go(GroupsPrefix,*string) - - // Issuer URL for the OpenID Connect identity provider. - issuerUrl?: null | string @go(IssuerURL,*string) - - // The key value pairs that describe required claims in the identity token. - requiredClaims?: {[string]: null | string} @go(RequiredClaims,map[string]*string) - - // The JWT claim that the provider will use as the username. - usernameClaim?: null | string @go(UsernameClaim,*string) - - // A prefix that is prepended to username claims. - usernamePrefix?: null | string @go(UsernamePrefix,*string) -} - -#IdentityProviderConfigOidcParameters: { - // – Client ID for the OpenID Connect identity provider. - // +kubebuilder:validation:Optional - clientId?: null | string @go(ClientID,*string) - - // The JWT claim that the provider will use to return groups. - // +kubebuilder:validation:Optional - groupsClaim?: null | string @go(GroupsClaim,*string) - - // A prefix that is prepended to group claims e.g., oidc:. - // +kubebuilder:validation:Optional - groupsPrefix?: null | string @go(GroupsPrefix,*string) - - // Issuer URL for the OpenID Connect identity provider. - // +kubebuilder:validation:Optional - issuerUrl?: null | string @go(IssuerURL,*string) - - // The key value pairs that describe required claims in the identity token. - // +kubebuilder:validation:Optional - requiredClaims?: {[string]: null | string} @go(RequiredClaims,map[string]*string) - - // The JWT claim that the provider will use as the username. - // +kubebuilder:validation:Optional - usernameClaim?: null | string @go(UsernameClaim,*string) - - // A prefix that is prepended to username claims. - // +kubebuilder:validation:Optional - usernamePrefix?: null | string @go(UsernamePrefix,*string) -} - -#IdentityProviderConfigParameters: { - // – Name of the EKS Cluster. - // +crossplane:generate:reference:type=Cluster - // +kubebuilder:validation:Optional - clusterName?: null | string @go(ClusterName,*string) - - // Reference to a Cluster to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameRef?: null | v1.#Reference @go(ClusterNameRef,*v1.Reference) - - // Selector for a Cluster to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameSelector?: null | v1.#Selector @go(ClusterNameSelector,*v1.Selector) - - // Nested attribute containing OpenID Connect identity provider information for the cluster. Detailed below. - // +kubebuilder:validation:Optional - oidc?: [...#IdentityProviderConfigOidcParameters] @go(Oidc,[]IdentityProviderConfigOidcParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// IdentityProviderConfigSpec defines the desired state of IdentityProviderConfig -#IdentityProviderConfigSpec: { - v1.#ResourceSpec - forProvider: #IdentityProviderConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IdentityProviderConfigInitParameters @go(InitProvider) -} - -// IdentityProviderConfigStatus defines the observed state of IdentityProviderConfig. -#IdentityProviderConfigStatus: { - v1.#ResourceStatus - atProvider?: #IdentityProviderConfigObservation @go(AtProvider) -} - -// IdentityProviderConfig is the Schema for the IdentityProviderConfigs API. Manages an EKS Identity Provider Configuration. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#IdentityProviderConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.oidc) || (has(self.initProvider) && has(self.initProvider.oidc))",message="spec.forProvider.oidc is a required parameter" - spec: #IdentityProviderConfigSpec @go(Spec) - status?: #IdentityProviderConfigStatus @go(Status) -} - -// IdentityProviderConfigList contains a list of IdentityProviderConfigs -#IdentityProviderConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#IdentityProviderConfig] @go(Items,[]IdentityProviderConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_nodegroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_nodegroup_types_go_gen.cue deleted file mode 100644 index 6ac6b12..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/eks/v1beta1/zz_nodegroup_types_go_gen.cue +++ /dev/null @@ -1,470 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/eks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AutoscalingGroupsInitParameters: { -} - -#AutoscalingGroupsObservation: { - // Name of the AutoScaling Group. - name?: null | string @go(Name,*string) -} - -#AutoscalingGroupsParameters: { -} - -#LaunchTemplateInitParameters: { - // Identifier of the EC2 Launch Template. Conflicts with name. - id?: null | string @go(ID,*string) - - // Name of the EC2 Launch Template. Conflicts with id. - name?: null | string @go(Name,*string) - - // EC2 Launch Template version number. While the API accepts values like $Default and $Latest, the API will convert the value to the associated version number (e.g., 1). Using the default_version or latest_version attribute of the aws_launch_template resource or data source is recommended for this argument. - version?: null | string @go(Version,*string) -} - -#LaunchTemplateObservation: { - // Identifier of the EC2 Launch Template. Conflicts with name. - id?: null | string @go(ID,*string) - - // Name of the EC2 Launch Template. Conflicts with id. - name?: null | string @go(Name,*string) - - // EC2 Launch Template version number. While the API accepts values like $Default and $Latest, the API will convert the value to the associated version number (e.g., 1). Using the default_version or latest_version attribute of the aws_launch_template resource or data source is recommended for this argument. - version?: null | string @go(Version,*string) -} - -#LaunchTemplateParameters: { - // Identifier of the EC2 Launch Template. Conflicts with name. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Name of the EC2 Launch Template. Conflicts with id. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // EC2 Launch Template version number. While the API accepts values like $Default and $Latest, the API will convert the value to the associated version number (e.g., 1). Using the default_version or latest_version attribute of the aws_launch_template resource or data source is recommended for this argument. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#NodeGroupInitParameters: { - // Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. - amiType?: null | string @go(AMIType,*string) - - // Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND, SPOT. - capacityType?: null | string @go(CapacityType,*string) - - // Disk size in GiB for worker nodes. Defaults to 50 for Windows, 20 all other node groups. - diskSize?: null | float64 @go(DiskSize,*float64) - - // Force version update if existing pods are unable to be drained due to a pod disruption budget issue. - forceUpdateVersion?: null | bool @go(ForceUpdateVersion,*bool) - - // List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. - instanceTypes?: [...null | string] @go(InstanceTypes,[]*string) - - // Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed. - labels?: {[string]: null | string} @go(Labels,map[string]*string) - - // Configuration block with Launch Template settings. Detailed below. - launchTemplate?: [...#LaunchTemplateInitParameters] @go(LaunchTemplate,[]LaunchTemplateInitParameters) - - // – AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version. - releaseVersion?: null | string @go(ReleaseVersion,*string) - - // Configuration block with remote access settings. Detailed below. - remoteAccess?: [...#RemoteAccessInitParameters] @go(RemoteAccess,[]RemoteAccessInitParameters) - - // Configuration block with scaling settings. Detailed below. - scalingConfig?: [...#ScalingConfigInitParameters] @go(ScalingConfig,[]ScalingConfigInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. Detailed below. - taint?: [...#TaintInitParameters] @go(Taint,[]TaintInitParameters) - updateConfig?: [...#UpdateConfigInitParameters] @go(UpdateConfig,[]UpdateConfigInitParameters) -} - -#NodeGroupObservation: { - // Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. - amiType?: null | string @go(AMIType,*string) - - // Amazon Resource Name (ARN) of the EKS Node Group. - arn?: null | string @go(Arn,*string) - - // Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND, SPOT. - capacityType?: null | string @go(CapacityType,*string) - - // 100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (^[0-9A-Za-z][A-Za-z0-9\-_]+$). - clusterName?: null | string @go(ClusterName,*string) - - // Disk size in GiB for worker nodes. Defaults to 50 for Windows, 20 all other node groups. - diskSize?: null | float64 @go(DiskSize,*float64) - - // Force version update if existing pods are unable to be drained due to a pod disruption budget issue. - forceUpdateVersion?: null | bool @go(ForceUpdateVersion,*bool) - - // EKS Cluster name and EKS Node Group name separated by a colon (:). - id?: null | string @go(ID,*string) - - // List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. - instanceTypes?: [...null | string] @go(InstanceTypes,[]*string) - - // Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed. - labels?: {[string]: null | string} @go(Labels,map[string]*string) - - // Configuration block with Launch Template settings. Detailed below. - launchTemplate?: [...#LaunchTemplateObservation] @go(LaunchTemplate,[]LaunchTemplateObservation) - - // – Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group. - nodeRoleArn?: null | string @go(NodeRoleArn,*string) - - // – AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version. - releaseVersion?: null | string @go(ReleaseVersion,*string) - - // Configuration block with remote access settings. Detailed below. - remoteAccess?: [...#RemoteAccessObservation] @go(RemoteAccess,[]RemoteAccessObservation) - - // List of objects containing information about underlying resources. - resources?: [...#ResourcesObservation] @go(Resources,[]ResourcesObservation) - - // Configuration block with scaling settings. Detailed below. - scalingConfig?: [...#ScalingConfigObservation] @go(ScalingConfig,[]ScalingConfigObservation) - - // Status of the EKS Node Group. - status?: null | string @go(Status,*string) - - // Identifiers of EC2 Subnets to associate with the EKS Node Group. Amazon EKS managed node groups can be launched in both public and private subnets. If you plan to deploy load balancers to a subnet, the private subnet must have tag kubernetes.io/role/internal-elb, the public subnet must have tag kubernetes.io/role/elb. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. Detailed below. - taint?: [...#TaintObservation] @go(Taint,[]TaintObservation) - updateConfig?: [...#UpdateConfigObservation] @go(UpdateConfig,[]UpdateConfigObservation) - - // – Kubernetes version. Defaults to EKS Cluster Kubernetes version. - version?: null | string @go(Version,*string) -} - -#NodeGroupParameters: { - // Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the AWS documentation for valid values. - // +kubebuilder:validation:Optional - amiType?: null | string @go(AMIType,*string) - - // Type of capacity associated with the EKS Node Group. Valid values: ON_DEMAND, SPOT. - // +kubebuilder:validation:Optional - capacityType?: null | string @go(CapacityType,*string) - - // 100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (^[0-9A-Za-z][A-Za-z0-9\-_]+$). - // +crossplane:generate:reference:type=Cluster - // +crossplane:generate:reference:extractor=ExternalNameIfClusterActive() - // +kubebuilder:validation:Optional - clusterName?: null | string @go(ClusterName,*string) - - // Reference to a Cluster to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameRef?: null | v1.#Reference @go(ClusterNameRef,*v1.Reference) - - // Selector for a Cluster to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameSelector?: null | v1.#Selector @go(ClusterNameSelector,*v1.Selector) - - // Disk size in GiB for worker nodes. Defaults to 50 for Windows, 20 all other node groups. - // +kubebuilder:validation:Optional - diskSize?: null | float64 @go(DiskSize,*float64) - - // Force version update if existing pods are unable to be drained due to a pod disruption budget issue. - // +kubebuilder:validation:Optional - forceUpdateVersion?: null | bool @go(ForceUpdateVersion,*bool) - - // List of instance types associated with the EKS Node Group. Defaults to ["t3.medium"]. - // +kubebuilder:validation:Optional - instanceTypes?: [...null | string] @go(InstanceTypes,[]*string) - - // Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed. - // +kubebuilder:validation:Optional - labels?: {[string]: null | string} @go(Labels,map[string]*string) - - // Configuration block with Launch Template settings. Detailed below. - // +kubebuilder:validation:Optional - launchTemplate?: [...#LaunchTemplateParameters] @go(LaunchTemplate,[]LaunchTemplateParameters) - - // – Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - nodeRoleArn?: null | string @go(NodeRoleArn,*string) - - // Reference to a Role in iam to populate nodeRoleArn. - // +kubebuilder:validation:Optional - nodeRoleArnRef?: null | v1.#Reference @go(NodeRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate nodeRoleArn. - // +kubebuilder:validation:Optional - nodeRoleArnSelector?: null | v1.#Selector @go(NodeRoleArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // – AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version. - // +kubebuilder:validation:Optional - releaseVersion?: null | string @go(ReleaseVersion,*string) - - // Configuration block with remote access settings. Detailed below. - // +kubebuilder:validation:Optional - remoteAccess?: [...#RemoteAccessParameters] @go(RemoteAccess,[]RemoteAccessParameters) - - // Configuration block with scaling settings. Detailed below. - // +kubebuilder:validation:Optional - scalingConfig?: [...#ScalingConfigParameters] @go(ScalingConfig,[]ScalingConfigParameters) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Identifiers of EC2 Subnets to associate with the EKS Node Group. Amazon EKS managed node groups can be launched in both public and private subnets. If you plan to deploy load balancers to a subnet, the private subnet must have tag kubernetes.io/role/internal-elb, the public subnet must have tag kubernetes.io/role/elb. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. Detailed below. - // +kubebuilder:validation:Optional - taint?: [...#TaintParameters] @go(Taint,[]TaintParameters) - - // +kubebuilder:validation:Optional - updateConfig?: [...#UpdateConfigParameters] @go(UpdateConfig,[]UpdateConfigParameters) - - // – Kubernetes version. Defaults to EKS Cluster Kubernetes version. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/eks/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("version",false) - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) - - // Reference to a Cluster in eks to populate version. - // +kubebuilder:validation:Optional - versionRef?: null | v1.#Reference @go(VersionRef,*v1.Reference) - - // Selector for a Cluster in eks to populate version. - // +kubebuilder:validation:Optional - versionSelector?: null | v1.#Selector @go(VersionSelector,*v1.Selector) -} - -#RemoteAccessInitParameters: { - // EC2 Key Pair name that provides access for remote communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify source_security_group_ids when you create an EKS Node Group, either port 3389 for Windows, or port 22 for all other operating systems is opened on the worker nodes to the Internet (0.0.0.0/0). For Windows nodes, this will allow you to use RDP, for all others this allows you to SSH into the worker nodes. - ec2SshKey?: null | string @go(EC2SSHKey,*string) -} - -#RemoteAccessObservation: { - // EC2 Key Pair name that provides access for remote communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify source_security_group_ids when you create an EKS Node Group, either port 3389 for Windows, or port 22 for all other operating systems is opened on the worker nodes to the Internet (0.0.0.0/0). For Windows nodes, this will allow you to use RDP, for all others this allows you to SSH into the worker nodes. - ec2SshKey?: null | string @go(EC2SSHKey,*string) - - // Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify ec2_ssh_key, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0). - sourceSecurityGroupIds?: [...null | string] @go(SourceSecurityGroupIds,[]*string) -} - -#RemoteAccessParameters: { - // EC2 Key Pair name that provides access for remote communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify source_security_group_ids when you create an EKS Node Group, either port 3389 for Windows, or port 22 for all other operating systems is opened on the worker nodes to the Internet (0.0.0.0/0). For Windows nodes, this will allow you to use RDP, for all others this allows you to SSH into the worker nodes. - // +kubebuilder:validation:Optional - ec2SshKey?: null | string @go(EC2SSHKey,*string) - - // References to SecurityGroup in ec2 to populate sourceSecurityGroupIds. - // +kubebuilder:validation:Optional - sourceSecurityGroupIdRefs?: [...v1.#Reference] @go(SourceSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate sourceSecurityGroupIds. - // +kubebuilder:validation:Optional - sourceSecurityGroupIdSelector?: null | v1.#Selector @go(SourceSecurityGroupIDSelector,*v1.Selector) - - // Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify ec2_ssh_key, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0). - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SourceSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SourceSecurityGroupIDSelector - // +kubebuilder:validation:Optional - sourceSecurityGroupIds?: [...null | string] @go(SourceSecurityGroupIds,[]*string) -} - -#ResourcesInitParameters: { -} - -#ResourcesObservation: { - // List of objects containing information about AutoScaling Groups. - autoscalingGroups?: [...#AutoscalingGroupsObservation] @go(AutoscalingGroups,[]AutoscalingGroupsObservation) - - // Identifier of the remote access EC2 Security Group. - remoteAccessSecurityGroupId?: null | string @go(RemoteAccessSecurityGroupID,*string) -} - -#ResourcesParameters: { -} - -#ScalingConfigInitParameters: { - // Desired number of worker nodes. - desiredSize?: null | float64 @go(DesiredSize,*float64) - - // Maximum number of worker nodes. - maxSize?: null | float64 @go(MaxSize,*float64) - - // Minimum number of worker nodes. - minSize?: null | float64 @go(MinSize,*float64) -} - -#ScalingConfigObservation: { - // Desired number of worker nodes. - desiredSize?: null | float64 @go(DesiredSize,*float64) - - // Maximum number of worker nodes. - maxSize?: null | float64 @go(MaxSize,*float64) - - // Minimum number of worker nodes. - minSize?: null | float64 @go(MinSize,*float64) -} - -#ScalingConfigParameters: { - // Desired number of worker nodes. - // +kubebuilder:validation:Optional - desiredSize?: null | float64 @go(DesiredSize,*float64) - - // Maximum number of worker nodes. - // +kubebuilder:validation:Optional - maxSize?: null | float64 @go(MaxSize,*float64) - - // Minimum number of worker nodes. - // +kubebuilder:validation:Optional - minSize?: null | float64 @go(MinSize,*float64) -} - -#TaintInitParameters: { - // The effect of the taint. Valid values: NO_SCHEDULE, NO_EXECUTE, PREFER_NO_SCHEDULE. - effect?: null | string @go(Effect,*string) - - // The key of the taint. Maximum length of 63. - key?: null | string @go(Key,*string) - - // The value of the taint. Maximum length of 63. - value?: null | string @go(Value,*string) -} - -#TaintObservation: { - // The effect of the taint. Valid values: NO_SCHEDULE, NO_EXECUTE, PREFER_NO_SCHEDULE. - effect?: null | string @go(Effect,*string) - - // The key of the taint. Maximum length of 63. - key?: null | string @go(Key,*string) - - // The value of the taint. Maximum length of 63. - value?: null | string @go(Value,*string) -} - -#TaintParameters: { - // The effect of the taint. Valid values: NO_SCHEDULE, NO_EXECUTE, PREFER_NO_SCHEDULE. - // +kubebuilder:validation:Optional - effect?: null | string @go(Effect,*string) - - // The key of the taint. Maximum length of 63. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The value of the taint. Maximum length of 63. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#UpdateConfigInitParameters: { - // Desired max number of unavailable worker nodes during node group update. - maxUnavailable?: null | float64 @go(MaxUnavailable,*float64) - - // Desired max percentage of unavailable worker nodes during node group update. - maxUnavailablePercentage?: null | float64 @go(MaxUnavailablePercentage,*float64) -} - -#UpdateConfigObservation: { - // Desired max number of unavailable worker nodes during node group update. - maxUnavailable?: null | float64 @go(MaxUnavailable,*float64) - - // Desired max percentage of unavailable worker nodes during node group update. - maxUnavailablePercentage?: null | float64 @go(MaxUnavailablePercentage,*float64) -} - -#UpdateConfigParameters: { - // Desired max number of unavailable worker nodes during node group update. - // +kubebuilder:validation:Optional - maxUnavailable?: null | float64 @go(MaxUnavailable,*float64) - - // Desired max percentage of unavailable worker nodes during node group update. - // +kubebuilder:validation:Optional - maxUnavailablePercentage?: null | float64 @go(MaxUnavailablePercentage,*float64) -} - -// NodeGroupSpec defines the desired state of NodeGroup -#NodeGroupSpec: { - v1.#ResourceSpec - forProvider: #NodeGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NodeGroupInitParameters @go(InitProvider) -} - -// NodeGroupStatus defines the observed state of NodeGroup. -#NodeGroupStatus: { - v1.#ResourceStatus - atProvider?: #NodeGroupObservation @go(AtProvider) -} - -// NodeGroup is the Schema for the NodeGroups API. Manages an EKS Node Group -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NodeGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scalingConfig) || (has(self.initProvider) && has(self.initProvider.scalingConfig))",message="spec.forProvider.scalingConfig is a required parameter" - spec: #NodeGroupSpec @go(Spec) - status?: #NodeGroupStatus @go(Status) -} - -// NodeGroupList contains a list of NodeGroups -#NodeGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NodeGroup] @go(Items,[]NodeGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_cluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_cluster_types_go_gen.cue deleted file mode 100644 index be0567a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_cluster_types_go_gen.cue +++ /dev/null @@ -1,485 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticache/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CacheNodesInitParameters: { -} - -#CacheNodesObservation: { - address?: null | string @go(Address,*string) - - // Availability Zone for the cache cluster. If you want to create cache nodes in multi-az, use preferred_availability_zones instead. Default: System chosen Availability Zone. Changing this value will re-create the resource. - availabilityZone?: null | string @go(AvailabilityZone,*string) - id?: null | string @go(ID,*string) - - // The ARN of the created ElastiCache Cluster. - outpostArn?: null | string @go(OutpostArn,*string) - - // create the resource. - port?: null | float64 @go(Port,*float64) -} - -#CacheNodesParameters: { -} - -#ClusterInitParameters: { - // Whether any database modifications are applied immediately, or during the next maintenance window. Default is false. See Amazon ElastiCache Documentation for more information.. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Specifies whether minor version engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. - // Only supported for engine type "redis" and if the engine version is 6 or higher. - // Defaults to true. - autoMinorVersionUpgrade?: null | string @go(AutoMinorVersionUpgrade,*string) - - // Availability Zone for the cache cluster. If you want to create cache nodes in multi-az, use preferred_availability_zones instead. Default: System chosen Availability Zone. Changing this value will re-create the resource. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Whether the nodes in this Memcached node group are created in a single Availability Zone or created across multiple Availability Zones in the cluster's region. Valid values for this parameter are single-az or cross-az, default is single-az. If you want to choose cross-az, num_cache_nodes must be greater than 1. - azMode?: null | string @go(AzMode,*string) - - // – Name of the cache engine to be used for this cache cluster. Valid values are memcached or redis. - engine?: null | string @go(Engine,*string) - - // – Version number of the cache engine to be used. - // If not set, defaults to the latest version. - // See Describe Cache Engine Versions in the AWS Documentation for supported versions. - // When engine is redis and the version is 6 or higher, the major and minor version can be set, e.g., 6.2, - // or the minor version can be unspecified which will use the latest version at creation time, e.g., 6.x. - // Otherwise, specify the full version desired, e.g., 5.0.6. - // The actual engine version used is returned in the attribute engine_version_actual, see Attributes Reference below. - engineVersion?: null | string @go(EngineVersion,*string) - - // Name of your final cluster snapshot. If omitted, no final snapshot will be made. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The IP version to advertise in the discovery protocol. Valid values are ipv4 or ipv6. - ipDiscovery?: null | string @go(IPDiscovery,*string) - - // Specifies the destination and format of Redis SLOWLOG or Redis Engine Log. See the documentation on Amazon ElastiCache. See Log Delivery Configuration below for more details. - logDeliveryConfiguration?: [...#LogDeliveryConfigurationInitParameters] @go(LogDeliveryConfiguration,[]LogDeliveryConfigurationInitParameters) - - // ddd:hh24:mi (24H Clock UTC). - // The minimum maintenance window is a 60 minute period. Example: sun:05:00-sun:09:00. - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // The IP versions for cache cluster connections. IPv6 is supported with Redis engine 6.2 onword or Memcached version 1.6.6 for all Nitro system instances. Valid values are ipv4, ipv6 or dual_stack. - networkType?: null | string @go(NetworkType,*string) - - // create the resource. - nodeType?: null | string @go(NodeType,*string) - - // east-1:012345678999:my_sns_topic. - notificationTopicArn?: null | string @go(NotificationTopicArn,*string) - - // – The initial number of cache nodes that the cache cluster will have. For Redis, this value must be 1. For Memcached, this value must be between 1 and 40. If this number is reduced on subsequent runs, the highest numbered nodes will be removed. - numCacheNodes?: null | float64 @go(NumCacheNodes,*float64) - - // Specify the outpost mode that will apply to the cache cluster creation. Valid values are "single-outpost" and "cross-outpost", however AWS currently only supports "single-outpost" mode. - outpostMode?: null | string @go(OutpostMode,*string) - - // create the resource. - port?: null | float64 @go(Port,*float64) - - // List of the Availability Zones in which cache nodes are created. If you are creating your cluster in an Amazon VPC you can only locate nodes in Availability Zones that are associated with the subnets in the selected subnet group. The number of Availability Zones listed must equal the value of num_cache_nodes. If you want all the nodes in the same Availability Zone, use availability_zone instead, or repeat the Availability Zone multiple times in the list. Default: System chosen Availability Zones. Detecting drift of existing node availability zone is not currently supported. Updating this argument by itself to migrate existing node availability zones is not currently supported and will show a perpetual difference. - preferredAvailabilityZones?: [...null | string] @go(PreferredAvailabilityZones,[]*string) - - // The outpost ARN in which the cache cluster will be created. - preferredOutpostArn?: null | string @go(PreferredOutpostArn,*string) - - // create the resource. - securityGroupNames?: [...null | string] @go(SecurityGroupNames,[]*string) - - // element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. The object name cannot contain any commas. Changing snapshot_arns forces a new resource. - snapshotArns?: [...null | string] @go(SnapshotArns,[]*string) - - // Name of a snapshot from which to restore data into the new node group. Changing snapshot_name forces a new resource. - snapshotName?: null | string @go(SnapshotName,*string) - - // Number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro cache nodes - snapshotRetentionLimit?: null | float64 @go(SnapshotRetentionLimit,*float64) - - // Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. Example: 05:00-09:00 - snapshotWindow?: null | string @go(SnapshotWindow,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterObservation: { - // Whether any database modifications are applied immediately, or during the next maintenance window. Default is false. See Amazon ElastiCache Documentation for more information.. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // The ARN of the created ElastiCache Cluster. - arn?: null | string @go(Arn,*string) - - // Specifies whether minor version engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. - // Only supported for engine type "redis" and if the engine version is 6 or higher. - // Defaults to true. - autoMinorVersionUpgrade?: null | string @go(AutoMinorVersionUpgrade,*string) - - // Availability Zone for the cache cluster. If you want to create cache nodes in multi-az, use preferred_availability_zones instead. Default: System chosen Availability Zone. Changing this value will re-create the resource. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Whether the nodes in this Memcached node group are created in a single Availability Zone or created across multiple Availability Zones in the cluster's region. Valid values for this parameter are single-az or cross-az, default is single-az. If you want to choose cross-az, num_cache_nodes must be greater than 1. - azMode?: null | string @go(AzMode,*string) - - // List of node objects including id, address, port and availability_zone. - cacheNodes?: [...#CacheNodesObservation] @go(CacheNodes,[]CacheNodesObservation) - - // (Memcached only) DNS name of the cache cluster without the port appended. - clusterAddress?: null | string @go(ClusterAddress,*string) - - // (Memcached only) Configuration endpoint to allow host discovery. - configurationEndpoint?: null | string @go(ConfigurationEndpoint,*string) - - // – Name of the cache engine to be used for this cache cluster. Valid values are memcached or redis. - engine?: null | string @go(Engine,*string) - - // – Version number of the cache engine to be used. - // If not set, defaults to the latest version. - // See Describe Cache Engine Versions in the AWS Documentation for supported versions. - // When engine is redis and the version is 6 or higher, the major and minor version can be set, e.g., 6.2, - // or the minor version can be unspecified which will use the latest version at creation time, e.g., 6.x. - // Otherwise, specify the full version desired, e.g., 5.0.6. - // The actual engine version used is returned in the attribute engine_version_actual, see Attributes Reference below. - engineVersion?: null | string @go(EngineVersion,*string) - - // Because ElastiCache pulls the latest minor or patch for a version, this attribute returns the running version of the cache engine. - engineVersionActual?: null | string @go(EngineVersionActual,*string) - - // Name of your final cluster snapshot. If omitted, no final snapshot will be made. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - id?: null | string @go(ID,*string) - - // The IP version to advertise in the discovery protocol. Valid values are ipv4 or ipv6. - ipDiscovery?: null | string @go(IPDiscovery,*string) - - // Specifies the destination and format of Redis SLOWLOG or Redis Engine Log. See the documentation on Amazon ElastiCache. See Log Delivery Configuration below for more details. - logDeliveryConfiguration?: [...#LogDeliveryConfigurationObservation] @go(LogDeliveryConfiguration,[]LogDeliveryConfigurationObservation) - - // ddd:hh24:mi (24H Clock UTC). - // The minimum maintenance window is a 60 minute period. Example: sun:05:00-sun:09:00. - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // The IP versions for cache cluster connections. IPv6 is supported with Redis engine 6.2 onword or Memcached version 1.6.6 for all Nitro system instances. Valid values are ipv4, ipv6 or dual_stack. - networkType?: null | string @go(NetworkType,*string) - - // create the resource. - nodeType?: null | string @go(NodeType,*string) - - // east-1:012345678999:my_sns_topic. - notificationTopicArn?: null | string @go(NotificationTopicArn,*string) - - // – The initial number of cache nodes that the cache cluster will have. For Redis, this value must be 1. For Memcached, this value must be between 1 and 40. If this number is reduced on subsequent runs, the highest numbered nodes will be removed. - numCacheNodes?: null | float64 @go(NumCacheNodes,*float64) - - // Specify the outpost mode that will apply to the cache cluster creation. Valid values are "single-outpost" and "cross-outpost", however AWS currently only supports "single-outpost" mode. - outpostMode?: null | string @go(OutpostMode,*string) - - // – The name of the parameter group to associate with this cache cluster. - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // create the resource. - port?: null | float64 @go(Port,*float64) - - // List of the Availability Zones in which cache nodes are created. If you are creating your cluster in an Amazon VPC you can only locate nodes in Availability Zones that are associated with the subnets in the selected subnet group. The number of Availability Zones listed must equal the value of num_cache_nodes. If you want all the nodes in the same Availability Zone, use availability_zone instead, or repeat the Availability Zone multiple times in the list. Default: System chosen Availability Zones. Detecting drift of existing node availability zone is not currently supported. Updating this argument by itself to migrate existing node availability zones is not currently supported and will show a perpetual difference. - preferredAvailabilityZones?: [...null | string] @go(PreferredAvailabilityZones,[]*string) - - // The outpost ARN in which the cache cluster will be created. - preferredOutpostArn?: null | string @go(PreferredOutpostArn,*string) - - // ID of the replication group to which this cluster should belong. If this parameter is specified, the cluster is added to the specified replication group as a read replica; otherwise, the cluster is a standalone primary that is not part of any replication group. - replicationGroupId?: null | string @go(ReplicationGroupID,*string) - - // – One or more VPC security groups associated with the cache cluster - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // create the resource. - securityGroupNames?: [...null | string] @go(SecurityGroupNames,[]*string) - - // element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. The object name cannot contain any commas. Changing snapshot_arns forces a new resource. - snapshotArns?: [...null | string] @go(SnapshotArns,[]*string) - - // Name of a snapshot from which to restore data into the new node group. Changing snapshot_name forces a new resource. - snapshotName?: null | string @go(SnapshotName,*string) - - // Number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro cache nodes - snapshotRetentionLimit?: null | float64 @go(SnapshotRetentionLimit,*float64) - - // Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. Example: 05:00-09:00 - snapshotWindow?: null | string @go(SnapshotWindow,*string) - - // create the resource. - subnetGroupName?: null | string @go(SubnetGroupName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ClusterParameters: { - // Whether any database modifications are applied immediately, or during the next maintenance window. Default is false. See Amazon ElastiCache Documentation for more information.. - // +kubebuilder:validation:Optional - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Specifies whether minor version engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. - // Only supported for engine type "redis" and if the engine version is 6 or higher. - // Defaults to true. - // +kubebuilder:validation:Optional - autoMinorVersionUpgrade?: null | string @go(AutoMinorVersionUpgrade,*string) - - // Availability Zone for the cache cluster. If you want to create cache nodes in multi-az, use preferred_availability_zones instead. Default: System chosen Availability Zone. Changing this value will re-create the resource. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Whether the nodes in this Memcached node group are created in a single Availability Zone or created across multiple Availability Zones in the cluster's region. Valid values for this parameter are single-az or cross-az, default is single-az. If you want to choose cross-az, num_cache_nodes must be greater than 1. - // +kubebuilder:validation:Optional - azMode?: null | string @go(AzMode,*string) - - // – Name of the cache engine to be used for this cache cluster. Valid values are memcached or redis. - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // – Version number of the cache engine to be used. - // If not set, defaults to the latest version. - // See Describe Cache Engine Versions in the AWS Documentation for supported versions. - // When engine is redis and the version is 6 or higher, the major and minor version can be set, e.g., 6.2, - // or the minor version can be unspecified which will use the latest version at creation time, e.g., 6.x. - // Otherwise, specify the full version desired, e.g., 5.0.6. - // The actual engine version used is returned in the attribute engine_version_actual, see Attributes Reference below. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // Name of your final cluster snapshot. If omitted, no final snapshot will be made. - // +kubebuilder:validation:Optional - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The IP version to advertise in the discovery protocol. Valid values are ipv4 or ipv6. - // +kubebuilder:validation:Optional - ipDiscovery?: null | string @go(IPDiscovery,*string) - - // Specifies the destination and format of Redis SLOWLOG or Redis Engine Log. See the documentation on Amazon ElastiCache. See Log Delivery Configuration below for more details. - // +kubebuilder:validation:Optional - logDeliveryConfiguration?: [...#LogDeliveryConfigurationParameters] @go(LogDeliveryConfiguration,[]LogDeliveryConfigurationParameters) - - // ddd:hh24:mi (24H Clock UTC). - // The minimum maintenance window is a 60 minute period. Example: sun:05:00-sun:09:00. - // +kubebuilder:validation:Optional - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // The IP versions for cache cluster connections. IPv6 is supported with Redis engine 6.2 onword or Memcached version 1.6.6 for all Nitro system instances. Valid values are ipv4, ipv6 or dual_stack. - // +kubebuilder:validation:Optional - networkType?: null | string @go(NetworkType,*string) - - // create the resource. - // +kubebuilder:validation:Optional - nodeType?: null | string @go(NodeType,*string) - - // east-1:012345678999:my_sns_topic. - // +kubebuilder:validation:Optional - notificationTopicArn?: null | string @go(NotificationTopicArn,*string) - - // – The initial number of cache nodes that the cache cluster will have. For Redis, this value must be 1. For Memcached, this value must be between 1 and 40. If this number is reduced on subsequent runs, the highest numbered nodes will be removed. - // +kubebuilder:validation:Optional - numCacheNodes?: null | float64 @go(NumCacheNodes,*float64) - - // Specify the outpost mode that will apply to the cache cluster creation. Valid values are "single-outpost" and "cross-outpost", however AWS currently only supports "single-outpost" mode. - // +kubebuilder:validation:Optional - outpostMode?: null | string @go(OutpostMode,*string) - - // – The name of the parameter group to associate with this cache cluster. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elasticache/v1beta1.ParameterGroup - // +kubebuilder:validation:Optional - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // Reference to a ParameterGroup in elasticache to populate parameterGroupName. - // +kubebuilder:validation:Optional - parameterGroupNameRef?: null | v1.#Reference @go(ParameterGroupNameRef,*v1.Reference) - - // Selector for a ParameterGroup in elasticache to populate parameterGroupName. - // +kubebuilder:validation:Optional - parameterGroupNameSelector?: null | v1.#Selector @go(ParameterGroupNameSelector,*v1.Selector) - - // create the resource. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // List of the Availability Zones in which cache nodes are created. If you are creating your cluster in an Amazon VPC you can only locate nodes in Availability Zones that are associated with the subnets in the selected subnet group. The number of Availability Zones listed must equal the value of num_cache_nodes. If you want all the nodes in the same Availability Zone, use availability_zone instead, or repeat the Availability Zone multiple times in the list. Default: System chosen Availability Zones. Detecting drift of existing node availability zone is not currently supported. Updating this argument by itself to migrate existing node availability zones is not currently supported and will show a perpetual difference. - // +kubebuilder:validation:Optional - preferredAvailabilityZones?: [...null | string] @go(PreferredAvailabilityZones,[]*string) - - // The outpost ARN in which the cache cluster will be created. - // +kubebuilder:validation:Optional - preferredOutpostArn?: null | string @go(PreferredOutpostArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the replication group to which this cluster should belong. If this parameter is specified, the cluster is added to the specified replication group as a read replica; otherwise, the cluster is a standalone primary that is not part of any replication group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elasticache/v1beta1.ReplicationGroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - replicationGroupId?: null | string @go(ReplicationGroupID,*string) - - // Reference to a ReplicationGroup in elasticache to populate replicationGroupId. - // +kubebuilder:validation:Optional - replicationGroupIdRef?: null | v1.#Reference @go(ReplicationGroupIDRef,*v1.Reference) - - // Selector for a ReplicationGroup in elasticache to populate replicationGroupId. - // +kubebuilder:validation:Optional - replicationGroupIdSelector?: null | v1.#Selector @go(ReplicationGroupIDSelector,*v1.Selector) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // – One or more VPC security groups associated with the cache cluster - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // create the resource. - // +kubebuilder:validation:Optional - securityGroupNames?: [...null | string] @go(SecurityGroupNames,[]*string) - - // element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. The object name cannot contain any commas. Changing snapshot_arns forces a new resource. - // +kubebuilder:validation:Optional - snapshotArns?: [...null | string] @go(SnapshotArns,[]*string) - - // Name of a snapshot from which to restore data into the new node group. Changing snapshot_name forces a new resource. - // +kubebuilder:validation:Optional - snapshotName?: null | string @go(SnapshotName,*string) - - // Number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro cache nodes - // +kubebuilder:validation:Optional - snapshotRetentionLimit?: null | float64 @go(SnapshotRetentionLimit,*float64) - - // Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. Example: 05:00-09:00 - // +kubebuilder:validation:Optional - snapshotWindow?: null | string @go(SnapshotWindow,*string) - - // create the resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elasticache/v1beta1.SubnetGroup - // +kubebuilder:validation:Optional - subnetGroupName?: null | string @go(SubnetGroupName,*string) - - // Reference to a SubnetGroup in elasticache to populate subnetGroupName. - // +kubebuilder:validation:Optional - subnetGroupNameRef?: null | v1.#Reference @go(SubnetGroupNameRef,*v1.Reference) - - // Selector for a SubnetGroup in elasticache to populate subnetGroupName. - // +kubebuilder:validation:Optional - subnetGroupNameSelector?: null | v1.#Selector @go(SubnetGroupNameSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#LogDeliveryConfigurationInitParameters: { - // Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource. - destination?: null | string @go(Destination,*string) - - // For CloudWatch Logs use cloudwatch-logs or for Kinesis Data Firehose use kinesis-firehose. - destinationType?: null | string @go(DestinationType,*string) - - // Valid values are json or text - logFormat?: null | string @go(LogFormat,*string) - - // Valid values are slow-log or engine-log. Max 1 of each. - logType?: null | string @go(LogType,*string) -} - -#LogDeliveryConfigurationObservation: { - // Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource. - destination?: null | string @go(Destination,*string) - - // For CloudWatch Logs use cloudwatch-logs or for Kinesis Data Firehose use kinesis-firehose. - destinationType?: null | string @go(DestinationType,*string) - - // Valid values are json or text - logFormat?: null | string @go(LogFormat,*string) - - // Valid values are slow-log or engine-log. Max 1 of each. - logType?: null | string @go(LogType,*string) -} - -#LogDeliveryConfigurationParameters: { - // Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource. - // +kubebuilder:validation:Optional - destination?: null | string @go(Destination,*string) - - // For CloudWatch Logs use cloudwatch-logs or for Kinesis Data Firehose use kinesis-firehose. - // +kubebuilder:validation:Optional - destinationType?: null | string @go(DestinationType,*string) - - // Valid values are json or text - // +kubebuilder:validation:Optional - logFormat?: null | string @go(LogFormat,*string) - - // Valid values are slow-log or engine-log. Max 1 of each. - // +kubebuilder:validation:Optional - logType?: null | string @go(LogType,*string) -} - -// ClusterSpec defines the desired state of Cluster -#ClusterSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInitParameters @go(InitProvider) -} - -// ClusterStatus defines the observed state of Cluster. -#ClusterStatus: { - v1.#ResourceStatus - atProvider?: #ClusterObservation @go(AtProvider) -} - -// Cluster is the Schema for the Clusters API. Provides an ElastiCache Cluster resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Cluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ClusterSpec @go(Spec) - status?: #ClusterStatus @go(Status) -} - -// ClusterList contains a list of Clusters -#ClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Cluster] @go(Items,[]Cluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 02f1439..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticache/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=elasticache.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "elasticache.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_parametergroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_parametergroup_types_go_gen.cue deleted file mode 100644 index e590078..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_parametergroup_types_go_gen.cue +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticache/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ParameterGroupInitParameters: { - // The description of the ElastiCache parameter group. - description?: null | string @go(Description,*string) - - // The family of the ElastiCache parameter group. - family?: null | string @go(Family,*string) - - // The name of the ElastiCache parameter group. - name?: null | string @go(Name,*string) - - // A list of ElastiCache parameters to apply. - parameter?: [...#ParameterInitParameters] @go(Parameter,[]ParameterInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParameterGroupObservation: { - // The AWS ARN associated with the parameter group. - arn?: null | string @go(Arn,*string) - - // The description of the ElastiCache parameter group. - description?: null | string @go(Description,*string) - - // The family of the ElastiCache parameter group. - family?: null | string @go(Family,*string) - - // The ElastiCache parameter group name. - id?: null | string @go(ID,*string) - - // The name of the ElastiCache parameter group. - name?: null | string @go(Name,*string) - - // A list of ElastiCache parameters to apply. - parameter?: [...#ParameterObservation] @go(Parameter,[]ParameterObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ParameterGroupParameters: { - // The description of the ElastiCache parameter group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The family of the ElastiCache parameter group. - // +kubebuilder:validation:Optional - family?: null | string @go(Family,*string) - - // The name of the ElastiCache parameter group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A list of ElastiCache parameters to apply. - // +kubebuilder:validation:Optional - parameter?: [...#ParameterParameters] @go(Parameter,[]ParameterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParameterInitParameters: { - // The name of the ElastiCache parameter group. - name?: null | string @go(Name,*string) - - // The value of the ElastiCache parameter. - value?: null | string @go(Value,*string) -} - -#ParameterObservation: { - // The name of the ElastiCache parameter group. - name?: null | string @go(Name,*string) - - // The value of the ElastiCache parameter. - value?: null | string @go(Value,*string) -} - -#ParameterParameters: { - // The name of the ElastiCache parameter group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of the ElastiCache parameter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// ParameterGroupSpec defines the desired state of ParameterGroup -#ParameterGroupSpec: { - v1.#ResourceSpec - forProvider: #ParameterGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ParameterGroupInitParameters @go(InitProvider) -} - -// ParameterGroupStatus defines the observed state of ParameterGroup. -#ParameterGroupStatus: { - v1.#ResourceStatus - atProvider?: #ParameterGroupObservation @go(AtProvider) -} - -// ParameterGroup is the Schema for the ParameterGroups API. Provides an ElastiCache parameter group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ParameterGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.family) || (has(self.initProvider) && has(self.initProvider.family))",message="spec.forProvider.family is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ParameterGroupSpec @go(Spec) - status?: #ParameterGroupStatus @go(Status) -} - -// ParameterGroupList contains a list of ParameterGroups -#ParameterGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ParameterGroup] @go(Items,[]ParameterGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_replicationgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_replicationgroup_types_go_gen.cue deleted file mode 100644 index aa7d1bb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_replicationgroup_types_go_gen.cue +++ /dev/null @@ -1,585 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticache/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterModeInitParameters: { - // Number of node groups (shards) for this Redis replication group. - // Changing this number will trigger a resizing operation before other settings modifications. - numNodeGroups?: null | float64 @go(NumNodeGroups,*float64) - - // Number of replica nodes in each node group. - // Changing this number will trigger a resizing operation before other settings modifications. - // Valid values are 0 to 5. - replicasPerNodeGroup?: null | float64 @go(ReplicasPerNodeGroup,*float64) -} - -#ClusterModeObservation: { - // Number of node groups (shards) for this Redis replication group. - // Changing this number will trigger a resizing operation before other settings modifications. - numNodeGroups?: null | float64 @go(NumNodeGroups,*float64) - - // Number of replica nodes in each node group. - // Changing this number will trigger a resizing operation before other settings modifications. - // Valid values are 0 to 5. - replicasPerNodeGroup?: null | float64 @go(ReplicasPerNodeGroup,*float64) -} - -#ClusterModeParameters: { - // Number of node groups (shards) for this Redis replication group. - // Changing this number will trigger a resizing operation before other settings modifications. - // +kubebuilder:validation:Optional - numNodeGroups?: null | float64 @go(NumNodeGroups,*float64) - - // Number of replica nodes in each node group. - // Changing this number will trigger a resizing operation before other settings modifications. - // Valid values are 0 to 5. - // +kubebuilder:validation:Optional - replicasPerNodeGroup?: null | float64 @go(ReplicasPerNodeGroup,*float64) -} - -#ReplicationGroupInitParameters: { - // Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is false. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Whether to enable encryption at rest. - atRestEncryptionEnabled?: null | bool @go(AtRestEncryptionEnabled,*bool) - - // Specifies whether minor version engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. - // Only supported for engine type "redis" and if the engine version is 6 or higher. - // Defaults to true. - autoMinorVersionUpgrade?: null | string @go(AutoMinorVersionUpgrade,*string) - - // Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. If enabled, num_cache_clusters must be greater than 1. Must be enabled for Redis (cluster mode enabled) replication groups. Defaults to false. - automaticFailoverEnabled?: null | bool @go(AutomaticFailoverEnabled,*bool) - - // List of EC2 availability zones in which the replication group's cache clusters will be created. The order of the availability zones in the list is not considered. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Create a native Redis cluster. automatic_failover_enabled must be set to true. Cluster Mode documented below. Only 1 cluster_mode block is allowed. Note that configuring this block does not enable cluster mode, i.e., data sharding, this requires using a parameter group that has the parameter cluster-enabled set to true. - clusterMode?: [...#ClusterModeInitParameters] @go(ClusterMode,[]ClusterModeInitParameters) - - // Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. - dataTieringEnabled?: null | bool @go(DataTieringEnabled,*bool) - - // created description for the replication group. Must not be empty. - description?: null | string @go(Description,*string) - - // Name of the cache engine to be used for the clusters in this replication group. The only valid value is redis. - engine?: null | string @go(Engine,*string) - - // Version number of the cache engine to be used for the cache clusters in this replication group. - // If the version is 6 or higher, the major and minor version can be set, e.g., 6.2, - // or the minor version can be unspecified which will use the latest version at creation time, e.g., 6.x. - // Otherwise, specify the full version desired, e.g., 5.0.6. - // The actual engine version used is returned in the attribute engine_version_actual, see Attributes Reference below. - engineVersion?: null | string @go(EngineVersion,*string) - - // The name of your final node group (shard) snapshot. ElastiCache creates the snapshot from the primary node in the cluster. If omitted, no final snapshot will be made. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The ID of the global replication group to which this replication group should belong. If this parameter is specified, the replication group is added to the specified global replication group as a secondary replication group; otherwise, the replication group is not part of any global replication group. If global_replication_group_id is set, the num_node_groups parameter (or the num_node_groups parameter of the deprecated cluster_mode block) cannot be set. - globalReplicationGroupId?: null | string @go(GlobalReplicationGroupID,*string) - - // Specifies the destination and format of Redis SLOWLOG or Redis Engine Log. See the documentation on Amazon ElastiCache. See Log Delivery Configuration below for more details. - logDeliveryConfiguration?: [...#ReplicationGroupLogDeliveryConfigurationInitParameters] @go(LogDeliveryConfiguration,[]ReplicationGroupLogDeliveryConfigurationInitParameters) - - // ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Example: sun:05:00-sun:09:00 - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // Specifies whether to enable Multi-AZ Support for the replication group. If true, automatic_failover_enabled must also be enabled. Defaults to false. - multiAzEnabled?: null | bool @go(MultiAzEnabled,*bool) - - // Instance class to be used. See AWS documentation for information on supported node types and guidance on selecting node types. Required unless global_replication_group_id is set. Cannot be set if global_replication_group_id is set. - nodeType?: null | string @go(NodeType,*string) - - // east-1:012345678999:my_sns_topic - notificationTopicArn?: null | string @go(NotificationTopicArn,*string) - - // 00#. - numCacheClusters?: null | float64 @go(NumCacheClusters,*float64) - - // Number of node groups (shards) for this Redis replication group. - // Changing this number will trigger a resizing operation before other settings modifications. - numNodeGroups?: null | float64 @go(NumNodeGroups,*float64) - - // Number of cache clusters (primary and replicas) this replication group will have. If Multi-AZ is enabled, the value of this parameter must be at least 2. Updates will occur before other modifications. Conflicts with num_cache_clusters, num_node_groups, or the deprecated cluster_mode. Defaults to 1. - numberCacheClusters?: null | float64 @go(NumberCacheClusters,*float64) - - // Name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used. To enable "cluster mode", i.e., data sharding, use a parameter group that has the parameter cluster-enabled set to true. - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // – Port number on which each of the cache nodes will accept connections. For Memcache the default is 11211, and for Redis the default port is 6379. - port?: null | float64 @go(Port,*float64) - - // List of EC2 availability zones in which the replication group's cache clusters will be created. The order of the availability zones in the list is considered. The first item in the list will be the primary node. Ignored when updating. - preferredCacheClusterAzs?: [...null | string] @go(PreferredCacheClusterAzs,[]*string) - - // Number of replica nodes in each node group. - // Changing this number will trigger a resizing operation before other settings modifications. - // Valid values are 0 to 5. - replicasPerNodeGroup?: null | float64 @go(ReplicasPerNodeGroup,*float64) - - // created description for the replication group. Must not be empty. - replicationGroupDescription?: null | string @go(ReplicationGroupDescription,*string) - - // List of cache security group names to associate with this replication group. - securityGroupNames?: [...null | string] @go(SecurityGroupNames,[]*string) - - // – List of ARNs that identify Redis RDB snapshot files stored in Amazon S3. The names object names cannot contain any commas. - snapshotArns?: [...null | string] @go(SnapshotArns,[]*string) - - // Name of a snapshot from which to restore data into the new node group. Changing the snapshot_name forces a new resource. - snapshotName?: null | string @go(SnapshotName,*string) - - // Number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of snapshot_retention_limit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro cache nodes - snapshotRetentionLimit?: null | float64 @go(SnapshotRetentionLimit,*float64) - - // Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period. Example: 05:00-09:00 - snapshotWindow?: null | string @go(SnapshotWindow,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to enable encryption in transit. - transitEncryptionEnabled?: null | bool @go(TransitEncryptionEnabled,*bool) - - // User Group ID to associate with the replication group. Only a maximum of one (1) user group ID is valid. NOTE: This argument is a set because the AWS specification allows for multiple IDs. However, in practice, AWS only allows a maximum size of one. - userGroupIds?: [...null | string] @go(UserGroupIds,[]*string) -} - -#ReplicationGroupLogDeliveryConfigurationInitParameters: { - // Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource. - destination?: null | string @go(Destination,*string) - - // For CloudWatch Logs use cloudwatch-logs or for Kinesis Data Firehose use kinesis-firehose. - destinationType?: null | string @go(DestinationType,*string) - - // Valid values are json or text - logFormat?: null | string @go(LogFormat,*string) - - // Valid values are slow-log or engine-log. Max 1 of each. - logType?: null | string @go(LogType,*string) -} - -#ReplicationGroupLogDeliveryConfigurationObservation: { - // Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource. - destination?: null | string @go(Destination,*string) - - // For CloudWatch Logs use cloudwatch-logs or for Kinesis Data Firehose use kinesis-firehose. - destinationType?: null | string @go(DestinationType,*string) - - // Valid values are json or text - logFormat?: null | string @go(LogFormat,*string) - - // Valid values are slow-log or engine-log. Max 1 of each. - logType?: null | string @go(LogType,*string) -} - -#ReplicationGroupLogDeliveryConfigurationParameters: { - // Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource. - // +kubebuilder:validation:Optional - destination?: null | string @go(Destination,*string) - - // For CloudWatch Logs use cloudwatch-logs or for Kinesis Data Firehose use kinesis-firehose. - // +kubebuilder:validation:Optional - destinationType?: null | string @go(DestinationType,*string) - - // Valid values are json or text - // +kubebuilder:validation:Optional - logFormat?: null | string @go(LogFormat,*string) - - // Valid values are slow-log or engine-log. Max 1 of each. - // +kubebuilder:validation:Optional - logType?: null | string @go(LogType,*string) -} - -#ReplicationGroupObservation: { - // Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is false. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // ARN of the created ElastiCache Replication Group. - arn?: null | string @go(Arn,*string) - - // Whether to enable encryption at rest. - atRestEncryptionEnabled?: null | bool @go(AtRestEncryptionEnabled,*bool) - - // Specifies whether minor version engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. - // Only supported for engine type "redis" and if the engine version is 6 or higher. - // Defaults to true. - autoMinorVersionUpgrade?: null | string @go(AutoMinorVersionUpgrade,*string) - - // Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. If enabled, num_cache_clusters must be greater than 1. Must be enabled for Redis (cluster mode enabled) replication groups. Defaults to false. - automaticFailoverEnabled?: null | bool @go(AutomaticFailoverEnabled,*bool) - - // List of EC2 availability zones in which the replication group's cache clusters will be created. The order of the availability zones in the list is not considered. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Indicates if cluster mode is enabled. - clusterEnabled?: null | bool @go(ClusterEnabled,*bool) - - // Create a native Redis cluster. automatic_failover_enabled must be set to true. Cluster Mode documented below. Only 1 cluster_mode block is allowed. Note that configuring this block does not enable cluster mode, i.e., data sharding, this requires using a parameter group that has the parameter cluster-enabled set to true. - clusterMode?: [...#ClusterModeObservation] @go(ClusterMode,[]ClusterModeObservation) - - // Address of the replication group configuration endpoint when cluster mode is enabled. - configurationEndpointAddress?: null | string @go(ConfigurationEndpointAddress,*string) - - // Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. - dataTieringEnabled?: null | bool @go(DataTieringEnabled,*bool) - - // created description for the replication group. Must not be empty. - description?: null | string @go(Description,*string) - - // Name of the cache engine to be used for the clusters in this replication group. The only valid value is redis. - engine?: null | string @go(Engine,*string) - - // Version number of the cache engine to be used for the cache clusters in this replication group. - // If the version is 6 or higher, the major and minor version can be set, e.g., 6.2, - // or the minor version can be unspecified which will use the latest version at creation time, e.g., 6.x. - // Otherwise, specify the full version desired, e.g., 5.0.6. - // The actual engine version used is returned in the attribute engine_version_actual, see Attributes Reference below. - engineVersion?: null | string @go(EngineVersion,*string) - - // Because ElastiCache pulls the latest minor or patch for a version, this attribute returns the running version of the cache engine. - engineVersionActual?: null | string @go(EngineVersionActual,*string) - - // The name of your final node group (shard) snapshot. ElastiCache creates the snapshot from the primary node in the cluster. If omitted, no final snapshot will be made. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The ID of the global replication group to which this replication group should belong. If this parameter is specified, the replication group is added to the specified global replication group as a secondary replication group; otherwise, the replication group is not part of any global replication group. If global_replication_group_id is set, the num_node_groups parameter (or the num_node_groups parameter of the deprecated cluster_mode block) cannot be set. - globalReplicationGroupId?: null | string @go(GlobalReplicationGroupID,*string) - - // ID of the ElastiCache Replication Group. - id?: null | string @go(ID,*string) - - // The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if at_rest_encryption_enabled = true. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Specifies the destination and format of Redis SLOWLOG or Redis Engine Log. See the documentation on Amazon ElastiCache. See Log Delivery Configuration below for more details. - logDeliveryConfiguration?: [...#ReplicationGroupLogDeliveryConfigurationObservation] @go(LogDeliveryConfiguration,[]ReplicationGroupLogDeliveryConfigurationObservation) - - // ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Example: sun:05:00-sun:09:00 - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // Identifiers of all the nodes that are part of this replication group. - memberClusters?: [...null | string] @go(MemberClusters,[]*string) - - // Specifies whether to enable Multi-AZ Support for the replication group. If true, automatic_failover_enabled must also be enabled. Defaults to false. - multiAzEnabled?: null | bool @go(MultiAzEnabled,*bool) - - // Instance class to be used. See AWS documentation for information on supported node types and guidance on selecting node types. Required unless global_replication_group_id is set. Cannot be set if global_replication_group_id is set. - nodeType?: null | string @go(NodeType,*string) - - // east-1:012345678999:my_sns_topic - notificationTopicArn?: null | string @go(NotificationTopicArn,*string) - - // 00#. - numCacheClusters?: null | float64 @go(NumCacheClusters,*float64) - - // Number of node groups (shards) for this Redis replication group. - // Changing this number will trigger a resizing operation before other settings modifications. - numNodeGroups?: null | float64 @go(NumNodeGroups,*float64) - - // Number of cache clusters (primary and replicas) this replication group will have. If Multi-AZ is enabled, the value of this parameter must be at least 2. Updates will occur before other modifications. Conflicts with num_cache_clusters, num_node_groups, or the deprecated cluster_mode. Defaults to 1. - numberCacheClusters?: null | float64 @go(NumberCacheClusters,*float64) - - // Name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used. To enable "cluster mode", i.e., data sharding, use a parameter group that has the parameter cluster-enabled set to true. - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // – Port number on which each of the cache nodes will accept connections. For Memcache the default is 11211, and for Redis the default port is 6379. - port?: null | float64 @go(Port,*float64) - - // List of EC2 availability zones in which the replication group's cache clusters will be created. The order of the availability zones in the list is considered. The first item in the list will be the primary node. Ignored when updating. - preferredCacheClusterAzs?: [...null | string] @go(PreferredCacheClusterAzs,[]*string) - - // (Redis only) Address of the endpoint for the primary node in the replication group, if the cluster mode is disabled. - primaryEndpointAddress?: null | string @go(PrimaryEndpointAddress,*string) - - // (Redis only) Address of the endpoint for the reader node in the replication group, if the cluster mode is disabled. - readerEndpointAddress?: null | string @go(ReaderEndpointAddress,*string) - - // Number of replica nodes in each node group. - // Changing this number will trigger a resizing operation before other settings modifications. - // Valid values are 0 to 5. - replicasPerNodeGroup?: null | float64 @go(ReplicasPerNodeGroup,*float64) - - // created description for the replication group. Must not be empty. - replicationGroupDescription?: null | string @go(ReplicationGroupDescription,*string) - - // One or more Amazon VPC security groups associated with this replication group. Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // List of cache security group names to associate with this replication group. - securityGroupNames?: [...null | string] @go(SecurityGroupNames,[]*string) - - // – List of ARNs that identify Redis RDB snapshot files stored in Amazon S3. The names object names cannot contain any commas. - snapshotArns?: [...null | string] @go(SnapshotArns,[]*string) - - // Name of a snapshot from which to restore data into the new node group. Changing the snapshot_name forces a new resource. - snapshotName?: null | string @go(SnapshotName,*string) - - // Number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of snapshot_retention_limit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro cache nodes - snapshotRetentionLimit?: null | float64 @go(SnapshotRetentionLimit,*float64) - - // Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period. Example: 05:00-09:00 - snapshotWindow?: null | string @go(SnapshotWindow,*string) - - // Name of the cache subnet group to be used for the replication group. - subnetGroupName?: null | string @go(SubnetGroupName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether to enable encryption in transit. - transitEncryptionEnabled?: null | bool @go(TransitEncryptionEnabled,*bool) - - // User Group ID to associate with the replication group. Only a maximum of one (1) user group ID is valid. NOTE: This argument is a set because the AWS specification allows for multiple IDs. However, in practice, AWS only allows a maximum size of one. - userGroupIds?: [...null | string] @go(UserGroupIds,[]*string) -} - -#ReplicationGroupParameters: { - // Specifies whether any modifications are applied immediately, or during the next maintenance window. Default is false. - // +kubebuilder:validation:Optional - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Whether to enable encryption at rest. - // +kubebuilder:validation:Optional - atRestEncryptionEnabled?: null | bool @go(AtRestEncryptionEnabled,*bool) - - // Password used to access a password protected server. Can be specified only if transit_encryption_enabled = true. - // +kubebuilder:validation:Optional - authTokenSecretRef?: null | v1.#SecretKeySelector @go(AuthTokenSecretRef,*v1.SecretKeySelector) - - // Specifies whether minor version engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. - // Only supported for engine type "redis" and if the engine version is 6 or higher. - // Defaults to true. - // +kubebuilder:validation:Optional - autoMinorVersionUpgrade?: null | string @go(AutoMinorVersionUpgrade,*string) - - // Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. If enabled, num_cache_clusters must be greater than 1. Must be enabled for Redis (cluster mode enabled) replication groups. Defaults to false. - // +kubebuilder:validation:Optional - automaticFailoverEnabled?: null | bool @go(AutomaticFailoverEnabled,*bool) - - // List of EC2 availability zones in which the replication group's cache clusters will be created. The order of the availability zones in the list is not considered. - // +kubebuilder:validation:Optional - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Create a native Redis cluster. automatic_failover_enabled must be set to true. Cluster Mode documented below. Only 1 cluster_mode block is allowed. Note that configuring this block does not enable cluster mode, i.e., data sharding, this requires using a parameter group that has the parameter cluster-enabled set to true. - // +kubebuilder:validation:Optional - clusterMode?: [...#ClusterModeParameters] @go(ClusterMode,[]ClusterModeParameters) - - // Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. - // +kubebuilder:validation:Optional - dataTieringEnabled?: null | bool @go(DataTieringEnabled,*bool) - - // created description for the replication group. Must not be empty. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Name of the cache engine to be used for the clusters in this replication group. The only valid value is redis. - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // Version number of the cache engine to be used for the cache clusters in this replication group. - // If the version is 6 or higher, the major and minor version can be set, e.g., 6.2, - // or the minor version can be unspecified which will use the latest version at creation time, e.g., 6.x. - // Otherwise, specify the full version desired, e.g., 5.0.6. - // The actual engine version used is returned in the attribute engine_version_actual, see Attributes Reference below. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // The name of your final node group (shard) snapshot. ElastiCache creates the snapshot from the primary node in the cluster. If omitted, no final snapshot will be made. - // +kubebuilder:validation:Optional - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The ID of the global replication group to which this replication group should belong. If this parameter is specified, the replication group is added to the specified global replication group as a secondary replication group; otherwise, the replication group is not part of any global replication group. If global_replication_group_id is set, the num_node_groups parameter (or the num_node_groups parameter of the deprecated cluster_mode block) cannot be set. - // +kubebuilder:validation:Optional - globalReplicationGroupId?: null | string @go(GlobalReplicationGroupID,*string) - - // The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if at_rest_encryption_enabled = true. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Specifies the destination and format of Redis SLOWLOG or Redis Engine Log. See the documentation on Amazon ElastiCache. See Log Delivery Configuration below for more details. - // +kubebuilder:validation:Optional - logDeliveryConfiguration?: [...#ReplicationGroupLogDeliveryConfigurationParameters] @go(LogDeliveryConfiguration,[]ReplicationGroupLogDeliveryConfigurationParameters) - - // ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Example: sun:05:00-sun:09:00 - // +kubebuilder:validation:Optional - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // Specifies whether to enable Multi-AZ Support for the replication group. If true, automatic_failover_enabled must also be enabled. Defaults to false. - // +kubebuilder:validation:Optional - multiAzEnabled?: null | bool @go(MultiAzEnabled,*bool) - - // Instance class to be used. See AWS documentation for information on supported node types and guidance on selecting node types. Required unless global_replication_group_id is set. Cannot be set if global_replication_group_id is set. - // +kubebuilder:validation:Optional - nodeType?: null | string @go(NodeType,*string) - - // east-1:012345678999:my_sns_topic - // +kubebuilder:validation:Optional - notificationTopicArn?: null | string @go(NotificationTopicArn,*string) - - // 00#. - // +kubebuilder:validation:Optional - numCacheClusters?: null | float64 @go(NumCacheClusters,*float64) - - // Number of node groups (shards) for this Redis replication group. - // Changing this number will trigger a resizing operation before other settings modifications. - // +kubebuilder:validation:Optional - numNodeGroups?: null | float64 @go(NumNodeGroups,*float64) - - // Number of cache clusters (primary and replicas) this replication group will have. If Multi-AZ is enabled, the value of this parameter must be at least 2. Updates will occur before other modifications. Conflicts with num_cache_clusters, num_node_groups, or the deprecated cluster_mode. Defaults to 1. - // +kubebuilder:validation:Optional - numberCacheClusters?: null | float64 @go(NumberCacheClusters,*float64) - - // Name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used. To enable "cluster mode", i.e., data sharding, use a parameter group that has the parameter cluster-enabled set to true. - // +kubebuilder:validation:Optional - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // – Port number on which each of the cache nodes will accept connections. For Memcache the default is 11211, and for Redis the default port is 6379. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // List of EC2 availability zones in which the replication group's cache clusters will be created. The order of the availability zones in the list is considered. The first item in the list will be the primary node. Ignored when updating. - // +kubebuilder:validation:Optional - preferredCacheClusterAzs?: [...null | string] @go(PreferredCacheClusterAzs,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Number of replica nodes in each node group. - // Changing this number will trigger a resizing operation before other settings modifications. - // Valid values are 0 to 5. - // +kubebuilder:validation:Optional - replicasPerNodeGroup?: null | float64 @go(ReplicasPerNodeGroup,*float64) - - // created description for the replication group. Must not be empty. - // +kubebuilder:validation:Optional - replicationGroupDescription?: null | string @go(ReplicationGroupDescription,*string) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // One or more Amazon VPC security groups associated with this replication group. Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // List of cache security group names to associate with this replication group. - // +kubebuilder:validation:Optional - securityGroupNames?: [...null | string] @go(SecurityGroupNames,[]*string) - - // – List of ARNs that identify Redis RDB snapshot files stored in Amazon S3. The names object names cannot contain any commas. - // +kubebuilder:validation:Optional - snapshotArns?: [...null | string] @go(SnapshotArns,[]*string) - - // Name of a snapshot from which to restore data into the new node group. Changing the snapshot_name forces a new resource. - // +kubebuilder:validation:Optional - snapshotName?: null | string @go(SnapshotName,*string) - - // Number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of snapshot_retention_limit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro cache nodes - // +kubebuilder:validation:Optional - snapshotRetentionLimit?: null | float64 @go(SnapshotRetentionLimit,*float64) - - // Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period. Example: 05:00-09:00 - // +kubebuilder:validation:Optional - snapshotWindow?: null | string @go(SnapshotWindow,*string) - - // Name of the cache subnet group to be used for the replication group. - // +crossplane:generate:reference:type=SubnetGroup - // +kubebuilder:validation:Optional - subnetGroupName?: null | string @go(SubnetGroupName,*string) - - // Reference to a SubnetGroup to populate subnetGroupName. - // +kubebuilder:validation:Optional - subnetGroupNameRef?: null | v1.#Reference @go(SubnetGroupNameRef,*v1.Reference) - - // Selector for a SubnetGroup to populate subnetGroupName. - // +kubebuilder:validation:Optional - subnetGroupNameSelector?: null | v1.#Selector @go(SubnetGroupNameSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to enable encryption in transit. - // +kubebuilder:validation:Optional - transitEncryptionEnabled?: null | bool @go(TransitEncryptionEnabled,*bool) - - // User Group ID to associate with the replication group. Only a maximum of one (1) user group ID is valid. NOTE: This argument is a set because the AWS specification allows for multiple IDs. However, in practice, AWS only allows a maximum size of one. - // +kubebuilder:validation:Optional - userGroupIds?: [...null | string] @go(UserGroupIds,[]*string) -} - -// ReplicationGroupSpec defines the desired state of ReplicationGroup -#ReplicationGroupSpec: { - v1.#ResourceSpec - forProvider: #ReplicationGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReplicationGroupInitParameters @go(InitProvider) -} - -// ReplicationGroupStatus defines the observed state of ReplicationGroup. -#ReplicationGroupStatus: { - v1.#ResourceStatus - atProvider?: #ReplicationGroupObservation @go(AtProvider) -} - -// ReplicationGroup is the Schema for the ReplicationGroups API. Provides an ElastiCache Replication Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReplicationGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ReplicationGroupSpec @go(Spec) - status?: #ReplicationGroupStatus @go(Status) -} - -// ReplicationGroupList contains a list of ReplicationGroups -#ReplicationGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReplicationGroup] @go(Items,[]ReplicationGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_subnetgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_subnetgroup_types_go_gen.cue deleted file mode 100644 index b79ee4f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_subnetgroup_types_go_gen.cue +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticache/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SubnetGroupInitParameters: { - // – Description for the cache subnet group. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SubnetGroupObservation: { - arn?: null | string @go(Arn,*string) - - // – Description for the cache subnet group. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // – List of VPC Subnet IDs for the cache subnet group - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SubnetGroupParameters: { - // – Description for the cache subnet group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // – List of VPC Subnet IDs for the cache subnet group - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SubnetGroupSpec defines the desired state of SubnetGroup -#SubnetGroupSpec: { - v1.#ResourceSpec - forProvider: #SubnetGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SubnetGroupInitParameters @go(InitProvider) -} - -// SubnetGroupStatus defines the observed state of SubnetGroup. -#SubnetGroupStatus: { - v1.#ResourceStatus - atProvider?: #SubnetGroupObservation @go(AtProvider) -} - -// SubnetGroup is the Schema for the SubnetGroups API. Provides an ElastiCache Subnet Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SubnetGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SubnetGroupSpec @go(Spec) - status?: #SubnetGroupStatus @go(Status) -} - -// SubnetGroupList contains a list of SubnetGroups -#SubnetGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SubnetGroup] @go(Items,[]SubnetGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_user_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_user_types_go_gen.cue deleted file mode 100644 index 3d146a6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_user_types_go_gen.cue +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticache/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AuthenticationModeInitParameters: { - // Specifies the authentication type. Possible options are: password, no-password-required or iam. - type?: null | string @go(Type,*string) -} - -#AuthenticationModeObservation: { - passwordCount?: null | float64 @go(PasswordCount,*float64) - - // Specifies the authentication type. Possible options are: password, no-password-required or iam. - type?: null | string @go(Type,*string) -} - -#AuthenticationModeParameters: { - // Specifies the passwords to use for authentication if type is set to password. - // +kubebuilder:validation:Optional - passwordsSecretRef?: null | [...v1.#SecretKeySelector] @go(PasswordsSecretRef,*[]v1.SecretKeySelector) - - // Specifies the authentication type. Possible options are: password, no-password-required or iam. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#UserInitParameters: { - // Access permissions string used for this user. See Specifying Permissions Using an Access String for more details. - accessString?: null | string @go(AccessString,*string) - - // Denotes the user's authentication properties. Detailed below. - authenticationMode?: [...#AuthenticationModeInitParameters] @go(AuthenticationMode,[]AuthenticationModeInitParameters) - - // The current supported value is REDIS. - engine?: null | string @go(Engine,*string) - - // Indicates a password is not required for this user. - noPasswordRequired?: null | bool @go(NoPasswordRequired,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The username of the user. - userName?: null | string @go(UserName,*string) -} - -#UserObservation: { - // Access permissions string used for this user. See Specifying Permissions Using an Access String for more details. - accessString?: null | string @go(AccessString,*string) - - // The ARN of the created ElastiCache User. - arn?: null | string @go(Arn,*string) - - // Denotes the user's authentication properties. Detailed below. - authenticationMode?: [...#AuthenticationModeObservation] @go(AuthenticationMode,[]AuthenticationModeObservation) - - // The current supported value is REDIS. - engine?: null | string @go(Engine,*string) - id?: null | string @go(ID,*string) - - // Indicates a password is not required for this user. - noPasswordRequired?: null | bool @go(NoPasswordRequired,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The username of the user. - userName?: null | string @go(UserName,*string) -} - -#UserParameters: { - // Access permissions string used for this user. See Specifying Permissions Using an Access String for more details. - // +kubebuilder:validation:Optional - accessString?: null | string @go(AccessString,*string) - - // Denotes the user's authentication properties. Detailed below. - // +kubebuilder:validation:Optional - authenticationMode?: [...#AuthenticationModeParameters] @go(AuthenticationMode,[]AuthenticationModeParameters) - - // The current supported value is REDIS. - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // Indicates a password is not required for this user. - // +kubebuilder:validation:Optional - noPasswordRequired?: null | bool @go(NoPasswordRequired,*bool) - - // Passwords used for this user. You can create up to two passwords for each user. - // +kubebuilder:validation:Optional - passwordsSecretRef?: null | [...v1.#SecretKeySelector] @go(PasswordsSecretRef,*[]v1.SecretKeySelector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The username of the user. - // +kubebuilder:validation:Optional - userName?: null | string @go(UserName,*string) -} - -// UserSpec defines the desired state of User -#UserSpec: { - v1.#ResourceSpec - forProvider: #UserParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserInitParameters @go(InitProvider) -} - -// UserStatus defines the observed state of User. -#UserStatus: { - v1.#ResourceStatus - atProvider?: #UserObservation @go(AtProvider) -} - -// User is the Schema for the Users API. Provides an ElastiCache user. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#User: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accessString) || (has(self.initProvider) && has(self.initProvider.accessString))",message="spec.forProvider.accessString is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.engine) || (has(self.initProvider) && has(self.initProvider.engine))",message="spec.forProvider.engine is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.userName) || (has(self.initProvider) && has(self.initProvider.userName))",message="spec.forProvider.userName is a required parameter" - spec: #UserSpec @go(Spec) - status?: #UserStatus @go(Status) -} - -// UserList contains a list of Users -#UserList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#User] @go(Items,[]User) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_usergroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_usergroup_types_go_gen.cue deleted file mode 100644 index 9a2e193..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticache/v1beta1/zz_usergroup_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticache/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserGroupInitParameters: { - // The current supported value is REDIS. - engine?: null | string @go(Engine,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#UserGroupObservation: { - // The ARN that identifies the user group. - arn?: null | string @go(Arn,*string) - - // The current supported value is REDIS. - engine?: null | string @go(Engine,*string) - - // The user group identifier. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The list of user IDs that belong to the user group. - userIds?: [...null | string] @go(UserIds,[]*string) -} - -#UserGroupParameters: { - // The current supported value is REDIS. - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // References to User to populate userIds. - // +kubebuilder:validation:Optional - userIdRefs?: [...v1.#Reference] @go(UserIDRefs,[]v1.Reference) - - // Selector for a list of User to populate userIds. - // +kubebuilder:validation:Optional - userIdSelector?: null | v1.#Selector @go(UserIDSelector,*v1.Selector) - - // The list of user IDs that belong to the user group. - // +crossplane:generate:reference:type=User - // +crossplane:generate:reference:refFieldName=UserIDRefs - // +crossplane:generate:reference:selectorFieldName=UserIDSelector - // +kubebuilder:validation:Optional - userIds?: [...null | string] @go(UserIds,[]*string) -} - -// UserGroupSpec defines the desired state of UserGroup -#UserGroupSpec: { - v1.#ResourceSpec - forProvider: #UserGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserGroupInitParameters @go(InitProvider) -} - -// UserGroupStatus defines the observed state of UserGroup. -#UserGroupStatus: { - v1.#ResourceStatus - atProvider?: #UserGroupObservation @go(AtProvider) -} - -// UserGroup is the Schema for the UserGroups API. Provides an ElastiCache user group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.engine) || (has(self.initProvider) && has(self.initProvider.engine))",message="spec.forProvider.engine is a required parameter" - spec: #UserGroupSpec @go(Spec) - status?: #UserGroupStatus @go(Status) -} - -// UserGroupList contains a list of UserGroups -#UserGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserGroup] @go(Items,[]UserGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1/zz_application_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1/zz_application_types_go_gen.cue deleted file mode 100644 index 1dd6aea..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1/zz_application_types_go_gen.cue +++ /dev/null @@ -1,153 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ApplicationInitParameters: { - appversionLifecycle?: [...#AppversionLifecycleInitParameters] @go(AppversionLifecycle,[]AppversionLifecycleInitParameters) - - // Short description of the application - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ApplicationObservation: { - appversionLifecycle?: [...#AppversionLifecycleObservation] @go(AppversionLifecycle,[]AppversionLifecycleObservation) - - // The ARN assigned by AWS for this Elastic Beanstalk Application. - arn?: null | string @go(Arn,*string) - - // Short description of the application - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ApplicationParameters: { - // +kubebuilder:validation:Optional - appversionLifecycle?: [...#AppversionLifecycleParameters] @go(AppversionLifecycle,[]AppversionLifecycleParameters) - - // Short description of the application - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AppversionLifecycleInitParameters: { - // Set to true to delete a version's source bundle from S3 when the application version is deleted. - deleteSourceFromS3?: null | bool @go(DeleteSourceFromS3,*bool) - - // The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.). - maxAgeInDays?: null | float64 @go(MaxAgeInDays,*float64) - - // The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.). - maxCount?: null | float64 @go(MaxCount,*float64) -} - -#AppversionLifecycleObservation: { - // Set to true to delete a version's source bundle from S3 when the application version is deleted. - deleteSourceFromS3?: null | bool @go(DeleteSourceFromS3,*bool) - - // The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.). - maxAgeInDays?: null | float64 @go(MaxAgeInDays,*float64) - - // The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.). - maxCount?: null | float64 @go(MaxCount,*float64) - - // The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role. - serviceRole?: null | string @go(ServiceRole,*string) -} - -#AppversionLifecycleParameters: { - // Set to true to delete a version's source bundle from S3 when the application version is deleted. - // +kubebuilder:validation:Optional - deleteSourceFromS3?: null | bool @go(DeleteSourceFromS3,*bool) - - // The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.). - // +kubebuilder:validation:Optional - maxAgeInDays?: null | float64 @go(MaxAgeInDays,*float64) - - // The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.). - // +kubebuilder:validation:Optional - maxCount?: null | float64 @go(MaxCount,*float64) - - // The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - serviceRole?: null | string @go(ServiceRole,*string) - - // Reference to a Role in iam to populate serviceRole. - // +kubebuilder:validation:Optional - serviceRoleRef?: null | v1.#Reference @go(ServiceRoleRef,*v1.Reference) - - // Selector for a Role in iam to populate serviceRole. - // +kubebuilder:validation:Optional - serviceRoleSelector?: null | v1.#Selector @go(ServiceRoleSelector,*v1.Selector) -} - -// ApplicationSpec defines the desired state of Application -#ApplicationSpec: { - v1.#ResourceSpec - forProvider: #ApplicationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ApplicationInitParameters @go(InitProvider) -} - -// ApplicationStatus defines the observed state of Application. -#ApplicationStatus: { - v1.#ResourceStatus - atProvider?: #ApplicationObservation @go(AtProvider) -} - -// Application is the Schema for the Applications API. Provides an Elastic Beanstalk Application Resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Application: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ApplicationSpec @go(Spec) - status?: #ApplicationStatus @go(Status) -} - -// ApplicationList contains a list of Applications -#ApplicationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Application] @go(Items,[]Application) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1/zz_applicationversion_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1/zz_applicationversion_types_go_gen.cue deleted file mode 100644 index 50d2977..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1/zz_applicationversion_types_go_gen.cue +++ /dev/null @@ -1,149 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ApplicationVersionInitParameters: { - // Name of the Beanstalk Application the version is associated with. - application?: null | string @go(Application,*string) - - // Short description of the Application Version. - description?: null | string @go(Description,*string) - - // On delete, force an Application Version to be deleted when it may be in use by multiple Elastic Beanstalk Environments. - forceDelete?: null | bool @go(ForceDelete,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ApplicationVersionObservation: { - // Name of the Beanstalk Application the version is associated with. - application?: null | string @go(Application,*string) - - // ARN assigned by AWS for this Elastic Beanstalk Application. - arn?: null | string @go(Arn,*string) - - // S3 bucket that contains the Application Version source bundle. - bucket?: null | string @go(Bucket,*string) - - // Short description of the Application Version. - description?: null | string @go(Description,*string) - - // On delete, force an Application Version to be deleted when it may be in use by multiple Elastic Beanstalk Environments. - forceDelete?: null | bool @go(ForceDelete,*bool) - id?: null | string @go(ID,*string) - - // S3 object that is the Application Version source bundle. - key?: null | string @go(Key,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ApplicationVersionParameters: { - // Name of the Beanstalk Application the version is associated with. - // +kubebuilder:validation:Optional - application?: null | string @go(Application,*string) - - // S3 bucket that contains the Application Version source bundle. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Short description of the Application Version. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // On delete, force an Application Version to be deleted when it may be in use by multiple Elastic Beanstalk Environments. - // +kubebuilder:validation:Optional - forceDelete?: null | bool @go(ForceDelete,*bool) - - // S3 object that is the Application Version source bundle. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Object - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Reference to a Object in s3 to populate key. - // +kubebuilder:validation:Optional - keyRef?: null | v1.#Reference @go(KeyRef,*v1.Reference) - - // Selector for a Object in s3 to populate key. - // +kubebuilder:validation:Optional - keySelector?: null | v1.#Selector @go(KeySelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ApplicationVersionSpec defines the desired state of ApplicationVersion -#ApplicationVersionSpec: { - v1.#ResourceSpec - forProvider: #ApplicationVersionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ApplicationVersionInitParameters @go(InitProvider) -} - -// ApplicationVersionStatus defines the observed state of ApplicationVersion. -#ApplicationVersionStatus: { - v1.#ResourceStatus - atProvider?: #ApplicationVersionObservation @go(AtProvider) -} - -// ApplicationVersion is the Schema for the ApplicationVersions API. Provides an Elastic Beanstalk Application Version Resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ApplicationVersion: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.application) || (has(self.initProvider) && has(self.initProvider.application))",message="spec.forProvider.application is a required parameter" - spec: #ApplicationVersionSpec @go(Spec) - status?: #ApplicationVersionStatus @go(Status) -} - -// ApplicationVersionList contains a list of ApplicationVersions -#ApplicationVersionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ApplicationVersion] @go(Items,[]ApplicationVersion) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1/zz_configurationtemplate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1/zz_configurationtemplate_types_go_gen.cue deleted file mode 100644 index db45e58..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1/zz_configurationtemplate_types_go_gen.cue +++ /dev/null @@ -1,178 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigurationTemplateInitParameters: { - // Short description of the Template - description?: null | string @go(Description,*string) - - // – The ID of the environment used with this configuration template - environmentId?: null | string @go(EnvironmentID,*string) - - // – Option settings to configure the new Environment. These - // override specific values that are set as defaults. The format is detailed - // below in Option Settings - setting?: [...#SettingInitParameters] @go(Setting,[]SettingInitParameters) - - // – A solution stack to base your Template - // off of. Example stacks can be found in the Amazon API documentation - solutionStackName?: null | string @go(SolutionStackName,*string) -} - -#ConfigurationTemplateObservation: { - // – name of the application to associate with this configuration template - application?: null | string @go(Application,*string) - - // Short description of the Template - description?: null | string @go(Description,*string) - - // – The ID of the environment used with this configuration template - environmentId?: null | string @go(EnvironmentID,*string) - id?: null | string @go(ID,*string) - - // – Option settings to configure the new Environment. These - // override specific values that are set as defaults. The format is detailed - // below in Option Settings - setting?: [...#SettingObservation] @go(Setting,[]SettingObservation) - - // – A solution stack to base your Template - // off of. Example stacks can be found in the Amazon API documentation - solutionStackName?: null | string @go(SolutionStackName,*string) -} - -#ConfigurationTemplateParameters: { - // – name of the application to associate with this configuration template - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1.Application - // +kubebuilder:validation:Optional - application?: null | string @go(Application,*string) - - // Reference to a Application in elasticbeanstalk to populate application. - // +kubebuilder:validation:Optional - applicationRef?: null | v1.#Reference @go(ApplicationRef,*v1.Reference) - - // Selector for a Application in elasticbeanstalk to populate application. - // +kubebuilder:validation:Optional - applicationSelector?: null | v1.#Selector @go(ApplicationSelector,*v1.Selector) - - // Short description of the Template - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // – The ID of the environment used with this configuration template - // +kubebuilder:validation:Optional - environmentId?: null | string @go(EnvironmentID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // – Option settings to configure the new Environment. These - // override specific values that are set as defaults. The format is detailed - // below in Option Settings - // +kubebuilder:validation:Optional - setting?: [...#SettingParameters] @go(Setting,[]SettingParameters) - - // – A solution stack to base your Template - // off of. Example stacks can be found in the Amazon API documentation - // +kubebuilder:validation:Optional - solutionStackName?: null | string @go(SolutionStackName,*string) -} - -#SettingInitParameters: { - // A unique name for this Template. - name?: null | string @go(Name,*string) - - // unique namespace identifying the option's associated AWS resource - namespace?: null | string @go(Namespace,*string) - - // resource name for scheduled action - resource?: null | string @go(Resource,*string) - - // value for the configuration option - value?: null | string @go(Value,*string) -} - -#SettingObservation: { - // A unique name for this Template. - name?: null | string @go(Name,*string) - - // unique namespace identifying the option's associated AWS resource - namespace?: null | string @go(Namespace,*string) - - // resource name for scheduled action - resource?: null | string @go(Resource,*string) - - // value for the configuration option - value?: null | string @go(Value,*string) -} - -#SettingParameters: { - // A unique name for this Template. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // unique namespace identifying the option's associated AWS resource - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) - - // resource name for scheduled action - // +kubebuilder:validation:Optional - resource?: null | string @go(Resource,*string) - - // value for the configuration option - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// ConfigurationTemplateSpec defines the desired state of ConfigurationTemplate -#ConfigurationTemplateSpec: { - v1.#ResourceSpec - forProvider: #ConfigurationTemplateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConfigurationTemplateInitParameters @go(InitProvider) -} - -// ConfigurationTemplateStatus defines the observed state of ConfigurationTemplate. -#ConfigurationTemplateStatus: { - v1.#ResourceStatus - atProvider?: #ConfigurationTemplateObservation @go(AtProvider) -} - -// ConfigurationTemplate is the Schema for the ConfigurationTemplates API. Provides an Elastic Beanstalk Configuration Template -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ConfigurationTemplate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ConfigurationTemplateSpec @go(Spec) - status?: #ConfigurationTemplateStatus @go(Status) -} - -// ConfigurationTemplateList contains a list of ConfigurationTemplates -#ConfigurationTemplateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConfigurationTemplate] @go(Items,[]ConfigurationTemplate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index ae3495e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticbeanstalk/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=elasticbeanstalk.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "elasticbeanstalk.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticsearch/v1beta1/zz_domain_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticsearch/v1beta1/zz_domain_types_go_gen.cue deleted file mode 100644 index a72e8a8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticsearch/v1beta1/zz_domain_types_go_gen.cue +++ /dev/null @@ -1,835 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticsearch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AdvancedSecurityOptionsInitParameters: { - // Whether advanced security is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Whether the internal user database is enabled. If not set, defaults to false by the AWS API. - internalUserDatabaseEnabled?: null | bool @go(InternalUserDatabaseEnabled,*bool) - - // Configuration block for the main user. Detailed below. - masterUserOptions?: [...#MasterUserOptionsInitParameters] @go(MasterUserOptions,[]MasterUserOptionsInitParameters) -} - -#AdvancedSecurityOptionsObservation: { - // Whether advanced security is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Whether the internal user database is enabled. If not set, defaults to false by the AWS API. - internalUserDatabaseEnabled?: null | bool @go(InternalUserDatabaseEnabled,*bool) - - // Configuration block for the main user. Detailed below. - masterUserOptions?: [...#MasterUserOptionsObservation] @go(MasterUserOptions,[]MasterUserOptionsObservation) -} - -#AdvancedSecurityOptionsParameters: { - // Whether advanced security is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Whether the internal user database is enabled. If not set, defaults to false by the AWS API. - // +kubebuilder:validation:Optional - internalUserDatabaseEnabled?: null | bool @go(InternalUserDatabaseEnabled,*bool) - - // Configuration block for the main user. Detailed below. - // +kubebuilder:validation:Optional - masterUserOptions?: [...#MasterUserOptionsParameters] @go(MasterUserOptions,[]MasterUserOptionsParameters) -} - -#AutoTuneOptionsInitParameters: { - // The Auto-Tune desired state for the domain. Valid values: ENABLED or DISABLED. - desiredState?: null | string @go(DesiredState,*string) - - // Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below. - maintenanceSchedule?: [...#MaintenanceScheduleInitParameters] @go(MaintenanceSchedule,[]MaintenanceScheduleInitParameters) - - // Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACK or NO_ROLLBACK. - rollbackOnDisable?: null | string @go(RollbackOnDisable,*string) -} - -#AutoTuneOptionsObservation: { - // The Auto-Tune desired state for the domain. Valid values: ENABLED or DISABLED. - desiredState?: null | string @go(DesiredState,*string) - - // Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below. - maintenanceSchedule?: [...#MaintenanceScheduleObservation] @go(MaintenanceSchedule,[]MaintenanceScheduleObservation) - - // Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACK or NO_ROLLBACK. - rollbackOnDisable?: null | string @go(RollbackOnDisable,*string) -} - -#AutoTuneOptionsParameters: { - // The Auto-Tune desired state for the domain. Valid values: ENABLED or DISABLED. - // +kubebuilder:validation:Optional - desiredState?: null | string @go(DesiredState,*string) - - // Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below. - // +kubebuilder:validation:Optional - maintenanceSchedule?: [...#MaintenanceScheduleParameters] @go(MaintenanceSchedule,[]MaintenanceScheduleParameters) - - // Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACK or NO_ROLLBACK. - // +kubebuilder:validation:Optional - rollbackOnDisable?: null | string @go(RollbackOnDisable,*string) -} - -#ClusterConfigInitParameters: { - // Configuration block containing cold storage configuration. Detailed below. - coldStorageOptions?: [...#ColdStorageOptionsInitParameters] @go(ColdStorageOptions,[]ColdStorageOptionsInitParameters) - - // Number of dedicated main nodes in the cluster. - dedicatedMasterCount?: null | float64 @go(DedicatedMasterCount,*float64) - - // Whether dedicated main nodes are enabled for the cluster. - dedicatedMasterEnabled?: null | bool @go(DedicatedMasterEnabled,*bool) - - // Instance type of the dedicated main nodes in the cluster. - dedicatedMasterType?: null | string @go(DedicatedMasterType,*string) - - // Number of instances in the cluster. - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // Instance type of data nodes in the cluster. - instanceType?: null | string @go(InstanceType,*string) - - // Number of warm nodes in the cluster. Valid values are between 2 and 150. warm_count can be only and must be set when warm_enabled is set to true. - warmCount?: null | float64 @go(WarmCount,*float64) - - // Whether to enable warm storage. - warmEnabled?: null | bool @go(WarmEnabled,*bool) - - // Instance type for the Elasticsearch cluster's warm nodes. Valid values are ultrawarm1.medium.elasticsearch, ultrawarm1.large.elasticsearch and ultrawarm1.xlarge.elasticsearch. warm_type can be only and must be set when warm_enabled is set to true. - warmType?: null | string @go(WarmType,*string) - - // Configuration block containing zone awareness settings. Detailed below. - zoneAwarenessConfig?: [...#ZoneAwarenessConfigInitParameters] @go(ZoneAwarenessConfig,[]ZoneAwarenessConfigInitParameters) - - // Whether zone awareness is enabled, set to true for multi-az deployment. To enable awareness with three Availability Zones, the availability_zone_count within the zone_awareness_config must be set to 3. - zoneAwarenessEnabled?: null | bool @go(ZoneAwarenessEnabled,*bool) -} - -#ClusterConfigObservation: { - // Configuration block containing cold storage configuration. Detailed below. - coldStorageOptions?: [...#ColdStorageOptionsObservation] @go(ColdStorageOptions,[]ColdStorageOptionsObservation) - - // Number of dedicated main nodes in the cluster. - dedicatedMasterCount?: null | float64 @go(DedicatedMasterCount,*float64) - - // Whether dedicated main nodes are enabled for the cluster. - dedicatedMasterEnabled?: null | bool @go(DedicatedMasterEnabled,*bool) - - // Instance type of the dedicated main nodes in the cluster. - dedicatedMasterType?: null | string @go(DedicatedMasterType,*string) - - // Number of instances in the cluster. - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // Instance type of data nodes in the cluster. - instanceType?: null | string @go(InstanceType,*string) - - // Number of warm nodes in the cluster. Valid values are between 2 and 150. warm_count can be only and must be set when warm_enabled is set to true. - warmCount?: null | float64 @go(WarmCount,*float64) - - // Whether to enable warm storage. - warmEnabled?: null | bool @go(WarmEnabled,*bool) - - // Instance type for the Elasticsearch cluster's warm nodes. Valid values are ultrawarm1.medium.elasticsearch, ultrawarm1.large.elasticsearch and ultrawarm1.xlarge.elasticsearch. warm_type can be only and must be set when warm_enabled is set to true. - warmType?: null | string @go(WarmType,*string) - - // Configuration block containing zone awareness settings. Detailed below. - zoneAwarenessConfig?: [...#ZoneAwarenessConfigObservation] @go(ZoneAwarenessConfig,[]ZoneAwarenessConfigObservation) - - // Whether zone awareness is enabled, set to true for multi-az deployment. To enable awareness with three Availability Zones, the availability_zone_count within the zone_awareness_config must be set to 3. - zoneAwarenessEnabled?: null | bool @go(ZoneAwarenessEnabled,*bool) -} - -#ClusterConfigParameters: { - // Configuration block containing cold storage configuration. Detailed below. - // +kubebuilder:validation:Optional - coldStorageOptions?: [...#ColdStorageOptionsParameters] @go(ColdStorageOptions,[]ColdStorageOptionsParameters) - - // Number of dedicated main nodes in the cluster. - // +kubebuilder:validation:Optional - dedicatedMasterCount?: null | float64 @go(DedicatedMasterCount,*float64) - - // Whether dedicated main nodes are enabled for the cluster. - // +kubebuilder:validation:Optional - dedicatedMasterEnabled?: null | bool @go(DedicatedMasterEnabled,*bool) - - // Instance type of the dedicated main nodes in the cluster. - // +kubebuilder:validation:Optional - dedicatedMasterType?: null | string @go(DedicatedMasterType,*string) - - // Number of instances in the cluster. - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // Instance type of data nodes in the cluster. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // Number of warm nodes in the cluster. Valid values are between 2 and 150. warm_count can be only and must be set when warm_enabled is set to true. - // +kubebuilder:validation:Optional - warmCount?: null | float64 @go(WarmCount,*float64) - - // Whether to enable warm storage. - // +kubebuilder:validation:Optional - warmEnabled?: null | bool @go(WarmEnabled,*bool) - - // Instance type for the Elasticsearch cluster's warm nodes. Valid values are ultrawarm1.medium.elasticsearch, ultrawarm1.large.elasticsearch and ultrawarm1.xlarge.elasticsearch. warm_type can be only and must be set when warm_enabled is set to true. - // +kubebuilder:validation:Optional - warmType?: null | string @go(WarmType,*string) - - // Configuration block containing zone awareness settings. Detailed below. - // +kubebuilder:validation:Optional - zoneAwarenessConfig?: [...#ZoneAwarenessConfigParameters] @go(ZoneAwarenessConfig,[]ZoneAwarenessConfigParameters) - - // Whether zone awareness is enabled, set to true for multi-az deployment. To enable awareness with three Availability Zones, the availability_zone_count within the zone_awareness_config must be set to 3. - // +kubebuilder:validation:Optional - zoneAwarenessEnabled?: null | bool @go(ZoneAwarenessEnabled,*bool) -} - -#CognitoOptionsInitParameters: { - // Whether Amazon Cognito authentication with Kibana is enabled or not. - enabled?: null | bool @go(Enabled,*bool) - - // ID of the Cognito Identity Pool to use. - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // ARN of the IAM role that has the AmazonESCognitoAccess policy attached. - roleArn?: null | string @go(RoleArn,*string) - - // ID of the Cognito User Pool to use. - userPoolId?: null | string @go(UserPoolID,*string) -} - -#CognitoOptionsObservation: { - // Whether Amazon Cognito authentication with Kibana is enabled or not. - enabled?: null | bool @go(Enabled,*bool) - - // ID of the Cognito Identity Pool to use. - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // ARN of the IAM role that has the AmazonESCognitoAccess policy attached. - roleArn?: null | string @go(RoleArn,*string) - - // ID of the Cognito User Pool to use. - userPoolId?: null | string @go(UserPoolID,*string) -} - -#CognitoOptionsParameters: { - // Whether Amazon Cognito authentication with Kibana is enabled or not. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // ID of the Cognito Identity Pool to use. - // +kubebuilder:validation:Optional - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // ARN of the IAM role that has the AmazonESCognitoAccess policy attached. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // ID of the Cognito User Pool to use. - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) -} - -#ColdStorageOptionsInitParameters: { - // Boolean to enable cold storage for an Elasticsearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage. - enabled?: null | bool @go(Enabled,*bool) -} - -#ColdStorageOptionsObservation: { - // Boolean to enable cold storage for an Elasticsearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage. - enabled?: null | bool @go(Enabled,*bool) -} - -#ColdStorageOptionsParameters: { - // Boolean to enable cold storage for an Elasticsearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#DomainEndpointOptionsInitParameters: { - // Fully qualified domain for your custom endpoint. - customEndpoint?: null | string @go(CustomEndpoint,*string) - - // ACM certificate ARN for your custom endpoint. - customEndpointCertificateArn?: null | string @go(CustomEndpointCertificateArn,*string) - - // Whether to enable custom endpoint for the Elasticsearch domain. - customEndpointEnabled?: null | bool @go(CustomEndpointEnabled,*bool) - - // Whether or not to require HTTPS. Defaults to true. - enforceHttps?: null | bool @go(EnforceHTTPS,*bool) - - // Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07 and Policy-Min-TLS-1-2-2019-07. - tlsSecurityPolicy?: null | string @go(TLSSecurityPolicy,*string) -} - -#DomainEndpointOptionsObservation: { - // Fully qualified domain for your custom endpoint. - customEndpoint?: null | string @go(CustomEndpoint,*string) - - // ACM certificate ARN for your custom endpoint. - customEndpointCertificateArn?: null | string @go(CustomEndpointCertificateArn,*string) - - // Whether to enable custom endpoint for the Elasticsearch domain. - customEndpointEnabled?: null | bool @go(CustomEndpointEnabled,*bool) - - // Whether or not to require HTTPS. Defaults to true. - enforceHttps?: null | bool @go(EnforceHTTPS,*bool) - - // Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07 and Policy-Min-TLS-1-2-2019-07. - tlsSecurityPolicy?: null | string @go(TLSSecurityPolicy,*string) -} - -#DomainEndpointOptionsParameters: { - // Fully qualified domain for your custom endpoint. - // +kubebuilder:validation:Optional - customEndpoint?: null | string @go(CustomEndpoint,*string) - - // ACM certificate ARN for your custom endpoint. - // +kubebuilder:validation:Optional - customEndpointCertificateArn?: null | string @go(CustomEndpointCertificateArn,*string) - - // Whether to enable custom endpoint for the Elasticsearch domain. - // +kubebuilder:validation:Optional - customEndpointEnabled?: null | bool @go(CustomEndpointEnabled,*bool) - - // Whether or not to require HTTPS. Defaults to true. - // +kubebuilder:validation:Optional - enforceHttps?: null | bool @go(EnforceHTTPS,*bool) - - // Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07 and Policy-Min-TLS-1-2-2019-07. - // +kubebuilder:validation:Optional - tlsSecurityPolicy?: null | string @go(TLSSecurityPolicy,*string) -} - -#DomainInitParameters: { - // IAM policy document specifying the access policies for the domain. - accessPolicies?: null | string @go(AccessPolicies,*string) - - // Key-value string pairs to specify advanced configuration options. - advancedOptions?: {[string]: null | string} @go(AdvancedOptions,map[string]*string) - - // Configuration block for fine-grained access control. Detailed below. - advancedSecurityOptions?: [...#AdvancedSecurityOptionsInitParameters] @go(AdvancedSecurityOptions,[]AdvancedSecurityOptionsInitParameters) - - // Configuration block for the Auto-Tune options of the domain. Detailed below. - autoTuneOptions?: [...#AutoTuneOptionsInitParameters] @go(AutoTuneOptions,[]AutoTuneOptionsInitParameters) - - // Configuration block for the cluster of the domain. Detailed below. - clusterConfig?: [...#ClusterConfigInitParameters] @go(ClusterConfig,[]ClusterConfigInitParameters) - - // Configuration block for authenticating Kibana with Cognito. Detailed below. - cognitoOptions?: [...#CognitoOptionsInitParameters] @go(CognitoOptions,[]CognitoOptionsInitParameters) - - // Configuration block for domain endpoint HTTP(S) related options. Detailed below. - domainEndpointOptions?: [...#DomainEndpointOptionsInitParameters] @go(DomainEndpointOptions,[]DomainEndpointOptionsInitParameters) - - // Configuration block for EBS related options, may be required based on chosen instance size. Detailed below. - ebsOptions?: [...#EBSOptionsInitParameters] @go(EBSOptions,[]EBSOptionsInitParameters) - - // Version of Elasticsearch to deploy. Defaults to 1.5. - elasticsearchVersion?: null | string @go(ElasticsearchVersion,*string) - - // Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below. - encryptAtRest?: [...#EncryptAtRestInitParameters] @go(EncryptAtRest,[]EncryptAtRestInitParameters) - - // Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below. - logPublishingOptions?: [...#LogPublishingOptionsInitParameters] @go(LogPublishingOptions,[]LogPublishingOptionsInitParameters) - - // Configuration block for node-to-node encryption options. Detailed below. - nodeToNodeEncryption?: [...#NodeToNodeEncryptionInitParameters] @go(NodeToNodeEncryption,[]NodeToNodeEncryptionInitParameters) - - // Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots. - snapshotOptions?: [...#SnapshotOptionsInitParameters] @go(SnapshotOptions,[]SnapshotOptionsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below. - vpcOptions?: [...#VPCOptionsInitParameters] @go(VPCOptions,[]VPCOptionsInitParameters) -} - -#DomainObservation: { - // IAM policy document specifying the access policies for the domain. - accessPolicies?: null | string @go(AccessPolicies,*string) - - // Key-value string pairs to specify advanced configuration options. - advancedOptions?: {[string]: null | string} @go(AdvancedOptions,map[string]*string) - - // Configuration block for fine-grained access control. Detailed below. - advancedSecurityOptions?: [...#AdvancedSecurityOptionsObservation] @go(AdvancedSecurityOptions,[]AdvancedSecurityOptionsObservation) - - // ARN of the domain. - arn?: null | string @go(Arn,*string) - - // Configuration block for the Auto-Tune options of the domain. Detailed below. - autoTuneOptions?: [...#AutoTuneOptionsObservation] @go(AutoTuneOptions,[]AutoTuneOptionsObservation) - - // Configuration block for the cluster of the domain. Detailed below. - clusterConfig?: [...#ClusterConfigObservation] @go(ClusterConfig,[]ClusterConfigObservation) - - // Configuration block for authenticating Kibana with Cognito. Detailed below. - cognitoOptions?: [...#CognitoOptionsObservation] @go(CognitoOptions,[]CognitoOptionsObservation) - - // Configuration block for domain endpoint HTTP(S) related options. Detailed below. - domainEndpointOptions?: [...#DomainEndpointOptionsObservation] @go(DomainEndpointOptions,[]DomainEndpointOptionsObservation) - - // Unique identifier for the domain. - domainId?: null | string @go(DomainID,*string) - - // Configuration block for EBS related options, may be required based on chosen instance size. Detailed below. - ebsOptions?: [...#EBSOptionsObservation] @go(EBSOptions,[]EBSOptionsObservation) - - // Version of Elasticsearch to deploy. Defaults to 1.5. - elasticsearchVersion?: null | string @go(ElasticsearchVersion,*string) - - // Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below. - encryptAtRest?: [...#EncryptAtRestObservation] @go(EncryptAtRest,[]EncryptAtRestObservation) - - // Domain-specific endpoint used to submit index, search, and data upload requests. - endpoint?: null | string @go(Endpoint,*string) - id?: null | string @go(ID,*string) - - // Domain-specific endpoint for kibana without https scheme. - kibanaEndpoint?: null | string @go(KibanaEndpoint,*string) - - // Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below. - logPublishingOptions?: [...#LogPublishingOptionsObservation] @go(LogPublishingOptions,[]LogPublishingOptionsObservation) - - // Configuration block for node-to-node encryption options. Detailed below. - nodeToNodeEncryption?: [...#NodeToNodeEncryptionObservation] @go(NodeToNodeEncryption,[]NodeToNodeEncryptionObservation) - - // Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots. - snapshotOptions?: [...#SnapshotOptionsObservation] @go(SnapshotOptions,[]SnapshotOptionsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below. - vpcOptions?: [...#VPCOptionsObservation] @go(VPCOptions,[]VPCOptionsObservation) -} - -#DomainParameters: { - // IAM policy document specifying the access policies for the domain. - // +kubebuilder:validation:Optional - accessPolicies?: null | string @go(AccessPolicies,*string) - - // Key-value string pairs to specify advanced configuration options. - // +kubebuilder:validation:Optional - advancedOptions?: {[string]: null | string} @go(AdvancedOptions,map[string]*string) - - // Configuration block for fine-grained access control. Detailed below. - // +kubebuilder:validation:Optional - advancedSecurityOptions?: [...#AdvancedSecurityOptionsParameters] @go(AdvancedSecurityOptions,[]AdvancedSecurityOptionsParameters) - - // Configuration block for the Auto-Tune options of the domain. Detailed below. - // +kubebuilder:validation:Optional - autoTuneOptions?: [...#AutoTuneOptionsParameters] @go(AutoTuneOptions,[]AutoTuneOptionsParameters) - - // Configuration block for the cluster of the domain. Detailed below. - // +kubebuilder:validation:Optional - clusterConfig?: [...#ClusterConfigParameters] @go(ClusterConfig,[]ClusterConfigParameters) - - // Configuration block for authenticating Kibana with Cognito. Detailed below. - // +kubebuilder:validation:Optional - cognitoOptions?: [...#CognitoOptionsParameters] @go(CognitoOptions,[]CognitoOptionsParameters) - - // Configuration block for domain endpoint HTTP(S) related options. Detailed below. - // +kubebuilder:validation:Optional - domainEndpointOptions?: [...#DomainEndpointOptionsParameters] @go(DomainEndpointOptions,[]DomainEndpointOptionsParameters) - - // Configuration block for EBS related options, may be required based on chosen instance size. Detailed below. - // +kubebuilder:validation:Optional - ebsOptions?: [...#EBSOptionsParameters] @go(EBSOptions,[]EBSOptionsParameters) - - // Version of Elasticsearch to deploy. Defaults to 1.5. - // +kubebuilder:validation:Optional - elasticsearchVersion?: null | string @go(ElasticsearchVersion,*string) - - // Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below. - // +kubebuilder:validation:Optional - encryptAtRest?: [...#EncryptAtRestParameters] @go(EncryptAtRest,[]EncryptAtRestParameters) - - // Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below. - // +kubebuilder:validation:Optional - logPublishingOptions?: [...#LogPublishingOptionsParameters] @go(LogPublishingOptions,[]LogPublishingOptionsParameters) - - // Configuration block for node-to-node encryption options. Detailed below. - // +kubebuilder:validation:Optional - nodeToNodeEncryption?: [...#NodeToNodeEncryptionParameters] @go(NodeToNodeEncryption,[]NodeToNodeEncryptionParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots. - // +kubebuilder:validation:Optional - snapshotOptions?: [...#SnapshotOptionsParameters] @go(SnapshotOptions,[]SnapshotOptionsParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below. - // +kubebuilder:validation:Optional - vpcOptions?: [...#VPCOptionsParameters] @go(VPCOptions,[]VPCOptionsParameters) -} - -#DurationInitParameters: { - // The unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: HOURS. - unit?: null | string @go(Unit,*string) - - // An integer specifying the value of the duration of an Auto-Tune maintenance window. - value?: null | float64 @go(Value,*float64) -} - -#DurationObservation: { - // The unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: HOURS. - unit?: null | string @go(Unit,*string) - - // An integer specifying the value of the duration of an Auto-Tune maintenance window. - value?: null | float64 @go(Value,*float64) -} - -#DurationParameters: { - // The unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: HOURS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // An integer specifying the value of the duration of an Auto-Tune maintenance window. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#EBSOptionsInitParameters: { - // Whether EBS volumes are attached to data nodes in the domain. - ebsEnabled?: null | bool @go(EBSEnabled,*bool) - - // Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types. - iops?: null | float64 @go(Iops,*float64) - - // Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type. - throughput?: null | float64 @go(Throughput,*float64) - - // Size of EBS volumes attached to data nodes (in GiB). - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of EBS volumes attached to data nodes. - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSOptionsObservation: { - // Whether EBS volumes are attached to data nodes in the domain. - ebsEnabled?: null | bool @go(EBSEnabled,*bool) - - // Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types. - iops?: null | float64 @go(Iops,*float64) - - // Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type. - throughput?: null | float64 @go(Throughput,*float64) - - // Size of EBS volumes attached to data nodes (in GiB). - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of EBS volumes attached to data nodes. - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSOptionsParameters: { - // Whether EBS volumes are attached to data nodes in the domain. - // +kubebuilder:validation:Optional - ebsEnabled?: null | bool @go(EBSEnabled,*bool) - - // Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type. - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // Size of EBS volumes attached to data nodes (in GiB). - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of EBS volumes attached to data nodes. - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -#EncryptAtRestInitParameters: { - // Whether to enable encryption at rest. If the encrypt_at_rest block is not provided then this defaults to false. Enabling encryption on new domains requires elasticsearch_version 5.1 or greater. - enabled?: null | bool @go(Enabled,*bool) - - // KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/es service KMS key. Note that KMS will accept a KMS key ID but will return the key ARN. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#EncryptAtRestObservation: { - // Whether to enable encryption at rest. If the encrypt_at_rest block is not provided then this defaults to false. Enabling encryption on new domains requires elasticsearch_version 5.1 or greater. - enabled?: null | bool @go(Enabled,*bool) - - // KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/es service KMS key. Note that KMS will accept a KMS key ID but will return the key ARN. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#EncryptAtRestParameters: { - // Whether to enable encryption at rest. If the encrypt_at_rest block is not provided then this defaults to false. Enabling encryption on new domains requires elasticsearch_version 5.1 or greater. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/es service KMS key. Note that KMS will accept a KMS key ID but will return the key ARN. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#LogPublishingOptionsInitParameters: { - // Whether given log publishing option is enabled or not. - enabled?: null | bool @go(Enabled,*bool) - - // Type of Elasticsearch log. Valid values: INDEX_SLOW_LOGS, SEARCH_SLOW_LOGS, ES_APPLICATION_LOGS, AUDIT_LOGS. - logType?: null | string @go(LogType,*string) -} - -#LogPublishingOptionsObservation: { - // ARN of the Cloudwatch log group to which log needs to be published. - cloudwatchLogGroupArn?: null | string @go(CloudwatchLogGroupArn,*string) - - // Whether given log publishing option is enabled or not. - enabled?: null | bool @go(Enabled,*bool) - - // Type of Elasticsearch log. Valid values: INDEX_SLOW_LOGS, SEARCH_SLOW_LOGS, ES_APPLICATION_LOGS, AUDIT_LOGS. - logType?: null | string @go(LogType,*string) -} - -#LogPublishingOptionsParameters: { - // ARN of the Cloudwatch log group to which log needs to be published. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - cloudwatchLogGroupArn?: null | string @go(CloudwatchLogGroupArn,*string) - - // Reference to a Group in cloudwatchlogs to populate cloudwatchLogGroupArn. - // +kubebuilder:validation:Optional - cloudwatchLogGroupArnRef?: null | v1.#Reference @go(CloudwatchLogGroupArnRef,*v1.Reference) - - // Selector for a Group in cloudwatchlogs to populate cloudwatchLogGroupArn. - // +kubebuilder:validation:Optional - cloudwatchLogGroupArnSelector?: null | v1.#Selector @go(CloudwatchLogGroupArnSelector,*v1.Selector) - - // Whether given log publishing option is enabled or not. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Type of Elasticsearch log. Valid values: INDEX_SLOW_LOGS, SEARCH_SLOW_LOGS, ES_APPLICATION_LOGS, AUDIT_LOGS. - // +kubebuilder:validation:Optional - logType?: null | string @go(LogType,*string) -} - -#MaintenanceScheduleInitParameters: { - // A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule. - cronExpressionForRecurrence?: null | string @go(CronExpressionForRecurrence,*string) - - // Configuration block for the duration of the Auto-Tune maintenance window. Detailed below. - duration?: [...#DurationInitParameters] @go(Duration,[]DurationInitParameters) - - // Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format. - startAt?: null | string @go(StartAt,*string) -} - -#MaintenanceScheduleObservation: { - // A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule. - cronExpressionForRecurrence?: null | string @go(CronExpressionForRecurrence,*string) - - // Configuration block for the duration of the Auto-Tune maintenance window. Detailed below. - duration?: [...#DurationObservation] @go(Duration,[]DurationObservation) - - // Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format. - startAt?: null | string @go(StartAt,*string) -} - -#MaintenanceScheduleParameters: { - // A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule. - // +kubebuilder:validation:Optional - cronExpressionForRecurrence?: null | string @go(CronExpressionForRecurrence,*string) - - // Configuration block for the duration of the Auto-Tune maintenance window. Detailed below. - // +kubebuilder:validation:Optional - duration: [...#DurationParameters] @go(Duration,[]DurationParameters) - - // Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format. - // +kubebuilder:validation:Optional - startAt?: null | string @go(StartAt,*string) -} - -#MasterUserOptionsInitParameters: { - // ARN for the main user. Only specify if internal_user_database_enabled is not set or set to false. - masterUserArn?: null | string @go(MasterUserArn,*string) - - // Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabled is set to true. - masterUserName?: null | string @go(MasterUserName,*string) -} - -#MasterUserOptionsObservation: { - // ARN for the main user. Only specify if internal_user_database_enabled is not set or set to false. - masterUserArn?: null | string @go(MasterUserArn,*string) - - // Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabled is set to true. - masterUserName?: null | string @go(MasterUserName,*string) -} - -#MasterUserOptionsParameters: { - // ARN for the main user. Only specify if internal_user_database_enabled is not set or set to false. - // +kubebuilder:validation:Optional - masterUserArn?: null | string @go(MasterUserArn,*string) - - // Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabled is set to true. - // +kubebuilder:validation:Optional - masterUserName?: null | string @go(MasterUserName,*string) - - // Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabled is set to true. - // +kubebuilder:validation:Optional - masterUserPasswordSecretRef?: null | v1.#SecretKeySelector @go(MasterUserPasswordSecretRef,*v1.SecretKeySelector) -} - -#NodeToNodeEncryptionInitParameters: { - // Whether to enable node-to-node encryption. If the node_to_node_encryption block is not provided then this defaults to false. Enabling node-to-node encryption of a new domain requires an elasticsearch_version of 6.0 or greater. - enabled?: null | bool @go(Enabled,*bool) -} - -#NodeToNodeEncryptionObservation: { - // Whether to enable node-to-node encryption. If the node_to_node_encryption block is not provided then this defaults to false. Enabling node-to-node encryption of a new domain requires an elasticsearch_version of 6.0 or greater. - enabled?: null | bool @go(Enabled,*bool) -} - -#NodeToNodeEncryptionParameters: { - // Whether to enable node-to-node encryption. If the node_to_node_encryption block is not provided then this defaults to false. Enabling node-to-node encryption of a new domain requires an elasticsearch_version of 6.0 or greater. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#SnapshotOptionsInitParameters: { - // Hour during which the service takes an automated daily snapshot of the indices in the domain. - automatedSnapshotStartHour?: null | float64 @go(AutomatedSnapshotStartHour,*float64) -} - -#SnapshotOptionsObservation: { - // Hour during which the service takes an automated daily snapshot of the indices in the domain. - automatedSnapshotStartHour?: null | float64 @go(AutomatedSnapshotStartHour,*float64) -} - -#SnapshotOptionsParameters: { - // Hour during which the service takes an automated daily snapshot of the indices in the domain. - // +kubebuilder:validation:Optional - automatedSnapshotStartHour?: null | float64 @go(AutomatedSnapshotStartHour,*float64) -} - -#VPCOptionsInitParameters: { - // List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoints. If omitted, the default Security Group for the VPC will be used. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#VPCOptionsObservation: { - // If the domain was created inside a VPC, the names of the availability zones the configured subnet_ids were created inside. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoints. If omitted, the default Security Group for the VPC will be used. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // If the domain was created inside a VPC, the ID of the VPC. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCOptionsParameters: { - // List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoints. If omitted, the default Security Group for the VPC will be used. - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in. - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#ZoneAwarenessConfigInitParameters: { - // Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to 2. Valid values: 2 or 3. - availabilityZoneCount?: null | float64 @go(AvailabilityZoneCount,*float64) -} - -#ZoneAwarenessConfigObservation: { - // Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to 2. Valid values: 2 or 3. - availabilityZoneCount?: null | float64 @go(AvailabilityZoneCount,*float64) -} - -#ZoneAwarenessConfigParameters: { - // Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to 2. Valid values: 2 or 3. - // +kubebuilder:validation:Optional - availabilityZoneCount?: null | float64 @go(AvailabilityZoneCount,*float64) -} - -// DomainSpec defines the desired state of Domain -#DomainSpec: { - v1.#ResourceSpec - forProvider: #DomainParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainInitParameters @go(InitProvider) -} - -// DomainStatus defines the observed state of Domain. -#DomainStatus: { - v1.#ResourceStatus - atProvider?: #DomainObservation @go(AtProvider) -} - -// Domain is the Schema for the Domains API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Domain: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DomainSpec @go(Spec) - status?: #DomainStatus @go(Status) -} - -// DomainList contains a list of Domains -#DomainList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Domain] @go(Items,[]Domain) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticsearch/v1beta1/zz_domainpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticsearch/v1beta1/zz_domainpolicy_types_go_gen.cue deleted file mode 100644 index 527d615..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticsearch/v1beta1/zz_domainpolicy_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticsearch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainPolicyInitParameters: { - // IAM policy document specifying the access policies for the domain - accessPolicies?: null | string @go(AccessPolicies,*string) -} - -#DomainPolicyObservation: { - // IAM policy document specifying the access policies for the domain - accessPolicies?: null | string @go(AccessPolicies,*string) - - // Name of the domain. - domainName?: null | string @go(DomainName,*string) - id?: null | string @go(ID,*string) -} - -#DomainPolicyParameters: { - // IAM policy document specifying the access policies for the domain - // +kubebuilder:validation:Optional - accessPolicies?: null | string @go(AccessPolicies,*string) - - // Name of the domain. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elasticsearch/v1beta1.Domain - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Reference to a Domain in elasticsearch to populate domainName. - // +kubebuilder:validation:Optional - domainNameRef?: null | v1.#Reference @go(DomainNameRef,*v1.Reference) - - // Selector for a Domain in elasticsearch to populate domainName. - // +kubebuilder:validation:Optional - domainNameSelector?: null | v1.#Selector @go(DomainNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DomainPolicySpec defines the desired state of DomainPolicy -#DomainPolicySpec: { - v1.#ResourceSpec - forProvider: #DomainPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainPolicyInitParameters @go(InitProvider) -} - -// DomainPolicyStatus defines the observed state of DomainPolicy. -#DomainPolicyStatus: { - v1.#ResourceStatus - atProvider?: #DomainPolicyObservation @go(AtProvider) -} - -// DomainPolicy is the Schema for the DomainPolicys API. Provides an Elasticsearch Domain Policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DomainPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accessPolicies) || (has(self.initProvider) && has(self.initProvider.accessPolicies))",message="spec.forProvider.accessPolicies is a required parameter" - spec: #DomainPolicySpec @go(Spec) - status?: #DomainPolicyStatus @go(Status) -} - -// DomainPolicyList contains a list of DomainPolicys -#DomainPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DomainPolicy] @go(Items,[]DomainPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticsearch/v1beta1/zz_domainsamloptions_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticsearch/v1beta1/zz_domainsamloptions_types_go_gen.cue deleted file mode 100644 index a6a260d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticsearch/v1beta1/zz_domainsamloptions_types_go_gen.cue +++ /dev/null @@ -1,175 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticsearch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainSAMLOptionsInitParameters: { - // The SAML authentication options for an AWS Elasticsearch Domain. - samlOptions?: [...#SAMLOptionsInitParameters] @go(SAMLOptions,[]SAMLOptionsInitParameters) -} - -#DomainSAMLOptionsObservation: { - // The name of the domain the SAML options are associated with. - id?: null | string @go(ID,*string) - - // The SAML authentication options for an AWS Elasticsearch Domain. - samlOptions?: [...#SAMLOptionsObservation] @go(SAMLOptions,[]SAMLOptionsObservation) -} - -#DomainSAMLOptionsParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The SAML authentication options for an AWS Elasticsearch Domain. - // +kubebuilder:validation:Optional - samlOptions?: [...#SAMLOptionsParameters] @go(SAMLOptions,[]SAMLOptionsParameters) -} - -#IdpInitParameters: { - // The unique Entity ID of the application in SAML Identity Provider. - entityId?: null | string @go(EntityID,*string) - - // The Metadata of the SAML application in xml format. - metadataContent?: null | string @go(MetadataContent,*string) -} - -#IdpObservation: { - // The unique Entity ID of the application in SAML Identity Provider. - entityId?: null | string @go(EntityID,*string) - - // The Metadata of the SAML application in xml format. - metadataContent?: null | string @go(MetadataContent,*string) -} - -#IdpParameters: { - // The unique Entity ID of the application in SAML Identity Provider. - // +kubebuilder:validation:Optional - entityId?: null | string @go(EntityID,*string) - - // The Metadata of the SAML application in xml format. - // +kubebuilder:validation:Optional - metadataContent?: null | string @go(MetadataContent,*string) -} - -#SAMLOptionsInitParameters: { - // Whether SAML authentication is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Information from your identity provider. - idp?: [...#IdpInitParameters] @go(Idp,[]IdpInitParameters) - - // This backend role from the SAML IdP receives full permissions to the cluster, equivalent to a new master user. - masterBackendRole?: null | string @go(MasterBackendRole,*string) - - // Element of the SAML assertion to use for backend roles. Default is roles. - rolesKey?: null | string @go(RolesKey,*string) - - // Duration of a session in minutes after a user logs in. Default is 60. Maximum value is 1,440. - sessionTimeoutMinutes?: null | float64 @go(SessionTimeoutMinutes,*float64) - - // Custom SAML attribute to use for user names. Default is an empty string - "". This will cause Elasticsearch to use the NameID element of the Subject, which is the default location for name identifiers in the SAML specification. - subjectKey?: null | string @go(SubjectKey,*string) -} - -#SAMLOptionsObservation: { - // Whether SAML authentication is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Information from your identity provider. - idp?: [...#IdpObservation] @go(Idp,[]IdpObservation) - - // This backend role from the SAML IdP receives full permissions to the cluster, equivalent to a new master user. - masterBackendRole?: null | string @go(MasterBackendRole,*string) - - // Element of the SAML assertion to use for backend roles. Default is roles. - rolesKey?: null | string @go(RolesKey,*string) - - // Duration of a session in minutes after a user logs in. Default is 60. Maximum value is 1,440. - sessionTimeoutMinutes?: null | float64 @go(SessionTimeoutMinutes,*float64) - - // Custom SAML attribute to use for user names. Default is an empty string - "". This will cause Elasticsearch to use the NameID element of the Subject, which is the default location for name identifiers in the SAML specification. - subjectKey?: null | string @go(SubjectKey,*string) -} - -#SAMLOptionsParameters: { - // Whether SAML authentication is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Information from your identity provider. - // +kubebuilder:validation:Optional - idp?: [...#IdpParameters] @go(Idp,[]IdpParameters) - - // This backend role from the SAML IdP receives full permissions to the cluster, equivalent to a new master user. - // +kubebuilder:validation:Optional - masterBackendRole?: null | string @go(MasterBackendRole,*string) - - // This username from the SAML IdP receives full permissions to the cluster, equivalent to a new master user. - // +kubebuilder:validation:Optional - masterUserNameSecretRef?: null | v1.#SecretKeySelector @go(MasterUserNameSecretRef,*v1.SecretKeySelector) - - // Element of the SAML assertion to use for backend roles. Default is roles. - // +kubebuilder:validation:Optional - rolesKey?: null | string @go(RolesKey,*string) - - // Duration of a session in minutes after a user logs in. Default is 60. Maximum value is 1,440. - // +kubebuilder:validation:Optional - sessionTimeoutMinutes?: null | float64 @go(SessionTimeoutMinutes,*float64) - - // Custom SAML attribute to use for user names. Default is an empty string - "". This will cause Elasticsearch to use the NameID element of the Subject, which is the default location for name identifiers in the SAML specification. - // +kubebuilder:validation:Optional - subjectKey?: null | string @go(SubjectKey,*string) -} - -// DomainSAMLOptionsSpec defines the desired state of DomainSAMLOptions -#DomainSAMLOptionsSpec: { - v1.#ResourceSpec - forProvider: #DomainSAMLOptionsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainSAMLOptionsInitParameters @go(InitProvider) -} - -// DomainSAMLOptionsStatus defines the observed state of DomainSAMLOptions. -#DomainSAMLOptionsStatus: { - v1.#ResourceStatus - atProvider?: #DomainSAMLOptionsObservation @go(AtProvider) -} - -// DomainSAMLOptions is the Schema for the DomainSAMLOptionss API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DomainSAMLOptions: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DomainSAMLOptionsSpec @go(Spec) - status?: #DomainSAMLOptionsStatus @go(Status) -} - -// DomainSAMLOptionsList contains a list of DomainSAMLOptionss -#DomainSAMLOptionsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DomainSAMLOptions] @go(Items,[]DomainSAMLOptions) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticsearch/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticsearch/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index db35f45..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elasticsearch/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elasticsearch/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=elasticsearch.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "elasticsearch.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elastictranscoder/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elastictranscoder/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 5d35a8b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elastictranscoder/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elastictranscoder/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=elastictranscoder.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "elastictranscoder.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elastictranscoder/v1beta1/zz_pipeline_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elastictranscoder/v1beta1/zz_pipeline_types_go_gen.cue deleted file mode 100644 index a16f949..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elastictranscoder/v1beta1/zz_pipeline_types_go_gen.cue +++ /dev/null @@ -1,370 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elastictranscoder/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ContentConfigInitParameters: { - // The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket. - storageClass?: null | string @go(StorageClass,*string) -} - -#ContentConfigObservation: { - // The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. - bucket?: null | string @go(Bucket,*string) - - // The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket. - storageClass?: null | string @go(StorageClass,*string) -} - -#ContentConfigParameters: { - // The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket. - // +kubebuilder:validation:Optional - storageClass?: null | string @go(StorageClass,*string) -} - -#ContentConfigPermissionsInitParameters: { - // The permission that you want to give to the AWS user that you specified in content_config_permissions.grantee. Valid values are Read, ReadAcp, WriteAcp or FullControl. - access?: [...null | string] @go(Access,[]*string) - - // The AWS user or group that you want to have access to transcoded files and playlists. - grantee?: null | string @go(Grantee,*string) - - // Specify the type of value that appears in the content_config_permissions.grantee object. Valid values are Canonical, Email or Group. - granteeType?: null | string @go(GranteeType,*string) -} - -#ContentConfigPermissionsObservation: { - // The permission that you want to give to the AWS user that you specified in content_config_permissions.grantee. Valid values are Read, ReadAcp, WriteAcp or FullControl. - access?: [...null | string] @go(Access,[]*string) - - // The AWS user or group that you want to have access to transcoded files and playlists. - grantee?: null | string @go(Grantee,*string) - - // Specify the type of value that appears in the content_config_permissions.grantee object. Valid values are Canonical, Email or Group. - granteeType?: null | string @go(GranteeType,*string) -} - -#ContentConfigPermissionsParameters: { - // The permission that you want to give to the AWS user that you specified in content_config_permissions.grantee. Valid values are Read, ReadAcp, WriteAcp or FullControl. - // +kubebuilder:validation:Optional - access?: [...null | string] @go(Access,[]*string) - - // The AWS user or group that you want to have access to transcoded files and playlists. - // +kubebuilder:validation:Optional - grantee?: null | string @go(Grantee,*string) - - // Specify the type of value that appears in the content_config_permissions.grantee object. Valid values are Canonical, Email or Group. - // +kubebuilder:validation:Optional - granteeType?: null | string @go(GranteeType,*string) -} - -#NotificationsInitParameters: { - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline. - completed?: null | string @go(Completed,*string) - - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline. - error?: null | string @go(Error,*string) - - // The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline. - progressing?: null | string @go(Progressing,*string) - - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline. - warning?: null | string @go(Warning,*string) -} - -#NotificationsObservation: { - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline. - completed?: null | string @go(Completed,*string) - - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline. - error?: null | string @go(Error,*string) - - // The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline. - progressing?: null | string @go(Progressing,*string) - - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline. - warning?: null | string @go(Warning,*string) -} - -#NotificationsParameters: { - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline. - // +kubebuilder:validation:Optional - completed?: null | string @go(Completed,*string) - - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline. - // +kubebuilder:validation:Optional - error?: null | string @go(Error,*string) - - // The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline. - // +kubebuilder:validation:Optional - progressing?: null | string @go(Progressing,*string) - - // The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline. - // +kubebuilder:validation:Optional - warning?: null | string @go(Warning,*string) -} - -#PipelineInitParameters: { - // The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline. - awsKmsKeyArn?: null | string @go(AwsKMSKeyArn,*string) - - // The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below) - contentConfig?: [...#ContentConfigInitParameters] @go(ContentConfig,[]ContentConfigInitParameters) - - // The permissions for the content_config object. (documented below) - contentConfigPermissions?: [...#ContentConfigPermissionsInitParameters] @go(ContentConfigPermissions,[]ContentConfigPermissionsInitParameters) - - // The name of the pipeline. Maximum 40 characters - name?: null | string @go(Name,*string) - - // The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below) - notifications?: [...#NotificationsInitParameters] @go(Notifications,[]NotificationsInitParameters) - - // The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files. - outputBucket?: null | string @go(OutputBucket,*string) - - // The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below) - thumbnailConfig?: [...#ThumbnailConfigInitParameters] @go(ThumbnailConfig,[]ThumbnailConfigInitParameters) - - // The permissions for the thumbnail_config object. (documented below) - thumbnailConfigPermissions?: [...#ThumbnailConfigPermissionsInitParameters] @go(ThumbnailConfigPermissions,[]ThumbnailConfigPermissionsInitParameters) -} - -#PipelineObservation: { - // The ARN of the Elastictranscoder pipeline. - arn?: null | string @go(Arn,*string) - - // The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline. - awsKmsKeyArn?: null | string @go(AwsKMSKeyArn,*string) - - // The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below) - contentConfig?: [...#ContentConfigObservation] @go(ContentConfig,[]ContentConfigObservation) - - // The permissions for the content_config object. (documented below) - contentConfigPermissions?: [...#ContentConfigPermissionsObservation] @go(ContentConfigPermissions,[]ContentConfigPermissionsObservation) - - // The ID of the Elastictranscoder pipeline. - id?: null | string @go(ID,*string) - - // The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks. - inputBucket?: null | string @go(InputBucket,*string) - - // The name of the pipeline. Maximum 40 characters - name?: null | string @go(Name,*string) - - // The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below) - notifications?: [...#NotificationsObservation] @go(Notifications,[]NotificationsObservation) - - // The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files. - outputBucket?: null | string @go(OutputBucket,*string) - - // The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline. - role?: null | string @go(Role,*string) - - // The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below) - thumbnailConfig?: [...#ThumbnailConfigObservation] @go(ThumbnailConfig,[]ThumbnailConfigObservation) - - // The permissions for the thumbnail_config object. (documented below) - thumbnailConfigPermissions?: [...#ThumbnailConfigPermissionsObservation] @go(ThumbnailConfigPermissions,[]ThumbnailConfigPermissionsObservation) -} - -#PipelineParameters: { - // The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline. - // +kubebuilder:validation:Optional - awsKmsKeyArn?: null | string @go(AwsKMSKeyArn,*string) - - // The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below) - // +kubebuilder:validation:Optional - contentConfig?: [...#ContentConfigParameters] @go(ContentConfig,[]ContentConfigParameters) - - // The permissions for the content_config object. (documented below) - // +kubebuilder:validation:Optional - contentConfigPermissions?: [...#ContentConfigPermissionsParameters] @go(ContentConfigPermissions,[]ContentConfigPermissionsParameters) - - // The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - inputBucket?: null | string @go(InputBucket,*string) - - // Reference to a Bucket in s3 to populate inputBucket. - // +kubebuilder:validation:Optional - inputBucketRef?: null | v1.#Reference @go(InputBucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate inputBucket. - // +kubebuilder:validation:Optional - inputBucketSelector?: null | v1.#Selector @go(InputBucketSelector,*v1.Selector) - - // The name of the pipeline. Maximum 40 characters - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below) - // +kubebuilder:validation:Optional - notifications?: [...#NotificationsParameters] @go(Notifications,[]NotificationsParameters) - - // The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files. - // +kubebuilder:validation:Optional - outputBucket?: null | string @go(OutputBucket,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - role?: null | string @go(Role,*string) - - // Reference to a Role in iam to populate role. - // +kubebuilder:validation:Optional - roleRef?: null | v1.#Reference @go(RoleRef,*v1.Reference) - - // Selector for a Role in iam to populate role. - // +kubebuilder:validation:Optional - roleSelector?: null | v1.#Selector @go(RoleSelector,*v1.Selector) - - // The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below) - // +kubebuilder:validation:Optional - thumbnailConfig?: [...#ThumbnailConfigParameters] @go(ThumbnailConfig,[]ThumbnailConfigParameters) - - // The permissions for the thumbnail_config object. (documented below) - // +kubebuilder:validation:Optional - thumbnailConfigPermissions?: [...#ThumbnailConfigPermissionsParameters] @go(ThumbnailConfigPermissions,[]ThumbnailConfigPermissionsParameters) -} - -#ThumbnailConfigInitParameters: { - // The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket. - storageClass?: null | string @go(StorageClass,*string) -} - -#ThumbnailConfigObservation: { - // The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. - bucket?: null | string @go(Bucket,*string) - - // The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket. - storageClass?: null | string @go(StorageClass,*string) -} - -#ThumbnailConfigParameters: { - // The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket. - // +kubebuilder:validation:Optional - storageClass?: null | string @go(StorageClass,*string) -} - -#ThumbnailConfigPermissionsInitParameters: { - // The permission that you want to give to the AWS user that you specified in content_config_permissions.grantee. Valid values are Read, ReadAcp, WriteAcp or FullControl. - access?: [...null | string] @go(Access,[]*string) - - // The AWS user or group that you want to have access to transcoded files and playlists. - grantee?: null | string @go(Grantee,*string) - - // Specify the type of value that appears in the content_config_permissions.grantee object. Valid values are Canonical, Email or Group. - granteeType?: null | string @go(GranteeType,*string) -} - -#ThumbnailConfigPermissionsObservation: { - // The permission that you want to give to the AWS user that you specified in content_config_permissions.grantee. Valid values are Read, ReadAcp, WriteAcp or FullControl. - access?: [...null | string] @go(Access,[]*string) - - // The AWS user or group that you want to have access to transcoded files and playlists. - grantee?: null | string @go(Grantee,*string) - - // Specify the type of value that appears in the content_config_permissions.grantee object. Valid values are Canonical, Email or Group. - granteeType?: null | string @go(GranteeType,*string) -} - -#ThumbnailConfigPermissionsParameters: { - // The permission that you want to give to the AWS user that you specified in content_config_permissions.grantee. Valid values are Read, ReadAcp, WriteAcp or FullControl. - // +kubebuilder:validation:Optional - access?: [...null | string] @go(Access,[]*string) - - // The AWS user or group that you want to have access to transcoded files and playlists. - // +kubebuilder:validation:Optional - grantee?: null | string @go(Grantee,*string) - - // Specify the type of value that appears in the content_config_permissions.grantee object. Valid values are Canonical, Email or Group. - // +kubebuilder:validation:Optional - granteeType?: null | string @go(GranteeType,*string) -} - -// PipelineSpec defines the desired state of Pipeline -#PipelineSpec: { - v1.#ResourceSpec - forProvider: #PipelineParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PipelineInitParameters @go(InitProvider) -} - -// PipelineStatus defines the observed state of Pipeline. -#PipelineStatus: { - v1.#ResourceStatus - atProvider?: #PipelineObservation @go(AtProvider) -} - -// Pipeline is the Schema for the Pipelines API. Provides an Elastic Transcoder pipeline resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Pipeline: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #PipelineSpec @go(Spec) - status?: #PipelineStatus @go(Status) -} - -// PipelineList contains a list of Pipelines -#PipelineList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Pipeline] @go(Items,[]Pipeline) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elastictranscoder/v1beta1/zz_preset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elastictranscoder/v1beta1/zz_preset_types_go_gen.cue deleted file mode 100644 index 4cda4aa..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elastictranscoder/v1beta1/zz_preset_types_go_gen.cue +++ /dev/null @@ -1,599 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elastictranscoder/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AudioCodecOptionsInitParameters: { - // The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are 16 and 24. (FLAC/PCM Only) - bitDepth?: null | string @go(BitDepth,*string) - - // The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only) - bitOrder?: null | string @go(BitOrder,*string) - - // If you specified AAC for Audio:Codec, choose the AAC profile for the output file. - profile?: null | string @go(Profile,*string) - - // Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only) - signed?: null | string @go(Signed,*string) -} - -#AudioCodecOptionsObservation: { - // The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are 16 and 24. (FLAC/PCM Only) - bitDepth?: null | string @go(BitDepth,*string) - - // The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only) - bitOrder?: null | string @go(BitOrder,*string) - - // If you specified AAC for Audio:Codec, choose the AAC profile for the output file. - profile?: null | string @go(Profile,*string) - - // Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only) - signed?: null | string @go(Signed,*string) -} - -#AudioCodecOptionsParameters: { - // The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are 16 and 24. (FLAC/PCM Only) - // +kubebuilder:validation:Optional - bitDepth?: null | string @go(BitDepth,*string) - - // The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only) - // +kubebuilder:validation:Optional - bitOrder?: null | string @go(BitOrder,*string) - - // If you specified AAC for Audio:Codec, choose the AAC profile for the output file. - // +kubebuilder:validation:Optional - profile?: null | string @go(Profile,*string) - - // Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only) - // +kubebuilder:validation:Optional - signed?: null | string @go(Signed,*string) -} - -#AudioInitParameters: { - // The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack. - audioPackingMode?: null | string @go(AudioPackingMode,*string) - - // The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive. - bitRate?: null | string @go(BitRate,*string) - - // The number of audio channels in the output file - channels?: null | string @go(Channels,*string) - - // The audio codec for the output file. Valid values are AAC, flac, mp2, mp3, pcm, and vorbis. - codec?: null | string @go(Codec,*string) - - // The sample rate of the audio stream in the output file, in hertz. Valid values are: auto, 22050, 32000, 44100, 48000, 96000 - sampleRate?: null | string @go(SampleRate,*string) -} - -#AudioObservation: { - // The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack. - audioPackingMode?: null | string @go(AudioPackingMode,*string) - - // The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive. - bitRate?: null | string @go(BitRate,*string) - - // The number of audio channels in the output file - channels?: null | string @go(Channels,*string) - - // The audio codec for the output file. Valid values are AAC, flac, mp2, mp3, pcm, and vorbis. - codec?: null | string @go(Codec,*string) - - // The sample rate of the audio stream in the output file, in hertz. Valid values are: auto, 22050, 32000, 44100, 48000, 96000 - sampleRate?: null | string @go(SampleRate,*string) -} - -#AudioParameters: { - // The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack. - // +kubebuilder:validation:Optional - audioPackingMode?: null | string @go(AudioPackingMode,*string) - - // The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive. - // +kubebuilder:validation:Optional - bitRate?: null | string @go(BitRate,*string) - - // The number of audio channels in the output file - // +kubebuilder:validation:Optional - channels?: null | string @go(Channels,*string) - - // The audio codec for the output file. Valid values are AAC, flac, mp2, mp3, pcm, and vorbis. - // +kubebuilder:validation:Optional - codec?: null | string @go(Codec,*string) - - // The sample rate of the audio stream in the output file, in hertz. Valid values are: auto, 22050, 32000, 44100, 48000, 96000 - // +kubebuilder:validation:Optional - sampleRate?: null | string @go(SampleRate,*string) -} - -#PresetInitParameters: { - // Audio parameters object (documented below). - audio?: [...#AudioInitParameters] @go(Audio,[]AudioInitParameters) - - // Codec options for the audio parameters (documented below) - audioCodecOptions?: [...#AudioCodecOptionsInitParameters] @go(AudioCodecOptions,[]AudioCodecOptionsInitParameters) - - // The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm. - container?: null | string @go(Container,*string) - - // A description of the preset (maximum 255 characters) - description?: null | string @go(Description,*string) - - // The name of the preset. (maximum 40 characters) - name?: null | string @go(Name,*string) - - // Thumbnail parameters object (documented below) - thumbnails?: [...#ThumbnailsInitParameters] @go(Thumbnails,[]ThumbnailsInitParameters) - type?: null | string @go(Type,*string) - - // Video parameters object (documented below) - video?: [...#VideoInitParameters] @go(Video,[]VideoInitParameters) - - // Codec options for the video parameters - videoCodecOptions?: {[string]: null | string} @go(VideoCodecOptions,map[string]*string) - - // Watermark parameters for the video parameters (documented below) - videoWatermarks?: [...#VideoWatermarksInitParameters] @go(VideoWatermarks,[]VideoWatermarksInitParameters) -} - -#PresetObservation: { - // Amazon Resource Name (ARN) of the Elastic Transcoder Preset. - arn?: null | string @go(Arn,*string) - - // Audio parameters object (documented below). - audio?: [...#AudioObservation] @go(Audio,[]AudioObservation) - - // Codec options for the audio parameters (documented below) - audioCodecOptions?: [...#AudioCodecOptionsObservation] @go(AudioCodecOptions,[]AudioCodecOptionsObservation) - - // The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm. - container?: null | string @go(Container,*string) - - // A description of the preset (maximum 255 characters) - description?: null | string @go(Description,*string) - - // A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks. - id?: null | string @go(ID,*string) - - // The name of the preset. (maximum 40 characters) - name?: null | string @go(Name,*string) - - // Thumbnail parameters object (documented below) - thumbnails?: [...#ThumbnailsObservation] @go(Thumbnails,[]ThumbnailsObservation) - type?: null | string @go(Type,*string) - - // Video parameters object (documented below) - video?: [...#VideoObservation] @go(Video,[]VideoObservation) - - // Codec options for the video parameters - videoCodecOptions?: {[string]: null | string} @go(VideoCodecOptions,map[string]*string) - - // Watermark parameters for the video parameters (documented below) - videoWatermarks?: [...#VideoWatermarksObservation] @go(VideoWatermarks,[]VideoWatermarksObservation) -} - -#PresetParameters: { - // Audio parameters object (documented below). - // +kubebuilder:validation:Optional - audio?: [...#AudioParameters] @go(Audio,[]AudioParameters) - - // Codec options for the audio parameters (documented below) - // +kubebuilder:validation:Optional - audioCodecOptions?: [...#AudioCodecOptionsParameters] @go(AudioCodecOptions,[]AudioCodecOptionsParameters) - - // The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm. - // +kubebuilder:validation:Optional - container?: null | string @go(Container,*string) - - // A description of the preset (maximum 255 characters) - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the preset. (maximum 40 characters) - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Thumbnail parameters object (documented below) - // +kubebuilder:validation:Optional - thumbnails?: [...#ThumbnailsParameters] @go(Thumbnails,[]ThumbnailsParameters) - - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // Video parameters object (documented below) - // +kubebuilder:validation:Optional - video?: [...#VideoParameters] @go(Video,[]VideoParameters) - - // Codec options for the video parameters - // +kubebuilder:validation:Optional - videoCodecOptions?: {[string]: null | string} @go(VideoCodecOptions,map[string]*string) - - // Watermark parameters for the video parameters (documented below) - // +kubebuilder:validation:Optional - videoWatermarks?: [...#VideoWatermarksParameters] @go(VideoWatermarks,[]VideoWatermarksParameters) -} - -#ThumbnailsInitParameters: { - // The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9 - aspectRatio?: null | string @go(AspectRatio,*string) - - // The format of thumbnails, if any. Valid formats are jpg and png. - format?: null | string @go(Format,*string) - - // The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next. - interval?: null | string @go(Interval,*string) - - // The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive. - maxHeight?: null | string @go(MaxHeight,*string) - - // The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive. - maxWidth?: null | string @go(MaxWidth,*string) - - // When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings. - paddingPolicy?: null | string @go(PaddingPolicy,*string) - - // The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values max_width, max_height, sizing_policy, and padding_policy instead of resolution and aspect_ratio. The two groups of settings are mutually exclusive. Do not use them together) - resolution?: null | string @go(Resolution,*string) - - // A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill. - sizingPolicy?: null | string @go(SizingPolicy,*string) -} - -#ThumbnailsObservation: { - // The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9 - aspectRatio?: null | string @go(AspectRatio,*string) - - // The format of thumbnails, if any. Valid formats are jpg and png. - format?: null | string @go(Format,*string) - - // The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next. - interval?: null | string @go(Interval,*string) - - // The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive. - maxHeight?: null | string @go(MaxHeight,*string) - - // The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive. - maxWidth?: null | string @go(MaxWidth,*string) - - // When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings. - paddingPolicy?: null | string @go(PaddingPolicy,*string) - - // The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values max_width, max_height, sizing_policy, and padding_policy instead of resolution and aspect_ratio. The two groups of settings are mutually exclusive. Do not use them together) - resolution?: null | string @go(Resolution,*string) - - // A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill. - sizingPolicy?: null | string @go(SizingPolicy,*string) -} - -#ThumbnailsParameters: { - // The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9 - // +kubebuilder:validation:Optional - aspectRatio?: null | string @go(AspectRatio,*string) - - // The format of thumbnails, if any. Valid formats are jpg and png. - // +kubebuilder:validation:Optional - format?: null | string @go(Format,*string) - - // The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next. - // +kubebuilder:validation:Optional - interval?: null | string @go(Interval,*string) - - // The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive. - // +kubebuilder:validation:Optional - maxHeight?: null | string @go(MaxHeight,*string) - - // The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive. - // +kubebuilder:validation:Optional - maxWidth?: null | string @go(MaxWidth,*string) - - // When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings. - // +kubebuilder:validation:Optional - paddingPolicy?: null | string @go(PaddingPolicy,*string) - - // The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values max_width, max_height, sizing_policy, and padding_policy instead of resolution and aspect_ratio. The two groups of settings are mutually exclusive. Do not use them together) - // +kubebuilder:validation:Optional - resolution?: null | string @go(Resolution,*string) - - // A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill. - // +kubebuilder:validation:Optional - sizingPolicy?: null | string @go(SizingPolicy,*string) -} - -#VideoInitParameters: { - // The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9 - aspectRatio?: null | string @go(AspectRatio,*string) - - // The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive. - bitRate?: null | string @go(BitRate,*string) - - // The audio codec for the output file. Valid values are AAC, flac, mp2, mp3, pcm, and vorbis. - codec?: null | string @go(Codec,*string) - - // The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file. - displayAspectRatio?: null | string @go(DisplayAspectRatio,*string) - - // Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes. - fixedGop?: null | string @go(FixedGop,*string) - - // The frames per second for the video stream in the output file. The following values are valid: auto, 10, 15, 23.97, 24, 25, 29.97, 30, 50, 60. - frameRate?: null | string @go(FrameRate,*string) - - // The maximum number of frames between key frames. Not applicable for containers of type gif. - keyframesMaxDist?: null | string @go(KeyframesMaxDist,*string) - - // If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30. - maxFrameRate?: null | string @go(MaxFrameRate,*string) - - // The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive. - maxHeight?: null | string @go(MaxHeight,*string) - - // The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive. - maxWidth?: null | string @go(MaxWidth,*string) - - // When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings. - paddingPolicy?: null | string @go(PaddingPolicy,*string) - - // The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values max_width, max_height, sizing_policy, and padding_policy instead of resolution and aspect_ratio. The two groups of settings are mutually exclusive. Do not use them together) - resolution?: null | string @go(Resolution,*string) - - // A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill. - sizingPolicy?: null | string @go(SizingPolicy,*string) -} - -#VideoObservation: { - // The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9 - aspectRatio?: null | string @go(AspectRatio,*string) - - // The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive. - bitRate?: null | string @go(BitRate,*string) - - // The audio codec for the output file. Valid values are AAC, flac, mp2, mp3, pcm, and vorbis. - codec?: null | string @go(Codec,*string) - - // The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file. - displayAspectRatio?: null | string @go(DisplayAspectRatio,*string) - - // Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes. - fixedGop?: null | string @go(FixedGop,*string) - - // The frames per second for the video stream in the output file. The following values are valid: auto, 10, 15, 23.97, 24, 25, 29.97, 30, 50, 60. - frameRate?: null | string @go(FrameRate,*string) - - // The maximum number of frames between key frames. Not applicable for containers of type gif. - keyframesMaxDist?: null | string @go(KeyframesMaxDist,*string) - - // If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30. - maxFrameRate?: null | string @go(MaxFrameRate,*string) - - // The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive. - maxHeight?: null | string @go(MaxHeight,*string) - - // The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive. - maxWidth?: null | string @go(MaxWidth,*string) - - // When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings. - paddingPolicy?: null | string @go(PaddingPolicy,*string) - - // The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values max_width, max_height, sizing_policy, and padding_policy instead of resolution and aspect_ratio. The two groups of settings are mutually exclusive. Do not use them together) - resolution?: null | string @go(Resolution,*string) - - // A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill. - sizingPolicy?: null | string @go(SizingPolicy,*string) -} - -#VideoParameters: { - // The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9 - // +kubebuilder:validation:Optional - aspectRatio?: null | string @go(AspectRatio,*string) - - // The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive. - // +kubebuilder:validation:Optional - bitRate?: null | string @go(BitRate,*string) - - // The audio codec for the output file. Valid values are AAC, flac, mp2, mp3, pcm, and vorbis. - // +kubebuilder:validation:Optional - codec?: null | string @go(Codec,*string) - - // The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file. - // +kubebuilder:validation:Optional - displayAspectRatio?: null | string @go(DisplayAspectRatio,*string) - - // Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes. - // +kubebuilder:validation:Optional - fixedGop?: null | string @go(FixedGop,*string) - - // The frames per second for the video stream in the output file. The following values are valid: auto, 10, 15, 23.97, 24, 25, 29.97, 30, 50, 60. - // +kubebuilder:validation:Optional - frameRate?: null | string @go(FrameRate,*string) - - // The maximum number of frames between key frames. Not applicable for containers of type gif. - // +kubebuilder:validation:Optional - keyframesMaxDist?: null | string @go(KeyframesMaxDist,*string) - - // If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30. - // +kubebuilder:validation:Optional - maxFrameRate?: null | string @go(MaxFrameRate,*string) - - // The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive. - // +kubebuilder:validation:Optional - maxHeight?: null | string @go(MaxHeight,*string) - - // The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive. - // +kubebuilder:validation:Optional - maxWidth?: null | string @go(MaxWidth,*string) - - // When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings. - // +kubebuilder:validation:Optional - paddingPolicy?: null | string @go(PaddingPolicy,*string) - - // The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values max_width, max_height, sizing_policy, and padding_policy instead of resolution and aspect_ratio. The two groups of settings are mutually exclusive. Do not use them together) - // +kubebuilder:validation:Optional - resolution?: null | string @go(Resolution,*string) - - // A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill. - // +kubebuilder:validation:Optional - sizingPolicy?: null | string @go(SizingPolicy,*string) -} - -#VideoWatermarksInitParameters: { - // The horizontal position of the watermark unless you specify a nonzero value for horzontal_offset. - horizontalAlign?: null | string @go(HorizontalAlign,*string) - - // The amount by which you want the horizontal position of the watermark to be offset from the position specified by horizontal_align. - horizontalOffset?: null | string @go(HorizontalOffset,*string) - - // A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks. - id?: null | string @go(ID,*string) - - // The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive. - maxHeight?: null | string @go(MaxHeight,*string) - - // The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive. - maxWidth?: null | string @go(MaxWidth,*string) - - // A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. - opacity?: null | string @go(Opacity,*string) - - // A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill. - sizingPolicy?: null | string @go(SizingPolicy,*string) - - // A value that determines how Elastic Transcoder interprets values that you specified for video_watermarks.horizontal_offset, video_watermarks.vertical_offset, video_watermarks.max_width, and video_watermarks.max_height. Valid values are Content and Frame. - target?: null | string @go(Target,*string) - - // The vertical position of the watermark unless you specify a nonzero value for vertical_align. Valid values are Top, Bottom, Center. - verticalAlign?: null | string @go(VerticalAlign,*string) - - // The amount by which you want the vertical position of the watermark to be offset from the position specified by vertical_align - verticalOffset?: null | string @go(VerticalOffset,*string) -} - -#VideoWatermarksObservation: { - // The horizontal position of the watermark unless you specify a nonzero value for horzontal_offset. - horizontalAlign?: null | string @go(HorizontalAlign,*string) - - // The amount by which you want the horizontal position of the watermark to be offset from the position specified by horizontal_align. - horizontalOffset?: null | string @go(HorizontalOffset,*string) - - // A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks. - id?: null | string @go(ID,*string) - - // The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive. - maxHeight?: null | string @go(MaxHeight,*string) - - // The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive. - maxWidth?: null | string @go(MaxWidth,*string) - - // A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. - opacity?: null | string @go(Opacity,*string) - - // A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill. - sizingPolicy?: null | string @go(SizingPolicy,*string) - - // A value that determines how Elastic Transcoder interprets values that you specified for video_watermarks.horizontal_offset, video_watermarks.vertical_offset, video_watermarks.max_width, and video_watermarks.max_height. Valid values are Content and Frame. - target?: null | string @go(Target,*string) - - // The vertical position of the watermark unless you specify a nonzero value for vertical_align. Valid values are Top, Bottom, Center. - verticalAlign?: null | string @go(VerticalAlign,*string) - - // The amount by which you want the vertical position of the watermark to be offset from the position specified by vertical_align - verticalOffset?: null | string @go(VerticalOffset,*string) -} - -#VideoWatermarksParameters: { - // The horizontal position of the watermark unless you specify a nonzero value for horzontal_offset. - // +kubebuilder:validation:Optional - horizontalAlign?: null | string @go(HorizontalAlign,*string) - - // The amount by which you want the horizontal position of the watermark to be offset from the position specified by horizontal_align. - // +kubebuilder:validation:Optional - horizontalOffset?: null | string @go(HorizontalOffset,*string) - - // A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive. - // +kubebuilder:validation:Optional - maxHeight?: null | string @go(MaxHeight,*string) - - // The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive. - // +kubebuilder:validation:Optional - maxWidth?: null | string @go(MaxWidth,*string) - - // A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. - // +kubebuilder:validation:Optional - opacity?: null | string @go(Opacity,*string) - - // A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill. - // +kubebuilder:validation:Optional - sizingPolicy?: null | string @go(SizingPolicy,*string) - - // A value that determines how Elastic Transcoder interprets values that you specified for video_watermarks.horizontal_offset, video_watermarks.vertical_offset, video_watermarks.max_width, and video_watermarks.max_height. Valid values are Content and Frame. - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) - - // The vertical position of the watermark unless you specify a nonzero value for vertical_align. Valid values are Top, Bottom, Center. - // +kubebuilder:validation:Optional - verticalAlign?: null | string @go(VerticalAlign,*string) - - // The amount by which you want the vertical position of the watermark to be offset from the position specified by vertical_align - // +kubebuilder:validation:Optional - verticalOffset?: null | string @go(VerticalOffset,*string) -} - -// PresetSpec defines the desired state of Preset -#PresetSpec: { - v1.#ResourceSpec - forProvider: #PresetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PresetInitParameters @go(InitProvider) -} - -// PresetStatus defines the observed state of Preset. -#PresetStatus: { - v1.#ResourceStatus - atProvider?: #PresetObservation @go(AtProvider) -} - -// Preset is the Schema for the Presets API. Provides an Elastic Transcoder preset resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Preset: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.container) || (has(self.initProvider) && has(self.initProvider.container))",message="spec.forProvider.container is a required parameter" - spec: #PresetSpec @go(Spec) - status?: #PresetStatus @go(Status) -} - -// PresetList contains a list of Presets -#PresetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Preset] @go(Items,[]Preset) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_appcookiestickinesspolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_appcookiestickinesspolicy_types_go_gen.cue deleted file mode 100644 index 8e05e6a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_appcookiestickinesspolicy_types_go_gen.cue +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AppCookieStickinessPolicyInitParameters: { - // Application cookie whose lifetime the ELB's cookie should follow. - cookieName?: null | string @go(CookieName,*string) -} - -#AppCookieStickinessPolicyObservation: { - // Application cookie whose lifetime the ELB's cookie should follow. - cookieName?: null | string @go(CookieName,*string) - - // ID of the policy. - id?: null | string @go(ID,*string) - - // Load balancer port to which the policy - // should be applied. This must be an active listener on the load - // balancer. - lbPort?: null | float64 @go(LBPort,*float64) - - // Name of load balancer to which the policy - // should be attached. - loadBalancer?: null | string @go(LoadBalancer,*string) -} - -#AppCookieStickinessPolicyParameters: { - // Application cookie whose lifetime the ELB's cookie should follow. - // +kubebuilder:validation:Optional - cookieName?: null | string @go(CookieName,*string) - - // Load balancer port to which the policy - // should be applied. This must be an active listener on the load - // balancer. - // +kubebuilder:validation:Required - lbPort?: null | float64 @go(LBPort,*float64) - - // Name of load balancer to which the policy - // should be attached. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elb/v1beta1.ELB - // +kubebuilder:validation:Optional - loadBalancer?: null | string @go(LoadBalancer,*string) - - // Reference to a ELB in elb to populate loadBalancer. - // +kubebuilder:validation:Optional - loadBalancerRef?: null | v1.#Reference @go(LoadBalancerRef,*v1.Reference) - - // Selector for a ELB in elb to populate loadBalancer. - // +kubebuilder:validation:Optional - loadBalancerSelector?: null | v1.#Selector @go(LoadBalancerSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// AppCookieStickinessPolicySpec defines the desired state of AppCookieStickinessPolicy -#AppCookieStickinessPolicySpec: { - v1.#ResourceSpec - forProvider: #AppCookieStickinessPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AppCookieStickinessPolicyInitParameters @go(InitProvider) -} - -// AppCookieStickinessPolicyStatus defines the observed state of AppCookieStickinessPolicy. -#AppCookieStickinessPolicyStatus: { - v1.#ResourceStatus - atProvider?: #AppCookieStickinessPolicyObservation @go(AtProvider) -} - -// AppCookieStickinessPolicy is the Schema for the AppCookieStickinessPolicys API. Provides an application cookie stickiness policy, which allows an ELB to wed its stickiness cookie to a cookie generated by your application. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AppCookieStickinessPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.cookieName) || (has(self.initProvider) && has(self.initProvider.cookieName))",message="spec.forProvider.cookieName is a required parameter" - spec: #AppCookieStickinessPolicySpec @go(Spec) - status?: #AppCookieStickinessPolicyStatus @go(Status) -} - -// AppCookieStickinessPolicyList contains a list of AppCookieStickinessPolicys -#AppCookieStickinessPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AppCookieStickinessPolicy] @go(Items,[]AppCookieStickinessPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_attachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_attachment_types_go_gen.cue deleted file mode 100644 index 517159a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_attachment_types_go_gen.cue +++ /dev/null @@ -1,100 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AttachmentInitParameters: { -} - -#AttachmentObservation: { - // The name of the ELB. - elb?: null | string @go(ELB,*string) - id?: null | string @go(ID,*string) - - // Instance ID to place in the ELB pool. - instance?: null | string @go(Instance,*string) -} - -#AttachmentParameters: { - // The name of the ELB. - // +crossplane:generate:reference:type=ELB - // +kubebuilder:validation:Optional - elb?: null | string @go(ELB,*string) - - // Reference to a ELB to populate elb. - // +kubebuilder:validation:Optional - elbRef?: null | v1.#Reference @go(ELBRef,*v1.Reference) - - // Selector for a ELB to populate elb. - // +kubebuilder:validation:Optional - elbSelector?: null | v1.#Selector @go(ELBSelector,*v1.Selector) - - // Instance ID to place in the ELB pool. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Instance - // +kubebuilder:validation:Optional - instance?: null | string @go(Instance,*string) - - // Reference to a Instance in ec2 to populate instance. - // +kubebuilder:validation:Optional - instanceRef?: null | v1.#Reference @go(InstanceRef,*v1.Reference) - - // Selector for a Instance in ec2 to populate instance. - // +kubebuilder:validation:Optional - instanceSelector?: null | v1.#Selector @go(InstanceSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// AttachmentSpec defines the desired state of Attachment -#AttachmentSpec: { - v1.#ResourceSpec - forProvider: #AttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AttachmentInitParameters @go(InitProvider) -} - -// AttachmentStatus defines the observed state of Attachment. -#AttachmentStatus: { - v1.#ResourceStatus - atProvider?: #AttachmentObservation @go(AtProvider) -} - -// Attachment is the Schema for the Attachments API. Provides an Elastic Load Balancer Attachment resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Attachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AttachmentSpec @go(Spec) - status?: #AttachmentStatus @go(Status) -} - -// AttachmentList contains a list of Attachments -#AttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Attachment] @go(Items,[]Attachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_backendserverpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_backendserverpolicy_types_go_gen.cue deleted file mode 100644 index fa6ea99..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_backendserverpolicy_types_go_gen.cue +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BackendServerPolicyInitParameters: { - // The instance port to apply the policy to. - instancePort?: null | float64 @go(InstancePort,*float64) - - // List of Policy Names to apply to the backend server. - policyNames?: [...null | string] @go(PolicyNames,[]*string) -} - -#BackendServerPolicyObservation: { - // The ID of the policy. - id?: null | string @go(ID,*string) - - // The instance port to apply the policy to. - instancePort?: null | float64 @go(InstancePort,*float64) - - // The load balancer to attach the policy to. - loadBalancerName?: null | string @go(LoadBalancerName,*string) - - // List of Policy Names to apply to the backend server. - policyNames?: [...null | string] @go(PolicyNames,[]*string) -} - -#BackendServerPolicyParameters: { - // The instance port to apply the policy to. - // +kubebuilder:validation:Optional - instancePort?: null | float64 @go(InstancePort,*float64) - - // The load balancer to attach the policy to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elb/v1beta1.ELB - // +kubebuilder:validation:Optional - loadBalancerName?: null | string @go(LoadBalancerName,*string) - - // Reference to a ELB in elb to populate loadBalancerName. - // +kubebuilder:validation:Optional - loadBalancerNameRef?: null | v1.#Reference @go(LoadBalancerNameRef,*v1.Reference) - - // Selector for a ELB in elb to populate loadBalancerName. - // +kubebuilder:validation:Optional - loadBalancerNameSelector?: null | v1.#Selector @go(LoadBalancerNameSelector,*v1.Selector) - - // List of Policy Names to apply to the backend server. - // +kubebuilder:validation:Optional - policyNames?: [...null | string] @go(PolicyNames,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// BackendServerPolicySpec defines the desired state of BackendServerPolicy -#BackendServerPolicySpec: { - v1.#ResourceSpec - forProvider: #BackendServerPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BackendServerPolicyInitParameters @go(InitProvider) -} - -// BackendServerPolicyStatus defines the observed state of BackendServerPolicy. -#BackendServerPolicyStatus: { - v1.#ResourceStatus - atProvider?: #BackendServerPolicyObservation @go(AtProvider) -} - -// BackendServerPolicy is the Schema for the BackendServerPolicys API. Attaches a load balancer policy to an ELB backend server. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BackendServerPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instancePort) || (has(self.initProvider) && has(self.initProvider.instancePort))",message="spec.forProvider.instancePort is a required parameter" - spec: #BackendServerPolicySpec @go(Spec) - status?: #BackendServerPolicyStatus @go(Status) -} - -// BackendServerPolicyList contains a list of BackendServerPolicys -#BackendServerPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BackendServerPolicy] @go(Items,[]BackendServerPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_elb_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_elb_types_go_gen.cue deleted file mode 100644 index 5408939..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_elb_types_go_gen.cue +++ /dev/null @@ -1,429 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessLogsInitParameters: { - // The S3 bucket name to store the logs in. - bucket?: null | string @go(Bucket,*string) - - // The S3 bucket prefix. Logs are stored in the root if not configured. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Boolean to enable / disable access_logs. Default is true - enabled?: null | bool @go(Enabled,*bool) - - // The publishing interval in minutes. Valid values: 5 and 60. Default: 60 - interval?: null | float64 @go(Interval,*float64) -} - -#AccessLogsObservation: { - // The S3 bucket name to store the logs in. - bucket?: null | string @go(Bucket,*string) - - // The S3 bucket prefix. Logs are stored in the root if not configured. - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Boolean to enable / disable access_logs. Default is true - enabled?: null | bool @go(Enabled,*bool) - - // The publishing interval in minutes. Valid values: 5 and 60. Default: 60 - interval?: null | float64 @go(Interval,*float64) -} - -#AccessLogsParameters: { - // The S3 bucket name to store the logs in. - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // The S3 bucket prefix. Logs are stored in the root if not configured. - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Boolean to enable / disable access_logs. Default is true - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The publishing interval in minutes. Valid values: 5 and 60. Default: 60 - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) -} - -#ELBInitParameters: { - // An Access Logs block. Access Logs documented below. - accessLogs?: [...#AccessLogsInitParameters] @go(AccessLogs,[]AccessLogsInitParameters) - - // The AZ's to serve traffic in. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Boolean to enable connection draining. Default: false - connectionDraining?: null | bool @go(ConnectionDraining,*bool) - - // The time in seconds to allow for connections to drain. Default: 300 - connectionDrainingTimeout?: null | float64 @go(ConnectionDrainingTimeout,*float64) - - // Enable cross-zone load balancing. Default: true - crossZoneLoadBalancing?: null | bool @go(CrossZoneLoadBalancing,*bool) - - // Determines how the load balancer handles requests that might pose a security risk to an application due to HTTP desync. Valid values are monitor, defensive (default), strictest. - desyncMitigationMode?: null | string @go(DesyncMitigationMode,*string) - - // A health_check block. Health Check documented below. - healthCheck?: [...#HealthCheckInitParameters] @go(HealthCheck,[]HealthCheckInitParameters) - - // The time in seconds that the connection is allowed to be idle. Default: 60 - idleTimeout?: null | float64 @go(IdleTimeout,*float64) - - // If true, ELB will be an internal ELB. - internal?: null | bool @go(Internal,*bool) - - // A list of listener blocks. Listeners documented below. - listener?: [...#ListenerInitParameters] @go(Listener,[]ListenerInitParameters) - - // A list of security group IDs to assign to the ELB. - // Only valid if creating an ELB within a VPC - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The name of the security group that you can use as - // part of your inbound rules for your load balancer's back-end application - // instances. Use this for Classic or Default VPC only. - sourceSecurityGroup?: null | string @go(SourceSecurityGroup,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ELBObservation: { - // An Access Logs block. Access Logs documented below. - accessLogs?: [...#AccessLogsObservation] @go(AccessLogs,[]AccessLogsObservation) - - // The ARN of the ELB - arn?: null | string @go(Arn,*string) - - // The AZ's to serve traffic in. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Boolean to enable connection draining. Default: false - connectionDraining?: null | bool @go(ConnectionDraining,*bool) - - // The time in seconds to allow for connections to drain. Default: 300 - connectionDrainingTimeout?: null | float64 @go(ConnectionDrainingTimeout,*float64) - - // Enable cross-zone load balancing. Default: true - crossZoneLoadBalancing?: null | bool @go(CrossZoneLoadBalancing,*bool) - - // The DNS name of the ELB - dnsName?: null | string @go(DNSName,*string) - - // Determines how the load balancer handles requests that might pose a security risk to an application due to HTTP desync. Valid values are monitor, defensive (default), strictest. - desyncMitigationMode?: null | string @go(DesyncMitigationMode,*string) - - // A health_check block. Health Check documented below. - healthCheck?: [...#HealthCheckObservation] @go(HealthCheck,[]HealthCheckObservation) - - // The name of the ELB - id?: null | string @go(ID,*string) - - // The time in seconds that the connection is allowed to be idle. Default: 60 - idleTimeout?: null | float64 @go(IdleTimeout,*float64) - - // A list of instance ids to place in the ELB pool. - instances?: [...null | string] @go(Instances,[]*string) - - // If true, ELB will be an internal ELB. - internal?: null | bool @go(Internal,*bool) - - // A list of listener blocks. Listeners documented below. - listener?: [...#ListenerObservation] @go(Listener,[]ListenerObservation) - - // A list of security group IDs to assign to the ELB. - // Only valid if creating an ELB within a VPC - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The name of the security group that you can use as - // part of your inbound rules for your load balancer's back-end application - // instances. Use this for Classic or Default VPC only. - sourceSecurityGroup?: null | string @go(SourceSecurityGroup,*string) - - // The ID of the security group that you can use as - // part of your inbound rules for your load balancer's back-end application - // instances. Only available on ELBs launched in a VPC. - sourceSecurityGroupId?: null | string @go(SourceSecurityGroupID,*string) - - // A list of subnet IDs to attach to the ELB. - subnets?: [...null | string] @go(Subnets,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The canonical hosted zone ID of the ELB (to be used in a Route 53 Alias record) - zoneId?: null | string @go(ZoneID,*string) -} - -#ELBParameters: { - // An Access Logs block. Access Logs documented below. - // +kubebuilder:validation:Optional - accessLogs?: [...#AccessLogsParameters] @go(AccessLogs,[]AccessLogsParameters) - - // The AZ's to serve traffic in. - // +kubebuilder:validation:Optional - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Boolean to enable connection draining. Default: false - // +kubebuilder:validation:Optional - connectionDraining?: null | bool @go(ConnectionDraining,*bool) - - // The time in seconds to allow for connections to drain. Default: 300 - // +kubebuilder:validation:Optional - connectionDrainingTimeout?: null | float64 @go(ConnectionDrainingTimeout,*float64) - - // Enable cross-zone load balancing. Default: true - // +kubebuilder:validation:Optional - crossZoneLoadBalancing?: null | bool @go(CrossZoneLoadBalancing,*bool) - - // Determines how the load balancer handles requests that might pose a security risk to an application due to HTTP desync. Valid values are monitor, defensive (default), strictest. - // +kubebuilder:validation:Optional - desyncMitigationMode?: null | string @go(DesyncMitigationMode,*string) - - // A health_check block. Health Check documented below. - // +kubebuilder:validation:Optional - healthCheck?: [...#HealthCheckParameters] @go(HealthCheck,[]HealthCheckParameters) - - // The time in seconds that the connection is allowed to be idle. Default: 60 - // +kubebuilder:validation:Optional - idleTimeout?: null | float64 @go(IdleTimeout,*float64) - - // A list of instance ids to place in the ELB pool. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Instance - // +kubebuilder:validation:Optional - instances?: [...null | string] @go(Instances,[]*string) - - // References to Instance in ec2 to populate instances. - // +kubebuilder:validation:Optional - instancesRefs?: [...v1.#Reference] @go(InstancesRefs,[]v1.Reference) - - // Selector for a list of Instance in ec2 to populate instances. - // +kubebuilder:validation:Optional - instancesSelector?: null | v1.#Selector @go(InstancesSelector,*v1.Selector) - - // If true, ELB will be an internal ELB. - // +kubebuilder:validation:Optional - internal?: null | bool @go(Internal,*bool) - - // A list of listener blocks. Listeners documented below. - // +kubebuilder:validation:Optional - listener?: [...#ListenerParameters] @go(Listener,[]ListenerParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A list of security group IDs to assign to the ELB. - // Only valid if creating an ELB within a VPC - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The name of the security group that you can use as - // part of your inbound rules for your load balancer's back-end application - // instances. Use this for Classic or Default VPC only. - // +kubebuilder:validation:Optional - sourceSecurityGroup?: null | string @go(SourceSecurityGroup,*string) - - // A list of subnet IDs to attach to the ELB. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnets?: [...null | string] @go(Subnets,[]*string) - - // References to Subnet in ec2 to populate subnets. - // +kubebuilder:validation:Optional - subnetsRefs?: [...v1.#Reference] @go(SubnetsRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnets. - // +kubebuilder:validation:Optional - subnetsSelector?: null | v1.#Selector @go(SubnetsSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#HealthCheckInitParameters: { - // The number of checks before the instance is declared healthy. - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // The publishing interval in minutes. Valid values: 5 and 60. Default: 60 - interval?: null | float64 @go(Interval,*float64) - - // The target of the check. Valid pattern is "${PROTOCOL}:${PORT}${PATH}", where PROTOCOL - // values are: - target?: null | string @go(Target,*string) - - // The length of time before the check times out. - timeout?: null | float64 @go(Timeout,*float64) - - // The number of checks before the instance is declared unhealthy. - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#HealthCheckObservation: { - // The number of checks before the instance is declared healthy. - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // The publishing interval in minutes. Valid values: 5 and 60. Default: 60 - interval?: null | float64 @go(Interval,*float64) - - // The target of the check. Valid pattern is "${PROTOCOL}:${PORT}${PATH}", where PROTOCOL - // values are: - target?: null | string @go(Target,*string) - - // The length of time before the check times out. - timeout?: null | float64 @go(Timeout,*float64) - - // The number of checks before the instance is declared unhealthy. - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#HealthCheckParameters: { - // The number of checks before the instance is declared healthy. - // +kubebuilder:validation:Optional - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // The publishing interval in minutes. Valid values: 5 and 60. Default: 60 - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) - - // The target of the check. Valid pattern is "${PROTOCOL}:${PORT}${PATH}", where PROTOCOL - // values are: - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) - - // The length of time before the check times out. - // +kubebuilder:validation:Optional - timeout?: null | float64 @go(Timeout,*float64) - - // The number of checks before the instance is declared unhealthy. - // +kubebuilder:validation:Optional - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#ListenerInitParameters: { - // The port on the instance to route to - instancePort?: null | float64 @go(InstancePort,*float64) - - // The protocol to use to the instance. Valid - // values are HTTP, HTTPS, TCP, or SSL - instanceProtocol?: null | string @go(InstanceProtocol,*string) - - // The port to listen on for the load balancer - lbPort?: null | float64 @go(LBPort,*float64) - - // The protocol to listen on. Valid values are HTTP, - // HTTPS, TCP, or SSL - lbProtocol?: null | string @go(LBProtocol,*string) - - // The ARN of an SSL certificate you have - // uploaded to AWS IAM. Note ECDSA-specific restrictions below. Only valid when - sslCertificateId?: null | string @go(SSLCertificateID,*string) -} - -#ListenerObservation: { - // The port on the instance to route to - instancePort?: null | float64 @go(InstancePort,*float64) - - // The protocol to use to the instance. Valid - // values are HTTP, HTTPS, TCP, or SSL - instanceProtocol?: null | string @go(InstanceProtocol,*string) - - // The port to listen on for the load balancer - lbPort?: null | float64 @go(LBPort,*float64) - - // The protocol to listen on. Valid values are HTTP, - // HTTPS, TCP, or SSL - lbProtocol?: null | string @go(LBProtocol,*string) - - // The ARN of an SSL certificate you have - // uploaded to AWS IAM. Note ECDSA-specific restrictions below. Only valid when - sslCertificateId?: null | string @go(SSLCertificateID,*string) -} - -#ListenerParameters: { - // The port on the instance to route to - // +kubebuilder:validation:Optional - instancePort?: null | float64 @go(InstancePort,*float64) - - // The protocol to use to the instance. Valid - // values are HTTP, HTTPS, TCP, or SSL - // +kubebuilder:validation:Optional - instanceProtocol?: null | string @go(InstanceProtocol,*string) - - // The port to listen on for the load balancer - // +kubebuilder:validation:Optional - lbPort?: null | float64 @go(LBPort,*float64) - - // The protocol to listen on. Valid values are HTTP, - // HTTPS, TCP, or SSL - // +kubebuilder:validation:Optional - lbProtocol?: null | string @go(LBProtocol,*string) - - // The ARN of an SSL certificate you have - // uploaded to AWS IAM. Note ECDSA-specific restrictions below. Only valid when - // +kubebuilder:validation:Optional - sslCertificateId?: null | string @go(SSLCertificateID,*string) -} - -// ELBSpec defines the desired state of ELB -#ELBSpec: { - v1.#ResourceSpec - forProvider: #ELBParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ELBInitParameters @go(InitProvider) -} - -// ELBStatus defines the observed state of ELB. -#ELBStatus: { - v1.#ResourceStatus - atProvider?: #ELBObservation @go(AtProvider) -} - -// ELB is the Schema for the ELBs API. Provides an Elastic Load Balancer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ELB: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.listener) || (has(self.initProvider) && has(self.initProvider.listener))",message="spec.forProvider.listener is a required parameter" - spec: #ELBSpec @go(Spec) - status?: #ELBStatus @go(Status) -} - -// ELBList contains a list of ELBs -#ELBList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ELB] @go(Items,[]ELB) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 367d65c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elb/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=elb.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "elb.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_lbcookiestickinesspolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_lbcookiestickinesspolicy_types_go_gen.cue deleted file mode 100644 index c5d3303..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_lbcookiestickinesspolicy_types_go_gen.cue +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LBCookieStickinessPolicyInitParameters: { - // The time period after which - // the session cookie should be considered stale, expressed in seconds. - cookieExpirationPeriod?: null | float64 @go(CookieExpirationPeriod,*float64) - - // The load balancer port to which the policy - // should be applied. This must be an active listener on the load - // balancer. - lbPort?: null | float64 @go(LBPort,*float64) - - // The name of the stickiness policy. - name?: null | string @go(Name,*string) -} - -#LBCookieStickinessPolicyObservation: { - // The time period after which - // the session cookie should be considered stale, expressed in seconds. - cookieExpirationPeriod?: null | float64 @go(CookieExpirationPeriod,*float64) - - // The ID of the policy. - id?: null | string @go(ID,*string) - - // The load balancer port to which the policy - // should be applied. This must be an active listener on the load - // balancer. - lbPort?: null | float64 @go(LBPort,*float64) - - // The load balancer to which the policy - // should be attached. - loadBalancer?: null | string @go(LoadBalancer,*string) - - // The name of the stickiness policy. - name?: null | string @go(Name,*string) -} - -#LBCookieStickinessPolicyParameters: { - // The time period after which - // the session cookie should be considered stale, expressed in seconds. - // +kubebuilder:validation:Optional - cookieExpirationPeriod?: null | float64 @go(CookieExpirationPeriod,*float64) - - // The load balancer port to which the policy - // should be applied. This must be an active listener on the load - // balancer. - // +kubebuilder:validation:Optional - lbPort?: null | float64 @go(LBPort,*float64) - - // The load balancer to which the policy - // should be attached. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elb/v1beta1.ELB - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - loadBalancer?: null | string @go(LoadBalancer,*string) - - // Reference to a ELB in elb to populate loadBalancer. - // +kubebuilder:validation:Optional - loadBalancerRef?: null | v1.#Reference @go(LoadBalancerRef,*v1.Reference) - - // Selector for a ELB in elb to populate loadBalancer. - // +kubebuilder:validation:Optional - loadBalancerSelector?: null | v1.#Selector @go(LoadBalancerSelector,*v1.Selector) - - // The name of the stickiness policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// LBCookieStickinessPolicySpec defines the desired state of LBCookieStickinessPolicy -#LBCookieStickinessPolicySpec: { - v1.#ResourceSpec - forProvider: #LBCookieStickinessPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LBCookieStickinessPolicyInitParameters @go(InitProvider) -} - -// LBCookieStickinessPolicyStatus defines the observed state of LBCookieStickinessPolicy. -#LBCookieStickinessPolicyStatus: { - v1.#ResourceStatus - atProvider?: #LBCookieStickinessPolicyObservation @go(AtProvider) -} - -// LBCookieStickinessPolicy is the Schema for the LBCookieStickinessPolicys API. Provides a load balancer cookie stickiness policy, which allows an ELB to control the sticky session lifetime of the browser. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LBCookieStickinessPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.lbPort) || (has(self.initProvider) && has(self.initProvider.lbPort))",message="spec.forProvider.lbPort is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #LBCookieStickinessPolicySpec @go(Spec) - status?: #LBCookieStickinessPolicyStatus @go(Status) -} - -// LBCookieStickinessPolicyList contains a list of LBCookieStickinessPolicys -#LBCookieStickinessPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LBCookieStickinessPolicy] @go(Items,[]LBCookieStickinessPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_lbsslnegotiationpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_lbsslnegotiationpolicy_types_go_gen.cue deleted file mode 100644 index 59a6db3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_lbsslnegotiationpolicy_types_go_gen.cue +++ /dev/null @@ -1,163 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AttributeInitParameters: { - // The name of the SSL negotiation policy. - name?: null | string @go(Name,*string) - - // The value of the attribute - value?: null | string @go(Value,*string) -} - -#AttributeObservation: { - // The name of the SSL negotiation policy. - name?: null | string @go(Name,*string) - - // The value of the attribute - value?: null | string @go(Value,*string) -} - -#AttributeParameters: { - // The name of the SSL negotiation policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of the attribute - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#LBSSLNegotiationPolicyInitParameters: { - // An SSL Negotiation policy attribute. Each has two properties: - attribute?: [...#AttributeInitParameters] @go(Attribute,[]AttributeInitParameters) - - // The load balancer port to which the policy - // should be applied. This must be an active listener on the load - // balancer. - lbPort?: null | float64 @go(LBPort,*float64) - - // The name of the SSL negotiation policy. - name?: null | string @go(Name,*string) - - // Map of arbitrary keys and values that, when changed, will trigger a redeployment. - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) -} - -#LBSSLNegotiationPolicyObservation: { - // An SSL Negotiation policy attribute. Each has two properties: - attribute?: [...#AttributeObservation] @go(Attribute,[]AttributeObservation) - - // The ID of the policy. - id?: null | string @go(ID,*string) - - // The load balancer port to which the policy - // should be applied. This must be an active listener on the load - // balancer. - lbPort?: null | float64 @go(LBPort,*float64) - - // The load balancer to which the policy - // should be attached. - loadBalancer?: null | string @go(LoadBalancer,*string) - - // The name of the SSL negotiation policy. - name?: null | string @go(Name,*string) - - // Map of arbitrary keys and values that, when changed, will trigger a redeployment. - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) -} - -#LBSSLNegotiationPolicyParameters: { - // An SSL Negotiation policy attribute. Each has two properties: - // +kubebuilder:validation:Optional - attribute?: [...#AttributeParameters] @go(Attribute,[]AttributeParameters) - - // The load balancer port to which the policy - // should be applied. This must be an active listener on the load - // balancer. - // +kubebuilder:validation:Optional - lbPort?: null | float64 @go(LBPort,*float64) - - // The load balancer to which the policy - // should be attached. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elb/v1beta1.ELB - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - loadBalancer?: null | string @go(LoadBalancer,*string) - - // Reference to a ELB in elb to populate loadBalancer. - // +kubebuilder:validation:Optional - loadBalancerRef?: null | v1.#Reference @go(LoadBalancerRef,*v1.Reference) - - // Selector for a ELB in elb to populate loadBalancer. - // +kubebuilder:validation:Optional - loadBalancerSelector?: null | v1.#Selector @go(LoadBalancerSelector,*v1.Selector) - - // The name of the SSL negotiation policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Map of arbitrary keys and values that, when changed, will trigger a redeployment. - // +kubebuilder:validation:Optional - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) -} - -// LBSSLNegotiationPolicySpec defines the desired state of LBSSLNegotiationPolicy -#LBSSLNegotiationPolicySpec: { - v1.#ResourceSpec - forProvider: #LBSSLNegotiationPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LBSSLNegotiationPolicyInitParameters @go(InitProvider) -} - -// LBSSLNegotiationPolicyStatus defines the observed state of LBSSLNegotiationPolicy. -#LBSSLNegotiationPolicyStatus: { - v1.#ResourceStatus - atProvider?: #LBSSLNegotiationPolicyObservation @go(AtProvider) -} - -// LBSSLNegotiationPolicy is the Schema for the LBSSLNegotiationPolicys API. Provides a load balancer SSL negotiation policy, which allows an ELB to control which ciphers and protocols are supported during SSL negotiations between a client and a load balancer. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LBSSLNegotiationPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.lbPort) || (has(self.initProvider) && has(self.initProvider.lbPort))",message="spec.forProvider.lbPort is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #LBSSLNegotiationPolicySpec @go(Spec) - status?: #LBSSLNegotiationPolicyStatus @go(Status) -} - -// LBSSLNegotiationPolicyList contains a list of LBSSLNegotiationPolicys -#LBSSLNegotiationPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LBSSLNegotiationPolicy] @go(Items,[]LBSSLNegotiationPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_listenerpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_listenerpolicy_types_go_gen.cue deleted file mode 100644 index 4e9995a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_listenerpolicy_types_go_gen.cue +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ListenerPolicyInitParameters: { - // The load balancer listener port to apply the policy to. - loadBalancerPort?: null | float64 @go(LoadBalancerPort,*float64) - - // List of Policy Names to apply to the backend server. - policyNames?: [...null | string] @go(PolicyNames,[]*string) - - // Map of arbitrary keys and values that, when changed, will trigger an update. - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) -} - -#ListenerPolicyObservation: { - // The ID of the policy. - id?: null | string @go(ID,*string) - - // The load balancer to attach the policy to. - loadBalancerName?: null | string @go(LoadBalancerName,*string) - - // The load balancer listener port to apply the policy to. - loadBalancerPort?: null | float64 @go(LoadBalancerPort,*float64) - - // List of Policy Names to apply to the backend server. - policyNames?: [...null | string] @go(PolicyNames,[]*string) - - // Map of arbitrary keys and values that, when changed, will trigger an update. - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) -} - -#ListenerPolicyParameters: { - // The load balancer to attach the policy to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elb/v1beta1.ELB - // +kubebuilder:validation:Optional - loadBalancerName?: null | string @go(LoadBalancerName,*string) - - // Reference to a ELB in elb to populate loadBalancerName. - // +kubebuilder:validation:Optional - loadBalancerNameRef?: null | v1.#Reference @go(LoadBalancerNameRef,*v1.Reference) - - // Selector for a ELB in elb to populate loadBalancerName. - // +kubebuilder:validation:Optional - loadBalancerNameSelector?: null | v1.#Selector @go(LoadBalancerNameSelector,*v1.Selector) - - // The load balancer listener port to apply the policy to. - // +kubebuilder:validation:Optional - loadBalancerPort?: null | float64 @go(LoadBalancerPort,*float64) - - // List of Policy Names to apply to the backend server. - // +kubebuilder:validation:Optional - policyNames?: [...null | string] @go(PolicyNames,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Map of arbitrary keys and values that, when changed, will trigger an update. - // +kubebuilder:validation:Optional - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) -} - -// ListenerPolicySpec defines the desired state of ListenerPolicy -#ListenerPolicySpec: { - v1.#ResourceSpec - forProvider: #ListenerPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ListenerPolicyInitParameters @go(InitProvider) -} - -// ListenerPolicyStatus defines the observed state of ListenerPolicy. -#ListenerPolicyStatus: { - v1.#ResourceStatus - atProvider?: #ListenerPolicyObservation @go(AtProvider) -} - -// ListenerPolicy is the Schema for the ListenerPolicys API. Attaches a load balancer policy to an ELB Listener. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ListenerPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.loadBalancerPort) || (has(self.initProvider) && has(self.initProvider.loadBalancerPort))",message="spec.forProvider.loadBalancerPort is a required parameter" - spec: #ListenerPolicySpec @go(Spec) - status?: #ListenerPolicyStatus @go(Status) -} - -// ListenerPolicyList contains a list of ListenerPolicys -#ListenerPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ListenerPolicy] @go(Items,[]ListenerPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_policy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_policy_types_go_gen.cue deleted file mode 100644 index 89f824a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_policy_types_go_gen.cue +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PolicyAttributeInitParameters: { - name?: null | string @go(Name,*string) -} - -#PolicyAttributeObservation: { - name?: null | string @go(Name,*string) - value?: null | string @go(Value,*string) -} - -#PolicyAttributeParameters: { - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elb/v1beta1.Policy - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("policy_name",false) - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) - - // Reference to a Policy in elb to populate value. - // +kubebuilder:validation:Optional - valueRef?: null | v1.#Reference @go(ValueRef,*v1.Reference) - - // Selector for a Policy in elb to populate value. - // +kubebuilder:validation:Optional - valueSelector?: null | v1.#Selector @go(ValueSelector,*v1.Selector) -} - -#PolicyInitParameters: { - // Policy attribute to apply to the policy. - policyAttribute?: [...#PolicyAttributeInitParameters] @go(PolicyAttribute,[]PolicyAttributeInitParameters) - - // The name of the load balancer policy. - policyName?: null | string @go(PolicyName,*string) - - // The policy type. - policyTypeName?: null | string @go(PolicyTypeName,*string) -} - -#PolicyObservation: { - // The ID of the policy. - id?: null | string @go(ID,*string) - - // The load balancer on which the policy is defined. - loadBalancerName?: null | string @go(LoadBalancerName,*string) - - // Policy attribute to apply to the policy. - policyAttribute?: [...#PolicyAttributeObservation] @go(PolicyAttribute,[]PolicyAttributeObservation) - - // The name of the load balancer policy. - policyName?: null | string @go(PolicyName,*string) - - // The policy type. - policyTypeName?: null | string @go(PolicyTypeName,*string) -} - -#PolicyParameters: { - // The load balancer on which the policy is defined. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elb/v1beta1.ELB - // +kubebuilder:validation:Optional - loadBalancerName?: null | string @go(LoadBalancerName,*string) - - // Reference to a ELB in elb to populate loadBalancerName. - // +kubebuilder:validation:Optional - loadBalancerNameRef?: null | v1.#Reference @go(LoadBalancerNameRef,*v1.Reference) - - // Selector for a ELB in elb to populate loadBalancerName. - // +kubebuilder:validation:Optional - loadBalancerNameSelector?: null | v1.#Selector @go(LoadBalancerNameSelector,*v1.Selector) - - // Policy attribute to apply to the policy. - // +kubebuilder:validation:Optional - policyAttribute?: [...#PolicyAttributeParameters] @go(PolicyAttribute,[]PolicyAttributeParameters) - - // The name of the load balancer policy. - // +kubebuilder:validation:Optional - policyName?: null | string @go(PolicyName,*string) - - // The policy type. - // +kubebuilder:validation:Optional - policyTypeName?: null | string @go(PolicyTypeName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// PolicySpec defines the desired state of Policy -#PolicySpec: { - v1.#ResourceSpec - forProvider: #PolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PolicyInitParameters @go(InitProvider) -} - -// PolicyStatus defines the observed state of Policy. -#PolicyStatus: { - v1.#ResourceStatus - atProvider?: #PolicyObservation @go(AtProvider) -} - -// Policy is the Schema for the Policys API. Provides a load balancer policy, which can be attached to an ELB listener or backend server. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Policy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policyName) || (has(self.initProvider) && has(self.initProvider.policyName))",message="spec.forProvider.policyName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policyTypeName) || (has(self.initProvider) && has(self.initProvider.policyTypeName))",message="spec.forProvider.policyTypeName is a required parameter" - spec: #PolicySpec @go(Spec) - status?: #PolicyStatus @go(Status) -} - -// PolicyList contains a list of Policys -#PolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Policy] @go(Items,[]Policy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_proxyprotocolpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_proxyprotocolpolicy_types_go_gen.cue deleted file mode 100644 index c715ccc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elb/v1beta1/zz_proxyprotocolpolicy_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ProxyProtocolPolicyInitParameters: { - // List of instance ports to which the policy - // should be applied. This can be specified if the protocol is SSL or TCP. - instancePorts?: [...null | string] @go(InstancePorts,[]*string) -} - -#ProxyProtocolPolicyObservation: { - // The ID of the policy. - id?: null | string @go(ID,*string) - - // List of instance ports to which the policy - // should be applied. This can be specified if the protocol is SSL or TCP. - instancePorts?: [...null | string] @go(InstancePorts,[]*string) - - // The load balancer to which the policy - // should be attached. - loadBalancer?: null | string @go(LoadBalancer,*string) -} - -#ProxyProtocolPolicyParameters: { - // List of instance ports to which the policy - // should be applied. This can be specified if the protocol is SSL or TCP. - // +kubebuilder:validation:Optional - instancePorts?: [...null | string] @go(InstancePorts,[]*string) - - // The load balancer to which the policy - // should be attached. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elb/v1beta1.ELB - // +kubebuilder:validation:Optional - loadBalancer?: null | string @go(LoadBalancer,*string) - - // Reference to a ELB in elb to populate loadBalancer. - // +kubebuilder:validation:Optional - loadBalancerRef?: null | v1.#Reference @go(LoadBalancerRef,*v1.Reference) - - // Selector for a ELB in elb to populate loadBalancer. - // +kubebuilder:validation:Optional - loadBalancerSelector?: null | v1.#Selector @go(LoadBalancerSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ProxyProtocolPolicySpec defines the desired state of ProxyProtocolPolicy -#ProxyProtocolPolicySpec: { - v1.#ResourceSpec - forProvider: #ProxyProtocolPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProxyProtocolPolicyInitParameters @go(InitProvider) -} - -// ProxyProtocolPolicyStatus defines the observed state of ProxyProtocolPolicy. -#ProxyProtocolPolicyStatus: { - v1.#ResourceStatus - atProvider?: #ProxyProtocolPolicyObservation @go(AtProvider) -} - -// ProxyProtocolPolicy is the Schema for the ProxyProtocolPolicys API. Provides a proxy protocol policy, which allows an ELB to carry a client connection information to a backend. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ProxyProtocolPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instancePorts) || (has(self.initProvider) && has(self.initProvider.instancePorts))",message="spec.forProvider.instancePorts is a required parameter" - spec: #ProxyProtocolPolicySpec @go(Spec) - status?: #ProxyProtocolPolicyStatus @go(Status) -} - -// ProxyProtocolPolicyList contains a list of ProxyProtocolPolicys -#ProxyProtocolPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ProxyProtocolPolicy] @go(Items,[]ProxyProtocolPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index dcd14fa..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elbv2/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=elbv2.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "elbv2.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lb_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lb_types_go_gen.cue deleted file mode 100644 index bdfd1cd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lb_types_go_gen.cue +++ /dev/null @@ -1,417 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elbv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessLogsInitParameters: { - // Boolean to enable / disable access_logs. Defaults to false, even when bucket is specified. - enabled?: null | bool @go(Enabled,*bool) - - // The S3 bucket prefix. Logs are stored in the root if not configured. - prefix?: null | string @go(Prefix,*string) -} - -#AccessLogsObservation: { - // The S3 bucket name to store the logs in. - bucket?: null | string @go(Bucket,*string) - - // Boolean to enable / disable access_logs. Defaults to false, even when bucket is specified. - enabled?: null | bool @go(Enabled,*bool) - - // The S3 bucket prefix. Logs are stored in the root if not configured. - prefix?: null | string @go(Prefix,*string) -} - -#AccessLogsParameters: { - // The S3 bucket name to store the logs in. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Boolean to enable / disable access_logs. Defaults to false, even when bucket is specified. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The S3 bucket prefix. Logs are stored in the root if not configured. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) -} - -#LBInitParameters: { - // An Access Logs block. Access Logs documented below. - accessLogs?: [...#AccessLogsInitParameters] @go(AccessLogs,[]AccessLogsInitParameters) - - // The ID of the customer owned ipv4 pool to use for this load balancer. - customerOwnedIpv4Pool?: null | string @go(CustomerOwnedIPv4Pool,*string) - - // Determines how the load balancer handles requests that might pose a security risk to an application due to HTTP desync. Valid values are monitor, defensive (default), strictest. - desyncMitigationMode?: null | string @go(DesyncMitigationMode,*string) - - // Indicates whether HTTP headers with header fields that are not valid are removed by the load balancer (true) or routed to targets (false). The default is false. Elastic Load Balancing requires that message header names contain only alphanumeric characters and hyphens. Only valid for Load Balancers of type application. - dropInvalidHeaderFields?: null | bool @go(DropInvalidHeaderFields,*bool) - - // If true, cross-zone load balancing of the load balancer will be enabled. For network and gateway type load balancers, this feature is disabled by default (false). For application load balancer this feature is always enabled (true) and cannot be disabled. Defaults to false. - enableCrossZoneLoadBalancing?: null | bool @go(EnableCrossZoneLoadBalancing,*bool) - - // If true, deletion of the load balancer will be disabled via the AWS API. Defaults to false. - enableDeletionProtection?: null | bool @go(EnableDeletionProtection,*bool) - - // Indicates whether HTTP/2 is enabled in application load balancers. Defaults to true. - enableHttp2?: null | bool @go(EnableHttp2,*bool) - - // Indicates whether the two headers (x-amzn-tls-version and x-amzn-tls-cipher-suite), which contain information about the negotiated TLS version and cipher suite, are added to the client request before sending it to the target. Only valid for Load Balancers of type application. Defaults to false - enableTlsVersionAndCipherSuiteHeaders?: null | bool @go(EnableTLSVersionAndCipherSuiteHeaders,*bool) - - // Indicates whether to allow a WAF-enabled load balancer to route requests to targets if it is unable to forward the request to AWS WAF. Defaults to false. - enableWafFailOpen?: null | bool @go(EnableWafFailOpen,*bool) - - // Indicates whether the X-Forwarded-For header should preserve the source port that the client used to connect to the load balancer in application load balancers. Defaults to false. - enableXffClientPort?: null | bool @go(EnableXffClientPort,*bool) - - // The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 and dualstack. - ipAddressType?: null | string @go(IPAddressType,*string) - - // The time in seconds that the connection is allowed to be idle. Only valid for Load Balancers of type application. Default: 60. - idleTimeout?: null | float64 @go(IdleTimeout,*float64) - - // If true, the LB will be internal. Defaults to false. - internal?: null | bool @go(Internal,*bool) - - // The type of load balancer to create. Possible values are application, gateway, or network. The default value is application. - loadBalancerType?: null | string @go(LoadBalancerType,*string) - - // The name of the LB. This name must be unique within your AWS account, can have a maximum of 32 characters, - // must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. - name?: null | string @go(Name,*string) - - // Indicates whether the Application Load Balancer should preserve the Host header in the HTTP request and send it to the target without any change. Defaults to false. - preserveHostHeader?: null | bool @go(PreserveHostHeader,*bool) - - // A subnet mapping block as documented below. - subnetMapping?: [...#SubnetMappingInitParameters] @go(SubnetMapping,[]SubnetMappingInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Determines how the load balancer modifies the X-Forwarded-For header in the HTTP request before sending the request to the target. The possible values are append, preserve, and remove. Only valid for Load Balancers of type application. The default is append. - xffHeaderProcessingMode?: null | string @go(XffHeaderProcessingMode,*string) -} - -#LBObservation: { - // An Access Logs block. Access Logs documented below. - accessLogs?: [...#AccessLogsObservation] @go(AccessLogs,[]AccessLogsObservation) - - // The ARN of the load balancer (matches id). - arn?: null | string @go(Arn,*string) - - // The ARN suffix for use with CloudWatch Metrics. - arnSuffix?: null | string @go(ArnSuffix,*string) - - // The ID of the customer owned ipv4 pool to use for this load balancer. - customerOwnedIpv4Pool?: null | string @go(CustomerOwnedIPv4Pool,*string) - - // The DNS name of the load balancer. - dnsName?: null | string @go(DNSName,*string) - - // Determines how the load balancer handles requests that might pose a security risk to an application due to HTTP desync. Valid values are monitor, defensive (default), strictest. - desyncMitigationMode?: null | string @go(DesyncMitigationMode,*string) - - // Indicates whether HTTP headers with header fields that are not valid are removed by the load balancer (true) or routed to targets (false). The default is false. Elastic Load Balancing requires that message header names contain only alphanumeric characters and hyphens. Only valid for Load Balancers of type application. - dropInvalidHeaderFields?: null | bool @go(DropInvalidHeaderFields,*bool) - - // If true, cross-zone load balancing of the load balancer will be enabled. For network and gateway type load balancers, this feature is disabled by default (false). For application load balancer this feature is always enabled (true) and cannot be disabled. Defaults to false. - enableCrossZoneLoadBalancing?: null | bool @go(EnableCrossZoneLoadBalancing,*bool) - - // If true, deletion of the load balancer will be disabled via the AWS API. Defaults to false. - enableDeletionProtection?: null | bool @go(EnableDeletionProtection,*bool) - - // Indicates whether HTTP/2 is enabled in application load balancers. Defaults to true. - enableHttp2?: null | bool @go(EnableHttp2,*bool) - - // Indicates whether the two headers (x-amzn-tls-version and x-amzn-tls-cipher-suite), which contain information about the negotiated TLS version and cipher suite, are added to the client request before sending it to the target. Only valid for Load Balancers of type application. Defaults to false - enableTlsVersionAndCipherSuiteHeaders?: null | bool @go(EnableTLSVersionAndCipherSuiteHeaders,*bool) - - // Indicates whether to allow a WAF-enabled load balancer to route requests to targets if it is unable to forward the request to AWS WAF. Defaults to false. - enableWafFailOpen?: null | bool @go(EnableWafFailOpen,*bool) - - // Indicates whether the X-Forwarded-For header should preserve the source port that the client used to connect to the load balancer in application load balancers. Defaults to false. - enableXffClientPort?: null | bool @go(EnableXffClientPort,*bool) - - // The ARN of the load balancer (matches arn). - id?: null | string @go(ID,*string) - - // The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 and dualstack. - ipAddressType?: null | string @go(IPAddressType,*string) - - // The time in seconds that the connection is allowed to be idle. Only valid for Load Balancers of type application. Default: 60. - idleTimeout?: null | float64 @go(IdleTimeout,*float64) - - // If true, the LB will be internal. Defaults to false. - internal?: null | bool @go(Internal,*bool) - - // The type of load balancer to create. Possible values are application, gateway, or network. The default value is application. - loadBalancerType?: null | string @go(LoadBalancerType,*string) - - // The name of the LB. This name must be unique within your AWS account, can have a maximum of 32 characters, - // must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. - name?: null | string @go(Name,*string) - - // Indicates whether the Application Load Balancer should preserve the Host header in the HTTP request and send it to the target without any change. Defaults to false. - preserveHostHeader?: null | bool @go(PreserveHostHeader,*bool) - - // A list of security group IDs to assign to the LB. Only valid for Load Balancers of type application. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // A subnet mapping block as documented below. - subnetMapping?: [...#SubnetMappingObservation] @go(SubnetMapping,[]SubnetMappingObservation) - - // A list of subnet IDs to attach to the LB. Subnets - // cannot be updated for Load Balancers of type network. Changing this value - // for load balancers of type network will force a recreation of the resource. - subnets?: [...null | string] @go(Subnets,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ARN of the load balancer (matches arn). - vpcId?: null | string @go(VPCID,*string) - - // Determines how the load balancer modifies the X-Forwarded-For header in the HTTP request before sending the request to the target. The possible values are append, preserve, and remove. Only valid for Load Balancers of type application. The default is append. - xffHeaderProcessingMode?: null | string @go(XffHeaderProcessingMode,*string) - - // The canonical hosted zone ID of the load balancer (to be used in a Route 53 Alias record). - zoneId?: null | string @go(ZoneID,*string) -} - -#LBParameters: { - // An Access Logs block. Access Logs documented below. - // +kubebuilder:validation:Optional - accessLogs?: [...#AccessLogsParameters] @go(AccessLogs,[]AccessLogsParameters) - - // The ID of the customer owned ipv4 pool to use for this load balancer. - // +kubebuilder:validation:Optional - customerOwnedIpv4Pool?: null | string @go(CustomerOwnedIPv4Pool,*string) - - // Determines how the load balancer handles requests that might pose a security risk to an application due to HTTP desync. Valid values are monitor, defensive (default), strictest. - // +kubebuilder:validation:Optional - desyncMitigationMode?: null | string @go(DesyncMitigationMode,*string) - - // Indicates whether HTTP headers with header fields that are not valid are removed by the load balancer (true) or routed to targets (false). The default is false. Elastic Load Balancing requires that message header names contain only alphanumeric characters and hyphens. Only valid for Load Balancers of type application. - // +kubebuilder:validation:Optional - dropInvalidHeaderFields?: null | bool @go(DropInvalidHeaderFields,*bool) - - // If true, cross-zone load balancing of the load balancer will be enabled. For network and gateway type load balancers, this feature is disabled by default (false). For application load balancer this feature is always enabled (true) and cannot be disabled. Defaults to false. - // +kubebuilder:validation:Optional - enableCrossZoneLoadBalancing?: null | bool @go(EnableCrossZoneLoadBalancing,*bool) - - // If true, deletion of the load balancer will be disabled via the AWS API. Defaults to false. - // +kubebuilder:validation:Optional - enableDeletionProtection?: null | bool @go(EnableDeletionProtection,*bool) - - // Indicates whether HTTP/2 is enabled in application load balancers. Defaults to true. - // +kubebuilder:validation:Optional - enableHttp2?: null | bool @go(EnableHttp2,*bool) - - // Indicates whether the two headers (x-amzn-tls-version and x-amzn-tls-cipher-suite), which contain information about the negotiated TLS version and cipher suite, are added to the client request before sending it to the target. Only valid for Load Balancers of type application. Defaults to false - // +kubebuilder:validation:Optional - enableTlsVersionAndCipherSuiteHeaders?: null | bool @go(EnableTLSVersionAndCipherSuiteHeaders,*bool) - - // Indicates whether to allow a WAF-enabled load balancer to route requests to targets if it is unable to forward the request to AWS WAF. Defaults to false. - // +kubebuilder:validation:Optional - enableWafFailOpen?: null | bool @go(EnableWafFailOpen,*bool) - - // Indicates whether the X-Forwarded-For header should preserve the source port that the client used to connect to the load balancer in application load balancers. Defaults to false. - // +kubebuilder:validation:Optional - enableXffClientPort?: null | bool @go(EnableXffClientPort,*bool) - - // The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 and dualstack. - // +kubebuilder:validation:Optional - ipAddressType?: null | string @go(IPAddressType,*string) - - // The time in seconds that the connection is allowed to be idle. Only valid for Load Balancers of type application. Default: 60. - // +kubebuilder:validation:Optional - idleTimeout?: null | float64 @go(IdleTimeout,*float64) - - // If true, the LB will be internal. Defaults to false. - // +kubebuilder:validation:Optional - internal?: null | bool @go(Internal,*bool) - - // The type of load balancer to create. Possible values are application, gateway, or network. The default value is application. - // +kubebuilder:validation:Optional - loadBalancerType?: null | string @go(LoadBalancerType,*string) - - // The name of the LB. This name must be unique within your AWS account, can have a maximum of 32 characters, - // must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Indicates whether the Application Load Balancer should preserve the Host header in the HTTP request and send it to the target without any change. Defaults to false. - // +kubebuilder:validation:Optional - preserveHostHeader?: null | bool @go(PreserveHostHeader,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to SecurityGroup in ec2 to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupRefs?: [...v1.#Reference] @go(SecurityGroupRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupSelector?: null | v1.#Selector @go(SecurityGroupSelector,*v1.Selector) - - // A list of security group IDs to assign to the LB. Only valid for Load Balancers of type application. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupSelector - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // A subnet mapping block as documented below. - // +kubebuilder:validation:Optional - subnetMapping?: [...#SubnetMappingParameters] @go(SubnetMapping,[]SubnetMappingParameters) - - // References to Subnet in ec2 to populate subnets. - // +kubebuilder:validation:Optional - subnetRefs?: [...v1.#Reference] @go(SubnetRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnets. - // +kubebuilder:validation:Optional - subnetSelector?: null | v1.#Selector @go(SubnetSelector,*v1.Selector) - - // A list of subnet IDs to attach to the LB. Subnets - // cannot be updated for Load Balancers of type network. Changing this value - // for load balancers of type network will force a recreation of the resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetRefs - // +crossplane:generate:reference:selectorFieldName=SubnetSelector - // +kubebuilder:validation:Optional - subnets?: [...null | string] @go(Subnets,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Determines how the load balancer modifies the X-Forwarded-For header in the HTTP request before sending the request to the target. The possible values are append, preserve, and remove. Only valid for Load Balancers of type application. The default is append. - // +kubebuilder:validation:Optional - xffHeaderProcessingMode?: null | string @go(XffHeaderProcessingMode,*string) -} - -#SubnetMappingInitParameters: { - // The allocation ID of the Elastic IP address for an internet-facing load balancer. - allocationId?: null | string @go(AllocationID,*string) - - // The IPv6 address. You associate IPv6 CIDR blocks with your VPC and choose the subnets where you launch both internet-facing and internal Application Load Balancers or Network Load Balancers. - ipv6Address?: null | string @go(IPv6Address,*string) - - // The private IPv4 address for an internal load balancer. - privateIpv4Address?: null | string @go(PrivateIPv4Address,*string) -} - -#SubnetMappingObservation: { - // The allocation ID of the Elastic IP address for an internet-facing load balancer. - allocationId?: null | string @go(AllocationID,*string) - - // The IPv6 address. You associate IPv6 CIDR blocks with your VPC and choose the subnets where you launch both internet-facing and internal Application Load Balancers or Network Load Balancers. - ipv6Address?: null | string @go(IPv6Address,*string) - - // ID of the Outpost containing the load balancer. - outpostId?: null | string @go(OutpostID,*string) - - // The private IPv4 address for an internal load balancer. - privateIpv4Address?: null | string @go(PrivateIPv4Address,*string) - - // ID of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone. - subnetId?: null | string @go(SubnetID,*string) -} - -#SubnetMappingParameters: { - // The allocation ID of the Elastic IP address for an internet-facing load balancer. - // +kubebuilder:validation:Optional - allocationId?: null | string @go(AllocationID,*string) - - // The IPv6 address. You associate IPv6 CIDR blocks with your VPC and choose the subnets where you launch both internet-facing and internal Application Load Balancers or Network Load Balancers. - // +kubebuilder:validation:Optional - ipv6Address?: null | string @go(IPv6Address,*string) - - // The private IPv4 address for an internal load balancer. - // +kubebuilder:validation:Optional - privateIpv4Address?: null | string @go(PrivateIPv4Address,*string) - - // ID of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) -} - -// LBSpec defines the desired state of LB -#LBSpec: { - v1.#ResourceSpec - forProvider: #LBParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LBInitParameters @go(InitProvider) -} - -// LBStatus defines the observed state of LB. -#LBStatus: { - v1.#ResourceStatus - atProvider?: #LBObservation @go(AtProvider) -} - -// LB is the Schema for the LBs API. Provides a Load Balancer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LB: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #LBSpec @go(Spec) - status?: #LBStatus @go(Status) -} - -// LBList contains a list of LBs -#LBList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LB] @go(Items,[]LB) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lblistener_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lblistener_types_go_gen.cue deleted file mode 100644 index 4ce7c13..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lblistener_types_go_gen.cue +++ /dev/null @@ -1,637 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elbv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AuthenticateCognitoInitParameters: { - // Query parameters to include in the redirect request to the authorization endpoint. Max: 10. Detailed below. - authenticationRequestExtraParams?: {[string]: null | string} @go(AuthenticationRequestExtraParams,map[string]*string) - - // Behavior if the user is not authenticated. Valid values are deny, allow and authenticate. - onUnauthenticatedRequest?: null | string @go(OnUnauthenticatedRequest,*string) - - // Set of user claims to be requested from the IdP. - scope?: null | string @go(Scope,*string) - - // Name of the cookie used to maintain session information. - sessionCookieName?: null | string @go(SessionCookieName,*string) - - // Maximum duration of the authentication session, in seconds. - sessionTimeout?: null | float64 @go(SessionTimeout,*float64) - - // ARN of the Cognito user pool. - userPoolArn?: null | string @go(UserPoolArn,*string) - - // ID of the Cognito user pool client. - userPoolClientId?: null | string @go(UserPoolClientID,*string) - - // Domain prefix or fully-qualified domain name of the Cognito user pool. - userPoolDomain?: null | string @go(UserPoolDomain,*string) -} - -#AuthenticateCognitoObservation: { - // Query parameters to include in the redirect request to the authorization endpoint. Max: 10. Detailed below. - authenticationRequestExtraParams?: {[string]: null | string} @go(AuthenticationRequestExtraParams,map[string]*string) - - // Behavior if the user is not authenticated. Valid values are deny, allow and authenticate. - onUnauthenticatedRequest?: null | string @go(OnUnauthenticatedRequest,*string) - - // Set of user claims to be requested from the IdP. - scope?: null | string @go(Scope,*string) - - // Name of the cookie used to maintain session information. - sessionCookieName?: null | string @go(SessionCookieName,*string) - - // Maximum duration of the authentication session, in seconds. - sessionTimeout?: null | float64 @go(SessionTimeout,*float64) - - // ARN of the Cognito user pool. - userPoolArn?: null | string @go(UserPoolArn,*string) - - // ID of the Cognito user pool client. - userPoolClientId?: null | string @go(UserPoolClientID,*string) - - // Domain prefix or fully-qualified domain name of the Cognito user pool. - userPoolDomain?: null | string @go(UserPoolDomain,*string) -} - -#AuthenticateCognitoParameters: { - // Query parameters to include in the redirect request to the authorization endpoint. Max: 10. Detailed below. - // +kubebuilder:validation:Optional - authenticationRequestExtraParams?: {[string]: null | string} @go(AuthenticationRequestExtraParams,map[string]*string) - - // Behavior if the user is not authenticated. Valid values are deny, allow and authenticate. - // +kubebuilder:validation:Optional - onUnauthenticatedRequest?: null | string @go(OnUnauthenticatedRequest,*string) - - // Set of user claims to be requested from the IdP. - // +kubebuilder:validation:Optional - scope?: null | string @go(Scope,*string) - - // Name of the cookie used to maintain session information. - // +kubebuilder:validation:Optional - sessionCookieName?: null | string @go(SessionCookieName,*string) - - // Maximum duration of the authentication session, in seconds. - // +kubebuilder:validation:Optional - sessionTimeout?: null | float64 @go(SessionTimeout,*float64) - - // ARN of the Cognito user pool. - // +kubebuilder:validation:Optional - userPoolArn?: null | string @go(UserPoolArn,*string) - - // ID of the Cognito user pool client. - // +kubebuilder:validation:Optional - userPoolClientId?: null | string @go(UserPoolClientID,*string) - - // Domain prefix or fully-qualified domain name of the Cognito user pool. - // +kubebuilder:validation:Optional - userPoolDomain?: null | string @go(UserPoolDomain,*string) -} - -#AuthenticateOidcInitParameters: { - // Query parameters to include in the redirect request to the authorization endpoint. Max: 10. - authenticationRequestExtraParams?: {[string]: null | string} @go(AuthenticationRequestExtraParams,map[string]*string) - - // Authorization endpoint of the IdP. - authorizationEndpoint?: null | string @go(AuthorizationEndpoint,*string) - - // OAuth 2.0 client identifier. - clientId?: null | string @go(ClientID,*string) - - // OIDC issuer identifier of the IdP. - issuer?: null | string @go(Issuer,*string) - - // Behavior if the user is not authenticated. Valid values: deny, allow and authenticate - onUnauthenticatedRequest?: null | string @go(OnUnauthenticatedRequest,*string) - - // Set of user claims to be requested from the IdP. - scope?: null | string @go(Scope,*string) - - // Name of the cookie used to maintain session information. - sessionCookieName?: null | string @go(SessionCookieName,*string) - - // Maximum duration of the authentication session, in seconds. - sessionTimeout?: null | float64 @go(SessionTimeout,*float64) - - // Token endpoint of the IdP. - tokenEndpoint?: null | string @go(TokenEndpoint,*string) - - // User info endpoint of the IdP. - userInfoEndpoint?: null | string @go(UserInfoEndpoint,*string) -} - -#AuthenticateOidcObservation: { - // Query parameters to include in the redirect request to the authorization endpoint. Max: 10. - authenticationRequestExtraParams?: {[string]: null | string} @go(AuthenticationRequestExtraParams,map[string]*string) - - // Authorization endpoint of the IdP. - authorizationEndpoint?: null | string @go(AuthorizationEndpoint,*string) - - // OAuth 2.0 client identifier. - clientId?: null | string @go(ClientID,*string) - - // OIDC issuer identifier of the IdP. - issuer?: null | string @go(Issuer,*string) - - // Behavior if the user is not authenticated. Valid values: deny, allow and authenticate - onUnauthenticatedRequest?: null | string @go(OnUnauthenticatedRequest,*string) - - // Set of user claims to be requested from the IdP. - scope?: null | string @go(Scope,*string) - - // Name of the cookie used to maintain session information. - sessionCookieName?: null | string @go(SessionCookieName,*string) - - // Maximum duration of the authentication session, in seconds. - sessionTimeout?: null | float64 @go(SessionTimeout,*float64) - - // Token endpoint of the IdP. - tokenEndpoint?: null | string @go(TokenEndpoint,*string) - - // User info endpoint of the IdP. - userInfoEndpoint?: null | string @go(UserInfoEndpoint,*string) -} - -#AuthenticateOidcParameters: { - // Query parameters to include in the redirect request to the authorization endpoint. Max: 10. - // +kubebuilder:validation:Optional - authenticationRequestExtraParams?: {[string]: null | string} @go(AuthenticationRequestExtraParams,map[string]*string) - - // Authorization endpoint of the IdP. - // +kubebuilder:validation:Optional - authorizationEndpoint?: null | string @go(AuthorizationEndpoint,*string) - - // OAuth 2.0 client identifier. - // +kubebuilder:validation:Optional - clientId?: null | string @go(ClientID,*string) - - // OAuth 2.0 client secret. - // +kubebuilder:validation:Required - clientSecretSecretRef: v1.#SecretKeySelector @go(ClientSecretSecretRef) - - // OIDC issuer identifier of the IdP. - // +kubebuilder:validation:Optional - issuer?: null | string @go(Issuer,*string) - - // Behavior if the user is not authenticated. Valid values: deny, allow and authenticate - // +kubebuilder:validation:Optional - onUnauthenticatedRequest?: null | string @go(OnUnauthenticatedRequest,*string) - - // Set of user claims to be requested from the IdP. - // +kubebuilder:validation:Optional - scope?: null | string @go(Scope,*string) - - // Name of the cookie used to maintain session information. - // +kubebuilder:validation:Optional - sessionCookieName?: null | string @go(SessionCookieName,*string) - - // Maximum duration of the authentication session, in seconds. - // +kubebuilder:validation:Optional - sessionTimeout?: null | float64 @go(SessionTimeout,*float64) - - // Token endpoint of the IdP. - // +kubebuilder:validation:Optional - tokenEndpoint?: null | string @go(TokenEndpoint,*string) - - // User info endpoint of the IdP. - // +kubebuilder:validation:Optional - userInfoEndpoint?: null | string @go(UserInfoEndpoint,*string) -} - -#DefaultActionInitParameters: { - // Configuration block for using Amazon Cognito to authenticate users. Specify only when type is authenticate-cognito. Detailed below. - authenticateCognito?: [...#AuthenticateCognitoInitParameters] @go(AuthenticateCognito,[]AuthenticateCognitoInitParameters) - - // Configuration block for an identity provider that is compliant with OpenID Connect (OIDC). Specify only when type is authenticate-oidc. Detailed below. - authenticateOidc?: [...#AuthenticateOidcInitParameters] @go(AuthenticateOidc,[]AuthenticateOidcInitParameters) - - // Information for creating an action that returns a custom HTTP response. Required if type is fixed-response. - fixedResponse?: [...#FixedResponseInitParameters] @go(FixedResponse,[]FixedResponseInitParameters) - - // Configuration block for creating an action that distributes requests among one or more target groups. Specify only if type is forward. If you specify both forward block and target_group_arn attribute, you can specify only one target group using forward and it must be the same target group specified in target_group_arn. Detailed below. - forward?: [...#ForwardInitParameters] @go(Forward,[]ForwardInitParameters) - - // Order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first. Valid values are between 1 and 50000. - order?: null | float64 @go(Order,*float64) - - // Configuration block for creating a redirect action. Required if type is redirect. Detailed below. - redirect?: [...#RedirectInitParameters] @go(Redirect,[]RedirectInitParameters) - - // Type of routing action. Valid values are forward, redirect, fixed-response, authenticate-cognito and authenticate-oidc. - type?: null | string @go(Type,*string) -} - -#DefaultActionObservation: { - // Configuration block for using Amazon Cognito to authenticate users. Specify only when type is authenticate-cognito. Detailed below. - authenticateCognito?: [...#AuthenticateCognitoObservation] @go(AuthenticateCognito,[]AuthenticateCognitoObservation) - - // Configuration block for an identity provider that is compliant with OpenID Connect (OIDC). Specify only when type is authenticate-oidc. Detailed below. - authenticateOidc?: [...#AuthenticateOidcObservation] @go(AuthenticateOidc,[]AuthenticateOidcObservation) - - // Information for creating an action that returns a custom HTTP response. Required if type is fixed-response. - fixedResponse?: [...#FixedResponseObservation] @go(FixedResponse,[]FixedResponseObservation) - - // Configuration block for creating an action that distributes requests among one or more target groups. Specify only if type is forward. If you specify both forward block and target_group_arn attribute, you can specify only one target group using forward and it must be the same target group specified in target_group_arn. Detailed below. - forward?: [...#ForwardObservation] @go(Forward,[]ForwardObservation) - - // Order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first. Valid values are between 1 and 50000. - order?: null | float64 @go(Order,*float64) - - // Configuration block for creating a redirect action. Required if type is redirect. Detailed below. - redirect?: [...#RedirectObservation] @go(Redirect,[]RedirectObservation) - - // ARN of the Target Group to which to route traffic. Specify only if type is forward and you want to route to a single target group. To route to one or more target groups, use a forward block instead. - targetGroupArn?: null | string @go(TargetGroupArn,*string) - - // Type of routing action. Valid values are forward, redirect, fixed-response, authenticate-cognito and authenticate-oidc. - type?: null | string @go(Type,*string) -} - -#DefaultActionParameters: { - // Configuration block for using Amazon Cognito to authenticate users. Specify only when type is authenticate-cognito. Detailed below. - // +kubebuilder:validation:Optional - authenticateCognito?: [...#AuthenticateCognitoParameters] @go(AuthenticateCognito,[]AuthenticateCognitoParameters) - - // Configuration block for an identity provider that is compliant with OpenID Connect (OIDC). Specify only when type is authenticate-oidc. Detailed below. - // +kubebuilder:validation:Optional - authenticateOidc?: [...#AuthenticateOidcParameters] @go(AuthenticateOidc,[]AuthenticateOidcParameters) - - // Information for creating an action that returns a custom HTTP response. Required if type is fixed-response. - // +kubebuilder:validation:Optional - fixedResponse?: [...#FixedResponseParameters] @go(FixedResponse,[]FixedResponseParameters) - - // Configuration block for creating an action that distributes requests among one or more target groups. Specify only if type is forward. If you specify both forward block and target_group_arn attribute, you can specify only one target group using forward and it must be the same target group specified in target_group_arn. Detailed below. - // +kubebuilder:validation:Optional - forward?: [...#ForwardParameters] @go(Forward,[]ForwardParameters) - - // Order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first. Valid values are between 1 and 50000. - // +kubebuilder:validation:Optional - order?: null | float64 @go(Order,*float64) - - // Configuration block for creating a redirect action. Required if type is redirect. Detailed below. - // +kubebuilder:validation:Optional - redirect?: [...#RedirectParameters] @go(Redirect,[]RedirectParameters) - - // ARN of the Target Group to which to route traffic. Specify only if type is forward and you want to route to a single target group. To route to one or more target groups, use a forward block instead. - // +crossplane:generate:reference:type=LBTargetGroup - // +kubebuilder:validation:Optional - targetGroupArn?: null | string @go(TargetGroupArn,*string) - - // Reference to a LBTargetGroup to populate targetGroupArn. - // +kubebuilder:validation:Optional - targetGroupArnRef?: null | v1.#Reference @go(TargetGroupArnRef,*v1.Reference) - - // Selector for a LBTargetGroup to populate targetGroupArn. - // +kubebuilder:validation:Optional - targetGroupArnSelector?: null | v1.#Selector @go(TargetGroupArnSelector,*v1.Selector) - - // Type of routing action. Valid values are forward, redirect, fixed-response, authenticate-cognito and authenticate-oidc. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#FixedResponseInitParameters: { - // Content type. Valid values are text/plain, text/css, text/html, application/javascript and application/json. - contentType?: null | string @go(ContentType,*string) - - // Message body. - messageBody?: null | string @go(MessageBody,*string) - - // HTTP response code. Valid values are 2XX, 4XX, or 5XX. - statusCode?: null | string @go(StatusCode,*string) -} - -#FixedResponseObservation: { - // Content type. Valid values are text/plain, text/css, text/html, application/javascript and application/json. - contentType?: null | string @go(ContentType,*string) - - // Message body. - messageBody?: null | string @go(MessageBody,*string) - - // HTTP response code. Valid values are 2XX, 4XX, or 5XX. - statusCode?: null | string @go(StatusCode,*string) -} - -#FixedResponseParameters: { - // Content type. Valid values are text/plain, text/css, text/html, application/javascript and application/json. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Message body. - // +kubebuilder:validation:Optional - messageBody?: null | string @go(MessageBody,*string) - - // HTTP response code. Valid values are 2XX, 4XX, or 5XX. - // +kubebuilder:validation:Optional - statusCode?: null | string @go(StatusCode,*string) -} - -#ForwardInitParameters: { - // Configuration block for target group stickiness for the rule. Detailed below. - stickiness?: [...#StickinessInitParameters] @go(Stickiness,[]StickinessInitParameters) - - // Set of 1-5 target group blocks. Detailed below. - targetGroup?: [...#TargetGroupInitParameters] @go(TargetGroup,[]TargetGroupInitParameters) -} - -#ForwardObservation: { - // Configuration block for target group stickiness for the rule. Detailed below. - stickiness?: [...#StickinessObservation] @go(Stickiness,[]StickinessObservation) - - // Set of 1-5 target group blocks. Detailed below. - targetGroup?: [...#TargetGroupObservation] @go(TargetGroup,[]TargetGroupObservation) -} - -#ForwardParameters: { - // Configuration block for target group stickiness for the rule. Detailed below. - // +kubebuilder:validation:Optional - stickiness?: [...#StickinessParameters] @go(Stickiness,[]StickinessParameters) - - // Set of 1-5 target group blocks. Detailed below. - // +kubebuilder:validation:Optional - targetGroup: [...#TargetGroupParameters] @go(TargetGroup,[]TargetGroupParameters) -} - -#LBListenerInitParameters: { - // Name of the Application-Layer Protocol Negotiation (ALPN) policy. Can be set if protocol is TLS. Valid values are HTTP1Only, HTTP2Only, HTTP2Optional, HTTP2Preferred, and None. - alpnPolicy?: null | string @go(AlpnPolicy,*string) - - // ARN of the default SSL server certificate. Exactly one certificate is required if the protocol is HTTPS. For adding additional SSL certificates, see the aws_lb_listener_certificate resource. - certificateArn?: null | string @go(CertificateArn,*string) - - // Configuration block for default actions. Detailed below. - defaultAction?: [...#DefaultActionInitParameters] @go(DefaultAction,[]DefaultActionInitParameters) - - // Port on which the load balancer is listening. Not valid for Gateway Load Balancers. - port?: null | float64 @go(Port,*float64) - - // Protocol for connections from clients to the load balancer. For Application Load Balancers, valid values are HTTP and HTTPS, with a default of HTTP. For Network Load Balancers, valid values are TCP, TLS, UDP, and TCP_UDP. Not valid to use UDP or TCP_UDP if dual-stack mode is enabled. Not valid for Gateway Load Balancers. - protocol?: null | string @go(Protocol,*string) - - // Name of the SSL Policy for the listener. Required if protocol is HTTPS or TLS. - sslPolicy?: null | string @go(SSLPolicy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#LBListenerObservation: { - // Name of the Application-Layer Protocol Negotiation (ALPN) policy. Can be set if protocol is TLS. Valid values are HTTP1Only, HTTP2Only, HTTP2Optional, HTTP2Preferred, and None. - alpnPolicy?: null | string @go(AlpnPolicy,*string) - - // ARN of the listener (matches id). - arn?: null | string @go(Arn,*string) - - // ARN of the default SSL server certificate. Exactly one certificate is required if the protocol is HTTPS. For adding additional SSL certificates, see the aws_lb_listener_certificate resource. - certificateArn?: null | string @go(CertificateArn,*string) - - // Configuration block for default actions. Detailed below. - defaultAction?: [...#DefaultActionObservation] @go(DefaultAction,[]DefaultActionObservation) - - // ARN of the listener (matches arn). - id?: null | string @go(ID,*string) - - // ARN of the load balancer. - loadBalancerArn?: null | string @go(LoadBalancerArn,*string) - - // Port on which the load balancer is listening. Not valid for Gateway Load Balancers. - port?: null | float64 @go(Port,*float64) - - // Protocol for connections from clients to the load balancer. For Application Load Balancers, valid values are HTTP and HTTPS, with a default of HTTP. For Network Load Balancers, valid values are TCP, TLS, UDP, and TCP_UDP. Not valid to use UDP or TCP_UDP if dual-stack mode is enabled. Not valid for Gateway Load Balancers. - protocol?: null | string @go(Protocol,*string) - - // Name of the SSL Policy for the listener. Required if protocol is HTTPS or TLS. - sslPolicy?: null | string @go(SSLPolicy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#LBListenerParameters: { - // Name of the Application-Layer Protocol Negotiation (ALPN) policy. Can be set if protocol is TLS. Valid values are HTTP1Only, HTTP2Only, HTTP2Optional, HTTP2Preferred, and None. - // +kubebuilder:validation:Optional - alpnPolicy?: null | string @go(AlpnPolicy,*string) - - // ARN of the default SSL server certificate. Exactly one certificate is required if the protocol is HTTPS. For adding additional SSL certificates, see the aws_lb_listener_certificate resource. - // +kubebuilder:validation:Optional - certificateArn?: null | string @go(CertificateArn,*string) - - // Configuration block for default actions. Detailed below. - // +kubebuilder:validation:Optional - defaultAction?: [...#DefaultActionParameters] @go(DefaultAction,[]DefaultActionParameters) - - // ARN of the load balancer. - // +crossplane:generate:reference:type=LB - // +kubebuilder:validation:Optional - loadBalancerArn?: null | string @go(LoadBalancerArn,*string) - - // Reference to a LB to populate loadBalancerArn. - // +kubebuilder:validation:Optional - loadBalancerArnRef?: null | v1.#Reference @go(LoadBalancerArnRef,*v1.Reference) - - // Selector for a LB to populate loadBalancerArn. - // +kubebuilder:validation:Optional - loadBalancerArnSelector?: null | v1.#Selector @go(LoadBalancerArnSelector,*v1.Selector) - - // Port on which the load balancer is listening. Not valid for Gateway Load Balancers. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Protocol for connections from clients to the load balancer. For Application Load Balancers, valid values are HTTP and HTTPS, with a default of HTTP. For Network Load Balancers, valid values are TCP, TLS, UDP, and TCP_UDP. Not valid to use UDP or TCP_UDP if dual-stack mode is enabled. Not valid for Gateway Load Balancers. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Name of the SSL Policy for the listener. Required if protocol is HTTPS or TLS. - // +kubebuilder:validation:Optional - sslPolicy?: null | string @go(SSLPolicy,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RedirectInitParameters: { - // Hostname. This component is not percent-encoded. The hostname can contain #{host}. Defaults to #{host}. - host?: null | string @go(Host,*string) - - // Absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to /#{path}. - path?: null | string @go(Path,*string) - - // Port. Specify a value from 1 to 65535 or #{port}. Defaults to #{port}. - port?: null | string @go(Port,*string) - - // Protocol. Valid values are HTTP, HTTPS, or #{protocol}. Defaults to #{protocol}. - protocol?: null | string @go(Protocol,*string) - - // Query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to #{query}. - query?: null | string @go(Query,*string) - - // HTTP redirect code. The redirect is either permanent (HTTP_301) or temporary (HTTP_302). - statusCode?: null | string @go(StatusCode,*string) -} - -#RedirectObservation: { - // Hostname. This component is not percent-encoded. The hostname can contain #{host}. Defaults to #{host}. - host?: null | string @go(Host,*string) - - // Absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to /#{path}. - path?: null | string @go(Path,*string) - - // Port. Specify a value from 1 to 65535 or #{port}. Defaults to #{port}. - port?: null | string @go(Port,*string) - - // Protocol. Valid values are HTTP, HTTPS, or #{protocol}. Defaults to #{protocol}. - protocol?: null | string @go(Protocol,*string) - - // Query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to #{query}. - query?: null | string @go(Query,*string) - - // HTTP redirect code. The redirect is either permanent (HTTP_301) or temporary (HTTP_302). - statusCode?: null | string @go(StatusCode,*string) -} - -#RedirectParameters: { - // Hostname. This component is not percent-encoded. The hostname can contain #{host}. Defaults to #{host}. - // +kubebuilder:validation:Optional - host?: null | string @go(Host,*string) - - // Absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to /#{path}. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // Port. Specify a value from 1 to 65535 or #{port}. Defaults to #{port}. - // +kubebuilder:validation:Optional - port?: null | string @go(Port,*string) - - // Protocol. Valid values are HTTP, HTTPS, or #{protocol}. Defaults to #{protocol}. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to #{query}. - // +kubebuilder:validation:Optional - query?: null | string @go(Query,*string) - - // HTTP redirect code. The redirect is either permanent (HTTP_301) or temporary (HTTP_302). - // +kubebuilder:validation:Optional - statusCode?: null | string @go(StatusCode,*string) -} - -#StickinessInitParameters: { - // Time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). - duration?: null | float64 @go(Duration,*float64) - - // Whether target group stickiness is enabled. Default is false. - enabled?: null | bool @go(Enabled,*bool) -} - -#StickinessObservation: { - // Time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). - duration?: null | float64 @go(Duration,*float64) - - // Whether target group stickiness is enabled. Default is false. - enabled?: null | bool @go(Enabled,*bool) -} - -#StickinessParameters: { - // Time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). - // +kubebuilder:validation:Optional - duration?: null | float64 @go(Duration,*float64) - - // Whether target group stickiness is enabled. Default is false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#TargetGroupInitParameters: { - // Weight. The range is 0 to 999. - weight?: null | float64 @go(Weight,*float64) -} - -#TargetGroupObservation: { - // ARN of the target group. - arn?: null | string @go(Arn,*string) - - // Weight. The range is 0 to 999. - weight?: null | float64 @go(Weight,*float64) -} - -#TargetGroupParameters: { - // ARN of the target group. - // +crossplane:generate:reference:type=LBTargetGroup - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // Reference to a LBTargetGroup to populate arn. - // +kubebuilder:validation:Optional - arnRef?: null | v1.#Reference @go(ArnRef,*v1.Reference) - - // Selector for a LBTargetGroup to populate arn. - // +kubebuilder:validation:Optional - arnSelector?: null | v1.#Selector @go(ArnSelector,*v1.Selector) - - // Weight. The range is 0 to 999. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -// LBListenerSpec defines the desired state of LBListener -#LBListenerSpec: { - v1.#ResourceSpec - forProvider: #LBListenerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LBListenerInitParameters @go(InitProvider) -} - -// LBListenerStatus defines the observed state of LBListener. -#LBListenerStatus: { - v1.#ResourceStatus - atProvider?: #LBListenerObservation @go(AtProvider) -} - -// LBListener is the Schema for the LBListeners API. Provides a Load Balancer Listener resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LBListener: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.defaultAction) || (has(self.initProvider) && has(self.initProvider.defaultAction))",message="spec.forProvider.defaultAction is a required parameter" - spec: #LBListenerSpec @go(Spec) - status?: #LBListenerStatus @go(Status) -} - -// LBListenerList contains a list of LBListeners -#LBListenerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LBListener] @go(Items,[]LBListener) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lblistenerrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lblistenerrule_types_go_gen.cue deleted file mode 100644 index e338e20..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lblistenerrule_types_go_gen.cue +++ /dev/null @@ -1,809 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elbv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionAuthenticateCognitoInitParameters: { - // The query parameters to include in the redirect request to the authorization endpoint. Max: 10. - authenticationRequestExtraParams?: {[string]: null | string} @go(AuthenticationRequestExtraParams,map[string]*string) - - // The behavior if the user is not authenticated. Valid values: deny, allow and authenticate - onUnauthenticatedRequest?: null | string @go(OnUnauthenticatedRequest,*string) - - // The set of user claims to be requested from the IdP. - scope?: null | string @go(Scope,*string) - - // The name of the cookie used to maintain session information. - sessionCookieName?: null | string @go(SessionCookieName,*string) - - // The maximum duration of the authentication session, in seconds. - sessionTimeout?: null | float64 @go(SessionTimeout,*float64) -} - -#ActionAuthenticateCognitoObservation: { - // The query parameters to include in the redirect request to the authorization endpoint. Max: 10. - authenticationRequestExtraParams?: {[string]: null | string} @go(AuthenticationRequestExtraParams,map[string]*string) - - // The behavior if the user is not authenticated. Valid values: deny, allow and authenticate - onUnauthenticatedRequest?: null | string @go(OnUnauthenticatedRequest,*string) - - // The set of user claims to be requested from the IdP. - scope?: null | string @go(Scope,*string) - - // The name of the cookie used to maintain session information. - sessionCookieName?: null | string @go(SessionCookieName,*string) - - // The maximum duration of the authentication session, in seconds. - sessionTimeout?: null | float64 @go(SessionTimeout,*float64) - - // The ARN of the Cognito user pool. - userPoolArn?: null | string @go(UserPoolArn,*string) - - // The ID of the Cognito user pool client. - userPoolClientId?: null | string @go(UserPoolClientID,*string) - - // The domain prefix or fully-qualified domain name of the Cognito user pool. - userPoolDomain?: null | string @go(UserPoolDomain,*string) -} - -#ActionAuthenticateCognitoParameters: { - // The query parameters to include in the redirect request to the authorization endpoint. Max: 10. - // +kubebuilder:validation:Optional - authenticationRequestExtraParams?: {[string]: null | string} @go(AuthenticationRequestExtraParams,map[string]*string) - - // The behavior if the user is not authenticated. Valid values: deny, allow and authenticate - // +kubebuilder:validation:Optional - onUnauthenticatedRequest?: null | string @go(OnUnauthenticatedRequest,*string) - - // The set of user claims to be requested from the IdP. - // +kubebuilder:validation:Optional - scope?: null | string @go(Scope,*string) - - // The name of the cookie used to maintain session information. - // +kubebuilder:validation:Optional - sessionCookieName?: null | string @go(SessionCookieName,*string) - - // The maximum duration of the authentication session, in seconds. - // +kubebuilder:validation:Optional - sessionTimeout?: null | float64 @go(SessionTimeout,*float64) - - // The ARN of the Cognito user pool. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPool - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - userPoolArn?: null | string @go(UserPoolArn,*string) - - // Reference to a UserPool in cognitoidp to populate userPoolArn. - // +kubebuilder:validation:Optional - userPoolArnRef?: null | v1.#Reference @go(UserPoolArnRef,*v1.Reference) - - // Selector for a UserPool in cognitoidp to populate userPoolArn. - // +kubebuilder:validation:Optional - userPoolArnSelector?: null | v1.#Selector @go(UserPoolArnSelector,*v1.Selector) - - // The ID of the Cognito user pool client. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPoolClient - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - userPoolClientId?: null | string @go(UserPoolClientID,*string) - - // Reference to a UserPoolClient in cognitoidp to populate userPoolClientId. - // +kubebuilder:validation:Optional - userPoolClientIdRef?: null | v1.#Reference @go(UserPoolClientIDRef,*v1.Reference) - - // Selector for a UserPoolClient in cognitoidp to populate userPoolClientId. - // +kubebuilder:validation:Optional - userPoolClientIdSelector?: null | v1.#Selector @go(UserPoolClientIDSelector,*v1.Selector) - - // The domain prefix or fully-qualified domain name of the Cognito user pool. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPoolDomain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("domain",false) - // +kubebuilder:validation:Optional - userPoolDomain?: null | string @go(UserPoolDomain,*string) - - // Reference to a UserPoolDomain in cognitoidp to populate userPoolDomain. - // +kubebuilder:validation:Optional - userPoolDomainRef?: null | v1.#Reference @go(UserPoolDomainRef,*v1.Reference) - - // Selector for a UserPoolDomain in cognitoidp to populate userPoolDomain. - // +kubebuilder:validation:Optional - userPoolDomainSelector?: null | v1.#Selector @go(UserPoolDomainSelector,*v1.Selector) -} - -#ActionAuthenticateOidcInitParameters: { - // The query parameters to include in the redirect request to the authorization endpoint. Max: 10. - authenticationRequestExtraParams?: {[string]: null | string} @go(AuthenticationRequestExtraParams,map[string]*string) - - // The authorization endpoint of the IdP. - authorizationEndpoint?: null | string @go(AuthorizationEndpoint,*string) - - // The OAuth 2.0 client identifier. - clientId?: null | string @go(ClientID,*string) - - // The OIDC issuer identifier of the IdP. - issuer?: null | string @go(Issuer,*string) - - // The behavior if the user is not authenticated. Valid values: deny, allow and authenticate - onUnauthenticatedRequest?: null | string @go(OnUnauthenticatedRequest,*string) - - // The set of user claims to be requested from the IdP. - scope?: null | string @go(Scope,*string) - - // The name of the cookie used to maintain session information. - sessionCookieName?: null | string @go(SessionCookieName,*string) - - // The maximum duration of the authentication session, in seconds. - sessionTimeout?: null | float64 @go(SessionTimeout,*float64) - - // The token endpoint of the IdP. - tokenEndpoint?: null | string @go(TokenEndpoint,*string) - - // The user info endpoint of the IdP. - userInfoEndpoint?: null | string @go(UserInfoEndpoint,*string) -} - -#ActionAuthenticateOidcObservation: { - // The query parameters to include in the redirect request to the authorization endpoint. Max: 10. - authenticationRequestExtraParams?: {[string]: null | string} @go(AuthenticationRequestExtraParams,map[string]*string) - - // The authorization endpoint of the IdP. - authorizationEndpoint?: null | string @go(AuthorizationEndpoint,*string) - - // The OAuth 2.0 client identifier. - clientId?: null | string @go(ClientID,*string) - - // The OIDC issuer identifier of the IdP. - issuer?: null | string @go(Issuer,*string) - - // The behavior if the user is not authenticated. Valid values: deny, allow and authenticate - onUnauthenticatedRequest?: null | string @go(OnUnauthenticatedRequest,*string) - - // The set of user claims to be requested from the IdP. - scope?: null | string @go(Scope,*string) - - // The name of the cookie used to maintain session information. - sessionCookieName?: null | string @go(SessionCookieName,*string) - - // The maximum duration of the authentication session, in seconds. - sessionTimeout?: null | float64 @go(SessionTimeout,*float64) - - // The token endpoint of the IdP. - tokenEndpoint?: null | string @go(TokenEndpoint,*string) - - // The user info endpoint of the IdP. - userInfoEndpoint?: null | string @go(UserInfoEndpoint,*string) -} - -#ActionAuthenticateOidcParameters: { - // The query parameters to include in the redirect request to the authorization endpoint. Max: 10. - // +kubebuilder:validation:Optional - authenticationRequestExtraParams?: {[string]: null | string} @go(AuthenticationRequestExtraParams,map[string]*string) - - // The authorization endpoint of the IdP. - // +kubebuilder:validation:Optional - authorizationEndpoint?: null | string @go(AuthorizationEndpoint,*string) - - // The OAuth 2.0 client identifier. - // +kubebuilder:validation:Optional - clientId?: null | string @go(ClientID,*string) - - // The OAuth 2.0 client secret. - // +kubebuilder:validation:Required - clientSecretSecretRef: v1.#SecretKeySelector @go(ClientSecretSecretRef) - - // The OIDC issuer identifier of the IdP. - // +kubebuilder:validation:Optional - issuer?: null | string @go(Issuer,*string) - - // The behavior if the user is not authenticated. Valid values: deny, allow and authenticate - // +kubebuilder:validation:Optional - onUnauthenticatedRequest?: null | string @go(OnUnauthenticatedRequest,*string) - - // The set of user claims to be requested from the IdP. - // +kubebuilder:validation:Optional - scope?: null | string @go(Scope,*string) - - // The name of the cookie used to maintain session information. - // +kubebuilder:validation:Optional - sessionCookieName?: null | string @go(SessionCookieName,*string) - - // The maximum duration of the authentication session, in seconds. - // +kubebuilder:validation:Optional - sessionTimeout?: null | float64 @go(SessionTimeout,*float64) - - // The token endpoint of the IdP. - // +kubebuilder:validation:Optional - tokenEndpoint?: null | string @go(TokenEndpoint,*string) - - // The user info endpoint of the IdP. - // +kubebuilder:validation:Optional - userInfoEndpoint?: null | string @go(UserInfoEndpoint,*string) -} - -#ActionFixedResponseInitParameters: { - // The content type. Valid values are text/plain, text/css, text/html, application/javascript and application/json. - contentType?: null | string @go(ContentType,*string) - - // The message body. - messageBody?: null | string @go(MessageBody,*string) - - // The HTTP redirect code. The redirect is either permanent (HTTP_301) or temporary (HTTP_302). - statusCode?: null | string @go(StatusCode,*string) -} - -#ActionFixedResponseObservation: { - // The content type. Valid values are text/plain, text/css, text/html, application/javascript and application/json. - contentType?: null | string @go(ContentType,*string) - - // The message body. - messageBody?: null | string @go(MessageBody,*string) - - // The HTTP redirect code. The redirect is either permanent (HTTP_301) or temporary (HTTP_302). - statusCode?: null | string @go(StatusCode,*string) -} - -#ActionFixedResponseParameters: { - // The content type. Valid values are text/plain, text/css, text/html, application/javascript and application/json. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // The message body. - // +kubebuilder:validation:Optional - messageBody?: null | string @go(MessageBody,*string) - - // The HTTP redirect code. The redirect is either permanent (HTTP_301) or temporary (HTTP_302). - // +kubebuilder:validation:Optional - statusCode?: null | string @go(StatusCode,*string) -} - -#ActionForwardInitParameters: { - // The target group stickiness for the rule. - stickiness?: [...#ForwardStickinessInitParameters] @go(Stickiness,[]ForwardStickinessInitParameters) - - // One or more target groups block. - targetGroup?: [...#ForwardTargetGroupInitParameters] @go(TargetGroup,[]ForwardTargetGroupInitParameters) -} - -#ActionForwardObservation: { - // The target group stickiness for the rule. - stickiness?: [...#ForwardStickinessObservation] @go(Stickiness,[]ForwardStickinessObservation) - - // One or more target groups block. - targetGroup?: [...#ForwardTargetGroupObservation] @go(TargetGroup,[]ForwardTargetGroupObservation) -} - -#ActionForwardParameters: { - // The target group stickiness for the rule. - // +kubebuilder:validation:Optional - stickiness?: [...#ForwardStickinessParameters] @go(Stickiness,[]ForwardStickinessParameters) - - // One or more target groups block. - // +kubebuilder:validation:Optional - targetGroup: [...#ForwardTargetGroupParameters] @go(TargetGroup,[]ForwardTargetGroupParameters) -} - -#ActionInitParameters: { - // Information for creating an authenticate action using Cognito. Required if type is authenticate-cognito. - authenticateCognito?: [...#ActionAuthenticateCognitoInitParameters] @go(AuthenticateCognito,[]ActionAuthenticateCognitoInitParameters) - - // Information for creating an authenticate action using OIDC. Required if type is authenticate-oidc. - authenticateOidc?: [...#ActionAuthenticateOidcInitParameters] @go(AuthenticateOidc,[]ActionAuthenticateOidcInitParameters) - - // Information for creating an action that returns a custom HTTP response. Required if type is fixed-response. - fixedResponse?: [...#ActionFixedResponseInitParameters] @go(FixedResponse,[]ActionFixedResponseInitParameters) - - // Information for creating an action that distributes requests among one or more target groups. Specify only if type is forward. If you specify both forward block and target_group_arn attribute, you can specify only one target group using forward and it must be the same target group specified in target_group_arn. - forward?: [...#ActionForwardInitParameters] @go(Forward,[]ActionForwardInitParameters) - order?: null | float64 @go(Order,*float64) - - // Information for creating a redirect action. Required if type is redirect. - redirect?: [...#ActionRedirectInitParameters] @go(Redirect,[]ActionRedirectInitParameters) - - // The type of routing action. Valid values are forward, redirect, fixed-response, authenticate-cognito and authenticate-oidc. - type?: null | string @go(Type,*string) -} - -#ActionObservation: { - // Information for creating an authenticate action using Cognito. Required if type is authenticate-cognito. - authenticateCognito?: [...#ActionAuthenticateCognitoObservation] @go(AuthenticateCognito,[]ActionAuthenticateCognitoObservation) - - // Information for creating an authenticate action using OIDC. Required if type is authenticate-oidc. - authenticateOidc?: [...#ActionAuthenticateOidcObservation] @go(AuthenticateOidc,[]ActionAuthenticateOidcObservation) - - // Information for creating an action that returns a custom HTTP response. Required if type is fixed-response. - fixedResponse?: [...#ActionFixedResponseObservation] @go(FixedResponse,[]ActionFixedResponseObservation) - - // Information for creating an action that distributes requests among one or more target groups. Specify only if type is forward. If you specify both forward block and target_group_arn attribute, you can specify only one target group using forward and it must be the same target group specified in target_group_arn. - forward?: [...#ActionForwardObservation] @go(Forward,[]ActionForwardObservation) - order?: null | float64 @go(Order,*float64) - - // Information for creating a redirect action. Required if type is redirect. - redirect?: [...#ActionRedirectObservation] @go(Redirect,[]ActionRedirectObservation) - - // The ARN of the Target Group to which to route traffic. Specify only if type is forward and you want to route to a single target group. To route to one or more target groups, use a forward block instead. - targetGroupArn?: null | string @go(TargetGroupArn,*string) - - // The type of routing action. Valid values are forward, redirect, fixed-response, authenticate-cognito and authenticate-oidc. - type?: null | string @go(Type,*string) -} - -#ActionParameters: { - // Information for creating an authenticate action using Cognito. Required if type is authenticate-cognito. - // +kubebuilder:validation:Optional - authenticateCognito?: [...#ActionAuthenticateCognitoParameters] @go(AuthenticateCognito,[]ActionAuthenticateCognitoParameters) - - // Information for creating an authenticate action using OIDC. Required if type is authenticate-oidc. - // +kubebuilder:validation:Optional - authenticateOidc?: [...#ActionAuthenticateOidcParameters] @go(AuthenticateOidc,[]ActionAuthenticateOidcParameters) - - // Information for creating an action that returns a custom HTTP response. Required if type is fixed-response. - // +kubebuilder:validation:Optional - fixedResponse?: [...#ActionFixedResponseParameters] @go(FixedResponse,[]ActionFixedResponseParameters) - - // Information for creating an action that distributes requests among one or more target groups. Specify only if type is forward. If you specify both forward block and target_group_arn attribute, you can specify only one target group using forward and it must be the same target group specified in target_group_arn. - // +kubebuilder:validation:Optional - forward?: [...#ActionForwardParameters] @go(Forward,[]ActionForwardParameters) - - // +kubebuilder:validation:Optional - order?: null | float64 @go(Order,*float64) - - // Information for creating a redirect action. Required if type is redirect. - // +kubebuilder:validation:Optional - redirect?: [...#ActionRedirectParameters] @go(Redirect,[]ActionRedirectParameters) - - // The ARN of the Target Group to which to route traffic. Specify only if type is forward and you want to route to a single target group. To route to one or more target groups, use a forward block instead. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elbv2/v1beta1.LBTargetGroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - targetGroupArn?: null | string @go(TargetGroupArn,*string) - - // Reference to a LBTargetGroup in elbv2 to populate targetGroupArn. - // +kubebuilder:validation:Optional - targetGroupArnRef?: null | v1.#Reference @go(TargetGroupArnRef,*v1.Reference) - - // Selector for a LBTargetGroup in elbv2 to populate targetGroupArn. - // +kubebuilder:validation:Optional - targetGroupArnSelector?: null | v1.#Selector @go(TargetGroupArnSelector,*v1.Selector) - - // The type of routing action. Valid values are forward, redirect, fixed-response, authenticate-cognito and authenticate-oidc. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#ActionRedirectInitParameters: { - // The hostname. This component is not percent-encoded. The hostname can contain #{host}. Defaults to #{host}. - host?: null | string @go(Host,*string) - - // The absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to /#{path}. - path?: null | string @go(Path,*string) - - // The port. Specify a value from 1 to 65535 or #{port}. Defaults to #{port}. - port?: null | string @go(Port,*string) - - // The protocol. Valid values are HTTP, HTTPS, or #{protocol}. Defaults to #{protocol}. - protocol?: null | string @go(Protocol,*string) - - // The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to #{query}. - query?: null | string @go(Query,*string) - - // The HTTP redirect code. The redirect is either permanent (HTTP_301) or temporary (HTTP_302). - statusCode?: null | string @go(StatusCode,*string) -} - -#ActionRedirectObservation: { - // The hostname. This component is not percent-encoded. The hostname can contain #{host}. Defaults to #{host}. - host?: null | string @go(Host,*string) - - // The absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to /#{path}. - path?: null | string @go(Path,*string) - - // The port. Specify a value from 1 to 65535 or #{port}. Defaults to #{port}. - port?: null | string @go(Port,*string) - - // The protocol. Valid values are HTTP, HTTPS, or #{protocol}. Defaults to #{protocol}. - protocol?: null | string @go(Protocol,*string) - - // The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to #{query}. - query?: null | string @go(Query,*string) - - // The HTTP redirect code. The redirect is either permanent (HTTP_301) or temporary (HTTP_302). - statusCode?: null | string @go(StatusCode,*string) -} - -#ActionRedirectParameters: { - // The hostname. This component is not percent-encoded. The hostname can contain #{host}. Defaults to #{host}. - // +kubebuilder:validation:Optional - host?: null | string @go(Host,*string) - - // The absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to /#{path}. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // The port. Specify a value from 1 to 65535 or #{port}. Defaults to #{port}. - // +kubebuilder:validation:Optional - port?: null | string @go(Port,*string) - - // The protocol. Valid values are HTTP, HTTPS, or #{protocol}. Defaults to #{protocol}. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to #{query}. - // +kubebuilder:validation:Optional - query?: null | string @go(Query,*string) - - // The HTTP redirect code. The redirect is either permanent (HTTP_301) or temporary (HTTP_302). - // +kubebuilder:validation:Optional - statusCode?: null | string @go(StatusCode,*string) -} - -#ConditionInitParameters: { - // HTTP headers to match. HTTP Header block fields documented below. - httpHeader?: [...#HTTPHeaderInitParameters] @go(HTTPHeader,[]HTTPHeaderInitParameters) - - // Contains a single values item which is a list of HTTP request methods or verbs to match. Maximum size is 40 characters. Only allowed characters are A-Z, hyphen (-) and underscore (_). Comparison is case sensitive. Wildcards are not supported. Only one needs to match for the condition to be satisfied. AWS recommends that GET and HEAD requests are routed in the same way because the response to a HEAD request may be cached. - httpRequestMethod?: [...#HTTPRequestMethodInitParameters] @go(HTTPRequestMethod,[]HTTPRequestMethodInitParameters) - - // Contains a single values item which is a list of host header patterns to match. The maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. - hostHeader?: [...#HostHeaderInitParameters] @go(HostHeader,[]HostHeaderInitParameters) - - // Contains a single values item which is a list of path patterns to match against the request URL. Maximum size of each pattern is 128 characters. Comparison is case sensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. Path pattern is compared only to the path of the URL, not to its query string. To compare against the query string, use a query_string condition. - pathPattern?: [...#PathPatternInitParameters] @go(PathPattern,[]PathPatternInitParameters) - - // Query strings to match. Query String block fields documented below. - queryString?: [...#QueryStringInitParameters] @go(QueryString,[]QueryStringInitParameters) - - // Contains a single values item which is a list of source IP CIDR notations to match. You can use both IPv4 and IPv6 addresses. Wildcards are not supported. Condition is satisfied if the source IP address of the request matches one of the CIDR blocks. Condition is not satisfied by the addresses in the X-Forwarded-For header, use http_header condition instead. - sourceIp?: [...#SourceIPInitParameters] @go(SourceIP,[]SourceIPInitParameters) -} - -#ConditionObservation: { - // HTTP headers to match. HTTP Header block fields documented below. - httpHeader?: [...#HTTPHeaderObservation] @go(HTTPHeader,[]HTTPHeaderObservation) - - // Contains a single values item which is a list of HTTP request methods or verbs to match. Maximum size is 40 characters. Only allowed characters are A-Z, hyphen (-) and underscore (_). Comparison is case sensitive. Wildcards are not supported. Only one needs to match for the condition to be satisfied. AWS recommends that GET and HEAD requests are routed in the same way because the response to a HEAD request may be cached. - httpRequestMethod?: [...#HTTPRequestMethodObservation] @go(HTTPRequestMethod,[]HTTPRequestMethodObservation) - - // Contains a single values item which is a list of host header patterns to match. The maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. - hostHeader?: [...#HostHeaderObservation] @go(HostHeader,[]HostHeaderObservation) - - // Contains a single values item which is a list of path patterns to match against the request URL. Maximum size of each pattern is 128 characters. Comparison is case sensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. Path pattern is compared only to the path of the URL, not to its query string. To compare against the query string, use a query_string condition. - pathPattern?: [...#PathPatternObservation] @go(PathPattern,[]PathPatternObservation) - - // Query strings to match. Query String block fields documented below. - queryString?: [...#QueryStringObservation] @go(QueryString,[]QueryStringObservation) - - // Contains a single values item which is a list of source IP CIDR notations to match. You can use both IPv4 and IPv6 addresses. Wildcards are not supported. Condition is satisfied if the source IP address of the request matches one of the CIDR blocks. Condition is not satisfied by the addresses in the X-Forwarded-For header, use http_header condition instead. - sourceIp?: [...#SourceIPObservation] @go(SourceIP,[]SourceIPObservation) -} - -#ConditionParameters: { - // HTTP headers to match. HTTP Header block fields documented below. - // +kubebuilder:validation:Optional - httpHeader?: [...#HTTPHeaderParameters] @go(HTTPHeader,[]HTTPHeaderParameters) - - // Contains a single values item which is a list of HTTP request methods or verbs to match. Maximum size is 40 characters. Only allowed characters are A-Z, hyphen (-) and underscore (_). Comparison is case sensitive. Wildcards are not supported. Only one needs to match for the condition to be satisfied. AWS recommends that GET and HEAD requests are routed in the same way because the response to a HEAD request may be cached. - // +kubebuilder:validation:Optional - httpRequestMethod?: [...#HTTPRequestMethodParameters] @go(HTTPRequestMethod,[]HTTPRequestMethodParameters) - - // Contains a single values item which is a list of host header patterns to match. The maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. - // +kubebuilder:validation:Optional - hostHeader?: [...#HostHeaderParameters] @go(HostHeader,[]HostHeaderParameters) - - // Contains a single values item which is a list of path patterns to match against the request URL. Maximum size of each pattern is 128 characters. Comparison is case sensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. Path pattern is compared only to the path of the URL, not to its query string. To compare against the query string, use a query_string condition. - // +kubebuilder:validation:Optional - pathPattern?: [...#PathPatternParameters] @go(PathPattern,[]PathPatternParameters) - - // Query strings to match. Query String block fields documented below. - // +kubebuilder:validation:Optional - queryString?: [...#QueryStringParameters] @go(QueryString,[]QueryStringParameters) - - // Contains a single values item which is a list of source IP CIDR notations to match. You can use both IPv4 and IPv6 addresses. Wildcards are not supported. Condition is satisfied if the source IP address of the request matches one of the CIDR blocks. Condition is not satisfied by the addresses in the X-Forwarded-For header, use http_header condition instead. - // +kubebuilder:validation:Optional - sourceIp?: [...#SourceIPParameters] @go(SourceIP,[]SourceIPParameters) -} - -#ForwardStickinessInitParameters: { - // The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). - duration?: null | float64 @go(Duration,*float64) - - // Indicates whether target group stickiness is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#ForwardStickinessObservation: { - // The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). - duration?: null | float64 @go(Duration,*float64) - - // Indicates whether target group stickiness is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#ForwardStickinessParameters: { - // The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). - // +kubebuilder:validation:Optional - duration?: null | float64 @go(Duration,*float64) - - // Indicates whether target group stickiness is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#ForwardTargetGroupInitParameters: { - // The weight. The range is 0 to 999. - weight?: null | float64 @go(Weight,*float64) -} - -#ForwardTargetGroupObservation: { - // The Amazon Resource Name (ARN) of the target group. - arn?: null | string @go(Arn,*string) - - // The weight. The range is 0 to 999. - weight?: null | float64 @go(Weight,*float64) -} - -#ForwardTargetGroupParameters: { - // The Amazon Resource Name (ARN) of the target group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elbv2/v1beta1.LBTargetGroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // Reference to a LBTargetGroup in elbv2 to populate arn. - // +kubebuilder:validation:Optional - arnRef?: null | v1.#Reference @go(ArnRef,*v1.Reference) - - // Selector for a LBTargetGroup in elbv2 to populate arn. - // +kubebuilder:validation:Optional - arnSelector?: null | v1.#Selector @go(ArnSelector,*v1.Selector) - - // The weight. The range is 0 to 999. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -#HTTPHeaderInitParameters: { - // Name of HTTP header to search. The maximum size is 40 characters. Comparison is case insensitive. Only RFC7240 characters are supported. Wildcards are not supported. You cannot use HTTP header condition to specify the host header, use a host-header condition instead. - httpHeaderName?: null | string @go(HTTPHeaderName,*string) - - // List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. - values?: [...null | string] @go(Values,[]*string) -} - -#HTTPHeaderObservation: { - // Name of HTTP header to search. The maximum size is 40 characters. Comparison is case insensitive. Only RFC7240 characters are supported. Wildcards are not supported. You cannot use HTTP header condition to specify the host header, use a host-header condition instead. - httpHeaderName?: null | string @go(HTTPHeaderName,*string) - - // List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. - values?: [...null | string] @go(Values,[]*string) -} - -#HTTPHeaderParameters: { - // Name of HTTP header to search. The maximum size is 40 characters. Comparison is case insensitive. Only RFC7240 characters are supported. Wildcards are not supported. You cannot use HTTP header condition to specify the host header, use a host-header condition instead. - // +kubebuilder:validation:Optional - httpHeaderName?: null | string @go(HTTPHeaderName,*string) - - // List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#HTTPRequestMethodInitParameters: { - // Query string pairs or values to match. Query String Value blocks documented below. Multiple values blocks can be specified, see example above. Maximum size of each string is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, escape the character with a backslash (\). Only one pair needs to match for the condition to be satisfied. - values?: [...null | string] @go(Values,[]*string) -} - -#HTTPRequestMethodObservation: { - // Query string pairs or values to match. Query String Value blocks documented below. Multiple values blocks can be specified, see example above. Maximum size of each string is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, escape the character with a backslash (\). Only one pair needs to match for the condition to be satisfied. - values?: [...null | string] @go(Values,[]*string) -} - -#HTTPRequestMethodParameters: { - // Query string pairs or values to match. Query String Value blocks documented below. Multiple values blocks can be specified, see example above. Maximum size of each string is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, escape the character with a backslash (\). Only one pair needs to match for the condition to be satisfied. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#HostHeaderInitParameters: { - // Query string pairs or values to match. Query String Value blocks documented below. Multiple values blocks can be specified, see example above. Maximum size of each string is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, escape the character with a backslash (\). Only one pair needs to match for the condition to be satisfied. - values?: [...null | string] @go(Values,[]*string) -} - -#HostHeaderObservation: { - // Query string pairs or values to match. Query String Value blocks documented below. Multiple values blocks can be specified, see example above. Maximum size of each string is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, escape the character with a backslash (\). Only one pair needs to match for the condition to be satisfied. - values?: [...null | string] @go(Values,[]*string) -} - -#HostHeaderParameters: { - // Query string pairs or values to match. Query String Value blocks documented below. Multiple values blocks can be specified, see example above. Maximum size of each string is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, escape the character with a backslash (\). Only one pair needs to match for the condition to be satisfied. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#LBListenerRuleInitParameters: { - // An Action block. Action blocks are documented below. - action?: [...#ActionInitParameters] @go(Action,[]ActionInitParameters) - - // A Condition block. Multiple condition blocks of different types can be set and all must be satisfied for the rule to match. Condition blocks are documented below. - condition?: [...#ConditionInitParameters] @go(Condition,[]ConditionInitParameters) - - // The priority for the rule between 1 and 50000. Leaving it unset will automatically set the rule with next available priority after currently existing highest rule. A listener can't have multiple rules with the same priority. - priority?: null | float64 @go(Priority,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#LBListenerRuleObservation: { - // An Action block. Action blocks are documented below. - action?: [...#ActionObservation] @go(Action,[]ActionObservation) - - // The ARN of the rule (matches id) - arn?: null | string @go(Arn,*string) - - // A Condition block. Multiple condition blocks of different types can be set and all must be satisfied for the rule to match. Condition blocks are documented below. - condition?: [...#ConditionObservation] @go(Condition,[]ConditionObservation) - - // The ARN of the rule (matches arn) - id?: null | string @go(ID,*string) - - // The ARN of the listener to which to attach the rule. - listenerArn?: null | string @go(ListenerArn,*string) - - // The priority for the rule between 1 and 50000. Leaving it unset will automatically set the rule with next available priority after currently existing highest rule. A listener can't have multiple rules with the same priority. - priority?: null | float64 @go(Priority,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#LBListenerRuleParameters: { - // An Action block. Action blocks are documented below. - // +kubebuilder:validation:Optional - action?: [...#ActionParameters] @go(Action,[]ActionParameters) - - // A Condition block. Multiple condition blocks of different types can be set and all must be satisfied for the rule to match. Condition blocks are documented below. - // +kubebuilder:validation:Optional - condition?: [...#ConditionParameters] @go(Condition,[]ConditionParameters) - - // The ARN of the listener to which to attach the rule. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elbv2/v1beta1.LBListener - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - listenerArn?: null | string @go(ListenerArn,*string) - - // Reference to a LBListener in elbv2 to populate listenerArn. - // +kubebuilder:validation:Optional - listenerArnRef?: null | v1.#Reference @go(ListenerArnRef,*v1.Reference) - - // Selector for a LBListener in elbv2 to populate listenerArn. - // +kubebuilder:validation:Optional - listenerArnSelector?: null | v1.#Selector @go(ListenerArnSelector,*v1.Selector) - - // The priority for the rule between 1 and 50000. Leaving it unset will automatically set the rule with next available priority after currently existing highest rule. A listener can't have multiple rules with the same priority. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PathPatternInitParameters: { - // Query string pairs or values to match. Query String Value blocks documented below. Multiple values blocks can be specified, see example above. Maximum size of each string is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, escape the character with a backslash (\). Only one pair needs to match for the condition to be satisfied. - values?: [...null | string] @go(Values,[]*string) -} - -#PathPatternObservation: { - // Query string pairs or values to match. Query String Value blocks documented below. Multiple values blocks can be specified, see example above. Maximum size of each string is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, escape the character with a backslash (\). Only one pair needs to match for the condition to be satisfied. - values?: [...null | string] @go(Values,[]*string) -} - -#PathPatternParameters: { - // Query string pairs or values to match. Query String Value blocks documented below. Multiple values blocks can be specified, see example above. Maximum size of each string is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, escape the character with a backslash (\). Only one pair needs to match for the condition to be satisfied. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#QueryStringInitParameters: { - // Query string key pattern to match. - key?: null | string @go(Key,*string) - - // Query string value pattern to match. - value?: null | string @go(Value,*string) -} - -#QueryStringObservation: { - // Query string key pattern to match. - key?: null | string @go(Key,*string) - - // Query string value pattern to match. - value?: null | string @go(Value,*string) -} - -#QueryStringParameters: { - // Query string key pattern to match. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Query string value pattern to match. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#SourceIPInitParameters: { - // Query string pairs or values to match. Query String Value blocks documented below. Multiple values blocks can be specified, see example above. Maximum size of each string is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, escape the character with a backslash (\). Only one pair needs to match for the condition to be satisfied. - values?: [...null | string] @go(Values,[]*string) -} - -#SourceIPObservation: { - // Query string pairs or values to match. Query String Value blocks documented below. Multiple values blocks can be specified, see example above. Maximum size of each string is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, escape the character with a backslash (\). Only one pair needs to match for the condition to be satisfied. - values?: [...null | string] @go(Values,[]*string) -} - -#SourceIPParameters: { - // Query string pairs or values to match. Query String Value blocks documented below. Multiple values blocks can be specified, see example above. Maximum size of each string is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, escape the character with a backslash (\). Only one pair needs to match for the condition to be satisfied. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -// LBListenerRuleSpec defines the desired state of LBListenerRule -#LBListenerRuleSpec: { - v1.#ResourceSpec - forProvider: #LBListenerRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LBListenerRuleInitParameters @go(InitProvider) -} - -// LBListenerRuleStatus defines the observed state of LBListenerRule. -#LBListenerRuleStatus: { - v1.#ResourceStatus - atProvider?: #LBListenerRuleObservation @go(AtProvider) -} - -// LBListenerRule is the Schema for the LBListenerRules API. Provides a Load Balancer Listener Rule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LBListenerRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.action) || (has(self.initProvider) && has(self.initProvider.action))",message="spec.forProvider.action is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.condition) || (has(self.initProvider) && has(self.initProvider.condition))",message="spec.forProvider.condition is a required parameter" - spec: #LBListenerRuleSpec @go(Spec) - status?: #LBListenerRuleStatus @go(Status) -} - -// LBListenerRuleList contains a list of LBListenerRules -#LBListenerRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LBListenerRule] @go(Items,[]LBListenerRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lbtargetgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lbtargetgroup_types_go_gen.cue deleted file mode 100644 index 6058378..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lbtargetgroup_types_go_gen.cue +++ /dev/null @@ -1,444 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elbv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HealthCheckInitParameters: { - // Whether health checks are enabled. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // Number of consecutive health check successes required before considering a target healthy. The range is 2-10. Defaults to 3. - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // Approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. For lambda target groups, it needs to be greater than the timeout of the underlying lambda. Defaults to 30. - interval?: null | float64 @go(Interval,*float64) - - // 299" or "0-99"). Required for HTTP/HTTPS/GRPC ALB. Only applies to Application Load Balancers (i.e., HTTP/HTTPS/GRPC) not Network Load Balancers (i.e., TCP). - matcher?: null | string @go(Matcher,*string) - - // (May be required) Destination for the health check request. Required for HTTP/HTTPS ALB and HTTP NLB. Only applies to HTTP/HTTPS. - path?: null | string @go(Path,*string) - - // The port the load balancer uses when performing health checks on targets. Default is traffic-port. - port?: null | string @go(Port,*string) - - // Protocol the load balancer uses when performing health checks on targets. Must be either TCP, HTTP, or HTTPS. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. Defaults to HTTP. - protocol?: null | string @go(Protocol,*string) - - // Amount of time, in seconds, during which no response from a target means a failed health check. The range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the default is 5 seconds. If the target type is lambda, the default is 30 seconds. - timeout?: null | float64 @go(Timeout,*float64) - - // Number of consecutive health check failures required before considering a target unhealthy. The range is 2-10. Defaults to 3. - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#HealthCheckObservation: { - // Whether health checks are enabled. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // Number of consecutive health check successes required before considering a target healthy. The range is 2-10. Defaults to 3. - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // Approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. For lambda target groups, it needs to be greater than the timeout of the underlying lambda. Defaults to 30. - interval?: null | float64 @go(Interval,*float64) - - // 299" or "0-99"). Required for HTTP/HTTPS/GRPC ALB. Only applies to Application Load Balancers (i.e., HTTP/HTTPS/GRPC) not Network Load Balancers (i.e., TCP). - matcher?: null | string @go(Matcher,*string) - - // (May be required) Destination for the health check request. Required for HTTP/HTTPS ALB and HTTP NLB. Only applies to HTTP/HTTPS. - path?: null | string @go(Path,*string) - - // The port the load balancer uses when performing health checks on targets. Default is traffic-port. - port?: null | string @go(Port,*string) - - // Protocol the load balancer uses when performing health checks on targets. Must be either TCP, HTTP, or HTTPS. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. Defaults to HTTP. - protocol?: null | string @go(Protocol,*string) - - // Amount of time, in seconds, during which no response from a target means a failed health check. The range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the default is 5 seconds. If the target type is lambda, the default is 30 seconds. - timeout?: null | float64 @go(Timeout,*float64) - - // Number of consecutive health check failures required before considering a target unhealthy. The range is 2-10. Defaults to 3. - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#HealthCheckParameters: { - // Whether health checks are enabled. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Number of consecutive health check successes required before considering a target healthy. The range is 2-10. Defaults to 3. - // +kubebuilder:validation:Optional - healthyThreshold?: null | float64 @go(HealthyThreshold,*float64) - - // Approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. For lambda target groups, it needs to be greater than the timeout of the underlying lambda. Defaults to 30. - // +kubebuilder:validation:Optional - interval?: null | float64 @go(Interval,*float64) - - // 299" or "0-99"). Required for HTTP/HTTPS/GRPC ALB. Only applies to Application Load Balancers (i.e., HTTP/HTTPS/GRPC) not Network Load Balancers (i.e., TCP). - // +kubebuilder:validation:Optional - matcher?: null | string @go(Matcher,*string) - - // (May be required) Destination for the health check request. Required for HTTP/HTTPS ALB and HTTP NLB. Only applies to HTTP/HTTPS. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // The port the load balancer uses when performing health checks on targets. Default is traffic-port. - // +kubebuilder:validation:Optional - port?: null | string @go(Port,*string) - - // Protocol the load balancer uses when performing health checks on targets. Must be either TCP, HTTP, or HTTPS. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. Defaults to HTTP. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Amount of time, in seconds, during which no response from a target means a failed health check. The range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the default is 5 seconds. If the target type is lambda, the default is 30 seconds. - // +kubebuilder:validation:Optional - timeout?: null | float64 @go(Timeout,*float64) - - // Number of consecutive health check failures required before considering a target unhealthy. The range is 2-10. Defaults to 3. - // +kubebuilder:validation:Optional - unhealthyThreshold?: null | float64 @go(UnhealthyThreshold,*float64) -} - -#LBTargetGroupInitParameters: { - // Whether to terminate connections at the end of the deregistration timeout on Network Load Balancers. See doc for more information. Default is false. - connectionTermination?: null | bool @go(ConnectionTermination,*bool) - - // Amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds. The default value is 300 seconds. - deregistrationDelay?: null | string @go(DeregistrationDelay,*string) - - // Health Check configuration block. Detailed below. - healthCheck?: [...#HealthCheckInitParameters] @go(HealthCheck,[]HealthCheckInitParameters) - - // The type of IP addresses used by the target group, only supported when target type is set to ip. Possible values are ipv4 or ipv6. - ipAddressType?: null | string @go(IPAddressType,*string) - - // Whether the request and response headers exchanged between the load balancer and the Lambda function include arrays of values or strings. Only applies when target_type is lambda. Default is false. - lambdaMultiValueHeadersEnabled?: null | bool @go(LambdaMultiValueHeadersEnabled,*bool) - - // Determines how the load balancer selects targets when routing requests. Only applicable for Application Load Balancer Target Groups. The value is round_robin or least_outstanding_requests. The default is round_robin. - loadBalancingAlgorithmType?: null | string @go(LoadBalancingAlgorithmType,*string) - - // Indicates whether cross zone load balancing is enabled. The value is "true", "false" or "use_load_balancer_configuration". The default is "use_load_balancer_configuration". - loadBalancingCrossZoneEnabled?: null | string @go(LoadBalancingCrossZoneEnabled,*string) - - // Name of the target group. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. - name?: null | string @go(Name,*string) - - // (May be required, Forces new resource) Port on which targets receive traffic, unless overridden when registering a specific target. Required when target_type is instance, ip or alb. Does not apply when target_type is lambda. - port?: null | float64 @go(Port,*float64) - - // Whether client IP preservation is enabled. See doc for more information. - preserveClientIp?: null | string @go(PreserveClientIP,*string) - - // (May be required, Forces new resource) Protocol to use for routing traffic to the targets. Should be one of GENEVE, HTTP, HTTPS, TCP, TCP_UDP, TLS, or UDP. Required when target_type is instance, ip or alb. Does not apply when target_type is lambda. - protocol?: null | string @go(Protocol,*string) - - // Only applicable when protocol is HTTP or HTTPS. The protocol version. Specify GRPC to send requests to targets using gRPC. Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which sends requests to targets using HTTP/1.1 - protocolVersion?: null | string @go(ProtocolVersion,*string) - - // Whether to enable support for proxy protocol v2 on Network Load Balancers. See doc for more information. Default is false. - proxyProtocolV2?: null | bool @go(ProxyProtocolV2,*bool) - - // Amount time for targets to warm up before the load balancer sends them a full share of requests. The range is 30-900 seconds or 0 to disable. The default value is 0 seconds. - slowStart?: null | float64 @go(SlowStart,*float64) - - // Stickiness configuration block. Detailed below. - stickiness?: [...#LBTargetGroupStickinessInitParameters] @go(Stickiness,[]LBTargetGroupStickinessInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Target failover block. Only applicable for Gateway Load Balancer target groups. See target_failover for more information. - targetFailover?: [...#TargetFailoverInitParameters] @go(TargetFailover,[]TargetFailoverInitParameters) - - // (May be required, Forces new resource) Type of target that you must specify when registering targets with this target group. See doc for supported values. The default is instance. - targetType?: null | string @go(TargetType,*string) -} - -#LBTargetGroupObservation: { - // ARN of the Target Group (matches id). - arn?: null | string @go(Arn,*string) - - // ARN suffix for use with CloudWatch Metrics. - arnSuffix?: null | string @go(ArnSuffix,*string) - - // Whether to terminate connections at the end of the deregistration timeout on Network Load Balancers. See doc for more information. Default is false. - connectionTermination?: null | bool @go(ConnectionTermination,*bool) - - // Amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds. The default value is 300 seconds. - deregistrationDelay?: null | string @go(DeregistrationDelay,*string) - - // Health Check configuration block. Detailed below. - healthCheck?: [...#HealthCheckObservation] @go(HealthCheck,[]HealthCheckObservation) - - // ARN of the Target Group (matches arn). - id?: null | string @go(ID,*string) - - // The type of IP addresses used by the target group, only supported when target type is set to ip. Possible values are ipv4 or ipv6. - ipAddressType?: null | string @go(IPAddressType,*string) - - // Whether the request and response headers exchanged between the load balancer and the Lambda function include arrays of values or strings. Only applies when target_type is lambda. Default is false. - lambdaMultiValueHeadersEnabled?: null | bool @go(LambdaMultiValueHeadersEnabled,*bool) - - // Determines how the load balancer selects targets when routing requests. Only applicable for Application Load Balancer Target Groups. The value is round_robin or least_outstanding_requests. The default is round_robin. - loadBalancingAlgorithmType?: null | string @go(LoadBalancingAlgorithmType,*string) - - // Indicates whether cross zone load balancing is enabled. The value is "true", "false" or "use_load_balancer_configuration". The default is "use_load_balancer_configuration". - loadBalancingCrossZoneEnabled?: null | string @go(LoadBalancingCrossZoneEnabled,*string) - - // Name of the target group. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. - name?: null | string @go(Name,*string) - - // (May be required, Forces new resource) Port on which targets receive traffic, unless overridden when registering a specific target. Required when target_type is instance, ip or alb. Does not apply when target_type is lambda. - port?: null | float64 @go(Port,*float64) - - // Whether client IP preservation is enabled. See doc for more information. - preserveClientIp?: null | string @go(PreserveClientIP,*string) - - // (May be required, Forces new resource) Protocol to use for routing traffic to the targets. Should be one of GENEVE, HTTP, HTTPS, TCP, TCP_UDP, TLS, or UDP. Required when target_type is instance, ip or alb. Does not apply when target_type is lambda. - protocol?: null | string @go(Protocol,*string) - - // Only applicable when protocol is HTTP or HTTPS. The protocol version. Specify GRPC to send requests to targets using gRPC. Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which sends requests to targets using HTTP/1.1 - protocolVersion?: null | string @go(ProtocolVersion,*string) - - // Whether to enable support for proxy protocol v2 on Network Load Balancers. See doc for more information. Default is false. - proxyProtocolV2?: null | bool @go(ProxyProtocolV2,*bool) - - // Amount time for targets to warm up before the load balancer sends them a full share of requests. The range is 30-900 seconds or 0 to disable. The default value is 0 seconds. - slowStart?: null | float64 @go(SlowStart,*float64) - - // Stickiness configuration block. Detailed below. - stickiness?: [...#LBTargetGroupStickinessObservation] @go(Stickiness,[]LBTargetGroupStickinessObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Target failover block. Only applicable for Gateway Load Balancer target groups. See target_failover for more information. - targetFailover?: [...#TargetFailoverObservation] @go(TargetFailover,[]TargetFailoverObservation) - - // (May be required, Forces new resource) Type of target that you must specify when registering targets with this target group. See doc for supported values. The default is instance. - targetType?: null | string @go(TargetType,*string) - - // Identifier of the VPC in which to create the target group. Required when target_type is instance, ip or alb. Does not apply when target_type is lambda. - vpcId?: null | string @go(VPCID,*string) -} - -#LBTargetGroupParameters: { - // Whether to terminate connections at the end of the deregistration timeout on Network Load Balancers. See doc for more information. Default is false. - // +kubebuilder:validation:Optional - connectionTermination?: null | bool @go(ConnectionTermination,*bool) - - // Amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds. The default value is 300 seconds. - // +kubebuilder:validation:Optional - deregistrationDelay?: null | string @go(DeregistrationDelay,*string) - - // Health Check configuration block. Detailed below. - // +kubebuilder:validation:Optional - healthCheck?: [...#HealthCheckParameters] @go(HealthCheck,[]HealthCheckParameters) - - // The type of IP addresses used by the target group, only supported when target type is set to ip. Possible values are ipv4 or ipv6. - // +kubebuilder:validation:Optional - ipAddressType?: null | string @go(IPAddressType,*string) - - // Whether the request and response headers exchanged between the load balancer and the Lambda function include arrays of values or strings. Only applies when target_type is lambda. Default is false. - // +kubebuilder:validation:Optional - lambdaMultiValueHeadersEnabled?: null | bool @go(LambdaMultiValueHeadersEnabled,*bool) - - // Determines how the load balancer selects targets when routing requests. Only applicable for Application Load Balancer Target Groups. The value is round_robin or least_outstanding_requests. The default is round_robin. - // +kubebuilder:validation:Optional - loadBalancingAlgorithmType?: null | string @go(LoadBalancingAlgorithmType,*string) - - // Indicates whether cross zone load balancing is enabled. The value is "true", "false" or "use_load_balancer_configuration". The default is "use_load_balancer_configuration". - // +kubebuilder:validation:Optional - loadBalancingCrossZoneEnabled?: null | string @go(LoadBalancingCrossZoneEnabled,*string) - - // Name of the target group. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // (May be required, Forces new resource) Port on which targets receive traffic, unless overridden when registering a specific target. Required when target_type is instance, ip or alb. Does not apply when target_type is lambda. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Whether client IP preservation is enabled. See doc for more information. - // +kubebuilder:validation:Optional - preserveClientIp?: null | string @go(PreserveClientIP,*string) - - // (May be required, Forces new resource) Protocol to use for routing traffic to the targets. Should be one of GENEVE, HTTP, HTTPS, TCP, TCP_UDP, TLS, or UDP. Required when target_type is instance, ip or alb. Does not apply when target_type is lambda. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Only applicable when protocol is HTTP or HTTPS. The protocol version. Specify GRPC to send requests to targets using gRPC. Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which sends requests to targets using HTTP/1.1 - // +kubebuilder:validation:Optional - protocolVersion?: null | string @go(ProtocolVersion,*string) - - // Whether to enable support for proxy protocol v2 on Network Load Balancers. See doc for more information. Default is false. - // +kubebuilder:validation:Optional - proxyProtocolV2?: null | bool @go(ProxyProtocolV2,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amount time for targets to warm up before the load balancer sends them a full share of requests. The range is 30-900 seconds or 0 to disable. The default value is 0 seconds. - // +kubebuilder:validation:Optional - slowStart?: null | float64 @go(SlowStart,*float64) - - // Stickiness configuration block. Detailed below. - // +kubebuilder:validation:Optional - stickiness?: [...#LBTargetGroupStickinessParameters] @go(Stickiness,[]LBTargetGroupStickinessParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Target failover block. Only applicable for Gateway Load Balancer target groups. See target_failover for more information. - // +kubebuilder:validation:Optional - targetFailover?: [...#TargetFailoverParameters] @go(TargetFailover,[]TargetFailoverParameters) - - // (May be required, Forces new resource) Type of target that you must specify when registering targets with this target group. See doc for supported values. The default is instance. - // +kubebuilder:validation:Optional - targetType?: null | string @go(TargetType,*string) - - // Identifier of the VPC in which to create the target group. Required when target_type is instance, ip or alb. Does not apply when target_type is lambda. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -#LBTargetGroupStickinessInitParameters: { - // Only used when the type is lb_cookie. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). - cookieDuration?: null | float64 @go(CookieDuration,*float64) - - // Name of the application based cookie. AWSALB, AWSALBAPP, and AWSALBTG prefixes are reserved and cannot be used. Only needed when type is app_cookie. - cookieName?: null | string @go(CookieName,*string) - - // Whether health checks are enabled. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // The type of sticky sessions. The only current possible values are lb_cookie, app_cookie for ALBs, source_ip for NLBs, and source_ip_dest_ip, source_ip_dest_ip_proto for GWLBs. - type?: null | string @go(Type,*string) -} - -#LBTargetGroupStickinessObservation: { - // Only used when the type is lb_cookie. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). - cookieDuration?: null | float64 @go(CookieDuration,*float64) - - // Name of the application based cookie. AWSALB, AWSALBAPP, and AWSALBTG prefixes are reserved and cannot be used. Only needed when type is app_cookie. - cookieName?: null | string @go(CookieName,*string) - - // Whether health checks are enabled. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // The type of sticky sessions. The only current possible values are lb_cookie, app_cookie for ALBs, source_ip for NLBs, and source_ip_dest_ip, source_ip_dest_ip_proto for GWLBs. - type?: null | string @go(Type,*string) -} - -#LBTargetGroupStickinessParameters: { - // Only used when the type is lb_cookie. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). - // +kubebuilder:validation:Optional - cookieDuration?: null | float64 @go(CookieDuration,*float64) - - // Name of the application based cookie. AWSALB, AWSALBAPP, and AWSALBTG prefixes are reserved and cannot be used. Only needed when type is app_cookie. - // +kubebuilder:validation:Optional - cookieName?: null | string @go(CookieName,*string) - - // Whether health checks are enabled. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The type of sticky sessions. The only current possible values are lb_cookie, app_cookie for ALBs, source_ip for NLBs, and source_ip_dest_ip, source_ip_dest_ip_proto for GWLBs. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#TargetFailoverInitParameters: { - // Indicates how the GWLB handles existing flows when a target is deregistered. Possible values are rebalance and no_rebalance. Must match the attribute value set for on_unhealthy. Default: no_rebalance. - onDeregistration?: null | string @go(OnDeregistration,*string) - - // Indicates how the GWLB handles existing flows when a target is unhealthy. Possible values are rebalance and no_rebalance. Must match the attribute value set for on_deregistration. Default: no_rebalance. - onUnhealthy?: null | string @go(OnUnhealthy,*string) -} - -#TargetFailoverObservation: { - // Indicates how the GWLB handles existing flows when a target is deregistered. Possible values are rebalance and no_rebalance. Must match the attribute value set for on_unhealthy. Default: no_rebalance. - onDeregistration?: null | string @go(OnDeregistration,*string) - - // Indicates how the GWLB handles existing flows when a target is unhealthy. Possible values are rebalance and no_rebalance. Must match the attribute value set for on_deregistration. Default: no_rebalance. - onUnhealthy?: null | string @go(OnUnhealthy,*string) -} - -#TargetFailoverParameters: { - // Indicates how the GWLB handles existing flows when a target is deregistered. Possible values are rebalance and no_rebalance. Must match the attribute value set for on_unhealthy. Default: no_rebalance. - // +kubebuilder:validation:Optional - onDeregistration?: null | string @go(OnDeregistration,*string) - - // Indicates how the GWLB handles existing flows when a target is unhealthy. Possible values are rebalance and no_rebalance. Must match the attribute value set for on_deregistration. Default: no_rebalance. - // +kubebuilder:validation:Optional - onUnhealthy?: null | string @go(OnUnhealthy,*string) -} - -// LBTargetGroupSpec defines the desired state of LBTargetGroup -#LBTargetGroupSpec: { - v1.#ResourceSpec - forProvider: #LBTargetGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LBTargetGroupInitParameters @go(InitProvider) -} - -// LBTargetGroupStatus defines the observed state of LBTargetGroup. -#LBTargetGroupStatus: { - v1.#ResourceStatus - atProvider?: #LBTargetGroupObservation @go(AtProvider) -} - -// LBTargetGroup is the Schema for the LBTargetGroups API. Provides a Target Group resource for use with Load Balancers. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LBTargetGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #LBTargetGroupSpec @go(Spec) - status?: #LBTargetGroupStatus @go(Status) -} - -// LBTargetGroupList contains a list of LBTargetGroups -#LBTargetGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LBTargetGroup] @go(Items,[]LBTargetGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lbtargetgroupattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lbtargetgroupattachment_types_go_gen.cue deleted file mode 100644 index b8fd7f4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/elbv2/v1beta1/zz_lbtargetgroupattachment_types_go_gen.cue +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/elbv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LBTargetGroupAttachmentInitParameters: { - // The Availability Zone where the IP address of the target is to be registered. If the private ip address is outside of the VPC scope, this value must be set to 'all'. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The port on which targets receive traffic. - port?: null | float64 @go(Port,*float64) - - // The ID of the target. This is the Instance ID for an instance, or the container ID for an ECS container. If the target type is ip, specify an IP address. If the target type is lambda, specify the arn of lambda. If the target type is alb, specify the arn of alb. - targetId?: null | string @go(TargetID,*string) -} - -#LBTargetGroupAttachmentObservation: { - // The Availability Zone where the IP address of the target is to be registered. If the private ip address is outside of the VPC scope, this value must be set to 'all'. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // A unique identifier for the attachment - id?: null | string @go(ID,*string) - - // The port on which targets receive traffic. - port?: null | float64 @go(Port,*float64) - - // The ARN of the target group with which to register targets - targetGroupArn?: null | string @go(TargetGroupArn,*string) - - // The ID of the target. This is the Instance ID for an instance, or the container ID for an ECS container. If the target type is ip, specify an IP address. If the target type is lambda, specify the arn of lambda. If the target type is alb, specify the arn of alb. - targetId?: null | string @go(TargetID,*string) -} - -#LBTargetGroupAttachmentParameters: { - // The Availability Zone where the IP address of the target is to be registered. If the private ip address is outside of the VPC scope, this value must be set to 'all'. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The port on which targets receive traffic. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of the target group with which to register targets - // +crossplane:generate:reference:type=LBTargetGroup - // +kubebuilder:validation:Optional - targetGroupArn?: null | string @go(TargetGroupArn,*string) - - // Reference to a LBTargetGroup to populate targetGroupArn. - // +kubebuilder:validation:Optional - targetGroupArnRef?: null | v1.#Reference @go(TargetGroupArnRef,*v1.Reference) - - // Selector for a LBTargetGroup to populate targetGroupArn. - // +kubebuilder:validation:Optional - targetGroupArnSelector?: null | v1.#Selector @go(TargetGroupArnSelector,*v1.Selector) - - // The ID of the target. This is the Instance ID for an instance, or the container ID for an ECS container. If the target type is ip, specify an IP address. If the target type is lambda, specify the arn of lambda. If the target type is alb, specify the arn of alb. - // +kubebuilder:validation:Optional - targetId?: null | string @go(TargetID,*string) -} - -// LBTargetGroupAttachmentSpec defines the desired state of LBTargetGroupAttachment -#LBTargetGroupAttachmentSpec: { - v1.#ResourceSpec - forProvider: #LBTargetGroupAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LBTargetGroupAttachmentInitParameters @go(InitProvider) -} - -// LBTargetGroupAttachmentStatus defines the observed state of LBTargetGroupAttachment. -#LBTargetGroupAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #LBTargetGroupAttachmentObservation @go(AtProvider) -} - -// LBTargetGroupAttachment is the Schema for the LBTargetGroupAttachments API. Provides the ability to register instances and containers with a LB target group -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LBTargetGroupAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targetId) || (has(self.initProvider) && has(self.initProvider.targetId))",message="spec.forProvider.targetId is a required parameter" - spec: #LBTargetGroupAttachmentSpec @go(Spec) - status?: #LBTargetGroupAttachmentStatus @go(Status) -} - -// LBTargetGroupAttachmentList contains a list of LBTargetGroupAttachments -#LBTargetGroupAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LBTargetGroupAttachment] @go(Items,[]LBTargetGroupAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/emr/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/emr/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index e526b92..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/emr/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/emr/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=emr.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "emr.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/emr/v1beta1/zz_securityconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/emr/v1beta1/zz_securityconfiguration_types_go_gen.cue deleted file mode 100644 index cd77f36..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/emr/v1beta1/zz_securityconfiguration_types_go_gen.cue +++ /dev/null @@ -1,84 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/emr/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SecurityConfigurationInitParameters: { - // A JSON formatted Security Configuration - configuration?: null | string @go(Configuration,*string) -} - -#SecurityConfigurationObservation: { - // A JSON formatted Security Configuration - configuration?: null | string @go(Configuration,*string) - - // Date the Security Configuration was created - creationDate?: null | string @go(CreationDate,*string) - - // The ID of the EMR Security Configuration (Same as the name) - id?: null | string @go(ID,*string) -} - -#SecurityConfigurationParameters: { - // A JSON formatted Security Configuration - // +kubebuilder:validation:Optional - configuration?: null | string @go(Configuration,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// SecurityConfigurationSpec defines the desired state of SecurityConfiguration -#SecurityConfigurationSpec: { - v1.#ResourceSpec - forProvider: #SecurityConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SecurityConfigurationInitParameters @go(InitProvider) -} - -// SecurityConfigurationStatus defines the observed state of SecurityConfiguration. -#SecurityConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #SecurityConfigurationObservation @go(AtProvider) -} - -// SecurityConfiguration is the Schema for the SecurityConfigurations API. Provides a resource to manage AWS EMR Security Configurations -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SecurityConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.configuration) || (has(self.initProvider) && has(self.initProvider.configuration))",message="spec.forProvider.configuration is a required parameter" - spec: #SecurityConfigurationSpec @go(Spec) - status?: #SecurityConfigurationStatus @go(Status) -} - -// SecurityConfigurationList contains a list of SecurityConfigurations -#SecurityConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SecurityConfiguration] @go(Items,[]SecurityConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/emrserverless/v1beta1/zz_application_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/emrserverless/v1beta1/zz_application_types_go_gen.cue deleted file mode 100644 index bf80f78..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/emrserverless/v1beta1/zz_application_types_go_gen.cue +++ /dev/null @@ -1,397 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/emrserverless/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ApplicationInitParameters: { - // – The CPU architecture of an application. Valid values are ARM64 or X86_64. Default value is X86_64. - architecture?: null | string @go(Architecture,*string) - - // – The configuration for an application to automatically start on job submission. - autoStartConfiguration?: [...#AutoStartConfigurationInitParameters] @go(AutoStartConfiguration,[]AutoStartConfigurationInitParameters) - - // – The configuration for an application to automatically stop after a certain amount of time being idle. - autoStopConfiguration?: [...#AutoStopConfigurationInitParameters] @go(AutoStopConfiguration,[]AutoStopConfigurationInitParameters) - - // – The image configuration applied to all worker types. - imageConfiguration?: [...#ImageConfigurationInitParameters] @go(ImageConfiguration,[]ImageConfigurationInitParameters) - - // – The capacity to initialize when the application is created. - initialCapacity?: [...#InitialCapacityInitParameters] @go(InitialCapacity,[]InitialCapacityInitParameters) - - // – The maximum capacity to allocate when the application is created. This is cumulative across all workers at any given point in time, not just when an application is created. No new resources will be created once any one of the defined limits is hit. - maximumCapacity?: [...#MaximumCapacityInitParameters] @go(MaximumCapacity,[]MaximumCapacityInitParameters) - - // – The name of the application. - name?: null | string @go(Name,*string) - - // – The network configuration for customer VPC connectivity. - networkConfiguration?: [...#NetworkConfigurationInitParameters] @go(NetworkConfiguration,[]NetworkConfigurationInitParameters) - - // – The EMR release version associated with the application. - releaseLabel?: null | string @go(ReleaseLabel,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // – The type of application you want to start, such as spark or hive. - type?: null | string @go(Type,*string) -} - -#ApplicationObservation: { - // – The CPU architecture of an application. Valid values are ARM64 or X86_64. Default value is X86_64. - architecture?: null | string @go(Architecture,*string) - - // ARN of the cluster. - arn?: null | string @go(Arn,*string) - - // – The configuration for an application to automatically start on job submission. - autoStartConfiguration?: [...#AutoStartConfigurationObservation] @go(AutoStartConfiguration,[]AutoStartConfigurationObservation) - - // – The configuration for an application to automatically stop after a certain amount of time being idle. - autoStopConfiguration?: [...#AutoStopConfigurationObservation] @go(AutoStopConfiguration,[]AutoStopConfigurationObservation) - - // The ID of the cluster. - id?: null | string @go(ID,*string) - - // – The image configuration applied to all worker types. - imageConfiguration?: [...#ImageConfigurationObservation] @go(ImageConfiguration,[]ImageConfigurationObservation) - - // – The capacity to initialize when the application is created. - initialCapacity?: [...#InitialCapacityObservation] @go(InitialCapacity,[]InitialCapacityObservation) - - // – The maximum capacity to allocate when the application is created. This is cumulative across all workers at any given point in time, not just when an application is created. No new resources will be created once any one of the defined limits is hit. - maximumCapacity?: [...#MaximumCapacityObservation] @go(MaximumCapacity,[]MaximumCapacityObservation) - - // – The name of the application. - name?: null | string @go(Name,*string) - - // – The network configuration for customer VPC connectivity. - networkConfiguration?: [...#NetworkConfigurationObservation] @go(NetworkConfiguration,[]NetworkConfigurationObservation) - - // – The EMR release version associated with the application. - releaseLabel?: null | string @go(ReleaseLabel,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // – The type of application you want to start, such as spark or hive. - type?: null | string @go(Type,*string) -} - -#ApplicationParameters: { - // – The CPU architecture of an application. Valid values are ARM64 or X86_64. Default value is X86_64. - // +kubebuilder:validation:Optional - architecture?: null | string @go(Architecture,*string) - - // – The configuration for an application to automatically start on job submission. - // +kubebuilder:validation:Optional - autoStartConfiguration?: [...#AutoStartConfigurationParameters] @go(AutoStartConfiguration,[]AutoStartConfigurationParameters) - - // – The configuration for an application to automatically stop after a certain amount of time being idle. - // +kubebuilder:validation:Optional - autoStopConfiguration?: [...#AutoStopConfigurationParameters] @go(AutoStopConfiguration,[]AutoStopConfigurationParameters) - - // – The image configuration applied to all worker types. - // +kubebuilder:validation:Optional - imageConfiguration?: [...#ImageConfigurationParameters] @go(ImageConfiguration,[]ImageConfigurationParameters) - - // – The capacity to initialize when the application is created. - // +kubebuilder:validation:Optional - initialCapacity?: [...#InitialCapacityParameters] @go(InitialCapacity,[]InitialCapacityParameters) - - // – The maximum capacity to allocate when the application is created. This is cumulative across all workers at any given point in time, not just when an application is created. No new resources will be created once any one of the defined limits is hit. - // +kubebuilder:validation:Optional - maximumCapacity?: [...#MaximumCapacityParameters] @go(MaximumCapacity,[]MaximumCapacityParameters) - - // – The name of the application. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // – The network configuration for customer VPC connectivity. - // +kubebuilder:validation:Optional - networkConfiguration?: [...#NetworkConfigurationParameters] @go(NetworkConfiguration,[]NetworkConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // – The EMR release version associated with the application. - // +kubebuilder:validation:Optional - releaseLabel?: null | string @go(ReleaseLabel,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // – The type of application you want to start, such as spark or hive. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#AutoStartConfigurationInitParameters: { - // Enables the application to automatically start on job submission. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) -} - -#AutoStartConfigurationObservation: { - // Enables the application to automatically start on job submission. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) -} - -#AutoStartConfigurationParameters: { - // Enables the application to automatically start on job submission. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#AutoStopConfigurationInitParameters: { - // Enables the application to automatically start on job submission. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // The amount of idle time in minutes after which your application will automatically stop. Defaults to 15 minutes. - idleTimeoutMinutes?: null | float64 @go(IdleTimeoutMinutes,*float64) -} - -#AutoStopConfigurationObservation: { - // Enables the application to automatically start on job submission. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // The amount of idle time in minutes after which your application will automatically stop. Defaults to 15 minutes. - idleTimeoutMinutes?: null | float64 @go(IdleTimeoutMinutes,*float64) -} - -#AutoStopConfigurationParameters: { - // Enables the application to automatically start on job submission. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The amount of idle time in minutes after which your application will automatically stop. Defaults to 15 minutes. - // +kubebuilder:validation:Optional - idleTimeoutMinutes?: null | float64 @go(IdleTimeoutMinutes,*float64) -} - -#ImageConfigurationInitParameters: { - // The image URI. - imageUri?: null | string @go(ImageURI,*string) -} - -#ImageConfigurationObservation: { - // The image URI. - imageUri?: null | string @go(ImageURI,*string) -} - -#ImageConfigurationParameters: { - // The image URI. - // +kubebuilder:validation:Optional - imageUri?: null | string @go(ImageURI,*string) -} - -#InitialCapacityConfigInitParameters: { - // The resource configuration of the initial capacity configuration. - workerConfiguration?: [...#WorkerConfigurationInitParameters] @go(WorkerConfiguration,[]WorkerConfigurationInitParameters) - - // The number of workers in the initial capacity configuration. - workerCount?: null | float64 @go(WorkerCount,*float64) -} - -#InitialCapacityConfigObservation: { - // The resource configuration of the initial capacity configuration. - workerConfiguration?: [...#WorkerConfigurationObservation] @go(WorkerConfiguration,[]WorkerConfigurationObservation) - - // The number of workers in the initial capacity configuration. - workerCount?: null | float64 @go(WorkerCount,*float64) -} - -#InitialCapacityConfigParameters: { - // The resource configuration of the initial capacity configuration. - // +kubebuilder:validation:Optional - workerConfiguration?: [...#WorkerConfigurationParameters] @go(WorkerConfiguration,[]WorkerConfigurationParameters) - - // The number of workers in the initial capacity configuration. - // +kubebuilder:validation:Optional - workerCount?: null | float64 @go(WorkerCount,*float64) -} - -#InitialCapacityInitParameters: { - // The initial capacity configuration per worker. - initialCapacityConfig?: [...#InitialCapacityConfigInitParameters] @go(InitialCapacityConfig,[]InitialCapacityConfigInitParameters) - - // The worker type for an analytics framework. For Spark applications, the key can either be set to Driver or Executor. For Hive applications, it can be set to HiveDriver or TezTask. - initialCapacityType?: null | string @go(InitialCapacityType,*string) -} - -#InitialCapacityObservation: { - // The initial capacity configuration per worker. - initialCapacityConfig?: [...#InitialCapacityConfigObservation] @go(InitialCapacityConfig,[]InitialCapacityConfigObservation) - - // The worker type for an analytics framework. For Spark applications, the key can either be set to Driver or Executor. For Hive applications, it can be set to HiveDriver or TezTask. - initialCapacityType?: null | string @go(InitialCapacityType,*string) -} - -#InitialCapacityParameters: { - // The initial capacity configuration per worker. - // +kubebuilder:validation:Optional - initialCapacityConfig?: [...#InitialCapacityConfigParameters] @go(InitialCapacityConfig,[]InitialCapacityConfigParameters) - - // The worker type for an analytics framework. For Spark applications, the key can either be set to Driver or Executor. For Hive applications, it can be set to HiveDriver or TezTask. - // +kubebuilder:validation:Optional - initialCapacityType?: null | string @go(InitialCapacityType,*string) -} - -#MaximumCapacityInitParameters: { - // The maximum allowed CPU for an application. - cpu?: null | string @go(CPU,*string) - - // The maximum allowed disk for an application. - disk?: null | string @go(Disk,*string) - - // The maximum allowed resources for an application. - memory?: null | string @go(Memory,*string) -} - -#MaximumCapacityObservation: { - // The maximum allowed CPU for an application. - cpu?: null | string @go(CPU,*string) - - // The maximum allowed disk for an application. - disk?: null | string @go(Disk,*string) - - // The maximum allowed resources for an application. - memory?: null | string @go(Memory,*string) -} - -#MaximumCapacityParameters: { - // The maximum allowed CPU for an application. - // +kubebuilder:validation:Optional - cpu?: null | string @go(CPU,*string) - - // The maximum allowed disk for an application. - // +kubebuilder:validation:Optional - disk?: null | string @go(Disk,*string) - - // The maximum allowed resources for an application. - // +kubebuilder:validation:Optional - memory?: null | string @go(Memory,*string) -} - -#NetworkConfigurationInitParameters: { - // The array of security group Ids for customer VPC connectivity. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The array of subnet Ids for customer VPC connectivity. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#NetworkConfigurationObservation: { - // The array of security group Ids for customer VPC connectivity. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The array of subnet Ids for customer VPC connectivity. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#NetworkConfigurationParameters: { - // The array of security group Ids for customer VPC connectivity. - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The array of subnet Ids for customer VPC connectivity. - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#WorkerConfigurationInitParameters: { - // The maximum allowed CPU for an application. - cpu?: null | string @go(CPU,*string) - - // The maximum allowed disk for an application. - disk?: null | string @go(Disk,*string) - - // The maximum allowed resources for an application. - memory?: null | string @go(Memory,*string) -} - -#WorkerConfigurationObservation: { - // The maximum allowed CPU for an application. - cpu?: null | string @go(CPU,*string) - - // The maximum allowed disk for an application. - disk?: null | string @go(Disk,*string) - - // The maximum allowed resources for an application. - memory?: null | string @go(Memory,*string) -} - -#WorkerConfigurationParameters: { - // The maximum allowed CPU for an application. - // +kubebuilder:validation:Optional - cpu?: null | string @go(CPU,*string) - - // The maximum allowed disk for an application. - // +kubebuilder:validation:Optional - disk?: null | string @go(Disk,*string) - - // The maximum allowed resources for an application. - // +kubebuilder:validation:Optional - memory?: null | string @go(Memory,*string) -} - -// ApplicationSpec defines the desired state of Application -#ApplicationSpec: { - v1.#ResourceSpec - forProvider: #ApplicationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ApplicationInitParameters @go(InitProvider) -} - -// ApplicationStatus defines the observed state of Application. -#ApplicationStatus: { - v1.#ResourceStatus - atProvider?: #ApplicationObservation @go(AtProvider) -} - -// Application is the Schema for the Applications API. Manages an EMR Serverless Application -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Application: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.releaseLabel) || (has(self.initProvider) && has(self.initProvider.releaseLabel))",message="spec.forProvider.releaseLabel is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #ApplicationSpec @go(Spec) - status?: #ApplicationStatus @go(Status) -} - -// ApplicationList contains a list of Applications -#ApplicationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Application] @go(Items,[]Application) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/emrserverless/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/emrserverless/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 85311c6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/emrserverless/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/emrserverless/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=emrserverless.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "emrserverless.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/evidently/v1beta1/zz_feature_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/evidently/v1beta1/zz_feature_types_go_gen.cue deleted file mode 100644 index f5413cf..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/evidently/v1beta1/zz_feature_types_go_gen.cue +++ /dev/null @@ -1,255 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/evidently/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EvaluationRulesInitParameters: { -} - -#EvaluationRulesObservation: { - // The name of the experiment or launch. - name?: null | string @go(Name,*string) - - // This value is aws.evidently.splits if this is an evaluation rule for a launch, and it is aws.evidently.onlineab if this is an evaluation rule for an experiment. - type?: null | string @go(Type,*string) -} - -#EvaluationRulesParameters: { -} - -#FeatureInitParameters: { - // The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature. This variation must also be listed in the variations structure. If you omit default_variation, the first variation listed in the variations structure is used as the default variation. - defaultVariation?: null | string @go(DefaultVariation,*string) - - // Specifies the description of the feature. - description?: null | string @go(Description,*string) - - // Specify users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served. - entityOverrides?: {[string]: null | string} @go(EntityOverrides,map[string]*string) - - // Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead. - evaluationStrategy?: null | string @go(EvaluationStrategy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // One or more blocks that contain the configuration of the feature's different variations. Detailed below - variations?: [...#VariationsInitParameters] @go(Variations,[]VariationsInitParameters) -} - -#FeatureObservation: { - // The ARN of the feature. - arn?: null | string @go(Arn,*string) - - // The date and time that the feature is created. - createdTime?: null | string @go(CreatedTime,*string) - - // The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature. This variation must also be listed in the variations structure. If you omit default_variation, the first variation listed in the variations structure is used as the default variation. - defaultVariation?: null | string @go(DefaultVariation,*string) - - // Specifies the description of the feature. - description?: null | string @go(Description,*string) - - // Specify users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served. - entityOverrides?: {[string]: null | string} @go(EntityOverrides,map[string]*string) - - // One or more blocks that define the evaluation rules for the feature. Detailed below - evaluationRules?: [...#EvaluationRulesObservation] @go(EvaluationRules,[]EvaluationRulesObservation) - - // Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead. - evaluationStrategy?: null | string @go(EvaluationStrategy,*string) - - // The feature name and the project name or arn separated by a colon (:). - id?: null | string @go(ID,*string) - - // The date and time that the feature was most recently updated. - lastUpdatedTime?: null | string @go(LastUpdatedTime,*string) - - // The name or ARN of the project that is to contain the new feature. - project?: null | string @go(Project,*string) - - // The current state of the feature. Valid values are AVAILABLE and UPDATING. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Defines the type of value used to define the different feature variations. Valid Values: STRING, LONG, DOUBLE, BOOLEAN. - valueType?: null | string @go(ValueType,*string) - - // One or more blocks that contain the configuration of the feature's different variations. Detailed below - variations?: [...#VariationsObservation] @go(Variations,[]VariationsObservation) -} - -#FeatureParameters: { - // The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature. This variation must also be listed in the variations structure. If you omit default_variation, the first variation listed in the variations structure is used as the default variation. - // +kubebuilder:validation:Optional - defaultVariation?: null | string @go(DefaultVariation,*string) - - // Specifies the description of the feature. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specify users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served. - // +kubebuilder:validation:Optional - entityOverrides?: {[string]: null | string} @go(EntityOverrides,map[string]*string) - - // Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead. - // +kubebuilder:validation:Optional - evaluationStrategy?: null | string @go(EvaluationStrategy,*string) - - // The name or ARN of the project that is to contain the new feature. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/evidently/v1beta1.Project - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - project?: null | string @go(Project,*string) - - // Reference to a Project in evidently to populate project. - // +kubebuilder:validation:Optional - projectRef?: null | v1.#Reference @go(ProjectRef,*v1.Reference) - - // Selector for a Project in evidently to populate project. - // +kubebuilder:validation:Optional - projectSelector?: null | v1.#Selector @go(ProjectSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // One or more blocks that contain the configuration of the feature's different variations. Detailed below - // +kubebuilder:validation:Optional - variations?: [...#VariationsParameters] @go(Variations,[]VariationsParameters) -} - -#ValueInitParameters: { - // If this feature uses the Boolean variation type, this field contains the Boolean value of this variation. - boolValue?: null | string @go(BoolValue,*string) - - // If this feature uses the double integer variation type, this field contains the double integer value of this variation. - doubleValue?: null | string @go(DoubleValue,*string) - - // If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of -9007199254740991. Maximum value of 9007199254740991. - longValue?: null | string @go(LongValue,*string) - - // If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of 0. Maximum length of 512. - stringValue?: null | string @go(StringValue,*string) -} - -#ValueObservation: { - // If this feature uses the Boolean variation type, this field contains the Boolean value of this variation. - boolValue?: null | string @go(BoolValue,*string) - - // If this feature uses the double integer variation type, this field contains the double integer value of this variation. - doubleValue?: null | string @go(DoubleValue,*string) - - // If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of -9007199254740991. Maximum value of 9007199254740991. - longValue?: null | string @go(LongValue,*string) - - // If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of 0. Maximum length of 512. - stringValue?: null | string @go(StringValue,*string) -} - -#ValueParameters: { - // If this feature uses the Boolean variation type, this field contains the Boolean value of this variation. - // +kubebuilder:validation:Optional - boolValue?: null | string @go(BoolValue,*string) - - // If this feature uses the double integer variation type, this field contains the double integer value of this variation. - // +kubebuilder:validation:Optional - doubleValue?: null | string @go(DoubleValue,*string) - - // If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of -9007199254740991. Maximum value of 9007199254740991. - // +kubebuilder:validation:Optional - longValue?: null | string @go(LongValue,*string) - - // If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of 0. Maximum length of 512. - // +kubebuilder:validation:Optional - stringValue?: null | string @go(StringValue,*string) -} - -#VariationsInitParameters: { - // The name of the variation. Minimum length of 1. Maximum length of 127. - name?: null | string @go(Name,*string) - - // A block that specifies the value assigned to this variation. Detailed below - value?: [...#ValueInitParameters] @go(Value,[]ValueInitParameters) -} - -#VariationsObservation: { - // The name of the variation. Minimum length of 1. Maximum length of 127. - name?: null | string @go(Name,*string) - - // A block that specifies the value assigned to this variation. Detailed below - value?: [...#ValueObservation] @go(Value,[]ValueObservation) -} - -#VariationsParameters: { - // The name of the variation. Minimum length of 1. Maximum length of 127. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A block that specifies the value assigned to this variation. Detailed below - // +kubebuilder:validation:Optional - value: [...#ValueParameters] @go(Value,[]ValueParameters) -} - -// FeatureSpec defines the desired state of Feature -#FeatureSpec: { - v1.#ResourceSpec - forProvider: #FeatureParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FeatureInitParameters @go(InitProvider) -} - -// FeatureStatus defines the observed state of Feature. -#FeatureStatus: { - v1.#ResourceStatus - atProvider?: #FeatureObservation @go(AtProvider) -} - -// Feature is the Schema for the Features API. Provides a CloudWatch Evidently Feature resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Feature: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.variations) || (has(self.initProvider) && has(self.initProvider.variations))",message="spec.forProvider.variations is a required parameter" - spec: #FeatureSpec @go(Spec) - status?: #FeatureStatus @go(Status) -} - -// FeatureList contains a list of Features -#FeatureList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Feature] @go(Items,[]Feature) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/evidently/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/evidently/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index a8ebbd0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/evidently/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/evidently/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=evidently.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "evidently.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/evidently/v1beta1/zz_project_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/evidently/v1beta1/zz_project_types_go_gen.cue deleted file mode 100644 index ae9ae44..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/evidently/v1beta1/zz_project_types_go_gen.cue +++ /dev/null @@ -1,209 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/evidently/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CloudwatchLogsInitParameters: { - // The name of the log group where the project stores evaluation events. - logGroup?: null | string @go(LogGroup,*string) -} - -#CloudwatchLogsObservation: { - // The name of the log group where the project stores evaluation events. - logGroup?: null | string @go(LogGroup,*string) -} - -#CloudwatchLogsParameters: { - // The name of the log group where the project stores evaluation events. - // +kubebuilder:validation:Optional - logGroup?: null | string @go(LogGroup,*string) -} - -#DataDeliveryInitParameters: { - // A block that defines the CloudWatch Log Group that stores the evaluation events. See below. - cloudwatchLogs?: [...#CloudwatchLogsInitParameters] @go(CloudwatchLogs,[]CloudwatchLogsInitParameters) - - // A block that defines the S3 bucket and prefix that stores the evaluation events. See below. - s3Destination?: [...#S3DestinationInitParameters] @go(S3Destination,[]S3DestinationInitParameters) -} - -#DataDeliveryObservation: { - // A block that defines the CloudWatch Log Group that stores the evaluation events. See below. - cloudwatchLogs?: [...#CloudwatchLogsObservation] @go(CloudwatchLogs,[]CloudwatchLogsObservation) - - // A block that defines the S3 bucket and prefix that stores the evaluation events. See below. - s3Destination?: [...#S3DestinationObservation] @go(S3Destination,[]S3DestinationObservation) -} - -#DataDeliveryParameters: { - // A block that defines the CloudWatch Log Group that stores the evaluation events. See below. - // +kubebuilder:validation:Optional - cloudwatchLogs?: [...#CloudwatchLogsParameters] @go(CloudwatchLogs,[]CloudwatchLogsParameters) - - // A block that defines the S3 bucket and prefix that stores the evaluation events. See below. - // +kubebuilder:validation:Optional - s3Destination?: [...#S3DestinationParameters] @go(S3Destination,[]S3DestinationParameters) -} - -#ProjectInitParameters: { - // A block that contains information about where Evidently is to store evaluation events for longer term storage, if you choose to do so. If you choose not to store these events, Evidently deletes them after using them to produce metrics and other experiment results that you can view. See below. - dataDelivery?: [...#DataDeliveryInitParameters] @go(DataDelivery,[]DataDeliveryInitParameters) - - // Specifies the description of the project. - description?: null | string @go(Description,*string) - - // A name for the project. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ProjectObservation: { - // The number of ongoing experiments currently in the project. - activeExperimentCount?: null | float64 @go(ActiveExperimentCount,*float64) - - // The number of ongoing launches currently in the project. - activeLaunchCount?: null | float64 @go(ActiveLaunchCount,*float64) - - // The ARN of the project. - arn?: null | string @go(Arn,*string) - - // The date and time that the project is created. - createdTime?: null | string @go(CreatedTime,*string) - - // A block that contains information about where Evidently is to store evaluation events for longer term storage, if you choose to do so. If you choose not to store these events, Evidently deletes them after using them to produce metrics and other experiment results that you can view. See below. - dataDelivery?: [...#DataDeliveryObservation] @go(DataDelivery,[]DataDeliveryObservation) - - // Specifies the description of the project. - description?: null | string @go(Description,*string) - - // The number of experiments currently in the project. This includes all experiments that have been created and not deleted, whether they are ongoing or not. - experimentCount?: null | float64 @go(ExperimentCount,*float64) - - // The number of features currently in the project. - featureCount?: null | float64 @go(FeatureCount,*float64) - - // The ID has the same value as the arn of the project. - id?: null | string @go(ID,*string) - - // The date and time that the project was most recently updated. - lastUpdatedTime?: null | string @go(LastUpdatedTime,*string) - - // The number of launches currently in the project. This includes all launches that have been created and not deleted, whether they are ongoing or not. - launchCount?: null | float64 @go(LaunchCount,*float64) - - // A name for the project. - name?: null | string @go(Name,*string) - - // The current state of the project. Valid values are AVAILABLE and UPDATING. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ProjectParameters: { - // A block that contains information about where Evidently is to store evaluation events for longer term storage, if you choose to do so. If you choose not to store these events, Evidently deletes them after using them to produce metrics and other experiment results that you can view. See below. - // +kubebuilder:validation:Optional - dataDelivery?: [...#DataDeliveryParameters] @go(DataDelivery,[]DataDeliveryParameters) - - // Specifies the description of the project. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A name for the project. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#S3DestinationInitParameters: { - // The name of the bucket in which Evidently stores evaluation events. - bucket?: null | string @go(Bucket,*string) - - // The bucket prefix in which Evidently stores evaluation events. - prefix?: null | string @go(Prefix,*string) -} - -#S3DestinationObservation: { - // The name of the bucket in which Evidently stores evaluation events. - bucket?: null | string @go(Bucket,*string) - - // The bucket prefix in which Evidently stores evaluation events. - prefix?: null | string @go(Prefix,*string) -} - -#S3DestinationParameters: { - // The name of the bucket in which Evidently stores evaluation events. - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // The bucket prefix in which Evidently stores evaluation events. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) -} - -// ProjectSpec defines the desired state of Project -#ProjectSpec: { - v1.#ResourceSpec - forProvider: #ProjectParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProjectInitParameters @go(InitProvider) -} - -// ProjectStatus defines the observed state of Project. -#ProjectStatus: { - v1.#ResourceStatus - atProvider?: #ProjectObservation @go(AtProvider) -} - -// Project is the Schema for the Projects API. Provides a CloudWatch Evidently Project resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Project: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ProjectSpec @go(Spec) - status?: #ProjectStatus @go(Status) -} - -// ProjectList contains a list of Projects -#ProjectList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Project] @go(Items,[]Project) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/evidently/v1beta1/zz_segment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/evidently/v1beta1/zz_segment_types_go_gen.cue deleted file mode 100644 index d8981bd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/evidently/v1beta1/zz_segment_types_go_gen.cue +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/evidently/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SegmentInitParameters: { - // Specifies the description of the segment. - description?: null | string @go(Description,*string) - - // The pattern to use for the segment. For more information about pattern syntax, see Segment rule pattern syntax. - pattern?: null | string @go(Pattern,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SegmentObservation: { - // The ARN of the segment. - arn?: null | string @go(Arn,*string) - - // The date and time that the segment is created. - createdTime?: null | string @go(CreatedTime,*string) - - // Specifies the description of the segment. - description?: null | string @go(Description,*string) - - // The number of experiments that this segment is used in. This count includes all current experiments, not just those that are currently running. - experimentCount?: null | float64 @go(ExperimentCount,*float64) - - // The ID has the same value as the ARN of the segment. - id?: null | string @go(ID,*string) - - // The date and time that this segment was most recently updated. - lastUpdatedTime?: null | string @go(LastUpdatedTime,*string) - - // The number of launches that this segment is used in. This count includes all current launches, not just those that are currently running. - launchCount?: null | float64 @go(LaunchCount,*float64) - - // The pattern to use for the segment. For more information about pattern syntax, see Segment rule pattern syntax. - pattern?: null | string @go(Pattern,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SegmentParameters: { - // Specifies the description of the segment. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The pattern to use for the segment. For more information about pattern syntax, see Segment rule pattern syntax. - // +kubebuilder:validation:Optional - pattern?: null | string @go(Pattern,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SegmentSpec defines the desired state of Segment -#SegmentSpec: { - v1.#ResourceSpec - forProvider: #SegmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SegmentInitParameters @go(InitProvider) -} - -// SegmentStatus defines the observed state of Segment. -#SegmentStatus: { - v1.#ResourceStatus - atProvider?: #SegmentObservation @go(AtProvider) -} - -// Segment is the Schema for the Segments API. Provides a CloudWatch Evidently Segment resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Segment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.pattern) || (has(self.initProvider) && has(self.initProvider.pattern))",message="spec.forProvider.pattern is a required parameter" - spec: #SegmentSpec @go(Spec) - status?: #SegmentStatus @go(Status) -} - -// SegmentList contains a list of Segments -#SegmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Segment] @go(Items,[]Segment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/firehose/v1beta1/zz_deliverystream_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/firehose/v1beta1/zz_deliverystream_types_go_gen.cue deleted file mode 100644 index 310cc5b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/firehose/v1beta1/zz_deliverystream_types_go_gen.cue +++ /dev/null @@ -1,2805 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/firehose/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CloudwatchLoggingOptionsInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#CloudwatchLoggingOptionsObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#CloudwatchLoggingOptionsParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logStreamName?: null | string @go(LogStreamName,*string) -} - -#CommonAttributesInitParameters: { - // The HTTP endpoint name. - name?: null | string @go(Name,*string) - - // The value of the HTTP endpoint common attribute. - value?: null | string @go(Value,*string) -} - -#CommonAttributesObservation: { - // The HTTP endpoint name. - name?: null | string @go(Name,*string) - - // The value of the HTTP endpoint common attribute. - value?: null | string @go(Value,*string) -} - -#CommonAttributesParameters: { - // The HTTP endpoint name. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of the HTTP endpoint common attribute. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#DataFormatConversionConfigurationInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Nested argument that specifies the deserializer that you want Kinesis Data Firehose to use to convert the format of your data from JSON. More details below. - inputFormatConfiguration?: [...#InputFormatConfigurationInitParameters] @go(InputFormatConfiguration,[]InputFormatConfigurationInitParameters) - - // Nested argument that specifies the serializer that you want Kinesis Data Firehose to use to convert the format of your data to the Parquet or ORC format. More details below. - outputFormatConfiguration?: [...#OutputFormatConfigurationInitParameters] @go(OutputFormatConfiguration,[]OutputFormatConfigurationInitParameters) - - // Nested argument that specifies the AWS Glue Data Catalog table that contains the column information. More details below. - schemaConfiguration?: [...#SchemaConfigurationInitParameters] @go(SchemaConfiguration,[]SchemaConfigurationInitParameters) -} - -#DataFormatConversionConfigurationObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Nested argument that specifies the deserializer that you want Kinesis Data Firehose to use to convert the format of your data from JSON. More details below. - inputFormatConfiguration?: [...#InputFormatConfigurationObservation] @go(InputFormatConfiguration,[]InputFormatConfigurationObservation) - - // Nested argument that specifies the serializer that you want Kinesis Data Firehose to use to convert the format of your data to the Parquet or ORC format. More details below. - outputFormatConfiguration?: [...#OutputFormatConfigurationObservation] @go(OutputFormatConfiguration,[]OutputFormatConfigurationObservation) - - // Nested argument that specifies the AWS Glue Data Catalog table that contains the column information. More details below. - schemaConfiguration?: [...#SchemaConfigurationObservation] @go(SchemaConfiguration,[]SchemaConfigurationObservation) -} - -#DataFormatConversionConfigurationParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Nested argument that specifies the deserializer that you want Kinesis Data Firehose to use to convert the format of your data from JSON. More details below. - // +kubebuilder:validation:Optional - inputFormatConfiguration: [...#InputFormatConfigurationParameters] @go(InputFormatConfiguration,[]InputFormatConfigurationParameters) - - // Nested argument that specifies the serializer that you want Kinesis Data Firehose to use to convert the format of your data to the Parquet or ORC format. More details below. - // +kubebuilder:validation:Optional - outputFormatConfiguration: [...#OutputFormatConfigurationParameters] @go(OutputFormatConfiguration,[]OutputFormatConfigurationParameters) - - // Nested argument that specifies the AWS Glue Data Catalog table that contains the column information. More details below. - // +kubebuilder:validation:Optional - schemaConfiguration: [...#SchemaConfigurationParameters] @go(SchemaConfiguration,[]SchemaConfigurationParameters) -} - -#DeliveryStreamInitParameters: { - // The Amazon Resource Name (ARN) specifying the Stream - arn?: null | string @go(Arn,*string) - - // – This is the destination to where the data is delivered. The only options are s3 (Deprecated, use extended_s3 instead), extended_s3, redshift, elasticsearch, splunk, http_endpoint and opensearch. - destination?: null | string @go(Destination,*string) - destinationId?: null | string @go(DestinationID,*string) - - // Configuration options if elasticsearch is the destination. More details are given below. - elasticsearchConfiguration?: [...#ElasticsearchConfigurationInitParameters] @go(ElasticsearchConfiguration,[]ElasticsearchConfigurationInitParameters) - - // Enhanced configuration options for the s3 destination. More details are given below. - extendedS3Configuration?: [...#ExtendedS3ConfigurationInitParameters] @go(ExtendedS3Configuration,[]ExtendedS3ConfigurationInitParameters) - - // Configuration options if http_endpoint is the destination. requires the user to also specify a s3_configuration block. More details are given below. - httpEndpointConfiguration?: [...#HTTPEndpointConfigurationInitParameters] @go(HTTPEndpointConfiguration,[]HTTPEndpointConfigurationInitParameters) - - // Allows the ability to specify the kinesis stream that is used as the source of the firehose delivery stream. - kinesisSourceConfiguration?: [...#KinesisSourceConfigurationInitParameters] @go(KinesisSourceConfiguration,[]KinesisSourceConfigurationInitParameters) - - // A name to identify the stream. This is unique to the AWS account and region the Stream is created in. When using for WAF logging, name must be prefixed with aws-waf-logs-. See AWS Documentation for more details. - name?: null | string @go(Name,*string) - - // Configuration options if opensearch is the destination. More details are given below. - opensearchConfiguration?: [...#OpensearchConfigurationInitParameters] @go(OpensearchConfiguration,[]OpensearchConfigurationInitParameters) - - // Configuration options if redshift is the destination. - // Using redshift_configuration requires the user to also specify a - // s3_configuration block. More details are given below. - redshiftConfiguration?: [...#RedshiftConfigurationInitParameters] @go(RedshiftConfiguration,[]RedshiftConfigurationInitParameters) - - // Required for non-S3 destinations. For S3 destination, use extended_s3_configuration instead. Configuration options for the s3 destination (or the intermediate bucket if the destination - // is redshift). More details are given below. - s3Configuration?: [...#S3ConfigurationInitParameters] @go(S3Configuration,[]S3ConfigurationInitParameters) - - // Encrypt at rest options. - // Server-side encryption should not be enabled when a kinesis stream is configured as the source of the firehose delivery stream. - serverSideEncryption?: [...#ServerSideEncryptionInitParameters] @go(ServerSideEncryption,[]ServerSideEncryptionInitParameters) - - // Configuration options if splunk is the destination. More details are given below. - splunkConfiguration?: [...#SplunkConfigurationInitParameters] @go(SplunkConfiguration,[]SplunkConfigurationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the table version for the output data schema. Defaults to LATEST. - versionId?: null | string @go(VersionID,*string) -} - -#DeliveryStreamObservation: { - // The Amazon Resource Name (ARN) specifying the Stream - arn?: null | string @go(Arn,*string) - - // – This is the destination to where the data is delivered. The only options are s3 (Deprecated, use extended_s3 instead), extended_s3, redshift, elasticsearch, splunk, http_endpoint and opensearch. - destination?: null | string @go(Destination,*string) - destinationId?: null | string @go(DestinationID,*string) - - // Configuration options if elasticsearch is the destination. More details are given below. - elasticsearchConfiguration?: [...#ElasticsearchConfigurationObservation] @go(ElasticsearchConfiguration,[]ElasticsearchConfigurationObservation) - - // Enhanced configuration options for the s3 destination. More details are given below. - extendedS3Configuration?: [...#ExtendedS3ConfigurationObservation] @go(ExtendedS3Configuration,[]ExtendedS3ConfigurationObservation) - - // Configuration options if http_endpoint is the destination. requires the user to also specify a s3_configuration block. More details are given below. - httpEndpointConfiguration?: [...#HTTPEndpointConfigurationObservation] @go(HTTPEndpointConfiguration,[]HTTPEndpointConfigurationObservation) - id?: null | string @go(ID,*string) - - // Allows the ability to specify the kinesis stream that is used as the source of the firehose delivery stream. - kinesisSourceConfiguration?: [...#KinesisSourceConfigurationObservation] @go(KinesisSourceConfiguration,[]KinesisSourceConfigurationObservation) - - // A name to identify the stream. This is unique to the AWS account and region the Stream is created in. When using for WAF logging, name must be prefixed with aws-waf-logs-. See AWS Documentation for more details. - name?: null | string @go(Name,*string) - - // Configuration options if opensearch is the destination. More details are given below. - opensearchConfiguration?: [...#OpensearchConfigurationObservation] @go(OpensearchConfiguration,[]OpensearchConfigurationObservation) - - // Configuration options if redshift is the destination. - // Using redshift_configuration requires the user to also specify a - // s3_configuration block. More details are given below. - redshiftConfiguration?: [...#RedshiftConfigurationObservation] @go(RedshiftConfiguration,[]RedshiftConfigurationObservation) - - // Required for non-S3 destinations. For S3 destination, use extended_s3_configuration instead. Configuration options for the s3 destination (or the intermediate bucket if the destination - // is redshift). More details are given below. - s3Configuration?: [...#S3ConfigurationObservation] @go(S3Configuration,[]S3ConfigurationObservation) - - // Encrypt at rest options. - // Server-side encryption should not be enabled when a kinesis stream is configured as the source of the firehose delivery stream. - serverSideEncryption?: [...#ServerSideEncryptionObservation] @go(ServerSideEncryption,[]ServerSideEncryptionObservation) - - // Configuration options if splunk is the destination. More details are given below. - splunkConfiguration?: [...#SplunkConfigurationObservation] @go(SplunkConfiguration,[]SplunkConfigurationObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Specifies the table version for the output data schema. Defaults to LATEST. - versionId?: null | string @go(VersionID,*string) -} - -#DeliveryStreamParameters: { - // The Amazon Resource Name (ARN) specifying the Stream - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // – This is the destination to where the data is delivered. The only options are s3 (Deprecated, use extended_s3 instead), extended_s3, redshift, elasticsearch, splunk, http_endpoint and opensearch. - // +kubebuilder:validation:Optional - destination?: null | string @go(Destination,*string) - - // +kubebuilder:validation:Optional - destinationId?: null | string @go(DestinationID,*string) - - // Configuration options if elasticsearch is the destination. More details are given below. - // +kubebuilder:validation:Optional - elasticsearchConfiguration?: [...#ElasticsearchConfigurationParameters] @go(ElasticsearchConfiguration,[]ElasticsearchConfigurationParameters) - - // Enhanced configuration options for the s3 destination. More details are given below. - // +kubebuilder:validation:Optional - extendedS3Configuration?: [...#ExtendedS3ConfigurationParameters] @go(ExtendedS3Configuration,[]ExtendedS3ConfigurationParameters) - - // Configuration options if http_endpoint is the destination. requires the user to also specify a s3_configuration block. More details are given below. - // +kubebuilder:validation:Optional - httpEndpointConfiguration?: [...#HTTPEndpointConfigurationParameters] @go(HTTPEndpointConfiguration,[]HTTPEndpointConfigurationParameters) - - // Allows the ability to specify the kinesis stream that is used as the source of the firehose delivery stream. - // +kubebuilder:validation:Optional - kinesisSourceConfiguration?: [...#KinesisSourceConfigurationParameters] @go(KinesisSourceConfiguration,[]KinesisSourceConfigurationParameters) - - // A name to identify the stream. This is unique to the AWS account and region the Stream is created in. When using for WAF logging, name must be prefixed with aws-waf-logs-. See AWS Documentation for more details. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Configuration options if opensearch is the destination. More details are given below. - // +kubebuilder:validation:Optional - opensearchConfiguration?: [...#OpensearchConfigurationParameters] @go(OpensearchConfiguration,[]OpensearchConfigurationParameters) - - // Configuration options if redshift is the destination. - // Using redshift_configuration requires the user to also specify a - // s3_configuration block. More details are given below. - // +kubebuilder:validation:Optional - redshiftConfiguration?: [...#RedshiftConfigurationParameters] @go(RedshiftConfiguration,[]RedshiftConfigurationParameters) - - // If you don't specify an AWS Region, the default is the current region. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Required for non-S3 destinations. For S3 destination, use extended_s3_configuration instead. Configuration options for the s3 destination (or the intermediate bucket if the destination - // is redshift). More details are given below. - // +kubebuilder:validation:Optional - s3Configuration?: [...#S3ConfigurationParameters] @go(S3Configuration,[]S3ConfigurationParameters) - - // Encrypt at rest options. - // Server-side encryption should not be enabled when a kinesis stream is configured as the source of the firehose delivery stream. - // +kubebuilder:validation:Optional - serverSideEncryption?: [...#ServerSideEncryptionParameters] @go(ServerSideEncryption,[]ServerSideEncryptionParameters) - - // Configuration options if splunk is the destination. More details are given below. - // +kubebuilder:validation:Optional - splunkConfiguration?: [...#SplunkConfigurationParameters] @go(SplunkConfiguration,[]SplunkConfigurationParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the table version for the output data schema. Defaults to LATEST. - // +kubebuilder:validation:Optional - versionId?: null | string @go(VersionID,*string) -} - -#DeserializerInitParameters: { - // Nested argument that specifies the native Hive / HCatalog JsonSerDe. More details below. - hiveJsonSerDe?: [...#HiveJSONSerDeInitParameters] @go(HiveJSONSerDe,[]HiveJSONSerDeInitParameters) - - // Nested argument that specifies the OpenX SerDe. More details below. - openXJsonSerDe?: [...#OpenXJSONSerDeInitParameters] @go(OpenXJSONSerDe,[]OpenXJSONSerDeInitParameters) -} - -#DeserializerObservation: { - // Nested argument that specifies the native Hive / HCatalog JsonSerDe. More details below. - hiveJsonSerDe?: [...#HiveJSONSerDeObservation] @go(HiveJSONSerDe,[]HiveJSONSerDeObservation) - - // Nested argument that specifies the OpenX SerDe. More details below. - openXJsonSerDe?: [...#OpenXJSONSerDeObservation] @go(OpenXJSONSerDe,[]OpenXJSONSerDeObservation) -} - -#DeserializerParameters: { - // Nested argument that specifies the native Hive / HCatalog JsonSerDe. More details below. - // +kubebuilder:validation:Optional - hiveJsonSerDe?: [...#HiveJSONSerDeParameters] @go(HiveJSONSerDe,[]HiveJSONSerDeParameters) - - // Nested argument that specifies the OpenX SerDe. More details below. - // +kubebuilder:validation:Optional - openXJsonSerDe?: [...#OpenXJSONSerDeParameters] @go(OpenXJSONSerDe,[]OpenXJSONSerDeParameters) -} - -#DynamicPartitioningConfigurationInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - retryDuration?: null | float64 @go(RetryDuration,*float64) -} - -#DynamicPartitioningConfigurationObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - retryDuration?: null | float64 @go(RetryDuration,*float64) -} - -#DynamicPartitioningConfigurationParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - // +kubebuilder:validation:Optional - retryDuration?: null | float64 @go(RetryDuration,*float64) -} - -#ElasticsearchConfigurationInitParameters: { - // Buffer incoming data for the specified period of time, in seconds between 60 to 900, before delivering it to the destination. The default value is 300s. - bufferingInterval?: null | float64 @go(BufferingInterval,*float64) - - // Buffer incoming data to the specified size, in MBs between 1 to 100, before delivering it to the destination. The default value is 5MB. - bufferingSize?: null | float64 @go(BufferingSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#CloudwatchLoggingOptionsInitParameters] @go(CloudwatchLoggingOptions,[]CloudwatchLoggingOptionsInitParameters) - - // The endpoint to use when communicating with the cluster. Conflicts with domain_arn. - clusterEndpoint?: null | string @go(ClusterEndpoint,*string) - - // The Elasticsearch index name. - indexName?: null | string @go(IndexName,*string) - - // The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName to facilitate expiration of old data. Valid values are NoRotation, OneHour, OneDay, OneWeek, and OneMonth. The default value is OneDay. - indexRotationPeriod?: null | string @go(IndexRotationPeriod,*string) - - // The data processing configuration. More details are given below. - processingConfiguration?: [...#ProcessingConfigurationInitParameters] @go(ProcessingConfiguration,[]ProcessingConfigurationInitParameters) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - s3BackupMode?: null | string @go(S3BackupMode,*string) - - // The Elasticsearch type name with maximum length of 100 characters. - typeName?: null | string @go(TypeName,*string) - - // The VPC configuration for the delivery stream to connect to Elastic Search associated with the VPC. More details are given below - vpcConfig?: [...#VPCConfigInitParameters] @go(VPCConfig,[]VPCConfigInitParameters) -} - -#ElasticsearchConfigurationObservation: { - // Buffer incoming data for the specified period of time, in seconds between 60 to 900, before delivering it to the destination. The default value is 300s. - bufferingInterval?: null | float64 @go(BufferingInterval,*float64) - - // Buffer incoming data to the specified size, in MBs between 1 to 100, before delivering it to the destination. The default value is 5MB. - bufferingSize?: null | float64 @go(BufferingSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#CloudwatchLoggingOptionsObservation] @go(CloudwatchLoggingOptions,[]CloudwatchLoggingOptionsObservation) - - // The endpoint to use when communicating with the cluster. Conflicts with domain_arn. - clusterEndpoint?: null | string @go(ClusterEndpoint,*string) - - // The ARN of the Amazon ES domain. The pattern needs to be arn:.*. Conflicts with cluster_endpoint. - domainArn?: null | string @go(DomainArn,*string) - - // The Elasticsearch index name. - indexName?: null | string @go(IndexName,*string) - - // The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName to facilitate expiration of old data. Valid values are NoRotation, OneHour, OneDay, OneWeek, and OneMonth. The default value is OneDay. - indexRotationPeriod?: null | string @go(IndexRotationPeriod,*string) - - // The data processing configuration. More details are given below. - processingConfiguration?: [...#ProcessingConfigurationObservation] @go(ProcessingConfiguration,[]ProcessingConfigurationObservation) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - s3BackupMode?: null | string @go(S3BackupMode,*string) - - // The Elasticsearch type name with maximum length of 100 characters. - typeName?: null | string @go(TypeName,*string) - - // The VPC configuration for the delivery stream to connect to Elastic Search associated with the VPC. More details are given below - vpcConfig?: [...#VPCConfigObservation] @go(VPCConfig,[]VPCConfigObservation) -} - -#ElasticsearchConfigurationParameters: { - // Buffer incoming data for the specified period of time, in seconds between 60 to 900, before delivering it to the destination. The default value is 300s. - // +kubebuilder:validation:Optional - bufferingInterval?: null | float64 @go(BufferingInterval,*float64) - - // Buffer incoming data to the specified size, in MBs between 1 to 100, before delivering it to the destination. The default value is 5MB. - // +kubebuilder:validation:Optional - bufferingSize?: null | float64 @go(BufferingSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - // +kubebuilder:validation:Optional - cloudwatchLoggingOptions?: [...#CloudwatchLoggingOptionsParameters] @go(CloudwatchLoggingOptions,[]CloudwatchLoggingOptionsParameters) - - // The endpoint to use when communicating with the cluster. Conflicts with domain_arn. - // +kubebuilder:validation:Optional - clusterEndpoint?: null | string @go(ClusterEndpoint,*string) - - // The ARN of the Amazon ES domain. The pattern needs to be arn:.*. Conflicts with cluster_endpoint. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/elasticsearch/v1beta1.Domain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - domainArn?: null | string @go(DomainArn,*string) - - // Reference to a Domain in elasticsearch to populate domainArn. - // +kubebuilder:validation:Optional - domainArnRef?: null | v1.#Reference @go(DomainArnRef,*v1.Reference) - - // Selector for a Domain in elasticsearch to populate domainArn. - // +kubebuilder:validation:Optional - domainArnSelector?: null | v1.#Selector @go(DomainArnSelector,*v1.Selector) - - // The Elasticsearch index name. - // +kubebuilder:validation:Optional - indexName?: null | string @go(IndexName,*string) - - // The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName to facilitate expiration of old data. Valid values are NoRotation, OneHour, OneDay, OneWeek, and OneMonth. The default value is OneDay. - // +kubebuilder:validation:Optional - indexRotationPeriod?: null | string @go(IndexRotationPeriod,*string) - - // The data processing configuration. More details are given below. - // +kubebuilder:validation:Optional - processingConfiguration?: [...#ProcessingConfigurationParameters] @go(ProcessingConfiguration,[]ProcessingConfigurationParameters) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - // +kubebuilder:validation:Optional - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The ARN of the AWS credentials. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - // +kubebuilder:validation:Optional - s3BackupMode?: null | string @go(S3BackupMode,*string) - - // The Elasticsearch type name with maximum length of 100 characters. - // +kubebuilder:validation:Optional - typeName?: null | string @go(TypeName,*string) - - // The VPC configuration for the delivery stream to connect to Elastic Search associated with the VPC. More details are given below - // +kubebuilder:validation:Optional - vpcConfig?: [...#VPCConfigParameters] @go(VPCConfig,[]VPCConfigParameters) -} - -#ExtendedS3ConfigurationCloudwatchLoggingOptionsInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#ExtendedS3ConfigurationCloudwatchLoggingOptionsObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#ExtendedS3ConfigurationCloudwatchLoggingOptionsParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logStreamName?: null | string @go(LogStreamName,*string) -} - -#ExtendedS3ConfigurationInitParameters: { - // Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. - bufferInterval?: null | float64 @go(BufferInterval,*float64) - - // Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. - // We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - bufferSize?: null | float64 @go(BufferSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#ExtendedS3ConfigurationCloudwatchLoggingOptionsInitParameters] @go(CloudwatchLoggingOptions,[]ExtendedS3ConfigurationCloudwatchLoggingOptionsInitParameters) - - // The compression format. If no value is specified, the default is UNCOMPRESSED. Other supported values are GZIP, ZIP, Snappy, & HADOOP_SNAPPY. - compressionFormat?: null | string @go(CompressionFormat,*string) - - // Nested argument for the serializer, deserializer, and schema for converting data from the JSON format to the Parquet or ORC format before writing it to Amazon S3. More details given below. - dataFormatConversionConfiguration?: [...#DataFormatConversionConfigurationInitParameters] @go(DataFormatConversionConfiguration,[]DataFormatConversionConfigurationInitParameters) - - // The configuration for dynamic partitioning. See Dynamic Partitioning Configuration below for more details. Required when using dynamic partitioning. - dynamicPartitioningConfiguration?: [...#DynamicPartitioningConfigurationInitParameters] @go(DynamicPartitioningConfiguration,[]DynamicPartitioningConfigurationInitParameters) - - // Prefix added to failed records before writing them to S3. Not currently supported for redshift destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects. - errorOutputPrefix?: null | string @go(ErrorOutputPrefix,*string) - - // Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will - // be used. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket - prefix?: null | string @go(Prefix,*string) - - // The data processing configuration. More details are given below. - processingConfiguration?: [...#ExtendedS3ConfigurationProcessingConfigurationInitParameters] @go(ProcessingConfiguration,[]ExtendedS3ConfigurationProcessingConfigurationInitParameters) - - // The configuration for backup in Amazon S3. Required if s3_backup_mode is Enabled. Supports the same fields as s3_configuration object. - s3BackupConfiguration?: [...#S3BackupConfigurationInitParameters] @go(S3BackupConfiguration,[]S3BackupConfigurationInitParameters) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - s3BackupMode?: null | string @go(S3BackupMode,*string) -} - -#ExtendedS3ConfigurationObservation: { - // The ARN of the S3 bucket - bucketArn?: null | string @go(BucketArn,*string) - - // Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. - bufferInterval?: null | float64 @go(BufferInterval,*float64) - - // Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. - // We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - bufferSize?: null | float64 @go(BufferSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#ExtendedS3ConfigurationCloudwatchLoggingOptionsObservation] @go(CloudwatchLoggingOptions,[]ExtendedS3ConfigurationCloudwatchLoggingOptionsObservation) - - // The compression format. If no value is specified, the default is UNCOMPRESSED. Other supported values are GZIP, ZIP, Snappy, & HADOOP_SNAPPY. - compressionFormat?: null | string @go(CompressionFormat,*string) - - // Nested argument for the serializer, deserializer, and schema for converting data from the JSON format to the Parquet or ORC format before writing it to Amazon S3. More details given below. - dataFormatConversionConfiguration?: [...#DataFormatConversionConfigurationObservation] @go(DataFormatConversionConfiguration,[]DataFormatConversionConfigurationObservation) - - // The configuration for dynamic partitioning. See Dynamic Partitioning Configuration below for more details. Required when using dynamic partitioning. - dynamicPartitioningConfiguration?: [...#DynamicPartitioningConfigurationObservation] @go(DynamicPartitioningConfiguration,[]DynamicPartitioningConfigurationObservation) - - // Prefix added to failed records before writing them to S3. Not currently supported for redshift destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects. - errorOutputPrefix?: null | string @go(ErrorOutputPrefix,*string) - - // Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will - // be used. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket - prefix?: null | string @go(Prefix,*string) - - // The data processing configuration. More details are given below. - processingConfiguration?: [...#ExtendedS3ConfigurationProcessingConfigurationObservation] @go(ProcessingConfiguration,[]ExtendedS3ConfigurationProcessingConfigurationObservation) - - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) - - // The configuration for backup in Amazon S3. Required if s3_backup_mode is Enabled. Supports the same fields as s3_configuration object. - s3BackupConfiguration?: [...#S3BackupConfigurationObservation] @go(S3BackupConfiguration,[]S3BackupConfigurationObservation) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - s3BackupMode?: null | string @go(S3BackupMode,*string) -} - -#ExtendedS3ConfigurationParameters: { - // The ARN of the S3 bucket - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - bucketArn?: null | string @go(BucketArn,*string) - - // Reference to a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnRef?: null | v1.#Reference @go(BucketArnRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnSelector?: null | v1.#Selector @go(BucketArnSelector,*v1.Selector) - - // Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. - // +kubebuilder:validation:Optional - bufferInterval?: null | float64 @go(BufferInterval,*float64) - - // Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. - // We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - // +kubebuilder:validation:Optional - bufferSize?: null | float64 @go(BufferSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - // +kubebuilder:validation:Optional - cloudwatchLoggingOptions?: [...#ExtendedS3ConfigurationCloudwatchLoggingOptionsParameters] @go(CloudwatchLoggingOptions,[]ExtendedS3ConfigurationCloudwatchLoggingOptionsParameters) - - // The compression format. If no value is specified, the default is UNCOMPRESSED. Other supported values are GZIP, ZIP, Snappy, & HADOOP_SNAPPY. - // +kubebuilder:validation:Optional - compressionFormat?: null | string @go(CompressionFormat,*string) - - // Nested argument for the serializer, deserializer, and schema for converting data from the JSON format to the Parquet or ORC format before writing it to Amazon S3. More details given below. - // +kubebuilder:validation:Optional - dataFormatConversionConfiguration?: [...#DataFormatConversionConfigurationParameters] @go(DataFormatConversionConfiguration,[]DataFormatConversionConfigurationParameters) - - // The configuration for dynamic partitioning. See Dynamic Partitioning Configuration below for more details. Required when using dynamic partitioning. - // +kubebuilder:validation:Optional - dynamicPartitioningConfiguration?: [...#DynamicPartitioningConfigurationParameters] @go(DynamicPartitioningConfiguration,[]DynamicPartitioningConfigurationParameters) - - // Prefix added to failed records before writing them to S3. Not currently supported for redshift destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects. - // +kubebuilder:validation:Optional - errorOutputPrefix?: null | string @go(ErrorOutputPrefix,*string) - - // Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will - // be used. - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // The data processing configuration. More details are given below. - // +kubebuilder:validation:Optional - processingConfiguration?: [...#ExtendedS3ConfigurationProcessingConfigurationParameters] @go(ProcessingConfiguration,[]ExtendedS3ConfigurationProcessingConfigurationParameters) - - // The ARN of the AWS credentials. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The configuration for backup in Amazon S3. Required if s3_backup_mode is Enabled. Supports the same fields as s3_configuration object. - // +kubebuilder:validation:Optional - s3BackupConfiguration?: [...#S3BackupConfigurationParameters] @go(S3BackupConfiguration,[]S3BackupConfigurationParameters) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - // +kubebuilder:validation:Optional - s3BackupMode?: null | string @go(S3BackupMode,*string) -} - -#ExtendedS3ConfigurationProcessingConfigurationInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - processors?: [...#ProcessingConfigurationProcessorsInitParameters] @go(Processors,[]ProcessingConfigurationProcessorsInitParameters) -} - -#ExtendedS3ConfigurationProcessingConfigurationObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - processors?: [...#ProcessingConfigurationProcessorsObservation] @go(Processors,[]ProcessingConfigurationProcessorsObservation) -} - -#ExtendedS3ConfigurationProcessingConfigurationParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - // +kubebuilder:validation:Optional - processors?: [...#ProcessingConfigurationProcessorsParameters] @go(Processors,[]ProcessingConfigurationProcessorsParameters) -} - -#HTTPEndpointConfigurationCloudwatchLoggingOptionsInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#HTTPEndpointConfigurationCloudwatchLoggingOptionsObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#HTTPEndpointConfigurationCloudwatchLoggingOptionsParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logStreamName?: null | string @go(LogStreamName,*string) -} - -#HTTPEndpointConfigurationInitParameters: { - // Buffer incoming data for the specified period of time, in seconds between 60 to 900, before delivering it to the destination. The default value is 300s. - bufferingInterval?: null | float64 @go(BufferingInterval,*float64) - - // Buffer incoming data to the specified size, in MBs between 1 to 100, before delivering it to the destination. The default value is 5MB. - bufferingSize?: null | float64 @go(BufferingSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#HTTPEndpointConfigurationCloudwatchLoggingOptionsInitParameters] @go(CloudwatchLoggingOptions,[]HTTPEndpointConfigurationCloudwatchLoggingOptionsInitParameters) - - // The HTTP endpoint name. - name?: null | string @go(Name,*string) - - // The data processing configuration. More details are given below. - processingConfiguration?: [...#HTTPEndpointConfigurationProcessingConfigurationInitParameters] @go(ProcessingConfiguration,[]HTTPEndpointConfigurationProcessingConfigurationInitParameters) - - // The request configuration. More details are given below. - requestConfiguration?: [...#RequestConfigurationInitParameters] @go(RequestConfiguration,[]RequestConfigurationInitParameters) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - s3BackupMode?: null | string @go(S3BackupMode,*string) - - // The HTTP endpoint URL to which Kinesis Firehose sends your data. - url?: null | string @go(URL,*string) -} - -#HTTPEndpointConfigurationObservation: { - // Buffer incoming data for the specified period of time, in seconds between 60 to 900, before delivering it to the destination. The default value is 300s. - bufferingInterval?: null | float64 @go(BufferingInterval,*float64) - - // Buffer incoming data to the specified size, in MBs between 1 to 100, before delivering it to the destination. The default value is 5MB. - bufferingSize?: null | float64 @go(BufferingSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#HTTPEndpointConfigurationCloudwatchLoggingOptionsObservation] @go(CloudwatchLoggingOptions,[]HTTPEndpointConfigurationCloudwatchLoggingOptionsObservation) - - // The HTTP endpoint name. - name?: null | string @go(Name,*string) - - // The data processing configuration. More details are given below. - processingConfiguration?: [...#HTTPEndpointConfigurationProcessingConfigurationObservation] @go(ProcessingConfiguration,[]HTTPEndpointConfigurationProcessingConfigurationObservation) - - // The request configuration. More details are given below. - requestConfiguration?: [...#RequestConfigurationObservation] @go(RequestConfiguration,[]RequestConfigurationObservation) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - s3BackupMode?: null | string @go(S3BackupMode,*string) - - // The HTTP endpoint URL to which Kinesis Firehose sends your data. - url?: null | string @go(URL,*string) -} - -#HTTPEndpointConfigurationParameters: { - // The access key required for Kinesis Firehose to authenticate with the HTTP endpoint selected as the destination. - // +kubebuilder:validation:Optional - accessKeySecretRef?: null | v1.#SecretKeySelector @go(AccessKeySecretRef,*v1.SecretKeySelector) - - // Buffer incoming data for the specified period of time, in seconds between 60 to 900, before delivering it to the destination. The default value is 300s. - // +kubebuilder:validation:Optional - bufferingInterval?: null | float64 @go(BufferingInterval,*float64) - - // Buffer incoming data to the specified size, in MBs between 1 to 100, before delivering it to the destination. The default value is 5MB. - // +kubebuilder:validation:Optional - bufferingSize?: null | float64 @go(BufferingSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - // +kubebuilder:validation:Optional - cloudwatchLoggingOptions?: [...#HTTPEndpointConfigurationCloudwatchLoggingOptionsParameters] @go(CloudwatchLoggingOptions,[]HTTPEndpointConfigurationCloudwatchLoggingOptionsParameters) - - // The HTTP endpoint name. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The data processing configuration. More details are given below. - // +kubebuilder:validation:Optional - processingConfiguration?: [...#HTTPEndpointConfigurationProcessingConfigurationParameters] @go(ProcessingConfiguration,[]HTTPEndpointConfigurationProcessingConfigurationParameters) - - // The request configuration. More details are given below. - // +kubebuilder:validation:Optional - requestConfiguration?: [...#RequestConfigurationParameters] @go(RequestConfiguration,[]RequestConfigurationParameters) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - // +kubebuilder:validation:Optional - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The ARN of the AWS credentials. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - // +kubebuilder:validation:Optional - s3BackupMode?: null | string @go(S3BackupMode,*string) - - // The HTTP endpoint URL to which Kinesis Firehose sends your data. - // +kubebuilder:validation:Optional - url?: null | string @go(URL,*string) -} - -#HTTPEndpointConfigurationProcessingConfigurationInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - processors?: [...#HTTPEndpointConfigurationProcessingConfigurationProcessorsInitParameters] @go(Processors,[]HTTPEndpointConfigurationProcessingConfigurationProcessorsInitParameters) -} - -#HTTPEndpointConfigurationProcessingConfigurationObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - processors?: [...#HTTPEndpointConfigurationProcessingConfigurationProcessorsObservation] @go(Processors,[]HTTPEndpointConfigurationProcessingConfigurationProcessorsObservation) -} - -#HTTPEndpointConfigurationProcessingConfigurationParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - // +kubebuilder:validation:Optional - processors?: [...#HTTPEndpointConfigurationProcessingConfigurationProcessorsParameters] @go(Processors,[]HTTPEndpointConfigurationProcessingConfigurationProcessorsParameters) -} - -#HTTPEndpointConfigurationProcessingConfigurationProcessorsInitParameters: { - // Array of processor parameters. More details are given below - parameters?: [...#ProcessingConfigurationProcessorsParametersInitParameters] @go(Parameters,[]ProcessingConfigurationProcessorsParametersInitParameters) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - type?: null | string @go(Type,*string) -} - -#HTTPEndpointConfigurationProcessingConfigurationProcessorsObservation: { - // Array of processor parameters. More details are given below - parameters?: [...#ProcessingConfigurationProcessorsParametersObservation] @go(Parameters,[]ProcessingConfigurationProcessorsParametersObservation) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - type?: null | string @go(Type,*string) -} - -#HTTPEndpointConfigurationProcessingConfigurationProcessorsParameters: { - // Array of processor parameters. More details are given below - // +kubebuilder:validation:Optional - parameters?: [...#ProcessingConfigurationProcessorsParametersParameters] @go(Parameters,[]ProcessingConfigurationProcessorsParametersParameters) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#HiveJSONSerDeInitParameters: { - // A list of how you want Kinesis Data Firehose to parse the date and time stamps that may be present in your input data JSON. To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more information, see Class DateTimeFormat. You can also use the special value millis to parse time stamps in epoch milliseconds. If you don't specify a format, Kinesis Data Firehose uses java.sql.Timestamp::valueOf by default. - timestampFormats?: [...null | string] @go(TimestampFormats,[]*string) -} - -#HiveJSONSerDeObservation: { - // A list of how you want Kinesis Data Firehose to parse the date and time stamps that may be present in your input data JSON. To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more information, see Class DateTimeFormat. You can also use the special value millis to parse time stamps in epoch milliseconds. If you don't specify a format, Kinesis Data Firehose uses java.sql.Timestamp::valueOf by default. - timestampFormats?: [...null | string] @go(TimestampFormats,[]*string) -} - -#HiveJSONSerDeParameters: { - // A list of how you want Kinesis Data Firehose to parse the date and time stamps that may be present in your input data JSON. To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more information, see Class DateTimeFormat. You can also use the special value millis to parse time stamps in epoch milliseconds. If you don't specify a format, Kinesis Data Firehose uses java.sql.Timestamp::valueOf by default. - // +kubebuilder:validation:Optional - timestampFormats?: [...null | string] @go(TimestampFormats,[]*string) -} - -#InputFormatConfigurationInitParameters: { - // Nested argument that specifies which deserializer to use. You can choose either the Apache Hive JSON SerDe or the OpenX JSON SerDe. More details below. - deserializer?: [...#DeserializerInitParameters] @go(Deserializer,[]DeserializerInitParameters) -} - -#InputFormatConfigurationObservation: { - // Nested argument that specifies which deserializer to use. You can choose either the Apache Hive JSON SerDe or the OpenX JSON SerDe. More details below. - deserializer?: [...#DeserializerObservation] @go(Deserializer,[]DeserializerObservation) -} - -#InputFormatConfigurationParameters: { - // Nested argument that specifies which deserializer to use. You can choose either the Apache Hive JSON SerDe or the OpenX JSON SerDe. More details below. - // +kubebuilder:validation:Optional - deserializer: [...#DeserializerParameters] @go(Deserializer,[]DeserializerParameters) -} - -#KinesisSourceConfigurationInitParameters: { - // The kinesis stream used as the source of the firehose delivery stream. - kinesisStreamArn?: null | string @go(KinesisStreamArn,*string) - - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) -} - -#KinesisSourceConfigurationObservation: { - // The kinesis stream used as the source of the firehose delivery stream. - kinesisStreamArn?: null | string @go(KinesisStreamArn,*string) - - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) -} - -#KinesisSourceConfigurationParameters: { - // The kinesis stream used as the source of the firehose delivery stream. - // +kubebuilder:validation:Optional - kinesisStreamArn?: null | string @go(KinesisStreamArn,*string) - - // The ARN of the AWS credentials. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#OpenXJSONSerDeInitParameters: { - // When set to true, which is the default, Kinesis Data Firehose converts JSON keys to lowercase before deserializing them. - caseInsensitive?: null | bool @go(CaseInsensitive,*bool) - - // A map of column names to JSON keys that aren't identical to the column names. This is useful when the JSON contains keys that are Hive keywords. For example, timestamp is a Hive keyword. If you have a JSON key named timestamp, set this parameter to { ts = "timestamp" } to map this key to a column named ts. - columnToJsonKeyMappings?: {[string]: null | string} @go(ColumnToJSONKeyMappings,map[string]*string) - - // When set to true, specifies that the names of the keys include dots and that you want Kinesis Data Firehose to replace them with underscores. This is useful because Apache Hive does not allow dots in column names. For example, if the JSON contains a key whose name is "a.b", you can define the column name to be "a_b" when using this option. Defaults to false. - convertDotsInJsonKeysToUnderscores?: null | bool @go(ConvertDotsInJSONKeysToUnderscores,*bool) -} - -#OpenXJSONSerDeObservation: { - // When set to true, which is the default, Kinesis Data Firehose converts JSON keys to lowercase before deserializing them. - caseInsensitive?: null | bool @go(CaseInsensitive,*bool) - - // A map of column names to JSON keys that aren't identical to the column names. This is useful when the JSON contains keys that are Hive keywords. For example, timestamp is a Hive keyword. If you have a JSON key named timestamp, set this parameter to { ts = "timestamp" } to map this key to a column named ts. - columnToJsonKeyMappings?: {[string]: null | string} @go(ColumnToJSONKeyMappings,map[string]*string) - - // When set to true, specifies that the names of the keys include dots and that you want Kinesis Data Firehose to replace them with underscores. This is useful because Apache Hive does not allow dots in column names. For example, if the JSON contains a key whose name is "a.b", you can define the column name to be "a_b" when using this option. Defaults to false. - convertDotsInJsonKeysToUnderscores?: null | bool @go(ConvertDotsInJSONKeysToUnderscores,*bool) -} - -#OpenXJSONSerDeParameters: { - // When set to true, which is the default, Kinesis Data Firehose converts JSON keys to lowercase before deserializing them. - // +kubebuilder:validation:Optional - caseInsensitive?: null | bool @go(CaseInsensitive,*bool) - - // A map of column names to JSON keys that aren't identical to the column names. This is useful when the JSON contains keys that are Hive keywords. For example, timestamp is a Hive keyword. If you have a JSON key named timestamp, set this parameter to { ts = "timestamp" } to map this key to a column named ts. - // +kubebuilder:validation:Optional - columnToJsonKeyMappings?: {[string]: null | string} @go(ColumnToJSONKeyMappings,map[string]*string) - - // When set to true, specifies that the names of the keys include dots and that you want Kinesis Data Firehose to replace them with underscores. This is useful because Apache Hive does not allow dots in column names. For example, if the JSON contains a key whose name is "a.b", you can define the column name to be "a_b" when using this option. Defaults to false. - // +kubebuilder:validation:Optional - convertDotsInJsonKeysToUnderscores?: null | bool @go(ConvertDotsInJSONKeysToUnderscores,*bool) -} - -#OpensearchConfigurationCloudwatchLoggingOptionsInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#OpensearchConfigurationCloudwatchLoggingOptionsObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#OpensearchConfigurationCloudwatchLoggingOptionsParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logStreamName?: null | string @go(LogStreamName,*string) -} - -#OpensearchConfigurationInitParameters: { - // Buffer incoming data for the specified period of time, in seconds between 60 to 900, before delivering it to the destination. The default value is 300s. - bufferingInterval?: null | float64 @go(BufferingInterval,*float64) - - // Buffer incoming data to the specified size, in MBs between 1 to 100, before delivering it to the destination. The default value is 5MB. - bufferingSize?: null | float64 @go(BufferingSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#OpensearchConfigurationCloudwatchLoggingOptionsInitParameters] @go(CloudwatchLoggingOptions,[]OpensearchConfigurationCloudwatchLoggingOptionsInitParameters) - - // The endpoint to use when communicating with the cluster. Conflicts with domain_arn. - clusterEndpoint?: null | string @go(ClusterEndpoint,*string) - - // The Elasticsearch index name. - indexName?: null | string @go(IndexName,*string) - - // The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName to facilitate expiration of old data. Valid values are NoRotation, OneHour, OneDay, OneWeek, and OneMonth. The default value is OneDay. - indexRotationPeriod?: null | string @go(IndexRotationPeriod,*string) - - // The data processing configuration. More details are given below. - processingConfiguration?: [...#OpensearchConfigurationProcessingConfigurationInitParameters] @go(ProcessingConfiguration,[]OpensearchConfigurationProcessingConfigurationInitParameters) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - s3BackupMode?: null | string @go(S3BackupMode,*string) - - // The Elasticsearch type name with maximum length of 100 characters. - typeName?: null | string @go(TypeName,*string) - - // The VPC configuration for the delivery stream to connect to Elastic Search associated with the VPC. More details are given below - vpcConfig?: [...#OpensearchConfigurationVPCConfigInitParameters] @go(VPCConfig,[]OpensearchConfigurationVPCConfigInitParameters) -} - -#OpensearchConfigurationObservation: { - // Buffer incoming data for the specified period of time, in seconds between 60 to 900, before delivering it to the destination. The default value is 300s. - bufferingInterval?: null | float64 @go(BufferingInterval,*float64) - - // Buffer incoming data to the specified size, in MBs between 1 to 100, before delivering it to the destination. The default value is 5MB. - bufferingSize?: null | float64 @go(BufferingSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#OpensearchConfigurationCloudwatchLoggingOptionsObservation] @go(CloudwatchLoggingOptions,[]OpensearchConfigurationCloudwatchLoggingOptionsObservation) - - // The endpoint to use when communicating with the cluster. Conflicts with domain_arn. - clusterEndpoint?: null | string @go(ClusterEndpoint,*string) - - // The ARN of the Amazon ES domain. The pattern needs to be arn:.*. Conflicts with cluster_endpoint. - domainArn?: null | string @go(DomainArn,*string) - - // The Elasticsearch index name. - indexName?: null | string @go(IndexName,*string) - - // The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName to facilitate expiration of old data. Valid values are NoRotation, OneHour, OneDay, OneWeek, and OneMonth. The default value is OneDay. - indexRotationPeriod?: null | string @go(IndexRotationPeriod,*string) - - // The data processing configuration. More details are given below. - processingConfiguration?: [...#OpensearchConfigurationProcessingConfigurationObservation] @go(ProcessingConfiguration,[]OpensearchConfigurationProcessingConfigurationObservation) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - s3BackupMode?: null | string @go(S3BackupMode,*string) - - // The Elasticsearch type name with maximum length of 100 characters. - typeName?: null | string @go(TypeName,*string) - - // The VPC configuration for the delivery stream to connect to Elastic Search associated with the VPC. More details are given below - vpcConfig?: [...#OpensearchConfigurationVPCConfigObservation] @go(VPCConfig,[]OpensearchConfigurationVPCConfigObservation) -} - -#OpensearchConfigurationParameters: { - // Buffer incoming data for the specified period of time, in seconds between 60 to 900, before delivering it to the destination. The default value is 300s. - // +kubebuilder:validation:Optional - bufferingInterval?: null | float64 @go(BufferingInterval,*float64) - - // Buffer incoming data to the specified size, in MBs between 1 to 100, before delivering it to the destination. The default value is 5MB. - // +kubebuilder:validation:Optional - bufferingSize?: null | float64 @go(BufferingSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - // +kubebuilder:validation:Optional - cloudwatchLoggingOptions?: [...#OpensearchConfigurationCloudwatchLoggingOptionsParameters] @go(CloudwatchLoggingOptions,[]OpensearchConfigurationCloudwatchLoggingOptionsParameters) - - // The endpoint to use when communicating with the cluster. Conflicts with domain_arn. - // +kubebuilder:validation:Optional - clusterEndpoint?: null | string @go(ClusterEndpoint,*string) - - // The ARN of the Amazon ES domain. The pattern needs to be arn:.*. Conflicts with cluster_endpoint. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opensearch/v1beta1.Domain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - domainArn?: null | string @go(DomainArn,*string) - - // Reference to a Domain in opensearch to populate domainArn. - // +kubebuilder:validation:Optional - domainArnRef?: null | v1.#Reference @go(DomainArnRef,*v1.Reference) - - // Selector for a Domain in opensearch to populate domainArn. - // +kubebuilder:validation:Optional - domainArnSelector?: null | v1.#Selector @go(DomainArnSelector,*v1.Selector) - - // The Elasticsearch index name. - // +kubebuilder:validation:Optional - indexName?: null | string @go(IndexName,*string) - - // The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName to facilitate expiration of old data. Valid values are NoRotation, OneHour, OneDay, OneWeek, and OneMonth. The default value is OneDay. - // +kubebuilder:validation:Optional - indexRotationPeriod?: null | string @go(IndexRotationPeriod,*string) - - // The data processing configuration. More details are given below. - // +kubebuilder:validation:Optional - processingConfiguration?: [...#OpensearchConfigurationProcessingConfigurationParameters] @go(ProcessingConfiguration,[]OpensearchConfigurationProcessingConfigurationParameters) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - // +kubebuilder:validation:Optional - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The ARN of the AWS credentials. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - // +kubebuilder:validation:Optional - s3BackupMode?: null | string @go(S3BackupMode,*string) - - // The Elasticsearch type name with maximum length of 100 characters. - // +kubebuilder:validation:Optional - typeName?: null | string @go(TypeName,*string) - - // The VPC configuration for the delivery stream to connect to Elastic Search associated with the VPC. More details are given below - // +kubebuilder:validation:Optional - vpcConfig?: [...#OpensearchConfigurationVPCConfigParameters] @go(VPCConfig,[]OpensearchConfigurationVPCConfigParameters) -} - -#OpensearchConfigurationProcessingConfigurationInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - processors?: [...#OpensearchConfigurationProcessingConfigurationProcessorsInitParameters] @go(Processors,[]OpensearchConfigurationProcessingConfigurationProcessorsInitParameters) -} - -#OpensearchConfigurationProcessingConfigurationObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - processors?: [...#OpensearchConfigurationProcessingConfigurationProcessorsObservation] @go(Processors,[]OpensearchConfigurationProcessingConfigurationProcessorsObservation) -} - -#OpensearchConfigurationProcessingConfigurationParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - // +kubebuilder:validation:Optional - processors?: [...#OpensearchConfigurationProcessingConfigurationProcessorsParameters] @go(Processors,[]OpensearchConfigurationProcessingConfigurationProcessorsParameters) -} - -#OpensearchConfigurationProcessingConfigurationProcessorsInitParameters: { - // Array of processor parameters. More details are given below - parameters?: [...#OpensearchConfigurationProcessingConfigurationProcessorsParametersInitParameters] @go(Parameters,[]OpensearchConfigurationProcessingConfigurationProcessorsParametersInitParameters) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - type?: null | string @go(Type,*string) -} - -#OpensearchConfigurationProcessingConfigurationProcessorsObservation: { - // Array of processor parameters. More details are given below - parameters?: [...#OpensearchConfigurationProcessingConfigurationProcessorsParametersObservation] @go(Parameters,[]OpensearchConfigurationProcessingConfigurationProcessorsParametersObservation) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - type?: null | string @go(Type,*string) -} - -#OpensearchConfigurationProcessingConfigurationProcessorsParameters: { - // Array of processor parameters. More details are given below - // +kubebuilder:validation:Optional - parameters?: [...#OpensearchConfigurationProcessingConfigurationProcessorsParametersParameters] @go(Parameters,[]OpensearchConfigurationProcessingConfigurationProcessorsParametersParameters) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#OpensearchConfigurationProcessingConfigurationProcessorsParametersInitParameters: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#OpensearchConfigurationProcessingConfigurationProcessorsParametersObservation: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#OpensearchConfigurationProcessingConfigurationProcessorsParametersParameters: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - // +kubebuilder:validation:Optional - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - // +kubebuilder:validation:Optional - parameterValue?: null | string @go(ParameterValue,*string) -} - -#OpensearchConfigurationVPCConfigInitParameters: { - // A list of security group IDs to associate with Kinesis Firehose. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of subnet IDs to associate with Kinesis Firehose. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#OpensearchConfigurationVPCConfigObservation: { - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) - - // A list of security group IDs to associate with Kinesis Firehose. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of subnet IDs to associate with Kinesis Firehose. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - vpcId?: null | string @go(VPCID,*string) -} - -#OpensearchConfigurationVPCConfigParameters: { - // The ARN of the AWS credentials. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // A list of security group IDs to associate with Kinesis Firehose. - // +kubebuilder:validation:Optional - securityGroupIds: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of subnet IDs to associate with Kinesis Firehose. - // +kubebuilder:validation:Optional - subnetIds: [...null | string] @go(SubnetIds,[]*string) -} - -#OrcSerDeInitParameters: { - // The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations. - blockSizeBytes?: null | float64 @go(BlockSizeBytes,*float64) - - // A list of column names for which you want Kinesis Data Firehose to create bloom filters. - bloomFilterColumns?: [...null | string] @go(BloomFilterColumns,[]*string) - - // The Bloom filter false positive probability (FPP). The lower the FPP, the bigger the Bloom filter. The default value is 0.05, the minimum is 0, and the maximum is 1. - bloomFilterFalsePositiveProbability?: null | float64 @go(BloomFilterFalsePositiveProbability,*float64) - - // The compression code to use over data blocks. The possible values are UNCOMPRESSED, SNAPPY, and GZIP, with the default being SNAPPY. Use SNAPPY for higher decompression speed. Use GZIP if the compression ratio is more important than speed. - compression?: null | string @go(Compression,*string) - - // A float that represents the fraction of the total number of non-null rows. To turn off dictionary encoding, set this fraction to a number that is less than the number of distinct keys in a dictionary. To always use dictionary encoding, set this threshold to 1. - dictionaryKeyThreshold?: null | float64 @go(DictionaryKeyThreshold,*float64) - - // Set this to true to indicate that you want stripes to be padded to the HDFS block boundaries. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is false. - enablePadding?: null | bool @go(EnablePadding,*bool) - - // The version of the file to write. The possible values are V0_11 and V0_12. The default is V0_12. - formatVersion?: null | string @go(FormatVersion,*string) - - // A float between 0 and 1 that defines the tolerance for block padding as a decimal fraction of stripe size. The default value is 0.05, which means 5 percent of stripe size. For the default values of 64 MiB ORC stripes and 256 MiB HDFS blocks, the default block padding tolerance of 5 percent reserves a maximum of 3.2 MiB for padding within the 256 MiB block. In such a case, if the available size within the block is more than 3.2 MiB, a new, smaller stripe is inserted to fit within that space. This ensures that no stripe crosses block boundaries and causes remote reads within a node-local task. Kinesis Data Firehose ignores this parameter when enable_padding is false. - paddingTolerance?: null | float64 @go(PaddingTolerance,*float64) - - // The number of rows between index entries. The default is 10000 and the minimum is 1000. - rowIndexStride?: null | float64 @go(RowIndexStride,*float64) - - // The number of bytes in each stripe. The default is 64 MiB and the minimum is 8 MiB. - stripeSizeBytes?: null | float64 @go(StripeSizeBytes,*float64) -} - -#OrcSerDeObservation: { - // The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations. - blockSizeBytes?: null | float64 @go(BlockSizeBytes,*float64) - - // A list of column names for which you want Kinesis Data Firehose to create bloom filters. - bloomFilterColumns?: [...null | string] @go(BloomFilterColumns,[]*string) - - // The Bloom filter false positive probability (FPP). The lower the FPP, the bigger the Bloom filter. The default value is 0.05, the minimum is 0, and the maximum is 1. - bloomFilterFalsePositiveProbability?: null | float64 @go(BloomFilterFalsePositiveProbability,*float64) - - // The compression code to use over data blocks. The possible values are UNCOMPRESSED, SNAPPY, and GZIP, with the default being SNAPPY. Use SNAPPY for higher decompression speed. Use GZIP if the compression ratio is more important than speed. - compression?: null | string @go(Compression,*string) - - // A float that represents the fraction of the total number of non-null rows. To turn off dictionary encoding, set this fraction to a number that is less than the number of distinct keys in a dictionary. To always use dictionary encoding, set this threshold to 1. - dictionaryKeyThreshold?: null | float64 @go(DictionaryKeyThreshold,*float64) - - // Set this to true to indicate that you want stripes to be padded to the HDFS block boundaries. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is false. - enablePadding?: null | bool @go(EnablePadding,*bool) - - // The version of the file to write. The possible values are V0_11 and V0_12. The default is V0_12. - formatVersion?: null | string @go(FormatVersion,*string) - - // A float between 0 and 1 that defines the tolerance for block padding as a decimal fraction of stripe size. The default value is 0.05, which means 5 percent of stripe size. For the default values of 64 MiB ORC stripes and 256 MiB HDFS blocks, the default block padding tolerance of 5 percent reserves a maximum of 3.2 MiB for padding within the 256 MiB block. In such a case, if the available size within the block is more than 3.2 MiB, a new, smaller stripe is inserted to fit within that space. This ensures that no stripe crosses block boundaries and causes remote reads within a node-local task. Kinesis Data Firehose ignores this parameter when enable_padding is false. - paddingTolerance?: null | float64 @go(PaddingTolerance,*float64) - - // The number of rows between index entries. The default is 10000 and the minimum is 1000. - rowIndexStride?: null | float64 @go(RowIndexStride,*float64) - - // The number of bytes in each stripe. The default is 64 MiB and the minimum is 8 MiB. - stripeSizeBytes?: null | float64 @go(StripeSizeBytes,*float64) -} - -#OrcSerDeParameters: { - // The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations. - // +kubebuilder:validation:Optional - blockSizeBytes?: null | float64 @go(BlockSizeBytes,*float64) - - // A list of column names for which you want Kinesis Data Firehose to create bloom filters. - // +kubebuilder:validation:Optional - bloomFilterColumns?: [...null | string] @go(BloomFilterColumns,[]*string) - - // The Bloom filter false positive probability (FPP). The lower the FPP, the bigger the Bloom filter. The default value is 0.05, the minimum is 0, and the maximum is 1. - // +kubebuilder:validation:Optional - bloomFilterFalsePositiveProbability?: null | float64 @go(BloomFilterFalsePositiveProbability,*float64) - - // The compression code to use over data blocks. The possible values are UNCOMPRESSED, SNAPPY, and GZIP, with the default being SNAPPY. Use SNAPPY for higher decompression speed. Use GZIP if the compression ratio is more important than speed. - // +kubebuilder:validation:Optional - compression?: null | string @go(Compression,*string) - - // A float that represents the fraction of the total number of non-null rows. To turn off dictionary encoding, set this fraction to a number that is less than the number of distinct keys in a dictionary. To always use dictionary encoding, set this threshold to 1. - // +kubebuilder:validation:Optional - dictionaryKeyThreshold?: null | float64 @go(DictionaryKeyThreshold,*float64) - - // Set this to true to indicate that you want stripes to be padded to the HDFS block boundaries. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is false. - // +kubebuilder:validation:Optional - enablePadding?: null | bool @go(EnablePadding,*bool) - - // The version of the file to write. The possible values are V0_11 and V0_12. The default is V0_12. - // +kubebuilder:validation:Optional - formatVersion?: null | string @go(FormatVersion,*string) - - // A float between 0 and 1 that defines the tolerance for block padding as a decimal fraction of stripe size. The default value is 0.05, which means 5 percent of stripe size. For the default values of 64 MiB ORC stripes and 256 MiB HDFS blocks, the default block padding tolerance of 5 percent reserves a maximum of 3.2 MiB for padding within the 256 MiB block. In such a case, if the available size within the block is more than 3.2 MiB, a new, smaller stripe is inserted to fit within that space. This ensures that no stripe crosses block boundaries and causes remote reads within a node-local task. Kinesis Data Firehose ignores this parameter when enable_padding is false. - // +kubebuilder:validation:Optional - paddingTolerance?: null | float64 @go(PaddingTolerance,*float64) - - // The number of rows between index entries. The default is 10000 and the minimum is 1000. - // +kubebuilder:validation:Optional - rowIndexStride?: null | float64 @go(RowIndexStride,*float64) - - // The number of bytes in each stripe. The default is 64 MiB and the minimum is 8 MiB. - // +kubebuilder:validation:Optional - stripeSizeBytes?: null | float64 @go(StripeSizeBytes,*float64) -} - -#OutputFormatConfigurationInitParameters: { - // Nested argument that specifies which serializer to use. You can choose either the ORC SerDe or the Parquet SerDe. More details below. - serializer?: [...#SerializerInitParameters] @go(Serializer,[]SerializerInitParameters) -} - -#OutputFormatConfigurationObservation: { - // Nested argument that specifies which serializer to use. You can choose either the ORC SerDe or the Parquet SerDe. More details below. - serializer?: [...#SerializerObservation] @go(Serializer,[]SerializerObservation) -} - -#OutputFormatConfigurationParameters: { - // Nested argument that specifies which serializer to use. You can choose either the ORC SerDe or the Parquet SerDe. More details below. - // +kubebuilder:validation:Optional - serializer: [...#SerializerParameters] @go(Serializer,[]SerializerParameters) -} - -#ParametersInitParameters: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#ParametersObservation: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#ParametersParameters: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - // +kubebuilder:validation:Optional - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - // +kubebuilder:validation:Optional - parameterValue?: null | string @go(ParameterValue,*string) -} - -#ParquetSerDeInitParameters: { - // The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations. - blockSizeBytes?: null | float64 @go(BlockSizeBytes,*float64) - - // The compression code to use over data blocks. The possible values are UNCOMPRESSED, SNAPPY, and GZIP, with the default being SNAPPY. Use SNAPPY for higher decompression speed. Use GZIP if the compression ratio is more important than speed. - compression?: null | string @go(Compression,*string) - - // Indicates whether to enable dictionary compression. - enableDictionaryCompression?: null | bool @go(EnableDictionaryCompression,*bool) - - // The maximum amount of padding to apply. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 0. - maxPaddingBytes?: null | float64 @go(MaxPaddingBytes,*float64) - - // The Parquet page size. Column chunks are divided into pages. A page is conceptually an indivisible unit (in terms of compression and encoding). The minimum value is 64 KiB and the default is 1 MiB. - pageSizeBytes?: null | float64 @go(PageSizeBytes,*float64) - - // Indicates the version of row format to output. The possible values are V1 and V2. The default is V1. - writerVersion?: null | string @go(WriterVersion,*string) -} - -#ParquetSerDeObservation: { - // The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations. - blockSizeBytes?: null | float64 @go(BlockSizeBytes,*float64) - - // The compression code to use over data blocks. The possible values are UNCOMPRESSED, SNAPPY, and GZIP, with the default being SNAPPY. Use SNAPPY for higher decompression speed. Use GZIP if the compression ratio is more important than speed. - compression?: null | string @go(Compression,*string) - - // Indicates whether to enable dictionary compression. - enableDictionaryCompression?: null | bool @go(EnableDictionaryCompression,*bool) - - // The maximum amount of padding to apply. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 0. - maxPaddingBytes?: null | float64 @go(MaxPaddingBytes,*float64) - - // The Parquet page size. Column chunks are divided into pages. A page is conceptually an indivisible unit (in terms of compression and encoding). The minimum value is 64 KiB and the default is 1 MiB. - pageSizeBytes?: null | float64 @go(PageSizeBytes,*float64) - - // Indicates the version of row format to output. The possible values are V1 and V2. The default is V1. - writerVersion?: null | string @go(WriterVersion,*string) -} - -#ParquetSerDeParameters: { - // The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations. - // +kubebuilder:validation:Optional - blockSizeBytes?: null | float64 @go(BlockSizeBytes,*float64) - - // The compression code to use over data blocks. The possible values are UNCOMPRESSED, SNAPPY, and GZIP, with the default being SNAPPY. Use SNAPPY for higher decompression speed. Use GZIP if the compression ratio is more important than speed. - // +kubebuilder:validation:Optional - compression?: null | string @go(Compression,*string) - - // Indicates whether to enable dictionary compression. - // +kubebuilder:validation:Optional - enableDictionaryCompression?: null | bool @go(EnableDictionaryCompression,*bool) - - // The maximum amount of padding to apply. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 0. - // +kubebuilder:validation:Optional - maxPaddingBytes?: null | float64 @go(MaxPaddingBytes,*float64) - - // The Parquet page size. Column chunks are divided into pages. A page is conceptually an indivisible unit (in terms of compression and encoding). The minimum value is 64 KiB and the default is 1 MiB. - // +kubebuilder:validation:Optional - pageSizeBytes?: null | float64 @go(PageSizeBytes,*float64) - - // Indicates the version of row format to output. The possible values are V1 and V2. The default is V1. - // +kubebuilder:validation:Optional - writerVersion?: null | string @go(WriterVersion,*string) -} - -#ProcessingConfigurationInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - processors?: [...#ProcessorsInitParameters] @go(Processors,[]ProcessorsInitParameters) -} - -#ProcessingConfigurationObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - processors?: [...#ProcessorsObservation] @go(Processors,[]ProcessorsObservation) -} - -#ProcessingConfigurationParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - // +kubebuilder:validation:Optional - processors?: [...#ProcessorsParameters] @go(Processors,[]ProcessorsParameters) -} - -#ProcessingConfigurationProcessorsInitParameters: { - // Array of processor parameters. More details are given below - parameters?: [...#ProcessorsParametersInitParameters] @go(Parameters,[]ProcessorsParametersInitParameters) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - type?: null | string @go(Type,*string) -} - -#ProcessingConfigurationProcessorsObservation: { - // Array of processor parameters. More details are given below - parameters?: [...#ProcessorsParametersObservation] @go(Parameters,[]ProcessorsParametersObservation) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - type?: null | string @go(Type,*string) -} - -#ProcessingConfigurationProcessorsParameters: { - // Array of processor parameters. More details are given below - // +kubebuilder:validation:Optional - parameters?: [...#ProcessorsParametersParameters] @go(Parameters,[]ProcessorsParametersParameters) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#ProcessingConfigurationProcessorsParametersInitParameters: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#ProcessingConfigurationProcessorsParametersObservation: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#ProcessingConfigurationProcessorsParametersParameters: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - // +kubebuilder:validation:Optional - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - // +kubebuilder:validation:Optional - parameterValue?: null | string @go(ParameterValue,*string) -} - -#ProcessorsInitParameters: { - // Array of processor parameters. More details are given below - parameters?: [...#ParametersInitParameters] @go(Parameters,[]ParametersInitParameters) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - type?: null | string @go(Type,*string) -} - -#ProcessorsObservation: { - // Array of processor parameters. More details are given below - parameters?: [...#ParametersObservation] @go(Parameters,[]ParametersObservation) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - type?: null | string @go(Type,*string) -} - -#ProcessorsParameters: { - // Array of processor parameters. More details are given below - // +kubebuilder:validation:Optional - parameters?: [...#ParametersParameters] @go(Parameters,[]ParametersParameters) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#ProcessorsParametersInitParameters: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#ProcessorsParametersObservation: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#ProcessorsParametersParameters: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - // +kubebuilder:validation:Optional - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - // +kubebuilder:validation:Optional - parameterValue?: null | string @go(ParameterValue,*string) -} - -#RedshiftConfigurationCloudwatchLoggingOptionsInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#RedshiftConfigurationCloudwatchLoggingOptionsObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#RedshiftConfigurationCloudwatchLoggingOptionsParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logStreamName?: null | string @go(LogStreamName,*string) -} - -#RedshiftConfigurationInitParameters: { - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#RedshiftConfigurationCloudwatchLoggingOptionsInitParameters] @go(CloudwatchLoggingOptions,[]RedshiftConfigurationCloudwatchLoggingOptionsInitParameters) - - // The jdbcurl of the redshift cluster. - clusterJdbcurl?: null | string @go(ClusterJdbcurl,*string) - - // Copy options for copying the data from the s3 intermediate bucket into redshift, for example to change the default delimiter. For valid values, see the AWS documentation - copyOptions?: null | string @go(CopyOptions,*string) - - // The data table columns that will be targeted by the copy command. - dataTableColumns?: null | string @go(DataTableColumns,*string) - - // The name of the table in the redshift cluster that the s3 bucket will copy to. - dataTableName?: null | string @go(DataTableName,*string) - - // The data processing configuration. More details are given below. - processingConfiguration?: [...#RedshiftConfigurationProcessingConfigurationInitParameters] @go(ProcessingConfiguration,[]RedshiftConfigurationProcessingConfigurationInitParameters) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The configuration for backup in Amazon S3. Required if s3_backup_mode is Enabled. Supports the same fields as s3_configuration object. - s3BackupConfiguration?: [...#RedshiftConfigurationS3BackupConfigurationInitParameters] @go(S3BackupConfiguration,[]RedshiftConfigurationS3BackupConfigurationInitParameters) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - s3BackupMode?: null | string @go(S3BackupMode,*string) - - // The username that the firehose delivery stream will assume. It is strongly recommended that the username and password provided is used exclusively for Amazon Kinesis Firehose purposes, and that the permissions for the account are restricted for Amazon Redshift INSERT permissions. - username?: null | string @go(Username,*string) -} - -#RedshiftConfigurationObservation: { - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#RedshiftConfigurationCloudwatchLoggingOptionsObservation] @go(CloudwatchLoggingOptions,[]RedshiftConfigurationCloudwatchLoggingOptionsObservation) - - // The jdbcurl of the redshift cluster. - clusterJdbcurl?: null | string @go(ClusterJdbcurl,*string) - - // Copy options for copying the data from the s3 intermediate bucket into redshift, for example to change the default delimiter. For valid values, see the AWS documentation - copyOptions?: null | string @go(CopyOptions,*string) - - // The data table columns that will be targeted by the copy command. - dataTableColumns?: null | string @go(DataTableColumns,*string) - - // The name of the table in the redshift cluster that the s3 bucket will copy to. - dataTableName?: null | string @go(DataTableName,*string) - - // The data processing configuration. More details are given below. - processingConfiguration?: [...#RedshiftConfigurationProcessingConfigurationObservation] @go(ProcessingConfiguration,[]RedshiftConfigurationProcessingConfigurationObservation) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) - - // The configuration for backup in Amazon S3. Required if s3_backup_mode is Enabled. Supports the same fields as s3_configuration object. - s3BackupConfiguration?: [...#RedshiftConfigurationS3BackupConfigurationObservation] @go(S3BackupConfiguration,[]RedshiftConfigurationS3BackupConfigurationObservation) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - s3BackupMode?: null | string @go(S3BackupMode,*string) - - // The username that the firehose delivery stream will assume. It is strongly recommended that the username and password provided is used exclusively for Amazon Kinesis Firehose purposes, and that the permissions for the account are restricted for Amazon Redshift INSERT permissions. - username?: null | string @go(Username,*string) -} - -#RedshiftConfigurationParameters: { - // The CloudWatch Logging Options for the delivery stream. More details are given below - // +kubebuilder:validation:Optional - cloudwatchLoggingOptions?: [...#RedshiftConfigurationCloudwatchLoggingOptionsParameters] @go(CloudwatchLoggingOptions,[]RedshiftConfigurationCloudwatchLoggingOptionsParameters) - - // The jdbcurl of the redshift cluster. - // +kubebuilder:validation:Optional - clusterJdbcurl?: null | string @go(ClusterJdbcurl,*string) - - // Copy options for copying the data from the s3 intermediate bucket into redshift, for example to change the default delimiter. For valid values, see the AWS documentation - // +kubebuilder:validation:Optional - copyOptions?: null | string @go(CopyOptions,*string) - - // The data table columns that will be targeted by the copy command. - // +kubebuilder:validation:Optional - dataTableColumns?: null | string @go(DataTableColumns,*string) - - // The name of the table in the redshift cluster that the s3 bucket will copy to. - // +kubebuilder:validation:Optional - dataTableName?: null | string @go(DataTableName,*string) - - // The password for the username above. - // +kubebuilder:validation:Required - passwordSecretRef: v1.#SecretKeySelector @go(PasswordSecretRef) - - // The data processing configuration. More details are given below. - // +kubebuilder:validation:Optional - processingConfiguration?: [...#RedshiftConfigurationProcessingConfigurationParameters] @go(ProcessingConfiguration,[]RedshiftConfigurationProcessingConfigurationParameters) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - // +kubebuilder:validation:Optional - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The ARN of the AWS credentials. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The configuration for backup in Amazon S3. Required if s3_backup_mode is Enabled. Supports the same fields as s3_configuration object. - // +kubebuilder:validation:Optional - s3BackupConfiguration?: [...#RedshiftConfigurationS3BackupConfigurationParameters] @go(S3BackupConfiguration,[]RedshiftConfigurationS3BackupConfigurationParameters) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - // +kubebuilder:validation:Optional - s3BackupMode?: null | string @go(S3BackupMode,*string) - - // The username that the firehose delivery stream will assume. It is strongly recommended that the username and password provided is used exclusively for Amazon Kinesis Firehose purposes, and that the permissions for the account are restricted for Amazon Redshift INSERT permissions. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -#RedshiftConfigurationProcessingConfigurationInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - processors?: [...#RedshiftConfigurationProcessingConfigurationProcessorsInitParameters] @go(Processors,[]RedshiftConfigurationProcessingConfigurationProcessorsInitParameters) -} - -#RedshiftConfigurationProcessingConfigurationObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - processors?: [...#RedshiftConfigurationProcessingConfigurationProcessorsObservation] @go(Processors,[]RedshiftConfigurationProcessingConfigurationProcessorsObservation) -} - -#RedshiftConfigurationProcessingConfigurationParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - // +kubebuilder:validation:Optional - processors?: [...#RedshiftConfigurationProcessingConfigurationProcessorsParameters] @go(Processors,[]RedshiftConfigurationProcessingConfigurationProcessorsParameters) -} - -#RedshiftConfigurationProcessingConfigurationProcessorsInitParameters: { - // Array of processor parameters. More details are given below - parameters?: [...#RedshiftConfigurationProcessingConfigurationProcessorsParametersInitParameters] @go(Parameters,[]RedshiftConfigurationProcessingConfigurationProcessorsParametersInitParameters) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - type?: null | string @go(Type,*string) -} - -#RedshiftConfigurationProcessingConfigurationProcessorsObservation: { - // Array of processor parameters. More details are given below - parameters?: [...#RedshiftConfigurationProcessingConfigurationProcessorsParametersObservation] @go(Parameters,[]RedshiftConfigurationProcessingConfigurationProcessorsParametersObservation) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - type?: null | string @go(Type,*string) -} - -#RedshiftConfigurationProcessingConfigurationProcessorsParameters: { - // Array of processor parameters. More details are given below - // +kubebuilder:validation:Optional - parameters?: [...#RedshiftConfigurationProcessingConfigurationProcessorsParametersParameters] @go(Parameters,[]RedshiftConfigurationProcessingConfigurationProcessorsParametersParameters) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RedshiftConfigurationProcessingConfigurationProcessorsParametersInitParameters: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#RedshiftConfigurationProcessingConfigurationProcessorsParametersObservation: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#RedshiftConfigurationProcessingConfigurationProcessorsParametersParameters: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - // +kubebuilder:validation:Optional - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - // +kubebuilder:validation:Optional - parameterValue?: null | string @go(ParameterValue,*string) -} - -#RedshiftConfigurationS3BackupConfigurationCloudwatchLoggingOptionsInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#RedshiftConfigurationS3BackupConfigurationCloudwatchLoggingOptionsObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#RedshiftConfigurationS3BackupConfigurationCloudwatchLoggingOptionsParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logStreamName?: null | string @go(LogStreamName,*string) -} - -#RedshiftConfigurationS3BackupConfigurationInitParameters: { - // Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. - bufferInterval?: null | float64 @go(BufferInterval,*float64) - - // Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. - // We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - bufferSize?: null | float64 @go(BufferSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#RedshiftConfigurationS3BackupConfigurationCloudwatchLoggingOptionsInitParameters] @go(CloudwatchLoggingOptions,[]RedshiftConfigurationS3BackupConfigurationCloudwatchLoggingOptionsInitParameters) - - // The compression format. If no value is specified, the default is UNCOMPRESSED. Other supported values are GZIP, ZIP, Snappy, & HADOOP_SNAPPY. - compressionFormat?: null | string @go(CompressionFormat,*string) - - // Prefix added to failed records before writing them to S3. Not currently supported for redshift destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects. - errorOutputPrefix?: null | string @go(ErrorOutputPrefix,*string) - - // Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will - // be used. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket - prefix?: null | string @go(Prefix,*string) -} - -#RedshiftConfigurationS3BackupConfigurationObservation: { - // The ARN of the S3 bucket - bucketArn?: null | string @go(BucketArn,*string) - - // Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. - bufferInterval?: null | float64 @go(BufferInterval,*float64) - - // Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. - // We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - bufferSize?: null | float64 @go(BufferSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#RedshiftConfigurationS3BackupConfigurationCloudwatchLoggingOptionsObservation] @go(CloudwatchLoggingOptions,[]RedshiftConfigurationS3BackupConfigurationCloudwatchLoggingOptionsObservation) - - // The compression format. If no value is specified, the default is UNCOMPRESSED. Other supported values are GZIP, ZIP, Snappy, & HADOOP_SNAPPY. - compressionFormat?: null | string @go(CompressionFormat,*string) - - // Prefix added to failed records before writing them to S3. Not currently supported for redshift destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects. - errorOutputPrefix?: null | string @go(ErrorOutputPrefix,*string) - - // Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will - // be used. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket - prefix?: null | string @go(Prefix,*string) - - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) -} - -#RedshiftConfigurationS3BackupConfigurationParameters: { - // The ARN of the S3 bucket - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - bucketArn?: null | string @go(BucketArn,*string) - - // Reference to a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnRef?: null | v1.#Reference @go(BucketArnRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnSelector?: null | v1.#Selector @go(BucketArnSelector,*v1.Selector) - - // Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. - // +kubebuilder:validation:Optional - bufferInterval?: null | float64 @go(BufferInterval,*float64) - - // Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. - // We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - // +kubebuilder:validation:Optional - bufferSize?: null | float64 @go(BufferSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - // +kubebuilder:validation:Optional - cloudwatchLoggingOptions?: [...#RedshiftConfigurationS3BackupConfigurationCloudwatchLoggingOptionsParameters] @go(CloudwatchLoggingOptions,[]RedshiftConfigurationS3BackupConfigurationCloudwatchLoggingOptionsParameters) - - // The compression format. If no value is specified, the default is UNCOMPRESSED. Other supported values are GZIP, ZIP, Snappy, & HADOOP_SNAPPY. - // +kubebuilder:validation:Optional - compressionFormat?: null | string @go(CompressionFormat,*string) - - // Prefix added to failed records before writing them to S3. Not currently supported for redshift destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects. - // +kubebuilder:validation:Optional - errorOutputPrefix?: null | string @go(ErrorOutputPrefix,*string) - - // Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will - // be used. - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // The ARN of the AWS credentials. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -#RequestConfigurationInitParameters: { - // Describes the metadata sent to the HTTP endpoint destination. More details are given below - commonAttributes?: [...#CommonAttributesInitParameters] @go(CommonAttributes,[]CommonAttributesInitParameters) - - // Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to the destination. Valid values are NONE and GZIP. Default value is NONE. - contentEncoding?: null | string @go(ContentEncoding,*string) -} - -#RequestConfigurationObservation: { - // Describes the metadata sent to the HTTP endpoint destination. More details are given below - commonAttributes?: [...#CommonAttributesObservation] @go(CommonAttributes,[]CommonAttributesObservation) - - // Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to the destination. Valid values are NONE and GZIP. Default value is NONE. - contentEncoding?: null | string @go(ContentEncoding,*string) -} - -#RequestConfigurationParameters: { - // Describes the metadata sent to the HTTP endpoint destination. More details are given below - // +kubebuilder:validation:Optional - commonAttributes?: [...#CommonAttributesParameters] @go(CommonAttributes,[]CommonAttributesParameters) - - // Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to the destination. Valid values are NONE and GZIP. Default value is NONE. - // +kubebuilder:validation:Optional - contentEncoding?: null | string @go(ContentEncoding,*string) -} - -#S3BackupConfigurationCloudwatchLoggingOptionsInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#S3BackupConfigurationCloudwatchLoggingOptionsObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#S3BackupConfigurationCloudwatchLoggingOptionsParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logStreamName?: null | string @go(LogStreamName,*string) -} - -#S3BackupConfigurationInitParameters: { - // The ARN of the S3 bucket - bucketArn?: null | string @go(BucketArn,*string) - - // Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. - bufferInterval?: null | float64 @go(BufferInterval,*float64) - - // Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. - // We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - bufferSize?: null | float64 @go(BufferSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#S3BackupConfigurationCloudwatchLoggingOptionsInitParameters] @go(CloudwatchLoggingOptions,[]S3BackupConfigurationCloudwatchLoggingOptionsInitParameters) - - // The compression format. If no value is specified, the default is UNCOMPRESSED. Other supported values are GZIP, ZIP, Snappy, & HADOOP_SNAPPY. - compressionFormat?: null | string @go(CompressionFormat,*string) - - // Prefix added to failed records before writing them to S3. Not currently supported for redshift destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects. - errorOutputPrefix?: null | string @go(ErrorOutputPrefix,*string) - - // Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will - // be used. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket - prefix?: null | string @go(Prefix,*string) - - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) -} - -#S3BackupConfigurationObservation: { - // The ARN of the S3 bucket - bucketArn?: null | string @go(BucketArn,*string) - - // Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. - bufferInterval?: null | float64 @go(BufferInterval,*float64) - - // Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. - // We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - bufferSize?: null | float64 @go(BufferSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#S3BackupConfigurationCloudwatchLoggingOptionsObservation] @go(CloudwatchLoggingOptions,[]S3BackupConfigurationCloudwatchLoggingOptionsObservation) - - // The compression format. If no value is specified, the default is UNCOMPRESSED. Other supported values are GZIP, ZIP, Snappy, & HADOOP_SNAPPY. - compressionFormat?: null | string @go(CompressionFormat,*string) - - // Prefix added to failed records before writing them to S3. Not currently supported for redshift destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects. - errorOutputPrefix?: null | string @go(ErrorOutputPrefix,*string) - - // Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will - // be used. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket - prefix?: null | string @go(Prefix,*string) - - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) -} - -#S3BackupConfigurationParameters: { - // The ARN of the S3 bucket - // +kubebuilder:validation:Optional - bucketArn?: null | string @go(BucketArn,*string) - - // Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. - // +kubebuilder:validation:Optional - bufferInterval?: null | float64 @go(BufferInterval,*float64) - - // Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. - // We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - // +kubebuilder:validation:Optional - bufferSize?: null | float64 @go(BufferSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - // +kubebuilder:validation:Optional - cloudwatchLoggingOptions?: [...#S3BackupConfigurationCloudwatchLoggingOptionsParameters] @go(CloudwatchLoggingOptions,[]S3BackupConfigurationCloudwatchLoggingOptionsParameters) - - // The compression format. If no value is specified, the default is UNCOMPRESSED. Other supported values are GZIP, ZIP, Snappy, & HADOOP_SNAPPY. - // +kubebuilder:validation:Optional - compressionFormat?: null | string @go(CompressionFormat,*string) - - // Prefix added to failed records before writing them to S3. Not currently supported for redshift destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects. - // +kubebuilder:validation:Optional - errorOutputPrefix?: null | string @go(ErrorOutputPrefix,*string) - - // Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will - // be used. - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // The ARN of the AWS credentials. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#S3ConfigurationCloudwatchLoggingOptionsInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#S3ConfigurationCloudwatchLoggingOptionsObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#S3ConfigurationCloudwatchLoggingOptionsParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logStreamName?: null | string @go(LogStreamName,*string) -} - -#S3ConfigurationInitParameters: { - // Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. - bufferInterval?: null | float64 @go(BufferInterval,*float64) - - // Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. - // We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - bufferSize?: null | float64 @go(BufferSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#S3ConfigurationCloudwatchLoggingOptionsInitParameters] @go(CloudwatchLoggingOptions,[]S3ConfigurationCloudwatchLoggingOptionsInitParameters) - - // The compression format. If no value is specified, the default is UNCOMPRESSED. Other supported values are GZIP, ZIP, Snappy, & HADOOP_SNAPPY. - compressionFormat?: null | string @go(CompressionFormat,*string) - - // Prefix added to failed records before writing them to S3. Not currently supported for redshift destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects. - errorOutputPrefix?: null | string @go(ErrorOutputPrefix,*string) - - // Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will - // be used. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket - prefix?: null | string @go(Prefix,*string) -} - -#S3ConfigurationObservation: { - // The ARN of the S3 bucket - bucketArn?: null | string @go(BucketArn,*string) - - // Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. - bufferInterval?: null | float64 @go(BufferInterval,*float64) - - // Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. - // We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - bufferSize?: null | float64 @go(BufferSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#S3ConfigurationCloudwatchLoggingOptionsObservation] @go(CloudwatchLoggingOptions,[]S3ConfigurationCloudwatchLoggingOptionsObservation) - - // The compression format. If no value is specified, the default is UNCOMPRESSED. Other supported values are GZIP, ZIP, Snappy, & HADOOP_SNAPPY. - compressionFormat?: null | string @go(CompressionFormat,*string) - - // Prefix added to failed records before writing them to S3. Not currently supported for redshift destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects. - errorOutputPrefix?: null | string @go(ErrorOutputPrefix,*string) - - // Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will - // be used. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket - prefix?: null | string @go(Prefix,*string) - - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) -} - -#S3ConfigurationParameters: { - // The ARN of the S3 bucket - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - bucketArn?: null | string @go(BucketArn,*string) - - // Reference to a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnRef?: null | v1.#Reference @go(BucketArnRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnSelector?: null | v1.#Selector @go(BucketArnSelector,*v1.Selector) - - // Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. - // +kubebuilder:validation:Optional - bufferInterval?: null | float64 @go(BufferInterval,*float64) - - // Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. - // We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - // +kubebuilder:validation:Optional - bufferSize?: null | float64 @go(BufferSize,*float64) - - // The CloudWatch Logging Options for the delivery stream. More details are given below - // +kubebuilder:validation:Optional - cloudwatchLoggingOptions?: [...#S3ConfigurationCloudwatchLoggingOptionsParameters] @go(CloudwatchLoggingOptions,[]S3ConfigurationCloudwatchLoggingOptionsParameters) - - // The compression format. If no value is specified, the default is UNCOMPRESSED. Other supported values are GZIP, ZIP, Snappy, & HADOOP_SNAPPY. - // +kubebuilder:validation:Optional - compressionFormat?: null | string @go(CompressionFormat,*string) - - // Prefix added to failed records before writing them to S3. Not currently supported for redshift destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects. - // +kubebuilder:validation:Optional - errorOutputPrefix?: null | string @go(ErrorOutputPrefix,*string) - - // Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will - // be used. - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // The ARN of the AWS credentials. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -#SchemaConfigurationInitParameters: { - // The ID of the AWS Glue Data Catalog. If you don't supply this, the AWS account ID is used by default. - catalogId?: null | string @go(CatalogID,*string) - - // Specifies the name of the AWS Glue database that contains the schema for the output data. - databaseName?: null | string @go(DatabaseName,*string) - - // Specifies the table version for the output data schema. Defaults to LATEST. - versionId?: null | string @go(VersionID,*string) -} - -#SchemaConfigurationObservation: { - // The ID of the AWS Glue Data Catalog. If you don't supply this, the AWS account ID is used by default. - catalogId?: null | string @go(CatalogID,*string) - - // Specifies the name of the AWS Glue database that contains the schema for the output data. - databaseName?: null | string @go(DatabaseName,*string) - - // If you don't specify an AWS Region, the default is the current region. - region?: null | string @go(Region,*string) - - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) - - // Specifies the AWS Glue table that contains the column information that constitutes your data schema. - tableName?: null | string @go(TableName,*string) - - // Specifies the table version for the output data schema. Defaults to LATEST. - versionId?: null | string @go(VersionID,*string) -} - -#SchemaConfigurationParameters: { - // The ID of the AWS Glue Data Catalog. If you don't supply this, the AWS account ID is used by default. - // +kubebuilder:validation:Optional - catalogId?: null | string @go(CatalogID,*string) - - // Specifies the name of the AWS Glue database that contains the schema for the output data. - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // If you don't specify an AWS Region, the default is the current region. - // +kubebuilder:validation:Optional - region?: null | string @go(Region,*string) - - // The ARN of the AWS credentials. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Specifies the AWS Glue table that contains the column information that constitutes your data schema. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.CatalogTable - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) - - // Reference to a CatalogTable in glue to populate tableName. - // +kubebuilder:validation:Optional - tableNameRef?: null | v1.#Reference @go(TableNameRef,*v1.Reference) - - // Selector for a CatalogTable in glue to populate tableName. - // +kubebuilder:validation:Optional - tableNameSelector?: null | v1.#Selector @go(TableNameSelector,*v1.Selector) - - // Specifies the table version for the output data schema. Defaults to LATEST. - // +kubebuilder:validation:Optional - versionId?: null | string @go(VersionID,*string) -} - -#SerializerInitParameters: { - // Nested argument that specifies converting data to the ORC format before storing it in Amazon S3. For more information, see Apache ORC. More details below. - orcSerDe?: [...#OrcSerDeInitParameters] @go(OrcSerDe,[]OrcSerDeInitParameters) - - // Nested argument that specifies converting data to the Parquet format before storing it in Amazon S3. For more information, see Apache Parquet. More details below. - parquetSerDe?: [...#ParquetSerDeInitParameters] @go(ParquetSerDe,[]ParquetSerDeInitParameters) -} - -#SerializerObservation: { - // Nested argument that specifies converting data to the ORC format before storing it in Amazon S3. For more information, see Apache ORC. More details below. - orcSerDe?: [...#OrcSerDeObservation] @go(OrcSerDe,[]OrcSerDeObservation) - - // Nested argument that specifies converting data to the Parquet format before storing it in Amazon S3. For more information, see Apache Parquet. More details below. - parquetSerDe?: [...#ParquetSerDeObservation] @go(ParquetSerDe,[]ParquetSerDeObservation) -} - -#SerializerParameters: { - // Nested argument that specifies converting data to the ORC format before storing it in Amazon S3. For more information, see Apache ORC. More details below. - // +kubebuilder:validation:Optional - orcSerDe?: [...#OrcSerDeParameters] @go(OrcSerDe,[]OrcSerDeParameters) - - // Nested argument that specifies converting data to the Parquet format before storing it in Amazon S3. For more information, see Apache Parquet. More details below. - // +kubebuilder:validation:Optional - parquetSerDe?: [...#ParquetSerDeParameters] @go(ParquetSerDe,[]ParquetSerDeParameters) -} - -#ServerSideEncryptionInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Amazon Resource Name (ARN) of the encryption key. Required when key_type is CUSTOMER_MANAGED_CMK. - keyArn?: null | string @go(KeyArn,*string) - - // Type of encryption key. Default is AWS_OWNED_CMK. Valid values are AWS_OWNED_CMK and CUSTOMER_MANAGED_CMK - keyType?: null | string @go(KeyType,*string) -} - -#ServerSideEncryptionObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Amazon Resource Name (ARN) of the encryption key. Required when key_type is CUSTOMER_MANAGED_CMK. - keyArn?: null | string @go(KeyArn,*string) - - // Type of encryption key. Default is AWS_OWNED_CMK. Valid values are AWS_OWNED_CMK and CUSTOMER_MANAGED_CMK - keyType?: null | string @go(KeyType,*string) -} - -#ServerSideEncryptionParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Amazon Resource Name (ARN) of the encryption key. Required when key_type is CUSTOMER_MANAGED_CMK. - // +kubebuilder:validation:Optional - keyArn?: null | string @go(KeyArn,*string) - - // Type of encryption key. Default is AWS_OWNED_CMK. Valid values are AWS_OWNED_CMK and CUSTOMER_MANAGED_CMK - // +kubebuilder:validation:Optional - keyType?: null | string @go(KeyType,*string) -} - -#SplunkConfigurationCloudwatchLoggingOptionsInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#SplunkConfigurationCloudwatchLoggingOptionsObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - logStreamName?: null | string @go(LogStreamName,*string) -} - -#SplunkConfigurationCloudwatchLoggingOptionsParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The CloudWatch group name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // The CloudWatch log stream name for logging. This value is required if enabled is true. - // +kubebuilder:validation:Optional - logStreamName?: null | string @go(LogStreamName,*string) -} - -#SplunkConfigurationInitParameters: { - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#SplunkConfigurationCloudwatchLoggingOptionsInitParameters] @go(CloudwatchLoggingOptions,[]SplunkConfigurationCloudwatchLoggingOptionsInitParameters) - - // The amount of time, in seconds between 180 and 600, that Kinesis Firehose waits to receive an acknowledgment from Splunk after it sends it data. - hecAcknowledgmentTimeout?: null | float64 @go(HecAcknowledgmentTimeout,*float64) - - // The HTTP Event Collector (HEC) endpoint to which Kinesis Firehose sends your data. - hecEndpoint?: null | string @go(HecEndpoint,*string) - - // The HEC endpoint type. Valid values are Raw or Event. The default value is Raw. - hecEndpointType?: null | string @go(HecEndpointType,*string) - - // The data processing configuration. More details are given below. - processingConfiguration?: [...#SplunkConfigurationProcessingConfigurationInitParameters] @go(ProcessingConfiguration,[]SplunkConfigurationProcessingConfigurationInitParameters) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - s3BackupMode?: null | string @go(S3BackupMode,*string) -} - -#SplunkConfigurationObservation: { - // The CloudWatch Logging Options for the delivery stream. More details are given below - cloudwatchLoggingOptions?: [...#SplunkConfigurationCloudwatchLoggingOptionsObservation] @go(CloudwatchLoggingOptions,[]SplunkConfigurationCloudwatchLoggingOptionsObservation) - - // The amount of time, in seconds between 180 and 600, that Kinesis Firehose waits to receive an acknowledgment from Splunk after it sends it data. - hecAcknowledgmentTimeout?: null | float64 @go(HecAcknowledgmentTimeout,*float64) - - // The HTTP Event Collector (HEC) endpoint to which Kinesis Firehose sends your data. - hecEndpoint?: null | string @go(HecEndpoint,*string) - - // The HEC endpoint type. Valid values are Raw or Event. The default value is Raw. - hecEndpointType?: null | string @go(HecEndpointType,*string) - - // The data processing configuration. More details are given below. - processingConfiguration?: [...#SplunkConfigurationProcessingConfigurationObservation] @go(ProcessingConfiguration,[]SplunkConfigurationProcessingConfigurationObservation) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - s3BackupMode?: null | string @go(S3BackupMode,*string) -} - -#SplunkConfigurationParameters: { - // The CloudWatch Logging Options for the delivery stream. More details are given below - // +kubebuilder:validation:Optional - cloudwatchLoggingOptions?: [...#SplunkConfigurationCloudwatchLoggingOptionsParameters] @go(CloudwatchLoggingOptions,[]SplunkConfigurationCloudwatchLoggingOptionsParameters) - - // The amount of time, in seconds between 180 and 600, that Kinesis Firehose waits to receive an acknowledgment from Splunk after it sends it data. - // +kubebuilder:validation:Optional - hecAcknowledgmentTimeout?: null | float64 @go(HecAcknowledgmentTimeout,*float64) - - // The HTTP Event Collector (HEC) endpoint to which Kinesis Firehose sends your data. - // +kubebuilder:validation:Optional - hecEndpoint?: null | string @go(HecEndpoint,*string) - - // The HEC endpoint type. Valid values are Raw or Event. The default value is Raw. - // +kubebuilder:validation:Optional - hecEndpointType?: null | string @go(HecEndpointType,*string) - - // The GUID that you obtain from your Splunk cluster when you create a new HEC endpoint. - // +kubebuilder:validation:Required - hecTokenSecretRef: v1.#SecretKeySelector @go(HecTokenSecretRef) - - // The data processing configuration. More details are given below. - // +kubebuilder:validation:Optional - processingConfiguration?: [...#SplunkConfigurationProcessingConfigurationParameters] @go(ProcessingConfiguration,[]SplunkConfigurationProcessingConfigurationParameters) - - // The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value. - // +kubebuilder:validation:Optional - retryDuration?: null | float64 @go(RetryDuration,*float64) - - // The Amazon S3 backup mode. Valid values are Disabled and Enabled. Default value is Disabled. - // +kubebuilder:validation:Optional - s3BackupMode?: null | string @go(S3BackupMode,*string) -} - -#SplunkConfigurationProcessingConfigurationInitParameters: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - processors?: [...#SplunkConfigurationProcessingConfigurationProcessorsInitParameters] @go(Processors,[]SplunkConfigurationProcessingConfigurationProcessorsInitParameters) -} - -#SplunkConfigurationProcessingConfigurationObservation: { - // Enables or disables the logging. Defaults to false. - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - processors?: [...#SplunkConfigurationProcessingConfigurationProcessorsObservation] @go(Processors,[]SplunkConfigurationProcessingConfigurationProcessorsObservation) -} - -#SplunkConfigurationProcessingConfigurationParameters: { - // Enables or disables the logging. Defaults to false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Array of data processors. More details are given below - // +kubebuilder:validation:Optional - processors?: [...#SplunkConfigurationProcessingConfigurationProcessorsParameters] @go(Processors,[]SplunkConfigurationProcessingConfigurationProcessorsParameters) -} - -#SplunkConfigurationProcessingConfigurationProcessorsInitParameters: { - // Array of processor parameters. More details are given below - parameters?: [...#SplunkConfigurationProcessingConfigurationProcessorsParametersInitParameters] @go(Parameters,[]SplunkConfigurationProcessingConfigurationProcessorsParametersInitParameters) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - type?: null | string @go(Type,*string) -} - -#SplunkConfigurationProcessingConfigurationProcessorsObservation: { - // Array of processor parameters. More details are given below - parameters?: [...#SplunkConfigurationProcessingConfigurationProcessorsParametersObservation] @go(Parameters,[]SplunkConfigurationProcessingConfigurationProcessorsParametersObservation) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - type?: null | string @go(Type,*string) -} - -#SplunkConfigurationProcessingConfigurationProcessorsParameters: { - // Array of processor parameters. More details are given below - // +kubebuilder:validation:Optional - parameters?: [...#SplunkConfigurationProcessingConfigurationProcessorsParametersParameters] @go(Parameters,[]SplunkConfigurationProcessingConfigurationProcessorsParametersParameters) - - // The type of processor. Valid Values: RecordDeAggregation, Lambda, MetadataExtraction, AppendDelimiterToRecord. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#SplunkConfigurationProcessingConfigurationProcessorsParametersInitParameters: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#SplunkConfigurationProcessingConfigurationProcessorsParametersObservation: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#SplunkConfigurationProcessingConfigurationProcessorsParametersParameters: { - // Parameter name. Valid Values: LambdaArn, NumberOfRetries, MetadataExtractionQuery, JsonParsingEngine, RoleArn, BufferSizeInMBs, BufferIntervalInSeconds, SubRecordType, Delimiter. Validation is done against AWS SDK constants; so that values not explicitly listed may also work. - // +kubebuilder:validation:Optional - parameterName?: null | string @go(ParameterName,*string) - - // Parameter value. Must be between 1 and 512 length (inclusive). When providing a Lambda ARN, you should specify the resource version as well. - // +kubebuilder:validation:Optional - parameterValue?: null | string @go(ParameterValue,*string) -} - -#VPCConfigInitParameters: { - // A list of security group IDs to associate with Kinesis Firehose. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of subnet IDs to associate with Kinesis Firehose. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#VPCConfigObservation: { - // The ARN of the AWS credentials. - roleArn?: null | string @go(RoleArn,*string) - - // A list of security group IDs to associate with Kinesis Firehose. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of subnet IDs to associate with Kinesis Firehose. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - vpcId?: null | string @go(VPCID,*string) -} - -#VPCConfigParameters: { - // The ARN of the AWS credentials. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // A list of security group IDs to associate with Kinesis Firehose. - // +kubebuilder:validation:Optional - securityGroupIds: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of subnet IDs to associate with Kinesis Firehose. - // +kubebuilder:validation:Optional - subnetIds: [...null | string] @go(SubnetIds,[]*string) -} - -// DeliveryStreamSpec defines the desired state of DeliveryStream -#DeliveryStreamSpec: { - v1.#ResourceSpec - forProvider: #DeliveryStreamParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DeliveryStreamInitParameters @go(InitProvider) -} - -// DeliveryStreamStatus defines the observed state of DeliveryStream. -#DeliveryStreamStatus: { - v1.#ResourceStatus - atProvider?: #DeliveryStreamObservation @go(AtProvider) -} - -// DeliveryStream is the Schema for the DeliveryStreams API. Provides a AWS Kinesis Firehose Delivery Stream -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DeliveryStream: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destination) || (has(self.initProvider) && has(self.initProvider.destination))",message="spec.forProvider.destination is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #DeliveryStreamSpec @go(Spec) - status?: #DeliveryStreamStatus @go(Status) -} - -// DeliveryStreamList contains a list of DeliveryStreams -#DeliveryStreamList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DeliveryStream] @go(Items,[]DeliveryStream) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/firehose/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/firehose/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 7163d5a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/firehose/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/firehose/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=firehose.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "firehose.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/fis/v1beta1/zz_experimenttemplate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/fis/v1beta1/zz_experimenttemplate_types_go_gen.cue deleted file mode 100644 index 2b7bdea..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/fis/v1beta1/zz_experimenttemplate_types_go_gen.cue +++ /dev/null @@ -1,403 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/fis/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionInitParameters: { - // ID of the action. To find out what actions are supported see AWS FIS actions reference. - actionId?: null | string @go(ActionID,*string) - - // Description of the action. - description?: null | string @go(Description,*string) - - // Friendly name of the action. - name?: null | string @go(Name,*string) - - // Parameter(s) for the action, if applicable. See below. - parameter?: [...#ParameterInitParameters] @go(Parameter,[]ParameterInitParameters) - - // Set of action names that must complete before this action can be executed. - startAfter?: [...null | string] @go(StartAfter,[]*string) - - // Action's target, if applicable. See below. - target?: [...#TargetInitParameters] @go(Target,[]TargetInitParameters) -} - -#ActionObservation: { - // ID of the action. To find out what actions are supported see AWS FIS actions reference. - actionId?: null | string @go(ActionID,*string) - - // Description of the action. - description?: null | string @go(Description,*string) - - // Friendly name of the action. - name?: null | string @go(Name,*string) - - // Parameter(s) for the action, if applicable. See below. - parameter?: [...#ParameterObservation] @go(Parameter,[]ParameterObservation) - - // Set of action names that must complete before this action can be executed. - startAfter?: [...null | string] @go(StartAfter,[]*string) - - // Action's target, if applicable. See below. - target?: [...#TargetObservation] @go(Target,[]TargetObservation) -} - -#ActionParameters: { - // ID of the action. To find out what actions are supported see AWS FIS actions reference. - // +kubebuilder:validation:Optional - actionId?: null | string @go(ActionID,*string) - - // Description of the action. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Friendly name of the action. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Parameter(s) for the action, if applicable. See below. - // +kubebuilder:validation:Optional - parameter?: [...#ParameterParameters] @go(Parameter,[]ParameterParameters) - - // Set of action names that must complete before this action can be executed. - // +kubebuilder:validation:Optional - startAfter?: [...null | string] @go(StartAfter,[]*string) - - // Action's target, if applicable. See below. - // +kubebuilder:validation:Optional - target?: [...#TargetParameters] @go(Target,[]TargetParameters) -} - -#ExperimentTemplateInitParameters: { - // Action to be performed during an experiment. See below. - action?: [...#ActionInitParameters] @go(Action,[]ActionInitParameters) - - // Description for the experiment template. - description?: null | string @go(Description,*string) - - // When an ongoing experiment should be stopped. See below. - stopCondition?: [...#StopConditionInitParameters] @go(StopCondition,[]StopConditionInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Target of an action. See below. - target?: [...#ExperimentTemplateTargetInitParameters] @go(Target,[]ExperimentTemplateTargetInitParameters) -} - -#ExperimentTemplateObservation: { - // Action to be performed during an experiment. See below. - action?: [...#ActionObservation] @go(Action,[]ActionObservation) - - // Description for the experiment template. - description?: null | string @go(Description,*string) - - // Experiment Template ID. - id?: null | string @go(ID,*string) - - // ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf. - roleArn?: null | string @go(RoleArn,*string) - - // When an ongoing experiment should be stopped. See below. - stopCondition?: [...#StopConditionObservation] @go(StopCondition,[]StopConditionObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Target of an action. See below. - target?: [...#ExperimentTemplateTargetObservation] @go(Target,[]ExperimentTemplateTargetObservation) -} - -#ExperimentTemplateParameters: { - // Action to be performed during an experiment. See below. - // +kubebuilder:validation:Optional - action?: [...#ActionParameters] @go(Action,[]ActionParameters) - - // Description for the experiment template. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ARN of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // When an ongoing experiment should be stopped. See below. - // +kubebuilder:validation:Optional - stopCondition?: [...#StopConditionParameters] @go(StopCondition,[]StopConditionParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Target of an action. See below. - // +kubebuilder:validation:Optional - target?: [...#ExperimentTemplateTargetParameters] @go(Target,[]ExperimentTemplateTargetParameters) -} - -#ExperimentTemplateTargetInitParameters: { - // Filter(s) for the target. Filters can be used to select resources based on specific attributes returned by the respective describe action of the resource type. For more information, see Targets for AWS FIS. See below. - filter?: [...#FilterInitParameters] @go(Filter,[]FilterInitParameters) - - // Friendly name given to the target. - name?: null | string @go(Name,*string) - - // Set of ARNs of the resources to target with an action. Conflicts with resource_tag. - resourceArns?: [...null | string] @go(ResourceArns,[]*string) - - // Tag(s) the resources need to have to be considered a valid target for an action. Conflicts with resource_arns. See below. - resourceTag?: [...#ResourceTagInitParameters] @go(ResourceTag,[]ResourceTagInitParameters) - - // AWS resource type. The resource type must be supported for the specified action. To find out what resource types are supported, see Targets for AWS FIS. - resourceType?: null | string @go(ResourceType,*string) - - // Scopes the identified resources. Valid values are ALL (all identified resources), COUNT(n) (randomly select n of the identified resources), PERCENT(n) (randomly select n percent of the identified resources). - selectionMode?: null | string @go(SelectionMode,*string) -} - -#ExperimentTemplateTargetObservation: { - // Filter(s) for the target. Filters can be used to select resources based on specific attributes returned by the respective describe action of the resource type. For more information, see Targets for AWS FIS. See below. - filter?: [...#FilterObservation] @go(Filter,[]FilterObservation) - - // Friendly name given to the target. - name?: null | string @go(Name,*string) - - // Set of ARNs of the resources to target with an action. Conflicts with resource_tag. - resourceArns?: [...null | string] @go(ResourceArns,[]*string) - - // Tag(s) the resources need to have to be considered a valid target for an action. Conflicts with resource_arns. See below. - resourceTag?: [...#ResourceTagObservation] @go(ResourceTag,[]ResourceTagObservation) - - // AWS resource type. The resource type must be supported for the specified action. To find out what resource types are supported, see Targets for AWS FIS. - resourceType?: null | string @go(ResourceType,*string) - - // Scopes the identified resources. Valid values are ALL (all identified resources), COUNT(n) (randomly select n of the identified resources), PERCENT(n) (randomly select n percent of the identified resources). - selectionMode?: null | string @go(SelectionMode,*string) -} - -#ExperimentTemplateTargetParameters: { - // Filter(s) for the target. Filters can be used to select resources based on specific attributes returned by the respective describe action of the resource type. For more information, see Targets for AWS FIS. See below. - // +kubebuilder:validation:Optional - filter?: [...#FilterParameters] @go(Filter,[]FilterParameters) - - // Friendly name given to the target. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Set of ARNs of the resources to target with an action. Conflicts with resource_tag. - // +kubebuilder:validation:Optional - resourceArns?: [...null | string] @go(ResourceArns,[]*string) - - // Tag(s) the resources need to have to be considered a valid target for an action. Conflicts with resource_arns. See below. - // +kubebuilder:validation:Optional - resourceTag?: [...#ResourceTagParameters] @go(ResourceTag,[]ResourceTagParameters) - - // AWS resource type. The resource type must be supported for the specified action. To find out what resource types are supported, see Targets for AWS FIS. - // +kubebuilder:validation:Optional - resourceType?: null | string @go(ResourceType,*string) - - // Scopes the identified resources. Valid values are ALL (all identified resources), COUNT(n) (randomly select n of the identified resources), PERCENT(n) (randomly select n percent of the identified resources). - // +kubebuilder:validation:Optional - selectionMode?: null | string @go(SelectionMode,*string) -} - -#FilterInitParameters: { - // Attribute path for the filter. - path?: null | string @go(Path,*string) - - // Set of attribute values for the filter. - values?: [...null | string] @go(Values,[]*string) -} - -#FilterObservation: { - // Attribute path for the filter. - path?: null | string @go(Path,*string) - - // Set of attribute values for the filter. - values?: [...null | string] @go(Values,[]*string) -} - -#FilterParameters: { - // Attribute path for the filter. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // Set of attribute values for the filter. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#ParameterInitParameters: { - // Parameter name. - key?: null | string @go(Key,*string) - - // Parameter value. - value?: null | string @go(Value,*string) -} - -#ParameterObservation: { - // Parameter name. - key?: null | string @go(Key,*string) - - // Parameter value. - value?: null | string @go(Value,*string) -} - -#ParameterParameters: { - // Parameter name. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Parameter value. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceTagInitParameters: { - // Tag key. - key?: null | string @go(Key,*string) - - // Tag value. - value?: null | string @go(Value,*string) -} - -#ResourceTagObservation: { - // Tag key. - key?: null | string @go(Key,*string) - - // Tag value. - value?: null | string @go(Value,*string) -} - -#ResourceTagParameters: { - // Tag key. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Tag value. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#StopConditionInitParameters: { - // Source of the condition. One of none, aws:cloudwatch:alarm. - source?: null | string @go(Source,*string) - - // ARN of the CloudWatch alarm. Required if the source is a CloudWatch alarm. - value?: null | string @go(Value,*string) -} - -#StopConditionObservation: { - // Source of the condition. One of none, aws:cloudwatch:alarm. - source?: null | string @go(Source,*string) - - // ARN of the CloudWatch alarm. Required if the source is a CloudWatch alarm. - value?: null | string @go(Value,*string) -} - -#StopConditionParameters: { - // Source of the condition. One of none, aws:cloudwatch:alarm. - // +kubebuilder:validation:Optional - source?: null | string @go(Source,*string) - - // ARN of the CloudWatch alarm. Required if the source is a CloudWatch alarm. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#TargetInitParameters: { - // Tag key. - key?: null | string @go(Key,*string) - - // Target name, referencing a corresponding target. - value?: null | string @go(Value,*string) -} - -#TargetObservation: { - // Tag key. - key?: null | string @go(Key,*string) - - // Target name, referencing a corresponding target. - value?: null | string @go(Value,*string) -} - -#TargetParameters: { - // Tag key. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Target name, referencing a corresponding target. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// ExperimentTemplateSpec defines the desired state of ExperimentTemplate -#ExperimentTemplateSpec: { - v1.#ResourceSpec - forProvider: #ExperimentTemplateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ExperimentTemplateInitParameters @go(InitProvider) -} - -// ExperimentTemplateStatus defines the observed state of ExperimentTemplate. -#ExperimentTemplateStatus: { - v1.#ResourceStatus - atProvider?: #ExperimentTemplateObservation @go(AtProvider) -} - -// ExperimentTemplate is the Schema for the ExperimentTemplates API. Provides an FIS Experiment Template. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ExperimentTemplate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.action) || (has(self.initProvider) && has(self.initProvider.action))",message="spec.forProvider.action is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.description) || (has(self.initProvider) && has(self.initProvider.description))",message="spec.forProvider.description is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.stopCondition) || (has(self.initProvider) && has(self.initProvider.stopCondition))",message="spec.forProvider.stopCondition is a required parameter" - spec: #ExperimentTemplateSpec @go(Spec) - status?: #ExperimentTemplateStatus @go(Status) -} - -// ExperimentTemplateList contains a list of ExperimentTemplates -#ExperimentTemplateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ExperimentTemplate] @go(Items,[]ExperimentTemplate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/fis/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/fis/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 58496d3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/fis/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/fis/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=fis.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "fis.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_backup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_backup_types_go_gen.cue deleted file mode 100644 index 717cc70..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_backup_types_go_gen.cue +++ /dev/null @@ -1,121 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/fsx/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BackupInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the volume to back up. Required if backing up a ONTAP Volume. - volumeId?: null | string @go(VolumeID,*string) -} - -#BackupObservation: { - // Amazon Resource Name of the backup. - arn?: null | string @go(Arn,*string) - - // The ID of the file system to back up. Required if backing up Lustre or Windows file systems. - fileSystemId?: null | string @go(FileSystemID,*string) - - // Identifier of the backup, e.g., fs-12345678 - id?: null | string @go(ID,*string) - - // The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the backup of the Amazon FSx file system's data at rest. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // AWS account identifier that created the file system. - ownerId?: null | string @go(OwnerID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The type of the file system backup. - type?: null | string @go(Type,*string) - - // The ID of the volume to back up. Required if backing up a ONTAP Volume. - volumeId?: null | string @go(VolumeID,*string) -} - -#BackupParameters: { - // The ID of the file system to back up. Required if backing up Lustre or Windows file systems. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/fsx/v1beta1.LustreFileSystem - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // Reference to a LustreFileSystem in fsx to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdRef?: null | v1.#Reference @go(FileSystemIDRef,*v1.Reference) - - // Selector for a LustreFileSystem in fsx to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdSelector?: null | v1.#Selector @go(FileSystemIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the volume to back up. Required if backing up a ONTAP Volume. - // +kubebuilder:validation:Optional - volumeId?: null | string @go(VolumeID,*string) -} - -// BackupSpec defines the desired state of Backup -#BackupSpec: { - v1.#ResourceSpec - forProvider: #BackupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BackupInitParameters @go(InitProvider) -} - -// BackupStatus defines the observed state of Backup. -#BackupStatus: { - v1.#ResourceStatus - atProvider?: #BackupObservation @go(AtProvider) -} - -// Backup is the Schema for the Backups API. Manages a FSx Backup. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Backup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BackupSpec @go(Spec) - status?: #BackupStatus @go(Status) -} - -// BackupList contains a list of Backups -#BackupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Backup] @go(Items,[]Backup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_datarepositoryassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_datarepositoryassociation_types_go_gen.cue deleted file mode 100644 index 7c57c82..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_datarepositoryassociation_types_go_gen.cue +++ /dev/null @@ -1,229 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/fsx/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AutoExportPolicyInitParameters: { - // A list of file event types to automatically export to your linked S3 bucket or import from the linked S3 bucket. Valid values are NEW, CHANGED, DELETED. Max of 3. - events?: [...null | string] @go(Events,[]*string) -} - -#AutoExportPolicyObservation: { - // A list of file event types to automatically export to your linked S3 bucket or import from the linked S3 bucket. Valid values are NEW, CHANGED, DELETED. Max of 3. - events?: [...null | string] @go(Events,[]*string) -} - -#AutoExportPolicyParameters: { - // A list of file event types to automatically export to your linked S3 bucket or import from the linked S3 bucket. Valid values are NEW, CHANGED, DELETED. Max of 3. - // +kubebuilder:validation:Optional - events?: [...null | string] @go(Events,[]*string) -} - -#AutoImportPolicyInitParameters: { - // A list of file event types to automatically export to your linked S3 bucket or import from the linked S3 bucket. Valid values are NEW, CHANGED, DELETED. Max of 3. - events?: [...null | string] @go(Events,[]*string) -} - -#AutoImportPolicyObservation: { - // A list of file event types to automatically export to your linked S3 bucket or import from the linked S3 bucket. Valid values are NEW, CHANGED, DELETED. Max of 3. - events?: [...null | string] @go(Events,[]*string) -} - -#AutoImportPolicyParameters: { - // A list of file event types to automatically export to your linked S3 bucket or import from the linked S3 bucket. Valid values are NEW, CHANGED, DELETED. Max of 3. - // +kubebuilder:validation:Optional - events?: [...null | string] @go(Events,[]*string) -} - -#DataRepositoryAssociationInitParameters: { - // Set to true to run an import data repository task to import metadata from the data repository to the file system after the data repository association is created. Defaults to false. - batchImportMetaDataOnCreate?: null | bool @go(BatchImportMetaDataOnCreate,*bool) - - // The path to the Amazon S3 data repository that will be linked to the file system. The path must be an S3 bucket s3://myBucket/myPrefix/. This path specifies where in the S3 data repository files will be imported from or exported to. The same S3 bucket cannot be linked more than once to the same file system. - dataRepositoryPath?: null | string @go(DataRepositoryPath,*string) - - // Set to true to delete files from the file system upon deleting this data repository association. Defaults to false. - deleteDataInFilesystem?: null | bool @go(DeleteDataInFilesystem,*bool) - - // A path on the file system that points to a high-level directory (such as /ns1/) or subdirectory (such as /ns1/subdir/) that will be mapped 1-1 with data_repository_path. The leading forward slash in the name is required. Two data repository associations cannot have overlapping file system paths. For example, if a data repository is associated with file system path /ns1/, then you cannot link another data repository with file system path /ns1/ns2. This path specifies where in your file system files will be exported from or imported to. This file system directory can be linked to only one Amazon S3 bucket, and no other S3 bucket can be linked to the directory. - fileSystemPath?: null | string @go(FileSystemPath,*string) - - // For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system. - importedFileChunkSize?: null | float64 @go(ImportedFileChunkSize,*float64) - - // See the s3 configuration block. Max of 1. - // The configuration for an Amazon S3 data repository linked to an Amazon FSx Lustre file system with a data repository association. The configuration defines which file events (new, changed, or deleted files or directories) are automatically imported from the linked data repository to the file system or automatically exported from the file system to the data repository. - s3?: [...#S3InitParameters] @go(S3,[]S3InitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DataRepositoryAssociationObservation: { - // Amazon Resource Name of the file system. - arn?: null | string @go(Arn,*string) - - // Identifier of the data repository association, e.g., dra-12345678 - associationId?: null | string @go(AssociationID,*string) - - // Set to true to run an import data repository task to import metadata from the data repository to the file system after the data repository association is created. Defaults to false. - batchImportMetaDataOnCreate?: null | bool @go(BatchImportMetaDataOnCreate,*bool) - - // The path to the Amazon S3 data repository that will be linked to the file system. The path must be an S3 bucket s3://myBucket/myPrefix/. This path specifies where in the S3 data repository files will be imported from or exported to. The same S3 bucket cannot be linked more than once to the same file system. - dataRepositoryPath?: null | string @go(DataRepositoryPath,*string) - - // Set to true to delete files from the file system upon deleting this data repository association. Defaults to false. - deleteDataInFilesystem?: null | bool @go(DeleteDataInFilesystem,*bool) - - // The ID of the Amazon FSx file system to on which to create a data repository association. - fileSystemId?: null | string @go(FileSystemID,*string) - - // A path on the file system that points to a high-level directory (such as /ns1/) or subdirectory (such as /ns1/subdir/) that will be mapped 1-1 with data_repository_path. The leading forward slash in the name is required. Two data repository associations cannot have overlapping file system paths. For example, if a data repository is associated with file system path /ns1/, then you cannot link another data repository with file system path /ns1/ns2. This path specifies where in your file system files will be exported from or imported to. This file system directory can be linked to only one Amazon S3 bucket, and no other S3 bucket can be linked to the directory. - fileSystemPath?: null | string @go(FileSystemPath,*string) - - // Identifier of the data repository association, e.g., dra-12345678 - id?: null | string @go(ID,*string) - - // For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system. - importedFileChunkSize?: null | float64 @go(ImportedFileChunkSize,*float64) - - // See the s3 configuration block. Max of 1. - // The configuration for an Amazon S3 data repository linked to an Amazon FSx Lustre file system with a data repository association. The configuration defines which file events (new, changed, or deleted files or directories) are automatically imported from the linked data repository to the file system or automatically exported from the file system to the data repository. - s3?: [...#S3Observation] @go(S3,[]S3Observation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DataRepositoryAssociationParameters: { - // Set to true to run an import data repository task to import metadata from the data repository to the file system after the data repository association is created. Defaults to false. - // +kubebuilder:validation:Optional - batchImportMetaDataOnCreate?: null | bool @go(BatchImportMetaDataOnCreate,*bool) - - // The path to the Amazon S3 data repository that will be linked to the file system. The path must be an S3 bucket s3://myBucket/myPrefix/. This path specifies where in the S3 data repository files will be imported from or exported to. The same S3 bucket cannot be linked more than once to the same file system. - // +kubebuilder:validation:Optional - dataRepositoryPath?: null | string @go(DataRepositoryPath,*string) - - // Set to true to delete files from the file system upon deleting this data repository association. Defaults to false. - // +kubebuilder:validation:Optional - deleteDataInFilesystem?: null | bool @go(DeleteDataInFilesystem,*bool) - - // The ID of the Amazon FSx file system to on which to create a data repository association. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/fsx/v1beta1.LustreFileSystem - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // Reference to a LustreFileSystem in fsx to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdRef?: null | v1.#Reference @go(FileSystemIDRef,*v1.Reference) - - // Selector for a LustreFileSystem in fsx to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdSelector?: null | v1.#Selector @go(FileSystemIDSelector,*v1.Selector) - - // A path on the file system that points to a high-level directory (such as /ns1/) or subdirectory (such as /ns1/subdir/) that will be mapped 1-1 with data_repository_path. The leading forward slash in the name is required. Two data repository associations cannot have overlapping file system paths. For example, if a data repository is associated with file system path /ns1/, then you cannot link another data repository with file system path /ns1/ns2. This path specifies where in your file system files will be exported from or imported to. This file system directory can be linked to only one Amazon S3 bucket, and no other S3 bucket can be linked to the directory. - // +kubebuilder:validation:Optional - fileSystemPath?: null | string @go(FileSystemPath,*string) - - // For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system. - // +kubebuilder:validation:Optional - importedFileChunkSize?: null | float64 @go(ImportedFileChunkSize,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // See the s3 configuration block. Max of 1. - // The configuration for an Amazon S3 data repository linked to an Amazon FSx Lustre file system with a data repository association. The configuration defines which file events (new, changed, or deleted files or directories) are automatically imported from the linked data repository to the file system or automatically exported from the file system to the data repository. - // +kubebuilder:validation:Optional - s3?: [...#S3Parameters] @go(S3,[]S3Parameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#S3InitParameters: { - // Specifies the type of updated objects that will be automatically exported from your file system to the linked S3 bucket. See the events configuration block. - autoExportPolicy?: [...#AutoExportPolicyInitParameters] @go(AutoExportPolicy,[]AutoExportPolicyInitParameters) - - // Specifies the type of updated objects that will be automatically imported from the linked S3 bucket to your file system. See the events configuration block. - autoImportPolicy?: [...#AutoImportPolicyInitParameters] @go(AutoImportPolicy,[]AutoImportPolicyInitParameters) -} - -#S3Observation: { - // Specifies the type of updated objects that will be automatically exported from your file system to the linked S3 bucket. See the events configuration block. - autoExportPolicy?: [...#AutoExportPolicyObservation] @go(AutoExportPolicy,[]AutoExportPolicyObservation) - - // Specifies the type of updated objects that will be automatically imported from the linked S3 bucket to your file system. See the events configuration block. - autoImportPolicy?: [...#AutoImportPolicyObservation] @go(AutoImportPolicy,[]AutoImportPolicyObservation) -} - -#S3Parameters: { - // Specifies the type of updated objects that will be automatically exported from your file system to the linked S3 bucket. See the events configuration block. - // +kubebuilder:validation:Optional - autoExportPolicy?: [...#AutoExportPolicyParameters] @go(AutoExportPolicy,[]AutoExportPolicyParameters) - - // Specifies the type of updated objects that will be automatically imported from the linked S3 bucket to your file system. See the events configuration block. - // +kubebuilder:validation:Optional - autoImportPolicy?: [...#AutoImportPolicyParameters] @go(AutoImportPolicy,[]AutoImportPolicyParameters) -} - -// DataRepositoryAssociationSpec defines the desired state of DataRepositoryAssociation -#DataRepositoryAssociationSpec: { - v1.#ResourceSpec - forProvider: #DataRepositoryAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DataRepositoryAssociationInitParameters @go(InitProvider) -} - -// DataRepositoryAssociationStatus defines the observed state of DataRepositoryAssociation. -#DataRepositoryAssociationStatus: { - v1.#ResourceStatus - atProvider?: #DataRepositoryAssociationObservation @go(AtProvider) -} - -// DataRepositoryAssociation is the Schema for the DataRepositoryAssociations API. Manages a FSx for Lustre Data Repository Association. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DataRepositoryAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dataRepositoryPath) || (has(self.initProvider) && has(self.initProvider.dataRepositoryPath))",message="spec.forProvider.dataRepositoryPath is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.fileSystemPath) || (has(self.initProvider) && has(self.initProvider.fileSystemPath))",message="spec.forProvider.fileSystemPath is a required parameter" - spec: #DataRepositoryAssociationSpec @go(Spec) - status?: #DataRepositoryAssociationStatus @go(Status) -} - -// DataRepositoryAssociationList contains a list of DataRepositoryAssociations -#DataRepositoryAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DataRepositoryAssociation] @go(Items,[]DataRepositoryAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index f42e9d6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/fsx/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=fsx.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "fsx.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_lustrefilesystem_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_lustrefilesystem_types_go_gen.cue deleted file mode 100644 index cfb17e8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_lustrefilesystem_types_go_gen.cue +++ /dev/null @@ -1,384 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/fsx/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LogConfigurationInitParameters: { - // The Amazon Resource Name (ARN) that specifies the destination of the logs. The name of the Amazon CloudWatch Logs log group must begin with the /aws/fsx prefix. If you do not provide a destination, Amazon FSx will create and use a log stream in the CloudWatch Logs /aws/fsx/lustre log group. - destination?: null | string @go(Destination,*string) - - // Sets which data repository events are logged by Amazon FSx. Valid values are WARN_ONLY, FAILURE_ONLY, ERROR_ONLY, WARN_ERROR and DISABLED. Default value is DISABLED. - level?: null | string @go(Level,*string) -} - -#LogConfigurationObservation: { - // The Amazon Resource Name (ARN) that specifies the destination of the logs. The name of the Amazon CloudWatch Logs log group must begin with the /aws/fsx prefix. If you do not provide a destination, Amazon FSx will create and use a log stream in the CloudWatch Logs /aws/fsx/lustre log group. - destination?: null | string @go(Destination,*string) - - // Sets which data repository events are logged by Amazon FSx. Valid values are WARN_ONLY, FAILURE_ONLY, ERROR_ONLY, WARN_ERROR and DISABLED. Default value is DISABLED. - level?: null | string @go(Level,*string) -} - -#LogConfigurationParameters: { - // The Amazon Resource Name (ARN) that specifies the destination of the logs. The name of the Amazon CloudWatch Logs log group must begin with the /aws/fsx prefix. If you do not provide a destination, Amazon FSx will create and use a log stream in the CloudWatch Logs /aws/fsx/lustre log group. - // +kubebuilder:validation:Optional - destination?: null | string @go(Destination,*string) - - // Sets which data repository events are logged by Amazon FSx. Valid values are WARN_ONLY, FAILURE_ONLY, ERROR_ONLY, WARN_ERROR and DISABLED. Default value is DISABLED. - // +kubebuilder:validation:Optional - level?: null | string @go(Level,*string) -} - -#LustreFileSystemInitParameters: { - // How Amazon FSx keeps your file and directory listings up to date as you add or modify objects in your linked S3 bucket. see Auto Import Data Repo for more details. Only supported on PERSISTENT_1 deployment types. - autoImportPolicy?: null | string @go(AutoImportPolicy,*string) - - // The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days. only valid for PERSISTENT_1 and PERSISTENT_2 deployment_type. - automaticBackupRetentionDays?: null | float64 @go(AutomaticBackupRetentionDays,*float64) - - // The ID of the source backup to create the filesystem from. - backupId?: null | string @go(BackupID,*string) - - // A boolean flag indicating whether tags for the file system should be copied to backups. Applicable for PERSISTENT_1 and PERSISTENT_2 deployment_type. The default value is false. - copyTagsToBackups?: null | bool @go(CopyTagsToBackups,*bool) - - // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. only valid for PERSISTENT_1 and PERSISTENT_2 deployment_type. Requires automatic_backup_retention_days to be set. - dailyAutomaticBackupStartTime?: null | string @go(DailyAutomaticBackupStartTime,*string) - - // Sets the data compression configuration for the file system. Valid values are LZ4 and NONE. Default value is NONE. Unsetting this value reverts the compression type back to NONE. - dataCompressionType?: null | string @go(DataCompressionType,*string) - - // - The filesystem deployment type. One of: SCRATCH_1, SCRATCH_2, PERSISTENT_1, PERSISTENT_2. - deploymentType?: null | string @go(DeploymentType,*string) - - // - The type of drive cache used by PERSISTENT_1 filesystems that are provisioned with HDD storage_type. Required for HDD storage_type, set to either READ or NONE. - driveCacheType?: null | string @go(DriveCacheType,*string) - - // S3 URI (with optional prefix) where the root of your Amazon FSx file system is exported. Can only be specified with import_path argument and the path must use the same Amazon S3 bucket as specified in import_path. Set equal to import_path to overwrite files on export. Defaults to s3://{IMPORT BUCKET}/FSxLustre{CREATION TIMESTAMP}. Only supported on PERSISTENT_1 deployment types. - exportPath?: null | string @go(ExportPath,*string) - - // Sets the Lustre version for the file system that you're creating. Valid values are 2.10 for SCRATCH_1, SCRATCH_2 and PERSISTENT_1 deployment types. Valid values for 2.12 include all deployment types. - fileSystemTypeVersion?: null | string @go(FileSystemTypeVersion,*string) - - // S3 URI (with optional prefix) that you're using as the data repository for your FSx for Lustre file system. For example, s3://example-bucket/optional-prefix/. Only supported on PERSISTENT_1 deployment types. - importPath?: null | string @go(ImportPath,*string) - - // For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. Can only be specified with import_path argument. Defaults to 1024. Minimum of 1 and maximum of 512000. Only supported on PERSISTENT_1 deployment types. - importedFileChunkSize?: null | float64 @go(ImportedFileChunkSize,*float64) - - // The Lustre logging configuration used when creating an Amazon FSx for Lustre file system. When logging is enabled, Lustre logs error and warning events for data repositories associated with your file system to Amazon CloudWatch Logs. - logConfiguration?: [...#LogConfigurationInitParameters] @go(LogConfiguration,[]LogConfigurationInitParameters) - - // - Describes the amount of read and write throughput for each 1 tebibyte of storage, in MB/s/TiB, required for the PERSISTENT_1 and PERSISTENT_2 deployment_type. Valid values for PERSISTENT_1 deployment_type and SSD storage_type are 50, 100, 200. Valid values for PERSISTENT_1 deployment_type and HDD storage_type are 12, 40. Valid values for PERSISTENT_2 deployment_type and SSD storage_type are 125, 250, 500, 1000. - perUnitStorageThroughput?: null | float64 @go(PerUnitStorageThroughput,*float64) - - // The Lustre root squash configuration used when creating an Amazon FSx for Lustre file system. When enabled, root squash restricts root-level access from clients that try to access your file system as a root user. - rootSquashConfiguration?: [...#RootSquashConfigurationInitParameters] @go(RootSquashConfiguration,[]RootSquashConfigurationInitParameters) - - // The storage capacity (GiB) of the file system. Minimum of 1200. See more details at Allowed values for Fsx storage capacity. Update is allowed only for SCRATCH_2, PERSISTENT_1 and PERSISTENT_2 deployment types, See more details at Fsx Storage Capacity Update. Required when not creating filesystem for a backup. - storageCapacity?: null | float64 @go(StorageCapacity,*float64) - - // - The filesystem storage type. Either SSD or HDD, defaults to SSD. HDD is only supported on PERSISTENT_1 deployment types. - storageType?: null | string @go(StorageType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The preferred start time (in d:HH:MM format) to perform weekly maintenance, in the UTC time zone. - weeklyMaintenanceStartTime?: null | string @go(WeeklyMaintenanceStartTime,*string) -} - -#LustreFileSystemObservation: { - // Amazon Resource Name of the file system. - arn?: null | string @go(Arn,*string) - - // How Amazon FSx keeps your file and directory listings up to date as you add or modify objects in your linked S3 bucket. see Auto Import Data Repo for more details. Only supported on PERSISTENT_1 deployment types. - autoImportPolicy?: null | string @go(AutoImportPolicy,*string) - - // The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days. only valid for PERSISTENT_1 and PERSISTENT_2 deployment_type. - automaticBackupRetentionDays?: null | float64 @go(AutomaticBackupRetentionDays,*float64) - - // The ID of the source backup to create the filesystem from. - backupId?: null | string @go(BackupID,*string) - - // A boolean flag indicating whether tags for the file system should be copied to backups. Applicable for PERSISTENT_1 and PERSISTENT_2 deployment_type. The default value is false. - copyTagsToBackups?: null | bool @go(CopyTagsToBackups,*bool) - - // DNS name for the file system, e.g., fs-12345678.fsx.us-west-2.amazonaws.com - dnsName?: null | string @go(DNSName,*string) - - // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. only valid for PERSISTENT_1 and PERSISTENT_2 deployment_type. Requires automatic_backup_retention_days to be set. - dailyAutomaticBackupStartTime?: null | string @go(DailyAutomaticBackupStartTime,*string) - - // Sets the data compression configuration for the file system. Valid values are LZ4 and NONE. Default value is NONE. Unsetting this value reverts the compression type back to NONE. - dataCompressionType?: null | string @go(DataCompressionType,*string) - - // - The filesystem deployment type. One of: SCRATCH_1, SCRATCH_2, PERSISTENT_1, PERSISTENT_2. - deploymentType?: null | string @go(DeploymentType,*string) - - // - The type of drive cache used by PERSISTENT_1 filesystems that are provisioned with HDD storage_type. Required for HDD storage_type, set to either READ or NONE. - driveCacheType?: null | string @go(DriveCacheType,*string) - - // S3 URI (with optional prefix) where the root of your Amazon FSx file system is exported. Can only be specified with import_path argument and the path must use the same Amazon S3 bucket as specified in import_path. Set equal to import_path to overwrite files on export. Defaults to s3://{IMPORT BUCKET}/FSxLustre{CREATION TIMESTAMP}. Only supported on PERSISTENT_1 deployment types. - exportPath?: null | string @go(ExportPath,*string) - - // Sets the Lustre version for the file system that you're creating. Valid values are 2.10 for SCRATCH_1, SCRATCH_2 and PERSISTENT_1 deployment types. Valid values for 2.12 include all deployment types. - fileSystemTypeVersion?: null | string @go(FileSystemTypeVersion,*string) - - // Identifier of the file system, e.g., fs-12345678 - id?: null | string @go(ID,*string) - - // S3 URI (with optional prefix) that you're using as the data repository for your FSx for Lustre file system. For example, s3://example-bucket/optional-prefix/. Only supported on PERSISTENT_1 deployment types. - importPath?: null | string @go(ImportPath,*string) - - // For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. Can only be specified with import_path argument. Defaults to 1024. Minimum of 1 and maximum of 512000. Only supported on PERSISTENT_1 deployment types. - importedFileChunkSize?: null | float64 @go(ImportedFileChunkSize,*float64) - - // ARN for the KMS Key to encrypt the file system at rest, applicable for PERSISTENT_1 and PERSISTENT_2 deployment_type. Defaults to an AWS managed KMS Key. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The Lustre logging configuration used when creating an Amazon FSx for Lustre file system. When logging is enabled, Lustre logs error and warning events for data repositories associated with your file system to Amazon CloudWatch Logs. - logConfiguration?: [...#LogConfigurationObservation] @go(LogConfiguration,[]LogConfigurationObservation) - - // The value to be used when mounting the filesystem. - mountName?: null | string @go(MountName,*string) - - // Set of Elastic Network Interface identifiers from which the file system is accessible. As explained in the documentation, the first network interface returned is the primary network interface. - networkInterfaceIds?: [...null | string] @go(NetworkInterfaceIds,[]*string) - - // AWS account identifier that created the file system. - ownerId?: null | string @go(OwnerID,*string) - - // - Describes the amount of read and write throughput for each 1 tebibyte of storage, in MB/s/TiB, required for the PERSISTENT_1 and PERSISTENT_2 deployment_type. Valid values for PERSISTENT_1 deployment_type and SSD storage_type are 50, 100, 200. Valid values for PERSISTENT_1 deployment_type and HDD storage_type are 12, 40. Valid values for PERSISTENT_2 deployment_type and SSD storage_type are 125, 250, 500, 1000. - perUnitStorageThroughput?: null | float64 @go(PerUnitStorageThroughput,*float64) - - // The Lustre root squash configuration used when creating an Amazon FSx for Lustre file system. When enabled, root squash restricts root-level access from clients that try to access your file system as a root user. - rootSquashConfiguration?: [...#RootSquashConfigurationObservation] @go(RootSquashConfiguration,[]RootSquashConfigurationObservation) - - // A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The storage capacity (GiB) of the file system. Minimum of 1200. See more details at Allowed values for Fsx storage capacity. Update is allowed only for SCRATCH_2, PERSISTENT_1 and PERSISTENT_2 deployment types, See more details at Fsx Storage Capacity Update. Required when not creating filesystem for a backup. - storageCapacity?: null | float64 @go(StorageCapacity,*float64) - - // - The filesystem storage type. Either SSD or HDD, defaults to SSD. HDD is only supported on PERSISTENT_1 deployment types. - storageType?: null | string @go(StorageType,*string) - - // A list of IDs for the subnets that the file system will be accessible from. File systems currently support only one subnet. The file server is also launched in that subnet's Availability Zone. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Identifier of the Virtual Private Cloud for the file system. - vpcId?: null | string @go(VPCID,*string) - - // The preferred start time (in d:HH:MM format) to perform weekly maintenance, in the UTC time zone. - weeklyMaintenanceStartTime?: null | string @go(WeeklyMaintenanceStartTime,*string) -} - -#LustreFileSystemParameters: { - // How Amazon FSx keeps your file and directory listings up to date as you add or modify objects in your linked S3 bucket. see Auto Import Data Repo for more details. Only supported on PERSISTENT_1 deployment types. - // +kubebuilder:validation:Optional - autoImportPolicy?: null | string @go(AutoImportPolicy,*string) - - // The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days. only valid for PERSISTENT_1 and PERSISTENT_2 deployment_type. - // +kubebuilder:validation:Optional - automaticBackupRetentionDays?: null | float64 @go(AutomaticBackupRetentionDays,*float64) - - // The ID of the source backup to create the filesystem from. - // +kubebuilder:validation:Optional - backupId?: null | string @go(BackupID,*string) - - // A boolean flag indicating whether tags for the file system should be copied to backups. Applicable for PERSISTENT_1 and PERSISTENT_2 deployment_type. The default value is false. - // +kubebuilder:validation:Optional - copyTagsToBackups?: null | bool @go(CopyTagsToBackups,*bool) - - // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. only valid for PERSISTENT_1 and PERSISTENT_2 deployment_type. Requires automatic_backup_retention_days to be set. - // +kubebuilder:validation:Optional - dailyAutomaticBackupStartTime?: null | string @go(DailyAutomaticBackupStartTime,*string) - - // Sets the data compression configuration for the file system. Valid values are LZ4 and NONE. Default value is NONE. Unsetting this value reverts the compression type back to NONE. - // +kubebuilder:validation:Optional - dataCompressionType?: null | string @go(DataCompressionType,*string) - - // - The filesystem deployment type. One of: SCRATCH_1, SCRATCH_2, PERSISTENT_1, PERSISTENT_2. - // +kubebuilder:validation:Optional - deploymentType?: null | string @go(DeploymentType,*string) - - // - The type of drive cache used by PERSISTENT_1 filesystems that are provisioned with HDD storage_type. Required for HDD storage_type, set to either READ or NONE. - // +kubebuilder:validation:Optional - driveCacheType?: null | string @go(DriveCacheType,*string) - - // S3 URI (with optional prefix) where the root of your Amazon FSx file system is exported. Can only be specified with import_path argument and the path must use the same Amazon S3 bucket as specified in import_path. Set equal to import_path to overwrite files on export. Defaults to s3://{IMPORT BUCKET}/FSxLustre{CREATION TIMESTAMP}. Only supported on PERSISTENT_1 deployment types. - // +kubebuilder:validation:Optional - exportPath?: null | string @go(ExportPath,*string) - - // Sets the Lustre version for the file system that you're creating. Valid values are 2.10 for SCRATCH_1, SCRATCH_2 and PERSISTENT_1 deployment types. Valid values for 2.12 include all deployment types. - // +kubebuilder:validation:Optional - fileSystemTypeVersion?: null | string @go(FileSystemTypeVersion,*string) - - // S3 URI (with optional prefix) that you're using as the data repository for your FSx for Lustre file system. For example, s3://example-bucket/optional-prefix/. Only supported on PERSISTENT_1 deployment types. - // +kubebuilder:validation:Optional - importPath?: null | string @go(ImportPath,*string) - - // For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. Can only be specified with import_path argument. Defaults to 1024. Minimum of 1 and maximum of 512000. Only supported on PERSISTENT_1 deployment types. - // +kubebuilder:validation:Optional - importedFileChunkSize?: null | float64 @go(ImportedFileChunkSize,*float64) - - // ARN for the KMS Key to encrypt the file system at rest, applicable for PERSISTENT_1 and PERSISTENT_2 deployment_type. Defaults to an AWS managed KMS Key. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // The Lustre logging configuration used when creating an Amazon FSx for Lustre file system. When logging is enabled, Lustre logs error and warning events for data repositories associated with your file system to Amazon CloudWatch Logs. - // +kubebuilder:validation:Optional - logConfiguration?: [...#LogConfigurationParameters] @go(LogConfiguration,[]LogConfigurationParameters) - - // - Describes the amount of read and write throughput for each 1 tebibyte of storage, in MB/s/TiB, required for the PERSISTENT_1 and PERSISTENT_2 deployment_type. Valid values for PERSISTENT_1 deployment_type and SSD storage_type are 50, 100, 200. Valid values for PERSISTENT_1 deployment_type and HDD storage_type are 12, 40. Valid values for PERSISTENT_2 deployment_type and SSD storage_type are 125, 250, 500, 1000. - // +kubebuilder:validation:Optional - perUnitStorageThroughput?: null | float64 @go(PerUnitStorageThroughput,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Lustre root squash configuration used when creating an Amazon FSx for Lustre file system. When enabled, root squash restricts root-level access from clients that try to access your file system as a root user. - // +kubebuilder:validation:Optional - rootSquashConfiguration?: [...#RootSquashConfigurationParameters] @go(RootSquashConfiguration,[]RootSquashConfigurationParameters) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The storage capacity (GiB) of the file system. Minimum of 1200. See more details at Allowed values for Fsx storage capacity. Update is allowed only for SCRATCH_2, PERSISTENT_1 and PERSISTENT_2 deployment types, See more details at Fsx Storage Capacity Update. Required when not creating filesystem for a backup. - // +kubebuilder:validation:Optional - storageCapacity?: null | float64 @go(StorageCapacity,*float64) - - // - The filesystem storage type. Either SSD or HDD, defaults to SSD. HDD is only supported on PERSISTENT_1 deployment types. - // +kubebuilder:validation:Optional - storageType?: null | string @go(StorageType,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // A list of IDs for the subnets that the file system will be accessible from. File systems currently support only one subnet. The file server is also launched in that subnet's Availability Zone. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The preferred start time (in d:HH:MM format) to perform weekly maintenance, in the UTC time zone. - // +kubebuilder:validation:Optional - weeklyMaintenanceStartTime?: null | string @go(WeeklyMaintenanceStartTime,*string) -} - -#RootSquashConfigurationInitParameters: { - // When root squash is enabled, you can optionally specify an array of NIDs of clients for which root squash does not apply. A client NID is a Lustre Network Identifier used to uniquely identify a client. You can specify the NID as either a single address or a range of addresses: 1. A single address is described in standard Lustre NID format by specifying the client’s IP address followed by the Lustre network ID (for example, 10.0.1.6@tcp). 2. An address range is described using a dash to separate the range (for example, 10.0.[2-10].[1-255]@tcp). - noSquashNids?: [...null | string] @go(NoSquashNids,[]*string) - - // You enable root squash by setting a user ID (UID) and group ID (GID) for the file system in the format UID:GID (for example, 365534:65534). The UID and GID values can range from 0 to 4294967294. - rootSquash?: null | string @go(RootSquash,*string) -} - -#RootSquashConfigurationObservation: { - // When root squash is enabled, you can optionally specify an array of NIDs of clients for which root squash does not apply. A client NID is a Lustre Network Identifier used to uniquely identify a client. You can specify the NID as either a single address or a range of addresses: 1. A single address is described in standard Lustre NID format by specifying the client’s IP address followed by the Lustre network ID (for example, 10.0.1.6@tcp). 2. An address range is described using a dash to separate the range (for example, 10.0.[2-10].[1-255]@tcp). - noSquashNids?: [...null | string] @go(NoSquashNids,[]*string) - - // You enable root squash by setting a user ID (UID) and group ID (GID) for the file system in the format UID:GID (for example, 365534:65534). The UID and GID values can range from 0 to 4294967294. - rootSquash?: null | string @go(RootSquash,*string) -} - -#RootSquashConfigurationParameters: { - // When root squash is enabled, you can optionally specify an array of NIDs of clients for which root squash does not apply. A client NID is a Lustre Network Identifier used to uniquely identify a client. You can specify the NID as either a single address or a range of addresses: 1. A single address is described in standard Lustre NID format by specifying the client’s IP address followed by the Lustre network ID (for example, 10.0.1.6@tcp). 2. An address range is described using a dash to separate the range (for example, 10.0.[2-10].[1-255]@tcp). - // +kubebuilder:validation:Optional - noSquashNids?: [...null | string] @go(NoSquashNids,[]*string) - - // You enable root squash by setting a user ID (UID) and group ID (GID) for the file system in the format UID:GID (for example, 365534:65534). The UID and GID values can range from 0 to 4294967294. - // +kubebuilder:validation:Optional - rootSquash?: null | string @go(RootSquash,*string) -} - -// LustreFileSystemSpec defines the desired state of LustreFileSystem -#LustreFileSystemSpec: { - v1.#ResourceSpec - forProvider: #LustreFileSystemParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LustreFileSystemInitParameters @go(InitProvider) -} - -// LustreFileSystemStatus defines the observed state of LustreFileSystem. -#LustreFileSystemStatus: { - v1.#ResourceStatus - atProvider?: #LustreFileSystemObservation @go(AtProvider) -} - -// LustreFileSystem is the Schema for the LustreFileSystems API. Manages a FSx Lustre File System. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LustreFileSystem: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #LustreFileSystemSpec @go(Spec) - status?: #LustreFileSystemStatus @go(Status) -} - -// LustreFileSystemList contains a list of LustreFileSystems -#LustreFileSystemList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LustreFileSystem] @go(Items,[]LustreFileSystem) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_ontapfilesystem_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_ontapfilesystem_types_go_gen.cue deleted file mode 100644 index f0f43e8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_ontapfilesystem_types_go_gen.cue +++ /dev/null @@ -1,344 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/fsx/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DiskIopsConfigurationInitParameters: { - // - The total number of SSD IOPS provisioned for the file system. - iops?: null | float64 @go(Iops,*float64) - - // - Specifies whether the number of IOPS for the file system is using the system. Valid values are AUTOMATIC and USER_PROVISIONED. Default value is AUTOMATIC. - mode?: null | string @go(Mode,*string) -} - -#DiskIopsConfigurationObservation: { - // - The total number of SSD IOPS provisioned for the file system. - iops?: null | float64 @go(Iops,*float64) - - // - Specifies whether the number of IOPS for the file system is using the system. Valid values are AUTOMATIC and USER_PROVISIONED. Default value is AUTOMATIC. - mode?: null | string @go(Mode,*string) -} - -#DiskIopsConfigurationParameters: { - // - The total number of SSD IOPS provisioned for the file system. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // - Specifies whether the number of IOPS for the file system is using the system. Valid values are AUTOMATIC and USER_PROVISIONED. Default value is AUTOMATIC. - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) -} - -#EndpointsInitParameters: { -} - -#EndpointsObservation: { - // An endpoint for managing your file system by setting up NetApp SnapMirror with other ONTAP systems. See Endpoint. - intercluster?: [...#InterclusterObservation] @go(Intercluster,[]InterclusterObservation) - - // An endpoint for managing your file system using the NetApp ONTAP CLI and NetApp ONTAP API. See Endpoint. - management?: [...#ManagementObservation] @go(Management,[]ManagementObservation) -} - -#EndpointsParameters: { -} - -#InterclusterInitParameters: { -} - -#InterclusterObservation: { - // DNS name for the file system, e.g., fs-12345678.fsx.us-west-2.amazonaws.com - dnsName?: null | string @go(DNSName,*string) - - // IP addresses of the file system endpoint. - ipAddresses?: [...null | string] @go(IPAddresses,[]*string) -} - -#InterclusterParameters: { -} - -#ManagementInitParameters: { -} - -#ManagementObservation: { - // DNS name for the file system, e.g., fs-12345678.fsx.us-west-2.amazonaws.com - dnsName?: null | string @go(DNSName,*string) - - // IP addresses of the file system endpoint. - ipAddresses?: [...null | string] @go(IPAddresses,[]*string) -} - -#ManagementParameters: { -} - -#OntapFileSystemInitParameters: { - // The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days. - automaticBackupRetentionDays?: null | float64 @go(AutomaticBackupRetentionDays,*float64) - - // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. Requires automatic_backup_retention_days to be set. - dailyAutomaticBackupStartTime?: null | string @go(DailyAutomaticBackupStartTime,*string) - - // - The filesystem deployment type. Supports MULTI_AZ_1 and SINGLE_AZ_1. - deploymentType?: null | string @go(DeploymentType,*string) - - // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. - diskIopsConfiguration?: [...#DiskIopsConfigurationInitParameters] @go(DiskIopsConfiguration,[]DiskIopsConfigurationInitParameters) - - // Specifies the IP address range in which the endpoints to access your file system will be created. By default, Amazon FSx selects an unused IP address range for you from the 198.19.* range. - endpointIpAddressRange?: null | string @go(EndpointIPAddressRange,*string) - - // Specifies the VPC route tables in which your file system's endpoints will be created. You should specify all VPC route tables associated with the subnets in which your clients are located. By default, Amazon FSx selects your VPC's default route table. - routeTableIds?: [...null | string] @go(RouteTableIds,[]*string) - - // The storage capacity (GiB) of the file system. Valid values between 1024 and 196608. - storageCapacity?: null | float64 @go(StorageCapacity,*float64) - - // - The filesystem storage type. defaults to SSD. - storageType?: null | string @go(StorageType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Sets the throughput capacity (in MBps) for the file system that you're creating. Valid values are 128, 256, 512, 1024, 2048, and 4096. - throughputCapacity?: null | float64 @go(ThroughputCapacity,*float64) - - // The preferred start time (in d:HH:MM format) to perform weekly maintenance, in the UTC time zone. - weeklyMaintenanceStartTime?: null | string @go(WeeklyMaintenanceStartTime,*string) -} - -#OntapFileSystemObservation: { - // Amazon Resource Name of the file system. - arn?: null | string @go(Arn,*string) - - // The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days. - automaticBackupRetentionDays?: null | float64 @go(AutomaticBackupRetentionDays,*float64) - - // DNS name for the file system, e.g., fs-12345678.fsx.us-west-2.amazonaws.com - dnsName?: null | string @go(DNSName,*string) - - // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. Requires automatic_backup_retention_days to be set. - dailyAutomaticBackupStartTime?: null | string @go(DailyAutomaticBackupStartTime,*string) - - // - The filesystem deployment type. Supports MULTI_AZ_1 and SINGLE_AZ_1. - deploymentType?: null | string @go(DeploymentType,*string) - - // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. - diskIopsConfiguration?: [...#DiskIopsConfigurationObservation] @go(DiskIopsConfiguration,[]DiskIopsConfigurationObservation) - - // Specifies the IP address range in which the endpoints to access your file system will be created. By default, Amazon FSx selects an unused IP address range for you from the 198.19.* range. - endpointIpAddressRange?: null | string @go(EndpointIPAddressRange,*string) - - // The endpoints that are used to access data or to manage the file system using the NetApp ONTAP CLI, REST API, or NetApp SnapMirror. See Endpoints below. - endpoints?: [...#EndpointsObservation] @go(Endpoints,[]EndpointsObservation) - - // Identifier of the file system, e.g., fs-12345678 - id?: null | string @go(ID,*string) - - // ARN for the KMS Key to encrypt the file system at rest, Defaults to an AWS managed KMS Key. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Set of Elastic Network Interface identifiers from which the file system is accessible The first network interface returned is the primary network interface. - networkInterfaceIds?: [...null | string] @go(NetworkInterfaceIds,[]*string) - - // AWS account identifier that created the file system. - ownerId?: null | string @go(OwnerID,*string) - - // The ID for a subnet. A subnet is a range of IP addresses in your virtual private cloud (VPC). - preferredSubnetId?: null | string @go(PreferredSubnetID,*string) - - // Specifies the VPC route tables in which your file system's endpoints will be created. You should specify all VPC route tables associated with the subnets in which your clients are located. By default, Amazon FSx selects your VPC's default route table. - routeTableIds?: [...null | string] @go(RouteTableIds,[]*string) - - // A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The storage capacity (GiB) of the file system. Valid values between 1024 and 196608. - storageCapacity?: null | float64 @go(StorageCapacity,*float64) - - // - The filesystem storage type. defaults to SSD. - storageType?: null | string @go(StorageType,*string) - - // A list of IDs for the subnets that the file system will be accessible from. Upto 2 subnets can be provided. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Sets the throughput capacity (in MBps) for the file system that you're creating. Valid values are 128, 256, 512, 1024, 2048, and 4096. - throughputCapacity?: null | float64 @go(ThroughputCapacity,*float64) - - // Identifier of the Virtual Private Cloud for the file system. - vpcId?: null | string @go(VPCID,*string) - - // The preferred start time (in d:HH:MM format) to perform weekly maintenance, in the UTC time zone. - weeklyMaintenanceStartTime?: null | string @go(WeeklyMaintenanceStartTime,*string) -} - -#OntapFileSystemParameters: { - // The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days. - // +kubebuilder:validation:Optional - automaticBackupRetentionDays?: null | float64 @go(AutomaticBackupRetentionDays,*float64) - - // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. Requires automatic_backup_retention_days to be set. - // +kubebuilder:validation:Optional - dailyAutomaticBackupStartTime?: null | string @go(DailyAutomaticBackupStartTime,*string) - - // - The filesystem deployment type. Supports MULTI_AZ_1 and SINGLE_AZ_1. - // +kubebuilder:validation:Optional - deploymentType?: null | string @go(DeploymentType,*string) - - // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. - // +kubebuilder:validation:Optional - diskIopsConfiguration?: [...#DiskIopsConfigurationParameters] @go(DiskIopsConfiguration,[]DiskIopsConfigurationParameters) - - // Specifies the IP address range in which the endpoints to access your file system will be created. By default, Amazon FSx selects an unused IP address range for you from the 198.19.* range. - // +kubebuilder:validation:Optional - endpointIpAddressRange?: null | string @go(EndpointIPAddressRange,*string) - - // The ONTAP administrative password for the fsxadmin user that you can use to administer your file system using the ONTAP CLI and REST API. - // +kubebuilder:validation:Optional - fsxAdminPasswordSecretRef?: null | v1.#SecretKeySelector @go(FSXAdminPasswordSecretRef,*v1.SecretKeySelector) - - // ARN for the KMS Key to encrypt the file system at rest, Defaults to an AWS managed KMS Key. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // The ID for a subnet. A subnet is a range of IP addresses in your virtual private cloud (VPC). - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - preferredSubnetId?: null | string @go(PreferredSubnetID,*string) - - // Reference to a Subnet in ec2 to populate preferredSubnetId. - // +kubebuilder:validation:Optional - preferredSubnetIdRef?: null | v1.#Reference @go(PreferredSubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate preferredSubnetId. - // +kubebuilder:validation:Optional - preferredSubnetIdSelector?: null | v1.#Selector @go(PreferredSubnetIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the VPC route tables in which your file system's endpoints will be created. You should specify all VPC route tables associated with the subnets in which your clients are located. By default, Amazon FSx selects your VPC's default route table. - // +kubebuilder:validation:Optional - routeTableIds?: [...null | string] @go(RouteTableIds,[]*string) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The storage capacity (GiB) of the file system. Valid values between 1024 and 196608. - // +kubebuilder:validation:Optional - storageCapacity?: null | float64 @go(StorageCapacity,*float64) - - // - The filesystem storage type. defaults to SSD. - // +kubebuilder:validation:Optional - storageType?: null | string @go(StorageType,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // A list of IDs for the subnets that the file system will be accessible from. Upto 2 subnets can be provided. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Sets the throughput capacity (in MBps) for the file system that you're creating. Valid values are 128, 256, 512, 1024, 2048, and 4096. - // +kubebuilder:validation:Optional - throughputCapacity?: null | float64 @go(ThroughputCapacity,*float64) - - // The preferred start time (in d:HH:MM format) to perform weekly maintenance, in the UTC time zone. - // +kubebuilder:validation:Optional - weeklyMaintenanceStartTime?: null | string @go(WeeklyMaintenanceStartTime,*string) -} - -// OntapFileSystemSpec defines the desired state of OntapFileSystem -#OntapFileSystemSpec: { - v1.#ResourceSpec - forProvider: #OntapFileSystemParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #OntapFileSystemInitParameters @go(InitProvider) -} - -// OntapFileSystemStatus defines the observed state of OntapFileSystem. -#OntapFileSystemStatus: { - v1.#ResourceStatus - atProvider?: #OntapFileSystemObservation @go(AtProvider) -} - -// OntapFileSystem is the Schema for the OntapFileSystems API. Manages an Amazon FSx for NetApp ONTAP file system. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#OntapFileSystem: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.deploymentType) || (has(self.initProvider) && has(self.initProvider.deploymentType))",message="spec.forProvider.deploymentType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.throughputCapacity) || (has(self.initProvider) && has(self.initProvider.throughputCapacity))",message="spec.forProvider.throughputCapacity is a required parameter" - spec: #OntapFileSystemSpec @go(Spec) - status?: #OntapFileSystemStatus @go(Status) -} - -// OntapFileSystemList contains a list of OntapFileSystems -#OntapFileSystemList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#OntapFileSystem] @go(Items,[]OntapFileSystem) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_ontapstoragevirtualmachine_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_ontapstoragevirtualmachine_types_go_gen.cue deleted file mode 100644 index 3d7ff33..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_ontapstoragevirtualmachine_types_go_gen.cue +++ /dev/null @@ -1,308 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/fsx/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActiveDirectoryConfigurationInitParameters: { - // The NetBIOS name of the Active Directory computer object that will be created for your SVM. This is often the same as the SVM name but can be different. AWS limits to 15 characters because of standard NetBIOS naming limits. - netbiosName?: null | string @go(NetbiosName,*string) - - // Configuration block that Amazon FSx uses to join the FSx ONTAP Storage Virtual Machine(SVM) to your Microsoft Active Directory (AD) directory. Detailed below. - selfManagedActiveDirectoryConfiguration?: [...#SelfManagedActiveDirectoryConfigurationInitParameters] @go(SelfManagedActiveDirectoryConfiguration,[]SelfManagedActiveDirectoryConfigurationInitParameters) -} - -#ActiveDirectoryConfigurationObservation: { - // The NetBIOS name of the Active Directory computer object that will be created for your SVM. This is often the same as the SVM name but can be different. AWS limits to 15 characters because of standard NetBIOS naming limits. - netbiosName?: null | string @go(NetbiosName,*string) - - // Configuration block that Amazon FSx uses to join the FSx ONTAP Storage Virtual Machine(SVM) to your Microsoft Active Directory (AD) directory. Detailed below. - selfManagedActiveDirectoryConfiguration?: [...#SelfManagedActiveDirectoryConfigurationObservation] @go(SelfManagedActiveDirectoryConfiguration,[]SelfManagedActiveDirectoryConfigurationObservation) -} - -#ActiveDirectoryConfigurationParameters: { - // The NetBIOS name of the Active Directory computer object that will be created for your SVM. This is often the same as the SVM name but can be different. AWS limits to 15 characters because of standard NetBIOS naming limits. - // +kubebuilder:validation:Optional - netbiosName?: null | string @go(NetbiosName,*string) - - // Configuration block that Amazon FSx uses to join the FSx ONTAP Storage Virtual Machine(SVM) to your Microsoft Active Directory (AD) directory. Detailed below. - // +kubebuilder:validation:Optional - selfManagedActiveDirectoryConfiguration?: [...#SelfManagedActiveDirectoryConfigurationParameters] @go(SelfManagedActiveDirectoryConfiguration,[]SelfManagedActiveDirectoryConfigurationParameters) -} - -#EndpointsManagementInitParameters: { -} - -#EndpointsManagementObservation: { - // The Domain Name Service (DNS) name for the storage virtual machine. You can mount your storage virtual machine using its DNS name. - dnsName?: null | string @go(DNSName,*string) - - // IP addresses of the storage virtual machine endpoint. - ipAddresses?: [...null | string] @go(IPAddresses,[]*string) -} - -#EndpointsManagementParameters: { -} - -#ISCSIInitParameters: { -} - -#ISCSIObservation: { - // The Domain Name Service (DNS) name for the storage virtual machine. You can mount your storage virtual machine using its DNS name. - dnsName?: null | string @go(DNSName,*string) - - // IP addresses of the storage virtual machine endpoint. - ipAddresses?: [...null | string] @go(IPAddresses,[]*string) -} - -#ISCSIParameters: { -} - -#NFSInitParameters: { -} - -#NFSObservation: { - // The Domain Name Service (DNS) name for the storage virtual machine. You can mount your storage virtual machine using its DNS name. - dnsName?: null | string @go(DNSName,*string) - - // IP addresses of the storage virtual machine endpoint. - ipAddresses?: [...null | string] @go(IPAddresses,[]*string) -} - -#NFSParameters: { -} - -#OntapStorageVirtualMachineEndpointsInitParameters: { -} - -#OntapStorageVirtualMachineEndpointsObservation: { - // An endpoint for accessing data on your storage virtual machine via iSCSI protocol. See Endpoint. - iscsi?: [...#ISCSIObservation] @go(ISCSI,[]ISCSIObservation) - - // An endpoint for managing your file system using the NetApp ONTAP CLI and NetApp ONTAP API. See Endpoint. - management?: [...#EndpointsManagementObservation] @go(Management,[]EndpointsManagementObservation) - - // An endpoint for accessing data on your storage virtual machine via NFS protocol. See Endpoint. - nfs?: [...#NFSObservation] @go(NFS,[]NFSObservation) - - // An endpoint for accessing data on your storage virtual machine via SMB protocol. This is only set if an active_directory_configuration has been set. See Endpoint. - smb?: [...#SMBObservation] @go(SMB,[]SMBObservation) -} - -#OntapStorageVirtualMachineEndpointsParameters: { -} - -#OntapStorageVirtualMachineInitParameters: { - // Configuration block that Amazon FSx uses to join the FSx ONTAP Storage Virtual Machine(SVM) to your Microsoft Active Directory (AD) directory. Detailed below. - activeDirectoryConfiguration?: [...#ActiveDirectoryConfigurationInitParameters] @go(ActiveDirectoryConfiguration,[]ActiveDirectoryConfigurationInitParameters) - - // The name of the SVM. You can use a maximum of 47 alphanumeric characters, plus the underscore (_) special character. - name?: null | string @go(Name,*string) - - // Specifies the root volume security style, Valid values are UNIX, NTFS, and MIXED. All volumes created under this SVM will inherit the root security style unless the security style is specified on the volume. Default value is UNIX. - rootVolumeSecurityStyle?: null | string @go(RootVolumeSecurityStyle,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#OntapStorageVirtualMachineObservation: { - // Configuration block that Amazon FSx uses to join the FSx ONTAP Storage Virtual Machine(SVM) to your Microsoft Active Directory (AD) directory. Detailed below. - activeDirectoryConfiguration?: [...#ActiveDirectoryConfigurationObservation] @go(ActiveDirectoryConfiguration,[]ActiveDirectoryConfigurationObservation) - - // Amazon Resource Name of the storage virtual machine. - arn?: null | string @go(Arn,*string) - - // The endpoints that are used to access data or to manage the storage virtual machine using the NetApp ONTAP CLI, REST API, or NetApp SnapMirror. See Endpoints below. - endpoints?: [...#OntapStorageVirtualMachineEndpointsObservation] @go(Endpoints,[]OntapStorageVirtualMachineEndpointsObservation) - - // The ID of the Amazon FSx ONTAP File System that this SVM will be created on. - fileSystemId?: null | string @go(FileSystemID,*string) - - // Identifier of the storage virtual machine, e.g., svm-12345678 - id?: null | string @go(ID,*string) - - // The name of the SVM. You can use a maximum of 47 alphanumeric characters, plus the underscore (_) special character. - name?: null | string @go(Name,*string) - - // Specifies the root volume security style, Valid values are UNIX, NTFS, and MIXED. All volumes created under this SVM will inherit the root security style unless the security style is specified on the volume. Default value is UNIX. - rootVolumeSecurityStyle?: null | string @go(RootVolumeSecurityStyle,*string) - - // Describes the SVM's subtype, e.g. DEFAULT - subtype?: null | string @go(Subtype,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The SVM's UUID (universally unique identifier). - uuid?: null | string @go(UUID,*string) -} - -#OntapStorageVirtualMachineParameters: { - // Configuration block that Amazon FSx uses to join the FSx ONTAP Storage Virtual Machine(SVM) to your Microsoft Active Directory (AD) directory. Detailed below. - // +kubebuilder:validation:Optional - activeDirectoryConfiguration?: [...#ActiveDirectoryConfigurationParameters] @go(ActiveDirectoryConfiguration,[]ActiveDirectoryConfigurationParameters) - - // The ID of the Amazon FSx ONTAP File System that this SVM will be created on. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/fsx/v1beta1.OntapFileSystem - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // Reference to a OntapFileSystem in fsx to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdRef?: null | v1.#Reference @go(FileSystemIDRef,*v1.Reference) - - // Selector for a OntapFileSystem in fsx to populate fileSystemId. - // +kubebuilder:validation:Optional - fileSystemIdSelector?: null | v1.#Selector @go(FileSystemIDSelector,*v1.Selector) - - // The name of the SVM. You can use a maximum of 47 alphanumeric characters, plus the underscore (_) special character. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the root volume security style, Valid values are UNIX, NTFS, and MIXED. All volumes created under this SVM will inherit the root security style unless the security style is specified on the volume. Default value is UNIX. - // +kubebuilder:validation:Optional - rootVolumeSecurityStyle?: null | string @go(RootVolumeSecurityStyle,*string) - - // +kubebuilder:validation:Optional - svmAdminPasswordSecretRef?: null | v1.#SecretKeySelector @go(SvmAdminPasswordSecretRef,*v1.SecretKeySelector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SMBInitParameters: { -} - -#SMBObservation: { - // The Domain Name Service (DNS) name for the storage virtual machine. You can mount your storage virtual machine using its DNS name. - dnsName?: null | string @go(DNSName,*string) - - // IP addresses of the storage virtual machine endpoint. - ipAddresses?: [...null | string] @go(IPAddresses,[]*string) -} - -#SMBParameters: { -} - -#SelfManagedActiveDirectoryConfigurationInitParameters: { - // A list of up to three IP addresses of DNS servers or domain controllers in the self-managed AD directory. - dnsIps?: [...null | string] @go(DNSIps,[]*string) - - // The fully qualified domain name of the self-managed AD directory. For example, corp.example.com. - domainName?: null | string @go(DomainName,*string) - - // The name of the domain group whose members are granted administrative privileges for the SVM. The group that you specify must already exist in your domain. Defaults to Domain Admins. - fileSystemAdministratorsGroup?: null | string @go(FileSystemAdministratorsGroup,*string) - - // The fully qualified distinguished name of the organizational unit within your self-managed AD directory that the Windows File Server instance will join. For example, OU=FSx,DC=yourdomain,DC=corp,DC=com. Only accepts OU as the direct parent of the SVM. If none is provided, the SVM is created in the default location of your self-managed AD directory. To learn more, see RFC 2253. - organizationalUnitDistinguishedName?: null | string @go(OrganizationalUnitDistinguishedName,*string) - - // The user name for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. - username?: null | string @go(Username,*string) -} - -#SelfManagedActiveDirectoryConfigurationObservation: { - // A list of up to three IP addresses of DNS servers or domain controllers in the self-managed AD directory. - dnsIps?: [...null | string] @go(DNSIps,[]*string) - - // The fully qualified domain name of the self-managed AD directory. For example, corp.example.com. - domainName?: null | string @go(DomainName,*string) - - // The name of the domain group whose members are granted administrative privileges for the SVM. The group that you specify must already exist in your domain. Defaults to Domain Admins. - fileSystemAdministratorsGroup?: null | string @go(FileSystemAdministratorsGroup,*string) - - // The fully qualified distinguished name of the organizational unit within your self-managed AD directory that the Windows File Server instance will join. For example, OU=FSx,DC=yourdomain,DC=corp,DC=com. Only accepts OU as the direct parent of the SVM. If none is provided, the SVM is created in the default location of your self-managed AD directory. To learn more, see RFC 2253. - organizationalUnitDistinguishedName?: null | string @go(OrganizationalUnitDistinguishedName,*string) - - // The user name for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. - username?: null | string @go(Username,*string) -} - -#SelfManagedActiveDirectoryConfigurationParameters: { - // A list of up to three IP addresses of DNS servers or domain controllers in the self-managed AD directory. - // +kubebuilder:validation:Optional - dnsIps: [...null | string] @go(DNSIps,[]*string) - - // The fully qualified domain name of the self-managed AD directory. For example, corp.example.com. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // The name of the domain group whose members are granted administrative privileges for the SVM. The group that you specify must already exist in your domain. Defaults to Domain Admins. - // +kubebuilder:validation:Optional - fileSystemAdministratorsGroup?: null | string @go(FileSystemAdministratorsGroup,*string) - - // The fully qualified distinguished name of the organizational unit within your self-managed AD directory that the Windows File Server instance will join. For example, OU=FSx,DC=yourdomain,DC=corp,DC=com. Only accepts OU as the direct parent of the SVM. If none is provided, the SVM is created in the default location of your self-managed AD directory. To learn more, see RFC 2253. - // +kubebuilder:validation:Optional - organizationalUnitDistinguishedName?: null | string @go(OrganizationalUnitDistinguishedName,*string) - - // The password for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. - // +kubebuilder:validation:Required - passwordSecretRef: v1.#SecretKeySelector @go(PasswordSecretRef) - - // The user name for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -// OntapStorageVirtualMachineSpec defines the desired state of OntapStorageVirtualMachine -#OntapStorageVirtualMachineSpec: { - v1.#ResourceSpec - forProvider: #OntapStorageVirtualMachineParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #OntapStorageVirtualMachineInitParameters @go(InitProvider) -} - -// OntapStorageVirtualMachineStatus defines the observed state of OntapStorageVirtualMachine. -#OntapStorageVirtualMachineStatus: { - v1.#ResourceStatus - atProvider?: #OntapStorageVirtualMachineObservation @go(AtProvider) -} - -// OntapStorageVirtualMachine is the Schema for the OntapStorageVirtualMachines API. Manages a FSx Storage Virtual Machine. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#OntapStorageVirtualMachine: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #OntapStorageVirtualMachineSpec @go(Spec) - status?: #OntapStorageVirtualMachineStatus @go(Status) -} - -// OntapStorageVirtualMachineList contains a list of OntapStorageVirtualMachines -#OntapStorageVirtualMachineList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#OntapStorageVirtualMachine] @go(Items,[]OntapStorageVirtualMachine) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_windowsfilesystem_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_windowsfilesystem_types_go_gen.cue deleted file mode 100644 index 504ec0c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/fsx/v1beta1/zz_windowsfilesystem_types_go_gen.cue +++ /dev/null @@ -1,411 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/fsx/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AuditLogConfigurationInitParameters: { - // The Amazon Resource Name (ARN) for the destination of the audit logs. The destination can be any Amazon CloudWatch Logs log group ARN or Amazon Kinesis Data Firehose delivery stream ARN. Can be specified when file_access_audit_log_level and file_share_access_audit_log_level are not set to DISABLED. The name of the Amazon CloudWatch Logs log group must begin with the /aws/fsx prefix. The name of the Amazon Kinesis Data Firehouse delivery stream must begin with the aws-fsx prefix. If you do not provide a destination in audit_log_destionation, Amazon FSx will create and use a log stream in the CloudWatch Logs /aws/fsx/windows log group. - auditLogDestination?: null | string @go(AuditLogDestination,*string) - - // Sets which attempt type is logged by Amazon FSx for file and folder accesses. Valid values are SUCCESS_ONLY, FAILURE_ONLY, SUCCESS_AND_FAILURE, and DISABLED. Default value is DISABLED. - fileAccessAuditLogLevel?: null | string @go(FileAccessAuditLogLevel,*string) - - // Sets which attempt type is logged by Amazon FSx for file share accesses. Valid values are SUCCESS_ONLY, FAILURE_ONLY, SUCCESS_AND_FAILURE, and DISABLED. Default value is DISABLED. - fileShareAccessAuditLogLevel?: null | string @go(FileShareAccessAuditLogLevel,*string) -} - -#AuditLogConfigurationObservation: { - // The Amazon Resource Name (ARN) for the destination of the audit logs. The destination can be any Amazon CloudWatch Logs log group ARN or Amazon Kinesis Data Firehose delivery stream ARN. Can be specified when file_access_audit_log_level and file_share_access_audit_log_level are not set to DISABLED. The name of the Amazon CloudWatch Logs log group must begin with the /aws/fsx prefix. The name of the Amazon Kinesis Data Firehouse delivery stream must begin with the aws-fsx prefix. If you do not provide a destination in audit_log_destionation, Amazon FSx will create and use a log stream in the CloudWatch Logs /aws/fsx/windows log group. - auditLogDestination?: null | string @go(AuditLogDestination,*string) - - // Sets which attempt type is logged by Amazon FSx for file and folder accesses. Valid values are SUCCESS_ONLY, FAILURE_ONLY, SUCCESS_AND_FAILURE, and DISABLED. Default value is DISABLED. - fileAccessAuditLogLevel?: null | string @go(FileAccessAuditLogLevel,*string) - - // Sets which attempt type is logged by Amazon FSx for file share accesses. Valid values are SUCCESS_ONLY, FAILURE_ONLY, SUCCESS_AND_FAILURE, and DISABLED. Default value is DISABLED. - fileShareAccessAuditLogLevel?: null | string @go(FileShareAccessAuditLogLevel,*string) -} - -#AuditLogConfigurationParameters: { - // The Amazon Resource Name (ARN) for the destination of the audit logs. The destination can be any Amazon CloudWatch Logs log group ARN or Amazon Kinesis Data Firehose delivery stream ARN. Can be specified when file_access_audit_log_level and file_share_access_audit_log_level are not set to DISABLED. The name of the Amazon CloudWatch Logs log group must begin with the /aws/fsx prefix. The name of the Amazon Kinesis Data Firehouse delivery stream must begin with the aws-fsx prefix. If you do not provide a destination in audit_log_destionation, Amazon FSx will create and use a log stream in the CloudWatch Logs /aws/fsx/windows log group. - // +kubebuilder:validation:Optional - auditLogDestination?: null | string @go(AuditLogDestination,*string) - - // Sets which attempt type is logged by Amazon FSx for file and folder accesses. Valid values are SUCCESS_ONLY, FAILURE_ONLY, SUCCESS_AND_FAILURE, and DISABLED. Default value is DISABLED. - // +kubebuilder:validation:Optional - fileAccessAuditLogLevel?: null | string @go(FileAccessAuditLogLevel,*string) - - // Sets which attempt type is logged by Amazon FSx for file share accesses. Valid values are SUCCESS_ONLY, FAILURE_ONLY, SUCCESS_AND_FAILURE, and DISABLED. Default value is DISABLED. - // +kubebuilder:validation:Optional - fileShareAccessAuditLogLevel?: null | string @go(FileShareAccessAuditLogLevel,*string) -} - -#SelfManagedActiveDirectoryInitParameters: { - // A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory. The IP addresses need to be either in the same VPC CIDR range as the file system or in the private IP version 4 (IPv4) address ranges as specified in RFC 1918. - dnsIps?: [...null | string] @go(DNSIps,[]*string) - - // The fully qualified domain name of the self-managed AD directory. For example, corp.example.com. - domainName?: null | string @go(DomainName,*string) - - // The name of the domain group whose members are granted administrative privileges for the file system. Administrative privileges include taking ownership of files and folders, and setting audit controls (audit ACLs) on files and folders. The group that you specify must already exist in your domain. Defaults to Domain Admins. - fileSystemAdministratorsGroup?: null | string @go(FileSystemAdministratorsGroup,*string) - - // The fully qualified distinguished name of the organizational unit within your self-managed AD directory that the Windows File Server instance will join. For example, OU=FSx,DC=yourdomain,DC=corp,DC=com. Only accepts OU as the direct parent of the file system. If none is provided, the FSx file system is created in the default location of your self-managed AD directory. To learn more, see RFC 2253. - organizationalUnitDistinguishedName?: null | string @go(OrganizationalUnitDistinguishedName,*string) - - // The user name for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. - username?: null | string @go(Username,*string) -} - -#SelfManagedActiveDirectoryObservation: { - // A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory. The IP addresses need to be either in the same VPC CIDR range as the file system or in the private IP version 4 (IPv4) address ranges as specified in RFC 1918. - dnsIps?: [...null | string] @go(DNSIps,[]*string) - - // The fully qualified domain name of the self-managed AD directory. For example, corp.example.com. - domainName?: null | string @go(DomainName,*string) - - // The name of the domain group whose members are granted administrative privileges for the file system. Administrative privileges include taking ownership of files and folders, and setting audit controls (audit ACLs) on files and folders. The group that you specify must already exist in your domain. Defaults to Domain Admins. - fileSystemAdministratorsGroup?: null | string @go(FileSystemAdministratorsGroup,*string) - - // The fully qualified distinguished name of the organizational unit within your self-managed AD directory that the Windows File Server instance will join. For example, OU=FSx,DC=yourdomain,DC=corp,DC=com. Only accepts OU as the direct parent of the file system. If none is provided, the FSx file system is created in the default location of your self-managed AD directory. To learn more, see RFC 2253. - organizationalUnitDistinguishedName?: null | string @go(OrganizationalUnitDistinguishedName,*string) - - // The user name for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. - username?: null | string @go(Username,*string) -} - -#SelfManagedActiveDirectoryParameters: { - // A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory. The IP addresses need to be either in the same VPC CIDR range as the file system or in the private IP version 4 (IPv4) address ranges as specified in RFC 1918. - // +kubebuilder:validation:Optional - dnsIps: [...null | string] @go(DNSIps,[]*string) - - // The fully qualified domain name of the self-managed AD directory. For example, corp.example.com. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // The name of the domain group whose members are granted administrative privileges for the file system. Administrative privileges include taking ownership of files and folders, and setting audit controls (audit ACLs) on files and folders. The group that you specify must already exist in your domain. Defaults to Domain Admins. - // +kubebuilder:validation:Optional - fileSystemAdministratorsGroup?: null | string @go(FileSystemAdministratorsGroup,*string) - - // The fully qualified distinguished name of the organizational unit within your self-managed AD directory that the Windows File Server instance will join. For example, OU=FSx,DC=yourdomain,DC=corp,DC=com. Only accepts OU as the direct parent of the file system. If none is provided, the FSx file system is created in the default location of your self-managed AD directory. To learn more, see RFC 2253. - // +kubebuilder:validation:Optional - organizationalUnitDistinguishedName?: null | string @go(OrganizationalUnitDistinguishedName,*string) - - // The password for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. - // +kubebuilder:validation:Required - passwordSecretRef: v1.#SecretKeySelector @go(PasswordSecretRef) - - // The user name for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -#WindowsFileSystemInitParameters: { - // An array DNS alias names that you want to associate with the Amazon FSx file system. For more information, see Working with DNS Aliases - aliases?: [...null | string] @go(Aliases,[]*string) - - // The configuration that Amazon FSx for Windows File Server uses to audit and log user accesses of files, folders, and file shares on the Amazon FSx for Windows File Server file system. See below. - auditLogConfiguration?: [...#AuditLogConfigurationInitParameters] @go(AuditLogConfiguration,[]AuditLogConfigurationInitParameters) - - // The number of days to retain automatic backups. Minimum of 0 and maximum of 90. Defaults to 7. Set to 0 to disable. - automaticBackupRetentionDays?: null | float64 @go(AutomaticBackupRetentionDays,*float64) - - // The ID of the source backup to create the filesystem from. - backupId?: null | string @go(BackupID,*string) - - // A boolean flag indicating whether tags on the file system should be copied to backups. Defaults to false. - copyTagsToBackups?: null | bool @go(CopyTagsToBackups,*bool) - - // The preferred time (in HH:MM format) to take daily automatic backups, in the UTC time zone. - dailyAutomaticBackupStartTime?: null | string @go(DailyAutomaticBackupStartTime,*string) - - // Specifies the file system deployment type, valid values are MULTI_AZ_1, SINGLE_AZ_1 and SINGLE_AZ_2. Default value is SINGLE_AZ_1. - deploymentType?: null | string @go(DeploymentType,*string) - - // Specifies the subnet in which you want the preferred file server to be located. Required for when deployment type is MULTI_AZ_1. - preferredSubnetId?: null | string @go(PreferredSubnetID,*string) - - // Configuration block that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory. Cannot be specified with active_directory_id. Detailed below. - selfManagedActiveDirectory?: [...#SelfManagedActiveDirectoryInitParameters] @go(SelfManagedActiveDirectory,[]SelfManagedActiveDirectoryInitParameters) - - // When enabled, will skip the default final backup taken when the file system is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to false. - skipFinalBackup?: null | bool @go(SkipFinalBackup,*bool) - - // Storage capacity (GiB) of the file system. Minimum of 32 and maximum of 65536. If the storage type is set to HDD the minimum value is 2000. Required when not creating filesystem for a backup. - storageCapacity?: null | float64 @go(StorageCapacity,*float64) - - // Specifies the storage type, Valid values are SSD and HDD. HDD is supported on SINGLE_AZ_2 and MULTI_AZ_1 Windows file system deployment types. Default value is SSD. - storageType?: null | string @go(StorageType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of 8 and maximum of 2048. - throughputCapacity?: null | float64 @go(ThroughputCapacity,*float64) - - // The preferred start time (in d:HH:MM format) to perform weekly maintenance, in the UTC time zone. - weeklyMaintenanceStartTime?: null | string @go(WeeklyMaintenanceStartTime,*string) -} - -#WindowsFileSystemObservation: { - // The ID for an existing Microsoft Active Directory instance that the file system should join when it's created. Cannot be specified with self_managed_active_directory. - activeDirectoryId?: null | string @go(ActiveDirectoryID,*string) - - // An array DNS alias names that you want to associate with the Amazon FSx file system. For more information, see Working with DNS Aliases - aliases?: [...null | string] @go(Aliases,[]*string) - - // Amazon Resource Name of the file system. - arn?: null | string @go(Arn,*string) - - // The configuration that Amazon FSx for Windows File Server uses to audit and log user accesses of files, folders, and file shares on the Amazon FSx for Windows File Server file system. See below. - auditLogConfiguration?: [...#AuditLogConfigurationObservation] @go(AuditLogConfiguration,[]AuditLogConfigurationObservation) - - // The number of days to retain automatic backups. Minimum of 0 and maximum of 90. Defaults to 7. Set to 0 to disable. - automaticBackupRetentionDays?: null | float64 @go(AutomaticBackupRetentionDays,*float64) - - // The ID of the source backup to create the filesystem from. - backupId?: null | string @go(BackupID,*string) - - // A boolean flag indicating whether tags on the file system should be copied to backups. Defaults to false. - copyTagsToBackups?: null | bool @go(CopyTagsToBackups,*bool) - - // DNS name for the file system, e.g., fs-12345678.corp.example.com (domain name matching the Active Directory domain name) - dnsName?: null | string @go(DNSName,*string) - - // The preferred time (in HH:MM format) to take daily automatic backups, in the UTC time zone. - dailyAutomaticBackupStartTime?: null | string @go(DailyAutomaticBackupStartTime,*string) - - // Specifies the file system deployment type, valid values are MULTI_AZ_1, SINGLE_AZ_1 and SINGLE_AZ_2. Default value is SINGLE_AZ_1. - deploymentType?: null | string @go(DeploymentType,*string) - - // Identifier of the file system (e.g. fs-12345678). - id?: null | string @go(ID,*string) - - // ARN for the KMS Key to encrypt the file system at rest. Defaults to an AWS managed KMS Key. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Set of Elastic Network Interface identifiers from which the file system is accessible. - networkInterfaceIds?: [...null | string] @go(NetworkInterfaceIds,[]*string) - - // AWS account identifier that created the file system. - ownerId?: null | string @go(OwnerID,*string) - - // The IP address of the primary, or preferred, file server. - preferredFileServerIp?: null | string @go(PreferredFileServerIP,*string) - - // Specifies the subnet in which you want the preferred file server to be located. Required for when deployment type is MULTI_AZ_1. - preferredSubnetId?: null | string @go(PreferredSubnetID,*string) - - // For MULTI_AZ_1 deployment types, use this endpoint when performing administrative tasks on the file system using Amazon FSx Remote PowerShell. For SINGLE_AZ_1 deployment types, this is the DNS name of the file system. - remoteAdministrationEndpoint?: null | string @go(RemoteAdministrationEndpoint,*string) - - // A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Configuration block that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory. Cannot be specified with active_directory_id. Detailed below. - selfManagedActiveDirectory?: [...#SelfManagedActiveDirectoryObservation] @go(SelfManagedActiveDirectory,[]SelfManagedActiveDirectoryObservation) - - // When enabled, will skip the default final backup taken when the file system is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to false. - skipFinalBackup?: null | bool @go(SkipFinalBackup,*bool) - - // Storage capacity (GiB) of the file system. Minimum of 32 and maximum of 65536. If the storage type is set to HDD the minimum value is 2000. Required when not creating filesystem for a backup. - storageCapacity?: null | float64 @go(StorageCapacity,*float64) - - // Specifies the storage type, Valid values are SSD and HDD. HDD is supported on SINGLE_AZ_2 and MULTI_AZ_1 Windows file system deployment types. Default value is SSD. - storageType?: null | string @go(StorageType,*string) - - // A list of IDs for the subnets that the file system will be accessible from. To specify more than a single subnet set deployment_type to MULTI_AZ_1. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of 8 and maximum of 2048. - throughputCapacity?: null | float64 @go(ThroughputCapacity,*float64) - - // Identifier of the Virtual Private Cloud for the file system. - vpcId?: null | string @go(VPCID,*string) - - // The preferred start time (in d:HH:MM format) to perform weekly maintenance, in the UTC time zone. - weeklyMaintenanceStartTime?: null | string @go(WeeklyMaintenanceStartTime,*string) -} - -#WindowsFileSystemParameters: { - // The ID for an existing Microsoft Active Directory instance that the file system should join when it's created. Cannot be specified with self_managed_active_directory. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ds/v1beta1.Directory - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - activeDirectoryId?: null | string @go(ActiveDirectoryID,*string) - - // Reference to a Directory in ds to populate activeDirectoryId. - // +kubebuilder:validation:Optional - activeDirectoryIdRef?: null | v1.#Reference @go(ActiveDirectoryIDRef,*v1.Reference) - - // Selector for a Directory in ds to populate activeDirectoryId. - // +kubebuilder:validation:Optional - activeDirectoryIdSelector?: null | v1.#Selector @go(ActiveDirectoryIDSelector,*v1.Selector) - - // An array DNS alias names that you want to associate with the Amazon FSx file system. For more information, see Working with DNS Aliases - // +kubebuilder:validation:Optional - aliases?: [...null | string] @go(Aliases,[]*string) - - // The configuration that Amazon FSx for Windows File Server uses to audit and log user accesses of files, folders, and file shares on the Amazon FSx for Windows File Server file system. See below. - // +kubebuilder:validation:Optional - auditLogConfiguration?: [...#AuditLogConfigurationParameters] @go(AuditLogConfiguration,[]AuditLogConfigurationParameters) - - // The number of days to retain automatic backups. Minimum of 0 and maximum of 90. Defaults to 7. Set to 0 to disable. - // +kubebuilder:validation:Optional - automaticBackupRetentionDays?: null | float64 @go(AutomaticBackupRetentionDays,*float64) - - // The ID of the source backup to create the filesystem from. - // +kubebuilder:validation:Optional - backupId?: null | string @go(BackupID,*string) - - // A boolean flag indicating whether tags on the file system should be copied to backups. Defaults to false. - // +kubebuilder:validation:Optional - copyTagsToBackups?: null | bool @go(CopyTagsToBackups,*bool) - - // The preferred time (in HH:MM format) to take daily automatic backups, in the UTC time zone. - // +kubebuilder:validation:Optional - dailyAutomaticBackupStartTime?: null | string @go(DailyAutomaticBackupStartTime,*string) - - // Specifies the file system deployment type, valid values are MULTI_AZ_1, SINGLE_AZ_1 and SINGLE_AZ_2. Default value is SINGLE_AZ_1. - // +kubebuilder:validation:Optional - deploymentType?: null | string @go(DeploymentType,*string) - - // ARN for the KMS Key to encrypt the file system at rest. Defaults to an AWS managed KMS Key. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Specifies the subnet in which you want the preferred file server to be located. Required for when deployment type is MULTI_AZ_1. - // +kubebuilder:validation:Optional - preferredSubnetId?: null | string @go(PreferredSubnetID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Configuration block that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory. Cannot be specified with active_directory_id. Detailed below. - // +kubebuilder:validation:Optional - selfManagedActiveDirectory?: [...#SelfManagedActiveDirectoryParameters] @go(SelfManagedActiveDirectory,[]SelfManagedActiveDirectoryParameters) - - // When enabled, will skip the default final backup taken when the file system is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to false. - // +kubebuilder:validation:Optional - skipFinalBackup?: null | bool @go(SkipFinalBackup,*bool) - - // Storage capacity (GiB) of the file system. Minimum of 32 and maximum of 65536. If the storage type is set to HDD the minimum value is 2000. Required when not creating filesystem for a backup. - // +kubebuilder:validation:Optional - storageCapacity?: null | float64 @go(StorageCapacity,*float64) - - // Specifies the storage type, Valid values are SSD and HDD. HDD is supported on SINGLE_AZ_2 and MULTI_AZ_1 Windows file system deployment types. Default value is SSD. - // +kubebuilder:validation:Optional - storageType?: null | string @go(StorageType,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // A list of IDs for the subnets that the file system will be accessible from. To specify more than a single subnet set deployment_type to MULTI_AZ_1. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of 8 and maximum of 2048. - // +kubebuilder:validation:Optional - throughputCapacity?: null | float64 @go(ThroughputCapacity,*float64) - - // The preferred start time (in d:HH:MM format) to perform weekly maintenance, in the UTC time zone. - // +kubebuilder:validation:Optional - weeklyMaintenanceStartTime?: null | string @go(WeeklyMaintenanceStartTime,*string) -} - -// WindowsFileSystemSpec defines the desired state of WindowsFileSystem -#WindowsFileSystemSpec: { - v1.#ResourceSpec - forProvider: #WindowsFileSystemParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WindowsFileSystemInitParameters @go(InitProvider) -} - -// WindowsFileSystemStatus defines the observed state of WindowsFileSystem. -#WindowsFileSystemStatus: { - v1.#ResourceStatus - atProvider?: #WindowsFileSystemObservation @go(AtProvider) -} - -// WindowsFileSystem is the Schema for the WindowsFileSystems API. Manages a FSx Windows File System. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#WindowsFileSystem: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.throughputCapacity) || (has(self.initProvider) && has(self.initProvider.throughputCapacity))",message="spec.forProvider.throughputCapacity is a required parameter" - spec: #WindowsFileSystemSpec @go(Spec) - status?: #WindowsFileSystemStatus @go(Status) -} - -// WindowsFileSystemList contains a list of WindowsFileSystems -#WindowsFileSystemList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#WindowsFileSystem] @go(Items,[]WindowsFileSystem) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_alias_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_alias_types_go_gen.cue deleted file mode 100644 index 956b4dc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_alias_types_go_gen.cue +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/gamelift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AliasInitParameters: { - // Description of the alias. - description?: null | string @go(Description,*string) - - // Name of the alias. - name?: null | string @go(Name,*string) - - // Specifies the fleet and/or routing type to use for the alias. - routingStrategy?: [...#RoutingStrategyInitParameters] @go(RoutingStrategy,[]RoutingStrategyInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AliasObservation: { - // Alias ARN. - arn?: null | string @go(Arn,*string) - - // Description of the alias. - description?: null | string @go(Description,*string) - - // Alias ID. - id?: null | string @go(ID,*string) - - // Name of the alias. - name?: null | string @go(Name,*string) - - // Specifies the fleet and/or routing type to use for the alias. - routingStrategy?: [...#RoutingStrategyObservation] @go(RoutingStrategy,[]RoutingStrategyObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#AliasParameters: { - // Description of the alias. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Name of the alias. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the fleet and/or routing type to use for the alias. - // +kubebuilder:validation:Optional - routingStrategy?: [...#RoutingStrategyParameters] @go(RoutingStrategy,[]RoutingStrategyParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RoutingStrategyInitParameters: { - // ID of the GameLift Fleet to point the alias to. - fleetId?: null | string @go(FleetID,*string) - - // Message text to be used with the TERMINAL routing strategy. - message?: null | string @go(Message,*string) - - // Type of routing strategyE.g., SIMPLE or TERMINAL - type?: null | string @go(Type,*string) -} - -#RoutingStrategyObservation: { - // ID of the GameLift Fleet to point the alias to. - fleetId?: null | string @go(FleetID,*string) - - // Message text to be used with the TERMINAL routing strategy. - message?: null | string @go(Message,*string) - - // Type of routing strategyE.g., SIMPLE or TERMINAL - type?: null | string @go(Type,*string) -} - -#RoutingStrategyParameters: { - // ID of the GameLift Fleet to point the alias to. - // +kubebuilder:validation:Optional - fleetId?: null | string @go(FleetID,*string) - - // Message text to be used with the TERMINAL routing strategy. - // +kubebuilder:validation:Optional - message?: null | string @go(Message,*string) - - // Type of routing strategyE.g., SIMPLE or TERMINAL - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// AliasSpec defines the desired state of Alias -#AliasSpec: { - v1.#ResourceSpec - forProvider: #AliasParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AliasInitParameters @go(InitProvider) -} - -// AliasStatus defines the observed state of Alias. -#AliasStatus: { - v1.#ResourceStatus - atProvider?: #AliasObservation @go(AtProvider) -} - -// Alias is the Schema for the Aliass API. Provides a GameLift Alias resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Alias: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.routingStrategy) || (has(self.initProvider) && has(self.initProvider.routingStrategy))",message="spec.forProvider.routingStrategy is a required parameter" - spec: #AliasSpec @go(Spec) - status?: #AliasStatus @go(Status) -} - -// AliasList contains a list of Aliass -#AliasList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Alias] @go(Items,[]Alias) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_build_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_build_types_go_gen.cue deleted file mode 100644 index 96631f6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_build_types_go_gen.cue +++ /dev/null @@ -1,195 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/gamelift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BuildInitParameters: { - // Name of the build - name?: null | string @go(Name,*string) - - // Operating system that the game server binaries are built to run onE.g., WINDOWS_2012, AMAZON_LINUX or AMAZON_LINUX_2. - operatingSystem?: null | string @go(OperatingSystem,*string) - - // Information indicating where your game build files are stored. See below. - storageLocation?: [...#StorageLocationInitParameters] @go(StorageLocation,[]StorageLocationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Version that is associated with this build. - version?: null | string @go(Version,*string) -} - -#BuildObservation: { - // GameLift Build ARN. - arn?: null | string @go(Arn,*string) - - // GameLift Build ID. - id?: null | string @go(ID,*string) - - // Name of the build - name?: null | string @go(Name,*string) - - // Operating system that the game server binaries are built to run onE.g., WINDOWS_2012, AMAZON_LINUX or AMAZON_LINUX_2. - operatingSystem?: null | string @go(OperatingSystem,*string) - - // Information indicating where your game build files are stored. See below. - storageLocation?: [...#StorageLocationObservation] @go(StorageLocation,[]StorageLocationObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Version that is associated with this build. - version?: null | string @go(Version,*string) -} - -#BuildParameters: { - // Name of the build - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Operating system that the game server binaries are built to run onE.g., WINDOWS_2012, AMAZON_LINUX or AMAZON_LINUX_2. - // +kubebuilder:validation:Optional - operatingSystem?: null | string @go(OperatingSystem,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Information indicating where your game build files are stored. See below. - // +kubebuilder:validation:Optional - storageLocation?: [...#StorageLocationParameters] @go(StorageLocation,[]StorageLocationParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Version that is associated with this build. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#StorageLocationInitParameters: { - // A specific version of the file. If not set, the latest version of the file is retrieved. - objectVersion?: null | string @go(ObjectVersion,*string) -} - -#StorageLocationObservation: { - // Name of your S3 bucket. - bucket?: null | string @go(Bucket,*string) - - // Name of the zip file containing your build files. - key?: null | string @go(Key,*string) - - // A specific version of the file. If not set, the latest version of the file is retrieved. - objectVersion?: null | string @go(ObjectVersion,*string) - - // ARN of the access role that allows Amazon GameLift to access your S3 bucket. - roleArn?: null | string @go(RoleArn,*string) -} - -#StorageLocationParameters: { - // Name of your S3 bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Name of the zip file containing your build files. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Object - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("key",false) - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Reference to a Object in s3 to populate key. - // +kubebuilder:validation:Optional - keyRef?: null | v1.#Reference @go(KeyRef,*v1.Reference) - - // Selector for a Object in s3 to populate key. - // +kubebuilder:validation:Optional - keySelector?: null | v1.#Selector @go(KeySelector,*v1.Selector) - - // A specific version of the file. If not set, the latest version of the file is retrieved. - // +kubebuilder:validation:Optional - objectVersion?: null | string @go(ObjectVersion,*string) - - // ARN of the access role that allows Amazon GameLift to access your S3 bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -// BuildSpec defines the desired state of Build -#BuildSpec: { - v1.#ResourceSpec - forProvider: #BuildParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BuildInitParameters @go(InitProvider) -} - -// BuildStatus defines the observed state of Build. -#BuildStatus: { - v1.#ResourceStatus - atProvider?: #BuildObservation @go(AtProvider) -} - -// Build is the Schema for the Builds API. Provides a GameLift Build resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Build: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.operatingSystem) || (has(self.initProvider) && has(self.initProvider.operatingSystem))",message="spec.forProvider.operatingSystem is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.storageLocation) || (has(self.initProvider) && has(self.initProvider.storageLocation))",message="spec.forProvider.storageLocation is a required parameter" - spec: #BuildSpec @go(Spec) - status?: #BuildStatus @go(Status) -} - -// BuildList contains a list of Builds -#BuildList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Build] @go(Items,[]Build) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_fleet_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_fleet_types_go_gen.cue deleted file mode 100644 index 9dbf7ee..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_fleet_types_go_gen.cue +++ /dev/null @@ -1,401 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/gamelift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CertificateConfigurationInitParameters: { - // Indicates whether a TLS/SSL certificate is generated for a fleet. Valid values are DISABLED and GENERATED. Default value is DISABLED. - certificateType?: null | string @go(CertificateType,*string) -} - -#CertificateConfigurationObservation: { - // Indicates whether a TLS/SSL certificate is generated for a fleet. Valid values are DISABLED and GENERATED. Default value is DISABLED. - certificateType?: null | string @go(CertificateType,*string) -} - -#CertificateConfigurationParameters: { - // Indicates whether a TLS/SSL certificate is generated for a fleet. Valid values are DISABLED and GENERATED. Default value is DISABLED. - // +kubebuilder:validation:Optional - certificateType?: null | string @go(CertificateType,*string) -} - -#EC2InboundPermissionInitParameters: { - // Starting value for a range of allowed port numbers. - fromPort?: null | float64 @go(FromPort,*float64) - - // Range of allowed IP addresses expressed in CIDR notationE.g., 000.000.000.000/[subnet mask] or 0.0.0.0/[subnet mask]. - ipRange?: null | string @go(IPRange,*string) - - // Network communication protocol used by the fleetE.g., TCP or UDP - protocol?: null | string @go(Protocol,*string) - - // Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than from_port. - toPort?: null | float64 @go(ToPort,*float64) -} - -#EC2InboundPermissionObservation: { - // Starting value for a range of allowed port numbers. - fromPort?: null | float64 @go(FromPort,*float64) - - // Range of allowed IP addresses expressed in CIDR notationE.g., 000.000.000.000/[subnet mask] or 0.0.0.0/[subnet mask]. - ipRange?: null | string @go(IPRange,*string) - - // Network communication protocol used by the fleetE.g., TCP or UDP - protocol?: null | string @go(Protocol,*string) - - // Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than from_port. - toPort?: null | float64 @go(ToPort,*float64) -} - -#EC2InboundPermissionParameters: { - // Starting value for a range of allowed port numbers. - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // Range of allowed IP addresses expressed in CIDR notationE.g., 000.000.000.000/[subnet mask] or 0.0.0.0/[subnet mask]. - // +kubebuilder:validation:Optional - ipRange?: null | string @go(IPRange,*string) - - // Network communication protocol used by the fleetE.g., TCP or UDP - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than from_port. - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -#FleetInitParameters: { - // Prompts GameLift to generate a TLS/SSL certificate for the fleet. See certificate_configuration. - certificateConfiguration?: [...#CertificateConfigurationInitParameters] @go(CertificateConfiguration,[]CertificateConfigurationInitParameters) - - // Human-readable description of the fleet. - description?: null | string @go(Description,*string) - - // Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below. - ec2InboundPermission?: [...#EC2InboundPermissionInitParameters] @go(EC2InboundPermission,[]EC2InboundPermissionInitParameters) - - // Name of an EC2 instance typeE.g., t2.micro - ec2InstanceType?: null | string @go(EC2InstanceType,*string) - - // Type of fleet. This value must be ON_DEMAND or SPOT. Defaults to ON_DEMAND. - fleetType?: null | string @go(FleetType,*string) - - // List of names of metric groups to add this fleet to. A metric group tracks metrics across all fleets in the group. Defaults to default. - metricGroups?: [...null | string] @go(MetricGroups,[]*string) - - // The name of the fleet. - name?: null | string @go(Name,*string) - - // Game session protection policy to apply to all instances in this fleetE.g., FullProtection. Defaults to NoProtection. - newGameSessionProtectionPolicy?: null | string @go(NewGameSessionProtectionPolicy,*string) - - // Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below. - resourceCreationLimitPolicy?: [...#ResourceCreationLimitPolicyInitParameters] @go(ResourceCreationLimitPolicy,[]ResourceCreationLimitPolicyInitParameters) - - // Instructions for launching server processes on each instance in the fleet. See below. - runtimeConfiguration?: [...#RuntimeConfigurationInitParameters] @go(RuntimeConfiguration,[]RuntimeConfigurationInitParameters) - - // ID of the GameLift Script to be deployed on the fleet. - scriptId?: null | string @go(ScriptID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FleetObservation: { - // Fleet ARN. - arn?: null | string @go(Arn,*string) - - // Build ARN. - buildArn?: null | string @go(BuildArn,*string) - - // ID of the GameLift Build to be deployed on the fleet. - buildId?: null | string @go(BuildID,*string) - - // Prompts GameLift to generate a TLS/SSL certificate for the fleet. See certificate_configuration. - certificateConfiguration?: [...#CertificateConfigurationObservation] @go(CertificateConfiguration,[]CertificateConfigurationObservation) - - // Human-readable description of the fleet. - description?: null | string @go(Description,*string) - - // Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below. - ec2InboundPermission?: [...#EC2InboundPermissionObservation] @go(EC2InboundPermission,[]EC2InboundPermissionObservation) - - // Name of an EC2 instance typeE.g., t2.micro - ec2InstanceType?: null | string @go(EC2InstanceType,*string) - - // Type of fleet. This value must be ON_DEMAND or SPOT. Defaults to ON_DEMAND. - fleetType?: null | string @go(FleetType,*string) - - // Fleet ID. - id?: null | string @go(ID,*string) - - // ARN of an IAM role that instances in the fleet can assume. - instanceRoleArn?: null | string @go(InstanceRoleArn,*string) - logPaths?: [...null | string] @go(LogPaths,[]*string) - - // List of names of metric groups to add this fleet to. A metric group tracks metrics across all fleets in the group. Defaults to default. - metricGroups?: [...null | string] @go(MetricGroups,[]*string) - - // The name of the fleet. - name?: null | string @go(Name,*string) - - // Game session protection policy to apply to all instances in this fleetE.g., FullProtection. Defaults to NoProtection. - newGameSessionProtectionPolicy?: null | string @go(NewGameSessionProtectionPolicy,*string) - - // Operating system of the fleet's computing resources. - operatingSystem?: null | string @go(OperatingSystem,*string) - - // Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below. - resourceCreationLimitPolicy?: [...#ResourceCreationLimitPolicyObservation] @go(ResourceCreationLimitPolicy,[]ResourceCreationLimitPolicyObservation) - - // Instructions for launching server processes on each instance in the fleet. See below. - runtimeConfiguration?: [...#RuntimeConfigurationObservation] @go(RuntimeConfiguration,[]RuntimeConfigurationObservation) - - // Script ARN. - scriptArn?: null | string @go(ScriptArn,*string) - - // ID of the GameLift Script to be deployed on the fleet. - scriptId?: null | string @go(ScriptID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#FleetParameters: { - // ID of the GameLift Build to be deployed on the fleet. - // +crossplane:generate:reference:type=Build - // +kubebuilder:validation:Optional - buildId?: null | string @go(BuildID,*string) - - // Reference to a Build to populate buildId. - // +kubebuilder:validation:Optional - buildIdRef?: null | v1.#Reference @go(BuildIDRef,*v1.Reference) - - // Selector for a Build to populate buildId. - // +kubebuilder:validation:Optional - buildIdSelector?: null | v1.#Selector @go(BuildIDSelector,*v1.Selector) - - // Prompts GameLift to generate a TLS/SSL certificate for the fleet. See certificate_configuration. - // +kubebuilder:validation:Optional - certificateConfiguration?: [...#CertificateConfigurationParameters] @go(CertificateConfiguration,[]CertificateConfigurationParameters) - - // Human-readable description of the fleet. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below. - // +kubebuilder:validation:Optional - ec2InboundPermission?: [...#EC2InboundPermissionParameters] @go(EC2InboundPermission,[]EC2InboundPermissionParameters) - - // Name of an EC2 instance typeE.g., t2.micro - // +kubebuilder:validation:Optional - ec2InstanceType?: null | string @go(EC2InstanceType,*string) - - // Type of fleet. This value must be ON_DEMAND or SPOT. Defaults to ON_DEMAND. - // +kubebuilder:validation:Optional - fleetType?: null | string @go(FleetType,*string) - - // ARN of an IAM role that instances in the fleet can assume. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - instanceRoleArn?: null | string @go(InstanceRoleArn,*string) - - // Reference to a Role in iam to populate instanceRoleArn. - // +kubebuilder:validation:Optional - instanceRoleArnRef?: null | v1.#Reference @go(InstanceRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate instanceRoleArn. - // +kubebuilder:validation:Optional - instanceRoleArnSelector?: null | v1.#Selector @go(InstanceRoleArnSelector,*v1.Selector) - - // List of names of metric groups to add this fleet to. A metric group tracks metrics across all fleets in the group. Defaults to default. - // +kubebuilder:validation:Optional - metricGroups?: [...null | string] @go(MetricGroups,[]*string) - - // The name of the fleet. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Game session protection policy to apply to all instances in this fleetE.g., FullProtection. Defaults to NoProtection. - // +kubebuilder:validation:Optional - newGameSessionProtectionPolicy?: null | string @go(NewGameSessionProtectionPolicy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below. - // +kubebuilder:validation:Optional - resourceCreationLimitPolicy?: [...#ResourceCreationLimitPolicyParameters] @go(ResourceCreationLimitPolicy,[]ResourceCreationLimitPolicyParameters) - - // Instructions for launching server processes on each instance in the fleet. See below. - // +kubebuilder:validation:Optional - runtimeConfiguration?: [...#RuntimeConfigurationParameters] @go(RuntimeConfiguration,[]RuntimeConfigurationParameters) - - // ID of the GameLift Script to be deployed on the fleet. - // +kubebuilder:validation:Optional - scriptId?: null | string @go(ScriptID,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ResourceCreationLimitPolicyInitParameters: { - // Maximum number of game sessions that an individual can create during the policy period. - newGameSessionsPerCreator?: null | float64 @go(NewGameSessionsPerCreator,*float64) - - // Time span used in evaluating the resource creation limit policy. - policyPeriodInMinutes?: null | float64 @go(PolicyPeriodInMinutes,*float64) -} - -#ResourceCreationLimitPolicyObservation: { - // Maximum number of game sessions that an individual can create during the policy period. - newGameSessionsPerCreator?: null | float64 @go(NewGameSessionsPerCreator,*float64) - - // Time span used in evaluating the resource creation limit policy. - policyPeriodInMinutes?: null | float64 @go(PolicyPeriodInMinutes,*float64) -} - -#ResourceCreationLimitPolicyParameters: { - // Maximum number of game sessions that an individual can create during the policy period. - // +kubebuilder:validation:Optional - newGameSessionsPerCreator?: null | float64 @go(NewGameSessionsPerCreator,*float64) - - // Time span used in evaluating the resource creation limit policy. - // +kubebuilder:validation:Optional - policyPeriodInMinutes?: null | float64 @go(PolicyPeriodInMinutes,*float64) -} - -#RuntimeConfigurationInitParameters: { - // Maximum amount of time (in seconds) that a game session can remain in status ACTIVATING. - gameSessionActivationTimeoutSeconds?: null | float64 @go(GameSessionActivationTimeoutSeconds,*float64) - - // Maximum number of game sessions with status ACTIVATING to allow on an instance simultaneously. - maxConcurrentGameSessionActivations?: null | float64 @go(MaxConcurrentGameSessionActivations,*float64) - - // Collection of server process configurations that describe which server processes to run on each instance in a fleet. See below. - serverProcess?: [...#ServerProcessInitParameters] @go(ServerProcess,[]ServerProcessInitParameters) -} - -#RuntimeConfigurationObservation: { - // Maximum amount of time (in seconds) that a game session can remain in status ACTIVATING. - gameSessionActivationTimeoutSeconds?: null | float64 @go(GameSessionActivationTimeoutSeconds,*float64) - - // Maximum number of game sessions with status ACTIVATING to allow on an instance simultaneously. - maxConcurrentGameSessionActivations?: null | float64 @go(MaxConcurrentGameSessionActivations,*float64) - - // Collection of server process configurations that describe which server processes to run on each instance in a fleet. See below. - serverProcess?: [...#ServerProcessObservation] @go(ServerProcess,[]ServerProcessObservation) -} - -#RuntimeConfigurationParameters: { - // Maximum amount of time (in seconds) that a game session can remain in status ACTIVATING. - // +kubebuilder:validation:Optional - gameSessionActivationTimeoutSeconds?: null | float64 @go(GameSessionActivationTimeoutSeconds,*float64) - - // Maximum number of game sessions with status ACTIVATING to allow on an instance simultaneously. - // +kubebuilder:validation:Optional - maxConcurrentGameSessionActivations?: null | float64 @go(MaxConcurrentGameSessionActivations,*float64) - - // Collection of server process configurations that describe which server processes to run on each instance in a fleet. See below. - // +kubebuilder:validation:Optional - serverProcess?: [...#ServerProcessParameters] @go(ServerProcess,[]ServerProcessParameters) -} - -#ServerProcessInitParameters: { - // Number of server processes using this configuration to run concurrently on an instance. - concurrentExecutions?: null | float64 @go(ConcurrentExecutions,*float64) - - // Location of the server executable in a game build. All game builds are installed on instances at the root : for Windows instances C:\game, and for Linux instances /local/game. - launchPath?: null | string @go(LaunchPath,*string) - - // Optional list of parameters to pass to the server executable on launch. - parameters?: null | string @go(Parameters,*string) -} - -#ServerProcessObservation: { - // Number of server processes using this configuration to run concurrently on an instance. - concurrentExecutions?: null | float64 @go(ConcurrentExecutions,*float64) - - // Location of the server executable in a game build. All game builds are installed on instances at the root : for Windows instances C:\game, and for Linux instances /local/game. - launchPath?: null | string @go(LaunchPath,*string) - - // Optional list of parameters to pass to the server executable on launch. - parameters?: null | string @go(Parameters,*string) -} - -#ServerProcessParameters: { - // Number of server processes using this configuration to run concurrently on an instance. - // +kubebuilder:validation:Optional - concurrentExecutions?: null | float64 @go(ConcurrentExecutions,*float64) - - // Location of the server executable in a game build. All game builds are installed on instances at the root : for Windows instances C:\game, and for Linux instances /local/game. - // +kubebuilder:validation:Optional - launchPath?: null | string @go(LaunchPath,*string) - - // Optional list of parameters to pass to the server executable on launch. - // +kubebuilder:validation:Optional - parameters?: null | string @go(Parameters,*string) -} - -// FleetSpec defines the desired state of Fleet -#FleetSpec: { - v1.#ResourceSpec - forProvider: #FleetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FleetInitParameters @go(InitProvider) -} - -// FleetStatus defines the observed state of Fleet. -#FleetStatus: { - v1.#ResourceStatus - atProvider?: #FleetObservation @go(AtProvider) -} - -// Fleet is the Schema for the Fleets API. Provides a GameLift Fleet resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws},path=fleet -#Fleet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ec2InstanceType) || (has(self.initProvider) && has(self.initProvider.ec2InstanceType))",message="spec.forProvider.ec2InstanceType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #FleetSpec @go(Spec) - status?: #FleetStatus @go(Status) -} - -// FleetList contains a list of Fleets -#FleetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Fleet] @go(Items,[]Fleet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_gamesessionqueue_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_gamesessionqueue_types_go_gen.cue deleted file mode 100644 index ce73ab2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_gamesessionqueue_types_go_gen.cue +++ /dev/null @@ -1,166 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/gamelift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GameSessionQueueInitParameters: { - // Information to be added to all events that are related to this game session queue. - customEventData?: null | string @go(CustomEventData,*string) - - // List of fleet/alias ARNs used by session queue for placing game sessions. - destinations?: [...null | string] @go(Destinations,[]*string) - - // One or more policies used to choose fleet based on player latency. See below. - playerLatencyPolicy?: [...#PlayerLatencyPolicyInitParameters] @go(PlayerLatencyPolicy,[]PlayerLatencyPolicyInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Maximum time a game session request can remain in the queue. - timeoutInSeconds?: null | float64 @go(TimeoutInSeconds,*float64) -} - -#GameSessionQueueObservation: { - // Game Session Queue ARN. - arn?: null | string @go(Arn,*string) - - // Information to be added to all events that are related to this game session queue. - customEventData?: null | string @go(CustomEventData,*string) - - // List of fleet/alias ARNs used by session queue for placing game sessions. - destinations?: [...null | string] @go(Destinations,[]*string) - id?: null | string @go(ID,*string) - - // An SNS topic ARN that is set up to receive game session placement notifications. - notificationTarget?: null | string @go(NotificationTarget,*string) - - // One or more policies used to choose fleet based on player latency. See below. - playerLatencyPolicy?: [...#PlayerLatencyPolicyObservation] @go(PlayerLatencyPolicy,[]PlayerLatencyPolicyObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Maximum time a game session request can remain in the queue. - timeoutInSeconds?: null | float64 @go(TimeoutInSeconds,*float64) -} - -#GameSessionQueueParameters: { - // Information to be added to all events that are related to this game session queue. - // +kubebuilder:validation:Optional - customEventData?: null | string @go(CustomEventData,*string) - - // List of fleet/alias ARNs used by session queue for placing game sessions. - // +kubebuilder:validation:Optional - destinations?: [...null | string] @go(Destinations,[]*string) - - // An SNS topic ARN that is set up to receive game session placement notifications. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - notificationTarget?: null | string @go(NotificationTarget,*string) - - // Reference to a Topic in sns to populate notificationTarget. - // +kubebuilder:validation:Optional - notificationTargetRef?: null | v1.#Reference @go(NotificationTargetRef,*v1.Reference) - - // Selector for a Topic in sns to populate notificationTarget. - // +kubebuilder:validation:Optional - notificationTargetSelector?: null | v1.#Selector @go(NotificationTargetSelector,*v1.Selector) - - // One or more policies used to choose fleet based on player latency. See below. - // +kubebuilder:validation:Optional - playerLatencyPolicy?: [...#PlayerLatencyPolicyParameters] @go(PlayerLatencyPolicy,[]PlayerLatencyPolicyParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Maximum time a game session request can remain in the queue. - // +kubebuilder:validation:Optional - timeoutInSeconds?: null | float64 @go(TimeoutInSeconds,*float64) -} - -#PlayerLatencyPolicyInitParameters: { - // Maximum latency value that is allowed for any player. - maximumIndividualPlayerLatencyMilliseconds?: null | float64 @go(MaximumIndividualPlayerLatencyMilliseconds,*float64) - - // Length of time that the policy is enforced while placing a new game session. Absence of value for this attribute means that the policy is enforced until the queue times out. - policyDurationSeconds?: null | float64 @go(PolicyDurationSeconds,*float64) -} - -#PlayerLatencyPolicyObservation: { - // Maximum latency value that is allowed for any player. - maximumIndividualPlayerLatencyMilliseconds?: null | float64 @go(MaximumIndividualPlayerLatencyMilliseconds,*float64) - - // Length of time that the policy is enforced while placing a new game session. Absence of value for this attribute means that the policy is enforced until the queue times out. - policyDurationSeconds?: null | float64 @go(PolicyDurationSeconds,*float64) -} - -#PlayerLatencyPolicyParameters: { - // Maximum latency value that is allowed for any player. - // +kubebuilder:validation:Optional - maximumIndividualPlayerLatencyMilliseconds?: null | float64 @go(MaximumIndividualPlayerLatencyMilliseconds,*float64) - - // Length of time that the policy is enforced while placing a new game session. Absence of value for this attribute means that the policy is enforced until the queue times out. - // +kubebuilder:validation:Optional - policyDurationSeconds?: null | float64 @go(PolicyDurationSeconds,*float64) -} - -// GameSessionQueueSpec defines the desired state of GameSessionQueue -#GameSessionQueueSpec: { - v1.#ResourceSpec - forProvider: #GameSessionQueueParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GameSessionQueueInitParameters @go(InitProvider) -} - -// GameSessionQueueStatus defines the observed state of GameSessionQueue. -#GameSessionQueueStatus: { - v1.#ResourceStatus - atProvider?: #GameSessionQueueObservation @go(AtProvider) -} - -// GameSessionQueue is the Schema for the GameSessionQueues API. Provides a GameLift Game Session Queue resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GameSessionQueue: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #GameSessionQueueSpec @go(Spec) - status?: #GameSessionQueueStatus @go(Status) -} - -// GameSessionQueueList contains a list of GameSessionQueues -#GameSessionQueueList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GameSessionQueue] @go(Items,[]GameSessionQueue) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 7f0e0d6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/gamelift/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=gamelift.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "gamelift.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_script_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_script_types_go_gen.cue deleted file mode 100644 index 11d058a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/gamelift/v1beta1/zz_script_types_go_gen.cue +++ /dev/null @@ -1,193 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/gamelift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ScriptInitParameters: { - // Name of the script - name?: null | string @go(Name,*string) - - // Information indicating where your game script files are stored. See below. - storageLocation?: [...#ScriptStorageLocationInitParameters] @go(StorageLocation,[]ScriptStorageLocationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Version that is associated with this script. - version?: null | string @go(Version,*string) - - // A data object containing your Realtime scripts and dependencies as a zip file. The zip file can have one or multiple files. Maximum size of a zip file is 5 MB. - zipFile?: null | string @go(ZipFile,*string) -} - -#ScriptObservation: { - // GameLift Script ARN. - arn?: null | string @go(Arn,*string) - - // GameLift Script ID. - id?: null | string @go(ID,*string) - - // Name of the script - name?: null | string @go(Name,*string) - - // Information indicating where your game script files are stored. See below. - storageLocation?: [...#ScriptStorageLocationObservation] @go(StorageLocation,[]ScriptStorageLocationObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Version that is associated with this script. - version?: null | string @go(Version,*string) - - // A data object containing your Realtime scripts and dependencies as a zip file. The zip file can have one or multiple files. Maximum size of a zip file is 5 MB. - zipFile?: null | string @go(ZipFile,*string) -} - -#ScriptParameters: { - // Name of the script - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Information indicating where your game script files are stored. See below. - // +kubebuilder:validation:Optional - storageLocation?: [...#ScriptStorageLocationParameters] @go(StorageLocation,[]ScriptStorageLocationParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Version that is associated with this script. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) - - // A data object containing your Realtime scripts and dependencies as a zip file. The zip file can have one or multiple files. Maximum size of a zip file is 5 MB. - // +kubebuilder:validation:Optional - zipFile?: null | string @go(ZipFile,*string) -} - -#ScriptStorageLocationInitParameters: { - // A specific version of the file. If not set, the latest version of the file is retrieved. - objectVersion?: null | string @go(ObjectVersion,*string) -} - -#ScriptStorageLocationObservation: { - // Name of your S3 bucket. - bucket?: null | string @go(Bucket,*string) - - // Name of the zip file containing your script files. - key?: null | string @go(Key,*string) - - // A specific version of the file. If not set, the latest version of the file is retrieved. - objectVersion?: null | string @go(ObjectVersion,*string) - - // ARN of the access role that allows Amazon GameLift to access your S3 bucket. - roleArn?: null | string @go(RoleArn,*string) -} - -#ScriptStorageLocationParameters: { - // Name of your S3 bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Name of the zip file containing your script files. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Object - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("key",false) - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Reference to a Object in s3 to populate key. - // +kubebuilder:validation:Optional - keyRef?: null | v1.#Reference @go(KeyRef,*v1.Reference) - - // Selector for a Object in s3 to populate key. - // +kubebuilder:validation:Optional - keySelector?: null | v1.#Selector @go(KeySelector,*v1.Selector) - - // A specific version of the file. If not set, the latest version of the file is retrieved. - // +kubebuilder:validation:Optional - objectVersion?: null | string @go(ObjectVersion,*string) - - // ARN of the access role that allows Amazon GameLift to access your S3 bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -// ScriptSpec defines the desired state of Script -#ScriptSpec: { - v1.#ResourceSpec - forProvider: #ScriptParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ScriptInitParameters @go(InitProvider) -} - -// ScriptStatus defines the observed state of Script. -#ScriptStatus: { - v1.#ResourceStatus - atProvider?: #ScriptObservation @go(AtProvider) -} - -// Script is the Schema for the Scripts API. Provides a GameLift Script resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Script: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ScriptSpec @go(Spec) - status?: #ScriptStatus @go(Status) -} - -// ScriptList contains a list of Scripts -#ScriptList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Script] @go(Items,[]Script) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glacier/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glacier/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 4ae7279..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glacier/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glacier/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=glacier.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "glacier.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glacier/v1beta1/zz_vault_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glacier/v1beta1/zz_vault_types_go_gen.cue deleted file mode 100644 index a839e70..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glacier/v1beta1/zz_vault_types_go_gen.cue +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glacier/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NotificationInitParameters: { - // You can configure a vault to publish a notification for ArchiveRetrievalCompleted and InventoryRetrievalCompleted events. - events?: [...null | string] @go(Events,[]*string) -} - -#NotificationObservation: { - // You can configure a vault to publish a notification for ArchiveRetrievalCompleted and InventoryRetrievalCompleted events. - events?: [...null | string] @go(Events,[]*string) - - // The SNS Topic ARN. - snsTopic?: null | string @go(SnsTopic,*string) -} - -#NotificationParameters: { - // You can configure a vault to publish a notification for ArchiveRetrievalCompleted and InventoryRetrievalCompleted events. - // +kubebuilder:validation:Optional - events: [...null | string] @go(Events,[]*string) - - // The SNS Topic ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - snsTopic?: null | string @go(SnsTopic,*string) - - // Reference to a Topic in sns to populate snsTopic. - // +kubebuilder:validation:Optional - snsTopicRef?: null | v1.#Reference @go(SnsTopicRef,*v1.Reference) - - // Selector for a Topic in sns to populate snsTopic. - // +kubebuilder:validation:Optional - snsTopicSelector?: null | v1.#Selector @go(SnsTopicSelector,*v1.Selector) -} - -#VaultInitParameters: { - // The policy document. This is a JSON formatted string. - // The heredoc syntax or file function is helpful here. Use the Glacier Developer Guide for more information on Glacier Vault Policy - accessPolicy?: null | string @go(AccessPolicy,*string) - - // The notifications for the Vault. Fields documented below. - notification?: [...#NotificationInitParameters] @go(Notification,[]NotificationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VaultObservation: { - // The policy document. This is a JSON formatted string. - // The heredoc syntax or file function is helpful here. Use the Glacier Developer Guide for more information on Glacier Vault Policy - accessPolicy?: null | string @go(AccessPolicy,*string) - - // The ARN of the vault. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // The URI of the vault that was created. - location?: null | string @go(Location,*string) - - // The notifications for the Vault. Fields documented below. - notification?: [...#NotificationObservation] @go(Notification,[]NotificationObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#VaultParameters: { - // The policy document. This is a JSON formatted string. - // The heredoc syntax or file function is helpful here. Use the Glacier Developer Guide for more information on Glacier Vault Policy - // +kubebuilder:validation:Optional - accessPolicy?: null | string @go(AccessPolicy,*string) - - // The notifications for the Vault. Fields documented below. - // +kubebuilder:validation:Optional - notification?: [...#NotificationParameters] @go(Notification,[]NotificationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// VaultSpec defines the desired state of Vault -#VaultSpec: { - v1.#ResourceSpec - forProvider: #VaultParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VaultInitParameters @go(InitProvider) -} - -// VaultStatus defines the observed state of Vault. -#VaultStatus: { - v1.#ResourceStatus - atProvider?: #VaultObservation @go(AtProvider) -} - -// Vault is the Schema for the Vaults API. Provides a Glacier Vault. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Vault: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VaultSpec @go(Spec) - status?: #VaultStatus @go(Status) -} - -// VaultList contains a list of Vaults -#VaultList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Vault] @go(Items,[]Vault) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glacier/v1beta1/zz_vaultlock_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glacier/v1beta1/zz_vaultlock_types_go_gen.cue deleted file mode 100644 index 861c0eb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glacier/v1beta1/zz_vaultlock_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glacier/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VaultLockInitParameters: { - // Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time. - completeLock?: null | bool @go(CompleteLock,*bool) - - // This should only be used in conjunction with complete_lock being set to true. - ignoreDeletionError?: null | bool @go(IgnoreDeletionError,*bool) - - // JSON string containing the IAM policy to apply as the Glacier Vault Lock policy. - policy?: null | string @go(Policy,*string) -} - -#VaultLockObservation: { - // Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time. - completeLock?: null | bool @go(CompleteLock,*bool) - - // Glacier Vault name. - id?: null | string @go(ID,*string) - - // This should only be used in conjunction with complete_lock being set to true. - ignoreDeletionError?: null | bool @go(IgnoreDeletionError,*bool) - - // JSON string containing the IAM policy to apply as the Glacier Vault Lock policy. - policy?: null | string @go(Policy,*string) - - // The name of the Glacier Vault. - vaultName?: null | string @go(VaultName,*string) -} - -#VaultLockParameters: { - // Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time. - // +kubebuilder:validation:Optional - completeLock?: null | bool @go(CompleteLock,*bool) - - // This should only be used in conjunction with complete_lock being set to true. - // +kubebuilder:validation:Optional - ignoreDeletionError?: null | bool @go(IgnoreDeletionError,*bool) - - // JSON string containing the IAM policy to apply as the Glacier Vault Lock policy. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the Glacier Vault. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glacier/v1beta1.Vault - // +kubebuilder:validation:Optional - vaultName?: null | string @go(VaultName,*string) - - // Reference to a Vault in glacier to populate vaultName. - // +kubebuilder:validation:Optional - vaultNameRef?: null | v1.#Reference @go(VaultNameRef,*v1.Reference) - - // Selector for a Vault in glacier to populate vaultName. - // +kubebuilder:validation:Optional - vaultNameSelector?: null | v1.#Selector @go(VaultNameSelector,*v1.Selector) -} - -// VaultLockSpec defines the desired state of VaultLock -#VaultLockSpec: { - v1.#ResourceSpec - forProvider: #VaultLockParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VaultLockInitParameters @go(InitProvider) -} - -// VaultLockStatus defines the observed state of VaultLock. -#VaultLockStatus: { - v1.#ResourceStatus - atProvider?: #VaultLockObservation @go(AtProvider) -} - -// VaultLock is the Schema for the VaultLocks API. Manages a Glacier Vault Lock. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VaultLock: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.completeLock) || (has(self.initProvider) && has(self.initProvider.completeLock))",message="spec.forProvider.completeLock is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #VaultLockSpec @go(Spec) - status?: #VaultLockStatus @go(Status) -} - -// VaultLockList contains a list of VaultLocks -#VaultLockList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VaultLock] @go(Items,[]VaultLock) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1/zz_accelerator_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1/zz_accelerator_types_go_gen.cue deleted file mode 100644 index 9ff1f25..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1/zz_accelerator_types_go_gen.cue +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AcceleratorInitParameters: { - // The attributes of the accelerator. Fields documented below. - attributes?: [...#AttributesInitParameters] @go(Attributes,[]AttributesInitParameters) - - // Indicates whether the accelerator is enabled. Defaults to true. Valid values: true, false. - enabled?: null | bool @go(Enabled,*bool) - - // The value for the address type. Defaults to IPV4. Valid values: IPV4, DUAL_STACK. - ipAddressType?: null | string @go(IPAddressType,*string) - - // The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses. - ipAddresses?: [...null | string] @go(IPAddresses,[]*string) - - // The name of the accelerator. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AcceleratorObservation: { - // The attributes of the accelerator. Fields documented below. - attributes?: [...#AttributesObservation] @go(Attributes,[]AttributesObservation) - - // The DNS name of the accelerator. For example, a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - dnsName?: null | string @go(DNSName,*string) - - // The Domain Name System (DNS) name that Global Accelerator creates that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses. For example, a1234567890abcdef.dualstack.awsglobalaccelerator.com. - dualStackDnsName?: null | string @go(DualStackDNSName,*string) - - // Indicates whether the accelerator is enabled. Defaults to true. Valid values: true, false. - enabled?: null | bool @go(Enabled,*bool) - - // - The Global Accelerator Route 53 zone ID that can be used to - // route an Alias Resource Record Set to the Global Accelerator. This attribute - // is simply an alias for the zone ID Z2BJ6XQ5FK7U4H. - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // The Amazon Resource Name (ARN) of the accelerator. - id?: null | string @go(ID,*string) - - // The value for the address type. Defaults to IPV4. Valid values: IPV4, DUAL_STACK. - ipAddressType?: null | string @go(IPAddressType,*string) - - // The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses. - ipAddresses?: [...null | string] @go(IPAddresses,[]*string) - - // IP address set associated with the accelerator. - ipSets?: [...#IPSetsObservation] @go(IPSets,[]IPSetsObservation) - - // The name of the accelerator. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#AcceleratorParameters: { - // The attributes of the accelerator. Fields documented below. - // +kubebuilder:validation:Optional - attributes?: [...#AttributesParameters] @go(Attributes,[]AttributesParameters) - - // Indicates whether the accelerator is enabled. Defaults to true. Valid values: true, false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The value for the address type. Defaults to IPV4. Valid values: IPV4, DUAL_STACK. - // +kubebuilder:validation:Optional - ipAddressType?: null | string @go(IPAddressType,*string) - - // The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses. - // +kubebuilder:validation:Optional - ipAddresses?: [...null | string] @go(IPAddresses,[]*string) - - // The name of the accelerator. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AttributesInitParameters: { - // Indicates whether flow logs are enabled. Defaults to false. Valid values: true, false. - flowLogsEnabled?: null | bool @go(FlowLogsEnabled,*bool) - - // The name of the Amazon S3 bucket for the flow logs. Required if flow_logs_enabled is true. - flowLogsS3Bucket?: null | string @go(FlowLogsS3Bucket,*string) - - // The prefix for the location in the Amazon S3 bucket for the flow logs. Required if flow_logs_enabled is true. - flowLogsS3Prefix?: null | string @go(FlowLogsS3Prefix,*string) -} - -#AttributesObservation: { - // Indicates whether flow logs are enabled. Defaults to false. Valid values: true, false. - flowLogsEnabled?: null | bool @go(FlowLogsEnabled,*bool) - - // The name of the Amazon S3 bucket for the flow logs. Required if flow_logs_enabled is true. - flowLogsS3Bucket?: null | string @go(FlowLogsS3Bucket,*string) - - // The prefix for the location in the Amazon S3 bucket for the flow logs. Required if flow_logs_enabled is true. - flowLogsS3Prefix?: null | string @go(FlowLogsS3Prefix,*string) -} - -#AttributesParameters: { - // Indicates whether flow logs are enabled. Defaults to false. Valid values: true, false. - // +kubebuilder:validation:Optional - flowLogsEnabled?: null | bool @go(FlowLogsEnabled,*bool) - - // The name of the Amazon S3 bucket for the flow logs. Required if flow_logs_enabled is true. - // +kubebuilder:validation:Optional - flowLogsS3Bucket?: null | string @go(FlowLogsS3Bucket,*string) - - // The prefix for the location in the Amazon S3 bucket for the flow logs. Required if flow_logs_enabled is true. - // +kubebuilder:validation:Optional - flowLogsS3Prefix?: null | string @go(FlowLogsS3Prefix,*string) -} - -#IPSetsInitParameters: { -} - -#IPSetsObservation: { - // The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses. - ipAddresses?: [...null | string] @go(IPAddresses,[]*string) - - // The type of IP addresses included in this IP set. - ipFamily?: null | string @go(IPFamily,*string) -} - -#IPSetsParameters: { -} - -// AcceleratorSpec defines the desired state of Accelerator -#AcceleratorSpec: { - v1.#ResourceSpec - forProvider: #AcceleratorParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AcceleratorInitParameters @go(InitProvider) -} - -// AcceleratorStatus defines the observed state of Accelerator. -#AcceleratorStatus: { - v1.#ResourceStatus - atProvider?: #AcceleratorObservation @go(AtProvider) -} - -// Accelerator is the Schema for the Accelerators API. Provides a Global Accelerator accelerator. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Accelerator: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #AcceleratorSpec @go(Spec) - status?: #AcceleratorStatus @go(Status) -} - -// AcceleratorList contains a list of Accelerators -#AcceleratorList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Accelerator] @go(Items,[]Accelerator) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1/zz_endpointgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1/zz_endpointgroup_types_go_gen.cue deleted file mode 100644 index 0482944..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1/zz_endpointgroup_types_go_gen.cue +++ /dev/null @@ -1,240 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EndpointConfigurationInitParameters: { - // Indicates whether client IP address preservation is enabled for an Application Load Balancer endpoint. See the AWS documentation for more details. The default value is false. - clientIpPreservationEnabled?: null | bool @go(ClientIPPreservationEnabled,*bool) - - // An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. - endpointId?: null | string @go(EndpointID,*string) - - // The weight associated with the endpoint. When you add weights to endpoints, you configure AWS Global Accelerator to route traffic based on proportions that you specify. - weight?: null | float64 @go(Weight,*float64) -} - -#EndpointConfigurationObservation: { - // Indicates whether client IP address preservation is enabled for an Application Load Balancer endpoint. See the AWS documentation for more details. The default value is false. - clientIpPreservationEnabled?: null | bool @go(ClientIPPreservationEnabled,*bool) - - // An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. - endpointId?: null | string @go(EndpointID,*string) - - // The weight associated with the endpoint. When you add weights to endpoints, you configure AWS Global Accelerator to route traffic based on proportions that you specify. - weight?: null | float64 @go(Weight,*float64) -} - -#EndpointConfigurationParameters: { - // Indicates whether client IP address preservation is enabled for an Application Load Balancer endpoint. See the AWS documentation for more details. The default value is false. - // +kubebuilder:validation:Optional - clientIpPreservationEnabled?: null | bool @go(ClientIPPreservationEnabled,*bool) - - // An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. - // +kubebuilder:validation:Optional - endpointId?: null | string @go(EndpointID,*string) - - // The weight associated with the endpoint. When you add weights to endpoints, you configure AWS Global Accelerator to route traffic based on proportions that you specify. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -#EndpointGroupInitParameters: { - // The list of endpoint objects. Fields documented below. - endpointConfiguration?: [...#EndpointConfigurationInitParameters] @go(EndpointConfiguration,[]EndpointConfigurationInitParameters) - - // The name of the AWS Region where the endpoint group is located. - endpointGroupRegion?: null | string @go(EndpointGroupRegion,*string) - - // The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30. - healthCheckIntervalSeconds?: null | float64 @go(HealthCheckIntervalSeconds,*float64) - - // If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The default value is slash (/). - healthCheckPath?: null | string @go(HealthCheckPath,*string) - - // The port that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default port is the listener port that this endpoint group is associated with. If listener port is a list of ports, Global Accelerator uses the first port in the list. - healthCheckPort?: null | float64 @go(HealthCheckPort,*float64) - - // The protocol that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default value is TCP. - healthCheckProtocol?: null | string @go(HealthCheckProtocol,*string) - - // Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. Fields documented below. - portOverride?: [...#PortOverrideInitParameters] @go(PortOverride,[]PortOverrideInitParameters) - - // The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3. - thresholdCount?: null | float64 @go(ThresholdCount,*float64) - - // The percentage of traffic to send to an AWS Region. Additional traffic is distributed to other endpoint groups for this listener. The default value is 100. - trafficDialPercentage?: null | float64 @go(TrafficDialPercentage,*float64) -} - -#EndpointGroupObservation: { - // The Amazon Resource Name (ARN) of the endpoint group. - arn?: null | string @go(Arn,*string) - - // The list of endpoint objects. Fields documented below. - endpointConfiguration?: [...#EndpointConfigurationObservation] @go(EndpointConfiguration,[]EndpointConfigurationObservation) - - // The name of the AWS Region where the endpoint group is located. - endpointGroupRegion?: null | string @go(EndpointGroupRegion,*string) - - // The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30. - healthCheckIntervalSeconds?: null | float64 @go(HealthCheckIntervalSeconds,*float64) - - // If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The default value is slash (/). - healthCheckPath?: null | string @go(HealthCheckPath,*string) - - // The port that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default port is the listener port that this endpoint group is associated with. If listener port is a list of ports, Global Accelerator uses the first port in the list. - healthCheckPort?: null | float64 @go(HealthCheckPort,*float64) - - // The protocol that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default value is TCP. - healthCheckProtocol?: null | string @go(HealthCheckProtocol,*string) - - // The Amazon Resource Name (ARN) of the endpoint group. - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) of the listener. - listenerArn?: null | string @go(ListenerArn,*string) - - // Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. Fields documented below. - portOverride?: [...#PortOverrideObservation] @go(PortOverride,[]PortOverrideObservation) - - // The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3. - thresholdCount?: null | float64 @go(ThresholdCount,*float64) - - // The percentage of traffic to send to an AWS Region. Additional traffic is distributed to other endpoint groups for this listener. The default value is 100. - trafficDialPercentage?: null | float64 @go(TrafficDialPercentage,*float64) -} - -#EndpointGroupParameters: { - // The list of endpoint objects. Fields documented below. - // +kubebuilder:validation:Optional - endpointConfiguration?: [...#EndpointConfigurationParameters] @go(EndpointConfiguration,[]EndpointConfigurationParameters) - - // The name of the AWS Region where the endpoint group is located. - // +kubebuilder:validation:Optional - endpointGroupRegion?: null | string @go(EndpointGroupRegion,*string) - - // The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30. - // +kubebuilder:validation:Optional - healthCheckIntervalSeconds?: null | float64 @go(HealthCheckIntervalSeconds,*float64) - - // If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The default value is slash (/). - // +kubebuilder:validation:Optional - healthCheckPath?: null | string @go(HealthCheckPath,*string) - - // The port that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default port is the listener port that this endpoint group is associated with. If listener port is a list of ports, Global Accelerator uses the first port in the list. - // +kubebuilder:validation:Optional - healthCheckPort?: null | float64 @go(HealthCheckPort,*float64) - - // The protocol that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default value is TCP. - // +kubebuilder:validation:Optional - healthCheckProtocol?: null | string @go(HealthCheckProtocol,*string) - - // The Amazon Resource Name (ARN) of the listener. - // +crossplane:generate:reference:type=Listener - // +kubebuilder:validation:Optional - listenerArn?: null | string @go(ListenerArn,*string) - - // Reference to a Listener to populate listenerArn. - // +kubebuilder:validation:Optional - listenerArnRef?: null | v1.#Reference @go(ListenerArnRef,*v1.Reference) - - // Selector for a Listener to populate listenerArn. - // +kubebuilder:validation:Optional - listenerArnSelector?: null | v1.#Selector @go(ListenerArnSelector,*v1.Selector) - - // Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. Fields documented below. - // +kubebuilder:validation:Optional - portOverride?: [...#PortOverrideParameters] @go(PortOverride,[]PortOverrideParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3. - // +kubebuilder:validation:Optional - thresholdCount?: null | float64 @go(ThresholdCount,*float64) - - // The percentage of traffic to send to an AWS Region. Additional traffic is distributed to other endpoint groups for this listener. The default value is 100. - // +kubebuilder:validation:Optional - trafficDialPercentage?: null | float64 @go(TrafficDialPercentage,*float64) -} - -#PortOverrideInitParameters: { - // The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance. - endpointPort?: null | float64 @go(EndpointPort,*float64) - - // The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on. - listenerPort?: null | float64 @go(ListenerPort,*float64) -} - -#PortOverrideObservation: { - // The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance. - endpointPort?: null | float64 @go(EndpointPort,*float64) - - // The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on. - listenerPort?: null | float64 @go(ListenerPort,*float64) -} - -#PortOverrideParameters: { - // The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance. - // +kubebuilder:validation:Optional - endpointPort?: null | float64 @go(EndpointPort,*float64) - - // The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on. - // +kubebuilder:validation:Optional - listenerPort?: null | float64 @go(ListenerPort,*float64) -} - -// EndpointGroupSpec defines the desired state of EndpointGroup -#EndpointGroupSpec: { - v1.#ResourceSpec - forProvider: #EndpointGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EndpointGroupInitParameters @go(InitProvider) -} - -// EndpointGroupStatus defines the observed state of EndpointGroup. -#EndpointGroupStatus: { - v1.#ResourceStatus - atProvider?: #EndpointGroupObservation @go(AtProvider) -} - -// EndpointGroup is the Schema for the EndpointGroups API. Provides a Global Accelerator endpoint group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EndpointGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EndpointGroupSpec @go(Spec) - status?: #EndpointGroupStatus @go(Status) -} - -// EndpointGroupList contains a list of EndpointGroups -#EndpointGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EndpointGroup] @go(Items,[]EndpointGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index bf8f268..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=globalaccelerator.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "globalaccelerator.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1/zz_listener_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1/zz_listener_types_go_gen.cue deleted file mode 100644 index 8f87db4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1/zz_listener_types_go_gen.cue +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/globalaccelerator/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ListenerInitParameters: { - // Direct all requests from a user to the same endpoint. Valid values are NONE, SOURCE_IP. Default: NONE. If NONE, Global Accelerator uses the "five-tuple" properties of source IP address, source port, destination IP address, destination port, and protocol to select the hash value. If SOURCE_IP, Global Accelerator uses the "two-tuple" properties of source (client) IP address and destination IP address to select the hash value. - clientAffinity?: null | string @go(ClientAffinity,*string) - - // The list of port ranges for the connections from clients to the accelerator. Fields documented below. - portRange?: [...#PortRangeInitParameters] @go(PortRange,[]PortRangeInitParameters) - - // The protocol for the connections from clients to the accelerator. Valid values are TCP, UDP. - protocol?: null | string @go(Protocol,*string) -} - -#ListenerObservation: { - // The Amazon Resource Name (ARN) of your accelerator. - acceleratorArn?: null | string @go(AcceleratorArn,*string) - - // Direct all requests from a user to the same endpoint. Valid values are NONE, SOURCE_IP. Default: NONE. If NONE, Global Accelerator uses the "five-tuple" properties of source IP address, source port, destination IP address, destination port, and protocol to select the hash value. If SOURCE_IP, Global Accelerator uses the "two-tuple" properties of source (client) IP address and destination IP address to select the hash value. - clientAffinity?: null | string @go(ClientAffinity,*string) - - // The Amazon Resource Name (ARN) of the listener. - id?: null | string @go(ID,*string) - - // The list of port ranges for the connections from clients to the accelerator. Fields documented below. - portRange?: [...#PortRangeObservation] @go(PortRange,[]PortRangeObservation) - - // The protocol for the connections from clients to the accelerator. Valid values are TCP, UDP. - protocol?: null | string @go(Protocol,*string) -} - -#ListenerParameters: { - // The Amazon Resource Name (ARN) of your accelerator. - // +crossplane:generate:reference:type=Accelerator - // +kubebuilder:validation:Optional - acceleratorArn?: null | string @go(AcceleratorArn,*string) - - // Reference to a Accelerator to populate acceleratorArn. - // +kubebuilder:validation:Optional - acceleratorArnRef?: null | v1.#Reference @go(AcceleratorArnRef,*v1.Reference) - - // Selector for a Accelerator to populate acceleratorArn. - // +kubebuilder:validation:Optional - acceleratorArnSelector?: null | v1.#Selector @go(AcceleratorArnSelector,*v1.Selector) - - // Direct all requests from a user to the same endpoint. Valid values are NONE, SOURCE_IP. Default: NONE. If NONE, Global Accelerator uses the "five-tuple" properties of source IP address, source port, destination IP address, destination port, and protocol to select the hash value. If SOURCE_IP, Global Accelerator uses the "two-tuple" properties of source (client) IP address and destination IP address to select the hash value. - // +kubebuilder:validation:Optional - clientAffinity?: null | string @go(ClientAffinity,*string) - - // The list of port ranges for the connections from clients to the accelerator. Fields documented below. - // +kubebuilder:validation:Optional - portRange?: [...#PortRangeParameters] @go(PortRange,[]PortRangeParameters) - - // The protocol for the connections from clients to the accelerator. Valid values are TCP, UDP. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#PortRangeInitParameters: { - // The first port in the range of ports, inclusive. - fromPort?: null | float64 @go(FromPort,*float64) - - // The last port in the range of ports, inclusive. - toPort?: null | float64 @go(ToPort,*float64) -} - -#PortRangeObservation: { - // The first port in the range of ports, inclusive. - fromPort?: null | float64 @go(FromPort,*float64) - - // The last port in the range of ports, inclusive. - toPort?: null | float64 @go(ToPort,*float64) -} - -#PortRangeParameters: { - // The first port in the range of ports, inclusive. - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // The last port in the range of ports, inclusive. - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -// ListenerSpec defines the desired state of Listener -#ListenerSpec: { - v1.#ResourceSpec - forProvider: #ListenerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ListenerInitParameters @go(InitProvider) -} - -// ListenerStatus defines the observed state of Listener. -#ListenerStatus: { - v1.#ResourceStatus - atProvider?: #ListenerObservation @go(AtProvider) -} - -// Listener is the Schema for the Listeners API. Provides a Global Accelerator listener. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Listener: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.portRange) || (has(self.initProvider) && has(self.initProvider.portRange))",message="spec.forProvider.portRange is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.protocol) || (has(self.initProvider) && has(self.initProvider.protocol))",message="spec.forProvider.protocol is a required parameter" - spec: #ListenerSpec @go(Spec) - status?: #ListenerStatus @go(Status) -} - -// ListenerList contains a list of Listeners -#ListenerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Listener] @go(Items,[]Listener) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_catalogdatabase_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_catalogdatabase_types_go_gen.cue deleted file mode 100644 index 6e86622..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_catalogdatabase_types_go_gen.cue +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CatalogDatabaseInitParameters: { - // Creates a set of default permissions on the table for principals. See create_table_default_permission below. - createTableDefaultPermission?: [...#CreateTableDefaultPermissionInitParameters] @go(CreateTableDefaultPermission,[]CreateTableDefaultPermissionInitParameters) - - // Description of the database. - description?: null | string @go(Description,*string) - - // Location of the database (for example, an HDFS path). - locationUri?: null | string @go(LocationURI,*string) - - // List of key-value pairs that define parameters and properties of the database. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for a target database for resource linking. See target_database below. - targetDatabase?: [...#TargetDatabaseInitParameters] @go(TargetDatabase,[]TargetDatabaseInitParameters) -} - -#CatalogDatabaseObservation: { - // ARN of the Glue Catalog Database. - arn?: null | string @go(Arn,*string) - - // ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID. - catalogId?: null | string @go(CatalogID,*string) - - // Creates a set of default permissions on the table for principals. See create_table_default_permission below. - createTableDefaultPermission?: [...#CreateTableDefaultPermissionObservation] @go(CreateTableDefaultPermission,[]CreateTableDefaultPermissionObservation) - - // Description of the database. - description?: null | string @go(Description,*string) - - // Catalog ID and name of the database. - id?: null | string @go(ID,*string) - - // Location of the database (for example, an HDFS path). - locationUri?: null | string @go(LocationURI,*string) - - // List of key-value pairs that define parameters and properties of the database. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration block for a target database for resource linking. See target_database below. - targetDatabase?: [...#TargetDatabaseObservation] @go(TargetDatabase,[]TargetDatabaseObservation) -} - -#CatalogDatabaseParameters: { - // ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID. - // +kubebuilder:validation:Required - catalogId?: null | string @go(CatalogID,*string) - - // Creates a set of default permissions on the table for principals. See create_table_default_permission below. - // +kubebuilder:validation:Optional - createTableDefaultPermission?: [...#CreateTableDefaultPermissionParameters] @go(CreateTableDefaultPermission,[]CreateTableDefaultPermissionParameters) - - // Description of the database. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Location of the database (for example, an HDFS path). - // +kubebuilder:validation:Optional - locationUri?: null | string @go(LocationURI,*string) - - // List of key-value pairs that define parameters and properties of the database. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for a target database for resource linking. See target_database below. - // +kubebuilder:validation:Optional - targetDatabase?: [...#TargetDatabaseParameters] @go(TargetDatabase,[]TargetDatabaseParameters) -} - -#CreateTableDefaultPermissionInitParameters: { - // The permissions that are granted to the principal. - permissions?: [...null | string] @go(Permissions,[]*string) - - // The principal who is granted permissions.. See principal below. - principal?: [...#PrincipalInitParameters] @go(Principal,[]PrincipalInitParameters) -} - -#CreateTableDefaultPermissionObservation: { - // The permissions that are granted to the principal. - permissions?: [...null | string] @go(Permissions,[]*string) - - // The principal who is granted permissions.. See principal below. - principal?: [...#PrincipalObservation] @go(Principal,[]PrincipalObservation) -} - -#CreateTableDefaultPermissionParameters: { - // The permissions that are granted to the principal. - // +kubebuilder:validation:Optional - permissions?: [...null | string] @go(Permissions,[]*string) - - // The principal who is granted permissions.. See principal below. - // +kubebuilder:validation:Optional - principal?: [...#PrincipalParameters] @go(Principal,[]PrincipalParameters) -} - -#PrincipalInitParameters: { - // An identifier for the Lake Formation principal. - dataLakePrincipalIdentifier?: null | string @go(DataLakePrincipalIdentifier,*string) -} - -#PrincipalObservation: { - // An identifier for the Lake Formation principal. - dataLakePrincipalIdentifier?: null | string @go(DataLakePrincipalIdentifier,*string) -} - -#PrincipalParameters: { - // An identifier for the Lake Formation principal. - // +kubebuilder:validation:Optional - dataLakePrincipalIdentifier?: null | string @go(DataLakePrincipalIdentifier,*string) -} - -#TargetDatabaseInitParameters: { - // Name of the catalog database. - databaseName?: null | string @go(DatabaseName,*string) -} - -#TargetDatabaseObservation: { - // ID of the Data Catalog in which the database resides. - catalogId?: null | string @go(CatalogID,*string) - - // Name of the catalog database. - databaseName?: null | string @go(DatabaseName,*string) -} - -#TargetDatabaseParameters: { - // ID of the Data Catalog in which the database resides. - // +kubebuilder:validation:Required - catalogId?: null | string @go(CatalogID,*string) - - // Name of the catalog database. - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) -} - -// CatalogDatabaseSpec defines the desired state of CatalogDatabase -#CatalogDatabaseSpec: { - v1.#ResourceSpec - forProvider: #CatalogDatabaseParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CatalogDatabaseInitParameters @go(InitProvider) -} - -// CatalogDatabaseStatus defines the observed state of CatalogDatabase. -#CatalogDatabaseStatus: { - v1.#ResourceStatus - atProvider?: #CatalogDatabaseObservation @go(AtProvider) -} - -// CatalogDatabase is the Schema for the CatalogDatabases API. Provides a Glue Catalog Database. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CatalogDatabase: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CatalogDatabaseSpec @go(Spec) - status?: #CatalogDatabaseStatus @go(Status) -} - -// CatalogDatabaseList contains a list of CatalogDatabases -#CatalogDatabaseList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CatalogDatabase] @go(Items,[]CatalogDatabase) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_catalogtable_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_catalogtable_types_go_gen.cue deleted file mode 100644 index c40b3f7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_catalogtable_types_go_gen.cue +++ /dev/null @@ -1,650 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CatalogTableInitParameters: { - // Description of the table. - description?: null | string @go(Description,*string) - - // Owner of the table. - owner?: null | string @go(Owner,*string) - - // Properties associated with this table, as a list of key-value pairs. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Configuration block for a maximum of 3 partition indexes. See partition_index below. - partitionIndex?: [...#PartitionIndexInitParameters] @go(PartitionIndex,[]PartitionIndexInitParameters) - - // Configuration block of columns by which the table is partitioned. Only primitive types are supported as partition keys. See partition_keys below. - partitionKeys?: [...#PartitionKeysInitParameters] @go(PartitionKeys,[]PartitionKeysInitParameters) - - // Retention time for this table. - retention?: null | float64 @go(Retention,*float64) - - // Configuration block for information about the physical storage of this table. For more information, refer to the Glue Developer Guide. See storage_descriptor below. - storageDescriptor?: [...#StorageDescriptorInitParameters] @go(StorageDescriptor,[]StorageDescriptorInitParameters) - - // Type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.). While optional, some Athena DDL queries such as ALTER TABLE and SHOW CREATE TABLE will fail if this argument is empty. - tableType?: null | string @go(TableType,*string) - - // Configuration block of a target table for resource linking. See target_table below. - targetTable?: [...#TargetTableInitParameters] @go(TargetTable,[]TargetTableInitParameters) - - // If the table is a view, the expanded text of the view; otherwise null. - viewExpandedText?: null | string @go(ViewExpandedText,*string) - - // If the table is a view, the original text of the view; otherwise null. - viewOriginalText?: null | string @go(ViewOriginalText,*string) -} - -#CatalogTableObservation: { - // The ARN of the Glue Table. - arn?: null | string @go(Arn,*string) - - // ID of the Glue Catalog and database to create the table in. If omitted, this defaults to the AWS Account ID plus the database name. - catalogId?: null | string @go(CatalogID,*string) - - // Name of the metadata database where the table metadata resides. For Hive compatibility, this must be all lowercase. - databaseName?: null | string @go(DatabaseName,*string) - - // Description of the table. - description?: null | string @go(Description,*string) - - // Catalog ID, Database name and of the name table. - id?: null | string @go(ID,*string) - - // Owner of the table. - owner?: null | string @go(Owner,*string) - - // Properties associated with this table, as a list of key-value pairs. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Configuration block for a maximum of 3 partition indexes. See partition_index below. - partitionIndex?: [...#PartitionIndexObservation] @go(PartitionIndex,[]PartitionIndexObservation) - - // Configuration block of columns by which the table is partitioned. Only primitive types are supported as partition keys. See partition_keys below. - partitionKeys?: [...#PartitionKeysObservation] @go(PartitionKeys,[]PartitionKeysObservation) - - // Retention time for this table. - retention?: null | float64 @go(Retention,*float64) - - // Configuration block for information about the physical storage of this table. For more information, refer to the Glue Developer Guide. See storage_descriptor below. - storageDescriptor?: [...#StorageDescriptorObservation] @go(StorageDescriptor,[]StorageDescriptorObservation) - - // Type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.). While optional, some Athena DDL queries such as ALTER TABLE and SHOW CREATE TABLE will fail if this argument is empty. - tableType?: null | string @go(TableType,*string) - - // Configuration block of a target table for resource linking. See target_table below. - targetTable?: [...#TargetTableObservation] @go(TargetTable,[]TargetTableObservation) - - // If the table is a view, the expanded text of the view; otherwise null. - viewExpandedText?: null | string @go(ViewExpandedText,*string) - - // If the table is a view, the original text of the view; otherwise null. - viewOriginalText?: null | string @go(ViewOriginalText,*string) -} - -#CatalogTableParameters: { - // ID of the Glue Catalog and database to create the table in. If omitted, this defaults to the AWS Account ID plus the database name. - // +kubebuilder:validation:Required - catalogId?: null | string @go(CatalogID,*string) - - // Name of the metadata database where the table metadata resides. For Hive compatibility, this must be all lowercase. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.CatalogDatabase - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // Reference to a CatalogDatabase in glue to populate databaseName. - // +kubebuilder:validation:Optional - databaseNameRef?: null | v1.#Reference @go(DatabaseNameRef,*v1.Reference) - - // Selector for a CatalogDatabase in glue to populate databaseName. - // +kubebuilder:validation:Optional - databaseNameSelector?: null | v1.#Selector @go(DatabaseNameSelector,*v1.Selector) - - // Description of the table. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Owner of the table. - // +kubebuilder:validation:Optional - owner?: null | string @go(Owner,*string) - - // Properties associated with this table, as a list of key-value pairs. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Configuration block for a maximum of 3 partition indexes. See partition_index below. - // +kubebuilder:validation:Optional - partitionIndex?: [...#PartitionIndexParameters] @go(PartitionIndex,[]PartitionIndexParameters) - - // Configuration block of columns by which the table is partitioned. Only primitive types are supported as partition keys. See partition_keys below. - // +kubebuilder:validation:Optional - partitionKeys?: [...#PartitionKeysParameters] @go(PartitionKeys,[]PartitionKeysParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Retention time for this table. - // +kubebuilder:validation:Optional - retention?: null | float64 @go(Retention,*float64) - - // Configuration block for information about the physical storage of this table. For more information, refer to the Glue Developer Guide. See storage_descriptor below. - // +kubebuilder:validation:Optional - storageDescriptor?: [...#StorageDescriptorParameters] @go(StorageDescriptor,[]StorageDescriptorParameters) - - // Type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.). While optional, some Athena DDL queries such as ALTER TABLE and SHOW CREATE TABLE will fail if this argument is empty. - // +kubebuilder:validation:Optional - tableType?: null | string @go(TableType,*string) - - // Configuration block of a target table for resource linking. See target_table below. - // +kubebuilder:validation:Optional - targetTable?: [...#TargetTableParameters] @go(TargetTable,[]TargetTableParameters) - - // If the table is a view, the expanded text of the view; otherwise null. - // +kubebuilder:validation:Optional - viewExpandedText?: null | string @go(ViewExpandedText,*string) - - // If the table is a view, the original text of the view; otherwise null. - // +kubebuilder:validation:Optional - viewOriginalText?: null | string @go(ViewOriginalText,*string) -} - -#ColumnsInitParameters: { - // Free-form text comment. - comment?: null | string @go(Comment,*string) - - // Name of the Column. - name?: null | string @go(Name,*string) - - // Key-value pairs defining properties associated with the column. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Datatype of data in the Column. - type?: null | string @go(Type,*string) -} - -#ColumnsObservation: { - // Free-form text comment. - comment?: null | string @go(Comment,*string) - - // Name of the Column. - name?: null | string @go(Name,*string) - - // Key-value pairs defining properties associated with the column. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Datatype of data in the Column. - type?: null | string @go(Type,*string) -} - -#ColumnsParameters: { - // Free-form text comment. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // Name of the Column. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Key-value pairs defining properties associated with the column. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Datatype of data in the Column. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#PartitionIndexInitParameters: { - // Name of the partition index. - indexName?: null | string @go(IndexName,*string) - - // Keys for the partition index. - keys?: [...null | string] @go(Keys,[]*string) -} - -#PartitionIndexObservation: { - // Name of the partition index. - indexName?: null | string @go(IndexName,*string) - indexStatus?: null | string @go(IndexStatus,*string) - - // Keys for the partition index. - keys?: [...null | string] @go(Keys,[]*string) -} - -#PartitionIndexParameters: { - // Name of the partition index. - // +kubebuilder:validation:Optional - indexName?: null | string @go(IndexName,*string) - - // Keys for the partition index. - // +kubebuilder:validation:Optional - keys: [...null | string] @go(Keys,[]*string) -} - -#PartitionKeysInitParameters: { - // Free-form text comment. - comment?: null | string @go(Comment,*string) - - // Name of the Partition Key. - name?: null | string @go(Name,*string) - - // Datatype of data in the Partition Key. - type?: null | string @go(Type,*string) -} - -#PartitionKeysObservation: { - // Free-form text comment. - comment?: null | string @go(Comment,*string) - - // Name of the Partition Key. - name?: null | string @go(Name,*string) - - // Datatype of data in the Partition Key. - type?: null | string @go(Type,*string) -} - -#PartitionKeysParameters: { - // Free-form text comment. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // Name of the Partition Key. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Datatype of data in the Partition Key. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#SchemaIDInitParameters: { - // Name of the schema registry that contains the schema. Must be provided when schema_name is specified and conflicts with schema_arn. - registryName?: null | string @go(RegistryName,*string) - - // ARN of the schema. One of schema_arn or schema_name has to be provided. - schemaArn?: null | string @go(SchemaArn,*string) - - // Name of the schema. One of schema_arn or schema_name has to be provided. - schemaName?: null | string @go(SchemaName,*string) -} - -#SchemaIDObservation: { - // Name of the schema registry that contains the schema. Must be provided when schema_name is specified and conflicts with schema_arn. - registryName?: null | string @go(RegistryName,*string) - - // ARN of the schema. One of schema_arn or schema_name has to be provided. - schemaArn?: null | string @go(SchemaArn,*string) - - // Name of the schema. One of schema_arn or schema_name has to be provided. - schemaName?: null | string @go(SchemaName,*string) -} - -#SchemaIDParameters: { - // Name of the schema registry that contains the schema. Must be provided when schema_name is specified and conflicts with schema_arn. - // +kubebuilder:validation:Optional - registryName?: null | string @go(RegistryName,*string) - - // ARN of the schema. One of schema_arn or schema_name has to be provided. - // +kubebuilder:validation:Optional - schemaArn?: null | string @go(SchemaArn,*string) - - // Name of the schema. One of schema_arn or schema_name has to be provided. - // +kubebuilder:validation:Optional - schemaName?: null | string @go(SchemaName,*string) -} - -#SchemaReferenceInitParameters: { - // Configuration block that contains schema identity fields. Either this or the schema_version_id has to be provided. See schema_id below. - schemaId?: [...#SchemaIDInitParameters] @go(SchemaID,[]SchemaIDInitParameters) - - // Unique ID assigned to a version of the schema. Either this or the schema_id has to be provided. - schemaVersionId?: null | string @go(SchemaVersionID,*string) - - // Version number of the schema. - schemaVersionNumber?: null | float64 @go(SchemaVersionNumber,*float64) -} - -#SchemaReferenceObservation: { - // Configuration block that contains schema identity fields. Either this or the schema_version_id has to be provided. See schema_id below. - schemaId?: [...#SchemaIDObservation] @go(SchemaID,[]SchemaIDObservation) - - // Unique ID assigned to a version of the schema. Either this or the schema_id has to be provided. - schemaVersionId?: null | string @go(SchemaVersionID,*string) - - // Version number of the schema. - schemaVersionNumber?: null | float64 @go(SchemaVersionNumber,*float64) -} - -#SchemaReferenceParameters: { - // Configuration block that contains schema identity fields. Either this or the schema_version_id has to be provided. See schema_id below. - // +kubebuilder:validation:Optional - schemaId?: [...#SchemaIDParameters] @go(SchemaID,[]SchemaIDParameters) - - // Unique ID assigned to a version of the schema. Either this or the schema_id has to be provided. - // +kubebuilder:validation:Optional - schemaVersionId?: null | string @go(SchemaVersionID,*string) - - // Version number of the schema. - // +kubebuilder:validation:Optional - schemaVersionNumber?: null | float64 @go(SchemaVersionNumber,*float64) -} - -#SerDeInfoInitParameters: { - // Name of the SerDe. - name?: null | string @go(Name,*string) - - // Map of initialization parameters for the SerDe, in key-value form. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Usually the class that implements the SerDe. An example is org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe. - serializationLibrary?: null | string @go(SerializationLibrary,*string) -} - -#SerDeInfoObservation: { - // Name of the SerDe. - name?: null | string @go(Name,*string) - - // Map of initialization parameters for the SerDe, in key-value form. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Usually the class that implements the SerDe. An example is org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe. - serializationLibrary?: null | string @go(SerializationLibrary,*string) -} - -#SerDeInfoParameters: { - // Name of the SerDe. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Map of initialization parameters for the SerDe, in key-value form. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Usually the class that implements the SerDe. An example is org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe. - // +kubebuilder:validation:Optional - serializationLibrary?: null | string @go(SerializationLibrary,*string) -} - -#SkewedInfoInitParameters: { - // List of names of columns that contain skewed values. - skewedColumnNames?: [...null | string] @go(SkewedColumnNames,[]*string) - - // List of values that appear so frequently as to be considered skewed. - skewedColumnValueLocationMaps?: {[string]: null | string} @go(SkewedColumnValueLocationMaps,map[string]*string) - - // Map of skewed values to the columns that contain them. - skewedColumnValues?: [...null | string] @go(SkewedColumnValues,[]*string) -} - -#SkewedInfoObservation: { - // List of names of columns that contain skewed values. - skewedColumnNames?: [...null | string] @go(SkewedColumnNames,[]*string) - - // List of values that appear so frequently as to be considered skewed. - skewedColumnValueLocationMaps?: {[string]: null | string} @go(SkewedColumnValueLocationMaps,map[string]*string) - - // Map of skewed values to the columns that contain them. - skewedColumnValues?: [...null | string] @go(SkewedColumnValues,[]*string) -} - -#SkewedInfoParameters: { - // List of names of columns that contain skewed values. - // +kubebuilder:validation:Optional - skewedColumnNames?: [...null | string] @go(SkewedColumnNames,[]*string) - - // List of values that appear so frequently as to be considered skewed. - // +kubebuilder:validation:Optional - skewedColumnValueLocationMaps?: {[string]: null | string} @go(SkewedColumnValueLocationMaps,map[string]*string) - - // Map of skewed values to the columns that contain them. - // +kubebuilder:validation:Optional - skewedColumnValues?: [...null | string] @go(SkewedColumnValues,[]*string) -} - -#SortColumnsInitParameters: { - // Name of the column. - column?: null | string @go(Column,*string) - - // Whether the column is sorted in ascending (1) or descending order (0). - sortOrder?: null | float64 @go(SortOrder,*float64) -} - -#SortColumnsObservation: { - // Name of the column. - column?: null | string @go(Column,*string) - - // Whether the column is sorted in ascending (1) or descending order (0). - sortOrder?: null | float64 @go(SortOrder,*float64) -} - -#SortColumnsParameters: { - // Name of the column. - // +kubebuilder:validation:Optional - column?: null | string @go(Column,*string) - - // Whether the column is sorted in ascending (1) or descending order (0). - // +kubebuilder:validation:Optional - sortOrder?: null | float64 @go(SortOrder,*float64) -} - -#StorageDescriptorInitParameters: { - // List of reducer grouping columns, clustering columns, and bucketing columns in the table. - bucketColumns?: [...null | string] @go(BucketColumns,[]*string) - - // Configuration block for columns in the table. See columns below. - columns?: [...#ColumnsInitParameters] @go(Columns,[]ColumnsInitParameters) - - // Whether the data in the table is compressed. - compressed?: null | bool @go(Compressed,*bool) - - // Input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format. - inputFormat?: null | string @go(InputFormat,*string) - - // Physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name. - location?: null | string @go(Location,*string) - - // Must be specified if the table contains any dimension columns. - numberOfBuckets?: null | float64 @go(NumberOfBuckets,*float64) - - // Output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format. - outputFormat?: null | string @go(OutputFormat,*string) - - // User-supplied properties in key-value form. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Object that references a schema stored in the AWS Glue Schema Registry. When creating a table, you can pass an empty list of columns for the schema, and instead use a schema reference. See Schema Reference below. - schemaReference?: [...#SchemaReferenceInitParameters] @go(SchemaReference,[]SchemaReferenceInitParameters) - - // Configuration block for serialization and deserialization ("SerDe") information. See ser_de_info below. - serDeInfo?: [...#SerDeInfoInitParameters] @go(SerDeInfo,[]SerDeInfoInitParameters) - - // Configuration block with information about values that appear very frequently in a column (skewed values). See skewed_info below. - skewedInfo?: [...#SkewedInfoInitParameters] @go(SkewedInfo,[]SkewedInfoInitParameters) - - // Configuration block for the sort order of each bucket in the table. See sort_columns below. - sortColumns?: [...#SortColumnsInitParameters] @go(SortColumns,[]SortColumnsInitParameters) - - // Whether the table data is stored in subdirectories. - storedAsSubDirectories?: null | bool @go(StoredAsSubDirectories,*bool) -} - -#StorageDescriptorObservation: { - // List of reducer grouping columns, clustering columns, and bucketing columns in the table. - bucketColumns?: [...null | string] @go(BucketColumns,[]*string) - - // Configuration block for columns in the table. See columns below. - columns?: [...#ColumnsObservation] @go(Columns,[]ColumnsObservation) - - // Whether the data in the table is compressed. - compressed?: null | bool @go(Compressed,*bool) - - // Input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format. - inputFormat?: null | string @go(InputFormat,*string) - - // Physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name. - location?: null | string @go(Location,*string) - - // Must be specified if the table contains any dimension columns. - numberOfBuckets?: null | float64 @go(NumberOfBuckets,*float64) - - // Output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format. - outputFormat?: null | string @go(OutputFormat,*string) - - // User-supplied properties in key-value form. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Object that references a schema stored in the AWS Glue Schema Registry. When creating a table, you can pass an empty list of columns for the schema, and instead use a schema reference. See Schema Reference below. - schemaReference?: [...#SchemaReferenceObservation] @go(SchemaReference,[]SchemaReferenceObservation) - - // Configuration block for serialization and deserialization ("SerDe") information. See ser_de_info below. - serDeInfo?: [...#SerDeInfoObservation] @go(SerDeInfo,[]SerDeInfoObservation) - - // Configuration block with information about values that appear very frequently in a column (skewed values). See skewed_info below. - skewedInfo?: [...#SkewedInfoObservation] @go(SkewedInfo,[]SkewedInfoObservation) - - // Configuration block for the sort order of each bucket in the table. See sort_columns below. - sortColumns?: [...#SortColumnsObservation] @go(SortColumns,[]SortColumnsObservation) - - // Whether the table data is stored in subdirectories. - storedAsSubDirectories?: null | bool @go(StoredAsSubDirectories,*bool) -} - -#StorageDescriptorParameters: { - // List of reducer grouping columns, clustering columns, and bucketing columns in the table. - // +kubebuilder:validation:Optional - bucketColumns?: [...null | string] @go(BucketColumns,[]*string) - - // Configuration block for columns in the table. See columns below. - // +kubebuilder:validation:Optional - columns?: [...#ColumnsParameters] @go(Columns,[]ColumnsParameters) - - // Whether the data in the table is compressed. - // +kubebuilder:validation:Optional - compressed?: null | bool @go(Compressed,*bool) - - // Input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format. - // +kubebuilder:validation:Optional - inputFormat?: null | string @go(InputFormat,*string) - - // Physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name. - // +kubebuilder:validation:Optional - location?: null | string @go(Location,*string) - - // Must be specified if the table contains any dimension columns. - // +kubebuilder:validation:Optional - numberOfBuckets?: null | float64 @go(NumberOfBuckets,*float64) - - // Output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format. - // +kubebuilder:validation:Optional - outputFormat?: null | string @go(OutputFormat,*string) - - // User-supplied properties in key-value form. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Object that references a schema stored in the AWS Glue Schema Registry. When creating a table, you can pass an empty list of columns for the schema, and instead use a schema reference. See Schema Reference below. - // +kubebuilder:validation:Optional - schemaReference?: [...#SchemaReferenceParameters] @go(SchemaReference,[]SchemaReferenceParameters) - - // Configuration block for serialization and deserialization ("SerDe") information. See ser_de_info below. - // +kubebuilder:validation:Optional - serDeInfo?: [...#SerDeInfoParameters] @go(SerDeInfo,[]SerDeInfoParameters) - - // Configuration block with information about values that appear very frequently in a column (skewed values). See skewed_info below. - // +kubebuilder:validation:Optional - skewedInfo?: [...#SkewedInfoParameters] @go(SkewedInfo,[]SkewedInfoParameters) - - // Configuration block for the sort order of each bucket in the table. See sort_columns below. - // +kubebuilder:validation:Optional - sortColumns?: [...#SortColumnsParameters] @go(SortColumns,[]SortColumnsParameters) - - // Whether the table data is stored in subdirectories. - // +kubebuilder:validation:Optional - storedAsSubDirectories?: null | bool @go(StoredAsSubDirectories,*bool) -} - -#TargetTableInitParameters: { - // Name of the target table. - name?: null | string @go(Name,*string) -} - -#TargetTableObservation: { - // ID of the Data Catalog in which the table resides. - catalogId?: null | string @go(CatalogID,*string) - - // Name of the catalog database that contains the target table. - databaseName?: null | string @go(DatabaseName,*string) - - // Name of the target table. - name?: null | string @go(Name,*string) -} - -#TargetTableParameters: { - // ID of the Data Catalog in which the table resides. - // +kubebuilder:validation:Required - catalogId?: null | string @go(CatalogID,*string) - - // Name of the catalog database that contains the target table. - // +kubebuilder:validation:Required - databaseName?: null | string @go(DatabaseName,*string) - - // Name of the target table. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -// CatalogTableSpec defines the desired state of CatalogTable -#CatalogTableSpec: { - v1.#ResourceSpec - forProvider: #CatalogTableParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CatalogTableInitParameters @go(InitProvider) -} - -// CatalogTableStatus defines the observed state of CatalogTable. -#CatalogTableStatus: { - v1.#ResourceStatus - atProvider?: #CatalogTableObservation @go(AtProvider) -} - -// CatalogTable is the Schema for the CatalogTables API. Provides a Glue Catalog Table. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CatalogTable: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CatalogTableSpec @go(Spec) - status?: #CatalogTableStatus @go(Status) -} - -// CatalogTableList contains a list of CatalogTables -#CatalogTableList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CatalogTable] @go(Items,[]CatalogTable) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_classifier_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_classifier_types_go_gen.cue deleted file mode 100644 index ebfbb1c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_classifier_types_go_gen.cue +++ /dev/null @@ -1,273 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClassifierInitParameters: { - // A classifier for Csv content. Defined below. - csvClassifier?: [...#CsvClassifierInitParameters] @go(CsvClassifier,[]CsvClassifierInitParameters) - - // – A classifier that uses grok patterns. Defined below. - grokClassifier?: [...#GrokClassifierInitParameters] @go(GrokClassifier,[]GrokClassifierInitParameters) - - // – A classifier for JSON content. Defined below. - jsonClassifier?: [...#JSONClassifierInitParameters] @go(JSONClassifier,[]JSONClassifierInitParameters) - - // – A classifier for XML content. Defined below. - xmlClassifier?: [...#XMLClassifierInitParameters] @go(XMLClassifier,[]XMLClassifierInitParameters) -} - -#ClassifierObservation: { - // A classifier for Csv content. Defined below. - csvClassifier?: [...#CsvClassifierObservation] @go(CsvClassifier,[]CsvClassifierObservation) - - // – A classifier that uses grok patterns. Defined below. - grokClassifier?: [...#GrokClassifierObservation] @go(GrokClassifier,[]GrokClassifierObservation) - - // Name of the classifier - id?: null | string @go(ID,*string) - - // – A classifier for JSON content. Defined below. - jsonClassifier?: [...#JSONClassifierObservation] @go(JSONClassifier,[]JSONClassifierObservation) - - // – A classifier for XML content. Defined below. - xmlClassifier?: [...#XMLClassifierObservation] @go(XMLClassifier,[]XMLClassifierObservation) -} - -#ClassifierParameters: { - // A classifier for Csv content. Defined below. - // +kubebuilder:validation:Optional - csvClassifier?: [...#CsvClassifierParameters] @go(CsvClassifier,[]CsvClassifierParameters) - - // – A classifier that uses grok patterns. Defined below. - // +kubebuilder:validation:Optional - grokClassifier?: [...#GrokClassifierParameters] @go(GrokClassifier,[]GrokClassifierParameters) - - // – A classifier for JSON content. Defined below. - // +kubebuilder:validation:Optional - jsonClassifier?: [...#JSONClassifierParameters] @go(JSONClassifier,[]JSONClassifierParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // – A classifier for XML content. Defined below. - // +kubebuilder:validation:Optional - xmlClassifier?: [...#XMLClassifierParameters] @go(XMLClassifier,[]XMLClassifierParameters) -} - -#CsvClassifierInitParameters: { - // Enables the processing of files that contain only one column. - allowSingleColumn?: null | bool @go(AllowSingleColumn,*bool) - - // Indicates whether the CSV file contains a header. This can be one of "ABSENT", "PRESENT", or "UNKNOWN". - containsHeader?: null | string @go(ContainsHeader,*string) - - // A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter. - customDatatypeConfigured?: null | bool @go(CustomDatatypeConfigured,*bool) - - // A list of supported custom datatypes. Valid values are BINARY, BOOLEAN, DATE, DECIMAL, DOUBLE, FLOAT, INT, LONG, SHORT, STRING, TIMESTAMP. - customDatatypes?: [...null | string] @go(CustomDatatypes,[]*string) - - // The delimiter used in the Csv to separate columns. - delimiter?: null | string @go(Delimiter,*string) - - // Specifies whether to trim column values. - disableValueTrimming?: null | bool @go(DisableValueTrimming,*bool) - - // A list of strings representing column names. - header?: [...null | string] @go(Header,[]*string) - - // A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter. - quoteSymbol?: null | string @go(QuoteSymbol,*string) -} - -#CsvClassifierObservation: { - // Enables the processing of files that contain only one column. - allowSingleColumn?: null | bool @go(AllowSingleColumn,*bool) - - // Indicates whether the CSV file contains a header. This can be one of "ABSENT", "PRESENT", or "UNKNOWN". - containsHeader?: null | string @go(ContainsHeader,*string) - - // A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter. - customDatatypeConfigured?: null | bool @go(CustomDatatypeConfigured,*bool) - - // A list of supported custom datatypes. Valid values are BINARY, BOOLEAN, DATE, DECIMAL, DOUBLE, FLOAT, INT, LONG, SHORT, STRING, TIMESTAMP. - customDatatypes?: [...null | string] @go(CustomDatatypes,[]*string) - - // The delimiter used in the Csv to separate columns. - delimiter?: null | string @go(Delimiter,*string) - - // Specifies whether to trim column values. - disableValueTrimming?: null | bool @go(DisableValueTrimming,*bool) - - // A list of strings representing column names. - header?: [...null | string] @go(Header,[]*string) - - // A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter. - quoteSymbol?: null | string @go(QuoteSymbol,*string) -} - -#CsvClassifierParameters: { - // Enables the processing of files that contain only one column. - // +kubebuilder:validation:Optional - allowSingleColumn?: null | bool @go(AllowSingleColumn,*bool) - - // Indicates whether the CSV file contains a header. This can be one of "ABSENT", "PRESENT", or "UNKNOWN". - // +kubebuilder:validation:Optional - containsHeader?: null | string @go(ContainsHeader,*string) - - // A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter. - // +kubebuilder:validation:Optional - customDatatypeConfigured?: null | bool @go(CustomDatatypeConfigured,*bool) - - // A list of supported custom datatypes. Valid values are BINARY, BOOLEAN, DATE, DECIMAL, DOUBLE, FLOAT, INT, LONG, SHORT, STRING, TIMESTAMP. - // +kubebuilder:validation:Optional - customDatatypes?: [...null | string] @go(CustomDatatypes,[]*string) - - // The delimiter used in the Csv to separate columns. - // +kubebuilder:validation:Optional - delimiter?: null | string @go(Delimiter,*string) - - // Specifies whether to trim column values. - // +kubebuilder:validation:Optional - disableValueTrimming?: null | bool @go(DisableValueTrimming,*bool) - - // A list of strings representing column names. - // +kubebuilder:validation:Optional - header?: [...null | string] @go(Header,[]*string) - - // A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter. - // +kubebuilder:validation:Optional - quoteSymbol?: null | string @go(QuoteSymbol,*string) -} - -#GrokClassifierInitParameters: { - // An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on. - classification?: null | string @go(Classification,*string) - - // Custom grok patterns used by this classifier. - customPatterns?: null | string @go(CustomPatterns,*string) - - // The grok pattern used by this classifier. - grokPattern?: null | string @go(GrokPattern,*string) -} - -#GrokClassifierObservation: { - // An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on. - classification?: null | string @go(Classification,*string) - - // Custom grok patterns used by this classifier. - customPatterns?: null | string @go(CustomPatterns,*string) - - // The grok pattern used by this classifier. - grokPattern?: null | string @go(GrokPattern,*string) -} - -#GrokClassifierParameters: { - // An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on. - // +kubebuilder:validation:Optional - classification?: null | string @go(Classification,*string) - - // Custom grok patterns used by this classifier. - // +kubebuilder:validation:Optional - customPatterns?: null | string @go(CustomPatterns,*string) - - // The grok pattern used by this classifier. - // +kubebuilder:validation:Optional - grokPattern?: null | string @go(GrokPattern,*string) -} - -#JSONClassifierInitParameters: { - // A JsonPath string defining the JSON data for the classifier to classify. AWS Glue supports a subset of JsonPath, as described in Writing JsonPath Custom Classifiers. - jsonPath?: null | string @go(JSONPath,*string) -} - -#JSONClassifierObservation: { - // A JsonPath string defining the JSON data for the classifier to classify. AWS Glue supports a subset of JsonPath, as described in Writing JsonPath Custom Classifiers. - jsonPath?: null | string @go(JSONPath,*string) -} - -#JSONClassifierParameters: { - // A JsonPath string defining the JSON data for the classifier to classify. AWS Glue supports a subset of JsonPath, as described in Writing JsonPath Custom Classifiers. - // +kubebuilder:validation:Optional - jsonPath?: null | string @go(JSONPath,*string) -} - -#XMLClassifierInitParameters: { - // An identifier of the data format that the classifier matches. - classification?: null | string @go(Classification,*string) - - // The XML tag designating the element that contains each record in an XML document being parsed. Note that this cannot identify a self-closing element (closed by />). An empty row element that contains only attributes can be parsed as long as it ends with a closing tag (for example, is okay, but is not). - rowTag?: null | string @go(RowTag,*string) -} - -#XMLClassifierObservation: { - // An identifier of the data format that the classifier matches. - classification?: null | string @go(Classification,*string) - - // The XML tag designating the element that contains each record in an XML document being parsed. Note that this cannot identify a self-closing element (closed by />). An empty row element that contains only attributes can be parsed as long as it ends with a closing tag (for example, is okay, but is not). - rowTag?: null | string @go(RowTag,*string) -} - -#XMLClassifierParameters: { - // An identifier of the data format that the classifier matches. - // +kubebuilder:validation:Optional - classification?: null | string @go(Classification,*string) - - // The XML tag designating the element that contains each record in an XML document being parsed. Note that this cannot identify a self-closing element (closed by />). An empty row element that contains only attributes can be parsed as long as it ends with a closing tag (for example, is okay, but is not). - // +kubebuilder:validation:Optional - rowTag?: null | string @go(RowTag,*string) -} - -// ClassifierSpec defines the desired state of Classifier -#ClassifierSpec: { - v1.#ResourceSpec - forProvider: #ClassifierParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClassifierInitParameters @go(InitProvider) -} - -// ClassifierStatus defines the observed state of Classifier. -#ClassifierStatus: { - v1.#ResourceStatus - atProvider?: #ClassifierObservation @go(AtProvider) -} - -// Classifier is the Schema for the Classifiers API. Provides an Glue Classifier resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Classifier: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ClassifierSpec @go(Spec) - status?: #ClassifierStatus @go(Status) -} - -// ClassifierList contains a list of Classifiers -#ClassifierList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Classifier] @go(Items,[]Classifier) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_connection_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_connection_types_go_gen.cue deleted file mode 100644 index 8bbac8b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_connection_types_go_gen.cue +++ /dev/null @@ -1,186 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConnectionInitParameters: { - // – The type of the connection. Supported are: CUSTOM, JDBC, KAFKA, MARKETPLACE, MONGODB, and NETWORK. Defaults to JBDC. - connectionType?: null | string @go(ConnectionType,*string) - - // – Description of the connection. - description?: null | string @go(Description,*string) - - // – A list of criteria that can be used in selecting this connection. - matchCriteria?: [...null | string] @go(MatchCriteria,[]*string) - - // A map of physical connection requirements, such as VPC and SecurityGroup. Defined below. - physicalConnectionRequirements?: [...#PhysicalConnectionRequirementsInitParameters] @go(PhysicalConnectionRequirements,[]PhysicalConnectionRequirementsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ConnectionObservation: { - // The ARN of the Glue Connection. - arn?: null | string @go(Arn,*string) - - // – The ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default. - catalogId?: null | string @go(CatalogID,*string) - - // – The type of the connection. Supported are: CUSTOM, JDBC, KAFKA, MARKETPLACE, MONGODB, and NETWORK. Defaults to JBDC. - connectionType?: null | string @go(ConnectionType,*string) - - // – Description of the connection. - description?: null | string @go(Description,*string) - - // Catalog ID and name of the connection - id?: null | string @go(ID,*string) - - // – A list of criteria that can be used in selecting this connection. - matchCriteria?: [...null | string] @go(MatchCriteria,[]*string) - - // A map of physical connection requirements, such as VPC and SecurityGroup. Defined below. - physicalConnectionRequirements?: [...#PhysicalConnectionRequirementsObservation] @go(PhysicalConnectionRequirements,[]PhysicalConnectionRequirementsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ConnectionParameters: { - // – The ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default. - // +kubebuilder:validation:Required - catalogId?: null | string @go(CatalogID,*string) - - // value pairs used as parameters for this connection. - // +kubebuilder:validation:Optional - connectionPropertiesSecretRef?: null | v1.#SecretReference @go(ConnectionPropertiesSecretRef,*v1.SecretReference) - - // – The type of the connection. Supported are: CUSTOM, JDBC, KAFKA, MARKETPLACE, MONGODB, and NETWORK. Defaults to JBDC. - // +kubebuilder:validation:Optional - connectionType?: null | string @go(ConnectionType,*string) - - // – Description of the connection. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // – A list of criteria that can be used in selecting this connection. - // +kubebuilder:validation:Optional - matchCriteria?: [...null | string] @go(MatchCriteria,[]*string) - - // A map of physical connection requirements, such as VPC and SecurityGroup. Defined below. - // +kubebuilder:validation:Optional - physicalConnectionRequirements?: [...#PhysicalConnectionRequirementsParameters] @go(PhysicalConnectionRequirements,[]PhysicalConnectionRequirementsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PhysicalConnectionRequirementsInitParameters: { - // The security group ID list used by the connection. - securityGroupIdList?: [...null | string] @go(SecurityGroupIDList,[]*string) -} - -#PhysicalConnectionRequirementsObservation: { - // The availability zone of the connection. This field is redundant and implied by subnet_id, but is currently an api requirement. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The security group ID list used by the connection. - securityGroupIdList?: [...null | string] @go(SecurityGroupIDList,[]*string) - - // The subnet ID used by the connection. - subnetId?: null | string @go(SubnetID,*string) -} - -#PhysicalConnectionRequirementsParameters: { - // The availability zone of the connection. This field is redundant and implied by subnet_id, but is currently an api requirement. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("availability_zone",false) - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Reference to a Subnet in ec2 to populate availabilityZone. - // +kubebuilder:validation:Optional - availabilityZoneRef?: null | v1.#Reference @go(AvailabilityZoneRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate availabilityZone. - // +kubebuilder:validation:Optional - availabilityZoneSelector?: null | v1.#Selector @go(AvailabilityZoneSelector,*v1.Selector) - - // The security group ID list used by the connection. - // +kubebuilder:validation:Optional - securityGroupIdList?: [...null | string] @go(SecurityGroupIDList,[]*string) - - // The subnet ID used by the connection. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) -} - -// ConnectionSpec defines the desired state of Connection -#ConnectionSpec: { - v1.#ResourceSpec - forProvider: #ConnectionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConnectionInitParameters @go(InitProvider) -} - -// ConnectionStatus defines the observed state of Connection. -#ConnectionStatus: { - v1.#ResourceStatus - atProvider?: #ConnectionObservation @go(AtProvider) -} - -// Connection is the Schema for the Connections API. Provides an Glue Connection resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Connection: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ConnectionSpec @go(Spec) - status?: #ConnectionStatus @go(Status) -} - -// ConnectionList contains a list of Connections -#ConnectionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Connection] @go(Items,[]Connection) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_crawler_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_crawler_types_go_gen.cue deleted file mode 100644 index ccd45fc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_crawler_types_go_gen.cue +++ /dev/null @@ -1,657 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CatalogTargetInitParameters: { - // The name of the connection to use to connect to the JDBC target. - connectionName?: null | string @go(ConnectionName,*string) - - // The ARN of the dead-letter SQS queue. - dlqEventQueueArn?: null | string @go(DlqEventQueueArn,*string) - - // The ARN of the SQS queue to receive S3 notifications from. - eventQueueArn?: null | string @go(EventQueueArn,*string) - - // A list of catalog tables to be synchronized. - tables?: [...null | string] @go(Tables,[]*string) -} - -#CatalogTargetObservation: { - // The name of the connection to use to connect to the JDBC target. - connectionName?: null | string @go(ConnectionName,*string) - - // Glue database where results are written. - databaseName?: null | string @go(DatabaseName,*string) - - // The ARN of the dead-letter SQS queue. - dlqEventQueueArn?: null | string @go(DlqEventQueueArn,*string) - - // The ARN of the SQS queue to receive S3 notifications from. - eventQueueArn?: null | string @go(EventQueueArn,*string) - - // A list of catalog tables to be synchronized. - tables?: [...null | string] @go(Tables,[]*string) -} - -#CatalogTargetParameters: { - // The name of the connection to use to connect to the JDBC target. - // +kubebuilder:validation:Optional - connectionName?: null | string @go(ConnectionName,*string) - - // Glue database where results are written. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.CatalogDatabase - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // Reference to a CatalogDatabase in glue to populate databaseName. - // +kubebuilder:validation:Optional - databaseNameRef?: null | v1.#Reference @go(DatabaseNameRef,*v1.Reference) - - // Selector for a CatalogDatabase in glue to populate databaseName. - // +kubebuilder:validation:Optional - databaseNameSelector?: null | v1.#Selector @go(DatabaseNameSelector,*v1.Selector) - - // The ARN of the dead-letter SQS queue. - // +kubebuilder:validation:Optional - dlqEventQueueArn?: null | string @go(DlqEventQueueArn,*string) - - // The ARN of the SQS queue to receive S3 notifications from. - // +kubebuilder:validation:Optional - eventQueueArn?: null | string @go(EventQueueArn,*string) - - // A list of catalog tables to be synchronized. - // +kubebuilder:validation:Optional - tables: [...null | string] @go(Tables,[]*string) -} - -#CrawlerInitParameters: { - catalogTarget?: [...#CatalogTargetInitParameters] @go(CatalogTarget,[]CatalogTargetInitParameters) - - // List of custom classifiers. By default, all AWS classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification. - classifiers?: [...null | string] @go(Classifiers,[]*string) - - // JSON string of configuration information. For more details see Setting Crawler Configuration Options. - configuration?: null | string @go(Configuration,*string) - deltaTarget?: [...#DeltaTargetInitParameters] @go(DeltaTarget,[]DeltaTargetInitParameters) - - // Description of the crawler. - description?: null | string @go(Description,*string) - - // List of nested DynamoDB target arguments. See Dynamodb Target below. - dynamodbTarget?: [...#DynamodbTargetInitParameters] @go(DynamodbTarget,[]DynamodbTargetInitParameters) - - // List of nested JBDC target arguments. See JDBC Target below. - jdbcTarget?: [...#JdbcTargetInitParameters] @go(JdbcTarget,[]JdbcTargetInitParameters) - - // Specifies Lake Formation configuration settings for the crawler. See Lake Formation Configuration below. - lakeFormationConfiguration?: [...#LakeFormationConfigurationInitParameters] @go(LakeFormationConfiguration,[]LakeFormationConfigurationInitParameters) - - // Specifies data lineage configuration settings for the crawler. See Lineage Configuration below. - lineageConfiguration?: [...#LineageConfigurationInitParameters] @go(LineageConfiguration,[]LineageConfigurationInitParameters) - - // List nested MongoDB target arguments. See MongoDB Target below. - mongodbTarget?: [...#MongodbTargetInitParameters] @go(MongodbTarget,[]MongodbTargetInitParameters) - - // A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.. See Recrawl Policy below. - recrawlPolicy?: [...#RecrawlPolicyInitParameters] @go(RecrawlPolicy,[]RecrawlPolicyInitParameters) - - // List nested Amazon S3 target arguments. See S3 Target below. - s3Target?: [...#S3TargetInitParameters] @go(S3Target,[]S3TargetInitParameters) - - // Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *). - schedule?: null | string @go(Schedule,*string) - - // Policy for the crawler's update and deletion behavior. See Schema Change Policy below. - schemaChangePolicy?: [...#SchemaChangePolicyInitParameters] @go(SchemaChangePolicy,[]SchemaChangePolicyInitParameters) - - // The name of Security Configuration to be used by the crawler - securityConfiguration?: null | string @go(SecurityConfiguration,*string) - - // The table prefix used for catalog tables that are created. - tablePrefix?: null | string @go(TablePrefix,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CrawlerObservation: { - // The ARN of the crawler - arn?: null | string @go(Arn,*string) - catalogTarget?: [...#CatalogTargetObservation] @go(CatalogTarget,[]CatalogTargetObservation) - - // List of custom classifiers. By default, all AWS classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification. - classifiers?: [...null | string] @go(Classifiers,[]*string) - - // JSON string of configuration information. For more details see Setting Crawler Configuration Options. - configuration?: null | string @go(Configuration,*string) - - // Glue database where results are written. - databaseName?: null | string @go(DatabaseName,*string) - deltaTarget?: [...#DeltaTargetObservation] @go(DeltaTarget,[]DeltaTargetObservation) - - // Description of the crawler. - description?: null | string @go(Description,*string) - - // List of nested DynamoDB target arguments. See Dynamodb Target below. - dynamodbTarget?: [...#DynamodbTargetObservation] @go(DynamodbTarget,[]DynamodbTargetObservation) - - // Crawler name - id?: null | string @go(ID,*string) - - // List of nested JBDC target arguments. See JDBC Target below. - jdbcTarget?: [...#JdbcTargetObservation] @go(JdbcTarget,[]JdbcTargetObservation) - - // Specifies Lake Formation configuration settings for the crawler. See Lake Formation Configuration below. - lakeFormationConfiguration?: [...#LakeFormationConfigurationObservation] @go(LakeFormationConfiguration,[]LakeFormationConfigurationObservation) - - // Specifies data lineage configuration settings for the crawler. See Lineage Configuration below. - lineageConfiguration?: [...#LineageConfigurationObservation] @go(LineageConfiguration,[]LineageConfigurationObservation) - - // List nested MongoDB target arguments. See MongoDB Target below. - mongodbTarget?: [...#MongodbTargetObservation] @go(MongodbTarget,[]MongodbTargetObservation) - - // A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.. See Recrawl Policy below. - recrawlPolicy?: [...#RecrawlPolicyObservation] @go(RecrawlPolicy,[]RecrawlPolicyObservation) - - // The IAM role friendly name (including path without leading slash), or ARN of an IAM role, used by the crawler to access other resources. - role?: null | string @go(Role,*string) - - // List nested Amazon S3 target arguments. See S3 Target below. - s3Target?: [...#S3TargetObservation] @go(S3Target,[]S3TargetObservation) - - // Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *). - schedule?: null | string @go(Schedule,*string) - - // Policy for the crawler's update and deletion behavior. See Schema Change Policy below. - schemaChangePolicy?: [...#SchemaChangePolicyObservation] @go(SchemaChangePolicy,[]SchemaChangePolicyObservation) - - // The name of Security Configuration to be used by the crawler - securityConfiguration?: null | string @go(SecurityConfiguration,*string) - - // The table prefix used for catalog tables that are created. - tablePrefix?: null | string @go(TablePrefix,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#CrawlerParameters: { - // +kubebuilder:validation:Optional - catalogTarget?: [...#CatalogTargetParameters] @go(CatalogTarget,[]CatalogTargetParameters) - - // List of custom classifiers. By default, all AWS classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification. - // +kubebuilder:validation:Optional - classifiers?: [...null | string] @go(Classifiers,[]*string) - - // JSON string of configuration information. For more details see Setting Crawler Configuration Options. - // +kubebuilder:validation:Optional - configuration?: null | string @go(Configuration,*string) - - // Glue database where results are written. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.CatalogDatabase - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // Reference to a CatalogDatabase in glue to populate databaseName. - // +kubebuilder:validation:Optional - databaseNameRef?: null | v1.#Reference @go(DatabaseNameRef,*v1.Reference) - - // Selector for a CatalogDatabase in glue to populate databaseName. - // +kubebuilder:validation:Optional - databaseNameSelector?: null | v1.#Selector @go(DatabaseNameSelector,*v1.Selector) - - // +kubebuilder:validation:Optional - deltaTarget?: [...#DeltaTargetParameters] @go(DeltaTarget,[]DeltaTargetParameters) - - // Description of the crawler. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // List of nested DynamoDB target arguments. See Dynamodb Target below. - // +kubebuilder:validation:Optional - dynamodbTarget?: [...#DynamodbTargetParameters] @go(DynamodbTarget,[]DynamodbTargetParameters) - - // List of nested JBDC target arguments. See JDBC Target below. - // +kubebuilder:validation:Optional - jdbcTarget?: [...#JdbcTargetParameters] @go(JdbcTarget,[]JdbcTargetParameters) - - // Specifies Lake Formation configuration settings for the crawler. See Lake Formation Configuration below. - // +kubebuilder:validation:Optional - lakeFormationConfiguration?: [...#LakeFormationConfigurationParameters] @go(LakeFormationConfiguration,[]LakeFormationConfigurationParameters) - - // Specifies data lineage configuration settings for the crawler. See Lineage Configuration below. - // +kubebuilder:validation:Optional - lineageConfiguration?: [...#LineageConfigurationParameters] @go(LineageConfiguration,[]LineageConfigurationParameters) - - // List nested MongoDB target arguments. See MongoDB Target below. - // +kubebuilder:validation:Optional - mongodbTarget?: [...#MongodbTargetParameters] @go(MongodbTarget,[]MongodbTargetParameters) - - // A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.. See Recrawl Policy below. - // +kubebuilder:validation:Optional - recrawlPolicy?: [...#RecrawlPolicyParameters] @go(RecrawlPolicy,[]RecrawlPolicyParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The IAM role friendly name (including path without leading slash), or ARN of an IAM role, used by the crawler to access other resources. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - role?: null | string @go(Role,*string) - - // Reference to a Role in iam to populate role. - // +kubebuilder:validation:Optional - roleRef?: null | v1.#Reference @go(RoleRef,*v1.Reference) - - // Selector for a Role in iam to populate role. - // +kubebuilder:validation:Optional - roleSelector?: null | v1.#Selector @go(RoleSelector,*v1.Selector) - - // List nested Amazon S3 target arguments. See S3 Target below. - // +kubebuilder:validation:Optional - s3Target?: [...#S3TargetParameters] @go(S3Target,[]S3TargetParameters) - - // Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *). - // +kubebuilder:validation:Optional - schedule?: null | string @go(Schedule,*string) - - // Policy for the crawler's update and deletion behavior. See Schema Change Policy below. - // +kubebuilder:validation:Optional - schemaChangePolicy?: [...#SchemaChangePolicyParameters] @go(SchemaChangePolicy,[]SchemaChangePolicyParameters) - - // The name of Security Configuration to be used by the crawler - // +kubebuilder:validation:Optional - securityConfiguration?: null | string @go(SecurityConfiguration,*string) - - // The table prefix used for catalog tables that are created. - // +kubebuilder:validation:Optional - tablePrefix?: null | string @go(TablePrefix,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DeltaTargetInitParameters: { - // The name of the connection to use to connect to the JDBC target. - connectionName?: null | string @go(ConnectionName,*string) - - // Specifies whether the crawler will create native tables, to allow integration with query engines that support querying of the Delta transaction log directly. - createNativeDeltaTable?: null | bool @go(CreateNativeDeltaTable,*bool) - - // A list of the Amazon S3 paths to the Delta tables. - deltaTables?: [...null | string] @go(DeltaTables,[]*string) - - // Specifies whether to write the manifest files to the Delta table path. - writeManifest?: null | bool @go(WriteManifest,*bool) -} - -#DeltaTargetObservation: { - // The name of the connection to use to connect to the JDBC target. - connectionName?: null | string @go(ConnectionName,*string) - - // Specifies whether the crawler will create native tables, to allow integration with query engines that support querying of the Delta transaction log directly. - createNativeDeltaTable?: null | bool @go(CreateNativeDeltaTable,*bool) - - // A list of the Amazon S3 paths to the Delta tables. - deltaTables?: [...null | string] @go(DeltaTables,[]*string) - - // Specifies whether to write the manifest files to the Delta table path. - writeManifest?: null | bool @go(WriteManifest,*bool) -} - -#DeltaTargetParameters: { - // The name of the connection to use to connect to the JDBC target. - // +kubebuilder:validation:Optional - connectionName?: null | string @go(ConnectionName,*string) - - // Specifies whether the crawler will create native tables, to allow integration with query engines that support querying of the Delta transaction log directly. - // +kubebuilder:validation:Optional - createNativeDeltaTable?: null | bool @go(CreateNativeDeltaTable,*bool) - - // A list of the Amazon S3 paths to the Delta tables. - // +kubebuilder:validation:Optional - deltaTables: [...null | string] @go(DeltaTables,[]*string) - - // Specifies whether to write the manifest files to the Delta table path. - // +kubebuilder:validation:Optional - writeManifest?: null | bool @go(WriteManifest,*bool) -} - -#DynamodbTargetInitParameters: { - // The name of the DynamoDB table to crawl. - path?: null | string @go(Path,*string) - - // Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table. defaults to true. - scanAll?: null | bool @go(ScanAll,*bool) - - // The percentage of the configured read capacity units to use by the AWS Glue crawler. The valid values are null or a value between 0.1 to 1.5. - scanRate?: null | float64 @go(ScanRate,*float64) -} - -#DynamodbTargetObservation: { - // The name of the DynamoDB table to crawl. - path?: null | string @go(Path,*string) - - // Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table. defaults to true. - scanAll?: null | bool @go(ScanAll,*bool) - - // The percentage of the configured read capacity units to use by the AWS Glue crawler. The valid values are null or a value between 0.1 to 1.5. - scanRate?: null | float64 @go(ScanRate,*float64) -} - -#DynamodbTargetParameters: { - // The name of the DynamoDB table to crawl. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table. defaults to true. - // +kubebuilder:validation:Optional - scanAll?: null | bool @go(ScanAll,*bool) - - // The percentage of the configured read capacity units to use by the AWS Glue crawler. The valid values are null or a value between 0.1 to 1.5. - // +kubebuilder:validation:Optional - scanRate?: null | float64 @go(ScanRate,*float64) -} - -#JdbcTargetInitParameters: { - // Specify a value of RAWTYPES or COMMENTS to enable additional metadata intable responses. RAWTYPES provides the native-level datatype. COMMENTS provides comments associated with a column or table in the database. - enableAdditionalMetadata?: [...null | string] @go(EnableAdditionalMetadata,[]*string) - - // A list of glob patterns used to exclude from the crawl. - exclusions?: [...null | string] @go(Exclusions,[]*string) - - // The name of the DynamoDB table to crawl. - path?: null | string @go(Path,*string) -} - -#JdbcTargetObservation: { - // The name of the connection to use to connect to the JDBC target. - connectionName?: null | string @go(ConnectionName,*string) - - // Specify a value of RAWTYPES or COMMENTS to enable additional metadata intable responses. RAWTYPES provides the native-level datatype. COMMENTS provides comments associated with a column or table in the database. - enableAdditionalMetadata?: [...null | string] @go(EnableAdditionalMetadata,[]*string) - - // A list of glob patterns used to exclude from the crawl. - exclusions?: [...null | string] @go(Exclusions,[]*string) - - // The name of the DynamoDB table to crawl. - path?: null | string @go(Path,*string) -} - -#JdbcTargetParameters: { - // The name of the connection to use to connect to the JDBC target. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.Connection - // +kubebuilder:validation:Optional - connectionName?: null | string @go(ConnectionName,*string) - - // Reference to a Connection in glue to populate connectionName. - // +kubebuilder:validation:Optional - connectionNameRef?: null | v1.#Reference @go(ConnectionNameRef,*v1.Reference) - - // Selector for a Connection in glue to populate connectionName. - // +kubebuilder:validation:Optional - connectionNameSelector?: null | v1.#Selector @go(ConnectionNameSelector,*v1.Selector) - - // Specify a value of RAWTYPES or COMMENTS to enable additional metadata intable responses. RAWTYPES provides the native-level datatype. COMMENTS provides comments associated with a column or table in the database. - // +kubebuilder:validation:Optional - enableAdditionalMetadata?: [...null | string] @go(EnableAdditionalMetadata,[]*string) - - // A list of glob patterns used to exclude from the crawl. - // +kubebuilder:validation:Optional - exclusions?: [...null | string] @go(Exclusions,[]*string) - - // The name of the DynamoDB table to crawl. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) -} - -#LakeFormationConfigurationInitParameters: { - // Required for cross account crawls. For same account crawls as the target data, this can omitted. - accountId?: null | string @go(AccountID,*string) - - // Specifies whether to use Lake Formation credentials for the crawler instead of the IAM role credentials. - useLakeFormationCredentials?: null | bool @go(UseLakeFormationCredentials,*bool) -} - -#LakeFormationConfigurationObservation: { - // Required for cross account crawls. For same account crawls as the target data, this can omitted. - accountId?: null | string @go(AccountID,*string) - - // Specifies whether to use Lake Formation credentials for the crawler instead of the IAM role credentials. - useLakeFormationCredentials?: null | bool @go(UseLakeFormationCredentials,*bool) -} - -#LakeFormationConfigurationParameters: { - // Required for cross account crawls. For same account crawls as the target data, this can omitted. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // Specifies whether to use Lake Formation credentials for the crawler instead of the IAM role credentials. - // +kubebuilder:validation:Optional - useLakeFormationCredentials?: null | bool @go(UseLakeFormationCredentials,*bool) -} - -#LineageConfigurationInitParameters: { - // Specifies whether data lineage is enabled for the crawler. Valid values are: ENABLE and DISABLE. Default value is Disable. - crawlerLineageSettings?: null | string @go(CrawlerLineageSettings,*string) -} - -#LineageConfigurationObservation: { - // Specifies whether data lineage is enabled for the crawler. Valid values are: ENABLE and DISABLE. Default value is Disable. - crawlerLineageSettings?: null | string @go(CrawlerLineageSettings,*string) -} - -#LineageConfigurationParameters: { - // Specifies whether data lineage is enabled for the crawler. Valid values are: ENABLE and DISABLE. Default value is Disable. - // +kubebuilder:validation:Optional - crawlerLineageSettings?: null | string @go(CrawlerLineageSettings,*string) -} - -#MongodbTargetInitParameters: { - // The name of the DynamoDB table to crawl. - path?: null | string @go(Path,*string) - - // Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table. defaults to true. - scanAll?: null | bool @go(ScanAll,*bool) -} - -#MongodbTargetObservation: { - // The name of the connection to use to connect to the JDBC target. - connectionName?: null | string @go(ConnectionName,*string) - - // The name of the DynamoDB table to crawl. - path?: null | string @go(Path,*string) - - // Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table. defaults to true. - scanAll?: null | bool @go(ScanAll,*bool) -} - -#MongodbTargetParameters: { - // The name of the connection to use to connect to the JDBC target. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.Connection - // +kubebuilder:validation:Optional - connectionName?: null | string @go(ConnectionName,*string) - - // Reference to a Connection in glue to populate connectionName. - // +kubebuilder:validation:Optional - connectionNameRef?: null | v1.#Reference @go(ConnectionNameRef,*v1.Reference) - - // Selector for a Connection in glue to populate connectionName. - // +kubebuilder:validation:Optional - connectionNameSelector?: null | v1.#Selector @go(ConnectionNameSelector,*v1.Selector) - - // The name of the DynamoDB table to crawl. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table. defaults to true. - // +kubebuilder:validation:Optional - scanAll?: null | bool @go(ScanAll,*bool) -} - -#RecrawlPolicyInitParameters: { - // Specifies whether to crawl the entire dataset again, crawl only folders that were added since the last crawler run, or crawl what S3 notifies the crawler of via SQS. Valid Values are: CRAWL_EVENT_MODE, CRAWL_EVERYTHING and CRAWL_NEW_FOLDERS_ONLY. Default value is CRAWL_EVERYTHING. - recrawlBehavior?: null | string @go(RecrawlBehavior,*string) -} - -#RecrawlPolicyObservation: { - // Specifies whether to crawl the entire dataset again, crawl only folders that were added since the last crawler run, or crawl what S3 notifies the crawler of via SQS. Valid Values are: CRAWL_EVENT_MODE, CRAWL_EVERYTHING and CRAWL_NEW_FOLDERS_ONLY. Default value is CRAWL_EVERYTHING. - recrawlBehavior?: null | string @go(RecrawlBehavior,*string) -} - -#RecrawlPolicyParameters: { - // Specifies whether to crawl the entire dataset again, crawl only folders that were added since the last crawler run, or crawl what S3 notifies the crawler of via SQS. Valid Values are: CRAWL_EVENT_MODE, CRAWL_EVERYTHING and CRAWL_NEW_FOLDERS_ONLY. Default value is CRAWL_EVERYTHING. - // +kubebuilder:validation:Optional - recrawlBehavior?: null | string @go(RecrawlBehavior,*string) -} - -#S3TargetInitParameters: { - // The name of the connection to use to connect to the JDBC target. - connectionName?: null | string @go(ConnectionName,*string) - - // The ARN of the dead-letter SQS queue. - dlqEventQueueArn?: null | string @go(DlqEventQueueArn,*string) - - // The ARN of the SQS queue to receive S3 notifications from. - eventQueueArn?: null | string @go(EventQueueArn,*string) - - // A list of glob patterns used to exclude from the crawl. - exclusions?: [...null | string] @go(Exclusions,[]*string) - - // The name of the DynamoDB table to crawl. - path?: null | string @go(Path,*string) - - // Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249. - sampleSize?: null | float64 @go(SampleSize,*float64) -} - -#S3TargetObservation: { - // The name of the connection to use to connect to the JDBC target. - connectionName?: null | string @go(ConnectionName,*string) - - // The ARN of the dead-letter SQS queue. - dlqEventQueueArn?: null | string @go(DlqEventQueueArn,*string) - - // The ARN of the SQS queue to receive S3 notifications from. - eventQueueArn?: null | string @go(EventQueueArn,*string) - - // A list of glob patterns used to exclude from the crawl. - exclusions?: [...null | string] @go(Exclusions,[]*string) - - // The name of the DynamoDB table to crawl. - path?: null | string @go(Path,*string) - - // Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249. - sampleSize?: null | float64 @go(SampleSize,*float64) -} - -#S3TargetParameters: { - // The name of the connection to use to connect to the JDBC target. - // +kubebuilder:validation:Optional - connectionName?: null | string @go(ConnectionName,*string) - - // The ARN of the dead-letter SQS queue. - // +kubebuilder:validation:Optional - dlqEventQueueArn?: null | string @go(DlqEventQueueArn,*string) - - // The ARN of the SQS queue to receive S3 notifications from. - // +kubebuilder:validation:Optional - eventQueueArn?: null | string @go(EventQueueArn,*string) - - // A list of glob patterns used to exclude from the crawl. - // +kubebuilder:validation:Optional - exclusions?: [...null | string] @go(Exclusions,[]*string) - - // The name of the DynamoDB table to crawl. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249. - // +kubebuilder:validation:Optional - sampleSize?: null | float64 @go(SampleSize,*float64) -} - -#SchemaChangePolicyInitParameters: { - // The deletion behavior when the crawler finds a deleted object. Valid values: LOG, DELETE_FROM_DATABASE, or DEPRECATE_IN_DATABASE. Defaults to DEPRECATE_IN_DATABASE. - deleteBehavior?: null | string @go(DeleteBehavior,*string) - - // The update behavior when the crawler finds a changed schema. Valid values: LOG or UPDATE_IN_DATABASE. Defaults to UPDATE_IN_DATABASE. - updateBehavior?: null | string @go(UpdateBehavior,*string) -} - -#SchemaChangePolicyObservation: { - // The deletion behavior when the crawler finds a deleted object. Valid values: LOG, DELETE_FROM_DATABASE, or DEPRECATE_IN_DATABASE. Defaults to DEPRECATE_IN_DATABASE. - deleteBehavior?: null | string @go(DeleteBehavior,*string) - - // The update behavior when the crawler finds a changed schema. Valid values: LOG or UPDATE_IN_DATABASE. Defaults to UPDATE_IN_DATABASE. - updateBehavior?: null | string @go(UpdateBehavior,*string) -} - -#SchemaChangePolicyParameters: { - // The deletion behavior when the crawler finds a deleted object. Valid values: LOG, DELETE_FROM_DATABASE, or DEPRECATE_IN_DATABASE. Defaults to DEPRECATE_IN_DATABASE. - // +kubebuilder:validation:Optional - deleteBehavior?: null | string @go(DeleteBehavior,*string) - - // The update behavior when the crawler finds a changed schema. Valid values: LOG or UPDATE_IN_DATABASE. Defaults to UPDATE_IN_DATABASE. - // +kubebuilder:validation:Optional - updateBehavior?: null | string @go(UpdateBehavior,*string) -} - -// CrawlerSpec defines the desired state of Crawler -#CrawlerSpec: { - v1.#ResourceSpec - forProvider: #CrawlerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CrawlerInitParameters @go(InitProvider) -} - -// CrawlerStatus defines the observed state of Crawler. -#CrawlerStatus: { - v1.#ResourceStatus - atProvider?: #CrawlerObservation @go(AtProvider) -} - -// Crawler is the Schema for the Crawlers API. Manages a Glue Crawler -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Crawler: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CrawlerSpec @go(Spec) - status?: #CrawlerStatus @go(Status) -} - -// CrawlerList contains a list of Crawlers -#CrawlerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Crawler] @go(Items,[]Crawler) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_datacatalogencryptionsettings_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_datacatalogencryptionsettings_types_go_gen.cue deleted file mode 100644 index b777536..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_datacatalogencryptionsettings_types_go_gen.cue +++ /dev/null @@ -1,183 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConnectionPasswordEncryptionInitParameters: { - // When set to true, passwords remain encrypted in the responses of GetConnection and GetConnections. This encryption takes effect independently of the catalog encryption. - returnConnectionPasswordEncrypted?: null | bool @go(ReturnConnectionPasswordEncrypted,*bool) -} - -#ConnectionPasswordEncryptionObservation: { - // A KMS key ARN that is used to encrypt the connection password. If connection password protection is enabled, the caller of CreateConnection and UpdateConnection needs at least kms:Encrypt permission on the specified AWS KMS key, to encrypt passwords before storing them in the Data Catalog. - awsKmsKeyId?: null | string @go(AwsKMSKeyID,*string) - - // When set to true, passwords remain encrypted in the responses of GetConnection and GetConnections. This encryption takes effect independently of the catalog encryption. - returnConnectionPasswordEncrypted?: null | bool @go(ReturnConnectionPasswordEncrypted,*bool) -} - -#ConnectionPasswordEncryptionParameters: { - // A KMS key ARN that is used to encrypt the connection password. If connection password protection is enabled, the caller of CreateConnection and UpdateConnection needs at least kms:Encrypt permission on the specified AWS KMS key, to encrypt passwords before storing them in the Data Catalog. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - awsKmsKeyId?: null | string @go(AwsKMSKeyID,*string) - - // Reference to a Key in kms to populate awsKmsKeyId. - // +kubebuilder:validation:Optional - awsKmsKeyIdRef?: null | v1.#Reference @go(AwsKMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate awsKmsKeyId. - // +kubebuilder:validation:Optional - awsKmsKeyIdSelector?: null | v1.#Selector @go(AwsKMSKeyIDSelector,*v1.Selector) - - // When set to true, passwords remain encrypted in the responses of GetConnection and GetConnections. This encryption takes effect independently of the catalog encryption. - // +kubebuilder:validation:Optional - returnConnectionPasswordEncrypted?: null | bool @go(ReturnConnectionPasswordEncrypted,*bool) -} - -#DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsInitParameters: { - // When connection password protection is enabled, the Data Catalog uses a customer-provided key to encrypt the password as part of CreateConnection or UpdateConnection and store it in the ENCRYPTED_PASSWORD field in the connection properties. You can enable catalog encryption or only password encryption. see Connection Password Encryption. - connectionPasswordEncryption?: [...#ConnectionPasswordEncryptionInitParameters] @go(ConnectionPasswordEncryption,[]ConnectionPasswordEncryptionInitParameters) - - // Specifies the encryption-at-rest configuration for the Data Catalog. see Encryption At Rest. - encryptionAtRest?: [...#EncryptionAtRestInitParameters] @go(EncryptionAtRest,[]EncryptionAtRestInitParameters) -} - -#DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsObservation: { - // When connection password protection is enabled, the Data Catalog uses a customer-provided key to encrypt the password as part of CreateConnection or UpdateConnection and store it in the ENCRYPTED_PASSWORD field in the connection properties. You can enable catalog encryption or only password encryption. see Connection Password Encryption. - connectionPasswordEncryption?: [...#ConnectionPasswordEncryptionObservation] @go(ConnectionPasswordEncryption,[]ConnectionPasswordEncryptionObservation) - - // Specifies the encryption-at-rest configuration for the Data Catalog. see Encryption At Rest. - encryptionAtRest?: [...#EncryptionAtRestObservation] @go(EncryptionAtRest,[]EncryptionAtRestObservation) -} - -#DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsParameters: { - // When connection password protection is enabled, the Data Catalog uses a customer-provided key to encrypt the password as part of CreateConnection or UpdateConnection and store it in the ENCRYPTED_PASSWORD field in the connection properties. You can enable catalog encryption or only password encryption. see Connection Password Encryption. - // +kubebuilder:validation:Optional - connectionPasswordEncryption: [...#ConnectionPasswordEncryptionParameters] @go(ConnectionPasswordEncryption,[]ConnectionPasswordEncryptionParameters) - - // Specifies the encryption-at-rest configuration for the Data Catalog. see Encryption At Rest. - // +kubebuilder:validation:Optional - encryptionAtRest: [...#EncryptionAtRestParameters] @go(EncryptionAtRest,[]EncryptionAtRestParameters) -} - -#DataCatalogEncryptionSettingsInitParameters: { - // – The ID of the Data Catalog to set the security configuration for. If none is provided, the AWS account ID is used by default. - catalogId?: null | string @go(CatalogID,*string) - - // – The security configuration to set. see Data Catalog Encryption Settings. - dataCatalogEncryptionSettings?: [...#DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsInitParameters] @go(DataCatalogEncryptionSettings,[]DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsInitParameters) -} - -#DataCatalogEncryptionSettingsObservation: { - // – The ID of the Data Catalog to set the security configuration for. If none is provided, the AWS account ID is used by default. - catalogId?: null | string @go(CatalogID,*string) - - // – The security configuration to set. see Data Catalog Encryption Settings. - dataCatalogEncryptionSettings?: [...#DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsObservation] @go(DataCatalogEncryptionSettings,[]DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsObservation) - - // The ID of the Data Catalog to set the security configuration for. - id?: null | string @go(ID,*string) -} - -#DataCatalogEncryptionSettingsParameters: { - // – The ID of the Data Catalog to set the security configuration for. If none is provided, the AWS account ID is used by default. - // +kubebuilder:validation:Optional - catalogId?: null | string @go(CatalogID,*string) - - // – The security configuration to set. see Data Catalog Encryption Settings. - // +kubebuilder:validation:Optional - dataCatalogEncryptionSettings?: [...#DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsParameters] @go(DataCatalogEncryptionSettings,[]DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#EncryptionAtRestInitParameters: { - // The encryption-at-rest mode for encrypting Data Catalog data. Valid values are DISABLED and SSE-KMS. - catalogEncryptionMode?: null | string @go(CatalogEncryptionMode,*string) -} - -#EncryptionAtRestObservation: { - // The encryption-at-rest mode for encrypting Data Catalog data. Valid values are DISABLED and SSE-KMS. - catalogEncryptionMode?: null | string @go(CatalogEncryptionMode,*string) - - // The ARN of the AWS KMS key to use for encryption at rest. - sseAwsKmsKeyId?: null | string @go(SseAwsKMSKeyID,*string) -} - -#EncryptionAtRestParameters: { - // The encryption-at-rest mode for encrypting Data Catalog data. Valid values are DISABLED and SSE-KMS. - // +kubebuilder:validation:Optional - catalogEncryptionMode?: null | string @go(CatalogEncryptionMode,*string) - - // The ARN of the AWS KMS key to use for encryption at rest. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - sseAwsKmsKeyId?: null | string @go(SseAwsKMSKeyID,*string) - - // Reference to a Key in kms to populate sseAwsKmsKeyId. - // +kubebuilder:validation:Optional - sseAwsKmsKeyIdRef?: null | v1.#Reference @go(SseAwsKMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate sseAwsKmsKeyId. - // +kubebuilder:validation:Optional - sseAwsKmsKeyIdSelector?: null | v1.#Selector @go(SseAwsKMSKeyIDSelector,*v1.Selector) -} - -// DataCatalogEncryptionSettingsSpec defines the desired state of DataCatalogEncryptionSettings -#DataCatalogEncryptionSettingsSpec: { - v1.#ResourceSpec - forProvider: #DataCatalogEncryptionSettingsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DataCatalogEncryptionSettingsInitParameters @go(InitProvider) -} - -// DataCatalogEncryptionSettingsStatus defines the observed state of DataCatalogEncryptionSettings. -#DataCatalogEncryptionSettingsStatus: { - v1.#ResourceStatus - atProvider?: #DataCatalogEncryptionSettingsObservation @go(AtProvider) -} - -// DataCatalogEncryptionSettings is the Schema for the DataCatalogEncryptionSettingss API. Provides a Glue Data Catalog Encryption Settings resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DataCatalogEncryptionSettings: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dataCatalogEncryptionSettings) || (has(self.initProvider) && has(self.initProvider.dataCatalogEncryptionSettings))",message="spec.forProvider.dataCatalogEncryptionSettings is a required parameter" - spec: #DataCatalogEncryptionSettingsSpec @go(Spec) - status?: #DataCatalogEncryptionSettingsStatus @go(Status) -} - -// DataCatalogEncryptionSettingsList contains a list of DataCatalogEncryptionSettingss -#DataCatalogEncryptionSettingsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DataCatalogEncryptionSettings] @go(Items,[]DataCatalogEncryptionSettings) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 8fdd28d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=glue.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "glue.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_job_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_job_types_go_gen.cue deleted file mode 100644 index 57e1d2c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_job_types_go_gen.cue +++ /dev/null @@ -1,322 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CommandInitParameters: { - // – The name you assign to this job. It must be unique in your account. - name?: null | string @go(Name,*string) - - // The Python version being used to execute a Python shell job. Allowed values are 2, 3 or 3.9. Version 3 refers to Python 3.6. - pythonVersion?: null | string @go(PythonVersion,*string) - - // Specifies the S3 path to a script that executes a job. - scriptLocation?: null | string @go(ScriptLocation,*string) -} - -#CommandObservation: { - // – The name you assign to this job. It must be unique in your account. - name?: null | string @go(Name,*string) - - // The Python version being used to execute a Python shell job. Allowed values are 2, 3 or 3.9. Version 3 refers to Python 3.6. - pythonVersion?: null | string @go(PythonVersion,*string) - - // Specifies the S3 path to a script that executes a job. - scriptLocation?: null | string @go(ScriptLocation,*string) -} - -#CommandParameters: { - // – The name you assign to this job. It must be unique in your account. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The Python version being used to execute a Python shell job. Allowed values are 2, 3 or 3.9. Version 3 refers to Python 3.6. - // +kubebuilder:validation:Optional - pythonVersion?: null | string @go(PythonVersion,*string) - - // Specifies the S3 path to a script that executes a job. - // +kubebuilder:validation:Optional - scriptLocation?: null | string @go(ScriptLocation,*string) -} - -#ExecutionPropertyInitParameters: { - // The maximum number of concurrent runs allowed for a job. The default is 1. - maxConcurrentRuns?: null | float64 @go(MaxConcurrentRuns,*float64) -} - -#ExecutionPropertyObservation: { - // The maximum number of concurrent runs allowed for a job. The default is 1. - maxConcurrentRuns?: null | float64 @go(MaxConcurrentRuns,*float64) -} - -#ExecutionPropertyParameters: { - // The maximum number of concurrent runs allowed for a job. The default is 1. - // +kubebuilder:validation:Optional - maxConcurrentRuns?: null | float64 @go(MaxConcurrentRuns,*float64) -} - -#JobInitParameters: { - // – The command of the job. Defined below. - command?: [...#CommandInitParameters] @go(Command,[]CommandInitParameters) - - // – The list of connections used for this job. - connections?: [...null | string] @go(Connections,[]*string) - - // execution script consumes, as well as arguments that AWS Glue itself consumes. For information about how to specify and consume your own Job arguments, see the Calling AWS Glue APIs in Python topic in the developer guide. For information about the key-value pairs that AWS Glue consumes to set up your job, see the Special Parameters Used by AWS Glue topic in the developer guide. - defaultArguments?: {[string]: null | string} @go(DefaultArguments,map[string]*string) - - // – Description of the job. - description?: null | string @go(Description,*string) - - // Indicates whether the job is run with a standard or flexible execution class. The standard execution class is ideal for time-sensitive workloads that require fast job startup and dedicated resources. Valid value: FLEX, STANDARD. - executionClass?: null | string @go(ExecutionClass,*string) - - // – Execution property of the job. Defined below. - executionProperty?: [...#ExecutionPropertyInitParameters] @go(ExecutionProperty,[]ExecutionPropertyInitParameters) - - // The version of glue to use, for example "1.0". For information about available versions, see the AWS Glue Release Notes. - glueVersion?: null | string @go(GlueVersion,*string) - - // – The maximum number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. Required when pythonshell is set, accept either 0.0625 or 1.0. Use number_of_workers and worker_type arguments instead with glue_version 2.0 and above. - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // – The maximum number of times to retry this job if it fails. - maxRetries?: null | float64 @go(MaxRetries,*float64) - - // overridable arguments for this job, specified as name-value pairs. - nonOverridableArguments?: {[string]: null | string} @go(NonOverridableArguments,map[string]*string) - - // Notification property of the job. Defined below. - notificationProperty?: [...#NotificationPropertyInitParameters] @go(NotificationProperty,[]NotificationPropertyInitParameters) - - // The number of workers of a defined workerType that are allocated when a job runs. - numberOfWorkers?: null | float64 @go(NumberOfWorkers,*float64) - - // The name of the Security Configuration to be associated with the job. - securityConfiguration?: null | string @go(SecurityConfiguration,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // – The job timeout in minutes. The default is 2880 minutes (48 hours) for glueetl and pythonshell jobs, and null (unlimited) for gluestreaming jobs. - timeout?: null | float64 @go(Timeout,*float64) - - // The type of predefined worker that is allocated when a job runs. Accepts a value of Standard, G.1X, or G.2X. - workerType?: null | string @go(WorkerType,*string) -} - -#JobObservation: { - // Amazon Resource Name (ARN) of Glue Job - arn?: null | string @go(Arn,*string) - - // – The command of the job. Defined below. - command?: [...#CommandObservation] @go(Command,[]CommandObservation) - - // – The list of connections used for this job. - connections?: [...null | string] @go(Connections,[]*string) - - // execution script consumes, as well as arguments that AWS Glue itself consumes. For information about how to specify and consume your own Job arguments, see the Calling AWS Glue APIs in Python topic in the developer guide. For information about the key-value pairs that AWS Glue consumes to set up your job, see the Special Parameters Used by AWS Glue topic in the developer guide. - defaultArguments?: {[string]: null | string} @go(DefaultArguments,map[string]*string) - - // – Description of the job. - description?: null | string @go(Description,*string) - - // Indicates whether the job is run with a standard or flexible execution class. The standard execution class is ideal for time-sensitive workloads that require fast job startup and dedicated resources. Valid value: FLEX, STANDARD. - executionClass?: null | string @go(ExecutionClass,*string) - - // – Execution property of the job. Defined below. - executionProperty?: [...#ExecutionPropertyObservation] @go(ExecutionProperty,[]ExecutionPropertyObservation) - - // The version of glue to use, for example "1.0". For information about available versions, see the AWS Glue Release Notes. - glueVersion?: null | string @go(GlueVersion,*string) - - // Job name - id?: null | string @go(ID,*string) - - // – The maximum number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. Required when pythonshell is set, accept either 0.0625 or 1.0. Use number_of_workers and worker_type arguments instead with glue_version 2.0 and above. - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // – The maximum number of times to retry this job if it fails. - maxRetries?: null | float64 @go(MaxRetries,*float64) - - // overridable arguments for this job, specified as name-value pairs. - nonOverridableArguments?: {[string]: null | string} @go(NonOverridableArguments,map[string]*string) - - // Notification property of the job. Defined below. - notificationProperty?: [...#NotificationPropertyObservation] @go(NotificationProperty,[]NotificationPropertyObservation) - - // The number of workers of a defined workerType that are allocated when a job runs. - numberOfWorkers?: null | float64 @go(NumberOfWorkers,*float64) - - // – The ARN of the IAM role associated with this job. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Security Configuration to be associated with the job. - securityConfiguration?: null | string @go(SecurityConfiguration,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // – The job timeout in minutes. The default is 2880 minutes (48 hours) for glueetl and pythonshell jobs, and null (unlimited) for gluestreaming jobs. - timeout?: null | float64 @go(Timeout,*float64) - - // The type of predefined worker that is allocated when a job runs. Accepts a value of Standard, G.1X, or G.2X. - workerType?: null | string @go(WorkerType,*string) -} - -#JobParameters: { - // – The command of the job. Defined below. - // +kubebuilder:validation:Optional - command?: [...#CommandParameters] @go(Command,[]CommandParameters) - - // – The list of connections used for this job. - // +kubebuilder:validation:Optional - connections?: [...null | string] @go(Connections,[]*string) - - // execution script consumes, as well as arguments that AWS Glue itself consumes. For information about how to specify and consume your own Job arguments, see the Calling AWS Glue APIs in Python topic in the developer guide. For information about the key-value pairs that AWS Glue consumes to set up your job, see the Special Parameters Used by AWS Glue topic in the developer guide. - // +kubebuilder:validation:Optional - defaultArguments?: {[string]: null | string} @go(DefaultArguments,map[string]*string) - - // – Description of the job. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Indicates whether the job is run with a standard or flexible execution class. The standard execution class is ideal for time-sensitive workloads that require fast job startup and dedicated resources. Valid value: FLEX, STANDARD. - // +kubebuilder:validation:Optional - executionClass?: null | string @go(ExecutionClass,*string) - - // – Execution property of the job. Defined below. - // +kubebuilder:validation:Optional - executionProperty?: [...#ExecutionPropertyParameters] @go(ExecutionProperty,[]ExecutionPropertyParameters) - - // The version of glue to use, for example "1.0". For information about available versions, see the AWS Glue Release Notes. - // +kubebuilder:validation:Optional - glueVersion?: null | string @go(GlueVersion,*string) - - // – The maximum number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. Required when pythonshell is set, accept either 0.0625 or 1.0. Use number_of_workers and worker_type arguments instead with glue_version 2.0 and above. - // +kubebuilder:validation:Optional - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // – The maximum number of times to retry this job if it fails. - // +kubebuilder:validation:Optional - maxRetries?: null | float64 @go(MaxRetries,*float64) - - // overridable arguments for this job, specified as name-value pairs. - // +kubebuilder:validation:Optional - nonOverridableArguments?: {[string]: null | string} @go(NonOverridableArguments,map[string]*string) - - // Notification property of the job. Defined below. - // +kubebuilder:validation:Optional - notificationProperty?: [...#NotificationPropertyParameters] @go(NotificationProperty,[]NotificationPropertyParameters) - - // The number of workers of a defined workerType that are allocated when a job runs. - // +kubebuilder:validation:Optional - numberOfWorkers?: null | float64 @go(NumberOfWorkers,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // – The ARN of the IAM role associated with this job. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The name of the Security Configuration to be associated with the job. - // +kubebuilder:validation:Optional - securityConfiguration?: null | string @go(SecurityConfiguration,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // – The job timeout in minutes. The default is 2880 minutes (48 hours) for glueetl and pythonshell jobs, and null (unlimited) for gluestreaming jobs. - // +kubebuilder:validation:Optional - timeout?: null | float64 @go(Timeout,*float64) - - // The type of predefined worker that is allocated when a job runs. Accepts a value of Standard, G.1X, or G.2X. - // +kubebuilder:validation:Optional - workerType?: null | string @go(WorkerType,*string) -} - -#NotificationPropertyInitParameters: { - // After a job run starts, the number of minutes to wait before sending a job run delay notification. - notifyDelayAfter?: null | float64 @go(NotifyDelayAfter,*float64) -} - -#NotificationPropertyObservation: { - // After a job run starts, the number of minutes to wait before sending a job run delay notification. - notifyDelayAfter?: null | float64 @go(NotifyDelayAfter,*float64) -} - -#NotificationPropertyParameters: { - // After a job run starts, the number of minutes to wait before sending a job run delay notification. - // +kubebuilder:validation:Optional - notifyDelayAfter?: null | float64 @go(NotifyDelayAfter,*float64) -} - -// JobSpec defines the desired state of Job -#JobSpec: { - v1.#ResourceSpec - forProvider: #JobParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #JobInitParameters @go(InitProvider) -} - -// JobStatus defines the observed state of Job. -#JobStatus: { - v1.#ResourceStatus - atProvider?: #JobObservation @go(AtProvider) -} - -// Job is the Schema for the Jobs API. Provides an Glue Job resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Job: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.command) || (has(self.initProvider) && has(self.initProvider.command))",message="spec.forProvider.command is a required parameter" - spec: #JobSpec @go(Spec) - status?: #JobStatus @go(Status) -} - -// JobList contains a list of Jobs -#JobList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Job] @go(Items,[]Job) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_registry_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_registry_types_go_gen.cue deleted file mode 100644 index 6be4b6c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_registry_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RegistryInitParameters: { - // – A description of the registry. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RegistryObservation: { - // Amazon Resource Name (ARN) of Glue Registry. - arn?: null | string @go(Arn,*string) - - // – A description of the registry. - description?: null | string @go(Description,*string) - - // Amazon Resource Name (ARN) of Glue Registry. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RegistryParameters: { - // – A description of the registry. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RegistrySpec defines the desired state of Registry -#RegistrySpec: { - v1.#ResourceSpec - forProvider: #RegistryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RegistryInitParameters @go(InitProvider) -} - -// RegistryStatus defines the observed state of Registry. -#RegistryStatus: { - v1.#ResourceStatus - atProvider?: #RegistryObservation @go(AtProvider) -} - -// Registry is the Schema for the Registrys API. Provides a Glue Registry resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Registry: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RegistrySpec @go(Spec) - status?: #RegistryStatus @go(Status) -} - -// RegistryList contains a list of Registrys -#RegistryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Registry] @go(Items,[]Registry) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_resourcepolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_resourcepolicy_types_go_gen.cue deleted file mode 100644 index f115066..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_resourcepolicy_types_go_gen.cue +++ /dev/null @@ -1,89 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourcePolicyInitParameters: { - // Indicates that you are using both methods to grant cross-account. Valid values are TRUE and FALSE. - enableHybrid?: null | string @go(EnableHybrid,*string) - - // – The policy to be applied to the aws glue data catalog. - policy?: null | string @go(Policy,*string) -} - -#ResourcePolicyObservation: { - // Indicates that you are using both methods to grant cross-account. Valid values are TRUE and FALSE. - enableHybrid?: null | string @go(EnableHybrid,*string) - id?: null | string @go(ID,*string) - - // – The policy to be applied to the aws glue data catalog. - policy?: null | string @go(Policy,*string) -} - -#ResourcePolicyParameters: { - // Indicates that you are using both methods to grant cross-account. Valid values are TRUE and FALSE. - // +kubebuilder:validation:Optional - enableHybrid?: null | string @go(EnableHybrid,*string) - - // – The policy to be applied to the aws glue data catalog. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ResourcePolicySpec defines the desired state of ResourcePolicy -#ResourcePolicySpec: { - v1.#ResourceSpec - forProvider: #ResourcePolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourcePolicyInitParameters @go(InitProvider) -} - -// ResourcePolicyStatus defines the observed state of ResourcePolicy. -#ResourcePolicyStatus: { - v1.#ResourceStatus - atProvider?: #ResourcePolicyObservation @go(AtProvider) -} - -// ResourcePolicy is the Schema for the ResourcePolicys API. Provides a resource to configure the aws glue resource policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ResourcePolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #ResourcePolicySpec @go(Spec) - status?: #ResourcePolicyStatus @go(Status) -} - -// ResourcePolicyList contains a list of ResourcePolicys -#ResourcePolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ResourcePolicy] @go(Items,[]ResourcePolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_schema_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_schema_types_go_gen.cue deleted file mode 100644 index ca73e97..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_schema_types_go_gen.cue +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SchemaInitParameters: { - // The compatibility mode of the schema. Values values are: NONE, DISABLED, BACKWARD, BACKWARD_ALL, FORWARD, FORWARD_ALL, FULL, and FULL_ALL. - compatibility?: null | string @go(Compatibility,*string) - - // The data format of the schema definition. Valid values are AVRO, JSON and PROTOBUF. - dataFormat?: null | string @go(DataFormat,*string) - - // – A description of the schema. - description?: null | string @go(Description,*string) - - // The schema definition using the data_format setting for schema_name. - schemaDefinition?: null | string @go(SchemaDefinition,*string) - - // – The Name of the schema. - schemaName?: null | string @go(SchemaName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SchemaObservation: { - // Amazon Resource Name (ARN) of the schema. - arn?: null | string @go(Arn,*string) - - // The compatibility mode of the schema. Values values are: NONE, DISABLED, BACKWARD, BACKWARD_ALL, FORWARD, FORWARD_ALL, FULL, and FULL_ALL. - compatibility?: null | string @go(Compatibility,*string) - - // The data format of the schema definition. Valid values are AVRO, JSON and PROTOBUF. - dataFormat?: null | string @go(DataFormat,*string) - - // – A description of the schema. - description?: null | string @go(Description,*string) - - // Amazon Resource Name (ARN) of the schema. - id?: null | string @go(ID,*string) - - // The latest version of the schema associated with the returned schema definition. - latestSchemaVersion?: null | float64 @go(LatestSchemaVersion,*float64) - - // The next version of the schema associated with the returned schema definition. - nextSchemaVersion?: null | float64 @go(NextSchemaVersion,*float64) - - // The ARN of the Glue Registry to create the schema in. - registryArn?: null | string @go(RegistryArn,*string) - - // The name of the Glue Registry. - registryName?: null | string @go(RegistryName,*string) - - // The version number of the checkpoint (the last time the compatibility mode was changed). - schemaCheckpoint?: null | float64 @go(SchemaCheckpoint,*float64) - - // The schema definition using the data_format setting for schema_name. - schemaDefinition?: null | string @go(SchemaDefinition,*string) - - // – The Name of the schema. - schemaName?: null | string @go(SchemaName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SchemaParameters: { - // The compatibility mode of the schema. Values values are: NONE, DISABLED, BACKWARD, BACKWARD_ALL, FORWARD, FORWARD_ALL, FULL, and FULL_ALL. - // +kubebuilder:validation:Optional - compatibility?: null | string @go(Compatibility,*string) - - // The data format of the schema definition. Valid values are AVRO, JSON and PROTOBUF. - // +kubebuilder:validation:Optional - dataFormat?: null | string @go(DataFormat,*string) - - // – A description of the schema. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of the Glue Registry to create the schema in. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.Registry - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - registryArn?: null | string @go(RegistryArn,*string) - - // Reference to a Registry in glue to populate registryArn. - // +kubebuilder:validation:Optional - registryArnRef?: null | v1.#Reference @go(RegistryArnRef,*v1.Reference) - - // Selector for a Registry in glue to populate registryArn. - // +kubebuilder:validation:Optional - registryArnSelector?: null | v1.#Selector @go(RegistryArnSelector,*v1.Selector) - - // The schema definition using the data_format setting for schema_name. - // +kubebuilder:validation:Optional - schemaDefinition?: null | string @go(SchemaDefinition,*string) - - // – The Name of the schema. - // +kubebuilder:validation:Optional - schemaName?: null | string @go(SchemaName,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SchemaSpec defines the desired state of Schema -#SchemaSpec: { - v1.#ResourceSpec - forProvider: #SchemaParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SchemaInitParameters @go(InitProvider) -} - -// SchemaStatus defines the observed state of Schema. -#SchemaStatus: { - v1.#ResourceStatus - atProvider?: #SchemaObservation @go(AtProvider) -} - -// Schema is the Schema for the Schemas API. Provides a Glue Schema resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Schema: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.compatibility) || (has(self.initProvider) && has(self.initProvider.compatibility))",message="spec.forProvider.compatibility is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dataFormat) || (has(self.initProvider) && has(self.initProvider.dataFormat))",message="spec.forProvider.dataFormat is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.schemaDefinition) || (has(self.initProvider) && has(self.initProvider.schemaDefinition))",message="spec.forProvider.schemaDefinition is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.schemaName) || (has(self.initProvider) && has(self.initProvider.schemaName))",message="spec.forProvider.schemaName is a required parameter" - spec: #SchemaSpec @go(Spec) - status?: #SchemaStatus @go(Status) -} - -// SchemaList contains a list of Schemas -#SchemaList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Schema] @go(Items,[]Schema) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_securityconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_securityconfiguration_types_go_gen.cue deleted file mode 100644 index 73b88f0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_securityconfiguration_types_go_gen.cue +++ /dev/null @@ -1,208 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CloudwatchEncryptionInitParameters: { - // Encryption mode to use for CloudWatch data. Valid values: DISABLED, SSE-KMS. Default value: DISABLED. - cloudwatchEncryptionMode?: null | string @go(CloudwatchEncryptionMode,*string) -} - -#CloudwatchEncryptionObservation: { - // Encryption mode to use for CloudWatch data. Valid values: DISABLED, SSE-KMS. Default value: DISABLED. - cloudwatchEncryptionMode?: null | string @go(CloudwatchEncryptionMode,*string) - - // Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) -} - -#CloudwatchEncryptionParameters: { - // Encryption mode to use for CloudWatch data. Valid values: DISABLED, SSE-KMS. Default value: DISABLED. - // +kubebuilder:validation:Optional - cloudwatchEncryptionMode?: null | string @go(CloudwatchEncryptionMode,*string) - - // Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) -} - -#EncryptionConfigurationInitParameters: { - cloudwatchEncryption?: [...#CloudwatchEncryptionInitParameters] @go(CloudwatchEncryption,[]CloudwatchEncryptionInitParameters) - jobBookmarksEncryption?: [...#JobBookmarksEncryptionInitParameters] @go(JobBookmarksEncryption,[]JobBookmarksEncryptionInitParameters) - - // A s3_encryption block as described below, which contains encryption configuration for S3 data. - s3Encryption?: [...#S3EncryptionInitParameters] @go(S3Encryption,[]S3EncryptionInitParameters) -} - -#EncryptionConfigurationObservation: { - cloudwatchEncryption?: [...#CloudwatchEncryptionObservation] @go(CloudwatchEncryption,[]CloudwatchEncryptionObservation) - jobBookmarksEncryption?: [...#JobBookmarksEncryptionObservation] @go(JobBookmarksEncryption,[]JobBookmarksEncryptionObservation) - - // A s3_encryption block as described below, which contains encryption configuration for S3 data. - s3Encryption?: [...#S3EncryptionObservation] @go(S3Encryption,[]S3EncryptionObservation) -} - -#EncryptionConfigurationParameters: { - // +kubebuilder:validation:Optional - cloudwatchEncryption: [...#CloudwatchEncryptionParameters] @go(CloudwatchEncryption,[]CloudwatchEncryptionParameters) - - // +kubebuilder:validation:Optional - jobBookmarksEncryption: [...#JobBookmarksEncryptionParameters] @go(JobBookmarksEncryption,[]JobBookmarksEncryptionParameters) - - // A s3_encryption block as described below, which contains encryption configuration for S3 data. - // +kubebuilder:validation:Optional - s3Encryption: [...#S3EncryptionParameters] @go(S3Encryption,[]S3EncryptionParameters) -} - -#JobBookmarksEncryptionInitParameters: { - // Encryption mode to use for job bookmarks data. Valid values: CSE-KMS, DISABLED. Default value: DISABLED. - jobBookmarksEncryptionMode?: null | string @go(JobBookmarksEncryptionMode,*string) -} - -#JobBookmarksEncryptionObservation: { - // Encryption mode to use for job bookmarks data. Valid values: CSE-KMS, DISABLED. Default value: DISABLED. - jobBookmarksEncryptionMode?: null | string @go(JobBookmarksEncryptionMode,*string) - - // Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) -} - -#JobBookmarksEncryptionParameters: { - // Encryption mode to use for job bookmarks data. Valid values: CSE-KMS, DISABLED. Default value: DISABLED. - // +kubebuilder:validation:Optional - jobBookmarksEncryptionMode?: null | string @go(JobBookmarksEncryptionMode,*string) - - // Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) -} - -#S3EncryptionInitParameters: { - // Encryption mode to use for S3 data. Valid values: DISABLED, SSE-KMS, SSE-S3. Default value: DISABLED. - s3EncryptionMode?: null | string @go(S3EncryptionMode,*string) -} - -#S3EncryptionObservation: { - // Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Encryption mode to use for S3 data. Valid values: DISABLED, SSE-KMS, SSE-S3. Default value: DISABLED. - s3EncryptionMode?: null | string @go(S3EncryptionMode,*string) -} - -#S3EncryptionParameters: { - // Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) - - // Encryption mode to use for S3 data. Valid values: DISABLED, SSE-KMS, SSE-S3. Default value: DISABLED. - // +kubebuilder:validation:Optional - s3EncryptionMode?: null | string @go(S3EncryptionMode,*string) -} - -#SecurityConfigurationInitParameters: { - // – Configuration block containing encryption configuration. Detailed below. - encryptionConfiguration?: [...#EncryptionConfigurationInitParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationInitParameters) -} - -#SecurityConfigurationObservation: { - // – Configuration block containing encryption configuration. Detailed below. - encryptionConfiguration?: [...#EncryptionConfigurationObservation] @go(EncryptionConfiguration,[]EncryptionConfigurationObservation) - - // Glue security configuration name - id?: null | string @go(ID,*string) -} - -#SecurityConfigurationParameters: { - // – Configuration block containing encryption configuration. Detailed below. - // +kubebuilder:validation:Optional - encryptionConfiguration?: [...#EncryptionConfigurationParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// SecurityConfigurationSpec defines the desired state of SecurityConfiguration -#SecurityConfigurationSpec: { - v1.#ResourceSpec - forProvider: #SecurityConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SecurityConfigurationInitParameters @go(InitProvider) -} - -// SecurityConfigurationStatus defines the observed state of SecurityConfiguration. -#SecurityConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #SecurityConfigurationObservation @go(AtProvider) -} - -// SecurityConfiguration is the Schema for the SecurityConfigurations API. Manages a Glue Security Configuration -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SecurityConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.encryptionConfiguration) || (has(self.initProvider) && has(self.initProvider.encryptionConfiguration))",message="spec.forProvider.encryptionConfiguration is a required parameter" - spec: #SecurityConfigurationSpec @go(Spec) - status?: #SecurityConfigurationStatus @go(Status) -} - -// SecurityConfigurationList contains a list of SecurityConfigurations -#SecurityConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SecurityConfiguration] @go(Items,[]SecurityConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_trigger_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_trigger_types_go_gen.cue deleted file mode 100644 index bc2af4f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_trigger_types_go_gen.cue +++ /dev/null @@ -1,395 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionsInitParameters: { - // Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes. - arguments?: {[string]: null | string} @go(Arguments,map[string]*string) - - // Specifies configuration properties of a job run notification. See Notification Property details below. - notificationProperty?: [...#ActionsNotificationPropertyInitParameters] @go(NotificationProperty,[]ActionsNotificationPropertyInitParameters) - - // The name of the Security Configuration structure to be used with this action. - securityConfiguration?: null | string @go(SecurityConfiguration,*string) - - // The job run timeout in minutes. It overrides the timeout value of the job. - timeout?: null | float64 @go(Timeout,*float64) -} - -#ActionsNotificationPropertyInitParameters: { - // After a job run starts, the number of minutes to wait before sending a job run delay notification. - notifyDelayAfter?: null | float64 @go(NotifyDelayAfter,*float64) -} - -#ActionsNotificationPropertyObservation: { - // After a job run starts, the number of minutes to wait before sending a job run delay notification. - notifyDelayAfter?: null | float64 @go(NotifyDelayAfter,*float64) -} - -#ActionsNotificationPropertyParameters: { - // After a job run starts, the number of minutes to wait before sending a job run delay notification. - // +kubebuilder:validation:Optional - notifyDelayAfter?: null | float64 @go(NotifyDelayAfter,*float64) -} - -#ActionsObservation: { - // Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes. - arguments?: {[string]: null | string} @go(Arguments,map[string]*string) - - // The name of the crawler to be executed. Conflicts with job_name. - crawlerName?: null | string @go(CrawlerName,*string) - - // The name of a job to be executed. Conflicts with crawler_name. - jobName?: null | string @go(JobName,*string) - - // Specifies configuration properties of a job run notification. See Notification Property details below. - notificationProperty?: [...#ActionsNotificationPropertyObservation] @go(NotificationProperty,[]ActionsNotificationPropertyObservation) - - // The name of the Security Configuration structure to be used with this action. - securityConfiguration?: null | string @go(SecurityConfiguration,*string) - - // The job run timeout in minutes. It overrides the timeout value of the job. - timeout?: null | float64 @go(Timeout,*float64) -} - -#ActionsParameters: { - // Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes. - // +kubebuilder:validation:Optional - arguments?: {[string]: null | string} @go(Arguments,map[string]*string) - - // The name of the crawler to be executed. Conflicts with job_name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.Crawler - // +kubebuilder:validation:Optional - crawlerName?: null | string @go(CrawlerName,*string) - - // Reference to a Crawler in glue to populate crawlerName. - // +kubebuilder:validation:Optional - crawlerNameRef?: null | v1.#Reference @go(CrawlerNameRef,*v1.Reference) - - // Selector for a Crawler in glue to populate crawlerName. - // +kubebuilder:validation:Optional - crawlerNameSelector?: null | v1.#Selector @go(CrawlerNameSelector,*v1.Selector) - - // The name of a job to be executed. Conflicts with crawler_name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.Job - // +kubebuilder:validation:Optional - jobName?: null | string @go(JobName,*string) - - // Reference to a Job in glue to populate jobName. - // +kubebuilder:validation:Optional - jobNameRef?: null | v1.#Reference @go(JobNameRef,*v1.Reference) - - // Selector for a Job in glue to populate jobName. - // +kubebuilder:validation:Optional - jobNameSelector?: null | v1.#Selector @go(JobNameSelector,*v1.Selector) - - // Specifies configuration properties of a job run notification. See Notification Property details below. - // +kubebuilder:validation:Optional - notificationProperty?: [...#ActionsNotificationPropertyParameters] @go(NotificationProperty,[]ActionsNotificationPropertyParameters) - - // The name of the Security Configuration structure to be used with this action. - // +kubebuilder:validation:Optional - securityConfiguration?: null | string @go(SecurityConfiguration,*string) - - // The job run timeout in minutes. It overrides the timeout value of the job. - // +kubebuilder:validation:Optional - timeout?: null | float64 @go(Timeout,*float64) -} - -#ConditionsInitParameters: { - // The condition crawl state. Currently, the values supported are RUNNING, SUCCEEDED, CANCELLED, and FAILED. If this is specified, crawler_name must also be specified. Conflicts with state. - crawlState?: null | string @go(CrawlState,*string) - - // A logical operator. Defaults to EQUALS. - logicalOperator?: null | string @go(LogicalOperator,*string) - - // The condition job state. Currently, the values supported are SUCCEEDED, STOPPED, TIMEOUT and FAILED. If this is specified, job_name must also be specified. Conflicts with crawler_state. - state?: null | string @go(State,*string) -} - -#ConditionsObservation: { - // The condition crawl state. Currently, the values supported are RUNNING, SUCCEEDED, CANCELLED, and FAILED. If this is specified, crawler_name must also be specified. Conflicts with state. - crawlState?: null | string @go(CrawlState,*string) - - // The name of the crawler to be executed. Conflicts with job_name. - crawlerName?: null | string @go(CrawlerName,*string) - - // The name of a job to be executed. Conflicts with crawler_name. - jobName?: null | string @go(JobName,*string) - - // A logical operator. Defaults to EQUALS. - logicalOperator?: null | string @go(LogicalOperator,*string) - - // The condition job state. Currently, the values supported are SUCCEEDED, STOPPED, TIMEOUT and FAILED. If this is specified, job_name must also be specified. Conflicts with crawler_state. - state?: null | string @go(State,*string) -} - -#ConditionsParameters: { - // The condition crawl state. Currently, the values supported are RUNNING, SUCCEEDED, CANCELLED, and FAILED. If this is specified, crawler_name must also be specified. Conflicts with state. - // +kubebuilder:validation:Optional - crawlState?: null | string @go(CrawlState,*string) - - // The name of the crawler to be executed. Conflicts with job_name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.Crawler - // +kubebuilder:validation:Optional - crawlerName?: null | string @go(CrawlerName,*string) - - // Reference to a Crawler in glue to populate crawlerName. - // +kubebuilder:validation:Optional - crawlerNameRef?: null | v1.#Reference @go(CrawlerNameRef,*v1.Reference) - - // Selector for a Crawler in glue to populate crawlerName. - // +kubebuilder:validation:Optional - crawlerNameSelector?: null | v1.#Selector @go(CrawlerNameSelector,*v1.Selector) - - // The name of a job to be executed. Conflicts with crawler_name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.Job - // +kubebuilder:validation:Optional - jobName?: null | string @go(JobName,*string) - - // Reference to a Job in glue to populate jobName. - // +kubebuilder:validation:Optional - jobNameRef?: null | v1.#Reference @go(JobNameRef,*v1.Reference) - - // Selector for a Job in glue to populate jobName. - // +kubebuilder:validation:Optional - jobNameSelector?: null | v1.#Selector @go(JobNameSelector,*v1.Selector) - - // A logical operator. Defaults to EQUALS. - // +kubebuilder:validation:Optional - logicalOperator?: null | string @go(LogicalOperator,*string) - - // The condition job state. Currently, the values supported are SUCCEEDED, STOPPED, TIMEOUT and FAILED. If this is specified, job_name must also be specified. Conflicts with crawler_state. - // +kubebuilder:validation:Optional - state?: null | string @go(State,*string) -} - -#EventBatchingConditionInitParameters: { - // Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires. - batchSize?: null | float64 @go(BatchSize,*float64) - - // Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received. Default value is 900. - batchWindow?: null | float64 @go(BatchWindow,*float64) -} - -#EventBatchingConditionObservation: { - // Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires. - batchSize?: null | float64 @go(BatchSize,*float64) - - // Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received. Default value is 900. - batchWindow?: null | float64 @go(BatchWindow,*float64) -} - -#EventBatchingConditionParameters: { - // Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires. - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received. Default value is 900. - // +kubebuilder:validation:Optional - batchWindow?: null | float64 @go(BatchWindow,*float64) -} - -#PredicateInitParameters: { - // A list of the conditions that determine when the trigger will fire. See Conditions. - conditions?: [...#ConditionsInitParameters] @go(Conditions,[]ConditionsInitParameters) - - // How to handle multiple conditions. Defaults to AND. Valid values are AND or ANY. - logical?: null | string @go(Logical,*string) -} - -#PredicateObservation: { - // A list of the conditions that determine when the trigger will fire. See Conditions. - conditions?: [...#ConditionsObservation] @go(Conditions,[]ConditionsObservation) - - // How to handle multiple conditions. Defaults to AND. Valid values are AND or ANY. - logical?: null | string @go(Logical,*string) -} - -#PredicateParameters: { - // A list of the conditions that determine when the trigger will fire. See Conditions. - // +kubebuilder:validation:Optional - conditions: [...#ConditionsParameters] @go(Conditions,[]ConditionsParameters) - - // How to handle multiple conditions. Defaults to AND. Valid values are AND or ANY. - // +kubebuilder:validation:Optional - logical?: null | string @go(Logical,*string) -} - -#TriggerInitParameters: { - // – List of actions initiated by this trigger when it fires. See Actions Below. - actions?: [...#ActionsInitParameters] @go(Actions,[]ActionsInitParameters) - - // – A description of the new trigger. - description?: null | string @go(Description,*string) - - // – Start the trigger. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition. - eventBatchingCondition?: [...#EventBatchingConditionInitParameters] @go(EventBatchingCondition,[]EventBatchingConditionInitParameters) - - // – A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below. - predicate?: [...#PredicateInitParameters] @go(Predicate,[]PredicateInitParameters) - - // Based Schedules for Jobs and Crawlers - schedule?: null | string @go(Schedule,*string) - - // – Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers. - startOnCreation?: null | bool @go(StartOnCreation,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // – The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED. - type?: null | string @go(Type,*string) - - // A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers. - workflowName?: null | string @go(WorkflowName,*string) -} - -#TriggerObservation: { - // – List of actions initiated by this trigger when it fires. See Actions Below. - actions?: [...#ActionsObservation] @go(Actions,[]ActionsObservation) - - // Amazon Resource Name (ARN) of Glue Trigger - arn?: null | string @go(Arn,*string) - - // – A description of the new trigger. - description?: null | string @go(Description,*string) - - // – Start the trigger. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition. - eventBatchingCondition?: [...#EventBatchingConditionObservation] @go(EventBatchingCondition,[]EventBatchingConditionObservation) - - // Trigger name - id?: null | string @go(ID,*string) - - // – A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below. - predicate?: [...#PredicateObservation] @go(Predicate,[]PredicateObservation) - - // Based Schedules for Jobs and Crawlers - schedule?: null | string @go(Schedule,*string) - - // – Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers. - startOnCreation?: null | bool @go(StartOnCreation,*bool) - - // The condition job state. Currently, the values supported are SUCCEEDED, STOPPED, TIMEOUT and FAILED. If this is specified, job_name must also be specified. Conflicts with crawler_state. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // – The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED. - type?: null | string @go(Type,*string) - - // A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers. - workflowName?: null | string @go(WorkflowName,*string) -} - -#TriggerParameters: { - // – List of actions initiated by this trigger when it fires. See Actions Below. - // +kubebuilder:validation:Optional - actions?: [...#ActionsParameters] @go(Actions,[]ActionsParameters) - - // – A description of the new trigger. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // – Start the trigger. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition. - // +kubebuilder:validation:Optional - eventBatchingCondition?: [...#EventBatchingConditionParameters] @go(EventBatchingCondition,[]EventBatchingConditionParameters) - - // – A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below. - // +kubebuilder:validation:Optional - predicate?: [...#PredicateParameters] @go(Predicate,[]PredicateParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Based Schedules for Jobs and Crawlers - // +kubebuilder:validation:Optional - schedule?: null | string @go(Schedule,*string) - - // – Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers. - // +kubebuilder:validation:Optional - startOnCreation?: null | bool @go(StartOnCreation,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // – The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers. - // +kubebuilder:validation:Optional - workflowName?: null | string @go(WorkflowName,*string) -} - -// TriggerSpec defines the desired state of Trigger -#TriggerSpec: { - v1.#ResourceSpec - forProvider: #TriggerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TriggerInitParameters @go(InitProvider) -} - -// TriggerStatus defines the observed state of Trigger. -#TriggerStatus: { - v1.#ResourceStatus - atProvider?: #TriggerObservation @go(AtProvider) -} - -// Trigger is the Schema for the Triggers API. Manages a Glue Trigger resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Trigger: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.actions) || (has(self.initProvider) && has(self.initProvider.actions))",message="spec.forProvider.actions is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #TriggerSpec @go(Spec) - status?: #TriggerStatus @go(Status) -} - -// TriggerList contains a list of Triggers -#TriggerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Trigger] @go(Items,[]Trigger) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_userdefinedfunction_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_userdefinedfunction_types_go_gen.cue deleted file mode 100644 index d8d2427..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_userdefinedfunction_types_go_gen.cue +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourceUrisInitParameters: { - // The type of the resource. can be one of JAR, FILE, and ARCHIVE. - resourceType?: null | string @go(ResourceType,*string) - - // The URI for accessing the resource. - uri?: null | string @go(URI,*string) -} - -#ResourceUrisObservation: { - // The type of the resource. can be one of JAR, FILE, and ARCHIVE. - resourceType?: null | string @go(ResourceType,*string) - - // The URI for accessing the resource. - uri?: null | string @go(URI,*string) -} - -#ResourceUrisParameters: { - // The type of the resource. can be one of JAR, FILE, and ARCHIVE. - // +kubebuilder:validation:Optional - resourceType?: null | string @go(ResourceType,*string) - - // The URI for accessing the resource. - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) -} - -#UserDefinedFunctionInitParameters: { - // The Java class that contains the function code. - className?: null | string @go(ClassName,*string) - - // The owner of the function. - ownerName?: null | string @go(OwnerName,*string) - - // The owner type. can be one of USER, ROLE, and GROUP. - ownerType?: null | string @go(OwnerType,*string) - - // The configuration block for Resource URIs. See resource uris below for more details. - resourceUris?: [...#ResourceUrisInitParameters] @go(ResourceUris,[]ResourceUrisInitParameters) -} - -#UserDefinedFunctionObservation: { - // The ARN of the Glue User Defined Function. - arn?: null | string @go(Arn,*string) - - // ID of the Glue Catalog to create the function in. If omitted, this defaults to the AWS Account ID. - catalogId?: null | string @go(CatalogID,*string) - - // The Java class that contains the function code. - className?: null | string @go(ClassName,*string) - - // The time at which the function was created. - createTime?: null | string @go(CreateTime,*string) - - // The name of the Database to create the Function. - databaseName?: null | string @go(DatabaseName,*string) - - // The id of the Glue User Defined Function. - id?: null | string @go(ID,*string) - - // The owner of the function. - ownerName?: null | string @go(OwnerName,*string) - - // The owner type. can be one of USER, ROLE, and GROUP. - ownerType?: null | string @go(OwnerType,*string) - - // The configuration block for Resource URIs. See resource uris below for more details. - resourceUris?: [...#ResourceUrisObservation] @go(ResourceUris,[]ResourceUrisObservation) -} - -#UserDefinedFunctionParameters: { - // ID of the Glue Catalog to create the function in. If omitted, this defaults to the AWS Account ID. - // +kubebuilder:validation:Required - catalogId?: null | string @go(CatalogID,*string) - - // The Java class that contains the function code. - // +kubebuilder:validation:Optional - className?: null | string @go(ClassName,*string) - - // The name of the Database to create the Function. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.CatalogDatabase - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // Reference to a CatalogDatabase in glue to populate databaseName. - // +kubebuilder:validation:Optional - databaseNameRef?: null | v1.#Reference @go(DatabaseNameRef,*v1.Reference) - - // Selector for a CatalogDatabase in glue to populate databaseName. - // +kubebuilder:validation:Optional - databaseNameSelector?: null | v1.#Selector @go(DatabaseNameSelector,*v1.Selector) - - // The owner of the function. - // +kubebuilder:validation:Optional - ownerName?: null | string @go(OwnerName,*string) - - // The owner type. can be one of USER, ROLE, and GROUP. - // +kubebuilder:validation:Optional - ownerType?: null | string @go(OwnerType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The configuration block for Resource URIs. See resource uris below for more details. - // +kubebuilder:validation:Optional - resourceUris?: [...#ResourceUrisParameters] @go(ResourceUris,[]ResourceUrisParameters) -} - -// UserDefinedFunctionSpec defines the desired state of UserDefinedFunction -#UserDefinedFunctionSpec: { - v1.#ResourceSpec - forProvider: #UserDefinedFunctionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserDefinedFunctionInitParameters @go(InitProvider) -} - -// UserDefinedFunctionStatus defines the observed state of UserDefinedFunction. -#UserDefinedFunctionStatus: { - v1.#ResourceStatus - atProvider?: #UserDefinedFunctionObservation @go(AtProvider) -} - -// UserDefinedFunction is the Schema for the UserDefinedFunctions API. Provides a Glue User Defined Function. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserDefinedFunction: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.className) || (has(self.initProvider) && has(self.initProvider.className))",message="spec.forProvider.className is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ownerName) || (has(self.initProvider) && has(self.initProvider.ownerName))",message="spec.forProvider.ownerName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ownerType) || (has(self.initProvider) && has(self.initProvider.ownerType))",message="spec.forProvider.ownerType is a required parameter" - spec: #UserDefinedFunctionSpec @go(Spec) - status?: #UserDefinedFunctionStatus @go(Status) -} - -// UserDefinedFunctionList contains a list of UserDefinedFunctions -#UserDefinedFunctionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserDefinedFunction] @go(Items,[]UserDefinedFunction) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_workflow_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_workflow_types_go_gen.cue deleted file mode 100644 index ae1922f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/glue/v1beta1/zz_workflow_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/glue/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#WorkflowInitParameters: { - // – A map of default run properties for this workflow. These properties are passed to all jobs associated to the workflow. - defaultRunProperties?: {[string]: null | string} @go(DefaultRunProperties,map[string]*string) - - // – Description of the workflow. - description?: null | string @go(Description,*string) - - // Prevents exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs. - maxConcurrentRuns?: null | float64 @go(MaxConcurrentRuns,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#WorkflowObservation: { - // Amazon Resource Name (ARN) of Glue Workflow - arn?: null | string @go(Arn,*string) - - // – A map of default run properties for this workflow. These properties are passed to all jobs associated to the workflow. - defaultRunProperties?: {[string]: null | string} @go(DefaultRunProperties,map[string]*string) - - // – Description of the workflow. - description?: null | string @go(Description,*string) - - // Workflow name - id?: null | string @go(ID,*string) - - // Prevents exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs. - maxConcurrentRuns?: null | float64 @go(MaxConcurrentRuns,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#WorkflowParameters: { - // – A map of default run properties for this workflow. These properties are passed to all jobs associated to the workflow. - // +kubebuilder:validation:Optional - defaultRunProperties?: {[string]: null | string} @go(DefaultRunProperties,map[string]*string) - - // – Description of the workflow. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Prevents exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs. - // +kubebuilder:validation:Optional - maxConcurrentRuns?: null | float64 @go(MaxConcurrentRuns,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// WorkflowSpec defines the desired state of Workflow -#WorkflowSpec: { - v1.#ResourceSpec - forProvider: #WorkflowParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WorkflowInitParameters @go(InitProvider) -} - -// WorkflowStatus defines the observed state of Workflow. -#WorkflowStatus: { - v1.#ResourceStatus - atProvider?: #WorkflowObservation @go(AtProvider) -} - -// Workflow is the Schema for the Workflows API. Provides a Glue Workflow resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Workflow: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #WorkflowSpec @go(Spec) - status?: #WorkflowStatus @go(Status) -} - -// WorkflowList contains a list of Workflows -#WorkflowList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Workflow] @go(Items,[]Workflow) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 119dcb8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/grafana/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=grafana.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "grafana.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_licenseassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_licenseassociation_types_go_gen.cue deleted file mode 100644 index c799f6f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_licenseassociation_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/grafana/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LicenseAssociationInitParameters: { - // The type of license for the workspace license association. Valid values are ENTERPRISE and ENTERPRISE_FREE_TRIAL. - licenseType?: null | string @go(LicenseType,*string) -} - -#LicenseAssociationObservation: { - // If license_type is set to ENTERPRISE_FREE_TRIAL, this is the expiration date of the free trial. - freeTrialExpiration?: null | string @go(FreeTrialExpiration,*string) - id?: null | string @go(ID,*string) - - // If license_type is set to ENTERPRISE, this is the expiration date of the enterprise license. - licenseExpiration?: null | string @go(LicenseExpiration,*string) - - // The type of license for the workspace license association. Valid values are ENTERPRISE and ENTERPRISE_FREE_TRIAL. - licenseType?: null | string @go(LicenseType,*string) - - // The workspace id. - workspaceId?: null | string @go(WorkspaceID,*string) -} - -#LicenseAssociationParameters: { - // The type of license for the workspace license association. Valid values are ENTERPRISE and ENTERPRISE_FREE_TRIAL. - // +kubebuilder:validation:Optional - licenseType?: null | string @go(LicenseType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The workspace id. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/grafana/v1beta1.Workspace - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - workspaceId?: null | string @go(WorkspaceID,*string) - - // Reference to a Workspace in grafana to populate workspaceId. - // +kubebuilder:validation:Optional - workspaceIdRef?: null | v1.#Reference @go(WorkspaceIDRef,*v1.Reference) - - // Selector for a Workspace in grafana to populate workspaceId. - // +kubebuilder:validation:Optional - workspaceIdSelector?: null | v1.#Selector @go(WorkspaceIDSelector,*v1.Selector) -} - -// LicenseAssociationSpec defines the desired state of LicenseAssociation -#LicenseAssociationSpec: { - v1.#ResourceSpec - forProvider: #LicenseAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LicenseAssociationInitParameters @go(InitProvider) -} - -// LicenseAssociationStatus defines the observed state of LicenseAssociation. -#LicenseAssociationStatus: { - v1.#ResourceStatus - atProvider?: #LicenseAssociationObservation @go(AtProvider) -} - -// LicenseAssociation is the Schema for the LicenseAssociations API. Provides an Amazon Managed Grafana workspace license association resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LicenseAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.licenseType) || (has(self.initProvider) && has(self.initProvider.licenseType))",message="spec.forProvider.licenseType is a required parameter" - spec: #LicenseAssociationSpec @go(Spec) - status?: #LicenseAssociationStatus @go(Status) -} - -// LicenseAssociationList contains a list of LicenseAssociations -#LicenseAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LicenseAssociation] @go(Items,[]LicenseAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_roleassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_roleassociation_types_go_gen.cue deleted file mode 100644 index 1387987..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_roleassociation_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/grafana/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RoleAssociationInitParameters: { - // The AWS SSO group ids to be assigned the role given in role. - groupIds?: [...null | string] @go(GroupIds,[]*string) - - // The grafana role. Valid values can be found here. - role?: null | string @go(Role,*string) - - // The AWS SSO user ids to be assigned the role given in role. - userIds?: [...null | string] @go(UserIds,[]*string) -} - -#RoleAssociationObservation: { - // The AWS SSO group ids to be assigned the role given in role. - groupIds?: [...null | string] @go(GroupIds,[]*string) - id?: null | string @go(ID,*string) - - // The grafana role. Valid values can be found here. - role?: null | string @go(Role,*string) - - // The AWS SSO user ids to be assigned the role given in role. - userIds?: [...null | string] @go(UserIds,[]*string) - - // The workspace id. - workspaceId?: null | string @go(WorkspaceID,*string) -} - -#RoleAssociationParameters: { - // The AWS SSO group ids to be assigned the role given in role. - // +kubebuilder:validation:Optional - groupIds?: [...null | string] @go(GroupIds,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The grafana role. Valid values can be found here. - // +kubebuilder:validation:Optional - role?: null | string @go(Role,*string) - - // The AWS SSO user ids to be assigned the role given in role. - // +kubebuilder:validation:Optional - userIds?: [...null | string] @go(UserIds,[]*string) - - // The workspace id. - // +crossplane:generate:reference:type=Workspace - // +kubebuilder:validation:Optional - workspaceId?: null | string @go(WorkspaceID,*string) - - // Reference to a Workspace to populate workspaceId. - // +kubebuilder:validation:Optional - workspaceIdRef?: null | v1.#Reference @go(WorkspaceIDRef,*v1.Reference) - - // Selector for a Workspace to populate workspaceId. - // +kubebuilder:validation:Optional - workspaceIdSelector?: null | v1.#Selector @go(WorkspaceIDSelector,*v1.Selector) -} - -// RoleAssociationSpec defines the desired state of RoleAssociation -#RoleAssociationSpec: { - v1.#ResourceSpec - forProvider: #RoleAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RoleAssociationInitParameters @go(InitProvider) -} - -// RoleAssociationStatus defines the observed state of RoleAssociation. -#RoleAssociationStatus: { - v1.#ResourceStatus - atProvider?: #RoleAssociationObservation @go(AtProvider) -} - -// RoleAssociation is the Schema for the RoleAssociations API. Provides an Amazon Managed Grafana workspace role association resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RoleAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.role) || (has(self.initProvider) && has(self.initProvider.role))",message="spec.forProvider.role is a required parameter" - spec: #RoleAssociationSpec @go(Spec) - status?: #RoleAssociationStatus @go(Status) -} - -// RoleAssociationList contains a list of RoleAssociations -#RoleAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RoleAssociation] @go(Items,[]RoleAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_workspace_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_workspace_types_go_gen.cue deleted file mode 100644 index 702e919..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_workspace_types_go_gen.cue +++ /dev/null @@ -1,300 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/grafana/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NetworkAccessControlInitParameters: { - // - An array of prefix list IDs. - prefixListIds?: [...null | string] @go(PrefixListIds,[]*string) - - // - An array of Amazon VPC endpoint IDs for the workspace. The only VPC endpoints that can be specified here are interface VPC endpoints for Grafana workspaces (using the com.amazonaws.[region].grafana-workspace service endpoint). Other VPC endpoints will be ignored. - vpceIds?: [...null | string] @go(VpceIds,[]*string) -} - -#NetworkAccessControlObservation: { - // - An array of prefix list IDs. - prefixListIds?: [...null | string] @go(PrefixListIds,[]*string) - - // - An array of Amazon VPC endpoint IDs for the workspace. The only VPC endpoints that can be specified here are interface VPC endpoints for Grafana workspaces (using the com.amazonaws.[region].grafana-workspace service endpoint). Other VPC endpoints will be ignored. - vpceIds?: [...null | string] @go(VpceIds,[]*string) -} - -#NetworkAccessControlParameters: { - // - An array of prefix list IDs. - // +kubebuilder:validation:Optional - prefixListIds: [...null | string] @go(PrefixListIds,[]*string) - - // - An array of Amazon VPC endpoint IDs for the workspace. The only VPC endpoints that can be specified here are interface VPC endpoints for Grafana workspaces (using the com.amazonaws.[region].grafana-workspace service endpoint). Other VPC endpoints will be ignored. - // +kubebuilder:validation:Optional - vpceIds: [...null | string] @go(VpceIds,[]*string) -} - -#VPCConfigurationInitParameters: { - // - The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // - The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#VPCConfigurationObservation: { - // - The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // - The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#VPCConfigurationParameters: { - // - The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect. - // +kubebuilder:validation:Optional - securityGroupIds: [...null | string] @go(SecurityGroupIds,[]*string) - - // - The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect. - // +kubebuilder:validation:Optional - subnetIds: [...null | string] @go(SubnetIds,[]*string) -} - -#WorkspaceInitParameters: { - // The type of account access for the workspace. Valid values are CURRENT_ACCOUNT and ORGANIZATION. If ORGANIZATION is specified, then organizational_units must also be present. - accountAccessType?: null | string @go(AccountAccessType,*string) - - // The authentication providers for the workspace. Valid values are AWS_SSO, SAML, or both. - authenticationProviders?: [...null | string] @go(AuthenticationProviders,[]*string) - - // The configuration string for the workspace that you create. For more information about the format and configuration options available, see Working in your Grafana workspace. - configuration?: null | string @go(Configuration,*string) - - // The data sources for the workspace. Valid values are AMAZON_OPENSEARCH_SERVICE, ATHENA, CLOUDWATCH, PROMETHEUS, REDSHIFT, SITEWISE, TIMESTREAM, XRAY - dataSources?: [...null | string] @go(DataSources,[]*string) - - // The workspace description. - description?: null | string @go(Description,*string) - - // Specifies the version of Grafana to support in the new workspace. Supported values are 8.4 and 9.4. If not specified, defaults to 8.4. Upgrading the workspace version isn't supported, however it's possible to copy content from the old version to the new one using AWS official migration tool. - grafanaVersion?: null | string @go(GrafanaVersion,*string) - - // The Grafana workspace name. - name?: null | string @go(Name,*string) - - // Configuration for network access to your workspace.See Network Access Control below. - networkAccessControl?: [...#NetworkAccessControlInitParameters] @go(NetworkAccessControl,[]NetworkAccessControlInitParameters) - - // The notification destinations. If a data source is specified here, Amazon Managed Grafana will create IAM roles and permissions needed to use these destinations. Must be set to SNS. - notificationDestinations?: [...null | string] @go(NotificationDestinations,[]*string) - - // The role name that the workspace uses to access resources through Amazon Organizations. - organizationRoleName?: null | string @go(OrganizationRoleName,*string) - - // The Amazon Organizations organizational units that the workspace is authorized to use data sources from. - organizationalUnits?: [...null | string] @go(OrganizationalUnits,[]*string) - - // The permission type of the workspace. If SERVICE_MANAGED is specified, the IAM roles and IAM policy attachments are generated automatically. If CUSTOMER_MANAGED is specified, the IAM roles and IAM policy attachments will not be created. - permissionType?: null | string @go(PermissionType,*string) - - // The AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace. - stackSetName?: null | string @go(StackSetName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. See VPC Configuration below. - vpcConfiguration?: [...#VPCConfigurationInitParameters] @go(VPCConfiguration,[]VPCConfigurationInitParameters) -} - -#WorkspaceObservation: { - // The type of account access for the workspace. Valid values are CURRENT_ACCOUNT and ORGANIZATION. If ORGANIZATION is specified, then organizational_units must also be present. - accountAccessType?: null | string @go(AccountAccessType,*string) - - // The Amazon Resource Name (ARN) of the Grafana workspace. - arn?: null | string @go(Arn,*string) - - // The authentication providers for the workspace. Valid values are AWS_SSO, SAML, or both. - authenticationProviders?: [...null | string] @go(AuthenticationProviders,[]*string) - - // The configuration string for the workspace that you create. For more information about the format and configuration options available, see Working in your Grafana workspace. - configuration?: null | string @go(Configuration,*string) - - // The data sources for the workspace. Valid values are AMAZON_OPENSEARCH_SERVICE, ATHENA, CLOUDWATCH, PROMETHEUS, REDSHIFT, SITEWISE, TIMESTREAM, XRAY - dataSources?: [...null | string] @go(DataSources,[]*string) - - // The workspace description. - description?: null | string @go(Description,*string) - - // The endpoint of the Grafana workspace. - endpoint?: null | string @go(Endpoint,*string) - - // Specifies the version of Grafana to support in the new workspace. Supported values are 8.4 and 9.4. If not specified, defaults to 8.4. Upgrading the workspace version isn't supported, however it's possible to copy content from the old version to the new one using AWS official migration tool. - grafanaVersion?: null | string @go(GrafanaVersion,*string) - id?: null | string @go(ID,*string) - - // The Grafana workspace name. - name?: null | string @go(Name,*string) - - // Configuration for network access to your workspace.See Network Access Control below. - networkAccessControl?: [...#NetworkAccessControlObservation] @go(NetworkAccessControl,[]NetworkAccessControlObservation) - - // The notification destinations. If a data source is specified here, Amazon Managed Grafana will create IAM roles and permissions needed to use these destinations. Must be set to SNS. - notificationDestinations?: [...null | string] @go(NotificationDestinations,[]*string) - - // The role name that the workspace uses to access resources through Amazon Organizations. - organizationRoleName?: null | string @go(OrganizationRoleName,*string) - - // The Amazon Organizations organizational units that the workspace is authorized to use data sources from. - organizationalUnits?: [...null | string] @go(OrganizationalUnits,[]*string) - - // The permission type of the workspace. If SERVICE_MANAGED is specified, the IAM roles and IAM policy attachments are generated automatically. If CUSTOMER_MANAGED is specified, the IAM roles and IAM policy attachments will not be created. - permissionType?: null | string @go(PermissionType,*string) - - // The IAM role ARN that the workspace assumes. - roleArn?: null | string @go(RoleArn,*string) - samlConfigurationStatus?: null | string @go(SAMLConfigurationStatus,*string) - - // The AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace. - stackSetName?: null | string @go(StackSetName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. See VPC Configuration below. - vpcConfiguration?: [...#VPCConfigurationObservation] @go(VPCConfiguration,[]VPCConfigurationObservation) -} - -#WorkspaceParameters: { - // The type of account access for the workspace. Valid values are CURRENT_ACCOUNT and ORGANIZATION. If ORGANIZATION is specified, then organizational_units must also be present. - // +kubebuilder:validation:Optional - accountAccessType?: null | string @go(AccountAccessType,*string) - - // The authentication providers for the workspace. Valid values are AWS_SSO, SAML, or both. - // +kubebuilder:validation:Optional - authenticationProviders?: [...null | string] @go(AuthenticationProviders,[]*string) - - // The configuration string for the workspace that you create. For more information about the format and configuration options available, see Working in your Grafana workspace. - // +kubebuilder:validation:Optional - configuration?: null | string @go(Configuration,*string) - - // The data sources for the workspace. Valid values are AMAZON_OPENSEARCH_SERVICE, ATHENA, CLOUDWATCH, PROMETHEUS, REDSHIFT, SITEWISE, TIMESTREAM, XRAY - // +kubebuilder:validation:Optional - dataSources?: [...null | string] @go(DataSources,[]*string) - - // The workspace description. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies the version of Grafana to support in the new workspace. Supported values are 8.4 and 9.4. If not specified, defaults to 8.4. Upgrading the workspace version isn't supported, however it's possible to copy content from the old version to the new one using AWS official migration tool. - // +kubebuilder:validation:Optional - grafanaVersion?: null | string @go(GrafanaVersion,*string) - - // The Grafana workspace name. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Configuration for network access to your workspace.See Network Access Control below. - // +kubebuilder:validation:Optional - networkAccessControl?: [...#NetworkAccessControlParameters] @go(NetworkAccessControl,[]NetworkAccessControlParameters) - - // The notification destinations. If a data source is specified here, Amazon Managed Grafana will create IAM roles and permissions needed to use these destinations. Must be set to SNS. - // +kubebuilder:validation:Optional - notificationDestinations?: [...null | string] @go(NotificationDestinations,[]*string) - - // The role name that the workspace uses to access resources through Amazon Organizations. - // +kubebuilder:validation:Optional - organizationRoleName?: null | string @go(OrganizationRoleName,*string) - - // The Amazon Organizations organizational units that the workspace is authorized to use data sources from. - // +kubebuilder:validation:Optional - organizationalUnits?: [...null | string] @go(OrganizationalUnits,[]*string) - - // The permission type of the workspace. If SERVICE_MANAGED is specified, the IAM roles and IAM policy attachments are generated automatically. If CUSTOMER_MANAGED is specified, the IAM roles and IAM policy attachments will not be created. - // +kubebuilder:validation:Optional - permissionType?: null | string @go(PermissionType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The IAM role ARN that the workspace assumes. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace. - // +kubebuilder:validation:Optional - stackSetName?: null | string @go(StackSetName,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. See VPC Configuration below. - // +kubebuilder:validation:Optional - vpcConfiguration?: [...#VPCConfigurationParameters] @go(VPCConfiguration,[]VPCConfigurationParameters) -} - -// WorkspaceSpec defines the desired state of Workspace -#WorkspaceSpec: { - v1.#ResourceSpec - forProvider: #WorkspaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WorkspaceInitParameters @go(InitProvider) -} - -// WorkspaceStatus defines the observed state of Workspace. -#WorkspaceStatus: { - v1.#ResourceStatus - atProvider?: #WorkspaceObservation @go(AtProvider) -} - -// Workspace is the Schema for the Workspaces API. Provides an Amazon Managed Grafana workspace resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Workspace: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accountAccessType) || (has(self.initProvider) && has(self.initProvider.accountAccessType))",message="spec.forProvider.accountAccessType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.authenticationProviders) || (has(self.initProvider) && has(self.initProvider.authenticationProviders))",message="spec.forProvider.authenticationProviders is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.permissionType) || (has(self.initProvider) && has(self.initProvider.permissionType))",message="spec.forProvider.permissionType is a required parameter" - spec: #WorkspaceSpec @go(Spec) - status?: #WorkspaceStatus @go(Status) -} - -// WorkspaceList contains a list of Workspaces -#WorkspaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Workspace] @go(Items,[]Workspace) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_workspaceapikey_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_workspaceapikey_types_go_gen.cue deleted file mode 100644 index b74f4bc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_workspaceapikey_types_go_gen.cue +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/grafana/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#WorkspaceAPIKeyInitParameters: { - // Specifies the name of the API key. Key names must be unique to the workspace. - keyName?: null | string @go(KeyName,*string) - - // Specifies the permission level of the API key. Valid values are VIEWER, EDITOR, or ADMIN. - keyRole?: null | string @go(KeyRole,*string) - - // Specifies the time in seconds until the API key expires. Keys can be valid for up to 30 days. - secondsToLive?: null | float64 @go(SecondsToLive,*float64) -} - -#WorkspaceAPIKeyObservation: { - id?: null | string @go(ID,*string) - - // The key token in JSON format. Use this value as a bearer token to authenticate HTTP requests to the workspace. - key?: null | string @go(Key,*string) - - // Specifies the name of the API key. Key names must be unique to the workspace. - keyName?: null | string @go(KeyName,*string) - - // Specifies the permission level of the API key. Valid values are VIEWER, EDITOR, or ADMIN. - keyRole?: null | string @go(KeyRole,*string) - - // Specifies the time in seconds until the API key expires. Keys can be valid for up to 30 days. - secondsToLive?: null | float64 @go(SecondsToLive,*float64) - - // The ID of the workspace that the API key is valid for. - workspaceId?: null | string @go(WorkspaceID,*string) -} - -#WorkspaceAPIKeyParameters: { - // Specifies the name of the API key. Key names must be unique to the workspace. - // +kubebuilder:validation:Optional - keyName?: null | string @go(KeyName,*string) - - // Specifies the permission level of the API key. Valid values are VIEWER, EDITOR, or ADMIN. - // +kubebuilder:validation:Optional - keyRole?: null | string @go(KeyRole,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the time in seconds until the API key expires. Keys can be valid for up to 30 days. - // +kubebuilder:validation:Optional - secondsToLive?: null | float64 @go(SecondsToLive,*float64) - - // The ID of the workspace that the API key is valid for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/grafana/v1beta1.Workspace - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - workspaceId?: null | string @go(WorkspaceID,*string) - - // Reference to a Workspace in grafana to populate workspaceId. - // +kubebuilder:validation:Optional - workspaceIdRef?: null | v1.#Reference @go(WorkspaceIDRef,*v1.Reference) - - // Selector for a Workspace in grafana to populate workspaceId. - // +kubebuilder:validation:Optional - workspaceIdSelector?: null | v1.#Selector @go(WorkspaceIDSelector,*v1.Selector) -} - -// WorkspaceAPIKeySpec defines the desired state of WorkspaceAPIKey -#WorkspaceAPIKeySpec: { - v1.#ResourceSpec - forProvider: #WorkspaceAPIKeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WorkspaceAPIKeyInitParameters @go(InitProvider) -} - -// WorkspaceAPIKeyStatus defines the observed state of WorkspaceAPIKey. -#WorkspaceAPIKeyStatus: { - v1.#ResourceStatus - atProvider?: #WorkspaceAPIKeyObservation @go(AtProvider) -} - -// WorkspaceAPIKey is the Schema for the WorkspaceAPIKeys API. Creates a Grafana API key for the workspace. This key can be used to authenticate requests sent to the workspace's HTTP API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#WorkspaceAPIKey: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.keyName) || (has(self.initProvider) && has(self.initProvider.keyName))",message="spec.forProvider.keyName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.keyRole) || (has(self.initProvider) && has(self.initProvider.keyRole))",message="spec.forProvider.keyRole is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.secondsToLive) || (has(self.initProvider) && has(self.initProvider.secondsToLive))",message="spec.forProvider.secondsToLive is a required parameter" - spec: #WorkspaceAPIKeySpec @go(Spec) - status?: #WorkspaceAPIKeyStatus @go(Status) -} - -// WorkspaceAPIKeyList contains a list of WorkspaceAPIKeys -#WorkspaceAPIKeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#WorkspaceAPIKey] @go(Items,[]WorkspaceAPIKey) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_workspacesamlconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_workspacesamlconfiguration_types_go_gen.cue deleted file mode 100644 index 4324adb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/grafana/v1beta1/zz_workspacesamlconfiguration_types_go_gen.cue +++ /dev/null @@ -1,208 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/grafana/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#WorkspaceSAMLConfigurationInitParameters: { - // The admin role values. - adminRoleValues?: [...null | string] @go(AdminRoleValues,[]*string) - - // The allowed organizations. - allowedOrganizations?: [...null | string] @go(AllowedOrganizations,[]*string) - - // The editor role values. - editorRoleValues?: [...null | string] @go(EditorRoleValues,[]*string) - - // The email assertion. - emailAssertion?: null | string @go(EmailAssertion,*string) - - // The groups assertion. - groupsAssertion?: null | string @go(GroupsAssertion,*string) - - // The IDP Metadata URL. Note that either idp_metadata_url or idp_metadata_xml (but not both) must be specified. - idpMetadataUrl?: null | string @go(IdpMetadataURL,*string) - - // The IDP Metadata XML. Note that either idp_metadata_url or idp_metadata_xml (but not both) must be specified. - idpMetadataXml?: null | string @go(IdpMetadataXML,*string) - - // The login assertion. - loginAssertion?: null | string @go(LoginAssertion,*string) - - // The login validity duration. - loginValidityDuration?: null | float64 @go(LoginValidityDuration,*float64) - - // The name assertion. - nameAssertion?: null | string @go(NameAssertion,*string) - - // The org assertion. - orgAssertion?: null | string @go(OrgAssertion,*string) - - // The role assertion. - roleAssertion?: null | string @go(RoleAssertion,*string) -} - -#WorkspaceSAMLConfigurationObservation: { - // The admin role values. - adminRoleValues?: [...null | string] @go(AdminRoleValues,[]*string) - - // The allowed organizations. - allowedOrganizations?: [...null | string] @go(AllowedOrganizations,[]*string) - - // The editor role values. - editorRoleValues?: [...null | string] @go(EditorRoleValues,[]*string) - - // The email assertion. - emailAssertion?: null | string @go(EmailAssertion,*string) - - // The groups assertion. - groupsAssertion?: null | string @go(GroupsAssertion,*string) - id?: null | string @go(ID,*string) - - // The IDP Metadata URL. Note that either idp_metadata_url or idp_metadata_xml (but not both) must be specified. - idpMetadataUrl?: null | string @go(IdpMetadataURL,*string) - - // The IDP Metadata XML. Note that either idp_metadata_url or idp_metadata_xml (but not both) must be specified. - idpMetadataXml?: null | string @go(IdpMetadataXML,*string) - - // The login assertion. - loginAssertion?: null | string @go(LoginAssertion,*string) - - // The login validity duration. - loginValidityDuration?: null | float64 @go(LoginValidityDuration,*float64) - - // The name assertion. - nameAssertion?: null | string @go(NameAssertion,*string) - - // The org assertion. - orgAssertion?: null | string @go(OrgAssertion,*string) - - // The role assertion. - roleAssertion?: null | string @go(RoleAssertion,*string) - - // The status of the SAML configuration. - status?: null | string @go(Status,*string) - - // The workspace id. - workspaceId?: null | string @go(WorkspaceID,*string) -} - -#WorkspaceSAMLConfigurationParameters: { - // The admin role values. - // +kubebuilder:validation:Optional - adminRoleValues?: [...null | string] @go(AdminRoleValues,[]*string) - - // The allowed organizations. - // +kubebuilder:validation:Optional - allowedOrganizations?: [...null | string] @go(AllowedOrganizations,[]*string) - - // The editor role values. - // +kubebuilder:validation:Optional - editorRoleValues?: [...null | string] @go(EditorRoleValues,[]*string) - - // The email assertion. - // +kubebuilder:validation:Optional - emailAssertion?: null | string @go(EmailAssertion,*string) - - // The groups assertion. - // +kubebuilder:validation:Optional - groupsAssertion?: null | string @go(GroupsAssertion,*string) - - // The IDP Metadata URL. Note that either idp_metadata_url or idp_metadata_xml (but not both) must be specified. - // +kubebuilder:validation:Optional - idpMetadataUrl?: null | string @go(IdpMetadataURL,*string) - - // The IDP Metadata XML. Note that either idp_metadata_url or idp_metadata_xml (but not both) must be specified. - // +kubebuilder:validation:Optional - idpMetadataXml?: null | string @go(IdpMetadataXML,*string) - - // The login assertion. - // +kubebuilder:validation:Optional - loginAssertion?: null | string @go(LoginAssertion,*string) - - // The login validity duration. - // +kubebuilder:validation:Optional - loginValidityDuration?: null | float64 @go(LoginValidityDuration,*float64) - - // The name assertion. - // +kubebuilder:validation:Optional - nameAssertion?: null | string @go(NameAssertion,*string) - - // The org assertion. - // +kubebuilder:validation:Optional - orgAssertion?: null | string @go(OrgAssertion,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The role assertion. - // +kubebuilder:validation:Optional - roleAssertion?: null | string @go(RoleAssertion,*string) - - // The workspace id. - // +crossplane:generate:reference:type=Workspace - // +kubebuilder:validation:Optional - workspaceId?: null | string @go(WorkspaceID,*string) - - // Reference to a Workspace to populate workspaceId. - // +kubebuilder:validation:Optional - workspaceIdRef?: null | v1.#Reference @go(WorkspaceIDRef,*v1.Reference) - - // Selector for a Workspace to populate workspaceId. - // +kubebuilder:validation:Optional - workspaceIdSelector?: null | v1.#Selector @go(WorkspaceIDSelector,*v1.Selector) -} - -// WorkspaceSAMLConfigurationSpec defines the desired state of WorkspaceSAMLConfiguration -#WorkspaceSAMLConfigurationSpec: { - v1.#ResourceSpec - forProvider: #WorkspaceSAMLConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WorkspaceSAMLConfigurationInitParameters @go(InitProvider) -} - -// WorkspaceSAMLConfigurationStatus defines the observed state of WorkspaceSAMLConfiguration. -#WorkspaceSAMLConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #WorkspaceSAMLConfigurationObservation @go(AtProvider) -} - -// WorkspaceSAMLConfiguration is the Schema for the WorkspaceSAMLConfigurations API. Provides an Amazon Managed Grafana workspace SAML configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#WorkspaceSAMLConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.editorRoleValues) || (has(self.initProvider) && has(self.initProvider.editorRoleValues))",message="spec.forProvider.editorRoleValues is a required parameter" - spec: #WorkspaceSAMLConfigurationSpec @go(Spec) - status?: #WorkspaceSAMLConfigurationStatus @go(Status) -} - -// WorkspaceSAMLConfigurationList contains a list of WorkspaceSAMLConfigurations -#WorkspaceSAMLConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#WorkspaceSAMLConfiguration] @go(Items,[]WorkspaceSAMLConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/guardduty/v1beta1/zz_detector_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/guardduty/v1beta1/zz_detector_types_go_gen.cue deleted file mode 100644 index 8bae629..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/guardduty/v1beta1/zz_detector_types_go_gen.cue +++ /dev/null @@ -1,277 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/guardduty/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AuditLogsInitParameters: { - // If true, enables Malware Protection as data source for the detector. - // Defaults to true. - enable?: null | bool @go(Enable,*bool) -} - -#AuditLogsObservation: { - // If true, enables Malware Protection as data source for the detector. - // Defaults to true. - enable?: null | bool @go(Enable,*bool) -} - -#AuditLogsParameters: { - // If true, enables Malware Protection as data source for the detector. - // Defaults to true. - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) -} - -#DatasourcesInitParameters: { - // Configures Kubernetes protection. - // See Kubernetes and Kubernetes Audit Logs below for more details. - kubernetes?: [...#KubernetesInitParameters] @go(Kubernetes,[]KubernetesInitParameters) - - // Configures Malware Protection. - // See Malware Protection, Scan EC2 instance with findings and EBS volumes below for more details. - malwareProtection?: [...#MalwareProtectionInitParameters] @go(MalwareProtection,[]MalwareProtectionInitParameters) - - // Configures S3 protection. - // See S3 Logs below for more details. - s3Logs?: [...#S3LogsInitParameters] @go(S3Logs,[]S3LogsInitParameters) -} - -#DatasourcesObservation: { - // Configures Kubernetes protection. - // See Kubernetes and Kubernetes Audit Logs below for more details. - kubernetes?: [...#KubernetesObservation] @go(Kubernetes,[]KubernetesObservation) - - // Configures Malware Protection. - // See Malware Protection, Scan EC2 instance with findings and EBS volumes below for more details. - malwareProtection?: [...#MalwareProtectionObservation] @go(MalwareProtection,[]MalwareProtectionObservation) - - // Configures S3 protection. - // See S3 Logs below for more details. - s3Logs?: [...#S3LogsObservation] @go(S3Logs,[]S3LogsObservation) -} - -#DatasourcesParameters: { - // Configures Kubernetes protection. - // See Kubernetes and Kubernetes Audit Logs below for more details. - // +kubebuilder:validation:Optional - kubernetes?: [...#KubernetesParameters] @go(Kubernetes,[]KubernetesParameters) - - // Configures Malware Protection. - // See Malware Protection, Scan EC2 instance with findings and EBS volumes below for more details. - // +kubebuilder:validation:Optional - malwareProtection?: [...#MalwareProtectionParameters] @go(MalwareProtection,[]MalwareProtectionParameters) - - // Configures S3 protection. - // See S3 Logs below for more details. - // +kubebuilder:validation:Optional - s3Logs?: [...#S3LogsParameters] @go(S3Logs,[]S3LogsParameters) -} - -#DetectorInitParameters: { - // Describes which data sources will be enabled for the detector. See Data Sources below for more details. - datasources?: [...#DatasourcesInitParameters] @go(Datasources,[]DatasourcesInitParameters) - - // Enable monitoring and feedback reporting. Setting to false is equivalent to "suspending" GuardDuty. Defaults to true. - enable?: null | bool @go(Enable,*bool) - - // Specifies the frequency of notifications sent for subsequent finding occurrences. If the detector is a GuardDuty member account, the value is determined by the GuardDuty primary account and cannot be modified, otherwise defaults to SIX_HOURS. Valid values for standalone and primary accounts: FIFTEEN_MINUTES, ONE_HOUR, SIX_HOURS. See AWS Documentation for more information. - findingPublishingFrequency?: null | string @go(FindingPublishingFrequency,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DetectorObservation: { - // The AWS account ID of the GuardDuty detector - accountId?: null | string @go(AccountID,*string) - - // Amazon Resource Name (ARN) of the GuardDuty detector - arn?: null | string @go(Arn,*string) - - // Describes which data sources will be enabled for the detector. See Data Sources below for more details. - datasources?: [...#DatasourcesObservation] @go(Datasources,[]DatasourcesObservation) - - // Enable monitoring and feedback reporting. Setting to false is equivalent to "suspending" GuardDuty. Defaults to true. - enable?: null | bool @go(Enable,*bool) - - // Specifies the frequency of notifications sent for subsequent finding occurrences. If the detector is a GuardDuty member account, the value is determined by the GuardDuty primary account and cannot be modified, otherwise defaults to SIX_HOURS. Valid values for standalone and primary accounts: FIFTEEN_MINUTES, ONE_HOUR, SIX_HOURS. See AWS Documentation for more information. - findingPublishingFrequency?: null | string @go(FindingPublishingFrequency,*string) - - // The ID of the GuardDuty detector - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DetectorParameters: { - // Describes which data sources will be enabled for the detector. See Data Sources below for more details. - // +kubebuilder:validation:Optional - datasources?: [...#DatasourcesParameters] @go(Datasources,[]DatasourcesParameters) - - // Enable monitoring and feedback reporting. Setting to false is equivalent to "suspending" GuardDuty. Defaults to true. - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // Specifies the frequency of notifications sent for subsequent finding occurrences. If the detector is a GuardDuty member account, the value is determined by the GuardDuty primary account and cannot be modified, otherwise defaults to SIX_HOURS. Valid values for standalone and primary accounts: FIFTEEN_MINUTES, ONE_HOUR, SIX_HOURS. See AWS Documentation for more information. - // +kubebuilder:validation:Optional - findingPublishingFrequency?: null | string @go(FindingPublishingFrequency,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EBSVolumesInitParameters: { - // If true, enables Malware Protection as data source for the detector. - // Defaults to true. - enable?: null | bool @go(Enable,*bool) -} - -#EBSVolumesObservation: { - // If true, enables Malware Protection as data source for the detector. - // Defaults to true. - enable?: null | bool @go(Enable,*bool) -} - -#EBSVolumesParameters: { - // If true, enables Malware Protection as data source for the detector. - // Defaults to true. - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) -} - -#KubernetesInitParameters: { - // Configures Kubernetes audit logs as a data source for Kubernetes protection. - // See Kubernetes Audit Logs below for more details. - auditLogs?: [...#AuditLogsInitParameters] @go(AuditLogs,[]AuditLogsInitParameters) -} - -#KubernetesObservation: { - // Configures Kubernetes audit logs as a data source for Kubernetes protection. - // See Kubernetes Audit Logs below for more details. - auditLogs?: [...#AuditLogsObservation] @go(AuditLogs,[]AuditLogsObservation) -} - -#KubernetesParameters: { - // Configures Kubernetes audit logs as a data source for Kubernetes protection. - // See Kubernetes Audit Logs below for more details. - // +kubebuilder:validation:Optional - auditLogs: [...#AuditLogsParameters] @go(AuditLogs,[]AuditLogsParameters) -} - -#MalwareProtectionInitParameters: { - // Configure whether Malware Protection is enabled as data source for EC2 instances with findings for the detector. - // See Scan EC2 instance with findings below for more details. - scanEc2InstanceWithFindings?: [...#ScanEC2InstanceWithFindingsInitParameters] @go(ScanEC2InstanceWithFindings,[]ScanEC2InstanceWithFindingsInitParameters) -} - -#MalwareProtectionObservation: { - // Configure whether Malware Protection is enabled as data source for EC2 instances with findings for the detector. - // See Scan EC2 instance with findings below for more details. - scanEc2InstanceWithFindings?: [...#ScanEC2InstanceWithFindingsObservation] @go(ScanEC2InstanceWithFindings,[]ScanEC2InstanceWithFindingsObservation) -} - -#MalwareProtectionParameters: { - // Configure whether Malware Protection is enabled as data source for EC2 instances with findings for the detector. - // See Scan EC2 instance with findings below for more details. - // +kubebuilder:validation:Optional - scanEc2InstanceWithFindings: [...#ScanEC2InstanceWithFindingsParameters] @go(ScanEC2InstanceWithFindings,[]ScanEC2InstanceWithFindingsParameters) -} - -#S3LogsInitParameters: { - // If true, enables S3 protection. - // Defaults to true. - enable?: null | bool @go(Enable,*bool) -} - -#S3LogsObservation: { - // If true, enables S3 protection. - // Defaults to true. - enable?: null | bool @go(Enable,*bool) -} - -#S3LogsParameters: { - // If true, enables S3 protection. - // Defaults to true. - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) -} - -#ScanEC2InstanceWithFindingsInitParameters: { - // Configure whether scanning EBS volumes is enabled as data source for the detector for instances with findings. - // See EBS volumes below for more details. - ebsVolumes?: [...#EBSVolumesInitParameters] @go(EBSVolumes,[]EBSVolumesInitParameters) -} - -#ScanEC2InstanceWithFindingsObservation: { - // Configure whether scanning EBS volumes is enabled as data source for the detector for instances with findings. - // See EBS volumes below for more details. - ebsVolumes?: [...#EBSVolumesObservation] @go(EBSVolumes,[]EBSVolumesObservation) -} - -#ScanEC2InstanceWithFindingsParameters: { - // Configure whether scanning EBS volumes is enabled as data source for the detector for instances with findings. - // See EBS volumes below for more details. - // +kubebuilder:validation:Optional - ebsVolumes: [...#EBSVolumesParameters] @go(EBSVolumes,[]EBSVolumesParameters) -} - -// DetectorSpec defines the desired state of Detector -#DetectorSpec: { - v1.#ResourceSpec - forProvider: #DetectorParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DetectorInitParameters @go(InitProvider) -} - -// DetectorStatus defines the observed state of Detector. -#DetectorStatus: { - v1.#ResourceStatus - atProvider?: #DetectorObservation @go(AtProvider) -} - -// Detector is the Schema for the Detectors API. Provides a resource to manage a GuardDuty detector -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Detector: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DetectorSpec @go(Spec) - status?: #DetectorStatus @go(Status) -} - -// DetectorList contains a list of Detectors -#DetectorList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Detector] @go(Items,[]Detector) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/guardduty/v1beta1/zz_filter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/guardduty/v1beta1/zz_filter_types_go_gen.cue deleted file mode 100644 index 2dec57a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/guardduty/v1beta1/zz_filter_types_go_gen.cue +++ /dev/null @@ -1,235 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/guardduty/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CriterionInitParameters: { - // List of string values to be evaluated. - equals?: [...null | string] @go(Equals,[]*string) - - // The name of the field to be evaluated. The full list of field names can be found in AWS documentation. - field?: null | string @go(Field,*string) - - // A value to be evaluated. Accepts either an integer or a date in RFC 3339 format. - greaterThan?: null | string @go(GreaterThan,*string) - - // A value to be evaluated. Accepts either an integer or a date in RFC 3339 format. - greaterThanOrEqual?: null | string @go(GreaterThanOrEqual,*string) - - // A value to be evaluated. Accepts either an integer or a date in RFC 3339 format. - lessThan?: null | string @go(LessThan,*string) - - // A value to be evaluated. Accepts either an integer or a date in RFC 3339 format. - lessThanOrEqual?: null | string @go(LessThanOrEqual,*string) - - // List of string values to be evaluated. - notEquals?: [...null | string] @go(NotEquals,[]*string) -} - -#CriterionObservation: { - // List of string values to be evaluated. - equals?: [...null | string] @go(Equals,[]*string) - - // The name of the field to be evaluated. The full list of field names can be found in AWS documentation. - field?: null | string @go(Field,*string) - - // A value to be evaluated. Accepts either an integer or a date in RFC 3339 format. - greaterThan?: null | string @go(GreaterThan,*string) - - // A value to be evaluated. Accepts either an integer or a date in RFC 3339 format. - greaterThanOrEqual?: null | string @go(GreaterThanOrEqual,*string) - - // A value to be evaluated. Accepts either an integer or a date in RFC 3339 format. - lessThan?: null | string @go(LessThan,*string) - - // A value to be evaluated. Accepts either an integer or a date in RFC 3339 format. - lessThanOrEqual?: null | string @go(LessThanOrEqual,*string) - - // List of string values to be evaluated. - notEquals?: [...null | string] @go(NotEquals,[]*string) -} - -#CriterionParameters: { - // List of string values to be evaluated. - // +kubebuilder:validation:Optional - equals?: [...null | string] @go(Equals,[]*string) - - // The name of the field to be evaluated. The full list of field names can be found in AWS documentation. - // +kubebuilder:validation:Optional - field?: null | string @go(Field,*string) - - // A value to be evaluated. Accepts either an integer or a date in RFC 3339 format. - // +kubebuilder:validation:Optional - greaterThan?: null | string @go(GreaterThan,*string) - - // A value to be evaluated. Accepts either an integer or a date in RFC 3339 format. - // +kubebuilder:validation:Optional - greaterThanOrEqual?: null | string @go(GreaterThanOrEqual,*string) - - // A value to be evaluated. Accepts either an integer or a date in RFC 3339 format. - // +kubebuilder:validation:Optional - lessThan?: null | string @go(LessThan,*string) - - // A value to be evaluated. Accepts either an integer or a date in RFC 3339 format. - // +kubebuilder:validation:Optional - lessThanOrEqual?: null | string @go(LessThanOrEqual,*string) - - // List of string values to be evaluated. - // +kubebuilder:validation:Optional - notEquals?: [...null | string] @go(NotEquals,[]*string) -} - -#FilterInitParameters: { - // Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP. - action?: null | string @go(Action,*string) - - // Description of the filter. - description?: null | string @go(Description,*string) - - // Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below. - findingCriteria?: [...#FindingCriteriaInitParameters] @go(FindingCriteria,[]FindingCriteriaInitParameters) - - // Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings. - rank?: null | float64 @go(Rank,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FilterObservation: { - // Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP. - action?: null | string @go(Action,*string) - - // The ARN of the GuardDuty filter. - arn?: null | string @go(Arn,*string) - - // Description of the filter. - description?: null | string @go(Description,*string) - - // ID of a GuardDuty detector, attached to your account. - detectorId?: null | string @go(DetectorID,*string) - - // Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below. - findingCriteria?: [...#FindingCriteriaObservation] @go(FindingCriteria,[]FindingCriteriaObservation) - - // A compound field, consisting of the ID of the GuardDuty detector and the name of the filter. - id?: null | string @go(ID,*string) - - // Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings. - rank?: null | float64 @go(Rank,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#FilterParameters: { - // Specifies the action that is to be applied to the findings that match the filter. Can be one of ARCHIVE or NOOP. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) - - // Description of the filter. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // ID of a GuardDuty detector, attached to your account. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/guardduty/v1beta1.Detector - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - detectorId?: null | string @go(DetectorID,*string) - - // Reference to a Detector in guardduty to populate detectorId. - // +kubebuilder:validation:Optional - detectorIdRef?: null | v1.#Reference @go(DetectorIDRef,*v1.Reference) - - // Selector for a Detector in guardduty to populate detectorId. - // +kubebuilder:validation:Optional - detectorIdSelector?: null | v1.#Selector @go(DetectorIDSelector,*v1.Selector) - - // Represents the criteria to be used in the filter for querying findings. Contains one or more criterion blocks, documented below. - // +kubebuilder:validation:Optional - findingCriteria?: [...#FindingCriteriaParameters] @go(FindingCriteria,[]FindingCriteriaParameters) - - // Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings. - // +kubebuilder:validation:Optional - rank?: null | float64 @go(Rank,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FindingCriteriaInitParameters: { - criterion?: [...#CriterionInitParameters] @go(Criterion,[]CriterionInitParameters) -} - -#FindingCriteriaObservation: { - criterion?: [...#CriterionObservation] @go(Criterion,[]CriterionObservation) -} - -#FindingCriteriaParameters: { - // +kubebuilder:validation:Optional - criterion: [...#CriterionParameters] @go(Criterion,[]CriterionParameters) -} - -// FilterSpec defines the desired state of Filter -#FilterSpec: { - v1.#ResourceSpec - forProvider: #FilterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FilterInitParameters @go(InitProvider) -} - -// FilterStatus defines the observed state of Filter. -#FilterStatus: { - v1.#ResourceStatus - atProvider?: #FilterObservation @go(AtProvider) -} - -// Filter is the Schema for the Filters API. Provides a resource to manage a GuardDuty filter -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Filter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.action) || (has(self.initProvider) && has(self.initProvider.action))",message="spec.forProvider.action is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.findingCriteria) || (has(self.initProvider) && has(self.initProvider.findingCriteria))",message="spec.forProvider.findingCriteria is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rank) || (has(self.initProvider) && has(self.initProvider.rank))",message="spec.forProvider.rank is a required parameter" - spec: #FilterSpec @go(Spec) - status?: #FilterStatus @go(Status) -} - -// FilterList contains a list of Filters -#FilterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Filter] @go(Items,[]Filter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/guardduty/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/guardduty/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 076027f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/guardduty/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/guardduty/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=guardduty.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "guardduty.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/guardduty/v1beta1/zz_member_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/guardduty/v1beta1/zz_member_types_go_gen.cue deleted file mode 100644 index 28ae9fd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/guardduty/v1beta1/zz_member_types_go_gen.cue +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/guardduty/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MemberInitParameters: { - // Boolean whether an email notification is sent to the accounts. Defaults to false. - disableEmailNotification?: null | bool @go(DisableEmailNotification,*bool) - - // Email address for member account. - email?: null | string @go(Email,*string) - - // Message for invitation. - invitationMessage?: null | string @go(InvitationMessage,*string) - - // Boolean whether to invite the account to GuardDuty as a member. Defaults to false. - invite?: null | bool @go(Invite,*bool) -} - -#MemberObservation: { - // AWS account ID for member account. - accountId?: null | string @go(AccountID,*string) - - // The detector ID of the GuardDuty account where you want to create member accounts. - detectorId?: null | string @go(DetectorID,*string) - - // Boolean whether an email notification is sent to the accounts. Defaults to false. - disableEmailNotification?: null | bool @go(DisableEmailNotification,*bool) - - // Email address for member account. - email?: null | string @go(Email,*string) - - // The ID of the GuardDuty member - id?: null | string @go(ID,*string) - - // Message for invitation. - invitationMessage?: null | string @go(InvitationMessage,*string) - - // Boolean whether to invite the account to GuardDuty as a member. Defaults to false. - invite?: null | bool @go(Invite,*bool) - - // The status of the relationship between the member account and its primary account. More information can be found in Amazon GuardDuty API Reference. - relationshipStatus?: null | string @go(RelationshipStatus,*string) -} - -#MemberParameters: { - // AWS account ID for member account. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/guardduty/v1beta1.Detector - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("account_id",true) - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // Reference to a Detector in guardduty to populate accountId. - // +kubebuilder:validation:Optional - accountIdRef?: null | v1.#Reference @go(AccountIDRef,*v1.Reference) - - // Selector for a Detector in guardduty to populate accountId. - // +kubebuilder:validation:Optional - accountIdSelector?: null | v1.#Selector @go(AccountIDSelector,*v1.Selector) - - // The detector ID of the GuardDuty account where you want to create member accounts. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/guardduty/v1beta1.Detector - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - detectorId?: null | string @go(DetectorID,*string) - - // Reference to a Detector in guardduty to populate detectorId. - // +kubebuilder:validation:Optional - detectorIdRef?: null | v1.#Reference @go(DetectorIDRef,*v1.Reference) - - // Selector for a Detector in guardduty to populate detectorId. - // +kubebuilder:validation:Optional - detectorIdSelector?: null | v1.#Selector @go(DetectorIDSelector,*v1.Selector) - - // Boolean whether an email notification is sent to the accounts. Defaults to false. - // +kubebuilder:validation:Optional - disableEmailNotification?: null | bool @go(DisableEmailNotification,*bool) - - // Email address for member account. - // +kubebuilder:validation:Optional - email?: null | string @go(Email,*string) - - // Message for invitation. - // +kubebuilder:validation:Optional - invitationMessage?: null | string @go(InvitationMessage,*string) - - // Boolean whether to invite the account to GuardDuty as a member. Defaults to false. - // +kubebuilder:validation:Optional - invite?: null | bool @go(Invite,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// MemberSpec defines the desired state of Member -#MemberSpec: { - v1.#ResourceSpec - forProvider: #MemberParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MemberInitParameters @go(InitProvider) -} - -// MemberStatus defines the observed state of Member. -#MemberStatus: { - v1.#ResourceStatus - atProvider?: #MemberObservation @go(AtProvider) -} - -// Member is the Schema for the Members API. Provides a resource to manage a GuardDuty member -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Member: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.email) || (has(self.initProvider) && has(self.initProvider.email))",message="spec.forProvider.email is a required parameter" - spec: #MemberSpec @go(Spec) - status?: #MemberStatus @go(Status) -} - -// MemberList contains a list of Members -#MemberList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Member] @go(Items,[]Member) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_accesskey_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_accesskey_types_go_gen.cue deleted file mode 100644 index 8e15e5b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_accesskey_types_go_gen.cue +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessKeyInitParameters: { - // Either a base-64 encoded PGP public key, or a keybase username in the form keybase:some_person_that_exists, for use in the encrypted_secret output attribute. If providing a base-64 encoded PGP public key, make sure to provide the "raw" version and not the "armored" one (e.g. avoid passing the -a option to gpg --export). - pgpKey?: null | string @go(PgpKey,*string) - - // Access key status to apply. Defaults to Active. Valid values are Active and Inactive. - status?: null | string @go(Status,*string) -} - -#AccessKeyObservation: { - // Date and time in RFC3339 format that the access key was created. - createDate?: null | string @go(CreateDate,*string) - - // Encrypted secret, base64 encoded, if pgp_key was specified. This attribute is not available for imported resources. - encryptedSecret?: null | string @go(EncryptedSecret,*string) - - // Encrypted SES SMTP password, base64 encoded, if pgp_key was specified. This attribute is not available for imported resources. - encryptedSesSmtpPasswordV4?: null | string @go(EncryptedSesSMTPPasswordV4,*string) - - // Access key ID. - id?: null | string @go(ID,*string) - - // Fingerprint of the PGP key used to encrypt the secret. This attribute is not available for imported resources. - keyFingerprint?: null | string @go(KeyFingerprint,*string) - - // Either a base-64 encoded PGP public key, or a keybase username in the form keybase:some_person_that_exists, for use in the encrypted_secret output attribute. If providing a base-64 encoded PGP public key, make sure to provide the "raw" version and not the "armored" one (e.g. avoid passing the -a option to gpg --export). - pgpKey?: null | string @go(PgpKey,*string) - - // Access key status to apply. Defaults to Active. Valid values are Active and Inactive. - status?: null | string @go(Status,*string) - - // IAM user to associate with this access key. - user?: null | string @go(User,*string) -} - -#AccessKeyParameters: { - // Either a base-64 encoded PGP public key, or a keybase username in the form keybase:some_person_that_exists, for use in the encrypted_secret output attribute. If providing a base-64 encoded PGP public key, make sure to provide the "raw" version and not the "armored" one (e.g. avoid passing the -a option to gpg --export). - // +kubebuilder:validation:Optional - pgpKey?: null | string @go(PgpKey,*string) - - // Access key status to apply. Defaults to Active. Valid values are Active and Inactive. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // IAM user to associate with this access key. - // +crossplane:generate:reference:type=User - // +kubebuilder:validation:Optional - user?: null | string @go(User,*string) - - // Reference to a User to populate user. - // +kubebuilder:validation:Optional - userRef?: null | v1.#Reference @go(UserRef,*v1.Reference) - - // Selector for a User to populate user. - // +kubebuilder:validation:Optional - userSelector?: null | v1.#Selector @go(UserSelector,*v1.Selector) -} - -// AccessKeySpec defines the desired state of AccessKey -#AccessKeySpec: { - v1.#ResourceSpec - forProvider: #AccessKeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccessKeyInitParameters @go(InitProvider) -} - -// AccessKeyStatus defines the observed state of AccessKey. -#AccessKeyStatus: { - v1.#ResourceStatus - atProvider?: #AccessKeyObservation @go(AtProvider) -} - -// AccessKey is the Schema for the AccessKeys API. Provides an IAM access key. This is a set of credentials that allow API requests to be made as an IAM user. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AccessKey: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AccessKeySpec @go(Spec) - status?: #AccessKeyStatus @go(Status) -} - -// AccessKeyList contains a list of AccessKeys -#AccessKeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AccessKey] @go(Items,[]AccessKey) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_accountalias_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_accountalias_types_go_gen.cue deleted file mode 100644 index 27ae5b9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_accountalias_types_go_gen.cue +++ /dev/null @@ -1,65 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountAliasInitParameters: { -} - -#AccountAliasObservation: { - id?: null | string @go(ID,*string) -} - -#AccountAliasParameters: { -} - -// AccountAliasSpec defines the desired state of AccountAlias -#AccountAliasSpec: { - v1.#ResourceSpec - forProvider: #AccountAliasParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccountAliasInitParameters @go(InitProvider) -} - -// AccountAliasStatus defines the observed state of AccountAlias. -#AccountAliasStatus: { - v1.#ResourceStatus - atProvider?: #AccountAliasObservation @go(AtProvider) -} - -// AccountAlias is the Schema for the AccountAliass API. Manages the account alias for the AWS Account. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AccountAlias: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AccountAliasSpec @go(Spec) - status?: #AccountAliasStatus @go(Status) -} - -// AccountAliasList contains a list of AccountAliass -#AccountAliasList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AccountAlias] @go(Items,[]AccountAlias) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_accountpasswordpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_accountpasswordpolicy_types_go_gen.cue deleted file mode 100644 index a0bf22b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_accountpasswordpolicy_types_go_gen.cue +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountPasswordPolicyInitParameters: { - // Whether to allow users to change their own password - allowUsersToChangePassword?: null | bool @go(AllowUsersToChangePassword,*bool) - - // Whether users are prevented from setting a new password after their password has expired (i.e., require administrator reset) - hardExpiry?: null | bool @go(HardExpiry,*bool) - - // The number of days that an user password is valid. - maxPasswordAge?: null | float64 @go(MaxPasswordAge,*float64) - - // Minimum length to require for user passwords. - minimumPasswordLength?: null | float64 @go(MinimumPasswordLength,*float64) - - // The number of previous passwords that users are prevented from reusing. - passwordReusePrevention?: null | float64 @go(PasswordReusePrevention,*float64) - - // Whether to require lowercase characters for user passwords. - requireLowercaseCharacters?: null | bool @go(RequireLowercaseCharacters,*bool) - - // Whether to require numbers for user passwords. - requireNumbers?: null | bool @go(RequireNumbers,*bool) - - // Whether to require symbols for user passwords. - requireSymbols?: null | bool @go(RequireSymbols,*bool) - - // Whether to require uppercase characters for user passwords. - requireUppercaseCharacters?: null | bool @go(RequireUppercaseCharacters,*bool) -} - -#AccountPasswordPolicyObservation: { - // Whether to allow users to change their own password - allowUsersToChangePassword?: null | bool @go(AllowUsersToChangePassword,*bool) - - // Indicates whether passwords in the account expire. Returns true if max_password_age contains a value greater than 0. Returns false if it is 0 or not present. - expirePasswords?: null | bool @go(ExpirePasswords,*bool) - - // Whether users are prevented from setting a new password after their password has expired (i.e., require administrator reset) - hardExpiry?: null | bool @go(HardExpiry,*bool) - id?: null | string @go(ID,*string) - - // The number of days that an user password is valid. - maxPasswordAge?: null | float64 @go(MaxPasswordAge,*float64) - - // Minimum length to require for user passwords. - minimumPasswordLength?: null | float64 @go(MinimumPasswordLength,*float64) - - // The number of previous passwords that users are prevented from reusing. - passwordReusePrevention?: null | float64 @go(PasswordReusePrevention,*float64) - - // Whether to require lowercase characters for user passwords. - requireLowercaseCharacters?: null | bool @go(RequireLowercaseCharacters,*bool) - - // Whether to require numbers for user passwords. - requireNumbers?: null | bool @go(RequireNumbers,*bool) - - // Whether to require symbols for user passwords. - requireSymbols?: null | bool @go(RequireSymbols,*bool) - - // Whether to require uppercase characters for user passwords. - requireUppercaseCharacters?: null | bool @go(RequireUppercaseCharacters,*bool) -} - -#AccountPasswordPolicyParameters: { - // Whether to allow users to change their own password - // +kubebuilder:validation:Optional - allowUsersToChangePassword?: null | bool @go(AllowUsersToChangePassword,*bool) - - // Whether users are prevented from setting a new password after their password has expired (i.e., require administrator reset) - // +kubebuilder:validation:Optional - hardExpiry?: null | bool @go(HardExpiry,*bool) - - // The number of days that an user password is valid. - // +kubebuilder:validation:Optional - maxPasswordAge?: null | float64 @go(MaxPasswordAge,*float64) - - // Minimum length to require for user passwords. - // +kubebuilder:validation:Optional - minimumPasswordLength?: null | float64 @go(MinimumPasswordLength,*float64) - - // The number of previous passwords that users are prevented from reusing. - // +kubebuilder:validation:Optional - passwordReusePrevention?: null | float64 @go(PasswordReusePrevention,*float64) - - // Whether to require lowercase characters for user passwords. - // +kubebuilder:validation:Optional - requireLowercaseCharacters?: null | bool @go(RequireLowercaseCharacters,*bool) - - // Whether to require numbers for user passwords. - // +kubebuilder:validation:Optional - requireNumbers?: null | bool @go(RequireNumbers,*bool) - - // Whether to require symbols for user passwords. - // +kubebuilder:validation:Optional - requireSymbols?: null | bool @go(RequireSymbols,*bool) - - // Whether to require uppercase characters for user passwords. - // +kubebuilder:validation:Optional - requireUppercaseCharacters?: null | bool @go(RequireUppercaseCharacters,*bool) -} - -// AccountPasswordPolicySpec defines the desired state of AccountPasswordPolicy -#AccountPasswordPolicySpec: { - v1.#ResourceSpec - forProvider: #AccountPasswordPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccountPasswordPolicyInitParameters @go(InitProvider) -} - -// AccountPasswordPolicyStatus defines the observed state of AccountPasswordPolicy. -#AccountPasswordPolicyStatus: { - v1.#ResourceStatus - atProvider?: #AccountPasswordPolicyObservation @go(AtProvider) -} - -// AccountPasswordPolicy is the Schema for the AccountPasswordPolicys API. Manages Password Policy for the AWS Account. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AccountPasswordPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AccountPasswordPolicySpec @go(Spec) - status?: #AccountPasswordPolicyStatus @go(Status) -} - -// AccountPasswordPolicyList contains a list of AccountPasswordPolicys -#AccountPasswordPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AccountPasswordPolicy] @go(Items,[]AccountPasswordPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_group_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_group_types_go_gen.cue deleted file mode 100644 index b455d73..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_group_types_go_gen.cue +++ /dev/null @@ -1,80 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GroupInitParameters: { - // Path in which to create the group. - path?: null | string @go(Path,*string) -} - -#GroupObservation: { - // The ARN assigned by AWS for this group. - arn?: null | string @go(Arn,*string) - - // The group's ID. - id?: null | string @go(ID,*string) - - // Path in which to create the group. - path?: null | string @go(Path,*string) - - // The unique ID assigned by AWS. - uniqueId?: null | string @go(UniqueID,*string) -} - -#GroupParameters: { - // Path in which to create the group. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) -} - -// GroupSpec defines the desired state of Group -#GroupSpec: { - v1.#ResourceSpec - forProvider: #GroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GroupInitParameters @go(InitProvider) -} - -// GroupStatus defines the observed state of Group. -#GroupStatus: { - v1.#ResourceStatus - atProvider?: #GroupObservation @go(AtProvider) -} - -// Group is the Schema for the Groups API. Provides an IAM group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Group: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #GroupSpec @go(Spec) - status?: #GroupStatus @go(Status) -} - -// GroupList contains a list of Groups -#GroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Group] @go(Items,[]Group) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_groupmembership_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_groupmembership_types_go_gen.cue deleted file mode 100644 index 5b1ec6c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_groupmembership_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GroupMembershipInitParameters: { - // The name to identify the Group Membership - name?: null | string @go(Name,*string) -} - -#GroupMembershipObservation: { - // – The IAM Group name to attach the list of users to - group?: null | string @go(Group,*string) - id?: null | string @go(ID,*string) - - // The name to identify the Group Membership - name?: null | string @go(Name,*string) - - // A list of IAM User names to associate with the Group - users?: [...null | string] @go(Users,[]*string) -} - -#GroupMembershipParameters: { - // – The IAM Group name to attach the list of users to - // +crossplane:generate:reference:type=Group - // +kubebuilder:validation:Optional - group?: null | string @go(Group,*string) - - // Reference to a Group to populate group. - // +kubebuilder:validation:Optional - groupRef?: null | v1.#Reference @go(GroupRef,*v1.Reference) - - // Selector for a Group to populate group. - // +kubebuilder:validation:Optional - groupSelector?: null | v1.#Selector @go(GroupSelector,*v1.Selector) - - // The name to identify the Group Membership - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // References to User to populate users. - // +kubebuilder:validation:Optional - userRefs?: [...v1.#Reference] @go(UserRefs,[]v1.Reference) - - // Selector for a list of User to populate users. - // +kubebuilder:validation:Optional - userSelector?: null | v1.#Selector @go(UserSelector,*v1.Selector) - - // A list of IAM User names to associate with the Group - // +crossplane:generate:reference:type=User - // +crossplane:generate:reference:refFieldName=UserRefs - // +crossplane:generate:reference:selectorFieldName=UserSelector - // +kubebuilder:validation:Optional - users?: [...null | string] @go(Users,[]*string) -} - -// GroupMembershipSpec defines the desired state of GroupMembership -#GroupMembershipSpec: { - v1.#ResourceSpec - forProvider: #GroupMembershipParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GroupMembershipInitParameters @go(InitProvider) -} - -// GroupMembershipStatus defines the observed state of GroupMembership. -#GroupMembershipStatus: { - v1.#ResourceStatus - atProvider?: #GroupMembershipObservation @go(AtProvider) -} - -// GroupMembership is the Schema for the GroupMemberships API. Provides a top level resource to manage IAM Group membership for IAM Users. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GroupMembership: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #GroupMembershipSpec @go(Spec) - status?: #GroupMembershipStatus @go(Status) -} - -// GroupMembershipList contains a list of GroupMemberships -#GroupMembershipList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GroupMembership] @go(Items,[]GroupMembership) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_grouppolicyattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_grouppolicyattachment_types_go_gen.cue deleted file mode 100644 index 26cea3f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_grouppolicyattachment_types_go_gen.cue +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GroupPolicyAttachmentInitParameters: { -} - -#GroupPolicyAttachmentObservation: { - // The group the policy should be applied to - group?: null | string @go(Group,*string) - id?: null | string @go(ID,*string) - - // The ARN of the policy you want to apply - policyArn?: null | string @go(PolicyArn,*string) -} - -#GroupPolicyAttachmentParameters: { - // The group the policy should be applied to - // +crossplane:generate:reference:type=Group - // +kubebuilder:validation:Optional - group?: null | string @go(Group,*string) - - // Reference to a Group to populate group. - // +kubebuilder:validation:Optional - groupRef?: null | v1.#Reference @go(GroupRef,*v1.Reference) - - // Selector for a Group to populate group. - // +kubebuilder:validation:Optional - groupSelector?: null | v1.#Selector @go(GroupSelector,*v1.Selector) - - // The ARN of the policy you want to apply - // +crossplane:generate:reference:type=Policy - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - policyArn?: null | string @go(PolicyArn,*string) - - // Reference to a Policy to populate policyArn. - // +kubebuilder:validation:Optional - policyArnRef?: null | v1.#Reference @go(PolicyArnRef,*v1.Reference) - - // Selector for a Policy to populate policyArn. - // +kubebuilder:validation:Optional - policyArnSelector?: null | v1.#Selector @go(PolicyArnSelector,*v1.Selector) -} - -// GroupPolicyAttachmentSpec defines the desired state of GroupPolicyAttachment -#GroupPolicyAttachmentSpec: { - v1.#ResourceSpec - forProvider: #GroupPolicyAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GroupPolicyAttachmentInitParameters @go(InitProvider) -} - -// GroupPolicyAttachmentStatus defines the observed state of GroupPolicyAttachment. -#GroupPolicyAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #GroupPolicyAttachmentObservation @go(AtProvider) -} - -// GroupPolicyAttachment is the Schema for the GroupPolicyAttachments API. Attaches a Managed IAM Policy to an IAM group -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GroupPolicyAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #GroupPolicyAttachmentSpec @go(Spec) - status?: #GroupPolicyAttachmentStatus @go(Status) -} - -// GroupPolicyAttachmentList contains a list of GroupPolicyAttachments -#GroupPolicyAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GroupPolicyAttachment] @go(Items,[]GroupPolicyAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 447700a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=iam.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "iam.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_instanceprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_instanceprofile_types_go_gen.cue deleted file mode 100644 index 2233016..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_instanceprofile_types_go_gen.cue +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InstanceProfileInitParameters: { - // Path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide. Can be a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. Can include any ASCII character from the ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercase letters. - path?: null | string @go(Path,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#InstanceProfileObservation: { - // ARN assigned by AWS to the instance profile. - arn?: null | string @go(Arn,*string) - - // Creation timestamp of the instance profile. - createDate?: null | string @go(CreateDate,*string) - - // Instance profile's ID. - id?: null | string @go(ID,*string) - - // Path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide. Can be a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. Can include any ASCII character from the ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercase letters. - path?: null | string @go(Path,*string) - - // Name of the role to add to the profile. - role?: null | string @go(Role,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Unique ID assigned by AWS. - uniqueId?: null | string @go(UniqueID,*string) -} - -#InstanceProfileParameters: { - // Path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide. Can be a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. Can include any ASCII character from the ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercase letters. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // Name of the role to add to the profile. - // +crossplane:generate:reference:type=Role - // +kubebuilder:validation:Optional - role?: null | string @go(Role,*string) - - // Reference to a Role to populate role. - // +kubebuilder:validation:Optional - roleRef?: null | v1.#Reference @go(RoleRef,*v1.Reference) - - // Selector for a Role to populate role. - // +kubebuilder:validation:Optional - roleSelector?: null | v1.#Selector @go(RoleSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// InstanceProfileSpec defines the desired state of InstanceProfile -#InstanceProfileSpec: { - v1.#ResourceSpec - forProvider: #InstanceProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InstanceProfileInitParameters @go(InitProvider) -} - -// InstanceProfileStatus defines the observed state of InstanceProfile. -#InstanceProfileStatus: { - v1.#ResourceStatus - atProvider?: #InstanceProfileObservation @go(AtProvider) -} - -// InstanceProfile is the Schema for the InstanceProfiles API. Provides an IAM instance profile. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#InstanceProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #InstanceProfileSpec @go(Spec) - status?: #InstanceProfileStatus @go(Status) -} - -// InstanceProfileList contains a list of InstanceProfiles -#InstanceProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#InstanceProfile] @go(Items,[]InstanceProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_openidconnectprovider_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_openidconnectprovider_types_go_gen.cue deleted file mode 100644 index 342cc72..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_openidconnectprovider_types_go_gen.cue +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#OpenIDConnectProviderInitParameters: { - // A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.) - clientIdList?: [...null | string] @go(ClientIDList,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s). - thumbprintList?: [...null | string] @go(ThumbprintList,[]*string) - - // The URL of the identity provider. Corresponds to the iss claim. - url?: null | string @go(URL,*string) -} - -#OpenIDConnectProviderObservation: { - // The ARN assigned by AWS for this provider. - arn?: null | string @go(Arn,*string) - - // A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.) - clientIdList?: [...null | string] @go(ClientIDList,[]*string) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s). - thumbprintList?: [...null | string] @go(ThumbprintList,[]*string) - - // The URL of the identity provider. Corresponds to the iss claim. - url?: null | string @go(URL,*string) -} - -#OpenIDConnectProviderParameters: { - // A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.) - // +kubebuilder:validation:Optional - clientIdList?: [...null | string] @go(ClientIDList,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s). - // +kubebuilder:validation:Optional - thumbprintList?: [...null | string] @go(ThumbprintList,[]*string) - - // The URL of the identity provider. Corresponds to the iss claim. - // +kubebuilder:validation:Optional - url?: null | string @go(URL,*string) -} - -// OpenIDConnectProviderSpec defines the desired state of OpenIDConnectProvider -#OpenIDConnectProviderSpec: { - v1.#ResourceSpec - forProvider: #OpenIDConnectProviderParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #OpenIDConnectProviderInitParameters @go(InitProvider) -} - -// OpenIDConnectProviderStatus defines the observed state of OpenIDConnectProvider. -#OpenIDConnectProviderStatus: { - v1.#ResourceStatus - atProvider?: #OpenIDConnectProviderObservation @go(AtProvider) -} - -// OpenIDConnectProvider is the Schema for the OpenIDConnectProviders API. Provides an IAM OpenID Connect provider. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#OpenIDConnectProvider: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.clientIdList) || (has(self.initProvider) && has(self.initProvider.clientIdList))",message="spec.forProvider.clientIdList is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.thumbprintList) || (has(self.initProvider) && has(self.initProvider.thumbprintList))",message="spec.forProvider.thumbprintList is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.url) || (has(self.initProvider) && has(self.initProvider.url))",message="spec.forProvider.url is a required parameter" - spec: #OpenIDConnectProviderSpec @go(Spec) - status?: #OpenIDConnectProviderStatus @go(Status) -} - -// OpenIDConnectProviderList contains a list of OpenIDConnectProviders -#OpenIDConnectProviderList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#OpenIDConnectProvider] @go(Items,[]OpenIDConnectProvider) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_policy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_policy_types_go_gen.cue deleted file mode 100644 index 8f68b72..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_policy_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PolicyInitParameters: { - // Description of the IAM policy. - description?: null | string @go(Description,*string) - - // Path in which to create the policy. - // See IAM Identifiers for more information. - path?: null | string @go(Path,*string) - - // The policy document. This is a JSON formatted string - policy?: null | string @go(Policy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PolicyObservation: { - // The ARN assigned by AWS to this policy. - arn?: null | string @go(Arn,*string) - - // Description of the IAM policy. - description?: null | string @go(Description,*string) - - // The ARN assigned by AWS to this policy. - id?: null | string @go(ID,*string) - - // Path in which to create the policy. - // See IAM Identifiers for more information. - path?: null | string @go(Path,*string) - - // The policy document. This is a JSON formatted string - policy?: null | string @go(Policy,*string) - - // The policy's ID. - policyId?: null | string @go(PolicyID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#PolicyParameters: { - // Description of the IAM policy. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Path in which to create the policy. - // See IAM Identifiers for more information. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // The policy document. This is a JSON formatted string - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// PolicySpec defines the desired state of Policy -#PolicySpec: { - v1.#ResourceSpec - forProvider: #PolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PolicyInitParameters @go(InitProvider) -} - -// PolicyStatus defines the observed state of Policy. -#PolicyStatus: { - v1.#ResourceStatus - atProvider?: #PolicyObservation @go(AtProvider) -} - -// Policy is the Schema for the Policys API. Provides an IAM policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Policy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #PolicySpec @go(Spec) - status?: #PolicyStatus @go(Status) -} - -// PolicyList contains a list of Policys -#PolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Policy] @go(Items,[]Policy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_role_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_role_types_go_gen.cue deleted file mode 100644 index 89284ec..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_role_types_go_gen.cue +++ /dev/null @@ -1,210 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InlinePolicyInitParameters: { - // Friendly name of the role. See IAM Identifiers for more information. - name?: null | string @go(Name,*string) - - // Policy document as a JSON formatted string. - policy?: null | string @go(Policy,*string) -} - -#InlinePolicyObservation: { - // Friendly name of the role. See IAM Identifiers for more information. - name?: null | string @go(Name,*string) - - // Policy document as a JSON formatted string. - policy?: null | string @go(Policy,*string) -} - -#InlinePolicyParameters: { - // Friendly name of the role. See IAM Identifiers for more information. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Policy document as a JSON formatted string. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) -} - -#RoleInitParameters: { - // Policy that grants an entity permission to assume the role. - assumeRolePolicy?: null | string @go(AssumeRolePolicy,*string) - - // Description of the role. - description?: null | string @go(Description,*string) - - // Whether to force detaching any policies the role has before destroying it. Defaults to false. - forceDetachPolicies?: null | bool @go(ForceDetachPolicies,*bool) - - // Configuration block defining an exclusive set of IAM inline policies associated with the IAM role. See below. If no blocks are configured, Crossplane will not manage any inline policies in this resource. Configuring one empty block (i.e., inline_policy {}) will cause Crossplane to remove all inline policies added out of band on apply. - inlinePolicy?: [...#InlinePolicyInitParameters] @go(InlinePolicy,[]InlinePolicyInitParameters) - - // Set of exclusive IAM managed policy ARNs to attach to the IAM role. If this attribute is not configured, Crossplane will ignore policy attachments to this resource. When configured, Crossplane will align the role's managed policy attachments with this set by attaching or detaching managed policies. Configuring an empty set (i.e., managed_policy_arns = []) will cause Crossplane to remove all managed policy attachments. - managedPolicyArns?: [...null | string] @go(ManagedPolicyArns,[]*string) - - // Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours. - maxSessionDuration?: null | float64 @go(MaxSessionDuration,*float64) - - // Path to the role. See IAM Identifiers for more information. - path?: null | string @go(Path,*string) - - // ARN of the policy that is used to set the permissions boundary for the role. - permissionsBoundary?: null | string @go(PermissionsBoundary,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RoleLastUsedInitParameters: { -} - -#RoleLastUsedObservation: { - lastUsedDate?: null | string @go(LastUsedDate,*string) - - // The name of the AWS Region in which the role was last used. - region?: null | string @go(Region,*string) -} - -#RoleLastUsedParameters: { -} - -#RoleObservation: { - // Amazon Resource Name (ARN) specifying the role. - arn?: null | string @go(Arn,*string) - - // Policy that grants an entity permission to assume the role. - assumeRolePolicy?: null | string @go(AssumeRolePolicy,*string) - - // Creation date of the IAM role. - createDate?: null | string @go(CreateDate,*string) - - // Description of the role. - description?: null | string @go(Description,*string) - - // Whether to force detaching any policies the role has before destroying it. Defaults to false. - forceDetachPolicies?: null | bool @go(ForceDetachPolicies,*bool) - - // Name of the role. - id?: null | string @go(ID,*string) - - // Configuration block defining an exclusive set of IAM inline policies associated with the IAM role. See below. If no blocks are configured, Crossplane will not manage any inline policies in this resource. Configuring one empty block (i.e., inline_policy {}) will cause Crossplane to remove all inline policies added out of band on apply. - inlinePolicy?: [...#InlinePolicyObservation] @go(InlinePolicy,[]InlinePolicyObservation) - - // Set of exclusive IAM managed policy ARNs to attach to the IAM role. If this attribute is not configured, Crossplane will ignore policy attachments to this resource. When configured, Crossplane will align the role's managed policy attachments with this set by attaching or detaching managed policies. Configuring an empty set (i.e., managed_policy_arns = []) will cause Crossplane to remove all managed policy attachments. - managedPolicyArns?: [...null | string] @go(ManagedPolicyArns,[]*string) - - // Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours. - maxSessionDuration?: null | float64 @go(MaxSessionDuration,*float64) - - // Path to the role. See IAM Identifiers for more information. - path?: null | string @go(Path,*string) - - // ARN of the policy that is used to set the permissions boundary for the role. - permissionsBoundary?: null | string @go(PermissionsBoundary,*string) - - // Contains information about the last time that an IAM role was used. See role_last_used for details. - roleLastUsed?: [...#RoleLastUsedObservation] @go(RoleLastUsed,[]RoleLastUsedObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Stable and unique string identifying the role. - uniqueId?: null | string @go(UniqueID,*string) -} - -#RoleParameters: { - // Policy that grants an entity permission to assume the role. - // +kubebuilder:validation:Optional - assumeRolePolicy?: null | string @go(AssumeRolePolicy,*string) - - // Description of the role. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether to force detaching any policies the role has before destroying it. Defaults to false. - // +kubebuilder:validation:Optional - forceDetachPolicies?: null | bool @go(ForceDetachPolicies,*bool) - - // Configuration block defining an exclusive set of IAM inline policies associated with the IAM role. See below. If no blocks are configured, Crossplane will not manage any inline policies in this resource. Configuring one empty block (i.e., inline_policy {}) will cause Crossplane to remove all inline policies added out of band on apply. - // +kubebuilder:validation:Optional - inlinePolicy?: [...#InlinePolicyParameters] @go(InlinePolicy,[]InlinePolicyParameters) - - // Set of exclusive IAM managed policy ARNs to attach to the IAM role. If this attribute is not configured, Crossplane will ignore policy attachments to this resource. When configured, Crossplane will align the role's managed policy attachments with this set by attaching or detaching managed policies. Configuring an empty set (i.e., managed_policy_arns = []) will cause Crossplane to remove all managed policy attachments. - // +kubebuilder:validation:Optional - managedPolicyArns?: [...null | string] @go(ManagedPolicyArns,[]*string) - - // Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours. - // +kubebuilder:validation:Optional - maxSessionDuration?: null | float64 @go(MaxSessionDuration,*float64) - - // Path to the role. See IAM Identifiers for more information. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // ARN of the policy that is used to set the permissions boundary for the role. - // +kubebuilder:validation:Optional - permissionsBoundary?: null | string @go(PermissionsBoundary,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RoleSpec defines the desired state of Role -#RoleSpec: { - v1.#ResourceSpec - forProvider: #RoleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RoleInitParameters @go(InitProvider) -} - -// RoleStatus defines the observed state of Role. -#RoleStatus: { - v1.#ResourceStatus - atProvider?: #RoleObservation @go(AtProvider) -} - -// Role is the Schema for the Roles API. Provides an IAM role. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Role: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.assumeRolePolicy) || (has(self.initProvider) && has(self.initProvider.assumeRolePolicy))",message="spec.forProvider.assumeRolePolicy is a required parameter" - spec: #RoleSpec @go(Spec) - status?: #RoleStatus @go(Status) -} - -// RoleList contains a list of Roles -#RoleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Role] @go(Items,[]Role) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_rolepolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_rolepolicy_types_go_gen.cue deleted file mode 100644 index b9ab17a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_rolepolicy_types_go_gen.cue +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RolePolicyInitParameters: { - // The inline policy document. This is a JSON formatted string - policy?: null | string @go(Policy,*string) -} - -#RolePolicyObservation: { - // The role policy ID, in the form of role_name:role_policy_name. - id?: null | string @go(ID,*string) - - // The inline policy document. This is a JSON formatted string - policy?: null | string @go(Policy,*string) - - // The name of the IAM role to attach to the policy. - role?: null | string @go(Role,*string) -} - -#RolePolicyParameters: { - // The inline policy document. This is a JSON formatted string - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // The name of the IAM role to attach to the policy. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - role?: null | string @go(Role,*string) - - // Reference to a Role in iam to populate role. - // +kubebuilder:validation:Optional - roleRef?: null | v1.#Reference @go(RoleRef,*v1.Reference) - - // Selector for a Role in iam to populate role. - // +kubebuilder:validation:Optional - roleSelector?: null | v1.#Selector @go(RoleSelector,*v1.Selector) -} - -// RolePolicySpec defines the desired state of RolePolicy -#RolePolicySpec: { - v1.#ResourceSpec - forProvider: #RolePolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RolePolicyInitParameters @go(InitProvider) -} - -// RolePolicyStatus defines the observed state of RolePolicy. -#RolePolicyStatus: { - v1.#ResourceStatus - atProvider?: #RolePolicyObservation @go(AtProvider) -} - -// RolePolicy is the Schema for the RolePolicys API. Provides an IAM role policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RolePolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #RolePolicySpec @go(Spec) - status?: #RolePolicyStatus @go(Status) -} - -// RolePolicyList contains a list of RolePolicys -#RolePolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RolePolicy] @go(Items,[]RolePolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_rolepolicyattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_rolepolicyattachment_types_go_gen.cue deleted file mode 100644 index bf4a0e5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_rolepolicyattachment_types_go_gen.cue +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RolePolicyAttachmentInitParameters: { -} - -#RolePolicyAttachmentObservation: { - id?: null | string @go(ID,*string) - - // The ARN of the policy you want to apply - policyArn?: null | string @go(PolicyArn,*string) - - // The name of the IAM role to which the policy should be applied - role?: null | string @go(Role,*string) -} - -#RolePolicyAttachmentParameters: { - // The ARN of the policy you want to apply - // +crossplane:generate:reference:type=Policy - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - policyArn?: null | string @go(PolicyArn,*string) - - // Reference to a Policy to populate policyArn. - // +kubebuilder:validation:Optional - policyArnRef?: null | v1.#Reference @go(PolicyArnRef,*v1.Reference) - - // Selector for a Policy to populate policyArn. - // +kubebuilder:validation:Optional - policyArnSelector?: null | v1.#Selector @go(PolicyArnSelector,*v1.Selector) - - // The name of the IAM role to which the policy should be applied - // +crossplane:generate:reference:type=Role - // +kubebuilder:validation:Optional - role?: null | string @go(Role,*string) - - // Reference to a Role to populate role. - // +kubebuilder:validation:Optional - roleRef?: null | v1.#Reference @go(RoleRef,*v1.Reference) - - // Selector for a Role to populate role. - // +kubebuilder:validation:Optional - roleSelector?: null | v1.#Selector @go(RoleSelector,*v1.Selector) -} - -// RolePolicyAttachmentSpec defines the desired state of RolePolicyAttachment -#RolePolicyAttachmentSpec: { - v1.#ResourceSpec - forProvider: #RolePolicyAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RolePolicyAttachmentInitParameters @go(InitProvider) -} - -// RolePolicyAttachmentStatus defines the observed state of RolePolicyAttachment. -#RolePolicyAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #RolePolicyAttachmentObservation @go(AtProvider) -} - -// RolePolicyAttachment is the Schema for the RolePolicyAttachments API. Attaches a Managed IAM Policy to an IAM role -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RolePolicyAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RolePolicyAttachmentSpec @go(Spec) - status?: #RolePolicyAttachmentStatus @go(Status) -} - -// RolePolicyAttachmentList contains a list of RolePolicyAttachments -#RolePolicyAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RolePolicyAttachment] @go(Items,[]RolePolicyAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_samlprovider_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_samlprovider_types_go_gen.cue deleted file mode 100644 index 84f9cc7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_samlprovider_types_go_gen.cue +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SAMLProviderInitParameters: { - // An XML document generated by an identity provider that supports SAML 2.0. - samlMetadataDocument?: null | string @go(SAMLMetadataDocument,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SAMLProviderObservation: { - // The ARN assigned by AWS for this provider. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // An XML document generated by an identity provider that supports SAML 2.0. - samlMetadataDocument?: null | string @go(SAMLMetadataDocument,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The expiration date and time for the SAML provider in RFC1123 format, e.g., Mon, 02 Jan 2006 15:04:05 MST. - validUntil?: null | string @go(ValidUntil,*string) -} - -#SAMLProviderParameters: { - // An XML document generated by an identity provider that supports SAML 2.0. - // +kubebuilder:validation:Optional - samlMetadataDocument?: null | string @go(SAMLMetadataDocument,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SAMLProviderSpec defines the desired state of SAMLProvider -#SAMLProviderSpec: { - v1.#ResourceSpec - forProvider: #SAMLProviderParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SAMLProviderInitParameters @go(InitProvider) -} - -// SAMLProviderStatus defines the observed state of SAMLProvider. -#SAMLProviderStatus: { - v1.#ResourceStatus - atProvider?: #SAMLProviderObservation @go(AtProvider) -} - -// SAMLProvider is the Schema for the SAMLProviders API. Provides an IAM SAML provider. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SAMLProvider: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.samlMetadataDocument) || (has(self.initProvider) && has(self.initProvider.samlMetadataDocument))",message="spec.forProvider.samlMetadataDocument is a required parameter" - spec: #SAMLProviderSpec @go(Spec) - status?: #SAMLProviderStatus @go(Status) -} - -// SAMLProviderList contains a list of SAMLProviders -#SAMLProviderList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SAMLProvider] @go(Items,[]SAMLProvider) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_servercertificate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_servercertificate_types_go_gen.cue deleted file mode 100644 index 1c81f4d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_servercertificate_types_go_gen.cue +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ServerCertificateInitParameters: { - // encoded format. - certificateBody?: null | string @go(CertificateBody,*string) - - // encoded public key certificates - // of the chain. - certificateChain?: null | string @go(CertificateChain,*string) - - // The IAM path for the server certificate. If it is not - // included, it defaults to a slash (/). If this certificate is for use with - // AWS CloudFront, the path must be in format /cloudfront/your_path_here. - // See IAM Identifiers for more details on IAM Paths. - path?: null | string @go(Path,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ServerCertificateObservation: { - // The Amazon Resource Name (ARN) specifying the server certificate. - arn?: null | string @go(Arn,*string) - - // encoded format. - certificateBody?: null | string @go(CertificateBody,*string) - - // encoded public key certificates - // of the chain. - certificateChain?: null | string @go(CertificateChain,*string) - - // Date and time in RFC3339 format on which the certificate is set to expire. - expiration?: null | string @go(Expiration,*string) - - // The unique Server Certificate name - id?: null | string @go(ID,*string) - - // The IAM path for the server certificate. If it is not - // included, it defaults to a slash (/). If this certificate is for use with - // AWS CloudFront, the path must be in format /cloudfront/your_path_here. - // See IAM Identifiers for more details on IAM Paths. - path?: null | string @go(Path,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Date and time in RFC3339 format when the server certificate was uploaded. - uploadDate?: null | string @go(UploadDate,*string) -} - -#ServerCertificateParameters: { - // encoded format. - // +kubebuilder:validation:Optional - certificateBody?: null | string @go(CertificateBody,*string) - - // encoded public key certificates - // of the chain. - // +kubebuilder:validation:Optional - certificateChain?: null | string @go(CertificateChain,*string) - - // The IAM path for the server certificate. If it is not - // included, it defaults to a slash (/). If this certificate is for use with - // AWS CloudFront, the path must be in format /cloudfront/your_path_here. - // See IAM Identifiers for more details on IAM Paths. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // encoded format. - // +kubebuilder:validation:Optional - privateKeySecretRef: v1.#SecretKeySelector @go(PrivateKeySecretRef) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ServerCertificateSpec defines the desired state of ServerCertificate -#ServerCertificateSpec: { - v1.#ResourceSpec - forProvider: #ServerCertificateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ServerCertificateInitParameters @go(InitProvider) -} - -// ServerCertificateStatus defines the observed state of ServerCertificate. -#ServerCertificateStatus: { - v1.#ResourceStatus - atProvider?: #ServerCertificateObservation @go(AtProvider) -} - -// ServerCertificate is the Schema for the ServerCertificates API. Provides an IAM Server Certificate -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ServerCertificate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.certificateBody) || (has(self.initProvider) && has(self.initProvider.certificateBody))",message="spec.forProvider.certificateBody is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.privateKeySecretRef)",message="spec.forProvider.privateKeySecretRef is a required parameter" - spec: #ServerCertificateSpec @go(Spec) - status?: #ServerCertificateStatus @go(Status) -} - -// ServerCertificateList contains a list of ServerCertificates -#ServerCertificateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ServerCertificate] @go(Items,[]ServerCertificate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_servicelinkedrole_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_servicelinkedrole_types_go_gen.cue deleted file mode 100644 index f46f08c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_servicelinkedrole_types_go_gen.cue +++ /dev/null @@ -1,124 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ServiceLinkedRoleInitParameters: { - // The AWS service to which this role is attached. You use a string similar to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com. To find the full list of services that support service-linked roles, check the docs. - awsServiceName?: null | string @go(AwsServiceName,*string) - - // Additional string appended to the role name. Not all AWS services support custom suffixes. - customSuffix?: null | string @go(CustomSuffix,*string) - - // The description of the role. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ServiceLinkedRoleObservation: { - // The Amazon Resource Name (ARN) specifying the role. - arn?: null | string @go(Arn,*string) - - // The AWS service to which this role is attached. You use a string similar to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com. To find the full list of services that support service-linked roles, check the docs. - awsServiceName?: null | string @go(AwsServiceName,*string) - - // The creation date of the IAM role. - createDate?: null | string @go(CreateDate,*string) - - // Additional string appended to the role name. Not all AWS services support custom suffixes. - customSuffix?: null | string @go(CustomSuffix,*string) - - // The description of the role. - description?: null | string @go(Description,*string) - - // The Amazon Resource Name (ARN) of the role. - id?: null | string @go(ID,*string) - - // The name of the role. - name?: null | string @go(Name,*string) - - // The path of the role. - path?: null | string @go(Path,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The stable and unique string identifying the role. - uniqueId?: null | string @go(UniqueID,*string) -} - -#ServiceLinkedRoleParameters: { - // The AWS service to which this role is attached. You use a string similar to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com. To find the full list of services that support service-linked roles, check the docs. - // +kubebuilder:validation:Optional - awsServiceName?: null | string @go(AwsServiceName,*string) - - // Additional string appended to the role name. Not all AWS services support custom suffixes. - // +kubebuilder:validation:Optional - customSuffix?: null | string @go(CustomSuffix,*string) - - // The description of the role. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ServiceLinkedRoleSpec defines the desired state of ServiceLinkedRole -#ServiceLinkedRoleSpec: { - v1.#ResourceSpec - forProvider: #ServiceLinkedRoleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ServiceLinkedRoleInitParameters @go(InitProvider) -} - -// ServiceLinkedRoleStatus defines the observed state of ServiceLinkedRole. -#ServiceLinkedRoleStatus: { - v1.#ResourceStatus - atProvider?: #ServiceLinkedRoleObservation @go(AtProvider) -} - -// ServiceLinkedRole is the Schema for the ServiceLinkedRoles API. Provides an IAM service-linked role. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ServiceLinkedRole: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.awsServiceName) || (has(self.initProvider) && has(self.initProvider.awsServiceName))",message="spec.forProvider.awsServiceName is a required parameter" - spec: #ServiceLinkedRoleSpec @go(Spec) - status?: #ServiceLinkedRoleStatus @go(Status) -} - -// ServiceLinkedRoleList contains a list of ServiceLinkedRoles -#ServiceLinkedRoleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ServiceLinkedRole] @go(Items,[]ServiceLinkedRole) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_servicespecificcredential_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_servicespecificcredential_types_go_gen.cue deleted file mode 100644 index 27883fe..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_servicespecificcredential_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ServiceSpecificCredentialInitParameters: { - // The name of the AWS service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials. - serviceName?: null | string @go(ServiceName,*string) - - // The status to be assigned to the service-specific credential. Valid values are Active and Inactive. Default value is Active. - status?: null | string @go(Status,*string) -} - -#ServiceSpecificCredentialObservation: { - // The combination of service_name and user_name as such: service_name:user_name:service_specific_credential_id. - id?: null | string @go(ID,*string) - - // The name of the AWS service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials. - serviceName?: null | string @go(ServiceName,*string) - - // The unique identifier for the service-specific credential. - serviceSpecificCredentialId?: null | string @go(ServiceSpecificCredentialID,*string) - - // The generated user name for the service-specific credential. This value is generated by combining the IAM user's name combined with the ID number of the AWS account, as in jane-at-123456789012, for example. - serviceUserName?: null | string @go(ServiceUserName,*string) - - // The status to be assigned to the service-specific credential. Valid values are Active and Inactive. Default value is Active. - status?: null | string @go(Status,*string) - - // The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the associated user except that they can be used only to access the specified service. - userName?: null | string @go(UserName,*string) -} - -#ServiceSpecificCredentialParameters: { - // The name of the AWS service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials. - // +kubebuilder:validation:Optional - serviceName?: null | string @go(ServiceName,*string) - - // The status to be assigned to the service-specific credential. Valid values are Active and Inactive. Default value is Active. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the associated user except that they can be used only to access the specified service. - // +crossplane:generate:reference:type=User - // +kubebuilder:validation:Optional - userName?: null | string @go(UserName,*string) - - // Reference to a User to populate userName. - // +kubebuilder:validation:Optional - userNameRef?: null | v1.#Reference @go(UserNameRef,*v1.Reference) - - // Selector for a User to populate userName. - // +kubebuilder:validation:Optional - userNameSelector?: null | v1.#Selector @go(UserNameSelector,*v1.Selector) -} - -// ServiceSpecificCredentialSpec defines the desired state of ServiceSpecificCredential -#ServiceSpecificCredentialSpec: { - v1.#ResourceSpec - forProvider: #ServiceSpecificCredentialParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ServiceSpecificCredentialInitParameters @go(InitProvider) -} - -// ServiceSpecificCredentialStatus defines the observed state of ServiceSpecificCredential. -#ServiceSpecificCredentialStatus: { - v1.#ResourceStatus - atProvider?: #ServiceSpecificCredentialObservation @go(AtProvider) -} - -// ServiceSpecificCredential is the Schema for the ServiceSpecificCredentials API. Provides an IAM Service Specific Credential. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ServiceSpecificCredential: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))",message="spec.forProvider.serviceName is a required parameter" - spec: #ServiceSpecificCredentialSpec @go(Spec) - status?: #ServiceSpecificCredentialStatus @go(Status) -} - -// ServiceSpecificCredentialList contains a list of ServiceSpecificCredentials -#ServiceSpecificCredentialList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ServiceSpecificCredential] @go(Items,[]ServiceSpecificCredential) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_signingcertificate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_signingcertificate_types_go_gen.cue deleted file mode 100644 index 0a56c70..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_signingcertificate_types_go_gen.cue +++ /dev/null @@ -1,100 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SigningCertificateInitParameters: { - // encoded format. - certificateBody?: null | string @go(CertificateBody,*string) - - // – The status you want to assign to the certificate. Active means that the certificate can be used for programmatic calls to Amazon Web Services Inactive means that the certificate cannot be used. - status?: null | string @go(Status,*string) - - // – The name of the user the signing certificate is for. - userName?: null | string @go(UserName,*string) -} - -#SigningCertificateObservation: { - // encoded format. - certificateBody?: null | string @go(CertificateBody,*string) - - // The ID for the signing certificate. - certificateId?: null | string @go(CertificateID,*string) - - // The certificate_id:user_name - id?: null | string @go(ID,*string) - - // – The status you want to assign to the certificate. Active means that the certificate can be used for programmatic calls to Amazon Web Services Inactive means that the certificate cannot be used. - status?: null | string @go(Status,*string) - - // – The name of the user the signing certificate is for. - userName?: null | string @go(UserName,*string) -} - -#SigningCertificateParameters: { - // encoded format. - // +kubebuilder:validation:Optional - certificateBody?: null | string @go(CertificateBody,*string) - - // – The status you want to assign to the certificate. Active means that the certificate can be used for programmatic calls to Amazon Web Services Inactive means that the certificate cannot be used. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // – The name of the user the signing certificate is for. - // +kubebuilder:validation:Optional - userName?: null | string @go(UserName,*string) -} - -// SigningCertificateSpec defines the desired state of SigningCertificate -#SigningCertificateSpec: { - v1.#ResourceSpec - forProvider: #SigningCertificateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SigningCertificateInitParameters @go(InitProvider) -} - -// SigningCertificateStatus defines the observed state of SigningCertificate. -#SigningCertificateStatus: { - v1.#ResourceStatus - atProvider?: #SigningCertificateObservation @go(AtProvider) -} - -// SigningCertificate is the Schema for the SigningCertificates API. Provides an IAM Signing Certificate -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SigningCertificate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.certificateBody) || (has(self.initProvider) && has(self.initProvider.certificateBody))",message="spec.forProvider.certificateBody is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.userName) || (has(self.initProvider) && has(self.initProvider.userName))",message="spec.forProvider.userName is a required parameter" - spec: #SigningCertificateSpec @go(Spec) - status?: #SigningCertificateStatus @go(Status) -} - -// SigningCertificateList contains a list of SigningCertificates -#SigningCertificateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SigningCertificate] @go(Items,[]SigningCertificate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_user_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_user_types_go_gen.cue deleted file mode 100644 index 5e663bc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_user_types_go_gen.cue +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserInitParameters: { - // when destroying this user, destroy even if it - // has non-provider-managed iam access keys, login profile or mfa devices. without force_destroy - // a user with non-provider-managed access keys and login profile will fail to be destroyed. - // delete user even if it has non-provider-managed iam access keys, login profile or mfa devices - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Path in which to create the user. - path?: null | string @go(Path,*string) - - // The ARN of the policy that is used to set the permissions boundary for the user. - permissionsBoundary?: null | string @go(PermissionsBoundary,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#UserObservation: { - // The ARN assigned by AWS for this user. - arn?: null | string @go(Arn,*string) - - // when destroying this user, destroy even if it - // has non-provider-managed iam access keys, login profile or mfa devices. without force_destroy - // a user with non-provider-managed access keys and login profile will fail to be destroyed. - // delete user even if it has non-provider-managed iam access keys, login profile or mfa devices - forceDestroy?: null | bool @go(ForceDestroy,*bool) - id?: null | string @go(ID,*string) - - // Path in which to create the user. - path?: null | string @go(Path,*string) - - // The ARN of the policy that is used to set the permissions boundary for the user. - permissionsBoundary?: null | string @go(PermissionsBoundary,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The unique ID assigned by AWS. - uniqueId?: null | string @go(UniqueID,*string) -} - -#UserParameters: { - // when destroying this user, destroy even if it - // has non-provider-managed iam access keys, login profile or mfa devices. without force_destroy - // a user with non-provider-managed access keys and login profile will fail to be destroyed. - // delete user even if it has non-provider-managed iam access keys, login profile or mfa devices - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Path in which to create the user. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // The ARN of the policy that is used to set the permissions boundary for the user. - // +kubebuilder:validation:Optional - permissionsBoundary?: null | string @go(PermissionsBoundary,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// UserSpec defines the desired state of User -#UserSpec: { - v1.#ResourceSpec - forProvider: #UserParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserInitParameters @go(InitProvider) -} - -// UserStatus defines the observed state of User. -#UserStatus: { - v1.#ResourceStatus - atProvider?: #UserObservation @go(AtProvider) -} - -// User is the Schema for the Users API. Provides an IAM user. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#User: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #UserSpec @go(Spec) - status?: #UserStatus @go(Status) -} - -// UserList contains a list of Users -#UserList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#User] @go(Items,[]User) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_usergroupmembership_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_usergroupmembership_types_go_gen.cue deleted file mode 100644 index bb5fb94..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_usergroupmembership_types_go_gen.cue +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserGroupMembershipInitParameters: { -} - -#UserGroupMembershipObservation: { - // A list of IAM Groups to add the user to - groups?: [...null | string] @go(Groups,[]*string) - id?: null | string @go(ID,*string) - - // The name of the IAM User to add to groups - user?: null | string @go(User,*string) -} - -#UserGroupMembershipParameters: { - // References to Group to populate groups. - // +kubebuilder:validation:Optional - groupRefs?: [...v1.#Reference] @go(GroupRefs,[]v1.Reference) - - // Selector for a list of Group to populate groups. - // +kubebuilder:validation:Optional - groupSelector?: null | v1.#Selector @go(GroupSelector,*v1.Selector) - - // A list of IAM Groups to add the user to - // +crossplane:generate:reference:type=Group - // +crossplane:generate:reference:refFieldName=GroupRefs - // +crossplane:generate:reference:selectorFieldName=GroupSelector - // +kubebuilder:validation:Optional - groups?: [...null | string] @go(Groups,[]*string) - - // The name of the IAM User to add to groups - // +crossplane:generate:reference:type=User - // +kubebuilder:validation:Optional - user?: null | string @go(User,*string) - - // Reference to a User to populate user. - // +kubebuilder:validation:Optional - userRef?: null | v1.#Reference @go(UserRef,*v1.Reference) - - // Selector for a User to populate user. - // +kubebuilder:validation:Optional - userSelector?: null | v1.#Selector @go(UserSelector,*v1.Selector) -} - -// UserGroupMembershipSpec defines the desired state of UserGroupMembership -#UserGroupMembershipSpec: { - v1.#ResourceSpec - forProvider: #UserGroupMembershipParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserGroupMembershipInitParameters @go(InitProvider) -} - -// UserGroupMembershipStatus defines the observed state of UserGroupMembership. -#UserGroupMembershipStatus: { - v1.#ResourceStatus - atProvider?: #UserGroupMembershipObservation @go(AtProvider) -} - -// UserGroupMembership is the Schema for the UserGroupMemberships API. Provides a resource for adding an IAM User to IAM Groups without conflicting with itself. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserGroupMembership: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #UserGroupMembershipSpec @go(Spec) - status?: #UserGroupMembershipStatus @go(Status) -} - -// UserGroupMembershipList contains a list of UserGroupMemberships -#UserGroupMembershipList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserGroupMembership] @go(Items,[]UserGroupMembership) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_userloginprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_userloginprofile_types_go_gen.cue deleted file mode 100644 index 88f19c2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_userloginprofile_types_go_gen.cue +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserLoginProfileInitParameters: { - // The length of the generated password on resource creation. Only applies on resource creation. Drift detection is not possible with this argument. Default value is 20. - passwordLength?: null | float64 @go(PasswordLength,*float64) - - // Whether the user should be forced to reset the generated password on resource creation. Only applies on resource creation. - passwordResetRequired?: null | bool @go(PasswordResetRequired,*bool) - - // Either a base-64 encoded PGP public key, or a keybase username in the form keybase:username. Only applies on resource creation. Drift detection is not possible with this argument. - pgpKey?: null | string @go(PgpKey,*string) -} - -#UserLoginProfileObservation: { - // The encrypted password, base64 encoded. - encryptedPassword?: null | string @go(EncryptedPassword,*string) - id?: null | string @go(ID,*string) - - // The fingerprint of the PGP key used to encrypt the password. - keyFingerprint?: null | string @go(KeyFingerprint,*string) - - // The plain text password, only available when pgp_key is not provided. - password?: null | string @go(Password,*string) - - // The length of the generated password on resource creation. Only applies on resource creation. Drift detection is not possible with this argument. Default value is 20. - passwordLength?: null | float64 @go(PasswordLength,*float64) - - // Whether the user should be forced to reset the generated password on resource creation. Only applies on resource creation. - passwordResetRequired?: null | bool @go(PasswordResetRequired,*bool) - - // Either a base-64 encoded PGP public key, or a keybase username in the form keybase:username. Only applies on resource creation. Drift detection is not possible with this argument. - pgpKey?: null | string @go(PgpKey,*string) - - // The IAM user's name. - user?: null | string @go(User,*string) -} - -#UserLoginProfileParameters: { - // The length of the generated password on resource creation. Only applies on resource creation. Drift detection is not possible with this argument. Default value is 20. - // +kubebuilder:validation:Optional - passwordLength?: null | float64 @go(PasswordLength,*float64) - - // Whether the user should be forced to reset the generated password on resource creation. Only applies on resource creation. - // +kubebuilder:validation:Optional - passwordResetRequired?: null | bool @go(PasswordResetRequired,*bool) - - // Either a base-64 encoded PGP public key, or a keybase username in the form keybase:username. Only applies on resource creation. Drift detection is not possible with this argument. - // +kubebuilder:validation:Optional - pgpKey?: null | string @go(PgpKey,*string) - - // The IAM user's name. - // +crossplane:generate:reference:type=User - // +kubebuilder:validation:Optional - user?: null | string @go(User,*string) - - // Reference to a User to populate user. - // +kubebuilder:validation:Optional - userRef?: null | v1.#Reference @go(UserRef,*v1.Reference) - - // Selector for a User to populate user. - // +kubebuilder:validation:Optional - userSelector?: null | v1.#Selector @go(UserSelector,*v1.Selector) -} - -// UserLoginProfileSpec defines the desired state of UserLoginProfile -#UserLoginProfileSpec: { - v1.#ResourceSpec - forProvider: #UserLoginProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserLoginProfileInitParameters @go(InitProvider) -} - -// UserLoginProfileStatus defines the observed state of UserLoginProfile. -#UserLoginProfileStatus: { - v1.#ResourceStatus - atProvider?: #UserLoginProfileObservation @go(AtProvider) -} - -// UserLoginProfile is the Schema for the UserLoginProfiles API. Manages an IAM User Login Profile -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserLoginProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #UserLoginProfileSpec @go(Spec) - status?: #UserLoginProfileStatus @go(Status) -} - -// UserLoginProfileList contains a list of UserLoginProfiles -#UserLoginProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserLoginProfile] @go(Items,[]UserLoginProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_userpolicyattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_userpolicyattachment_types_go_gen.cue deleted file mode 100644 index d7b5e3b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_userpolicyattachment_types_go_gen.cue +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserPolicyAttachmentInitParameters: { -} - -#UserPolicyAttachmentObservation: { - id?: null | string @go(ID,*string) - - // The ARN of the policy you want to apply - policyArn?: null | string @go(PolicyArn,*string) - - // The user the policy should be applied to - user?: null | string @go(User,*string) -} - -#UserPolicyAttachmentParameters: { - // The ARN of the policy you want to apply - // +crossplane:generate:reference:type=Policy - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - policyArn?: null | string @go(PolicyArn,*string) - - // Reference to a Policy to populate policyArn. - // +kubebuilder:validation:Optional - policyArnRef?: null | v1.#Reference @go(PolicyArnRef,*v1.Reference) - - // Selector for a Policy to populate policyArn. - // +kubebuilder:validation:Optional - policyArnSelector?: null | v1.#Selector @go(PolicyArnSelector,*v1.Selector) - - // The user the policy should be applied to - // +crossplane:generate:reference:type=User - // +kubebuilder:validation:Optional - user?: null | string @go(User,*string) - - // Reference to a User to populate user. - // +kubebuilder:validation:Optional - userRef?: null | v1.#Reference @go(UserRef,*v1.Reference) - - // Selector for a User to populate user. - // +kubebuilder:validation:Optional - userSelector?: null | v1.#Selector @go(UserSelector,*v1.Selector) -} - -// UserPolicyAttachmentSpec defines the desired state of UserPolicyAttachment -#UserPolicyAttachmentSpec: { - v1.#ResourceSpec - forProvider: #UserPolicyAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserPolicyAttachmentInitParameters @go(InitProvider) -} - -// UserPolicyAttachmentStatus defines the observed state of UserPolicyAttachment. -#UserPolicyAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #UserPolicyAttachmentObservation @go(AtProvider) -} - -// UserPolicyAttachment is the Schema for the UserPolicyAttachments API. Attaches a Managed IAM Policy to an IAM user -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserPolicyAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #UserPolicyAttachmentSpec @go(Spec) - status?: #UserPolicyAttachmentStatus @go(Status) -} - -// UserPolicyAttachmentList contains a list of UserPolicyAttachments -#UserPolicyAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserPolicyAttachment] @go(Items,[]UserPolicyAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_usersshkey_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_usersshkey_types_go_gen.cue deleted file mode 100644 index b4fdcb9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_usersshkey_types_go_gen.cue +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserSSHKeyInitParameters: { - // Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH. To retrieve the public key in PEM format, use PEM. - encoding?: null | string @go(Encoding,*string) - - // The SSH public key. The public key must be encoded in ssh-rsa format or PEM format. - publicKey?: null | string @go(PublicKey,*string) - - // The status to assign to the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used. Default is active. - status?: null | string @go(Status,*string) -} - -#UserSSHKeyObservation: { - // Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH. To retrieve the public key in PEM format, use PEM. - encoding?: null | string @go(Encoding,*string) - - // The MD5 message digest of the SSH public key. - fingerprint?: null | string @go(Fingerprint,*string) - id?: null | string @go(ID,*string) - - // The SSH public key. The public key must be encoded in ssh-rsa format or PEM format. - publicKey?: null | string @go(PublicKey,*string) - - // The unique identifier for the SSH public key. - sshPublicKeyId?: null | string @go(SSHPublicKeyID,*string) - - // The status to assign to the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used. Default is active. - status?: null | string @go(Status,*string) - - // The name of the IAM user to associate the SSH public key with. - username?: null | string @go(Username,*string) -} - -#UserSSHKeyParameters: { - // Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH. To retrieve the public key in PEM format, use PEM. - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // The SSH public key. The public key must be encoded in ssh-rsa format or PEM format. - // +kubebuilder:validation:Optional - publicKey?: null | string @go(PublicKey,*string) - - // The status to assign to the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used. Default is active. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // The name of the IAM user to associate the SSH public key with. - // +crossplane:generate:reference:type=User - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) - - // Reference to a User to populate username. - // +kubebuilder:validation:Optional - usernameRef?: null | v1.#Reference @go(UsernameRef,*v1.Reference) - - // Selector for a User to populate username. - // +kubebuilder:validation:Optional - usernameSelector?: null | v1.#Selector @go(UsernameSelector,*v1.Selector) -} - -// UserSSHKeySpec defines the desired state of UserSSHKey -#UserSSHKeySpec: { - v1.#ResourceSpec - forProvider: #UserSSHKeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserSSHKeyInitParameters @go(InitProvider) -} - -// UserSSHKeyStatus defines the observed state of UserSSHKey. -#UserSSHKeyStatus: { - v1.#ResourceStatus - atProvider?: #UserSSHKeyObservation @go(AtProvider) -} - -// UserSSHKey is the Schema for the UserSSHKeys API. Uploads an SSH public key and associates it with the specified IAM user. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserSSHKey: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.encoding) || (has(self.initProvider) && has(self.initProvider.encoding))",message="spec.forProvider.encoding is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.publicKey) || (has(self.initProvider) && has(self.initProvider.publicKey))",message="spec.forProvider.publicKey is a required parameter" - spec: #UserSSHKeySpec @go(Spec) - status?: #UserSSHKeyStatus @go(Status) -} - -// UserSSHKeyList contains a list of UserSSHKeys -#UserSSHKeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserSSHKey] @go(Items,[]UserSSHKey) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_virtualmfadevice_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_virtualmfadevice_types_go_gen.cue deleted file mode 100644 index 00a88d9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iam/v1beta1/zz_virtualmfadevice_types_go_gen.cue +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iam/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VirtualMfaDeviceInitParameters: { - // – The path for the virtual MFA device. - path?: null | string @go(Path,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device. - virtualMfaDeviceName?: null | string @go(VirtualMfaDeviceName,*string) -} - -#VirtualMfaDeviceObservation: { - // The Amazon Resource Name (ARN) specifying the virtual mfa device. - arn?: null | string @go(Arn,*string) - - // The base32 seed defined as specified in RFC3548. The base_32_string_seed is base64-encoded. - base32StringSeed?: null | string @go(Base32StringSeed,*string) - id?: null | string @go(ID,*string) - - // – The path for the virtual MFA device. - path?: null | string @go(Path,*string) - - // A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String where $virtualMFADeviceName is one of the create call arguments. AccountName is the user name if set (otherwise, the account ID otherwise), and Base32String is the seed in base32 format. - qrCodePng?: null | string @go(QrCodePng,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device. - virtualMfaDeviceName?: null | string @go(VirtualMfaDeviceName,*string) -} - -#VirtualMfaDeviceParameters: { - // – The path for the virtual MFA device. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device. - // +kubebuilder:validation:Optional - virtualMfaDeviceName?: null | string @go(VirtualMfaDeviceName,*string) -} - -// VirtualMfaDeviceSpec defines the desired state of VirtualMfaDevice -#VirtualMfaDeviceSpec: { - v1.#ResourceSpec - forProvider: #VirtualMfaDeviceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VirtualMfaDeviceInitParameters @go(InitProvider) -} - -// VirtualMfaDeviceStatus defines the observed state of VirtualMfaDevice. -#VirtualMfaDeviceStatus: { - v1.#ResourceStatus - atProvider?: #VirtualMfaDeviceObservation @go(AtProvider) -} - -// VirtualMfaDevice is the Schema for the VirtualMfaDevices API. Provides an IAM Virtual MFA Device -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VirtualMfaDevice: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.virtualMfaDeviceName) || (has(self.initProvider) && has(self.initProvider.virtualMfaDeviceName))",message="spec.forProvider.virtualMfaDeviceName is a required parameter" - spec: #VirtualMfaDeviceSpec @go(Spec) - status?: #VirtualMfaDeviceStatus @go(Status) -} - -// VirtualMfaDeviceList contains a list of VirtualMfaDevices -#VirtualMfaDeviceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VirtualMfaDevice] @go(Items,[]VirtualMfaDevice) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_component_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_component_types_go_gen.cue deleted file mode 100644 index 5f7e90a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_component_types_go_gen.cue +++ /dev/null @@ -1,205 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/imagebuilder/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ComponentInitParameters: { - // Change description of the component. - changeDescription?: null | string @go(ChangeDescription,*string) - - // Inline YAML string with data of the component. Exactly one of data and uri can be specified. - data?: null | string @go(Data,*string) - - // Description of the component. - description?: null | string @go(Description,*string) - - // Name of the component. - name?: null | string @go(Name,*string) - - // Platform of the component. - platform?: null | string @go(Platform,*string) - - // Whether to retain the old version when the resource is destroyed or replacement is necessary. Defaults to false. - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Set of Operating Systems (OS) supported by the component. - supportedOsVersions?: [...null | string] @go(SupportedOsVersions,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // S3 URI with data of the component. Exactly one of data and uri can be specified. - uri?: null | string @go(URI,*string) - - // Version of the component. - version?: null | string @go(Version,*string) -} - -#ComponentObservation: { - // Amazon Resource Name (ARN) of the component. - arn?: null | string @go(Arn,*string) - - // Change description of the component. - changeDescription?: null | string @go(ChangeDescription,*string) - - // Inline YAML string with data of the component. Exactly one of data and uri can be specified. - data?: null | string @go(Data,*string) - - // Date the component was created. - dateCreated?: null | string @go(DateCreated,*string) - - // Description of the component. - description?: null | string @go(Description,*string) - - // Encryption status of the component. - encrypted?: null | bool @go(Encrypted,*bool) - id?: null | string @go(ID,*string) - - // Amazon Resource Name (ARN) of the Key Management Service (KMS) Key used to encrypt the component. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Name of the component. - name?: null | string @go(Name,*string) - - // Owner of the component. - owner?: null | string @go(Owner,*string) - - // Platform of the component. - platform?: null | string @go(Platform,*string) - - // Whether to retain the old version when the resource is destroyed or replacement is necessary. Defaults to false. - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Set of Operating Systems (OS) supported by the component. - supportedOsVersions?: [...null | string] @go(SupportedOsVersions,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Type of the component. - type?: null | string @go(Type,*string) - - // S3 URI with data of the component. Exactly one of data and uri can be specified. - uri?: null | string @go(URI,*string) - - // Version of the component. - version?: null | string @go(Version,*string) -} - -#ComponentParameters: { - // Change description of the component. - // +kubebuilder:validation:Optional - changeDescription?: null | string @go(ChangeDescription,*string) - - // Inline YAML string with data of the component. Exactly one of data and uri can be specified. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // Description of the component. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Amazon Resource Name (ARN) of the Key Management Service (KMS) Key used to encrypt the component. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Name of the component. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Platform of the component. - // +kubebuilder:validation:Optional - platform?: null | string @go(Platform,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Whether to retain the old version when the resource is destroyed or replacement is necessary. Defaults to false. - // +kubebuilder:validation:Optional - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Set of Operating Systems (OS) supported by the component. - // +kubebuilder:validation:Optional - supportedOsVersions?: [...null | string] @go(SupportedOsVersions,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // S3 URI with data of the component. Exactly one of data and uri can be specified. - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) - - // Version of the component. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -// ComponentSpec defines the desired state of Component -#ComponentSpec: { - v1.#ResourceSpec - forProvider: #ComponentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ComponentInitParameters @go(InitProvider) -} - -// ComponentStatus defines the observed state of Component. -#ComponentStatus: { - v1.#ResourceStatus - atProvider?: #ComponentObservation @go(AtProvider) -} - -// Component is the Schema for the Components API. Manage an Image Builder Component -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Component: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.platform) || (has(self.initProvider) && has(self.initProvider.platform))",message="spec.forProvider.platform is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.version) || (has(self.initProvider) && has(self.initProvider.version))",message="spec.forProvider.version is a required parameter" - spec: #ComponentSpec @go(Spec) - status?: #ComponentStatus @go(Status) -} - -// ComponentList contains a list of Components -#ComponentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Component] @go(Items,[]Component) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_containerrecipe_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_containerrecipe_types_go_gen.cue deleted file mode 100644 index ba4b8a8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_containerrecipe_types_go_gen.cue +++ /dev/null @@ -1,487 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/imagebuilder/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BlockDeviceMappingInitParameters: { - // Name of the device. For example, /dev/sda or /dev/xvdb. - deviceName?: null | string @go(DeviceName,*string) - - // Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below. - ebs?: [...#EBSInitParameters] @go(EBS,[]EBSInitParameters) - - // Set to true to remove a mapping from the parent image. - noDevice?: null | bool @go(NoDevice,*bool) - - // Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0. - virtualName?: null | string @go(VirtualName,*string) -} - -#BlockDeviceMappingObservation: { - // Name of the device. For example, /dev/sda or /dev/xvdb. - deviceName?: null | string @go(DeviceName,*string) - - // Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below. - ebs?: [...#EBSObservation] @go(EBS,[]EBSObservation) - - // Set to true to remove a mapping from the parent image. - noDevice?: null | bool @go(NoDevice,*bool) - - // Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0. - virtualName?: null | string @go(VirtualName,*string) -} - -#BlockDeviceMappingParameters: { - // Name of the device. For example, /dev/sda or /dev/xvdb. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below. - // +kubebuilder:validation:Optional - ebs?: [...#EBSParameters] @go(EBS,[]EBSParameters) - - // Set to true to remove a mapping from the parent image. - // +kubebuilder:validation:Optional - noDevice?: null | bool @go(NoDevice,*bool) - - // Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0. - // +kubebuilder:validation:Optional - virtualName?: null | string @go(VirtualName,*string) -} - -#ContainerRecipeComponentInitParameters: { - // Configuration block(s) for parameters to configure the component. Detailed below. - parameter?: [...#ParameterInitParameters] @go(Parameter,[]ParameterInitParameters) -} - -#ContainerRecipeComponentObservation: { - // Amazon Resource Name (ARN) of the Image Builder Component to associate. - componentArn?: null | string @go(ComponentArn,*string) - - // Configuration block(s) for parameters to configure the component. Detailed below. - parameter?: [...#ParameterObservation] @go(Parameter,[]ParameterObservation) -} - -#ContainerRecipeComponentParameters: { - // Amazon Resource Name (ARN) of the Image Builder Component to associate. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/imagebuilder/v1beta1.Component - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - componentArn?: null | string @go(ComponentArn,*string) - - // Reference to a Component in imagebuilder to populate componentArn. - // +kubebuilder:validation:Optional - componentArnRef?: null | v1.#Reference @go(ComponentArnRef,*v1.Reference) - - // Selector for a Component in imagebuilder to populate componentArn. - // +kubebuilder:validation:Optional - componentArnSelector?: null | v1.#Selector @go(ComponentArnSelector,*v1.Selector) - - // Configuration block(s) for parameters to configure the component. Detailed below. - // +kubebuilder:validation:Optional - parameter?: [...#ParameterParameters] @go(Parameter,[]ParameterParameters) -} - -#ContainerRecipeInitParameters: { - // Ordered configuration block(s) with components for the container recipe. Detailed below. - component?: [...#ContainerRecipeComponentInitParameters] @go(Component,[]ContainerRecipeComponentInitParameters) - - // The type of the container to create. Valid values: DOCKER. - containerType?: null | string @go(ContainerType,*string) - - // The description of the container recipe. - description?: null | string @go(Description,*string) - - // The Dockerfile template used to build the image as an inline data blob. - dockerfileTemplateData?: null | string @go(DockerfileTemplateData,*string) - - // The Amazon S3 URI for the Dockerfile that will be used to build the container image. - dockerfileTemplateUri?: null | string @go(DockerfileTemplateURI,*string) - - // Configuration block used to configure an instance for building and testing container images. Detailed below. - instanceConfiguration?: [...#InstanceConfigurationInitParameters] @go(InstanceConfiguration,[]InstanceConfigurationInitParameters) - - // The name of the container recipe. - name?: null | string @go(Name,*string) - - // The base image for the container recipe. - parentImage?: null | string @go(ParentImage,*string) - - // Specifies the operating system platform when you use a custom base image. - platformOverride?: null | string @go(PlatformOverride,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The destination repository for the container image. Detailed below. - targetRepository?: [...#TargetRepositoryInitParameters] @go(TargetRepository,[]TargetRepositoryInitParameters) - - // Version of the container recipe. - version?: null | string @go(Version,*string) - - // The working directory to be used during build and test workflows. - workingDirectory?: null | string @go(WorkingDirectory,*string) -} - -#ContainerRecipeObservation: { - // Amazon Resource Name (ARN) of the container recipe. - arn?: null | string @go(Arn,*string) - - // Ordered configuration block(s) with components for the container recipe. Detailed below. - component?: [...#ContainerRecipeComponentObservation] @go(Component,[]ContainerRecipeComponentObservation) - - // The type of the container to create. Valid values: DOCKER. - containerType?: null | string @go(ContainerType,*string) - - // Date the container recipe was created. - dateCreated?: null | string @go(DateCreated,*string) - - // The description of the container recipe. - description?: null | string @go(Description,*string) - - // The Dockerfile template used to build the image as an inline data blob. - dockerfileTemplateData?: null | string @go(DockerfileTemplateData,*string) - - // The Amazon S3 URI for the Dockerfile that will be used to build the container image. - dockerfileTemplateUri?: null | string @go(DockerfileTemplateURI,*string) - - // A flag that indicates if the target container is encrypted. - encrypted?: null | bool @go(Encrypted,*bool) - id?: null | string @go(ID,*string) - - // Configuration block used to configure an instance for building and testing container images. Detailed below. - instanceConfiguration?: [...#InstanceConfigurationObservation] @go(InstanceConfiguration,[]InstanceConfigurationObservation) - - // The KMS key used to encrypt the container image. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The name of the container recipe. - name?: null | string @go(Name,*string) - - // Owner of the container recipe. - owner?: null | string @go(Owner,*string) - - // The base image for the container recipe. - parentImage?: null | string @go(ParentImage,*string) - - // Platform of the container recipe. - platform?: null | string @go(Platform,*string) - - // Specifies the operating system platform when you use a custom base image. - platformOverride?: null | string @go(PlatformOverride,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The destination repository for the container image. Detailed below. - targetRepository?: [...#TargetRepositoryObservation] @go(TargetRepository,[]TargetRepositoryObservation) - - // Version of the container recipe. - version?: null | string @go(Version,*string) - - // The working directory to be used during build and test workflows. - workingDirectory?: null | string @go(WorkingDirectory,*string) -} - -#ContainerRecipeParameters: { - // Ordered configuration block(s) with components for the container recipe. Detailed below. - // +kubebuilder:validation:Optional - component?: [...#ContainerRecipeComponentParameters] @go(Component,[]ContainerRecipeComponentParameters) - - // The type of the container to create. Valid values: DOCKER. - // +kubebuilder:validation:Optional - containerType?: null | string @go(ContainerType,*string) - - // The description of the container recipe. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The Dockerfile template used to build the image as an inline data blob. - // +kubebuilder:validation:Optional - dockerfileTemplateData?: null | string @go(DockerfileTemplateData,*string) - - // The Amazon S3 URI for the Dockerfile that will be used to build the container image. - // +kubebuilder:validation:Optional - dockerfileTemplateUri?: null | string @go(DockerfileTemplateURI,*string) - - // Configuration block used to configure an instance for building and testing container images. Detailed below. - // +kubebuilder:validation:Optional - instanceConfiguration?: [...#InstanceConfigurationParameters] @go(InstanceConfiguration,[]InstanceConfigurationParameters) - - // The KMS key used to encrypt the container image. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // The name of the container recipe. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The base image for the container recipe. - // +kubebuilder:validation:Optional - parentImage?: null | string @go(ParentImage,*string) - - // Specifies the operating system platform when you use a custom base image. - // +kubebuilder:validation:Optional - platformOverride?: null | string @go(PlatformOverride,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The destination repository for the container image. Detailed below. - // +kubebuilder:validation:Optional - targetRepository?: [...#TargetRepositoryParameters] @go(TargetRepository,[]TargetRepositoryParameters) - - // Version of the container recipe. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) - - // The working directory to be used during build and test workflows. - // +kubebuilder:validation:Optional - workingDirectory?: null | string @go(WorkingDirectory,*string) -} - -#EBSInitParameters: { - // Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image. - deleteOnTermination?: null | string @go(DeleteOnTermination,*string) - - // Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. - encrypted?: null | string @go(Encrypted,*string) - - // Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume. - iops?: null | float64 @go(Iops,*float64) - - // Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Identifier of the EC2 Volume Snapshot. - snapshotId?: null | string @go(SnapshotID,*string) - - // For GP3 volumes only. The throughput in MiB/s that the volume supports. - throughput?: null | float64 @go(Throughput,*float64) - - // Size of the volume, in GiB. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of the volume. For example, gp2 or io2. - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSObservation: { - // Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image. - deleteOnTermination?: null | string @go(DeleteOnTermination,*string) - - // Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. - encrypted?: null | string @go(Encrypted,*string) - - // Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume. - iops?: null | float64 @go(Iops,*float64) - - // Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Identifier of the EC2 Volume Snapshot. - snapshotId?: null | string @go(SnapshotID,*string) - - // For GP3 volumes only. The throughput in MiB/s that the volume supports. - throughput?: null | float64 @go(Throughput,*float64) - - // Size of the volume, in GiB. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of the volume. For example, gp2 or io2. - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSParameters: { - // Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image. - // +kubebuilder:validation:Optional - deleteOnTermination?: null | string @go(DeleteOnTermination,*string) - - // Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. - // +kubebuilder:validation:Optional - encrypted?: null | string @go(Encrypted,*string) - - // Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Identifier of the EC2 Volume Snapshot. - // +kubebuilder:validation:Optional - snapshotId?: null | string @go(SnapshotID,*string) - - // For GP3 volumes only. The throughput in MiB/s that the volume supports. - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // Size of the volume, in GiB. - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of the volume. For example, gp2 or io2. - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -#InstanceConfigurationInitParameters: { - // Configuration block(s) with block device mappings for the container recipe. Detailed below. - blockDeviceMapping?: [...#BlockDeviceMappingInitParameters] @go(BlockDeviceMapping,[]BlockDeviceMappingInitParameters) - - // The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image. - image?: null | string @go(Image,*string) -} - -#InstanceConfigurationObservation: { - // Configuration block(s) with block device mappings for the container recipe. Detailed below. - blockDeviceMapping?: [...#BlockDeviceMappingObservation] @go(BlockDeviceMapping,[]BlockDeviceMappingObservation) - - // The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image. - image?: null | string @go(Image,*string) -} - -#InstanceConfigurationParameters: { - // Configuration block(s) with block device mappings for the container recipe. Detailed below. - // +kubebuilder:validation:Optional - blockDeviceMapping?: [...#BlockDeviceMappingParameters] @go(BlockDeviceMapping,[]BlockDeviceMappingParameters) - - // The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image. - // +kubebuilder:validation:Optional - image?: null | string @go(Image,*string) -} - -#ParameterInitParameters: { - // The name of the component parameter. - name?: null | string @go(Name,*string) - - // The value for the named component parameter. - value?: null | string @go(Value,*string) -} - -#ParameterObservation: { - // The name of the component parameter. - name?: null | string @go(Name,*string) - - // The value for the named component parameter. - value?: null | string @go(Value,*string) -} - -#ParameterParameters: { - // The name of the component parameter. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value for the named component parameter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#TargetRepositoryInitParameters: { - // The service in which this image is registered. Valid values: ECR. - service?: null | string @go(Service,*string) -} - -#TargetRepositoryObservation: { - // The name of the container repository where the output container image is stored. This name is prefixed by the repository location. - repositoryName?: null | string @go(RepositoryName,*string) - - // The service in which this image is registered. Valid values: ECR. - service?: null | string @go(Service,*string) -} - -#TargetRepositoryParameters: { - // The name of the container repository where the output container image is stored. This name is prefixed by the repository location. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ecr/v1beta1.Repository - // +kubebuilder:validation:Optional - repositoryName?: null | string @go(RepositoryName,*string) - - // Reference to a Repository in ecr to populate repositoryName. - // +kubebuilder:validation:Optional - repositoryNameRef?: null | v1.#Reference @go(RepositoryNameRef,*v1.Reference) - - // Selector for a Repository in ecr to populate repositoryName. - // +kubebuilder:validation:Optional - repositoryNameSelector?: null | v1.#Selector @go(RepositoryNameSelector,*v1.Selector) - - // The service in which this image is registered. Valid values: ECR. - // +kubebuilder:validation:Optional - service?: null | string @go(Service,*string) -} - -// ContainerRecipeSpec defines the desired state of ContainerRecipe -#ContainerRecipeSpec: { - v1.#ResourceSpec - forProvider: #ContainerRecipeParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ContainerRecipeInitParameters @go(InitProvider) -} - -// ContainerRecipeStatus defines the observed state of ContainerRecipe. -#ContainerRecipeStatus: { - v1.#ResourceStatus - atProvider?: #ContainerRecipeObservation @go(AtProvider) -} - -// ContainerRecipe is the Schema for the ContainerRecipes API. Manage an Image Builder Container Recipe -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ContainerRecipe: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.component) || (has(self.initProvider) && has(self.initProvider.component))",message="spec.forProvider.component is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.containerType) || (has(self.initProvider) && has(self.initProvider.containerType))",message="spec.forProvider.containerType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.parentImage) || (has(self.initProvider) && has(self.initProvider.parentImage))",message="spec.forProvider.parentImage is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targetRepository) || (has(self.initProvider) && has(self.initProvider.targetRepository))",message="spec.forProvider.targetRepository is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.version) || (has(self.initProvider) && has(self.initProvider.version))",message="spec.forProvider.version is a required parameter" - spec: #ContainerRecipeSpec @go(Spec) - status?: #ContainerRecipeStatus @go(Status) -} - -// ContainerRecipeList contains a list of ContainerRecipes -#ContainerRecipeList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ContainerRecipe] @go(Items,[]ContainerRecipe) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_distributionconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_distributionconfiguration_types_go_gen.cue deleted file mode 100644 index b285e98..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_distributionconfiguration_types_go_gen.cue +++ /dev/null @@ -1,504 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/imagebuilder/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AMIDistributionConfigurationInitParameters: { - // Key-value map of tags to apply to the distributed AMI. - amiTags?: {[string]: null | string} @go(AMITags,map[string]*string) - - // Description to apply to the distributed AMI. - description?: null | string @go(Description,*string) - - // Amazon Resource Name (ARN) of the Key Management Service (KMS) Key to encrypt the distributed AMI. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Configuration block of EC2 launch permissions to apply to the distributed AMI. Detailed below. - launchPermission?: [...#LaunchPermissionInitParameters] @go(LaunchPermission,[]LaunchPermissionInitParameters) - - // Name to apply to the distributed AMI. - name?: null | string @go(Name,*string) - - // Set of AWS Account identifiers to distribute the AMI. - targetAccountIds?: [...null | string] @go(TargetAccountIds,[]*string) -} - -#AMIDistributionConfigurationObservation: { - // Key-value map of tags to apply to the distributed AMI. - amiTags?: {[string]: null | string} @go(AMITags,map[string]*string) - - // Description to apply to the distributed AMI. - description?: null | string @go(Description,*string) - - // Amazon Resource Name (ARN) of the Key Management Service (KMS) Key to encrypt the distributed AMI. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Configuration block of EC2 launch permissions to apply to the distributed AMI. Detailed below. - launchPermission?: [...#LaunchPermissionObservation] @go(LaunchPermission,[]LaunchPermissionObservation) - - // Name to apply to the distributed AMI. - name?: null | string @go(Name,*string) - - // Set of AWS Account identifiers to distribute the AMI. - targetAccountIds?: [...null | string] @go(TargetAccountIds,[]*string) -} - -#AMIDistributionConfigurationParameters: { - // Key-value map of tags to apply to the distributed AMI. - // +kubebuilder:validation:Optional - amiTags?: {[string]: null | string} @go(AMITags,map[string]*string) - - // Description to apply to the distributed AMI. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Amazon Resource Name (ARN) of the Key Management Service (KMS) Key to encrypt the distributed AMI. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Configuration block of EC2 launch permissions to apply to the distributed AMI. Detailed below. - // +kubebuilder:validation:Optional - launchPermission?: [...#LaunchPermissionParameters] @go(LaunchPermission,[]LaunchPermissionParameters) - - // Name to apply to the distributed AMI. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Set of AWS Account identifiers to distribute the AMI. - // +kubebuilder:validation:Optional - targetAccountIds?: [...null | string] @go(TargetAccountIds,[]*string) -} - -#ContainerDistributionConfigurationInitParameters: { - // Set of tags that are attached to the container distribution configuration. - containerTags?: [...null | string] @go(ContainerTags,[]*string) - - // Description of the container distribution configuration. - description?: null | string @go(Description,*string) - - // Configuration block with the destination repository for the container distribution configuration. - targetRepository?: [...#ContainerDistributionConfigurationTargetRepositoryInitParameters] @go(TargetRepository,[]ContainerDistributionConfigurationTargetRepositoryInitParameters) -} - -#ContainerDistributionConfigurationObservation: { - // Set of tags that are attached to the container distribution configuration. - containerTags?: [...null | string] @go(ContainerTags,[]*string) - - // Description of the container distribution configuration. - description?: null | string @go(Description,*string) - - // Configuration block with the destination repository for the container distribution configuration. - targetRepository?: [...#ContainerDistributionConfigurationTargetRepositoryObservation] @go(TargetRepository,[]ContainerDistributionConfigurationTargetRepositoryObservation) -} - -#ContainerDistributionConfigurationParameters: { - // Set of tags that are attached to the container distribution configuration. - // +kubebuilder:validation:Optional - containerTags?: [...null | string] @go(ContainerTags,[]*string) - - // Description of the container distribution configuration. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Configuration block with the destination repository for the container distribution configuration. - // +kubebuilder:validation:Optional - targetRepository: [...#ContainerDistributionConfigurationTargetRepositoryParameters] @go(TargetRepository,[]ContainerDistributionConfigurationTargetRepositoryParameters) -} - -#ContainerDistributionConfigurationTargetRepositoryInitParameters: { - // The name of the container repository where the output container image is stored. This name is prefixed by the repository location. - repositoryName?: null | string @go(RepositoryName,*string) - - // The service in which this image is registered. Valid values: ECR. - service?: null | string @go(Service,*string) -} - -#ContainerDistributionConfigurationTargetRepositoryObservation: { - // The name of the container repository where the output container image is stored. This name is prefixed by the repository location. - repositoryName?: null | string @go(RepositoryName,*string) - - // The service in which this image is registered. Valid values: ECR. - service?: null | string @go(Service,*string) -} - -#ContainerDistributionConfigurationTargetRepositoryParameters: { - // The name of the container repository where the output container image is stored. This name is prefixed by the repository location. - // +kubebuilder:validation:Optional - repositoryName?: null | string @go(RepositoryName,*string) - - // The service in which this image is registered. Valid values: ECR. - // +kubebuilder:validation:Optional - service?: null | string @go(Service,*string) -} - -#DistributionConfigurationInitParameters: { - // Description of the distribution configuration. - description?: null | string @go(Description,*string) - - // One or more configuration blocks with distribution settings. Detailed below. - distribution?: [...#DistributionInitParameters] @go(Distribution,[]DistributionInitParameters) - - // Name of the distribution configuration. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DistributionConfigurationObservation: { - // Amazon Resource Name (ARN) of the distribution configuration. - arn?: null | string @go(Arn,*string) - - // Date the distribution configuration was created. - dateCreated?: null | string @go(DateCreated,*string) - - // Date the distribution configuration was updated. - dateUpdated?: null | string @go(DateUpdated,*string) - - // Description of the distribution configuration. - description?: null | string @go(Description,*string) - - // One or more configuration blocks with distribution settings. Detailed below. - distribution?: [...#DistributionObservation] @go(Distribution,[]DistributionObservation) - id?: null | string @go(ID,*string) - - // Name of the distribution configuration. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DistributionConfigurationParameters: { - // Description of the distribution configuration. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // One or more configuration blocks with distribution settings. Detailed below. - // +kubebuilder:validation:Optional - distribution?: [...#DistributionParameters] @go(Distribution,[]DistributionParameters) - - // Name of the distribution configuration. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // AWS Region for the distribution. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DistributionInitParameters: { - // Configuration block with Amazon Machine Image (AMI) distribution settings. Detailed below. - amiDistributionConfiguration?: [...#AMIDistributionConfigurationInitParameters] @go(AMIDistributionConfiguration,[]AMIDistributionConfigurationInitParameters) - - // Configuration block with container distribution settings. Detailed below. - containerDistributionConfiguration?: [...#ContainerDistributionConfigurationInitParameters] @go(ContainerDistributionConfiguration,[]ContainerDistributionConfigurationInitParameters) - - // Set of Windows faster-launching configurations to use for AMI distribution. Detailed below. - fastLaunchConfiguration?: [...#FastLaunchConfigurationInitParameters] @go(FastLaunchConfiguration,[]FastLaunchConfigurationInitParameters) - - // Set of launch template configuration settings that apply to image distribution. Detailed below. - launchTemplateConfiguration?: [...#LaunchTemplateConfigurationInitParameters] @go(LaunchTemplateConfiguration,[]LaunchTemplateConfigurationInitParameters) - - // Set of Amazon Resource Names (ARNs) of License Manager License Configurations. - licenseConfigurationArns?: [...null | string] @go(LicenseConfigurationArns,[]*string) -} - -#DistributionObservation: { - // Configuration block with Amazon Machine Image (AMI) distribution settings. Detailed below. - amiDistributionConfiguration?: [...#AMIDistributionConfigurationObservation] @go(AMIDistributionConfiguration,[]AMIDistributionConfigurationObservation) - - // Configuration block with container distribution settings. Detailed below. - containerDistributionConfiguration?: [...#ContainerDistributionConfigurationObservation] @go(ContainerDistributionConfiguration,[]ContainerDistributionConfigurationObservation) - - // Set of Windows faster-launching configurations to use for AMI distribution. Detailed below. - fastLaunchConfiguration?: [...#FastLaunchConfigurationObservation] @go(FastLaunchConfiguration,[]FastLaunchConfigurationObservation) - - // Set of launch template configuration settings that apply to image distribution. Detailed below. - launchTemplateConfiguration?: [...#LaunchTemplateConfigurationObservation] @go(LaunchTemplateConfiguration,[]LaunchTemplateConfigurationObservation) - - // Set of Amazon Resource Names (ARNs) of License Manager License Configurations. - licenseConfigurationArns?: [...null | string] @go(LicenseConfigurationArns,[]*string) - - // AWS Region for the distribution. - region?: null | string @go(Region,*string) -} - -#DistributionParameters: { - // Configuration block with Amazon Machine Image (AMI) distribution settings. Detailed below. - // +kubebuilder:validation:Optional - amiDistributionConfiguration?: [...#AMIDistributionConfigurationParameters] @go(AMIDistributionConfiguration,[]AMIDistributionConfigurationParameters) - - // Configuration block with container distribution settings. Detailed below. - // +kubebuilder:validation:Optional - containerDistributionConfiguration?: [...#ContainerDistributionConfigurationParameters] @go(ContainerDistributionConfiguration,[]ContainerDistributionConfigurationParameters) - - // Set of Windows faster-launching configurations to use for AMI distribution. Detailed below. - // +kubebuilder:validation:Optional - fastLaunchConfiguration?: [...#FastLaunchConfigurationParameters] @go(FastLaunchConfiguration,[]FastLaunchConfigurationParameters) - - // Set of launch template configuration settings that apply to image distribution. Detailed below. - // +kubebuilder:validation:Optional - launchTemplateConfiguration?: [...#LaunchTemplateConfigurationParameters] @go(LaunchTemplateConfiguration,[]LaunchTemplateConfigurationParameters) - - // Set of Amazon Resource Names (ARNs) of License Manager License Configurations. - // +kubebuilder:validation:Optional - licenseConfigurationArns?: [...null | string] @go(LicenseConfigurationArns,[]*string) - - // AWS Region for the distribution. - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#FastLaunchConfigurationInitParameters: { - // The owner account ID for the fast-launch enabled Windows AMI. - accountId?: null | string @go(AccountID,*string) - - // A Boolean that represents the current state of faster launching for the Windows AMI. Set to true to start using Windows faster launching, or false to stop using it. - enabled?: null | bool @go(Enabled,*bool) - - // Configuration block for the launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. Detailed below. - launchTemplate?: [...#LaunchTemplateInitParameters] @go(LaunchTemplate,[]LaunchTemplateInitParameters) - - // The maximum number of parallel instances that are launched for creating resources. - maxParallelLaunches?: null | float64 @go(MaxParallelLaunches,*float64) - - // Configuration block for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. Detailed below. - snapshotConfiguration?: [...#SnapshotConfigurationInitParameters] @go(SnapshotConfiguration,[]SnapshotConfigurationInitParameters) -} - -#FastLaunchConfigurationObservation: { - // The owner account ID for the fast-launch enabled Windows AMI. - accountId?: null | string @go(AccountID,*string) - - // A Boolean that represents the current state of faster launching for the Windows AMI. Set to true to start using Windows faster launching, or false to stop using it. - enabled?: null | bool @go(Enabled,*bool) - - // Configuration block for the launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. Detailed below. - launchTemplate?: [...#LaunchTemplateObservation] @go(LaunchTemplate,[]LaunchTemplateObservation) - - // The maximum number of parallel instances that are launched for creating resources. - maxParallelLaunches?: null | float64 @go(MaxParallelLaunches,*float64) - - // Configuration block for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. Detailed below. - snapshotConfiguration?: [...#SnapshotConfigurationObservation] @go(SnapshotConfiguration,[]SnapshotConfigurationObservation) -} - -#FastLaunchConfigurationParameters: { - // The owner account ID for the fast-launch enabled Windows AMI. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // A Boolean that represents the current state of faster launching for the Windows AMI. Set to true to start using Windows faster launching, or false to stop using it. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Configuration block for the launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. Detailed below. - // +kubebuilder:validation:Optional - launchTemplate?: [...#LaunchTemplateParameters] @go(LaunchTemplate,[]LaunchTemplateParameters) - - // The maximum number of parallel instances that are launched for creating resources. - // +kubebuilder:validation:Optional - maxParallelLaunches?: null | float64 @go(MaxParallelLaunches,*float64) - - // Configuration block for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. Detailed below. - // +kubebuilder:validation:Optional - snapshotConfiguration?: [...#SnapshotConfigurationParameters] @go(SnapshotConfiguration,[]SnapshotConfigurationParameters) -} - -#LaunchPermissionInitParameters: { - // Set of AWS Organization ARNs to assign. - organizationArns?: [...null | string] @go(OrganizationArns,[]*string) - - // Set of AWS Organizational Unit ARNs to assign. - organizationalUnitArns?: [...null | string] @go(OrganizationalUnitArns,[]*string) - - // Set of EC2 launch permission user groups to assign. Use all to distribute a public AMI. - userGroups?: [...null | string] @go(UserGroups,[]*string) - - // Set of AWS Account identifiers to assign. - userIds?: [...null | string] @go(UserIds,[]*string) -} - -#LaunchPermissionObservation: { - // Set of AWS Organization ARNs to assign. - organizationArns?: [...null | string] @go(OrganizationArns,[]*string) - - // Set of AWS Organizational Unit ARNs to assign. - organizationalUnitArns?: [...null | string] @go(OrganizationalUnitArns,[]*string) - - // Set of EC2 launch permission user groups to assign. Use all to distribute a public AMI. - userGroups?: [...null | string] @go(UserGroups,[]*string) - - // Set of AWS Account identifiers to assign. - userIds?: [...null | string] @go(UserIds,[]*string) -} - -#LaunchPermissionParameters: { - // Set of AWS Organization ARNs to assign. - // +kubebuilder:validation:Optional - organizationArns?: [...null | string] @go(OrganizationArns,[]*string) - - // Set of AWS Organizational Unit ARNs to assign. - // +kubebuilder:validation:Optional - organizationalUnitArns?: [...null | string] @go(OrganizationalUnitArns,[]*string) - - // Set of EC2 launch permission user groups to assign. Use all to distribute a public AMI. - // +kubebuilder:validation:Optional - userGroups?: [...null | string] @go(UserGroups,[]*string) - - // Set of AWS Account identifiers to assign. - // +kubebuilder:validation:Optional - userIds?: [...null | string] @go(UserIds,[]*string) -} - -#LaunchTemplateConfigurationInitParameters: { - // The account ID that this configuration applies to. - accountId?: null | string @go(AccountID,*string) - - // Indicates whether to set the specified Amazon EC2 launch template as the default launch template. Defaults to true. - default?: null | bool @go(Default,*bool) - - // The ID of the Amazon EC2 launch template to use. - launchTemplateId?: null | string @go(LaunchTemplateID,*string) -} - -#LaunchTemplateConfigurationObservation: { - // The account ID that this configuration applies to. - accountId?: null | string @go(AccountID,*string) - - // Indicates whether to set the specified Amazon EC2 launch template as the default launch template. Defaults to true. - default?: null | bool @go(Default,*bool) - - // The ID of the Amazon EC2 launch template to use. - launchTemplateId?: null | string @go(LaunchTemplateID,*string) -} - -#LaunchTemplateConfigurationParameters: { - // The account ID that this configuration applies to. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // Indicates whether to set the specified Amazon EC2 launch template as the default launch template. Defaults to true. - // +kubebuilder:validation:Optional - default?: null | bool @go(Default,*bool) - - // The ID of the Amazon EC2 launch template to use. - // +kubebuilder:validation:Optional - launchTemplateId?: null | string @go(LaunchTemplateID,*string) -} - -#LaunchTemplateInitParameters: { - // The ID of the launch template to use for faster launching for a Windows AMI. - launchTemplateId?: null | string @go(LaunchTemplateID,*string) - - // The name of the launch template to use for faster launching for a Windows AMI. - launchTemplateName?: null | string @go(LaunchTemplateName,*string) - - // The version of the launch template to use for faster launching for a Windows AMI. - launchTemplateVersion?: null | string @go(LaunchTemplateVersion,*string) -} - -#LaunchTemplateObservation: { - // The ID of the launch template to use for faster launching for a Windows AMI. - launchTemplateId?: null | string @go(LaunchTemplateID,*string) - - // The name of the launch template to use for faster launching for a Windows AMI. - launchTemplateName?: null | string @go(LaunchTemplateName,*string) - - // The version of the launch template to use for faster launching for a Windows AMI. - launchTemplateVersion?: null | string @go(LaunchTemplateVersion,*string) -} - -#LaunchTemplateParameters: { - // The ID of the launch template to use for faster launching for a Windows AMI. - // +kubebuilder:validation:Optional - launchTemplateId?: null | string @go(LaunchTemplateID,*string) - - // The name of the launch template to use for faster launching for a Windows AMI. - // +kubebuilder:validation:Optional - launchTemplateName?: null | string @go(LaunchTemplateName,*string) - - // The version of the launch template to use for faster launching for a Windows AMI. - // +kubebuilder:validation:Optional - launchTemplateVersion?: null | string @go(LaunchTemplateVersion,*string) -} - -#SnapshotConfigurationInitParameters: { - // The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI. - targetResourceCount?: null | float64 @go(TargetResourceCount,*float64) -} - -#SnapshotConfigurationObservation: { - // The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI. - targetResourceCount?: null | float64 @go(TargetResourceCount,*float64) -} - -#SnapshotConfigurationParameters: { - // The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI. - // +kubebuilder:validation:Optional - targetResourceCount?: null | float64 @go(TargetResourceCount,*float64) -} - -// DistributionConfigurationSpec defines the desired state of DistributionConfiguration -#DistributionConfigurationSpec: { - v1.#ResourceSpec - forProvider: #DistributionConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DistributionConfigurationInitParameters @go(InitProvider) -} - -// DistributionConfigurationStatus defines the observed state of DistributionConfiguration. -#DistributionConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #DistributionConfigurationObservation @go(AtProvider) -} - -// DistributionConfiguration is the Schema for the DistributionConfigurations API. Manage an Image Builder Distribution Configuration -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DistributionConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.distribution) || (has(self.initProvider) && has(self.initProvider.distribution))",message="spec.forProvider.distribution is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #DistributionConfigurationSpec @go(Spec) - status?: #DistributionConfigurationStatus @go(Status) -} - -// DistributionConfigurationList contains a list of DistributionConfigurations -#DistributionConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DistributionConfiguration] @go(Items,[]DistributionConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index addf5d0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/imagebuilder/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=imagebuilder.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "imagebuilder.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_image_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_image_types_go_gen.cue deleted file mode 100644 index db38fe2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_image_types_go_gen.cue +++ /dev/null @@ -1,260 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/imagebuilder/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AmisInitParameters: { -} - -#AmisObservation: { - // Account identifier of the AMI. - accountId?: null | string @go(AccountID,*string) - - // Description of the AMI. - description?: null | string @go(Description,*string) - - // Identifier of the AMI. - image?: null | string @go(Image,*string) - - // Name of the AMI. - name?: null | string @go(Name,*string) - - // Region of the AMI. - region?: null | string @go(Region,*string) -} - -#AmisParameters: { -} - -#ContainersInitParameters: { -} - -#ContainersObservation: { - // Set of URIs for created containers. - imageUris?: [...null | string] @go(ImageUris,[]*string) - - // Region of the AMI. - region?: null | string @go(Region,*string) -} - -#ContainersParameters: { -} - -#ImageInitParameters: { - // - Amazon Resource Name (ARN) of the container recipe. - containerRecipeArn?: null | string @go(ContainerRecipeArn,*string) - - // Whether additional information about the image being created is collected. Defaults to true. - enhancedImageMetadataEnabled?: null | bool @go(EnhancedImageMetadataEnabled,*bool) - - // Configuration block with image tests configuration. Detailed below. - imageTestsConfiguration?: [...#ImageTestsConfigurationInitParameters] @go(ImageTestsConfiguration,[]ImageTestsConfigurationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ImageObservation: { - // Amazon Resource Name (ARN) of the image. - arn?: null | string @go(Arn,*string) - - // - Amazon Resource Name (ARN) of the container recipe. - containerRecipeArn?: null | string @go(ContainerRecipeArn,*string) - - // Date the image was created. - dateCreated?: null | string @go(DateCreated,*string) - - // Amazon Resource Name (ARN) of the Image Builder Distribution Configuration. - distributionConfigurationArn?: null | string @go(DistributionConfigurationArn,*string) - - // Whether additional information about the image being created is collected. Defaults to true. - enhancedImageMetadataEnabled?: null | bool @go(EnhancedImageMetadataEnabled,*bool) - id?: null | string @go(ID,*string) - - // Amazon Resource Name (ARN) of the image recipe. - imageRecipeArn?: null | string @go(ImageRecipeArn,*string) - - // Configuration block with image tests configuration. Detailed below. - imageTestsConfiguration?: [...#ImageTestsConfigurationObservation] @go(ImageTestsConfiguration,[]ImageTestsConfigurationObservation) - - // Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration. - infrastructureConfigurationArn?: null | string @go(InfrastructureConfigurationArn,*string) - - // Name of the AMI. - name?: null | string @go(Name,*string) - - // Operating System version of the image. - osVersion?: null | string @go(OsVersion,*string) - - // List of objects with resources created by the image. - outputResources?: [...#OutputResourcesObservation] @go(OutputResources,[]OutputResourcesObservation) - - // Platform of the image. - platform?: null | string @go(Platform,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Version of the image. - version?: null | string @go(Version,*string) -} - -#ImageParameters: { - // - Amazon Resource Name (ARN) of the container recipe. - // +kubebuilder:validation:Optional - containerRecipeArn?: null | string @go(ContainerRecipeArn,*string) - - // Amazon Resource Name (ARN) of the Image Builder Distribution Configuration. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/imagebuilder/v1beta1.DistributionConfiguration - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - distributionConfigurationArn?: null | string @go(DistributionConfigurationArn,*string) - - // Reference to a DistributionConfiguration in imagebuilder to populate distributionConfigurationArn. - // +kubebuilder:validation:Optional - distributionConfigurationArnRef?: null | v1.#Reference @go(DistributionConfigurationArnRef,*v1.Reference) - - // Selector for a DistributionConfiguration in imagebuilder to populate distributionConfigurationArn. - // +kubebuilder:validation:Optional - distributionConfigurationArnSelector?: null | v1.#Selector @go(DistributionConfigurationArnSelector,*v1.Selector) - - // Whether additional information about the image being created is collected. Defaults to true. - // +kubebuilder:validation:Optional - enhancedImageMetadataEnabled?: null | bool @go(EnhancedImageMetadataEnabled,*bool) - - // Amazon Resource Name (ARN) of the image recipe. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/imagebuilder/v1beta1.ImageRecipe - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - imageRecipeArn?: null | string @go(ImageRecipeArn,*string) - - // Reference to a ImageRecipe in imagebuilder to populate imageRecipeArn. - // +kubebuilder:validation:Optional - imageRecipeArnRef?: null | v1.#Reference @go(ImageRecipeArnRef,*v1.Reference) - - // Selector for a ImageRecipe in imagebuilder to populate imageRecipeArn. - // +kubebuilder:validation:Optional - imageRecipeArnSelector?: null | v1.#Selector @go(ImageRecipeArnSelector,*v1.Selector) - - // Configuration block with image tests configuration. Detailed below. - // +kubebuilder:validation:Optional - imageTestsConfiguration?: [...#ImageTestsConfigurationParameters] @go(ImageTestsConfiguration,[]ImageTestsConfigurationParameters) - - // Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/imagebuilder/v1beta1.InfrastructureConfiguration - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - infrastructureConfigurationArn?: null | string @go(InfrastructureConfigurationArn,*string) - - // Reference to a InfrastructureConfiguration in imagebuilder to populate infrastructureConfigurationArn. - // +kubebuilder:validation:Optional - infrastructureConfigurationArnRef?: null | v1.#Reference @go(InfrastructureConfigurationArnRef,*v1.Reference) - - // Selector for a InfrastructureConfiguration in imagebuilder to populate infrastructureConfigurationArn. - // +kubebuilder:validation:Optional - infrastructureConfigurationArnSelector?: null | v1.#Selector @go(InfrastructureConfigurationArnSelector,*v1.Selector) - - // Region of the AMI. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ImageTestsConfigurationInitParameters: { - // Whether image tests are enabled. Defaults to true. - imageTestsEnabled?: null | bool @go(ImageTestsEnabled,*bool) - - // Number of minutes before image tests time out. Valid values are between 60 and 1440. Defaults to 720. - timeoutMinutes?: null | float64 @go(TimeoutMinutes,*float64) -} - -#ImageTestsConfigurationObservation: { - // Whether image tests are enabled. Defaults to true. - imageTestsEnabled?: null | bool @go(ImageTestsEnabled,*bool) - - // Number of minutes before image tests time out. Valid values are between 60 and 1440. Defaults to 720. - timeoutMinutes?: null | float64 @go(TimeoutMinutes,*float64) -} - -#ImageTestsConfigurationParameters: { - // Whether image tests are enabled. Defaults to true. - // +kubebuilder:validation:Optional - imageTestsEnabled?: null | bool @go(ImageTestsEnabled,*bool) - - // Number of minutes before image tests time out. Valid values are between 60 and 1440. Defaults to 720. - // +kubebuilder:validation:Optional - timeoutMinutes?: null | float64 @go(TimeoutMinutes,*float64) -} - -#OutputResourcesInitParameters: { -} - -#OutputResourcesObservation: { - // Set of objects with each Amazon Machine Image (AMI) created. - amis?: [...#AmisObservation] @go(Amis,[]AmisObservation) - - // Set of objects with each container image created and stored in the output repository. - containers?: [...#ContainersObservation] @go(Containers,[]ContainersObservation) -} - -#OutputResourcesParameters: { -} - -// ImageSpec defines the desired state of Image -#ImageSpec: { - v1.#ResourceSpec - forProvider: #ImageParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ImageInitParameters @go(InitProvider) -} - -// ImageStatus defines the observed state of Image. -#ImageStatus: { - v1.#ResourceStatus - atProvider?: #ImageObservation @go(AtProvider) -} - -// Image is the Schema for the Images API. Manages an Image Builder Image -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Image: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ImageSpec @go(Spec) - status?: #ImageStatus @go(Status) -} - -// ImageList contains a list of Images -#ImageList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Image] @go(Items,[]Image) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_imagepipeline_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_imagepipeline_types_go_gen.cue deleted file mode 100644 index 26f8dc6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_imagepipeline_types_go_gen.cue +++ /dev/null @@ -1,276 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/imagebuilder/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ImagePipelineImageTestsConfigurationInitParameters: { - // Whether image tests are enabled. Defaults to true. - imageTestsEnabled?: null | bool @go(ImageTestsEnabled,*bool) - - // Number of minutes before image tests time out. Valid values are between 60 and 1440. Defaults to 720. - timeoutMinutes?: null | float64 @go(TimeoutMinutes,*float64) -} - -#ImagePipelineImageTestsConfigurationObservation: { - // Whether image tests are enabled. Defaults to true. - imageTestsEnabled?: null | bool @go(ImageTestsEnabled,*bool) - - // Number of minutes before image tests time out. Valid values are between 60 and 1440. Defaults to 720. - timeoutMinutes?: null | float64 @go(TimeoutMinutes,*float64) -} - -#ImagePipelineImageTestsConfigurationParameters: { - // Whether image tests are enabled. Defaults to true. - // +kubebuilder:validation:Optional - imageTestsEnabled?: null | bool @go(ImageTestsEnabled,*bool) - - // Number of minutes before image tests time out. Valid values are between 60 and 1440. Defaults to 720. - // +kubebuilder:validation:Optional - timeoutMinutes?: null | float64 @go(TimeoutMinutes,*float64) -} - -#ImagePipelineInitParameters: { - // Amazon Resource Name (ARN) of the container recipe. - containerRecipeArn?: null | string @go(ContainerRecipeArn,*string) - - // Description of the image pipeline. - description?: null | string @go(Description,*string) - - // Amazon Resource Name (ARN) of the Image Builder Distribution Configuration. - distributionConfigurationArn?: null | string @go(DistributionConfigurationArn,*string) - - // Whether additional information about the image being created is collected. Defaults to true. - enhancedImageMetadataEnabled?: null | bool @go(EnhancedImageMetadataEnabled,*bool) - - // Configuration block with image tests configuration. Detailed below. - imageTestsConfiguration?: [...#ImagePipelineImageTestsConfigurationInitParameters] @go(ImageTestsConfiguration,[]ImagePipelineImageTestsConfigurationInitParameters) - - // Name of the image pipeline. - name?: null | string @go(Name,*string) - - // Configuration block with schedule settings. Detailed below. - schedule?: [...#ScheduleInitParameters] @go(Schedule,[]ScheduleInitParameters) - - // Status of the image pipeline. Valid values are DISABLED and ENABLED. Defaults to ENABLED. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ImagePipelineObservation: { - // Amazon Resource Name (ARN) of the image pipeline. - arn?: null | string @go(Arn,*string) - - // Amazon Resource Name (ARN) of the container recipe. - containerRecipeArn?: null | string @go(ContainerRecipeArn,*string) - - // Date the image pipeline was created. - dateCreated?: null | string @go(DateCreated,*string) - - // Date the image pipeline was last run. - dateLastRun?: null | string @go(DateLastRun,*string) - - // Date the image pipeline will run next. - dateNextRun?: null | string @go(DateNextRun,*string) - - // Date the image pipeline was updated. - dateUpdated?: null | string @go(DateUpdated,*string) - - // Description of the image pipeline. - description?: null | string @go(Description,*string) - - // Amazon Resource Name (ARN) of the Image Builder Distribution Configuration. - distributionConfigurationArn?: null | string @go(DistributionConfigurationArn,*string) - - // Whether additional information about the image being created is collected. Defaults to true. - enhancedImageMetadataEnabled?: null | bool @go(EnhancedImageMetadataEnabled,*bool) - id?: null | string @go(ID,*string) - - // Amazon Resource Name (ARN) of the image recipe. - imageRecipeArn?: null | string @go(ImageRecipeArn,*string) - - // Configuration block with image tests configuration. Detailed below. - imageTestsConfiguration?: [...#ImagePipelineImageTestsConfigurationObservation] @go(ImageTestsConfiguration,[]ImagePipelineImageTestsConfigurationObservation) - - // Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration. - infrastructureConfigurationArn?: null | string @go(InfrastructureConfigurationArn,*string) - - // Name of the image pipeline. - name?: null | string @go(Name,*string) - - // Platform of the image pipeline. - platform?: null | string @go(Platform,*string) - - // Configuration block with schedule settings. Detailed below. - schedule?: [...#ScheduleObservation] @go(Schedule,[]ScheduleObservation) - - // Status of the image pipeline. Valid values are DISABLED and ENABLED. Defaults to ENABLED. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ImagePipelineParameters: { - // Amazon Resource Name (ARN) of the container recipe. - // +kubebuilder:validation:Optional - containerRecipeArn?: null | string @go(ContainerRecipeArn,*string) - - // Description of the image pipeline. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Amazon Resource Name (ARN) of the Image Builder Distribution Configuration. - // +kubebuilder:validation:Optional - distributionConfigurationArn?: null | string @go(DistributionConfigurationArn,*string) - - // Whether additional information about the image being created is collected. Defaults to true. - // +kubebuilder:validation:Optional - enhancedImageMetadataEnabled?: null | bool @go(EnhancedImageMetadataEnabled,*bool) - - // Amazon Resource Name (ARN) of the image recipe. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/imagebuilder/v1beta1.ImageRecipe - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - imageRecipeArn?: null | string @go(ImageRecipeArn,*string) - - // Reference to a ImageRecipe in imagebuilder to populate imageRecipeArn. - // +kubebuilder:validation:Optional - imageRecipeArnRef?: null | v1.#Reference @go(ImageRecipeArnRef,*v1.Reference) - - // Selector for a ImageRecipe in imagebuilder to populate imageRecipeArn. - // +kubebuilder:validation:Optional - imageRecipeArnSelector?: null | v1.#Selector @go(ImageRecipeArnSelector,*v1.Selector) - - // Configuration block with image tests configuration. Detailed below. - // +kubebuilder:validation:Optional - imageTestsConfiguration?: [...#ImagePipelineImageTestsConfigurationParameters] @go(ImageTestsConfiguration,[]ImagePipelineImageTestsConfigurationParameters) - - // Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/imagebuilder/v1beta1.InfrastructureConfiguration - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - infrastructureConfigurationArn?: null | string @go(InfrastructureConfigurationArn,*string) - - // Reference to a InfrastructureConfiguration in imagebuilder to populate infrastructureConfigurationArn. - // +kubebuilder:validation:Optional - infrastructureConfigurationArnRef?: null | v1.#Reference @go(InfrastructureConfigurationArnRef,*v1.Reference) - - // Selector for a InfrastructureConfiguration in imagebuilder to populate infrastructureConfigurationArn. - // +kubebuilder:validation:Optional - infrastructureConfigurationArnSelector?: null | v1.#Selector @go(InfrastructureConfigurationArnSelector,*v1.Selector) - - // Name of the image pipeline. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block with schedule settings. Detailed below. - // +kubebuilder:validation:Optional - schedule?: [...#ScheduleParameters] @go(Schedule,[]ScheduleParameters) - - // Status of the image pipeline. Valid values are DISABLED and ENABLED. Defaults to ENABLED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ScheduleInitParameters: { - // Condition when the pipeline should trigger a new image build. Valid values are EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE and EXPRESSION_MATCH_ONLY. Defaults to EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE. - pipelineExecutionStartCondition?: null | string @go(PipelineExecutionStartCondition,*string) - - // Cron expression of how often the pipeline start condition is evaluated. For example, cron(0 0 * * ? *) is evaluated every day at midnight UTC. Configurations using the five field syntax that was previously accepted by the API, such as cron(0 0 * * *), must be updated to the six field syntax. For more information, see the Image Builder User Guide. - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // The timezone that applies to the scheduling expression. For example, "Etc/UTC", "America/Los_Angeles" in the IANA timezone format. If not specified this defaults to UTC. - timezone?: null | string @go(Timezone,*string) -} - -#ScheduleObservation: { - // Condition when the pipeline should trigger a new image build. Valid values are EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE and EXPRESSION_MATCH_ONLY. Defaults to EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE. - pipelineExecutionStartCondition?: null | string @go(PipelineExecutionStartCondition,*string) - - // Cron expression of how often the pipeline start condition is evaluated. For example, cron(0 0 * * ? *) is evaluated every day at midnight UTC. Configurations using the five field syntax that was previously accepted by the API, such as cron(0 0 * * *), must be updated to the six field syntax. For more information, see the Image Builder User Guide. - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // The timezone that applies to the scheduling expression. For example, "Etc/UTC", "America/Los_Angeles" in the IANA timezone format. If not specified this defaults to UTC. - timezone?: null | string @go(Timezone,*string) -} - -#ScheduleParameters: { - // Condition when the pipeline should trigger a new image build. Valid values are EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE and EXPRESSION_MATCH_ONLY. Defaults to EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE. - // +kubebuilder:validation:Optional - pipelineExecutionStartCondition?: null | string @go(PipelineExecutionStartCondition,*string) - - // Cron expression of how often the pipeline start condition is evaluated. For example, cron(0 0 * * ? *) is evaluated every day at midnight UTC. Configurations using the five field syntax that was previously accepted by the API, such as cron(0 0 * * *), must be updated to the six field syntax. For more information, see the Image Builder User Guide. - // +kubebuilder:validation:Optional - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // The timezone that applies to the scheduling expression. For example, "Etc/UTC", "America/Los_Angeles" in the IANA timezone format. If not specified this defaults to UTC. - // +kubebuilder:validation:Optional - timezone?: null | string @go(Timezone,*string) -} - -// ImagePipelineSpec defines the desired state of ImagePipeline -#ImagePipelineSpec: { - v1.#ResourceSpec - forProvider: #ImagePipelineParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ImagePipelineInitParameters @go(InitProvider) -} - -// ImagePipelineStatus defines the observed state of ImagePipeline. -#ImagePipelineStatus: { - v1.#ResourceStatus - atProvider?: #ImagePipelineObservation @go(AtProvider) -} - -// ImagePipeline is the Schema for the ImagePipelines API. Manages an Image Builder Image Pipeline -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ImagePipeline: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ImagePipelineSpec @go(Spec) - status?: #ImagePipelineStatus @go(Status) -} - -// ImagePipelineList contains a list of ImagePipelines -#ImagePipelineList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ImagePipeline] @go(Items,[]ImagePipeline) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_imagerecipe_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_imagerecipe_types_go_gen.cue deleted file mode 100644 index 405df18..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_imagerecipe_types_go_gen.cue +++ /dev/null @@ -1,394 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/imagebuilder/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BlockDeviceMappingEBSInitParameters: { - // Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image. - deleteOnTermination?: null | string @go(DeleteOnTermination,*string) - - // Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. - encrypted?: null | string @go(Encrypted,*string) - - // Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume. - iops?: null | float64 @go(Iops,*float64) - - // Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Identifier of the EC2 Volume Snapshot. - snapshotId?: null | string @go(SnapshotID,*string) - - // For GP3 volumes only. The throughput in MiB/s that the volume supports. - throughput?: null | float64 @go(Throughput,*float64) - - // Size of the volume, in GiB. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of the volume. For example, gp2 or io2. - volumeType?: null | string @go(VolumeType,*string) -} - -#BlockDeviceMappingEBSObservation: { - // Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image. - deleteOnTermination?: null | string @go(DeleteOnTermination,*string) - - // Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. - encrypted?: null | string @go(Encrypted,*string) - - // Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume. - iops?: null | float64 @go(Iops,*float64) - - // Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Identifier of the EC2 Volume Snapshot. - snapshotId?: null | string @go(SnapshotID,*string) - - // For GP3 volumes only. The throughput in MiB/s that the volume supports. - throughput?: null | float64 @go(Throughput,*float64) - - // Size of the volume, in GiB. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of the volume. For example, gp2 or io2. - volumeType?: null | string @go(VolumeType,*string) -} - -#BlockDeviceMappingEBSParameters: { - // Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image. - // +kubebuilder:validation:Optional - deleteOnTermination?: null | string @go(DeleteOnTermination,*string) - - // Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. - // +kubebuilder:validation:Optional - encrypted?: null | string @go(Encrypted,*string) - - // Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Identifier of the EC2 Volume Snapshot. - // +kubebuilder:validation:Optional - snapshotId?: null | string @go(SnapshotID,*string) - - // For GP3 volumes only. The throughput in MiB/s that the volume supports. - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // Size of the volume, in GiB. - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of the volume. For example, gp2 or io2. - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -#ComponentParameterInitParameters: { - // The name of the component parameter. - name?: null | string @go(Name,*string) - - // The value for the named component parameter. - value?: null | string @go(Value,*string) -} - -#ComponentParameterObservation: { - // The name of the component parameter. - name?: null | string @go(Name,*string) - - // The value for the named component parameter. - value?: null | string @go(Value,*string) -} - -#ComponentParameterParameters: { - // The name of the component parameter. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value for the named component parameter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ImageRecipeBlockDeviceMappingInitParameters: { - // Name of the device. For example, /dev/sda or /dev/xvdb. - deviceName?: null | string @go(DeviceName,*string) - - // Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below. - ebs?: [...#BlockDeviceMappingEBSInitParameters] @go(EBS,[]BlockDeviceMappingEBSInitParameters) - - // Set to true to remove a mapping from the parent image. - noDevice?: null | bool @go(NoDevice,*bool) - - // Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0. - virtualName?: null | string @go(VirtualName,*string) -} - -#ImageRecipeBlockDeviceMappingObservation: { - // Name of the device. For example, /dev/sda or /dev/xvdb. - deviceName?: null | string @go(DeviceName,*string) - - // Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below. - ebs?: [...#BlockDeviceMappingEBSObservation] @go(EBS,[]BlockDeviceMappingEBSObservation) - - // Set to true to remove a mapping from the parent image. - noDevice?: null | bool @go(NoDevice,*bool) - - // Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0. - virtualName?: null | string @go(VirtualName,*string) -} - -#ImageRecipeBlockDeviceMappingParameters: { - // Name of the device. For example, /dev/sda or /dev/xvdb. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below. - // +kubebuilder:validation:Optional - ebs?: [...#BlockDeviceMappingEBSParameters] @go(EBS,[]BlockDeviceMappingEBSParameters) - - // Set to true to remove a mapping from the parent image. - // +kubebuilder:validation:Optional - noDevice?: null | bool @go(NoDevice,*bool) - - // Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0. - // +kubebuilder:validation:Optional - virtualName?: null | string @go(VirtualName,*string) -} - -#ImageRecipeComponentInitParameters: { - // Configuration block(s) for parameters to configure the component. Detailed below. - parameter?: [...#ComponentParameterInitParameters] @go(Parameter,[]ComponentParameterInitParameters) -} - -#ImageRecipeComponentObservation: { - // Amazon Resource Name (ARN) of the Image Builder Component to associate. - componentArn?: null | string @go(ComponentArn,*string) - - // Configuration block(s) for parameters to configure the component. Detailed below. - parameter?: [...#ComponentParameterObservation] @go(Parameter,[]ComponentParameterObservation) -} - -#ImageRecipeComponentParameters: { - // Amazon Resource Name (ARN) of the Image Builder Component to associate. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/imagebuilder/v1beta1.Component - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - componentArn?: null | string @go(ComponentArn,*string) - - // Reference to a Component in imagebuilder to populate componentArn. - // +kubebuilder:validation:Optional - componentArnRef?: null | v1.#Reference @go(ComponentArnRef,*v1.Reference) - - // Selector for a Component in imagebuilder to populate componentArn. - // +kubebuilder:validation:Optional - componentArnSelector?: null | v1.#Selector @go(ComponentArnSelector,*v1.Selector) - - // Configuration block(s) for parameters to configure the component. Detailed below. - // +kubebuilder:validation:Optional - parameter?: [...#ComponentParameterParameters] @go(Parameter,[]ComponentParameterParameters) -} - -#ImageRecipeInitParameters: { - // Configuration block(s) with block device mappings for the image recipe. Detailed below. - blockDeviceMapping?: [...#ImageRecipeBlockDeviceMappingInitParameters] @go(BlockDeviceMapping,[]ImageRecipeBlockDeviceMappingInitParameters) - - // Ordered configuration block(s) with components for the image recipe. Detailed below. - component?: [...#ImageRecipeComponentInitParameters] @go(Component,[]ImageRecipeComponentInitParameters) - - // Description of the image recipe. - description?: null | string @go(Description,*string) - - // Name of the image recipe. - name?: null | string @go(Name,*string) - - // The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID. - parentImage?: null | string @go(ParentImage,*string) - - // Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below. - systemsManagerAgent?: [...#SystemsManagerAgentInitParameters] @go(SystemsManagerAgent,[]SystemsManagerAgentInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance. - userDataBase64?: null | string @go(UserDataBase64,*string) - - // The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0. - version?: null | string @go(Version,*string) - - // The working directory to be used during build and test workflows. - workingDirectory?: null | string @go(WorkingDirectory,*string) -} - -#ImageRecipeObservation: { - // Amazon Resource Name (ARN) of the image recipe. - arn?: null | string @go(Arn,*string) - - // Configuration block(s) with block device mappings for the image recipe. Detailed below. - blockDeviceMapping?: [...#ImageRecipeBlockDeviceMappingObservation] @go(BlockDeviceMapping,[]ImageRecipeBlockDeviceMappingObservation) - - // Ordered configuration block(s) with components for the image recipe. Detailed below. - component?: [...#ImageRecipeComponentObservation] @go(Component,[]ImageRecipeComponentObservation) - - // Date the image recipe was created. - dateCreated?: null | string @go(DateCreated,*string) - - // Description of the image recipe. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // Name of the image recipe. - name?: null | string @go(Name,*string) - - // Owner of the image recipe. - owner?: null | string @go(Owner,*string) - - // The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID. - parentImage?: null | string @go(ParentImage,*string) - - // Platform of the image recipe. - platform?: null | string @go(Platform,*string) - - // Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below. - systemsManagerAgent?: [...#SystemsManagerAgentObservation] @go(SystemsManagerAgent,[]SystemsManagerAgentObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance. - userDataBase64?: null | string @go(UserDataBase64,*string) - - // The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0. - version?: null | string @go(Version,*string) - - // The working directory to be used during build and test workflows. - workingDirectory?: null | string @go(WorkingDirectory,*string) -} - -#ImageRecipeParameters: { - // Configuration block(s) with block device mappings for the image recipe. Detailed below. - // +kubebuilder:validation:Optional - blockDeviceMapping?: [...#ImageRecipeBlockDeviceMappingParameters] @go(BlockDeviceMapping,[]ImageRecipeBlockDeviceMappingParameters) - - // Ordered configuration block(s) with components for the image recipe. Detailed below. - // +kubebuilder:validation:Optional - component?: [...#ImageRecipeComponentParameters] @go(Component,[]ImageRecipeComponentParameters) - - // Description of the image recipe. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Name of the image recipe. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID. - // +kubebuilder:validation:Optional - parentImage?: null | string @go(ParentImage,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below. - // +kubebuilder:validation:Optional - systemsManagerAgent?: [...#SystemsManagerAgentParameters] @go(SystemsManagerAgent,[]SystemsManagerAgentParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance. - // +kubebuilder:validation:Optional - userDataBase64?: null | string @go(UserDataBase64,*string) - - // The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) - - // The working directory to be used during build and test workflows. - // +kubebuilder:validation:Optional - workingDirectory?: null | string @go(WorkingDirectory,*string) -} - -#SystemsManagerAgentInitParameters: { - // Whether to remove the Systems Manager Agent after the image has been built. Defaults to false. - uninstallAfterBuild?: null | bool @go(UninstallAfterBuild,*bool) -} - -#SystemsManagerAgentObservation: { - // Whether to remove the Systems Manager Agent after the image has been built. Defaults to false. - uninstallAfterBuild?: null | bool @go(UninstallAfterBuild,*bool) -} - -#SystemsManagerAgentParameters: { - // Whether to remove the Systems Manager Agent after the image has been built. Defaults to false. - // +kubebuilder:validation:Optional - uninstallAfterBuild?: null | bool @go(UninstallAfterBuild,*bool) -} - -// ImageRecipeSpec defines the desired state of ImageRecipe -#ImageRecipeSpec: { - v1.#ResourceSpec - forProvider: #ImageRecipeParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ImageRecipeInitParameters @go(InitProvider) -} - -// ImageRecipeStatus defines the observed state of ImageRecipe. -#ImageRecipeStatus: { - v1.#ResourceStatus - atProvider?: #ImageRecipeObservation @go(AtProvider) -} - -// ImageRecipe is the Schema for the ImageRecipes API. Manage an Image Builder Image Recipe -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ImageRecipe: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.component) || (has(self.initProvider) && has(self.initProvider.component))",message="spec.forProvider.component is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.parentImage) || (has(self.initProvider) && has(self.initProvider.parentImage))",message="spec.forProvider.parentImage is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.version) || (has(self.initProvider) && has(self.initProvider.version))",message="spec.forProvider.version is a required parameter" - spec: #ImageRecipeSpec @go(Spec) - status?: #ImageRecipeStatus @go(Status) -} - -// ImageRecipeList contains a list of ImageRecipes -#ImageRecipeList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ImageRecipe] @go(Items,[]ImageRecipe) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_infrastructureconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_infrastructureconfiguration_types_go_gen.cue deleted file mode 100644 index 6871bc5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/imagebuilder/v1beta1/zz_infrastructureconfiguration_types_go_gen.cue +++ /dev/null @@ -1,320 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/imagebuilder/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InfrastructureConfigurationInitParameters: { - // Description for the configuration. - description?: null | string @go(Description,*string) - - // Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below. - instanceMetadataOptions?: [...#InstanceMetadataOptionsInitParameters] @go(InstanceMetadataOptions,[]InstanceMetadataOptionsInitParameters) - - // Set of EC2 Instance Types. - instanceTypes?: [...null | string] @go(InstanceTypes,[]*string) - - // Configuration block with logging settings. Detailed below. - logging?: [...#LoggingInitParameters] @go(Logging,[]LoggingInitParameters) - - // Name for the configuration. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags to assign to infrastructure created by the configuration. - resourceTags?: {[string]: null | string} @go(ResourceTags,map[string]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Enable if the instance should be terminated when the pipeline fails. Defaults to false. - terminateInstanceOnFailure?: null | bool @go(TerminateInstanceOnFailure,*bool) -} - -#InfrastructureConfigurationObservation: { - // Amazon Resource Name (ARN) of the configuration. - arn?: null | string @go(Arn,*string) - - // Date when the configuration was created. - dateCreated?: null | string @go(DateCreated,*string) - - // Date when the configuration was updated. - dateUpdated?: null | string @go(DateUpdated,*string) - - // Description for the configuration. - description?: null | string @go(Description,*string) - - // Amazon Resource Name (ARN) of the configuration. - id?: null | string @go(ID,*string) - - // Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below. - instanceMetadataOptions?: [...#InstanceMetadataOptionsObservation] @go(InstanceMetadataOptions,[]InstanceMetadataOptionsObservation) - - // Name of IAM Instance Profile. - instanceProfileName?: null | string @go(InstanceProfileName,*string) - - // Set of EC2 Instance Types. - instanceTypes?: [...null | string] @go(InstanceTypes,[]*string) - - // Name of EC2 Key Pair. - keyPair?: null | string @go(KeyPair,*string) - - // Configuration block with logging settings. Detailed below. - logging?: [...#LoggingObservation] @go(Logging,[]LoggingObservation) - - // Name for the configuration. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags to assign to infrastructure created by the configuration. - resourceTags?: {[string]: null | string} @go(ResourceTags,map[string]*string) - - // Set of EC2 Security Group identifiers. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Amazon Resource Name (ARN) of SNS Topic. - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // EC2 Subnet identifier. Also requires security_group_ids argument. - subnetId?: null | string @go(SubnetID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Enable if the instance should be terminated when the pipeline fails. Defaults to false. - terminateInstanceOnFailure?: null | bool @go(TerminateInstanceOnFailure,*bool) -} - -#InfrastructureConfigurationParameters: { - // Description for the configuration. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below. - // +kubebuilder:validation:Optional - instanceMetadataOptions?: [...#InstanceMetadataOptionsParameters] @go(InstanceMetadataOptions,[]InstanceMetadataOptionsParameters) - - // Name of IAM Instance Profile. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.InstanceProfile - // +kubebuilder:validation:Optional - instanceProfileName?: null | string @go(InstanceProfileName,*string) - - // Reference to a InstanceProfile in iam to populate instanceProfileName. - // +kubebuilder:validation:Optional - instanceProfileNameRef?: null | v1.#Reference @go(InstanceProfileNameRef,*v1.Reference) - - // Selector for a InstanceProfile in iam to populate instanceProfileName. - // +kubebuilder:validation:Optional - instanceProfileNameSelector?: null | v1.#Selector @go(InstanceProfileNameSelector,*v1.Selector) - - // Set of EC2 Instance Types. - // +kubebuilder:validation:Optional - instanceTypes?: [...null | string] @go(InstanceTypes,[]*string) - - // Name of EC2 Key Pair. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.KeyPair - // +kubebuilder:validation:Optional - keyPair?: null | string @go(KeyPair,*string) - - // Reference to a KeyPair in ec2 to populate keyPair. - // +kubebuilder:validation:Optional - keyPairRef?: null | v1.#Reference @go(KeyPairRef,*v1.Reference) - - // Selector for a KeyPair in ec2 to populate keyPair. - // +kubebuilder:validation:Optional - keyPairSelector?: null | v1.#Selector @go(KeyPairSelector,*v1.Selector) - - // Configuration block with logging settings. Detailed below. - // +kubebuilder:validation:Optional - logging?: [...#LoggingParameters] @go(Logging,[]LoggingParameters) - - // Name for the configuration. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags to assign to infrastructure created by the configuration. - // +kubebuilder:validation:Optional - resourceTags?: {[string]: null | string} @go(ResourceTags,map[string]*string) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // Set of EC2 Security Group identifiers. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Amazon Resource Name (ARN) of SNS Topic. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // Reference to a Topic in sns to populate snsTopicArn. - // +kubebuilder:validation:Optional - snsTopicArnRef?: null | v1.#Reference @go(SnsTopicArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate snsTopicArn. - // +kubebuilder:validation:Optional - snsTopicArnSelector?: null | v1.#Selector @go(SnsTopicArnSelector,*v1.Selector) - - // EC2 Subnet identifier. Also requires security_group_ids argument. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Enable if the instance should be terminated when the pipeline fails. Defaults to false. - // +kubebuilder:validation:Optional - terminateInstanceOnFailure?: null | bool @go(TerminateInstanceOnFailure,*bool) -} - -#InstanceMetadataOptionsInitParameters: { - // The number of hops that an instance can traverse to reach its destonation. - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // Whether a signed token is required for instance metadata retrieval requests. Valid values: required, optional. - httpTokens?: null | string @go(HTTPTokens,*string) -} - -#InstanceMetadataOptionsObservation: { - // The number of hops that an instance can traverse to reach its destonation. - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // Whether a signed token is required for instance metadata retrieval requests. Valid values: required, optional. - httpTokens?: null | string @go(HTTPTokens,*string) -} - -#InstanceMetadataOptionsParameters: { - // The number of hops that an instance can traverse to reach its destonation. - // +kubebuilder:validation:Optional - httpPutResponseHopLimit?: null | float64 @go(HTTPPutResponseHopLimit,*float64) - - // Whether a signed token is required for instance metadata retrieval requests. Valid values: required, optional. - // +kubebuilder:validation:Optional - httpTokens?: null | string @go(HTTPTokens,*string) -} - -#LoggingInitParameters: { - // Configuration block with S3 logging settings. Detailed below. - s3Logs?: [...#S3LogsInitParameters] @go(S3Logs,[]S3LogsInitParameters) -} - -#LoggingObservation: { - // Configuration block with S3 logging settings. Detailed below. - s3Logs?: [...#S3LogsObservation] @go(S3Logs,[]S3LogsObservation) -} - -#LoggingParameters: { - // Configuration block with S3 logging settings. Detailed below. - // +kubebuilder:validation:Optional - s3Logs: [...#S3LogsParameters] @go(S3Logs,[]S3LogsParameters) -} - -#S3LogsInitParameters: { - // Prefix to use for S3 logs. Defaults to /. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) -} - -#S3LogsObservation: { - // Name of the S3 Bucket. - s3BucketName?: null | string @go(S3BucketName,*string) - - // Prefix to use for S3 logs. Defaults to /. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) -} - -#S3LogsParameters: { - // Name of the S3 Bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +kubebuilder:validation:Optional - s3BucketName?: null | string @go(S3BucketName,*string) - - // Reference to a Bucket in s3 to populate s3BucketName. - // +kubebuilder:validation:Optional - s3BucketNameRef?: null | v1.#Reference @go(S3BucketNameRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate s3BucketName. - // +kubebuilder:validation:Optional - s3BucketNameSelector?: null | v1.#Selector @go(S3BucketNameSelector,*v1.Selector) - - // Prefix to use for S3 logs. Defaults to /. - // +kubebuilder:validation:Optional - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) -} - -// InfrastructureConfigurationSpec defines the desired state of InfrastructureConfiguration -#InfrastructureConfigurationSpec: { - v1.#ResourceSpec - forProvider: #InfrastructureConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InfrastructureConfigurationInitParameters @go(InitProvider) -} - -// InfrastructureConfigurationStatus defines the observed state of InfrastructureConfiguration. -#InfrastructureConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #InfrastructureConfigurationObservation @go(AtProvider) -} - -// InfrastructureConfiguration is the Schema for the InfrastructureConfigurations API. Manages an Image Builder Infrastructure Configuration -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#InfrastructureConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #InfrastructureConfigurationSpec @go(Spec) - status?: #InfrastructureConfigurationStatus @go(Status) -} - -// InfrastructureConfigurationList contains a list of InfrastructureConfigurations -#InfrastructureConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#InfrastructureConfiguration] @go(Items,[]InfrastructureConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector/v1beta1/zz_assessmenttarget_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector/v1beta1/zz_assessmenttarget_types_go_gen.cue deleted file mode 100644 index 78d1bc9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector/v1beta1/zz_assessmenttarget_types_go_gen.cue +++ /dev/null @@ -1,99 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/inspector/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AssessmentTargetInitParameters: { - // The name of the assessment target. - name?: null | string @go(Name,*string) -} - -#AssessmentTargetObservation: { - // The target assessment ARN. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // The name of the assessment target. - name?: null | string @go(Name,*string) - - // Inspector Resource Group Amazon Resource Name (ARN) stating tags for instance matching. If not specified, all EC2 instances in the current AWS account and region are included in the assessment target. - resourceGroupArn?: null | string @go(ResourceGroupArn,*string) -} - -#AssessmentTargetParameters: { - // The name of the assessment target. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Inspector Resource Group Amazon Resource Name (ARN) stating tags for instance matching. If not specified, all EC2 instances in the current AWS account and region are included in the assessment target. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/inspector/v1beta1.ResourceGroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resourceGroupArn?: null | string @go(ResourceGroupArn,*string) - - // Reference to a ResourceGroup in inspector to populate resourceGroupArn. - // +kubebuilder:validation:Optional - resourceGroupArnRef?: null | v1.#Reference @go(ResourceGroupArnRef,*v1.Reference) - - // Selector for a ResourceGroup in inspector to populate resourceGroupArn. - // +kubebuilder:validation:Optional - resourceGroupArnSelector?: null | v1.#Selector @go(ResourceGroupArnSelector,*v1.Selector) -} - -// AssessmentTargetSpec defines the desired state of AssessmentTarget -#AssessmentTargetSpec: { - v1.#ResourceSpec - forProvider: #AssessmentTargetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AssessmentTargetInitParameters @go(InitProvider) -} - -// AssessmentTargetStatus defines the observed state of AssessmentTarget. -#AssessmentTargetStatus: { - v1.#ResourceStatus - atProvider?: #AssessmentTargetObservation @go(AtProvider) -} - -// AssessmentTarget is the Schema for the AssessmentTargets API. Provides an Inspector Classic Assessment Target. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AssessmentTarget: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #AssessmentTargetSpec @go(Spec) - status?: #AssessmentTargetStatus @go(Status) -} - -// AssessmentTargetList contains a list of AssessmentTargets -#AssessmentTargetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AssessmentTarget] @go(Items,[]AssessmentTarget) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector/v1beta1/zz_assessmenttemplate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector/v1beta1/zz_assessmenttemplate_types_go_gen.cue deleted file mode 100644 index 89d271f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector/v1beta1/zz_assessmenttemplate_types_go_gen.cue +++ /dev/null @@ -1,177 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/inspector/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AssessmentTemplateInitParameters: { - // The duration of the inspector run. - duration?: null | float64 @go(Duration,*float64) - - // A block that enables sending notifications about a specified assessment template event to a designated SNS topic. See Event Subscriptions for details. - eventSubscription?: [...#EventSubscriptionInitParameters] @go(EventSubscription,[]EventSubscriptionInitParameters) - - // The name of the assessment template. - name?: null | string @go(Name,*string) - - // The rules to be used during the run. - rulesPackageArns?: [...null | string] @go(RulesPackageArns,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AssessmentTemplateObservation: { - // The template assessment ARN. - arn?: null | string @go(Arn,*string) - - // The duration of the inspector run. - duration?: null | float64 @go(Duration,*float64) - - // A block that enables sending notifications about a specified assessment template event to a designated SNS topic. See Event Subscriptions for details. - eventSubscription?: [...#EventSubscriptionObservation] @go(EventSubscription,[]EventSubscriptionObservation) - id?: null | string @go(ID,*string) - - // The name of the assessment template. - name?: null | string @go(Name,*string) - - // The rules to be used during the run. - rulesPackageArns?: [...null | string] @go(RulesPackageArns,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The assessment target ARN to attach the template to. - targetArn?: null | string @go(TargetArn,*string) -} - -#AssessmentTemplateParameters: { - // The duration of the inspector run. - // +kubebuilder:validation:Optional - duration?: null | float64 @go(Duration,*float64) - - // A block that enables sending notifications about a specified assessment template event to a designated SNS topic. See Event Subscriptions for details. - // +kubebuilder:validation:Optional - eventSubscription?: [...#EventSubscriptionParameters] @go(EventSubscription,[]EventSubscriptionParameters) - - // The name of the assessment template. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The rules to be used during the run. - // +kubebuilder:validation:Optional - rulesPackageArns?: [...null | string] @go(RulesPackageArns,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The assessment target ARN to attach the template to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/inspector/v1beta1.AssessmentTarget - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - targetArn?: null | string @go(TargetArn,*string) - - // Reference to a AssessmentTarget in inspector to populate targetArn. - // +kubebuilder:validation:Optional - targetArnRef?: null | v1.#Reference @go(TargetArnRef,*v1.Reference) - - // Selector for a AssessmentTarget in inspector to populate targetArn. - // +kubebuilder:validation:Optional - targetArnSelector?: null | v1.#Selector @go(TargetArnSelector,*v1.Selector) -} - -#EventSubscriptionInitParameters: { - // The event for which you want to receive SNS notifications. Valid values are ASSESSMENT_RUN_STARTED, ASSESSMENT_RUN_COMPLETED, ASSESSMENT_RUN_STATE_CHANGED, and FINDING_REPORTED. - event?: null | string @go(Event,*string) -} - -#EventSubscriptionObservation: { - // The event for which you want to receive SNS notifications. Valid values are ASSESSMENT_RUN_STARTED, ASSESSMENT_RUN_COMPLETED, ASSESSMENT_RUN_STATE_CHANGED, and FINDING_REPORTED. - event?: null | string @go(Event,*string) - - // The ARN of the SNS topic to which notifications are sent. - topicArn?: null | string @go(TopicArn,*string) -} - -#EventSubscriptionParameters: { - // The event for which you want to receive SNS notifications. Valid values are ASSESSMENT_RUN_STARTED, ASSESSMENT_RUN_COMPLETED, ASSESSMENT_RUN_STATE_CHANGED, and FINDING_REPORTED. - // +kubebuilder:validation:Optional - event?: null | string @go(Event,*string) - - // The ARN of the SNS topic to which notifications are sent. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) - - // Reference to a Topic in sns to populate topicArn. - // +kubebuilder:validation:Optional - topicArnRef?: null | v1.#Reference @go(TopicArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate topicArn. - // +kubebuilder:validation:Optional - topicArnSelector?: null | v1.#Selector @go(TopicArnSelector,*v1.Selector) -} - -// AssessmentTemplateSpec defines the desired state of AssessmentTemplate -#AssessmentTemplateSpec: { - v1.#ResourceSpec - forProvider: #AssessmentTemplateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AssessmentTemplateInitParameters @go(InitProvider) -} - -// AssessmentTemplateStatus defines the observed state of AssessmentTemplate. -#AssessmentTemplateStatus: { - v1.#ResourceStatus - atProvider?: #AssessmentTemplateObservation @go(AtProvider) -} - -// AssessmentTemplate is the Schema for the AssessmentTemplates API. Provides an Inspector Classic Assessment Template. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AssessmentTemplate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.duration) || (has(self.initProvider) && has(self.initProvider.duration))",message="spec.forProvider.duration is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rulesPackageArns) || (has(self.initProvider) && has(self.initProvider.rulesPackageArns))",message="spec.forProvider.rulesPackageArns is a required parameter" - spec: #AssessmentTemplateSpec @go(Spec) - status?: #AssessmentTemplateStatus @go(Status) -} - -// AssessmentTemplateList contains a list of AssessmentTemplates -#AssessmentTemplateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AssessmentTemplate] @go(Items,[]AssessmentTemplate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index c41d625..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/inspector/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=inspector.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "inspector.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector/v1beta1/zz_resourcegroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector/v1beta1/zz_resourcegroup_types_go_gen.cue deleted file mode 100644 index d3ba712..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector/v1beta1/zz_resourcegroup_types_go_gen.cue +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/inspector/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourceGroupInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ResourceGroupObservation: { - // The resource group ARN. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ResourceGroupParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ResourceGroupSpec defines the desired state of ResourceGroup -#ResourceGroupSpec: { - v1.#ResourceSpec - forProvider: #ResourceGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourceGroupInitParameters @go(InitProvider) -} - -// ResourceGroupStatus defines the observed state of ResourceGroup. -#ResourceGroupStatus: { - v1.#ResourceStatus - atProvider?: #ResourceGroupObservation @go(AtProvider) -} - -// ResourceGroup is the Schema for the ResourceGroups API. Provides an Amazon Inspector Classic Resource Group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ResourceGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.tags) || (has(self.initProvider) && has(self.initProvider.tags))",message="spec.forProvider.tags is a required parameter" - spec: #ResourceGroupSpec @go(Spec) - status?: #ResourceGroupStatus @go(Status) -} - -// ResourceGroupList contains a list of ResourceGroups -#ResourceGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ResourceGroup] @go(Items,[]ResourceGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector2/v1beta1/zz_enabler_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector2/v1beta1/zz_enabler_types_go_gen.cue deleted file mode 100644 index bacfaf4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector2/v1beta1/zz_enabler_types_go_gen.cue +++ /dev/null @@ -1,99 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/inspector2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EnablerInitParameters: { - // Set of account IDs. - // Can contain one of: the Organization's Administrator Account, or one or more Member Accounts. - accountIds?: [...null | string] @go(AccountIds,[]*string) - - // Type of resources to scan. - // Valid values are EC2, ECR, and LAMBDA. - // At least one item is required. - resourceTypes?: [...null | string] @go(ResourceTypes,[]*string) -} - -#EnablerObservation: { - // Set of account IDs. - // Can contain one of: the Organization's Administrator Account, or one or more Member Accounts. - accountIds?: [...null | string] @go(AccountIds,[]*string) - id?: null | string @go(ID,*string) - - // Type of resources to scan. - // Valid values are EC2, ECR, and LAMBDA. - // At least one item is required. - resourceTypes?: [...null | string] @go(ResourceTypes,[]*string) -} - -#EnablerParameters: { - // Set of account IDs. - // Can contain one of: the Organization's Administrator Account, or one or more Member Accounts. - // +kubebuilder:validation:Optional - accountIds?: [...null | string] @go(AccountIds,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Type of resources to scan. - // Valid values are EC2, ECR, and LAMBDA. - // At least one item is required. - // +kubebuilder:validation:Optional - resourceTypes?: [...null | string] @go(ResourceTypes,[]*string) -} - -// EnablerSpec defines the desired state of Enabler -#EnablerSpec: { - v1.#ResourceSpec - forProvider: #EnablerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EnablerInitParameters @go(InitProvider) -} - -// EnablerStatus defines the observed state of Enabler. -#EnablerStatus: { - v1.#ResourceStatus - atProvider?: #EnablerObservation @go(AtProvider) -} - -// Enabler is the Schema for the Enablers API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Enabler: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accountIds) || (has(self.initProvider) && has(self.initProvider.accountIds))",message="spec.forProvider.accountIds is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.resourceTypes) || (has(self.initProvider) && has(self.initProvider.resourceTypes))",message="spec.forProvider.resourceTypes is a required parameter" - spec: #EnablerSpec @go(Spec) - status?: #EnablerStatus @go(Status) -} - -// EnablerList contains a list of Enablers -#EnablerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Enabler] @go(Items,[]Enabler) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector2/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector2/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 4c6f393..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/inspector2/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/inspector2/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=inspector2.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "inspector2.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_certificate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_certificate_types_go_gen.cue deleted file mode 100644 index 6c64ef7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_certificate_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CertificateInitParameters: { - // Boolean flag to indicate if the certificate should be active - active?: null | bool @go(Active,*bool) - - // The certificate signing request. Review - // CreateCertificateFromCsr - // for more information on generating a certificate from a certificate signing request (CSR). - // If none is specified both the certificate and keys will be generated, review CreateKeysAndCertificate - // for more information on generating keys and a certificate. - csr?: null | string @go(Csr,*string) -} - -#CertificateObservation: { - // Boolean flag to indicate if the certificate should be active - active?: null | bool @go(Active,*bool) - - // The ARN of the created certificate. - arn?: null | string @go(Arn,*string) - - // The certificate signing request. Review - // CreateCertificateFromCsr - // for more information on generating a certificate from a certificate signing request (CSR). - // If none is specified both the certificate and keys will be generated, review CreateKeysAndCertificate - // for more information on generating keys and a certificate. - csr?: null | string @go(Csr,*string) - - // The internal ID assigned to this certificate. - id?: null | string @go(ID,*string) -} - -#CertificateParameters: { - // Boolean flag to indicate if the certificate should be active - // +kubebuilder:validation:Optional - active?: null | bool @go(Active,*bool) - - // The CA certificate for the certificate to be registered. If this is set, the CA needs to be registered with AWS IoT beforehand. - // +kubebuilder:validation:Optional - caPemSecretRef?: null | v1.#SecretKeySelector @go(CAPemSecretRef,*v1.SecretKeySelector) - - // The certificate to be registered. If ca_pem is unspecified, review - // RegisterCertificateWithoutCA. - // If ca_pem is specified, review - // RegisterCertificate - // for more information on registering a certificate. - // +kubebuilder:validation:Optional - certificatePemSecretRef?: null | v1.#SecretKeySelector @go(CertificatePemSecretRef,*v1.SecretKeySelector) - - // The certificate signing request. Review - // CreateCertificateFromCsr - // for more information on generating a certificate from a certificate signing request (CSR). - // If none is specified both the certificate and keys will be generated, review CreateKeysAndCertificate - // for more information on generating keys and a certificate. - // +kubebuilder:validation:Optional - csr?: null | string @go(Csr,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// CertificateSpec defines the desired state of Certificate -#CertificateSpec: { - v1.#ResourceSpec - forProvider: #CertificateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CertificateInitParameters @go(InitProvider) -} - -// CertificateStatus defines the observed state of Certificate. -#CertificateStatus: { - v1.#ResourceStatus - atProvider?: #CertificateObservation @go(AtProvider) -} - -// Certificate is the Schema for the Certificates API. Creates and manages an AWS IoT certificate. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Certificate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.active) || (has(self.initProvider) && has(self.initProvider.active))",message="spec.forProvider.active is a required parameter" - spec: #CertificateSpec @go(Spec) - status?: #CertificateStatus @go(Status) -} - -// CertificateList contains a list of Certificates -#CertificateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Certificate] @go(Items,[]Certificate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index ca79fb3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=iot.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "iot.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_indexingconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_indexingconfiguration_types_go_gen.cue deleted file mode 100644 index 3d93390..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_indexingconfiguration_types_go_gen.cue +++ /dev/null @@ -1,294 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CustomFieldInitParameters: { - // The name of the field. - name?: null | string @go(Name,*string) - - // The data type of the field. Valid values: Number, String, Boolean. - type?: null | string @go(Type,*string) -} - -#CustomFieldObservation: { - // The name of the field. - name?: null | string @go(Name,*string) - - // The data type of the field. Valid values: Number, String, Boolean. - type?: null | string @go(Type,*string) -} - -#CustomFieldParameters: { - // The name of the field. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The data type of the field. Valid values: Number, String, Boolean. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#IndexingConfigurationInitParameters: { - // Thing group indexing configuration. See below. - thingGroupIndexingConfiguration?: [...#ThingGroupIndexingConfigurationInitParameters] @go(ThingGroupIndexingConfiguration,[]ThingGroupIndexingConfigurationInitParameters) - - // Thing indexing configuration. See below. - thingIndexingConfiguration?: [...#ThingIndexingConfigurationInitParameters] @go(ThingIndexingConfiguration,[]ThingIndexingConfigurationInitParameters) -} - -#IndexingConfigurationObservation: { - id?: null | string @go(ID,*string) - - // Thing group indexing configuration. See below. - thingGroupIndexingConfiguration?: [...#ThingGroupIndexingConfigurationObservation] @go(ThingGroupIndexingConfiguration,[]ThingGroupIndexingConfigurationObservation) - - // Thing indexing configuration. See below. - thingIndexingConfiguration?: [...#ThingIndexingConfigurationObservation] @go(ThingIndexingConfiguration,[]ThingIndexingConfigurationObservation) -} - -#IndexingConfigurationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Thing group indexing configuration. See below. - // +kubebuilder:validation:Optional - thingGroupIndexingConfiguration?: [...#ThingGroupIndexingConfigurationParameters] @go(ThingGroupIndexingConfiguration,[]ThingGroupIndexingConfigurationParameters) - - // Thing indexing configuration. See below. - // +kubebuilder:validation:Optional - thingIndexingConfiguration?: [...#ThingIndexingConfigurationParameters] @go(ThingIndexingConfiguration,[]ThingIndexingConfigurationParameters) -} - -#ManagedFieldInitParameters: { - // The name of the field. - name?: null | string @go(Name,*string) - - // The data type of the field. Valid values: Number, String, Boolean. - type?: null | string @go(Type,*string) -} - -#ManagedFieldObservation: { - // The name of the field. - name?: null | string @go(Name,*string) - - // The data type of the field. Valid values: Number, String, Boolean. - type?: null | string @go(Type,*string) -} - -#ManagedFieldParameters: { - // The name of the field. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The data type of the field. Valid values: Number, String, Boolean. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#ThingGroupIndexingConfigurationInitParameters: { - // A list of thing group fields to index. This list cannot contain any managed fields. See below. - customField?: [...#CustomFieldInitParameters] @go(CustomField,[]CustomFieldInitParameters) - - // Contains fields that are indexed and whose types are already known by the Fleet Indexing service. See below. - managedField?: [...#ManagedFieldInitParameters] @go(ManagedField,[]ManagedFieldInitParameters) - - // Thing group indexing mode. Valid values: OFF, ON. - thingGroupIndexingMode?: null | string @go(ThingGroupIndexingMode,*string) -} - -#ThingGroupIndexingConfigurationObservation: { - // A list of thing group fields to index. This list cannot contain any managed fields. See below. - customField?: [...#CustomFieldObservation] @go(CustomField,[]CustomFieldObservation) - - // Contains fields that are indexed and whose types are already known by the Fleet Indexing service. See below. - managedField?: [...#ManagedFieldObservation] @go(ManagedField,[]ManagedFieldObservation) - - // Thing group indexing mode. Valid values: OFF, ON. - thingGroupIndexingMode?: null | string @go(ThingGroupIndexingMode,*string) -} - -#ThingGroupIndexingConfigurationParameters: { - // A list of thing group fields to index. This list cannot contain any managed fields. See below. - // +kubebuilder:validation:Optional - customField?: [...#CustomFieldParameters] @go(CustomField,[]CustomFieldParameters) - - // Contains fields that are indexed and whose types are already known by the Fleet Indexing service. See below. - // +kubebuilder:validation:Optional - managedField?: [...#ManagedFieldParameters] @go(ManagedField,[]ManagedFieldParameters) - - // Thing group indexing mode. Valid values: OFF, ON. - // +kubebuilder:validation:Optional - thingGroupIndexingMode?: null | string @go(ThingGroupIndexingMode,*string) -} - -#ThingIndexingConfigurationCustomFieldInitParameters: { - // The name of the field. - name?: null | string @go(Name,*string) - - // The data type of the field. Valid values: Number, String, Boolean. - type?: null | string @go(Type,*string) -} - -#ThingIndexingConfigurationCustomFieldObservation: { - // The name of the field. - name?: null | string @go(Name,*string) - - // The data type of the field. Valid values: Number, String, Boolean. - type?: null | string @go(Type,*string) -} - -#ThingIndexingConfigurationCustomFieldParameters: { - // The name of the field. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The data type of the field. Valid values: Number, String, Boolean. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#ThingIndexingConfigurationInitParameters: { - // Contains custom field names and their data type. See below. - customField?: [...#ThingIndexingConfigurationCustomFieldInitParameters] @go(CustomField,[]ThingIndexingConfigurationCustomFieldInitParameters) - - // Device Defender indexing mode. Valid values: VIOLATIONS, OFF. Default: OFF. - deviceDefenderIndexingMode?: null | string @go(DeviceDefenderIndexingMode,*string) - - // Contains fields that are indexed and whose types are already known by the Fleet Indexing service. See below. - managedField?: [...#ThingIndexingConfigurationManagedFieldInitParameters] @go(ManagedField,[]ThingIndexingConfigurationManagedFieldInitParameters) - - // Named shadow indexing mode. Valid values: ON, OFF. Default: OFF. - namedShadowIndexingMode?: null | string @go(NamedShadowIndexingMode,*string) - - // Thing connectivity indexing mode. Valid values: STATUS, OFF. Default: OFF. - thingConnectivityIndexingMode?: null | string @go(ThingConnectivityIndexingMode,*string) - - // Thing indexing mode. Valid values: REGISTRY, REGISTRY_AND_SHADOW, OFF. - thingIndexingMode?: null | string @go(ThingIndexingMode,*string) -} - -#ThingIndexingConfigurationManagedFieldInitParameters: { - // The name of the field. - name?: null | string @go(Name,*string) - - // The data type of the field. Valid values: Number, String, Boolean. - type?: null | string @go(Type,*string) -} - -#ThingIndexingConfigurationManagedFieldObservation: { - // The name of the field. - name?: null | string @go(Name,*string) - - // The data type of the field. Valid values: Number, String, Boolean. - type?: null | string @go(Type,*string) -} - -#ThingIndexingConfigurationManagedFieldParameters: { - // The name of the field. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The data type of the field. Valid values: Number, String, Boolean. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#ThingIndexingConfigurationObservation: { - // Contains custom field names and their data type. See below. - customField?: [...#ThingIndexingConfigurationCustomFieldObservation] @go(CustomField,[]ThingIndexingConfigurationCustomFieldObservation) - - // Device Defender indexing mode. Valid values: VIOLATIONS, OFF. Default: OFF. - deviceDefenderIndexingMode?: null | string @go(DeviceDefenderIndexingMode,*string) - - // Contains fields that are indexed and whose types are already known by the Fleet Indexing service. See below. - managedField?: [...#ThingIndexingConfigurationManagedFieldObservation] @go(ManagedField,[]ThingIndexingConfigurationManagedFieldObservation) - - // Named shadow indexing mode. Valid values: ON, OFF. Default: OFF. - namedShadowIndexingMode?: null | string @go(NamedShadowIndexingMode,*string) - - // Thing connectivity indexing mode. Valid values: STATUS, OFF. Default: OFF. - thingConnectivityIndexingMode?: null | string @go(ThingConnectivityIndexingMode,*string) - - // Thing indexing mode. Valid values: REGISTRY, REGISTRY_AND_SHADOW, OFF. - thingIndexingMode?: null | string @go(ThingIndexingMode,*string) -} - -#ThingIndexingConfigurationParameters: { - // Contains custom field names and their data type. See below. - // +kubebuilder:validation:Optional - customField?: [...#ThingIndexingConfigurationCustomFieldParameters] @go(CustomField,[]ThingIndexingConfigurationCustomFieldParameters) - - // Device Defender indexing mode. Valid values: VIOLATIONS, OFF. Default: OFF. - // +kubebuilder:validation:Optional - deviceDefenderIndexingMode?: null | string @go(DeviceDefenderIndexingMode,*string) - - // Contains fields that are indexed and whose types are already known by the Fleet Indexing service. See below. - // +kubebuilder:validation:Optional - managedField?: [...#ThingIndexingConfigurationManagedFieldParameters] @go(ManagedField,[]ThingIndexingConfigurationManagedFieldParameters) - - // Named shadow indexing mode. Valid values: ON, OFF. Default: OFF. - // +kubebuilder:validation:Optional - namedShadowIndexingMode?: null | string @go(NamedShadowIndexingMode,*string) - - // Thing connectivity indexing mode. Valid values: STATUS, OFF. Default: OFF. - // +kubebuilder:validation:Optional - thingConnectivityIndexingMode?: null | string @go(ThingConnectivityIndexingMode,*string) - - // Thing indexing mode. Valid values: REGISTRY, REGISTRY_AND_SHADOW, OFF. - // +kubebuilder:validation:Optional - thingIndexingMode?: null | string @go(ThingIndexingMode,*string) -} - -// IndexingConfigurationSpec defines the desired state of IndexingConfiguration -#IndexingConfigurationSpec: { - v1.#ResourceSpec - forProvider: #IndexingConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IndexingConfigurationInitParameters @go(InitProvider) -} - -// IndexingConfigurationStatus defines the observed state of IndexingConfiguration. -#IndexingConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #IndexingConfigurationObservation @go(AtProvider) -} - -// IndexingConfiguration is the Schema for the IndexingConfigurations API. Managing IoT Thing indexing. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#IndexingConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #IndexingConfigurationSpec @go(Spec) - status?: #IndexingConfigurationStatus @go(Status) -} - -// IndexingConfigurationList contains a list of IndexingConfigurations -#IndexingConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#IndexingConfiguration] @go(Items,[]IndexingConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_loggingoptions_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_loggingoptions_types_go_gen.cue deleted file mode 100644 index 2b620f5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_loggingoptions_types_go_gen.cue +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LoggingOptionsInitParameters: { - // The default logging level. Valid Values: "DEBUG", "INFO", "ERROR", "WARN", "DISABLED". - defaultLogLevel?: null | string @go(DefaultLogLevel,*string) - - // If true all logs are disabled. The default is false. - disableAllLogs?: null | bool @go(DisableAllLogs,*bool) -} - -#LoggingOptionsObservation: { - // The default logging level. Valid Values: "DEBUG", "INFO", "ERROR", "WARN", "DISABLED". - defaultLogLevel?: null | string @go(DefaultLogLevel,*string) - - // If true all logs are disabled. The default is false. - disableAllLogs?: null | bool @go(DisableAllLogs,*bool) - id?: null | string @go(ID,*string) - - // The ARN of the role that allows IoT to write to Cloudwatch logs. - roleArn?: null | string @go(RoleArn,*string) -} - -#LoggingOptionsParameters: { - // The default logging level. Valid Values: "DEBUG", "INFO", "ERROR", "WARN", "DISABLED". - // +kubebuilder:validation:Optional - defaultLogLevel?: null | string @go(DefaultLogLevel,*string) - - // If true all logs are disabled. The default is false. - // +kubebuilder:validation:Optional - disableAllLogs?: null | bool @go(DisableAllLogs,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of the role that allows IoT to write to Cloudwatch logs. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -// LoggingOptionsSpec defines the desired state of LoggingOptions -#LoggingOptionsSpec: { - v1.#ResourceSpec - forProvider: #LoggingOptionsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LoggingOptionsInitParameters @go(InitProvider) -} - -// LoggingOptionsStatus defines the observed state of LoggingOptions. -#LoggingOptionsStatus: { - v1.#ResourceStatus - atProvider?: #LoggingOptionsObservation @go(AtProvider) -} - -// LoggingOptions is the Schema for the LoggingOptionss API. Provides a resource to manage default logging options. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LoggingOptions: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.defaultLogLevel) || (has(self.initProvider) && has(self.initProvider.defaultLogLevel))",message="spec.forProvider.defaultLogLevel is a required parameter" - spec: #LoggingOptionsSpec @go(Spec) - status?: #LoggingOptionsStatus @go(Status) -} - -// LoggingOptionsList contains a list of LoggingOptionss -#LoggingOptionsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LoggingOptions] @go(Items,[]LoggingOptions) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_policy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_policy_types_go_gen.cue deleted file mode 100644 index 61f1065..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_policy_types_go_gen.cue +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PolicyInitParameters: { - // The policy document. This is a JSON formatted string. Use the IoT Developer Guide for more information on IoT Policies. - policy?: null | string @go(Policy,*string) -} - -#PolicyObservation: { - // The ARN assigned by AWS to this policy. - arn?: null | string @go(Arn,*string) - - // The default version of this policy. - defaultVersionId?: null | string @go(DefaultVersionID,*string) - id?: null | string @go(ID,*string) - - // The policy document. This is a JSON formatted string. Use the IoT Developer Guide for more information on IoT Policies. - policy?: null | string @go(Policy,*string) -} - -#PolicyParameters: { - // The policy document. This is a JSON formatted string. Use the IoT Developer Guide for more information on IoT Policies. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// PolicySpec defines the desired state of Policy -#PolicySpec: { - v1.#ResourceSpec - forProvider: #PolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PolicyInitParameters @go(InitProvider) -} - -// PolicyStatus defines the observed state of Policy. -#PolicyStatus: { - v1.#ResourceStatus - atProvider?: #PolicyObservation @go(AtProvider) -} - -// Policy is the Schema for the Policys API. Provides an IoT policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Policy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #PolicySpec @go(Spec) - status?: #PolicyStatus @go(Status) -} - -// PolicyList contains a list of Policys -#PolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Policy] @go(Items,[]Policy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_policyattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_policyattachment_types_go_gen.cue deleted file mode 100644 index 8f32efd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_policyattachment_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PolicyAttachmentInitParameters: { -} - -#PolicyAttachmentObservation: { - id?: null | string @go(ID,*string) - - // The name of the policy to attach. - policy?: null | string @go(Policy,*string) - - // The identity to which the policy is attached. - target?: null | string @go(Target,*string) -} - -#PolicyAttachmentParameters: { - // The name of the policy to attach. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iot/v1beta1.Policy - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Reference to a Policy in iot to populate policy. - // +kubebuilder:validation:Optional - policyRef?: null | v1.#Reference @go(PolicyRef,*v1.Reference) - - // Selector for a Policy in iot to populate policy. - // +kubebuilder:validation:Optional - policySelector?: null | v1.#Selector @go(PolicySelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The identity to which the policy is attached. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iot/v1beta1.Certificate - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) - - // Reference to a Certificate in iot to populate target. - // +kubebuilder:validation:Optional - targetRef?: null | v1.#Reference @go(TargetRef,*v1.Reference) - - // Selector for a Certificate in iot to populate target. - // +kubebuilder:validation:Optional - targetSelector?: null | v1.#Selector @go(TargetSelector,*v1.Selector) -} - -// PolicyAttachmentSpec defines the desired state of PolicyAttachment -#PolicyAttachmentSpec: { - v1.#ResourceSpec - forProvider: #PolicyAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PolicyAttachmentInitParameters @go(InitProvider) -} - -// PolicyAttachmentStatus defines the observed state of PolicyAttachment. -#PolicyAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #PolicyAttachmentObservation @go(AtProvider) -} - -// PolicyAttachment is the Schema for the PolicyAttachments API. Provides an IoT policy attachment. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PolicyAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #PolicyAttachmentSpec @go(Spec) - status?: #PolicyAttachmentStatus @go(Status) -} - -// PolicyAttachmentList contains a list of PolicyAttachments -#PolicyAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PolicyAttachment] @go(Items,[]PolicyAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_provisioningtemplate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_provisioningtemplate_types_go_gen.cue deleted file mode 100644 index f829c46..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_provisioningtemplate_types_go_gen.cue +++ /dev/null @@ -1,171 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PreProvisioningHookInitParameters: { - // The version of the payload that was sent to the target function. The only valid (and the default) payload version is "2020-04-01". - payloadVersion?: null | string @go(PayloadVersion,*string) - - // The ARN of the target function. - targetArn?: null | string @go(TargetArn,*string) -} - -#PreProvisioningHookObservation: { - // The version of the payload that was sent to the target function. The only valid (and the default) payload version is "2020-04-01". - payloadVersion?: null | string @go(PayloadVersion,*string) - - // The ARN of the target function. - targetArn?: null | string @go(TargetArn,*string) -} - -#PreProvisioningHookParameters: { - // The version of the payload that was sent to the target function. The only valid (and the default) payload version is "2020-04-01". - // +kubebuilder:validation:Optional - payloadVersion?: null | string @go(PayloadVersion,*string) - - // The ARN of the target function. - // +kubebuilder:validation:Optional - targetArn?: null | string @go(TargetArn,*string) -} - -#ProvisioningTemplateInitParameters: { - // The description of the fleet provisioning template. - description?: null | string @go(Description,*string) - - // True to enable the fleet provisioning template, otherwise false. - enabled?: null | bool @go(Enabled,*bool) - - // Creates a pre-provisioning hook template. Details below. - preProvisioningHook?: [...#PreProvisioningHookInitParameters] @go(PreProvisioningHook,[]PreProvisioningHookInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The JSON formatted contents of the fleet provisioning template. - templateBody?: null | string @go(TemplateBody,*string) -} - -#ProvisioningTemplateObservation: { - // The ARN that identifies the provisioning template. - arn?: null | string @go(Arn,*string) - - // The default version of the fleet provisioning template. - defaultVersionId?: null | float64 @go(DefaultVersionID,*float64) - - // The description of the fleet provisioning template. - description?: null | string @go(Description,*string) - - // True to enable the fleet provisioning template, otherwise false. - enabled?: null | bool @go(Enabled,*bool) - id?: null | string @go(ID,*string) - - // Creates a pre-provisioning hook template. Details below. - preProvisioningHook?: [...#PreProvisioningHookObservation] @go(PreProvisioningHook,[]PreProvisioningHookObservation) - - // The role ARN for the role associated with the fleet provisioning template. This IoT role grants permission to provision a device. - provisioningRoleArn?: null | string @go(ProvisioningRoleArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The JSON formatted contents of the fleet provisioning template. - templateBody?: null | string @go(TemplateBody,*string) -} - -#ProvisioningTemplateParameters: { - // The description of the fleet provisioning template. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // True to enable the fleet provisioning template, otherwise false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Creates a pre-provisioning hook template. Details below. - // +kubebuilder:validation:Optional - preProvisioningHook?: [...#PreProvisioningHookParameters] @go(PreProvisioningHook,[]PreProvisioningHookParameters) - - // The role ARN for the role associated with the fleet provisioning template. This IoT role grants permission to provision a device. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - provisioningRoleArn?: null | string @go(ProvisioningRoleArn,*string) - - // Reference to a Role in iam to populate provisioningRoleArn. - // +kubebuilder:validation:Optional - provisioningRoleArnRef?: null | v1.#Reference @go(ProvisioningRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate provisioningRoleArn. - // +kubebuilder:validation:Optional - provisioningRoleArnSelector?: null | v1.#Selector @go(ProvisioningRoleArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The JSON formatted contents of the fleet provisioning template. - // +kubebuilder:validation:Optional - templateBody?: null | string @go(TemplateBody,*string) -} - -// ProvisioningTemplateSpec defines the desired state of ProvisioningTemplate -#ProvisioningTemplateSpec: { - v1.#ResourceSpec - forProvider: #ProvisioningTemplateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProvisioningTemplateInitParameters @go(InitProvider) -} - -// ProvisioningTemplateStatus defines the observed state of ProvisioningTemplate. -#ProvisioningTemplateStatus: { - v1.#ResourceStatus - atProvider?: #ProvisioningTemplateObservation @go(AtProvider) -} - -// ProvisioningTemplate is the Schema for the ProvisioningTemplates API. Manages an IoT fleet provisioning template. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ProvisioningTemplate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.templateBody) || (has(self.initProvider) && has(self.initProvider.templateBody))",message="spec.forProvider.templateBody is a required parameter" - spec: #ProvisioningTemplateSpec @go(Spec) - status?: #ProvisioningTemplateStatus @go(Status) -} - -// ProvisioningTemplateList contains a list of ProvisioningTemplates -#ProvisioningTemplateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ProvisioningTemplate] @go(Items,[]ProvisioningTemplate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_rolealias_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_rolealias_types_go_gen.cue deleted file mode 100644 index aa5bcf0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_rolealias_types_go_gen.cue +++ /dev/null @@ -1,109 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RoleAliasInitParameters: { - // The name of the role alias. - alias?: null | string @go(Alias,*string) - - // The duration of the credential, in seconds. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 900 seconds (15 minutes) to 43200 seconds (12 hours). - credentialDuration?: null | float64 @go(CredentialDuration,*float64) -} - -#RoleAliasObservation: { - // The name of the role alias. - alias?: null | string @go(Alias,*string) - - // The ARN assigned by AWS to this role alias. - arn?: null | string @go(Arn,*string) - - // The duration of the credential, in seconds. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 900 seconds (15 minutes) to 43200 seconds (12 hours). - credentialDuration?: null | float64 @go(CredentialDuration,*float64) - id?: null | string @go(ID,*string) - - // The identity of the role to which the alias refers. - roleArn?: null | string @go(RoleArn,*string) -} - -#RoleAliasParameters: { - // The name of the role alias. - // +kubebuilder:validation:Optional - alias?: null | string @go(Alias,*string) - - // The duration of the credential, in seconds. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 900 seconds (15 minutes) to 43200 seconds (12 hours). - // +kubebuilder:validation:Optional - credentialDuration?: null | float64 @go(CredentialDuration,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The identity of the role to which the alias refers. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -// RoleAliasSpec defines the desired state of RoleAlias -#RoleAliasSpec: { - v1.#ResourceSpec - forProvider: #RoleAliasParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RoleAliasInitParameters @go(InitProvider) -} - -// RoleAliasStatus defines the observed state of RoleAlias. -#RoleAliasStatus: { - v1.#ResourceStatus - atProvider?: #RoleAliasObservation @go(AtProvider) -} - -// RoleAlias is the Schema for the RoleAliass API. Provides an IoT role alias. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RoleAlias: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.alias) || (has(self.initProvider) && has(self.initProvider.alias))",message="spec.forProvider.alias is a required parameter" - spec: #RoleAliasSpec @go(Spec) - status?: #RoleAliasStatus @go(Status) -} - -// RoleAliasList contains a list of RoleAliass -#RoleAliasList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RoleAlias] @go(Items,[]RoleAlias) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thing_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thing_types_go_gen.cue deleted file mode 100644 index 59dd72d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thing_types_go_gen.cue +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ThingInitParameters: { - // Map of attributes of the thing. - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) - - // The thing type name. - thingTypeName?: null | string @go(ThingTypeName,*string) -} - -#ThingObservation: { - // The ARN of the thing. - arn?: null | string @go(Arn,*string) - - // Map of attributes of the thing. - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) - - // The default client ID. - defaultClientId?: null | string @go(DefaultClientID,*string) - id?: null | string @go(ID,*string) - - // The thing type name. - thingTypeName?: null | string @go(ThingTypeName,*string) - - // The current version of the thing record in the registry. - version?: null | float64 @go(Version,*float64) -} - -#ThingParameters: { - // Map of attributes of the thing. - // +kubebuilder:validation:Optional - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The thing type name. - // +kubebuilder:validation:Optional - thingTypeName?: null | string @go(ThingTypeName,*string) -} - -// ThingSpec defines the desired state of Thing -#ThingSpec: { - v1.#ResourceSpec - forProvider: #ThingParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ThingInitParameters @go(InitProvider) -} - -// ThingStatus defines the observed state of Thing. -#ThingStatus: { - v1.#ResourceStatus - atProvider?: #ThingObservation @go(AtProvider) -} - -// Thing is the Schema for the Things API. Creates and manages an AWS IoT Thing. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Thing: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ThingSpec @go(Spec) - status?: #ThingStatus @go(Status) -} - -// ThingList contains a list of Things -#ThingList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Thing] @go(Items,[]Thing) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thinggroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thinggroup_types_go_gen.cue deleted file mode 100644 index db48c3c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thinggroup_types_go_gen.cue +++ /dev/null @@ -1,183 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AttributePayloadInitParameters: { - // Key-value map. - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) -} - -#AttributePayloadObservation: { - // Key-value map. - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) -} - -#AttributePayloadParameters: { - // Key-value map. - // +kubebuilder:validation:Optional - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) -} - -#MetadataInitParameters: { -} - -#MetadataObservation: { - creationDate?: null | string @go(CreationDate,*string) - - // The name of the parent Thing Group. - parentGroupName?: null | string @go(ParentGroupName,*string) - rootToParentGroups?: [...#RootToParentGroupsObservation] @go(RootToParentGroups,[]RootToParentGroupsObservation) -} - -#MetadataParameters: { -} - -#PropertiesInitParameters: { - // The Thing Group attributes. Defined below. - attributePayload?: [...#AttributePayloadInitParameters] @go(AttributePayload,[]AttributePayloadInitParameters) - - // A description of the Thing Group. - description?: null | string @go(Description,*string) -} - -#PropertiesObservation: { - // The Thing Group attributes. Defined below. - attributePayload?: [...#AttributePayloadObservation] @go(AttributePayload,[]AttributePayloadObservation) - - // A description of the Thing Group. - description?: null | string @go(Description,*string) -} - -#PropertiesParameters: { - // The Thing Group attributes. Defined below. - // +kubebuilder:validation:Optional - attributePayload?: [...#AttributePayloadParameters] @go(AttributePayload,[]AttributePayloadParameters) - - // A description of the Thing Group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) -} - -#RootToParentGroupsInitParameters: { -} - -#RootToParentGroupsObservation: { - // The ARN of the Thing Group. - groupArn?: null | string @go(GroupArn,*string) - - // The name of the Thing Group. - groupName?: null | string @go(GroupName,*string) -} - -#RootToParentGroupsParameters: { -} - -#ThingGroupInitParameters: { - // The Thing Group properties. Defined below. - properties?: [...#PropertiesInitParameters] @go(Properties,[]PropertiesInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ThingGroupObservation: { - // The ARN of the Thing Group. - arn?: null | string @go(Arn,*string) - - // The Thing Group ID. - id?: null | string @go(ID,*string) - metadata?: [...#MetadataObservation] @go(Metadata,[]MetadataObservation) - - // The name of the parent Thing Group. - parentGroupName?: null | string @go(ParentGroupName,*string) - - // The Thing Group properties. Defined below. - properties?: [...#PropertiesObservation] @go(Properties,[]PropertiesObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The current version of the Thing Group record in the registry. - version?: null | float64 @go(Version,*float64) -} - -#ThingGroupParameters: { - // The name of the parent Thing Group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iot/v1beta1.ThingGroup - // +kubebuilder:validation:Optional - parentGroupName?: null | string @go(ParentGroupName,*string) - - // Reference to a ThingGroup in iot to populate parentGroupName. - // +kubebuilder:validation:Optional - parentGroupNameRef?: null | v1.#Reference @go(ParentGroupNameRef,*v1.Reference) - - // Selector for a ThingGroup in iot to populate parentGroupName. - // +kubebuilder:validation:Optional - parentGroupNameSelector?: null | v1.#Selector @go(ParentGroupNameSelector,*v1.Selector) - - // The Thing Group properties. Defined below. - // +kubebuilder:validation:Optional - properties?: [...#PropertiesParameters] @go(Properties,[]PropertiesParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ThingGroupSpec defines the desired state of ThingGroup -#ThingGroupSpec: { - v1.#ResourceSpec - forProvider: #ThingGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ThingGroupInitParameters @go(InitProvider) -} - -// ThingGroupStatus defines the observed state of ThingGroup. -#ThingGroupStatus: { - v1.#ResourceStatus - atProvider?: #ThingGroupObservation @go(AtProvider) -} - -// ThingGroup is the Schema for the ThingGroups API. Manages an AWS IoT Thing Group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ThingGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ThingGroupSpec @go(Spec) - status?: #ThingGroupStatus @go(Status) -} - -// ThingGroupList contains a list of ThingGroups -#ThingGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ThingGroup] @go(Items,[]ThingGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thinggroupmembership_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thinggroupmembership_types_go_gen.cue deleted file mode 100644 index 8607711..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thinggroupmembership_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ThingGroupMembershipInitParameters: { - // Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group. - overrideDynamicGroup?: null | bool @go(OverrideDynamicGroup,*bool) - - // The name of the group to which you are adding a thing. - thingGroupName?: null | string @go(ThingGroupName,*string) - - // The name of the thing to add to a group. - thingName?: null | string @go(ThingName,*string) -} - -#ThingGroupMembershipObservation: { - // The membership ID. - id?: null | string @go(ID,*string) - - // Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group. - overrideDynamicGroup?: null | bool @go(OverrideDynamicGroup,*bool) - - // The name of the group to which you are adding a thing. - thingGroupName?: null | string @go(ThingGroupName,*string) - - // The name of the thing to add to a group. - thingName?: null | string @go(ThingName,*string) -} - -#ThingGroupMembershipParameters: { - // Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group. - // +kubebuilder:validation:Optional - overrideDynamicGroup?: null | bool @go(OverrideDynamicGroup,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the group to which you are adding a thing. - // +kubebuilder:validation:Optional - thingGroupName?: null | string @go(ThingGroupName,*string) - - // The name of the thing to add to a group. - // +kubebuilder:validation:Optional - thingName?: null | string @go(ThingName,*string) -} - -// ThingGroupMembershipSpec defines the desired state of ThingGroupMembership -#ThingGroupMembershipSpec: { - v1.#ResourceSpec - forProvider: #ThingGroupMembershipParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ThingGroupMembershipInitParameters @go(InitProvider) -} - -// ThingGroupMembershipStatus defines the observed state of ThingGroupMembership. -#ThingGroupMembershipStatus: { - v1.#ResourceStatus - atProvider?: #ThingGroupMembershipObservation @go(AtProvider) -} - -// ThingGroupMembership is the Schema for the ThingGroupMemberships API. Adds an IoT Thing to an IoT Thing Group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ThingGroupMembership: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.thingGroupName) || (has(self.initProvider) && has(self.initProvider.thingGroupName))",message="spec.forProvider.thingGroupName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.thingName) || (has(self.initProvider) && has(self.initProvider.thingName))",message="spec.forProvider.thingName is a required parameter" - spec: #ThingGroupMembershipSpec @go(Spec) - status?: #ThingGroupMembershipStatus @go(Status) -} - -// ThingGroupMembershipList contains a list of ThingGroupMemberships -#ThingGroupMembershipList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ThingGroupMembership] @go(Items,[]ThingGroupMembership) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thingprincipalattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thingprincipalattachment_types_go_gen.cue deleted file mode 100644 index 1aca906..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thingprincipalattachment_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ThingPrincipalAttachmentInitParameters: { -} - -#ThingPrincipalAttachmentObservation: { - id?: null | string @go(ID,*string) - - // The AWS IoT Certificate ARN or Amazon Cognito Identity ID. - principal?: null | string @go(Principal,*string) - - // The name of the thing. - thing?: null | string @go(Thing,*string) -} - -#ThingPrincipalAttachmentParameters: { - // The AWS IoT Certificate ARN or Amazon Cognito Identity ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iot/v1beta1.Certificate - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - principal?: null | string @go(Principal,*string) - - // Reference to a Certificate in iot to populate principal. - // +kubebuilder:validation:Optional - principalRef?: null | v1.#Reference @go(PrincipalRef,*v1.Reference) - - // Selector for a Certificate in iot to populate principal. - // +kubebuilder:validation:Optional - principalSelector?: null | v1.#Selector @go(PrincipalSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the thing. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iot/v1beta1.Thing - // +kubebuilder:validation:Optional - thing?: null | string @go(Thing,*string) - - // Reference to a Thing in iot to populate thing. - // +kubebuilder:validation:Optional - thingRef?: null | v1.#Reference @go(ThingRef,*v1.Reference) - - // Selector for a Thing in iot to populate thing. - // +kubebuilder:validation:Optional - thingSelector?: null | v1.#Selector @go(ThingSelector,*v1.Selector) -} - -// ThingPrincipalAttachmentSpec defines the desired state of ThingPrincipalAttachment -#ThingPrincipalAttachmentSpec: { - v1.#ResourceSpec - forProvider: #ThingPrincipalAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ThingPrincipalAttachmentInitParameters @go(InitProvider) -} - -// ThingPrincipalAttachmentStatus defines the observed state of ThingPrincipalAttachment. -#ThingPrincipalAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #ThingPrincipalAttachmentObservation @go(AtProvider) -} - -// ThingPrincipalAttachment is the Schema for the ThingPrincipalAttachments API. Provides AWS IoT Thing Principal attachment. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ThingPrincipalAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ThingPrincipalAttachmentSpec @go(Spec) - status?: #ThingPrincipalAttachmentStatus @go(Status) -} - -// ThingPrincipalAttachmentList contains a list of ThingPrincipalAttachments -#ThingPrincipalAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ThingPrincipalAttachment] @go(Items,[]ThingPrincipalAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thingtype_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thingtype_types_go_gen.cue deleted file mode 100644 index 7c2ddfb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_thingtype_types_go_gen.cue +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ThingTypeInitParameters: { - // Whether the thing type is deprecated. If true, no new things could be associated with this type. - deprecated?: null | bool @go(Deprecated,*bool) - - // The name of the thing type. - name?: null | string @go(Name,*string) - - // , Configuration block that can contain the following properties of the thing type: - properties?: [...#ThingTypePropertiesInitParameters] @go(Properties,[]ThingTypePropertiesInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ThingTypeObservation: { - // The ARN of the created AWS IoT Thing Type. - arn?: null | string @go(Arn,*string) - - // Whether the thing type is deprecated. If true, no new things could be associated with this type. - deprecated?: null | bool @go(Deprecated,*bool) - id?: null | string @go(ID,*string) - - // The name of the thing type. - name?: null | string @go(Name,*string) - - // , Configuration block that can contain the following properties of the thing type: - properties?: [...#ThingTypePropertiesObservation] @go(Properties,[]ThingTypePropertiesObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ThingTypeParameters: { - // Whether the thing type is deprecated. If true, no new things could be associated with this type. - // +kubebuilder:validation:Optional - deprecated?: null | bool @go(Deprecated,*bool) - - // The name of the thing type. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // , Configuration block that can contain the following properties of the thing type: - // +kubebuilder:validation:Optional - properties?: [...#ThingTypePropertiesParameters] @go(Properties,[]ThingTypePropertiesParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ThingTypePropertiesInitParameters: { - // The description of the thing type. - description?: null | string @go(Description,*string) - - // A list of searchable thing attribute names. - searchableAttributes?: [...null | string] @go(SearchableAttributes,[]*string) -} - -#ThingTypePropertiesObservation: { - // The description of the thing type. - description?: null | string @go(Description,*string) - - // A list of searchable thing attribute names. - searchableAttributes?: [...null | string] @go(SearchableAttributes,[]*string) -} - -#ThingTypePropertiesParameters: { - // The description of the thing type. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A list of searchable thing attribute names. - // +kubebuilder:validation:Optional - searchableAttributes?: [...null | string] @go(SearchableAttributes,[]*string) -} - -// ThingTypeSpec defines the desired state of ThingType -#ThingTypeSpec: { - v1.#ResourceSpec - forProvider: #ThingTypeParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ThingTypeInitParameters @go(InitProvider) -} - -// ThingTypeStatus defines the observed state of ThingType. -#ThingTypeStatus: { - v1.#ResourceStatus - atProvider?: #ThingTypeObservation @go(AtProvider) -} - -// ThingType is the Schema for the ThingTypes API. Creates and manages an AWS IoT Thing Type. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ThingType: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ThingTypeSpec @go(Spec) - status?: #ThingTypeStatus @go(Status) -} - -// ThingTypeList contains a list of ThingTypes -#ThingTypeList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ThingType] @go(Items,[]ThingType) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_topicrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_topicrule_types_go_gen.cue deleted file mode 100644 index 6a89ad6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/iot/v1beta1/zz_topicrule_types_go_gen.cue +++ /dev/null @@ -1,2242 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/iot/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CloudwatchAlarmInitParameters: { - // The CloudWatch alarm name. - alarmName?: null | string @go(AlarmName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The reason for the alarm change. - stateReason?: null | string @go(StateReason,*string) - - // The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA. - stateValue?: null | string @go(StateValue,*string) -} - -#CloudwatchAlarmObservation: { - // The CloudWatch alarm name. - alarmName?: null | string @go(AlarmName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The reason for the alarm change. - stateReason?: null | string @go(StateReason,*string) - - // The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA. - stateValue?: null | string @go(StateValue,*string) -} - -#CloudwatchAlarmParameters: { - // The CloudWatch alarm name. - // +kubebuilder:validation:Optional - alarmName?: null | string @go(AlarmName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The reason for the alarm change. - // +kubebuilder:validation:Optional - stateReason?: null | string @go(StateReason,*string) - - // The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA. - // +kubebuilder:validation:Optional - stateValue?: null | string @go(StateValue,*string) -} - -#CloudwatchLogsInitParameters: { - // The CloudWatch log group name. - logGroupName?: null | string @go(LogGroupName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#CloudwatchLogsObservation: { - // The CloudWatch log group name. - logGroupName?: null | string @go(LogGroupName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#CloudwatchLogsParameters: { - // The CloudWatch log group name. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#CloudwatchMetricInitParameters: { - // The CloudWatch metric name. - metricName?: null | string @go(MetricName,*string) - - // The CloudWatch metric namespace name. - metricNamespace?: null | string @go(MetricNamespace,*string) - - // An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp). - metricTimestamp?: null | string @go(MetricTimestamp,*string) - - // The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) - metricUnit?: null | string @go(MetricUnit,*string) - - // The CloudWatch metric value. - metricValue?: null | string @go(MetricValue,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#CloudwatchMetricObservation: { - // The CloudWatch metric name. - metricName?: null | string @go(MetricName,*string) - - // The CloudWatch metric namespace name. - metricNamespace?: null | string @go(MetricNamespace,*string) - - // An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp). - metricTimestamp?: null | string @go(MetricTimestamp,*string) - - // The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) - metricUnit?: null | string @go(MetricUnit,*string) - - // The CloudWatch metric value. - metricValue?: null | string @go(MetricValue,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#CloudwatchMetricParameters: { - // The CloudWatch metric name. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // The CloudWatch metric namespace name. - // +kubebuilder:validation:Optional - metricNamespace?: null | string @go(MetricNamespace,*string) - - // An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp). - // +kubebuilder:validation:Optional - metricTimestamp?: null | string @go(MetricTimestamp,*string) - - // The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) - // +kubebuilder:validation:Optional - metricUnit?: null | string @go(MetricUnit,*string) - - // The CloudWatch metric value. - // +kubebuilder:validation:Optional - metricValue?: null | string @go(MetricValue,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#DimensionInitParameters: { - // The name of the rule. - name?: null | string @go(Name,*string) - - // The value of the HTTP header. - value?: null | string @go(Value,*string) -} - -#DimensionObservation: { - // The name of the rule. - name?: null | string @go(Name,*string) - - // The value of the HTTP header. - value?: null | string @go(Value,*string) -} - -#DimensionParameters: { - // The name of the rule. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of the HTTP header. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#DynamodbInitParameters: { - // The hash key name. - hashKeyField?: null | string @go(HashKeyField,*string) - - // The hash key type. Valid values are "STRING" or "NUMBER". - hashKeyType?: null | string @go(HashKeyType,*string) - - // The hash key value. - hashKeyValue?: null | string @go(HashKeyValue,*string) - - // The operation. Valid values are "INSERT", "UPDATE", or "DELETE". - operation?: null | string @go(Operation,*string) - - // The action payload. - payloadField?: null | string @go(PayloadField,*string) - - // The range key name. - rangeKeyField?: null | string @go(RangeKeyField,*string) - - // The range key type. Valid values are "STRING" or "NUMBER". - rangeKeyType?: null | string @go(RangeKeyType,*string) - - // The range key value. - rangeKeyValue?: null | string @go(RangeKeyValue,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) -} - -#DynamodbObservation: { - // The hash key name. - hashKeyField?: null | string @go(HashKeyField,*string) - - // The hash key type. Valid values are "STRING" or "NUMBER". - hashKeyType?: null | string @go(HashKeyType,*string) - - // The hash key value. - hashKeyValue?: null | string @go(HashKeyValue,*string) - - // The operation. Valid values are "INSERT", "UPDATE", or "DELETE". - operation?: null | string @go(Operation,*string) - - // The action payload. - payloadField?: null | string @go(PayloadField,*string) - - // The range key name. - rangeKeyField?: null | string @go(RangeKeyField,*string) - - // The range key type. Valid values are "STRING" or "NUMBER". - rangeKeyType?: null | string @go(RangeKeyType,*string) - - // The range key value. - rangeKeyValue?: null | string @go(RangeKeyValue,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) -} - -#DynamodbParameters: { - // The hash key name. - // +kubebuilder:validation:Optional - hashKeyField?: null | string @go(HashKeyField,*string) - - // The hash key type. Valid values are "STRING" or "NUMBER". - // +kubebuilder:validation:Optional - hashKeyType?: null | string @go(HashKeyType,*string) - - // The hash key value. - // +kubebuilder:validation:Optional - hashKeyValue?: null | string @go(HashKeyValue,*string) - - // The operation. Valid values are "INSERT", "UPDATE", or "DELETE". - // +kubebuilder:validation:Optional - operation?: null | string @go(Operation,*string) - - // The action payload. - // +kubebuilder:validation:Optional - payloadField?: null | string @go(PayloadField,*string) - - // The range key name. - // +kubebuilder:validation:Optional - rangeKeyField?: null | string @go(RangeKeyField,*string) - - // The range key type. Valid values are "STRING" or "NUMBER". - // +kubebuilder:validation:Optional - rangeKeyType?: null | string @go(RangeKeyType,*string) - - // The range key value. - // +kubebuilder:validation:Optional - rangeKeyValue?: null | string @go(RangeKeyValue,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The name of the DynamoDB table. - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) -} - -#Dynamodbv2InitParameters: { - // Configuration block with DynamoDB Table to which the message will be written. Nested arguments below. - putItem?: [...#PutItemInitParameters] @go(PutItem,[]PutItemInitParameters) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#Dynamodbv2Observation: { - // Configuration block with DynamoDB Table to which the message will be written. Nested arguments below. - putItem?: [...#PutItemObservation] @go(PutItem,[]PutItemObservation) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#Dynamodbv2Parameters: { - // Configuration block with DynamoDB Table to which the message will be written. Nested arguments below. - // +kubebuilder:validation:Optional - putItem?: [...#PutItemParameters] @go(PutItem,[]PutItemParameters) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#Dynamodbv2PutItemInitParameters: { - // The name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) -} - -#Dynamodbv2PutItemObservation: { - // The name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) -} - -#Dynamodbv2PutItemParameters: { - // The name of the DynamoDB table. - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) -} - -#ElasticsearchInitParameters: { - // The endpoint of your Elasticsearch domain. - endpoint?: null | string @go(Endpoint,*string) - - // The unique identifier for the document you are storing. - id?: null | string @go(ID,*string) - - // The Elasticsearch index where you want to store your data. - index?: null | string @go(Index,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The type of document you are storing. - type?: null | string @go(Type,*string) -} - -#ElasticsearchObservation: { - // The endpoint of your Elasticsearch domain. - endpoint?: null | string @go(Endpoint,*string) - - // The unique identifier for the document you are storing. - id?: null | string @go(ID,*string) - - // The Elasticsearch index where you want to store your data. - index?: null | string @go(Index,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The type of document you are storing. - type?: null | string @go(Type,*string) -} - -#ElasticsearchParameters: { - // The endpoint of your Elasticsearch domain. - // +kubebuilder:validation:Optional - endpoint?: null | string @go(Endpoint,*string) - - // The unique identifier for the document you are storing. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // The Elasticsearch index where you want to store your data. - // +kubebuilder:validation:Optional - index?: null | string @go(Index,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The type of document you are storing. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#ErrorActionCloudwatchAlarmInitParameters: { - // The CloudWatch alarm name. - alarmName?: null | string @go(AlarmName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The reason for the alarm change. - stateReason?: null | string @go(StateReason,*string) - - // The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA. - stateValue?: null | string @go(StateValue,*string) -} - -#ErrorActionCloudwatchAlarmObservation: { - // The CloudWatch alarm name. - alarmName?: null | string @go(AlarmName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The reason for the alarm change. - stateReason?: null | string @go(StateReason,*string) - - // The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA. - stateValue?: null | string @go(StateValue,*string) -} - -#ErrorActionCloudwatchAlarmParameters: { - // The CloudWatch alarm name. - // +kubebuilder:validation:Optional - alarmName?: null | string @go(AlarmName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The reason for the alarm change. - // +kubebuilder:validation:Optional - stateReason?: null | string @go(StateReason,*string) - - // The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA. - // +kubebuilder:validation:Optional - stateValue?: null | string @go(StateValue,*string) -} - -#ErrorActionCloudwatchLogsInitParameters: { - // The CloudWatch log group name. - logGroupName?: null | string @go(LogGroupName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#ErrorActionCloudwatchLogsObservation: { - // The CloudWatch log group name. - logGroupName?: null | string @go(LogGroupName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#ErrorActionCloudwatchLogsParameters: { - // The CloudWatch log group name. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#ErrorActionCloudwatchMetricInitParameters: { - // The CloudWatch metric name. - metricName?: null | string @go(MetricName,*string) - - // The CloudWatch metric namespace name. - metricNamespace?: null | string @go(MetricNamespace,*string) - - // An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp). - metricTimestamp?: null | string @go(MetricTimestamp,*string) - - // The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) - metricUnit?: null | string @go(MetricUnit,*string) - - // The CloudWatch metric value. - metricValue?: null | string @go(MetricValue,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#ErrorActionCloudwatchMetricObservation: { - // The CloudWatch metric name. - metricName?: null | string @go(MetricName,*string) - - // The CloudWatch metric namespace name. - metricNamespace?: null | string @go(MetricNamespace,*string) - - // An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp). - metricTimestamp?: null | string @go(MetricTimestamp,*string) - - // The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) - metricUnit?: null | string @go(MetricUnit,*string) - - // The CloudWatch metric value. - metricValue?: null | string @go(MetricValue,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#ErrorActionCloudwatchMetricParameters: { - // The CloudWatch metric name. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // The CloudWatch metric namespace name. - // +kubebuilder:validation:Optional - metricNamespace?: null | string @go(MetricNamespace,*string) - - // An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp). - // +kubebuilder:validation:Optional - metricTimestamp?: null | string @go(MetricTimestamp,*string) - - // The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) - // +kubebuilder:validation:Optional - metricUnit?: null | string @go(MetricUnit,*string) - - // The CloudWatch metric value. - // +kubebuilder:validation:Optional - metricValue?: null | string @go(MetricValue,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#ErrorActionDynamodbInitParameters: { - // The hash key name. - hashKeyField?: null | string @go(HashKeyField,*string) - - // The hash key type. Valid values are "STRING" or "NUMBER". - hashKeyType?: null | string @go(HashKeyType,*string) - - // The hash key value. - hashKeyValue?: null | string @go(HashKeyValue,*string) - - // The operation. Valid values are "INSERT", "UPDATE", or "DELETE". - operation?: null | string @go(Operation,*string) - - // The action payload. - payloadField?: null | string @go(PayloadField,*string) - - // The range key name. - rangeKeyField?: null | string @go(RangeKeyField,*string) - - // The range key type. Valid values are "STRING" or "NUMBER". - rangeKeyType?: null | string @go(RangeKeyType,*string) - - // The range key value. - rangeKeyValue?: null | string @go(RangeKeyValue,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) -} - -#ErrorActionDynamodbObservation: { - // The hash key name. - hashKeyField?: null | string @go(HashKeyField,*string) - - // The hash key type. Valid values are "STRING" or "NUMBER". - hashKeyType?: null | string @go(HashKeyType,*string) - - // The hash key value. - hashKeyValue?: null | string @go(HashKeyValue,*string) - - // The operation. Valid values are "INSERT", "UPDATE", or "DELETE". - operation?: null | string @go(Operation,*string) - - // The action payload. - payloadField?: null | string @go(PayloadField,*string) - - // The range key name. - rangeKeyField?: null | string @go(RangeKeyField,*string) - - // The range key type. Valid values are "STRING" or "NUMBER". - rangeKeyType?: null | string @go(RangeKeyType,*string) - - // The range key value. - rangeKeyValue?: null | string @go(RangeKeyValue,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) -} - -#ErrorActionDynamodbParameters: { - // The hash key name. - // +kubebuilder:validation:Optional - hashKeyField?: null | string @go(HashKeyField,*string) - - // The hash key type. Valid values are "STRING" or "NUMBER". - // +kubebuilder:validation:Optional - hashKeyType?: null | string @go(HashKeyType,*string) - - // The hash key value. - // +kubebuilder:validation:Optional - hashKeyValue?: null | string @go(HashKeyValue,*string) - - // The operation. Valid values are "INSERT", "UPDATE", or "DELETE". - // +kubebuilder:validation:Optional - operation?: null | string @go(Operation,*string) - - // The action payload. - // +kubebuilder:validation:Optional - payloadField?: null | string @go(PayloadField,*string) - - // The range key name. - // +kubebuilder:validation:Optional - rangeKeyField?: null | string @go(RangeKeyField,*string) - - // The range key type. Valid values are "STRING" or "NUMBER". - // +kubebuilder:validation:Optional - rangeKeyType?: null | string @go(RangeKeyType,*string) - - // The range key value. - // +kubebuilder:validation:Optional - rangeKeyValue?: null | string @go(RangeKeyValue,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The name of the DynamoDB table. - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) -} - -#ErrorActionDynamodbv2InitParameters: { - // Configuration block with DynamoDB Table to which the message will be written. Nested arguments below. - putItem?: [...#Dynamodbv2PutItemInitParameters] @go(PutItem,[]Dynamodbv2PutItemInitParameters) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#ErrorActionDynamodbv2Observation: { - // Configuration block with DynamoDB Table to which the message will be written. Nested arguments below. - putItem?: [...#Dynamodbv2PutItemObservation] @go(PutItem,[]Dynamodbv2PutItemObservation) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#ErrorActionDynamodbv2Parameters: { - // Configuration block with DynamoDB Table to which the message will be written. Nested arguments below. - // +kubebuilder:validation:Optional - putItem?: [...#Dynamodbv2PutItemParameters] @go(PutItem,[]Dynamodbv2PutItemParameters) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#ErrorActionElasticsearchInitParameters: { - // The endpoint of your Elasticsearch domain. - endpoint?: null | string @go(Endpoint,*string) - - // The unique identifier for the document you are storing. - id?: null | string @go(ID,*string) - - // The Elasticsearch index where you want to store your data. - index?: null | string @go(Index,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The type of document you are storing. - type?: null | string @go(Type,*string) -} - -#ErrorActionElasticsearchObservation: { - // The endpoint of your Elasticsearch domain. - endpoint?: null | string @go(Endpoint,*string) - - // The unique identifier for the document you are storing. - id?: null | string @go(ID,*string) - - // The Elasticsearch index where you want to store your data. - index?: null | string @go(Index,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The type of document you are storing. - type?: null | string @go(Type,*string) -} - -#ErrorActionElasticsearchParameters: { - // The endpoint of your Elasticsearch domain. - // +kubebuilder:validation:Optional - endpoint?: null | string @go(Endpoint,*string) - - // The unique identifier for the document you are storing. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // The Elasticsearch index where you want to store your data. - // +kubebuilder:validation:Optional - index?: null | string @go(Index,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The type of document you are storing. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#ErrorActionInitParameters: { - cloudwatchAlarm?: [...#ErrorActionCloudwatchAlarmInitParameters] @go(CloudwatchAlarm,[]ErrorActionCloudwatchAlarmInitParameters) - cloudwatchLogs?: [...#ErrorActionCloudwatchLogsInitParameters] @go(CloudwatchLogs,[]ErrorActionCloudwatchLogsInitParameters) - cloudwatchMetric?: [...#ErrorActionCloudwatchMetricInitParameters] @go(CloudwatchMetric,[]ErrorActionCloudwatchMetricInitParameters) - dynamodb?: [...#ErrorActionDynamodbInitParameters] @go(Dynamodb,[]ErrorActionDynamodbInitParameters) - dynamodbv2?: [...#ErrorActionDynamodbv2InitParameters] @go(Dynamodbv2,[]ErrorActionDynamodbv2InitParameters) - elasticsearch?: [...#ErrorActionElasticsearchInitParameters] @go(Elasticsearch,[]ErrorActionElasticsearchInitParameters) - firehose?: [...#FirehoseInitParameters] @go(Firehose,[]FirehoseInitParameters) - http?: [...#HTTPInitParameters] @go(HTTP,[]HTTPInitParameters) - iotAnalytics?: [...#IotAnalyticsInitParameters] @go(IotAnalytics,[]IotAnalyticsInitParameters) - iotEvents?: [...#IotEventsInitParameters] @go(IotEvents,[]IotEventsInitParameters) - kafka?: [...#KafkaInitParameters] @go(Kafka,[]KafkaInitParameters) - kinesis?: [...#KinesisInitParameters] @go(Kinesis,[]KinesisInitParameters) - lambda?: [...#LambdaInitParameters] @go(Lambda,[]LambdaInitParameters) - republish?: [...#RepublishInitParameters] @go(Republish,[]RepublishInitParameters) - s3?: [...#S3InitParameters] @go(S3,[]S3InitParameters) - sns?: [...#SnsInitParameters] @go(Sns,[]SnsInitParameters) - sqs?: [...#SqsInitParameters] @go(Sqs,[]SqsInitParameters) - stepFunctions?: [...#StepFunctionsInitParameters] @go(StepFunctions,[]StepFunctionsInitParameters) - timestream?: [...#TimestreamInitParameters] @go(Timestream,[]TimestreamInitParameters) -} - -#ErrorActionObservation: { - cloudwatchAlarm?: [...#ErrorActionCloudwatchAlarmObservation] @go(CloudwatchAlarm,[]ErrorActionCloudwatchAlarmObservation) - cloudwatchLogs?: [...#ErrorActionCloudwatchLogsObservation] @go(CloudwatchLogs,[]ErrorActionCloudwatchLogsObservation) - cloudwatchMetric?: [...#ErrorActionCloudwatchMetricObservation] @go(CloudwatchMetric,[]ErrorActionCloudwatchMetricObservation) - dynamodb?: [...#ErrorActionDynamodbObservation] @go(Dynamodb,[]ErrorActionDynamodbObservation) - dynamodbv2?: [...#ErrorActionDynamodbv2Observation] @go(Dynamodbv2,[]ErrorActionDynamodbv2Observation) - elasticsearch?: [...#ErrorActionElasticsearchObservation] @go(Elasticsearch,[]ErrorActionElasticsearchObservation) - firehose?: [...#FirehoseObservation] @go(Firehose,[]FirehoseObservation) - http?: [...#HTTPObservation] @go(HTTP,[]HTTPObservation) - iotAnalytics?: [...#IotAnalyticsObservation] @go(IotAnalytics,[]IotAnalyticsObservation) - iotEvents?: [...#IotEventsObservation] @go(IotEvents,[]IotEventsObservation) - kafka?: [...#KafkaObservation] @go(Kafka,[]KafkaObservation) - kinesis?: [...#KinesisObservation] @go(Kinesis,[]KinesisObservation) - lambda?: [...#LambdaObservation] @go(Lambda,[]LambdaObservation) - republish?: [...#RepublishObservation] @go(Republish,[]RepublishObservation) - s3?: [...#S3Observation] @go(S3,[]S3Observation) - sns?: [...#SnsObservation] @go(Sns,[]SnsObservation) - sqs?: [...#SqsObservation] @go(Sqs,[]SqsObservation) - stepFunctions?: [...#StepFunctionsObservation] @go(StepFunctions,[]StepFunctionsObservation) - timestream?: [...#TimestreamObservation] @go(Timestream,[]TimestreamObservation) -} - -#ErrorActionParameters: { - // +kubebuilder:validation:Optional - cloudwatchAlarm?: [...#ErrorActionCloudwatchAlarmParameters] @go(CloudwatchAlarm,[]ErrorActionCloudwatchAlarmParameters) - - // +kubebuilder:validation:Optional - cloudwatchLogs?: [...#ErrorActionCloudwatchLogsParameters] @go(CloudwatchLogs,[]ErrorActionCloudwatchLogsParameters) - - // +kubebuilder:validation:Optional - cloudwatchMetric?: [...#ErrorActionCloudwatchMetricParameters] @go(CloudwatchMetric,[]ErrorActionCloudwatchMetricParameters) - - // +kubebuilder:validation:Optional - dynamodb?: [...#ErrorActionDynamodbParameters] @go(Dynamodb,[]ErrorActionDynamodbParameters) - - // +kubebuilder:validation:Optional - dynamodbv2?: [...#ErrorActionDynamodbv2Parameters] @go(Dynamodbv2,[]ErrorActionDynamodbv2Parameters) - - // +kubebuilder:validation:Optional - elasticsearch?: [...#ErrorActionElasticsearchParameters] @go(Elasticsearch,[]ErrorActionElasticsearchParameters) - - // +kubebuilder:validation:Optional - firehose?: [...#FirehoseParameters] @go(Firehose,[]FirehoseParameters) - - // +kubebuilder:validation:Optional - http?: [...#HTTPParameters] @go(HTTP,[]HTTPParameters) - - // +kubebuilder:validation:Optional - iotAnalytics?: [...#IotAnalyticsParameters] @go(IotAnalytics,[]IotAnalyticsParameters) - - // +kubebuilder:validation:Optional - iotEvents?: [...#IotEventsParameters] @go(IotEvents,[]IotEventsParameters) - - // +kubebuilder:validation:Optional - kafka?: [...#KafkaParameters] @go(Kafka,[]KafkaParameters) - - // +kubebuilder:validation:Optional - kinesis?: [...#KinesisParameters] @go(Kinesis,[]KinesisParameters) - - // +kubebuilder:validation:Optional - lambda?: [...#LambdaParameters] @go(Lambda,[]LambdaParameters) - - // +kubebuilder:validation:Optional - republish?: [...#RepublishParameters] @go(Republish,[]RepublishParameters) - - // +kubebuilder:validation:Optional - s3?: [...#S3Parameters] @go(S3,[]S3Parameters) - - // +kubebuilder:validation:Optional - sns?: [...#SnsParameters] @go(Sns,[]SnsParameters) - - // +kubebuilder:validation:Optional - sqs?: [...#SqsParameters] @go(Sqs,[]SqsParameters) - - // +kubebuilder:validation:Optional - stepFunctions?: [...#StepFunctionsParameters] @go(StepFunctions,[]StepFunctionsParameters) - - // +kubebuilder:validation:Optional - timestream?: [...#TimestreamParameters] @go(Timestream,[]TimestreamParameters) -} - -#FirehoseInitParameters: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - batchMode?: null | bool @go(BatchMode,*bool) - - // The delivery stream name. - deliveryStreamName?: null | string @go(DeliveryStreamName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma). - separator?: null | string @go(Separator,*string) -} - -#FirehoseObservation: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - batchMode?: null | bool @go(BatchMode,*bool) - - // The delivery stream name. - deliveryStreamName?: null | string @go(DeliveryStreamName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma). - separator?: null | string @go(Separator,*string) -} - -#FirehoseParameters: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - // +kubebuilder:validation:Optional - batchMode?: null | bool @go(BatchMode,*bool) - - // The delivery stream name. - // +kubebuilder:validation:Optional - deliveryStreamName?: null | string @go(DeliveryStreamName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma). - // +kubebuilder:validation:Optional - separator?: null | string @go(Separator,*string) -} - -#HTTPHTTPHeaderInitParameters: { - // The name of the HTTP header. - key?: null | string @go(Key,*string) - - // The value of the HTTP header. - value?: null | string @go(Value,*string) -} - -#HTTPHTTPHeaderObservation: { - // The name of the HTTP header. - key?: null | string @go(Key,*string) - - // The value of the HTTP header. - value?: null | string @go(Value,*string) -} - -#HTTPHTTPHeaderParameters: { - // The name of the HTTP header. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The value of the HTTP header. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#HTTPHeaderInitParameters: { - // The name of the HTTP header. - key?: null | string @go(Key,*string) - - // The value of the HTTP header. - value?: null | string @go(Value,*string) -} - -#HTTPHeaderObservation: { - // The name of the HTTP header. - key?: null | string @go(Key,*string) - - // The value of the HTTP header. - value?: null | string @go(Value,*string) -} - -#HTTPHeaderParameters: { - // The name of the HTTP header. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The value of the HTTP header. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#HTTPInitParameters: { - // The HTTPS URL used to verify ownership of url. - confirmationUrl?: null | string @go(ConfirmationURL,*string) - - // Custom HTTP header IoT Core should send. It is possible to define more than one custom header. - httpHeader?: [...#HTTPHeaderInitParameters] @go(HTTPHeader,[]HTTPHeaderInitParameters) - - // The HTTPS URL. - url?: null | string @go(URL,*string) -} - -#HTTPObservation: { - // The HTTPS URL used to verify ownership of url. - confirmationUrl?: null | string @go(ConfirmationURL,*string) - - // Custom HTTP header IoT Core should send. It is possible to define more than one custom header. - httpHeader?: [...#HTTPHeaderObservation] @go(HTTPHeader,[]HTTPHeaderObservation) - - // The HTTPS URL. - url?: null | string @go(URL,*string) -} - -#HTTPParameters: { - // The HTTPS URL used to verify ownership of url. - // +kubebuilder:validation:Optional - confirmationUrl?: null | string @go(ConfirmationURL,*string) - - // Custom HTTP header IoT Core should send. It is possible to define more than one custom header. - // +kubebuilder:validation:Optional - httpHeader?: [...#HTTPHeaderParameters] @go(HTTPHeader,[]HTTPHeaderParameters) - - // The HTTPS URL. - // +kubebuilder:validation:Optional - url?: null | string @go(URL,*string) -} - -#IotAnalyticsInitParameters: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - batchMode?: null | bool @go(BatchMode,*bool) - - // Name of AWS IOT Analytics channel. - channelName?: null | string @go(ChannelName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#IotAnalyticsObservation: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - batchMode?: null | bool @go(BatchMode,*bool) - - // Name of AWS IOT Analytics channel. - channelName?: null | string @go(ChannelName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#IotAnalyticsParameters: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - // +kubebuilder:validation:Optional - batchMode?: null | bool @go(BatchMode,*bool) - - // Name of AWS IOT Analytics channel. - // +kubebuilder:validation:Optional - channelName?: null | string @go(ChannelName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#IotEventsInitParameters: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - batchMode?: null | bool @go(BatchMode,*bool) - - // The name of the AWS IoT Events input. - inputName?: null | string @go(InputName,*string) - - // Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector. - messageId?: null | string @go(MessageID,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#IotEventsObservation: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - batchMode?: null | bool @go(BatchMode,*bool) - - // The name of the AWS IoT Events input. - inputName?: null | string @go(InputName,*string) - - // Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector. - messageId?: null | string @go(MessageID,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#IotEventsParameters: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - // +kubebuilder:validation:Optional - batchMode?: null | bool @go(BatchMode,*bool) - - // The name of the AWS IoT Events input. - // +kubebuilder:validation:Optional - inputName?: null | string @go(InputName,*string) - - // Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector. - // +kubebuilder:validation:Optional - messageId?: null | string @go(MessageID,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#KafkaInitParameters: { - // Properties of the Apache Kafka producer client. For more info, see the AWS documentation. - clientProperties?: {[string]: null | string} @go(ClientProperties,map[string]*string) - - // The ARN of Kafka action's VPC aws_iot_topic_rule_destination . - destinationArn?: null | string @go(DestinationArn,*string) - - // The name of the HTTP header. - key?: null | string @go(Key,*string) - - // The Kafka message partition. - partition?: null | string @go(Partition,*string) - - // The Kafka topic for messages to be sent to the Kafka broker. - topic?: null | string @go(Topic,*string) -} - -#KafkaObservation: { - // Properties of the Apache Kafka producer client. For more info, see the AWS documentation. - clientProperties?: {[string]: null | string} @go(ClientProperties,map[string]*string) - - // The ARN of Kafka action's VPC aws_iot_topic_rule_destination . - destinationArn?: null | string @go(DestinationArn,*string) - - // The name of the HTTP header. - key?: null | string @go(Key,*string) - - // The Kafka message partition. - partition?: null | string @go(Partition,*string) - - // The Kafka topic for messages to be sent to the Kafka broker. - topic?: null | string @go(Topic,*string) -} - -#KafkaParameters: { - // Properties of the Apache Kafka producer client. For more info, see the AWS documentation. - // +kubebuilder:validation:Optional - clientProperties: {[string]: null | string} @go(ClientProperties,map[string]*string) - - // The ARN of Kafka action's VPC aws_iot_topic_rule_destination . - // +kubebuilder:validation:Optional - destinationArn?: null | string @go(DestinationArn,*string) - - // The name of the HTTP header. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The Kafka message partition. - // +kubebuilder:validation:Optional - partition?: null | string @go(Partition,*string) - - // The Kafka topic for messages to be sent to the Kafka broker. - // +kubebuilder:validation:Optional - topic?: null | string @go(Topic,*string) -} - -#KinesisInitParameters: { - // The partition key. - partitionKey?: null | string @go(PartitionKey,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Amazon Kinesis stream. - streamName?: null | string @go(StreamName,*string) -} - -#KinesisObservation: { - // The partition key. - partitionKey?: null | string @go(PartitionKey,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Amazon Kinesis stream. - streamName?: null | string @go(StreamName,*string) -} - -#KinesisParameters: { - // The partition key. - // +kubebuilder:validation:Optional - partitionKey?: null | string @go(PartitionKey,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Amazon Kinesis stream. - // +kubebuilder:validation:Optional - streamName?: null | string @go(StreamName,*string) -} - -#LambdaInitParameters: { - // The ARN of the Lambda function. - functionArn?: null | string @go(FunctionArn,*string) -} - -#LambdaObservation: { - // The ARN of the Lambda function. - functionArn?: null | string @go(FunctionArn,*string) -} - -#LambdaParameters: { - // The ARN of the Lambda function. - // +kubebuilder:validation:Optional - functionArn?: null | string @go(FunctionArn,*string) -} - -#PutItemInitParameters: { - // The name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) -} - -#PutItemObservation: { - // The name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) -} - -#PutItemParameters: { - // The name of the DynamoDB table. - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) -} - -#RepublishInitParameters: { - // The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0. - qos?: null | float64 @go(Qos,*float64) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The Kafka topic for messages to be sent to the Kafka broker. - topic?: null | string @go(Topic,*string) -} - -#RepublishObservation: { - // The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0. - qos?: null | float64 @go(Qos,*float64) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The Kafka topic for messages to be sent to the Kafka broker. - topic?: null | string @go(Topic,*string) -} - -#RepublishParameters: { - // The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0. - // +kubebuilder:validation:Optional - qos?: null | float64 @go(Qos,*float64) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The Kafka topic for messages to be sent to the Kafka broker. - // +kubebuilder:validation:Optional - topic?: null | string @go(Topic,*string) -} - -#S3InitParameters: { - // The Amazon S3 bucket name. - bucketName?: null | string @go(BucketName,*string) - - // The Amazon S3 canned ACL that controls access to the object identified by the object key. Valid values. - cannedAcl?: null | string @go(CannedACL,*string) - - // The name of the HTTP header. - key?: null | string @go(Key,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#S3Observation: { - // The Amazon S3 bucket name. - bucketName?: null | string @go(BucketName,*string) - - // The Amazon S3 canned ACL that controls access to the object identified by the object key. Valid values. - cannedAcl?: null | string @go(CannedACL,*string) - - // The name of the HTTP header. - key?: null | string @go(Key,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#S3Parameters: { - // The Amazon S3 bucket name. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // The Amazon S3 canned ACL that controls access to the object identified by the object key. Valid values. - // +kubebuilder:validation:Optional - cannedAcl?: null | string @go(CannedACL,*string) - - // The name of the HTTP header. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#SnsInitParameters: { - // The message format of the message to publish. Accepted values are "JSON" and "RAW". - messageFormat?: null | string @go(MessageFormat,*string) -} - -#SnsObservation: { - // The message format of the message to publish. Accepted values are "JSON" and "RAW". - messageFormat?: null | string @go(MessageFormat,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The ARN of the SNS topic. - targetArn?: null | string @go(TargetArn,*string) -} - -#SnsParameters: { - // The message format of the message to publish. Accepted values are "JSON" and "RAW". - // +kubebuilder:validation:Optional - messageFormat?: null | string @go(MessageFormat,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The ARN of the SNS topic. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - targetArn?: null | string @go(TargetArn,*string) - - // Reference to a Topic in sns to populate targetArn. - // +kubebuilder:validation:Optional - targetArnRef?: null | v1.#Reference @go(TargetArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate targetArn. - // +kubebuilder:validation:Optional - targetArnSelector?: null | v1.#Selector @go(TargetArnSelector,*v1.Selector) -} - -#SqsInitParameters: { - // The URL of the Amazon SQS queue. - queueUrl?: null | string @go(QueueURL,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // Specifies whether to use Base64 encoding. - useBase64?: null | bool @go(UseBase64,*bool) -} - -#SqsObservation: { - // The URL of the Amazon SQS queue. - queueUrl?: null | string @go(QueueURL,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // Specifies whether to use Base64 encoding. - useBase64?: null | bool @go(UseBase64,*bool) -} - -#SqsParameters: { - // The URL of the Amazon SQS queue. - // +kubebuilder:validation:Optional - queueUrl?: null | string @go(QueueURL,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Specifies whether to use Base64 encoding. - // +kubebuilder:validation:Optional - useBase64?: null | bool @go(UseBase64,*bool) -} - -#StepFunctionsInitParameters: { - // The prefix used to generate, along with a UUID, the unique state machine execution name. - executionNamePrefix?: null | string @go(ExecutionNamePrefix,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Step Functions state machine whose execution will be started. - stateMachineName?: null | string @go(StateMachineName,*string) -} - -#StepFunctionsObservation: { - // The prefix used to generate, along with a UUID, the unique state machine execution name. - executionNamePrefix?: null | string @go(ExecutionNamePrefix,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Step Functions state machine whose execution will be started. - stateMachineName?: null | string @go(StateMachineName,*string) -} - -#StepFunctionsParameters: { - // The prefix used to generate, along with a UUID, the unique state machine execution name. - // +kubebuilder:validation:Optional - executionNamePrefix?: null | string @go(ExecutionNamePrefix,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Step Functions state machine whose execution will be started. - // +kubebuilder:validation:Optional - stateMachineName?: null | string @go(StateMachineName,*string) -} - -#TimestampInitParameters: { - // The precision of the timestamp value that results from the expression described in value. Valid values: SECONDS, MILLISECONDS, MICROSECONDS, NANOSECONDS. - unit?: null | string @go(Unit,*string) - - // The value of the HTTP header. - value?: null | string @go(Value,*string) -} - -#TimestampObservation: { - // The precision of the timestamp value that results from the expression described in value. Valid values: SECONDS, MILLISECONDS, MICROSECONDS, NANOSECONDS. - unit?: null | string @go(Unit,*string) - - // The value of the HTTP header. - value?: null | string @go(Value,*string) -} - -#TimestampParameters: { - // The precision of the timestamp value that results from the expression described in value. Valid values: SECONDS, MILLISECONDS, MICROSECONDS, NANOSECONDS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // The value of the HTTP header. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#TimestreamDimensionInitParameters: { - // The name of the rule. - name?: null | string @go(Name,*string) - - // The value of the HTTP header. - value?: null | string @go(Value,*string) -} - -#TimestreamDimensionObservation: { - // The name of the rule. - name?: null | string @go(Name,*string) - - // The value of the HTTP header. - value?: null | string @go(Value,*string) -} - -#TimestreamDimensionParameters: { - // The name of the rule. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of the HTTP header. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#TimestreamInitParameters: { - // The name of an Amazon Timestream database. - databaseName?: null | string @go(DatabaseName,*string) - - // Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below. - dimension?: [...#DimensionInitParameters] @go(Dimension,[]DimensionInitParameters) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) - - // Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below. - timestamp?: [...#TimestampInitParameters] @go(Timestamp,[]TimestampInitParameters) -} - -#TimestreamObservation: { - // The name of an Amazon Timestream database. - databaseName?: null | string @go(DatabaseName,*string) - - // Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below. - dimension?: [...#DimensionObservation] @go(Dimension,[]DimensionObservation) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) - - // Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below. - timestamp?: [...#TimestampObservation] @go(Timestamp,[]TimestampObservation) -} - -#TimestreamParameters: { - // The name of an Amazon Timestream database. - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below. - // +kubebuilder:validation:Optional - dimension: [...#DimensionParameters] @go(Dimension,[]DimensionParameters) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The name of the DynamoDB table. - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) - - // Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below. - // +kubebuilder:validation:Optional - timestamp?: [...#TimestampParameters] @go(Timestamp,[]TimestampParameters) -} - -#TimestreamTimestampInitParameters: { - // The precision of the timestamp value that results from the expression described in value. Valid values: SECONDS, MILLISECONDS, MICROSECONDS, NANOSECONDS. - unit?: null | string @go(Unit,*string) - - // The value of the HTTP header. - value?: null | string @go(Value,*string) -} - -#TimestreamTimestampObservation: { - // The precision of the timestamp value that results from the expression described in value. Valid values: SECONDS, MILLISECONDS, MICROSECONDS, NANOSECONDS. - unit?: null | string @go(Unit,*string) - - // The value of the HTTP header. - value?: null | string @go(Value,*string) -} - -#TimestreamTimestampParameters: { - // The precision of the timestamp value that results from the expression described in value. Valid values: SECONDS, MILLISECONDS, MICROSECONDS, NANOSECONDS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // The value of the HTTP header. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#TopicRuleFirehoseInitParameters: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - batchMode?: null | bool @go(BatchMode,*bool) - - // The delivery stream name. - deliveryStreamName?: null | string @go(DeliveryStreamName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma). - separator?: null | string @go(Separator,*string) -} - -#TopicRuleFirehoseObservation: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - batchMode?: null | bool @go(BatchMode,*bool) - - // The delivery stream name. - deliveryStreamName?: null | string @go(DeliveryStreamName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma). - separator?: null | string @go(Separator,*string) -} - -#TopicRuleFirehoseParameters: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - // +kubebuilder:validation:Optional - batchMode?: null | bool @go(BatchMode,*bool) - - // The delivery stream name. - // +kubebuilder:validation:Optional - deliveryStreamName?: null | string @go(DeliveryStreamName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma). - // +kubebuilder:validation:Optional - separator?: null | string @go(Separator,*string) -} - -#TopicRuleHTTPInitParameters: { - // The HTTPS URL used to verify ownership of url. - confirmationUrl?: null | string @go(ConfirmationURL,*string) - - // Custom HTTP header IoT Core should send. It is possible to define more than one custom header. - httpHeader?: [...#HTTPHTTPHeaderInitParameters] @go(HTTPHeader,[]HTTPHTTPHeaderInitParameters) - - // The HTTPS URL. - url?: null | string @go(URL,*string) -} - -#TopicRuleHTTPObservation: { - // The HTTPS URL used to verify ownership of url. - confirmationUrl?: null | string @go(ConfirmationURL,*string) - - // Custom HTTP header IoT Core should send. It is possible to define more than one custom header. - httpHeader?: [...#HTTPHTTPHeaderObservation] @go(HTTPHeader,[]HTTPHTTPHeaderObservation) - - // The HTTPS URL. - url?: null | string @go(URL,*string) -} - -#TopicRuleHTTPParameters: { - // The HTTPS URL used to verify ownership of url. - // +kubebuilder:validation:Optional - confirmationUrl?: null | string @go(ConfirmationURL,*string) - - // Custom HTTP header IoT Core should send. It is possible to define more than one custom header. - // +kubebuilder:validation:Optional - httpHeader?: [...#HTTPHTTPHeaderParameters] @go(HTTPHeader,[]HTTPHTTPHeaderParameters) - - // The HTTPS URL. - // +kubebuilder:validation:Optional - url?: null | string @go(URL,*string) -} - -#TopicRuleInitParameters: { - cloudwatchAlarm?: [...#CloudwatchAlarmInitParameters] @go(CloudwatchAlarm,[]CloudwatchAlarmInitParameters) - cloudwatchLogs?: [...#CloudwatchLogsInitParameters] @go(CloudwatchLogs,[]CloudwatchLogsInitParameters) - cloudwatchMetric?: [...#CloudwatchMetricInitParameters] @go(CloudwatchMetric,[]CloudwatchMetricInitParameters) - - // The description of the rule. - description?: null | string @go(Description,*string) - dynamodb?: [...#DynamodbInitParameters] @go(Dynamodb,[]DynamodbInitParameters) - dynamodbv2?: [...#Dynamodbv2InitParameters] @go(Dynamodbv2,[]Dynamodbv2InitParameters) - elasticsearch?: [...#ElasticsearchInitParameters] @go(Elasticsearch,[]ElasticsearchInitParameters) - - // Specifies whether the rule is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Configuration block with error action to be associated with the rule. See the documentation for cloudwatch_alarm, cloudwatch_logs, cloudwatch_metric, dynamodb, dynamodbv2, elasticsearch, firehose, http, iot_analytics, iot_events, kafka, kinesis, lambda, republish, s3, sns, sqs, step_functions, timestream configuration blocks for further configuration details. - errorAction?: [...#ErrorActionInitParameters] @go(ErrorAction,[]ErrorActionInitParameters) - firehose?: [...#TopicRuleFirehoseInitParameters] @go(Firehose,[]TopicRuleFirehoseInitParameters) - http?: [...#TopicRuleHTTPInitParameters] @go(HTTP,[]TopicRuleHTTPInitParameters) - iotAnalytics?: [...#TopicRuleIotAnalyticsInitParameters] @go(IotAnalytics,[]TopicRuleIotAnalyticsInitParameters) - iotEvents?: [...#TopicRuleIotEventsInitParameters] @go(IotEvents,[]TopicRuleIotEventsInitParameters) - kafka?: [...#TopicRuleKafkaInitParameters] @go(Kafka,[]TopicRuleKafkaInitParameters) - kinesis?: [...#TopicRuleKinesisInitParameters] @go(Kinesis,[]TopicRuleKinesisInitParameters) - lambda?: [...#TopicRuleLambdaInitParameters] @go(Lambda,[]TopicRuleLambdaInitParameters) - republish?: [...#TopicRuleRepublishInitParameters] @go(Republish,[]TopicRuleRepublishInitParameters) - s3?: [...#TopicRuleS3InitParameters] @go(S3,[]TopicRuleS3InitParameters) - - // The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference (http://docs.aws.amazon.com/iot/latest/developerguide/iot-rules.html#aws-iot-sql-reference) in the AWS IoT Developer Guide. - sql?: null | string @go(SQL,*string) - - // The version of the SQL rules engine to use when evaluating the rule. - sqlVersion?: null | string @go(SQLVersion,*string) - sns?: [...#TopicRuleSnsInitParameters] @go(Sns,[]TopicRuleSnsInitParameters) - sqs?: [...#TopicRuleSqsInitParameters] @go(Sqs,[]TopicRuleSqsInitParameters) - stepFunctions?: [...#TopicRuleStepFunctionsInitParameters] @go(StepFunctions,[]TopicRuleStepFunctionsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - timestream?: [...#TopicRuleTimestreamInitParameters] @go(Timestream,[]TopicRuleTimestreamInitParameters) -} - -#TopicRuleIotAnalyticsInitParameters: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - batchMode?: null | bool @go(BatchMode,*bool) - - // Name of AWS IOT Analytics channel. - channelName?: null | string @go(ChannelName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#TopicRuleIotAnalyticsObservation: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - batchMode?: null | bool @go(BatchMode,*bool) - - // Name of AWS IOT Analytics channel. - channelName?: null | string @go(ChannelName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#TopicRuleIotAnalyticsParameters: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - // +kubebuilder:validation:Optional - batchMode?: null | bool @go(BatchMode,*bool) - - // Name of AWS IOT Analytics channel. - // +kubebuilder:validation:Optional - channelName?: null | string @go(ChannelName,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#TopicRuleIotEventsInitParameters: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - batchMode?: null | bool @go(BatchMode,*bool) - - // The name of the AWS IoT Events input. - inputName?: null | string @go(InputName,*string) - - // Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector. - messageId?: null | string @go(MessageID,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#TopicRuleIotEventsObservation: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - batchMode?: null | bool @go(BatchMode,*bool) - - // The name of the AWS IoT Events input. - inputName?: null | string @go(InputName,*string) - - // Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector. - messageId?: null | string @go(MessageID,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#TopicRuleIotEventsParameters: { - // The payload that contains a JSON array of records will be sent to Kinesis Firehose via a batch call. - // +kubebuilder:validation:Optional - batchMode?: null | bool @go(BatchMode,*bool) - - // The name of the AWS IoT Events input. - // +kubebuilder:validation:Optional - inputName?: null | string @go(InputName,*string) - - // Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector. - // +kubebuilder:validation:Optional - messageId?: null | string @go(MessageID,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#TopicRuleKafkaInitParameters: { - // Properties of the Apache Kafka producer client. For more info, see the AWS documentation. - clientProperties?: {[string]: null | string} @go(ClientProperties,map[string]*string) - - // The ARN of Kafka action's VPC aws_iot_topic_rule_destination . - destinationArn?: null | string @go(DestinationArn,*string) - - // The name of the HTTP header. - key?: null | string @go(Key,*string) - - // The Kafka message partition. - partition?: null | string @go(Partition,*string) - - // The Kafka topic for messages to be sent to the Kafka broker. - topic?: null | string @go(Topic,*string) -} - -#TopicRuleKafkaObservation: { - // Properties of the Apache Kafka producer client. For more info, see the AWS documentation. - clientProperties?: {[string]: null | string} @go(ClientProperties,map[string]*string) - - // The ARN of Kafka action's VPC aws_iot_topic_rule_destination . - destinationArn?: null | string @go(DestinationArn,*string) - - // The name of the HTTP header. - key?: null | string @go(Key,*string) - - // The Kafka message partition. - partition?: null | string @go(Partition,*string) - - // The Kafka topic for messages to be sent to the Kafka broker. - topic?: null | string @go(Topic,*string) -} - -#TopicRuleKafkaParameters: { - // Properties of the Apache Kafka producer client. For more info, see the AWS documentation. - // +kubebuilder:validation:Optional - clientProperties: {[string]: null | string} @go(ClientProperties,map[string]*string) - - // The ARN of Kafka action's VPC aws_iot_topic_rule_destination . - // +kubebuilder:validation:Optional - destinationArn?: null | string @go(DestinationArn,*string) - - // The name of the HTTP header. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The Kafka message partition. - // +kubebuilder:validation:Optional - partition?: null | string @go(Partition,*string) - - // The Kafka topic for messages to be sent to the Kafka broker. - // +kubebuilder:validation:Optional - topic?: null | string @go(Topic,*string) -} - -#TopicRuleKinesisInitParameters: { - // The partition key. - partitionKey?: null | string @go(PartitionKey,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Amazon Kinesis stream. - streamName?: null | string @go(StreamName,*string) -} - -#TopicRuleKinesisObservation: { - // The partition key. - partitionKey?: null | string @go(PartitionKey,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Amazon Kinesis stream. - streamName?: null | string @go(StreamName,*string) -} - -#TopicRuleKinesisParameters: { - // The partition key. - // +kubebuilder:validation:Optional - partitionKey?: null | string @go(PartitionKey,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Amazon Kinesis stream. - // +kubebuilder:validation:Optional - streamName?: null | string @go(StreamName,*string) -} - -#TopicRuleLambdaInitParameters: { - // The ARN of the Lambda function. - functionArn?: null | string @go(FunctionArn,*string) -} - -#TopicRuleLambdaObservation: { - // The ARN of the Lambda function. - functionArn?: null | string @go(FunctionArn,*string) -} - -#TopicRuleLambdaParameters: { - // The ARN of the Lambda function. - // +kubebuilder:validation:Optional - functionArn?: null | string @go(FunctionArn,*string) -} - -#TopicRuleObservation: { - // The ARN of the topic rule - arn?: null | string @go(Arn,*string) - cloudwatchAlarm?: [...#CloudwatchAlarmObservation] @go(CloudwatchAlarm,[]CloudwatchAlarmObservation) - cloudwatchLogs?: [...#CloudwatchLogsObservation] @go(CloudwatchLogs,[]CloudwatchLogsObservation) - cloudwatchMetric?: [...#CloudwatchMetricObservation] @go(CloudwatchMetric,[]CloudwatchMetricObservation) - - // The description of the rule. - description?: null | string @go(Description,*string) - dynamodb?: [...#DynamodbObservation] @go(Dynamodb,[]DynamodbObservation) - dynamodbv2?: [...#Dynamodbv2Observation] @go(Dynamodbv2,[]Dynamodbv2Observation) - elasticsearch?: [...#ElasticsearchObservation] @go(Elasticsearch,[]ElasticsearchObservation) - - // Specifies whether the rule is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Configuration block with error action to be associated with the rule. See the documentation for cloudwatch_alarm, cloudwatch_logs, cloudwatch_metric, dynamodb, dynamodbv2, elasticsearch, firehose, http, iot_analytics, iot_events, kafka, kinesis, lambda, republish, s3, sns, sqs, step_functions, timestream configuration blocks for further configuration details. - errorAction?: [...#ErrorActionObservation] @go(ErrorAction,[]ErrorActionObservation) - firehose?: [...#TopicRuleFirehoseObservation] @go(Firehose,[]TopicRuleFirehoseObservation) - http?: [...#TopicRuleHTTPObservation] @go(HTTP,[]TopicRuleHTTPObservation) - - // The unique identifier for the document you are storing. - id?: null | string @go(ID,*string) - iotAnalytics?: [...#TopicRuleIotAnalyticsObservation] @go(IotAnalytics,[]TopicRuleIotAnalyticsObservation) - iotEvents?: [...#TopicRuleIotEventsObservation] @go(IotEvents,[]TopicRuleIotEventsObservation) - kafka?: [...#TopicRuleKafkaObservation] @go(Kafka,[]TopicRuleKafkaObservation) - kinesis?: [...#TopicRuleKinesisObservation] @go(Kinesis,[]TopicRuleKinesisObservation) - lambda?: [...#TopicRuleLambdaObservation] @go(Lambda,[]TopicRuleLambdaObservation) - republish?: [...#TopicRuleRepublishObservation] @go(Republish,[]TopicRuleRepublishObservation) - s3?: [...#TopicRuleS3Observation] @go(S3,[]TopicRuleS3Observation) - - // The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference (http://docs.aws.amazon.com/iot/latest/developerguide/iot-rules.html#aws-iot-sql-reference) in the AWS IoT Developer Guide. - sql?: null | string @go(SQL,*string) - - // The version of the SQL rules engine to use when evaluating the rule. - sqlVersion?: null | string @go(SQLVersion,*string) - sns?: [...#TopicRuleSnsObservation] @go(Sns,[]TopicRuleSnsObservation) - sqs?: [...#TopicRuleSqsObservation] @go(Sqs,[]TopicRuleSqsObservation) - stepFunctions?: [...#TopicRuleStepFunctionsObservation] @go(StepFunctions,[]TopicRuleStepFunctionsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - timestream?: [...#TopicRuleTimestreamObservation] @go(Timestream,[]TopicRuleTimestreamObservation) -} - -#TopicRuleParameters: { - // +kubebuilder:validation:Optional - cloudwatchAlarm?: [...#CloudwatchAlarmParameters] @go(CloudwatchAlarm,[]CloudwatchAlarmParameters) - - // +kubebuilder:validation:Optional - cloudwatchLogs?: [...#CloudwatchLogsParameters] @go(CloudwatchLogs,[]CloudwatchLogsParameters) - - // +kubebuilder:validation:Optional - cloudwatchMetric?: [...#CloudwatchMetricParameters] @go(CloudwatchMetric,[]CloudwatchMetricParameters) - - // The description of the rule. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // +kubebuilder:validation:Optional - dynamodb?: [...#DynamodbParameters] @go(Dynamodb,[]DynamodbParameters) - - // +kubebuilder:validation:Optional - dynamodbv2?: [...#Dynamodbv2Parameters] @go(Dynamodbv2,[]Dynamodbv2Parameters) - - // +kubebuilder:validation:Optional - elasticsearch?: [...#ElasticsearchParameters] @go(Elasticsearch,[]ElasticsearchParameters) - - // Specifies whether the rule is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Configuration block with error action to be associated with the rule. See the documentation for cloudwatch_alarm, cloudwatch_logs, cloudwatch_metric, dynamodb, dynamodbv2, elasticsearch, firehose, http, iot_analytics, iot_events, kafka, kinesis, lambda, republish, s3, sns, sqs, step_functions, timestream configuration blocks for further configuration details. - // +kubebuilder:validation:Optional - errorAction?: [...#ErrorActionParameters] @go(ErrorAction,[]ErrorActionParameters) - - // +kubebuilder:validation:Optional - firehose?: [...#TopicRuleFirehoseParameters] @go(Firehose,[]TopicRuleFirehoseParameters) - - // +kubebuilder:validation:Optional - http?: [...#TopicRuleHTTPParameters] @go(HTTP,[]TopicRuleHTTPParameters) - - // +kubebuilder:validation:Optional - iotAnalytics?: [...#TopicRuleIotAnalyticsParameters] @go(IotAnalytics,[]TopicRuleIotAnalyticsParameters) - - // +kubebuilder:validation:Optional - iotEvents?: [...#TopicRuleIotEventsParameters] @go(IotEvents,[]TopicRuleIotEventsParameters) - - // +kubebuilder:validation:Optional - kafka?: [...#TopicRuleKafkaParameters] @go(Kafka,[]TopicRuleKafkaParameters) - - // +kubebuilder:validation:Optional - kinesis?: [...#TopicRuleKinesisParameters] @go(Kinesis,[]TopicRuleKinesisParameters) - - // +kubebuilder:validation:Optional - lambda?: [...#TopicRuleLambdaParameters] @go(Lambda,[]TopicRuleLambdaParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // +kubebuilder:validation:Optional - republish?: [...#TopicRuleRepublishParameters] @go(Republish,[]TopicRuleRepublishParameters) - - // +kubebuilder:validation:Optional - s3?: [...#TopicRuleS3Parameters] @go(S3,[]TopicRuleS3Parameters) - - // The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference (http://docs.aws.amazon.com/iot/latest/developerguide/iot-rules.html#aws-iot-sql-reference) in the AWS IoT Developer Guide. - // +kubebuilder:validation:Optional - sql?: null | string @go(SQL,*string) - - // The version of the SQL rules engine to use when evaluating the rule. - // +kubebuilder:validation:Optional - sqlVersion?: null | string @go(SQLVersion,*string) - - // +kubebuilder:validation:Optional - sns?: [...#TopicRuleSnsParameters] @go(Sns,[]TopicRuleSnsParameters) - - // +kubebuilder:validation:Optional - sqs?: [...#TopicRuleSqsParameters] @go(Sqs,[]TopicRuleSqsParameters) - - // +kubebuilder:validation:Optional - stepFunctions?: [...#TopicRuleStepFunctionsParameters] @go(StepFunctions,[]TopicRuleStepFunctionsParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // +kubebuilder:validation:Optional - timestream?: [...#TopicRuleTimestreamParameters] @go(Timestream,[]TopicRuleTimestreamParameters) -} - -#TopicRuleRepublishInitParameters: { - // The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0. - qos?: null | float64 @go(Qos,*float64) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The Kafka topic for messages to be sent to the Kafka broker. - topic?: null | string @go(Topic,*string) -} - -#TopicRuleRepublishObservation: { - // The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0. - qos?: null | float64 @go(Qos,*float64) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The Kafka topic for messages to be sent to the Kafka broker. - topic?: null | string @go(Topic,*string) -} - -#TopicRuleRepublishParameters: { - // The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0. - // +kubebuilder:validation:Optional - qos?: null | float64 @go(Qos,*float64) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The Kafka topic for messages to be sent to the Kafka broker. - // +kubebuilder:validation:Optional - topic?: null | string @go(Topic,*string) -} - -#TopicRuleS3InitParameters: { - // The Amazon S3 bucket name. - bucketName?: null | string @go(BucketName,*string) - - // The Amazon S3 canned ACL that controls access to the object identified by the object key. Valid values. - cannedAcl?: null | string @go(CannedACL,*string) - - // The name of the HTTP header. - key?: null | string @go(Key,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#TopicRuleS3Observation: { - // The Amazon S3 bucket name. - bucketName?: null | string @go(BucketName,*string) - - // The Amazon S3 canned ACL that controls access to the object identified by the object key. Valid values. - cannedAcl?: null | string @go(CannedACL,*string) - - // The name of the HTTP header. - key?: null | string @go(Key,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) -} - -#TopicRuleS3Parameters: { - // The Amazon S3 bucket name. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // The Amazon S3 canned ACL that controls access to the object identified by the object key. Valid values. - // +kubebuilder:validation:Optional - cannedAcl?: null | string @go(CannedACL,*string) - - // The name of the HTTP header. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#TopicRuleSnsInitParameters: { - // The message format of the message to publish. Accepted values are "JSON" and "RAW". - messageFormat?: null | string @go(MessageFormat,*string) -} - -#TopicRuleSnsObservation: { - // The message format of the message to publish. Accepted values are "JSON" and "RAW". - messageFormat?: null | string @go(MessageFormat,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The ARN of the SNS topic. - targetArn?: null | string @go(TargetArn,*string) -} - -#TopicRuleSnsParameters: { - // The message format of the message to publish. Accepted values are "JSON" and "RAW". - // +kubebuilder:validation:Optional - messageFormat?: null | string @go(MessageFormat,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The ARN of the SNS topic. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - targetArn?: null | string @go(TargetArn,*string) - - // Reference to a Topic in sns to populate targetArn. - // +kubebuilder:validation:Optional - targetArnRef?: null | v1.#Reference @go(TargetArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate targetArn. - // +kubebuilder:validation:Optional - targetArnSelector?: null | v1.#Selector @go(TargetArnSelector,*v1.Selector) -} - -#TopicRuleSqsInitParameters: { - // The URL of the Amazon SQS queue. - queueUrl?: null | string @go(QueueURL,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // Specifies whether to use Base64 encoding. - useBase64?: null | bool @go(UseBase64,*bool) -} - -#TopicRuleSqsObservation: { - // The URL of the Amazon SQS queue. - queueUrl?: null | string @go(QueueURL,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // Specifies whether to use Base64 encoding. - useBase64?: null | bool @go(UseBase64,*bool) -} - -#TopicRuleSqsParameters: { - // The URL of the Amazon SQS queue. - // +kubebuilder:validation:Optional - queueUrl?: null | string @go(QueueURL,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Specifies whether to use Base64 encoding. - // +kubebuilder:validation:Optional - useBase64?: null | bool @go(UseBase64,*bool) -} - -#TopicRuleStepFunctionsInitParameters: { - // The prefix used to generate, along with a UUID, the unique state machine execution name. - executionNamePrefix?: null | string @go(ExecutionNamePrefix,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Step Functions state machine whose execution will be started. - stateMachineName?: null | string @go(StateMachineName,*string) -} - -#TopicRuleStepFunctionsObservation: { - // The prefix used to generate, along with a UUID, the unique state machine execution name. - executionNamePrefix?: null | string @go(ExecutionNamePrefix,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Step Functions state machine whose execution will be started. - stateMachineName?: null | string @go(StateMachineName,*string) -} - -#TopicRuleStepFunctionsParameters: { - // The prefix used to generate, along with a UUID, the unique state machine execution name. - // +kubebuilder:validation:Optional - executionNamePrefix?: null | string @go(ExecutionNamePrefix,*string) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The name of the Step Functions state machine whose execution will be started. - // +kubebuilder:validation:Optional - stateMachineName?: null | string @go(StateMachineName,*string) -} - -#TopicRuleTimestreamInitParameters: { - // The name of an Amazon Timestream database. - databaseName?: null | string @go(DatabaseName,*string) - - // Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below. - dimension?: [...#TimestreamDimensionInitParameters] @go(Dimension,[]TimestreamDimensionInitParameters) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) - - // Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below. - timestamp?: [...#TimestreamTimestampInitParameters] @go(Timestamp,[]TimestreamTimestampInitParameters) -} - -#TopicRuleTimestreamObservation: { - // The name of an Amazon Timestream database. - databaseName?: null | string @go(DatabaseName,*string) - - // Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below. - dimension?: [...#TimestreamDimensionObservation] @go(Dimension,[]TimestreamDimensionObservation) - - // The IAM role ARN that allows access to the CloudWatch alarm. - roleArn?: null | string @go(RoleArn,*string) - - // The name of the DynamoDB table. - tableName?: null | string @go(TableName,*string) - - // Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below. - timestamp?: [...#TimestreamTimestampObservation] @go(Timestamp,[]TimestreamTimestampObservation) -} - -#TopicRuleTimestreamParameters: { - // The name of an Amazon Timestream database. - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below. - // +kubebuilder:validation:Optional - dimension: [...#TimestreamDimensionParameters] @go(Dimension,[]TimestreamDimensionParameters) - - // The IAM role ARN that allows access to the CloudWatch alarm. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // The name of the DynamoDB table. - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) - - // Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below. - // +kubebuilder:validation:Optional - timestamp?: [...#TimestreamTimestampParameters] @go(Timestamp,[]TimestreamTimestampParameters) -} - -// TopicRuleSpec defines the desired state of TopicRule -#TopicRuleSpec: { - v1.#ResourceSpec - forProvider: #TopicRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TopicRuleInitParameters @go(InitProvider) -} - -// TopicRuleStatus defines the observed state of TopicRule. -#TopicRuleStatus: { - v1.#ResourceStatus - atProvider?: #TopicRuleObservation @go(AtProvider) -} - -// TopicRule is the Schema for the TopicRules API. Creates and manages an AWS IoT topic rule -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TopicRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.enabled) || (has(self.initProvider) && has(self.initProvider.enabled))",message="spec.forProvider.enabled is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sql) || (has(self.initProvider) && has(self.initProvider.sql))",message="spec.forProvider.sql is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sqlVersion) || (has(self.initProvider) && has(self.initProvider.sqlVersion))",message="spec.forProvider.sqlVersion is a required parameter" - spec: #TopicRuleSpec @go(Spec) - status?: #TopicRuleStatus @go(Status) -} - -// TopicRuleList contains a list of TopicRules -#TopicRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TopicRule] @go(Items,[]TopicRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ivs/v1beta1/zz_channel_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ivs/v1beta1/zz_channel_types_go_gen.cue deleted file mode 100644 index 2f39b09..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ivs/v1beta1/zz_channel_types_go_gen.cue +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ivs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ChannelInitParameters: { - // If true, channel is private (enabled for playback authorization). - authorized?: null | bool @go(Authorized,*bool) - - // Channel latency mode. Valid values: NORMAL, LOW. - latencyMode?: null | string @go(LatencyMode,*string) - - // Channel name. - name?: null | string @go(Name,*string) - - // Recording configuration ARN. - recordingConfigurationArn?: null | string @go(RecordingConfigurationArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Channel type, which determines the allowable resolution and bitrate. Valid values: STANDARD, BASIC. - type?: null | string @go(Type,*string) -} - -#ChannelObservation: { - // ARN of the Channel. - arn?: null | string @go(Arn,*string) - - // If true, channel is private (enabled for playback authorization). - authorized?: null | bool @go(Authorized,*bool) - id?: null | string @go(ID,*string) - - // Channel ingest endpoint, part of the definition of an ingest server, used when setting up streaming software. - ingestEndpoint?: null | string @go(IngestEndpoint,*string) - - // Channel latency mode. Valid values: NORMAL, LOW. - latencyMode?: null | string @go(LatencyMode,*string) - - // Channel name. - name?: null | string @go(Name,*string) - - // Channel playback URL. - playbackUrl?: null | string @go(PlaybackURL,*string) - - // Recording configuration ARN. - recordingConfigurationArn?: null | string @go(RecordingConfigurationArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Channel type, which determines the allowable resolution and bitrate. Valid values: STANDARD, BASIC. - type?: null | string @go(Type,*string) -} - -#ChannelParameters: { - // If true, channel is private (enabled for playback authorization). - // +kubebuilder:validation:Optional - authorized?: null | bool @go(Authorized,*bool) - - // Channel latency mode. Valid values: NORMAL, LOW. - // +kubebuilder:validation:Optional - latencyMode?: null | string @go(LatencyMode,*string) - - // Channel name. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Recording configuration ARN. - // +kubebuilder:validation:Optional - recordingConfigurationArn?: null | string @go(RecordingConfigurationArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Channel type, which determines the allowable resolution and bitrate. Valid values: STANDARD, BASIC. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// ChannelSpec defines the desired state of Channel -#ChannelSpec: { - v1.#ResourceSpec - forProvider: #ChannelParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ChannelInitParameters @go(InitProvider) -} - -// ChannelStatus defines the observed state of Channel. -#ChannelStatus: { - v1.#ResourceStatus - atProvider?: #ChannelObservation @go(AtProvider) -} - -// Channel is the Schema for the Channels API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Channel: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ChannelSpec @go(Spec) - status?: #ChannelStatus @go(Status) -} - -// ChannelList contains a list of Channels -#ChannelList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Channel] @go(Items,[]Channel) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ivs/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ivs/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index cabd953..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ivs/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ivs/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=ivs.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "ivs.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ivs/v1beta1/zz_recordingconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ivs/v1beta1/zz_recordingconfiguration_types_go_gen.cue deleted file mode 100644 index 6e72fb3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ivs/v1beta1/zz_recordingconfiguration_types_go_gen.cue +++ /dev/null @@ -1,186 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ivs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DestinationConfigurationInitParameters: { - // S3 destination configuration where recorded videos will be stored. - s3?: [...#S3InitParameters] @go(S3,[]S3InitParameters) -} - -#DestinationConfigurationObservation: { - // S3 destination configuration where recorded videos will be stored. - s3?: [...#S3Observation] @go(S3,[]S3Observation) -} - -#DestinationConfigurationParameters: { - // S3 destination configuration where recorded videos will be stored. - // +kubebuilder:validation:Optional - s3: [...#S3Parameters] @go(S3,[]S3Parameters) -} - -#RecordingConfigurationInitParameters: { - // Object containing destination configuration for where recorded video will be stored. - destinationConfiguration?: [...#DestinationConfigurationInitParameters] @go(DestinationConfiguration,[]DestinationConfigurationInitParameters) - - // Recording Configuration name. - name?: null | string @go(Name,*string) - - // If a broadcast disconnects and then reconnects within the specified interval, the multiple streams will be considered a single broadcast and merged together. - recordingReconnectWindowSeconds?: null | float64 @go(RecordingReconnectWindowSeconds,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Object containing information to enable/disable the recording of thumbnails for a live session and modify the interval at which thumbnails are generated for the live session. - thumbnailConfiguration?: [...#ThumbnailConfigurationInitParameters] @go(ThumbnailConfiguration,[]ThumbnailConfigurationInitParameters) -} - -#RecordingConfigurationObservation: { - // ARN of the Recording Configuration. - arn?: null | string @go(Arn,*string) - - // Object containing destination configuration for where recorded video will be stored. - destinationConfiguration?: [...#DestinationConfigurationObservation] @go(DestinationConfiguration,[]DestinationConfigurationObservation) - id?: null | string @go(ID,*string) - - // Recording Configuration name. - name?: null | string @go(Name,*string) - - // If a broadcast disconnects and then reconnects within the specified interval, the multiple streams will be considered a single broadcast and merged together. - recordingReconnectWindowSeconds?: null | float64 @go(RecordingReconnectWindowSeconds,*float64) - - // The current state of the Recording Configuration. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Object containing information to enable/disable the recording of thumbnails for a live session and modify the interval at which thumbnails are generated for the live session. - thumbnailConfiguration?: [...#ThumbnailConfigurationObservation] @go(ThumbnailConfiguration,[]ThumbnailConfigurationObservation) -} - -#RecordingConfigurationParameters: { - // Object containing destination configuration for where recorded video will be stored. - // +kubebuilder:validation:Optional - destinationConfiguration?: [...#DestinationConfigurationParameters] @go(DestinationConfiguration,[]DestinationConfigurationParameters) - - // Recording Configuration name. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // If a broadcast disconnects and then reconnects within the specified interval, the multiple streams will be considered a single broadcast and merged together. - // +kubebuilder:validation:Optional - recordingReconnectWindowSeconds?: null | float64 @go(RecordingReconnectWindowSeconds,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Object containing information to enable/disable the recording of thumbnails for a live session and modify the interval at which thumbnails are generated for the live session. - // +kubebuilder:validation:Optional - thumbnailConfiguration?: [...#ThumbnailConfigurationParameters] @go(ThumbnailConfiguration,[]ThumbnailConfigurationParameters) -} - -#S3InitParameters: { - // S3 bucket name where recorded videos will be stored. - bucketName?: null | string @go(BucketName,*string) -} - -#S3Observation: { - // S3 bucket name where recorded videos will be stored. - bucketName?: null | string @go(BucketName,*string) -} - -#S3Parameters: { - // S3 bucket name where recorded videos will be stored. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) -} - -#ThumbnailConfigurationInitParameters: { - // Thumbnail recording mode. Valid values: DISABLED, INTERVAL. - recordingMode?: null | string @go(RecordingMode,*string) - - // The targeted thumbnail-generation interval in seconds. - targetIntervalSeconds?: null | float64 @go(TargetIntervalSeconds,*float64) -} - -#ThumbnailConfigurationObservation: { - // Thumbnail recording mode. Valid values: DISABLED, INTERVAL. - recordingMode?: null | string @go(RecordingMode,*string) - - // The targeted thumbnail-generation interval in seconds. - targetIntervalSeconds?: null | float64 @go(TargetIntervalSeconds,*float64) -} - -#ThumbnailConfigurationParameters: { - // Thumbnail recording mode. Valid values: DISABLED, INTERVAL. - // +kubebuilder:validation:Optional - recordingMode?: null | string @go(RecordingMode,*string) - - // The targeted thumbnail-generation interval in seconds. - // +kubebuilder:validation:Optional - targetIntervalSeconds?: null | float64 @go(TargetIntervalSeconds,*float64) -} - -// RecordingConfigurationSpec defines the desired state of RecordingConfiguration -#RecordingConfigurationSpec: { - v1.#ResourceSpec - forProvider: #RecordingConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RecordingConfigurationInitParameters @go(InitProvider) -} - -// RecordingConfigurationStatus defines the observed state of RecordingConfiguration. -#RecordingConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #RecordingConfigurationObservation @go(AtProvider) -} - -// RecordingConfiguration is the Schema for the RecordingConfigurations API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RecordingConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destinationConfiguration) || (has(self.initProvider) && has(self.initProvider.destinationConfiguration))",message="spec.forProvider.destinationConfiguration is a required parameter" - spec: #RecordingConfigurationSpec @go(Spec) - status?: #RecordingConfigurationStatus @go(Status) -} - -// RecordingConfigurationList contains a list of RecordingConfigurations -#RecordingConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RecordingConfiguration] @go(Items,[]RecordingConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kafka/v1beta1/zz_cluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kafka/v1beta1/zz_cluster_types_go_gen.cue deleted file mode 100644 index 2b8bc6a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kafka/v1beta1/zz_cluster_types_go_gen.cue +++ /dev/null @@ -1,806 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kafka/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BrokerLogsInitParameters: { - cloudwatchLogs?: [...#CloudwatchLogsInitParameters] @go(CloudwatchLogs,[]CloudwatchLogsInitParameters) - firehose?: [...#FirehoseInitParameters] @go(Firehose,[]FirehoseInitParameters) - s3?: [...#S3InitParameters] @go(S3,[]S3InitParameters) -} - -#BrokerLogsObservation: { - cloudwatchLogs?: [...#CloudwatchLogsObservation] @go(CloudwatchLogs,[]CloudwatchLogsObservation) - firehose?: [...#FirehoseObservation] @go(Firehose,[]FirehoseObservation) - s3?: [...#S3Observation] @go(S3,[]S3Observation) -} - -#BrokerLogsParameters: { - // +kubebuilder:validation:Optional - cloudwatchLogs?: [...#CloudwatchLogsParameters] @go(CloudwatchLogs,[]CloudwatchLogsParameters) - - // +kubebuilder:validation:Optional - firehose?: [...#FirehoseParameters] @go(Firehose,[]FirehoseParameters) - - // +kubebuilder:validation:Optional - s3?: [...#S3Parameters] @go(S3,[]S3Parameters) -} - -#BrokerNodeGroupInfoInitParameters: { - // The distribution of broker nodes across availability zones (documentation). Currently the only valid value is DEFAULT. - azDistribution?: null | string @go(AzDistribution,*string) - - // Information about the cluster access configuration. See below. For security reasons, you can't turn on public access while creating an MSK cluster. However, you can update an existing cluster to make it publicly accessible. You can also create a new cluster and then update it to make it publicly accessible (documentation). - connectivityInfo?: [...#ConnectivityInfoInitParameters] @go(ConnectivityInfo,[]ConnectivityInfoInitParameters) - - // The size in GiB of the EBS volume for the data drive on each broker node. - ebsVolumeSize?: null | float64 @go(EBSVolumeSize,*float64) - - // Specify the instance type to use for the kafka brokersE.g., kafka.m5.large. (Pricing info) - instanceType?: null | string @go(InstanceType,*string) - - // A block that contains information about storage volumes attached to MSK broker nodes. See below. - storageInfo?: [...#StorageInfoInitParameters] @go(StorageInfo,[]StorageInfoInitParameters) -} - -#BrokerNodeGroupInfoObservation: { - // The distribution of broker nodes across availability zones (documentation). Currently the only valid value is DEFAULT. - azDistribution?: null | string @go(AzDistribution,*string) - - // A list of subnets to connect to in client VPC (documentation). - clientSubnets?: [...null | string] @go(ClientSubnets,[]*string) - - // Information about the cluster access configuration. See below. For security reasons, you can't turn on public access while creating an MSK cluster. However, you can update an existing cluster to make it publicly accessible. You can also create a new cluster and then update it to make it publicly accessible (documentation). - connectivityInfo?: [...#ConnectivityInfoObservation] @go(ConnectivityInfo,[]ConnectivityInfoObservation) - - // The size in GiB of the EBS volume for the data drive on each broker node. - ebsVolumeSize?: null | float64 @go(EBSVolumeSize,*float64) - - // Specify the instance type to use for the kafka brokersE.g., kafka.m5.large. (Pricing info) - instanceType?: null | string @go(InstanceType,*string) - - // A list of the security groups to associate with the elastic network interfaces to control who can communicate with the cluster. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // A block that contains information about storage volumes attached to MSK broker nodes. See below. - storageInfo?: [...#StorageInfoObservation] @go(StorageInfo,[]StorageInfoObservation) -} - -#BrokerNodeGroupInfoParameters: { - // The distribution of broker nodes across availability zones (documentation). Currently the only valid value is DEFAULT. - // +kubebuilder:validation:Optional - azDistribution?: null | string @go(AzDistribution,*string) - - // A list of subnets to connect to in client VPC (documentation). - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - clientSubnets?: [...null | string] @go(ClientSubnets,[]*string) - - // References to Subnet in ec2 to populate clientSubnets. - // +kubebuilder:validation:Optional - clientSubnetsRefs?: [...v1.#Reference] @go(ClientSubnetsRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate clientSubnets. - // +kubebuilder:validation:Optional - clientSubnetsSelector?: null | v1.#Selector @go(ClientSubnetsSelector,*v1.Selector) - - // Information about the cluster access configuration. See below. For security reasons, you can't turn on public access while creating an MSK cluster. However, you can update an existing cluster to make it publicly accessible. You can also create a new cluster and then update it to make it publicly accessible (documentation). - // +kubebuilder:validation:Optional - connectivityInfo?: [...#ConnectivityInfoParameters] @go(ConnectivityInfo,[]ConnectivityInfoParameters) - - // The size in GiB of the EBS volume for the data drive on each broker node. - // +kubebuilder:validation:Optional - ebsVolumeSize?: null | float64 @go(EBSVolumeSize,*float64) - - // Specify the instance type to use for the kafka brokersE.g., kafka.m5.large. (Pricing info) - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // A list of the security groups to associate with the elastic network interfaces to control who can communicate with the cluster. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // References to SecurityGroup in ec2 to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupsRefs?: [...v1.#Reference] @go(SecurityGroupsRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupsSelector?: null | v1.#Selector @go(SecurityGroupsSelector,*v1.Selector) - - // A block that contains information about storage volumes attached to MSK broker nodes. See below. - // +kubebuilder:validation:Optional - storageInfo?: [...#StorageInfoParameters] @go(StorageInfo,[]StorageInfoParameters) -} - -#ClientAuthenticationInitParameters: { - // Configuration block for specifying SASL client authentication. See below. - sasl?: [...#SaslInitParameters] @go(Sasl,[]SaslInitParameters) - - // Configuration block for specifying TLS client authentication. See below. - tls?: [...#TLSInitParameters] @go(TLS,[]TLSInitParameters) - - // Enables unauthenticated access. - unauthenticated?: null | bool @go(Unauthenticated,*bool) -} - -#ClientAuthenticationObservation: { - // Configuration block for specifying SASL client authentication. See below. - sasl?: [...#SaslObservation] @go(Sasl,[]SaslObservation) - - // Configuration block for specifying TLS client authentication. See below. - tls?: [...#TLSObservation] @go(TLS,[]TLSObservation) - - // Enables unauthenticated access. - unauthenticated?: null | bool @go(Unauthenticated,*bool) -} - -#ClientAuthenticationParameters: { - // Configuration block for specifying SASL client authentication. See below. - // +kubebuilder:validation:Optional - sasl?: [...#SaslParameters] @go(Sasl,[]SaslParameters) - - // Configuration block for specifying TLS client authentication. See below. - // +kubebuilder:validation:Optional - tls?: [...#TLSParameters] @go(TLS,[]TLSParameters) - - // Enables unauthenticated access. - // +kubebuilder:validation:Optional - unauthenticated?: null | bool @go(Unauthenticated,*bool) -} - -#CloudwatchLogsInitParameters: { - // Controls whether provisioned throughput is enabled or not. Default value: false. - enabled?: null | bool @go(Enabled,*bool) -} - -#CloudwatchLogsObservation: { - // Controls whether provisioned throughput is enabled or not. Default value: false. - enabled?: null | bool @go(Enabled,*bool) - - // Name of the Cloudwatch Log Group to deliver logs to. - logGroup?: null | string @go(LogGroup,*string) -} - -#CloudwatchLogsParameters: { - // Controls whether provisioned throughput is enabled or not. Default value: false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Name of the Cloudwatch Log Group to deliver logs to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group - // +kubebuilder:validation:Optional - logGroup?: null | string @go(LogGroup,*string) - - // Reference to a Group in cloudwatchlogs to populate logGroup. - // +kubebuilder:validation:Optional - logGroupRef?: null | v1.#Reference @go(LogGroupRef,*v1.Reference) - - // Selector for a Group in cloudwatchlogs to populate logGroup. - // +kubebuilder:validation:Optional - logGroupSelector?: null | v1.#Selector @go(LogGroupSelector,*v1.Selector) -} - -#ClusterInitParameters: { - // Configuration block for the broker nodes of the Kafka cluster. - brokerNodeGroupInfo?: [...#BrokerNodeGroupInfoInitParameters] @go(BrokerNodeGroupInfo,[]BrokerNodeGroupInfoInitParameters) - - // Configuration block for specifying a client authentication. See below. - clientAuthentication?: [...#ClientAuthenticationInitParameters] @go(ClientAuthentication,[]ClientAuthenticationInitParameters) - - // Name of the MSK cluster. - clusterName?: null | string @go(ClusterName,*string) - - // Configuration block for specifying a MSK Configuration to attach to Kafka brokers. See below. - configurationInfo?: [...#ConfigurationInfoInitParameters] @go(ConfigurationInfo,[]ConfigurationInfoInitParameters) - - // Configuration block for specifying encryption. See below. - encryptionInfo?: [...#EncryptionInfoInitParameters] @go(EncryptionInfo,[]EncryptionInfoInitParameters) - - // Specify the desired enhanced MSK CloudWatch monitoring level. See Monitoring Amazon MSK with Amazon CloudWatch - enhancedMonitoring?: null | string @go(EnhancedMonitoring,*string) - - // Specify the desired Kafka software version. - kafkaVersion?: null | string @go(KafkaVersion,*string) - - // Configuration block for streaming broker logs to Cloudwatch/S3/Kinesis Firehose. See below. - loggingInfo?: [...#LoggingInfoInitParameters] @go(LoggingInfo,[]LoggingInfoInitParameters) - - // The desired total number of broker nodes in the kafka cluster. It must be a multiple of the number of specified client subnets. - numberOfBrokerNodes?: null | float64 @go(NumberOfBrokerNodes,*float64) - - // Configuration block for JMX and Node monitoring for the MSK cluster. See below. - openMonitoring?: [...#OpenMonitoringInitParameters] @go(OpenMonitoring,[]OpenMonitoringInitParameters) - - // Controls storage mode for supported storage tiers. Valid values are: LOCAL or TIERED. - storageMode?: null | string @go(StorageMode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterObservation: { - // Amazon Resource Name (ARN) of the MSK Configuration to use in the cluster. - arn?: null | string @go(Arn,*string) - - // Comma separated list of one or more hostname:port pairs of kafka brokers suitable to bootstrap connectivity to the kafka cluster. Contains a value if encryption_info.0.encryption_in_transit.0.client_broker is set to PLAINTEXT or TLS_PLAINTEXT. The resource sorts values alphabetically. AWS may not always return all endpoints so this value is not guaranteed to be stable across applies. - bootstrapBrokers?: null | string @go(BootstrapBrokers,*string) - - // One or more DNS names (or IP addresses) and SASL IAM port pairs. For example, b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198. This attribute will have a value if encryption_info.0.encryption_in_transit.0.client_broker is set to TLS_PLAINTEXT or TLS and client_authentication.0.sasl.0.iam is set to true and broker_node_group_info.0.connectivity_info.0.public_access.0.type is set to SERVICE_PROVIDED_EIPS and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies. - bootstrapBrokersPublicSaslIam?: null | string @go(BootstrapBrokersPublicSaslIAM,*string) - - // One or more DNS names (or IP addresses) and SASL SCRAM port pairs. For example, b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196. This attribute will have a value if encryption_info.0.encryption_in_transit.0.client_broker is set to TLS_PLAINTEXT or TLS and client_authentication.0.sasl.0.scram is set to true and broker_node_group_info.0.connectivity_info.0.public_access.0.type is set to SERVICE_PROVIDED_EIPS and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies. - bootstrapBrokersPublicSaslScram?: null | string @go(BootstrapBrokersPublicSaslScram,*string) - - // One or more DNS names (or IP addresses) and TLS port pairs. For example, b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194. This attribute will have a value if encryption_info.0.encryption_in_transit.0.client_broker is set to TLS_PLAINTEXT or TLS and broker_node_group_info.0.connectivity_info.0.public_access.0.type is set to SERVICE_PROVIDED_EIPS and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies. - bootstrapBrokersPublicTls?: null | string @go(BootstrapBrokersPublicTLS,*string) - - // One or more DNS names (or IP addresses) and SASL IAM port pairs. For example, b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098. This attribute will have a value if encryption_info.0.encryption_in_transit.0.client_broker is set to TLS_PLAINTEXT or TLS and client_authentication.0.sasl.0.iam is set to true. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies. - bootstrapBrokersSaslIam?: null | string @go(BootstrapBrokersSaslIAM,*string) - - // One or more DNS names (or IP addresses) and SASL SCRAM port pairs. For example, b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096. This attribute will have a value if encryption_info.0.encryption_in_transit.0.client_broker is set to TLS_PLAINTEXT or TLS and client_authentication.0.sasl.0.scram is set to true. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies. - bootstrapBrokersSaslScram?: null | string @go(BootstrapBrokersSaslScram,*string) - - // One or more DNS names (or IP addresses) and TLS port pairs. For example, b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094. This attribute will have a value if encryption_info.0.encryption_in_transit.0.client_broker is set to TLS_PLAINTEXT or TLS. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies. - bootstrapBrokersTls?: null | string @go(BootstrapBrokersTLS,*string) - - // Configuration block for the broker nodes of the Kafka cluster. - brokerNodeGroupInfo?: [...#BrokerNodeGroupInfoObservation] @go(BrokerNodeGroupInfo,[]BrokerNodeGroupInfoObservation) - - // Configuration block for specifying a client authentication. See below. - clientAuthentication?: [...#ClientAuthenticationObservation] @go(ClientAuthentication,[]ClientAuthenticationObservation) - - // Name of the MSK cluster. - clusterName?: null | string @go(ClusterName,*string) - - // Configuration block for specifying a MSK Configuration to attach to Kafka brokers. See below. - configurationInfo?: [...#ConfigurationInfoObservation] @go(ConfigurationInfo,[]ConfigurationInfoObservation) - - // Current version of the MSK Cluster used for updates, e.g., K13V1IB3VIYZZH - currentVersion?: null | string @go(CurrentVersion,*string) - - // Configuration block for specifying encryption. See below. - encryptionInfo?: [...#EncryptionInfoObservation] @go(EncryptionInfo,[]EncryptionInfoObservation) - - // Specify the desired enhanced MSK CloudWatch monitoring level. See Monitoring Amazon MSK with Amazon CloudWatch - enhancedMonitoring?: null | string @go(EnhancedMonitoring,*string) - id?: null | string @go(ID,*string) - - // Specify the desired Kafka software version. - kafkaVersion?: null | string @go(KafkaVersion,*string) - - // Configuration block for streaming broker logs to Cloudwatch/S3/Kinesis Firehose. See below. - loggingInfo?: [...#LoggingInfoObservation] @go(LoggingInfo,[]LoggingInfoObservation) - - // The desired total number of broker nodes in the kafka cluster. It must be a multiple of the number of specified client subnets. - numberOfBrokerNodes?: null | float64 @go(NumberOfBrokerNodes,*float64) - - // Configuration block for JMX and Node monitoring for the MSK cluster. See below. - openMonitoring?: [...#OpenMonitoringObservation] @go(OpenMonitoring,[]OpenMonitoringObservation) - - // Controls storage mode for supported storage tiers. Valid values are: LOCAL or TIERED. - storageMode?: null | string @go(StorageMode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster. The returned values are sorted alphabetically. The AWS API may not return all endpoints, so this value is not guaranteed to be stable across applies. - zookeeperConnectString?: null | string @go(ZookeeperConnectString,*string) - - // A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster via TLS. The returned values are sorted alphabetically. The AWS API may not return all endpoints, so this value is not guaranteed to be stable across applies. - zookeeperConnectStringTls?: null | string @go(ZookeeperConnectStringTLS,*string) -} - -#ClusterParameters: { - // Configuration block for the broker nodes of the Kafka cluster. - // +kubebuilder:validation:Optional - brokerNodeGroupInfo?: [...#BrokerNodeGroupInfoParameters] @go(BrokerNodeGroupInfo,[]BrokerNodeGroupInfoParameters) - - // Configuration block for specifying a client authentication. See below. - // +kubebuilder:validation:Optional - clientAuthentication?: [...#ClientAuthenticationParameters] @go(ClientAuthentication,[]ClientAuthenticationParameters) - - // Name of the MSK cluster. - // +kubebuilder:validation:Optional - clusterName?: null | string @go(ClusterName,*string) - - // Configuration block for specifying a MSK Configuration to attach to Kafka brokers. See below. - // +kubebuilder:validation:Optional - configurationInfo?: [...#ConfigurationInfoParameters] @go(ConfigurationInfo,[]ConfigurationInfoParameters) - - // Configuration block for specifying encryption. See below. - // +kubebuilder:validation:Optional - encryptionInfo?: [...#EncryptionInfoParameters] @go(EncryptionInfo,[]EncryptionInfoParameters) - - // Specify the desired enhanced MSK CloudWatch monitoring level. See Monitoring Amazon MSK with Amazon CloudWatch - // +kubebuilder:validation:Optional - enhancedMonitoring?: null | string @go(EnhancedMonitoring,*string) - - // Specify the desired Kafka software version. - // +kubebuilder:validation:Optional - kafkaVersion?: null | string @go(KafkaVersion,*string) - - // Configuration block for streaming broker logs to Cloudwatch/S3/Kinesis Firehose. See below. - // +kubebuilder:validation:Optional - loggingInfo?: [...#LoggingInfoParameters] @go(LoggingInfo,[]LoggingInfoParameters) - - // The desired total number of broker nodes in the kafka cluster. It must be a multiple of the number of specified client subnets. - // +kubebuilder:validation:Optional - numberOfBrokerNodes?: null | float64 @go(NumberOfBrokerNodes,*float64) - - // Configuration block for JMX and Node monitoring for the MSK cluster. See below. - // +kubebuilder:validation:Optional - openMonitoring?: [...#OpenMonitoringParameters] @go(OpenMonitoring,[]OpenMonitoringParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Controls storage mode for supported storage tiers. Valid values are: LOCAL or TIERED. - // +kubebuilder:validation:Optional - storageMode?: null | string @go(StorageMode,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ConfigurationInfoInitParameters: { - // Revision of the MSK Configuration to use in the cluster. - revision?: null | float64 @go(Revision,*float64) -} - -#ConfigurationInfoObservation: { - // Amazon Resource Name (ARN) of the MSK Configuration to use in the cluster. - arn?: null | string @go(Arn,*string) - - // Revision of the MSK Configuration to use in the cluster. - revision?: null | float64 @go(Revision,*float64) -} - -#ConfigurationInfoParameters: { - // Amazon Resource Name (ARN) of the MSK Configuration to use in the cluster. - // +crossplane:generate:reference:type=Configuration - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // Reference to a Configuration to populate arn. - // +kubebuilder:validation:Optional - arnRef?: null | v1.#Reference @go(ArnRef,*v1.Reference) - - // Selector for a Configuration to populate arn. - // +kubebuilder:validation:Optional - arnSelector?: null | v1.#Selector @go(ArnSelector,*v1.Selector) - - // Revision of the MSK Configuration to use in the cluster. - // +kubebuilder:validation:Optional - revision?: null | float64 @go(Revision,*float64) -} - -#ConnectivityInfoInitParameters: { - // Access control settings for brokers. See below. - publicAccess?: [...#PublicAccessInitParameters] @go(PublicAccess,[]PublicAccessInitParameters) -} - -#ConnectivityInfoObservation: { - // Access control settings for brokers. See below. - publicAccess?: [...#PublicAccessObservation] @go(PublicAccess,[]PublicAccessObservation) -} - -#ConnectivityInfoParameters: { - // Access control settings for brokers. See below. - // +kubebuilder:validation:Optional - publicAccess?: [...#PublicAccessParameters] @go(PublicAccess,[]PublicAccessParameters) -} - -#EBSStorageInfoInitParameters: { - // A block that contains EBS volume provisioned throughput information. To provision storage throughput, you must choose broker type kafka.m5.4xlarge or larger. See below. - provisionedThroughput?: [...#ProvisionedThroughputInitParameters] @go(ProvisionedThroughput,[]ProvisionedThroughputInitParameters) - - // The size in GiB of the EBS volume for the data drive on each broker node. Minimum value of 1 and maximum value of 16384. - volumeSize?: null | float64 @go(VolumeSize,*float64) -} - -#EBSStorageInfoObservation: { - // A block that contains EBS volume provisioned throughput information. To provision storage throughput, you must choose broker type kafka.m5.4xlarge or larger. See below. - provisionedThroughput?: [...#ProvisionedThroughputObservation] @go(ProvisionedThroughput,[]ProvisionedThroughputObservation) - - // The size in GiB of the EBS volume for the data drive on each broker node. Minimum value of 1 and maximum value of 16384. - volumeSize?: null | float64 @go(VolumeSize,*float64) -} - -#EBSStorageInfoParameters: { - // A block that contains EBS volume provisioned throughput information. To provision storage throughput, you must choose broker type kafka.m5.4xlarge or larger. See below. - // +kubebuilder:validation:Optional - provisionedThroughput?: [...#ProvisionedThroughputParameters] @go(ProvisionedThroughput,[]ProvisionedThroughputParameters) - - // The size in GiB of the EBS volume for the data drive on each broker node. Minimum value of 1 and maximum value of 16384. - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) -} - -#EncryptionInTransitInitParameters: { - // Encryption setting for data in transit between clients and brokers. Valid values: TLS, TLS_PLAINTEXT, and PLAINTEXT. Default value is TLS. - clientBroker?: null | string @go(ClientBroker,*string) - - // Whether data communication among broker nodes is encrypted. Default value: true. - inCluster?: null | bool @go(InCluster,*bool) -} - -#EncryptionInTransitObservation: { - // Encryption setting for data in transit between clients and brokers. Valid values: TLS, TLS_PLAINTEXT, and PLAINTEXT. Default value is TLS. - clientBroker?: null | string @go(ClientBroker,*string) - - // Whether data communication among broker nodes is encrypted. Default value: true. - inCluster?: null | bool @go(InCluster,*bool) -} - -#EncryptionInTransitParameters: { - // Encryption setting for data in transit between clients and brokers. Valid values: TLS, TLS_PLAINTEXT, and PLAINTEXT. Default value is TLS. - // +kubebuilder:validation:Optional - clientBroker?: null | string @go(ClientBroker,*string) - - // Whether data communication among broker nodes is encrypted. Default value: true. - // +kubebuilder:validation:Optional - inCluster?: null | bool @go(InCluster,*bool) -} - -#EncryptionInfoInitParameters: { - // Configuration block to specify encryption in transit. See below. - encryptionInTransit?: [...#EncryptionInTransitInitParameters] @go(EncryptionInTransit,[]EncryptionInTransitInitParameters) -} - -#EncryptionInfoObservation: { - // The ARN of the KMS key used for encryption at rest of the broker data volumes. - encryptionAtRestKmsKeyArn?: null | string @go(EncryptionAtRestKMSKeyArn,*string) - - // Configuration block to specify encryption in transit. See below. - encryptionInTransit?: [...#EncryptionInTransitObservation] @go(EncryptionInTransit,[]EncryptionInTransitObservation) -} - -#EncryptionInfoParameters: { - // The ARN of the KMS key used for encryption at rest of the broker data volumes. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - encryptionAtRestKmsKeyArn?: null | string @go(EncryptionAtRestKMSKeyArn,*string) - - // Reference to a Key in kms to populate encryptionAtRestKmsKeyArn. - // +kubebuilder:validation:Optional - encryptionAtRestKmsKeyArnRef?: null | v1.#Reference @go(EncryptionAtRestKMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate encryptionAtRestKmsKeyArn. - // +kubebuilder:validation:Optional - encryptionAtRestKmsKeyArnSelector?: null | v1.#Selector @go(EncryptionAtRestKMSKeyArnSelector,*v1.Selector) - - // Configuration block to specify encryption in transit. See below. - // +kubebuilder:validation:Optional - encryptionInTransit?: [...#EncryptionInTransitParameters] @go(EncryptionInTransit,[]EncryptionInTransitParameters) -} - -#FirehoseInitParameters: { - // Controls whether provisioned throughput is enabled or not. Default value: false. - enabled?: null | bool @go(Enabled,*bool) -} - -#FirehoseObservation: { - // Name of the Kinesis Data Firehose delivery stream to deliver logs to. - deliveryStream?: null | string @go(DeliveryStream,*string) - - // Controls whether provisioned throughput is enabled or not. Default value: false. - enabled?: null | bool @go(Enabled,*bool) -} - -#FirehoseParameters: { - // Name of the Kinesis Data Firehose delivery stream to deliver logs to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/firehose/v1beta1.DeliveryStream - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - deliveryStream?: null | string @go(DeliveryStream,*string) - - // Reference to a DeliveryStream in firehose to populate deliveryStream. - // +kubebuilder:validation:Optional - deliveryStreamRef?: null | v1.#Reference @go(DeliveryStreamRef,*v1.Reference) - - // Selector for a DeliveryStream in firehose to populate deliveryStream. - // +kubebuilder:validation:Optional - deliveryStreamSelector?: null | v1.#Selector @go(DeliveryStreamSelector,*v1.Selector) - - // Controls whether provisioned throughput is enabled or not. Default value: false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#JmxExporterInitParameters: { - // Indicates whether you want to enable or disable the JMX Exporter. - enabledInBroker?: null | bool @go(EnabledInBroker,*bool) -} - -#JmxExporterObservation: { - // Indicates whether you want to enable or disable the JMX Exporter. - enabledInBroker?: null | bool @go(EnabledInBroker,*bool) -} - -#JmxExporterParameters: { - // Indicates whether you want to enable or disable the JMX Exporter. - // +kubebuilder:validation:Optional - enabledInBroker?: null | bool @go(EnabledInBroker,*bool) -} - -#LoggingInfoInitParameters: { - // Configuration block for Broker Logs settings for logging info. See below. - brokerLogs?: [...#BrokerLogsInitParameters] @go(BrokerLogs,[]BrokerLogsInitParameters) -} - -#LoggingInfoObservation: { - // Configuration block for Broker Logs settings for logging info. See below. - brokerLogs?: [...#BrokerLogsObservation] @go(BrokerLogs,[]BrokerLogsObservation) -} - -#LoggingInfoParameters: { - // Configuration block for Broker Logs settings for logging info. See below. - // +kubebuilder:validation:Optional - brokerLogs: [...#BrokerLogsParameters] @go(BrokerLogs,[]BrokerLogsParameters) -} - -#NodeExporterInitParameters: { - // Indicates whether you want to enable or disable the JMX Exporter. - enabledInBroker?: null | bool @go(EnabledInBroker,*bool) -} - -#NodeExporterObservation: { - // Indicates whether you want to enable or disable the JMX Exporter. - enabledInBroker?: null | bool @go(EnabledInBroker,*bool) -} - -#NodeExporterParameters: { - // Indicates whether you want to enable or disable the JMX Exporter. - // +kubebuilder:validation:Optional - enabledInBroker?: null | bool @go(EnabledInBroker,*bool) -} - -#OpenMonitoringInitParameters: { - // Configuration block for Prometheus settings for open monitoring. See below. - prometheus?: [...#PrometheusInitParameters] @go(Prometheus,[]PrometheusInitParameters) -} - -#OpenMonitoringObservation: { - // Configuration block for Prometheus settings for open monitoring. See below. - prometheus?: [...#PrometheusObservation] @go(Prometheus,[]PrometheusObservation) -} - -#OpenMonitoringParameters: { - // Configuration block for Prometheus settings for open monitoring. See below. - // +kubebuilder:validation:Optional - prometheus: [...#PrometheusParameters] @go(Prometheus,[]PrometheusParameters) -} - -#PrometheusInitParameters: { - // Configuration block for JMX Exporter. See below. - jmxExporter?: [...#JmxExporterInitParameters] @go(JmxExporter,[]JmxExporterInitParameters) - - // Configuration block for Node Exporter. See below. - nodeExporter?: [...#NodeExporterInitParameters] @go(NodeExporter,[]NodeExporterInitParameters) -} - -#PrometheusObservation: { - // Configuration block for JMX Exporter. See below. - jmxExporter?: [...#JmxExporterObservation] @go(JmxExporter,[]JmxExporterObservation) - - // Configuration block for Node Exporter. See below. - nodeExporter?: [...#NodeExporterObservation] @go(NodeExporter,[]NodeExporterObservation) -} - -#PrometheusParameters: { - // Configuration block for JMX Exporter. See below. - // +kubebuilder:validation:Optional - jmxExporter?: [...#JmxExporterParameters] @go(JmxExporter,[]JmxExporterParameters) - - // Configuration block for Node Exporter. See below. - // +kubebuilder:validation:Optional - nodeExporter?: [...#NodeExporterParameters] @go(NodeExporter,[]NodeExporterParameters) -} - -#ProvisionedThroughputInitParameters: { - // Controls whether provisioned throughput is enabled or not. Default value: false. - enabled?: null | bool @go(Enabled,*bool) - - // Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second. The minimum value is 250. The maximum value varies between broker type. You can refer to the valid values for the maximum volume throughput at the following documentation on throughput bottlenecks - volumeThroughput?: null | float64 @go(VolumeThroughput,*float64) -} - -#ProvisionedThroughputObservation: { - // Controls whether provisioned throughput is enabled or not. Default value: false. - enabled?: null | bool @go(Enabled,*bool) - - // Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second. The minimum value is 250. The maximum value varies between broker type. You can refer to the valid values for the maximum volume throughput at the following documentation on throughput bottlenecks - volumeThroughput?: null | float64 @go(VolumeThroughput,*float64) -} - -#ProvisionedThroughputParameters: { - // Controls whether provisioned throughput is enabled or not. Default value: false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second. The minimum value is 250. The maximum value varies between broker type. You can refer to the valid values for the maximum volume throughput at the following documentation on throughput bottlenecks - // +kubebuilder:validation:Optional - volumeThroughput?: null | float64 @go(VolumeThroughput,*float64) -} - -#PublicAccessInitParameters: { - // Public access type. Valida values: DISABLED, SERVICE_PROVIDED_EIPS. - type?: null | string @go(Type,*string) -} - -#PublicAccessObservation: { - // Public access type. Valida values: DISABLED, SERVICE_PROVIDED_EIPS. - type?: null | string @go(Type,*string) -} - -#PublicAccessParameters: { - // Public access type. Valida values: DISABLED, SERVICE_PROVIDED_EIPS. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#S3InitParameters: { - // Controls whether provisioned throughput is enabled or not. Default value: false. - enabled?: null | bool @go(Enabled,*bool) - - // Prefix to append to the folder name. - prefix?: null | string @go(Prefix,*string) -} - -#S3Observation: { - // Name of the S3 bucket to deliver logs to. - bucket?: null | string @go(Bucket,*string) - - // Controls whether provisioned throughput is enabled or not. Default value: false. - enabled?: null | bool @go(Enabled,*bool) - - // Prefix to append to the folder name. - prefix?: null | string @go(Prefix,*string) -} - -#S3Parameters: { - // Name of the S3 bucket to deliver logs to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Controls whether provisioned throughput is enabled or not. Default value: false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Prefix to append to the folder name. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) -} - -#SaslInitParameters: { - // Enables IAM client authentication. Defaults to false. - iam?: null | bool @go(IAM,*bool) - - // Enables SCRAM client authentication via AWS Secrets Manager. Defaults to false. - scram?: null | bool @go(Scram,*bool) -} - -#SaslObservation: { - // Enables IAM client authentication. Defaults to false. - iam?: null | bool @go(IAM,*bool) - - // Enables SCRAM client authentication via AWS Secrets Manager. Defaults to false. - scram?: null | bool @go(Scram,*bool) -} - -#SaslParameters: { - // Enables IAM client authentication. Defaults to false. - // +kubebuilder:validation:Optional - iam?: null | bool @go(IAM,*bool) - - // Enables SCRAM client authentication via AWS Secrets Manager. Defaults to false. - // +kubebuilder:validation:Optional - scram?: null | bool @go(Scram,*bool) -} - -#StorageInfoInitParameters: { - // A block that contains EBS volume information. See below. - ebsStorageInfo?: [...#EBSStorageInfoInitParameters] @go(EBSStorageInfo,[]EBSStorageInfoInitParameters) -} - -#StorageInfoObservation: { - // A block that contains EBS volume information. See below. - ebsStorageInfo?: [...#EBSStorageInfoObservation] @go(EBSStorageInfo,[]EBSStorageInfoObservation) -} - -#StorageInfoParameters: { - // A block that contains EBS volume information. See below. - // +kubebuilder:validation:Optional - ebsStorageInfo?: [...#EBSStorageInfoParameters] @go(EBSStorageInfo,[]EBSStorageInfoParameters) -} - -#TLSInitParameters: { - // List of ACM Certificate Authority Amazon Resource Names (ARNs). - certificateAuthorityArns?: [...null | string] @go(CertificateAuthorityArns,[]*string) -} - -#TLSObservation: { - // List of ACM Certificate Authority Amazon Resource Names (ARNs). - certificateAuthorityArns?: [...null | string] @go(CertificateAuthorityArns,[]*string) -} - -#TLSParameters: { - // List of ACM Certificate Authority Amazon Resource Names (ARNs). - // +kubebuilder:validation:Optional - certificateAuthorityArns?: [...null | string] @go(CertificateAuthorityArns,[]*string) -} - -// ClusterSpec defines the desired state of Cluster -#ClusterSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInitParameters @go(InitProvider) -} - -// ClusterStatus defines the observed state of Cluster. -#ClusterStatus: { - v1.#ResourceStatus - atProvider?: #ClusterObservation @go(AtProvider) -} - -// Cluster is the Schema for the Clusters API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Cluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.brokerNodeGroupInfo) || (has(self.initProvider) && has(self.initProvider.brokerNodeGroupInfo))",message="spec.forProvider.brokerNodeGroupInfo is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.clusterName) || (has(self.initProvider) && has(self.initProvider.clusterName))",message="spec.forProvider.clusterName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.kafkaVersion) || (has(self.initProvider) && has(self.initProvider.kafkaVersion))",message="spec.forProvider.kafkaVersion is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.numberOfBrokerNodes) || (has(self.initProvider) && has(self.initProvider.numberOfBrokerNodes))",message="spec.forProvider.numberOfBrokerNodes is a required parameter" - spec: #ClusterSpec @go(Spec) - status?: #ClusterStatus @go(Status) -} - -// ClusterList contains a list of Clusters -#ClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Cluster] @go(Items,[]Cluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kafka/v1beta1/zz_configuration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kafka/v1beta1/zz_configuration_types_go_gen.cue deleted file mode 100644 index e77164f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kafka/v1beta1/zz_configuration_types_go_gen.cue +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kafka/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigurationInitParameters: { - // Description of the configuration. - description?: null | string @go(Description,*string) - - // List of Apache Kafka versions which can use this configuration. - kafkaVersions?: [...null | string] @go(KafkaVersions,[]*string) - - // Name of the configuration. - name?: null | string @go(Name,*string) - - // Contents of the server.properties file. Supported properties are documented in the MSK Developer Guide. - serverProperties?: null | string @go(ServerProperties,*string) -} - -#ConfigurationObservation: { - // Amazon Resource Name (ARN) of the configuration. - arn?: null | string @go(Arn,*string) - - // Description of the configuration. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // List of Apache Kafka versions which can use this configuration. - kafkaVersions?: [...null | string] @go(KafkaVersions,[]*string) - - // Latest revision of the configuration. - latestRevision?: null | float64 @go(LatestRevision,*float64) - - // Name of the configuration. - name?: null | string @go(Name,*string) - - // Contents of the server.properties file. Supported properties are documented in the MSK Developer Guide. - serverProperties?: null | string @go(ServerProperties,*string) -} - -#ConfigurationParameters: { - // Description of the configuration. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // List of Apache Kafka versions which can use this configuration. - // +kubebuilder:validation:Optional - kafkaVersions?: [...null | string] @go(KafkaVersions,[]*string) - - // Name of the configuration. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Contents of the server.properties file. Supported properties are documented in the MSK Developer Guide. - // +kubebuilder:validation:Optional - serverProperties?: null | string @go(ServerProperties,*string) -} - -// ConfigurationSpec defines the desired state of Configuration -#ConfigurationSpec: { - v1.#ResourceSpec - forProvider: #ConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConfigurationInitParameters @go(InitProvider) -} - -// ConfigurationStatus defines the observed state of Configuration. -#ConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #ConfigurationObservation @go(AtProvider) -} - -// Configuration is the Schema for the Configurations API. provider resource for managing an amazon managed streaming for kafka configuration -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Configuration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serverProperties) || (has(self.initProvider) && has(self.initProvider.serverProperties))",message="spec.forProvider.serverProperties is a required parameter" - spec: #ConfigurationSpec @go(Spec) - status?: #ConfigurationStatus @go(Status) -} - -// ConfigurationList contains a list of Configurations -#ConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Configuration] @go(Items,[]Configuration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kafka/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kafka/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 2694822..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kafka/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kafka/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=kafka.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "kafka.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kafka/v1beta1/zz_scramsecretassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kafka/v1beta1/zz_scramsecretassociation_types_go_gen.cue deleted file mode 100644 index 8ac2be9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kafka/v1beta1/zz_scramsecretassociation_types_go_gen.cue +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kafka/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ScramSecretAssociationInitParameters: { -} - -#ScramSecretAssociationObservation: { - // Amazon Resource Name (ARN) of the MSK cluster. - clusterArn?: null | string @go(ClusterArn,*string) - - // Amazon Resource Name (ARN) of the MSK cluster. - id?: null | string @go(ID,*string) - - // List of all AWS Secrets Manager secret ARNs to associate with the cluster. Secrets not referenced, selected or listed here will be disassociated from the cluster. - secretArnList?: [...null | string] @go(SecretArnList,[]*string) -} - -#ScramSecretAssociationParameters: { - // Amazon Resource Name (ARN) of the MSK cluster. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kafka/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - clusterArn?: null | string @go(ClusterArn,*string) - - // Reference to a Cluster in kafka to populate clusterArn. - // +kubebuilder:validation:Optional - clusterArnRef?: null | v1.#Reference @go(ClusterArnRef,*v1.Reference) - - // Selector for a Cluster in kafka to populate clusterArn. - // +kubebuilder:validation:Optional - clusterArnSelector?: null | v1.#Selector @go(ClusterArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // List of all AWS Secrets Manager secret ARNs to associate with the cluster. Secrets not referenced, selected or listed here will be disassociated from the cluster. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/secretsmanager/v1beta1.Secret - // +crossplane:generate:reference:refFieldName=SecretArnRefs - // +crossplane:generate:reference:selectorFieldName=SecretArnSelector - // +kubebuilder:validation:Optional - secretArnList?: [...null | string] @go(SecretArnList,[]*string) - - // References to Secret in secretsmanager to populate secretArnList. - // +kubebuilder:validation:Optional - secretArnRefs?: [...v1.#Reference] @go(SecretArnRefs,[]v1.Reference) - - // Selector for a list of Secret in secretsmanager to populate secretArnList. - // +kubebuilder:validation:Optional - secretArnSelector?: null | v1.#Selector @go(SecretArnSelector,*v1.Selector) -} - -// ScramSecretAssociationSpec defines the desired state of ScramSecretAssociation -#ScramSecretAssociationSpec: { - v1.#ResourceSpec - forProvider: #ScramSecretAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ScramSecretAssociationInitParameters @go(InitProvider) -} - -// ScramSecretAssociationStatus defines the observed state of ScramSecretAssociation. -#ScramSecretAssociationStatus: { - v1.#ResourceStatus - atProvider?: #ScramSecretAssociationObservation @go(AtProvider) -} - -// ScramSecretAssociation is the Schema for the ScramSecretAssociations API. Associates SCRAM secrets with a Managed Streaming for Kafka (MSK) cluster. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ScramSecretAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ScramSecretAssociationSpec @go(Spec) - status?: #ScramSecretAssociationStatus @go(Status) -} - -// ScramSecretAssociationList contains a list of ScramSecretAssociations -#ScramSecretAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ScramSecretAssociation] @go(Items,[]ScramSecretAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_datasource_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_datasource_types_go_gen.cue deleted file mode 100644 index 482f09b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_datasource_types_go_gen.cue +++ /dev/null @@ -1,1069 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kendra/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessControlListConfigurationInitParameters: { - // Path to the AWS S3 bucket that contains the ACL files. - keyPath?: null | string @go(KeyPath,*string) -} - -#AccessControlListConfigurationObservation: { - // Path to the AWS S3 bucket that contains the ACL files. - keyPath?: null | string @go(KeyPath,*string) -} - -#AccessControlListConfigurationParameters: { - // Path to the AWS S3 bucket that contains the ACL files. - // +kubebuilder:validation:Optional - keyPath?: null | string @go(KeyPath,*string) -} - -#AuthenticationConfigurationInitParameters: { - // The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials. The list includes the name and port number of the website host. Detailed below. - basicAuthentication?: [...#BasicAuthenticationInitParameters] @go(BasicAuthentication,[]BasicAuthenticationInitParameters) -} - -#AuthenticationConfigurationObservation: { - // The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials. The list includes the name and port number of the website host. Detailed below. - basicAuthentication?: [...#BasicAuthenticationObservation] @go(BasicAuthentication,[]BasicAuthenticationObservation) -} - -#AuthenticationConfigurationParameters: { - // The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials. The list includes the name and port number of the website host. Detailed below. - // +kubebuilder:validation:Optional - basicAuthentication?: [...#BasicAuthenticationParameters] @go(BasicAuthentication,[]BasicAuthenticationParameters) -} - -#BasicAuthenticationInitParameters: { - // The name of the website host you want to connect to using authentication credentials. For example, the host name of https://a.example.com/page1.html is "a.example.com". - host?: null | string @go(Host,*string) - - // The port number of the website host you want to connect to using authentication credentials. For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS. - port?: null | float64 @go(Port,*float64) -} - -#BasicAuthenticationObservation: { - // Your secret ARN, which you can create in AWS Secrets Manager. You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password. - credentials?: null | string @go(Credentials,*string) - - // The name of the website host you want to connect to using authentication credentials. For example, the host name of https://a.example.com/page1.html is "a.example.com". - host?: null | string @go(Host,*string) - - // The port number of the website host you want to connect to using authentication credentials. For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS. - port?: null | float64 @go(Port,*float64) -} - -#BasicAuthenticationParameters: { - // Your secret ARN, which you can create in AWS Secrets Manager. You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/secretsmanager/v1beta1.Secret - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - credentials?: null | string @go(Credentials,*string) - - // Reference to a Secret in secretsmanager to populate credentials. - // +kubebuilder:validation:Optional - credentialsRef?: null | v1.#Reference @go(CredentialsRef,*v1.Reference) - - // Selector for a Secret in secretsmanager to populate credentials. - // +kubebuilder:validation:Optional - credentialsSelector?: null | v1.#Selector @go(CredentialsSelector,*v1.Selector) - - // The name of the website host you want to connect to using authentication credentials. For example, the host name of https://a.example.com/page1.html is "a.example.com". - // +kubebuilder:validation:Optional - host?: null | string @go(Host,*string) - - // The port number of the website host you want to connect to using authentication credentials. For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) -} - -#ConditionInitParameters: { - // The identifier of the document attribute used for the condition. For example, _source_uri could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support _document_body as an attribute key used for the condition. - conditionDocumentAttributeKey?: null | string @go(ConditionDocumentAttributeKey,*string) - - // The value used by the operator. For example, you can specify the value 'financial' for strings in the _source_uri field that partially match or contain this value. See Document Attribute Value. - conditionOnValue?: [...#ConditionOnValueInitParameters] @go(ConditionOnValue,[]ConditionOnValueInitParameters) - - // The condition operator. For example, you can use Contains to partially match a string. Valid Values: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith. - operator?: null | string @go(Operator,*string) -} - -#ConditionObservation: { - // The identifier of the document attribute used for the condition. For example, _source_uri could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support _document_body as an attribute key used for the condition. - conditionDocumentAttributeKey?: null | string @go(ConditionDocumentAttributeKey,*string) - - // The value used by the operator. For example, you can specify the value 'financial' for strings in the _source_uri field that partially match or contain this value. See Document Attribute Value. - conditionOnValue?: [...#ConditionOnValueObservation] @go(ConditionOnValue,[]ConditionOnValueObservation) - - // The condition operator. For example, you can use Contains to partially match a string. Valid Values: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith. - operator?: null | string @go(Operator,*string) -} - -#ConditionOnValueInitParameters: { - // A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, 2012-03-25T12:30:10+00:00. - dateValue?: null | string @go(DateValue,*string) - - // A long integer value. - longValue?: null | float64 @go(LongValue,*float64) - - // A list of strings. - stringListValue?: [...null | string] @go(StringListValue,[]*string) - stringValue?: null | string @go(StringValue,*string) -} - -#ConditionOnValueObservation: { - // A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, 2012-03-25T12:30:10+00:00. - dateValue?: null | string @go(DateValue,*string) - - // A long integer value. - longValue?: null | float64 @go(LongValue,*float64) - - // A list of strings. - stringListValue?: [...null | string] @go(StringListValue,[]*string) - stringValue?: null | string @go(StringValue,*string) -} - -#ConditionOnValueParameters: { - // A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, 2012-03-25T12:30:10+00:00. - // +kubebuilder:validation:Optional - dateValue?: null | string @go(DateValue,*string) - - // A long integer value. - // +kubebuilder:validation:Optional - longValue?: null | float64 @go(LongValue,*float64) - - // A list of strings. - // +kubebuilder:validation:Optional - stringListValue?: [...null | string] @go(StringListValue,[]*string) - - // +kubebuilder:validation:Optional - stringValue?: null | string @go(StringValue,*string) -} - -#ConditionParameters: { - // The identifier of the document attribute used for the condition. For example, _source_uri could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support _document_body as an attribute key used for the condition. - // +kubebuilder:validation:Optional - conditionDocumentAttributeKey?: null | string @go(ConditionDocumentAttributeKey,*string) - - // The value used by the operator. For example, you can specify the value 'financial' for strings in the _source_uri field that partially match or contain this value. See Document Attribute Value. - // +kubebuilder:validation:Optional - conditionOnValue?: [...#ConditionOnValueParameters] @go(ConditionOnValue,[]ConditionOnValueParameters) - - // The condition operator. For example, you can use Contains to partially match a string. Valid Values: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith. - // +kubebuilder:validation:Optional - operator?: null | string @go(Operator,*string) -} - -#ConfigurationInitParameters: { - // A block that provides the configuration information to connect to an Amazon S3 bucket as your data source. Detailed below. - s3Configuration?: [...#S3ConfigurationInitParameters] @go(S3Configuration,[]S3ConfigurationInitParameters) - - // A block that provides the configuration information required for Amazon Kendra Web Crawler. Detailed below. - webCrawlerConfiguration?: [...#WebCrawlerConfigurationInitParameters] @go(WebCrawlerConfiguration,[]WebCrawlerConfigurationInitParameters) -} - -#ConfigurationObservation: { - // A block that provides the configuration information to connect to an Amazon S3 bucket as your data source. Detailed below. - s3Configuration?: [...#S3ConfigurationObservation] @go(S3Configuration,[]S3ConfigurationObservation) - - // A block that provides the configuration information required for Amazon Kendra Web Crawler. Detailed below. - webCrawlerConfiguration?: [...#WebCrawlerConfigurationObservation] @go(WebCrawlerConfiguration,[]WebCrawlerConfigurationObservation) -} - -#ConfigurationParameters: { - // A block that provides the configuration information to connect to an Amazon S3 bucket as your data source. Detailed below. - // +kubebuilder:validation:Optional - s3Configuration?: [...#S3ConfigurationParameters] @go(S3Configuration,[]S3ConfigurationParameters) - - // A block that provides the configuration information required for Amazon Kendra Web Crawler. Detailed below. - // +kubebuilder:validation:Optional - webCrawlerConfiguration?: [...#WebCrawlerConfigurationParameters] @go(WebCrawlerConfiguration,[]WebCrawlerConfigurationParameters) -} - -#CustomDocumentEnrichmentConfigurationInitParameters: { - // Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra. Minimum number of 0 items. Maximum number of 100 items. Detailed below. - inlineConfigurations?: [...#InlineConfigurationsInitParameters] @go(InlineConfigurations,[]InlineConfigurationsInitParameters) - - // A block that specifies the configuration information for invoking a Lambda function in AWS Lambda on the structured documents with their metadata and text extracted. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation. Detailed below. - postExtractionHookConfiguration?: [...#PostExtractionHookConfigurationInitParameters] @go(PostExtractionHookConfiguration,[]PostExtractionHookConfigurationInitParameters) - - // Configuration information for invoking a Lambda function in AWS Lambda on the original or raw documents before extracting their metadata and text. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation. Detailed below. - preExtractionHookConfiguration?: [...#PreExtractionHookConfigurationInitParameters] @go(PreExtractionHookConfiguration,[]PreExtractionHookConfigurationInitParameters) - - // The Amazon Resource Name (ARN) of a role with permission to run pre_extraction_hook_configuration and post_extraction_hook_configuration for altering document metadata and content during the document ingestion process. For more information, see IAM roles for Amazon Kendra. - roleArn?: null | string @go(RoleArn,*string) -} - -#CustomDocumentEnrichmentConfigurationObservation: { - // Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra. Minimum number of 0 items. Maximum number of 100 items. Detailed below. - inlineConfigurations?: [...#InlineConfigurationsObservation] @go(InlineConfigurations,[]InlineConfigurationsObservation) - - // A block that specifies the configuration information for invoking a Lambda function in AWS Lambda on the structured documents with their metadata and text extracted. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation. Detailed below. - postExtractionHookConfiguration?: [...#PostExtractionHookConfigurationObservation] @go(PostExtractionHookConfiguration,[]PostExtractionHookConfigurationObservation) - - // Configuration information for invoking a Lambda function in AWS Lambda on the original or raw documents before extracting their metadata and text. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation. Detailed below. - preExtractionHookConfiguration?: [...#PreExtractionHookConfigurationObservation] @go(PreExtractionHookConfiguration,[]PreExtractionHookConfigurationObservation) - - // The Amazon Resource Name (ARN) of a role with permission to run pre_extraction_hook_configuration and post_extraction_hook_configuration for altering document metadata and content during the document ingestion process. For more information, see IAM roles for Amazon Kendra. - roleArn?: null | string @go(RoleArn,*string) -} - -#CustomDocumentEnrichmentConfigurationParameters: { - // Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra. Minimum number of 0 items. Maximum number of 100 items. Detailed below. - // +kubebuilder:validation:Optional - inlineConfigurations?: [...#InlineConfigurationsParameters] @go(InlineConfigurations,[]InlineConfigurationsParameters) - - // A block that specifies the configuration information for invoking a Lambda function in AWS Lambda on the structured documents with their metadata and text extracted. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation. Detailed below. - // +kubebuilder:validation:Optional - postExtractionHookConfiguration?: [...#PostExtractionHookConfigurationParameters] @go(PostExtractionHookConfiguration,[]PostExtractionHookConfigurationParameters) - - // Configuration information for invoking a Lambda function in AWS Lambda on the original or raw documents before extracting their metadata and text. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation. Detailed below. - // +kubebuilder:validation:Optional - preExtractionHookConfiguration?: [...#PreExtractionHookConfigurationParameters] @go(PreExtractionHookConfiguration,[]PreExtractionHookConfigurationParameters) - - // The Amazon Resource Name (ARN) of a role with permission to run pre_extraction_hook_configuration and post_extraction_hook_configuration for altering document metadata and content during the document ingestion process. For more information, see IAM roles for Amazon Kendra. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#DataSourceInitParameters: { - // A block with the configuration information to connect to your Data Source repository. You can't specify the configuration argument when the type parameter is set to CUSTOM. Detailed below. - configuration?: [...#ConfigurationInitParameters] @go(Configuration,[]ConfigurationInitParameters) - - // A block with the configuration information for altering document metadata and content during the document ingestion process. For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process. Detailed below. - customDocumentEnrichmentConfiguration?: [...#CustomDocumentEnrichmentConfigurationInitParameters] @go(CustomDocumentEnrichmentConfiguration,[]CustomDocumentEnrichmentConfigurationInitParameters) - - // A description for the Data Source connector. - description?: null | string @go(Description,*string) - - // The code for a language. This allows you to support a language for all documents when creating the Data Source connector. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English. - languageCode?: null | string @go(LanguageCode,*string) - - // A name for your Data Source connector. - name?: null | string @go(Name,*string) - - // Sets the frequency for Amazon Kendra to check the documents in your Data Source repository and update the index. If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the StartDataSourceSyncJob API to update the index. - schedule?: null | string @go(Schedule,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of data source repository. For an updated list of values, refer to Valid Values for Type. - type?: null | string @go(Type,*string) -} - -#DataSourceObservation: { - // ARN of the Data Source. - arn?: null | string @go(Arn,*string) - - // A block with the configuration information to connect to your Data Source repository. You can't specify the configuration argument when the type parameter is set to CUSTOM. Detailed below. - configuration?: [...#ConfigurationObservation] @go(Configuration,[]ConfigurationObservation) - - // The Unix timestamp of when the Data Source was created. - createdAt?: null | string @go(CreatedAt,*string) - - // A block with the configuration information for altering document metadata and content during the document ingestion process. For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process. Detailed below. - customDocumentEnrichmentConfiguration?: [...#CustomDocumentEnrichmentConfigurationObservation] @go(CustomDocumentEnrichmentConfiguration,[]CustomDocumentEnrichmentConfigurationObservation) - - // The unique identifiers of the Data Source. - dataSourceId?: null | string @go(DataSourceID,*string) - - // A description for the Data Source connector. - description?: null | string @go(Description,*string) - - // When the Status field value is FAILED, the ErrorMessage field contains a description of the error that caused the Data Source to fail. - errorMessage?: null | string @go(ErrorMessage,*string) - - // The unique identifiers of the Data Source and index separated by a slash (/). - id?: null | string @go(ID,*string) - - // The identifier of the index for your Amazon Kendra data_source. - indexId?: null | string @go(IndexID,*string) - - // The code for a language. This allows you to support a language for all documents when creating the Data Source connector. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English. - languageCode?: null | string @go(LanguageCode,*string) - - // A name for your Data Source connector. - name?: null | string @go(Name,*string) - - // The Amazon Resource Name (ARN) of a role with permission to access the data source connector. For more information, see IAM roles for Amazon Kendra. You can't specify the role_arn parameter when the type parameter is set to CUSTOM. The role_arn parameter is required for all other data sources. - roleArn?: null | string @go(RoleArn,*string) - - // Sets the frequency for Amazon Kendra to check the documents in your Data Source repository and update the index. If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the StartDataSourceSyncJob API to update the index. - schedule?: null | string @go(Schedule,*string) - - // The current status of the Data Source. When the status is ACTIVE the Data Source is ready to use. When the status is FAILED, the error_message field contains the reason that the Data Source failed. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The type of data source repository. For an updated list of values, refer to Valid Values for Type. - type?: null | string @go(Type,*string) - - // The Unix timestamp of when the Data Source was last updated. - updatedAt?: null | string @go(UpdatedAt,*string) -} - -#DataSourceParameters: { - // A block with the configuration information to connect to your Data Source repository. You can't specify the configuration argument when the type parameter is set to CUSTOM. Detailed below. - // +kubebuilder:validation:Optional - configuration?: [...#ConfigurationParameters] @go(Configuration,[]ConfigurationParameters) - - // A block with the configuration information for altering document metadata and content during the document ingestion process. For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process. Detailed below. - // +kubebuilder:validation:Optional - customDocumentEnrichmentConfiguration?: [...#CustomDocumentEnrichmentConfigurationParameters] @go(CustomDocumentEnrichmentConfiguration,[]CustomDocumentEnrichmentConfigurationParameters) - - // A description for the Data Source connector. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The identifier of the index for your Amazon Kendra data_source. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kendra/v1beta1.Index - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - indexId?: null | string @go(IndexID,*string) - - // Reference to a Index in kendra to populate indexId. - // +kubebuilder:validation:Optional - indexIdRef?: null | v1.#Reference @go(IndexIDRef,*v1.Reference) - - // Selector for a Index in kendra to populate indexId. - // +kubebuilder:validation:Optional - indexIdSelector?: null | v1.#Selector @go(IndexIDSelector,*v1.Selector) - - // The code for a language. This allows you to support a language for all documents when creating the Data Source connector. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English. - // +kubebuilder:validation:Optional - languageCode?: null | string @go(LanguageCode,*string) - - // A name for your Data Source connector. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of a role with permission to access the data source connector. For more information, see IAM roles for Amazon Kendra. You can't specify the role_arn parameter when the type parameter is set to CUSTOM. The role_arn parameter is required for all other data sources. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Sets the frequency for Amazon Kendra to check the documents in your Data Source repository and update the index. If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the StartDataSourceSyncJob API to update the index. - // +kubebuilder:validation:Optional - schedule?: null | string @go(Schedule,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of data source repository. For an updated list of values, refer to Valid Values for Type. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#DocumentsMetadataConfigurationInitParameters: { - // A prefix used to filter metadata configuration files in the AWS S3 bucket. The S3 bucket might contain multiple metadata files. Use s3_prefix to include only the desired metadata files. - s3Prefix?: null | string @go(S3Prefix,*string) -} - -#DocumentsMetadataConfigurationObservation: { - // A prefix used to filter metadata configuration files in the AWS S3 bucket. The S3 bucket might contain multiple metadata files. Use s3_prefix to include only the desired metadata files. - s3Prefix?: null | string @go(S3Prefix,*string) -} - -#DocumentsMetadataConfigurationParameters: { - // A prefix used to filter metadata configuration files in the AWS S3 bucket. The S3 bucket might contain multiple metadata files. Use s3_prefix to include only the desired metadata files. - // +kubebuilder:validation:Optional - s3Prefix?: null | string @go(S3Prefix,*string) -} - -#InlineConfigurationsInitParameters: { - // Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Kendra. See Document Attribute Condition. - condition?: [...#ConditionInitParameters] @go(Condition,[]ConditionInitParameters) - - // TRUE to delete content if the condition used for the target attribute is met. - documentContentDeletion?: null | bool @go(DocumentContentDeletion,*bool) - - // Configuration of the target document attribute or metadata field when ingesting documents into Amazon Kendra. You can also include a value. Detailed below. - target?: [...#TargetInitParameters] @go(Target,[]TargetInitParameters) -} - -#InlineConfigurationsObservation: { - // Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Kendra. See Document Attribute Condition. - condition?: [...#ConditionObservation] @go(Condition,[]ConditionObservation) - - // TRUE to delete content if the condition used for the target attribute is met. - documentContentDeletion?: null | bool @go(DocumentContentDeletion,*bool) - - // Configuration of the target document attribute or metadata field when ingesting documents into Amazon Kendra. You can also include a value. Detailed below. - target?: [...#TargetObservation] @go(Target,[]TargetObservation) -} - -#InlineConfigurationsParameters: { - // Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Kendra. See Document Attribute Condition. - // +kubebuilder:validation:Optional - condition?: [...#ConditionParameters] @go(Condition,[]ConditionParameters) - - // TRUE to delete content if the condition used for the target attribute is met. - // +kubebuilder:validation:Optional - documentContentDeletion?: null | bool @go(DocumentContentDeletion,*bool) - - // Configuration of the target document attribute or metadata field when ingesting documents into Amazon Kendra. You can also include a value. Detailed below. - // +kubebuilder:validation:Optional - target?: [...#TargetParameters] @go(Target,[]TargetParameters) -} - -#InvocationConditionConditionOnValueInitParameters: { - // A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, 2012-03-25T12:30:10+00:00. - dateValue?: null | string @go(DateValue,*string) - - // A long integer value. - longValue?: null | float64 @go(LongValue,*float64) - - // A list of strings. - stringListValue?: [...null | string] @go(StringListValue,[]*string) - stringValue?: null | string @go(StringValue,*string) -} - -#InvocationConditionConditionOnValueObservation: { - // A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, 2012-03-25T12:30:10+00:00. - dateValue?: null | string @go(DateValue,*string) - - // A long integer value. - longValue?: null | float64 @go(LongValue,*float64) - - // A list of strings. - stringListValue?: [...null | string] @go(StringListValue,[]*string) - stringValue?: null | string @go(StringValue,*string) -} - -#InvocationConditionConditionOnValueParameters: { - // A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, 2012-03-25T12:30:10+00:00. - // +kubebuilder:validation:Optional - dateValue?: null | string @go(DateValue,*string) - - // A long integer value. - // +kubebuilder:validation:Optional - longValue?: null | float64 @go(LongValue,*float64) - - // A list of strings. - // +kubebuilder:validation:Optional - stringListValue?: [...null | string] @go(StringListValue,[]*string) - - // +kubebuilder:validation:Optional - stringValue?: null | string @go(StringValue,*string) -} - -#InvocationConditionInitParameters: { - // The identifier of the document attribute used for the condition. For example, _source_uri could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support _document_body as an attribute key used for the condition. - conditionDocumentAttributeKey?: null | string @go(ConditionDocumentAttributeKey,*string) - - // The value used by the operator. For example, you can specify the value 'financial' for strings in the _source_uri field that partially match or contain this value. See Document Attribute Value. - conditionOnValue?: [...#InvocationConditionConditionOnValueInitParameters] @go(ConditionOnValue,[]InvocationConditionConditionOnValueInitParameters) - - // The condition operator. For example, you can use Contains to partially match a string. Valid Values: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith. - operator?: null | string @go(Operator,*string) -} - -#InvocationConditionObservation: { - // The identifier of the document attribute used for the condition. For example, _source_uri could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support _document_body as an attribute key used for the condition. - conditionDocumentAttributeKey?: null | string @go(ConditionDocumentAttributeKey,*string) - - // The value used by the operator. For example, you can specify the value 'financial' for strings in the _source_uri field that partially match or contain this value. See Document Attribute Value. - conditionOnValue?: [...#InvocationConditionConditionOnValueObservation] @go(ConditionOnValue,[]InvocationConditionConditionOnValueObservation) - - // The condition operator. For example, you can use Contains to partially match a string. Valid Values: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith. - operator?: null | string @go(Operator,*string) -} - -#InvocationConditionParameters: { - // The identifier of the document attribute used for the condition. For example, _source_uri could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support _document_body as an attribute key used for the condition. - // +kubebuilder:validation:Optional - conditionDocumentAttributeKey?: null | string @go(ConditionDocumentAttributeKey,*string) - - // The value used by the operator. For example, you can specify the value 'financial' for strings in the _source_uri field that partially match or contain this value. See Document Attribute Value. - // +kubebuilder:validation:Optional - conditionOnValue?: [...#InvocationConditionConditionOnValueParameters] @go(ConditionOnValue,[]InvocationConditionConditionOnValueParameters) - - // The condition operator. For example, you can use Contains to partially match a string. Valid Values: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith. - // +kubebuilder:validation:Optional - operator?: null | string @go(Operator,*string) -} - -#PostExtractionHookConfigurationInitParameters: { - // A block that specifies the condition used for when a Lambda function should be invoked. For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time. See Document Attribute Condition. - invocationCondition?: [...#InvocationConditionInitParameters] @go(InvocationCondition,[]InvocationConditionInitParameters) - - // The Amazon Resource Name (ARN) of a Lambda Function that can manipulate your document metadata fields or attributes and content. - lambdaArn?: null | string @go(LambdaArn,*string) - - // Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions. - s3Bucket?: null | string @go(S3Bucket,*string) -} - -#PostExtractionHookConfigurationObservation: { - // A block that specifies the condition used for when a Lambda function should be invoked. For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time. See Document Attribute Condition. - invocationCondition?: [...#InvocationConditionObservation] @go(InvocationCondition,[]InvocationConditionObservation) - - // The Amazon Resource Name (ARN) of a Lambda Function that can manipulate your document metadata fields or attributes and content. - lambdaArn?: null | string @go(LambdaArn,*string) - - // Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions. - s3Bucket?: null | string @go(S3Bucket,*string) -} - -#PostExtractionHookConfigurationParameters: { - // A block that specifies the condition used for when a Lambda function should be invoked. For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time. See Document Attribute Condition. - // +kubebuilder:validation:Optional - invocationCondition?: [...#InvocationConditionParameters] @go(InvocationCondition,[]InvocationConditionParameters) - - // The Amazon Resource Name (ARN) of a Lambda Function that can manipulate your document metadata fields or attributes and content. - // +kubebuilder:validation:Optional - lambdaArn?: null | string @go(LambdaArn,*string) - - // Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions. - // +kubebuilder:validation:Optional - s3Bucket?: null | string @go(S3Bucket,*string) -} - -#PreExtractionHookConfigurationInitParameters: { - // A block that specifies the condition used for when a Lambda function should be invoked. For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time. See Document Attribute Condition. - invocationCondition?: [...#PreExtractionHookConfigurationInvocationConditionInitParameters] @go(InvocationCondition,[]PreExtractionHookConfigurationInvocationConditionInitParameters) - - // The Amazon Resource Name (ARN) of a Lambda Function that can manipulate your document metadata fields or attributes and content. - lambdaArn?: null | string @go(LambdaArn,*string) - - // Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions. - s3Bucket?: null | string @go(S3Bucket,*string) -} - -#PreExtractionHookConfigurationInvocationConditionConditionOnValueInitParameters: { - // A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, 2012-03-25T12:30:10+00:00. - dateValue?: null | string @go(DateValue,*string) - - // A long integer value. - longValue?: null | float64 @go(LongValue,*float64) - - // A list of strings. - stringListValue?: [...null | string] @go(StringListValue,[]*string) - stringValue?: null | string @go(StringValue,*string) -} - -#PreExtractionHookConfigurationInvocationConditionConditionOnValueObservation: { - // A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, 2012-03-25T12:30:10+00:00. - dateValue?: null | string @go(DateValue,*string) - - // A long integer value. - longValue?: null | float64 @go(LongValue,*float64) - - // A list of strings. - stringListValue?: [...null | string] @go(StringListValue,[]*string) - stringValue?: null | string @go(StringValue,*string) -} - -#PreExtractionHookConfigurationInvocationConditionConditionOnValueParameters: { - // A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, 2012-03-25T12:30:10+00:00. - // +kubebuilder:validation:Optional - dateValue?: null | string @go(DateValue,*string) - - // A long integer value. - // +kubebuilder:validation:Optional - longValue?: null | float64 @go(LongValue,*float64) - - // A list of strings. - // +kubebuilder:validation:Optional - stringListValue?: [...null | string] @go(StringListValue,[]*string) - - // +kubebuilder:validation:Optional - stringValue?: null | string @go(StringValue,*string) -} - -#PreExtractionHookConfigurationInvocationConditionInitParameters: { - // The identifier of the document attribute used for the condition. For example, _source_uri could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support _document_body as an attribute key used for the condition. - conditionDocumentAttributeKey?: null | string @go(ConditionDocumentAttributeKey,*string) - - // The value used by the operator. For example, you can specify the value 'financial' for strings in the _source_uri field that partially match or contain this value. See Document Attribute Value. - conditionOnValue?: [...#PreExtractionHookConfigurationInvocationConditionConditionOnValueInitParameters] @go(ConditionOnValue,[]PreExtractionHookConfigurationInvocationConditionConditionOnValueInitParameters) - - // The condition operator. For example, you can use Contains to partially match a string. Valid Values: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith. - operator?: null | string @go(Operator,*string) -} - -#PreExtractionHookConfigurationInvocationConditionObservation: { - // The identifier of the document attribute used for the condition. For example, _source_uri could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support _document_body as an attribute key used for the condition. - conditionDocumentAttributeKey?: null | string @go(ConditionDocumentAttributeKey,*string) - - // The value used by the operator. For example, you can specify the value 'financial' for strings in the _source_uri field that partially match or contain this value. See Document Attribute Value. - conditionOnValue?: [...#PreExtractionHookConfigurationInvocationConditionConditionOnValueObservation] @go(ConditionOnValue,[]PreExtractionHookConfigurationInvocationConditionConditionOnValueObservation) - - // The condition operator. For example, you can use Contains to partially match a string. Valid Values: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith. - operator?: null | string @go(Operator,*string) -} - -#PreExtractionHookConfigurationInvocationConditionParameters: { - // The identifier of the document attribute used for the condition. For example, _source_uri could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support _document_body as an attribute key used for the condition. - // +kubebuilder:validation:Optional - conditionDocumentAttributeKey?: null | string @go(ConditionDocumentAttributeKey,*string) - - // The value used by the operator. For example, you can specify the value 'financial' for strings in the _source_uri field that partially match or contain this value. See Document Attribute Value. - // +kubebuilder:validation:Optional - conditionOnValue?: [...#PreExtractionHookConfigurationInvocationConditionConditionOnValueParameters] @go(ConditionOnValue,[]PreExtractionHookConfigurationInvocationConditionConditionOnValueParameters) - - // The condition operator. For example, you can use Contains to partially match a string. Valid Values: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith. - // +kubebuilder:validation:Optional - operator?: null | string @go(Operator,*string) -} - -#PreExtractionHookConfigurationObservation: { - // A block that specifies the condition used for when a Lambda function should be invoked. For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time. See Document Attribute Condition. - invocationCondition?: [...#PreExtractionHookConfigurationInvocationConditionObservation] @go(InvocationCondition,[]PreExtractionHookConfigurationInvocationConditionObservation) - - // The Amazon Resource Name (ARN) of a Lambda Function that can manipulate your document metadata fields or attributes and content. - lambdaArn?: null | string @go(LambdaArn,*string) - - // Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions. - s3Bucket?: null | string @go(S3Bucket,*string) -} - -#PreExtractionHookConfigurationParameters: { - // A block that specifies the condition used for when a Lambda function should be invoked. For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time. See Document Attribute Condition. - // +kubebuilder:validation:Optional - invocationCondition?: [...#PreExtractionHookConfigurationInvocationConditionParameters] @go(InvocationCondition,[]PreExtractionHookConfigurationInvocationConditionParameters) - - // The Amazon Resource Name (ARN) of a Lambda Function that can manipulate your document metadata fields or attributes and content. - // +kubebuilder:validation:Optional - lambdaArn?: null | string @go(LambdaArn,*string) - - // Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions. - // +kubebuilder:validation:Optional - s3Bucket?: null | string @go(S3Bucket,*string) -} - -#ProxyConfigurationInitParameters: { - // The name of the website host you want to connect to using authentication credentials. For example, the host name of https://a.example.com/page1.html is "a.example.com". - host?: null | string @go(Host,*string) - - // The port number of the website host you want to connect to using authentication credentials. For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS. - port?: null | float64 @go(Port,*float64) -} - -#ProxyConfigurationObservation: { - // Your secret ARN, which you can create in AWS Secrets Manager. You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password. - credentials?: null | string @go(Credentials,*string) - - // The name of the website host you want to connect to using authentication credentials. For example, the host name of https://a.example.com/page1.html is "a.example.com". - host?: null | string @go(Host,*string) - - // The port number of the website host you want to connect to using authentication credentials. For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS. - port?: null | float64 @go(Port,*float64) -} - -#ProxyConfigurationParameters: { - // Your secret ARN, which you can create in AWS Secrets Manager. You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/secretsmanager/v1beta1.Secret - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - credentials?: null | string @go(Credentials,*string) - - // Reference to a Secret in secretsmanager to populate credentials. - // +kubebuilder:validation:Optional - credentialsRef?: null | v1.#Reference @go(CredentialsRef,*v1.Reference) - - // Selector for a Secret in secretsmanager to populate credentials. - // +kubebuilder:validation:Optional - credentialsSelector?: null | v1.#Selector @go(CredentialsSelector,*v1.Selector) - - // The name of the website host you want to connect to using authentication credentials. For example, the host name of https://a.example.com/page1.html is "a.example.com". - // +kubebuilder:validation:Optional - host?: null | string @go(Host,*string) - - // The port number of the website host you want to connect to using authentication credentials. For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) -} - -#S3ConfigurationInitParameters: { - // A block that provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see Access control for S3 data sources. Detailed below. - accessControlListConfiguration?: [...#AccessControlListConfigurationInitParameters] @go(AccessControlListConfiguration,[]AccessControlListConfigurationInitParameters) - - // A block that defines the Document metadata files that contain information such as the document access control information, source URI, document author, and custom attributes. Each metadata file contains metadata about a single document. Detailed below. - documentsMetadataConfiguration?: [...#DocumentsMetadataConfigurationInitParameters] @go(DocumentsMetadataConfiguration,[]DocumentsMetadataConfigurationInitParameters) - - // A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed. Refer to Exclusion Patterns for more examples. - exclusionPatterns?: [...null | string] @go(ExclusionPatterns,[]*string) - - // A list of glob patterns for documents that should be indexed. If a document that matches an inclusion pattern also matches an exclusion pattern, the document is not indexed. Refer to Inclusion Patterns for more examples. - inclusionPatterns?: [...null | string] @go(InclusionPatterns,[]*string) - - // A list of S3 prefixes for the documents that should be included in the index. - inclusionPrefixes?: [...null | string] @go(InclusionPrefixes,[]*string) -} - -#S3ConfigurationObservation: { - // A block that provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see Access control for S3 data sources. Detailed below. - accessControlListConfiguration?: [...#AccessControlListConfigurationObservation] @go(AccessControlListConfiguration,[]AccessControlListConfigurationObservation) - - // The name of the bucket that contains the documents. - bucketName?: null | string @go(BucketName,*string) - - // A block that defines the Document metadata files that contain information such as the document access control information, source URI, document author, and custom attributes. Each metadata file contains metadata about a single document. Detailed below. - documentsMetadataConfiguration?: [...#DocumentsMetadataConfigurationObservation] @go(DocumentsMetadataConfiguration,[]DocumentsMetadataConfigurationObservation) - - // A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed. Refer to Exclusion Patterns for more examples. - exclusionPatterns?: [...null | string] @go(ExclusionPatterns,[]*string) - - // A list of glob patterns for documents that should be indexed. If a document that matches an inclusion pattern also matches an exclusion pattern, the document is not indexed. Refer to Inclusion Patterns for more examples. - inclusionPatterns?: [...null | string] @go(InclusionPatterns,[]*string) - - // A list of S3 prefixes for the documents that should be included in the index. - inclusionPrefixes?: [...null | string] @go(InclusionPrefixes,[]*string) -} - -#S3ConfigurationParameters: { - // A block that provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see Access control for S3 data sources. Detailed below. - // +kubebuilder:validation:Optional - accessControlListConfiguration?: [...#AccessControlListConfigurationParameters] @go(AccessControlListConfiguration,[]AccessControlListConfigurationParameters) - - // The name of the bucket that contains the documents. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Reference to a Bucket in s3 to populate bucketName. - // +kubebuilder:validation:Optional - bucketNameRef?: null | v1.#Reference @go(BucketNameRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucketName. - // +kubebuilder:validation:Optional - bucketNameSelector?: null | v1.#Selector @go(BucketNameSelector,*v1.Selector) - - // A block that defines the Document metadata files that contain information such as the document access control information, source URI, document author, and custom attributes. Each metadata file contains metadata about a single document. Detailed below. - // +kubebuilder:validation:Optional - documentsMetadataConfiguration?: [...#DocumentsMetadataConfigurationParameters] @go(DocumentsMetadataConfiguration,[]DocumentsMetadataConfigurationParameters) - - // A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed. Refer to Exclusion Patterns for more examples. - // +kubebuilder:validation:Optional - exclusionPatterns?: [...null | string] @go(ExclusionPatterns,[]*string) - - // A list of glob patterns for documents that should be indexed. If a document that matches an inclusion pattern also matches an exclusion pattern, the document is not indexed. Refer to Inclusion Patterns for more examples. - // +kubebuilder:validation:Optional - inclusionPatterns?: [...null | string] @go(InclusionPatterns,[]*string) - - // A list of S3 prefixes for the documents that should be included in the index. - // +kubebuilder:validation:Optional - inclusionPrefixes?: [...null | string] @go(InclusionPrefixes,[]*string) -} - -#SeedURLConfigurationInitParameters: { - // The list of seed or starting point URLs of the websites you want to crawl. The list can include a maximum of 100 seed URLs. Array Members: Minimum number of 0 items. Maximum number of 100 items. Length Constraints: Minimum length of 1. Maximum length of 2048. - seedUrls?: [...null | string] @go(SeedUrls,[]*string) - - // The default mode is set to HOST_ONLY. You can choose one of the following modes: - webCrawlerMode?: null | string @go(WebCrawlerMode,*string) -} - -#SeedURLConfigurationObservation: { - // The list of seed or starting point URLs of the websites you want to crawl. The list can include a maximum of 100 seed URLs. Array Members: Minimum number of 0 items. Maximum number of 100 items. Length Constraints: Minimum length of 1. Maximum length of 2048. - seedUrls?: [...null | string] @go(SeedUrls,[]*string) - - // The default mode is set to HOST_ONLY. You can choose one of the following modes: - webCrawlerMode?: null | string @go(WebCrawlerMode,*string) -} - -#SeedURLConfigurationParameters: { - // The list of seed or starting point URLs of the websites you want to crawl. The list can include a maximum of 100 seed URLs. Array Members: Minimum number of 0 items. Maximum number of 100 items. Length Constraints: Minimum length of 1. Maximum length of 2048. - // +kubebuilder:validation:Optional - seedUrls: [...null | string] @go(SeedUrls,[]*string) - - // The default mode is set to HOST_ONLY. You can choose one of the following modes: - // +kubebuilder:validation:Optional - webCrawlerMode?: null | string @go(WebCrawlerMode,*string) -} - -#SiteMapsConfigurationInitParameters: { - // The list of sitemap URLs of the websites you want to crawl. The list can include a maximum of 3 sitemap URLs. - siteMaps?: [...null | string] @go(SiteMaps,[]*string) -} - -#SiteMapsConfigurationObservation: { - // The list of sitemap URLs of the websites you want to crawl. The list can include a maximum of 3 sitemap URLs. - siteMaps?: [...null | string] @go(SiteMaps,[]*string) -} - -#SiteMapsConfigurationParameters: { - // The list of sitemap URLs of the websites you want to crawl. The list can include a maximum of 3 sitemap URLs. - // +kubebuilder:validation:Optional - siteMaps: [...null | string] @go(SiteMaps,[]*string) -} - -#TargetDocumentAttributeValueInitParameters: { - // A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, 2012-03-25T12:30:10+00:00. - dateValue?: null | string @go(DateValue,*string) - - // A long integer value. - longValue?: null | float64 @go(LongValue,*float64) - - // A list of strings. - stringListValue?: [...null | string] @go(StringListValue,[]*string) - stringValue?: null | string @go(StringValue,*string) -} - -#TargetDocumentAttributeValueObservation: { - // A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, 2012-03-25T12:30:10+00:00. - dateValue?: null | string @go(DateValue,*string) - - // A long integer value. - longValue?: null | float64 @go(LongValue,*float64) - - // A list of strings. - stringListValue?: [...null | string] @go(StringListValue,[]*string) - stringValue?: null | string @go(StringValue,*string) -} - -#TargetDocumentAttributeValueParameters: { - // A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, 2012-03-25T12:30:10+00:00. - // +kubebuilder:validation:Optional - dateValue?: null | string @go(DateValue,*string) - - // A long integer value. - // +kubebuilder:validation:Optional - longValue?: null | float64 @go(LongValue,*float64) - - // A list of strings. - // +kubebuilder:validation:Optional - stringListValue?: [...null | string] @go(StringListValue,[]*string) - - // +kubebuilder:validation:Optional - stringValue?: null | string @go(StringValue,*string) -} - -#TargetInitParameters: { - // The identifier of the target document attribute or metadata field. For example, 'Department' could be an identifier for the target attribute or metadata field that includes the department names associated with the documents. - targetDocumentAttributeKey?: null | string @go(TargetDocumentAttributeKey,*string) - - // The target value you want to create for the target attribute. For example, 'Finance' could be the target value for the target attribute key 'Department'. - // See Document Attribute Value. - targetDocumentAttributeValue?: [...#TargetDocumentAttributeValueInitParameters] @go(TargetDocumentAttributeValue,[]TargetDocumentAttributeValueInitParameters) - - // TRUE to delete the existing target value for your specified target attribute key. You cannot create a target value and set this to TRUE. To create a target value (TargetDocumentAttributeValue), set this to FALSE. - targetDocumentAttributeValueDeletion?: null | bool @go(TargetDocumentAttributeValueDeletion,*bool) -} - -#TargetObservation: { - // The identifier of the target document attribute or metadata field. For example, 'Department' could be an identifier for the target attribute or metadata field that includes the department names associated with the documents. - targetDocumentAttributeKey?: null | string @go(TargetDocumentAttributeKey,*string) - - // The target value you want to create for the target attribute. For example, 'Finance' could be the target value for the target attribute key 'Department'. - // See Document Attribute Value. - targetDocumentAttributeValue?: [...#TargetDocumentAttributeValueObservation] @go(TargetDocumentAttributeValue,[]TargetDocumentAttributeValueObservation) - - // TRUE to delete the existing target value for your specified target attribute key. You cannot create a target value and set this to TRUE. To create a target value (TargetDocumentAttributeValue), set this to FALSE. - targetDocumentAttributeValueDeletion?: null | bool @go(TargetDocumentAttributeValueDeletion,*bool) -} - -#TargetParameters: { - // The identifier of the target document attribute or metadata field. For example, 'Department' could be an identifier for the target attribute or metadata field that includes the department names associated with the documents. - // +kubebuilder:validation:Optional - targetDocumentAttributeKey?: null | string @go(TargetDocumentAttributeKey,*string) - - // The target value you want to create for the target attribute. For example, 'Finance' could be the target value for the target attribute key 'Department'. - // See Document Attribute Value. - // +kubebuilder:validation:Optional - targetDocumentAttributeValue?: [...#TargetDocumentAttributeValueParameters] @go(TargetDocumentAttributeValue,[]TargetDocumentAttributeValueParameters) - - // TRUE to delete the existing target value for your specified target attribute key. You cannot create a target value and set this to TRUE. To create a target value (TargetDocumentAttributeValue), set this to FALSE. - // +kubebuilder:validation:Optional - targetDocumentAttributeValueDeletion?: null | bool @go(TargetDocumentAttributeValueDeletion,*bool) -} - -#UrlsInitParameters: { - // A block that specifies the configuration of the seed or starting point URLs of the websites you want to crawl. You can choose to crawl only the website host names, or the website host names with subdomains, or the website host names with subdomains and other domains that the webpages link to. You can list up to 100 seed URLs. Detailed below. - seedUrlConfiguration?: [...#SeedURLConfigurationInitParameters] @go(SeedURLConfiguration,[]SeedURLConfigurationInitParameters) - - // A block that specifies the configuration of the sitemap URLs of the websites you want to crawl. Only URLs belonging to the same website host names are crawled. You can list up to 3 sitemap URLs. Detailed below. - siteMapsConfiguration?: [...#SiteMapsConfigurationInitParameters] @go(SiteMapsConfiguration,[]SiteMapsConfigurationInitParameters) -} - -#UrlsObservation: { - // A block that specifies the configuration of the seed or starting point URLs of the websites you want to crawl. You can choose to crawl only the website host names, or the website host names with subdomains, or the website host names with subdomains and other domains that the webpages link to. You can list up to 100 seed URLs. Detailed below. - seedUrlConfiguration?: [...#SeedURLConfigurationObservation] @go(SeedURLConfiguration,[]SeedURLConfigurationObservation) - - // A block that specifies the configuration of the sitemap URLs of the websites you want to crawl. Only URLs belonging to the same website host names are crawled. You can list up to 3 sitemap URLs. Detailed below. - siteMapsConfiguration?: [...#SiteMapsConfigurationObservation] @go(SiteMapsConfiguration,[]SiteMapsConfigurationObservation) -} - -#UrlsParameters: { - // A block that specifies the configuration of the seed or starting point URLs of the websites you want to crawl. You can choose to crawl only the website host names, or the website host names with subdomains, or the website host names with subdomains and other domains that the webpages link to. You can list up to 100 seed URLs. Detailed below. - // +kubebuilder:validation:Optional - seedUrlConfiguration?: [...#SeedURLConfigurationParameters] @go(SeedURLConfiguration,[]SeedURLConfigurationParameters) - - // A block that specifies the configuration of the sitemap URLs of the websites you want to crawl. Only URLs belonging to the same website host names are crawled. You can list up to 3 sitemap URLs. Detailed below. - // +kubebuilder:validation:Optional - siteMapsConfiguration?: [...#SiteMapsConfigurationParameters] @go(SiteMapsConfiguration,[]SiteMapsConfigurationParameters) -} - -#WebCrawlerConfigurationInitParameters: { - // A block with the configuration information required to connect to websites using authentication. You can connect to websites using basic authentication of user name and password. You use a secret in AWS Secrets Manager to store your authentication credentials. You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS. Detailed below. - authenticationConfiguration?: [...#AuthenticationConfigurationInitParameters] @go(AuthenticationConfiguration,[]AuthenticationConfigurationInitParameters) - - // Specifies the number of levels in a website that you want to crawl. The first level begins from the website seed or starting point URL. For example, if a website has 3 levels – index level (i.e. seed in this example), sections level, and subsections level – and you are only interested in crawling information up to the sections level (i.e. levels 0-1), you can set your depth to 1. The default crawl depth is set to 2. Minimum value of 0. Maximum value of 10. - crawlDepth?: null | float64 @go(CrawlDepth,*float64) - - // The maximum size (in MB) of a webpage or attachment to crawl. Files larger than this size (in MB) are skipped/not crawled. The default maximum size of a webpage or attachment is set to 50 MB. Minimum value of 1.0e-06. Maximum value of 50. - maxContentSizePerPageInMegaBytes?: null | float64 @go(MaxContentSizePerPageInMegaBytes,*float64) - - // The maximum number of URLs on a webpage to include when crawling a website. This number is per webpage. As a website’s webpages are crawled, any URLs the webpages link to are also crawled. URLs on a webpage are crawled in order of appearance. The default maximum links per page is 100. Minimum value of 1. Maximum value of 1000. - maxLinksPerPage?: null | float64 @go(MaxLinksPerPage,*float64) - - // The maximum number of URLs crawled per website host per minute. The default maximum number of URLs crawled per website host per minute is 300. Minimum value of 1. Maximum value of 300. - maxUrlsPerMinuteCrawlRate?: null | float64 @go(MaxUrlsPerMinuteCrawlRate,*float64) - - // Configuration information required to connect to your internal websites via a web proxy. You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS. Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication. To store web proxy credentials, you use a secret in AWS Secrets Manager. Detailed below. - proxyConfiguration?: [...#ProxyConfigurationInitParameters] @go(ProxyConfiguration,[]ProxyConfigurationInitParameters) - - // A list of regular expression patterns to exclude certain URLs to crawl. URLs that match the patterns are excluded from the index. URLs that don't match the patterns are included in the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index. Array Members: Minimum number of 0 items. Maximum number of 100 items. Length Constraints: Minimum length of 1. Maximum length of 150. - urlExclusionPatterns?: [...null | string] @go(URLExclusionPatterns,[]*string) - - // A list of regular expression patterns to include certain URLs to crawl. URLs that match the patterns are included in the index. URLs that don't match the patterns are excluded from the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index. Array Members: Minimum number of 0 items. Maximum number of 100 items. Length Constraints: Minimum length of 1. Maximum length of 150. - urlInclusionPatterns?: [...null | string] @go(URLInclusionPatterns,[]*string) - - // A block that specifies the seed or starting point URLs of the websites or the sitemap URLs of the websites you want to crawl. You can include website subdomains. You can list up to 100 seed URLs and up to 3 sitemap URLs. You can only crawl websites that use the secure communication protocol, Hypertext Transfer Protocol Secure (HTTPS). If you receive an error when crawling a website, it could be that the website is blocked from crawling. When selecting websites to index, you must adhere to the Amazon Acceptable Use Policy and all other Amazon terms. Remember that you must only use Amazon Kendra Web Crawler to index your own webpages, or webpages that you have authorization to index. Detailed below. - urls?: [...#UrlsInitParameters] @go(Urls,[]UrlsInitParameters) -} - -#WebCrawlerConfigurationObservation: { - // A block with the configuration information required to connect to websites using authentication. You can connect to websites using basic authentication of user name and password. You use a secret in AWS Secrets Manager to store your authentication credentials. You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS. Detailed below. - authenticationConfiguration?: [...#AuthenticationConfigurationObservation] @go(AuthenticationConfiguration,[]AuthenticationConfigurationObservation) - - // Specifies the number of levels in a website that you want to crawl. The first level begins from the website seed or starting point URL. For example, if a website has 3 levels – index level (i.e. seed in this example), sections level, and subsections level – and you are only interested in crawling information up to the sections level (i.e. levels 0-1), you can set your depth to 1. The default crawl depth is set to 2. Minimum value of 0. Maximum value of 10. - crawlDepth?: null | float64 @go(CrawlDepth,*float64) - - // The maximum size (in MB) of a webpage or attachment to crawl. Files larger than this size (in MB) are skipped/not crawled. The default maximum size of a webpage or attachment is set to 50 MB. Minimum value of 1.0e-06. Maximum value of 50. - maxContentSizePerPageInMegaBytes?: null | float64 @go(MaxContentSizePerPageInMegaBytes,*float64) - - // The maximum number of URLs on a webpage to include when crawling a website. This number is per webpage. As a website’s webpages are crawled, any URLs the webpages link to are also crawled. URLs on a webpage are crawled in order of appearance. The default maximum links per page is 100. Minimum value of 1. Maximum value of 1000. - maxLinksPerPage?: null | float64 @go(MaxLinksPerPage,*float64) - - // The maximum number of URLs crawled per website host per minute. The default maximum number of URLs crawled per website host per minute is 300. Minimum value of 1. Maximum value of 300. - maxUrlsPerMinuteCrawlRate?: null | float64 @go(MaxUrlsPerMinuteCrawlRate,*float64) - - // Configuration information required to connect to your internal websites via a web proxy. You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS. Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication. To store web proxy credentials, you use a secret in AWS Secrets Manager. Detailed below. - proxyConfiguration?: [...#ProxyConfigurationObservation] @go(ProxyConfiguration,[]ProxyConfigurationObservation) - - // A list of regular expression patterns to exclude certain URLs to crawl. URLs that match the patterns are excluded from the index. URLs that don't match the patterns are included in the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index. Array Members: Minimum number of 0 items. Maximum number of 100 items. Length Constraints: Minimum length of 1. Maximum length of 150. - urlExclusionPatterns?: [...null | string] @go(URLExclusionPatterns,[]*string) - - // A list of regular expression patterns to include certain URLs to crawl. URLs that match the patterns are included in the index. URLs that don't match the patterns are excluded from the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index. Array Members: Minimum number of 0 items. Maximum number of 100 items. Length Constraints: Minimum length of 1. Maximum length of 150. - urlInclusionPatterns?: [...null | string] @go(URLInclusionPatterns,[]*string) - - // A block that specifies the seed or starting point URLs of the websites or the sitemap URLs of the websites you want to crawl. You can include website subdomains. You can list up to 100 seed URLs and up to 3 sitemap URLs. You can only crawl websites that use the secure communication protocol, Hypertext Transfer Protocol Secure (HTTPS). If you receive an error when crawling a website, it could be that the website is blocked from crawling. When selecting websites to index, you must adhere to the Amazon Acceptable Use Policy and all other Amazon terms. Remember that you must only use Amazon Kendra Web Crawler to index your own webpages, or webpages that you have authorization to index. Detailed below. - urls?: [...#UrlsObservation] @go(Urls,[]UrlsObservation) -} - -#WebCrawlerConfigurationParameters: { - // A block with the configuration information required to connect to websites using authentication. You can connect to websites using basic authentication of user name and password. You use a secret in AWS Secrets Manager to store your authentication credentials. You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS. Detailed below. - // +kubebuilder:validation:Optional - authenticationConfiguration?: [...#AuthenticationConfigurationParameters] @go(AuthenticationConfiguration,[]AuthenticationConfigurationParameters) - - // Specifies the number of levels in a website that you want to crawl. The first level begins from the website seed or starting point URL. For example, if a website has 3 levels – index level (i.e. seed in this example), sections level, and subsections level – and you are only interested in crawling information up to the sections level (i.e. levels 0-1), you can set your depth to 1. The default crawl depth is set to 2. Minimum value of 0. Maximum value of 10. - // +kubebuilder:validation:Optional - crawlDepth?: null | float64 @go(CrawlDepth,*float64) - - // The maximum size (in MB) of a webpage or attachment to crawl. Files larger than this size (in MB) are skipped/not crawled. The default maximum size of a webpage or attachment is set to 50 MB. Minimum value of 1.0e-06. Maximum value of 50. - // +kubebuilder:validation:Optional - maxContentSizePerPageInMegaBytes?: null | float64 @go(MaxContentSizePerPageInMegaBytes,*float64) - - // The maximum number of URLs on a webpage to include when crawling a website. This number is per webpage. As a website’s webpages are crawled, any URLs the webpages link to are also crawled. URLs on a webpage are crawled in order of appearance. The default maximum links per page is 100. Minimum value of 1. Maximum value of 1000. - // +kubebuilder:validation:Optional - maxLinksPerPage?: null | float64 @go(MaxLinksPerPage,*float64) - - // The maximum number of URLs crawled per website host per minute. The default maximum number of URLs crawled per website host per minute is 300. Minimum value of 1. Maximum value of 300. - // +kubebuilder:validation:Optional - maxUrlsPerMinuteCrawlRate?: null | float64 @go(MaxUrlsPerMinuteCrawlRate,*float64) - - // Configuration information required to connect to your internal websites via a web proxy. You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS. Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication. To store web proxy credentials, you use a secret in AWS Secrets Manager. Detailed below. - // +kubebuilder:validation:Optional - proxyConfiguration?: [...#ProxyConfigurationParameters] @go(ProxyConfiguration,[]ProxyConfigurationParameters) - - // A list of regular expression patterns to exclude certain URLs to crawl. URLs that match the patterns are excluded from the index. URLs that don't match the patterns are included in the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index. Array Members: Minimum number of 0 items. Maximum number of 100 items. Length Constraints: Minimum length of 1. Maximum length of 150. - // +kubebuilder:validation:Optional - urlExclusionPatterns?: [...null | string] @go(URLExclusionPatterns,[]*string) - - // A list of regular expression patterns to include certain URLs to crawl. URLs that match the patterns are included in the index. URLs that don't match the patterns are excluded from the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index. Array Members: Minimum number of 0 items. Maximum number of 100 items. Length Constraints: Minimum length of 1. Maximum length of 150. - // +kubebuilder:validation:Optional - urlInclusionPatterns?: [...null | string] @go(URLInclusionPatterns,[]*string) - - // A block that specifies the seed or starting point URLs of the websites or the sitemap URLs of the websites you want to crawl. You can include website subdomains. You can list up to 100 seed URLs and up to 3 sitemap URLs. You can only crawl websites that use the secure communication protocol, Hypertext Transfer Protocol Secure (HTTPS). If you receive an error when crawling a website, it could be that the website is blocked from crawling. When selecting websites to index, you must adhere to the Amazon Acceptable Use Policy and all other Amazon terms. Remember that you must only use Amazon Kendra Web Crawler to index your own webpages, or webpages that you have authorization to index. Detailed below. - // +kubebuilder:validation:Optional - urls: [...#UrlsParameters] @go(Urls,[]UrlsParameters) -} - -// DataSourceSpec defines the desired state of DataSource -#DataSourceSpec: { - v1.#ResourceSpec - forProvider: #DataSourceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DataSourceInitParameters @go(InitProvider) -} - -// DataSourceStatus defines the observed state of DataSource. -#DataSourceStatus: { - v1.#ResourceStatus - atProvider?: #DataSourceObservation @go(AtProvider) -} - -// DataSource is the Schema for the DataSources API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DataSource: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #DataSourceSpec @go(Spec) - status?: #DataSourceStatus @go(Status) -} - -// DataSourceList contains a list of DataSources -#DataSourceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DataSource] @go(Items,[]DataSource) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_experience_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_experience_types_go_gen.cue deleted file mode 100644 index ce01e0c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_experience_types_go_gen.cue +++ /dev/null @@ -1,239 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kendra/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ContentSourceConfigurationInitParameters: { - // The identifiers of the data sources you want to use for your Amazon Kendra experience. Maximum number of 100 items. - dataSourceIds?: [...null | string] @go(DataSourceIds,[]*string) - - // Whether to use documents you indexed directly using the BatchPutDocument API. Defaults to false. - directPutContent?: null | bool @go(DirectPutContent,*bool) - - // The identifier of the FAQs that you want to use for your Amazon Kendra experience. Maximum number of 100 items. - faqIds?: [...null | string] @go(FaqIds,[]*string) -} - -#ContentSourceConfigurationObservation: { - // The identifiers of the data sources you want to use for your Amazon Kendra experience. Maximum number of 100 items. - dataSourceIds?: [...null | string] @go(DataSourceIds,[]*string) - - // Whether to use documents you indexed directly using the BatchPutDocument API. Defaults to false. - directPutContent?: null | bool @go(DirectPutContent,*bool) - - // The identifier of the FAQs that you want to use for your Amazon Kendra experience. Maximum number of 100 items. - faqIds?: [...null | string] @go(FaqIds,[]*string) -} - -#ContentSourceConfigurationParameters: { - // The identifiers of the data sources you want to use for your Amazon Kendra experience. Maximum number of 100 items. - // +kubebuilder:validation:Optional - dataSourceIds?: [...null | string] @go(DataSourceIds,[]*string) - - // Whether to use documents you indexed directly using the BatchPutDocument API. Defaults to false. - // +kubebuilder:validation:Optional - directPutContent?: null | bool @go(DirectPutContent,*bool) - - // The identifier of the FAQs that you want to use for your Amazon Kendra experience. Maximum number of 100 items. - // +kubebuilder:validation:Optional - faqIds?: [...null | string] @go(FaqIds,[]*string) -} - -#EndpointsInitParameters: { -} - -#EndpointsObservation: { - // The endpoint of your Amazon Kendra experience. - endpoint?: null | string @go(Endpoint,*string) - - // The type of endpoint for your Amazon Kendra experience. - endpointType?: null | string @go(EndpointType,*string) -} - -#EndpointsParameters: { -} - -#ExperienceConfigurationInitParameters: { - // The identifiers of your data sources and FAQs. Or, you can specify that you want to use documents indexed via the BatchPutDocument API. Detailed below. - contentSourceConfiguration?: [...#ContentSourceConfigurationInitParameters] @go(ContentSourceConfiguration,[]ContentSourceConfigurationInitParameters) - - // The AWS SSO field name that contains the identifiers of your users, such as their emails. Detailed below. - userIdentityConfiguration?: [...#UserIdentityConfigurationInitParameters] @go(UserIdentityConfiguration,[]UserIdentityConfigurationInitParameters) -} - -#ExperienceConfigurationObservation: { - // The identifiers of your data sources and FAQs. Or, you can specify that you want to use documents indexed via the BatchPutDocument API. Detailed below. - contentSourceConfiguration?: [...#ContentSourceConfigurationObservation] @go(ContentSourceConfiguration,[]ContentSourceConfigurationObservation) - - // The AWS SSO field name that contains the identifiers of your users, such as their emails. Detailed below. - userIdentityConfiguration?: [...#UserIdentityConfigurationObservation] @go(UserIdentityConfiguration,[]UserIdentityConfigurationObservation) -} - -#ExperienceConfigurationParameters: { - // The identifiers of your data sources and FAQs. Or, you can specify that you want to use documents indexed via the BatchPutDocument API. Detailed below. - // +kubebuilder:validation:Optional - contentSourceConfiguration?: [...#ContentSourceConfigurationParameters] @go(ContentSourceConfiguration,[]ContentSourceConfigurationParameters) - - // The AWS SSO field name that contains the identifiers of your users, such as their emails. Detailed below. - // +kubebuilder:validation:Optional - userIdentityConfiguration?: [...#UserIdentityConfigurationParameters] @go(UserIdentityConfiguration,[]UserIdentityConfigurationParameters) -} - -#ExperienceInitParameters: { - // Configuration information for your Amazon Kendra experience. Detailed below. - configuration?: [...#ExperienceConfigurationInitParameters] @go(Configuration,[]ExperienceConfigurationInitParameters) - - // A description for your Amazon Kendra experience. - description?: null | string @go(Description,*string) - - // A name for your Amazon Kendra experience. - name?: null | string @go(Name,*string) -} - -#ExperienceObservation: { - // ARN of the Experience. - arn?: null | string @go(Arn,*string) - - // Configuration information for your Amazon Kendra experience. Detailed below. - configuration?: [...#ExperienceConfigurationObservation] @go(Configuration,[]ExperienceConfigurationObservation) - - // A description for your Amazon Kendra experience. - description?: null | string @go(Description,*string) - - // Shows the endpoint URLs for your Amazon Kendra experiences. The URLs are unique and fully hosted by AWS. - endpoints?: [...#EndpointsObservation] @go(Endpoints,[]EndpointsObservation) - - // The unique identifier of the experience. - experienceId?: null | string @go(ExperienceID,*string) - - // The unique identifiers of the experience and index separated by a slash (/). - id?: null | string @go(ID,*string) - - // The identifier of the index for your Amazon Kendra experience. - indexId?: null | string @go(IndexID,*string) - - // A name for your Amazon Kendra experience. - name?: null | string @go(Name,*string) - - // The Amazon Resource Name (ARN) of a role with permission to access Query API, QuerySuggestions API, SubmitFeedback API, and AWS SSO that stores your user and group information. For more information, see IAM roles for Amazon Kendra. - roleArn?: null | string @go(RoleArn,*string) - - // The current processing status of your Amazon Kendra experience. - status?: null | string @go(Status,*string) -} - -#ExperienceParameters: { - // Configuration information for your Amazon Kendra experience. Detailed below. - // +kubebuilder:validation:Optional - configuration?: [...#ExperienceConfigurationParameters] @go(Configuration,[]ExperienceConfigurationParameters) - - // A description for your Amazon Kendra experience. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The identifier of the index for your Amazon Kendra experience. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kendra/v1beta1.Index - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - indexId?: null | string @go(IndexID,*string) - - // Reference to a Index in kendra to populate indexId. - // +kubebuilder:validation:Optional - indexIdRef?: null | v1.#Reference @go(IndexIDRef,*v1.Reference) - - // Selector for a Index in kendra to populate indexId. - // +kubebuilder:validation:Optional - indexIdSelector?: null | v1.#Selector @go(IndexIDSelector,*v1.Selector) - - // A name for your Amazon Kendra experience. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of a role with permission to access Query API, QuerySuggestions API, SubmitFeedback API, and AWS SSO that stores your user and group information. For more information, see IAM roles for Amazon Kendra. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -#UserIdentityConfigurationInitParameters: { - // The AWS SSO field name that contains the identifiers of your users, such as their emails. - identityAttributeName?: null | string @go(IdentityAttributeName,*string) -} - -#UserIdentityConfigurationObservation: { - // The AWS SSO field name that contains the identifiers of your users, such as their emails. - identityAttributeName?: null | string @go(IdentityAttributeName,*string) -} - -#UserIdentityConfigurationParameters: { - // The AWS SSO field name that contains the identifiers of your users, such as their emails. - // +kubebuilder:validation:Optional - identityAttributeName?: null | string @go(IdentityAttributeName,*string) -} - -// ExperienceSpec defines the desired state of Experience -#ExperienceSpec: { - v1.#ResourceSpec - forProvider: #ExperienceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ExperienceInitParameters @go(InitProvider) -} - -// ExperienceStatus defines the observed state of Experience. -#ExperienceStatus: { - v1.#ResourceStatus - atProvider?: #ExperienceObservation @go(AtProvider) -} - -// Experience is the Schema for the Experiences API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Experience: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ExperienceSpec @go(Spec) - status?: #ExperienceStatus @go(Status) -} - -// ExperienceList contains a list of Experiences -#ExperienceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Experience] @go(Items,[]Experience) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 043509c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kendra/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=kendra.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "kendra.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_index_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_index_types_go_gen.cue deleted file mode 100644 index 924cdb7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_index_types_go_gen.cue +++ /dev/null @@ -1,582 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kendra/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CapacityUnitsInitParameters: { - // The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to QueryCapacityUnits. - queryCapacityUnits?: null | float64 @go(QueryCapacityUnits,*float64) - - // The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. Minimum value of 0. - storageCapacityUnits?: null | float64 @go(StorageCapacityUnits,*float64) -} - -#CapacityUnitsObservation: { - // The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to QueryCapacityUnits. - queryCapacityUnits?: null | float64 @go(QueryCapacityUnits,*float64) - - // The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. Minimum value of 0. - storageCapacityUnits?: null | float64 @go(StorageCapacityUnits,*float64) -} - -#CapacityUnitsParameters: { - // The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to QueryCapacityUnits. - // +kubebuilder:validation:Optional - queryCapacityUnits?: null | float64 @go(QueryCapacityUnits,*float64) - - // The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. Minimum value of 0. - // +kubebuilder:validation:Optional - storageCapacityUnits?: null | float64 @go(StorageCapacityUnits,*float64) -} - -#DocumentMetadataConfigurationUpdatesInitParameters: { - // The name of the index field. Minimum length of 1. Maximum length of 30. - name?: null | string @go(Name,*string) - - // A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below - relevance?: [...#RelevanceInitParameters] @go(Relevance,[]RelevanceInitParameters) - - // A block that provides information about how the field is used during a search. Documented below. Detailed below - search?: [...#SearchInitParameters] @go(Search,[]SearchInitParameters) - - // The data type of the index field. Valid values are STRING_VALUE, STRING_LIST_VALUE, LONG_VALUE, DATE_VALUE. - type?: null | string @go(Type,*string) -} - -#DocumentMetadataConfigurationUpdatesObservation: { - // The name of the index field. Minimum length of 1. Maximum length of 30. - name?: null | string @go(Name,*string) - - // A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below - relevance?: [...#RelevanceObservation] @go(Relevance,[]RelevanceObservation) - - // A block that provides information about how the field is used during a search. Documented below. Detailed below - search?: [...#SearchObservation] @go(Search,[]SearchObservation) - - // The data type of the index field. Valid values are STRING_VALUE, STRING_LIST_VALUE, LONG_VALUE, DATE_VALUE. - type?: null | string @go(Type,*string) -} - -#DocumentMetadataConfigurationUpdatesParameters: { - // The name of the index field. Minimum length of 1. Maximum length of 30. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below - // +kubebuilder:validation:Optional - relevance?: [...#RelevanceParameters] @go(Relevance,[]RelevanceParameters) - - // A block that provides information about how the field is used during a search. Documented below. Detailed below - // +kubebuilder:validation:Optional - search?: [...#SearchParameters] @go(Search,[]SearchParameters) - - // The data type of the index field. Valid values are STRING_VALUE, STRING_LIST_VALUE, LONG_VALUE, DATE_VALUE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#FaqStatisticsInitParameters: { -} - -#FaqStatisticsObservation: { - // The total number of FAQ questions and answers contained in the index. - indexedQuestionAnswersCount?: null | float64 @go(IndexedQuestionAnswersCount,*float64) -} - -#FaqStatisticsParameters: { -} - -#IndexInitParameters: { - // A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below. - capacityUnits?: [...#CapacityUnitsInitParameters] @go(CapacityUnits,[]CapacityUnitsInitParameters) - - // The description of the Index. - description?: null | string @go(Description,*string) - - // One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below. - documentMetadataConfigurationUpdates?: [...#DocumentMetadataConfigurationUpdatesInitParameters] @go(DocumentMetadataConfigurationUpdates,[]DocumentMetadataConfigurationUpdatesInitParameters) - - // The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION - edition?: null | string @go(Edition,*string) - - // Specifies the name of the Index. - name?: null | string @go(Name,*string) - - // A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below. - serverSideEncryptionConfiguration?: [...#ServerSideEncryptionConfigurationInitParameters] @go(ServerSideEncryptionConfiguration,[]ServerSideEncryptionConfigurationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER. - userContextPolicy?: null | string @go(UserContextPolicy,*string) - - // A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below. - userGroupResolutionConfiguration?: [...#UserGroupResolutionConfigurationInitParameters] @go(UserGroupResolutionConfiguration,[]UserGroupResolutionConfigurationInitParameters) - - // A block that specifies the user token configuration. Detailed below. - userTokenConfigurations?: [...#UserTokenConfigurationsInitParameters] @go(UserTokenConfigurations,[]UserTokenConfigurationsInitParameters) -} - -#IndexObservation: { - // The Amazon Resource Name (ARN) of the Index. - arn?: null | string @go(Arn,*string) - - // A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below. - capacityUnits?: [...#CapacityUnitsObservation] @go(CapacityUnits,[]CapacityUnitsObservation) - - // The Unix datetime that the index was created. - createdAt?: null | string @go(CreatedAt,*string) - - // The description of the Index. - description?: null | string @go(Description,*string) - - // One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below. - documentMetadataConfigurationUpdates?: [...#DocumentMetadataConfigurationUpdatesObservation] @go(DocumentMetadataConfigurationUpdates,[]DocumentMetadataConfigurationUpdatesObservation) - - // The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION - edition?: null | string @go(Edition,*string) - - // When the Status field value is FAILED, this contains a message that explains why. - errorMessage?: null | string @go(ErrorMessage,*string) - - // The identifier of the Index. - id?: null | string @go(ID,*string) - - // A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below. - indexStatistics?: [...#IndexStatisticsObservation] @go(IndexStatistics,[]IndexStatisticsObservation) - - // Specifies the name of the Index. - name?: null | string @go(Name,*string) - - // An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket. - roleArn?: null | string @go(RoleArn,*string) - - // A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below. - serverSideEncryptionConfiguration?: [...#ServerSideEncryptionConfigurationObservation] @go(ServerSideEncryptionConfiguration,[]ServerSideEncryptionConfigurationObservation) - - // The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The Unix datetime that the index was last updated. - updatedAt?: null | string @go(UpdatedAt,*string) - - // The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER. - userContextPolicy?: null | string @go(UserContextPolicy,*string) - - // A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below. - userGroupResolutionConfiguration?: [...#UserGroupResolutionConfigurationObservation] @go(UserGroupResolutionConfiguration,[]UserGroupResolutionConfigurationObservation) - - // A block that specifies the user token configuration. Detailed below. - userTokenConfigurations?: [...#UserTokenConfigurationsObservation] @go(UserTokenConfigurations,[]UserTokenConfigurationsObservation) -} - -#IndexParameters: { - // A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below. - // +kubebuilder:validation:Optional - capacityUnits?: [...#CapacityUnitsParameters] @go(CapacityUnits,[]CapacityUnitsParameters) - - // The description of the Index. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below. - // +kubebuilder:validation:Optional - documentMetadataConfigurationUpdates?: [...#DocumentMetadataConfigurationUpdatesParameters] @go(DocumentMetadataConfigurationUpdates,[]DocumentMetadataConfigurationUpdatesParameters) - - // The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION - // +kubebuilder:validation:Optional - edition?: null | string @go(Edition,*string) - - // Specifies the name of the Index. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below. - // +kubebuilder:validation:Optional - serverSideEncryptionConfiguration?: [...#ServerSideEncryptionConfigurationParameters] @go(ServerSideEncryptionConfiguration,[]ServerSideEncryptionConfigurationParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER. - // +kubebuilder:validation:Optional - userContextPolicy?: null | string @go(UserContextPolicy,*string) - - // A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below. - // +kubebuilder:validation:Optional - userGroupResolutionConfiguration?: [...#UserGroupResolutionConfigurationParameters] @go(UserGroupResolutionConfiguration,[]UserGroupResolutionConfigurationParameters) - - // A block that specifies the user token configuration. Detailed below. - // +kubebuilder:validation:Optional - userTokenConfigurations?: [...#UserTokenConfigurationsParameters] @go(UserTokenConfigurations,[]UserTokenConfigurationsParameters) -} - -#IndexStatisticsInitParameters: { -} - -#IndexStatisticsObservation: { - // A block that specifies the number of question and answer topics in the index. Detailed below. - faqStatistics?: [...#FaqStatisticsObservation] @go(FaqStatistics,[]FaqStatisticsObservation) - - // A block that specifies the number of text documents indexed. Detailed below. - textDocumentStatistics?: [...#TextDocumentStatisticsObservation] @go(TextDocumentStatistics,[]TextDocumentStatisticsObservation) -} - -#IndexStatisticsParameters: { -} - -#JSONTokenTypeConfigurationInitParameters: { - // The group attribute field. Minimum length of 1. Maximum length of 2048. - groupAttributeField?: null | string @go(GroupAttributeField,*string) - - // The user name attribute field. Minimum length of 1. Maximum length of 2048. - userNameAttributeField?: null | string @go(UserNameAttributeField,*string) -} - -#JSONTokenTypeConfigurationObservation: { - // The group attribute field. Minimum length of 1. Maximum length of 2048. - groupAttributeField?: null | string @go(GroupAttributeField,*string) - - // The user name attribute field. Minimum length of 1. Maximum length of 2048. - userNameAttributeField?: null | string @go(UserNameAttributeField,*string) -} - -#JSONTokenTypeConfigurationParameters: { - // The group attribute field. Minimum length of 1. Maximum length of 2048. - // +kubebuilder:validation:Optional - groupAttributeField?: null | string @go(GroupAttributeField,*string) - - // The user name attribute field. Minimum length of 1. Maximum length of 2048. - // +kubebuilder:validation:Optional - userNameAttributeField?: null | string @go(UserNameAttributeField,*string) -} - -#JwtTokenTypeConfigurationInitParameters: { - // The regular expression that identifies the claim. Minimum length of 1. Maximum length of 100. - claimRegex?: null | string @go(ClaimRegex,*string) - - // The group attribute field. Minimum length of 1. Maximum length of 2048. - groupAttributeField?: null | string @go(GroupAttributeField,*string) - - // The issuer of the token. Minimum length of 1. Maximum length of 65. - issuer?: null | string @go(Issuer,*string) - - // The location of the key. Valid values are URL or SECRET_MANAGER - keyLocation?: null | string @go(KeyLocation,*string) - - // The Amazon Resource Name (ARN) of the secret. - secretsManagerArn?: null | string @go(SecretsManagerArn,*string) - - // The signing key URL. Valid pattern is ^(https?|ftp|file):\/\/([^\s]*) - url?: null | string @go(URL,*string) - - // The user name attribute field. Minimum length of 1. Maximum length of 2048. - userNameAttributeField?: null | string @go(UserNameAttributeField,*string) -} - -#JwtTokenTypeConfigurationObservation: { - // The regular expression that identifies the claim. Minimum length of 1. Maximum length of 100. - claimRegex?: null | string @go(ClaimRegex,*string) - - // The group attribute field. Minimum length of 1. Maximum length of 2048. - groupAttributeField?: null | string @go(GroupAttributeField,*string) - - // The issuer of the token. Minimum length of 1. Maximum length of 65. - issuer?: null | string @go(Issuer,*string) - - // The location of the key. Valid values are URL or SECRET_MANAGER - keyLocation?: null | string @go(KeyLocation,*string) - - // The Amazon Resource Name (ARN) of the secret. - secretsManagerArn?: null | string @go(SecretsManagerArn,*string) - - // The signing key URL. Valid pattern is ^(https?|ftp|file):\/\/([^\s]*) - url?: null | string @go(URL,*string) - - // The user name attribute field. Minimum length of 1. Maximum length of 2048. - userNameAttributeField?: null | string @go(UserNameAttributeField,*string) -} - -#JwtTokenTypeConfigurationParameters: { - // The regular expression that identifies the claim. Minimum length of 1. Maximum length of 100. - // +kubebuilder:validation:Optional - claimRegex?: null | string @go(ClaimRegex,*string) - - // The group attribute field. Minimum length of 1. Maximum length of 2048. - // +kubebuilder:validation:Optional - groupAttributeField?: null | string @go(GroupAttributeField,*string) - - // The issuer of the token. Minimum length of 1. Maximum length of 65. - // +kubebuilder:validation:Optional - issuer?: null | string @go(Issuer,*string) - - // The location of the key. Valid values are URL or SECRET_MANAGER - // +kubebuilder:validation:Optional - keyLocation?: null | string @go(KeyLocation,*string) - - // The Amazon Resource Name (ARN) of the secret. - // +kubebuilder:validation:Optional - secretsManagerArn?: null | string @go(SecretsManagerArn,*string) - - // The signing key URL. Valid pattern is ^(https?|ftp|file):\/\/([^\s]*) - // +kubebuilder:validation:Optional - url?: null | string @go(URL,*string) - - // The user name attribute field. Minimum length of 1. Maximum length of 2048. - // +kubebuilder:validation:Optional - userNameAttributeField?: null | string @go(UserNameAttributeField,*string) -} - -#RelevanceInitParameters: { - // Specifies the time period that the boost applies to. For more information, refer to Duration. - duration?: null | string @go(Duration,*string) - - // Indicates that this field determines how "fresh" a document is. For more information, refer to Freshness. - freshness?: null | bool @go(Freshness,*bool) - - // The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers. Minimum value of 1. Maximum value of 10. - importance?: null | float64 @go(Importance,*float64) - - // Determines how values should be interpreted. For more information, refer to RankOrder. - rankOrder?: null | string @go(RankOrder,*string) - - // A list of values that should be given a different boost when they appear in the result list. For more information, refer to ValueImportanceMap. - valuesImportanceMap?: {[string]: null | float64} @go(ValuesImportanceMap,map[string]*float64) -} - -#RelevanceObservation: { - // Specifies the time period that the boost applies to. For more information, refer to Duration. - duration?: null | string @go(Duration,*string) - - // Indicates that this field determines how "fresh" a document is. For more information, refer to Freshness. - freshness?: null | bool @go(Freshness,*bool) - - // The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers. Minimum value of 1. Maximum value of 10. - importance?: null | float64 @go(Importance,*float64) - - // Determines how values should be interpreted. For more information, refer to RankOrder. - rankOrder?: null | string @go(RankOrder,*string) - - // A list of values that should be given a different boost when they appear in the result list. For more information, refer to ValueImportanceMap. - valuesImportanceMap?: {[string]: null | float64} @go(ValuesImportanceMap,map[string]*float64) -} - -#RelevanceParameters: { - // Specifies the time period that the boost applies to. For more information, refer to Duration. - // +kubebuilder:validation:Optional - duration?: null | string @go(Duration,*string) - - // Indicates that this field determines how "fresh" a document is. For more information, refer to Freshness. - // +kubebuilder:validation:Optional - freshness?: null | bool @go(Freshness,*bool) - - // The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers. Minimum value of 1. Maximum value of 10. - // +kubebuilder:validation:Optional - importance?: null | float64 @go(Importance,*float64) - - // Determines how values should be interpreted. For more information, refer to RankOrder. - // +kubebuilder:validation:Optional - rankOrder?: null | string @go(RankOrder,*string) - - // A list of values that should be given a different boost when they appear in the result list. For more information, refer to ValueImportanceMap. - // +kubebuilder:validation:Optional - valuesImportanceMap?: {[string]: null | float64} @go(ValuesImportanceMap,map[string]*float64) -} - -#SearchInitParameters: { - // Determines whether the field is returned in the query response. The default is true. - displayable?: null | bool @go(Displayable,*bool) - - // Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false. - facetable?: null | bool @go(Facetable,*bool) - - // Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields. - searchable?: null | bool @go(Searchable,*bool) - - // Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false. - sortable?: null | bool @go(Sortable,*bool) -} - -#SearchObservation: { - // Determines whether the field is returned in the query response. The default is true. - displayable?: null | bool @go(Displayable,*bool) - - // Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false. - facetable?: null | bool @go(Facetable,*bool) - - // Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields. - searchable?: null | bool @go(Searchable,*bool) - - // Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false. - sortable?: null | bool @go(Sortable,*bool) -} - -#SearchParameters: { - // Determines whether the field is returned in the query response. The default is true. - // +kubebuilder:validation:Optional - displayable?: null | bool @go(Displayable,*bool) - - // Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false. - // +kubebuilder:validation:Optional - facetable?: null | bool @go(Facetable,*bool) - - // Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields. - // +kubebuilder:validation:Optional - searchable?: null | bool @go(Searchable,*bool) - - // Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false. - // +kubebuilder:validation:Optional - sortable?: null | bool @go(Sortable,*bool) -} - -#ServerSideEncryptionConfigurationInitParameters: { - // The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#ServerSideEncryptionConfigurationObservation: { - // The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#ServerSideEncryptionConfigurationParameters: { - // The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#TextDocumentStatisticsInitParameters: { -} - -#TextDocumentStatisticsObservation: { - // The total size, in bytes, of the indexed documents. - indexedTextBytes?: null | float64 @go(IndexedTextBytes,*float64) - - // The number of text documents indexed. - indexedTextDocumentsCount?: null | float64 @go(IndexedTextDocumentsCount,*float64) -} - -#TextDocumentStatisticsParameters: { -} - -#UserGroupResolutionConfigurationInitParameters: { - // The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are AWS_SSO or NONE. - userGroupResolutionMode?: null | string @go(UserGroupResolutionMode,*string) -} - -#UserGroupResolutionConfigurationObservation: { - // The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are AWS_SSO or NONE. - userGroupResolutionMode?: null | string @go(UserGroupResolutionMode,*string) -} - -#UserGroupResolutionConfigurationParameters: { - // The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are AWS_SSO or NONE. - // +kubebuilder:validation:Optional - userGroupResolutionMode?: null | string @go(UserGroupResolutionMode,*string) -} - -#UserTokenConfigurationsInitParameters: { - // A block that specifies the information about the JSON token type configuration. Detailed below. - jsonTokenTypeConfiguration?: [...#JSONTokenTypeConfigurationInitParameters] @go(JSONTokenTypeConfiguration,[]JSONTokenTypeConfigurationInitParameters) - - // A block that specifies the information about the JWT token type configuration. Detailed below. - jwtTokenTypeConfiguration?: [...#JwtTokenTypeConfigurationInitParameters] @go(JwtTokenTypeConfiguration,[]JwtTokenTypeConfigurationInitParameters) -} - -#UserTokenConfigurationsObservation: { - // A block that specifies the information about the JSON token type configuration. Detailed below. - jsonTokenTypeConfiguration?: [...#JSONTokenTypeConfigurationObservation] @go(JSONTokenTypeConfiguration,[]JSONTokenTypeConfigurationObservation) - - // A block that specifies the information about the JWT token type configuration. Detailed below. - jwtTokenTypeConfiguration?: [...#JwtTokenTypeConfigurationObservation] @go(JwtTokenTypeConfiguration,[]JwtTokenTypeConfigurationObservation) -} - -#UserTokenConfigurationsParameters: { - // A block that specifies the information about the JSON token type configuration. Detailed below. - // +kubebuilder:validation:Optional - jsonTokenTypeConfiguration?: [...#JSONTokenTypeConfigurationParameters] @go(JSONTokenTypeConfiguration,[]JSONTokenTypeConfigurationParameters) - - // A block that specifies the information about the JWT token type configuration. Detailed below. - // +kubebuilder:validation:Optional - jwtTokenTypeConfiguration?: [...#JwtTokenTypeConfigurationParameters] @go(JwtTokenTypeConfiguration,[]JwtTokenTypeConfigurationParameters) -} - -// IndexSpec defines the desired state of Index -#IndexSpec: { - v1.#ResourceSpec - forProvider: #IndexParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IndexInitParameters @go(InitProvider) -} - -// IndexStatus defines the observed state of Index. -#IndexStatus: { - v1.#ResourceStatus - atProvider?: #IndexObservation @go(AtProvider) -} - -// Index is the Schema for the Indexs API. Provides an Amazon Kendra Index resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Index: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #IndexSpec @go(Spec) - status?: #IndexStatus @go(Status) -} - -// IndexList contains a list of Indexs -#IndexList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Index] @go(Items,[]Index) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_querysuggestionsblocklist_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_querysuggestionsblocklist_types_go_gen.cue deleted file mode 100644 index 52629ec..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_querysuggestionsblocklist_types_go_gen.cue +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kendra/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#QuerySuggestionsBlockListInitParameters: { - // The description for a block list. - description?: null | string @go(Description,*string) - - // The name for the block list. - name?: null | string @go(Name,*string) - - // The S3 path where your block list text file sits in S3. Detailed below. - sourceS3Path?: [...#SourceS3PathInitParameters] @go(SourceS3Path,[]SourceS3PathInitParameters) - - // 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. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#QuerySuggestionsBlockListObservation: { - // ARN of the block list. - arn?: null | string @go(Arn,*string) - - // The description for a block list. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // The identifier of the index for a block list. - indexId?: null | string @go(IndexID,*string) - - // The name for the block list. - name?: null | string @go(Name,*string) - - // The unique indentifier of the block list. - querySuggestionsBlockListId?: null | string @go(QuerySuggestionsBlockListID,*string) - - // The IAM (Identity and Access Management) role used to access the block list text file in S3. - roleArn?: null | string @go(RoleArn,*string) - - // The S3 path where your block list text file sits in S3. Detailed below. - sourceS3Path?: [...#SourceS3PathObservation] @go(SourceS3Path,[]SourceS3PathObservation) - status?: null | string @go(Status,*string) - - // 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. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#QuerySuggestionsBlockListParameters: { - // The description for a block list. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The identifier of the index for a block list. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kendra/v1beta1.Index - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - indexId?: null | string @go(IndexID,*string) - - // Reference to a Index in kendra to populate indexId. - // +kubebuilder:validation:Optional - indexIdRef?: null | v1.#Reference @go(IndexIDRef,*v1.Reference) - - // Selector for a Index in kendra to populate indexId. - // +kubebuilder:validation:Optional - indexIdSelector?: null | v1.#Selector @go(IndexIDSelector,*v1.Selector) - - // The name for the block list. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The IAM (Identity and Access Management) role used to access the block list text file in S3. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The S3 path where your block list text file sits in S3. Detailed below. - // +kubebuilder:validation:Optional - sourceS3Path?: [...#SourceS3PathParameters] @go(SourceS3Path,[]SourceS3PathParameters) - - // 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. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SourceS3PathInitParameters: { - // The name of the file. - key?: null | string @go(Key,*string) -} - -#SourceS3PathObservation: { - // The name of the S3 bucket that contains the file. - bucket?: null | string @go(Bucket,*string) - - // The name of the file. - key?: null | string @go(Key,*string) -} - -#SourceS3PathParameters: { - // The name of the S3 bucket that contains the file. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // The name of the file. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) -} - -// QuerySuggestionsBlockListSpec defines the desired state of QuerySuggestionsBlockList -#QuerySuggestionsBlockListSpec: { - v1.#ResourceSpec - forProvider: #QuerySuggestionsBlockListParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #QuerySuggestionsBlockListInitParameters @go(InitProvider) -} - -// QuerySuggestionsBlockListStatus defines the observed state of QuerySuggestionsBlockList. -#QuerySuggestionsBlockListStatus: { - v1.#ResourceStatus - atProvider?: #QuerySuggestionsBlockListObservation @go(AtProvider) -} - -// QuerySuggestionsBlockList is the Schema for the QuerySuggestionsBlockLists API. provider resource for managing an aws kendra block list used for query suggestions for an index -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#QuerySuggestionsBlockList: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sourceS3Path) || (has(self.initProvider) && has(self.initProvider.sourceS3Path))",message="spec.forProvider.sourceS3Path is a required parameter" - spec: #QuerySuggestionsBlockListSpec @go(Spec) - status?: #QuerySuggestionsBlockListStatus @go(Status) -} - -// QuerySuggestionsBlockListList contains a list of QuerySuggestionsBlockLists -#QuerySuggestionsBlockListList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#QuerySuggestionsBlockList] @go(Items,[]QuerySuggestionsBlockList) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_thesaurus_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_thesaurus_types_go_gen.cue deleted file mode 100644 index d1c18d6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kendra/v1beta1/zz_thesaurus_types_go_gen.cue +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kendra/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ThesaurusInitParameters: { - // The description for a thesaurus. - description?: null | string @go(Description,*string) - - // The name for the thesaurus. - name?: null | string @go(Name,*string) - - // The S3 path where your thesaurus file sits in S3. Detailed below. - sourceS3Path?: [...#ThesaurusSourceS3PathInitParameters] @go(SourceS3Path,[]ThesaurusSourceS3PathInitParameters) - - // 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. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ThesaurusObservation: { - // ARN of the thesaurus. - arn?: null | string @go(Arn,*string) - - // The description for a thesaurus. - description?: null | string @go(Description,*string) - - // The unique identifiers of the thesaurus and index separated by a slash (/). - id?: null | string @go(ID,*string) - - // The identifier of the index for a thesaurus. - indexId?: null | string @go(IndexID,*string) - - // The name for the thesaurus. - name?: null | string @go(Name,*string) - - // The IAM (Identity and Access Management) role used to access the thesaurus file in S3. - roleArn?: null | string @go(RoleArn,*string) - - // The S3 path where your thesaurus file sits in S3. Detailed below. - sourceS3Path?: [...#ThesaurusSourceS3PathObservation] @go(SourceS3Path,[]ThesaurusSourceS3PathObservation) - - // The current status of the thesaurus. - status?: null | string @go(Status,*string) - - // 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. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The unique identifiers of the thesaurus and index separated by a slash (/). - thesaurusId?: null | string @go(ThesaurusID,*string) -} - -#ThesaurusParameters: { - // The description for a thesaurus. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The identifier of the index for a thesaurus. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kendra/v1beta1.Index - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - indexId?: null | string @go(IndexID,*string) - - // Reference to a Index in kendra to populate indexId. - // +kubebuilder:validation:Optional - indexIdRef?: null | v1.#Reference @go(IndexIDRef,*v1.Reference) - - // Selector for a Index in kendra to populate indexId. - // +kubebuilder:validation:Optional - indexIdSelector?: null | v1.#Selector @go(IndexIDSelector,*v1.Selector) - - // The name for the thesaurus. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The IAM (Identity and Access Management) role used to access the thesaurus file in S3. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The S3 path where your thesaurus file sits in S3. Detailed below. - // +kubebuilder:validation:Optional - sourceS3Path?: [...#ThesaurusSourceS3PathParameters] @go(SourceS3Path,[]ThesaurusSourceS3PathParameters) - - // 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. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ThesaurusSourceS3PathInitParameters: { -} - -#ThesaurusSourceS3PathObservation: { - // The name of the S3 bucket that contains the file. - bucket?: null | string @go(Bucket,*string) - - // The name of the file. - key?: null | string @go(Key,*string) -} - -#ThesaurusSourceS3PathParameters: { - // The name of the S3 bucket that contains the file. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // The name of the file. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Object - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("key",false) - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Reference to a Object in s3 to populate key. - // +kubebuilder:validation:Optional - keyRef?: null | v1.#Reference @go(KeyRef,*v1.Reference) - - // Selector for a Object in s3 to populate key. - // +kubebuilder:validation:Optional - keySelector?: null | v1.#Selector @go(KeySelector,*v1.Selector) -} - -// ThesaurusSpec defines the desired state of Thesaurus -#ThesaurusSpec: { - v1.#ResourceSpec - forProvider: #ThesaurusParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ThesaurusInitParameters @go(InitProvider) -} - -// ThesaurusStatus defines the observed state of Thesaurus. -#ThesaurusStatus: { - v1.#ResourceStatus - atProvider?: #ThesaurusObservation @go(AtProvider) -} - -// Thesaurus is the Schema for the Thesauruss API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws},path=thesaurus -#Thesaurus: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sourceS3Path) || (has(self.initProvider) && has(self.initProvider.sourceS3Path))",message="spec.forProvider.sourceS3Path is a required parameter" - spec: #ThesaurusSpec @go(Spec) - status?: #ThesaurusStatus @go(Status) -} - -// ThesaurusList contains a list of Thesauruss -#ThesaurusList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Thesaurus] @go(Items,[]Thesaurus) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/keyspaces/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/keyspaces/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 91052c4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/keyspaces/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/keyspaces/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=keyspaces.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "keyspaces.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/keyspaces/v1beta1/zz_keyspace_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/keyspaces/v1beta1/zz_keyspace_types_go_gen.cue deleted file mode 100644 index e7e2fe2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/keyspaces/v1beta1/zz_keyspace_types_go_gen.cue +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/keyspaces/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#KeyspaceInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#KeyspaceObservation: { - // The ARN of the keyspace. - arn?: null | string @go(Arn,*string) - - // The name of the keyspace. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#KeyspaceParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// KeyspaceSpec defines the desired state of Keyspace -#KeyspaceSpec: { - v1.#ResourceSpec - forProvider: #KeyspaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #KeyspaceInitParameters @go(InitProvider) -} - -// KeyspaceStatus defines the observed state of Keyspace. -#KeyspaceStatus: { - v1.#ResourceStatus - atProvider?: #KeyspaceObservation @go(AtProvider) -} - -// Keyspace is the Schema for the Keyspaces API. Provides a Keyspaces Keyspace. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Keyspace: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #KeyspaceSpec @go(Spec) - status?: #KeyspaceStatus @go(Status) -} - -// KeyspaceList contains a list of Keyspaces -#KeyspaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Keyspace] @go(Items,[]Keyspace) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/keyspaces/v1beta1/zz_table_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/keyspaces/v1beta1/zz_table_types_go_gen.cue deleted file mode 100644 index e697264..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/keyspaces/v1beta1/zz_table_types_go_gen.cue +++ /dev/null @@ -1,422 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/keyspaces/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CapacitySpecificationInitParameters: { - // The throughput capacity specified for read operations defined in read capacity units (RCUs). - readCapacityUnits?: null | float64 @go(ReadCapacityUnits,*float64) - - // The read/write throughput capacity mode for a table. Valid values: PAY_PER_REQUEST, PROVISIONED. The default value is PAY_PER_REQUEST. - throughputMode?: null | string @go(ThroughputMode,*string) - - // The throughput capacity specified for write operations defined in write capacity units (WCUs). - writeCapacityUnits?: null | float64 @go(WriteCapacityUnits,*float64) -} - -#CapacitySpecificationObservation: { - // The throughput capacity specified for read operations defined in read capacity units (RCUs). - readCapacityUnits?: null | float64 @go(ReadCapacityUnits,*float64) - - // The read/write throughput capacity mode for a table. Valid values: PAY_PER_REQUEST, PROVISIONED. The default value is PAY_PER_REQUEST. - throughputMode?: null | string @go(ThroughputMode,*string) - - // The throughput capacity specified for write operations defined in write capacity units (WCUs). - writeCapacityUnits?: null | float64 @go(WriteCapacityUnits,*float64) -} - -#CapacitySpecificationParameters: { - // The throughput capacity specified for read operations defined in read capacity units (RCUs). - // +kubebuilder:validation:Optional - readCapacityUnits?: null | float64 @go(ReadCapacityUnits,*float64) - - // The read/write throughput capacity mode for a table. Valid values: PAY_PER_REQUEST, PROVISIONED. The default value is PAY_PER_REQUEST. - // +kubebuilder:validation:Optional - throughputMode?: null | string @go(ThroughputMode,*string) - - // The throughput capacity specified for write operations defined in write capacity units (WCUs). - // +kubebuilder:validation:Optional - writeCapacityUnits?: null | float64 @go(WriteCapacityUnits,*float64) -} - -#ClusteringKeyInitParameters: { - // The name of the column. - name?: null | string @go(Name,*string) - - // The order modifier. Valid values: ASC, DESC. - orderBy?: null | string @go(OrderBy,*string) -} - -#ClusteringKeyObservation: { - // The name of the column. - name?: null | string @go(Name,*string) - - // The order modifier. Valid values: ASC, DESC. - orderBy?: null | string @go(OrderBy,*string) -} - -#ClusteringKeyParameters: { - // The name of the column. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The order modifier. Valid values: ASC, DESC. - // +kubebuilder:validation:Optional - orderBy?: null | string @go(OrderBy,*string) -} - -#ColumnInitParameters: { - // The name of the column. - name?: null | string @go(Name,*string) - - // The encryption option specified for the table. Valid values: AWS_OWNED_KMS_KEY, CUSTOMER_MANAGED_KMS_KEY. The default value is AWS_OWNED_KMS_KEY. - type?: null | string @go(Type,*string) -} - -#ColumnObservation: { - // The name of the column. - name?: null | string @go(Name,*string) - - // The encryption option specified for the table. Valid values: AWS_OWNED_KMS_KEY, CUSTOMER_MANAGED_KMS_KEY. The default value is AWS_OWNED_KMS_KEY. - type?: null | string @go(Type,*string) -} - -#ColumnParameters: { - // The name of the column. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The encryption option specified for the table. Valid values: AWS_OWNED_KMS_KEY, CUSTOMER_MANAGED_KMS_KEY. The default value is AWS_OWNED_KMS_KEY. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#CommentInitParameters: { - // A description of the table. - message?: null | string @go(Message,*string) -} - -#CommentObservation: { - // A description of the table. - message?: null | string @go(Message,*string) -} - -#CommentParameters: { - // A description of the table. - // +kubebuilder:validation:Optional - message?: null | string @go(Message,*string) -} - -#EncryptionSpecificationInitParameters: { - // The Amazon Resource Name (ARN) of the customer managed KMS key. - kmsKeyIdentifier?: null | string @go(KMSKeyIdentifier,*string) - - // The encryption option specified for the table. Valid values: AWS_OWNED_KMS_KEY, CUSTOMER_MANAGED_KMS_KEY. The default value is AWS_OWNED_KMS_KEY. - type?: null | string @go(Type,*string) -} - -#EncryptionSpecificationObservation: { - // The Amazon Resource Name (ARN) of the customer managed KMS key. - kmsKeyIdentifier?: null | string @go(KMSKeyIdentifier,*string) - - // The encryption option specified for the table. Valid values: AWS_OWNED_KMS_KEY, CUSTOMER_MANAGED_KMS_KEY. The default value is AWS_OWNED_KMS_KEY. - type?: null | string @go(Type,*string) -} - -#EncryptionSpecificationParameters: { - // The Amazon Resource Name (ARN) of the customer managed KMS key. - // +kubebuilder:validation:Optional - kmsKeyIdentifier?: null | string @go(KMSKeyIdentifier,*string) - - // The encryption option specified for the table. Valid values: AWS_OWNED_KMS_KEY, CUSTOMER_MANAGED_KMS_KEY. The default value is AWS_OWNED_KMS_KEY. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#PartitionKeyInitParameters: { - // The name of the column. - name?: null | string @go(Name,*string) -} - -#PartitionKeyObservation: { - // The name of the column. - name?: null | string @go(Name,*string) -} - -#PartitionKeyParameters: { - // The name of the column. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#PointInTimeRecoveryInitParameters: { - // Valid values: ENABLED, DISABLED. The default value is DISABLED. - status?: null | string @go(Status,*string) -} - -#PointInTimeRecoveryObservation: { - // Valid values: ENABLED, DISABLED. The default value is DISABLED. - status?: null | string @go(Status,*string) -} - -#PointInTimeRecoveryParameters: { - // Valid values: ENABLED, DISABLED. The default value is DISABLED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -#SchemaDefinitionInitParameters: { - // The columns that are part of the clustering key of the table. - clusteringKey?: [...#ClusteringKeyInitParameters] @go(ClusteringKey,[]ClusteringKeyInitParameters) - - // The regular columns of the table. - column?: [...#ColumnInitParameters] @go(Column,[]ColumnInitParameters) - - // The columns that are part of the partition key of the table . - partitionKey?: [...#PartitionKeyInitParameters] @go(PartitionKey,[]PartitionKeyInitParameters) - - // The columns that have been defined as STATIC. Static columns store values that are shared by all rows in the same partition. - staticColumn?: [...#StaticColumnInitParameters] @go(StaticColumn,[]StaticColumnInitParameters) -} - -#SchemaDefinitionObservation: { - // The columns that are part of the clustering key of the table. - clusteringKey?: [...#ClusteringKeyObservation] @go(ClusteringKey,[]ClusteringKeyObservation) - - // The regular columns of the table. - column?: [...#ColumnObservation] @go(Column,[]ColumnObservation) - - // The columns that are part of the partition key of the table . - partitionKey?: [...#PartitionKeyObservation] @go(PartitionKey,[]PartitionKeyObservation) - - // The columns that have been defined as STATIC. Static columns store values that are shared by all rows in the same partition. - staticColumn?: [...#StaticColumnObservation] @go(StaticColumn,[]StaticColumnObservation) -} - -#SchemaDefinitionParameters: { - // The columns that are part of the clustering key of the table. - // +kubebuilder:validation:Optional - clusteringKey?: [...#ClusteringKeyParameters] @go(ClusteringKey,[]ClusteringKeyParameters) - - // The regular columns of the table. - // +kubebuilder:validation:Optional - column: [...#ColumnParameters] @go(Column,[]ColumnParameters) - - // The columns that are part of the partition key of the table . - // +kubebuilder:validation:Optional - partitionKey: [...#PartitionKeyParameters] @go(PartitionKey,[]PartitionKeyParameters) - - // The columns that have been defined as STATIC. Static columns store values that are shared by all rows in the same partition. - // +kubebuilder:validation:Optional - staticColumn?: [...#StaticColumnParameters] @go(StaticColumn,[]StaticColumnParameters) -} - -#StaticColumnInitParameters: { - // The name of the column. - name?: null | string @go(Name,*string) -} - -#StaticColumnObservation: { - // The name of the column. - name?: null | string @go(Name,*string) -} - -#StaticColumnParameters: { - // The name of the column. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#TTLInitParameters: { - // Valid values: ENABLED, DISABLED. The default value is DISABLED. - status?: null | string @go(Status,*string) -} - -#TTLObservation: { - // Valid values: ENABLED, DISABLED. The default value is DISABLED. - status?: null | string @go(Status,*string) -} - -#TTLParameters: { - // Valid values: ENABLED, DISABLED. The default value is DISABLED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -#TableInitParameters: { - // Specifies the read/write throughput capacity mode for the table. - capacitySpecification?: [...#CapacitySpecificationInitParameters] @go(CapacitySpecification,[]CapacitySpecificationInitParameters) - - // A description of the table. - comment?: [...#CommentInitParameters] @go(Comment,[]CommentInitParameters) - - // The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide. - defaultTimeToLive?: null | float64 @go(DefaultTimeToLive,*float64) - - // Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide. - encryptionSpecification?: [...#EncryptionSpecificationInitParameters] @go(EncryptionSpecification,[]EncryptionSpecificationInitParameters) - - // Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide. - pointInTimeRecovery?: [...#PointInTimeRecoveryInitParameters] @go(PointInTimeRecovery,[]PointInTimeRecoveryInitParameters) - - // Describes the schema of the table. - schemaDefinition?: [...#SchemaDefinitionInitParameters] @go(SchemaDefinition,[]SchemaDefinitionInitParameters) - - // Enables Time to Live custom settings for the table. More information can be found in the Developer Guide. - ttl?: [...#TTLInitParameters] @go(TTL,[]TTLInitParameters) - - // The name of the table. - tableName?: null | string @go(TableName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TableObservation: { - // The ARN of the table. - arn?: null | string @go(Arn,*string) - - // Specifies the read/write throughput capacity mode for the table. - capacitySpecification?: [...#CapacitySpecificationObservation] @go(CapacitySpecification,[]CapacitySpecificationObservation) - - // A description of the table. - comment?: [...#CommentObservation] @go(Comment,[]CommentObservation) - - // The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide. - defaultTimeToLive?: null | float64 @go(DefaultTimeToLive,*float64) - - // Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide. - encryptionSpecification?: [...#EncryptionSpecificationObservation] @go(EncryptionSpecification,[]EncryptionSpecificationObservation) - id?: null | string @go(ID,*string) - - // The name of the keyspace that the table is going to be created in. - keyspaceName?: null | string @go(KeyspaceName,*string) - - // Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide. - pointInTimeRecovery?: [...#PointInTimeRecoveryObservation] @go(PointInTimeRecovery,[]PointInTimeRecoveryObservation) - - // Describes the schema of the table. - schemaDefinition?: [...#SchemaDefinitionObservation] @go(SchemaDefinition,[]SchemaDefinitionObservation) - - // Enables Time to Live custom settings for the table. More information can be found in the Developer Guide. - ttl?: [...#TTLObservation] @go(TTL,[]TTLObservation) - - // The name of the table. - tableName?: null | string @go(TableName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#TableParameters: { - // Specifies the read/write throughput capacity mode for the table. - // +kubebuilder:validation:Optional - capacitySpecification?: [...#CapacitySpecificationParameters] @go(CapacitySpecification,[]CapacitySpecificationParameters) - - // A description of the table. - // +kubebuilder:validation:Optional - comment?: [...#CommentParameters] @go(Comment,[]CommentParameters) - - // The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide. - // +kubebuilder:validation:Optional - defaultTimeToLive?: null | float64 @go(DefaultTimeToLive,*float64) - - // Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide. - // +kubebuilder:validation:Optional - encryptionSpecification?: [...#EncryptionSpecificationParameters] @go(EncryptionSpecification,[]EncryptionSpecificationParameters) - - // The name of the keyspace that the table is going to be created in. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/keyspaces/v1beta1.Keyspace - // +kubebuilder:validation:Optional - keyspaceName?: null | string @go(KeyspaceName,*string) - - // Reference to a Keyspace in keyspaces to populate keyspaceName. - // +kubebuilder:validation:Optional - keyspaceNameRef?: null | v1.#Reference @go(KeyspaceNameRef,*v1.Reference) - - // Selector for a Keyspace in keyspaces to populate keyspaceName. - // +kubebuilder:validation:Optional - keyspaceNameSelector?: null | v1.#Selector @go(KeyspaceNameSelector,*v1.Selector) - - // Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide. - // +kubebuilder:validation:Optional - pointInTimeRecovery?: [...#PointInTimeRecoveryParameters] @go(PointInTimeRecovery,[]PointInTimeRecoveryParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Describes the schema of the table. - // +kubebuilder:validation:Optional - schemaDefinition?: [...#SchemaDefinitionParameters] @go(SchemaDefinition,[]SchemaDefinitionParameters) - - // Enables Time to Live custom settings for the table. More information can be found in the Developer Guide. - // +kubebuilder:validation:Optional - ttl?: [...#TTLParameters] @go(TTL,[]TTLParameters) - - // The name of the table. - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// TableSpec defines the desired state of Table -#TableSpec: { - v1.#ResourceSpec - forProvider: #TableParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TableInitParameters @go(InitProvider) -} - -// TableStatus defines the observed state of Table. -#TableStatus: { - v1.#ResourceStatus - atProvider?: #TableObservation @go(AtProvider) -} - -// Table is the Schema for the Tables API. Provides a Keyspaces Table. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Table: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.schemaDefinition) || (has(self.initProvider) && has(self.initProvider.schemaDefinition))",message="spec.forProvider.schemaDefinition is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.tableName) || (has(self.initProvider) && has(self.initProvider.tableName))",message="spec.forProvider.tableName is a required parameter" - spec: #TableSpec @go(Spec) - status?: #TableStatus @go(Status) -} - -// TableList contains a list of Tables -#TableList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Table] @go(Items,[]Table) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesis/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesis/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 0c49745..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesis/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kinesis/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=kinesis.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "kinesis.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesis/v1beta1/zz_stream_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesis/v1beta1/zz_stream_types_go_gen.cue deleted file mode 100644 index 2861c98..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesis/v1beta1/zz_stream_types_go_gen.cue +++ /dev/null @@ -1,180 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kinesis/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#StreamInitParameters: { - // The encryption type to use. The only acceptable values are NONE or KMS. The default value is NONE. - encryptionType?: null | string @go(EncryptionType,*string) - - // A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false. - enforceConsumerDeletion?: null | bool @go(EnforceConsumerDeletion,*bool) - - // Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24. - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) - - // – The number of shards that the stream will use. If the stream_mode is PROVISIONED, this field is required. - // Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more. - shardCount?: null | float64 @go(ShardCount,*float64) - - // A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable. - shardLevelMetrics?: [...null | string] @go(ShardLevelMetrics,[]*string) - - // Indicates the capacity mode of the data stream. Detailed below. - streamModeDetails?: [...#StreamModeDetailsInitParameters] @go(StreamModeDetails,[]StreamModeDetailsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#StreamModeDetailsInitParameters: { - // Specifies the capacity mode of the stream. Must be either PROVISIONED or ON_DEMAND. - streamMode?: null | string @go(StreamMode,*string) -} - -#StreamModeDetailsObservation: { - // Specifies the capacity mode of the stream. Must be either PROVISIONED or ON_DEMAND. - streamMode?: null | string @go(StreamMode,*string) -} - -#StreamModeDetailsParameters: { - // Specifies the capacity mode of the stream. Must be either PROVISIONED or ON_DEMAND. - // +kubebuilder:validation:Optional - streamMode?: null | string @go(StreamMode,*string) -} - -#StreamObservation: { - // The Amazon Resource Name (ARN) specifying the Stream (same as id) - arn?: null | string @go(Arn,*string) - - // The encryption type to use. The only acceptable values are NONE or KMS. The default value is NONE. - encryptionType?: null | string @go(EncryptionType,*string) - - // A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false. - enforceConsumerDeletion?: null | bool @go(EnforceConsumerDeletion,*bool) - - // The unique Stream id - id?: null | string @go(ID,*string) - - // The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24. - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) - - // – The number of shards that the stream will use. If the stream_mode is PROVISIONED, this field is required. - // Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more. - shardCount?: null | float64 @go(ShardCount,*float64) - - // A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable. - shardLevelMetrics?: [...null | string] @go(ShardLevelMetrics,[]*string) - - // Indicates the capacity mode of the data stream. Detailed below. - streamModeDetails?: [...#StreamModeDetailsObservation] @go(StreamModeDetails,[]StreamModeDetailsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#StreamParameters: { - // The encryption type to use. The only acceptable values are NONE or KMS. The default value is NONE. - // +kubebuilder:validation:Optional - encryptionType?: null | string @go(EncryptionType,*string) - - // A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false. - // +kubebuilder:validation:Optional - enforceConsumerDeletion?: null | bool @go(EnforceConsumerDeletion,*bool) - - // The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24. - // +kubebuilder:validation:Optional - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) - - // – The number of shards that the stream will use. If the stream_mode is PROVISIONED, this field is required. - // Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more. - // +kubebuilder:validation:Optional - shardCount?: null | float64 @go(ShardCount,*float64) - - // A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable. - // +kubebuilder:validation:Optional - shardLevelMetrics?: [...null | string] @go(ShardLevelMetrics,[]*string) - - // Indicates the capacity mode of the data stream. Detailed below. - // +kubebuilder:validation:Optional - streamModeDetails?: [...#StreamModeDetailsParameters] @go(StreamModeDetails,[]StreamModeDetailsParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// StreamSpec defines the desired state of Stream -#StreamSpec: { - v1.#ResourceSpec - forProvider: #StreamParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StreamInitParameters @go(InitProvider) -} - -// StreamStatus defines the observed state of Stream. -#StreamStatus: { - v1.#ResourceStatus - atProvider?: #StreamObservation @go(AtProvider) -} - -// Stream is the Schema for the Streams API. Provides a AWS Kinesis Stream -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Stream: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #StreamSpec @go(Spec) - status?: #StreamStatus @go(Status) -} - -// StreamList contains a list of Streams -#StreamList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Stream] @go(Items,[]Stream) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesis/v1beta1/zz_streamconsumer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesis/v1beta1/zz_streamconsumer_types_go_gen.cue deleted file mode 100644 index ff23868..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesis/v1beta1/zz_streamconsumer_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kinesis/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#StreamConsumerInitParameters: { - // Name of the stream consumer. - name?: null | string @go(Name,*string) -} - -#StreamConsumerObservation: { - // Amazon Resource Name (ARN) of the stream consumer. - arn?: null | string @go(Arn,*string) - - // Approximate timestamp in RFC3339 format of when the stream consumer was created. - creationTimestamp?: null | string @go(CreationTimestamp,*string) - - // Amazon Resource Name (ARN) of the stream consumer. - id?: null | string @go(ID,*string) - - // Name of the stream consumer. - name?: null | string @go(Name,*string) - - // – Amazon Resource Name (ARN) of the data stream the consumer is registered with. - streamArn?: null | string @go(StreamArn,*string) -} - -#StreamConsumerParameters: { - // Name of the stream consumer. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // – Amazon Resource Name (ARN) of the data stream the consumer is registered with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kinesis/v1beta1.Stream - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - streamArn?: null | string @go(StreamArn,*string) - - // Reference to a Stream in kinesis to populate streamArn. - // +kubebuilder:validation:Optional - streamArnRef?: null | v1.#Reference @go(StreamArnRef,*v1.Reference) - - // Selector for a Stream in kinesis to populate streamArn. - // +kubebuilder:validation:Optional - streamArnSelector?: null | v1.#Selector @go(StreamArnSelector,*v1.Selector) -} - -// StreamConsumerSpec defines the desired state of StreamConsumer -#StreamConsumerSpec: { - v1.#ResourceSpec - forProvider: #StreamConsumerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StreamConsumerInitParameters @go(InitProvider) -} - -// StreamConsumerStatus defines the observed state of StreamConsumer. -#StreamConsumerStatus: { - v1.#ResourceStatus - atProvider?: #StreamConsumerObservation @go(AtProvider) -} - -// StreamConsumer is the Schema for the StreamConsumers API. Manages a Kinesis Stream Consumer. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#StreamConsumer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #StreamConsumerSpec @go(Spec) - status?: #StreamConsumerStatus @go(Status) -} - -// StreamConsumerList contains a list of StreamConsumers -#StreamConsumerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#StreamConsumer] @go(Items,[]StreamConsumer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalytics/v1beta1/zz_application_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalytics/v1beta1/zz_application_types_go_gen.cue deleted file mode 100644 index 3f156d8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalytics/v1beta1/zz_application_types_go_gen.cue +++ /dev/null @@ -1,1053 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kinesisanalytics/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ApplicationInitParameters: { - // The CloudWatch log stream options to monitor application errors. - // See CloudWatch Logging Options below for more details. - cloudwatchLoggingOptions?: [...#CloudwatchLoggingOptionsInitParameters] @go(CloudwatchLoggingOptions,[]CloudwatchLoggingOptionsInitParameters) - - // SQL Code to transform input data, and generate output. - code?: null | string @go(Code,*string) - - // Description of the application. - description?: null | string @go(Description,*string) - - // Input configuration of the application. See Inputs below for more details. - inputs?: [...#InputsInitParameters] @go(Inputs,[]InputsInitParameters) - - // Output destination configuration of the application. See Outputs below for more details. - outputs?: [...#OutputsInitParameters] @go(Outputs,[]OutputsInitParameters) - - // An S3 Reference Data Source for the application. - // See Reference Data Sources below for more details. - referenceDataSources?: [...#ReferenceDataSourcesInitParameters] @go(ReferenceDataSources,[]ReferenceDataSourcesInitParameters) - - // Whether to start or stop the Kinesis Analytics Application. To start an application, an input with a defined starting_position must be configured. - // To modify an application's starting position, first stop the application by setting start_application = false, then update starting_position and set start_application = true. - startApplication?: null | bool @go(StartApplication,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ApplicationObservation: { - // The ARN of the Kinesis Analytics Appliation. - arn?: null | string @go(Arn,*string) - - // The CloudWatch log stream options to monitor application errors. - // See CloudWatch Logging Options below for more details. - cloudwatchLoggingOptions?: [...#CloudwatchLoggingOptionsObservation] @go(CloudwatchLoggingOptions,[]CloudwatchLoggingOptionsObservation) - - // SQL Code to transform input data, and generate output. - code?: null | string @go(Code,*string) - - // The Timestamp when the application version was created. - createTimestamp?: null | string @go(CreateTimestamp,*string) - - // Description of the application. - description?: null | string @go(Description,*string) - - // The ARN of the Kinesis Analytics Application. - id?: null | string @go(ID,*string) - - // Input configuration of the application. See Inputs below for more details. - inputs?: [...#InputsObservation] @go(Inputs,[]InputsObservation) - - // The Timestamp when the application was last updated. - lastUpdateTimestamp?: null | string @go(LastUpdateTimestamp,*string) - - // Output destination configuration of the application. See Outputs below for more details. - outputs?: [...#OutputsObservation] @go(Outputs,[]OutputsObservation) - - // An S3 Reference Data Source for the application. - // See Reference Data Sources below for more details. - referenceDataSources?: [...#ReferenceDataSourcesObservation] @go(ReferenceDataSources,[]ReferenceDataSourcesObservation) - - // Whether to start or stop the Kinesis Analytics Application. To start an application, an input with a defined starting_position must be configured. - // To modify an application's starting position, first stop the application by setting start_application = false, then update starting_position and set start_application = true. - startApplication?: null | bool @go(StartApplication,*bool) - - // The Status of the application. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The Version of the application. - version?: null | float64 @go(Version,*float64) -} - -#ApplicationParameters: { - // The CloudWatch log stream options to monitor application errors. - // See CloudWatch Logging Options below for more details. - // +kubebuilder:validation:Optional - cloudwatchLoggingOptions?: [...#CloudwatchLoggingOptionsParameters] @go(CloudwatchLoggingOptions,[]CloudwatchLoggingOptionsParameters) - - // SQL Code to transform input data, and generate output. - // +kubebuilder:validation:Optional - code?: null | string @go(Code,*string) - - // Description of the application. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Input configuration of the application. See Inputs below for more details. - // +kubebuilder:validation:Optional - inputs?: [...#InputsParameters] @go(Inputs,[]InputsParameters) - - // Output destination configuration of the application. See Outputs below for more details. - // +kubebuilder:validation:Optional - outputs?: [...#OutputsParameters] @go(Outputs,[]OutputsParameters) - - // An S3 Reference Data Source for the application. - // See Reference Data Sources below for more details. - // +kubebuilder:validation:Optional - referenceDataSources?: [...#ReferenceDataSourcesParameters] @go(ReferenceDataSources,[]ReferenceDataSourcesParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Whether to start or stop the Kinesis Analytics Application. To start an application, an input with a defined starting_position must be configured. - // To modify an application's starting position, first stop the application by setting start_application = false, then update starting_position and set start_application = true. - // +kubebuilder:validation:Optional - startApplication?: null | bool @go(StartApplication,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CloudwatchLoggingOptionsInitParameters: { -} - -#CloudwatchLoggingOptionsObservation: { - // The ARN of the Kinesis Analytics Application. - id?: null | string @go(ID,*string) - - // The ARN of the CloudWatch Log Stream. - logStreamArn?: null | string @go(LogStreamArn,*string) - - // The ARN of the IAM Role used to send application messages. - roleArn?: null | string @go(RoleArn,*string) -} - -#CloudwatchLoggingOptionsParameters: { - // The ARN of the CloudWatch Log Stream. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Stream - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - logStreamArn?: null | string @go(LogStreamArn,*string) - - // Reference to a Stream in cloudwatchlogs to populate logStreamArn. - // +kubebuilder:validation:Optional - logStreamArnRef?: null | v1.#Reference @go(LogStreamArnRef,*v1.Reference) - - // Selector for a Stream in cloudwatchlogs to populate logStreamArn. - // +kubebuilder:validation:Optional - logStreamArnSelector?: null | v1.#Selector @go(LogStreamArnSelector,*v1.Selector) - - // The ARN of the IAM Role used to send application messages. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -#CsvInitParameters: { - // The Column Delimiter. - recordColumnDelimiter?: null | string @go(RecordColumnDelimiter,*string) - - // The Row Delimiter. - recordRowDelimiter?: null | string @go(RecordRowDelimiter,*string) -} - -#CsvObservation: { - // The Column Delimiter. - recordColumnDelimiter?: null | string @go(RecordColumnDelimiter,*string) - - // The Row Delimiter. - recordRowDelimiter?: null | string @go(RecordRowDelimiter,*string) -} - -#CsvParameters: { - // The Column Delimiter. - // +kubebuilder:validation:Optional - recordColumnDelimiter?: null | string @go(RecordColumnDelimiter,*string) - - // The Row Delimiter. - // +kubebuilder:validation:Optional - recordRowDelimiter?: null | string @go(RecordRowDelimiter,*string) -} - -#InputsInitParameters: { - // The Kinesis Firehose configuration for the streaming source. Conflicts with kinesis_stream. - // See Kinesis Firehose below for more details. - kinesisFirehose?: [...#KinesisFirehoseInitParameters] @go(KinesisFirehose,[]KinesisFirehoseInitParameters) - - // The Kinesis Stream configuration for the streaming source. Conflicts with kinesis_firehose. - // See Kinesis Stream below for more details. - kinesisStream?: [...#KinesisStreamInitParameters] @go(KinesisStream,[]KinesisStreamInitParameters) - - // The Name Prefix to use when creating an in-application stream. - namePrefix?: null | string @go(NamePrefix,*string) - - // The number of Parallel in-application streams to create. - // See Parallelism below for more details. - parallelism?: [...#ParallelismInitParameters] @go(Parallelism,[]ParallelismInitParameters) - - // The Processing Configuration to transform records as they are received from the stream. - // See Processing Configuration below for more details. - processingConfiguration?: [...#ProcessingConfigurationInitParameters] @go(ProcessingConfiguration,[]ProcessingConfigurationInitParameters) - - // The Schema format of the data in the streaming source. See Source Schema below for more details. - schema?: [...#SchemaInitParameters] @go(Schema,[]SchemaInitParameters) - - // The point at which the application starts processing records from the streaming source. - // See Starting Position Configuration below for more details. - startingPositionConfiguration?: [...#StartingPositionConfigurationInitParameters] @go(StartingPositionConfiguration,[]StartingPositionConfigurationInitParameters) -} - -#InputsObservation: { - // The ARN of the Kinesis Analytics Application. - id?: null | string @go(ID,*string) - - // The Kinesis Firehose configuration for the streaming source. Conflicts with kinesis_stream. - // See Kinesis Firehose below for more details. - kinesisFirehose?: [...#KinesisFirehoseObservation] @go(KinesisFirehose,[]KinesisFirehoseObservation) - - // The Kinesis Stream configuration for the streaming source. Conflicts with kinesis_firehose. - // See Kinesis Stream below for more details. - kinesisStream?: [...#KinesisStreamObservation] @go(KinesisStream,[]KinesisStreamObservation) - - // The Name Prefix to use when creating an in-application stream. - namePrefix?: null | string @go(NamePrefix,*string) - - // The number of Parallel in-application streams to create. - // See Parallelism below for more details. - parallelism?: [...#ParallelismObservation] @go(Parallelism,[]ParallelismObservation) - - // The Processing Configuration to transform records as they are received from the stream. - // See Processing Configuration below for more details. - processingConfiguration?: [...#ProcessingConfigurationObservation] @go(ProcessingConfiguration,[]ProcessingConfigurationObservation) - - // The Schema format of the data in the streaming source. See Source Schema below for more details. - schema?: [...#SchemaObservation] @go(Schema,[]SchemaObservation) - - // The point at which the application starts processing records from the streaming source. - // See Starting Position Configuration below for more details. - startingPositionConfiguration?: [...#StartingPositionConfigurationObservation] @go(StartingPositionConfiguration,[]StartingPositionConfigurationObservation) - streamNames?: [...null | string] @go(StreamNames,[]*string) -} - -#InputsParameters: { - // The Kinesis Firehose configuration for the streaming source. Conflicts with kinesis_stream. - // See Kinesis Firehose below for more details. - // +kubebuilder:validation:Optional - kinesisFirehose?: [...#KinesisFirehoseParameters] @go(KinesisFirehose,[]KinesisFirehoseParameters) - - // The Kinesis Stream configuration for the streaming source. Conflicts with kinesis_firehose. - // See Kinesis Stream below for more details. - // +kubebuilder:validation:Optional - kinesisStream?: [...#KinesisStreamParameters] @go(KinesisStream,[]KinesisStreamParameters) - - // The Name Prefix to use when creating an in-application stream. - // +kubebuilder:validation:Optional - namePrefix?: null | string @go(NamePrefix,*string) - - // The number of Parallel in-application streams to create. - // See Parallelism below for more details. - // +kubebuilder:validation:Optional - parallelism?: [...#ParallelismParameters] @go(Parallelism,[]ParallelismParameters) - - // The Processing Configuration to transform records as they are received from the stream. - // See Processing Configuration below for more details. - // +kubebuilder:validation:Optional - processingConfiguration?: [...#ProcessingConfigurationParameters] @go(ProcessingConfiguration,[]ProcessingConfigurationParameters) - - // The Schema format of the data in the streaming source. See Source Schema below for more details. - // +kubebuilder:validation:Optional - schema: [...#SchemaParameters] @go(Schema,[]SchemaParameters) - - // The point at which the application starts processing records from the streaming source. - // See Starting Position Configuration below for more details. - // +kubebuilder:validation:Optional - startingPositionConfiguration?: [...#StartingPositionConfigurationParameters] @go(StartingPositionConfiguration,[]StartingPositionConfigurationParameters) -} - -#JSONInitParameters: { - // Path to the top-level parent that contains the records. - recordRowPath?: null | string @go(RecordRowPath,*string) -} - -#JSONObservation: { - // Path to the top-level parent that contains the records. - recordRowPath?: null | string @go(RecordRowPath,*string) -} - -#JSONParameters: { - // Path to the top-level parent that contains the records. - // +kubebuilder:validation:Optional - recordRowPath?: null | string @go(RecordRowPath,*string) -} - -#KinesisFirehoseInitParameters: { - // The ARN of the Lambda function. - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - roleArn?: null | string @go(RoleArn,*string) -} - -#KinesisFirehoseObservation: { - // The ARN of the Lambda function. - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - roleArn?: null | string @go(RoleArn,*string) -} - -#KinesisFirehoseParameters: { - // The ARN of the Lambda function. - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#KinesisStreamInitParameters: { -} - -#KinesisStreamObservation: { - // The ARN of the Lambda function. - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - roleArn?: null | string @go(RoleArn,*string) -} - -#KinesisStreamParameters: { - // The ARN of the Lambda function. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kinesis/v1beta1.Stream - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a Stream in kinesis to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a Stream in kinesis to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) - - // The IAM Role ARN to read the data. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -#LambdaInitParameters: { - // The ARN of the Lambda function. - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - roleArn?: null | string @go(RoleArn,*string) -} - -#LambdaObservation: { - // The ARN of the Lambda function. - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - roleArn?: null | string @go(RoleArn,*string) -} - -#LambdaParameters: { - // The ARN of the Lambda function. - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#MappingParametersCsvInitParameters: { - // The Column Delimiter. - recordColumnDelimiter?: null | string @go(RecordColumnDelimiter,*string) - - // The Row Delimiter. - recordRowDelimiter?: null | string @go(RecordRowDelimiter,*string) -} - -#MappingParametersCsvObservation: { - // The Column Delimiter. - recordColumnDelimiter?: null | string @go(RecordColumnDelimiter,*string) - - // The Row Delimiter. - recordRowDelimiter?: null | string @go(RecordRowDelimiter,*string) -} - -#MappingParametersCsvParameters: { - // The Column Delimiter. - // +kubebuilder:validation:Optional - recordColumnDelimiter?: null | string @go(RecordColumnDelimiter,*string) - - // The Row Delimiter. - // +kubebuilder:validation:Optional - recordRowDelimiter?: null | string @go(RecordRowDelimiter,*string) -} - -#MappingParametersInitParameters: { - // Mapping information when the record format uses delimiters. - // See CSV Mapping Parameters below for more details. - csv?: [...#CsvInitParameters] @go(Csv,[]CsvInitParameters) - - // Mapping information when JSON is the record format on the streaming source. - // See JSON Mapping Parameters below for more details. - json?: [...#JSONInitParameters] @go(JSON,[]JSONInitParameters) -} - -#MappingParametersJSONInitParameters: { - // Path to the top-level parent that contains the records. - recordRowPath?: null | string @go(RecordRowPath,*string) -} - -#MappingParametersJSONObservation: { - // Path to the top-level parent that contains the records. - recordRowPath?: null | string @go(RecordRowPath,*string) -} - -#MappingParametersJSONParameters: { - // Path to the top-level parent that contains the records. - // +kubebuilder:validation:Optional - recordRowPath?: null | string @go(RecordRowPath,*string) -} - -#MappingParametersObservation: { - // Mapping information when the record format uses delimiters. - // See CSV Mapping Parameters below for more details. - csv?: [...#CsvObservation] @go(Csv,[]CsvObservation) - - // Mapping information when JSON is the record format on the streaming source. - // See JSON Mapping Parameters below for more details. - json?: [...#JSONObservation] @go(JSON,[]JSONObservation) -} - -#MappingParametersParameters: { - // Mapping information when the record format uses delimiters. - // See CSV Mapping Parameters below for more details. - // +kubebuilder:validation:Optional - csv?: [...#CsvParameters] @go(Csv,[]CsvParameters) - - // Mapping information when JSON is the record format on the streaming source. - // See JSON Mapping Parameters below for more details. - // +kubebuilder:validation:Optional - json?: [...#JSONParameters] @go(JSON,[]JSONParameters) -} - -#OutputsInitParameters: { - // The Kinesis Firehose configuration for the destination stream. Conflicts with kinesis_stream. - // See Kinesis Firehose below for more details. - kinesisFirehose?: [...#OutputsKinesisFirehoseInitParameters] @go(KinesisFirehose,[]OutputsKinesisFirehoseInitParameters) - - // The Kinesis Stream configuration for the destination stream. Conflicts with kinesis_firehose. - // See Kinesis Stream below for more details. - kinesisStream?: [...#OutputsKinesisStreamInitParameters] @go(KinesisStream,[]OutputsKinesisStreamInitParameters) - - // The Lambda function destination. See Lambda below for more details. - lambda?: [...#OutputsLambdaInitParameters] @go(Lambda,[]OutputsLambdaInitParameters) - - // The Name of the in-application stream. - name?: null | string @go(Name,*string) - - // The Schema format of the data written to the destination. See Destination Schema below for more details. - schema?: [...#OutputsSchemaInitParameters] @go(Schema,[]OutputsSchemaInitParameters) -} - -#OutputsKinesisFirehoseInitParameters: { -} - -#OutputsKinesisFirehoseObservation: { - // The ARN of the Lambda function. - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - roleArn?: null | string @go(RoleArn,*string) -} - -#OutputsKinesisFirehoseParameters: { - // The ARN of the Lambda function. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/firehose/v1beta1.DeliveryStream - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",false) - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a DeliveryStream in firehose to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a DeliveryStream in firehose to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) - - // The IAM Role ARN to read the data. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -#OutputsKinesisStreamInitParameters: { - // The ARN of the Lambda function. - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - roleArn?: null | string @go(RoleArn,*string) -} - -#OutputsKinesisStreamObservation: { - // The ARN of the Lambda function. - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - roleArn?: null | string @go(RoleArn,*string) -} - -#OutputsKinesisStreamParameters: { - // The ARN of the Lambda function. - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#OutputsLambdaInitParameters: { - // The ARN of the Lambda function. - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - roleArn?: null | string @go(RoleArn,*string) -} - -#OutputsLambdaObservation: { - // The ARN of the Lambda function. - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - roleArn?: null | string @go(RoleArn,*string) -} - -#OutputsLambdaParameters: { - // The ARN of the Lambda function. - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // The IAM Role ARN to read the data. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#OutputsObservation: { - // The ARN of the Kinesis Analytics Application. - id?: null | string @go(ID,*string) - - // The Kinesis Firehose configuration for the destination stream. Conflicts with kinesis_stream. - // See Kinesis Firehose below for more details. - kinesisFirehose?: [...#OutputsKinesisFirehoseObservation] @go(KinesisFirehose,[]OutputsKinesisFirehoseObservation) - - // The Kinesis Stream configuration for the destination stream. Conflicts with kinesis_firehose. - // See Kinesis Stream below for more details. - kinesisStream?: [...#OutputsKinesisStreamObservation] @go(KinesisStream,[]OutputsKinesisStreamObservation) - - // The Lambda function destination. See Lambda below for more details. - lambda?: [...#OutputsLambdaObservation] @go(Lambda,[]OutputsLambdaObservation) - - // The Name of the in-application stream. - name?: null | string @go(Name,*string) - - // The Schema format of the data written to the destination. See Destination Schema below for more details. - schema?: [...#OutputsSchemaObservation] @go(Schema,[]OutputsSchemaObservation) -} - -#OutputsParameters: { - // The Kinesis Firehose configuration for the destination stream. Conflicts with kinesis_stream. - // See Kinesis Firehose below for more details. - // +kubebuilder:validation:Optional - kinesisFirehose?: [...#OutputsKinesisFirehoseParameters] @go(KinesisFirehose,[]OutputsKinesisFirehoseParameters) - - // The Kinesis Stream configuration for the destination stream. Conflicts with kinesis_firehose. - // See Kinesis Stream below for more details. - // +kubebuilder:validation:Optional - kinesisStream?: [...#OutputsKinesisStreamParameters] @go(KinesisStream,[]OutputsKinesisStreamParameters) - - // The Lambda function destination. See Lambda below for more details. - // +kubebuilder:validation:Optional - lambda?: [...#OutputsLambdaParameters] @go(Lambda,[]OutputsLambdaParameters) - - // The Name of the in-application stream. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The Schema format of the data written to the destination. See Destination Schema below for more details. - // +kubebuilder:validation:Optional - schema: [...#OutputsSchemaParameters] @go(Schema,[]OutputsSchemaParameters) -} - -#OutputsSchemaInitParameters: { - // The Format Type of the records on the output stream. Can be CSV or JSON. - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#OutputsSchemaObservation: { - // The Format Type of the records on the output stream. Can be CSV or JSON. - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#OutputsSchemaParameters: { - // The Format Type of the records on the output stream. Can be CSV or JSON. - // +kubebuilder:validation:Optional - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#ParallelismInitParameters: { - // The Count of streams. - count?: null | float64 @go(Count,*float64) -} - -#ParallelismObservation: { - // The Count of streams. - count?: null | float64 @go(Count,*float64) -} - -#ParallelismParameters: { - // The Count of streams. - // +kubebuilder:validation:Optional - count?: null | float64 @go(Count,*float64) -} - -#ProcessingConfigurationInitParameters: { - // The Lambda function configuration. See Lambda below for more details. - lambda?: [...#LambdaInitParameters] @go(Lambda,[]LambdaInitParameters) -} - -#ProcessingConfigurationObservation: { - // The Lambda function configuration. See Lambda below for more details. - lambda?: [...#LambdaObservation] @go(Lambda,[]LambdaObservation) -} - -#ProcessingConfigurationParameters: { - // The Lambda function configuration. See Lambda below for more details. - // +kubebuilder:validation:Optional - lambda: [...#LambdaParameters] @go(Lambda,[]LambdaParameters) -} - -#RecordColumnsInitParameters: { - // The Mapping reference to the data element. - mapping?: null | string @go(Mapping,*string) - - // Name of the column. - name?: null | string @go(Name,*string) - - // The SQL Type of the column. - sqlType?: null | string @go(SQLType,*string) -} - -#RecordColumnsObservation: { - // The Mapping reference to the data element. - mapping?: null | string @go(Mapping,*string) - - // Name of the column. - name?: null | string @go(Name,*string) - - // The SQL Type of the column. - sqlType?: null | string @go(SQLType,*string) -} - -#RecordColumnsParameters: { - // The Mapping reference to the data element. - // +kubebuilder:validation:Optional - mapping?: null | string @go(Mapping,*string) - - // Name of the column. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The SQL Type of the column. - // +kubebuilder:validation:Optional - sqlType?: null | string @go(SQLType,*string) -} - -#RecordFormatInitParameters: { - // The Mapping Information for the record format. - // See Mapping Parameters below for more details. - mappingParameters?: [...#MappingParametersInitParameters] @go(MappingParameters,[]MappingParametersInitParameters) -} - -#RecordFormatMappingParametersInitParameters: { - // Mapping information when the record format uses delimiters. - // See CSV Mapping Parameters below for more details. - csv?: [...#MappingParametersCsvInitParameters] @go(Csv,[]MappingParametersCsvInitParameters) - - // Mapping information when JSON is the record format on the streaming source. - // See JSON Mapping Parameters below for more details. - json?: [...#MappingParametersJSONInitParameters] @go(JSON,[]MappingParametersJSONInitParameters) -} - -#RecordFormatMappingParametersObservation: { - // Mapping information when the record format uses delimiters. - // See CSV Mapping Parameters below for more details. - csv?: [...#MappingParametersCsvObservation] @go(Csv,[]MappingParametersCsvObservation) - - // Mapping information when JSON is the record format on the streaming source. - // See JSON Mapping Parameters below for more details. - json?: [...#MappingParametersJSONObservation] @go(JSON,[]MappingParametersJSONObservation) -} - -#RecordFormatMappingParametersParameters: { - // Mapping information when the record format uses delimiters. - // See CSV Mapping Parameters below for more details. - // +kubebuilder:validation:Optional - csv?: [...#MappingParametersCsvParameters] @go(Csv,[]MappingParametersCsvParameters) - - // Mapping information when JSON is the record format on the streaming source. - // See JSON Mapping Parameters below for more details. - // +kubebuilder:validation:Optional - json?: [...#MappingParametersJSONParameters] @go(JSON,[]MappingParametersJSONParameters) -} - -#RecordFormatObservation: { - // The Mapping Information for the record format. - // See Mapping Parameters below for more details. - mappingParameters?: [...#MappingParametersObservation] @go(MappingParameters,[]MappingParametersObservation) - - // The Format Type of the records on the output stream. Can be CSV or JSON. - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#RecordFormatParameters: { - // The Mapping Information for the record format. - // See Mapping Parameters below for more details. - // +kubebuilder:validation:Optional - mappingParameters?: [...#MappingParametersParameters] @go(MappingParameters,[]MappingParametersParameters) -} - -#ReferenceDataSourcesInitParameters: { - // The S3 configuration for the reference data source. See S3 Reference below for more details. - s3?: [...#S3InitParameters] @go(S3,[]S3InitParameters) - - // The Schema format of the data in the streaming source. See Source Schema below for more details. - schema?: [...#ReferenceDataSourcesSchemaInitParameters] @go(Schema,[]ReferenceDataSourcesSchemaInitParameters) - - // The in-application Table Name. - tableName?: null | string @go(TableName,*string) -} - -#ReferenceDataSourcesObservation: { - // The ARN of the Kinesis Analytics Application. - id?: null | string @go(ID,*string) - - // The S3 configuration for the reference data source. See S3 Reference below for more details. - s3?: [...#S3Observation] @go(S3,[]S3Observation) - - // The Schema format of the data in the streaming source. See Source Schema below for more details. - schema?: [...#ReferenceDataSourcesSchemaObservation] @go(Schema,[]ReferenceDataSourcesSchemaObservation) - - // The in-application Table Name. - tableName?: null | string @go(TableName,*string) -} - -#ReferenceDataSourcesParameters: { - // The S3 configuration for the reference data source. See S3 Reference below for more details. - // +kubebuilder:validation:Optional - s3: [...#S3Parameters] @go(S3,[]S3Parameters) - - // The Schema format of the data in the streaming source. See Source Schema below for more details. - // +kubebuilder:validation:Optional - schema: [...#ReferenceDataSourcesSchemaParameters] @go(Schema,[]ReferenceDataSourcesSchemaParameters) - - // The in-application Table Name. - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) -} - -#ReferenceDataSourcesSchemaInitParameters: { - // The Record Column mapping for the streaming source data element. - // See Record Columns below for more details. - recordColumns?: [...#SchemaRecordColumnsInitParameters] @go(RecordColumns,[]SchemaRecordColumnsInitParameters) - - // The Encoding of the record in the streaming source. - recordEncoding?: null | string @go(RecordEncoding,*string) - - // The Record Format and mapping information to schematize a record. - // See Record Format below for more details. - recordFormat?: [...#SchemaRecordFormatInitParameters] @go(RecordFormat,[]SchemaRecordFormatInitParameters) -} - -#ReferenceDataSourcesSchemaObservation: { - // The Record Column mapping for the streaming source data element. - // See Record Columns below for more details. - recordColumns?: [...#SchemaRecordColumnsObservation] @go(RecordColumns,[]SchemaRecordColumnsObservation) - - // The Encoding of the record in the streaming source. - recordEncoding?: null | string @go(RecordEncoding,*string) - - // The Record Format and mapping information to schematize a record. - // See Record Format below for more details. - recordFormat?: [...#SchemaRecordFormatObservation] @go(RecordFormat,[]SchemaRecordFormatObservation) -} - -#ReferenceDataSourcesSchemaParameters: { - // The Record Column mapping for the streaming source data element. - // See Record Columns below for more details. - // +kubebuilder:validation:Optional - recordColumns: [...#SchemaRecordColumnsParameters] @go(RecordColumns,[]SchemaRecordColumnsParameters) - - // The Encoding of the record in the streaming source. - // +kubebuilder:validation:Optional - recordEncoding?: null | string @go(RecordEncoding,*string) - - // The Record Format and mapping information to schematize a record. - // See Record Format below for more details. - // +kubebuilder:validation:Optional - recordFormat: [...#SchemaRecordFormatParameters] @go(RecordFormat,[]SchemaRecordFormatParameters) -} - -#S3InitParameters: { - // The S3 Bucket ARN. - bucketArn?: null | string @go(BucketArn,*string) - - // The File Key name containing reference data. - fileKey?: null | string @go(FileKey,*string) - - // The IAM Role ARN to read the data. - roleArn?: null | string @go(RoleArn,*string) -} - -#S3Observation: { - // The S3 Bucket ARN. - bucketArn?: null | string @go(BucketArn,*string) - - // The File Key name containing reference data. - fileKey?: null | string @go(FileKey,*string) - - // The IAM Role ARN to read the data. - roleArn?: null | string @go(RoleArn,*string) -} - -#S3Parameters: { - // The S3 Bucket ARN. - // +kubebuilder:validation:Optional - bucketArn?: null | string @go(BucketArn,*string) - - // The File Key name containing reference data. - // +kubebuilder:validation:Optional - fileKey?: null | string @go(FileKey,*string) - - // The IAM Role ARN to read the data. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) -} - -#SchemaInitParameters: { - // The Record Column mapping for the streaming source data element. - // See Record Columns below for more details. - recordColumns?: [...#RecordColumnsInitParameters] @go(RecordColumns,[]RecordColumnsInitParameters) - - // The Encoding of the record in the streaming source. - recordEncoding?: null | string @go(RecordEncoding,*string) - - // The Record Format and mapping information to schematize a record. - // See Record Format below for more details. - recordFormat?: [...#RecordFormatInitParameters] @go(RecordFormat,[]RecordFormatInitParameters) -} - -#SchemaObservation: { - // The Record Column mapping for the streaming source data element. - // See Record Columns below for more details. - recordColumns?: [...#RecordColumnsObservation] @go(RecordColumns,[]RecordColumnsObservation) - - // The Encoding of the record in the streaming source. - recordEncoding?: null | string @go(RecordEncoding,*string) - - // The Record Format and mapping information to schematize a record. - // See Record Format below for more details. - recordFormat?: [...#RecordFormatObservation] @go(RecordFormat,[]RecordFormatObservation) -} - -#SchemaParameters: { - // The Record Column mapping for the streaming source data element. - // See Record Columns below for more details. - // +kubebuilder:validation:Optional - recordColumns: [...#RecordColumnsParameters] @go(RecordColumns,[]RecordColumnsParameters) - - // The Encoding of the record in the streaming source. - // +kubebuilder:validation:Optional - recordEncoding?: null | string @go(RecordEncoding,*string) - - // The Record Format and mapping information to schematize a record. - // See Record Format below for more details. - // +kubebuilder:validation:Optional - recordFormat: [...#RecordFormatParameters] @go(RecordFormat,[]RecordFormatParameters) -} - -#SchemaRecordColumnsInitParameters: { - // The Mapping reference to the data element. - mapping?: null | string @go(Mapping,*string) - - // Name of the column. - name?: null | string @go(Name,*string) - - // The SQL Type of the column. - sqlType?: null | string @go(SQLType,*string) -} - -#SchemaRecordColumnsObservation: { - // The Mapping reference to the data element. - mapping?: null | string @go(Mapping,*string) - - // Name of the column. - name?: null | string @go(Name,*string) - - // The SQL Type of the column. - sqlType?: null | string @go(SQLType,*string) -} - -#SchemaRecordColumnsParameters: { - // The Mapping reference to the data element. - // +kubebuilder:validation:Optional - mapping?: null | string @go(Mapping,*string) - - // Name of the column. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The SQL Type of the column. - // +kubebuilder:validation:Optional - sqlType?: null | string @go(SQLType,*string) -} - -#SchemaRecordFormatInitParameters: { - // The Mapping Information for the record format. - // See Mapping Parameters below for more details. - mappingParameters?: [...#RecordFormatMappingParametersInitParameters] @go(MappingParameters,[]RecordFormatMappingParametersInitParameters) -} - -#SchemaRecordFormatObservation: { - // The Mapping Information for the record format. - // See Mapping Parameters below for more details. - mappingParameters?: [...#RecordFormatMappingParametersObservation] @go(MappingParameters,[]RecordFormatMappingParametersObservation) - - // The Format Type of the records on the output stream. Can be CSV or JSON. - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#SchemaRecordFormatParameters: { - // The Mapping Information for the record format. - // See Mapping Parameters below for more details. - // +kubebuilder:validation:Optional - mappingParameters?: [...#RecordFormatMappingParametersParameters] @go(MappingParameters,[]RecordFormatMappingParametersParameters) -} - -#StartingPositionConfigurationInitParameters: { - // The starting position on the stream. Valid values: LAST_STOPPED_POINT, NOW, TRIM_HORIZON. - startingPosition?: null | string @go(StartingPosition,*string) -} - -#StartingPositionConfigurationObservation: { - // The starting position on the stream. Valid values: LAST_STOPPED_POINT, NOW, TRIM_HORIZON. - startingPosition?: null | string @go(StartingPosition,*string) -} - -#StartingPositionConfigurationParameters: { - // The starting position on the stream. Valid values: LAST_STOPPED_POINT, NOW, TRIM_HORIZON. - // +kubebuilder:validation:Optional - startingPosition?: null | string @go(StartingPosition,*string) -} - -// ApplicationSpec defines the desired state of Application -#ApplicationSpec: { - v1.#ResourceSpec - forProvider: #ApplicationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ApplicationInitParameters @go(InitProvider) -} - -// ApplicationStatus defines the observed state of Application. -#ApplicationStatus: { - v1.#ResourceStatus - atProvider?: #ApplicationObservation @go(AtProvider) -} - -// Application is the Schema for the Applications API. Provides a AWS Kinesis Analytics Application -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Application: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ApplicationSpec @go(Spec) - status?: #ApplicationStatus @go(Status) -} - -// ApplicationList contains a list of Applications -#ApplicationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Application] @go(Items,[]Application) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalytics/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalytics/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 3800506..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalytics/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kinesisanalytics/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=kinesisanalytics.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "kinesisanalytics.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1/zz_application_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1/zz_application_types_go_gen.cue deleted file mode 100644 index 419fdb2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1/zz_application_types_go_gen.cue +++ /dev/null @@ -1,1470 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ApplicationCodeConfigurationInitParameters: { - // The location and type of the application code. - codeContent?: [...#CodeContentInitParameters] @go(CodeContent,[]CodeContentInitParameters) - - // Specifies whether the code content is in text or zip format. Valid values: PLAINTEXT, ZIPFILE. - codeContentType?: null | string @go(CodeContentType,*string) -} - -#ApplicationCodeConfigurationObservation: { - // The location and type of the application code. - codeContent?: [...#CodeContentObservation] @go(CodeContent,[]CodeContentObservation) - - // Specifies whether the code content is in text or zip format. Valid values: PLAINTEXT, ZIPFILE. - codeContentType?: null | string @go(CodeContentType,*string) -} - -#ApplicationCodeConfigurationParameters: { - // The location and type of the application code. - // +kubebuilder:validation:Optional - codeContent?: [...#CodeContentParameters] @go(CodeContent,[]CodeContentParameters) - - // Specifies whether the code content is in text or zip format. Valid values: PLAINTEXT, ZIPFILE. - // +kubebuilder:validation:Optional - codeContentType?: null | string @go(CodeContentType,*string) -} - -#ApplicationConfigurationInitParameters: { - // The code location and type parameters for the application. - applicationCodeConfiguration?: [...#ApplicationCodeConfigurationInitParameters] @go(ApplicationCodeConfiguration,[]ApplicationCodeConfigurationInitParameters) - - // Describes whether snapshots are enabled for a Flink-based application. - applicationSnapshotConfiguration?: [...#ApplicationSnapshotConfigurationInitParameters] @go(ApplicationSnapshotConfiguration,[]ApplicationSnapshotConfigurationInitParameters) - - // Describes execution properties for a Flink-based application. - environmentProperties?: [...#EnvironmentPropertiesInitParameters] @go(EnvironmentProperties,[]EnvironmentPropertiesInitParameters) - - // The configuration of a Flink-based application. - flinkApplicationConfiguration?: [...#FlinkApplicationConfigurationInitParameters] @go(FlinkApplicationConfiguration,[]FlinkApplicationConfigurationInitParameters) - - // Describes the starting properties for a Flink-based application. - runConfiguration?: [...#RunConfigurationInitParameters] @go(RunConfiguration,[]RunConfigurationInitParameters) - - // The configuration of a SQL-based application. - sqlApplicationConfiguration?: [...#SQLApplicationConfigurationInitParameters] @go(SQLApplicationConfiguration,[]SQLApplicationConfigurationInitParameters) - - // The VPC configuration of a Flink-based application. - vpcConfiguration?: [...#VPCConfigurationInitParameters] @go(VPCConfiguration,[]VPCConfigurationInitParameters) -} - -#ApplicationConfigurationObservation: { - // The code location and type parameters for the application. - applicationCodeConfiguration?: [...#ApplicationCodeConfigurationObservation] @go(ApplicationCodeConfiguration,[]ApplicationCodeConfigurationObservation) - - // Describes whether snapshots are enabled for a Flink-based application. - applicationSnapshotConfiguration?: [...#ApplicationSnapshotConfigurationObservation] @go(ApplicationSnapshotConfiguration,[]ApplicationSnapshotConfigurationObservation) - - // Describes execution properties for a Flink-based application. - environmentProperties?: [...#EnvironmentPropertiesObservation] @go(EnvironmentProperties,[]EnvironmentPropertiesObservation) - - // The configuration of a Flink-based application. - flinkApplicationConfiguration?: [...#FlinkApplicationConfigurationObservation] @go(FlinkApplicationConfiguration,[]FlinkApplicationConfigurationObservation) - - // Describes the starting properties for a Flink-based application. - runConfiguration?: [...#RunConfigurationObservation] @go(RunConfiguration,[]RunConfigurationObservation) - - // The configuration of a SQL-based application. - sqlApplicationConfiguration?: [...#SQLApplicationConfigurationObservation] @go(SQLApplicationConfiguration,[]SQLApplicationConfigurationObservation) - - // The VPC configuration of a Flink-based application. - vpcConfiguration?: [...#VPCConfigurationObservation] @go(VPCConfiguration,[]VPCConfigurationObservation) -} - -#ApplicationConfigurationParameters: { - // The code location and type parameters for the application. - // +kubebuilder:validation:Optional - applicationCodeConfiguration: [...#ApplicationCodeConfigurationParameters] @go(ApplicationCodeConfiguration,[]ApplicationCodeConfigurationParameters) - - // Describes whether snapshots are enabled for a Flink-based application. - // +kubebuilder:validation:Optional - applicationSnapshotConfiguration?: [...#ApplicationSnapshotConfigurationParameters] @go(ApplicationSnapshotConfiguration,[]ApplicationSnapshotConfigurationParameters) - - // Describes execution properties for a Flink-based application. - // +kubebuilder:validation:Optional - environmentProperties?: [...#EnvironmentPropertiesParameters] @go(EnvironmentProperties,[]EnvironmentPropertiesParameters) - - // The configuration of a Flink-based application. - // +kubebuilder:validation:Optional - flinkApplicationConfiguration?: [...#FlinkApplicationConfigurationParameters] @go(FlinkApplicationConfiguration,[]FlinkApplicationConfigurationParameters) - - // Describes the starting properties for a Flink-based application. - // +kubebuilder:validation:Optional - runConfiguration?: [...#RunConfigurationParameters] @go(RunConfiguration,[]RunConfigurationParameters) - - // The configuration of a SQL-based application. - // +kubebuilder:validation:Optional - sqlApplicationConfiguration?: [...#SQLApplicationConfigurationParameters] @go(SQLApplicationConfiguration,[]SQLApplicationConfigurationParameters) - - // The VPC configuration of a Flink-based application. - // +kubebuilder:validation:Optional - vpcConfiguration?: [...#VPCConfigurationParameters] @go(VPCConfiguration,[]VPCConfigurationParameters) -} - -#ApplicationInitParameters: { - // The application's configuration - applicationConfiguration?: [...#ApplicationConfigurationInitParameters] @go(ApplicationConfiguration,[]ApplicationConfigurationInitParameters) - - // A CloudWatch log stream to monitor application configuration errors. - cloudwatchLoggingOptions?: [...#CloudwatchLoggingOptionsInitParameters] @go(CloudwatchLoggingOptions,[]CloudwatchLoggingOptionsInitParameters) - - // A summary description of the application. - description?: null | string @go(Description,*string) - - // Whether to force stop an unresponsive Flink-based application. - forceStop?: null | bool @go(ForceStop,*bool) - - // The runtime environment for the application. Valid values: SQL-1_0, FLINK-1_6, FLINK-1_8, FLINK-1_11, FLINK-1_13, FLINK-1_15. - runtimeEnvironment?: null | string @go(RuntimeEnvironment,*string) - - // Whether to start or stop the application. - startApplication?: null | bool @go(StartApplication,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ApplicationObservation: { - // The application's configuration - applicationConfiguration?: [...#ApplicationConfigurationObservation] @go(ApplicationConfiguration,[]ApplicationConfigurationObservation) - - // The ARN of the application. - arn?: null | string @go(Arn,*string) - - // A CloudWatch log stream to monitor application configuration errors. - cloudwatchLoggingOptions?: [...#CloudwatchLoggingOptionsObservation] @go(CloudwatchLoggingOptions,[]CloudwatchLoggingOptionsObservation) - - // The current timestamp when the application was created. - createTimestamp?: null | string @go(CreateTimestamp,*string) - - // A summary description of the application. - description?: null | string @go(Description,*string) - - // Whether to force stop an unresponsive Flink-based application. - forceStop?: null | bool @go(ForceStop,*bool) - - // The application identifier. - id?: null | string @go(ID,*string) - - // The current timestamp when the application was last updated. - lastUpdateTimestamp?: null | string @go(LastUpdateTimestamp,*string) - - // The runtime environment for the application. Valid values: SQL-1_0, FLINK-1_6, FLINK-1_8, FLINK-1_11, FLINK-1_13, FLINK-1_15. - runtimeEnvironment?: null | string @go(RuntimeEnvironment,*string) - - // The ARN of the IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources. - serviceExecutionRole?: null | string @go(ServiceExecutionRole,*string) - - // Whether to start or stop the application. - startApplication?: null | bool @go(StartApplication,*bool) - - // The status of the application. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The current application version. Kinesis Data Analytics updates the version_id each time the application is updated. - versionId?: null | float64 @go(VersionID,*float64) -} - -#ApplicationParameters: { - // The application's configuration - // +kubebuilder:validation:Optional - applicationConfiguration?: [...#ApplicationConfigurationParameters] @go(ApplicationConfiguration,[]ApplicationConfigurationParameters) - - // A CloudWatch log stream to monitor application configuration errors. - // +kubebuilder:validation:Optional - cloudwatchLoggingOptions?: [...#CloudwatchLoggingOptionsParameters] @go(CloudwatchLoggingOptions,[]CloudwatchLoggingOptionsParameters) - - // A summary description of the application. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether to force stop an unresponsive Flink-based application. - // +kubebuilder:validation:Optional - forceStop?: null | bool @go(ForceStop,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The runtime environment for the application. Valid values: SQL-1_0, FLINK-1_6, FLINK-1_8, FLINK-1_11, FLINK-1_13, FLINK-1_15. - // +kubebuilder:validation:Optional - runtimeEnvironment?: null | string @go(RuntimeEnvironment,*string) - - // The ARN of the IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - serviceExecutionRole?: null | string @go(ServiceExecutionRole,*string) - - // Reference to a Role in iam to populate serviceExecutionRole. - // +kubebuilder:validation:Optional - serviceExecutionRoleRef?: null | v1.#Reference @go(ServiceExecutionRoleRef,*v1.Reference) - - // Selector for a Role in iam to populate serviceExecutionRole. - // +kubebuilder:validation:Optional - serviceExecutionRoleSelector?: null | v1.#Selector @go(ServiceExecutionRoleSelector,*v1.Selector) - - // Whether to start or stop the application. - // +kubebuilder:validation:Optional - startApplication?: null | bool @go(StartApplication,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ApplicationRestoreConfigurationInitParameters: { - // Specifies how the application should be restored. Valid values: RESTORE_FROM_CUSTOM_SNAPSHOT, RESTORE_FROM_LATEST_SNAPSHOT, SKIP_RESTORE_FROM_SNAPSHOT. - applicationRestoreType?: null | string @go(ApplicationRestoreType,*string) - - // The identifier of an existing snapshot of application state to use to restart an application. The application uses this value if RESTORE_FROM_CUSTOM_SNAPSHOT is specified for application_restore_type. - snapshotName?: null | string @go(SnapshotName,*string) -} - -#ApplicationRestoreConfigurationObservation: { - // Specifies how the application should be restored. Valid values: RESTORE_FROM_CUSTOM_SNAPSHOT, RESTORE_FROM_LATEST_SNAPSHOT, SKIP_RESTORE_FROM_SNAPSHOT. - applicationRestoreType?: null | string @go(ApplicationRestoreType,*string) - - // The identifier of an existing snapshot of application state to use to restart an application. The application uses this value if RESTORE_FROM_CUSTOM_SNAPSHOT is specified for application_restore_type. - snapshotName?: null | string @go(SnapshotName,*string) -} - -#ApplicationRestoreConfigurationParameters: { - // Specifies how the application should be restored. Valid values: RESTORE_FROM_CUSTOM_SNAPSHOT, RESTORE_FROM_LATEST_SNAPSHOT, SKIP_RESTORE_FROM_SNAPSHOT. - // +kubebuilder:validation:Optional - applicationRestoreType?: null | string @go(ApplicationRestoreType,*string) - - // The identifier of an existing snapshot of application state to use to restart an application. The application uses this value if RESTORE_FROM_CUSTOM_SNAPSHOT is specified for application_restore_type. - // +kubebuilder:validation:Optional - snapshotName?: null | string @go(SnapshotName,*string) -} - -#ApplicationSnapshotConfigurationInitParameters: { - // Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application. - snapshotsEnabled?: null | bool @go(SnapshotsEnabled,*bool) -} - -#ApplicationSnapshotConfigurationObservation: { - // Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application. - snapshotsEnabled?: null | bool @go(SnapshotsEnabled,*bool) -} - -#ApplicationSnapshotConfigurationParameters: { - // Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application. - // +kubebuilder:validation:Optional - snapshotsEnabled?: null | bool @go(SnapshotsEnabled,*bool) -} - -#CheckpointConfigurationInitParameters: { - // Describes the interval in milliseconds between checkpoint operations. - checkpointInterval?: null | float64 @go(CheckpointInterval,*float64) - - // Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application. - checkpointingEnabled?: null | bool @go(CheckpointingEnabled,*bool) - - // Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. Valid values: CUSTOM, DEFAULT. Set this attribute to CUSTOM in order for any specified checkpointing_enabled, checkpoint_interval, or min_pause_between_checkpoints attribute values to be effective. If this attribute is set to DEFAULT, the application will always use the following values: - configurationType?: null | string @go(ConfigurationType,*string) - - // Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. - minPauseBetweenCheckpoints?: null | float64 @go(MinPauseBetweenCheckpoints,*float64) -} - -#CheckpointConfigurationObservation: { - // Describes the interval in milliseconds between checkpoint operations. - checkpointInterval?: null | float64 @go(CheckpointInterval,*float64) - - // Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application. - checkpointingEnabled?: null | bool @go(CheckpointingEnabled,*bool) - - // Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. Valid values: CUSTOM, DEFAULT. Set this attribute to CUSTOM in order for any specified checkpointing_enabled, checkpoint_interval, or min_pause_between_checkpoints attribute values to be effective. If this attribute is set to DEFAULT, the application will always use the following values: - configurationType?: null | string @go(ConfigurationType,*string) - - // Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. - minPauseBetweenCheckpoints?: null | float64 @go(MinPauseBetweenCheckpoints,*float64) -} - -#CheckpointConfigurationParameters: { - // Describes the interval in milliseconds between checkpoint operations. - // +kubebuilder:validation:Optional - checkpointInterval?: null | float64 @go(CheckpointInterval,*float64) - - // Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application. - // +kubebuilder:validation:Optional - checkpointingEnabled?: null | bool @go(CheckpointingEnabled,*bool) - - // Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. Valid values: CUSTOM, DEFAULT. Set this attribute to CUSTOM in order for any specified checkpointing_enabled, checkpoint_interval, or min_pause_between_checkpoints attribute values to be effective. If this attribute is set to DEFAULT, the application will always use the following values: - // +kubebuilder:validation:Optional - configurationType?: null | string @go(ConfigurationType,*string) - - // Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. - // +kubebuilder:validation:Optional - minPauseBetweenCheckpoints?: null | float64 @go(MinPauseBetweenCheckpoints,*float64) -} - -#CloudwatchLoggingOptionsInitParameters: { -} - -#CloudwatchLoggingOptionsObservation: { - // The application identifier. - cloudwatchLoggingOptionId?: null | string @go(CloudwatchLoggingOptionID,*string) - - // The ARN of the CloudWatch log stream to receive application messages. - logStreamArn?: null | string @go(LogStreamArn,*string) -} - -#CloudwatchLoggingOptionsParameters: { - // The ARN of the CloudWatch log stream to receive application messages. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Stream - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - logStreamArn?: null | string @go(LogStreamArn,*string) - - // Reference to a Stream in cloudwatchlogs to populate logStreamArn. - // +kubebuilder:validation:Optional - logStreamArnRef?: null | v1.#Reference @go(LogStreamArnRef,*v1.Reference) - - // Selector for a Stream in cloudwatchlogs to populate logStreamArn. - // +kubebuilder:validation:Optional - logStreamArnSelector?: null | v1.#Selector @go(LogStreamArnSelector,*v1.Selector) -} - -#CodeContentInitParameters: { - // Information about the Amazon S3 bucket containing the application code. - s3ContentLocation?: [...#S3ContentLocationInitParameters] @go(S3ContentLocation,[]S3ContentLocationInitParameters) - - // The text-format code for the application. - textContent?: null | string @go(TextContent,*string) -} - -#CodeContentObservation: { - // Information about the Amazon S3 bucket containing the application code. - s3ContentLocation?: [...#S3ContentLocationObservation] @go(S3ContentLocation,[]S3ContentLocationObservation) - - // The text-format code for the application. - textContent?: null | string @go(TextContent,*string) -} - -#CodeContentParameters: { - // Information about the Amazon S3 bucket containing the application code. - // +kubebuilder:validation:Optional - s3ContentLocation?: [...#S3ContentLocationParameters] @go(S3ContentLocation,[]S3ContentLocationParameters) - - // The text-format code for the application. - // +kubebuilder:validation:Optional - textContent?: null | string @go(TextContent,*string) -} - -#CsvMappingParametersInitParameters: { - // The column delimiter. For example, in a CSV format, a comma (,) is the typical column delimiter. - recordColumnDelimiter?: null | string @go(RecordColumnDelimiter,*string) - - // The row delimiter. For example, in a CSV format, \n is the typical row delimiter. - recordRowDelimiter?: null | string @go(RecordRowDelimiter,*string) -} - -#CsvMappingParametersObservation: { - // The column delimiter. For example, in a CSV format, a comma (,) is the typical column delimiter. - recordColumnDelimiter?: null | string @go(RecordColumnDelimiter,*string) - - // The row delimiter. For example, in a CSV format, \n is the typical row delimiter. - recordRowDelimiter?: null | string @go(RecordRowDelimiter,*string) -} - -#CsvMappingParametersParameters: { - // The column delimiter. For example, in a CSV format, a comma (,) is the typical column delimiter. - // +kubebuilder:validation:Optional - recordColumnDelimiter?: null | string @go(RecordColumnDelimiter,*string) - - // The row delimiter. For example, in a CSV format, \n is the typical row delimiter. - // +kubebuilder:validation:Optional - recordRowDelimiter?: null | string @go(RecordRowDelimiter,*string) -} - -#DestinationSchemaInitParameters: { - // The type of record format. Valid values: CSV, JSON. - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#DestinationSchemaObservation: { - // The type of record format. Valid values: CSV, JSON. - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#DestinationSchemaParameters: { - // The type of record format. Valid values: CSV, JSON. - // +kubebuilder:validation:Optional - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#EnvironmentPropertiesInitParameters: { - // Describes the execution property groups. - propertyGroup?: [...#PropertyGroupInitParameters] @go(PropertyGroup,[]PropertyGroupInitParameters) -} - -#EnvironmentPropertiesObservation: { - // Describes the execution property groups. - propertyGroup?: [...#PropertyGroupObservation] @go(PropertyGroup,[]PropertyGroupObservation) -} - -#EnvironmentPropertiesParameters: { - // Describes the execution property groups. - // +kubebuilder:validation:Optional - propertyGroup: [...#PropertyGroupParameters] @go(PropertyGroup,[]PropertyGroupParameters) -} - -#FlinkApplicationConfigurationInitParameters: { - // Describes an application's checkpointing configuration. - checkpointConfiguration?: [...#CheckpointConfigurationInitParameters] @go(CheckpointConfiguration,[]CheckpointConfigurationInitParameters) - - // Describes configuration parameters for CloudWatch logging for an application. - monitoringConfiguration?: [...#MonitoringConfigurationInitParameters] @go(MonitoringConfiguration,[]MonitoringConfigurationInitParameters) - - // Describes parameters for how an application executes multiple tasks simultaneously. - parallelismConfiguration?: [...#ParallelismConfigurationInitParameters] @go(ParallelismConfiguration,[]ParallelismConfigurationInitParameters) -} - -#FlinkApplicationConfigurationObservation: { - // Describes an application's checkpointing configuration. - checkpointConfiguration?: [...#CheckpointConfigurationObservation] @go(CheckpointConfiguration,[]CheckpointConfigurationObservation) - - // Describes configuration parameters for CloudWatch logging for an application. - monitoringConfiguration?: [...#MonitoringConfigurationObservation] @go(MonitoringConfiguration,[]MonitoringConfigurationObservation) - - // Describes parameters for how an application executes multiple tasks simultaneously. - parallelismConfiguration?: [...#ParallelismConfigurationObservation] @go(ParallelismConfiguration,[]ParallelismConfigurationObservation) -} - -#FlinkApplicationConfigurationParameters: { - // Describes an application's checkpointing configuration. - // +kubebuilder:validation:Optional - checkpointConfiguration?: [...#CheckpointConfigurationParameters] @go(CheckpointConfiguration,[]CheckpointConfigurationParameters) - - // Describes configuration parameters for CloudWatch logging for an application. - // +kubebuilder:validation:Optional - monitoringConfiguration?: [...#MonitoringConfigurationParameters] @go(MonitoringConfiguration,[]MonitoringConfigurationParameters) - - // Describes parameters for how an application executes multiple tasks simultaneously. - // +kubebuilder:validation:Optional - parallelismConfiguration?: [...#ParallelismConfigurationParameters] @go(ParallelismConfiguration,[]ParallelismConfigurationParameters) -} - -#FlinkRunConfigurationInitParameters: { - // When restoring from a snapshot, specifies whether the runtime is allowed to skip a state that cannot be mapped to the new program. Default is false. - allowNonRestoredState?: null | bool @go(AllowNonRestoredState,*bool) -} - -#FlinkRunConfigurationObservation: { - // When restoring from a snapshot, specifies whether the runtime is allowed to skip a state that cannot be mapped to the new program. Default is false. - allowNonRestoredState?: null | bool @go(AllowNonRestoredState,*bool) -} - -#FlinkRunConfigurationParameters: { - // When restoring from a snapshot, specifies whether the runtime is allowed to skip a state that cannot be mapped to the new program. Default is false. - // +kubebuilder:validation:Optional - allowNonRestoredState?: null | bool @go(AllowNonRestoredState,*bool) -} - -#InputInitParameters: { - // Describes the number of in-application streams to create. - inputParallelism?: [...#InputParallelismInitParameters] @go(InputParallelism,[]InputParallelismInitParameters) - - // The input processing configuration for the input. - // An input processor transforms records as they are received from the stream, before the application's SQL code executes. - inputProcessingConfiguration?: [...#InputProcessingConfigurationInitParameters] @go(InputProcessingConfiguration,[]InputProcessingConfigurationInitParameters) - - // Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created. - inputSchema?: [...#InputSchemaInitParameters] @go(InputSchema,[]InputSchemaInitParameters) - - // The point at which the application starts processing records from the streaming source. - inputStartingPositionConfiguration?: [...#InputStartingPositionConfigurationInitParameters] @go(InputStartingPositionConfiguration,[]InputStartingPositionConfigurationInitParameters) - - // If the streaming source is a Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN. - kinesisFirehoseInput?: [...#KinesisFirehoseInputInitParameters] @go(KinesisFirehoseInput,[]KinesisFirehoseInputInitParameters) - - // If the streaming source is a Kinesis data stream, identifies the stream's Amazon Resource Name (ARN). - kinesisStreamsInput?: [...#KinesisStreamsInputInitParameters] @go(KinesisStreamsInput,[]KinesisStreamsInputInitParameters) - - // The name prefix to use when creating an in-application stream. - namePrefix?: null | string @go(NamePrefix,*string) -} - -#InputLambdaProcessorInitParameters: { - // The ARN of the Lambda function that operates on records in the stream. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#InputLambdaProcessorObservation: { - // The ARN of the Lambda function that operates on records in the stream. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#InputLambdaProcessorParameters: { - // The ARN of the Lambda function that operates on records in the stream. - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) -} - -#InputObservation: { - inAppStreamNames?: [...null | string] @go(InAppStreamNames,[]*string) - - // The application identifier. - inputId?: null | string @go(InputID,*string) - - // Describes the number of in-application streams to create. - inputParallelism?: [...#InputParallelismObservation] @go(InputParallelism,[]InputParallelismObservation) - - // The input processing configuration for the input. - // An input processor transforms records as they are received from the stream, before the application's SQL code executes. - inputProcessingConfiguration?: [...#InputProcessingConfigurationObservation] @go(InputProcessingConfiguration,[]InputProcessingConfigurationObservation) - - // Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created. - inputSchema?: [...#InputSchemaObservation] @go(InputSchema,[]InputSchemaObservation) - - // The point at which the application starts processing records from the streaming source. - inputStartingPositionConfiguration?: [...#InputStartingPositionConfigurationObservation] @go(InputStartingPositionConfiguration,[]InputStartingPositionConfigurationObservation) - - // If the streaming source is a Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN. - kinesisFirehoseInput?: [...#KinesisFirehoseInputObservation] @go(KinesisFirehoseInput,[]KinesisFirehoseInputObservation) - - // If the streaming source is a Kinesis data stream, identifies the stream's Amazon Resource Name (ARN). - kinesisStreamsInput?: [...#KinesisStreamsInputObservation] @go(KinesisStreamsInput,[]KinesisStreamsInputObservation) - - // The name prefix to use when creating an in-application stream. - namePrefix?: null | string @go(NamePrefix,*string) -} - -#InputParallelismInitParameters: { - // The number of in-application streams to create. - count?: null | float64 @go(Count,*float64) -} - -#InputParallelismObservation: { - // The number of in-application streams to create. - count?: null | float64 @go(Count,*float64) -} - -#InputParallelismParameters: { - // The number of in-application streams to create. - // +kubebuilder:validation:Optional - count?: null | float64 @go(Count,*float64) -} - -#InputParameters: { - // Describes the number of in-application streams to create. - // +kubebuilder:validation:Optional - inputParallelism?: [...#InputParallelismParameters] @go(InputParallelism,[]InputParallelismParameters) - - // The input processing configuration for the input. - // An input processor transforms records as they are received from the stream, before the application's SQL code executes. - // +kubebuilder:validation:Optional - inputProcessingConfiguration?: [...#InputProcessingConfigurationParameters] @go(InputProcessingConfiguration,[]InputProcessingConfigurationParameters) - - // Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created. - // +kubebuilder:validation:Optional - inputSchema: [...#InputSchemaParameters] @go(InputSchema,[]InputSchemaParameters) - - // The point at which the application starts processing records from the streaming source. - // +kubebuilder:validation:Optional - inputStartingPositionConfiguration?: [...#InputStartingPositionConfigurationParameters] @go(InputStartingPositionConfiguration,[]InputStartingPositionConfigurationParameters) - - // If the streaming source is a Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN. - // +kubebuilder:validation:Optional - kinesisFirehoseInput?: [...#KinesisFirehoseInputParameters] @go(KinesisFirehoseInput,[]KinesisFirehoseInputParameters) - - // If the streaming source is a Kinesis data stream, identifies the stream's Amazon Resource Name (ARN). - // +kubebuilder:validation:Optional - kinesisStreamsInput?: [...#KinesisStreamsInputParameters] @go(KinesisStreamsInput,[]KinesisStreamsInputParameters) - - // The name prefix to use when creating an in-application stream. - // +kubebuilder:validation:Optional - namePrefix?: null | string @go(NamePrefix,*string) -} - -#InputProcessingConfigurationInitParameters: { - // Describes the Lambda function that is used to preprocess the records in the stream before being processed by your application code. - inputLambdaProcessor?: [...#InputLambdaProcessorInitParameters] @go(InputLambdaProcessor,[]InputLambdaProcessorInitParameters) -} - -#InputProcessingConfigurationObservation: { - // Describes the Lambda function that is used to preprocess the records in the stream before being processed by your application code. - inputLambdaProcessor?: [...#InputLambdaProcessorObservation] @go(InputLambdaProcessor,[]InputLambdaProcessorObservation) -} - -#InputProcessingConfigurationParameters: { - // Describes the Lambda function that is used to preprocess the records in the stream before being processed by your application code. - // +kubebuilder:validation:Optional - inputLambdaProcessor: [...#InputLambdaProcessorParameters] @go(InputLambdaProcessor,[]InputLambdaProcessorParameters) -} - -#InputSchemaInitParameters: { - // Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream. - recordColumn?: [...#RecordColumnInitParameters] @go(RecordColumn,[]RecordColumnInitParameters) - - // Specifies the encoding of the records in the streaming source. For example, UTF-8. - recordEncoding?: null | string @go(RecordEncoding,*string) - - // Specifies the format of the records on the streaming source. - recordFormat?: [...#RecordFormatInitParameters] @go(RecordFormat,[]RecordFormatInitParameters) -} - -#InputSchemaObservation: { - // Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream. - recordColumn?: [...#RecordColumnObservation] @go(RecordColumn,[]RecordColumnObservation) - - // Specifies the encoding of the records in the streaming source. For example, UTF-8. - recordEncoding?: null | string @go(RecordEncoding,*string) - - // Specifies the format of the records on the streaming source. - recordFormat?: [...#RecordFormatObservation] @go(RecordFormat,[]RecordFormatObservation) -} - -#InputSchemaParameters: { - // Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream. - // +kubebuilder:validation:Optional - recordColumn: [...#RecordColumnParameters] @go(RecordColumn,[]RecordColumnParameters) - - // Specifies the encoding of the records in the streaming source. For example, UTF-8. - // +kubebuilder:validation:Optional - recordEncoding?: null | string @go(RecordEncoding,*string) - - // Specifies the format of the records on the streaming source. - // +kubebuilder:validation:Optional - recordFormat: [...#RecordFormatParameters] @go(RecordFormat,[]RecordFormatParameters) -} - -#InputStartingPositionConfigurationInitParameters: { - // The starting position on the stream. Valid values: LAST_STOPPED_POINT, NOW, TRIM_HORIZON. - inputStartingPosition?: null | string @go(InputStartingPosition,*string) -} - -#InputStartingPositionConfigurationObservation: { - // The starting position on the stream. Valid values: LAST_STOPPED_POINT, NOW, TRIM_HORIZON. - inputStartingPosition?: null | string @go(InputStartingPosition,*string) -} - -#InputStartingPositionConfigurationParameters: { - // The starting position on the stream. Valid values: LAST_STOPPED_POINT, NOW, TRIM_HORIZON. - // +kubebuilder:validation:Optional - inputStartingPosition?: null | string @go(InputStartingPosition,*string) -} - -#JSONMappingParametersInitParameters: { - // The path to the top-level parent that contains the records. - recordRowPath?: null | string @go(RecordRowPath,*string) -} - -#JSONMappingParametersObservation: { - // The path to the top-level parent that contains the records. - recordRowPath?: null | string @go(RecordRowPath,*string) -} - -#JSONMappingParametersParameters: { - // The path to the top-level parent that contains the records. - // +kubebuilder:validation:Optional - recordRowPath?: null | string @go(RecordRowPath,*string) -} - -#KinesisFirehoseInputInitParameters: { - // The ARN of the Lambda function that operates on records in the stream. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#KinesisFirehoseInputObservation: { - // The ARN of the Lambda function that operates on records in the stream. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#KinesisFirehoseInputParameters: { - // The ARN of the Lambda function that operates on records in the stream. - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) -} - -#KinesisFirehoseOutputInitParameters: { -} - -#KinesisFirehoseOutputObservation: { - // The ARN of the Lambda function that operates on records in the stream. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#KinesisFirehoseOutputParameters: { - // The ARN of the Lambda function that operates on records in the stream. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/firehose/v1beta1.DeliveryStream - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",false) - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a DeliveryStream in firehose to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a DeliveryStream in firehose to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) -} - -#KinesisStreamsInputInitParameters: { -} - -#KinesisStreamsInputObservation: { - // The ARN of the Lambda function that operates on records in the stream. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#KinesisStreamsInputParameters: { - // The ARN of the Lambda function that operates on records in the stream. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kinesis/v1beta1.Stream - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a Stream in kinesis to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a Stream in kinesis to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) -} - -#KinesisStreamsOutputInitParameters: { - // The ARN of the Lambda function that operates on records in the stream. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#KinesisStreamsOutputObservation: { - // The ARN of the Lambda function that operates on records in the stream. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#KinesisStreamsOutputParameters: { - // The ARN of the Lambda function that operates on records in the stream. - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) -} - -#LambdaOutputInitParameters: { -} - -#LambdaOutputObservation: { - // The ARN of the Lambda function that operates on records in the stream. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#LambdaOutputParameters: { - // The ARN of the Lambda function that operates on records in the stream. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a Function in lambda to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a Function in lambda to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) -} - -#MappingParametersCsvMappingParametersInitParameters: { - // The column delimiter. For example, in a CSV format, a comma (,) is the typical column delimiter. - recordColumnDelimiter?: null | string @go(RecordColumnDelimiter,*string) - - // The row delimiter. For example, in a CSV format, \n is the typical row delimiter. - recordRowDelimiter?: null | string @go(RecordRowDelimiter,*string) -} - -#MappingParametersCsvMappingParametersObservation: { - // The column delimiter. For example, in a CSV format, a comma (,) is the typical column delimiter. - recordColumnDelimiter?: null | string @go(RecordColumnDelimiter,*string) - - // The row delimiter. For example, in a CSV format, \n is the typical row delimiter. - recordRowDelimiter?: null | string @go(RecordRowDelimiter,*string) -} - -#MappingParametersCsvMappingParametersParameters: { - // The column delimiter. For example, in a CSV format, a comma (,) is the typical column delimiter. - // +kubebuilder:validation:Optional - recordColumnDelimiter?: null | string @go(RecordColumnDelimiter,*string) - - // The row delimiter. For example, in a CSV format, \n is the typical row delimiter. - // +kubebuilder:validation:Optional - recordRowDelimiter?: null | string @go(RecordRowDelimiter,*string) -} - -#MappingParametersInitParameters: { - // Provides additional mapping information when the record format uses delimiters (for example, CSV). - csvMappingParameters?: [...#CsvMappingParametersInitParameters] @go(CsvMappingParameters,[]CsvMappingParametersInitParameters) - - // Provides additional mapping information when JSON is the record format on the streaming source. - jsonMappingParameters?: [...#JSONMappingParametersInitParameters] @go(JSONMappingParameters,[]JSONMappingParametersInitParameters) -} - -#MappingParametersJSONMappingParametersInitParameters: { - // The path to the top-level parent that contains the records. - recordRowPath?: null | string @go(RecordRowPath,*string) -} - -#MappingParametersJSONMappingParametersObservation: { - // The path to the top-level parent that contains the records. - recordRowPath?: null | string @go(RecordRowPath,*string) -} - -#MappingParametersJSONMappingParametersParameters: { - // The path to the top-level parent that contains the records. - // +kubebuilder:validation:Optional - recordRowPath?: null | string @go(RecordRowPath,*string) -} - -#MappingParametersObservation: { - // Provides additional mapping information when the record format uses delimiters (for example, CSV). - csvMappingParameters?: [...#CsvMappingParametersObservation] @go(CsvMappingParameters,[]CsvMappingParametersObservation) - - // Provides additional mapping information when JSON is the record format on the streaming source. - jsonMappingParameters?: [...#JSONMappingParametersObservation] @go(JSONMappingParameters,[]JSONMappingParametersObservation) -} - -#MappingParametersParameters: { - // Provides additional mapping information when the record format uses delimiters (for example, CSV). - // +kubebuilder:validation:Optional - csvMappingParameters?: [...#CsvMappingParametersParameters] @go(CsvMappingParameters,[]CsvMappingParametersParameters) - - // Provides additional mapping information when JSON is the record format on the streaming source. - // +kubebuilder:validation:Optional - jsonMappingParameters?: [...#JSONMappingParametersParameters] @go(JSONMappingParameters,[]JSONMappingParametersParameters) -} - -#MonitoringConfigurationInitParameters: { - // Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. Valid values: CUSTOM, DEFAULT. Set this attribute to CUSTOM in order for any specified checkpointing_enabled, checkpoint_interval, or min_pause_between_checkpoints attribute values to be effective. If this attribute is set to DEFAULT, the application will always use the following values: - configurationType?: null | string @go(ConfigurationType,*string) - - // Describes the verbosity of the CloudWatch Logs for an application. Valid values: DEBUG, ERROR, INFO, WARN. - logLevel?: null | string @go(LogLevel,*string) - - // Describes the granularity of the CloudWatch Logs for an application. Valid values: APPLICATION, OPERATOR, PARALLELISM, TASK. - metricsLevel?: null | string @go(MetricsLevel,*string) -} - -#MonitoringConfigurationObservation: { - // Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. Valid values: CUSTOM, DEFAULT. Set this attribute to CUSTOM in order for any specified checkpointing_enabled, checkpoint_interval, or min_pause_between_checkpoints attribute values to be effective. If this attribute is set to DEFAULT, the application will always use the following values: - configurationType?: null | string @go(ConfigurationType,*string) - - // Describes the verbosity of the CloudWatch Logs for an application. Valid values: DEBUG, ERROR, INFO, WARN. - logLevel?: null | string @go(LogLevel,*string) - - // Describes the granularity of the CloudWatch Logs for an application. Valid values: APPLICATION, OPERATOR, PARALLELISM, TASK. - metricsLevel?: null | string @go(MetricsLevel,*string) -} - -#MonitoringConfigurationParameters: { - // Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. Valid values: CUSTOM, DEFAULT. Set this attribute to CUSTOM in order for any specified checkpointing_enabled, checkpoint_interval, or min_pause_between_checkpoints attribute values to be effective. If this attribute is set to DEFAULT, the application will always use the following values: - // +kubebuilder:validation:Optional - configurationType?: null | string @go(ConfigurationType,*string) - - // Describes the verbosity of the CloudWatch Logs for an application. Valid values: DEBUG, ERROR, INFO, WARN. - // +kubebuilder:validation:Optional - logLevel?: null | string @go(LogLevel,*string) - - // Describes the granularity of the CloudWatch Logs for an application. Valid values: APPLICATION, OPERATOR, PARALLELISM, TASK. - // +kubebuilder:validation:Optional - metricsLevel?: null | string @go(MetricsLevel,*string) -} - -#OutputInitParameters: { - // Describes the data format when records are written to the destination. - destinationSchema?: [...#DestinationSchemaInitParameters] @go(DestinationSchema,[]DestinationSchemaInitParameters) - - // Identifies a Kinesis Data Firehose delivery stream as the destination. - kinesisFirehoseOutput?: [...#KinesisFirehoseOutputInitParameters] @go(KinesisFirehoseOutput,[]KinesisFirehoseOutputInitParameters) - - // Identifies a Kinesis data stream as the destination. - kinesisStreamsOutput?: [...#KinesisStreamsOutputInitParameters] @go(KinesisStreamsOutput,[]KinesisStreamsOutputInitParameters) - - // Identifies a Lambda function as the destination. - lambdaOutput?: [...#LambdaOutputInitParameters] @go(LambdaOutput,[]LambdaOutputInitParameters) - - // The name of the application. - name?: null | string @go(Name,*string) -} - -#OutputObservation: { - // Describes the data format when records are written to the destination. - destinationSchema?: [...#DestinationSchemaObservation] @go(DestinationSchema,[]DestinationSchemaObservation) - - // Identifies a Kinesis Data Firehose delivery stream as the destination. - kinesisFirehoseOutput?: [...#KinesisFirehoseOutputObservation] @go(KinesisFirehoseOutput,[]KinesisFirehoseOutputObservation) - - // Identifies a Kinesis data stream as the destination. - kinesisStreamsOutput?: [...#KinesisStreamsOutputObservation] @go(KinesisStreamsOutput,[]KinesisStreamsOutputObservation) - - // Identifies a Lambda function as the destination. - lambdaOutput?: [...#LambdaOutputObservation] @go(LambdaOutput,[]LambdaOutputObservation) - - // The name of the application. - name?: null | string @go(Name,*string) - - // The application identifier. - outputId?: null | string @go(OutputID,*string) -} - -#OutputParameters: { - // Describes the data format when records are written to the destination. - // +kubebuilder:validation:Optional - destinationSchema: [...#DestinationSchemaParameters] @go(DestinationSchema,[]DestinationSchemaParameters) - - // Identifies a Kinesis Data Firehose delivery stream as the destination. - // +kubebuilder:validation:Optional - kinesisFirehoseOutput?: [...#KinesisFirehoseOutputParameters] @go(KinesisFirehoseOutput,[]KinesisFirehoseOutputParameters) - - // Identifies a Kinesis data stream as the destination. - // +kubebuilder:validation:Optional - kinesisStreamsOutput?: [...#KinesisStreamsOutputParameters] @go(KinesisStreamsOutput,[]KinesisStreamsOutputParameters) - - // Identifies a Lambda function as the destination. - // +kubebuilder:validation:Optional - lambdaOutput?: [...#LambdaOutputParameters] @go(LambdaOutput,[]LambdaOutputParameters) - - // The name of the application. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#ParallelismConfigurationInitParameters: { - // Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput. - autoScalingEnabled?: null | bool @go(AutoScalingEnabled,*bool) - - // Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. Valid values: CUSTOM, DEFAULT. Set this attribute to CUSTOM in order for any specified checkpointing_enabled, checkpoint_interval, or min_pause_between_checkpoints attribute values to be effective. If this attribute is set to DEFAULT, the application will always use the following values: - configurationType?: null | string @go(ConfigurationType,*string) - - // Describes the initial number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform. - parallelism?: null | float64 @go(Parallelism,*float64) - - // Describes the number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. - parallelismPerKpu?: null | float64 @go(ParallelismPerKpu,*float64) -} - -#ParallelismConfigurationObservation: { - // Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput. - autoScalingEnabled?: null | bool @go(AutoScalingEnabled,*bool) - - // Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. Valid values: CUSTOM, DEFAULT. Set this attribute to CUSTOM in order for any specified checkpointing_enabled, checkpoint_interval, or min_pause_between_checkpoints attribute values to be effective. If this attribute is set to DEFAULT, the application will always use the following values: - configurationType?: null | string @go(ConfigurationType,*string) - - // Describes the initial number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform. - parallelism?: null | float64 @go(Parallelism,*float64) - - // Describes the number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. - parallelismPerKpu?: null | float64 @go(ParallelismPerKpu,*float64) -} - -#ParallelismConfigurationParameters: { - // Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput. - // +kubebuilder:validation:Optional - autoScalingEnabled?: null | bool @go(AutoScalingEnabled,*bool) - - // Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. Valid values: CUSTOM, DEFAULT. Set this attribute to CUSTOM in order for any specified checkpointing_enabled, checkpoint_interval, or min_pause_between_checkpoints attribute values to be effective. If this attribute is set to DEFAULT, the application will always use the following values: - // +kubebuilder:validation:Optional - configurationType?: null | string @go(ConfigurationType,*string) - - // Describes the initial number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform. - // +kubebuilder:validation:Optional - parallelism?: null | float64 @go(Parallelism,*float64) - - // Describes the number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. - // +kubebuilder:validation:Optional - parallelismPerKpu?: null | float64 @go(ParallelismPerKpu,*float64) -} - -#PropertyGroupInitParameters: { - // The key of the application execution property key-value map. - propertyGroupId?: null | string @go(PropertyGroupID,*string) - - // Application execution property key-value map. - propertyMap?: {[string]: null | string} @go(PropertyMap,map[string]*string) -} - -#PropertyGroupObservation: { - // The key of the application execution property key-value map. - propertyGroupId?: null | string @go(PropertyGroupID,*string) - - // Application execution property key-value map. - propertyMap?: {[string]: null | string} @go(PropertyMap,map[string]*string) -} - -#PropertyGroupParameters: { - // The key of the application execution property key-value map. - // +kubebuilder:validation:Optional - propertyGroupId?: null | string @go(PropertyGroupID,*string) - - // Application execution property key-value map. - // +kubebuilder:validation:Optional - propertyMap: {[string]: null | string} @go(PropertyMap,map[string]*string) -} - -#RecordColumnInitParameters: { - // A reference to the data element in the streaming input or the reference data source. - mapping?: null | string @go(Mapping,*string) - - // The name of the application. - name?: null | string @go(Name,*string) - - // The type of column created in the in-application input stream or reference table. - sqlType?: null | string @go(SQLType,*string) -} - -#RecordColumnObservation: { - // A reference to the data element in the streaming input or the reference data source. - mapping?: null | string @go(Mapping,*string) - - // The name of the application. - name?: null | string @go(Name,*string) - - // The type of column created in the in-application input stream or reference table. - sqlType?: null | string @go(SQLType,*string) -} - -#RecordColumnParameters: { - // A reference to the data element in the streaming input or the reference data source. - // +kubebuilder:validation:Optional - mapping?: null | string @go(Mapping,*string) - - // The name of the application. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The type of column created in the in-application input stream or reference table. - // +kubebuilder:validation:Optional - sqlType?: null | string @go(SQLType,*string) -} - -#RecordFormatInitParameters: { - // Provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source. - mappingParameters?: [...#MappingParametersInitParameters] @go(MappingParameters,[]MappingParametersInitParameters) - - // The type of record format. Valid values: CSV, JSON. - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#RecordFormatMappingParametersInitParameters: { - // Provides additional mapping information when the record format uses delimiters (for example, CSV). - csvMappingParameters?: [...#MappingParametersCsvMappingParametersInitParameters] @go(CsvMappingParameters,[]MappingParametersCsvMappingParametersInitParameters) - - // Provides additional mapping information when JSON is the record format on the streaming source. - jsonMappingParameters?: [...#MappingParametersJSONMappingParametersInitParameters] @go(JSONMappingParameters,[]MappingParametersJSONMappingParametersInitParameters) -} - -#RecordFormatMappingParametersObservation: { - // Provides additional mapping information when the record format uses delimiters (for example, CSV). - csvMappingParameters?: [...#MappingParametersCsvMappingParametersObservation] @go(CsvMappingParameters,[]MappingParametersCsvMappingParametersObservation) - - // Provides additional mapping information when JSON is the record format on the streaming source. - jsonMappingParameters?: [...#MappingParametersJSONMappingParametersObservation] @go(JSONMappingParameters,[]MappingParametersJSONMappingParametersObservation) -} - -#RecordFormatMappingParametersParameters: { - // Provides additional mapping information when the record format uses delimiters (for example, CSV). - // +kubebuilder:validation:Optional - csvMappingParameters?: [...#MappingParametersCsvMappingParametersParameters] @go(CsvMappingParameters,[]MappingParametersCsvMappingParametersParameters) - - // Provides additional mapping information when JSON is the record format on the streaming source. - // +kubebuilder:validation:Optional - jsonMappingParameters?: [...#MappingParametersJSONMappingParametersParameters] @go(JSONMappingParameters,[]MappingParametersJSONMappingParametersParameters) -} - -#RecordFormatObservation: { - // Provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source. - mappingParameters?: [...#MappingParametersObservation] @go(MappingParameters,[]MappingParametersObservation) - - // The type of record format. Valid values: CSV, JSON. - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#RecordFormatParameters: { - // Provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source. - // +kubebuilder:validation:Optional - mappingParameters: [...#MappingParametersParameters] @go(MappingParameters,[]MappingParametersParameters) - - // The type of record format. Valid values: CSV, JSON. - // +kubebuilder:validation:Optional - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#ReferenceDataSourceInitParameters: { - // Describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream. - referenceSchema?: [...#ReferenceSchemaInitParameters] @go(ReferenceSchema,[]ReferenceSchemaInitParameters) - - // Identifies the S3 bucket and object that contains the reference data. - s3ReferenceDataSource?: [...#S3ReferenceDataSourceInitParameters] @go(S3ReferenceDataSource,[]S3ReferenceDataSourceInitParameters) - - // The name of the in-application table to create. - tableName?: null | string @go(TableName,*string) -} - -#ReferenceDataSourceObservation: { - // The application identifier. - referenceId?: null | string @go(ReferenceID,*string) - - // Describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream. - referenceSchema?: [...#ReferenceSchemaObservation] @go(ReferenceSchema,[]ReferenceSchemaObservation) - - // Identifies the S3 bucket and object that contains the reference data. - s3ReferenceDataSource?: [...#S3ReferenceDataSourceObservation] @go(S3ReferenceDataSource,[]S3ReferenceDataSourceObservation) - - // The name of the in-application table to create. - tableName?: null | string @go(TableName,*string) -} - -#ReferenceDataSourceParameters: { - // Describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream. - // +kubebuilder:validation:Optional - referenceSchema: [...#ReferenceSchemaParameters] @go(ReferenceSchema,[]ReferenceSchemaParameters) - - // Identifies the S3 bucket and object that contains the reference data. - // +kubebuilder:validation:Optional - s3ReferenceDataSource: [...#S3ReferenceDataSourceParameters] @go(S3ReferenceDataSource,[]S3ReferenceDataSourceParameters) - - // The name of the in-application table to create. - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) -} - -#ReferenceSchemaInitParameters: { - // Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream. - recordColumn?: [...#ReferenceSchemaRecordColumnInitParameters] @go(RecordColumn,[]ReferenceSchemaRecordColumnInitParameters) - - // Specifies the encoding of the records in the streaming source. For example, UTF-8. - recordEncoding?: null | string @go(RecordEncoding,*string) - - // Specifies the format of the records on the streaming source. - recordFormat?: [...#ReferenceSchemaRecordFormatInitParameters] @go(RecordFormat,[]ReferenceSchemaRecordFormatInitParameters) -} - -#ReferenceSchemaObservation: { - // Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream. - recordColumn?: [...#ReferenceSchemaRecordColumnObservation] @go(RecordColumn,[]ReferenceSchemaRecordColumnObservation) - - // Specifies the encoding of the records in the streaming source. For example, UTF-8. - recordEncoding?: null | string @go(RecordEncoding,*string) - - // Specifies the format of the records on the streaming source. - recordFormat?: [...#ReferenceSchemaRecordFormatObservation] @go(RecordFormat,[]ReferenceSchemaRecordFormatObservation) -} - -#ReferenceSchemaParameters: { - // Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream. - // +kubebuilder:validation:Optional - recordColumn: [...#ReferenceSchemaRecordColumnParameters] @go(RecordColumn,[]ReferenceSchemaRecordColumnParameters) - - // Specifies the encoding of the records in the streaming source. For example, UTF-8. - // +kubebuilder:validation:Optional - recordEncoding?: null | string @go(RecordEncoding,*string) - - // Specifies the format of the records on the streaming source. - // +kubebuilder:validation:Optional - recordFormat: [...#ReferenceSchemaRecordFormatParameters] @go(RecordFormat,[]ReferenceSchemaRecordFormatParameters) -} - -#ReferenceSchemaRecordColumnInitParameters: { - // A reference to the data element in the streaming input or the reference data source. - mapping?: null | string @go(Mapping,*string) - - // The name of the application. - name?: null | string @go(Name,*string) - - // The type of column created in the in-application input stream or reference table. - sqlType?: null | string @go(SQLType,*string) -} - -#ReferenceSchemaRecordColumnObservation: { - // A reference to the data element in the streaming input or the reference data source. - mapping?: null | string @go(Mapping,*string) - - // The name of the application. - name?: null | string @go(Name,*string) - - // The type of column created in the in-application input stream or reference table. - sqlType?: null | string @go(SQLType,*string) -} - -#ReferenceSchemaRecordColumnParameters: { - // A reference to the data element in the streaming input or the reference data source. - // +kubebuilder:validation:Optional - mapping?: null | string @go(Mapping,*string) - - // The name of the application. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The type of column created in the in-application input stream or reference table. - // +kubebuilder:validation:Optional - sqlType?: null | string @go(SQLType,*string) -} - -#ReferenceSchemaRecordFormatInitParameters: { - // Provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source. - mappingParameters?: [...#RecordFormatMappingParametersInitParameters] @go(MappingParameters,[]RecordFormatMappingParametersInitParameters) - - // The type of record format. Valid values: CSV, JSON. - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#ReferenceSchemaRecordFormatObservation: { - // Provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source. - mappingParameters?: [...#RecordFormatMappingParametersObservation] @go(MappingParameters,[]RecordFormatMappingParametersObservation) - - // The type of record format. Valid values: CSV, JSON. - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#ReferenceSchemaRecordFormatParameters: { - // Provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source. - // +kubebuilder:validation:Optional - mappingParameters: [...#RecordFormatMappingParametersParameters] @go(MappingParameters,[]RecordFormatMappingParametersParameters) - - // The type of record format. Valid values: CSV, JSON. - // +kubebuilder:validation:Optional - recordFormatType?: null | string @go(RecordFormatType,*string) -} - -#RunConfigurationInitParameters: { - // The restore behavior of a restarting application. - applicationRestoreConfiguration?: [...#ApplicationRestoreConfigurationInitParameters] @go(ApplicationRestoreConfiguration,[]ApplicationRestoreConfigurationInitParameters) - - // The starting parameters for a Flink-based Kinesis Data Analytics application. - flinkRunConfiguration?: [...#FlinkRunConfigurationInitParameters] @go(FlinkRunConfiguration,[]FlinkRunConfigurationInitParameters) -} - -#RunConfigurationObservation: { - // The restore behavior of a restarting application. - applicationRestoreConfiguration?: [...#ApplicationRestoreConfigurationObservation] @go(ApplicationRestoreConfiguration,[]ApplicationRestoreConfigurationObservation) - - // The starting parameters for a Flink-based Kinesis Data Analytics application. - flinkRunConfiguration?: [...#FlinkRunConfigurationObservation] @go(FlinkRunConfiguration,[]FlinkRunConfigurationObservation) -} - -#RunConfigurationParameters: { - // The restore behavior of a restarting application. - // +kubebuilder:validation:Optional - applicationRestoreConfiguration?: [...#ApplicationRestoreConfigurationParameters] @go(ApplicationRestoreConfiguration,[]ApplicationRestoreConfigurationParameters) - - // The starting parameters for a Flink-based Kinesis Data Analytics application. - // +kubebuilder:validation:Optional - flinkRunConfiguration?: [...#FlinkRunConfigurationParameters] @go(FlinkRunConfiguration,[]FlinkRunConfigurationParameters) -} - -#S3ContentLocationInitParameters: { - // The version of the object containing the application code. - objectVersion?: null | string @go(ObjectVersion,*string) -} - -#S3ContentLocationObservation: { - // The ARN for the S3 bucket containing the application code. - bucketArn?: null | string @go(BucketArn,*string) - - // The file key for the object containing the application code. - fileKey?: null | string @go(FileKey,*string) - - // The version of the object containing the application code. - objectVersion?: null | string @go(ObjectVersion,*string) -} - -#S3ContentLocationParameters: { - // The ARN for the S3 bucket containing the application code. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - bucketArn?: null | string @go(BucketArn,*string) - - // Reference to a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnRef?: null | v1.#Reference @go(BucketArnRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnSelector?: null | v1.#Selector @go(BucketArnSelector,*v1.Selector) - - // The file key for the object containing the application code. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Object - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("key",false) - // +kubebuilder:validation:Optional - fileKey?: null | string @go(FileKey,*string) - - // Reference to a Object in s3 to populate fileKey. - // +kubebuilder:validation:Optional - fileKeyRef?: null | v1.#Reference @go(FileKeyRef,*v1.Reference) - - // Selector for a Object in s3 to populate fileKey. - // +kubebuilder:validation:Optional - fileKeySelector?: null | v1.#Selector @go(FileKeySelector,*v1.Selector) - - // The version of the object containing the application code. - // +kubebuilder:validation:Optional - objectVersion?: null | string @go(ObjectVersion,*string) -} - -#S3ReferenceDataSourceInitParameters: { - // The file key for the object containing the application code. - fileKey?: null | string @go(FileKey,*string) -} - -#S3ReferenceDataSourceObservation: { - // The ARN for the S3 bucket containing the application code. - bucketArn?: null | string @go(BucketArn,*string) - - // The file key for the object containing the application code. - fileKey?: null | string @go(FileKey,*string) -} - -#S3ReferenceDataSourceParameters: { - // The ARN for the S3 bucket containing the application code. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - bucketArn?: null | string @go(BucketArn,*string) - - // Reference to a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnRef?: null | v1.#Reference @go(BucketArnRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnSelector?: null | v1.#Selector @go(BucketArnSelector,*v1.Selector) - - // The file key for the object containing the application code. - // +kubebuilder:validation:Optional - fileKey?: null | string @go(FileKey,*string) -} - -#SQLApplicationConfigurationInitParameters: { - // The input stream used by the application. - input?: [...#InputInitParameters] @go(Input,[]InputInitParameters) - - // The destination streams used by the application. - output?: [...#OutputInitParameters] @go(Output,[]OutputInitParameters) - - // The reference data source used by the application. - referenceDataSource?: [...#ReferenceDataSourceInitParameters] @go(ReferenceDataSource,[]ReferenceDataSourceInitParameters) -} - -#SQLApplicationConfigurationObservation: { - // The input stream used by the application. - input?: [...#InputObservation] @go(Input,[]InputObservation) - - // The destination streams used by the application. - output?: [...#OutputObservation] @go(Output,[]OutputObservation) - - // The reference data source used by the application. - referenceDataSource?: [...#ReferenceDataSourceObservation] @go(ReferenceDataSource,[]ReferenceDataSourceObservation) -} - -#SQLApplicationConfigurationParameters: { - // The input stream used by the application. - // +kubebuilder:validation:Optional - input?: [...#InputParameters] @go(Input,[]InputParameters) - - // The destination streams used by the application. - // +kubebuilder:validation:Optional - output?: [...#OutputParameters] @go(Output,[]OutputParameters) - - // The reference data source used by the application. - // +kubebuilder:validation:Optional - referenceDataSource?: [...#ReferenceDataSourceParameters] @go(ReferenceDataSource,[]ReferenceDataSourceParameters) -} - -#VPCConfigurationInitParameters: { - // The Security Group IDs used by the VPC configuration. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The Subnet IDs used by the VPC configuration. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#VPCConfigurationObservation: { - // The Security Group IDs used by the VPC configuration. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The Subnet IDs used by the VPC configuration. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // The application identifier. - vpcConfigurationId?: null | string @go(VPCConfigurationID,*string) - - // The application identifier. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCConfigurationParameters: { - // The Security Group IDs used by the VPC configuration. - // +kubebuilder:validation:Optional - securityGroupIds: [...null | string] @go(SecurityGroupIds,[]*string) - - // The Subnet IDs used by the VPC configuration. - // +kubebuilder:validation:Optional - subnetIds: [...null | string] @go(SubnetIds,[]*string) -} - -// ApplicationSpec defines the desired state of Application -#ApplicationSpec: { - v1.#ResourceSpec - forProvider: #ApplicationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ApplicationInitParameters @go(InitProvider) -} - -// ApplicationStatus defines the observed state of Application. -#ApplicationStatus: { - v1.#ResourceStatus - atProvider?: #ApplicationObservation @go(AtProvider) -} - -// Application is the Schema for the Applications API. Manages a Kinesis Analytics v2 Application. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Application: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.runtimeEnvironment) || (has(self.initProvider) && has(self.initProvider.runtimeEnvironment))",message="spec.forProvider.runtimeEnvironment is a required parameter" - spec: #ApplicationSpec @go(Spec) - status?: #ApplicationStatus @go(Status) -} - -// ApplicationList contains a list of Applications -#ApplicationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Application] @go(Items,[]Application) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1/zz_applicationsnapshot_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1/zz_applicationsnapshot_types_go_gen.cue deleted file mode 100644 index 41c58bc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1/zz_applicationsnapshot_types_go_gen.cue +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ApplicationSnapshotInitParameters: { -} - -#ApplicationSnapshotObservation: { - // The name of an existing Kinesis Analytics v2 Application. Note that the application must be running for a snapshot to be created. - applicationName?: null | string @go(ApplicationName,*string) - - // The current application version ID when the snapshot was created. - applicationVersionId?: null | float64 @go(ApplicationVersionID,*float64) - - // The application snapshot identifier. - id?: null | string @go(ID,*string) - - // The timestamp of the application snapshot. - snapshotCreationTimestamp?: null | string @go(SnapshotCreationTimestamp,*string) -} - -#ApplicationSnapshotParameters: { - // The name of an existing Kinesis Analytics v2 Application. Note that the application must be running for a snapshot to be created. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1.Application - // +kubebuilder:validation:Optional - applicationName?: null | string @go(ApplicationName,*string) - - // Reference to a Application in kinesisanalyticsv2 to populate applicationName. - // +kubebuilder:validation:Optional - applicationNameRef?: null | v1.#Reference @go(ApplicationNameRef,*v1.Reference) - - // Selector for a Application in kinesisanalyticsv2 to populate applicationName. - // +kubebuilder:validation:Optional - applicationNameSelector?: null | v1.#Selector @go(ApplicationNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ApplicationSnapshotSpec defines the desired state of ApplicationSnapshot -#ApplicationSnapshotSpec: { - v1.#ResourceSpec - forProvider: #ApplicationSnapshotParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ApplicationSnapshotInitParameters @go(InitProvider) -} - -// ApplicationSnapshotStatus defines the observed state of ApplicationSnapshot. -#ApplicationSnapshotStatus: { - v1.#ResourceStatus - atProvider?: #ApplicationSnapshotObservation @go(AtProvider) -} - -// ApplicationSnapshot is the Schema for the ApplicationSnapshots API. Manages a Kinesis Analytics v2 Application Snapshot. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ApplicationSnapshot: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ApplicationSnapshotSpec @go(Spec) - status?: #ApplicationSnapshotStatus @go(Status) -} - -// ApplicationSnapshotList contains a list of ApplicationSnapshots -#ApplicationSnapshotList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ApplicationSnapshot] @go(Items,[]ApplicationSnapshot) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 965596e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kinesisanalyticsv2/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=kinesisanalyticsv2.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "kinesisanalyticsv2.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisvideo/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisvideo/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 1fae4a7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisvideo/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kinesisvideo/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=kinesisvideo.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "kinesisvideo.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisvideo/v1beta1/zz_stream_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisvideo/v1beta1/zz_stream_types_go_gen.cue deleted file mode 100644 index 6293125..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kinesisvideo/v1beta1/zz_stream_types_go_gen.cue +++ /dev/null @@ -1,152 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kinesisvideo/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#StreamInitParameters: { - // – The number of hours that you want to retain the data in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream. The default value is 0, indicating that the stream does not persist data. - dataRetentionInHours?: null | float64 @go(DataRetentionInHours,*float64) - - // The name of the device that is writing to the stream. In the current implementation, Kinesis Video Streams does not use this name. - deviceName?: null | string @go(DeviceName,*string) - - // The media type of the stream. Consumers of the stream can use this information when processing the stream. For more information about media types, see Media Types. If you choose to specify the MediaType, see Naming Requirements for guidelines. - mediaType?: null | string @go(MediaType,*string) - - // A name to identify the stream. This is unique to the - // AWS account and region the Stream is created in. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#StreamObservation: { - // The Amazon Resource Name (ARN) specifying the Stream (same as id) - arn?: null | string @go(Arn,*string) - - // A time stamp that indicates when the stream was created. - creationTime?: null | string @go(CreationTime,*string) - - // – The number of hours that you want to retain the data in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream. The default value is 0, indicating that the stream does not persist data. - dataRetentionInHours?: null | float64 @go(DataRetentionInHours,*float64) - - // The name of the device that is writing to the stream. In the current implementation, Kinesis Video Streams does not use this name. - deviceName?: null | string @go(DeviceName,*string) - - // The unique Stream id - id?: null | string @go(ID,*string) - - // The ID of the AWS Key Management Service (AWS KMS) key that you want Kinesis Video Streams to use to encrypt stream data. If no key ID is specified, the default, Kinesis Video-managed key (aws/kinesisvideo) is used. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The media type of the stream. Consumers of the stream can use this information when processing the stream. For more information about media types, see Media Types. If you choose to specify the MediaType, see Naming Requirements for guidelines. - mediaType?: null | string @go(MediaType,*string) - - // A name to identify the stream. This is unique to the - // AWS account and region the Stream is created in. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The version of the stream. - version?: null | string @go(Version,*string) -} - -#StreamParameters: { - // – The number of hours that you want to retain the data in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream. The default value is 0, indicating that the stream does not persist data. - // +kubebuilder:validation:Optional - dataRetentionInHours?: null | float64 @go(DataRetentionInHours,*float64) - - // The name of the device that is writing to the stream. In the current implementation, Kinesis Video Streams does not use this name. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // The ID of the AWS Key Management Service (AWS KMS) key that you want Kinesis Video Streams to use to encrypt stream data. If no key ID is specified, the default, Kinesis Video-managed key (aws/kinesisvideo) is used. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // The media type of the stream. Consumers of the stream can use this information when processing the stream. For more information about media types, see Media Types. If you choose to specify the MediaType, see Naming Requirements for guidelines. - // +kubebuilder:validation:Optional - mediaType?: null | string @go(MediaType,*string) - - // A name to identify the stream. This is unique to the - // AWS account and region the Stream is created in. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// StreamSpec defines the desired state of Stream -#StreamSpec: { - v1.#ResourceSpec - forProvider: #StreamParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StreamInitParameters @go(InitProvider) -} - -// StreamStatus defines the observed state of Stream. -#StreamStatus: { - v1.#ResourceStatus - atProvider?: #StreamObservation @go(AtProvider) -} - -// Stream is the Schema for the Streams API. Provides a AWS Kinesis Video Stream -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Stream: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #StreamSpec @go(Spec) - status?: #StreamStatus @go(Status) -} - -// StreamList contains a list of Streams -#StreamList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Stream] @go(Items,[]Stream) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_alias_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_alias_types_go_gen.cue deleted file mode 100644 index 4180f06..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_alias_types_go_gen.cue +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AliasInitParameters: { -} - -#AliasObservation: { - // The Amazon Resource Name (ARN) of the key alias. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) of the target key identifier. - targetKeyArn?: null | string @go(TargetKeyArn,*string) - - // Identifier for the key for which the alias is for, can be either an ARN or key_id. - targetKeyId?: null | string @go(TargetKeyID,*string) -} - -#AliasParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Identifier for the key for which the alias is for, can be either an ARN or key_id. - // +crossplane:generate:reference:type=Key - // +kubebuilder:validation:Optional - targetKeyId?: null | string @go(TargetKeyID,*string) - - // Reference to a Key to populate targetKeyId. - // +kubebuilder:validation:Optional - targetKeyIdRef?: null | v1.#Reference @go(TargetKeyIDRef,*v1.Reference) - - // Selector for a Key to populate targetKeyId. - // +kubebuilder:validation:Optional - targetKeyIdSelector?: null | v1.#Selector @go(TargetKeyIDSelector,*v1.Selector) -} - -// AliasSpec defines the desired state of Alias -#AliasSpec: { - v1.#ResourceSpec - forProvider: #AliasParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AliasInitParameters @go(InitProvider) -} - -// AliasStatus defines the observed state of Alias. -#AliasStatus: { - v1.#ResourceStatus - atProvider?: #AliasObservation @go(AtProvider) -} - -// Alias is the Schema for the Aliass API. Provides a display name for a customer master key. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Alias: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AliasSpec @go(Spec) - status?: #AliasStatus @go(Status) -} - -// AliasList contains a list of Aliass -#AliasList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Alias] @go(Items,[]Alias) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_ciphertext_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_ciphertext_types_go_gen.cue deleted file mode 100644 index 624a9bc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_ciphertext_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CiphertextInitParameters: { - // An optional mapping that makes up the encryption context. - context?: {[string]: null | string} @go(Context,map[string]*string) -} - -#CiphertextObservation: { - // Base64 encoded ciphertext - ciphertextBlob?: null | string @go(CiphertextBlob,*string) - - // An optional mapping that makes up the encryption context. - context?: {[string]: null | string} @go(Context,map[string]*string) - id?: null | string @go(ID,*string) - - // Globally unique key ID for the customer master key. - keyId?: null | string @go(KeyID,*string) -} - -#CiphertextParameters: { - // An optional mapping that makes up the encryption context. - // +kubebuilder:validation:Optional - context?: {[string]: null | string} @go(Context,map[string]*string) - - // Globally unique key ID for the customer master key. - // +crossplane:generate:reference:type=Key - // +kubebuilder:validation:Optional - keyId?: null | string @go(KeyID,*string) - - // Reference to a Key to populate keyId. - // +kubebuilder:validation:Optional - keyIdRef?: null | v1.#Reference @go(KeyIDRef,*v1.Reference) - - // Selector for a Key to populate keyId. - // +kubebuilder:validation:Optional - keyIdSelector?: null | v1.#Selector @go(KeyIDSelector,*v1.Selector) - - // Data to be encrypted. Note that this may show up in logs, and it will be stored in the state file. - // +kubebuilder:validation:Optional - plaintextSecretRef: v1.#SecretKeySelector @go(PlaintextSecretRef) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// CiphertextSpec defines the desired state of Ciphertext -#CiphertextSpec: { - v1.#ResourceSpec - forProvider: #CiphertextParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CiphertextInitParameters @go(InitProvider) -} - -// CiphertextStatus defines the observed state of Ciphertext. -#CiphertextStatus: { - v1.#ResourceStatus - atProvider?: #CiphertextObservation @go(AtProvider) -} - -// Ciphertext is the Schema for the Ciphertexts API. Provides ciphertext encrypted using a KMS key -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Ciphertext: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.plaintextSecretRef)",message="spec.forProvider.plaintextSecretRef is a required parameter" - spec: #CiphertextSpec @go(Spec) - status?: #CiphertextStatus @go(Status) -} - -// CiphertextList contains a list of Ciphertexts -#CiphertextList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Ciphertext] @go(Items,[]Ciphertext) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_externalkey_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_externalkey_types_go_gen.cue deleted file mode 100644 index dba2993..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_externalkey_types_go_gen.cue +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ExternalKeyInitParameters: { - // Specifies whether to disable the policy lockout check performed when creating or updating the key's policy. Setting this value to true increases the risk that the key becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide. Defaults to false. - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // Duration in days after which the key is deleted after destruction of the resource. Must be between 7 and 30 days. Defaults to 30. - deletionWindowInDays?: null | float64 @go(DeletionWindowInDays,*float64) - - // Description of the key. - description?: null | string @go(Description,*string) - - // Specifies whether the key is enabled. Keys pending import can only be false. Imported keys default to true unless expired. - enabled?: null | bool @go(Enabled,*bool) - - // Indicates whether the KMS key is a multi-Region (true) or regional (false) key. Defaults to false. - multiRegion?: null | bool @go(MultiRegion,*bool) - - // A key policy JSON document. If you do not provide a key policy, AWS KMS attaches a default key policy to the CMK. - policy?: null | string @go(Policy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. If not specified, key material does not expire. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ) - validTo?: null | string @go(ValidTo,*string) -} - -#ExternalKeyObservation: { - // The Amazon Resource Name (ARN) of the key. - arn?: null | string @go(Arn,*string) - - // Specifies whether to disable the policy lockout check performed when creating or updating the key's policy. Setting this value to true increases the risk that the key becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide. Defaults to false. - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // Duration in days after which the key is deleted after destruction of the resource. Must be between 7 and 30 days. Defaults to 30. - deletionWindowInDays?: null | float64 @go(DeletionWindowInDays,*float64) - - // Description of the key. - description?: null | string @go(Description,*string) - - // Specifies whether the key is enabled. Keys pending import can only be false. Imported keys default to true unless expired. - enabled?: null | bool @go(Enabled,*bool) - - // Whether the key material expires. Empty when pending key material import, otherwise KEY_MATERIAL_EXPIRES or KEY_MATERIAL_DOES_NOT_EXPIRE. - expirationModel?: null | string @go(ExpirationModel,*string) - - // The unique identifier for the key. - id?: null | string @go(ID,*string) - - // The state of the CMK. - keyState?: null | string @go(KeyState,*string) - - // The cryptographic operations for which you can use the CMK. - keyUsage?: null | string @go(KeyUsage,*string) - - // Indicates whether the KMS key is a multi-Region (true) or regional (false) key. Defaults to false. - multiRegion?: null | bool @go(MultiRegion,*bool) - - // A key policy JSON document. If you do not provide a key policy, AWS KMS attaches a default key policy to the CMK. - policy?: null | string @go(Policy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. If not specified, key material does not expire. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ) - validTo?: null | string @go(ValidTo,*string) -} - -#ExternalKeyParameters: { - // Specifies whether to disable the policy lockout check performed when creating or updating the key's policy. Setting this value to true increases the risk that the key becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide. Defaults to false. - // +kubebuilder:validation:Optional - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // Duration in days after which the key is deleted after destruction of the resource. Must be between 7 and 30 days. Defaults to 30. - // +kubebuilder:validation:Optional - deletionWindowInDays?: null | float64 @go(DeletionWindowInDays,*float64) - - // Description of the key. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies whether the key is enabled. Keys pending import can only be false. Imported keys default to true unless expired. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Base64 encoded 256-bit symmetric encryption key material to import. The CMK is permanently associated with this key material. The same key material can be reimported, but you cannot import different key material. - // +kubebuilder:validation:Optional - keyMaterialBase64SecretRef?: null | v1.#SecretKeySelector @go(KeyMaterialBase64SecretRef,*v1.SecretKeySelector) - - // Indicates whether the KMS key is a multi-Region (true) or regional (false) key. Defaults to false. - // +kubebuilder:validation:Optional - multiRegion?: null | bool @go(MultiRegion,*bool) - - // A key policy JSON document. If you do not provide a key policy, AWS KMS attaches a default key policy to the CMK. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. If not specified, key material does not expire. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ) - // +kubebuilder:validation:Optional - validTo?: null | string @go(ValidTo,*string) -} - -// ExternalKeySpec defines the desired state of ExternalKey -#ExternalKeySpec: { - v1.#ResourceSpec - forProvider: #ExternalKeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ExternalKeyInitParameters @go(InitProvider) -} - -// ExternalKeyStatus defines the observed state of ExternalKey. -#ExternalKeyStatus: { - v1.#ResourceStatus - atProvider?: #ExternalKeyObservation @go(AtProvider) -} - -// ExternalKey is the Schema for the ExternalKeys API. Manages a single-Region or multi-Region primary KMS key that uses external key material. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ExternalKey: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ExternalKeySpec @go(Spec) - status?: #ExternalKeyStatus @go(Status) -} - -// ExternalKeyList contains a list of ExternalKeys -#ExternalKeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ExternalKey] @go(Items,[]ExternalKey) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_grant_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_grant_types_go_gen.cue deleted file mode 100644 index b8ce9a5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_grant_types_go_gen.cue +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConstraintsInitParameters: { - // A list of key-value pairs that must match the encryption context in subsequent cryptographic operation requests. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint. Conflicts with encryption_context_subset. - encryptionContextEquals?: {[string]: null | string} @go(EncryptionContextEquals,map[string]*string) - - // A list of key-value pairs that must be included in the encryption context of subsequent cryptographic operation requests. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs. Conflicts with encryption_context_equals. - encryptionContextSubset?: {[string]: null | string} @go(EncryptionContextSubset,map[string]*string) -} - -#ConstraintsObservation: { - // A list of key-value pairs that must match the encryption context in subsequent cryptographic operation requests. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint. Conflicts with encryption_context_subset. - encryptionContextEquals?: {[string]: null | string} @go(EncryptionContextEquals,map[string]*string) - - // A list of key-value pairs that must be included in the encryption context of subsequent cryptographic operation requests. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs. Conflicts with encryption_context_equals. - encryptionContextSubset?: {[string]: null | string} @go(EncryptionContextSubset,map[string]*string) -} - -#ConstraintsParameters: { - // A list of key-value pairs that must match the encryption context in subsequent cryptographic operation requests. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint. Conflicts with encryption_context_subset. - // +kubebuilder:validation:Optional - encryptionContextEquals?: {[string]: null | string} @go(EncryptionContextEquals,map[string]*string) - - // A list of key-value pairs that must be included in the encryption context of subsequent cryptographic operation requests. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs. Conflicts with encryption_context_equals. - // +kubebuilder:validation:Optional - encryptionContextSubset?: {[string]: null | string} @go(EncryptionContextSubset,map[string]*string) -} - -#GrantInitParameters: { - // A structure that you can use to allow certain operations in the grant only when the desired encryption context is present. For more information about encryption context, see Encryption Context. - constraints?: [...#ConstraintsInitParameters] @go(Constraints,[]ConstraintsInitParameters) - - // A list of grant tokens to be used when creating the grant. See Grant Tokens for more information about grant tokens. - grantCreationTokens?: [...null | string] @go(GrantCreationTokens,[]*string) - - // A friendly name for identifying the grant. - name?: null | string @go(Name,*string) - - // A list of operations that the grant permits. The permitted values are: Decrypt, Encrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintext, ReEncryptFrom, ReEncryptTo, Sign, Verify, GetPublicKey, CreateGrant, RetireGrant, DescribeKey, GenerateDataKeyPair, or GenerateDataKeyPairWithoutPlaintext. - operations?: [...null | string] @go(Operations,[]*string) - - // (Defaults to false, Forces new resources) If set to false (the default) the grants will be revoked upon deletion, and if set to true the grants will try to be retired upon deletion. Note that retiring grants requires special permissions, hence why we default to revoking grants. - // See RetireGrant for more information. - retireOnDelete?: null | bool @go(RetireOnDelete,*bool) - - // The principal that is given permission to retire the grant by using RetireGrant operation in ARN format. - retiringPrincipal?: null | string @go(RetiringPrincipal,*string) -} - -#GrantObservation: { - // A structure that you can use to allow certain operations in the grant only when the desired encryption context is present. For more information about encryption context, see Encryption Context. - constraints?: [...#ConstraintsObservation] @go(Constraints,[]ConstraintsObservation) - - // A list of grant tokens to be used when creating the grant. See Grant Tokens for more information about grant tokens. - grantCreationTokens?: [...null | string] @go(GrantCreationTokens,[]*string) - - // The unique identifier for the grant. - grantId?: null | string @go(GrantID,*string) - - // The grant token for the created grant. For more information, see Grant Tokens. - grantToken?: null | string @go(GrantToken,*string) - - // The principal that is given permission to perform the operations that the grant permits in ARN format. - granteePrincipal?: null | string @go(GranteePrincipal,*string) - id?: null | string @go(ID,*string) - - // The unique identifier for the customer master key (CMK) that the grant applies to. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a different AWS account, you must use the key ARN. - keyId?: null | string @go(KeyID,*string) - - // A friendly name for identifying the grant. - name?: null | string @go(Name,*string) - - // A list of operations that the grant permits. The permitted values are: Decrypt, Encrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintext, ReEncryptFrom, ReEncryptTo, Sign, Verify, GetPublicKey, CreateGrant, RetireGrant, DescribeKey, GenerateDataKeyPair, or GenerateDataKeyPairWithoutPlaintext. - operations?: [...null | string] @go(Operations,[]*string) - - // (Defaults to false, Forces new resources) If set to false (the default) the grants will be revoked upon deletion, and if set to true the grants will try to be retired upon deletion. Note that retiring grants requires special permissions, hence why we default to revoking grants. - // See RetireGrant for more information. - retireOnDelete?: null | bool @go(RetireOnDelete,*bool) - - // The principal that is given permission to retire the grant by using RetireGrant operation in ARN format. - retiringPrincipal?: null | string @go(RetiringPrincipal,*string) -} - -#GrantParameters: { - // A structure that you can use to allow certain operations in the grant only when the desired encryption context is present. For more information about encryption context, see Encryption Context. - // +kubebuilder:validation:Optional - constraints?: [...#ConstraintsParameters] @go(Constraints,[]ConstraintsParameters) - - // A list of grant tokens to be used when creating the grant. See Grant Tokens for more information about grant tokens. - // +kubebuilder:validation:Optional - grantCreationTokens?: [...null | string] @go(GrantCreationTokens,[]*string) - - // The principal that is given permission to perform the operations that the grant permits in ARN format. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - granteePrincipal?: null | string @go(GranteePrincipal,*string) - - // Reference to a Role in iam to populate granteePrincipal. - // +kubebuilder:validation:Optional - granteePrincipalRef?: null | v1.#Reference @go(GranteePrincipalRef,*v1.Reference) - - // Selector for a Role in iam to populate granteePrincipal. - // +kubebuilder:validation:Optional - granteePrincipalSelector?: null | v1.#Selector @go(GranteePrincipalSelector,*v1.Selector) - - // The unique identifier for the customer master key (CMK) that the grant applies to. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a different AWS account, you must use the key ARN. - // +crossplane:generate:reference:type=Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - keyId?: null | string @go(KeyID,*string) - - // Reference to a Key to populate keyId. - // +kubebuilder:validation:Optional - keyIdRef?: null | v1.#Reference @go(KeyIDRef,*v1.Reference) - - // Selector for a Key to populate keyId. - // +kubebuilder:validation:Optional - keyIdSelector?: null | v1.#Selector @go(KeyIDSelector,*v1.Selector) - - // A friendly name for identifying the grant. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A list of operations that the grant permits. The permitted values are: Decrypt, Encrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintext, ReEncryptFrom, ReEncryptTo, Sign, Verify, GetPublicKey, CreateGrant, RetireGrant, DescribeKey, GenerateDataKeyPair, or GenerateDataKeyPairWithoutPlaintext. - // +kubebuilder:validation:Optional - operations?: [...null | string] @go(Operations,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // (Defaults to false, Forces new resources) If set to false (the default) the grants will be revoked upon deletion, and if set to true the grants will try to be retired upon deletion. Note that retiring grants requires special permissions, hence why we default to revoking grants. - // See RetireGrant for more information. - // +kubebuilder:validation:Optional - retireOnDelete?: null | bool @go(RetireOnDelete,*bool) - - // The principal that is given permission to retire the grant by using RetireGrant operation in ARN format. - // +kubebuilder:validation:Optional - retiringPrincipal?: null | string @go(RetiringPrincipal,*string) -} - -// GrantSpec defines the desired state of Grant -#GrantSpec: { - v1.#ResourceSpec - forProvider: #GrantParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GrantInitParameters @go(InitProvider) -} - -// GrantStatus defines the observed state of Grant. -#GrantStatus: { - v1.#ResourceStatus - atProvider?: #GrantObservation @go(AtProvider) -} - -// Grant is the Schema for the Grants API. Provides a resource-based access control mechanism for KMS Customer Master Keys. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Grant: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.operations) || (has(self.initProvider) && has(self.initProvider.operations))",message="spec.forProvider.operations is a required parameter" - spec: #GrantSpec @go(Spec) - status?: #GrantStatus @go(Status) -} - -// GrantList contains a list of Grants -#GrantList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Grant] @go(Items,[]Grant) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index a26f948..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kms/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=kms.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "kms.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_key_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_key_types_go_gen.cue deleted file mode 100644 index 983974a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_key_types_go_gen.cue +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#KeyInitParameters: { - // A flag to indicate whether to bypass the key policy lockout safety check. - // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. - // For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide. - // The default value is false. - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // ID of the KMS Custom Key Store where the key will be stored instead of KMS (eg CloudHSM). - customKeyStoreId?: null | string @go(CustomKeyStoreID,*string) - - // Specifies whether the key contains a symmetric key or an asymmetric key pair and the encryption algorithms or signing algorithms that the key supports. - // Valid values: SYMMETRIC_DEFAULT, RSA_2048, RSA_3072, RSA_4096, HMAC_256, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521, or ECC_SECG_P256K1. Defaults to SYMMETRIC_DEFAULT. For help with choosing a key spec, see the AWS KMS Developer Guide. - customerMasterKeySpec?: null | string @go(CustomerMasterKeySpec,*string) - - // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. - // If you specify a value, it must be between 7 and 30, inclusive. If you do not specify a value, it defaults to 30. - // If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of its replica keys is deleted. Otherwise, the waiting period begins immediately. - deletionWindowInDays?: null | float64 @go(DeletionWindowInDays,*float64) - - // The description of the key as viewed in AWS console. - description?: null | string @go(Description,*string) - - // Specifies whether key rotation is enabled. Defaults to false. - enableKeyRotation?: null | bool @go(EnableKeyRotation,*bool) - - // Specifies whether the key is enabled. Defaults to true. - isEnabled?: null | bool @go(IsEnabled,*bool) - - // Specifies the intended use of the key. Valid values: ENCRYPT_DECRYPT, SIGN_VERIFY, or GENERATE_VERIFY_MAC. - // Defaults to ENCRYPT_DECRYPT. - keyUsage?: null | string @go(KeyUsage,*string) - - // Indicates whether the KMS key is a multi-Region (true) or regional (false) key. Defaults to false. - multiRegion?: null | bool @go(MultiRegion,*bool) - - // A valid policy JSON document. Although this is a key policy, not an IAM policy, an aws_iam_policy_document, in the form that designates a principal, can be used. - policy?: null | string @go(Policy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#KeyObservation: { - // The Amazon Resource Name (ARN) of the key. - arn?: null | string @go(Arn,*string) - - // A flag to indicate whether to bypass the key policy lockout safety check. - // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. - // For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide. - // The default value is false. - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // ID of the KMS Custom Key Store where the key will be stored instead of KMS (eg CloudHSM). - customKeyStoreId?: null | string @go(CustomKeyStoreID,*string) - - // Specifies whether the key contains a symmetric key or an asymmetric key pair and the encryption algorithms or signing algorithms that the key supports. - // Valid values: SYMMETRIC_DEFAULT, RSA_2048, RSA_3072, RSA_4096, HMAC_256, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521, or ECC_SECG_P256K1. Defaults to SYMMETRIC_DEFAULT. For help with choosing a key spec, see the AWS KMS Developer Guide. - customerMasterKeySpec?: null | string @go(CustomerMasterKeySpec,*string) - - // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. - // If you specify a value, it must be between 7 and 30, inclusive. If you do not specify a value, it defaults to 30. - // If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of its replica keys is deleted. Otherwise, the waiting period begins immediately. - deletionWindowInDays?: null | float64 @go(DeletionWindowInDays,*float64) - - // The description of the key as viewed in AWS console. - description?: null | string @go(Description,*string) - - // Specifies whether key rotation is enabled. Defaults to false. - enableKeyRotation?: null | bool @go(EnableKeyRotation,*bool) - id?: null | string @go(ID,*string) - - // Specifies whether the key is enabled. Defaults to true. - isEnabled?: null | bool @go(IsEnabled,*bool) - - // The globally unique identifier for the key. - keyId?: null | string @go(KeyID,*string) - - // Specifies the intended use of the key. Valid values: ENCRYPT_DECRYPT, SIGN_VERIFY, or GENERATE_VERIFY_MAC. - // Defaults to ENCRYPT_DECRYPT. - keyUsage?: null | string @go(KeyUsage,*string) - - // Indicates whether the KMS key is a multi-Region (true) or regional (false) key. Defaults to false. - multiRegion?: null | bool @go(MultiRegion,*bool) - - // A valid policy JSON document. Although this is a key policy, not an IAM policy, an aws_iam_policy_document, in the form that designates a principal, can be used. - policy?: null | string @go(Policy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#KeyParameters: { - // A flag to indicate whether to bypass the key policy lockout safety check. - // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. - // For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide. - // The default value is false. - // +kubebuilder:validation:Optional - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // ID of the KMS Custom Key Store where the key will be stored instead of KMS (eg CloudHSM). - // +kubebuilder:validation:Optional - customKeyStoreId?: null | string @go(CustomKeyStoreID,*string) - - // Specifies whether the key contains a symmetric key or an asymmetric key pair and the encryption algorithms or signing algorithms that the key supports. - // Valid values: SYMMETRIC_DEFAULT, RSA_2048, RSA_3072, RSA_4096, HMAC_256, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521, or ECC_SECG_P256K1. Defaults to SYMMETRIC_DEFAULT. For help with choosing a key spec, see the AWS KMS Developer Guide. - // +kubebuilder:validation:Optional - customerMasterKeySpec?: null | string @go(CustomerMasterKeySpec,*string) - - // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. - // If you specify a value, it must be between 7 and 30, inclusive. If you do not specify a value, it defaults to 30. - // If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of its replica keys is deleted. Otherwise, the waiting period begins immediately. - // +kubebuilder:validation:Optional - deletionWindowInDays?: null | float64 @go(DeletionWindowInDays,*float64) - - // The description of the key as viewed in AWS console. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies whether key rotation is enabled. Defaults to false. - // +kubebuilder:validation:Optional - enableKeyRotation?: null | bool @go(EnableKeyRotation,*bool) - - // Specifies whether the key is enabled. Defaults to true. - // +kubebuilder:validation:Optional - isEnabled?: null | bool @go(IsEnabled,*bool) - - // Specifies the intended use of the key. Valid values: ENCRYPT_DECRYPT, SIGN_VERIFY, or GENERATE_VERIFY_MAC. - // Defaults to ENCRYPT_DECRYPT. - // +kubebuilder:validation:Optional - keyUsage?: null | string @go(KeyUsage,*string) - - // Indicates whether the KMS key is a multi-Region (true) or regional (false) key. Defaults to false. - // +kubebuilder:validation:Optional - multiRegion?: null | bool @go(MultiRegion,*bool) - - // A valid policy JSON document. Although this is a key policy, not an IAM policy, an aws_iam_policy_document, in the form that designates a principal, can be used. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// KeySpec defines the desired state of Key -#KeySpec: { - v1.#ResourceSpec - forProvider: #KeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #KeyInitParameters @go(InitProvider) -} - -// KeyStatus defines the observed state of Key. -#KeyStatus: { - v1.#ResourceStatus - atProvider?: #KeyObservation @go(AtProvider) -} - -// Key is the Schema for the Keys API. Manages a single-Region or multi-Region primary KMS key. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Key: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #KeySpec @go(Spec) - status?: #KeyStatus @go(Status) -} - -// KeyList contains a list of Keys -#KeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Key] @go(Items,[]Key) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_replicaexternalkey_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_replicaexternalkey_types_go_gen.cue deleted file mode 100644 index 1d616f0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_replicaexternalkey_types_go_gen.cue +++ /dev/null @@ -1,188 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ReplicaExternalKeyInitParameters: { - // A flag to indicate whether to bypass the key policy lockout safety check. - // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. - // For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide. - // The default value is false. - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. - // If you specify a value, it must be between 7 and 30, inclusive. If you do not specify a value, it defaults to 30. - deletionWindowInDays?: null | float64 @go(DeletionWindowInDays,*float64) - - // A description of the KMS key. - description?: null | string @go(Description,*string) - - // Specifies whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. Keys pending import can only be false. Imported keys default to true unless expired. - enabled?: null | bool @go(Enabled,*bool) - - // The key policy to attach to the KMS key. If you do not specify a key policy, AWS KMS attaches the default key policy to the KMS key. - policy?: null | string @go(Policy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the key becomes unusable. If not specified, key material does not expire. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ) - validTo?: null | string @go(ValidTo,*string) -} - -#ReplicaExternalKeyObservation: { - // The Amazon Resource Name (ARN) of the replica key. The key ARNs of related multi-Region keys differ only in the Region value. - arn?: null | string @go(Arn,*string) - - // A flag to indicate whether to bypass the key policy lockout safety check. - // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. - // For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide. - // The default value is false. - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. - // If you specify a value, it must be between 7 and 30, inclusive. If you do not specify a value, it defaults to 30. - deletionWindowInDays?: null | float64 @go(DeletionWindowInDays,*float64) - - // A description of the KMS key. - description?: null | string @go(Description,*string) - - // Specifies whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. Keys pending import can only be false. Imported keys default to true unless expired. - enabled?: null | bool @go(Enabled,*bool) - - // Whether the key material expires. Empty when pending key material import, otherwise KEY_MATERIAL_EXPIRES or KEY_MATERIAL_DOES_NOT_EXPIRE. - expirationModel?: null | string @go(ExpirationModel,*string) - id?: null | string @go(ID,*string) - - // The key ID of the replica key. Related multi-Region keys have the same key ID. - keyId?: null | string @go(KeyID,*string) - - // The state of the replica key. - keyState?: null | string @go(KeyState,*string) - - // The cryptographic operations for which you can use the KMS key. This is a shared property of multi-Region keys. - keyUsage?: null | string @go(KeyUsage,*string) - - // The key policy to attach to the KMS key. If you do not specify a key policy, AWS KMS attaches the default key policy to the KMS key. - policy?: null | string @go(Policy,*string) - - // The ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region. - primaryKeyArn?: null | string @go(PrimaryKeyArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the key becomes unusable. If not specified, key material does not expire. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ) - validTo?: null | string @go(ValidTo,*string) -} - -#ReplicaExternalKeyParameters: { - // A flag to indicate whether to bypass the key policy lockout safety check. - // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. - // For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide. - // The default value is false. - // +kubebuilder:validation:Optional - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. - // If you specify a value, it must be between 7 and 30, inclusive. If you do not specify a value, it defaults to 30. - // +kubebuilder:validation:Optional - deletionWindowInDays?: null | float64 @go(DeletionWindowInDays,*float64) - - // A description of the KMS key. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. Keys pending import can only be false. Imported keys default to true unless expired. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Base64 encoded 256-bit symmetric encryption key material to import. The KMS key is permanently associated with this key material. The same key material can be reimported, but you cannot import different key material. - // +kubebuilder:validation:Optional - keyMaterialBase64SecretRef?: null | v1.#SecretKeySelector @go(KeyMaterialBase64SecretRef,*v1.SecretKeySelector) - - // The key policy to attach to the KMS key. If you do not specify a key policy, AWS KMS attaches the default key policy to the KMS key. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // The ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region. - // +crossplane:generate:reference:type=ExternalKey - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - primaryKeyArn?: null | string @go(PrimaryKeyArn,*string) - - // Reference to a ExternalKey to populate primaryKeyArn. - // +kubebuilder:validation:Optional - primaryKeyArnRef?: null | v1.#Reference @go(PrimaryKeyArnRef,*v1.Reference) - - // Selector for a ExternalKey to populate primaryKeyArn. - // +kubebuilder:validation:Optional - primaryKeyArnSelector?: null | v1.#Selector @go(PrimaryKeyArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the key becomes unusable. If not specified, key material does not expire. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ) - // +kubebuilder:validation:Optional - validTo?: null | string @go(ValidTo,*string) -} - -// ReplicaExternalKeySpec defines the desired state of ReplicaExternalKey -#ReplicaExternalKeySpec: { - v1.#ResourceSpec - forProvider: #ReplicaExternalKeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReplicaExternalKeyInitParameters @go(InitProvider) -} - -// ReplicaExternalKeyStatus defines the observed state of ReplicaExternalKey. -#ReplicaExternalKeyStatus: { - v1.#ResourceStatus - atProvider?: #ReplicaExternalKeyObservation @go(AtProvider) -} - -// ReplicaExternalKey is the Schema for the ReplicaExternalKeys API. Manages a KMS multi-Region replica key that uses external key material. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReplicaExternalKey: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ReplicaExternalKeySpec @go(Spec) - status?: #ReplicaExternalKeyStatus @go(Status) -} - -// ReplicaExternalKeyList contains a list of ReplicaExternalKeys -#ReplicaExternalKeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReplicaExternalKey] @go(Items,[]ReplicaExternalKey) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_replicakey_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_replicakey_types_go_gen.cue deleted file mode 100644 index 7906a25..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/kms/v1beta1/zz_replicakey_types_go_gen.cue +++ /dev/null @@ -1,174 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/kms/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ReplicaKeyInitParameters: { - // A flag to indicate whether to bypass the key policy lockout safety check. - // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. - // For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide. - // The default value is false. - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. - // If you specify a value, it must be between 7 and 30, inclusive. If you do not specify a value, it defaults to 30. - deletionWindowInDays?: null | float64 @go(DeletionWindowInDays,*float64) - - // A description of the KMS key. - description?: null | string @go(Description,*string) - - // Specifies whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. The default value is true. - enabled?: null | bool @go(Enabled,*bool) - - // The key policy to attach to the KMS key. If you do not specify a key policy, AWS KMS attaches the default key policy to the KMS key. - policy?: null | string @go(Policy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ReplicaKeyObservation: { - // The Amazon Resource Name (ARN) of the replica key. The key ARNs of related multi-Region keys differ only in the Region value. - arn?: null | string @go(Arn,*string) - - // A flag to indicate whether to bypass the key policy lockout safety check. - // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. - // For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide. - // The default value is false. - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. - // If you specify a value, it must be between 7 and 30, inclusive. If you do not specify a value, it defaults to 30. - deletionWindowInDays?: null | float64 @go(DeletionWindowInDays,*float64) - - // A description of the KMS key. - description?: null | string @go(Description,*string) - - // Specifies whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. The default value is true. - enabled?: null | bool @go(Enabled,*bool) - id?: null | string @go(ID,*string) - - // The key ID of the replica key. Related multi-Region keys have the same key ID. - keyId?: null | string @go(KeyID,*string) - - // A Boolean value that specifies whether key rotation is enabled. This is a shared property of multi-Region keys. - keyRotationEnabled?: null | bool @go(KeyRotationEnabled,*bool) - - // The type of key material in the KMS key. This is a shared property of multi-Region keys. - keySpec?: null | string @go(KeySpec,*string) - - // The cryptographic operations for which you can use the KMS key. This is a shared property of multi-Region keys. - keyUsage?: null | string @go(KeyUsage,*string) - - // The key policy to attach to the KMS key. If you do not specify a key policy, AWS KMS attaches the default key policy to the KMS key. - policy?: null | string @go(Policy,*string) - - // The ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region. - primaryKeyArn?: null | string @go(PrimaryKeyArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ReplicaKeyParameters: { - // A flag to indicate whether to bypass the key policy lockout safety check. - // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. - // For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide. - // The default value is false. - // +kubebuilder:validation:Optional - bypassPolicyLockoutSafetyCheck?: null | bool @go(BypassPolicyLockoutSafetyCheck,*bool) - - // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. - // If you specify a value, it must be between 7 and 30, inclusive. If you do not specify a value, it defaults to 30. - // +kubebuilder:validation:Optional - deletionWindowInDays?: null | float64 @go(DeletionWindowInDays,*float64) - - // A description of the KMS key. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. The default value is true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The key policy to attach to the KMS key. If you do not specify a key policy, AWS KMS attaches the default key policy to the KMS key. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // The ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region. - // +crossplane:generate:reference:type=Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - primaryKeyArn?: null | string @go(PrimaryKeyArn,*string) - - // Reference to a Key to populate primaryKeyArn. - // +kubebuilder:validation:Optional - primaryKeyArnRef?: null | v1.#Reference @go(PrimaryKeyArnRef,*v1.Reference) - - // Selector for a Key to populate primaryKeyArn. - // +kubebuilder:validation:Optional - primaryKeyArnSelector?: null | v1.#Selector @go(PrimaryKeyArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ReplicaKeySpec defines the desired state of ReplicaKey -#ReplicaKeySpec: { - v1.#ResourceSpec - forProvider: #ReplicaKeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReplicaKeyInitParameters @go(InitProvider) -} - -// ReplicaKeyStatus defines the observed state of ReplicaKey. -#ReplicaKeyStatus: { - v1.#ResourceStatus - atProvider?: #ReplicaKeyObservation @go(AtProvider) -} - -// ReplicaKey is the Schema for the ReplicaKeys API. Manages a KMS multi-Region replica key. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReplicaKey: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ReplicaKeySpec @go(Spec) - status?: #ReplicaKeyStatus @go(Status) -} - -// ReplicaKeyList contains a list of ReplicaKeys -#ReplicaKeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReplicaKey] @go(Items,[]ReplicaKey) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lakeformation/v1beta1/zz_datalakesettings_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lakeformation/v1beta1/zz_datalakesettings_types_go_gen.cue deleted file mode 100644 index bed9c6e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lakeformation/v1beta1/zz_datalakesettings_types_go_gen.cue +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lakeformation/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CreateDatabaseDefaultPermissionsInitParameters: { - // List of permissions that are granted to the principal. Valid values may include ALL, SELECT, ALTER, DROP, DELETE, INSERT, DESCRIBE, and CREATE_TABLE. For more details, see Lake Formation Permissions Reference. - permissions?: [...null | string] @go(Permissions,[]*string) - - // Principal who is granted permissions. To enforce metadata and underlying data access control only by IAM on new databases and tables set principal to IAM_ALLOWED_PRINCIPALS and permissions to ["ALL"]. - principal?: null | string @go(Principal,*string) -} - -#CreateDatabaseDefaultPermissionsObservation: { - // List of permissions that are granted to the principal. Valid values may include ALL, SELECT, ALTER, DROP, DELETE, INSERT, DESCRIBE, and CREATE_TABLE. For more details, see Lake Formation Permissions Reference. - permissions?: [...null | string] @go(Permissions,[]*string) - - // Principal who is granted permissions. To enforce metadata and underlying data access control only by IAM on new databases and tables set principal to IAM_ALLOWED_PRINCIPALS and permissions to ["ALL"]. - principal?: null | string @go(Principal,*string) -} - -#CreateDatabaseDefaultPermissionsParameters: { - // List of permissions that are granted to the principal. Valid values may include ALL, SELECT, ALTER, DROP, DELETE, INSERT, DESCRIBE, and CREATE_TABLE. For more details, see Lake Formation Permissions Reference. - // +kubebuilder:validation:Optional - permissions?: [...null | string] @go(Permissions,[]*string) - - // Principal who is granted permissions. To enforce metadata and underlying data access control only by IAM on new databases and tables set principal to IAM_ALLOWED_PRINCIPALS and permissions to ["ALL"]. - // +kubebuilder:validation:Optional - principal?: null | string @go(Principal,*string) -} - -#CreateTableDefaultPermissionsInitParameters: { - // List of permissions that are granted to the principal. Valid values may include ALL, SELECT, ALTER, DROP, DELETE, INSERT, and DESCRIBE. For more details, see Lake Formation Permissions Reference. - permissions?: [...null | string] @go(Permissions,[]*string) - - // Principal who is granted permissions. To enforce metadata and underlying data access control only by IAM on new databases and tables set principal to IAM_ALLOWED_PRINCIPALS and permissions to ["ALL"]. - principal?: null | string @go(Principal,*string) -} - -#CreateTableDefaultPermissionsObservation: { - // List of permissions that are granted to the principal. Valid values may include ALL, SELECT, ALTER, DROP, DELETE, INSERT, and DESCRIBE. For more details, see Lake Formation Permissions Reference. - permissions?: [...null | string] @go(Permissions,[]*string) - - // Principal who is granted permissions. To enforce metadata and underlying data access control only by IAM on new databases and tables set principal to IAM_ALLOWED_PRINCIPALS and permissions to ["ALL"]. - principal?: null | string @go(Principal,*string) -} - -#CreateTableDefaultPermissionsParameters: { - // List of permissions that are granted to the principal. Valid values may include ALL, SELECT, ALTER, DROP, DELETE, INSERT, and DESCRIBE. For more details, see Lake Formation Permissions Reference. - // +kubebuilder:validation:Optional - permissions?: [...null | string] @go(Permissions,[]*string) - - // Principal who is granted permissions. To enforce metadata and underlying data access control only by IAM on new databases and tables set principal to IAM_ALLOWED_PRINCIPALS and permissions to ["ALL"]. - // +kubebuilder:validation:Optional - principal?: null | string @go(Principal,*string) -} - -#DataLakeSettingsInitParameters: { - // – Set of ARNs of AWS Lake Formation principals (IAM users or roles). - admins?: [...null | string] @go(Admins,[]*string) - - // Whether to allow Amazon EMR clusters to access data managed by Lake Formation. - allowExternalDataFiltering?: null | bool @go(AllowExternalDataFiltering,*bool) - - // Lake Formation relies on a privileged process secured by Amazon EMR or the third party integrator to tag the user's role while assuming it. - authorizedSessionTagValueList?: [...null | string] @go(AuthorizedSessionTagValueList,[]*string) - - // – Identifier for the Data Catalog. By default, the account ID. - catalogId?: null | string @go(CatalogID,*string) - - // Up to three configuration blocks of principal permissions for default create database permissions. Detailed below. - createDatabaseDefaultPermissions?: [...#CreateDatabaseDefaultPermissionsInitParameters] @go(CreateDatabaseDefaultPermissions,[]CreateDatabaseDefaultPermissionsInitParameters) - - // Up to three configuration blocks of principal permissions for default create table permissions. Detailed below. - createTableDefaultPermissions?: [...#CreateTableDefaultPermissionsInitParameters] @go(CreateTableDefaultPermissions,[]CreateTableDefaultPermissionsInitParameters) - - // A list of the account IDs of Amazon Web Services accounts with Amazon EMR clusters that are to perform data filtering. - externalDataFilteringAllowList?: [...null | string] @go(ExternalDataFilteringAllowList,[]*string) - - // owning account IDs that the caller's account can use to share their user access details (user ARNs). - trustedResourceOwners?: [...null | string] @go(TrustedResourceOwners,[]*string) -} - -#DataLakeSettingsObservation: { - // – Set of ARNs of AWS Lake Formation principals (IAM users or roles). - admins?: [...null | string] @go(Admins,[]*string) - - // Whether to allow Amazon EMR clusters to access data managed by Lake Formation. - allowExternalDataFiltering?: null | bool @go(AllowExternalDataFiltering,*bool) - - // Lake Formation relies on a privileged process secured by Amazon EMR or the third party integrator to tag the user's role while assuming it. - authorizedSessionTagValueList?: [...null | string] @go(AuthorizedSessionTagValueList,[]*string) - - // – Identifier for the Data Catalog. By default, the account ID. - catalogId?: null | string @go(CatalogID,*string) - - // Up to three configuration blocks of principal permissions for default create database permissions. Detailed below. - createDatabaseDefaultPermissions?: [...#CreateDatabaseDefaultPermissionsObservation] @go(CreateDatabaseDefaultPermissions,[]CreateDatabaseDefaultPermissionsObservation) - - // Up to three configuration blocks of principal permissions for default create table permissions. Detailed below. - createTableDefaultPermissions?: [...#CreateTableDefaultPermissionsObservation] @go(CreateTableDefaultPermissions,[]CreateTableDefaultPermissionsObservation) - - // A list of the account IDs of Amazon Web Services accounts with Amazon EMR clusters that are to perform data filtering. - externalDataFilteringAllowList?: [...null | string] @go(ExternalDataFilteringAllowList,[]*string) - id?: null | string @go(ID,*string) - - // owning account IDs that the caller's account can use to share their user access details (user ARNs). - trustedResourceOwners?: [...null | string] @go(TrustedResourceOwners,[]*string) -} - -#DataLakeSettingsParameters: { - // – Set of ARNs of AWS Lake Formation principals (IAM users or roles). - // +kubebuilder:validation:Optional - admins?: [...null | string] @go(Admins,[]*string) - - // Whether to allow Amazon EMR clusters to access data managed by Lake Formation. - // +kubebuilder:validation:Optional - allowExternalDataFiltering?: null | bool @go(AllowExternalDataFiltering,*bool) - - // Lake Formation relies on a privileged process secured by Amazon EMR or the third party integrator to tag the user's role while assuming it. - // +kubebuilder:validation:Optional - authorizedSessionTagValueList?: [...null | string] @go(AuthorizedSessionTagValueList,[]*string) - - // – Identifier for the Data Catalog. By default, the account ID. - // +kubebuilder:validation:Optional - catalogId?: null | string @go(CatalogID,*string) - - // Up to three configuration blocks of principal permissions for default create database permissions. Detailed below. - // +kubebuilder:validation:Optional - createDatabaseDefaultPermissions?: [...#CreateDatabaseDefaultPermissionsParameters] @go(CreateDatabaseDefaultPermissions,[]CreateDatabaseDefaultPermissionsParameters) - - // Up to three configuration blocks of principal permissions for default create table permissions. Detailed below. - // +kubebuilder:validation:Optional - createTableDefaultPermissions?: [...#CreateTableDefaultPermissionsParameters] @go(CreateTableDefaultPermissions,[]CreateTableDefaultPermissionsParameters) - - // A list of the account IDs of Amazon Web Services accounts with Amazon EMR clusters that are to perform data filtering. - // +kubebuilder:validation:Optional - externalDataFilteringAllowList?: [...null | string] @go(ExternalDataFilteringAllowList,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // owning account IDs that the caller's account can use to share their user access details (user ARNs). - // +kubebuilder:validation:Optional - trustedResourceOwners?: [...null | string] @go(TrustedResourceOwners,[]*string) -} - -// DataLakeSettingsSpec defines the desired state of DataLakeSettings -#DataLakeSettingsSpec: { - v1.#ResourceSpec - forProvider: #DataLakeSettingsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DataLakeSettingsInitParameters @go(InitProvider) -} - -// DataLakeSettingsStatus defines the observed state of DataLakeSettings. -#DataLakeSettingsStatus: { - v1.#ResourceStatus - atProvider?: #DataLakeSettingsObservation @go(AtProvider) -} - -// DataLakeSettings is the Schema for the DataLakeSettingss API. Manages data lake administrators and default database and table permissions -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DataLakeSettings: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DataLakeSettingsSpec @go(Spec) - status?: #DataLakeSettingsStatus @go(Status) -} - -// DataLakeSettingsList contains a list of DataLakeSettingss -#DataLakeSettingsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DataLakeSettings] @go(Items,[]DataLakeSettings) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lakeformation/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lakeformation/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 9cfb293..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lakeformation/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lakeformation/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=lakeformation.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "lakeformation.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lakeformation/v1beta1/zz_permissions_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lakeformation/v1beta1/zz_permissions_types_go_gen.cue deleted file mode 100644 index 1fa0eb9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lakeformation/v1beta1/zz_permissions_types_go_gen.cue +++ /dev/null @@ -1,461 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lakeformation/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DataLocationInitParameters: { - // Identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller. - catalogId?: null | string @go(CatalogID,*string) -} - -#DataLocationObservation: { - // – Amazon Resource Name (ARN) that uniquely identifies the data location resource. - arn?: null | string @go(Arn,*string) - - // Identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller. - catalogId?: null | string @go(CatalogID,*string) -} - -#DataLocationParameters: { - // – Amazon Resource Name (ARN) that uniquely identifies the data location resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lakeformation/v1beta1.Resource - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",false) - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // Reference to a Resource in lakeformation to populate arn. - // +kubebuilder:validation:Optional - arnRef?: null | v1.#Reference @go(ArnRef,*v1.Reference) - - // Selector for a Resource in lakeformation to populate arn. - // +kubebuilder:validation:Optional - arnSelector?: null | v1.#Selector @go(ArnSelector,*v1.Selector) - - // Identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller. - // +kubebuilder:validation:Optional - catalogId?: null | string @go(CatalogID,*string) -} - -#DatabaseInitParameters: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - catalogId?: null | string @go(CatalogID,*string) -} - -#DatabaseObservation: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - catalogId?: null | string @go(CatalogID,*string) - - // – Name of the database resource. Unique to the Data Catalog. - name?: null | string @go(Name,*string) -} - -#DatabaseParameters: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - // +kubebuilder:validation:Optional - catalogId?: null | string @go(CatalogID,*string) - - // – Name of the database resource. Unique to the Data Catalog. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.CatalogDatabase - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Reference to a CatalogDatabase in glue to populate name. - // +kubebuilder:validation:Optional - nameRef?: null | v1.#Reference @go(NameRef,*v1.Reference) - - // Selector for a CatalogDatabase in glue to populate name. - // +kubebuilder:validation:Optional - nameSelector?: null | v1.#Selector @go(NameSelector,*v1.Selector) -} - -#ExpressionInitParameters: { - // name of an LF-Tag. - key?: null | string @go(Key,*string) - - // A list of possible values of an LF-Tag. - values?: [...null | string] @go(Values,[]*string) -} - -#ExpressionObservation: { - // name of an LF-Tag. - key?: null | string @go(Key,*string) - - // A list of possible values of an LF-Tag. - values?: [...null | string] @go(Values,[]*string) -} - -#ExpressionParameters: { - // name of an LF-Tag. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // A list of possible values of an LF-Tag. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#LfTagInitParameters: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - catalogId?: null | string @go(CatalogID,*string) - - // name for the tag. - key?: null | string @go(Key,*string) - - // A list of possible values an attribute can take. - values?: [...null | string] @go(Values,[]*string) -} - -#LfTagObservation: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - catalogId?: null | string @go(CatalogID,*string) - - // name for the tag. - key?: null | string @go(Key,*string) - - // A list of possible values an attribute can take. - values?: [...null | string] @go(Values,[]*string) -} - -#LfTagParameters: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - // +kubebuilder:validation:Optional - catalogId?: null | string @go(CatalogID,*string) - - // name for the tag. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // A list of possible values an attribute can take. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#LfTagPolicyInitParameters: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - catalogId?: null | string @go(CatalogID,*string) - - // A list of tag conditions that apply to the resource's tag policy. Configuration block for tag conditions that apply to the policy. See expression below. - expression?: [...#ExpressionInitParameters] @go(Expression,[]ExpressionInitParameters) - - // – The resource type for which the tag policy applies. Valid values are DATABASE and TABLE. - resourceType?: null | string @go(ResourceType,*string) -} - -#LfTagPolicyObservation: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - catalogId?: null | string @go(CatalogID,*string) - - // A list of tag conditions that apply to the resource's tag policy. Configuration block for tag conditions that apply to the policy. See expression below. - expression?: [...#ExpressionObservation] @go(Expression,[]ExpressionObservation) - - // – The resource type for which the tag policy applies. Valid values are DATABASE and TABLE. - resourceType?: null | string @go(ResourceType,*string) -} - -#LfTagPolicyParameters: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - // +kubebuilder:validation:Optional - catalogId?: null | string @go(CatalogID,*string) - - // A list of tag conditions that apply to the resource's tag policy. Configuration block for tag conditions that apply to the policy. See expression below. - // +kubebuilder:validation:Optional - expression: [...#ExpressionParameters] @go(Expression,[]ExpressionParameters) - - // – The resource type for which the tag policy applies. Valid values are DATABASE and TABLE. - // +kubebuilder:validation:Optional - resourceType?: null | string @go(ResourceType,*string) -} - -#PermissionsInitParameters: { - // – Identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. - catalogId?: null | string @go(CatalogID,*string) - - // Whether the permissions are to be granted for the Data Catalog. Defaults to false. - catalogResource?: null | bool @go(CatalogResource,*bool) - - // Configuration block for a data location resource. Detailed below. - dataLocation?: [...#DataLocationInitParameters] @go(DataLocation,[]DataLocationInitParameters) - - // Configuration block for a database resource. Detailed below. - database?: [...#DatabaseInitParameters] @go(Database,[]DatabaseInitParameters) - - // Configuration block for an LF-tag resource. Detailed below. - lfTag?: [...#LfTagInitParameters] @go(LfTag,[]LfTagInitParameters) - - // Configuration block for an LF-tag policy resource. Detailed below. - lfTagPolicy?: [...#LfTagPolicyInitParameters] @go(LfTagPolicy,[]LfTagPolicyInitParameters) - - // – List of permissions granted to the principal. Valid values may include ALL, ALTER, ASSOCIATE, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS, DELETE, DESCRIBE, DROP, INSERT, and SELECT. For details on each permission, see Lake Formation Permissions Reference. - permissions?: [...null | string] @go(Permissions,[]*string) - - // Subset of permissions which the principal can pass. - permissionsWithGrantOption?: [...null | string] @go(PermissionsWithGrantOption,[]*string) - - // account permissions. For more information, see Lake Formation Permissions Reference. - principal?: null | string @go(Principal,*string) - - // Configuration block for a table resource. Detailed below. - table?: [...#TableInitParameters] @go(Table,[]TableInitParameters) - - // Configuration block for a table with columns resource. Detailed below. - tableWithColumns?: [...#TableWithColumnsInitParameters] @go(TableWithColumns,[]TableWithColumnsInitParameters) -} - -#PermissionsObservation: { - // – Identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. - catalogId?: null | string @go(CatalogID,*string) - - // Whether the permissions are to be granted for the Data Catalog. Defaults to false. - catalogResource?: null | bool @go(CatalogResource,*bool) - - // Configuration block for a data location resource. Detailed below. - dataLocation?: [...#DataLocationObservation] @go(DataLocation,[]DataLocationObservation) - - // Configuration block for a database resource. Detailed below. - database?: [...#DatabaseObservation] @go(Database,[]DatabaseObservation) - id?: null | string @go(ID,*string) - - // Configuration block for an LF-tag resource. Detailed below. - lfTag?: [...#LfTagObservation] @go(LfTag,[]LfTagObservation) - - // Configuration block for an LF-tag policy resource. Detailed below. - lfTagPolicy?: [...#LfTagPolicyObservation] @go(LfTagPolicy,[]LfTagPolicyObservation) - - // – List of permissions granted to the principal. Valid values may include ALL, ALTER, ASSOCIATE, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS, DELETE, DESCRIBE, DROP, INSERT, and SELECT. For details on each permission, see Lake Formation Permissions Reference. - permissions?: [...null | string] @go(Permissions,[]*string) - - // Subset of permissions which the principal can pass. - permissionsWithGrantOption?: [...null | string] @go(PermissionsWithGrantOption,[]*string) - - // account permissions. For more information, see Lake Formation Permissions Reference. - principal?: null | string @go(Principal,*string) - - // Configuration block for a table resource. Detailed below. - table?: [...#TableObservation] @go(Table,[]TableObservation) - - // Configuration block for a table with columns resource. Detailed below. - tableWithColumns?: [...#TableWithColumnsObservation] @go(TableWithColumns,[]TableWithColumnsObservation) -} - -#PermissionsParameters: { - // – Identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. - // +kubebuilder:validation:Optional - catalogId?: null | string @go(CatalogID,*string) - - // Whether the permissions are to be granted for the Data Catalog. Defaults to false. - // +kubebuilder:validation:Optional - catalogResource?: null | bool @go(CatalogResource,*bool) - - // Configuration block for a data location resource. Detailed below. - // +kubebuilder:validation:Optional - dataLocation?: [...#DataLocationParameters] @go(DataLocation,[]DataLocationParameters) - - // Configuration block for a database resource. Detailed below. - // +kubebuilder:validation:Optional - database?: [...#DatabaseParameters] @go(Database,[]DatabaseParameters) - - // Configuration block for an LF-tag resource. Detailed below. - // +kubebuilder:validation:Optional - lfTag?: [...#LfTagParameters] @go(LfTag,[]LfTagParameters) - - // Configuration block for an LF-tag policy resource. Detailed below. - // +kubebuilder:validation:Optional - lfTagPolicy?: [...#LfTagPolicyParameters] @go(LfTagPolicy,[]LfTagPolicyParameters) - - // – List of permissions granted to the principal. Valid values may include ALL, ALTER, ASSOCIATE, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS, DELETE, DESCRIBE, DROP, INSERT, and SELECT. For details on each permission, see Lake Formation Permissions Reference. - // +kubebuilder:validation:Optional - permissions?: [...null | string] @go(Permissions,[]*string) - - // Subset of permissions which the principal can pass. - // +kubebuilder:validation:Optional - permissionsWithGrantOption?: [...null | string] @go(PermissionsWithGrantOption,[]*string) - - // account permissions. For more information, see Lake Formation Permissions Reference. - // +kubebuilder:validation:Optional - principal?: null | string @go(Principal,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block for a table resource. Detailed below. - // +kubebuilder:validation:Optional - table?: [...#TableParameters] @go(Table,[]TableParameters) - - // Configuration block for a table with columns resource. Detailed below. - // +kubebuilder:validation:Optional - tableWithColumns?: [...#TableWithColumnsParameters] @go(TableWithColumns,[]TableWithColumnsParameters) -} - -#TableInitParameters: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - catalogId?: null | string @go(CatalogID,*string) - - // – Name of the database for the table. Unique to a Data Catalog. - databaseName?: null | string @go(DatabaseName,*string) - - // Name of the table. - name?: null | string @go(Name,*string) - - // Whether to use a wildcard representing every table under a database. Defaults to false. - wildcard?: null | bool @go(Wildcard,*bool) -} - -#TableObservation: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - catalogId?: null | string @go(CatalogID,*string) - - // – Name of the database for the table. Unique to a Data Catalog. - databaseName?: null | string @go(DatabaseName,*string) - - // Name of the table. - name?: null | string @go(Name,*string) - - // Whether to use a wildcard representing every table under a database. Defaults to false. - wildcard?: null | bool @go(Wildcard,*bool) -} - -#TableParameters: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - // +kubebuilder:validation:Optional - catalogId?: null | string @go(CatalogID,*string) - - // – Name of the database for the table. Unique to a Data Catalog. - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // Name of the table. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Whether to use a wildcard representing every table under a database. Defaults to false. - // +kubebuilder:validation:Optional - wildcard?: null | bool @go(Wildcard,*bool) -} - -#TableWithColumnsInitParameters: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - catalogId?: null | string @go(CatalogID,*string) - - // Set of column names for the table. - columnNames?: [...null | string] @go(ColumnNames,[]*string) - - // – Name of the database for the table with columns resource. Unique to the Data Catalog. - databaseName?: null | string @go(DatabaseName,*string) - - // Set of column names for the table to exclude. - excludedColumnNames?: [...null | string] @go(ExcludedColumnNames,[]*string) - - // Whether to use a column wildcard. - wildcard?: null | bool @go(Wildcard,*bool) -} - -#TableWithColumnsObservation: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - catalogId?: null | string @go(CatalogID,*string) - - // Set of column names for the table. - columnNames?: [...null | string] @go(ColumnNames,[]*string) - - // – Name of the database for the table with columns resource. Unique to the Data Catalog. - databaseName?: null | string @go(DatabaseName,*string) - - // Set of column names for the table to exclude. - excludedColumnNames?: [...null | string] @go(ExcludedColumnNames,[]*string) - - // – Name of the table resource. - name?: null | string @go(Name,*string) - - // Whether to use a column wildcard. - wildcard?: null | bool @go(Wildcard,*bool) -} - -#TableWithColumnsParameters: { - // Identifier for the Data Catalog. By default, it is the account ID of the caller. - // +kubebuilder:validation:Optional - catalogId?: null | string @go(CatalogID,*string) - - // Set of column names for the table. - // +kubebuilder:validation:Optional - columnNames?: [...null | string] @go(ColumnNames,[]*string) - - // – Name of the database for the table with columns resource. Unique to the Data Catalog. - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // Set of column names for the table to exclude. - // +kubebuilder:validation:Optional - excludedColumnNames?: [...null | string] @go(ExcludedColumnNames,[]*string) - - // – Name of the table resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.CatalogTable - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Reference to a CatalogTable in glue to populate name. - // +kubebuilder:validation:Optional - nameRef?: null | v1.#Reference @go(NameRef,*v1.Reference) - - // Selector for a CatalogTable in glue to populate name. - // +kubebuilder:validation:Optional - nameSelector?: null | v1.#Selector @go(NameSelector,*v1.Selector) - - // Whether to use a column wildcard. - // +kubebuilder:validation:Optional - wildcard?: null | bool @go(Wildcard,*bool) -} - -// PermissionsSpec defines the desired state of Permissions -#PermissionsSpec: { - v1.#ResourceSpec - forProvider: #PermissionsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PermissionsInitParameters @go(InitProvider) -} - -// PermissionsStatus defines the observed state of Permissions. -#PermissionsStatus: { - v1.#ResourceStatus - atProvider?: #PermissionsObservation @go(AtProvider) -} - -// Permissions is the Schema for the Permissionss API. Grants permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Permissions: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.permissions) || (has(self.initProvider) && has(self.initProvider.permissions))",message="spec.forProvider.permissions is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.principal) || (has(self.initProvider) && has(self.initProvider.principal))",message="spec.forProvider.principal is a required parameter" - spec: #PermissionsSpec @go(Spec) - status?: #PermissionsStatus @go(Status) -} - -// PermissionsList contains a list of Permissionss -#PermissionsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Permissions] @go(Items,[]Permissions) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lakeformation/v1beta1/zz_resource_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lakeformation/v1beta1/zz_resource_types_go_gen.cue deleted file mode 100644 index dccd4a9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lakeformation/v1beta1/zz_resource_types_go_gen.cue +++ /dev/null @@ -1,99 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lakeformation/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourceInitParameters: { - // – Amazon Resource Name (ARN) of the resource, an S3 path. - arn?: null | string @go(Arn,*string) -} - -#ResourceObservation: { - // – Amazon Resource Name (ARN) of the resource, an S3 path. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // The date and time the resource was last modified in RFC 3339 format. - lastModified?: null | string @go(LastModified,*string) - - // linked role must exist and is used. - roleArn?: null | string @go(RoleArn,*string) -} - -#ResourceParameters: { - // – Amazon Resource Name (ARN) of the resource, an S3 path. - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // linked role must exist and is used. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -// ResourceSpec defines the desired state of Resource -#ResourceSpec: { - v1.#ResourceSpec - forProvider: #ResourceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourceInitParameters @go(InitProvider) -} - -// ResourceStatus defines the observed state of Resource. -#ResourceStatus: { - v1.#ResourceStatus - atProvider?: #ResourceObservation @go(AtProvider) -} - -// Resource is the Schema for the Resources API. Registers a Lake Formation resource as managed by the Data Catalog. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Resource: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.arn) || (has(self.initProvider) && has(self.initProvider.arn))",message="spec.forProvider.arn is a required parameter" - spec: #ResourceSpec @go(Spec) - status?: #ResourceStatus @go(Status) -} - -// ResourceList contains a list of Resources -#ResourceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Resource] @go(Items,[]Resource) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_alias_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_alias_types_go_gen.cue deleted file mode 100644 index 268bd9d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_alias_types_go_gen.cue +++ /dev/null @@ -1,137 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lambda/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AliasInitParameters: { - // Description of the alias. - description?: null | string @go(Description,*string) - - // Lambda function version for which you are creating the alias. Pattern: (\$LATEST|[0-9]+). - functionVersion?: null | string @go(FunctionVersion,*string) - - // The Lambda alias' route configuration settings. Fields documented below - routingConfig?: [...#RoutingConfigInitParameters] @go(RoutingConfig,[]RoutingConfigInitParameters) -} - -#AliasObservation: { - // The Amazon Resource Name (ARN) identifying your Lambda function alias. - arn?: null | string @go(Arn,*string) - - // Description of the alias. - description?: null | string @go(Description,*string) - - // Lambda Function name or ARN. - functionName?: null | string @go(FunctionName,*string) - - // Lambda function version for which you are creating the alias. Pattern: (\$LATEST|[0-9]+). - functionVersion?: null | string @go(FunctionVersion,*string) - id?: null | string @go(ID,*string) - - // The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_integration's uri - invokeArn?: null | string @go(InvokeArn,*string) - - // The Lambda alias' route configuration settings. Fields documented below - routingConfig?: [...#RoutingConfigObservation] @go(RoutingConfig,[]RoutingConfigObservation) -} - -#AliasParameters: { - // Description of the alias. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Lambda Function name or ARN. - // +crossplane:generate:reference:type=Function - // +kubebuilder:validation:Optional - functionName?: null | string @go(FunctionName,*string) - - // Reference to a Function to populate functionName. - // +kubebuilder:validation:Optional - functionNameRef?: null | v1.#Reference @go(FunctionNameRef,*v1.Reference) - - // Selector for a Function to populate functionName. - // +kubebuilder:validation:Optional - functionNameSelector?: null | v1.#Selector @go(FunctionNameSelector,*v1.Selector) - - // Lambda function version for which you are creating the alias. Pattern: (\$LATEST|[0-9]+). - // +kubebuilder:validation:Optional - functionVersion?: null | string @go(FunctionVersion,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Lambda alias' route configuration settings. Fields documented below - // +kubebuilder:validation:Optional - routingConfig?: [...#RoutingConfigParameters] @go(RoutingConfig,[]RoutingConfigParameters) -} - -#RoutingConfigInitParameters: { - // A map that defines the proportion of events that should be sent to different versions of a lambda function. - additionalVersionWeights?: {[string]: null | float64} @go(AdditionalVersionWeights,map[string]*float64) -} - -#RoutingConfigObservation: { - // A map that defines the proportion of events that should be sent to different versions of a lambda function. - additionalVersionWeights?: {[string]: null | float64} @go(AdditionalVersionWeights,map[string]*float64) -} - -#RoutingConfigParameters: { - // A map that defines the proportion of events that should be sent to different versions of a lambda function. - // +kubebuilder:validation:Optional - additionalVersionWeights?: {[string]: null | float64} @go(AdditionalVersionWeights,map[string]*float64) -} - -// AliasSpec defines the desired state of Alias -#AliasSpec: { - v1.#ResourceSpec - forProvider: #AliasParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AliasInitParameters @go(InitProvider) -} - -// AliasStatus defines the observed state of Alias. -#AliasStatus: { - v1.#ResourceStatus - atProvider?: #AliasObservation @go(AtProvider) -} - -// Alias is the Schema for the Aliass API. Creates a Lambda function alias. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Alias: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.functionVersion) || (has(self.initProvider) && has(self.initProvider.functionVersion))",message="spec.forProvider.functionVersion is a required parameter" - spec: #AliasSpec @go(Spec) - status?: #AliasStatus @go(Status) -} - -// AliasList contains a list of Aliass -#AliasList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Alias] @go(Items,[]Alias) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_codesigningconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_codesigningconfig_types_go_gen.cue deleted file mode 100644 index 015cb8d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_codesigningconfig_types_go_gen.cue +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lambda/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AllowedPublishersInitParameters: { -} - -#AllowedPublishersObservation: { - // The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package. - signingProfileVersionArns?: [...null | string] @go(SigningProfileVersionArns,[]*string) -} - -#AllowedPublishersParameters: { - // The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/signer/v1beta1.SigningProfile - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - signingProfileVersionArns?: [...null | string] @go(SigningProfileVersionArns,[]*string) - - // References to SigningProfile in signer to populate signingProfileVersionArns. - // +kubebuilder:validation:Optional - signingProfileVersionArnsRefs?: [...v1.#Reference] @go(SigningProfileVersionArnsRefs,[]v1.Reference) - - // Selector for a list of SigningProfile in signer to populate signingProfileVersionArns. - // +kubebuilder:validation:Optional - signingProfileVersionArnsSelector?: null | v1.#Selector @go(SigningProfileVersionArnsSelector,*v1.Selector) -} - -#CodeSigningConfigInitParameters: { - // A configuration block of allowed publishers as signing profiles for this code signing configuration. Detailed below. - allowedPublishers?: [...#AllowedPublishersInitParameters] @go(AllowedPublishers,[]AllowedPublishersInitParameters) - - // Descriptive name for this code signing configuration. - description?: null | string @go(Description,*string) - - // A configuration block of code signing policies that define the actions to take if the validation checks fail. Detailed below. - policies?: [...#PoliciesInitParameters] @go(Policies,[]PoliciesInitParameters) -} - -#CodeSigningConfigObservation: { - // A configuration block of allowed publishers as signing profiles for this code signing configuration. Detailed below. - allowedPublishers?: [...#AllowedPublishersObservation] @go(AllowedPublishers,[]AllowedPublishersObservation) - - // The Amazon Resource Name (ARN) of the code signing configuration. - arn?: null | string @go(Arn,*string) - - // Unique identifier for the code signing configuration. - configId?: null | string @go(ConfigID,*string) - - // Descriptive name for this code signing configuration. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // The date and time that the code signing configuration was last modified. - lastModified?: null | string @go(LastModified,*string) - - // A configuration block of code signing policies that define the actions to take if the validation checks fail. Detailed below. - policies?: [...#PoliciesObservation] @go(Policies,[]PoliciesObservation) -} - -#CodeSigningConfigParameters: { - // A configuration block of allowed publishers as signing profiles for this code signing configuration. Detailed below. - // +kubebuilder:validation:Optional - allowedPublishers?: [...#AllowedPublishersParameters] @go(AllowedPublishers,[]AllowedPublishersParameters) - - // Descriptive name for this code signing configuration. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A configuration block of code signing policies that define the actions to take if the validation checks fail. Detailed below. - // +kubebuilder:validation:Optional - policies?: [...#PoliciesParameters] @go(Policies,[]PoliciesParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#PoliciesInitParameters: { - // Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if code-signing validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log. Valid values: Warn, Enforce. Default value: Warn. - untrustedArtifactOnDeployment?: null | string @go(UntrustedArtifactOnDeployment,*string) -} - -#PoliciesObservation: { - // Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if code-signing validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log. Valid values: Warn, Enforce. Default value: Warn. - untrustedArtifactOnDeployment?: null | string @go(UntrustedArtifactOnDeployment,*string) -} - -#PoliciesParameters: { - // Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if code-signing validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log. Valid values: Warn, Enforce. Default value: Warn. - // +kubebuilder:validation:Optional - untrustedArtifactOnDeployment?: null | string @go(UntrustedArtifactOnDeployment,*string) -} - -// CodeSigningConfigSpec defines the desired state of CodeSigningConfig -#CodeSigningConfigSpec: { - v1.#ResourceSpec - forProvider: #CodeSigningConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CodeSigningConfigInitParameters @go(InitProvider) -} - -// CodeSigningConfigStatus defines the observed state of CodeSigningConfig. -#CodeSigningConfigStatus: { - v1.#ResourceStatus - atProvider?: #CodeSigningConfigObservation @go(AtProvider) -} - -// CodeSigningConfig is the Schema for the CodeSigningConfigs API. Provides a Lambda Code Signing Config resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CodeSigningConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.allowedPublishers) || (has(self.initProvider) && has(self.initProvider.allowedPublishers))",message="spec.forProvider.allowedPublishers is a required parameter" - spec: #CodeSigningConfigSpec @go(Spec) - status?: #CodeSigningConfigStatus @go(Status) -} - -// CodeSigningConfigList contains a list of CodeSigningConfigs -#CodeSigningConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CodeSigningConfig] @go(Items,[]CodeSigningConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_eventsourcemapping_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_eventsourcemapping_types_go_gen.cue deleted file mode 100644 index 4167e76..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_eventsourcemapping_types_go_gen.cue +++ /dev/null @@ -1,512 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lambda/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AmazonManagedKafkaEventSourceConfigInitParameters: { - // A Kafka consumer group ID between 1 and 200 characters for use when creating this event source mapping. If one is not specified, this value will be automatically generated. See AmazonManagedKafkaEventSourceConfig Syntax. - consumerGroupId?: null | string @go(ConsumerGroupID,*string) -} - -#AmazonManagedKafkaEventSourceConfigObservation: { - // A Kafka consumer group ID between 1 and 200 characters for use when creating this event source mapping. If one is not specified, this value will be automatically generated. See AmazonManagedKafkaEventSourceConfig Syntax. - consumerGroupId?: null | string @go(ConsumerGroupID,*string) -} - -#AmazonManagedKafkaEventSourceConfigParameters: { - // A Kafka consumer group ID between 1 and 200 characters for use when creating this event source mapping. If one is not specified, this value will be automatically generated. See AmazonManagedKafkaEventSourceConfig Syntax. - // +kubebuilder:validation:Optional - consumerGroupId?: null | string @go(ConsumerGroupID,*string) -} - -#DestinationConfigInitParameters: { - // The destination configuration for failed invocations. Detailed below. - onFailure?: [...#OnFailureInitParameters] @go(OnFailure,[]OnFailureInitParameters) -} - -#DestinationConfigObservation: { - // The destination configuration for failed invocations. Detailed below. - onFailure?: [...#OnFailureObservation] @go(OnFailure,[]OnFailureObservation) -} - -#DestinationConfigParameters: { - // The destination configuration for failed invocations. Detailed below. - // +kubebuilder:validation:Optional - onFailure?: [...#OnFailureParameters] @go(OnFailure,[]OnFailureParameters) -} - -#DocumentDBEventSourceConfigInitParameters: { - // The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections. - collectionName?: null | string @go(CollectionName,*string) - - // The name of the database to consume within the DocumentDB cluster. - databaseName?: null | string @go(DatabaseName,*string) - - // Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes. Valid values: UpdateLookup, Default. - fullDocument?: null | string @go(FullDocument,*string) -} - -#DocumentDBEventSourceConfigObservation: { - // The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections. - collectionName?: null | string @go(CollectionName,*string) - - // The name of the database to consume within the DocumentDB cluster. - databaseName?: null | string @go(DatabaseName,*string) - - // Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes. Valid values: UpdateLookup, Default. - fullDocument?: null | string @go(FullDocument,*string) -} - -#DocumentDBEventSourceConfigParameters: { - // The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections. - // +kubebuilder:validation:Optional - collectionName?: null | string @go(CollectionName,*string) - - // The name of the database to consume within the DocumentDB cluster. - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes. Valid values: UpdateLookup, Default. - // +kubebuilder:validation:Optional - fullDocument?: null | string @go(FullDocument,*string) -} - -#EventSourceMappingInitParameters: { - // Additional configuration block for Amazon Managed Kafka sources. Incompatible with "self_managed_event_source" and "self_managed_kafka_event_source_config". Detailed below. - amazonManagedKafkaEventSourceConfig?: [...#AmazonManagedKafkaEventSourceConfigInitParameters] @go(AmazonManagedKafkaEventSourceConfig,[]AmazonManagedKafkaEventSourceConfigInitParameters) - - // The largest number of records that Lambda will retrieve from your event source at the time of invocation. Defaults to 100 for DynamoDB, Kinesis, MQ and MSK, 10 for SQS. - batchSize?: null | float64 @go(BatchSize,*float64) - - // If the function returns an error, split the batch in two and retry. Only available for stream sources (DynamoDB and Kinesis). Defaults to false. - bisectBatchOnFunctionError?: null | bool @go(BisectBatchOnFunctionError,*bool) - - // An Amazon SQS queue or Amazon SNS topic destination for failed records. Only available for stream sources (DynamoDB and Kinesis). Detailed below. - destinationConfig?: [...#DestinationConfigInitParameters] @go(DestinationConfig,[]DestinationConfigInitParameters) - - // Configuration settings for a DocumentDB event source. Detailed below. - documentDbEventSourceConfig?: [...#DocumentDBEventSourceConfigInitParameters] @go(DocumentDBEventSourceConfig,[]DocumentDBEventSourceConfigInitParameters) - - // Determines if the mapping will be enabled on creation. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // The event source ARN - this is required for Kinesis stream, DynamoDB stream, SQS queue, MQ broker, MSK cluster or DocumentDB change stream. It is incompatible with a Self Managed Kafka source. - eventSourceArn?: null | string @go(EventSourceArn,*string) - - // The criteria to use for event filtering Kinesis stream, DynamoDB stream, SQS queue event sources. Detailed below. - filterCriteria?: [...#FilterCriteriaInitParameters] @go(FilterCriteria,[]FilterCriteriaInitParameters) - - // A list of current response type enums applied to the event source mapping for AWS Lambda checkpointing. Only available for SQS and stream sources (DynamoDB and Kinesis). Valid values: ReportBatchItemFailures. - functionResponseTypes?: [...null | string] @go(FunctionResponseTypes,[]*string) - - // The maximum amount of time to gather records before invoking the function, in seconds (between 0 and 300). Records will continue to buffer (or accumulate in the case of an SQS queue event source) until either maximum_batching_window_in_seconds expires or batch_size has been met. For streaming event sources, defaults to as soon as records are available in the stream. If the batch it reads from the stream/queue only has one record in it, Lambda only sends one record to the function. Only available for stream sources (DynamoDB and Kinesis) and SQS standard queues. - maximumBatchingWindowInSeconds?: null | float64 @go(MaximumBatchingWindowInSeconds,*float64) - - // The maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Must be either -1 (forever, and the default value) or between 60 and 604800 (inclusive). - maximumRecordAgeInSeconds?: null | float64 @go(MaximumRecordAgeInSeconds,*float64) - - // The maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of -1 (forever), maximum of 10000. - maximumRetryAttempts?: null | float64 @go(MaximumRetryAttempts,*float64) - - // The number of batches to process from each shard concurrently. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of 1, maximum of 10. - parallelizationFactor?: null | float64 @go(ParallelizationFactor,*float64) - - // The name of the Amazon MQ broker destination queue to consume. Only available for MQ sources. A single queue name must be specified. - queues?: [...null | string] @go(Queues,[]*string) - - // Scaling configuration of the event source. Only available for SQS queues. Detailed below. - scalingConfig?: [...#ScalingConfigInitParameters] @go(ScalingConfig,[]ScalingConfigInitParameters) - - // For Self Managed Kafka sources, the location of the self managed cluster. If set, configuration must also include source_access_configuration. Detailed below. - selfManagedEventSource?: [...#SelfManagedEventSourceInitParameters] @go(SelfManagedEventSource,[]SelfManagedEventSourceInitParameters) - - // Additional configuration block for Self Managed Kafka sources. Incompatible with "event_source_arn" and "amazon_managed_kafka_event_source_config". Detailed below. - selfManagedKafkaEventSourceConfig?: [...#SelfManagedKafkaEventSourceConfigInitParameters] @go(SelfManagedKafkaEventSourceConfig,[]SelfManagedKafkaEventSourceConfigInitParameters) - - // : For Self Managed Kafka sources, the access configuration for the source. If set, configuration must also include self_managed_event_source. Detailed below. - sourceAccessConfiguration?: [...#SourceAccessConfigurationInitParameters] @go(SourceAccessConfiguration,[]SourceAccessConfigurationInitParameters) - - // The position in the stream where AWS Lambda should start reading. Must be one of AT_TIMESTAMP (Kinesis only), LATEST or TRIM_HORIZON if getting events from Kinesis, DynamoDB, MSK or Self Managed Apache Kafka. Must not be provided if getting events from SQS. More information about these positions can be found in the AWS DynamoDB Streams API Reference and AWS Kinesis API Reference. - startingPosition?: null | string @go(StartingPosition,*string) - - // A timestamp in RFC3339 format of the data record which to start reading when using starting_position set to AT_TIMESTAMP. If a record with this exact timestamp does not exist, the next later record is chosen. If the timestamp is older than the current trim horizon, the oldest available record is chosen. - startingPositionTimestamp?: null | string @go(StartingPositionTimestamp,*string) - - // The name of the Kafka topics. Only available for MSK sources. A single topic name must be specified. - topics?: [...null | string] @go(Topics,[]*string) - - // The duration in seconds of a processing window for AWS Lambda streaming analytics. The range is between 1 second up to 900 seconds. Only available for stream sources (DynamoDB and Kinesis). - tumblingWindowInSeconds?: null | float64 @go(TumblingWindowInSeconds,*float64) -} - -#EventSourceMappingObservation: { - // Additional configuration block for Amazon Managed Kafka sources. Incompatible with "self_managed_event_source" and "self_managed_kafka_event_source_config". Detailed below. - amazonManagedKafkaEventSourceConfig?: [...#AmazonManagedKafkaEventSourceConfigObservation] @go(AmazonManagedKafkaEventSourceConfig,[]AmazonManagedKafkaEventSourceConfigObservation) - - // The largest number of records that Lambda will retrieve from your event source at the time of invocation. Defaults to 100 for DynamoDB, Kinesis, MQ and MSK, 10 for SQS. - batchSize?: null | float64 @go(BatchSize,*float64) - - // If the function returns an error, split the batch in two and retry. Only available for stream sources (DynamoDB and Kinesis). Defaults to false. - bisectBatchOnFunctionError?: null | bool @go(BisectBatchOnFunctionError,*bool) - - // An Amazon SQS queue or Amazon SNS topic destination for failed records. Only available for stream sources (DynamoDB and Kinesis). Detailed below. - destinationConfig?: [...#DestinationConfigObservation] @go(DestinationConfig,[]DestinationConfigObservation) - - // Configuration settings for a DocumentDB event source. Detailed below. - documentDbEventSourceConfig?: [...#DocumentDBEventSourceConfigObservation] @go(DocumentDBEventSourceConfig,[]DocumentDBEventSourceConfigObservation) - - // Determines if the mapping will be enabled on creation. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // The event source ARN - this is required for Kinesis stream, DynamoDB stream, SQS queue, MQ broker, MSK cluster or DocumentDB change stream. It is incompatible with a Self Managed Kafka source. - eventSourceArn?: null | string @go(EventSourceArn,*string) - - // The criteria to use for event filtering Kinesis stream, DynamoDB stream, SQS queue event sources. Detailed below. - filterCriteria?: [...#FilterCriteriaObservation] @go(FilterCriteria,[]FilterCriteriaObservation) - - // The the ARN of the Lambda function the event source mapping is sending events to. (Note: this is a computed value that differs from function_name above.) - functionArn?: null | string @go(FunctionArn,*string) - - // The name or the ARN of the Lambda function that will be subscribing to events. - functionName?: null | string @go(FunctionName,*string) - - // A list of current response type enums applied to the event source mapping for AWS Lambda checkpointing. Only available for SQS and stream sources (DynamoDB and Kinesis). Valid values: ReportBatchItemFailures. - functionResponseTypes?: [...null | string] @go(FunctionResponseTypes,[]*string) - id?: null | string @go(ID,*string) - - // The date this resource was last modified. - lastModified?: null | string @go(LastModified,*string) - - // The result of the last AWS Lambda invocation of your Lambda function. - lastProcessingResult?: null | string @go(LastProcessingResult,*string) - - // The maximum amount of time to gather records before invoking the function, in seconds (between 0 and 300). Records will continue to buffer (or accumulate in the case of an SQS queue event source) until either maximum_batching_window_in_seconds expires or batch_size has been met. For streaming event sources, defaults to as soon as records are available in the stream. If the batch it reads from the stream/queue only has one record in it, Lambda only sends one record to the function. Only available for stream sources (DynamoDB and Kinesis) and SQS standard queues. - maximumBatchingWindowInSeconds?: null | float64 @go(MaximumBatchingWindowInSeconds,*float64) - - // The maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Must be either -1 (forever, and the default value) or between 60 and 604800 (inclusive). - maximumRecordAgeInSeconds?: null | float64 @go(MaximumRecordAgeInSeconds,*float64) - - // The maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of -1 (forever), maximum of 10000. - maximumRetryAttempts?: null | float64 @go(MaximumRetryAttempts,*float64) - - // The number of batches to process from each shard concurrently. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of 1, maximum of 10. - parallelizationFactor?: null | float64 @go(ParallelizationFactor,*float64) - - // The name of the Amazon MQ broker destination queue to consume. Only available for MQ sources. A single queue name must be specified. - queues?: [...null | string] @go(Queues,[]*string) - - // Scaling configuration of the event source. Only available for SQS queues. Detailed below. - scalingConfig?: [...#ScalingConfigObservation] @go(ScalingConfig,[]ScalingConfigObservation) - - // For Self Managed Kafka sources, the location of the self managed cluster. If set, configuration must also include source_access_configuration. Detailed below. - selfManagedEventSource?: [...#SelfManagedEventSourceObservation] @go(SelfManagedEventSource,[]SelfManagedEventSourceObservation) - - // Additional configuration block for Self Managed Kafka sources. Incompatible with "event_source_arn" and "amazon_managed_kafka_event_source_config". Detailed below. - selfManagedKafkaEventSourceConfig?: [...#SelfManagedKafkaEventSourceConfigObservation] @go(SelfManagedKafkaEventSourceConfig,[]SelfManagedKafkaEventSourceConfigObservation) - - // : For Self Managed Kafka sources, the access configuration for the source. If set, configuration must also include self_managed_event_source. Detailed below. - sourceAccessConfiguration?: [...#SourceAccessConfigurationObservation] @go(SourceAccessConfiguration,[]SourceAccessConfigurationObservation) - - // The position in the stream where AWS Lambda should start reading. Must be one of AT_TIMESTAMP (Kinesis only), LATEST or TRIM_HORIZON if getting events from Kinesis, DynamoDB, MSK or Self Managed Apache Kafka. Must not be provided if getting events from SQS. More information about these positions can be found in the AWS DynamoDB Streams API Reference and AWS Kinesis API Reference. - startingPosition?: null | string @go(StartingPosition,*string) - - // A timestamp in RFC3339 format of the data record which to start reading when using starting_position set to AT_TIMESTAMP. If a record with this exact timestamp does not exist, the next later record is chosen. If the timestamp is older than the current trim horizon, the oldest available record is chosen. - startingPositionTimestamp?: null | string @go(StartingPositionTimestamp,*string) - - // The state of the event source mapping. - state?: null | string @go(State,*string) - - // The reason the event source mapping is in its current state. - stateTransitionReason?: null | string @go(StateTransitionReason,*string) - - // The name of the Kafka topics. Only available for MSK sources. A single topic name must be specified. - topics?: [...null | string] @go(Topics,[]*string) - - // The duration in seconds of a processing window for AWS Lambda streaming analytics. The range is between 1 second up to 900 seconds. Only available for stream sources (DynamoDB and Kinesis). - tumblingWindowInSeconds?: null | float64 @go(TumblingWindowInSeconds,*float64) - - // The UUID of the created event source mapping. - uuid?: null | string @go(UUID,*string) -} - -#EventSourceMappingParameters: { - // Additional configuration block for Amazon Managed Kafka sources. Incompatible with "self_managed_event_source" and "self_managed_kafka_event_source_config". Detailed below. - // +kubebuilder:validation:Optional - amazonManagedKafkaEventSourceConfig?: [...#AmazonManagedKafkaEventSourceConfigParameters] @go(AmazonManagedKafkaEventSourceConfig,[]AmazonManagedKafkaEventSourceConfigParameters) - - // The largest number of records that Lambda will retrieve from your event source at the time of invocation. Defaults to 100 for DynamoDB, Kinesis, MQ and MSK, 10 for SQS. - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // If the function returns an error, split the batch in two and retry. Only available for stream sources (DynamoDB and Kinesis). Defaults to false. - // +kubebuilder:validation:Optional - bisectBatchOnFunctionError?: null | bool @go(BisectBatchOnFunctionError,*bool) - - // An Amazon SQS queue or Amazon SNS topic destination for failed records. Only available for stream sources (DynamoDB and Kinesis). Detailed below. - // +kubebuilder:validation:Optional - destinationConfig?: [...#DestinationConfigParameters] @go(DestinationConfig,[]DestinationConfigParameters) - - // Configuration settings for a DocumentDB event source. Detailed below. - // +kubebuilder:validation:Optional - documentDbEventSourceConfig?: [...#DocumentDBEventSourceConfigParameters] @go(DocumentDBEventSourceConfig,[]DocumentDBEventSourceConfigParameters) - - // Determines if the mapping will be enabled on creation. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // The event source ARN - this is required for Kinesis stream, DynamoDB stream, SQS queue, MQ broker, MSK cluster or DocumentDB change stream. It is incompatible with a Self Managed Kafka source. - // +kubebuilder:validation:Optional - eventSourceArn?: null | string @go(EventSourceArn,*string) - - // The criteria to use for event filtering Kinesis stream, DynamoDB stream, SQS queue event sources. Detailed below. - // +kubebuilder:validation:Optional - filterCriteria?: [...#FilterCriteriaParameters] @go(FilterCriteria,[]FilterCriteriaParameters) - - // The name or the ARN of the Lambda function that will be subscribing to events. - // +crossplane:generate:reference:type=Function - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - functionName?: null | string @go(FunctionName,*string) - - // Reference to a Function to populate functionName. - // +kubebuilder:validation:Optional - functionNameRef?: null | v1.#Reference @go(FunctionNameRef,*v1.Reference) - - // Selector for a Function to populate functionName. - // +kubebuilder:validation:Optional - functionNameSelector?: null | v1.#Selector @go(FunctionNameSelector,*v1.Selector) - - // A list of current response type enums applied to the event source mapping for AWS Lambda checkpointing. Only available for SQS and stream sources (DynamoDB and Kinesis). Valid values: ReportBatchItemFailures. - // +kubebuilder:validation:Optional - functionResponseTypes?: [...null | string] @go(FunctionResponseTypes,[]*string) - - // The maximum amount of time to gather records before invoking the function, in seconds (between 0 and 300). Records will continue to buffer (or accumulate in the case of an SQS queue event source) until either maximum_batching_window_in_seconds expires or batch_size has been met. For streaming event sources, defaults to as soon as records are available in the stream. If the batch it reads from the stream/queue only has one record in it, Lambda only sends one record to the function. Only available for stream sources (DynamoDB and Kinesis) and SQS standard queues. - // +kubebuilder:validation:Optional - maximumBatchingWindowInSeconds?: null | float64 @go(MaximumBatchingWindowInSeconds,*float64) - - // The maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Must be either -1 (forever, and the default value) or between 60 and 604800 (inclusive). - // +kubebuilder:validation:Optional - maximumRecordAgeInSeconds?: null | float64 @go(MaximumRecordAgeInSeconds,*float64) - - // The maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of -1 (forever), maximum of 10000. - // +kubebuilder:validation:Optional - maximumRetryAttempts?: null | float64 @go(MaximumRetryAttempts,*float64) - - // The number of batches to process from each shard concurrently. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of 1, maximum of 10. - // +kubebuilder:validation:Optional - parallelizationFactor?: null | float64 @go(ParallelizationFactor,*float64) - - // The name of the Amazon MQ broker destination queue to consume. Only available for MQ sources. A single queue name must be specified. - // +kubebuilder:validation:Optional - queues?: [...null | string] @go(Queues,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Scaling configuration of the event source. Only available for SQS queues. Detailed below. - // +kubebuilder:validation:Optional - scalingConfig?: [...#ScalingConfigParameters] @go(ScalingConfig,[]ScalingConfigParameters) - - // For Self Managed Kafka sources, the location of the self managed cluster. If set, configuration must also include source_access_configuration. Detailed below. - // +kubebuilder:validation:Optional - selfManagedEventSource?: [...#SelfManagedEventSourceParameters] @go(SelfManagedEventSource,[]SelfManagedEventSourceParameters) - - // Additional configuration block for Self Managed Kafka sources. Incompatible with "event_source_arn" and "amazon_managed_kafka_event_source_config". Detailed below. - // +kubebuilder:validation:Optional - selfManagedKafkaEventSourceConfig?: [...#SelfManagedKafkaEventSourceConfigParameters] @go(SelfManagedKafkaEventSourceConfig,[]SelfManagedKafkaEventSourceConfigParameters) - - // : For Self Managed Kafka sources, the access configuration for the source. If set, configuration must also include self_managed_event_source. Detailed below. - // +kubebuilder:validation:Optional - sourceAccessConfiguration?: [...#SourceAccessConfigurationParameters] @go(SourceAccessConfiguration,[]SourceAccessConfigurationParameters) - - // The position in the stream where AWS Lambda should start reading. Must be one of AT_TIMESTAMP (Kinesis only), LATEST or TRIM_HORIZON if getting events from Kinesis, DynamoDB, MSK or Self Managed Apache Kafka. Must not be provided if getting events from SQS. More information about these positions can be found in the AWS DynamoDB Streams API Reference and AWS Kinesis API Reference. - // +kubebuilder:validation:Optional - startingPosition?: null | string @go(StartingPosition,*string) - - // A timestamp in RFC3339 format of the data record which to start reading when using starting_position set to AT_TIMESTAMP. If a record with this exact timestamp does not exist, the next later record is chosen. If the timestamp is older than the current trim horizon, the oldest available record is chosen. - // +kubebuilder:validation:Optional - startingPositionTimestamp?: null | string @go(StartingPositionTimestamp,*string) - - // The name of the Kafka topics. Only available for MSK sources. A single topic name must be specified. - // +kubebuilder:validation:Optional - topics?: [...null | string] @go(Topics,[]*string) - - // The duration in seconds of a processing window for AWS Lambda streaming analytics. The range is between 1 second up to 900 seconds. Only available for stream sources (DynamoDB and Kinesis). - // +kubebuilder:validation:Optional - tumblingWindowInSeconds?: null | float64 @go(TumblingWindowInSeconds,*float64) -} - -#FilterCriteriaInitParameters: { - // A set of up to 5 filter. If an event satisfies at least one, Lambda sends the event to the function or adds it to the next batch. Detailed below. - filter?: [...#FilterInitParameters] @go(Filter,[]FilterInitParameters) -} - -#FilterCriteriaObservation: { - // A set of up to 5 filter. If an event satisfies at least one, Lambda sends the event to the function or adds it to the next batch. Detailed below. - filter?: [...#FilterObservation] @go(Filter,[]FilterObservation) -} - -#FilterCriteriaParameters: { - // A set of up to 5 filter. If an event satisfies at least one, Lambda sends the event to the function or adds it to the next batch. Detailed below. - // +kubebuilder:validation:Optional - filter?: [...#FilterParameters] @go(Filter,[]FilterParameters) -} - -#FilterInitParameters: { - // A filter pattern up to 4096 characters. See Filter Rule Syntax. - pattern?: null | string @go(Pattern,*string) -} - -#FilterObservation: { - // A filter pattern up to 4096 characters. See Filter Rule Syntax. - pattern?: null | string @go(Pattern,*string) -} - -#FilterParameters: { - // A filter pattern up to 4096 characters. See Filter Rule Syntax. - // +kubebuilder:validation:Optional - pattern?: null | string @go(Pattern,*string) -} - -#OnFailureInitParameters: { - // The Amazon Resource Name (ARN) of the destination resource. - destinationArn?: null | string @go(DestinationArn,*string) -} - -#OnFailureObservation: { - // The Amazon Resource Name (ARN) of the destination resource. - destinationArn?: null | string @go(DestinationArn,*string) -} - -#OnFailureParameters: { - // The Amazon Resource Name (ARN) of the destination resource. - // +kubebuilder:validation:Optional - destinationArn?: null | string @go(DestinationArn,*string) -} - -#ScalingConfigInitParameters: { - // Limits the number of concurrent instances that the Amazon SQS event source can invoke. Must be between 2 and 1000. See Configuring maximum concurrency for Amazon SQS event sources. - maximumConcurrency?: null | float64 @go(MaximumConcurrency,*float64) -} - -#ScalingConfigObservation: { - // Limits the number of concurrent instances that the Amazon SQS event source can invoke. Must be between 2 and 1000. See Configuring maximum concurrency for Amazon SQS event sources. - maximumConcurrency?: null | float64 @go(MaximumConcurrency,*float64) -} - -#ScalingConfigParameters: { - // Limits the number of concurrent instances that the Amazon SQS event source can invoke. Must be between 2 and 1000. See Configuring maximum concurrency for Amazon SQS event sources. - // +kubebuilder:validation:Optional - maximumConcurrency?: null | float64 @go(MaximumConcurrency,*float64) -} - -#SelfManagedEventSourceInitParameters: { - // A map of endpoints for the self managed source. For Kafka self-managed sources, the key should be KAFKA_BOOTSTRAP_SERVERS and the value should be a string with a comma separated list of broker endpoints. - endpoints?: {[string]: null | string} @go(Endpoints,map[string]*string) -} - -#SelfManagedEventSourceObservation: { - // A map of endpoints for the self managed source. For Kafka self-managed sources, the key should be KAFKA_BOOTSTRAP_SERVERS and the value should be a string with a comma separated list of broker endpoints. - endpoints?: {[string]: null | string} @go(Endpoints,map[string]*string) -} - -#SelfManagedEventSourceParameters: { - // A map of endpoints for the self managed source. For Kafka self-managed sources, the key should be KAFKA_BOOTSTRAP_SERVERS and the value should be a string with a comma separated list of broker endpoints. - // +kubebuilder:validation:Optional - endpoints: {[string]: null | string} @go(Endpoints,map[string]*string) -} - -#SelfManagedKafkaEventSourceConfigInitParameters: { - // A Kafka consumer group ID between 1 and 200 characters for use when creating this event source mapping. If one is not specified, this value will be automatically generated. See SelfManagedKafkaEventSourceConfig Syntax. - consumerGroupId?: null | string @go(ConsumerGroupID,*string) -} - -#SelfManagedKafkaEventSourceConfigObservation: { - // A Kafka consumer group ID between 1 and 200 characters for use when creating this event source mapping. If one is not specified, this value will be automatically generated. See SelfManagedKafkaEventSourceConfig Syntax. - consumerGroupId?: null | string @go(ConsumerGroupID,*string) -} - -#SelfManagedKafkaEventSourceConfigParameters: { - // A Kafka consumer group ID between 1 and 200 characters for use when creating this event source mapping. If one is not specified, this value will be automatically generated. See SelfManagedKafkaEventSourceConfig Syntax. - // +kubebuilder:validation:Optional - consumerGroupId?: null | string @go(ConsumerGroupID,*string) -} - -#SourceAccessConfigurationInitParameters: { - // The type of this configuration. For Self Managed Kafka you will need to supply blocks for type VPC_SUBNET and VPC_SECURITY_GROUP. - type?: null | string @go(Type,*string) - - // The URI for this configuration. For type VPC_SUBNET the value should be subnet:subnet_id where subnet_id is the value you would find in an aws_subnet resource's id attribute. For type VPC_SECURITY_GROUP the value should be security_group:security_group_id where security_group_id is the value you would find in an aws_security_group resource's id attribute. - uri?: null | string @go(URI,*string) -} - -#SourceAccessConfigurationObservation: { - // The type of this configuration. For Self Managed Kafka you will need to supply blocks for type VPC_SUBNET and VPC_SECURITY_GROUP. - type?: null | string @go(Type,*string) - - // The URI for this configuration. For type VPC_SUBNET the value should be subnet:subnet_id where subnet_id is the value you would find in an aws_subnet resource's id attribute. For type VPC_SECURITY_GROUP the value should be security_group:security_group_id where security_group_id is the value you would find in an aws_security_group resource's id attribute. - uri?: null | string @go(URI,*string) -} - -#SourceAccessConfigurationParameters: { - // The type of this configuration. For Self Managed Kafka you will need to supply blocks for type VPC_SUBNET and VPC_SECURITY_GROUP. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The URI for this configuration. For type VPC_SUBNET the value should be subnet:subnet_id where subnet_id is the value you would find in an aws_subnet resource's id attribute. For type VPC_SECURITY_GROUP the value should be security_group:security_group_id where security_group_id is the value you would find in an aws_security_group resource's id attribute. - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) -} - -// EventSourceMappingSpec defines the desired state of EventSourceMapping -#EventSourceMappingSpec: { - v1.#ResourceSpec - forProvider: #EventSourceMappingParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EventSourceMappingInitParameters @go(InitProvider) -} - -// EventSourceMappingStatus defines the observed state of EventSourceMapping. -#EventSourceMappingStatus: { - v1.#ResourceStatus - atProvider?: #EventSourceMappingObservation @go(AtProvider) -} - -// EventSourceMapping is the Schema for the EventSourceMappings API. Provides a Lambda event source mapping. This allows Lambda functions to get events from Kinesis, DynamoDB, SQS, Amazon MQ and Managed Streaming for Apache Kafka (MSK). -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EventSourceMapping: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EventSourceMappingSpec @go(Spec) - status?: #EventSourceMappingStatus @go(Status) -} - -// EventSourceMappingList contains a list of EventSourceMappings -#EventSourceMappingList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EventSourceMapping] @go(Items,[]EventSourceMapping) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_function_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_function_types_go_gen.cue deleted file mode 100644 index b1bcc23..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_function_types_go_gen.cue +++ /dev/null @@ -1,617 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lambda/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DeadLetterConfigInitParameters: { - // ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the sns:Publish or sqs:SendMessage action on this ARN, depending on which service is targeted. - targetArn?: null | string @go(TargetArn,*string) -} - -#DeadLetterConfigObservation: { - // ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the sns:Publish or sqs:SendMessage action on this ARN, depending on which service is targeted. - targetArn?: null | string @go(TargetArn,*string) -} - -#DeadLetterConfigParameters: { - // ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the sns:Publish or sqs:SendMessage action on this ARN, depending on which service is targeted. - // +kubebuilder:validation:Optional - targetArn?: null | string @go(TargetArn,*string) -} - -#EnvironmentInitParameters: { - // Map of environment variables that are accessible from the function code during execution. If provided at least one key must be present. - variables?: {[string]: null | string} @go(Variables,map[string]*string) -} - -#EnvironmentObservation: { - // Map of environment variables that are accessible from the function code during execution. If provided at least one key must be present. - variables?: {[string]: null | string} @go(Variables,map[string]*string) -} - -#EnvironmentParameters: { - // Map of environment variables that are accessible from the function code during execution. If provided at least one key must be present. - // +kubebuilder:validation:Optional - variables?: {[string]: null | string} @go(Variables,map[string]*string) -} - -#EphemeralStorageInitParameters: { - // The size of the Lambda function Ephemeral storage(/tmp) represented in MB. The minimum supported ephemeral_storage value defaults to 512MB and the maximum supported value is 10240MB. - size?: null | float64 @go(Size,*float64) -} - -#EphemeralStorageObservation: { - // The size of the Lambda function Ephemeral storage(/tmp) represented in MB. The minimum supported ephemeral_storage value defaults to 512MB and the maximum supported value is 10240MB. - size?: null | float64 @go(Size,*float64) -} - -#EphemeralStorageParameters: { - // The size of the Lambda function Ephemeral storage(/tmp) represented in MB. The minimum supported ephemeral_storage value defaults to 512MB and the maximum supported value is 10240MB. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) -} - -#FileSystemConfigInitParameters: { - // Path where the function can access the file system, starting with /mnt/. - localMountPath?: null | string @go(LocalMountPath,*string) -} - -#FileSystemConfigObservation: { - // Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system. - arn?: null | string @go(Arn,*string) - - // Path where the function can access the file system, starting with /mnt/. - localMountPath?: null | string @go(LocalMountPath,*string) -} - -#FileSystemConfigParameters: { - // Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/efs/v1beta1.AccessPoint - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // Reference to a AccessPoint in efs to populate arn. - // +kubebuilder:validation:Optional - arnRef?: null | v1.#Reference @go(ArnRef,*v1.Reference) - - // Selector for a AccessPoint in efs to populate arn. - // +kubebuilder:validation:Optional - arnSelector?: null | v1.#Selector @go(ArnSelector,*v1.Selector) - - // Path where the function can access the file system, starting with /mnt/. - // +kubebuilder:validation:Optional - localMountPath?: null | string @go(LocalMountPath,*string) -} - -#FunctionInitParameters: { - // Instruction set architecture for your Lambda function. Valid values are ["x86_64"] and ["arm64"]. Default is ["x86_64"]. Removing this attribute, function's architecture stay the same. - architectures?: [...null | string] @go(Architectures,[]*string) - - // To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function. - codeSigningConfigArn?: null | string @go(CodeSigningConfigArn,*string) - - // Configuration block. Detailed below. - deadLetterConfig?: [...#DeadLetterConfigInitParameters] @go(DeadLetterConfig,[]DeadLetterConfigInitParameters) - - // Description of what your Lambda Function does. - description?: null | string @go(Description,*string) - - // Configuration block. Detailed below. - environment?: [...#EnvironmentInitParameters] @go(Environment,[]EnvironmentInitParameters) - - // The amount of Ephemeral storage(/tmp) to allocate for the Lambda Function in MB. This parameter is used to expand the total amount of Ephemeral storage available, beyond the default amount of 512MB. Detailed below. - ephemeralStorage?: [...#EphemeralStorageInitParameters] @go(EphemeralStorage,[]EphemeralStorageInitParameters) - - // Configuration block. Detailed below. - fileSystemConfig?: [...#FileSystemConfigInitParameters] @go(FileSystemConfig,[]FileSystemConfigInitParameters) - - // Function entrypoint in your code. - handler?: null | string @go(Handler,*string) - - // Configuration block. Detailed below. - imageConfig?: [...#ImageConfigInitParameters] @go(ImageConfig,[]ImageConfigInitParameters) - - // ECR image URI containing the function's deployment package. Exactly one of filename, image_uri, or s3_bucket must be specified. - imageUri?: null | string @go(ImageURI,*string) - - // List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. See Lambda Layers - layers?: [...null | string] @go(Layers,[]*string) - - // Amount of memory in MB your Lambda Function can use at runtime. Defaults to 128. See Limits - memorySize?: null | float64 @go(MemorySize,*float64) - - // Lambda deployment package type. Valid values are Zip and Image. Defaults to Zip. - packageType?: null | string @go(PackageType,*string) - - // Whether to publish creation/change as new Lambda Function Version. Defaults to false. - publish?: null | bool @go(Publish,*bool) - - // Whether to replace the security groups on associated lambda network interfaces upon destruction. Removing these security groups from orphaned network interfaces can speed up security group deletion times by avoiding a dependency on AWS's internal cleanup operations. By default, the ENI security groups will be replaced with the default security group in the function's VPC. Set the replacement_security_group_ids attribute to use a custom list of security groups for replacement. - replaceSecurityGroupsOnDestroy?: null | bool @go(ReplaceSecurityGroupsOnDestroy,*bool) - - // Amount of reserved concurrent executions for this lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations. Defaults to Unreserved Concurrency Limits -1. See Managing Concurrency - reservedConcurrentExecutions?: null | float64 @go(ReservedConcurrentExecutions,*float64) - - // Identifier of the function's runtime. See Runtimes for valid values. - runtime?: null | string @go(Runtime,*string) - - // S3 key of an object containing the function's deployment package. When s3_bucket is set, s3_key is required. - s3Key?: null | string @go(S3Key,*string) - - // Object version containing the function's deployment package. Conflicts with filename and image_uri. - s3ObjectVersion?: null | string @go(S3ObjectVersion,*string) - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Snap start settings block. Detailed below. - snapStart?: [...#SnapStartInitParameters] @go(SnapStart,[]SnapStartInitParameters) - - // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3_key. The usual way to set this is filebase64sha256("file.11.12 and later) or base64sha256(file("file.11.11 and earlier), where "file.zip" is the local filename of the lambda function source archive. - sourceCodeHash?: null | string @go(SourceCodeHash,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Amount of time your Lambda Function has to run in seconds. Defaults to 3. See Limits. - timeout?: null | float64 @go(Timeout,*float64) - - // Configuration block. Detailed below. - tracingConfig?: [...#TracingConfigInitParameters] @go(TracingConfig,[]TracingConfigInitParameters) - - // Configuration block. Detailed below. - vpcConfig?: [...#VPCConfigInitParameters] @go(VPCConfig,[]VPCConfigInitParameters) -} - -#FunctionObservation: { - // Instruction set architecture for your Lambda function. Valid values are ["x86_64"] and ["arm64"]. Default is ["x86_64"]. Removing this attribute, function's architecture stay the same. - architectures?: [...null | string] @go(Architectures,[]*string) - - // Amazon Resource Name (ARN) identifying your Lambda Function. - arn?: null | string @go(Arn,*string) - - // To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function. - codeSigningConfigArn?: null | string @go(CodeSigningConfigArn,*string) - - // Configuration block. Detailed below. - deadLetterConfig?: [...#DeadLetterConfigObservation] @go(DeadLetterConfig,[]DeadLetterConfigObservation) - - // Description of what your Lambda Function does. - description?: null | string @go(Description,*string) - - // Configuration block. Detailed below. - environment?: [...#EnvironmentObservation] @go(Environment,[]EnvironmentObservation) - - // The amount of Ephemeral storage(/tmp) to allocate for the Lambda Function in MB. This parameter is used to expand the total amount of Ephemeral storage available, beyond the default amount of 512MB. Detailed below. - ephemeralStorage?: [...#EphemeralStorageObservation] @go(EphemeralStorage,[]EphemeralStorageObservation) - - // Configuration block. Detailed below. - fileSystemConfig?: [...#FileSystemConfigObservation] @go(FileSystemConfig,[]FileSystemConfigObservation) - - // Function entrypoint in your code. - handler?: null | string @go(Handler,*string) - id?: null | string @go(ID,*string) - - // Configuration block. Detailed below. - imageConfig?: [...#ImageConfigObservation] @go(ImageConfig,[]ImageConfigObservation) - - // ECR image URI containing the function's deployment package. Exactly one of filename, image_uri, or s3_bucket must be specified. - imageUri?: null | string @go(ImageURI,*string) - - // ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_integration's uri. - invokeArn?: null | string @go(InvokeArn,*string) - - // Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key that is used to encrypt environment variables. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key. To fix the perpetual difference, remove this configuration. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Date this resource was last modified. - lastModified?: null | string @go(LastModified,*string) - - // List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. See Lambda Layers - layers?: [...null | string] @go(Layers,[]*string) - - // Amount of memory in MB your Lambda Function can use at runtime. Defaults to 128. See Limits - memorySize?: null | float64 @go(MemorySize,*float64) - - // Lambda deployment package type. Valid values are Zip and Image. Defaults to Zip. - packageType?: null | string @go(PackageType,*string) - - // Whether to publish creation/change as new Lambda Function Version. Defaults to false. - publish?: null | bool @go(Publish,*bool) - - // ARN identifying your Lambda Function Version (if versioning is enabled via publish = true). - qualifiedArn?: null | string @go(QualifiedArn,*string) - - // Qualified ARN (ARN with lambda version number) to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_integration's uri. - qualifiedInvokeArn?: null | string @go(QualifiedInvokeArn,*string) - - // Whether to replace the security groups on associated lambda network interfaces upon destruction. Removing these security groups from orphaned network interfaces can speed up security group deletion times by avoiding a dependency on AWS's internal cleanup operations. By default, the ENI security groups will be replaced with the default security group in the function's VPC. Set the replacement_security_group_ids attribute to use a custom list of security groups for replacement. - replaceSecurityGroupsOnDestroy?: null | bool @go(ReplaceSecurityGroupsOnDestroy,*bool) - - // List of security group IDs to assign to orphaned Lambda function network interfaces upon destruction. replace_security_groups_on_destroy must be set to true to use this attribute. - replacementSecurityGroupIds?: [...null | string] @go(ReplacementSecurityGroupIds,[]*string) - - // Amount of reserved concurrent executions for this lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations. Defaults to Unreserved Concurrency Limits -1. See Managing Concurrency - reservedConcurrentExecutions?: null | float64 @go(ReservedConcurrentExecutions,*float64) - - // Amazon Resource Name (ARN) of the function's execution role. The role provides the function's identity and access to AWS services and resources. - role?: null | string @go(Role,*string) - - // Identifier of the function's runtime. See Runtimes for valid values. - runtime?: null | string @go(Runtime,*string) - - // S3 bucket location containing the function's deployment package. This bucket must reside in the same AWS region where you are creating the Lambda function. Exactly one of filename, image_uri, or s3_bucket must be specified. When s3_bucket is set, s3_key is required. - s3Bucket?: null | string @go(S3Bucket,*string) - - // S3 key of an object containing the function's deployment package. When s3_bucket is set, s3_key is required. - s3Key?: null | string @go(S3Key,*string) - - // Object version containing the function's deployment package. Conflicts with filename and image_uri. - s3ObjectVersion?: null | string @go(S3ObjectVersion,*string) - - // ARN of the signing job. - signingJobArn?: null | string @go(SigningJobArn,*string) - - // ARN of the signing profile version. - signingProfileVersionArn?: null | string @go(SigningProfileVersionArn,*string) - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Snap start settings block. Detailed below. - snapStart?: [...#SnapStartObservation] @go(SnapStart,[]SnapStartObservation) - - // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3_key. The usual way to set this is filebase64sha256("file.11.12 and later) or base64sha256(file("file.11.11 and earlier), where "file.zip" is the local filename of the lambda function source archive. - sourceCodeHash?: null | string @go(SourceCodeHash,*string) - - // Size in bytes of the function .zip file. - sourceCodeSize?: null | float64 @go(SourceCodeSize,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Amount of time your Lambda Function has to run in seconds. Defaults to 3. See Limits. - timeout?: null | float64 @go(Timeout,*float64) - - // Configuration block. Detailed below. - tracingConfig?: [...#TracingConfigObservation] @go(TracingConfig,[]TracingConfigObservation) - - // Configuration block. Detailed below. - vpcConfig?: [...#VPCConfigObservation] @go(VPCConfig,[]VPCConfigObservation) - - // Latest published version of your Lambda Function. - version?: null | string @go(Version,*string) -} - -#FunctionParameters: { - // Instruction set architecture for your Lambda function. Valid values are ["x86_64"] and ["arm64"]. Default is ["x86_64"]. Removing this attribute, function's architecture stay the same. - // +kubebuilder:validation:Optional - architectures?: [...null | string] @go(Architectures,[]*string) - - // To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function. - // +kubebuilder:validation:Optional - codeSigningConfigArn?: null | string @go(CodeSigningConfigArn,*string) - - // Configuration block. Detailed below. - // +kubebuilder:validation:Optional - deadLetterConfig?: [...#DeadLetterConfigParameters] @go(DeadLetterConfig,[]DeadLetterConfigParameters) - - // Description of what your Lambda Function does. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Configuration block. Detailed below. - // +kubebuilder:validation:Optional - environment?: [...#EnvironmentParameters] @go(Environment,[]EnvironmentParameters) - - // The amount of Ephemeral storage(/tmp) to allocate for the Lambda Function in MB. This parameter is used to expand the total amount of Ephemeral storage available, beyond the default amount of 512MB. Detailed below. - // +kubebuilder:validation:Optional - ephemeralStorage?: [...#EphemeralStorageParameters] @go(EphemeralStorage,[]EphemeralStorageParameters) - - // Configuration block. Detailed below. - // +kubebuilder:validation:Optional - fileSystemConfig?: [...#FileSystemConfigParameters] @go(FileSystemConfig,[]FileSystemConfigParameters) - - // Function entrypoint in your code. - // +kubebuilder:validation:Optional - handler?: null | string @go(Handler,*string) - - // Configuration block. Detailed below. - // +kubebuilder:validation:Optional - imageConfig?: [...#ImageConfigParameters] @go(ImageConfig,[]ImageConfigParameters) - - // ECR image URI containing the function's deployment package. Exactly one of filename, image_uri, or s3_bucket must be specified. - // +kubebuilder:validation:Optional - imageUri?: null | string @go(ImageURI,*string) - - // Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key that is used to encrypt environment variables. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key. To fix the perpetual difference, remove this configuration. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) - - // List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. See Lambda Layers - // +kubebuilder:validation:Optional - layers?: [...null | string] @go(Layers,[]*string) - - // Amount of memory in MB your Lambda Function can use at runtime. Defaults to 128. See Limits - // +kubebuilder:validation:Optional - memorySize?: null | float64 @go(MemorySize,*float64) - - // Lambda deployment package type. Valid values are Zip and Image. Defaults to Zip. - // +kubebuilder:validation:Optional - packageType?: null | string @go(PackageType,*string) - - // Whether to publish creation/change as new Lambda Function Version. Defaults to false. - // +kubebuilder:validation:Optional - publish?: null | bool @go(Publish,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Whether to replace the security groups on associated lambda network interfaces upon destruction. Removing these security groups from orphaned network interfaces can speed up security group deletion times by avoiding a dependency on AWS's internal cleanup operations. By default, the ENI security groups will be replaced with the default security group in the function's VPC. Set the replacement_security_group_ids attribute to use a custom list of security groups for replacement. - // +kubebuilder:validation:Optional - replaceSecurityGroupsOnDestroy?: null | bool @go(ReplaceSecurityGroupsOnDestroy,*bool) - - // References to SecurityGroup in ec2 to populate replacementSecurityGroupIds. - // +kubebuilder:validation:Optional - replacementSecurityGroupIdRefs?: [...v1.#Reference] @go(ReplacementSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate replacementSecurityGroupIds. - // +kubebuilder:validation:Optional - replacementSecurityGroupIdSelector?: null | v1.#Selector @go(ReplacementSecurityGroupIDSelector,*v1.Selector) - - // List of security group IDs to assign to orphaned Lambda function network interfaces upon destruction. replace_security_groups_on_destroy must be set to true to use this attribute. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=ReplacementSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=ReplacementSecurityGroupIDSelector - // +kubebuilder:validation:Optional - replacementSecurityGroupIds?: [...null | string] @go(ReplacementSecurityGroupIds,[]*string) - - // Amount of reserved concurrent executions for this lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations. Defaults to Unreserved Concurrency Limits -1. See Managing Concurrency - // +kubebuilder:validation:Optional - reservedConcurrentExecutions?: null | float64 @go(ReservedConcurrentExecutions,*float64) - - // Amazon Resource Name (ARN) of the function's execution role. The role provides the function's identity and access to AWS services and resources. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - role?: null | string @go(Role,*string) - - // Reference to a Role in iam to populate role. - // +kubebuilder:validation:Optional - roleRef?: null | v1.#Reference @go(RoleRef,*v1.Reference) - - // Selector for a Role in iam to populate role. - // +kubebuilder:validation:Optional - roleSelector?: null | v1.#Selector @go(RoleSelector,*v1.Selector) - - // Identifier of the function's runtime. See Runtimes for valid values. - // +kubebuilder:validation:Optional - runtime?: null | string @go(Runtime,*string) - - // S3 bucket location containing the function's deployment package. This bucket must reside in the same AWS region where you are creating the Lambda function. Exactly one of filename, image_uri, or s3_bucket must be specified. When s3_bucket is set, s3_key is required. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +kubebuilder:validation:Optional - s3Bucket?: null | string @go(S3Bucket,*string) - - // Reference to a Bucket in s3 to populate s3Bucket. - // +kubebuilder:validation:Optional - s3BucketRef?: null | v1.#Reference @go(S3BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate s3Bucket. - // +kubebuilder:validation:Optional - s3BucketSelector?: null | v1.#Selector @go(S3BucketSelector,*v1.Selector) - - // S3 key of an object containing the function's deployment package. When s3_bucket is set, s3_key is required. - // +kubebuilder:validation:Optional - s3Key?: null | string @go(S3Key,*string) - - // Object version containing the function's deployment package. Conflicts with filename and image_uri. - // +kubebuilder:validation:Optional - s3ObjectVersion?: null | string @go(S3ObjectVersion,*string) - - // +kubebuilder:validation:Optional - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Snap start settings block. Detailed below. - // +kubebuilder:validation:Optional - snapStart?: [...#SnapStartParameters] @go(SnapStart,[]SnapStartParameters) - - // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3_key. The usual way to set this is filebase64sha256("file.11.12 and later) or base64sha256(file("file.11.11 and earlier), where "file.zip" is the local filename of the lambda function source archive. - // +kubebuilder:validation:Optional - sourceCodeHash?: null | string @go(SourceCodeHash,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Amount of time your Lambda Function has to run in seconds. Defaults to 3. See Limits. - // +kubebuilder:validation:Optional - timeout?: null | float64 @go(Timeout,*float64) - - // Configuration block. Detailed below. - // +kubebuilder:validation:Optional - tracingConfig?: [...#TracingConfigParameters] @go(TracingConfig,[]TracingConfigParameters) - - // Configuration block. Detailed below. - // +kubebuilder:validation:Optional - vpcConfig?: [...#VPCConfigParameters] @go(VPCConfig,[]VPCConfigParameters) -} - -#ImageConfigInitParameters: { - // Parameters that you want to pass in with entry_point. - command?: [...null | string] @go(Command,[]*string) - - // Entry point to your application, which is typically the location of the runtime executable. - entryPoint?: [...null | string] @go(EntryPoint,[]*string) - - // Working directory. - workingDirectory?: null | string @go(WorkingDirectory,*string) -} - -#ImageConfigObservation: { - // Parameters that you want to pass in with entry_point. - command?: [...null | string] @go(Command,[]*string) - - // Entry point to your application, which is typically the location of the runtime executable. - entryPoint?: [...null | string] @go(EntryPoint,[]*string) - - // Working directory. - workingDirectory?: null | string @go(WorkingDirectory,*string) -} - -#ImageConfigParameters: { - // Parameters that you want to pass in with entry_point. - // +kubebuilder:validation:Optional - command?: [...null | string] @go(Command,[]*string) - - // Entry point to your application, which is typically the location of the runtime executable. - // +kubebuilder:validation:Optional - entryPoint?: [...null | string] @go(EntryPoint,[]*string) - - // Working directory. - // +kubebuilder:validation:Optional - workingDirectory?: null | string @go(WorkingDirectory,*string) -} - -#SnapStartInitParameters: { - // Conditions where snap start is enabled. Valid values are PublishedVersions. - applyOn?: null | string @go(ApplyOn,*string) -} - -#SnapStartObservation: { - // Conditions where snap start is enabled. Valid values are PublishedVersions. - applyOn?: null | string @go(ApplyOn,*string) - - // Optimization status of the snap start configuration. Valid values are On and Off. - optimizationStatus?: null | string @go(OptimizationStatus,*string) -} - -#SnapStartParameters: { - // Conditions where snap start is enabled. Valid values are PublishedVersions. - // +kubebuilder:validation:Optional - applyOn?: null | string @go(ApplyOn,*string) -} - -#TracingConfigInitParameters: { - // Whether to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are PassThrough and Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision. - mode?: null | string @go(Mode,*string) -} - -#TracingConfigObservation: { - // Whether to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are PassThrough and Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision. - mode?: null | string @go(Mode,*string) -} - -#TracingConfigParameters: { - // Whether to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are PassThrough and Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision. - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) -} - -#VPCConfigInitParameters: { -} - -#VPCConfigObservation: { - // List of security group IDs associated with the Lambda function. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // List of subnet IDs associated with the Lambda function. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // ID of the VPC. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCConfigParameters: { - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // List of security group IDs associated with the Lambda function. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // List of subnet IDs associated with the Lambda function. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -// FunctionSpec defines the desired state of Function -#FunctionSpec: { - v1.#ResourceSpec - forProvider: #FunctionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FunctionInitParameters @go(InitProvider) -} - -// FunctionStatus defines the observed state of Function. -#FunctionStatus: { - v1.#ResourceStatus - atProvider?: #FunctionObservation @go(AtProvider) -} - -// Function is the Schema for the Functions API. Provides a Lambda Function resource. Lambda allows you to trigger execution of code in response to events in AWS, enabling serverless backend solutions. The Lambda Function itself includes source code and runtime configuration. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Function: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #FunctionSpec @go(Spec) - status?: #FunctionStatus @go(Status) -} - -// FunctionList contains a list of Functions -#FunctionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Function] @go(Items,[]Function) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_functioneventinvokeconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_functioneventinvokeconfig_types_go_gen.cue deleted file mode 100644 index 638657f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_functioneventinvokeconfig_types_go_gen.cue +++ /dev/null @@ -1,195 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lambda/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DestinationConfigOnFailureInitParameters: { -} - -#DestinationConfigOnFailureObservation: { - // Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions. - destination?: null | string @go(Destination,*string) -} - -#DestinationConfigOnFailureParameters: { - // Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sqs/v1beta1.Queue - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - destination?: null | string @go(Destination,*string) - - // Reference to a Queue in sqs to populate destination. - // +kubebuilder:validation:Optional - destinationRef?: null | v1.#Reference @go(DestinationRef,*v1.Reference) - - // Selector for a Queue in sqs to populate destination. - // +kubebuilder:validation:Optional - destinationSelector?: null | v1.#Selector @go(DestinationSelector,*v1.Selector) -} - -#FunctionEventInvokeConfigDestinationConfigInitParameters: { - // Configuration block with destination configuration for failed asynchronous invocations. See below for details. - onFailure?: [...#DestinationConfigOnFailureInitParameters] @go(OnFailure,[]DestinationConfigOnFailureInitParameters) - - // Configuration block with destination configuration for successful asynchronous invocations. See below for details. - onSuccess?: [...#OnSuccessInitParameters] @go(OnSuccess,[]OnSuccessInitParameters) -} - -#FunctionEventInvokeConfigDestinationConfigObservation: { - // Configuration block with destination configuration for failed asynchronous invocations. See below for details. - onFailure?: [...#DestinationConfigOnFailureObservation] @go(OnFailure,[]DestinationConfigOnFailureObservation) - - // Configuration block with destination configuration for successful asynchronous invocations. See below for details. - onSuccess?: [...#OnSuccessObservation] @go(OnSuccess,[]OnSuccessObservation) -} - -#FunctionEventInvokeConfigDestinationConfigParameters: { - // Configuration block with destination configuration for failed asynchronous invocations. See below for details. - // +kubebuilder:validation:Optional - onFailure?: [...#DestinationConfigOnFailureParameters] @go(OnFailure,[]DestinationConfigOnFailureParameters) - - // Configuration block with destination configuration for successful asynchronous invocations. See below for details. - // +kubebuilder:validation:Optional - onSuccess?: [...#OnSuccessParameters] @go(OnSuccess,[]OnSuccessParameters) -} - -#FunctionEventInvokeConfigInitParameters: { - // Configuration block with destination configuration. See below for details. - destinationConfig?: [...#FunctionEventInvokeConfigDestinationConfigInitParameters] @go(DestinationConfig,[]FunctionEventInvokeConfigDestinationConfigInitParameters) - - // Name or Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier. - functionName?: null | string @go(FunctionName,*string) - - // Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600. - maximumEventAgeInSeconds?: null | float64 @go(MaximumEventAgeInSeconds,*float64) - - // Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2. - maximumRetryAttempts?: null | float64 @go(MaximumRetryAttempts,*float64) - - // Lambda Function published version, $LATEST, or Lambda Alias name. - qualifier?: null | string @go(Qualifier,*string) -} - -#FunctionEventInvokeConfigObservation: { - // Configuration block with destination configuration. See below for details. - destinationConfig?: [...#FunctionEventInvokeConfigDestinationConfigObservation] @go(DestinationConfig,[]FunctionEventInvokeConfigDestinationConfigObservation) - - // Name or Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier. - functionName?: null | string @go(FunctionName,*string) - - // Fully qualified Lambda Function name or Amazon Resource Name (ARN) - id?: null | string @go(ID,*string) - - // Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600. - maximumEventAgeInSeconds?: null | float64 @go(MaximumEventAgeInSeconds,*float64) - - // Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2. - maximumRetryAttempts?: null | float64 @go(MaximumRetryAttempts,*float64) - - // Lambda Function published version, $LATEST, or Lambda Alias name. - qualifier?: null | string @go(Qualifier,*string) -} - -#FunctionEventInvokeConfigParameters: { - // Configuration block with destination configuration. See below for details. - // +kubebuilder:validation:Optional - destinationConfig?: [...#FunctionEventInvokeConfigDestinationConfigParameters] @go(DestinationConfig,[]FunctionEventInvokeConfigDestinationConfigParameters) - - // Name or Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier. - // +kubebuilder:validation:Optional - functionName?: null | string @go(FunctionName,*string) - - // Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600. - // +kubebuilder:validation:Optional - maximumEventAgeInSeconds?: null | float64 @go(MaximumEventAgeInSeconds,*float64) - - // Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2. - // +kubebuilder:validation:Optional - maximumRetryAttempts?: null | float64 @go(MaximumRetryAttempts,*float64) - - // Lambda Function published version, $LATEST, or Lambda Alias name. - // +kubebuilder:validation:Optional - qualifier?: null | string @go(Qualifier,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#OnSuccessInitParameters: { -} - -#OnSuccessObservation: { - // Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions. - destination?: null | string @go(Destination,*string) -} - -#OnSuccessParameters: { - // Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - destination?: null | string @go(Destination,*string) - - // Reference to a Topic in sns to populate destination. - // +kubebuilder:validation:Optional - destinationRef?: null | v1.#Reference @go(DestinationRef,*v1.Reference) - - // Selector for a Topic in sns to populate destination. - // +kubebuilder:validation:Optional - destinationSelector?: null | v1.#Selector @go(DestinationSelector,*v1.Selector) -} - -// FunctionEventInvokeConfigSpec defines the desired state of FunctionEventInvokeConfig -#FunctionEventInvokeConfigSpec: { - v1.#ResourceSpec - forProvider: #FunctionEventInvokeConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FunctionEventInvokeConfigInitParameters @go(InitProvider) -} - -// FunctionEventInvokeConfigStatus defines the observed state of FunctionEventInvokeConfig. -#FunctionEventInvokeConfigStatus: { - v1.#ResourceStatus - atProvider?: #FunctionEventInvokeConfigObservation @go(AtProvider) -} - -// FunctionEventInvokeConfig is the Schema for the FunctionEventInvokeConfigs API. Manages an asynchronous invocation configuration for a Lambda Function or Alias. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FunctionEventInvokeConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.functionName) || (has(self.initProvider) && has(self.initProvider.functionName))",message="spec.forProvider.functionName is a required parameter" - spec: #FunctionEventInvokeConfigSpec @go(Spec) - status?: #FunctionEventInvokeConfigStatus @go(Status) -} - -// FunctionEventInvokeConfigList contains a list of FunctionEventInvokeConfigs -#FunctionEventInvokeConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FunctionEventInvokeConfig] @go(Items,[]FunctionEventInvokeConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_functionurl_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_functionurl_types_go_gen.cue deleted file mode 100644 index c46e0ac..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_functionurl_types_go_gen.cue +++ /dev/null @@ -1,200 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lambda/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CorsInitParameters: { - // Whether to allow cookies or other credentials in requests to the function URL. The default is false. - allowCredentials?: null | bool @go(AllowCredentials,*bool) - - // The HTTP headers that origins can include in requests to the function URL. For example: ["date", "keep-alive", "x-custom-header"]. - allowHeaders?: [...null | string] @go(AllowHeaders,[]*string) - - // The HTTP methods that are allowed when calling the function URL. For example: ["GET", "POST", "DELETE"], or the wildcard character (["*"]). - allowMethods?: [...null | string] @go(AllowMethods,[]*string) - - // The origins that can access the function URL. You can list any number of specific origins (or the wildcard character ("*")), separated by a comma. For example: ["https://www.example.com", "http://localhost:60905"]. - allowOrigins?: [...null | string] @go(AllowOrigins,[]*string) - - // The HTTP headers in your function response that you want to expose to origins that call the function URL. - exposeHeaders?: [...null | string] @go(ExposeHeaders,[]*string) - - // The maximum amount of time, in seconds, that web browsers can cache results of a preflight request. By default, this is set to 0, which means that the browser doesn't cache results. The maximum value is 86400. - maxAge?: null | float64 @go(MaxAge,*float64) -} - -#CorsObservation: { - // Whether to allow cookies or other credentials in requests to the function URL. The default is false. - allowCredentials?: null | bool @go(AllowCredentials,*bool) - - // The HTTP headers that origins can include in requests to the function URL. For example: ["date", "keep-alive", "x-custom-header"]. - allowHeaders?: [...null | string] @go(AllowHeaders,[]*string) - - // The HTTP methods that are allowed when calling the function URL. For example: ["GET", "POST", "DELETE"], or the wildcard character (["*"]). - allowMethods?: [...null | string] @go(AllowMethods,[]*string) - - // The origins that can access the function URL. You can list any number of specific origins (or the wildcard character ("*")), separated by a comma. For example: ["https://www.example.com", "http://localhost:60905"]. - allowOrigins?: [...null | string] @go(AllowOrigins,[]*string) - - // The HTTP headers in your function response that you want to expose to origins that call the function URL. - exposeHeaders?: [...null | string] @go(ExposeHeaders,[]*string) - - // The maximum amount of time, in seconds, that web browsers can cache results of a preflight request. By default, this is set to 0, which means that the browser doesn't cache results. The maximum value is 86400. - maxAge?: null | float64 @go(MaxAge,*float64) -} - -#CorsParameters: { - // Whether to allow cookies or other credentials in requests to the function URL. The default is false. - // +kubebuilder:validation:Optional - allowCredentials?: null | bool @go(AllowCredentials,*bool) - - // The HTTP headers that origins can include in requests to the function URL. For example: ["date", "keep-alive", "x-custom-header"]. - // +kubebuilder:validation:Optional - allowHeaders?: [...null | string] @go(AllowHeaders,[]*string) - - // The HTTP methods that are allowed when calling the function URL. For example: ["GET", "POST", "DELETE"], or the wildcard character (["*"]). - // +kubebuilder:validation:Optional - allowMethods?: [...null | string] @go(AllowMethods,[]*string) - - // The origins that can access the function URL. You can list any number of specific origins (or the wildcard character ("*")), separated by a comma. For example: ["https://www.example.com", "http://localhost:60905"]. - // +kubebuilder:validation:Optional - allowOrigins?: [...null | string] @go(AllowOrigins,[]*string) - - // The HTTP headers in your function response that you want to expose to origins that call the function URL. - // +kubebuilder:validation:Optional - exposeHeaders?: [...null | string] @go(ExposeHeaders,[]*string) - - // The maximum amount of time, in seconds, that web browsers can cache results of a preflight request. By default, this is set to 0, which means that the browser doesn't cache results. The maximum value is 86400. - // +kubebuilder:validation:Optional - maxAge?: null | float64 @go(MaxAge,*float64) -} - -#FunctionURLInitParameters: { - // The type of authentication that the function URL uses. Set to "AWS_IAM" to restrict access to authenticated IAM users only. Set to "NONE" to bypass IAM authentication and create a public endpoint. See the AWS documentation for more details. - authorizationType?: null | string @go(AuthorizationType,*string) - - // The cross-origin resource sharing (CORS) settings for the function URL. Documented below. - cors?: [...#CorsInitParameters] @go(Cors,[]CorsInitParameters) - - // Determines how the Lambda function responds to an invocation. Valid values are BUFFERED (default) and RESPONSE_STREAM. See more in Configuring a Lambda function to stream responses. - invokeMode?: null | string @go(InvokeMode,*string) - - // The alias name or "$LATEST". - qualifier?: null | string @go(Qualifier,*string) -} - -#FunctionURLObservation: { - // The type of authentication that the function URL uses. Set to "AWS_IAM" to restrict access to authenticated IAM users only. Set to "NONE" to bypass IAM authentication and create a public endpoint. See the AWS documentation for more details. - authorizationType?: null | string @go(AuthorizationType,*string) - - // The cross-origin resource sharing (CORS) settings for the function URL. Documented below. - cors?: [...#CorsObservation] @go(Cors,[]CorsObservation) - - // The Amazon Resource Name (ARN) of the function. - functionArn?: null | string @go(FunctionArn,*string) - - // The name (or ARN) of the Lambda function. - functionName?: null | string @go(FunctionName,*string) - - // The HTTP URL endpoint for the function in the format https://.lambda-url..on.aws. - functionUrl?: null | string @go(FunctionURL,*string) - id?: null | string @go(ID,*string) - - // Determines how the Lambda function responds to an invocation. Valid values are BUFFERED (default) and RESPONSE_STREAM. See more in Configuring a Lambda function to stream responses. - invokeMode?: null | string @go(InvokeMode,*string) - - // The alias name or "$LATEST". - qualifier?: null | string @go(Qualifier,*string) - - // A generated ID for the endpoint. - urlId?: null | string @go(URLID,*string) -} - -#FunctionURLParameters: { - // The type of authentication that the function URL uses. Set to "AWS_IAM" to restrict access to authenticated IAM users only. Set to "NONE" to bypass IAM authentication and create a public endpoint. See the AWS documentation for more details. - // +kubebuilder:validation:Optional - authorizationType?: null | string @go(AuthorizationType,*string) - - // The cross-origin resource sharing (CORS) settings for the function URL. Documented below. - // +kubebuilder:validation:Optional - cors?: [...#CorsParameters] @go(Cors,[]CorsParameters) - - // The name (or ARN) of the Lambda function. - // +crossplane:generate:reference:type=Function - // +kubebuilder:validation:Optional - functionName?: null | string @go(FunctionName,*string) - - // Reference to a Function to populate functionName. - // +kubebuilder:validation:Optional - functionNameRef?: null | v1.#Reference @go(FunctionNameRef,*v1.Reference) - - // Selector for a Function to populate functionName. - // +kubebuilder:validation:Optional - functionNameSelector?: null | v1.#Selector @go(FunctionNameSelector,*v1.Selector) - - // Determines how the Lambda function responds to an invocation. Valid values are BUFFERED (default) and RESPONSE_STREAM. See more in Configuring a Lambda function to stream responses. - // +kubebuilder:validation:Optional - invokeMode?: null | string @go(InvokeMode,*string) - - // The alias name or "$LATEST". - // +kubebuilder:validation:Optional - qualifier?: null | string @go(Qualifier,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// FunctionURLSpec defines the desired state of FunctionURL -#FunctionURLSpec: { - v1.#ResourceSpec - forProvider: #FunctionURLParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FunctionURLInitParameters @go(InitProvider) -} - -// FunctionURLStatus defines the observed state of FunctionURL. -#FunctionURLStatus: { - v1.#ResourceStatus - atProvider?: #FunctionURLObservation @go(AtProvider) -} - -// FunctionURL is the Schema for the FunctionURLs API. Provides a Lambda function URL resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FunctionURL: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.authorizationType) || (has(self.initProvider) && has(self.initProvider.authorizationType))",message="spec.forProvider.authorizationType is a required parameter" - spec: #FunctionURLSpec @go(Spec) - status?: #FunctionURLStatus @go(Status) -} - -// FunctionURLList contains a list of FunctionURLs -#FunctionURLList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FunctionURL] @go(Items,[]FunctionURL) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 6810865..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lambda/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=lambda.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "lambda.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_invocation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_invocation_types_go_gen.cue deleted file mode 100644 index f022f0c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_invocation_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lambda/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InvocationInitParameters: { - // JSON payload to the lambda function. - input?: null | string @go(Input,*string) - - // Qualifier (i.e., version) of the lambda function. Defaults to $LATEST. - qualifier?: null | string @go(Qualifier,*string) - - // Map of arbitrary keys and values that, when changed, will trigger a re-invocation. - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) -} - -#InvocationObservation: { - // Name of the lambda function. - functionName?: null | string @go(FunctionName,*string) - id?: null | string @go(ID,*string) - - // JSON payload to the lambda function. - input?: null | string @go(Input,*string) - - // Qualifier (i.e., version) of the lambda function. Defaults to $LATEST. - qualifier?: null | string @go(Qualifier,*string) - - // String result of the lambda function invocation. - result?: null | string @go(Result,*string) - - // Map of arbitrary keys and values that, when changed, will trigger a re-invocation. - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) -} - -#InvocationParameters: { - // Name of the lambda function. - // +crossplane:generate:reference:type=Function - // +kubebuilder:validation:Optional - functionName?: null | string @go(FunctionName,*string) - - // Reference to a Function to populate functionName. - // +kubebuilder:validation:Optional - functionNameRef?: null | v1.#Reference @go(FunctionNameRef,*v1.Reference) - - // Selector for a Function to populate functionName. - // +kubebuilder:validation:Optional - functionNameSelector?: null | v1.#Selector @go(FunctionNameSelector,*v1.Selector) - - // JSON payload to the lambda function. - // +kubebuilder:validation:Optional - input?: null | string @go(Input,*string) - - // Qualifier (i.e., version) of the lambda function. Defaults to $LATEST. - // +kubebuilder:validation:Optional - qualifier?: null | string @go(Qualifier,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Map of arbitrary keys and values that, when changed, will trigger a re-invocation. - // +kubebuilder:validation:Optional - triggers?: {[string]: null | string} @go(Triggers,map[string]*string) -} - -// InvocationSpec defines the desired state of Invocation -#InvocationSpec: { - v1.#ResourceSpec - forProvider: #InvocationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InvocationInitParameters @go(InitProvider) -} - -// InvocationStatus defines the observed state of Invocation. -#InvocationStatus: { - v1.#ResourceStatus - atProvider?: #InvocationObservation @go(AtProvider) -} - -// Invocation is the Schema for the Invocations API. Invoke AWS Lambda Function -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Invocation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.input) || (has(self.initProvider) && has(self.initProvider.input))",message="spec.forProvider.input is a required parameter" - spec: #InvocationSpec @go(Spec) - status?: #InvocationStatus @go(Status) -} - -// InvocationList contains a list of Invocations -#InvocationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Invocation] @go(Items,[]Invocation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_layerversion_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_layerversion_types_go_gen.cue deleted file mode 100644 index a149e1e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_layerversion_types_go_gen.cue +++ /dev/null @@ -1,200 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lambda/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LayerVersionInitParameters: { - // List of Architectures this layer is compatible with. Currently x86_64 and arm64 can be specified. - compatibleArchitectures?: [...null | string] @go(CompatibleArchitectures,[]*string) - - // List of Runtimes this layer is compatible with. Up to 5 runtimes can be specified. - compatibleRuntimes?: [...null | string] @go(CompatibleRuntimes,[]*string) - - // Description of what your Lambda Layer does. - description?: null | string @go(Description,*string) - - // prefixed options cannot be used. - filename?: null | string @go(Filename,*string) - - // Unique name for your Lambda Layer - layerName?: null | string @go(LayerName,*string) - - // License info for your Lambda Layer. See License Info. - licenseInfo?: null | string @go(LicenseInfo,*string) - - // S3 bucket location containing the function's deployment package. Conflicts with filename. This bucket must reside in the same AWS region where you are creating the Lambda function. - s3Bucket?: null | string @go(S3Bucket,*string) - - // S3 key of an object containing the function's deployment package. Conflicts with filename. - s3Key?: null | string @go(S3Key,*string) - - // Object version containing the function's deployment package. Conflicts with filename. - s3ObjectVersion?: null | string @go(S3ObjectVersion,*string) - - // Whether to retain the old version of a previously deployed Lambda Layer. Default is false. When this is not set to true, changing any of compatible_architectures, compatible_runtimes, description, filename, layer_name, license_info, s3_bucket, s3_key, s3_object_version, or source_code_hash forces deletion of the existing layer version and creation of a new layer version. - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3_key. The usual way to set this is ${filebase64sha256("file.11.12 or later) or ${base64sha256(file("file.11.11 and earlier), where "file.zip" is the local filename of the lambda layer source archive. - sourceCodeHash?: null | string @go(SourceCodeHash,*string) -} - -#LayerVersionObservation: { - // ARN of the Lambda Layer with version. - arn?: null | string @go(Arn,*string) - - // List of Architectures this layer is compatible with. Currently x86_64 and arm64 can be specified. - compatibleArchitectures?: [...null | string] @go(CompatibleArchitectures,[]*string) - - // List of Runtimes this layer is compatible with. Up to 5 runtimes can be specified. - compatibleRuntimes?: [...null | string] @go(CompatibleRuntimes,[]*string) - - // Date this resource was created. - createdDate?: null | string @go(CreatedDate,*string) - - // Description of what your Lambda Layer does. - description?: null | string @go(Description,*string) - - // prefixed options cannot be used. - filename?: null | string @go(Filename,*string) - id?: null | string @go(ID,*string) - - // ARN of the Lambda Layer without version. - layerArn?: null | string @go(LayerArn,*string) - - // Unique name for your Lambda Layer - layerName?: null | string @go(LayerName,*string) - - // License info for your Lambda Layer. See License Info. - licenseInfo?: null | string @go(LicenseInfo,*string) - - // S3 bucket location containing the function's deployment package. Conflicts with filename. This bucket must reside in the same AWS region where you are creating the Lambda function. - s3Bucket?: null | string @go(S3Bucket,*string) - - // S3 key of an object containing the function's deployment package. Conflicts with filename. - s3Key?: null | string @go(S3Key,*string) - - // Object version containing the function's deployment package. Conflicts with filename. - s3ObjectVersion?: null | string @go(S3ObjectVersion,*string) - - // ARN of a signing job. - signingJobArn?: null | string @go(SigningJobArn,*string) - - // ARN for a signing profile version. - signingProfileVersionArn?: null | string @go(SigningProfileVersionArn,*string) - - // Whether to retain the old version of a previously deployed Lambda Layer. Default is false. When this is not set to true, changing any of compatible_architectures, compatible_runtimes, description, filename, layer_name, license_info, s3_bucket, s3_key, s3_object_version, or source_code_hash forces deletion of the existing layer version and creation of a new layer version. - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3_key. The usual way to set this is ${filebase64sha256("file.11.12 or later) or ${base64sha256(file("file.11.11 and earlier), where "file.zip" is the local filename of the lambda layer source archive. - sourceCodeHash?: null | string @go(SourceCodeHash,*string) - - // Size in bytes of the function .zip file. - sourceCodeSize?: null | float64 @go(SourceCodeSize,*float64) - - // Lambda Layer version. - version?: null | string @go(Version,*string) -} - -#LayerVersionParameters: { - // List of Architectures this layer is compatible with. Currently x86_64 and arm64 can be specified. - // +kubebuilder:validation:Optional - compatibleArchitectures?: [...null | string] @go(CompatibleArchitectures,[]*string) - - // List of Runtimes this layer is compatible with. Up to 5 runtimes can be specified. - // +kubebuilder:validation:Optional - compatibleRuntimes?: [...null | string] @go(CompatibleRuntimes,[]*string) - - // Description of what your Lambda Layer does. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // prefixed options cannot be used. - // +kubebuilder:validation:Optional - filename?: null | string @go(Filename,*string) - - // Unique name for your Lambda Layer - // +kubebuilder:validation:Optional - layerName?: null | string @go(LayerName,*string) - - // License info for your Lambda Layer. See License Info. - // +kubebuilder:validation:Optional - licenseInfo?: null | string @go(LicenseInfo,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // S3 bucket location containing the function's deployment package. Conflicts with filename. This bucket must reside in the same AWS region where you are creating the Lambda function. - // +kubebuilder:validation:Optional - s3Bucket?: null | string @go(S3Bucket,*string) - - // S3 key of an object containing the function's deployment package. Conflicts with filename. - // +kubebuilder:validation:Optional - s3Key?: null | string @go(S3Key,*string) - - // Object version containing the function's deployment package. Conflicts with filename. - // +kubebuilder:validation:Optional - s3ObjectVersion?: null | string @go(S3ObjectVersion,*string) - - // Whether to retain the old version of a previously deployed Lambda Layer. Default is false. When this is not set to true, changing any of compatible_architectures, compatible_runtimes, description, filename, layer_name, license_info, s3_bucket, s3_key, s3_object_version, or source_code_hash forces deletion of the existing layer version and creation of a new layer version. - // +kubebuilder:validation:Optional - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3_key. The usual way to set this is ${filebase64sha256("file.11.12 or later) or ${base64sha256(file("file.11.11 and earlier), where "file.zip" is the local filename of the lambda layer source archive. - // +kubebuilder:validation:Optional - sourceCodeHash?: null | string @go(SourceCodeHash,*string) -} - -// LayerVersionSpec defines the desired state of LayerVersion -#LayerVersionSpec: { - v1.#ResourceSpec - forProvider: #LayerVersionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LayerVersionInitParameters @go(InitProvider) -} - -// LayerVersionStatus defines the observed state of LayerVersion. -#LayerVersionStatus: { - v1.#ResourceStatus - atProvider?: #LayerVersionObservation @go(AtProvider) -} - -// LayerVersion is the Schema for the LayerVersions API. Provides a Lambda Layer Version resource. Lambda Layers allow you to reuse shared bits of code across multiple lambda functions. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LayerVersion: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.layerName) || (has(self.initProvider) && has(self.initProvider.layerName))",message="spec.forProvider.layerName is a required parameter" - spec: #LayerVersionSpec @go(Spec) - status?: #LayerVersionStatus @go(Status) -} - -// LayerVersionList contains a list of LayerVersions -#LayerVersionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LayerVersion] @go(Items,[]LayerVersion) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_layerversionpermission_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_layerversionpermission_types_go_gen.cue deleted file mode 100644 index 30431d5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_layerversionpermission_types_go_gen.cue +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lambda/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LayerVersionPermissionInitParameters: { - // Action, which will be allowed. lambda:GetLayerVersion value is suggested by AWS documantation. - action?: null | string @go(Action,*string) - - // The name or ARN of the Lambda Layer, which you want to grant access to. - layerName?: null | string @go(LayerName,*string) - - // An identifier of AWS Organization, which should be able to use your Lambda Layer. principal should be equal to * if organization_id provided. - organizationId?: null | string @go(OrganizationID,*string) - - // AWS account ID which should be able to use your Lambda Layer. * can be used here, if you want to share your Lambda Layer widely. - principal?: null | string @go(Principal,*string) - - // The name of Lambda Layer Permission, for example dev-account - human readable note about what is this permission for. - statementId?: null | string @go(StatementID,*string) - - // Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer. - versionNumber?: null | float64 @go(VersionNumber,*float64) -} - -#LayerVersionPermissionObservation: { - // Action, which will be allowed. lambda:GetLayerVersion value is suggested by AWS documantation. - action?: null | string @go(Action,*string) - - // The layer_name and version_number, separated by a comma (,). - id?: null | string @go(ID,*string) - - // The name or ARN of the Lambda Layer, which you want to grant access to. - layerName?: null | string @go(LayerName,*string) - - // An identifier of AWS Organization, which should be able to use your Lambda Layer. principal should be equal to * if organization_id provided. - organizationId?: null | string @go(OrganizationID,*string) - - // Full Lambda Layer Permission policy. - policy?: null | string @go(Policy,*string) - - // AWS account ID which should be able to use your Lambda Layer. * can be used here, if you want to share your Lambda Layer widely. - principal?: null | string @go(Principal,*string) - - // A unique identifier for the current revision of the policy. - revisionId?: null | string @go(RevisionID,*string) - - // The name of Lambda Layer Permission, for example dev-account - human readable note about what is this permission for. - statementId?: null | string @go(StatementID,*string) - - // Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer. - versionNumber?: null | float64 @go(VersionNumber,*float64) -} - -#LayerVersionPermissionParameters: { - // Action, which will be allowed. lambda:GetLayerVersion value is suggested by AWS documantation. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) - - // The name or ARN of the Lambda Layer, which you want to grant access to. - // +kubebuilder:validation:Optional - layerName?: null | string @go(LayerName,*string) - - // An identifier of AWS Organization, which should be able to use your Lambda Layer. principal should be equal to * if organization_id provided. - // +kubebuilder:validation:Optional - organizationId?: null | string @go(OrganizationID,*string) - - // AWS account ID which should be able to use your Lambda Layer. * can be used here, if you want to share your Lambda Layer widely. - // +kubebuilder:validation:Optional - principal?: null | string @go(Principal,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of Lambda Layer Permission, for example dev-account - human readable note about what is this permission for. - // +kubebuilder:validation:Optional - statementId?: null | string @go(StatementID,*string) - - // Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer. - // +kubebuilder:validation:Optional - versionNumber?: null | float64 @go(VersionNumber,*float64) -} - -// LayerVersionPermissionSpec defines the desired state of LayerVersionPermission -#LayerVersionPermissionSpec: { - v1.#ResourceSpec - forProvider: #LayerVersionPermissionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LayerVersionPermissionInitParameters @go(InitProvider) -} - -// LayerVersionPermissionStatus defines the observed state of LayerVersionPermission. -#LayerVersionPermissionStatus: { - v1.#ResourceStatus - atProvider?: #LayerVersionPermissionObservation @go(AtProvider) -} - -// LayerVersionPermission is the Schema for the LayerVersionPermissions API. Provides a Lambda Layer Version Permission resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LayerVersionPermission: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.action) || (has(self.initProvider) && has(self.initProvider.action))",message="spec.forProvider.action is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.layerName) || (has(self.initProvider) && has(self.initProvider.layerName))",message="spec.forProvider.layerName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.principal) || (has(self.initProvider) && has(self.initProvider.principal))",message="spec.forProvider.principal is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.statementId) || (has(self.initProvider) && has(self.initProvider.statementId))",message="spec.forProvider.statementId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.versionNumber) || (has(self.initProvider) && has(self.initProvider.versionNumber))",message="spec.forProvider.versionNumber is a required parameter" - spec: #LayerVersionPermissionSpec @go(Spec) - status?: #LayerVersionPermissionStatus @go(Status) -} - -// LayerVersionPermissionList contains a list of LayerVersionPermissions -#LayerVersionPermissionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LayerVersionPermission] @go(Items,[]LayerVersionPermission) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_permission_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_permission_types_go_gen.cue deleted file mode 100644 index 742bcab..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_permission_types_go_gen.cue +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lambda/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PermissionInitParameters: { - // The AWS Lambda action you want to allow in this statement. (e.g., lambda:InvokeFunction) - action?: null | string @go(Action,*string) - - // The Event Source Token to validate. Used with Alexa Skills. - eventSourceToken?: null | string @go(EventSourceToken,*string) - - // Lambda Function URLs authentication type. Valid values are: AWS_IAM or NONE. Only supported for lambda:InvokeFunctionUrl action. - functionUrlAuthType?: null | string @go(FunctionURLAuthType,*string) - - // The principal who is getting this permission e.g., s3.amazonaws.com, an AWS account ID, or AWS IAM principal, or AWS service principal such as events.amazonaws.com or sns.amazonaws.com. - principal?: null | string @go(Principal,*string) - - // The identifier for your organization in AWS Organizations. Use this to grant permissions to all the AWS accounts under this organization. - principalOrgId?: null | string @go(PrincipalOrgID,*string) - - // This parameter is used when allowing cross-account access, or for S3 and SES. The AWS account ID (without a hyphen) of the source owner. - sourceAccount?: null | string @go(SourceAccount,*string) - - // When the principal is an AWS service, the ARN of the specific resource within that service to grant permission to. - // Without this, any resource from principal will be granted permission – even if that resource is from another account. - // For S3, this should be the ARN of the S3 Bucket. - // For EventBridge events, this should be the ARN of the EventBridge Rule. - // For API Gateway, this should be the ARN of the API, as described here. - sourceArn?: null | string @go(SourceArn,*string) - - // A unique statement identifier. - statementId?: null | string @go(StatementID,*string) - - // A statement identifier prefix. Conflicts with statement_id. - statementIdPrefix?: null | string @go(StatementIDPrefix,*string) -} - -#PermissionObservation: { - // The AWS Lambda action you want to allow in this statement. (e.g., lambda:InvokeFunction) - action?: null | string @go(Action,*string) - - // The Event Source Token to validate. Used with Alexa Skills. - eventSourceToken?: null | string @go(EventSourceToken,*string) - - // Name of the Lambda function whose resource policy you are updating - functionName?: null | string @go(FunctionName,*string) - - // Lambda Function URLs authentication type. Valid values are: AWS_IAM or NONE. Only supported for lambda:InvokeFunctionUrl action. - functionUrlAuthType?: null | string @go(FunctionURLAuthType,*string) - id?: null | string @go(ID,*string) - - // The principal who is getting this permission e.g., s3.amazonaws.com, an AWS account ID, or AWS IAM principal, or AWS service principal such as events.amazonaws.com or sns.amazonaws.com. - principal?: null | string @go(Principal,*string) - - // The identifier for your organization in AWS Organizations. Use this to grant permissions to all the AWS accounts under this organization. - principalOrgId?: null | string @go(PrincipalOrgID,*string) - - // Query parameter to specify function version or alias name. The permission will then apply to the specific qualified ARN e.g., arn:aws:lambda:aws-region:acct-id:function:function-name:2 - qualifier?: null | string @go(Qualifier,*string) - - // This parameter is used when allowing cross-account access, or for S3 and SES. The AWS account ID (without a hyphen) of the source owner. - sourceAccount?: null | string @go(SourceAccount,*string) - - // When the principal is an AWS service, the ARN of the specific resource within that service to grant permission to. - // Without this, any resource from principal will be granted permission – even if that resource is from another account. - // For S3, this should be the ARN of the S3 Bucket. - // For EventBridge events, this should be the ARN of the EventBridge Rule. - // For API Gateway, this should be the ARN of the API, as described here. - sourceArn?: null | string @go(SourceArn,*string) - - // A unique statement identifier. - statementId?: null | string @go(StatementID,*string) - - // A statement identifier prefix. Conflicts with statement_id. - statementIdPrefix?: null | string @go(StatementIDPrefix,*string) -} - -#PermissionParameters: { - // The AWS Lambda action you want to allow in this statement. (e.g., lambda:InvokeFunction) - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) - - // The Event Source Token to validate. Used with Alexa Skills. - // +kubebuilder:validation:Optional - eventSourceToken?: null | string @go(EventSourceToken,*string) - - // Name of the Lambda function whose resource policy you are updating - // +crossplane:generate:reference:type=Function - // +kubebuilder:validation:Optional - functionName?: null | string @go(FunctionName,*string) - - // Reference to a Function to populate functionName. - // +kubebuilder:validation:Optional - functionNameRef?: null | v1.#Reference @go(FunctionNameRef,*v1.Reference) - - // Selector for a Function to populate functionName. - // +kubebuilder:validation:Optional - functionNameSelector?: null | v1.#Selector @go(FunctionNameSelector,*v1.Selector) - - // Lambda Function URLs authentication type. Valid values are: AWS_IAM or NONE. Only supported for lambda:InvokeFunctionUrl action. - // +kubebuilder:validation:Optional - functionUrlAuthType?: null | string @go(FunctionURLAuthType,*string) - - // The principal who is getting this permission e.g., s3.amazonaws.com, an AWS account ID, or AWS IAM principal, or AWS service principal such as events.amazonaws.com or sns.amazonaws.com. - // +kubebuilder:validation:Optional - principal?: null | string @go(Principal,*string) - - // The identifier for your organization in AWS Organizations. Use this to grant permissions to all the AWS accounts under this organization. - // +kubebuilder:validation:Optional - principalOrgId?: null | string @go(PrincipalOrgID,*string) - - // Query parameter to specify function version or alias name. The permission will then apply to the specific qualified ARN e.g., arn:aws:lambda:aws-region:acct-id:function:function-name:2 - // +crossplane:generate:reference:type=Alias - // +kubebuilder:validation:Optional - qualifier?: null | string @go(Qualifier,*string) - - // Reference to a Alias to populate qualifier. - // +kubebuilder:validation:Optional - qualifierRef?: null | v1.#Reference @go(QualifierRef,*v1.Reference) - - // Selector for a Alias to populate qualifier. - // +kubebuilder:validation:Optional - qualifierSelector?: null | v1.#Selector @go(QualifierSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // This parameter is used when allowing cross-account access, or for S3 and SES. The AWS account ID (without a hyphen) of the source owner. - // +kubebuilder:validation:Optional - sourceAccount?: null | string @go(SourceAccount,*string) - - // When the principal is an AWS service, the ARN of the specific resource within that service to grant permission to. - // Without this, any resource from principal will be granted permission – even if that resource is from another account. - // For S3, this should be the ARN of the S3 Bucket. - // For EventBridge events, this should be the ARN of the EventBridge Rule. - // For API Gateway, this should be the ARN of the API, as described here. - // +kubebuilder:validation:Optional - sourceArn?: null | string @go(SourceArn,*string) - - // A unique statement identifier. - // +kubebuilder:validation:Optional - statementId?: null | string @go(StatementID,*string) - - // A statement identifier prefix. Conflicts with statement_id. - // +kubebuilder:validation:Optional - statementIdPrefix?: null | string @go(StatementIDPrefix,*string) -} - -// PermissionSpec defines the desired state of Permission -#PermissionSpec: { - v1.#ResourceSpec - forProvider: #PermissionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PermissionInitParameters @go(InitProvider) -} - -// PermissionStatus defines the observed state of Permission. -#PermissionStatus: { - v1.#ResourceStatus - atProvider?: #PermissionObservation @go(AtProvider) -} - -// Permission is the Schema for the Permissions API. Creates a Lambda function permission. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Permission: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.action) || (has(self.initProvider) && has(self.initProvider.action))",message="spec.forProvider.action is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.principal) || (has(self.initProvider) && has(self.initProvider.principal))",message="spec.forProvider.principal is a required parameter" - spec: #PermissionSpec @go(Spec) - status?: #PermissionStatus @go(Status) -} - -// PermissionList contains a list of Permissions -#PermissionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Permission] @go(Items,[]Permission) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_provisionedconcurrencyconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_provisionedconcurrencyconfig_types_go_gen.cue deleted file mode 100644 index 9eb2a4f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lambda/v1beta1/zz_provisionedconcurrencyconfig_types_go_gen.cue +++ /dev/null @@ -1,103 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lambda/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ProvisionedConcurrencyConfigInitParameters: { - // Name or Amazon Resource Name (ARN) of the Lambda Function. - functionName?: null | string @go(FunctionName,*string) - - // Amount of capacity to allocate. Must be greater than or equal to 1. - provisionedConcurrentExecutions?: null | float64 @go(ProvisionedConcurrentExecutions,*float64) - - // Lambda Function version or Lambda Alias name. - qualifier?: null | string @go(Qualifier,*string) -} - -#ProvisionedConcurrencyConfigObservation: { - // Name or Amazon Resource Name (ARN) of the Lambda Function. - functionName?: null | string @go(FunctionName,*string) - - // Lambda Function name and qualifier separated by a colon (:). - id?: null | string @go(ID,*string) - - // Amount of capacity to allocate. Must be greater than or equal to 1. - provisionedConcurrentExecutions?: null | float64 @go(ProvisionedConcurrentExecutions,*float64) - - // Lambda Function version or Lambda Alias name. - qualifier?: null | string @go(Qualifier,*string) -} - -#ProvisionedConcurrencyConfigParameters: { - // Name or Amazon Resource Name (ARN) of the Lambda Function. - // +kubebuilder:validation:Optional - functionName?: null | string @go(FunctionName,*string) - - // Amount of capacity to allocate. Must be greater than or equal to 1. - // +kubebuilder:validation:Optional - provisionedConcurrentExecutions?: null | float64 @go(ProvisionedConcurrentExecutions,*float64) - - // Lambda Function version or Lambda Alias name. - // +kubebuilder:validation:Optional - qualifier?: null | string @go(Qualifier,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ProvisionedConcurrencyConfigSpec defines the desired state of ProvisionedConcurrencyConfig -#ProvisionedConcurrencyConfigSpec: { - v1.#ResourceSpec - forProvider: #ProvisionedConcurrencyConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProvisionedConcurrencyConfigInitParameters @go(InitProvider) -} - -// ProvisionedConcurrencyConfigStatus defines the observed state of ProvisionedConcurrencyConfig. -#ProvisionedConcurrencyConfigStatus: { - v1.#ResourceStatus - atProvider?: #ProvisionedConcurrencyConfigObservation @go(AtProvider) -} - -// ProvisionedConcurrencyConfig is the Schema for the ProvisionedConcurrencyConfigs API. Manages a Lambda Provisioned Concurrency Configuration -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ProvisionedConcurrencyConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.functionName) || (has(self.initProvider) && has(self.initProvider.functionName))",message="spec.forProvider.functionName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.provisionedConcurrentExecutions) || (has(self.initProvider) && has(self.initProvider.provisionedConcurrentExecutions))",message="spec.forProvider.provisionedConcurrentExecutions is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.qualifier) || (has(self.initProvider) && has(self.initProvider.qualifier))",message="spec.forProvider.qualifier is a required parameter" - spec: #ProvisionedConcurrencyConfigSpec @go(Spec) - status?: #ProvisionedConcurrencyConfigStatus @go(Status) -} - -// ProvisionedConcurrencyConfigList contains a list of ProvisionedConcurrencyConfigs -#ProvisionedConcurrencyConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ProvisionedConcurrencyConfig] @go(Items,[]ProvisionedConcurrencyConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_bot_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_bot_types_go_gen.cue deleted file mode 100644 index 6c68975..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_bot_types_go_gen.cue +++ /dev/null @@ -1,414 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lexmodels/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AbortStatementInitParameters: { - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. - message?: [...#MessageInitParameters] @go(Message,[]MessageInitParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. - responseCard?: null | string @go(ResponseCard,*string) -} - -#AbortStatementObservation: { - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. - message?: [...#MessageObservation] @go(Message,[]MessageObservation) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. - responseCard?: null | string @go(ResponseCard,*string) -} - -#AbortStatementParameters: { - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. - // +kubebuilder:validation:Optional - message: [...#MessageParameters] @go(Message,[]MessageParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. - // +kubebuilder:validation:Optional - responseCard?: null | string @go(ResponseCard,*string) -} - -#BotInitParameters: { - // The message that Amazon Lex uses to abort a conversation. Attributes are documented under statement. - abortStatement?: [...#AbortStatementInitParameters] @go(AbortStatement,[]AbortStatementInitParameters) - - // By specifying true, you confirm that your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. For more information see the Amazon Lex FAQ and the Amazon Lex PutBot API Docs. - childDirected?: null | bool @go(ChildDirected,*bool) - - // The message that Amazon Lex uses when it doesn't understand the user's request. Attributes are documented under prompt. - clarificationPrompt?: [...#ClarificationPromptInitParameters] @go(ClarificationPrompt,[]ClarificationPromptInitParameters) - - // Determines if a new bot version is created when the initial resource is created and on each update. Defaults to false. - createVersion?: null | bool @go(CreateVersion,*bool) - - // A description of the bot. Must be less than or equal to 200 characters in length. - description?: null | string @go(Description,*string) - - // When set to true user utterances are sent to Amazon Comprehend for sentiment analysis. If you don't specify detectSentiment, the default is false. - detectSentiment?: null | bool @go(DetectSentiment,*bool) - - // Set to true to enable access to natural language understanding improvements. When you set the enable_model_improvements parameter to true you can use the nlu_intent_confidence_threshold parameter to configure confidence scores. For more information, see Confidence Scores. You can only set the enable_model_improvements parameter in certain Regions. If you set the parameter to true, your bot has access to accuracy improvements. For more information see the Amazon Lex Bot PutBot API Docs. - enableModelImprovements?: null | bool @go(EnableModelImprovements,*bool) - - // The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. Default is 300. Must be a number between 60 and 86400 (inclusive). - idleSessionTtlInSeconds?: null | float64 @go(IdleSessionTTLInSeconds,*float64) - - // A set of Intent objects. Each intent represents a command that a user can express. Attributes are documented under intent. Can have up to 250 Intent objects. - intent?: [...#IntentInitParameters] @go(Intent,[]IntentInitParameters) - - // Specifies the target locale for the bot. Any intent used in the bot must be compatible with the locale of the bot. For available locales, see Amazon Lex Bot PutBot API Docs. Default is en-US. - locale?: null | string @go(Locale,*string) - - // Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a PostContent or PostText response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot. For more information see Amazon Lex Bot PutBot API Docs This value requires enable_model_improvements to be set to true and the default is 0. Must be a float between 0 and 1. - nluIntentConfidenceThreshold?: null | float64 @go(NluIntentConfidenceThreshold,*float64) - - // If you set the process_behavior element to BUILD, Amazon Lex builds the bot so that it can be run. If you set the element to SAVE Amazon Lex saves the bot, but doesn't build it. Default is SAVE. - processBehavior?: null | string @go(ProcessBehavior,*string) - - // The Amazon Polly voice ID that you want Amazon Lex to use for voice interactions with the user. The locale configured for the voice must match the locale of the bot. For more information, see Available Voices in the Amazon Polly Developer Guide. - voiceId?: null | string @go(VoiceID,*string) -} - -#BotObservation: { - // The message that Amazon Lex uses to abort a conversation. Attributes are documented under statement. - abortStatement?: [...#AbortStatementObservation] @go(AbortStatement,[]AbortStatementObservation) - arn?: null | string @go(Arn,*string) - - // Checksum identifying the version of the bot that was created. The checksum is not - // included as an argument because the resource will add it automatically when updating the bot. - checksum?: null | string @go(Checksum,*string) - - // By specifying true, you confirm that your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. For more information see the Amazon Lex FAQ and the Amazon Lex PutBot API Docs. - childDirected?: null | bool @go(ChildDirected,*bool) - - // The message that Amazon Lex uses when it doesn't understand the user's request. Attributes are documented under prompt. - clarificationPrompt?: [...#ClarificationPromptObservation] @go(ClarificationPrompt,[]ClarificationPromptObservation) - - // Determines if a new bot version is created when the initial resource is created and on each update. Defaults to false. - createVersion?: null | bool @go(CreateVersion,*bool) - - // The date when the bot version was created. - createdDate?: null | string @go(CreatedDate,*string) - - // A description of the bot. Must be less than or equal to 200 characters in length. - description?: null | string @go(Description,*string) - - // When set to true user utterances are sent to Amazon Comprehend for sentiment analysis. If you don't specify detectSentiment, the default is false. - detectSentiment?: null | bool @go(DetectSentiment,*bool) - - // Set to true to enable access to natural language understanding improvements. When you set the enable_model_improvements parameter to true you can use the nlu_intent_confidence_threshold parameter to configure confidence scores. For more information, see Confidence Scores. You can only set the enable_model_improvements parameter in certain Regions. If you set the parameter to true, your bot has access to accuracy improvements. For more information see the Amazon Lex Bot PutBot API Docs. - enableModelImprovements?: null | bool @go(EnableModelImprovements,*bool) - - // If status is FAILED, Amazon Lex provides the reason that it failed to build the bot. - failureReason?: null | string @go(FailureReason,*string) - id?: null | string @go(ID,*string) - - // The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. Default is 300. Must be a number between 60 and 86400 (inclusive). - idleSessionTtlInSeconds?: null | float64 @go(IdleSessionTTLInSeconds,*float64) - - // A set of Intent objects. Each intent represents a command that a user can express. Attributes are documented under intent. Can have up to 250 Intent objects. - intent?: [...#IntentObservation] @go(Intent,[]IntentObservation) - - // The date when the $LATEST version of this bot was updated. - lastUpdatedDate?: null | string @go(LastUpdatedDate,*string) - - // Specifies the target locale for the bot. Any intent used in the bot must be compatible with the locale of the bot. For available locales, see Amazon Lex Bot PutBot API Docs. Default is en-US. - locale?: null | string @go(Locale,*string) - - // Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a PostContent or PostText response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot. For more information see Amazon Lex Bot PutBot API Docs This value requires enable_model_improvements to be set to true and the default is 0. Must be a float between 0 and 1. - nluIntentConfidenceThreshold?: null | float64 @go(NluIntentConfidenceThreshold,*float64) - - // If you set the process_behavior element to BUILD, Amazon Lex builds the bot so that it can be run. If you set the element to SAVE Amazon Lex saves the bot, but doesn't build it. Default is SAVE. - processBehavior?: null | string @go(ProcessBehavior,*string) - - // When you send a request to create or update a bot, Amazon Lex sets the status response - // element to BUILDING. After Amazon Lex builds the bot, it sets status to READY. If Amazon Lex can't - // build the bot, it sets status to FAILED. Amazon Lex returns the reason for the failure in the - // failure_reason response element. - status?: null | string @go(Status,*string) - - // The version of the bot. - version?: null | string @go(Version,*string) - - // The Amazon Polly voice ID that you want Amazon Lex to use for voice interactions with the user. The locale configured for the voice must match the locale of the bot. For more information, see Available Voices in the Amazon Polly Developer Guide. - voiceId?: null | string @go(VoiceID,*string) -} - -#BotParameters: { - // The message that Amazon Lex uses to abort a conversation. Attributes are documented under statement. - // +kubebuilder:validation:Optional - abortStatement?: [...#AbortStatementParameters] @go(AbortStatement,[]AbortStatementParameters) - - // By specifying true, you confirm that your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. For more information see the Amazon Lex FAQ and the Amazon Lex PutBot API Docs. - // +kubebuilder:validation:Optional - childDirected?: null | bool @go(ChildDirected,*bool) - - // The message that Amazon Lex uses when it doesn't understand the user's request. Attributes are documented under prompt. - // +kubebuilder:validation:Optional - clarificationPrompt?: [...#ClarificationPromptParameters] @go(ClarificationPrompt,[]ClarificationPromptParameters) - - // Determines if a new bot version is created when the initial resource is created and on each update. Defaults to false. - // +kubebuilder:validation:Optional - createVersion?: null | bool @go(CreateVersion,*bool) - - // A description of the bot. Must be less than or equal to 200 characters in length. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // When set to true user utterances are sent to Amazon Comprehend for sentiment analysis. If you don't specify detectSentiment, the default is false. - // +kubebuilder:validation:Optional - detectSentiment?: null | bool @go(DetectSentiment,*bool) - - // Set to true to enable access to natural language understanding improvements. When you set the enable_model_improvements parameter to true you can use the nlu_intent_confidence_threshold parameter to configure confidence scores. For more information, see Confidence Scores. You can only set the enable_model_improvements parameter in certain Regions. If you set the parameter to true, your bot has access to accuracy improvements. For more information see the Amazon Lex Bot PutBot API Docs. - // +kubebuilder:validation:Optional - enableModelImprovements?: null | bool @go(EnableModelImprovements,*bool) - - // The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. Default is 300. Must be a number between 60 and 86400 (inclusive). - // +kubebuilder:validation:Optional - idleSessionTtlInSeconds?: null | float64 @go(IdleSessionTTLInSeconds,*float64) - - // A set of Intent objects. Each intent represents a command that a user can express. Attributes are documented under intent. Can have up to 250 Intent objects. - // +kubebuilder:validation:Optional - intent?: [...#IntentParameters] @go(Intent,[]IntentParameters) - - // Specifies the target locale for the bot. Any intent used in the bot must be compatible with the locale of the bot. For available locales, see Amazon Lex Bot PutBot API Docs. Default is en-US. - // +kubebuilder:validation:Optional - locale?: null | string @go(Locale,*string) - - // Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a PostContent or PostText response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot. For more information see Amazon Lex Bot PutBot API Docs This value requires enable_model_improvements to be set to true and the default is 0. Must be a float between 0 and 1. - // +kubebuilder:validation:Optional - nluIntentConfidenceThreshold?: null | float64 @go(NluIntentConfidenceThreshold,*float64) - - // If you set the process_behavior element to BUILD, Amazon Lex builds the bot so that it can be run. If you set the element to SAVE Amazon Lex saves the bot, but doesn't build it. Default is SAVE. - // +kubebuilder:validation:Optional - processBehavior?: null | string @go(ProcessBehavior,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Polly voice ID that you want Amazon Lex to use for voice interactions with the user. The locale configured for the voice must match the locale of the bot. For more information, see Available Voices in the Amazon Polly Developer Guide. - // +kubebuilder:validation:Optional - voiceId?: null | string @go(VoiceID,*string) -} - -#ClarificationPromptInitParameters: { - // The number of times to prompt the user for information. - maxAttempts?: null | float64 @go(MaxAttempts,*float64) - - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. - message?: [...#ClarificationPromptMessageInitParameters] @go(Message,[]ClarificationPromptMessageInitParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. - responseCard?: null | string @go(ResponseCard,*string) -} - -#ClarificationPromptMessageInitParameters: { - // The text of the message. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#ClarificationPromptMessageObservation: { - // The text of the message. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#ClarificationPromptMessageParameters: { - // The text of the message. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // The content type of the message string. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. - // +kubebuilder:validation:Optional - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#ClarificationPromptObservation: { - // The number of times to prompt the user for information. - maxAttempts?: null | float64 @go(MaxAttempts,*float64) - - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. - message?: [...#ClarificationPromptMessageObservation] @go(Message,[]ClarificationPromptMessageObservation) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. - responseCard?: null | string @go(ResponseCard,*string) -} - -#ClarificationPromptParameters: { - // The number of times to prompt the user for information. - // +kubebuilder:validation:Optional - maxAttempts?: null | float64 @go(MaxAttempts,*float64) - - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. - // +kubebuilder:validation:Optional - message: [...#ClarificationPromptMessageParameters] @go(Message,[]ClarificationPromptMessageParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. - // +kubebuilder:validation:Optional - responseCard?: null | string @go(ResponseCard,*string) -} - -#IntentInitParameters: { - // The name of the intent. Must be less than or equal to 100 characters in length. - intentName?: null | string @go(IntentName,*string) - - // The version of the intent. Must be less than or equal to 64 characters in length. - intentVersion?: null | string @go(IntentVersion,*string) -} - -#IntentObservation: { - // The name of the intent. Must be less than or equal to 100 characters in length. - intentName?: null | string @go(IntentName,*string) - - // The version of the intent. Must be less than or equal to 64 characters in length. - intentVersion?: null | string @go(IntentVersion,*string) -} - -#IntentParameters: { - // The name of the intent. Must be less than or equal to 100 characters in length. - // +kubebuilder:validation:Optional - intentName?: null | string @go(IntentName,*string) - - // The version of the intent. Must be less than or equal to 64 characters in length. - // +kubebuilder:validation:Optional - intentVersion?: null | string @go(IntentVersion,*string) -} - -#MessageInitParameters: { - // The text of the message. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#MessageObservation: { - // The text of the message. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#MessageParameters: { - // The text of the message. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // The content type of the message string. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. - // +kubebuilder:validation:Optional - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -// BotSpec defines the desired state of Bot -#BotSpec: { - v1.#ResourceSpec - forProvider: #BotParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BotInitParameters @go(InitProvider) -} - -// BotStatus defines the observed state of Bot. -#BotStatus: { - v1.#ResourceStatus - atProvider?: #BotObservation @go(AtProvider) -} - -// Bot is the Schema for the Bots API. Provides an Amazon Lex bot resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Bot: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.abortStatement) || (has(self.initProvider) && has(self.initProvider.abortStatement))",message="spec.forProvider.abortStatement is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.childDirected) || (has(self.initProvider) && has(self.initProvider.childDirected))",message="spec.forProvider.childDirected is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.intent) || (has(self.initProvider) && has(self.initProvider.intent))",message="spec.forProvider.intent is a required parameter" - spec: #BotSpec @go(Spec) - status?: #BotStatus @go(Status) -} - -// BotList contains a list of Bots -#BotList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Bot] @go(Items,[]Bot) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_botalias_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_botalias_types_go_gen.cue deleted file mode 100644 index fbeacf0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_botalias_types_go_gen.cue +++ /dev/null @@ -1,197 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lexmodels/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BotAliasInitParameters: { - // The name of the bot. - botName?: null | string @go(BotName,*string) - - // The name of the bot. - botVersion?: null | string @go(BotVersion,*string) - - // The settings that determine how Amazon Lex uses conversation logs for the alias. Attributes are documented under conversation_logs. - conversationLogs?: [...#ConversationLogsInitParameters] @go(ConversationLogs,[]ConversationLogsInitParameters) - - // A description of the alias. Must be less than or equal to 200 characters in length. - description?: null | string @go(Description,*string) -} - -#BotAliasObservation: { - // The ARN of the bot alias. - arn?: null | string @go(Arn,*string) - - // The name of the bot. - botName?: null | string @go(BotName,*string) - - // The name of the bot. - botVersion?: null | string @go(BotVersion,*string) - - // Checksum of the bot alias. - checksum?: null | string @go(Checksum,*string) - - // The settings that determine how Amazon Lex uses conversation logs for the alias. Attributes are documented under conversation_logs. - conversationLogs?: [...#ConversationLogsObservation] @go(ConversationLogs,[]ConversationLogsObservation) - - // The date that the bot alias was created. - createdDate?: null | string @go(CreatedDate,*string) - - // A description of the alias. Must be less than or equal to 200 characters in length. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same. - lastUpdatedDate?: null | string @go(LastUpdatedDate,*string) -} - -#BotAliasParameters: { - // The name of the bot. - // +kubebuilder:validation:Optional - botName?: null | string @go(BotName,*string) - - // The name of the bot. - // +kubebuilder:validation:Optional - botVersion?: null | string @go(BotVersion,*string) - - // The settings that determine how Amazon Lex uses conversation logs for the alias. Attributes are documented under conversation_logs. - // +kubebuilder:validation:Optional - conversationLogs?: [...#ConversationLogsParameters] @go(ConversationLogs,[]ConversationLogsParameters) - - // A description of the alias. Must be less than or equal to 200 characters in length. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#ConversationLogsInitParameters: { - // The Amazon Resource Name (ARN) of the IAM role used to write your logs to CloudWatch Logs or an S3 bucket. Must be between 20 and 2048 characters in length. - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // The settings for your conversation logs. You can log text, audio, or both. Attributes are documented under log_settings. - logSettings?: [...#LogSettingsInitParameters] @go(LogSettings,[]LogSettingsInitParameters) -} - -#ConversationLogsObservation: { - // The Amazon Resource Name (ARN) of the IAM role used to write your logs to CloudWatch Logs or an S3 bucket. Must be between 20 and 2048 characters in length. - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // The settings for your conversation logs. You can log text, audio, or both. Attributes are documented under log_settings. - logSettings?: [...#LogSettingsObservation] @go(LogSettings,[]LogSettingsObservation) -} - -#ConversationLogsParameters: { - // The Amazon Resource Name (ARN) of the IAM role used to write your logs to CloudWatch Logs or an S3 bucket. Must be between 20 and 2048 characters in length. - // +kubebuilder:validation:Optional - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // The settings for your conversation logs. You can log text, audio, or both. Attributes are documented under log_settings. - // +kubebuilder:validation:Optional - logSettings?: [...#LogSettingsParameters] @go(LogSettings,[]LogSettingsParameters) -} - -#LogSettingsInitParameters: { - // The destination where logs are delivered. Options are CLOUDWATCH_LOGS or S3. - destination?: null | string @go(Destination,*string) - - // The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket. This can only be specified when destination is set to S3. Must be between 20 and 2048 characters in length. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The type of logging that is enabled. Options are AUDIO or TEXT. - logType?: null | string @go(LogType,*string) - - // The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are delivered. Must be less than or equal to 2048 characters in length. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#LogSettingsObservation: { - // The destination where logs are delivered. Options are CLOUDWATCH_LOGS or S3. - destination?: null | string @go(Destination,*string) - - // The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket. This can only be specified when destination is set to S3. Must be between 20 and 2048 characters in length. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The type of logging that is enabled. Options are AUDIO or TEXT. - logType?: null | string @go(LogType,*string) - - // The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are delivered. Must be less than or equal to 2048 characters in length. - resourceArn?: null | string @go(ResourceArn,*string) - - // (Computed) The prefix of the S3 object key for AUDIO logs or the log stream name for TEXT logs. - resourcePrefix?: null | string @go(ResourcePrefix,*string) -} - -#LogSettingsParameters: { - // The destination where logs are delivered. Options are CLOUDWATCH_LOGS or S3. - // +kubebuilder:validation:Optional - destination?: null | string @go(Destination,*string) - - // The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket. This can only be specified when destination is set to S3. Must be between 20 and 2048 characters in length. - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The type of logging that is enabled. Options are AUDIO or TEXT. - // +kubebuilder:validation:Optional - logType?: null | string @go(LogType,*string) - - // The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are delivered. Must be less than or equal to 2048 characters in length. - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) -} - -// BotAliasSpec defines the desired state of BotAlias -#BotAliasSpec: { - v1.#ResourceSpec - forProvider: #BotAliasParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BotAliasInitParameters @go(InitProvider) -} - -// BotAliasStatus defines the observed state of BotAlias. -#BotAliasStatus: { - v1.#ResourceStatus - atProvider?: #BotAliasObservation @go(AtProvider) -} - -// BotAlias is the Schema for the BotAliass API. Provides an Amazon Lex Bot Alias resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BotAlias: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.botName) || (has(self.initProvider) && has(self.initProvider.botName))",message="spec.forProvider.botName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.botVersion) || (has(self.initProvider) && has(self.initProvider.botVersion))",message="spec.forProvider.botVersion is a required parameter" - spec: #BotAliasSpec @go(Spec) - status?: #BotAliasStatus @go(Status) -} - -// BotAliasList contains a list of BotAliass -#BotAliasList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BotAlias] @go(Items,[]BotAlias) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index cdf0853..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lexmodels/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=lexmodels.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "lexmodels.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_intent_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_intent_types_go_gen.cue deleted file mode 100644 index 9d93e12..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_intent_types_go_gen.cue +++ /dev/null @@ -1,1004 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lexmodels/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CodeHookInitParameters: { - // The version of the request-response that you want Amazon Lex to use - // to invoke your Lambda function. For more information, see - // Using Lambda Functions. Must be less than or equal to 5 characters in length. - messageVersion?: null | string @go(MessageVersion,*string) - - // The Amazon Resource Name (ARN) of the Lambda function. - uri?: null | string @go(URI,*string) -} - -#CodeHookObservation: { - // The version of the request-response that you want Amazon Lex to use - // to invoke your Lambda function. For more information, see - // Using Lambda Functions. Must be less than or equal to 5 characters in length. - messageVersion?: null | string @go(MessageVersion,*string) - - // The Amazon Resource Name (ARN) of the Lambda function. - uri?: null | string @go(URI,*string) -} - -#CodeHookParameters: { - // The version of the request-response that you want Amazon Lex to use - // to invoke your Lambda function. For more information, see - // Using Lambda Functions. Must be less than or equal to 5 characters in length. - // +kubebuilder:validation:Optional - messageVersion?: null | string @go(MessageVersion,*string) - - // The Amazon Resource Name (ARN) of the Lambda function. - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) -} - -#ConclusionStatementInitParameters: { - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - message?: [...#ConclusionStatementMessageInitParameters] @go(Message,[]ConclusionStatementMessageInitParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) -} - -#ConclusionStatementMessageInitParameters: { - // The text of the message. Must be less than or equal to 1000 characters in length. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#ConclusionStatementMessageObservation: { - // The text of the message. Must be less than or equal to 1000 characters in length. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#ConclusionStatementMessageParameters: { - // The text of the message. Must be less than or equal to 1000 characters in length. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // The content type of the message string. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - // +kubebuilder:validation:Optional - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#ConclusionStatementObservation: { - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - message?: [...#ConclusionStatementMessageObservation] @go(Message,[]ConclusionStatementMessageObservation) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) -} - -#ConclusionStatementParameters: { - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - // +kubebuilder:validation:Optional - message: [...#ConclusionStatementMessageParameters] @go(Message,[]ConclusionStatementMessageParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - // +kubebuilder:validation:Optional - responseCard?: null | string @go(ResponseCard,*string) -} - -#ConfirmationPromptInitParameters: { - // The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). - maxAttempts?: null | float64 @go(MaxAttempts,*float64) - - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - message?: [...#ConfirmationPromptMessageInitParameters] @go(Message,[]ConfirmationPromptMessageInitParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) -} - -#ConfirmationPromptMessageInitParameters: { - // The text of the message. Must be less than or equal to 1000 characters in length. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#ConfirmationPromptMessageObservation: { - // The text of the message. Must be less than or equal to 1000 characters in length. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#ConfirmationPromptMessageParameters: { - // The text of the message. Must be less than or equal to 1000 characters in length. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // The content type of the message string. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - // +kubebuilder:validation:Optional - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#ConfirmationPromptObservation: { - // The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). - maxAttempts?: null | float64 @go(MaxAttempts,*float64) - - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - message?: [...#ConfirmationPromptMessageObservation] @go(Message,[]ConfirmationPromptMessageObservation) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) -} - -#ConfirmationPromptParameters: { - // The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). - // +kubebuilder:validation:Optional - maxAttempts?: null | float64 @go(MaxAttempts,*float64) - - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - // +kubebuilder:validation:Optional - message: [...#ConfirmationPromptMessageParameters] @go(Message,[]ConfirmationPromptMessageParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - // +kubebuilder:validation:Optional - responseCard?: null | string @go(ResponseCard,*string) -} - -#DialogCodeHookInitParameters: { - // The version of the request-response that you want Amazon Lex to use - // to invoke your Lambda function. For more information, see - // Using Lambda Functions. Must be less than or equal to 5 characters in length. - messageVersion?: null | string @go(MessageVersion,*string) - - // The Amazon Resource Name (ARN) of the Lambda function. - uri?: null | string @go(URI,*string) -} - -#DialogCodeHookObservation: { - // The version of the request-response that you want Amazon Lex to use - // to invoke your Lambda function. For more information, see - // Using Lambda Functions. Must be less than or equal to 5 characters in length. - messageVersion?: null | string @go(MessageVersion,*string) - - // The Amazon Resource Name (ARN) of the Lambda function. - uri?: null | string @go(URI,*string) -} - -#DialogCodeHookParameters: { - // The version of the request-response that you want Amazon Lex to use - // to invoke your Lambda function. For more information, see - // Using Lambda Functions. Must be less than or equal to 5 characters in length. - // +kubebuilder:validation:Optional - messageVersion?: null | string @go(MessageVersion,*string) - - // The Amazon Resource Name (ARN) of the Lambda function. - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) -} - -#FollowUpPromptInitParameters: { - // Prompts for information from the user. Attributes are documented under prompt. - prompt?: [...#PromptInitParameters] @go(Prompt,[]PromptInitParameters) - - // If the user answers "no" to the question defined in the prompt field, - // Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are - // documented below under statement. - rejectionStatement?: [...#RejectionStatementInitParameters] @go(RejectionStatement,[]RejectionStatementInitParameters) -} - -#FollowUpPromptObservation: { - // Prompts for information from the user. Attributes are documented under prompt. - prompt?: [...#PromptObservation] @go(Prompt,[]PromptObservation) - - // If the user answers "no" to the question defined in the prompt field, - // Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are - // documented below under statement. - rejectionStatement?: [...#RejectionStatementObservation] @go(RejectionStatement,[]RejectionStatementObservation) -} - -#FollowUpPromptParameters: { - // Prompts for information from the user. Attributes are documented under prompt. - // +kubebuilder:validation:Optional - prompt: [...#PromptParameters] @go(Prompt,[]PromptParameters) - - // If the user answers "no" to the question defined in the prompt field, - // Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are - // documented below under statement. - // +kubebuilder:validation:Optional - rejectionStatement: [...#RejectionStatementParameters] @go(RejectionStatement,[]RejectionStatementParameters) -} - -#FulfillmentActivityInitParameters: { - // A description of the Lambda function that is run to fulfill the intent. - // Required if type is CodeHook. Attributes are documented under code_hook. - codeHook?: [...#CodeHookInitParameters] @go(CodeHook,[]CodeHookInitParameters) - - // How the intent should be fulfilled, either by running a Lambda function or by - // returning the slot data to the client application. Type can be either ReturnIntent or CodeHook, as documented here. - type?: null | string @go(Type,*string) -} - -#FulfillmentActivityObservation: { - // A description of the Lambda function that is run to fulfill the intent. - // Required if type is CodeHook. Attributes are documented under code_hook. - codeHook?: [...#CodeHookObservation] @go(CodeHook,[]CodeHookObservation) - - // How the intent should be fulfilled, either by running a Lambda function or by - // returning the slot data to the client application. Type can be either ReturnIntent or CodeHook, as documented here. - type?: null | string @go(Type,*string) -} - -#FulfillmentActivityParameters: { - // A description of the Lambda function that is run to fulfill the intent. - // Required if type is CodeHook. Attributes are documented under code_hook. - // +kubebuilder:validation:Optional - codeHook?: [...#CodeHookParameters] @go(CodeHook,[]CodeHookParameters) - - // How the intent should be fulfilled, either by running a Lambda function or by - // returning the slot data to the client application. Type can be either ReturnIntent or CodeHook, as documented here. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#IntentInitParameters_2: { - // The statement that you want Amazon Lex to convey to the user - // after the intent is successfully fulfilled by the Lambda function. This element is relevant only if - // you provide a Lambda function in the fulfillment_activity. If you return the intent to the client - // application, you can't specify this element. The follow_up_prompt and conclusion_statement are - // mutually exclusive. You can specify only one. Attributes are documented under statement. - conclusionStatement?: [...#ConclusionStatementInitParameters] @go(ConclusionStatement,[]ConclusionStatementInitParameters) - - // Prompts the user to confirm the intent. This question should - // have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, - // or neither. Attributes are documented under prompt. - confirmationPrompt?: [...#ConfirmationPromptInitParameters] @go(ConfirmationPrompt,[]ConfirmationPromptInitParameters) - - // Determines if a new slot type version is created when the initial - // resource is created and on each update. Defaults to false. - createVersion?: null | bool @go(CreateVersion,*bool) - - // A description of the intent. Must be less than or equal to 200 characters in length. - description?: null | string @go(Description,*string) - - // Specifies a Lambda function to invoke for each user input. You can - // invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook. - dialogCodeHook?: [...#DialogCodeHookInitParameters] @go(DialogCodeHook,[]DialogCodeHookInitParameters) - - // Amazon Lex uses this prompt to solicit additional activity after - // fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the - // user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually - // exclusive. You can specify only one. Attributes are documented under follow_up_prompt. - followUpPrompt?: [...#FollowUpPromptInitParameters] @go(FollowUpPrompt,[]FollowUpPromptInitParameters) - - // Describes how the intent is fulfilled. For example, after a - // user provides all of the information for a pizza order, fulfillment_activity defines how the bot - // places an order with a local pizza store. Attributes are documented under fulfillment_activity. - fulfillmentActivity?: [...#FulfillmentActivityInitParameters] @go(FulfillmentActivity,[]FulfillmentActivityInitParameters) - - // A unique identifier for the built-in intent to base this - // intent on. To find the signature for an intent, see - // Standard Built-in Intents - // in the Alexa Skills Kit. - parentIntentSignature?: null | string @go(ParentIntentSignature,*string) - - // When the user answers "no" to the question defined in - // confirmation_prompt, Amazon Lex responds with this statement to acknowledge that the intent was - // canceled. You must provide both the rejection_statement and the confirmation_prompt, or neither. - // Attributes are documented under statement. - rejectionStatement?: [...#IntentRejectionStatementInitParameters] @go(RejectionStatement,[]IntentRejectionStatementInitParameters) - - // An array of utterances (strings) that a user might say to signal - // the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". - // In each utterance, a slot name is enclosed in curly braces. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length. - sampleUtterances?: [...null | string] @go(SampleUtterances,[]*string) - - // An list of intent slots. At runtime, Amazon Lex elicits required slot values - // from the user using prompts defined in the slots. Attributes are documented under slot. - slot?: [...#SlotInitParameters] @go(Slot,[]SlotInitParameters) -} - -#IntentObservation_2: { - // The ARN of the Lex intent. - arn?: null | string @go(Arn,*string) - - // Checksum identifying the version of the intent that was created. The checksum is not - // included as an argument because the resource will add it automatically when updating the intent. - checksum?: null | string @go(Checksum,*string) - - // The statement that you want Amazon Lex to convey to the user - // after the intent is successfully fulfilled by the Lambda function. This element is relevant only if - // you provide a Lambda function in the fulfillment_activity. If you return the intent to the client - // application, you can't specify this element. The follow_up_prompt and conclusion_statement are - // mutually exclusive. You can specify only one. Attributes are documented under statement. - conclusionStatement?: [...#ConclusionStatementObservation] @go(ConclusionStatement,[]ConclusionStatementObservation) - - // Prompts the user to confirm the intent. This question should - // have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, - // or neither. Attributes are documented under prompt. - confirmationPrompt?: [...#ConfirmationPromptObservation] @go(ConfirmationPrompt,[]ConfirmationPromptObservation) - - // Determines if a new slot type version is created when the initial - // resource is created and on each update. Defaults to false. - createVersion?: null | bool @go(CreateVersion,*bool) - - // The date when the intent version was created. - createdDate?: null | string @go(CreatedDate,*string) - - // A description of the intent. Must be less than or equal to 200 characters in length. - description?: null | string @go(Description,*string) - - // Specifies a Lambda function to invoke for each user input. You can - // invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook. - dialogCodeHook?: [...#DialogCodeHookObservation] @go(DialogCodeHook,[]DialogCodeHookObservation) - - // Amazon Lex uses this prompt to solicit additional activity after - // fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the - // user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually - // exclusive. You can specify only one. Attributes are documented under follow_up_prompt. - followUpPrompt?: [...#FollowUpPromptObservation] @go(FollowUpPrompt,[]FollowUpPromptObservation) - - // Describes how the intent is fulfilled. For example, after a - // user provides all of the information for a pizza order, fulfillment_activity defines how the bot - // places an order with a local pizza store. Attributes are documented under fulfillment_activity. - fulfillmentActivity?: [...#FulfillmentActivityObservation] @go(FulfillmentActivity,[]FulfillmentActivityObservation) - id?: null | string @go(ID,*string) - - // The date when the $LATEST version of this intent was updated. - lastUpdatedDate?: null | string @go(LastUpdatedDate,*string) - - // A unique identifier for the built-in intent to base this - // intent on. To find the signature for an intent, see - // Standard Built-in Intents - // in the Alexa Skills Kit. - parentIntentSignature?: null | string @go(ParentIntentSignature,*string) - - // When the user answers "no" to the question defined in - // confirmation_prompt, Amazon Lex responds with this statement to acknowledge that the intent was - // canceled. You must provide both the rejection_statement and the confirmation_prompt, or neither. - // Attributes are documented under statement. - rejectionStatement?: [...#IntentRejectionStatementObservation] @go(RejectionStatement,[]IntentRejectionStatementObservation) - - // An array of utterances (strings) that a user might say to signal - // the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". - // In each utterance, a slot name is enclosed in curly braces. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length. - sampleUtterances?: [...null | string] @go(SampleUtterances,[]*string) - - // An list of intent slots. At runtime, Amazon Lex elicits required slot values - // from the user using prompts defined in the slots. Attributes are documented under slot. - slot?: [...#SlotObservation] @go(Slot,[]SlotObservation) - - // The version of the bot. - version?: null | string @go(Version,*string) -} - -#IntentParameters_2: { - // The statement that you want Amazon Lex to convey to the user - // after the intent is successfully fulfilled by the Lambda function. This element is relevant only if - // you provide a Lambda function in the fulfillment_activity. If you return the intent to the client - // application, you can't specify this element. The follow_up_prompt and conclusion_statement are - // mutually exclusive. You can specify only one. Attributes are documented under statement. - // +kubebuilder:validation:Optional - conclusionStatement?: [...#ConclusionStatementParameters] @go(ConclusionStatement,[]ConclusionStatementParameters) - - // Prompts the user to confirm the intent. This question should - // have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, - // or neither. Attributes are documented under prompt. - // +kubebuilder:validation:Optional - confirmationPrompt?: [...#ConfirmationPromptParameters] @go(ConfirmationPrompt,[]ConfirmationPromptParameters) - - // Determines if a new slot type version is created when the initial - // resource is created and on each update. Defaults to false. - // +kubebuilder:validation:Optional - createVersion?: null | bool @go(CreateVersion,*bool) - - // A description of the intent. Must be less than or equal to 200 characters in length. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies a Lambda function to invoke for each user input. You can - // invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook. - // +kubebuilder:validation:Optional - dialogCodeHook?: [...#DialogCodeHookParameters] @go(DialogCodeHook,[]DialogCodeHookParameters) - - // Amazon Lex uses this prompt to solicit additional activity after - // fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the - // user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually - // exclusive. You can specify only one. Attributes are documented under follow_up_prompt. - // +kubebuilder:validation:Optional - followUpPrompt?: [...#FollowUpPromptParameters] @go(FollowUpPrompt,[]FollowUpPromptParameters) - - // Describes how the intent is fulfilled. For example, after a - // user provides all of the information for a pizza order, fulfillment_activity defines how the bot - // places an order with a local pizza store. Attributes are documented under fulfillment_activity. - // +kubebuilder:validation:Optional - fulfillmentActivity?: [...#FulfillmentActivityParameters] @go(FulfillmentActivity,[]FulfillmentActivityParameters) - - // A unique identifier for the built-in intent to base this - // intent on. To find the signature for an intent, see - // Standard Built-in Intents - // in the Alexa Skills Kit. - // +kubebuilder:validation:Optional - parentIntentSignature?: null | string @go(ParentIntentSignature,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // When the user answers "no" to the question defined in - // confirmation_prompt, Amazon Lex responds with this statement to acknowledge that the intent was - // canceled. You must provide both the rejection_statement and the confirmation_prompt, or neither. - // Attributes are documented under statement. - // +kubebuilder:validation:Optional - rejectionStatement?: [...#IntentRejectionStatementParameters] @go(RejectionStatement,[]IntentRejectionStatementParameters) - - // An array of utterances (strings) that a user might say to signal - // the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". - // In each utterance, a slot name is enclosed in curly braces. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length. - // +kubebuilder:validation:Optional - sampleUtterances?: [...null | string] @go(SampleUtterances,[]*string) - - // An list of intent slots. At runtime, Amazon Lex elicits required slot values - // from the user using prompts defined in the slots. Attributes are documented under slot. - // +kubebuilder:validation:Optional - slot?: [...#SlotParameters] @go(Slot,[]SlotParameters) -} - -#IntentRejectionStatementInitParameters: { - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - message?: [...#IntentRejectionStatementMessageInitParameters] @go(Message,[]IntentRejectionStatementMessageInitParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) -} - -#IntentRejectionStatementMessageInitParameters: { - // The text of the message. Must be less than or equal to 1000 characters in length. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#IntentRejectionStatementMessageObservation: { - // The text of the message. Must be less than or equal to 1000 characters in length. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#IntentRejectionStatementMessageParameters: { - // The text of the message. Must be less than or equal to 1000 characters in length. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // The content type of the message string. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - // +kubebuilder:validation:Optional - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#IntentRejectionStatementObservation: { - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - message?: [...#IntentRejectionStatementMessageObservation] @go(Message,[]IntentRejectionStatementMessageObservation) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) -} - -#IntentRejectionStatementParameters: { - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - // +kubebuilder:validation:Optional - message: [...#IntentRejectionStatementMessageParameters] @go(Message,[]IntentRejectionStatementMessageParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - // +kubebuilder:validation:Optional - responseCard?: null | string @go(ResponseCard,*string) -} - -#PromptInitParameters: { - // The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). - maxAttempts?: null | float64 @go(MaxAttempts,*float64) - - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - message?: [...#PromptMessageInitParameters] @go(Message,[]PromptMessageInitParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) -} - -#PromptMessageInitParameters: { - // The text of the message. Must be less than or equal to 1000 characters in length. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#PromptMessageObservation: { - // The text of the message. Must be less than or equal to 1000 characters in length. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#PromptMessageParameters: { - // The text of the message. Must be less than or equal to 1000 characters in length. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // The content type of the message string. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - // +kubebuilder:validation:Optional - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#PromptObservation: { - // The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). - maxAttempts?: null | float64 @go(MaxAttempts,*float64) - - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - message?: [...#PromptMessageObservation] @go(Message,[]PromptMessageObservation) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) -} - -#PromptParameters: { - // The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). - // +kubebuilder:validation:Optional - maxAttempts?: null | float64 @go(MaxAttempts,*float64) - - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - // +kubebuilder:validation:Optional - message: [...#PromptMessageParameters] @go(Message,[]PromptMessageParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - // +kubebuilder:validation:Optional - responseCard?: null | string @go(ResponseCard,*string) -} - -#RejectionStatementInitParameters: { - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - message?: [...#RejectionStatementMessageInitParameters] @go(Message,[]RejectionStatementMessageInitParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) -} - -#RejectionStatementMessageInitParameters: { - // The text of the message. Must be less than or equal to 1000 characters in length. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#RejectionStatementMessageObservation: { - // The text of the message. Must be less than or equal to 1000 characters in length. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#RejectionStatementMessageParameters: { - // The text of the message. Must be less than or equal to 1000 characters in length. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // The content type of the message string. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - // +kubebuilder:validation:Optional - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#RejectionStatementObservation: { - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - message?: [...#RejectionStatementMessageObservation] @go(Message,[]RejectionStatementMessageObservation) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) -} - -#RejectionStatementParameters: { - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - // +kubebuilder:validation:Optional - message: [...#RejectionStatementMessageParameters] @go(Message,[]RejectionStatementMessageParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - // +kubebuilder:validation:Optional - responseCard?: null | string @go(ResponseCard,*string) -} - -#SlotInitParameters: { - // A description of the bot. Must be less than or equal to 200 characters in length. - description?: null | string @go(Description,*string) - - // The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length. - name?: null | string @go(Name,*string) - - // Directs Lex the order in which to elicit this slot value from the user. - // For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for - // the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits - // values is arbitrary. Must be between 1 and 100. - priority?: null | float64 @go(Priority,*float64) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) - - // If you know a specific pattern with which users might respond to - // an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This - // is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length. - sampleUtterances?: [...null | string] @go(SampleUtterances,[]*string) - - // Specifies whether the slot is required or optional. - slotConstraint?: null | string @go(SlotConstraint,*string) - - // The type of the slot, either a custom slot type that you defined or one of - // the built-in slot types. Must be less than or equal to 100 characters in length. - slotType?: null | string @go(SlotType,*string) - - // The version of the slot type. Must be less than or equal to 64 characters in length. - slotTypeVersion?: null | string @go(SlotTypeVersion,*string) - - // The prompt that Amazon Lex uses to elicit the slot value - // from the user. Attributes are documented under prompt. - valueElicitationPrompt?: [...#ValueElicitationPromptInitParameters] @go(ValueElicitationPrompt,[]ValueElicitationPromptInitParameters) -} - -#SlotObservation: { - // A description of the bot. Must be less than or equal to 200 characters in length. - description?: null | string @go(Description,*string) - - // The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length. - name?: null | string @go(Name,*string) - - // Directs Lex the order in which to elicit this slot value from the user. - // For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for - // the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits - // values is arbitrary. Must be between 1 and 100. - priority?: null | float64 @go(Priority,*float64) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) - - // If you know a specific pattern with which users might respond to - // an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This - // is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length. - sampleUtterances?: [...null | string] @go(SampleUtterances,[]*string) - - // Specifies whether the slot is required or optional. - slotConstraint?: null | string @go(SlotConstraint,*string) - - // The type of the slot, either a custom slot type that you defined or one of - // the built-in slot types. Must be less than or equal to 100 characters in length. - slotType?: null | string @go(SlotType,*string) - - // The version of the slot type. Must be less than or equal to 64 characters in length. - slotTypeVersion?: null | string @go(SlotTypeVersion,*string) - - // The prompt that Amazon Lex uses to elicit the slot value - // from the user. Attributes are documented under prompt. - valueElicitationPrompt?: [...#ValueElicitationPromptObservation] @go(ValueElicitationPrompt,[]ValueElicitationPromptObservation) -} - -#SlotParameters: { - // A description of the bot. Must be less than or equal to 200 characters in length. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Directs Lex the order in which to elicit this slot value from the user. - // For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for - // the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits - // values is arbitrary. Must be between 1 and 100. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - // +kubebuilder:validation:Optional - responseCard?: null | string @go(ResponseCard,*string) - - // If you know a specific pattern with which users might respond to - // an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This - // is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length. - // +kubebuilder:validation:Optional - sampleUtterances?: [...null | string] @go(SampleUtterances,[]*string) - - // Specifies whether the slot is required or optional. - // +kubebuilder:validation:Optional - slotConstraint?: null | string @go(SlotConstraint,*string) - - // The type of the slot, either a custom slot type that you defined or one of - // the built-in slot types. Must be less than or equal to 100 characters in length. - // +kubebuilder:validation:Optional - slotType?: null | string @go(SlotType,*string) - - // The version of the slot type. Must be less than or equal to 64 characters in length. - // +kubebuilder:validation:Optional - slotTypeVersion?: null | string @go(SlotTypeVersion,*string) - - // The prompt that Amazon Lex uses to elicit the slot value - // from the user. Attributes are documented under prompt. - // +kubebuilder:validation:Optional - valueElicitationPrompt?: [...#ValueElicitationPromptParameters] @go(ValueElicitationPrompt,[]ValueElicitationPromptParameters) -} - -#ValueElicitationPromptInitParameters: { - // The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). - maxAttempts?: null | float64 @go(MaxAttempts,*float64) - - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - message?: [...#ValueElicitationPromptMessageInitParameters] @go(Message,[]ValueElicitationPromptMessageInitParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) -} - -#ValueElicitationPromptMessageInitParameters: { - // The text of the message. Must be less than or equal to 1000 characters in length. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#ValueElicitationPromptMessageObservation: { - // The text of the message. Must be less than or equal to 1000 characters in length. - content?: null | string @go(Content,*string) - - // The content type of the message string. - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#ValueElicitationPromptMessageParameters: { - // The text of the message. Must be less than or equal to 1000 characters in length. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // The content type of the message string. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Identifies the message group that the message belongs to. When a group - // is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). - // +kubebuilder:validation:Optional - groupNumber?: null | float64 @go(GroupNumber,*float64) -} - -#ValueElicitationPromptObservation: { - // The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). - maxAttempts?: null | float64 @go(MaxAttempts,*float64) - - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - message?: [...#ValueElicitationPromptMessageObservation] @go(Message,[]ValueElicitationPromptMessageObservation) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - responseCard?: null | string @go(ResponseCard,*string) -} - -#ValueElicitationPromptParameters: { - // The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). - // +kubebuilder:validation:Optional - maxAttempts?: null | float64 @go(MaxAttempts,*float64) - - // A set of messages, each of which provides a message string and its type. - // You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). - // Attributes are documented under message. Must contain between 1 and 15 messages. - // +kubebuilder:validation:Optional - message: [...#ValueElicitationPromptMessageParameters] @go(Message,[]ValueElicitationPromptMessageParameters) - - // The response card. Amazon Lex will substitute session attributes and - // slot values into the response card. For more information, see - // Example: Using a Response Card. Must be less than or equal to 50000 characters in length. - // +kubebuilder:validation:Optional - responseCard?: null | string @go(ResponseCard,*string) -} - -// IntentSpec defines the desired state of Intent -#IntentSpec: { - v1.#ResourceSpec - forProvider: #IntentParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IntentInitParameters_2 @go(InitProvider) -} - -// IntentStatus defines the observed state of Intent. -#IntentStatus: { - v1.#ResourceStatus - atProvider?: #IntentObservation_2 @go(AtProvider) -} - -// Intent is the Schema for the Intents API. Provides an Amazon Lex intent resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Intent: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.fulfillmentActivity) || (has(self.initProvider) && has(self.initProvider.fulfillmentActivity))",message="spec.forProvider.fulfillmentActivity is a required parameter" - spec: #IntentSpec @go(Spec) - status?: #IntentStatus @go(Status) -} - -// IntentList contains a list of Intents -#IntentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Intent] @go(Items,[]Intent) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_slottype_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_slottype_types_go_gen.cue deleted file mode 100644 index ecf8120..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lexmodels/v1beta1/zz_slottype_types_go_gen.cue +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lexmodels/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EnumerationValueInitParameters: { - // Additional values related to the slot type value. Each item must be less than or equal to 140 characters in length. - synonyms?: [...null | string] @go(Synonyms,[]*string) - - // The value of the slot type. Must be less than or equal to 140 characters in length. - value?: null | string @go(Value,*string) -} - -#EnumerationValueObservation: { - // Additional values related to the slot type value. Each item must be less than or equal to 140 characters in length. - synonyms?: [...null | string] @go(Synonyms,[]*string) - - // The value of the slot type. Must be less than or equal to 140 characters in length. - value?: null | string @go(Value,*string) -} - -#EnumerationValueParameters: { - // Additional values related to the slot type value. Each item must be less than or equal to 140 characters in length. - // +kubebuilder:validation:Optional - synonyms?: [...null | string] @go(Synonyms,[]*string) - - // The value of the slot type. Must be less than or equal to 140 characters in length. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#SlotTypeInitParameters: { - // Determines if a new slot type version is created when the initial resource is created and on each - // update. Defaults to false. - createVersion?: null | bool @go(CreateVersion,*bool) - - // A description of the slot type. Must be less than or equal to 200 characters in length. - description?: null | string @go(Description,*string) - - // A list of EnumerationValue objects that defines the values that - // the slot type can take. Each value can have a list of synonyms, which are additional values that help - // train the machine learning model about the values that it resolves for a slot. Attributes are - // documented under enumeration_value. - enumerationValue?: [...#EnumerationValueInitParameters] @go(EnumerationValue,[]EnumerationValueInitParameters) - - // Determines the slot resolution strategy that Amazon Lex - // uses to return slot type values. ORIGINAL_VALUE returns the value entered by the user if the user - // value is similar to the slot value. TOP_RESOLUTION returns the first value in the resolution list - // if there is a resolution list for the slot, otherwise null is returned. Defaults to ORIGINAL_VALUE. - valueSelectionStrategy?: null | string @go(ValueSelectionStrategy,*string) -} - -#SlotTypeObservation: { - // Checksum identifying the version of the slot type that was created. The checksum is - // not included as an argument because the resource will add it automatically when updating the slot type. - checksum?: null | string @go(Checksum,*string) - - // Determines if a new slot type version is created when the initial resource is created and on each - // update. Defaults to false. - createVersion?: null | bool @go(CreateVersion,*bool) - - // The date when the slot type version was created. - createdDate?: null | string @go(CreatedDate,*string) - - // A description of the slot type. Must be less than or equal to 200 characters in length. - description?: null | string @go(Description,*string) - - // A list of EnumerationValue objects that defines the values that - // the slot type can take. Each value can have a list of synonyms, which are additional values that help - // train the machine learning model about the values that it resolves for a slot. Attributes are - // documented under enumeration_value. - enumerationValue?: [...#EnumerationValueObservation] @go(EnumerationValue,[]EnumerationValueObservation) - id?: null | string @go(ID,*string) - - // The date when the $LATEST version of this slot type was updated. - lastUpdatedDate?: null | string @go(LastUpdatedDate,*string) - - // Determines the slot resolution strategy that Amazon Lex - // uses to return slot type values. ORIGINAL_VALUE returns the value entered by the user if the user - // value is similar to the slot value. TOP_RESOLUTION returns the first value in the resolution list - // if there is a resolution list for the slot, otherwise null is returned. Defaults to ORIGINAL_VALUE. - valueSelectionStrategy?: null | string @go(ValueSelectionStrategy,*string) - - // The version of the slot type. - version?: null | string @go(Version,*string) -} - -#SlotTypeParameters: { - // Determines if a new slot type version is created when the initial resource is created and on each - // update. Defaults to false. - // +kubebuilder:validation:Optional - createVersion?: null | bool @go(CreateVersion,*bool) - - // A description of the slot type. Must be less than or equal to 200 characters in length. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A list of EnumerationValue objects that defines the values that - // the slot type can take. Each value can have a list of synonyms, which are additional values that help - // train the machine learning model about the values that it resolves for a slot. Attributes are - // documented under enumeration_value. - // +kubebuilder:validation:Optional - enumerationValue?: [...#EnumerationValueParameters] @go(EnumerationValue,[]EnumerationValueParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Determines the slot resolution strategy that Amazon Lex - // uses to return slot type values. ORIGINAL_VALUE returns the value entered by the user if the user - // value is similar to the slot value. TOP_RESOLUTION returns the first value in the resolution list - // if there is a resolution list for the slot, otherwise null is returned. Defaults to ORIGINAL_VALUE. - // +kubebuilder:validation:Optional - valueSelectionStrategy?: null | string @go(ValueSelectionStrategy,*string) -} - -// SlotTypeSpec defines the desired state of SlotType -#SlotTypeSpec: { - v1.#ResourceSpec - forProvider: #SlotTypeParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SlotTypeInitParameters @go(InitProvider) -} - -// SlotTypeStatus defines the observed state of SlotType. -#SlotTypeStatus: { - v1.#ResourceStatus - atProvider?: #SlotTypeObservation @go(AtProvider) -} - -// SlotType is the Schema for the SlotTypes API. Provides details about a specific Amazon Lex Slot Type -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SlotType: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.enumerationValue) || (has(self.initProvider) && has(self.initProvider.enumerationValue))",message="spec.forProvider.enumerationValue is a required parameter" - spec: #SlotTypeSpec @go(Spec) - status?: #SlotTypeStatus @go(Status) -} - -// SlotTypeList contains a list of SlotTypes -#SlotTypeList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SlotType] @go(Items,[]SlotType) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/licensemanager/v1beta1/zz_association_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/licensemanager/v1beta1/zz_association_types_go_gen.cue deleted file mode 100644 index 25b523b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/licensemanager/v1beta1/zz_association_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/licensemanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AssociationInitParameters: { -} - -#AssociationObservation: { - // The license configuration ARN. - id?: null | string @go(ID,*string) - - // ARN of the license configuration. - licenseConfigurationArn?: null | string @go(LicenseConfigurationArn,*string) - - // ARN of the resource associated with the license configuration. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#AssociationParameters: { - // ARN of the license configuration. - // +crossplane:generate:reference:type=LicenseConfiguration - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - licenseConfigurationArn?: null | string @go(LicenseConfigurationArn,*string) - - // Reference to a LicenseConfiguration to populate licenseConfigurationArn. - // +kubebuilder:validation:Optional - licenseConfigurationArnRef?: null | v1.#Reference @go(LicenseConfigurationArnRef,*v1.Reference) - - // Selector for a LicenseConfiguration to populate licenseConfigurationArn. - // +kubebuilder:validation:Optional - licenseConfigurationArnSelector?: null | v1.#Selector @go(LicenseConfigurationArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ARN of the resource associated with the license configuration. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a Instance in ec2 to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a Instance in ec2 to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) -} - -// AssociationSpec defines the desired state of Association -#AssociationSpec: { - v1.#ResourceSpec - forProvider: #AssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AssociationInitParameters @go(InitProvider) -} - -// AssociationStatus defines the observed state of Association. -#AssociationStatus: { - v1.#ResourceStatus - atProvider?: #AssociationObservation @go(AtProvider) -} - -// Association is the Schema for the Associations API. Provides a License Manager association resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Association: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AssociationSpec @go(Spec) - status?: #AssociationStatus @go(Status) -} - -// AssociationList contains a list of Associations -#AssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Association] @go(Items,[]Association) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/licensemanager/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/licensemanager/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index a10106e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/licensemanager/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/licensemanager/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=licensemanager.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "licensemanager.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/licensemanager/v1beta1/zz_licenseconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/licensemanager/v1beta1/zz_licenseconfiguration_types_go_gen.cue deleted file mode 100644 index c117f9c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/licensemanager/v1beta1/zz_licenseconfiguration_types_go_gen.cue +++ /dev/null @@ -1,151 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/licensemanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LicenseConfigurationInitParameters: { - // Description of the license configuration. - description?: null | string @go(Description,*string) - - // Number of licenses managed by the license configuration. - licenseCount?: null | float64 @go(LicenseCount,*float64) - - // Sets the number of available licenses as a hard limit. - licenseCountHardLimit?: null | bool @go(LicenseCountHardLimit,*bool) - - // Dimension to use to track license inventory. Specify either vCPU, Instance, Core or Socket. - licenseCountingType?: null | string @go(LicenseCountingType,*string) - - // Array of configured License Manager rules. - licenseRules?: [...null | string] @go(LicenseRules,[]*string) - - // Name of the license configuration. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#LicenseConfigurationObservation: { - // The license configuration ARN. - arn?: null | string @go(Arn,*string) - - // Description of the license configuration. - description?: null | string @go(Description,*string) - - // The license configuration ARN. - id?: null | string @go(ID,*string) - - // Number of licenses managed by the license configuration. - licenseCount?: null | float64 @go(LicenseCount,*float64) - - // Sets the number of available licenses as a hard limit. - licenseCountHardLimit?: null | bool @go(LicenseCountHardLimit,*bool) - - // Dimension to use to track license inventory. Specify either vCPU, Instance, Core or Socket. - licenseCountingType?: null | string @go(LicenseCountingType,*string) - - // Array of configured License Manager rules. - licenseRules?: [...null | string] @go(LicenseRules,[]*string) - - // Name of the license configuration. - name?: null | string @go(Name,*string) - - // Account ID of the owner of the license configuration. - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#LicenseConfigurationParameters: { - // Description of the license configuration. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Number of licenses managed by the license configuration. - // +kubebuilder:validation:Optional - licenseCount?: null | float64 @go(LicenseCount,*float64) - - // Sets the number of available licenses as a hard limit. - // +kubebuilder:validation:Optional - licenseCountHardLimit?: null | bool @go(LicenseCountHardLimit,*bool) - - // Dimension to use to track license inventory. Specify either vCPU, Instance, Core or Socket. - // +kubebuilder:validation:Optional - licenseCountingType?: null | string @go(LicenseCountingType,*string) - - // Array of configured License Manager rules. - // +kubebuilder:validation:Optional - licenseRules?: [...null | string] @go(LicenseRules,[]*string) - - // Name of the license configuration. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// LicenseConfigurationSpec defines the desired state of LicenseConfiguration -#LicenseConfigurationSpec: { - v1.#ResourceSpec - forProvider: #LicenseConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LicenseConfigurationInitParameters @go(InitProvider) -} - -// LicenseConfigurationStatus defines the observed state of LicenseConfiguration. -#LicenseConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #LicenseConfigurationObservation @go(AtProvider) -} - -// LicenseConfiguration is the Schema for the LicenseConfigurations API. Provides a License Manager license configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LicenseConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.licenseCountingType) || (has(self.initProvider) && has(self.initProvider.licenseCountingType))",message="spec.forProvider.licenseCountingType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #LicenseConfigurationSpec @go(Spec) - status?: #LicenseConfigurationStatus @go(Status) -} - -// LicenseConfigurationList contains a list of LicenseConfigurations -#LicenseConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LicenseConfiguration] @go(Items,[]LicenseConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_bucket_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_bucket_types_go_gen.cue deleted file mode 100644 index d3d2dc3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_bucket_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketInitParameters: { - // - The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the get-bucket-bundles cli command to get a list of bundle IDs that you can specify. - bundleId?: null | string @go(BundleID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BucketObservation: { - // The ARN of the lightsail bucket. - arn?: null | string @go(Arn,*string) - - // The resource Availability Zone. Follows the format us-east-2a (case-sensitive). - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // - The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the get-bucket-bundles cli command to get a list of bundle IDs that you can specify. - bundleId?: null | string @go(BundleID,*string) - - // The timestamp when the bucket was created. - createdAt?: null | string @go(CreatedAt,*string) - - // The name used for this bucket (matches name). - id?: null | string @go(ID,*string) - - // The support code for the resource. Include this code in your email to support when you have questions about a resource in Lightsail. This code enables our support team to look up your Lightsail information more easily. - supportCode?: null | string @go(SupportCode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - url?: null | string @go(URL,*string) -} - -#BucketParameters: { - // - The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the get-bucket-bundles cli command to get a list of bundle IDs that you can specify. - // +kubebuilder:validation:Optional - bundleId?: null | string @go(BundleID,*string) - - // The Amazon Web Services Region name. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// BucketSpec defines the desired state of Bucket -#BucketSpec: { - v1.#ResourceSpec - forProvider: #BucketParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketInitParameters @go(InitProvider) -} - -// BucketStatus defines the observed state of Bucket. -#BucketStatus: { - v1.#ResourceStatus - atProvider?: #BucketObservation @go(AtProvider) -} - -// Bucket is the Schema for the Buckets API. Provides a lightsail bucket -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Bucket: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bundleId) || (has(self.initProvider) && has(self.initProvider.bundleId))",message="spec.forProvider.bundleId is a required parameter" - spec: #BucketSpec @go(Spec) - status?: #BucketStatus @go(Status) -} - -// BucketList contains a list of Buckets -#BucketList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Bucket] @go(Items,[]Bucket) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_certificate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_certificate_types_go_gen.cue deleted file mode 100644 index bda5314..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_certificate_types_go_gen.cue +++ /dev/null @@ -1,127 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CertificateInitParameters: { - // A domain name for which the certificate should be issued. - domainName?: null | string @go(DomainName,*string) - - // Set of domains that should be SANs in the issued certificate. domain_name attribute is automatically added as a Subject Alternative Name. - subjectAlternativeNames?: [...null | string] @go(SubjectAlternativeNames,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CertificateObservation: { - // The ARN of the lightsail certificate. - arn?: null | string @go(Arn,*string) - - // The timestamp when the instance was created. - createdAt?: null | string @go(CreatedAt,*string) - - // A domain name for which the certificate should be issued. - domainName?: null | string @go(DomainName,*string) - - // Set of domain validation objects which can be used to complete certificate validation. Can have more than one element, e.g., if SANs are defined. - domainValidationOptions?: [...#DomainValidationOptionsObservation] @go(DomainValidationOptions,[]DomainValidationOptionsObservation) - - // The name of the lightsail certificate (matches name). - id?: null | string @go(ID,*string) - - // Set of domains that should be SANs in the issued certificate. domain_name attribute is automatically added as a Subject Alternative Name. - subjectAlternativeNames?: [...null | string] @go(SubjectAlternativeNames,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#CertificateParameters: { - // A domain name for which the certificate should be issued. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Set of domains that should be SANs in the issued certificate. domain_name attribute is automatically added as a Subject Alternative Name. - // +kubebuilder:validation:Optional - subjectAlternativeNames?: [...null | string] @go(SubjectAlternativeNames,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DomainValidationOptionsInitParameters: { -} - -#DomainValidationOptionsObservation: { - // A domain name for which the certificate should be issued. - domainName?: null | string @go(DomainName,*string) - - // The name of the Lightsail load balancer. - resourceRecordName?: null | string @go(ResourceRecordName,*string) - resourceRecordType?: null | string @go(ResourceRecordType,*string) - resourceRecordValue?: null | string @go(ResourceRecordValue,*string) -} - -#DomainValidationOptionsParameters: { -} - -// CertificateSpec defines the desired state of Certificate -#CertificateSpec: { - v1.#ResourceSpec - forProvider: #CertificateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CertificateInitParameters @go(InitProvider) -} - -// CertificateStatus defines the observed state of Certificate. -#CertificateStatus: { - v1.#ResourceStatus - atProvider?: #CertificateObservation @go(AtProvider) -} - -// Certificate is the Schema for the Certificates API. Provides a lightsail certificate -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Certificate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CertificateSpec @go(Spec) - status?: #CertificateStatus @go(Status) -} - -// CertificateList contains a list of Certificates -#CertificateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Certificate] @go(Items,[]Certificate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_containerservice_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_containerservice_types_go_gen.cue deleted file mode 100644 index e5d17c8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_containerservice_types_go_gen.cue +++ /dev/null @@ -1,260 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ContainerServiceInitParameters: { - // A Boolean value indicating whether the container service is disabled. Defaults to false. - isDisabled?: null | bool @go(IsDisabled,*bool) - - // The power specification for the container service. The power specifies the amount of memory, - // the number of vCPUs, and the monthly price of each node of the container service. - // Possible values: nano, micro, small, medium, large, xlarge. - power?: null | string @go(Power,*string) - - // An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See Private Registry Access below for more details. - privateRegistryAccess?: [...#PrivateRegistryAccessInitParameters] @go(PrivateRegistryAccess,[]PrivateRegistryAccessInitParameters) - - // The public domain names to use with the container service, such as example.com - // and www.example.com. You can specify up to four public domain names for a container service. The domain names that you - // specify are used when you create a deployment with a container configured as the public endpoint of your container - // service. If you don't specify public domain names, then you can use the default domain of the container service. - // Defined below. - publicDomainNames?: [...#PublicDomainNamesInitParameters] @go(PublicDomainNames,[]PublicDomainNamesInitParameters) - - // The scale specification for the container service. The scale specifies the allocated compute - // nodes of the container service. - scale?: null | float64 @go(Scale,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ContainerServiceObservation: { - // The Amazon Resource Name (ARN) of the container service. - arn?: null | string @go(Arn,*string) - - // The Availability Zone. Follows the format us-east-2a (case-sensitive). - availabilityZone?: null | string @go(AvailabilityZone,*string) - createdAt?: null | string @go(CreatedAt,*string) - - // Same as name. - id?: null | string @go(ID,*string) - - // A Boolean value indicating whether the container service is disabled. Defaults to false. - isDisabled?: null | bool @go(IsDisabled,*bool) - - // The power specification for the container service. The power specifies the amount of memory, - // the number of vCPUs, and the monthly price of each node of the container service. - // Possible values: nano, micro, small, medium, large, xlarge. - power?: null | string @go(Power,*string) - - // The ID of the power of the container service. - powerId?: null | string @go(PowerID,*string) - - // The principal ARN of the container service. The principal ARN can be used to create a trust - // relationship between your standard AWS account and your Lightsail container service. This allows you to give your - // service permission to access resources in your standard AWS account. - principalArn?: null | string @go(PrincipalArn,*string) - - // The private domain name of the container service. The private domain name is accessible only - // by other resources within the default virtual private cloud (VPC) of your Lightsail account. - privateDomainName?: null | string @go(PrivateDomainName,*string) - - // An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See Private Registry Access below for more details. - privateRegistryAccess?: [...#PrivateRegistryAccessObservation] @go(PrivateRegistryAccess,[]PrivateRegistryAccessObservation) - - // The public domain names to use with the container service, such as example.com - // and www.example.com. You can specify up to four public domain names for a container service. The domain names that you - // specify are used when you create a deployment with a container configured as the public endpoint of your container - // service. If you don't specify public domain names, then you can use the default domain of the container service. - // Defined below. - publicDomainNames?: [...#PublicDomainNamesObservation] @go(PublicDomainNames,[]PublicDomainNamesObservation) - - // The Lightsail resource type of the container service (i.e., ContainerService). - resourceType?: null | string @go(ResourceType,*string) - - // The scale specification for the container service. The scale specifies the allocated compute - // nodes of the container service. - scale?: null | float64 @go(Scale,*float64) - - // The current state of the container service. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider - // default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The publicly accessible URL of the container service. If no public endpoint is specified in the - // currentDeployment, this URL returns a 404 response. - url?: null | string @go(URL,*string) -} - -#ContainerServiceParameters: { - // A Boolean value indicating whether the container service is disabled. Defaults to false. - // +kubebuilder:validation:Optional - isDisabled?: null | bool @go(IsDisabled,*bool) - - // The power specification for the container service. The power specifies the amount of memory, - // the number of vCPUs, and the monthly price of each node of the container service. - // Possible values: nano, micro, small, medium, large, xlarge. - // +kubebuilder:validation:Optional - power?: null | string @go(Power,*string) - - // An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See Private Registry Access below for more details. - // +kubebuilder:validation:Optional - privateRegistryAccess?: [...#PrivateRegistryAccessParameters] @go(PrivateRegistryAccess,[]PrivateRegistryAccessParameters) - - // The public domain names to use with the container service, such as example.com - // and www.example.com. You can specify up to four public domain names for a container service. The domain names that you - // specify are used when you create a deployment with a container configured as the public endpoint of your container - // service. If you don't specify public domain names, then you can use the default domain of the container service. - // Defined below. - // +kubebuilder:validation:Optional - publicDomainNames?: [...#PublicDomainNamesParameters] @go(PublicDomainNames,[]PublicDomainNamesParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The scale specification for the container service. The scale specifies the allocated compute - // nodes of the container service. - // +kubebuilder:validation:Optional - scale?: null | float64 @go(Scale,*float64) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EcrImagePullerRoleInitParameters: { - // A Boolean value that indicates whether to activate the role. The default is false. - isActive?: null | bool @go(IsActive,*bool) -} - -#EcrImagePullerRoleObservation: { - // A Boolean value that indicates whether to activate the role. The default is false. - isActive?: null | bool @go(IsActive,*bool) - - // The principal ARN of the container service. The principal ARN can be used to create a trust - // relationship between your standard AWS account and your Lightsail container service. This allows you to give your - // service permission to access resources in your standard AWS account. - principalArn?: null | string @go(PrincipalArn,*string) -} - -#EcrImagePullerRoleParameters: { - // A Boolean value that indicates whether to activate the role. The default is false. - // +kubebuilder:validation:Optional - isActive?: null | bool @go(IsActive,*bool) -} - -#PrivateRegistryAccessInitParameters: { - // Describes a request to configure an Amazon Lightsail container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See ECR Image Puller Role below for more details. - ecrImagePullerRole?: [...#EcrImagePullerRoleInitParameters] @go(EcrImagePullerRole,[]EcrImagePullerRoleInitParameters) -} - -#PrivateRegistryAccessObservation: { - // Describes a request to configure an Amazon Lightsail container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See ECR Image Puller Role below for more details. - ecrImagePullerRole?: [...#EcrImagePullerRoleObservation] @go(EcrImagePullerRole,[]EcrImagePullerRoleObservation) -} - -#PrivateRegistryAccessParameters: { - // Describes a request to configure an Amazon Lightsail container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories. See ECR Image Puller Role below for more details. - // +kubebuilder:validation:Optional - ecrImagePullerRole?: [...#EcrImagePullerRoleParameters] @go(EcrImagePullerRole,[]EcrImagePullerRoleParameters) -} - -#PublicDomainNamesCertificateInitParameters: { - // The name for the container service. Names must be of length 1 to 63, and be - // unique within each AWS Region in your Lightsail account. - certificateName?: null | string @go(CertificateName,*string) - domainNames?: [...null | string] @go(DomainNames,[]*string) -} - -#PublicDomainNamesCertificateObservation: { - // The name for the container service. Names must be of length 1 to 63, and be - // unique within each AWS Region in your Lightsail account. - certificateName?: null | string @go(CertificateName,*string) - domainNames?: [...null | string] @go(DomainNames,[]*string) -} - -#PublicDomainNamesCertificateParameters: { - // The name for the container service. Names must be of length 1 to 63, and be - // unique within each AWS Region in your Lightsail account. - // +kubebuilder:validation:Optional - certificateName?: null | string @go(CertificateName,*string) - - // +kubebuilder:validation:Optional - domainNames: [...null | string] @go(DomainNames,[]*string) -} - -#PublicDomainNamesInitParameters: { - certificate?: [...#PublicDomainNamesCertificateInitParameters] @go(Certificate,[]PublicDomainNamesCertificateInitParameters) -} - -#PublicDomainNamesObservation: { - certificate?: [...#PublicDomainNamesCertificateObservation] @go(Certificate,[]PublicDomainNamesCertificateObservation) -} - -#PublicDomainNamesParameters: { - // +kubebuilder:validation:Optional - certificate: [...#PublicDomainNamesCertificateParameters] @go(Certificate,[]PublicDomainNamesCertificateParameters) -} - -// ContainerServiceSpec defines the desired state of ContainerService -#ContainerServiceSpec: { - v1.#ResourceSpec - forProvider: #ContainerServiceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ContainerServiceInitParameters @go(InitProvider) -} - -// ContainerServiceStatus defines the observed state of ContainerService. -#ContainerServiceStatus: { - v1.#ResourceStatus - atProvider?: #ContainerServiceObservation @go(AtProvider) -} - -// ContainerService is the Schema for the ContainerServices API. Provides a resource to manage Lightsail container service -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ContainerService: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.power) || (has(self.initProvider) && has(self.initProvider.power))",message="spec.forProvider.power is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scale) || (has(self.initProvider) && has(self.initProvider.scale))",message="spec.forProvider.scale is a required parameter" - spec: #ContainerServiceSpec @go(Spec) - status?: #ContainerServiceStatus @go(Status) -} - -// ContainerServiceList contains a list of ContainerServices -#ContainerServiceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ContainerService] @go(Items,[]ContainerService) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_disk_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_disk_types_go_gen.cue deleted file mode 100644 index 7881ec7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_disk_types_go_gen.cue +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DiskInitParameters: { - // The Availability Zone in which to create your disk. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The instance port the load balancer will connect. - sizeInGb?: null | float64 @go(SizeInGb,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DiskObservation: { - // The ARN of the Lightsail load balancer. - arn?: null | string @go(Arn,*string) - - // The Availability Zone in which to create your disk. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The timestamp when the load balancer was created. - createdAt?: null | string @go(CreatedAt,*string) - - // The name of the disk (matches name). - id?: null | string @go(ID,*string) - - // The instance port the load balancer will connect. - sizeInGb?: null | float64 @go(SizeInGb,*float64) - - // The support code for the disk. Include this code in your email to support when you have questions about a disk in Lightsail. This code enables our support team to look up your Lightsail information more easily. - supportCode?: null | string @go(SupportCode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DiskParameters: { - // The Availability Zone in which to create your disk. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The instance port the load balancer will connect. - // +kubebuilder:validation:Optional - sizeInGb?: null | float64 @go(SizeInGb,*float64) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// DiskSpec defines the desired state of Disk -#DiskSpec: { - v1.#ResourceSpec - forProvider: #DiskParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DiskInitParameters @go(InitProvider) -} - -// DiskStatus defines the observed state of Disk. -#DiskStatus: { - v1.#ResourceStatus - atProvider?: #DiskObservation @go(AtProvider) -} - -// Disk is the Schema for the Disks API. Provides a Lightsail Disk resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Disk: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.availabilityZone) || (has(self.initProvider) && has(self.initProvider.availabilityZone))",message="spec.forProvider.availabilityZone is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sizeInGb) || (has(self.initProvider) && has(self.initProvider.sizeInGb))",message="spec.forProvider.sizeInGb is a required parameter" - spec: #DiskSpec @go(Spec) - status?: #DiskStatus @go(Status) -} - -// DiskList contains a list of Disks -#DiskList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Disk] @go(Items,[]Disk) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_diskattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_diskattachment_types_go_gen.cue deleted file mode 100644 index 33406e9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_diskattachment_types_go_gen.cue +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DiskAttachmentInitParameters: { - // The disk path to expose to the instance. - diskPath?: null | string @go(DiskPath,*string) -} - -#DiskAttachmentObservation: { - // The name of the Lightsail Disk. - diskName?: null | string @go(DiskName,*string) - - // The disk path to expose to the instance. - diskPath?: null | string @go(DiskPath,*string) - - // A combination of attributes to create a unique id: disk_name,instance_name - id?: null | string @go(ID,*string) - - // The name of the Lightsail Instance to attach to. - instanceName?: null | string @go(InstanceName,*string) -} - -#DiskAttachmentParameters: { - // The name of the Lightsail Disk. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lightsail/v1beta1.Disk - // +kubebuilder:validation:Optional - diskName?: null | string @go(DiskName,*string) - - // Reference to a Disk in lightsail to populate diskName. - // +kubebuilder:validation:Optional - diskNameRef?: null | v1.#Reference @go(DiskNameRef,*v1.Reference) - - // Selector for a Disk in lightsail to populate diskName. - // +kubebuilder:validation:Optional - diskNameSelector?: null | v1.#Selector @go(DiskNameSelector,*v1.Selector) - - // The disk path to expose to the instance. - // +kubebuilder:validation:Optional - diskPath?: null | string @go(DiskPath,*string) - - // The name of the Lightsail Instance to attach to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lightsail/v1beta1.Instance - // +kubebuilder:validation:Optional - instanceName?: null | string @go(InstanceName,*string) - - // Reference to a Instance in lightsail to populate instanceName. - // +kubebuilder:validation:Optional - instanceNameRef?: null | v1.#Reference @go(InstanceNameRef,*v1.Reference) - - // Selector for a Instance in lightsail to populate instanceName. - // +kubebuilder:validation:Optional - instanceNameSelector?: null | v1.#Selector @go(InstanceNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DiskAttachmentSpec defines the desired state of DiskAttachment -#DiskAttachmentSpec: { - v1.#ResourceSpec - forProvider: #DiskAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DiskAttachmentInitParameters @go(InitProvider) -} - -// DiskAttachmentStatus defines the observed state of DiskAttachment. -#DiskAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #DiskAttachmentObservation @go(AtProvider) -} - -// DiskAttachment is the Schema for the DiskAttachments API. Attaches a Lightsail disk to a Lightsail Instance -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DiskAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.diskPath) || (has(self.initProvider) && has(self.initProvider.diskPath))",message="spec.forProvider.diskPath is a required parameter" - spec: #DiskAttachmentSpec @go(Spec) - status?: #DiskAttachmentStatus @go(Status) -} - -// DiskAttachmentList contains a list of DiskAttachments -#DiskAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DiskAttachment] @go(Items,[]DiskAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_domain_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_domain_types_go_gen.cue deleted file mode 100644 index f291493..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_domain_types_go_gen.cue +++ /dev/null @@ -1,84 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainInitParameters: { - // The name of the Lightsail domain to manage - domainName?: null | string @go(DomainName,*string) -} - -#DomainObservation: { - // The ARN of the Lightsail domain - arn?: null | string @go(Arn,*string) - - // The name of the Lightsail domain to manage - domainName?: null | string @go(DomainName,*string) - - // The name used for this domain - id?: null | string @go(ID,*string) -} - -#DomainParameters: { - // The name of the Lightsail domain to manage - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DomainSpec defines the desired state of Domain -#DomainSpec: { - v1.#ResourceSpec - forProvider: #DomainParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainInitParameters @go(InitProvider) -} - -// DomainStatus defines the observed state of Domain. -#DomainStatus: { - v1.#ResourceStatus - atProvider?: #DomainObservation @go(AtProvider) -} - -// Domain is the Schema for the Domains API. Provides an Lightsail Domain -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Domain: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.domainName) || (has(self.initProvider) && has(self.initProvider.domainName))",message="spec.forProvider.domainName is a required parameter" - spec: #DomainSpec @go(Spec) - status?: #DomainStatus @go(Status) -} - -// DomainList contains a list of Domains -#DomainList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Domain] @go(Items,[]Domain) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_domainentry_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_domainentry_types_go_gen.cue deleted file mode 100644 index 7be859a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_domainentry_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainEntryInitParameters: { - // If the entry should be an alias Defaults to false - isAlias?: null | bool @go(IsAlias,*bool) - - // Target of the domain entry - target?: null | string @go(Target,*string) -} - -#DomainEntryObservation: { - // The name of the Lightsail domain in which to create the entry - domainName?: null | string @go(DomainName,*string) - - // A combination of attributes to create a unique id: name,domain_name,type,target - id?: null | string @go(ID,*string) - - // If the entry should be an alias Defaults to false - isAlias?: null | bool @go(IsAlias,*bool) - - // Target of the domain entry - target?: null | string @go(Target,*string) - - // Type of record - type?: null | string @go(Type,*string) -} - -#DomainEntryParameters: { - // The name of the Lightsail domain in which to create the entry - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lightsail/v1beta1.Domain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("domain_name",false) - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Reference to a Domain in lightsail to populate domainName. - // +kubebuilder:validation:Optional - domainNameRef?: null | v1.#Reference @go(DomainNameRef,*v1.Reference) - - // Selector for a Domain in lightsail to populate domainName. - // +kubebuilder:validation:Optional - domainNameSelector?: null | v1.#Selector @go(DomainNameSelector,*v1.Selector) - - // If the entry should be an alias Defaults to false - // +kubebuilder:validation:Optional - isAlias?: null | bool @go(IsAlias,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Target of the domain entry - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) - - // Type of record - // +kubebuilder:validation:Required - type?: null | string @go(Type,*string) -} - -// DomainEntrySpec defines the desired state of DomainEntry -#DomainEntrySpec: { - v1.#ResourceSpec - forProvider: #DomainEntryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainEntryInitParameters @go(InitProvider) -} - -// DomainEntryStatus defines the observed state of DomainEntry. -#DomainEntryStatus: { - v1.#ResourceStatus - atProvider?: #DomainEntryObservation @go(AtProvider) -} - -// DomainEntry is the Schema for the DomainEntrys API. Provides an Lightsail Domain Entry -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DomainEntry: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.target) || (has(self.initProvider) && has(self.initProvider.target))",message="spec.forProvider.target is a required parameter" - spec: #DomainEntrySpec @go(Spec) - status?: #DomainEntryStatus @go(Status) -} - -// DomainEntryList contains a list of DomainEntrys -#DomainEntryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DomainEntry] @go(Items,[]DomainEntry) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 95e09c2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=lightsail.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "lightsail.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_instance_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_instance_types_go_gen.cue deleted file mode 100644 index e512210..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_instance_types_go_gen.cue +++ /dev/null @@ -1,228 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AddOnInitParameters: { - // The daily time when an automatic snapshot will be created. Must be in HH:00 format, and in an hourly increment and specified in Coordinated Universal Time (UTC). The snapshot will be automatically created between the time specified and up to 45 minutes after. - snapshotTime?: null | string @go(SnapshotTime,*string) - - // The status of the add on. Valid Values: Enabled, Disabled. - status?: null | string @go(Status,*string) - - // The add-on type. There is currently only one valid type AutoSnapshot. - type?: null | string @go(Type,*string) -} - -#AddOnObservation: { - // The daily time when an automatic snapshot will be created. Must be in HH:00 format, and in an hourly increment and specified in Coordinated Universal Time (UTC). The snapshot will be automatically created between the time specified and up to 45 minutes after. - snapshotTime?: null | string @go(SnapshotTime,*string) - - // The status of the add on. Valid Values: Enabled, Disabled. - status?: null | string @go(Status,*string) - - // The add-on type. There is currently only one valid type AutoSnapshot. - type?: null | string @go(Type,*string) -} - -#AddOnParameters: { - // The daily time when an automatic snapshot will be created. Must be in HH:00 format, and in an hourly increment and specified in Coordinated Universal Time (UTC). The snapshot will be automatically created between the time specified and up to 45 minutes after. - // +kubebuilder:validation:Optional - snapshotTime?: null | string @go(SnapshotTime,*string) - - // The status of the add on. Valid Values: Enabled, Disabled. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // The add-on type. There is currently only one valid type AutoSnapshot. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#InstanceInitParameters: { - // The add on configuration for the instance. Detailed below. - addOn?: [...#AddOnInitParameters] @go(AddOn,[]AddOnInitParameters) - - // The Availability Zone in which to create your - // instance (see list below) - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: aws lightsail get-blueprints - blueprintId?: null | string @go(BlueprintID,*string) - - // The bundle of specification information (see list below) - bundleId?: null | string @go(BundleID,*string) - - // The IP address type of the Lightsail Instance. Valid Values: dualstack | ipv4. - ipAddressType?: null | string @go(IPAddressType,*string) - - // The name of your key pair. Created in the - // Lightsail console (cannot use aws_key_pair at this time) - keyPairName?: null | string @go(KeyPairName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Single lined launch script as a string to configure server with additional user data - userData?: null | string @go(UserData,*string) -} - -#InstanceObservation: { - // The add on configuration for the instance. Detailed below. - addOn?: [...#AddOnObservation] @go(AddOn,[]AddOnObservation) - - // The ARN of the Lightsail instance (matches id). - arn?: null | string @go(Arn,*string) - - // The Availability Zone in which to create your - // instance (see list below) - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: aws lightsail get-blueprints - blueprintId?: null | string @go(BlueprintID,*string) - - // The bundle of specification information (see list below) - bundleId?: null | string @go(BundleID,*string) - - // The number of vCPUs the instance has. - cpuCount?: null | float64 @go(CPUCount,*float64) - - // The timestamp when the instance was created. - createdAt?: null | string @go(CreatedAt,*string) - - // The ARN of the Lightsail instance (matches arn). - id?: null | string @go(ID,*string) - - // The IP address type of the Lightsail Instance. Valid Values: dualstack | ipv4. - ipAddressType?: null | string @go(IPAddressType,*string) - - // (Deprecated) The first IPv6 address of the Lightsail instance. Use ipv6_addresses attribute instead. - ipv6Address?: null | string @go(IPv6Address,*string) - - // List of IPv6 addresses for the Lightsail instance. - ipv6Addresses?: [...null | string] @go(IPv6Addresses,[]*string) - - // A Boolean value indicating whether this instance has a static IP assigned to it. - isStaticIp?: null | bool @go(IsStaticIP,*bool) - - // The name of your key pair. Created in the - // Lightsail console (cannot use aws_key_pair at this time) - keyPairName?: null | string @go(KeyPairName,*string) - - // The private IP address of the instance. - privateIpAddress?: null | string @go(PrivateIPAddress,*string) - - // The public IP address of the instance. - publicIpAddress?: null | string @go(PublicIPAddress,*string) - - // The amount of RAM in GB on the instance (e.g., 1.0). - ramSize?: null | float64 @go(RAMSize,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Single lined launch script as a string to configure server with additional user data - userData?: null | string @go(UserData,*string) - - // The user name for connecting to the instance (e.g., ec2-user). - username?: null | string @go(Username,*string) -} - -#InstanceParameters: { - // The add on configuration for the instance. Detailed below. - // +kubebuilder:validation:Optional - addOn?: [...#AddOnParameters] @go(AddOn,[]AddOnParameters) - - // The Availability Zone in which to create your - // instance (see list below) - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: aws lightsail get-blueprints - // +kubebuilder:validation:Optional - blueprintId?: null | string @go(BlueprintID,*string) - - // The bundle of specification information (see list below) - // +kubebuilder:validation:Optional - bundleId?: null | string @go(BundleID,*string) - - // The IP address type of the Lightsail Instance. Valid Values: dualstack | ipv4. - // +kubebuilder:validation:Optional - ipAddressType?: null | string @go(IPAddressType,*string) - - // The name of your key pair. Created in the - // Lightsail console (cannot use aws_key_pair at this time) - // +kubebuilder:validation:Optional - keyPairName?: null | string @go(KeyPairName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Single lined launch script as a string to configure server with additional user data - // +kubebuilder:validation:Optional - userData?: null | string @go(UserData,*string) -} - -// InstanceSpec defines the desired state of Instance -#InstanceSpec: { - v1.#ResourceSpec - forProvider: #InstanceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InstanceInitParameters @go(InitProvider) -} - -// InstanceStatus defines the observed state of Instance. -#InstanceStatus: { - v1.#ResourceStatus - atProvider?: #InstanceObservation @go(AtProvider) -} - -// Instance is the Schema for the Instances API. Provides an Lightsail Instance -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Instance: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.availabilityZone) || (has(self.initProvider) && has(self.initProvider.availabilityZone))",message="spec.forProvider.availabilityZone is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.blueprintId) || (has(self.initProvider) && has(self.initProvider.blueprintId))",message="spec.forProvider.blueprintId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bundleId) || (has(self.initProvider) && has(self.initProvider.bundleId))",message="spec.forProvider.bundleId is a required parameter" - spec: #InstanceSpec @go(Spec) - status?: #InstanceStatus @go(Status) -} - -// InstanceList contains a list of Instances -#InstanceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Instance] @go(Items,[]Instance) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_instancepublicports_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_instancepublicports_types_go_gen.cue deleted file mode 100644 index 7f6b327..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_instancepublicports_types_go_gen.cue +++ /dev/null @@ -1,158 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InstancePublicPortsInitParameters: { - // Configuration block with port information. AWS closes all currently open ports that are not included in the port_info. Detailed below. - portInfo?: [...#PortInfoInitParameters] @go(PortInfo,[]PortInfoInitParameters) -} - -#InstancePublicPortsObservation: { - // ID of the resource. - id?: null | string @go(ID,*string) - - // Name of the Lightsail Instance. - instanceName?: null | string @go(InstanceName,*string) - - // Configuration block with port information. AWS closes all currently open ports that are not included in the port_info. Detailed below. - portInfo?: [...#PortInfoObservation] @go(PortInfo,[]PortInfoObservation) -} - -#InstancePublicPortsParameters: { - // Name of the Lightsail Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lightsail/v1beta1.Instance - // +kubebuilder:validation:Optional - instanceName?: null | string @go(InstanceName,*string) - - // Reference to a Instance in lightsail to populate instanceName. - // +kubebuilder:validation:Optional - instanceNameRef?: null | v1.#Reference @go(InstanceNameRef,*v1.Reference) - - // Selector for a Instance in lightsail to populate instanceName. - // +kubebuilder:validation:Optional - instanceNameSelector?: null | v1.#Selector @go(InstanceNameSelector,*v1.Selector) - - // Configuration block with port information. AWS closes all currently open ports that are not included in the port_info. Detailed below. - // +kubebuilder:validation:Optional - portInfo?: [...#PortInfoParameters] @go(PortInfo,[]PortInfoParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#PortInfoInitParameters: { - // Set of CIDR aliases that define access for a preconfigured range of IP addresses. - cidrListAliases?: [...null | string] @go(CidrListAliases,[]*string) - - // Set of CIDR blocks. - cidrs?: [...null | string] @go(Cidrs,[]*string) - - // First port in a range of open ports on an instance. - fromPort?: null | float64 @go(FromPort,*float64) - ipv6Cidrs?: [...null | string] @go(IPv6Cidrs,[]*string) - - // IP protocol name. Valid values are tcp, all, udp, and icmp. - protocol?: null | string @go(Protocol,*string) - - // Last port in a range of open ports on an instance. - toPort?: null | float64 @go(ToPort,*float64) -} - -#PortInfoObservation: { - // Set of CIDR aliases that define access for a preconfigured range of IP addresses. - cidrListAliases?: [...null | string] @go(CidrListAliases,[]*string) - - // Set of CIDR blocks. - cidrs?: [...null | string] @go(Cidrs,[]*string) - - // First port in a range of open ports on an instance. - fromPort?: null | float64 @go(FromPort,*float64) - ipv6Cidrs?: [...null | string] @go(IPv6Cidrs,[]*string) - - // IP protocol name. Valid values are tcp, all, udp, and icmp. - protocol?: null | string @go(Protocol,*string) - - // Last port in a range of open ports on an instance. - toPort?: null | float64 @go(ToPort,*float64) -} - -#PortInfoParameters: { - // Set of CIDR aliases that define access for a preconfigured range of IP addresses. - // +kubebuilder:validation:Optional - cidrListAliases?: [...null | string] @go(CidrListAliases,[]*string) - - // Set of CIDR blocks. - // +kubebuilder:validation:Optional - cidrs?: [...null | string] @go(Cidrs,[]*string) - - // First port in a range of open ports on an instance. - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // +kubebuilder:validation:Optional - ipv6Cidrs?: [...null | string] @go(IPv6Cidrs,[]*string) - - // IP protocol name. Valid values are tcp, all, udp, and icmp. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Last port in a range of open ports on an instance. - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -// InstancePublicPortsSpec defines the desired state of InstancePublicPorts -#InstancePublicPortsSpec: { - v1.#ResourceSpec - forProvider: #InstancePublicPortsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InstancePublicPortsInitParameters @go(InitProvider) -} - -// InstancePublicPortsStatus defines the observed state of InstancePublicPorts. -#InstancePublicPortsStatus: { - v1.#ResourceStatus - atProvider?: #InstancePublicPortsObservation @go(AtProvider) -} - -// InstancePublicPorts is the Schema for the InstancePublicPortss API. Provides an Lightsail Instance -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#InstancePublicPorts: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.portInfo) || (has(self.initProvider) && has(self.initProvider.portInfo))",message="spec.forProvider.portInfo is a required parameter" - spec: #InstancePublicPortsSpec @go(Spec) - status?: #InstancePublicPortsStatus @go(Status) -} - -// InstancePublicPortsList contains a list of InstancePublicPortss -#InstancePublicPortsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#InstancePublicPorts] @go(Items,[]InstancePublicPorts) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_keypair_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_keypair_types_go_gen.cue deleted file mode 100644 index 6550cdb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_keypair_types_go_gen.cue +++ /dev/null @@ -1,124 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#KeyPairInitParameters: { - // The name of the Lightsail Key Pair - name?: null | string @go(Name,*string) - - // – An optional PGP key to encrypt the resulting private - // key material. Only used when creating a new key pair - pgpKey?: null | string @go(PgpKey,*string) - - // The public key material. This public key will be - // imported into Lightsail - publicKey?: null | string @go(PublicKey,*string) -} - -#KeyPairObservation: { - // The ARN of the Lightsail key pair - arn?: null | string @go(Arn,*string) - - // The MD5 public key fingerprint for the encrypted - // private key - encryptedFingerprint?: null | string @go(EncryptedFingerprint,*string) - - // – the private key material, base 64 encoded and - // encrypted with the given pgp_key. This is only populated when creating a new - // key and pgp_key is supplied - encryptedPrivateKey?: null | string @go(EncryptedPrivateKey,*string) - - // The MD5 public key fingerprint as specified in section 4 of RFC 4716. - fingerprint?: null | string @go(Fingerprint,*string) - - // The name used for this key pair - id?: null | string @go(ID,*string) - - // The name of the Lightsail Key Pair - name?: null | string @go(Name,*string) - - // – An optional PGP key to encrypt the resulting private - // key material. Only used when creating a new key pair - pgpKey?: null | string @go(PgpKey,*string) - - // the private key, base64 encoded. This is only populated - // when creating a new key, and when no pgp_key is provided - privateKey?: null | string @go(PrivateKey,*string) - - // The public key material. This public key will be - // imported into Lightsail - publicKey?: null | string @go(PublicKey,*string) -} - -#KeyPairParameters: { - // The name of the Lightsail Key Pair - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // – An optional PGP key to encrypt the resulting private - // key material. Only used when creating a new key pair - // +kubebuilder:validation:Optional - pgpKey?: null | string @go(PgpKey,*string) - - // The public key material. This public key will be - // imported into Lightsail - // +kubebuilder:validation:Optional - publicKey?: null | string @go(PublicKey,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// KeyPairSpec defines the desired state of KeyPair -#KeyPairSpec: { - v1.#ResourceSpec - forProvider: #KeyPairParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #KeyPairInitParameters @go(InitProvider) -} - -// KeyPairStatus defines the observed state of KeyPair. -#KeyPairStatus: { - v1.#ResourceStatus - atProvider?: #KeyPairObservation @go(AtProvider) -} - -// KeyPair is the Schema for the KeyPairs API. Provides an Lightsail Key Pair -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#KeyPair: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #KeyPairSpec @go(Spec) - status?: #KeyPairStatus @go(Status) -} - -// KeyPairList contains a list of KeyPairs -#KeyPairList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#KeyPair] @go(Items,[]KeyPair) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_lb_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_lb_types_go_gen.cue deleted file mode 100644 index aa3fe6c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_lb_types_go_gen.cue +++ /dev/null @@ -1,127 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LBInitParameters: { - // The health check path of the load balancer. Default value "/". - healthCheckPath?: null | string @go(HealthCheckPath,*string) - ipAddressType?: null | string @go(IPAddressType,*string) - - // The instance port the load balancer will connect. - instancePort?: null | float64 @go(InstancePort,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#LBObservation: { - // The ARN of the Lightsail load balancer. - arn?: null | string @go(Arn,*string) - - // The timestamp when the load balancer was created. - createdAt?: null | string @go(CreatedAt,*string) - - // The DNS name of the load balancer. - dnsName?: null | string @go(DNSName,*string) - - // The health check path of the load balancer. Default value "/". - healthCheckPath?: null | string @go(HealthCheckPath,*string) - - // The name used for this load balancer (matches name). - id?: null | string @go(ID,*string) - ipAddressType?: null | string @go(IPAddressType,*string) - - // The instance port the load balancer will connect. - instancePort?: null | float64 @go(InstancePort,*float64) - - // The protocol of the load balancer. - protocol?: null | string @go(Protocol,*string) - - // The public ports of the load balancer. - publicPorts?: [...null | float64] @go(PublicPorts,[]*float64) - - // The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily. - supportCode?: null | string @go(SupportCode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#LBParameters: { - // The health check path of the load balancer. Default value "/". - // +kubebuilder:validation:Optional - healthCheckPath?: null | string @go(HealthCheckPath,*string) - - // +kubebuilder:validation:Optional - ipAddressType?: null | string @go(IPAddressType,*string) - - // The instance port the load balancer will connect. - // +kubebuilder:validation:Optional - instancePort?: null | float64 @go(InstancePort,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// LBSpec defines the desired state of LB -#LBSpec: { - v1.#ResourceSpec - forProvider: #LBParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LBInitParameters @go(InitProvider) -} - -// LBStatus defines the observed state of LB. -#LBStatus: { - v1.#ResourceStatus - atProvider?: #LBObservation @go(AtProvider) -} - -// LB is the Schema for the LBs API. Provides a Lightsail Load Balancer -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LB: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instancePort) || (has(self.initProvider) && has(self.initProvider.instancePort))",message="spec.forProvider.instancePort is a required parameter" - spec: #LBSpec @go(Spec) - status?: #LBStatus @go(Status) -} - -// LBList contains a list of LBs -#LBList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LB] @go(Items,[]LB) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_lbattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_lbattachment_types_go_gen.cue deleted file mode 100644 index a6e2f52..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_lbattachment_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LBAttachmentInitParameters: { -} - -#LBAttachmentObservation: { - // A combination of attributes to create a unique id: lb_name,instance_name - id?: null | string @go(ID,*string) - - // The name of the instance to attach to the load balancer. - instanceName?: null | string @go(InstanceName,*string) - - // The name of the Lightsail load balancer. - lbName?: null | string @go(LBName,*string) -} - -#LBAttachmentParameters: { - // The name of the instance to attach to the load balancer. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lightsail/v1beta1.Instance - // +kubebuilder:validation:Optional - instanceName?: null | string @go(InstanceName,*string) - - // Reference to a Instance in lightsail to populate instanceName. - // +kubebuilder:validation:Optional - instanceNameRef?: null | v1.#Reference @go(InstanceNameRef,*v1.Reference) - - // Selector for a Instance in lightsail to populate instanceName. - // +kubebuilder:validation:Optional - instanceNameSelector?: null | v1.#Selector @go(InstanceNameSelector,*v1.Selector) - - // The name of the Lightsail load balancer. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lightsail/v1beta1.LB - // +kubebuilder:validation:Optional - lbName?: null | string @go(LBName,*string) - - // Reference to a LB in lightsail to populate lbName. - // +kubebuilder:validation:Optional - lbNameRef?: null | v1.#Reference @go(LBNameRef,*v1.Reference) - - // Selector for a LB in lightsail to populate lbName. - // +kubebuilder:validation:Optional - lbNameSelector?: null | v1.#Selector @go(LBNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// LBAttachmentSpec defines the desired state of LBAttachment -#LBAttachmentSpec: { - v1.#ResourceSpec - forProvider: #LBAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LBAttachmentInitParameters @go(InitProvider) -} - -// LBAttachmentStatus defines the observed state of LBAttachment. -#LBAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #LBAttachmentObservation @go(AtProvider) -} - -// LBAttachment is the Schema for the LBAttachments API. Attaches a Lightsail Instance to a Lightsail Load Balancer -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LBAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #LBAttachmentSpec @go(Spec) - status?: #LBAttachmentStatus @go(Status) -} - -// LBAttachmentList contains a list of LBAttachments -#LBAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LBAttachment] @go(Items,[]LBAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_lbcertificate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_lbcertificate_types_go_gen.cue deleted file mode 100644 index 149b041..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_lbcertificate_types_go_gen.cue +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainValidationRecordsInitParameters: { -} - -#DomainValidationRecordsObservation: { - // The domain name (e.g., example.com) for your SSL/TLS certificate. - domainName?: null | string @go(DomainName,*string) - - // The SSL/TLS certificate name. - resourceRecordName?: null | string @go(ResourceRecordName,*string) - resourceRecordType?: null | string @go(ResourceRecordType,*string) - resourceRecordValue?: null | string @go(ResourceRecordValue,*string) -} - -#DomainValidationRecordsParameters: { -} - -#LBCertificateInitParameters: { - // The domain name (e.g., example.com) for your SSL/TLS certificate. - domainName?: null | string @go(DomainName,*string) - - // Set of domains that should be SANs in the issued certificate. domain_name attribute is automatically added as a Subject Alternative Name. - subjectAlternativeNames?: [...null | string] @go(SubjectAlternativeNames,[]*string) -} - -#LBCertificateObservation: { - // The ARN of the lightsail certificate. - arn?: null | string @go(Arn,*string) - - // The timestamp when the instance was created. - createdAt?: null | string @go(CreatedAt,*string) - - // The domain name (e.g., example.com) for your SSL/TLS certificate. - domainName?: null | string @go(DomainName,*string) - domainValidationRecords?: [...#DomainValidationRecordsObservation] @go(DomainValidationRecords,[]DomainValidationRecordsObservation) - - // A combination of attributes to create a unique id: lb_name,name - id?: null | string @go(ID,*string) - - // The load balancer name where you want to create the SSL/TLS certificate. - lbName?: null | string @go(LBName,*string) - - // Set of domains that should be SANs in the issued certificate. domain_name attribute is automatically added as a Subject Alternative Name. - subjectAlternativeNames?: [...null | string] @go(SubjectAlternativeNames,[]*string) - supportCode?: null | string @go(SupportCode,*string) -} - -#LBCertificateParameters: { - // The domain name (e.g., example.com) for your SSL/TLS certificate. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // The load balancer name where you want to create the SSL/TLS certificate. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lightsail/v1beta1.LB - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - lbName?: null | string @go(LBName,*string) - - // Reference to a LB in lightsail to populate lbName. - // +kubebuilder:validation:Optional - lbNameRef?: null | v1.#Reference @go(LBNameRef,*v1.Reference) - - // Selector for a LB in lightsail to populate lbName. - // +kubebuilder:validation:Optional - lbNameSelector?: null | v1.#Selector @go(LBNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Set of domains that should be SANs in the issued certificate. domain_name attribute is automatically added as a Subject Alternative Name. - // +kubebuilder:validation:Optional - subjectAlternativeNames?: [...null | string] @go(SubjectAlternativeNames,[]*string) -} - -// LBCertificateSpec defines the desired state of LBCertificate -#LBCertificateSpec: { - v1.#ResourceSpec - forProvider: #LBCertificateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LBCertificateInitParameters @go(InitProvider) -} - -// LBCertificateStatus defines the observed state of LBCertificate. -#LBCertificateStatus: { - v1.#ResourceStatus - atProvider?: #LBCertificateObservation @go(AtProvider) -} - -// LBCertificate is the Schema for the LBCertificates API. Provides a Lightsail Load Balancer -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LBCertificate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #LBCertificateSpec @go(Spec) - status?: #LBCertificateStatus @go(Status) -} - -// LBCertificateList contains a list of LBCertificates -#LBCertificateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LBCertificate] @go(Items,[]LBCertificate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_lbstickinesspolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_lbstickinesspolicy_types_go_gen.cue deleted file mode 100644 index 35e66b8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_lbstickinesspolicy_types_go_gen.cue +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LBStickinessPolicyInitParameters: { - // The cookie duration in seconds. This determines the length of the session stickiness. - cookieDuration?: null | float64 @go(CookieDuration,*float64) - - // - The Session Stickiness state of the load balancer. true to activate session stickiness or false to deactivate session stickiness. - enabled?: null | bool @go(Enabled,*bool) -} - -#LBStickinessPolicyObservation: { - // The cookie duration in seconds. This determines the length of the session stickiness. - cookieDuration?: null | float64 @go(CookieDuration,*float64) - - // - The Session Stickiness state of the load balancer. true to activate session stickiness or false to deactivate session stickiness. - enabled?: null | bool @go(Enabled,*bool) - - // The name used for this load balancer (matches lb_name). - id?: null | string @go(ID,*string) -} - -#LBStickinessPolicyParameters: { - // The cookie duration in seconds. This determines the length of the session stickiness. - // +kubebuilder:validation:Optional - cookieDuration?: null | float64 @go(CookieDuration,*float64) - - // - The Session Stickiness state of the load balancer. true to activate session stickiness or false to deactivate session stickiness. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// LBStickinessPolicySpec defines the desired state of LBStickinessPolicy -#LBStickinessPolicySpec: { - v1.#ResourceSpec - forProvider: #LBStickinessPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LBStickinessPolicyInitParameters @go(InitProvider) -} - -// LBStickinessPolicyStatus defines the observed state of LBStickinessPolicy. -#LBStickinessPolicyStatus: { - v1.#ResourceStatus - atProvider?: #LBStickinessPolicyObservation @go(AtProvider) -} - -// LBStickinessPolicy is the Schema for the LBStickinessPolicys API. Configures Session Stickiness for a Lightsail Load Balancer -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LBStickinessPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.cookieDuration) || (has(self.initProvider) && has(self.initProvider.cookieDuration))",message="spec.forProvider.cookieDuration is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.enabled) || (has(self.initProvider) && has(self.initProvider.enabled))",message="spec.forProvider.enabled is a required parameter" - spec: #LBStickinessPolicySpec @go(Spec) - status?: #LBStickinessPolicyStatus @go(Status) -} - -// LBStickinessPolicyList contains a list of LBStickinessPolicys -#LBStickinessPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LBStickinessPolicy] @go(Items,[]LBStickinessPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_staticip_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_staticip_types_go_gen.cue deleted file mode 100644 index 279b388..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_staticip_types_go_gen.cue +++ /dev/null @@ -1,88 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#StaticIPInitParameters: { - // The name for the allocated static IP - name?: null | string @go(Name,*string) -} - -#StaticIPObservation: { - // The ARN of the Lightsail static IP - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // The allocated static IP address - ipAddress?: null | string @go(IPAddress,*string) - - // The name for the allocated static IP - name?: null | string @go(Name,*string) - - // The support code. - supportCode?: null | string @go(SupportCode,*string) -} - -#StaticIPParameters: { - // The name for the allocated static IP - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// StaticIPSpec defines the desired state of StaticIP -#StaticIPSpec: { - v1.#ResourceSpec - forProvider: #StaticIPParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StaticIPInitParameters @go(InitProvider) -} - -// StaticIPStatus defines the observed state of StaticIP. -#StaticIPStatus: { - v1.#ResourceStatus - atProvider?: #StaticIPObservation @go(AtProvider) -} - -// StaticIP is the Schema for the StaticIPs API. Provides an Lightsail Static IP -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#StaticIP: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #StaticIPSpec @go(Spec) - status?: #StaticIPStatus @go(Status) -} - -// StaticIPList contains a list of StaticIPs -#StaticIPList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#StaticIP] @go(Items,[]StaticIP) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_staticipattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_staticipattachment_types_go_gen.cue deleted file mode 100644 index 5277d78..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/lightsail/v1beta1/zz_staticipattachment_types_go_gen.cue +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/lightsail/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#StaticIPAttachmentInitParameters: { -} - -#StaticIPAttachmentObservation: { - id?: null | string @go(ID,*string) - - // The allocated static IP address - ipAddress?: null | string @go(IPAddress,*string) - - // The name of the Lightsail instance to attach the IP to - instanceName?: null | string @go(InstanceName,*string) - - // The name of the allocated static IP - staticIpName?: null | string @go(StaticIPName,*string) -} - -#StaticIPAttachmentParameters: { - // The name of the Lightsail instance to attach the IP to - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lightsail/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - instanceName?: null | string @go(InstanceName,*string) - - // Reference to a Instance in lightsail to populate instanceName. - // +kubebuilder:validation:Optional - instanceNameRef?: null | v1.#Reference @go(InstanceNameRef,*v1.Reference) - - // Selector for a Instance in lightsail to populate instanceName. - // +kubebuilder:validation:Optional - instanceNameSelector?: null | v1.#Selector @go(InstanceNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the allocated static IP - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lightsail/v1beta1.StaticIP - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - staticIpName?: null | string @go(StaticIPName,*string) - - // Reference to a StaticIP in lightsail to populate staticIpName. - // +kubebuilder:validation:Optional - staticIpNameRef?: null | v1.#Reference @go(StaticIPNameRef,*v1.Reference) - - // Selector for a StaticIP in lightsail to populate staticIpName. - // +kubebuilder:validation:Optional - staticIpNameSelector?: null | v1.#Selector @go(StaticIPNameSelector,*v1.Selector) -} - -// StaticIPAttachmentSpec defines the desired state of StaticIPAttachment -#StaticIPAttachmentSpec: { - v1.#ResourceSpec - forProvider: #StaticIPAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StaticIPAttachmentInitParameters @go(InitProvider) -} - -// StaticIPAttachmentStatus defines the observed state of StaticIPAttachment. -#StaticIPAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #StaticIPAttachmentObservation @go(AtProvider) -} - -// StaticIPAttachment is the Schema for the StaticIPAttachments API. Provides an Lightsail Static IP Attachment -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#StaticIPAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #StaticIPAttachmentSpec @go(Spec) - status?: #StaticIPAttachmentStatus @go(Status) -} - -// StaticIPAttachmentList contains a list of StaticIPAttachments -#StaticIPAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#StaticIPAttachment] @go(Items,[]StaticIPAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_geofencecollection_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_geofencecollection_types_go_gen.cue deleted file mode 100644 index 4dced63..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_geofencecollection_types_go_gen.cue +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/location/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GeofenceCollectionInitParameters: { - // The optional description for the geofence collection. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#GeofenceCollectionObservation: { - // The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource across all AWS. - collectionArn?: null | string @go(CollectionArn,*string) - - // The timestamp for when the geofence collection resource was created in ISO 8601 format. - createTime?: null | string @go(CreateTime,*string) - - // The optional description for the geofence collection. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The timestamp for when the geofence collection resource was last updated in ISO 8601 format. - updateTime?: null | string @go(UpdateTime,*string) -} - -#GeofenceCollectionParameters: { - // The optional description for the geofence collection. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// GeofenceCollectionSpec defines the desired state of GeofenceCollection -#GeofenceCollectionSpec: { - v1.#ResourceSpec - forProvider: #GeofenceCollectionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GeofenceCollectionInitParameters @go(InitProvider) -} - -// GeofenceCollectionStatus defines the observed state of GeofenceCollection. -#GeofenceCollectionStatus: { - v1.#ResourceStatus - atProvider?: #GeofenceCollectionObservation @go(AtProvider) -} - -// GeofenceCollection is the Schema for the GeofenceCollections API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GeofenceCollection: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #GeofenceCollectionSpec @go(Spec) - status?: #GeofenceCollectionStatus @go(Status) -} - -// GeofenceCollectionList contains a list of GeofenceCollections -#GeofenceCollectionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GeofenceCollection] @go(Items,[]GeofenceCollection) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 63b7666..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/location/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=location.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "location.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_placeindex_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_placeindex_types_go_gen.cue deleted file mode 100644 index 78fc26b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_placeindex_types_go_gen.cue +++ /dev/null @@ -1,137 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/location/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DataSourceConfigurationInitParameters: { - // Specifies how the results of an operation will be stored by the caller. Valid values: SingleUse, Storage. Default: SingleUse. - intendedUse?: null | string @go(IntendedUse,*string) -} - -#DataSourceConfigurationObservation: { - // Specifies how the results of an operation will be stored by the caller. Valid values: SingleUse, Storage. Default: SingleUse. - intendedUse?: null | string @go(IntendedUse,*string) -} - -#DataSourceConfigurationParameters: { - // Specifies how the results of an operation will be stored by the caller. Valid values: SingleUse, Storage. Default: SingleUse. - // +kubebuilder:validation:Optional - intendedUse?: null | string @go(IntendedUse,*string) -} - -#PlaceIndexInitParameters: { - // Specifies the geospatial data provider for the new place index. - dataSource?: null | string @go(DataSource,*string) - - // Configuration block with the data storage option chosen for requesting Places. Detailed below. - dataSourceConfiguration?: [...#DataSourceConfigurationInitParameters] @go(DataSourceConfiguration,[]DataSourceConfigurationInitParameters) - - // The optional description for the place index resource. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PlaceIndexObservation: { - // The timestamp for when the place index resource was created in ISO 8601 format. - createTime?: null | string @go(CreateTime,*string) - - // Specifies the geospatial data provider for the new place index. - dataSource?: null | string @go(DataSource,*string) - - // Configuration block with the data storage option chosen for requesting Places. Detailed below. - dataSourceConfiguration?: [...#DataSourceConfigurationObservation] @go(DataSourceConfiguration,[]DataSourceConfigurationObservation) - - // The optional description for the place index resource. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS. - indexArn?: null | string @go(IndexArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The timestamp for when the place index resource was last update in ISO 8601. - updateTime?: null | string @go(UpdateTime,*string) -} - -#PlaceIndexParameters: { - // Specifies the geospatial data provider for the new place index. - // +kubebuilder:validation:Optional - dataSource?: null | string @go(DataSource,*string) - - // Configuration block with the data storage option chosen for requesting Places. Detailed below. - // +kubebuilder:validation:Optional - dataSourceConfiguration?: [...#DataSourceConfigurationParameters] @go(DataSourceConfiguration,[]DataSourceConfigurationParameters) - - // The optional description for the place index resource. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// PlaceIndexSpec defines the desired state of PlaceIndex -#PlaceIndexSpec: { - v1.#ResourceSpec - forProvider: #PlaceIndexParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PlaceIndexInitParameters @go(InitProvider) -} - -// PlaceIndexStatus defines the observed state of PlaceIndex. -#PlaceIndexStatus: { - v1.#ResourceStatus - atProvider?: #PlaceIndexObservation @go(AtProvider) -} - -// PlaceIndex is the Schema for the PlaceIndexs API. Provides a Location Service Place Index. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PlaceIndex: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dataSource) || (has(self.initProvider) && has(self.initProvider.dataSource))",message="spec.forProvider.dataSource is a required parameter" - spec: #PlaceIndexSpec @go(Spec) - status?: #PlaceIndexStatus @go(Status) -} - -// PlaceIndexList contains a list of PlaceIndexs -#PlaceIndexList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PlaceIndex] @go(Items,[]PlaceIndex) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_routecalculator_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_routecalculator_types_go_gen.cue deleted file mode 100644 index 283d098..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_routecalculator_types_go_gen.cue +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/location/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RouteCalculatorInitParameters: { - // Specifies the data provider of traffic and road network data. - dataSource?: null | string @go(DataSource,*string) - - // The optional description for the route calculator resource. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RouteCalculatorObservation: { - // The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS. - calculatorArn?: null | string @go(CalculatorArn,*string) - - // The timestamp for when the route calculator resource was created in ISO 8601 format. - createTime?: null | string @go(CreateTime,*string) - - // Specifies the data provider of traffic and road network data. - dataSource?: null | string @go(DataSource,*string) - - // The optional description for the route calculator resource. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The timestamp for when the route calculator resource was last update in ISO 8601. - updateTime?: null | string @go(UpdateTime,*string) -} - -#RouteCalculatorParameters: { - // Specifies the data provider of traffic and road network data. - // +kubebuilder:validation:Optional - dataSource?: null | string @go(DataSource,*string) - - // The optional description for the route calculator resource. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RouteCalculatorSpec defines the desired state of RouteCalculator -#RouteCalculatorSpec: { - v1.#ResourceSpec - forProvider: #RouteCalculatorParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RouteCalculatorInitParameters @go(InitProvider) -} - -// RouteCalculatorStatus defines the observed state of RouteCalculator. -#RouteCalculatorStatus: { - v1.#ResourceStatus - atProvider?: #RouteCalculatorObservation @go(AtProvider) -} - -// RouteCalculator is the Schema for the RouteCalculators API. Provides a Location Service Route Calculator. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RouteCalculator: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dataSource) || (has(self.initProvider) && has(self.initProvider.dataSource))",message="spec.forProvider.dataSource is a required parameter" - spec: #RouteCalculatorSpec @go(Spec) - status?: #RouteCalculatorStatus @go(Status) -} - -// RouteCalculatorList contains a list of RouteCalculators -#RouteCalculatorList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RouteCalculator] @go(Items,[]RouteCalculator) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_tracker_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_tracker_types_go_gen.cue deleted file mode 100644 index 15fafab..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_tracker_types_go_gen.cue +++ /dev/null @@ -1,125 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/location/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TrackerInitParameters: { - // The optional description for the tracker resource. - description?: null | string @go(Description,*string) - - // The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased. - positionFiltering?: null | string @go(PositionFiltering,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TrackerObservation: { - // The timestamp for when the tracker resource was created in ISO 8601 format. - createTime?: null | string @go(CreateTime,*string) - - // The optional description for the tracker resource. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased. - positionFiltering?: null | string @go(PositionFiltering,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS. - trackerArn?: null | string @go(TrackerArn,*string) - - // The timestamp for when the tracker resource was last updated in ISO 8601 format. - updateTime?: null | string @go(UpdateTime,*string) -} - -#TrackerParameters: { - // The optional description for the tracker resource. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased. - // +kubebuilder:validation:Optional - positionFiltering?: null | string @go(PositionFiltering,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// TrackerSpec defines the desired state of Tracker -#TrackerSpec: { - v1.#ResourceSpec - forProvider: #TrackerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TrackerInitParameters @go(InitProvider) -} - -// TrackerStatus defines the observed state of Tracker. -#TrackerStatus: { - v1.#ResourceStatus - atProvider?: #TrackerObservation @go(AtProvider) -} - -// Tracker is the Schema for the Trackers API. Provides a Location Service Tracker. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Tracker: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TrackerSpec @go(Spec) - status?: #TrackerStatus @go(Status) -} - -// TrackerList contains a list of Trackers -#TrackerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Tracker] @go(Items,[]Tracker) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_trackerassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_trackerassociation_types_go_gen.cue deleted file mode 100644 index 1143e49..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/location/v1beta1/zz_trackerassociation_types_go_gen.cue +++ /dev/null @@ -1,101 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/location/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TrackerAssociationInitParameters: { -} - -#TrackerAssociationObservation: { - // The Amazon Resource Name (ARN) for the geofence collection to be associated to tracker resource. Used when you need to specify a resource across all AWS. - consumerArn?: null | string @go(ConsumerArn,*string) - id?: null | string @go(ID,*string) - - // The name of the tracker resource to be associated with a geofence collection. - trackerName?: null | string @go(TrackerName,*string) -} - -#TrackerAssociationParameters: { - // The Amazon Resource Name (ARN) for the geofence collection to be associated to tracker resource. Used when you need to specify a resource across all AWS. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/location/v1beta1.GeofenceCollection - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("collection_arn",true) - // +kubebuilder:validation:Optional - consumerArn?: null | string @go(ConsumerArn,*string) - - // Reference to a GeofenceCollection in location to populate consumerArn. - // +kubebuilder:validation:Optional - consumerArnRef?: null | v1.#Reference @go(ConsumerArnRef,*v1.Reference) - - // Selector for a GeofenceCollection in location to populate consumerArn. - // +kubebuilder:validation:Optional - consumerArnSelector?: null | v1.#Selector @go(ConsumerArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the tracker resource to be associated with a geofence collection. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/location/v1beta1.Tracker - // +kubebuilder:validation:Optional - trackerName?: null | string @go(TrackerName,*string) - - // Reference to a Tracker in location to populate trackerName. - // +kubebuilder:validation:Optional - trackerNameRef?: null | v1.#Reference @go(TrackerNameRef,*v1.Reference) - - // Selector for a Tracker in location to populate trackerName. - // +kubebuilder:validation:Optional - trackerNameSelector?: null | v1.#Selector @go(TrackerNameSelector,*v1.Selector) -} - -// TrackerAssociationSpec defines the desired state of TrackerAssociation -#TrackerAssociationSpec: { - v1.#ResourceSpec - forProvider: #TrackerAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TrackerAssociationInitParameters @go(InitProvider) -} - -// TrackerAssociationStatus defines the observed state of TrackerAssociation. -#TrackerAssociationStatus: { - v1.#ResourceStatus - atProvider?: #TrackerAssociationObservation @go(AtProvider) -} - -// TrackerAssociation is the Schema for the TrackerAssociations API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TrackerAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TrackerAssociationSpec @go(Spec) - status?: #TrackerAssociationStatus @go(Status) -} - -// TrackerAssociationList contains a list of TrackerAssociations -#TrackerAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TrackerAssociation] @go(Items,[]TrackerAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_account_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_account_types_go_gen.cue deleted file mode 100644 index 1e02c10..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_account_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/macie2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountInitParameters: { - // Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS. - findingPublishingFrequency?: null | string @go(FindingPublishingFrequency,*string) - - // Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED. - status?: null | string @go(Status,*string) -} - -#AccountObservation: { - // The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created. - createdAt?: null | string @go(CreatedAt,*string) - - // Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS. - findingPublishingFrequency?: null | string @go(FindingPublishingFrequency,*string) - - // The unique identifier (ID) of the macie account. - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account. - serviceRole?: null | string @go(ServiceRole,*string) - - // Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED. - status?: null | string @go(Status,*string) - - // The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account. - updatedAt?: null | string @go(UpdatedAt,*string) -} - -#AccountParameters: { - // Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS. - // +kubebuilder:validation:Optional - findingPublishingFrequency?: null | string @go(FindingPublishingFrequency,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -// AccountSpec defines the desired state of Account -#AccountSpec: { - v1.#ResourceSpec - forProvider: #AccountParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccountInitParameters @go(InitProvider) -} - -// AccountStatus defines the observed state of Account. -#AccountStatus: { - v1.#ResourceStatus - atProvider?: #AccountObservation @go(AtProvider) -} - -// Account is the Schema for the Accounts API. Provides a resource to manage Amazon Macie on an AWS Account. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Account: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AccountSpec @go(Spec) - status?: #AccountStatus @go(Status) -} - -// AccountList contains a list of Accounts -#AccountList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Account] @go(Items,[]Account) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_classificationjob_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_classificationjob_types_go_gen.cue deleted file mode 100644 index caf0247..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_classificationjob_types_go_gen.cue +++ /dev/null @@ -1,905 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/macie2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AndInitParameters: { - // A property-based condition that defines a property, operator, and one or more values for including or excluding an S3 buckets from the job. (documented below) - simpleCriterion?: [...#SimpleCriterionInitParameters] @go(SimpleCriterion,[]SimpleCriterionInitParameters) - - // A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an S3 buckets from the job. (documented below) - tagCriterion?: [...#TagCriterionInitParameters] @go(TagCriterion,[]TagCriterionInitParameters) -} - -#AndObservation: { - // A property-based condition that defines a property, operator, and one or more values for including or excluding an S3 buckets from the job. (documented below) - simpleCriterion?: [...#SimpleCriterionObservation] @go(SimpleCriterion,[]SimpleCriterionObservation) - - // A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an S3 buckets from the job. (documented below) - tagCriterion?: [...#TagCriterionObservation] @go(TagCriterion,[]TagCriterionObservation) -} - -#AndParameters: { - // A property-based condition that defines a property, operator, and one or more values for including or excluding an S3 buckets from the job. (documented below) - // +kubebuilder:validation:Optional - simpleCriterion?: [...#SimpleCriterionParameters] @go(SimpleCriterion,[]SimpleCriterionParameters) - - // A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an S3 buckets from the job. (documented below) - // +kubebuilder:validation:Optional - tagCriterion?: [...#TagCriterionParameters] @go(TagCriterion,[]TagCriterionParameters) -} - -#AndSimpleCriterionInitParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // An array that lists the values to use in the condition. - values?: [...null | string] @go(Values,[]*string) -} - -#AndSimpleCriterionObservation: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // An array that lists the values to use in the condition. - values?: [...null | string] @go(Values,[]*string) -} - -#AndSimpleCriterionParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - // +kubebuilder:validation:Optional - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // An array that lists the values to use in the condition. - // +kubebuilder:validation:Optional - values?: [...null | string] @go(Values,[]*string) -} - -#AndSimpleScopeTermInitParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // An array that lists the values to use in the condition. - values?: [...null | string] @go(Values,[]*string) -} - -#AndSimpleScopeTermObservation: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // An array that lists the values to use in the condition. - values?: [...null | string] @go(Values,[]*string) -} - -#AndSimpleScopeTermParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - // +kubebuilder:validation:Optional - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // An array that lists the values to use in the condition. - // +kubebuilder:validation:Optional - values?: [...null | string] @go(Values,[]*string) -} - -#AndTagCriterionInitParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The tag keys or tag key and value pairs to use in the condition. - tagValues?: [...#TagCriterionTagValuesInitParameters] @go(TagValues,[]TagCriterionTagValuesInitParameters) -} - -#AndTagCriterionObservation: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The tag keys or tag key and value pairs to use in the condition. - tagValues?: [...#TagCriterionTagValuesObservation] @go(TagValues,[]TagCriterionTagValuesObservation) -} - -#AndTagCriterionParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - // +kubebuilder:validation:Optional - comparator?: null | string @go(Comparator,*string) - - // The tag keys or tag key and value pairs to use in the condition. - // +kubebuilder:validation:Optional - tagValues?: [...#TagCriterionTagValuesParameters] @go(TagValues,[]TagCriterionTagValuesParameters) -} - -#AndTagScopeTermInitParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // The tag keys or tag key and value pairs to use in the condition. - tagValues?: [...#AndTagScopeTermTagValuesInitParameters] @go(TagValues,[]AndTagScopeTermTagValuesInitParameters) - - // The type of object to apply the condition to. The only valid value is S3_OBJECT. - target?: null | string @go(Target,*string) -} - -#AndTagScopeTermObservation: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // The tag keys or tag key and value pairs to use in the condition. - tagValues?: [...#AndTagScopeTermTagValuesObservation] @go(TagValues,[]AndTagScopeTermTagValuesObservation) - - // The type of object to apply the condition to. The only valid value is S3_OBJECT. - target?: null | string @go(Target,*string) -} - -#AndTagScopeTermParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - // +kubebuilder:validation:Optional - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The tag keys or tag key and value pairs to use in the condition. - // +kubebuilder:validation:Optional - tagValues?: [...#AndTagScopeTermTagValuesParameters] @go(TagValues,[]AndTagScopeTermTagValuesParameters) - - // The type of object to apply the condition to. The only valid value is S3_OBJECT. - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) -} - -#AndTagScopeTermTagValuesInitParameters: { - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // The tag value. - value?: null | string @go(Value,*string) -} - -#AndTagScopeTermTagValuesObservation: { - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // The tag value. - value?: null | string @go(Value,*string) -} - -#AndTagScopeTermTagValuesParameters: { - // The object property to use in the condition. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The tag value. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#BucketCriteriaInitParameters: { - // The property- or tag-based conditions that determine which objects to exclude from the analysis. (documented below) - excludes?: [...#ExcludesInitParameters] @go(Excludes,[]ExcludesInitParameters) - - // The property- or tag-based conditions that determine which objects to include in the analysis. (documented below) - includes?: [...#IncludesInitParameters] @go(Includes,[]IncludesInitParameters) -} - -#BucketCriteriaObservation: { - // The property- or tag-based conditions that determine which objects to exclude from the analysis. (documented below) - excludes?: [...#ExcludesObservation] @go(Excludes,[]ExcludesObservation) - - // The property- or tag-based conditions that determine which objects to include in the analysis. (documented below) - includes?: [...#IncludesObservation] @go(Includes,[]IncludesObservation) -} - -#BucketCriteriaParameters: { - // The property- or tag-based conditions that determine which objects to exclude from the analysis. (documented below) - // +kubebuilder:validation:Optional - excludes?: [...#ExcludesParameters] @go(Excludes,[]ExcludesParameters) - - // The property- or tag-based conditions that determine which objects to include in the analysis. (documented below) - // +kubebuilder:validation:Optional - includes?: [...#IncludesParameters] @go(Includes,[]IncludesParameters) -} - -#BucketDefinitionsInitParameters: { - // The unique identifier for the AWS account that owns the buckets. - accountId?: null | string @go(AccountID,*string) - - // An array that lists the names of the buckets. - buckets?: [...null | string] @go(Buckets,[]*string) -} - -#BucketDefinitionsObservation: { - // The unique identifier for the AWS account that owns the buckets. - accountId?: null | string @go(AccountID,*string) - - // An array that lists the names of the buckets. - buckets?: [...null | string] @go(Buckets,[]*string) -} - -#BucketDefinitionsParameters: { - // The unique identifier for the AWS account that owns the buckets. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // An array that lists the names of the buckets. - // +kubebuilder:validation:Optional - buckets: [...null | string] @go(Buckets,[]*string) -} - -#ClassificationJobInitParameters: { - // The custom data identifiers to use for data analysis and classification. - customDataIdentifierIds?: [...null | string] @go(CustomDataIdentifierIds,[]*string) - - // A custom description of the job. The description can contain as many as 200 characters. - description?: null | string @go(Description,*string) - - // Specifies whether to analyze all existing, eligible objects immediately after the job is created. - initialRun?: null | bool @go(InitialRun,*bool) - - // The status for the job. Valid values are: CANCELLED, RUNNING and USER_PAUSED - jobStatus?: null | string @go(JobStatus,*string) - - // The schedule for running the job. Valid values are: ONE_TIME - Run the job only once. If you specify this value, don't specify a value for the schedule_frequency property. SCHEDULED - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the schedule_frequency property to define the recurrence pattern for the job. - jobType?: null | string @go(JobType,*string) - - // A custom name for the job. The name can contain as many as 500 characters. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // The S3 buckets that contain the objects to analyze, and the scope of that analysis. (documented below) - s3JobDefinition?: [...#S3JobDefinitionInitParameters] @go(S3JobDefinition,[]S3JobDefinitionInitParameters) - - // The sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects. - samplingPercentage?: null | float64 @go(SamplingPercentage,*float64) - - // The recurrence pattern for running the job. To run the job only once, don't specify a value for this property and set the value for the job_type property to ONE_TIME. (documented below) - scheduleFrequency?: [...#ScheduleFrequencyInitParameters] @go(ScheduleFrequency,[]ScheduleFrequencyInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClassificationJobObservation: { - // The date and time, in UTC and extended RFC 3339 format, when the job was created. - createdAt?: null | string @go(CreatedAt,*string) - - // The custom data identifiers to use for data analysis and classification. - customDataIdentifierIds?: [...null | string] @go(CustomDataIdentifierIds,[]*string) - - // A custom description of the job. The description can contain as many as 200 characters. - description?: null | string @go(Description,*string) - - // The unique identifier (ID) of the macie classification job. - id?: null | string @go(ID,*string) - - // Specifies whether to analyze all existing, eligible objects immediately after the job is created. - initialRun?: null | bool @go(InitialRun,*bool) - jobArn?: null | string @go(JobArn,*string) - - // The unique identifier (ID) of the macie classification job. - jobId?: null | string @go(JobID,*string) - - // The status for the job. Valid values are: CANCELLED, RUNNING and USER_PAUSED - jobStatus?: null | string @go(JobStatus,*string) - - // The schedule for running the job. Valid values are: ONE_TIME - Run the job only once. If you specify this value, don't specify a value for the schedule_frequency property. SCHEDULED - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the schedule_frequency property to define the recurrence pattern for the job. - jobType?: null | string @go(JobType,*string) - - // A custom name for the job. The name can contain as many as 500 characters. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // The S3 buckets that contain the objects to analyze, and the scope of that analysis. (documented below) - s3JobDefinition?: [...#S3JobDefinitionObservation] @go(S3JobDefinition,[]S3JobDefinitionObservation) - - // The sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects. - samplingPercentage?: null | float64 @go(SamplingPercentage,*float64) - - // The recurrence pattern for running the job. To run the job only once, don't specify a value for this property and set the value for the job_type property to ONE_TIME. (documented below) - scheduleFrequency?: [...#ScheduleFrequencyObservation] @go(ScheduleFrequency,[]ScheduleFrequencyObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if the value for job-status is USER_PAUSED. - userPausedDetails?: [...#UserPausedDetailsObservation] @go(UserPausedDetails,[]UserPausedDetailsObservation) -} - -#ClassificationJobParameters: { - // The custom data identifiers to use for data analysis and classification. - // +kubebuilder:validation:Optional - customDataIdentifierIds?: [...null | string] @go(CustomDataIdentifierIds,[]*string) - - // A custom description of the job. The description can contain as many as 200 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies whether to analyze all existing, eligible objects immediately after the job is created. - // +kubebuilder:validation:Optional - initialRun?: null | bool @go(InitialRun,*bool) - - // The status for the job. Valid values are: CANCELLED, RUNNING and USER_PAUSED - // +kubebuilder:validation:Optional - jobStatus?: null | string @go(JobStatus,*string) - - // The schedule for running the job. Valid values are: ONE_TIME - Run the job only once. If you specify this value, don't specify a value for the schedule_frequency property. SCHEDULED - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the schedule_frequency property to define the recurrence pattern for the job. - // +kubebuilder:validation:Optional - jobType?: null | string @go(JobType,*string) - - // A custom name for the job. The name can contain as many as 500 characters. Conflicts with name_prefix. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The S3 buckets that contain the objects to analyze, and the scope of that analysis. (documented below) - // +kubebuilder:validation:Optional - s3JobDefinition?: [...#S3JobDefinitionParameters] @go(S3JobDefinition,[]S3JobDefinitionParameters) - - // The sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects. - // +kubebuilder:validation:Optional - samplingPercentage?: null | float64 @go(SamplingPercentage,*float64) - - // The recurrence pattern for running the job. To run the job only once, don't specify a value for this property and set the value for the job_type property to ONE_TIME. (documented below) - // +kubebuilder:validation:Optional - scheduleFrequency?: [...#ScheduleFrequencyParameters] @go(ScheduleFrequency,[]ScheduleFrequencyParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ExcludesAndInitParameters: { - // A property-based condition that defines a property, operator, and one or more values for including or excluding an object from the job. (documented below) - simpleScopeTerm?: [...#SimpleScopeTermInitParameters] @go(SimpleScopeTerm,[]SimpleScopeTermInitParameters) - - // A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an object from the job. (documented below) - tagScopeTerm?: [...#TagScopeTermInitParameters] @go(TagScopeTerm,[]TagScopeTermInitParameters) -} - -#ExcludesAndObservation: { - // A property-based condition that defines a property, operator, and one or more values for including or excluding an object from the job. (documented below) - simpleScopeTerm?: [...#SimpleScopeTermObservation] @go(SimpleScopeTerm,[]SimpleScopeTermObservation) - - // A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an object from the job. (documented below) - tagScopeTerm?: [...#TagScopeTermObservation] @go(TagScopeTerm,[]TagScopeTermObservation) -} - -#ExcludesAndParameters: { - // A property-based condition that defines a property, operator, and one or more values for including or excluding an object from the job. (documented below) - // +kubebuilder:validation:Optional - simpleScopeTerm?: [...#SimpleScopeTermParameters] @go(SimpleScopeTerm,[]SimpleScopeTermParameters) - - // A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an object from the job. (documented below) - // +kubebuilder:validation:Optional - tagScopeTerm?: [...#TagScopeTermParameters] @go(TagScopeTerm,[]TagScopeTermParameters) -} - -#ExcludesInitParameters: { - // An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) - and?: [...#AndInitParameters] @go(And,[]AndInitParameters) -} - -#ExcludesObservation: { - // An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) - and?: [...#AndObservation] @go(And,[]AndObservation) -} - -#ExcludesParameters: { - // An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) - // +kubebuilder:validation:Optional - and?: [...#AndParameters] @go(And,[]AndParameters) -} - -#IncludesAndInitParameters: { - // A property-based condition that defines a property, operator, and one or more values for including or excluding an S3 buckets from the job. (documented below) - simpleCriterion?: [...#AndSimpleCriterionInitParameters] @go(SimpleCriterion,[]AndSimpleCriterionInitParameters) - - // A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an S3 buckets from the job. (documented below) - tagCriterion?: [...#AndTagCriterionInitParameters] @go(TagCriterion,[]AndTagCriterionInitParameters) -} - -#IncludesAndObservation: { - // A property-based condition that defines a property, operator, and one or more values for including or excluding an S3 buckets from the job. (documented below) - simpleCriterion?: [...#AndSimpleCriterionObservation] @go(SimpleCriterion,[]AndSimpleCriterionObservation) - - // A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an S3 buckets from the job. (documented below) - tagCriterion?: [...#AndTagCriterionObservation] @go(TagCriterion,[]AndTagCriterionObservation) -} - -#IncludesAndParameters: { - // A property-based condition that defines a property, operator, and one or more values for including or excluding an S3 buckets from the job. (documented below) - // +kubebuilder:validation:Optional - simpleCriterion?: [...#AndSimpleCriterionParameters] @go(SimpleCriterion,[]AndSimpleCriterionParameters) - - // A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an S3 buckets from the job. (documented below) - // +kubebuilder:validation:Optional - tagCriterion?: [...#AndTagCriterionParameters] @go(TagCriterion,[]AndTagCriterionParameters) -} - -#IncludesInitParameters: { - // An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) - and?: [...#IncludesAndInitParameters] @go(And,[]IncludesAndInitParameters) -} - -#IncludesObservation: { - // An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) - and?: [...#IncludesAndObservation] @go(And,[]IncludesAndObservation) -} - -#IncludesParameters: { - // An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) - // +kubebuilder:validation:Optional - and?: [...#IncludesAndParameters] @go(And,[]IncludesAndParameters) -} - -#S3JobDefinitionInitParameters: { - // The property- and tag-based conditions that determine which S3 buckets to include or exclude from the analysis. Conflicts with bucket_definitions. (documented below) - bucketCriteria?: [...#BucketCriteriaInitParameters] @go(BucketCriteria,[]BucketCriteriaInitParameters) - - // An array of objects, one for each AWS account that owns buckets to analyze. Each object specifies the account ID for an account and one or more buckets to analyze for the account. Conflicts with bucket_criteria. (documented below) - bucketDefinitions?: [...#BucketDefinitionsInitParameters] @go(BucketDefinitions,[]BucketDefinitionsInitParameters) - - // The property- and tag-based conditions that determine which objects to include or exclude from the analysis. (documented below) - scoping?: [...#ScopingInitParameters] @go(Scoping,[]ScopingInitParameters) -} - -#S3JobDefinitionObservation: { - // The property- and tag-based conditions that determine which S3 buckets to include or exclude from the analysis. Conflicts with bucket_definitions. (documented below) - bucketCriteria?: [...#BucketCriteriaObservation] @go(BucketCriteria,[]BucketCriteriaObservation) - - // An array of objects, one for each AWS account that owns buckets to analyze. Each object specifies the account ID for an account and one or more buckets to analyze for the account. Conflicts with bucket_criteria. (documented below) - bucketDefinitions?: [...#BucketDefinitionsObservation] @go(BucketDefinitions,[]BucketDefinitionsObservation) - - // The property- and tag-based conditions that determine which objects to include or exclude from the analysis. (documented below) - scoping?: [...#ScopingObservation] @go(Scoping,[]ScopingObservation) -} - -#S3JobDefinitionParameters: { - // The property- and tag-based conditions that determine which S3 buckets to include or exclude from the analysis. Conflicts with bucket_definitions. (documented below) - // +kubebuilder:validation:Optional - bucketCriteria?: [...#BucketCriteriaParameters] @go(BucketCriteria,[]BucketCriteriaParameters) - - // An array of objects, one for each AWS account that owns buckets to analyze. Each object specifies the account ID for an account and one or more buckets to analyze for the account. Conflicts with bucket_criteria. (documented below) - // +kubebuilder:validation:Optional - bucketDefinitions?: [...#BucketDefinitionsParameters] @go(BucketDefinitions,[]BucketDefinitionsParameters) - - // The property- and tag-based conditions that determine which objects to include or exclude from the analysis. (documented below) - // +kubebuilder:validation:Optional - scoping?: [...#ScopingParameters] @go(Scoping,[]ScopingParameters) -} - -#ScheduleFrequencyInitParameters: { - // Specifies a daily recurrence pattern for running the job. - dailySchedule?: null | bool @go(DailySchedule,*bool) - - // Specifies a monthly recurrence pattern for running the job. - monthlySchedule?: null | float64 @go(MonthlySchedule,*float64) - - // Specifies a weekly recurrence pattern for running the job. - weeklySchedule?: null | string @go(WeeklySchedule,*string) -} - -#ScheduleFrequencyObservation: { - // Specifies a daily recurrence pattern for running the job. - dailySchedule?: null | bool @go(DailySchedule,*bool) - - // Specifies a monthly recurrence pattern for running the job. - monthlySchedule?: null | float64 @go(MonthlySchedule,*float64) - - // Specifies a weekly recurrence pattern for running the job. - weeklySchedule?: null | string @go(WeeklySchedule,*string) -} - -#ScheduleFrequencyParameters: { - // Specifies a daily recurrence pattern for running the job. - // +kubebuilder:validation:Optional - dailySchedule?: null | bool @go(DailySchedule,*bool) - - // Specifies a monthly recurrence pattern for running the job. - // +kubebuilder:validation:Optional - monthlySchedule?: null | float64 @go(MonthlySchedule,*float64) - - // Specifies a weekly recurrence pattern for running the job. - // +kubebuilder:validation:Optional - weeklySchedule?: null | string @go(WeeklySchedule,*string) -} - -#ScopingExcludesInitParameters: { - // An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) - and?: [...#ExcludesAndInitParameters] @go(And,[]ExcludesAndInitParameters) -} - -#ScopingExcludesObservation: { - // An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) - and?: [...#ExcludesAndObservation] @go(And,[]ExcludesAndObservation) -} - -#ScopingExcludesParameters: { - // An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) - // +kubebuilder:validation:Optional - and?: [...#ExcludesAndParameters] @go(And,[]ExcludesAndParameters) -} - -#ScopingIncludesAndInitParameters: { - // A property-based condition that defines a property, operator, and one or more values for including or excluding an object from the job. (documented below) - simpleScopeTerm?: [...#AndSimpleScopeTermInitParameters] @go(SimpleScopeTerm,[]AndSimpleScopeTermInitParameters) - - // A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an object from the job. (documented below) - tagScopeTerm?: [...#AndTagScopeTermInitParameters] @go(TagScopeTerm,[]AndTagScopeTermInitParameters) -} - -#ScopingIncludesAndObservation: { - // A property-based condition that defines a property, operator, and one or more values for including or excluding an object from the job. (documented below) - simpleScopeTerm?: [...#AndSimpleScopeTermObservation] @go(SimpleScopeTerm,[]AndSimpleScopeTermObservation) - - // A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an object from the job. (documented below) - tagScopeTerm?: [...#AndTagScopeTermObservation] @go(TagScopeTerm,[]AndTagScopeTermObservation) -} - -#ScopingIncludesAndParameters: { - // A property-based condition that defines a property, operator, and one or more values for including or excluding an object from the job. (documented below) - // +kubebuilder:validation:Optional - simpleScopeTerm?: [...#AndSimpleScopeTermParameters] @go(SimpleScopeTerm,[]AndSimpleScopeTermParameters) - - // A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an object from the job. (documented below) - // +kubebuilder:validation:Optional - tagScopeTerm?: [...#AndTagScopeTermParameters] @go(TagScopeTerm,[]AndTagScopeTermParameters) -} - -#ScopingIncludesInitParameters: { - // An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) - and?: [...#ScopingIncludesAndInitParameters] @go(And,[]ScopingIncludesAndInitParameters) -} - -#ScopingIncludesObservation: { - // An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) - and?: [...#ScopingIncludesAndObservation] @go(And,[]ScopingIncludesAndObservation) -} - -#ScopingIncludesParameters: { - // An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) - // +kubebuilder:validation:Optional - and?: [...#ScopingIncludesAndParameters] @go(And,[]ScopingIncludesAndParameters) -} - -#ScopingInitParameters: { - // The property- or tag-based conditions that determine which objects to exclude from the analysis. (documented below) - excludes?: [...#ScopingExcludesInitParameters] @go(Excludes,[]ScopingExcludesInitParameters) - - // The property- or tag-based conditions that determine which objects to include in the analysis. (documented below) - includes?: [...#ScopingIncludesInitParameters] @go(Includes,[]ScopingIncludesInitParameters) -} - -#ScopingObservation: { - // The property- or tag-based conditions that determine which objects to exclude from the analysis. (documented below) - excludes?: [...#ScopingExcludesObservation] @go(Excludes,[]ScopingExcludesObservation) - - // The property- or tag-based conditions that determine which objects to include in the analysis. (documented below) - includes?: [...#ScopingIncludesObservation] @go(Includes,[]ScopingIncludesObservation) -} - -#ScopingParameters: { - // The property- or tag-based conditions that determine which objects to exclude from the analysis. (documented below) - // +kubebuilder:validation:Optional - excludes?: [...#ScopingExcludesParameters] @go(Excludes,[]ScopingExcludesParameters) - - // The property- or tag-based conditions that determine which objects to include in the analysis. (documented below) - // +kubebuilder:validation:Optional - includes?: [...#ScopingIncludesParameters] @go(Includes,[]ScopingIncludesParameters) -} - -#SimpleCriterionInitParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // An array that lists the values to use in the condition. - values?: [...null | string] @go(Values,[]*string) -} - -#SimpleCriterionObservation: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // An array that lists the values to use in the condition. - values?: [...null | string] @go(Values,[]*string) -} - -#SimpleCriterionParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - // +kubebuilder:validation:Optional - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // An array that lists the values to use in the condition. - // +kubebuilder:validation:Optional - values?: [...null | string] @go(Values,[]*string) -} - -#SimpleScopeTermInitParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // An array that lists the values to use in the condition. - values?: [...null | string] @go(Values,[]*string) -} - -#SimpleScopeTermObservation: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // An array that lists the values to use in the condition. - values?: [...null | string] @go(Values,[]*string) -} - -#SimpleScopeTermParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - // +kubebuilder:validation:Optional - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // An array that lists the values to use in the condition. - // +kubebuilder:validation:Optional - values?: [...null | string] @go(Values,[]*string) -} - -#TagCriterionInitParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The tag keys or tag key and value pairs to use in the condition. - tagValues?: [...#TagValuesInitParameters] @go(TagValues,[]TagValuesInitParameters) -} - -#TagCriterionObservation: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The tag keys or tag key and value pairs to use in the condition. - tagValues?: [...#TagValuesObservation] @go(TagValues,[]TagValuesObservation) -} - -#TagCriterionParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - // +kubebuilder:validation:Optional - comparator?: null | string @go(Comparator,*string) - - // The tag keys or tag key and value pairs to use in the condition. - // +kubebuilder:validation:Optional - tagValues?: [...#TagValuesParameters] @go(TagValues,[]TagValuesParameters) -} - -#TagCriterionTagValuesInitParameters: { - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // The tag value. - value?: null | string @go(Value,*string) -} - -#TagCriterionTagValuesObservation: { - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // The tag value. - value?: null | string @go(Value,*string) -} - -#TagCriterionTagValuesParameters: { - // The object property to use in the condition. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The tag value. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#TagScopeTermInitParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // The tag keys or tag key and value pairs to use in the condition. - tagValues?: [...#TagScopeTermTagValuesInitParameters] @go(TagValues,[]TagScopeTermTagValuesInitParameters) - - // The type of object to apply the condition to. The only valid value is S3_OBJECT. - target?: null | string @go(Target,*string) -} - -#TagScopeTermObservation: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // The tag keys or tag key and value pairs to use in the condition. - tagValues?: [...#TagScopeTermTagValuesObservation] @go(TagValues,[]TagScopeTermTagValuesObservation) - - // The type of object to apply the condition to. The only valid value is S3_OBJECT. - target?: null | string @go(Target,*string) -} - -#TagScopeTermParameters: { - // The operator to use in a condition. Valid values are: EQ, GT, GTE, LT, LTE, NE, CONTAINS, STARTS_WITH - // +kubebuilder:validation:Optional - comparator?: null | string @go(Comparator,*string) - - // The object property to use in the condition. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The tag keys or tag key and value pairs to use in the condition. - // +kubebuilder:validation:Optional - tagValues?: [...#TagScopeTermTagValuesParameters] @go(TagValues,[]TagScopeTermTagValuesParameters) - - // The type of object to apply the condition to. The only valid value is S3_OBJECT. - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) -} - -#TagScopeTermTagValuesInitParameters: { - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // The tag value. - value?: null | string @go(Value,*string) -} - -#TagScopeTermTagValuesObservation: { - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // The tag value. - value?: null | string @go(Value,*string) -} - -#TagScopeTermTagValuesParameters: { - // The object property to use in the condition. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The tag value. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#TagValuesInitParameters: { - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // The tag value. - value?: null | string @go(Value,*string) -} - -#TagValuesObservation: { - // The object property to use in the condition. - key?: null | string @go(Key,*string) - - // The tag value. - value?: null | string @go(Value,*string) -} - -#TagValuesParameters: { - // The object property to use in the condition. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The tag value. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#UserPausedDetailsInitParameters: { -} - -#UserPausedDetailsObservation: { - jobExpiresAt?: null | string @go(JobExpiresAt,*string) - jobImminentExpirationHealthEventArn?: null | string @go(JobImminentExpirationHealthEventArn,*string) - jobPausedAt?: null | string @go(JobPausedAt,*string) -} - -#UserPausedDetailsParameters: { -} - -// ClassificationJobSpec defines the desired state of ClassificationJob -#ClassificationJobSpec: { - v1.#ResourceSpec - forProvider: #ClassificationJobParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClassificationJobInitParameters @go(InitProvider) -} - -// ClassificationJobStatus defines the observed state of ClassificationJob. -#ClassificationJobStatus: { - v1.#ResourceStatus - atProvider?: #ClassificationJobObservation @go(AtProvider) -} - -// ClassificationJob is the Schema for the ClassificationJobs API. Provides a resource to manage an AWS Macie Classification Job. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClassificationJob: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.jobType) || (has(self.initProvider) && has(self.initProvider.jobType))",message="spec.forProvider.jobType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.s3JobDefinition) || (has(self.initProvider) && has(self.initProvider.s3JobDefinition))",message="spec.forProvider.s3JobDefinition is a required parameter" - spec: #ClassificationJobSpec @go(Spec) - status?: #ClassificationJobStatus @go(Status) -} - -// ClassificationJobList contains a list of ClassificationJobs -#ClassificationJobList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClassificationJob] @go(Items,[]ClassificationJob) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_customdataidentifier_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_customdataidentifier_types_go_gen.cue deleted file mode 100644 index ae9b982..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_customdataidentifier_types_go_gen.cue +++ /dev/null @@ -1,146 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/macie2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CustomDataIdentifierInitParameters: { - // A custom description of the custom data identifier. The description can contain as many as 512 characters. - description?: null | string @go(Description,*string) - - // An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression is the same as any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4 - 90 characters. Ignore words are case sensitive. - ignoreWords?: [...null | string] @go(IgnoreWords,[]*string) - - // An array that lists specific character sequences (keywords), one of which must be within proximity (maximum_match_distance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3 - 90 characters. Keywords aren't case sensitive. - keywords?: [...null | string] @go(Keywords,[]*string) - - // The maximum number of characters that can exist between text that matches the regex pattern and the character sequences specified by the keywords array. Macie includes or excludes a result based on the proximity of a keyword to text that matches the regex pattern. The distance can be 1 - 300 characters. The default value is 50. - maximumMatchDistance?: null | float64 @go(MaximumMatchDistance,*float64) - - // A custom name for the custom data identifier. The name can contain as many as 128 characters. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters. - regex?: null | string @go(Regex,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CustomDataIdentifierObservation: { - // The Amazon Resource Name (ARN) of the custom data identifier. - arn?: null | string @go(Arn,*string) - - // The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created. - createdAt?: null | string @go(CreatedAt,*string) - - // A custom description of the custom data identifier. The description can contain as many as 512 characters. - description?: null | string @go(Description,*string) - - // The unique identifier (ID) of the macie custom data identifier. - id?: null | string @go(ID,*string) - - // An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression is the same as any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4 - 90 characters. Ignore words are case sensitive. - ignoreWords?: [...null | string] @go(IgnoreWords,[]*string) - - // An array that lists specific character sequences (keywords), one of which must be within proximity (maximum_match_distance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3 - 90 characters. Keywords aren't case sensitive. - keywords?: [...null | string] @go(Keywords,[]*string) - - // The maximum number of characters that can exist between text that matches the regex pattern and the character sequences specified by the keywords array. Macie includes or excludes a result based on the proximity of a keyword to text that matches the regex pattern. The distance can be 1 - 300 characters. The default value is 50. - maximumMatchDistance?: null | float64 @go(MaximumMatchDistance,*float64) - - // A custom name for the custom data identifier. The name can contain as many as 128 characters. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters. - regex?: null | string @go(Regex,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#CustomDataIdentifierParameters: { - // A custom description of the custom data identifier. The description can contain as many as 512 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression is the same as any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4 - 90 characters. Ignore words are case sensitive. - // +kubebuilder:validation:Optional - ignoreWords?: [...null | string] @go(IgnoreWords,[]*string) - - // An array that lists specific character sequences (keywords), one of which must be within proximity (maximum_match_distance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3 - 90 characters. Keywords aren't case sensitive. - // +kubebuilder:validation:Optional - keywords?: [...null | string] @go(Keywords,[]*string) - - // The maximum number of characters that can exist between text that matches the regex pattern and the character sequences specified by the keywords array. Macie includes or excludes a result based on the proximity of a keyword to text that matches the regex pattern. The distance can be 1 - 300 characters. The default value is 50. - // +kubebuilder:validation:Optional - maximumMatchDistance?: null | float64 @go(MaximumMatchDistance,*float64) - - // A custom name for the custom data identifier. The name can contain as many as 128 characters. Conflicts with name_prefix. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters. - // +kubebuilder:validation:Optional - regex?: null | string @go(Regex,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// CustomDataIdentifierSpec defines the desired state of CustomDataIdentifier -#CustomDataIdentifierSpec: { - v1.#ResourceSpec - forProvider: #CustomDataIdentifierParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CustomDataIdentifierInitParameters @go(InitProvider) -} - -// CustomDataIdentifierStatus defines the observed state of CustomDataIdentifier. -#CustomDataIdentifierStatus: { - v1.#ResourceStatus - atProvider?: #CustomDataIdentifierObservation @go(AtProvider) -} - -// CustomDataIdentifier is the Schema for the CustomDataIdentifiers API. Provides a resource to manage an AWS Macie Custom Data Identifier. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CustomDataIdentifier: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CustomDataIdentifierSpec @go(Spec) - status?: #CustomDataIdentifierStatus @go(Status) -} - -// CustomDataIdentifierList contains a list of CustomDataIdentifiers -#CustomDataIdentifierList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CustomDataIdentifier] @go(Items,[]CustomDataIdentifier) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_findingsfilter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_findingsfilter_types_go_gen.cue deleted file mode 100644 index c0bd52f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_findingsfilter_types_go_gen.cue +++ /dev/null @@ -1,238 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/macie2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CriterionInitParameters: { - // The value for the property matches (equals) the specified value. If you specify multiple values, Amazon Macie uses OR logic to join the values. - eq?: [...null | string] @go(Eq,[]*string) - - // The value for the property exclusively matches (equals an exact match for) all the specified values. If you specify multiple values, Amazon Macie uses AND logic to join the values. - eqExactMatch?: [...null | string] @go(EqExactMatch,[]*string) - - // The name of the field to be evaluated. - field?: null | string @go(Field,*string) - - // The value for the property is greater than the specified value. - gt?: null | string @go(Gt,*string) - - // The value for the property is greater than or equal to the specified value. - gte?: null | string @go(Gte,*string) - - // The value for the property is less than the specified value. - lt?: null | string @go(Lt,*string) - - // The value for the property is less than or equal to the specified value. - lte?: null | string @go(Lte,*string) - - // The value for the property doesn't match (doesn't equal) the specified value. If you specify multiple values, Amazon Macie uses OR logic to join the values. - neq?: [...null | string] @go(Neq,[]*string) -} - -#CriterionObservation: { - // The value for the property matches (equals) the specified value. If you specify multiple values, Amazon Macie uses OR logic to join the values. - eq?: [...null | string] @go(Eq,[]*string) - - // The value for the property exclusively matches (equals an exact match for) all the specified values. If you specify multiple values, Amazon Macie uses AND logic to join the values. - eqExactMatch?: [...null | string] @go(EqExactMatch,[]*string) - - // The name of the field to be evaluated. - field?: null | string @go(Field,*string) - - // The value for the property is greater than the specified value. - gt?: null | string @go(Gt,*string) - - // The value for the property is greater than or equal to the specified value. - gte?: null | string @go(Gte,*string) - - // The value for the property is less than the specified value. - lt?: null | string @go(Lt,*string) - - // The value for the property is less than or equal to the specified value. - lte?: null | string @go(Lte,*string) - - // The value for the property doesn't match (doesn't equal) the specified value. If you specify multiple values, Amazon Macie uses OR logic to join the values. - neq?: [...null | string] @go(Neq,[]*string) -} - -#CriterionParameters: { - // The value for the property matches (equals) the specified value. If you specify multiple values, Amazon Macie uses OR logic to join the values. - // +kubebuilder:validation:Optional - eq?: [...null | string] @go(Eq,[]*string) - - // The value for the property exclusively matches (equals an exact match for) all the specified values. If you specify multiple values, Amazon Macie uses AND logic to join the values. - // +kubebuilder:validation:Optional - eqExactMatch?: [...null | string] @go(EqExactMatch,[]*string) - - // The name of the field to be evaluated. - // +kubebuilder:validation:Optional - field?: null | string @go(Field,*string) - - // The value for the property is greater than the specified value. - // +kubebuilder:validation:Optional - gt?: null | string @go(Gt,*string) - - // The value for the property is greater than or equal to the specified value. - // +kubebuilder:validation:Optional - gte?: null | string @go(Gte,*string) - - // The value for the property is less than the specified value. - // +kubebuilder:validation:Optional - lt?: null | string @go(Lt,*string) - - // The value for the property is less than or equal to the specified value. - // +kubebuilder:validation:Optional - lte?: null | string @go(Lte,*string) - - // The value for the property doesn't match (doesn't equal) the specified value. If you specify multiple values, Amazon Macie uses OR logic to join the values. - // +kubebuilder:validation:Optional - neq?: [...null | string] @go(Neq,[]*string) -} - -#FindingCriteriaInitParameters: { - // A condition that specifies the property, operator, and one or more values to use to filter the results. (documented below) - criterion?: [...#CriterionInitParameters] @go(Criterion,[]CriterionInitParameters) -} - -#FindingCriteriaObservation: { - // A condition that specifies the property, operator, and one or more values to use to filter the results. (documented below) - criterion?: [...#CriterionObservation] @go(Criterion,[]CriterionObservation) -} - -#FindingCriteriaParameters: { - // A condition that specifies the property, operator, and one or more values to use to filter the results. (documented below) - // +kubebuilder:validation:Optional - criterion?: [...#CriterionParameters] @go(Criterion,[]CriterionParameters) -} - -#FindingsFilterInitParameters: { - // The action to perform on findings that meet the filter criteria (finding_criteria). Valid values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings. - action?: null | string @go(Action,*string) - - // A custom description of the filter. The description can contain as many as 512 characters. - description?: null | string @go(Description,*string) - - // The criteria to use to filter findings. - findingCriteria?: [...#FindingCriteriaInitParameters] @go(FindingCriteria,[]FindingCriteriaInitParameters) - - // A custom name for the filter. The name must contain at least 3 characters and can contain as many as 64 characters. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // The position of the filter in the list of saved filters on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings. - position?: null | float64 @go(Position,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FindingsFilterObservation: { - // The action to perform on findings that meet the filter criteria (finding_criteria). Valid values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings. - action?: null | string @go(Action,*string) - - // The Amazon Resource Name (ARN) of the Findings Filter. - arn?: null | string @go(Arn,*string) - - // A custom description of the filter. The description can contain as many as 512 characters. - description?: null | string @go(Description,*string) - - // The criteria to use to filter findings. - findingCriteria?: [...#FindingCriteriaObservation] @go(FindingCriteria,[]FindingCriteriaObservation) - - // The unique identifier (ID) of the macie Findings Filter. - id?: null | string @go(ID,*string) - - // A custom name for the filter. The name must contain at least 3 characters and can contain as many as 64 characters. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // The position of the filter in the list of saved filters on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings. - position?: null | float64 @go(Position,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#FindingsFilterParameters: { - // The action to perform on findings that meet the filter criteria (finding_criteria). Valid values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) - - // A custom description of the filter. The description can contain as many as 512 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The criteria to use to filter findings. - // +kubebuilder:validation:Optional - findingCriteria?: [...#FindingCriteriaParameters] @go(FindingCriteria,[]FindingCriteriaParameters) - - // A custom name for the filter. The name must contain at least 3 characters and can contain as many as 64 characters. Conflicts with name_prefix. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The position of the filter in the list of saved filters on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings. - // +kubebuilder:validation:Optional - position?: null | float64 @go(Position,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// FindingsFilterSpec defines the desired state of FindingsFilter -#FindingsFilterSpec: { - v1.#ResourceSpec - forProvider: #FindingsFilterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FindingsFilterInitParameters @go(InitProvider) -} - -// FindingsFilterStatus defines the observed state of FindingsFilter. -#FindingsFilterStatus: { - v1.#ResourceStatus - atProvider?: #FindingsFilterObservation @go(AtProvider) -} - -// FindingsFilter is the Schema for the FindingsFilters API. Provides a resource to manage an Amazon Macie Findings Filter. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FindingsFilter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.action) || (has(self.initProvider) && has(self.initProvider.action))",message="spec.forProvider.action is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.findingCriteria) || (has(self.initProvider) && has(self.initProvider.findingCriteria))",message="spec.forProvider.findingCriteria is a required parameter" - spec: #FindingsFilterSpec @go(Spec) - status?: #FindingsFilterStatus @go(Status) -} - -// FindingsFilterList contains a list of FindingsFilters -#FindingsFilterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FindingsFilter] @go(Items,[]FindingsFilter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 357f7a0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/macie2/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=macie2.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "macie2.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_invitationaccepter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_invitationaccepter_types_go_gen.cue deleted file mode 100644 index a1c276d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_invitationaccepter_types_go_gen.cue +++ /dev/null @@ -1,84 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/macie2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InvitationAccepterInitParameters: { - // The AWS account ID for the account that sent the invitation. - administratorAccountId?: null | string @go(AdministratorAccountID,*string) -} - -#InvitationAccepterObservation: { - // The AWS account ID for the account that sent the invitation. - administratorAccountId?: null | string @go(AdministratorAccountID,*string) - - // The unique identifier (ID) of the macie invitation accepter. - id?: null | string @go(ID,*string) - - // The unique identifier for the invitation. - invitationId?: null | string @go(InvitationID,*string) -} - -#InvitationAccepterParameters: { - // The AWS account ID for the account that sent the invitation. - // +kubebuilder:validation:Optional - administratorAccountId?: null | string @go(AdministratorAccountID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// InvitationAccepterSpec defines the desired state of InvitationAccepter -#InvitationAccepterSpec: { - v1.#ResourceSpec - forProvider: #InvitationAccepterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InvitationAccepterInitParameters @go(InitProvider) -} - -// InvitationAccepterStatus defines the observed state of InvitationAccepter. -#InvitationAccepterStatus: { - v1.#ResourceStatus - atProvider?: #InvitationAccepterObservation @go(AtProvider) -} - -// InvitationAccepter is the Schema for the InvitationAccepters API. Provides a resource to manage an Amazon Macie Invitation Accepter. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#InvitationAccepter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.administratorAccountId) || (has(self.initProvider) && has(self.initProvider.administratorAccountId))",message="spec.forProvider.administratorAccountId is a required parameter" - spec: #InvitationAccepterSpec @go(Spec) - status?: #InvitationAccepterStatus @go(Status) -} - -// InvitationAccepterList contains a list of InvitationAccepters -#InvitationAccepterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#InvitationAccepter] @go(Items,[]InvitationAccepter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_member_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_member_types_go_gen.cue deleted file mode 100644 index 9ed615f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/macie2/v1beta1/zz_member_types_go_gen.cue +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/macie2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MemberInitParameters: { - // The AWS account ID for the account. - accountId?: null | string @go(AccountID,*string) - - // The email address for the account. - email?: null | string @go(Email,*string) - - // Specifies whether to send an email notification to the root user of each account that the invitation will be sent to. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. To send an email notification to the root user of each account, set this value to true. - invitationDisableEmailNotification?: null | bool @go(InvitationDisableEmailNotification,*bool) - - // A custom message to include in the invitation. Amazon Macie adds this message to the standard content that it sends for an invitation. - invitationMessage?: null | string @go(InvitationMessage,*string) - - // Send an invitation to a member - invite?: null | bool @go(Invite,*bool) - - // Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#MemberObservation: { - // The AWS account ID for the account. - accountId?: null | string @go(AccountID,*string) - - // The AWS account ID for the administrator account. - administratorAccountId?: null | string @go(AdministratorAccountID,*string) - - // The Amazon Resource Name (ARN) of the account. - arn?: null | string @go(Arn,*string) - - // The email address for the account. - email?: null | string @go(Email,*string) - - // The unique identifier (ID) of the macie Member. - id?: null | string @go(ID,*string) - - // Specifies whether to send an email notification to the root user of each account that the invitation will be sent to. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. To send an email notification to the root user of each account, set this value to true. - invitationDisableEmailNotification?: null | bool @go(InvitationDisableEmailNotification,*bool) - - // A custom message to include in the invitation. Amazon Macie adds this message to the standard content that it sends for an invitation. - invitationMessage?: null | string @go(InvitationMessage,*string) - - // Send an invitation to a member - invite?: null | bool @go(Invite,*bool) - - // The date and time, in UTC and extended RFC 3339 format, when an Amazon Macie membership invitation was last sent to the account. This value is null if a Macie invitation hasn't been sent to the account. - invitedAt?: null | string @go(InvitedAt,*string) - - // The AWS account ID for the account. - masterAccountId?: null | string @go(MasterAccountID,*string) - - // The current status of the relationship between the account and the administrator account. - relationshipStatus?: null | string @go(RelationshipStatus,*string) - - // Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the relationship between the account and the administrator account. - updatedAt?: null | string @go(UpdatedAt,*string) -} - -#MemberParameters: { - // The AWS account ID for the account. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // The email address for the account. - // +kubebuilder:validation:Optional - email?: null | string @go(Email,*string) - - // Specifies whether to send an email notification to the root user of each account that the invitation will be sent to. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. To send an email notification to the root user of each account, set this value to true. - // +kubebuilder:validation:Optional - invitationDisableEmailNotification?: null | bool @go(InvitationDisableEmailNotification,*bool) - - // A custom message to include in the invitation. Amazon Macie adds this message to the standard content that it sends for an invitation. - // +kubebuilder:validation:Optional - invitationMessage?: null | string @go(InvitationMessage,*string) - - // Send an invitation to a member - // +kubebuilder:validation:Optional - invite?: null | bool @go(Invite,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// MemberSpec defines the desired state of Member -#MemberSpec: { - v1.#ResourceSpec - forProvider: #MemberParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MemberInitParameters @go(InitProvider) -} - -// MemberStatus defines the observed state of Member. -#MemberStatus: { - v1.#ResourceStatus - atProvider?: #MemberObservation @go(AtProvider) -} - -// Member is the Schema for the Members API. Provides a resource to manage an Amazon Macie Member. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Member: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accountId) || (has(self.initProvider) && has(self.initProvider.accountId))",message="spec.forProvider.accountId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.email) || (has(self.initProvider) && has(self.initProvider.email))",message="spec.forProvider.email is a required parameter" - spec: #MemberSpec @go(Spec) - status?: #MemberStatus @go(Status) -} - -// MemberList contains a list of Members -#MemberList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Member] @go(Items,[]Member) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediaconvert/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/mediaconvert/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index a7cea1b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediaconvert/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/mediaconvert/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=mediaconvert.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "mediaconvert.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediaconvert/v1beta1/zz_queue_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/mediaconvert/v1beta1/zz_queue_types_go_gen.cue deleted file mode 100644 index 2cbba61..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediaconvert/v1beta1/zz_queue_types_go_gen.cue +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/mediaconvert/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#QueueInitParameters: { - // A description of the queue - description?: null | string @go(Description,*string) - - // Specifies whether the pricing plan for the queue is on-demand or reserved. Valid values are ON_DEMAND or RESERVED. Default to ON_DEMAND. - pricingPlan?: null | string @go(PricingPlan,*string) - - // A detail pricing plan of the reserved queue. See below. - reservationPlanSettings?: [...#ReservationPlanSettingsInitParameters] @go(ReservationPlanSettings,[]ReservationPlanSettingsInitParameters) - - // A status of the queue. Valid values are ACTIVE or RESERVED. Default to PAUSED. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#QueueObservation: { - // The Arn of the queue - arn?: null | string @go(Arn,*string) - - // A description of the queue - description?: null | string @go(Description,*string) - - // The same as name - id?: null | string @go(ID,*string) - - // Specifies whether the pricing plan for the queue is on-demand or reserved. Valid values are ON_DEMAND or RESERVED. Default to ON_DEMAND. - pricingPlan?: null | string @go(PricingPlan,*string) - - // A detail pricing plan of the reserved queue. See below. - reservationPlanSettings?: [...#ReservationPlanSettingsObservation] @go(ReservationPlanSettings,[]ReservationPlanSettingsObservation) - - // A status of the queue. Valid values are ACTIVE or RESERVED. Default to PAUSED. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#QueueParameters: { - // A description of the queue - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies whether the pricing plan for the queue is on-demand or reserved. Valid values are ON_DEMAND or RESERVED. Default to ON_DEMAND. - // +kubebuilder:validation:Optional - pricingPlan?: null | string @go(PricingPlan,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A detail pricing plan of the reserved queue. See below. - // +kubebuilder:validation:Optional - reservationPlanSettings?: [...#ReservationPlanSettingsParameters] @go(ReservationPlanSettings,[]ReservationPlanSettingsParameters) - - // A status of the queue. Valid values are ACTIVE or RESERVED. Default to PAUSED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ReservationPlanSettingsInitParameters: { - // The length of the term of your reserved queue pricing plan commitment. Valid value is ONE_YEAR. - commitment?: null | string @go(Commitment,*string) - - // Specifies whether the term of your reserved queue pricing plan. Valid values are AUTO_RENEW or EXPIRE. - renewalType?: null | string @go(RenewalType,*string) - - // Specifies the number of reserved transcode slots (RTS) for queue. - reservedSlots?: null | float64 @go(ReservedSlots,*float64) -} - -#ReservationPlanSettingsObservation: { - // The length of the term of your reserved queue pricing plan commitment. Valid value is ONE_YEAR. - commitment?: null | string @go(Commitment,*string) - - // Specifies whether the term of your reserved queue pricing plan. Valid values are AUTO_RENEW or EXPIRE. - renewalType?: null | string @go(RenewalType,*string) - - // Specifies the number of reserved transcode slots (RTS) for queue. - reservedSlots?: null | float64 @go(ReservedSlots,*float64) -} - -#ReservationPlanSettingsParameters: { - // The length of the term of your reserved queue pricing plan commitment. Valid value is ONE_YEAR. - // +kubebuilder:validation:Optional - commitment?: null | string @go(Commitment,*string) - - // Specifies whether the term of your reserved queue pricing plan. Valid values are AUTO_RENEW or EXPIRE. - // +kubebuilder:validation:Optional - renewalType?: null | string @go(RenewalType,*string) - - // Specifies the number of reserved transcode slots (RTS) for queue. - // +kubebuilder:validation:Optional - reservedSlots?: null | float64 @go(ReservedSlots,*float64) -} - -// QueueSpec defines the desired state of Queue -#QueueSpec: { - v1.#ResourceSpec - forProvider: #QueueParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #QueueInitParameters @go(InitProvider) -} - -// QueueStatus defines the observed state of Queue. -#QueueStatus: { - v1.#ResourceStatus - atProvider?: #QueueObservation @go(AtProvider) -} - -// Queue is the Schema for the Queues API. Provides an AWS Elemental MediaConvert Queue. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Queue: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #QueueSpec @go(Spec) - status?: #QueueStatus @go(Status) -} - -// QueueList contains a list of Queues -#QueueList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Queue] @go(Items,[]Queue) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_channel_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_channel_types_go_gen.cue deleted file mode 100644 index 51e1d8b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_channel_types_go_gen.cue +++ /dev/null @@ -1,6178 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/medialive/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AacSettingsInitParameters: { - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - - // Mono, Stereo, or 5.1 channel layout. - codingMode?: null | string @go(CodingMode,*string) - - // Set to "broadcasterMixedAd" when input contains pre-mixed main audio + AD (narration) as a stereo pair. - inputType?: null | string @go(InputType,*string) - - // AAC profile. - profile?: null | string @go(Profile,*string) - - // The rate control mode. - rateControlMode?: null | string @go(RateControlMode,*string) - - // Sets LATM/LOAS AAC output for raw containers. - rawFormat?: null | string @go(RawFormat,*string) - - // Sample rate in Hz. - sampleRate?: null | float64 @go(SampleRate,*float64) - - // Use MPEG-2 AAC audio instead of MPEG-4 AAC audio for raw or MPEG-2 Transport Stream containers. - spec?: null | string @go(Spec,*string) - - // VBR Quality Level - Only used if rateControlMode is VBR. - vbrQuality?: null | string @go(VbrQuality,*string) -} - -#AacSettingsObservation: { - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - - // Mono, Stereo, or 5.1 channel layout. - codingMode?: null | string @go(CodingMode,*string) - - // Set to "broadcasterMixedAd" when input contains pre-mixed main audio + AD (narration) as a stereo pair. - inputType?: null | string @go(InputType,*string) - - // AAC profile. - profile?: null | string @go(Profile,*string) - - // The rate control mode. - rateControlMode?: null | string @go(RateControlMode,*string) - - // Sets LATM/LOAS AAC output for raw containers. - rawFormat?: null | string @go(RawFormat,*string) - - // Sample rate in Hz. - sampleRate?: null | float64 @go(SampleRate,*float64) - - // Use MPEG-2 AAC audio instead of MPEG-4 AAC audio for raw or MPEG-2 Transport Stream containers. - spec?: null | string @go(Spec,*string) - - // VBR Quality Level - Only used if rateControlMode is VBR. - vbrQuality?: null | string @go(VbrQuality,*string) -} - -#AacSettingsParameters: { - // Average bitrate in bits/second. - // +kubebuilder:validation:Optional - bitrate?: null | float64 @go(Bitrate,*float64) - - // Mono, Stereo, or 5.1 channel layout. - // +kubebuilder:validation:Optional - codingMode?: null | string @go(CodingMode,*string) - - // Set to "broadcasterMixedAd" when input contains pre-mixed main audio + AD (narration) as a stereo pair. - // +kubebuilder:validation:Optional - inputType?: null | string @go(InputType,*string) - - // AAC profile. - // +kubebuilder:validation:Optional - profile?: null | string @go(Profile,*string) - - // The rate control mode. - // +kubebuilder:validation:Optional - rateControlMode?: null | string @go(RateControlMode,*string) - - // Sets LATM/LOAS AAC output for raw containers. - // +kubebuilder:validation:Optional - rawFormat?: null | string @go(RawFormat,*string) - - // Sample rate in Hz. - // +kubebuilder:validation:Optional - sampleRate?: null | float64 @go(SampleRate,*float64) - - // Use MPEG-2 AAC audio instead of MPEG-4 AAC audio for raw or MPEG-2 Transport Stream containers. - // +kubebuilder:validation:Optional - spec?: null | string @go(Spec,*string) - - // VBR Quality Level - Only used if rateControlMode is VBR. - // +kubebuilder:validation:Optional - vbrQuality?: null | string @go(VbrQuality,*string) -} - -#Ac3SettingsInitParameters: { - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - - // Specifies the bitstream mode (bsmod) for the emitted AC-3 stream. - bitstreamMode?: null | string @go(BitstreamMode,*string) - - // Mono, Stereo, or 5.1 channel layout. - codingMode?: null | string @go(CodingMode,*string) - - // Sets the dialnorm of the output. - dialnorm?: null | float64 @go(Dialnorm,*float64) - - // If set to filmStandard, adds dynamic range compression signaling to the output bitstream as defined in the Dolby Digital specification. - drcProfile?: null | string @go(DrcProfile,*string) - - // When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding. - lfeFilter?: null | string @go(LfeFilter,*string) - - // Metadata control. - metadataControl?: null | string @go(MetadataControl,*string) -} - -#Ac3SettingsObservation: { - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - - // Specifies the bitstream mode (bsmod) for the emitted AC-3 stream. - bitstreamMode?: null | string @go(BitstreamMode,*string) - - // Mono, Stereo, or 5.1 channel layout. - codingMode?: null | string @go(CodingMode,*string) - - // Sets the dialnorm of the output. - dialnorm?: null | float64 @go(Dialnorm,*float64) - - // If set to filmStandard, adds dynamic range compression signaling to the output bitstream as defined in the Dolby Digital specification. - drcProfile?: null | string @go(DrcProfile,*string) - - // When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding. - lfeFilter?: null | string @go(LfeFilter,*string) - - // Metadata control. - metadataControl?: null | string @go(MetadataControl,*string) -} - -#Ac3SettingsParameters: { - // Average bitrate in bits/second. - // +kubebuilder:validation:Optional - bitrate?: null | float64 @go(Bitrate,*float64) - - // Specifies the bitstream mode (bsmod) for the emitted AC-3 stream. - // +kubebuilder:validation:Optional - bitstreamMode?: null | string @go(BitstreamMode,*string) - - // Mono, Stereo, or 5.1 channel layout. - // +kubebuilder:validation:Optional - codingMode?: null | string @go(CodingMode,*string) - - // Sets the dialnorm of the output. - // +kubebuilder:validation:Optional - dialnorm?: null | float64 @go(Dialnorm,*float64) - - // If set to filmStandard, adds dynamic range compression signaling to the output bitstream as defined in the Dolby Digital specification. - // +kubebuilder:validation:Optional - drcProfile?: null | string @go(DrcProfile,*string) - - // When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding. - // +kubebuilder:validation:Optional - lfeFilter?: null | string @go(LfeFilter,*string) - - // Metadata control. - // +kubebuilder:validation:Optional - metadataControl?: null | string @go(MetadataControl,*string) -} - -#AncillarySourceSettingsInitParameters: { - sourceAncillaryChannelNumber?: null | float64 @go(SourceAncillaryChannelNumber,*float64) -} - -#AncillarySourceSettingsObservation: { - sourceAncillaryChannelNumber?: null | float64 @go(SourceAncillaryChannelNumber,*float64) -} - -#AncillarySourceSettingsParameters: { - // +kubebuilder:validation:Optional - sourceAncillaryChannelNumber?: null | float64 @go(SourceAncillaryChannelNumber,*float64) -} - -#ArchiveCdnSettingsInitParameters: { - // Archive S3 Settings. See Archive S3 Settings for more details. - archiveS3Settings?: [...#ArchiveS3SettingsInitParameters] @go(ArchiveS3Settings,[]ArchiveS3SettingsInitParameters) -} - -#ArchiveCdnSettingsObservation: { - // Archive S3 Settings. See Archive S3 Settings for more details. - archiveS3Settings?: [...#ArchiveS3SettingsObservation] @go(ArchiveS3Settings,[]ArchiveS3SettingsObservation) -} - -#ArchiveCdnSettingsParameters: { - // Archive S3 Settings. See Archive S3 Settings for more details. - // +kubebuilder:validation:Optional - archiveS3Settings?: [...#ArchiveS3SettingsParameters] @go(ArchiveS3Settings,[]ArchiveS3SettingsParameters) -} - -#ArchiveGroupSettingsInitParameters: { - // Parameters that control the interactions with the CDN. See Archive CDN Settings for more details. - archiveCdnSettings?: [...#ArchiveCdnSettingsInitParameters] @go(ArchiveCdnSettings,[]ArchiveCdnSettingsInitParameters) - - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#DestinationInitParameters] @go(Destination,[]DestinationInitParameters) - - // Number of seconds to write to archive file before closing and starting a new one. - rolloverInterval?: null | float64 @go(RolloverInterval,*float64) -} - -#ArchiveGroupSettingsObservation: { - // Parameters that control the interactions with the CDN. See Archive CDN Settings for more details. - archiveCdnSettings?: [...#ArchiveCdnSettingsObservation] @go(ArchiveCdnSettings,[]ArchiveCdnSettingsObservation) - - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#DestinationObservation] @go(Destination,[]DestinationObservation) - - // Number of seconds to write to archive file before closing and starting a new one. - rolloverInterval?: null | float64 @go(RolloverInterval,*float64) -} - -#ArchiveGroupSettingsParameters: { - // Parameters that control the interactions with the CDN. See Archive CDN Settings for more details. - // +kubebuilder:validation:Optional - archiveCdnSettings?: [...#ArchiveCdnSettingsParameters] @go(ArchiveCdnSettings,[]ArchiveCdnSettingsParameters) - - // A director and base filename where archive files should be written. See Destination for more details. - // +kubebuilder:validation:Optional - destination: [...#DestinationParameters] @go(Destination,[]DestinationParameters) - - // Number of seconds to write to archive file before closing and starting a new one. - // +kubebuilder:validation:Optional - rolloverInterval?: null | float64 @go(RolloverInterval,*float64) -} - -#ArchiveOutputSettingsInitParameters: { - // Settings specific to the container type of the file. See Container Settings for more details. - containerSettings?: [...#ContainerSettingsInitParameters] @go(ContainerSettings,[]ContainerSettingsInitParameters) - - // Output file extension. - extension?: null | string @go(Extension,*string) - - // String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - nameModifier?: null | string @go(NameModifier,*string) -} - -#ArchiveOutputSettingsObservation: { - // Settings specific to the container type of the file. See Container Settings for more details. - containerSettings?: [...#ContainerSettingsObservation] @go(ContainerSettings,[]ContainerSettingsObservation) - - // Output file extension. - extension?: null | string @go(Extension,*string) - - // String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - nameModifier?: null | string @go(NameModifier,*string) -} - -#ArchiveOutputSettingsParameters: { - // Settings specific to the container type of the file. See Container Settings for more details. - // +kubebuilder:validation:Optional - containerSettings?: [...#ContainerSettingsParameters] @go(ContainerSettings,[]ContainerSettingsParameters) - - // Output file extension. - // +kubebuilder:validation:Optional - extension?: null | string @go(Extension,*string) - - // String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - // +kubebuilder:validation:Optional - nameModifier?: null | string @go(NameModifier,*string) -} - -#ArchiveS3SettingsInitParameters: { - // Specify the canned ACL to apply to each S3 request. - cannedAcl?: null | string @go(CannedACL,*string) -} - -#ArchiveS3SettingsObservation: { - // Specify the canned ACL to apply to each S3 request. - cannedAcl?: null | string @go(CannedACL,*string) -} - -#ArchiveS3SettingsParameters: { - // Specify the canned ACL to apply to each S3 request. - // +kubebuilder:validation:Optional - cannedAcl?: null | string @go(CannedACL,*string) -} - -#AudioDescriptionsInitParameters: { - // Advanced audio normalization settings. See Audio Normalization Settings for more details. - audioNormalizationSettings?: [...#AudioNormalizationSettingsInitParameters] @go(AudioNormalizationSettings,[]AudioNormalizationSettingsInitParameters) - - // The name of the audio selector used as the source for this AudioDescription. - audioSelectorName?: null | string @go(AudioSelectorName,*string) - - // Applies only if audioTypeControl is useConfigured. The values for audioType are defined in ISO-IEC 13818-1. - audioType?: null | string @go(AudioType,*string) - - // Determined how audio type is determined. - audioTypeControl?: null | string @go(AudioTypeControl,*string) - - // Settings to configure one or more solutions that insert audio watermarks in the audio encode. See Audio Watermark Settings for more details. - audioWatermarkSettings?: [...#AudioWatermarkSettingsInitParameters] @go(AudioWatermarkSettings,[]AudioWatermarkSettingsInitParameters) - - // Audio codec settings. See Audio Codec Settings for more details. - codecSettings?: [...#CodecSettingsInitParameters] @go(CodecSettings,[]CodecSettingsInitParameters) - - // When specified this field indicates the three letter language code of the caption track to extract from the source. - languageCode?: null | string @go(LanguageCode,*string) - languageCodeControl?: null | string @go(LanguageCodeControl,*string) - - // Name of the Channel. - name?: null | string @go(Name,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - remixSettings?: [...#RemixSettingsInitParameters] @go(RemixSettings,[]RemixSettingsInitParameters) - - // Stream name RTMP destinations (URLs of type rtmp://) - streamName?: null | string @go(StreamName,*string) -} - -#AudioDescriptionsObservation: { - // Advanced audio normalization settings. See Audio Normalization Settings for more details. - audioNormalizationSettings?: [...#AudioNormalizationSettingsObservation] @go(AudioNormalizationSettings,[]AudioNormalizationSettingsObservation) - - // The name of the audio selector used as the source for this AudioDescription. - audioSelectorName?: null | string @go(AudioSelectorName,*string) - - // Applies only if audioTypeControl is useConfigured. The values for audioType are defined in ISO-IEC 13818-1. - audioType?: null | string @go(AudioType,*string) - - // Determined how audio type is determined. - audioTypeControl?: null | string @go(AudioTypeControl,*string) - - // Settings to configure one or more solutions that insert audio watermarks in the audio encode. See Audio Watermark Settings for more details. - audioWatermarkSettings?: [...#AudioWatermarkSettingsObservation] @go(AudioWatermarkSettings,[]AudioWatermarkSettingsObservation) - - // Audio codec settings. See Audio Codec Settings for more details. - codecSettings?: [...#CodecSettingsObservation] @go(CodecSettings,[]CodecSettingsObservation) - - // When specified this field indicates the three letter language code of the caption track to extract from the source. - languageCode?: null | string @go(LanguageCode,*string) - languageCodeControl?: null | string @go(LanguageCodeControl,*string) - - // Name of the Channel. - name?: null | string @go(Name,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - remixSettings?: [...#RemixSettingsObservation] @go(RemixSettings,[]RemixSettingsObservation) - - // Stream name RTMP destinations (URLs of type rtmp://) - streamName?: null | string @go(StreamName,*string) -} - -#AudioDescriptionsParameters: { - // Advanced audio normalization settings. See Audio Normalization Settings for more details. - // +kubebuilder:validation:Optional - audioNormalizationSettings?: [...#AudioNormalizationSettingsParameters] @go(AudioNormalizationSettings,[]AudioNormalizationSettingsParameters) - - // The name of the audio selector used as the source for this AudioDescription. - // +kubebuilder:validation:Optional - audioSelectorName?: null | string @go(AudioSelectorName,*string) - - // Applies only if audioTypeControl is useConfigured. The values for audioType are defined in ISO-IEC 13818-1. - // +kubebuilder:validation:Optional - audioType?: null | string @go(AudioType,*string) - - // Determined how audio type is determined. - // +kubebuilder:validation:Optional - audioTypeControl?: null | string @go(AudioTypeControl,*string) - - // Settings to configure one or more solutions that insert audio watermarks in the audio encode. See Audio Watermark Settings for more details. - // +kubebuilder:validation:Optional - audioWatermarkSettings?: [...#AudioWatermarkSettingsParameters] @go(AudioWatermarkSettings,[]AudioWatermarkSettingsParameters) - - // Audio codec settings. See Audio Codec Settings for more details. - // +kubebuilder:validation:Optional - codecSettings?: [...#CodecSettingsParameters] @go(CodecSettings,[]CodecSettingsParameters) - - // When specified this field indicates the three letter language code of the caption track to extract from the source. - // +kubebuilder:validation:Optional - languageCode?: null | string @go(LanguageCode,*string) - - // +kubebuilder:validation:Optional - languageCodeControl?: null | string @go(LanguageCodeControl,*string) - - // Name of the Channel. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - remixSettings?: [...#RemixSettingsParameters] @go(RemixSettings,[]RemixSettingsParameters) - - // Stream name RTMP destinations (URLs of type rtmp://) - // +kubebuilder:validation:Optional - streamName?: null | string @go(StreamName,*string) -} - -#AudioHlsRenditionSelectionInitParameters: { - // User-specified id. Ths is used in an output group or an output. - groupId?: null | string @go(GroupID,*string) - - // Name of the Channel. - name?: null | string @go(Name,*string) -} - -#AudioHlsRenditionSelectionObservation: { - // User-specified id. Ths is used in an output group or an output. - groupId?: null | string @go(GroupID,*string) - - // Name of the Channel. - name?: null | string @go(Name,*string) -} - -#AudioHlsRenditionSelectionParameters: { - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - groupId?: null | string @go(GroupID,*string) - - // Name of the Channel. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#AudioLanguageSelectionInitParameters: { - // When specified this field indicates the three letter language code of the caption track to extract from the source. - languageCode?: null | string @go(LanguageCode,*string) - languageSelectionPolicy?: null | string @go(LanguageSelectionPolicy,*string) -} - -#AudioLanguageSelectionObservation: { - // When specified this field indicates the three letter language code of the caption track to extract from the source. - languageCode?: null | string @go(LanguageCode,*string) - languageSelectionPolicy?: null | string @go(LanguageSelectionPolicy,*string) -} - -#AudioLanguageSelectionParameters: { - // When specified this field indicates the three letter language code of the caption track to extract from the source. - // +kubebuilder:validation:Optional - languageCode?: null | string @go(LanguageCode,*string) - - // +kubebuilder:validation:Optional - languageSelectionPolicy?: null | string @go(LanguageSelectionPolicy,*string) -} - -#AudioNormalizationSettingsInitParameters: { - // Audio normalization algorithm to use. itu17701 conforms to the CALM Act specification, itu17702 to the EBU R-128 specification. - algorithm?: null | string @go(Algorithm,*string) - - // Algorithm control for the audio description. - algorithmControl?: null | string @go(AlgorithmControl,*string) - - // Target LKFS (loudness) to adjust volume to. - targetLkfs?: null | float64 @go(TargetLkfs,*float64) -} - -#AudioNormalizationSettingsObservation: { - // Audio normalization algorithm to use. itu17701 conforms to the CALM Act specification, itu17702 to the EBU R-128 specification. - algorithm?: null | string @go(Algorithm,*string) - - // Algorithm control for the audio description. - algorithmControl?: null | string @go(AlgorithmControl,*string) - - // Target LKFS (loudness) to adjust volume to. - targetLkfs?: null | float64 @go(TargetLkfs,*float64) -} - -#AudioNormalizationSettingsParameters: { - // Audio normalization algorithm to use. itu17701 conforms to the CALM Act specification, itu17702 to the EBU R-128 specification. - // +kubebuilder:validation:Optional - algorithm?: null | string @go(Algorithm,*string) - - // Algorithm control for the audio description. - // +kubebuilder:validation:Optional - algorithmControl?: null | string @go(AlgorithmControl,*string) - - // Target LKFS (loudness) to adjust volume to. - // +kubebuilder:validation:Optional - targetLkfs?: null | float64 @go(TargetLkfs,*float64) -} - -#AudioOnlyHlsSettingsInitParameters: { - // User-specified id. Ths is used in an output group or an output. - audioGroupId?: null | string @go(AudioGroupID,*string) - audioOnlyImage?: [...#AudioOnlyImageInitParameters] @go(AudioOnlyImage,[]AudioOnlyImageInitParameters) - audioTrackType?: null | string @go(AudioTrackType,*string) - segmentType?: null | string @go(SegmentType,*string) -} - -#AudioOnlyHlsSettingsObservation: { - // User-specified id. Ths is used in an output group or an output. - audioGroupId?: null | string @go(AudioGroupID,*string) - audioOnlyImage?: [...#AudioOnlyImageObservation] @go(AudioOnlyImage,[]AudioOnlyImageObservation) - audioTrackType?: null | string @go(AudioTrackType,*string) - segmentType?: null | string @go(SegmentType,*string) -} - -#AudioOnlyHlsSettingsParameters: { - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - audioGroupId?: null | string @go(AudioGroupID,*string) - - // +kubebuilder:validation:Optional - audioOnlyImage?: [...#AudioOnlyImageParameters] @go(AudioOnlyImage,[]AudioOnlyImageParameters) - - // +kubebuilder:validation:Optional - audioTrackType?: null | string @go(AudioTrackType,*string) - - // +kubebuilder:validation:Optional - segmentType?: null | string @go(SegmentType,*string) -} - -#AudioOnlyImageInitParameters: { - // Key used to extract the password from EC2 Parameter store. - passwordParam?: null | string @go(PasswordParam,*string) - - // Path to a file accessible to the live stream. - uri?: null | string @go(URI,*string) - - // Username for destination. - username?: null | string @go(Username,*string) -} - -#AudioOnlyImageObservation: { - // Key used to extract the password from EC2 Parameter store. - passwordParam?: null | string @go(PasswordParam,*string) - - // Path to a file accessible to the live stream. - uri?: null | string @go(URI,*string) - - // Username for destination. - username?: null | string @go(Username,*string) -} - -#AudioOnlyImageParameters: { - // Key used to extract the password from EC2 Parameter store. - // +kubebuilder:validation:Optional - passwordParam?: null | string @go(PasswordParam,*string) - - // Path to a file accessible to the live stream. - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) - - // Username for destination. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -#AudioPidSelectionInitParameters: { - // User-specified id. Ths is used in an output group or an output. - pid?: null | float64 @go(Pid,*float64) -} - -#AudioPidSelectionObservation: { - // User-specified id. Ths is used in an output group or an output. - pid?: null | float64 @go(Pid,*float64) -} - -#AudioPidSelectionParameters: { - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - pid?: null | float64 @go(Pid,*float64) -} - -#AudioSelectorInitParameters: { - // Name of the Channel. - name?: null | string @go(Name,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - selectorSettings?: [...#SelectorSettingsInitParameters] @go(SelectorSettings,[]SelectorSettingsInitParameters) -} - -#AudioSelectorObservation: { - // Name of the Channel. - name?: null | string @go(Name,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - selectorSettings?: [...#SelectorSettingsObservation] @go(SelectorSettings,[]SelectorSettingsObservation) -} - -#AudioSelectorParameters: { - // Name of the Channel. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - selectorSettings?: [...#SelectorSettingsParameters] @go(SelectorSettings,[]SelectorSettingsParameters) -} - -#AudioSilenceSettingsInitParameters: { - // The name of the audio selector used as the source for this AudioDescription. - audioSelectorName?: null | string @go(AudioSelectorName,*string) - audioSilenceThresholdMsec?: null | float64 @go(AudioSilenceThresholdMsec,*float64) -} - -#AudioSilenceSettingsObservation: { - // The name of the audio selector used as the source for this AudioDescription. - audioSelectorName?: null | string @go(AudioSelectorName,*string) - audioSilenceThresholdMsec?: null | float64 @go(AudioSilenceThresholdMsec,*float64) -} - -#AudioSilenceSettingsParameters: { - // The name of the audio selector used as the source for this AudioDescription. - // +kubebuilder:validation:Optional - audioSelectorName?: null | string @go(AudioSelectorName,*string) - - // +kubebuilder:validation:Optional - audioSilenceThresholdMsec?: null | float64 @go(AudioSilenceThresholdMsec,*float64) -} - -#AudioTrackSelectionInitParameters: { - track?: [...#TrackInitParameters] @go(Track,[]TrackInitParameters) -} - -#AudioTrackSelectionObservation: { - track?: [...#TrackObservation] @go(Track,[]TrackObservation) -} - -#AudioTrackSelectionParameters: { - // +kubebuilder:validation:Optional - track: [...#TrackParameters] @go(Track,[]TrackParameters) -} - -#AudioWatermarkSettingsInitParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - nielsenWatermarksSettings?: [...#NielsenWatermarksSettingsInitParameters] @go(NielsenWatermarksSettings,[]NielsenWatermarksSettingsInitParameters) -} - -#AudioWatermarkSettingsObservation: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - nielsenWatermarksSettings?: [...#NielsenWatermarksSettingsObservation] @go(NielsenWatermarksSettings,[]NielsenWatermarksSettingsObservation) -} - -#AudioWatermarkSettingsParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - nielsenWatermarksSettings?: [...#NielsenWatermarksSettingsParameters] @go(NielsenWatermarksSettings,[]NielsenWatermarksSettingsParameters) -} - -#AutomaticInputFailoverSettingsInitParameters: { - errorClearTimeMsec?: null | float64 @go(ErrorClearTimeMsec,*float64) - failoverCondition?: [...#FailoverConditionInitParameters] @go(FailoverCondition,[]FailoverConditionInitParameters) - inputPreference?: null | string @go(InputPreference,*string) - - // The ID of the input. - secondaryInputId?: null | string @go(SecondaryInputID,*string) -} - -#AutomaticInputFailoverSettingsObservation: { - errorClearTimeMsec?: null | float64 @go(ErrorClearTimeMsec,*float64) - failoverCondition?: [...#FailoverConditionObservation] @go(FailoverCondition,[]FailoverConditionObservation) - inputPreference?: null | string @go(InputPreference,*string) - - // The ID of the input. - secondaryInputId?: null | string @go(SecondaryInputID,*string) -} - -#AutomaticInputFailoverSettingsParameters: { - // +kubebuilder:validation:Optional - errorClearTimeMsec?: null | float64 @go(ErrorClearTimeMsec,*float64) - - // +kubebuilder:validation:Optional - failoverCondition?: [...#FailoverConditionParameters] @go(FailoverCondition,[]FailoverConditionParameters) - - // +kubebuilder:validation:Optional - inputPreference?: null | string @go(InputPreference,*string) - - // The ID of the input. - // +kubebuilder:validation:Optional - secondaryInputId?: null | string @go(SecondaryInputID,*string) -} - -#AvailBlankingImageInitParameters: { - // Key used to extract the password from EC2 Parameter store. - passwordParam?: null | string @go(PasswordParam,*string) - - // Path to a file accessible to the live stream. - uri?: null | string @go(URI,*string) - - // Username for destination. - username?: null | string @go(Username,*string) -} - -#AvailBlankingImageObservation: { - // Key used to extract the password from EC2 Parameter store. - passwordParam?: null | string @go(PasswordParam,*string) - - // Path to a file accessible to the live stream. - uri?: null | string @go(URI,*string) - - // Username for destination. - username?: null | string @go(Username,*string) -} - -#AvailBlankingImageParameters: { - // Key used to extract the password from EC2 Parameter store. - // +kubebuilder:validation:Optional - passwordParam?: null | string @go(PasswordParam,*string) - - // Path to a file accessible to the live stream. - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) - - // Username for destination. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -#AvailBlankingInitParameters: { - // Blanking image to be used. See Avail Blanking Image for more details. - availBlankingImage?: [...#AvailBlankingImageInitParameters] @go(AvailBlankingImage,[]AvailBlankingImageInitParameters) - - // When set to enabled, causes video, audio and captions to be blanked when insertion metadata is added. - state?: null | string @go(State,*string) -} - -#AvailBlankingObservation: { - // Blanking image to be used. See Avail Blanking Image for more details. - availBlankingImage?: [...#AvailBlankingImageObservation] @go(AvailBlankingImage,[]AvailBlankingImageObservation) - - // When set to enabled, causes video, audio and captions to be blanked when insertion metadata is added. - state?: null | string @go(State,*string) -} - -#AvailBlankingParameters: { - // Blanking image to be used. See Avail Blanking Image for more details. - // +kubebuilder:validation:Optional - availBlankingImage?: [...#AvailBlankingImageParameters] @go(AvailBlankingImage,[]AvailBlankingImageParameters) - - // When set to enabled, causes video, audio and captions to be blanked when insertion metadata is added. - // +kubebuilder:validation:Optional - state?: null | string @go(State,*string) -} - -#CaptionLanguageMappingsInitParameters: { - captionChannel?: null | float64 @go(CaptionChannel,*float64) - - // When specified this field indicates the three letter language code of the caption track to extract from the source. - languageCode?: null | string @go(LanguageCode,*string) - languageDescription?: null | string @go(LanguageDescription,*string) -} - -#CaptionLanguageMappingsObservation: { - captionChannel?: null | float64 @go(CaptionChannel,*float64) - - // When specified this field indicates the three letter language code of the caption track to extract from the source. - languageCode?: null | string @go(LanguageCode,*string) - languageDescription?: null | string @go(LanguageDescription,*string) -} - -#CaptionLanguageMappingsParameters: { - // +kubebuilder:validation:Optional - captionChannel?: null | float64 @go(CaptionChannel,*float64) - - // When specified this field indicates the three letter language code of the caption track to extract from the source. - // +kubebuilder:validation:Optional - languageCode?: null | string @go(LanguageCode,*string) - - // +kubebuilder:validation:Optional - languageDescription?: null | string @go(LanguageDescription,*string) -} - -#CaptionSelectorInitParameters: { - // When specified this field indicates the three letter language code of the caption track to extract from the source. - languageCode?: null | string @go(LanguageCode,*string) - - // Name of the Channel. - name?: null | string @go(Name,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - selectorSettings?: [...#CaptionSelectorSelectorSettingsInitParameters] @go(SelectorSettings,[]CaptionSelectorSelectorSettingsInitParameters) -} - -#CaptionSelectorObservation: { - // When specified this field indicates the three letter language code of the caption track to extract from the source. - languageCode?: null | string @go(LanguageCode,*string) - - // Name of the Channel. - name?: null | string @go(Name,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - selectorSettings?: [...#CaptionSelectorSelectorSettingsObservation] @go(SelectorSettings,[]CaptionSelectorSelectorSettingsObservation) -} - -#CaptionSelectorParameters: { - // When specified this field indicates the three letter language code of the caption track to extract from the source. - // +kubebuilder:validation:Optional - languageCode?: null | string @go(LanguageCode,*string) - - // Name of the Channel. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - selectorSettings?: [...#CaptionSelectorSelectorSettingsParameters] @go(SelectorSettings,[]CaptionSelectorSelectorSettingsParameters) -} - -#CaptionSelectorSelectorSettingsInitParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - ancillarySourceSettings?: [...#AncillarySourceSettingsInitParameters] @go(AncillarySourceSettings,[]AncillarySourceSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbTdtSettings?: [...#SelectorSettingsDvbTdtSettingsInitParameters] @go(DvbTdtSettings,[]SelectorSettingsDvbTdtSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - embeddedSourceSettings?: [...#EmbeddedSourceSettingsInitParameters] @go(EmbeddedSourceSettings,[]EmbeddedSourceSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - scte20SourceSettings?: [...#Scte20SourceSettingsInitParameters] @go(Scte20SourceSettings,[]Scte20SourceSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - scte27SourceSettings?: [...#Scte27SourceSettingsInitParameters] @go(Scte27SourceSettings,[]Scte27SourceSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - teletextSourceSettings?: [...#TeletextSourceSettingsInitParameters] @go(TeletextSourceSettings,[]TeletextSourceSettingsInitParameters) -} - -#CaptionSelectorSelectorSettingsObservation: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - ancillarySourceSettings?: [...#AncillarySourceSettingsObservation] @go(AncillarySourceSettings,[]AncillarySourceSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbTdtSettings?: [...#SelectorSettingsDvbTdtSettingsObservation] @go(DvbTdtSettings,[]SelectorSettingsDvbTdtSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - embeddedSourceSettings?: [...#EmbeddedSourceSettingsObservation] @go(EmbeddedSourceSettings,[]EmbeddedSourceSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - scte20SourceSettings?: [...#Scte20SourceSettingsObservation] @go(Scte20SourceSettings,[]Scte20SourceSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - scte27SourceSettings?: [...#Scte27SourceSettingsObservation] @go(Scte27SourceSettings,[]Scte27SourceSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - teletextSourceSettings?: [...#TeletextSourceSettingsObservation] @go(TeletextSourceSettings,[]TeletextSourceSettingsObservation) -} - -#CaptionSelectorSelectorSettingsParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - ancillarySourceSettings?: [...#AncillarySourceSettingsParameters] @go(AncillarySourceSettings,[]AncillarySourceSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - dvbTdtSettings?: [...#SelectorSettingsDvbTdtSettingsParameters] @go(DvbTdtSettings,[]SelectorSettingsDvbTdtSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - embeddedSourceSettings?: [...#EmbeddedSourceSettingsParameters] @go(EmbeddedSourceSettings,[]EmbeddedSourceSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - scte20SourceSettings?: [...#Scte20SourceSettingsParameters] @go(Scte20SourceSettings,[]Scte20SourceSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - scte27SourceSettings?: [...#Scte27SourceSettingsParameters] @go(Scte27SourceSettings,[]Scte27SourceSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - teletextSourceSettings?: [...#TeletextSourceSettingsParameters] @go(TeletextSourceSettings,[]TeletextSourceSettingsParameters) -} - -#CdiInputSpecificationInitParameters: { - // - Maximum CDI input resolution. - resolution?: null | string @go(Resolution,*string) -} - -#CdiInputSpecificationObservation: { - // - Maximum CDI input resolution. - resolution?: null | string @go(Resolution,*string) -} - -#CdiInputSpecificationParameters: { - // - Maximum CDI input resolution. - // +kubebuilder:validation:Optional - resolution?: null | string @go(Resolution,*string) -} - -#ChannelInitParameters: { - // Specification of CDI inputs for this channel. See CDI Input Specification for more details. - cdiInputSpecification?: [...#CdiInputSpecificationInitParameters] @go(CdiInputSpecification,[]CdiInputSpecificationInitParameters) - - // Concise argument description. - channelClass?: null | string @go(ChannelClass,*string) - - // Destinations for channel. See Destinations for more details. - destinations?: [...#DestinationsInitParameters] @go(Destinations,[]DestinationsInitParameters) - - // Encoder settings. See Encoder Settings for more details. - encoderSettings?: [...#EncoderSettingsInitParameters] @go(EncoderSettings,[]EncoderSettingsInitParameters) - - // Input attachments for the channel. See Input Attachments for more details. - inputAttachments?: [...#InputAttachmentsInitParameters] @go(InputAttachments,[]InputAttachmentsInitParameters) - - // Specification of network and file inputs for the channel. - inputSpecification?: [...#InputSpecificationInitParameters] @go(InputSpecification,[]InputSpecificationInitParameters) - - // The log level to write to Cloudwatch logs. - logLevel?: null | string @go(LogLevel,*string) - - // Maintenance settings for this channel. See Maintenance for more details. - maintenance?: [...#MaintenanceInitParameters] @go(Maintenance,[]MaintenanceInitParameters) - - // Name of the Channel. - name?: null | string @go(Name,*string) - - // Whether to start/stop channel. Default: false - startChannel?: null | bool @go(StartChannel,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Settings for the VPC outputs. - vpc?: [...#VPCInitParameters] @go(VPC,[]VPCInitParameters) -} - -#ChannelMappingsInitParameters: { - inputChannelLevels?: [...#InputChannelLevelsInitParameters] @go(InputChannelLevels,[]InputChannelLevelsInitParameters) - outputChannel?: null | float64 @go(OutputChannel,*float64) -} - -#ChannelMappingsObservation: { - inputChannelLevels?: [...#InputChannelLevelsObservation] @go(InputChannelLevels,[]InputChannelLevelsObservation) - outputChannel?: null | float64 @go(OutputChannel,*float64) -} - -#ChannelMappingsParameters: { - // +kubebuilder:validation:Optional - inputChannelLevels: [...#InputChannelLevelsParameters] @go(InputChannelLevels,[]InputChannelLevelsParameters) - - // +kubebuilder:validation:Optional - outputChannel?: null | float64 @go(OutputChannel,*float64) -} - -#ChannelObservation: { - // ARN of the Channel. - arn?: null | string @go(Arn,*string) - - // Specification of CDI inputs for this channel. See CDI Input Specification for more details. - cdiInputSpecification?: [...#CdiInputSpecificationObservation] @go(CdiInputSpecification,[]CdiInputSpecificationObservation) - - // Concise argument description. - channelClass?: null | string @go(ChannelClass,*string) - - // ID of the channel in MediaPackage that is the destination for this output group. - channelId?: null | string @go(ChannelID,*string) - - // Destinations for channel. See Destinations for more details. - destinations?: [...#DestinationsObservation] @go(Destinations,[]DestinationsObservation) - - // Encoder settings. See Encoder Settings for more details. - encoderSettings?: [...#EncoderSettingsObservation] @go(EncoderSettings,[]EncoderSettingsObservation) - - // User-specified id. Ths is used in an output group or an output. - id?: null | string @go(ID,*string) - - // Input attachments for the channel. See Input Attachments for more details. - inputAttachments?: [...#InputAttachmentsObservation] @go(InputAttachments,[]InputAttachmentsObservation) - - // Specification of network and file inputs for the channel. - inputSpecification?: [...#InputSpecificationObservation] @go(InputSpecification,[]InputSpecificationObservation) - - // The log level to write to Cloudwatch logs. - logLevel?: null | string @go(LogLevel,*string) - - // Maintenance settings for this channel. See Maintenance for more details. - maintenance?: [...#MaintenanceObservation] @go(Maintenance,[]MaintenanceObservation) - - // Name of the Channel. - name?: null | string @go(Name,*string) - - // Concise argument description. - roleArn?: null | string @go(RoleArn,*string) - - // Whether to start/stop channel. Default: false - startChannel?: null | bool @go(StartChannel,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Settings for the VPC outputs. - vpc?: [...#VPCObservation] @go(VPC,[]VPCObservation) -} - -#ChannelParameters: { - // Specification of CDI inputs for this channel. See CDI Input Specification for more details. - // +kubebuilder:validation:Optional - cdiInputSpecification?: [...#CdiInputSpecificationParameters] @go(CdiInputSpecification,[]CdiInputSpecificationParameters) - - // Concise argument description. - // +kubebuilder:validation:Optional - channelClass?: null | string @go(ChannelClass,*string) - - // Destinations for channel. See Destinations for more details. - // +kubebuilder:validation:Optional - destinations?: [...#DestinationsParameters] @go(Destinations,[]DestinationsParameters) - - // Encoder settings. See Encoder Settings for more details. - // +kubebuilder:validation:Optional - encoderSettings?: [...#EncoderSettingsParameters] @go(EncoderSettings,[]EncoderSettingsParameters) - - // Input attachments for the channel. See Input Attachments for more details. - // +kubebuilder:validation:Optional - inputAttachments?: [...#InputAttachmentsParameters] @go(InputAttachments,[]InputAttachmentsParameters) - - // Specification of network and file inputs for the channel. - // +kubebuilder:validation:Optional - inputSpecification?: [...#InputSpecificationParameters] @go(InputSpecification,[]InputSpecificationParameters) - - // The log level to write to Cloudwatch logs. - // +kubebuilder:validation:Optional - logLevel?: null | string @go(LogLevel,*string) - - // Maintenance settings for this channel. See Maintenance for more details. - // +kubebuilder:validation:Optional - maintenance?: [...#MaintenanceParameters] @go(Maintenance,[]MaintenanceParameters) - - // Name of the Channel. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Concise argument description. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Whether to start/stop channel. Default: false - // +kubebuilder:validation:Optional - startChannel?: null | bool @go(StartChannel,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Settings for the VPC outputs. - // +kubebuilder:validation:Optional - vpc?: [...#VPCParameters] @go(VPC,[]VPCParameters) -} - -#CodecSettingsInitParameters: { - // Aac Settings. See AAC Settings for more details. - aacSettings?: [...#AacSettingsInitParameters] @go(AacSettings,[]AacSettingsInitParameters) - - // Ac3 Settings. See AC3 Settings for more details. - ac3Settings?: [...#Ac3SettingsInitParameters] @go(Ac3Settings,[]Ac3SettingsInitParameters) - - // - Eac3 Atmos Settings. See EAC3 Atmos Settings - eac3AtmosSettings?: [...#Eac3AtmosSettingsInitParameters] @go(Eac3AtmosSettings,[]Eac3AtmosSettingsInitParameters) - - // - Eac3 Settings. See EAC3 Settings - eac3Settings?: [...#Eac3SettingsInitParameters] @go(Eac3Settings,[]Eac3SettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - mp2Settings?: [...#Mp2SettingsInitParameters] @go(Mp2Settings,[]Mp2SettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - passThroughSettings?: [...#PassThroughSettingsInitParameters] @go(PassThroughSettings,[]PassThroughSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - wavSettings?: [...#WavSettingsInitParameters] @go(WavSettings,[]WavSettingsInitParameters) -} - -#CodecSettingsObservation: { - // Aac Settings. See AAC Settings for more details. - aacSettings?: [...#AacSettingsObservation] @go(AacSettings,[]AacSettingsObservation) - - // Ac3 Settings. See AC3 Settings for more details. - ac3Settings?: [...#Ac3SettingsObservation] @go(Ac3Settings,[]Ac3SettingsObservation) - - // - Eac3 Atmos Settings. See EAC3 Atmos Settings - eac3AtmosSettings?: [...#Eac3AtmosSettingsObservation] @go(Eac3AtmosSettings,[]Eac3AtmosSettingsObservation) - - // - Eac3 Settings. See EAC3 Settings - eac3Settings?: [...#Eac3SettingsObservation] @go(Eac3Settings,[]Eac3SettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - mp2Settings?: [...#Mp2SettingsObservation] @go(Mp2Settings,[]Mp2SettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - passThroughSettings?: [...#PassThroughSettingsParameters] @go(PassThroughSettings,[]PassThroughSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - wavSettings?: [...#WavSettingsObservation] @go(WavSettings,[]WavSettingsObservation) -} - -#CodecSettingsParameters: { - // Aac Settings. See AAC Settings for more details. - // +kubebuilder:validation:Optional - aacSettings?: [...#AacSettingsParameters] @go(AacSettings,[]AacSettingsParameters) - - // Ac3 Settings. See AC3 Settings for more details. - // +kubebuilder:validation:Optional - ac3Settings?: [...#Ac3SettingsParameters] @go(Ac3Settings,[]Ac3SettingsParameters) - - // - Eac3 Atmos Settings. See EAC3 Atmos Settings - // +kubebuilder:validation:Optional - eac3AtmosSettings?: [...#Eac3AtmosSettingsParameters] @go(Eac3AtmosSettings,[]Eac3AtmosSettingsParameters) - - // - Eac3 Settings. See EAC3 Settings - // +kubebuilder:validation:Optional - eac3Settings?: [...#Eac3SettingsParameters] @go(Eac3Settings,[]Eac3SettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - mp2Settings?: [...#Mp2SettingsParameters] @go(Mp2Settings,[]Mp2SettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - passThroughSettings?: [...#PassThroughSettingsParameters] @go(PassThroughSettings,[]PassThroughSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - wavSettings?: [...#WavSettingsParameters] @go(WavSettings,[]WavSettingsParameters) -} - -#ColorSpacePassthroughSettingsInitParameters: { -} - -#ColorSpacePassthroughSettingsObservation: { -} - -#ColorSpacePassthroughSettingsParameters: { -} - -#ColorSpaceSettingsInitParameters: { - // Sets the colorspace metadata to be passed through. - colorSpacePassthroughSettings?: [...#ColorSpacePassthroughSettingsInitParameters] @go(ColorSpacePassthroughSettings,[]ColorSpacePassthroughSettingsInitParameters) - - // Set the colorspace to Dolby Vision81. - dolbyVision81Settings?: [...#DolbyVision81SettingsInitParameters] @go(DolbyVision81Settings,[]DolbyVision81SettingsInitParameters) - - // Set the colorspace to be HDR10. See H265 HDR10 Settings for more details. - hdr10Settings?: [...#Hdr10SettingsInitParameters] @go(Hdr10Settings,[]Hdr10SettingsInitParameters) - - // Set the colorspace to Rec. 601. - rec601Settings?: [...#Rec601SettingsInitParameters] @go(Rec601Settings,[]Rec601SettingsInitParameters) - - // Set the colorspace to Rec. 709. - rec709Settings?: [...#Rec709SettingsInitParameters] @go(Rec709Settings,[]Rec709SettingsInitParameters) -} - -#ColorSpaceSettingsObservation: { - // Sets the colorspace metadata to be passed through. - colorSpacePassthroughSettings?: [...#ColorSpacePassthroughSettingsParameters] @go(ColorSpacePassthroughSettings,[]ColorSpacePassthroughSettingsParameters) - - // Set the colorspace to Dolby Vision81. - dolbyVision81Settings?: [...#DolbyVision81SettingsParameters] @go(DolbyVision81Settings,[]DolbyVision81SettingsParameters) - - // Set the colorspace to be HDR10. See H265 HDR10 Settings for more details. - hdr10Settings?: [...#Hdr10SettingsObservation] @go(Hdr10Settings,[]Hdr10SettingsObservation) - - // Set the colorspace to Rec. 601. - rec601Settings?: [...#Rec601SettingsParameters] @go(Rec601Settings,[]Rec601SettingsParameters) - - // Set the colorspace to Rec. 709. - rec709Settings?: [...#Rec709SettingsParameters] @go(Rec709Settings,[]Rec709SettingsParameters) -} - -#ColorSpaceSettingsParameters: { - // Sets the colorspace metadata to be passed through. - // +kubebuilder:validation:Optional - colorSpacePassthroughSettings?: [...#ColorSpacePassthroughSettingsParameters] @go(ColorSpacePassthroughSettings,[]ColorSpacePassthroughSettingsParameters) - - // Set the colorspace to Dolby Vision81. - // +kubebuilder:validation:Optional - dolbyVision81Settings?: [...#DolbyVision81SettingsParameters] @go(DolbyVision81Settings,[]DolbyVision81SettingsParameters) - - // Set the colorspace to be HDR10. See H265 HDR10 Settings for more details. - // +kubebuilder:validation:Optional - hdr10Settings?: [...#Hdr10SettingsParameters] @go(Hdr10Settings,[]Hdr10SettingsParameters) - - // Set the colorspace to Rec. 601. - // +kubebuilder:validation:Optional - rec601Settings?: [...#Rec601SettingsParameters] @go(Rec601Settings,[]Rec601SettingsParameters) - - // Set the colorspace to Rec. 709. - // +kubebuilder:validation:Optional - rec709Settings?: [...#Rec709SettingsParameters] @go(Rec709Settings,[]Rec709SettingsParameters) -} - -#ContainerSettingsInitParameters: { - // M2ts Settings. See M2ts Settings for more details. - m2tsSettings?: [...#M2TsSettingsInitParameters] @go(M2TsSettings,[]M2TsSettingsInitParameters) - - // Raw Settings. This can be set as an empty block. - rawSettings?: [...#RawSettingsInitParameters] @go(RawSettings,[]RawSettingsInitParameters) -} - -#ContainerSettingsM2TsSettingsInitParameters: { - absentInputAudioBehavior?: null | string @go(AbsentInputAudioBehavior,*string) - arib?: null | string @go(Arib,*string) - - // User-specified id. Ths is used in an output group or an output. - aribCaptionsPid?: null | string @go(AribCaptionsPid,*string) - aribCaptionsPidControl?: null | string @go(AribCaptionsPidControl,*string) - audioBufferModel?: null | string @go(AudioBufferModel,*string) - audioFramesPerPes?: null | float64 @go(AudioFramesPerPes,*float64) - audioPids?: null | string @go(AudioPids,*string) - audioStreamType?: null | string @go(AudioStreamType,*string) - - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - bufferModel?: null | string @go(BufferModel,*string) - ccDescriptor?: null | string @go(CcDescriptor,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbNitSettings?: [...#M2TsSettingsDvbNitSettingsInitParameters] @go(DvbNitSettings,[]M2TsSettingsDvbNitSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbSdtSettings?: [...#M2TsSettingsDvbSdtSettingsInitParameters] @go(DvbSdtSettings,[]M2TsSettingsDvbSdtSettingsInitParameters) - dvbSubPids?: null | string @go(DvbSubPids,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbTdtSettings?: [...#M2TsSettingsDvbTdtSettingsInitParameters] @go(DvbTdtSettings,[]M2TsSettingsDvbTdtSettingsInitParameters) - - // User-specified id. Ths is used in an output group or an output. - dvbTeletextPid?: null | string @go(DvbTeletextPid,*string) - ebif?: null | string @go(Ebif,*string) - ebpAudioInterval?: null | string @go(EbpAudioInterval,*string) - ebpLookaheadMs?: null | float64 @go(EbpLookaheadMs,*float64) - ebpPlacement?: null | string @go(EbpPlacement,*string) - - // User-specified id. Ths is used in an output group or an output. - ecmPid?: null | string @go(EcmPid,*string) - esRateInPes?: null | string @go(EsRateInPes,*string) - - // User-specified id. Ths is used in an output group or an output. - etvPlatformPid?: null | string @go(EtvPlatformPid,*string) - - // User-specified id. Ths is used in an output group or an output. - etvSignalPid?: null | string @go(EtvSignalPid,*string) - fragmentTime?: null | float64 @go(FragmentTime,*float64) - klv?: null | string @go(Klv,*string) - klvDataPids?: null | string @go(KlvDataPids,*string) - nielsenId3Behavior?: null | string @go(NielsenId3Behavior,*string) - - // Average bitrate in bits/second. - nullPacketBitrate?: null | float64 @go(NullPacketBitrate,*float64) - patInterval?: null | float64 @go(PatInterval,*float64) - pcrControl?: null | string @go(PcrControl,*string) - pcrPeriod?: null | float64 @go(PcrPeriod,*float64) - - // User-specified id. Ths is used in an output group or an output. - pcrPid?: null | string @go(PcrPid,*string) - pmtInterval?: null | float64 @go(PmtInterval,*float64) - - // User-specified id. Ths is used in an output group or an output. - pmtPid?: null | string @go(PmtPid,*string) - programNum?: null | float64 @go(ProgramNum,*float64) - rateMode?: null | string @go(RateMode,*string) - scte27Pids?: null | string @go(Scte27Pids,*string) - scte35Control?: null | string @go(Scte35Control,*string) - - // PID from which to read SCTE-35 messages. - scte35Pid?: null | string @go(Scte35Pid,*string) - segmentationMarkers?: null | string @go(SegmentationMarkers,*string) - segmentationStyle?: null | string @go(SegmentationStyle,*string) - segmentationTime?: null | float64 @go(SegmentationTime,*float64) - timedMetadataBehavior?: null | string @go(TimedMetadataBehavior,*string) - - // User-specified id. Ths is used in an output group or an output. - timedMetadataPid?: null | string @go(TimedMetadataPid,*string) - - // User-specified id. Ths is used in an output group or an output. - transportStreamId?: null | float64 @go(TransportStreamID,*float64) - - // User-specified id. Ths is used in an output group or an output. - videoPid?: null | string @go(VideoPid,*string) -} - -#ContainerSettingsM2TsSettingsObservation: { - absentInputAudioBehavior?: null | string @go(AbsentInputAudioBehavior,*string) - arib?: null | string @go(Arib,*string) - - // User-specified id. Ths is used in an output group or an output. - aribCaptionsPid?: null | string @go(AribCaptionsPid,*string) - aribCaptionsPidControl?: null | string @go(AribCaptionsPidControl,*string) - audioBufferModel?: null | string @go(AudioBufferModel,*string) - audioFramesPerPes?: null | float64 @go(AudioFramesPerPes,*float64) - audioPids?: null | string @go(AudioPids,*string) - audioStreamType?: null | string @go(AudioStreamType,*string) - - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - bufferModel?: null | string @go(BufferModel,*string) - ccDescriptor?: null | string @go(CcDescriptor,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbNitSettings?: [...#M2TsSettingsDvbNitSettingsObservation] @go(DvbNitSettings,[]M2TsSettingsDvbNitSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbSdtSettings?: [...#M2TsSettingsDvbSdtSettingsObservation] @go(DvbSdtSettings,[]M2TsSettingsDvbSdtSettingsObservation) - dvbSubPids?: null | string @go(DvbSubPids,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbTdtSettings?: [...#M2TsSettingsDvbTdtSettingsObservation] @go(DvbTdtSettings,[]M2TsSettingsDvbTdtSettingsObservation) - - // User-specified id. Ths is used in an output group or an output. - dvbTeletextPid?: null | string @go(DvbTeletextPid,*string) - ebif?: null | string @go(Ebif,*string) - ebpAudioInterval?: null | string @go(EbpAudioInterval,*string) - ebpLookaheadMs?: null | float64 @go(EbpLookaheadMs,*float64) - ebpPlacement?: null | string @go(EbpPlacement,*string) - - // User-specified id. Ths is used in an output group or an output. - ecmPid?: null | string @go(EcmPid,*string) - esRateInPes?: null | string @go(EsRateInPes,*string) - - // User-specified id. Ths is used in an output group or an output. - etvPlatformPid?: null | string @go(EtvPlatformPid,*string) - - // User-specified id. Ths is used in an output group or an output. - etvSignalPid?: null | string @go(EtvSignalPid,*string) - fragmentTime?: null | float64 @go(FragmentTime,*float64) - klv?: null | string @go(Klv,*string) - klvDataPids?: null | string @go(KlvDataPids,*string) - nielsenId3Behavior?: null | string @go(NielsenId3Behavior,*string) - - // Average bitrate in bits/second. - nullPacketBitrate?: null | float64 @go(NullPacketBitrate,*float64) - patInterval?: null | float64 @go(PatInterval,*float64) - pcrControl?: null | string @go(PcrControl,*string) - pcrPeriod?: null | float64 @go(PcrPeriod,*float64) - - // User-specified id. Ths is used in an output group or an output. - pcrPid?: null | string @go(PcrPid,*string) - pmtInterval?: null | float64 @go(PmtInterval,*float64) - - // User-specified id. Ths is used in an output group or an output. - pmtPid?: null | string @go(PmtPid,*string) - programNum?: null | float64 @go(ProgramNum,*float64) - rateMode?: null | string @go(RateMode,*string) - scte27Pids?: null | string @go(Scte27Pids,*string) - scte35Control?: null | string @go(Scte35Control,*string) - - // PID from which to read SCTE-35 messages. - scte35Pid?: null | string @go(Scte35Pid,*string) - segmentationMarkers?: null | string @go(SegmentationMarkers,*string) - segmentationStyle?: null | string @go(SegmentationStyle,*string) - segmentationTime?: null | float64 @go(SegmentationTime,*float64) - timedMetadataBehavior?: null | string @go(TimedMetadataBehavior,*string) - - // User-specified id. Ths is used in an output group or an output. - timedMetadataPid?: null | string @go(TimedMetadataPid,*string) - - // User-specified id. Ths is used in an output group or an output. - transportStreamId?: null | float64 @go(TransportStreamID,*float64) - - // User-specified id. Ths is used in an output group or an output. - videoPid?: null | string @go(VideoPid,*string) -} - -#ContainerSettingsM2TsSettingsParameters: { - // +kubebuilder:validation:Optional - absentInputAudioBehavior?: null | string @go(AbsentInputAudioBehavior,*string) - - // +kubebuilder:validation:Optional - arib?: null | string @go(Arib,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - aribCaptionsPid?: null | string @go(AribCaptionsPid,*string) - - // +kubebuilder:validation:Optional - aribCaptionsPidControl?: null | string @go(AribCaptionsPidControl,*string) - - // +kubebuilder:validation:Optional - audioBufferModel?: null | string @go(AudioBufferModel,*string) - - // +kubebuilder:validation:Optional - audioFramesPerPes?: null | float64 @go(AudioFramesPerPes,*float64) - - // +kubebuilder:validation:Optional - audioPids?: null | string @go(AudioPids,*string) - - // +kubebuilder:validation:Optional - audioStreamType?: null | string @go(AudioStreamType,*string) - - // Average bitrate in bits/second. - // +kubebuilder:validation:Optional - bitrate?: null | float64 @go(Bitrate,*float64) - - // +kubebuilder:validation:Optional - bufferModel?: null | string @go(BufferModel,*string) - - // +kubebuilder:validation:Optional - ccDescriptor?: null | string @go(CcDescriptor,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - dvbNitSettings?: [...#M2TsSettingsDvbNitSettingsParameters] @go(DvbNitSettings,[]M2TsSettingsDvbNitSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - dvbSdtSettings?: [...#M2TsSettingsDvbSdtSettingsParameters] @go(DvbSdtSettings,[]M2TsSettingsDvbSdtSettingsParameters) - - // +kubebuilder:validation:Optional - dvbSubPids?: null | string @go(DvbSubPids,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - dvbTdtSettings?: [...#M2TsSettingsDvbTdtSettingsParameters] @go(DvbTdtSettings,[]M2TsSettingsDvbTdtSettingsParameters) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - dvbTeletextPid?: null | string @go(DvbTeletextPid,*string) - - // +kubebuilder:validation:Optional - ebif?: null | string @go(Ebif,*string) - - // +kubebuilder:validation:Optional - ebpAudioInterval?: null | string @go(EbpAudioInterval,*string) - - // +kubebuilder:validation:Optional - ebpLookaheadMs?: null | float64 @go(EbpLookaheadMs,*float64) - - // +kubebuilder:validation:Optional - ebpPlacement?: null | string @go(EbpPlacement,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - ecmPid?: null | string @go(EcmPid,*string) - - // +kubebuilder:validation:Optional - esRateInPes?: null | string @go(EsRateInPes,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - etvPlatformPid?: null | string @go(EtvPlatformPid,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - etvSignalPid?: null | string @go(EtvSignalPid,*string) - - // +kubebuilder:validation:Optional - fragmentTime?: null | float64 @go(FragmentTime,*float64) - - // +kubebuilder:validation:Optional - klv?: null | string @go(Klv,*string) - - // +kubebuilder:validation:Optional - klvDataPids?: null | string @go(KlvDataPids,*string) - - // +kubebuilder:validation:Optional - nielsenId3Behavior?: null | string @go(NielsenId3Behavior,*string) - - // Average bitrate in bits/second. - // +kubebuilder:validation:Optional - nullPacketBitrate?: null | float64 @go(NullPacketBitrate,*float64) - - // +kubebuilder:validation:Optional - patInterval?: null | float64 @go(PatInterval,*float64) - - // +kubebuilder:validation:Optional - pcrControl?: null | string @go(PcrControl,*string) - - // +kubebuilder:validation:Optional - pcrPeriod?: null | float64 @go(PcrPeriod,*float64) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - pcrPid?: null | string @go(PcrPid,*string) - - // +kubebuilder:validation:Optional - pmtInterval?: null | float64 @go(PmtInterval,*float64) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - pmtPid?: null | string @go(PmtPid,*string) - - // +kubebuilder:validation:Optional - programNum?: null | float64 @go(ProgramNum,*float64) - - // +kubebuilder:validation:Optional - rateMode?: null | string @go(RateMode,*string) - - // +kubebuilder:validation:Optional - scte27Pids?: null | string @go(Scte27Pids,*string) - - // +kubebuilder:validation:Optional - scte35Control?: null | string @go(Scte35Control,*string) - - // PID from which to read SCTE-35 messages. - // +kubebuilder:validation:Optional - scte35Pid?: null | string @go(Scte35Pid,*string) - - // +kubebuilder:validation:Optional - segmentationMarkers?: null | string @go(SegmentationMarkers,*string) - - // +kubebuilder:validation:Optional - segmentationStyle?: null | string @go(SegmentationStyle,*string) - - // +kubebuilder:validation:Optional - segmentationTime?: null | float64 @go(SegmentationTime,*float64) - - // +kubebuilder:validation:Optional - timedMetadataBehavior?: null | string @go(TimedMetadataBehavior,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - timedMetadataPid?: null | string @go(TimedMetadataPid,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - transportStreamId?: null | float64 @go(TransportStreamID,*float64) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - videoPid?: null | string @go(VideoPid,*string) -} - -#ContainerSettingsObservation: { - // M2ts Settings. See M2ts Settings for more details. - m2tsSettings?: [...#M2TsSettingsObservation] @go(M2TsSettings,[]M2TsSettingsObservation) - - // Raw Settings. This can be set as an empty block. - rawSettings?: [...#RawSettingsParameters] @go(RawSettings,[]RawSettingsParameters) -} - -#ContainerSettingsParameters: { - // M2ts Settings. See M2ts Settings for more details. - // +kubebuilder:validation:Optional - m2tsSettings?: [...#M2TsSettingsParameters] @go(M2TsSettings,[]M2TsSettingsParameters) - - // Raw Settings. This can be set as an empty block. - // +kubebuilder:validation:Optional - rawSettings?: [...#RawSettingsParameters] @go(RawSettings,[]RawSettingsParameters) -} - -#DestinationInitParameters: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#DestinationObservation: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#DestinationParameters: { - // Reference ID for the destination. - // +kubebuilder:validation:Optional - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#DestinationsInitParameters: { - // User-specified id. Ths is used in an output group or an output. - id?: null | string @go(ID,*string) - - // Destination settings for a MediaPackage output; one destination for both encoders. See Media Package Settings for more details. - mediaPackageSettings?: [...#MediaPackageSettingsInitParameters] @go(MediaPackageSettings,[]MediaPackageSettingsInitParameters) - - // Destination settings for a Multiplex output; one destination for both encoders. See Multiplex Settings for more details. - multiplexSettings?: [...#MultiplexSettingsInitParameters] @go(MultiplexSettings,[]MultiplexSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - settings?: [...#SettingsInitParameters] @go(Settings,[]SettingsInitParameters) -} - -#DestinationsObservation: { - // User-specified id. Ths is used in an output group or an output. - id?: null | string @go(ID,*string) - - // Destination settings for a MediaPackage output; one destination for both encoders. See Media Package Settings for more details. - mediaPackageSettings?: [...#MediaPackageSettingsObservation] @go(MediaPackageSettings,[]MediaPackageSettingsObservation) - - // Destination settings for a Multiplex output; one destination for both encoders. See Multiplex Settings for more details. - multiplexSettings?: [...#MultiplexSettingsObservation] @go(MultiplexSettings,[]MultiplexSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - settings?: [...#SettingsObservation] @go(Settings,[]SettingsObservation) -} - -#DestinationsParameters: { - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Destination settings for a MediaPackage output; one destination for both encoders. See Media Package Settings for more details. - // +kubebuilder:validation:Optional - mediaPackageSettings?: [...#MediaPackageSettingsParameters] @go(MediaPackageSettings,[]MediaPackageSettingsParameters) - - // Destination settings for a Multiplex output; one destination for both encoders. See Multiplex Settings for more details. - // +kubebuilder:validation:Optional - multiplexSettings?: [...#MultiplexSettingsParameters] @go(MultiplexSettings,[]MultiplexSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - settings?: [...#SettingsParameters] @go(Settings,[]SettingsParameters) -} - -#DolbyVision81SettingsInitParameters: { -} - -#DolbyVision81SettingsObservation: { -} - -#DolbyVision81SettingsParameters: { -} - -#DvbNitSettingsInitParameters: { - // User-specified id. Ths is used in an output group or an output. - networkId?: null | float64 @go(NetworkID,*float64) - - // Name of the Channel. - networkName?: null | string @go(NetworkName,*string) - repInterval?: null | float64 @go(RepInterval,*float64) -} - -#DvbNitSettingsObservation: { - // User-specified id. Ths is used in an output group or an output. - networkId?: null | float64 @go(NetworkID,*float64) - - // Name of the Channel. - networkName?: null | string @go(NetworkName,*string) - repInterval?: null | float64 @go(RepInterval,*float64) -} - -#DvbNitSettingsParameters: { - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - networkId?: null | float64 @go(NetworkID,*float64) - - // Name of the Channel. - // +kubebuilder:validation:Optional - networkName?: null | string @go(NetworkName,*string) - - // +kubebuilder:validation:Optional - repInterval?: null | float64 @go(RepInterval,*float64) -} - -#DvbSdtSettingsInitParameters: { - outputSdt?: null | string @go(OutputSdt,*string) - repInterval?: null | float64 @go(RepInterval,*float64) - - // Name of the Channel. - serviceName?: null | string @go(ServiceName,*string) - - // Name of the Channel. - serviceProviderName?: null | string @go(ServiceProviderName,*string) -} - -#DvbSdtSettingsObservation: { - outputSdt?: null | string @go(OutputSdt,*string) - repInterval?: null | float64 @go(RepInterval,*float64) - - // Name of the Channel. - serviceName?: null | string @go(ServiceName,*string) - - // Name of the Channel. - serviceProviderName?: null | string @go(ServiceProviderName,*string) -} - -#DvbSdtSettingsParameters: { - // +kubebuilder:validation:Optional - outputSdt?: null | string @go(OutputSdt,*string) - - // +kubebuilder:validation:Optional - repInterval?: null | float64 @go(RepInterval,*float64) - - // Name of the Channel. - // +kubebuilder:validation:Optional - serviceName?: null | string @go(ServiceName,*string) - - // Name of the Channel. - // +kubebuilder:validation:Optional - serviceProviderName?: null | string @go(ServiceProviderName,*string) -} - -#DvbTdtSettingsInitParameters: { - repInterval?: null | float64 @go(RepInterval,*float64) -} - -#DvbTdtSettingsObservation: { - repInterval?: null | float64 @go(RepInterval,*float64) -} - -#DvbTdtSettingsParameters: { - // +kubebuilder:validation:Optional - repInterval?: null | float64 @go(RepInterval,*float64) -} - -#Eac3AtmosSettingsInitParameters: { - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - - // Mono, Stereo, or 5.1 channel layout. - codingMode?: null | string @go(CodingMode,*string) - - // Sets the dialnorm of the output. - dialnorm?: null | float64 @go(Dialnorm,*float64) - - // Sets the Dolby dynamic range compression profile. - drcLine?: null | string @go(DrcLine,*string) - - // Sets the profile for heavy Dolby dynamic range compression. - drcRf?: null | string @go(DrcRf,*string) - - // Height dimensional trim. - heightTrim?: null | float64 @go(HeightTrim,*float64) - - // Surround dimensional trim. - surroundTrim?: null | float64 @go(SurroundTrim,*float64) -} - -#Eac3AtmosSettingsObservation: { - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - - // Mono, Stereo, or 5.1 channel layout. - codingMode?: null | string @go(CodingMode,*string) - - // Sets the dialnorm of the output. - dialnorm?: null | float64 @go(Dialnorm,*float64) - - // Sets the Dolby dynamic range compression profile. - drcLine?: null | string @go(DrcLine,*string) - - // Sets the profile for heavy Dolby dynamic range compression. - drcRf?: null | string @go(DrcRf,*string) - - // Height dimensional trim. - heightTrim?: null | float64 @go(HeightTrim,*float64) - - // Surround dimensional trim. - surroundTrim?: null | float64 @go(SurroundTrim,*float64) -} - -#Eac3AtmosSettingsParameters: { - // Average bitrate in bits/second. - // +kubebuilder:validation:Optional - bitrate?: null | float64 @go(Bitrate,*float64) - - // Mono, Stereo, or 5.1 channel layout. - // +kubebuilder:validation:Optional - codingMode?: null | string @go(CodingMode,*string) - - // Sets the dialnorm of the output. - // +kubebuilder:validation:Optional - dialnorm?: null | float64 @go(Dialnorm,*float64) - - // Sets the Dolby dynamic range compression profile. - // +kubebuilder:validation:Optional - drcLine?: null | string @go(DrcLine,*string) - - // Sets the profile for heavy Dolby dynamic range compression. - // +kubebuilder:validation:Optional - drcRf?: null | string @go(DrcRf,*string) - - // Height dimensional trim. - // +kubebuilder:validation:Optional - heightTrim?: null | float64 @go(HeightTrim,*float64) - - // Surround dimensional trim. - // +kubebuilder:validation:Optional - surroundTrim?: null | float64 @go(SurroundTrim,*float64) -} - -#Eac3SettingsInitParameters: { - // Sets the attenuation control. - attenuationControl?: null | string @go(AttenuationControl,*string) - - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - - // Specifies the bitstream mode (bsmod) for the emitted AC-3 stream. - bitstreamMode?: null | string @go(BitstreamMode,*string) - - // Mono, Stereo, or 5.1 channel layout. - codingMode?: null | string @go(CodingMode,*string) - dcFilter?: null | string @go(DcFilter,*string) - - // Sets the dialnorm of the output. - dialnorm?: null | float64 @go(Dialnorm,*float64) - - // Sets the Dolby dynamic range compression profile. - drcLine?: null | string @go(DrcLine,*string) - - // Sets the profile for heavy Dolby dynamic range compression. - drcRf?: null | string @go(DrcRf,*string) - lfeControl?: null | string @go(LfeControl,*string) - - // When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding. - lfeFilter?: null | string @go(LfeFilter,*string) - - // H264 level. - loRoCenterMixLevel?: null | float64 @go(LoRoCenterMixLevel,*float64) - - // H264 level. - loRoSurroundMixLevel?: null | float64 @go(LoRoSurroundMixLevel,*float64) - - // H264 level. - ltRtCenterMixLevel?: null | float64 @go(LtRtCenterMixLevel,*float64) - - // H264 level. - ltRtSurroundMixLevel?: null | float64 @go(LtRtSurroundMixLevel,*float64) - - // Metadata control. - metadataControl?: null | string @go(MetadataControl,*string) - passthroughControl?: null | string @go(PassthroughControl,*string) - phaseControl?: null | string @go(PhaseControl,*string) - stereoDownmix?: null | string @go(StereoDownmix,*string) - surroundExMode?: null | string @go(SurroundExMode,*string) - surroundMode?: null | string @go(SurroundMode,*string) -} - -#Eac3SettingsObservation: { - // Sets the attenuation control. - attenuationControl?: null | string @go(AttenuationControl,*string) - - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - - // Specifies the bitstream mode (bsmod) for the emitted AC-3 stream. - bitstreamMode?: null | string @go(BitstreamMode,*string) - - // Mono, Stereo, or 5.1 channel layout. - codingMode?: null | string @go(CodingMode,*string) - dcFilter?: null | string @go(DcFilter,*string) - - // Sets the dialnorm of the output. - dialnorm?: null | float64 @go(Dialnorm,*float64) - - // Sets the Dolby dynamic range compression profile. - drcLine?: null | string @go(DrcLine,*string) - - // Sets the profile for heavy Dolby dynamic range compression. - drcRf?: null | string @go(DrcRf,*string) - lfeControl?: null | string @go(LfeControl,*string) - - // When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding. - lfeFilter?: null | string @go(LfeFilter,*string) - - // H264 level. - loRoCenterMixLevel?: null | float64 @go(LoRoCenterMixLevel,*float64) - - // H264 level. - loRoSurroundMixLevel?: null | float64 @go(LoRoSurroundMixLevel,*float64) - - // H264 level. - ltRtCenterMixLevel?: null | float64 @go(LtRtCenterMixLevel,*float64) - - // H264 level. - ltRtSurroundMixLevel?: null | float64 @go(LtRtSurroundMixLevel,*float64) - - // Metadata control. - metadataControl?: null | string @go(MetadataControl,*string) - passthroughControl?: null | string @go(PassthroughControl,*string) - phaseControl?: null | string @go(PhaseControl,*string) - stereoDownmix?: null | string @go(StereoDownmix,*string) - surroundExMode?: null | string @go(SurroundExMode,*string) - surroundMode?: null | string @go(SurroundMode,*string) -} - -#Eac3SettingsParameters: { - // Sets the attenuation control. - // +kubebuilder:validation:Optional - attenuationControl?: null | string @go(AttenuationControl,*string) - - // Average bitrate in bits/second. - // +kubebuilder:validation:Optional - bitrate?: null | float64 @go(Bitrate,*float64) - - // Specifies the bitstream mode (bsmod) for the emitted AC-3 stream. - // +kubebuilder:validation:Optional - bitstreamMode?: null | string @go(BitstreamMode,*string) - - // Mono, Stereo, or 5.1 channel layout. - // +kubebuilder:validation:Optional - codingMode?: null | string @go(CodingMode,*string) - - // +kubebuilder:validation:Optional - dcFilter?: null | string @go(DcFilter,*string) - - // Sets the dialnorm of the output. - // +kubebuilder:validation:Optional - dialnorm?: null | float64 @go(Dialnorm,*float64) - - // Sets the Dolby dynamic range compression profile. - // +kubebuilder:validation:Optional - drcLine?: null | string @go(DrcLine,*string) - - // Sets the profile for heavy Dolby dynamic range compression. - // +kubebuilder:validation:Optional - drcRf?: null | string @go(DrcRf,*string) - - // +kubebuilder:validation:Optional - lfeControl?: null | string @go(LfeControl,*string) - - // When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding. - // +kubebuilder:validation:Optional - lfeFilter?: null | string @go(LfeFilter,*string) - - // H264 level. - // +kubebuilder:validation:Optional - loRoCenterMixLevel?: null | float64 @go(LoRoCenterMixLevel,*float64) - - // H264 level. - // +kubebuilder:validation:Optional - loRoSurroundMixLevel?: null | float64 @go(LoRoSurroundMixLevel,*float64) - - // H264 level. - // +kubebuilder:validation:Optional - ltRtCenterMixLevel?: null | float64 @go(LtRtCenterMixLevel,*float64) - - // H264 level. - // +kubebuilder:validation:Optional - ltRtSurroundMixLevel?: null | float64 @go(LtRtSurroundMixLevel,*float64) - - // Metadata control. - // +kubebuilder:validation:Optional - metadataControl?: null | string @go(MetadataControl,*string) - - // +kubebuilder:validation:Optional - passthroughControl?: null | string @go(PassthroughControl,*string) - - // +kubebuilder:validation:Optional - phaseControl?: null | string @go(PhaseControl,*string) - - // +kubebuilder:validation:Optional - stereoDownmix?: null | string @go(StereoDownmix,*string) - - // +kubebuilder:validation:Optional - surroundExMode?: null | string @go(SurroundExMode,*string) - - // +kubebuilder:validation:Optional - surroundMode?: null | string @go(SurroundMode,*string) -} - -#EmbeddedSourceSettingsInitParameters: { - convert608To708?: null | string @go(Convert608To708,*string) - scte20Detection?: null | string @go(Scte20Detection,*string) - source608ChannelNumber?: null | float64 @go(Source608ChannelNumber,*float64) - source608TrackNumber?: null | float64 @go(Source608TrackNumber,*float64) -} - -#EmbeddedSourceSettingsObservation: { - convert608To708?: null | string @go(Convert608To708,*string) - scte20Detection?: null | string @go(Scte20Detection,*string) - source608ChannelNumber?: null | float64 @go(Source608ChannelNumber,*float64) - source608TrackNumber?: null | float64 @go(Source608TrackNumber,*float64) -} - -#EmbeddedSourceSettingsParameters: { - // +kubebuilder:validation:Optional - convert608To708?: null | string @go(Convert608To708,*string) - - // +kubebuilder:validation:Optional - scte20Detection?: null | string @go(Scte20Detection,*string) - - // +kubebuilder:validation:Optional - source608ChannelNumber?: null | float64 @go(Source608ChannelNumber,*float64) - - // +kubebuilder:validation:Optional - source608TrackNumber?: null | float64 @go(Source608TrackNumber,*float64) -} - -#EncoderSettingsInitParameters: { - // Audio descriptions for the channel. See Audio Descriptions for more details. - audioDescriptions?: [...#AudioDescriptionsInitParameters] @go(AudioDescriptions,[]AudioDescriptionsInitParameters) - - // Settings for ad avail blanking. See Avail Blanking for more details. - availBlanking?: [...#AvailBlankingInitParameters] @go(AvailBlanking,[]AvailBlankingInitParameters) - - // Output groups for the channel. See Output Groups for more details. - outputGroups?: [...#OutputGroupsInitParameters] @go(OutputGroups,[]OutputGroupsInitParameters) - - // Contains settings used to acquire and adjust timecode information from inputs. See Timecode Config for more details. - timecodeConfig?: [...#TimecodeConfigInitParameters] @go(TimecodeConfig,[]TimecodeConfigInitParameters) - - // Video Descriptions. See Video Descriptions for more details. - videoDescriptions?: [...#VideoDescriptionsInitParameters] @go(VideoDescriptions,[]VideoDescriptionsInitParameters) -} - -#EncoderSettingsObservation: { - // Audio descriptions for the channel. See Audio Descriptions for more details. - audioDescriptions?: [...#AudioDescriptionsObservation] @go(AudioDescriptions,[]AudioDescriptionsObservation) - - // Settings for ad avail blanking. See Avail Blanking for more details. - availBlanking?: [...#AvailBlankingObservation] @go(AvailBlanking,[]AvailBlankingObservation) - - // Output groups for the channel. See Output Groups for more details. - outputGroups?: [...#OutputGroupsObservation] @go(OutputGroups,[]OutputGroupsObservation) - - // Contains settings used to acquire and adjust timecode information from inputs. See Timecode Config for more details. - timecodeConfig?: [...#TimecodeConfigObservation] @go(TimecodeConfig,[]TimecodeConfigObservation) - - // Video Descriptions. See Video Descriptions for more details. - videoDescriptions?: [...#VideoDescriptionsObservation] @go(VideoDescriptions,[]VideoDescriptionsObservation) -} - -#EncoderSettingsParameters: { - // Audio descriptions for the channel. See Audio Descriptions for more details. - // +kubebuilder:validation:Optional - audioDescriptions?: [...#AudioDescriptionsParameters] @go(AudioDescriptions,[]AudioDescriptionsParameters) - - // Settings for ad avail blanking. See Avail Blanking for more details. - // +kubebuilder:validation:Optional - availBlanking?: [...#AvailBlankingParameters] @go(AvailBlanking,[]AvailBlankingParameters) - - // Output groups for the channel. See Output Groups for more details. - // +kubebuilder:validation:Optional - outputGroups: [...#OutputGroupsParameters] @go(OutputGroups,[]OutputGroupsParameters) - - // Contains settings used to acquire and adjust timecode information from inputs. See Timecode Config for more details. - // +kubebuilder:validation:Optional - timecodeConfig: [...#TimecodeConfigParameters] @go(TimecodeConfig,[]TimecodeConfigParameters) - - // Video Descriptions. See Video Descriptions for more details. - // +kubebuilder:validation:Optional - videoDescriptions?: [...#VideoDescriptionsParameters] @go(VideoDescriptions,[]VideoDescriptionsParameters) -} - -#FailoverConditionInitParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - failoverConditionSettings?: [...#FailoverConditionSettingsInitParameters] @go(FailoverConditionSettings,[]FailoverConditionSettingsInitParameters) -} - -#FailoverConditionObservation: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - failoverConditionSettings?: [...#FailoverConditionSettingsObservation] @go(FailoverConditionSettings,[]FailoverConditionSettingsObservation) -} - -#FailoverConditionParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - failoverConditionSettings?: [...#FailoverConditionSettingsParameters] @go(FailoverConditionSettings,[]FailoverConditionSettingsParameters) -} - -#FailoverConditionSettingsInitParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - audioSilenceSettings?: [...#AudioSilenceSettingsInitParameters] @go(AudioSilenceSettings,[]AudioSilenceSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - inputLossSettings?: [...#InputLossSettingsInitParameters] @go(InputLossSettings,[]InputLossSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - videoBlackSettings?: [...#VideoBlackSettingsInitParameters] @go(VideoBlackSettings,[]VideoBlackSettingsInitParameters) -} - -#FailoverConditionSettingsObservation: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - audioSilenceSettings?: [...#AudioSilenceSettingsObservation] @go(AudioSilenceSettings,[]AudioSilenceSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - inputLossSettings?: [...#InputLossSettingsObservation] @go(InputLossSettings,[]InputLossSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - videoBlackSettings?: [...#VideoBlackSettingsObservation] @go(VideoBlackSettings,[]VideoBlackSettingsObservation) -} - -#FailoverConditionSettingsParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - audioSilenceSettings?: [...#AudioSilenceSettingsParameters] @go(AudioSilenceSettings,[]AudioSilenceSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - inputLossSettings?: [...#InputLossSettingsParameters] @go(InputLossSettings,[]InputLossSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - videoBlackSettings?: [...#VideoBlackSettingsParameters] @go(VideoBlackSettings,[]VideoBlackSettingsParameters) -} - -#FecOutputSettingsInitParameters: { - // The height of the FEC protection matrix. - columnDepth?: null | float64 @go(ColumnDepth,*float64) - - // Enables column only or column and row based FEC. - includeFec?: null | string @go(IncludeFec,*string) - - // The width of the FEC protection matrix. - rowLength?: null | float64 @go(RowLength,*float64) -} - -#FecOutputSettingsObservation: { - // The height of the FEC protection matrix. - columnDepth?: null | float64 @go(ColumnDepth,*float64) - - // Enables column only or column and row based FEC. - includeFec?: null | string @go(IncludeFec,*string) - - // The width of the FEC protection matrix. - rowLength?: null | float64 @go(RowLength,*float64) -} - -#FecOutputSettingsParameters: { - // The height of the FEC protection matrix. - // +kubebuilder:validation:Optional - columnDepth?: null | float64 @go(ColumnDepth,*float64) - - // Enables column only or column and row based FEC. - // +kubebuilder:validation:Optional - includeFec?: null | string @go(IncludeFec,*string) - - // The width of the FEC protection matrix. - // +kubebuilder:validation:Optional - rowLength?: null | float64 @go(RowLength,*float64) -} - -#FilterSettingsInitParameters: { - // Temporal filter settings. See Temporal Filter Settings - temporalFilterSettings?: [...#TemporalFilterSettingsInitParameters] @go(TemporalFilterSettings,[]TemporalFilterSettingsInitParameters) -} - -#FilterSettingsObservation: { - // Temporal filter settings. See Temporal Filter Settings - temporalFilterSettings?: [...#TemporalFilterSettingsObservation] @go(TemporalFilterSettings,[]TemporalFilterSettingsObservation) -} - -#FilterSettingsParameters: { - // Temporal filter settings. See Temporal Filter Settings - // +kubebuilder:validation:Optional - temporalFilterSettings?: [...#TemporalFilterSettingsParameters] @go(TemporalFilterSettings,[]TemporalFilterSettingsParameters) -} - -#FilterSettingsTemporalFilterSettingsInitParameters: { - // Post filter sharpening. - postFilterSharpening?: null | string @go(PostFilterSharpening,*string) - - // Filter strength. - strength?: null | string @go(Strength,*string) -} - -#FilterSettingsTemporalFilterSettingsObservation: { - // Post filter sharpening. - postFilterSharpening?: null | string @go(PostFilterSharpening,*string) - - // Filter strength. - strength?: null | string @go(Strength,*string) -} - -#FilterSettingsTemporalFilterSettingsParameters: { - // Post filter sharpening. - // +kubebuilder:validation:Optional - postFilterSharpening?: null | string @go(PostFilterSharpening,*string) - - // Filter strength. - // +kubebuilder:validation:Optional - strength?: null | string @go(Strength,*string) -} - -#Fmp4HlsSettingsInitParameters: { - audioRenditionSets?: null | string @go(AudioRenditionSets,*string) - nielsenId3Behavior?: null | string @go(NielsenId3Behavior,*string) - timedMetadataBehavior?: null | string @go(TimedMetadataBehavior,*string) -} - -#Fmp4HlsSettingsObservation: { - audioRenditionSets?: null | string @go(AudioRenditionSets,*string) - nielsenId3Behavior?: null | string @go(NielsenId3Behavior,*string) - timedMetadataBehavior?: null | string @go(TimedMetadataBehavior,*string) -} - -#Fmp4HlsSettingsParameters: { - // +kubebuilder:validation:Optional - audioRenditionSets?: null | string @go(AudioRenditionSets,*string) - - // +kubebuilder:validation:Optional - nielsenId3Behavior?: null | string @go(NielsenId3Behavior,*string) - - // +kubebuilder:validation:Optional - timedMetadataBehavior?: null | string @go(TimedMetadataBehavior,*string) -} - -#FrameCaptureCdnSettingsInitParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - frameCaptureS3Settings?: [...#FrameCaptureS3SettingsInitParameters] @go(FrameCaptureS3Settings,[]FrameCaptureS3SettingsInitParameters) -} - -#FrameCaptureCdnSettingsObservation: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - frameCaptureS3Settings?: [...#FrameCaptureS3SettingsObservation] @go(FrameCaptureS3Settings,[]FrameCaptureS3SettingsObservation) -} - -#FrameCaptureCdnSettingsParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - frameCaptureS3Settings?: [...#FrameCaptureS3SettingsParameters] @go(FrameCaptureS3Settings,[]FrameCaptureS3SettingsParameters) -} - -#FrameCaptureGroupSettingsDestinationInitParameters: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#FrameCaptureGroupSettingsDestinationObservation: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#FrameCaptureGroupSettingsDestinationParameters: { - // Reference ID for the destination. - // +kubebuilder:validation:Optional - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#FrameCaptureGroupSettingsInitParameters: { - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#FrameCaptureGroupSettingsDestinationInitParameters] @go(Destination,[]FrameCaptureGroupSettingsDestinationInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - frameCaptureCdnSettings?: [...#FrameCaptureCdnSettingsInitParameters] @go(FrameCaptureCdnSettings,[]FrameCaptureCdnSettingsInitParameters) -} - -#FrameCaptureGroupSettingsObservation: { - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#FrameCaptureGroupSettingsDestinationObservation] @go(Destination,[]FrameCaptureGroupSettingsDestinationObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - frameCaptureCdnSettings?: [...#FrameCaptureCdnSettingsObservation] @go(FrameCaptureCdnSettings,[]FrameCaptureCdnSettingsObservation) -} - -#FrameCaptureGroupSettingsParameters: { - // A director and base filename where archive files should be written. See Destination for more details. - // +kubebuilder:validation:Optional - destination: [...#FrameCaptureGroupSettingsDestinationParameters] @go(Destination,[]FrameCaptureGroupSettingsDestinationParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - frameCaptureCdnSettings?: [...#FrameCaptureCdnSettingsParameters] @go(FrameCaptureCdnSettings,[]FrameCaptureCdnSettingsParameters) -} - -#FrameCaptureHlsSettingsInitParameters: { -} - -#FrameCaptureHlsSettingsObservation: { -} - -#FrameCaptureHlsSettingsParameters: { -} - -#FrameCaptureOutputSettingsInitParameters: { - // String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - nameModifier?: null | string @go(NameModifier,*string) -} - -#FrameCaptureOutputSettingsObservation: { - // String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - nameModifier?: null | string @go(NameModifier,*string) -} - -#FrameCaptureOutputSettingsParameters: { - // String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - // +kubebuilder:validation:Optional - nameModifier?: null | string @go(NameModifier,*string) -} - -#FrameCaptureS3SettingsInitParameters: { - // Specify the canned ACL to apply to each S3 request. - cannedAcl?: null | string @go(CannedACL,*string) -} - -#FrameCaptureS3SettingsObservation: { - // Specify the canned ACL to apply to each S3 request. - cannedAcl?: null | string @go(CannedACL,*string) -} - -#FrameCaptureS3SettingsParameters: { - // Specify the canned ACL to apply to each S3 request. - // +kubebuilder:validation:Optional - cannedAcl?: null | string @go(CannedACL,*string) -} - -#FrameCaptureSettingsInitParameters: { - // The frequency at which to capture frames for inclusion in the output. - captureInterval?: null | float64 @go(CaptureInterval,*float64) - - // Unit for the frame capture interval. - captureIntervalUnits?: null | string @go(CaptureIntervalUnits,*string) -} - -#FrameCaptureSettingsObservation: { - // The frequency at which to capture frames for inclusion in the output. - captureInterval?: null | float64 @go(CaptureInterval,*float64) - - // Unit for the frame capture interval. - captureIntervalUnits?: null | string @go(CaptureIntervalUnits,*string) -} - -#FrameCaptureSettingsParameters: { - // The frequency at which to capture frames for inclusion in the output. - // +kubebuilder:validation:Optional - captureInterval?: null | float64 @go(CaptureInterval,*float64) - - // Unit for the frame capture interval. - // +kubebuilder:validation:Optional - captureIntervalUnits?: null | string @go(CaptureIntervalUnits,*string) -} - -#H264SettingsInitParameters: { - // Enables or disables adaptive quantization. - adaptiveQuantization?: null | string @go(AdaptiveQuantization,*string) - - // Indicates that AFD values will be written into the output stream. - afdSignaling?: null | string @go(AfdSignaling,*string) - - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - bufFillPct?: null | float64 @go(BufFillPct,*float64) - - // Size of buffer in bits. - bufSize?: null | float64 @go(BufSize,*float64) - - // Includes color space metadata in the output. - colorMetadata?: null | string @go(ColorMetadata,*string) - - // Entropy encoding mode. - entropyEncoding?: null | string @go(EntropyEncoding,*string) - - // Filters to apply to an encode. See H264 Filter Settings for more details. - filterSettings?: [...#FilterSettingsInitParameters] @go(FilterSettings,[]FilterSettingsInitParameters) - - // Four bit AFD value to write on all frames of video in the output stream. - fixedAfd?: null | string @go(FixedAfd,*string) - flickerAq?: null | string @go(FlickerAq,*string) - - // Controls whether coding is performed on a field basis or on a frame basis. - forceFieldPictures?: null | string @go(ForceFieldPictures,*string) - - // Indicates how the output video frame rate is specified. - framerateControl?: null | string @go(FramerateControl,*string) - - // Framerate denominator. - framerateDenominator?: null | float64 @go(FramerateDenominator,*float64) - - // Framerate numerator. - framerateNumerator?: null | float64 @go(FramerateNumerator,*float64) - - // GOP-B reference. - gopBReference?: null | string @go(GopBReference,*string) - - // Frequency of closed GOPs. - gopClosedCadence?: null | float64 @go(GopClosedCadence,*float64) - - // Number of B-frames between reference frames. - gopNumBFrames?: null | float64 @go(GopNumBFrames,*float64) - - // GOP size in units of either frames of seconds per gop_size_units. - gopSize?: null | float64 @go(GopSize,*float64) - - // Indicates if the gop_size is specified in frames or seconds. - gopSizeUnits?: null | string @go(GopSizeUnits,*string) - - // H264 level. - level?: null | string @go(Level,*string) - - // Amount of lookahead. - lookAheadRateControl?: null | string @go(LookAheadRateControl,*string) - - // Set the maximum bitrate in order to accommodate expected spikes in the complexity of the video. - maxBitrate?: null | float64 @go(MaxBitrate,*float64) - minIInterval?: null | float64 @go(MinIInterval,*float64) - - // Number of reference frames to use. - numRefFrames?: null | float64 @go(NumRefFrames,*float64) - - // Indicates how the output pixel aspect ratio is specified. - parControl?: null | string @go(ParControl,*string) - - // Pixel Aspect Ratio denominator. - parDenominator?: null | float64 @go(ParDenominator,*float64) - - // Pixel Aspect Ratio numerator. - parNumerator?: null | float64 @go(ParNumerator,*float64) - - // AAC profile. - profile?: null | string @go(Profile,*string) - - // Quality level. - qualityLevel?: null | string @go(QualityLevel,*string) - - // Controls the target quality for the video encode. - qvbrQualityLevel?: null | float64 @go(QvbrQualityLevel,*float64) - - // The rate control mode. - rateControlMode?: null | string @go(RateControlMode,*string) - - // Sets the scan type of the output. - scanType?: null | string @go(ScanType,*string) - - // Scene change detection. - sceneChangeDetect?: null | string @go(SceneChangeDetect,*string) - - // Number of slices per picture. - slices?: null | float64 @go(Slices,*float64) - - // Softness. - softness?: null | float64 @go(Softness,*float64) - - // Makes adjustments within each frame based on spatial variation of content complexity. - spatialAq?: null | string @go(SpatialAq,*string) - - // Subgop length. - subgopLength?: null | string @go(SubgopLength,*string) - - // Produces a bitstream compliant with SMPTE RP-2027. - syntax?: null | string @go(Syntax,*string) - - // Makes adjustments within each frame based on temporal variation of content complexity. - temporalAq?: null | string @go(TemporalAq,*string) - - // Determines how timecodes should be inserted into the video elementary stream. - timecodeInsertion?: null | string @go(TimecodeInsertion,*string) -} - -#H264SettingsObservation: { - // Enables or disables adaptive quantization. - adaptiveQuantization?: null | string @go(AdaptiveQuantization,*string) - - // Indicates that AFD values will be written into the output stream. - afdSignaling?: null | string @go(AfdSignaling,*string) - - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - bufFillPct?: null | float64 @go(BufFillPct,*float64) - - // Size of buffer in bits. - bufSize?: null | float64 @go(BufSize,*float64) - - // Includes color space metadata in the output. - colorMetadata?: null | string @go(ColorMetadata,*string) - - // Entropy encoding mode. - entropyEncoding?: null | string @go(EntropyEncoding,*string) - - // Filters to apply to an encode. See H264 Filter Settings for more details. - filterSettings?: [...#FilterSettingsObservation] @go(FilterSettings,[]FilterSettingsObservation) - - // Four bit AFD value to write on all frames of video in the output stream. - fixedAfd?: null | string @go(FixedAfd,*string) - flickerAq?: null | string @go(FlickerAq,*string) - - // Controls whether coding is performed on a field basis or on a frame basis. - forceFieldPictures?: null | string @go(ForceFieldPictures,*string) - - // Indicates how the output video frame rate is specified. - framerateControl?: null | string @go(FramerateControl,*string) - - // Framerate denominator. - framerateDenominator?: null | float64 @go(FramerateDenominator,*float64) - - // Framerate numerator. - framerateNumerator?: null | float64 @go(FramerateNumerator,*float64) - - // GOP-B reference. - gopBReference?: null | string @go(GopBReference,*string) - - // Frequency of closed GOPs. - gopClosedCadence?: null | float64 @go(GopClosedCadence,*float64) - - // Number of B-frames between reference frames. - gopNumBFrames?: null | float64 @go(GopNumBFrames,*float64) - - // GOP size in units of either frames of seconds per gop_size_units. - gopSize?: null | float64 @go(GopSize,*float64) - - // Indicates if the gop_size is specified in frames or seconds. - gopSizeUnits?: null | string @go(GopSizeUnits,*string) - - // H264 level. - level?: null | string @go(Level,*string) - - // Amount of lookahead. - lookAheadRateControl?: null | string @go(LookAheadRateControl,*string) - - // Set the maximum bitrate in order to accommodate expected spikes in the complexity of the video. - maxBitrate?: null | float64 @go(MaxBitrate,*float64) - minIInterval?: null | float64 @go(MinIInterval,*float64) - - // Number of reference frames to use. - numRefFrames?: null | float64 @go(NumRefFrames,*float64) - - // Indicates how the output pixel aspect ratio is specified. - parControl?: null | string @go(ParControl,*string) - - // Pixel Aspect Ratio denominator. - parDenominator?: null | float64 @go(ParDenominator,*float64) - - // Pixel Aspect Ratio numerator. - parNumerator?: null | float64 @go(ParNumerator,*float64) - - // AAC profile. - profile?: null | string @go(Profile,*string) - - // Quality level. - qualityLevel?: null | string @go(QualityLevel,*string) - - // Controls the target quality for the video encode. - qvbrQualityLevel?: null | float64 @go(QvbrQualityLevel,*float64) - - // The rate control mode. - rateControlMode?: null | string @go(RateControlMode,*string) - - // Sets the scan type of the output. - scanType?: null | string @go(ScanType,*string) - - // Scene change detection. - sceneChangeDetect?: null | string @go(SceneChangeDetect,*string) - - // Number of slices per picture. - slices?: null | float64 @go(Slices,*float64) - - // Softness. - softness?: null | float64 @go(Softness,*float64) - - // Makes adjustments within each frame based on spatial variation of content complexity. - spatialAq?: null | string @go(SpatialAq,*string) - - // Subgop length. - subgopLength?: null | string @go(SubgopLength,*string) - - // Produces a bitstream compliant with SMPTE RP-2027. - syntax?: null | string @go(Syntax,*string) - - // Makes adjustments within each frame based on temporal variation of content complexity. - temporalAq?: null | string @go(TemporalAq,*string) - - // Determines how timecodes should be inserted into the video elementary stream. - timecodeInsertion?: null | string @go(TimecodeInsertion,*string) -} - -#H264SettingsParameters: { - // Enables or disables adaptive quantization. - // +kubebuilder:validation:Optional - adaptiveQuantization?: null | string @go(AdaptiveQuantization,*string) - - // Indicates that AFD values will be written into the output stream. - // +kubebuilder:validation:Optional - afdSignaling?: null | string @go(AfdSignaling,*string) - - // Average bitrate in bits/second. - // +kubebuilder:validation:Optional - bitrate?: null | float64 @go(Bitrate,*float64) - - // +kubebuilder:validation:Optional - bufFillPct?: null | float64 @go(BufFillPct,*float64) - - // Size of buffer in bits. - // +kubebuilder:validation:Optional - bufSize?: null | float64 @go(BufSize,*float64) - - // Includes color space metadata in the output. - // +kubebuilder:validation:Optional - colorMetadata?: null | string @go(ColorMetadata,*string) - - // Entropy encoding mode. - // +kubebuilder:validation:Optional - entropyEncoding?: null | string @go(EntropyEncoding,*string) - - // Filters to apply to an encode. See H264 Filter Settings for more details. - // +kubebuilder:validation:Optional - filterSettings?: [...#FilterSettingsParameters] @go(FilterSettings,[]FilterSettingsParameters) - - // Four bit AFD value to write on all frames of video in the output stream. - // +kubebuilder:validation:Optional - fixedAfd?: null | string @go(FixedAfd,*string) - - // +kubebuilder:validation:Optional - flickerAq?: null | string @go(FlickerAq,*string) - - // Controls whether coding is performed on a field basis or on a frame basis. - // +kubebuilder:validation:Optional - forceFieldPictures?: null | string @go(ForceFieldPictures,*string) - - // Indicates how the output video frame rate is specified. - // +kubebuilder:validation:Optional - framerateControl?: null | string @go(FramerateControl,*string) - - // Framerate denominator. - // +kubebuilder:validation:Optional - framerateDenominator?: null | float64 @go(FramerateDenominator,*float64) - - // Framerate numerator. - // +kubebuilder:validation:Optional - framerateNumerator?: null | float64 @go(FramerateNumerator,*float64) - - // GOP-B reference. - // +kubebuilder:validation:Optional - gopBReference?: null | string @go(GopBReference,*string) - - // Frequency of closed GOPs. - // +kubebuilder:validation:Optional - gopClosedCadence?: null | float64 @go(GopClosedCadence,*float64) - - // Number of B-frames between reference frames. - // +kubebuilder:validation:Optional - gopNumBFrames?: null | float64 @go(GopNumBFrames,*float64) - - // GOP size in units of either frames of seconds per gop_size_units. - // +kubebuilder:validation:Optional - gopSize?: null | float64 @go(GopSize,*float64) - - // Indicates if the gop_size is specified in frames or seconds. - // +kubebuilder:validation:Optional - gopSizeUnits?: null | string @go(GopSizeUnits,*string) - - // H264 level. - // +kubebuilder:validation:Optional - level?: null | string @go(Level,*string) - - // Amount of lookahead. - // +kubebuilder:validation:Optional - lookAheadRateControl?: null | string @go(LookAheadRateControl,*string) - - // Set the maximum bitrate in order to accommodate expected spikes in the complexity of the video. - // +kubebuilder:validation:Optional - maxBitrate?: null | float64 @go(MaxBitrate,*float64) - - // +kubebuilder:validation:Optional - minIInterval?: null | float64 @go(MinIInterval,*float64) - - // Number of reference frames to use. - // +kubebuilder:validation:Optional - numRefFrames?: null | float64 @go(NumRefFrames,*float64) - - // Indicates how the output pixel aspect ratio is specified. - // +kubebuilder:validation:Optional - parControl?: null | string @go(ParControl,*string) - - // Pixel Aspect Ratio denominator. - // +kubebuilder:validation:Optional - parDenominator?: null | float64 @go(ParDenominator,*float64) - - // Pixel Aspect Ratio numerator. - // +kubebuilder:validation:Optional - parNumerator?: null | float64 @go(ParNumerator,*float64) - - // AAC profile. - // +kubebuilder:validation:Optional - profile?: null | string @go(Profile,*string) - - // Quality level. - // +kubebuilder:validation:Optional - qualityLevel?: null | string @go(QualityLevel,*string) - - // Controls the target quality for the video encode. - // +kubebuilder:validation:Optional - qvbrQualityLevel?: null | float64 @go(QvbrQualityLevel,*float64) - - // The rate control mode. - // +kubebuilder:validation:Optional - rateControlMode?: null | string @go(RateControlMode,*string) - - // Sets the scan type of the output. - // +kubebuilder:validation:Optional - scanType?: null | string @go(ScanType,*string) - - // Scene change detection. - // +kubebuilder:validation:Optional - sceneChangeDetect?: null | string @go(SceneChangeDetect,*string) - - // Number of slices per picture. - // +kubebuilder:validation:Optional - slices?: null | float64 @go(Slices,*float64) - - // Softness. - // +kubebuilder:validation:Optional - softness?: null | float64 @go(Softness,*float64) - - // Makes adjustments within each frame based on spatial variation of content complexity. - // +kubebuilder:validation:Optional - spatialAq?: null | string @go(SpatialAq,*string) - - // Subgop length. - // +kubebuilder:validation:Optional - subgopLength?: null | string @go(SubgopLength,*string) - - // Produces a bitstream compliant with SMPTE RP-2027. - // +kubebuilder:validation:Optional - syntax?: null | string @go(Syntax,*string) - - // Makes adjustments within each frame based on temporal variation of content complexity. - // +kubebuilder:validation:Optional - temporalAq?: null | string @go(TemporalAq,*string) - - // Determines how timecodes should be inserted into the video elementary stream. - // +kubebuilder:validation:Optional - timecodeInsertion?: null | string @go(TimecodeInsertion,*string) -} - -#H265SettingsFilterSettingsInitParameters: { - // Temporal filter settings. See Temporal Filter Settings - temporalFilterSettings?: [...#FilterSettingsTemporalFilterSettingsInitParameters] @go(TemporalFilterSettings,[]FilterSettingsTemporalFilterSettingsInitParameters) -} - -#H265SettingsFilterSettingsObservation: { - // Temporal filter settings. See Temporal Filter Settings - temporalFilterSettings?: [...#FilterSettingsTemporalFilterSettingsObservation] @go(TemporalFilterSettings,[]FilterSettingsTemporalFilterSettingsObservation) -} - -#H265SettingsFilterSettingsParameters: { - // Temporal filter settings. See Temporal Filter Settings - // +kubebuilder:validation:Optional - temporalFilterSettings?: [...#FilterSettingsTemporalFilterSettingsParameters] @go(TemporalFilterSettings,[]FilterSettingsTemporalFilterSettingsParameters) -} - -#H265SettingsInitParameters: { - // Enables or disables adaptive quantization. - adaptiveQuantization?: null | string @go(AdaptiveQuantization,*string) - - // Indicates that AFD values will be written into the output stream. - afdSignaling?: null | string @go(AfdSignaling,*string) - - // Whether or not EML should insert an Alternative Transfer Function SEI message. - alternativeTransferFunction?: null | string @go(AlternativeTransferFunction,*string) - - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - - // Size of buffer in bits. - bufSize?: null | float64 @go(BufSize,*float64) - - // Includes color space metadata in the output. - colorMetadata?: null | string @go(ColorMetadata,*string) - - // Define the color metadata for the output. H265 Color Space Settings for more details. - colorSpaceSettings?: [...#ColorSpaceSettingsInitParameters] @go(ColorSpaceSettings,[]ColorSpaceSettingsInitParameters) - - // Filters to apply to an encode. See H264 Filter Settings for more details. - filterSettings?: [...#H265SettingsFilterSettingsInitParameters] @go(FilterSettings,[]H265SettingsFilterSettingsInitParameters) - - // Four bit AFD value to write on all frames of video in the output stream. - fixedAfd?: null | string @go(FixedAfd,*string) - flickerAq?: null | string @go(FlickerAq,*string) - - // Framerate denominator. - framerateDenominator?: null | float64 @go(FramerateDenominator,*float64) - - // Framerate numerator. - framerateNumerator?: null | float64 @go(FramerateNumerator,*float64) - - // Frequency of closed GOPs. - gopClosedCadence?: null | float64 @go(GopClosedCadence,*float64) - - // GOP size in units of either frames of seconds per gop_size_units. - gopSize?: null | float64 @go(GopSize,*float64) - - // Indicates if the gop_size is specified in frames or seconds. - gopSizeUnits?: null | string @go(GopSizeUnits,*string) - - // H264 level. - level?: null | string @go(Level,*string) - - // Amount of lookahead. - lookAheadRateControl?: null | string @go(LookAheadRateControl,*string) - - // Set the maximum bitrate in order to accommodate expected spikes in the complexity of the video. - maxBitrate?: null | float64 @go(MaxBitrate,*float64) - minIInterval?: null | float64 @go(MinIInterval,*float64) - - // Pixel Aspect Ratio denominator. - parDenominator?: null | float64 @go(ParDenominator,*float64) - - // Pixel Aspect Ratio numerator. - parNumerator?: null | float64 @go(ParNumerator,*float64) - - // AAC profile. - profile?: null | string @go(Profile,*string) - - // Controls the target quality for the video encode. - qvbrQualityLevel?: null | float64 @go(QvbrQualityLevel,*float64) - - // The rate control mode. - rateControlMode?: null | string @go(RateControlMode,*string) - - // Sets the scan type of the output. - scanType?: null | string @go(ScanType,*string) - - // Scene change detection. - sceneChangeDetect?: null | string @go(SceneChangeDetect,*string) - - // Number of slices per picture. - slices?: null | float64 @go(Slices,*float64) - - // Set the H265 tier in the output. - tier?: null | string @go(Tier,*string) - - // Apply a burned in timecode. See H265 Timecode Burnin Settings for more details. - timecodeBurninSettings?: [...#TimecodeBurninSettingsInitParameters] @go(TimecodeBurninSettings,[]TimecodeBurninSettingsInitParameters) - - // Determines how timecodes should be inserted into the video elementary stream. - timecodeInsertion?: null | string @go(TimecodeInsertion,*string) -} - -#H265SettingsObservation: { - // Enables or disables adaptive quantization. - adaptiveQuantization?: null | string @go(AdaptiveQuantization,*string) - - // Indicates that AFD values will be written into the output stream. - afdSignaling?: null | string @go(AfdSignaling,*string) - - // Whether or not EML should insert an Alternative Transfer Function SEI message. - alternativeTransferFunction?: null | string @go(AlternativeTransferFunction,*string) - - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - - // Size of buffer in bits. - bufSize?: null | float64 @go(BufSize,*float64) - - // Includes color space metadata in the output. - colorMetadata?: null | string @go(ColorMetadata,*string) - - // Define the color metadata for the output. H265 Color Space Settings for more details. - colorSpaceSettings?: [...#ColorSpaceSettingsObservation] @go(ColorSpaceSettings,[]ColorSpaceSettingsObservation) - - // Filters to apply to an encode. See H264 Filter Settings for more details. - filterSettings?: [...#H265SettingsFilterSettingsObservation] @go(FilterSettings,[]H265SettingsFilterSettingsObservation) - - // Four bit AFD value to write on all frames of video in the output stream. - fixedAfd?: null | string @go(FixedAfd,*string) - flickerAq?: null | string @go(FlickerAq,*string) - - // Framerate denominator. - framerateDenominator?: null | float64 @go(FramerateDenominator,*float64) - - // Framerate numerator. - framerateNumerator?: null | float64 @go(FramerateNumerator,*float64) - - // Frequency of closed GOPs. - gopClosedCadence?: null | float64 @go(GopClosedCadence,*float64) - - // GOP size in units of either frames of seconds per gop_size_units. - gopSize?: null | float64 @go(GopSize,*float64) - - // Indicates if the gop_size is specified in frames or seconds. - gopSizeUnits?: null | string @go(GopSizeUnits,*string) - - // H264 level. - level?: null | string @go(Level,*string) - - // Amount of lookahead. - lookAheadRateControl?: null | string @go(LookAheadRateControl,*string) - - // Set the maximum bitrate in order to accommodate expected spikes in the complexity of the video. - maxBitrate?: null | float64 @go(MaxBitrate,*float64) - minIInterval?: null | float64 @go(MinIInterval,*float64) - - // Pixel Aspect Ratio denominator. - parDenominator?: null | float64 @go(ParDenominator,*float64) - - // Pixel Aspect Ratio numerator. - parNumerator?: null | float64 @go(ParNumerator,*float64) - - // AAC profile. - profile?: null | string @go(Profile,*string) - - // Controls the target quality for the video encode. - qvbrQualityLevel?: null | float64 @go(QvbrQualityLevel,*float64) - - // The rate control mode. - rateControlMode?: null | string @go(RateControlMode,*string) - - // Sets the scan type of the output. - scanType?: null | string @go(ScanType,*string) - - // Scene change detection. - sceneChangeDetect?: null | string @go(SceneChangeDetect,*string) - - // Number of slices per picture. - slices?: null | float64 @go(Slices,*float64) - - // Set the H265 tier in the output. - tier?: null | string @go(Tier,*string) - - // Apply a burned in timecode. See H265 Timecode Burnin Settings for more details. - timecodeBurninSettings?: [...#TimecodeBurninSettingsObservation] @go(TimecodeBurninSettings,[]TimecodeBurninSettingsObservation) - - // Determines how timecodes should be inserted into the video elementary stream. - timecodeInsertion?: null | string @go(TimecodeInsertion,*string) -} - -#H265SettingsParameters: { - // Enables or disables adaptive quantization. - // +kubebuilder:validation:Optional - adaptiveQuantization?: null | string @go(AdaptiveQuantization,*string) - - // Indicates that AFD values will be written into the output stream. - // +kubebuilder:validation:Optional - afdSignaling?: null | string @go(AfdSignaling,*string) - - // Whether or not EML should insert an Alternative Transfer Function SEI message. - // +kubebuilder:validation:Optional - alternativeTransferFunction?: null | string @go(AlternativeTransferFunction,*string) - - // Average bitrate in bits/second. - // +kubebuilder:validation:Optional - bitrate?: null | float64 @go(Bitrate,*float64) - - // Size of buffer in bits. - // +kubebuilder:validation:Optional - bufSize?: null | float64 @go(BufSize,*float64) - - // Includes color space metadata in the output. - // +kubebuilder:validation:Optional - colorMetadata?: null | string @go(ColorMetadata,*string) - - // Define the color metadata for the output. H265 Color Space Settings for more details. - // +kubebuilder:validation:Optional - colorSpaceSettings?: [...#ColorSpaceSettingsParameters] @go(ColorSpaceSettings,[]ColorSpaceSettingsParameters) - - // Filters to apply to an encode. See H264 Filter Settings for more details. - // +kubebuilder:validation:Optional - filterSettings?: [...#H265SettingsFilterSettingsParameters] @go(FilterSettings,[]H265SettingsFilterSettingsParameters) - - // Four bit AFD value to write on all frames of video in the output stream. - // +kubebuilder:validation:Optional - fixedAfd?: null | string @go(FixedAfd,*string) - - // +kubebuilder:validation:Optional - flickerAq?: null | string @go(FlickerAq,*string) - - // Framerate denominator. - // +kubebuilder:validation:Optional - framerateDenominator?: null | float64 @go(FramerateDenominator,*float64) - - // Framerate numerator. - // +kubebuilder:validation:Optional - framerateNumerator?: null | float64 @go(FramerateNumerator,*float64) - - // Frequency of closed GOPs. - // +kubebuilder:validation:Optional - gopClosedCadence?: null | float64 @go(GopClosedCadence,*float64) - - // GOP size in units of either frames of seconds per gop_size_units. - // +kubebuilder:validation:Optional - gopSize?: null | float64 @go(GopSize,*float64) - - // Indicates if the gop_size is specified in frames or seconds. - // +kubebuilder:validation:Optional - gopSizeUnits?: null | string @go(GopSizeUnits,*string) - - // H264 level. - // +kubebuilder:validation:Optional - level?: null | string @go(Level,*string) - - // Amount of lookahead. - // +kubebuilder:validation:Optional - lookAheadRateControl?: null | string @go(LookAheadRateControl,*string) - - // Set the maximum bitrate in order to accommodate expected spikes in the complexity of the video. - // +kubebuilder:validation:Optional - maxBitrate?: null | float64 @go(MaxBitrate,*float64) - - // +kubebuilder:validation:Optional - minIInterval?: null | float64 @go(MinIInterval,*float64) - - // Pixel Aspect Ratio denominator. - // +kubebuilder:validation:Optional - parDenominator?: null | float64 @go(ParDenominator,*float64) - - // Pixel Aspect Ratio numerator. - // +kubebuilder:validation:Optional - parNumerator?: null | float64 @go(ParNumerator,*float64) - - // AAC profile. - // +kubebuilder:validation:Optional - profile?: null | string @go(Profile,*string) - - // Controls the target quality for the video encode. - // +kubebuilder:validation:Optional - qvbrQualityLevel?: null | float64 @go(QvbrQualityLevel,*float64) - - // The rate control mode. - // +kubebuilder:validation:Optional - rateControlMode?: null | string @go(RateControlMode,*string) - - // Sets the scan type of the output. - // +kubebuilder:validation:Optional - scanType?: null | string @go(ScanType,*string) - - // Scene change detection. - // +kubebuilder:validation:Optional - sceneChangeDetect?: null | string @go(SceneChangeDetect,*string) - - // Number of slices per picture. - // +kubebuilder:validation:Optional - slices?: null | float64 @go(Slices,*float64) - - // Set the H265 tier in the output. - // +kubebuilder:validation:Optional - tier?: null | string @go(Tier,*string) - - // Apply a burned in timecode. See H265 Timecode Burnin Settings for more details. - // +kubebuilder:validation:Optional - timecodeBurninSettings?: [...#TimecodeBurninSettingsParameters] @go(TimecodeBurninSettings,[]TimecodeBurninSettingsParameters) - - // Determines how timecodes should be inserted into the video elementary stream. - // +kubebuilder:validation:Optional - timecodeInsertion?: null | string @go(TimecodeInsertion,*string) -} - -#Hdr10SettingsInitParameters: { - // Sets the MaxCLL value for HDR10. - maxCll?: null | float64 @go(MaxCll,*float64) - - // Sets the MaxFALL value for HDR10. - maxFall?: null | float64 @go(MaxFall,*float64) -} - -#Hdr10SettingsObservation: { - // Sets the MaxCLL value for HDR10. - maxCll?: null | float64 @go(MaxCll,*float64) - - // Sets the MaxFALL value for HDR10. - maxFall?: null | float64 @go(MaxFall,*float64) -} - -#Hdr10SettingsParameters: { - // Sets the MaxCLL value for HDR10. - // +kubebuilder:validation:Optional - maxCll?: null | float64 @go(MaxCll,*float64) - - // Sets the MaxFALL value for HDR10. - // +kubebuilder:validation:Optional - maxFall?: null | float64 @go(MaxFall,*float64) -} - -#HlsAkamaiSettingsInitParameters: { - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - httpTransferMode?: null | string @go(HTTPTransferMode,*string) - - // Number of retry attempts. - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - restartDelay?: null | float64 @go(RestartDelay,*float64) - salt?: null | string @go(Salt,*string) - token?: null | string @go(Token,*string) -} - -#HlsAkamaiSettingsObservation: { - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - httpTransferMode?: null | string @go(HTTPTransferMode,*string) - - // Number of retry attempts. - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - restartDelay?: null | float64 @go(RestartDelay,*float64) - salt?: null | string @go(Salt,*string) - token?: null | string @go(Token,*string) -} - -#HlsAkamaiSettingsParameters: { - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - // +kubebuilder:validation:Optional - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - - // +kubebuilder:validation:Optional - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - - // +kubebuilder:validation:Optional - httpTransferMode?: null | string @go(HTTPTransferMode,*string) - - // Number of retry attempts. - // +kubebuilder:validation:Optional - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - // +kubebuilder:validation:Optional - restartDelay?: null | float64 @go(RestartDelay,*float64) - - // +kubebuilder:validation:Optional - salt?: null | string @go(Salt,*string) - - // +kubebuilder:validation:Optional - token?: null | string @go(Token,*string) -} - -#HlsBasicPutSettingsInitParameters: { - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - - // Number of retry attempts. - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - restartDelay?: null | float64 @go(RestartDelay,*float64) -} - -#HlsBasicPutSettingsObservation: { - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - - // Number of retry attempts. - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - restartDelay?: null | float64 @go(RestartDelay,*float64) -} - -#HlsBasicPutSettingsParameters: { - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - // +kubebuilder:validation:Optional - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - - // +kubebuilder:validation:Optional - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - - // Number of retry attempts. - // +kubebuilder:validation:Optional - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - // +kubebuilder:validation:Optional - restartDelay?: null | float64 @go(RestartDelay,*float64) -} - -#HlsCdnSettingsInitParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsAkamaiSettings?: [...#HlsAkamaiSettingsInitParameters] @go(HlsAkamaiSettings,[]HlsAkamaiSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsBasicPutSettings?: [...#HlsBasicPutSettingsInitParameters] @go(HlsBasicPutSettings,[]HlsBasicPutSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsMediaStoreSettings?: [...#HlsMediaStoreSettingsInitParameters] @go(HlsMediaStoreSettings,[]HlsMediaStoreSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsS3Settings?: [...#HlsS3SettingsInitParameters] @go(HlsS3Settings,[]HlsS3SettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsWebdavSettings?: [...#HlsWebdavSettingsInitParameters] @go(HlsWebdavSettings,[]HlsWebdavSettingsInitParameters) -} - -#HlsCdnSettingsObservation: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsAkamaiSettings?: [...#HlsAkamaiSettingsObservation] @go(HlsAkamaiSettings,[]HlsAkamaiSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsBasicPutSettings?: [...#HlsBasicPutSettingsObservation] @go(HlsBasicPutSettings,[]HlsBasicPutSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsMediaStoreSettings?: [...#HlsMediaStoreSettingsObservation] @go(HlsMediaStoreSettings,[]HlsMediaStoreSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsS3Settings?: [...#HlsS3SettingsObservation] @go(HlsS3Settings,[]HlsS3SettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsWebdavSettings?: [...#HlsWebdavSettingsObservation] @go(HlsWebdavSettings,[]HlsWebdavSettingsObservation) -} - -#HlsCdnSettingsParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - hlsAkamaiSettings?: [...#HlsAkamaiSettingsParameters] @go(HlsAkamaiSettings,[]HlsAkamaiSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - hlsBasicPutSettings?: [...#HlsBasicPutSettingsParameters] @go(HlsBasicPutSettings,[]HlsBasicPutSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - hlsMediaStoreSettings?: [...#HlsMediaStoreSettingsParameters] @go(HlsMediaStoreSettings,[]HlsMediaStoreSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - hlsS3Settings?: [...#HlsS3SettingsParameters] @go(HlsS3Settings,[]HlsS3SettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - hlsWebdavSettings?: [...#HlsWebdavSettingsParameters] @go(HlsWebdavSettings,[]HlsWebdavSettingsParameters) -} - -#HlsGroupSettingsDestinationInitParameters: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#HlsGroupSettingsDestinationObservation: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#HlsGroupSettingsDestinationParameters: { - // Reference ID for the destination. - // +kubebuilder:validation:Optional - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#HlsGroupSettingsInitParameters: { - // The ad marker type for this output group. - adMarkers?: [...null | string] @go(AdMarkers,[]*string) - baseUrlContent?: null | string @go(BaseURLContent,*string) - baseUrlContent1?: null | string @go(BaseURLContent1,*string) - baseUrlManifest?: null | string @go(BaseURLManifest,*string) - baseUrlManifest1?: null | string @go(BaseURLManifest1,*string) - captionLanguageMappings?: [...#CaptionLanguageMappingsInitParameters] @go(CaptionLanguageMappings,[]CaptionLanguageMappingsInitParameters) - captionLanguageSetting?: null | string @go(CaptionLanguageSetting,*string) - clientCache?: null | string @go(ClientCache,*string) - codecSpecification?: null | string @go(CodecSpecification,*string) - constantIv?: null | string @go(ConstantIv,*string) - - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#HlsGroupSettingsDestinationInitParameters] @go(Destination,[]HlsGroupSettingsDestinationInitParameters) - directoryStructure?: null | string @go(DirectoryStructure,*string) - - // Key-value map of resource tags. - discontinuityTags?: null | string @go(DiscontinuityTags,*string) - encryptionType?: null | string @go(EncryptionType,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsCdnSettings?: [...#HlsCdnSettingsInitParameters] @go(HlsCdnSettings,[]HlsCdnSettingsInitParameters) - hlsId3SegmentTagging?: null | string @go(HlsId3SegmentTagging,*string) - iframeOnlyPlaylists?: null | string @go(IframeOnlyPlaylists,*string) - incompleteSegmentBehavior?: null | string @go(IncompleteSegmentBehavior,*string) - indexNSegments?: null | float64 @go(IndexNSegments,*float64) - - // Controls the behavior of the RTMP group if input becomes unavailable. - inputLossAction?: null | string @go(InputLossAction,*string) - ivInManifest?: null | string @go(IvInManifest,*string) - - // The source for the timecode that will be associated with the events outputs. - ivSource?: null | string @go(IvSource,*string) - keepSegments?: null | float64 @go(KeepSegments,*float64) - keyFormat?: null | string @go(KeyFormat,*string) - keyFormatVersions?: null | string @go(KeyFormatVersions,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - keyProviderSettings?: [...#KeyProviderSettingsInitParameters] @go(KeyProviderSettings,[]KeyProviderSettingsInitParameters) - manifestCompression?: null | string @go(ManifestCompression,*string) - manifestDurationFormat?: null | string @go(ManifestDurationFormat,*string) - minSegmentLength?: null | float64 @go(MinSegmentLength,*float64) - mode?: null | string @go(Mode,*string) - outputSelection?: null | string @go(OutputSelection,*string) - programDateTime?: null | string @go(ProgramDateTime,*string) - programDateTimeClock?: null | string @go(ProgramDateTimeClock,*string) - programDateTimePeriod?: null | float64 @go(ProgramDateTimePeriod,*float64) - redundantManifest?: null | string @go(RedundantManifest,*string) - segmentLength?: null | float64 @go(SegmentLength,*float64) - segmentsPerSubdirectory?: null | float64 @go(SegmentsPerSubdirectory,*float64) - - // - Maximum CDI input resolution. - streamInfResolution?: null | string @go(StreamInfResolution,*string) - tsFileMode?: null | string @go(TSFileMode,*string) - - // Indicates ID3 frame that has the timecode. - timedMetadataId3Frame?: null | string @go(TimedMetadataId3Frame,*string) - timedMetadataId3Period?: null | float64 @go(TimedMetadataId3Period,*float64) - timestampDeltaMilliseconds?: null | float64 @go(TimestampDeltaMilliseconds,*float64) -} - -#HlsGroupSettingsObservation: { - // The ad marker type for this output group. - adMarkers?: [...null | string] @go(AdMarkers,[]*string) - baseUrlContent?: null | string @go(BaseURLContent,*string) - baseUrlContent1?: null | string @go(BaseURLContent1,*string) - baseUrlManifest?: null | string @go(BaseURLManifest,*string) - baseUrlManifest1?: null | string @go(BaseURLManifest1,*string) - captionLanguageMappings?: [...#CaptionLanguageMappingsObservation] @go(CaptionLanguageMappings,[]CaptionLanguageMappingsObservation) - captionLanguageSetting?: null | string @go(CaptionLanguageSetting,*string) - clientCache?: null | string @go(ClientCache,*string) - codecSpecification?: null | string @go(CodecSpecification,*string) - constantIv?: null | string @go(ConstantIv,*string) - - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#HlsGroupSettingsDestinationObservation] @go(Destination,[]HlsGroupSettingsDestinationObservation) - directoryStructure?: null | string @go(DirectoryStructure,*string) - - // Key-value map of resource tags. - discontinuityTags?: null | string @go(DiscontinuityTags,*string) - encryptionType?: null | string @go(EncryptionType,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsCdnSettings?: [...#HlsCdnSettingsObservation] @go(HlsCdnSettings,[]HlsCdnSettingsObservation) - hlsId3SegmentTagging?: null | string @go(HlsId3SegmentTagging,*string) - iframeOnlyPlaylists?: null | string @go(IframeOnlyPlaylists,*string) - incompleteSegmentBehavior?: null | string @go(IncompleteSegmentBehavior,*string) - indexNSegments?: null | float64 @go(IndexNSegments,*float64) - - // Controls the behavior of the RTMP group if input becomes unavailable. - inputLossAction?: null | string @go(InputLossAction,*string) - ivInManifest?: null | string @go(IvInManifest,*string) - - // The source for the timecode that will be associated with the events outputs. - ivSource?: null | string @go(IvSource,*string) - keepSegments?: null | float64 @go(KeepSegments,*float64) - keyFormat?: null | string @go(KeyFormat,*string) - keyFormatVersions?: null | string @go(KeyFormatVersions,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - keyProviderSettings?: [...#KeyProviderSettingsObservation] @go(KeyProviderSettings,[]KeyProviderSettingsObservation) - manifestCompression?: null | string @go(ManifestCompression,*string) - manifestDurationFormat?: null | string @go(ManifestDurationFormat,*string) - minSegmentLength?: null | float64 @go(MinSegmentLength,*float64) - mode?: null | string @go(Mode,*string) - outputSelection?: null | string @go(OutputSelection,*string) - programDateTime?: null | string @go(ProgramDateTime,*string) - programDateTimeClock?: null | string @go(ProgramDateTimeClock,*string) - programDateTimePeriod?: null | float64 @go(ProgramDateTimePeriod,*float64) - redundantManifest?: null | string @go(RedundantManifest,*string) - segmentLength?: null | float64 @go(SegmentLength,*float64) - segmentsPerSubdirectory?: null | float64 @go(SegmentsPerSubdirectory,*float64) - - // - Maximum CDI input resolution. - streamInfResolution?: null | string @go(StreamInfResolution,*string) - tsFileMode?: null | string @go(TSFileMode,*string) - - // Indicates ID3 frame that has the timecode. - timedMetadataId3Frame?: null | string @go(TimedMetadataId3Frame,*string) - timedMetadataId3Period?: null | float64 @go(TimedMetadataId3Period,*float64) - timestampDeltaMilliseconds?: null | float64 @go(TimestampDeltaMilliseconds,*float64) -} - -#HlsGroupSettingsParameters: { - // The ad marker type for this output group. - // +kubebuilder:validation:Optional - adMarkers?: [...null | string] @go(AdMarkers,[]*string) - - // +kubebuilder:validation:Optional - baseUrlContent?: null | string @go(BaseURLContent,*string) - - // +kubebuilder:validation:Optional - baseUrlContent1?: null | string @go(BaseURLContent1,*string) - - // +kubebuilder:validation:Optional - baseUrlManifest?: null | string @go(BaseURLManifest,*string) - - // +kubebuilder:validation:Optional - baseUrlManifest1?: null | string @go(BaseURLManifest1,*string) - - // +kubebuilder:validation:Optional - captionLanguageMappings?: [...#CaptionLanguageMappingsParameters] @go(CaptionLanguageMappings,[]CaptionLanguageMappingsParameters) - - // +kubebuilder:validation:Optional - captionLanguageSetting?: null | string @go(CaptionLanguageSetting,*string) - - // +kubebuilder:validation:Optional - clientCache?: null | string @go(ClientCache,*string) - - // +kubebuilder:validation:Optional - codecSpecification?: null | string @go(CodecSpecification,*string) - - // +kubebuilder:validation:Optional - constantIv?: null | string @go(ConstantIv,*string) - - // A director and base filename where archive files should be written. See Destination for more details. - // +kubebuilder:validation:Optional - destination: [...#HlsGroupSettingsDestinationParameters] @go(Destination,[]HlsGroupSettingsDestinationParameters) - - // +kubebuilder:validation:Optional - directoryStructure?: null | string @go(DirectoryStructure,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - discontinuityTags?: null | string @go(DiscontinuityTags,*string) - - // +kubebuilder:validation:Optional - encryptionType?: null | string @go(EncryptionType,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - hlsCdnSettings?: [...#HlsCdnSettingsParameters] @go(HlsCdnSettings,[]HlsCdnSettingsParameters) - - // +kubebuilder:validation:Optional - hlsId3SegmentTagging?: null | string @go(HlsId3SegmentTagging,*string) - - // +kubebuilder:validation:Optional - iframeOnlyPlaylists?: null | string @go(IframeOnlyPlaylists,*string) - - // +kubebuilder:validation:Optional - incompleteSegmentBehavior?: null | string @go(IncompleteSegmentBehavior,*string) - - // +kubebuilder:validation:Optional - indexNSegments?: null | float64 @go(IndexNSegments,*float64) - - // Controls the behavior of the RTMP group if input becomes unavailable. - // +kubebuilder:validation:Optional - inputLossAction?: null | string @go(InputLossAction,*string) - - // +kubebuilder:validation:Optional - ivInManifest?: null | string @go(IvInManifest,*string) - - // The source for the timecode that will be associated with the events outputs. - // +kubebuilder:validation:Optional - ivSource?: null | string @go(IvSource,*string) - - // +kubebuilder:validation:Optional - keepSegments?: null | float64 @go(KeepSegments,*float64) - - // +kubebuilder:validation:Optional - keyFormat?: null | string @go(KeyFormat,*string) - - // +kubebuilder:validation:Optional - keyFormatVersions?: null | string @go(KeyFormatVersions,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - keyProviderSettings?: [...#KeyProviderSettingsParameters] @go(KeyProviderSettings,[]KeyProviderSettingsParameters) - - // +kubebuilder:validation:Optional - manifestCompression?: null | string @go(ManifestCompression,*string) - - // +kubebuilder:validation:Optional - manifestDurationFormat?: null | string @go(ManifestDurationFormat,*string) - - // +kubebuilder:validation:Optional - minSegmentLength?: null | float64 @go(MinSegmentLength,*float64) - - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) - - // +kubebuilder:validation:Optional - outputSelection?: null | string @go(OutputSelection,*string) - - // +kubebuilder:validation:Optional - programDateTime?: null | string @go(ProgramDateTime,*string) - - // +kubebuilder:validation:Optional - programDateTimeClock?: null | string @go(ProgramDateTimeClock,*string) - - // +kubebuilder:validation:Optional - programDateTimePeriod?: null | float64 @go(ProgramDateTimePeriod,*float64) - - // +kubebuilder:validation:Optional - redundantManifest?: null | string @go(RedundantManifest,*string) - - // +kubebuilder:validation:Optional - segmentLength?: null | float64 @go(SegmentLength,*float64) - - // +kubebuilder:validation:Optional - segmentsPerSubdirectory?: null | float64 @go(SegmentsPerSubdirectory,*float64) - - // - Maximum CDI input resolution. - // +kubebuilder:validation:Optional - streamInfResolution?: null | string @go(StreamInfResolution,*string) - - // +kubebuilder:validation:Optional - tsFileMode?: null | string @go(TSFileMode,*string) - - // Indicates ID3 frame that has the timecode. - // +kubebuilder:validation:Optional - timedMetadataId3Frame?: null | string @go(TimedMetadataId3Frame,*string) - - // +kubebuilder:validation:Optional - timedMetadataId3Period?: null | float64 @go(TimedMetadataId3Period,*float64) - - // +kubebuilder:validation:Optional - timestampDeltaMilliseconds?: null | float64 @go(TimestampDeltaMilliseconds,*float64) -} - -#HlsInputSettingsInitParameters: { - // The bitrate is specified in bits per second, as in an HLS manifest. - bandwidth?: null | float64 @go(Bandwidth,*float64) - - // Buffer segments. - bufferSegments?: null | float64 @go(BufferSegments,*float64) - - // The number of consecutive times that attempts to read a manifest or segment must fail before the input is considered unavailable. - retries?: null | float64 @go(Retries,*float64) - - // The number of seconds between retries when an attempt to read a manifest or segment fails. - retryInterval?: null | float64 @go(RetryInterval,*float64) - - // The source for the timecode that will be associated with the events outputs. - scte35Source?: null | string @go(Scte35Source,*string) -} - -#HlsInputSettingsObservation: { - // The bitrate is specified in bits per second, as in an HLS manifest. - bandwidth?: null | float64 @go(Bandwidth,*float64) - - // Buffer segments. - bufferSegments?: null | float64 @go(BufferSegments,*float64) - - // The number of consecutive times that attempts to read a manifest or segment must fail before the input is considered unavailable. - retries?: null | float64 @go(Retries,*float64) - - // The number of seconds between retries when an attempt to read a manifest or segment fails. - retryInterval?: null | float64 @go(RetryInterval,*float64) - - // The source for the timecode that will be associated with the events outputs. - scte35Source?: null | string @go(Scte35Source,*string) -} - -#HlsInputSettingsParameters: { - // The bitrate is specified in bits per second, as in an HLS manifest. - // +kubebuilder:validation:Optional - bandwidth?: null | float64 @go(Bandwidth,*float64) - - // Buffer segments. - // +kubebuilder:validation:Optional - bufferSegments?: null | float64 @go(BufferSegments,*float64) - - // The number of consecutive times that attempts to read a manifest or segment must fail before the input is considered unavailable. - // +kubebuilder:validation:Optional - retries?: null | float64 @go(Retries,*float64) - - // The number of seconds between retries when an attempt to read a manifest or segment fails. - // +kubebuilder:validation:Optional - retryInterval?: null | float64 @go(RetryInterval,*float64) - - // The source for the timecode that will be associated with the events outputs. - // +kubebuilder:validation:Optional - scte35Source?: null | string @go(Scte35Source,*string) -} - -#HlsMediaStoreSettingsInitParameters: { - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - mediaStoreStorageClass?: null | string @go(MediaStoreStorageClass,*string) - - // Number of retry attempts. - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - restartDelay?: null | float64 @go(RestartDelay,*float64) -} - -#HlsMediaStoreSettingsObservation: { - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - mediaStoreStorageClass?: null | string @go(MediaStoreStorageClass,*string) - - // Number of retry attempts. - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - restartDelay?: null | float64 @go(RestartDelay,*float64) -} - -#HlsMediaStoreSettingsParameters: { - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - // +kubebuilder:validation:Optional - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - - // +kubebuilder:validation:Optional - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - - // +kubebuilder:validation:Optional - mediaStoreStorageClass?: null | string @go(MediaStoreStorageClass,*string) - - // Number of retry attempts. - // +kubebuilder:validation:Optional - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - // +kubebuilder:validation:Optional - restartDelay?: null | float64 @go(RestartDelay,*float64) -} - -#HlsOutputSettingsInitParameters: { - h265PackagingType?: null | string @go(H265PackagingType,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsSettings?: [...#HlsSettingsInitParameters] @go(HlsSettings,[]HlsSettingsInitParameters) - - // String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - nameModifier?: null | string @go(NameModifier,*string) - segmentModifier?: null | string @go(SegmentModifier,*string) -} - -#HlsOutputSettingsObservation: { - h265PackagingType?: null | string @go(H265PackagingType,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsSettings?: [...#HlsSettingsObservation] @go(HlsSettings,[]HlsSettingsObservation) - - // String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - nameModifier?: null | string @go(NameModifier,*string) - segmentModifier?: null | string @go(SegmentModifier,*string) -} - -#HlsOutputSettingsParameters: { - // +kubebuilder:validation:Optional - h265PackagingType?: null | string @go(H265PackagingType,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - hlsSettings: [...#HlsSettingsParameters] @go(HlsSettings,[]HlsSettingsParameters) - - // String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - // +kubebuilder:validation:Optional - nameModifier?: null | string @go(NameModifier,*string) - - // +kubebuilder:validation:Optional - segmentModifier?: null | string @go(SegmentModifier,*string) -} - -#HlsS3SettingsInitParameters: { - // Specify the canned ACL to apply to each S3 request. - cannedAcl?: null | string @go(CannedACL,*string) -} - -#HlsS3SettingsObservation: { - // Specify the canned ACL to apply to each S3 request. - cannedAcl?: null | string @go(CannedACL,*string) -} - -#HlsS3SettingsParameters: { - // Specify the canned ACL to apply to each S3 request. - // +kubebuilder:validation:Optional - cannedAcl?: null | string @go(CannedACL,*string) -} - -#HlsSettingsInitParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - audioOnlyHlsSettings?: [...#AudioOnlyHlsSettingsInitParameters] @go(AudioOnlyHlsSettings,[]AudioOnlyHlsSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - fmp4HlsSettings?: [...#Fmp4HlsSettingsInitParameters] @go(Fmp4HlsSettings,[]Fmp4HlsSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - frameCaptureHlsSettings?: [...#FrameCaptureHlsSettingsInitParameters] @go(FrameCaptureHlsSettings,[]FrameCaptureHlsSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - standardHlsSettings?: [...#StandardHlsSettingsInitParameters] @go(StandardHlsSettings,[]StandardHlsSettingsInitParameters) -} - -#HlsSettingsObservation: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - audioOnlyHlsSettings?: [...#AudioOnlyHlsSettingsObservation] @go(AudioOnlyHlsSettings,[]AudioOnlyHlsSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - fmp4HlsSettings?: [...#Fmp4HlsSettingsObservation] @go(Fmp4HlsSettings,[]Fmp4HlsSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - frameCaptureHlsSettings?: [...#FrameCaptureHlsSettingsParameters] @go(FrameCaptureHlsSettings,[]FrameCaptureHlsSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - standardHlsSettings?: [...#StandardHlsSettingsObservation] @go(StandardHlsSettings,[]StandardHlsSettingsObservation) -} - -#HlsSettingsParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - audioOnlyHlsSettings?: [...#AudioOnlyHlsSettingsParameters] @go(AudioOnlyHlsSettings,[]AudioOnlyHlsSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - fmp4HlsSettings?: [...#Fmp4HlsSettingsParameters] @go(Fmp4HlsSettings,[]Fmp4HlsSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - frameCaptureHlsSettings?: [...#FrameCaptureHlsSettingsParameters] @go(FrameCaptureHlsSettings,[]FrameCaptureHlsSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - standardHlsSettings?: [...#StandardHlsSettingsParameters] @go(StandardHlsSettings,[]StandardHlsSettingsParameters) -} - -#HlsWebdavSettingsInitParameters: { - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - httpTransferMode?: null | string @go(HTTPTransferMode,*string) - - // Number of retry attempts. - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - restartDelay?: null | float64 @go(RestartDelay,*float64) -} - -#HlsWebdavSettingsObservation: { - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - httpTransferMode?: null | string @go(HTTPTransferMode,*string) - - // Number of retry attempts. - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - restartDelay?: null | float64 @go(RestartDelay,*float64) -} - -#HlsWebdavSettingsParameters: { - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - // +kubebuilder:validation:Optional - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - - // +kubebuilder:validation:Optional - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - - // +kubebuilder:validation:Optional - httpTransferMode?: null | string @go(HTTPTransferMode,*string) - - // Number of retry attempts. - // +kubebuilder:validation:Optional - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - // +kubebuilder:validation:Optional - restartDelay?: null | float64 @go(RestartDelay,*float64) -} - -#InputAttachmentsInitParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - automaticInputFailoverSettings?: [...#AutomaticInputFailoverSettingsInitParameters] @go(AutomaticInputFailoverSettings,[]AutomaticInputFailoverSettingsInitParameters) - - // User-specified name for the attachment. - inputAttachmentName?: null | string @go(InputAttachmentName,*string) - - // Settings of an input. See Input Settings for more details - inputSettings?: [...#InputSettingsInitParameters] @go(InputSettings,[]InputSettingsInitParameters) -} - -#InputAttachmentsObservation: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - automaticInputFailoverSettings?: [...#AutomaticInputFailoverSettingsObservation] @go(AutomaticInputFailoverSettings,[]AutomaticInputFailoverSettingsObservation) - - // User-specified name for the attachment. - inputAttachmentName?: null | string @go(InputAttachmentName,*string) - - // The ID of the input. - inputId?: null | string @go(InputID,*string) - - // Settings of an input. See Input Settings for more details - inputSettings?: [...#InputSettingsObservation] @go(InputSettings,[]InputSettingsObservation) -} - -#InputAttachmentsParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - automaticInputFailoverSettings?: [...#AutomaticInputFailoverSettingsParameters] @go(AutomaticInputFailoverSettings,[]AutomaticInputFailoverSettingsParameters) - - // User-specified name for the attachment. - // +kubebuilder:validation:Optional - inputAttachmentName?: null | string @go(InputAttachmentName,*string) - - // The ID of the input. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/medialive/v1beta1.Input - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - inputId?: null | string @go(InputID,*string) - - // Reference to a Input in medialive to populate inputId. - // +kubebuilder:validation:Optional - inputIdRef?: null | v1.#Reference @go(InputIDRef,*v1.Reference) - - // Selector for a Input in medialive to populate inputId. - // +kubebuilder:validation:Optional - inputIdSelector?: null | v1.#Selector @go(InputIDSelector,*v1.Selector) - - // Settings of an input. See Input Settings for more details - // +kubebuilder:validation:Optional - inputSettings?: [...#InputSettingsParameters] @go(InputSettings,[]InputSettingsParameters) -} - -#InputChannelLevelsInitParameters: { - gain?: null | float64 @go(Gain,*float64) - inputChannel?: null | float64 @go(InputChannel,*float64) -} - -#InputChannelLevelsObservation: { - gain?: null | float64 @go(Gain,*float64) - inputChannel?: null | float64 @go(InputChannel,*float64) -} - -#InputChannelLevelsParameters: { - // +kubebuilder:validation:Optional - gain?: null | float64 @go(Gain,*float64) - - // +kubebuilder:validation:Optional - inputChannel?: null | float64 @go(InputChannel,*float64) -} - -#InputLossSettingsInitParameters: { - inputLossThresholdMsec?: null | float64 @go(InputLossThresholdMsec,*float64) -} - -#InputLossSettingsObservation: { - inputLossThresholdMsec?: null | float64 @go(InputLossThresholdMsec,*float64) -} - -#InputLossSettingsParameters: { - // +kubebuilder:validation:Optional - inputLossThresholdMsec?: null | float64 @go(InputLossThresholdMsec,*float64) -} - -#InputSettingsInitParameters: { - audioSelector?: [...#AudioSelectorInitParameters] @go(AudioSelector,[]AudioSelectorInitParameters) - captionSelector?: [...#CaptionSelectorInitParameters] @go(CaptionSelector,[]CaptionSelectorInitParameters) - - // Enable or disable the deblock filter when filtering. - deblockFilter?: null | string @go(DeblockFilter,*string) - - // Enable or disable the denoise filter when filtering. - denoiseFilter?: null | string @go(DenoiseFilter,*string) - - // Adjusts the magnitude of filtering from 1 (minimal) to 5 (strongest). - filterStrength?: null | float64 @go(FilterStrength,*float64) - - // Turns on the filter for the input. - inputFilter?: null | string @go(InputFilter,*string) - - // Input settings. See Network Input Settings for more details. - networkInputSettings?: [...#NetworkInputSettingsInitParameters] @go(NetworkInputSettings,[]NetworkInputSettingsInitParameters) - - // PID from which to read SCTE-35 messages. - scte35Pid?: null | float64 @go(Scte35Pid,*float64) - - // Specifies whether to extract applicable ancillary data from a SMPTE-2038 source in the input. - smpte2038DataPreference?: null | string @go(Smpte2038DataPreference,*string) - - // Loop input if it is a file. - sourceEndBehavior?: null | string @go(SourceEndBehavior,*string) - videoSelector?: [...#VideoSelectorInitParameters] @go(VideoSelector,[]VideoSelectorInitParameters) -} - -#InputSettingsObservation: { - audioSelector?: [...#AudioSelectorObservation] @go(AudioSelector,[]AudioSelectorObservation) - captionSelector?: [...#CaptionSelectorObservation] @go(CaptionSelector,[]CaptionSelectorObservation) - - // Enable or disable the deblock filter when filtering. - deblockFilter?: null | string @go(DeblockFilter,*string) - - // Enable or disable the denoise filter when filtering. - denoiseFilter?: null | string @go(DenoiseFilter,*string) - - // Adjusts the magnitude of filtering from 1 (minimal) to 5 (strongest). - filterStrength?: null | float64 @go(FilterStrength,*float64) - - // Turns on the filter for the input. - inputFilter?: null | string @go(InputFilter,*string) - - // Input settings. See Network Input Settings for more details. - networkInputSettings?: [...#NetworkInputSettingsObservation] @go(NetworkInputSettings,[]NetworkInputSettingsObservation) - - // PID from which to read SCTE-35 messages. - scte35Pid?: null | float64 @go(Scte35Pid,*float64) - - // Specifies whether to extract applicable ancillary data from a SMPTE-2038 source in the input. - smpte2038DataPreference?: null | string @go(Smpte2038DataPreference,*string) - - // Loop input if it is a file. - sourceEndBehavior?: null | string @go(SourceEndBehavior,*string) - videoSelector?: [...#VideoSelectorObservation] @go(VideoSelector,[]VideoSelectorObservation) -} - -#InputSettingsParameters: { - // +kubebuilder:validation:Optional - audioSelector?: [...#AudioSelectorParameters] @go(AudioSelector,[]AudioSelectorParameters) - - // +kubebuilder:validation:Optional - captionSelector?: [...#CaptionSelectorParameters] @go(CaptionSelector,[]CaptionSelectorParameters) - - // Enable or disable the deblock filter when filtering. - // +kubebuilder:validation:Optional - deblockFilter?: null | string @go(DeblockFilter,*string) - - // Enable or disable the denoise filter when filtering. - // +kubebuilder:validation:Optional - denoiseFilter?: null | string @go(DenoiseFilter,*string) - - // Adjusts the magnitude of filtering from 1 (minimal) to 5 (strongest). - // +kubebuilder:validation:Optional - filterStrength?: null | float64 @go(FilterStrength,*float64) - - // Turns on the filter for the input. - // +kubebuilder:validation:Optional - inputFilter?: null | string @go(InputFilter,*string) - - // Input settings. See Network Input Settings for more details. - // +kubebuilder:validation:Optional - networkInputSettings?: [...#NetworkInputSettingsParameters] @go(NetworkInputSettings,[]NetworkInputSettingsParameters) - - // PID from which to read SCTE-35 messages. - // +kubebuilder:validation:Optional - scte35Pid?: null | float64 @go(Scte35Pid,*float64) - - // Specifies whether to extract applicable ancillary data from a SMPTE-2038 source in the input. - // +kubebuilder:validation:Optional - smpte2038DataPreference?: null | string @go(Smpte2038DataPreference,*string) - - // Loop input if it is a file. - // +kubebuilder:validation:Optional - sourceEndBehavior?: null | string @go(SourceEndBehavior,*string) - - // +kubebuilder:validation:Optional - videoSelector?: [...#VideoSelectorParameters] @go(VideoSelector,[]VideoSelectorParameters) -} - -#InputSpecificationInitParameters: { - codec?: null | string @go(Codec,*string) - - // - Maximum CDI input resolution. - inputResolution?: null | string @go(InputResolution,*string) - - // Average bitrate in bits/second. - maximumBitrate?: null | string @go(MaximumBitrate,*string) -} - -#InputSpecificationObservation: { - codec?: null | string @go(Codec,*string) - - // - Maximum CDI input resolution. - inputResolution?: null | string @go(InputResolution,*string) - - // Average bitrate in bits/second. - maximumBitrate?: null | string @go(MaximumBitrate,*string) -} - -#InputSpecificationParameters: { - // +kubebuilder:validation:Optional - codec?: null | string @go(Codec,*string) - - // - Maximum CDI input resolution. - // +kubebuilder:validation:Optional - inputResolution?: null | string @go(InputResolution,*string) - - // Average bitrate in bits/second. - // +kubebuilder:validation:Optional - maximumBitrate?: null | string @go(MaximumBitrate,*string) -} - -#KeyProviderServerInitParameters: { - // Key used to extract the password from EC2 Parameter store. - passwordParam?: null | string @go(PasswordParam,*string) - - // Path to a file accessible to the live stream. - uri?: null | string @go(URI,*string) - - // Username for destination. - username?: null | string @go(Username,*string) -} - -#KeyProviderServerObservation: { - // Key used to extract the password from EC2 Parameter store. - passwordParam?: null | string @go(PasswordParam,*string) - - // Path to a file accessible to the live stream. - uri?: null | string @go(URI,*string) - - // Username for destination. - username?: null | string @go(Username,*string) -} - -#KeyProviderServerParameters: { - // Key used to extract the password from EC2 Parameter store. - // +kubebuilder:validation:Optional - passwordParam?: null | string @go(PasswordParam,*string) - - // Path to a file accessible to the live stream. - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) - - // Username for destination. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -#KeyProviderSettingsInitParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - staticKeySettings?: [...#StaticKeySettingsInitParameters] @go(StaticKeySettings,[]StaticKeySettingsInitParameters) -} - -#KeyProviderSettingsObservation: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - staticKeySettings?: [...#StaticKeySettingsObservation] @go(StaticKeySettings,[]StaticKeySettingsObservation) -} - -#KeyProviderSettingsParameters: { - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - staticKeySettings?: [...#StaticKeySettingsParameters] @go(StaticKeySettings,[]StaticKeySettingsParameters) -} - -#M2TsSettingsDvbNitSettingsInitParameters: { - // User-specified id. Ths is used in an output group or an output. - networkId?: null | float64 @go(NetworkID,*float64) - - // Name of the Channel. - networkName?: null | string @go(NetworkName,*string) - repInterval?: null | float64 @go(RepInterval,*float64) -} - -#M2TsSettingsDvbNitSettingsObservation: { - // User-specified id. Ths is used in an output group or an output. - networkId?: null | float64 @go(NetworkID,*float64) - - // Name of the Channel. - networkName?: null | string @go(NetworkName,*string) - repInterval?: null | float64 @go(RepInterval,*float64) -} - -#M2TsSettingsDvbNitSettingsParameters: { - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - networkId?: null | float64 @go(NetworkID,*float64) - - // Name of the Channel. - // +kubebuilder:validation:Optional - networkName?: null | string @go(NetworkName,*string) - - // +kubebuilder:validation:Optional - repInterval?: null | float64 @go(RepInterval,*float64) -} - -#M2TsSettingsDvbSdtSettingsInitParameters: { - outputSdt?: null | string @go(OutputSdt,*string) - repInterval?: null | float64 @go(RepInterval,*float64) - - // Name of the Channel. - serviceName?: null | string @go(ServiceName,*string) - - // Name of the Channel. - serviceProviderName?: null | string @go(ServiceProviderName,*string) -} - -#M2TsSettingsDvbSdtSettingsObservation: { - outputSdt?: null | string @go(OutputSdt,*string) - repInterval?: null | float64 @go(RepInterval,*float64) - - // Name of the Channel. - serviceName?: null | string @go(ServiceName,*string) - - // Name of the Channel. - serviceProviderName?: null | string @go(ServiceProviderName,*string) -} - -#M2TsSettingsDvbSdtSettingsParameters: { - // +kubebuilder:validation:Optional - outputSdt?: null | string @go(OutputSdt,*string) - - // +kubebuilder:validation:Optional - repInterval?: null | float64 @go(RepInterval,*float64) - - // Name of the Channel. - // +kubebuilder:validation:Optional - serviceName?: null | string @go(ServiceName,*string) - - // Name of the Channel. - // +kubebuilder:validation:Optional - serviceProviderName?: null | string @go(ServiceProviderName,*string) -} - -#M2TsSettingsDvbTdtSettingsInitParameters: { - repInterval?: null | float64 @go(RepInterval,*float64) -} - -#M2TsSettingsDvbTdtSettingsObservation: { - repInterval?: null | float64 @go(RepInterval,*float64) -} - -#M2TsSettingsDvbTdtSettingsParameters: { - // +kubebuilder:validation:Optional - repInterval?: null | float64 @go(RepInterval,*float64) -} - -#M2TsSettingsInitParameters: { - absentInputAudioBehavior?: null | string @go(AbsentInputAudioBehavior,*string) - arib?: null | string @go(Arib,*string) - - // User-specified id. Ths is used in an output group or an output. - aribCaptionsPid?: null | string @go(AribCaptionsPid,*string) - aribCaptionsPidControl?: null | string @go(AribCaptionsPidControl,*string) - audioBufferModel?: null | string @go(AudioBufferModel,*string) - audioFramesPerPes?: null | float64 @go(AudioFramesPerPes,*float64) - audioPids?: null | string @go(AudioPids,*string) - audioStreamType?: null | string @go(AudioStreamType,*string) - - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - bufferModel?: null | string @go(BufferModel,*string) - ccDescriptor?: null | string @go(CcDescriptor,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbNitSettings?: [...#DvbNitSettingsInitParameters] @go(DvbNitSettings,[]DvbNitSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbSdtSettings?: [...#DvbSdtSettingsInitParameters] @go(DvbSdtSettings,[]DvbSdtSettingsInitParameters) - dvbSubPids?: null | string @go(DvbSubPids,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbTdtSettings?: [...#DvbTdtSettingsInitParameters] @go(DvbTdtSettings,[]DvbTdtSettingsInitParameters) - - // User-specified id. Ths is used in an output group or an output. - dvbTeletextPid?: null | string @go(DvbTeletextPid,*string) - ebif?: null | string @go(Ebif,*string) - ebpAudioInterval?: null | string @go(EbpAudioInterval,*string) - ebpLookaheadMs?: null | float64 @go(EbpLookaheadMs,*float64) - ebpPlacement?: null | string @go(EbpPlacement,*string) - - // User-specified id. Ths is used in an output group or an output. - ecmPid?: null | string @go(EcmPid,*string) - esRateInPes?: null | string @go(EsRateInPes,*string) - - // User-specified id. Ths is used in an output group or an output. - etvPlatformPid?: null | string @go(EtvPlatformPid,*string) - - // User-specified id. Ths is used in an output group or an output. - etvSignalPid?: null | string @go(EtvSignalPid,*string) - fragmentTime?: null | float64 @go(FragmentTime,*float64) - klv?: null | string @go(Klv,*string) - klvDataPids?: null | string @go(KlvDataPids,*string) - nielsenId3Behavior?: null | string @go(NielsenId3Behavior,*string) - - // Average bitrate in bits/second. - nullPacketBitrate?: null | float64 @go(NullPacketBitrate,*float64) - patInterval?: null | float64 @go(PatInterval,*float64) - pcrControl?: null | string @go(PcrControl,*string) - pcrPeriod?: null | float64 @go(PcrPeriod,*float64) - - // User-specified id. Ths is used in an output group or an output. - pcrPid?: null | string @go(PcrPid,*string) - pmtInterval?: null | float64 @go(PmtInterval,*float64) - - // User-specified id. Ths is used in an output group or an output. - pmtPid?: null | string @go(PmtPid,*string) - programNum?: null | float64 @go(ProgramNum,*float64) - rateMode?: null | string @go(RateMode,*string) - scte27Pids?: null | string @go(Scte27Pids,*string) - scte35Control?: null | string @go(Scte35Control,*string) - - // PID from which to read SCTE-35 messages. - scte35Pid?: null | string @go(Scte35Pid,*string) - segmentationMarkers?: null | string @go(SegmentationMarkers,*string) - segmentationStyle?: null | string @go(SegmentationStyle,*string) - segmentationTime?: null | float64 @go(SegmentationTime,*float64) - timedMetadataBehavior?: null | string @go(TimedMetadataBehavior,*string) - - // User-specified id. Ths is used in an output group or an output. - timedMetadataPid?: null | string @go(TimedMetadataPid,*string) - - // User-specified id. Ths is used in an output group or an output. - transportStreamId?: null | float64 @go(TransportStreamID,*float64) - - // User-specified id. Ths is used in an output group or an output. - videoPid?: null | string @go(VideoPid,*string) -} - -#M2TsSettingsObservation: { - absentInputAudioBehavior?: null | string @go(AbsentInputAudioBehavior,*string) - arib?: null | string @go(Arib,*string) - - // User-specified id. Ths is used in an output group or an output. - aribCaptionsPid?: null | string @go(AribCaptionsPid,*string) - aribCaptionsPidControl?: null | string @go(AribCaptionsPidControl,*string) - audioBufferModel?: null | string @go(AudioBufferModel,*string) - audioFramesPerPes?: null | float64 @go(AudioFramesPerPes,*float64) - audioPids?: null | string @go(AudioPids,*string) - audioStreamType?: null | string @go(AudioStreamType,*string) - - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - bufferModel?: null | string @go(BufferModel,*string) - ccDescriptor?: null | string @go(CcDescriptor,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbNitSettings?: [...#DvbNitSettingsObservation] @go(DvbNitSettings,[]DvbNitSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbSdtSettings?: [...#DvbSdtSettingsObservation] @go(DvbSdtSettings,[]DvbSdtSettingsObservation) - dvbSubPids?: null | string @go(DvbSubPids,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - dvbTdtSettings?: [...#DvbTdtSettingsObservation] @go(DvbTdtSettings,[]DvbTdtSettingsObservation) - - // User-specified id. Ths is used in an output group or an output. - dvbTeletextPid?: null | string @go(DvbTeletextPid,*string) - ebif?: null | string @go(Ebif,*string) - ebpAudioInterval?: null | string @go(EbpAudioInterval,*string) - ebpLookaheadMs?: null | float64 @go(EbpLookaheadMs,*float64) - ebpPlacement?: null | string @go(EbpPlacement,*string) - - // User-specified id. Ths is used in an output group or an output. - ecmPid?: null | string @go(EcmPid,*string) - esRateInPes?: null | string @go(EsRateInPes,*string) - - // User-specified id. Ths is used in an output group or an output. - etvPlatformPid?: null | string @go(EtvPlatformPid,*string) - - // User-specified id. Ths is used in an output group or an output. - etvSignalPid?: null | string @go(EtvSignalPid,*string) - fragmentTime?: null | float64 @go(FragmentTime,*float64) - klv?: null | string @go(Klv,*string) - klvDataPids?: null | string @go(KlvDataPids,*string) - nielsenId3Behavior?: null | string @go(NielsenId3Behavior,*string) - - // Average bitrate in bits/second. - nullPacketBitrate?: null | float64 @go(NullPacketBitrate,*float64) - patInterval?: null | float64 @go(PatInterval,*float64) - pcrControl?: null | string @go(PcrControl,*string) - pcrPeriod?: null | float64 @go(PcrPeriod,*float64) - - // User-specified id. Ths is used in an output group or an output. - pcrPid?: null | string @go(PcrPid,*string) - pmtInterval?: null | float64 @go(PmtInterval,*float64) - - // User-specified id. Ths is used in an output group or an output. - pmtPid?: null | string @go(PmtPid,*string) - programNum?: null | float64 @go(ProgramNum,*float64) - rateMode?: null | string @go(RateMode,*string) - scte27Pids?: null | string @go(Scte27Pids,*string) - scte35Control?: null | string @go(Scte35Control,*string) - - // PID from which to read SCTE-35 messages. - scte35Pid?: null | string @go(Scte35Pid,*string) - segmentationMarkers?: null | string @go(SegmentationMarkers,*string) - segmentationStyle?: null | string @go(SegmentationStyle,*string) - segmentationTime?: null | float64 @go(SegmentationTime,*float64) - timedMetadataBehavior?: null | string @go(TimedMetadataBehavior,*string) - - // User-specified id. Ths is used in an output group or an output. - timedMetadataPid?: null | string @go(TimedMetadataPid,*string) - - // User-specified id. Ths is used in an output group or an output. - transportStreamId?: null | float64 @go(TransportStreamID,*float64) - - // User-specified id. Ths is used in an output group or an output. - videoPid?: null | string @go(VideoPid,*string) -} - -#M2TsSettingsParameters: { - // +kubebuilder:validation:Optional - absentInputAudioBehavior?: null | string @go(AbsentInputAudioBehavior,*string) - - // +kubebuilder:validation:Optional - arib?: null | string @go(Arib,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - aribCaptionsPid?: null | string @go(AribCaptionsPid,*string) - - // +kubebuilder:validation:Optional - aribCaptionsPidControl?: null | string @go(AribCaptionsPidControl,*string) - - // +kubebuilder:validation:Optional - audioBufferModel?: null | string @go(AudioBufferModel,*string) - - // +kubebuilder:validation:Optional - audioFramesPerPes?: null | float64 @go(AudioFramesPerPes,*float64) - - // +kubebuilder:validation:Optional - audioPids?: null | string @go(AudioPids,*string) - - // +kubebuilder:validation:Optional - audioStreamType?: null | string @go(AudioStreamType,*string) - - // Average bitrate in bits/second. - // +kubebuilder:validation:Optional - bitrate?: null | float64 @go(Bitrate,*float64) - - // +kubebuilder:validation:Optional - bufferModel?: null | string @go(BufferModel,*string) - - // +kubebuilder:validation:Optional - ccDescriptor?: null | string @go(CcDescriptor,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - dvbNitSettings?: [...#DvbNitSettingsParameters] @go(DvbNitSettings,[]DvbNitSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - dvbSdtSettings?: [...#DvbSdtSettingsParameters] @go(DvbSdtSettings,[]DvbSdtSettingsParameters) - - // +kubebuilder:validation:Optional - dvbSubPids?: null | string @go(DvbSubPids,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - dvbTdtSettings?: [...#DvbTdtSettingsParameters] @go(DvbTdtSettings,[]DvbTdtSettingsParameters) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - dvbTeletextPid?: null | string @go(DvbTeletextPid,*string) - - // +kubebuilder:validation:Optional - ebif?: null | string @go(Ebif,*string) - - // +kubebuilder:validation:Optional - ebpAudioInterval?: null | string @go(EbpAudioInterval,*string) - - // +kubebuilder:validation:Optional - ebpLookaheadMs?: null | float64 @go(EbpLookaheadMs,*float64) - - // +kubebuilder:validation:Optional - ebpPlacement?: null | string @go(EbpPlacement,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - ecmPid?: null | string @go(EcmPid,*string) - - // +kubebuilder:validation:Optional - esRateInPes?: null | string @go(EsRateInPes,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - etvPlatformPid?: null | string @go(EtvPlatformPid,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - etvSignalPid?: null | string @go(EtvSignalPid,*string) - - // +kubebuilder:validation:Optional - fragmentTime?: null | float64 @go(FragmentTime,*float64) - - // +kubebuilder:validation:Optional - klv?: null | string @go(Klv,*string) - - // +kubebuilder:validation:Optional - klvDataPids?: null | string @go(KlvDataPids,*string) - - // +kubebuilder:validation:Optional - nielsenId3Behavior?: null | string @go(NielsenId3Behavior,*string) - - // Average bitrate in bits/second. - // +kubebuilder:validation:Optional - nullPacketBitrate?: null | float64 @go(NullPacketBitrate,*float64) - - // +kubebuilder:validation:Optional - patInterval?: null | float64 @go(PatInterval,*float64) - - // +kubebuilder:validation:Optional - pcrControl?: null | string @go(PcrControl,*string) - - // +kubebuilder:validation:Optional - pcrPeriod?: null | float64 @go(PcrPeriod,*float64) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - pcrPid?: null | string @go(PcrPid,*string) - - // +kubebuilder:validation:Optional - pmtInterval?: null | float64 @go(PmtInterval,*float64) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - pmtPid?: null | string @go(PmtPid,*string) - - // +kubebuilder:validation:Optional - programNum?: null | float64 @go(ProgramNum,*float64) - - // +kubebuilder:validation:Optional - rateMode?: null | string @go(RateMode,*string) - - // +kubebuilder:validation:Optional - scte27Pids?: null | string @go(Scte27Pids,*string) - - // +kubebuilder:validation:Optional - scte35Control?: null | string @go(Scte35Control,*string) - - // PID from which to read SCTE-35 messages. - // +kubebuilder:validation:Optional - scte35Pid?: null | string @go(Scte35Pid,*string) - - // +kubebuilder:validation:Optional - segmentationMarkers?: null | string @go(SegmentationMarkers,*string) - - // +kubebuilder:validation:Optional - segmentationStyle?: null | string @go(SegmentationStyle,*string) - - // +kubebuilder:validation:Optional - segmentationTime?: null | float64 @go(SegmentationTime,*float64) - - // +kubebuilder:validation:Optional - timedMetadataBehavior?: null | string @go(TimedMetadataBehavior,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - timedMetadataPid?: null | string @go(TimedMetadataPid,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - transportStreamId?: null | float64 @go(TransportStreamID,*float64) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - videoPid?: null | string @go(VideoPid,*string) -} - -#M3U8SettingsInitParameters: { - audioFramesPerPes?: null | float64 @go(AudioFramesPerPes,*float64) - audioPids?: null | string @go(AudioPids,*string) - - // User-specified id. Ths is used in an output group or an output. - ecmPid?: null | string @go(EcmPid,*string) - nielsenId3Behavior?: null | string @go(NielsenId3Behavior,*string) - patInterval?: null | float64 @go(PatInterval,*float64) - pcrControl?: null | string @go(PcrControl,*string) - pcrPeriod?: null | float64 @go(PcrPeriod,*float64) - - // User-specified id. Ths is used in an output group or an output. - pcrPid?: null | string @go(PcrPid,*string) - pmtInterval?: null | float64 @go(PmtInterval,*float64) - - // User-specified id. Ths is used in an output group or an output. - pmtPid?: null | string @go(PmtPid,*string) - programNum?: null | float64 @go(ProgramNum,*float64) - scte35Behavior?: null | string @go(Scte35Behavior,*string) - - // PID from which to read SCTE-35 messages. - scte35Pid?: null | string @go(Scte35Pid,*string) - timedMetadataBehavior?: null | string @go(TimedMetadataBehavior,*string) - - // User-specified id. Ths is used in an output group or an output. - timedMetadataPid?: null | string @go(TimedMetadataPid,*string) - - // User-specified id. Ths is used in an output group or an output. - transportStreamId?: null | float64 @go(TransportStreamID,*float64) - - // User-specified id. Ths is used in an output group or an output. - videoPid?: null | string @go(VideoPid,*string) -} - -#M3U8SettingsObservation: { - audioFramesPerPes?: null | float64 @go(AudioFramesPerPes,*float64) - audioPids?: null | string @go(AudioPids,*string) - - // User-specified id. Ths is used in an output group or an output. - ecmPid?: null | string @go(EcmPid,*string) - nielsenId3Behavior?: null | string @go(NielsenId3Behavior,*string) - patInterval?: null | float64 @go(PatInterval,*float64) - pcrControl?: null | string @go(PcrControl,*string) - pcrPeriod?: null | float64 @go(PcrPeriod,*float64) - - // User-specified id. Ths is used in an output group or an output. - pcrPid?: null | string @go(PcrPid,*string) - pmtInterval?: null | float64 @go(PmtInterval,*float64) - - // User-specified id. Ths is used in an output group or an output. - pmtPid?: null | string @go(PmtPid,*string) - programNum?: null | float64 @go(ProgramNum,*float64) - scte35Behavior?: null | string @go(Scte35Behavior,*string) - - // PID from which to read SCTE-35 messages. - scte35Pid?: null | string @go(Scte35Pid,*string) - timedMetadataBehavior?: null | string @go(TimedMetadataBehavior,*string) - - // User-specified id. Ths is used in an output group or an output. - timedMetadataPid?: null | string @go(TimedMetadataPid,*string) - - // User-specified id. Ths is used in an output group or an output. - transportStreamId?: null | float64 @go(TransportStreamID,*float64) - - // User-specified id. Ths is used in an output group or an output. - videoPid?: null | string @go(VideoPid,*string) -} - -#M3U8SettingsParameters: { - // +kubebuilder:validation:Optional - audioFramesPerPes?: null | float64 @go(AudioFramesPerPes,*float64) - - // +kubebuilder:validation:Optional - audioPids?: null | string @go(AudioPids,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - ecmPid?: null | string @go(EcmPid,*string) - - // +kubebuilder:validation:Optional - nielsenId3Behavior?: null | string @go(NielsenId3Behavior,*string) - - // +kubebuilder:validation:Optional - patInterval?: null | float64 @go(PatInterval,*float64) - - // +kubebuilder:validation:Optional - pcrControl?: null | string @go(PcrControl,*string) - - // +kubebuilder:validation:Optional - pcrPeriod?: null | float64 @go(PcrPeriod,*float64) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - pcrPid?: null | string @go(PcrPid,*string) - - // +kubebuilder:validation:Optional - pmtInterval?: null | float64 @go(PmtInterval,*float64) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - pmtPid?: null | string @go(PmtPid,*string) - - // +kubebuilder:validation:Optional - programNum?: null | float64 @go(ProgramNum,*float64) - - // +kubebuilder:validation:Optional - scte35Behavior?: null | string @go(Scte35Behavior,*string) - - // PID from which to read SCTE-35 messages. - // +kubebuilder:validation:Optional - scte35Pid?: null | string @go(Scte35Pid,*string) - - // +kubebuilder:validation:Optional - timedMetadataBehavior?: null | string @go(TimedMetadataBehavior,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - timedMetadataPid?: null | string @go(TimedMetadataPid,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - transportStreamId?: null | float64 @go(TransportStreamID,*float64) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - videoPid?: null | string @go(VideoPid,*string) -} - -#MaintenanceInitParameters: { - // The day of the week to use for maintenance. - maintenanceDay?: null | string @go(MaintenanceDay,*string) - - // The hour maintenance will start. - maintenanceStartTime?: null | string @go(MaintenanceStartTime,*string) -} - -#MaintenanceObservation: { - // The day of the week to use for maintenance. - maintenanceDay?: null | string @go(MaintenanceDay,*string) - - // The hour maintenance will start. - maintenanceStartTime?: null | string @go(MaintenanceStartTime,*string) -} - -#MaintenanceParameters: { - // The day of the week to use for maintenance. - // +kubebuilder:validation:Optional - maintenanceDay?: null | string @go(MaintenanceDay,*string) - - // The hour maintenance will start. - // +kubebuilder:validation:Optional - maintenanceStartTime?: null | string @go(MaintenanceStartTime,*string) -} - -#MediaPackageGroupSettingsDestinationInitParameters: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#MediaPackageGroupSettingsDestinationObservation: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#MediaPackageGroupSettingsDestinationParameters: { - // Reference ID for the destination. - // +kubebuilder:validation:Optional - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#MediaPackageGroupSettingsInitParameters: { - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#MediaPackageGroupSettingsDestinationInitParameters] @go(Destination,[]MediaPackageGroupSettingsDestinationInitParameters) -} - -#MediaPackageGroupSettingsObservation: { - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#MediaPackageGroupSettingsDestinationObservation] @go(Destination,[]MediaPackageGroupSettingsDestinationObservation) -} - -#MediaPackageGroupSettingsParameters: { - // A director and base filename where archive files should be written. See Destination for more details. - // +kubebuilder:validation:Optional - destination: [...#MediaPackageGroupSettingsDestinationParameters] @go(Destination,[]MediaPackageGroupSettingsDestinationParameters) -} - -#MediaPackageOutputSettingsInitParameters: { -} - -#MediaPackageOutputSettingsObservation: { -} - -#MediaPackageOutputSettingsParameters: { -} - -#MediaPackageSettingsInitParameters: { - // ID of the channel in MediaPackage that is the destination for this output group. - channelId?: null | string @go(ChannelID,*string) -} - -#MediaPackageSettingsObservation: { - // ID of the channel in MediaPackage that is the destination for this output group. - channelId?: null | string @go(ChannelID,*string) -} - -#MediaPackageSettingsParameters: { - // ID of the channel in MediaPackage that is the destination for this output group. - // +kubebuilder:validation:Optional - channelId?: null | string @go(ChannelID,*string) -} - -#Mp2SettingsInitParameters: { - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - - // Mono, Stereo, or 5.1 channel layout. - codingMode?: null | string @go(CodingMode,*string) - - // Sample rate in Hz. - sampleRate?: null | float64 @go(SampleRate,*float64) -} - -#Mp2SettingsObservation: { - // Average bitrate in bits/second. - bitrate?: null | float64 @go(Bitrate,*float64) - - // Mono, Stereo, or 5.1 channel layout. - codingMode?: null | string @go(CodingMode,*string) - - // Sample rate in Hz. - sampleRate?: null | float64 @go(SampleRate,*float64) -} - -#Mp2SettingsParameters: { - // Average bitrate in bits/second. - // +kubebuilder:validation:Optional - bitrate?: null | float64 @go(Bitrate,*float64) - - // Mono, Stereo, or 5.1 channel layout. - // +kubebuilder:validation:Optional - codingMode?: null | string @go(CodingMode,*string) - - // Sample rate in Hz. - // +kubebuilder:validation:Optional - sampleRate?: null | float64 @go(SampleRate,*float64) -} - -#MsSmoothGroupSettingsDestinationInitParameters: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#MsSmoothGroupSettingsDestinationObservation: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#MsSmoothGroupSettingsDestinationParameters: { - // Reference ID for the destination. - // +kubebuilder:validation:Optional - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#MsSmoothGroupSettingsInitParameters: { - // User-specified id. Ths is used in an output group or an output. - acquisitionPointId?: null | string @go(AcquisitionPointID,*string) - audioOnlyTimecodeControl?: null | string @go(AudioOnlyTimecodeControl,*string) - - // Setting to allow self signed or verified RTMP certificates. - certificateMode?: null | string @go(CertificateMode,*string) - - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#MsSmoothGroupSettingsDestinationInitParameters] @go(Destination,[]MsSmoothGroupSettingsDestinationInitParameters) - - // User-specified id. Ths is used in an output group or an output. - eventId?: null | string @go(EventID,*string) - eventIdMode?: null | string @go(EventIDMode,*string) - eventStopBehavior?: null | string @go(EventStopBehavior,*string) - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - fragmentLength?: null | float64 @go(FragmentLength,*float64) - - // Controls the behavior of the RTMP group if input becomes unavailable. - inputLossAction?: null | string @go(InputLossAction,*string) - - // Number of retry attempts. - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - restartDelay?: null | float64 @go(RestartDelay,*float64) - segmentationMode?: null | string @go(SegmentationMode,*string) - sendDelayMs?: null | float64 @go(SendDelayMs,*float64) - sparseTrackType?: null | string @go(SparseTrackType,*string) - streamManifestBehavior?: null | string @go(StreamManifestBehavior,*string) - timestampOffset?: null | string @go(TimestampOffset,*string) - timestampOffsetMode?: null | string @go(TimestampOffsetMode,*string) -} - -#MsSmoothGroupSettingsObservation: { - // User-specified id. Ths is used in an output group or an output. - acquisitionPointId?: null | string @go(AcquisitionPointID,*string) - audioOnlyTimecodeControl?: null | string @go(AudioOnlyTimecodeControl,*string) - - // Setting to allow self signed or verified RTMP certificates. - certificateMode?: null | string @go(CertificateMode,*string) - - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#MsSmoothGroupSettingsDestinationObservation] @go(Destination,[]MsSmoothGroupSettingsDestinationObservation) - - // User-specified id. Ths is used in an output group or an output. - eventId?: null | string @go(EventID,*string) - eventIdMode?: null | string @go(EventIDMode,*string) - eventStopBehavior?: null | string @go(EventStopBehavior,*string) - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - fragmentLength?: null | float64 @go(FragmentLength,*float64) - - // Controls the behavior of the RTMP group if input becomes unavailable. - inputLossAction?: null | string @go(InputLossAction,*string) - - // Number of retry attempts. - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - restartDelay?: null | float64 @go(RestartDelay,*float64) - segmentationMode?: null | string @go(SegmentationMode,*string) - sendDelayMs?: null | float64 @go(SendDelayMs,*float64) - sparseTrackType?: null | string @go(SparseTrackType,*string) - streamManifestBehavior?: null | string @go(StreamManifestBehavior,*string) - timestampOffset?: null | string @go(TimestampOffset,*string) - timestampOffsetMode?: null | string @go(TimestampOffsetMode,*string) -} - -#MsSmoothGroupSettingsParameters: { - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - acquisitionPointId?: null | string @go(AcquisitionPointID,*string) - - // +kubebuilder:validation:Optional - audioOnlyTimecodeControl?: null | string @go(AudioOnlyTimecodeControl,*string) - - // Setting to allow self signed or verified RTMP certificates. - // +kubebuilder:validation:Optional - certificateMode?: null | string @go(CertificateMode,*string) - - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - // +kubebuilder:validation:Optional - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - - // A director and base filename where archive files should be written. See Destination for more details. - // +kubebuilder:validation:Optional - destination: [...#MsSmoothGroupSettingsDestinationParameters] @go(Destination,[]MsSmoothGroupSettingsDestinationParameters) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - eventId?: null | string @go(EventID,*string) - - // +kubebuilder:validation:Optional - eventIdMode?: null | string @go(EventIDMode,*string) - - // +kubebuilder:validation:Optional - eventStopBehavior?: null | string @go(EventStopBehavior,*string) - - // +kubebuilder:validation:Optional - filecacheDuration?: null | float64 @go(FilecacheDuration,*float64) - - // +kubebuilder:validation:Optional - fragmentLength?: null | float64 @go(FragmentLength,*float64) - - // Controls the behavior of the RTMP group if input becomes unavailable. - // +kubebuilder:validation:Optional - inputLossAction?: null | string @go(InputLossAction,*string) - - // Number of retry attempts. - // +kubebuilder:validation:Optional - numRetries?: null | float64 @go(NumRetries,*float64) - - // Number of seconds to wait until a restart is initiated. - // +kubebuilder:validation:Optional - restartDelay?: null | float64 @go(RestartDelay,*float64) - - // +kubebuilder:validation:Optional - segmentationMode?: null | string @go(SegmentationMode,*string) - - // +kubebuilder:validation:Optional - sendDelayMs?: null | float64 @go(SendDelayMs,*float64) - - // +kubebuilder:validation:Optional - sparseTrackType?: null | string @go(SparseTrackType,*string) - - // +kubebuilder:validation:Optional - streamManifestBehavior?: null | string @go(StreamManifestBehavior,*string) - - // +kubebuilder:validation:Optional - timestampOffset?: null | string @go(TimestampOffset,*string) - - // +kubebuilder:validation:Optional - timestampOffsetMode?: null | string @go(TimestampOffsetMode,*string) -} - -#MsSmoothOutputSettingsInitParameters: { - h265PackagingType?: null | string @go(H265PackagingType,*string) - - // String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - nameModifier?: null | string @go(NameModifier,*string) -} - -#MsSmoothOutputSettingsObservation: { - h265PackagingType?: null | string @go(H265PackagingType,*string) - - // String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - nameModifier?: null | string @go(NameModifier,*string) -} - -#MsSmoothOutputSettingsParameters: { - // +kubebuilder:validation:Optional - h265PackagingType?: null | string @go(H265PackagingType,*string) - - // String concatenated to the end of the destination filename. Required for multiple outputs of the same type. - // +kubebuilder:validation:Optional - nameModifier?: null | string @go(NameModifier,*string) -} - -#MultiplexGroupSettingsInitParameters: { -} - -#MultiplexGroupSettingsObservation: { -} - -#MultiplexGroupSettingsParameters: { -} - -#MultiplexOutputSettingsDestinationInitParameters: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#MultiplexOutputSettingsDestinationObservation: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#MultiplexOutputSettingsDestinationParameters: { - // Reference ID for the destination. - // +kubebuilder:validation:Optional - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#MultiplexOutputSettingsInitParameters: { - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#MultiplexOutputSettingsDestinationInitParameters] @go(Destination,[]MultiplexOutputSettingsDestinationInitParameters) -} - -#MultiplexOutputSettingsObservation: { - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#MultiplexOutputSettingsDestinationObservation] @go(Destination,[]MultiplexOutputSettingsDestinationObservation) -} - -#MultiplexOutputSettingsParameters: { - // A director and base filename where archive files should be written. See Destination for more details. - // +kubebuilder:validation:Optional - destination: [...#MultiplexOutputSettingsDestinationParameters] @go(Destination,[]MultiplexOutputSettingsDestinationParameters) -} - -#MultiplexSettingsInitParameters: { - // The ID of the Multiplex that the encoder is providing output to. - multiplexId?: null | string @go(MultiplexID,*string) - - // The program name of the Multiplex program that the encoder is providing output to. - programName?: null | string @go(ProgramName,*string) -} - -#MultiplexSettingsObservation: { - // The ID of the Multiplex that the encoder is providing output to. - multiplexId?: null | string @go(MultiplexID,*string) - - // The program name of the Multiplex program that the encoder is providing output to. - programName?: null | string @go(ProgramName,*string) -} - -#MultiplexSettingsParameters: { - // The ID of the Multiplex that the encoder is providing output to. - // +kubebuilder:validation:Optional - multiplexId?: null | string @go(MultiplexID,*string) - - // The program name of the Multiplex program that the encoder is providing output to. - // +kubebuilder:validation:Optional - programName?: null | string @go(ProgramName,*string) -} - -#NetworkInputSettingsInitParameters: { - // Specifies HLS input settings when the uri is for a HLS manifest. See HLS Input Settings for more details. - hlsInputSettings?: [...#HlsInputSettingsInitParameters] @go(HlsInputSettings,[]HlsInputSettingsInitParameters) - - // Check HTTPS server certificates. - serverValidation?: null | string @go(ServerValidation,*string) -} - -#NetworkInputSettingsObservation: { - // Specifies HLS input settings when the uri is for a HLS manifest. See HLS Input Settings for more details. - hlsInputSettings?: [...#HlsInputSettingsObservation] @go(HlsInputSettings,[]HlsInputSettingsObservation) - - // Check HTTPS server certificates. - serverValidation?: null | string @go(ServerValidation,*string) -} - -#NetworkInputSettingsParameters: { - // Specifies HLS input settings when the uri is for a HLS manifest. See HLS Input Settings for more details. - // +kubebuilder:validation:Optional - hlsInputSettings?: [...#HlsInputSettingsParameters] @go(HlsInputSettings,[]HlsInputSettingsParameters) - - // Check HTTPS server certificates. - // +kubebuilder:validation:Optional - serverValidation?: null | string @go(ServerValidation,*string) -} - -#NielsenCbetSettingsInitParameters: { - cbetCheckDigitString?: null | string @go(CbetCheckDigitString,*string) - - // Determines the method of CBET insertion mode when prior encoding is detected on the same layer. - cbetStepaside?: null | string @go(CbetStepaside,*string) - - // CBET source ID to use in the watermark. - csid?: null | string @go(Csid,*string) -} - -#NielsenCbetSettingsObservation: { - cbetCheckDigitString?: null | string @go(CbetCheckDigitString,*string) - - // Determines the method of CBET insertion mode when prior encoding is detected on the same layer. - cbetStepaside?: null | string @go(CbetStepaside,*string) - - // CBET source ID to use in the watermark. - csid?: null | string @go(Csid,*string) -} - -#NielsenCbetSettingsParameters: { - // +kubebuilder:validation:Optional - cbetCheckDigitString?: null | string @go(CbetCheckDigitString,*string) - - // Determines the method of CBET insertion mode when prior encoding is detected on the same layer. - // +kubebuilder:validation:Optional - cbetStepaside?: null | string @go(CbetStepaside,*string) - - // CBET source ID to use in the watermark. - // +kubebuilder:validation:Optional - csid?: null | string @go(Csid,*string) -} - -#NielsenNaesIiNwSettingsInitParameters: { - checkDigitString?: null | string @go(CheckDigitString,*string) - - // The Nielsen Source ID to include in the watermark. - sid?: null | float64 @go(Sid,*float64) -} - -#NielsenNaesIiNwSettingsObservation: { - checkDigitString?: null | string @go(CheckDigitString,*string) - - // The Nielsen Source ID to include in the watermark. - sid?: null | float64 @go(Sid,*float64) -} - -#NielsenNaesIiNwSettingsParameters: { - // +kubebuilder:validation:Optional - checkDigitString?: null | string @go(CheckDigitString,*string) - - // The Nielsen Source ID to include in the watermark. - // +kubebuilder:validation:Optional - sid?: null | float64 @go(Sid,*float64) -} - -#NielsenWatermarksSettingsInitParameters: { - // Used to insert watermarks of type Nielsen CBET. See Nielsen CBET Settings for more details. - nielsenCbetSettings?: [...#NielsenCbetSettingsInitParameters] @go(NielsenCbetSettings,[]NielsenCbetSettingsInitParameters) - - // Distribution types to assign to the watermarks. Options are PROGRAM_CONTENT and FINAL_DISTRIBUTOR. - nielsenDistributionType?: null | string @go(NielsenDistributionType,*string) - - // Used to insert watermarks of type Nielsen NAES, II (N2) and Nielsen NAES VI (NW). See Nielsen NAES II NW Settings for more details. - nielsenNaesIiNwSettings?: [...#NielsenNaesIiNwSettingsInitParameters] @go(NielsenNaesIiNwSettings,[]NielsenNaesIiNwSettingsInitParameters) -} - -#NielsenWatermarksSettingsObservation: { - // Used to insert watermarks of type Nielsen CBET. See Nielsen CBET Settings for more details. - nielsenCbetSettings?: [...#NielsenCbetSettingsObservation] @go(NielsenCbetSettings,[]NielsenCbetSettingsObservation) - - // Distribution types to assign to the watermarks. Options are PROGRAM_CONTENT and FINAL_DISTRIBUTOR. - nielsenDistributionType?: null | string @go(NielsenDistributionType,*string) - - // Used to insert watermarks of type Nielsen NAES, II (N2) and Nielsen NAES VI (NW). See Nielsen NAES II NW Settings for more details. - nielsenNaesIiNwSettings?: [...#NielsenNaesIiNwSettingsObservation] @go(NielsenNaesIiNwSettings,[]NielsenNaesIiNwSettingsObservation) -} - -#NielsenWatermarksSettingsParameters: { - // Used to insert watermarks of type Nielsen CBET. See Nielsen CBET Settings for more details. - // +kubebuilder:validation:Optional - nielsenCbetSettings?: [...#NielsenCbetSettingsParameters] @go(NielsenCbetSettings,[]NielsenCbetSettingsParameters) - - // Distribution types to assign to the watermarks. Options are PROGRAM_CONTENT and FINAL_DISTRIBUTOR. - // +kubebuilder:validation:Optional - nielsenDistributionType?: null | string @go(NielsenDistributionType,*string) - - // Used to insert watermarks of type Nielsen NAES, II (N2) and Nielsen NAES VI (NW). See Nielsen NAES II NW Settings for more details. - // +kubebuilder:validation:Optional - nielsenNaesIiNwSettings?: [...#NielsenNaesIiNwSettingsParameters] @go(NielsenNaesIiNwSettings,[]NielsenNaesIiNwSettingsParameters) -} - -#OutputGroupSettingsInitParameters: { - // Archive group settings. See Archive Group Settings for more details. - archiveGroupSettings?: [...#ArchiveGroupSettingsInitParameters] @go(ArchiveGroupSettings,[]ArchiveGroupSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - frameCaptureGroupSettings?: [...#FrameCaptureGroupSettingsInitParameters] @go(FrameCaptureGroupSettings,[]FrameCaptureGroupSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsGroupSettings?: [...#HlsGroupSettingsInitParameters] @go(HlsGroupSettings,[]HlsGroupSettingsInitParameters) - - // Media package group settings. See Media Package Group Settings for more details. - mediaPackageGroupSettings?: [...#MediaPackageGroupSettingsInitParameters] @go(MediaPackageGroupSettings,[]MediaPackageGroupSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - msSmoothGroupSettings?: [...#MsSmoothGroupSettingsInitParameters] @go(MsSmoothGroupSettings,[]MsSmoothGroupSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - multiplexGroupSettings?: [...#MultiplexGroupSettingsInitParameters] @go(MultiplexGroupSettings,[]MultiplexGroupSettingsInitParameters) - - // RTMP group settings. See RTMP Group Settings for more details. - rtmpGroupSettings?: [...#RtmpGroupSettingsInitParameters] @go(RtmpGroupSettings,[]RtmpGroupSettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - udpGroupSettings?: [...#UDPGroupSettingsInitParameters] @go(UDPGroupSettings,[]UDPGroupSettingsInitParameters) -} - -#OutputGroupSettingsObservation: { - // Archive group settings. See Archive Group Settings for more details. - archiveGroupSettings?: [...#ArchiveGroupSettingsObservation] @go(ArchiveGroupSettings,[]ArchiveGroupSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - frameCaptureGroupSettings?: [...#FrameCaptureGroupSettingsObservation] @go(FrameCaptureGroupSettings,[]FrameCaptureGroupSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - hlsGroupSettings?: [...#HlsGroupSettingsObservation] @go(HlsGroupSettings,[]HlsGroupSettingsObservation) - - // Media package group settings. See Media Package Group Settings for more details. - mediaPackageGroupSettings?: [...#MediaPackageGroupSettingsObservation] @go(MediaPackageGroupSettings,[]MediaPackageGroupSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - msSmoothGroupSettings?: [...#MsSmoothGroupSettingsObservation] @go(MsSmoothGroupSettings,[]MsSmoothGroupSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - multiplexGroupSettings?: [...#MultiplexGroupSettingsParameters] @go(MultiplexGroupSettings,[]MultiplexGroupSettingsParameters) - - // RTMP group settings. See RTMP Group Settings for more details. - rtmpGroupSettings?: [...#RtmpGroupSettingsObservation] @go(RtmpGroupSettings,[]RtmpGroupSettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - udpGroupSettings?: [...#UDPGroupSettingsObservation] @go(UDPGroupSettings,[]UDPGroupSettingsObservation) -} - -#OutputGroupSettingsParameters: { - // Archive group settings. See Archive Group Settings for more details. - // +kubebuilder:validation:Optional - archiveGroupSettings?: [...#ArchiveGroupSettingsParameters] @go(ArchiveGroupSettings,[]ArchiveGroupSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - frameCaptureGroupSettings?: [...#FrameCaptureGroupSettingsParameters] @go(FrameCaptureGroupSettings,[]FrameCaptureGroupSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - hlsGroupSettings?: [...#HlsGroupSettingsParameters] @go(HlsGroupSettings,[]HlsGroupSettingsParameters) - - // Media package group settings. See Media Package Group Settings for more details. - // +kubebuilder:validation:Optional - mediaPackageGroupSettings?: [...#MediaPackageGroupSettingsParameters] @go(MediaPackageGroupSettings,[]MediaPackageGroupSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - msSmoothGroupSettings?: [...#MsSmoothGroupSettingsParameters] @go(MsSmoothGroupSettings,[]MsSmoothGroupSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - multiplexGroupSettings?: [...#MultiplexGroupSettingsParameters] @go(MultiplexGroupSettings,[]MultiplexGroupSettingsParameters) - - // RTMP group settings. See RTMP Group Settings for more details. - // +kubebuilder:validation:Optional - rtmpGroupSettings?: [...#RtmpGroupSettingsParameters] @go(RtmpGroupSettings,[]RtmpGroupSettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - udpGroupSettings?: [...#UDPGroupSettingsParameters] @go(UDPGroupSettings,[]UDPGroupSettingsParameters) -} - -#OutputGroupsInitParameters: { - // Name of the Channel. - name?: null | string @go(Name,*string) - - // Settings associated with the output group. See Output Group Settings for more details. - outputGroupSettings?: [...#OutputGroupSettingsInitParameters] @go(OutputGroupSettings,[]OutputGroupSettingsInitParameters) - - // List of outputs. See Outputs for more details. - outputs?: [...#OutputsInitParameters] @go(Outputs,[]OutputsInitParameters) -} - -#OutputGroupsObservation: { - // Name of the Channel. - name?: null | string @go(Name,*string) - - // Settings associated with the output group. See Output Group Settings for more details. - outputGroupSettings?: [...#OutputGroupSettingsObservation] @go(OutputGroupSettings,[]OutputGroupSettingsObservation) - - // List of outputs. See Outputs for more details. - outputs?: [...#OutputsObservation] @go(Outputs,[]OutputsObservation) -} - -#OutputGroupsParameters: { - // Name of the Channel. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Settings associated with the output group. See Output Group Settings for more details. - // +kubebuilder:validation:Optional - outputGroupSettings: [...#OutputGroupSettingsParameters] @go(OutputGroupSettings,[]OutputGroupSettingsParameters) - - // List of outputs. See Outputs for more details. - // +kubebuilder:validation:Optional - outputs: [...#OutputsParameters] @go(Outputs,[]OutputsParameters) -} - -#OutputRectangleInitParameters: { - // Output video height in pixels. - height?: null | float64 @go(Height,*float64) - leftOffset?: null | float64 @go(LeftOffset,*float64) - topOffset?: null | float64 @go(TopOffset,*float64) - - // Output video width in pixels. - width?: null | float64 @go(Width,*float64) -} - -#OutputRectangleObservation: { - // Output video height in pixels. - height?: null | float64 @go(Height,*float64) - leftOffset?: null | float64 @go(LeftOffset,*float64) - topOffset?: null | float64 @go(TopOffset,*float64) - - // Output video width in pixels. - width?: null | float64 @go(Width,*float64) -} - -#OutputRectangleParameters: { - // Output video height in pixels. - // +kubebuilder:validation:Optional - height?: null | float64 @go(Height,*float64) - - // +kubebuilder:validation:Optional - leftOffset?: null | float64 @go(LeftOffset,*float64) - - // +kubebuilder:validation:Optional - topOffset?: null | float64 @go(TopOffset,*float64) - - // Output video width in pixels. - // +kubebuilder:validation:Optional - width?: null | float64 @go(Width,*float64) -} - -#OutputSettingsInitParameters: { - // Archive output settings. See Archive Output Settings for more details. - archiveOutputSettings?: [...#ArchiveOutputSettingsInitParameters] @go(ArchiveOutputSettings,[]ArchiveOutputSettingsInitParameters) - - // Settings for output. See Output Settings for more details. - frameCaptureOutputSettings?: [...#FrameCaptureOutputSettingsInitParameters] @go(FrameCaptureOutputSettings,[]FrameCaptureOutputSettingsInitParameters) - - // Settings for output. See Output Settings for more details. - hlsOutputSettings?: [...#HlsOutputSettingsInitParameters] @go(HlsOutputSettings,[]HlsOutputSettingsInitParameters) - - // Media package output settings. This can be set as an empty block. - mediaPackageOutputSettings?: [...#MediaPackageOutputSettingsInitParameters] @go(MediaPackageOutputSettings,[]MediaPackageOutputSettingsInitParameters) - - // Settings for output. See Output Settings for more details. - msSmoothOutputSettings?: [...#MsSmoothOutputSettingsInitParameters] @go(MsSmoothOutputSettings,[]MsSmoothOutputSettingsInitParameters) - - // Multiplex output settings. See Multiplex Output Settings for more details. - multiplexOutputSettings?: [...#MultiplexOutputSettingsInitParameters] @go(MultiplexOutputSettings,[]MultiplexOutputSettingsInitParameters) - - // RTMP output settings. See RTMP Output Settings for more details. - rtmpOutputSettings?: [...#RtmpOutputSettingsInitParameters] @go(RtmpOutputSettings,[]RtmpOutputSettingsInitParameters) - - // UDP output settings. See UDP Output Settings for more details - udpOutputSettings?: [...#UDPOutputSettingsInitParameters] @go(UDPOutputSettings,[]UDPOutputSettingsInitParameters) -} - -#OutputSettingsObservation: { - // Archive output settings. See Archive Output Settings for more details. - archiveOutputSettings?: [...#ArchiveOutputSettingsObservation] @go(ArchiveOutputSettings,[]ArchiveOutputSettingsObservation) - - // Settings for output. See Output Settings for more details. - frameCaptureOutputSettings?: [...#FrameCaptureOutputSettingsObservation] @go(FrameCaptureOutputSettings,[]FrameCaptureOutputSettingsObservation) - - // Settings for output. See Output Settings for more details. - hlsOutputSettings?: [...#HlsOutputSettingsObservation] @go(HlsOutputSettings,[]HlsOutputSettingsObservation) - - // Media package output settings. This can be set as an empty block. - mediaPackageOutputSettings?: [...#MediaPackageOutputSettingsParameters] @go(MediaPackageOutputSettings,[]MediaPackageOutputSettingsParameters) - - // Settings for output. See Output Settings for more details. - msSmoothOutputSettings?: [...#MsSmoothOutputSettingsObservation] @go(MsSmoothOutputSettings,[]MsSmoothOutputSettingsObservation) - - // Multiplex output settings. See Multiplex Output Settings for more details. - multiplexOutputSettings?: [...#MultiplexOutputSettingsObservation] @go(MultiplexOutputSettings,[]MultiplexOutputSettingsObservation) - - // RTMP output settings. See RTMP Output Settings for more details. - rtmpOutputSettings?: [...#RtmpOutputSettingsObservation] @go(RtmpOutputSettings,[]RtmpOutputSettingsObservation) - - // UDP output settings. See UDP Output Settings for more details - udpOutputSettings?: [...#UDPOutputSettingsObservation] @go(UDPOutputSettings,[]UDPOutputSettingsObservation) -} - -#OutputSettingsParameters: { - // Archive output settings. See Archive Output Settings for more details. - // +kubebuilder:validation:Optional - archiveOutputSettings?: [...#ArchiveOutputSettingsParameters] @go(ArchiveOutputSettings,[]ArchiveOutputSettingsParameters) - - // Settings for output. See Output Settings for more details. - // +kubebuilder:validation:Optional - frameCaptureOutputSettings?: [...#FrameCaptureOutputSettingsParameters] @go(FrameCaptureOutputSettings,[]FrameCaptureOutputSettingsParameters) - - // Settings for output. See Output Settings for more details. - // +kubebuilder:validation:Optional - hlsOutputSettings?: [...#HlsOutputSettingsParameters] @go(HlsOutputSettings,[]HlsOutputSettingsParameters) - - // Media package output settings. This can be set as an empty block. - // +kubebuilder:validation:Optional - mediaPackageOutputSettings?: [...#MediaPackageOutputSettingsParameters] @go(MediaPackageOutputSettings,[]MediaPackageOutputSettingsParameters) - - // Settings for output. See Output Settings for more details. - // +kubebuilder:validation:Optional - msSmoothOutputSettings?: [...#MsSmoothOutputSettingsParameters] @go(MsSmoothOutputSettings,[]MsSmoothOutputSettingsParameters) - - // Multiplex output settings. See Multiplex Output Settings for more details. - // +kubebuilder:validation:Optional - multiplexOutputSettings?: [...#MultiplexOutputSettingsParameters] @go(MultiplexOutputSettings,[]MultiplexOutputSettingsParameters) - - // RTMP output settings. See RTMP Output Settings for more details. - // +kubebuilder:validation:Optional - rtmpOutputSettings?: [...#RtmpOutputSettingsParameters] @go(RtmpOutputSettings,[]RtmpOutputSettingsParameters) - - // UDP output settings. See UDP Output Settings for more details - // +kubebuilder:validation:Optional - udpOutputSettings?: [...#UDPOutputSettingsParameters] @go(UDPOutputSettings,[]UDPOutputSettingsParameters) -} - -#OutputsInitParameters: { - // The names of the audio descriptions used as audio sources for the output. - audioDescriptionNames?: [...null | string] @go(AudioDescriptionNames,[]*string) - - // The names of the caption descriptions used as caption sources for the output. - captionDescriptionNames?: [...null | string] @go(CaptionDescriptionNames,[]*string) - - // The name used to identify an output. - outputName?: null | string @go(OutputName,*string) - - // Settings for output. See Output Settings for more details. - outputSettings?: [...#OutputSettingsInitParameters] @go(OutputSettings,[]OutputSettingsInitParameters) - - // The name of the video description used as video source for the output. - videoDescriptionName?: null | string @go(VideoDescriptionName,*string) -} - -#OutputsObservation: { - // The names of the audio descriptions used as audio sources for the output. - audioDescriptionNames?: [...null | string] @go(AudioDescriptionNames,[]*string) - - // The names of the caption descriptions used as caption sources for the output. - captionDescriptionNames?: [...null | string] @go(CaptionDescriptionNames,[]*string) - - // The name used to identify an output. - outputName?: null | string @go(OutputName,*string) - - // Settings for output. See Output Settings for more details. - outputSettings?: [...#OutputSettingsObservation] @go(OutputSettings,[]OutputSettingsObservation) - - // The name of the video description used as video source for the output. - videoDescriptionName?: null | string @go(VideoDescriptionName,*string) -} - -#OutputsParameters: { - // The names of the audio descriptions used as audio sources for the output. - // +kubebuilder:validation:Optional - audioDescriptionNames?: [...null | string] @go(AudioDescriptionNames,[]*string) - - // The names of the caption descriptions used as caption sources for the output. - // +kubebuilder:validation:Optional - captionDescriptionNames?: [...null | string] @go(CaptionDescriptionNames,[]*string) - - // The name used to identify an output. - // +kubebuilder:validation:Optional - outputName?: null | string @go(OutputName,*string) - - // Settings for output. See Output Settings for more details. - // +kubebuilder:validation:Optional - outputSettings: [...#OutputSettingsParameters] @go(OutputSettings,[]OutputSettingsParameters) - - // The name of the video description used as video source for the output. - // +kubebuilder:validation:Optional - videoDescriptionName?: null | string @go(VideoDescriptionName,*string) -} - -#PassThroughSettingsInitParameters: { -} - -#PassThroughSettingsObservation: { -} - -#PassThroughSettingsParameters: { -} - -#RawSettingsInitParameters: { -} - -#RawSettingsObservation: { -} - -#RawSettingsParameters: { -} - -#Rec601SettingsInitParameters: { -} - -#Rec601SettingsObservation: { -} - -#Rec601SettingsParameters: { -} - -#Rec709SettingsInitParameters: { -} - -#Rec709SettingsObservation: { -} - -#Rec709SettingsParameters: { -} - -#RemixSettingsInitParameters: { - channelMappings?: [...#ChannelMappingsInitParameters] @go(ChannelMappings,[]ChannelMappingsInitParameters) - channelsIn?: null | float64 @go(ChannelsIn,*float64) - channelsOut?: null | float64 @go(ChannelsOut,*float64) -} - -#RemixSettingsObservation: { - channelMappings?: [...#ChannelMappingsObservation] @go(ChannelMappings,[]ChannelMappingsObservation) - channelsIn?: null | float64 @go(ChannelsIn,*float64) - channelsOut?: null | float64 @go(ChannelsOut,*float64) -} - -#RemixSettingsParameters: { - // +kubebuilder:validation:Optional - channelMappings: [...#ChannelMappingsParameters] @go(ChannelMappings,[]ChannelMappingsParameters) - - // +kubebuilder:validation:Optional - channelsIn?: null | float64 @go(ChannelsIn,*float64) - - // +kubebuilder:validation:Optional - channelsOut?: null | float64 @go(ChannelsOut,*float64) -} - -#RtmpGroupSettingsInitParameters: { - // The ad marker type for this output group. - adMarkers?: [...null | string] @go(AdMarkers,[]*string) - - // Authentication scheme to use when connecting with CDN. - authenticationScheme?: null | string @go(AuthenticationScheme,*string) - - // Controls behavior when content cache fills up. - cacheFullBehavior?: null | string @go(CacheFullBehavior,*string) - - // Cache length in seconds, is used to calculate buffer size. - cacheLength?: null | float64 @go(CacheLength,*float64) - - // Controls the types of data that passes to onCaptionInfo outputs. - captionData?: null | string @go(CaptionData,*string) - - // Controls the behavior of the RTMP group if input becomes unavailable. - inputLossAction?: null | string @go(InputLossAction,*string) - - // Number of seconds to wait until a restart is initiated. - restartDelay?: null | float64 @go(RestartDelay,*float64) -} - -#RtmpGroupSettingsObservation: { - // The ad marker type for this output group. - adMarkers?: [...null | string] @go(AdMarkers,[]*string) - - // Authentication scheme to use when connecting with CDN. - authenticationScheme?: null | string @go(AuthenticationScheme,*string) - - // Controls behavior when content cache fills up. - cacheFullBehavior?: null | string @go(CacheFullBehavior,*string) - - // Cache length in seconds, is used to calculate buffer size. - cacheLength?: null | float64 @go(CacheLength,*float64) - - // Controls the types of data that passes to onCaptionInfo outputs. - captionData?: null | string @go(CaptionData,*string) - - // Controls the behavior of the RTMP group if input becomes unavailable. - inputLossAction?: null | string @go(InputLossAction,*string) - - // Number of seconds to wait until a restart is initiated. - restartDelay?: null | float64 @go(RestartDelay,*float64) -} - -#RtmpGroupSettingsParameters: { - // The ad marker type for this output group. - // +kubebuilder:validation:Optional - adMarkers?: [...null | string] @go(AdMarkers,[]*string) - - // Authentication scheme to use when connecting with CDN. - // +kubebuilder:validation:Optional - authenticationScheme?: null | string @go(AuthenticationScheme,*string) - - // Controls behavior when content cache fills up. - // +kubebuilder:validation:Optional - cacheFullBehavior?: null | string @go(CacheFullBehavior,*string) - - // Cache length in seconds, is used to calculate buffer size. - // +kubebuilder:validation:Optional - cacheLength?: null | float64 @go(CacheLength,*float64) - - // Controls the types of data that passes to onCaptionInfo outputs. - // +kubebuilder:validation:Optional - captionData?: null | string @go(CaptionData,*string) - - // Controls the behavior of the RTMP group if input becomes unavailable. - // +kubebuilder:validation:Optional - inputLossAction?: null | string @go(InputLossAction,*string) - - // Number of seconds to wait until a restart is initiated. - // +kubebuilder:validation:Optional - restartDelay?: null | float64 @go(RestartDelay,*float64) -} - -#RtmpOutputSettingsDestinationInitParameters: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#RtmpOutputSettingsDestinationObservation: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#RtmpOutputSettingsDestinationParameters: { - // Reference ID for the destination. - // +kubebuilder:validation:Optional - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#RtmpOutputSettingsInitParameters: { - // Setting to allow self signed or verified RTMP certificates. - certificateMode?: null | string @go(CertificateMode,*string) - - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#RtmpOutputSettingsDestinationInitParameters] @go(Destination,[]RtmpOutputSettingsDestinationInitParameters) - - // Number of retry attempts. - numRetries?: null | float64 @go(NumRetries,*float64) -} - -#RtmpOutputSettingsObservation: { - // Setting to allow self signed or verified RTMP certificates. - certificateMode?: null | string @go(CertificateMode,*string) - - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#RtmpOutputSettingsDestinationObservation] @go(Destination,[]RtmpOutputSettingsDestinationObservation) - - // Number of retry attempts. - numRetries?: null | float64 @go(NumRetries,*float64) -} - -#RtmpOutputSettingsParameters: { - // Setting to allow self signed or verified RTMP certificates. - // +kubebuilder:validation:Optional - certificateMode?: null | string @go(CertificateMode,*string) - - // Number of seconds to wait before retrying connection to the flash media server if the connection is lost. - // +kubebuilder:validation:Optional - connectionRetryInterval?: null | float64 @go(ConnectionRetryInterval,*float64) - - // A director and base filename where archive files should be written. See Destination for more details. - // +kubebuilder:validation:Optional - destination: [...#RtmpOutputSettingsDestinationParameters] @go(Destination,[]RtmpOutputSettingsDestinationParameters) - - // Number of retry attempts. - // +kubebuilder:validation:Optional - numRetries?: null | float64 @go(NumRetries,*float64) -} - -#Scte20SourceSettingsInitParameters: { - convert608To708?: null | string @go(Convert608To708,*string) - source608ChannelNumber?: null | float64 @go(Source608ChannelNumber,*float64) -} - -#Scte20SourceSettingsObservation: { - convert608To708?: null | string @go(Convert608To708,*string) - source608ChannelNumber?: null | float64 @go(Source608ChannelNumber,*float64) -} - -#Scte20SourceSettingsParameters: { - // +kubebuilder:validation:Optional - convert608To708?: null | string @go(Convert608To708,*string) - - // +kubebuilder:validation:Optional - source608ChannelNumber?: null | float64 @go(Source608ChannelNumber,*float64) -} - -#Scte27SourceSettingsInitParameters: { - ocrLanguage?: null | string @go(OcrLanguage,*string) - - // User-specified id. Ths is used in an output group or an output. - pid?: null | float64 @go(Pid,*float64) -} - -#Scte27SourceSettingsObservation: { - ocrLanguage?: null | string @go(OcrLanguage,*string) - - // User-specified id. Ths is used in an output group or an output. - pid?: null | float64 @go(Pid,*float64) -} - -#Scte27SourceSettingsParameters: { - // +kubebuilder:validation:Optional - ocrLanguage?: null | string @go(OcrLanguage,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - pid?: null | float64 @go(Pid,*float64) -} - -#SelectorSettingsDvbTdtSettingsInitParameters: { - ocrLanguage?: null | string @go(OcrLanguage,*string) - - // User-specified id. Ths is used in an output group or an output. - pid?: null | float64 @go(Pid,*float64) -} - -#SelectorSettingsDvbTdtSettingsObservation: { - ocrLanguage?: null | string @go(OcrLanguage,*string) - - // User-specified id. Ths is used in an output group or an output. - pid?: null | float64 @go(Pid,*float64) -} - -#SelectorSettingsDvbTdtSettingsParameters: { - // +kubebuilder:validation:Optional - ocrLanguage?: null | string @go(OcrLanguage,*string) - - // User-specified id. Ths is used in an output group or an output. - // +kubebuilder:validation:Optional - pid?: null | float64 @go(Pid,*float64) -} - -#SelectorSettingsInitParameters: { - audioHlsRenditionSelection?: [...#AudioHlsRenditionSelectionInitParameters] @go(AudioHlsRenditionSelection,[]AudioHlsRenditionSelectionInitParameters) - audioLanguageSelection?: [...#AudioLanguageSelectionInitParameters] @go(AudioLanguageSelection,[]AudioLanguageSelectionInitParameters) - audioPidSelection?: [...#AudioPidSelectionInitParameters] @go(AudioPidSelection,[]AudioPidSelectionInitParameters) - audioTrackSelection?: [...#AudioTrackSelectionInitParameters] @go(AudioTrackSelection,[]AudioTrackSelectionInitParameters) -} - -#SelectorSettingsObservation: { - audioHlsRenditionSelection?: [...#AudioHlsRenditionSelectionObservation] @go(AudioHlsRenditionSelection,[]AudioHlsRenditionSelectionObservation) - audioLanguageSelection?: [...#AudioLanguageSelectionObservation] @go(AudioLanguageSelection,[]AudioLanguageSelectionObservation) - audioPidSelection?: [...#AudioPidSelectionObservation] @go(AudioPidSelection,[]AudioPidSelectionObservation) - audioTrackSelection?: [...#AudioTrackSelectionObservation] @go(AudioTrackSelection,[]AudioTrackSelectionObservation) -} - -#SelectorSettingsParameters: { - // +kubebuilder:validation:Optional - audioHlsRenditionSelection?: [...#AudioHlsRenditionSelectionParameters] @go(AudioHlsRenditionSelection,[]AudioHlsRenditionSelectionParameters) - - // +kubebuilder:validation:Optional - audioLanguageSelection?: [...#AudioLanguageSelectionParameters] @go(AudioLanguageSelection,[]AudioLanguageSelectionParameters) - - // +kubebuilder:validation:Optional - audioPidSelection?: [...#AudioPidSelectionParameters] @go(AudioPidSelection,[]AudioPidSelectionParameters) - - // +kubebuilder:validation:Optional - audioTrackSelection?: [...#AudioTrackSelectionParameters] @go(AudioTrackSelection,[]AudioTrackSelectionParameters) -} - -#SettingsInitParameters: { - // Key used to extract the password from EC2 Parameter store. - passwordParam?: null | string @go(PasswordParam,*string) - - // Stream name RTMP destinations (URLs of type rtmp://) - streamName?: null | string @go(StreamName,*string) - - // A URL specifying a destination. - url?: null | string @go(URL,*string) - - // Username for destination. - username?: null | string @go(Username,*string) -} - -#SettingsObservation: { - // Key used to extract the password from EC2 Parameter store. - passwordParam?: null | string @go(PasswordParam,*string) - - // Stream name RTMP destinations (URLs of type rtmp://) - streamName?: null | string @go(StreamName,*string) - - // A URL specifying a destination. - url?: null | string @go(URL,*string) - - // Username for destination. - username?: null | string @go(Username,*string) -} - -#SettingsParameters: { - // Key used to extract the password from EC2 Parameter store. - // +kubebuilder:validation:Optional - passwordParam?: null | string @go(PasswordParam,*string) - - // Stream name RTMP destinations (URLs of type rtmp://) - // +kubebuilder:validation:Optional - streamName?: null | string @go(StreamName,*string) - - // A URL specifying a destination. - // +kubebuilder:validation:Optional - url?: null | string @go(URL,*string) - - // Username for destination. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -#StandardHlsSettingsInitParameters: { - audioRenditionSets?: null | string @go(AudioRenditionSets,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - m3u8Settings?: [...#M3U8SettingsInitParameters] @go(M3U8Settings,[]M3U8SettingsInitParameters) -} - -#StandardHlsSettingsObservation: { - audioRenditionSets?: null | string @go(AudioRenditionSets,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - m3u8Settings?: [...#M3U8SettingsObservation] @go(M3U8Settings,[]M3U8SettingsObservation) -} - -#StandardHlsSettingsParameters: { - // +kubebuilder:validation:Optional - audioRenditionSets?: null | string @go(AudioRenditionSets,*string) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - m3u8Settings: [...#M3U8SettingsParameters] @go(M3U8Settings,[]M3U8SettingsParameters) -} - -#StaticKeySettingsInitParameters: { - keyProviderServer?: [...#KeyProviderServerInitParameters] @go(KeyProviderServer,[]KeyProviderServerInitParameters) - staticKeyValue?: null | string @go(StaticKeyValue,*string) -} - -#StaticKeySettingsObservation: { - keyProviderServer?: [...#KeyProviderServerObservation] @go(KeyProviderServer,[]KeyProviderServerObservation) - staticKeyValue?: null | string @go(StaticKeyValue,*string) -} - -#StaticKeySettingsParameters: { - // +kubebuilder:validation:Optional - keyProviderServer?: [...#KeyProviderServerParameters] @go(KeyProviderServer,[]KeyProviderServerParameters) - - // +kubebuilder:validation:Optional - staticKeyValue?: null | string @go(StaticKeyValue,*string) -} - -#TeletextSourceSettingsInitParameters: { - outputRectangle?: [...#OutputRectangleInitParameters] @go(OutputRectangle,[]OutputRectangleInitParameters) - pageNumber?: null | string @go(PageNumber,*string) -} - -#TeletextSourceSettingsObservation: { - outputRectangle?: [...#OutputRectangleObservation] @go(OutputRectangle,[]OutputRectangleObservation) - pageNumber?: null | string @go(PageNumber,*string) -} - -#TeletextSourceSettingsParameters: { - // +kubebuilder:validation:Optional - outputRectangle?: [...#OutputRectangleParameters] @go(OutputRectangle,[]OutputRectangleParameters) - - // +kubebuilder:validation:Optional - pageNumber?: null | string @go(PageNumber,*string) -} - -#TemporalFilterSettingsInitParameters: { - // Post filter sharpening. - postFilterSharpening?: null | string @go(PostFilterSharpening,*string) - - // Filter strength. - strength?: null | string @go(Strength,*string) -} - -#TemporalFilterSettingsObservation: { - // Post filter sharpening. - postFilterSharpening?: null | string @go(PostFilterSharpening,*string) - - // Filter strength. - strength?: null | string @go(Strength,*string) -} - -#TemporalFilterSettingsParameters: { - // Post filter sharpening. - // +kubebuilder:validation:Optional - postFilterSharpening?: null | string @go(PostFilterSharpening,*string) - - // Filter strength. - // +kubebuilder:validation:Optional - strength?: null | string @go(Strength,*string) -} - -#TimecodeBurninSettingsInitParameters: { - // Set a prefix on the burned in timecode. - prefix?: null | string @go(Prefix,*string) - - // Sets the size of the burned in timecode. - timecodeBurninFontSize?: null | string @go(TimecodeBurninFontSize,*string) - - // Sets the position of the burned in timecode. - timecodeBurninPosition?: null | string @go(TimecodeBurninPosition,*string) -} - -#TimecodeBurninSettingsObservation: { - // Set a prefix on the burned in timecode. - prefix?: null | string @go(Prefix,*string) - - // Sets the size of the burned in timecode. - timecodeBurninFontSize?: null | string @go(TimecodeBurninFontSize,*string) - - // Sets the position of the burned in timecode. - timecodeBurninPosition?: null | string @go(TimecodeBurninPosition,*string) -} - -#TimecodeBurninSettingsParameters: { - // Set a prefix on the burned in timecode. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Sets the size of the burned in timecode. - // +kubebuilder:validation:Optional - timecodeBurninFontSize?: null | string @go(TimecodeBurninFontSize,*string) - - // Sets the position of the burned in timecode. - // +kubebuilder:validation:Optional - timecodeBurninPosition?: null | string @go(TimecodeBurninPosition,*string) -} - -#TimecodeConfigInitParameters: { - // The source for the timecode that will be associated with the events outputs. - source?: null | string @go(Source,*string) - - // Threshold in frames beyond which output timecode is resynchronized to the input timecode. - syncThreshold?: null | float64 @go(SyncThreshold,*float64) -} - -#TimecodeConfigObservation: { - // The source for the timecode that will be associated with the events outputs. - source?: null | string @go(Source,*string) - - // Threshold in frames beyond which output timecode is resynchronized to the input timecode. - syncThreshold?: null | float64 @go(SyncThreshold,*float64) -} - -#TimecodeConfigParameters: { - // The source for the timecode that will be associated with the events outputs. - // +kubebuilder:validation:Optional - source?: null | string @go(Source,*string) - - // Threshold in frames beyond which output timecode is resynchronized to the input timecode. - // +kubebuilder:validation:Optional - syncThreshold?: null | float64 @go(SyncThreshold,*float64) -} - -#TrackInitParameters: { - track?: null | float64 @go(Track,*float64) -} - -#TrackObservation: { - track?: null | float64 @go(Track,*float64) -} - -#TrackParameters: { - // +kubebuilder:validation:Optional - track?: null | float64 @go(Track,*float64) -} - -#UDPGroupSettingsInitParameters: { - // Controls the behavior of the RTMP group if input becomes unavailable. - inputLossAction?: null | string @go(InputLossAction,*string) - - // Indicates ID3 frame that has the timecode. - timedMetadataId3Frame?: null | string @go(TimedMetadataId3Frame,*string) - timedMetadataId3Period?: null | float64 @go(TimedMetadataId3Period,*float64) -} - -#UDPGroupSettingsObservation: { - // Controls the behavior of the RTMP group if input becomes unavailable. - inputLossAction?: null | string @go(InputLossAction,*string) - - // Indicates ID3 frame that has the timecode. - timedMetadataId3Frame?: null | string @go(TimedMetadataId3Frame,*string) - timedMetadataId3Period?: null | float64 @go(TimedMetadataId3Period,*float64) -} - -#UDPGroupSettingsParameters: { - // Controls the behavior of the RTMP group if input becomes unavailable. - // +kubebuilder:validation:Optional - inputLossAction?: null | string @go(InputLossAction,*string) - - // Indicates ID3 frame that has the timecode. - // +kubebuilder:validation:Optional - timedMetadataId3Frame?: null | string @go(TimedMetadataId3Frame,*string) - - // +kubebuilder:validation:Optional - timedMetadataId3Period?: null | float64 @go(TimedMetadataId3Period,*float64) -} - -#UDPOutputSettingsContainerSettingsInitParameters: { - // M2ts Settings. See M2ts Settings for more details. - m2tsSettings?: [...#ContainerSettingsM2TsSettingsInitParameters] @go(M2TsSettings,[]ContainerSettingsM2TsSettingsInitParameters) -} - -#UDPOutputSettingsContainerSettingsObservation: { - // M2ts Settings. See M2ts Settings for more details. - m2tsSettings?: [...#ContainerSettingsM2TsSettingsObservation] @go(M2TsSettings,[]ContainerSettingsM2TsSettingsObservation) -} - -#UDPOutputSettingsContainerSettingsParameters: { - // M2ts Settings. See M2ts Settings for more details. - // +kubebuilder:validation:Optional - m2tsSettings?: [...#ContainerSettingsM2TsSettingsParameters] @go(M2TsSettings,[]ContainerSettingsM2TsSettingsParameters) -} - -#UDPOutputSettingsDestinationInitParameters: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#UDPOutputSettingsDestinationObservation: { - // Reference ID for the destination. - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#UDPOutputSettingsDestinationParameters: { - // Reference ID for the destination. - // +kubebuilder:validation:Optional - destinationRefId?: null | string @go(DestinationRefID,*string) -} - -#UDPOutputSettingsInitParameters: { - // UDP output buffering in milliseconds. - bufferMsec?: null | float64 @go(BufferMsec,*float64) - - // Settings specific to the container type of the file. See Container Settings for more details. - containerSettings?: [...#UDPOutputSettingsContainerSettingsInitParameters] @go(ContainerSettings,[]UDPOutputSettingsContainerSettingsInitParameters) - - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#UDPOutputSettingsDestinationInitParameters] @go(Destination,[]UDPOutputSettingsDestinationInitParameters) - - // Settings for output. See Output Settings for more details. - fecOutputSettings?: [...#FecOutputSettingsInitParameters] @go(FecOutputSettings,[]FecOutputSettingsInitParameters) -} - -#UDPOutputSettingsObservation: { - // UDP output buffering in milliseconds. - bufferMsec?: null | float64 @go(BufferMsec,*float64) - - // Settings specific to the container type of the file. See Container Settings for more details. - containerSettings?: [...#UDPOutputSettingsContainerSettingsObservation] @go(ContainerSettings,[]UDPOutputSettingsContainerSettingsObservation) - - // A director and base filename where archive files should be written. See Destination for more details. - destination?: [...#UDPOutputSettingsDestinationObservation] @go(Destination,[]UDPOutputSettingsDestinationObservation) - - // Settings for output. See Output Settings for more details. - fecOutputSettings?: [...#FecOutputSettingsObservation] @go(FecOutputSettings,[]FecOutputSettingsObservation) -} - -#UDPOutputSettingsParameters: { - // UDP output buffering in milliseconds. - // +kubebuilder:validation:Optional - bufferMsec?: null | float64 @go(BufferMsec,*float64) - - // Settings specific to the container type of the file. See Container Settings for more details. - // +kubebuilder:validation:Optional - containerSettings: [...#UDPOutputSettingsContainerSettingsParameters] @go(ContainerSettings,[]UDPOutputSettingsContainerSettingsParameters) - - // A director and base filename where archive files should be written. See Destination for more details. - // +kubebuilder:validation:Optional - destination: [...#UDPOutputSettingsDestinationParameters] @go(Destination,[]UDPOutputSettingsDestinationParameters) - - // Settings for output. See Output Settings for more details. - // +kubebuilder:validation:Optional - fecOutputSettings?: [...#FecOutputSettingsParameters] @go(FecOutputSettings,[]FecOutputSettingsParameters) -} - -#VPCInitParameters: { - publicAddressAllocationIds?: [...null | string] @go(PublicAddressAllocationIds,[]*string) - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#VPCObservation: { - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - publicAddressAllocationIds?: [...null | string] @go(PublicAddressAllocationIds,[]*string) - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#VPCParameters: { - // +kubebuilder:validation:Optional - publicAddressAllocationIds: [...null | string] @go(PublicAddressAllocationIds,[]*string) - - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - subnetIds: [...null | string] @go(SubnetIds,[]*string) -} - -#VideoBlackSettingsInitParameters: { - blackDetectThreshold?: null | float64 @go(BlackDetectThreshold,*float64) - videoBlackThresholdMsec?: null | float64 @go(VideoBlackThresholdMsec,*float64) -} - -#VideoBlackSettingsObservation: { - blackDetectThreshold?: null | float64 @go(BlackDetectThreshold,*float64) - videoBlackThresholdMsec?: null | float64 @go(VideoBlackThresholdMsec,*float64) -} - -#VideoBlackSettingsParameters: { - // +kubebuilder:validation:Optional - blackDetectThreshold?: null | float64 @go(BlackDetectThreshold,*float64) - - // +kubebuilder:validation:Optional - videoBlackThresholdMsec?: null | float64 @go(VideoBlackThresholdMsec,*float64) -} - -#VideoDescriptionsCodecSettingsInitParameters: { - // Frame capture settings. See Frame Capture Settings for more details. - frameCaptureSettings?: [...#FrameCaptureSettingsInitParameters] @go(FrameCaptureSettings,[]FrameCaptureSettingsInitParameters) - - // H264 settings. See H264 Settings for more details. - h264Settings?: [...#H264SettingsInitParameters] @go(H264Settings,[]H264SettingsInitParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - h265Settings?: [...#H265SettingsInitParameters] @go(H265Settings,[]H265SettingsInitParameters) -} - -#VideoDescriptionsCodecSettingsObservation: { - // Frame capture settings. See Frame Capture Settings for more details. - frameCaptureSettings?: [...#FrameCaptureSettingsObservation] @go(FrameCaptureSettings,[]FrameCaptureSettingsObservation) - - // H264 settings. See H264 Settings for more details. - h264Settings?: [...#H264SettingsObservation] @go(H264Settings,[]H264SettingsObservation) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - h265Settings?: [...#H265SettingsObservation] @go(H265Settings,[]H265SettingsObservation) -} - -#VideoDescriptionsCodecSettingsParameters: { - // Frame capture settings. See Frame Capture Settings for more details. - // +kubebuilder:validation:Optional - frameCaptureSettings?: [...#FrameCaptureSettingsParameters] @go(FrameCaptureSettings,[]FrameCaptureSettingsParameters) - - // H264 settings. See H264 Settings for more details. - // +kubebuilder:validation:Optional - h264Settings?: [...#H264SettingsParameters] @go(H264Settings,[]H264SettingsParameters) - - // Destination settings for a standard output; one destination for each redundant encoder. See Settings for more details. - // +kubebuilder:validation:Optional - h265Settings?: [...#H265SettingsParameters] @go(H265Settings,[]H265SettingsParameters) -} - -#VideoDescriptionsInitParameters: { - // Audio codec settings. See Audio Codec Settings for more details. - codecSettings?: [...#VideoDescriptionsCodecSettingsInitParameters] @go(CodecSettings,[]VideoDescriptionsCodecSettingsInitParameters) - - // Output video height in pixels. - height?: null | float64 @go(Height,*float64) - - // Name of the Channel. - name?: null | string @go(Name,*string) - - // Indicate how to respond to the AFD values that might be in the input video. - respondToAfd?: null | string @go(RespondToAfd,*string) - - // Behavior on how to scale. - scalingBehavior?: null | string @go(ScalingBehavior,*string) - - // Changes the strength of the anti-alias filter used for scaling. - sharpness?: null | float64 @go(Sharpness,*float64) - - // Output video width in pixels. - width?: null | float64 @go(Width,*float64) -} - -#VideoDescriptionsObservation: { - // Audio codec settings. See Audio Codec Settings for more details. - codecSettings?: [...#VideoDescriptionsCodecSettingsObservation] @go(CodecSettings,[]VideoDescriptionsCodecSettingsObservation) - - // Output video height in pixels. - height?: null | float64 @go(Height,*float64) - - // Name of the Channel. - name?: null | string @go(Name,*string) - - // Indicate how to respond to the AFD values that might be in the input video. - respondToAfd?: null | string @go(RespondToAfd,*string) - - // Behavior on how to scale. - scalingBehavior?: null | string @go(ScalingBehavior,*string) - - // Changes the strength of the anti-alias filter used for scaling. - sharpness?: null | float64 @go(Sharpness,*float64) - - // Output video width in pixels. - width?: null | float64 @go(Width,*float64) -} - -#VideoDescriptionsParameters: { - // Audio codec settings. See Audio Codec Settings for more details. - // +kubebuilder:validation:Optional - codecSettings?: [...#VideoDescriptionsCodecSettingsParameters] @go(CodecSettings,[]VideoDescriptionsCodecSettingsParameters) - - // Output video height in pixels. - // +kubebuilder:validation:Optional - height?: null | float64 @go(Height,*float64) - - // Name of the Channel. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Indicate how to respond to the AFD values that might be in the input video. - // +kubebuilder:validation:Optional - respondToAfd?: null | string @go(RespondToAfd,*string) - - // Behavior on how to scale. - // +kubebuilder:validation:Optional - scalingBehavior?: null | string @go(ScalingBehavior,*string) - - // Changes the strength of the anti-alias filter used for scaling. - // +kubebuilder:validation:Optional - sharpness?: null | float64 @go(Sharpness,*float64) - - // Output video width in pixels. - // +kubebuilder:validation:Optional - width?: null | float64 @go(Width,*float64) -} - -#VideoSelectorInitParameters: { - colorSpace?: null | string @go(ColorSpace,*string) - colorSpaceUsage?: null | string @go(ColorSpaceUsage,*string) -} - -#VideoSelectorObservation: { - colorSpace?: null | string @go(ColorSpace,*string) - colorSpaceUsage?: null | string @go(ColorSpaceUsage,*string) -} - -#VideoSelectorParameters: { - // +kubebuilder:validation:Optional - colorSpace?: null | string @go(ColorSpace,*string) - - // +kubebuilder:validation:Optional - colorSpaceUsage?: null | string @go(ColorSpaceUsage,*string) -} - -#WavSettingsInitParameters: { - bitDepth?: null | float64 @go(BitDepth,*float64) - - // Mono, Stereo, or 5.1 channel layout. - codingMode?: null | string @go(CodingMode,*string) - - // Sample rate in Hz. - sampleRate?: null | float64 @go(SampleRate,*float64) -} - -#WavSettingsObservation: { - bitDepth?: null | float64 @go(BitDepth,*float64) - - // Mono, Stereo, or 5.1 channel layout. - codingMode?: null | string @go(CodingMode,*string) - - // Sample rate in Hz. - sampleRate?: null | float64 @go(SampleRate,*float64) -} - -#WavSettingsParameters: { - // +kubebuilder:validation:Optional - bitDepth?: null | float64 @go(BitDepth,*float64) - - // Mono, Stereo, or 5.1 channel layout. - // +kubebuilder:validation:Optional - codingMode?: null | string @go(CodingMode,*string) - - // Sample rate in Hz. - // +kubebuilder:validation:Optional - sampleRate?: null | float64 @go(SampleRate,*float64) -} - -// ChannelSpec defines the desired state of Channel -#ChannelSpec: { - v1.#ResourceSpec - forProvider: #ChannelParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ChannelInitParameters @go(InitProvider) -} - -// ChannelStatus defines the observed state of Channel. -#ChannelStatus: { - v1.#ResourceStatus - atProvider?: #ChannelObservation @go(AtProvider) -} - -// Channel is the Schema for the Channels API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Channel: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.channelClass) || (has(self.initProvider) && has(self.initProvider.channelClass))",message="spec.forProvider.channelClass is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destinations) || (has(self.initProvider) && has(self.initProvider.destinations))",message="spec.forProvider.destinations is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.encoderSettings) || (has(self.initProvider) && has(self.initProvider.encoderSettings))",message="spec.forProvider.encoderSettings is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.inputAttachments) || (has(self.initProvider) && has(self.initProvider.inputAttachments))",message="spec.forProvider.inputAttachments is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.inputSpecification) || (has(self.initProvider) && has(self.initProvider.inputSpecification))",message="spec.forProvider.inputSpecification is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ChannelSpec @go(Spec) - status?: #ChannelStatus @go(Status) -} - -// ChannelList contains a list of Channels -#ChannelList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Channel] @go(Items,[]Channel) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 5d4ee05..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/medialive/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=medialive.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "medialive.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_input_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_input_types_go_gen.cue deleted file mode 100644 index 9b7ca3a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_input_types_go_gen.cue +++ /dev/null @@ -1,305 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/medialive/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InputDestinationsInitParameters: { - // A unique name for the location the RTMP stream is being pushed to. - streamName?: null | string @go(StreamName,*string) -} - -#InputDestinationsObservation: { - // A unique name for the location the RTMP stream is being pushed to. - streamName?: null | string @go(StreamName,*string) -} - -#InputDestinationsParameters: { - // A unique name for the location the RTMP stream is being pushed to. - // +kubebuilder:validation:Optional - streamName?: null | string @go(StreamName,*string) -} - -#InputDevicesInitParameters: { - // The unique ID for the device. - id?: null | string @go(ID,*string) -} - -#InputDevicesObservation: { - // The unique ID for the device. - id?: null | string @go(ID,*string) -} - -#InputDevicesParameters: { - // The unique ID for the device. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) -} - -#InputInitParameters: { - // Destination settings for PUSH type inputs. See Destinations for more details. - destinations?: [...#InputDestinationsInitParameters] @go(Destinations,[]InputDestinationsInitParameters) - - // Settings for the devices. See Input Devices for more details. - inputDevices?: [...#InputDevicesInitParameters] @go(InputDevices,[]InputDevicesInitParameters) - - // List of input security groups. - inputSecurityGroups?: [...null | string] @go(InputSecurityGroups,[]*string) - - // A list of the MediaConnect Flows. See Media Connect Flows for more details. - mediaConnectFlows?: [...#MediaConnectFlowsInitParameters] @go(MediaConnectFlows,[]MediaConnectFlowsInitParameters) - - // Name of the input. - name?: null | string @go(Name,*string) - - // The source URLs for a PULL-type input. See Sources for more details. - sources?: [...#SourcesInitParameters] @go(Sources,[]SourcesInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The different types of inputs that AWS Elemental MediaLive supports. - type?: null | string @go(Type,*string) - - // Settings for a private VPC Input. See VPC for more details. - vpc?: [...#InputVPCInitParameters] @go(VPC,[]InputVPCInitParameters) -} - -#InputObservation: { - // ARN of the Input. - arn?: null | string @go(Arn,*string) - - // Channels attached to Input. - attachedChannels?: [...null | string] @go(AttachedChannels,[]*string) - - // Destination settings for PUSH type inputs. See Destinations for more details. - destinations?: [...#InputDestinationsObservation] @go(Destinations,[]InputDestinationsObservation) - - // The unique ID for the device. - id?: null | string @go(ID,*string) - - // The input class. - inputClass?: null | string @go(InputClass,*string) - - // Settings for the devices. See Input Devices for more details. - inputDevices?: [...#InputDevicesObservation] @go(InputDevices,[]InputDevicesObservation) - - // A list of IDs for all Inputs which are partners of this one. - inputPartnerIds?: [...null | string] @go(InputPartnerIds,[]*string) - - // List of input security groups. - inputSecurityGroups?: [...null | string] @go(InputSecurityGroups,[]*string) - - // Source type of the input. - inputSourceType?: null | string @go(InputSourceType,*string) - - // A list of the MediaConnect Flows. See Media Connect Flows for more details. - mediaConnectFlows?: [...#MediaConnectFlowsObservation] @go(MediaConnectFlows,[]MediaConnectFlowsObservation) - - // Name of the input. - name?: null | string @go(Name,*string) - - // The ARN of the role this input assumes during and after creation. - roleArn?: null | string @go(RoleArn,*string) - - // The source URLs for a PULL-type input. See Sources for more details. - sources?: [...#SourcesObservation] @go(Sources,[]SourcesObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The different types of inputs that AWS Elemental MediaLive supports. - type?: null | string @go(Type,*string) - - // Settings for a private VPC Input. See VPC for more details. - vpc?: [...#InputVPCObservation] @go(VPC,[]InputVPCObservation) -} - -#InputParameters: { - // Destination settings for PUSH type inputs. See Destinations for more details. - // +kubebuilder:validation:Optional - destinations?: [...#InputDestinationsParameters] @go(Destinations,[]InputDestinationsParameters) - - // Settings for the devices. See Input Devices for more details. - // +kubebuilder:validation:Optional - inputDevices?: [...#InputDevicesParameters] @go(InputDevices,[]InputDevicesParameters) - - // List of input security groups. - // +kubebuilder:validation:Optional - inputSecurityGroups?: [...null | string] @go(InputSecurityGroups,[]*string) - - // A list of the MediaConnect Flows. See Media Connect Flows for more details. - // +kubebuilder:validation:Optional - mediaConnectFlows?: [...#MediaConnectFlowsParameters] @go(MediaConnectFlows,[]MediaConnectFlowsParameters) - - // Name of the input. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of the role this input assumes during and after creation. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The source URLs for a PULL-type input. See Sources for more details. - // +kubebuilder:validation:Optional - sources?: [...#SourcesParameters] @go(Sources,[]SourcesParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The different types of inputs that AWS Elemental MediaLive supports. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // Settings for a private VPC Input. See VPC for more details. - // +kubebuilder:validation:Optional - vpc?: [...#InputVPCParameters] @go(VPC,[]InputVPCParameters) -} - -#InputVPCInitParameters: { - // A list of up to 5 EC2 VPC security group IDs to attach to the Input. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of 2 VPC subnet IDs from the same VPC. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#InputVPCObservation: { - // A list of up to 5 EC2 VPC security group IDs to attach to the Input. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of 2 VPC subnet IDs from the same VPC. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#InputVPCParameters: { - // A list of up to 5 EC2 VPC security group IDs to attach to the Input. - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of 2 VPC subnet IDs from the same VPC. - // +kubebuilder:validation:Optional - subnetIds: [...null | string] @go(SubnetIds,[]*string) -} - -#MediaConnectFlowsInitParameters: { - // The ARN of the MediaConnect Flow - flowArn?: null | string @go(FlowArn,*string) -} - -#MediaConnectFlowsObservation: { - // The ARN of the MediaConnect Flow - flowArn?: null | string @go(FlowArn,*string) -} - -#MediaConnectFlowsParameters: { - // The ARN of the MediaConnect Flow - // +kubebuilder:validation:Optional - flowArn?: null | string @go(FlowArn,*string) -} - -#SourcesInitParameters: { - // The key used to extract the password from EC2 Parameter store. - passwordParam?: null | string @go(PasswordParam,*string) - - // The URL where the stream is pulled from. - url?: null | string @go(URL,*string) - - // The username for the input source. - username?: null | string @go(Username,*string) -} - -#SourcesObservation: { - // The key used to extract the password from EC2 Parameter store. - passwordParam?: null | string @go(PasswordParam,*string) - - // The URL where the stream is pulled from. - url?: null | string @go(URL,*string) - - // The username for the input source. - username?: null | string @go(Username,*string) -} - -#SourcesParameters: { - // The key used to extract the password from EC2 Parameter store. - // +kubebuilder:validation:Optional - passwordParam?: null | string @go(PasswordParam,*string) - - // The URL where the stream is pulled from. - // +kubebuilder:validation:Optional - url?: null | string @go(URL,*string) - - // The username for the input source. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -// InputSpec defines the desired state of Input -#InputSpec: { - v1.#ResourceSpec - forProvider: #InputParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InputInitParameters @go(InitProvider) -} - -// InputStatus defines the observed state of Input. -#InputStatus: { - v1.#ResourceStatus - atProvider?: #InputObservation @go(AtProvider) -} - -// Input is the Schema for the Inputs API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Input: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #InputSpec @go(Spec) - status?: #InputStatus @go(Status) -} - -// InputList contains a list of Inputs -#InputList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Input] @go(Items,[]Input) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_inputsecuritygroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_inputsecuritygroup_types_go_gen.cue deleted file mode 100644 index 6a47099..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_inputsecuritygroup_types_go_gen.cue +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/medialive/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InputSecurityGroupInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whitelist rules. See Whitelist Rules for more details. - whitelistRules?: [...#WhitelistRulesInitParameters] @go(WhitelistRules,[]WhitelistRulesInitParameters) -} - -#InputSecurityGroupObservation: { - // ARN of the InputSecurityGroup. - arn?: null | string @go(Arn,*string) - - // InputSecurityGroup Id. - id?: null | string @go(ID,*string) - - // The list of inputs currently using this InputSecurityGroup. - inputs?: [...null | string] @go(Inputs,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whitelist rules. See Whitelist Rules for more details. - whitelistRules?: [...#WhitelistRulesObservation] @go(WhitelistRules,[]WhitelistRulesObservation) -} - -#InputSecurityGroupParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whitelist rules. See Whitelist Rules for more details. - // +kubebuilder:validation:Optional - whitelistRules?: [...#WhitelistRulesParameters] @go(WhitelistRules,[]WhitelistRulesParameters) -} - -#WhitelistRulesInitParameters: { - // The IPv4 CIDR that's whitelisted. - cidr?: null | string @go(Cidr,*string) -} - -#WhitelistRulesObservation: { - // The IPv4 CIDR that's whitelisted. - cidr?: null | string @go(Cidr,*string) -} - -#WhitelistRulesParameters: { - // The IPv4 CIDR that's whitelisted. - // +kubebuilder:validation:Optional - cidr?: null | string @go(Cidr,*string) -} - -// InputSecurityGroupSpec defines the desired state of InputSecurityGroup -#InputSecurityGroupSpec: { - v1.#ResourceSpec - forProvider: #InputSecurityGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InputSecurityGroupInitParameters @go(InitProvider) -} - -// InputSecurityGroupStatus defines the observed state of InputSecurityGroup. -#InputSecurityGroupStatus: { - v1.#ResourceStatus - atProvider?: #InputSecurityGroupObservation @go(AtProvider) -} - -// InputSecurityGroup is the Schema for the InputSecurityGroups API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#InputSecurityGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.whitelistRules) || (has(self.initProvider) && has(self.initProvider.whitelistRules))",message="spec.forProvider.whitelistRules is a required parameter" - spec: #InputSecurityGroupSpec @go(Spec) - status?: #InputSecurityGroupStatus @go(Status) -} - -// InputSecurityGroupList contains a list of InputSecurityGroups -#InputSecurityGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#InputSecurityGroup] @go(Items,[]InputSecurityGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_multiplex_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_multiplex_types_go_gen.cue deleted file mode 100644 index 1a1cb13..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/medialive/v1beta1/zz_multiplex_types_go_gen.cue +++ /dev/null @@ -1,170 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/medialive/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MultiplexInitParameters: { - // A list of availability zones. You must specify exactly two. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Multiplex settings. See Multiplex Settings for more details. - multiplexSettings?: [...#MultiplexMultiplexSettingsInitParameters] @go(MultiplexSettings,[]MultiplexMultiplexSettingsInitParameters) - - // name of Multiplex. - name?: null | string @go(Name,*string) - - // Whether to start the Multiplex. Defaults to false. - startMultiplex?: null | bool @go(StartMultiplex,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#MultiplexMultiplexSettingsInitParameters: { - // Maximum video buffer delay. - maximumVideoBufferDelayMilliseconds?: null | float64 @go(MaximumVideoBufferDelayMilliseconds,*float64) - - // Transport stream bit rate. - transportStreamBitrate?: null | float64 @go(TransportStreamBitrate,*float64) - - // Unique ID for each multiplex. - transportStreamId?: null | float64 @go(TransportStreamID,*float64) - - // Transport stream reserved bit rate. - transportStreamReservedBitrate?: null | float64 @go(TransportStreamReservedBitrate,*float64) -} - -#MultiplexMultiplexSettingsObservation: { - // Maximum video buffer delay. - maximumVideoBufferDelayMilliseconds?: null | float64 @go(MaximumVideoBufferDelayMilliseconds,*float64) - - // Transport stream bit rate. - transportStreamBitrate?: null | float64 @go(TransportStreamBitrate,*float64) - - // Unique ID for each multiplex. - transportStreamId?: null | float64 @go(TransportStreamID,*float64) - - // Transport stream reserved bit rate. - transportStreamReservedBitrate?: null | float64 @go(TransportStreamReservedBitrate,*float64) -} - -#MultiplexMultiplexSettingsParameters: { - // Maximum video buffer delay. - // +kubebuilder:validation:Optional - maximumVideoBufferDelayMilliseconds?: null | float64 @go(MaximumVideoBufferDelayMilliseconds,*float64) - - // Transport stream bit rate. - // +kubebuilder:validation:Optional - transportStreamBitrate?: null | float64 @go(TransportStreamBitrate,*float64) - - // Unique ID for each multiplex. - // +kubebuilder:validation:Optional - transportStreamId?: null | float64 @go(TransportStreamID,*float64) - - // Transport stream reserved bit rate. - // +kubebuilder:validation:Optional - transportStreamReservedBitrate?: null | float64 @go(TransportStreamReservedBitrate,*float64) -} - -#MultiplexObservation: { - // ARN of the Multiplex. - arn?: null | string @go(Arn,*string) - - // A list of availability zones. You must specify exactly two. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - id?: null | string @go(ID,*string) - - // Multiplex settings. See Multiplex Settings for more details. - multiplexSettings?: [...#MultiplexMultiplexSettingsObservation] @go(MultiplexSettings,[]MultiplexMultiplexSettingsObservation) - - // name of Multiplex. - name?: null | string @go(Name,*string) - - // Whether to start the Multiplex. Defaults to false. - startMultiplex?: null | bool @go(StartMultiplex,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#MultiplexParameters: { - // A list of availability zones. You must specify exactly two. - // +kubebuilder:validation:Optional - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // Multiplex settings. See Multiplex Settings for more details. - // +kubebuilder:validation:Optional - multiplexSettings?: [...#MultiplexMultiplexSettingsParameters] @go(MultiplexSettings,[]MultiplexMultiplexSettingsParameters) - - // name of Multiplex. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Whether to start the Multiplex. Defaults to false. - // +kubebuilder:validation:Optional - startMultiplex?: null | bool @go(StartMultiplex,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// MultiplexSpec defines the desired state of Multiplex -#MultiplexSpec: { - v1.#ResourceSpec - forProvider: #MultiplexParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MultiplexInitParameters @go(InitProvider) -} - -// MultiplexStatus defines the observed state of Multiplex. -#MultiplexStatus: { - v1.#ResourceStatus - atProvider?: #MultiplexObservation @go(AtProvider) -} - -// Multiplex is the Schema for the Multiplexs API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws},path=multiplices -#Multiplex: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.availabilityZones) || (has(self.initProvider) && has(self.initProvider.availabilityZones))",message="spec.forProvider.availabilityZones is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #MultiplexSpec @go(Spec) - status?: #MultiplexStatus @go(Status) -} - -// MultiplexList contains a list of Multiplexs -#MultiplexList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Multiplex] @go(Items,[]Multiplex) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediapackage/v1beta1/zz_channel_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/mediapackage/v1beta1/zz_channel_types_go_gen.cue deleted file mode 100644 index 495a7e0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediapackage/v1beta1/zz_channel_types_go_gen.cue +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/mediapackage/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ChannelInitParameters: { - // A unique identifier describing the channel - channelId?: null | string @go(ChannelID,*string) - - // A description of the channel - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ChannelObservation: { - // The ARN of the channel - arn?: null | string @go(Arn,*string) - - // A unique identifier describing the channel - channelId?: null | string @go(ChannelID,*string) - - // A description of the channel - description?: null | string @go(Description,*string) - - // A single item list of HLS ingest information - hlsIngest?: [...#HlsIngestObservation] @go(HlsIngest,[]HlsIngestObservation) - - // The same as channel_id - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ChannelParameters: { - // A unique identifier describing the channel - // +kubebuilder:validation:Optional - channelId?: null | string @go(ChannelID,*string) - - // A description of the channel - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#HlsIngestInitParameters: { -} - -#HlsIngestObservation: { - // A list of the ingest endpoints - ingestEndpoints?: [...#IngestEndpointsObservation] @go(IngestEndpoints,[]IngestEndpointsObservation) -} - -#HlsIngestParameters: { -} - -#IngestEndpointsInitParameters: { -} - -#IngestEndpointsObservation: { - // The password - password?: null | string @go(Password,*string) - - // The URL - url?: null | string @go(URL,*string) - - // The username - username?: null | string @go(Username,*string) -} - -#IngestEndpointsParameters: { -} - -// ChannelSpec defines the desired state of Channel -#ChannelSpec: { - v1.#ResourceSpec - forProvider: #ChannelParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ChannelInitParameters @go(InitProvider) -} - -// ChannelStatus defines the observed state of Channel. -#ChannelStatus: { - v1.#ResourceStatus - atProvider?: #ChannelObservation @go(AtProvider) -} - -// Channel is the Schema for the Channels API. Provides an AWS Elemental MediaPackage Channel. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Channel: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.channelId) || (has(self.initProvider) && has(self.initProvider.channelId))",message="spec.forProvider.channelId is a required parameter" - spec: #ChannelSpec @go(Spec) - status?: #ChannelStatus @go(Status) -} - -// ChannelList contains a list of Channels -#ChannelList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Channel] @go(Items,[]Channel) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediapackage/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/mediapackage/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 8ba8f91..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediapackage/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/mediapackage/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=mediapackage.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "mediapackage.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediastore/v1beta1/zz_container_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/mediastore/v1beta1/zz_container_types_go_gen.cue deleted file mode 100644 index 4c2ab52..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediastore/v1beta1/zz_container_types_go_gen.cue +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/mediastore/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ContainerInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ContainerObservation: { - // The ARN of the container. - arn?: null | string @go(Arn,*string) - - // The DNS endpoint of the container. - endpoint?: null | string @go(Endpoint,*string) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ContainerParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ContainerSpec defines the desired state of Container -#ContainerSpec: { - v1.#ResourceSpec - forProvider: #ContainerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ContainerInitParameters @go(InitProvider) -} - -// ContainerStatus defines the observed state of Container. -#ContainerStatus: { - v1.#ResourceStatus - atProvider?: #ContainerObservation @go(AtProvider) -} - -// Container is the Schema for the Containers API. Provides a MediaStore Container. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Container: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ContainerSpec @go(Spec) - status?: #ContainerStatus @go(Status) -} - -// ContainerList contains a list of Containers -#ContainerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Container] @go(Items,[]Container) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediastore/v1beta1/zz_containerpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/mediastore/v1beta1/zz_containerpolicy_types_go_gen.cue deleted file mode 100644 index e1cba6c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediastore/v1beta1/zz_containerpolicy_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/mediastore/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ContainerPolicyInitParameters: { - // The contents of the policy. - policy?: null | string @go(Policy,*string) -} - -#ContainerPolicyObservation: { - // The name of the container. - containerName?: null | string @go(ContainerName,*string) - id?: null | string @go(ID,*string) - - // The contents of the policy. - policy?: null | string @go(Policy,*string) -} - -#ContainerPolicyParameters: { - // The name of the container. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/mediastore/v1beta1.Container - // +kubebuilder:validation:Optional - containerName?: null | string @go(ContainerName,*string) - - // Reference to a Container in mediastore to populate containerName. - // +kubebuilder:validation:Optional - containerNameRef?: null | v1.#Reference @go(ContainerNameRef,*v1.Reference) - - // Selector for a Container in mediastore to populate containerName. - // +kubebuilder:validation:Optional - containerNameSelector?: null | v1.#Selector @go(ContainerNameSelector,*v1.Selector) - - // The contents of the policy. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ContainerPolicySpec defines the desired state of ContainerPolicy -#ContainerPolicySpec: { - v1.#ResourceSpec - forProvider: #ContainerPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ContainerPolicyInitParameters @go(InitProvider) -} - -// ContainerPolicyStatus defines the observed state of ContainerPolicy. -#ContainerPolicyStatus: { - v1.#ResourceStatus - atProvider?: #ContainerPolicyObservation @go(AtProvider) -} - -// ContainerPolicy is the Schema for the ContainerPolicys API. Provides a MediaStore Container Policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ContainerPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #ContainerPolicySpec @go(Spec) - status?: #ContainerPolicyStatus @go(Status) -} - -// ContainerPolicyList contains a list of ContainerPolicys -#ContainerPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ContainerPolicy] @go(Items,[]ContainerPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediastore/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/mediastore/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 9747d33..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/mediastore/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/mediastore/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=mediastore.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "mediastore.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_acl_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_acl_types_go_gen.cue deleted file mode 100644 index 13ee677..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_acl_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/memorydb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ACLInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Set of MemoryDB user names to be included in this ACL. - userNames?: [...null | string] @go(UserNames,[]*string) -} - -#ACLObservation: { - // The ARN of the ACL. - arn?: null | string @go(Arn,*string) - - // Same as name. - id?: null | string @go(ID,*string) - - // The minimum engine version supported by the ACL. - minimumEngineVersion?: null | string @go(MinimumEngineVersion,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Set of MemoryDB user names to be included in this ACL. - userNames?: [...null | string] @go(UserNames,[]*string) -} - -#ACLParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Set of MemoryDB user names to be included in this ACL. - // +kubebuilder:validation:Optional - userNames?: [...null | string] @go(UserNames,[]*string) -} - -// ACLSpec defines the desired state of ACL -#ACLSpec: { - v1.#ResourceSpec - forProvider: #ACLParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ACLInitParameters @go(InitProvider) -} - -// ACLStatus defines the observed state of ACL. -#ACLStatus: { - v1.#ResourceStatus - atProvider?: #ACLObservation @go(AtProvider) -} - -// ACL is the Schema for the ACLs API. Provides a MemoryDB ACL. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ACL: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ACLSpec @go(Spec) - status?: #ACLStatus @go(Status) -} - -// ACLList contains a list of ACLs -#ACLList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ACL] @go(Items,[]ACL) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_cluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_cluster_types_go_gen.cue deleted file mode 100644 index 39bfd8f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_cluster_types_go_gen.cue +++ /dev/null @@ -1,392 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/memorydb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterEndpointInitParameters: { -} - -#ClusterEndpointObservation: { - // DNS hostname of the cluster configuration endpoint. - address?: null | string @go(Address,*string) - - // The port number on which each of the nodes accepts connections. Defaults to 6379. - port?: null | float64 @go(Port,*float64) -} - -#ClusterEndpointParameters: { -} - -#ClusterInitParameters: { - // The name of the Access Control List to associate with the cluster. - aclName?: null | string @go(ACLName,*string) - - // When set to true, the cluster will automatically receive minor engine version upgrades after launch. Defaults to true. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering. - dataTiering?: null | bool @go(DataTiering,*bool) - - // Description for the cluster. - description?: null | string @go(Description,*string) - - // Version number of the Redis engine to be used for the cluster. Downgrades are not supported. - engineVersion?: null | string @go(EngineVersion,*string) - - // Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made. - finalSnapshotName?: null | string @go(FinalSnapshotName,*string) - - // Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Example: sun:23:00-mon:01:30. - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling. - nodeType?: null | string @go(NodeType,*string) - - // The number of replicas to apply to each shard, up to a maximum of 5. Defaults to 1 (i.e. 2 nodes per shard). - numReplicasPerShard?: null | float64 @go(NumReplicasPerShard,*float64) - - // The number of shards in the cluster. Defaults to 1. - numShards?: null | float64 @go(NumShards,*float64) - - // The name of the parameter group associated with the cluster. - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // The port number on which each of the nodes accepts connections. Defaults to 6379. - port?: null | float64 @go(Port,*float64) - - // List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas. - snapshotArns?: [...null | string] @go(SnapshotArns,[]*string) - - // The name of a snapshot from which to restore data into the new cluster. - snapshotName?: null | string @go(SnapshotName,*string) - - // The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to 0, automatic backups are disabled. Defaults to 0. - snapshotRetentionLimit?: null | float64 @go(SnapshotRetentionLimit,*float64) - - // The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: 05:00-09:00. - snapshotWindow?: null | string @go(SnapshotWindow,*string) - - // ARN of the SNS topic to which cluster notifications are sent. - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // A flag to enable in-transit encryption on the cluster. When set to false, the acl_name must be open-access. Defaults to true. - tlsEnabled?: null | bool @go(TLSEnabled,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterObservation: { - // The name of the Access Control List to associate with the cluster. - aclName?: null | string @go(ACLName,*string) - - // The ARN of the cluster. - arn?: null | string @go(Arn,*string) - - // When set to true, the cluster will automatically receive minor engine version upgrades after launch. Defaults to true. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - clusterEndpoint?: [...#ClusterEndpointObservation] @go(ClusterEndpoint,[]ClusterEndpointObservation) - - // Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering. - dataTiering?: null | bool @go(DataTiering,*bool) - - // Description for the cluster. - description?: null | string @go(Description,*string) - - // Patch version number of the Redis engine used by the cluster. - enginePatchVersion?: null | string @go(EnginePatchVersion,*string) - - // Version number of the Redis engine to be used for the cluster. Downgrades are not supported. - engineVersion?: null | string @go(EngineVersion,*string) - - // Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made. - finalSnapshotName?: null | string @go(FinalSnapshotName,*string) - - // Same as name. - id?: null | string @go(ID,*string) - - // ARN of the KMS key used to encrypt the cluster at rest. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Example: sun:23:00-mon:01:30. - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling. - nodeType?: null | string @go(NodeType,*string) - - // The number of replicas to apply to each shard, up to a maximum of 5. Defaults to 1 (i.e. 2 nodes per shard). - numReplicasPerShard?: null | float64 @go(NumReplicasPerShard,*float64) - - // The number of shards in the cluster. Defaults to 1. - numShards?: null | float64 @go(NumShards,*float64) - - // The name of the parameter group associated with the cluster. - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // The port number on which each of the nodes accepts connections. Defaults to 6379. - port?: null | float64 @go(Port,*float64) - - // Set of VPC Security Group ID-s to associate with this cluster. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Set of shards in this cluster. - shards?: [...#ShardsObservation] @go(Shards,[]ShardsObservation) - - // List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas. - snapshotArns?: [...null | string] @go(SnapshotArns,[]*string) - - // The name of a snapshot from which to restore data into the new cluster. - snapshotName?: null | string @go(SnapshotName,*string) - - // The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to 0, automatic backups are disabled. Defaults to 0. - snapshotRetentionLimit?: null | float64 @go(SnapshotRetentionLimit,*float64) - - // The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: 05:00-09:00. - snapshotWindow?: null | string @go(SnapshotWindow,*string) - - // ARN of the SNS topic to which cluster notifications are sent. - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets. - subnetGroupName?: null | string @go(SubnetGroupName,*string) - - // A flag to enable in-transit encryption on the cluster. When set to false, the acl_name must be open-access. Defaults to true. - tlsEnabled?: null | bool @go(TLSEnabled,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ClusterParameters: { - // The name of the Access Control List to associate with the cluster. - // +kubebuilder:validation:Optional - aclName?: null | string @go(ACLName,*string) - - // When set to true, the cluster will automatically receive minor engine version upgrades after launch. Defaults to true. - // +kubebuilder:validation:Optional - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering. - // +kubebuilder:validation:Optional - dataTiering?: null | bool @go(DataTiering,*bool) - - // Description for the cluster. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Version number of the Redis engine to be used for the cluster. Downgrades are not supported. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made. - // +kubebuilder:validation:Optional - finalSnapshotName?: null | string @go(FinalSnapshotName,*string) - - // ARN of the KMS key used to encrypt the cluster at rest. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) - - // Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Example: sun:23:00-mon:01:30. - // +kubebuilder:validation:Optional - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling. - // +kubebuilder:validation:Optional - nodeType?: null | string @go(NodeType,*string) - - // The number of replicas to apply to each shard, up to a maximum of 5. Defaults to 1 (i.e. 2 nodes per shard). - // +kubebuilder:validation:Optional - numReplicasPerShard?: null | float64 @go(NumReplicasPerShard,*float64) - - // The number of shards in the cluster. Defaults to 1. - // +kubebuilder:validation:Optional - numShards?: null | float64 @go(NumShards,*float64) - - // The name of the parameter group associated with the cluster. - // +kubebuilder:validation:Optional - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // The port number on which each of the nodes accepts connections. Defaults to 6379. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // Set of VPC Security Group ID-s to associate with this cluster. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas. - // +kubebuilder:validation:Optional - snapshotArns?: [...null | string] @go(SnapshotArns,[]*string) - - // The name of a snapshot from which to restore data into the new cluster. - // +kubebuilder:validation:Optional - snapshotName?: null | string @go(SnapshotName,*string) - - // The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to 0, automatic backups are disabled. Defaults to 0. - // +kubebuilder:validation:Optional - snapshotRetentionLimit?: null | float64 @go(SnapshotRetentionLimit,*float64) - - // The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: 05:00-09:00. - // +kubebuilder:validation:Optional - snapshotWindow?: null | string @go(SnapshotWindow,*string) - - // ARN of the SNS topic to which cluster notifications are sent. - // +kubebuilder:validation:Optional - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/memorydb/v1beta1.SubnetGroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - subnetGroupName?: null | string @go(SubnetGroupName,*string) - - // Reference to a SubnetGroup in memorydb to populate subnetGroupName. - // +kubebuilder:validation:Optional - subnetGroupNameRef?: null | v1.#Reference @go(SubnetGroupNameRef,*v1.Reference) - - // Selector for a SubnetGroup in memorydb to populate subnetGroupName. - // +kubebuilder:validation:Optional - subnetGroupNameSelector?: null | v1.#Selector @go(SubnetGroupNameSelector,*v1.Selector) - - // A flag to enable in-transit encryption on the cluster. When set to false, the acl_name must be open-access. Defaults to true. - // +kubebuilder:validation:Optional - tlsEnabled?: null | bool @go(TLSEnabled,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EndpointInitParameters: { -} - -#EndpointObservation: { - // DNS hostname of the cluster configuration endpoint. - address?: null | string @go(Address,*string) - - // The port number on which each of the nodes accepts connections. Defaults to 6379. - port?: null | float64 @go(Port,*float64) -} - -#EndpointParameters: { -} - -#NodesInitParameters: { -} - -#NodesObservation: { - // The Availability Zone in which the node resides. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The date and time when the node was created. Example: 2022-01-01T21:00:00Z. - createTime?: null | string @go(CreateTime,*string) - endpoint?: [...#EndpointObservation] @go(Endpoint,[]EndpointObservation) - - // Name of the cluster. Conflicts with name_prefix. - name?: null | string @go(Name,*string) -} - -#NodesParameters: { -} - -#ShardsInitParameters: { -} - -#ShardsObservation: { - // Name of the cluster. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // Set of nodes in this shard. - nodes?: [...#NodesObservation] @go(Nodes,[]NodesObservation) - - // Number of individual nodes in this shard. - numNodes?: null | float64 @go(NumNodes,*float64) - - // Keyspace for this shard. Example: 0-16383. - slots?: null | string @go(Slots,*string) -} - -#ShardsParameters: { -} - -// ClusterSpec defines the desired state of Cluster -#ClusterSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInitParameters @go(InitProvider) -} - -// ClusterStatus defines the observed state of Cluster. -#ClusterStatus: { - v1.#ResourceStatus - atProvider?: #ClusterObservation @go(AtProvider) -} - -// Cluster is the Schema for the Clusters API. Provides a MemoryDB Cluster. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Cluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.aclName) || (has(self.initProvider) && has(self.initProvider.aclName))",message="spec.forProvider.aclName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.nodeType) || (has(self.initProvider) && has(self.initProvider.nodeType))",message="spec.forProvider.nodeType is a required parameter" - spec: #ClusterSpec @go(Spec) - status?: #ClusterStatus @go(Status) -} - -// ClusterList contains a list of Clusters -#ClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Cluster] @go(Items,[]Cluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 4179a81..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/memorydb/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=memorydb.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "memorydb.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_parametergroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_parametergroup_types_go_gen.cue deleted file mode 100644 index 8cc26c2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_parametergroup_types_go_gen.cue +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/memorydb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ParameterGroupInitParameters: { - // Description for the parameter group. - description?: null | string @go(Description,*string) - - // The engine version that the parameter group can be used with. - family?: null | string @go(Family,*string) - - // Set of MemoryDB parameters to apply. Any parameters not specified will fall back to their family defaults. Detailed below. - parameter?: [...#ParameterInitParameters] @go(Parameter,[]ParameterInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParameterGroupObservation: { - // The ARN of the parameter group. - arn?: null | string @go(Arn,*string) - - // Description for the parameter group. - description?: null | string @go(Description,*string) - - // The engine version that the parameter group can be used with. - family?: null | string @go(Family,*string) - - // Same as name. - id?: null | string @go(ID,*string) - - // Set of MemoryDB parameters to apply. Any parameters not specified will fall back to their family defaults. Detailed below. - parameter?: [...#ParameterObservation] @go(Parameter,[]ParameterObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ParameterGroupParameters: { - // Description for the parameter group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The engine version that the parameter group can be used with. - // +kubebuilder:validation:Optional - family?: null | string @go(Family,*string) - - // Set of MemoryDB parameters to apply. Any parameters not specified will fall back to their family defaults. Detailed below. - // +kubebuilder:validation:Optional - parameter?: [...#ParameterParameters] @go(Parameter,[]ParameterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParameterInitParameters: { - // The name of the parameter. - name?: null | string @go(Name,*string) - - // The value of the parameter. - value?: null | string @go(Value,*string) -} - -#ParameterObservation: { - // The name of the parameter. - name?: null | string @go(Name,*string) - - // The value of the parameter. - value?: null | string @go(Value,*string) -} - -#ParameterParameters: { - // The name of the parameter. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of the parameter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// ParameterGroupSpec defines the desired state of ParameterGroup -#ParameterGroupSpec: { - v1.#ResourceSpec - forProvider: #ParameterGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ParameterGroupInitParameters @go(InitProvider) -} - -// ParameterGroupStatus defines the observed state of ParameterGroup. -#ParameterGroupStatus: { - v1.#ResourceStatus - atProvider?: #ParameterGroupObservation @go(AtProvider) -} - -// ParameterGroup is the Schema for the ParameterGroups API. Provides a MemoryDB Parameter Group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ParameterGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.family) || (has(self.initProvider) && has(self.initProvider.family))",message="spec.forProvider.family is a required parameter" - spec: #ParameterGroupSpec @go(Spec) - status?: #ParameterGroupStatus @go(Status) -} - -// ParameterGroupList contains a list of ParameterGroups -#ParameterGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ParameterGroup] @go(Items,[]ParameterGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_snapshot_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_snapshot_types_go_gen.cue deleted file mode 100644 index 863d66c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_snapshot_types_go_gen.cue +++ /dev/null @@ -1,170 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/memorydb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterConfigurationInitParameters: { -} - -#ClusterConfigurationObservation: { - // Description for the cluster. - description?: null | string @go(Description,*string) - - // Version number of the Redis engine used by the cluster. - engineVersion?: null | string @go(EngineVersion,*string) - - // The weekly time range during which maintenance on the cluster is performed. - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // Name of the snapshot. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // Compute and memory capacity of the nodes in the cluster. - nodeType?: null | string @go(NodeType,*string) - - // Number of shards in the cluster. - numShards?: null | float64 @go(NumShards,*float64) - - // Name of the parameter group associated with the cluster. - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // Port number on which the cluster accepts connections. - port?: null | float64 @go(Port,*float64) - - // Number of days for which MemoryDB retains automatic snapshots before deleting them. - snapshotRetentionLimit?: null | float64 @go(SnapshotRetentionLimit,*float64) - - // The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of the shard. - snapshotWindow?: null | string @go(SnapshotWindow,*string) - - // Name of the subnet group used by the cluster. - subnetGroupName?: null | string @go(SubnetGroupName,*string) - - // ARN of the SNS topic to which cluster notifications are sent. - topicArn?: null | string @go(TopicArn,*string) - - // The VPC in which the cluster exists. - vpcId?: null | string @go(VPCID,*string) -} - -#ClusterConfigurationParameters: { -} - -#SnapshotInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SnapshotObservation: { - // The ARN of the snapshot. - arn?: null | string @go(Arn,*string) - - // The configuration of the cluster from which the snapshot was taken. - clusterConfiguration?: [...#ClusterConfigurationObservation] @go(ClusterConfiguration,[]ClusterConfigurationObservation) - - // Name of the MemoryDB cluster to take a snapshot of. - clusterName?: null | string @go(ClusterName,*string) - - // The name of the snapshot. - id?: null | string @go(ID,*string) - - // ARN of the KMS key used to encrypt the snapshot at rest. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual). - source?: null | string @go(Source,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SnapshotParameters: { - // Name of the MemoryDB cluster to take a snapshot of. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/memorydb/v1beta1.Cluster - // +kubebuilder:validation:Optional - clusterName?: null | string @go(ClusterName,*string) - - // Reference to a Cluster in memorydb to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameRef?: null | v1.#Reference @go(ClusterNameRef,*v1.Reference) - - // Selector for a Cluster in memorydb to populate clusterName. - // +kubebuilder:validation:Optional - clusterNameSelector?: null | v1.#Selector @go(ClusterNameSelector,*v1.Selector) - - // ARN of the KMS key used to encrypt the snapshot at rest. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SnapshotSpec defines the desired state of Snapshot -#SnapshotSpec: { - v1.#ResourceSpec - forProvider: #SnapshotParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SnapshotInitParameters @go(InitProvider) -} - -// SnapshotStatus defines the observed state of Snapshot. -#SnapshotStatus: { - v1.#ResourceStatus - atProvider?: #SnapshotObservation @go(AtProvider) -} - -// Snapshot is the Schema for the Snapshots API. Provides a MemoryDB Snapshot. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Snapshot: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SnapshotSpec @go(Spec) - status?: #SnapshotStatus @go(Status) -} - -// SnapshotList contains a list of Snapshots -#SnapshotList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Snapshot] @go(Items,[]Snapshot) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_subnetgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_subnetgroup_types_go_gen.cue deleted file mode 100644 index 921979d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/memorydb/v1beta1/zz_subnetgroup_types_go_gen.cue +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/memorydb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SubnetGroupInitParameters: { - // Description for the subnet group. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SubnetGroupObservation: { - // The ARN of the subnet group. - arn?: null | string @go(Arn,*string) - - // Description for the subnet group. - description?: null | string @go(Description,*string) - - // The name of the subnet group. - id?: null | string @go(ID,*string) - - // Set of VPC Subnet ID-s for the subnet group. At least one subnet must be provided. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The VPC in which the subnet group exists. - vpcId?: null | string @go(VPCID,*string) -} - -#SubnetGroupParameters: { - // Description for the subnet group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Set of VPC Subnet ID-s for the subnet group. At least one subnet must be provided. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SubnetGroupSpec defines the desired state of SubnetGroup -#SubnetGroupSpec: { - v1.#ResourceSpec - forProvider: #SubnetGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SubnetGroupInitParameters @go(InitProvider) -} - -// SubnetGroupStatus defines the observed state of SubnetGroup. -#SubnetGroupStatus: { - v1.#ResourceStatus - atProvider?: #SubnetGroupObservation @go(AtProvider) -} - -// SubnetGroup is the Schema for the SubnetGroups API. Provides a MemoryDB Subnet Group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SubnetGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SubnetGroupSpec @go(Spec) - status?: #SubnetGroupStatus @go(Status) -} - -// SubnetGroupList contains a list of SubnetGroups -#SubnetGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SubnetGroup] @go(Items,[]SubnetGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/mq/v1beta1/zz_broker_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/mq/v1beta1/zz_broker_types_go_gen.cue deleted file mode 100644 index 249143e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/mq/v1beta1/zz_broker_types_go_gen.cue +++ /dev/null @@ -1,578 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/mq/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BrokerInitParameters: { - // Specifies whether any broker modifications are applied immediately, or during the next maintenance window. Default is false. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Authentication strategy used to secure the broker. Valid values are simple and ldap. ldap is not supported for engine_type RabbitMQ. - authenticationStrategy?: null | string @go(AuthenticationStrategy,*string) - - // Whether to automatically upgrade to new minor versions of brokers as Amazon MQ makes releases available. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // Name of the broker. - brokerName?: null | string @go(BrokerName,*string) - - // Configuration block for broker configuration. Applies to engine_type of ActiveMQ only. Detailed below. - configuration?: [...#ConfigurationInitParameters] @go(Configuration,[]ConfigurationInitParameters) - - // Deployment mode of the broker. Valid values are SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ, and CLUSTER_MULTI_AZ. Default is SINGLE_INSTANCE. - deploymentMode?: null | string @go(DeploymentMode,*string) - - // Configuration block containing encryption options. Detailed below. - encryptionOptions?: [...#EncryptionOptionsInitParameters] @go(EncryptionOptions,[]EncryptionOptionsInitParameters) - - // Type of broker engine. Valid values are ActiveMQ and RabbitMQ. - engineType?: null | string @go(EngineType,*string) - - // Version of the broker engine. See the AmazonMQ Broker Engine docs for supported versions. For example, 5.15.0. - engineVersion?: null | string @go(EngineVersion,*string) - - // Broker's instance type. For example, mq.t3.micro, mq.m5.large. - hostInstanceType?: null | string @go(HostInstanceType,*string) - - // Configuration block for the LDAP server used to authenticate and authorize connections to the broker. Not supported for engine_type RabbitMQ. Detailed below. (Currently, AWS may not process changes to LDAP server metadata.) - ldapServerMetadata?: [...#LdapServerMetadataInitParameters] @go(LdapServerMetadata,[]LdapServerMetadataInitParameters) - - // Configuration block for the logging configuration of the broker. Detailed below. - logs?: [...#LogsInitParameters] @go(Logs,[]LogsInitParameters) - - // Configuration block for the maintenance window start time. Detailed below. - maintenanceWindowStartTime?: [...#MaintenanceWindowStartTimeInitParameters] @go(MaintenanceWindowStartTime,[]MaintenanceWindowStartTimeInitParameters) - - // Whether to enable connections from applications outside of the VPC that hosts the broker's subnets. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Storage type of the broker. For engine_type ActiveMQ, the valid values are efs and ebs, and the AWS-default is efs. For engine_type RabbitMQ, only ebs is supported. When using ebs, only the mq.m5 broker instance type family is supported. - storageType?: null | string @go(StorageType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for broker users. For engine_type of RabbitMQ, Amazon MQ does not return broker users preventing this resource from making user updates and drift detection. Detailed below. - user?: [...#UserInitParameters] @go(User,[]UserInitParameters) -} - -#BrokerObservation: { - // Specifies whether any broker modifications are applied immediately, or during the next maintenance window. Default is false. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // ARN of the broker. - arn?: null | string @go(Arn,*string) - - // Authentication strategy used to secure the broker. Valid values are simple and ldap. ldap is not supported for engine_type RabbitMQ. - authenticationStrategy?: null | string @go(AuthenticationStrategy,*string) - - // Whether to automatically upgrade to new minor versions of brokers as Amazon MQ makes releases available. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // Name of the broker. - brokerName?: null | string @go(BrokerName,*string) - - // Configuration block for broker configuration. Applies to engine_type of ActiveMQ only. Detailed below. - configuration?: [...#ConfigurationObservation] @go(Configuration,[]ConfigurationObservation) - - // Deployment mode of the broker. Valid values are SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ, and CLUSTER_MULTI_AZ. Default is SINGLE_INSTANCE. - deploymentMode?: null | string @go(DeploymentMode,*string) - - // Configuration block containing encryption options. Detailed below. - encryptionOptions?: [...#EncryptionOptionsObservation] @go(EncryptionOptions,[]EncryptionOptionsObservation) - - // Type of broker engine. Valid values are ActiveMQ and RabbitMQ. - engineType?: null | string @go(EngineType,*string) - - // Version of the broker engine. See the AmazonMQ Broker Engine docs for supported versions. For example, 5.15.0. - engineVersion?: null | string @go(EngineVersion,*string) - - // Broker's instance type. For example, mq.t3.micro, mq.m5.large. - hostInstanceType?: null | string @go(HostInstanceType,*string) - - // Unique ID that Amazon MQ generates for the broker. - id?: null | string @go(ID,*string) - - // List of information about allocated brokers (both active & standby). - instances?: [...#InstancesObservation] @go(Instances,[]InstancesObservation) - - // Configuration block for the LDAP server used to authenticate and authorize connections to the broker. Not supported for engine_type RabbitMQ. Detailed below. (Currently, AWS may not process changes to LDAP server metadata.) - ldapServerMetadata?: [...#LdapServerMetadataObservation] @go(LdapServerMetadata,[]LdapServerMetadataObservation) - - // Configuration block for the logging configuration of the broker. Detailed below. - logs?: [...#LogsObservation] @go(Logs,[]LogsObservation) - - // Configuration block for the maintenance window start time. Detailed below. - maintenanceWindowStartTime?: [...#MaintenanceWindowStartTimeObservation] @go(MaintenanceWindowStartTime,[]MaintenanceWindowStartTimeObservation) - - // Whether to enable connections from applications outside of the VPC that hosts the broker's subnets. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // List of security group IDs assigned to the broker. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Storage type of the broker. For engine_type ActiveMQ, the valid values are efs and ebs, and the AWS-default is efs. For engine_type RabbitMQ, only ebs is supported. When using ebs, only the mq.m5 broker instance type family is supported. - storageType?: null | string @go(StorageType,*string) - - // List of subnet IDs in which to launch the broker. A SINGLE_INSTANCE deployment requires one subnet. An ACTIVE_STANDBY_MULTI_AZ deployment requires multiple subnets. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration block for broker users. For engine_type of RabbitMQ, Amazon MQ does not return broker users preventing this resource from making user updates and drift detection. Detailed below. - user?: [...#UserObservation] @go(User,[]UserObservation) -} - -#BrokerParameters: { - // Specifies whether any broker modifications are applied immediately, or during the next maintenance window. Default is false. - // +kubebuilder:validation:Optional - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Authentication strategy used to secure the broker. Valid values are simple and ldap. ldap is not supported for engine_type RabbitMQ. - // +kubebuilder:validation:Optional - authenticationStrategy?: null | string @go(AuthenticationStrategy,*string) - - // Whether to automatically upgrade to new minor versions of brokers as Amazon MQ makes releases available. - // +kubebuilder:validation:Optional - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // Name of the broker. - // +kubebuilder:validation:Optional - brokerName?: null | string @go(BrokerName,*string) - - // Configuration block for broker configuration. Applies to engine_type of ActiveMQ only. Detailed below. - // +kubebuilder:validation:Optional - configuration?: [...#ConfigurationParameters] @go(Configuration,[]ConfigurationParameters) - - // Deployment mode of the broker. Valid values are SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ, and CLUSTER_MULTI_AZ. Default is SINGLE_INSTANCE. - // +kubebuilder:validation:Optional - deploymentMode?: null | string @go(DeploymentMode,*string) - - // Configuration block containing encryption options. Detailed below. - // +kubebuilder:validation:Optional - encryptionOptions?: [...#EncryptionOptionsParameters] @go(EncryptionOptions,[]EncryptionOptionsParameters) - - // Type of broker engine. Valid values are ActiveMQ and RabbitMQ. - // +kubebuilder:validation:Optional - engineType?: null | string @go(EngineType,*string) - - // Version of the broker engine. See the AmazonMQ Broker Engine docs for supported versions. For example, 5.15.0. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // Broker's instance type. For example, mq.t3.micro, mq.m5.large. - // +kubebuilder:validation:Optional - hostInstanceType?: null | string @go(HostInstanceType,*string) - - // Configuration block for the LDAP server used to authenticate and authorize connections to the broker. Not supported for engine_type RabbitMQ. Detailed below. (Currently, AWS may not process changes to LDAP server metadata.) - // +kubebuilder:validation:Optional - ldapServerMetadata?: [...#LdapServerMetadataParameters] @go(LdapServerMetadata,[]LdapServerMetadataParameters) - - // Configuration block for the logging configuration of the broker. Detailed below. - // +kubebuilder:validation:Optional - logs?: [...#LogsParameters] @go(Logs,[]LogsParameters) - - // Configuration block for the maintenance window start time. Detailed below. - // +kubebuilder:validation:Optional - maintenanceWindowStartTime?: [...#MaintenanceWindowStartTimeParameters] @go(MaintenanceWindowStartTime,[]MaintenanceWindowStartTimeParameters) - - // Whether to enable connections from applications outside of the VPC that hosts the broker's subnets. - // +kubebuilder:validation:Optional - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to SecurityGroup in ec2 to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupRefs?: [...v1.#Reference] @go(SecurityGroupRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroups. - // +kubebuilder:validation:Optional - securityGroupSelector?: null | v1.#Selector @go(SecurityGroupSelector,*v1.Selector) - - // List of security group IDs assigned to the broker. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupSelector - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Storage type of the broker. For engine_type ActiveMQ, the valid values are efs and ebs, and the AWS-default is efs. For engine_type RabbitMQ, only ebs is supported. When using ebs, only the mq.m5 broker instance type family is supported. - // +kubebuilder:validation:Optional - storageType?: null | string @go(StorageType,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // List of subnet IDs in which to launch the broker. A SINGLE_INSTANCE deployment requires one subnet. An ACTIVE_STANDBY_MULTI_AZ deployment requires multiple subnets. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for broker users. For engine_type of RabbitMQ, Amazon MQ does not return broker users preventing this resource from making user updates and drift detection. Detailed below. - // +kubebuilder:validation:Optional - user?: [...#UserParameters] @go(User,[]UserParameters) -} - -#ConfigurationInitParameters: { - // Revision of the Configuration. - revision?: null | float64 @go(Revision,*float64) -} - -#ConfigurationObservation: { - // The Configuration ID. - id?: null | string @go(ID,*string) - - // Revision of the Configuration. - revision?: null | float64 @go(Revision,*float64) -} - -#ConfigurationParameters: { - // The Configuration ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/mq/v1beta1.Configuration - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Reference to a Configuration in mq to populate id. - // +kubebuilder:validation:Optional - idRef?: null | v1.#Reference @go(IDRef,*v1.Reference) - - // Selector for a Configuration in mq to populate id. - // +kubebuilder:validation:Optional - idSelector?: null | v1.#Selector @go(IDSelector,*v1.Selector) - - // Revision of the Configuration. - // +kubebuilder:validation:Optional - revision?: null | float64 @go(Revision,*float64) -} - -#EncryptionOptionsInitParameters: { - // Amazon Resource Name (ARN) of Key Management Service (KMS) Customer Master Key (CMK) to use for encryption at rest. Requires setting use_aws_owned_key to false. To perform drift detection when AWS-managed CMKs or customer-managed CMKs are in use, this value must be configured. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Whether to enable an AWS-owned KMS CMK that is not in your account. Defaults to true. Setting to false without configuring kms_key_id will create an AWS-managed CMK aliased to aws/mq in your account. - useAwsOwnedKey?: null | bool @go(UseAwsOwnedKey,*bool) -} - -#EncryptionOptionsObservation: { - // Amazon Resource Name (ARN) of Key Management Service (KMS) Customer Master Key (CMK) to use for encryption at rest. Requires setting use_aws_owned_key to false. To perform drift detection when AWS-managed CMKs or customer-managed CMKs are in use, this value must be configured. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Whether to enable an AWS-owned KMS CMK that is not in your account. Defaults to true. Setting to false without configuring kms_key_id will create an AWS-managed CMK aliased to aws/mq in your account. - useAwsOwnedKey?: null | bool @go(UseAwsOwnedKey,*bool) -} - -#EncryptionOptionsParameters: { - // Amazon Resource Name (ARN) of Key Management Service (KMS) Customer Master Key (CMK) to use for encryption at rest. Requires setting use_aws_owned_key to false. To perform drift detection when AWS-managed CMKs or customer-managed CMKs are in use, this value must be configured. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Whether to enable an AWS-owned KMS CMK that is not in your account. Defaults to true. Setting to false without configuring kms_key_id will create an AWS-managed CMK aliased to aws/mq in your account. - // +kubebuilder:validation:Optional - useAwsOwnedKey?: null | bool @go(UseAwsOwnedKey,*bool) -} - -#InstancesInitParameters: { -} - -#InstancesObservation: { - // The URL of the ActiveMQ Web Console or the RabbitMQ Management UI depending on engine_type. - consoleUrl?: null | string @go(ConsoleURL,*string) - - // Broker's wire-level protocol endpoints in the following order & format referenceable e.g., as instances.0.endpoints.0 (SSL): - endpoints?: [...null | string] @go(Endpoints,[]*string) - - // IP Address of the broker. - ipAddress?: null | string @go(IPAddress,*string) -} - -#InstancesParameters: { -} - -#LdapServerMetadataInitParameters: { - // List of a fully qualified domain name of the LDAP server and an optional failover server. - hosts?: [...null | string] @go(Hosts,[]*string) - - // Fully qualified name of the directory to search for a user’s groups. - roleBase?: null | string @go(RoleBase,*string) - - // Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query. - roleName?: null | string @go(RoleName,*string) - - // Search criteria for groups. - roleSearchMatching?: null | string @go(RoleSearchMatching,*string) - - // Whether the directory search scope is the entire sub-tree. - roleSearchSubtree?: null | bool @go(RoleSearchSubtree,*bool) - - // Service account username. - serviceAccountUsername?: null | string @go(ServiceAccountUsername,*string) - - // Fully qualified name of the directory where you want to search for users. - userBase?: null | string @go(UserBase,*string) - - // Specifies the name of the LDAP attribute for the user group membership. - userRoleName?: null | string @go(UserRoleName,*string) - - // Search criteria for users. - userSearchMatching?: null | string @go(UserSearchMatching,*string) - - // Whether the directory search scope is the entire sub-tree. - userSearchSubtree?: null | bool @go(UserSearchSubtree,*bool) -} - -#LdapServerMetadataObservation: { - // List of a fully qualified domain name of the LDAP server and an optional failover server. - hosts?: [...null | string] @go(Hosts,[]*string) - - // Fully qualified name of the directory to search for a user’s groups. - roleBase?: null | string @go(RoleBase,*string) - - // Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query. - roleName?: null | string @go(RoleName,*string) - - // Search criteria for groups. - roleSearchMatching?: null | string @go(RoleSearchMatching,*string) - - // Whether the directory search scope is the entire sub-tree. - roleSearchSubtree?: null | bool @go(RoleSearchSubtree,*bool) - - // Service account username. - serviceAccountUsername?: null | string @go(ServiceAccountUsername,*string) - - // Fully qualified name of the directory where you want to search for users. - userBase?: null | string @go(UserBase,*string) - - // Specifies the name of the LDAP attribute for the user group membership. - userRoleName?: null | string @go(UserRoleName,*string) - - // Search criteria for users. - userSearchMatching?: null | string @go(UserSearchMatching,*string) - - // Whether the directory search scope is the entire sub-tree. - userSearchSubtree?: null | bool @go(UserSearchSubtree,*bool) -} - -#LdapServerMetadataParameters: { - // List of a fully qualified domain name of the LDAP server and an optional failover server. - // +kubebuilder:validation:Optional - hosts?: [...null | string] @go(Hosts,[]*string) - - // Fully qualified name of the directory to search for a user’s groups. - // +kubebuilder:validation:Optional - roleBase?: null | string @go(RoleBase,*string) - - // Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query. - // +kubebuilder:validation:Optional - roleName?: null | string @go(RoleName,*string) - - // Search criteria for groups. - // +kubebuilder:validation:Optional - roleSearchMatching?: null | string @go(RoleSearchMatching,*string) - - // Whether the directory search scope is the entire sub-tree. - // +kubebuilder:validation:Optional - roleSearchSubtree?: null | bool @go(RoleSearchSubtree,*bool) - - // Service account password. - // +kubebuilder:validation:Optional - serviceAccountPasswordSecretRef?: null | v1.#SecretKeySelector @go(ServiceAccountPasswordSecretRef,*v1.SecretKeySelector) - - // Service account username. - // +kubebuilder:validation:Optional - serviceAccountUsername?: null | string @go(ServiceAccountUsername,*string) - - // Fully qualified name of the directory where you want to search for users. - // +kubebuilder:validation:Optional - userBase?: null | string @go(UserBase,*string) - - // Specifies the name of the LDAP attribute for the user group membership. - // +kubebuilder:validation:Optional - userRoleName?: null | string @go(UserRoleName,*string) - - // Search criteria for users. - // +kubebuilder:validation:Optional - userSearchMatching?: null | string @go(UserSearchMatching,*string) - - // Whether the directory search scope is the entire sub-tree. - // +kubebuilder:validation:Optional - userSearchSubtree?: null | bool @go(UserSearchSubtree,*bool) -} - -#LogsInitParameters: { - // Enables audit logging. Auditing is only possible for engine_type of ActiveMQ. User management action made using JMX or the ActiveMQ Web Console is logged. Defaults to false. - audit?: null | string @go(Audit,*string) - - // Enables general logging via CloudWatch. Defaults to false. - general?: null | bool @go(General,*bool) -} - -#LogsObservation: { - // Enables audit logging. Auditing is only possible for engine_type of ActiveMQ. User management action made using JMX or the ActiveMQ Web Console is logged. Defaults to false. - audit?: null | string @go(Audit,*string) - - // Enables general logging via CloudWatch. Defaults to false. - general?: null | bool @go(General,*bool) -} - -#LogsParameters: { - // Enables audit logging. Auditing is only possible for engine_type of ActiveMQ. User management action made using JMX or the ActiveMQ Web Console is logged. Defaults to false. - // +kubebuilder:validation:Optional - audit?: null | string @go(Audit,*string) - - // Enables general logging via CloudWatch. Defaults to false. - // +kubebuilder:validation:Optional - general?: null | bool @go(General,*bool) -} - -#MaintenanceWindowStartTimeInitParameters: { - // Day of the week, e.g., MONDAY, TUESDAY, or WEDNESDAY. - dayOfWeek?: null | string @go(DayOfWeek,*string) - - // Time, in 24-hour format, e.g., 02:00. - timeOfDay?: null | string @go(TimeOfDay,*string) - - // Time zone in either the Country/City format or the UTC offset format, e.g., CET. - timeZone?: null | string @go(TimeZone,*string) -} - -#MaintenanceWindowStartTimeObservation: { - // Day of the week, e.g., MONDAY, TUESDAY, or WEDNESDAY. - dayOfWeek?: null | string @go(DayOfWeek,*string) - - // Time, in 24-hour format, e.g., 02:00. - timeOfDay?: null | string @go(TimeOfDay,*string) - - // Time zone in either the Country/City format or the UTC offset format, e.g., CET. - timeZone?: null | string @go(TimeZone,*string) -} - -#MaintenanceWindowStartTimeParameters: { - // Day of the week, e.g., MONDAY, TUESDAY, or WEDNESDAY. - // +kubebuilder:validation:Optional - dayOfWeek?: null | string @go(DayOfWeek,*string) - - // Time, in 24-hour format, e.g., 02:00. - // +kubebuilder:validation:Optional - timeOfDay?: null | string @go(TimeOfDay,*string) - - // Time zone in either the Country/City format or the UTC offset format, e.g., CET. - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#UserInitParameters: { - // Whether to enable access to the ActiveMQ Web Console for the user. Applies to engine_type of ActiveMQ only. - consoleAccess?: null | bool @go(ConsoleAccess,*bool) - - // List of groups (20 maximum) to which the ActiveMQ user belongs. Applies to engine_type of ActiveMQ only. - groups?: [...null | string] @go(Groups,[]*string) - - // Username of the user. - username?: null | string @go(Username,*string) -} - -#UserObservation: { - // Whether to enable access to the ActiveMQ Web Console for the user. Applies to engine_type of ActiveMQ only. - consoleAccess?: null | bool @go(ConsoleAccess,*bool) - - // List of groups (20 maximum) to which the ActiveMQ user belongs. Applies to engine_type of ActiveMQ only. - groups?: [...null | string] @go(Groups,[]*string) - - // Username of the user. - username?: null | string @go(Username,*string) -} - -#UserParameters: { - // Whether to enable access to the ActiveMQ Web Console for the user. Applies to engine_type of ActiveMQ only. - // +kubebuilder:validation:Optional - consoleAccess?: null | bool @go(ConsoleAccess,*bool) - - // List of groups (20 maximum) to which the ActiveMQ user belongs. Applies to engine_type of ActiveMQ only. - // +kubebuilder:validation:Optional - groups?: [...null | string] @go(Groups,[]*string) - - // Password of the user. It must be 12 to 250 characters long, at least 4 unique characters, and must not contain commas. - // +kubebuilder:validation:Required - passwordSecretRef: v1.#SecretKeySelector @go(PasswordSecretRef) - - // Username of the user. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -// BrokerSpec defines the desired state of Broker -#BrokerSpec: { - v1.#ResourceSpec - forProvider: #BrokerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BrokerInitParameters @go(InitProvider) -} - -// BrokerStatus defines the observed state of Broker. -#BrokerStatus: { - v1.#ResourceStatus - atProvider?: #BrokerObservation @go(AtProvider) -} - -// Broker is the Schema for the Brokers API. Provides an MQ Broker Resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Broker: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.brokerName) || (has(self.initProvider) && has(self.initProvider.brokerName))",message="spec.forProvider.brokerName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.engineType) || (has(self.initProvider) && has(self.initProvider.engineType))",message="spec.forProvider.engineType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.engineVersion) || (has(self.initProvider) && has(self.initProvider.engineVersion))",message="spec.forProvider.engineVersion is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.hostInstanceType) || (has(self.initProvider) && has(self.initProvider.hostInstanceType))",message="spec.forProvider.hostInstanceType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.user) || (has(self.initProvider) && has(self.initProvider.user))",message="spec.forProvider.user is a required parameter" - spec: #BrokerSpec @go(Spec) - status?: #BrokerStatus @go(Status) -} - -// BrokerList contains a list of Brokers -#BrokerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Broker] @go(Items,[]Broker) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/mq/v1beta1/zz_configuration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/mq/v1beta1/zz_configuration_types_go_gen.cue deleted file mode 100644 index fb59763..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/mq/v1beta1/zz_configuration_types_go_gen.cue +++ /dev/null @@ -1,153 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/mq/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigurationInitParameters_2: { - // Authentication strategy associated with the configuration. Valid values are simple and ldap. ldap is not supported for engine_type RabbitMQ. - authenticationStrategy?: null | string @go(AuthenticationStrategy,*string) - - // Broker configuration in XML format. See official docs for supported parameters and format of the XML. - data?: null | string @go(Data,*string) - - // Description of the configuration. - description?: null | string @go(Description,*string) - - // Type of broker engine. Valid values are ActiveMQ and RabbitMQ. - engineType?: null | string @go(EngineType,*string) - - // Version of the broker engine. - engineVersion?: null | string @go(EngineVersion,*string) - - // Name of the configuration. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ConfigurationObservation_2: { - // ARN of the configuration. - arn?: null | string @go(Arn,*string) - - // Authentication strategy associated with the configuration. Valid values are simple and ldap. ldap is not supported for engine_type RabbitMQ. - authenticationStrategy?: null | string @go(AuthenticationStrategy,*string) - - // Broker configuration in XML format. See official docs for supported parameters and format of the XML. - data?: null | string @go(Data,*string) - - // Description of the configuration. - description?: null | string @go(Description,*string) - - // Type of broker engine. Valid values are ActiveMQ and RabbitMQ. - engineType?: null | string @go(EngineType,*string) - - // Version of the broker engine. - engineVersion?: null | string @go(EngineVersion,*string) - - // Unique ID that Amazon MQ generates for the configuration. - id?: null | string @go(ID,*string) - - // Latest revision of the configuration. - latestRevision?: null | float64 @go(LatestRevision,*float64) - - // Name of the configuration. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ConfigurationParameters_2: { - // Authentication strategy associated with the configuration. Valid values are simple and ldap. ldap is not supported for engine_type RabbitMQ. - // +kubebuilder:validation:Optional - authenticationStrategy?: null | string @go(AuthenticationStrategy,*string) - - // Broker configuration in XML format. See official docs for supported parameters and format of the XML. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // Description of the configuration. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Type of broker engine. Valid values are ActiveMQ and RabbitMQ. - // +kubebuilder:validation:Optional - engineType?: null | string @go(EngineType,*string) - - // Version of the broker engine. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // Name of the configuration. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ConfigurationSpec defines the desired state of Configuration -#ConfigurationSpec: { - v1.#ResourceSpec - forProvider: #ConfigurationParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConfigurationInitParameters_2 @go(InitProvider) -} - -// ConfigurationStatus defines the observed state of Configuration. -#ConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #ConfigurationObservation_2 @go(AtProvider) -} - -// Configuration is the Schema for the Configurations API. Provides an MQ configuration Resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Configuration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.data) || (has(self.initProvider) && has(self.initProvider.data))",message="spec.forProvider.data is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.engineType) || (has(self.initProvider) && has(self.initProvider.engineType))",message="spec.forProvider.engineType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.engineVersion) || (has(self.initProvider) && has(self.initProvider.engineVersion))",message="spec.forProvider.engineVersion is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ConfigurationSpec @go(Spec) - status?: #ConfigurationStatus @go(Status) -} - -// ConfigurationList contains a list of Configurations -#ConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Configuration] @go(Items,[]Configuration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/mq/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/mq/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 221d01e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/mq/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/mq/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=mq.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "mq.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_cluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_cluster_types_go_gen.cue deleted file mode 100644 index 18015d5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_cluster_types_go_gen.cue +++ /dev/null @@ -1,432 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/neptune/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterInitParameters: { - // Specifies whether upgrades between different major versions are allowed. You must set it to true when providing an engine_version parameter that uses a different major version than the DB cluster's current version. Default is false. - allowMajorVersionUpgrade?: null | bool @go(AllowMajorVersionUpgrade,*bool) - - // Specifies whether any cluster modifications are applied immediately, or during the next maintenance window. Default is false. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // A list of EC2 Availability Zones that instances in the Neptune cluster can be created in. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The days to retain backups for. Default 1 - backupRetentionPeriod?: null | float64 @go(BackupRetentionPeriod,*float64) - - // If set to true, tags are copied to any snapshot of the DB cluster that is created. - copyTagsToSnapshot?: null | bool @go(CopyTagsToSnapshot,*bool) - - // A value that indicates whether the DB cluster has deletion protection enabled.The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // A list of the log types this DB cluster is configured to export to Cloudwatch Logs. Currently only supports audit. - enableCloudwatchLogsExports?: [...null | string] @go(EnableCloudwatchLogsExports,[]*string) - - // The name of the database engine to be used for this Neptune cluster. Defaults to neptune. - engine?: null | string @go(Engine,*string) - - // The database engine version. - engineVersion?: null | string @go(EngineVersion,*string) - - // The name of your final Neptune snapshot when this Neptune cluster is deleted. If omitted, no final snapshot will be made. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The global cluster identifier specified on aws_neptune_global_cluster. - globalClusterIdentifier?: null | string @go(GlobalClusterIdentifier,*string) - - // Specifies whether or not mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled. - iamDatabaseAuthenticationEnabled?: null | bool @go(IAMDatabaseAuthenticationEnabled,*bool) - - // The name of the DB parameter group to apply to all instances of the DB cluster. - neptuneInstanceParameterGroupName?: null | string @go(NeptuneInstanceParameterGroupName,*string) - - // The port on which the Neptune accepts connections. Default is 8182. - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter. Time in UTC. Default: A 30-minute window selected at random from an 8-hour block of time per regionE.g., 04:00-09:00 - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The weekly time range during which system maintenance can occur, in (UTC) e.g., wed:04:00-wed:04:30 - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // If set, create the Neptune cluster as a serverless one. See Serverless for example block attributes. - serverlessV2ScalingConfiguration?: [...#ServerlessV2ScalingConfigurationInitParameters] @go(ServerlessV2ScalingConfiguration,[]ServerlessV2ScalingConfigurationInitParameters) - - // Determines whether a final Neptune snapshot is created before the Neptune cluster is deleted. If true is specified, no Neptune snapshot is created. If false is specified, a Neptune snapshot is created before the Neptune cluster is deleted, using the value from final_snapshot_identifier. Default is false. - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // Specifies whether the Neptune cluster is encrypted. The default is false if not specified. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterObservation: { - // Specifies whether upgrades between different major versions are allowed. You must set it to true when providing an engine_version parameter that uses a different major version than the DB cluster's current version. Default is false. - allowMajorVersionUpgrade?: null | bool @go(AllowMajorVersionUpgrade,*bool) - - // Specifies whether any cluster modifications are applied immediately, or during the next maintenance window. Default is false. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // The Neptune Cluster Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // A list of EC2 Availability Zones that instances in the Neptune cluster can be created in. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The days to retain backups for. Default 1 - backupRetentionPeriod?: null | float64 @go(BackupRetentionPeriod,*float64) - - // – List of Neptune Instances that are a part of this cluster - clusterMembers?: [...null | string] @go(ClusterMembers,[]*string) - - // The Neptune Cluster Resource ID - clusterResourceId?: null | string @go(ClusterResourceID,*string) - - // If set to true, tags are copied to any snapshot of the DB cluster that is created. - copyTagsToSnapshot?: null | bool @go(CopyTagsToSnapshot,*bool) - - // A value that indicates whether the DB cluster has deletion protection enabled.The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // A list of the log types this DB cluster is configured to export to Cloudwatch Logs. Currently only supports audit. - enableCloudwatchLogsExports?: [...null | string] @go(EnableCloudwatchLogsExports,[]*string) - - // The DNS address of the Neptune instance - endpoint?: null | string @go(Endpoint,*string) - - // The name of the database engine to be used for this Neptune cluster. Defaults to neptune. - engine?: null | string @go(Engine,*string) - - // The database engine version. - engineVersion?: null | string @go(EngineVersion,*string) - - // The name of your final Neptune snapshot when this Neptune cluster is deleted. If omitted, no final snapshot will be made. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The global cluster identifier specified on aws_neptune_global_cluster. - globalClusterIdentifier?: null | string @go(GlobalClusterIdentifier,*string) - - // The Route53 Hosted Zone ID of the endpoint - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // Specifies whether or not mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled. - iamDatabaseAuthenticationEnabled?: null | bool @go(IAMDatabaseAuthenticationEnabled,*bool) - - // A List of ARNs for the IAM roles to associate to the Neptune Cluster. - iamRoles?: [...null | string] @go(IAMRoles,[]*string) - - // The Neptune Cluster Identifier - id?: null | string @go(ID,*string) - - // The ARN for the KMS encryption key. When specifying kms_key_arn, storage_encrypted needs to be set to true. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // A cluster parameter group to associate with the cluster. - neptuneClusterParameterGroupName?: null | string @go(NeptuneClusterParameterGroupName,*string) - - // The name of the DB parameter group to apply to all instances of the DB cluster. - neptuneInstanceParameterGroupName?: null | string @go(NeptuneInstanceParameterGroupName,*string) - - // A Neptune subnet group to associate with this Neptune instance. - neptuneSubnetGroupName?: null | string @go(NeptuneSubnetGroupName,*string) - - // The port on which the Neptune accepts connections. Default is 8182. - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter. Time in UTC. Default: A 30-minute window selected at random from an 8-hour block of time per regionE.g., 04:00-09:00 - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The weekly time range during which system maintenance can occur, in (UTC) e.g., wed:04:00-wed:04:30 - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // A read-only endpoint for the Neptune cluster, automatically load-balanced across replicas - readerEndpoint?: null | string @go(ReaderEndpoint,*string) - - // ARN of a source Neptune cluster or Neptune instance if this Neptune cluster is to be created as a Read Replica. - replicationSourceIdentifier?: null | string @go(ReplicationSourceIdentifier,*string) - - // If set, create the Neptune cluster as a serverless one. See Serverless for example block attributes. - serverlessV2ScalingConfiguration?: [...#ServerlessV2ScalingConfigurationObservation] @go(ServerlessV2ScalingConfiguration,[]ServerlessV2ScalingConfigurationObservation) - - // Determines whether a final Neptune snapshot is created before the Neptune cluster is deleted. If true is specified, no Neptune snapshot is created. If false is specified, a Neptune snapshot is created before the Neptune cluster is deleted, using the value from final_snapshot_identifier. Default is false. - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // Specifies whether or not to create this cluster from a snapshot. You can use either the name or ARN when specifying a Neptune cluster snapshot, or the ARN when specifying a Neptune snapshot. - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // Specifies whether the Neptune cluster is encrypted. The default is false if not specified. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // List of VPC security groups to associate with the Cluster - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -#ClusterParameters: { - // Specifies whether upgrades between different major versions are allowed. You must set it to true when providing an engine_version parameter that uses a different major version than the DB cluster's current version. Default is false. - // +kubebuilder:validation:Optional - allowMajorVersionUpgrade?: null | bool @go(AllowMajorVersionUpgrade,*bool) - - // Specifies whether any cluster modifications are applied immediately, or during the next maintenance window. Default is false. - // +kubebuilder:validation:Optional - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // A list of EC2 Availability Zones that instances in the Neptune cluster can be created in. - // +kubebuilder:validation:Optional - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The days to retain backups for. Default 1 - // +kubebuilder:validation:Optional - backupRetentionPeriod?: null | float64 @go(BackupRetentionPeriod,*float64) - - // If set to true, tags are copied to any snapshot of the DB cluster that is created. - // +kubebuilder:validation:Optional - copyTagsToSnapshot?: null | bool @go(CopyTagsToSnapshot,*bool) - - // A value that indicates whether the DB cluster has deletion protection enabled.The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. - // +kubebuilder:validation:Optional - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // A list of the log types this DB cluster is configured to export to Cloudwatch Logs. Currently only supports audit. - // +kubebuilder:validation:Optional - enableCloudwatchLogsExports?: [...null | string] @go(EnableCloudwatchLogsExports,[]*string) - - // The name of the database engine to be used for this Neptune cluster. Defaults to neptune. - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // The database engine version. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // The name of your final Neptune snapshot when this Neptune cluster is deleted. If omitted, no final snapshot will be made. - // +kubebuilder:validation:Optional - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The global cluster identifier specified on aws_neptune_global_cluster. - // +kubebuilder:validation:Optional - globalClusterIdentifier?: null | string @go(GlobalClusterIdentifier,*string) - - // Specifies whether or not mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled. - // +kubebuilder:validation:Optional - iamDatabaseAuthenticationEnabled?: null | bool @go(IAMDatabaseAuthenticationEnabled,*bool) - - // References to Role in iam to populate iamRoles. - // +kubebuilder:validation:Optional - iamRoleRefs?: [...v1.#Reference] @go(IAMRoleRefs,[]v1.Reference) - - // Selector for a list of Role in iam to populate iamRoles. - // +kubebuilder:validation:Optional - iamRoleSelector?: null | v1.#Selector @go(IAMRoleSelector,*v1.Selector) - - // A List of ARNs for the IAM roles to associate to the Neptune Cluster. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:refFieldName=IAMRoleRefs - // +crossplane:generate:reference:selectorFieldName=IAMRoleSelector - // +kubebuilder:validation:Optional - iamRoles?: [...null | string] @go(IAMRoles,[]*string) - - // The ARN for the KMS encryption key. When specifying kms_key_arn, storage_encrypted needs to be set to true. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) - - // A cluster parameter group to associate with the cluster. - // +crossplane:generate:reference:type=ClusterParameterGroup - // +kubebuilder:validation:Optional - neptuneClusterParameterGroupName?: null | string @go(NeptuneClusterParameterGroupName,*string) - - // Reference to a ClusterParameterGroup to populate neptuneClusterParameterGroupName. - // +kubebuilder:validation:Optional - neptuneClusterParameterGroupNameRef?: null | v1.#Reference @go(NeptuneClusterParameterGroupNameRef,*v1.Reference) - - // Selector for a ClusterParameterGroup to populate neptuneClusterParameterGroupName. - // +kubebuilder:validation:Optional - neptuneClusterParameterGroupNameSelector?: null | v1.#Selector @go(NeptuneClusterParameterGroupNameSelector,*v1.Selector) - - // The name of the DB parameter group to apply to all instances of the DB cluster. - // +kubebuilder:validation:Optional - neptuneInstanceParameterGroupName?: null | string @go(NeptuneInstanceParameterGroupName,*string) - - // A Neptune subnet group to associate with this Neptune instance. - // +crossplane:generate:reference:type=SubnetGroup - // +kubebuilder:validation:Optional - neptuneSubnetGroupName?: null | string @go(NeptuneSubnetGroupName,*string) - - // Reference to a SubnetGroup to populate neptuneSubnetGroupName. - // +kubebuilder:validation:Optional - neptuneSubnetGroupNameRef?: null | v1.#Reference @go(NeptuneSubnetGroupNameRef,*v1.Reference) - - // Selector for a SubnetGroup to populate neptuneSubnetGroupName. - // +kubebuilder:validation:Optional - neptuneSubnetGroupNameSelector?: null | v1.#Selector @go(NeptuneSubnetGroupNameSelector,*v1.Selector) - - // The port on which the Neptune accepts connections. Default is 8182. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter. Time in UTC. Default: A 30-minute window selected at random from an 8-hour block of time per regionE.g., 04:00-09:00 - // +kubebuilder:validation:Optional - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The weekly time range during which system maintenance can occur, in (UTC) e.g., wed:04:00-wed:04:30 - // +kubebuilder:validation:Optional - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ARN of a source Neptune cluster or Neptune instance if this Neptune cluster is to be created as a Read Replica. - // +crossplane:generate:reference:type=Cluster - // +kubebuilder:validation:Optional - replicationSourceIdentifier?: null | string @go(ReplicationSourceIdentifier,*string) - - // Reference to a Cluster to populate replicationSourceIdentifier. - // +kubebuilder:validation:Optional - replicationSourceIdentifierRef?: null | v1.#Reference @go(ReplicationSourceIdentifierRef,*v1.Reference) - - // Selector for a Cluster to populate replicationSourceIdentifier. - // +kubebuilder:validation:Optional - replicationSourceIdentifierSelector?: null | v1.#Selector @go(ReplicationSourceIdentifierSelector,*v1.Selector) - - // If set, create the Neptune cluster as a serverless one. See Serverless for example block attributes. - // +kubebuilder:validation:Optional - serverlessV2ScalingConfiguration?: [...#ServerlessV2ScalingConfigurationParameters] @go(ServerlessV2ScalingConfiguration,[]ServerlessV2ScalingConfigurationParameters) - - // Determines whether a final Neptune snapshot is created before the Neptune cluster is deleted. If true is specified, no Neptune snapshot is created. If false is specified, a Neptune snapshot is created before the Neptune cluster is deleted, using the value from final_snapshot_identifier. Default is false. - // +kubebuilder:validation:Optional - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // Specifies whether or not to create this cluster from a snapshot. You can use either the name or ARN when specifying a Neptune cluster snapshot, or the ARN when specifying a Neptune snapshot. - // +crossplane:generate:reference:type=ClusterSnapshot - // +kubebuilder:validation:Optional - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // Reference to a ClusterSnapshot to populate snapshotIdentifier. - // +kubebuilder:validation:Optional - snapshotIdentifierRef?: null | v1.#Reference @go(SnapshotIdentifierRef,*v1.Reference) - - // Selector for a ClusterSnapshot to populate snapshotIdentifier. - // +kubebuilder:validation:Optional - snapshotIdentifierSelector?: null | v1.#Selector @go(SnapshotIdentifierSelector,*v1.Selector) - - // Specifies whether the Neptune cluster is encrypted. The default is false if not specified. - // +kubebuilder:validation:Optional - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // References to SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdRefs?: [...v1.#Reference] @go(VPCSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdSelector?: null | v1.#Selector @go(VPCSecurityGroupIDSelector,*v1.Selector) - - // List of VPC security groups to associate with the Cluster - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -#ServerlessV2ScalingConfigurationInitParameters: { - // : (default: 128) The maximum Neptune Capacity Units (NCUs) for this cluster. Must be lower or equal than 128. See AWS Documentation for more details. - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // : (default: 2.5) The minimum Neptune Capacity Units (NCUs) for this cluster. Must be greater or equal than 1. See AWS Documentation for more details. - minCapacity?: null | float64 @go(MinCapacity,*float64) -} - -#ServerlessV2ScalingConfigurationObservation: { - // : (default: 128) The maximum Neptune Capacity Units (NCUs) for this cluster. Must be lower or equal than 128. See AWS Documentation for more details. - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // : (default: 2.5) The minimum Neptune Capacity Units (NCUs) for this cluster. Must be greater or equal than 1. See AWS Documentation for more details. - minCapacity?: null | float64 @go(MinCapacity,*float64) -} - -#ServerlessV2ScalingConfigurationParameters: { - // : (default: 128) The maximum Neptune Capacity Units (NCUs) for this cluster. Must be lower or equal than 128. See AWS Documentation for more details. - // +kubebuilder:validation:Optional - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // : (default: 2.5) The minimum Neptune Capacity Units (NCUs) for this cluster. Must be greater or equal than 1. See AWS Documentation for more details. - // +kubebuilder:validation:Optional - minCapacity?: null | float64 @go(MinCapacity,*float64) -} - -// ClusterSpec defines the desired state of Cluster -#ClusterSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInitParameters @go(InitProvider) -} - -// ClusterStatus defines the observed state of Cluster. -#ClusterStatus: { - v1.#ResourceStatus - atProvider?: #ClusterObservation @go(AtProvider) -} - -// Cluster is the Schema for the Clusters API. Provides an Neptune Cluster Resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Cluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ClusterSpec @go(Spec) - status?: #ClusterStatus @go(Status) -} - -// ClusterList contains a list of Clusters -#ClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Cluster] @go(Items,[]Cluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_clusterendpoint_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_clusterendpoint_types_go_gen.cue deleted file mode 100644 index 9614156..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_clusterendpoint_types_go_gen.cue +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/neptune/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterEndpointInitParameters: { - // The type of the endpoint. One of: READER, WRITER, ANY. - endpointType?: null | string @go(EndpointType,*string) - - // List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty. - excludedMembers?: [...null | string] @go(ExcludedMembers,[]*string) - - // List of DB instance identifiers that are part of the custom endpoint group. - staticMembers?: [...null | string] @go(StaticMembers,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterEndpointObservation: { - // The Neptune Cluster Endpoint Amazon Resource Name (ARN). - arn?: null | string @go(Arn,*string) - - // The DB cluster identifier of the DB cluster associated with the endpoint. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // The DNS address of the endpoint. - endpoint?: null | string @go(Endpoint,*string) - - // The type of the endpoint. One of: READER, WRITER, ANY. - endpointType?: null | string @go(EndpointType,*string) - - // List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty. - excludedMembers?: [...null | string] @go(ExcludedMembers,[]*string) - - // The Neptune Cluster Endpoint Identifier. - id?: null | string @go(ID,*string) - - // List of DB instance identifiers that are part of the custom endpoint group. - staticMembers?: [...null | string] @go(StaticMembers,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ClusterEndpointParameters: { - // The DB cluster identifier of the DB cluster associated with the endpoint. - // +crossplane:generate:reference:type=Cluster - // +kubebuilder:validation:Optional - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // Reference to a Cluster to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierRef?: null | v1.#Reference @go(ClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierSelector?: null | v1.#Selector @go(ClusterIdentifierSelector,*v1.Selector) - - // The type of the endpoint. One of: READER, WRITER, ANY. - // +kubebuilder:validation:Optional - endpointType?: null | string @go(EndpointType,*string) - - // List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty. - // +kubebuilder:validation:Optional - excludedMembers?: [...null | string] @go(ExcludedMembers,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // List of DB instance identifiers that are part of the custom endpoint group. - // +kubebuilder:validation:Optional - staticMembers?: [...null | string] @go(StaticMembers,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ClusterEndpointSpec defines the desired state of ClusterEndpoint -#ClusterEndpointSpec: { - v1.#ResourceSpec - forProvider: #ClusterEndpointParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterEndpointInitParameters @go(InitProvider) -} - -// ClusterEndpointStatus defines the observed state of ClusterEndpoint. -#ClusterEndpointStatus: { - v1.#ResourceStatus - atProvider?: #ClusterEndpointObservation @go(AtProvider) -} - -// ClusterEndpoint is the Schema for the ClusterEndpoints API. Provides an Neptune Cluster Endpoint Resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterEndpoint: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.endpointType) || (has(self.initProvider) && has(self.initProvider.endpointType))",message="spec.forProvider.endpointType is a required parameter" - spec: #ClusterEndpointSpec @go(Spec) - status?: #ClusterEndpointStatus @go(Status) -} - -// ClusterEndpointList contains a list of ClusterEndpoints -#ClusterEndpointList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterEndpoint] @go(Items,[]ClusterEndpoint) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_clusterinstance_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_clusterinstance_types_go_gen.cue deleted file mode 100644 index 6b378e9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_clusterinstance_types_go_gen.cue +++ /dev/null @@ -1,269 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/neptune/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterInstanceInitParameters: { - // Specifies whether any instance modifications - // are applied immediately, or during the next maintenance window. Default isfalse. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Indicates that minor engine upgrades will be applied automatically to the instance during the maintenance window. Default is true. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The EC2 Availability Zone that the neptune instance is created in. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The name of the database engine to be used for the neptune instance. Defaults to neptune. Valid Values: neptune. - engine?: null | string @go(Engine,*string) - - // The neptune engine version. - engineVersion?: null | string @go(EngineVersion,*string) - - // The instance class to use. - instanceClass?: null | string @go(InstanceClass,*string) - - // The port on which the DB accepts connections. Defaults to 8182. - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled. Eg: "04:00-09:00" - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The window to perform maintenance in. - // Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer. - promotionTier?: null | float64 @go(PromotionTier,*float64) - - // Bool to control if instance is publicly accessible. Default is false. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterInstanceObservation: { - // The hostname of the instance. See also endpoint and port. - address?: null | string @go(Address,*string) - - // Specifies whether any instance modifications - // are applied immediately, or during the next maintenance window. Default isfalse. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Amazon Resource Name (ARN) of neptune instance - arn?: null | string @go(Arn,*string) - - // Indicates that minor engine upgrades will be applied automatically to the instance during the maintenance window. Default is true. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The EC2 Availability Zone that the neptune instance is created in. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The identifier of the aws_neptune_cluster in which to launch this instance. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // The region-unique, immutable identifier for the neptune instance. - dbiResourceId?: null | string @go(DbiResourceID,*string) - - // The connection endpoint in address:port format. - endpoint?: null | string @go(Endpoint,*string) - - // The name of the database engine to be used for the neptune instance. Defaults to neptune. Valid Values: neptune. - engine?: null | string @go(Engine,*string) - - // The neptune engine version. - engineVersion?: null | string @go(EngineVersion,*string) - - // The Instance identifier - id?: null | string @go(ID,*string) - - // The instance class to use. - instanceClass?: null | string @go(InstanceClass,*string) - - // The ARN for the KMS encryption key if one is set to the neptune cluster. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The name of the neptune parameter group to associate with this instance. - neptuneParameterGroupName?: null | string @go(NeptuneParameterGroupName,*string) - - // A subnet group to associate with this neptune instance. NOTE: This must match the neptune_subnet_group_name of the attached aws_neptune_cluster. - neptuneSubnetGroupName?: null | string @go(NeptuneSubnetGroupName,*string) - - // The port on which the DB accepts connections. Defaults to 8182. - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled. Eg: "04:00-09:00" - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The window to perform maintenance in. - // Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer. - promotionTier?: null | float64 @go(PromotionTier,*float64) - - // Bool to control if instance is publicly accessible. Default is false. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Specifies whether the neptune cluster is encrypted. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // – Boolean indicating if this instance is writable. False indicates this instance is a read replica. - writer?: null | bool @go(Writer,*bool) -} - -#ClusterInstanceParameters: { - // Specifies whether any instance modifications - // are applied immediately, or during the next maintenance window. Default isfalse. - // +kubebuilder:validation:Optional - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Indicates that minor engine upgrades will be applied automatically to the instance during the maintenance window. Default is true. - // +kubebuilder:validation:Optional - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The EC2 Availability Zone that the neptune instance is created in. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The identifier of the aws_neptune_cluster in which to launch this instance. - // +crossplane:generate:reference:type=Cluster - // +kubebuilder:validation:Optional - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // Reference to a Cluster to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierRef?: null | v1.#Reference @go(ClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierSelector?: null | v1.#Selector @go(ClusterIdentifierSelector,*v1.Selector) - - // The name of the database engine to be used for the neptune instance. Defaults to neptune. Valid Values: neptune. - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // The neptune engine version. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // The instance class to use. - // +kubebuilder:validation:Optional - instanceClass?: null | string @go(InstanceClass,*string) - - // The name of the neptune parameter group to associate with this instance. - // +crossplane:generate:reference:type=ParameterGroup - // +kubebuilder:validation:Optional - neptuneParameterGroupName?: null | string @go(NeptuneParameterGroupName,*string) - - // Reference to a ParameterGroup to populate neptuneParameterGroupName. - // +kubebuilder:validation:Optional - neptuneParameterGroupNameRef?: null | v1.#Reference @go(NeptuneParameterGroupNameRef,*v1.Reference) - - // Selector for a ParameterGroup to populate neptuneParameterGroupName. - // +kubebuilder:validation:Optional - neptuneParameterGroupNameSelector?: null | v1.#Selector @go(NeptuneParameterGroupNameSelector,*v1.Selector) - - // A subnet group to associate with this neptune instance. NOTE: This must match the neptune_subnet_group_name of the attached aws_neptune_cluster. - // +crossplane:generate:reference:type=SubnetGroup - // +kubebuilder:validation:Optional - neptuneSubnetGroupName?: null | string @go(NeptuneSubnetGroupName,*string) - - // Reference to a SubnetGroup to populate neptuneSubnetGroupName. - // +kubebuilder:validation:Optional - neptuneSubnetGroupNameRef?: null | v1.#Reference @go(NeptuneSubnetGroupNameRef,*v1.Reference) - - // Selector for a SubnetGroup to populate neptuneSubnetGroupName. - // +kubebuilder:validation:Optional - neptuneSubnetGroupNameSelector?: null | v1.#Selector @go(NeptuneSubnetGroupNameSelector,*v1.Selector) - - // The port on which the DB accepts connections. Defaults to 8182. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled. Eg: "04:00-09:00" - // +kubebuilder:validation:Optional - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The window to perform maintenance in. - // Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". - // +kubebuilder:validation:Optional - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer. - // +kubebuilder:validation:Optional - promotionTier?: null | float64 @go(PromotionTier,*float64) - - // Bool to control if instance is publicly accessible. Default is false. - // +kubebuilder:validation:Optional - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ClusterInstanceSpec defines the desired state of ClusterInstance -#ClusterInstanceSpec: { - v1.#ResourceSpec - forProvider: #ClusterInstanceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInstanceInitParameters @go(InitProvider) -} - -// ClusterInstanceStatus defines the observed state of ClusterInstance. -#ClusterInstanceStatus: { - v1.#ResourceStatus - atProvider?: #ClusterInstanceObservation @go(AtProvider) -} - -// ClusterInstance is the Schema for the ClusterInstances API. Provides an Neptune Cluster Resource Instance -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterInstance: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceClass) || (has(self.initProvider) && has(self.initProvider.instanceClass))",message="spec.forProvider.instanceClass is a required parameter" - spec: #ClusterInstanceSpec @go(Spec) - status?: #ClusterInstanceStatus @go(Status) -} - -// ClusterInstanceList contains a list of ClusterInstances -#ClusterInstanceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterInstance] @go(Items,[]ClusterInstance) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_clusterparametergroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_clusterparametergroup_types_go_gen.cue deleted file mode 100644 index e2908f7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_clusterparametergroup_types_go_gen.cue +++ /dev/null @@ -1,153 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/neptune/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterParameterGroupInitParameters: { - // The description of the neptune cluster parameter group. - description?: null | string @go(Description,*string) - - // The family of the neptune cluster parameter group. - family?: null | string @go(Family,*string) - - // A list of neptune parameters to apply. - parameter?: [...#ParameterInitParameters] @go(Parameter,[]ParameterInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterParameterGroupObservation: { - // The ARN of the neptune cluster parameter group. - arn?: null | string @go(Arn,*string) - - // The description of the neptune cluster parameter group. - description?: null | string @go(Description,*string) - - // The family of the neptune cluster parameter group. - family?: null | string @go(Family,*string) - - // The neptune cluster parameter group name. - id?: null | string @go(ID,*string) - - // A list of neptune parameters to apply. - parameter?: [...#ParameterObservation] @go(Parameter,[]ParameterObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ClusterParameterGroupParameters: { - // The description of the neptune cluster parameter group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The family of the neptune cluster parameter group. - // +kubebuilder:validation:Optional - family?: null | string @go(Family,*string) - - // A list of neptune parameters to apply. - // +kubebuilder:validation:Optional - parameter?: [...#ParameterParameters] @go(Parameter,[]ParameterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParameterInitParameters: { - // Valid values are immediate and pending-reboot. Defaults to pending-reboot. - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the neptune cluster parameter group. - name?: null | string @go(Name,*string) - - // The value of the neptune parameter. - value?: null | string @go(Value,*string) -} - -#ParameterObservation: { - // Valid values are immediate and pending-reboot. Defaults to pending-reboot. - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the neptune cluster parameter group. - name?: null | string @go(Name,*string) - - // The value of the neptune parameter. - value?: null | string @go(Value,*string) -} - -#ParameterParameters: { - // Valid values are immediate and pending-reboot. Defaults to pending-reboot. - // +kubebuilder:validation:Optional - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the neptune cluster parameter group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of the neptune parameter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// ClusterParameterGroupSpec defines the desired state of ClusterParameterGroup -#ClusterParameterGroupSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameterGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterParameterGroupInitParameters @go(InitProvider) -} - -// ClusterParameterGroupStatus defines the observed state of ClusterParameterGroup. -#ClusterParameterGroupStatus: { - v1.#ResourceStatus - atProvider?: #ClusterParameterGroupObservation @go(AtProvider) -} - -// ClusterParameterGroup is the Schema for the ClusterParameterGroups API. Manages a Neptune Cluster Parameter Group -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterParameterGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.family) || (has(self.initProvider) && has(self.initProvider.family))",message="spec.forProvider.family is a required parameter" - spec: #ClusterParameterGroupSpec @go(Spec) - status?: #ClusterParameterGroupStatus @go(Status) -} - -// ClusterParameterGroupList contains a list of ClusterParameterGroups -#ClusterParameterGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterParameterGroup] @go(Items,[]ClusterParameterGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_clustersnapshot_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_clustersnapshot_types_go_gen.cue deleted file mode 100644 index c92fc13..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_clustersnapshot_types_go_gen.cue +++ /dev/null @@ -1,121 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/neptune/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterSnapshotInitParameters: { -} - -#ClusterSnapshotObservation: { - // Specifies the allocated storage size in gigabytes (GB). - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The DB Cluster Identifier from which to take the snapshot. - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // The Amazon Resource Name (ARN) for the DB Cluster Snapshot. - dbClusterSnapshotArn?: null | string @go(DBClusterSnapshotArn,*string) - - // Specifies the name of the database engine. - engine?: null | string @go(Engine,*string) - - // Version of the database engine for this DB cluster snapshot. - engineVersion?: null | string @go(EngineVersion,*string) - id?: null | string @go(ID,*string) - - // If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // License model information for the restored DB cluster. - licenseModel?: null | string @go(LicenseModel,*string) - - // Port that the DB cluster was listening on at the time of the snapshot. - port?: null | float64 @go(Port,*float64) - snapshotType?: null | string @go(SnapshotType,*string) - - // The Amazon Resource Name (ARN) for the DB Cluster Snapshot. - sourceDbClusterSnapshotArn?: null | string @go(SourceDBClusterSnapshotArn,*string) - - // The status of this DB Cluster Snapshot. - status?: null | string @go(Status,*string) - - // Specifies whether the DB cluster snapshot is encrypted. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // The VPC ID associated with the DB cluster snapshot. - vpcId?: null | string @go(VPCID,*string) -} - -#ClusterSnapshotParameters: { - // The DB Cluster Identifier from which to take the snapshot. - // +crossplane:generate:reference:type=Cluster - // +kubebuilder:validation:Optional - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // Reference to a Cluster to populate dbClusterIdentifier. - // +kubebuilder:validation:Optional - dbClusterIdentifierRef?: null | v1.#Reference @go(DBClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster to populate dbClusterIdentifier. - // +kubebuilder:validation:Optional - dbClusterIdentifierSelector?: null | v1.#Selector @go(DBClusterIdentifierSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ClusterSnapshotSpec defines the desired state of ClusterSnapshot -#ClusterSnapshotSpec: { - v1.#ResourceSpec - forProvider: #ClusterSnapshotParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterSnapshotInitParameters @go(InitProvider) -} - -// ClusterSnapshotStatus defines the observed state of ClusterSnapshot. -#ClusterSnapshotStatus: { - v1.#ResourceStatus - atProvider?: #ClusterSnapshotObservation @go(AtProvider) -} - -// ClusterSnapshot is the Schema for the ClusterSnapshots API. Manages a Neptune database cluster snapshot. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterSnapshot: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ClusterSnapshotSpec @go(Spec) - status?: #ClusterSnapshotStatus @go(Status) -} - -// ClusterSnapshotList contains a list of ClusterSnapshots -#ClusterSnapshotList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterSnapshot] @go(Items,[]ClusterSnapshot) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_eventsubscription_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_eventsubscription_types_go_gen.cue deleted file mode 100644 index acc4441..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_eventsubscription_types_go_gen.cue +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/neptune/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EventSubscriptionInitParameters: { - // A boolean flag to enable/disable the subscription. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // A list of event categories for a source_type that you want to subscribe to. Run aws neptune describe-event-categories to find all the event categories. - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified. - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // The type of source that will be generating the events. Valid options are db-instance, db-security-group, db-parameter-group, db-snapshot, db-cluster or db-cluster-snapshot. If not set, all sources will be subscribed to. - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EventSubscriptionObservation: { - // The Amazon Resource Name of the Neptune event notification subscription. - arn?: null | string @go(Arn,*string) - - // The AWS customer account associated with the Neptune event notification subscription. - customerAwsId?: null | string @go(CustomerAwsID,*string) - - // A boolean flag to enable/disable the subscription. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // A list of event categories for a source_type that you want to subscribe to. Run aws neptune describe-event-categories to find all the event categories. - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // The name of the Neptune event notification subscription. - id?: null | string @go(ID,*string) - - // The ARN of the SNS topic to send events to. - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified. - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // The type of source that will be generating the events. Valid options are db-instance, db-security-group, db-parameter-group, db-snapshot, db-cluster or db-cluster-snapshot. If not set, all sources will be subscribed to. - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#EventSubscriptionParameters: { - // A boolean flag to enable/disable the subscription. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // A list of event categories for a source_type that you want to subscribe to. Run aws neptune describe-event-categories to find all the event categories. - // +kubebuilder:validation:Optional - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of the SNS topic to send events to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // Reference to a Topic in sns to populate snsTopicArn. - // +kubebuilder:validation:Optional - snsTopicArnRef?: null | v1.#Reference @go(SnsTopicArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate snsTopicArn. - // +kubebuilder:validation:Optional - snsTopicArnSelector?: null | v1.#Selector @go(SnsTopicArnSelector,*v1.Selector) - - // A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified. - // +kubebuilder:validation:Optional - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // The type of source that will be generating the events. Valid options are db-instance, db-security-group, db-parameter-group, db-snapshot, db-cluster or db-cluster-snapshot. If not set, all sources will be subscribed to. - // +kubebuilder:validation:Optional - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// EventSubscriptionSpec defines the desired state of EventSubscription -#EventSubscriptionSpec: { - v1.#ResourceSpec - forProvider: #EventSubscriptionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EventSubscriptionInitParameters @go(InitProvider) -} - -// EventSubscriptionStatus defines the observed state of EventSubscription. -#EventSubscriptionStatus: { - v1.#ResourceStatus - atProvider?: #EventSubscriptionObservation @go(AtProvider) -} - -// EventSubscription is the Schema for the EventSubscriptions API. Provides a Neptune event subscription resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EventSubscription: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EventSubscriptionSpec @go(Spec) - status?: #EventSubscriptionStatus @go(Status) -} - -// EventSubscriptionList contains a list of EventSubscriptions -#EventSubscriptionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EventSubscription] @go(Items,[]EventSubscription) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_globalcluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_globalcluster_types_go_gen.cue deleted file mode 100644 index 4bd1894..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_globalcluster_types_go_gen.cue +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/neptune/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GlobalClusterInitParameters: { - // If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // Name of the database engine to be used for this DB cluster. Current Valid values: neptune. Conflicts with source_db_cluster_identifier. - engine?: null | string @go(Engine,*string) - - // Engine version of the global database. Upgrading the engine version will result in all cluster members being immediately updated and will. - engineVersion?: null | string @go(EngineVersion,*string) - - // Specifies whether the DB cluster is encrypted. The default is false unless source_db_cluster_identifier is specified and encrypted. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) -} - -#GlobalClusterMembersInitParameters: { -} - -#GlobalClusterMembersObservation: { - // Amazon Resource Name (ARN) of member DB Cluster. - dbClusterArn?: null | string @go(DBClusterArn,*string) - - // Whether the member is the primary DB Cluster. - isWriter?: null | bool @go(IsWriter,*bool) -} - -#GlobalClusterMembersParameters: { -} - -#GlobalClusterObservation: { - // Global Cluster Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // Name of the database engine to be used for this DB cluster. Current Valid values: neptune. Conflicts with source_db_cluster_identifier. - engine?: null | string @go(Engine,*string) - - // Engine version of the global database. Upgrading the engine version will result in all cluster members being immediately updated and will. - engineVersion?: null | string @go(EngineVersion,*string) - - // Set of objects containing Global Cluster members. - globalClusterMembers?: [...#GlobalClusterMembersObservation] @go(GlobalClusterMembers,[]GlobalClusterMembersObservation) - - // AWS Region-unique, immutable identifier for the global database cluster. This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB cluster is accessed. - globalClusterResourceId?: null | string @go(GlobalClusterResourceID,*string) - - // Neptune Global Cluster. - id?: null | string @go(ID,*string) - - // Amazon Resource Name (ARN) to use as the primary DB Cluster of the Global Cluster on creation. - sourceDbClusterIdentifier?: null | string @go(SourceDBClusterIdentifier,*string) - status?: null | string @go(Status,*string) - - // Specifies whether the DB cluster is encrypted. The default is false unless source_db_cluster_identifier is specified and encrypted. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) -} - -#GlobalClusterParameters: { - // If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - // +kubebuilder:validation:Optional - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // Name of the database engine to be used for this DB cluster. Current Valid values: neptune. Conflicts with source_db_cluster_identifier. - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // Engine version of the global database. Upgrading the engine version will result in all cluster members being immediately updated and will. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Resource Name (ARN) to use as the primary DB Cluster of the Global Cluster on creation. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/neptune/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - sourceDbClusterIdentifier?: null | string @go(SourceDBClusterIdentifier,*string) - - // Reference to a Cluster in neptune to populate sourceDbClusterIdentifier. - // +kubebuilder:validation:Optional - sourceDbClusterIdentifierRef?: null | v1.#Reference @go(SourceDBClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster in neptune to populate sourceDbClusterIdentifier. - // +kubebuilder:validation:Optional - sourceDbClusterIdentifierSelector?: null | v1.#Selector @go(SourceDBClusterIdentifierSelector,*v1.Selector) - - // Specifies whether the DB cluster is encrypted. The default is false unless source_db_cluster_identifier is specified and encrypted. - // +kubebuilder:validation:Optional - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) -} - -// GlobalClusterSpec defines the desired state of GlobalCluster -#GlobalClusterSpec: { - v1.#ResourceSpec - forProvider: #GlobalClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GlobalClusterInitParameters @go(InitProvider) -} - -// GlobalClusterStatus defines the observed state of GlobalCluster. -#GlobalClusterStatus: { - v1.#ResourceStatus - atProvider?: #GlobalClusterObservation @go(AtProvider) -} - -// GlobalCluster is the Schema for the GlobalClusters API. Provides an Neptune Global Cluster Resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GlobalCluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #GlobalClusterSpec @go(Spec) - status?: #GlobalClusterStatus @go(Status) -} - -// GlobalClusterList contains a list of GlobalClusters -#GlobalClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GlobalCluster] @go(Items,[]GlobalCluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 35fcf38..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/neptune/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=neptune.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "neptune.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_parametergroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_parametergroup_types_go_gen.cue deleted file mode 100644 index 9a0ea98..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_parametergroup_types_go_gen.cue +++ /dev/null @@ -1,153 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/neptune/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ParameterGroupInitParameters: { - // The description of the Neptune parameter group. - description?: null | string @go(Description,*string) - - // The family of the Neptune parameter group. - family?: null | string @go(Family,*string) - - // A list of Neptune parameters to apply. - parameter?: [...#ParameterGroupParameterInitParameters] @go(Parameter,[]ParameterGroupParameterInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParameterGroupObservation: { - // The Neptune parameter group Amazon Resource Name (ARN). - arn?: null | string @go(Arn,*string) - - // The description of the Neptune parameter group. - description?: null | string @go(Description,*string) - - // The family of the Neptune parameter group. - family?: null | string @go(Family,*string) - - // The Neptune parameter group name. - id?: null | string @go(ID,*string) - - // A list of Neptune parameters to apply. - parameter?: [...#ParameterGroupParameterObservation] @go(Parameter,[]ParameterGroupParameterObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ParameterGroupParameterInitParameters: { - // The apply method of the Neptune parameter. Valid values are immediate and pending-reboot. Defaults to pending-reboot. - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the Neptune parameter group. - name?: null | string @go(Name,*string) - - // The value of the Neptune parameter. - value?: null | string @go(Value,*string) -} - -#ParameterGroupParameterObservation: { - // The apply method of the Neptune parameter. Valid values are immediate and pending-reboot. Defaults to pending-reboot. - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the Neptune parameter group. - name?: null | string @go(Name,*string) - - // The value of the Neptune parameter. - value?: null | string @go(Value,*string) -} - -#ParameterGroupParameterParameters: { - // The apply method of the Neptune parameter. Valid values are immediate and pending-reboot. Defaults to pending-reboot. - // +kubebuilder:validation:Optional - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the Neptune parameter group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of the Neptune parameter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ParameterGroupParameters: { - // The description of the Neptune parameter group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The family of the Neptune parameter group. - // +kubebuilder:validation:Optional - family?: null | string @go(Family,*string) - - // A list of Neptune parameters to apply. - // +kubebuilder:validation:Optional - parameter?: [...#ParameterGroupParameterParameters] @go(Parameter,[]ParameterGroupParameterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ParameterGroupSpec defines the desired state of ParameterGroup -#ParameterGroupSpec: { - v1.#ResourceSpec - forProvider: #ParameterGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ParameterGroupInitParameters @go(InitProvider) -} - -// ParameterGroupStatus defines the observed state of ParameterGroup. -#ParameterGroupStatus: { - v1.#ResourceStatus - atProvider?: #ParameterGroupObservation @go(AtProvider) -} - -// ParameterGroup is the Schema for the ParameterGroups API. Manages a Neptune Parameter Group -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ParameterGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.family) || (has(self.initProvider) && has(self.initProvider.family))",message="spec.forProvider.family is a required parameter" - spec: #ParameterGroupSpec @go(Spec) - status?: #ParameterGroupStatus @go(Status) -} - -// ParameterGroupList contains a list of ParameterGroups -#ParameterGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ParameterGroup] @go(Items,[]ParameterGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_subnetgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_subnetgroup_types_go_gen.cue deleted file mode 100644 index 6036aba..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/neptune/v1beta1/zz_subnetgroup_types_go_gen.cue +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/neptune/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SubnetGroupInitParameters: { - // The description of the neptune subnet group. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SubnetGroupObservation: { - // The ARN of the neptune subnet group. - arn?: null | string @go(Arn,*string) - - // The description of the neptune subnet group. - description?: null | string @go(Description,*string) - - // The neptune subnet group name. - id?: null | string @go(ID,*string) - - // A list of VPC subnet IDs. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SubnetGroupParameters: { - // The description of the neptune subnet group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // A list of VPC subnet IDs. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SubnetGroupSpec defines the desired state of SubnetGroup -#SubnetGroupSpec: { - v1.#ResourceSpec - forProvider: #SubnetGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SubnetGroupInitParameters @go(InitProvider) -} - -// SubnetGroupStatus defines the observed state of SubnetGroup. -#SubnetGroupStatus: { - v1.#ResourceStatus - atProvider?: #SubnetGroupObservation @go(AtProvider) -} - -// SubnetGroup is the Schema for the SubnetGroups API. Provides an Neptune subnet group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SubnetGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SubnetGroupSpec @go(Spec) - status?: #SubnetGroupStatus @go(Status) -} - -// SubnetGroupList contains a list of SubnetGroups -#SubnetGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SubnetGroup] @go(Items,[]SubnetGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_firewall_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_firewall_types_go_gen.cue deleted file mode 100644 index 87e7081..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_firewall_types_go_gen.cue +++ /dev/null @@ -1,295 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkfirewall/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AttachmentInitParameters: { -} - -#AttachmentObservation: { - // The identifier of the firewall endpoint that AWS Network Firewall has instantiated in the subnet. You use this to identify the firewall endpoint in the VPC route tables, when you redirect the VPC traffic through the endpoint. - endpointId?: null | string @go(EndpointID,*string) - - // The unique identifier for the subnet. - subnetId?: null | string @go(SubnetID,*string) -} - -#AttachmentParameters: { -} - -#EncryptionConfigurationInitParameters: { - // The ID of the customer managed key. You can use any of the key identifiers that KMS supports, unless you're using a key that's managed by another account. If you're using a key managed by another account, then specify the key ARN. - keyId?: null | string @go(KeyID,*string) - - // The type of AWS KMS key to use for encryption of your Network Firewall resources. Valid values are CUSTOMER_KMS and AWS_OWNED_KMS_KEY. - type?: null | string @go(Type,*string) -} - -#EncryptionConfigurationObservation: { - // The ID of the customer managed key. You can use any of the key identifiers that KMS supports, unless you're using a key that's managed by another account. If you're using a key managed by another account, then specify the key ARN. - keyId?: null | string @go(KeyID,*string) - - // The type of AWS KMS key to use for encryption of your Network Firewall resources. Valid values are CUSTOMER_KMS and AWS_OWNED_KMS_KEY. - type?: null | string @go(Type,*string) -} - -#EncryptionConfigurationParameters: { - // The ID of the customer managed key. You can use any of the key identifiers that KMS supports, unless you're using a key that's managed by another account. If you're using a key managed by another account, then specify the key ARN. - // +kubebuilder:validation:Optional - keyId?: null | string @go(KeyID,*string) - - // The type of AWS KMS key to use for encryption of your Network Firewall resources. Valid values are CUSTOMER_KMS and AWS_OWNED_KMS_KEY. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#FirewallInitParameters: { - // A boolean flag indicating whether it is possible to delete the firewall. Defaults to false. - deleteProtection?: null | bool @go(DeleteProtection,*bool) - - // A friendly description of the firewall. - description?: null | string @go(Description,*string) - - // KMS encryption configuration settings. See Encryption Configuration below for details. - encryptionConfiguration?: [...#EncryptionConfigurationInitParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationInitParameters) - - // (Option) A boolean flag indicating whether it is possible to change the associated firewall policy. Defaults to false. - firewallPolicyChangeProtection?: null | bool @go(FirewallPolicyChangeProtection,*bool) - - // A friendly name of the firewall. - name?: null | string @go(Name,*string) - - // A boolean flag indicating whether it is possible to change the associated subnet(s). Defaults to false. - subnetChangeProtection?: null | bool @go(SubnetChangeProtection,*bool) - - // Set of configuration blocks describing the public subnets. Each subnet must belong to a different Availability Zone in the VPC. AWS Network Firewall creates a firewall endpoint in each subnet. See Subnet Mapping below for details. - subnetMapping?: [...#SubnetMappingInitParameters] @go(SubnetMapping,[]SubnetMappingInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FirewallObservation: { - // The Amazon Resource Name (ARN) that identifies the firewall. - arn?: null | string @go(Arn,*string) - - // A boolean flag indicating whether it is possible to delete the firewall. Defaults to false. - deleteProtection?: null | bool @go(DeleteProtection,*bool) - - // A friendly description of the firewall. - description?: null | string @go(Description,*string) - - // KMS encryption configuration settings. See Encryption Configuration below for details. - encryptionConfiguration?: [...#EncryptionConfigurationObservation] @go(EncryptionConfiguration,[]EncryptionConfigurationObservation) - - // The Amazon Resource Name (ARN) of the VPC Firewall policy. - firewallPolicyArn?: null | string @go(FirewallPolicyArn,*string) - - // (Option) A boolean flag indicating whether it is possible to change the associated firewall policy. Defaults to false. - firewallPolicyChangeProtection?: null | bool @go(FirewallPolicyChangeProtection,*bool) - - // Nested list of information about the current status of the firewall. - firewallStatus?: [...#FirewallStatusObservation] @go(FirewallStatus,[]FirewallStatusObservation) - - // The Amazon Resource Name (ARN) that identifies the firewall. - id?: null | string @go(ID,*string) - - // A friendly name of the firewall. - name?: null | string @go(Name,*string) - - // A boolean flag indicating whether it is possible to change the associated subnet(s). Defaults to false. - subnetChangeProtection?: null | bool @go(SubnetChangeProtection,*bool) - - // Set of configuration blocks describing the public subnets. Each subnet must belong to a different Availability Zone in the VPC. AWS Network Firewall creates a firewall endpoint in each subnet. See Subnet Mapping below for details. - subnetMapping?: [...#SubnetMappingObservation] @go(SubnetMapping,[]SubnetMappingObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // A string token used when updating a firewall. - updateToken?: null | string @go(UpdateToken,*string) - - // The unique identifier of the VPC where AWS Network Firewall should create the firewall. - vpcId?: null | string @go(VPCID,*string) -} - -#FirewallParameters: { - // A boolean flag indicating whether it is possible to delete the firewall. Defaults to false. - // +kubebuilder:validation:Optional - deleteProtection?: null | bool @go(DeleteProtection,*bool) - - // A friendly description of the firewall. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // KMS encryption configuration settings. See Encryption Configuration below for details. - // +kubebuilder:validation:Optional - encryptionConfiguration?: [...#EncryptionConfigurationParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationParameters) - - // The Amazon Resource Name (ARN) of the VPC Firewall policy. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkfirewall/v1beta1.FirewallPolicy - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - firewallPolicyArn?: null | string @go(FirewallPolicyArn,*string) - - // Reference to a FirewallPolicy in networkfirewall to populate firewallPolicyArn. - // +kubebuilder:validation:Optional - firewallPolicyArnRef?: null | v1.#Reference @go(FirewallPolicyArnRef,*v1.Reference) - - // Selector for a FirewallPolicy in networkfirewall to populate firewallPolicyArn. - // +kubebuilder:validation:Optional - firewallPolicyArnSelector?: null | v1.#Selector @go(FirewallPolicyArnSelector,*v1.Selector) - - // (Option) A boolean flag indicating whether it is possible to change the associated firewall policy. Defaults to false. - // +kubebuilder:validation:Optional - firewallPolicyChangeProtection?: null | bool @go(FirewallPolicyChangeProtection,*bool) - - // A friendly name of the firewall. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A boolean flag indicating whether it is possible to change the associated subnet(s). Defaults to false. - // +kubebuilder:validation:Optional - subnetChangeProtection?: null | bool @go(SubnetChangeProtection,*bool) - - // Set of configuration blocks describing the public subnets. Each subnet must belong to a different Availability Zone in the VPC. AWS Network Firewall creates a firewall endpoint in each subnet. See Subnet Mapping below for details. - // +kubebuilder:validation:Optional - subnetMapping?: [...#SubnetMappingParameters] @go(SubnetMapping,[]SubnetMappingParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The unique identifier of the VPC where AWS Network Firewall should create the firewall. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -#FirewallStatusInitParameters: { -} - -#FirewallStatusObservation: { - // Set of subnets configured for use by the firewall. - syncStates?: [...#SyncStatesObservation] @go(SyncStates,[]SyncStatesObservation) -} - -#FirewallStatusParameters: { -} - -#SubnetMappingInitParameters: { - // The subnet's IP address type. Valida values: "DUALSTACK", "IPV4". - ipAddressType?: null | string @go(IPAddressType,*string) -} - -#SubnetMappingObservation: { - // The subnet's IP address type. Valida values: "DUALSTACK", "IPV4". - ipAddressType?: null | string @go(IPAddressType,*string) - - // The unique identifier for the subnet. - subnetId?: null | string @go(SubnetID,*string) -} - -#SubnetMappingParameters: { - // The subnet's IP address type. Valida values: "DUALSTACK", "IPV4". - // +kubebuilder:validation:Optional - ipAddressType?: null | string @go(IPAddressType,*string) - - // The unique identifier for the subnet. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) -} - -#SyncStatesInitParameters: { -} - -#SyncStatesObservation: { - // Nested list describing the attachment status of the firewall's association with a single VPC subnet. - attachment?: [...#AttachmentObservation] @go(Attachment,[]AttachmentObservation) - - // The Availability Zone where the subnet is configured. - availabilityZone?: null | string @go(AvailabilityZone,*string) -} - -#SyncStatesParameters: { -} - -// FirewallSpec defines the desired state of Firewall -#FirewallSpec: { - v1.#ResourceSpec - forProvider: #FirewallParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FirewallInitParameters @go(InitProvider) -} - -// FirewallStatus defines the observed state of Firewall. -#FirewallStatus: { - v1.#ResourceStatus - atProvider?: #FirewallObservation @go(AtProvider) -} - -// Firewall is the Schema for the Firewalls API. Provides an AWS Network Firewall Firewall resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Firewall: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.subnetMapping) || (has(self.initProvider) && has(self.initProvider.subnetMapping))",message="spec.forProvider.subnetMapping is a required parameter" - spec: #FirewallSpec @go(Spec) - status?: #FirewallStatus @go(Status) -} - -// FirewallList contains a list of Firewalls -#FirewallList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Firewall] @go(Items,[]Firewall) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_firewallpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_firewallpolicy_types_go_gen.cue deleted file mode 100644 index 2a0f8e0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_firewallpolicy_types_go_gen.cue +++ /dev/null @@ -1,410 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkfirewall/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionDefinitionInitParameters: { - // A configuration block describing the stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. You can pair this custom action with any of the standard stateless rule actions. See Publish Metric Action below for details. - publishMetricAction?: [...#PublishMetricActionInitParameters] @go(PublishMetricAction,[]PublishMetricActionInitParameters) -} - -#ActionDefinitionObservation: { - // A configuration block describing the stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. You can pair this custom action with any of the standard stateless rule actions. See Publish Metric Action below for details. - publishMetricAction?: [...#PublishMetricActionObservation] @go(PublishMetricAction,[]PublishMetricActionObservation) -} - -#ActionDefinitionParameters: { - // A configuration block describing the stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. You can pair this custom action with any of the standard stateless rule actions. See Publish Metric Action below for details. - // +kubebuilder:validation:Optional - publishMetricAction: [...#PublishMetricActionParameters] @go(PublishMetricAction,[]PublishMetricActionParameters) -} - -#DimensionInitParameters: { - // The string value to use in the custom metric dimension. - value?: null | string @go(Value,*string) -} - -#DimensionObservation: { - // The string value to use in the custom metric dimension. - value?: null | string @go(Value,*string) -} - -#DimensionParameters: { - // The string value to use in the custom metric dimension. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#FirewallPolicyEncryptionConfigurationInitParameters: { - // The ID of the customer managed key. You can use any of the key identifiers that KMS supports, unless you're using a key that's managed by another account. If you're using a key managed by another account, then specify the key ARN. - keyId?: null | string @go(KeyID,*string) - - // The type of AWS KMS key to use for encryption of your Network Firewall resources. Valid values are CUSTOMER_KMS and AWS_OWNED_KMS_KEY. - type?: null | string @go(Type,*string) -} - -#FirewallPolicyEncryptionConfigurationObservation: { - // The ID of the customer managed key. You can use any of the key identifiers that KMS supports, unless you're using a key that's managed by another account. If you're using a key managed by another account, then specify the key ARN. - keyId?: null | string @go(KeyID,*string) - - // The type of AWS KMS key to use for encryption of your Network Firewall resources. Valid values are CUSTOMER_KMS and AWS_OWNED_KMS_KEY. - type?: null | string @go(Type,*string) -} - -#FirewallPolicyEncryptionConfigurationParameters: { - // The ID of the customer managed key. You can use any of the key identifiers that KMS supports, unless you're using a key that's managed by another account. If you're using a key managed by another account, then specify the key ARN. - // +kubebuilder:validation:Optional - keyId?: null | string @go(KeyID,*string) - - // The type of AWS KMS key to use for encryption of your Network Firewall resources. Valid values are CUSTOMER_KMS and AWS_OWNED_KMS_KEY. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#FirewallPolicyFirewallPolicyInitParameters: { - // Set of actions to take on a packet if it does not match any stateful rules in the policy. This can only be specified if the policy has a stateful_engine_options block with a rule_order value of STRICT_ORDER. You can specify one of either or neither values of aws:drop_strict or aws:drop_established, as well as any combination of aws:alert_strict and aws:alert_established. - statefulDefaultActions?: [...null | string] @go(StatefulDefaultActions,[]*string) - - // A configuration block that defines options on how the policy handles stateful rules. See Stateful Engine Options below for details. - statefulEngineOptions?: [...#StatefulEngineOptionsInitParameters] @go(StatefulEngineOptions,[]StatefulEngineOptionsInitParameters) - - // Set of configuration blocks containing references to the stateful rule groups that are used in the policy. See Stateful Rule Group Reference below for details. - statefulRuleGroupReference?: [...#StatefulRuleGroupReferenceInitParameters] @go(StatefulRuleGroupReference,[]StatefulRuleGroupReferenceInitParameters) - - // Set of configuration blocks describing the custom action definitions that are available for use in the firewall policy's stateless_default_actions. See Stateless Custom Action below for details. - statelessCustomAction?: [...#StatelessCustomActionInitParameters] @go(StatelessCustomAction,[]StatelessCustomActionInitParameters) - - // Set of actions to take on a packet if it does not match any of the stateless rules in the policy. You must specify one of the standard actions including: aws:drop, aws:pass, or aws:forward_to_sfe. - // In addition, you can specify custom actions that are compatible with your standard action choice. If you want non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe. - statelessDefaultActions?: [...null | string] @go(StatelessDefaultActions,[]*string) - - // Set of actions to take on a fragmented packet if it does not match any of the stateless rules in the policy. You must specify one of the standard actions including: aws:drop, aws:pass, or aws:forward_to_sfe. - // In addition, you can specify custom actions that are compatible with your standard action choice. If you want non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe. - statelessFragmentDefaultActions?: [...null | string] @go(StatelessFragmentDefaultActions,[]*string) - - // Set of configuration blocks containing references to the stateless rule groups that are used in the policy. See Stateless Rule Group Reference below for details. - statelessRuleGroupReference?: [...#StatelessRuleGroupReferenceInitParameters] @go(StatelessRuleGroupReference,[]StatelessRuleGroupReferenceInitParameters) -} - -#FirewallPolicyFirewallPolicyObservation: { - // Set of actions to take on a packet if it does not match any stateful rules in the policy. This can only be specified if the policy has a stateful_engine_options block with a rule_order value of STRICT_ORDER. You can specify one of either or neither values of aws:drop_strict or aws:drop_established, as well as any combination of aws:alert_strict and aws:alert_established. - statefulDefaultActions?: [...null | string] @go(StatefulDefaultActions,[]*string) - - // A configuration block that defines options on how the policy handles stateful rules. See Stateful Engine Options below for details. - statefulEngineOptions?: [...#StatefulEngineOptionsObservation] @go(StatefulEngineOptions,[]StatefulEngineOptionsObservation) - - // Set of configuration blocks containing references to the stateful rule groups that are used in the policy. See Stateful Rule Group Reference below for details. - statefulRuleGroupReference?: [...#StatefulRuleGroupReferenceObservation] @go(StatefulRuleGroupReference,[]StatefulRuleGroupReferenceObservation) - - // Set of configuration blocks describing the custom action definitions that are available for use in the firewall policy's stateless_default_actions. See Stateless Custom Action below for details. - statelessCustomAction?: [...#StatelessCustomActionObservation] @go(StatelessCustomAction,[]StatelessCustomActionObservation) - - // Set of actions to take on a packet if it does not match any of the stateless rules in the policy. You must specify one of the standard actions including: aws:drop, aws:pass, or aws:forward_to_sfe. - // In addition, you can specify custom actions that are compatible with your standard action choice. If you want non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe. - statelessDefaultActions?: [...null | string] @go(StatelessDefaultActions,[]*string) - - // Set of actions to take on a fragmented packet if it does not match any of the stateless rules in the policy. You must specify one of the standard actions including: aws:drop, aws:pass, or aws:forward_to_sfe. - // In addition, you can specify custom actions that are compatible with your standard action choice. If you want non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe. - statelessFragmentDefaultActions?: [...null | string] @go(StatelessFragmentDefaultActions,[]*string) - - // Set of configuration blocks containing references to the stateless rule groups that are used in the policy. See Stateless Rule Group Reference below for details. - statelessRuleGroupReference?: [...#StatelessRuleGroupReferenceObservation] @go(StatelessRuleGroupReference,[]StatelessRuleGroupReferenceObservation) -} - -#FirewallPolicyFirewallPolicyParameters: { - // Set of actions to take on a packet if it does not match any stateful rules in the policy. This can only be specified if the policy has a stateful_engine_options block with a rule_order value of STRICT_ORDER. You can specify one of either or neither values of aws:drop_strict or aws:drop_established, as well as any combination of aws:alert_strict and aws:alert_established. - // +kubebuilder:validation:Optional - statefulDefaultActions?: [...null | string] @go(StatefulDefaultActions,[]*string) - - // A configuration block that defines options on how the policy handles stateful rules. See Stateful Engine Options below for details. - // +kubebuilder:validation:Optional - statefulEngineOptions?: [...#StatefulEngineOptionsParameters] @go(StatefulEngineOptions,[]StatefulEngineOptionsParameters) - - // Set of configuration blocks containing references to the stateful rule groups that are used in the policy. See Stateful Rule Group Reference below for details. - // +kubebuilder:validation:Optional - statefulRuleGroupReference?: [...#StatefulRuleGroupReferenceParameters] @go(StatefulRuleGroupReference,[]StatefulRuleGroupReferenceParameters) - - // Set of configuration blocks describing the custom action definitions that are available for use in the firewall policy's stateless_default_actions. See Stateless Custom Action below for details. - // +kubebuilder:validation:Optional - statelessCustomAction?: [...#StatelessCustomActionParameters] @go(StatelessCustomAction,[]StatelessCustomActionParameters) - - // Set of actions to take on a packet if it does not match any of the stateless rules in the policy. You must specify one of the standard actions including: aws:drop, aws:pass, or aws:forward_to_sfe. - // In addition, you can specify custom actions that are compatible with your standard action choice. If you want non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe. - // +kubebuilder:validation:Optional - statelessDefaultActions: [...null | string] @go(StatelessDefaultActions,[]*string) - - // Set of actions to take on a fragmented packet if it does not match any of the stateless rules in the policy. You must specify one of the standard actions including: aws:drop, aws:pass, or aws:forward_to_sfe. - // In addition, you can specify custom actions that are compatible with your standard action choice. If you want non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe. - // +kubebuilder:validation:Optional - statelessFragmentDefaultActions: [...null | string] @go(StatelessFragmentDefaultActions,[]*string) - - // Set of configuration blocks containing references to the stateless rule groups that are used in the policy. See Stateless Rule Group Reference below for details. - // +kubebuilder:validation:Optional - statelessRuleGroupReference?: [...#StatelessRuleGroupReferenceParameters] @go(StatelessRuleGroupReference,[]StatelessRuleGroupReferenceParameters) -} - -#FirewallPolicyInitParameters: { - // A friendly description of the firewall policy. - description?: null | string @go(Description,*string) - - // KMS encryption configuration settings. See Encryption Configuration below for details. - encryptionConfiguration?: [...#FirewallPolicyEncryptionConfigurationInitParameters] @go(EncryptionConfiguration,[]FirewallPolicyEncryptionConfigurationInitParameters) - - // A configuration block describing the rule groups and policy actions to use in the firewall policy. See Firewall Policy below for details. - firewallPolicy?: [...#FirewallPolicyFirewallPolicyInitParameters] @go(FirewallPolicy,[]FirewallPolicyFirewallPolicyInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FirewallPolicyObservation: { - // The Amazon Resource Name (ARN) that identifies the firewall policy. - arn?: null | string @go(Arn,*string) - - // A friendly description of the firewall policy. - description?: null | string @go(Description,*string) - - // KMS encryption configuration settings. See Encryption Configuration below for details. - encryptionConfiguration?: [...#FirewallPolicyEncryptionConfigurationObservation] @go(EncryptionConfiguration,[]FirewallPolicyEncryptionConfigurationObservation) - - // A configuration block describing the rule groups and policy actions to use in the firewall policy. See Firewall Policy below for details. - firewallPolicy?: [...#FirewallPolicyFirewallPolicyObservation] @go(FirewallPolicy,[]FirewallPolicyFirewallPolicyObservation) - - // The Amazon Resource Name (ARN) that identifies the firewall policy. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // A string token used when updating a firewall policy. - updateToken?: null | string @go(UpdateToken,*string) -} - -#FirewallPolicyParameters: { - // A friendly description of the firewall policy. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // KMS encryption configuration settings. See Encryption Configuration below for details. - // +kubebuilder:validation:Optional - encryptionConfiguration?: [...#FirewallPolicyEncryptionConfigurationParameters] @go(EncryptionConfiguration,[]FirewallPolicyEncryptionConfigurationParameters) - - // A configuration block describing the rule groups and policy actions to use in the firewall policy. See Firewall Policy below for details. - // +kubebuilder:validation:Optional - firewallPolicy?: [...#FirewallPolicyFirewallPolicyParameters] @go(FirewallPolicy,[]FirewallPolicyFirewallPolicyParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#OverrideInitParameters: { - // The action that changes the rule group from DROP to ALERT . This only applies to managed rule groups. - action?: null | string @go(Action,*string) -} - -#OverrideObservation: { - // The action that changes the rule group from DROP to ALERT . This only applies to managed rule groups. - action?: null | string @go(Action,*string) -} - -#OverrideParameters: { - // The action that changes the rule group from DROP to ALERT . This only applies to managed rule groups. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) -} - -#PublishMetricActionInitParameters: { - // Set of configuration blocks describing dimension settings to use for Amazon CloudWatch custom metrics. See Dimension below for more details. - dimension?: [...#DimensionInitParameters] @go(Dimension,[]DimensionInitParameters) -} - -#PublishMetricActionObservation: { - // Set of configuration blocks describing dimension settings to use for Amazon CloudWatch custom metrics. See Dimension below for more details. - dimension?: [...#DimensionObservation] @go(Dimension,[]DimensionObservation) -} - -#PublishMetricActionParameters: { - // Set of configuration blocks describing dimension settings to use for Amazon CloudWatch custom metrics. See Dimension below for more details. - // +kubebuilder:validation:Optional - dimension: [...#DimensionParameters] @go(Dimension,[]DimensionParameters) -} - -#StatefulEngineOptionsInitParameters: { - // Indicates how to manage the order of stateful rule evaluation for the policy. Default value: DEFAULT_ACTION_ORDER. Valid values: DEFAULT_ACTION_ORDER, STRICT_ORDER. - ruleOrder?: null | string @go(RuleOrder,*string) -} - -#StatefulEngineOptionsObservation: { - // Indicates how to manage the order of stateful rule evaluation for the policy. Default value: DEFAULT_ACTION_ORDER. Valid values: DEFAULT_ACTION_ORDER, STRICT_ORDER. - ruleOrder?: null | string @go(RuleOrder,*string) -} - -#StatefulEngineOptionsParameters: { - // Indicates how to manage the order of stateful rule evaluation for the policy. Default value: DEFAULT_ACTION_ORDER. Valid values: DEFAULT_ACTION_ORDER, STRICT_ORDER. - // +kubebuilder:validation:Optional - ruleOrder?: null | string @go(RuleOrder,*string) -} - -#StatefulRuleGroupReferenceInitParameters: { - // Configuration block for override values - override?: [...#OverrideInitParameters] @go(Override,[]OverrideInitParameters) - - // An integer setting that indicates the order in which to run the stateless rule groups in a single policy. AWS Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting. - priority?: null | float64 @go(Priority,*float64) -} - -#StatefulRuleGroupReferenceObservation: { - // Configuration block for override values - override?: [...#OverrideObservation] @go(Override,[]OverrideObservation) - - // An integer setting that indicates the order in which to run the stateless rule groups in a single policy. AWS Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting. - priority?: null | float64 @go(Priority,*float64) - - // The Amazon Resource Name (ARN) of the stateless rule group. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#StatefulRuleGroupReferenceParameters: { - // Configuration block for override values - // +kubebuilder:validation:Optional - override?: [...#OverrideParameters] @go(Override,[]OverrideParameters) - - // An integer setting that indicates the order in which to run the stateless rule groups in a single policy. AWS Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // The Amazon Resource Name (ARN) of the stateless rule group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkfirewall/v1beta1.RuleGroup - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a RuleGroup in networkfirewall to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a RuleGroup in networkfirewall to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) -} - -#StatelessCustomActionInitParameters: { - // A configuration block describing the custom action associated with the action_name. See Action Definition below for details. - actionDefinition?: [...#ActionDefinitionInitParameters] @go(ActionDefinition,[]ActionDefinitionInitParameters) - - // A friendly name of the custom action. - actionName?: null | string @go(ActionName,*string) -} - -#StatelessCustomActionObservation: { - // A configuration block describing the custom action associated with the action_name. See Action Definition below for details. - actionDefinition?: [...#ActionDefinitionObservation] @go(ActionDefinition,[]ActionDefinitionObservation) - - // A friendly name of the custom action. - actionName?: null | string @go(ActionName,*string) -} - -#StatelessCustomActionParameters: { - // A configuration block describing the custom action associated with the action_name. See Action Definition below for details. - // +kubebuilder:validation:Optional - actionDefinition: [...#ActionDefinitionParameters] @go(ActionDefinition,[]ActionDefinitionParameters) - - // A friendly name of the custom action. - // +kubebuilder:validation:Optional - actionName?: null | string @go(ActionName,*string) -} - -#StatelessRuleGroupReferenceInitParameters: { - // An integer setting that indicates the order in which to run the stateless rule groups in a single policy. AWS Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting. - priority?: null | float64 @go(Priority,*float64) -} - -#StatelessRuleGroupReferenceObservation: { - // An integer setting that indicates the order in which to run the stateless rule groups in a single policy. AWS Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting. - priority?: null | float64 @go(Priority,*float64) - - // The Amazon Resource Name (ARN) of the stateless rule group. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#StatelessRuleGroupReferenceParameters: { - // An integer setting that indicates the order in which to run the stateless rule groups in a single policy. AWS Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // The Amazon Resource Name (ARN) of the stateless rule group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkfirewall/v1beta1.RuleGroup - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a RuleGroup in networkfirewall to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a RuleGroup in networkfirewall to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) -} - -// FirewallPolicySpec defines the desired state of FirewallPolicy -#FirewallPolicySpec: { - v1.#ResourceSpec - forProvider: #FirewallPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FirewallPolicyInitParameters @go(InitProvider) -} - -// FirewallPolicyStatus defines the observed state of FirewallPolicy. -#FirewallPolicyStatus: { - v1.#ResourceStatus - atProvider?: #FirewallPolicyObservation @go(AtProvider) -} - -// FirewallPolicy is the Schema for the FirewallPolicys API. Provides an AWS Network Firewall Policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FirewallPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.firewallPolicy) || (has(self.initProvider) && has(self.initProvider.firewallPolicy))",message="spec.forProvider.firewallPolicy is a required parameter" - spec: #FirewallPolicySpec @go(Spec) - status?: #FirewallPolicyStatus @go(Status) -} - -// FirewallPolicyList contains a list of FirewallPolicys -#FirewallPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FirewallPolicy] @go(Items,[]FirewallPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 6472b55..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkfirewall/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=networkfirewall.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "networkfirewall.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_loggingconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_loggingconfiguration_types_go_gen.cue deleted file mode 100644 index 05fdeb3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_loggingconfiguration_types_go_gen.cue +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkfirewall/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LogDestinationConfigInitParameters: { - // A map describing the logging destination for the chosen log_destination_type. - logDestination?: {[string]: null | string} @go(LogDestination,map[string]*string) - - // The location to send logs to. Valid values: S3, CloudWatchLogs, KinesisDataFirehose. - logDestinationType?: null | string @go(LogDestinationType,*string) - - // The type of log to send. Valid values: ALERT or FLOW. Alert logs report traffic that matches a StatefulRule with an action setting that sends a log message. Flow logs are standard network traffic flow logs. - logType?: null | string @go(LogType,*string) -} - -#LogDestinationConfigObservation: { - // A map describing the logging destination for the chosen log_destination_type. - logDestination?: {[string]: null | string} @go(LogDestination,map[string]*string) - - // The location to send logs to. Valid values: S3, CloudWatchLogs, KinesisDataFirehose. - logDestinationType?: null | string @go(LogDestinationType,*string) - - // The type of log to send. Valid values: ALERT or FLOW. Alert logs report traffic that matches a StatefulRule with an action setting that sends a log message. Flow logs are standard network traffic flow logs. - logType?: null | string @go(LogType,*string) -} - -#LogDestinationConfigParameters: { - // A map describing the logging destination for the chosen log_destination_type. - // +kubebuilder:validation:Optional - logDestination: {[string]: null | string} @go(LogDestination,map[string]*string) - - // The location to send logs to. Valid values: S3, CloudWatchLogs, KinesisDataFirehose. - // +kubebuilder:validation:Optional - logDestinationType?: null | string @go(LogDestinationType,*string) - - // The type of log to send. Valid values: ALERT or FLOW. Alert logs report traffic that matches a StatefulRule with an action setting that sends a log message. Flow logs are standard network traffic flow logs. - // +kubebuilder:validation:Optional - logType?: null | string @go(LogType,*string) -} - -#LoggingConfigurationInitParameters: { - // A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details. - loggingConfiguration?: [...#LoggingConfigurationLoggingConfigurationInitParameters] @go(LoggingConfiguration,[]LoggingConfigurationLoggingConfigurationInitParameters) -} - -#LoggingConfigurationLoggingConfigurationInitParameters: { - // Set of configuration blocks describing the logging details for a firewall. See Log Destination Config below for details. At most, only two blocks can be specified; one for FLOW logs and one for ALERT logs. - logDestinationConfig?: [...#LogDestinationConfigInitParameters] @go(LogDestinationConfig,[]LogDestinationConfigInitParameters) -} - -#LoggingConfigurationLoggingConfigurationObservation: { - // Set of configuration blocks describing the logging details for a firewall. See Log Destination Config below for details. At most, only two blocks can be specified; one for FLOW logs and one for ALERT logs. - logDestinationConfig?: [...#LogDestinationConfigObservation] @go(LogDestinationConfig,[]LogDestinationConfigObservation) -} - -#LoggingConfigurationLoggingConfigurationParameters: { - // Set of configuration blocks describing the logging details for a firewall. See Log Destination Config below for details. At most, only two blocks can be specified; one for FLOW logs and one for ALERT logs. - // +kubebuilder:validation:Optional - logDestinationConfig: [...#LogDestinationConfigParameters] @go(LogDestinationConfig,[]LogDestinationConfigParameters) -} - -#LoggingConfigurationObservation: { - // The Amazon Resource Name (ARN) of the Network Firewall firewall. - firewallArn?: null | string @go(FirewallArn,*string) - - // The Amazon Resource Name (ARN) of the associated firewall. - id?: null | string @go(ID,*string) - - // A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details. - loggingConfiguration?: [...#LoggingConfigurationLoggingConfigurationObservation] @go(LoggingConfiguration,[]LoggingConfigurationLoggingConfigurationObservation) -} - -#LoggingConfigurationParameters: { - // The Amazon Resource Name (ARN) of the Network Firewall firewall. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkfirewall/v1beta1.Firewall - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - firewallArn?: null | string @go(FirewallArn,*string) - - // Reference to a Firewall in networkfirewall to populate firewallArn. - // +kubebuilder:validation:Optional - firewallArnRef?: null | v1.#Reference @go(FirewallArnRef,*v1.Reference) - - // Selector for a Firewall in networkfirewall to populate firewallArn. - // +kubebuilder:validation:Optional - firewallArnSelector?: null | v1.#Selector @go(FirewallArnSelector,*v1.Selector) - - // A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details. - // +kubebuilder:validation:Optional - loggingConfiguration?: [...#LoggingConfigurationLoggingConfigurationParameters] @go(LoggingConfiguration,[]LoggingConfigurationLoggingConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// LoggingConfigurationSpec defines the desired state of LoggingConfiguration -#LoggingConfigurationSpec: { - v1.#ResourceSpec - forProvider: #LoggingConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LoggingConfigurationInitParameters @go(InitProvider) -} - -// LoggingConfigurationStatus defines the observed state of LoggingConfiguration. -#LoggingConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #LoggingConfigurationObservation @go(AtProvider) -} - -// LoggingConfiguration is the Schema for the LoggingConfigurations API. Provides an AWS Network Firewall Logging Configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LoggingConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.loggingConfiguration) || (has(self.initProvider) && has(self.initProvider.loggingConfiguration))",message="spec.forProvider.loggingConfiguration is a required parameter" - spec: #LoggingConfigurationSpec @go(Spec) - status?: #LoggingConfigurationStatus @go(Status) -} - -// LoggingConfigurationList contains a list of LoggingConfigurations -#LoggingConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LoggingConfiguration] @go(Items,[]LoggingConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_rulegroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_rulegroup_types_go_gen.cue deleted file mode 100644 index d217fbf..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkfirewall/v1beta1/zz_rulegroup_types_go_gen.cue +++ /dev/null @@ -1,970 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkfirewall/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionDefinitionPublishMetricActionInitParameters: { - // Set of configuration blocks containing the dimension settings to use for Amazon CloudWatch custom metrics. See Dimension below for details. - dimension?: [...#PublishMetricActionDimensionInitParameters] @go(Dimension,[]PublishMetricActionDimensionInitParameters) -} - -#ActionDefinitionPublishMetricActionObservation: { - // Set of configuration blocks containing the dimension settings to use for Amazon CloudWatch custom metrics. See Dimension below for details. - dimension?: [...#PublishMetricActionDimensionObservation] @go(Dimension,[]PublishMetricActionDimensionObservation) -} - -#ActionDefinitionPublishMetricActionParameters: { - // Set of configuration blocks containing the dimension settings to use for Amazon CloudWatch custom metrics. See Dimension below for details. - // +kubebuilder:validation:Optional - dimension: [...#PublishMetricActionDimensionParameters] @go(Dimension,[]PublishMetricActionDimensionParameters) -} - -#CustomActionActionDefinitionInitParameters: { - // A configuration block describing the stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. You can pair this custom action with any of the standard stateless rule actions. See Publish Metric Action below for details. - publishMetricAction?: [...#ActionDefinitionPublishMetricActionInitParameters] @go(PublishMetricAction,[]ActionDefinitionPublishMetricActionInitParameters) -} - -#CustomActionActionDefinitionObservation: { - // A configuration block describing the stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. You can pair this custom action with any of the standard stateless rule actions. See Publish Metric Action below for details. - publishMetricAction?: [...#ActionDefinitionPublishMetricActionObservation] @go(PublishMetricAction,[]ActionDefinitionPublishMetricActionObservation) -} - -#CustomActionActionDefinitionParameters: { - // A configuration block describing the stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. You can pair this custom action with any of the standard stateless rule actions. See Publish Metric Action below for details. - // +kubebuilder:validation:Optional - publishMetricAction: [...#ActionDefinitionPublishMetricActionParameters] @go(PublishMetricAction,[]ActionDefinitionPublishMetricActionParameters) -} - -#CustomActionInitParameters: { - // A configuration block describing the custom action associated with the action_name. See Action Definition below for details. - actionDefinition?: [...#CustomActionActionDefinitionInitParameters] @go(ActionDefinition,[]CustomActionActionDefinitionInitParameters) - - // A friendly name of the custom action. - actionName?: null | string @go(ActionName,*string) -} - -#CustomActionObservation: { - // A configuration block describing the custom action associated with the action_name. See Action Definition below for details. - actionDefinition?: [...#CustomActionActionDefinitionObservation] @go(ActionDefinition,[]CustomActionActionDefinitionObservation) - - // A friendly name of the custom action. - actionName?: null | string @go(ActionName,*string) -} - -#CustomActionParameters: { - // A configuration block describing the custom action associated with the action_name. See Action Definition below for details. - // +kubebuilder:validation:Optional - actionDefinition: [...#CustomActionActionDefinitionParameters] @go(ActionDefinition,[]CustomActionActionDefinitionParameters) - - // A friendly name of the custom action. - // +kubebuilder:validation:Optional - actionName?: null | string @go(ActionName,*string) -} - -#DestinationInitParameters: { - // An IP address or a block of IP addresses in CIDR notation. AWS Network Firewall supports all address ranges for IPv4. - addressDefinition?: null | string @go(AddressDefinition,*string) -} - -#DestinationObservation: { - // An IP address or a block of IP addresses in CIDR notation. AWS Network Firewall supports all address ranges for IPv4. - addressDefinition?: null | string @go(AddressDefinition,*string) -} - -#DestinationParameters: { - // An IP address or a block of IP addresses in CIDR notation. AWS Network Firewall supports all address ranges for IPv4. - // +kubebuilder:validation:Optional - addressDefinition?: null | string @go(AddressDefinition,*string) -} - -#DestinationPortInitParameters: { - // The lower limit of the port range. This must be less than or equal to the to_port. - fromPort?: null | float64 @go(FromPort,*float64) - - // The upper limit of the port range. This must be greater than or equal to the from_port. - toPort?: null | float64 @go(ToPort,*float64) -} - -#DestinationPortObservation: { - // The lower limit of the port range. This must be less than or equal to the to_port. - fromPort?: null | float64 @go(FromPort,*float64) - - // The upper limit of the port range. This must be greater than or equal to the from_port. - toPort?: null | float64 @go(ToPort,*float64) -} - -#DestinationPortParameters: { - // The lower limit of the port range. This must be less than or equal to the to_port. - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // The upper limit of the port range. This must be greater than or equal to the from_port. - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -#HeaderInitParameters: { - // Set of configuration blocks describing the destination IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address. See Destination below for details. - destination?: null | string @go(Destination,*string) - - // Set of configuration blocks describing the destination ports to inspect for. If not specified, this matches with any destination port. See Destination Port below for details. - destinationPort?: null | string @go(DestinationPort,*string) - - // The direction of traffic flow to inspect. Valid values: ANY or FORWARD. - direction?: null | string @go(Direction,*string) - - // The protocol to inspect. Valid values: IP, TCP, UDP, ICMP, HTTP, FTP, TLS, SMB, DNS, DCERPC, SSH, SMTP, IMAP, MSN, KRB5, IKEV2, TFTP, NTP, DHCP. - protocol?: null | string @go(Protocol,*string) - - // Set of configuration blocks describing the source IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address. See Source below for details. - source?: null | string @go(Source,*string) - - // Set of configuration blocks describing the source ports to inspect for. If not specified, this matches with any source port. See Source Port below for details. - sourcePort?: null | string @go(SourcePort,*string) -} - -#HeaderObservation: { - // Set of configuration blocks describing the destination IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address. See Destination below for details. - destination?: null | string @go(Destination,*string) - - // Set of configuration blocks describing the destination ports to inspect for. If not specified, this matches with any destination port. See Destination Port below for details. - destinationPort?: null | string @go(DestinationPort,*string) - - // The direction of traffic flow to inspect. Valid values: ANY or FORWARD. - direction?: null | string @go(Direction,*string) - - // The protocol to inspect. Valid values: IP, TCP, UDP, ICMP, HTTP, FTP, TLS, SMB, DNS, DCERPC, SSH, SMTP, IMAP, MSN, KRB5, IKEV2, TFTP, NTP, DHCP. - protocol?: null | string @go(Protocol,*string) - - // Set of configuration blocks describing the source IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address. See Source below for details. - source?: null | string @go(Source,*string) - - // Set of configuration blocks describing the source ports to inspect for. If not specified, this matches with any source port. See Source Port below for details. - sourcePort?: null | string @go(SourcePort,*string) -} - -#HeaderParameters: { - // Set of configuration blocks describing the destination IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address. See Destination below for details. - // +kubebuilder:validation:Optional - destination?: null | string @go(Destination,*string) - - // Set of configuration blocks describing the destination ports to inspect for. If not specified, this matches with any destination port. See Destination Port below for details. - // +kubebuilder:validation:Optional - destinationPort?: null | string @go(DestinationPort,*string) - - // The direction of traffic flow to inspect. Valid values: ANY or FORWARD. - // +kubebuilder:validation:Optional - direction?: null | string @go(Direction,*string) - - // The protocol to inspect. Valid values: IP, TCP, UDP, ICMP, HTTP, FTP, TLS, SMB, DNS, DCERPC, SSH, SMTP, IMAP, MSN, KRB5, IKEV2, TFTP, NTP, DHCP. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Set of configuration blocks describing the source IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address. See Source below for details. - // +kubebuilder:validation:Optional - source?: null | string @go(Source,*string) - - // Set of configuration blocks describing the source ports to inspect for. If not specified, this matches with any source port. See Source Port below for details. - // +kubebuilder:validation:Optional - sourcePort?: null | string @go(SourcePort,*string) -} - -#IPSetInitParameters: { - // Set of port ranges. - definition?: [...null | string] @go(Definition,[]*string) -} - -#IPSetObservation: { - // Set of port ranges. - definition?: [...null | string] @go(Definition,[]*string) -} - -#IPSetParameters: { - // Set of port ranges. - // +kubebuilder:validation:Optional - definition: [...null | string] @go(Definition,[]*string) -} - -#IPSetReferenceInitParameters: { -} - -#IPSetReferenceObservation: { - // Set of Managed Prefix IP ARN(s) - referenceArn?: null | string @go(ReferenceArn,*string) -} - -#IPSetReferenceParameters: { - // Set of Managed Prefix IP ARN(s) - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.ManagedPrefixList - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - referenceArn?: null | string @go(ReferenceArn,*string) - - // Reference to a ManagedPrefixList in ec2 to populate referenceArn. - // +kubebuilder:validation:Optional - referenceArnRef?: null | v1.#Reference @go(ReferenceArnRef,*v1.Reference) - - // Selector for a ManagedPrefixList in ec2 to populate referenceArn. - // +kubebuilder:validation:Optional - referenceArnSelector?: null | v1.#Selector @go(ReferenceArnSelector,*v1.Selector) -} - -#IPSetReferencesInitParameters: { - // Set of configuration blocks that define the IP Reference information. See IP Set Reference below for details. - ipSetReference?: [...#IPSetReferenceInitParameters] @go(IPSetReference,[]IPSetReferenceInitParameters) - - // An unique alphanumeric string to identify the port_set. - key?: null | string @go(Key,*string) -} - -#IPSetReferencesObservation: { - // Set of configuration blocks that define the IP Reference information. See IP Set Reference below for details. - ipSetReference?: [...#IPSetReferenceObservation] @go(IPSetReference,[]IPSetReferenceObservation) - - // An unique alphanumeric string to identify the port_set. - key?: null | string @go(Key,*string) -} - -#IPSetReferencesParameters: { - // Set of configuration blocks that define the IP Reference information. See IP Set Reference below for details. - // +kubebuilder:validation:Optional - ipSetReference: [...#IPSetReferenceParameters] @go(IPSetReference,[]IPSetReferenceParameters) - - // An unique alphanumeric string to identify the port_set. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) -} - -#IPSetsInitParameters: { - // A configuration block that defines a set of IP addresses. See IP Set below for details. - ipSet?: [...#IPSetInitParameters] @go(IPSet,[]IPSetInitParameters) - - // An unique alphanumeric string to identify the port_set. - key?: null | string @go(Key,*string) -} - -#IPSetsObservation: { - // A configuration block that defines a set of IP addresses. See IP Set below for details. - ipSet?: [...#IPSetObservation] @go(IPSet,[]IPSetObservation) - - // An unique alphanumeric string to identify the port_set. - key?: null | string @go(Key,*string) -} - -#IPSetsParameters: { - // A configuration block that defines a set of IP addresses. See IP Set below for details. - // +kubebuilder:validation:Optional - ipSet: [...#IPSetParameters] @go(IPSet,[]IPSetParameters) - - // An unique alphanumeric string to identify the port_set. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) -} - -#MatchAttributesInitParameters: { - // Set of configuration blocks describing the destination IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address. See Destination below for details. - destination?: [...#DestinationInitParameters] @go(Destination,[]DestinationInitParameters) - - // Set of configuration blocks describing the destination ports to inspect for. If not specified, this matches with any destination port. See Destination Port below for details. - destinationPort?: [...#DestinationPortInitParameters] @go(DestinationPort,[]DestinationPortInitParameters) - - // Set of protocols to inspect for, specified using the protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol. - protocols?: [...null | float64] @go(Protocols,[]*float64) - - // Set of configuration blocks describing the source IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address. See Source below for details. - source?: [...#SourceInitParameters] @go(Source,[]SourceInitParameters) - - // Set of configuration blocks describing the source ports to inspect for. If not specified, this matches with any source port. See Source Port below for details. - sourcePort?: [...#SourcePortInitParameters] @go(SourcePort,[]SourcePortInitParameters) - - // Set of configuration blocks containing the TCP flags and masks to inspect for. If not specified, this matches with any settings. - tcpFlag?: [...#TCPFlagInitParameters] @go(TCPFlag,[]TCPFlagInitParameters) -} - -#MatchAttributesObservation: { - // Set of configuration blocks describing the destination IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address. See Destination below for details. - destination?: [...#DestinationObservation] @go(Destination,[]DestinationObservation) - - // Set of configuration blocks describing the destination ports to inspect for. If not specified, this matches with any destination port. See Destination Port below for details. - destinationPort?: [...#DestinationPortObservation] @go(DestinationPort,[]DestinationPortObservation) - - // Set of protocols to inspect for, specified using the protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol. - protocols?: [...null | float64] @go(Protocols,[]*float64) - - // Set of configuration blocks describing the source IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address. See Source below for details. - source?: [...#SourceObservation] @go(Source,[]SourceObservation) - - // Set of configuration blocks describing the source ports to inspect for. If not specified, this matches with any source port. See Source Port below for details. - sourcePort?: [...#SourcePortObservation] @go(SourcePort,[]SourcePortObservation) - - // Set of configuration blocks containing the TCP flags and masks to inspect for. If not specified, this matches with any settings. - tcpFlag?: [...#TCPFlagObservation] @go(TCPFlag,[]TCPFlagObservation) -} - -#MatchAttributesParameters: { - // Set of configuration blocks describing the destination IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address. See Destination below for details. - // +kubebuilder:validation:Optional - destination?: [...#DestinationParameters] @go(Destination,[]DestinationParameters) - - // Set of configuration blocks describing the destination ports to inspect for. If not specified, this matches with any destination port. See Destination Port below for details. - // +kubebuilder:validation:Optional - destinationPort?: [...#DestinationPortParameters] @go(DestinationPort,[]DestinationPortParameters) - - // Set of protocols to inspect for, specified using the protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol. - // +kubebuilder:validation:Optional - protocols?: [...null | float64] @go(Protocols,[]*float64) - - // Set of configuration blocks describing the source IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address. See Source below for details. - // +kubebuilder:validation:Optional - source?: [...#SourceParameters] @go(Source,[]SourceParameters) - - // Set of configuration blocks describing the source ports to inspect for. If not specified, this matches with any source port. See Source Port below for details. - // +kubebuilder:validation:Optional - sourcePort?: [...#SourcePortParameters] @go(SourcePort,[]SourcePortParameters) - - // Set of configuration blocks containing the TCP flags and masks to inspect for. If not specified, this matches with any settings. - // +kubebuilder:validation:Optional - tcpFlag?: [...#TCPFlagParameters] @go(TCPFlag,[]TCPFlagParameters) -} - -#PortSetInitParameters: { - // Set of port ranges. - definition?: [...null | string] @go(Definition,[]*string) -} - -#PortSetObservation: { - // Set of port ranges. - definition?: [...null | string] @go(Definition,[]*string) -} - -#PortSetParameters: { - // Set of port ranges. - // +kubebuilder:validation:Optional - definition: [...null | string] @go(Definition,[]*string) -} - -#PortSetsInitParameters: { - // An unique alphanumeric string to identify the port_set. - key?: null | string @go(Key,*string) - - // A configuration block that defines a set of port ranges. See Port Set below for details. - portSet?: [...#PortSetInitParameters] @go(PortSet,[]PortSetInitParameters) -} - -#PortSetsObservation: { - // An unique alphanumeric string to identify the port_set. - key?: null | string @go(Key,*string) - - // A configuration block that defines a set of port ranges. See Port Set below for details. - portSet?: [...#PortSetObservation] @go(PortSet,[]PortSetObservation) -} - -#PortSetsParameters: { - // An unique alphanumeric string to identify the port_set. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // A configuration block that defines a set of port ranges. See Port Set below for details. - // +kubebuilder:validation:Optional - portSet: [...#PortSetParameters] @go(PortSet,[]PortSetParameters) -} - -#PublishMetricActionDimensionInitParameters: { - // The value to use in the custom metric dimension. - value?: null | string @go(Value,*string) -} - -#PublishMetricActionDimensionObservation: { - // The value to use in the custom metric dimension. - value?: null | string @go(Value,*string) -} - -#PublishMetricActionDimensionParameters: { - // The value to use in the custom metric dimension. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ReferenceSetsInitParameters: { - ipSetReferences?: [...#IPSetReferencesInitParameters] @go(IPSetReferences,[]IPSetReferencesInitParameters) -} - -#ReferenceSetsObservation: { - ipSetReferences?: [...#IPSetReferencesObservation] @go(IPSetReferences,[]IPSetReferencesObservation) -} - -#ReferenceSetsParameters: { - // +kubebuilder:validation:Optional - ipSetReferences?: [...#IPSetReferencesParameters] @go(IPSetReferences,[]IPSetReferencesParameters) -} - -#RuleDefinitionInitParameters: { - // Set of actions to take on a packet that matches one of the stateless rule definition's match_attributes. For every rule you must specify 1 standard action, and you can add custom actions. Standard actions include: aws:pass, aws:drop, aws:forward_to_sfe. - actions?: [...null | string] @go(Actions,[]*string) - - // A configuration block containing criteria for AWS Network Firewall to use to inspect an individual packet in stateless rule inspection. See Match Attributes below for details. - matchAttributes?: [...#MatchAttributesInitParameters] @go(MatchAttributes,[]MatchAttributesInitParameters) -} - -#RuleDefinitionObservation: { - // Set of actions to take on a packet that matches one of the stateless rule definition's match_attributes. For every rule you must specify 1 standard action, and you can add custom actions. Standard actions include: aws:pass, aws:drop, aws:forward_to_sfe. - actions?: [...null | string] @go(Actions,[]*string) - - // A configuration block containing criteria for AWS Network Firewall to use to inspect an individual packet in stateless rule inspection. See Match Attributes below for details. - matchAttributes?: [...#MatchAttributesObservation] @go(MatchAttributes,[]MatchAttributesObservation) -} - -#RuleDefinitionParameters: { - // Set of actions to take on a packet that matches one of the stateless rule definition's match_attributes. For every rule you must specify 1 standard action, and you can add custom actions. Standard actions include: aws:pass, aws:drop, aws:forward_to_sfe. - // +kubebuilder:validation:Optional - actions: [...null | string] @go(Actions,[]*string) - - // A configuration block containing criteria for AWS Network Firewall to use to inspect an individual packet in stateless rule inspection. See Match Attributes below for details. - // +kubebuilder:validation:Optional - matchAttributes: [...#MatchAttributesParameters] @go(MatchAttributes,[]MatchAttributesParameters) -} - -#RuleGroupEncryptionConfigurationInitParameters: { - // The ID of the customer managed key. You can use any of the key identifiers that KMS supports, unless you're using a key that's managed by another account. If you're using a key managed by another account, then specify the key ARN. - keyId?: null | string @go(KeyID,*string) - - // The type of AWS KMS key to use for encryption of your Network Firewall resources. Valid values are CUSTOMER_KMS and AWS_OWNED_KMS_KEY. - type?: null | string @go(Type,*string) -} - -#RuleGroupEncryptionConfigurationObservation: { - // The ID of the customer managed key. You can use any of the key identifiers that KMS supports, unless you're using a key that's managed by another account. If you're using a key managed by another account, then specify the key ARN. - keyId?: null | string @go(KeyID,*string) - - // The type of AWS KMS key to use for encryption of your Network Firewall resources. Valid values are CUSTOMER_KMS and AWS_OWNED_KMS_KEY. - type?: null | string @go(Type,*string) -} - -#RuleGroupEncryptionConfigurationParameters: { - // The ID of the customer managed key. You can use any of the key identifiers that KMS supports, unless you're using a key that's managed by another account. If you're using a key managed by another account, then specify the key ARN. - // +kubebuilder:validation:Optional - keyId?: null | string @go(KeyID,*string) - - // The type of AWS KMS key to use for encryption of your Network Firewall resources. Valid values are CUSTOMER_KMS and AWS_OWNED_KMS_KEY. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RuleGroupInitParameters: { - // The maximum number of operating resources that this rule group can use. For a stateless rule group, the capacity required is the sum of the capacity requirements of the individual rules. For a stateful rule group, the minimum capacity required is the number of individual rules. - capacity?: null | float64 @go(Capacity,*float64) - - // A friendly description of the rule group. - description?: null | string @go(Description,*string) - - // KMS encryption configuration settings. See Encryption Configuration below for details. - encryptionConfiguration?: [...#RuleGroupEncryptionConfigurationInitParameters] @go(EncryptionConfiguration,[]RuleGroupEncryptionConfigurationInitParameters) - - // A friendly name of the rule group. - name?: null | string @go(Name,*string) - - // A configuration block that defines the rule group rules. Required unless rules is specified. See Rule Group below for details. - ruleGroup?: [...#RuleGroupRuleGroupInitParameters] @go(RuleGroup,[]RuleGroupRuleGroupInitParameters) - - // The stateful rule group rules specifications in Suricata file format, with one rule per line. Use this to import your existing Suricata compatible rule groups. Required unless rule_group is specified. - rules?: null | string @go(Rules,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether the rule group is stateless (containing stateless rules) or stateful (containing stateful rules). Valid values include: STATEFUL or STATELESS. - type?: null | string @go(Type,*string) -} - -#RuleGroupObservation: { - // The Amazon Resource Name (ARN) that identifies the rule group. - arn?: null | string @go(Arn,*string) - - // The maximum number of operating resources that this rule group can use. For a stateless rule group, the capacity required is the sum of the capacity requirements of the individual rules. For a stateful rule group, the minimum capacity required is the number of individual rules. - capacity?: null | float64 @go(Capacity,*float64) - - // A friendly description of the rule group. - description?: null | string @go(Description,*string) - - // KMS encryption configuration settings. See Encryption Configuration below for details. - encryptionConfiguration?: [...#RuleGroupEncryptionConfigurationObservation] @go(EncryptionConfiguration,[]RuleGroupEncryptionConfigurationObservation) - - // The Amazon Resource Name (ARN) that identifies the rule group. - id?: null | string @go(ID,*string) - - // A friendly name of the rule group. - name?: null | string @go(Name,*string) - - // A configuration block that defines the rule group rules. Required unless rules is specified. See Rule Group below for details. - ruleGroup?: [...#RuleGroupRuleGroupObservation] @go(RuleGroup,[]RuleGroupRuleGroupObservation) - - // The stateful rule group rules specifications in Suricata file format, with one rule per line. Use this to import your existing Suricata compatible rule groups. Required unless rule_group is specified. - rules?: null | string @go(Rules,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether the rule group is stateless (containing stateless rules) or stateful (containing stateful rules). Valid values include: STATEFUL or STATELESS. - type?: null | string @go(Type,*string) - - // A string token used when updating the rule group. - updateToken?: null | string @go(UpdateToken,*string) -} - -#RuleGroupParameters: { - // The maximum number of operating resources that this rule group can use. For a stateless rule group, the capacity required is the sum of the capacity requirements of the individual rules. For a stateful rule group, the minimum capacity required is the number of individual rules. - // +kubebuilder:validation:Optional - capacity?: null | float64 @go(Capacity,*float64) - - // A friendly description of the rule group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // KMS encryption configuration settings. See Encryption Configuration below for details. - // +kubebuilder:validation:Optional - encryptionConfiguration?: [...#RuleGroupEncryptionConfigurationParameters] @go(EncryptionConfiguration,[]RuleGroupEncryptionConfigurationParameters) - - // A friendly name of the rule group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A configuration block that defines the rule group rules. Required unless rules is specified. See Rule Group below for details. - // +kubebuilder:validation:Optional - ruleGroup?: [...#RuleGroupRuleGroupParameters] @go(RuleGroup,[]RuleGroupRuleGroupParameters) - - // The stateful rule group rules specifications in Suricata file format, with one rule per line. Use this to import your existing Suricata compatible rule groups. Required unless rule_group is specified. - // +kubebuilder:validation:Optional - rules?: null | string @go(Rules,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether the rule group is stateless (containing stateless rules) or stateful (containing stateful rules). Valid values include: STATEFUL or STATELESS. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RuleGroupRuleGroupInitParameters: { - // A configuration block that defines the IP Set References for the rule group. See Reference Sets below for details. Please notes that there can only be a maximum of 5 reference_sets in a rule_group. See the AWS documentation for details. - referenceSets?: [...#ReferenceSetsInitParameters] @go(ReferenceSets,[]ReferenceSetsInitParameters) - - // A configuration block that defines additional settings available to use in the rules defined in the rule group. Can only be specified for stateful rule groups. See Rule Variables below for details. - ruleVariables?: [...#RuleVariablesInitParameters] @go(RuleVariables,[]RuleVariablesInitParameters) - - // A configuration block that defines the stateful or stateless rules for the rule group. See Rules Source below for details. - rulesSource?: [...#RulesSourceInitParameters] @go(RulesSource,[]RulesSourceInitParameters) - - // A configuration block that defines stateful rule options for the rule group. See Stateful Rule Options below for details. - statefulRuleOptions?: [...#StatefulRuleOptionsInitParameters] @go(StatefulRuleOptions,[]StatefulRuleOptionsInitParameters) -} - -#RuleGroupRuleGroupObservation: { - // A configuration block that defines the IP Set References for the rule group. See Reference Sets below for details. Please notes that there can only be a maximum of 5 reference_sets in a rule_group. See the AWS documentation for details. - referenceSets?: [...#ReferenceSetsObservation] @go(ReferenceSets,[]ReferenceSetsObservation) - - // A configuration block that defines additional settings available to use in the rules defined in the rule group. Can only be specified for stateful rule groups. See Rule Variables below for details. - ruleVariables?: [...#RuleVariablesObservation] @go(RuleVariables,[]RuleVariablesObservation) - - // A configuration block that defines the stateful or stateless rules for the rule group. See Rules Source below for details. - rulesSource?: [...#RulesSourceObservation] @go(RulesSource,[]RulesSourceObservation) - - // A configuration block that defines stateful rule options for the rule group. See Stateful Rule Options below for details. - statefulRuleOptions?: [...#StatefulRuleOptionsObservation] @go(StatefulRuleOptions,[]StatefulRuleOptionsObservation) -} - -#RuleGroupRuleGroupParameters: { - // A configuration block that defines the IP Set References for the rule group. See Reference Sets below for details. Please notes that there can only be a maximum of 5 reference_sets in a rule_group. See the AWS documentation for details. - // +kubebuilder:validation:Optional - referenceSets?: [...#ReferenceSetsParameters] @go(ReferenceSets,[]ReferenceSetsParameters) - - // A configuration block that defines additional settings available to use in the rules defined in the rule group. Can only be specified for stateful rule groups. See Rule Variables below for details. - // +kubebuilder:validation:Optional - ruleVariables?: [...#RuleVariablesParameters] @go(RuleVariables,[]RuleVariablesParameters) - - // A configuration block that defines the stateful or stateless rules for the rule group. See Rules Source below for details. - // +kubebuilder:validation:Optional - rulesSource: [...#RulesSourceParameters] @go(RulesSource,[]RulesSourceParameters) - - // A configuration block that defines stateful rule options for the rule group. See Stateful Rule Options below for details. - // +kubebuilder:validation:Optional - statefulRuleOptions?: [...#StatefulRuleOptionsParameters] @go(StatefulRuleOptions,[]StatefulRuleOptionsParameters) -} - -#RuleOptionInitParameters: { - // Keyword defined by open source detection systems like Snort or Suricata for stateful rule inspection. - // See Snort General Rule Options or Suricata Rule Options for more details. - keyword?: null | string @go(Keyword,*string) - - // Set of strings for additional settings to use in stateful rule inspection. - settings?: [...null | string] @go(Settings,[]*string) -} - -#RuleOptionObservation: { - // Keyword defined by open source detection systems like Snort or Suricata for stateful rule inspection. - // See Snort General Rule Options or Suricata Rule Options for more details. - keyword?: null | string @go(Keyword,*string) - - // Set of strings for additional settings to use in stateful rule inspection. - settings?: [...null | string] @go(Settings,[]*string) -} - -#RuleOptionParameters: { - // Keyword defined by open source detection systems like Snort or Suricata for stateful rule inspection. - // See Snort General Rule Options or Suricata Rule Options for more details. - // +kubebuilder:validation:Optional - keyword?: null | string @go(Keyword,*string) - - // Set of strings for additional settings to use in stateful rule inspection. - // +kubebuilder:validation:Optional - settings?: [...null | string] @go(Settings,[]*string) -} - -#RuleVariablesInitParameters: { - // Set of configuration blocks that define IP address information. See IP Sets below for details. - ipSets?: [...#IPSetsInitParameters] @go(IPSets,[]IPSetsInitParameters) - - // Set of configuration blocks that define port range information. See Port Sets below for details. - portSets?: [...#PortSetsInitParameters] @go(PortSets,[]PortSetsInitParameters) -} - -#RuleVariablesObservation: { - // Set of configuration blocks that define IP address information. See IP Sets below for details. - ipSets?: [...#IPSetsObservation] @go(IPSets,[]IPSetsObservation) - - // Set of configuration blocks that define port range information. See Port Sets below for details. - portSets?: [...#PortSetsObservation] @go(PortSets,[]PortSetsObservation) -} - -#RuleVariablesParameters: { - // Set of configuration blocks that define IP address information. See IP Sets below for details. - // +kubebuilder:validation:Optional - ipSets?: [...#IPSetsParameters] @go(IPSets,[]IPSetsParameters) - - // Set of configuration blocks that define port range information. See Port Sets below for details. - // +kubebuilder:validation:Optional - portSets?: [...#PortSetsParameters] @go(PortSets,[]PortSetsParameters) -} - -#RulesSourceInitParameters: { - // A configuration block containing stateful inspection criteria for a domain list rule group. See Rules Source List below for details. - rulesSourceList?: [...#RulesSourceListInitParameters] @go(RulesSourceList,[]RulesSourceListInitParameters) - - // The fully qualified name of a file in an S3 bucket that contains Suricata compatible intrusion preventions system (IPS) rules or the Suricata rules as a string. These rules contain stateful inspection criteria and the action to take for traffic that matches the criteria. - rulesString?: null | string @go(RulesString,*string) - - // Set of configuration blocks containing stateful inspection criteria for 5-tuple rules to be used together in a rule group. See Stateful Rule below for details. - statefulRule?: [...#StatefulRuleInitParameters] @go(StatefulRule,[]StatefulRuleInitParameters) - - // A configuration block containing stateless inspection criteria for a stateless rule group. See Stateless Rules and Custom Actions below for details. - statelessRulesAndCustomActions?: [...#StatelessRulesAndCustomActionsInitParameters] @go(StatelessRulesAndCustomActions,[]StatelessRulesAndCustomActionsInitParameters) -} - -#RulesSourceListInitParameters: { - // String value to specify whether domains in the target list are allowed or denied access. Valid values: ALLOWLIST, DENYLIST. - generatedRulesType?: null | string @go(GeneratedRulesType,*string) - - // Set of types of domain specifications that are provided in the targets argument. Valid values: HTTP_HOST, TLS_SNI. - targetTypes?: [...null | string] @go(TargetTypes,[]*string) - - // Set of domains that you want to inspect for in your traffic flows. - targets?: [...null | string] @go(Targets,[]*string) -} - -#RulesSourceListObservation: { - // String value to specify whether domains in the target list are allowed or denied access. Valid values: ALLOWLIST, DENYLIST. - generatedRulesType?: null | string @go(GeneratedRulesType,*string) - - // Set of types of domain specifications that are provided in the targets argument. Valid values: HTTP_HOST, TLS_SNI. - targetTypes?: [...null | string] @go(TargetTypes,[]*string) - - // Set of domains that you want to inspect for in your traffic flows. - targets?: [...null | string] @go(Targets,[]*string) -} - -#RulesSourceListParameters: { - // String value to specify whether domains in the target list are allowed or denied access. Valid values: ALLOWLIST, DENYLIST. - // +kubebuilder:validation:Optional - generatedRulesType?: null | string @go(GeneratedRulesType,*string) - - // Set of types of domain specifications that are provided in the targets argument. Valid values: HTTP_HOST, TLS_SNI. - // +kubebuilder:validation:Optional - targetTypes: [...null | string] @go(TargetTypes,[]*string) - - // Set of domains that you want to inspect for in your traffic flows. - // +kubebuilder:validation:Optional - targets: [...null | string] @go(Targets,[]*string) -} - -#RulesSourceObservation: { - // A configuration block containing stateful inspection criteria for a domain list rule group. See Rules Source List below for details. - rulesSourceList?: [...#RulesSourceListObservation] @go(RulesSourceList,[]RulesSourceListObservation) - - // The fully qualified name of a file in an S3 bucket that contains Suricata compatible intrusion preventions system (IPS) rules or the Suricata rules as a string. These rules contain stateful inspection criteria and the action to take for traffic that matches the criteria. - rulesString?: null | string @go(RulesString,*string) - - // Set of configuration blocks containing stateful inspection criteria for 5-tuple rules to be used together in a rule group. See Stateful Rule below for details. - statefulRule?: [...#StatefulRuleObservation] @go(StatefulRule,[]StatefulRuleObservation) - - // A configuration block containing stateless inspection criteria for a stateless rule group. See Stateless Rules and Custom Actions below for details. - statelessRulesAndCustomActions?: [...#StatelessRulesAndCustomActionsObservation] @go(StatelessRulesAndCustomActions,[]StatelessRulesAndCustomActionsObservation) -} - -#RulesSourceParameters: { - // A configuration block containing stateful inspection criteria for a domain list rule group. See Rules Source List below for details. - // +kubebuilder:validation:Optional - rulesSourceList?: [...#RulesSourceListParameters] @go(RulesSourceList,[]RulesSourceListParameters) - - // The fully qualified name of a file in an S3 bucket that contains Suricata compatible intrusion preventions system (IPS) rules or the Suricata rules as a string. These rules contain stateful inspection criteria and the action to take for traffic that matches the criteria. - // +kubebuilder:validation:Optional - rulesString?: null | string @go(RulesString,*string) - - // Set of configuration blocks containing stateful inspection criteria for 5-tuple rules to be used together in a rule group. See Stateful Rule below for details. - // +kubebuilder:validation:Optional - statefulRule?: [...#StatefulRuleParameters] @go(StatefulRule,[]StatefulRuleParameters) - - // A configuration block containing stateless inspection criteria for a stateless rule group. See Stateless Rules and Custom Actions below for details. - // +kubebuilder:validation:Optional - statelessRulesAndCustomActions?: [...#StatelessRulesAndCustomActionsParameters] @go(StatelessRulesAndCustomActions,[]StatelessRulesAndCustomActionsParameters) -} - -#SourceInitParameters: { - // An IP address or a block of IP addresses in CIDR notation. AWS Network Firewall supports all address ranges for IPv4. - addressDefinition?: null | string @go(AddressDefinition,*string) -} - -#SourceObservation: { - // An IP address or a block of IP addresses in CIDR notation. AWS Network Firewall supports all address ranges for IPv4. - addressDefinition?: null | string @go(AddressDefinition,*string) -} - -#SourceParameters: { - // An IP address or a block of IP addresses in CIDR notation. AWS Network Firewall supports all address ranges for IPv4. - // +kubebuilder:validation:Optional - addressDefinition?: null | string @go(AddressDefinition,*string) -} - -#SourcePortInitParameters: { - // The lower limit of the port range. This must be less than or equal to the to_port. - fromPort?: null | float64 @go(FromPort,*float64) - - // The upper limit of the port range. This must be greater than or equal to the from_port. - toPort?: null | float64 @go(ToPort,*float64) -} - -#SourcePortObservation: { - // The lower limit of the port range. This must be less than or equal to the to_port. - fromPort?: null | float64 @go(FromPort,*float64) - - // The upper limit of the port range. This must be greater than or equal to the from_port. - toPort?: null | float64 @go(ToPort,*float64) -} - -#SourcePortParameters: { - // The lower limit of the port range. This must be less than or equal to the to_port. - // +kubebuilder:validation:Optional - fromPort?: null | float64 @go(FromPort,*float64) - - // The upper limit of the port range. This must be greater than or equal to the from_port. - // +kubebuilder:validation:Optional - toPort?: null | float64 @go(ToPort,*float64) -} - -#StatefulRuleInitParameters: { - // Action to take with packets in a traffic flow when the flow matches the stateful rule criteria. For all actions, AWS Network Firewall performs the specified action and discontinues stateful inspection of the traffic flow. Valid values: ALERT, DROP or PASS. - action?: null | string @go(Action,*string) - - // A configuration block containing the stateful 5-tuple inspection criteria for the rule, used to inspect traffic flows. See Header below for details. - header?: [...#HeaderInitParameters] @go(Header,[]HeaderInitParameters) - - // Set of configuration blocks containing additional settings for a stateful rule. See Rule Option below for details. - ruleOption?: [...#RuleOptionInitParameters] @go(RuleOption,[]RuleOptionInitParameters) -} - -#StatefulRuleObservation: { - // Action to take with packets in a traffic flow when the flow matches the stateful rule criteria. For all actions, AWS Network Firewall performs the specified action and discontinues stateful inspection of the traffic flow. Valid values: ALERT, DROP or PASS. - action?: null | string @go(Action,*string) - - // A configuration block containing the stateful 5-tuple inspection criteria for the rule, used to inspect traffic flows. See Header below for details. - header?: [...#HeaderObservation] @go(Header,[]HeaderObservation) - - // Set of configuration blocks containing additional settings for a stateful rule. See Rule Option below for details. - ruleOption?: [...#RuleOptionObservation] @go(RuleOption,[]RuleOptionObservation) -} - -#StatefulRuleOptionsInitParameters: { - // Indicates how to manage the order of the rule evaluation for the rule group. Default value: DEFAULT_ACTION_ORDER. Valid values: DEFAULT_ACTION_ORDER, STRICT_ORDER. - ruleOrder?: null | string @go(RuleOrder,*string) -} - -#StatefulRuleOptionsObservation: { - // Indicates how to manage the order of the rule evaluation for the rule group. Default value: DEFAULT_ACTION_ORDER. Valid values: DEFAULT_ACTION_ORDER, STRICT_ORDER. - ruleOrder?: null | string @go(RuleOrder,*string) -} - -#StatefulRuleOptionsParameters: { - // Indicates how to manage the order of the rule evaluation for the rule group. Default value: DEFAULT_ACTION_ORDER. Valid values: DEFAULT_ACTION_ORDER, STRICT_ORDER. - // +kubebuilder:validation:Optional - ruleOrder?: null | string @go(RuleOrder,*string) -} - -#StatefulRuleParameters: { - // Action to take with packets in a traffic flow when the flow matches the stateful rule criteria. For all actions, AWS Network Firewall performs the specified action and discontinues stateful inspection of the traffic flow. Valid values: ALERT, DROP or PASS. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) - - // A configuration block containing the stateful 5-tuple inspection criteria for the rule, used to inspect traffic flows. See Header below for details. - // +kubebuilder:validation:Optional - header: [...#HeaderParameters] @go(Header,[]HeaderParameters) - - // Set of configuration blocks containing additional settings for a stateful rule. See Rule Option below for details. - // +kubebuilder:validation:Optional - ruleOption: [...#RuleOptionParameters] @go(RuleOption,[]RuleOptionParameters) -} - -#StatelessRuleInitParameters: { - // A setting that indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group. AWS Network Firewall evaluates the rules in a rule group starting with the lowest priority setting. - priority?: null | float64 @go(Priority,*float64) - - // A configuration block defining the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria. See Rule Definition below for details. - ruleDefinition?: [...#RuleDefinitionInitParameters] @go(RuleDefinition,[]RuleDefinitionInitParameters) -} - -#StatelessRuleObservation: { - // A setting that indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group. AWS Network Firewall evaluates the rules in a rule group starting with the lowest priority setting. - priority?: null | float64 @go(Priority,*float64) - - // A configuration block defining the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria. See Rule Definition below for details. - ruleDefinition?: [...#RuleDefinitionObservation] @go(RuleDefinition,[]RuleDefinitionObservation) -} - -#StatelessRuleParameters: { - // A setting that indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group. AWS Network Firewall evaluates the rules in a rule group starting with the lowest priority setting. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // A configuration block defining the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria. See Rule Definition below for details. - // +kubebuilder:validation:Optional - ruleDefinition: [...#RuleDefinitionParameters] @go(RuleDefinition,[]RuleDefinitionParameters) -} - -#StatelessRulesAndCustomActionsInitParameters: { - // Set of configuration blocks containing custom action definitions that are available for use by the set of stateless rule. See Custom Action below for details. - customAction?: [...#CustomActionInitParameters] @go(CustomAction,[]CustomActionInitParameters) - - // Set of configuration blocks containing the stateless rules for use in the stateless rule group. See Stateless Rule below for details. - statelessRule?: [...#StatelessRuleInitParameters] @go(StatelessRule,[]StatelessRuleInitParameters) -} - -#StatelessRulesAndCustomActionsObservation: { - // Set of configuration blocks containing custom action definitions that are available for use by the set of stateless rule. See Custom Action below for details. - customAction?: [...#CustomActionObservation] @go(CustomAction,[]CustomActionObservation) - - // Set of configuration blocks containing the stateless rules for use in the stateless rule group. See Stateless Rule below for details. - statelessRule?: [...#StatelessRuleObservation] @go(StatelessRule,[]StatelessRuleObservation) -} - -#StatelessRulesAndCustomActionsParameters: { - // Set of configuration blocks containing custom action definitions that are available for use by the set of stateless rule. See Custom Action below for details. - // +kubebuilder:validation:Optional - customAction?: [...#CustomActionParameters] @go(CustomAction,[]CustomActionParameters) - - // Set of configuration blocks containing the stateless rules for use in the stateless rule group. See Stateless Rule below for details. - // +kubebuilder:validation:Optional - statelessRule: [...#StatelessRuleParameters] @go(StatelessRule,[]StatelessRuleParameters) -} - -#TCPFlagInitParameters: { - // Set of flags to look for in a packet. This setting can only specify values that are also specified in masks. - // Valid values: FIN, SYN, RST, PSH, ACK, URG, ECE, CWR. - flags?: [...null | string] @go(Flags,[]*string) - - // Set of flags to consider in the inspection. To inspect all flags, leave this empty. - // Valid values: FIN, SYN, RST, PSH, ACK, URG, ECE, CWR. - masks?: [...null | string] @go(Masks,[]*string) -} - -#TCPFlagObservation: { - // Set of flags to look for in a packet. This setting can only specify values that are also specified in masks. - // Valid values: FIN, SYN, RST, PSH, ACK, URG, ECE, CWR. - flags?: [...null | string] @go(Flags,[]*string) - - // Set of flags to consider in the inspection. To inspect all flags, leave this empty. - // Valid values: FIN, SYN, RST, PSH, ACK, URG, ECE, CWR. - masks?: [...null | string] @go(Masks,[]*string) -} - -#TCPFlagParameters: { - // Set of flags to look for in a packet. This setting can only specify values that are also specified in masks. - // Valid values: FIN, SYN, RST, PSH, ACK, URG, ECE, CWR. - // +kubebuilder:validation:Optional - flags: [...null | string] @go(Flags,[]*string) - - // Set of flags to consider in the inspection. To inspect all flags, leave this empty. - // Valid values: FIN, SYN, RST, PSH, ACK, URG, ECE, CWR. - // +kubebuilder:validation:Optional - masks?: [...null | string] @go(Masks,[]*string) -} - -// RuleGroupSpec defines the desired state of RuleGroup -#RuleGroupSpec: { - v1.#ResourceSpec - forProvider: #RuleGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RuleGroupInitParameters @go(InitProvider) -} - -// RuleGroupStatus defines the observed state of RuleGroup. -#RuleGroupStatus: { - v1.#ResourceStatus - atProvider?: #RuleGroupObservation @go(AtProvider) -} - -// RuleGroup is the Schema for the RuleGroups API. Provides an AWS Network Firewall Rule Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RuleGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.capacity) || (has(self.initProvider) && has(self.initProvider.capacity))",message="spec.forProvider.capacity is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #RuleGroupSpec @go(Spec) - status?: #RuleGroupStatus @go(Status) -} - -// RuleGroupList contains a list of RuleGroups -#RuleGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RuleGroup] @go(Items,[]RuleGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_attachmentaccepter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_attachmentaccepter_types_go_gen.cue deleted file mode 100644 index d7de201..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_attachmentaccepter_types_go_gen.cue +++ /dev/null @@ -1,126 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AttachmentAccepterInitParameters: { -} - -#AttachmentAccepterObservation: { - // The ID of the attachment. - attachmentId?: null | string @go(AttachmentID,*string) - - // The policy rule number associated with the attachment. - attachmentPolicyRuleNumber?: null | float64 @go(AttachmentPolicyRuleNumber,*float64) - - // The type of attachment. Valid values can be found in the AWS Documentation - attachmentType?: null | string @go(AttachmentType,*string) - - // The ARN of a core network. - coreNetworkArn?: null | string @go(CoreNetworkArn,*string) - - // The id of a core network. - coreNetworkId?: null | string @go(CoreNetworkID,*string) - - // The Region where the edge is located. - edgeLocation?: null | string @go(EdgeLocation,*string) - id?: null | string @go(ID,*string) - - // The ID of the attachment account owner. - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // The attachment resource ARN. - resourceArn?: null | string @go(ResourceArn,*string) - - // The name of the segment attachment. - segmentName?: null | string @go(SegmentName,*string) - - // The state of the attachment. - state?: null | string @go(State,*string) -} - -#AttachmentAccepterParameters: { - // The ID of the attachment. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.VPCAttachment - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - attachmentId?: null | string @go(AttachmentID,*string) - - // Reference to a VPCAttachment in networkmanager to populate attachmentId. - // +kubebuilder:validation:Optional - attachmentIdRef?: null | v1.#Reference @go(AttachmentIDRef,*v1.Reference) - - // Selector for a VPCAttachment in networkmanager to populate attachmentId. - // +kubebuilder:validation:Optional - attachmentIdSelector?: null | v1.#Selector @go(AttachmentIDSelector,*v1.Selector) - - // The type of attachment. Valid values can be found in the AWS Documentation - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.VPCAttachment - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("attachment_type",true) - // +kubebuilder:validation:Optional - attachmentType?: null | string @go(AttachmentType,*string) - - // Reference to a VPCAttachment in networkmanager to populate attachmentType. - // +kubebuilder:validation:Optional - attachmentTypeRef?: null | v1.#Reference @go(AttachmentTypeRef,*v1.Reference) - - // Selector for a VPCAttachment in networkmanager to populate attachmentType. - // +kubebuilder:validation:Optional - attachmentTypeSelector?: null | v1.#Selector @go(AttachmentTypeSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// AttachmentAccepterSpec defines the desired state of AttachmentAccepter -#AttachmentAccepterSpec: { - v1.#ResourceSpec - forProvider: #AttachmentAccepterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AttachmentAccepterInitParameters @go(InitProvider) -} - -// AttachmentAccepterStatus defines the observed state of AttachmentAccepter. -#AttachmentAccepterStatus: { - v1.#ResourceStatus - atProvider?: #AttachmentAccepterObservation @go(AtProvider) -} - -// AttachmentAccepter is the Schema for the AttachmentAccepters API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AttachmentAccepter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AttachmentAccepterSpec @go(Spec) - status?: #AttachmentAccepterStatus @go(Status) -} - -// AttachmentAccepterList contains a list of AttachmentAccepters -#AttachmentAccepterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AttachmentAccepter] @go(Items,[]AttachmentAccepter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_connectattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_connectattachment_types_go_gen.cue deleted file mode 100644 index b9a8c90..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_connectattachment_types_go_gen.cue +++ /dev/null @@ -1,184 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConnectAttachmentInitParameters: { - // Options for creating an attachment. - options?: [...#OptionsInitParameters] @go(Options,[]OptionsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ConnectAttachmentObservation: { - // The ARN of the attachment. - arn?: null | string @go(Arn,*string) - - // The ID of the attachment. - attachmentId?: null | string @go(AttachmentID,*string) - - // The policy rule number associated with the attachment. - attachmentPolicyRuleNumber?: null | float64 @go(AttachmentPolicyRuleNumber,*float64) - - // The type of attachment. - attachmentType?: null | string @go(AttachmentType,*string) - - // The ARN of a core network. - coreNetworkArn?: null | string @go(CoreNetworkArn,*string) - - // The ID of a core network where you want to create the attachment. - coreNetworkId?: null | string @go(CoreNetworkID,*string) - - // The Region where the edge is located. - edgeLocation?: null | string @go(EdgeLocation,*string) - - // The ID of the attachment. - id?: null | string @go(ID,*string) - - // Options for creating an attachment. - options?: [...#OptionsObservation] @go(Options,[]OptionsObservation) - - // The ID of the attachment account owner. - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // The attachment resource ARN. - resourceArn?: null | string @go(ResourceArn,*string) - - // The name of the segment attachment. - segmentName?: null | string @go(SegmentName,*string) - - // The state of the attachment. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of the attachment between the two connections. - transportAttachmentId?: null | string @go(TransportAttachmentID,*string) -} - -#ConnectAttachmentParameters: { - // The ID of a core network where you want to create the attachment. - // +crossplane:generate:reference:type=CoreNetwork - // +kubebuilder:validation:Optional - coreNetworkId?: null | string @go(CoreNetworkID,*string) - - // Reference to a CoreNetwork to populate coreNetworkId. - // +kubebuilder:validation:Optional - coreNetworkIdRef?: null | v1.#Reference @go(CoreNetworkIDRef,*v1.Reference) - - // Selector for a CoreNetwork to populate coreNetworkId. - // +kubebuilder:validation:Optional - coreNetworkIdSelector?: null | v1.#Selector @go(CoreNetworkIDSelector,*v1.Selector) - - // The Region where the edge is located. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.VPCAttachment - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("edge_location",true) - // +kubebuilder:validation:Optional - edgeLocation?: null | string @go(EdgeLocation,*string) - - // Reference to a VPCAttachment in networkmanager to populate edgeLocation. - // +kubebuilder:validation:Optional - edgeLocationRef?: null | v1.#Reference @go(EdgeLocationRef,*v1.Reference) - - // Selector for a VPCAttachment in networkmanager to populate edgeLocation. - // +kubebuilder:validation:Optional - edgeLocationSelector?: null | v1.#Selector @go(EdgeLocationSelector,*v1.Selector) - - // Options for creating an attachment. - // +kubebuilder:validation:Optional - options?: [...#OptionsParameters] @go(Options,[]OptionsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the attachment between the two connections. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.VPCAttachment - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - transportAttachmentId?: null | string @go(TransportAttachmentID,*string) - - // Reference to a VPCAttachment in networkmanager to populate transportAttachmentId. - // +kubebuilder:validation:Optional - transportAttachmentIdRef?: null | v1.#Reference @go(TransportAttachmentIDRef,*v1.Reference) - - // Selector for a VPCAttachment in networkmanager to populate transportAttachmentId. - // +kubebuilder:validation:Optional - transportAttachmentIdSelector?: null | v1.#Selector @go(TransportAttachmentIDSelector,*v1.Selector) -} - -#OptionsInitParameters: { - protocol?: null | string @go(Protocol,*string) -} - -#OptionsObservation: { - protocol?: null | string @go(Protocol,*string) -} - -#OptionsParameters: { - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) -} - -// ConnectAttachmentSpec defines the desired state of ConnectAttachment -#ConnectAttachmentSpec: { - v1.#ResourceSpec - forProvider: #ConnectAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConnectAttachmentInitParameters @go(InitProvider) -} - -// ConnectAttachmentStatus defines the observed state of ConnectAttachment. -#ConnectAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #ConnectAttachmentObservation @go(AtProvider) -} - -// ConnectAttachment is the Schema for the ConnectAttachments API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ConnectAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.options) || (has(self.initProvider) && has(self.initProvider.options))",message="spec.forProvider.options is a required parameter" - spec: #ConnectAttachmentSpec @go(Spec) - status?: #ConnectAttachmentStatus @go(Status) -} - -// ConnectAttachmentList contains a list of ConnectAttachments -#ConnectAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConnectAttachment] @go(Items,[]ConnectAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_connection_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_connection_types_go_gen.cue deleted file mode 100644 index 4b7626c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_connection_types_go_gen.cue +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConnectionInitParameters: { - // The ID of the link for the second device. - connectedLinkId?: null | string @go(ConnectedLinkID,*string) - - // A description of the connection. - description?: null | string @go(Description,*string) - - // The ID of the link for the first device. - linkId?: null | string @go(LinkID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ConnectionObservation: { - // The Amazon Resource Name (ARN) of the connection. - arn?: null | string @go(Arn,*string) - - // The ID of the second device in the connection. - connectedDeviceId?: null | string @go(ConnectedDeviceID,*string) - - // The ID of the link for the second device. - connectedLinkId?: null | string @go(ConnectedLinkID,*string) - - // A description of the connection. - description?: null | string @go(Description,*string) - - // The ID of the first device in the connection. - deviceId?: null | string @go(DeviceID,*string) - - // The ID of the global network. - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - id?: null | string @go(ID,*string) - - // The ID of the link for the first device. - linkId?: null | string @go(LinkID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ConnectionParameters: { - // The ID of the second device in the connection. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.Device - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - connectedDeviceId?: null | string @go(ConnectedDeviceID,*string) - - // Reference to a Device in networkmanager to populate connectedDeviceId. - // +kubebuilder:validation:Optional - connectedDeviceIdRef?: null | v1.#Reference @go(ConnectedDeviceIDRef,*v1.Reference) - - // Selector for a Device in networkmanager to populate connectedDeviceId. - // +kubebuilder:validation:Optional - connectedDeviceIdSelector?: null | v1.#Selector @go(ConnectedDeviceIDSelector,*v1.Selector) - - // The ID of the link for the second device. - // +kubebuilder:validation:Optional - connectedLinkId?: null | string @go(ConnectedLinkID,*string) - - // A description of the connection. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The ID of the first device in the connection. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.Device - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - deviceId?: null | string @go(DeviceID,*string) - - // Reference to a Device in networkmanager to populate deviceId. - // +kubebuilder:validation:Optional - deviceIdRef?: null | v1.#Reference @go(DeviceIDRef,*v1.Reference) - - // Selector for a Device in networkmanager to populate deviceId. - // +kubebuilder:validation:Optional - deviceIdSelector?: null | v1.#Selector @go(DeviceIDSelector,*v1.Selector) - - // The ID of the global network. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.GlobalNetwork - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - - // Reference to a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdRef?: null | v1.#Reference @go(GlobalNetworkIDRef,*v1.Reference) - - // Selector for a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdSelector?: null | v1.#Selector @go(GlobalNetworkIDSelector,*v1.Selector) - - // The ID of the link for the first device. - // +kubebuilder:validation:Optional - linkId?: null | string @go(LinkID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ConnectionSpec defines the desired state of Connection -#ConnectionSpec: { - v1.#ResourceSpec - forProvider: #ConnectionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConnectionInitParameters @go(InitProvider) -} - -// ConnectionStatus defines the observed state of Connection. -#ConnectionStatus: { - v1.#ResourceStatus - atProvider?: #ConnectionObservation @go(AtProvider) -} - -// Connection is the Schema for the Connections API. Creates a connection between two devices. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Connection: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ConnectionSpec @go(Spec) - status?: #ConnectionStatus @go(Status) -} - -// ConnectionList contains a list of Connections -#ConnectionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Connection] @go(Items,[]Connection) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_corenetwork_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_corenetwork_types_go_gen.cue deleted file mode 100644 index 7a9e8f3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_corenetwork_types_go_gen.cue +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CoreNetworkInitParameters: { - // The base policy created by setting the create_base_policy argument to true requires a region to be set in the edge-locations, location key. If base_policy_region is not specified, the region used in the base policy defaults to the region specified in the provider block. - basePolicyRegion?: null | string @go(BasePolicyRegion,*string) - - // A list of regions to add to the base policy. The base policy created by setting the create_base_policy argument to true requires one or more regions to be set in the edge-locations, location key. If base_policy_regions is not specified, the region used in the base policy defaults to the region specified in the provider block. - basePolicyRegions?: [...null | string] @go(BasePolicyRegions,[]*string) - - // Specifies whether to create a base policy when a core network is created or updated. A base policy is created and set to LIVE to allow attachments to the core network (e.g. VPC Attachments) before applying a policy document provided using the aws_networkmanager_core_network_policy_attachment resource. This base policy is needed if your core network does not have any LIVE policies (e.g. a core network resource created without the policy_document argument) and your policy document has static routes pointing to VPC attachments and you want to attach your VPCs to the core network before applying the desired policy document. Valid values are true or false. Conflicts with policy_document. An example base policy is shown below. This base policy is overridden with the policy that you specify in the aws_networkmanager_core_network_policy_attachment resource. - createBasePolicy?: null | bool @go(CreateBasePolicy,*bool) - - // Description of the Core Network. - description?: null | string @go(Description,*string) - - // Policy document for creating a core network. Note that updating this argument will result in the new policy document version being set as the LATEST and LIVE policy document. Refer to the Core network policies documentation for more information. Conflicts with create_base_policy. - policyDocument?: null | string @go(PolicyDocument,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CoreNetworkObservation: { - // Core Network Amazon Resource Name (ARN). - arn?: null | string @go(Arn,*string) - - // The base policy created by setting the create_base_policy argument to true requires a region to be set in the edge-locations, location key. If base_policy_region is not specified, the region used in the base policy defaults to the region specified in the provider block. - basePolicyRegion?: null | string @go(BasePolicyRegion,*string) - - // A list of regions to add to the base policy. The base policy created by setting the create_base_policy argument to true requires one or more regions to be set in the edge-locations, location key. If base_policy_regions is not specified, the region used in the base policy defaults to the region specified in the provider block. - basePolicyRegions?: [...null | string] @go(BasePolicyRegions,[]*string) - - // Specifies whether to create a base policy when a core network is created or updated. A base policy is created and set to LIVE to allow attachments to the core network (e.g. VPC Attachments) before applying a policy document provided using the aws_networkmanager_core_network_policy_attachment resource. This base policy is needed if your core network does not have any LIVE policies (e.g. a core network resource created without the policy_document argument) and your policy document has static routes pointing to VPC attachments and you want to attach your VPCs to the core network before applying the desired policy document. Valid values are true or false. Conflicts with policy_document. An example base policy is shown below. This base policy is overridden with the policy that you specify in the aws_networkmanager_core_network_policy_attachment resource. - createBasePolicy?: null | bool @go(CreateBasePolicy,*bool) - - // Timestamp when a core network was created. - createdAt?: null | string @go(CreatedAt,*string) - - // Description of the Core Network. - description?: null | string @go(Description,*string) - - // One or more blocks detailing the edges within a core network. Detailed below. - edges?: [...#EdgesObservation] @go(Edges,[]EdgesObservation) - - // The ID of the global network that a core network will be a part of. - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - - // Core Network ID. - id?: null | string @go(ID,*string) - - // Policy document for creating a core network. Note that updating this argument will result in the new policy document version being set as the LATEST and LIVE policy document. Refer to the Core network policies documentation for more information. Conflicts with create_base_policy. - policyDocument?: null | string @go(PolicyDocument,*string) - - // One or more blocks detailing the segments within a core network. Detailed below. - segments?: [...#SegmentsObservation] @go(Segments,[]SegmentsObservation) - - // Current state of a core network. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#CoreNetworkParameters: { - // The base policy created by setting the create_base_policy argument to true requires a region to be set in the edge-locations, location key. If base_policy_region is not specified, the region used in the base policy defaults to the region specified in the provider block. - // +kubebuilder:validation:Optional - basePolicyRegion?: null | string @go(BasePolicyRegion,*string) - - // A list of regions to add to the base policy. The base policy created by setting the create_base_policy argument to true requires one or more regions to be set in the edge-locations, location key. If base_policy_regions is not specified, the region used in the base policy defaults to the region specified in the provider block. - // +kubebuilder:validation:Optional - basePolicyRegions?: [...null | string] @go(BasePolicyRegions,[]*string) - - // Specifies whether to create a base policy when a core network is created or updated. A base policy is created and set to LIVE to allow attachments to the core network (e.g. VPC Attachments) before applying a policy document provided using the aws_networkmanager_core_network_policy_attachment resource. This base policy is needed if your core network does not have any LIVE policies (e.g. a core network resource created without the policy_document argument) and your policy document has static routes pointing to VPC attachments and you want to attach your VPCs to the core network before applying the desired policy document. Valid values are true or false. Conflicts with policy_document. An example base policy is shown below. This base policy is overridden with the policy that you specify in the aws_networkmanager_core_network_policy_attachment resource. - // +kubebuilder:validation:Optional - createBasePolicy?: null | bool @go(CreateBasePolicy,*bool) - - // Description of the Core Network. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The ID of the global network that a core network will be a part of. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.GlobalNetwork - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - - // Reference to a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdRef?: null | v1.#Reference @go(GlobalNetworkIDRef,*v1.Reference) - - // Selector for a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdSelector?: null | v1.#Selector @go(GlobalNetworkIDSelector,*v1.Selector) - - // Policy document for creating a core network. Note that updating this argument will result in the new policy document version being set as the LATEST and LIVE policy document. Refer to the Core network policies documentation for more information. Conflicts with create_base_policy. - // +kubebuilder:validation:Optional - policyDocument?: null | string @go(PolicyDocument,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EdgesInitParameters: { -} - -#EdgesObservation: { - // ASN of a core network edge. - asn?: null | float64 @go(Asn,*float64) - - // Region where a core network edge is located. - edgeLocation?: null | string @go(EdgeLocation,*string) - - // Inside IP addresses used for core network edges. - insideCidrBlocks?: [...null | string] @go(InsideCidrBlocks,[]*string) -} - -#EdgesParameters: { -} - -#SegmentsInitParameters: { -} - -#SegmentsObservation: { - // Regions where the edges are located. - edgeLocations?: [...null | string] @go(EdgeLocations,[]*string) - - // Name of a core network segment. - name?: null | string @go(Name,*string) - - // Shared segments of a core network. - sharedSegments?: [...null | string] @go(SharedSegments,[]*string) -} - -#SegmentsParameters: { -} - -// CoreNetworkSpec defines the desired state of CoreNetwork -#CoreNetworkSpec: { - v1.#ResourceSpec - forProvider: #CoreNetworkParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CoreNetworkInitParameters @go(InitProvider) -} - -// CoreNetworkStatus defines the observed state of CoreNetwork. -#CoreNetworkStatus: { - v1.#ResourceStatus - atProvider?: #CoreNetworkObservation @go(AtProvider) -} - -// CoreNetwork is the Schema for the CoreNetworks API. Provides a core network resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CoreNetwork: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CoreNetworkSpec @go(Spec) - status?: #CoreNetworkStatus @go(Status) -} - -// CoreNetworkList contains a list of CoreNetworks -#CoreNetworkList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CoreNetwork] @go(Items,[]CoreNetwork) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_customergatewayassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_customergatewayassociation_types_go_gen.cue deleted file mode 100644 index 3960d9b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_customergatewayassociation_types_go_gen.cue +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CustomerGatewayAssociationInitParameters: { - // The ID of the link. - linkId?: null | string @go(LinkID,*string) -} - -#CustomerGatewayAssociationObservation: { - // The Amazon Resource Name (ARN) of the customer gateway. - customerGatewayArn?: null | string @go(CustomerGatewayArn,*string) - - // The ID of the device. - deviceId?: null | string @go(DeviceID,*string) - - // The ID of the global network. - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - id?: null | string @go(ID,*string) - - // The ID of the link. - linkId?: null | string @go(LinkID,*string) -} - -#CustomerGatewayAssociationParameters: { - // The Amazon Resource Name (ARN) of the customer gateway. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.CustomerGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - customerGatewayArn?: null | string @go(CustomerGatewayArn,*string) - - // Reference to a CustomerGateway in ec2 to populate customerGatewayArn. - // +kubebuilder:validation:Optional - customerGatewayArnRef?: null | v1.#Reference @go(CustomerGatewayArnRef,*v1.Reference) - - // Selector for a CustomerGateway in ec2 to populate customerGatewayArn. - // +kubebuilder:validation:Optional - customerGatewayArnSelector?: null | v1.#Selector @go(CustomerGatewayArnSelector,*v1.Selector) - - // The ID of the device. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.Device - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - deviceId?: null | string @go(DeviceID,*string) - - // Reference to a Device in networkmanager to populate deviceId. - // +kubebuilder:validation:Optional - deviceIdRef?: null | v1.#Reference @go(DeviceIDRef,*v1.Reference) - - // Selector for a Device in networkmanager to populate deviceId. - // +kubebuilder:validation:Optional - deviceIdSelector?: null | v1.#Selector @go(DeviceIDSelector,*v1.Selector) - - // The ID of the global network. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.GlobalNetwork - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - - // Reference to a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdRef?: null | v1.#Reference @go(GlobalNetworkIDRef,*v1.Reference) - - // Selector for a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdSelector?: null | v1.#Selector @go(GlobalNetworkIDSelector,*v1.Selector) - - // The ID of the link. - // +kubebuilder:validation:Optional - linkId?: null | string @go(LinkID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// CustomerGatewayAssociationSpec defines the desired state of CustomerGatewayAssociation -#CustomerGatewayAssociationSpec: { - v1.#ResourceSpec - forProvider: #CustomerGatewayAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CustomerGatewayAssociationInitParameters @go(InitProvider) -} - -// CustomerGatewayAssociationStatus defines the observed state of CustomerGatewayAssociation. -#CustomerGatewayAssociationStatus: { - v1.#ResourceStatus - atProvider?: #CustomerGatewayAssociationObservation @go(AtProvider) -} - -// CustomerGatewayAssociation is the Schema for the CustomerGatewayAssociations API. Associates a customer gateway with a device and optionally, with a link. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CustomerGatewayAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CustomerGatewayAssociationSpec @go(Spec) - status?: #CustomerGatewayAssociationStatus @go(Status) -} - -// CustomerGatewayAssociationList contains a list of CustomerGatewayAssociations -#CustomerGatewayAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CustomerGatewayAssociation] @go(Items,[]CustomerGatewayAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_device_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_device_types_go_gen.cue deleted file mode 100644 index 307a226..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_device_types_go_gen.cue +++ /dev/null @@ -1,249 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AwsLocationInitParameters: { - // The Amazon Resource Name (ARN) of the subnet that the device is located in. - subnetArn?: null | string @go(SubnetArn,*string) - - // The Zone that the device is located in. Specify the ID of an Availability Zone, Local Zone, Wavelength Zone, or an Outpost. - zone?: null | string @go(Zone,*string) -} - -#AwsLocationObservation: { - // The Amazon Resource Name (ARN) of the subnet that the device is located in. - subnetArn?: null | string @go(SubnetArn,*string) - - // The Zone that the device is located in. Specify the ID of an Availability Zone, Local Zone, Wavelength Zone, or an Outpost. - zone?: null | string @go(Zone,*string) -} - -#AwsLocationParameters: { - // The Amazon Resource Name (ARN) of the subnet that the device is located in. - // +kubebuilder:validation:Optional - subnetArn?: null | string @go(SubnetArn,*string) - - // The Zone that the device is located in. Specify the ID of an Availability Zone, Local Zone, Wavelength Zone, or an Outpost. - // +kubebuilder:validation:Optional - zone?: null | string @go(Zone,*string) -} - -#DeviceInitParameters: { - // The AWS location of the device. Documented below. - awsLocation?: [...#AwsLocationInitParameters] @go(AwsLocation,[]AwsLocationInitParameters) - - // A description of the device. - description?: null | string @go(Description,*string) - - // The location of the device. Documented below. - location?: [...#LocationInitParameters] @go(Location,[]LocationInitParameters) - - // The model of device. - model?: null | string @go(Model,*string) - - // The serial number of the device. - serialNumber?: null | string @go(SerialNumber,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of device. - type?: null | string @go(Type,*string) - - // The vendor of the device. - vendor?: null | string @go(Vendor,*string) -} - -#DeviceObservation: { - // The Amazon Resource Name (ARN) of the device. - arn?: null | string @go(Arn,*string) - - // The AWS location of the device. Documented below. - awsLocation?: [...#AwsLocationObservation] @go(AwsLocation,[]AwsLocationObservation) - - // A description of the device. - description?: null | string @go(Description,*string) - - // The ID of the global network. - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - id?: null | string @go(ID,*string) - - // The location of the device. Documented below. - location?: [...#LocationObservation] @go(Location,[]LocationObservation) - - // The model of device. - model?: null | string @go(Model,*string) - - // The serial number of the device. - serialNumber?: null | string @go(SerialNumber,*string) - - // The ID of the site. - siteId?: null | string @go(SiteID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The type of device. - type?: null | string @go(Type,*string) - - // The vendor of the device. - vendor?: null | string @go(Vendor,*string) -} - -#DeviceParameters: { - // The AWS location of the device. Documented below. - // +kubebuilder:validation:Optional - awsLocation?: [...#AwsLocationParameters] @go(AwsLocation,[]AwsLocationParameters) - - // A description of the device. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The ID of the global network. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.GlobalNetwork - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - - // Reference to a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdRef?: null | v1.#Reference @go(GlobalNetworkIDRef,*v1.Reference) - - // Selector for a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdSelector?: null | v1.#Selector @go(GlobalNetworkIDSelector,*v1.Selector) - - // The location of the device. Documented below. - // +kubebuilder:validation:Optional - location?: [...#LocationParameters] @go(Location,[]LocationParameters) - - // The model of device. - // +kubebuilder:validation:Optional - model?: null | string @go(Model,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The serial number of the device. - // +kubebuilder:validation:Optional - serialNumber?: null | string @go(SerialNumber,*string) - - // The ID of the site. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.Site - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - siteId?: null | string @go(SiteID,*string) - - // Reference to a Site in networkmanager to populate siteId. - // +kubebuilder:validation:Optional - siteIdRef?: null | v1.#Reference @go(SiteIDRef,*v1.Reference) - - // Selector for a Site in networkmanager to populate siteId. - // +kubebuilder:validation:Optional - siteIdSelector?: null | v1.#Selector @go(SiteIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of device. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The vendor of the device. - // +kubebuilder:validation:Optional - vendor?: null | string @go(Vendor,*string) -} - -#LocationInitParameters: { - // The physical address. - address?: null | string @go(Address,*string) - - // The latitude. - latitude?: null | string @go(Latitude,*string) - - // The longitude. - longitude?: null | string @go(Longitude,*string) -} - -#LocationObservation: { - // The physical address. - address?: null | string @go(Address,*string) - - // The latitude. - latitude?: null | string @go(Latitude,*string) - - // The longitude. - longitude?: null | string @go(Longitude,*string) -} - -#LocationParameters: { - // The physical address. - // +kubebuilder:validation:Optional - address?: null | string @go(Address,*string) - - // The latitude. - // +kubebuilder:validation:Optional - latitude?: null | string @go(Latitude,*string) - - // The longitude. - // +kubebuilder:validation:Optional - longitude?: null | string @go(Longitude,*string) -} - -// DeviceSpec defines the desired state of Device -#DeviceSpec: { - v1.#ResourceSpec - forProvider: #DeviceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DeviceInitParameters @go(InitProvider) -} - -// DeviceStatus defines the observed state of Device. -#DeviceStatus: { - v1.#ResourceStatus - atProvider?: #DeviceObservation @go(AtProvider) -} - -// Device is the Schema for the Devices API. Creates a device in a global network. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Device: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DeviceSpec @go(Spec) - status?: #DeviceStatus @go(Status) -} - -// DeviceList contains a list of Devices -#DeviceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Device] @go(Items,[]Device) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_globalnetwork_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_globalnetwork_types_go_gen.cue deleted file mode 100644 index 3b3b454..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_globalnetwork_types_go_gen.cue +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GlobalNetworkInitParameters: { - // Description of the Global Network. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#GlobalNetworkObservation: { - // Global Network Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // Description of the Global Network. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#GlobalNetworkParameters: { - // Description of the Global Network. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// GlobalNetworkSpec defines the desired state of GlobalNetwork -#GlobalNetworkSpec: { - v1.#ResourceSpec - forProvider: #GlobalNetworkParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GlobalNetworkInitParameters @go(InitProvider) -} - -// GlobalNetworkStatus defines the observed state of GlobalNetwork. -#GlobalNetworkStatus: { - v1.#ResourceStatus - atProvider?: #GlobalNetworkObservation @go(AtProvider) -} - -// GlobalNetwork is the Schema for the GlobalNetworks API. Provides a global network resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GlobalNetwork: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #GlobalNetworkSpec @go(Spec) - status?: #GlobalNetworkStatus @go(Status) -} - -// GlobalNetworkList contains a list of GlobalNetworks -#GlobalNetworkList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GlobalNetwork] @go(Items,[]GlobalNetwork) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 2da662b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=networkmanager.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "networkmanager.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_link_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_link_types_go_gen.cue deleted file mode 100644 index 2f5aac5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_link_types_go_gen.cue +++ /dev/null @@ -1,184 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BandwidthInitParameters: { - // Download speed in Mbps. - downloadSpeed?: null | float64 @go(DownloadSpeed,*float64) - - // Upload speed in Mbps. - uploadSpeed?: null | float64 @go(UploadSpeed,*float64) -} - -#BandwidthObservation: { - // Download speed in Mbps. - downloadSpeed?: null | float64 @go(DownloadSpeed,*float64) - - // Upload speed in Mbps. - uploadSpeed?: null | float64 @go(UploadSpeed,*float64) -} - -#BandwidthParameters: { - // Download speed in Mbps. - // +kubebuilder:validation:Optional - downloadSpeed?: null | float64 @go(DownloadSpeed,*float64) - - // Upload speed in Mbps. - // +kubebuilder:validation:Optional - uploadSpeed?: null | float64 @go(UploadSpeed,*float64) -} - -#LinkInitParameters: { - // The upload speed and download speed in Mbps. Documented below. - bandwidth?: [...#BandwidthInitParameters] @go(Bandwidth,[]BandwidthInitParameters) - - // A description of the link. - description?: null | string @go(Description,*string) - - // The provider of the link. - providerName?: null | string @go(ProviderName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of the link. - type?: null | string @go(Type,*string) -} - -#LinkObservation: { - // Link Amazon Resource Name (ARN). - arn?: null | string @go(Arn,*string) - - // The upload speed and download speed in Mbps. Documented below. - bandwidth?: [...#BandwidthObservation] @go(Bandwidth,[]BandwidthObservation) - - // A description of the link. - description?: null | string @go(Description,*string) - - // The ID of the global network. - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - id?: null | string @go(ID,*string) - - // The provider of the link. - providerName?: null | string @go(ProviderName,*string) - - // The ID of the site. - siteId?: null | string @go(SiteID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The type of the link. - type?: null | string @go(Type,*string) -} - -#LinkParameters: { - // The upload speed and download speed in Mbps. Documented below. - // +kubebuilder:validation:Optional - bandwidth?: [...#BandwidthParameters] @go(Bandwidth,[]BandwidthParameters) - - // A description of the link. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The ID of the global network. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.GlobalNetwork - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - - // Reference to a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdRef?: null | v1.#Reference @go(GlobalNetworkIDRef,*v1.Reference) - - // Selector for a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdSelector?: null | v1.#Selector @go(GlobalNetworkIDSelector,*v1.Selector) - - // The provider of the link. - // +kubebuilder:validation:Optional - providerName?: null | string @go(ProviderName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the site. - // +crossplane:generate:reference:type=Site - // +kubebuilder:validation:Optional - siteId?: null | string @go(SiteID,*string) - - // Reference to a Site to populate siteId. - // +kubebuilder:validation:Optional - siteIdRef?: null | v1.#Reference @go(SiteIDRef,*v1.Reference) - - // Selector for a Site to populate siteId. - // +kubebuilder:validation:Optional - siteIdSelector?: null | v1.#Selector @go(SiteIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of the link. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// LinkSpec defines the desired state of Link -#LinkSpec: { - v1.#ResourceSpec - forProvider: #LinkParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LinkInitParameters @go(InitProvider) -} - -// LinkStatus defines the observed state of Link. -#LinkStatus: { - v1.#ResourceStatus - atProvider?: #LinkObservation @go(AtProvider) -} - -// Link is the Schema for the Links API. Creates a link for a site. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Link: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bandwidth) || (has(self.initProvider) && has(self.initProvider.bandwidth))",message="spec.forProvider.bandwidth is a required parameter" - spec: #LinkSpec @go(Spec) - status?: #LinkStatus @go(Status) -} - -// LinkList contains a list of Links -#LinkList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Link] @go(Items,[]Link) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_linkassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_linkassociation_types_go_gen.cue deleted file mode 100644 index 5adc5a0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_linkassociation_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LinkAssociationInitParameters: { -} - -#LinkAssociationObservation: { - // The ID of the device. - deviceId?: null | string @go(DeviceID,*string) - - // The ID of the global network. - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - id?: null | string @go(ID,*string) - - // The ID of the link. - linkId?: null | string @go(LinkID,*string) -} - -#LinkAssociationParameters: { - // The ID of the device. - // +crossplane:generate:reference:type=Device - // +kubebuilder:validation:Optional - deviceId?: null | string @go(DeviceID,*string) - - // Reference to a Device to populate deviceId. - // +kubebuilder:validation:Optional - deviceIdRef?: null | v1.#Reference @go(DeviceIDRef,*v1.Reference) - - // Selector for a Device to populate deviceId. - // +kubebuilder:validation:Optional - deviceIdSelector?: null | v1.#Selector @go(DeviceIDSelector,*v1.Selector) - - // The ID of the global network. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.GlobalNetwork - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - - // Reference to a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdRef?: null | v1.#Reference @go(GlobalNetworkIDRef,*v1.Reference) - - // Selector for a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdSelector?: null | v1.#Selector @go(GlobalNetworkIDSelector,*v1.Selector) - - // The ID of the link. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.Link - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - linkId?: null | string @go(LinkID,*string) - - // Reference to a Link in networkmanager to populate linkId. - // +kubebuilder:validation:Optional - linkIdRef?: null | v1.#Reference @go(LinkIDRef,*v1.Reference) - - // Selector for a Link in networkmanager to populate linkId. - // +kubebuilder:validation:Optional - linkIdSelector?: null | v1.#Selector @go(LinkIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// LinkAssociationSpec defines the desired state of LinkAssociation -#LinkAssociationSpec: { - v1.#ResourceSpec - forProvider: #LinkAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LinkAssociationInitParameters @go(InitProvider) -} - -// LinkAssociationStatus defines the observed state of LinkAssociation. -#LinkAssociationStatus: { - v1.#ResourceStatus - atProvider?: #LinkAssociationObservation @go(AtProvider) -} - -// LinkAssociation is the Schema for the LinkAssociations API. Associates a link to a device. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LinkAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #LinkAssociationSpec @go(Spec) - status?: #LinkAssociationStatus @go(Status) -} - -// LinkAssociationList contains a list of LinkAssociations -#LinkAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LinkAssociation] @go(Items,[]LinkAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_site_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_site_types_go_gen.cue deleted file mode 100644 index ca32809..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_site_types_go_gen.cue +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SiteInitParameters: { - // Description of the Site. - description?: null | string @go(Description,*string) - - // The site location as documented below. - location?: [...#SiteLocationInitParameters] @go(Location,[]SiteLocationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SiteLocationInitParameters: { - // Address of the location. - address?: null | string @go(Address,*string) - - // Latitude of the location. - latitude?: null | string @go(Latitude,*string) - - // Longitude of the location. - longitude?: null | string @go(Longitude,*string) -} - -#SiteLocationObservation: { - // Address of the location. - address?: null | string @go(Address,*string) - - // Latitude of the location. - latitude?: null | string @go(Latitude,*string) - - // Longitude of the location. - longitude?: null | string @go(Longitude,*string) -} - -#SiteLocationParameters: { - // Address of the location. - // +kubebuilder:validation:Optional - address?: null | string @go(Address,*string) - - // Latitude of the location. - // +kubebuilder:validation:Optional - latitude?: null | string @go(Latitude,*string) - - // Longitude of the location. - // +kubebuilder:validation:Optional - longitude?: null | string @go(Longitude,*string) -} - -#SiteObservation: { - // Site Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // Description of the Site. - description?: null | string @go(Description,*string) - - // The ID of the Global Network to create the site in. - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - id?: null | string @go(ID,*string) - - // The site location as documented below. - location?: [...#SiteLocationObservation] @go(Location,[]SiteLocationObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SiteParameters: { - // Description of the Site. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The ID of the Global Network to create the site in. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.GlobalNetwork - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - - // Reference to a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdRef?: null | v1.#Reference @go(GlobalNetworkIDRef,*v1.Reference) - - // Selector for a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdSelector?: null | v1.#Selector @go(GlobalNetworkIDSelector,*v1.Selector) - - // The site location as documented below. - // +kubebuilder:validation:Optional - location?: [...#SiteLocationParameters] @go(Location,[]SiteLocationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SiteSpec defines the desired state of Site -#SiteSpec: { - v1.#ResourceSpec - forProvider: #SiteParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SiteInitParameters @go(InitProvider) -} - -// SiteStatus defines the observed state of Site. -#SiteStatus: { - v1.#ResourceStatus - atProvider?: #SiteObservation @go(AtProvider) -} - -// Site is the Schema for the Sites API. Creates a site in a global network. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Site: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SiteSpec @go(Spec) - status?: #SiteStatus @go(Status) -} - -// SiteList contains a list of Sites -#SiteList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Site] @go(Items,[]Site) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_transitgatewayconnectpeerassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_transitgatewayconnectpeerassociation_types_go_gen.cue deleted file mode 100644 index 36ed86a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_transitgatewayconnectpeerassociation_types_go_gen.cue +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayConnectPeerAssociationInitParameters: { - // The ID of the link. - linkId?: null | string @go(LinkID,*string) -} - -#TransitGatewayConnectPeerAssociationObservation: { - // The ID of the device. - deviceId?: null | string @go(DeviceID,*string) - - // The ID of the global network. - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - id?: null | string @go(ID,*string) - - // The ID of the link. - linkId?: null | string @go(LinkID,*string) - - // The Amazon Resource Name (ARN) of the Connect peer. - transitGatewayConnectPeerArn?: null | string @go(TransitGatewayConnectPeerArn,*string) -} - -#TransitGatewayConnectPeerAssociationParameters: { - // The ID of the device. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.Device - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - deviceId?: null | string @go(DeviceID,*string) - - // Reference to a Device in networkmanager to populate deviceId. - // +kubebuilder:validation:Optional - deviceIdRef?: null | v1.#Reference @go(DeviceIDRef,*v1.Reference) - - // Selector for a Device in networkmanager to populate deviceId. - // +kubebuilder:validation:Optional - deviceIdSelector?: null | v1.#Selector @go(DeviceIDSelector,*v1.Selector) - - // The ID of the global network. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.GlobalNetwork - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - - // Reference to a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdRef?: null | v1.#Reference @go(GlobalNetworkIDRef,*v1.Reference) - - // Selector for a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdSelector?: null | v1.#Selector @go(GlobalNetworkIDSelector,*v1.Selector) - - // The ID of the link. - // +kubebuilder:validation:Optional - linkId?: null | string @go(LinkID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of the Connect peer. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGatewayConnectPeer - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - transitGatewayConnectPeerArn?: null | string @go(TransitGatewayConnectPeerArn,*string) - - // Reference to a TransitGatewayConnectPeer in ec2 to populate transitGatewayConnectPeerArn. - // +kubebuilder:validation:Optional - transitGatewayConnectPeerArnRef?: null | v1.#Reference @go(TransitGatewayConnectPeerArnRef,*v1.Reference) - - // Selector for a TransitGatewayConnectPeer in ec2 to populate transitGatewayConnectPeerArn. - // +kubebuilder:validation:Optional - transitGatewayConnectPeerArnSelector?: null | v1.#Selector @go(TransitGatewayConnectPeerArnSelector,*v1.Selector) -} - -// TransitGatewayConnectPeerAssociationSpec defines the desired state of TransitGatewayConnectPeerAssociation -#TransitGatewayConnectPeerAssociationSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayConnectPeerAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayConnectPeerAssociationInitParameters @go(InitProvider) -} - -// TransitGatewayConnectPeerAssociationStatus defines the observed state of TransitGatewayConnectPeerAssociation. -#TransitGatewayConnectPeerAssociationStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayConnectPeerAssociationObservation @go(AtProvider) -} - -// TransitGatewayConnectPeerAssociation is the Schema for the TransitGatewayConnectPeerAssociations API. Associates a transit gateway Connect peer with a device, and optionally, with a link. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayConnectPeerAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayConnectPeerAssociationSpec @go(Spec) - status?: #TransitGatewayConnectPeerAssociationStatus @go(Status) -} - -// TransitGatewayConnectPeerAssociationList contains a list of TransitGatewayConnectPeerAssociations -#TransitGatewayConnectPeerAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayConnectPeerAssociation] @go(Items,[]TransitGatewayConnectPeerAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_transitgatewayregistration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_transitgatewayregistration_types_go_gen.cue deleted file mode 100644 index 433ec16..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_transitgatewayregistration_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TransitGatewayRegistrationInitParameters: { -} - -#TransitGatewayRegistrationObservation: { - // The ID of the Global Network to register to. - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - id?: null | string @go(ID,*string) - - // The ARN of the Transit Gateway to register. - transitGatewayArn?: null | string @go(TransitGatewayArn,*string) -} - -#TransitGatewayRegistrationParameters: { - // The ID of the Global Network to register to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/networkmanager/v1beta1.GlobalNetwork - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - globalNetworkId?: null | string @go(GlobalNetworkID,*string) - - // Reference to a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdRef?: null | v1.#Reference @go(GlobalNetworkIDRef,*v1.Reference) - - // Selector for a GlobalNetwork in networkmanager to populate globalNetworkId. - // +kubebuilder:validation:Optional - globalNetworkIdSelector?: null | v1.#Selector @go(GlobalNetworkIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of the Transit Gateway to register. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.TransitGateway - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - transitGatewayArn?: null | string @go(TransitGatewayArn,*string) - - // Reference to a TransitGateway in ec2 to populate transitGatewayArn. - // +kubebuilder:validation:Optional - transitGatewayArnRef?: null | v1.#Reference @go(TransitGatewayArnRef,*v1.Reference) - - // Selector for a TransitGateway in ec2 to populate transitGatewayArn. - // +kubebuilder:validation:Optional - transitGatewayArnSelector?: null | v1.#Selector @go(TransitGatewayArnSelector,*v1.Selector) -} - -// TransitGatewayRegistrationSpec defines the desired state of TransitGatewayRegistration -#TransitGatewayRegistrationSpec: { - v1.#ResourceSpec - forProvider: #TransitGatewayRegistrationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TransitGatewayRegistrationInitParameters @go(InitProvider) -} - -// TransitGatewayRegistrationStatus defines the observed state of TransitGatewayRegistration. -#TransitGatewayRegistrationStatus: { - v1.#ResourceStatus - atProvider?: #TransitGatewayRegistrationObservation @go(AtProvider) -} - -// TransitGatewayRegistration is the Schema for the TransitGatewayRegistrations API. Registers a transit gateway to a global network. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TransitGatewayRegistration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TransitGatewayRegistrationSpec @go(Spec) - status?: #TransitGatewayRegistrationStatus @go(Status) -} - -// TransitGatewayRegistrationList contains a list of TransitGatewayRegistrations -#TransitGatewayRegistrationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TransitGatewayRegistration] @go(Items,[]TransitGatewayRegistration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_vpcattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_vpcattachment_types_go_gen.cue deleted file mode 100644 index 7676a83..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/networkmanager/v1beta1/zz_vpcattachment_types_go_gen.cue +++ /dev/null @@ -1,195 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/networkmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCAttachmentInitParameters: { - // Options for the VPC attachment. - options?: [...#VPCAttachmentOptionsInitParameters] @go(Options,[]VPCAttachmentOptionsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#VPCAttachmentObservation: { - // The ARN of the attachment. - arn?: null | string @go(Arn,*string) - - // The policy rule number associated with the attachment. - attachmentPolicyRuleNumber?: null | float64 @go(AttachmentPolicyRuleNumber,*float64) - - // The type of attachment. - attachmentType?: null | string @go(AttachmentType,*string) - - // The ARN of a core network. - coreNetworkArn?: null | string @go(CoreNetworkArn,*string) - - // The ID of a core network for the VPC attachment. - coreNetworkId?: null | string @go(CoreNetworkID,*string) - - // The Region where the edge is located. - edgeLocation?: null | string @go(EdgeLocation,*string) - - // The ID of the attachment. - id?: null | string @go(ID,*string) - - // Options for the VPC attachment. - options?: [...#VPCAttachmentOptionsObservation] @go(Options,[]VPCAttachmentOptionsObservation) - - // The ID of the attachment account owner. - ownerAccountId?: null | string @go(OwnerAccountID,*string) - - // The attachment resource ARN. - resourceArn?: null | string @go(ResourceArn,*string) - - // The name of the segment attachment. - segmentName?: null | string @go(SegmentName,*string) - - // The state of the attachment. - state?: null | string @go(State,*string) - - // The subnet ARN of the VPC attachment. - subnetArns?: [...null | string] @go(SubnetArns,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ARN of the VPC. - vpcArn?: null | string @go(VPCArn,*string) -} - -#VPCAttachmentOptionsInitParameters: { - // Indicates whether appliance mode is supported. If enabled, traffic flow between a source and destination use the same Availability Zone for the VPC attachment for the lifetime of that flow. - applianceModeSupport?: null | bool @go(ApplianceModeSupport,*bool) - - // Indicates whether IPv6 is supported. - ipv6Support?: null | bool @go(IPv6Support,*bool) -} - -#VPCAttachmentOptionsObservation: { - // Indicates whether appliance mode is supported. If enabled, traffic flow between a source and destination use the same Availability Zone for the VPC attachment for the lifetime of that flow. - applianceModeSupport?: null | bool @go(ApplianceModeSupport,*bool) - - // Indicates whether IPv6 is supported. - ipv6Support?: null | bool @go(IPv6Support,*bool) -} - -#VPCAttachmentOptionsParameters: { - // Indicates whether appliance mode is supported. If enabled, traffic flow between a source and destination use the same Availability Zone for the VPC attachment for the lifetime of that flow. - // +kubebuilder:validation:Optional - applianceModeSupport?: null | bool @go(ApplianceModeSupport,*bool) - - // Indicates whether IPv6 is supported. - // +kubebuilder:validation:Optional - ipv6Support?: null | bool @go(IPv6Support,*bool) -} - -#VPCAttachmentParameters: { - // The ID of a core network for the VPC attachment. - // +crossplane:generate:reference:type=CoreNetwork - // +kubebuilder:validation:Optional - coreNetworkId?: null | string @go(CoreNetworkID,*string) - - // Reference to a CoreNetwork to populate coreNetworkId. - // +kubebuilder:validation:Optional - coreNetworkIdRef?: null | v1.#Reference @go(CoreNetworkIDRef,*v1.Reference) - - // Selector for a CoreNetwork to populate coreNetworkId. - // +kubebuilder:validation:Optional - coreNetworkIdSelector?: null | v1.#Selector @go(CoreNetworkIDSelector,*v1.Selector) - - // Options for the VPC attachment. - // +kubebuilder:validation:Optional - options?: [...#VPCAttachmentOptionsParameters] @go(Options,[]VPCAttachmentOptionsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The subnet ARN of the VPC attachment. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - subnetArns?: [...null | string] @go(SubnetArns,[]*string) - - // References to Subnet in ec2 to populate subnetArns. - // +kubebuilder:validation:Optional - subnetArnsRefs?: [...v1.#Reference] @go(SubnetArnsRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetArns. - // +kubebuilder:validation:Optional - subnetArnsSelector?: null | v1.#Selector @go(SubnetArnsSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ARN of the VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - vpcArn?: null | string @go(VPCArn,*string) - - // Reference to a VPC in ec2 to populate vpcArn. - // +kubebuilder:validation:Optional - vpcArnRef?: null | v1.#Reference @go(VPCArnRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcArn. - // +kubebuilder:validation:Optional - vpcArnSelector?: null | v1.#Selector @go(VPCArnSelector,*v1.Selector) -} - -// VPCAttachmentSpec defines the desired state of VPCAttachment -#VPCAttachmentSpec: { - v1.#ResourceSpec - forProvider: #VPCAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCAttachmentInitParameters @go(InitProvider) -} - -// VPCAttachmentStatus defines the observed state of VPCAttachment. -#VPCAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #VPCAttachmentObservation @go(AtProvider) -} - -// VPCAttachment is the Schema for the VPCAttachments API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCAttachmentSpec @go(Spec) - status?: #VPCAttachmentStatus @go(Status) -} - -// VPCAttachmentList contains a list of VPCAttachments -#VPCAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCAttachment] @go(Items,[]VPCAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opensearch/v1beta1/zz_domain_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opensearch/v1beta1/zz_domain_types_go_gen.cue deleted file mode 100644 index a8c6305..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opensearch/v1beta1/zz_domain_types_go_gen.cue +++ /dev/null @@ -1,853 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opensearch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AdvancedSecurityOptionsInitParameters: { - // Whether Anonymous auth is enabled. Enables fine-grained access control on an existing domain. Ignored unless advanced_security_options are enabled. Can only be enabled on an existing domain. - anonymousAuthEnabled?: null | bool @go(AnonymousAuthEnabled,*bool) - - // Whether advanced security is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Whether the internal user database is enabled. Default is false. - internalUserDatabaseEnabled?: null | bool @go(InternalUserDatabaseEnabled,*bool) - - // Configuration block for the main user. Detailed below. - masterUserOptions?: [...#MasterUserOptionsInitParameters] @go(MasterUserOptions,[]MasterUserOptionsInitParameters) -} - -#AdvancedSecurityOptionsObservation: { - // Whether Anonymous auth is enabled. Enables fine-grained access control on an existing domain. Ignored unless advanced_security_options are enabled. Can only be enabled on an existing domain. - anonymousAuthEnabled?: null | bool @go(AnonymousAuthEnabled,*bool) - - // Whether advanced security is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Whether the internal user database is enabled. Default is false. - internalUserDatabaseEnabled?: null | bool @go(InternalUserDatabaseEnabled,*bool) - - // Configuration block for the main user. Detailed below. - masterUserOptions?: [...#MasterUserOptionsObservation] @go(MasterUserOptions,[]MasterUserOptionsObservation) -} - -#AdvancedSecurityOptionsParameters: { - // Whether Anonymous auth is enabled. Enables fine-grained access control on an existing domain. Ignored unless advanced_security_options are enabled. Can only be enabled on an existing domain. - // +kubebuilder:validation:Optional - anonymousAuthEnabled?: null | bool @go(AnonymousAuthEnabled,*bool) - - // Whether advanced security is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Whether the internal user database is enabled. Default is false. - // +kubebuilder:validation:Optional - internalUserDatabaseEnabled?: null | bool @go(InternalUserDatabaseEnabled,*bool) - - // Configuration block for the main user. Detailed below. - // +kubebuilder:validation:Optional - masterUserOptions?: [...#MasterUserOptionsParameters] @go(MasterUserOptions,[]MasterUserOptionsParameters) -} - -#AutoTuneOptionsInitParameters: { - // Auto-Tune desired state for the domain. Valid values: ENABLED or DISABLED. - desiredState?: null | string @go(DesiredState,*string) - - // Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below. - maintenanceSchedule?: [...#MaintenanceScheduleInitParameters] @go(MaintenanceSchedule,[]MaintenanceScheduleInitParameters) - - // Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACK or NO_ROLLBACK. - rollbackOnDisable?: null | string @go(RollbackOnDisable,*string) -} - -#AutoTuneOptionsObservation: { - // Auto-Tune desired state for the domain. Valid values: ENABLED or DISABLED. - desiredState?: null | string @go(DesiredState,*string) - - // Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below. - maintenanceSchedule?: [...#MaintenanceScheduleObservation] @go(MaintenanceSchedule,[]MaintenanceScheduleObservation) - - // Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACK or NO_ROLLBACK. - rollbackOnDisable?: null | string @go(RollbackOnDisable,*string) -} - -#AutoTuneOptionsParameters: { - // Auto-Tune desired state for the domain. Valid values: ENABLED or DISABLED. - // +kubebuilder:validation:Optional - desiredState?: null | string @go(DesiredState,*string) - - // Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below. - // +kubebuilder:validation:Optional - maintenanceSchedule?: [...#MaintenanceScheduleParameters] @go(MaintenanceSchedule,[]MaintenanceScheduleParameters) - - // Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACK or NO_ROLLBACK. - // +kubebuilder:validation:Optional - rollbackOnDisable?: null | string @go(RollbackOnDisable,*string) -} - -#ClusterConfigInitParameters: { - // Configuration block containing cold storage configuration. Detailed below. - coldStorageOptions?: [...#ColdStorageOptionsInitParameters] @go(ColdStorageOptions,[]ColdStorageOptionsInitParameters) - - // Number of dedicated main nodes in the cluster. - dedicatedMasterCount?: null | float64 @go(DedicatedMasterCount,*float64) - - // Whether dedicated main nodes are enabled for the cluster. - dedicatedMasterEnabled?: null | bool @go(DedicatedMasterEnabled,*bool) - - // Instance type of the dedicated main nodes in the cluster. - dedicatedMasterType?: null | string @go(DedicatedMasterType,*string) - - // Number of instances in the cluster. - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // Instance type of data nodes in the cluster. - instanceType?: null | string @go(InstanceType,*string) - - // Number of warm nodes in the cluster. Valid values are between 2 and 150. warm_count can be only and must be set when warm_enabled is set to true. - warmCount?: null | float64 @go(WarmCount,*float64) - - // Whether to enable warm storage. - warmEnabled?: null | bool @go(WarmEnabled,*bool) - - // Instance type for the OpenSearch cluster's warm nodes. Valid values are ultrawarm1.medium.search, ultrawarm1.large.search and ultrawarm1.xlarge.search. warm_type can be only and must be set when warm_enabled is set to true. - warmType?: null | string @go(WarmType,*string) - - // Configuration block containing zone awareness settings. Detailed below. - zoneAwarenessConfig?: [...#ZoneAwarenessConfigInitParameters] @go(ZoneAwarenessConfig,[]ZoneAwarenessConfigInitParameters) - - // Whether zone awareness is enabled, set to true for multi-az deployment. To enable awareness with three Availability Zones, the availability_zone_count within the zone_awareness_config must be set to 3. - zoneAwarenessEnabled?: null | bool @go(ZoneAwarenessEnabled,*bool) -} - -#ClusterConfigObservation: { - // Configuration block containing cold storage configuration. Detailed below. - coldStorageOptions?: [...#ColdStorageOptionsObservation] @go(ColdStorageOptions,[]ColdStorageOptionsObservation) - - // Number of dedicated main nodes in the cluster. - dedicatedMasterCount?: null | float64 @go(DedicatedMasterCount,*float64) - - // Whether dedicated main nodes are enabled for the cluster. - dedicatedMasterEnabled?: null | bool @go(DedicatedMasterEnabled,*bool) - - // Instance type of the dedicated main nodes in the cluster. - dedicatedMasterType?: null | string @go(DedicatedMasterType,*string) - - // Number of instances in the cluster. - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // Instance type of data nodes in the cluster. - instanceType?: null | string @go(InstanceType,*string) - - // Number of warm nodes in the cluster. Valid values are between 2 and 150. warm_count can be only and must be set when warm_enabled is set to true. - warmCount?: null | float64 @go(WarmCount,*float64) - - // Whether to enable warm storage. - warmEnabled?: null | bool @go(WarmEnabled,*bool) - - // Instance type for the OpenSearch cluster's warm nodes. Valid values are ultrawarm1.medium.search, ultrawarm1.large.search and ultrawarm1.xlarge.search. warm_type can be only and must be set when warm_enabled is set to true. - warmType?: null | string @go(WarmType,*string) - - // Configuration block containing zone awareness settings. Detailed below. - zoneAwarenessConfig?: [...#ZoneAwarenessConfigObservation] @go(ZoneAwarenessConfig,[]ZoneAwarenessConfigObservation) - - // Whether zone awareness is enabled, set to true for multi-az deployment. To enable awareness with three Availability Zones, the availability_zone_count within the zone_awareness_config must be set to 3. - zoneAwarenessEnabled?: null | bool @go(ZoneAwarenessEnabled,*bool) -} - -#ClusterConfigParameters: { - // Configuration block containing cold storage configuration. Detailed below. - // +kubebuilder:validation:Optional - coldStorageOptions?: [...#ColdStorageOptionsParameters] @go(ColdStorageOptions,[]ColdStorageOptionsParameters) - - // Number of dedicated main nodes in the cluster. - // +kubebuilder:validation:Optional - dedicatedMasterCount?: null | float64 @go(DedicatedMasterCount,*float64) - - // Whether dedicated main nodes are enabled for the cluster. - // +kubebuilder:validation:Optional - dedicatedMasterEnabled?: null | bool @go(DedicatedMasterEnabled,*bool) - - // Instance type of the dedicated main nodes in the cluster. - // +kubebuilder:validation:Optional - dedicatedMasterType?: null | string @go(DedicatedMasterType,*string) - - // Number of instances in the cluster. - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // Instance type of data nodes in the cluster. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // Number of warm nodes in the cluster. Valid values are between 2 and 150. warm_count can be only and must be set when warm_enabled is set to true. - // +kubebuilder:validation:Optional - warmCount?: null | float64 @go(WarmCount,*float64) - - // Whether to enable warm storage. - // +kubebuilder:validation:Optional - warmEnabled?: null | bool @go(WarmEnabled,*bool) - - // Instance type for the OpenSearch cluster's warm nodes. Valid values are ultrawarm1.medium.search, ultrawarm1.large.search and ultrawarm1.xlarge.search. warm_type can be only and must be set when warm_enabled is set to true. - // +kubebuilder:validation:Optional - warmType?: null | string @go(WarmType,*string) - - // Configuration block containing zone awareness settings. Detailed below. - // +kubebuilder:validation:Optional - zoneAwarenessConfig?: [...#ZoneAwarenessConfigParameters] @go(ZoneAwarenessConfig,[]ZoneAwarenessConfigParameters) - - // Whether zone awareness is enabled, set to true for multi-az deployment. To enable awareness with three Availability Zones, the availability_zone_count within the zone_awareness_config must be set to 3. - // +kubebuilder:validation:Optional - zoneAwarenessEnabled?: null | bool @go(ZoneAwarenessEnabled,*bool) -} - -#CognitoOptionsInitParameters: { - // Whether Amazon Cognito authentication with Dashboard is enabled or not. Default is false. - enabled?: null | bool @go(Enabled,*bool) - - // ID of the Cognito Identity Pool to use. - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // ARN of the IAM role that has the AmazonOpenSearchServiceCognitoAccess policy attached. - roleArn?: null | string @go(RoleArn,*string) - - // ID of the Cognito User Pool to use. - userPoolId?: null | string @go(UserPoolID,*string) -} - -#CognitoOptionsObservation: { - // Whether Amazon Cognito authentication with Dashboard is enabled or not. Default is false. - enabled?: null | bool @go(Enabled,*bool) - - // ID of the Cognito Identity Pool to use. - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // ARN of the IAM role that has the AmazonOpenSearchServiceCognitoAccess policy attached. - roleArn?: null | string @go(RoleArn,*string) - - // ID of the Cognito User Pool to use. - userPoolId?: null | string @go(UserPoolID,*string) -} - -#CognitoOptionsParameters: { - // Whether Amazon Cognito authentication with Dashboard is enabled or not. Default is false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // ID of the Cognito Identity Pool to use. - // +kubebuilder:validation:Optional - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // ARN of the IAM role that has the AmazonOpenSearchServiceCognitoAccess policy attached. - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // ID of the Cognito User Pool to use. - // +kubebuilder:validation:Optional - userPoolId?: null | string @go(UserPoolID,*string) -} - -#ColdStorageOptionsInitParameters: { - // Boolean to enable cold storage for an OpenSearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage. - enabled?: null | bool @go(Enabled,*bool) -} - -#ColdStorageOptionsObservation: { - // Boolean to enable cold storage for an OpenSearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage. - enabled?: null | bool @go(Enabled,*bool) -} - -#ColdStorageOptionsParameters: { - // Boolean to enable cold storage for an OpenSearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#DomainEndpointOptionsInitParameters: { - // Fully qualified domain for your custom endpoint. - customEndpoint?: null | string @go(CustomEndpoint,*string) - - // ACM certificate ARN for your custom endpoint. - customEndpointCertificateArn?: null | string @go(CustomEndpointCertificateArn,*string) - - // Whether to enable custom endpoint for the OpenSearch domain. - customEndpointEnabled?: null | bool @go(CustomEndpointEnabled,*bool) - - // Whether or not to require HTTPS. Defaults to true. - enforceHttps?: null | bool @go(EnforceHTTPS,*bool) - - // Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07 and Policy-Min-TLS-1-2-2019-07. - tlsSecurityPolicy?: null | string @go(TLSSecurityPolicy,*string) -} - -#DomainEndpointOptionsObservation: { - // Fully qualified domain for your custom endpoint. - customEndpoint?: null | string @go(CustomEndpoint,*string) - - // ACM certificate ARN for your custom endpoint. - customEndpointCertificateArn?: null | string @go(CustomEndpointCertificateArn,*string) - - // Whether to enable custom endpoint for the OpenSearch domain. - customEndpointEnabled?: null | bool @go(CustomEndpointEnabled,*bool) - - // Whether or not to require HTTPS. Defaults to true. - enforceHttps?: null | bool @go(EnforceHTTPS,*bool) - - // Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07 and Policy-Min-TLS-1-2-2019-07. - tlsSecurityPolicy?: null | string @go(TLSSecurityPolicy,*string) -} - -#DomainEndpointOptionsParameters: { - // Fully qualified domain for your custom endpoint. - // +kubebuilder:validation:Optional - customEndpoint?: null | string @go(CustomEndpoint,*string) - - // ACM certificate ARN for your custom endpoint. - // +kubebuilder:validation:Optional - customEndpointCertificateArn?: null | string @go(CustomEndpointCertificateArn,*string) - - // Whether to enable custom endpoint for the OpenSearch domain. - // +kubebuilder:validation:Optional - customEndpointEnabled?: null | bool @go(CustomEndpointEnabled,*bool) - - // Whether or not to require HTTPS. Defaults to true. - // +kubebuilder:validation:Optional - enforceHttps?: null | bool @go(EnforceHTTPS,*bool) - - // Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07 and Policy-Min-TLS-1-2-2019-07. - // +kubebuilder:validation:Optional - tlsSecurityPolicy?: null | string @go(TLSSecurityPolicy,*string) -} - -#DomainInitParameters: { - // Key-value string pairs to specify advanced configuration options. - advancedOptions?: {[string]: null | string} @go(AdvancedOptions,map[string]*string) - - // Configuration block for fine-grained access control. Detailed below. - advancedSecurityOptions?: [...#AdvancedSecurityOptionsInitParameters] @go(AdvancedSecurityOptions,[]AdvancedSecurityOptionsInitParameters) - - // Configuration block for the Auto-Tune options of the domain. Detailed below. - autoTuneOptions?: [...#AutoTuneOptionsInitParameters] @go(AutoTuneOptions,[]AutoTuneOptionsInitParameters) - - // Configuration block for the cluster of the domain. Detailed below. - clusterConfig?: [...#ClusterConfigInitParameters] @go(ClusterConfig,[]ClusterConfigInitParameters) - - // Configuration block for authenticating dashboard with Cognito. Detailed below. - cognitoOptions?: [...#CognitoOptionsInitParameters] @go(CognitoOptions,[]CognitoOptionsInitParameters) - - // Configuration block for domain endpoint HTTP(S) related options. Detailed below. - domainEndpointOptions?: [...#DomainEndpointOptionsInitParameters] @go(DomainEndpointOptions,[]DomainEndpointOptionsInitParameters) - - // Name of the domain. - domainName?: null | string @go(DomainName,*string) - - // Configuration block for EBS related options, may be required based on chosen instance size. Detailed below. - ebsOptions?: [...#EBSOptionsInitParameters] @go(EBSOptions,[]EBSOptionsInitParameters) - - // Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below. - encryptAtRest?: [...#EncryptAtRestInitParameters] @go(EncryptAtRest,[]EncryptAtRestInitParameters) - - // while Elasticsearch has elasticsearch_version - engineVersion?: null | string @go(EngineVersion,*string) - - // Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below. - logPublishingOptions?: [...#LogPublishingOptionsInitParameters] @go(LogPublishingOptions,[]LogPublishingOptionsInitParameters) - - // Configuration block for node-to-node encryption options. Detailed below. - nodeToNodeEncryption?: [...#NodeToNodeEncryptionInitParameters] @go(NodeToNodeEncryption,[]NodeToNodeEncryptionInitParameters) - - // Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running OpenSearch 5.3 and later, Amazon OpenSearch takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions, OpenSearch takes daily automated snapshots. - snapshotOptions?: [...#SnapshotOptionsInitParameters] @go(SnapshotOptions,[]SnapshotOptionsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below. - vpcOptions?: [...#VPCOptionsInitParameters] @go(VPCOptions,[]VPCOptionsInitParameters) -} - -#DomainObservation: { - // , are prefaced with es: for both. - accessPolicies?: null | string @go(AccessPolicies,*string) - - // Key-value string pairs to specify advanced configuration options. - advancedOptions?: {[string]: null | string} @go(AdvancedOptions,map[string]*string) - - // Configuration block for fine-grained access control. Detailed below. - advancedSecurityOptions?: [...#AdvancedSecurityOptionsObservation] @go(AdvancedSecurityOptions,[]AdvancedSecurityOptionsObservation) - - // ARN of the domain. - arn?: null | string @go(Arn,*string) - - // Configuration block for the Auto-Tune options of the domain. Detailed below. - autoTuneOptions?: [...#AutoTuneOptionsObservation] @go(AutoTuneOptions,[]AutoTuneOptionsObservation) - - // Configuration block for the cluster of the domain. Detailed below. - clusterConfig?: [...#ClusterConfigObservation] @go(ClusterConfig,[]ClusterConfigObservation) - - // Configuration block for authenticating dashboard with Cognito. Detailed below. - cognitoOptions?: [...#CognitoOptionsObservation] @go(CognitoOptions,[]CognitoOptionsObservation) - - // Domain-specific endpoint for Dashboard without https scheme. - dashboardEndpoint?: null | string @go(DashboardEndpoint,*string) - - // Configuration block for domain endpoint HTTP(S) related options. Detailed below. - domainEndpointOptions?: [...#DomainEndpointOptionsObservation] @go(DomainEndpointOptions,[]DomainEndpointOptionsObservation) - - // Unique identifier for the domain. - domainId?: null | string @go(DomainID,*string) - - // Name of the domain. - domainName?: null | string @go(DomainName,*string) - - // Configuration block for EBS related options, may be required based on chosen instance size. Detailed below. - ebsOptions?: [...#EBSOptionsObservation] @go(EBSOptions,[]EBSOptionsObservation) - - // Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below. - encryptAtRest?: [...#EncryptAtRestObservation] @go(EncryptAtRest,[]EncryptAtRestObservation) - - // Domain-specific endpoint used to submit index, search, and data upload requests. - endpoint?: null | string @go(Endpoint,*string) - - // while Elasticsearch has elasticsearch_version - engineVersion?: null | string @go(EngineVersion,*string) - id?: null | string @go(ID,*string) - - // Domain-specific endpoint for kibana without https scheme. OpenSearch Dashboards do not use Kibana, so this attribute will be DEPRECATED in a future version. - kibanaEndpoint?: null | string @go(KibanaEndpoint,*string) - - // Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below. - logPublishingOptions?: [...#LogPublishingOptionsObservation] @go(LogPublishingOptions,[]LogPublishingOptionsObservation) - - // Configuration block for node-to-node encryption options. Detailed below. - nodeToNodeEncryption?: [...#NodeToNodeEncryptionObservation] @go(NodeToNodeEncryption,[]NodeToNodeEncryptionObservation) - - // Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running OpenSearch 5.3 and later, Amazon OpenSearch takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions, OpenSearch takes daily automated snapshots. - snapshotOptions?: [...#SnapshotOptionsObservation] @go(SnapshotOptions,[]SnapshotOptionsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below. - vpcOptions?: [...#VPCOptionsObservation] @go(VPCOptions,[]VPCOptionsObservation) -} - -#DomainParameters: { - // Key-value string pairs to specify advanced configuration options. - // +kubebuilder:validation:Optional - advancedOptions?: {[string]: null | string} @go(AdvancedOptions,map[string]*string) - - // Configuration block for fine-grained access control. Detailed below. - // +kubebuilder:validation:Optional - advancedSecurityOptions?: [...#AdvancedSecurityOptionsParameters] @go(AdvancedSecurityOptions,[]AdvancedSecurityOptionsParameters) - - // Configuration block for the Auto-Tune options of the domain. Detailed below. - // +kubebuilder:validation:Optional - autoTuneOptions?: [...#AutoTuneOptionsParameters] @go(AutoTuneOptions,[]AutoTuneOptionsParameters) - - // Configuration block for the cluster of the domain. Detailed below. - // +kubebuilder:validation:Optional - clusterConfig?: [...#ClusterConfigParameters] @go(ClusterConfig,[]ClusterConfigParameters) - - // Configuration block for authenticating dashboard with Cognito. Detailed below. - // +kubebuilder:validation:Optional - cognitoOptions?: [...#CognitoOptionsParameters] @go(CognitoOptions,[]CognitoOptionsParameters) - - // Configuration block for domain endpoint HTTP(S) related options. Detailed below. - // +kubebuilder:validation:Optional - domainEndpointOptions?: [...#DomainEndpointOptionsParameters] @go(DomainEndpointOptions,[]DomainEndpointOptionsParameters) - - // Name of the domain. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Configuration block for EBS related options, may be required based on chosen instance size. Detailed below. - // +kubebuilder:validation:Optional - ebsOptions?: [...#EBSOptionsParameters] @go(EBSOptions,[]EBSOptionsParameters) - - // Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below. - // +kubebuilder:validation:Optional - encryptAtRest?: [...#EncryptAtRestParameters] @go(EncryptAtRest,[]EncryptAtRestParameters) - - // while Elasticsearch has elasticsearch_version - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below. - // +kubebuilder:validation:Optional - logPublishingOptions?: [...#LogPublishingOptionsParameters] @go(LogPublishingOptions,[]LogPublishingOptionsParameters) - - // Configuration block for node-to-node encryption options. Detailed below. - // +kubebuilder:validation:Optional - nodeToNodeEncryption?: [...#NodeToNodeEncryptionParameters] @go(NodeToNodeEncryption,[]NodeToNodeEncryptionParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running OpenSearch 5.3 and later, Amazon OpenSearch takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions, OpenSearch takes daily automated snapshots. - // +kubebuilder:validation:Optional - snapshotOptions?: [...#SnapshotOptionsParameters] @go(SnapshotOptions,[]SnapshotOptionsParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below. - // +kubebuilder:validation:Optional - vpcOptions?: [...#VPCOptionsParameters] @go(VPCOptions,[]VPCOptionsParameters) -} - -#DurationInitParameters: { - // Unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: HOURS. - unit?: null | string @go(Unit,*string) - - // An integer specifying the value of the duration of an Auto-Tune maintenance window. - value?: null | float64 @go(Value,*float64) -} - -#DurationObservation: { - // Unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: HOURS. - unit?: null | string @go(Unit,*string) - - // An integer specifying the value of the duration of an Auto-Tune maintenance window. - value?: null | float64 @go(Value,*float64) -} - -#DurationParameters: { - // Unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: HOURS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // An integer specifying the value of the duration of an Auto-Tune maintenance window. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#EBSOptionsInitParameters: { - // Whether EBS volumes are attached to data nodes in the domain. - ebsEnabled?: null | bool @go(EBSEnabled,*bool) - - // Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types. - iops?: null | float64 @go(Iops,*float64) - - // Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type. - throughput?: null | float64 @go(Throughput,*float64) - - // Size of EBS volumes attached to data nodes (in GiB). - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of EBS volumes attached to data nodes. - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSOptionsObservation: { - // Whether EBS volumes are attached to data nodes in the domain. - ebsEnabled?: null | bool @go(EBSEnabled,*bool) - - // Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types. - iops?: null | float64 @go(Iops,*float64) - - // Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type. - throughput?: null | float64 @go(Throughput,*float64) - - // Size of EBS volumes attached to data nodes (in GiB). - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of EBS volumes attached to data nodes. - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSOptionsParameters: { - // Whether EBS volumes are attached to data nodes in the domain. - // +kubebuilder:validation:Optional - ebsEnabled?: null | bool @go(EBSEnabled,*bool) - - // Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type. - // +kubebuilder:validation:Optional - throughput?: null | float64 @go(Throughput,*float64) - - // Size of EBS volumes attached to data nodes (in GiB). - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of EBS volumes attached to data nodes. - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -#EncryptAtRestInitParameters: { - // Whether to enable encryption at rest. If the encrypt_at_rest block is not provided then this defaults to false. Enabling encryption on new domains requires an engine_version of OpenSearch_X.Y or Elasticsearch_5.1 or greater. - enabled?: null | bool @go(Enabled,*bool) - - // KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/es service KMS key. Note that KMS will accept a KMS key ID but will return the key ARN. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#EncryptAtRestObservation: { - // Whether to enable encryption at rest. If the encrypt_at_rest block is not provided then this defaults to false. Enabling encryption on new domains requires an engine_version of OpenSearch_X.Y or Elasticsearch_5.1 or greater. - enabled?: null | bool @go(Enabled,*bool) - - // KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/es service KMS key. Note that KMS will accept a KMS key ID but will return the key ARN. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#EncryptAtRestParameters: { - // Whether to enable encryption at rest. If the encrypt_at_rest block is not provided then this defaults to false. Enabling encryption on new domains requires an engine_version of OpenSearch_X.Y or Elasticsearch_5.1 or greater. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/es service KMS key. Note that KMS will accept a KMS key ID but will return the key ARN. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#LogPublishingOptionsInitParameters: { - // Whether given log publishing option is enabled or not. - enabled?: null | bool @go(Enabled,*bool) - - // Type of OpenSearch log. Valid values: INDEX_SLOW_LOGS, SEARCH_SLOW_LOGS, ES_APPLICATION_LOGS, AUDIT_LOGS. - logType?: null | string @go(LogType,*string) -} - -#LogPublishingOptionsObservation: { - // ARN of the Cloudwatch log group to which log needs to be published. - cloudwatchLogGroupArn?: null | string @go(CloudwatchLogGroupArn,*string) - - // Whether given log publishing option is enabled or not. - enabled?: null | bool @go(Enabled,*bool) - - // Type of OpenSearch log. Valid values: INDEX_SLOW_LOGS, SEARCH_SLOW_LOGS, ES_APPLICATION_LOGS, AUDIT_LOGS. - logType?: null | string @go(LogType,*string) -} - -#LogPublishingOptionsParameters: { - // ARN of the Cloudwatch log group to which log needs to be published. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - cloudwatchLogGroupArn?: null | string @go(CloudwatchLogGroupArn,*string) - - // Reference to a Group in cloudwatchlogs to populate cloudwatchLogGroupArn. - // +kubebuilder:validation:Optional - cloudwatchLogGroupArnRef?: null | v1.#Reference @go(CloudwatchLogGroupArnRef,*v1.Reference) - - // Selector for a Group in cloudwatchlogs to populate cloudwatchLogGroupArn. - // +kubebuilder:validation:Optional - cloudwatchLogGroupArnSelector?: null | v1.#Selector @go(CloudwatchLogGroupArnSelector,*v1.Selector) - - // Whether given log publishing option is enabled or not. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Type of OpenSearch log. Valid values: INDEX_SLOW_LOGS, SEARCH_SLOW_LOGS, ES_APPLICATION_LOGS, AUDIT_LOGS. - // +kubebuilder:validation:Optional - logType?: null | string @go(LogType,*string) -} - -#MaintenanceScheduleInitParameters: { - // A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule. - cronExpressionForRecurrence?: null | string @go(CronExpressionForRecurrence,*string) - - // Configuration block for the duration of the Auto-Tune maintenance window. Detailed below. - duration?: [...#DurationInitParameters] @go(Duration,[]DurationInitParameters) - - // Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format. - startAt?: null | string @go(StartAt,*string) -} - -#MaintenanceScheduleObservation: { - // A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule. - cronExpressionForRecurrence?: null | string @go(CronExpressionForRecurrence,*string) - - // Configuration block for the duration of the Auto-Tune maintenance window. Detailed below. - duration?: [...#DurationObservation] @go(Duration,[]DurationObservation) - - // Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format. - startAt?: null | string @go(StartAt,*string) -} - -#MaintenanceScheduleParameters: { - // A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule. - // +kubebuilder:validation:Optional - cronExpressionForRecurrence?: null | string @go(CronExpressionForRecurrence,*string) - - // Configuration block for the duration of the Auto-Tune maintenance window. Detailed below. - // +kubebuilder:validation:Optional - duration: [...#DurationParameters] @go(Duration,[]DurationParameters) - - // Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format. - // +kubebuilder:validation:Optional - startAt?: null | string @go(StartAt,*string) -} - -#MasterUserOptionsInitParameters: { - // ARN for the main user. Only specify if internal_user_database_enabled is not set or set to false. - masterUserArn?: null | string @go(MasterUserArn,*string) - - // Main user's username, which is stored in the Amazon OpenSearch Service domain's internal database. Only specify if internal_user_database_enabled is set to true. - masterUserName?: null | string @go(MasterUserName,*string) -} - -#MasterUserOptionsObservation: { - // ARN for the main user. Only specify if internal_user_database_enabled is not set or set to false. - masterUserArn?: null | string @go(MasterUserArn,*string) - - // Main user's username, which is stored in the Amazon OpenSearch Service domain's internal database. Only specify if internal_user_database_enabled is set to true. - masterUserName?: null | string @go(MasterUserName,*string) -} - -#MasterUserOptionsParameters: { - // ARN for the main user. Only specify if internal_user_database_enabled is not set or set to false. - // +kubebuilder:validation:Optional - masterUserArn?: null | string @go(MasterUserArn,*string) - - // Main user's username, which is stored in the Amazon OpenSearch Service domain's internal database. Only specify if internal_user_database_enabled is set to true. - // +kubebuilder:validation:Optional - masterUserName?: null | string @go(MasterUserName,*string) - - // Main user's password, which is stored in the Amazon OpenSearch Service domain's internal database. Only specify if internal_user_database_enabled is set to true. - // +kubebuilder:validation:Optional - masterUserPasswordSecretRef?: null | v1.#SecretKeySelector @go(MasterUserPasswordSecretRef,*v1.SecretKeySelector) -} - -#NodeToNodeEncryptionInitParameters: { - // Whether to enable node-to-node encryption. If the node_to_node_encryption block is not provided then this defaults to false. Enabling node-to-node encryption of a new domain requires an engine_version of OpenSearch_X.Y or Elasticsearch_6.0 or greater. - enabled?: null | bool @go(Enabled,*bool) -} - -#NodeToNodeEncryptionObservation: { - // Whether to enable node-to-node encryption. If the node_to_node_encryption block is not provided then this defaults to false. Enabling node-to-node encryption of a new domain requires an engine_version of OpenSearch_X.Y or Elasticsearch_6.0 or greater. - enabled?: null | bool @go(Enabled,*bool) -} - -#NodeToNodeEncryptionParameters: { - // Whether to enable node-to-node encryption. If the node_to_node_encryption block is not provided then this defaults to false. Enabling node-to-node encryption of a new domain requires an engine_version of OpenSearch_X.Y or Elasticsearch_6.0 or greater. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#SnapshotOptionsInitParameters: { - // Hour during which the service takes an automated daily snapshot of the indices in the domain. - automatedSnapshotStartHour?: null | float64 @go(AutomatedSnapshotStartHour,*float64) -} - -#SnapshotOptionsObservation: { - // Hour during which the service takes an automated daily snapshot of the indices in the domain. - automatedSnapshotStartHour?: null | float64 @go(AutomatedSnapshotStartHour,*float64) -} - -#SnapshotOptionsParameters: { - // Hour during which the service takes an automated daily snapshot of the indices in the domain. - // +kubebuilder:validation:Optional - automatedSnapshotStartHour?: null | float64 @go(AutomatedSnapshotStartHour,*float64) -} - -#VPCOptionsInitParameters: { - // List of VPC Security Group IDs to be applied to the OpenSearch domain endpoints. If omitted, the default Security Group for the VPC will be used. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // List of VPC Subnet IDs for the OpenSearch domain endpoints to be created in. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#VPCOptionsObservation: { - // If the domain was created inside a VPC, the names of the availability zones the configured subnet_ids were created inside. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // List of VPC Security Group IDs to be applied to the OpenSearch domain endpoints. If omitted, the default Security Group for the VPC will be used. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // List of VPC Subnet IDs for the OpenSearch domain endpoints to be created in. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // If the domain was created inside a VPC, the ID of the VPC. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCOptionsParameters: { - // List of VPC Security Group IDs to be applied to the OpenSearch domain endpoints. If omitted, the default Security Group for the VPC will be used. - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // List of VPC Subnet IDs for the OpenSearch domain endpoints to be created in. - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) -} - -#ZoneAwarenessConfigInitParameters: { - // Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to 2. Valid values: 2 or 3. - availabilityZoneCount?: null | float64 @go(AvailabilityZoneCount,*float64) -} - -#ZoneAwarenessConfigObservation: { - // Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to 2. Valid values: 2 or 3. - availabilityZoneCount?: null | float64 @go(AvailabilityZoneCount,*float64) -} - -#ZoneAwarenessConfigParameters: { - // Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to 2. Valid values: 2 or 3. - // +kubebuilder:validation:Optional - availabilityZoneCount?: null | float64 @go(AvailabilityZoneCount,*float64) -} - -// DomainSpec defines the desired state of Domain -#DomainSpec: { - v1.#ResourceSpec - forProvider: #DomainParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainInitParameters @go(InitProvider) -} - -// DomainStatus defines the observed state of Domain. -#DomainStatus: { - v1.#ResourceStatus - atProvider?: #DomainObservation @go(AtProvider) -} - -// Domain is the Schema for the Domains API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Domain: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.domainName) || (has(self.initProvider) && has(self.initProvider.domainName))",message="spec.forProvider.domainName is a required parameter" - spec: #DomainSpec @go(Spec) - status?: #DomainStatus @go(Status) -} - -// DomainList contains a list of Domains -#DomainList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Domain] @go(Items,[]Domain) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opensearch/v1beta1/zz_domainpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opensearch/v1beta1/zz_domainpolicy_types_go_gen.cue deleted file mode 100644 index 52bbce2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opensearch/v1beta1/zz_domainpolicy_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opensearch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainPolicyInitParameters: { - // IAM policy document specifying the access policies for the domain - accessPolicies?: null | string @go(AccessPolicies,*string) -} - -#DomainPolicyObservation: { - // IAM policy document specifying the access policies for the domain - accessPolicies?: null | string @go(AccessPolicies,*string) - - // Name of the domain. - domainName?: null | string @go(DomainName,*string) - id?: null | string @go(ID,*string) -} - -#DomainPolicyParameters: { - // IAM policy document specifying the access policies for the domain - // +kubebuilder:validation:Optional - accessPolicies?: null | string @go(AccessPolicies,*string) - - // Name of the domain. - // +crossplane:generate:reference:type=Domain - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Reference to a Domain to populate domainName. - // +kubebuilder:validation:Optional - domainNameRef?: null | v1.#Reference @go(DomainNameRef,*v1.Reference) - - // Selector for a Domain to populate domainName. - // +kubebuilder:validation:Optional - domainNameSelector?: null | v1.#Selector @go(DomainNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DomainPolicySpec defines the desired state of DomainPolicy -#DomainPolicySpec: { - v1.#ResourceSpec - forProvider: #DomainPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainPolicyInitParameters @go(InitProvider) -} - -// DomainPolicyStatus defines the observed state of DomainPolicy. -#DomainPolicyStatus: { - v1.#ResourceStatus - atProvider?: #DomainPolicyObservation @go(AtProvider) -} - -// DomainPolicy is the Schema for the DomainPolicys API. Provides an OpenSearch Domain Policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DomainPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accessPolicies) || (has(self.initProvider) && has(self.initProvider.accessPolicies))",message="spec.forProvider.accessPolicies is a required parameter" - spec: #DomainPolicySpec @go(Spec) - status?: #DomainPolicyStatus @go(Status) -} - -// DomainPolicyList contains a list of DomainPolicys -#DomainPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DomainPolicy] @go(Items,[]DomainPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opensearch/v1beta1/zz_domainsamloptions_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opensearch/v1beta1/zz_domainsamloptions_types_go_gen.cue deleted file mode 100644 index a792f57..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opensearch/v1beta1/zz_domainsamloptions_types_go_gen.cue +++ /dev/null @@ -1,192 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opensearch/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainSAMLOptionsInitParameters: { - // SAML authentication options for an AWS OpenSearch Domain. - samlOptions?: [...#SAMLOptionsInitParameters] @go(SAMLOptions,[]SAMLOptionsInitParameters) -} - -#DomainSAMLOptionsObservation: { - // Name of the domain. - domainName?: null | string @go(DomainName,*string) - - // Name of the domain the SAML options are associated with. - id?: null | string @go(ID,*string) - - // SAML authentication options for an AWS OpenSearch Domain. - samlOptions?: [...#SAMLOptionsObservation] @go(SAMLOptions,[]SAMLOptionsObservation) -} - -#DomainSAMLOptionsParameters: { - // Name of the domain. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opensearch/v1beta1.Domain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("domain_name",false) - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Reference to a Domain in opensearch to populate domainName. - // +kubebuilder:validation:Optional - domainNameRef?: null | v1.#Reference @go(DomainNameRef,*v1.Reference) - - // Selector for a Domain in opensearch to populate domainName. - // +kubebuilder:validation:Optional - domainNameSelector?: null | v1.#Selector @go(DomainNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // SAML authentication options for an AWS OpenSearch Domain. - // +kubebuilder:validation:Optional - samlOptions?: [...#SAMLOptionsParameters] @go(SAMLOptions,[]SAMLOptionsParameters) -} - -#IdpInitParameters: { - // Unique Entity ID of the application in SAML Identity Provider. - entityId?: null | string @go(EntityID,*string) - - // Metadata of the SAML application in xml format. - metadataContent?: null | string @go(MetadataContent,*string) -} - -#IdpObservation: { - // Unique Entity ID of the application in SAML Identity Provider. - entityId?: null | string @go(EntityID,*string) - - // Metadata of the SAML application in xml format. - metadataContent?: null | string @go(MetadataContent,*string) -} - -#IdpParameters: { - // Unique Entity ID of the application in SAML Identity Provider. - // +kubebuilder:validation:Optional - entityId?: null | string @go(EntityID,*string) - - // Metadata of the SAML application in xml format. - // +kubebuilder:validation:Optional - metadataContent?: null | string @go(MetadataContent,*string) -} - -#SAMLOptionsInitParameters: { - // Whether SAML authentication is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Information from your identity provider. - idp?: [...#IdpInitParameters] @go(Idp,[]IdpInitParameters) - - // This backend role from the SAML IdP receives full permissions to the cluster, equivalent to a new master user. - masterBackendRole?: null | string @go(MasterBackendRole,*string) - - // Element of the SAML assertion to use for backend roles. Default is roles. - rolesKey?: null | string @go(RolesKey,*string) - - // Duration of a session in minutes after a user logs in. Default is 60. Maximum value is 1,440. - sessionTimeoutMinutes?: null | float64 @go(SessionTimeoutMinutes,*float64) - - // Element of the SAML assertion to use for username. Default is NameID. - subjectKey?: null | string @go(SubjectKey,*string) -} - -#SAMLOptionsObservation: { - // Whether SAML authentication is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Information from your identity provider. - idp?: [...#IdpObservation] @go(Idp,[]IdpObservation) - - // This backend role from the SAML IdP receives full permissions to the cluster, equivalent to a new master user. - masterBackendRole?: null | string @go(MasterBackendRole,*string) - - // Element of the SAML assertion to use for backend roles. Default is roles. - rolesKey?: null | string @go(RolesKey,*string) - - // Duration of a session in minutes after a user logs in. Default is 60. Maximum value is 1,440. - sessionTimeoutMinutes?: null | float64 @go(SessionTimeoutMinutes,*float64) - - // Element of the SAML assertion to use for username. Default is NameID. - subjectKey?: null | string @go(SubjectKey,*string) -} - -#SAMLOptionsParameters: { - // Whether SAML authentication is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Information from your identity provider. - // +kubebuilder:validation:Optional - idp?: [...#IdpParameters] @go(Idp,[]IdpParameters) - - // This backend role from the SAML IdP receives full permissions to the cluster, equivalent to a new master user. - // +kubebuilder:validation:Optional - masterBackendRole?: null | string @go(MasterBackendRole,*string) - - // This username from the SAML IdP receives full permissions to the cluster, equivalent to a new master user. - // +kubebuilder:validation:Optional - masterUserNameSecretRef?: null | v1.#SecretKeySelector @go(MasterUserNameSecretRef,*v1.SecretKeySelector) - - // Element of the SAML assertion to use for backend roles. Default is roles. - // +kubebuilder:validation:Optional - rolesKey?: null | string @go(RolesKey,*string) - - // Duration of a session in minutes after a user logs in. Default is 60. Maximum value is 1,440. - // +kubebuilder:validation:Optional - sessionTimeoutMinutes?: null | float64 @go(SessionTimeoutMinutes,*float64) - - // Element of the SAML assertion to use for username. Default is NameID. - // +kubebuilder:validation:Optional - subjectKey?: null | string @go(SubjectKey,*string) -} - -// DomainSAMLOptionsSpec defines the desired state of DomainSAMLOptions -#DomainSAMLOptionsSpec: { - v1.#ResourceSpec - forProvider: #DomainSAMLOptionsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainSAMLOptionsInitParameters @go(InitProvider) -} - -// DomainSAMLOptionsStatus defines the observed state of DomainSAMLOptions. -#DomainSAMLOptionsStatus: { - v1.#ResourceStatus - atProvider?: #DomainSAMLOptionsObservation @go(AtProvider) -} - -// DomainSAMLOptions is the Schema for the DomainSAMLOptionss API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DomainSAMLOptions: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DomainSAMLOptionsSpec @go(Spec) - status?: #DomainSAMLOptionsStatus @go(Status) -} - -// DomainSAMLOptionsList contains a list of DomainSAMLOptionss -#DomainSAMLOptionsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DomainSAMLOptions] @go(Items,[]DomainSAMLOptions) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opensearch/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opensearch/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 2db39cb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opensearch/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opensearch/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=opensearch.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "opensearch.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_application_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_application_types_go_gen.cue deleted file mode 100644 index ce4a785..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_application_types_go_gen.cue +++ /dev/null @@ -1,364 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AppSourceInitParameters: { - // For sources that are version-aware, the revision to use. - revision?: null | string @go(Revision,*string) - - // The type of source to use. For example, "archive". - type?: null | string @go(Type,*string) - - // The URL where the app resource can be found. - url?: null | string @go(URL,*string) - - // Username to use when authenticating to the source. - username?: null | string @go(Username,*string) -} - -#AppSourceObservation: { - // For sources that are version-aware, the revision to use. - revision?: null | string @go(Revision,*string) - - // The type of source to use. For example, "archive". - type?: null | string @go(Type,*string) - - // The URL where the app resource can be found. - url?: null | string @go(URL,*string) - - // Username to use when authenticating to the source. - username?: null | string @go(Username,*string) -} - -#AppSourceParameters: { - // Password to use when authenticating to the source. - // +kubebuilder:validation:Optional - passwordSecretRef?: null | v1.#SecretKeySelector @go(PasswordSecretRef,*v1.SecretKeySelector) - - // For sources that are version-aware, the revision to use. - // +kubebuilder:validation:Optional - revision?: null | string @go(Revision,*string) - - // SSH key to use when authenticating to the source. - // +kubebuilder:validation:Optional - sshKeySecretRef?: null | v1.#SecretKeySelector @go(SSHKeySecretRef,*v1.SecretKeySelector) - - // The type of source to use. For example, "archive". - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The URL where the app resource can be found. - // +kubebuilder:validation:Optional - url?: null | string @go(URL,*string) - - // Username to use when authenticating to the source. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -#ApplicationInitParameters: { - // SCM configuration of the app as described below. - appSource?: [...#AppSourceInitParameters] @go(AppSource,[]AppSourceInitParameters) - - // Run bundle install when deploying for application of type rails. - autoBundleOnDeploy?: null | string @go(AutoBundleOnDeploy,*string) - - // Specify activity and workflow workers for your app using the aws-flow gem. - awsFlowRubySettings?: null | string @go(AwsFlowRubySettings,*string) - - // The data source's ARN. - dataSourceArn?: null | string @go(DataSourceArn,*string) - - // The database name. - dataSourceDatabaseName?: null | string @go(DataSourceDatabaseName,*string) - - // The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance. - dataSourceType?: null | string @go(DataSourceType,*string) - - // A description of the app. - description?: null | string @go(Description,*string) - - // Subfolder for the document root for application of type rails. - documentRoot?: null | string @go(DocumentRoot,*string) - - // A list of virtual host alias. - domains?: [...null | string] @go(Domains,[]*string) - - // Whether to enable SSL for the app. This must be set in order to let ssl_configuration.private_key, ssl_configuration.certificate and ssl_configuration.chain take effect. - enableSsl?: null | bool @go(EnableSSL,*bool) - - // Object to define environment variables. Object is described below. - environment?: [...#EnvironmentInitParameters] @go(Environment,[]EnvironmentInitParameters) - - // A human-readable name for the application. - name?: null | string @go(Name,*string) - - // The name of the Rails environment for application of type rails. - railsEnv?: null | string @go(RailsEnv,*string) - - // The SSL configuration of the app. Object is described below. - sslConfiguration?: [...#SSLConfigurationInitParameters] @go(SSLConfiguration,[]SSLConfigurationInitParameters) - - // A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update. - shortName?: null | string @go(ShortName,*string) - - // Opsworks application type. One of aws-flow-ruby, java, rails, php, nodejs, static or other. - type?: null | string @go(Type,*string) -} - -#ApplicationObservation: { - // SCM configuration of the app as described below. - appSource?: [...#AppSourceObservation] @go(AppSource,[]AppSourceObservation) - - // Run bundle install when deploying for application of type rails. - autoBundleOnDeploy?: null | string @go(AutoBundleOnDeploy,*string) - - // Specify activity and workflow workers for your app using the aws-flow gem. - awsFlowRubySettings?: null | string @go(AwsFlowRubySettings,*string) - - // The data source's ARN. - dataSourceArn?: null | string @go(DataSourceArn,*string) - - // The database name. - dataSourceDatabaseName?: null | string @go(DataSourceDatabaseName,*string) - - // The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance. - dataSourceType?: null | string @go(DataSourceType,*string) - - // A description of the app. - description?: null | string @go(Description,*string) - - // Subfolder for the document root for application of type rails. - documentRoot?: null | string @go(DocumentRoot,*string) - - // A list of virtual host alias. - domains?: [...null | string] @go(Domains,[]*string) - - // Whether to enable SSL for the app. This must be set in order to let ssl_configuration.private_key, ssl_configuration.certificate and ssl_configuration.chain take effect. - enableSsl?: null | bool @go(EnableSSL,*bool) - - // Object to define environment variables. Object is described below. - environment?: [...#EnvironmentObservation] @go(Environment,[]EnvironmentObservation) - - // The id of the application. - id?: null | string @go(ID,*string) - - // A human-readable name for the application. - name?: null | string @go(Name,*string) - - // The name of the Rails environment for application of type rails. - railsEnv?: null | string @go(RailsEnv,*string) - - // The SSL configuration of the app. Object is described below. - sslConfiguration?: [...#SSLConfigurationObservation] @go(SSLConfiguration,[]SSLConfigurationObservation) - - // A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update. - shortName?: null | string @go(ShortName,*string) - - // ID of the stack the application will belong to. - stackId?: null | string @go(StackID,*string) - - // Opsworks application type. One of aws-flow-ruby, java, rails, php, nodejs, static or other. - type?: null | string @go(Type,*string) -} - -#ApplicationParameters: { - // SCM configuration of the app as described below. - // +kubebuilder:validation:Optional - appSource?: [...#AppSourceParameters] @go(AppSource,[]AppSourceParameters) - - // Run bundle install when deploying for application of type rails. - // +kubebuilder:validation:Optional - autoBundleOnDeploy?: null | string @go(AutoBundleOnDeploy,*string) - - // Specify activity and workflow workers for your app using the aws-flow gem. - // +kubebuilder:validation:Optional - awsFlowRubySettings?: null | string @go(AwsFlowRubySettings,*string) - - // The data source's ARN. - // +kubebuilder:validation:Optional - dataSourceArn?: null | string @go(DataSourceArn,*string) - - // The database name. - // +kubebuilder:validation:Optional - dataSourceDatabaseName?: null | string @go(DataSourceDatabaseName,*string) - - // The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance. - // +kubebuilder:validation:Optional - dataSourceType?: null | string @go(DataSourceType,*string) - - // A description of the app. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Subfolder for the document root for application of type rails. - // +kubebuilder:validation:Optional - documentRoot?: null | string @go(DocumentRoot,*string) - - // A list of virtual host alias. - // +kubebuilder:validation:Optional - domains?: [...null | string] @go(Domains,[]*string) - - // Whether to enable SSL for the app. This must be set in order to let ssl_configuration.private_key, ssl_configuration.certificate and ssl_configuration.chain take effect. - // +kubebuilder:validation:Optional - enableSsl?: null | bool @go(EnableSSL,*bool) - - // Object to define environment variables. Object is described below. - // +kubebuilder:validation:Optional - environment?: [...#EnvironmentParameters] @go(Environment,[]EnvironmentParameters) - - // A human-readable name for the application. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The name of the Rails environment for application of type rails. - // +kubebuilder:validation:Optional - railsEnv?: null | string @go(RailsEnv,*string) - - // The SSL configuration of the app. Object is described below. - // +kubebuilder:validation:Optional - sslConfiguration?: [...#SSLConfigurationParameters] @go(SSLConfiguration,[]SSLConfigurationParameters) - - // A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update. - // +kubebuilder:validation:Optional - shortName?: null | string @go(ShortName,*string) - - // ID of the stack the application will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Opsworks application type. One of aws-flow-ruby, java, rails, php, nodejs, static or other. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#EnvironmentInitParameters: { - // Variable name. - key?: null | string @go(Key,*string) - - // Set visibility of the variable value to true or false. - secure?: null | bool @go(Secure,*bool) - - // Variable value. - value?: null | string @go(Value,*string) -} - -#EnvironmentObservation: { - // Variable name. - key?: null | string @go(Key,*string) - - // Set visibility of the variable value to true or false. - secure?: null | bool @go(Secure,*bool) - - // Variable value. - value?: null | string @go(Value,*string) -} - -#EnvironmentParameters: { - // Variable name. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Set visibility of the variable value to true or false. - // +kubebuilder:validation:Optional - secure?: null | bool @go(Secure,*bool) - - // Variable value. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#SSLConfigurationInitParameters: { - // The contents of the certificate's domain.crt file. - certificate?: null | string @go(Certificate,*string) - - // Can be used to specify an intermediate certificate authority key or client authentication. - chain?: null | string @go(Chain,*string) -} - -#SSLConfigurationObservation: { - // The contents of the certificate's domain.crt file. - certificate?: null | string @go(Certificate,*string) - - // Can be used to specify an intermediate certificate authority key or client authentication. - chain?: null | string @go(Chain,*string) -} - -#SSLConfigurationParameters: { - // The contents of the certificate's domain.crt file. - // +kubebuilder:validation:Optional - certificate?: null | string @go(Certificate,*string) - - // Can be used to specify an intermediate certificate authority key or client authentication. - // +kubebuilder:validation:Optional - chain?: null | string @go(Chain,*string) - - // The private key; the contents of the certificate's domain.key file. - // +kubebuilder:validation:Required - privateKeySecretRef: v1.#SecretKeySelector @go(PrivateKeySecretRef) -} - -// ApplicationSpec defines the desired state of Application -#ApplicationSpec: { - v1.#ResourceSpec - forProvider: #ApplicationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ApplicationInitParameters @go(InitProvider) -} - -// ApplicationStatus defines the observed state of Application. -#ApplicationStatus: { - v1.#ResourceStatus - atProvider?: #ApplicationObservation @go(AtProvider) -} - -// Application is the Schema for the Applications API. Provides an OpsWorks application resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Application: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #ApplicationSpec @go(Spec) - status?: #ApplicationStatus @go(Status) -} - -// ApplicationList contains a list of Applications -#ApplicationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Application] @go(Items,[]Application) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_customlayer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_customlayer_types_go_gen.cue deleted file mode 100644 index c311daa..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_customlayer_types_go_gen.cue +++ /dev/null @@ -1,706 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CloudwatchConfigurationInitParameters: { - enabled?: null | bool @go(Enabled,*bool) - - // A block the specifies how an opsworks logs look like. See Log Streams. - logStreams?: [...#LogStreamsInitParameters] @go(LogStreams,[]LogStreamsInitParameters) -} - -#CloudwatchConfigurationObservation: { - enabled?: null | bool @go(Enabled,*bool) - - // A block the specifies how an opsworks logs look like. See Log Streams. - logStreams?: [...#LogStreamsObservation] @go(LogStreams,[]LogStreamsObservation) -} - -#CloudwatchConfigurationParameters: { - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // A block the specifies how an opsworks logs look like. See Log Streams. - // +kubebuilder:validation:Optional - logStreams?: [...#LogStreamsParameters] @go(LogStreams,[]LogStreamsParameters) -} - -#CustomLayerInitParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - - // Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration. - cloudwatchConfiguration?: [...#CloudwatchConfigurationInitParameters] @go(CloudwatchConfiguration,[]CloudwatchConfigurationInitParameters) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // Will create an EBS volume and connect it to the layer's instances. See EBS Volume. - ebsVolume?: [...#EBSVolumeInitParameters] @go(EBSVolume,[]EBSVolumeInitParameters) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // Load-based auto scaling configuration. See Load Based AutoScaling - loadBasedAutoScaling?: [...#LoadBasedAutoScalingInitParameters] @go(LoadBasedAutoScaling,[]LoadBasedAutoScalingInitParameters) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON. - shortName?: null | string @go(ShortName,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#CustomLayerObservation: { - // The Amazon Resource Name(ARN) of the layer. - arn?: null | string @go(Arn,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - - // Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration. - cloudwatchConfiguration?: [...#CloudwatchConfigurationObservation] @go(CloudwatchConfiguration,[]CloudwatchConfigurationObservation) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - - // Ids for a set of security groups to apply to the layer's instances. - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // Will create an EBS volume and connect it to the layer's instances. See EBS Volume. - ebsVolume?: [...#EBSVolumeObservation] @go(EBSVolume,[]EBSVolumeObservation) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // The id of the layer. - id?: null | string @go(ID,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // Load-based auto scaling configuration. See Load Based AutoScaling - loadBasedAutoScaling?: [...#LoadBasedAutoScalingObservation] @go(LoadBasedAutoScaling,[]LoadBasedAutoScalingObservation) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON. - shortName?: null | string @go(ShortName,*string) - - // ID of the stack the layer will belong to. - stackId?: null | string @go(StackID,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#CustomLayerParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - // +kubebuilder:validation:Optional - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - // +kubebuilder:validation:Optional - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - // +kubebuilder:validation:Optional - autoHealing?: null | bool @go(AutoHealing,*bool) - - // Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration. - // +kubebuilder:validation:Optional - cloudwatchConfiguration?: [...#CloudwatchConfigurationParameters] @go(CloudwatchConfiguration,[]CloudwatchConfigurationParameters) - - // +kubebuilder:validation:Optional - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - - // +kubebuilder:validation:Optional - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - // +kubebuilder:validation:Optional - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - // +kubebuilder:validation:Optional - customJson?: null | string @go(CustomJSON,*string) - - // References to SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdRefs?: [...v1.#Reference] @go(CustomSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdSelector?: null | v1.#Selector @go(CustomSecurityGroupIDSelector,*v1.Selector) - - // Ids for a set of security groups to apply to the layer's instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector - // +kubebuilder:validation:Optional - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - - // +kubebuilder:validation:Optional - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - - // +kubebuilder:validation:Optional - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - // +kubebuilder:validation:Optional - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // Will create an EBS volume and connect it to the layer's instances. See EBS Volume. - // +kubebuilder:validation:Optional - ebsVolume?: [...#EBSVolumeParameters] @go(EBSVolume,[]EBSVolumeParameters) - - // Name of an Elastic Load Balancer to attach to this layer - // +kubebuilder:validation:Optional - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - // +kubebuilder:validation:Optional - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - // +kubebuilder:validation:Optional - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // Load-based auto scaling configuration. See Load Based AutoScaling - // +kubebuilder:validation:Optional - loadBasedAutoScaling?: [...#LoadBasedAutoScalingParameters] @go(LoadBasedAutoScaling,[]LoadBasedAutoScalingParameters) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON. - // +kubebuilder:validation:Optional - shortName?: null | string @go(ShortName,*string) - - // ID of the stack the layer will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Names of a set of system packages to install on the layer's instances. - // +kubebuilder:validation:Optional - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - // +kubebuilder:validation:Optional - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#DownscalingInitParameters: { - // Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack. - alarms?: [...null | string] @go(Alarms,[]*string) - - // The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold. - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events. - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // The number of instances to add or remove when the load exceeds a threshold. - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // The load threshold. A value of -1 disables the threshold. - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold. - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed. - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#DownscalingObservation: { - // Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack. - alarms?: [...null | string] @go(Alarms,[]*string) - - // The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold. - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events. - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // The number of instances to add or remove when the load exceeds a threshold. - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // The load threshold. A value of -1 disables the threshold. - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold. - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed. - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#DownscalingParameters: { - // Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack. - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold. - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events. - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // The number of instances to add or remove when the load exceeds a threshold. - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // The load threshold. A value of -1 disables the threshold. - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold. - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed. - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#EBSVolumeInitParameters: { - // Encrypt the volume. - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#EBSVolumeObservation: { - // Encrypt the volume. - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#EBSVolumeParameters: { - // Encrypt the volume. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - // +kubebuilder:validation:Optional - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - // +kubebuilder:validation:Optional - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - // +kubebuilder:validation:Optional - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#LoadBasedAutoScalingInitParameters: { - // The downscaling settings, as defined below, used for load-based autoscaling - downscaling?: [...#DownscalingInitParameters] @go(Downscaling,[]DownscalingInitParameters) - - // Whether load-based auto scaling is enabled for the layer. - enable?: null | bool @go(Enable,*bool) - - // The upscaling settings, as defined below, used for load-based autoscaling - upscaling?: [...#UpscalingInitParameters] @go(Upscaling,[]UpscalingInitParameters) -} - -#LoadBasedAutoScalingObservation: { - // The downscaling settings, as defined below, used for load-based autoscaling - downscaling?: [...#DownscalingObservation] @go(Downscaling,[]DownscalingObservation) - - // Whether load-based auto scaling is enabled for the layer. - enable?: null | bool @go(Enable,*bool) - - // The upscaling settings, as defined below, used for load-based autoscaling - upscaling?: [...#UpscalingObservation] @go(Upscaling,[]UpscalingObservation) -} - -#LoadBasedAutoScalingParameters: { - // The downscaling settings, as defined below, used for load-based autoscaling - // +kubebuilder:validation:Optional - downscaling?: [...#DownscalingParameters] @go(Downscaling,[]DownscalingParameters) - - // Whether load-based auto scaling is enabled for the layer. - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // The upscaling settings, as defined below, used for load-based autoscaling - // +kubebuilder:validation:Optional - upscaling?: [...#UpscalingParameters] @go(Upscaling,[]UpscalingParameters) -} - -#LogStreamsInitParameters: { - // Specifies the max number of log events in a batch, up to 10000. The default value is 1000. - batchCount?: null | float64 @go(BatchCount,*float64) - - // Specifies the maximum size of log events in a batch, in bytes, up to 1048576 bytes. The default value is 32768 bytes. - batchSize?: null | float64 @go(BatchSize,*float64) - - // Specifies the time duration for the batching of log events. The minimum value is 5000 and default value is 5000. - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html). - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // Specifies the encoding of the log file so that the file can be read correctly. The default is utf_8. - encoding?: null | string @go(Encoding,*string) - - // Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*). - file?: null | string @go(File,*string) - - // Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as 1, 2-5. The default value is 1. - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // Specifies where to start to read data (start_of_file or end_of_file). The default is start_of_file. - initialPosition?: null | string @go(InitialPosition,*string) - - // Specifies the destination log group. A log group is created automatically if it doesn't already exist. - logGroupName?: null | string @go(LogGroupName,*string) - - // Specifies the pattern for identifying the start of a log message. - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // Specifies the time zone of log event time stamps. - timeZone?: null | string @go(TimeZone,*string) -} - -#LogStreamsObservation: { - // Specifies the max number of log events in a batch, up to 10000. The default value is 1000. - batchCount?: null | float64 @go(BatchCount,*float64) - - // Specifies the maximum size of log events in a batch, in bytes, up to 1048576 bytes. The default value is 32768 bytes. - batchSize?: null | float64 @go(BatchSize,*float64) - - // Specifies the time duration for the batching of log events. The minimum value is 5000 and default value is 5000. - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html). - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // Specifies the encoding of the log file so that the file can be read correctly. The default is utf_8. - encoding?: null | string @go(Encoding,*string) - - // Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*). - file?: null | string @go(File,*string) - - // Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as 1, 2-5. The default value is 1. - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // Specifies where to start to read data (start_of_file or end_of_file). The default is start_of_file. - initialPosition?: null | string @go(InitialPosition,*string) - - // Specifies the destination log group. A log group is created automatically if it doesn't already exist. - logGroupName?: null | string @go(LogGroupName,*string) - - // Specifies the pattern for identifying the start of a log message. - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // Specifies the time zone of log event time stamps. - timeZone?: null | string @go(TimeZone,*string) -} - -#LogStreamsParameters: { - // Specifies the max number of log events in a batch, up to 10000. The default value is 1000. - // +kubebuilder:validation:Optional - batchCount?: null | float64 @go(BatchCount,*float64) - - // Specifies the maximum size of log events in a batch, in bytes, up to 1048576 bytes. The default value is 32768 bytes. - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // Specifies the time duration for the batching of log events. The minimum value is 5000 and default value is 5000. - // +kubebuilder:validation:Optional - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html). - // +kubebuilder:validation:Optional - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // Specifies the encoding of the log file so that the file can be read correctly. The default is utf_8. - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*). - // +kubebuilder:validation:Optional - file?: null | string @go(File,*string) - - // Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as 1, 2-5. The default value is 1. - // +kubebuilder:validation:Optional - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // Specifies where to start to read data (start_of_file or end_of_file). The default is start_of_file. - // +kubebuilder:validation:Optional - initialPosition?: null | string @go(InitialPosition,*string) - - // Specifies the destination log group. A log group is created automatically if it doesn't already exist. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // Specifies the pattern for identifying the start of a log message. - // +kubebuilder:validation:Optional - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // Specifies the time zone of log event time stamps. - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#UpscalingInitParameters: { - // Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack. - alarms?: [...null | string] @go(Alarms,[]*string) - - // The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold. - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events. - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // The number of instances to add or remove when the load exceeds a threshold. - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // The load threshold. A value of -1 disables the threshold. - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold. - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed. - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#UpscalingObservation: { - // Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack. - alarms?: [...null | string] @go(Alarms,[]*string) - - // The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold. - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events. - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // The number of instances to add or remove when the load exceeds a threshold. - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // The load threshold. A value of -1 disables the threshold. - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold. - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed. - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#UpscalingParameters: { - // Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack. - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold. - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events. - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // The number of instances to add or remove when the load exceeds a threshold. - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // The load threshold. A value of -1 disables the threshold. - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold. - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed. - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -// CustomLayerSpec defines the desired state of CustomLayer -#CustomLayerSpec: { - v1.#ResourceSpec - forProvider: #CustomLayerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CustomLayerInitParameters @go(InitProvider) -} - -// CustomLayerStatus defines the observed state of CustomLayer. -#CustomLayerStatus: { - v1.#ResourceStatus - atProvider?: #CustomLayerObservation @go(AtProvider) -} - -// CustomLayer is the Schema for the CustomLayers API. Provides an OpsWorks custom layer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CustomLayer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.shortName) || (has(self.initProvider) && has(self.initProvider.shortName))",message="spec.forProvider.shortName is a required parameter" - spec: #CustomLayerSpec @go(Spec) - status?: #CustomLayerStatus @go(Status) -} - -// CustomLayerList contains a list of CustomLayers -#CustomLayerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CustomLayer] @go(Items,[]CustomLayer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_ecsclusterlayer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_ecsclusterlayer_types_go_gen.cue deleted file mode 100644 index d6e13ce..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_ecsclusterlayer_types_go_gen.cue +++ /dev/null @@ -1,563 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CloudwatchConfigurationLogStreamsInitParameters: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#CloudwatchConfigurationLogStreamsObservation: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#CloudwatchConfigurationLogStreamsParameters: { - // +kubebuilder:validation:Optional - batchCount?: null | float64 @go(BatchCount,*float64) - - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // +kubebuilder:validation:Optional - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // +kubebuilder:validation:Optional - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // +kubebuilder:validation:Optional - file?: null | string @go(File,*string) - - // +kubebuilder:validation:Optional - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // +kubebuilder:validation:Optional - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // +kubebuilder:validation:Optional - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#EcsClusterLayerCloudwatchConfigurationInitParameters: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#CloudwatchConfigurationLogStreamsInitParameters] @go(LogStreams,[]CloudwatchConfigurationLogStreamsInitParameters) -} - -#EcsClusterLayerCloudwatchConfigurationObservation: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#CloudwatchConfigurationLogStreamsObservation] @go(LogStreams,[]CloudwatchConfigurationLogStreamsObservation) -} - -#EcsClusterLayerCloudwatchConfigurationParameters: { - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // +kubebuilder:validation:Optional - logStreams?: [...#CloudwatchConfigurationLogStreamsParameters] @go(LogStreams,[]CloudwatchConfigurationLogStreamsParameters) -} - -#EcsClusterLayerEBSVolumeInitParameters: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#EcsClusterLayerEBSVolumeObservation: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#EcsClusterLayerEBSVolumeParameters: { - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - // +kubebuilder:validation:Optional - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - // +kubebuilder:validation:Optional - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - // +kubebuilder:validation:Optional - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#EcsClusterLayerInitParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#EcsClusterLayerCloudwatchConfigurationInitParameters] @go(CloudwatchConfiguration,[]EcsClusterLayerCloudwatchConfigurationInitParameters) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#EcsClusterLayerEBSVolumeInitParameters] @go(EBSVolume,[]EcsClusterLayerEBSVolumeInitParameters) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#EcsClusterLayerLoadBasedAutoScalingInitParameters] @go(LoadBasedAutoScaling,[]EcsClusterLayerLoadBasedAutoScalingInitParameters) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#EcsClusterLayerLoadBasedAutoScalingInitParameters: { - downscaling?: [...#LoadBasedAutoScalingDownscalingInitParameters] @go(Downscaling,[]LoadBasedAutoScalingDownscalingInitParameters) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#LoadBasedAutoScalingUpscalingInitParameters] @go(Upscaling,[]LoadBasedAutoScalingUpscalingInitParameters) -} - -#EcsClusterLayerLoadBasedAutoScalingObservation: { - downscaling?: [...#LoadBasedAutoScalingDownscalingObservation] @go(Downscaling,[]LoadBasedAutoScalingDownscalingObservation) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#LoadBasedAutoScalingUpscalingObservation] @go(Upscaling,[]LoadBasedAutoScalingUpscalingObservation) -} - -#EcsClusterLayerLoadBasedAutoScalingParameters: { - // +kubebuilder:validation:Optional - downscaling?: [...#LoadBasedAutoScalingDownscalingParameters] @go(Downscaling,[]LoadBasedAutoScalingDownscalingParameters) - - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // +kubebuilder:validation:Optional - upscaling?: [...#LoadBasedAutoScalingUpscalingParameters] @go(Upscaling,[]LoadBasedAutoScalingUpscalingParameters) -} - -#EcsClusterLayerObservation: { - // The Amazon Resource Name(ARN) of the layer. - arn?: null | string @go(Arn,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#EcsClusterLayerCloudwatchConfigurationObservation] @go(CloudwatchConfiguration,[]EcsClusterLayerCloudwatchConfigurationObservation) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - - // Ids for a set of security groups to apply to the layer's instances. - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#EcsClusterLayerEBSVolumeObservation] @go(EBSVolume,[]EcsClusterLayerEBSVolumeObservation) - - // The ECS Cluster ARN of the layer. - ecsClusterArn?: null | string @go(EcsClusterArn,*string) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // The id of the layer. - id?: null | string @go(ID,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#EcsClusterLayerLoadBasedAutoScalingObservation] @go(LoadBasedAutoScaling,[]EcsClusterLayerLoadBasedAutoScalingObservation) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // ID of the stack the layer will belong to. - stackId?: null | string @go(StackID,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#EcsClusterLayerParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - // +kubebuilder:validation:Optional - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - // +kubebuilder:validation:Optional - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - // +kubebuilder:validation:Optional - autoHealing?: null | bool @go(AutoHealing,*bool) - - // +kubebuilder:validation:Optional - cloudwatchConfiguration?: [...#EcsClusterLayerCloudwatchConfigurationParameters] @go(CloudwatchConfiguration,[]EcsClusterLayerCloudwatchConfigurationParameters) - - // +kubebuilder:validation:Optional - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - - // +kubebuilder:validation:Optional - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - // +kubebuilder:validation:Optional - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - // +kubebuilder:validation:Optional - customJson?: null | string @go(CustomJSON,*string) - - // References to SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdRefs?: [...v1.#Reference] @go(CustomSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdSelector?: null | v1.#Selector @go(CustomSecurityGroupIDSelector,*v1.Selector) - - // Ids for a set of security groups to apply to the layer's instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector - // +kubebuilder:validation:Optional - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - - // +kubebuilder:validation:Optional - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - - // +kubebuilder:validation:Optional - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - // +kubebuilder:validation:Optional - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - // +kubebuilder:validation:Optional - ebsVolume?: [...#EcsClusterLayerEBSVolumeParameters] @go(EBSVolume,[]EcsClusterLayerEBSVolumeParameters) - - // The ECS Cluster ARN of the layer. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ecs/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - ecsClusterArn?: null | string @go(EcsClusterArn,*string) - - // Reference to a Cluster in ecs to populate ecsClusterArn. - // +kubebuilder:validation:Optional - ecsClusterArnRef?: null | v1.#Reference @go(EcsClusterArnRef,*v1.Reference) - - // Selector for a Cluster in ecs to populate ecsClusterArn. - // +kubebuilder:validation:Optional - ecsClusterArnSelector?: null | v1.#Selector @go(EcsClusterArnSelector,*v1.Selector) - - // Name of an Elastic Load Balancer to attach to this layer - // +kubebuilder:validation:Optional - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - // +kubebuilder:validation:Optional - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - // +kubebuilder:validation:Optional - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // +kubebuilder:validation:Optional - loadBasedAutoScaling?: [...#EcsClusterLayerLoadBasedAutoScalingParameters] @go(LoadBasedAutoScaling,[]EcsClusterLayerLoadBasedAutoScalingParameters) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // ID of the stack the layer will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Names of a set of system packages to install on the layer's instances. - // +kubebuilder:validation:Optional - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - // +kubebuilder:validation:Optional - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#LoadBasedAutoScalingDownscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#LoadBasedAutoScalingDownscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#LoadBasedAutoScalingDownscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#LoadBasedAutoScalingUpscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#LoadBasedAutoScalingUpscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#LoadBasedAutoScalingUpscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -// EcsClusterLayerSpec defines the desired state of EcsClusterLayer -#EcsClusterLayerSpec: { - v1.#ResourceSpec - forProvider: #EcsClusterLayerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EcsClusterLayerInitParameters @go(InitProvider) -} - -// EcsClusterLayerStatus defines the observed state of EcsClusterLayer. -#EcsClusterLayerStatus: { - v1.#ResourceStatus - atProvider?: #EcsClusterLayerObservation @go(AtProvider) -} - -// EcsClusterLayer is the Schema for the EcsClusterLayers API. Provides an OpsWorks HAProxy layer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EcsClusterLayer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EcsClusterLayerSpec @go(Spec) - status?: #EcsClusterLayerStatus @go(Status) -} - -// EcsClusterLayerList contains a list of EcsClusterLayers -#EcsClusterLayerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EcsClusterLayer] @go(Items,[]EcsClusterLayer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_ganglialayer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_ganglialayer_types_go_gen.cue deleted file mode 100644 index bac0a77..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_ganglialayer_types_go_gen.cue +++ /dev/null @@ -1,580 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GangliaLayerCloudwatchConfigurationInitParameters: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#GangliaLayerCloudwatchConfigurationLogStreamsInitParameters] @go(LogStreams,[]GangliaLayerCloudwatchConfigurationLogStreamsInitParameters) -} - -#GangliaLayerCloudwatchConfigurationLogStreamsInitParameters: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#GangliaLayerCloudwatchConfigurationLogStreamsObservation: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#GangliaLayerCloudwatchConfigurationLogStreamsParameters: { - // +kubebuilder:validation:Optional - batchCount?: null | float64 @go(BatchCount,*float64) - - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // +kubebuilder:validation:Optional - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // +kubebuilder:validation:Optional - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // +kubebuilder:validation:Optional - file?: null | string @go(File,*string) - - // +kubebuilder:validation:Optional - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // +kubebuilder:validation:Optional - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // +kubebuilder:validation:Optional - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#GangliaLayerCloudwatchConfigurationObservation: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#GangliaLayerCloudwatchConfigurationLogStreamsObservation] @go(LogStreams,[]GangliaLayerCloudwatchConfigurationLogStreamsObservation) -} - -#GangliaLayerCloudwatchConfigurationParameters: { - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // +kubebuilder:validation:Optional - logStreams?: [...#GangliaLayerCloudwatchConfigurationLogStreamsParameters] @go(LogStreams,[]GangliaLayerCloudwatchConfigurationLogStreamsParameters) -} - -#GangliaLayerEBSVolumeInitParameters: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#GangliaLayerEBSVolumeObservation: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#GangliaLayerEBSVolumeParameters: { - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - // +kubebuilder:validation:Optional - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - // +kubebuilder:validation:Optional - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - // +kubebuilder:validation:Optional - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#GangliaLayerInitParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#GangliaLayerCloudwatchConfigurationInitParameters] @go(CloudwatchConfiguration,[]GangliaLayerCloudwatchConfigurationInitParameters) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#GangliaLayerEBSVolumeInitParameters] @go(EBSVolume,[]GangliaLayerEBSVolumeInitParameters) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#GangliaLayerLoadBasedAutoScalingInitParameters] @go(LoadBasedAutoScaling,[]GangliaLayerLoadBasedAutoScalingInitParameters) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // The password to use for Ganglia. - password?: null | string @go(Password,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The URL path to use for Ganglia. Defaults to "/ganglia". - url?: null | string @go(URL,*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) - - // (Optiona) The username to use for Ganglia. Defaults to "opsworks". - username?: null | string @go(Username,*string) -} - -#GangliaLayerLoadBasedAutoScalingDownscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#GangliaLayerLoadBasedAutoScalingDownscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#GangliaLayerLoadBasedAutoScalingDownscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#GangliaLayerLoadBasedAutoScalingInitParameters: { - downscaling?: [...#GangliaLayerLoadBasedAutoScalingDownscalingInitParameters] @go(Downscaling,[]GangliaLayerLoadBasedAutoScalingDownscalingInitParameters) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#GangliaLayerLoadBasedAutoScalingUpscalingInitParameters] @go(Upscaling,[]GangliaLayerLoadBasedAutoScalingUpscalingInitParameters) -} - -#GangliaLayerLoadBasedAutoScalingObservation: { - downscaling?: [...#GangliaLayerLoadBasedAutoScalingDownscalingObservation] @go(Downscaling,[]GangliaLayerLoadBasedAutoScalingDownscalingObservation) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#GangliaLayerLoadBasedAutoScalingUpscalingObservation] @go(Upscaling,[]GangliaLayerLoadBasedAutoScalingUpscalingObservation) -} - -#GangliaLayerLoadBasedAutoScalingParameters: { - // +kubebuilder:validation:Optional - downscaling?: [...#GangliaLayerLoadBasedAutoScalingDownscalingParameters] @go(Downscaling,[]GangliaLayerLoadBasedAutoScalingDownscalingParameters) - - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // +kubebuilder:validation:Optional - upscaling?: [...#GangliaLayerLoadBasedAutoScalingUpscalingParameters] @go(Upscaling,[]GangliaLayerLoadBasedAutoScalingUpscalingParameters) -} - -#GangliaLayerLoadBasedAutoScalingUpscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#GangliaLayerLoadBasedAutoScalingUpscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#GangliaLayerLoadBasedAutoScalingUpscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#GangliaLayerObservation: { - // The Amazon Resource Name(ARN) of the layer. - arn?: null | string @go(Arn,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#GangliaLayerCloudwatchConfigurationObservation] @go(CloudwatchConfiguration,[]GangliaLayerCloudwatchConfigurationObservation) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - - // Ids for a set of security groups to apply to the layer's instances. - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#GangliaLayerEBSVolumeObservation] @go(EBSVolume,[]GangliaLayerEBSVolumeObservation) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // The id of the layer. - id?: null | string @go(ID,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#GangliaLayerLoadBasedAutoScalingObservation] @go(LoadBasedAutoScaling,[]GangliaLayerLoadBasedAutoScalingObservation) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // The password to use for Ganglia. - password?: null | string @go(Password,*string) - - // ID of the stack the layer will belong to. - stackId?: null | string @go(StackID,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The URL path to use for Ganglia. Defaults to "/ganglia". - url?: null | string @go(URL,*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) - - // (Optiona) The username to use for Ganglia. Defaults to "opsworks". - username?: null | string @go(Username,*string) -} - -#GangliaLayerParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - // +kubebuilder:validation:Optional - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - // +kubebuilder:validation:Optional - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - // +kubebuilder:validation:Optional - autoHealing?: null | bool @go(AutoHealing,*bool) - - // +kubebuilder:validation:Optional - cloudwatchConfiguration?: [...#GangliaLayerCloudwatchConfigurationParameters] @go(CloudwatchConfiguration,[]GangliaLayerCloudwatchConfigurationParameters) - - // +kubebuilder:validation:Optional - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - - // +kubebuilder:validation:Optional - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - // +kubebuilder:validation:Optional - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - // +kubebuilder:validation:Optional - customJson?: null | string @go(CustomJSON,*string) - - // References to SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdRefs?: [...v1.#Reference] @go(CustomSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdSelector?: null | v1.#Selector @go(CustomSecurityGroupIDSelector,*v1.Selector) - - // Ids for a set of security groups to apply to the layer's instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector - // +kubebuilder:validation:Optional - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - - // +kubebuilder:validation:Optional - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - - // +kubebuilder:validation:Optional - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - // +kubebuilder:validation:Optional - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - // +kubebuilder:validation:Optional - ebsVolume?: [...#GangliaLayerEBSVolumeParameters] @go(EBSVolume,[]GangliaLayerEBSVolumeParameters) - - // Name of an Elastic Load Balancer to attach to this layer - // +kubebuilder:validation:Optional - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - // +kubebuilder:validation:Optional - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - // +kubebuilder:validation:Optional - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // +kubebuilder:validation:Optional - loadBasedAutoScaling?: [...#GangliaLayerLoadBasedAutoScalingParameters] @go(LoadBasedAutoScaling,[]GangliaLayerLoadBasedAutoScalingParameters) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The password to use for Ganglia. - // +kubebuilder:validation:Optional - password?: null | string @go(Password,*string) - - // ID of the stack the layer will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Names of a set of system packages to install on the layer's instances. - // +kubebuilder:validation:Optional - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The URL path to use for Ganglia. Defaults to "/ganglia". - // +kubebuilder:validation:Optional - url?: null | string @go(URL,*string) - - // Whether to use EBS-optimized instances. - // +kubebuilder:validation:Optional - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) - - // (Optiona) The username to use for Ganglia. Defaults to "opsworks". - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -// GangliaLayerSpec defines the desired state of GangliaLayer -#GangliaLayerSpec: { - v1.#ResourceSpec - forProvider: #GangliaLayerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GangliaLayerInitParameters @go(InitProvider) -} - -// GangliaLayerStatus defines the observed state of GangliaLayer. -#GangliaLayerStatus: { - v1.#ResourceStatus - atProvider?: #GangliaLayerObservation @go(AtProvider) -} - -// GangliaLayer is the Schema for the GangliaLayers API. Provides an OpsWorks Ganglia layer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GangliaLayer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.password) || (has(self.initProvider) && has(self.initProvider.password))",message="spec.forProvider.password is a required parameter" - spec: #GangliaLayerSpec @go(Spec) - status?: #GangliaLayerStatus @go(Status) -} - -// GangliaLayerList contains a list of GangliaLayers -#GangliaLayerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GangliaLayer] @go(Items,[]GangliaLayer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index c6f5dc3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=opsworks.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "opsworks.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_haproxylayer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_haproxylayer_types_go_gen.cue deleted file mode 100644 index 94ddb00..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_haproxylayer_types_go_gen.cue +++ /dev/null @@ -1,610 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HAProxyLayerCloudwatchConfigurationInitParameters: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#HAProxyLayerCloudwatchConfigurationLogStreamsInitParameters] @go(LogStreams,[]HAProxyLayerCloudwatchConfigurationLogStreamsInitParameters) -} - -#HAProxyLayerCloudwatchConfigurationLogStreamsInitParameters: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#HAProxyLayerCloudwatchConfigurationLogStreamsObservation: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#HAProxyLayerCloudwatchConfigurationLogStreamsParameters: { - // +kubebuilder:validation:Optional - batchCount?: null | float64 @go(BatchCount,*float64) - - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // +kubebuilder:validation:Optional - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // +kubebuilder:validation:Optional - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // +kubebuilder:validation:Optional - file?: null | string @go(File,*string) - - // +kubebuilder:validation:Optional - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // +kubebuilder:validation:Optional - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // +kubebuilder:validation:Optional - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#HAProxyLayerCloudwatchConfigurationObservation: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#HAProxyLayerCloudwatchConfigurationLogStreamsObservation] @go(LogStreams,[]HAProxyLayerCloudwatchConfigurationLogStreamsObservation) -} - -#HAProxyLayerCloudwatchConfigurationParameters: { - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // +kubebuilder:validation:Optional - logStreams?: [...#HAProxyLayerCloudwatchConfigurationLogStreamsParameters] @go(LogStreams,[]HAProxyLayerCloudwatchConfigurationLogStreamsParameters) -} - -#HAProxyLayerEBSVolumeInitParameters: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#HAProxyLayerEBSVolumeObservation: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#HAProxyLayerEBSVolumeParameters: { - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - // +kubebuilder:validation:Optional - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - // +kubebuilder:validation:Optional - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - // +kubebuilder:validation:Optional - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#HAProxyLayerInitParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#HAProxyLayerCloudwatchConfigurationInitParameters] @go(CloudwatchConfiguration,[]HAProxyLayerCloudwatchConfigurationInitParameters) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#HAProxyLayerEBSVolumeInitParameters] @go(EBSVolume,[]HAProxyLayerEBSVolumeInitParameters) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // HTTP method to use for instance healthchecks. Defaults to "OPTIONS". - healthcheckMethod?: null | string @go(HealthcheckMethod,*string) - - // URL path to use for instance healthchecks. Defaults to "/". - healthcheckUrl?: null | string @go(HealthcheckURL,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#HAProxyLayerLoadBasedAutoScalingInitParameters] @go(LoadBasedAutoScaling,[]HAProxyLayerLoadBasedAutoScalingInitParameters) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // Whether to enable HAProxy stats. - statsEnabled?: null | bool @go(StatsEnabled,*bool) - - // The password to use for HAProxy stats. - statsPassword?: null | string @go(StatsPassword,*string) - - // The HAProxy stats URL. Defaults to "/haproxy?stats". - statsUrl?: null | string @go(StatsURL,*string) - - // The username for HAProxy stats. Defaults to "opsworks". - statsUser?: null | string @go(StatsUser,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#HAProxyLayerLoadBasedAutoScalingDownscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#HAProxyLayerLoadBasedAutoScalingDownscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#HAProxyLayerLoadBasedAutoScalingDownscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#HAProxyLayerLoadBasedAutoScalingInitParameters: { - downscaling?: [...#HAProxyLayerLoadBasedAutoScalingDownscalingInitParameters] @go(Downscaling,[]HAProxyLayerLoadBasedAutoScalingDownscalingInitParameters) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#HAProxyLayerLoadBasedAutoScalingUpscalingInitParameters] @go(Upscaling,[]HAProxyLayerLoadBasedAutoScalingUpscalingInitParameters) -} - -#HAProxyLayerLoadBasedAutoScalingObservation: { - downscaling?: [...#HAProxyLayerLoadBasedAutoScalingDownscalingObservation] @go(Downscaling,[]HAProxyLayerLoadBasedAutoScalingDownscalingObservation) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#HAProxyLayerLoadBasedAutoScalingUpscalingObservation] @go(Upscaling,[]HAProxyLayerLoadBasedAutoScalingUpscalingObservation) -} - -#HAProxyLayerLoadBasedAutoScalingParameters: { - // +kubebuilder:validation:Optional - downscaling?: [...#HAProxyLayerLoadBasedAutoScalingDownscalingParameters] @go(Downscaling,[]HAProxyLayerLoadBasedAutoScalingDownscalingParameters) - - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // +kubebuilder:validation:Optional - upscaling?: [...#HAProxyLayerLoadBasedAutoScalingUpscalingParameters] @go(Upscaling,[]HAProxyLayerLoadBasedAutoScalingUpscalingParameters) -} - -#HAProxyLayerLoadBasedAutoScalingUpscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#HAProxyLayerLoadBasedAutoScalingUpscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#HAProxyLayerLoadBasedAutoScalingUpscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#HAProxyLayerObservation: { - // The Amazon Resource Name(ARN) of the layer. - arn?: null | string @go(Arn,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#HAProxyLayerCloudwatchConfigurationObservation] @go(CloudwatchConfiguration,[]HAProxyLayerCloudwatchConfigurationObservation) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - - // Ids for a set of security groups to apply to the layer's instances. - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#HAProxyLayerEBSVolumeObservation] @go(EBSVolume,[]HAProxyLayerEBSVolumeObservation) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // HTTP method to use for instance healthchecks. Defaults to "OPTIONS". - healthcheckMethod?: null | string @go(HealthcheckMethod,*string) - - // URL path to use for instance healthchecks. Defaults to "/". - healthcheckUrl?: null | string @go(HealthcheckURL,*string) - - // The id of the layer. - id?: null | string @go(ID,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#HAProxyLayerLoadBasedAutoScalingObservation] @go(LoadBasedAutoScaling,[]HAProxyLayerLoadBasedAutoScalingObservation) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // ID of the stack the layer will belong to. - stackId?: null | string @go(StackID,*string) - - // Whether to enable HAProxy stats. - statsEnabled?: null | bool @go(StatsEnabled,*bool) - - // The password to use for HAProxy stats. - statsPassword?: null | string @go(StatsPassword,*string) - - // The HAProxy stats URL. Defaults to "/haproxy?stats". - statsUrl?: null | string @go(StatsURL,*string) - - // The username for HAProxy stats. Defaults to "opsworks". - statsUser?: null | string @go(StatsUser,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#HAProxyLayerParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - // +kubebuilder:validation:Optional - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - // +kubebuilder:validation:Optional - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - // +kubebuilder:validation:Optional - autoHealing?: null | bool @go(AutoHealing,*bool) - - // +kubebuilder:validation:Optional - cloudwatchConfiguration?: [...#HAProxyLayerCloudwatchConfigurationParameters] @go(CloudwatchConfiguration,[]HAProxyLayerCloudwatchConfigurationParameters) - - // +kubebuilder:validation:Optional - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - - // +kubebuilder:validation:Optional - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - // +kubebuilder:validation:Optional - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - // +kubebuilder:validation:Optional - customJson?: null | string @go(CustomJSON,*string) - - // References to SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdRefs?: [...v1.#Reference] @go(CustomSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdSelector?: null | v1.#Selector @go(CustomSecurityGroupIDSelector,*v1.Selector) - - // Ids for a set of security groups to apply to the layer's instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector - // +kubebuilder:validation:Optional - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - - // +kubebuilder:validation:Optional - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - - // +kubebuilder:validation:Optional - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - // +kubebuilder:validation:Optional - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - // +kubebuilder:validation:Optional - ebsVolume?: [...#HAProxyLayerEBSVolumeParameters] @go(EBSVolume,[]HAProxyLayerEBSVolumeParameters) - - // Name of an Elastic Load Balancer to attach to this layer - // +kubebuilder:validation:Optional - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // HTTP method to use for instance healthchecks. Defaults to "OPTIONS". - // +kubebuilder:validation:Optional - healthcheckMethod?: null | string @go(HealthcheckMethod,*string) - - // URL path to use for instance healthchecks. Defaults to "/". - // +kubebuilder:validation:Optional - healthcheckUrl?: null | string @go(HealthcheckURL,*string) - - // Whether to install OS and package updates on each instance when it boots. - // +kubebuilder:validation:Optional - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - // +kubebuilder:validation:Optional - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // +kubebuilder:validation:Optional - loadBasedAutoScaling?: [...#HAProxyLayerLoadBasedAutoScalingParameters] @go(LoadBasedAutoScaling,[]HAProxyLayerLoadBasedAutoScalingParameters) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // ID of the stack the layer will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Whether to enable HAProxy stats. - // +kubebuilder:validation:Optional - statsEnabled?: null | bool @go(StatsEnabled,*bool) - - // The password to use for HAProxy stats. - // +kubebuilder:validation:Optional - statsPassword?: null | string @go(StatsPassword,*string) - - // The HAProxy stats URL. Defaults to "/haproxy?stats". - // +kubebuilder:validation:Optional - statsUrl?: null | string @go(StatsURL,*string) - - // The username for HAProxy stats. Defaults to "opsworks". - // +kubebuilder:validation:Optional - statsUser?: null | string @go(StatsUser,*string) - - // Names of a set of system packages to install on the layer's instances. - // +kubebuilder:validation:Optional - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - // +kubebuilder:validation:Optional - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -// HAProxyLayerSpec defines the desired state of HAProxyLayer -#HAProxyLayerSpec: { - v1.#ResourceSpec - forProvider: #HAProxyLayerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HAProxyLayerInitParameters @go(InitProvider) -} - -// HAProxyLayerStatus defines the observed state of HAProxyLayer. -#HAProxyLayerStatus: { - v1.#ResourceStatus - atProvider?: #HAProxyLayerObservation @go(AtProvider) -} - -// HAProxyLayer is the Schema for the HAProxyLayers API. Provides an OpsWorks HAProxy layer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HAProxyLayer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.statsPassword) || (has(self.initProvider) && has(self.initProvider.statsPassword))",message="spec.forProvider.statsPassword is a required parameter" - spec: #HAProxyLayerSpec @go(Spec) - status?: #HAProxyLayerStatus @go(Status) -} - -// HAProxyLayerList contains a list of HAProxyLayers -#HAProxyLayerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HAProxyLayer] @go(Items,[]HAProxyLayer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_instance_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_instance_types_go_gen.cue deleted file mode 100644 index e5e031e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_instance_types_go_gen.cue +++ /dev/null @@ -1,574 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EBSBlockDeviceInitParameters: { - // Whether the volume should be destroyed on instance termination. Default is true. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Name of the device to mount. - deviceName?: null | string @go(DeviceName,*string) - - // Amount of provisioned IOPS. This must be set with a volume_type of io1. - iops?: null | float64 @go(Iops,*float64) - - // Snapshot ID to mount. - snapshotId?: null | string @go(SnapshotID,*string) - - // Size of the volume in gigabytes. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of volume. Valid values are standard, gp2, or io1. Default is standard. - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSBlockDeviceObservation: { - // Whether the volume should be destroyed on instance termination. Default is true. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Name of the device to mount. - deviceName?: null | string @go(DeviceName,*string) - - // Amount of provisioned IOPS. This must be set with a volume_type of io1. - iops?: null | float64 @go(Iops,*float64) - - // Snapshot ID to mount. - snapshotId?: null | string @go(SnapshotID,*string) - - // Size of the volume in gigabytes. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of volume. Valid values are standard, gp2, or io1. Default is standard. - volumeType?: null | string @go(VolumeType,*string) -} - -#EBSBlockDeviceParameters: { - // Whether the volume should be destroyed on instance termination. Default is true. - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Name of the device to mount. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Amount of provisioned IOPS. This must be set with a volume_type of io1. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // Snapshot ID to mount. - // +kubebuilder:validation:Optional - snapshotId?: null | string @go(SnapshotID,*string) - - // Size of the volume in gigabytes. - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of volume. Valid values are standard, gp2, or io1. Default is standard. - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -#EphemeralBlockDeviceInitParameters: { - // Name of the block device to mount on the instance. - deviceName?: null | string @go(DeviceName,*string) - - // The Instance Store Device Name (e.g., ephemeral0). - virtualName?: null | string @go(VirtualName,*string) -} - -#EphemeralBlockDeviceObservation: { - // Name of the block device to mount on the instance. - deviceName?: null | string @go(DeviceName,*string) - - // The Instance Store Device Name (e.g., ephemeral0). - virtualName?: null | string @go(VirtualName,*string) -} - -#EphemeralBlockDeviceParameters: { - // Name of the block device to mount on the instance. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // The Instance Store Device Name (e.g., ephemeral0). - // +kubebuilder:validation:Optional - virtualName?: null | string @go(VirtualName,*string) -} - -#InstanceInitParameters: { - // AMI to use for the instance. If an AMI is specified, os must be Custom. - amiId?: null | string @go(AMIID,*string) - - // OpsWorks agent to install. Default is INHERIT. - agentVersion?: null | string @go(AgentVersion,*string) - - // Machine architecture for created instances. Valid values are x86_64 or i386. The default is x86_64. - architecture?: null | string @go(Architecture,*string) - - // Creates load-based or time-based instances. Valid values are load, timer. - autoScalingType?: null | string @go(AutoScalingType,*string) - - // Name of the availability zone where instances will be created by default. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Time that the instance was created. - createdAt?: null | string @go(CreatedAt,*string) - - // Whether to delete EBS volume on deletion. Default is true. - deleteEbs?: null | bool @go(DeleteEBS,*bool) - - // Whether to delete the Elastic IP on deletion. - deleteEip?: null | bool @go(DeleteEIP,*bool) - - // Configuration block for additional EBS block devices to attach to the instance. See Block Devices below. - ebsBlockDevice?: [...#EBSBlockDeviceInitParameters] @go(EBSBlockDevice,[]EBSBlockDeviceInitParameters) - - // Whether the launched EC2 instance will be EBS-optimized. - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // ECS cluster's ARN for container instances. - ecsClusterArn?: null | string @go(EcsClusterArn,*string) - - // Instance Elastic IP address. - elasticIp?: null | string @go(ElasticIP,*string) - - // Configuration block for ephemeral (also known as "Instance Store") volumes on the instance. See Block Devices below. - ephemeralBlockDevice?: [...#EphemeralBlockDeviceInitParameters] @go(EphemeralBlockDevice,[]EphemeralBlockDeviceInitParameters) - - // Instance's host name. - hostname?: null | string @go(Hostname,*string) - - // For registered instances, infrastructure class: ec2 or on-premises. - infrastructureClass?: null | string @go(InfrastructureClass,*string) - - // Controls where to install OS and package updates when the instance boots. Default is true. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // ARN of the instance's IAM profile. - instanceProfileArn?: null | string @go(InstanceProfileArn,*string) - - // Type of instance to start. - instanceType?: null | string @go(InstanceType,*string) - - // Name of operating system that will be installed. - os?: null | string @go(Os,*string) - - // Configuration block for the root block device of the instance. See Block Devices below. - rootBlockDevice?: [...#RootBlockDeviceInitParameters] @go(RootBlockDevice,[]RootBlockDeviceInitParameters) - - // Name of the type of root device instances will have by default. Valid values are ebs or instance-store. - rootDeviceType?: null | string @go(RootDeviceType,*string) - - // Name of the SSH keypair that instances will have by default. - sshKeyName?: null | string @go(SSHKeyName,*string) - - // Desired state of the instance. Valid values are running or stopped. - state?: null | string @go(State,*string) - - // Instance status. Will be one of booting, connection_lost, online, pending, rebooting, requested, running_setup, setup_failed, shutting_down, start_failed, stop_failed, stopped, stopping, terminated, or terminating. - status?: null | string @go(Status,*string) - - // Instance tenancy to use. Valid values are default, dedicated or host. - tenancy?: null | string @go(Tenancy,*string) - - // Keyword to choose what virtualization mode created instances will use. Valid values are paravirtual or hvm. - virtualizationType?: null | string @go(VirtualizationType,*string) -} - -#InstanceObservation: { - // AMI to use for the instance. If an AMI is specified, os must be Custom. - amiId?: null | string @go(AMIID,*string) - - // OpsWorks agent to install. Default is INHERIT. - agentVersion?: null | string @go(AgentVersion,*string) - - // Machine architecture for created instances. Valid values are x86_64 or i386. The default is x86_64. - architecture?: null | string @go(Architecture,*string) - - // Creates load-based or time-based instances. Valid values are load, timer. - autoScalingType?: null | string @go(AutoScalingType,*string) - - // Name of the availability zone where instances will be created by default. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Time that the instance was created. - createdAt?: null | string @go(CreatedAt,*string) - - // Whether to delete EBS volume on deletion. Default is true. - deleteEbs?: null | bool @go(DeleteEBS,*bool) - - // Whether to delete the Elastic IP on deletion. - deleteEip?: null | bool @go(DeleteEIP,*bool) - - // Configuration block for additional EBS block devices to attach to the instance. See Block Devices below. - ebsBlockDevice?: [...#EBSBlockDeviceObservation] @go(EBSBlockDevice,[]EBSBlockDeviceObservation) - - // Whether the launched EC2 instance will be EBS-optimized. - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // EC2 instance ID. - ec2InstanceId?: null | string @go(EC2InstanceID,*string) - - // ECS cluster's ARN for container instances. - ecsClusterArn?: null | string @go(EcsClusterArn,*string) - - // Instance Elastic IP address. - elasticIp?: null | string @go(ElasticIP,*string) - - // Configuration block for ephemeral (also known as "Instance Store") volumes on the instance. See Block Devices below. - ephemeralBlockDevice?: [...#EphemeralBlockDeviceObservation] @go(EphemeralBlockDevice,[]EphemeralBlockDeviceObservation) - - // Instance's host name. - hostname?: null | string @go(Hostname,*string) - - // ID of the OpsWorks instance. - id?: null | string @go(ID,*string) - - // For registered instances, infrastructure class: ec2 or on-premises. - infrastructureClass?: null | string @go(InfrastructureClass,*string) - - // Controls where to install OS and package updates when the instance boots. Default is true. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // ARN of the instance's IAM profile. - instanceProfileArn?: null | string @go(InstanceProfileArn,*string) - - // Type of instance to start. - instanceType?: null | string @go(InstanceType,*string) - - // ID of the last service error. - lastServiceErrorId?: null | string @go(LastServiceErrorID,*string) - - // List of the layers the instance will belong to. - layerIds?: [...null | string] @go(LayerIds,[]*string) - - // Name of operating system that will be installed. - os?: null | string @go(Os,*string) - - // Instance's platform. - platform?: null | string @go(Platform,*string) - - // Private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you've enabled DNS hostnames for your VPC. - privateDns?: null | string @go(PrivateDNS,*string) - - // Private IP address assigned to the instance. - privateIp?: null | string @go(PrivateIP,*string) - - // Public DNS name assigned to the instance. For EC2-VPC, this is only available if you've enabled DNS hostnames for your VPC. - publicDns?: null | string @go(PublicDNS,*string) - - // Public IP address assigned to the instance, if applicable. - publicIp?: null | string @go(PublicIP,*string) - - // For registered instances, who performed the registration. - registeredBy?: null | string @go(RegisteredBy,*string) - - // Instance's reported AWS OpsWorks Stacks agent version. - reportedAgentVersion?: null | string @go(ReportedAgentVersion,*string) - - // For registered instances, the reported operating system family. - reportedOsFamily?: null | string @go(ReportedOsFamily,*string) - - // For registered instances, the reported operating system name. - reportedOsName?: null | string @go(ReportedOsName,*string) - - // For registered instances, the reported operating system version. - reportedOsVersion?: null | string @go(ReportedOsVersion,*string) - - // Configuration block for the root block device of the instance. See Block Devices below. - rootBlockDevice?: [...#RootBlockDeviceObservation] @go(RootBlockDevice,[]RootBlockDeviceObservation) - - // Name of the type of root device instances will have by default. Valid values are ebs or instance-store. - rootDeviceType?: null | string @go(RootDeviceType,*string) - - // Root device volume ID. - rootDeviceVolumeId?: null | string @go(RootDeviceVolumeID,*string) - - // SSH key's Deep Security Agent (DSA) fingerprint. - sshHostDsaKeyFingerprint?: null | string @go(SSHHostDsaKeyFingerprint,*string) - - // SSH key's RSA fingerprint. - sshHostRsaKeyFingerprint?: null | string @go(SSHHostRsaKeyFingerprint,*string) - - // Name of the SSH keypair that instances will have by default. - sshKeyName?: null | string @go(SSHKeyName,*string) - - // Associated security groups. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Identifier of the stack the instance will belong to. - stackId?: null | string @go(StackID,*string) - - // Desired state of the instance. Valid values are running or stopped. - state?: null | string @go(State,*string) - - // Instance status. Will be one of booting, connection_lost, online, pending, rebooting, requested, running_setup, setup_failed, shutting_down, start_failed, stop_failed, stopped, stopping, terminated, or terminating. - status?: null | string @go(Status,*string) - - // Subnet ID to attach to. - subnetId?: null | string @go(SubnetID,*string) - - // Instance tenancy to use. Valid values are default, dedicated or host. - tenancy?: null | string @go(Tenancy,*string) - - // Keyword to choose what virtualization mode created instances will use. Valid values are paravirtual or hvm. - virtualizationType?: null | string @go(VirtualizationType,*string) -} - -#InstanceParameters: { - // AMI to use for the instance. If an AMI is specified, os must be Custom. - // +kubebuilder:validation:Optional - amiId?: null | string @go(AMIID,*string) - - // OpsWorks agent to install. Default is INHERIT. - // +kubebuilder:validation:Optional - agentVersion?: null | string @go(AgentVersion,*string) - - // Machine architecture for created instances. Valid values are x86_64 or i386. The default is x86_64. - // +kubebuilder:validation:Optional - architecture?: null | string @go(Architecture,*string) - - // Creates load-based or time-based instances. Valid values are load, timer. - // +kubebuilder:validation:Optional - autoScalingType?: null | string @go(AutoScalingType,*string) - - // Name of the availability zone where instances will be created by default. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Time that the instance was created. - // +kubebuilder:validation:Optional - createdAt?: null | string @go(CreatedAt,*string) - - // Whether to delete EBS volume on deletion. Default is true. - // +kubebuilder:validation:Optional - deleteEbs?: null | bool @go(DeleteEBS,*bool) - - // Whether to delete the Elastic IP on deletion. - // +kubebuilder:validation:Optional - deleteEip?: null | bool @go(DeleteEIP,*bool) - - // Configuration block for additional EBS block devices to attach to the instance. See Block Devices below. - // +kubebuilder:validation:Optional - ebsBlockDevice?: [...#EBSBlockDeviceParameters] @go(EBSBlockDevice,[]EBSBlockDeviceParameters) - - // Whether the launched EC2 instance will be EBS-optimized. - // +kubebuilder:validation:Optional - ebsOptimized?: null | bool @go(EBSOptimized,*bool) - - // ECS cluster's ARN for container instances. - // +kubebuilder:validation:Optional - ecsClusterArn?: null | string @go(EcsClusterArn,*string) - - // Instance Elastic IP address. - // +kubebuilder:validation:Optional - elasticIp?: null | string @go(ElasticIP,*string) - - // Configuration block for ephemeral (also known as "Instance Store") volumes on the instance. See Block Devices below. - // +kubebuilder:validation:Optional - ephemeralBlockDevice?: [...#EphemeralBlockDeviceParameters] @go(EphemeralBlockDevice,[]EphemeralBlockDeviceParameters) - - // Instance's host name. - // +kubebuilder:validation:Optional - hostname?: null | string @go(Hostname,*string) - - // For registered instances, infrastructure class: ec2 or on-premises. - // +kubebuilder:validation:Optional - infrastructureClass?: null | string @go(InfrastructureClass,*string) - - // Controls where to install OS and package updates when the instance boots. Default is true. - // +kubebuilder:validation:Optional - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // ARN of the instance's IAM profile. - // +kubebuilder:validation:Optional - instanceProfileArn?: null | string @go(InstanceProfileArn,*string) - - // Type of instance to start. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // List of the layers the instance will belong to. - // +crossplane:generate:reference:type=CustomLayer - // +kubebuilder:validation:Optional - layerIds?: [...null | string] @go(LayerIds,[]*string) - - // References to CustomLayer to populate layerIds. - // +kubebuilder:validation:Optional - layerIdsRefs?: [...v1.#Reference] @go(LayerIdsRefs,[]v1.Reference) - - // Selector for a list of CustomLayer to populate layerIds. - // +kubebuilder:validation:Optional - layerIdsSelector?: null | v1.#Selector @go(LayerIdsSelector,*v1.Selector) - - // Name of operating system that will be installed. - // +kubebuilder:validation:Optional - os?: null | string @go(Os,*string) - - // Configuration block for the root block device of the instance. See Block Devices below. - // +kubebuilder:validation:Optional - rootBlockDevice?: [...#RootBlockDeviceParameters] @go(RootBlockDevice,[]RootBlockDeviceParameters) - - // Name of the type of root device instances will have by default. Valid values are ebs or instance-store. - // +kubebuilder:validation:Optional - rootDeviceType?: null | string @go(RootDeviceType,*string) - - // Name of the SSH keypair that instances will have by default. - // +kubebuilder:validation:Optional - sshKeyName?: null | string @go(SSHKeyName,*string) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // Associated security groups. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Identifier of the stack the instance will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Desired state of the instance. Valid values are running or stopped. - // +kubebuilder:validation:Optional - state?: null | string @go(State,*string) - - // Instance status. Will be one of booting, connection_lost, online, pending, rebooting, requested, running_setup, setup_failed, shutting_down, start_failed, stop_failed, stopped, stopping, terminated, or terminating. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // Subnet ID to attach to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Instance tenancy to use. Valid values are default, dedicated or host. - // +kubebuilder:validation:Optional - tenancy?: null | string @go(Tenancy,*string) - - // Keyword to choose what virtualization mode created instances will use. Valid values are paravirtual or hvm. - // +kubebuilder:validation:Optional - virtualizationType?: null | string @go(VirtualizationType,*string) -} - -#RootBlockDeviceInitParameters: { - // Whether the volume should be destroyed on instance termination. Default is true. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Amount of provisioned IOPS. This must be set with a volume_type of io1. - iops?: null | float64 @go(Iops,*float64) - - // Size of the volume in gigabytes. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of volume. Valid values are standard, gp2, or io1. Default is standard. - volumeType?: null | string @go(VolumeType,*string) -} - -#RootBlockDeviceObservation: { - // Whether the volume should be destroyed on instance termination. Default is true. - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Amount of provisioned IOPS. This must be set with a volume_type of io1. - iops?: null | float64 @go(Iops,*float64) - - // Size of the volume in gigabytes. - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of volume. Valid values are standard, gp2, or io1. Default is standard. - volumeType?: null | string @go(VolumeType,*string) -} - -#RootBlockDeviceParameters: { - // Whether the volume should be destroyed on instance termination. Default is true. - // +kubebuilder:validation:Optional - deleteOnTermination?: null | bool @go(DeleteOnTermination,*bool) - - // Amount of provisioned IOPS. This must be set with a volume_type of io1. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // Size of the volume in gigabytes. - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) - - // Type of volume. Valid values are standard, gp2, or io1. Default is standard. - // +kubebuilder:validation:Optional - volumeType?: null | string @go(VolumeType,*string) -} - -// InstanceSpec defines the desired state of Instance -#InstanceSpec: { - v1.#ResourceSpec - forProvider: #InstanceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InstanceInitParameters @go(InitProvider) -} - -// InstanceStatus defines the observed state of Instance. -#InstanceStatus: { - v1.#ResourceStatus - atProvider?: #InstanceObservation @go(AtProvider) -} - -// Instance is the Schema for the Instances API. Provides an OpsWorks instance resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Instance: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #InstanceSpec @go(Spec) - status?: #InstanceStatus @go(Status) -} - -// InstanceList contains a list of Instances -#InstanceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Instance] @go(Items,[]Instance) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_javaapplayer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_javaapplayer_types_go_gen.cue deleted file mode 100644 index b03c258..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_javaapplayer_types_go_gen.cue +++ /dev/null @@ -1,598 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#JavaAppLayerCloudwatchConfigurationInitParameters: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#JavaAppLayerCloudwatchConfigurationLogStreamsInitParameters] @go(LogStreams,[]JavaAppLayerCloudwatchConfigurationLogStreamsInitParameters) -} - -#JavaAppLayerCloudwatchConfigurationLogStreamsInitParameters: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#JavaAppLayerCloudwatchConfigurationLogStreamsObservation: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#JavaAppLayerCloudwatchConfigurationLogStreamsParameters: { - // +kubebuilder:validation:Optional - batchCount?: null | float64 @go(BatchCount,*float64) - - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // +kubebuilder:validation:Optional - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // +kubebuilder:validation:Optional - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // +kubebuilder:validation:Optional - file?: null | string @go(File,*string) - - // +kubebuilder:validation:Optional - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // +kubebuilder:validation:Optional - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // +kubebuilder:validation:Optional - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#JavaAppLayerCloudwatchConfigurationObservation: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#JavaAppLayerCloudwatchConfigurationLogStreamsObservation] @go(LogStreams,[]JavaAppLayerCloudwatchConfigurationLogStreamsObservation) -} - -#JavaAppLayerCloudwatchConfigurationParameters: { - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // +kubebuilder:validation:Optional - logStreams?: [...#JavaAppLayerCloudwatchConfigurationLogStreamsParameters] @go(LogStreams,[]JavaAppLayerCloudwatchConfigurationLogStreamsParameters) -} - -#JavaAppLayerEBSVolumeInitParameters: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#JavaAppLayerEBSVolumeObservation: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#JavaAppLayerEBSVolumeParameters: { - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - // +kubebuilder:validation:Optional - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - // +kubebuilder:validation:Optional - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - // +kubebuilder:validation:Optional - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#JavaAppLayerInitParameters: { - // Keyword for the application container to use. Defaults to "tomcat". - appServer?: null | string @go(AppServer,*string) - - // Version of the selected application container to use. Defaults to "7". - appServerVersion?: null | string @go(AppServerVersion,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#JavaAppLayerCloudwatchConfigurationInitParameters] @go(CloudwatchConfiguration,[]JavaAppLayerCloudwatchConfigurationInitParameters) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#JavaAppLayerEBSVolumeInitParameters] @go(EBSVolume,[]JavaAppLayerEBSVolumeInitParameters) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // Options to set for the JVM. - jvmOptions?: null | string @go(JvmOptions,*string) - - // Keyword for the type of JVM to use. Defaults to openjdk. - jvmType?: null | string @go(JvmType,*string) - - // Version of JVM to use. Defaults to "7". - jvmVersion?: null | string @go(JvmVersion,*string) - loadBasedAutoScaling?: [...#JavaAppLayerLoadBasedAutoScalingInitParameters] @go(LoadBasedAutoScaling,[]JavaAppLayerLoadBasedAutoScalingInitParameters) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#JavaAppLayerLoadBasedAutoScalingDownscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#JavaAppLayerLoadBasedAutoScalingDownscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#JavaAppLayerLoadBasedAutoScalingDownscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#JavaAppLayerLoadBasedAutoScalingInitParameters: { - downscaling?: [...#JavaAppLayerLoadBasedAutoScalingDownscalingInitParameters] @go(Downscaling,[]JavaAppLayerLoadBasedAutoScalingDownscalingInitParameters) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#JavaAppLayerLoadBasedAutoScalingUpscalingInitParameters] @go(Upscaling,[]JavaAppLayerLoadBasedAutoScalingUpscalingInitParameters) -} - -#JavaAppLayerLoadBasedAutoScalingObservation: { - downscaling?: [...#JavaAppLayerLoadBasedAutoScalingDownscalingObservation] @go(Downscaling,[]JavaAppLayerLoadBasedAutoScalingDownscalingObservation) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#JavaAppLayerLoadBasedAutoScalingUpscalingObservation] @go(Upscaling,[]JavaAppLayerLoadBasedAutoScalingUpscalingObservation) -} - -#JavaAppLayerLoadBasedAutoScalingParameters: { - // +kubebuilder:validation:Optional - downscaling?: [...#JavaAppLayerLoadBasedAutoScalingDownscalingParameters] @go(Downscaling,[]JavaAppLayerLoadBasedAutoScalingDownscalingParameters) - - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // +kubebuilder:validation:Optional - upscaling?: [...#JavaAppLayerLoadBasedAutoScalingUpscalingParameters] @go(Upscaling,[]JavaAppLayerLoadBasedAutoScalingUpscalingParameters) -} - -#JavaAppLayerLoadBasedAutoScalingUpscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#JavaAppLayerLoadBasedAutoScalingUpscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#JavaAppLayerLoadBasedAutoScalingUpscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#JavaAppLayerObservation: { - // Keyword for the application container to use. Defaults to "tomcat". - appServer?: null | string @go(AppServer,*string) - - // Version of the selected application container to use. Defaults to "7". - appServerVersion?: null | string @go(AppServerVersion,*string) - - // The Amazon Resource Name(ARN) of the layer. - arn?: null | string @go(Arn,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#JavaAppLayerCloudwatchConfigurationObservation] @go(CloudwatchConfiguration,[]JavaAppLayerCloudwatchConfigurationObservation) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - - // Ids for a set of security groups to apply to the layer's instances. - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#JavaAppLayerEBSVolumeObservation] @go(EBSVolume,[]JavaAppLayerEBSVolumeObservation) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // The id of the layer. - id?: null | string @go(ID,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // Options to set for the JVM. - jvmOptions?: null | string @go(JvmOptions,*string) - - // Keyword for the type of JVM to use. Defaults to openjdk. - jvmType?: null | string @go(JvmType,*string) - - // Version of JVM to use. Defaults to "7". - jvmVersion?: null | string @go(JvmVersion,*string) - loadBasedAutoScaling?: [...#JavaAppLayerLoadBasedAutoScalingObservation] @go(LoadBasedAutoScaling,[]JavaAppLayerLoadBasedAutoScalingObservation) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // ID of the stack the layer will belong to. - stackId?: null | string @go(StackID,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#JavaAppLayerParameters: { - // Keyword for the application container to use. Defaults to "tomcat". - // +kubebuilder:validation:Optional - appServer?: null | string @go(AppServer,*string) - - // Version of the selected application container to use. Defaults to "7". - // +kubebuilder:validation:Optional - appServerVersion?: null | string @go(AppServerVersion,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - // +kubebuilder:validation:Optional - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - // +kubebuilder:validation:Optional - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - // +kubebuilder:validation:Optional - autoHealing?: null | bool @go(AutoHealing,*bool) - - // +kubebuilder:validation:Optional - cloudwatchConfiguration?: [...#JavaAppLayerCloudwatchConfigurationParameters] @go(CloudwatchConfiguration,[]JavaAppLayerCloudwatchConfigurationParameters) - - // +kubebuilder:validation:Optional - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - - // +kubebuilder:validation:Optional - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - // +kubebuilder:validation:Optional - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - // +kubebuilder:validation:Optional - customJson?: null | string @go(CustomJSON,*string) - - // References to SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdRefs?: [...v1.#Reference] @go(CustomSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdSelector?: null | v1.#Selector @go(CustomSecurityGroupIDSelector,*v1.Selector) - - // Ids for a set of security groups to apply to the layer's instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector - // +kubebuilder:validation:Optional - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - - // +kubebuilder:validation:Optional - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - - // +kubebuilder:validation:Optional - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - // +kubebuilder:validation:Optional - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - // +kubebuilder:validation:Optional - ebsVolume?: [...#JavaAppLayerEBSVolumeParameters] @go(EBSVolume,[]JavaAppLayerEBSVolumeParameters) - - // Name of an Elastic Load Balancer to attach to this layer - // +kubebuilder:validation:Optional - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - // +kubebuilder:validation:Optional - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - // +kubebuilder:validation:Optional - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // Options to set for the JVM. - // +kubebuilder:validation:Optional - jvmOptions?: null | string @go(JvmOptions,*string) - - // Keyword for the type of JVM to use. Defaults to openjdk. - // +kubebuilder:validation:Optional - jvmType?: null | string @go(JvmType,*string) - - // Version of JVM to use. Defaults to "7". - // +kubebuilder:validation:Optional - jvmVersion?: null | string @go(JvmVersion,*string) - - // +kubebuilder:validation:Optional - loadBasedAutoScaling?: [...#JavaAppLayerLoadBasedAutoScalingParameters] @go(LoadBasedAutoScaling,[]JavaAppLayerLoadBasedAutoScalingParameters) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // ID of the stack the layer will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Names of a set of system packages to install on the layer's instances. - // +kubebuilder:validation:Optional - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - // +kubebuilder:validation:Optional - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -// JavaAppLayerSpec defines the desired state of JavaAppLayer -#JavaAppLayerSpec: { - v1.#ResourceSpec - forProvider: #JavaAppLayerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #JavaAppLayerInitParameters @go(InitProvider) -} - -// JavaAppLayerStatus defines the observed state of JavaAppLayer. -#JavaAppLayerStatus: { - v1.#ResourceStatus - atProvider?: #JavaAppLayerObservation @go(AtProvider) -} - -// JavaAppLayer is the Schema for the JavaAppLayers API. Provides an OpsWorks Java application layer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#JavaAppLayer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #JavaAppLayerSpec @go(Spec) - status?: #JavaAppLayerStatus @go(Status) -} - -// JavaAppLayerList contains a list of JavaAppLayers -#JavaAppLayerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#JavaAppLayer] @go(Items,[]JavaAppLayer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_memcachedlayer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_memcachedlayer_types_go_gen.cue deleted file mode 100644 index ed44fb9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_memcachedlayer_types_go_gen.cue +++ /dev/null @@ -1,558 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MemcachedLayerCloudwatchConfigurationInitParameters: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#MemcachedLayerCloudwatchConfigurationLogStreamsInitParameters] @go(LogStreams,[]MemcachedLayerCloudwatchConfigurationLogStreamsInitParameters) -} - -#MemcachedLayerCloudwatchConfigurationLogStreamsInitParameters: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#MemcachedLayerCloudwatchConfigurationLogStreamsObservation: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#MemcachedLayerCloudwatchConfigurationLogStreamsParameters: { - // +kubebuilder:validation:Optional - batchCount?: null | float64 @go(BatchCount,*float64) - - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // +kubebuilder:validation:Optional - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // +kubebuilder:validation:Optional - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // +kubebuilder:validation:Optional - file?: null | string @go(File,*string) - - // +kubebuilder:validation:Optional - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // +kubebuilder:validation:Optional - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // +kubebuilder:validation:Optional - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#MemcachedLayerCloudwatchConfigurationObservation: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#MemcachedLayerCloudwatchConfigurationLogStreamsObservation] @go(LogStreams,[]MemcachedLayerCloudwatchConfigurationLogStreamsObservation) -} - -#MemcachedLayerCloudwatchConfigurationParameters: { - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // +kubebuilder:validation:Optional - logStreams?: [...#MemcachedLayerCloudwatchConfigurationLogStreamsParameters] @go(LogStreams,[]MemcachedLayerCloudwatchConfigurationLogStreamsParameters) -} - -#MemcachedLayerEBSVolumeInitParameters: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#MemcachedLayerEBSVolumeObservation: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#MemcachedLayerEBSVolumeParameters: { - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - // +kubebuilder:validation:Optional - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - // +kubebuilder:validation:Optional - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - // +kubebuilder:validation:Optional - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#MemcachedLayerInitParameters: { - // Amount of memory to allocate for the cache on each instance, in megabytes. Defaults to 512MB. - allocatedMemory?: null | float64 @go(AllocatedMemory,*float64) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#MemcachedLayerCloudwatchConfigurationInitParameters] @go(CloudwatchConfiguration,[]MemcachedLayerCloudwatchConfigurationInitParameters) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#MemcachedLayerEBSVolumeInitParameters] @go(EBSVolume,[]MemcachedLayerEBSVolumeInitParameters) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#MemcachedLayerLoadBasedAutoScalingInitParameters] @go(LoadBasedAutoScaling,[]MemcachedLayerLoadBasedAutoScalingInitParameters) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#MemcachedLayerLoadBasedAutoScalingDownscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#MemcachedLayerLoadBasedAutoScalingDownscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#MemcachedLayerLoadBasedAutoScalingDownscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#MemcachedLayerLoadBasedAutoScalingInitParameters: { - downscaling?: [...#MemcachedLayerLoadBasedAutoScalingDownscalingInitParameters] @go(Downscaling,[]MemcachedLayerLoadBasedAutoScalingDownscalingInitParameters) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#MemcachedLayerLoadBasedAutoScalingUpscalingInitParameters] @go(Upscaling,[]MemcachedLayerLoadBasedAutoScalingUpscalingInitParameters) -} - -#MemcachedLayerLoadBasedAutoScalingObservation: { - downscaling?: [...#MemcachedLayerLoadBasedAutoScalingDownscalingObservation] @go(Downscaling,[]MemcachedLayerLoadBasedAutoScalingDownscalingObservation) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#MemcachedLayerLoadBasedAutoScalingUpscalingObservation] @go(Upscaling,[]MemcachedLayerLoadBasedAutoScalingUpscalingObservation) -} - -#MemcachedLayerLoadBasedAutoScalingParameters: { - // +kubebuilder:validation:Optional - downscaling?: [...#MemcachedLayerLoadBasedAutoScalingDownscalingParameters] @go(Downscaling,[]MemcachedLayerLoadBasedAutoScalingDownscalingParameters) - - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // +kubebuilder:validation:Optional - upscaling?: [...#MemcachedLayerLoadBasedAutoScalingUpscalingParameters] @go(Upscaling,[]MemcachedLayerLoadBasedAutoScalingUpscalingParameters) -} - -#MemcachedLayerLoadBasedAutoScalingUpscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#MemcachedLayerLoadBasedAutoScalingUpscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#MemcachedLayerLoadBasedAutoScalingUpscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#MemcachedLayerObservation: { - // Amount of memory to allocate for the cache on each instance, in megabytes. Defaults to 512MB. - allocatedMemory?: null | float64 @go(AllocatedMemory,*float64) - - // The Amazon Resource Name(ARN) of the layer. - arn?: null | string @go(Arn,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#MemcachedLayerCloudwatchConfigurationObservation] @go(CloudwatchConfiguration,[]MemcachedLayerCloudwatchConfigurationObservation) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - - // Ids for a set of security groups to apply to the layer's instances. - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#MemcachedLayerEBSVolumeObservation] @go(EBSVolume,[]MemcachedLayerEBSVolumeObservation) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // The id of the layer. - id?: null | string @go(ID,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#MemcachedLayerLoadBasedAutoScalingObservation] @go(LoadBasedAutoScaling,[]MemcachedLayerLoadBasedAutoScalingObservation) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // ID of the stack the layer will belong to. - stackId?: null | string @go(StackID,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#MemcachedLayerParameters: { - // Amount of memory to allocate for the cache on each instance, in megabytes. Defaults to 512MB. - // +kubebuilder:validation:Optional - allocatedMemory?: null | float64 @go(AllocatedMemory,*float64) - - // Whether to automatically assign an elastic IP address to the layer's instances. - // +kubebuilder:validation:Optional - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - // +kubebuilder:validation:Optional - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - // +kubebuilder:validation:Optional - autoHealing?: null | bool @go(AutoHealing,*bool) - - // +kubebuilder:validation:Optional - cloudwatchConfiguration?: [...#MemcachedLayerCloudwatchConfigurationParameters] @go(CloudwatchConfiguration,[]MemcachedLayerCloudwatchConfigurationParameters) - - // +kubebuilder:validation:Optional - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - - // +kubebuilder:validation:Optional - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - // +kubebuilder:validation:Optional - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - // +kubebuilder:validation:Optional - customJson?: null | string @go(CustomJSON,*string) - - // References to SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdRefs?: [...v1.#Reference] @go(CustomSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdSelector?: null | v1.#Selector @go(CustomSecurityGroupIDSelector,*v1.Selector) - - // Ids for a set of security groups to apply to the layer's instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector - // +kubebuilder:validation:Optional - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - - // +kubebuilder:validation:Optional - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - - // +kubebuilder:validation:Optional - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - // +kubebuilder:validation:Optional - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - // +kubebuilder:validation:Optional - ebsVolume?: [...#MemcachedLayerEBSVolumeParameters] @go(EBSVolume,[]MemcachedLayerEBSVolumeParameters) - - // Name of an Elastic Load Balancer to attach to this layer - // +kubebuilder:validation:Optional - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - // +kubebuilder:validation:Optional - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - // +kubebuilder:validation:Optional - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // +kubebuilder:validation:Optional - loadBasedAutoScaling?: [...#MemcachedLayerLoadBasedAutoScalingParameters] @go(LoadBasedAutoScaling,[]MemcachedLayerLoadBasedAutoScalingParameters) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // ID of the stack the layer will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Names of a set of system packages to install on the layer's instances. - // +kubebuilder:validation:Optional - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - // +kubebuilder:validation:Optional - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -// MemcachedLayerSpec defines the desired state of MemcachedLayer -#MemcachedLayerSpec: { - v1.#ResourceSpec - forProvider: #MemcachedLayerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MemcachedLayerInitParameters @go(InitProvider) -} - -// MemcachedLayerStatus defines the observed state of MemcachedLayer. -#MemcachedLayerStatus: { - v1.#ResourceStatus - atProvider?: #MemcachedLayerObservation @go(AtProvider) -} - -// MemcachedLayer is the Schema for the MemcachedLayers API. Provides an OpsWorks memcached layer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MemcachedLayer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #MemcachedLayerSpec @go(Spec) - status?: #MemcachedLayerStatus @go(Status) -} - -// MemcachedLayerList contains a list of MemcachedLayers -#MemcachedLayerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MemcachedLayer] @go(Items,[]MemcachedLayer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_mysqllayer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_mysqllayer_types_go_gen.cue deleted file mode 100644 index d919535..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_mysqllayer_types_go_gen.cue +++ /dev/null @@ -1,568 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MySQLLayerCloudwatchConfigurationInitParameters: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#MySQLLayerCloudwatchConfigurationLogStreamsInitParameters] @go(LogStreams,[]MySQLLayerCloudwatchConfigurationLogStreamsInitParameters) -} - -#MySQLLayerCloudwatchConfigurationLogStreamsInitParameters: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#MySQLLayerCloudwatchConfigurationLogStreamsObservation: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#MySQLLayerCloudwatchConfigurationLogStreamsParameters: { - // +kubebuilder:validation:Optional - batchCount?: null | float64 @go(BatchCount,*float64) - - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // +kubebuilder:validation:Optional - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // +kubebuilder:validation:Optional - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // +kubebuilder:validation:Optional - file?: null | string @go(File,*string) - - // +kubebuilder:validation:Optional - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // +kubebuilder:validation:Optional - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // +kubebuilder:validation:Optional - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#MySQLLayerCloudwatchConfigurationObservation: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#MySQLLayerCloudwatchConfigurationLogStreamsObservation] @go(LogStreams,[]MySQLLayerCloudwatchConfigurationLogStreamsObservation) -} - -#MySQLLayerCloudwatchConfigurationParameters: { - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // +kubebuilder:validation:Optional - logStreams?: [...#MySQLLayerCloudwatchConfigurationLogStreamsParameters] @go(LogStreams,[]MySQLLayerCloudwatchConfigurationLogStreamsParameters) -} - -#MySQLLayerEBSVolumeInitParameters: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#MySQLLayerEBSVolumeObservation: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#MySQLLayerEBSVolumeParameters: { - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - // +kubebuilder:validation:Optional - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - // +kubebuilder:validation:Optional - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - // +kubebuilder:validation:Optional - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#MySQLLayerInitParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#MySQLLayerCloudwatchConfigurationInitParameters] @go(CloudwatchConfiguration,[]MySQLLayerCloudwatchConfigurationInitParameters) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#MySQLLayerEBSVolumeInitParameters] @go(EBSVolume,[]MySQLLayerEBSVolumeInitParameters) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#MySQLLayerLoadBasedAutoScalingInitParameters] @go(LoadBasedAutoScaling,[]MySQLLayerLoadBasedAutoScalingInitParameters) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // Root password to use for MySQL. - rootPassword?: null | string @go(RootPassword,*string) - - // Whether to set the root user password to all instances in the stack so they can access the instances in this layer. - rootPasswordOnAllInstances?: null | bool @go(RootPasswordOnAllInstances,*bool) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#MySQLLayerLoadBasedAutoScalingDownscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#MySQLLayerLoadBasedAutoScalingDownscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#MySQLLayerLoadBasedAutoScalingDownscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#MySQLLayerLoadBasedAutoScalingInitParameters: { - downscaling?: [...#MySQLLayerLoadBasedAutoScalingDownscalingInitParameters] @go(Downscaling,[]MySQLLayerLoadBasedAutoScalingDownscalingInitParameters) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#MySQLLayerLoadBasedAutoScalingUpscalingInitParameters] @go(Upscaling,[]MySQLLayerLoadBasedAutoScalingUpscalingInitParameters) -} - -#MySQLLayerLoadBasedAutoScalingObservation: { - downscaling?: [...#MySQLLayerLoadBasedAutoScalingDownscalingObservation] @go(Downscaling,[]MySQLLayerLoadBasedAutoScalingDownscalingObservation) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#MySQLLayerLoadBasedAutoScalingUpscalingObservation] @go(Upscaling,[]MySQLLayerLoadBasedAutoScalingUpscalingObservation) -} - -#MySQLLayerLoadBasedAutoScalingParameters: { - // +kubebuilder:validation:Optional - downscaling?: [...#MySQLLayerLoadBasedAutoScalingDownscalingParameters] @go(Downscaling,[]MySQLLayerLoadBasedAutoScalingDownscalingParameters) - - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // +kubebuilder:validation:Optional - upscaling?: [...#MySQLLayerLoadBasedAutoScalingUpscalingParameters] @go(Upscaling,[]MySQLLayerLoadBasedAutoScalingUpscalingParameters) -} - -#MySQLLayerLoadBasedAutoScalingUpscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#MySQLLayerLoadBasedAutoScalingUpscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#MySQLLayerLoadBasedAutoScalingUpscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#MySQLLayerObservation: { - // The Amazon Resource Name(ARN) of the layer. - arn?: null | string @go(Arn,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#MySQLLayerCloudwatchConfigurationObservation] @go(CloudwatchConfiguration,[]MySQLLayerCloudwatchConfigurationObservation) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - - // Ids for a set of security groups to apply to the layer's instances. - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#MySQLLayerEBSVolumeObservation] @go(EBSVolume,[]MySQLLayerEBSVolumeObservation) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // The id of the layer. - id?: null | string @go(ID,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#MySQLLayerLoadBasedAutoScalingObservation] @go(LoadBasedAutoScaling,[]MySQLLayerLoadBasedAutoScalingObservation) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // Root password to use for MySQL. - rootPassword?: null | string @go(RootPassword,*string) - - // Whether to set the root user password to all instances in the stack so they can access the instances in this layer. - rootPasswordOnAllInstances?: null | bool @go(RootPasswordOnAllInstances,*bool) - - // ID of the stack the layer will belong to. - stackId?: null | string @go(StackID,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#MySQLLayerParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - // +kubebuilder:validation:Optional - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - // +kubebuilder:validation:Optional - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - // +kubebuilder:validation:Optional - autoHealing?: null | bool @go(AutoHealing,*bool) - - // +kubebuilder:validation:Optional - cloudwatchConfiguration?: [...#MySQLLayerCloudwatchConfigurationParameters] @go(CloudwatchConfiguration,[]MySQLLayerCloudwatchConfigurationParameters) - - // +kubebuilder:validation:Optional - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - - // +kubebuilder:validation:Optional - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - // +kubebuilder:validation:Optional - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - // +kubebuilder:validation:Optional - customJson?: null | string @go(CustomJSON,*string) - - // References to SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdRefs?: [...v1.#Reference] @go(CustomSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdSelector?: null | v1.#Selector @go(CustomSecurityGroupIDSelector,*v1.Selector) - - // Ids for a set of security groups to apply to the layer's instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector - // +kubebuilder:validation:Optional - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - - // +kubebuilder:validation:Optional - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - - // +kubebuilder:validation:Optional - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - // +kubebuilder:validation:Optional - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - // +kubebuilder:validation:Optional - ebsVolume?: [...#MySQLLayerEBSVolumeParameters] @go(EBSVolume,[]MySQLLayerEBSVolumeParameters) - - // Name of an Elastic Load Balancer to attach to this layer - // +kubebuilder:validation:Optional - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - // +kubebuilder:validation:Optional - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - // +kubebuilder:validation:Optional - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // +kubebuilder:validation:Optional - loadBasedAutoScaling?: [...#MySQLLayerLoadBasedAutoScalingParameters] @go(LoadBasedAutoScaling,[]MySQLLayerLoadBasedAutoScalingParameters) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Root password to use for MySQL. - // +kubebuilder:validation:Optional - rootPassword?: null | string @go(RootPassword,*string) - - // Whether to set the root user password to all instances in the stack so they can access the instances in this layer. - // +kubebuilder:validation:Optional - rootPasswordOnAllInstances?: null | bool @go(RootPasswordOnAllInstances,*bool) - - // ID of the stack the layer will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Names of a set of system packages to install on the layer's instances. - // +kubebuilder:validation:Optional - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - // +kubebuilder:validation:Optional - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -// MySQLLayerSpec defines the desired state of MySQLLayer -#MySQLLayerSpec: { - v1.#ResourceSpec - forProvider: #MySQLLayerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MySQLLayerInitParameters @go(InitProvider) -} - -// MySQLLayerStatus defines the observed state of MySQLLayer. -#MySQLLayerStatus: { - v1.#ResourceStatus - atProvider?: #MySQLLayerObservation @go(AtProvider) -} - -// MySQLLayer is the Schema for the MySQLLayers API. Provides an OpsWorks MySQL layer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MySQLLayer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #MySQLLayerSpec @go(Spec) - status?: #MySQLLayerStatus @go(Status) -} - -// MySQLLayerList contains a list of MySQLLayers -#MySQLLayerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MySQLLayer] @go(Items,[]MySQLLayer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_nodejsapplayer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_nodejsapplayer_types_go_gen.cue deleted file mode 100644 index 1c453c4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_nodejsapplayer_types_go_gen.cue +++ /dev/null @@ -1,558 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NodeJSAppLayerCloudwatchConfigurationInitParameters: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#NodeJSAppLayerCloudwatchConfigurationLogStreamsInitParameters] @go(LogStreams,[]NodeJSAppLayerCloudwatchConfigurationLogStreamsInitParameters) -} - -#NodeJSAppLayerCloudwatchConfigurationLogStreamsInitParameters: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#NodeJSAppLayerCloudwatchConfigurationLogStreamsObservation: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#NodeJSAppLayerCloudwatchConfigurationLogStreamsParameters: { - // +kubebuilder:validation:Optional - batchCount?: null | float64 @go(BatchCount,*float64) - - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // +kubebuilder:validation:Optional - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // +kubebuilder:validation:Optional - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // +kubebuilder:validation:Optional - file?: null | string @go(File,*string) - - // +kubebuilder:validation:Optional - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // +kubebuilder:validation:Optional - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // +kubebuilder:validation:Optional - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#NodeJSAppLayerCloudwatchConfigurationObservation: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#NodeJSAppLayerCloudwatchConfigurationLogStreamsObservation] @go(LogStreams,[]NodeJSAppLayerCloudwatchConfigurationLogStreamsObservation) -} - -#NodeJSAppLayerCloudwatchConfigurationParameters: { - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // +kubebuilder:validation:Optional - logStreams?: [...#NodeJSAppLayerCloudwatchConfigurationLogStreamsParameters] @go(LogStreams,[]NodeJSAppLayerCloudwatchConfigurationLogStreamsParameters) -} - -#NodeJSAppLayerEBSVolumeInitParameters: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#NodeJSAppLayerEBSVolumeObservation: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#NodeJSAppLayerEBSVolumeParameters: { - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - // +kubebuilder:validation:Optional - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - // +kubebuilder:validation:Optional - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - // +kubebuilder:validation:Optional - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#NodeJSAppLayerInitParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#NodeJSAppLayerCloudwatchConfigurationInitParameters] @go(CloudwatchConfiguration,[]NodeJSAppLayerCloudwatchConfigurationInitParameters) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#NodeJSAppLayerEBSVolumeInitParameters] @go(EBSVolume,[]NodeJSAppLayerEBSVolumeInitParameters) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#NodeJSAppLayerLoadBasedAutoScalingInitParameters] @go(LoadBasedAutoScaling,[]NodeJSAppLayerLoadBasedAutoScalingInitParameters) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // The version of NodeJS to use. Defaults to "0.10.38". - nodejsVersion?: null | string @go(NodeJSVersion,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#NodeJSAppLayerLoadBasedAutoScalingDownscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#NodeJSAppLayerLoadBasedAutoScalingDownscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#NodeJSAppLayerLoadBasedAutoScalingDownscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#NodeJSAppLayerLoadBasedAutoScalingInitParameters: { - downscaling?: [...#NodeJSAppLayerLoadBasedAutoScalingDownscalingInitParameters] @go(Downscaling,[]NodeJSAppLayerLoadBasedAutoScalingDownscalingInitParameters) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#NodeJSAppLayerLoadBasedAutoScalingUpscalingInitParameters] @go(Upscaling,[]NodeJSAppLayerLoadBasedAutoScalingUpscalingInitParameters) -} - -#NodeJSAppLayerLoadBasedAutoScalingObservation: { - downscaling?: [...#NodeJSAppLayerLoadBasedAutoScalingDownscalingObservation] @go(Downscaling,[]NodeJSAppLayerLoadBasedAutoScalingDownscalingObservation) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#NodeJSAppLayerLoadBasedAutoScalingUpscalingObservation] @go(Upscaling,[]NodeJSAppLayerLoadBasedAutoScalingUpscalingObservation) -} - -#NodeJSAppLayerLoadBasedAutoScalingParameters: { - // +kubebuilder:validation:Optional - downscaling?: [...#NodeJSAppLayerLoadBasedAutoScalingDownscalingParameters] @go(Downscaling,[]NodeJSAppLayerLoadBasedAutoScalingDownscalingParameters) - - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // +kubebuilder:validation:Optional - upscaling?: [...#NodeJSAppLayerLoadBasedAutoScalingUpscalingParameters] @go(Upscaling,[]NodeJSAppLayerLoadBasedAutoScalingUpscalingParameters) -} - -#NodeJSAppLayerLoadBasedAutoScalingUpscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#NodeJSAppLayerLoadBasedAutoScalingUpscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#NodeJSAppLayerLoadBasedAutoScalingUpscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#NodeJSAppLayerObservation: { - // The Amazon Resource Name(ARN) of the layer. - arn?: null | string @go(Arn,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#NodeJSAppLayerCloudwatchConfigurationObservation] @go(CloudwatchConfiguration,[]NodeJSAppLayerCloudwatchConfigurationObservation) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - - // Ids for a set of security groups to apply to the layer's instances. - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#NodeJSAppLayerEBSVolumeObservation] @go(EBSVolume,[]NodeJSAppLayerEBSVolumeObservation) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // The id of the layer. - id?: null | string @go(ID,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#NodeJSAppLayerLoadBasedAutoScalingObservation] @go(LoadBasedAutoScaling,[]NodeJSAppLayerLoadBasedAutoScalingObservation) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // The version of NodeJS to use. Defaults to "0.10.38". - nodejsVersion?: null | string @go(NodeJSVersion,*string) - - // ID of the stack the layer will belong to. - stackId?: null | string @go(StackID,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#NodeJSAppLayerParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - // +kubebuilder:validation:Optional - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - // +kubebuilder:validation:Optional - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - // +kubebuilder:validation:Optional - autoHealing?: null | bool @go(AutoHealing,*bool) - - // +kubebuilder:validation:Optional - cloudwatchConfiguration?: [...#NodeJSAppLayerCloudwatchConfigurationParameters] @go(CloudwatchConfiguration,[]NodeJSAppLayerCloudwatchConfigurationParameters) - - // +kubebuilder:validation:Optional - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - - // +kubebuilder:validation:Optional - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - // +kubebuilder:validation:Optional - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - // +kubebuilder:validation:Optional - customJson?: null | string @go(CustomJSON,*string) - - // References to SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdRefs?: [...v1.#Reference] @go(CustomSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdSelector?: null | v1.#Selector @go(CustomSecurityGroupIDSelector,*v1.Selector) - - // Ids for a set of security groups to apply to the layer's instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector - // +kubebuilder:validation:Optional - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - - // +kubebuilder:validation:Optional - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - - // +kubebuilder:validation:Optional - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - // +kubebuilder:validation:Optional - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - // +kubebuilder:validation:Optional - ebsVolume?: [...#NodeJSAppLayerEBSVolumeParameters] @go(EBSVolume,[]NodeJSAppLayerEBSVolumeParameters) - - // Name of an Elastic Load Balancer to attach to this layer - // +kubebuilder:validation:Optional - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - // +kubebuilder:validation:Optional - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - // +kubebuilder:validation:Optional - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // +kubebuilder:validation:Optional - loadBasedAutoScaling?: [...#NodeJSAppLayerLoadBasedAutoScalingParameters] @go(LoadBasedAutoScaling,[]NodeJSAppLayerLoadBasedAutoScalingParameters) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The version of NodeJS to use. Defaults to "0.10.38". - // +kubebuilder:validation:Optional - nodejsVersion?: null | string @go(NodeJSVersion,*string) - - // ID of the stack the layer will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Names of a set of system packages to install on the layer's instances. - // +kubebuilder:validation:Optional - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - // +kubebuilder:validation:Optional - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -// NodeJSAppLayerSpec defines the desired state of NodeJSAppLayer -#NodeJSAppLayerSpec: { - v1.#ResourceSpec - forProvider: #NodeJSAppLayerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NodeJSAppLayerInitParameters @go(InitProvider) -} - -// NodeJSAppLayerStatus defines the observed state of NodeJSAppLayer. -#NodeJSAppLayerStatus: { - v1.#ResourceStatus - atProvider?: #NodeJSAppLayerObservation @go(AtProvider) -} - -// NodeJSAppLayer is the Schema for the NodeJSAppLayers API. Provides an OpsWorks NodeJS application layer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NodeJSAppLayer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #NodeJSAppLayerSpec @go(Spec) - status?: #NodeJSAppLayerStatus @go(Status) -} - -// NodeJSAppLayerList contains a list of NodeJSAppLayers -#NodeJSAppLayerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NodeJSAppLayer] @go(Items,[]NodeJSAppLayer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_permission_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_permission_types_go_gen.cue deleted file mode 100644 index a7bfa9f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_permission_types_go_gen.cue +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PermissionInitParameters: { - // Whether the user is allowed to use SSH to communicate with the instance - allowSsh?: null | bool @go(AllowSSH,*bool) - - // Whether the user is allowed to use sudo to elevate privileges - allowSudo?: null | bool @go(AllowSudo,*bool) - - // The users permission level. Mus be one of deny, show, deploy, manage, iam_only - level?: null | string @go(Level,*string) -} - -#PermissionObservation: { - // Whether the user is allowed to use SSH to communicate with the instance - allowSsh?: null | bool @go(AllowSSH,*bool) - - // Whether the user is allowed to use sudo to elevate privileges - allowSudo?: null | bool @go(AllowSudo,*bool) - - // The computed id of the permission. Please note that this is only used internally to identify the permission. This value is not used in aws. - id?: null | string @go(ID,*string) - - // The users permission level. Mus be one of deny, show, deploy, manage, iam_only - level?: null | string @go(Level,*string) - - // The stack to set the permissions for - stackId?: null | string @go(StackID,*string) - - // The user's IAM ARN to set permissions for - userArn?: null | string @go(UserArn,*string) -} - -#PermissionParameters: { - // Whether the user is allowed to use SSH to communicate with the instance - // +kubebuilder:validation:Optional - allowSsh?: null | bool @go(AllowSSH,*bool) - - // Whether the user is allowed to use sudo to elevate privileges - // +kubebuilder:validation:Optional - allowSudo?: null | bool @go(AllowSudo,*bool) - - // The users permission level. Mus be one of deny, show, deploy, manage, iam_only - // +kubebuilder:validation:Optional - level?: null | string @go(Level,*string) - - // The stack to set the permissions for - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // The user's IAM ARN to set permissions for - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.User - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - userArn?: null | string @go(UserArn,*string) - - // Reference to a User in iam to populate userArn. - // +kubebuilder:validation:Optional - userArnRef?: null | v1.#Reference @go(UserArnRef,*v1.Reference) - - // Selector for a User in iam to populate userArn. - // +kubebuilder:validation:Optional - userArnSelector?: null | v1.#Selector @go(UserArnSelector,*v1.Selector) -} - -// PermissionSpec defines the desired state of Permission -#PermissionSpec: { - v1.#ResourceSpec - forProvider: #PermissionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PermissionInitParameters @go(InitProvider) -} - -// PermissionStatus defines the observed state of Permission. -#PermissionStatus: { - v1.#ResourceStatus - atProvider?: #PermissionObservation @go(AtProvider) -} - -// Permission is the Schema for the Permissions API. Provides an OpsWorks permission resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Permission: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #PermissionSpec @go(Spec) - status?: #PermissionStatus @go(Status) -} - -// PermissionList contains a list of Permissions -#PermissionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Permission] @go(Items,[]Permission) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_phpapplayer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_phpapplayer_types_go_gen.cue deleted file mode 100644 index 2bf05f1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_phpapplayer_types_go_gen.cue +++ /dev/null @@ -1,548 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PHPAppLayerCloudwatchConfigurationInitParameters: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#PHPAppLayerCloudwatchConfigurationLogStreamsInitParameters] @go(LogStreams,[]PHPAppLayerCloudwatchConfigurationLogStreamsInitParameters) -} - -#PHPAppLayerCloudwatchConfigurationLogStreamsInitParameters: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#PHPAppLayerCloudwatchConfigurationLogStreamsObservation: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#PHPAppLayerCloudwatchConfigurationLogStreamsParameters: { - // +kubebuilder:validation:Optional - batchCount?: null | float64 @go(BatchCount,*float64) - - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // +kubebuilder:validation:Optional - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // +kubebuilder:validation:Optional - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // +kubebuilder:validation:Optional - file?: null | string @go(File,*string) - - // +kubebuilder:validation:Optional - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // +kubebuilder:validation:Optional - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // +kubebuilder:validation:Optional - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#PHPAppLayerCloudwatchConfigurationObservation: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#PHPAppLayerCloudwatchConfigurationLogStreamsObservation] @go(LogStreams,[]PHPAppLayerCloudwatchConfigurationLogStreamsObservation) -} - -#PHPAppLayerCloudwatchConfigurationParameters: { - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // +kubebuilder:validation:Optional - logStreams?: [...#PHPAppLayerCloudwatchConfigurationLogStreamsParameters] @go(LogStreams,[]PHPAppLayerCloudwatchConfigurationLogStreamsParameters) -} - -#PHPAppLayerEBSVolumeInitParameters: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#PHPAppLayerEBSVolumeObservation: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#PHPAppLayerEBSVolumeParameters: { - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - // +kubebuilder:validation:Optional - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - // +kubebuilder:validation:Optional - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - // +kubebuilder:validation:Optional - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#PHPAppLayerInitParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#PHPAppLayerCloudwatchConfigurationInitParameters] @go(CloudwatchConfiguration,[]PHPAppLayerCloudwatchConfigurationInitParameters) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#PHPAppLayerEBSVolumeInitParameters] @go(EBSVolume,[]PHPAppLayerEBSVolumeInitParameters) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#PHPAppLayerLoadBasedAutoScalingInitParameters] @go(LoadBasedAutoScaling,[]PHPAppLayerLoadBasedAutoScalingInitParameters) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#PHPAppLayerLoadBasedAutoScalingDownscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#PHPAppLayerLoadBasedAutoScalingDownscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#PHPAppLayerLoadBasedAutoScalingDownscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#PHPAppLayerLoadBasedAutoScalingInitParameters: { - downscaling?: [...#PHPAppLayerLoadBasedAutoScalingDownscalingInitParameters] @go(Downscaling,[]PHPAppLayerLoadBasedAutoScalingDownscalingInitParameters) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#PHPAppLayerLoadBasedAutoScalingUpscalingInitParameters] @go(Upscaling,[]PHPAppLayerLoadBasedAutoScalingUpscalingInitParameters) -} - -#PHPAppLayerLoadBasedAutoScalingObservation: { - downscaling?: [...#PHPAppLayerLoadBasedAutoScalingDownscalingObservation] @go(Downscaling,[]PHPAppLayerLoadBasedAutoScalingDownscalingObservation) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#PHPAppLayerLoadBasedAutoScalingUpscalingObservation] @go(Upscaling,[]PHPAppLayerLoadBasedAutoScalingUpscalingObservation) -} - -#PHPAppLayerLoadBasedAutoScalingParameters: { - // +kubebuilder:validation:Optional - downscaling?: [...#PHPAppLayerLoadBasedAutoScalingDownscalingParameters] @go(Downscaling,[]PHPAppLayerLoadBasedAutoScalingDownscalingParameters) - - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // +kubebuilder:validation:Optional - upscaling?: [...#PHPAppLayerLoadBasedAutoScalingUpscalingParameters] @go(Upscaling,[]PHPAppLayerLoadBasedAutoScalingUpscalingParameters) -} - -#PHPAppLayerLoadBasedAutoScalingUpscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#PHPAppLayerLoadBasedAutoScalingUpscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#PHPAppLayerLoadBasedAutoScalingUpscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#PHPAppLayerObservation: { - // The Amazon Resource Name(ARN) of the layer. - arn?: null | string @go(Arn,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#PHPAppLayerCloudwatchConfigurationObservation] @go(CloudwatchConfiguration,[]PHPAppLayerCloudwatchConfigurationObservation) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - - // Ids for a set of security groups to apply to the layer's instances. - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#PHPAppLayerEBSVolumeObservation] @go(EBSVolume,[]PHPAppLayerEBSVolumeObservation) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // The id of the layer. - id?: null | string @go(ID,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#PHPAppLayerLoadBasedAutoScalingObservation] @go(LoadBasedAutoScaling,[]PHPAppLayerLoadBasedAutoScalingObservation) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // ID of the stack the layer will belong to. - stackId?: null | string @go(StackID,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#PHPAppLayerParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - // +kubebuilder:validation:Optional - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - // +kubebuilder:validation:Optional - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - // +kubebuilder:validation:Optional - autoHealing?: null | bool @go(AutoHealing,*bool) - - // +kubebuilder:validation:Optional - cloudwatchConfiguration?: [...#PHPAppLayerCloudwatchConfigurationParameters] @go(CloudwatchConfiguration,[]PHPAppLayerCloudwatchConfigurationParameters) - - // +kubebuilder:validation:Optional - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - - // +kubebuilder:validation:Optional - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - // +kubebuilder:validation:Optional - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - // +kubebuilder:validation:Optional - customJson?: null | string @go(CustomJSON,*string) - - // References to SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdRefs?: [...v1.#Reference] @go(CustomSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdSelector?: null | v1.#Selector @go(CustomSecurityGroupIDSelector,*v1.Selector) - - // Ids for a set of security groups to apply to the layer's instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector - // +kubebuilder:validation:Optional - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - - // +kubebuilder:validation:Optional - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - - // +kubebuilder:validation:Optional - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - // +kubebuilder:validation:Optional - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - // +kubebuilder:validation:Optional - ebsVolume?: [...#PHPAppLayerEBSVolumeParameters] @go(EBSVolume,[]PHPAppLayerEBSVolumeParameters) - - // Name of an Elastic Load Balancer to attach to this layer - // +kubebuilder:validation:Optional - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - // +kubebuilder:validation:Optional - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - // +kubebuilder:validation:Optional - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // +kubebuilder:validation:Optional - loadBasedAutoScaling?: [...#PHPAppLayerLoadBasedAutoScalingParameters] @go(LoadBasedAutoScaling,[]PHPAppLayerLoadBasedAutoScalingParameters) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // ID of the stack the layer will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Names of a set of system packages to install on the layer's instances. - // +kubebuilder:validation:Optional - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - // +kubebuilder:validation:Optional - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -// PHPAppLayerSpec defines the desired state of PHPAppLayer -#PHPAppLayerSpec: { - v1.#ResourceSpec - forProvider: #PHPAppLayerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PHPAppLayerInitParameters @go(InitProvider) -} - -// PHPAppLayerStatus defines the observed state of PHPAppLayer. -#PHPAppLayerStatus: { - v1.#ResourceStatus - atProvider?: #PHPAppLayerObservation @go(AtProvider) -} - -// PHPAppLayer is the Schema for the PHPAppLayers API. Provides an OpsWorks PHP application layer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PHPAppLayer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #PHPAppLayerSpec @go(Spec) - status?: #PHPAppLayerStatus @go(Status) -} - -// PHPAppLayerList contains a list of PHPAppLayers -#PHPAppLayerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PHPAppLayer] @go(Items,[]PHPAppLayer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_railsapplayer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_railsapplayer_types_go_gen.cue deleted file mode 100644 index b68c1b9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_railsapplayer_types_go_gen.cue +++ /dev/null @@ -1,608 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RailsAppLayerCloudwatchConfigurationInitParameters: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#RailsAppLayerCloudwatchConfigurationLogStreamsInitParameters] @go(LogStreams,[]RailsAppLayerCloudwatchConfigurationLogStreamsInitParameters) -} - -#RailsAppLayerCloudwatchConfigurationLogStreamsInitParameters: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#RailsAppLayerCloudwatchConfigurationLogStreamsObservation: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#RailsAppLayerCloudwatchConfigurationLogStreamsParameters: { - // +kubebuilder:validation:Optional - batchCount?: null | float64 @go(BatchCount,*float64) - - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // +kubebuilder:validation:Optional - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // +kubebuilder:validation:Optional - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // +kubebuilder:validation:Optional - file?: null | string @go(File,*string) - - // +kubebuilder:validation:Optional - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // +kubebuilder:validation:Optional - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // +kubebuilder:validation:Optional - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#RailsAppLayerCloudwatchConfigurationObservation: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#RailsAppLayerCloudwatchConfigurationLogStreamsObservation] @go(LogStreams,[]RailsAppLayerCloudwatchConfigurationLogStreamsObservation) -} - -#RailsAppLayerCloudwatchConfigurationParameters: { - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // +kubebuilder:validation:Optional - logStreams?: [...#RailsAppLayerCloudwatchConfigurationLogStreamsParameters] @go(LogStreams,[]RailsAppLayerCloudwatchConfigurationLogStreamsParameters) -} - -#RailsAppLayerEBSVolumeInitParameters: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#RailsAppLayerEBSVolumeObservation: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#RailsAppLayerEBSVolumeParameters: { - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - // +kubebuilder:validation:Optional - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - // +kubebuilder:validation:Optional - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - // +kubebuilder:validation:Optional - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RailsAppLayerInitParameters: { - // Keyword for the app server to use. Defaults to "apache_passenger". - appServer?: null | string @go(AppServer,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - - // When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3". - bundlerVersion?: null | string @go(BundlerVersion,*string) - cloudwatchConfiguration?: [...#RailsAppLayerCloudwatchConfigurationInitParameters] @go(CloudwatchConfiguration,[]RailsAppLayerCloudwatchConfigurationInitParameters) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#RailsAppLayerEBSVolumeInitParameters] @go(EBSVolume,[]RailsAppLayerEBSVolumeInitParameters) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#RailsAppLayerLoadBasedAutoScalingInitParameters] @go(LoadBasedAutoScaling,[]RailsAppLayerLoadBasedAutoScalingInitParameters) - - // Whether OpsWorks should manage bundler. On by default. - manageBundler?: null | bool @go(ManageBundler,*bool) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // The version of Passenger to use. Defaults to "4.0.46". - passengerVersion?: null | string @go(PassengerVersion,*string) - - // The version of Ruby to use. Defaults to "2.0.0". - rubyVersion?: null | string @go(RubyVersion,*string) - - // The version of RubyGems to use. Defaults to "2.2.2". - rubygemsVersion?: null | string @go(RubygemsVersion,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#RailsAppLayerLoadBasedAutoScalingDownscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#RailsAppLayerLoadBasedAutoScalingDownscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#RailsAppLayerLoadBasedAutoScalingDownscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#RailsAppLayerLoadBasedAutoScalingInitParameters: { - downscaling?: [...#RailsAppLayerLoadBasedAutoScalingDownscalingInitParameters] @go(Downscaling,[]RailsAppLayerLoadBasedAutoScalingDownscalingInitParameters) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#RailsAppLayerLoadBasedAutoScalingUpscalingInitParameters] @go(Upscaling,[]RailsAppLayerLoadBasedAutoScalingUpscalingInitParameters) -} - -#RailsAppLayerLoadBasedAutoScalingObservation: { - downscaling?: [...#RailsAppLayerLoadBasedAutoScalingDownscalingObservation] @go(Downscaling,[]RailsAppLayerLoadBasedAutoScalingDownscalingObservation) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#RailsAppLayerLoadBasedAutoScalingUpscalingObservation] @go(Upscaling,[]RailsAppLayerLoadBasedAutoScalingUpscalingObservation) -} - -#RailsAppLayerLoadBasedAutoScalingParameters: { - // +kubebuilder:validation:Optional - downscaling?: [...#RailsAppLayerLoadBasedAutoScalingDownscalingParameters] @go(Downscaling,[]RailsAppLayerLoadBasedAutoScalingDownscalingParameters) - - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // +kubebuilder:validation:Optional - upscaling?: [...#RailsAppLayerLoadBasedAutoScalingUpscalingParameters] @go(Upscaling,[]RailsAppLayerLoadBasedAutoScalingUpscalingParameters) -} - -#RailsAppLayerLoadBasedAutoScalingUpscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#RailsAppLayerLoadBasedAutoScalingUpscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#RailsAppLayerLoadBasedAutoScalingUpscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#RailsAppLayerObservation: { - // Keyword for the app server to use. Defaults to "apache_passenger". - appServer?: null | string @go(AppServer,*string) - - // The Amazon Resource Name(ARN) of the layer. - arn?: null | string @go(Arn,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - - // When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3". - bundlerVersion?: null | string @go(BundlerVersion,*string) - cloudwatchConfiguration?: [...#RailsAppLayerCloudwatchConfigurationObservation] @go(CloudwatchConfiguration,[]RailsAppLayerCloudwatchConfigurationObservation) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - customJson?: null | string @go(CustomJSON,*string) - - // Ids for a set of security groups to apply to the layer's instances. - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#RailsAppLayerEBSVolumeObservation] @go(EBSVolume,[]RailsAppLayerEBSVolumeObservation) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // The id of the layer. - id?: null | string @go(ID,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#RailsAppLayerLoadBasedAutoScalingObservation] @go(LoadBasedAutoScaling,[]RailsAppLayerLoadBasedAutoScalingObservation) - - // Whether OpsWorks should manage bundler. On by default. - manageBundler?: null | bool @go(ManageBundler,*bool) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // The version of Passenger to use. Defaults to "4.0.46". - passengerVersion?: null | string @go(PassengerVersion,*string) - - // The version of Ruby to use. Defaults to "2.0.0". - rubyVersion?: null | string @go(RubyVersion,*string) - - // The version of RubyGems to use. Defaults to "2.2.2". - rubygemsVersion?: null | string @go(RubygemsVersion,*string) - - // ID of the stack the layer will belong to. - stackId?: null | string @go(StackID,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#RailsAppLayerParameters: { - // Keyword for the app server to use. Defaults to "apache_passenger". - // +kubebuilder:validation:Optional - appServer?: null | string @go(AppServer,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - // +kubebuilder:validation:Optional - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - // +kubebuilder:validation:Optional - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - // +kubebuilder:validation:Optional - autoHealing?: null | bool @go(AutoHealing,*bool) - - // When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3". - // +kubebuilder:validation:Optional - bundlerVersion?: null | string @go(BundlerVersion,*string) - - // +kubebuilder:validation:Optional - cloudwatchConfiguration?: [...#RailsAppLayerCloudwatchConfigurationParameters] @go(CloudwatchConfiguration,[]RailsAppLayerCloudwatchConfigurationParameters) - - // +kubebuilder:validation:Optional - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - - // +kubebuilder:validation:Optional - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - // +kubebuilder:validation:Optional - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // Custom JSON attributes to apply to the layer. - // +kubebuilder:validation:Optional - customJson?: null | string @go(CustomJSON,*string) - - // References to SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdRefs?: [...v1.#Reference] @go(CustomSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdSelector?: null | v1.#Selector @go(CustomSecurityGroupIDSelector,*v1.Selector) - - // Ids for a set of security groups to apply to the layer's instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector - // +kubebuilder:validation:Optional - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - - // +kubebuilder:validation:Optional - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - - // +kubebuilder:validation:Optional - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - // +kubebuilder:validation:Optional - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - // +kubebuilder:validation:Optional - ebsVolume?: [...#RailsAppLayerEBSVolumeParameters] @go(EBSVolume,[]RailsAppLayerEBSVolumeParameters) - - // Name of an Elastic Load Balancer to attach to this layer - // +kubebuilder:validation:Optional - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - // +kubebuilder:validation:Optional - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - // +kubebuilder:validation:Optional - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // +kubebuilder:validation:Optional - loadBasedAutoScaling?: [...#RailsAppLayerLoadBasedAutoScalingParameters] @go(LoadBasedAutoScaling,[]RailsAppLayerLoadBasedAutoScalingParameters) - - // Whether OpsWorks should manage bundler. On by default. - // +kubebuilder:validation:Optional - manageBundler?: null | bool @go(ManageBundler,*bool) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The version of Passenger to use. Defaults to "4.0.46". - // +kubebuilder:validation:Optional - passengerVersion?: null | string @go(PassengerVersion,*string) - - // The version of Ruby to use. Defaults to "2.0.0". - // +kubebuilder:validation:Optional - rubyVersion?: null | string @go(RubyVersion,*string) - - // The version of RubyGems to use. Defaults to "2.2.2". - // +kubebuilder:validation:Optional - rubygemsVersion?: null | string @go(RubygemsVersion,*string) - - // ID of the stack the layer will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Names of a set of system packages to install on the layer's instances. - // +kubebuilder:validation:Optional - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - // +kubebuilder:validation:Optional - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -// RailsAppLayerSpec defines the desired state of RailsAppLayer -#RailsAppLayerSpec: { - v1.#ResourceSpec - forProvider: #RailsAppLayerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RailsAppLayerInitParameters @go(InitProvider) -} - -// RailsAppLayerStatus defines the observed state of RailsAppLayer. -#RailsAppLayerStatus: { - v1.#ResourceStatus - atProvider?: #RailsAppLayerObservation @go(AtProvider) -} - -// RailsAppLayer is the Schema for the RailsAppLayers API. Provides an OpsWorks Ruby on Rails application layer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RailsAppLayer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RailsAppLayerSpec @go(Spec) - status?: #RailsAppLayerStatus @go(Status) -} - -// RailsAppLayerList contains a list of RailsAppLayers -#RailsAppLayerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RailsAppLayer] @go(Items,[]RailsAppLayer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_rdsdbinstance_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_rdsdbinstance_types_go_gen.cue deleted file mode 100644 index 6604053..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_rdsdbinstance_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RDSDBInstanceInitParameters: { - // A db username - dbUser?: null | string @go(DBUser,*string) -} - -#RDSDBInstanceObservation: { - // A db username - dbUser?: null | string @go(DBUser,*string) - - // The computed id. Please note that this is only used internally to identify the stack <-> instance relation. This value is not used in aws. - id?: null | string @go(ID,*string) - - // The db instance to register for this stack. Changing this will force a new resource. - rdsDbInstanceArn?: null | string @go(RDSDBInstanceArn,*string) - - // The stack to register a db instance for. Changing this will force a new resource. - stackId?: null | string @go(StackID,*string) -} - -#RDSDBInstanceParameters: { - // A db password - // +kubebuilder:validation:Optional - dbPasswordSecretRef: v1.#SecretKeySelector @go(DBPasswordSecretRef) - - // A db username - // +kubebuilder:validation:Optional - dbUser?: null | string @go(DBUser,*string) - - // The db instance to register for this stack. Changing this will force a new resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - rdsDbInstanceArn?: null | string @go(RDSDBInstanceArn,*string) - - // Reference to a Instance in rds to populate rdsDbInstanceArn. - // +kubebuilder:validation:Optional - rdsDbInstanceArnRef?: null | v1.#Reference @go(RDSDBInstanceArnRef,*v1.Reference) - - // Selector for a Instance in rds to populate rdsDbInstanceArn. - // +kubebuilder:validation:Optional - rdsDbInstanceArnSelector?: null | v1.#Selector @go(RDSDBInstanceArnSelector,*v1.Selector) - - // The stack to register a db instance for. Changing this will force a new resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) -} - -// RDSDBInstanceSpec defines the desired state of RDSDBInstance -#RDSDBInstanceSpec: { - v1.#ResourceSpec - forProvider: #RDSDBInstanceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RDSDBInstanceInitParameters @go(InitProvider) -} - -// RDSDBInstanceStatus defines the observed state of RDSDBInstance. -#RDSDBInstanceStatus: { - v1.#ResourceStatus - atProvider?: #RDSDBInstanceObservation @go(AtProvider) -} - -// RDSDBInstance is the Schema for the RDSDBInstances API. Provides an OpsWorks RDS DB Instance resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RDSDBInstance: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dbPasswordSecretRef)",message="spec.forProvider.dbPasswordSecretRef is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dbUser) || (has(self.initProvider) && has(self.initProvider.dbUser))",message="spec.forProvider.dbUser is a required parameter" - spec: #RDSDBInstanceSpec @go(Spec) - status?: #RDSDBInstanceStatus @go(Status) -} - -// RDSDBInstanceList contains a list of RDSDBInstances -#RDSDBInstanceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RDSDBInstance] @go(Items,[]RDSDBInstance) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_stack_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_stack_types_go_gen.cue deleted file mode 100644 index 587db94..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_stack_types_go_gen.cue +++ /dev/null @@ -1,375 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CustomCookbooksSourceInitParameters: { - // For sources that are version-aware, the revision to use. - revision?: null | string @go(Revision,*string) - - // The type of source to use. For example, "archive". - type?: null | string @go(Type,*string) - - // The URL where the cookbooks resource can be found. - url?: null | string @go(URL,*string) - - // Username to use when authenticating to the source. - username?: null | string @go(Username,*string) -} - -#CustomCookbooksSourceObservation: { - // For sources that are version-aware, the revision to use. - revision?: null | string @go(Revision,*string) - - // The type of source to use. For example, "archive". - type?: null | string @go(Type,*string) - - // The URL where the cookbooks resource can be found. - url?: null | string @go(URL,*string) - - // Username to use when authenticating to the source. - username?: null | string @go(Username,*string) -} - -#CustomCookbooksSourceParameters: { - // Password to use when authenticating to the source. - // +kubebuilder:validation:Optional - passwordSecretRef?: null | v1.#SecretKeySelector @go(PasswordSecretRef,*v1.SecretKeySelector) - - // For sources that are version-aware, the revision to use. - // +kubebuilder:validation:Optional - revision?: null | string @go(Revision,*string) - - // SSH key to use when authenticating to the source. - // +kubebuilder:validation:Optional - sshKeySecretRef?: null | v1.#SecretKeySelector @go(SSHKeySecretRef,*v1.SecretKeySelector) - - // The type of source to use. For example, "archive". - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The URL where the cookbooks resource can be found. - // +kubebuilder:validation:Optional - url?: null | string @go(URL,*string) - - // Username to use when authenticating to the source. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -#StackInitParameters: { - // If set to "LATEST", OpsWorks will automatically install the latest version. - agentVersion?: null | string @go(AgentVersion,*string) - - // If manage_berkshelf is enabled, the version of Berkshelf to use. - berkshelfVersion?: null | string @go(BerkshelfVersion,*string) - - // Color to paint next to the stack's resources in the OpsWorks console. - color?: null | string @go(Color,*string) - - // Name of the configuration manager to use. Defaults to "Chef". - configurationManagerName?: null | string @go(ConfigurationManagerName,*string) - - // Version of the configuration manager to use. Defaults to "11.4". - configurationManagerVersion?: null | string @go(ConfigurationManagerVersion,*string) - - // When use_custom_cookbooks is set, provide this sub-object as described below. - customCookbooksSource?: [...#CustomCookbooksSourceInitParameters] @go(CustomCookbooksSource,[]CustomCookbooksSourceInitParameters) - - // User defined JSON passed to "Chef". Use a "here doc" for multiline JSON. - customJson?: null | string @go(CustomJSON,*string) - - // Name of the availability zone where instances will be created by default. - // Cannot be set when vpc_id is set. - defaultAvailabilityZone?: null | string @go(DefaultAvailabilityZone,*string) - - // Name of OS that will be installed on instances by default. - defaultOs?: null | string @go(DefaultOs,*string) - - // Name of the type of root device instances will have by default. - defaultRootDeviceType?: null | string @go(DefaultRootDeviceType,*string) - - // Name of the SSH keypair that instances will have by default. - defaultSshKeyName?: null | string @go(DefaultSSHKeyName,*string) - - // Keyword representing the naming scheme that will be used for instance hostnames within this stack. - hostnameTheme?: null | string @go(HostnameTheme,*string) - - // Boolean value controlling whether Opsworks will run Berkshelf for this stack. - manageBerkshelf?: null | bool @go(ManageBerkshelf,*bool) - - // The name of the stack. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Boolean value controlling whether the custom cookbook settings are enabled. - useCustomCookbooks?: null | bool @go(UseCustomCookbooks,*bool) - - // Boolean value controlling whether the standard OpsWorks security groups apply to created instances. - useOpsworksSecurityGroups?: null | bool @go(UseOpsworksSecurityGroups,*bool) -} - -#StackObservation: { - // If set to "LATEST", OpsWorks will automatically install the latest version. - agentVersion?: null | string @go(AgentVersion,*string) - arn?: null | string @go(Arn,*string) - - // If manage_berkshelf is enabled, the version of Berkshelf to use. - berkshelfVersion?: null | string @go(BerkshelfVersion,*string) - - // Color to paint next to the stack's resources in the OpsWorks console. - color?: null | string @go(Color,*string) - - // Name of the configuration manager to use. Defaults to "Chef". - configurationManagerName?: null | string @go(ConfigurationManagerName,*string) - - // Version of the configuration manager to use. Defaults to "11.4". - configurationManagerVersion?: null | string @go(ConfigurationManagerVersion,*string) - - // When use_custom_cookbooks is set, provide this sub-object as described below. - customCookbooksSource?: [...#CustomCookbooksSourceObservation] @go(CustomCookbooksSource,[]CustomCookbooksSourceObservation) - - // User defined JSON passed to "Chef". Use a "here doc" for multiline JSON. - customJson?: null | string @go(CustomJSON,*string) - - // Name of the availability zone where instances will be created by default. - // Cannot be set when vpc_id is set. - defaultAvailabilityZone?: null | string @go(DefaultAvailabilityZone,*string) - - // The ARN of an IAM Instance Profile that created instances will have by default. - defaultInstanceProfileArn?: null | string @go(DefaultInstanceProfileArn,*string) - - // Name of OS that will be installed on instances by default. - defaultOs?: null | string @go(DefaultOs,*string) - - // Name of the type of root device instances will have by default. - defaultRootDeviceType?: null | string @go(DefaultRootDeviceType,*string) - - // Name of the SSH keypair that instances will have by default. - defaultSshKeyName?: null | string @go(DefaultSSHKeyName,*string) - - // ID of the subnet in which instances will be created by default. - // Required if vpc_id is set to a VPC other than the default VPC, and forbidden if it isn't. - defaultSubnetId?: null | string @go(DefaultSubnetID,*string) - - // Keyword representing the naming scheme that will be used for instance hostnames within this stack. - hostnameTheme?: null | string @go(HostnameTheme,*string) - - // The id of the stack. - id?: null | string @go(ID,*string) - - // Boolean value controlling whether Opsworks will run Berkshelf for this stack. - manageBerkshelf?: null | bool @go(ManageBerkshelf,*bool) - - // The name of the stack. - name?: null | string @go(Name,*string) - - // The name of the region where the stack will exist. - region?: null | string @go(Region,*string) - - // The ARN of an IAM role that the OpsWorks service will act as. - serviceRoleArn?: null | string @go(ServiceRoleArn,*string) - stackEndpoint?: null | string @go(StackEndpoint,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Boolean value controlling whether the custom cookbook settings are enabled. - useCustomCookbooks?: null | bool @go(UseCustomCookbooks,*bool) - - // Boolean value controlling whether the standard OpsWorks security groups apply to created instances. - useOpsworksSecurityGroups?: null | bool @go(UseOpsworksSecurityGroups,*bool) - - // ID of the VPC that this stack belongs to. - // Defaults to the region's default VPC. - vpcId?: null | string @go(VPCID,*string) -} - -#StackParameters: { - // If set to "LATEST", OpsWorks will automatically install the latest version. - // +kubebuilder:validation:Optional - agentVersion?: null | string @go(AgentVersion,*string) - - // If manage_berkshelf is enabled, the version of Berkshelf to use. - // +kubebuilder:validation:Optional - berkshelfVersion?: null | string @go(BerkshelfVersion,*string) - - // Color to paint next to the stack's resources in the OpsWorks console. - // +kubebuilder:validation:Optional - color?: null | string @go(Color,*string) - - // Name of the configuration manager to use. Defaults to "Chef". - // +kubebuilder:validation:Optional - configurationManagerName?: null | string @go(ConfigurationManagerName,*string) - - // Version of the configuration manager to use. Defaults to "11.4". - // +kubebuilder:validation:Optional - configurationManagerVersion?: null | string @go(ConfigurationManagerVersion,*string) - - // When use_custom_cookbooks is set, provide this sub-object as described below. - // +kubebuilder:validation:Optional - customCookbooksSource?: [...#CustomCookbooksSourceParameters] @go(CustomCookbooksSource,[]CustomCookbooksSourceParameters) - - // User defined JSON passed to "Chef". Use a "here doc" for multiline JSON. - // +kubebuilder:validation:Optional - customJson?: null | string @go(CustomJSON,*string) - - // Name of the availability zone where instances will be created by default. - // Cannot be set when vpc_id is set. - // +kubebuilder:validation:Optional - defaultAvailabilityZone?: null | string @go(DefaultAvailabilityZone,*string) - - // The ARN of an IAM Instance Profile that created instances will have by default. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.InstanceProfile - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - defaultInstanceProfileArn?: null | string @go(DefaultInstanceProfileArn,*string) - - // Reference to a InstanceProfile in iam to populate defaultInstanceProfileArn. - // +kubebuilder:validation:Optional - defaultInstanceProfileArnRef?: null | v1.#Reference @go(DefaultInstanceProfileArnRef,*v1.Reference) - - // Selector for a InstanceProfile in iam to populate defaultInstanceProfileArn. - // +kubebuilder:validation:Optional - defaultInstanceProfileArnSelector?: null | v1.#Selector @go(DefaultInstanceProfileArnSelector,*v1.Selector) - - // Name of OS that will be installed on instances by default. - // +kubebuilder:validation:Optional - defaultOs?: null | string @go(DefaultOs,*string) - - // Name of the type of root device instances will have by default. - // +kubebuilder:validation:Optional - defaultRootDeviceType?: null | string @go(DefaultRootDeviceType,*string) - - // Name of the SSH keypair that instances will have by default. - // +kubebuilder:validation:Optional - defaultSshKeyName?: null | string @go(DefaultSSHKeyName,*string) - - // ID of the subnet in which instances will be created by default. - // Required if vpc_id is set to a VPC other than the default VPC, and forbidden if it isn't. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - defaultSubnetId?: null | string @go(DefaultSubnetID,*string) - - // Reference to a Subnet in ec2 to populate defaultSubnetId. - // +kubebuilder:validation:Optional - defaultSubnetIdRef?: null | v1.#Reference @go(DefaultSubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate defaultSubnetId. - // +kubebuilder:validation:Optional - defaultSubnetIdSelector?: null | v1.#Selector @go(DefaultSubnetIDSelector,*v1.Selector) - - // Keyword representing the naming scheme that will be used for instance hostnames within this stack. - // +kubebuilder:validation:Optional - hostnameTheme?: null | string @go(HostnameTheme,*string) - - // Boolean value controlling whether Opsworks will run Berkshelf for this stack. - // +kubebuilder:validation:Optional - manageBerkshelf?: null | bool @go(ManageBerkshelf,*bool) - - // The name of the stack. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The name of the region where the stack will exist. - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of an IAM role that the OpsWorks service will act as. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - serviceRoleArn?: null | string @go(ServiceRoleArn,*string) - - // Reference to a Role in iam to populate serviceRoleArn. - // +kubebuilder:validation:Optional - serviceRoleArnRef?: null | v1.#Reference @go(ServiceRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate serviceRoleArn. - // +kubebuilder:validation:Optional - serviceRoleArnSelector?: null | v1.#Selector @go(ServiceRoleArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Boolean value controlling whether the custom cookbook settings are enabled. - // +kubebuilder:validation:Optional - useCustomCookbooks?: null | bool @go(UseCustomCookbooks,*bool) - - // Boolean value controlling whether the standard OpsWorks security groups apply to created instances. - // +kubebuilder:validation:Optional - useOpsworksSecurityGroups?: null | bool @go(UseOpsworksSecurityGroups,*bool) - - // ID of the VPC that this stack belongs to. - // Defaults to the region's default VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// StackSpec defines the desired state of Stack -#StackSpec: { - v1.#ResourceSpec - forProvider: #StackParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StackInitParameters @go(InitProvider) -} - -// StackStatus defines the observed state of Stack. -#StackStatus: { - v1.#ResourceStatus - atProvider?: #StackObservation @go(AtProvider) -} - -// Stack is the Schema for the Stacks API. Provides an OpsWorks stack resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Stack: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #StackSpec @go(Spec) - status?: #StackStatus @go(Status) -} - -// StackList contains a list of Stacks -#StackList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Stack] @go(Items,[]Stack) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_staticweblayer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_staticweblayer_types_go_gen.cue deleted file mode 100644 index 6a622da..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_staticweblayer_types_go_gen.cue +++ /dev/null @@ -1,543 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#StaticWebLayerCloudwatchConfigurationInitParameters: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#StaticWebLayerCloudwatchConfigurationLogStreamsInitParameters] @go(LogStreams,[]StaticWebLayerCloudwatchConfigurationLogStreamsInitParameters) -} - -#StaticWebLayerCloudwatchConfigurationLogStreamsInitParameters: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#StaticWebLayerCloudwatchConfigurationLogStreamsObservation: { - batchCount?: null | float64 @go(BatchCount,*float64) - batchSize?: null | float64 @go(BatchSize,*float64) - bufferDuration?: null | float64 @go(BufferDuration,*float64) - datetimeFormat?: null | string @go(DatetimeFormat,*string) - encoding?: null | string @go(Encoding,*string) - file?: null | string @go(File,*string) - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - logGroupName?: null | string @go(LogGroupName,*string) - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - timeZone?: null | string @go(TimeZone,*string) -} - -#StaticWebLayerCloudwatchConfigurationLogStreamsParameters: { - // +kubebuilder:validation:Optional - batchCount?: null | float64 @go(BatchCount,*float64) - - // +kubebuilder:validation:Optional - batchSize?: null | float64 @go(BatchSize,*float64) - - // +kubebuilder:validation:Optional - bufferDuration?: null | float64 @go(BufferDuration,*float64) - - // +kubebuilder:validation:Optional - datetimeFormat?: null | string @go(DatetimeFormat,*string) - - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // +kubebuilder:validation:Optional - file?: null | string @go(File,*string) - - // +kubebuilder:validation:Optional - fileFingerprintLines?: null | string @go(FileFingerprintLines,*string) - - // +kubebuilder:validation:Optional - initialPosition?: null | string @go(InitialPosition,*string) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - logGroupName?: null | string @go(LogGroupName,*string) - - // +kubebuilder:validation:Optional - multilineStartPattern?: null | string @go(MultilineStartPattern,*string) - - // +kubebuilder:validation:Optional - timeZone?: null | string @go(TimeZone,*string) -} - -#StaticWebLayerCloudwatchConfigurationObservation: { - enabled?: null | bool @go(Enabled,*bool) - logStreams?: [...#StaticWebLayerCloudwatchConfigurationLogStreamsObservation] @go(LogStreams,[]StaticWebLayerCloudwatchConfigurationLogStreamsObservation) -} - -#StaticWebLayerCloudwatchConfigurationParameters: { - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // +kubebuilder:validation:Optional - logStreams?: [...#StaticWebLayerCloudwatchConfigurationLogStreamsParameters] @go(LogStreams,[]StaticWebLayerCloudwatchConfigurationLogStreamsParameters) -} - -#StaticWebLayerEBSVolumeInitParameters: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#StaticWebLayerEBSVolumeObservation: { - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - type?: null | string @go(Type,*string) -} - -#StaticWebLayerEBSVolumeParameters: { - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // For PIOPS volumes, the IOPS per disk. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The path to mount the EBS volume on the layer's instances. - // +kubebuilder:validation:Optional - mountPoint?: null | string @go(MountPoint,*string) - - // The number of disks to use for the EBS volume. - // +kubebuilder:validation:Optional - numberOfDisks?: null | float64 @go(NumberOfDisks,*float64) - - // The RAID level to use for the volume. - // +kubebuilder:validation:Optional - raidLevel?: null | string @go(RaidLevel,*string) - - // The size of the volume in gigabytes. - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // The type of volume to create. This may be standard (the default), io1 or gp2. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#StaticWebLayerInitParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#StaticWebLayerCloudwatchConfigurationInitParameters] @go(CloudwatchConfiguration,[]StaticWebLayerCloudwatchConfigurationInitParameters) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - customJson?: null | string @go(CustomJSON,*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#StaticWebLayerEBSVolumeInitParameters] @go(EBSVolume,[]StaticWebLayerEBSVolumeInitParameters) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#StaticWebLayerLoadBasedAutoScalingInitParameters] @go(LoadBasedAutoScaling,[]StaticWebLayerLoadBasedAutoScalingInitParameters) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#StaticWebLayerLoadBasedAutoScalingDownscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#StaticWebLayerLoadBasedAutoScalingDownscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#StaticWebLayerLoadBasedAutoScalingDownscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#StaticWebLayerLoadBasedAutoScalingInitParameters: { - downscaling?: [...#StaticWebLayerLoadBasedAutoScalingDownscalingInitParameters] @go(Downscaling,[]StaticWebLayerLoadBasedAutoScalingDownscalingInitParameters) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#StaticWebLayerLoadBasedAutoScalingUpscalingInitParameters] @go(Upscaling,[]StaticWebLayerLoadBasedAutoScalingUpscalingInitParameters) -} - -#StaticWebLayerLoadBasedAutoScalingObservation: { - downscaling?: [...#StaticWebLayerLoadBasedAutoScalingDownscalingObservation] @go(Downscaling,[]StaticWebLayerLoadBasedAutoScalingDownscalingObservation) - enable?: null | bool @go(Enable,*bool) - upscaling?: [...#StaticWebLayerLoadBasedAutoScalingUpscalingObservation] @go(Upscaling,[]StaticWebLayerLoadBasedAutoScalingUpscalingObservation) -} - -#StaticWebLayerLoadBasedAutoScalingParameters: { - // +kubebuilder:validation:Optional - downscaling?: [...#StaticWebLayerLoadBasedAutoScalingDownscalingParameters] @go(Downscaling,[]StaticWebLayerLoadBasedAutoScalingDownscalingParameters) - - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // +kubebuilder:validation:Optional - upscaling?: [...#StaticWebLayerLoadBasedAutoScalingUpscalingParameters] @go(Upscaling,[]StaticWebLayerLoadBasedAutoScalingUpscalingParameters) -} - -#StaticWebLayerLoadBasedAutoScalingUpscalingInitParameters: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#StaticWebLayerLoadBasedAutoScalingUpscalingObservation: { - alarms?: [...null | string] @go(Alarms,[]*string) - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - instanceCount?: null | float64 @go(InstanceCount,*float64) - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#StaticWebLayerLoadBasedAutoScalingUpscalingParameters: { - // +kubebuilder:validation:Optional - alarms?: [...null | string] @go(Alarms,[]*string) - - // +kubebuilder:validation:Optional - cpuThreshold?: null | float64 @go(CPUThreshold,*float64) - - // +kubebuilder:validation:Optional - ignoreMetricsTime?: null | float64 @go(IgnoreMetricsTime,*float64) - - // +kubebuilder:validation:Optional - instanceCount?: null | float64 @go(InstanceCount,*float64) - - // +kubebuilder:validation:Optional - loadThreshold?: null | float64 @go(LoadThreshold,*float64) - - // +kubebuilder:validation:Optional - memoryThreshold?: null | float64 @go(MemoryThreshold,*float64) - - // +kubebuilder:validation:Optional - thresholdsWaitTime?: null | float64 @go(ThresholdsWaitTime,*float64) -} - -#StaticWebLayerObservation: { - // The Amazon Resource Name(ARN) of the layer. - arn?: null | string @go(Arn,*string) - - // Whether to automatically assign an elastic IP address to the layer's instances. - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - autoHealing?: null | bool @go(AutoHealing,*bool) - cloudwatchConfiguration?: [...#StaticWebLayerCloudwatchConfigurationObservation] @go(CloudwatchConfiguration,[]StaticWebLayerCloudwatchConfigurationObservation) - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - customJson?: null | string @go(CustomJSON,*string) - - // Ids for a set of security groups to apply to the layer's instances. - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - ebsVolume?: [...#StaticWebLayerEBSVolumeObservation] @go(EBSVolume,[]StaticWebLayerEBSVolumeObservation) - - // Name of an Elastic Load Balancer to attach to this layer - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // The id of the layer. - id?: null | string @go(ID,*string) - - // Whether to install OS and package updates on each instance when it boots. - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - loadBasedAutoScaling?: [...#StaticWebLayerLoadBasedAutoScalingObservation] @go(LoadBasedAutoScaling,[]StaticWebLayerLoadBasedAutoScalingObservation) - - // A human-readable name for the layer. - name?: null | string @go(Name,*string) - - // ID of the stack the layer will belong to. - stackId?: null | string @go(StackID,*string) - - // Names of a set of system packages to install on the layer's instances. - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Whether to use EBS-optimized instances. - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -#StaticWebLayerParameters: { - // Whether to automatically assign an elastic IP address to the layer's instances. - // +kubebuilder:validation:Optional - autoAssignElasticIps?: null | bool @go(AutoAssignElasticIps,*bool) - - // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances. - // +kubebuilder:validation:Optional - autoAssignPublicIps?: null | bool @go(AutoAssignPublicIps,*bool) - - // Whether to enable auto-healing for the layer. - // +kubebuilder:validation:Optional - autoHealing?: null | bool @go(AutoHealing,*bool) - - // +kubebuilder:validation:Optional - cloudwatchConfiguration?: [...#StaticWebLayerCloudwatchConfigurationParameters] @go(CloudwatchConfiguration,[]StaticWebLayerCloudwatchConfigurationParameters) - - // +kubebuilder:validation:Optional - customConfigureRecipes?: [...null | string] @go(CustomConfigureRecipes,[]*string) - - // +kubebuilder:validation:Optional - customDeployRecipes?: [...null | string] @go(CustomDeployRecipes,[]*string) - - // The ARN of an IAM profile that will be used for the layer's instances. - // +kubebuilder:validation:Optional - customInstanceProfileArn?: null | string @go(CustomInstanceProfileArn,*string) - - // +kubebuilder:validation:Optional - customJson?: null | string @go(CustomJSON,*string) - - // References to SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdRefs?: [...v1.#Reference] @go(CustomSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds. - // +kubebuilder:validation:Optional - customSecurityGroupIdSelector?: null | v1.#Selector @go(CustomSecurityGroupIDSelector,*v1.Selector) - - // Ids for a set of security groups to apply to the layer's instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector - // +kubebuilder:validation:Optional - customSecurityGroupIds?: [...null | string] @go(CustomSecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - customSetupRecipes?: [...null | string] @go(CustomSetupRecipes,[]*string) - - // +kubebuilder:validation:Optional - customShutdownRecipes?: [...null | string] @go(CustomShutdownRecipes,[]*string) - - // +kubebuilder:validation:Optional - customUndeployRecipes?: [...null | string] @go(CustomUndeployRecipes,[]*string) - - // Whether to enable Elastic Load Balancing connection draining. - // +kubebuilder:validation:Optional - drainElbOnShutdown?: null | bool @go(DrainELBOnShutdown,*bool) - - // ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances. - // +kubebuilder:validation:Optional - ebsVolume?: [...#StaticWebLayerEBSVolumeParameters] @go(EBSVolume,[]StaticWebLayerEBSVolumeParameters) - - // Name of an Elastic Load Balancer to attach to this layer - // +kubebuilder:validation:Optional - elasticLoadBalancer?: null | string @go(ElasticLoadBalancer,*string) - - // Whether to install OS and package updates on each instance when it boots. - // +kubebuilder:validation:Optional - installUpdatesOnBoot?: null | bool @go(InstallUpdatesOnBoot,*bool) - - // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event. - // +kubebuilder:validation:Optional - instanceShutdownTimeout?: null | float64 @go(InstanceShutdownTimeout,*float64) - - // +kubebuilder:validation:Optional - loadBasedAutoScaling?: [...#StaticWebLayerLoadBasedAutoScalingParameters] @go(LoadBasedAutoScaling,[]StaticWebLayerLoadBasedAutoScalingParameters) - - // A human-readable name for the layer. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // ID of the stack the layer will belong to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - stackId?: null | string @go(StackID,*string) - - // Reference to a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdRef?: null | v1.#Reference @go(StackIDRef,*v1.Reference) - - // Selector for a Stack in opsworks to populate stackId. - // +kubebuilder:validation:Optional - stackIdSelector?: null | v1.#Selector @go(StackIDSelector,*v1.Selector) - - // Names of a set of system packages to install on the layer's instances. - // +kubebuilder:validation:Optional - systemPackages?: [...null | string] @go(SystemPackages,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Whether to use EBS-optimized instances. - // +kubebuilder:validation:Optional - useEbsOptimizedInstances?: null | bool @go(UseEBSOptimizedInstances,*bool) -} - -// StaticWebLayerSpec defines the desired state of StaticWebLayer -#StaticWebLayerSpec: { - v1.#ResourceSpec - forProvider: #StaticWebLayerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StaticWebLayerInitParameters @go(InitProvider) -} - -// StaticWebLayerStatus defines the observed state of StaticWebLayer. -#StaticWebLayerStatus: { - v1.#ResourceStatus - atProvider?: #StaticWebLayerObservation @go(AtProvider) -} - -// StaticWebLayer is the Schema for the StaticWebLayers API. Provides an OpsWorks static web server layer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#StaticWebLayer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #StaticWebLayerSpec @go(Spec) - status?: #StaticWebLayerStatus @go(Status) -} - -// StaticWebLayerList contains a list of StaticWebLayers -#StaticWebLayerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#StaticWebLayer] @go(Items,[]StaticWebLayer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_userprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_userprofile_types_go_gen.cue deleted file mode 100644 index 553321b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/opsworks/v1beta1/zz_userprofile_types_go_gen.cue +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/opsworks/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserProfileInitParameters: { - // Whether users can specify their own SSH public key through the My Settings page - allowSelfManagement?: null | bool @go(AllowSelfManagement,*bool) - - // The users public key - sshPublicKey?: null | string @go(SSHPublicKey,*string) - - // The ssh username, with witch this user wants to log in - sshUsername?: null | string @go(SSHUsername,*string) -} - -#UserProfileObservation: { - // Whether users can specify their own SSH public key through the My Settings page - allowSelfManagement?: null | bool @go(AllowSelfManagement,*bool) - - // Same value as user_arn - id?: null | string @go(ID,*string) - - // The users public key - sshPublicKey?: null | string @go(SSHPublicKey,*string) - - // The ssh username, with witch this user wants to log in - sshUsername?: null | string @go(SSHUsername,*string) - - // The user's IAM ARN - userArn?: null | string @go(UserArn,*string) -} - -#UserProfileParameters: { - // Whether users can specify their own SSH public key through the My Settings page - // +kubebuilder:validation:Optional - allowSelfManagement?: null | bool @go(AllowSelfManagement,*bool) - - // The users public key - // +kubebuilder:validation:Optional - sshPublicKey?: null | string @go(SSHPublicKey,*string) - - // The ssh username, with witch this user wants to log in - // +kubebuilder:validation:Optional - sshUsername?: null | string @go(SSHUsername,*string) - - // The user's IAM ARN - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.User - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - userArn?: null | string @go(UserArn,*string) - - // Reference to a User in iam to populate userArn. - // +kubebuilder:validation:Optional - userArnRef?: null | v1.#Reference @go(UserArnRef,*v1.Reference) - - // Selector for a User in iam to populate userArn. - // +kubebuilder:validation:Optional - userArnSelector?: null | v1.#Selector @go(UserArnSelector,*v1.Selector) -} - -// UserProfileSpec defines the desired state of UserProfile -#UserProfileSpec: { - v1.#ResourceSpec - forProvider: #UserProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserProfileInitParameters @go(InitProvider) -} - -// UserProfileStatus defines the observed state of UserProfile. -#UserProfileStatus: { - v1.#ResourceStatus - atProvider?: #UserProfileObservation @go(AtProvider) -} - -// UserProfile is the Schema for the UserProfiles API. Provides an OpsWorks User Profile resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.sshUsername) || (has(self.initProvider) && has(self.initProvider.sshUsername))",message="spec.forProvider.sshUsername is a required parameter" - spec: #UserProfileSpec @go(Spec) - status?: #UserProfileStatus @go(Status) -} - -// UserProfileList contains a list of UserProfiles -#UserProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserProfile] @go(Items,[]UserProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_account_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_account_types_go_gen.cue deleted file mode 100644 index 03651a5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_account_types_go_gen.cue +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/organizations/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountInitParameters: { - // If true, a deletion event will close the account. Otherwise, it will only remove from the organization. This is not supported for GovCloud accounts. - closeOnDeletion?: null | bool @go(CloseOnDeletion,*bool) - - // Whether to also create a GovCloud account. The GovCloud account is tied to the main (commercial) account this resource creates. If true, the GovCloud account ID is available in the govcloud_id attribute. - createGovcloud?: null | bool @go(CreateGovcloud,*bool) - - // Email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account. - email?: null | string @go(Email,*string) - - // If set to ALLOW, the new account enables IAM users and roles to access account billing information if they have the required permissions. If set to DENY, then only the root user (and no roles) of the new account can access account billing information. If this is unset, the AWS API will default this to ALLOW. If the resource is created and this option is changed, it will try to recreate the account. - iamUserAccessToBilling?: null | string @go(IAMUserAccessToBilling,*string) - - // Friendly name for the member account. - name?: null | string @go(Name,*string) - - // Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection. - parentId?: null | string @go(ParentID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AccountObservation: { - // The ARN for this account. - arn?: null | string @go(Arn,*string) - - // If true, a deletion event will close the account. Otherwise, it will only remove from the organization. This is not supported for GovCloud accounts. - closeOnDeletion?: null | bool @go(CloseOnDeletion,*bool) - - // Whether to also create a GovCloud account. The GovCloud account is tied to the main (commercial) account this resource creates. If true, the GovCloud account ID is available in the govcloud_id attribute. - createGovcloud?: null | bool @go(CreateGovcloud,*bool) - - // Email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account. - email?: null | string @go(Email,*string) - - // ID for a GovCloud account created with the account. - govcloudId?: null | string @go(GovcloudID,*string) - - // If set to ALLOW, the new account enables IAM users and roles to access account billing information if they have the required permissions. If set to DENY, then only the root user (and no roles) of the new account can access account billing information. If this is unset, the AWS API will default this to ALLOW. If the resource is created and this option is changed, it will try to recreate the account. - iamUserAccessToBilling?: null | string @go(IAMUserAccessToBilling,*string) - - // The AWS account id - id?: null | string @go(ID,*string) - joinedMethod?: null | string @go(JoinedMethod,*string) - joinedTimestamp?: null | string @go(JoinedTimestamp,*string) - - // Friendly name for the member account. - name?: null | string @go(Name,*string) - - // Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection. - parentId?: null | string @go(ParentID,*string) - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#AccountParameters: { - // If true, a deletion event will close the account. Otherwise, it will only remove from the organization. This is not supported for GovCloud accounts. - // +kubebuilder:validation:Optional - closeOnDeletion?: null | bool @go(CloseOnDeletion,*bool) - - // Whether to also create a GovCloud account. The GovCloud account is tied to the main (commercial) account this resource creates. If true, the GovCloud account ID is available in the govcloud_id attribute. - // +kubebuilder:validation:Optional - createGovcloud?: null | bool @go(CreateGovcloud,*bool) - - // Email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account. - // +kubebuilder:validation:Optional - email?: null | string @go(Email,*string) - - // If set to ALLOW, the new account enables IAM users and roles to access account billing information if they have the required permissions. If set to DENY, then only the root user (and no roles) of the new account can access account billing information. If this is unset, the AWS API will default this to ALLOW. If the resource is created and this option is changed, it will try to recreate the account. - // +kubebuilder:validation:Optional - iamUserAccessToBilling?: null | string @go(IAMUserAccessToBilling,*string) - - // Friendly name for the member account. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection. - // +kubebuilder:validation:Optional - parentId?: null | string @go(ParentID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// AccountSpec defines the desired state of Account -#AccountSpec: { - v1.#ResourceSpec - forProvider: #AccountParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccountInitParameters @go(InitProvider) -} - -// AccountStatus defines the observed state of Account. -#AccountStatus: { - v1.#ResourceStatus - atProvider?: #AccountObservation @go(AtProvider) -} - -// Account is the Schema for the Accounts API. Provides a resource to create a member account in the current AWS Organization. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Account: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.email) || (has(self.initProvider) && has(self.initProvider.email))",message="spec.forProvider.email is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #AccountSpec @go(Spec) - status?: #AccountStatus @go(Status) -} - -// AccountList contains a list of Accounts -#AccountList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Account] @go(Items,[]Account) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_delegatedadministrator_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_delegatedadministrator_types_go_gen.cue deleted file mode 100644 index cb7f4b2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_delegatedadministrator_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/organizations/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DelegatedAdministratorInitParameters: { - // The service principal of the AWS service for which you want to make the member account a delegated administrator. - servicePrincipal?: null | string @go(ServicePrincipal,*string) -} - -#DelegatedAdministratorObservation: { - // The account ID number of the member account in the organization to register as a delegated administrator. - accountId?: null | string @go(AccountID,*string) - - // The Amazon Resource Name (ARN) of the delegated administrator's account. - arn?: null | string @go(Arn,*string) - - // The date when the account was made a delegated administrator. - delegationEnabledDate?: null | string @go(DelegationEnabledDate,*string) - - // The email address that is associated with the delegated administrator's AWS account. - email?: null | string @go(Email,*string) - - // The unique identifier (ID) of the delegated administrator. - id?: null | string @go(ID,*string) - - // The method by which the delegated administrator's account joined the organization. - joinedMethod?: null | string @go(JoinedMethod,*string) - - // The date when the delegated administrator's account became a part of the organization. - joinedTimestamp?: null | string @go(JoinedTimestamp,*string) - - // The friendly name of the delegated administrator's account. - name?: null | string @go(Name,*string) - - // The service principal of the AWS service for which you want to make the member account a delegated administrator. - servicePrincipal?: null | string @go(ServicePrincipal,*string) - - // The status of the delegated administrator's account in the organization. - status?: null | string @go(Status,*string) -} - -#DelegatedAdministratorParameters: { - // The account ID number of the member account in the organization to register as a delegated administrator. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/organizations/v1beta1.Account - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // Reference to a Account in organizations to populate accountId. - // +kubebuilder:validation:Optional - accountIdRef?: null | v1.#Reference @go(AccountIDRef,*v1.Reference) - - // Selector for a Account in organizations to populate accountId. - // +kubebuilder:validation:Optional - accountIdSelector?: null | v1.#Selector @go(AccountIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The service principal of the AWS service for which you want to make the member account a delegated administrator. - // +kubebuilder:validation:Optional - servicePrincipal?: null | string @go(ServicePrincipal,*string) -} - -// DelegatedAdministratorSpec defines the desired state of DelegatedAdministrator -#DelegatedAdministratorSpec: { - v1.#ResourceSpec - forProvider: #DelegatedAdministratorParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DelegatedAdministratorInitParameters @go(InitProvider) -} - -// DelegatedAdministratorStatus defines the observed state of DelegatedAdministrator. -#DelegatedAdministratorStatus: { - v1.#ResourceStatus - atProvider?: #DelegatedAdministratorObservation @go(AtProvider) -} - -// DelegatedAdministrator is the Schema for the DelegatedAdministrators API. Provides a resource to manage an AWS Organizations Delegated Administrator. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DelegatedAdministrator: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.servicePrincipal) || (has(self.initProvider) && has(self.initProvider.servicePrincipal))",message="spec.forProvider.servicePrincipal is a required parameter" - spec: #DelegatedAdministratorSpec @go(Spec) - status?: #DelegatedAdministratorStatus @go(Status) -} - -// DelegatedAdministratorList contains a list of DelegatedAdministrators -#DelegatedAdministratorList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DelegatedAdministrator] @go(Items,[]DelegatedAdministrator) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 17205b3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/organizations/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=organizations.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "organizations.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_organization_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_organization_types_go_gen.cue deleted file mode 100644 index 9f0470d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_organization_types_go_gen.cue +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/organizations/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountsInitParameters: { -} - -#AccountsObservation: { - // ARN of the account - arn?: null | string @go(Arn,*string) - - // Email of the account - email?: null | string @go(Email,*string) - - // Identifier of the account - id?: null | string @go(ID,*string) - - // Name of the account - name?: null | string @go(Name,*string) - - // Current status of the account - status?: null | string @go(Status,*string) -} - -#AccountsParameters: { -} - -#NonMasterAccountsInitParameters: { -} - -#NonMasterAccountsObservation: { - // ARN of the account - arn?: null | string @go(Arn,*string) - - // Email of the account - email?: null | string @go(Email,*string) - - // Identifier of the account - id?: null | string @go(ID,*string) - - // Name of the account - name?: null | string @go(Name,*string) - - // Current status of the account - status?: null | string @go(Status,*string) -} - -#NonMasterAccountsParameters: { -} - -#OrganizationInitParameters: { - // List of AWS service principal names for which you want to enable integration with your organization. This is typically in the form of a URL, such as service-abbreviation.amazonaws.com. Organization must have feature_set set to ALL. Some services do not support enablement via this endpoint, see warning in aws docs. - awsServiceAccessPrincipals?: [...null | string] @go(AwsServiceAccessPrincipals,[]*string) - - // List of Organizations policy types to enable in the Organization Root. Organization must have feature_set set to ALL. For additional information about valid policy types (e.g., AISERVICES_OPT_OUT_POLICY, BACKUP_POLICY, SERVICE_CONTROL_POLICY, and TAG_POLICY), see the AWS Organizations API Reference. - enabledPolicyTypes?: [...null | string] @go(EnabledPolicyTypes,[]*string) - - // Specify "ALL" (default) or "CONSOLIDATED_BILLING". - featureSet?: null | string @go(FeatureSet,*string) -} - -#OrganizationObservation: { - // List of organization accounts including the master account. For a list excluding the master account, see the non_master_accounts attribute. All elements have these attributes: - accounts?: [...#AccountsObservation] @go(Accounts,[]AccountsObservation) - - // ARN of the account - arn?: null | string @go(Arn,*string) - - // List of AWS service principal names for which you want to enable integration with your organization. This is typically in the form of a URL, such as service-abbreviation.amazonaws.com. Organization must have feature_set set to ALL. Some services do not support enablement via this endpoint, see warning in aws docs. - awsServiceAccessPrincipals?: [...null | string] @go(AwsServiceAccessPrincipals,[]*string) - - // List of Organizations policy types to enable in the Organization Root. Organization must have feature_set set to ALL. For additional information about valid policy types (e.g., AISERVICES_OPT_OUT_POLICY, BACKUP_POLICY, SERVICE_CONTROL_POLICY, and TAG_POLICY), see the AWS Organizations API Reference. - enabledPolicyTypes?: [...null | string] @go(EnabledPolicyTypes,[]*string) - - // Specify "ALL" (default) or "CONSOLIDATED_BILLING". - featureSet?: null | string @go(FeatureSet,*string) - - // Identifier of the account - id?: null | string @go(ID,*string) - - // ARN of the master account - masterAccountArn?: null | string @go(MasterAccountArn,*string) - - // Email address of the master account - masterAccountEmail?: null | string @go(MasterAccountEmail,*string) - - // Identifier of the master account - masterAccountId?: null | string @go(MasterAccountID,*string) - - // List of organization accounts excluding the master account. For a list including the master account, see the accounts attribute. All elements have these attributes: - nonMasterAccounts?: [...#NonMasterAccountsObservation] @go(NonMasterAccounts,[]NonMasterAccountsObservation) - - // List of organization roots. All elements have these attributes: - roots?: [...#RootsObservation] @go(Roots,[]RootsObservation) -} - -#OrganizationParameters: { - // List of AWS service principal names for which you want to enable integration with your organization. This is typically in the form of a URL, such as service-abbreviation.amazonaws.com. Organization must have feature_set set to ALL. Some services do not support enablement via this endpoint, see warning in aws docs. - // +kubebuilder:validation:Optional - awsServiceAccessPrincipals?: [...null | string] @go(AwsServiceAccessPrincipals,[]*string) - - // List of Organizations policy types to enable in the Organization Root. Organization must have feature_set set to ALL. For additional information about valid policy types (e.g., AISERVICES_OPT_OUT_POLICY, BACKUP_POLICY, SERVICE_CONTROL_POLICY, and TAG_POLICY), see the AWS Organizations API Reference. - // +kubebuilder:validation:Optional - enabledPolicyTypes?: [...null | string] @go(EnabledPolicyTypes,[]*string) - - // Specify "ALL" (default) or "CONSOLIDATED_BILLING". - // +kubebuilder:validation:Optional - featureSet?: null | string @go(FeatureSet,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#PolicyTypesInitParameters: { -} - -#PolicyTypesObservation: { - // Current status of the account - status?: null | string @go(Status,*string) - type?: null | string @go(Type,*string) -} - -#PolicyTypesParameters: { -} - -#RootsInitParameters: { -} - -#RootsObservation: { - // ARN of the account - arn?: null | string @go(Arn,*string) - - // Identifier of the account - id?: null | string @go(ID,*string) - - // Name of the account - name?: null | string @go(Name,*string) - - // List of policy types enabled for this root. All elements have these attributes: - policyTypes?: [...#PolicyTypesObservation] @go(PolicyTypes,[]PolicyTypesObservation) -} - -#RootsParameters: { -} - -// OrganizationSpec defines the desired state of Organization -#OrganizationSpec: { - v1.#ResourceSpec - forProvider: #OrganizationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #OrganizationInitParameters @go(InitProvider) -} - -// OrganizationStatus defines the observed state of Organization. -#OrganizationStatus: { - v1.#ResourceStatus - atProvider?: #OrganizationObservation @go(AtProvider) -} - -// Organization is the Schema for the Organizations API. Provides a resource to create an organization. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Organization: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #OrganizationSpec @go(Spec) - status?: #OrganizationStatus @go(Status) -} - -// OrganizationList contains a list of Organizations -#OrganizationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Organization] @go(Items,[]Organization) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_organizationalunit_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_organizationalunit_types_go_gen.cue deleted file mode 100644 index a082a4c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_organizationalunit_types_go_gen.cue +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/organizations/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#OrganizationalUnitAccountsInitParameters: { -} - -#OrganizationalUnitAccountsObservation: { - // ARN of the account - arn?: null | string @go(Arn,*string) - - // Email of the account - email?: null | string @go(Email,*string) - - // Identifier of the account - id?: null | string @go(ID,*string) - - // The name for the organizational unit - name?: null | string @go(Name,*string) -} - -#OrganizationalUnitAccountsParameters: { -} - -#OrganizationalUnitInitParameters: { - // The name for the organizational unit - name?: null | string @go(Name,*string) - - // ID of the parent organizational unit, which may be the root - parentId?: null | string @go(ParentID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#OrganizationalUnitObservation: { - // List of child accounts for this Organizational Unit. Does not return account information for child Organizational Units. All elements have these attributes: - accounts?: [...#OrganizationalUnitAccountsObservation] @go(Accounts,[]OrganizationalUnitAccountsObservation) - - // ARN of the account - arn?: null | string @go(Arn,*string) - - // Identifier of the account - id?: null | string @go(ID,*string) - - // The name for the organizational unit - name?: null | string @go(Name,*string) - - // ID of the parent organizational unit, which may be the root - parentId?: null | string @go(ParentID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#OrganizationalUnitParameters: { - // The name for the organizational unit - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // ID of the parent organizational unit, which may be the root - // +kubebuilder:validation:Optional - parentId?: null | string @go(ParentID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// OrganizationalUnitSpec defines the desired state of OrganizationalUnit -#OrganizationalUnitSpec: { - v1.#ResourceSpec - forProvider: #OrganizationalUnitParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #OrganizationalUnitInitParameters @go(InitProvider) -} - -// OrganizationalUnitStatus defines the observed state of OrganizationalUnit. -#OrganizationalUnitStatus: { - v1.#ResourceStatus - atProvider?: #OrganizationalUnitObservation @go(AtProvider) -} - -// OrganizationalUnit is the Schema for the OrganizationalUnits API. Provides a resource to create an organizational unit. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#OrganizationalUnit: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.parentId) || (has(self.initProvider) && has(self.initProvider.parentId))",message="spec.forProvider.parentId is a required parameter" - spec: #OrganizationalUnitSpec @go(Spec) - status?: #OrganizationalUnitStatus @go(Status) -} - -// OrganizationalUnitList contains a list of OrganizationalUnits -#OrganizationalUnitList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#OrganizationalUnit] @go(Items,[]OrganizationalUnit) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_policy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_policy_types_go_gen.cue deleted file mode 100644 index d85c0cb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_policy_types_go_gen.cue +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/organizations/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PolicyInitParameters: { - // The policy content to add to the new policy. For example, if you create a service control policy (SCP), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see the Service Control Policy Syntax documentation and for more information on the Tag Policy syntax, see the Tag Policy Syntax documentation. - content?: null | string @go(Content,*string) - - // A description to assign to the policy. - description?: null | string @go(Description,*string) - - // The friendly name to assign to the policy. - name?: null | string @go(Name,*string) - - // If set to true, destroy will not delete the policy and instead just remove the resource from state. This can be useful in situations where the policies (and the associated attachment) must be preserved to meet the AWS minimum requirement of 1 attached policy. - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of policy to create. Valid values are AISERVICES_OPT_OUT_POLICY, BACKUP_POLICY, SERVICE_CONTROL_POLICY (SCP), and TAG_POLICY. Defaults to SERVICE_CONTROL_POLICY. - type?: null | string @go(Type,*string) -} - -#PolicyObservation: { - // Amazon Resource Name (ARN) of the policy. - arn?: null | string @go(Arn,*string) - - // The policy content to add to the new policy. For example, if you create a service control policy (SCP), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see the Service Control Policy Syntax documentation and for more information on the Tag Policy syntax, see the Tag Policy Syntax documentation. - content?: null | string @go(Content,*string) - - // A description to assign to the policy. - description?: null | string @go(Description,*string) - - // The unique identifier (ID) of the policy. - id?: null | string @go(ID,*string) - - // The friendly name to assign to the policy. - name?: null | string @go(Name,*string) - - // If set to true, destroy will not delete the policy and instead just remove the resource from state. This can be useful in situations where the policies (and the associated attachment) must be preserved to meet the AWS minimum requirement of 1 attached policy. - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The type of policy to create. Valid values are AISERVICES_OPT_OUT_POLICY, BACKUP_POLICY, SERVICE_CONTROL_POLICY (SCP), and TAG_POLICY. Defaults to SERVICE_CONTROL_POLICY. - type?: null | string @go(Type,*string) -} - -#PolicyParameters: { - // The policy content to add to the new policy. For example, if you create a service control policy (SCP), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see the Service Control Policy Syntax documentation and for more information on the Tag Policy syntax, see the Tag Policy Syntax documentation. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // A description to assign to the policy. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The friendly name to assign to the policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // If set to true, destroy will not delete the policy and instead just remove the resource from state. This can be useful in situations where the policies (and the associated attachment) must be preserved to meet the AWS minimum requirement of 1 attached policy. - // +kubebuilder:validation:Optional - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of policy to create. Valid values are AISERVICES_OPT_OUT_POLICY, BACKUP_POLICY, SERVICE_CONTROL_POLICY (SCP), and TAG_POLICY. Defaults to SERVICE_CONTROL_POLICY. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// PolicySpec defines the desired state of Policy -#PolicySpec: { - v1.#ResourceSpec - forProvider: #PolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PolicyInitParameters @go(InitProvider) -} - -// PolicyStatus defines the observed state of Policy. -#PolicyStatus: { - v1.#ResourceStatus - atProvider?: #PolicyObservation @go(AtProvider) -} - -// Policy is the Schema for the Policys API. Provides a resource to manage an AWS Organizations policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Policy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.content) || (has(self.initProvider) && has(self.initProvider.content))",message="spec.forProvider.content is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #PolicySpec @go(Spec) - status?: #PolicyStatus @go(Status) -} - -// PolicyList contains a list of Policys -#PolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Policy] @go(Items,[]Policy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_policyattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_policyattachment_types_go_gen.cue deleted file mode 100644 index fefae62..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/organizations/v1beta1/zz_policyattachment_types_go_gen.cue +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/organizations/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PolicyAttachmentInitParameters: { - // If set to true, destroy will not detach the policy and instead just remove the resource from state. This can be useful in situations where the attachment must be preserved to meet the AWS minimum requirement of 1 attached policy. - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // The unique identifier (ID) of the root, organizational unit, or account number that you want to attach the policy to. - targetId?: null | string @go(TargetID,*string) -} - -#PolicyAttachmentObservation: { - id?: null | string @go(ID,*string) - - // The unique identifier (ID) of the policy that you want to attach to the target. - policyId?: null | string @go(PolicyID,*string) - - // If set to true, destroy will not detach the policy and instead just remove the resource from state. This can be useful in situations where the attachment must be preserved to meet the AWS minimum requirement of 1 attached policy. - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // The unique identifier (ID) of the root, organizational unit, or account number that you want to attach the policy to. - targetId?: null | string @go(TargetID,*string) -} - -#PolicyAttachmentParameters: { - // The unique identifier (ID) of the policy that you want to attach to the target. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/organizations/v1beta1.Policy - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - policyId?: null | string @go(PolicyID,*string) - - // Reference to a Policy in organizations to populate policyId. - // +kubebuilder:validation:Optional - policyIdRef?: null | v1.#Reference @go(PolicyIDRef,*v1.Reference) - - // Selector for a Policy in organizations to populate policyId. - // +kubebuilder:validation:Optional - policyIdSelector?: null | v1.#Selector @go(PolicyIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // If set to true, destroy will not detach the policy and instead just remove the resource from state. This can be useful in situations where the attachment must be preserved to meet the AWS minimum requirement of 1 attached policy. - // +kubebuilder:validation:Optional - skipDestroy?: null | bool @go(SkipDestroy,*bool) - - // The unique identifier (ID) of the root, organizational unit, or account number that you want to attach the policy to. - // +kubebuilder:validation:Optional - targetId?: null | string @go(TargetID,*string) -} - -// PolicyAttachmentSpec defines the desired state of PolicyAttachment -#PolicyAttachmentSpec: { - v1.#ResourceSpec - forProvider: #PolicyAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PolicyAttachmentInitParameters @go(InitProvider) -} - -// PolicyAttachmentStatus defines the observed state of PolicyAttachment. -#PolicyAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #PolicyAttachmentObservation @go(AtProvider) -} - -// PolicyAttachment is the Schema for the PolicyAttachments API. Provides a resource to attach an AWS Organizations policy to an organization account, root, or unit. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PolicyAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targetId) || (has(self.initProvider) && has(self.initProvider.targetId))",message="spec.forProvider.targetId is a required parameter" - spec: #PolicyAttachmentSpec @go(Spec) - status?: #PolicyAttachmentStatus @go(Status) -} - -// PolicyAttachmentList contains a list of PolicyAttachments -#PolicyAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PolicyAttachment] @go(Items,[]PolicyAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/pinpoint/v1beta1/zz_app_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/pinpoint/v1beta1/zz_app_types_go_gen.cue deleted file mode 100644 index a6a5ead..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/pinpoint/v1beta1/zz_app_types_go_gen.cue +++ /dev/null @@ -1,234 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/pinpoint/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AppInitParameters: { - // Specifies settings for invoking an AWS Lambda function that customizes a segment for a campaign - campaignHook?: [...#CampaignHookInitParameters] @go(CampaignHook,[]CampaignHookInitParameters) - - // The default campaign limits for the app. These limits apply to each campaign for the app, unless the campaign overrides the default with limits of its own - limits?: [...#LimitsInitParameters] @go(Limits,[]LimitsInitParameters) - - // The application name - name?: null | string @go(Name,*string) - - // The default quiet time for the app. Each campaign for this app sends no messages during this time unless the campaign overrides the default with a quiet time of its own - quietTime?: [...#QuietTimeInitParameters] @go(QuietTime,[]QuietTimeInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AppObservation: { - // The Application ID of the Pinpoint App. - applicationId?: null | string @go(ApplicationID,*string) - - // Amazon Resource Name (ARN) of the PinPoint Application - arn?: null | string @go(Arn,*string) - - // Specifies settings for invoking an AWS Lambda function that customizes a segment for a campaign - campaignHook?: [...#CampaignHookObservation] @go(CampaignHook,[]CampaignHookObservation) - id?: null | string @go(ID,*string) - - // The default campaign limits for the app. These limits apply to each campaign for the app, unless the campaign overrides the default with limits of its own - limits?: [...#LimitsObservation] @go(Limits,[]LimitsObservation) - - // The application name - name?: null | string @go(Name,*string) - - // The default quiet time for the app. Each campaign for this app sends no messages during this time unless the campaign overrides the default with a quiet time of its own - quietTime?: [...#QuietTimeObservation] @go(QuietTime,[]QuietTimeObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#AppParameters: { - // Specifies settings for invoking an AWS Lambda function that customizes a segment for a campaign - // +kubebuilder:validation:Optional - campaignHook?: [...#CampaignHookParameters] @go(CampaignHook,[]CampaignHookParameters) - - // The default campaign limits for the app. These limits apply to each campaign for the app, unless the campaign overrides the default with limits of its own - // +kubebuilder:validation:Optional - limits?: [...#LimitsParameters] @go(Limits,[]LimitsParameters) - - // The application name - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The default quiet time for the app. Each campaign for this app sends no messages during this time unless the campaign overrides the default with a quiet time of its own - // +kubebuilder:validation:Optional - quietTime?: [...#QuietTimeParameters] @go(QuietTime,[]QuietTimeParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CampaignHookInitParameters: { - // Lambda function name or ARN to be called for delivery. Conflicts with web_url - lambdaFunctionName?: null | string @go(LambdaFunctionName,*string) - - // What mode Lambda should be invoked in. Valid values for this parameter are DELIVERY, FILTER. - mode?: null | string @go(Mode,*string) - - // Web URL to call for hook. If the URL has authentication specified it will be added as authentication to the request. Conflicts with lambda_function_name - webUrl?: null | string @go(WebURL,*string) -} - -#CampaignHookObservation: { - // Lambda function name or ARN to be called for delivery. Conflicts with web_url - lambdaFunctionName?: null | string @go(LambdaFunctionName,*string) - - // What mode Lambda should be invoked in. Valid values for this parameter are DELIVERY, FILTER. - mode?: null | string @go(Mode,*string) - - // Web URL to call for hook. If the URL has authentication specified it will be added as authentication to the request. Conflicts with lambda_function_name - webUrl?: null | string @go(WebURL,*string) -} - -#CampaignHookParameters: { - // Lambda function name or ARN to be called for delivery. Conflicts with web_url - // +kubebuilder:validation:Optional - lambdaFunctionName?: null | string @go(LambdaFunctionName,*string) - - // What mode Lambda should be invoked in. Valid values for this parameter are DELIVERY, FILTER. - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) - - // Web URL to call for hook. If the URL has authentication specified it will be added as authentication to the request. Conflicts with lambda_function_name - // +kubebuilder:validation:Optional - webUrl?: null | string @go(WebURL,*string) -} - -#LimitsInitParameters: { - // The maximum number of messages that the campaign can send daily. - daily?: null | float64 @go(Daily,*float64) - - // The length of time (in seconds) that the campaign can run before it ends and message deliveries stop. This duration begins at the scheduled start time for the campaign. The minimum value is 60. - maximumDuration?: null | float64 @go(MaximumDuration,*float64) - - // The number of messages that the campaign can send per second. The minimum value is 50, and the maximum is 20000. - messagesPerSecond?: null | float64 @go(MessagesPerSecond,*float64) - - // The maximum total number of messages that the campaign can send. - total?: null | float64 @go(Total,*float64) -} - -#LimitsObservation: { - // The maximum number of messages that the campaign can send daily. - daily?: null | float64 @go(Daily,*float64) - - // The length of time (in seconds) that the campaign can run before it ends and message deliveries stop. This duration begins at the scheduled start time for the campaign. The minimum value is 60. - maximumDuration?: null | float64 @go(MaximumDuration,*float64) - - // The number of messages that the campaign can send per second. The minimum value is 50, and the maximum is 20000. - messagesPerSecond?: null | float64 @go(MessagesPerSecond,*float64) - - // The maximum total number of messages that the campaign can send. - total?: null | float64 @go(Total,*float64) -} - -#LimitsParameters: { - // The maximum number of messages that the campaign can send daily. - // +kubebuilder:validation:Optional - daily?: null | float64 @go(Daily,*float64) - - // The length of time (in seconds) that the campaign can run before it ends and message deliveries stop. This duration begins at the scheduled start time for the campaign. The minimum value is 60. - // +kubebuilder:validation:Optional - maximumDuration?: null | float64 @go(MaximumDuration,*float64) - - // The number of messages that the campaign can send per second. The minimum value is 50, and the maximum is 20000. - // +kubebuilder:validation:Optional - messagesPerSecond?: null | float64 @go(MessagesPerSecond,*float64) - - // The maximum total number of messages that the campaign can send. - // +kubebuilder:validation:Optional - total?: null | float64 @go(Total,*float64) -} - -#QuietTimeInitParameters: { - // The default end time for quiet time in ISO 8601 format. Required if start is set - end?: null | string @go(End,*string) - - // The default start time for quiet time in ISO 8601 format. Required if end is set - start?: null | string @go(Start,*string) -} - -#QuietTimeObservation: { - // The default end time for quiet time in ISO 8601 format. Required if start is set - end?: null | string @go(End,*string) - - // The default start time for quiet time in ISO 8601 format. Required if end is set - start?: null | string @go(Start,*string) -} - -#QuietTimeParameters: { - // The default end time for quiet time in ISO 8601 format. Required if start is set - // +kubebuilder:validation:Optional - end?: null | string @go(End,*string) - - // The default start time for quiet time in ISO 8601 format. Required if end is set - // +kubebuilder:validation:Optional - start?: null | string @go(Start,*string) -} - -// AppSpec defines the desired state of App -#AppSpec: { - v1.#ResourceSpec - forProvider: #AppParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AppInitParameters @go(InitProvider) -} - -// AppStatus defines the observed state of App. -#AppStatus: { - v1.#ResourceStatus - atProvider?: #AppObservation @go(AtProvider) -} - -// App is the Schema for the Apps API. Provides a Pinpoint App resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#App: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AppSpec @go(Spec) - status?: #AppStatus @go(Status) -} - -// AppList contains a list of Apps -#AppList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#App] @go(Items,[]App) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/pinpoint/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/pinpoint/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 88823e4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/pinpoint/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/pinpoint/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=pinpoint.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "pinpoint.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/pinpoint/v1beta1/zz_smschannel_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/pinpoint/v1beta1/zz_smschannel_types_go_gen.cue deleted file mode 100644 index 2f7a0a8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/pinpoint/v1beta1/zz_smschannel_types_go_gen.cue +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/pinpoint/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SMSChannelInitParameters: { - // Whether the channel is enabled or disabled. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // Sender identifier of your messages. - senderId?: null | string @go(SenderID,*string) - - // The Short Code registered with the phone provider. - shortCode?: null | string @go(ShortCode,*string) -} - -#SMSChannelObservation: { - // The application ID. - applicationId?: null | string @go(ApplicationID,*string) - - // Whether the channel is enabled or disabled. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - id?: null | string @go(ID,*string) - - // Promotional messages per second that can be sent. - promotionalMessagesPerSecond?: null | float64 @go(PromotionalMessagesPerSecond,*float64) - - // Sender identifier of your messages. - senderId?: null | string @go(SenderID,*string) - - // The Short Code registered with the phone provider. - shortCode?: null | string @go(ShortCode,*string) - - // Transactional messages per second that can be sent. - transactionalMessagesPerSecond?: null | float64 @go(TransactionalMessagesPerSecond,*float64) -} - -#SMSChannelParameters: { - // The application ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/pinpoint/v1beta1.App - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("application_id",true) - // +kubebuilder:validation:Optional - applicationId?: null | string @go(ApplicationID,*string) - - // Reference to a App in pinpoint to populate applicationId. - // +kubebuilder:validation:Optional - applicationIdRef?: null | v1.#Reference @go(ApplicationIDRef,*v1.Reference) - - // Selector for a App in pinpoint to populate applicationId. - // +kubebuilder:validation:Optional - applicationIdSelector?: null | v1.#Selector @go(ApplicationIDSelector,*v1.Selector) - - // Whether the channel is enabled or disabled. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Sender identifier of your messages. - // +kubebuilder:validation:Optional - senderId?: null | string @go(SenderID,*string) - - // The Short Code registered with the phone provider. - // +kubebuilder:validation:Optional - shortCode?: null | string @go(ShortCode,*string) -} - -// SMSChannelSpec defines the desired state of SMSChannel -#SMSChannelSpec: { - v1.#ResourceSpec - forProvider: #SMSChannelParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SMSChannelInitParameters @go(InitProvider) -} - -// SMSChannelStatus defines the observed state of SMSChannel. -#SMSChannelStatus: { - v1.#ResourceStatus - atProvider?: #SMSChannelObservation @go(AtProvider) -} - -// SMSChannel is the Schema for the SMSChannels API. Provides a Pinpoint SMS Channel resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SMSChannel: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SMSChannelSpec @go(Spec) - status?: #SMSChannelStatus @go(Status) -} - -// SMSChannelList contains a list of SMSChannels -#SMSChannelList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SMSChannel] @go(Items,[]SMSChannel) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/qldb/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/qldb/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index dac1905..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/qldb/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/qldb/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=qldb.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "qldb.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/qldb/v1beta1/zz_ledger_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/qldb/v1beta1/zz_ledger_types_go_gen.cue deleted file mode 100644 index 553a405..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/qldb/v1beta1/zz_ledger_types_go_gen.cue +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/qldb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LedgerInitParameters: { - // The deletion protection for the QLDB Ledger instance. By default it is true. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // The permissions mode for the QLDB ledger instance. Specify either ALLOW_ALL or STANDARD. - permissionsMode?: null | string @go(PermissionsMode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#LedgerObservation: { - // The ARN of the QLDB Ledger - arn?: null | string @go(Arn,*string) - - // The deletion protection for the QLDB Ledger instance. By default it is true. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // The Name of the QLDB Ledger - id?: null | string @go(ID,*string) - - // The key in AWS Key Management Service (AWS KMS) to use for encryption of data at rest in the ledger. For more information, see the AWS documentation. Valid values are "AWS_OWNED_KMS_KEY" to use an AWS KMS key that is owned and managed by AWS on your behalf, or the ARN of a valid symmetric customer managed KMS key. - kmsKey?: null | string @go(KMSKey,*string) - - // The permissions mode for the QLDB ledger instance. Specify either ALLOW_ALL or STANDARD. - permissionsMode?: null | string @go(PermissionsMode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#LedgerParameters: { - // The deletion protection for the QLDB Ledger instance. By default it is true. - // +kubebuilder:validation:Optional - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // The key in AWS Key Management Service (AWS KMS) to use for encryption of data at rest in the ledger. For more information, see the AWS documentation. Valid values are "AWS_OWNED_KMS_KEY" to use an AWS KMS key that is owned and managed by AWS on your behalf, or the ARN of a valid symmetric customer managed KMS key. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKey?: null | string @go(KMSKey,*string) - - // Reference to a Key in kms to populate kmsKey. - // +kubebuilder:validation:Optional - kmsKeyRef?: null | v1.#Reference @go(KMSKeyRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKey. - // +kubebuilder:validation:Optional - kmsKeySelector?: null | v1.#Selector @go(KMSKeySelector,*v1.Selector) - - // The permissions mode for the QLDB ledger instance. Specify either ALLOW_ALL or STANDARD. - // +kubebuilder:validation:Optional - permissionsMode?: null | string @go(PermissionsMode,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// LedgerSpec defines the desired state of Ledger -#LedgerSpec: { - v1.#ResourceSpec - forProvider: #LedgerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LedgerInitParameters @go(InitProvider) -} - -// LedgerStatus defines the observed state of Ledger. -#LedgerStatus: { - v1.#ResourceStatus - atProvider?: #LedgerObservation @go(AtProvider) -} - -// Ledger is the Schema for the Ledgers API. Provides an QLDB Resource resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Ledger: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.permissionsMode) || (has(self.initProvider) && has(self.initProvider.permissionsMode))",message="spec.forProvider.permissionsMode is a required parameter" - spec: #LedgerSpec @go(Spec) - status?: #LedgerStatus @go(Status) -} - -// LedgerList contains a list of Ledgers -#LedgerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Ledger] @go(Items,[]Ledger) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/qldb/v1beta1/zz_stream_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/qldb/v1beta1/zz_stream_types_go_gen.cue deleted file mode 100644 index c9a0194..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/qldb/v1beta1/zz_stream_types_go_gen.cue +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/qldb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#KinesisConfigurationInitParameters: { - // Enables QLDB to publish multiple data records in a single Kinesis Data Streams record, increasing the number of records sent per API call. Default: true. - aggregationEnabled?: null | bool @go(AggregationEnabled,*bool) -} - -#KinesisConfigurationObservation: { - // Enables QLDB to publish multiple data records in a single Kinesis Data Streams record, increasing the number of records sent per API call. Default: true. - aggregationEnabled?: null | bool @go(AggregationEnabled,*bool) - - // The Amazon Resource Name (ARN) of the Kinesis Data Streams resource. - streamArn?: null | string @go(StreamArn,*string) -} - -#KinesisConfigurationParameters: { - // Enables QLDB to publish multiple data records in a single Kinesis Data Streams record, increasing the number of records sent per API call. Default: true. - // +kubebuilder:validation:Optional - aggregationEnabled?: null | bool @go(AggregationEnabled,*bool) - - // The Amazon Resource Name (ARN) of the Kinesis Data Streams resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kinesis/v1beta1.Stream - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - streamArn?: null | string @go(StreamArn,*string) - - // Reference to a Stream in kinesis to populate streamArn. - // +kubebuilder:validation:Optional - streamArnRef?: null | v1.#Reference @go(StreamArnRef,*v1.Reference) - - // Selector for a Stream in kinesis to populate streamArn. - // +kubebuilder:validation:Optional - streamArnSelector?: null | v1.#Selector @go(StreamArnSelector,*v1.Selector) -} - -#StreamInitParameters: { - // The exclusive date and time that specifies when the stream ends. If you don't define this parameter, the stream runs indefinitely until you cancel it. It must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: "2019-06-13T21:36:34Z". - exclusiveEndTime?: null | string @go(ExclusiveEndTime,*string) - - // The inclusive start date and time from which to start streaming journal data. This parameter must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: "2019-06-13T21:36:34Z". This cannot be in the future and must be before exclusive_end_time. If you provide a value that is before the ledger's CreationDateTime, QLDB effectively defaults it to the ledger's CreationDateTime. - inclusiveStartTime?: null | string @go(InclusiveStartTime,*string) - - // The configuration settings of the Kinesis Data Streams destination for your stream request. Documented below. - kinesisConfiguration?: [...#KinesisConfigurationInitParameters] @go(KinesisConfiguration,[]KinesisConfigurationInitParameters) - - // The name that you want to assign to the QLDB journal stream. User-defined names can help identify and indicate the purpose of a stream. Your stream name must be unique among other active streams for a given ledger. Stream names have the same naming constraints as ledger names, as defined in the Amazon QLDB Developer Guide. - streamName?: null | string @go(StreamName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#StreamObservation: { - // The ARN of the QLDB Stream. - arn?: null | string @go(Arn,*string) - - // The exclusive date and time that specifies when the stream ends. If you don't define this parameter, the stream runs indefinitely until you cancel it. It must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: "2019-06-13T21:36:34Z". - exclusiveEndTime?: null | string @go(ExclusiveEndTime,*string) - - // The ID of the QLDB Stream. - id?: null | string @go(ID,*string) - - // The inclusive start date and time from which to start streaming journal data. This parameter must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: "2019-06-13T21:36:34Z". This cannot be in the future and must be before exclusive_end_time. If you provide a value that is before the ledger's CreationDateTime, QLDB effectively defaults it to the ledger's CreationDateTime. - inclusiveStartTime?: null | string @go(InclusiveStartTime,*string) - - // The configuration settings of the Kinesis Data Streams destination for your stream request. Documented below. - kinesisConfiguration?: [...#KinesisConfigurationObservation] @go(KinesisConfiguration,[]KinesisConfigurationObservation) - - // The name of the QLDB ledger. - ledgerName?: null | string @go(LedgerName,*string) - - // The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal stream to write data records to a Kinesis Data Streams resource. - roleArn?: null | string @go(RoleArn,*string) - - // The name that you want to assign to the QLDB journal stream. User-defined names can help identify and indicate the purpose of a stream. Your stream name must be unique among other active streams for a given ledger. Stream names have the same naming constraints as ledger names, as defined in the Amazon QLDB Developer Guide. - streamName?: null | string @go(StreamName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#StreamParameters: { - // The exclusive date and time that specifies when the stream ends. If you don't define this parameter, the stream runs indefinitely until you cancel it. It must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: "2019-06-13T21:36:34Z". - // +kubebuilder:validation:Optional - exclusiveEndTime?: null | string @go(ExclusiveEndTime,*string) - - // The inclusive start date and time from which to start streaming journal data. This parameter must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: "2019-06-13T21:36:34Z". This cannot be in the future and must be before exclusive_end_time. If you provide a value that is before the ledger's CreationDateTime, QLDB effectively defaults it to the ledger's CreationDateTime. - // +kubebuilder:validation:Optional - inclusiveStartTime?: null | string @go(InclusiveStartTime,*string) - - // The configuration settings of the Kinesis Data Streams destination for your stream request. Documented below. - // +kubebuilder:validation:Optional - kinesisConfiguration?: [...#KinesisConfigurationParameters] @go(KinesisConfiguration,[]KinesisConfigurationParameters) - - // The name of the QLDB ledger. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/qldb/v1beta1.Ledger - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - ledgerName?: null | string @go(LedgerName,*string) - - // Reference to a Ledger in qldb to populate ledgerName. - // +kubebuilder:validation:Optional - ledgerNameRef?: null | v1.#Reference @go(LedgerNameRef,*v1.Reference) - - // Selector for a Ledger in qldb to populate ledgerName. - // +kubebuilder:validation:Optional - ledgerNameSelector?: null | v1.#Selector @go(LedgerNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal stream to write data records to a Kinesis Data Streams resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The name that you want to assign to the QLDB journal stream. User-defined names can help identify and indicate the purpose of a stream. Your stream name must be unique among other active streams for a given ledger. Stream names have the same naming constraints as ledger names, as defined in the Amazon QLDB Developer Guide. - // +kubebuilder:validation:Optional - streamName?: null | string @go(StreamName,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// StreamSpec defines the desired state of Stream -#StreamSpec: { - v1.#ResourceSpec - forProvider: #StreamParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StreamInitParameters @go(InitProvider) -} - -// StreamStatus defines the observed state of Stream. -#StreamStatus: { - v1.#ResourceStatus - atProvider?: #StreamObservation @go(AtProvider) -} - -// Stream is the Schema for the Streams API. Provides a QLDB Stream resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Stream: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.inclusiveStartTime) || (has(self.initProvider) && has(self.initProvider.inclusiveStartTime))",message="spec.forProvider.inclusiveStartTime is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.kinesisConfiguration) || (has(self.initProvider) && has(self.initProvider.kinesisConfiguration))",message="spec.forProvider.kinesisConfiguration is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.streamName) || (has(self.initProvider) && has(self.initProvider.streamName))",message="spec.forProvider.streamName is a required parameter" - spec: #StreamSpec @go(Spec) - status?: #StreamStatus @go(Status) -} - -// StreamList contains a list of Streams -#StreamList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Stream] @go(Items,[]Stream) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/quicksight/v1beta1/zz_group_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/quicksight/v1beta1/zz_group_types_go_gen.cue deleted file mode 100644 index d18285a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/quicksight/v1beta1/zz_group_types_go_gen.cue +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/quicksight/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GroupInitParameters: { - // The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account. - awsAccountId?: null | string @go(AwsAccountID,*string) - - // A description for the group. - description?: null | string @go(Description,*string) - - // A name for the group. - groupName?: null | string @go(GroupName,*string) - - // The namespace. Currently, you should set this to default. - namespace?: null | string @go(Namespace,*string) -} - -#GroupObservation: { - // Amazon Resource Name (ARN) of group - arn?: null | string @go(Arn,*string) - - // The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account. - awsAccountId?: null | string @go(AwsAccountID,*string) - - // A description for the group. - description?: null | string @go(Description,*string) - - // A name for the group. - groupName?: null | string @go(GroupName,*string) - id?: null | string @go(ID,*string) - - // The namespace. Currently, you should set this to default. - namespace?: null | string @go(Namespace,*string) -} - -#GroupParameters: { - // The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account. - // +kubebuilder:validation:Optional - awsAccountId?: null | string @go(AwsAccountID,*string) - - // A description for the group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A name for the group. - // +kubebuilder:validation:Optional - groupName?: null | string @go(GroupName,*string) - - // The namespace. Currently, you should set this to default. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// GroupSpec defines the desired state of Group -#GroupSpec: { - v1.#ResourceSpec - forProvider: #GroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GroupInitParameters @go(InitProvider) -} - -// GroupStatus defines the observed state of Group. -#GroupStatus: { - v1.#ResourceStatus - atProvider?: #GroupObservation @go(AtProvider) -} - -// Group is the Schema for the Groups API. Manages a Resource QuickSight Group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Group: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.groupName) || (has(self.initProvider) && has(self.initProvider.groupName))",message="spec.forProvider.groupName is a required parameter" - spec: #GroupSpec @go(Spec) - status?: #GroupStatus @go(Status) -} - -// GroupList contains a list of Groups -#GroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Group] @go(Items,[]Group) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/quicksight/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/quicksight/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index eb2ea59..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/quicksight/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/quicksight/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=quicksight.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "quicksight.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/quicksight/v1beta1/zz_user_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/quicksight/v1beta1/zz_user_types_go_gen.cue deleted file mode 100644 index c80f089..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/quicksight/v1beta1/zz_user_types_go_gen.cue +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/quicksight/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UserInitParameters: { - // The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account. - awsAccountId?: null | string @go(AwsAccountID,*string) - - // The email address of the user that you want to register. - email?: null | string @go(Email,*string) - - // The ARN of the IAM user or role that you are registering with Amazon QuickSight. - iamArn?: null | string @go(IAMArn,*string) - - // Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified. - identityType?: null | string @go(IdentityType,*string) - - // The Amazon Quicksight namespace to create the user in. Defaults to default. - namespace?: null | string @go(Namespace,*string) - - // The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name. - sessionName?: null | string @go(SessionName,*string) - - // The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT. - userName?: null | string @go(UserName,*string) - - // The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN - userRole?: null | string @go(UserRole,*string) -} - -#UserObservation: { - // Amazon Resource Name (ARN) of the user - arn?: null | string @go(Arn,*string) - - // The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account. - awsAccountId?: null | string @go(AwsAccountID,*string) - - // The email address of the user that you want to register. - email?: null | string @go(Email,*string) - - // The ARN of the IAM user or role that you are registering with Amazon QuickSight. - iamArn?: null | string @go(IAMArn,*string) - id?: null | string @go(ID,*string) - - // Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified. - identityType?: null | string @go(IdentityType,*string) - - // The Amazon Quicksight namespace to create the user in. Defaults to default. - namespace?: null | string @go(Namespace,*string) - - // The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name. - sessionName?: null | string @go(SessionName,*string) - - // The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT. - userName?: null | string @go(UserName,*string) - - // The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN - userRole?: null | string @go(UserRole,*string) -} - -#UserParameters: { - // The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account. - // +kubebuilder:validation:Optional - awsAccountId?: null | string @go(AwsAccountID,*string) - - // The email address of the user that you want to register. - // +kubebuilder:validation:Optional - email?: null | string @go(Email,*string) - - // The ARN of the IAM user or role that you are registering with Amazon QuickSight. - // +kubebuilder:validation:Optional - iamArn?: null | string @go(IAMArn,*string) - - // Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts either IAM or QUICKSIGHT. If IAM is specified, the iam_arn must also be specified. - // +kubebuilder:validation:Optional - identityType?: null | string @go(IdentityType,*string) - - // The Amazon Quicksight namespace to create the user in. Defaults to default. - // +kubebuilder:validation:Optional - namespace?: null | string @go(Namespace,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the IAM session to use when assuming roles that can embed QuickSight dashboards. Only valid for registering users using an assumed IAM role. Additionally, if registering multiple users using the same IAM role, each user needs to have a unique session name. - // +kubebuilder:validation:Optional - sessionName?: null | string @go(SessionName,*string) - - // The Amazon QuickSight user name that you want to create for the user you are registering. Only valid for registering a user with identity_type set to QUICKSIGHT. - // +kubebuilder:validation:Optional - userName?: null | string @go(UserName,*string) - - // The Amazon QuickSight role of the user. The user role can be one of the following: READER, AUTHOR, or ADMIN - // +kubebuilder:validation:Optional - userRole?: null | string @go(UserRole,*string) -} - -// UserSpec defines the desired state of User -#UserSpec: { - v1.#ResourceSpec - forProvider: #UserParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserInitParameters @go(InitProvider) -} - -// UserStatus defines the observed state of User. -#UserStatus: { - v1.#ResourceStatus - atProvider?: #UserObservation @go(AtProvider) -} - -// User is the Schema for the Users API. Manages a Resource QuickSight User. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#User: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.email) || (has(self.initProvider) && has(self.initProvider.email))",message="spec.forProvider.email is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.identityType) || (has(self.initProvider) && has(self.initProvider.identityType))",message="spec.forProvider.identityType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.userRole) || (has(self.initProvider) && has(self.initProvider.userRole))",message="spec.forProvider.userRole is a required parameter" - spec: #UserSpec @go(Spec) - status?: #UserStatus @go(Status) -} - -// UserList contains a list of Users -#UserList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#User] @go(Items,[]User) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 04fa7e1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ram/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=ram.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "ram.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_principalassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_principalassociation_types_go_gen.cue deleted file mode 100644 index b74f3e8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_principalassociation_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ram/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PrincipalAssociationInitParameters: { -} - -#PrincipalAssociationObservation: { - // The Amazon Resource Name (ARN) of the Resource Share and the principal, separated by a comma. - id?: null | string @go(ID,*string) - - // The principal to associate with the resource share. Possible values are an AWS account ID, an AWS Organizations Organization ARN, or an AWS Organizations Organization Unit ARN. - principal?: null | string @go(Principal,*string) - - // The Amazon Resource Name (ARN) of the resource share. - resourceShareArn?: null | string @go(ResourceShareArn,*string) -} - -#PrincipalAssociationParameters: { - // The principal to associate with the resource share. Possible values are an AWS account ID, an AWS Organizations Organization ARN, or an AWS Organizations Organization Unit ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/organizations/v1beta1.Organization - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - principal?: null | string @go(Principal,*string) - - // Reference to a Organization in organizations to populate principal. - // +kubebuilder:validation:Optional - principalRef?: null | v1.#Reference @go(PrincipalRef,*v1.Reference) - - // Selector for a Organization in organizations to populate principal. - // +kubebuilder:validation:Optional - principalSelector?: null | v1.#Selector @go(PrincipalSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of the resource share. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ram/v1beta1.ResourceShare - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resourceShareArn?: null | string @go(ResourceShareArn,*string) - - // Reference to a ResourceShare in ram to populate resourceShareArn. - // +kubebuilder:validation:Optional - resourceShareArnRef?: null | v1.#Reference @go(ResourceShareArnRef,*v1.Reference) - - // Selector for a ResourceShare in ram to populate resourceShareArn. - // +kubebuilder:validation:Optional - resourceShareArnSelector?: null | v1.#Selector @go(ResourceShareArnSelector,*v1.Selector) -} - -// PrincipalAssociationSpec defines the desired state of PrincipalAssociation -#PrincipalAssociationSpec: { - v1.#ResourceSpec - forProvider: #PrincipalAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PrincipalAssociationInitParameters @go(InitProvider) -} - -// PrincipalAssociationStatus defines the observed state of PrincipalAssociation. -#PrincipalAssociationStatus: { - v1.#ResourceStatus - atProvider?: #PrincipalAssociationObservation @go(AtProvider) -} - -// PrincipalAssociation is the Schema for the PrincipalAssociations API. Provides a Resource Access Manager (RAM) principal association. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PrincipalAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #PrincipalAssociationSpec @go(Spec) - status?: #PrincipalAssociationStatus @go(Status) -} - -// PrincipalAssociationList contains a list of PrincipalAssociations -#PrincipalAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PrincipalAssociation] @go(Items,[]PrincipalAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_resourceassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_resourceassociation_types_go_gen.cue deleted file mode 100644 index 46b659b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_resourceassociation_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ram/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourceAssociationInitParameters: { - // Amazon Resource Name (ARN) of the resource to associate with the RAM Resource Share. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#ResourceAssociationObservation: { - // The Amazon Resource Name (ARN) of the resource share. - id?: null | string @go(ID,*string) - - // Amazon Resource Name (ARN) of the resource to associate with the RAM Resource Share. - resourceArn?: null | string @go(ResourceArn,*string) - - // Amazon Resource Name (ARN) of the RAM Resource Share. - resourceShareArn?: null | string @go(ResourceShareArn,*string) -} - -#ResourceAssociationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Resource Name (ARN) of the resource to associate with the RAM Resource Share. - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Amazon Resource Name (ARN) of the RAM Resource Share. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ram/v1beta1.ResourceShare - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resourceShareArn?: null | string @go(ResourceShareArn,*string) - - // Reference to a ResourceShare in ram to populate resourceShareArn. - // +kubebuilder:validation:Optional - resourceShareArnRef?: null | v1.#Reference @go(ResourceShareArnRef,*v1.Reference) - - // Selector for a ResourceShare in ram to populate resourceShareArn. - // +kubebuilder:validation:Optional - resourceShareArnSelector?: null | v1.#Selector @go(ResourceShareArnSelector,*v1.Selector) -} - -// ResourceAssociationSpec defines the desired state of ResourceAssociation -#ResourceAssociationSpec: { - v1.#ResourceSpec - forProvider: #ResourceAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourceAssociationInitParameters @go(InitProvider) -} - -// ResourceAssociationStatus defines the observed state of ResourceAssociation. -#ResourceAssociationStatus: { - v1.#ResourceStatus - atProvider?: #ResourceAssociationObservation @go(AtProvider) -} - -// ResourceAssociation is the Schema for the ResourceAssociations API. Manages a Resource Access Manager (RAM) Resource Association. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ResourceAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.resourceArn) || (has(self.initProvider) && has(self.initProvider.resourceArn))",message="spec.forProvider.resourceArn is a required parameter" - spec: #ResourceAssociationSpec @go(Spec) - status?: #ResourceAssociationStatus @go(Status) -} - -// ResourceAssociationList contains a list of ResourceAssociations -#ResourceAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ResourceAssociation] @go(Items,[]ResourceAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_resourceshare_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_resourceshare_types_go_gen.cue deleted file mode 100644 index bdf6e66..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_resourceshare_types_go_gen.cue +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ram/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourceShareInitParameters: { - // Indicates whether principals outside your organization can be associated with a resource share. - allowExternalPrincipals?: null | bool @go(AllowExternalPrincipals,*bool) - - // The name of the resource share. - name?: null | string @go(Name,*string) - - // Specifies the Amazon Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not specify an ARN for the permission, RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share. - permissionArns?: [...null | string] @go(PermissionArns,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ResourceShareObservation: { - // Indicates whether principals outside your organization can be associated with a resource share. - allowExternalPrincipals?: null | bool @go(AllowExternalPrincipals,*bool) - - // The Amazon Resource Name (ARN) of the resource share. - arn?: null | string @go(Arn,*string) - - // The Amazon Resource Name (ARN) of the resource share. - id?: null | string @go(ID,*string) - - // The name of the resource share. - name?: null | string @go(Name,*string) - - // Specifies the Amazon Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not specify an ARN for the permission, RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share. - permissionArns?: [...null | string] @go(PermissionArns,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ResourceShareParameters: { - // Indicates whether principals outside your organization can be associated with a resource share. - // +kubebuilder:validation:Optional - allowExternalPrincipals?: null | bool @go(AllowExternalPrincipals,*bool) - - // The name of the resource share. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Specifies the Amazon Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not specify an ARN for the permission, RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share. - // +kubebuilder:validation:Optional - permissionArns?: [...null | string] @go(PermissionArns,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ResourceShareSpec defines the desired state of ResourceShare -#ResourceShareSpec: { - v1.#ResourceSpec - forProvider: #ResourceShareParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourceShareInitParameters @go(InitProvider) -} - -// ResourceShareStatus defines the observed state of ResourceShare. -#ResourceShareStatus: { - v1.#ResourceStatus - atProvider?: #ResourceShareObservation @go(AtProvider) -} - -// ResourceShare is the Schema for the ResourceShares API. Manages a Resource Access Manager (RAM) Resource Share. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ResourceShare: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ResourceShareSpec @go(Spec) - status?: #ResourceShareStatus @go(Status) -} - -// ResourceShareList contains a list of ResourceShares -#ResourceShareList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ResourceShare] @go(Items,[]ResourceShare) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_resourceshareaccepter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_resourceshareaccepter_types_go_gen.cue deleted file mode 100644 index 4a46148..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ram/v1beta1/zz_resourceshareaccepter_types_go_gen.cue +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ram/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourceShareAccepterInitParameters: { -} - -#ResourceShareAccepterObservation: { - id?: null | string @go(ID,*string) - - // The ARN of the resource share invitation. - invitationArn?: null | string @go(InvitationArn,*string) - - // The account ID of the receiver account which accepts the invitation. - receiverAccountId?: null | string @go(ReceiverAccountID,*string) - - // A list of the resource ARNs shared via the resource share. - resources?: [...null | string] @go(Resources,[]*string) - - // The account ID of the sender account which submits the invitation. - senderAccountId?: null | string @go(SenderAccountID,*string) - - // The ARN of the resource share. - shareArn?: null | string @go(ShareArn,*string) - - // The ID of the resource share as displayed in the console. - shareId?: null | string @go(ShareID,*string) - - // The name of the resource share. - shareName?: null | string @go(ShareName,*string) - - // The status of the resource share (ACTIVE, PENDING, FAILED, DELETING, DELETED). - status?: null | string @go(Status,*string) -} - -#ResourceShareAccepterParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of the resource share. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ram/v1beta1.PrincipalAssociation - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("resource_share_arn",false) - // +kubebuilder:validation:Optional - shareArn?: null | string @go(ShareArn,*string) - - // Reference to a PrincipalAssociation in ram to populate shareArn. - // +kubebuilder:validation:Optional - shareArnRef?: null | v1.#Reference @go(ShareArnRef,*v1.Reference) - - // Selector for a PrincipalAssociation in ram to populate shareArn. - // +kubebuilder:validation:Optional - shareArnSelector?: null | v1.#Selector @go(ShareArnSelector,*v1.Selector) -} - -// ResourceShareAccepterSpec defines the desired state of ResourceShareAccepter -#ResourceShareAccepterSpec: { - v1.#ResourceSpec - forProvider: #ResourceShareAccepterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourceShareAccepterInitParameters @go(InitProvider) -} - -// ResourceShareAccepterStatus defines the observed state of ResourceShareAccepter. -#ResourceShareAccepterStatus: { - v1.#ResourceStatus - atProvider?: #ResourceShareAccepterObservation @go(AtProvider) -} - -// ResourceShareAccepter is the Schema for the ResourceShareAccepters API. Manages accepting a Resource Access Manager (RAM) Resource Share invitation. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ResourceShareAccepter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ResourceShareAccepterSpec @go(Spec) - status?: #ResourceShareAccepterStatus @go(Status) -} - -// ResourceShareAccepterList contains a list of ResourceShareAccepters -#ResourceShareAccepterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ResourceShareAccepter] @go(Items,[]ResourceShareAccepter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_cluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_cluster_types_go_gen.cue deleted file mode 100644 index 1f64622..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_cluster_types_go_gen.cue +++ /dev/null @@ -1,784 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterInitParameters: { - // The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster. - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // Enable to allow major engine version upgrades when changing engine versions. Defaults to false. - allowMajorVersionUpgrade?: null | bool @go(AllowMajorVersionUpgrade,*bool) - - // Specifies whether any cluster modifications are applied immediately, or during the next maintenance window. Default is false. See Amazon RDS Documentation for more information. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // List of EC2 Availability Zones for the DB cluster storage where DB cluster instances can be created. We recommend specifying 3 AZs or using the if necessary. A maximum of 3 AZs can be configured. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The target backtrack window, in seconds. Only available for aurora and aurora-mysql engines currently. To disable backtracking, set this value to 0. Defaults to 0. Must be between 0 and 259200 (72 hours) - backtrackWindow?: null | float64 @go(BacktrackWindow,*float64) - - // The days to retain backups for. Default 1 - backupRetentionPeriod?: null | float64 @go(BackupRetentionPeriod,*float64) - - // – List of RDS Instances that are a part of this cluster - clusterMembers?: [...null | string] @go(ClusterMembers,[]*string) - - // – Copy all Cluster tags to snapshots. Default is false. - copyTagsToSnapshot?: null | bool @go(CopyTagsToSnapshot,*bool) - - // The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example db.m6g.xlarge. Not all DB instance classes are available in all AWS Regions, or for all database engines. For the full list of DB instance classes and availability for your engine, see DB instance class in the Amazon RDS User Guide. - dbClusterInstanceClass?: null | string @go(DBClusterInstanceClass,*string) - - // A cluster parameter group to associate with the cluster. - dbClusterParameterGroupName?: null | string @go(DBClusterParameterGroupName,*string) - - // Instance parameter group to associate with all instances of the DB cluster. The db_instance_parameter_group_name parameter is only valid in combination with the allow_major_version_upgrade parameter. - dbInstanceParameterGroupName?: null | string @go(DBInstanceParameterGroupName,*string) - - // Name for an automatically created database on cluster creation. There are different naming restrictions per database engine: RDS Naming Constraints - databaseName?: null | string @go(DatabaseName,*string) - - // If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // Whether cluster should forward writes to an associated global cluster. Applied to secondary clusters to enable them to forward writes to an aws_rds_global_cluster's primary cluster. See the Aurora Userguide documentation for more information. - enableGlobalWriteForwarding?: null | bool @go(EnableGlobalWriteForwarding,*bool) - - // Enable HTTP endpoint (data API). Only valid when engine_mode is set to serverless. - enableHttpEndpoint?: null | bool @go(EnableHTTPEndpoint,*bool) - - // Set of log types to export to cloudwatch. If omitted, no logs will be exported. The following log types are supported: audit, error, general, slowquery, postgresql (PostgreSQL). - enabledCloudwatchLogsExports?: [...null | string] @go(EnabledCloudwatchLogsExports,[]*string) - - // The name of the database engine to be used for this DB cluster. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql, mysql, postgres. (Note that mysql and postgres are Multi-AZ RDS clusters). - engine?: null | string @go(Engine,*string) - - // The database engine mode. Valid values: global (only valid for Aurora MySQL 1.21 and earlier), multimaster, parallelquery, provisioned, serverless. Defaults to: provisioned. See the RDS User Guide for limitations when using serverless. - engineMode?: null | string @go(EngineMode,*string) - - // The database engine version. Updating this argument results in an outage. See the Aurora MySQL and Aurora Postgres documentation for your configured engine to determine this value, or by running aws rds describe-db-engine-versions. For example with Aurora MySQL 2, a potential value for this argument is 5.7.mysql_aurora.2.03.2. The value can contain a partial version where supported by the API. The actual engine version used is returned in the attribute engine_version_actual, , see Attributes Reference below. - engineVersion?: null | string @go(EngineVersion,*string) - - // The name of your final DB snapshot when this DB cluster is deleted. If omitted, no final snapshot will be made. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The global cluster identifier specified on aws_rds_global_cluster. - globalClusterIdentifier?: null | string @go(GlobalClusterIdentifier,*string) - - // Specifies whether or not mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled. Please see AWS Documentation for availability and limitations. - iamDatabaseAuthenticationEnabled?: null | bool @go(IAMDatabaseAuthenticationEnabled,*bool) - - // The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster. For information about valid Iops values, see Amazon RDS Provisioned IOPS storage to improve performance in the Amazon RDS User Guide. Must be a multiple between .5 and 50 of the storage amount for the DB cluster. - iops?: null | float64 @go(Iops,*float64) - - // Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if master_password is provided. - manageMasterUserPassword?: null | bool @go(ManageMasterUserPassword,*bool) - - // Username for the master DB user. Please refer to the RDS Naming Constraints. This argument does not support in-place updates and cannot be changed during a restore from snapshot. - masterUsername?: null | string @go(MasterUsername,*string) - - // The network type of the cluster. Valid values: IPV4, DUAL. - networkType?: null | string @go(NetworkType,*string) - - // The port on which the DB accepts connections - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter.Time in UTC. Default: A 30-minute window selected at random from an 8-hour block of time per regionE.g., 04:00-09:00 - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The weekly time range during which system maintenance can occur, in (UTC) e.g., wed:04:00-wed:04:30 - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // ARN of a source DB cluster or DB instance if this DB cluster is to be created as a Read Replica. - replicationSourceIdentifier?: null | string @go(ReplicationSourceIdentifier,*string) - - // Nested attribute for point in time restore. More details below. - restoreToPointInTime?: [...#ClusterRestoreToPointInTimeInitParameters] @go(RestoreToPointInTime,[]ClusterRestoreToPointInTimeInitParameters) - - // The port on which the DB accepts connections - s3Import?: [...#ClusterS3ImportInitParameters] @go(S3Import,[]ClusterS3ImportInitParameters) - - // Nested attribute with scaling properties. Only valid when engine_mode is set to serverless. More details below. - scalingConfiguration?: [...#ScalingConfigurationInitParameters] @go(ScalingConfiguration,[]ScalingConfigurationInitParameters) - - // Nested attribute with scaling properties for ServerlessV2. Only valid when engine_mode is set to provisioned. More details below. - serverlessv2ScalingConfiguration?: [...#Serverlessv2ScalingConfigurationInitParameters] @go(Serverlessv2ScalingConfiguration,[]Serverlessv2ScalingConfigurationInitParameters) - - // Determines whether a final DB snapshot is created before the DB cluster is deleted. If true is specified, no DB snapshot is created. If false is specified, a DB snapshot is created before the DB cluster is deleted, using the value from final_snapshot_identifier. Default is false. - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // Specifies whether or not to create this cluster from a snapshot. You can use either the name or ARN when specifying a DB cluster snapshot, or the ARN when specifying a DB snapshot. Conflicts with global_cluster_identifier. Clusters cannot be restored from snapshot and joined to an existing global cluster in a single operation. See the AWS documentation or the Global Cluster Restored From Snapshot example for instructions on building a global cluster starting with a snapshot. - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // The source region for an encrypted replica DB cluster. - sourceRegion?: null | string @go(SourceRegion,*string) - - // Specifies whether the DB cluster is encrypted. The default is false for provisioned engine_mode and true for serverless engine_mode. When restoring an unencrypted snapshot_identifier, the kms_key_id argument must be provided to encrypt the restored cluster. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // (Forces new for Multi-AZ DB clusters) Specifies the storage type to be associated with the DB cluster. For Aurora DB clusters, storage_type modifications can be done in-place. For Multi-AZ DB Clusters, the iops argument must also be set. Valid values are: "", aurora-iopt1 (Aurora DB Clusters); io1 (Multi-AZ DB Clusters). Default: "" (Aurora DB Clusters); io1 (Multi-AZ DB Clusters). - storageType?: null | string @go(StorageType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterMasterUserSecretInitParameters: { -} - -#ClusterMasterUserSecretObservation: { - // The Amazon Web Services KMS key identifier that is used to encrypt the secret. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The Amazon Resource Name (ARN) of the secret. - secretArn?: null | string @go(SecretArn,*string) - - // The status of the secret. Valid Values: creating | active | rotating | impaired. - secretStatus?: null | string @go(SecretStatus,*string) -} - -#ClusterMasterUserSecretParameters: { -} - -#ClusterObservation: { - // The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster. - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // Enable to allow major engine version upgrades when changing engine versions. Defaults to false. - allowMajorVersionUpgrade?: null | bool @go(AllowMajorVersionUpgrade,*bool) - - // Specifies whether any cluster modifications are applied immediately, or during the next maintenance window. Default is false. See Amazon RDS Documentation for more information. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Amazon Resource Name (ARN) of cluster - arn?: null | string @go(Arn,*string) - - // List of EC2 Availability Zones for the DB cluster storage where DB cluster instances can be created. We recommend specifying 3 AZs or using the if necessary. A maximum of 3 AZs can be configured. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The target backtrack window, in seconds. Only available for aurora and aurora-mysql engines currently. To disable backtracking, set this value to 0. Defaults to 0. Must be between 0 and 259200 (72 hours) - backtrackWindow?: null | float64 @go(BacktrackWindow,*float64) - - // The days to retain backups for. Default 1 - backupRetentionPeriod?: null | float64 @go(BackupRetentionPeriod,*float64) - - // – List of RDS Instances that are a part of this cluster - clusterMembers?: [...null | string] @go(ClusterMembers,[]*string) - - // The RDS Cluster Resource ID - clusterResourceId?: null | string @go(ClusterResourceID,*string) - - // – Copy all Cluster tags to snapshots. Default is false. - copyTagsToSnapshot?: null | bool @go(CopyTagsToSnapshot,*bool) - - // The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example db.m6g.xlarge. Not all DB instance classes are available in all AWS Regions, or for all database engines. For the full list of DB instance classes and availability for your engine, see DB instance class in the Amazon RDS User Guide. - dbClusterInstanceClass?: null | string @go(DBClusterInstanceClass,*string) - - // A cluster parameter group to associate with the cluster. - dbClusterParameterGroupName?: null | string @go(DBClusterParameterGroupName,*string) - - // Instance parameter group to associate with all instances of the DB cluster. The db_instance_parameter_group_name parameter is only valid in combination with the allow_major_version_upgrade parameter. - dbInstanceParameterGroupName?: null | string @go(DBInstanceParameterGroupName,*string) - - // A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name specified on every aws_rds_cluster_instance in the cluster. - dbSubnetGroupName?: null | string @go(DBSubnetGroupName,*string) - - // Name for an automatically created database on cluster creation. There are different naming restrictions per database engine: RDS Naming Constraints - databaseName?: null | string @go(DatabaseName,*string) - - // If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // Whether cluster should forward writes to an associated global cluster. Applied to secondary clusters to enable them to forward writes to an aws_rds_global_cluster's primary cluster. See the Aurora Userguide documentation for more information. - enableGlobalWriteForwarding?: null | bool @go(EnableGlobalWriteForwarding,*bool) - - // Enable HTTP endpoint (data API). Only valid when engine_mode is set to serverless. - enableHttpEndpoint?: null | bool @go(EnableHTTPEndpoint,*bool) - - // Set of log types to export to cloudwatch. If omitted, no logs will be exported. The following log types are supported: audit, error, general, slowquery, postgresql (PostgreSQL). - enabledCloudwatchLogsExports?: [...null | string] @go(EnabledCloudwatchLogsExports,[]*string) - - // The DNS address of the RDS instance - endpoint?: null | string @go(Endpoint,*string) - - // The name of the database engine to be used for this DB cluster. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql, mysql, postgres. (Note that mysql and postgres are Multi-AZ RDS clusters). - engine?: null | string @go(Engine,*string) - - // The database engine mode. Valid values: global (only valid for Aurora MySQL 1.21 and earlier), multimaster, parallelquery, provisioned, serverless. Defaults to: provisioned. See the RDS User Guide for limitations when using serverless. - engineMode?: null | string @go(EngineMode,*string) - - // The database engine version. Updating this argument results in an outage. See the Aurora MySQL and Aurora Postgres documentation for your configured engine to determine this value, or by running aws rds describe-db-engine-versions. For example with Aurora MySQL 2, a potential value for this argument is 5.7.mysql_aurora.2.03.2. The value can contain a partial version where supported by the API. The actual engine version used is returned in the attribute engine_version_actual, , see Attributes Reference below. - engineVersion?: null | string @go(EngineVersion,*string) - - // The running version of the database. - engineVersionActual?: null | string @go(EngineVersionActual,*string) - - // The name of your final DB snapshot when this DB cluster is deleted. If omitted, no final snapshot will be made. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The global cluster identifier specified on aws_rds_global_cluster. - globalClusterIdentifier?: null | string @go(GlobalClusterIdentifier,*string) - - // The Route53 Hosted Zone ID of the endpoint - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // Specifies whether or not mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled. Please see AWS Documentation for availability and limitations. - iamDatabaseAuthenticationEnabled?: null | bool @go(IAMDatabaseAuthenticationEnabled,*bool) - - // A List of ARNs for the IAM roles to associate to the RDS Cluster. - iamRoles?: [...null | string] @go(IAMRoles,[]*string) - - // The RDS Cluster Identifier - id?: null | string @go(ID,*string) - - // The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster. For information about valid Iops values, see Amazon RDS Provisioned IOPS storage to improve performance in the Amazon RDS User Guide. Must be a multiple between .5 and 50 of the storage amount for the DB cluster. - iops?: null | float64 @go(Iops,*float64) - - // The ARN for the KMS encryption key. When specifying kms_key_id, storage_encrypted needs to be set to true. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if master_password is provided. - manageMasterUserPassword?: null | bool @go(ManageMasterUserPassword,*bool) - - // A block that specifies the master user secret. Only available when manage_master_user_password is set to true. Documented below. - masterUserSecret?: [...#ClusterMasterUserSecretObservation] @go(MasterUserSecret,[]ClusterMasterUserSecretObservation) - - // The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If not specified, the default KMS key for your Amazon Web Services account is used. - masterUserSecretKmsKeyId?: null | string @go(MasterUserSecretKMSKeyID,*string) - - // Username for the master DB user. Please refer to the RDS Naming Constraints. This argument does not support in-place updates and cannot be changed during a restore from snapshot. - masterUsername?: null | string @go(MasterUsername,*string) - - // The network type of the cluster. Valid values: IPV4, DUAL. - networkType?: null | string @go(NetworkType,*string) - - // The port on which the DB accepts connections - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter.Time in UTC. Default: A 30-minute window selected at random from an 8-hour block of time per regionE.g., 04:00-09:00 - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The weekly time range during which system maintenance can occur, in (UTC) e.g., wed:04:00-wed:04:30 - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // A read-only endpoint for the Aurora cluster, automatically - // load-balanced across replicas - readerEndpoint?: null | string @go(ReaderEndpoint,*string) - - // ARN of a source DB cluster or DB instance if this DB cluster is to be created as a Read Replica. - replicationSourceIdentifier?: null | string @go(ReplicationSourceIdentifier,*string) - - // Nested attribute for point in time restore. More details below. - restoreToPointInTime?: [...#ClusterRestoreToPointInTimeObservation] @go(RestoreToPointInTime,[]ClusterRestoreToPointInTimeObservation) - - // The port on which the DB accepts connections - s3Import?: [...#ClusterS3ImportObservation] @go(S3Import,[]ClusterS3ImportObservation) - - // Nested attribute with scaling properties. Only valid when engine_mode is set to serverless. More details below. - scalingConfiguration?: [...#ScalingConfigurationObservation] @go(ScalingConfiguration,[]ScalingConfigurationObservation) - - // Nested attribute with scaling properties for ServerlessV2. Only valid when engine_mode is set to provisioned. More details below. - serverlessv2ScalingConfiguration?: [...#Serverlessv2ScalingConfigurationObservation] @go(Serverlessv2ScalingConfiguration,[]Serverlessv2ScalingConfigurationObservation) - - // Determines whether a final DB snapshot is created before the DB cluster is deleted. If true is specified, no DB snapshot is created. If false is specified, a DB snapshot is created before the DB cluster is deleted, using the value from final_snapshot_identifier. Default is false. - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // Specifies whether or not to create this cluster from a snapshot. You can use either the name or ARN when specifying a DB cluster snapshot, or the ARN when specifying a DB snapshot. Conflicts with global_cluster_identifier. Clusters cannot be restored from snapshot and joined to an existing global cluster in a single operation. See the AWS documentation or the Global Cluster Restored From Snapshot example for instructions on building a global cluster starting with a snapshot. - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // The source region for an encrypted replica DB cluster. - sourceRegion?: null | string @go(SourceRegion,*string) - - // Specifies whether the DB cluster is encrypted. The default is false for provisioned engine_mode and true for serverless engine_mode. When restoring an unencrypted snapshot_identifier, the kms_key_id argument must be provided to encrypt the restored cluster. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // (Forces new for Multi-AZ DB clusters) Specifies the storage type to be associated with the DB cluster. For Aurora DB clusters, storage_type modifications can be done in-place. For Multi-AZ DB Clusters, the iops argument must also be set. Valid values are: "", aurora-iopt1 (Aurora DB Clusters); io1 (Multi-AZ DB Clusters). Default: "" (Aurora DB Clusters); io1 (Multi-AZ DB Clusters). - storageType?: null | string @go(StorageType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // List of VPC security groups to associate with the Cluster - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -#ClusterParameters: { - // The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster. - // +kubebuilder:validation:Optional - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // Enable to allow major engine version upgrades when changing engine versions. Defaults to false. - // +kubebuilder:validation:Optional - allowMajorVersionUpgrade?: null | bool @go(AllowMajorVersionUpgrade,*bool) - - // Specifies whether any cluster modifications are applied immediately, or during the next maintenance window. Default is false. See Amazon RDS Documentation for more information. - // +kubebuilder:validation:Optional - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // List of EC2 Availability Zones for the DB cluster storage where DB cluster instances can be created. We recommend specifying 3 AZs or using the if necessary. A maximum of 3 AZs can be configured. - // +kubebuilder:validation:Optional - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The target backtrack window, in seconds. Only available for aurora and aurora-mysql engines currently. To disable backtracking, set this value to 0. Defaults to 0. Must be between 0 and 259200 (72 hours) - // +kubebuilder:validation:Optional - backtrackWindow?: null | float64 @go(BacktrackWindow,*float64) - - // The days to retain backups for. Default 1 - // +kubebuilder:validation:Optional - backupRetentionPeriod?: null | float64 @go(BackupRetentionPeriod,*float64) - - // – List of RDS Instances that are a part of this cluster - // +kubebuilder:validation:Optional - clusterMembers?: [...null | string] @go(ClusterMembers,[]*string) - - // – Copy all Cluster tags to snapshots. Default is false. - // +kubebuilder:validation:Optional - copyTagsToSnapshot?: null | bool @go(CopyTagsToSnapshot,*bool) - - // The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example db.m6g.xlarge. Not all DB instance classes are available in all AWS Regions, or for all database engines. For the full list of DB instance classes and availability for your engine, see DB instance class in the Amazon RDS User Guide. - // +kubebuilder:validation:Optional - dbClusterInstanceClass?: null | string @go(DBClusterInstanceClass,*string) - - // A cluster parameter group to associate with the cluster. - // +kubebuilder:validation:Optional - dbClusterParameterGroupName?: null | string @go(DBClusterParameterGroupName,*string) - - // Instance parameter group to associate with all instances of the DB cluster. The db_instance_parameter_group_name parameter is only valid in combination with the allow_major_version_upgrade parameter. - // +kubebuilder:validation:Optional - dbInstanceParameterGroupName?: null | string @go(DBInstanceParameterGroupName,*string) - - // A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name specified on every aws_rds_cluster_instance in the cluster. - // +crossplane:generate:reference:type=SubnetGroup - // +kubebuilder:validation:Optional - dbSubnetGroupName?: null | string @go(DBSubnetGroupName,*string) - - // Reference to a SubnetGroup to populate dbSubnetGroupName. - // +kubebuilder:validation:Optional - dbSubnetGroupNameRef?: null | v1.#Reference @go(DBSubnetGroupNameRef,*v1.Reference) - - // Selector for a SubnetGroup to populate dbSubnetGroupName. - // +kubebuilder:validation:Optional - dbSubnetGroupNameSelector?: null | v1.#Selector @go(DBSubnetGroupNameSelector,*v1.Selector) - - // Name for an automatically created database on cluster creation. There are different naming restrictions per database engine: RDS Naming Constraints - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - // +kubebuilder:validation:Optional - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // Whether cluster should forward writes to an associated global cluster. Applied to secondary clusters to enable them to forward writes to an aws_rds_global_cluster's primary cluster. See the Aurora Userguide documentation for more information. - // +kubebuilder:validation:Optional - enableGlobalWriteForwarding?: null | bool @go(EnableGlobalWriteForwarding,*bool) - - // Enable HTTP endpoint (data API). Only valid when engine_mode is set to serverless. - // +kubebuilder:validation:Optional - enableHttpEndpoint?: null | bool @go(EnableHTTPEndpoint,*bool) - - // Set of log types to export to cloudwatch. If omitted, no logs will be exported. The following log types are supported: audit, error, general, slowquery, postgresql (PostgreSQL). - // +kubebuilder:validation:Optional - enabledCloudwatchLogsExports?: [...null | string] @go(EnabledCloudwatchLogsExports,[]*string) - - // The name of the database engine to be used for this DB cluster. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql, mysql, postgres. (Note that mysql and postgres are Multi-AZ RDS clusters). - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // The database engine mode. Valid values: global (only valid for Aurora MySQL 1.21 and earlier), multimaster, parallelquery, provisioned, serverless. Defaults to: provisioned. See the RDS User Guide for limitations when using serverless. - // +kubebuilder:validation:Optional - engineMode?: null | string @go(EngineMode,*string) - - // The database engine version. Updating this argument results in an outage. See the Aurora MySQL and Aurora Postgres documentation for your configured engine to determine this value, or by running aws rds describe-db-engine-versions. For example with Aurora MySQL 2, a potential value for this argument is 5.7.mysql_aurora.2.03.2. The value can contain a partial version where supported by the API. The actual engine version used is returned in the attribute engine_version_actual, , see Attributes Reference below. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // The name of your final DB snapshot when this DB cluster is deleted. If omitted, no final snapshot will be made. - // +kubebuilder:validation:Optional - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The global cluster identifier specified on aws_rds_global_cluster. - // +kubebuilder:validation:Optional - globalClusterIdentifier?: null | string @go(GlobalClusterIdentifier,*string) - - // Specifies whether or not mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled. Please see AWS Documentation for availability and limitations. - // +kubebuilder:validation:Optional - iamDatabaseAuthenticationEnabled?: null | bool @go(IAMDatabaseAuthenticationEnabled,*bool) - - // The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster. For information about valid Iops values, see Amazon RDS Provisioned IOPS storage to improve performance in the Amazon RDS User Guide. Must be a multiple between .5 and 50 of the storage amount for the DB cluster. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The ARN for the KMS encryption key. When specifying kms_key_id, storage_encrypted needs to be set to true. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if master_password is provided. - // +kubebuilder:validation:Optional - manageMasterUserPassword?: null | bool @go(ManageMasterUserPassword,*bool) - - // Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file. Please refer to the RDS Naming Constraints. Cannot be set if manage_master_user_password is set to true. - // +kubebuilder:validation:Optional - masterPasswordSecretRef?: null | v1.#SecretKeySelector @go(MasterPasswordSecretRef,*v1.SecretKeySelector) - - // The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If not specified, the default KMS key for your Amazon Web Services account is used. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("key_id",true) - // +kubebuilder:validation:Optional - masterUserSecretKmsKeyId?: null | string @go(MasterUserSecretKMSKeyID,*string) - - // Reference to a Key in kms to populate masterUserSecretKmsKeyId. - // +kubebuilder:validation:Optional - masterUserSecretKmsKeyIdRef?: null | v1.#Reference @go(MasterUserSecretKMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate masterUserSecretKmsKeyId. - // +kubebuilder:validation:Optional - masterUserSecretKmsKeyIdSelector?: null | v1.#Selector @go(MasterUserSecretKMSKeyIDSelector,*v1.Selector) - - // Username for the master DB user. Please refer to the RDS Naming Constraints. This argument does not support in-place updates and cannot be changed during a restore from snapshot. - // +kubebuilder:validation:Optional - masterUsername?: null | string @go(MasterUsername,*string) - - // The network type of the cluster. Valid values: IPV4, DUAL. - // +kubebuilder:validation:Optional - networkType?: null | string @go(NetworkType,*string) - - // The port on which the DB accepts connections - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter.Time in UTC. Default: A 30-minute window selected at random from an 8-hour block of time per regionE.g., 04:00-09:00 - // +kubebuilder:validation:Optional - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The weekly time range during which system maintenance can occur, in (UTC) e.g., wed:04:00-wed:04:30 - // +kubebuilder:validation:Optional - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ARN of a source DB cluster or DB instance if this DB cluster is to be created as a Read Replica. - // +kubebuilder:validation:Optional - replicationSourceIdentifier?: null | string @go(ReplicationSourceIdentifier,*string) - - // Nested attribute for point in time restore. More details below. - // +kubebuilder:validation:Optional - restoreToPointInTime?: [...#ClusterRestoreToPointInTimeParameters] @go(RestoreToPointInTime,[]ClusterRestoreToPointInTimeParameters) - - // The port on which the DB accepts connections - // +kubebuilder:validation:Optional - s3Import?: [...#ClusterS3ImportParameters] @go(S3Import,[]ClusterS3ImportParameters) - - // Nested attribute with scaling properties. Only valid when engine_mode is set to serverless. More details below. - // +kubebuilder:validation:Optional - scalingConfiguration?: [...#ScalingConfigurationParameters] @go(ScalingConfiguration,[]ScalingConfigurationParameters) - - // Nested attribute with scaling properties for ServerlessV2. Only valid when engine_mode is set to provisioned. More details below. - // +kubebuilder:validation:Optional - serverlessv2ScalingConfiguration?: [...#Serverlessv2ScalingConfigurationParameters] @go(Serverlessv2ScalingConfiguration,[]Serverlessv2ScalingConfigurationParameters) - - // Determines whether a final DB snapshot is created before the DB cluster is deleted. If true is specified, no DB snapshot is created. If false is specified, a DB snapshot is created before the DB cluster is deleted, using the value from final_snapshot_identifier. Default is false. - // +kubebuilder:validation:Optional - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // Specifies whether or not to create this cluster from a snapshot. You can use either the name or ARN when specifying a DB cluster snapshot, or the ARN when specifying a DB snapshot. Conflicts with global_cluster_identifier. Clusters cannot be restored from snapshot and joined to an existing global cluster in a single operation. See the AWS documentation or the Global Cluster Restored From Snapshot example for instructions on building a global cluster starting with a snapshot. - // +kubebuilder:validation:Optional - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // The source region for an encrypted replica DB cluster. - // +kubebuilder:validation:Optional - sourceRegion?: null | string @go(SourceRegion,*string) - - // Specifies whether the DB cluster is encrypted. The default is false for provisioned engine_mode and true for serverless engine_mode. When restoring an unencrypted snapshot_identifier, the kms_key_id argument must be provided to encrypt the restored cluster. - // +kubebuilder:validation:Optional - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // (Forces new for Multi-AZ DB clusters) Specifies the storage type to be associated with the DB cluster. For Aurora DB clusters, storage_type modifications can be done in-place. For Multi-AZ DB Clusters, the iops argument must also be set. Valid values are: "", aurora-iopt1 (Aurora DB Clusters); io1 (Multi-AZ DB Clusters). Default: "" (Aurora DB Clusters); io1 (Multi-AZ DB Clusters). - // +kubebuilder:validation:Optional - storageType?: null | string @go(StorageType,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // References to SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdRefs?: [...v1.#Reference] @go(VPCSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdSelector?: null | v1.#Selector @go(VPCSecurityGroupIDSelector,*v1.Selector) - - // List of VPC security groups to associate with the Cluster - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -#ClusterRestoreToPointInTimeInitParameters: { - // Date and time in UTC format to restore the database cluster to. Conflicts with use_latest_restorable_time. - restoreToTime?: null | string @go(RestoreToTime,*string) - - // Type of restore to be performed. - // Valid options are full-copy (default) and copy-on-write. - restoreType?: null | string @go(RestoreType,*string) - - // Set to true to restore the database cluster to the latest restorable backup time. Defaults to false. Conflicts with restore_to_time. - useLatestRestorableTime?: null | bool @go(UseLatestRestorableTime,*bool) -} - -#ClusterRestoreToPointInTimeObservation: { - // Date and time in UTC format to restore the database cluster to. Conflicts with use_latest_restorable_time. - restoreToTime?: null | string @go(RestoreToTime,*string) - - // Type of restore to be performed. - // Valid options are full-copy (default) and copy-on-write. - restoreType?: null | string @go(RestoreType,*string) - - // The identifier of the source database cluster from which to restore. - sourceClusterIdentifier?: null | string @go(SourceClusterIdentifier,*string) - - // Set to true to restore the database cluster to the latest restorable backup time. Defaults to false. Conflicts with restore_to_time. - useLatestRestorableTime?: null | bool @go(UseLatestRestorableTime,*bool) -} - -#ClusterRestoreToPointInTimeParameters: { - // Date and time in UTC format to restore the database cluster to. Conflicts with use_latest_restorable_time. - // +kubebuilder:validation:Optional - restoreToTime?: null | string @go(RestoreToTime,*string) - - // Type of restore to be performed. - // Valid options are full-copy (default) and copy-on-write. - // +kubebuilder:validation:Optional - restoreType?: null | string @go(RestoreType,*string) - - // The identifier of the source database cluster from which to restore. - // +crossplane:generate:reference:type=Cluster - // +kubebuilder:validation:Optional - sourceClusterIdentifier?: null | string @go(SourceClusterIdentifier,*string) - - // Reference to a Cluster to populate sourceClusterIdentifier. - // +kubebuilder:validation:Optional - sourceClusterIdentifierRef?: null | v1.#Reference @go(SourceClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster to populate sourceClusterIdentifier. - // +kubebuilder:validation:Optional - sourceClusterIdentifierSelector?: null | v1.#Selector @go(SourceClusterIdentifierSelector,*v1.Selector) - - // Set to true to restore the database cluster to the latest restorable backup time. Defaults to false. Conflicts with restore_to_time. - // +kubebuilder:validation:Optional - useLatestRestorableTime?: null | bool @go(UseLatestRestorableTime,*bool) -} - -#ClusterS3ImportInitParameters: { - // Can be blank, but is the path to your backup - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Role applied to load the data. - ingestionRole?: null | string @go(IngestionRole,*string) - - // Source engine for the backup - sourceEngine?: null | string @go(SourceEngine,*string) - - // Version of the source engine used to make the backup - sourceEngineVersion?: null | string @go(SourceEngineVersion,*string) -} - -#ClusterS3ImportObservation: { - // The bucket name where your backup is stored - bucketName?: null | string @go(BucketName,*string) - - // Can be blank, but is the path to your backup - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Role applied to load the data. - ingestionRole?: null | string @go(IngestionRole,*string) - - // Source engine for the backup - sourceEngine?: null | string @go(SourceEngine,*string) - - // Version of the source engine used to make the backup - sourceEngineVersion?: null | string @go(SourceEngineVersion,*string) -} - -#ClusterS3ImportParameters: { - // The bucket name where your backup is stored - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Reference to a Bucket in s3 to populate bucketName. - // +kubebuilder:validation:Optional - bucketNameRef?: null | v1.#Reference @go(BucketNameRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucketName. - // +kubebuilder:validation:Optional - bucketNameSelector?: null | v1.#Selector @go(BucketNameSelector,*v1.Selector) - - // Can be blank, but is the path to your backup - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Role applied to load the data. - // +kubebuilder:validation:Optional - ingestionRole?: null | string @go(IngestionRole,*string) - - // Source engine for the backup - // +kubebuilder:validation:Optional - sourceEngine?: null | string @go(SourceEngine,*string) - - // Version of the source engine used to make the backup - // +kubebuilder:validation:Optional - sourceEngineVersion?: null | string @go(SourceEngineVersion,*string) -} - -#ScalingConfigurationInitParameters: { - // Whether to enable automatic pause. A DB cluster can be paused only when it's idle (it has no connections). If a DB cluster is paused for more than seven days, the DB cluster might be backed up with a snapshot. In this case, the DB cluster is restored when there is a request to connect to it. Defaults to true. - autoPause?: null | bool @go(AutoPause,*bool) - - // The maximum capacity for an Aurora DB cluster in serverless DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are 1, 2, 4, 8, 16, 32, 64, 128, 256. Valid Aurora PostgreSQL capacity values are (2, 4, 8, 16, 32, 64, 192, and 384). Defaults to 16. - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // The minimum capacity for an Aurora DB cluster in serverless DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are 1, 2, 4, 8, 16, 32, 64, 128, 256. Valid Aurora PostgreSQL capacity values are (2, 4, 8, 16, 32, 64, 192, and 384). Defaults to 1. - minCapacity?: null | float64 @go(MinCapacity,*float64) - - // The time, in seconds, before an Aurora DB cluster in serverless mode is paused. Valid values are 300 through 86400. Defaults to 300. - secondsUntilAutoPause?: null | float64 @go(SecondsUntilAutoPause,*float64) - - // The action to take when the timeout is reached. Valid values: ForceApplyCapacityChange, RollbackCapacityChange. Defaults to RollbackCapacityChange. See documentation. - timeoutAction?: null | string @go(TimeoutAction,*string) -} - -#ScalingConfigurationObservation: { - // Whether to enable automatic pause. A DB cluster can be paused only when it's idle (it has no connections). If a DB cluster is paused for more than seven days, the DB cluster might be backed up with a snapshot. In this case, the DB cluster is restored when there is a request to connect to it. Defaults to true. - autoPause?: null | bool @go(AutoPause,*bool) - - // The maximum capacity for an Aurora DB cluster in serverless DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are 1, 2, 4, 8, 16, 32, 64, 128, 256. Valid Aurora PostgreSQL capacity values are (2, 4, 8, 16, 32, 64, 192, and 384). Defaults to 16. - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // The minimum capacity for an Aurora DB cluster in serverless DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are 1, 2, 4, 8, 16, 32, 64, 128, 256. Valid Aurora PostgreSQL capacity values are (2, 4, 8, 16, 32, 64, 192, and 384). Defaults to 1. - minCapacity?: null | float64 @go(MinCapacity,*float64) - - // The time, in seconds, before an Aurora DB cluster in serverless mode is paused. Valid values are 300 through 86400. Defaults to 300. - secondsUntilAutoPause?: null | float64 @go(SecondsUntilAutoPause,*float64) - - // The action to take when the timeout is reached. Valid values: ForceApplyCapacityChange, RollbackCapacityChange. Defaults to RollbackCapacityChange. See documentation. - timeoutAction?: null | string @go(TimeoutAction,*string) -} - -#ScalingConfigurationParameters: { - // Whether to enable automatic pause. A DB cluster can be paused only when it's idle (it has no connections). If a DB cluster is paused for more than seven days, the DB cluster might be backed up with a snapshot. In this case, the DB cluster is restored when there is a request to connect to it. Defaults to true. - // +kubebuilder:validation:Optional - autoPause?: null | bool @go(AutoPause,*bool) - - // The maximum capacity for an Aurora DB cluster in serverless DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are 1, 2, 4, 8, 16, 32, 64, 128, 256. Valid Aurora PostgreSQL capacity values are (2, 4, 8, 16, 32, 64, 192, and 384). Defaults to 16. - // +kubebuilder:validation:Optional - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // The minimum capacity for an Aurora DB cluster in serverless DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are 1, 2, 4, 8, 16, 32, 64, 128, 256. Valid Aurora PostgreSQL capacity values are (2, 4, 8, 16, 32, 64, 192, and 384). Defaults to 1. - // +kubebuilder:validation:Optional - minCapacity?: null | float64 @go(MinCapacity,*float64) - - // The time, in seconds, before an Aurora DB cluster in serverless mode is paused. Valid values are 300 through 86400. Defaults to 300. - // +kubebuilder:validation:Optional - secondsUntilAutoPause?: null | float64 @go(SecondsUntilAutoPause,*float64) - - // The action to take when the timeout is reached. Valid values: ForceApplyCapacityChange, RollbackCapacityChange. Defaults to RollbackCapacityChange. See documentation. - // +kubebuilder:validation:Optional - timeoutAction?: null | string @go(TimeoutAction,*string) -} - -#Serverlessv2ScalingConfigurationInitParameters: { - // The maximum capacity for an Aurora DB cluster in serverless DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are 1, 2, 4, 8, 16, 32, 64, 128, 256. Valid Aurora PostgreSQL capacity values are (2, 4, 8, 16, 32, 64, 192, and 384). Defaults to 16. - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // The minimum capacity for an Aurora DB cluster in serverless DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are 1, 2, 4, 8, 16, 32, 64, 128, 256. Valid Aurora PostgreSQL capacity values are (2, 4, 8, 16, 32, 64, 192, and 384). Defaults to 1. - minCapacity?: null | float64 @go(MinCapacity,*float64) -} - -#Serverlessv2ScalingConfigurationObservation: { - // The maximum capacity for an Aurora DB cluster in serverless DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are 1, 2, 4, 8, 16, 32, 64, 128, 256. Valid Aurora PostgreSQL capacity values are (2, 4, 8, 16, 32, 64, 192, and 384). Defaults to 16. - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // The minimum capacity for an Aurora DB cluster in serverless DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are 1, 2, 4, 8, 16, 32, 64, 128, 256. Valid Aurora PostgreSQL capacity values are (2, 4, 8, 16, 32, 64, 192, and 384). Defaults to 1. - minCapacity?: null | float64 @go(MinCapacity,*float64) -} - -#Serverlessv2ScalingConfigurationParameters: { - // The maximum capacity for an Aurora DB cluster in serverless DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are 1, 2, 4, 8, 16, 32, 64, 128, 256. Valid Aurora PostgreSQL capacity values are (2, 4, 8, 16, 32, 64, 192, and 384). Defaults to 16. - // +kubebuilder:validation:Optional - maxCapacity?: null | float64 @go(MaxCapacity,*float64) - - // The minimum capacity for an Aurora DB cluster in serverless DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are 1, 2, 4, 8, 16, 32, 64, 128, 256. Valid Aurora PostgreSQL capacity values are (2, 4, 8, 16, 32, 64, 192, and 384). Defaults to 1. - // +kubebuilder:validation:Optional - minCapacity?: null | float64 @go(MinCapacity,*float64) -} - -// ClusterSpec defines the desired state of Cluster -#ClusterSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInitParameters @go(InitProvider) -} - -// ClusterStatus defines the observed state of Cluster. -#ClusterStatus: { - v1.#ResourceStatus - atProvider?: #ClusterObservation @go(AtProvider) -} - -// Cluster is the Schema for the Clusters API. Manages an RDS Aurora Cluster -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Cluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ClusterSpec @go(Spec) - status?: #ClusterStatus @go(Status) -} - -// ClusterList contains a list of Clusters -#ClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Cluster] @go(Items,[]Cluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusteractivitystream_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusteractivitystream_types_go_gen.cue deleted file mode 100644 index 7d2ecbd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusteractivitystream_types_go_gen.cue +++ /dev/null @@ -1,127 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterActivityStreamInitParameters: { - // Specifies whether the database activity stream includes engine-native audit fields. This option only applies to an Oracle DB instance. By default, no engine-native audit fields are included. Defaults false. - engineNativeAuditFieldsIncluded?: null | bool @go(EngineNativeAuditFieldsIncluded,*bool) - - // Specifies the mode of the database activity stream. Database events such as a change or access generate an activity stream event. The database session can handle these events either synchronously or asynchronously. One of: sync, async. - mode?: null | string @go(Mode,*string) -} - -#ClusterActivityStreamObservation: { - // Specifies whether the database activity stream includes engine-native audit fields. This option only applies to an Oracle DB instance. By default, no engine-native audit fields are included. Defaults false. - engineNativeAuditFieldsIncluded?: null | bool @go(EngineNativeAuditFieldsIncluded,*bool) - - // The Amazon Resource Name (ARN) of the DB cluster. - id?: null | string @go(ID,*string) - - // The AWS KMS key identifier for encrypting messages in the database activity stream. The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The name of the Amazon Kinesis data stream to be used for the database activity stream. - kinesisStreamName?: null | string @go(KinesisStreamName,*string) - - // Specifies the mode of the database activity stream. Database events such as a change or access generate an activity stream event. The database session can handle these events either synchronously or asynchronously. One of: sync, async. - mode?: null | string @go(Mode,*string) - - // The Amazon Resource Name (ARN) of the DB cluster. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#ClusterActivityStreamParameters: { - // Specifies whether the database activity stream includes engine-native audit fields. This option only applies to an Oracle DB instance. By default, no engine-native audit fields are included. Defaults false. - // +kubebuilder:validation:Optional - engineNativeAuditFieldsIncluded?: null | bool @go(EngineNativeAuditFieldsIncluded,*bool) - - // The AWS KMS key identifier for encrypting messages in the database activity stream. The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Specifies the mode of the database activity stream. Database events such as a change or access generate an activity stream event. The database session can handle these events either synchronously or asynchronously. One of: sync, async. - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of the DB cluster. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a Cluster in rds to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a Cluster in rds to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) -} - -// ClusterActivityStreamSpec defines the desired state of ClusterActivityStream -#ClusterActivityStreamSpec: { - v1.#ResourceSpec - forProvider: #ClusterActivityStreamParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterActivityStreamInitParameters @go(InitProvider) -} - -// ClusterActivityStreamStatus defines the observed state of ClusterActivityStream. -#ClusterActivityStreamStatus: { - v1.#ResourceStatus - atProvider?: #ClusterActivityStreamObservation @go(AtProvider) -} - -// ClusterActivityStream is the Schema for the ClusterActivityStreams API. Manages RDS Aurora Cluster Database Activity Streams -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterActivityStream: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.mode) || (has(self.initProvider) && has(self.initProvider.mode))",message="spec.forProvider.mode is a required parameter" - spec: #ClusterActivityStreamSpec @go(Spec) - status?: #ClusterActivityStreamStatus @go(Status) -} - -// ClusterActivityStreamList contains a list of ClusterActivityStreams -#ClusterActivityStreamList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterActivityStream] @go(Items,[]ClusterActivityStream) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusterendpoint_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusterendpoint_types_go_gen.cue deleted file mode 100644 index a9360f2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusterendpoint_types_go_gen.cue +++ /dev/null @@ -1,137 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterEndpointInitParameters: { - // The type of the endpoint. One of: READER , ANY . - customEndpointType?: null | string @go(CustomEndpointType,*string) - - // List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty. Conflicts with static_members. - excludedMembers?: [...null | string] @go(ExcludedMembers,[]*string) - - // List of DB instance identifiers that are part of the custom endpoint group. Conflicts with excluded_members. - staticMembers?: [...null | string] @go(StaticMembers,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterEndpointObservation: { - // Amazon Resource Name (ARN) of cluster - arn?: null | string @go(Arn,*string) - - // The cluster identifier. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // The type of the endpoint. One of: READER , ANY . - customEndpointType?: null | string @go(CustomEndpointType,*string) - - // A custom endpoint for the Aurora cluster - endpoint?: null | string @go(Endpoint,*string) - - // List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty. Conflicts with static_members. - excludedMembers?: [...null | string] @go(ExcludedMembers,[]*string) - - // The RDS Cluster Endpoint Identifier - id?: null | string @go(ID,*string) - - // List of DB instance identifiers that are part of the custom endpoint group. Conflicts with excluded_members. - staticMembers?: [...null | string] @go(StaticMembers,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ClusterEndpointParameters: { - // The cluster identifier. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // Reference to a Cluster in rds to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierRef?: null | v1.#Reference @go(ClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster in rds to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierSelector?: null | v1.#Selector @go(ClusterIdentifierSelector,*v1.Selector) - - // The type of the endpoint. One of: READER , ANY . - // +kubebuilder:validation:Optional - customEndpointType?: null | string @go(CustomEndpointType,*string) - - // List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty. Conflicts with static_members. - // +kubebuilder:validation:Optional - excludedMembers?: [...null | string] @go(ExcludedMembers,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // List of DB instance identifiers that are part of the custom endpoint group. Conflicts with excluded_members. - // +kubebuilder:validation:Optional - staticMembers?: [...null | string] @go(StaticMembers,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ClusterEndpointSpec defines the desired state of ClusterEndpoint -#ClusterEndpointSpec: { - v1.#ResourceSpec - forProvider: #ClusterEndpointParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterEndpointInitParameters @go(InitProvider) -} - -// ClusterEndpointStatus defines the observed state of ClusterEndpoint. -#ClusterEndpointStatus: { - v1.#ResourceStatus - atProvider?: #ClusterEndpointObservation @go(AtProvider) -} - -// ClusterEndpoint is the Schema for the ClusterEndpoints API. Manages an RDS Aurora Cluster Endpoint -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterEndpoint: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.customEndpointType) || (has(self.initProvider) && has(self.initProvider.customEndpointType))",message="spec.forProvider.customEndpointType is a required parameter" - spec: #ClusterEndpointSpec @go(Spec) - status?: #ClusterEndpointStatus @go(Status) -} - -// ClusterEndpointList contains a list of ClusterEndpoints -#ClusterEndpointList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterEndpoint] @go(Items,[]ClusterEndpoint) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusterinstance_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusterinstance_types_go_gen.cue deleted file mode 100644 index 58dbb16..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusterinstance_types_go_gen.cue +++ /dev/null @@ -1,365 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterInstanceInitParameters: { - // Specifies whether any database modifications - // are applied immediately, or during the next maintenance window. Default isfalse. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default true. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The EC2 Availability Zone that the DB instance is created in. See docs about the details. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The identifier of the CA certificate for the DB instance. - caCertIdentifier?: null | string @go(CACertIdentifier,*string) - - // defined tags from the DB instance to snapshots of the DB instance. Default false. - copyTagsToSnapshot?: null | bool @go(CopyTagsToSnapshot,*bool) - - // The name of the DB parameter group to associate with this instance. - dbParameterGroupName?: null | string @go(DBParameterGroupName,*string) - - // The name of the database engine to be used for the RDS instance. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql. - // For information on the difference between the available Aurora MySQL engines - // see Comparison between Aurora MySQL 1 and Aurora MySQL 2 - // in the Amazon RDS User Guide. - engine?: null | string @go(Engine,*string) - - // The database engine version. - engineVersion?: null | string @go(EngineVersion,*string) - - // The instance class to use. For details on CPU - // and memory, see Scaling Aurora DB Instances. Aurora uses db.* instance classes/types. Please see AWS Documentation for currently available instance classes and complete details. - instanceClass?: null | string @go(InstanceClass,*string) - - // The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. - monitoringInterval?: null | float64 @go(MonitoringInterval,*float64) - - // Specifies whether Performance Insights is enabled or not. - performanceInsightsEnabled?: null | bool @go(PerformanceInsightsEnabled,*bool) - - // Amount of time in days to retain Performance Insights data. Valid values are 7, 731 (2 years) or a multiple of 31. When specifying performance_insights_retention_period, performance_insights_enabled needs to be set to true. Defaults to '7'. - performanceInsightsRetentionPeriod?: null | float64 @go(PerformanceInsightsRetentionPeriod,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled. Eg: "04:00-09:00". NOTE: If preferred_backup_window is set at the cluster level, this argument must be omitted. - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The window to perform maintenance in. - // Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer. - promotionTier?: null | float64 @go(PromotionTier,*float64) - - // Bool to control if instance is publicly accessible. - // Default false. See the documentation on Creating DB Instances for more - // details on controlling this property. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterInstanceObservation: { - // Specifies whether any database modifications - // are applied immediately, or during the next maintenance window. Default isfalse. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Amazon Resource Name (ARN) of cluster instance - arn?: null | string @go(Arn,*string) - - // Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default true. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The EC2 Availability Zone that the DB instance is created in. See docs about the details. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The identifier of the CA certificate for the DB instance. - caCertIdentifier?: null | string @go(CACertIdentifier,*string) - - // The identifier of the aws_rds_cluster in which to launch this instance. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // defined tags from the DB instance to snapshots of the DB instance. Default false. - copyTagsToSnapshot?: null | bool @go(CopyTagsToSnapshot,*bool) - - // The name of the DB parameter group to associate with this instance. - dbParameterGroupName?: null | string @go(DBParameterGroupName,*string) - - // A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name of the attached aws_rds_cluster. - dbSubnetGroupName?: null | string @go(DBSubnetGroupName,*string) - - // The region-unique, immutable identifier for the DB instance. - dbiResourceId?: null | string @go(DbiResourceID,*string) - - // The DNS address for this instance. May not be writable - endpoint?: null | string @go(Endpoint,*string) - - // The name of the database engine to be used for the RDS instance. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql. - // For information on the difference between the available Aurora MySQL engines - // see Comparison between Aurora MySQL 1 and Aurora MySQL 2 - // in the Amazon RDS User Guide. - engine?: null | string @go(Engine,*string) - - // The database engine version. - engineVersion?: null | string @go(EngineVersion,*string) - - // The database engine version - engineVersionActual?: null | string @go(EngineVersionActual,*string) - - // The Instance identifier - id?: null | string @go(ID,*string) - - // The instance class to use. For details on CPU - // and memory, see Scaling Aurora DB Instances. Aurora uses db.* instance classes/types. Please see AWS Documentation for currently available instance classes and complete details. - instanceClass?: null | string @go(InstanceClass,*string) - - // The ARN for the KMS encryption key if one is set to the cluster. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. - monitoringInterval?: null | float64 @go(MonitoringInterval,*float64) - - // The ARN for the IAM role that permits RDS to send - // enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation - // what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances. - monitoringRoleArn?: null | string @go(MonitoringRoleArn,*string) - - // The network type of the DB instance. - networkType?: null | string @go(NetworkType,*string) - - // Specifies whether Performance Insights is enabled or not. - performanceInsightsEnabled?: null | bool @go(PerformanceInsightsEnabled,*bool) - - // ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true. - performanceInsightsKmsKeyId?: null | string @go(PerformanceInsightsKMSKeyID,*string) - - // Amount of time in days to retain Performance Insights data. Valid values are 7, 731 (2 years) or a multiple of 31. When specifying performance_insights_retention_period, performance_insights_enabled needs to be set to true. Defaults to '7'. - performanceInsightsRetentionPeriod?: null | float64 @go(PerformanceInsightsRetentionPeriod,*float64) - - // The database port - port?: null | float64 @go(Port,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled. Eg: "04:00-09:00". NOTE: If preferred_backup_window is set at the cluster level, this argument must be omitted. - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The window to perform maintenance in. - // Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer. - promotionTier?: null | float64 @go(PromotionTier,*float64) - - // Bool to control if instance is publicly accessible. - // Default false. See the documentation on Creating DB Instances for more - // details on controlling this property. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Specifies whether the DB cluster is encrypted. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // – Boolean indicating if this instance is writable. False indicates this instance is a read replica. - writer?: null | bool @go(Writer,*bool) -} - -#ClusterInstanceParameters: { - // Specifies whether any database modifications - // are applied immediately, or during the next maintenance window. Default isfalse. - // +kubebuilder:validation:Optional - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Default true. - // +kubebuilder:validation:Optional - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The EC2 Availability Zone that the DB instance is created in. See docs about the details. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The identifier of the CA certificate for the DB instance. - // +kubebuilder:validation:Optional - caCertIdentifier?: null | string @go(CACertIdentifier,*string) - - // The identifier of the aws_rds_cluster in which to launch this instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // Reference to a Cluster in rds to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierRef?: null | v1.#Reference @go(ClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster in rds to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierSelector?: null | v1.#Selector @go(ClusterIdentifierSelector,*v1.Selector) - - // defined tags from the DB instance to snapshots of the DB instance. Default false. - // +kubebuilder:validation:Optional - copyTagsToSnapshot?: null | bool @go(CopyTagsToSnapshot,*bool) - - // The name of the DB parameter group to associate with this instance. - // +kubebuilder:validation:Optional - dbParameterGroupName?: null | string @go(DBParameterGroupName,*string) - - // A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name of the attached aws_rds_cluster. - // +crossplane:generate:reference:type=SubnetGroup - // +kubebuilder:validation:Optional - dbSubnetGroupName?: null | string @go(DBSubnetGroupName,*string) - - // Reference to a SubnetGroup to populate dbSubnetGroupName. - // +kubebuilder:validation:Optional - dbSubnetGroupNameRef?: null | v1.#Reference @go(DBSubnetGroupNameRef,*v1.Reference) - - // Selector for a SubnetGroup to populate dbSubnetGroupName. - // +kubebuilder:validation:Optional - dbSubnetGroupNameSelector?: null | v1.#Selector @go(DBSubnetGroupNameSelector,*v1.Selector) - - // The name of the database engine to be used for the RDS instance. Defaults to aurora. Valid Values: aurora, aurora-mysql, aurora-postgresql. - // For information on the difference between the available Aurora MySQL engines - // see Comparison between Aurora MySQL 1 and Aurora MySQL 2 - // in the Amazon RDS User Guide. - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // The database engine version. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // The instance class to use. For details on CPU - // and memory, see Scaling Aurora DB Instances. Aurora uses db.* instance classes/types. Please see AWS Documentation for currently available instance classes and complete details. - // +kubebuilder:validation:Optional - instanceClass?: null | string @go(InstanceClass,*string) - - // The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. - // +kubebuilder:validation:Optional - monitoringInterval?: null | float64 @go(MonitoringInterval,*float64) - - // The ARN for the IAM role that permits RDS to send - // enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation - // what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - monitoringRoleArn?: null | string @go(MonitoringRoleArn,*string) - - // Reference to a Role in iam to populate monitoringRoleArn. - // +kubebuilder:validation:Optional - monitoringRoleArnRef?: null | v1.#Reference @go(MonitoringRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate monitoringRoleArn. - // +kubebuilder:validation:Optional - monitoringRoleArnSelector?: null | v1.#Selector @go(MonitoringRoleArnSelector,*v1.Selector) - - // Specifies whether Performance Insights is enabled or not. - // +kubebuilder:validation:Optional - performanceInsightsEnabled?: null | bool @go(PerformanceInsightsEnabled,*bool) - - // ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - performanceInsightsKmsKeyId?: null | string @go(PerformanceInsightsKMSKeyID,*string) - - // Reference to a Key in kms to populate performanceInsightsKmsKeyId. - // +kubebuilder:validation:Optional - performanceInsightsKmsKeyIdRef?: null | v1.#Reference @go(PerformanceInsightsKMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate performanceInsightsKmsKeyId. - // +kubebuilder:validation:Optional - performanceInsightsKmsKeyIdSelector?: null | v1.#Selector @go(PerformanceInsightsKMSKeyIDSelector,*v1.Selector) - - // Amount of time in days to retain Performance Insights data. Valid values are 7, 731 (2 years) or a multiple of 31. When specifying performance_insights_retention_period, performance_insights_enabled needs to be set to true. Defaults to '7'. - // +kubebuilder:validation:Optional - performanceInsightsRetentionPeriod?: null | float64 @go(PerformanceInsightsRetentionPeriod,*float64) - - // The daily time range during which automated backups are created if automated backups are enabled. Eg: "04:00-09:00". NOTE: If preferred_backup_window is set at the cluster level, this argument must be omitted. - // +kubebuilder:validation:Optional - preferredBackupWindow?: null | string @go(PreferredBackupWindow,*string) - - // The window to perform maintenance in. - // Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". - // +kubebuilder:validation:Optional - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer. - // +kubebuilder:validation:Optional - promotionTier?: null | float64 @go(PromotionTier,*float64) - - // Bool to control if instance is publicly accessible. - // Default false. See the documentation on Creating DB Instances for more - // details on controlling this property. - // +kubebuilder:validation:Optional - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ClusterInstanceSpec defines the desired state of ClusterInstance -#ClusterInstanceSpec: { - v1.#ResourceSpec - forProvider: #ClusterInstanceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInstanceInitParameters @go(InitProvider) -} - -// ClusterInstanceStatus defines the observed state of ClusterInstance. -#ClusterInstanceStatus: { - v1.#ResourceStatus - atProvider?: #ClusterInstanceObservation @go(AtProvider) -} - -// ClusterInstance is the Schema for the ClusterInstances API. Provides an RDS Cluster Resource Instance -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterInstance: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceClass) || (has(self.initProvider) && has(self.initProvider.instanceClass))",message="spec.forProvider.instanceClass is a required parameter" - spec: #ClusterInstanceSpec @go(Spec) - status?: #ClusterInstanceStatus @go(Status) -} - -// ClusterInstanceList contains a list of ClusterInstances -#ClusterInstanceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterInstance] @go(Items,[]ClusterInstance) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusterparametergroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusterparametergroup_types_go_gen.cue deleted file mode 100644 index a1b4a37..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusterparametergroup_types_go_gen.cue +++ /dev/null @@ -1,159 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterParameterGroupInitParameters: { - // The description of the DB cluster parameter group. - description?: null | string @go(Description,*string) - - // The family of the DB cluster parameter group. - family?: null | string @go(Family,*string) - - // A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via aws rds describe-db-cluster-parameters after initial creation of the group. - parameter?: [...#ClusterParameterGroupParameterInitParameters] @go(Parameter,[]ClusterParameterGroupParameterInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterParameterGroupObservation: { - // The ARN of the db cluster parameter group. - arn?: null | string @go(Arn,*string) - - // The description of the DB cluster parameter group. - description?: null | string @go(Description,*string) - - // The family of the DB cluster parameter group. - family?: null | string @go(Family,*string) - - // The db cluster parameter group name. - id?: null | string @go(ID,*string) - - // A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via aws rds describe-db-cluster-parameters after initial creation of the group. - parameter?: [...#ClusterParameterGroupParameterObservation] @go(Parameter,[]ClusterParameterGroupParameterObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ClusterParameterGroupParameterInitParameters: { - // "immediate" (default), or "pending-reboot". Some - // engines can't apply some parameters without a reboot, and you will need to - // specify "pending-reboot" here. - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the DB cluster parameter group. - name?: null | string @go(Name,*string) - - // The value of the DB parameter. - value?: null | string @go(Value,*string) -} - -#ClusterParameterGroupParameterObservation: { - // "immediate" (default), or "pending-reboot". Some - // engines can't apply some parameters without a reboot, and you will need to - // specify "pending-reboot" here. - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the DB cluster parameter group. - name?: null | string @go(Name,*string) - - // The value of the DB parameter. - value?: null | string @go(Value,*string) -} - -#ClusterParameterGroupParameterParameters: { - // "immediate" (default), or "pending-reboot". Some - // engines can't apply some parameters without a reboot, and you will need to - // specify "pending-reboot" here. - // +kubebuilder:validation:Optional - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the DB cluster parameter group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of the DB parameter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ClusterParameterGroupParameters: { - // The description of the DB cluster parameter group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The family of the DB cluster parameter group. - // +kubebuilder:validation:Optional - family?: null | string @go(Family,*string) - - // A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via aws rds describe-db-cluster-parameters after initial creation of the group. - // +kubebuilder:validation:Optional - parameter?: [...#ClusterParameterGroupParameterParameters] @go(Parameter,[]ClusterParameterGroupParameterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ClusterParameterGroupSpec defines the desired state of ClusterParameterGroup -#ClusterParameterGroupSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameterGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterParameterGroupInitParameters @go(InitProvider) -} - -// ClusterParameterGroupStatus defines the observed state of ClusterParameterGroup. -#ClusterParameterGroupStatus: { - v1.#ResourceStatus - atProvider?: #ClusterParameterGroupObservation @go(AtProvider) -} - -// ClusterParameterGroup is the Schema for the ClusterParameterGroups API. Provides an RDS DB cluster parameter group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterParameterGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.family) || (has(self.initProvider) && has(self.initProvider.family))",message="spec.forProvider.family is a required parameter" - spec: #ClusterParameterGroupSpec @go(Spec) - status?: #ClusterParameterGroupStatus @go(Status) -} - -// ClusterParameterGroupList contains a list of ClusterParameterGroups -#ClusterParameterGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterParameterGroup] @go(Items,[]ClusterParameterGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusterroleassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusterroleassociation_types_go_gen.cue deleted file mode 100644 index f9c376f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clusterroleassociation_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterRoleAssociationInitParameters: { - // Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the SupportedFeatureNames list returned by AWS CLI rds describe-db-engine-versions. - featureName?: null | string @go(FeatureName,*string) -} - -#ClusterRoleAssociationObservation: { - // DB Cluster Identifier to associate with the IAM Role. - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the SupportedFeatureNames list returned by AWS CLI rds describe-db-engine-versions. - featureName?: null | string @go(FeatureName,*string) - - // DB Cluster Identifier and IAM Role ARN separated by a comma (,) - id?: null | string @go(ID,*string) - - // Amazon Resource Name (ARN) of the IAM Role to associate with the DB Cluster. - roleArn?: null | string @go(RoleArn,*string) -} - -#ClusterRoleAssociationParameters: { - // DB Cluster Identifier to associate with the IAM Role. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // Reference to a Cluster in rds to populate dbClusterIdentifier. - // +kubebuilder:validation:Optional - dbClusterIdentifierRef?: null | v1.#Reference @go(DBClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster in rds to populate dbClusterIdentifier. - // +kubebuilder:validation:Optional - dbClusterIdentifierSelector?: null | v1.#Selector @go(DBClusterIdentifierSelector,*v1.Selector) - - // Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the SupportedFeatureNames list returned by AWS CLI rds describe-db-engine-versions. - // +kubebuilder:validation:Optional - featureName?: null | string @go(FeatureName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Resource Name (ARN) of the IAM Role to associate with the DB Cluster. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -// ClusterRoleAssociationSpec defines the desired state of ClusterRoleAssociation -#ClusterRoleAssociationSpec: { - v1.#ResourceSpec - forProvider: #ClusterRoleAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterRoleAssociationInitParameters @go(InitProvider) -} - -// ClusterRoleAssociationStatus defines the observed state of ClusterRoleAssociation. -#ClusterRoleAssociationStatus: { - v1.#ResourceStatus - atProvider?: #ClusterRoleAssociationObservation @go(AtProvider) -} - -// ClusterRoleAssociation is the Schema for the ClusterRoleAssociations API. Manages a RDS DB Cluster association with an IAM Role. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterRoleAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.featureName) || (has(self.initProvider) && has(self.initProvider.featureName))",message="spec.forProvider.featureName is a required parameter" - spec: #ClusterRoleAssociationSpec @go(Spec) - status?: #ClusterRoleAssociationStatus @go(Status) -} - -// ClusterRoleAssociationList contains a list of ClusterRoleAssociations -#ClusterRoleAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterRoleAssociation] @go(Items,[]ClusterRoleAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clustersnapshot_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clustersnapshot_types_go_gen.cue deleted file mode 100644 index 7d748e6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_clustersnapshot_types_go_gen.cue +++ /dev/null @@ -1,146 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterSnapshotInitParameters: { - // The Identifier for the snapshot. - dbClusterSnapshotIdentifier?: null | string @go(DBClusterSnapshotIdentifier,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterSnapshotObservation: { - // Allocated storage size in gigabytes (GB). - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in. - availabilityZones?: [...null | string] @go(AvailabilityZones,[]*string) - - // The DB Cluster Identifier from which to take the snapshot. - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // The Amazon Resource Name (ARN) for the DB Cluster Snapshot. - dbClusterSnapshotArn?: null | string @go(DBClusterSnapshotArn,*string) - - // The Identifier for the snapshot. - dbClusterSnapshotIdentifier?: null | string @go(DBClusterSnapshotIdentifier,*string) - - // Name of the database engine. - engine?: null | string @go(Engine,*string) - - // Version of the database engine for this DB cluster snapshot. - engineVersion?: null | string @go(EngineVersion,*string) - id?: null | string @go(ID,*string) - - // If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // License model information for the restored DB cluster. - licenseModel?: null | string @go(LicenseModel,*string) - - // Port that the DB cluster was listening on at the time of the snapshot. - port?: null | float64 @go(Port,*float64) - snapshotType?: null | string @go(SnapshotType,*string) - - // The Amazon Resource Name (ARN) for the DB Cluster Snapshot. - sourceDbClusterSnapshotArn?: null | string @go(SourceDBClusterSnapshotArn,*string) - - // The status of this DB Cluster Snapshot. - status?: null | string @go(Status,*string) - - // Whether the DB cluster snapshot is encrypted. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The VPC ID associated with the DB cluster snapshot. - vpcId?: null | string @go(VPCID,*string) -} - -#ClusterSnapshotParameters: { - // The DB Cluster Identifier from which to take the snapshot. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // Reference to a Cluster in rds to populate dbClusterIdentifier. - // +kubebuilder:validation:Optional - dbClusterIdentifierRef?: null | v1.#Reference @go(DBClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster in rds to populate dbClusterIdentifier. - // +kubebuilder:validation:Optional - dbClusterIdentifierSelector?: null | v1.#Selector @go(DBClusterIdentifierSelector,*v1.Selector) - - // The Identifier for the snapshot. - // +kubebuilder:validation:Optional - dbClusterSnapshotIdentifier?: null | string @go(DBClusterSnapshotIdentifier,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ClusterSnapshotSpec defines the desired state of ClusterSnapshot -#ClusterSnapshotSpec: { - v1.#ResourceSpec - forProvider: #ClusterSnapshotParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterSnapshotInitParameters @go(InitProvider) -} - -// ClusterSnapshotStatus defines the observed state of ClusterSnapshot. -#ClusterSnapshotStatus: { - v1.#ResourceStatus - atProvider?: #ClusterSnapshotObservation @go(AtProvider) -} - -// ClusterSnapshot is the Schema for the ClusterSnapshots API. Manages an RDS database cluster snapshot. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ClusterSnapshot: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dbClusterSnapshotIdentifier) || (has(self.initProvider) && has(self.initProvider.dbClusterSnapshotIdentifier))",message="spec.forProvider.dbClusterSnapshotIdentifier is a required parameter" - spec: #ClusterSnapshotSpec @go(Spec) - status?: #ClusterSnapshotStatus @go(Status) -} - -// ClusterSnapshotList contains a list of ClusterSnapshots -#ClusterSnapshotList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ClusterSnapshot] @go(Items,[]ClusterSnapshot) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_dbinstanceautomatedbackupsreplication_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_dbinstanceautomatedbackupsreplication_types_go_gen.cue deleted file mode 100644 index 298f67b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_dbinstanceautomatedbackupsreplication_types_go_gen.cue +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DBInstanceAutomatedBackupsReplicationInitParameters: { - // A URL that contains a Signature Version 4 signed request for the StartDBInstanceAutomatedBackupsReplication action to be called in the AWS Region of the source DB instance. - preSignedUrl?: null | string @go(PreSignedURL,*string) - - // The retention period for the replicated automated backups, defaults to 7. - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) -} - -#DBInstanceAutomatedBackupsReplicationObservation: { - // The Amazon Resource Name (ARN) of the replicated automated backups. - id?: null | string @go(ID,*string) - - // The AWS KMS key identifier for encryption of the replicated automated backups. The KMS key ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination AWS Region, for example, arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // A URL that contains a Signature Version 4 signed request for the StartDBInstanceAutomatedBackupsReplication action to be called in the AWS Region of the source DB instance. - preSignedUrl?: null | string @go(PreSignedURL,*string) - - // The retention period for the replicated automated backups, defaults to 7. - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) - - // The Amazon Resource Name (ARN) of the source DB instance for the replicated automated backups, for example, arn:aws:rds:us-west-2:123456789012:db:mydatabase. - sourceDbInstanceArn?: null | string @go(SourceDBInstanceArn,*string) -} - -#DBInstanceAutomatedBackupsReplicationParameters: { - // The AWS KMS key identifier for encryption of the replicated automated backups. The KMS key ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination AWS Region, for example, arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // A URL that contains a Signature Version 4 signed request for the StartDBInstanceAutomatedBackupsReplication action to be called in the AWS Region of the source DB instance. - // +kubebuilder:validation:Optional - preSignedUrl?: null | string @go(PreSignedURL,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The retention period for the replicated automated backups, defaults to 7. - // +kubebuilder:validation:Optional - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) - - // The Amazon Resource Name (ARN) of the source DB instance for the replicated automated backups, for example, arn:aws:rds:us-west-2:123456789012:db:mydatabase. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - sourceDbInstanceArn?: null | string @go(SourceDBInstanceArn,*string) - - // Reference to a Instance in rds to populate sourceDbInstanceArn. - // +kubebuilder:validation:Optional - sourceDbInstanceArnRef?: null | v1.#Reference @go(SourceDBInstanceArnRef,*v1.Reference) - - // Selector for a Instance in rds to populate sourceDbInstanceArn. - // +kubebuilder:validation:Optional - sourceDbInstanceArnSelector?: null | v1.#Selector @go(SourceDBInstanceArnSelector,*v1.Selector) -} - -// DBInstanceAutomatedBackupsReplicationSpec defines the desired state of DBInstanceAutomatedBackupsReplication -#DBInstanceAutomatedBackupsReplicationSpec: { - v1.#ResourceSpec - forProvider: #DBInstanceAutomatedBackupsReplicationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DBInstanceAutomatedBackupsReplicationInitParameters @go(InitProvider) -} - -// DBInstanceAutomatedBackupsReplicationStatus defines the observed state of DBInstanceAutomatedBackupsReplication. -#DBInstanceAutomatedBackupsReplicationStatus: { - v1.#ResourceStatus - atProvider?: #DBInstanceAutomatedBackupsReplicationObservation @go(AtProvider) -} - -// DBInstanceAutomatedBackupsReplication is the Schema for the DBInstanceAutomatedBackupsReplications API. Enables replication of automated backups to a different AWS Region. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DBInstanceAutomatedBackupsReplication: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DBInstanceAutomatedBackupsReplicationSpec @go(Spec) - status?: #DBInstanceAutomatedBackupsReplicationStatus @go(Status) -} - -// DBInstanceAutomatedBackupsReplicationList contains a list of DBInstanceAutomatedBackupsReplications -#DBInstanceAutomatedBackupsReplicationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DBInstanceAutomatedBackupsReplication] @go(Items,[]DBInstanceAutomatedBackupsReplication) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_dbsnapshotcopy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_dbsnapshotcopy_types_go_gen.cue deleted file mode 100644 index 64a392e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_dbsnapshotcopy_types_go_gen.cue +++ /dev/null @@ -1,212 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DBSnapshotCopyInitParameters: { - // Whether to copy existing tags. Defaults to false. - copyTags?: null | bool @go(CopyTags,*bool) - - // The Destination region to place snapshot copy. - destinationRegion?: null | string @go(DestinationRegion,*string) - - // The name of an option group to associate with the copy of the snapshot. - optionGroupName?: null | string @go(OptionGroupName,*string) - - // he URL that contains a Signature Version 4 signed request. - presignedUrl?: null | string @go(PresignedURL,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The external custom Availability Zone. - targetCustomAvailabilityZone?: null | string @go(TargetCustomAvailabilityZone,*string) - - // The Identifier for the snapshot. - targetDbSnapshotIdentifier?: null | string @go(TargetDBSnapshotIdentifier,*string) -} - -#DBSnapshotCopyObservation: { - // Specifies the allocated storage size in gigabytes (GB). - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // Whether to copy existing tags. Defaults to false. - copyTags?: null | bool @go(CopyTags,*bool) - - // The Amazon Resource Name (ARN) for the DB snapshot. - dbSnapshotArn?: null | string @go(DBSnapshotArn,*string) - - // The Destination region to place snapshot copy. - destinationRegion?: null | string @go(DestinationRegion,*string) - - // Specifies whether the DB snapshot is encrypted. - encrypted?: null | bool @go(Encrypted,*bool) - - // Specifies the name of the database engine. - engine?: null | string @go(Engine,*string) - - // Specifies the version of the database engine. - engineVersion?: null | string @go(EngineVersion,*string) - - // Snapshot Identifier. - id?: null | string @go(ID,*string) - - // Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot. - iops?: null | float64 @go(Iops,*float64) - - // KMS key ID. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // License model information for the restored DB instance. - licenseModel?: null | string @go(LicenseModel,*string) - - // The name of an option group to associate with the copy of the snapshot. - optionGroupName?: null | string @go(OptionGroupName,*string) - port?: null | float64 @go(Port,*float64) - - // he URL that contains a Signature Version 4 signed request. - presignedUrl?: null | string @go(PresignedURL,*string) - snapshotType?: null | string @go(SnapshotType,*string) - - // Snapshot identifier of the source snapshot. - sourceDbSnapshotIdentifier?: null | string @go(SourceDBSnapshotIdentifier,*string) - - // The region that the DB snapshot was created in or copied from. - sourceRegion?: null | string @go(SourceRegion,*string) - - // Specifies the storage type associated with DB snapshot. - storageType?: null | string @go(StorageType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The external custom Availability Zone. - targetCustomAvailabilityZone?: null | string @go(TargetCustomAvailabilityZone,*string) - - // The Identifier for the snapshot. - targetDbSnapshotIdentifier?: null | string @go(TargetDBSnapshotIdentifier,*string) - - // Provides the VPC ID associated with the DB snapshot. - vpcId?: null | string @go(VPCID,*string) -} - -#DBSnapshotCopyParameters: { - // Whether to copy existing tags. Defaults to false. - // +kubebuilder:validation:Optional - copyTags?: null | bool @go(CopyTags,*bool) - - // The Destination region to place snapshot copy. - // +kubebuilder:validation:Optional - destinationRegion?: null | string @go(DestinationRegion,*string) - - // KMS key ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // The name of an option group to associate with the copy of the snapshot. - // +kubebuilder:validation:Optional - optionGroupName?: null | string @go(OptionGroupName,*string) - - // he URL that contains a Signature Version 4 signed request. - // +kubebuilder:validation:Optional - presignedUrl?: null | string @go(PresignedURL,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Snapshot identifier of the source snapshot. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Snapshot - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("db_snapshot_arn",true) - // +kubebuilder:validation:Optional - sourceDbSnapshotIdentifier?: null | string @go(SourceDBSnapshotIdentifier,*string) - - // Reference to a Snapshot in rds to populate sourceDbSnapshotIdentifier. - // +kubebuilder:validation:Optional - sourceDbSnapshotIdentifierRef?: null | v1.#Reference @go(SourceDBSnapshotIdentifierRef,*v1.Reference) - - // Selector for a Snapshot in rds to populate sourceDbSnapshotIdentifier. - // +kubebuilder:validation:Optional - sourceDbSnapshotIdentifierSelector?: null | v1.#Selector @go(SourceDBSnapshotIdentifierSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The external custom Availability Zone. - // +kubebuilder:validation:Optional - targetCustomAvailabilityZone?: null | string @go(TargetCustomAvailabilityZone,*string) - - // The Identifier for the snapshot. - // +kubebuilder:validation:Optional - targetDbSnapshotIdentifier?: null | string @go(TargetDBSnapshotIdentifier,*string) -} - -// DBSnapshotCopySpec defines the desired state of DBSnapshotCopy -#DBSnapshotCopySpec: { - v1.#ResourceSpec - forProvider: #DBSnapshotCopyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DBSnapshotCopyInitParameters @go(InitProvider) -} - -// DBSnapshotCopyStatus defines the observed state of DBSnapshotCopy. -#DBSnapshotCopyStatus: { - v1.#ResourceStatus - atProvider?: #DBSnapshotCopyObservation @go(AtProvider) -} - -// DBSnapshotCopy is the Schema for the DBSnapshotCopys API. Manages an RDS database instance snapshot copy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DBSnapshotCopy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targetDbSnapshotIdentifier) || (has(self.initProvider) && has(self.initProvider.targetDbSnapshotIdentifier))",message="spec.forProvider.targetDbSnapshotIdentifier is a required parameter" - spec: #DBSnapshotCopySpec @go(Spec) - status?: #DBSnapshotCopyStatus @go(Status) -} - -// DBSnapshotCopyList contains a list of DBSnapshotCopys -#DBSnapshotCopyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DBSnapshotCopy] @go(Items,[]DBSnapshotCopy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_eventsubscription_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_eventsubscription_types_go_gen.cue deleted file mode 100644 index 7649d23..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_eventsubscription_types_go_gen.cue +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EventSubscriptionInitParameters: { - // A boolean flag to enable/disable the subscription. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // A list of event categories for a SourceType that you want to subscribe to. See http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html or run aws rds describe-event-categories. - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified. - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // The type of source that will be generating the events. Valid options are db-instance, db-security-group, db-parameter-group, db-snapshot, db-cluster or db-cluster-snapshot. If not set, all sources will be subscribed to. - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EventSubscriptionObservation: { - // The Amazon Resource Name of the RDS event notification subscription - arn?: null | string @go(Arn,*string) - - // The AWS customer account associated with the RDS event notification subscription - customerAwsId?: null | string @go(CustomerAwsID,*string) - - // A boolean flag to enable/disable the subscription. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // A list of event categories for a SourceType that you want to subscribe to. See http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html or run aws rds describe-event-categories. - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // The name of the RDS event notification subscription - id?: null | string @go(ID,*string) - - // The SNS topic to send events to. - snsTopic?: null | string @go(SnsTopic,*string) - - // A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified. - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // The type of source that will be generating the events. Valid options are db-instance, db-security-group, db-parameter-group, db-snapshot, db-cluster or db-cluster-snapshot. If not set, all sources will be subscribed to. - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#EventSubscriptionParameters: { - // A boolean flag to enable/disable the subscription. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // A list of event categories for a SourceType that you want to subscribe to. See http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html or run aws rds describe-event-categories. - // +kubebuilder:validation:Optional - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The SNS topic to send events to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - snsTopic?: null | string @go(SnsTopic,*string) - - // Reference to a Topic in sns to populate snsTopic. - // +kubebuilder:validation:Optional - snsTopicRef?: null | v1.#Reference @go(SnsTopicRef,*v1.Reference) - - // Selector for a Topic in sns to populate snsTopic. - // +kubebuilder:validation:Optional - snsTopicSelector?: null | v1.#Selector @go(SnsTopicSelector,*v1.Selector) - - // A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified. - // +kubebuilder:validation:Optional - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // The type of source that will be generating the events. Valid options are db-instance, db-security-group, db-parameter-group, db-snapshot, db-cluster or db-cluster-snapshot. If not set, all sources will be subscribed to. - // +kubebuilder:validation:Optional - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// EventSubscriptionSpec defines the desired state of EventSubscription -#EventSubscriptionSpec: { - v1.#ResourceSpec - forProvider: #EventSubscriptionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EventSubscriptionInitParameters @go(InitProvider) -} - -// EventSubscriptionStatus defines the observed state of EventSubscription. -#EventSubscriptionStatus: { - v1.#ResourceStatus - atProvider?: #EventSubscriptionObservation @go(AtProvider) -} - -// EventSubscription is the Schema for the EventSubscriptions API. Provides a DB event subscription resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EventSubscription: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EventSubscriptionSpec @go(Spec) - status?: #EventSubscriptionStatus @go(Status) -} - -// EventSubscriptionList contains a list of EventSubscriptions -#EventSubscriptionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EventSubscription] @go(Items,[]EventSubscription) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_globalcluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_globalcluster_types_go_gen.cue deleted file mode 100644 index e52ca11..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_globalcluster_types_go_gen.cue +++ /dev/null @@ -1,170 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GlobalClusterInitParameters: { - // Name for an automatically created database on cluster creation. - databaseName?: null | string @go(DatabaseName,*string) - - // If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // Name of the database engine to be used for this DB cluster. Valid values: aurora, aurora-mysql, aurora-postgresql. Defaults to aurora. Conflicts with source_db_cluster_identifier. - engine?: null | string @go(Engine,*string) - - // Engine version of the Aurora global database. The engine, engine_version, and instance_class (on the aws_rds_cluster_instance) must together support global databases. See Using Amazon Aurora global databases for more information. NOTE: To avoid an inconsistent final plan error while upgrading, use the lifecycle ignore_changes for engine_version meta argument on the associated aws_rds_cluster resource as shown above in Upgrading Engine Versions example. - engineVersion?: null | string @go(EngineVersion,*string) - - // Enable to remove DB Cluster members from Global Cluster on destroy. Required with source_db_cluster_identifier. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Specifies whether the DB cluster is encrypted. The default is false unless source_db_cluster_identifier is specified and encrypted. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) -} - -#GlobalClusterMembersInitParameters: { -} - -#GlobalClusterMembersObservation: { - // Amazon Resource Name (ARN) of member DB Cluster - dbClusterArn?: null | string @go(DBClusterArn,*string) - - // Whether the member is the primary DB Cluster - isWriter?: null | bool @go(IsWriter,*bool) -} - -#GlobalClusterMembersParameters: { -} - -#GlobalClusterObservation: { - // RDS Global Cluster Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // Name for an automatically created database on cluster creation. - databaseName?: null | string @go(DatabaseName,*string) - - // If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // Name of the database engine to be used for this DB cluster. Valid values: aurora, aurora-mysql, aurora-postgresql. Defaults to aurora. Conflicts with source_db_cluster_identifier. - engine?: null | string @go(Engine,*string) - - // Engine version of the Aurora global database. The engine, engine_version, and instance_class (on the aws_rds_cluster_instance) must together support global databases. See Using Amazon Aurora global databases for more information. NOTE: To avoid an inconsistent final plan error while upgrading, use the lifecycle ignore_changes for engine_version meta argument on the associated aws_rds_cluster resource as shown above in Upgrading Engine Versions example. - engineVersion?: null | string @go(EngineVersion,*string) - engineVersionActual?: null | string @go(EngineVersionActual,*string) - - // Enable to remove DB Cluster members from Global Cluster on destroy. Required with source_db_cluster_identifier. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Set of objects containing Global Cluster members. - globalClusterMembers?: [...#GlobalClusterMembersObservation] @go(GlobalClusterMembers,[]GlobalClusterMembersObservation) - - // AWS Region-unique, immutable identifier for the global database cluster. This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB cluster is accessed - globalClusterResourceId?: null | string @go(GlobalClusterResourceID,*string) - - // RDS Global Cluster identifier - id?: null | string @go(ID,*string) - - // Amazon Resource Name (ARN) to use as the primary DB Cluster of the Global Cluster on creation. - sourceDbClusterIdentifier?: null | string @go(SourceDBClusterIdentifier,*string) - - // Specifies whether the DB cluster is encrypted. The default is false unless source_db_cluster_identifier is specified and encrypted. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) -} - -#GlobalClusterParameters: { - // Name for an automatically created database on cluster creation. - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - // +kubebuilder:validation:Optional - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // Name of the database engine to be used for this DB cluster. Valid values: aurora, aurora-mysql, aurora-postgresql. Defaults to aurora. Conflicts with source_db_cluster_identifier. - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // Engine version of the Aurora global database. The engine, engine_version, and instance_class (on the aws_rds_cluster_instance) must together support global databases. See Using Amazon Aurora global databases for more information. NOTE: To avoid an inconsistent final plan error while upgrading, use the lifecycle ignore_changes for engine_version meta argument on the associated aws_rds_cluster resource as shown above in Upgrading Engine Versions example. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // Enable to remove DB Cluster members from Global Cluster on destroy. Required with source_db_cluster_identifier. - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Resource Name (ARN) to use as the primary DB Cluster of the Global Cluster on creation. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - sourceDbClusterIdentifier?: null | string @go(SourceDBClusterIdentifier,*string) - - // Reference to a Cluster in rds to populate sourceDbClusterIdentifier. - // +kubebuilder:validation:Optional - sourceDbClusterIdentifierRef?: null | v1.#Reference @go(SourceDBClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster in rds to populate sourceDbClusterIdentifier. - // +kubebuilder:validation:Optional - sourceDbClusterIdentifierSelector?: null | v1.#Selector @go(SourceDBClusterIdentifierSelector,*v1.Selector) - - // Specifies whether the DB cluster is encrypted. The default is false unless source_db_cluster_identifier is specified and encrypted. - // +kubebuilder:validation:Optional - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) -} - -// GlobalClusterSpec defines the desired state of GlobalCluster -#GlobalClusterSpec: { - v1.#ResourceSpec - forProvider: #GlobalClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GlobalClusterInitParameters @go(InitProvider) -} - -// GlobalClusterStatus defines the observed state of GlobalCluster. -#GlobalClusterStatus: { - v1.#ResourceStatus - atProvider?: #GlobalClusterObservation @go(AtProvider) -} - -// GlobalCluster is the Schema for the GlobalClusters API. Manages an RDS Global Cluster -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GlobalCluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #GlobalClusterSpec @go(Spec) - status?: #GlobalClusterStatus @go(Status) -} - -// GlobalClusterList contains a list of GlobalClusters -#GlobalClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GlobalCluster] @go(Items,[]GlobalCluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 8330baf..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=rds.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "rds.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_instance_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_instance_types_go_gen.cue deleted file mode 100644 index 3ec59e3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_instance_types_go_gen.cue +++ /dev/null @@ -1,1109 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BlueGreenUpdateInitParameters: { - // Enables [low-downtime updates](#Low-Downtime Updates) when true. - // Default is false. - enabled?: null | bool @go(Enabled,*bool) -} - -#BlueGreenUpdateObservation: { - // Enables [low-downtime updates](#Low-Downtime Updates) when true. - // Default is false. - enabled?: null | bool @go(Enabled,*bool) -} - -#BlueGreenUpdateParameters: { - // Enables [low-downtime updates](#Low-Downtime Updates) when true. - // Default is false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#InstanceInitParameters: { - // The allocated storage in gibibytes. If max_allocated_storage is configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. If replicate_source_db is set, the value is ignored during the creation of the instance. - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // Indicates that major version - // upgrades are allowed. Changing this parameter does not result in an outage and - // the change is asynchronously applied as soon as possible. - allowMajorVersionUpgrade?: null | bool @go(AllowMajorVersionUpgrade,*bool) - - // Specifies whether any database modifications - // are applied immediately, or during the next maintenance window. Default is - // false. See Amazon RDS Documentation for more - // information. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Indicates that minor engine upgrades - // will be applied automatically to the DB instance during the maintenance window. - // Defaults to true. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The AZ for the RDS instance. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The days to retain backups for. - // Must be between 0 and 35. - // Default is 0. - // Must be greater than 0 if the database is used as a source for a Read Replica, - // uses low-downtime updates, - // or will use RDS Blue/Green deployments. - backupRetentionPeriod?: null | float64 @go(BackupRetentionPeriod,*float64) - - // The daily time range (in UTC) during which automated backups are created if they are enabled. - // Example: "09:46-10:16". Must not overlap with maintenance_window. - backupWindow?: null | string @go(BackupWindow,*string) - - // Enables low-downtime updates using RDS Blue/Green deployments. - // See blue_green_update below - blueGreenUpdate?: [...#BlueGreenUpdateInitParameters] @go(BlueGreenUpdate,[]BlueGreenUpdateInitParameters) - - // The identifier of the CA certificate for the DB instance. - caCertIdentifier?: null | string @go(CACertIdentifier,*string) - - // The character set name to use for DB - // encoding in Oracle and Microsoft SQL instances (collation). This can't be changed. See Oracle Character Sets - // Supported in Amazon RDS - // or Server-Level Collation for Microsoft SQL Server for more information. - characterSetName?: null | string @go(CharacterSetName,*string) - - // – Copy all Instance tags to snapshots. Default is false. - copyTagsToSnapshot?: null | bool @go(CopyTagsToSnapshot,*bool) - - // The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. - customIamInstanceProfile?: null | string @go(CustomIAMInstanceProfile,*string) - - // Indicates whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance. See CoIP for RDS on Outposts for more information. - customerOwnedIpEnabled?: null | bool @go(CustomerOwnedIPEnabled,*bool) - - // The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica. - dbName?: null | string @go(DBName,*string) - - // Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true. - deleteAutomatedBackups?: null | bool @go(DeleteAutomatedBackups,*bool) - - // If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // The ID of the Directory Service Active Directory domain to create the instance in. - domain?: null | string @go(Domain,*string) - - // The name of the IAM role to be used when making API calls to the Directory Service. - domainIamRoleName?: null | string @go(DomainIAMRoleName,*string) - - // Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine). MySQL and MariaDB: audit, error, general, slowquery. PostgreSQL: postgresql, upgrade. MSSQL: agent , error. Oracle: alert, audit, listener, trace. - enabledCloudwatchLogsExports?: [...null | string] @go(EnabledCloudwatchLogsExports,[]*string) - - // The database engine to use. For supported values, see the Engine parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine must match the [DB Cluster](https://marketplace.upbound.io/providers/upbound/provider-aws/latest/resources/rds.aws.upbound.io/Cluster/v1beta1)'s engine'. For information on the difference between the available Aurora MySQL engines see Comparison in the [Amazon RDS Release Notes](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraMySQLReleaseNotes/Welcome.html). - engine?: null | string @go(Engine,*string) - - // The engine version to use. If `autoMinorVersionUpgrade` is enabled, you can provide a prefix of the version such as 5.7 (for 5.7.10). The actual engine version used is returned in the attribute `status.atProvider.engineVersionActual`. For supported values, see the EngineVersion parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine version must match the [DB Cluster](https://marketplace.upbound.io/providers/upbound/provider-aws/latest/resources/rds.aws.upbound.io/Cluster/v1beta1)'s engine version'. - engineVersion?: null | string @go(EngineVersion,*string) - - // The name of your final DB snapshot - // when this DB instance is deleted. Must be provided if skip_final_snapshot is - // set to false. The value must begin with a letter, only contain alphanumeric characters and hyphens, and not end with a hyphen or contain two consecutive hyphens. Must not be provided when deleting a read replica. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database - // accounts is enabled. - iamDatabaseAuthenticationEnabled?: null | bool @go(IAMDatabaseAuthenticationEnabled,*bool) - - // The instance type of the RDS instance. - instanceClass?: null | string @go(InstanceClass,*string) - - // The amount of provisioned IOPS. Setting this implies a - // storage_type of "io1". Can only be set when storage_type is "io1" or "gp3". - // Cannot be specified for gp3 storage if the allocated_storage value is below a per-engine threshold. - // See the RDS User Guide for details. - iops?: null | float64 @go(Iops,*float64) - - // License model information for this DB instance. - licenseModel?: null | string @go(LicenseModel,*string) - - // The window to perform maintenance in. - // Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS - // Maintenance Window - // docs - // for more information. - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if password is provided. - manageMasterUserPassword?: null | bool @go(ManageMasterUserPassword,*bool) - - // When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to allocated_storage. Must be greater than or equal to allocated_storage or 0 to disable Storage Autoscaling. - maxAllocatedStorage?: null | float64 @go(MaxAllocatedStorage,*float64) - - // The interval, in seconds, between points - // when Enhanced Monitoring metrics are collected for the DB instance. To disable - // collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid - // Values: 0, 1, 5, 10, 15, 30, 60. - monitoringInterval?: null | float64 @go(MonitoringInterval,*float64) - - // Specifies if the RDS instance is multi-AZ - multiAz?: null | bool @go(MultiAz,*bool) - - // The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica. - name?: null | string @go(Name,*string) - - // The national character set is used in the NCHAR, NVARCHAR2, and NCLOB data types for Oracle instances. This can't be changed. See Oracle Character Sets - // Supported in Amazon RDS. - ncharCharacterSetName?: null | string @go(NcharCharacterSetName,*string) - - // The network type of the DB instance. Valid values: IPV4, DUAL. - networkType?: null | string @go(NetworkType,*string) - - // Name of the DB option group to associate. - optionGroupName?: null | string @go(OptionGroupName,*string) - - // Name of the DB parameter group to - // associate. - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // Specifies whether Performance Insights are enabled. Defaults to false. - performanceInsightsEnabled?: null | bool @go(PerformanceInsightsEnabled,*bool) - - // The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true. Once KMS key is set, it can never be changed. - performanceInsightsKmsKeyId?: null | string @go(PerformanceInsightsKMSKeyID,*string) - - // Amount of time in days to retain Performance Insights data. Valid values are 7, 731 (2 years) or a multiple of 31. When specifying performance_insights_retention_period, performance_insights_enabled needs to be set to true. Defaults to '7'. - performanceInsightsRetentionPeriod?: null | float64 @go(PerformanceInsightsRetentionPeriod,*float64) - - // The port on which the DB accepts connections. - port?: null | float64 @go(Port,*float64) - - // Bool to control if instance is publicly - // accessible. Default is false. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Specifies whether the replica is in either mounted or open-read-only mode. This attribute - // is only supported by Oracle instances. Oracle replicas operate in open-read-only mode unless otherwise specified. See Working with Oracle Read Replicas for more information. - replicaMode?: null | string @go(ReplicaMode,*string) - - // A configuration block for restoring a DB instance to an arbitrary point in time. Requires the identifier argument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details. - restoreToPointInTime?: [...#RestoreToPointInTimeInitParameters] @go(RestoreToPointInTime,[]RestoreToPointInTimeInitParameters) - - // Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance - s3Import?: [...#S3ImportInitParameters] @go(S3Import,[]S3ImportInitParameters) - - // List of DB Security Groups to - // associate. Only used for DB Instances on the . - securityGroupNames?: [...null | string] @go(SecurityGroupNames,[]*string) - - // Determines whether a final DB snapshot is - // created before the DB instance is deleted. If true is specified, no DBSnapshot - // is created. If false is specified, a DB snapshot is created before the DB - // instance is deleted, using the value from final_snapshot_identifier. Default - // is false. - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // Specifies whether or not to create this - // database from a snapshot. This correlates to the snapshot ID you'd find in the - // RDS console, e.g: rds:production-2015-06-26-06-05. - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // Specifies whether the DB instance is - // encrypted. Note that if you are creating a cross-region read replica this field - // is ignored and you should instead declare kms_key_id with a valid ARN. The - // default is false if not specified. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // The storage throughput value for the DB instance. Can only be set when storage_type is "gp3". Cannot be specified if the allocated_storage value is below a per-engine threshold. See the RDS User Guide for details. - storageThroughput?: null | float64 @go(StorageThroughput,*float64) - - // One of "standard" (magnetic), "gp2" (general - // purpose SSD), "gp3" (general purpose SSD that needs iops independently) - // or "io1" (provisioned IOPS SSD). The default is "io1" if iops is specified, - // "gp2" if not. - storageType?: null | string @go(StorageType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Time zone of the DB instance. timezone is currently - // only supported by Microsoft SQL Server. The timezone can only be set on - // creation. See MSSQL User - // Guide - // for more information. - timezone?: null | string @go(Timezone,*string) - - // Username for the master DB user. Cannot be specified for a replica. - username?: null | string @go(Username,*string) -} - -#InstanceObservation: { - // The hostname of the RDS instance. See also endpoint and port. - address?: null | string @go(Address,*string) - - // The allocated storage in gibibytes. If max_allocated_storage is configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. If replicate_source_db is set, the value is ignored during the creation of the instance. - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // Indicates that major version - // upgrades are allowed. Changing this parameter does not result in an outage and - // the change is asynchronously applied as soon as possible. - allowMajorVersionUpgrade?: null | bool @go(AllowMajorVersionUpgrade,*bool) - - // Specifies whether any database modifications - // are applied immediately, or during the next maintenance window. Default is - // false. See Amazon RDS Documentation for more - // information. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // The ARN of the RDS instance. - arn?: null | string @go(Arn,*string) - - // Indicates that minor engine upgrades - // will be applied automatically to the DB instance during the maintenance window. - // Defaults to true. - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The AZ for the RDS instance. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The days to retain backups for. - // Must be between 0 and 35. - // Default is 0. - // Must be greater than 0 if the database is used as a source for a Read Replica, - // uses low-downtime updates, - // or will use RDS Blue/Green deployments. - backupRetentionPeriod?: null | float64 @go(BackupRetentionPeriod,*float64) - - // The daily time range (in UTC) during which automated backups are created if they are enabled. - // Example: "09:46-10:16". Must not overlap with maintenance_window. - backupWindow?: null | string @go(BackupWindow,*string) - - // Enables low-downtime updates using RDS Blue/Green deployments. - // See blue_green_update below - blueGreenUpdate?: [...#BlueGreenUpdateObservation] @go(BlueGreenUpdate,[]BlueGreenUpdateObservation) - - // The identifier of the CA certificate for the DB instance. - caCertIdentifier?: null | string @go(CACertIdentifier,*string) - - // The character set name to use for DB - // encoding in Oracle and Microsoft SQL instances (collation). This can't be changed. See Oracle Character Sets - // Supported in Amazon RDS - // or Server-Level Collation for Microsoft SQL Server for more information. - characterSetName?: null | string @go(CharacterSetName,*string) - - // – Copy all Instance tags to snapshots. Default is false. - copyTagsToSnapshot?: null | bool @go(CopyTagsToSnapshot,*bool) - - // The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. - customIamInstanceProfile?: null | string @go(CustomIAMInstanceProfile,*string) - - // Indicates whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance. See CoIP for RDS on Outposts for more information. - customerOwnedIpEnabled?: null | bool @go(CustomerOwnedIPEnabled,*bool) - - // The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica. - dbName?: null | string @go(DBName,*string) - - // Name of DB subnet group. DB instance will - // be created in the VPC associated with the DB subnet group. If unspecified, will - // be created in the default VPC, or in EC2 Classic, if available. When working - // with read replicas, it should be specified only if the source database - // specifies an instance in another AWS Region. See DBSubnetGroupName in API - // action CreateDBInstanceReadReplica - // for additional read replica contraints. - dbSubnetGroupName?: null | string @go(DBSubnetGroupName,*string) - - // Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true. - deleteAutomatedBackups?: null | bool @go(DeleteAutomatedBackups,*bool) - - // If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // The ID of the Directory Service Active Directory domain to create the instance in. - domain?: null | string @go(Domain,*string) - - // The name of the IAM role to be used when making API calls to the Directory Service. - domainIamRoleName?: null | string @go(DomainIAMRoleName,*string) - - // Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine). MySQL and MariaDB: audit, error, general, slowquery. PostgreSQL: postgresql, upgrade. MSSQL: agent , error. Oracle: alert, audit, listener, trace. - enabledCloudwatchLogsExports?: [...null | string] @go(EnabledCloudwatchLogsExports,[]*string) - - // The connection endpoint in address:port format. - endpoint?: null | string @go(Endpoint,*string) - - // The database engine to use. For supported values, see the Engine parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine must match the [DB Cluster](https://marketplace.upbound.io/providers/upbound/provider-aws/latest/resources/rds.aws.upbound.io/Cluster/v1beta1)'s engine'. For information on the difference between the available Aurora MySQL engines see Comparison in the [Amazon RDS Release Notes](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraMySQLReleaseNotes/Welcome.html). - engine?: null | string @go(Engine,*string) - - // The engine version to use. If `autoMinorVersionUpgrade` is enabled, you can provide a prefix of the version such as 5.7 (for 5.7.10). The actual engine version used is returned in the attribute `status.atProvider.engineVersionActual`. For supported values, see the EngineVersion parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine version must match the [DB Cluster](https://marketplace.upbound.io/providers/upbound/provider-aws/latest/resources/rds.aws.upbound.io/Cluster/v1beta1)'s engine version'. - engineVersion?: null | string @go(EngineVersion,*string) - - // The running version of the database. - engineVersionActual?: null | string @go(EngineVersionActual,*string) - - // The name of your final DB snapshot - // when this DB instance is deleted. Must be provided if skip_final_snapshot is - // set to false. The value must begin with a letter, only contain alphanumeric characters and hyphens, and not end with a hyphen or contain two consecutive hyphens. Must not be provided when deleting a read replica. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // The canonical hosted zone ID of the DB instance (to be used - // in a Route 53 Alias record). - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database - // accounts is enabled. - iamDatabaseAuthenticationEnabled?: null | bool @go(IAMDatabaseAuthenticationEnabled,*bool) - - // The RDS instance ID. - id?: null | string @go(ID,*string) - - // The instance type of the RDS instance. - instanceClass?: null | string @go(InstanceClass,*string) - - // The amount of provisioned IOPS. Setting this implies a - // storage_type of "io1". Can only be set when storage_type is "io1" or "gp3". - // Cannot be specified for gp3 storage if the allocated_storage value is below a per-engine threshold. - // See the RDS User Guide for details. - iops?: null | float64 @go(Iops,*float64) - - // The ARN for the KMS encryption key. If creating an - // encrypted replica, set this to the destination KMS ARN. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore. - latestRestorableTime?: null | string @go(LatestRestorableTime,*string) - - // License model information for this DB instance. - licenseModel?: null | string @go(LicenseModel,*string) - - // Specifies the listener connection endpoint for SQL Server Always On. See endpoint below. - listenerEndpoint?: [...#ListenerEndpointObservation] @go(ListenerEndpoint,[]ListenerEndpointObservation) - - // The window to perform maintenance in. - // Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS - // Maintenance Window - // docs - // for more information. - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if password is provided. - manageMasterUserPassword?: null | bool @go(ManageMasterUserPassword,*bool) - - // A block that specifies the master user secret. Only available when manage_master_user_password is set to true. Documented below. - masterUserSecret?: [...#MasterUserSecretObservation] @go(MasterUserSecret,[]MasterUserSecretObservation) - - // The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If not specified, the default KMS key for your Amazon Web Services account is used. - masterUserSecretKmsKeyId?: null | string @go(MasterUserSecretKMSKeyID,*string) - - // When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to allocated_storage. Must be greater than or equal to allocated_storage or 0 to disable Storage Autoscaling. - maxAllocatedStorage?: null | float64 @go(MaxAllocatedStorage,*float64) - - // The interval, in seconds, between points - // when Enhanced Monitoring metrics are collected for the DB instance. To disable - // collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid - // Values: 0, 1, 5, 10, 15, 30, 60. - monitoringInterval?: null | float64 @go(MonitoringInterval,*float64) - - // The ARN for the IAM role that permits RDS - // to send enhanced monitoring metrics to CloudWatch Logs. You can find more - // information on the AWS - // Documentation - // what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances. - monitoringRoleArn?: null | string @go(MonitoringRoleArn,*string) - - // Specifies if the RDS instance is multi-AZ - multiAz?: null | bool @go(MultiAz,*bool) - - // The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica. - name?: null | string @go(Name,*string) - - // The national character set is used in the NCHAR, NVARCHAR2, and NCLOB data types for Oracle instances. This can't be changed. See Oracle Character Sets - // Supported in Amazon RDS. - ncharCharacterSetName?: null | string @go(NcharCharacterSetName,*string) - - // The network type of the DB instance. Valid values: IPV4, DUAL. - networkType?: null | string @go(NetworkType,*string) - - // Name of the DB option group to associate. - optionGroupName?: null | string @go(OptionGroupName,*string) - - // Name of the DB parameter group to - // associate. - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // Specifies whether Performance Insights are enabled. Defaults to false. - performanceInsightsEnabled?: null | bool @go(PerformanceInsightsEnabled,*bool) - - // The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true. Once KMS key is set, it can never be changed. - performanceInsightsKmsKeyId?: null | string @go(PerformanceInsightsKMSKeyID,*string) - - // Amount of time in days to retain Performance Insights data. Valid values are 7, 731 (2 years) or a multiple of 31. When specifying performance_insights_retention_period, performance_insights_enabled needs to be set to true. Defaults to '7'. - performanceInsightsRetentionPeriod?: null | float64 @go(PerformanceInsightsRetentionPeriod,*float64) - - // The port on which the DB accepts connections. - port?: null | float64 @go(Port,*float64) - - // Bool to control if instance is publicly - // accessible. Default is false. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Specifies whether the replica is in either mounted or open-read-only mode. This attribute - // is only supported by Oracle instances. Oracle replicas operate in open-read-only mode unless otherwise specified. See Working with Oracle Read Replicas for more information. - replicaMode?: null | string @go(ReplicaMode,*string) - replicas?: [...null | string] @go(Replicas,[]*string) - - // Specifies that this resource is a Replicate - // database, and to use this value as the source database. This correlates to the - // identifier of another Amazon RDS Database to replicate (if replicating within - // a single region) or ARN of the Amazon RDS Database to replicate (if replicating - // cross-region). Note that if you are - // creating a cross-region replica of an encrypted database you will also need to - // specify a kms_key_id. See DB Instance Replication and Working with - // PostgreSQL and MySQL Read Replicas - // for more information on using Replication. - replicateSourceDb?: null | string @go(ReplicateSourceDB,*string) - - // The RDS Resource ID of this instance. - resourceId?: null | string @go(ResourceID,*string) - - // A configuration block for restoring a DB instance to an arbitrary point in time. Requires the identifier argument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details. - restoreToPointInTime?: [...#RestoreToPointInTimeObservation] @go(RestoreToPointInTime,[]RestoreToPointInTimeObservation) - - // Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance - s3Import?: [...#S3ImportObservation] @go(S3Import,[]S3ImportObservation) - - // List of DB Security Groups to - // associate. Only used for DB Instances on the . - securityGroupNames?: [...null | string] @go(SecurityGroupNames,[]*string) - - // Determines whether a final DB snapshot is - // created before the DB instance is deleted. If true is specified, no DBSnapshot - // is created. If false is specified, a DB snapshot is created before the DB - // instance is deleted, using the value from final_snapshot_identifier. Default - // is false. - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // Specifies whether or not to create this - // database from a snapshot. This correlates to the snapshot ID you'd find in the - // RDS console, e.g: rds:production-2015-06-26-06-05. - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // The RDS instance status. - status?: null | string @go(Status,*string) - - // Specifies whether the DB instance is - // encrypted. Note that if you are creating a cross-region read replica this field - // is ignored and you should instead declare kms_key_id with a valid ARN. The - // default is false if not specified. - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // The storage throughput value for the DB instance. Can only be set when storage_type is "gp3". Cannot be specified if the allocated_storage value is below a per-engine threshold. See the RDS User Guide for details. - storageThroughput?: null | float64 @go(StorageThroughput,*float64) - - // One of "standard" (magnetic), "gp2" (general - // purpose SSD), "gp3" (general purpose SSD that needs iops independently) - // or "io1" (provisioned IOPS SSD). The default is "io1" if iops is specified, - // "gp2" if not. - storageType?: null | string @go(StorageType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Time zone of the DB instance. timezone is currently - // only supported by Microsoft SQL Server. The timezone can only be set on - // creation. See MSSQL User - // Guide - // for more information. - timezone?: null | string @go(Timezone,*string) - - // Username for the master DB user. Cannot be specified for a replica. - username?: null | string @go(Username,*string) - - // List of VPC security groups to - // associate. - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -#InstanceParameters: { - // The allocated storage in gibibytes. If max_allocated_storage is configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. If replicate_source_db is set, the value is ignored during the creation of the instance. - // +kubebuilder:validation:Optional - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // Indicates that major version - // upgrades are allowed. Changing this parameter does not result in an outage and - // the change is asynchronously applied as soon as possible. - // +kubebuilder:validation:Optional - allowMajorVersionUpgrade?: null | bool @go(AllowMajorVersionUpgrade,*bool) - - // Specifies whether any database modifications - // are applied immediately, or during the next maintenance window. Default is - // false. See Amazon RDS Documentation for more - // information. - // +kubebuilder:validation:Optional - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // Password for the master DB user. Note that this may show up in - // logs, and it will be stored in the state file. Cannot be set if manage_master_user_password is set to true. - // If true, the password will be auto-generated and stored in the Secret referenced by the passwordSecretRef field. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Optional - autoGeneratePassword?: null | bool @go(AutoGeneratePassword,*bool) - - // Indicates that minor engine upgrades - // will be applied automatically to the DB instance during the maintenance window. - // Defaults to true. - // +kubebuilder:validation:Optional - autoMinorVersionUpgrade?: null | bool @go(AutoMinorVersionUpgrade,*bool) - - // The AZ for the RDS instance. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The days to retain backups for. - // Must be between 0 and 35. - // Default is 0. - // Must be greater than 0 if the database is used as a source for a Read Replica, - // uses low-downtime updates, - // or will use RDS Blue/Green deployments. - // +kubebuilder:validation:Optional - backupRetentionPeriod?: null | float64 @go(BackupRetentionPeriod,*float64) - - // The daily time range (in UTC) during which automated backups are created if they are enabled. - // Example: "09:46-10:16". Must not overlap with maintenance_window. - // +kubebuilder:validation:Optional - backupWindow?: null | string @go(BackupWindow,*string) - - // Enables low-downtime updates using RDS Blue/Green deployments. - // See blue_green_update below - // +kubebuilder:validation:Optional - blueGreenUpdate?: [...#BlueGreenUpdateParameters] @go(BlueGreenUpdate,[]BlueGreenUpdateParameters) - - // The identifier of the CA certificate for the DB instance. - // +kubebuilder:validation:Optional - caCertIdentifier?: null | string @go(CACertIdentifier,*string) - - // The character set name to use for DB - // encoding in Oracle and Microsoft SQL instances (collation). This can't be changed. See Oracle Character Sets - // Supported in Amazon RDS - // or Server-Level Collation for Microsoft SQL Server for more information. - // +kubebuilder:validation:Optional - characterSetName?: null | string @go(CharacterSetName,*string) - - // – Copy all Instance tags to snapshots. Default is false. - // +kubebuilder:validation:Optional - copyTagsToSnapshot?: null | bool @go(CopyTagsToSnapshot,*bool) - - // The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. - // +kubebuilder:validation:Optional - customIamInstanceProfile?: null | string @go(CustomIAMInstanceProfile,*string) - - // Indicates whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance. See CoIP for RDS on Outposts for more information. - // +kubebuilder:validation:Optional - customerOwnedIpEnabled?: null | bool @go(CustomerOwnedIPEnabled,*bool) - - // The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica. - // +kubebuilder:validation:Optional - dbName?: null | string @go(DBName,*string) - - // Name of DB subnet group. DB instance will - // be created in the VPC associated with the DB subnet group. If unspecified, will - // be created in the default VPC, or in EC2 Classic, if available. When working - // with read replicas, it should be specified only if the source database - // specifies an instance in another AWS Region. See DBSubnetGroupName in API - // action CreateDBInstanceReadReplica - // for additional read replica contraints. - // +crossplane:generate:reference:type=SubnetGroup - // +kubebuilder:validation:Optional - dbSubnetGroupName?: null | string @go(DBSubnetGroupName,*string) - - // Reference to a SubnetGroup to populate dbSubnetGroupName. - // +kubebuilder:validation:Optional - dbSubnetGroupNameRef?: null | v1.#Reference @go(DBSubnetGroupNameRef,*v1.Reference) - - // Selector for a SubnetGroup to populate dbSubnetGroupName. - // +kubebuilder:validation:Optional - dbSubnetGroupNameSelector?: null | v1.#Selector @go(DBSubnetGroupNameSelector,*v1.Selector) - - // Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true. - // +kubebuilder:validation:Optional - deleteAutomatedBackups?: null | bool @go(DeleteAutomatedBackups,*bool) - - // If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. - // +kubebuilder:validation:Optional - deletionProtection?: null | bool @go(DeletionProtection,*bool) - - // The ID of the Directory Service Active Directory domain to create the instance in. - // +kubebuilder:validation:Optional - domain?: null | string @go(Domain,*string) - - // The name of the IAM role to be used when making API calls to the Directory Service. - // +kubebuilder:validation:Optional - domainIamRoleName?: null | string @go(DomainIAMRoleName,*string) - - // Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine). MySQL and MariaDB: audit, error, general, slowquery. PostgreSQL: postgresql, upgrade. MSSQL: agent , error. Oracle: alert, audit, listener, trace. - // +kubebuilder:validation:Optional - enabledCloudwatchLogsExports?: [...null | string] @go(EnabledCloudwatchLogsExports,[]*string) - - // The database engine to use. For supported values, see the Engine parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine must match the [DB Cluster](https://marketplace.upbound.io/providers/upbound/provider-aws/latest/resources/rds.aws.upbound.io/Cluster/v1beta1)'s engine'. For information on the difference between the available Aurora MySQL engines see Comparison in the [Amazon RDS Release Notes](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraMySQLReleaseNotes/Welcome.html). - // +kubebuilder:validation:Optional - engine?: null | string @go(Engine,*string) - - // The engine version to use. If `autoMinorVersionUpgrade` is enabled, you can provide a prefix of the version such as 5.7 (for 5.7.10). The actual engine version used is returned in the attribute `status.atProvider.engineVersionActual`. For supported values, see the EngineVersion parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine version must match the [DB Cluster](https://marketplace.upbound.io/providers/upbound/provider-aws/latest/resources/rds.aws.upbound.io/Cluster/v1beta1)'s engine version'. - // +kubebuilder:validation:Optional - engineVersion?: null | string @go(EngineVersion,*string) - - // The name of your final DB snapshot - // when this DB instance is deleted. Must be provided if skip_final_snapshot is - // set to false. The value must begin with a letter, only contain alphanumeric characters and hyphens, and not end with a hyphen or contain two consecutive hyphens. Must not be provided when deleting a read replica. - // +kubebuilder:validation:Optional - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database - // accounts is enabled. - // +kubebuilder:validation:Optional - iamDatabaseAuthenticationEnabled?: null | bool @go(IAMDatabaseAuthenticationEnabled,*bool) - - // The instance type of the RDS instance. - // +kubebuilder:validation:Optional - instanceClass?: null | string @go(InstanceClass,*string) - - // The amount of provisioned IOPS. Setting this implies a - // storage_type of "io1". Can only be set when storage_type is "io1" or "gp3". - // Cannot be specified for gp3 storage if the allocated_storage value is below a per-engine threshold. - // See the RDS User Guide for details. - // +kubebuilder:validation:Optional - iops?: null | float64 @go(Iops,*float64) - - // The ARN for the KMS encryption key. If creating an - // encrypted replica, set this to the destination KMS ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // License model information for this DB instance. - // +kubebuilder:validation:Optional - licenseModel?: null | string @go(LicenseModel,*string) - - // The window to perform maintenance in. - // Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS - // Maintenance Window - // docs - // for more information. - // +kubebuilder:validation:Optional - maintenanceWindow?: null | string @go(MaintenanceWindow,*string) - - // Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if password is provided. - // +kubebuilder:validation:Optional - manageMasterUserPassword?: null | bool @go(ManageMasterUserPassword,*bool) - - // The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If not specified, the default KMS key for your Amazon Web Services account is used. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("key_id",true) - // +kubebuilder:validation:Optional - masterUserSecretKmsKeyId?: null | string @go(MasterUserSecretKMSKeyID,*string) - - // Reference to a Key in kms to populate masterUserSecretKmsKeyId. - // +kubebuilder:validation:Optional - masterUserSecretKmsKeyIdRef?: null | v1.#Reference @go(MasterUserSecretKMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate masterUserSecretKmsKeyId. - // +kubebuilder:validation:Optional - masterUserSecretKmsKeyIdSelector?: null | v1.#Selector @go(MasterUserSecretKMSKeyIDSelector,*v1.Selector) - - // When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to allocated_storage. Must be greater than or equal to allocated_storage or 0 to disable Storage Autoscaling. - // +kubebuilder:validation:Optional - maxAllocatedStorage?: null | float64 @go(MaxAllocatedStorage,*float64) - - // The interval, in seconds, between points - // when Enhanced Monitoring metrics are collected for the DB instance. To disable - // collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid - // Values: 0, 1, 5, 10, 15, 30, 60. - // +kubebuilder:validation:Optional - monitoringInterval?: null | float64 @go(MonitoringInterval,*float64) - - // The ARN for the IAM role that permits RDS - // to send enhanced monitoring metrics to CloudWatch Logs. You can find more - // information on the AWS - // Documentation - // what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - monitoringRoleArn?: null | string @go(MonitoringRoleArn,*string) - - // Reference to a Role in iam to populate monitoringRoleArn. - // +kubebuilder:validation:Optional - monitoringRoleArnRef?: null | v1.#Reference @go(MonitoringRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate monitoringRoleArn. - // +kubebuilder:validation:Optional - monitoringRoleArnSelector?: null | v1.#Selector @go(MonitoringRoleArnSelector,*v1.Selector) - - // Specifies if the RDS instance is multi-AZ - // +kubebuilder:validation:Optional - multiAz?: null | bool @go(MultiAz,*bool) - - // The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The national character set is used in the NCHAR, NVARCHAR2, and NCLOB data types for Oracle instances. This can't be changed. See Oracle Character Sets - // Supported in Amazon RDS. - // +kubebuilder:validation:Optional - ncharCharacterSetName?: null | string @go(NcharCharacterSetName,*string) - - // The network type of the DB instance. Valid values: IPV4, DUAL. - // +kubebuilder:validation:Optional - networkType?: null | string @go(NetworkType,*string) - - // Name of the DB option group to associate. - // +kubebuilder:validation:Optional - optionGroupName?: null | string @go(OptionGroupName,*string) - - // Name of the DB parameter group to - // associate. - // +kubebuilder:validation:Optional - parameterGroupName?: null | string @go(ParameterGroupName,*string) - - // Password for the master DB user. Note that this may show up in - // logs, and it will be stored in the state file. Cannot be set if manage_master_user_password is set to true. - // Password for the master DB user. If you set autoGeneratePassword to true, the Secret referenced here will be created or updated with generated password if it does not already contain one. - // +kubebuilder:validation:Optional - passwordSecretRef?: null | v1.#SecretKeySelector @go(PasswordSecretRef,*v1.SecretKeySelector) - - // Specifies whether Performance Insights are enabled. Defaults to false. - // +kubebuilder:validation:Optional - performanceInsightsEnabled?: null | bool @go(PerformanceInsightsEnabled,*bool) - - // The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true. Once KMS key is set, it can never be changed. - // +kubebuilder:validation:Optional - performanceInsightsKmsKeyId?: null | string @go(PerformanceInsightsKMSKeyID,*string) - - // Amount of time in days to retain Performance Insights data. Valid values are 7, 731 (2 years) or a multiple of 31. When specifying performance_insights_retention_period, performance_insights_enabled needs to be set to true. Defaults to '7'. - // +kubebuilder:validation:Optional - performanceInsightsRetentionPeriod?: null | float64 @go(PerformanceInsightsRetentionPeriod,*float64) - - // The port on which the DB accepts connections. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // Bool to control if instance is publicly - // accessible. Default is false. - // +kubebuilder:validation:Optional - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies whether the replica is in either mounted or open-read-only mode. This attribute - // is only supported by Oracle instances. Oracle replicas operate in open-read-only mode unless otherwise specified. See Working with Oracle Read Replicas for more information. - // +kubebuilder:validation:Optional - replicaMode?: null | string @go(ReplicaMode,*string) - - // Specifies that this resource is a Replicate - // database, and to use this value as the source database. This correlates to the - // identifier of another Amazon RDS Database to replicate (if replicating within - // a single region) or ARN of the Amazon RDS Database to replicate (if replicating - // cross-region). Note that if you are - // creating a cross-region replica of an encrypted database you will also need to - // specify a kms_key_id. See DB Instance Replication and Working with - // PostgreSQL and MySQL Read Replicas - // for more information on using Replication. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Instance - // +kubebuilder:validation:Optional - replicateSourceDb?: null | string @go(ReplicateSourceDB,*string) - - // Reference to a Instance in rds to populate replicateSourceDb. - // +kubebuilder:validation:Optional - replicateSourceDbRef?: null | v1.#Reference @go(ReplicateSourceDBRef,*v1.Reference) - - // Selector for a Instance in rds to populate replicateSourceDb. - // +kubebuilder:validation:Optional - replicateSourceDbSelector?: null | v1.#Selector @go(ReplicateSourceDBSelector,*v1.Selector) - - // A configuration block for restoring a DB instance to an arbitrary point in time. Requires the identifier argument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details. - // +kubebuilder:validation:Optional - restoreToPointInTime?: [...#RestoreToPointInTimeParameters] @go(RestoreToPointInTime,[]RestoreToPointInTimeParameters) - - // Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance - // +kubebuilder:validation:Optional - s3Import?: [...#S3ImportParameters] @go(S3Import,[]S3ImportParameters) - - // List of DB Security Groups to - // associate. Only used for DB Instances on the . - // +kubebuilder:validation:Optional - securityGroupNames?: [...null | string] @go(SecurityGroupNames,[]*string) - - // Determines whether a final DB snapshot is - // created before the DB instance is deleted. If true is specified, no DBSnapshot - // is created. If false is specified, a DB snapshot is created before the DB - // instance is deleted, using the value from final_snapshot_identifier. Default - // is false. - // +kubebuilder:validation:Optional - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // Specifies whether or not to create this - // database from a snapshot. This correlates to the snapshot ID you'd find in the - // RDS console, e.g: rds:production-2015-06-26-06-05. - // +kubebuilder:validation:Optional - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // Specifies whether the DB instance is - // encrypted. Note that if you are creating a cross-region read replica this field - // is ignored and you should instead declare kms_key_id with a valid ARN. The - // default is false if not specified. - // +kubebuilder:validation:Optional - storageEncrypted?: null | bool @go(StorageEncrypted,*bool) - - // The storage throughput value for the DB instance. Can only be set when storage_type is "gp3". Cannot be specified if the allocated_storage value is below a per-engine threshold. See the RDS User Guide for details. - // +kubebuilder:validation:Optional - storageThroughput?: null | float64 @go(StorageThroughput,*float64) - - // One of "standard" (magnetic), "gp2" (general - // purpose SSD), "gp3" (general purpose SSD that needs iops independently) - // or "io1" (provisioned IOPS SSD). The default is "io1" if iops is specified, - // "gp2" if not. - // +kubebuilder:validation:Optional - storageType?: null | string @go(StorageType,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Time zone of the DB instance. timezone is currently - // only supported by Microsoft SQL Server. The timezone can only be set on - // creation. See MSSQL User - // Guide - // for more information. - // +kubebuilder:validation:Optional - timezone?: null | string @go(Timezone,*string) - - // Username for the master DB user. Cannot be specified for a replica. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) - - // References to SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdRefs?: [...v1.#Reference] @go(VPCSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdSelector?: null | v1.#Selector @go(VPCSecurityGroupIDSelector,*v1.Selector) - - // List of VPC security groups to - // associate. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -#ListenerEndpointInitParameters: { -} - -#ListenerEndpointObservation: { - // The hostname of the RDS instance. See also endpoint and port. - address?: null | string @go(Address,*string) - - // The canonical hosted zone ID of the DB instance (to be used - // in a Route 53 Alias record). - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // The port on which the DB accepts connections. - port?: null | float64 @go(Port,*float64) -} - -#ListenerEndpointParameters: { -} - -#MasterUserSecretInitParameters: { -} - -#MasterUserSecretObservation: { - // The Amazon Web Services KMS key identifier that is used to encrypt the secret. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The Amazon Resource Name (ARN) of the secret. - secretArn?: null | string @go(SecretArn,*string) - - // The status of the secret. Valid Values: creating | active | rotating | impaired. - secretStatus?: null | string @go(SecretStatus,*string) -} - -#MasterUserSecretParameters: { -} - -#RestoreToPointInTimeInitParameters: { - // The date and time to restore from. Value must be a time in Universal Coordinated Time (UTC) format and must be before the latest restorable time for the DB instance. Cannot be specified with use_latest_restorable_time. - restoreTime?: null | string @go(RestoreTime,*string) - - // The ARN of the automated backup from which to restore. Required if source_db_instance_identifier or source_dbi_resource_id is not specified. - sourceDbInstanceAutomatedBackupsArn?: null | string @go(SourceDBInstanceAutomatedBackupsArn,*string) - - // The identifier of the source DB instance from which to restore. Must match the identifier of an existing DB instance. Required if source_db_instance_automated_backups_arn or source_dbi_resource_id is not specified. - sourceDbInstanceIdentifier?: null | string @go(SourceDBInstanceIdentifier,*string) - - // The resource ID of the source DB instance from which to restore. Required if source_db_instance_identifier or source_db_instance_automated_backups_arn is not specified. - sourceDbiResourceId?: null | string @go(SourceDbiResourceID,*string) - - // A boolean value that indicates whether the DB instance is restored from the latest backup time. Defaults to false. Cannot be specified with restore_time. - useLatestRestorableTime?: null | bool @go(UseLatestRestorableTime,*bool) -} - -#RestoreToPointInTimeObservation: { - // The date and time to restore from. Value must be a time in Universal Coordinated Time (UTC) format and must be before the latest restorable time for the DB instance. Cannot be specified with use_latest_restorable_time. - restoreTime?: null | string @go(RestoreTime,*string) - - // The ARN of the automated backup from which to restore. Required if source_db_instance_identifier or source_dbi_resource_id is not specified. - sourceDbInstanceAutomatedBackupsArn?: null | string @go(SourceDBInstanceAutomatedBackupsArn,*string) - - // The identifier of the source DB instance from which to restore. Must match the identifier of an existing DB instance. Required if source_db_instance_automated_backups_arn or source_dbi_resource_id is not specified. - sourceDbInstanceIdentifier?: null | string @go(SourceDBInstanceIdentifier,*string) - - // The resource ID of the source DB instance from which to restore. Required if source_db_instance_identifier or source_db_instance_automated_backups_arn is not specified. - sourceDbiResourceId?: null | string @go(SourceDbiResourceID,*string) - - // A boolean value that indicates whether the DB instance is restored from the latest backup time. Defaults to false. Cannot be specified with restore_time. - useLatestRestorableTime?: null | bool @go(UseLatestRestorableTime,*bool) -} - -#RestoreToPointInTimeParameters: { - // The date and time to restore from. Value must be a time in Universal Coordinated Time (UTC) format and must be before the latest restorable time for the DB instance. Cannot be specified with use_latest_restorable_time. - // +kubebuilder:validation:Optional - restoreTime?: null | string @go(RestoreTime,*string) - - // The ARN of the automated backup from which to restore. Required if source_db_instance_identifier or source_dbi_resource_id is not specified. - // +kubebuilder:validation:Optional - sourceDbInstanceAutomatedBackupsArn?: null | string @go(SourceDBInstanceAutomatedBackupsArn,*string) - - // The identifier of the source DB instance from which to restore. Must match the identifier of an existing DB instance. Required if source_db_instance_automated_backups_arn or source_dbi_resource_id is not specified. - // +kubebuilder:validation:Optional - sourceDbInstanceIdentifier?: null | string @go(SourceDBInstanceIdentifier,*string) - - // The resource ID of the source DB instance from which to restore. Required if source_db_instance_identifier or source_db_instance_automated_backups_arn is not specified. - // +kubebuilder:validation:Optional - sourceDbiResourceId?: null | string @go(SourceDbiResourceID,*string) - - // A boolean value that indicates whether the DB instance is restored from the latest backup time. Defaults to false. Cannot be specified with restore_time. - // +kubebuilder:validation:Optional - useLatestRestorableTime?: null | bool @go(UseLatestRestorableTime,*bool) -} - -#S3ImportInitParameters: { - // The bucket name where your backup is stored - bucketName?: null | string @go(BucketName,*string) - - // Can be blank, but is the path to your backup - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Role applied to load the data. - ingestionRole?: null | string @go(IngestionRole,*string) - - // Source engine for the backup - sourceEngine?: null | string @go(SourceEngine,*string) - - // Version of the source engine used to make the backup - sourceEngineVersion?: null | string @go(SourceEngineVersion,*string) -} - -#S3ImportObservation: { - // The bucket name where your backup is stored - bucketName?: null | string @go(BucketName,*string) - - // Can be blank, but is the path to your backup - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Role applied to load the data. - ingestionRole?: null | string @go(IngestionRole,*string) - - // Source engine for the backup - sourceEngine?: null | string @go(SourceEngine,*string) - - // Version of the source engine used to make the backup - sourceEngineVersion?: null | string @go(SourceEngineVersion,*string) -} - -#S3ImportParameters: { - // The bucket name where your backup is stored - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Can be blank, but is the path to your backup - // +kubebuilder:validation:Optional - bucketPrefix?: null | string @go(BucketPrefix,*string) - - // Role applied to load the data. - // +kubebuilder:validation:Optional - ingestionRole?: null | string @go(IngestionRole,*string) - - // Source engine for the backup - // +kubebuilder:validation:Optional - sourceEngine?: null | string @go(SourceEngine,*string) - - // Version of the source engine used to make the backup - // +kubebuilder:validation:Optional - sourceEngineVersion?: null | string @go(SourceEngineVersion,*string) -} - -// InstanceSpec defines the desired state of Instance -#InstanceSpec: { - v1.#ResourceSpec - forProvider: #InstanceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InstanceInitParameters @go(InitProvider) -} - -// InstanceStatus defines the observed state of Instance. -#InstanceStatus: { - v1.#ResourceStatus - atProvider?: #InstanceObservation @go(AtProvider) -} - -// Instance is the Schema for the Instances API. Provides an RDS instance resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Instance: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceClass) || (has(self.initProvider) && has(self.initProvider.instanceClass))",message="spec.forProvider.instanceClass is a required parameter" - spec: #InstanceSpec @go(Spec) - status?: #InstanceStatus @go(Status) -} - -// InstanceList contains a list of Instances -#InstanceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Instance] @go(Items,[]Instance) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_instanceroleassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_instanceroleassociation_types_go_gen.cue deleted file mode 100644 index 45f6916..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_instanceroleassociation_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InstanceRoleAssociationInitParameters: { - // Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the SupportedFeatureNames list returned by AWS CLI rds describe-db-engine-versions. - featureName?: null | string @go(FeatureName,*string) -} - -#InstanceRoleAssociationObservation: { - // DB Instance Identifier to associate with the IAM Role. - dbInstanceIdentifier?: null | string @go(DBInstanceIdentifier,*string) - - // Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the SupportedFeatureNames list returned by AWS CLI rds describe-db-engine-versions. - featureName?: null | string @go(FeatureName,*string) - - // DB Instance Identifier and IAM Role ARN separated by a comma (,) - id?: null | string @go(ID,*string) - - // Amazon Resource Name (ARN) of the IAM Role to associate with the DB Instance. - roleArn?: null | string @go(RoleArn,*string) -} - -#InstanceRoleAssociationParameters: { - // DB Instance Identifier to associate with the IAM Role. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dbInstanceIdentifier?: null | string @go(DBInstanceIdentifier,*string) - - // Reference to a Instance in rds to populate dbInstanceIdentifier. - // +kubebuilder:validation:Optional - dbInstanceIdentifierRef?: null | v1.#Reference @go(DBInstanceIdentifierRef,*v1.Reference) - - // Selector for a Instance in rds to populate dbInstanceIdentifier. - // +kubebuilder:validation:Optional - dbInstanceIdentifierSelector?: null | v1.#Selector @go(DBInstanceIdentifierSelector,*v1.Selector) - - // Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the SupportedFeatureNames list returned by AWS CLI rds describe-db-engine-versions. - // +kubebuilder:validation:Optional - featureName?: null | string @go(FeatureName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Resource Name (ARN) of the IAM Role to associate with the DB Instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) -} - -// InstanceRoleAssociationSpec defines the desired state of InstanceRoleAssociation -#InstanceRoleAssociationSpec: { - v1.#ResourceSpec - forProvider: #InstanceRoleAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InstanceRoleAssociationInitParameters @go(InitProvider) -} - -// InstanceRoleAssociationStatus defines the observed state of InstanceRoleAssociation. -#InstanceRoleAssociationStatus: { - v1.#ResourceStatus - atProvider?: #InstanceRoleAssociationObservation @go(AtProvider) -} - -// InstanceRoleAssociation is the Schema for the InstanceRoleAssociations API. Manages an RDS DB Instance association with an IAM Role. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#InstanceRoleAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.featureName) || (has(self.initProvider) && has(self.initProvider.featureName))",message="spec.forProvider.featureName is a required parameter" - spec: #InstanceRoleAssociationSpec @go(Spec) - status?: #InstanceRoleAssociationStatus @go(Status) -} - -// InstanceRoleAssociationList contains a list of InstanceRoleAssociations -#InstanceRoleAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#InstanceRoleAssociation] @go(Items,[]InstanceRoleAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_optiongroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_optiongroup_types_go_gen.cue deleted file mode 100644 index 473f8cd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_optiongroup_types_go_gen.cue +++ /dev/null @@ -1,220 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#OptionGroupInitParameters: { - // Specifies the name of the engine that this option group should be associated with. - engineName?: null | string @go(EngineName,*string) - - // Specifies the major version of the engine that this option group should be associated with. - majorEngineVersion?: null | string @go(MajorEngineVersion,*string) - - // A list of Options to apply. - option?: [...#OptionInitParameters] @go(Option,[]OptionInitParameters) - - // The description of the option group. - optionGroupDescription?: null | string @go(OptionGroupDescription,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#OptionGroupObservation: { - // The ARN of the db option group. - arn?: null | string @go(Arn,*string) - - // Specifies the name of the engine that this option group should be associated with. - engineName?: null | string @go(EngineName,*string) - - // The db option group name. - id?: null | string @go(ID,*string) - - // Specifies the major version of the engine that this option group should be associated with. - majorEngineVersion?: null | string @go(MajorEngineVersion,*string) - - // A list of Options to apply. - option?: [...#OptionObservation] @go(Option,[]OptionObservation) - - // The description of the option group. - optionGroupDescription?: null | string @go(OptionGroupDescription,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#OptionGroupParameters: { - // Specifies the name of the engine that this option group should be associated with. - // +kubebuilder:validation:Optional - engineName?: null | string @go(EngineName,*string) - - // Specifies the major version of the engine that this option group should be associated with. - // +kubebuilder:validation:Optional - majorEngineVersion?: null | string @go(MajorEngineVersion,*string) - - // A list of Options to apply. - // +kubebuilder:validation:Optional - option?: [...#OptionParameters] @go(Option,[]OptionParameters) - - // The description of the option group. - // +kubebuilder:validation:Optional - optionGroupDescription?: null | string @go(OptionGroupDescription,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#OptionInitParameters: { - // A list of DB Security Groups for which the option is enabled. - dbSecurityGroupMemberships?: [...null | string] @go(DBSecurityGroupMemberships,[]*string) - - // The Name of the Option (e.g., MEMCACHED). - optionName?: null | string @go(OptionName,*string) - - // A list of option settings to apply. - optionSettings?: [...#OptionSettingsInitParameters] @go(OptionSettings,[]OptionSettingsInitParameters) - - // The Port number when connecting to the Option (e.g., 11211). - port?: null | float64 @go(Port,*float64) - - // A list of VPC Security Groups for which the option is enabled. - vpcSecurityGroupMemberships?: [...null | string] @go(VPCSecurityGroupMemberships,[]*string) - - // The version of the option (e.g., 13.1.0.0). - version?: null | string @go(Version,*string) -} - -#OptionObservation: { - // A list of DB Security Groups for which the option is enabled. - dbSecurityGroupMemberships?: [...null | string] @go(DBSecurityGroupMemberships,[]*string) - - // The Name of the Option (e.g., MEMCACHED). - optionName?: null | string @go(OptionName,*string) - - // A list of option settings to apply. - optionSettings?: [...#OptionSettingsObservation] @go(OptionSettings,[]OptionSettingsObservation) - - // The Port number when connecting to the Option (e.g., 11211). - port?: null | float64 @go(Port,*float64) - - // A list of VPC Security Groups for which the option is enabled. - vpcSecurityGroupMemberships?: [...null | string] @go(VPCSecurityGroupMemberships,[]*string) - - // The version of the option (e.g., 13.1.0.0). - version?: null | string @go(Version,*string) -} - -#OptionParameters: { - // A list of DB Security Groups for which the option is enabled. - // +kubebuilder:validation:Optional - dbSecurityGroupMemberships?: [...null | string] @go(DBSecurityGroupMemberships,[]*string) - - // The Name of the Option (e.g., MEMCACHED). - // +kubebuilder:validation:Optional - optionName?: null | string @go(OptionName,*string) - - // A list of option settings to apply. - // +kubebuilder:validation:Optional - optionSettings?: [...#OptionSettingsParameters] @go(OptionSettings,[]OptionSettingsParameters) - - // The Port number when connecting to the Option (e.g., 11211). - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // A list of VPC Security Groups for which the option is enabled. - // +kubebuilder:validation:Optional - vpcSecurityGroupMemberships?: [...null | string] @go(VPCSecurityGroupMemberships,[]*string) - - // The version of the option (e.g., 13.1.0.0). - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#OptionSettingsInitParameters: { - // The name of the option group. Must be lowercase, to match as it is stored in AWS. - name?: null | string @go(Name,*string) - - // The Value of the setting. - value?: null | string @go(Value,*string) -} - -#OptionSettingsObservation: { - // The name of the option group. Must be lowercase, to match as it is stored in AWS. - name?: null | string @go(Name,*string) - - // The Value of the setting. - value?: null | string @go(Value,*string) -} - -#OptionSettingsParameters: { - // The name of the option group. Must be lowercase, to match as it is stored in AWS. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The Value of the setting. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// OptionGroupSpec defines the desired state of OptionGroup -#OptionGroupSpec: { - v1.#ResourceSpec - forProvider: #OptionGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #OptionGroupInitParameters @go(InitProvider) -} - -// OptionGroupStatus defines the observed state of OptionGroup. -#OptionGroupStatus: { - v1.#ResourceStatus - atProvider?: #OptionGroupObservation @go(AtProvider) -} - -// OptionGroup is the Schema for the OptionGroups API. Provides an RDS DB option group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#OptionGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.engineName) || (has(self.initProvider) && has(self.initProvider.engineName))",message="spec.forProvider.engineName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.majorEngineVersion) || (has(self.initProvider) && has(self.initProvider.majorEngineVersion))",message="spec.forProvider.majorEngineVersion is a required parameter" - spec: #OptionGroupSpec @go(Spec) - status?: #OptionGroupStatus @go(Status) -} - -// OptionGroupList contains a list of OptionGroups -#OptionGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#OptionGroup] @go(Items,[]OptionGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_parametergroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_parametergroup_types_go_gen.cue deleted file mode 100644 index 816bdf0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_parametergroup_types_go_gen.cue +++ /dev/null @@ -1,159 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ParameterGroupInitParameters: { - // The description of the DB parameter group. - description?: null | string @go(Description,*string) - - // The family of the DB parameter group. - family?: null | string @go(Family,*string) - - // A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via aws rds describe-db-parameters after initial creation of the group. - parameter?: [...#ParameterInitParameters] @go(Parameter,[]ParameterInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParameterGroupObservation: { - // The ARN of the db parameter group. - arn?: null | string @go(Arn,*string) - - // The description of the DB parameter group. - description?: null | string @go(Description,*string) - - // The family of the DB parameter group. - family?: null | string @go(Family,*string) - - // The db parameter group name. - id?: null | string @go(ID,*string) - - // A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via aws rds describe-db-parameters after initial creation of the group. - parameter?: [...#ParameterObservation] @go(Parameter,[]ParameterObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ParameterGroupParameters: { - // The description of the DB parameter group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The family of the DB parameter group. - // +kubebuilder:validation:Optional - family?: null | string @go(Family,*string) - - // A list of DB parameters to apply. Note that parameters may differ from a family to an other. Full list of all parameters can be discovered via aws rds describe-db-parameters after initial creation of the group. - // +kubebuilder:validation:Optional - parameter?: [...#ParameterParameters] @go(Parameter,[]ParameterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParameterInitParameters: { - // "immediate" (default), or "pending-reboot". Some - // engines can't apply some parameters without a reboot, and you will need to - // specify "pending-reboot" here. - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the DB parameter group. - name?: null | string @go(Name,*string) - - // The value of the DB parameter. - value?: null | string @go(Value,*string) -} - -#ParameterObservation: { - // "immediate" (default), or "pending-reboot". Some - // engines can't apply some parameters without a reboot, and you will need to - // specify "pending-reboot" here. - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the DB parameter group. - name?: null | string @go(Name,*string) - - // The value of the DB parameter. - value?: null | string @go(Value,*string) -} - -#ParameterParameters: { - // "immediate" (default), or "pending-reboot". Some - // engines can't apply some parameters without a reboot, and you will need to - // specify "pending-reboot" here. - // +kubebuilder:validation:Optional - applyMethod?: null | string @go(ApplyMethod,*string) - - // The name of the DB parameter group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of the DB parameter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// ParameterGroupSpec defines the desired state of ParameterGroup -#ParameterGroupSpec: { - v1.#ResourceSpec - forProvider: #ParameterGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ParameterGroupInitParameters @go(InitProvider) -} - -// ParameterGroupStatus defines the observed state of ParameterGroup. -#ParameterGroupStatus: { - v1.#ResourceStatus - atProvider?: #ParameterGroupObservation @go(AtProvider) -} - -// ParameterGroup is the Schema for the ParameterGroups API. Provides an RDS DB parameter group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ParameterGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.family) || (has(self.initProvider) && has(self.initProvider.family))",message="spec.forProvider.family is a required parameter" - spec: #ParameterGroupSpec @go(Spec) - status?: #ParameterGroupStatus @go(Status) -} - -// ParameterGroupList contains a list of ParameterGroups -#ParameterGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ParameterGroup] @go(Items,[]ParameterGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_proxy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_proxy_types_go_gen.cue deleted file mode 100644 index 27784e1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_proxy_types_go_gen.cue +++ /dev/null @@ -1,260 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AuthInitParameters: { - // The type of authentication that the proxy uses for connections from the proxy to the underlying database. One of SECRETS. - authScheme?: null | string @go(AuthScheme,*string) - - // The type of authentication the proxy uses for connections from clients. Valid values are MYSQL_NATIVE_PASSWORD, POSTGRES_SCRAM_SHA_256, POSTGRES_MD5, and SQL_SERVER_AUTHENTICATION. - clientPasswordAuthType?: null | string @go(ClientPasswordAuthType,*string) - - // A user-specified description about the authentication used by a proxy to log in as a specific database user. - description?: null | string @go(Description,*string) - - // Whether to require or disallow AWS Identity and Access Management (IAM) authentication for connections to the proxy. One of DISABLED, REQUIRED. - iamAuth?: null | string @go(IAMAuth,*string) - - // The name of the database user to which the proxy connects. - username?: null | string @go(Username,*string) -} - -#AuthObservation: { - // The type of authentication that the proxy uses for connections from the proxy to the underlying database. One of SECRETS. - authScheme?: null | string @go(AuthScheme,*string) - - // The type of authentication the proxy uses for connections from clients. Valid values are MYSQL_NATIVE_PASSWORD, POSTGRES_SCRAM_SHA_256, POSTGRES_MD5, and SQL_SERVER_AUTHENTICATION. - clientPasswordAuthType?: null | string @go(ClientPasswordAuthType,*string) - - // A user-specified description about the authentication used by a proxy to log in as a specific database user. - description?: null | string @go(Description,*string) - - // Whether to require or disallow AWS Identity and Access Management (IAM) authentication for connections to the proxy. One of DISABLED, REQUIRED. - iamAuth?: null | string @go(IAMAuth,*string) - - // The Amazon Resource Name (ARN) representing the secret that the proxy uses to authenticate to the RDS DB instance or Aurora DB cluster. These secrets are stored within Amazon Secrets Manager. - secretArn?: null | string @go(SecretArn,*string) - - // The name of the database user to which the proxy connects. - username?: null | string @go(Username,*string) -} - -#AuthParameters: { - // The type of authentication that the proxy uses for connections from the proxy to the underlying database. One of SECRETS. - // +kubebuilder:validation:Optional - authScheme?: null | string @go(AuthScheme,*string) - - // The type of authentication the proxy uses for connections from clients. Valid values are MYSQL_NATIVE_PASSWORD, POSTGRES_SCRAM_SHA_256, POSTGRES_MD5, and SQL_SERVER_AUTHENTICATION. - // +kubebuilder:validation:Optional - clientPasswordAuthType?: null | string @go(ClientPasswordAuthType,*string) - - // A user-specified description about the authentication used by a proxy to log in as a specific database user. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether to require or disallow AWS Identity and Access Management (IAM) authentication for connections to the proxy. One of DISABLED, REQUIRED. - // +kubebuilder:validation:Optional - iamAuth?: null | string @go(IAMAuth,*string) - - // The Amazon Resource Name (ARN) representing the secret that the proxy uses to authenticate to the RDS DB instance or Aurora DB cluster. These secrets are stored within Amazon Secrets Manager. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/secretsmanager/v1beta1.Secret - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - secretArn?: null | string @go(SecretArn,*string) - - // Reference to a Secret in secretsmanager to populate secretArn. - // +kubebuilder:validation:Optional - secretArnRef?: null | v1.#Reference @go(SecretArnRef,*v1.Reference) - - // Selector for a Secret in secretsmanager to populate secretArn. - // +kubebuilder:validation:Optional - secretArnSelector?: null | v1.#Selector @go(SecretArnSelector,*v1.Selector) - - // The name of the database user to which the proxy connects. - // +kubebuilder:validation:Optional - username?: null | string @go(Username,*string) -} - -#ProxyInitParameters: { - // Configuration block(s) with authorization mechanisms to connect to the associated instances or clusters. Described below. - auth?: [...#AuthInitParameters] @go(Auth,[]AuthInitParameters) - - // Whether the proxy includes detailed information about SQL statements in its logs. This information helps you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting when needed for debugging, and only when you have security measures in place to safeguard any sensitive information that appears in the logs. - debugLogging?: null | bool @go(DebugLogging,*bool) - - // The kinds of databases that the proxy can connect to. This value determines which database network protocol the proxy recognizes when it interprets network traffic to and from the database. The engine family applies to MySQL and PostgreSQL for both RDS and Aurora. Valid values are MYSQL and POSTGRESQL. - engineFamily?: null | string @go(EngineFamily,*string) - - // The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You can set this value higher or lower than the connection timeout limit for the associated database. - idleClientTimeout?: null | float64 @go(IdleClientTimeout,*float64) - - // A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling this setting, you can enforce encrypted TLS connections to the proxy. - requireTls?: null | bool @go(RequireTLS,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // One or more VPC subnet IDs to associate with the new proxy. - vpcSubnetIds?: [...null | string] @go(VPCSubnetIds,[]*string) -} - -#ProxyObservation: { - // The Amazon Resource Name (ARN) for the proxy. - arn?: null | string @go(Arn,*string) - - // Configuration block(s) with authorization mechanisms to connect to the associated instances or clusters. Described below. - auth?: [...#AuthObservation] @go(Auth,[]AuthObservation) - - // Whether the proxy includes detailed information about SQL statements in its logs. This information helps you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting when needed for debugging, and only when you have security measures in place to safeguard any sensitive information that appears in the logs. - debugLogging?: null | bool @go(DebugLogging,*bool) - - // The endpoint that you can use to connect to the proxy. You include the endpoint value in the connection string for a database client application. - endpoint?: null | string @go(Endpoint,*string) - - // The kinds of databases that the proxy can connect to. This value determines which database network protocol the proxy recognizes when it interprets network traffic to and from the database. The engine family applies to MySQL and PostgreSQL for both RDS and Aurora. Valid values are MYSQL and POSTGRESQL. - engineFamily?: null | string @go(EngineFamily,*string) - - // The Amazon Resource Name (ARN) for the proxy. - id?: null | string @go(ID,*string) - - // The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You can set this value higher or lower than the connection timeout limit for the associated database. - idleClientTimeout?: null | float64 @go(IdleClientTimeout,*float64) - - // A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling this setting, you can enforce encrypted TLS connections to the proxy. - requireTls?: null | bool @go(RequireTLS,*bool) - - // The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. - roleArn?: null | string @go(RoleArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // One or more VPC security group IDs to associate with the new proxy. - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // One or more VPC subnet IDs to associate with the new proxy. - vpcSubnetIds?: [...null | string] @go(VPCSubnetIds,[]*string) -} - -#ProxyParameters: { - // Configuration block(s) with authorization mechanisms to connect to the associated instances or clusters. Described below. - // +kubebuilder:validation:Optional - auth?: [...#AuthParameters] @go(Auth,[]AuthParameters) - - // Whether the proxy includes detailed information about SQL statements in its logs. This information helps you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting when needed for debugging, and only when you have security measures in place to safeguard any sensitive information that appears in the logs. - // +kubebuilder:validation:Optional - debugLogging?: null | bool @go(DebugLogging,*bool) - - // The kinds of databases that the proxy can connect to. This value determines which database network protocol the proxy recognizes when it interprets network traffic to and from the database. The engine family applies to MySQL and PostgreSQL for both RDS and Aurora. Valid values are MYSQL and POSTGRESQL. - // +kubebuilder:validation:Optional - engineFamily?: null | string @go(EngineFamily,*string) - - // The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You can set this value higher or lower than the connection timeout limit for the associated database. - // +kubebuilder:validation:Optional - idleClientTimeout?: null | float64 @go(IdleClientTimeout,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling this setting, you can enforce encrypted TLS connections to the proxy. - // +kubebuilder:validation:Optional - requireTls?: null | bool @go(RequireTLS,*bool) - - // The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // References to SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdRefs?: [...v1.#Reference] @go(VPCSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdSelector?: null | v1.#Selector @go(VPCSecurityGroupIDSelector,*v1.Selector) - - // One or more VPC security group IDs to associate with the new proxy. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // One or more VPC subnet IDs to associate with the new proxy. - // +kubebuilder:validation:Optional - vpcSubnetIds?: [...null | string] @go(VPCSubnetIds,[]*string) -} - -// ProxySpec defines the desired state of Proxy -#ProxySpec: { - v1.#ResourceSpec - forProvider: #ProxyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProxyInitParameters @go(InitProvider) -} - -// ProxyStatus defines the observed state of Proxy. -#ProxyStatus: { - v1.#ResourceStatus - atProvider?: #ProxyObservation @go(AtProvider) -} - -// Proxy is the Schema for the Proxys API. Provides an RDS DB proxy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Proxy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.auth) || (has(self.initProvider) && has(self.initProvider.auth))",message="spec.forProvider.auth is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.engineFamily) || (has(self.initProvider) && has(self.initProvider.engineFamily))",message="spec.forProvider.engineFamily is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.vpcSubnetIds) || (has(self.initProvider) && has(self.initProvider.vpcSubnetIds))",message="spec.forProvider.vpcSubnetIds is a required parameter" - spec: #ProxySpec @go(Spec) - status?: #ProxyStatus @go(Status) -} - -// ProxyList contains a list of Proxys -#ProxyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Proxy] @go(Items,[]Proxy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_proxydefaulttargetgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_proxydefaulttargetgroup_types_go_gen.cue deleted file mode 100644 index 2b5b062..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_proxydefaulttargetgroup_types_go_gen.cue +++ /dev/null @@ -1,157 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConnectionPoolConfigInitParameters: { - // The number of seconds for a proxy to wait for a connection to become available in the connection pool. Only applies when the proxy has opened its maximum number of connections and all connections are busy with client sessions. - connectionBorrowTimeout?: null | float64 @go(ConnectionBorrowTimeout,*float64) - - // One or more SQL statements for the proxy to run when opening each new database connection. Typically used with SET statements to make sure that each connection has identical settings such as time zone and character set. This setting is empty by default. For multiple statements, use semicolons as the separator. You can also include multiple variables in a single SET statement, such as SET x=1, y=2. - initQuery?: null | string @go(InitQuery,*string) - - // The maximum size of the connection pool for each target in a target group. For Aurora MySQL, it is expressed as a percentage of the max_connections setting for the RDS DB instance or Aurora DB cluster used by the target group. - maxConnectionsPercent?: null | float64 @go(MaxConnectionsPercent,*float64) - - // Controls how actively the proxy closes idle database connections in the connection pool. A high value enables the proxy to leave a high percentage of idle connections open. A low value causes the proxy to close idle client connections and return the underlying database connections to the connection pool. For Aurora MySQL, it is expressed as a percentage of the max_connections setting for the RDS DB instance or Aurora DB cluster used by the target group. - maxIdleConnectionsPercent?: null | float64 @go(MaxIdleConnectionsPercent,*float64) - - // Each item in the list represents a class of SQL operations that normally cause all later statements in a session using a proxy to be pinned to the same underlying database connection. Including an item in the list exempts that class of SQL operations from the pinning behavior. Currently, the only allowed value is EXCLUDE_VARIABLE_SETS. - sessionPinningFilters?: [...null | string] @go(SessionPinningFilters,[]*string) -} - -#ConnectionPoolConfigObservation: { - // The number of seconds for a proxy to wait for a connection to become available in the connection pool. Only applies when the proxy has opened its maximum number of connections and all connections are busy with client sessions. - connectionBorrowTimeout?: null | float64 @go(ConnectionBorrowTimeout,*float64) - - // One or more SQL statements for the proxy to run when opening each new database connection. Typically used with SET statements to make sure that each connection has identical settings such as time zone and character set. This setting is empty by default. For multiple statements, use semicolons as the separator. You can also include multiple variables in a single SET statement, such as SET x=1, y=2. - initQuery?: null | string @go(InitQuery,*string) - - // The maximum size of the connection pool for each target in a target group. For Aurora MySQL, it is expressed as a percentage of the max_connections setting for the RDS DB instance or Aurora DB cluster used by the target group. - maxConnectionsPercent?: null | float64 @go(MaxConnectionsPercent,*float64) - - // Controls how actively the proxy closes idle database connections in the connection pool. A high value enables the proxy to leave a high percentage of idle connections open. A low value causes the proxy to close idle client connections and return the underlying database connections to the connection pool. For Aurora MySQL, it is expressed as a percentage of the max_connections setting for the RDS DB instance or Aurora DB cluster used by the target group. - maxIdleConnectionsPercent?: null | float64 @go(MaxIdleConnectionsPercent,*float64) - - // Each item in the list represents a class of SQL operations that normally cause all later statements in a session using a proxy to be pinned to the same underlying database connection. Including an item in the list exempts that class of SQL operations from the pinning behavior. Currently, the only allowed value is EXCLUDE_VARIABLE_SETS. - sessionPinningFilters?: [...null | string] @go(SessionPinningFilters,[]*string) -} - -#ConnectionPoolConfigParameters: { - // The number of seconds for a proxy to wait for a connection to become available in the connection pool. Only applies when the proxy has opened its maximum number of connections and all connections are busy with client sessions. - // +kubebuilder:validation:Optional - connectionBorrowTimeout?: null | float64 @go(ConnectionBorrowTimeout,*float64) - - // One or more SQL statements for the proxy to run when opening each new database connection. Typically used with SET statements to make sure that each connection has identical settings such as time zone and character set. This setting is empty by default. For multiple statements, use semicolons as the separator. You can also include multiple variables in a single SET statement, such as SET x=1, y=2. - // +kubebuilder:validation:Optional - initQuery?: null | string @go(InitQuery,*string) - - // The maximum size of the connection pool for each target in a target group. For Aurora MySQL, it is expressed as a percentage of the max_connections setting for the RDS DB instance or Aurora DB cluster used by the target group. - // +kubebuilder:validation:Optional - maxConnectionsPercent?: null | float64 @go(MaxConnectionsPercent,*float64) - - // Controls how actively the proxy closes idle database connections in the connection pool. A high value enables the proxy to leave a high percentage of idle connections open. A low value causes the proxy to close idle client connections and return the underlying database connections to the connection pool. For Aurora MySQL, it is expressed as a percentage of the max_connections setting for the RDS DB instance or Aurora DB cluster used by the target group. - // +kubebuilder:validation:Optional - maxIdleConnectionsPercent?: null | float64 @go(MaxIdleConnectionsPercent,*float64) - - // Each item in the list represents a class of SQL operations that normally cause all later statements in a session using a proxy to be pinned to the same underlying database connection. Including an item in the list exempts that class of SQL operations from the pinning behavior. Currently, the only allowed value is EXCLUDE_VARIABLE_SETS. - // +kubebuilder:validation:Optional - sessionPinningFilters?: [...null | string] @go(SessionPinningFilters,[]*string) -} - -#ProxyDefaultTargetGroupInitParameters: { - // The settings that determine the size and behavior of the connection pool for the target group. - connectionPoolConfig?: [...#ConnectionPoolConfigInitParameters] @go(ConnectionPoolConfig,[]ConnectionPoolConfigInitParameters) -} - -#ProxyDefaultTargetGroupObservation: { - // The Amazon Resource Name (ARN) representing the target group. - arn?: null | string @go(Arn,*string) - - // The settings that determine the size and behavior of the connection pool for the target group. - connectionPoolConfig?: [...#ConnectionPoolConfigObservation] @go(ConnectionPoolConfig,[]ConnectionPoolConfigObservation) - - // Name of the RDS DB Proxy. - dbProxyName?: null | string @go(DBProxyName,*string) - - // Name of the RDS DB Proxy. - id?: null | string @go(ID,*string) - - // The name of the default target group. - name?: null | string @go(Name,*string) -} - -#ProxyDefaultTargetGroupParameters: { - // The settings that determine the size and behavior of the connection pool for the target group. - // +kubebuilder:validation:Optional - connectionPoolConfig?: [...#ConnectionPoolConfigParameters] @go(ConnectionPoolConfig,[]ConnectionPoolConfigParameters) - - // Name of the RDS DB Proxy. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Proxy - // +kubebuilder:validation:Optional - dbProxyName?: null | string @go(DBProxyName,*string) - - // Reference to a Proxy in rds to populate dbProxyName. - // +kubebuilder:validation:Optional - dbProxyNameRef?: null | v1.#Reference @go(DBProxyNameRef,*v1.Reference) - - // Selector for a Proxy in rds to populate dbProxyName. - // +kubebuilder:validation:Optional - dbProxyNameSelector?: null | v1.#Selector @go(DBProxyNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ProxyDefaultTargetGroupSpec defines the desired state of ProxyDefaultTargetGroup -#ProxyDefaultTargetGroupSpec: { - v1.#ResourceSpec - forProvider: #ProxyDefaultTargetGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProxyDefaultTargetGroupInitParameters @go(InitProvider) -} - -// ProxyDefaultTargetGroupStatus defines the observed state of ProxyDefaultTargetGroup. -#ProxyDefaultTargetGroupStatus: { - v1.#ResourceStatus - atProvider?: #ProxyDefaultTargetGroupObservation @go(AtProvider) -} - -// ProxyDefaultTargetGroup is the Schema for the ProxyDefaultTargetGroups API. Manage an RDS DB proxy default target group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ProxyDefaultTargetGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ProxyDefaultTargetGroupSpec @go(Spec) - status?: #ProxyDefaultTargetGroupStatus @go(Status) -} - -// ProxyDefaultTargetGroupList contains a list of ProxyDefaultTargetGroups -#ProxyDefaultTargetGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ProxyDefaultTargetGroup] @go(Items,[]ProxyDefaultTargetGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_proxyendpoint_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_proxyendpoint_types_go_gen.cue deleted file mode 100644 index d5659de..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_proxyendpoint_types_go_gen.cue +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ProxyEndpointInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Indicates whether the DB proxy endpoint can be used for read/write or read-only operations. The default is READ_WRITE. Valid values are READ_WRITE and READ_ONLY. - targetRole?: null | string @go(TargetRole,*string) - - // One or more VPC subnet IDs to associate with the new proxy. - vpcSubnetIds?: [...null | string] @go(VPCSubnetIds,[]*string) -} - -#ProxyEndpointObservation: { - // The Amazon Resource Name (ARN) for the proxy endpoint. - arn?: null | string @go(Arn,*string) - - // The name of the DB proxy associated with the DB proxy endpoint that you create. - dbProxyName?: null | string @go(DBProxyName,*string) - - // The endpoint that you can use to connect to the proxy. You include the endpoint value in the connection string for a database client application. - endpoint?: null | string @go(Endpoint,*string) - - // The name of the proxy and proxy endpoint separated by /, DB-PROXY-NAME/DB-PROXY-ENDPOINT-NAME. - id?: null | string @go(ID,*string) - - // Indicates whether this endpoint is the default endpoint for the associated DB proxy. - isDefault?: null | bool @go(IsDefault,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Indicates whether the DB proxy endpoint can be used for read/write or read-only operations. The default is READ_WRITE. Valid values are READ_WRITE and READ_ONLY. - targetRole?: null | string @go(TargetRole,*string) - - // The VPC ID of the DB proxy endpoint. - vpcId?: null | string @go(VPCID,*string) - - // One or more VPC security group IDs to associate with the new proxy. - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // One or more VPC subnet IDs to associate with the new proxy. - vpcSubnetIds?: [...null | string] @go(VPCSubnetIds,[]*string) -} - -#ProxyEndpointParameters: { - // The name of the DB proxy associated with the DB proxy endpoint that you create. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Proxy - // +kubebuilder:validation:Optional - dbProxyName?: null | string @go(DBProxyName,*string) - - // Reference to a Proxy in rds to populate dbProxyName. - // +kubebuilder:validation:Optional - dbProxyNameRef?: null | v1.#Reference @go(DBProxyNameRef,*v1.Reference) - - // Selector for a Proxy in rds to populate dbProxyName. - // +kubebuilder:validation:Optional - dbProxyNameSelector?: null | v1.#Selector @go(DBProxyNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Indicates whether the DB proxy endpoint can be used for read/write or read-only operations. The default is READ_WRITE. Valid values are READ_WRITE and READ_ONLY. - // +kubebuilder:validation:Optional - targetRole?: null | string @go(TargetRole,*string) - - // References to SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdRefs?: [...v1.#Reference] @go(VPCSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdSelector?: null | v1.#Selector @go(VPCSecurityGroupIDSelector,*v1.Selector) - - // One or more VPC security group IDs to associate with the new proxy. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // One or more VPC subnet IDs to associate with the new proxy. - // +kubebuilder:validation:Optional - vpcSubnetIds?: [...null | string] @go(VPCSubnetIds,[]*string) -} - -// ProxyEndpointSpec defines the desired state of ProxyEndpoint -#ProxyEndpointSpec: { - v1.#ResourceSpec - forProvider: #ProxyEndpointParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProxyEndpointInitParameters @go(InitProvider) -} - -// ProxyEndpointStatus defines the observed state of ProxyEndpoint. -#ProxyEndpointStatus: { - v1.#ResourceStatus - atProvider?: #ProxyEndpointObservation @go(AtProvider) -} - -// ProxyEndpoint is the Schema for the ProxyEndpoints API. Provides an RDS DB proxy endpoint resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ProxyEndpoint: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.vpcSubnetIds) || (has(self.initProvider) && has(self.initProvider.vpcSubnetIds))",message="spec.forProvider.vpcSubnetIds is a required parameter" - spec: #ProxyEndpointSpec @go(Spec) - status?: #ProxyEndpointStatus @go(Status) -} - -// ProxyEndpointList contains a list of ProxyEndpoints -#ProxyEndpointList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ProxyEndpoint] @go(Items,[]ProxyEndpoint) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_proxytarget_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_proxytarget_types_go_gen.cue deleted file mode 100644 index ca52c21..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_proxytarget_types_go_gen.cue +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ProxyTargetInitParameters: { - // DB cluster identifier. - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // The name of the target group. - targetGroupName?: null | string @go(TargetGroupName,*string) -} - -#ProxyTargetObservation: { - // DB cluster identifier. - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // DB instance identifier. - dbInstanceIdentifier?: null | string @go(DBInstanceIdentifier,*string) - - // The name of the DB proxy. - dbProxyName?: null | string @go(DBProxyName,*string) - - // Hostname for the target RDS DB Instance. Only returned for RDS_INSTANCE type. - endpoint?: null | string @go(Endpoint,*string) - - // Identifier of db_proxy_name, target_group_name, target type (e.g., RDS_INSTANCE or TRACKED_CLUSTER), and resource identifier separated by forward slashes (/). - id?: null | string @go(ID,*string) - - // Port for the target RDS DB Instance or Aurora DB Cluster. - port?: null | float64 @go(Port,*float64) - - // Identifier representing the DB Instance or DB Cluster target. - rdsResourceId?: null | string @go(RDSResourceID,*string) - - // Amazon Resource Name (ARN) for the DB instance or DB cluster. Currently not returned by the RDS API. - targetArn?: null | string @go(TargetArn,*string) - - // The name of the target group. - targetGroupName?: null | string @go(TargetGroupName,*string) - - // DB Cluster identifier for the DB Instance target. Not returned unless manually importing an RDS_INSTANCE target that is part of a DB Cluster. - trackedClusterId?: null | string @go(TrackedClusterID,*string) - - // Type of targetE.g., RDS_INSTANCE or TRACKED_CLUSTER - type?: null | string @go(Type,*string) -} - -#ProxyTargetParameters: { - // DB cluster identifier. - // +kubebuilder:validation:Optional - dbClusterIdentifier?: null | string @go(DBClusterIdentifier,*string) - - // DB instance identifier. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dbInstanceIdentifier?: null | string @go(DBInstanceIdentifier,*string) - - // Reference to a Instance in rds to populate dbInstanceIdentifier. - // +kubebuilder:validation:Optional - dbInstanceIdentifierRef?: null | v1.#Reference @go(DBInstanceIdentifierRef,*v1.Reference) - - // Selector for a Instance in rds to populate dbInstanceIdentifier. - // +kubebuilder:validation:Optional - dbInstanceIdentifierSelector?: null | v1.#Selector @go(DBInstanceIdentifierSelector,*v1.Selector) - - // The name of the DB proxy. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Proxy - // +kubebuilder:validation:Optional - dbProxyName?: null | string @go(DBProxyName,*string) - - // Reference to a Proxy in rds to populate dbProxyName. - // +kubebuilder:validation:Optional - dbProxyNameRef?: null | v1.#Reference @go(DBProxyNameRef,*v1.Reference) - - // Selector for a Proxy in rds to populate dbProxyName. - // +kubebuilder:validation:Optional - dbProxyNameSelector?: null | v1.#Selector @go(DBProxyNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the target group. - // +kubebuilder:validation:Optional - targetGroupName?: null | string @go(TargetGroupName,*string) -} - -// ProxyTargetSpec defines the desired state of ProxyTarget -#ProxyTargetSpec: { - v1.#ResourceSpec - forProvider: #ProxyTargetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProxyTargetInitParameters @go(InitProvider) -} - -// ProxyTargetStatus defines the observed state of ProxyTarget. -#ProxyTargetStatus: { - v1.#ResourceStatus - atProvider?: #ProxyTargetObservation @go(AtProvider) -} - -// ProxyTarget is the Schema for the ProxyTargets API. Provides an RDS DB proxy target resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ProxyTarget: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targetGroupName) || (has(self.initProvider) && has(self.initProvider.targetGroupName))",message="spec.forProvider.targetGroupName is a required parameter" - spec: #ProxyTargetSpec @go(Spec) - status?: #ProxyTargetStatus @go(Status) -} - -// ProxyTargetList contains a list of ProxyTargets -#ProxyTargetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ProxyTarget] @go(Items,[]ProxyTarget) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_snapshot_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_snapshot_types_go_gen.cue deleted file mode 100644 index b8e436d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_snapshot_types_go_gen.cue +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SnapshotInitParameters: { - // List of AWS Account ids to share snapshot with, use all to make snaphot public. - sharedAccounts?: [...null | string] @go(SharedAccounts,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SnapshotObservation: { - // Specifies the allocated storage size in gigabytes (GB). - allocatedStorage?: null | float64 @go(AllocatedStorage,*float64) - - // Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The DB Instance Identifier from which to take the snapshot. - dbInstanceIdentifier?: null | string @go(DBInstanceIdentifier,*string) - - // The Amazon Resource Name (ARN) for the DB snapshot. - dbSnapshotArn?: null | string @go(DBSnapshotArn,*string) - - // Specifies whether the DB snapshot is encrypted. - encrypted?: null | bool @go(Encrypted,*bool) - - // Specifies the name of the database engine. - engine?: null | string @go(Engine,*string) - - // Specifies the version of the database engine. - engineVersion?: null | string @go(EngineVersion,*string) - id?: null | string @go(ID,*string) - - // Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot. - iops?: null | float64 @go(Iops,*float64) - - // The ARN for the KMS encryption key. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // License model information for the restored DB instance. - licenseModel?: null | string @go(LicenseModel,*string) - - // Provides the option group name for the DB snapshot. - optionGroupName?: null | string @go(OptionGroupName,*string) - port?: null | float64 @go(Port,*float64) - - // List of AWS Account ids to share snapshot with, use all to make snaphot public. - sharedAccounts?: [...null | string] @go(SharedAccounts,[]*string) - snapshotType?: null | string @go(SnapshotType,*string) - - // The DB snapshot Arn that the DB snapshot was copied from. It only has value in case of cross customer or cross region copy. - sourceDbSnapshotIdentifier?: null | string @go(SourceDBSnapshotIdentifier,*string) - - // The region that the DB snapshot was created in or copied from. - sourceRegion?: null | string @go(SourceRegion,*string) - - // Specifies the status of this DB snapshot. - status?: null | string @go(Status,*string) - - // Specifies the storage type associated with DB snapshot. - storageType?: null | string @go(StorageType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Provides the VPC ID associated with the DB snapshot. - vpcId?: null | string @go(VPCID,*string) -} - -#SnapshotParameters: { - // The DB Instance Identifier from which to take the snapshot. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Instance - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dbInstanceIdentifier?: null | string @go(DBInstanceIdentifier,*string) - - // Reference to a Instance in rds to populate dbInstanceIdentifier. - // +kubebuilder:validation:Optional - dbInstanceIdentifierRef?: null | v1.#Reference @go(DBInstanceIdentifierRef,*v1.Reference) - - // Selector for a Instance in rds to populate dbInstanceIdentifier. - // +kubebuilder:validation:Optional - dbInstanceIdentifierSelector?: null | v1.#Selector @go(DBInstanceIdentifierSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // List of AWS Account ids to share snapshot with, use all to make snaphot public. - // +kubebuilder:validation:Optional - sharedAccounts?: [...null | string] @go(SharedAccounts,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SnapshotSpec defines the desired state of Snapshot -#SnapshotSpec: { - v1.#ResourceSpec - forProvider: #SnapshotParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SnapshotInitParameters @go(InitProvider) -} - -// SnapshotStatus defines the observed state of Snapshot. -#SnapshotStatus: { - v1.#ResourceStatus - atProvider?: #SnapshotObservation @go(AtProvider) -} - -// Snapshot is the Schema for the Snapshots API. Manages an RDS database instance snapshot. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Snapshot: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SnapshotSpec @go(Spec) - status?: #SnapshotStatus @go(Status) -} - -// SnapshotList contains a list of Snapshots -#SnapshotList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Snapshot] @go(Items,[]Snapshot) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_subnetgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_subnetgroup_types_go_gen.cue deleted file mode 100644 index 3fe87cc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rds/v1beta1/zz_subnetgroup_types_go_gen.cue +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rds/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SubnetGroupInitParameters: { - // The description of the DB subnet group. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SubnetGroupObservation: { - // The ARN of the db subnet group. - arn?: null | string @go(Arn,*string) - - // The description of the DB subnet group. - description?: null | string @go(Description,*string) - - // The db subnet group name. - id?: null | string @go(ID,*string) - - // A list of VPC subnet IDs. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // The network type of the db subnet group. - supportedNetworkTypes?: [...null | string] @go(SupportedNetworkTypes,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Provides the VPC ID of the DB subnet group. - vpcId?: null | string @go(VPCID,*string) -} - -#SubnetGroupParameters: { - // The description of the DB subnet group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // A list of VPC subnet IDs. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SubnetGroupSpec defines the desired state of SubnetGroup -#SubnetGroupSpec: { - v1.#ResourceSpec - forProvider: #SubnetGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SubnetGroupInitParameters @go(InitProvider) -} - -// SubnetGroupStatus defines the observed state of SubnetGroup. -#SubnetGroupStatus: { - v1.#ResourceStatus - atProvider?: #SubnetGroupObservation @go(AtProvider) -} - -// SubnetGroup is the Schema for the SubnetGroups API. Provides an RDS DB subnet group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SubnetGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SubnetGroupSpec @go(Spec) - status?: #SubnetGroupStatus @go(Status) -} - -// SubnetGroupList contains a list of SubnetGroups -#SubnetGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SubnetGroup] @go(Items,[]SubnetGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_authenticationprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_authenticationprofile_types_go_gen.cue deleted file mode 100644 index d6949b0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_authenticationprofile_types_go_gen.cue +++ /dev/null @@ -1,81 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AuthenticationProfileInitParameters: { - // The content of the authentication profile in JSON format. The maximum length of the JSON string is determined by a quota for your account. - authenticationProfileContent?: null | string @go(AuthenticationProfileContent,*string) -} - -#AuthenticationProfileObservation: { - // The content of the authentication profile in JSON format. The maximum length of the JSON string is determined by a quota for your account. - authenticationProfileContent?: null | string @go(AuthenticationProfileContent,*string) - - // The name of the authentication profile. - id?: null | string @go(ID,*string) -} - -#AuthenticationProfileParameters: { - // The content of the authentication profile in JSON format. The maximum length of the JSON string is determined by a quota for your account. - // +kubebuilder:validation:Optional - authenticationProfileContent?: null | string @go(AuthenticationProfileContent,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// AuthenticationProfileSpec defines the desired state of AuthenticationProfile -#AuthenticationProfileSpec: { - v1.#ResourceSpec - forProvider: #AuthenticationProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AuthenticationProfileInitParameters @go(InitProvider) -} - -// AuthenticationProfileStatus defines the observed state of AuthenticationProfile. -#AuthenticationProfileStatus: { - v1.#ResourceStatus - atProvider?: #AuthenticationProfileObservation @go(AtProvider) -} - -// AuthenticationProfile is the Schema for the AuthenticationProfiles API. Creates a Redshift authentication profile -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AuthenticationProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.authenticationProfileContent) || (has(self.initProvider) && has(self.initProvider.authenticationProfileContent))",message="spec.forProvider.authenticationProfileContent is a required parameter" - spec: #AuthenticationProfileSpec @go(Spec) - status?: #AuthenticationProfileStatus @go(Status) -} - -// AuthenticationProfileList contains a list of AuthenticationProfiles -#AuthenticationProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AuthenticationProfile] @go(Items,[]AuthenticationProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_cluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_cluster_types_go_gen.cue deleted file mode 100644 index a6bdc89..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_cluster_types_go_gen.cue +++ /dev/null @@ -1,628 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterInitParameters: { - // If true , major version upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster. Default is true. - allowVersionUpgrade?: null | bool @go(AllowVersionUpgrade,*bool) - - // Specifies whether any cluster modifications are applied immediately, or during the next maintenance window. Default is false. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // The value represents how the cluster is configured to use AQUA (Advanced Query Accelerator) after the cluster is restored. Possible values are enabled, disabled, and auto. Requires Cluster reboot. - aquaConfigurationStatus?: null | string @go(AquaConfigurationStatus,*string) - - // The number of days that automated snapshots are retained. If the value is 0, automated snapshots are disabled. Even if automated snapshots are disabled, you can still create manual snapshots when you want with create-cluster-snapshot. Default is 1. - automatedSnapshotRetentionPeriod?: null | float64 @go(AutomatedSnapshotRetentionPeriod,*float64) - - // The EC2 Availability Zone (AZ) in which you want Amazon Redshift to provision the cluster. For example, if you have several EC2 instances running in a specific Availability Zone, then you might want the cluster to be provisioned in the same zone in order to decrease network latency. Can only be changed if availability_zone_relocation_enabled is true. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // If true, the cluster can be relocated to another availabity zone, either automatically by AWS or when requested. Default is false. Available for use on clusters from the RA3 instance family. - availabilityZoneRelocationEnabled?: null | bool @go(AvailabilityZoneRelocationEnabled,*bool) - - // The name of the parameter group to be associated with this cluster. - clusterParameterGroupName?: null | string @go(ClusterParameterGroupName,*string) - - // The public key for the cluster - clusterPublicKey?: null | string @go(ClusterPublicKey,*string) - - // The specific revision number of the database in the cluster - clusterRevisionNumber?: null | string @go(ClusterRevisionNumber,*string) - - // A list of security groups to be associated with this cluster. - clusterSecurityGroups?: [...null | string] @go(ClusterSecurityGroups,[]*string) - - // The name of a cluster subnet group to be associated with this cluster. If this parameter is not provided the resulting cluster will be deployed outside virtual private cloud (VPC). - clusterSubnetGroupName?: null | string @go(ClusterSubnetGroupName,*string) - - // The cluster type to use. Either single-node or multi-node. - clusterType?: null | string @go(ClusterType,*string) - - // The version of the Amazon Redshift engine software that you want to deploy on the cluster. - // The version selected runs on all the nodes in the cluster. - clusterVersion?: null | string @go(ClusterVersion,*string) - - // The name of the first database to be created when the cluster is created. - // If you do not provide a name, Amazon Redshift will create a default database called dev. - databaseName?: null | string @go(DatabaseName,*string) - - // The Elastic IP (EIP) address for the cluster. - elasticIp?: null | string @go(ElasticIP,*string) - - // If true , the data in the cluster is encrypted at rest. - encrypted?: null | bool @go(Encrypted,*bool) - - // The connection endpoint - endpoint?: null | string @go(Endpoint,*string) - - // If true , enhanced VPC routing is enabled. - enhancedVpcRouting?: null | bool @go(EnhancedVPCRouting,*bool) - - // The identifier of the final snapshot that is to be created immediately before deleting the cluster. If this parameter is provided, skip_final_snapshot must be false. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // Logging, documented below. - logging?: [...#LoggingInitParameters] @go(Logging,[]LoggingInitParameters) - - // The name of the maintenance track for the restored cluster. When you take a snapshot, the snapshot inherits the MaintenanceTrack value from the cluster. The snapshot might be on a different track than the cluster that was the source for the snapshot. For example, suppose that you take a snapshot of a cluster that is on the current track and then change the cluster to be on the trailing track. In this case, the snapshot and the source cluster are on different tracks. Default value is current. - maintenanceTrackName?: null | string @go(MaintenanceTrackName,*string) - - // The default number of days to retain a manual snapshot. If the value is -1, the snapshot is retained indefinitely. This setting doesn't change the retention period of existing snapshots. Valid values are between -1 and 3653. Default value is -1. - manualSnapshotRetentionPeriod?: null | float64 @go(ManualSnapshotRetentionPeriod,*float64) - - // Username for the master DB user. - masterUsername?: null | string @go(MasterUsername,*string) - - // The node type to be provisioned for the cluster. - nodeType?: null | string @go(NodeType,*string) - - // The number of compute nodes in the cluster. This parameter is required when the ClusterType parameter is specified as multi-node. Default is 1. - numberOfNodes?: null | float64 @go(NumberOfNodes,*float64) - - // The AWS customer account used to create or copy the snapshot. Required if you are restoring a snapshot you do not own, optional if you own the snapshot. - ownerAccount?: null | string @go(OwnerAccount,*string) - - // The port number on which the cluster accepts incoming connections. Valid values are between 1115 and 65535. - // The cluster is accessible only via the JDBC and ODBC connection strings. - // Part of the connection string requires the port on which the cluster will listen for incoming connections. - // Default port is 5439. - port?: null | float64 @go(Port,*float64) - - // The weekly time range (in UTC) during which automated cluster maintenance can occur. - // Format: ddd:hh24:mi-ddd:hh24:mi - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // If true, the cluster can be accessed from a public network. Default is true. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Determines whether a final snapshot of the cluster is created before Amazon Redshift deletes the cluster. If true , a final cluster snapshot is not created. If false , a final cluster snapshot is created before the cluster is deleted. Default is false. - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // The name of the cluster the source snapshot was created from. - snapshotClusterIdentifier?: null | string @go(SnapshotClusterIdentifier,*string) - - // Configuration of automatic copy of snapshots from one region to another. Documented below. - snapshotCopy?: [...#SnapshotCopyInitParameters] @go(SnapshotCopy,[]SnapshotCopyInitParameters) - - // The name of the snapshot from which to create the new cluster. - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ClusterNodesInitParameters: { -} - -#ClusterNodesObservation: { - // Whether the node is a leader node or a compute node - nodeRole?: null | string @go(NodeRole,*string) - - // The private IP address of a node within a cluster - privateIpAddress?: null | string @go(PrivateIPAddress,*string) - - // The public IP address of a node within a cluster - publicIpAddress?: null | string @go(PublicIPAddress,*string) -} - -#ClusterNodesParameters: { -} - -#ClusterObservation: { - // If true , major version upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster. Default is true. - allowVersionUpgrade?: null | bool @go(AllowVersionUpgrade,*bool) - - // Specifies whether any cluster modifications are applied immediately, or during the next maintenance window. Default is false. - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // The value represents how the cluster is configured to use AQUA (Advanced Query Accelerator) after the cluster is restored. Possible values are enabled, disabled, and auto. Requires Cluster reboot. - aquaConfigurationStatus?: null | string @go(AquaConfigurationStatus,*string) - - // Amazon Resource Name (ARN) of cluster - arn?: null | string @go(Arn,*string) - - // The number of days that automated snapshots are retained. If the value is 0, automated snapshots are disabled. Even if automated snapshots are disabled, you can still create manual snapshots when you want with create-cluster-snapshot. Default is 1. - automatedSnapshotRetentionPeriod?: null | float64 @go(AutomatedSnapshotRetentionPeriod,*float64) - - // The EC2 Availability Zone (AZ) in which you want Amazon Redshift to provision the cluster. For example, if you have several EC2 instances running in a specific Availability Zone, then you might want the cluster to be provisioned in the same zone in order to decrease network latency. Can only be changed if availability_zone_relocation_enabled is true. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // If true, the cluster can be relocated to another availabity zone, either automatically by AWS or when requested. Default is false. Available for use on clusters from the RA3 instance family. - availabilityZoneRelocationEnabled?: null | bool @go(AvailabilityZoneRelocationEnabled,*bool) - - // The nodes in the cluster. Cluster node blocks are documented below - clusterNodes?: [...#ClusterNodesObservation] @go(ClusterNodes,[]ClusterNodesObservation) - - // The name of the parameter group to be associated with this cluster. - clusterParameterGroupName?: null | string @go(ClusterParameterGroupName,*string) - - // The public key for the cluster - clusterPublicKey?: null | string @go(ClusterPublicKey,*string) - - // The specific revision number of the database in the cluster - clusterRevisionNumber?: null | string @go(ClusterRevisionNumber,*string) - - // A list of security groups to be associated with this cluster. - clusterSecurityGroups?: [...null | string] @go(ClusterSecurityGroups,[]*string) - - // The name of a cluster subnet group to be associated with this cluster. If this parameter is not provided the resulting cluster will be deployed outside virtual private cloud (VPC). - clusterSubnetGroupName?: null | string @go(ClusterSubnetGroupName,*string) - - // The cluster type to use. Either single-node or multi-node. - clusterType?: null | string @go(ClusterType,*string) - - // The version of the Amazon Redshift engine software that you want to deploy on the cluster. - // The version selected runs on all the nodes in the cluster. - clusterVersion?: null | string @go(ClusterVersion,*string) - - // The DNS name of the cluster - dnsName?: null | string @go(DNSName,*string) - - // The name of the first database to be created when the cluster is created. - // If you do not provide a name, Amazon Redshift will create a default database called dev. - databaseName?: null | string @go(DatabaseName,*string) - - // The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was created. - defaultIamRoleArn?: null | string @go(DefaultIAMRoleArn,*string) - - // The Elastic IP (EIP) address for the cluster. - elasticIp?: null | string @go(ElasticIP,*string) - - // If true , the data in the cluster is encrypted at rest. - encrypted?: null | bool @go(Encrypted,*bool) - - // The connection endpoint - endpoint?: null | string @go(Endpoint,*string) - - // If true , enhanced VPC routing is enabled. - enhancedVpcRouting?: null | bool @go(EnhancedVPCRouting,*bool) - - // The identifier of the final snapshot that is to be created immediately before deleting the cluster. If this parameter is provided, skip_final_snapshot must be false. - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // A list of IAM Role ARNs to associate with the cluster. A Maximum of 10 can be associated to the cluster at any time. - iamRoles?: [...null | string] @go(IAMRoles,[]*string) - - // The Redshift Cluster ID. - id?: null | string @go(ID,*string) - - // The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Logging, documented below. - logging?: [...#LoggingObservation] @go(Logging,[]LoggingObservation) - - // The name of the maintenance track for the restored cluster. When you take a snapshot, the snapshot inherits the MaintenanceTrack value from the cluster. The snapshot might be on a different track than the cluster that was the source for the snapshot. For example, suppose that you take a snapshot of a cluster that is on the current track and then change the cluster to be on the trailing track. In this case, the snapshot and the source cluster are on different tracks. Default value is current. - maintenanceTrackName?: null | string @go(MaintenanceTrackName,*string) - - // The default number of days to retain a manual snapshot. If the value is -1, the snapshot is retained indefinitely. This setting doesn't change the retention period of existing snapshots. Valid values are between -1 and 3653. Default value is -1. - manualSnapshotRetentionPeriod?: null | float64 @go(ManualSnapshotRetentionPeriod,*float64) - - // Username for the master DB user. - masterUsername?: null | string @go(MasterUsername,*string) - - // The node type to be provisioned for the cluster. - nodeType?: null | string @go(NodeType,*string) - - // The number of compute nodes in the cluster. This parameter is required when the ClusterType parameter is specified as multi-node. Default is 1. - numberOfNodes?: null | float64 @go(NumberOfNodes,*float64) - - // The AWS customer account used to create or copy the snapshot. Required if you are restoring a snapshot you do not own, optional if you own the snapshot. - ownerAccount?: null | string @go(OwnerAccount,*string) - - // The port number on which the cluster accepts incoming connections. Valid values are between 1115 and 65535. - // The cluster is accessible only via the JDBC and ODBC connection strings. - // Part of the connection string requires the port on which the cluster will listen for incoming connections. - // Default port is 5439. - port?: null | float64 @go(Port,*float64) - - // The weekly time range (in UTC) during which automated cluster maintenance can occur. - // Format: ddd:hh24:mi-ddd:hh24:mi - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // If true, the cluster can be accessed from a public network. Default is true. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Determines whether a final snapshot of the cluster is created before Amazon Redshift deletes the cluster. If true , a final cluster snapshot is not created. If false , a final cluster snapshot is created before the cluster is deleted. Default is false. - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // The name of the cluster the source snapshot was created from. - snapshotClusterIdentifier?: null | string @go(SnapshotClusterIdentifier,*string) - - // Configuration of automatic copy of snapshots from one region to another. Documented below. - snapshotCopy?: [...#SnapshotCopyObservation] @go(SnapshotCopy,[]SnapshotCopyObservation) - - // The name of the snapshot from which to create the new cluster. - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // A list of Virtual Private Cloud (VPC) security groups to be associated with the cluster. - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -#ClusterParameters: { - // If true , major version upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster. Default is true. - // +kubebuilder:validation:Optional - allowVersionUpgrade?: null | bool @go(AllowVersionUpgrade,*bool) - - // Specifies whether any cluster modifications are applied immediately, or during the next maintenance window. Default is false. - // +kubebuilder:validation:Optional - applyImmediately?: null | bool @go(ApplyImmediately,*bool) - - // The value represents how the cluster is configured to use AQUA (Advanced Query Accelerator) after the cluster is restored. Possible values are enabled, disabled, and auto. Requires Cluster reboot. - // +kubebuilder:validation:Optional - aquaConfigurationStatus?: null | string @go(AquaConfigurationStatus,*string) - - // The number of days that automated snapshots are retained. If the value is 0, automated snapshots are disabled. Even if automated snapshots are disabled, you can still create manual snapshots when you want with create-cluster-snapshot. Default is 1. - // +kubebuilder:validation:Optional - automatedSnapshotRetentionPeriod?: null | float64 @go(AutomatedSnapshotRetentionPeriod,*float64) - - // The EC2 Availability Zone (AZ) in which you want Amazon Redshift to provision the cluster. For example, if you have several EC2 instances running in a specific Availability Zone, then you might want the cluster to be provisioned in the same zone in order to decrease network latency. Can only be changed if availability_zone_relocation_enabled is true. - // +kubebuilder:validation:Optional - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // If true, the cluster can be relocated to another availabity zone, either automatically by AWS or when requested. Default is false. Available for use on clusters from the RA3 instance family. - // +kubebuilder:validation:Optional - availabilityZoneRelocationEnabled?: null | bool @go(AvailabilityZoneRelocationEnabled,*bool) - - // The name of the parameter group to be associated with this cluster. - // +kubebuilder:validation:Optional - clusterParameterGroupName?: null | string @go(ClusterParameterGroupName,*string) - - // The public key for the cluster - // +kubebuilder:validation:Optional - clusterPublicKey?: null | string @go(ClusterPublicKey,*string) - - // The specific revision number of the database in the cluster - // +kubebuilder:validation:Optional - clusterRevisionNumber?: null | string @go(ClusterRevisionNumber,*string) - - // A list of security groups to be associated with this cluster. - // +kubebuilder:validation:Optional - clusterSecurityGroups?: [...null | string] @go(ClusterSecurityGroups,[]*string) - - // The name of a cluster subnet group to be associated with this cluster. If this parameter is not provided the resulting cluster will be deployed outside virtual private cloud (VPC). - // +kubebuilder:validation:Optional - clusterSubnetGroupName?: null | string @go(ClusterSubnetGroupName,*string) - - // The cluster type to use. Either single-node or multi-node. - // +kubebuilder:validation:Optional - clusterType?: null | string @go(ClusterType,*string) - - // The version of the Amazon Redshift engine software that you want to deploy on the cluster. - // The version selected runs on all the nodes in the cluster. - // +kubebuilder:validation:Optional - clusterVersion?: null | string @go(ClusterVersion,*string) - - // The name of the first database to be created when the cluster is created. - // If you do not provide a name, Amazon Redshift will create a default database called dev. - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was created. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - defaultIamRoleArn?: null | string @go(DefaultIAMRoleArn,*string) - - // Reference to a Role in iam to populate defaultIamRoleArn. - // +kubebuilder:validation:Optional - defaultIamRoleArnRef?: null | v1.#Reference @go(DefaultIAMRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate defaultIamRoleArn. - // +kubebuilder:validation:Optional - defaultIamRoleArnSelector?: null | v1.#Selector @go(DefaultIAMRoleArnSelector,*v1.Selector) - - // The Elastic IP (EIP) address for the cluster. - // +kubebuilder:validation:Optional - elasticIp?: null | string @go(ElasticIP,*string) - - // If true , the data in the cluster is encrypted at rest. - // +kubebuilder:validation:Optional - encrypted?: null | bool @go(Encrypted,*bool) - - // The connection endpoint - // +kubebuilder:validation:Optional - endpoint?: null | string @go(Endpoint,*string) - - // If true , enhanced VPC routing is enabled. - // +kubebuilder:validation:Optional - enhancedVpcRouting?: null | bool @go(EnhancedVPCRouting,*bool) - - // The identifier of the final snapshot that is to be created immediately before deleting the cluster. If this parameter is provided, skip_final_snapshot must be false. - // +kubebuilder:validation:Optional - finalSnapshotIdentifier?: null | string @go(FinalSnapshotIdentifier,*string) - - // References to Role in iam to populate iamRoles. - // +kubebuilder:validation:Optional - iamRoleRefs?: [...v1.#Reference] @go(IAMRoleRefs,[]v1.Reference) - - // Selector for a list of Role in iam to populate iamRoles. - // +kubebuilder:validation:Optional - iamRoleSelector?: null | v1.#Selector @go(IAMRoleSelector,*v1.Selector) - - // A list of IAM Role ARNs to associate with the cluster. A Maximum of 10 can be associated to the cluster at any time. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:refFieldName=IAMRoleRefs - // +crossplane:generate:reference:selectorFieldName=IAMRoleSelector - // +kubebuilder:validation:Optional - iamRoles?: [...null | string] @go(IAMRoles,[]*string) - - // The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Logging, documented below. - // +kubebuilder:validation:Optional - logging?: [...#LoggingParameters] @go(Logging,[]LoggingParameters) - - // The name of the maintenance track for the restored cluster. When you take a snapshot, the snapshot inherits the MaintenanceTrack value from the cluster. The snapshot might be on a different track than the cluster that was the source for the snapshot. For example, suppose that you take a snapshot of a cluster that is on the current track and then change the cluster to be on the trailing track. In this case, the snapshot and the source cluster are on different tracks. Default value is current. - // +kubebuilder:validation:Optional - maintenanceTrackName?: null | string @go(MaintenanceTrackName,*string) - - // The default number of days to retain a manual snapshot. If the value is -1, the snapshot is retained indefinitely. This setting doesn't change the retention period of existing snapshots. Valid values are between -1 and 3653. Default value is -1. - // +kubebuilder:validation:Optional - manualSnapshotRetentionPeriod?: null | float64 @go(ManualSnapshotRetentionPeriod,*float64) - - // Password for the master DB user. - // Note that this may show up in logs, and it will be stored in the state file. Password must contain at least 8 chars and - // contain at least one uppercase letter, one lowercase letter, and one number. - // +kubebuilder:validation:Optional - masterPasswordSecretRef?: null | v1.#SecretKeySelector @go(MasterPasswordSecretRef,*v1.SecretKeySelector) - - // Username for the master DB user. - // +kubebuilder:validation:Optional - masterUsername?: null | string @go(MasterUsername,*string) - - // The node type to be provisioned for the cluster. - // +kubebuilder:validation:Optional - nodeType?: null | string @go(NodeType,*string) - - // The number of compute nodes in the cluster. This parameter is required when the ClusterType parameter is specified as multi-node. Default is 1. - // +kubebuilder:validation:Optional - numberOfNodes?: null | float64 @go(NumberOfNodes,*float64) - - // The AWS customer account used to create or copy the snapshot. Required if you are restoring a snapshot you do not own, optional if you own the snapshot. - // +kubebuilder:validation:Optional - ownerAccount?: null | string @go(OwnerAccount,*string) - - // The port number on which the cluster accepts incoming connections. Valid values are between 1115 and 65535. - // The cluster is accessible only via the JDBC and ODBC connection strings. - // Part of the connection string requires the port on which the cluster will listen for incoming connections. - // Default port is 5439. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // The weekly time range (in UTC) during which automated cluster maintenance can occur. - // Format: ddd:hh24:mi-ddd:hh24:mi - // +kubebuilder:validation:Optional - preferredMaintenanceWindow?: null | string @go(PreferredMaintenanceWindow,*string) - - // If true, the cluster can be accessed from a public network. Default is true. - // +kubebuilder:validation:Optional - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Determines whether a final snapshot of the cluster is created before Amazon Redshift deletes the cluster. If true , a final cluster snapshot is not created. If false , a final cluster snapshot is created before the cluster is deleted. Default is false. - // +kubebuilder:validation:Optional - skipFinalSnapshot?: null | bool @go(SkipFinalSnapshot,*bool) - - // The name of the cluster the source snapshot was created from. - // +kubebuilder:validation:Optional - snapshotClusterIdentifier?: null | string @go(SnapshotClusterIdentifier,*string) - - // Configuration of automatic copy of snapshots from one region to another. Documented below. - // +kubebuilder:validation:Optional - snapshotCopy?: [...#SnapshotCopyParameters] @go(SnapshotCopy,[]SnapshotCopyParameters) - - // The name of the snapshot from which to create the new cluster. - // +kubebuilder:validation:Optional - snapshotIdentifier?: null | string @go(SnapshotIdentifier,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // References to SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdRefs?: [...v1.#Reference] @go(VPCSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdSelector?: null | v1.#Selector @go(VPCSecurityGroupIDSelector,*v1.Selector) - - // A list of Virtual Private Cloud (VPC) security groups to be associated with the cluster. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) -} - -#LoggingInitParameters: { - // The name of an existing S3 bucket where the log files are to be stored. Must be in the same region as the cluster and the cluster must have read bucket and put object permissions. - // For more information on the permissions required for the bucket, please read the AWS documentation - bucketName?: null | string @go(BucketName,*string) - - // Enables logging information such as queries and connection attempts, for the specified Amazon Redshift cluster. - enable?: null | bool @go(Enable,*bool) - - // The log destination type. An enum with possible values of s3 and cloudwatch. - logDestinationType?: null | string @go(LogDestinationType,*string) - - // The collection of exported log types. Log types include the connection log, user log and user activity log. Required when log_destination_type is cloudwatch. Valid log types are connectionlog, userlog, and useractivitylog. - logExports?: [...null | string] @go(LogExports,[]*string) - - // The prefix applied to the log file names. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) -} - -#LoggingObservation: { - // The name of an existing S3 bucket where the log files are to be stored. Must be in the same region as the cluster and the cluster must have read bucket and put object permissions. - // For more information on the permissions required for the bucket, please read the AWS documentation - bucketName?: null | string @go(BucketName,*string) - - // Enables logging information such as queries and connection attempts, for the specified Amazon Redshift cluster. - enable?: null | bool @go(Enable,*bool) - - // The log destination type. An enum with possible values of s3 and cloudwatch. - logDestinationType?: null | string @go(LogDestinationType,*string) - - // The collection of exported log types. Log types include the connection log, user log and user activity log. Required when log_destination_type is cloudwatch. Valid log types are connectionlog, userlog, and useractivitylog. - logExports?: [...null | string] @go(LogExports,[]*string) - - // The prefix applied to the log file names. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) -} - -#LoggingParameters: { - // The name of an existing S3 bucket where the log files are to be stored. Must be in the same region as the cluster and the cluster must have read bucket and put object permissions. - // For more information on the permissions required for the bucket, please read the AWS documentation - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Enables logging information such as queries and connection attempts, for the specified Amazon Redshift cluster. - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // The log destination type. An enum with possible values of s3 and cloudwatch. - // +kubebuilder:validation:Optional - logDestinationType?: null | string @go(LogDestinationType,*string) - - // The collection of exported log types. Log types include the connection log, user log and user activity log. Required when log_destination_type is cloudwatch. Valid log types are connectionlog, userlog, and useractivitylog. - // +kubebuilder:validation:Optional - logExports?: [...null | string] @go(LogExports,[]*string) - - // The prefix applied to the log file names. - // +kubebuilder:validation:Optional - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) -} - -#SnapshotCopyInitParameters: { - // The destination region that you want to copy snapshots to. - destinationRegion?: null | string @go(DestinationRegion,*string) - - // The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region. - grantName?: null | string @go(GrantName,*string) - - // The number of days to retain automated snapshots in the destination region after they are copied from the source region. Defaults to 7. - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) -} - -#SnapshotCopyObservation: { - // The destination region that you want to copy snapshots to. - destinationRegion?: null | string @go(DestinationRegion,*string) - - // The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region. - grantName?: null | string @go(GrantName,*string) - - // The number of days to retain automated snapshots in the destination region after they are copied from the source region. Defaults to 7. - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) -} - -#SnapshotCopyParameters: { - // The destination region that you want to copy snapshots to. - // +kubebuilder:validation:Optional - destinationRegion?: null | string @go(DestinationRegion,*string) - - // The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region. - // +kubebuilder:validation:Optional - grantName?: null | string @go(GrantName,*string) - - // The number of days to retain automated snapshots in the destination region after they are copied from the source region. Defaults to 7. - // +kubebuilder:validation:Optional - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) -} - -// ClusterSpec defines the desired state of Cluster -#ClusterSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInitParameters @go(InitProvider) -} - -// ClusterStatus defines the observed state of Cluster. -#ClusterStatus: { - v1.#ResourceStatus - atProvider?: #ClusterObservation @go(AtProvider) -} - -// Cluster is the Schema for the Clusters API. Provides a Redshift Cluster resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Cluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.nodeType) || (has(self.initProvider) && has(self.initProvider.nodeType))",message="spec.forProvider.nodeType is a required parameter" - spec: #ClusterSpec @go(Spec) - status?: #ClusterStatus @go(Status) -} - -// ClusterList contains a list of Clusters -#ClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Cluster] @go(Items,[]Cluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_eventsubscription_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_eventsubscription_types_go_gen.cue deleted file mode 100644 index 6f41309..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_eventsubscription_types_go_gen.cue +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EventSubscriptionInitParameters: { - // A boolean flag to enable/disable the subscription. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // A list of event categories for a SourceType that you want to subscribe to. See https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html or run aws redshift describe-event-categories. - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // The event severity to be published by the notification subscription. Valid options are INFO or ERROR. Default value of INFO. - severity?: null | string @go(Severity,*string) - - // A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified. - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // The type of source that will be generating the events. Valid options are cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, or scheduled-action. If not set, all sources will be subscribed to. - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EventSubscriptionObservation: { - // Amazon Resource Name (ARN) of the Redshift event notification subscription - arn?: null | string @go(Arn,*string) - - // The AWS customer account associated with the Redshift event notification subscription - customerAwsId?: null | string @go(CustomerAwsID,*string) - - // A boolean flag to enable/disable the subscription. Defaults to true. - enabled?: null | bool @go(Enabled,*bool) - - // A list of event categories for a SourceType that you want to subscribe to. See https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html or run aws redshift describe-event-categories. - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // The name of the Redshift event notification subscription - id?: null | string @go(ID,*string) - - // The event severity to be published by the notification subscription. Valid options are INFO or ERROR. Default value of INFO. - severity?: null | string @go(Severity,*string) - - // The ARN of the SNS topic to send events to. - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified. - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // The type of source that will be generating the events. Valid options are cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, or scheduled-action. If not set, all sources will be subscribed to. - sourceType?: null | string @go(SourceType,*string) - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#EventSubscriptionParameters: { - // A boolean flag to enable/disable the subscription. Defaults to true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // A list of event categories for a SourceType that you want to subscribe to. See https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html or run aws redshift describe-event-categories. - // +kubebuilder:validation:Optional - eventCategories?: [...null | string] @go(EventCategories,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The event severity to be published by the notification subscription. Valid options are INFO or ERROR. Default value of INFO. - // +kubebuilder:validation:Optional - severity?: null | string @go(Severity,*string) - - // The ARN of the SNS topic to send events to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - snsTopicArn?: null | string @go(SnsTopicArn,*string) - - // Reference to a Topic in sns to populate snsTopicArn. - // +kubebuilder:validation:Optional - snsTopicArnRef?: null | v1.#Reference @go(SnsTopicArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate snsTopicArn. - // +kubebuilder:validation:Optional - snsTopicArnSelector?: null | v1.#Selector @go(SnsTopicArnSelector,*v1.Selector) - - // A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified. - // +kubebuilder:validation:Optional - sourceIds?: [...null | string] @go(SourceIds,[]*string) - - // The type of source that will be generating the events. Valid options are cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, or scheduled-action. If not set, all sources will be subscribed to. - // +kubebuilder:validation:Optional - sourceType?: null | string @go(SourceType,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// EventSubscriptionSpec defines the desired state of EventSubscription -#EventSubscriptionSpec: { - v1.#ResourceSpec - forProvider: #EventSubscriptionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EventSubscriptionInitParameters @go(InitProvider) -} - -// EventSubscriptionStatus defines the observed state of EventSubscription. -#EventSubscriptionStatus: { - v1.#ResourceStatus - atProvider?: #EventSubscriptionObservation @go(AtProvider) -} - -// EventSubscription is the Schema for the EventSubscriptions API. Provides a Redshift event subscription resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EventSubscription: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EventSubscriptionSpec @go(Spec) - status?: #EventSubscriptionStatus @go(Status) -} - -// EventSubscriptionList contains a list of EventSubscriptions -#EventSubscriptionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EventSubscription] @go(Items,[]EventSubscription) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 7ad668a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=redshift.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "redshift.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_hsmclientcertificate_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_hsmclientcertificate_types_go_gen.cue deleted file mode 100644 index be0be3e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_hsmclientcertificate_types_go_gen.cue +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HSMClientCertificateInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#HSMClientCertificateObservation: { - // Amazon Resource Name (ARN) of the Hsm Client Certificate. - arn?: null | string @go(Arn,*string) - - // The public key that the Amazon Redshift cluster will use to connect to the HSM. You must register the public key in the HSM. - hsmClientCertificatePublicKey?: null | string @go(HSMClientCertificatePublicKey,*string) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#HSMClientCertificateParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// HSMClientCertificateSpec defines the desired state of HSMClientCertificate -#HSMClientCertificateSpec: { - v1.#ResourceSpec - forProvider: #HSMClientCertificateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HSMClientCertificateInitParameters @go(InitProvider) -} - -// HSMClientCertificateStatus defines the observed state of HSMClientCertificate. -#HSMClientCertificateStatus: { - v1.#ResourceStatus - atProvider?: #HSMClientCertificateObservation @go(AtProvider) -} - -// HSMClientCertificate is the Schema for the HSMClientCertificates API. Creates an HSM client certificate that an Amazon Redshift cluster will use to connect to the client's HSM in order to store and retrieve the keys used to encrypt the cluster databases. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HSMClientCertificate: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #HSMClientCertificateSpec @go(Spec) - status?: #HSMClientCertificateStatus @go(Status) -} - -// HSMClientCertificateList contains a list of HSMClientCertificates -#HSMClientCertificateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HSMClientCertificate] @go(Items,[]HSMClientCertificate) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_hsmconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_hsmconfiguration_types_go_gen.cue deleted file mode 100644 index b67e463..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_hsmconfiguration_types_go_gen.cue +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HSMConfigurationInitParameters: { - // A text description of the HSM configuration to be created. - description?: null | string @go(Description,*string) - - // The IP address that the Amazon Redshift cluster must use to access the HSM. - hsmIpAddress?: null | string @go(HSMIPAddress,*string) - - // The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys. - hsmPartitionName?: null | string @go(HSMPartitionName,*string) - - // The HSMs public certificate file. When using Cloud HSM, the file name is server.pem. - hsmServerPublicCertificate?: null | string @go(HSMServerPublicCertificate,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#HSMConfigurationObservation: { - // Amazon Resource Name (ARN) of the Hsm Client Certificate. - arn?: null | string @go(Arn,*string) - - // A text description of the HSM configuration to be created. - description?: null | string @go(Description,*string) - - // The IP address that the Amazon Redshift cluster must use to access the HSM. - hsmIpAddress?: null | string @go(HSMIPAddress,*string) - - // The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys. - hsmPartitionName?: null | string @go(HSMPartitionName,*string) - - // The HSMs public certificate file. When using Cloud HSM, the file name is server.pem. - hsmServerPublicCertificate?: null | string @go(HSMServerPublicCertificate,*string) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#HSMConfigurationParameters: { - // A text description of the HSM configuration to be created. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The IP address that the Amazon Redshift cluster must use to access the HSM. - // +kubebuilder:validation:Optional - hsmIpAddress?: null | string @go(HSMIPAddress,*string) - - // The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys. - // +kubebuilder:validation:Optional - hsmPartitionName?: null | string @go(HSMPartitionName,*string) - - // The password required to access the HSM partition. - // +kubebuilder:validation:Optional - hsmPartitionPasswordSecretRef: v1.#SecretKeySelector @go(HSMPartitionPasswordSecretRef) - - // The HSMs public certificate file. When using Cloud HSM, the file name is server.pem. - // +kubebuilder:validation:Optional - hsmServerPublicCertificate?: null | string @go(HSMServerPublicCertificate,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// HSMConfigurationSpec defines the desired state of HSMConfiguration -#HSMConfigurationSpec: { - v1.#ResourceSpec - forProvider: #HSMConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HSMConfigurationInitParameters @go(InitProvider) -} - -// HSMConfigurationStatus defines the observed state of HSMConfiguration. -#HSMConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #HSMConfigurationObservation @go(AtProvider) -} - -// HSMConfiguration is the Schema for the HSMConfigurations API. Creates an HSM configuration that contains the information required by an Amazon Redshift cluster to store and use database encryption keys in a Hardware Security Module (HSM). -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HSMConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.description) || (has(self.initProvider) && has(self.initProvider.description))",message="spec.forProvider.description is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.hsmIpAddress) || (has(self.initProvider) && has(self.initProvider.hsmIpAddress))",message="spec.forProvider.hsmIpAddress is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.hsmPartitionName) || (has(self.initProvider) && has(self.initProvider.hsmPartitionName))",message="spec.forProvider.hsmPartitionName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.hsmPartitionPasswordSecretRef)",message="spec.forProvider.hsmPartitionPasswordSecretRef is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.hsmServerPublicCertificate) || (has(self.initProvider) && has(self.initProvider.hsmServerPublicCertificate))",message="spec.forProvider.hsmServerPublicCertificate is a required parameter" - spec: #HSMConfigurationSpec @go(Spec) - status?: #HSMConfigurationStatus @go(Status) -} - -// HSMConfigurationList contains a list of HSMConfigurations -#HSMConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HSMConfiguration] @go(Items,[]HSMConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_parametergroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_parametergroup_types_go_gen.cue deleted file mode 100644 index 0e0ee30..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_parametergroup_types_go_gen.cue +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ParameterGroupInitParameters: { - // The description of the Redshift parameter group. - description?: null | string @go(Description,*string) - - // The family of the Redshift parameter group. - family?: null | string @go(Family,*string) - - // The name of the Redshift parameter group. - name?: null | string @go(Name,*string) - - // A list of Redshift parameters to apply. - parameter?: [...#ParameterInitParameters] @go(Parameter,[]ParameterInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParameterGroupObservation: { - // Amazon Resource Name (ARN) of parameter group - arn?: null | string @go(Arn,*string) - - // The description of the Redshift parameter group. - description?: null | string @go(Description,*string) - - // The family of the Redshift parameter group. - family?: null | string @go(Family,*string) - - // The Redshift parameter group name. - id?: null | string @go(ID,*string) - - // The name of the Redshift parameter group. - name?: null | string @go(Name,*string) - - // A list of Redshift parameters to apply. - parameter?: [...#ParameterObservation] @go(Parameter,[]ParameterObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ParameterGroupParameters: { - // The description of the Redshift parameter group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The family of the Redshift parameter group. - // +kubebuilder:validation:Optional - family?: null | string @go(Family,*string) - - // The name of the Redshift parameter group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A list of Redshift parameters to apply. - // +kubebuilder:validation:Optional - parameter?: [...#ParameterParameters] @go(Parameter,[]ParameterParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParameterInitParameters: { - // The name of the Redshift parameter group. - name?: null | string @go(Name,*string) - - // The value of the Redshift parameter. - value?: null | string @go(Value,*string) -} - -#ParameterObservation: { - // The name of the Redshift parameter group. - name?: null | string @go(Name,*string) - - // The value of the Redshift parameter. - value?: null | string @go(Value,*string) -} - -#ParameterParameters: { - // The name of the Redshift parameter group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value of the Redshift parameter. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// ParameterGroupSpec defines the desired state of ParameterGroup -#ParameterGroupSpec: { - v1.#ResourceSpec - forProvider: #ParameterGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ParameterGroupInitParameters @go(InitProvider) -} - -// ParameterGroupStatus defines the observed state of ParameterGroup. -#ParameterGroupStatus: { - v1.#ResourceStatus - atProvider?: #ParameterGroupObservation @go(AtProvider) -} - -// ParameterGroup is the Schema for the ParameterGroups API. Provides a Redshift Cluster parameter group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ParameterGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.family) || (has(self.initProvider) && has(self.initProvider.family))",message="spec.forProvider.family is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ParameterGroupSpec @go(Spec) - status?: #ParameterGroupStatus @go(Status) -} - -// ParameterGroupList contains a list of ParameterGroups -#ParameterGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ParameterGroup] @go(Items,[]ParameterGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_scheduledaction_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_scheduledaction_types_go_gen.cue deleted file mode 100644 index 9bca010..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_scheduledaction_types_go_gen.cue +++ /dev/null @@ -1,273 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PauseClusterInitParameters: { - // The identifier of the cluster to be paused. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) -} - -#PauseClusterObservation: { - // The identifier of the cluster to be paused. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) -} - -#PauseClusterParameters: { - // The identifier of the cluster to be paused. - // +kubebuilder:validation:Optional - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) -} - -#ResizeClusterInitParameters: { - // A boolean value indicating whether the resize operation is using the classic resize process. Default: false. - classic?: null | bool @go(Classic,*bool) - - // The unique identifier for the cluster to resize. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // The new cluster type for the specified cluster. - clusterType?: null | string @go(ClusterType,*string) - - // The new node type for the nodes you are adding. - nodeType?: null | string @go(NodeType,*string) - - // The new number of nodes for the cluster. - numberOfNodes?: null | float64 @go(NumberOfNodes,*float64) -} - -#ResizeClusterObservation: { - // A boolean value indicating whether the resize operation is using the classic resize process. Default: false. - classic?: null | bool @go(Classic,*bool) - - // The unique identifier for the cluster to resize. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // The new cluster type for the specified cluster. - clusterType?: null | string @go(ClusterType,*string) - - // The new node type for the nodes you are adding. - nodeType?: null | string @go(NodeType,*string) - - // The new number of nodes for the cluster. - numberOfNodes?: null | float64 @go(NumberOfNodes,*float64) -} - -#ResizeClusterParameters: { - // A boolean value indicating whether the resize operation is using the classic resize process. Default: false. - // +kubebuilder:validation:Optional - classic?: null | bool @go(Classic,*bool) - - // The unique identifier for the cluster to resize. - // +kubebuilder:validation:Optional - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // The new cluster type for the specified cluster. - // +kubebuilder:validation:Optional - clusterType?: null | string @go(ClusterType,*string) - - // The new node type for the nodes you are adding. - // +kubebuilder:validation:Optional - nodeType?: null | string @go(NodeType,*string) - - // The new number of nodes for the cluster. - // +kubebuilder:validation:Optional - numberOfNodes?: null | float64 @go(NumberOfNodes,*float64) -} - -#ResumeClusterInitParameters: { - // The identifier of the cluster to be resumed. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) -} - -#ResumeClusterObservation: { - // The identifier of the cluster to be resumed. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) -} - -#ResumeClusterParameters: { - // The identifier of the cluster to be resumed. - // +kubebuilder:validation:Optional - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) -} - -#ScheduledActionInitParameters: { - // The description of the scheduled action. - description?: null | string @go(Description,*string) - - // Whether to enable the scheduled action. Default is true . - enable?: null | bool @go(Enable,*bool) - - // The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). - endTime?: null | string @go(EndTime,*string) - - // The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information. - schedule?: null | string @go(Schedule,*string) - - // The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). - startTime?: null | string @go(StartTime,*string) - - // Target action. Documented below. - targetAction?: [...#TargetActionInitParameters] @go(TargetAction,[]TargetActionInitParameters) -} - -#ScheduledActionObservation: { - // The description of the scheduled action. - description?: null | string @go(Description,*string) - - // Whether to enable the scheduled action. Default is true . - enable?: null | bool @go(Enable,*bool) - - // The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). - endTime?: null | string @go(EndTime,*string) - - // The IAM role to assume to run the scheduled action. - iamRole?: null | string @go(IAMRole,*string) - - // The Redshift Scheduled Action name. - id?: null | string @go(ID,*string) - - // The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information. - schedule?: null | string @go(Schedule,*string) - - // The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). - startTime?: null | string @go(StartTime,*string) - - // Target action. Documented below. - targetAction?: [...#TargetActionObservation] @go(TargetAction,[]TargetActionObservation) -} - -#ScheduledActionParameters: { - // The description of the scheduled action. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether to enable the scheduled action. Default is true . - // +kubebuilder:validation:Optional - enable?: null | bool @go(Enable,*bool) - - // The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). - // +kubebuilder:validation:Optional - endTime?: null | string @go(EndTime,*string) - - // The IAM role to assume to run the scheduled action. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - iamRole?: null | string @go(IAMRole,*string) - - // Reference to a Role in iam to populate iamRole. - // +kubebuilder:validation:Optional - iamRoleRef?: null | v1.#Reference @go(IAMRoleRef,*v1.Reference) - - // Selector for a Role in iam to populate iamRole. - // +kubebuilder:validation:Optional - iamRoleSelector?: null | v1.#Selector @go(IAMRoleSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information. - // +kubebuilder:validation:Optional - schedule?: null | string @go(Schedule,*string) - - // The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). - // +kubebuilder:validation:Optional - startTime?: null | string @go(StartTime,*string) - - // Target action. Documented below. - // +kubebuilder:validation:Optional - targetAction?: [...#TargetActionParameters] @go(TargetAction,[]TargetActionParameters) -} - -#TargetActionInitParameters: { - // An action that runs a PauseCluster API operation. Documented below. - pauseCluster?: [...#PauseClusterInitParameters] @go(PauseCluster,[]PauseClusterInitParameters) - - // An action that runs a ResizeCluster API operation. Documented below. - resizeCluster?: [...#ResizeClusterInitParameters] @go(ResizeCluster,[]ResizeClusterInitParameters) - - // An action that runs a ResumeCluster API operation. Documented below. - resumeCluster?: [...#ResumeClusterInitParameters] @go(ResumeCluster,[]ResumeClusterInitParameters) -} - -#TargetActionObservation: { - // An action that runs a PauseCluster API operation. Documented below. - pauseCluster?: [...#PauseClusterObservation] @go(PauseCluster,[]PauseClusterObservation) - - // An action that runs a ResizeCluster API operation. Documented below. - resizeCluster?: [...#ResizeClusterObservation] @go(ResizeCluster,[]ResizeClusterObservation) - - // An action that runs a ResumeCluster API operation. Documented below. - resumeCluster?: [...#ResumeClusterObservation] @go(ResumeCluster,[]ResumeClusterObservation) -} - -#TargetActionParameters: { - // An action that runs a PauseCluster API operation. Documented below. - // +kubebuilder:validation:Optional - pauseCluster?: [...#PauseClusterParameters] @go(PauseCluster,[]PauseClusterParameters) - - // An action that runs a ResizeCluster API operation. Documented below. - // +kubebuilder:validation:Optional - resizeCluster?: [...#ResizeClusterParameters] @go(ResizeCluster,[]ResizeClusterParameters) - - // An action that runs a ResumeCluster API operation. Documented below. - // +kubebuilder:validation:Optional - resumeCluster?: [...#ResumeClusterParameters] @go(ResumeCluster,[]ResumeClusterParameters) -} - -// ScheduledActionSpec defines the desired state of ScheduledAction -#ScheduledActionSpec: { - v1.#ResourceSpec - forProvider: #ScheduledActionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ScheduledActionInitParameters @go(InitProvider) -} - -// ScheduledActionStatus defines the observed state of ScheduledAction. -#ScheduledActionStatus: { - v1.#ResourceStatus - atProvider?: #ScheduledActionObservation @go(AtProvider) -} - -// ScheduledAction is the Schema for the ScheduledActions API. Provides a Redshift Scheduled Action resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ScheduledAction: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.schedule) || (has(self.initProvider) && has(self.initProvider.schedule))",message="spec.forProvider.schedule is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targetAction) || (has(self.initProvider) && has(self.initProvider.targetAction))",message="spec.forProvider.targetAction is a required parameter" - spec: #ScheduledActionSpec @go(Spec) - status?: #ScheduledActionStatus @go(Status) -} - -// ScheduledActionList contains a list of ScheduledActions -#ScheduledActionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ScheduledAction] @go(Items,[]ScheduledAction) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_snapshotcopygrant_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_snapshotcopygrant_types_go_gen.cue deleted file mode 100644 index 43ba179..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_snapshotcopygrant_types_go_gen.cue +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SnapshotCopyGrantInitParameters: { - // A friendly name for identifying the grant. - snapshotCopyGrantName?: null | string @go(SnapshotCopyGrantName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SnapshotCopyGrantObservation: { - // Amazon Resource Name (ARN) of snapshot copy grant - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // The unique identifier for the customer master key (CMK) that the grant applies to. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a different AWS account, you must use the key ARN. If not specified, the default key is used. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // A friendly name for identifying the grant. - snapshotCopyGrantName?: null | string @go(SnapshotCopyGrantName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SnapshotCopyGrantParameters: { - // The unique identifier for the customer master key (CMK) that the grant applies to. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a different AWS account, you must use the key ARN. If not specified, the default key is used. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A friendly name for identifying the grant. - // +kubebuilder:validation:Optional - snapshotCopyGrantName?: null | string @go(SnapshotCopyGrantName,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SnapshotCopyGrantSpec defines the desired state of SnapshotCopyGrant -#SnapshotCopyGrantSpec: { - v1.#ResourceSpec - forProvider: #SnapshotCopyGrantParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SnapshotCopyGrantInitParameters @go(InitProvider) -} - -// SnapshotCopyGrantStatus defines the observed state of SnapshotCopyGrant. -#SnapshotCopyGrantStatus: { - v1.#ResourceStatus - atProvider?: #SnapshotCopyGrantObservation @go(AtProvider) -} - -// SnapshotCopyGrant is the Schema for the SnapshotCopyGrants API. Creates a snapshot copy grant that allows AWS Redshift to encrypt copied snapshots with a customer master key from AWS KMS in a destination region. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SnapshotCopyGrant: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.snapshotCopyGrantName) || (has(self.initProvider) && has(self.initProvider.snapshotCopyGrantName))",message="spec.forProvider.snapshotCopyGrantName is a required parameter" - spec: #SnapshotCopyGrantSpec @go(Spec) - status?: #SnapshotCopyGrantStatus @go(Status) -} - -// SnapshotCopyGrantList contains a list of SnapshotCopyGrants -#SnapshotCopyGrantList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SnapshotCopyGrant] @go(Items,[]SnapshotCopyGrant) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_snapshotschedule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_snapshotschedule_types_go_gen.cue deleted file mode 100644 index 74c8e79..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_snapshotschedule_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SnapshotScheduleInitParameters: { - // The definition of the snapshot schedule. The definition is made up of schedule expressions, for example cron(30 12 *) or rate(12 hours). - definitions?: [...null | string] @go(Definitions,[]*string) - - // The description of the snapshot schedule. - description?: null | string @go(Description,*string) - - // Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SnapshotScheduleObservation: { - // Amazon Resource Name (ARN) of the Redshift Snapshot Schedule. - arn?: null | string @go(Arn,*string) - - // The definition of the snapshot schedule. The definition is made up of schedule expressions, for example cron(30 12 *) or rate(12 hours). - definitions?: [...null | string] @go(Definitions,[]*string) - - // The description of the snapshot schedule. - description?: null | string @go(Description,*string) - - // Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SnapshotScheduleParameters: { - // The definition of the snapshot schedule. The definition is made up of schedule expressions, for example cron(30 12 *) or rate(12 hours). - // +kubebuilder:validation:Optional - definitions?: [...null | string] @go(Definitions,[]*string) - - // The description of the snapshot schedule. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion. - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SnapshotScheduleSpec defines the desired state of SnapshotSchedule -#SnapshotScheduleSpec: { - v1.#ResourceSpec - forProvider: #SnapshotScheduleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SnapshotScheduleInitParameters @go(InitProvider) -} - -// SnapshotScheduleStatus defines the observed state of SnapshotSchedule. -#SnapshotScheduleStatus: { - v1.#ResourceStatus - atProvider?: #SnapshotScheduleObservation @go(AtProvider) -} - -// SnapshotSchedule is the Schema for the SnapshotSchedules API. Provides an Redshift Snapshot Schedule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SnapshotSchedule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.definitions) || (has(self.initProvider) && has(self.initProvider.definitions))",message="spec.forProvider.definitions is a required parameter" - spec: #SnapshotScheduleSpec @go(Spec) - status?: #SnapshotScheduleStatus @go(Status) -} - -// SnapshotScheduleList contains a list of SnapshotSchedules -#SnapshotScheduleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SnapshotSchedule] @go(Items,[]SnapshotSchedule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_snapshotscheduleassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_snapshotscheduleassociation_types_go_gen.cue deleted file mode 100644 index ca45687..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_snapshotscheduleassociation_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SnapshotScheduleAssociationInitParameters: { -} - -#SnapshotScheduleAssociationObservation: { - // The cluster identifier. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - id?: null | string @go(ID,*string) - - // The snapshot schedule identifier. - scheduleIdentifier?: null | string @go(ScheduleIdentifier,*string) -} - -#SnapshotScheduleAssociationParameters: { - // The cluster identifier. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/redshift/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // Reference to a Cluster in redshift to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierRef?: null | v1.#Reference @go(ClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster in redshift to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierSelector?: null | v1.#Selector @go(ClusterIdentifierSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The snapshot schedule identifier. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/redshift/v1beta1.SnapshotSchedule - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - scheduleIdentifier?: null | string @go(ScheduleIdentifier,*string) - - // Reference to a SnapshotSchedule in redshift to populate scheduleIdentifier. - // +kubebuilder:validation:Optional - scheduleIdentifierRef?: null | v1.#Reference @go(ScheduleIdentifierRef,*v1.Reference) - - // Selector for a SnapshotSchedule in redshift to populate scheduleIdentifier. - // +kubebuilder:validation:Optional - scheduleIdentifierSelector?: null | v1.#Selector @go(ScheduleIdentifierSelector,*v1.Selector) -} - -// SnapshotScheduleAssociationSpec defines the desired state of SnapshotScheduleAssociation -#SnapshotScheduleAssociationSpec: { - v1.#ResourceSpec - forProvider: #SnapshotScheduleAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SnapshotScheduleAssociationInitParameters @go(InitProvider) -} - -// SnapshotScheduleAssociationStatus defines the observed state of SnapshotScheduleAssociation. -#SnapshotScheduleAssociationStatus: { - v1.#ResourceStatus - atProvider?: #SnapshotScheduleAssociationObservation @go(AtProvider) -} - -// SnapshotScheduleAssociation is the Schema for the SnapshotScheduleAssociations API. Provides an Association Redshift Cluster and Snapshot Schedule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SnapshotScheduleAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SnapshotScheduleAssociationSpec @go(Spec) - status?: #SnapshotScheduleAssociationStatus @go(Status) -} - -// SnapshotScheduleAssociationList contains a list of SnapshotScheduleAssociations -#SnapshotScheduleAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SnapshotScheduleAssociation] @go(Items,[]SnapshotScheduleAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_subnetgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_subnetgroup_types_go_gen.cue deleted file mode 100644 index 9874caf..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_subnetgroup_types_go_gen.cue +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SubnetGroupInitParameters: { - // The description of the Redshift Subnet group. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SubnetGroupObservation: { - // Amazon Resource Name (ARN) of the Redshift Subnet group name - arn?: null | string @go(Arn,*string) - - // The description of the Redshift Subnet group. - description?: null | string @go(Description,*string) - - // The Redshift Subnet group ID. - id?: null | string @go(ID,*string) - - // An array of VPC subnet IDs. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SubnetGroupParameters: { - // The description of the Redshift Subnet group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // An array of VPC subnet IDs. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SubnetGroupSpec defines the desired state of SubnetGroup -#SubnetGroupSpec: { - v1.#ResourceSpec - forProvider: #SubnetGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SubnetGroupInitParameters @go(InitProvider) -} - -// SubnetGroupStatus defines the observed state of SubnetGroup. -#SubnetGroupStatus: { - v1.#ResourceStatus - atProvider?: #SubnetGroupObservation @go(AtProvider) -} - -// SubnetGroup is the Schema for the SubnetGroups API. Provides a Redshift Subnet Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SubnetGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SubnetGroupSpec @go(Spec) - status?: #SubnetGroupStatus @go(Status) -} - -// SubnetGroupList contains a list of SubnetGroups -#SubnetGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SubnetGroup] @go(Items,[]SubnetGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_usagelimit_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_usagelimit_types_go_gen.cue deleted file mode 100644 index deb45d1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshift/v1beta1/zz_usagelimit_types_go_gen.cue +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshift/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UsageLimitInitParameters: { - // The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number. - amount?: null | float64 @go(Amount,*float64) - - // The action that Amazon Redshift takes when the limit is reached. The default is log. Valid values are log, emit-metric, and disable. - breachAction?: null | string @go(BreachAction,*string) - - // The Amazon Redshift feature that you want to limit. Valid values are spectrum, concurrency-scaling, and cross-region-datasharing. - featureType?: null | string @go(FeatureType,*string) - - // The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned. Valid values are data-scanned, and time. - limitType?: null | string @go(LimitType,*string) - - // The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly. Valid values are daily, weekly, and monthly. - period?: null | string @go(Period,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#UsageLimitObservation: { - // The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number. - amount?: null | float64 @go(Amount,*float64) - - // Amazon Resource Name (ARN) of the Redshift Usage Limit. - arn?: null | string @go(Arn,*string) - - // The action that Amazon Redshift takes when the limit is reached. The default is log. Valid values are log, emit-metric, and disable. - breachAction?: null | string @go(BreachAction,*string) - - // The identifier of the cluster that you want to limit usage. - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // The Amazon Redshift feature that you want to limit. Valid values are spectrum, concurrency-scaling, and cross-region-datasharing. - featureType?: null | string @go(FeatureType,*string) - - // The Redshift Usage Limit ID. - id?: null | string @go(ID,*string) - - // The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned. Valid values are data-scanned, and time. - limitType?: null | string @go(LimitType,*string) - - // The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly. Valid values are daily, weekly, and monthly. - period?: null | string @go(Period,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#UsageLimitParameters: { - // The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number. - // +kubebuilder:validation:Optional - amount?: null | float64 @go(Amount,*float64) - - // The action that Amazon Redshift takes when the limit is reached. The default is log. Valid values are log, emit-metric, and disable. - // +kubebuilder:validation:Optional - breachAction?: null | string @go(BreachAction,*string) - - // The identifier of the cluster that you want to limit usage. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/redshift/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - clusterIdentifier?: null | string @go(ClusterIdentifier,*string) - - // Reference to a Cluster in redshift to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierRef?: null | v1.#Reference @go(ClusterIdentifierRef,*v1.Reference) - - // Selector for a Cluster in redshift to populate clusterIdentifier. - // +kubebuilder:validation:Optional - clusterIdentifierSelector?: null | v1.#Selector @go(ClusterIdentifierSelector,*v1.Selector) - - // The Amazon Redshift feature that you want to limit. Valid values are spectrum, concurrency-scaling, and cross-region-datasharing. - // +kubebuilder:validation:Optional - featureType?: null | string @go(FeatureType,*string) - - // The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned. Valid values are data-scanned, and time. - // +kubebuilder:validation:Optional - limitType?: null | string @go(LimitType,*string) - - // The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly. Valid values are daily, weekly, and monthly. - // +kubebuilder:validation:Optional - period?: null | string @go(Period,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// UsageLimitSpec defines the desired state of UsageLimit -#UsageLimitSpec: { - v1.#ResourceSpec - forProvider: #UsageLimitParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UsageLimitInitParameters @go(InitProvider) -} - -// UsageLimitStatus defines the observed state of UsageLimit. -#UsageLimitStatus: { - v1.#ResourceStatus - atProvider?: #UsageLimitObservation @go(AtProvider) -} - -// UsageLimit is the Schema for the UsageLimits API. Provides a Redshift Usage Limit resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UsageLimit: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.amount) || (has(self.initProvider) && has(self.initProvider.amount))",message="spec.forProvider.amount is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.featureType) || (has(self.initProvider) && has(self.initProvider.featureType))",message="spec.forProvider.featureType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.limitType) || (has(self.initProvider) && has(self.initProvider.limitType))",message="spec.forProvider.limitType is a required parameter" - spec: #UsageLimitSpec @go(Spec) - status?: #UsageLimitStatus @go(Status) -} - -// UsageLimitList contains a list of UsageLimits -#UsageLimitList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UsageLimit] @go(Items,[]UsageLimit) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_endpointaccess_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_endpointaccess_types_go_gen.cue deleted file mode 100644 index e9f8ab2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_endpointaccess_types_go_gen.cue +++ /dev/null @@ -1,166 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EndpointAccessInitParameters: { - // The name of the workgroup. - workgroupName?: null | string @go(WorkgroupName,*string) -} - -#EndpointAccessObservation: { - // The DNS address of the VPC endpoint. - address?: null | string @go(Address,*string) - - // Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access. - arn?: null | string @go(Arn,*string) - - // The Redshift Endpoint Access Name. - id?: null | string @go(ID,*string) - - // The port that Amazon Redshift Serverless listens on. - port?: null | float64 @go(Port,*float64) - - // An array of VPC subnet IDs to associate with the endpoint. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpoint below. - vpcEndpoint?: [...#VPCEndpointObservation] @go(VPCEndpoint,[]VPCEndpointObservation) - - // An array of security group IDs to associate with the workgroup. - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // The name of the workgroup. - workgroupName?: null | string @go(WorkgroupName,*string) -} - -#EndpointAccessParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // An array of VPC subnet IDs to associate with the endpoint. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // References to SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdRefs?: [...v1.#Reference] @go(VPCSecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate vpcSecurityGroupIds. - // +kubebuilder:validation:Optional - vpcSecurityGroupIdSelector?: null | v1.#Selector @go(VPCSecurityGroupIDSelector,*v1.Selector) - - // An array of security group IDs to associate with the workgroup. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector - // +kubebuilder:validation:Optional - vpcSecurityGroupIds?: [...null | string] @go(VPCSecurityGroupIds,[]*string) - - // The name of the workgroup. - // +kubebuilder:validation:Optional - workgroupName?: null | string @go(WorkgroupName,*string) -} - -#NetworkInterfaceInitParameters: { -} - -#NetworkInterfaceObservation: { - // The availability Zone. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The unique identifier of the network interface. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // The IPv4 address of the network interface within the subnet. - privateIpAddress?: null | string @go(PrivateIPAddress,*string) - - // The unique identifier of the subnet. - subnetId?: null | string @go(SubnetID,*string) -} - -#NetworkInterfaceParameters: { -} - -#VPCEndpointInitParameters: { -} - -#VPCEndpointObservation: { - // The network interfaces of the endpoint.. See Network Interface below. - networkInterface?: [...#NetworkInterfaceObservation] @go(NetworkInterface,[]NetworkInterfaceObservation) - - // The DNS address of the VPC endpoint. - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // The port that Amazon Redshift Serverless listens on. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCEndpointParameters: { -} - -// EndpointAccessSpec defines the desired state of EndpointAccess -#EndpointAccessSpec: { - v1.#ResourceSpec - forProvider: #EndpointAccessParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EndpointAccessInitParameters @go(InitProvider) -} - -// EndpointAccessStatus defines the observed state of EndpointAccess. -#EndpointAccessStatus: { - v1.#ResourceStatus - atProvider?: #EndpointAccessObservation @go(AtProvider) -} - -// EndpointAccess is the Schema for the EndpointAccesss API. Provides a Redshift Serverless Endpoint Access resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EndpointAccess: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.workgroupName) || (has(self.initProvider) && has(self.initProvider.workgroupName))",message="spec.forProvider.workgroupName is a required parameter" - spec: #EndpointAccessSpec @go(Spec) - status?: #EndpointAccessStatus @go(Status) -} - -// EndpointAccessList contains a list of EndpointAccesss -#EndpointAccessList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EndpointAccess] @go(Items,[]EndpointAccess) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 422251a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=redshiftserverless.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "redshiftserverless.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_redshiftserverlessnamespace_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_redshiftserverlessnamespace_types_go_gen.cue deleted file mode 100644 index 2a2516c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_redshiftserverlessnamespace_types_go_gen.cue +++ /dev/null @@ -1,167 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RedshiftServerlessNamespaceInitParameters: { - // The name of the first database created in the namespace. - dbName?: null | string @go(DBName,*string) - - // The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog. - logExports?: [...null | string] @go(LogExports,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RedshiftServerlessNamespaceObservation: { - // Amazon Resource Name (ARN) of the Redshift Serverless Namespace. - arn?: null | string @go(Arn,*string) - - // The name of the first database created in the namespace. - dbName?: null | string @go(DBName,*string) - - // The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles. - defaultIamRoleArn?: null | string @go(DefaultIAMRoleArn,*string) - - // A list of IAM roles to associate with the namespace. - iamRoles?: [...null | string] @go(IAMRoles,[]*string) - - // The Redshift Namespace Name. - id?: null | string @go(ID,*string) - - // The ARN of the Amazon Web Services Key Management Service key used to encrypt your data. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog. - logExports?: [...null | string] @go(LogExports,[]*string) - - // The Redshift Namespace ID. - namespaceId?: null | string @go(NamespaceID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RedshiftServerlessNamespaceParameters: { - // The password of the administrator for the first database created in the namespace. - // +kubebuilder:validation:Optional - adminUserPasswordSecretRef?: null | v1.#SecretKeySelector @go(AdminUserPasswordSecretRef,*v1.SecretKeySelector) - - // The username of the administrator for the first database created in the namespace. - // +kubebuilder:validation:Optional - adminUsernameSecretRef?: null | v1.#SecretKeySelector @go(AdminUsernameSecretRef,*v1.SecretKeySelector) - - // The name of the first database created in the namespace. - // +kubebuilder:validation:Optional - dbName?: null | string @go(DBName,*string) - - // The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - defaultIamRoleArn?: null | string @go(DefaultIAMRoleArn,*string) - - // Reference to a Role in iam to populate defaultIamRoleArn. - // +kubebuilder:validation:Optional - defaultIamRoleArnRef?: null | v1.#Reference @go(DefaultIAMRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate defaultIamRoleArn. - // +kubebuilder:validation:Optional - defaultIamRoleArnSelector?: null | v1.#Selector @go(DefaultIAMRoleArnSelector,*v1.Selector) - - // References to Role in iam to populate iamRoles. - // +kubebuilder:validation:Optional - iamRoleRefs?: [...v1.#Reference] @go(IAMRoleRefs,[]v1.Reference) - - // Selector for a list of Role in iam to populate iamRoles. - // +kubebuilder:validation:Optional - iamRoleSelector?: null | v1.#Selector @go(IAMRoleSelector,*v1.Selector) - - // A list of IAM roles to associate with the namespace. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:refFieldName=IAMRoleRefs - // +crossplane:generate:reference:selectorFieldName=IAMRoleSelector - // +kubebuilder:validation:Optional - iamRoles?: [...null | string] @go(IAMRoles,[]*string) - - // The ARN of the Amazon Web Services Key Management Service key used to encrypt your data. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog. - // +kubebuilder:validation:Optional - logExports?: [...null | string] @go(LogExports,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RedshiftServerlessNamespaceSpec defines the desired state of RedshiftServerlessNamespace -#RedshiftServerlessNamespaceSpec: { - v1.#ResourceSpec - forProvider: #RedshiftServerlessNamespaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RedshiftServerlessNamespaceInitParameters @go(InitProvider) -} - -// RedshiftServerlessNamespaceStatus defines the observed state of RedshiftServerlessNamespace. -#RedshiftServerlessNamespaceStatus: { - v1.#ResourceStatus - atProvider?: #RedshiftServerlessNamespaceObservation @go(AtProvider) -} - -// RedshiftServerlessNamespace is the Schema for the RedshiftServerlessNamespaces API. Provides a Redshift Serverless Namespace resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RedshiftServerlessNamespace: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RedshiftServerlessNamespaceSpec @go(Spec) - status?: #RedshiftServerlessNamespaceStatus @go(Status) -} - -// RedshiftServerlessNamespaceList contains a list of RedshiftServerlessNamespaces -#RedshiftServerlessNamespaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RedshiftServerlessNamespace] @go(Items,[]RedshiftServerlessNamespace) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_resourcepolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_resourcepolicy_types_go_gen.cue deleted file mode 100644 index 60268bb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_resourcepolicy_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourcePolicyInitParameters: { - // The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot. - policy?: null | string @go(Policy,*string) -} - -#ResourcePolicyObservation: { - // The Amazon Resource Name (ARN) of the account to create or update a resource policy for. - id?: null | string @go(ID,*string) - - // The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot. - policy?: null | string @go(Policy,*string) - - // The Amazon Resource Name (ARN) of the account to create or update a resource policy for. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#ResourcePolicyParameters: { - // The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of the account to create or update a resource policy for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1.Snapshot - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a Snapshot in redshiftserverless to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a Snapshot in redshiftserverless to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) -} - -// ResourcePolicySpec defines the desired state of ResourcePolicy -#ResourcePolicySpec: { - v1.#ResourceSpec - forProvider: #ResourcePolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourcePolicyInitParameters @go(InitProvider) -} - -// ResourcePolicyStatus defines the observed state of ResourcePolicy. -#ResourcePolicyStatus: { - v1.#ResourceStatus - atProvider?: #ResourcePolicyObservation @go(AtProvider) -} - -// ResourcePolicy is the Schema for the ResourcePolicys API. Provides a Redshift Serverless Resource Policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ResourcePolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #ResourcePolicySpec @go(Spec) - status?: #ResourcePolicyStatus @go(Status) -} - -// ResourcePolicyList contains a list of ResourcePolicys -#ResourcePolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ResourcePolicy] @go(Items,[]ResourcePolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_snapshot_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_snapshot_types_go_gen.cue deleted file mode 100644 index 27d8ac8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_snapshot_types_go_gen.cue +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SnapshotInitParameters: { - // How long to retain the created snapshot. Default value is -1. - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) -} - -#SnapshotObservation: { - // All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster. - accountsWithProvisionedRestoreAccess?: [...null | string] @go(AccountsWithProvisionedRestoreAccess,[]*string) - - // All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace. - accountsWithRestoreAccess?: [...null | string] @go(AccountsWithRestoreAccess,[]*string) - - // The username of the database within a snapshot. - adminUsername?: null | string @go(AdminUsername,*string) - - // The Amazon Resource Name (ARN) of the snapshot. - arn?: null | string @go(Arn,*string) - - // The name of the snapshot. - id?: null | string @go(ID,*string) - - // The unique identifier of the KMS key used to encrypt the snapshot. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The Amazon Resource Name (ARN) of the namespace the snapshot was created from. - namespaceArn?: null | string @go(NamespaceArn,*string) - - // The namespace to create a snapshot for. - namespaceName?: null | string @go(NamespaceName,*string) - - // The owner Amazon Web Services; account of the snapshot. - ownerAccount?: null | string @go(OwnerAccount,*string) - - // How long to retain the created snapshot. Default value is -1. - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) -} - -#SnapshotParameters: { - // The namespace to create a snapshot for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1.Workgroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("namespace_name",false) - // +kubebuilder:validation:Optional - namespaceName?: null | string @go(NamespaceName,*string) - - // Reference to a Workgroup in redshiftserverless to populate namespaceName. - // +kubebuilder:validation:Optional - namespaceNameRef?: null | v1.#Reference @go(NamespaceNameRef,*v1.Reference) - - // Selector for a Workgroup in redshiftserverless to populate namespaceName. - // +kubebuilder:validation:Optional - namespaceNameSelector?: null | v1.#Selector @go(NamespaceNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // How long to retain the created snapshot. Default value is -1. - // +kubebuilder:validation:Optional - retentionPeriod?: null | float64 @go(RetentionPeriod,*float64) -} - -// SnapshotSpec defines the desired state of Snapshot -#SnapshotSpec: { - v1.#ResourceSpec - forProvider: #SnapshotParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SnapshotInitParameters @go(InitProvider) -} - -// SnapshotStatus defines the observed state of Snapshot. -#SnapshotStatus: { - v1.#ResourceStatus - atProvider?: #SnapshotObservation @go(AtProvider) -} - -// Snapshot is the Schema for the Snapshots API. Provides a Redshift Serverless Snapshot resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Snapshot: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SnapshotSpec @go(Spec) - status?: #SnapshotStatus @go(Status) -} - -// SnapshotList contains a list of Snapshots -#SnapshotList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Snapshot] @go(Items,[]Snapshot) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_usagelimit_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_usagelimit_types_go_gen.cue deleted file mode 100644 index fb6ffdd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_usagelimit_types_go_gen.cue +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#UsageLimitInitParameters: { - // The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number. - amount?: null | float64 @go(Amount,*float64) - - // The action that Amazon Redshift Serverless takes when the limit is reached. Valid values are log, emit-metric, and deactivate. The default is log. - breachAction?: null | string @go(BreachAction,*string) - - // The time period that the amount applies to. A weekly period begins on Sunday. Valid values are daily, weekly, and monthly. The default is monthly. - period?: null | string @go(Period,*string) - - // The type of Amazon Redshift Serverless usage to create a usage limit for. Valid values are serverless-compute or cross-region-datasharing. - usageType?: null | string @go(UsageType,*string) -} - -#UsageLimitObservation: { - // The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number. - amount?: null | float64 @go(Amount,*float64) - - // Amazon Resource Name (ARN) of the Redshift Serverless Usage Limit. - arn?: null | string @go(Arn,*string) - - // The action that Amazon Redshift Serverless takes when the limit is reached. Valid values are log, emit-metric, and deactivate. The default is log. - breachAction?: null | string @go(BreachAction,*string) - - // The Redshift Usage Limit id. - id?: null | string @go(ID,*string) - - // The time period that the amount applies to. A weekly period begins on Sunday. Valid values are daily, weekly, and monthly. The default is monthly. - period?: null | string @go(Period,*string) - - // The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for. - resourceArn?: null | string @go(ResourceArn,*string) - - // The type of Amazon Redshift Serverless usage to create a usage limit for. Valid values are serverless-compute or cross-region-datasharing. - usageType?: null | string @go(UsageType,*string) -} - -#UsageLimitParameters: { - // The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number. - // +kubebuilder:validation:Optional - amount?: null | float64 @go(Amount,*float64) - - // The action that Amazon Redshift Serverless takes when the limit is reached. Valid values are log, emit-metric, and deactivate. The default is log. - // +kubebuilder:validation:Optional - breachAction?: null | string @go(BreachAction,*string) - - // The time period that the amount applies to. A weekly period begins on Sunday. Valid values are daily, weekly, and monthly. The default is monthly. - // +kubebuilder:validation:Optional - period?: null | string @go(Period,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1.Workgroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a Workgroup in redshiftserverless to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a Workgroup in redshiftserverless to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) - - // The type of Amazon Redshift Serverless usage to create a usage limit for. Valid values are serverless-compute or cross-region-datasharing. - // +kubebuilder:validation:Optional - usageType?: null | string @go(UsageType,*string) -} - -// UsageLimitSpec defines the desired state of UsageLimit -#UsageLimitSpec: { - v1.#ResourceSpec - forProvider: #UsageLimitParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UsageLimitInitParameters @go(InitProvider) -} - -// UsageLimitStatus defines the observed state of UsageLimit. -#UsageLimitStatus: { - v1.#ResourceStatus - atProvider?: #UsageLimitObservation @go(AtProvider) -} - -// UsageLimit is the Schema for the UsageLimits API. Provides a Redshift Serverless Usage Limit resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UsageLimit: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.amount) || (has(self.initProvider) && has(self.initProvider.amount))",message="spec.forProvider.amount is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.usageType) || (has(self.initProvider) && has(self.initProvider.usageType))",message="spec.forProvider.usageType is a required parameter" - spec: #UsageLimitSpec @go(Spec) - status?: #UsageLimitStatus @go(Status) -} - -// UsageLimitList contains a list of UsageLimits -#UsageLimitList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UsageLimit] @go(Items,[]UsageLimit) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_workgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_workgroup_types_go_gen.cue deleted file mode 100644 index 78bf0d9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1/zz_workgroup_types_go_gen.cue +++ /dev/null @@ -1,259 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/redshiftserverless/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigParameterInitParameters: { - // The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time. - parameterKey?: null | string @go(ParameterKey,*string) - - // The value of the parameter to set. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#ConfigParameterObservation: { - // The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time. - parameterKey?: null | string @go(ParameterKey,*string) - - // The value of the parameter to set. - parameterValue?: null | string @go(ParameterValue,*string) -} - -#ConfigParameterParameters: { - // The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time. - // +kubebuilder:validation:Optional - parameterKey?: null | string @go(ParameterKey,*string) - - // The value of the parameter to set. - // +kubebuilder:validation:Optional - parameterValue?: null | string @go(ParameterValue,*string) -} - -#EndpointInitParameters: { -} - -#EndpointObservation: { - // The DNS address of the VPC endpoint. - address?: null | string @go(Address,*string) - - // The port that Amazon Redshift Serverless listens on. - port?: null | float64 @go(Port,*float64) - - // The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpoint below. - vpcEndpoint?: [...#EndpointVPCEndpointObservation] @go(VPCEndpoint,[]EndpointVPCEndpointObservation) -} - -#EndpointParameters: { -} - -#EndpointVPCEndpointInitParameters: { -} - -#EndpointVPCEndpointObservation: { - // The network interfaces of the endpoint.. See Network Interface below. - networkInterface?: [...#VPCEndpointNetworkInterfaceObservation] @go(NetworkInterface,[]VPCEndpointNetworkInterfaceObservation) - - // The DNS address of the VPC endpoint. - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // The port that Amazon Redshift Serverless listens on. - vpcId?: null | string @go(VPCID,*string) -} - -#EndpointVPCEndpointParameters: { -} - -#VPCEndpointNetworkInterfaceInitParameters: { -} - -#VPCEndpointNetworkInterfaceObservation: { - // The availability Zone. - availabilityZone?: null | string @go(AvailabilityZone,*string) - - // The unique identifier of the network interface. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // The IPv4 address of the network interface within the subnet. - privateIpAddress?: null | string @go(PrivateIPAddress,*string) - - // The unique identifier of the subnet. - subnetId?: null | string @go(SubnetID,*string) -} - -#VPCEndpointNetworkInterfaceParameters: { -} - -#WorkgroupInitParameters: { - // The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs). - baseCapacity?: null | float64 @go(BaseCapacity,*float64) - - // An array of parameters to set for more control over a serverless database. See Config Parameter below. - configParameter?: [...#ConfigParameterInitParameters] @go(ConfigParameter,[]ConfigParameterInitParameters) - - // The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC instead of over the internet. - enhancedVpcRouting?: null | bool @go(EnhancedVPCRouting,*bool) - - // The name of the namespace. - namespaceName?: null | string @go(NamespaceName,*string) - - // A value that specifies whether the workgroup can be accessed from a public network. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#WorkgroupObservation: { - // Amazon Resource Name (ARN) of the Redshift Serverless Workgroup. - arn?: null | string @go(Arn,*string) - - // The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs). - baseCapacity?: null | float64 @go(BaseCapacity,*float64) - - // An array of parameters to set for more control over a serverless database. See Config Parameter below. - configParameter?: [...#ConfigParameterObservation] @go(ConfigParameter,[]ConfigParameterObservation) - - // The endpoint that is created from the workgroup. See Endpoint below. - endpoint?: [...#EndpointObservation] @go(Endpoint,[]EndpointObservation) - - // The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC instead of over the internet. - enhancedVpcRouting?: null | bool @go(EnhancedVPCRouting,*bool) - - // The Redshift Workgroup Name. - id?: null | string @go(ID,*string) - - // The name of the namespace. - namespaceName?: null | string @go(NamespaceName,*string) - - // A value that specifies whether the workgroup can be accessed from a public network. - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // An array of security group IDs to associate with the workgroup. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // An array of VPC subnet IDs to associate with the workgroup. When set, must contain at least three subnets spanning three Availability Zones. A minimum number of IP addresses is required and scales with the Base Capacity. For more information, see the following AWS document. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The Redshift Workgroup ID. - workgroupId?: null | string @go(WorkgroupID,*string) -} - -#WorkgroupParameters: { - // The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs). - // +kubebuilder:validation:Optional - baseCapacity?: null | float64 @go(BaseCapacity,*float64) - - // An array of parameters to set for more control over a serverless database. See Config Parameter below. - // +kubebuilder:validation:Optional - configParameter?: [...#ConfigParameterParameters] @go(ConfigParameter,[]ConfigParameterParameters) - - // The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC instead of over the internet. - // +kubebuilder:validation:Optional - enhancedVpcRouting?: null | bool @go(EnhancedVPCRouting,*bool) - - // The name of the namespace. - // +kubebuilder:validation:Optional - namespaceName?: null | string @go(NamespaceName,*string) - - // A value that specifies whether the workgroup can be accessed from a public network. - // +kubebuilder:validation:Optional - publiclyAccessible?: null | bool @go(PubliclyAccessible,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // An array of security group IDs to associate with the workgroup. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // An array of VPC subnet IDs to associate with the workgroup. When set, must contain at least three subnets spanning three Availability Zones. A minimum number of IP addresses is required and scales with the Base Capacity. For more information, see the following AWS document. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// WorkgroupSpec defines the desired state of Workgroup -#WorkgroupSpec: { - v1.#ResourceSpec - forProvider: #WorkgroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WorkgroupInitParameters @go(InitProvider) -} - -// WorkgroupStatus defines the observed state of Workgroup. -#WorkgroupStatus: { - v1.#ResourceStatus - atProvider?: #WorkgroupObservation @go(AtProvider) -} - -// Workgroup is the Schema for the Workgroups API. Provides a Redshift Serverless Workgroup resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Workgroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.namespaceName) || (has(self.initProvider) && has(self.initProvider.namespaceName))",message="spec.forProvider.namespaceName is a required parameter" - spec: #WorkgroupSpec @go(Spec) - status?: #WorkgroupStatus @go(Status) -} - -// WorkgroupList contains a list of Workgroups -#WorkgroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Workgroup] @go(Items,[]Workgroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/resourcegroups/v1beta1/zz_group_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/resourcegroups/v1beta1/zz_group_types_go_gen.cue deleted file mode 100644 index 7cf9f75..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/resourcegroups/v1beta1/zz_group_types_go_gen.cue +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/resourcegroups/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigurationInitParameters: { - // A collection of parameters for this group configuration item. See below for details. - parameters?: [...#ParametersInitParameters] @go(Parameters,[]ParametersInitParameters) - - // Specifies the type of group configuration item. - type?: null | string @go(Type,*string) -} - -#ConfigurationObservation: { - // A collection of parameters for this group configuration item. See below for details. - parameters?: [...#ParametersObservation] @go(Parameters,[]ParametersObservation) - - // Specifies the type of group configuration item. - type?: null | string @go(Type,*string) -} - -#ConfigurationParameters: { - // A collection of parameters for this group configuration item. See below for details. - // +kubebuilder:validation:Optional - parameters?: [...#ParametersParameters] @go(Parameters,[]ParametersParameters) - - // Specifies the type of group configuration item. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#GroupInitParameters: { - // A configuration associates the resource group with an AWS service and specifies how the service can interact with the resources in the group. See below for details. - configuration?: [...#ConfigurationInitParameters] @go(Configuration,[]ConfigurationInitParameters) - - // A description of the resource group. - description?: null | string @go(Description,*string) - - // A resource_query block. Resource queries are documented below. - resourceQuery?: [...#ResourceQueryInitParameters] @go(ResourceQuery,[]ResourceQueryInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#GroupObservation: { - // The ARN assigned by AWS for this resource group. - arn?: null | string @go(Arn,*string) - - // A configuration associates the resource group with an AWS service and specifies how the service can interact with the resources in the group. See below for details. - configuration?: [...#ConfigurationObservation] @go(Configuration,[]ConfigurationObservation) - - // A description of the resource group. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // A resource_query block. Resource queries are documented below. - resourceQuery?: [...#ResourceQueryObservation] @go(ResourceQuery,[]ResourceQueryObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#GroupParameters: { - // A configuration associates the resource group with an AWS service and specifies how the service can interact with the resources in the group. See below for details. - // +kubebuilder:validation:Optional - configuration?: [...#ConfigurationParameters] @go(Configuration,[]ConfigurationParameters) - - // A description of the resource group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A resource_query block. Resource queries are documented below. - // +kubebuilder:validation:Optional - resourceQuery?: [...#ResourceQueryParameters] @go(ResourceQuery,[]ResourceQueryParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ParametersInitParameters: { - // The name of the group configuration parameter. - name?: null | string @go(Name,*string) - - // The value or values to be used for the specified parameter. - values?: [...null | string] @go(Values,[]*string) -} - -#ParametersObservation: { - // The name of the group configuration parameter. - name?: null | string @go(Name,*string) - - // The value or values to be used for the specified parameter. - values?: [...null | string] @go(Values,[]*string) -} - -#ParametersParameters: { - // The name of the group configuration parameter. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value or values to be used for the specified parameter. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#ResourceQueryInitParameters: { - // The resource query as a JSON string. - query?: null | string @go(Query,*string) - - // The type of the resource query. Defaults to TAG_FILTERS_1_0. - type?: null | string @go(Type,*string) -} - -#ResourceQueryObservation: { - // The resource query as a JSON string. - query?: null | string @go(Query,*string) - - // The type of the resource query. Defaults to TAG_FILTERS_1_0. - type?: null | string @go(Type,*string) -} - -#ResourceQueryParameters: { - // The resource query as a JSON string. - // +kubebuilder:validation:Optional - query?: null | string @go(Query,*string) - - // The type of the resource query. Defaults to TAG_FILTERS_1_0. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// GroupSpec defines the desired state of Group -#GroupSpec: { - v1.#ResourceSpec - forProvider: #GroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GroupInitParameters @go(InitProvider) -} - -// GroupStatus defines the observed state of Group. -#GroupStatus: { - v1.#ResourceStatus - atProvider?: #GroupObservation @go(AtProvider) -} - -// Group is the Schema for the Groups API. Provides a Resource Group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Group: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #GroupSpec @go(Spec) - status?: #GroupStatus @go(Status) -} - -// GroupList contains a list of Groups -#GroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Group] @go(Items,[]Group) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/resourcegroups/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/resourcegroups/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 9a059ca..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/resourcegroups/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/resourcegroups/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=resourcegroups.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "resourcegroups.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rolesanywhere/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rolesanywhere/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 89b6e2f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rolesanywhere/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rolesanywhere/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=rolesanywhere.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "rolesanywhere.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rolesanywhere/v1beta1/zz_profile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rolesanywhere/v1beta1/zz_profile_types_go_gen.cue deleted file mode 100644 index a3805b7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rolesanywhere/v1beta1/zz_profile_types_go_gen.cue +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rolesanywhere/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ProfileInitParameters: { - // The number of seconds the vended session credentials are valid for. Defaults to 3600. - durationSeconds?: null | float64 @go(DurationSeconds,*float64) - - // Whether or not the Profile is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // A list of managed policy ARNs that apply to the vended session credentials. - managedPolicyArns?: [...null | string] @go(ManagedPolicyArns,[]*string) - - // The name of the Profile. - name?: null | string @go(Name,*string) - - // Specifies whether instance properties are required in CreateSession requests with this profile. - requireInstanceProperties?: null | bool @go(RequireInstanceProperties,*bool) - - // A session policy that applies to the trust boundary of the vended session credentials. - sessionPolicy?: null | string @go(SessionPolicy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ProfileObservation: { - // Amazon Resource Name (ARN) of the Profile - arn?: null | string @go(Arn,*string) - - // The number of seconds the vended session credentials are valid for. Defaults to 3600. - durationSeconds?: null | float64 @go(DurationSeconds,*float64) - - // Whether or not the Profile is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // The Profile ID. - id?: null | string @go(ID,*string) - - // A list of managed policy ARNs that apply to the vended session credentials. - managedPolicyArns?: [...null | string] @go(ManagedPolicyArns,[]*string) - - // The name of the Profile. - name?: null | string @go(Name,*string) - - // Specifies whether instance properties are required in CreateSession requests with this profile. - requireInstanceProperties?: null | bool @go(RequireInstanceProperties,*bool) - - // A list of IAM roles that this profile can assume - roleArns?: [...null | string] @go(RoleArns,[]*string) - - // A session policy that applies to the trust boundary of the vended session credentials. - sessionPolicy?: null | string @go(SessionPolicy,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ProfileParameters: { - // The number of seconds the vended session credentials are valid for. Defaults to 3600. - // +kubebuilder:validation:Optional - durationSeconds?: null | float64 @go(DurationSeconds,*float64) - - // Whether or not the Profile is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // A list of managed policy ARNs that apply to the vended session credentials. - // +kubebuilder:validation:Optional - managedPolicyArns?: [...null | string] @go(ManagedPolicyArns,[]*string) - - // The name of the Profile. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies whether instance properties are required in CreateSession requests with this profile. - // +kubebuilder:validation:Optional - requireInstanceProperties?: null | bool @go(RequireInstanceProperties,*bool) - - // A list of IAM roles that this profile can assume - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArns?: [...null | string] @go(RoleArns,[]*string) - - // References to Role in iam to populate roleArns. - // +kubebuilder:validation:Optional - roleArnsRefs?: [...v1.#Reference] @go(RoleArnsRefs,[]v1.Reference) - - // Selector for a list of Role in iam to populate roleArns. - // +kubebuilder:validation:Optional - roleArnsSelector?: null | v1.#Selector @go(RoleArnsSelector,*v1.Selector) - - // A session policy that applies to the trust boundary of the vended session credentials. - // +kubebuilder:validation:Optional - sessionPolicy?: null | string @go(SessionPolicy,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ProfileSpec defines the desired state of Profile -#ProfileSpec: { - v1.#ResourceSpec - forProvider: #ProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProfileInitParameters @go(InitProvider) -} - -// ProfileStatus defines the observed state of Profile. -#ProfileStatus: { - v1.#ResourceStatus - atProvider?: #ProfileObservation @go(AtProvider) -} - -// Profile is the Schema for the Profiles API. Provides a Roles Anywhere Profile resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Profile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ProfileSpec @go(Spec) - status?: #ProfileStatus @go(Status) -} - -// ProfileList contains a list of Profiles -#ProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Profile] @go(Items,[]Profile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_delegationset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_delegationset_types_go_gen.cue deleted file mode 100644 index de8cff8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_delegationset_types_go_gen.cue +++ /dev/null @@ -1,89 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DelegationSetInitParameters: { - // This is a reference name used in Caller Reference - // (helpful for identifying single delegation set amongst others) - referenceName?: null | string @go(ReferenceName,*string) -} - -#DelegationSetObservation: { - // The Amazon Resource Name (ARN) of the Delegation Set. - arn?: null | string @go(Arn,*string) - - // The delegation set ID - id?: null | string @go(ID,*string) - - // A list of authoritative name servers for the hosted zone - // (effectively a list of NS records). - nameServers?: [...null | string] @go(NameServers,[]*string) - - // This is a reference name used in Caller Reference - // (helpful for identifying single delegation set amongst others) - referenceName?: null | string @go(ReferenceName,*string) -} - -#DelegationSetParameters: { - // This is a reference name used in Caller Reference - // (helpful for identifying single delegation set amongst others) - // +kubebuilder:validation:Optional - referenceName?: null | string @go(ReferenceName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DelegationSetSpec defines the desired state of DelegationSet -#DelegationSetSpec: { - v1.#ResourceSpec - forProvider: #DelegationSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DelegationSetInitParameters @go(InitProvider) -} - -// DelegationSetStatus defines the observed state of DelegationSet. -#DelegationSetStatus: { - v1.#ResourceStatus - atProvider?: #DelegationSetObservation @go(AtProvider) -} - -// DelegationSet is the Schema for the DelegationSets API. Provides a Route53 Delegation Set resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DelegationSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DelegationSetSpec @go(Spec) - status?: #DelegationSetStatus @go(Status) -} - -// DelegationSetList contains a list of DelegationSets -#DelegationSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DelegationSet] @go(Items,[]DelegationSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index e68a216..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=route53.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "route53.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_healthcheck_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_healthcheck_types_go_gen.cue deleted file mode 100644 index fb62d27..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_healthcheck_types_go_gen.cue +++ /dev/null @@ -1,296 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HealthCheckInitParameters: { - // The minimum number of child health checks that must be healthy for Route 53 to consider the parent health check to be healthy. Valid values are integers between 0 and 256, inclusive - childHealthThreshold?: null | float64 @go(ChildHealthThreshold,*float64) - - // For a specified parent health check, a list of HealthCheckId values for the associated child health checks. - childHealthchecks?: [...null | string] @go(ChildHealthchecks,[]*string) - - // The CloudWatchRegion that the CloudWatch alarm was created in. - cloudwatchAlarmRegion?: null | string @go(CloudwatchAlarmRegion,*string) - - // A boolean value that stops Route 53 from performing health checks. When set to true, Route 53 will do the following depending on the type of health check: - disabled?: null | bool @go(Disabled,*bool) - - // A boolean value that indicates whether Route53 should send the fqdn to the endpoint when performing the health check. This defaults to AWS' defaults: when the type is "HTTPS" enable_sni defaults to true, when type is anything else enable_sni defaults to false. - enableSni?: null | bool @go(EnableSni,*bool) - - // The number of consecutive health checks that an endpoint must pass or fail. - failureThreshold?: null | float64 @go(FailureThreshold,*float64) - - // The fully qualified domain name of the endpoint to be checked. - fqdn?: null | string @go(Fqdn,*string) - - // The IP address of the endpoint to be checked. - ipAddress?: null | string @go(IPAddress,*string) - - // The status of the health check when CloudWatch has insufficient data about the state of associated alarm. Valid values are Healthy , Unhealthy and LastKnownStatus. - insufficientDataHealthStatus?: null | string @go(InsufficientDataHealthStatus,*string) - - // A boolean value that indicates whether the status of health check should be inverted. For example, if a health check is healthy but Inverted is True , then Route 53 considers the health check to be unhealthy. - invertHealthcheck?: null | bool @go(InvertHealthcheck,*bool) - - // A Boolean value that indicates whether you want Route 53 to measure the latency between health checkers in multiple AWS regions and your endpoint and to display CloudWatch latency graphs in the Route 53 console. - measureLatency?: null | bool @go(MeasureLatency,*bool) - - // The port of the endpoint to be checked. - port?: null | float64 @go(Port,*float64) - - // This is a reference name used in Caller Reference - // (helpful for identifying single health_check set amongst others) - referenceName?: null | string @go(ReferenceName,*string) - - // A list of AWS regions that you want Amazon Route 53 health checkers to check the specified endpoint from. - regions?: [...null | string] @go(Regions,[]*string) - - // The number of seconds between the time that Amazon Route 53 gets a response from your endpoint and the time that it sends the next health-check request. - requestInterval?: null | float64 @go(RequestInterval,*float64) - - // The path that you want Amazon Route 53 to request when performing health checks. - resourcePath?: null | string @go(ResourcePath,*string) - - // The Amazon Resource Name (ARN) for the Route 53 Application Recovery Controller routing control. This is used when health check type is RECOVERY_CONTROL - routingControlArn?: null | string @go(RoutingControlArn,*string) - - // String searched in the first 5120 bytes of the response body for check to be considered healthy. Only valid with HTTP_STR_MATCH and HTTPS_STR_MATCH. - searchString?: null | string @go(SearchString,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The protocol to use when performing health checks. Valid values are HTTP, HTTPS, HTTP_STR_MATCH, HTTPS_STR_MATCH, TCP, CALCULATED, CLOUDWATCH_METRIC and RECOVERY_CONTROL. - type?: null | string @go(Type,*string) -} - -#HealthCheckObservation: { - // The Amazon Resource Name (ARN) of the Health Check. - arn?: null | string @go(Arn,*string) - - // The minimum number of child health checks that must be healthy for Route 53 to consider the parent health check to be healthy. Valid values are integers between 0 and 256, inclusive - childHealthThreshold?: null | float64 @go(ChildHealthThreshold,*float64) - - // For a specified parent health check, a list of HealthCheckId values for the associated child health checks. - childHealthchecks?: [...null | string] @go(ChildHealthchecks,[]*string) - - // The name of the CloudWatch alarm. - cloudwatchAlarmName?: null | string @go(CloudwatchAlarmName,*string) - - // The CloudWatchRegion that the CloudWatch alarm was created in. - cloudwatchAlarmRegion?: null | string @go(CloudwatchAlarmRegion,*string) - - // A boolean value that stops Route 53 from performing health checks. When set to true, Route 53 will do the following depending on the type of health check: - disabled?: null | bool @go(Disabled,*bool) - - // A boolean value that indicates whether Route53 should send the fqdn to the endpoint when performing the health check. This defaults to AWS' defaults: when the type is "HTTPS" enable_sni defaults to true, when type is anything else enable_sni defaults to false. - enableSni?: null | bool @go(EnableSni,*bool) - - // The number of consecutive health checks that an endpoint must pass or fail. - failureThreshold?: null | float64 @go(FailureThreshold,*float64) - - // The fully qualified domain name of the endpoint to be checked. - fqdn?: null | string @go(Fqdn,*string) - - // The id of the health check - id?: null | string @go(ID,*string) - - // The IP address of the endpoint to be checked. - ipAddress?: null | string @go(IPAddress,*string) - - // The status of the health check when CloudWatch has insufficient data about the state of associated alarm. Valid values are Healthy , Unhealthy and LastKnownStatus. - insufficientDataHealthStatus?: null | string @go(InsufficientDataHealthStatus,*string) - - // A boolean value that indicates whether the status of health check should be inverted. For example, if a health check is healthy but Inverted is True , then Route 53 considers the health check to be unhealthy. - invertHealthcheck?: null | bool @go(InvertHealthcheck,*bool) - - // A Boolean value that indicates whether you want Route 53 to measure the latency between health checkers in multiple AWS regions and your endpoint and to display CloudWatch latency graphs in the Route 53 console. - measureLatency?: null | bool @go(MeasureLatency,*bool) - - // The port of the endpoint to be checked. - port?: null | float64 @go(Port,*float64) - - // This is a reference name used in Caller Reference - // (helpful for identifying single health_check set amongst others) - referenceName?: null | string @go(ReferenceName,*string) - - // A list of AWS regions that you want Amazon Route 53 health checkers to check the specified endpoint from. - regions?: [...null | string] @go(Regions,[]*string) - - // The number of seconds between the time that Amazon Route 53 gets a response from your endpoint and the time that it sends the next health-check request. - requestInterval?: null | float64 @go(RequestInterval,*float64) - - // The path that you want Amazon Route 53 to request when performing health checks. - resourcePath?: null | string @go(ResourcePath,*string) - - // The Amazon Resource Name (ARN) for the Route 53 Application Recovery Controller routing control. This is used when health check type is RECOVERY_CONTROL - routingControlArn?: null | string @go(RoutingControlArn,*string) - - // String searched in the first 5120 bytes of the response body for check to be considered healthy. Only valid with HTTP_STR_MATCH and HTTPS_STR_MATCH. - searchString?: null | string @go(SearchString,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The protocol to use when performing health checks. Valid values are HTTP, HTTPS, HTTP_STR_MATCH, HTTPS_STR_MATCH, TCP, CALCULATED, CLOUDWATCH_METRIC and RECOVERY_CONTROL. - type?: null | string @go(Type,*string) -} - -#HealthCheckParameters: { - // The minimum number of child health checks that must be healthy for Route 53 to consider the parent health check to be healthy. Valid values are integers between 0 and 256, inclusive - // +kubebuilder:validation:Optional - childHealthThreshold?: null | float64 @go(ChildHealthThreshold,*float64) - - // For a specified parent health check, a list of HealthCheckId values for the associated child health checks. - // +kubebuilder:validation:Optional - childHealthchecks?: [...null | string] @go(ChildHealthchecks,[]*string) - - // The name of the CloudWatch alarm. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatch/v1beta1.MetricAlarm - // +kubebuilder:validation:Optional - cloudwatchAlarmName?: null | string @go(CloudwatchAlarmName,*string) - - // Reference to a MetricAlarm in cloudwatch to populate cloudwatchAlarmName. - // +kubebuilder:validation:Optional - cloudwatchAlarmNameRef?: null | v1.#Reference @go(CloudwatchAlarmNameRef,*v1.Reference) - - // Selector for a MetricAlarm in cloudwatch to populate cloudwatchAlarmName. - // +kubebuilder:validation:Optional - cloudwatchAlarmNameSelector?: null | v1.#Selector @go(CloudwatchAlarmNameSelector,*v1.Selector) - - // The CloudWatchRegion that the CloudWatch alarm was created in. - // +kubebuilder:validation:Optional - cloudwatchAlarmRegion?: null | string @go(CloudwatchAlarmRegion,*string) - - // A boolean value that stops Route 53 from performing health checks. When set to true, Route 53 will do the following depending on the type of health check: - // +kubebuilder:validation:Optional - disabled?: null | bool @go(Disabled,*bool) - - // A boolean value that indicates whether Route53 should send the fqdn to the endpoint when performing the health check. This defaults to AWS' defaults: when the type is "HTTPS" enable_sni defaults to true, when type is anything else enable_sni defaults to false. - // +kubebuilder:validation:Optional - enableSni?: null | bool @go(EnableSni,*bool) - - // The number of consecutive health checks that an endpoint must pass or fail. - // +kubebuilder:validation:Optional - failureThreshold?: null | float64 @go(FailureThreshold,*float64) - - // The fully qualified domain name of the endpoint to be checked. - // +kubebuilder:validation:Optional - fqdn?: null | string @go(Fqdn,*string) - - // The IP address of the endpoint to be checked. - // +kubebuilder:validation:Optional - ipAddress?: null | string @go(IPAddress,*string) - - // The status of the health check when CloudWatch has insufficient data about the state of associated alarm. Valid values are Healthy , Unhealthy and LastKnownStatus. - // +kubebuilder:validation:Optional - insufficientDataHealthStatus?: null | string @go(InsufficientDataHealthStatus,*string) - - // A boolean value that indicates whether the status of health check should be inverted. For example, if a health check is healthy but Inverted is True , then Route 53 considers the health check to be unhealthy. - // +kubebuilder:validation:Optional - invertHealthcheck?: null | bool @go(InvertHealthcheck,*bool) - - // A Boolean value that indicates whether you want Route 53 to measure the latency between health checkers in multiple AWS regions and your endpoint and to display CloudWatch latency graphs in the Route 53 console. - // +kubebuilder:validation:Optional - measureLatency?: null | bool @go(MeasureLatency,*bool) - - // The port of the endpoint to be checked. - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) - - // This is a reference name used in Caller Reference - // (helpful for identifying single health_check set amongst others) - // +kubebuilder:validation:Optional - referenceName?: null | string @go(ReferenceName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A list of AWS regions that you want Amazon Route 53 health checkers to check the specified endpoint from. - // +kubebuilder:validation:Optional - regions?: [...null | string] @go(Regions,[]*string) - - // The number of seconds between the time that Amazon Route 53 gets a response from your endpoint and the time that it sends the next health-check request. - // +kubebuilder:validation:Optional - requestInterval?: null | float64 @go(RequestInterval,*float64) - - // The path that you want Amazon Route 53 to request when performing health checks. - // +kubebuilder:validation:Optional - resourcePath?: null | string @go(ResourcePath,*string) - - // The Amazon Resource Name (ARN) for the Route 53 Application Recovery Controller routing control. This is used when health check type is RECOVERY_CONTROL - // +kubebuilder:validation:Optional - routingControlArn?: null | string @go(RoutingControlArn,*string) - - // String searched in the first 5120 bytes of the response body for check to be considered healthy. Only valid with HTTP_STR_MATCH and HTTPS_STR_MATCH. - // +kubebuilder:validation:Optional - searchString?: null | string @go(SearchString,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The protocol to use when performing health checks. Valid values are HTTP, HTTPS, HTTP_STR_MATCH, HTTPS_STR_MATCH, TCP, CALCULATED, CLOUDWATCH_METRIC and RECOVERY_CONTROL. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// HealthCheckSpec defines the desired state of HealthCheck -#HealthCheckSpec: { - v1.#ResourceSpec - forProvider: #HealthCheckParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HealthCheckInitParameters @go(InitProvider) -} - -// HealthCheckStatus defines the observed state of HealthCheck. -#HealthCheckStatus: { - v1.#ResourceStatus - atProvider?: #HealthCheckObservation @go(AtProvider) -} - -// HealthCheck is the Schema for the HealthChecks API. Provides a Route53 health check. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HealthCheck: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #HealthCheckSpec @go(Spec) - status?: #HealthCheckStatus @go(Status) -} - -// HealthCheckList contains a list of HealthChecks -#HealthCheckList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HealthCheck] @go(Items,[]HealthCheck) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_hostedzonednssec_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_hostedzonednssec_types_go_gen.cue deleted file mode 100644 index 624a0b9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_hostedzonednssec_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HostedZoneDNSSECInitParameters: { - // Hosted Zone signing status. Valid values: SIGNING, NOT_SIGNING. Defaults to SIGNING. - signingStatus?: null | string @go(SigningStatus,*string) -} - -#HostedZoneDNSSECObservation: { - // Identifier of the Route 53 Hosted Zone. - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // Route 53 Hosted Zone identifier. - id?: null | string @go(ID,*string) - - // Hosted Zone signing status. Valid values: SIGNING, NOT_SIGNING. Defaults to SIGNING. - signingStatus?: null | string @go(SigningStatus,*string) -} - -#HostedZoneDNSSECParameters: { - // Identifier of the Route 53 Hosted Zone. - // +crossplane:generate:reference:type=Zone - // +kubebuilder:validation:Optional - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // Reference to a Zone to populate hostedZoneId. - // +kubebuilder:validation:Optional - hostedZoneIdRef?: null | v1.#Reference @go(HostedZoneIDRef,*v1.Reference) - - // Selector for a Zone to populate hostedZoneId. - // +kubebuilder:validation:Optional - hostedZoneIdSelector?: null | v1.#Selector @go(HostedZoneIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Hosted Zone signing status. Valid values: SIGNING, NOT_SIGNING. Defaults to SIGNING. - // +kubebuilder:validation:Optional - signingStatus?: null | string @go(SigningStatus,*string) -} - -// HostedZoneDNSSECSpec defines the desired state of HostedZoneDNSSEC -#HostedZoneDNSSECSpec: { - v1.#ResourceSpec - forProvider: #HostedZoneDNSSECParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HostedZoneDNSSECInitParameters @go(InitProvider) -} - -// HostedZoneDNSSECStatus defines the observed state of HostedZoneDNSSEC. -#HostedZoneDNSSECStatus: { - v1.#ResourceStatus - atProvider?: #HostedZoneDNSSECObservation @go(AtProvider) -} - -// HostedZoneDNSSEC is the Schema for the HostedZoneDNSSECs API. Manages Route 53 Hosted Zone DNSSEC -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HostedZoneDNSSEC: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #HostedZoneDNSSECSpec @go(Spec) - status?: #HostedZoneDNSSECStatus @go(Status) -} - -// HostedZoneDNSSECList contains a list of HostedZoneDNSSECs -#HostedZoneDNSSECList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HostedZoneDNSSEC] @go(Items,[]HostedZoneDNSSEC) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_record_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_record_types_go_gen.cue deleted file mode 100644 index 6b36056..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_record_types_go_gen.cue +++ /dev/null @@ -1,383 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AliasInitParameters: { - // Set to true if you want Route 53 to determine whether to respond to DNS queries using this resource record set by checking the health of the resource record set. Some resources have special requirements, see related part of documentation. - evaluateTargetHealth?: null | bool @go(EvaluateTargetHealth,*bool) - - // The name of the record. - name?: null | string @go(Name,*string) - - // The ID of the hosted zone to contain this record. - zoneId?: null | string @go(ZoneID,*string) -} - -#AliasObservation: { - // Set to true if you want Route 53 to determine whether to respond to DNS queries using this resource record set by checking the health of the resource record set. Some resources have special requirements, see related part of documentation. - evaluateTargetHealth?: null | bool @go(EvaluateTargetHealth,*bool) - - // The name of the record. - name?: null | string @go(Name,*string) - - // The ID of the hosted zone to contain this record. - zoneId?: null | string @go(ZoneID,*string) -} - -#AliasParameters: { - // Set to true if you want Route 53 to determine whether to respond to DNS queries using this resource record set by checking the health of the resource record set. Some resources have special requirements, see related part of documentation. - // +kubebuilder:validation:Optional - evaluateTargetHealth?: null | bool @go(EvaluateTargetHealth,*bool) - - // The name of the record. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The ID of the hosted zone to contain this record. - // +kubebuilder:validation:Optional - zoneId?: null | string @go(ZoneID,*string) -} - -#CidrRoutingPolicyInitParameters: { - // The CIDR collection ID. See the aws_route53_cidr_collection resource for more details. - collectionId?: null | string @go(CollectionID,*string) - - // The CIDR collection location name. See the aws_route53_cidr_location resource for more details. A location_name with an asterisk "*" can be used to create a default CIDR record. collection_id is still required for default record. - locationName?: null | string @go(LocationName,*string) -} - -#CidrRoutingPolicyObservation: { - // The CIDR collection ID. See the aws_route53_cidr_collection resource for more details. - collectionId?: null | string @go(CollectionID,*string) - - // The CIDR collection location name. See the aws_route53_cidr_location resource for more details. A location_name with an asterisk "*" can be used to create a default CIDR record. collection_id is still required for default record. - locationName?: null | string @go(LocationName,*string) -} - -#CidrRoutingPolicyParameters: { - // The CIDR collection ID. See the aws_route53_cidr_collection resource for more details. - // +kubebuilder:validation:Optional - collectionId?: null | string @go(CollectionID,*string) - - // The CIDR collection location name. See the aws_route53_cidr_location resource for more details. A location_name with an asterisk "*" can be used to create a default CIDR record. collection_id is still required for default record. - // +kubebuilder:validation:Optional - locationName?: null | string @go(LocationName,*string) -} - -#FailoverRoutingPolicyInitParameters: { - // The record type. Valid values are A, AAAA, CAA, CNAME, DS, MX, NAPTR, NS, PTR, SOA, SPF, SRV and TXT. - type?: null | string @go(Type,*string) -} - -#FailoverRoutingPolicyObservation: { - // The record type. Valid values are A, AAAA, CAA, CNAME, DS, MX, NAPTR, NS, PTR, SOA, SPF, SRV and TXT. - type?: null | string @go(Type,*string) -} - -#FailoverRoutingPolicyParameters: { - // The record type. Valid values are A, AAAA, CAA, CNAME, DS, MX, NAPTR, NS, PTR, SOA, SPF, SRV and TXT. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#GeolocationRoutingPolicyInitParameters: { - // A two-letter continent code. See http://docs.aws.amazon.com/Route53/latest/APIReference/API_GetGeoLocation.html for code details. Either continent or country must be specified. - continent?: null | string @go(Continent,*string) - - // A two-character country code or * to indicate a default resource record set. - country?: null | string @go(Country,*string) - - // A subdivision code for a country. - subdivision?: null | string @go(Subdivision,*string) -} - -#GeolocationRoutingPolicyObservation: { - // A two-letter continent code. See http://docs.aws.amazon.com/Route53/latest/APIReference/API_GetGeoLocation.html for code details. Either continent or country must be specified. - continent?: null | string @go(Continent,*string) - - // A two-character country code or * to indicate a default resource record set. - country?: null | string @go(Country,*string) - - // A subdivision code for a country. - subdivision?: null | string @go(Subdivision,*string) -} - -#GeolocationRoutingPolicyParameters: { - // A two-letter continent code. See http://docs.aws.amazon.com/Route53/latest/APIReference/API_GetGeoLocation.html for code details. Either continent or country must be specified. - // +kubebuilder:validation:Optional - continent?: null | string @go(Continent,*string) - - // A two-character country code or * to indicate a default resource record set. - // +kubebuilder:validation:Optional - country?: null | string @go(Country,*string) - - // A subdivision code for a country. - // +kubebuilder:validation:Optional - subdivision?: null | string @go(Subdivision,*string) -} - -#LatencyRoutingPolicyInitParameters: { -} - -#LatencyRoutingPolicyObservation: { - // An AWS region from which to measure latency. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-latency - region?: null | string @go(Region,*string) -} - -#LatencyRoutingPolicyParameters: { - // An AWS region from which to measure latency. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-latency - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#RecordInitParameters: { - // An alias block. Conflicts with ttl & records. - // Documented below. - alias?: [...#AliasInitParameters] @go(Alias,[]AliasInitParameters) - - // false by default. This configuration is not recommended for most environments. - allowOverwrite?: null | bool @go(AllowOverwrite,*bool) - - // A block indicating a routing policy based on the IP network ranges of requestors. Conflicts with any other routing policy. Documented below. - cidrRoutingPolicy?: [...#CidrRoutingPolicyInitParameters] @go(CidrRoutingPolicy,[]CidrRoutingPolicyInitParameters) - - // A block indicating the routing behavior when associated health check fails. Conflicts with any other routing policy. Documented below. - failoverRoutingPolicy?: [...#FailoverRoutingPolicyInitParameters] @go(FailoverRoutingPolicy,[]FailoverRoutingPolicyInitParameters) - - // A block indicating a routing policy based on the geolocation of the requestor. Conflicts with any other routing policy. Documented below. - geolocationRoutingPolicy?: [...#GeolocationRoutingPolicyInitParameters] @go(GeolocationRoutingPolicy,[]GeolocationRoutingPolicyInitParameters) - - // A block indicating a routing policy based on the latency between the requestor and an AWS region. Conflicts with any other routing policy. Documented below. - latencyRoutingPolicy?: [...#LatencyRoutingPolicyInitParameters] @go(LatencyRoutingPolicy,[]LatencyRoutingPolicyInitParameters) - - // Set to true to indicate a multivalue answer routing policy. Conflicts with any other routing policy. - multivalueAnswerRoutingPolicy?: null | bool @go(MultivalueAnswerRoutingPolicy,*bool) - - // The name of the record. - name?: null | string @go(Name,*string) - - // A string list of records.g., "first255characters\"\"morecharacters"). - records?: [...null | string] @go(Records,[]*string) - - // Unique identifier to differentiate records with routing policies from one another. Required if using cidr_routing_policy, failover_routing_policy, geolocation_routing_policy, latency_routing_policy, multivalue_answer_routing_policy, or weighted_routing_policy. - setIdentifier?: null | string @go(SetIdentifier,*string) - - // The TTL of the record. - ttl?: null | float64 @go(TTL,*float64) - - // The record type. Valid values are A, AAAA, CAA, CNAME, DS, MX, NAPTR, NS, PTR, SOA, SPF, SRV and TXT. - type?: null | string @go(Type,*string) - - // A block indicating a weighted routing policy. Conflicts with any other routing policy. Documented below. - weightedRoutingPolicy?: [...#WeightedRoutingPolicyInitParameters] @go(WeightedRoutingPolicy,[]WeightedRoutingPolicyInitParameters) -} - -#RecordObservation: { - // An alias block. Conflicts with ttl & records. - // Documented below. - alias?: [...#AliasObservation] @go(Alias,[]AliasObservation) - - // false by default. This configuration is not recommended for most environments. - allowOverwrite?: null | bool @go(AllowOverwrite,*bool) - - // A block indicating a routing policy based on the IP network ranges of requestors. Conflicts with any other routing policy. Documented below. - cidrRoutingPolicy?: [...#CidrRoutingPolicyObservation] @go(CidrRoutingPolicy,[]CidrRoutingPolicyObservation) - - // A block indicating the routing behavior when associated health check fails. Conflicts with any other routing policy. Documented below. - failoverRoutingPolicy?: [...#FailoverRoutingPolicyObservation] @go(FailoverRoutingPolicy,[]FailoverRoutingPolicyObservation) - - // FQDN built using the zone domain and name. - fqdn?: null | string @go(Fqdn,*string) - - // A block indicating a routing policy based on the geolocation of the requestor. Conflicts with any other routing policy. Documented below. - geolocationRoutingPolicy?: [...#GeolocationRoutingPolicyObservation] @go(GeolocationRoutingPolicy,[]GeolocationRoutingPolicyObservation) - - // The health check the record should be associated with. - healthCheckId?: null | string @go(HealthCheckID,*string) - id?: null | string @go(ID,*string) - - // A block indicating a routing policy based on the latency between the requestor and an AWS region. Conflicts with any other routing policy. Documented below. - latencyRoutingPolicy?: [...#LatencyRoutingPolicyObservation] @go(LatencyRoutingPolicy,[]LatencyRoutingPolicyObservation) - - // Set to true to indicate a multivalue answer routing policy. Conflicts with any other routing policy. - multivalueAnswerRoutingPolicy?: null | bool @go(MultivalueAnswerRoutingPolicy,*bool) - - // The name of the record. - name?: null | string @go(Name,*string) - - // A string list of records.g., "first255characters\"\"morecharacters"). - records?: [...null | string] @go(Records,[]*string) - - // Unique identifier to differentiate records with routing policies from one another. Required if using cidr_routing_policy, failover_routing_policy, geolocation_routing_policy, latency_routing_policy, multivalue_answer_routing_policy, or weighted_routing_policy. - setIdentifier?: null | string @go(SetIdentifier,*string) - - // The TTL of the record. - ttl?: null | float64 @go(TTL,*float64) - - // The record type. Valid values are A, AAAA, CAA, CNAME, DS, MX, NAPTR, NS, PTR, SOA, SPF, SRV and TXT. - type?: null | string @go(Type,*string) - - // A block indicating a weighted routing policy. Conflicts with any other routing policy. Documented below. - weightedRoutingPolicy?: [...#WeightedRoutingPolicyObservation] @go(WeightedRoutingPolicy,[]WeightedRoutingPolicyObservation) - - // The ID of the hosted zone to contain this record. - zoneId?: null | string @go(ZoneID,*string) -} - -#RecordParameters: { - // An alias block. Conflicts with ttl & records. - // Documented below. - // +kubebuilder:validation:Optional - alias?: [...#AliasParameters] @go(Alias,[]AliasParameters) - - // false by default. This configuration is not recommended for most environments. - // +kubebuilder:validation:Optional - allowOverwrite?: null | bool @go(AllowOverwrite,*bool) - - // A block indicating a routing policy based on the IP network ranges of requestors. Conflicts with any other routing policy. Documented below. - // +kubebuilder:validation:Optional - cidrRoutingPolicy?: [...#CidrRoutingPolicyParameters] @go(CidrRoutingPolicy,[]CidrRoutingPolicyParameters) - - // A block indicating the routing behavior when associated health check fails. Conflicts with any other routing policy. Documented below. - // +kubebuilder:validation:Optional - failoverRoutingPolicy?: [...#FailoverRoutingPolicyParameters] @go(FailoverRoutingPolicy,[]FailoverRoutingPolicyParameters) - - // A block indicating a routing policy based on the geolocation of the requestor. Conflicts with any other routing policy. Documented below. - // +kubebuilder:validation:Optional - geolocationRoutingPolicy?: [...#GeolocationRoutingPolicyParameters] @go(GeolocationRoutingPolicy,[]GeolocationRoutingPolicyParameters) - - // The health check the record should be associated with. - // +crossplane:generate:reference:type=HealthCheck - // +kubebuilder:validation:Optional - healthCheckId?: null | string @go(HealthCheckID,*string) - - // Reference to a HealthCheck to populate healthCheckId. - // +kubebuilder:validation:Optional - healthCheckIdRef?: null | v1.#Reference @go(HealthCheckIDRef,*v1.Reference) - - // Selector for a HealthCheck to populate healthCheckId. - // +kubebuilder:validation:Optional - healthCheckIdSelector?: null | v1.#Selector @go(HealthCheckIDSelector,*v1.Selector) - - // A block indicating a routing policy based on the latency between the requestor and an AWS region. Conflicts with any other routing policy. Documented below. - // +kubebuilder:validation:Optional - latencyRoutingPolicy?: [...#LatencyRoutingPolicyParameters] @go(LatencyRoutingPolicy,[]LatencyRoutingPolicyParameters) - - // Set to true to indicate a multivalue answer routing policy. Conflicts with any other routing policy. - // +kubebuilder:validation:Optional - multivalueAnswerRoutingPolicy?: null | bool @go(MultivalueAnswerRoutingPolicy,*bool) - - // The name of the record. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A string list of records.g., "first255characters\"\"morecharacters"). - // +kubebuilder:validation:Optional - records?: [...null | string] @go(Records,[]*string) - - // An AWS region from which to measure latency. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-latency - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Unique identifier to differentiate records with routing policies from one another. Required if using cidr_routing_policy, failover_routing_policy, geolocation_routing_policy, latency_routing_policy, multivalue_answer_routing_policy, or weighted_routing_policy. - // +kubebuilder:validation:Optional - setIdentifier?: null | string @go(SetIdentifier,*string) - - // The TTL of the record. - // +kubebuilder:validation:Optional - ttl?: null | float64 @go(TTL,*float64) - - // The record type. Valid values are A, AAAA, CAA, CNAME, DS, MX, NAPTR, NS, PTR, SOA, SPF, SRV and TXT. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // A block indicating a weighted routing policy. Conflicts with any other routing policy. Documented below. - // +kubebuilder:validation:Optional - weightedRoutingPolicy?: [...#WeightedRoutingPolicyParameters] @go(WeightedRoutingPolicy,[]WeightedRoutingPolicyParameters) - - // The ID of the hosted zone to contain this record. - // +crossplane:generate:reference:type=Zone - // +kubebuilder:validation:Optional - zoneId?: null | string @go(ZoneID,*string) - - // Reference to a Zone to populate zoneId. - // +kubebuilder:validation:Optional - zoneIdRef?: null | v1.#Reference @go(ZoneIDRef,*v1.Reference) - - // Selector for a Zone to populate zoneId. - // +kubebuilder:validation:Optional - zoneIdSelector?: null | v1.#Selector @go(ZoneIDSelector,*v1.Selector) -} - -#WeightedRoutingPolicyInitParameters: { - // A numeric value indicating the relative weight of the record. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-weighted. - weight?: null | float64 @go(Weight,*float64) -} - -#WeightedRoutingPolicyObservation: { - // A numeric value indicating the relative weight of the record. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-weighted. - weight?: null | float64 @go(Weight,*float64) -} - -#WeightedRoutingPolicyParameters: { - // A numeric value indicating the relative weight of the record. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-weighted. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -// RecordSpec defines the desired state of Record -#RecordSpec: { - v1.#ResourceSpec - forProvider: #RecordParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RecordInitParameters @go(InitProvider) -} - -// RecordStatus defines the observed state of Record. -#RecordStatus: { - v1.#ResourceStatus - atProvider?: #RecordObservation @go(AtProvider) -} - -// Record is the Schema for the Records API. Provides a Route53 record resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Record: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #RecordSpec @go(Spec) - status?: #RecordStatus @go(Status) -} - -// RecordList contains a list of Records -#RecordList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Record] @go(Items,[]Record) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_resolverconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_resolverconfig_types_go_gen.cue deleted file mode 100644 index c7d74b6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_resolverconfig_types_go_gen.cue +++ /dev/null @@ -1,101 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResolverConfigInitParameters: { - // Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE. - autodefinedReverseFlag?: null | string @go(AutodefinedReverseFlag,*string) -} - -#ResolverConfigObservation: { - // Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE. - autodefinedReverseFlag?: null | string @go(AutodefinedReverseFlag,*string) - - // The ID of the resolver configuration. - id?: null | string @go(ID,*string) - - // The AWS account ID of the owner of the VPC that this resolver configuration applies to. - ownerId?: null | string @go(OwnerID,*string) - - // The ID of the VPC that the configuration is for. - resourceId?: null | string @go(ResourceID,*string) -} - -#ResolverConfigParameters: { - // Indicates whether or not the Resolver will create autodefined rules for reverse DNS lookups. Valid values: ENABLE, DISABLE. - // +kubebuilder:validation:Optional - autodefinedReverseFlag?: null | string @go(AutodefinedReverseFlag,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the VPC that the configuration is for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - resourceId?: null | string @go(ResourceID,*string) - - // Reference to a VPC in ec2 to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdRef?: null | v1.#Reference @go(ResourceIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdSelector?: null | v1.#Selector @go(ResourceIDSelector,*v1.Selector) -} - -// ResolverConfigSpec defines the desired state of ResolverConfig -#ResolverConfigSpec: { - v1.#ResourceSpec - forProvider: #ResolverConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResolverConfigInitParameters @go(InitProvider) -} - -// ResolverConfigStatus defines the observed state of ResolverConfig. -#ResolverConfigStatus: { - v1.#ResourceStatus - atProvider?: #ResolverConfigObservation @go(AtProvider) -} - -// ResolverConfig is the Schema for the ResolverConfigs API. Provides a Route 53 Resolver config resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ResolverConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.autodefinedReverseFlag) || (has(self.initProvider) && has(self.initProvider.autodefinedReverseFlag))",message="spec.forProvider.autodefinedReverseFlag is a required parameter" - spec: #ResolverConfigSpec @go(Spec) - status?: #ResolverConfigStatus @go(Status) -} - -// ResolverConfigList contains a list of ResolverConfigs -#ResolverConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ResolverConfig] @go(Items,[]ResolverConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_trafficpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_trafficpolicy_types_go_gen.cue deleted file mode 100644 index 220f3fb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_trafficpolicy_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TrafficPolicyInitParameters: { - // Comment for the traffic policy. - comment?: null | string @go(Comment,*string) - - // Policy document. This is a JSON formatted string. For more information about building Route53 traffic policy documents, see the AWS Route53 Traffic Policy document format - document?: null | string @go(Document,*string) - - // Name of the traffic policy. - name?: null | string @go(Name,*string) -} - -#TrafficPolicyObservation: { - // Comment for the traffic policy. - comment?: null | string @go(Comment,*string) - - // Policy document. This is a JSON formatted string. For more information about building Route53 traffic policy documents, see the AWS Route53 Traffic Policy document format - document?: null | string @go(Document,*string) - - // ID of the traffic policy - id?: null | string @go(ID,*string) - - // Name of the traffic policy. - name?: null | string @go(Name,*string) - - // DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance. - type?: null | string @go(Type,*string) - - // Version number of the traffic policy. This value is automatically incremented by AWS after each update of this resource. - version?: null | float64 @go(Version,*float64) -} - -#TrafficPolicyParameters: { - // Comment for the traffic policy. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // Policy document. This is a JSON formatted string. For more information about building Route53 traffic policy documents, see the AWS Route53 Traffic Policy document format - // +kubebuilder:validation:Optional - document?: null | string @go(Document,*string) - - // Name of the traffic policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// TrafficPolicySpec defines the desired state of TrafficPolicy -#TrafficPolicySpec: { - v1.#ResourceSpec - forProvider: #TrafficPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TrafficPolicyInitParameters @go(InitProvider) -} - -// TrafficPolicyStatus defines the observed state of TrafficPolicy. -#TrafficPolicyStatus: { - v1.#ResourceStatus - atProvider?: #TrafficPolicyObservation @go(AtProvider) -} - -// TrafficPolicy is the Schema for the TrafficPolicys API. Manages a Route53 Traffic Policy -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TrafficPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.document) || (has(self.initProvider) && has(self.initProvider.document))",message="spec.forProvider.document is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #TrafficPolicySpec @go(Spec) - status?: #TrafficPolicyStatus @go(Status) -} - -// TrafficPolicyList contains a list of TrafficPolicys -#TrafficPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TrafficPolicy] @go(Items,[]TrafficPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_trafficpolicyinstance_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_trafficpolicyinstance_types_go_gen.cue deleted file mode 100644 index af11ea4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_trafficpolicyinstance_types_go_gen.cue +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TrafficPolicyInstanceInitParameters: { - // Domain name for which Amazon Route 53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance. - name?: null | string @go(Name,*string) - - // TTL that you want Amazon Route 53 to assign to all the resource record sets that it creates in the specified hosted zone. - ttl?: null | float64 @go(TTL,*float64) - - // Version of the traffic policy - trafficPolicyVersion?: null | float64 @go(TrafficPolicyVersion,*float64) -} - -#TrafficPolicyInstanceObservation: { - // ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by using the configuration in a traffic policy. - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // ID of traffic policy instance. - id?: null | string @go(ID,*string) - - // Domain name for which Amazon Route 53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance. - name?: null | string @go(Name,*string) - - // TTL that you want Amazon Route 53 to assign to all the resource record sets that it creates in the specified hosted zone. - ttl?: null | float64 @go(TTL,*float64) - - // ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone. - trafficPolicyId?: null | string @go(TrafficPolicyID,*string) - - // Version of the traffic policy - trafficPolicyVersion?: null | float64 @go(TrafficPolicyVersion,*float64) -} - -#TrafficPolicyInstanceParameters: { - // ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by using the configuration in a traffic policy. - // +crossplane:generate:reference:type=Zone - // +kubebuilder:validation:Optional - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // Reference to a Zone to populate hostedZoneId. - // +kubebuilder:validation:Optional - hostedZoneIdRef?: null | v1.#Reference @go(HostedZoneIDRef,*v1.Reference) - - // Selector for a Zone to populate hostedZoneId. - // +kubebuilder:validation:Optional - hostedZoneIdSelector?: null | v1.#Selector @go(HostedZoneIDSelector,*v1.Selector) - - // Domain name for which Amazon Route 53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // TTL that you want Amazon Route 53 to assign to all the resource record sets that it creates in the specified hosted zone. - // +kubebuilder:validation:Optional - ttl?: null | float64 @go(TTL,*float64) - - // ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone. - // +crossplane:generate:reference:type=TrafficPolicy - // +kubebuilder:validation:Optional - trafficPolicyId?: null | string @go(TrafficPolicyID,*string) - - // Reference to a TrafficPolicy to populate trafficPolicyId. - // +kubebuilder:validation:Optional - trafficPolicyIdRef?: null | v1.#Reference @go(TrafficPolicyIDRef,*v1.Reference) - - // Selector for a TrafficPolicy to populate trafficPolicyId. - // +kubebuilder:validation:Optional - trafficPolicyIdSelector?: null | v1.#Selector @go(TrafficPolicyIDSelector,*v1.Selector) - - // Version of the traffic policy - // +kubebuilder:validation:Optional - trafficPolicyVersion?: null | float64 @go(TrafficPolicyVersion,*float64) -} - -// TrafficPolicyInstanceSpec defines the desired state of TrafficPolicyInstance -#TrafficPolicyInstanceSpec: { - v1.#ResourceSpec - forProvider: #TrafficPolicyInstanceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TrafficPolicyInstanceInitParameters @go(InitProvider) -} - -// TrafficPolicyInstanceStatus defines the observed state of TrafficPolicyInstance. -#TrafficPolicyInstanceStatus: { - v1.#ResourceStatus - atProvider?: #TrafficPolicyInstanceObservation @go(AtProvider) -} - -// TrafficPolicyInstance is the Schema for the TrafficPolicyInstances API. Provides a Route53 traffic policy instance resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TrafficPolicyInstance: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.trafficPolicyVersion) || (has(self.initProvider) && has(self.initProvider.trafficPolicyVersion))",message="spec.forProvider.trafficPolicyVersion is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ttl) || (has(self.initProvider) && has(self.initProvider.ttl))",message="spec.forProvider.ttl is a required parameter" - spec: #TrafficPolicyInstanceSpec @go(Spec) - status?: #TrafficPolicyInstanceStatus @go(Status) -} - -// TrafficPolicyInstanceList contains a list of TrafficPolicyInstances -#TrafficPolicyInstanceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TrafficPolicyInstance] @go(Items,[]TrafficPolicyInstance) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_vpcassociationauthorization_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_vpcassociationauthorization_types_go_gen.cue deleted file mode 100644 index 895270f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_vpcassociationauthorization_types_go_gen.cue +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCAssociationAuthorizationInitParameters: { - // The VPC's region. Defaults to the region of the AWS provider. - vpcRegion?: null | string @go(VPCRegion,*string) -} - -#VPCAssociationAuthorizationObservation: { - // The calculated unique identifier for the association. - id?: null | string @go(ID,*string) - - // The VPC to authorize for association with the private hosted zone. - vpcId?: null | string @go(VPCID,*string) - - // The VPC's region. Defaults to the region of the AWS provider. - vpcRegion?: null | string @go(VPCRegion,*string) - - // The ID of the private hosted zone that you want to authorize associating a VPC with. - zoneId?: null | string @go(ZoneID,*string) -} - -#VPCAssociationAuthorizationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The VPC to authorize for association with the private hosted zone. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) - - // The VPC's region. Defaults to the region of the AWS provider. - // +kubebuilder:validation:Optional - vpcRegion?: null | string @go(VPCRegion,*string) - - // The ID of the private hosted zone that you want to authorize associating a VPC with. - // +crossplane:generate:reference:type=Zone - // +kubebuilder:validation:Optional - zoneId?: null | string @go(ZoneID,*string) - - // Reference to a Zone to populate zoneId. - // +kubebuilder:validation:Optional - zoneIdRef?: null | v1.#Reference @go(ZoneIDRef,*v1.Reference) - - // Selector for a Zone to populate zoneId. - // +kubebuilder:validation:Optional - zoneIdSelector?: null | v1.#Selector @go(ZoneIDSelector,*v1.Selector) -} - -// VPCAssociationAuthorizationSpec defines the desired state of VPCAssociationAuthorization -#VPCAssociationAuthorizationSpec: { - v1.#ResourceSpec - forProvider: #VPCAssociationAuthorizationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VPCAssociationAuthorizationInitParameters @go(InitProvider) -} - -// VPCAssociationAuthorizationStatus defines the observed state of VPCAssociationAuthorization. -#VPCAssociationAuthorizationStatus: { - v1.#ResourceStatus - atProvider?: #VPCAssociationAuthorizationObservation @go(AtProvider) -} - -// VPCAssociationAuthorization is the Schema for the VPCAssociationAuthorizations API. Authorizes a VPC in a different account to be associated with a local Route53 Hosted Zone -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VPCAssociationAuthorization: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #VPCAssociationAuthorizationSpec @go(Spec) - status?: #VPCAssociationAuthorizationStatus @go(Status) -} - -// VPCAssociationAuthorizationList contains a list of VPCAssociationAuthorizations -#VPCAssociationAuthorizationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VPCAssociationAuthorization] @go(Items,[]VPCAssociationAuthorization) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_zone_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_zone_types_go_gen.cue deleted file mode 100644 index fe0d2b1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_zone_types_go_gen.cue +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VPCInitParameters: { - // Region of the VPC to associate. Defaults to AWS provider region. - vpcRegion?: null | string @go(VPCRegion,*string) -} - -#VPCObservation: { - // ID of the VPC to associate. - vpcId?: null | string @go(VPCID,*string) - - // Region of the VPC to associate. Defaults to AWS provider region. - vpcRegion?: null | string @go(VPCRegion,*string) -} - -#VPCParameters: { - // ID of the VPC to associate. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) - - // Region of the VPC to associate. Defaults to AWS provider region. - // +kubebuilder:validation:Optional - vpcRegion?: null | string @go(VPCRegion,*string) -} - -#ZoneInitParameters: { - // A comment for the hosted zone. - comment?: null | string @go(Comment,*string) - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // This is the name of the hosted zone. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the delegation_set_id argument in this resource and any aws_route53_zone_association resource specifying the same zone ID. Detailed below. - vpc?: [...#VPCInitParameters] @go(VPC,[]VPCInitParameters) -} - -#ZoneObservation: { - // The Amazon Resource Name (ARN) of the Hosted Zone. - arn?: null | string @go(Arn,*string) - - // A comment for the hosted zone. - comment?: null | string @go(Comment,*string) - - // The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with vpc as delegation sets can only be used for public zones. - delegationSetId?: null | string @go(DelegationSetID,*string) - forceDestroy?: null | bool @go(ForceDestroy,*bool) - id?: null | string @go(ID,*string) - - // This is the name of the hosted zone. - name?: null | string @go(Name,*string) - - // A list of name servers in associated (or default) delegation set. - // Find more about delegation sets in AWS docs. - nameServers?: [...null | string] @go(NameServers,[]*string) - - // The Route 53 name server that created the SOA record. - primaryNameServer?: null | string @go(PrimaryNameServer,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the delegation_set_id argument in this resource and any aws_route53_zone_association resource specifying the same zone ID. Detailed below. - vpc?: [...#VPCObservation] @go(VPC,[]VPCObservation) - - // The Hosted Zone ID. This can be referenced by zone records. - zoneId?: null | string @go(ZoneID,*string) -} - -#ZoneParameters: { - // A comment for the hosted zone. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with vpc as delegation sets can only be used for public zones. - // +crossplane:generate:reference:type=DelegationSet - // +kubebuilder:validation:Optional - delegationSetId?: null | string @go(DelegationSetID,*string) - - // Reference to a DelegationSet to populate delegationSetId. - // +kubebuilder:validation:Optional - delegationSetIdRef?: null | v1.#Reference @go(DelegationSetIDRef,*v1.Reference) - - // Selector for a DelegationSet to populate delegationSetId. - // +kubebuilder:validation:Optional - delegationSetIdSelector?: null | v1.#Selector @go(DelegationSetIDSelector,*v1.Selector) - - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // This is the name of the hosted zone. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the delegation_set_id argument in this resource and any aws_route53_zone_association resource specifying the same zone ID. Detailed below. - // +kubebuilder:validation:Optional - vpc?: [...#VPCParameters] @go(VPC,[]VPCParameters) -} - -// ZoneSpec defines the desired state of Zone -#ZoneSpec: { - v1.#ResourceSpec - forProvider: #ZoneParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ZoneInitParameters @go(InitProvider) -} - -// ZoneStatus defines the observed state of Zone. -#ZoneStatus: { - v1.#ResourceStatus - atProvider?: #ZoneObservation @go(AtProvider) -} - -// Zone is the Schema for the Zones API. Manages a Route53 Hosted Zone -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Zone: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ZoneSpec @go(Spec) - status?: #ZoneStatus @go(Status) -} - -// ZoneList contains a list of Zones -#ZoneList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Zone] @go(Items,[]Zone) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_zoneassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_zoneassociation_types_go_gen.cue deleted file mode 100644 index af4dd0b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53/v1beta1/zz_zoneassociation_types_go_gen.cue +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ZoneAssociationInitParameters: { - // The VPC's region. Defaults to the region of the AWS provider. - vpcRegion?: null | string @go(VPCRegion,*string) -} - -#ZoneAssociationObservation: { - // The calculated unique identifier for the association. - id?: null | string @go(ID,*string) - - // The account ID of the account that created the hosted zone. - owningAccount?: null | string @go(OwningAccount,*string) - - // The VPC to associate with the private hosted zone. - vpcId?: null | string @go(VPCID,*string) - - // The VPC's region. Defaults to the region of the AWS provider. - vpcRegion?: null | string @go(VPCRegion,*string) - - // The private hosted zone to associate. - zoneId?: null | string @go(ZoneID,*string) -} - -#ZoneAssociationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The VPC to associate with the private hosted zone. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) - - // The VPC's region. Defaults to the region of the AWS provider. - // +kubebuilder:validation:Optional - vpcRegion?: null | string @go(VPCRegion,*string) - - // The private hosted zone to associate. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/route53/v1beta1.Zone - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("zone_id",true) - // +kubebuilder:validation:Optional - zoneId?: null | string @go(ZoneID,*string) - - // Reference to a Zone in route53 to populate zoneId. - // +kubebuilder:validation:Optional - zoneIdRef?: null | v1.#Reference @go(ZoneIDRef,*v1.Reference) - - // Selector for a Zone in route53 to populate zoneId. - // +kubebuilder:validation:Optional - zoneIdSelector?: null | v1.#Selector @go(ZoneIDSelector,*v1.Selector) -} - -// ZoneAssociationSpec defines the desired state of ZoneAssociation -#ZoneAssociationSpec: { - v1.#ResourceSpec - forProvider: #ZoneAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ZoneAssociationInitParameters @go(InitProvider) -} - -// ZoneAssociationStatus defines the observed state of ZoneAssociation. -#ZoneAssociationStatus: { - v1.#ResourceStatus - atProvider?: #ZoneAssociationObservation @go(AtProvider) -} - -// ZoneAssociation is the Schema for the ZoneAssociations API. Manages a Route53 Hosted Zone VPC association -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ZoneAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ZoneAssociationSpec @go(Spec) - status?: #ZoneAssociationStatus @go(Status) -} - -// ZoneAssociationList contains a list of ZoneAssociations -#ZoneAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ZoneAssociation] @go(Items,[]ZoneAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_cluster_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_cluster_types_go_gen.cue deleted file mode 100644 index 244d54d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_cluster_types_go_gen.cue +++ /dev/null @@ -1,103 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ClusterEndpointsInitParameters: { -} - -#ClusterEndpointsObservation: { - // Cluster endpoint. - endpoint?: null | string @go(Endpoint,*string) - - // Region of the endpoint. - region?: null | string @go(Region,*string) -} - -#ClusterEndpointsParameters: { -} - -#ClusterInitParameters: { - // Unique name describing the cluster. - name?: null | string @go(Name,*string) -} - -#ClusterObservation: { - // ARN of the cluster - arn?: null | string @go(Arn,*string) - - // List of 5 endpoints in 5 regions that can be used to talk to the cluster. See below. - clusterEndpoints?: [...#ClusterEndpointsObservation] @go(ClusterEndpoints,[]ClusterEndpointsObservation) - id?: null | string @go(ID,*string) - - // Unique name describing the cluster. - name?: null | string @go(Name,*string) - - // Status of cluster. PENDING when it is being created, PENDING_DELETION when it is being deleted and DEPLOYED otherwise. - status?: null | string @go(Status,*string) -} - -#ClusterParameters: { - // Unique name describing the cluster. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region of the endpoint. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ClusterSpec defines the desired state of Cluster -#ClusterSpec: { - v1.#ResourceSpec - forProvider: #ClusterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ClusterInitParameters @go(InitProvider) -} - -// ClusterStatus defines the observed state of Cluster. -#ClusterStatus: { - v1.#ResourceStatus - atProvider?: #ClusterObservation @go(AtProvider) -} - -// Cluster is the Schema for the Clusters API. Provides an AWS Route 53 Recovery Control Config Cluster -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Cluster: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ClusterSpec @go(Spec) - status?: #ClusterStatus @go(Status) -} - -// ClusterList contains a list of Clusters -#ClusterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Cluster] @go(Items,[]Cluster) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_controlpanel_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_controlpanel_types_go_gen.cue deleted file mode 100644 index 5a29909..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_controlpanel_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ControlPanelInitParameters: { - // Name describing the control panel. - name?: null | string @go(Name,*string) -} - -#ControlPanelObservation: { - // ARN of the control panel. - arn?: null | string @go(Arn,*string) - - // ARN of the cluster in which this control panel will reside. - clusterArn?: null | string @go(ClusterArn,*string) - - // Whether a control panel is default. - defaultControlPanel?: null | bool @go(DefaultControlPanel,*bool) - id?: null | string @go(ID,*string) - - // Name describing the control panel. - name?: null | string @go(Name,*string) - - // Number routing controls in a control panel. - routingControlCount?: null | float64 @go(RoutingControlCount,*float64) - - // Status of control panel: PENDING when it is being created/updated, PENDING_DELETION when it is being deleted, and DEPLOYED otherwise. - status?: null | string @go(Status,*string) -} - -#ControlPanelParameters: { - // ARN of the cluster in which this control panel will reside. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - clusterArn?: null | string @go(ClusterArn,*string) - - // Reference to a Cluster in route53recoverycontrolconfig to populate clusterArn. - // +kubebuilder:validation:Optional - clusterArnRef?: null | v1.#Reference @go(ClusterArnRef,*v1.Reference) - - // Selector for a Cluster in route53recoverycontrolconfig to populate clusterArn. - // +kubebuilder:validation:Optional - clusterArnSelector?: null | v1.#Selector @go(ClusterArnSelector,*v1.Selector) - - // Name describing the control panel. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ControlPanelSpec defines the desired state of ControlPanel -#ControlPanelSpec: { - v1.#ResourceSpec - forProvider: #ControlPanelParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ControlPanelInitParameters @go(InitProvider) -} - -// ControlPanelStatus defines the observed state of ControlPanel. -#ControlPanelStatus: { - v1.#ResourceStatus - atProvider?: #ControlPanelObservation @go(AtProvider) -} - -// ControlPanel is the Schema for the ControlPanels API. Provides an AWS Route 53 Recovery Control Config Control Panel -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ControlPanel: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ControlPanelSpec @go(Spec) - status?: #ControlPanelStatus @go(Status) -} - -// ControlPanelList contains a list of ControlPanels -#ControlPanelList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ControlPanel] @go(Items,[]ControlPanel) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 4a793aa..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=route53recoverycontrolconfig.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "route53recoverycontrolconfig.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_routingcontrol_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_routingcontrol_types_go_gen.cue deleted file mode 100644 index 0e36457..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_routingcontrol_types_go_gen.cue +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RoutingControlInitParameters: { - // The name describing the routing control. - name?: null | string @go(Name,*string) -} - -#RoutingControlObservation: { - // ARN of the routing control. - arn?: null | string @go(Arn,*string) - - // ARN of the cluster in which this routing control will reside. - clusterArn?: null | string @go(ClusterArn,*string) - - // ARN of the control panel in which this routing control will reside. - controlPanelArn?: null | string @go(ControlPanelArn,*string) - id?: null | string @go(ID,*string) - - // The name describing the routing control. - name?: null | string @go(Name,*string) - - // Status of routing control. PENDING when it is being created/updated, PENDING_DELETION when it is being deleted, and DEPLOYED otherwise. - status?: null | string @go(Status,*string) -} - -#RoutingControlParameters: { - // ARN of the cluster in which this routing control will reside. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1.Cluster - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - clusterArn?: null | string @go(ClusterArn,*string) - - // Reference to a Cluster in route53recoverycontrolconfig to populate clusterArn. - // +kubebuilder:validation:Optional - clusterArnRef?: null | v1.#Reference @go(ClusterArnRef,*v1.Reference) - - // Selector for a Cluster in route53recoverycontrolconfig to populate clusterArn. - // +kubebuilder:validation:Optional - clusterArnSelector?: null | v1.#Selector @go(ClusterArnSelector,*v1.Selector) - - // ARN of the control panel in which this routing control will reside. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1.ControlPanel - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - controlPanelArn?: null | string @go(ControlPanelArn,*string) - - // Reference to a ControlPanel in route53recoverycontrolconfig to populate controlPanelArn. - // +kubebuilder:validation:Optional - controlPanelArnRef?: null | v1.#Reference @go(ControlPanelArnRef,*v1.Reference) - - // Selector for a ControlPanel in route53recoverycontrolconfig to populate controlPanelArn. - // +kubebuilder:validation:Optional - controlPanelArnSelector?: null | v1.#Selector @go(ControlPanelArnSelector,*v1.Selector) - - // The name describing the routing control. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// RoutingControlSpec defines the desired state of RoutingControl -#RoutingControlSpec: { - v1.#ResourceSpec - forProvider: #RoutingControlParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RoutingControlInitParameters @go(InitProvider) -} - -// RoutingControlStatus defines the observed state of RoutingControl. -#RoutingControlStatus: { - v1.#ResourceStatus - atProvider?: #RoutingControlObservation @go(AtProvider) -} - -// RoutingControl is the Schema for the RoutingControls API. Provides an AWS Route 53 Recovery Control Config Routing Control -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RoutingControl: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #RoutingControlSpec @go(Spec) - status?: #RoutingControlStatus @go(Status) -} - -// RoutingControlList contains a list of RoutingControls -#RoutingControlList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RoutingControl] @go(Items,[]RoutingControl) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_safetyrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_safetyrule_types_go_gen.cue deleted file mode 100644 index 931ffc9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1/zz_safetyrule_types_go_gen.cue +++ /dev/null @@ -1,197 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RuleConfigInitParameters: { - // Logical negation of the rule. - inverted?: null | bool @go(Inverted,*bool) - - // Number of controls that must be set when you specify an ATLEAST type rule. - threshold?: null | float64 @go(Threshold,*float64) - - // Rule type. Valid values are ATLEAST, AND, and OR. - type?: null | string @go(Type,*string) -} - -#RuleConfigObservation: { - // Logical negation of the rule. - inverted?: null | bool @go(Inverted,*bool) - - // Number of controls that must be set when you specify an ATLEAST type rule. - threshold?: null | float64 @go(Threshold,*float64) - - // Rule type. Valid values are ATLEAST, AND, and OR. - type?: null | string @go(Type,*string) -} - -#RuleConfigParameters: { - // Logical negation of the rule. - // +kubebuilder:validation:Optional - inverted?: null | bool @go(Inverted,*bool) - - // Number of controls that must be set when you specify an ATLEAST type rule. - // +kubebuilder:validation:Optional - threshold?: null | float64 @go(Threshold,*float64) - - // Rule type. Valid values are ATLEAST, AND, and OR. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#SafetyRuleInitParameters: { - // Gating controls for the new gating rule. That is, routing controls that are evaluated by the rule configuration that you specify. - gatingControls?: [...null | string] @go(GatingControls,[]*string) - - // Name describing the safety rule. - name?: null | string @go(Name,*string) - - // Configuration block for safety rule criteria. See below. - ruleConfig?: [...#RuleConfigInitParameters] @go(RuleConfig,[]RuleConfigInitParameters) - - // Routing controls that can only be set or unset if the specified rule_config evaluates to true for the specified gating_controls. - targetControls?: [...null | string] @go(TargetControls,[]*string) - - // Evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. - waitPeriodMs?: null | float64 @go(WaitPeriodMs,*float64) -} - -#SafetyRuleObservation: { - // ARN of the safety rule. - arn?: null | string @go(Arn,*string) - - // Routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. - assertedControls?: [...null | string] @go(AssertedControls,[]*string) - - // ARN of the control panel in which this safety rule will reside. - controlPanelArn?: null | string @go(ControlPanelArn,*string) - - // Gating controls for the new gating rule. That is, routing controls that are evaluated by the rule configuration that you specify. - gatingControls?: [...null | string] @go(GatingControls,[]*string) - id?: null | string @go(ID,*string) - - // Name describing the safety rule. - name?: null | string @go(Name,*string) - - // Configuration block for safety rule criteria. See below. - ruleConfig?: [...#RuleConfigObservation] @go(RuleConfig,[]RuleConfigObservation) - - // Status of the safety rule. PENDING when it is being created/updated, PENDING_DELETION when it is being deleted, and DEPLOYED otherwise. - status?: null | string @go(Status,*string) - - // Routing controls that can only be set or unset if the specified rule_config evaluates to true for the specified gating_controls. - targetControls?: [...null | string] @go(TargetControls,[]*string) - - // Evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. - waitPeriodMs?: null | float64 @go(WaitPeriodMs,*float64) -} - -#SafetyRuleParameters: { - // Routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1.RoutingControl - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - assertedControls?: [...null | string] @go(AssertedControls,[]*string) - - // References to RoutingControl in route53recoverycontrolconfig to populate assertedControls. - // +kubebuilder:validation:Optional - assertedControlsRefs?: [...v1.#Reference] @go(AssertedControlsRefs,[]v1.Reference) - - // Selector for a list of RoutingControl in route53recoverycontrolconfig to populate assertedControls. - // +kubebuilder:validation:Optional - assertedControlsSelector?: null | v1.#Selector @go(AssertedControlsSelector,*v1.Selector) - - // ARN of the control panel in which this safety rule will reside. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/route53recoverycontrolconfig/v1beta1.ControlPanel - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - controlPanelArn?: null | string @go(ControlPanelArn,*string) - - // Reference to a ControlPanel in route53recoverycontrolconfig to populate controlPanelArn. - // +kubebuilder:validation:Optional - controlPanelArnRef?: null | v1.#Reference @go(ControlPanelArnRef,*v1.Reference) - - // Selector for a ControlPanel in route53recoverycontrolconfig to populate controlPanelArn. - // +kubebuilder:validation:Optional - controlPanelArnSelector?: null | v1.#Selector @go(ControlPanelArnSelector,*v1.Selector) - - // Gating controls for the new gating rule. That is, routing controls that are evaluated by the rule configuration that you specify. - // +kubebuilder:validation:Optional - gatingControls?: [...null | string] @go(GatingControls,[]*string) - - // Name describing the safety rule. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block for safety rule criteria. See below. - // +kubebuilder:validation:Optional - ruleConfig?: [...#RuleConfigParameters] @go(RuleConfig,[]RuleConfigParameters) - - // Routing controls that can only be set or unset if the specified rule_config evaluates to true for the specified gating_controls. - // +kubebuilder:validation:Optional - targetControls?: [...null | string] @go(TargetControls,[]*string) - - // Evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. - // +kubebuilder:validation:Optional - waitPeriodMs?: null | float64 @go(WaitPeriodMs,*float64) -} - -// SafetyRuleSpec defines the desired state of SafetyRule -#SafetyRuleSpec: { - v1.#ResourceSpec - forProvider: #SafetyRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SafetyRuleInitParameters @go(InitProvider) -} - -// SafetyRuleStatus defines the observed state of SafetyRule. -#SafetyRuleStatus: { - v1.#ResourceStatus - atProvider?: #SafetyRuleObservation @go(AtProvider) -} - -// SafetyRule is the Schema for the SafetyRules API. Provides an AWS Route 53 Recovery Control Config Safety Rule -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SafetyRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ruleConfig) || (has(self.initProvider) && has(self.initProvider.ruleConfig))",message="spec.forProvider.ruleConfig is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.waitPeriodMs) || (has(self.initProvider) && has(self.initProvider.waitPeriodMs))",message="spec.forProvider.waitPeriodMs is a required parameter" - spec: #SafetyRuleSpec @go(Spec) - status?: #SafetyRuleStatus @go(Status) -} - -// SafetyRuleList contains a list of SafetyRules -#SafetyRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SafetyRule] @go(Items,[]SafetyRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_cell_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_cell_types_go_gen.cue deleted file mode 100644 index 7941910..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_cell_types_go_gen.cue +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CellInitParameters: { - // List of cell arns to add as nested fault domains within this cell. - cells?: [...null | string] @go(Cells,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CellObservation: { - // ARN of the cell - arn?: null | string @go(Arn,*string) - - // List of cell arns to add as nested fault domains within this cell. - cells?: [...null | string] @go(Cells,[]*string) - id?: null | string @go(ID,*string) - - // List of readiness scopes (recovery groups or cells) that contain this cell. - parentReadinessScopes?: [...null | string] @go(ParentReadinessScopes,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#CellParameters: { - // List of cell arns to add as nested fault domains within this cell. - // +kubebuilder:validation:Optional - cells?: [...null | string] @go(Cells,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// CellSpec defines the desired state of Cell -#CellSpec: { - v1.#ResourceSpec - forProvider: #CellParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CellInitParameters @go(InitProvider) -} - -// CellStatus defines the observed state of Cell. -#CellStatus: { - v1.#ResourceStatus - atProvider?: #CellObservation @go(AtProvider) -} - -// Cell is the Schema for the Cells API. Provides an AWS Route 53 Recovery Readiness Cell -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Cell: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #CellSpec @go(Spec) - status?: #CellStatus @go(Status) -} - -// CellList contains a list of Cells -#CellList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Cell] @go(Items,[]Cell) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 15a7f87..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=route53recoveryreadiness.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "route53recoveryreadiness.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_readinesscheck_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_readinesscheck_types_go_gen.cue deleted file mode 100644 index 3584170..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_readinesscheck_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ReadinessCheckInitParameters: { - // Name describing the resource set that will be monitored for readiness. - resourceSetName?: null | string @go(ResourceSetName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ReadinessCheckObservation: { - // ARN of the readiness_check - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // Name describing the resource set that will be monitored for readiness. - resourceSetName?: null | string @go(ResourceSetName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ReadinessCheckParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Name describing the resource set that will be monitored for readiness. - // +kubebuilder:validation:Optional - resourceSetName?: null | string @go(ResourceSetName,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ReadinessCheckSpec defines the desired state of ReadinessCheck -#ReadinessCheckSpec: { - v1.#ResourceSpec - forProvider: #ReadinessCheckParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReadinessCheckInitParameters @go(InitProvider) -} - -// ReadinessCheckStatus defines the observed state of ReadinessCheck. -#ReadinessCheckStatus: { - v1.#ResourceStatus - atProvider?: #ReadinessCheckObservation @go(AtProvider) -} - -// ReadinessCheck is the Schema for the ReadinessChecks API. Provides an AWS Route 53 Recovery Readiness Readiness Check -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReadinessCheck: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.resourceSetName) || (has(self.initProvider) && has(self.initProvider.resourceSetName))",message="spec.forProvider.resourceSetName is a required parameter" - spec: #ReadinessCheckSpec @go(Spec) - status?: #ReadinessCheckStatus @go(Status) -} - -// ReadinessCheckList contains a list of ReadinessChecks -#ReadinessCheckList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReadinessCheck] @go(Items,[]ReadinessCheck) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_recoverygroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_recoverygroup_types_go_gen.cue deleted file mode 100644 index cf8a1a3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_recoverygroup_types_go_gen.cue +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RecoveryGroupInitParameters: { - // List of cell arns to add as nested fault domains within this recovery group - cells?: [...null | string] @go(Cells,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RecoveryGroupObservation: { - // ARN of the recovery group - arn?: null | string @go(Arn,*string) - - // List of cell arns to add as nested fault domains within this recovery group - cells?: [...null | string] @go(Cells,[]*string) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RecoveryGroupParameters: { - // List of cell arns to add as nested fault domains within this recovery group - // +kubebuilder:validation:Optional - cells?: [...null | string] @go(Cells,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RecoveryGroupSpec defines the desired state of RecoveryGroup -#RecoveryGroupSpec: { - v1.#ResourceSpec - forProvider: #RecoveryGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RecoveryGroupInitParameters @go(InitProvider) -} - -// RecoveryGroupStatus defines the observed state of RecoveryGroup. -#RecoveryGroupStatus: { - v1.#ResourceStatus - atProvider?: #RecoveryGroupObservation @go(AtProvider) -} - -// RecoveryGroup is the Schema for the RecoveryGroups API. Provides an AWS Route 53 Recovery Readiness Recovery Group -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RecoveryGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RecoveryGroupSpec @go(Spec) - status?: #RecoveryGroupStatus @go(Status) -} - -// RecoveryGroupList contains a list of RecoveryGroups -#RecoveryGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RecoveryGroup] @go(Items,[]RecoveryGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_resourceset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_resourceset_types_go_gen.cue deleted file mode 100644 index 2f475d8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1/zz_resourceset_types_go_gen.cue +++ /dev/null @@ -1,276 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53recoveryreadiness/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DNSTargetResourceInitParameters: { - // DNS Name that acts as the ingress point to a portion of application. - domainName?: null | string @go(DomainName,*string) - - // Hosted Zone ARN that contains the DNS record with the provided name of target resource. - hostedZoneArn?: null | string @go(HostedZoneArn,*string) - - // Route53 record set id to uniquely identify a record given a domain_name and a record_type. - recordSetId?: null | string @go(RecordSetID,*string) - - // Type of DNS Record of target resource. - recordType?: null | string @go(RecordType,*string) - - // Target resource the R53 record specified with the above params points to. - targetResource?: [...#TargetResourceInitParameters] @go(TargetResource,[]TargetResourceInitParameters) -} - -#DNSTargetResourceObservation: { - // DNS Name that acts as the ingress point to a portion of application. - domainName?: null | string @go(DomainName,*string) - - // Hosted Zone ARN that contains the DNS record with the provided name of target resource. - hostedZoneArn?: null | string @go(HostedZoneArn,*string) - - // Route53 record set id to uniquely identify a record given a domain_name and a record_type. - recordSetId?: null | string @go(RecordSetID,*string) - - // Type of DNS Record of target resource. - recordType?: null | string @go(RecordType,*string) - - // Target resource the R53 record specified with the above params points to. - targetResource?: [...#TargetResourceObservation] @go(TargetResource,[]TargetResourceObservation) -} - -#DNSTargetResourceParameters: { - // DNS Name that acts as the ingress point to a portion of application. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Hosted Zone ARN that contains the DNS record with the provided name of target resource. - // +kubebuilder:validation:Optional - hostedZoneArn?: null | string @go(HostedZoneArn,*string) - - // Route53 record set id to uniquely identify a record given a domain_name and a record_type. - // +kubebuilder:validation:Optional - recordSetId?: null | string @go(RecordSetID,*string) - - // Type of DNS Record of target resource. - // +kubebuilder:validation:Optional - recordType?: null | string @go(RecordType,*string) - - // Target resource the R53 record specified with the above params points to. - // +kubebuilder:validation:Optional - targetResource?: [...#TargetResourceParameters] @go(TargetResource,[]TargetResourceParameters) -} - -#NlbResourceInitParameters: { - // NLB resource ARN. - arn?: null | string @go(Arn,*string) -} - -#NlbResourceObservation: { - // NLB resource ARN. - arn?: null | string @go(Arn,*string) -} - -#NlbResourceParameters: { - // NLB resource ARN. - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) -} - -#R53ResourceInitParameters: { - // Domain name that is targeted. - domainName?: null | string @go(DomainName,*string) - - // Resource record set ID that is targeted. - recordSetId?: null | string @go(RecordSetID,*string) -} - -#R53ResourceObservation: { - // Domain name that is targeted. - domainName?: null | string @go(DomainName,*string) - - // Resource record set ID that is targeted. - recordSetId?: null | string @go(RecordSetID,*string) -} - -#R53ResourceParameters: { - // Domain name that is targeted. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // Resource record set ID that is targeted. - // +kubebuilder:validation:Optional - recordSetId?: null | string @go(RecordSetID,*string) -} - -#ResourceSetInitParameters: { - // Type of the resources in the resource set. - resourceSetType?: null | string @go(ResourceSetType,*string) - - // List of resources to add to this resource set. See below. - resources?: [...#ResourcesInitParameters] @go(Resources,[]ResourcesInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ResourceSetObservation: { - // ARN of the resource set - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // Type of the resources in the resource set. - resourceSetType?: null | string @go(ResourceSetType,*string) - - // List of resources to add to this resource set. See below. - resources?: [...#ResourcesObservation] @go(Resources,[]ResourcesObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ResourceSetParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Type of the resources in the resource set. - // +kubebuilder:validation:Optional - resourceSetType?: null | string @go(ResourceSetType,*string) - - // List of resources to add to this resource set. See below. - // +kubebuilder:validation:Optional - resources?: [...#ResourcesParameters] @go(Resources,[]ResourcesParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ResourcesInitParameters: { - // Component for DNS/Routing Control Readiness Checks. - dnsTargetResource?: [...#DNSTargetResourceInitParameters] @go(DNSTargetResource,[]DNSTargetResourceInitParameters) - - // Recovery group ARN or cell ARN that contains this resource set. - readinessScopes?: [...null | string] @go(ReadinessScopes,[]*string) -} - -#ResourcesObservation: { - // Unique identified for DNS Target Resources, use for readiness checks. - componentId?: null | string @go(ComponentID,*string) - - // Component for DNS/Routing Control Readiness Checks. - dnsTargetResource?: [...#DNSTargetResourceObservation] @go(DNSTargetResource,[]DNSTargetResourceObservation) - - // Recovery group ARN or cell ARN that contains this resource set. - readinessScopes?: [...null | string] @go(ReadinessScopes,[]*string) - - // ARN of the resource. - resourceArn?: null | string @go(ResourceArn,*string) -} - -#ResourcesParameters: { - // Component for DNS/Routing Control Readiness Checks. - // +kubebuilder:validation:Optional - dnsTargetResource?: [...#DNSTargetResourceParameters] @go(DNSTargetResource,[]DNSTargetResourceParameters) - - // Recovery group ARN or cell ARN that contains this resource set. - // +kubebuilder:validation:Optional - readinessScopes?: [...null | string] @go(ReadinessScopes,[]*string) - - // ARN of the resource. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatch/v1beta1.MetricAlarm - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a MetricAlarm in cloudwatch to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a MetricAlarm in cloudwatch to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) -} - -#TargetResourceInitParameters: { - // NLB resource a DNS Target Resource points to. Required if r53_resource is not set. - nlbResource?: [...#NlbResourceInitParameters] @go(NlbResource,[]NlbResourceInitParameters) - - // Route53 resource a DNS Target Resource record points to. - r53Resource?: [...#R53ResourceInitParameters] @go(R53Resource,[]R53ResourceInitParameters) -} - -#TargetResourceObservation: { - // NLB resource a DNS Target Resource points to. Required if r53_resource is not set. - nlbResource?: [...#NlbResourceObservation] @go(NlbResource,[]NlbResourceObservation) - - // Route53 resource a DNS Target Resource record points to. - r53Resource?: [...#R53ResourceObservation] @go(R53Resource,[]R53ResourceObservation) -} - -#TargetResourceParameters: { - // NLB resource a DNS Target Resource points to. Required if r53_resource is not set. - // +kubebuilder:validation:Optional - nlbResource?: [...#NlbResourceParameters] @go(NlbResource,[]NlbResourceParameters) - - // Route53 resource a DNS Target Resource record points to. - // +kubebuilder:validation:Optional - r53Resource?: [...#R53ResourceParameters] @go(R53Resource,[]R53ResourceParameters) -} - -// ResourceSetSpec defines the desired state of ResourceSet -#ResourceSetSpec: { - v1.#ResourceSpec - forProvider: #ResourceSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourceSetInitParameters @go(InitProvider) -} - -// ResourceSetStatus defines the observed state of ResourceSet. -#ResourceSetStatus: { - v1.#ResourceStatus - atProvider?: #ResourceSetObservation @go(AtProvider) -} - -// ResourceSet is the Schema for the ResourceSets API. Provides an AWS Route 53 Recovery Readiness Resource Set -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ResourceSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.resourceSetType) || (has(self.initProvider) && has(self.initProvider.resourceSetType))",message="spec.forProvider.resourceSetType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.resources) || (has(self.initProvider) && has(self.initProvider.resources))",message="spec.forProvider.resources is a required parameter" - spec: #ResourceSetSpec @go(Spec) - status?: #ResourceSetStatus @go(Status) -} - -// ResourceSetList contains a list of ResourceSets -#ResourceSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ResourceSet] @go(Items,[]ResourceSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53resolver/v1beta1/zz_endpoint_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53resolver/v1beta1/zz_endpoint_types_go_gen.cue deleted file mode 100644 index fea6247..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53resolver/v1beta1/zz_endpoint_types_go_gen.cue +++ /dev/null @@ -1,184 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53resolver/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EndpointInitParameters: { - // The direction of DNS queries to or from the Route 53 Resolver endpoint. - // Valid values are INBOUND (resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC) - // or OUTBOUND (resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC). - direction?: null | string @go(Direction,*string) - - // The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs - // to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound endpoints). Described below. - ipAddress?: [...#IPAddressInitParameters] @go(IPAddress,[]IPAddressInitParameters) - - // The friendly name of the Route 53 Resolver endpoint. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EndpointObservation: { - // The ARN of the Route 53 Resolver endpoint. - arn?: null | string @go(Arn,*string) - - // The direction of DNS queries to or from the Route 53 Resolver endpoint. - // Valid values are INBOUND (resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC) - // or OUTBOUND (resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC). - direction?: null | string @go(Direction,*string) - - // The ID of the VPC that you want to create the resolver endpoint in. - hostVpcId?: null | string @go(HostVPCID,*string) - - // The ID of the Route 53 Resolver endpoint. - id?: null | string @go(ID,*string) - - // The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs - // to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound endpoints). Described below. - ipAddress?: [...#IPAddressObservation] @go(IPAddress,[]IPAddressObservation) - - // The friendly name of the Route 53 Resolver endpoint. - name?: null | string @go(Name,*string) - - // The ID of one or more security groups that you want to use to control access to this VPC. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#EndpointParameters: { - // The direction of DNS queries to or from the Route 53 Resolver endpoint. - // Valid values are INBOUND (resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC) - // or OUTBOUND (resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC). - // +kubebuilder:validation:Optional - direction?: null | string @go(Direction,*string) - - // The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs - // to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound endpoints). Described below. - // +kubebuilder:validation:Optional - ipAddress?: [...#IPAddressParameters] @go(IPAddress,[]IPAddressParameters) - - // The friendly name of the Route 53 Resolver endpoint. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // References to SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdRefs?: [...v1.#Reference] @go(SecurityGroupIDRefs,[]v1.Reference) - - // Selector for a list of SecurityGroup in ec2 to populate securityGroupIds. - // +kubebuilder:validation:Optional - securityGroupIdSelector?: null | v1.#Selector @go(SecurityGroupIDSelector,*v1.Selector) - - // The ID of one or more security groups that you want to use to control access to this VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:refFieldName=SecurityGroupIDRefs - // +crossplane:generate:reference:selectorFieldName=SecurityGroupIDSelector - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#IPAddressInitParameters: { - // The IP address in the subnet that you want to use for DNS queries. - ip?: null | string @go(IP,*string) -} - -#IPAddressObservation: { - // The IP address in the subnet that you want to use for DNS queries. - ip?: null | string @go(IP,*string) - - // The ID of the Route 53 Resolver endpoint. - ipId?: null | string @go(IPID,*string) - - // The ID of the subnet that contains the IP address. - subnetId?: null | string @go(SubnetID,*string) -} - -#IPAddressParameters: { - // The IP address in the subnet that you want to use for DNS queries. - // +kubebuilder:validation:Optional - ip?: null | string @go(IP,*string) - - // The ID of the subnet that contains the IP address. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) -} - -// EndpointSpec defines the desired state of Endpoint -#EndpointSpec: { - v1.#ResourceSpec - forProvider: #EndpointParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EndpointInitParameters @go(InitProvider) -} - -// EndpointStatus defines the observed state of Endpoint. -#EndpointStatus: { - v1.#ResourceStatus - atProvider?: #EndpointObservation @go(AtProvider) -} - -// Endpoint is the Schema for the Endpoints API. Provides a Route 53 Resolver endpoint resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Endpoint: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.direction) || (has(self.initProvider) && has(self.initProvider.direction))",message="spec.forProvider.direction is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ipAddress) || (has(self.initProvider) && has(self.initProvider.ipAddress))",message="spec.forProvider.ipAddress is a required parameter" - spec: #EndpointSpec @go(Spec) - status?: #EndpointStatus @go(Status) -} - -// EndpointList contains a list of Endpoints -#EndpointList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Endpoint] @go(Items,[]Endpoint) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53resolver/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53resolver/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 0121553..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53resolver/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53resolver/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=route53resolver.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "route53resolver.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53resolver/v1beta1/zz_rule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53resolver/v1beta1/zz_rule_types_go_gen.cue deleted file mode 100644 index 0f78a35..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53resolver/v1beta1/zz_rule_types_go_gen.cue +++ /dev/null @@ -1,183 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53resolver/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RuleInitParameters: { - // DNS queries for this domain name are forwarded to the IP addresses that are specified using target_ip. - domainName?: null | string @go(DomainName,*string) - - // A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console. - name?: null | string @go(Name,*string) - - // The rule type. Valid values are FORWARD, SYSTEM and RECURSIVE. - ruleType?: null | string @go(RuleType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block(s) indicating the IPs that you want Resolver to forward DNS queries to (documented below). - // This argument should only be specified for FORWARD type rules. - targetIp?: [...#TargetIPInitParameters] @go(TargetIP,[]TargetIPInitParameters) -} - -#RuleObservation: { - // The ARN (Amazon Resource Name) for the resolver rule. - arn?: null | string @go(Arn,*string) - - // DNS queries for this domain name are forwarded to the IP addresses that are specified using target_ip. - domainName?: null | string @go(DomainName,*string) - - // The ID of the resolver rule. - id?: null | string @go(ID,*string) - - // A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console. - name?: null | string @go(Name,*string) - - // When a rule is shared with another AWS account, the account ID of the account that the rule is shared with. - ownerId?: null | string @go(OwnerID,*string) - - // The ID of the outbound resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify using target_ip. - // This argument should only be specified for FORWARD type rules. - resolverEndpointId?: null | string @go(ResolverEndpointID,*string) - - // The rule type. Valid values are FORWARD, SYSTEM and RECURSIVE. - ruleType?: null | string @go(RuleType,*string) - - // Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account. - // Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME - shareStatus?: null | string @go(ShareStatus,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration block(s) indicating the IPs that you want Resolver to forward DNS queries to (documented below). - // This argument should only be specified for FORWARD type rules. - targetIp?: [...#TargetIPObservation] @go(TargetIP,[]TargetIPObservation) -} - -#RuleParameters: { - // DNS queries for this domain name are forwarded to the IP addresses that are specified using target_ip. - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the outbound resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify using target_ip. - // This argument should only be specified for FORWARD type rules. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/route53resolver/v1beta1.Endpoint - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - resolverEndpointId?: null | string @go(ResolverEndpointID,*string) - - // Reference to a Endpoint in route53resolver to populate resolverEndpointId. - // +kubebuilder:validation:Optional - resolverEndpointIdRef?: null | v1.#Reference @go(ResolverEndpointIDRef,*v1.Reference) - - // Selector for a Endpoint in route53resolver to populate resolverEndpointId. - // +kubebuilder:validation:Optional - resolverEndpointIdSelector?: null | v1.#Selector @go(ResolverEndpointIDSelector,*v1.Selector) - - // The rule type. Valid values are FORWARD, SYSTEM and RECURSIVE. - // +kubebuilder:validation:Optional - ruleType?: null | string @go(RuleType,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Configuration block(s) indicating the IPs that you want Resolver to forward DNS queries to (documented below). - // This argument should only be specified for FORWARD type rules. - // +kubebuilder:validation:Optional - targetIp?: [...#TargetIPParameters] @go(TargetIP,[]TargetIPParameters) -} - -#TargetIPInitParameters: { - // One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses. - ip?: null | string @go(IP,*string) - - // The port at ip that you want to forward DNS queries to. Default value is 53 - port?: null | float64 @go(Port,*float64) -} - -#TargetIPObservation: { - // One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses. - ip?: null | string @go(IP,*string) - - // The port at ip that you want to forward DNS queries to. Default value is 53 - port?: null | float64 @go(Port,*float64) -} - -#TargetIPParameters: { - // One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses. - // +kubebuilder:validation:Optional - ip?: null | string @go(IP,*string) - - // The port at ip that you want to forward DNS queries to. Default value is 53 - // +kubebuilder:validation:Optional - port?: null | float64 @go(Port,*float64) -} - -// RuleSpec defines the desired state of Rule -#RuleSpec: { - v1.#ResourceSpec - forProvider: #RuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RuleInitParameters @go(InitProvider) -} - -// RuleStatus defines the observed state of Rule. -#RuleStatus: { - v1.#ResourceStatus - atProvider?: #RuleObservation @go(AtProvider) -} - -// Rule is the Schema for the Rules API. Provides a Route53 Resolver rule. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Rule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.domainName) || (has(self.initProvider) && has(self.initProvider.domainName))",message="spec.forProvider.domainName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ruleType) || (has(self.initProvider) && has(self.initProvider.ruleType))",message="spec.forProvider.ruleType is a required parameter" - spec: #RuleSpec @go(Spec) - status?: #RuleStatus @go(Status) -} - -// RuleList contains a list of Rules -#RuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Rule] @go(Items,[]Rule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53resolver/v1beta1/zz_ruleassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/route53resolver/v1beta1/zz_ruleassociation_types_go_gen.cue deleted file mode 100644 index 59ea2fc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/route53resolver/v1beta1/zz_ruleassociation_types_go_gen.cue +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/route53resolver/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RuleAssociationInitParameters: { - // A name for the association that you're creating between a resolver rule and a VPC. - name?: null | string @go(Name,*string) -} - -#RuleAssociationObservation: { - // The ID of the resolver rule association. - id?: null | string @go(ID,*string) - - // A name for the association that you're creating between a resolver rule and a VPC. - name?: null | string @go(Name,*string) - - // The ID of the resolver rule that you want to associate with the VPC. - resolverRuleId?: null | string @go(ResolverRuleID,*string) - - // The ID of the VPC that you want to associate the resolver rule with. - vpcId?: null | string @go(VPCID,*string) -} - -#RuleAssociationParameters: { - // A name for the association that you're creating between a resolver rule and a VPC. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ID of the resolver rule that you want to associate with the VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/route53resolver/v1beta1.Rule - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - resolverRuleId?: null | string @go(ResolverRuleID,*string) - - // Reference to a Rule in route53resolver to populate resolverRuleId. - // +kubebuilder:validation:Optional - resolverRuleIdRef?: null | v1.#Reference @go(ResolverRuleIDRef,*v1.Reference) - - // Selector for a Rule in route53resolver to populate resolverRuleId. - // +kubebuilder:validation:Optional - resolverRuleIdSelector?: null | v1.#Selector @go(ResolverRuleIDSelector,*v1.Selector) - - // The ID of the VPC that you want to associate the resolver rule with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// RuleAssociationSpec defines the desired state of RuleAssociation -#RuleAssociationSpec: { - v1.#ResourceSpec - forProvider: #RuleAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RuleAssociationInitParameters @go(InitProvider) -} - -// RuleAssociationStatus defines the observed state of RuleAssociation. -#RuleAssociationStatus: { - v1.#ResourceStatus - atProvider?: #RuleAssociationObservation @go(AtProvider) -} - -// RuleAssociation is the Schema for the RuleAssociations API. Provides a Route53 Resolver rule association. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RuleAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RuleAssociationSpec @go(Spec) - status?: #RuleAssociationStatus @go(Status) -} - -// RuleAssociationList contains a list of RuleAssociations -#RuleAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RuleAssociation] @go(Items,[]RuleAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rum/v1beta1/zz_appmonitor_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rum/v1beta1/zz_appmonitor_types_go_gen.cue deleted file mode 100644 index 4d78583..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rum/v1beta1/zz_appmonitor_types_go_gen.cue +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rum/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AppMonitorConfigurationInitParameters: { - // If you set this to true, RUM web client sets two cookies, a session cookie and a user cookie. The cookies allow the RUM web client to collect data relating to the number of users an application has and the behavior of the application across a sequence of events. Cookies are stored in the top-level domain of the current page. - allowCookies?: null | bool @go(AllowCookies,*bool) - - // If you set this to true, RUM enables X-Ray tracing for the user sessions that RUM samples. RUM adds an X-Ray trace header to allowed HTTP requests. It also records an X-Ray segment for allowed HTTP requests. - enableXray?: null | bool @go(EnableXray,*bool) - - // A list of URLs in your website or application to exclude from RUM data collection. - excludedPages?: [...null | string] @go(ExcludedPages,[]*string) - - // A list of pages in the CloudWatch RUM console that are to be displayed with a "favorite" icon. - favoritePages?: [...null | string] @go(FavoritePages,[]*string) - - // The ARN of the guest IAM role that is attached to the Amazon Cognito identity pool that is used to authorize the sending of data to RUM. - guestRoleArn?: null | string @go(GuestRoleArn,*string) - - // The ID of the Amazon Cognito identity pool that is used to authorize the sending of data to RUM. - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // If this app monitor is to collect data from only certain pages in your application, this structure lists those pages. - includedPages?: [...null | string] @go(IncludedPages,[]*string) - - // Specifies the percentage of user sessions to use for RUM data collection. Choosing a higher percentage gives you more data but also incurs more costs. The number you specify is the percentage of user sessions that will be used. Default value is 0.1. - sessionSampleRate?: null | float64 @go(SessionSampleRate,*float64) - - // An array that lists the types of telemetry data that this app monitor is to collect. Valid values are errors, performance, and http. - telemetries?: [...null | string] @go(Telemetries,[]*string) -} - -#AppMonitorConfigurationObservation: { - // If you set this to true, RUM web client sets two cookies, a session cookie and a user cookie. The cookies allow the RUM web client to collect data relating to the number of users an application has and the behavior of the application across a sequence of events. Cookies are stored in the top-level domain of the current page. - allowCookies?: null | bool @go(AllowCookies,*bool) - - // If you set this to true, RUM enables X-Ray tracing for the user sessions that RUM samples. RUM adds an X-Ray trace header to allowed HTTP requests. It also records an X-Ray segment for allowed HTTP requests. - enableXray?: null | bool @go(EnableXray,*bool) - - // A list of URLs in your website or application to exclude from RUM data collection. - excludedPages?: [...null | string] @go(ExcludedPages,[]*string) - - // A list of pages in the CloudWatch RUM console that are to be displayed with a "favorite" icon. - favoritePages?: [...null | string] @go(FavoritePages,[]*string) - - // The ARN of the guest IAM role that is attached to the Amazon Cognito identity pool that is used to authorize the sending of data to RUM. - guestRoleArn?: null | string @go(GuestRoleArn,*string) - - // The ID of the Amazon Cognito identity pool that is used to authorize the sending of data to RUM. - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // If this app monitor is to collect data from only certain pages in your application, this structure lists those pages. - includedPages?: [...null | string] @go(IncludedPages,[]*string) - - // Specifies the percentage of user sessions to use for RUM data collection. Choosing a higher percentage gives you more data but also incurs more costs. The number you specify is the percentage of user sessions that will be used. Default value is 0.1. - sessionSampleRate?: null | float64 @go(SessionSampleRate,*float64) - - // An array that lists the types of telemetry data that this app monitor is to collect. Valid values are errors, performance, and http. - telemetries?: [...null | string] @go(Telemetries,[]*string) -} - -#AppMonitorConfigurationParameters: { - // If you set this to true, RUM web client sets two cookies, a session cookie and a user cookie. The cookies allow the RUM web client to collect data relating to the number of users an application has and the behavior of the application across a sequence of events. Cookies are stored in the top-level domain of the current page. - // +kubebuilder:validation:Optional - allowCookies?: null | bool @go(AllowCookies,*bool) - - // If you set this to true, RUM enables X-Ray tracing for the user sessions that RUM samples. RUM adds an X-Ray trace header to allowed HTTP requests. It also records an X-Ray segment for allowed HTTP requests. - // +kubebuilder:validation:Optional - enableXray?: null | bool @go(EnableXray,*bool) - - // A list of URLs in your website or application to exclude from RUM data collection. - // +kubebuilder:validation:Optional - excludedPages?: [...null | string] @go(ExcludedPages,[]*string) - - // A list of pages in the CloudWatch RUM console that are to be displayed with a "favorite" icon. - // +kubebuilder:validation:Optional - favoritePages?: [...null | string] @go(FavoritePages,[]*string) - - // The ARN of the guest IAM role that is attached to the Amazon Cognito identity pool that is used to authorize the sending of data to RUM. - // +kubebuilder:validation:Optional - guestRoleArn?: null | string @go(GuestRoleArn,*string) - - // The ID of the Amazon Cognito identity pool that is used to authorize the sending of data to RUM. - // +kubebuilder:validation:Optional - identityPoolId?: null | string @go(IdentityPoolID,*string) - - // If this app monitor is to collect data from only certain pages in your application, this structure lists those pages. - // +kubebuilder:validation:Optional - includedPages?: [...null | string] @go(IncludedPages,[]*string) - - // Specifies the percentage of user sessions to use for RUM data collection. Choosing a higher percentage gives you more data but also incurs more costs. The number you specify is the percentage of user sessions that will be used. Default value is 0.1. - // +kubebuilder:validation:Optional - sessionSampleRate?: null | float64 @go(SessionSampleRate,*float64) - - // An array that lists the types of telemetry data that this app monitor is to collect. Valid values are errors, performance, and http. - // +kubebuilder:validation:Optional - telemetries?: [...null | string] @go(Telemetries,[]*string) -} - -#AppMonitorInitParameters: { - // configuration data for the app monitor. See app_monitor_configuration below. - appMonitorConfiguration?: [...#AppMonitorConfigurationInitParameters] @go(AppMonitorConfiguration,[]AppMonitorConfigurationInitParameters) - - // Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are DISABLED. See custom_events below. - customEvents?: [...#CustomEventsInitParameters] @go(CustomEvents,[]CustomEventsInitParameters) - - // Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges. Default value is false. - cwLogEnabled?: null | bool @go(CwLogEnabled,*bool) - - // The top-level internet domain name for which your application has administrative authority. - domain?: null | string @go(Domain,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AppMonitorObservation: { - // configuration data for the app monitor. See app_monitor_configuration below. - appMonitorConfiguration?: [...#AppMonitorConfigurationObservation] @go(AppMonitorConfiguration,[]AppMonitorConfigurationObservation) - - // The unique ID of the app monitor. Useful for JS templates. - appMonitorId?: null | string @go(AppMonitorID,*string) - - // The Amazon Resource Name (ARN) specifying the app monitor. - arn?: null | string @go(Arn,*string) - - // Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are DISABLED. See custom_events below. - customEvents?: [...#CustomEventsObservation] @go(CustomEvents,[]CustomEventsObservation) - - // Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges. Default value is false. - cwLogEnabled?: null | bool @go(CwLogEnabled,*bool) - - // The name of the log group where the copies are stored. - cwLogGroup?: null | string @go(CwLogGroup,*string) - - // The top-level internet domain name for which your application has administrative authority. - domain?: null | string @go(Domain,*string) - - // The CloudWatch RUM name as it is the identifier of a RUM. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#AppMonitorParameters: { - // configuration data for the app monitor. See app_monitor_configuration below. - // +kubebuilder:validation:Optional - appMonitorConfiguration?: [...#AppMonitorConfigurationParameters] @go(AppMonitorConfiguration,[]AppMonitorConfigurationParameters) - - // Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are DISABLED. See custom_events below. - // +kubebuilder:validation:Optional - customEvents?: [...#CustomEventsParameters] @go(CustomEvents,[]CustomEventsParameters) - - // Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges. Default value is false. - // +kubebuilder:validation:Optional - cwLogEnabled?: null | bool @go(CwLogEnabled,*bool) - - // The top-level internet domain name for which your application has administrative authority. - // +kubebuilder:validation:Optional - domain?: null | string @go(Domain,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CustomEventsInitParameters: { - // Specifies whether this app monitor allows the web client to define and send custom events. The default is for custom events to be DISABLED. Valid values are DISABLED and ENABLED. - status?: null | string @go(Status,*string) -} - -#CustomEventsObservation: { - // Specifies whether this app monitor allows the web client to define and send custom events. The default is for custom events to be DISABLED. Valid values are DISABLED and ENABLED. - status?: null | string @go(Status,*string) -} - -#CustomEventsParameters: { - // Specifies whether this app monitor allows the web client to define and send custom events. The default is for custom events to be DISABLED. Valid values are DISABLED and ENABLED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -// AppMonitorSpec defines the desired state of AppMonitor -#AppMonitorSpec: { - v1.#ResourceSpec - forProvider: #AppMonitorParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AppMonitorInitParameters @go(InitProvider) -} - -// AppMonitorStatus defines the observed state of AppMonitor. -#AppMonitorStatus: { - v1.#ResourceStatus - atProvider?: #AppMonitorObservation @go(AtProvider) -} - -// AppMonitor is the Schema for the AppMonitors API. Provides a CloudWatch RUM App Monitor resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AppMonitor: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.domain) || (has(self.initProvider) && has(self.initProvider.domain))",message="spec.forProvider.domain is a required parameter" - spec: #AppMonitorSpec @go(Spec) - status?: #AppMonitorStatus @go(Status) -} - -// AppMonitorList contains a list of AppMonitors -#AppMonitorList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AppMonitor] @go(Items,[]AppMonitor) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rum/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rum/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 78ae97f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rum/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rum/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=rum.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "rum.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/rum/v1beta1/zz_metricsdestination_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/rum/v1beta1/zz_metricsdestination_types_go_gen.cue deleted file mode 100644 index 517d356..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/rum/v1beta1/zz_metricsdestination_types_go_gen.cue +++ /dev/null @@ -1,124 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/rum/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MetricsDestinationInitParameters: { - // Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment. - destination?: null | string @go(Destination,*string) - - // Use this parameter only if Destination is Evidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics. - destinationArn?: null | string @go(DestinationArn,*string) -} - -#MetricsDestinationObservation: { - // The name of the CloudWatch RUM app monitor that will send the metrics. - appMonitorName?: null | string @go(AppMonitorName,*string) - - // Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment. - destination?: null | string @go(Destination,*string) - - // Use this parameter only if Destination is Evidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics. - destinationArn?: null | string @go(DestinationArn,*string) - - // This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // The name of the CloudWatch RUM app monitor that will send the metrics. - id?: null | string @go(ID,*string) -} - -#MetricsDestinationParameters: { - // The name of the CloudWatch RUM app monitor that will send the metrics. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rum/v1beta1.AppMonitor - // +kubebuilder:validation:Optional - appMonitorName?: null | string @go(AppMonitorName,*string) - - // Reference to a AppMonitor in rum to populate appMonitorName. - // +kubebuilder:validation:Optional - appMonitorNameRef?: null | v1.#Reference @go(AppMonitorNameRef,*v1.Reference) - - // Selector for a AppMonitor in rum to populate appMonitorName. - // +kubebuilder:validation:Optional - appMonitorNameSelector?: null | v1.#Selector @go(AppMonitorNameSelector,*v1.Selector) - - // Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment. - // +kubebuilder:validation:Optional - destination?: null | string @go(Destination,*string) - - // Use this parameter only if Destination is Evidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics. - // +kubebuilder:validation:Optional - destinationArn?: null | string @go(DestinationArn,*string) - - // This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // Reference to a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnRef?: null | v1.#Reference @go(IAMRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnSelector?: null | v1.#Selector @go(IAMRoleArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// MetricsDestinationSpec defines the desired state of MetricsDestination -#MetricsDestinationSpec: { - v1.#ResourceSpec - forProvider: #MetricsDestinationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MetricsDestinationInitParameters @go(InitProvider) -} - -// MetricsDestinationStatus defines the observed state of MetricsDestination. -#MetricsDestinationStatus: { - v1.#ResourceStatus - atProvider?: #MetricsDestinationObservation @go(AtProvider) -} - -// MetricsDestination is the Schema for the MetricsDestinations API. Provides a CloudWatch RUM Metrics Destination resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MetricsDestination: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destination) || (has(self.initProvider) && has(self.initProvider.destination))",message="spec.forProvider.destination is a required parameter" - spec: #MetricsDestinationSpec @go(Spec) - status?: #MetricsDestinationStatus @go(Status) -} - -// MetricsDestinationList contains a list of MetricsDestinations -#MetricsDestinationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MetricsDestination] @go(Items,[]MetricsDestination) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucket_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucket_types_go_gen.cue deleted file mode 100644 index c282b6c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucket_types_go_gen.cue +++ /dev/null @@ -1,590 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessControlTranslationInitParameters: { -} - -#AccessControlTranslationObservation: { - owner?: null | string @go(Owner,*string) -} - -#AccessControlTranslationParameters: { -} - -#ApplyServerSideEncryptionByDefaultInitParameters: { -} - -#ApplyServerSideEncryptionByDefaultObservation: { - // AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of sse_algorithm as aws:kms. The default aws/s3 AWS KMS master key is used if this element is absent while the sse_algorithm is aws:kms. - kmsMasterKeyId?: null | string @go(KMSMasterKeyID,*string) - - // Server-side encryption algorithm to use. Valid values are AES256 and aws:kms - sseAlgorithm?: null | string @go(SseAlgorithm,*string) -} - -#ApplyServerSideEncryptionByDefaultParameters: { -} - -#BucketInitParameters: { - // Boolean that indicates all objects (including any locked objects) should be deleted from the bucket when the bucket is destroyed so that the bucket can be destroyed without error. These objects are not recoverable. This only deletes objects when the bucket is destroyed, not when setting this parameter to true. If setting this field in the same operation that would require replacing the bucket or destroying the bucket, this flag will not work. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Indicates whether this bucket has an Object Lock configuration enabled. Valid values are true or false. This argument is not supported in all regions or partitions. - objectLockEnabled?: null | bool @go(ObjectLockEnabled,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BucketObservation: { - // The canned ACL to apply. Valid values are private, public-read, public-read-write, aws-exec-read, authenticated-read, and log-delivery-write. Defaults to private. Conflicts with grant. Use the resource aws_s3_bucket_acl instead. - acl?: null | string @go(ACL,*string) - - // Sets the accelerate configuration of an existing bucket. Can be Enabled or Suspended. Cannot be used in cn-north-1 or us-gov-west-1. - // Use the resource aws_s3_bucket_accelerate_configuration instead. - accelerationStatus?: null | string @go(AccelerationStatus,*string) - - // ARN of the bucket. Will be of format arn:aws:s3:::bucketname. - arn?: null | string @go(Arn,*string) - - // Bucket domain name. Will be of format bucketname.s3.amazonaws.com. - bucketDomainName?: null | string @go(BucketDomainName,*string) - - // Bucket region-specific domain name. The bucket domain name including the region name, please refer here for format. Note: The AWS CloudFront allows specifying S3 region-specific endpoint when creating S3 origin, it will prevent redirect issues from CloudFront to S3 Origin URL. - bucketRegionalDomainName?: null | string @go(BucketRegionalDomainName,*string) - - // Rule of Cross-Origin Resource Sharing. See CORS rule below for details. Use the resource aws_s3_bucket_cors_configuration instead. - corsRule?: [...#CorsRuleObservation] @go(CorsRule,[]CorsRuleObservation) - - // Boolean that indicates all objects (including any locked objects) should be deleted from the bucket when the bucket is destroyed so that the bucket can be destroyed without error. These objects are not recoverable. This only deletes objects when the bucket is destroyed, not when setting this parameter to true. If setting this field in the same operation that would require replacing the bucket or destroying the bucket, this flag will not work. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // An ACL policy grant. See Grant below for details. Conflicts with acl. Use the resource aws_s3_bucket_acl instead. - grant?: [...#GrantObservation] @go(Grant,[]GrantObservation) - - // Route 53 Hosted Zone ID for this bucket's region. - hostedZoneId?: null | string @go(HostedZoneID,*string) - - // Name of the bucket. - id?: null | string @go(ID,*string) - - // Configuration of object lifecycle management. See Lifecycle Rule below for details. - // Use the resource aws_s3_bucket_lifecycle_configuration instead. - lifecycleRule?: [...#LifecycleRuleObservation] @go(LifecycleRule,[]LifecycleRuleObservation) - - // Configuration of S3 bucket logging parameters. See Logging below for details. - // Use the resource aws_s3_bucket_logging instead. - logging?: [...#LoggingObservation] @go(Logging,[]LoggingObservation) - - // Configuration of S3 object locking. See Object Lock Configuration below for details. - // Use the object_lock_enabled parameter and the resource aws_s3_bucket_object_lock_configuration instead. - objectLockConfiguration?: [...#ObjectLockConfigurationObservation] @go(ObjectLockConfiguration,[]ObjectLockConfigurationObservation) - - // Indicates whether this bucket has an Object Lock configuration enabled. Valid values are true or false. This argument is not supported in all regions or partitions. - objectLockEnabled?: null | bool @go(ObjectLockEnabled,*bool) - - // Valid bucket policy JSON document. In this case, please make sure you use the verbose/specific version of the policy. - // Use the resource aws_s3_bucket_policy instead. - policy?: null | string @go(Policy,*string) - - // Configuration of replication configuration. See Replication Configuration below for details. - // Use the resource aws_s3_bucket_replication_configuration instead. - replicationConfiguration?: [...#ReplicationConfigurationObservation] @go(ReplicationConfiguration,[]ReplicationConfigurationObservation) - - // Specifies who should bear the cost of Amazon S3 data transfer. - // Can be either BucketOwner or Requester. By default, the owner of the S3 bucket would incur the costs of any data transfer. - // See Requester Pays Buckets developer guide for more information. - // Use the resource aws_s3_bucket_request_payment_configuration instead. - requestPayer?: null | string @go(RequestPayer,*string) - - // Configuration of server-side encryption configuration. See Server Side Encryption Configuration below for details. - // Use the resource aws_s3_bucket_server_side_encryption_configuration instead. - serverSideEncryptionConfiguration?: [...#ServerSideEncryptionConfigurationObservation] @go(ServerSideEncryptionConfiguration,[]ServerSideEncryptionConfigurationObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Configuration of the S3 bucket versioning state. See Versioning below for details. Use the resource aws_s3_bucket_versioning instead. - versioning?: [...#VersioningObservation] @go(Versioning,[]VersioningObservation) - - // Configuration of the S3 bucket website. See Website below for details. - // Use the resource aws_s3_bucket_website_configuration instead. - website?: [...#WebsiteObservation] @go(Website,[]WebsiteObservation) - - // (Deprecated) Domain of the website endpoint, if the bucket is configured with a website. If not, this will be an empty string. This is used to create Route 53 alias records. Use the resource aws_s3_bucket_website_configuration instead. - websiteDomain?: null | string @go(WebsiteDomain,*string) - - // (Deprecated) Website endpoint, if the bucket is configured with a website. If not, this will be an empty string. Use the resource aws_s3_bucket_website_configuration instead. - websiteEndpoint?: null | string @go(WebsiteEndpoint,*string) -} - -#BucketParameters: { - // Boolean that indicates all objects (including any locked objects) should be deleted from the bucket when the bucket is destroyed so that the bucket can be destroyed without error. These objects are not recoverable. This only deletes objects when the bucket is destroyed, not when setting this parameter to true. If setting this field in the same operation that would require replacing the bucket or destroying the bucket, this flag will not work. - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Indicates whether this bucket has an Object Lock configuration enabled. Valid values are true or false. This argument is not supported in all regions or partitions. - // +kubebuilder:validation:Optional - objectLockEnabled?: null | bool @go(ObjectLockEnabled,*bool) - - // AWS region this bucket resides in. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CorsRuleInitParameters: { -} - -#CorsRuleObservation: { - // List of headers allowed. - allowedHeaders?: [...null | string] @go(AllowedHeaders,[]*string) - - // One or more HTTP methods that you allow the origin to execute. Can be GET, PUT, POST, DELETE or HEAD. - allowedMethods?: [...null | string] @go(AllowedMethods,[]*string) - - // One or more origins you want customers to be able to access the bucket from. - allowedOrigins?: [...null | string] @go(AllowedOrigins,[]*string) - - // One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). - exposeHeaders?: [...null | string] @go(ExposeHeaders,[]*string) - - // Specifies time in seconds that browser can cache the response for a preflight request. - maxAgeSeconds?: null | float64 @go(MaxAgeSeconds,*float64) -} - -#CorsRuleParameters: { -} - -#DefaultRetentionInitParameters: { -} - -#DefaultRetentionObservation: { - // Number of days that you want to specify for the default retention period. - days?: null | float64 @go(Days,*float64) - - // Default Object Lock retention mode you want to apply to new objects placed in this bucket. Valid values are GOVERNANCE and COMPLIANCE. - mode?: null | string @go(Mode,*string) - - // Number of years that you want to specify for the default retention period. - years?: null | float64 @go(Years,*float64) -} - -#DefaultRetentionParameters: { -} - -#DestinationInitParameters: { -} - -#DestinationObservation: { - // Specifies the overrides to use for object owners on replication. Must be used in conjunction with account_id owner override configuration. - accessControlTranslation?: [...#AccessControlTranslationObservation] @go(AccessControlTranslation,[]AccessControlTranslationObservation) - - // Account ID to use for overriding the object owner on replication. Must be used in conjunction with access_control_translation override configuration. - accountId?: null | string @go(AccountID,*string) - - // ARN of the S3 bucket where you want Amazon S3 to store replicas of the object identified by the rule. - bucket?: null | string @go(Bucket,*string) - - // Enables replication metrics (documented below). - metrics?: [...#MetricsObservation] @go(Metrics,[]MetricsObservation) - - // Destination KMS encryption key ARN for SSE-KMS replication. Must be used in conjunction with - // sse_kms_encrypted_objects source selection criteria. - replicaKmsKeyId?: null | string @go(ReplicaKMSKeyID,*string) - - // Enables S3 Replication Time Control (S3 RTC) (documented below). - replicationTime?: [...#ReplicationTimeObservation] @go(ReplicationTime,[]ReplicationTimeObservation) - - // Specifies the Amazon S3 storage class to which you want the object to transition. - storageClass?: null | string @go(StorageClass,*string) -} - -#DestinationParameters: { -} - -#ExpirationInitParameters: { -} - -#ExpirationObservation: { - // Specifies the date after which you want the corresponding action to take effect. - date?: null | string @go(Date,*string) - - // Specifies the number of days after object creation when the specific rule action takes effect. - days?: null | float64 @go(Days,*float64) - - // On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct Amazon S3 to delete expired object delete markers. This cannot be specified with Days or Date in a Lifecycle Expiration Policy. - expiredObjectDeleteMarker?: null | bool @go(ExpiredObjectDeleteMarker,*bool) -} - -#ExpirationParameters: { -} - -#FilterInitParameters: { -} - -#FilterObservation: { - // Object keyname prefix that identifies subset of objects to which the rule applies. Must be less than or equal to 1024 characters in length. - prefix?: null | string @go(Prefix,*string) - - // A map of tags that identifies subset of objects to which the rule applies. - // The rule applies only to objects having all the tags in its tagset. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FilterParameters: { -} - -#GrantInitParameters: { -} - -#GrantObservation: { - // Canonical user id to grant for. Used only when type is CanonicalUser. - id?: null | string @go(ID,*string) - - // List of permissions to apply for grantee. Valid values are READ, WRITE, READ_ACP, WRITE_ACP, FULL_CONTROL. - permissions?: [...null | string] @go(Permissions,[]*string) - - // Type of grantee to apply for. Valid values are CanonicalUser and Group. AmazonCustomerByEmail is not supported. - type?: null | string @go(Type,*string) - - // Uri address to grant for. Used only when type is Group. - uri?: null | string @go(URI,*string) -} - -#GrantParameters: { -} - -#LifecycleRuleInitParameters: { -} - -#LifecycleRuleObservation: { - // Specifies the number of days after initiating a multipart upload when the multipart upload must be completed. - abortIncompleteMultipartUploadDays?: null | float64 @go(AbortIncompleteMultipartUploadDays,*float64) - - // Specifies lifecycle rule status. - enabled?: null | bool @go(Enabled,*bool) - - // Specifies a period in the object's expire. See Expiration below for details. - expiration?: [...#ExpirationObservation] @go(Expiration,[]ExpirationObservation) - - // Unique identifier for the rule. Must be less than or equal to 255 characters in length. - id?: null | string @go(ID,*string) - - // Specifies when noncurrent object versions expire. See Noncurrent Version Expiration below for details. - noncurrentVersionExpiration?: [...#NoncurrentVersionExpirationObservation] @go(NoncurrentVersionExpiration,[]NoncurrentVersionExpirationObservation) - - // Specifies when noncurrent object versions transitions. See Noncurrent Version Transition below for details. - noncurrentVersionTransition?: [...#NoncurrentVersionTransitionObservation] @go(NoncurrentVersionTransition,[]NoncurrentVersionTransitionObservation) - - // Object key prefix identifying one or more objects to which the rule applies. - prefix?: null | string @go(Prefix,*string) - - // Specifies object tags key and value. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies a period in the object's transitions. See Transition below for details. - transition?: [...#TransitionObservation] @go(Transition,[]TransitionObservation) -} - -#LifecycleRuleParameters: { -} - -#LoggingInitParameters: { -} - -#LoggingObservation: { - // Name of the bucket that will receive the log objects. - targetBucket?: null | string @go(TargetBucket,*string) - - // To specify a key prefix for log objects. - targetPrefix?: null | string @go(TargetPrefix,*string) -} - -#LoggingParameters: { -} - -#MetricsInitParameters: { -} - -#MetricsObservation: { - // Threshold within which objects are to be replicated. The only valid value is 15. - minutes?: null | float64 @go(Minutes,*float64) - - // Status of the rule. Either Enabled or Disabled. The rule is ignored if status is not Enabled. - status?: null | string @go(Status,*string) -} - -#MetricsParameters: { -} - -#NoncurrentVersionExpirationInitParameters: { -} - -#NoncurrentVersionExpirationObservation: { - // Specifies the number of days after object creation when the specific rule action takes effect. - days?: null | float64 @go(Days,*float64) -} - -#NoncurrentVersionExpirationParameters: { -} - -#NoncurrentVersionTransitionInitParameters: { -} - -#NoncurrentVersionTransitionObservation: { - // Specifies the number of days after object creation when the specific rule action takes effect. - days?: null | float64 @go(Days,*float64) - - // Specifies the Amazon S3 storage class to which you want the object to transition. - storageClass?: null | string @go(StorageClass,*string) -} - -#NoncurrentVersionTransitionParameters: { -} - -#ObjectLockConfigurationInitParameters: { -} - -#ObjectLockConfigurationObservation: { - // Indicates whether this bucket has an Object Lock configuration enabled. Valid value is Enabled. Use the top-level argument object_lock_enabled instead. - objectLockEnabled?: null | string @go(ObjectLockEnabled,*string) - - // Object Lock rule in place for this bucket (documented below). - rule?: [...#RuleObservation] @go(Rule,[]RuleObservation) -} - -#ObjectLockConfigurationParameters: { -} - -#ReplicationConfigurationInitParameters: { -} - -#ReplicationConfigurationObservation: { - // ARN of the IAM role for Amazon S3 to assume when replicating the objects. - role?: null | string @go(Role,*string) - - // Specifies the rules managing the replication (documented below). - rules?: [...#RulesObservation] @go(Rules,[]RulesObservation) -} - -#ReplicationConfigurationParameters: { -} - -#ReplicationTimeInitParameters: { -} - -#ReplicationTimeObservation: { - // Threshold within which objects are to be replicated. The only valid value is 15. - minutes?: null | float64 @go(Minutes,*float64) - - // Status of the rule. Either Enabled or Disabled. The rule is ignored if status is not Enabled. - status?: null | string @go(Status,*string) -} - -#ReplicationTimeParameters: { -} - -#RuleInitParameters: { -} - -#RuleObservation: { - // Default retention period that you want to apply to new objects placed in this bucket (documented below). - defaultRetention?: [...#DefaultRetentionObservation] @go(DefaultRetention,[]DefaultRetentionObservation) -} - -#RuleParameters: { -} - -#RulesInitParameters: { -} - -#RulesObservation: { - // Whether delete markers are replicated. The only valid value is Enabled. To disable, omit this argument. This argument is only valid with V2 replication configurations (i.e., when filter is used). - deleteMarkerReplicationStatus?: null | string @go(DeleteMarkerReplicationStatus,*string) - - // Specifies the destination for the rule (documented below). - destination?: [...#DestinationObservation] @go(Destination,[]DestinationObservation) - - // Filter that identifies subset of objects to which the replication rule applies (documented below). - filter?: [...#FilterObservation] @go(Filter,[]FilterObservation) - - // Unique identifier for the rule. Must be less than or equal to 255 characters in length. - id?: null | string @go(ID,*string) - - // Object keyname prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. - prefix?: null | string @go(Prefix,*string) - - // Priority associated with the rule. Priority should only be set if filter is configured. If not provided, defaults to 0. Priority must be unique between multiple rules. - priority?: null | float64 @go(Priority,*float64) - - // Specifies special object selection criteria (documented below). - sourceSelectionCriteria?: [...#SourceSelectionCriteriaObservation] @go(SourceSelectionCriteria,[]SourceSelectionCriteriaObservation) - - // Status of the rule. Either Enabled or Disabled. The rule is ignored if status is not Enabled. - status?: null | string @go(Status,*string) -} - -#RulesParameters: { -} - -#ServerSideEncryptionConfigurationInitParameters: { -} - -#ServerSideEncryptionConfigurationObservation: { - // Single object for server-side encryption by default configuration. (documented below) - rule?: [...#ServerSideEncryptionConfigurationRuleObservation] @go(Rule,[]ServerSideEncryptionConfigurationRuleObservation) -} - -#ServerSideEncryptionConfigurationParameters: { -} - -#ServerSideEncryptionConfigurationRuleInitParameters: { -} - -#ServerSideEncryptionConfigurationRuleObservation: { - // Single object for setting server-side encryption by default. (documented below) - applyServerSideEncryptionByDefault?: [...#ApplyServerSideEncryptionByDefaultObservation] @go(ApplyServerSideEncryptionByDefault,[]ApplyServerSideEncryptionByDefaultObservation) - - // Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) -} - -#ServerSideEncryptionConfigurationRuleParameters: { -} - -#SourceSelectionCriteriaInitParameters: { -} - -#SourceSelectionCriteriaObservation: { - // Match SSE-KMS encrypted objects (documented below). If specified, replica_kms_key_id - // in destination must be specified as well. - sseKmsEncryptedObjects?: [...#SseKMSEncryptedObjectsObservation] @go(SseKMSEncryptedObjects,[]SseKMSEncryptedObjectsObservation) -} - -#SourceSelectionCriteriaParameters: { -} - -#SseKMSEncryptedObjectsInitParameters: { -} - -#SseKMSEncryptedObjectsObservation: { - // Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket. - enabled?: null | bool @go(Enabled,*bool) -} - -#SseKMSEncryptedObjectsParameters: { -} - -#TransitionInitParameters: { -} - -#TransitionObservation: { - // Specifies the date after which you want the corresponding action to take effect. - date?: null | string @go(Date,*string) - - // Specifies the number of days after object creation when the specific rule action takes effect. - days?: null | float64 @go(Days,*float64) - - // Specifies the Amazon S3 storage class to which you want the object to transition. - storageClass?: null | string @go(StorageClass,*string) -} - -#TransitionParameters: { -} - -#VersioningInitParameters: { -} - -#VersioningObservation: { - // Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket. - enabled?: null | bool @go(Enabled,*bool) - - // Enable MFA delete for either Change the versioning state of your bucket or Permanently delete an object version. Default is false. This cannot be used to toggle this setting but is available to allow managed buckets to reflect the state in AWS - mfaDelete?: null | bool @go(MfaDelete,*bool) -} - -#VersioningParameters: { -} - -#WebsiteInitParameters: { -} - -#WebsiteObservation: { - // Absolute path to the document to return in case of a 4XX error. - errorDocument?: null | string @go(ErrorDocument,*string) - - // Amazon S3 returns this index document when requests are made to the root domain or any of the subfolders. - indexDocument?: null | string @go(IndexDocument,*string) - - // Hostname to redirect all website requests for this bucket to. Hostname can optionally be prefixed with a protocol (http:// or https://) to use when redirecting requests. The default is the protocol that is used in the original request. - redirectAllRequestsTo?: null | string @go(RedirectAllRequestsTo,*string) - - // JSON array containing routing rules - // describing redirect behavior and when redirects are applied. - routingRules?: null | string @go(RoutingRules,*string) -} - -#WebsiteParameters: { -} - -// BucketSpec defines the desired state of Bucket -#BucketSpec: { - v1.#ResourceSpec - forProvider: #BucketParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketInitParameters @go(InitProvider) -} - -// BucketStatus defines the observed state of Bucket. -#BucketStatus: { - v1.#ResourceStatus - atProvider?: #BucketObservation @go(AtProvider) -} - -// Bucket is the Schema for the Buckets API. Provides a S3 bucket resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Bucket: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BucketSpec @go(Spec) - status?: #BucketStatus @go(Status) -} - -// BucketList contains a list of Buckets -#BucketList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Bucket] @go(Items,[]Bucket) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketaccelerateconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketaccelerateconfiguration_types_go_gen.cue deleted file mode 100644 index 470eafa..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketaccelerateconfiguration_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketAccelerateConfigurationInitParameters: { - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Transfer acceleration state of the bucket. Valid values: Enabled, Suspended. - status?: null | string @go(Status,*string) -} - -#BucketAccelerateConfigurationObservation: { - // Name of the bucket. - bucket?: null | string @go(Bucket,*string) - - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // The bucket or bucket and expected_bucket_owner separated by a comma (,) if the latter is provided. - id?: null | string @go(ID,*string) - - // Transfer acceleration state of the bucket. Valid values: Enabled, Suspended. - status?: null | string @go(Status,*string) -} - -#BucketAccelerateConfigurationParameters: { - // Name of the bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Account ID of the expected bucket owner. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Transfer acceleration state of the bucket. Valid values: Enabled, Suspended. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -// BucketAccelerateConfigurationSpec defines the desired state of BucketAccelerateConfiguration -#BucketAccelerateConfigurationSpec: { - v1.#ResourceSpec - forProvider: #BucketAccelerateConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketAccelerateConfigurationInitParameters @go(InitProvider) -} - -// BucketAccelerateConfigurationStatus defines the observed state of BucketAccelerateConfiguration. -#BucketAccelerateConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #BucketAccelerateConfigurationObservation @go(AtProvider) -} - -// BucketAccelerateConfiguration is the Schema for the BucketAccelerateConfigurations API. Provides an S3 bucket accelerate configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketAccelerateConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.status) || (has(self.initProvider) && has(self.initProvider.status))",message="spec.forProvider.status is a required parameter" - spec: #BucketAccelerateConfigurationSpec @go(Spec) - status?: #BucketAccelerateConfigurationStatus @go(Status) -} - -// BucketAccelerateConfigurationList contains a list of BucketAccelerateConfigurations -#BucketAccelerateConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketAccelerateConfiguration] @go(Items,[]BucketAccelerateConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketacl_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketacl_types_go_gen.cue deleted file mode 100644 index baf4bd9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketacl_types_go_gen.cue +++ /dev/null @@ -1,243 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessControlPolicyGrantInitParameters: { - // Configuration block for the person being granted permissions. See below. - grantee?: [...#GranteeInitParameters] @go(Grantee,[]GranteeInitParameters) - - // Logging permissions assigned to the grantee for the bucket. - permission?: null | string @go(Permission,*string) -} - -#AccessControlPolicyGrantObservation: { - // Configuration block for the person being granted permissions. See below. - grantee?: [...#GranteeObservation] @go(Grantee,[]GranteeObservation) - - // Logging permissions assigned to the grantee for the bucket. - permission?: null | string @go(Permission,*string) -} - -#AccessControlPolicyGrantParameters: { - // Configuration block for the person being granted permissions. See below. - // +kubebuilder:validation:Optional - grantee?: [...#GranteeParameters] @go(Grantee,[]GranteeParameters) - - // Logging permissions assigned to the grantee for the bucket. - // +kubebuilder:validation:Optional - permission?: null | string @go(Permission,*string) -} - -#AccessControlPolicyInitParameters: { - // Set of grant configuration blocks. See below. - grant?: [...#AccessControlPolicyGrantInitParameters] @go(Grant,[]AccessControlPolicyGrantInitParameters) - - // Configuration block of the bucket owner's display name and ID. See below. - owner?: [...#OwnerInitParameters] @go(Owner,[]OwnerInitParameters) -} - -#AccessControlPolicyObservation: { - // Set of grant configuration blocks. See below. - grant?: [...#AccessControlPolicyGrantObservation] @go(Grant,[]AccessControlPolicyGrantObservation) - - // Configuration block of the bucket owner's display name and ID. See below. - owner?: [...#OwnerObservation] @go(Owner,[]OwnerObservation) -} - -#AccessControlPolicyParameters: { - // Set of grant configuration blocks. See below. - // +kubebuilder:validation:Optional - grant?: [...#AccessControlPolicyGrantParameters] @go(Grant,[]AccessControlPolicyGrantParameters) - - // Configuration block of the bucket owner's display name and ID. See below. - // +kubebuilder:validation:Optional - owner: [...#OwnerParameters] @go(Owner,[]OwnerParameters) -} - -#BucketACLInitParameters: { - // Canned ACL to apply to the bucket. - acl?: null | string @go(ACL,*string) - - // Configuration block that sets the ACL permissions for an object per grantee. See below. - accessControlPolicy?: [...#AccessControlPolicyInitParameters] @go(AccessControlPolicy,[]AccessControlPolicyInitParameters) - - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) -} - -#BucketACLObservation: { - // Canned ACL to apply to the bucket. - acl?: null | string @go(ACL,*string) - - // Configuration block that sets the ACL permissions for an object per grantee. See below. - accessControlPolicy?: [...#AccessControlPolicyObservation] @go(AccessControlPolicy,[]AccessControlPolicyObservation) - - // Name of the bucket. - bucket?: null | string @go(Bucket,*string) - - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // The bucket, expected_bucket_owner (if configured), and acl (if configured) separated by commas (,). - id?: null | string @go(ID,*string) -} - -#BucketACLParameters: { - // Canned ACL to apply to the bucket. - // +kubebuilder:validation:Optional - acl?: null | string @go(ACL,*string) - - // Configuration block that sets the ACL permissions for an object per grantee. See below. - // +kubebuilder:validation:Optional - accessControlPolicy?: [...#AccessControlPolicyParameters] @go(AccessControlPolicy,[]AccessControlPolicyParameters) - - // Name of the bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Account ID of the expected bucket owner. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#GranteeInitParameters: { - // Email address of the grantee. See Regions and Endpoints for supported AWS regions where this argument can be specified. - emailAddress?: null | string @go(EmailAddress,*string) - - // ID of the owner. - id?: null | string @go(ID,*string) - - // Type of grantee. Valid values: CanonicalUser, AmazonCustomerByEmail, Group. - type?: null | string @go(Type,*string) - - // URI of the grantee group. - uri?: null | string @go(URI,*string) -} - -#GranteeObservation: { - // Display name of the owner. - displayName?: null | string @go(DisplayName,*string) - - // Email address of the grantee. See Regions and Endpoints for supported AWS regions where this argument can be specified. - emailAddress?: null | string @go(EmailAddress,*string) - - // ID of the owner. - id?: null | string @go(ID,*string) - - // Type of grantee. Valid values: CanonicalUser, AmazonCustomerByEmail, Group. - type?: null | string @go(Type,*string) - - // URI of the grantee group. - uri?: null | string @go(URI,*string) -} - -#GranteeParameters: { - // Email address of the grantee. See Regions and Endpoints for supported AWS regions where this argument can be specified. - // +kubebuilder:validation:Optional - emailAddress?: null | string @go(EmailAddress,*string) - - // ID of the owner. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Type of grantee. Valid values: CanonicalUser, AmazonCustomerByEmail, Group. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // URI of the grantee group. - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) -} - -#OwnerInitParameters: { - // Display name of the owner. - displayName?: null | string @go(DisplayName,*string) - - // ID of the owner. - id?: null | string @go(ID,*string) -} - -#OwnerObservation: { - // Display name of the owner. - displayName?: null | string @go(DisplayName,*string) - - // ID of the owner. - id?: null | string @go(ID,*string) -} - -#OwnerParameters: { - // Display name of the owner. - // +kubebuilder:validation:Optional - displayName?: null | string @go(DisplayName,*string) - - // ID of the owner. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) -} - -// BucketACLSpec defines the desired state of BucketACL -#BucketACLSpec: { - v1.#ResourceSpec - forProvider: #BucketACLParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketACLInitParameters @go(InitProvider) -} - -// BucketACLStatus defines the observed state of BucketACL. -#BucketACLStatus: { - v1.#ResourceStatus - atProvider?: #BucketACLObservation @go(AtProvider) -} - -// BucketACL is the Schema for the BucketACLs API. Provides an S3 bucket ACL resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketACL: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BucketACLSpec @go(Spec) - status?: #BucketACLStatus @go(Status) -} - -// BucketACLList contains a list of BucketACLs -#BucketACLList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketACL] @go(Items,[]BucketACL) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketanalyticsconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketanalyticsconfiguration_types_go_gen.cue deleted file mode 100644 index 7228339..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketanalyticsconfiguration_types_go_gen.cue +++ /dev/null @@ -1,253 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketAnalyticsConfigurationFilterInitParameters: { - // Object prefix for filtering. - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BucketAnalyticsConfigurationFilterObservation: { - // Object prefix for filtering. - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BucketAnalyticsConfigurationFilterParameters: { - // Object prefix for filtering. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BucketAnalyticsConfigurationInitParameters: { - // Object filtering that accepts a prefix, tags, or a logical AND of prefix and tags (documented below). - filter?: [...#BucketAnalyticsConfigurationFilterInitParameters] @go(Filter,[]BucketAnalyticsConfigurationFilterInitParameters) - - // Unique identifier of the analytics configuration for the bucket. - name?: null | string @go(Name,*string) - - // Configuration for the analytics data export (documented below). - storageClassAnalysis?: [...#StorageClassAnalysisInitParameters] @go(StorageClassAnalysis,[]StorageClassAnalysisInitParameters) -} - -#BucketAnalyticsConfigurationObservation: { - // Name of the bucket this analytics configuration is associated with. - bucket?: null | string @go(Bucket,*string) - - // Object filtering that accepts a prefix, tags, or a logical AND of prefix and tags (documented below). - filter?: [...#BucketAnalyticsConfigurationFilterObservation] @go(Filter,[]BucketAnalyticsConfigurationFilterObservation) - id?: null | string @go(ID,*string) - - // Unique identifier of the analytics configuration for the bucket. - name?: null | string @go(Name,*string) - - // Configuration for the analytics data export (documented below). - storageClassAnalysis?: [...#StorageClassAnalysisObservation] @go(StorageClassAnalysis,[]StorageClassAnalysisObservation) -} - -#BucketAnalyticsConfigurationParameters: { - // Name of the bucket this analytics configuration is associated with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Object filtering that accepts a prefix, tags, or a logical AND of prefix and tags (documented below). - // +kubebuilder:validation:Optional - filter?: [...#BucketAnalyticsConfigurationFilterParameters] @go(Filter,[]BucketAnalyticsConfigurationFilterParameters) - - // Unique identifier of the analytics configuration for the bucket. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration for the analytics data export (documented below). - // +kubebuilder:validation:Optional - storageClassAnalysis?: [...#StorageClassAnalysisParameters] @go(StorageClassAnalysis,[]StorageClassAnalysisParameters) -} - -#DataExportDestinationInitParameters: { - // Analytics data export currently only supports an S3 bucket destination (documented below). - s3BucketDestination?: [...#S3BucketDestinationInitParameters] @go(S3BucketDestination,[]S3BucketDestinationInitParameters) -} - -#DataExportDestinationObservation: { - // Analytics data export currently only supports an S3 bucket destination (documented below). - s3BucketDestination?: [...#S3BucketDestinationObservation] @go(S3BucketDestination,[]S3BucketDestinationObservation) -} - -#DataExportDestinationParameters: { - // Analytics data export currently only supports an S3 bucket destination (documented below). - // +kubebuilder:validation:Optional - s3BucketDestination: [...#S3BucketDestinationParameters] @go(S3BucketDestination,[]S3BucketDestinationParameters) -} - -#DataExportInitParameters: { - // Specifies the destination for the exported analytics data (documented below). - destination?: [...#DataExportDestinationInitParameters] @go(Destination,[]DataExportDestinationInitParameters) - - // Schema version of exported analytics data. Allowed values: V_1. Default value: V_1. - outputSchemaVersion?: null | string @go(OutputSchemaVersion,*string) -} - -#DataExportObservation: { - // Specifies the destination for the exported analytics data (documented below). - destination?: [...#DataExportDestinationObservation] @go(Destination,[]DataExportDestinationObservation) - - // Schema version of exported analytics data. Allowed values: V_1. Default value: V_1. - outputSchemaVersion?: null | string @go(OutputSchemaVersion,*string) -} - -#DataExportParameters: { - // Specifies the destination for the exported analytics data (documented below). - // +kubebuilder:validation:Optional - destination: [...#DataExportDestinationParameters] @go(Destination,[]DataExportDestinationParameters) - - // Schema version of exported analytics data. Allowed values: V_1. Default value: V_1. - // +kubebuilder:validation:Optional - outputSchemaVersion?: null | string @go(OutputSchemaVersion,*string) -} - -#S3BucketDestinationInitParameters: { - // Account ID that owns the destination bucket. - bucketAccountId?: null | string @go(BucketAccountID,*string) - - // Output format of exported analytics data. Allowed values: CSV. Default value: CSV. - format?: null | string @go(Format,*string) - - // Object prefix for filtering. - prefix?: null | string @go(Prefix,*string) -} - -#S3BucketDestinationObservation: { - // Account ID that owns the destination bucket. - bucketAccountId?: null | string @go(BucketAccountID,*string) - - // ARN of the destination bucket. - bucketArn?: null | string @go(BucketArn,*string) - - // Output format of exported analytics data. Allowed values: CSV. Default value: CSV. - format?: null | string @go(Format,*string) - - // Object prefix for filtering. - prefix?: null | string @go(Prefix,*string) -} - -#S3BucketDestinationParameters: { - // Account ID that owns the destination bucket. - // +kubebuilder:validation:Optional - bucketAccountId?: null | string @go(BucketAccountID,*string) - - // ARN of the destination bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - bucketArn?: null | string @go(BucketArn,*string) - - // Reference to a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnRef?: null | v1.#Reference @go(BucketArnRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnSelector?: null | v1.#Selector @go(BucketArnSelector,*v1.Selector) - - // Output format of exported analytics data. Allowed values: CSV. Default value: CSV. - // +kubebuilder:validation:Optional - format?: null | string @go(Format,*string) - - // Object prefix for filtering. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) -} - -#StorageClassAnalysisInitParameters: { - // Data export configuration (documented below). - dataExport?: [...#DataExportInitParameters] @go(DataExport,[]DataExportInitParameters) -} - -#StorageClassAnalysisObservation: { - // Data export configuration (documented below). - dataExport?: [...#DataExportObservation] @go(DataExport,[]DataExportObservation) -} - -#StorageClassAnalysisParameters: { - // Data export configuration (documented below). - // +kubebuilder:validation:Optional - dataExport: [...#DataExportParameters] @go(DataExport,[]DataExportParameters) -} - -// BucketAnalyticsConfigurationSpec defines the desired state of BucketAnalyticsConfiguration -#BucketAnalyticsConfigurationSpec: { - v1.#ResourceSpec - forProvider: #BucketAnalyticsConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketAnalyticsConfigurationInitParameters @go(InitProvider) -} - -// BucketAnalyticsConfigurationStatus defines the observed state of BucketAnalyticsConfiguration. -#BucketAnalyticsConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #BucketAnalyticsConfigurationObservation @go(AtProvider) -} - -// BucketAnalyticsConfiguration is the Schema for the BucketAnalyticsConfigurations API. Provides a S3 bucket analytics configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketAnalyticsConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #BucketAnalyticsConfigurationSpec @go(Spec) - status?: #BucketAnalyticsConfigurationStatus @go(Status) -} - -// BucketAnalyticsConfigurationList contains a list of BucketAnalyticsConfigurations -#BucketAnalyticsConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketAnalyticsConfiguration] @go(Items,[]BucketAnalyticsConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketcorsconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketcorsconfiguration_types_go_gen.cue deleted file mode 100644 index 7bcfb17..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketcorsconfiguration_types_go_gen.cue +++ /dev/null @@ -1,174 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketCorsConfigurationCorsRuleInitParameters: { - // Set of Headers that are specified in the Access-Control-Request-Headers header. - allowedHeaders?: [...null | string] @go(AllowedHeaders,[]*string) - - // Set of HTTP methods that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE. - allowedMethods?: [...null | string] @go(AllowedMethods,[]*string) - - // Set of origins you want customers to be able to access the bucket from. - allowedOrigins?: [...null | string] @go(AllowedOrigins,[]*string) - - // Set of headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). - exposeHeaders?: [...null | string] @go(ExposeHeaders,[]*string) - - // Unique identifier for the rule. The value cannot be longer than 255 characters. - id?: null | string @go(ID,*string) - - // Time in seconds that your browser is to cache the preflight response for the specified resource. - maxAgeSeconds?: null | float64 @go(MaxAgeSeconds,*float64) -} - -#BucketCorsConfigurationCorsRuleObservation: { - // Set of Headers that are specified in the Access-Control-Request-Headers header. - allowedHeaders?: [...null | string] @go(AllowedHeaders,[]*string) - - // Set of HTTP methods that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE. - allowedMethods?: [...null | string] @go(AllowedMethods,[]*string) - - // Set of origins you want customers to be able to access the bucket from. - allowedOrigins?: [...null | string] @go(AllowedOrigins,[]*string) - - // Set of headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). - exposeHeaders?: [...null | string] @go(ExposeHeaders,[]*string) - - // Unique identifier for the rule. The value cannot be longer than 255 characters. - id?: null | string @go(ID,*string) - - // Time in seconds that your browser is to cache the preflight response for the specified resource. - maxAgeSeconds?: null | float64 @go(MaxAgeSeconds,*float64) -} - -#BucketCorsConfigurationCorsRuleParameters: { - // Set of Headers that are specified in the Access-Control-Request-Headers header. - // +kubebuilder:validation:Optional - allowedHeaders?: [...null | string] @go(AllowedHeaders,[]*string) - - // Set of HTTP methods that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE. - // +kubebuilder:validation:Optional - allowedMethods: [...null | string] @go(AllowedMethods,[]*string) - - // Set of origins you want customers to be able to access the bucket from. - // +kubebuilder:validation:Optional - allowedOrigins: [...null | string] @go(AllowedOrigins,[]*string) - - // Set of headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). - // +kubebuilder:validation:Optional - exposeHeaders?: [...null | string] @go(ExposeHeaders,[]*string) - - // Unique identifier for the rule. The value cannot be longer than 255 characters. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Time in seconds that your browser is to cache the preflight response for the specified resource. - // +kubebuilder:validation:Optional - maxAgeSeconds?: null | float64 @go(MaxAgeSeconds,*float64) -} - -#BucketCorsConfigurationInitParameters: { - // Set of origins and methods (cross-origin access that you want to allow). See below. You can configure up to 100 rules. - corsRule?: [...#BucketCorsConfigurationCorsRuleInitParameters] @go(CorsRule,[]BucketCorsConfigurationCorsRuleInitParameters) - - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) -} - -#BucketCorsConfigurationObservation: { - // Name of the bucket. - bucket?: null | string @go(Bucket,*string) - - // Set of origins and methods (cross-origin access that you want to allow). See below. You can configure up to 100 rules. - corsRule?: [...#BucketCorsConfigurationCorsRuleObservation] @go(CorsRule,[]BucketCorsConfigurationCorsRuleObservation) - - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // The bucket or bucket and expected_bucket_owner separated by a comma (,) if the latter is provided. - id?: null | string @go(ID,*string) -} - -#BucketCorsConfigurationParameters: { - // Name of the bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Set of origins and methods (cross-origin access that you want to allow). See below. You can configure up to 100 rules. - // +kubebuilder:validation:Optional - corsRule?: [...#BucketCorsConfigurationCorsRuleParameters] @go(CorsRule,[]BucketCorsConfigurationCorsRuleParameters) - - // Account ID of the expected bucket owner. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// BucketCorsConfigurationSpec defines the desired state of BucketCorsConfiguration -#BucketCorsConfigurationSpec: { - v1.#ResourceSpec - forProvider: #BucketCorsConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketCorsConfigurationInitParameters @go(InitProvider) -} - -// BucketCorsConfigurationStatus defines the observed state of BucketCorsConfiguration. -#BucketCorsConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #BucketCorsConfigurationObservation @go(AtProvider) -} - -// BucketCorsConfiguration is the Schema for the BucketCorsConfigurations API. Provides an S3 bucket CORS configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketCorsConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.corsRule) || (has(self.initProvider) && has(self.initProvider.corsRule))",message="spec.forProvider.corsRule is a required parameter" - spec: #BucketCorsConfigurationSpec @go(Spec) - status?: #BucketCorsConfigurationStatus @go(Status) -} - -// BucketCorsConfigurationList contains a list of BucketCorsConfigurations -#BucketCorsConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketCorsConfiguration] @go(Items,[]BucketCorsConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketintelligenttieringconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketintelligenttieringconfiguration_types_go_gen.cue deleted file mode 100644 index 557ed80..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketintelligenttieringconfiguration_types_go_gen.cue +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketIntelligentTieringConfigurationFilterInitParameters: { - // Object key name prefix that identifies the subset of objects to which the configuration applies. - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BucketIntelligentTieringConfigurationFilterObservation: { - // Object key name prefix that identifies the subset of objects to which the configuration applies. - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BucketIntelligentTieringConfigurationFilterParameters: { - // Object key name prefix that identifies the subset of objects to which the configuration applies. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BucketIntelligentTieringConfigurationInitParameters: { - // Bucket filter. The configuration only includes objects that meet the filter's criteria (documented below). - filter?: [...#BucketIntelligentTieringConfigurationFilterInitParameters] @go(Filter,[]BucketIntelligentTieringConfigurationFilterInitParameters) - - // Unique name used to identify the S3 Intelligent-Tiering configuration for the bucket. - name?: null | string @go(Name,*string) - - // Specifies the status of the configuration. Valid values: Enabled, Disabled. - status?: null | string @go(Status,*string) - - // S3 Intelligent-Tiering storage class tiers of the configuration (documented below). - tiering?: [...#TieringInitParameters] @go(Tiering,[]TieringInitParameters) -} - -#BucketIntelligentTieringConfigurationObservation: { - // Name of the bucket this intelligent tiering configuration is associated with. - bucket?: null | string @go(Bucket,*string) - - // Bucket filter. The configuration only includes objects that meet the filter's criteria (documented below). - filter?: [...#BucketIntelligentTieringConfigurationFilterObservation] @go(Filter,[]BucketIntelligentTieringConfigurationFilterObservation) - id?: null | string @go(ID,*string) - - // Unique name used to identify the S3 Intelligent-Tiering configuration for the bucket. - name?: null | string @go(Name,*string) - - // Specifies the status of the configuration. Valid values: Enabled, Disabled. - status?: null | string @go(Status,*string) - - // S3 Intelligent-Tiering storage class tiers of the configuration (documented below). - tiering?: [...#TieringObservation] @go(Tiering,[]TieringObservation) -} - -#BucketIntelligentTieringConfigurationParameters: { - // Name of the bucket this intelligent tiering configuration is associated with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Bucket filter. The configuration only includes objects that meet the filter's criteria (documented below). - // +kubebuilder:validation:Optional - filter?: [...#BucketIntelligentTieringConfigurationFilterParameters] @go(Filter,[]BucketIntelligentTieringConfigurationFilterParameters) - - // Unique name used to identify the S3 Intelligent-Tiering configuration for the bucket. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the status of the configuration. Valid values: Enabled, Disabled. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // S3 Intelligent-Tiering storage class tiers of the configuration (documented below). - // +kubebuilder:validation:Optional - tiering?: [...#TieringParameters] @go(Tiering,[]TieringParameters) -} - -#TieringInitParameters: { - // S3 Intelligent-Tiering access tier. Valid values: ARCHIVE_ACCESS, DEEP_ARCHIVE_ACCESS. - accessTier?: null | string @go(AccessTier,*string) - - // Number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. - days?: null | float64 @go(Days,*float64) -} - -#TieringObservation: { - // S3 Intelligent-Tiering access tier. Valid values: ARCHIVE_ACCESS, DEEP_ARCHIVE_ACCESS. - accessTier?: null | string @go(AccessTier,*string) - - // Number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. - days?: null | float64 @go(Days,*float64) -} - -#TieringParameters: { - // S3 Intelligent-Tiering access tier. Valid values: ARCHIVE_ACCESS, DEEP_ARCHIVE_ACCESS. - // +kubebuilder:validation:Optional - accessTier?: null | string @go(AccessTier,*string) - - // Number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. - // +kubebuilder:validation:Optional - days?: null | float64 @go(Days,*float64) -} - -// BucketIntelligentTieringConfigurationSpec defines the desired state of BucketIntelligentTieringConfiguration -#BucketIntelligentTieringConfigurationSpec: { - v1.#ResourceSpec - forProvider: #BucketIntelligentTieringConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketIntelligentTieringConfigurationInitParameters @go(InitProvider) -} - -// BucketIntelligentTieringConfigurationStatus defines the observed state of BucketIntelligentTieringConfiguration. -#BucketIntelligentTieringConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #BucketIntelligentTieringConfigurationObservation @go(AtProvider) -} - -// BucketIntelligentTieringConfiguration is the Schema for the BucketIntelligentTieringConfigurations API. Provides an S3 Intelligent-Tiering configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketIntelligentTieringConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.tiering) || (has(self.initProvider) && has(self.initProvider.tiering))",message="spec.forProvider.tiering is a required parameter" - spec: #BucketIntelligentTieringConfigurationSpec @go(Spec) - status?: #BucketIntelligentTieringConfigurationStatus @go(Status) -} - -// BucketIntelligentTieringConfigurationList contains a list of BucketIntelligentTieringConfigurations -#BucketIntelligentTieringConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketIntelligentTieringConfiguration] @go(Items,[]BucketIntelligentTieringConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketinventory_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketinventory_types_go_gen.cue deleted file mode 100644 index ebf9358..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketinventory_types_go_gen.cue +++ /dev/null @@ -1,321 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketInventoryDestinationInitParameters: { - // Name of the source bucket that inventory lists the objects for. - bucket?: [...#DestinationBucketInitParameters] @go(Bucket,[]DestinationBucketInitParameters) -} - -#BucketInventoryDestinationObservation: { - // Name of the source bucket that inventory lists the objects for. - bucket?: [...#DestinationBucketObservation] @go(Bucket,[]DestinationBucketObservation) -} - -#BucketInventoryDestinationParameters: { - // Name of the source bucket that inventory lists the objects for. - // +kubebuilder:validation:Optional - bucket: [...#DestinationBucketParameters] @go(Bucket,[]DestinationBucketParameters) -} - -#BucketInventoryFilterInitParameters: { - // Prefix that an object must have to be included in the inventory results. - prefix?: null | string @go(Prefix,*string) -} - -#BucketInventoryFilterObservation: { - // Prefix that an object must have to be included in the inventory results. - prefix?: null | string @go(Prefix,*string) -} - -#BucketInventoryFilterParameters: { - // Prefix that an object must have to be included in the inventory results. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) -} - -#BucketInventoryInitParameters: { - // Contains information about where to publish the inventory results (documented below). - destination?: [...#BucketInventoryDestinationInitParameters] @go(Destination,[]BucketInventoryDestinationInitParameters) - - // Specifies whether the inventory is enabled or disabled. - enabled?: null | bool @go(Enabled,*bool) - - // Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria (documented below). - filter?: [...#BucketInventoryFilterInitParameters] @go(Filter,[]BucketInventoryFilterInitParameters) - - // Object versions to include in the inventory list. Valid values: All, Current. - includedObjectVersions?: null | string @go(IncludedObjectVersions,*string) - - // Unique identifier of the inventory configuration for the bucket. - name?: null | string @go(Name,*string) - - // List of optional fields that are included in the inventory results. Please refer to the S3 documentation for more details. - optionalFields?: [...null | string] @go(OptionalFields,[]*string) - - // Specifies the schedule for generating inventory results (documented below). - schedule?: [...#ScheduleInitParameters] @go(Schedule,[]ScheduleInitParameters) -} - -#BucketInventoryObservation: { - // Name of the source bucket that inventory lists the objects for. - bucket?: null | string @go(Bucket,*string) - - // Contains information about where to publish the inventory results (documented below). - destination?: [...#BucketInventoryDestinationObservation] @go(Destination,[]BucketInventoryDestinationObservation) - - // Specifies whether the inventory is enabled or disabled. - enabled?: null | bool @go(Enabled,*bool) - - // Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria (documented below). - filter?: [...#BucketInventoryFilterObservation] @go(Filter,[]BucketInventoryFilterObservation) - id?: null | string @go(ID,*string) - - // Object versions to include in the inventory list. Valid values: All, Current. - includedObjectVersions?: null | string @go(IncludedObjectVersions,*string) - - // Unique identifier of the inventory configuration for the bucket. - name?: null | string @go(Name,*string) - - // List of optional fields that are included in the inventory results. Please refer to the S3 documentation for more details. - optionalFields?: [...null | string] @go(OptionalFields,[]*string) - - // Specifies the schedule for generating inventory results (documented below). - schedule?: [...#ScheduleObservation] @go(Schedule,[]ScheduleObservation) -} - -#BucketInventoryParameters: { - // Name of the source bucket that inventory lists the objects for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Contains information about where to publish the inventory results (documented below). - // +kubebuilder:validation:Optional - destination?: [...#BucketInventoryDestinationParameters] @go(Destination,[]BucketInventoryDestinationParameters) - - // Specifies whether the inventory is enabled or disabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria (documented below). - // +kubebuilder:validation:Optional - filter?: [...#BucketInventoryFilterParameters] @go(Filter,[]BucketInventoryFilterParameters) - - // Object versions to include in the inventory list. Valid values: All, Current. - // +kubebuilder:validation:Optional - includedObjectVersions?: null | string @go(IncludedObjectVersions,*string) - - // Unique identifier of the inventory configuration for the bucket. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // List of optional fields that are included in the inventory results. Please refer to the S3 documentation for more details. - // +kubebuilder:validation:Optional - optionalFields?: [...null | string] @go(OptionalFields,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the schedule for generating inventory results (documented below). - // +kubebuilder:validation:Optional - schedule?: [...#ScheduleParameters] @go(Schedule,[]ScheduleParameters) -} - -#DestinationBucketInitParameters: { - // ID of the account that owns the destination bucket. Recommended to be set to prevent problems if the destination bucket ownership changes. - accountId?: null | string @go(AccountID,*string) - - // Contains the type of server-side encryption to use to encrypt the inventory (documented below). - encryption?: [...#EncryptionInitParameters] @go(Encryption,[]EncryptionInitParameters) - - // Specifies the output format of the inventory results. Can be CSV, ORC or Parquet. - format?: null | string @go(Format,*string) - - // Prefix that an object must have to be included in the inventory results. - prefix?: null | string @go(Prefix,*string) -} - -#DestinationBucketObservation: { - // ID of the account that owns the destination bucket. Recommended to be set to prevent problems if the destination bucket ownership changes. - accountId?: null | string @go(AccountID,*string) - - // Amazon S3 bucket ARN of the destination. - bucketArn?: null | string @go(BucketArn,*string) - - // Contains the type of server-side encryption to use to encrypt the inventory (documented below). - encryption?: [...#EncryptionObservation] @go(Encryption,[]EncryptionObservation) - - // Specifies the output format of the inventory results. Can be CSV, ORC or Parquet. - format?: null | string @go(Format,*string) - - // Prefix that an object must have to be included in the inventory results. - prefix?: null | string @go(Prefix,*string) -} - -#DestinationBucketParameters: { - // ID of the account that owns the destination bucket. Recommended to be set to prevent problems if the destination bucket ownership changes. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // Amazon S3 bucket ARN of the destination. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - bucketArn?: null | string @go(BucketArn,*string) - - // Reference to a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnRef?: null | v1.#Reference @go(BucketArnRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucketArn. - // +kubebuilder:validation:Optional - bucketArnSelector?: null | v1.#Selector @go(BucketArnSelector,*v1.Selector) - - // Contains the type of server-side encryption to use to encrypt the inventory (documented below). - // +kubebuilder:validation:Optional - encryption?: [...#EncryptionParameters] @go(Encryption,[]EncryptionParameters) - - // Specifies the output format of the inventory results. Can be CSV, ORC or Parquet. - // +kubebuilder:validation:Optional - format?: null | string @go(Format,*string) - - // Prefix that an object must have to be included in the inventory results. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) -} - -#EncryptionInitParameters: { - // Specifies to use server-side encryption with AWS KMS-managed keys to encrypt the inventory file (documented below). - sseKms?: [...#SseKMSInitParameters] @go(SseKMS,[]SseKMSInitParameters) - - // Specifies to use server-side encryption with Amazon S3-managed keys (SSE-S3) to encrypt the inventory file. - sseS3?: [...#SseS3InitParameters] @go(SseS3,[]SseS3InitParameters) -} - -#EncryptionObservation: { - // Specifies to use server-side encryption with AWS KMS-managed keys to encrypt the inventory file (documented below). - sseKms?: [...#SseKMSObservation] @go(SseKMS,[]SseKMSObservation) - - // Specifies to use server-side encryption with Amazon S3-managed keys (SSE-S3) to encrypt the inventory file. - sseS3?: [...#SseS3Parameters] @go(SseS3,[]SseS3Parameters) -} - -#EncryptionParameters: { - // Specifies to use server-side encryption with AWS KMS-managed keys to encrypt the inventory file (documented below). - // +kubebuilder:validation:Optional - sseKms?: [...#SseKMSParameters] @go(SseKMS,[]SseKMSParameters) - - // Specifies to use server-side encryption with Amazon S3-managed keys (SSE-S3) to encrypt the inventory file. - // +kubebuilder:validation:Optional - sseS3?: [...#SseS3Parameters] @go(SseS3,[]SseS3Parameters) -} - -#ScheduleInitParameters: { - // Specifies how frequently inventory results are produced. Valid values: Daily, Weekly. - frequency?: null | string @go(Frequency,*string) -} - -#ScheduleObservation: { - // Specifies how frequently inventory results are produced. Valid values: Daily, Weekly. - frequency?: null | string @go(Frequency,*string) -} - -#ScheduleParameters: { - // Specifies how frequently inventory results are produced. Valid values: Daily, Weekly. - // +kubebuilder:validation:Optional - frequency?: null | string @go(Frequency,*string) -} - -#SseKMSInitParameters: { - // ARN of the KMS customer master key (CMK) used to encrypt the inventory file. - keyId?: null | string @go(KeyID,*string) -} - -#SseKMSObservation: { - // ARN of the KMS customer master key (CMK) used to encrypt the inventory file. - keyId?: null | string @go(KeyID,*string) -} - -#SseKMSParameters: { - // ARN of the KMS customer master key (CMK) used to encrypt the inventory file. - // +kubebuilder:validation:Optional - keyId?: null | string @go(KeyID,*string) -} - -#SseS3InitParameters: { -} - -#SseS3Observation: { -} - -#SseS3Parameters: { -} - -// BucketInventorySpec defines the desired state of BucketInventory -#BucketInventorySpec: { - v1.#ResourceSpec - forProvider: #BucketInventoryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketInventoryInitParameters @go(InitProvider) -} - -// BucketInventoryStatus defines the observed state of BucketInventory. -#BucketInventoryStatus: { - v1.#ResourceStatus - atProvider?: #BucketInventoryObservation @go(AtProvider) -} - -// BucketInventory is the Schema for the BucketInventorys API. Provides a S3 bucket inventory configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketInventory: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destination) || (has(self.initProvider) && has(self.initProvider.destination))",message="spec.forProvider.destination is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.includedObjectVersions) || (has(self.initProvider) && has(self.initProvider.includedObjectVersions))",message="spec.forProvider.includedObjectVersions is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.schedule) || (has(self.initProvider) && has(self.initProvider.schedule))",message="spec.forProvider.schedule is a required parameter" - spec: #BucketInventorySpec @go(Spec) - status?: #BucketInventoryStatus @go(Status) -} - -// BucketInventoryList contains a list of BucketInventorys -#BucketInventoryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketInventory] @go(Items,[]BucketInventory) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketlifecycleconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketlifecycleconfiguration_types_go_gen.cue deleted file mode 100644 index 3dfe8bc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketlifecycleconfiguration_types_go_gen.cue +++ /dev/null @@ -1,482 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AbortIncompleteMultipartUploadInitParameters: { - // Number of days after which Amazon S3 aborts an incomplete multipart upload. - daysAfterInitiation?: null | float64 @go(DaysAfterInitiation,*float64) -} - -#AbortIncompleteMultipartUploadObservation: { - // Number of days after which Amazon S3 aborts an incomplete multipart upload. - daysAfterInitiation?: null | float64 @go(DaysAfterInitiation,*float64) -} - -#AbortIncompleteMultipartUploadParameters: { - // Number of days after which Amazon S3 aborts an incomplete multipart upload. - // +kubebuilder:validation:Optional - daysAfterInitiation?: null | float64 @go(DaysAfterInitiation,*float64) -} - -#AndInitParameters: { - // Minimum object size (in bytes) to which the rule applies. - objectSizeGreaterThan?: null | float64 @go(ObjectSizeGreaterThan,*float64) - - // Maximum object size (in bytes) to which the rule applies. - objectSizeLessThan?: null | float64 @go(ObjectSizeLessThan,*float64) - - // DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified. - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AndObservation: { - // Minimum object size (in bytes) to which the rule applies. - objectSizeGreaterThan?: null | float64 @go(ObjectSizeGreaterThan,*float64) - - // Maximum object size (in bytes) to which the rule applies. - objectSizeLessThan?: null | float64 @go(ObjectSizeLessThan,*float64) - - // DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified. - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AndParameters: { - // Minimum object size (in bytes) to which the rule applies. - // +kubebuilder:validation:Optional - objectSizeGreaterThan?: null | float64 @go(ObjectSizeGreaterThan,*float64) - - // Maximum object size (in bytes) to which the rule applies. - // +kubebuilder:validation:Optional - objectSizeLessThan?: null | float64 @go(ObjectSizeLessThan,*float64) - - // DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BucketLifecycleConfigurationInitParameters: { - // Account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // List of configuration blocks describing the rules managing the replication. See below. - rule?: [...#BucketLifecycleConfigurationRuleInitParameters] @go(Rule,[]BucketLifecycleConfigurationRuleInitParameters) -} - -#BucketLifecycleConfigurationObservation: { - // Name of the source S3 bucket you want Amazon S3 to monitor. - bucket?: null | string @go(Bucket,*string) - - // Account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // and status) - id?: null | string @go(ID,*string) - - // List of configuration blocks describing the rules managing the replication. See below. - rule?: [...#BucketLifecycleConfigurationRuleObservation] @go(Rule,[]BucketLifecycleConfigurationRuleObservation) -} - -#BucketLifecycleConfigurationParameters: { - // Name of the source S3 bucket you want Amazon S3 to monitor. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // List of configuration blocks describing the rules managing the replication. See below. - // +kubebuilder:validation:Optional - rule?: [...#BucketLifecycleConfigurationRuleParameters] @go(Rule,[]BucketLifecycleConfigurationRuleParameters) -} - -#BucketLifecycleConfigurationRuleInitParameters: { - // Configuration block that specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload. See below. - abortIncompleteMultipartUpload?: [...#AbortIncompleteMultipartUploadInitParameters] @go(AbortIncompleteMultipartUpload,[]AbortIncompleteMultipartUploadInitParameters) - - // Configuration block that specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker. See below. - expiration?: [...#RuleExpirationInitParameters] @go(Expiration,[]RuleExpirationInitParameters) - - // Configuration block used to identify objects that a Lifecycle Rule applies to. See below. If not specified, the rule will default to using prefix. - filter?: [...#RuleFilterInitParameters] @go(Filter,[]RuleFilterInitParameters) - - // Unique identifier for the rule. The value cannot be longer than 255 characters. - id?: null | string @go(ID,*string) - - // Configuration block that specifies when noncurrent object versions expire. See below. - noncurrentVersionExpiration?: [...#RuleNoncurrentVersionExpirationInitParameters] @go(NoncurrentVersionExpiration,[]RuleNoncurrentVersionExpirationInitParameters) - - // Set of configuration blocks that specify the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. See below. - noncurrentVersionTransition?: [...#RuleNoncurrentVersionTransitionInitParameters] @go(NoncurrentVersionTransition,[]RuleNoncurrentVersionTransitionInitParameters) - - // DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified. - prefix?: null | string @go(Prefix,*string) - - // Whether the rule is currently being applied. Valid values: Enabled or Disabled. - status?: null | string @go(Status,*string) - - // Set of configuration blocks that specify when an Amazon S3 object transitions to a specified storage class. See below. - transition?: [...#RuleTransitionInitParameters] @go(Transition,[]RuleTransitionInitParameters) -} - -#BucketLifecycleConfigurationRuleObservation: { - // Configuration block that specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload. See below. - abortIncompleteMultipartUpload?: [...#AbortIncompleteMultipartUploadObservation] @go(AbortIncompleteMultipartUpload,[]AbortIncompleteMultipartUploadObservation) - - // Configuration block that specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker. See below. - expiration?: [...#RuleExpirationObservation] @go(Expiration,[]RuleExpirationObservation) - - // Configuration block used to identify objects that a Lifecycle Rule applies to. See below. If not specified, the rule will default to using prefix. - filter?: [...#RuleFilterObservation] @go(Filter,[]RuleFilterObservation) - - // Unique identifier for the rule. The value cannot be longer than 255 characters. - id?: null | string @go(ID,*string) - - // Configuration block that specifies when noncurrent object versions expire. See below. - noncurrentVersionExpiration?: [...#RuleNoncurrentVersionExpirationObservation] @go(NoncurrentVersionExpiration,[]RuleNoncurrentVersionExpirationObservation) - - // Set of configuration blocks that specify the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. See below. - noncurrentVersionTransition?: [...#RuleNoncurrentVersionTransitionObservation] @go(NoncurrentVersionTransition,[]RuleNoncurrentVersionTransitionObservation) - - // DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified. - prefix?: null | string @go(Prefix,*string) - - // Whether the rule is currently being applied. Valid values: Enabled or Disabled. - status?: null | string @go(Status,*string) - - // Set of configuration blocks that specify when an Amazon S3 object transitions to a specified storage class. See below. - transition?: [...#RuleTransitionObservation] @go(Transition,[]RuleTransitionObservation) -} - -#BucketLifecycleConfigurationRuleParameters: { - // Configuration block that specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload. See below. - // +kubebuilder:validation:Optional - abortIncompleteMultipartUpload?: [...#AbortIncompleteMultipartUploadParameters] @go(AbortIncompleteMultipartUpload,[]AbortIncompleteMultipartUploadParameters) - - // Configuration block that specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker. See below. - // +kubebuilder:validation:Optional - expiration?: [...#RuleExpirationParameters] @go(Expiration,[]RuleExpirationParameters) - - // Configuration block used to identify objects that a Lifecycle Rule applies to. See below. If not specified, the rule will default to using prefix. - // +kubebuilder:validation:Optional - filter?: [...#RuleFilterParameters] @go(Filter,[]RuleFilterParameters) - - // Unique identifier for the rule. The value cannot be longer than 255 characters. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Configuration block that specifies when noncurrent object versions expire. See below. - // +kubebuilder:validation:Optional - noncurrentVersionExpiration?: [...#RuleNoncurrentVersionExpirationParameters] @go(NoncurrentVersionExpiration,[]RuleNoncurrentVersionExpirationParameters) - - // Set of configuration blocks that specify the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. See below. - // +kubebuilder:validation:Optional - noncurrentVersionTransition?: [...#RuleNoncurrentVersionTransitionParameters] @go(NoncurrentVersionTransition,[]RuleNoncurrentVersionTransitionParameters) - - // DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Whether the rule is currently being applied. Valid values: Enabled or Disabled. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // Set of configuration blocks that specify when an Amazon S3 object transitions to a specified storage class. See below. - // +kubebuilder:validation:Optional - transition?: [...#RuleTransitionParameters] @go(Transition,[]RuleTransitionParameters) -} - -#RuleExpirationInitParameters: { - // Date objects are transitioned to the specified storage class. The date value must be in RFC3339 format and set to midnight UTC e.g. 2023-01-13T00:00:00Z. - date?: null | string @go(Date,*string) - - // Number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both days and date are not specified, defaults to 0. Valid values depend on storage_class, see Transition objects using Amazon S3 Lifecycle for more details. - days?: null | float64 @go(Days,*float64) - - // Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. - expiredObjectDeleteMarker?: null | bool @go(ExpiredObjectDeleteMarker,*bool) -} - -#RuleExpirationObservation: { - // Date objects are transitioned to the specified storage class. The date value must be in RFC3339 format and set to midnight UTC e.g. 2023-01-13T00:00:00Z. - date?: null | string @go(Date,*string) - - // Number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both days and date are not specified, defaults to 0. Valid values depend on storage_class, see Transition objects using Amazon S3 Lifecycle for more details. - days?: null | float64 @go(Days,*float64) - - // Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. - expiredObjectDeleteMarker?: null | bool @go(ExpiredObjectDeleteMarker,*bool) -} - -#RuleExpirationParameters: { - // Date objects are transitioned to the specified storage class. The date value must be in RFC3339 format and set to midnight UTC e.g. 2023-01-13T00:00:00Z. - // +kubebuilder:validation:Optional - date?: null | string @go(Date,*string) - - // Number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both days and date are not specified, defaults to 0. Valid values depend on storage_class, see Transition objects using Amazon S3 Lifecycle for more details. - // +kubebuilder:validation:Optional - days?: null | float64 @go(Days,*float64) - - // Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. - // +kubebuilder:validation:Optional - expiredObjectDeleteMarker?: null | bool @go(ExpiredObjectDeleteMarker,*bool) -} - -#RuleFilterInitParameters: { - // Configuration block used to apply a logical AND to two or more predicates. See below. The Lifecycle Rule will apply to any object matching all the predicates configured inside the and block. - and?: [...#AndInitParameters] @go(And,[]AndInitParameters) - - // Minimum object size (in bytes) to which the rule applies. - objectSizeGreaterThan?: null | string @go(ObjectSizeGreaterThan,*string) - - // Maximum object size (in bytes) to which the rule applies. - objectSizeLessThan?: null | string @go(ObjectSizeLessThan,*string) - - // DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified. - prefix?: null | string @go(Prefix,*string) - - // Configuration block for specifying a tag key and value. See below. - tag?: [...#TagInitParameters] @go(Tag,[]TagInitParameters) -} - -#RuleFilterObservation: { - // Configuration block used to apply a logical AND to two or more predicates. See below. The Lifecycle Rule will apply to any object matching all the predicates configured inside the and block. - and?: [...#AndObservation] @go(And,[]AndObservation) - - // Minimum object size (in bytes) to which the rule applies. - objectSizeGreaterThan?: null | string @go(ObjectSizeGreaterThan,*string) - - // Maximum object size (in bytes) to which the rule applies. - objectSizeLessThan?: null | string @go(ObjectSizeLessThan,*string) - - // DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified. - prefix?: null | string @go(Prefix,*string) - - // Configuration block for specifying a tag key and value. See below. - tag?: [...#TagObservation] @go(Tag,[]TagObservation) -} - -#RuleFilterParameters: { - // Configuration block used to apply a logical AND to two or more predicates. See below. The Lifecycle Rule will apply to any object matching all the predicates configured inside the and block. - // +kubebuilder:validation:Optional - and?: [...#AndParameters] @go(And,[]AndParameters) - - // Minimum object size (in bytes) to which the rule applies. - // +kubebuilder:validation:Optional - objectSizeGreaterThan?: null | string @go(ObjectSizeGreaterThan,*string) - - // Maximum object size (in bytes) to which the rule applies. - // +kubebuilder:validation:Optional - objectSizeLessThan?: null | string @go(ObjectSizeLessThan,*string) - - // DEPRECATED Use filter instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string ("") if filter is not specified. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Configuration block for specifying a tag key and value. See below. - // +kubebuilder:validation:Optional - tag?: [...#TagParameters] @go(Tag,[]TagParameters) -} - -#RuleNoncurrentVersionExpirationInitParameters: { - // Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer. - newerNoncurrentVersions?: null | string @go(NewerNoncurrentVersions,*string) - - // Number of days an object is noncurrent before Amazon S3 can perform the associated action. - noncurrentDays?: null | float64 @go(NoncurrentDays,*float64) -} - -#RuleNoncurrentVersionExpirationObservation: { - // Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer. - newerNoncurrentVersions?: null | string @go(NewerNoncurrentVersions,*string) - - // Number of days an object is noncurrent before Amazon S3 can perform the associated action. - noncurrentDays?: null | float64 @go(NoncurrentDays,*float64) -} - -#RuleNoncurrentVersionExpirationParameters: { - // Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer. - // +kubebuilder:validation:Optional - newerNoncurrentVersions?: null | string @go(NewerNoncurrentVersions,*string) - - // Number of days an object is noncurrent before Amazon S3 can perform the associated action. - // +kubebuilder:validation:Optional - noncurrentDays?: null | float64 @go(NoncurrentDays,*float64) -} - -#RuleNoncurrentVersionTransitionInitParameters: { - // Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer. - newerNoncurrentVersions?: null | string @go(NewerNoncurrentVersions,*string) - - // Number of days an object is noncurrent before Amazon S3 can perform the associated action. - noncurrentDays?: null | float64 @go(NoncurrentDays,*float64) - - // Class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR. - storageClass?: null | string @go(StorageClass,*string) -} - -#RuleNoncurrentVersionTransitionObservation: { - // Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer. - newerNoncurrentVersions?: null | string @go(NewerNoncurrentVersions,*string) - - // Number of days an object is noncurrent before Amazon S3 can perform the associated action. - noncurrentDays?: null | float64 @go(NoncurrentDays,*float64) - - // Class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR. - storageClass?: null | string @go(StorageClass,*string) -} - -#RuleNoncurrentVersionTransitionParameters: { - // Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer. - // +kubebuilder:validation:Optional - newerNoncurrentVersions?: null | string @go(NewerNoncurrentVersions,*string) - - // Number of days an object is noncurrent before Amazon S3 can perform the associated action. - // +kubebuilder:validation:Optional - noncurrentDays?: null | float64 @go(NoncurrentDays,*float64) - - // Class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR. - // +kubebuilder:validation:Optional - storageClass?: null | string @go(StorageClass,*string) -} - -#RuleTransitionInitParameters: { - // Date objects are transitioned to the specified storage class. The date value must be in RFC3339 format and set to midnight UTC e.g. 2023-01-13T00:00:00Z. - date?: null | string @go(Date,*string) - - // Number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both days and date are not specified, defaults to 0. Valid values depend on storage_class, see Transition objects using Amazon S3 Lifecycle for more details. - days?: null | float64 @go(Days,*float64) - - // Class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR. - storageClass?: null | string @go(StorageClass,*string) -} - -#RuleTransitionObservation: { - // Date objects are transitioned to the specified storage class. The date value must be in RFC3339 format and set to midnight UTC e.g. 2023-01-13T00:00:00Z. - date?: null | string @go(Date,*string) - - // Number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both days and date are not specified, defaults to 0. Valid values depend on storage_class, see Transition objects using Amazon S3 Lifecycle for more details. - days?: null | float64 @go(Days,*float64) - - // Class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR. - storageClass?: null | string @go(StorageClass,*string) -} - -#RuleTransitionParameters: { - // Date objects are transitioned to the specified storage class. The date value must be in RFC3339 format and set to midnight UTC e.g. 2023-01-13T00:00:00Z. - // +kubebuilder:validation:Optional - date?: null | string @go(Date,*string) - - // Number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both days and date are not specified, defaults to 0. Valid values depend on storage_class, see Transition objects using Amazon S3 Lifecycle for more details. - // +kubebuilder:validation:Optional - days?: null | float64 @go(Days,*float64) - - // Class of storage used to store the object. Valid Values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR. - // +kubebuilder:validation:Optional - storageClass?: null | string @go(StorageClass,*string) -} - -#TagInitParameters: { - // Name of the object key. - key?: null | string @go(Key,*string) - - // Value of the tag. - value?: null | string @go(Value,*string) -} - -#TagObservation: { - // Name of the object key. - key?: null | string @go(Key,*string) - - // Value of the tag. - value?: null | string @go(Value,*string) -} - -#TagParameters: { - // Name of the object key. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Value of the tag. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// BucketLifecycleConfigurationSpec defines the desired state of BucketLifecycleConfiguration -#BucketLifecycleConfigurationSpec: { - v1.#ResourceSpec - forProvider: #BucketLifecycleConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketLifecycleConfigurationInitParameters @go(InitProvider) -} - -// BucketLifecycleConfigurationStatus defines the observed state of BucketLifecycleConfiguration. -#BucketLifecycleConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #BucketLifecycleConfigurationObservation @go(AtProvider) -} - -// BucketLifecycleConfiguration is the Schema for the BucketLifecycleConfigurations API. Provides a S3 bucket lifecycle configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketLifecycleConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rule) || (has(self.initProvider) && has(self.initProvider.rule))",message="spec.forProvider.rule is a required parameter" - spec: #BucketLifecycleConfigurationSpec @go(Spec) - status?: #BucketLifecycleConfigurationStatus @go(Status) -} - -// BucketLifecycleConfigurationList contains a list of BucketLifecycleConfigurations -#BucketLifecycleConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketLifecycleConfiguration] @go(Items,[]BucketLifecycleConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketlogging_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketlogging_types_go_gen.cue deleted file mode 100644 index bffd77f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketlogging_types_go_gen.cue +++ /dev/null @@ -1,209 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketLoggingInitParameters: { - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Set of configuration blocks with information for granting permissions. See below. - targetGrant?: [...#TargetGrantInitParameters] @go(TargetGrant,[]TargetGrantInitParameters) - - // Prefix for all log object keys. - targetPrefix?: null | string @go(TargetPrefix,*string) -} - -#BucketLoggingObservation: { - // Name of the bucket. - bucket?: null | string @go(Bucket,*string) - - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // The bucket or bucket and expected_bucket_owner separated by a comma (,) if the latter is provided. - id?: null | string @go(ID,*string) - - // Name of the bucket where you want Amazon S3 to store server access logs. - targetBucket?: null | string @go(TargetBucket,*string) - - // Set of configuration blocks with information for granting permissions. See below. - targetGrant?: [...#TargetGrantObservation] @go(TargetGrant,[]TargetGrantObservation) - - // Prefix for all log object keys. - targetPrefix?: null | string @go(TargetPrefix,*string) -} - -#BucketLoggingParameters: { - // Name of the bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Account ID of the expected bucket owner. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Name of the bucket where you want Amazon S3 to store server access logs. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - targetBucket?: null | string @go(TargetBucket,*string) - - // Reference to a Bucket in s3 to populate targetBucket. - // +kubebuilder:validation:Optional - targetBucketRef?: null | v1.#Reference @go(TargetBucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate targetBucket. - // +kubebuilder:validation:Optional - targetBucketSelector?: null | v1.#Selector @go(TargetBucketSelector,*v1.Selector) - - // Set of configuration blocks with information for granting permissions. See below. - // +kubebuilder:validation:Optional - targetGrant?: [...#TargetGrantParameters] @go(TargetGrant,[]TargetGrantParameters) - - // Prefix for all log object keys. - // +kubebuilder:validation:Optional - targetPrefix?: null | string @go(TargetPrefix,*string) -} - -#TargetGrantGranteeInitParameters: { - // Email address of the grantee. See Regions and Endpoints for supported AWS regions where this argument can be specified. - emailAddress?: null | string @go(EmailAddress,*string) - - // Canonical user ID of the grantee. - id?: null | string @go(ID,*string) - - // Type of grantee. Valid values: CanonicalUser, AmazonCustomerByEmail, Group. - type?: null | string @go(Type,*string) - - // URI of the grantee group. - uri?: null | string @go(URI,*string) -} - -#TargetGrantGranteeObservation: { - displayName?: null | string @go(DisplayName,*string) - - // Email address of the grantee. See Regions and Endpoints for supported AWS regions where this argument can be specified. - emailAddress?: null | string @go(EmailAddress,*string) - - // Canonical user ID of the grantee. - id?: null | string @go(ID,*string) - - // Type of grantee. Valid values: CanonicalUser, AmazonCustomerByEmail, Group. - type?: null | string @go(Type,*string) - - // URI of the grantee group. - uri?: null | string @go(URI,*string) -} - -#TargetGrantGranteeParameters: { - // Email address of the grantee. See Regions and Endpoints for supported AWS regions where this argument can be specified. - // +kubebuilder:validation:Optional - emailAddress?: null | string @go(EmailAddress,*string) - - // Canonical user ID of the grantee. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Type of grantee. Valid values: CanonicalUser, AmazonCustomerByEmail, Group. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // URI of the grantee group. - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) -} - -#TargetGrantInitParameters: { - // Configuration block for the person being granted permissions. See below. - grantee?: [...#TargetGrantGranteeInitParameters] @go(Grantee,[]TargetGrantGranteeInitParameters) - - // Logging permissions assigned to the grantee for the bucket. Valid values: FULL_CONTROL, READ, WRITE. - permission?: null | string @go(Permission,*string) -} - -#TargetGrantObservation: { - // Configuration block for the person being granted permissions. See below. - grantee?: [...#TargetGrantGranteeObservation] @go(Grantee,[]TargetGrantGranteeObservation) - - // Logging permissions assigned to the grantee for the bucket. Valid values: FULL_CONTROL, READ, WRITE. - permission?: null | string @go(Permission,*string) -} - -#TargetGrantParameters: { - // Configuration block for the person being granted permissions. See below. - // +kubebuilder:validation:Optional - grantee: [...#TargetGrantGranteeParameters] @go(Grantee,[]TargetGrantGranteeParameters) - - // Logging permissions assigned to the grantee for the bucket. Valid values: FULL_CONTROL, READ, WRITE. - // +kubebuilder:validation:Optional - permission?: null | string @go(Permission,*string) -} - -// BucketLoggingSpec defines the desired state of BucketLogging -#BucketLoggingSpec: { - v1.#ResourceSpec - forProvider: #BucketLoggingParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketLoggingInitParameters @go(InitProvider) -} - -// BucketLoggingStatus defines the observed state of BucketLogging. -#BucketLoggingStatus: { - v1.#ResourceStatus - atProvider?: #BucketLoggingObservation @go(AtProvider) -} - -// BucketLogging is the Schema for the BucketLoggings API. Provides an S3 bucket (server access) logging resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketLogging: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targetPrefix) || (has(self.initProvider) && has(self.initProvider.targetPrefix))",message="spec.forProvider.targetPrefix is a required parameter" - spec: #BucketLoggingSpec @go(Spec) - status?: #BucketLoggingStatus @go(Status) -} - -// BucketLoggingList contains a list of BucketLoggings -#BucketLoggingList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketLogging] @go(Items,[]BucketLogging) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketmetric_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketmetric_types_go_gen.cue deleted file mode 100644 index 526eb8b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketmetric_types_go_gen.cue +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketMetricFilterInitParameters: { - // Object prefix for filtering (singular). - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BucketMetricFilterObservation: { - // Object prefix for filtering (singular). - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BucketMetricFilterParameters: { - // Object prefix for filtering (singular). - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#BucketMetricInitParameters: { - // Object filtering that accepts a prefix, tags, or a logical AND of prefix and tags (documented below). - filter?: [...#BucketMetricFilterInitParameters] @go(Filter,[]BucketMetricFilterInitParameters) - - // Unique identifier of the metrics configuration for the bucket. Must be less than or equal to 64 characters in length. - name?: null | string @go(Name,*string) -} - -#BucketMetricObservation: { - // Name of the bucket to put metric configuration. - bucket?: null | string @go(Bucket,*string) - - // Object filtering that accepts a prefix, tags, or a logical AND of prefix and tags (documented below). - filter?: [...#BucketMetricFilterObservation] @go(Filter,[]BucketMetricFilterObservation) - id?: null | string @go(ID,*string) - - // Unique identifier of the metrics configuration for the bucket. Must be less than or equal to 64 characters in length. - name?: null | string @go(Name,*string) -} - -#BucketMetricParameters: { - // Name of the bucket to put metric configuration. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Object filtering that accepts a prefix, tags, or a logical AND of prefix and tags (documented below). - // +kubebuilder:validation:Optional - filter?: [...#BucketMetricFilterParameters] @go(Filter,[]BucketMetricFilterParameters) - - // Unique identifier of the metrics configuration for the bucket. Must be less than or equal to 64 characters in length. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// BucketMetricSpec defines the desired state of BucketMetric -#BucketMetricSpec: { - v1.#ResourceSpec - forProvider: #BucketMetricParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketMetricInitParameters @go(InitProvider) -} - -// BucketMetricStatus defines the observed state of BucketMetric. -#BucketMetricStatus: { - v1.#ResourceStatus - atProvider?: #BucketMetricObservation @go(AtProvider) -} - -// BucketMetric is the Schema for the BucketMetrics API. Provides a S3 bucket metrics configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketMetric: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #BucketMetricSpec @go(Spec) - status?: #BucketMetricStatus @go(Status) -} - -// BucketMetricList contains a list of BucketMetrics -#BucketMetricList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketMetric] @go(Items,[]BucketMetric) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketnotification_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketnotification_types_go_gen.cue deleted file mode 100644 index 7d51c53..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketnotification_types_go_gen.cue +++ /dev/null @@ -1,308 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketNotificationInitParameters: { - // Whether to enable Amazon EventBridge notifications. - eventbridge?: null | bool @go(Eventbridge,*bool) - - // Used to configure notifications to a Lambda Function. See below. - lambdaFunction?: [...#LambdaFunctionInitParameters] @go(LambdaFunction,[]LambdaFunctionInitParameters) - - // Notification configuration to SQS Queue. See below. - queue?: [...#QueueInitParameters] @go(Queue,[]QueueInitParameters) - - // Notification configuration to SNS Topic. See below. - topic?: [...#TopicInitParameters] @go(Topic,[]TopicInitParameters) -} - -#BucketNotificationObservation: { - // Name of the bucket for notification configuration. - bucket?: null | string @go(Bucket,*string) - - // Whether to enable Amazon EventBridge notifications. - eventbridge?: null | bool @go(Eventbridge,*bool) - - // Unique identifier for each of the notification configurations. - id?: null | string @go(ID,*string) - - // Used to configure notifications to a Lambda Function. See below. - lambdaFunction?: [...#LambdaFunctionObservation] @go(LambdaFunction,[]LambdaFunctionObservation) - - // Notification configuration to SQS Queue. See below. - queue?: [...#QueueObservation] @go(Queue,[]QueueObservation) - - // Notification configuration to SNS Topic. See below. - topic?: [...#TopicObservation] @go(Topic,[]TopicObservation) -} - -#BucketNotificationParameters: { - // Name of the bucket for notification configuration. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Whether to enable Amazon EventBridge notifications. - // +kubebuilder:validation:Optional - eventbridge?: null | bool @go(Eventbridge,*bool) - - // Used to configure notifications to a Lambda Function. See below. - // +kubebuilder:validation:Optional - lambdaFunction?: [...#LambdaFunctionParameters] @go(LambdaFunction,[]LambdaFunctionParameters) - - // Notification configuration to SQS Queue. See below. - // +kubebuilder:validation:Optional - queue?: [...#QueueParameters] @go(Queue,[]QueueParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Notification configuration to SNS Topic. See below. - // +kubebuilder:validation:Optional - topic?: [...#TopicParameters] @go(Topic,[]TopicParameters) -} - -#LambdaFunctionInitParameters: { - // Event for which to send notifications. - events?: [...null | string] @go(Events,[]*string) - - // Object key name prefix. - filterPrefix?: null | string @go(FilterPrefix,*string) - - // Object key name suffix. - filterSuffix?: null | string @go(FilterSuffix,*string) - - // Unique identifier for each of the notification configurations. - id?: null | string @go(ID,*string) - - // Lambda function ARN. - lambdaFunctionArn?: null | string @go(LambdaFunctionArn,*string) -} - -#LambdaFunctionObservation: { - // Event for which to send notifications. - events?: [...null | string] @go(Events,[]*string) - - // Object key name prefix. - filterPrefix?: null | string @go(FilterPrefix,*string) - - // Object key name suffix. - filterSuffix?: null | string @go(FilterSuffix,*string) - - // Unique identifier for each of the notification configurations. - id?: null | string @go(ID,*string) - - // Lambda function ARN. - lambdaFunctionArn?: null | string @go(LambdaFunctionArn,*string) -} - -#LambdaFunctionParameters: { - // Event for which to send notifications. - // +kubebuilder:validation:Optional - events: [...null | string] @go(Events,[]*string) - - // Object key name prefix. - // +kubebuilder:validation:Optional - filterPrefix?: null | string @go(FilterPrefix,*string) - - // Object key name suffix. - // +kubebuilder:validation:Optional - filterSuffix?: null | string @go(FilterSuffix,*string) - - // Unique identifier for each of the notification configurations. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Lambda function ARN. - // +kubebuilder:validation:Optional - lambdaFunctionArn?: null | string @go(LambdaFunctionArn,*string) -} - -#QueueInitParameters: { - // Specifies event for which to send notifications. - events?: [...null | string] @go(Events,[]*string) - - // Object key name prefix. - filterPrefix?: null | string @go(FilterPrefix,*string) - - // Object key name suffix. - filterSuffix?: null | string @go(FilterSuffix,*string) - - // Unique identifier for each of the notification configurations. - id?: null | string @go(ID,*string) -} - -#QueueObservation: { - // Specifies event for which to send notifications. - events?: [...null | string] @go(Events,[]*string) - - // Object key name prefix. - filterPrefix?: null | string @go(FilterPrefix,*string) - - // Object key name suffix. - filterSuffix?: null | string @go(FilterSuffix,*string) - - // Unique identifier for each of the notification configurations. - id?: null | string @go(ID,*string) - - // SQS queue ARN. - queueArn?: null | string @go(QueueArn,*string) -} - -#QueueParameters: { - // Specifies event for which to send notifications. - // +kubebuilder:validation:Optional - events: [...null | string] @go(Events,[]*string) - - // Object key name prefix. - // +kubebuilder:validation:Optional - filterPrefix?: null | string @go(FilterPrefix,*string) - - // Object key name suffix. - // +kubebuilder:validation:Optional - filterSuffix?: null | string @go(FilterSuffix,*string) - - // Unique identifier for each of the notification configurations. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // SQS queue ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sqs/v1beta1.Queue - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - queueArn?: null | string @go(QueueArn,*string) - - // Reference to a Queue in sqs to populate queueArn. - // +kubebuilder:validation:Optional - queueArnRef?: null | v1.#Reference @go(QueueArnRef,*v1.Reference) - - // Selector for a Queue in sqs to populate queueArn. - // +kubebuilder:validation:Optional - queueArnSelector?: null | v1.#Selector @go(QueueArnSelector,*v1.Selector) -} - -#TopicInitParameters: { - // Event for which to send notifications. - events?: [...null | string] @go(Events,[]*string) - - // Object key name prefix. - filterPrefix?: null | string @go(FilterPrefix,*string) - - // Object key name suffix. - filterSuffix?: null | string @go(FilterSuffix,*string) - - // Unique identifier for each of the notification configurations. - id?: null | string @go(ID,*string) -} - -#TopicObservation: { - // Event for which to send notifications. - events?: [...null | string] @go(Events,[]*string) - - // Object key name prefix. - filterPrefix?: null | string @go(FilterPrefix,*string) - - // Object key name suffix. - filterSuffix?: null | string @go(FilterSuffix,*string) - - // Unique identifier for each of the notification configurations. - id?: null | string @go(ID,*string) - - // SNS topic ARN. - topicArn?: null | string @go(TopicArn,*string) -} - -#TopicParameters: { - // Event for which to send notifications. - // +kubebuilder:validation:Optional - events: [...null | string] @go(Events,[]*string) - - // Object key name prefix. - // +kubebuilder:validation:Optional - filterPrefix?: null | string @go(FilterPrefix,*string) - - // Object key name suffix. - // +kubebuilder:validation:Optional - filterSuffix?: null | string @go(FilterSuffix,*string) - - // Unique identifier for each of the notification configurations. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // SNS topic ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) - - // Reference to a Topic in sns to populate topicArn. - // +kubebuilder:validation:Optional - topicArnRef?: null | v1.#Reference @go(TopicArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate topicArn. - // +kubebuilder:validation:Optional - topicArnSelector?: null | v1.#Selector @go(TopicArnSelector,*v1.Selector) -} - -// BucketNotificationSpec defines the desired state of BucketNotification -#BucketNotificationSpec: { - v1.#ResourceSpec - forProvider: #BucketNotificationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketNotificationInitParameters @go(InitProvider) -} - -// BucketNotificationStatus defines the observed state of BucketNotification. -#BucketNotificationStatus: { - v1.#ResourceStatus - atProvider?: #BucketNotificationObservation @go(AtProvider) -} - -// BucketNotification is the Schema for the BucketNotifications API. Manages a S3 Bucket Notification Configuration -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketNotification: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BucketNotificationSpec @go(Spec) - status?: #BucketNotificationStatus @go(Status) -} - -// BucketNotificationList contains a list of BucketNotifications -#BucketNotificationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketNotification] @go(Items,[]BucketNotification) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketobject_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketobject_types_go_gen.cue deleted file mode 100644 index 1933a35..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketobject_types_go_gen.cue +++ /dev/null @@ -1,330 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketObjectInitParameters: { - // Canned ACL to apply. Valid values are private, public-read, public-read-write, aws-exec-read, authenticated-read, bucket-owner-read, and bucket-owner-full-control. Defaults to private. - acl?: null | string @go(ACL,*string) - - // Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) - - // Caching behavior along the request/reply chain Read w3c cache_control for further details. - cacheControl?: null | string @go(CacheControl,*string) - - // Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. - content?: null | string @go(Content,*string) - - // Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for small content such as the result of the gzipbase64 function with small text strings. For larger objects, use source to stream the content from a disk file. - contentBase64?: null | string @go(ContentBase64,*string) - - // Presentational information for the object. Read w3c content_disposition for further information. - contentDisposition?: null | string @go(ContentDisposition,*string) - - // Content encodings that have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read w3c content encoding for further information. - contentEncoding?: null | string @go(ContentEncoding,*string) - - // Language the content is in e.g., en-US or en-GB. - contentLanguage?: null | string @go(ContentLanguage,*string) - - // Standard MIME type describing the format of the object data, e.g., application/octet-stream. All Valid MIME Types are valid for this input. - contentType?: null | string @go(ContentType,*string) - - // Triggers updates when the value changes.11.11.11 or earlier). This attribute is not compatible with KMS encryption, kms_key_id or server_side_encryption = "aws:kms" (see source_hash instead). - etag?: null | string @go(Etag,*string) - - // Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has S3 object lock enabled. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Name of the object once it is in the bucket. - key?: null | string @go(Key,*string) - - // Map of keys/values to provision metadata (will be automatically prefixed by x-amz-meta-, note that only lowercase label are currently supported by the AWS Go API). - metadata?: {[string]: null | string} @go(Metadata,map[string]*string) - - // Legal hold status that you want to apply to the specified object. Valid values are ON and OFF. - objectLockLegalHoldStatus?: null | string @go(ObjectLockLegalHoldStatus,*string) - - // Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE and COMPLIANCE. - objectLockMode?: null | string @go(ObjectLockMode,*string) - - // Date and time, in RFC3339 format, when this object's object lock will expire. - objectLockRetainUntilDate?: null | string @go(ObjectLockRetainUntilDate,*string) - - // Server-side encryption of the object in S3. Valid values are "AES256" and "aws:kms". - serverSideEncryption?: null | string @go(ServerSideEncryption,*string) - - // Path to a file that will be read and uploaded as raw bytes for the object content. - source?: null | string @go(Source,*string) - - // Triggers updates like etag but useful to address etag encryption limitations.11.12 or later). (The value is only stored in state and not saved by AWS.) - sourceHash?: null | string @go(SourceHash,*string) - - // Storage Class for the object. Defaults to "STANDARD". - storageClass?: null | string @go(StorageClass,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Target URL for website redirect. - websiteRedirect?: null | string @go(WebsiteRedirect,*string) -} - -#BucketObjectObservation: { - // Canned ACL to apply. Valid values are private, public-read, public-read-write, aws-exec-read, authenticated-read, bucket-owner-read, and bucket-owner-full-control. Defaults to private. - acl?: null | string @go(ACL,*string) - - // Name of the bucket to put the file in. Alternatively, an S3 access point ARN can be specified. - bucket?: null | string @go(Bucket,*string) - - // Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) - - // Caching behavior along the request/reply chain Read w3c cache_control for further details. - cacheControl?: null | string @go(CacheControl,*string) - - // Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. - content?: null | string @go(Content,*string) - - // Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for small content such as the result of the gzipbase64 function with small text strings. For larger objects, use source to stream the content from a disk file. - contentBase64?: null | string @go(ContentBase64,*string) - - // Presentational information for the object. Read w3c content_disposition for further information. - contentDisposition?: null | string @go(ContentDisposition,*string) - - // Content encodings that have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read w3c content encoding for further information. - contentEncoding?: null | string @go(ContentEncoding,*string) - - // Language the content is in e.g., en-US or en-GB. - contentLanguage?: null | string @go(ContentLanguage,*string) - - // Standard MIME type describing the format of the object data, e.g., application/octet-stream. All Valid MIME Types are valid for this input. - contentType?: null | string @go(ContentType,*string) - - // Triggers updates when the value changes.11.11.11 or earlier). This attribute is not compatible with KMS encryption, kms_key_id or server_side_encryption = "aws:kms" (see source_hash instead). - etag?: null | string @go(Etag,*string) - - // Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has S3 object lock enabled. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // key of the resource supplied above - id?: null | string @go(ID,*string) - - // ARN of the KMS Key to use for object encryption. If the S3 Bucket has server-side encryption enabled, that value will automatically be used. If referencing the aws_kms_key resource, use the arn attribute. If referencing the aws_kms_alias data source or resource, use the target_key_arn attribute. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Name of the object once it is in the bucket. - key?: null | string @go(Key,*string) - - // Map of keys/values to provision metadata (will be automatically prefixed by x-amz-meta-, note that only lowercase label are currently supported by the AWS Go API). - metadata?: {[string]: null | string} @go(Metadata,map[string]*string) - - // Legal hold status that you want to apply to the specified object. Valid values are ON and OFF. - objectLockLegalHoldStatus?: null | string @go(ObjectLockLegalHoldStatus,*string) - - // Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE and COMPLIANCE. - objectLockMode?: null | string @go(ObjectLockMode,*string) - - // Date and time, in RFC3339 format, when this object's object lock will expire. - objectLockRetainUntilDate?: null | string @go(ObjectLockRetainUntilDate,*string) - - // Server-side encryption of the object in S3. Valid values are "AES256" and "aws:kms". - serverSideEncryption?: null | string @go(ServerSideEncryption,*string) - - // Path to a file that will be read and uploaded as raw bytes for the object content. - source?: null | string @go(Source,*string) - - // Triggers updates like etag but useful to address etag encryption limitations.11.12 or later). (The value is only stored in state and not saved by AWS.) - sourceHash?: null | string @go(SourceHash,*string) - - // Storage Class for the object. Defaults to "STANDARD". - storageClass?: null | string @go(StorageClass,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Unique version ID value for the object, if bucket versioning is enabled. - versionId?: null | string @go(VersionID,*string) - - // Target URL for website redirect. - websiteRedirect?: null | string @go(WebsiteRedirect,*string) -} - -#BucketObjectParameters: { - // Canned ACL to apply. Valid values are private, public-read, public-read-write, aws-exec-read, authenticated-read, bucket-owner-read, and bucket-owner-full-control. Defaults to private. - // +kubebuilder:validation:Optional - acl?: null | string @go(ACL,*string) - - // Name of the bucket to put the file in. Alternatively, an S3 access point ARN can be specified. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. - // +kubebuilder:validation:Optional - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Caching behavior along the request/reply chain Read w3c cache_control for further details. - // +kubebuilder:validation:Optional - cacheControl?: null | string @go(CacheControl,*string) - - // Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for small content such as the result of the gzipbase64 function with small text strings. For larger objects, use source to stream the content from a disk file. - // +kubebuilder:validation:Optional - contentBase64?: null | string @go(ContentBase64,*string) - - // Presentational information for the object. Read w3c content_disposition for further information. - // +kubebuilder:validation:Optional - contentDisposition?: null | string @go(ContentDisposition,*string) - - // Content encodings that have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read w3c content encoding for further information. - // +kubebuilder:validation:Optional - contentEncoding?: null | string @go(ContentEncoding,*string) - - // Language the content is in e.g., en-US or en-GB. - // +kubebuilder:validation:Optional - contentLanguage?: null | string @go(ContentLanguage,*string) - - // Standard MIME type describing the format of the object data, e.g., application/octet-stream. All Valid MIME Types are valid for this input. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Triggers updates when the value changes.11.11.11 or earlier). This attribute is not compatible with KMS encryption, kms_key_id or server_side_encryption = "aws:kms" (see source_hash instead). - // +kubebuilder:validation:Optional - etag?: null | string @go(Etag,*string) - - // Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has S3 object lock enabled. - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // ARN of the KMS Key to use for object encryption. If the S3 Bucket has server-side encryption enabled, that value will automatically be used. If referencing the aws_kms_key resource, use the arn attribute. If referencing the aws_kms_alias data source or resource, use the target_key_arn attribute. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Name of the object once it is in the bucket. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Map of keys/values to provision metadata (will be automatically prefixed by x-amz-meta-, note that only lowercase label are currently supported by the AWS Go API). - // +kubebuilder:validation:Optional - metadata?: {[string]: null | string} @go(Metadata,map[string]*string) - - // Legal hold status that you want to apply to the specified object. Valid values are ON and OFF. - // +kubebuilder:validation:Optional - objectLockLegalHoldStatus?: null | string @go(ObjectLockLegalHoldStatus,*string) - - // Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE and COMPLIANCE. - // +kubebuilder:validation:Optional - objectLockMode?: null | string @go(ObjectLockMode,*string) - - // Date and time, in RFC3339 format, when this object's object lock will expire. - // +kubebuilder:validation:Optional - objectLockRetainUntilDate?: null | string @go(ObjectLockRetainUntilDate,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Server-side encryption of the object in S3. Valid values are "AES256" and "aws:kms". - // +kubebuilder:validation:Optional - serverSideEncryption?: null | string @go(ServerSideEncryption,*string) - - // Path to a file that will be read and uploaded as raw bytes for the object content. - // +kubebuilder:validation:Optional - source?: null | string @go(Source,*string) - - // Triggers updates like etag but useful to address etag encryption limitations.11.12 or later). (The value is only stored in state and not saved by AWS.) - // +kubebuilder:validation:Optional - sourceHash?: null | string @go(SourceHash,*string) - - // Storage Class for the object. Defaults to "STANDARD". - // +kubebuilder:validation:Optional - storageClass?: null | string @go(StorageClass,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Target URL for website redirect. - // +kubebuilder:validation:Optional - websiteRedirect?: null | string @go(WebsiteRedirect,*string) -} - -// BucketObjectSpec defines the desired state of BucketObject -#BucketObjectSpec: { - v1.#ResourceSpec - forProvider: #BucketObjectParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketObjectInitParameters @go(InitProvider) -} - -// BucketObjectStatus defines the observed state of BucketObject. -#BucketObjectStatus: { - v1.#ResourceStatus - atProvider?: #BucketObjectObservation @go(AtProvider) -} - -// BucketObject is the Schema for the BucketObjects API. Provides an S3 object resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketObject: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.key) || (has(self.initProvider) && has(self.initProvider.key))",message="spec.forProvider.key is a required parameter" - spec: #BucketObjectSpec @go(Spec) - status?: #BucketObjectStatus @go(Status) -} - -// BucketObjectList contains a list of BucketObjects -#BucketObjectList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketObject] @go(Items,[]BucketObject) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketobjectlockconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketobjectlockconfiguration_types_go_gen.cue deleted file mode 100644 index a71312b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketobjectlockconfiguration_types_go_gen.cue +++ /dev/null @@ -1,173 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketObjectLockConfigurationInitParameters: { - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Indicates whether this bucket has an Object Lock configuration enabled. Defaults to Enabled. Valid values: Enabled. - objectLockEnabled?: null | string @go(ObjectLockEnabled,*string) - - // Configuration block for specifying the Object Lock rule for the specified object. See below. - rule?: [...#BucketObjectLockConfigurationRuleInitParameters] @go(Rule,[]BucketObjectLockConfigurationRuleInitParameters) -} - -#BucketObjectLockConfigurationObservation: { - // Name of the bucket. - bucket?: null | string @go(Bucket,*string) - - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // The bucket or bucket and expected_bucket_owner separated by a comma (,) if the latter is provided. - id?: null | string @go(ID,*string) - - // Indicates whether this bucket has an Object Lock configuration enabled. Defaults to Enabled. Valid values: Enabled. - objectLockEnabled?: null | string @go(ObjectLockEnabled,*string) - - // Configuration block for specifying the Object Lock rule for the specified object. See below. - rule?: [...#BucketObjectLockConfigurationRuleObservation] @go(Rule,[]BucketObjectLockConfigurationRuleObservation) -} - -#BucketObjectLockConfigurationParameters: { - // Name of the bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Account ID of the expected bucket owner. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Indicates whether this bucket has an Object Lock configuration enabled. Defaults to Enabled. Valid values: Enabled. - // +kubebuilder:validation:Optional - objectLockEnabled?: null | string @go(ObjectLockEnabled,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block for specifying the Object Lock rule for the specified object. See below. - // +kubebuilder:validation:Optional - rule?: [...#BucketObjectLockConfigurationRuleParameters] @go(Rule,[]BucketObjectLockConfigurationRuleParameters) - - // Token to allow Object Lock to be enabled for an existing bucket. You must contact AWS support for the bucket's "Object Lock token". - // The token is generated in the back-end when versioning is enabled on a bucket. For more details on versioning, see the aws_s3_bucket_versioning resource. - // +kubebuilder:validation:Optional - tokenSecretRef?: null | v1.#SecretKeySelector @go(TokenSecretRef,*v1.SecretKeySelector) -} - -#BucketObjectLockConfigurationRuleInitParameters: { - // Configuration block for specifying the default Object Lock retention settings for new objects placed in the specified bucket. See below. - defaultRetention?: [...#RuleDefaultRetentionInitParameters] @go(DefaultRetention,[]RuleDefaultRetentionInitParameters) -} - -#BucketObjectLockConfigurationRuleObservation: { - // Configuration block for specifying the default Object Lock retention settings for new objects placed in the specified bucket. See below. - defaultRetention?: [...#RuleDefaultRetentionObservation] @go(DefaultRetention,[]RuleDefaultRetentionObservation) -} - -#BucketObjectLockConfigurationRuleParameters: { - // Configuration block for specifying the default Object Lock retention settings for new objects placed in the specified bucket. See below. - // +kubebuilder:validation:Optional - defaultRetention: [...#RuleDefaultRetentionParameters] @go(DefaultRetention,[]RuleDefaultRetentionParameters) -} - -#RuleDefaultRetentionInitParameters: { - // Number of days that you want to specify for the default retention period. - days?: null | float64 @go(Days,*float64) - - // Default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Valid values: COMPLIANCE, GOVERNANCE. - mode?: null | string @go(Mode,*string) - - // Number of years that you want to specify for the default retention period. - years?: null | float64 @go(Years,*float64) -} - -#RuleDefaultRetentionObservation: { - // Number of days that you want to specify for the default retention period. - days?: null | float64 @go(Days,*float64) - - // Default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Valid values: COMPLIANCE, GOVERNANCE. - mode?: null | string @go(Mode,*string) - - // Number of years that you want to specify for the default retention period. - years?: null | float64 @go(Years,*float64) -} - -#RuleDefaultRetentionParameters: { - // Number of days that you want to specify for the default retention period. - // +kubebuilder:validation:Optional - days?: null | float64 @go(Days,*float64) - - // Default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Valid values: COMPLIANCE, GOVERNANCE. - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) - - // Number of years that you want to specify for the default retention period. - // +kubebuilder:validation:Optional - years?: null | float64 @go(Years,*float64) -} - -// BucketObjectLockConfigurationSpec defines the desired state of BucketObjectLockConfiguration -#BucketObjectLockConfigurationSpec: { - v1.#ResourceSpec - forProvider: #BucketObjectLockConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketObjectLockConfigurationInitParameters @go(InitProvider) -} - -// BucketObjectLockConfigurationStatus defines the observed state of BucketObjectLockConfiguration. -#BucketObjectLockConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #BucketObjectLockConfigurationObservation @go(AtProvider) -} - -// BucketObjectLockConfiguration is the Schema for the BucketObjectLockConfigurations API. Provides an S3 bucket Object Lock configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketObjectLockConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BucketObjectLockConfigurationSpec @go(Spec) - status?: #BucketObjectLockConfigurationStatus @go(Status) -} - -// BucketObjectLockConfigurationList contains a list of BucketObjectLockConfigurations -#BucketObjectLockConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketObjectLockConfiguration] @go(Items,[]BucketObjectLockConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketownershipcontrols_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketownershipcontrols_types_go_gen.cue deleted file mode 100644 index 58e99fa..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketownershipcontrols_types_go_gen.cue +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketOwnershipControlsInitParameters: { - // Configuration block(s) with Ownership Controls rules. Detailed below. - rule?: [...#BucketOwnershipControlsRuleInitParameters] @go(Rule,[]BucketOwnershipControlsRuleInitParameters) -} - -#BucketOwnershipControlsObservation: { - // Name of the bucket that you want to associate this access point with. - bucket?: null | string @go(Bucket,*string) - - // S3 Bucket name. - id?: null | string @go(ID,*string) - - // Configuration block(s) with Ownership Controls rules. Detailed below. - rule?: [...#BucketOwnershipControlsRuleObservation] @go(Rule,[]BucketOwnershipControlsRuleObservation) -} - -#BucketOwnershipControlsParameters: { - // Name of the bucket that you want to associate this access point with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block(s) with Ownership Controls rules. Detailed below. - // +kubebuilder:validation:Optional - rule?: [...#BucketOwnershipControlsRuleParameters] @go(Rule,[]BucketOwnershipControlsRuleParameters) -} - -#BucketOwnershipControlsRuleInitParameters: { - // Object ownership. Valid values: BucketOwnerPreferred, ObjectWriter or BucketOwnerEnforced - objectOwnership?: null | string @go(ObjectOwnership,*string) -} - -#BucketOwnershipControlsRuleObservation: { - // Object ownership. Valid values: BucketOwnerPreferred, ObjectWriter or BucketOwnerEnforced - objectOwnership?: null | string @go(ObjectOwnership,*string) -} - -#BucketOwnershipControlsRuleParameters: { - // Object ownership. Valid values: BucketOwnerPreferred, ObjectWriter or BucketOwnerEnforced - // +kubebuilder:validation:Optional - objectOwnership?: null | string @go(ObjectOwnership,*string) -} - -// BucketOwnershipControlsSpec defines the desired state of BucketOwnershipControls -#BucketOwnershipControlsSpec: { - v1.#ResourceSpec - forProvider: #BucketOwnershipControlsParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketOwnershipControlsInitParameters @go(InitProvider) -} - -// BucketOwnershipControlsStatus defines the observed state of BucketOwnershipControls. -#BucketOwnershipControlsStatus: { - v1.#ResourceStatus - atProvider?: #BucketOwnershipControlsObservation @go(AtProvider) -} - -// BucketOwnershipControls is the Schema for the BucketOwnershipControlss API. Manages S3 Bucket Ownership Controls. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketOwnershipControls: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rule) || (has(self.initProvider) && has(self.initProvider.rule))",message="spec.forProvider.rule is a required parameter" - spec: #BucketOwnershipControlsSpec @go(Spec) - status?: #BucketOwnershipControlsStatus @go(Status) -} - -// BucketOwnershipControlsList contains a list of BucketOwnershipControlss -#BucketOwnershipControlsList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketOwnershipControls] @go(Items,[]BucketOwnershipControls) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketpolicy_types_go_gen.cue deleted file mode 100644 index 9b4a3c7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketpolicy_types_go_gen.cue +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketPolicyInitParameters: { - // Text of the policy. Although this is a bucket policy rather than an IAM policy, the aws_iam_policy_document data source may be used, so long as it specifies a principal. Note: Bucket policies are limited to 20 KB in size. - policy?: null | string @go(Policy,*string) -} - -#BucketPolicyObservation: { - // Name of the bucket to which to apply the policy. - bucket?: null | string @go(Bucket,*string) - id?: null | string @go(ID,*string) - - // Text of the policy. Although this is a bucket policy rather than an IAM policy, the aws_iam_policy_document data source may be used, so long as it specifies a principal. Note: Bucket policies are limited to 20 KB in size. - policy?: null | string @go(Policy,*string) -} - -#BucketPolicyParameters: { - // Name of the bucket to which to apply the policy. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Text of the policy. Although this is a bucket policy rather than an IAM policy, the aws_iam_policy_document data source may be used, so long as it specifies a principal. Note: Bucket policies are limited to 20 KB in size. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// BucketPolicySpec defines the desired state of BucketPolicy -#BucketPolicySpec: { - v1.#ResourceSpec - forProvider: #BucketPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketPolicyInitParameters @go(InitProvider) -} - -// BucketPolicyStatus defines the observed state of BucketPolicy. -#BucketPolicyStatus: { - v1.#ResourceStatus - atProvider?: #BucketPolicyObservation @go(AtProvider) -} - -// BucketPolicy is the Schema for the BucketPolicys API. Attaches a policy to an S3 bucket resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #BucketPolicySpec @go(Spec) - status?: #BucketPolicyStatus @go(Status) -} - -// BucketPolicyList contains a list of BucketPolicys -#BucketPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketPolicy] @go(Items,[]BucketPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketpublicaccessblock_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketpublicaccessblock_types_go_gen.cue deleted file mode 100644 index 49ed543..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketpublicaccessblock_types_go_gen.cue +++ /dev/null @@ -1,126 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketPublicAccessBlockInitParameters: { - // Whether Amazon S3 should block public ACLs for this bucket. Defaults to false. Enabling this setting does not affect existing policies or ACLs. When set to true causes the following behavior: - blockPublicAcls?: null | bool @go(BlockPublicAcls,*bool) - - // Whether Amazon S3 should block public bucket policies for this bucket. Defaults to false. Enabling this setting does not affect the existing bucket policy. When set to true causes Amazon S3 to: - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // Whether Amazon S3 should ignore public ACLs for this bucket. Defaults to false. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to true causes Amazon S3 to: - ignorePublicAcls?: null | bool @go(IgnorePublicAcls,*bool) - - // Whether Amazon S3 should restrict public bucket policies for this bucket. Defaults to false. Enabling this setting does not affect the previously stored bucket policy, except that public and cross-account access within the public bucket policy, including non-public delegation to specific accounts, is blocked. When set to true: - restrictPublicBuckets?: null | bool @go(RestrictPublicBuckets,*bool) -} - -#BucketPublicAccessBlockObservation: { - // Whether Amazon S3 should block public ACLs for this bucket. Defaults to false. Enabling this setting does not affect existing policies or ACLs. When set to true causes the following behavior: - blockPublicAcls?: null | bool @go(BlockPublicAcls,*bool) - - // Whether Amazon S3 should block public bucket policies for this bucket. Defaults to false. Enabling this setting does not affect the existing bucket policy. When set to true causes Amazon S3 to: - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // S3 Bucket to which this Public Access Block configuration should be applied. - bucket?: null | string @go(Bucket,*string) - - // Name of the S3 bucket the configuration is attached to - id?: null | string @go(ID,*string) - - // Whether Amazon S3 should ignore public ACLs for this bucket. Defaults to false. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to true causes Amazon S3 to: - ignorePublicAcls?: null | bool @go(IgnorePublicAcls,*bool) - - // Whether Amazon S3 should restrict public bucket policies for this bucket. Defaults to false. Enabling this setting does not affect the previously stored bucket policy, except that public and cross-account access within the public bucket policy, including non-public delegation to specific accounts, is blocked. When set to true: - restrictPublicBuckets?: null | bool @go(RestrictPublicBuckets,*bool) -} - -#BucketPublicAccessBlockParameters: { - // Whether Amazon S3 should block public ACLs for this bucket. Defaults to false. Enabling this setting does not affect existing policies or ACLs. When set to true causes the following behavior: - // +kubebuilder:validation:Optional - blockPublicAcls?: null | bool @go(BlockPublicAcls,*bool) - - // Whether Amazon S3 should block public bucket policies for this bucket. Defaults to false. Enabling this setting does not affect the existing bucket policy. When set to true causes Amazon S3 to: - // +kubebuilder:validation:Optional - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // S3 Bucket to which this Public Access Block configuration should be applied. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Whether Amazon S3 should ignore public ACLs for this bucket. Defaults to false. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to true causes Amazon S3 to: - // +kubebuilder:validation:Optional - ignorePublicAcls?: null | bool @go(IgnorePublicAcls,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Whether Amazon S3 should restrict public bucket policies for this bucket. Defaults to false. Enabling this setting does not affect the previously stored bucket policy, except that public and cross-account access within the public bucket policy, including non-public delegation to specific accounts, is blocked. When set to true: - // +kubebuilder:validation:Optional - restrictPublicBuckets?: null | bool @go(RestrictPublicBuckets,*bool) -} - -// BucketPublicAccessBlockSpec defines the desired state of BucketPublicAccessBlock -#BucketPublicAccessBlockSpec: { - v1.#ResourceSpec - forProvider: #BucketPublicAccessBlockParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketPublicAccessBlockInitParameters @go(InitProvider) -} - -// BucketPublicAccessBlockStatus defines the observed state of BucketPublicAccessBlock. -#BucketPublicAccessBlockStatus: { - v1.#ResourceStatus - atProvider?: #BucketPublicAccessBlockObservation @go(AtProvider) -} - -// BucketPublicAccessBlock is the Schema for the BucketPublicAccessBlocks API. Manages S3 bucket-level Public Access Block Configuration -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketPublicAccessBlock: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BucketPublicAccessBlockSpec @go(Spec) - status?: #BucketPublicAccessBlockStatus @go(Status) -} - -// BucketPublicAccessBlockList contains a list of BucketPublicAccessBlocks -#BucketPublicAccessBlockList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketPublicAccessBlock] @go(Items,[]BucketPublicAccessBlock) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketreplicationconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketreplicationconfiguration_types_go_gen.cue deleted file mode 100644 index 9bcb5e4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketreplicationconfiguration_types_go_gen.cue +++ /dev/null @@ -1,593 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketReplicationConfigurationInitParameters: { - // List of configuration blocks describing the rules managing the replication. See below. - rule?: [...#BucketReplicationConfigurationRuleInitParameters] @go(Rule,[]BucketReplicationConfigurationRuleInitParameters) -} - -#BucketReplicationConfigurationObservation: { - // Name of the source S3 bucket you want Amazon S3 to monitor. - bucket?: null | string @go(Bucket,*string) - - // S3 source bucket name. - id?: null | string @go(ID,*string) - - // ARN of the IAM role for Amazon S3 to assume when replicating the objects. - role?: null | string @go(Role,*string) - - // List of configuration blocks describing the rules managing the replication. See below. - rule?: [...#BucketReplicationConfigurationRuleObservation] @go(Rule,[]BucketReplicationConfigurationRuleObservation) -} - -#BucketReplicationConfigurationParameters: { - // Name of the source S3 bucket you want Amazon S3 to monitor. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ARN of the IAM role for Amazon S3 to assume when replicating the objects. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - role?: null | string @go(Role,*string) - - // Reference to a Role in iam to populate role. - // +kubebuilder:validation:Optional - roleRef?: null | v1.#Reference @go(RoleRef,*v1.Reference) - - // Selector for a Role in iam to populate role. - // +kubebuilder:validation:Optional - roleSelector?: null | v1.#Selector @go(RoleSelector,*v1.Selector) - - // List of configuration blocks describing the rules managing the replication. See below. - // +kubebuilder:validation:Optional - rule?: [...#BucketReplicationConfigurationRuleParameters] @go(Rule,[]BucketReplicationConfigurationRuleParameters) - - // Token to allow replication to be enabled on an Object Lock-enabled bucket. You must contact AWS support for the bucket's "Object Lock token". - // For more details, see Using S3 Object Lock with replication. - // +kubebuilder:validation:Optional - tokenSecretRef?: null | v1.#SecretKeySelector @go(TokenSecretRef,*v1.SecretKeySelector) -} - -#BucketReplicationConfigurationRuleFilterInitParameters: { - // Configuration block for specifying rule filters. This element is required only if you specify more than one filter. See and below for more details. - and?: [...#FilterAndInitParameters] @go(And,[]FilterAndInitParameters) - - // Object key name prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. Defaults to an empty string ("") if filter is not specified. - prefix?: null | string @go(Prefix,*string) - - // Configuration block for specifying a tag key and value. See below. - tag?: [...#FilterTagInitParameters] @go(Tag,[]FilterTagInitParameters) -} - -#BucketReplicationConfigurationRuleFilterObservation: { - // Configuration block for specifying rule filters. This element is required only if you specify more than one filter. See and below for more details. - and?: [...#FilterAndObservation] @go(And,[]FilterAndObservation) - - // Object key name prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. Defaults to an empty string ("") if filter is not specified. - prefix?: null | string @go(Prefix,*string) - - // Configuration block for specifying a tag key and value. See below. - tag?: [...#FilterTagObservation] @go(Tag,[]FilterTagObservation) -} - -#BucketReplicationConfigurationRuleFilterParameters: { - // Configuration block for specifying rule filters. This element is required only if you specify more than one filter. See and below for more details. - // +kubebuilder:validation:Optional - and?: [...#FilterAndParameters] @go(And,[]FilterAndParameters) - - // Object key name prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. Defaults to an empty string ("") if filter is not specified. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Configuration block for specifying a tag key and value. See below. - // +kubebuilder:validation:Optional - tag?: [...#FilterTagParameters] @go(Tag,[]FilterTagParameters) -} - -#BucketReplicationConfigurationRuleInitParameters: { - // Whether delete markers are replicated. This argument is only valid with V2 replication configurations (i.e., when filter is used)documented below. - deleteMarkerReplication?: [...#DeleteMarkerReplicationInitParameters] @go(DeleteMarkerReplication,[]DeleteMarkerReplicationInitParameters) - - // Specifies the destination for the rule. See below. - destination?: [...#RuleDestinationInitParameters] @go(Destination,[]RuleDestinationInitParameters) - - // Replicate existing objects in the source bucket according to the rule configurations. See below. - existingObjectReplication?: [...#ExistingObjectReplicationInitParameters] @go(ExistingObjectReplication,[]ExistingObjectReplicationInitParameters) - - // Filter that identifies subset of objects to which the replication rule applies. See below. If not specified, the rule will default to using prefix. - filter?: [...#BucketReplicationConfigurationRuleFilterInitParameters] @go(Filter,[]BucketReplicationConfigurationRuleFilterInitParameters) - - // Unique identifier for the rule. Must be less than or equal to 255 characters in length. - id?: null | string @go(ID,*string) - - // Object key name prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. Defaults to an empty string ("") if filter is not specified. - prefix?: null | string @go(Prefix,*string) - - // Priority associated with the rule. Priority should only be set if filter is configured. If not provided, defaults to 0. Priority must be unique between multiple rules. - priority?: null | float64 @go(Priority,*float64) - - // Specifies special object selection criteria. See below. - sourceSelectionCriteria?: [...#RuleSourceSelectionCriteriaInitParameters] @go(SourceSelectionCriteria,[]RuleSourceSelectionCriteriaInitParameters) - - // Status of the rule. Either "Enabled" or "Disabled". The rule is ignored if status is not "Enabled". - status?: null | string @go(Status,*string) -} - -#BucketReplicationConfigurationRuleObservation: { - // Whether delete markers are replicated. This argument is only valid with V2 replication configurations (i.e., when filter is used)documented below. - deleteMarkerReplication?: [...#DeleteMarkerReplicationObservation] @go(DeleteMarkerReplication,[]DeleteMarkerReplicationObservation) - - // Specifies the destination for the rule. See below. - destination?: [...#RuleDestinationObservation] @go(Destination,[]RuleDestinationObservation) - - // Replicate existing objects in the source bucket according to the rule configurations. See below. - existingObjectReplication?: [...#ExistingObjectReplicationObservation] @go(ExistingObjectReplication,[]ExistingObjectReplicationObservation) - - // Filter that identifies subset of objects to which the replication rule applies. See below. If not specified, the rule will default to using prefix. - filter?: [...#BucketReplicationConfigurationRuleFilterObservation] @go(Filter,[]BucketReplicationConfigurationRuleFilterObservation) - - // Unique identifier for the rule. Must be less than or equal to 255 characters in length. - id?: null | string @go(ID,*string) - - // Object key name prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. Defaults to an empty string ("") if filter is not specified. - prefix?: null | string @go(Prefix,*string) - - // Priority associated with the rule. Priority should only be set if filter is configured. If not provided, defaults to 0. Priority must be unique between multiple rules. - priority?: null | float64 @go(Priority,*float64) - - // Specifies special object selection criteria. See below. - sourceSelectionCriteria?: [...#RuleSourceSelectionCriteriaObservation] @go(SourceSelectionCriteria,[]RuleSourceSelectionCriteriaObservation) - - // Status of the rule. Either "Enabled" or "Disabled". The rule is ignored if status is not "Enabled". - status?: null | string @go(Status,*string) -} - -#BucketReplicationConfigurationRuleParameters: { - // Whether delete markers are replicated. This argument is only valid with V2 replication configurations (i.e., when filter is used)documented below. - // +kubebuilder:validation:Optional - deleteMarkerReplication?: [...#DeleteMarkerReplicationParameters] @go(DeleteMarkerReplication,[]DeleteMarkerReplicationParameters) - - // Specifies the destination for the rule. See below. - // +kubebuilder:validation:Optional - destination: [...#RuleDestinationParameters] @go(Destination,[]RuleDestinationParameters) - - // Replicate existing objects in the source bucket according to the rule configurations. See below. - // +kubebuilder:validation:Optional - existingObjectReplication?: [...#ExistingObjectReplicationParameters] @go(ExistingObjectReplication,[]ExistingObjectReplicationParameters) - - // Filter that identifies subset of objects to which the replication rule applies. See below. If not specified, the rule will default to using prefix. - // +kubebuilder:validation:Optional - filter?: [...#BucketReplicationConfigurationRuleFilterParameters] @go(Filter,[]BucketReplicationConfigurationRuleFilterParameters) - - // Unique identifier for the rule. Must be less than or equal to 255 characters in length. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // Object key name prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. Defaults to an empty string ("") if filter is not specified. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Priority associated with the rule. Priority should only be set if filter is configured. If not provided, defaults to 0. Priority must be unique between multiple rules. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // Specifies special object selection criteria. See below. - // +kubebuilder:validation:Optional - sourceSelectionCriteria?: [...#RuleSourceSelectionCriteriaParameters] @go(SourceSelectionCriteria,[]RuleSourceSelectionCriteriaParameters) - - // Status of the rule. Either "Enabled" or "Disabled". The rule is ignored if status is not "Enabled". - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -#DeleteMarkerReplicationInitParameters: { - // Whether delete markers should be replicated. Either "Enabled" or "Disabled". - status?: null | string @go(Status,*string) -} - -#DeleteMarkerReplicationObservation: { - // Whether delete markers should be replicated. Either "Enabled" or "Disabled". - status?: null | string @go(Status,*string) -} - -#DeleteMarkerReplicationParameters: { - // Whether delete markers should be replicated. Either "Enabled" or "Disabled". - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -#DestinationAccessControlTranslationInitParameters: { - // Specifies the replica ownership. For default and valid values, see PUT bucket replication in the Amazon S3 API Reference. Valid values: Destination. - owner?: null | string @go(Owner,*string) -} - -#DestinationAccessControlTranslationObservation: { - // Specifies the replica ownership. For default and valid values, see PUT bucket replication in the Amazon S3 API Reference. Valid values: Destination. - owner?: null | string @go(Owner,*string) -} - -#DestinationAccessControlTranslationParameters: { - // Specifies the replica ownership. For default and valid values, see PUT bucket replication in the Amazon S3 API Reference. Valid values: Destination. - // +kubebuilder:validation:Optional - owner?: null | string @go(Owner,*string) -} - -#DestinationMetricsInitParameters: { - // Configuration block that specifies the time threshold for emitting the s3:Replication:OperationMissedThreshold event. See below. - eventThreshold?: [...#EventThresholdInitParameters] @go(EventThreshold,[]EventThresholdInitParameters) - - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - status?: null | string @go(Status,*string) -} - -#DestinationMetricsObservation: { - // Configuration block that specifies the time threshold for emitting the s3:Replication:OperationMissedThreshold event. See below. - eventThreshold?: [...#EventThresholdObservation] @go(EventThreshold,[]EventThresholdObservation) - - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - status?: null | string @go(Status,*string) -} - -#DestinationMetricsParameters: { - // Configuration block that specifies the time threshold for emitting the s3:Replication:OperationMissedThreshold event. See below. - // +kubebuilder:validation:Optional - eventThreshold?: [...#EventThresholdParameters] @go(EventThreshold,[]EventThresholdParameters) - - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -#DestinationReplicationTimeInitParameters: { - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - status?: null | string @go(Status,*string) - - // Configuration block specifying the time by which replication should be complete for all objects and operations on objects. See below. - time?: [...#TimeInitParameters] @go(Time,[]TimeInitParameters) -} - -#DestinationReplicationTimeObservation: { - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - status?: null | string @go(Status,*string) - - // Configuration block specifying the time by which replication should be complete for all objects and operations on objects. See below. - time?: [...#TimeObservation] @go(Time,[]TimeObservation) -} - -#DestinationReplicationTimeParameters: { - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) - - // Configuration block specifying the time by which replication should be complete for all objects and operations on objects. See below. - // +kubebuilder:validation:Optional - time: [...#TimeParameters] @go(Time,[]TimeParameters) -} - -#EncryptionConfigurationInitParameters: { - // ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. - replicaKmsKeyId?: null | string @go(ReplicaKMSKeyID,*string) -} - -#EncryptionConfigurationObservation: { - // ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. - replicaKmsKeyId?: null | string @go(ReplicaKMSKeyID,*string) -} - -#EncryptionConfigurationParameters: { - // ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. - // +kubebuilder:validation:Optional - replicaKmsKeyId?: null | string @go(ReplicaKMSKeyID,*string) -} - -#EventThresholdInitParameters: { - // Time in minutes. Valid values: 15. - minutes?: null | float64 @go(Minutes,*float64) -} - -#EventThresholdObservation: { - // Time in minutes. Valid values: 15. - minutes?: null | float64 @go(Minutes,*float64) -} - -#EventThresholdParameters: { - // Time in minutes. Valid values: 15. - // +kubebuilder:validation:Optional - minutes?: null | float64 @go(Minutes,*float64) -} - -#ExistingObjectReplicationInitParameters: { - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - status?: null | string @go(Status,*string) -} - -#ExistingObjectReplicationObservation: { - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - status?: null | string @go(Status,*string) -} - -#ExistingObjectReplicationParameters: { - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -#FilterAndInitParameters: { - // Object key name prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. Defaults to an empty string ("") if filter is not specified. - prefix?: null | string @go(Prefix,*string) - - // Map of tags (key and value pairs) that identifies a subset of objects to which the rule applies. The rule applies only to objects having all the tags in its tagset. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FilterAndObservation: { - // Object key name prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. Defaults to an empty string ("") if filter is not specified. - prefix?: null | string @go(Prefix,*string) - - // Map of tags (key and value pairs) that identifies a subset of objects to which the rule applies. The rule applies only to objects having all the tags in its tagset. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FilterAndParameters: { - // Object key name prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. Defaults to an empty string ("") if filter is not specified. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Map of tags (key and value pairs) that identifies a subset of objects to which the rule applies. The rule applies only to objects having all the tags in its tagset. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FilterTagInitParameters: { - // Name of the object key. - key?: null | string @go(Key,*string) - - // Value of the tag. - value?: null | string @go(Value,*string) -} - -#FilterTagObservation: { - // Name of the object key. - key?: null | string @go(Key,*string) - - // Value of the tag. - value?: null | string @go(Value,*string) -} - -#FilterTagParameters: { - // Name of the object key. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Value of the tag. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ReplicaModificationsInitParameters: { - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - status?: null | string @go(Status,*string) -} - -#ReplicaModificationsObservation: { - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - status?: null | string @go(Status,*string) -} - -#ReplicaModificationsParameters: { - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -#RuleDestinationInitParameters: { - // Configuration block that specifies the overrides to use for object owners on replication. See below. Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same AWS account that owns the source object. Must be used in conjunction with account owner override configuration. - accessControlTranslation?: [...#DestinationAccessControlTranslationInitParameters] @go(AccessControlTranslation,[]DestinationAccessControlTranslationInitParameters) - - // Account ID to specify the replica ownership. Must be used in conjunction with access_control_translation override configuration. - account?: null | string @go(Account,*string) - - // Configuration block that provides information about encryption. See below. If source_selection_criteria is specified, you must specify this element. - encryptionConfiguration?: [...#EncryptionConfigurationInitParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationInitParameters) - - // Configuration block that specifies replication metrics-related settings enabling replication metrics and events. See below. - metrics?: [...#DestinationMetricsInitParameters] @go(Metrics,[]DestinationMetricsInitParameters) - - // Configuration block that specifies S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. See below. Replication Time Control must be used in conjunction with metrics. - replicationTime?: [...#DestinationReplicationTimeInitParameters] @go(ReplicationTime,[]DestinationReplicationTimeInitParameters) - - // The storage class used to store the object. By default, Amazon S3 uses the storage class of the source object to create the object replica. - storageClass?: null | string @go(StorageClass,*string) -} - -#RuleDestinationObservation: { - // Configuration block that specifies the overrides to use for object owners on replication. See below. Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same AWS account that owns the source object. Must be used in conjunction with account owner override configuration. - accessControlTranslation?: [...#DestinationAccessControlTranslationObservation] @go(AccessControlTranslation,[]DestinationAccessControlTranslationObservation) - - // Account ID to specify the replica ownership. Must be used in conjunction with access_control_translation override configuration. - account?: null | string @go(Account,*string) - - // ARN of the bucket where you want Amazon S3 to store the results. - bucket?: null | string @go(Bucket,*string) - - // Configuration block that provides information about encryption. See below. If source_selection_criteria is specified, you must specify this element. - encryptionConfiguration?: [...#EncryptionConfigurationObservation] @go(EncryptionConfiguration,[]EncryptionConfigurationObservation) - - // Configuration block that specifies replication metrics-related settings enabling replication metrics and events. See below. - metrics?: [...#DestinationMetricsObservation] @go(Metrics,[]DestinationMetricsObservation) - - // Configuration block that specifies S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. See below. Replication Time Control must be used in conjunction with metrics. - replicationTime?: [...#DestinationReplicationTimeObservation] @go(ReplicationTime,[]DestinationReplicationTimeObservation) - - // The storage class used to store the object. By default, Amazon S3 uses the storage class of the source object to create the object replica. - storageClass?: null | string @go(StorageClass,*string) -} - -#RuleDestinationParameters: { - // Configuration block that specifies the overrides to use for object owners on replication. See below. Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same AWS account that owns the source object. Must be used in conjunction with account owner override configuration. - // +kubebuilder:validation:Optional - accessControlTranslation?: [...#DestinationAccessControlTranslationParameters] @go(AccessControlTranslation,[]DestinationAccessControlTranslationParameters) - - // Account ID to specify the replica ownership. Must be used in conjunction with access_control_translation override configuration. - // +kubebuilder:validation:Optional - account?: null | string @go(Account,*string) - - // ARN of the bucket where you want Amazon S3 to store the results. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Configuration block that provides information about encryption. See below. If source_selection_criteria is specified, you must specify this element. - // +kubebuilder:validation:Optional - encryptionConfiguration?: [...#EncryptionConfigurationParameters] @go(EncryptionConfiguration,[]EncryptionConfigurationParameters) - - // Configuration block that specifies replication metrics-related settings enabling replication metrics and events. See below. - // +kubebuilder:validation:Optional - metrics?: [...#DestinationMetricsParameters] @go(Metrics,[]DestinationMetricsParameters) - - // Configuration block that specifies S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. See below. Replication Time Control must be used in conjunction with metrics. - // +kubebuilder:validation:Optional - replicationTime?: [...#DestinationReplicationTimeParameters] @go(ReplicationTime,[]DestinationReplicationTimeParameters) - - // The storage class used to store the object. By default, Amazon S3 uses the storage class of the source object to create the object replica. - // +kubebuilder:validation:Optional - storageClass?: null | string @go(StorageClass,*string) -} - -#RuleSourceSelectionCriteriaInitParameters: { - // Configuration block that you can specify for selections for modifications on replicas. Amazon S3 doesn't replicate replica modifications by default. In the latest version of replication configuration (when filter is specified), you can specify this element and set the status to Enabled to replicate modifications on replicas. - replicaModifications?: [...#ReplicaModificationsInitParameters] @go(ReplicaModifications,[]ReplicaModificationsInitParameters) - - // Configuration block for filter information for the selection of Amazon S3 objects encrypted with AWS KMS. If specified, replica_kms_key_id in destination encryption_configuration must be specified as well. - sseKmsEncryptedObjects?: [...#SourceSelectionCriteriaSseKMSEncryptedObjectsInitParameters] @go(SseKMSEncryptedObjects,[]SourceSelectionCriteriaSseKMSEncryptedObjectsInitParameters) -} - -#RuleSourceSelectionCriteriaObservation: { - // Configuration block that you can specify for selections for modifications on replicas. Amazon S3 doesn't replicate replica modifications by default. In the latest version of replication configuration (when filter is specified), you can specify this element and set the status to Enabled to replicate modifications on replicas. - replicaModifications?: [...#ReplicaModificationsObservation] @go(ReplicaModifications,[]ReplicaModificationsObservation) - - // Configuration block for filter information for the selection of Amazon S3 objects encrypted with AWS KMS. If specified, replica_kms_key_id in destination encryption_configuration must be specified as well. - sseKmsEncryptedObjects?: [...#SourceSelectionCriteriaSseKMSEncryptedObjectsObservation] @go(SseKMSEncryptedObjects,[]SourceSelectionCriteriaSseKMSEncryptedObjectsObservation) -} - -#RuleSourceSelectionCriteriaParameters: { - // Configuration block that you can specify for selections for modifications on replicas. Amazon S3 doesn't replicate replica modifications by default. In the latest version of replication configuration (when filter is specified), you can specify this element and set the status to Enabled to replicate modifications on replicas. - // +kubebuilder:validation:Optional - replicaModifications?: [...#ReplicaModificationsParameters] @go(ReplicaModifications,[]ReplicaModificationsParameters) - - // Configuration block for filter information for the selection of Amazon S3 objects encrypted with AWS KMS. If specified, replica_kms_key_id in destination encryption_configuration must be specified as well. - // +kubebuilder:validation:Optional - sseKmsEncryptedObjects?: [...#SourceSelectionCriteriaSseKMSEncryptedObjectsParameters] @go(SseKMSEncryptedObjects,[]SourceSelectionCriteriaSseKMSEncryptedObjectsParameters) -} - -#SourceSelectionCriteriaSseKMSEncryptedObjectsInitParameters: { - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - status?: null | string @go(Status,*string) -} - -#SourceSelectionCriteriaSseKMSEncryptedObjectsObservation: { - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - status?: null | string @go(Status,*string) -} - -#SourceSelectionCriteriaSseKMSEncryptedObjectsParameters: { - // Whether the existing objects should be replicated. Either "Enabled" or "Disabled". - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -#TimeInitParameters: { - // Time in minutes. Valid values: 15. - minutes?: null | float64 @go(Minutes,*float64) -} - -#TimeObservation: { - // Time in minutes. Valid values: 15. - minutes?: null | float64 @go(Minutes,*float64) -} - -#TimeParameters: { - // Time in minutes. Valid values: 15. - // +kubebuilder:validation:Optional - minutes?: null | float64 @go(Minutes,*float64) -} - -// BucketReplicationConfigurationSpec defines the desired state of BucketReplicationConfiguration -#BucketReplicationConfigurationSpec: { - v1.#ResourceSpec - forProvider: #BucketReplicationConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketReplicationConfigurationInitParameters @go(InitProvider) -} - -// BucketReplicationConfigurationStatus defines the observed state of BucketReplicationConfiguration. -#BucketReplicationConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #BucketReplicationConfigurationObservation @go(AtProvider) -} - -// BucketReplicationConfiguration is the Schema for the BucketReplicationConfigurations API. Provides a S3 bucket replication configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketReplicationConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rule) || (has(self.initProvider) && has(self.initProvider.rule))",message="spec.forProvider.rule is a required parameter" - spec: #BucketReplicationConfigurationSpec @go(Spec) - status?: #BucketReplicationConfigurationStatus @go(Status) -} - -// BucketReplicationConfigurationList contains a list of BucketReplicationConfigurations -#BucketReplicationConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketReplicationConfiguration] @go(Items,[]BucketReplicationConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketrequestpaymentconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketrequestpaymentconfiguration_types_go_gen.cue deleted file mode 100644 index b2df7fc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketrequestpaymentconfiguration_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketRequestPaymentConfigurationInitParameters: { - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Specifies who pays for the download and request fees. Valid values: BucketOwner, Requester. - payer?: null | string @go(Payer,*string) -} - -#BucketRequestPaymentConfigurationObservation: { - // Name of the bucket. - bucket?: null | string @go(Bucket,*string) - - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // The bucket or bucket and expected_bucket_owner separated by a comma (,) if the latter is provided. - id?: null | string @go(ID,*string) - - // Specifies who pays for the download and request fees. Valid values: BucketOwner, Requester. - payer?: null | string @go(Payer,*string) -} - -#BucketRequestPaymentConfigurationParameters: { - // Name of the bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Account ID of the expected bucket owner. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Specifies who pays for the download and request fees. Valid values: BucketOwner, Requester. - // +kubebuilder:validation:Optional - payer?: null | string @go(Payer,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// BucketRequestPaymentConfigurationSpec defines the desired state of BucketRequestPaymentConfiguration -#BucketRequestPaymentConfigurationSpec: { - v1.#ResourceSpec - forProvider: #BucketRequestPaymentConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketRequestPaymentConfigurationInitParameters @go(InitProvider) -} - -// BucketRequestPaymentConfigurationStatus defines the observed state of BucketRequestPaymentConfiguration. -#BucketRequestPaymentConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #BucketRequestPaymentConfigurationObservation @go(AtProvider) -} - -// BucketRequestPaymentConfiguration is the Schema for the BucketRequestPaymentConfigurations API. Provides an S3 bucket request payment configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketRequestPaymentConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.payer) || (has(self.initProvider) && has(self.initProvider.payer))",message="spec.forProvider.payer is a required parameter" - spec: #BucketRequestPaymentConfigurationSpec @go(Spec) - status?: #BucketRequestPaymentConfigurationStatus @go(Status) -} - -// BucketRequestPaymentConfigurationList contains a list of BucketRequestPaymentConfigurations -#BucketRequestPaymentConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketRequestPaymentConfiguration] @go(Items,[]BucketRequestPaymentConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketserversideencryptionconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketserversideencryptionconfiguration_types_go_gen.cue deleted file mode 100644 index 62e8ee5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketserversideencryptionconfiguration_types_go_gen.cue +++ /dev/null @@ -1,167 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketServerSideEncryptionConfigurationInitParameters: { - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported. - rule?: [...#BucketServerSideEncryptionConfigurationRuleInitParameters] @go(Rule,[]BucketServerSideEncryptionConfigurationRuleInitParameters) -} - -#BucketServerSideEncryptionConfigurationObservation: { - // ID (name) of the bucket. - bucket?: null | string @go(Bucket,*string) - - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // The bucket or bucket and expected_bucket_owner separated by a comma (,) if the latter is provided. - id?: null | string @go(ID,*string) - - // Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported. - rule?: [...#BucketServerSideEncryptionConfigurationRuleObservation] @go(Rule,[]BucketServerSideEncryptionConfigurationRuleObservation) -} - -#BucketServerSideEncryptionConfigurationParameters: { - // ID (name) of the bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Account ID of the expected bucket owner. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported. - // +kubebuilder:validation:Optional - rule?: [...#BucketServerSideEncryptionConfigurationRuleParameters] @go(Rule,[]BucketServerSideEncryptionConfigurationRuleParameters) -} - -#BucketServerSideEncryptionConfigurationRuleInitParameters: { - // Single object for setting server-side encryption by default. See below. - applyServerSideEncryptionByDefault?: [...#RuleApplyServerSideEncryptionByDefaultInitParameters] @go(ApplyServerSideEncryptionByDefault,[]RuleApplyServerSideEncryptionByDefaultInitParameters) - - // Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) -} - -#BucketServerSideEncryptionConfigurationRuleObservation: { - // Single object for setting server-side encryption by default. See below. - applyServerSideEncryptionByDefault?: [...#RuleApplyServerSideEncryptionByDefaultObservation] @go(ApplyServerSideEncryptionByDefault,[]RuleApplyServerSideEncryptionByDefaultObservation) - - // Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) -} - -#BucketServerSideEncryptionConfigurationRuleParameters: { - // Single object for setting server-side encryption by default. See below. - // +kubebuilder:validation:Optional - applyServerSideEncryptionByDefault?: [...#RuleApplyServerSideEncryptionByDefaultParameters] @go(ApplyServerSideEncryptionByDefault,[]RuleApplyServerSideEncryptionByDefaultParameters) - - // Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. - // +kubebuilder:validation:Optional - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) -} - -#RuleApplyServerSideEncryptionByDefaultInitParameters: { - // Server-side encryption algorithm to use. Valid values are AES256 and aws:kms - sseAlgorithm?: null | string @go(SseAlgorithm,*string) -} - -#RuleApplyServerSideEncryptionByDefaultObservation: { - // AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of sse_algorithm as aws:kms. The default aws/s3 AWS KMS master key is used if this element is absent while the sse_algorithm is aws:kms. - kmsMasterKeyId?: null | string @go(KMSMasterKeyID,*string) - - // Server-side encryption algorithm to use. Valid values are AES256 and aws:kms - sseAlgorithm?: null | string @go(SseAlgorithm,*string) -} - -#RuleApplyServerSideEncryptionByDefaultParameters: { - // AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of sse_algorithm as aws:kms. The default aws/s3 AWS KMS master key is used if this element is absent while the sse_algorithm is aws:kms. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - kmsMasterKeyId?: null | string @go(KMSMasterKeyID,*string) - - // Reference to a Key in kms to populate kmsMasterKeyId. - // +kubebuilder:validation:Optional - kmsMasterKeyIdRef?: null | v1.#Reference @go(KMSMasterKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsMasterKeyId. - // +kubebuilder:validation:Optional - kmsMasterKeyIdSelector?: null | v1.#Selector @go(KMSMasterKeyIDSelector,*v1.Selector) - - // Server-side encryption algorithm to use. Valid values are AES256 and aws:kms - // +kubebuilder:validation:Optional - sseAlgorithm?: null | string @go(SseAlgorithm,*string) -} - -// BucketServerSideEncryptionConfigurationSpec defines the desired state of BucketServerSideEncryptionConfiguration -#BucketServerSideEncryptionConfigurationSpec: { - v1.#ResourceSpec - forProvider: #BucketServerSideEncryptionConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketServerSideEncryptionConfigurationInitParameters @go(InitProvider) -} - -// BucketServerSideEncryptionConfigurationStatus defines the observed state of BucketServerSideEncryptionConfiguration. -#BucketServerSideEncryptionConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #BucketServerSideEncryptionConfigurationObservation @go(AtProvider) -} - -// BucketServerSideEncryptionConfiguration is the Schema for the BucketServerSideEncryptionConfigurations API. Provides a S3 bucket server-side encryption configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketServerSideEncryptionConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rule) || (has(self.initProvider) && has(self.initProvider.rule))",message="spec.forProvider.rule is a required parameter" - spec: #BucketServerSideEncryptionConfigurationSpec @go(Spec) - status?: #BucketServerSideEncryptionConfigurationStatus @go(Status) -} - -// BucketServerSideEncryptionConfigurationList contains a list of BucketServerSideEncryptionConfigurations -#BucketServerSideEncryptionConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketServerSideEncryptionConfiguration] @go(Items,[]BucketServerSideEncryptionConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketversioning_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketversioning_types_go_gen.cue deleted file mode 100644 index f0be815..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketversioning_types_go_gen.cue +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketVersioningInitParameters: { - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device. - mfa?: null | string @go(Mfa,*string) - - // Configuration block for the versioning parameters. See below. - versioningConfiguration?: [...#VersioningConfigurationInitParameters] @go(VersioningConfiguration,[]VersioningConfigurationInitParameters) -} - -#BucketVersioningObservation: { - // Name of the S3 bucket. - bucket?: null | string @go(Bucket,*string) - - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // The bucket or bucket and expected_bucket_owner separated by a comma (,) if the latter is provided. - id?: null | string @go(ID,*string) - - // Concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device. - mfa?: null | string @go(Mfa,*string) - - // Configuration block for the versioning parameters. See below. - versioningConfiguration?: [...#VersioningConfigurationObservation] @go(VersioningConfiguration,[]VersioningConfigurationObservation) -} - -#BucketVersioningParameters: { - // Name of the S3 bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Account ID of the expected bucket owner. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device. - // +kubebuilder:validation:Optional - mfa?: null | string @go(Mfa,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block for the versioning parameters. See below. - // +kubebuilder:validation:Optional - versioningConfiguration?: [...#VersioningConfigurationParameters] @go(VersioningConfiguration,[]VersioningConfigurationParameters) -} - -#VersioningConfigurationInitParameters: { - // Specifies whether MFA delete is enabled in the bucket versioning configuration. Valid values: Enabled or Disabled. - mfaDelete?: null | string @go(MfaDelete,*string) - - // Versioning state of the bucket. Valid values: Enabled, Suspended, or Disabled. Disabled should only be used when creating or importing resources that correspond to unversioned S3 buckets. - status?: null | string @go(Status,*string) -} - -#VersioningConfigurationObservation: { - // Specifies whether MFA delete is enabled in the bucket versioning configuration. Valid values: Enabled or Disabled. - mfaDelete?: null | string @go(MfaDelete,*string) - - // Versioning state of the bucket. Valid values: Enabled, Suspended, or Disabled. Disabled should only be used when creating or importing resources that correspond to unversioned S3 buckets. - status?: null | string @go(Status,*string) -} - -#VersioningConfigurationParameters: { - // Specifies whether MFA delete is enabled in the bucket versioning configuration. Valid values: Enabled or Disabled. - // +kubebuilder:validation:Optional - mfaDelete?: null | string @go(MfaDelete,*string) - - // Versioning state of the bucket. Valid values: Enabled, Suspended, or Disabled. Disabled should only be used when creating or importing resources that correspond to unversioned S3 buckets. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -// BucketVersioningSpec defines the desired state of BucketVersioning -#BucketVersioningSpec: { - v1.#ResourceSpec - forProvider: #BucketVersioningParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketVersioningInitParameters @go(InitProvider) -} - -// BucketVersioningStatus defines the observed state of BucketVersioning. -#BucketVersioningStatus: { - v1.#ResourceStatus - atProvider?: #BucketVersioningObservation @go(AtProvider) -} - -// BucketVersioning is the Schema for the BucketVersionings API. Provides an S3 bucket versioning resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketVersioning: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.versioningConfiguration) || (has(self.initProvider) && has(self.initProvider.versioningConfiguration))",message="spec.forProvider.versioningConfiguration is a required parameter" - spec: #BucketVersioningSpec @go(Spec) - status?: #BucketVersioningStatus @go(Status) -} - -// BucketVersioningList contains a list of BucketVersionings -#BucketVersioningList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketVersioning] @go(Items,[]BucketVersioning) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketwebsiteconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketwebsiteconfiguration_types_go_gen.cue deleted file mode 100644 index 1b6713b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_bucketwebsiteconfiguration_types_go_gen.cue +++ /dev/null @@ -1,327 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BucketWebsiteConfigurationInitParameters: { - // Name of the error document for the website. See below. - errorDocument?: [...#ErrorDocumentInitParameters] @go(ErrorDocument,[]ErrorDocumentInitParameters) - - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Name of the index document for the website. See below. - indexDocument?: [...#IndexDocumentInitParameters] @go(IndexDocument,[]IndexDocumentInitParameters) - - // Redirect behavior for every request to this bucket's website endpoint. See below. Conflicts with error_document, index_document, and routing_rule. - redirectAllRequestsTo?: [...#RedirectAllRequestsToInitParameters] @go(RedirectAllRequestsTo,[]RedirectAllRequestsToInitParameters) - - // List of rules that define when a redirect is applied and the redirect behavior. See below. - routingRule?: [...#RoutingRuleInitParameters] @go(RoutingRule,[]RoutingRuleInitParameters) - - // JSON array containing routing rules - // describing redirect behavior and when redirects are applied. Use this parameter when your routing rules contain empty String values ("") as seen in the example above. - routingRules?: null | string @go(RoutingRules,*string) -} - -#BucketWebsiteConfigurationObservation: { - // Name of the bucket. - bucket?: null | string @go(Bucket,*string) - - // Name of the error document for the website. See below. - errorDocument?: [...#ErrorDocumentObservation] @go(ErrorDocument,[]ErrorDocumentObservation) - - // Account ID of the expected bucket owner. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // The bucket or bucket and expected_bucket_owner separated by a comma (,) if the latter is provided. - id?: null | string @go(ID,*string) - - // Name of the index document for the website. See below. - indexDocument?: [...#IndexDocumentObservation] @go(IndexDocument,[]IndexDocumentObservation) - - // Redirect behavior for every request to this bucket's website endpoint. See below. Conflicts with error_document, index_document, and routing_rule. - redirectAllRequestsTo?: [...#RedirectAllRequestsToObservation] @go(RedirectAllRequestsTo,[]RedirectAllRequestsToObservation) - - // List of rules that define when a redirect is applied and the redirect behavior. See below. - routingRule?: [...#RoutingRuleObservation] @go(RoutingRule,[]RoutingRuleObservation) - - // JSON array containing routing rules - // describing redirect behavior and when redirects are applied. Use this parameter when your routing rules contain empty String values ("") as seen in the example above. - routingRules?: null | string @go(RoutingRules,*string) - - // Domain of the website endpoint. This is used to create Route 53 alias records. - websiteDomain?: null | string @go(WebsiteDomain,*string) - - // Website endpoint. - websiteEndpoint?: null | string @go(WebsiteEndpoint,*string) -} - -#BucketWebsiteConfigurationParameters: { - // Name of the bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Name of the error document for the website. See below. - // +kubebuilder:validation:Optional - errorDocument?: [...#ErrorDocumentParameters] @go(ErrorDocument,[]ErrorDocumentParameters) - - // Account ID of the expected bucket owner. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Name of the index document for the website. See below. - // +kubebuilder:validation:Optional - indexDocument?: [...#IndexDocumentParameters] @go(IndexDocument,[]IndexDocumentParameters) - - // Redirect behavior for every request to this bucket's website endpoint. See below. Conflicts with error_document, index_document, and routing_rule. - // +kubebuilder:validation:Optional - redirectAllRequestsTo?: [...#RedirectAllRequestsToParameters] @go(RedirectAllRequestsTo,[]RedirectAllRequestsToParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // List of rules that define when a redirect is applied and the redirect behavior. See below. - // +kubebuilder:validation:Optional - routingRule?: [...#RoutingRuleParameters] @go(RoutingRule,[]RoutingRuleParameters) - - // JSON array containing routing rules - // describing redirect behavior and when redirects are applied. Use this parameter when your routing rules contain empty String values ("") as seen in the example above. - // +kubebuilder:validation:Optional - routingRules?: null | string @go(RoutingRules,*string) -} - -#ConditionInitParameters: { - // HTTP error code when the redirect is applied. If specified with key_prefix_equals, then both must be true for the redirect to be applied. - httpErrorCodeReturnedEquals?: null | string @go(HTTPErrorCodeReturnedEquals,*string) - - // Object key name prefix when the redirect is applied. If specified with http_error_code_returned_equals, then both must be true for the redirect to be applied. - keyPrefixEquals?: null | string @go(KeyPrefixEquals,*string) -} - -#ConditionObservation: { - // HTTP error code when the redirect is applied. If specified with key_prefix_equals, then both must be true for the redirect to be applied. - httpErrorCodeReturnedEquals?: null | string @go(HTTPErrorCodeReturnedEquals,*string) - - // Object key name prefix when the redirect is applied. If specified with http_error_code_returned_equals, then both must be true for the redirect to be applied. - keyPrefixEquals?: null | string @go(KeyPrefixEquals,*string) -} - -#ConditionParameters: { - // HTTP error code when the redirect is applied. If specified with key_prefix_equals, then both must be true for the redirect to be applied. - // +kubebuilder:validation:Optional - httpErrorCodeReturnedEquals?: null | string @go(HTTPErrorCodeReturnedEquals,*string) - - // Object key name prefix when the redirect is applied. If specified with http_error_code_returned_equals, then both must be true for the redirect to be applied. - // +kubebuilder:validation:Optional - keyPrefixEquals?: null | string @go(KeyPrefixEquals,*string) -} - -#ErrorDocumentInitParameters: { - // Object key name to use when a 4XX class error occurs. - key?: null | string @go(Key,*string) -} - -#ErrorDocumentObservation: { - // Object key name to use when a 4XX class error occurs. - key?: null | string @go(Key,*string) -} - -#ErrorDocumentParameters: { - // Object key name to use when a 4XX class error occurs. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) -} - -#IndexDocumentInitParameters: { - // Suffix that is appended to a request that is for a directory on the website endpoint. - // For example, if the suffix is index.html and you make a request to samplebucket/images/, the data that is returned will be for the object with the key name images/index.html. - // The suffix must not be empty and must not include a slash character. - suffix?: null | string @go(Suffix,*string) -} - -#IndexDocumentObservation: { - // Suffix that is appended to a request that is for a directory on the website endpoint. - // For example, if the suffix is index.html and you make a request to samplebucket/images/, the data that is returned will be for the object with the key name images/index.html. - // The suffix must not be empty and must not include a slash character. - suffix?: null | string @go(Suffix,*string) -} - -#IndexDocumentParameters: { - // Suffix that is appended to a request that is for a directory on the website endpoint. - // For example, if the suffix is index.html and you make a request to samplebucket/images/, the data that is returned will be for the object with the key name images/index.html. - // The suffix must not be empty and must not include a slash character. - // +kubebuilder:validation:Optional - suffix?: null | string @go(Suffix,*string) -} - -#RedirectAllRequestsToInitParameters: { - // Name of the host where requests are redirected. - hostName?: null | string @go(HostName,*string) - - // Protocol to use when redirecting requests. The default is the protocol that is used in the original request. Valid values: http, https. - protocol?: null | string @go(Protocol,*string) -} - -#RedirectAllRequestsToObservation: { - // Name of the host where requests are redirected. - hostName?: null | string @go(HostName,*string) - - // Protocol to use when redirecting requests. The default is the protocol that is used in the original request. Valid values: http, https. - protocol?: null | string @go(Protocol,*string) -} - -#RedirectAllRequestsToParameters: { - // Name of the host where requests are redirected. - // +kubebuilder:validation:Optional - hostName?: null | string @go(HostName,*string) - - // Protocol to use when redirecting requests. The default is the protocol that is used in the original request. Valid values: http, https. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) -} - -#RedirectInitParameters: { - // HTTP redirect code to use on the response. - httpRedirectCode?: null | string @go(HTTPRedirectCode,*string) - - // Name of the host where requests are redirected. - hostName?: null | string @go(HostName,*string) - - // Protocol to use when redirecting requests. The default is the protocol that is used in the original request. Valid values: http, https. - protocol?: null | string @go(Protocol,*string) - - // Object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix docs/ (objects in the docs/ folder) to documents/, you can set a condition block with key_prefix_equals set to docs/ and in the redirect set replace_key_prefix_with to /documents. - replaceKeyPrefixWith?: null | string @go(ReplaceKeyPrefixWith,*string) - - // Specific object key to use in the redirect request. For example, redirect request to error.html. - replaceKeyWith?: null | string @go(ReplaceKeyWith,*string) -} - -#RedirectObservation: { - // HTTP redirect code to use on the response. - httpRedirectCode?: null | string @go(HTTPRedirectCode,*string) - - // Name of the host where requests are redirected. - hostName?: null | string @go(HostName,*string) - - // Protocol to use when redirecting requests. The default is the protocol that is used in the original request. Valid values: http, https. - protocol?: null | string @go(Protocol,*string) - - // Object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix docs/ (objects in the docs/ folder) to documents/, you can set a condition block with key_prefix_equals set to docs/ and in the redirect set replace_key_prefix_with to /documents. - replaceKeyPrefixWith?: null | string @go(ReplaceKeyPrefixWith,*string) - - // Specific object key to use in the redirect request. For example, redirect request to error.html. - replaceKeyWith?: null | string @go(ReplaceKeyWith,*string) -} - -#RedirectParameters: { - // HTTP redirect code to use on the response. - // +kubebuilder:validation:Optional - httpRedirectCode?: null | string @go(HTTPRedirectCode,*string) - - // Name of the host where requests are redirected. - // +kubebuilder:validation:Optional - hostName?: null | string @go(HostName,*string) - - // Protocol to use when redirecting requests. The default is the protocol that is used in the original request. Valid values: http, https. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix docs/ (objects in the docs/ folder) to documents/, you can set a condition block with key_prefix_equals set to docs/ and in the redirect set replace_key_prefix_with to /documents. - // +kubebuilder:validation:Optional - replaceKeyPrefixWith?: null | string @go(ReplaceKeyPrefixWith,*string) - - // Specific object key to use in the redirect request. For example, redirect request to error.html. - // +kubebuilder:validation:Optional - replaceKeyWith?: null | string @go(ReplaceKeyWith,*string) -} - -#RoutingRuleInitParameters: { - // Configuration block for describing a condition that must be met for the specified redirect to apply. See below. - condition?: [...#ConditionInitParameters] @go(Condition,[]ConditionInitParameters) - - // Configuration block for redirect information. See below. - redirect?: [...#RedirectInitParameters] @go(Redirect,[]RedirectInitParameters) -} - -#RoutingRuleObservation: { - // Configuration block for describing a condition that must be met for the specified redirect to apply. See below. - condition?: [...#ConditionObservation] @go(Condition,[]ConditionObservation) - - // Configuration block for redirect information. See below. - redirect?: [...#RedirectObservation] @go(Redirect,[]RedirectObservation) -} - -#RoutingRuleParameters: { - // Configuration block for describing a condition that must be met for the specified redirect to apply. See below. - // +kubebuilder:validation:Optional - condition?: [...#ConditionParameters] @go(Condition,[]ConditionParameters) - - // Configuration block for redirect information. See below. - // +kubebuilder:validation:Optional - redirect: [...#RedirectParameters] @go(Redirect,[]RedirectParameters) -} - -// BucketWebsiteConfigurationSpec defines the desired state of BucketWebsiteConfiguration -#BucketWebsiteConfigurationSpec: { - v1.#ResourceSpec - forProvider: #BucketWebsiteConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BucketWebsiteConfigurationInitParameters @go(InitProvider) -} - -// BucketWebsiteConfigurationStatus defines the observed state of BucketWebsiteConfiguration. -#BucketWebsiteConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #BucketWebsiteConfigurationObservation @go(AtProvider) -} - -// BucketWebsiteConfiguration is the Schema for the BucketWebsiteConfigurations API. Provides an S3 bucket website configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BucketWebsiteConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BucketWebsiteConfigurationSpec @go(Spec) - status?: #BucketWebsiteConfigurationStatus @go(Status) -} - -// BucketWebsiteConfigurationList contains a list of BucketWebsiteConfigurations -#BucketWebsiteConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BucketWebsiteConfiguration] @go(Items,[]BucketWebsiteConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 09b6f33..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=s3.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "s3.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_object_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_object_types_go_gen.cue deleted file mode 100644 index 5365aa8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_object_types_go_gen.cue +++ /dev/null @@ -1,330 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ObjectInitParameters: { - // Canned ACL to apply. Valid values are private, public-read, public-read-write, aws-exec-read, authenticated-read, bucket-owner-read, and bucket-owner-full-control. Defaults to private. - acl?: null | string @go(ACL,*string) - - // Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) - - // Caching behavior along the request/reply chain Read w3c cache_control for further details. - cacheControl?: null | string @go(CacheControl,*string) - - // Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. - content?: null | string @go(Content,*string) - - // Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for small content such as the result of the gzipbase64 function with small text strings. For larger objects, use source to stream the content from a disk file. - contentBase64?: null | string @go(ContentBase64,*string) - - // Presentational information for the object. Read w3c content_disposition for further information. - contentDisposition?: null | string @go(ContentDisposition,*string) - - // Content encodings that have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read w3c content encoding for further information. - contentEncoding?: null | string @go(ContentEncoding,*string) - - // Language the content is in e.g., en-US or en-GB. - contentLanguage?: null | string @go(ContentLanguage,*string) - - // Standard MIME type describing the format of the object data, e.g., application/octet-stream. All Valid MIME Types are valid for this input. - contentType?: null | string @go(ContentType,*string) - - // Triggers updates when the value changes.11.11.11 or earlier). This attribute is not compatible with KMS encryption, kms_key_id or server_side_encryption = "aws:kms", also if an object is larger than 16 MB, the AWS Management Console will upload or copy that object as a Multipart Upload, and therefore the ETag will not be an MD5 digest (see source_hash instead). - etag?: null | string @go(Etag,*string) - - // Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has S3 object lock enabled. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Name of the object once it is in the bucket. - key?: null | string @go(Key,*string) - - // Map of keys/values to provision metadata (will be automatically prefixed by x-amz-meta-, note that only lowercase label are currently supported by the AWS Go API). - metadata?: {[string]: null | string} @go(Metadata,map[string]*string) - - // Legal hold status that you want to apply to the specified object. Valid values are ON and OFF. - objectLockLegalHoldStatus?: null | string @go(ObjectLockLegalHoldStatus,*string) - - // Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE and COMPLIANCE. - objectLockMode?: null | string @go(ObjectLockMode,*string) - - // Date and time, in RFC3339 format, when this object's object lock will expire. - objectLockRetainUntilDate?: null | string @go(ObjectLockRetainUntilDate,*string) - - // Server-side encryption of the object in S3. Valid values are "AES256" and "aws:kms". - serverSideEncryption?: null | string @go(ServerSideEncryption,*string) - - // Path to a file that will be read and uploaded as raw bytes for the object content. - source?: null | string @go(Source,*string) - - // Triggers updates like etag but useful to address etag encryption limitations.11.12 or later). (The value is only stored in state and not saved by AWS.) - sourceHash?: null | string @go(SourceHash,*string) - - // Storage Class for the object. Defaults to "STANDARD". - storageClass?: null | string @go(StorageClass,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Target URL for website redirect. - websiteRedirect?: null | string @go(WebsiteRedirect,*string) -} - -#ObjectObservation: { - // Canned ACL to apply. Valid values are private, public-read, public-read-write, aws-exec-read, authenticated-read, bucket-owner-read, and bucket-owner-full-control. Defaults to private. - acl?: null | string @go(ACL,*string) - - // Name of the bucket to put the file in. Alternatively, an S3 access point ARN can be specified. - bucket?: null | string @go(Bucket,*string) - - // Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) - - // Caching behavior along the request/reply chain Read w3c cache_control for further details. - cacheControl?: null | string @go(CacheControl,*string) - - // Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. - content?: null | string @go(Content,*string) - - // Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for small content such as the result of the gzipbase64 function with small text strings. For larger objects, use source to stream the content from a disk file. - contentBase64?: null | string @go(ContentBase64,*string) - - // Presentational information for the object. Read w3c content_disposition for further information. - contentDisposition?: null | string @go(ContentDisposition,*string) - - // Content encodings that have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read w3c content encoding for further information. - contentEncoding?: null | string @go(ContentEncoding,*string) - - // Language the content is in e.g., en-US or en-GB. - contentLanguage?: null | string @go(ContentLanguage,*string) - - // Standard MIME type describing the format of the object data, e.g., application/octet-stream. All Valid MIME Types are valid for this input. - contentType?: null | string @go(ContentType,*string) - - // Triggers updates when the value changes.11.11.11 or earlier). This attribute is not compatible with KMS encryption, kms_key_id or server_side_encryption = "aws:kms", also if an object is larger than 16 MB, the AWS Management Console will upload or copy that object as a Multipart Upload, and therefore the ETag will not be an MD5 digest (see source_hash instead). - etag?: null | string @go(Etag,*string) - - // Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has S3 object lock enabled. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // key of the resource supplied above - id?: null | string @go(ID,*string) - - // ARN of the KMS Key to use for object encryption. If the S3 Bucket has server-side encryption enabled, that value will automatically be used. If referencing the aws_kms_key resource, use the arn attribute. If referencing the aws_kms_alias data source or resource, use the target_key_arn attribute. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Name of the object once it is in the bucket. - key?: null | string @go(Key,*string) - - // Map of keys/values to provision metadata (will be automatically prefixed by x-amz-meta-, note that only lowercase label are currently supported by the AWS Go API). - metadata?: {[string]: null | string} @go(Metadata,map[string]*string) - - // Legal hold status that you want to apply to the specified object. Valid values are ON and OFF. - objectLockLegalHoldStatus?: null | string @go(ObjectLockLegalHoldStatus,*string) - - // Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE and COMPLIANCE. - objectLockMode?: null | string @go(ObjectLockMode,*string) - - // Date and time, in RFC3339 format, when this object's object lock will expire. - objectLockRetainUntilDate?: null | string @go(ObjectLockRetainUntilDate,*string) - - // Server-side encryption of the object in S3. Valid values are "AES256" and "aws:kms". - serverSideEncryption?: null | string @go(ServerSideEncryption,*string) - - // Path to a file that will be read and uploaded as raw bytes for the object content. - source?: null | string @go(Source,*string) - - // Triggers updates like etag but useful to address etag encryption limitations.11.12 or later). (The value is only stored in state and not saved by AWS.) - sourceHash?: null | string @go(SourceHash,*string) - - // Storage Class for the object. Defaults to "STANDARD". - storageClass?: null | string @go(StorageClass,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Unique version ID value for the object, if bucket versioning is enabled. - versionId?: null | string @go(VersionID,*string) - - // Target URL for website redirect. - websiteRedirect?: null | string @go(WebsiteRedirect,*string) -} - -#ObjectParameters: { - // Canned ACL to apply. Valid values are private, public-read, public-read-write, aws-exec-read, authenticated-read, bucket-owner-read, and bucket-owner-full-control. Defaults to private. - // +kubebuilder:validation:Optional - acl?: null | string @go(ACL,*string) - - // Name of the bucket to put the file in. Alternatively, an S3 access point ARN can be specified. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. - // +kubebuilder:validation:Optional - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Caching behavior along the request/reply chain Read w3c cache_control for further details. - // +kubebuilder:validation:Optional - cacheControl?: null | string @go(CacheControl,*string) - - // Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for small content such as the result of the gzipbase64 function with small text strings. For larger objects, use source to stream the content from a disk file. - // +kubebuilder:validation:Optional - contentBase64?: null | string @go(ContentBase64,*string) - - // Presentational information for the object. Read w3c content_disposition for further information. - // +kubebuilder:validation:Optional - contentDisposition?: null | string @go(ContentDisposition,*string) - - // Content encodings that have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read w3c content encoding for further information. - // +kubebuilder:validation:Optional - contentEncoding?: null | string @go(ContentEncoding,*string) - - // Language the content is in e.g., en-US or en-GB. - // +kubebuilder:validation:Optional - contentLanguage?: null | string @go(ContentLanguage,*string) - - // Standard MIME type describing the format of the object data, e.g., application/octet-stream. All Valid MIME Types are valid for this input. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Triggers updates when the value changes.11.11.11 or earlier). This attribute is not compatible with KMS encryption, kms_key_id or server_side_encryption = "aws:kms", also if an object is larger than 16 MB, the AWS Management Console will upload or copy that object as a Multipart Upload, and therefore the ETag will not be an MD5 digest (see source_hash instead). - // +kubebuilder:validation:Optional - etag?: null | string @go(Etag,*string) - - // Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has S3 object lock enabled. - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // ARN of the KMS Key to use for object encryption. If the S3 Bucket has server-side encryption enabled, that value will automatically be used. If referencing the aws_kms_key resource, use the arn attribute. If referencing the aws_kms_alias data source or resource, use the target_key_arn attribute. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Name of the object once it is in the bucket. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Map of keys/values to provision metadata (will be automatically prefixed by x-amz-meta-, note that only lowercase label are currently supported by the AWS Go API). - // +kubebuilder:validation:Optional - metadata?: {[string]: null | string} @go(Metadata,map[string]*string) - - // Legal hold status that you want to apply to the specified object. Valid values are ON and OFF. - // +kubebuilder:validation:Optional - objectLockLegalHoldStatus?: null | string @go(ObjectLockLegalHoldStatus,*string) - - // Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE and COMPLIANCE. - // +kubebuilder:validation:Optional - objectLockMode?: null | string @go(ObjectLockMode,*string) - - // Date and time, in RFC3339 format, when this object's object lock will expire. - // +kubebuilder:validation:Optional - objectLockRetainUntilDate?: null | string @go(ObjectLockRetainUntilDate,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Server-side encryption of the object in S3. Valid values are "AES256" and "aws:kms". - // +kubebuilder:validation:Optional - serverSideEncryption?: null | string @go(ServerSideEncryption,*string) - - // Path to a file that will be read and uploaded as raw bytes for the object content. - // +kubebuilder:validation:Optional - source?: null | string @go(Source,*string) - - // Triggers updates like etag but useful to address etag encryption limitations.11.12 or later). (The value is only stored in state and not saved by AWS.) - // +kubebuilder:validation:Optional - sourceHash?: null | string @go(SourceHash,*string) - - // Storage Class for the object. Defaults to "STANDARD". - // +kubebuilder:validation:Optional - storageClass?: null | string @go(StorageClass,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Target URL for website redirect. - // +kubebuilder:validation:Optional - websiteRedirect?: null | string @go(WebsiteRedirect,*string) -} - -// ObjectSpec defines the desired state of Object -#ObjectSpec: { - v1.#ResourceSpec - forProvider: #ObjectParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ObjectInitParameters @go(InitProvider) -} - -// ObjectStatus defines the observed state of Object. -#ObjectStatus: { - v1.#ResourceStatus - atProvider?: #ObjectObservation @go(AtProvider) -} - -// Object is the Schema for the Objects API. Provides an S3 object resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Object: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.key) || (has(self.initProvider) && has(self.initProvider.key))",message="spec.forProvider.key is a required parameter" - spec: #ObjectSpec @go(Spec) - status?: #ObjectStatus @go(Status) -} - -// ObjectList contains a list of Objects -#ObjectList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Object] @go(Items,[]Object) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_objectcopy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_objectcopy_types_go_gen.cue deleted file mode 100644 index 4a36b65..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3/v1beta1/zz_objectcopy_types_go_gen.cue +++ /dev/null @@ -1,501 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ObjectCopyGrantInitParameters: { - // Email address of the grantee. Used only when type is AmazonCustomerByEmail. - email?: null | string @go(Email,*string) - - // Canonical user ID of the grantee. Used only when type is CanonicalUser. - id?: null | string @go(ID,*string) - - // List of permissions to grant to grantee. Valid values are READ, READ_ACP, WRITE_ACP, FULL_CONTROL. - permissions?: [...null | string] @go(Permissions,[]*string) - - // - Type of grantee. Valid values are CanonicalUser, Group, and AmazonCustomerByEmail. - type?: null | string @go(Type,*string) - - // URI of the grantee group. Used only when type is Group. - uri?: null | string @go(URI,*string) -} - -#ObjectCopyGrantObservation: { - // Email address of the grantee. Used only when type is AmazonCustomerByEmail. - email?: null | string @go(Email,*string) - - // Canonical user ID of the grantee. Used only when type is CanonicalUser. - id?: null | string @go(ID,*string) - - // List of permissions to grant to grantee. Valid values are READ, READ_ACP, WRITE_ACP, FULL_CONTROL. - permissions?: [...null | string] @go(Permissions,[]*string) - - // - Type of grantee. Valid values are CanonicalUser, Group, and AmazonCustomerByEmail. - type?: null | string @go(Type,*string) - - // URI of the grantee group. Used only when type is Group. - uri?: null | string @go(URI,*string) -} - -#ObjectCopyGrantParameters: { - // Email address of the grantee. Used only when type is AmazonCustomerByEmail. - // +kubebuilder:validation:Optional - email?: null | string @go(Email,*string) - - // Canonical user ID of the grantee. Used only when type is CanonicalUser. - // +kubebuilder:validation:Optional - id?: null | string @go(ID,*string) - - // List of permissions to grant to grantee. Valid values are READ, READ_ACP, WRITE_ACP, FULL_CONTROL. - // +kubebuilder:validation:Optional - permissions: [...null | string] @go(Permissions,[]*string) - - // - Type of grantee. Valid values are CanonicalUser, Group, and AmazonCustomerByEmail. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // URI of the grantee group. Used only when type is Group. - // +kubebuilder:validation:Optional - uri?: null | string @go(URI,*string) -} - -#ObjectCopyInitParameters: { - // Canned ACL to apply. Defaults to private. Valid values are private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, and bucket-owner-full-control. Conflicts with grant. - acl?: null | string @go(ACL,*string) - - // Name of the bucket to put the file in. - bucket?: null | string @go(Bucket,*string) - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) - - // Specifies caching behavior along the request/reply chain Read w3c cache_control for further details. - cacheControl?: null | string @go(CacheControl,*string) - - // Specifies presentational information for the object. Read w3c content_disposition for further information. - contentDisposition?: null | string @go(ContentDisposition,*string) - - // Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read w3c content encoding for further information. - contentEncoding?: null | string @go(ContentEncoding,*string) - - // Language the content is in e.g., en-US or en-GB. - contentLanguage?: null | string @go(ContentLanguage,*string) - - // Standard MIME type describing the format of the object data, e.g., application/octet-stream. All Valid MIME Types are valid for this input. - contentType?: null | string @go(ContentType,*string) - - // Copies the object if its entity tag (ETag) matches the specified tag. - copyIfMatch?: null | string @go(CopyIfMatch,*string) - - // Copies the object if it has been modified since the specified time, in RFC3339 format. - copyIfModifiedSince?: null | string @go(CopyIfModifiedSince,*string) - - // Copies the object if its entity tag (ETag) is different than the specified ETag. - copyIfNoneMatch?: null | string @go(CopyIfNoneMatch,*string) - - // Copies the object if it hasn't been modified since the specified time, in RFC3339 format. - copyIfUnmodifiedSince?: null | string @go(CopyIfUnmodifiedSince,*string) - - // Specifies the algorithm to use to when encrypting the object (for example, AES256). - customerAlgorithm?: null | string @go(CustomerAlgorithm,*string) - - // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. - customerKeyMd5?: null | string @go(CustomerKeyMd5,*string) - - // Account id of the expected destination bucket owner. If the destination bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Account id of the expected source bucket owner. If the source bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error. - expectedSourceBucketOwner?: null | string @go(ExpectedSourceBucketOwner,*string) - - // Date and time at which the object is no longer cacheable, in RFC3339 format. - expires?: null | string @go(Expires,*string) - - // Allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has S3 object lock enabled. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Configuration block for header grants. Documented below. Conflicts with acl. - grant?: [...#ObjectCopyGrantInitParameters] @go(Grant,[]ObjectCopyGrantInitParameters) - - // Name of the object once it is in the bucket. - key?: null | string @go(Key,*string) - - // Map of keys/values to provision metadata (will be automatically prefixed by x-amz-meta-, note that only lowercase label are currently supported by the AWS Go API). - metadata?: {[string]: null | string} @go(Metadata,map[string]*string) - - // Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE. - metadataDirective?: null | string @go(MetadataDirective,*string) - - // The legal hold status that you want to apply to the specified object. Valid values are ON and OFF. - objectLockLegalHoldStatus?: null | string @go(ObjectLockLegalHoldStatus,*string) - - // Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE and COMPLIANCE. - objectLockMode?: null | string @go(ObjectLockMode,*string) - - // Date and time, in RFC3339 format, when this object's object lock will expire. - objectLockRetainUntilDate?: null | string @go(ObjectLockRetainUntilDate,*string) - - // Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the Amazon S3 Developer Guide. If included, the only valid value is requester. - requestPayer?: null | string @go(RequestPayer,*string) - - // Specifies server-side encryption of the object in S3. Valid values are AES256 and aws:kms. - serverSideEncryption?: null | string @go(ServerSideEncryption,*string) - - // Specifies the source object for the copy operation. You specify the value in one of two formats. For objects not accessed through an access point, specify the name of the source bucket and the key of the source object, separated by a slash (/). For example, testbucket/test1.json. For objects accessed through access points, specify the ARN of the object as accessed through the access point, in the format arn:aws:s3:::accesspoint//object/. For example, arn:aws:s3:us-west-2:9999912999:accesspoint/my-access-point/object/testbucket/test1.json. - source?: null | string @go(Source,*string) - - // Specifies the algorithm to use when decrypting the source object (for example, AES256). - sourceCustomerAlgorithm?: null | string @go(SourceCustomerAlgorithm,*string) - - // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. - sourceCustomerKeyMd5?: null | string @go(SourceCustomerKeyMd5,*string) - - // Specifies the desired storage class for the object. Defaults to STANDARD. - storageClass?: null | string @go(StorageClass,*string) - - // Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE. - taggingDirective?: null | string @go(TaggingDirective,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies a target URL for website redirect. - websiteRedirect?: null | string @go(WebsiteRedirect,*string) -} - -#ObjectCopyObservation: { - // Canned ACL to apply. Defaults to private. Valid values are private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, and bucket-owner-full-control. Conflicts with grant. - acl?: null | string @go(ACL,*string) - - // Name of the bucket to put the file in. - bucket?: null | string @go(Bucket,*string) - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) - - // Specifies caching behavior along the request/reply chain Read w3c cache_control for further details. - cacheControl?: null | string @go(CacheControl,*string) - - // Specifies presentational information for the object. Read w3c content_disposition for further information. - contentDisposition?: null | string @go(ContentDisposition,*string) - - // Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read w3c content encoding for further information. - contentEncoding?: null | string @go(ContentEncoding,*string) - - // Language the content is in e.g., en-US or en-GB. - contentLanguage?: null | string @go(ContentLanguage,*string) - - // Standard MIME type describing the format of the object data, e.g., application/octet-stream. All Valid MIME Types are valid for this input. - contentType?: null | string @go(ContentType,*string) - - // Copies the object if its entity tag (ETag) matches the specified tag. - copyIfMatch?: null | string @go(CopyIfMatch,*string) - - // Copies the object if it has been modified since the specified time, in RFC3339 format. - copyIfModifiedSince?: null | string @go(CopyIfModifiedSince,*string) - - // Copies the object if its entity tag (ETag) is different than the specified ETag. - copyIfNoneMatch?: null | string @go(CopyIfNoneMatch,*string) - - // Copies the object if it hasn't been modified since the specified time, in RFC3339 format. - copyIfUnmodifiedSince?: null | string @go(CopyIfUnmodifiedSince,*string) - - // Specifies the algorithm to use to when encrypting the object (for example, AES256). - customerAlgorithm?: null | string @go(CustomerAlgorithm,*string) - - // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. - customerKeyMd5?: null | string @go(CustomerKeyMd5,*string) - - // ETag generated for the object (an MD5 sum of the object content). For plaintext objects or objects encrypted with an AWS-managed key, the hash is an MD5 digest of the object data. For objects encrypted with a KMS key or objects created by either the Multipart Upload or Part Copy operation, the hash is not an MD5 digest, regardless of the method of encryption. More information on possible values can be found on Common Response Headers. - etag?: null | string @go(Etag,*string) - - // Account id of the expected destination bucket owner. If the destination bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error. - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Account id of the expected source bucket owner. If the source bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error. - expectedSourceBucketOwner?: null | string @go(ExpectedSourceBucketOwner,*string) - - // If the object expiration is configured, this attribute will be set. - expiration?: null | string @go(Expiration,*string) - - // Date and time at which the object is no longer cacheable, in RFC3339 format. - expires?: null | string @go(Expires,*string) - - // Allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has S3 object lock enabled. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Configuration block for header grants. Documented below. Conflicts with acl. - grant?: [...#ObjectCopyGrantObservation] @go(Grant,[]ObjectCopyGrantObservation) - - // Canonical user ID of the grantee. Used only when type is CanonicalUser. - id?: null | string @go(ID,*string) - - // Name of the object once it is in the bucket. - key?: null | string @go(Key,*string) - - // Returns the date that the object was last modified, in RFC3339 format. - lastModified?: null | string @go(LastModified,*string) - - // Map of keys/values to provision metadata (will be automatically prefixed by x-amz-meta-, note that only lowercase label are currently supported by the AWS Go API). - metadata?: {[string]: null | string} @go(Metadata,map[string]*string) - - // Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE. - metadataDirective?: null | string @go(MetadataDirective,*string) - - // The legal hold status that you want to apply to the specified object. Valid values are ON and OFF. - objectLockLegalHoldStatus?: null | string @go(ObjectLockLegalHoldStatus,*string) - - // Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE and COMPLIANCE. - objectLockMode?: null | string @go(ObjectLockMode,*string) - - // Date and time, in RFC3339 format, when this object's object lock will expire. - objectLockRetainUntilDate?: null | string @go(ObjectLockRetainUntilDate,*string) - - // If present, indicates that the requester was successfully charged for the request. - requestCharged?: null | bool @go(RequestCharged,*bool) - - // Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the Amazon S3 Developer Guide. If included, the only valid value is requester. - requestPayer?: null | string @go(RequestPayer,*string) - - // Specifies server-side encryption of the object in S3. Valid values are AES256 and aws:kms. - serverSideEncryption?: null | string @go(ServerSideEncryption,*string) - - // Specifies the source object for the copy operation. You specify the value in one of two formats. For objects not accessed through an access point, specify the name of the source bucket and the key of the source object, separated by a slash (/). For example, testbucket/test1.json. For objects accessed through access points, specify the ARN of the object as accessed through the access point, in the format arn:aws:s3:::accesspoint//object/. For example, arn:aws:s3:us-west-2:9999912999:accesspoint/my-access-point/object/testbucket/test1.json. - source?: null | string @go(Source,*string) - - // Specifies the algorithm to use when decrypting the source object (for example, AES256). - sourceCustomerAlgorithm?: null | string @go(SourceCustomerAlgorithm,*string) - - // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. - sourceCustomerKeyMd5?: null | string @go(SourceCustomerKeyMd5,*string) - - // Version of the copied object in the source bucket. - sourceVersionId?: null | string @go(SourceVersionID,*string) - - // Specifies the desired storage class for the object. Defaults to STANDARD. - storageClass?: null | string @go(StorageClass,*string) - - // Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE. - taggingDirective?: null | string @go(TaggingDirective,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Version ID of the newly created copy. - versionId?: null | string @go(VersionID,*string) - - // Specifies a target URL for website redirect. - websiteRedirect?: null | string @go(WebsiteRedirect,*string) -} - -#ObjectCopyParameters: { - // Canned ACL to apply. Defaults to private. Valid values are private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, and bucket-owner-full-control. Conflicts with grant. - // +kubebuilder:validation:Optional - acl?: null | string @go(ACL,*string) - - // Name of the bucket to put the file in. - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // +kubebuilder:validation:Optional - bucketKeyEnabled?: null | bool @go(BucketKeyEnabled,*bool) - - // Specifies caching behavior along the request/reply chain Read w3c cache_control for further details. - // +kubebuilder:validation:Optional - cacheControl?: null | string @go(CacheControl,*string) - - // Specifies presentational information for the object. Read w3c content_disposition for further information. - // +kubebuilder:validation:Optional - contentDisposition?: null | string @go(ContentDisposition,*string) - - // Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read w3c content encoding for further information. - // +kubebuilder:validation:Optional - contentEncoding?: null | string @go(ContentEncoding,*string) - - // Language the content is in e.g., en-US or en-GB. - // +kubebuilder:validation:Optional - contentLanguage?: null | string @go(ContentLanguage,*string) - - // Standard MIME type describing the format of the object data, e.g., application/octet-stream. All Valid MIME Types are valid for this input. - // +kubebuilder:validation:Optional - contentType?: null | string @go(ContentType,*string) - - // Copies the object if its entity tag (ETag) matches the specified tag. - // +kubebuilder:validation:Optional - copyIfMatch?: null | string @go(CopyIfMatch,*string) - - // Copies the object if it has been modified since the specified time, in RFC3339 format. - // +kubebuilder:validation:Optional - copyIfModifiedSince?: null | string @go(CopyIfModifiedSince,*string) - - // Copies the object if its entity tag (ETag) is different than the specified ETag. - // +kubebuilder:validation:Optional - copyIfNoneMatch?: null | string @go(CopyIfNoneMatch,*string) - - // Copies the object if it hasn't been modified since the specified time, in RFC3339 format. - // +kubebuilder:validation:Optional - copyIfUnmodifiedSince?: null | string @go(CopyIfUnmodifiedSince,*string) - - // Specifies the algorithm to use to when encrypting the object (for example, AES256). - // +kubebuilder:validation:Optional - customerAlgorithm?: null | string @go(CustomerAlgorithm,*string) - - // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. - // +kubebuilder:validation:Optional - customerKeyMd5?: null | string @go(CustomerKeyMd5,*string) - - // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header. - // +kubebuilder:validation:Optional - customerKeySecretRef?: null | v1.#SecretKeySelector @go(CustomerKeySecretRef,*v1.SecretKeySelector) - - // Account id of the expected destination bucket owner. If the destination bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error. - // +kubebuilder:validation:Optional - expectedBucketOwner?: null | string @go(ExpectedBucketOwner,*string) - - // Account id of the expected source bucket owner. If the source bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error. - // +kubebuilder:validation:Optional - expectedSourceBucketOwner?: null | string @go(ExpectedSourceBucketOwner,*string) - - // Date and time at which the object is no longer cacheable, in RFC3339 format. - // +kubebuilder:validation:Optional - expires?: null | string @go(Expires,*string) - - // Allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has S3 object lock enabled. - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // Configuration block for header grants. Documented below. Conflicts with acl. - // +kubebuilder:validation:Optional - grant?: [...#ObjectCopyGrantParameters] @go(Grant,[]ObjectCopyGrantParameters) - - // Specifies the AWS KMS Encryption Context to use for object encryption. The value is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs. - // +kubebuilder:validation:Optional - kmsEncryptionContextSecretRef?: null | v1.#SecretKeySelector @go(KMSEncryptionContextSecretRef,*v1.SecretKeySelector) - - // Specifies the AWS KMS Key ARN to use for object encryption. This value is a fully qualified ARN of the KMS Key. If using aws_kms_key, use the exported arn attribute: kms_key_id = aws_kms_key.foo.arn - // +kubebuilder:validation:Optional - kmsKeyIdSecretRef?: null | v1.#SecretKeySelector @go(KMSKeyIDSecretRef,*v1.SecretKeySelector) - - // Name of the object once it is in the bucket. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Map of keys/values to provision metadata (will be automatically prefixed by x-amz-meta-, note that only lowercase label are currently supported by the AWS Go API). - // +kubebuilder:validation:Optional - metadata?: {[string]: null | string} @go(Metadata,map[string]*string) - - // Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE. - // +kubebuilder:validation:Optional - metadataDirective?: null | string @go(MetadataDirective,*string) - - // The legal hold status that you want to apply to the specified object. Valid values are ON and OFF. - // +kubebuilder:validation:Optional - objectLockLegalHoldStatus?: null | string @go(ObjectLockLegalHoldStatus,*string) - - // Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE and COMPLIANCE. - // +kubebuilder:validation:Optional - objectLockMode?: null | string @go(ObjectLockMode,*string) - - // Date and time, in RFC3339 format, when this object's object lock will expire. - // +kubebuilder:validation:Optional - objectLockRetainUntilDate?: null | string @go(ObjectLockRetainUntilDate,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the Amazon S3 Developer Guide. If included, the only valid value is requester. - // +kubebuilder:validation:Optional - requestPayer?: null | string @go(RequestPayer,*string) - - // Specifies server-side encryption of the object in S3. Valid values are AES256 and aws:kms. - // +kubebuilder:validation:Optional - serverSideEncryption?: null | string @go(ServerSideEncryption,*string) - - // Specifies the source object for the copy operation. You specify the value in one of two formats. For objects not accessed through an access point, specify the name of the source bucket and the key of the source object, separated by a slash (/). For example, testbucket/test1.json. For objects accessed through access points, specify the ARN of the object as accessed through the access point, in the format arn:aws:s3:::accesspoint//object/. For example, arn:aws:s3:us-west-2:9999912999:accesspoint/my-access-point/object/testbucket/test1.json. - // +kubebuilder:validation:Optional - source?: null | string @go(Source,*string) - - // Specifies the algorithm to use when decrypting the source object (for example, AES256). - // +kubebuilder:validation:Optional - sourceCustomerAlgorithm?: null | string @go(SourceCustomerAlgorithm,*string) - - // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. - // +kubebuilder:validation:Optional - sourceCustomerKeyMd5?: null | string @go(SourceCustomerKeyMd5,*string) - - // Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. The encryption key provided in this header must be one that was used when the source object was created. - // +kubebuilder:validation:Optional - sourceCustomerKeySecretRef?: null | v1.#SecretKeySelector @go(SourceCustomerKeySecretRef,*v1.SecretKeySelector) - - // Specifies the desired storage class for the object. Defaults to STANDARD. - // +kubebuilder:validation:Optional - storageClass?: null | string @go(StorageClass,*string) - - // Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE. - // +kubebuilder:validation:Optional - taggingDirective?: null | string @go(TaggingDirective,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies a target URL for website redirect. - // +kubebuilder:validation:Optional - websiteRedirect?: null | string @go(WebsiteRedirect,*string) -} - -// ObjectCopySpec defines the desired state of ObjectCopy -#ObjectCopySpec: { - v1.#ResourceSpec - forProvider: #ObjectCopyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ObjectCopyInitParameters @go(InitProvider) -} - -// ObjectCopyStatus defines the observed state of ObjectCopy. -#ObjectCopyStatus: { - v1.#ResourceStatus - atProvider?: #ObjectCopyObservation @go(AtProvider) -} - -// ObjectCopy is the Schema for the ObjectCopys API. Provides a resource for copying an S3 object. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ObjectCopy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.bucket) || (has(self.initProvider) && has(self.initProvider.bucket))",message="spec.forProvider.bucket is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.key) || (has(self.initProvider) && has(self.initProvider.key))",message="spec.forProvider.key is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.source) || (has(self.initProvider) && has(self.initProvider.source))",message="spec.forProvider.source is a required parameter" - spec: #ObjectCopySpec @go(Spec) - status?: #ObjectCopyStatus @go(Status) -} - -// ObjectCopyList contains a list of ObjectCopys -#ObjectCopyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ObjectCopy] @go(Items,[]ObjectCopy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_accesspoint_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_accesspoint_types_go_gen.cue deleted file mode 100644 index 3117275..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_accesspoint_types_go_gen.cue +++ /dev/null @@ -1,237 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3control/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessPointInitParameters: { - // AWS account ID for the owner of the bucket for which you want to create an access point. - accountId?: null | string @go(AccountID,*string) - - // AWS account ID associated with the S3 bucket associated with this access point. - bucketAccountId?: null | string @go(BucketAccountID,*string) - - // Name you want to assign to this access point. - name?: null | string @go(Name,*string) - - // Valid JSON document that specifies the policy that you want to apply to this access point. Removing policy from your configuration or setting policy to null or an empty string (i.e., policy = "") will not delete the policy since it could have been set by aws_s3control_access_point_policy. To remove the policy, set it to "{}" (an empty JSON document). - policy?: null | string @go(Policy,*string) - - // Configuration block to manage the PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can enable the configuration options in any combination. Detailed below. - publicAccessBlockConfiguration?: [...#PublicAccessBlockConfigurationInitParameters] @go(PublicAccessBlockConfiguration,[]PublicAccessBlockConfigurationInitParameters) - - // Configuration block to restrict access to this access point to requests from the specified Virtual Private Cloud (VPC). Required for S3 on Outposts. Detailed below. - vpcConfiguration?: [...#VPCConfigurationInitParameters] @go(VPCConfiguration,[]VPCConfigurationInitParameters) -} - -#AccessPointObservation: { - // AWS account ID for the owner of the bucket for which you want to create an access point. - accountId?: null | string @go(AccountID,*string) - - // Alias of the S3 Access Point. - alias?: null | string @go(Alias,*string) - - // ARN of the S3 Access Point. - arn?: null | string @go(Arn,*string) - - // Name of an AWS Partition S3 Bucket or the ARN of S3 on Outposts Bucket that you want to associate this access point with. - bucket?: null | string @go(Bucket,*string) - - // AWS account ID associated with the S3 bucket associated with this access point. - bucketAccountId?: null | string @go(BucketAccountID,*string) - - // DNS domain name of the S3 Access Point in the format name-account_id.s3-accesspoint.region.amazonaws.com. - // Note: S3 access points only support secure access by HTTPS. HTTP isn't supported. - domainName?: null | string @go(DomainName,*string) - - // VPC endpoints for the S3 Access Point. - endpoints?: {[string]: null | string} @go(Endpoints,map[string]*string) - - // Indicates whether this access point currently has a policy that allows public access. - hasPublicAccessPolicy?: null | bool @go(HasPublicAccessPolicy,*bool) - - // For Access Point of an AWS Partition S3 Bucket, the AWS account ID and access point name separated by a colon (:). For S3 on Outposts Bucket, the ARN of the Access Point. - id?: null | string @go(ID,*string) - - // Name you want to assign to this access point. - name?: null | string @go(Name,*string) - - // Indicates whether this access point allows access from the public Internet. Values are VPC (the access point doesn't allow access from the public Internet) and Internet (the access point allows access from the public Internet, subject to the access point and bucket access policies). - networkOrigin?: null | string @go(NetworkOrigin,*string) - - // Valid JSON document that specifies the policy that you want to apply to this access point. Removing policy from your configuration or setting policy to null or an empty string (i.e., policy = "") will not delete the policy since it could have been set by aws_s3control_access_point_policy. To remove the policy, set it to "{}" (an empty JSON document). - policy?: null | string @go(Policy,*string) - - // Configuration block to manage the PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can enable the configuration options in any combination. Detailed below. - publicAccessBlockConfiguration?: [...#PublicAccessBlockConfigurationObservation] @go(PublicAccessBlockConfiguration,[]PublicAccessBlockConfigurationObservation) - - // Configuration block to restrict access to this access point to requests from the specified Virtual Private Cloud (VPC). Required for S3 on Outposts. Detailed below. - vpcConfiguration?: [...#VPCConfigurationObservation] @go(VPCConfiguration,[]VPCConfigurationObservation) -} - -#AccessPointParameters: { - // AWS account ID for the owner of the bucket for which you want to create an access point. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // Name of an AWS Partition S3 Bucket or the ARN of S3 on Outposts Bucket that you want to associate this access point with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // AWS account ID associated with the S3 bucket associated with this access point. - // +kubebuilder:validation:Optional - bucketAccountId?: null | string @go(BucketAccountID,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) - - // Name you want to assign to this access point. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Valid JSON document that specifies the policy that you want to apply to this access point. Removing policy from your configuration or setting policy to null or an empty string (i.e., policy = "") will not delete the policy since it could have been set by aws_s3control_access_point_policy. To remove the policy, set it to "{}" (an empty JSON document). - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Configuration block to manage the PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can enable the configuration options in any combination. Detailed below. - // +kubebuilder:validation:Optional - publicAccessBlockConfiguration?: [...#PublicAccessBlockConfigurationParameters] @go(PublicAccessBlockConfiguration,[]PublicAccessBlockConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block to restrict access to this access point to requests from the specified Virtual Private Cloud (VPC). Required for S3 on Outposts. Detailed below. - // +kubebuilder:validation:Optional - vpcConfiguration?: [...#VPCConfigurationParameters] @go(VPCConfiguration,[]VPCConfigurationParameters) -} - -#PublicAccessBlockConfigurationInitParameters: { - // Whether Amazon S3 should block public ACLs for buckets in this account. Defaults to true. Enabling this setting does not affect existing policies or ACLs. When set to true causes the following behavior: - blockPublicAcls?: null | bool @go(BlockPublicAcls,*bool) - - // Whether Amazon S3 should block public bucket policies for buckets in this account. Defaults to true. Enabling this setting does not affect existing bucket policies. When set to true causes Amazon S3 to: - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // Whether Amazon S3 should ignore public ACLs for buckets in this account. Defaults to true. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to true causes Amazon S3 to: - ignorePublicAcls?: null | bool @go(IgnorePublicAcls,*bool) - - // Whether Amazon S3 should restrict public bucket policies for buckets in this account. Defaults to true. Enabling this setting does not affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked. When set to true: - restrictPublicBuckets?: null | bool @go(RestrictPublicBuckets,*bool) -} - -#PublicAccessBlockConfigurationObservation: { - // Whether Amazon S3 should block public ACLs for buckets in this account. Defaults to true. Enabling this setting does not affect existing policies or ACLs. When set to true causes the following behavior: - blockPublicAcls?: null | bool @go(BlockPublicAcls,*bool) - - // Whether Amazon S3 should block public bucket policies for buckets in this account. Defaults to true. Enabling this setting does not affect existing bucket policies. When set to true causes Amazon S3 to: - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // Whether Amazon S3 should ignore public ACLs for buckets in this account. Defaults to true. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to true causes Amazon S3 to: - ignorePublicAcls?: null | bool @go(IgnorePublicAcls,*bool) - - // Whether Amazon S3 should restrict public bucket policies for buckets in this account. Defaults to true. Enabling this setting does not affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked. When set to true: - restrictPublicBuckets?: null | bool @go(RestrictPublicBuckets,*bool) -} - -#PublicAccessBlockConfigurationParameters: { - // Whether Amazon S3 should block public ACLs for buckets in this account. Defaults to true. Enabling this setting does not affect existing policies or ACLs. When set to true causes the following behavior: - // +kubebuilder:validation:Optional - blockPublicAcls?: null | bool @go(BlockPublicAcls,*bool) - - // Whether Amazon S3 should block public bucket policies for buckets in this account. Defaults to true. Enabling this setting does not affect existing bucket policies. When set to true causes Amazon S3 to: - // +kubebuilder:validation:Optional - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // Whether Amazon S3 should ignore public ACLs for buckets in this account. Defaults to true. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to true causes Amazon S3 to: - // +kubebuilder:validation:Optional - ignorePublicAcls?: null | bool @go(IgnorePublicAcls,*bool) - - // Whether Amazon S3 should restrict public bucket policies for buckets in this account. Defaults to true. Enabling this setting does not affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked. When set to true: - // +kubebuilder:validation:Optional - restrictPublicBuckets?: null | bool @go(RestrictPublicBuckets,*bool) -} - -#VPCConfigurationInitParameters: { -} - -#VPCConfigurationObservation: { - // This access point will only allow connections from the specified VPC ID. - vpcId?: null | string @go(VPCID,*string) -} - -#VPCConfigurationParameters: { - // This access point will only allow connections from the specified VPC ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -// AccessPointSpec defines the desired state of AccessPoint -#AccessPointSpec: { - v1.#ResourceSpec - forProvider: #AccessPointParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccessPointInitParameters @go(InitProvider) -} - -// AccessPointStatus defines the observed state of AccessPoint. -#AccessPointStatus: { - v1.#ResourceStatus - atProvider?: #AccessPointObservation @go(AtProvider) -} - -// AccessPoint is the Schema for the AccessPoints API. Manages an S3 Access Point. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AccessPoint: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #AccessPointSpec @go(Spec) - status?: #AccessPointStatus @go(Status) -} - -// AccessPointList contains a list of AccessPoints -#AccessPointList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AccessPoint] @go(Items,[]AccessPoint) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_accesspointpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_accesspointpolicy_types_go_gen.cue deleted file mode 100644 index db13c94..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_accesspointpolicy_types_go_gen.cue +++ /dev/null @@ -1,101 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3control/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccessPointPolicyInitParameters: { - // The policy that you want to apply to the specified access point. - policy?: null | string @go(Policy,*string) -} - -#AccessPointPolicyObservation: { - // The ARN of the access point that you want to associate with the specified policy. - accessPointArn?: null | string @go(AccessPointArn,*string) - - // Indicates whether this access point currently has a policy that allows public access. - hasPublicAccessPolicy?: null | bool @go(HasPublicAccessPolicy,*bool) - - // The AWS account ID and access point name separated by a colon (:). - id?: null | string @go(ID,*string) - - // The policy that you want to apply to the specified access point. - policy?: null | string @go(Policy,*string) -} - -#AccessPointPolicyParameters: { - // The ARN of the access point that you want to associate with the specified policy. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3control/v1beta1.AccessPoint - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - accessPointArn?: null | string @go(AccessPointArn,*string) - - // Reference to a AccessPoint in s3control to populate accessPointArn. - // +kubebuilder:validation:Optional - accessPointArnRef?: null | v1.#Reference @go(AccessPointArnRef,*v1.Reference) - - // Selector for a AccessPoint in s3control to populate accessPointArn. - // +kubebuilder:validation:Optional - accessPointArnSelector?: null | v1.#Selector @go(AccessPointArnSelector,*v1.Selector) - - // The policy that you want to apply to the specified access point. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// AccessPointPolicySpec defines the desired state of AccessPointPolicy -#AccessPointPolicySpec: { - v1.#ResourceSpec - forProvider: #AccessPointPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccessPointPolicyInitParameters @go(InitProvider) -} - -// AccessPointPolicyStatus defines the observed state of AccessPointPolicy. -#AccessPointPolicyStatus: { - v1.#ResourceStatus - atProvider?: #AccessPointPolicyObservation @go(AtProvider) -} - -// AccessPointPolicy is the Schema for the AccessPointPolicys API. Provides a resource to manage an S3 Access Point resource policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AccessPointPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #AccessPointPolicySpec @go(Spec) - status?: #AccessPointPolicyStatus @go(Status) -} - -// AccessPointPolicyList contains a list of AccessPointPolicys -#AccessPointPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AccessPointPolicy] @go(Items,[]AccessPointPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_accountpublicaccessblock_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_accountpublicaccessblock_types_go_gen.cue deleted file mode 100644 index cd1ad9d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_accountpublicaccessblock_types_go_gen.cue +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3control/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountPublicAccessBlockInitParameters: { - // AWS account ID to configure. - accountId?: null | string @go(AccountID,*string) - - // Whether Amazon S3 should block public ACLs for buckets in this account. Defaults to false. Enabling this setting does not affect existing policies or ACLs. When set to true causes the following behavior: - blockPublicAcls?: null | bool @go(BlockPublicAcls,*bool) - - // Whether Amazon S3 should block public bucket policies for buckets in this account. Defaults to false. Enabling this setting does not affect existing bucket policies. When set to true causes Amazon S3 to: - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // Whether Amazon S3 should ignore public ACLs for buckets in this account. Defaults to false. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to true causes Amazon S3 to: - ignorePublicAcls?: null | bool @go(IgnorePublicAcls,*bool) - - // Whether Amazon S3 should restrict public bucket policies for buckets in this account. Defaults to false. Enabling this setting does not affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked. When set to true: - restrictPublicBuckets?: null | bool @go(RestrictPublicBuckets,*bool) -} - -#AccountPublicAccessBlockObservation: { - // AWS account ID to configure. - accountId?: null | string @go(AccountID,*string) - - // Whether Amazon S3 should block public ACLs for buckets in this account. Defaults to false. Enabling this setting does not affect existing policies or ACLs. When set to true causes the following behavior: - blockPublicAcls?: null | bool @go(BlockPublicAcls,*bool) - - // Whether Amazon S3 should block public bucket policies for buckets in this account. Defaults to false. Enabling this setting does not affect existing bucket policies. When set to true causes Amazon S3 to: - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // AWS account ID - id?: null | string @go(ID,*string) - - // Whether Amazon S3 should ignore public ACLs for buckets in this account. Defaults to false. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to true causes Amazon S3 to: - ignorePublicAcls?: null | bool @go(IgnorePublicAcls,*bool) - - // Whether Amazon S3 should restrict public bucket policies for buckets in this account. Defaults to false. Enabling this setting does not affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked. When set to true: - restrictPublicBuckets?: null | bool @go(RestrictPublicBuckets,*bool) -} - -#AccountPublicAccessBlockParameters: { - // AWS account ID to configure. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // Whether Amazon S3 should block public ACLs for buckets in this account. Defaults to false. Enabling this setting does not affect existing policies or ACLs. When set to true causes the following behavior: - // +kubebuilder:validation:Optional - blockPublicAcls?: null | bool @go(BlockPublicAcls,*bool) - - // Whether Amazon S3 should block public bucket policies for buckets in this account. Defaults to false. Enabling this setting does not affect existing bucket policies. When set to true causes Amazon S3 to: - // +kubebuilder:validation:Optional - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // Whether Amazon S3 should ignore public ACLs for buckets in this account. Defaults to false. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to true causes Amazon S3 to: - // +kubebuilder:validation:Optional - ignorePublicAcls?: null | bool @go(IgnorePublicAcls,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Whether Amazon S3 should restrict public bucket policies for buckets in this account. Defaults to false. Enabling this setting does not affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked. When set to true: - // +kubebuilder:validation:Optional - restrictPublicBuckets?: null | bool @go(RestrictPublicBuckets,*bool) -} - -// AccountPublicAccessBlockSpec defines the desired state of AccountPublicAccessBlock -#AccountPublicAccessBlockSpec: { - v1.#ResourceSpec - forProvider: #AccountPublicAccessBlockParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccountPublicAccessBlockInitParameters @go(InitProvider) -} - -// AccountPublicAccessBlockStatus defines the observed state of AccountPublicAccessBlock. -#AccountPublicAccessBlockStatus: { - v1.#ResourceStatus - atProvider?: #AccountPublicAccessBlockObservation @go(AtProvider) -} - -// AccountPublicAccessBlock is the Schema for the AccountPublicAccessBlocks API. Manages S3 account-level Public Access Block Configuration -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AccountPublicAccessBlock: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AccountPublicAccessBlockSpec @go(Spec) - status?: #AccountPublicAccessBlockStatus @go(Status) -} - -// AccountPublicAccessBlockList contains a list of AccountPublicAccessBlocks -#AccountPublicAccessBlockList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AccountPublicAccessBlock] @go(Items,[]AccountPublicAccessBlock) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index b4e336d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3control/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=s3control.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "s3control.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_multiregionaccesspoint_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_multiregionaccesspoint_types_go_gen.cue deleted file mode 100644 index 6d3161b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_multiregionaccesspoint_types_go_gen.cue +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3control/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DetailsInitParameters: { - // The name of the Multi-Region Access Point. - name?: null | string @go(Name,*string) - - // Configuration block to manage the PublicAccessBlock configuration that you want to apply to this Multi-Region Access Point. You can enable the configuration options in any combination. See Public Access Block Configuration below for more details. - publicAccessBlock?: [...#PublicAccessBlockInitParameters] @go(PublicAccessBlock,[]PublicAccessBlockInitParameters) -} - -#DetailsObservation: { - // The name of the Multi-Region Access Point. - name?: null | string @go(Name,*string) - - // Configuration block to manage the PublicAccessBlock configuration that you want to apply to this Multi-Region Access Point. You can enable the configuration options in any combination. See Public Access Block Configuration below for more details. - publicAccessBlock?: [...#PublicAccessBlockObservation] @go(PublicAccessBlock,[]PublicAccessBlockObservation) - - // The Region configuration block to specify the bucket associated with the Multi-Region Access Point. See Region Configuration below for more details. - region?: [...#RegionObservation] @go(Region,[]RegionObservation) -} - -#DetailsParameters: { - // The name of the Multi-Region Access Point. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Configuration block to manage the PublicAccessBlock configuration that you want to apply to this Multi-Region Access Point. You can enable the configuration options in any combination. See Public Access Block Configuration below for more details. - // +kubebuilder:validation:Optional - publicAccessBlock?: [...#PublicAccessBlockParameters] @go(PublicAccessBlock,[]PublicAccessBlockParameters) - - // The Region configuration block to specify the bucket associated with the Multi-Region Access Point. See Region Configuration below for more details. - // +kubebuilder:validation:Required - region: [...#RegionParameters] @go(Region,[]RegionParameters) -} - -#MultiRegionAccessPointInitParameters: { - // The AWS account ID for the owner of the buckets for which you want to create a Multi-Region Access Point. - accountId?: null | string @go(AccountID,*string) - - // A configuration block containing details about the Multi-Region Access Point. See Details Configuration Block below for more details - details?: [...#DetailsInitParameters] @go(Details,[]DetailsInitParameters) -} - -#MultiRegionAccessPointObservation: { - // The AWS account ID for the owner of the buckets for which you want to create a Multi-Region Access Point. - accountId?: null | string @go(AccountID,*string) - - // The alias for the Multi-Region Access Point. - alias?: null | string @go(Alias,*string) - - // Amazon Resource Name (ARN) of the Multi-Region Access Point. - arn?: null | string @go(Arn,*string) - - // A configuration block containing details about the Multi-Region Access Point. See Details Configuration Block below for more details - details?: [...#DetailsObservation] @go(Details,[]DetailsObservation) - - // The DNS domain name of the S3 Multi-Region Access Point in the format alias.accesspoint.s3-global.amazonaws.com. For more information, see the documentation on Multi-Region Access Point Requests. - domainName?: null | string @go(DomainName,*string) - - // The AWS account ID and access point name separated by a colon (:). - id?: null | string @go(ID,*string) - - // The current status of the Multi-Region Access Point. One of: READY, INCONSISTENT_ACROSS_REGIONS, CREATING, PARTIALLY_CREATED, PARTIALLY_DELETED, DELETING. - status?: null | string @go(Status,*string) -} - -#MultiRegionAccessPointParameters: { - // The AWS account ID for the owner of the buckets for which you want to create a Multi-Region Access Point. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // A configuration block containing details about the Multi-Region Access Point. See Details Configuration Block below for more details - // +kubebuilder:validation:Optional - details?: [...#DetailsParameters] @go(Details,[]DetailsParameters) - - // The Region configuration block to specify the bucket associated with the Multi-Region Access Point. See Region Configuration below for more details. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#PublicAccessBlockInitParameters: { - // Whether Amazon S3 should block public ACLs for buckets in this account. Defaults to true. Enabling this setting does not affect existing policies or ACLs. When set to true causes the following behavior: - blockPublicAcls?: null | bool @go(BlockPublicAcls,*bool) - - // Whether Amazon S3 should block public bucket policies for buckets in this account. Defaults to true. Enabling this setting does not affect existing bucket policies. When set to true causes Amazon S3 to: - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // Whether Amazon S3 should ignore public ACLs for buckets in this account. Defaults to true. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to true causes Amazon S3 to: - ignorePublicAcls?: null | bool @go(IgnorePublicAcls,*bool) - - // Whether Amazon S3 should restrict public bucket policies for buckets in this account. Defaults to true. Enabling this setting does not affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked. When set to true: - restrictPublicBuckets?: null | bool @go(RestrictPublicBuckets,*bool) -} - -#PublicAccessBlockObservation: { - // Whether Amazon S3 should block public ACLs for buckets in this account. Defaults to true. Enabling this setting does not affect existing policies or ACLs. When set to true causes the following behavior: - blockPublicAcls?: null | bool @go(BlockPublicAcls,*bool) - - // Whether Amazon S3 should block public bucket policies for buckets in this account. Defaults to true. Enabling this setting does not affect existing bucket policies. When set to true causes Amazon S3 to: - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // Whether Amazon S3 should ignore public ACLs for buckets in this account. Defaults to true. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to true causes Amazon S3 to: - ignorePublicAcls?: null | bool @go(IgnorePublicAcls,*bool) - - // Whether Amazon S3 should restrict public bucket policies for buckets in this account. Defaults to true. Enabling this setting does not affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked. When set to true: - restrictPublicBuckets?: null | bool @go(RestrictPublicBuckets,*bool) -} - -#PublicAccessBlockParameters: { - // Whether Amazon S3 should block public ACLs for buckets in this account. Defaults to true. Enabling this setting does not affect existing policies or ACLs. When set to true causes the following behavior: - // +kubebuilder:validation:Optional - blockPublicAcls?: null | bool @go(BlockPublicAcls,*bool) - - // Whether Amazon S3 should block public bucket policies for buckets in this account. Defaults to true. Enabling this setting does not affect existing bucket policies. When set to true causes Amazon S3 to: - // +kubebuilder:validation:Optional - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // Whether Amazon S3 should ignore public ACLs for buckets in this account. Defaults to true. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to true causes Amazon S3 to: - // +kubebuilder:validation:Optional - ignorePublicAcls?: null | bool @go(IgnorePublicAcls,*bool) - - // Whether Amazon S3 should restrict public bucket policies for buckets in this account. Defaults to true. Enabling this setting does not affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked. When set to true: - // +kubebuilder:validation:Optional - restrictPublicBuckets?: null | bool @go(RestrictPublicBuckets,*bool) -} - -#RegionInitParameters: { -} - -#RegionObservation: { - // The name of the associated bucket for the Region. - bucket?: null | string @go(Bucket,*string) -} - -#RegionParameters: { - // The name of the associated bucket for the Region. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Reference to a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketRef?: null | v1.#Reference @go(BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucket. - // +kubebuilder:validation:Optional - bucketSelector?: null | v1.#Selector @go(BucketSelector,*v1.Selector) -} - -// MultiRegionAccessPointSpec defines the desired state of MultiRegionAccessPoint -#MultiRegionAccessPointSpec: { - v1.#ResourceSpec - forProvider: #MultiRegionAccessPointParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MultiRegionAccessPointInitParameters @go(InitProvider) -} - -// MultiRegionAccessPointStatus defines the observed state of MultiRegionAccessPoint. -#MultiRegionAccessPointStatus: { - v1.#ResourceStatus - atProvider?: #MultiRegionAccessPointObservation @go(AtProvider) -} - -// MultiRegionAccessPoint is the Schema for the MultiRegionAccessPoints API. Provides a resource to manage an S3 Multi-Region Access Point associated with specified buckets. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MultiRegionAccessPoint: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.details) || (has(self.initProvider) && has(self.initProvider.details))",message="spec.forProvider.details is a required parameter" - spec: #MultiRegionAccessPointSpec @go(Spec) - status?: #MultiRegionAccessPointStatus @go(Status) -} - -// MultiRegionAccessPointList contains a list of MultiRegionAccessPoints -#MultiRegionAccessPointList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MultiRegionAccessPoint] @go(Items,[]MultiRegionAccessPoint) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_multiregionaccesspointpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_multiregionaccesspointpolicy_types_go_gen.cue deleted file mode 100644 index c9c6571..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_multiregionaccesspointpolicy_types_go_gen.cue +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3control/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MultiRegionAccessPointPolicyDetailsInitParameters: { - // The name of the Multi-Region Access Point. - name?: null | string @go(Name,*string) - - // A valid JSON document that specifies the policy that you want to associate with this Multi-Region Access Point. Once applied, the policy can be edited, but not deleted. For more information, see the documentation on Multi-Region Access Point Permissions. - policy?: null | string @go(Policy,*string) -} - -#MultiRegionAccessPointPolicyDetailsObservation: { - // The name of the Multi-Region Access Point. - name?: null | string @go(Name,*string) - - // A valid JSON document that specifies the policy that you want to associate with this Multi-Region Access Point. Once applied, the policy can be edited, but not deleted. For more information, see the documentation on Multi-Region Access Point Permissions. - policy?: null | string @go(Policy,*string) -} - -#MultiRegionAccessPointPolicyDetailsParameters: { - // The name of the Multi-Region Access Point. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A valid JSON document that specifies the policy that you want to associate with this Multi-Region Access Point. Once applied, the policy can be edited, but not deleted. For more information, see the documentation on Multi-Region Access Point Permissions. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) -} - -#MultiRegionAccessPointPolicyInitParameters: { - // The AWS account ID for the owner of the Multi-Region Access Point. - accountId?: null | string @go(AccountID,*string) - - // A configuration block containing details about the policy for the Multi-Region Access Point. See Details Configuration Block below for more details - details?: [...#MultiRegionAccessPointPolicyDetailsInitParameters] @go(Details,[]MultiRegionAccessPointPolicyDetailsInitParameters) -} - -#MultiRegionAccessPointPolicyObservation: { - // The AWS account ID for the owner of the Multi-Region Access Point. - accountId?: null | string @go(AccountID,*string) - - // A configuration block containing details about the policy for the Multi-Region Access Point. See Details Configuration Block below for more details - details?: [...#MultiRegionAccessPointPolicyDetailsObservation] @go(Details,[]MultiRegionAccessPointPolicyDetailsObservation) - - // The last established policy for the Multi-Region Access Point. - established?: null | string @go(Established,*string) - - // The AWS account ID and access point name separated by a colon (:). - id?: null | string @go(ID,*string) - - // The proposed policy for the Multi-Region Access Point. - proposed?: null | string @go(Proposed,*string) -} - -#MultiRegionAccessPointPolicyParameters: { - // The AWS account ID for the owner of the Multi-Region Access Point. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // A configuration block containing details about the policy for the Multi-Region Access Point. See Details Configuration Block below for more details - // +kubebuilder:validation:Optional - details?: [...#MultiRegionAccessPointPolicyDetailsParameters] @go(Details,[]MultiRegionAccessPointPolicyDetailsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// MultiRegionAccessPointPolicySpec defines the desired state of MultiRegionAccessPointPolicy -#MultiRegionAccessPointPolicySpec: { - v1.#ResourceSpec - forProvider: #MultiRegionAccessPointPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MultiRegionAccessPointPolicyInitParameters @go(InitProvider) -} - -// MultiRegionAccessPointPolicyStatus defines the observed state of MultiRegionAccessPointPolicy. -#MultiRegionAccessPointPolicyStatus: { - v1.#ResourceStatus - atProvider?: #MultiRegionAccessPointPolicyObservation @go(AtProvider) -} - -// MultiRegionAccessPointPolicy is the Schema for the MultiRegionAccessPointPolicys API. Provides a resource to manage an S3 Multi-Region Access Point access control policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MultiRegionAccessPointPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.details) || (has(self.initProvider) && has(self.initProvider.details))",message="spec.forProvider.details is a required parameter" - spec: #MultiRegionAccessPointPolicySpec @go(Spec) - status?: #MultiRegionAccessPointPolicyStatus @go(Status) -} - -// MultiRegionAccessPointPolicyList contains a list of MultiRegionAccessPointPolicys -#MultiRegionAccessPointPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MultiRegionAccessPointPolicy] @go(Items,[]MultiRegionAccessPointPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_objectlambdaaccesspoint_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_objectlambdaaccesspoint_types_go_gen.cue deleted file mode 100644 index 46bc023..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_objectlambdaaccesspoint_types_go_gen.cue +++ /dev/null @@ -1,233 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3control/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AwsLambdaInitParameters: { - // Additional JSON that provides supplemental data to the Lambda function used to transform objects. - functionPayload?: null | string @go(FunctionPayload,*string) -} - -#AwsLambdaObservation: { - // The Amazon Resource Name (ARN) of the AWS Lambda function. - functionArn?: null | string @go(FunctionArn,*string) - - // Additional JSON that provides supplemental data to the Lambda function used to transform objects. - functionPayload?: null | string @go(FunctionPayload,*string) -} - -#AwsLambdaParameters: { - // The Amazon Resource Name (ARN) of the AWS Lambda function. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - functionArn?: null | string @go(FunctionArn,*string) - - // Reference to a Function in lambda to populate functionArn. - // +kubebuilder:validation:Optional - functionArnRef?: null | v1.#Reference @go(FunctionArnRef,*v1.Reference) - - // Selector for a Function in lambda to populate functionArn. - // +kubebuilder:validation:Optional - functionArnSelector?: null | v1.#Selector @go(FunctionArnSelector,*v1.Selector) - - // Additional JSON that provides supplemental data to the Lambda function used to transform objects. - // +kubebuilder:validation:Optional - functionPayload?: null | string @go(FunctionPayload,*string) -} - -#ConfigurationInitParameters: { - // Allowed features. Valid values: GetObject-Range, GetObject-PartNumber. - allowedFeatures?: [...null | string] @go(AllowedFeatures,[]*string) - - // Whether or not the CloudWatch metrics configuration is enabled. - cloudWatchMetricsEnabled?: null | bool @go(CloudWatchMetricsEnabled,*bool) - - // List of transformation configurations for the Object Lambda Access Point. See Transformation Configuration below for more details. - transformationConfiguration?: [...#TransformationConfigurationInitParameters] @go(TransformationConfiguration,[]TransformationConfigurationInitParameters) -} - -#ConfigurationObservation: { - // Allowed features. Valid values: GetObject-Range, GetObject-PartNumber. - allowedFeatures?: [...null | string] @go(AllowedFeatures,[]*string) - - // Whether or not the CloudWatch metrics configuration is enabled. - cloudWatchMetricsEnabled?: null | bool @go(CloudWatchMetricsEnabled,*bool) - - // Standard access point associated with the Object Lambda Access Point. - supportingAccessPoint?: null | string @go(SupportingAccessPoint,*string) - - // List of transformation configurations for the Object Lambda Access Point. See Transformation Configuration below for more details. - transformationConfiguration?: [...#TransformationConfigurationObservation] @go(TransformationConfiguration,[]TransformationConfigurationObservation) -} - -#ConfigurationParameters: { - // Allowed features. Valid values: GetObject-Range, GetObject-PartNumber. - // +kubebuilder:validation:Optional - allowedFeatures?: [...null | string] @go(AllowedFeatures,[]*string) - - // Whether or not the CloudWatch metrics configuration is enabled. - // +kubebuilder:validation:Optional - cloudWatchMetricsEnabled?: null | bool @go(CloudWatchMetricsEnabled,*bool) - - // Standard access point associated with the Object Lambda Access Point. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3control/v1beta1.AccessPoint - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - supportingAccessPoint?: null | string @go(SupportingAccessPoint,*string) - - // Reference to a AccessPoint in s3control to populate supportingAccessPoint. - // +kubebuilder:validation:Optional - supportingAccessPointRef?: null | v1.#Reference @go(SupportingAccessPointRef,*v1.Reference) - - // Selector for a AccessPoint in s3control to populate supportingAccessPoint. - // +kubebuilder:validation:Optional - supportingAccessPointSelector?: null | v1.#Selector @go(SupportingAccessPointSelector,*v1.Selector) - - // List of transformation configurations for the Object Lambda Access Point. See Transformation Configuration below for more details. - // +kubebuilder:validation:Optional - transformationConfiguration: [...#TransformationConfigurationParameters] @go(TransformationConfiguration,[]TransformationConfigurationParameters) -} - -#ContentTransformationInitParameters: { - // Configuration for an AWS Lambda function. See AWS Lambda below for more details. - awsLambda?: [...#AwsLambdaInitParameters] @go(AwsLambda,[]AwsLambdaInitParameters) -} - -#ContentTransformationObservation: { - // Configuration for an AWS Lambda function. See AWS Lambda below for more details. - awsLambda?: [...#AwsLambdaObservation] @go(AwsLambda,[]AwsLambdaObservation) -} - -#ContentTransformationParameters: { - // Configuration for an AWS Lambda function. See AWS Lambda below for more details. - // +kubebuilder:validation:Optional - awsLambda: [...#AwsLambdaParameters] @go(AwsLambda,[]AwsLambdaParameters) -} - -#ObjectLambdaAccessPointInitParameters: { - // The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. - accountId?: null | string @go(AccountID,*string) - - // A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details. - configuration?: [...#ConfigurationInitParameters] @go(Configuration,[]ConfigurationInitParameters) - - // The name for this Object Lambda Access Point. - name?: null | string @go(Name,*string) -} - -#ObjectLambdaAccessPointObservation: { - // The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. - accountId?: null | string @go(AccountID,*string) - - // Amazon Resource Name (ARN) of the Object Lambda Access Point. - arn?: null | string @go(Arn,*string) - - // A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details. - configuration?: [...#ConfigurationObservation] @go(Configuration,[]ConfigurationObservation) - - // The AWS account ID and access point name separated by a colon (:). - id?: null | string @go(ID,*string) - - // The name for this Object Lambda Access Point. - name?: null | string @go(Name,*string) -} - -#ObjectLambdaAccessPointParameters: { - // The AWS account ID for the owner of the bucket for which you want to create an Object Lambda Access Point. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // A configuration block containing details about the Object Lambda Access Point. See Configuration below for more details. - // +kubebuilder:validation:Optional - configuration?: [...#ConfigurationParameters] @go(Configuration,[]ConfigurationParameters) - - // The name for this Object Lambda Access Point. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#TransformationConfigurationInitParameters: { - // The actions of an Object Lambda Access Point configuration. Valid values: GetObject. - actions?: [...null | string] @go(Actions,[]*string) - - // The content transformation of an Object Lambda Access Point configuration. See Content Transformation below for more details. - contentTransformation?: [...#ContentTransformationInitParameters] @go(ContentTransformation,[]ContentTransformationInitParameters) -} - -#TransformationConfigurationObservation: { - // The actions of an Object Lambda Access Point configuration. Valid values: GetObject. - actions?: [...null | string] @go(Actions,[]*string) - - // The content transformation of an Object Lambda Access Point configuration. See Content Transformation below for more details. - contentTransformation?: [...#ContentTransformationObservation] @go(ContentTransformation,[]ContentTransformationObservation) -} - -#TransformationConfigurationParameters: { - // The actions of an Object Lambda Access Point configuration. Valid values: GetObject. - // +kubebuilder:validation:Optional - actions: [...null | string] @go(Actions,[]*string) - - // The content transformation of an Object Lambda Access Point configuration. See Content Transformation below for more details. - // +kubebuilder:validation:Optional - contentTransformation: [...#ContentTransformationParameters] @go(ContentTransformation,[]ContentTransformationParameters) -} - -// ObjectLambdaAccessPointSpec defines the desired state of ObjectLambdaAccessPoint -#ObjectLambdaAccessPointSpec: { - v1.#ResourceSpec - forProvider: #ObjectLambdaAccessPointParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ObjectLambdaAccessPointInitParameters @go(InitProvider) -} - -// ObjectLambdaAccessPointStatus defines the observed state of ObjectLambdaAccessPoint. -#ObjectLambdaAccessPointStatus: { - v1.#ResourceStatus - atProvider?: #ObjectLambdaAccessPointObservation @go(AtProvider) -} - -// ObjectLambdaAccessPoint is the Schema for the ObjectLambdaAccessPoints API. Provides a resource to manage an S3 Object Lambda Access Point. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ObjectLambdaAccessPoint: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.configuration) || (has(self.initProvider) && has(self.initProvider.configuration))",message="spec.forProvider.configuration is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ObjectLambdaAccessPointSpec @go(Spec) - status?: #ObjectLambdaAccessPointStatus @go(Status) -} - -// ObjectLambdaAccessPointList contains a list of ObjectLambdaAccessPoints -#ObjectLambdaAccessPointList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ObjectLambdaAccessPoint] @go(Items,[]ObjectLambdaAccessPoint) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_objectlambdaaccesspointpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_objectlambdaaccesspointpolicy_types_go_gen.cue deleted file mode 100644 index 61f250d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_objectlambdaaccesspointpolicy_types_go_gen.cue +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3control/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ObjectLambdaAccessPointPolicyInitParameters: { - // The AWS account ID for the account that owns the Object Lambda Access Point. - accountId?: null | string @go(AccountID,*string) - - // The Object Lambda Access Point resource policy document. - policy?: null | string @go(Policy,*string) -} - -#ObjectLambdaAccessPointPolicyObservation: { - // The AWS account ID for the account that owns the Object Lambda Access Point. - accountId?: null | string @go(AccountID,*string) - - // Indicates whether this access point currently has a policy that allows public access. - hasPublicAccessPolicy?: null | bool @go(HasPublicAccessPolicy,*bool) - - // The AWS account ID and access point name separated by a colon (:). - id?: null | string @go(ID,*string) - - // The name of the Object Lambda Access Point. - name?: null | string @go(Name,*string) - - // The Object Lambda Access Point resource policy document. - policy?: null | string @go(Policy,*string) -} - -#ObjectLambdaAccessPointPolicyParameters: { - // The AWS account ID for the account that owns the Object Lambda Access Point. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // The name of the Object Lambda Access Point. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3control/v1beta1.ObjectLambdaAccessPoint - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false) - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Reference to a ObjectLambdaAccessPoint in s3control to populate name. - // +kubebuilder:validation:Optional - nameRef?: null | v1.#Reference @go(NameRef,*v1.Reference) - - // Selector for a ObjectLambdaAccessPoint in s3control to populate name. - // +kubebuilder:validation:Optional - nameSelector?: null | v1.#Selector @go(NameSelector,*v1.Selector) - - // The Object Lambda Access Point resource policy document. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ObjectLambdaAccessPointPolicySpec defines the desired state of ObjectLambdaAccessPointPolicy -#ObjectLambdaAccessPointPolicySpec: { - v1.#ResourceSpec - forProvider: #ObjectLambdaAccessPointPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ObjectLambdaAccessPointPolicyInitParameters @go(InitProvider) -} - -// ObjectLambdaAccessPointPolicyStatus defines the observed state of ObjectLambdaAccessPointPolicy. -#ObjectLambdaAccessPointPolicyStatus: { - v1.#ResourceStatus - atProvider?: #ObjectLambdaAccessPointPolicyObservation @go(AtProvider) -} - -// ObjectLambdaAccessPointPolicy is the Schema for the ObjectLambdaAccessPointPolicys API. Provides a resource to manage an S3 Object Lambda Access Point resource policy. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ObjectLambdaAccessPointPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #ObjectLambdaAccessPointPolicySpec @go(Spec) - status?: #ObjectLambdaAccessPointPolicyStatus @go(Status) -} - -// ObjectLambdaAccessPointPolicyList contains a list of ObjectLambdaAccessPointPolicys -#ObjectLambdaAccessPointPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ObjectLambdaAccessPointPolicy] @go(Items,[]ObjectLambdaAccessPointPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_storagelensconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_storagelensconfiguration_types_go_gen.cue deleted file mode 100644 index 4e3175b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/s3control/v1beta1/zz_storagelensconfiguration_types_go_gen.cue +++ /dev/null @@ -1,734 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/s3control/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountLevelDetailedStatusCodeMetricsInitParameters: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#AccountLevelDetailedStatusCodeMetricsObservation: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#AccountLevelDetailedStatusCodeMetricsParameters: { - // Whether the S3 Storage Lens configuration is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#AccountLevelInitParameters: { - // S3 Storage Lens activity metrics. See Activity Metrics below for more details. - activityMetrics?: [...#ActivityMetricsInitParameters] @go(ActivityMetrics,[]ActivityMetricsInitParameters) - - // optimization metrics for S3 Storage Lens. See Advanced Cost-Optimization Metrics below for more details. - advancedCostOptimizationMetrics?: [...#AdvancedCostOptimizationMetricsInitParameters] @go(AdvancedCostOptimizationMetrics,[]AdvancedCostOptimizationMetricsInitParameters) - - // protection metrics for S3 Storage Lens. See Advanced Data-Protection Metrics below for more details. - advancedDataProtectionMetrics?: [...#AdvancedDataProtectionMetricsInitParameters] @go(AdvancedDataProtectionMetrics,[]AdvancedDataProtectionMetricsInitParameters) - - // level configuration. See Bucket Level below for more details. - bucketLevel?: [...#BucketLevelInitParameters] @go(BucketLevel,[]BucketLevelInitParameters) - - // Detailed status code metrics for S3 Storage Lens. See Detailed Status Code Metrics below for more details. - detailedStatusCodeMetrics?: [...#AccountLevelDetailedStatusCodeMetricsInitParameters] @go(DetailedStatusCodeMetrics,[]AccountLevelDetailedStatusCodeMetricsInitParameters) -} - -#AccountLevelObservation: { - // S3 Storage Lens activity metrics. See Activity Metrics below for more details. - activityMetrics?: [...#ActivityMetricsObservation] @go(ActivityMetrics,[]ActivityMetricsObservation) - - // optimization metrics for S3 Storage Lens. See Advanced Cost-Optimization Metrics below for more details. - advancedCostOptimizationMetrics?: [...#AdvancedCostOptimizationMetricsObservation] @go(AdvancedCostOptimizationMetrics,[]AdvancedCostOptimizationMetricsObservation) - - // protection metrics for S3 Storage Lens. See Advanced Data-Protection Metrics below for more details. - advancedDataProtectionMetrics?: [...#AdvancedDataProtectionMetricsObservation] @go(AdvancedDataProtectionMetrics,[]AdvancedDataProtectionMetricsObservation) - - // level configuration. See Bucket Level below for more details. - bucketLevel?: [...#BucketLevelObservation] @go(BucketLevel,[]BucketLevelObservation) - - // Detailed status code metrics for S3 Storage Lens. See Detailed Status Code Metrics below for more details. - detailedStatusCodeMetrics?: [...#AccountLevelDetailedStatusCodeMetricsObservation] @go(DetailedStatusCodeMetrics,[]AccountLevelDetailedStatusCodeMetricsObservation) -} - -#AccountLevelParameters: { - // S3 Storage Lens activity metrics. See Activity Metrics below for more details. - // +kubebuilder:validation:Optional - activityMetrics?: [...#ActivityMetricsParameters] @go(ActivityMetrics,[]ActivityMetricsParameters) - - // optimization metrics for S3 Storage Lens. See Advanced Cost-Optimization Metrics below for more details. - // +kubebuilder:validation:Optional - advancedCostOptimizationMetrics?: [...#AdvancedCostOptimizationMetricsParameters] @go(AdvancedCostOptimizationMetrics,[]AdvancedCostOptimizationMetricsParameters) - - // protection metrics for S3 Storage Lens. See Advanced Data-Protection Metrics below for more details. - // +kubebuilder:validation:Optional - advancedDataProtectionMetrics?: [...#AdvancedDataProtectionMetricsParameters] @go(AdvancedDataProtectionMetrics,[]AdvancedDataProtectionMetricsParameters) - - // level configuration. See Bucket Level below for more details. - // +kubebuilder:validation:Optional - bucketLevel: [...#BucketLevelParameters] @go(BucketLevel,[]BucketLevelParameters) - - // Detailed status code metrics for S3 Storage Lens. See Detailed Status Code Metrics below for more details. - // +kubebuilder:validation:Optional - detailedStatusCodeMetrics?: [...#AccountLevelDetailedStatusCodeMetricsParameters] @go(DetailedStatusCodeMetrics,[]AccountLevelDetailedStatusCodeMetricsParameters) -} - -#ActivityMetricsInitParameters: { - // Whether the activity metrics are enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#ActivityMetricsObservation: { - // Whether the activity metrics are enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#ActivityMetricsParameters: { - // Whether the activity metrics are enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#AdvancedCostOptimizationMetricsInitParameters: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#AdvancedCostOptimizationMetricsObservation: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#AdvancedCostOptimizationMetricsParameters: { - // Whether the S3 Storage Lens configuration is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#AdvancedDataProtectionMetricsInitParameters: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#AdvancedDataProtectionMetricsObservation: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#AdvancedDataProtectionMetricsParameters: { - // Whether the S3 Storage Lens configuration is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#AwsOrgInitParameters: { - // The Amazon Resource Name (ARN) of the bucket. - arn?: null | string @go(Arn,*string) -} - -#AwsOrgObservation: { - // The Amazon Resource Name (ARN) of the bucket. - arn?: null | string @go(Arn,*string) -} - -#AwsOrgParameters: { - // The Amazon Resource Name (ARN) of the bucket. - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) -} - -#BucketLevelActivityMetricsInitParameters: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#BucketLevelActivityMetricsObservation: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#BucketLevelActivityMetricsParameters: { - // Whether the S3 Storage Lens configuration is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#BucketLevelAdvancedCostOptimizationMetricsInitParameters: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#BucketLevelAdvancedCostOptimizationMetricsObservation: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#BucketLevelAdvancedCostOptimizationMetricsParameters: { - // Whether the S3 Storage Lens configuration is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#BucketLevelAdvancedDataProtectionMetricsInitParameters: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#BucketLevelAdvancedDataProtectionMetricsObservation: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#BucketLevelAdvancedDataProtectionMetricsParameters: { - // Whether the S3 Storage Lens configuration is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#BucketLevelInitParameters: { - // S3 Storage Lens activity metrics. See Activity Metrics below for more details. - activityMetrics?: [...#BucketLevelActivityMetricsInitParameters] @go(ActivityMetrics,[]BucketLevelActivityMetricsInitParameters) - - // optimization metrics for S3 Storage Lens. See Advanced Cost-Optimization Metrics below for more details. - advancedCostOptimizationMetrics?: [...#BucketLevelAdvancedCostOptimizationMetricsInitParameters] @go(AdvancedCostOptimizationMetrics,[]BucketLevelAdvancedCostOptimizationMetricsInitParameters) - - // protection metrics for S3 Storage Lens. See Advanced Data-Protection Metrics below for more details. - advancedDataProtectionMetrics?: [...#BucketLevelAdvancedDataProtectionMetricsInitParameters] @go(AdvancedDataProtectionMetrics,[]BucketLevelAdvancedDataProtectionMetricsInitParameters) - - // Detailed status code metrics for S3 Storage Lens. See Detailed Status Code Metrics below for more details. - detailedStatusCodeMetrics?: [...#DetailedStatusCodeMetricsInitParameters] @go(DetailedStatusCodeMetrics,[]DetailedStatusCodeMetricsInitParameters) - - // level metrics for S3 Storage Lens. See Prefix Level below for more details. - prefixLevel?: [...#PrefixLevelInitParameters] @go(PrefixLevel,[]PrefixLevelInitParameters) -} - -#BucketLevelObservation: { - // S3 Storage Lens activity metrics. See Activity Metrics below for more details. - activityMetrics?: [...#BucketLevelActivityMetricsObservation] @go(ActivityMetrics,[]BucketLevelActivityMetricsObservation) - - // optimization metrics for S3 Storage Lens. See Advanced Cost-Optimization Metrics below for more details. - advancedCostOptimizationMetrics?: [...#BucketLevelAdvancedCostOptimizationMetricsObservation] @go(AdvancedCostOptimizationMetrics,[]BucketLevelAdvancedCostOptimizationMetricsObservation) - - // protection metrics for S3 Storage Lens. See Advanced Data-Protection Metrics below for more details. - advancedDataProtectionMetrics?: [...#BucketLevelAdvancedDataProtectionMetricsObservation] @go(AdvancedDataProtectionMetrics,[]BucketLevelAdvancedDataProtectionMetricsObservation) - - // Detailed status code metrics for S3 Storage Lens. See Detailed Status Code Metrics below for more details. - detailedStatusCodeMetrics?: [...#DetailedStatusCodeMetricsObservation] @go(DetailedStatusCodeMetrics,[]DetailedStatusCodeMetricsObservation) - - // level metrics for S3 Storage Lens. See Prefix Level below for more details. - prefixLevel?: [...#PrefixLevelObservation] @go(PrefixLevel,[]PrefixLevelObservation) -} - -#BucketLevelParameters: { - // S3 Storage Lens activity metrics. See Activity Metrics below for more details. - // +kubebuilder:validation:Optional - activityMetrics?: [...#BucketLevelActivityMetricsParameters] @go(ActivityMetrics,[]BucketLevelActivityMetricsParameters) - - // optimization metrics for S3 Storage Lens. See Advanced Cost-Optimization Metrics below for more details. - // +kubebuilder:validation:Optional - advancedCostOptimizationMetrics?: [...#BucketLevelAdvancedCostOptimizationMetricsParameters] @go(AdvancedCostOptimizationMetrics,[]BucketLevelAdvancedCostOptimizationMetricsParameters) - - // protection metrics for S3 Storage Lens. See Advanced Data-Protection Metrics below for more details. - // +kubebuilder:validation:Optional - advancedDataProtectionMetrics?: [...#BucketLevelAdvancedDataProtectionMetricsParameters] @go(AdvancedDataProtectionMetrics,[]BucketLevelAdvancedDataProtectionMetricsParameters) - - // Detailed status code metrics for S3 Storage Lens. See Detailed Status Code Metrics below for more details. - // +kubebuilder:validation:Optional - detailedStatusCodeMetrics?: [...#DetailedStatusCodeMetricsParameters] @go(DetailedStatusCodeMetrics,[]DetailedStatusCodeMetricsParameters) - - // level metrics for S3 Storage Lens. See Prefix Level below for more details. - // +kubebuilder:validation:Optional - prefixLevel?: [...#PrefixLevelParameters] @go(PrefixLevel,[]PrefixLevelParameters) -} - -#CloudWatchMetricsInitParameters: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#CloudWatchMetricsObservation: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#CloudWatchMetricsParameters: { - // Whether the S3 Storage Lens configuration is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#DataExportInitParameters: { - // Amazon CloudWatch publishing for S3 Storage Lens metrics. See Cloud Watch Metrics below for more details. - cloudWatchMetrics?: [...#CloudWatchMetricsInitParameters] @go(CloudWatchMetrics,[]CloudWatchMetricsInitParameters) - - // The bucket where the S3 Storage Lens metrics export will be located. See S3 Bucket Destination below for more details. - s3BucketDestination?: [...#S3BucketDestinationInitParameters] @go(S3BucketDestination,[]S3BucketDestinationInitParameters) -} - -#DataExportObservation: { - // Amazon CloudWatch publishing for S3 Storage Lens metrics. See Cloud Watch Metrics below for more details. - cloudWatchMetrics?: [...#CloudWatchMetricsObservation] @go(CloudWatchMetrics,[]CloudWatchMetricsObservation) - - // The bucket where the S3 Storage Lens metrics export will be located. See S3 Bucket Destination below for more details. - s3BucketDestination?: [...#S3BucketDestinationObservation] @go(S3BucketDestination,[]S3BucketDestinationObservation) -} - -#DataExportParameters: { - // Amazon CloudWatch publishing for S3 Storage Lens metrics. See Cloud Watch Metrics below for more details. - // +kubebuilder:validation:Optional - cloudWatchMetrics?: [...#CloudWatchMetricsParameters] @go(CloudWatchMetrics,[]CloudWatchMetricsParameters) - - // The bucket where the S3 Storage Lens metrics export will be located. See S3 Bucket Destination below for more details. - // +kubebuilder:validation:Optional - s3BucketDestination?: [...#S3BucketDestinationParameters] @go(S3BucketDestination,[]S3BucketDestinationParameters) -} - -#DetailedStatusCodeMetricsInitParameters: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#DetailedStatusCodeMetricsObservation: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) -} - -#DetailedStatusCodeMetricsParameters: { - // Whether the S3 Storage Lens configuration is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -#EncryptionInitParameters: { - // KMS encryption. See SSE KMS below for more details. - sseKms?: [...#SseKMSInitParameters] @go(SseKMS,[]SseKMSInitParameters) - - // S3 encryption. An empty configuration block {} should be used. - sseS3?: [...#SseS3InitParameters] @go(SseS3,[]SseS3InitParameters) -} - -#EncryptionObservation: { - // KMS encryption. See SSE KMS below for more details. - sseKms?: [...#SseKMSObservation] @go(SseKMS,[]SseKMSObservation) - - // S3 encryption. An empty configuration block {} should be used. - sseS3?: [...#SseS3Parameters] @go(SseS3,[]SseS3Parameters) -} - -#EncryptionParameters: { - // KMS encryption. See SSE KMS below for more details. - // +kubebuilder:validation:Optional - sseKms?: [...#SseKMSParameters] @go(SseKMS,[]SseKMSParameters) - - // S3 encryption. An empty configuration block {} should be used. - // +kubebuilder:validation:Optional - sseS3?: [...#SseS3Parameters] @go(SseS3,[]SseS3Parameters) -} - -#ExcludeInitParameters: { - // List of S3 bucket ARNs. - buckets?: [...null | string] @go(Buckets,[]*string) - - // List of AWS Regions. - regions?: [...null | string] @go(Regions,[]*string) -} - -#ExcludeObservation: { - // List of S3 bucket ARNs. - buckets?: [...null | string] @go(Buckets,[]*string) - - // List of AWS Regions. - regions?: [...null | string] @go(Regions,[]*string) -} - -#ExcludeParameters: { - // List of S3 bucket ARNs. - // +kubebuilder:validation:Optional - buckets?: [...null | string] @go(Buckets,[]*string) - - // List of AWS Regions. - // +kubebuilder:validation:Optional - regions?: [...null | string] @go(Regions,[]*string) -} - -#IncludeInitParameters: { - // List of S3 bucket ARNs. - buckets?: [...null | string] @go(Buckets,[]*string) - - // List of AWS Regions. - regions?: [...null | string] @go(Regions,[]*string) -} - -#IncludeObservation: { - // List of S3 bucket ARNs. - buckets?: [...null | string] @go(Buckets,[]*string) - - // List of AWS Regions. - regions?: [...null | string] @go(Regions,[]*string) -} - -#IncludeParameters: { - // List of S3 bucket ARNs. - // +kubebuilder:validation:Optional - buckets?: [...null | string] @go(Buckets,[]*string) - - // List of AWS Regions. - // +kubebuilder:validation:Optional - regions?: [...null | string] @go(Regions,[]*string) -} - -#PrefixLevelInitParameters: { - // level storage metrics for S3 Storage Lens. See Prefix Level Storage Metrics below for more details. - storageMetrics?: [...#StorageMetricsInitParameters] @go(StorageMetrics,[]StorageMetricsInitParameters) -} - -#PrefixLevelObservation: { - // level storage metrics for S3 Storage Lens. See Prefix Level Storage Metrics below for more details. - storageMetrics?: [...#StorageMetricsObservation] @go(StorageMetrics,[]StorageMetricsObservation) -} - -#PrefixLevelParameters: { - // level storage metrics for S3 Storage Lens. See Prefix Level Storage Metrics below for more details. - // +kubebuilder:validation:Optional - storageMetrics: [...#StorageMetricsParameters] @go(StorageMetrics,[]StorageMetricsParameters) -} - -#S3BucketDestinationInitParameters: { - // The account ID of the owner of the S3 Storage Lens metrics export bucket. - accountId?: null | string @go(AccountID,*string) - - // Encryption of the metrics exports in this bucket. See Encryption below for more details. - encryption?: [...#EncryptionInitParameters] @go(Encryption,[]EncryptionInitParameters) - - // The export format. Valid values: CSV, Parquet. - format?: null | string @go(Format,*string) - - // The schema version of the export file. Valid values: V_1. - outputSchemaVersion?: null | string @go(OutputSchemaVersion,*string) - - // The prefix of the destination bucket where the metrics export will be delivered. - prefix?: null | string @go(Prefix,*string) -} - -#S3BucketDestinationObservation: { - // The account ID of the owner of the S3 Storage Lens metrics export bucket. - accountId?: null | string @go(AccountID,*string) - - // The Amazon Resource Name (ARN) of the bucket. - arn?: null | string @go(Arn,*string) - - // Encryption of the metrics exports in this bucket. See Encryption below for more details. - encryption?: [...#EncryptionObservation] @go(Encryption,[]EncryptionObservation) - - // The export format. Valid values: CSV, Parquet. - format?: null | string @go(Format,*string) - - // The schema version of the export file. Valid values: V_1. - outputSchemaVersion?: null | string @go(OutputSchemaVersion,*string) - - // The prefix of the destination bucket where the metrics export will be delivered. - prefix?: null | string @go(Prefix,*string) -} - -#S3BucketDestinationParameters: { - // The account ID of the owner of the S3 Storage Lens metrics export bucket. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // The Amazon Resource Name (ARN) of the bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // Reference to a Bucket in s3 to populate arn. - // +kubebuilder:validation:Optional - arnRef?: null | v1.#Reference @go(ArnRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate arn. - // +kubebuilder:validation:Optional - arnSelector?: null | v1.#Selector @go(ArnSelector,*v1.Selector) - - // Encryption of the metrics exports in this bucket. See Encryption below for more details. - // +kubebuilder:validation:Optional - encryption?: [...#EncryptionParameters] @go(Encryption,[]EncryptionParameters) - - // The export format. Valid values: CSV, Parquet. - // +kubebuilder:validation:Optional - format?: null | string @go(Format,*string) - - // The schema version of the export file. Valid values: V_1. - // +kubebuilder:validation:Optional - outputSchemaVersion?: null | string @go(OutputSchemaVersion,*string) - - // The prefix of the destination bucket where the metrics export will be delivered. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) -} - -#SelectionCriteriaInitParameters: { - // The delimiter of the selection criteria being used. - delimiter?: null | string @go(Delimiter,*string) - - // The max depth of the selection criteria. - maxDepth?: null | float64 @go(MaxDepth,*float64) - - // The minimum number of storage bytes percentage whose metrics will be selected. - minStorageBytesPercentage?: null | float64 @go(MinStorageBytesPercentage,*float64) -} - -#SelectionCriteriaObservation: { - // The delimiter of the selection criteria being used. - delimiter?: null | string @go(Delimiter,*string) - - // The max depth of the selection criteria. - maxDepth?: null | float64 @go(MaxDepth,*float64) - - // The minimum number of storage bytes percentage whose metrics will be selected. - minStorageBytesPercentage?: null | float64 @go(MinStorageBytesPercentage,*float64) -} - -#SelectionCriteriaParameters: { - // The delimiter of the selection criteria being used. - // +kubebuilder:validation:Optional - delimiter?: null | string @go(Delimiter,*string) - - // The max depth of the selection criteria. - // +kubebuilder:validation:Optional - maxDepth?: null | float64 @go(MaxDepth,*float64) - - // The minimum number of storage bytes percentage whose metrics will be selected. - // +kubebuilder:validation:Optional - minStorageBytesPercentage?: null | float64 @go(MinStorageBytesPercentage,*float64) -} - -#SseKMSInitParameters: { - // KMS key ARN. - keyId?: null | string @go(KeyID,*string) -} - -#SseKMSObservation: { - // KMS key ARN. - keyId?: null | string @go(KeyID,*string) -} - -#SseKMSParameters: { - // KMS key ARN. - // +kubebuilder:validation:Optional - keyId?: null | string @go(KeyID,*string) -} - -#SseS3InitParameters: { -} - -#SseS3Observation: { -} - -#SseS3Parameters: { -} - -#StorageLensConfigurationInitParameters: { - // The AWS account ID for the S3 Storage Lens configuration. - accountId?: null | string @go(AccountID,*string) - - // The ID of the S3 Storage Lens configuration. - configId?: null | string @go(ConfigID,*string) - - // The S3 Storage Lens configuration. See Storage Lens Configuration below for more details. - storageLensConfiguration?: [...#StorageLensConfigurationStorageLensConfigurationInitParameters] @go(StorageLensConfiguration,[]StorageLensConfigurationStorageLensConfigurationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#StorageLensConfigurationObservation: { - // The AWS account ID for the S3 Storage Lens configuration. - accountId?: null | string @go(AccountID,*string) - - // Amazon Resource Name (ARN) of the S3 Storage Lens configuration. - arn?: null | string @go(Arn,*string) - - // The ID of the S3 Storage Lens configuration. - configId?: null | string @go(ConfigID,*string) - id?: null | string @go(ID,*string) - - // The S3 Storage Lens configuration. See Storage Lens Configuration below for more details. - storageLensConfiguration?: [...#StorageLensConfigurationStorageLensConfigurationObservation] @go(StorageLensConfiguration,[]StorageLensConfigurationStorageLensConfigurationObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#StorageLensConfigurationParameters: { - // The AWS account ID for the S3 Storage Lens configuration. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // The ID of the S3 Storage Lens configuration. - // +kubebuilder:validation:Optional - configId?: null | string @go(ConfigID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The S3 Storage Lens configuration. See Storage Lens Configuration below for more details. - // +kubebuilder:validation:Optional - storageLensConfiguration?: [...#StorageLensConfigurationStorageLensConfigurationParameters] @go(StorageLensConfiguration,[]StorageLensConfigurationStorageLensConfigurationParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#StorageLensConfigurationStorageLensConfigurationInitParameters: { - // level configurations of the S3 Storage Lens configuration. See Account Level below for more details. - accountLevel?: [...#AccountLevelInitParameters] @go(AccountLevel,[]AccountLevelInitParameters) - - // The Amazon Web Services organization for the S3 Storage Lens configuration. See AWS Org below for more details. - awsOrg?: [...#AwsOrgInitParameters] @go(AwsOrg,[]AwsOrgInitParameters) - - // Properties of S3 Storage Lens metrics export including the destination, schema and format. See Data Export below for more details. - dataExport?: [...#DataExportInitParameters] @go(DataExport,[]DataExportInitParameters) - - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // What is excluded in this configuration. Conflicts with include. See Exclude below for more details. - exclude?: [...#ExcludeInitParameters] @go(Exclude,[]ExcludeInitParameters) - - // What is included in this configuration. Conflicts with exclude. See Include below for more details. - include?: [...#IncludeInitParameters] @go(Include,[]IncludeInitParameters) -} - -#StorageLensConfigurationStorageLensConfigurationObservation: { - // level configurations of the S3 Storage Lens configuration. See Account Level below for more details. - accountLevel?: [...#AccountLevelObservation] @go(AccountLevel,[]AccountLevelObservation) - - // The Amazon Web Services organization for the S3 Storage Lens configuration. See AWS Org below for more details. - awsOrg?: [...#AwsOrgObservation] @go(AwsOrg,[]AwsOrgObservation) - - // Properties of S3 Storage Lens metrics export including the destination, schema and format. See Data Export below for more details. - dataExport?: [...#DataExportObservation] @go(DataExport,[]DataExportObservation) - - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // What is excluded in this configuration. Conflicts with include. See Exclude below for more details. - exclude?: [...#ExcludeObservation] @go(Exclude,[]ExcludeObservation) - - // What is included in this configuration. Conflicts with exclude. See Include below for more details. - include?: [...#IncludeObservation] @go(Include,[]IncludeObservation) -} - -#StorageLensConfigurationStorageLensConfigurationParameters: { - // level configurations of the S3 Storage Lens configuration. See Account Level below for more details. - // +kubebuilder:validation:Optional - accountLevel: [...#AccountLevelParameters] @go(AccountLevel,[]AccountLevelParameters) - - // The Amazon Web Services organization for the S3 Storage Lens configuration. See AWS Org below for more details. - // +kubebuilder:validation:Optional - awsOrg?: [...#AwsOrgParameters] @go(AwsOrg,[]AwsOrgParameters) - - // Properties of S3 Storage Lens metrics export including the destination, schema and format. See Data Export below for more details. - // +kubebuilder:validation:Optional - dataExport?: [...#DataExportParameters] @go(DataExport,[]DataExportParameters) - - // Whether the S3 Storage Lens configuration is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // What is excluded in this configuration. Conflicts with include. See Exclude below for more details. - // +kubebuilder:validation:Optional - exclude?: [...#ExcludeParameters] @go(Exclude,[]ExcludeParameters) - - // What is included in this configuration. Conflicts with exclude. See Include below for more details. - // +kubebuilder:validation:Optional - include?: [...#IncludeParameters] @go(Include,[]IncludeParameters) -} - -#StorageMetricsInitParameters: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Selection criteria. See Selection Criteria below for more details. - selectionCriteria?: [...#SelectionCriteriaInitParameters] @go(SelectionCriteria,[]SelectionCriteriaInitParameters) -} - -#StorageMetricsObservation: { - // Whether the S3 Storage Lens configuration is enabled. - enabled?: null | bool @go(Enabled,*bool) - - // Selection criteria. See Selection Criteria below for more details. - selectionCriteria?: [...#SelectionCriteriaObservation] @go(SelectionCriteria,[]SelectionCriteriaObservation) -} - -#StorageMetricsParameters: { - // Whether the S3 Storage Lens configuration is enabled. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Selection criteria. See Selection Criteria below for more details. - // +kubebuilder:validation:Optional - selectionCriteria?: [...#SelectionCriteriaParameters] @go(SelectionCriteria,[]SelectionCriteriaParameters) -} - -// StorageLensConfigurationSpec defines the desired state of StorageLensConfiguration -#StorageLensConfigurationSpec: { - v1.#ResourceSpec - forProvider: #StorageLensConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StorageLensConfigurationInitParameters @go(InitProvider) -} - -// StorageLensConfigurationStatus defines the observed state of StorageLensConfiguration. -#StorageLensConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #StorageLensConfigurationObservation @go(AtProvider) -} - -// StorageLensConfiguration is the Schema for the StorageLensConfigurations API. Provides a resource to manage an S3 Storage Lens configuration. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#StorageLensConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.configId) || (has(self.initProvider) && has(self.initProvider.configId))",message="spec.forProvider.configId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.storageLensConfiguration) || (has(self.initProvider) && has(self.initProvider.storageLensConfiguration))",message="spec.forProvider.storageLensConfiguration is a required parameter" - spec: #StorageLensConfigurationSpec @go(Spec) - status?: #StorageLensConfigurationStatus @go(Status) -} - -// StorageLensConfigurationList contains a list of StorageLensConfigurations -#StorageLensConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#StorageLensConfiguration] @go(Items,[]StorageLensConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_app_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_app_types_go_gen.cue deleted file mode 100644 index 7db180d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_app_types_go_gen.cue +++ /dev/null @@ -1,208 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AppInitParameters: { - // The name of the app. - appName?: null | string @go(AppName,*string) - - // The type of app. Valid values are JupyterServer, KernelGateway, RStudioServerPro, RSessionGateway and TensorBoard. - appType?: null | string @go(AppType,*string) - - // The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below. - resourceSpec?: [...#ResourceSpecInitParameters] @go(ResourceSpec,[]ResourceSpecInitParameters) - - // The name of the space. At least one of user_profile_name or space_name required. - spaceName?: null | string @go(SpaceName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AppObservation: { - // The name of the app. - appName?: null | string @go(AppName,*string) - - // The type of app. Valid values are JupyterServer, KernelGateway, RStudioServerPro, RSessionGateway and TensorBoard. - appType?: null | string @go(AppType,*string) - - // The Amazon Resource Name (ARN) of the app. - arn?: null | string @go(Arn,*string) - - // The domain ID. - domainId?: null | string @go(DomainID,*string) - - // The Amazon Resource Name (ARN) of the app. - id?: null | string @go(ID,*string) - - // The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below. - resourceSpec?: [...#ResourceSpecObservation] @go(ResourceSpec,[]ResourceSpecObservation) - - // The name of the space. At least one of user_profile_name or space_name required. - spaceName?: null | string @go(SpaceName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The user profile name. At least one of user_profile_name or space_name required. - userProfileName?: null | string @go(UserProfileName,*string) -} - -#AppParameters: { - // The name of the app. - // +kubebuilder:validation:Optional - appName?: null | string @go(AppName,*string) - - // The type of app. Valid values are JupyterServer, KernelGateway, RStudioServerPro, RSessionGateway and TensorBoard. - // +kubebuilder:validation:Optional - appType?: null | string @go(AppType,*string) - - // The domain ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sagemaker/v1beta1.Domain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - domainId?: null | string @go(DomainID,*string) - - // Reference to a Domain in sagemaker to populate domainId. - // +kubebuilder:validation:Optional - domainIdRef?: null | v1.#Reference @go(DomainIDRef,*v1.Reference) - - // Selector for a Domain in sagemaker to populate domainId. - // +kubebuilder:validation:Optional - domainIdSelector?: null | v1.#Selector @go(DomainIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below. - // +kubebuilder:validation:Optional - resourceSpec?: [...#ResourceSpecParameters] @go(ResourceSpec,[]ResourceSpecParameters) - - // The name of the space. At least one of user_profile_name or space_name required. - // +kubebuilder:validation:Optional - spaceName?: null | string @go(SpaceName,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The user profile name. At least one of user_profile_name or space_name required. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sagemaker/v1beta1.UserProfile - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("user_profile_name",false) - // +kubebuilder:validation:Optional - userProfileName?: null | string @go(UserProfileName,*string) - - // Reference to a UserProfile in sagemaker to populate userProfileName. - // +kubebuilder:validation:Optional - userProfileNameRef?: null | v1.#Reference @go(UserProfileNameRef,*v1.Reference) - - // Selector for a UserProfile in sagemaker to populate userProfileName. - // +kubebuilder:validation:Optional - userProfileNameSelector?: null | v1.#Selector @go(UserProfileNameSelector,*v1.Selector) -} - -#ResourceSpecInitParameters: { - // The instance type that the image version runs on. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#ResourceSpecObservation: { - // The instance type that the image version runs on. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#ResourceSpecParameters: { - // The instance type that the image version runs on. For valid values see SageMaker Instance Types. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -// AppSpec defines the desired state of App -#AppSpec: { - v1.#ResourceSpec - forProvider: #AppParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AppInitParameters @go(InitProvider) -} - -// AppStatus defines the observed state of App. -#AppStatus: { - v1.#ResourceStatus - atProvider?: #AppObservation @go(AtProvider) -} - -// App is the Schema for the Apps API. Provides a SageMaker App resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#App: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.appName) || (has(self.initProvider) && has(self.initProvider.appName))",message="spec.forProvider.appName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.appType) || (has(self.initProvider) && has(self.initProvider.appType))",message="spec.forProvider.appType is a required parameter" - spec: #AppSpec @go(Spec) - status?: #AppStatus @go(Status) -} - -// AppList contains a list of Apps -#AppList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#App] @go(Items,[]App) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_appimageconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_appimageconfig_types_go_gen.cue deleted file mode 100644 index bfbff44..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_appimageconfig_types_go_gen.cue +++ /dev/null @@ -1,183 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AppImageConfigInitParameters: { - // The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below. - kernelGatewayImageConfig?: [...#KernelGatewayImageConfigInitParameters] @go(KernelGatewayImageConfig,[]KernelGatewayImageConfigInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#AppImageConfigObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this App Image Config. - arn?: null | string @go(Arn,*string) - - // The name of the App Image Config. - id?: null | string @go(ID,*string) - - // The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below. - kernelGatewayImageConfig?: [...#KernelGatewayImageConfigObservation] @go(KernelGatewayImageConfig,[]KernelGatewayImageConfigObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#AppImageConfigParameters: { - // The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below. - // +kubebuilder:validation:Optional - kernelGatewayImageConfig?: [...#KernelGatewayImageConfigParameters] @go(KernelGatewayImageConfig,[]KernelGatewayImageConfigParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FileSystemConfigInitParameters: { - // The default POSIX group ID (GID). If not specified, defaults to 100. Valid values are 0 and 100. - defaultGid?: null | float64 @go(DefaultGID,*float64) - - // The default POSIX user ID (UID). If not specified, defaults to 1000. Valid values are 0 and 1000. - defaultUid?: null | float64 @go(DefaultUID,*float64) - - // The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to /home/sagemaker-user. - mountPath?: null | string @go(MountPath,*string) -} - -#FileSystemConfigObservation: { - // The default POSIX group ID (GID). If not specified, defaults to 100. Valid values are 0 and 100. - defaultGid?: null | float64 @go(DefaultGID,*float64) - - // The default POSIX user ID (UID). If not specified, defaults to 1000. Valid values are 0 and 1000. - defaultUid?: null | float64 @go(DefaultUID,*float64) - - // The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to /home/sagemaker-user. - mountPath?: null | string @go(MountPath,*string) -} - -#FileSystemConfigParameters: { - // The default POSIX group ID (GID). If not specified, defaults to 100. Valid values are 0 and 100. - // +kubebuilder:validation:Optional - defaultGid?: null | float64 @go(DefaultGID,*float64) - - // The default POSIX user ID (UID). If not specified, defaults to 1000. Valid values are 0 and 1000. - // +kubebuilder:validation:Optional - defaultUid?: null | float64 @go(DefaultUID,*float64) - - // The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to /home/sagemaker-user. - // +kubebuilder:validation:Optional - mountPath?: null | string @go(MountPath,*string) -} - -#KernelGatewayImageConfigInitParameters: { - // The URL where the Git repository is located. See File System Config details below. - fileSystemConfig?: [...#FileSystemConfigInitParameters] @go(FileSystemConfig,[]FileSystemConfigInitParameters) - - // The default branch for the Git repository. See Kernel Spec details below. - kernelSpec?: [...#KernelSpecInitParameters] @go(KernelSpec,[]KernelSpecInitParameters) -} - -#KernelGatewayImageConfigObservation: { - // The URL where the Git repository is located. See File System Config details below. - fileSystemConfig?: [...#FileSystemConfigObservation] @go(FileSystemConfig,[]FileSystemConfigObservation) - - // The default branch for the Git repository. See Kernel Spec details below. - kernelSpec?: [...#KernelSpecObservation] @go(KernelSpec,[]KernelSpecObservation) -} - -#KernelGatewayImageConfigParameters: { - // The URL where the Git repository is located. See File System Config details below. - // +kubebuilder:validation:Optional - fileSystemConfig?: [...#FileSystemConfigParameters] @go(FileSystemConfig,[]FileSystemConfigParameters) - - // The default branch for the Git repository. See Kernel Spec details below. - // +kubebuilder:validation:Optional - kernelSpec: [...#KernelSpecParameters] @go(KernelSpec,[]KernelSpecParameters) -} - -#KernelSpecInitParameters: { - // The display name of the kernel. - displayName?: null | string @go(DisplayName,*string) - - // The name of the kernel. - name?: null | string @go(Name,*string) -} - -#KernelSpecObservation: { - // The display name of the kernel. - displayName?: null | string @go(DisplayName,*string) - - // The name of the kernel. - name?: null | string @go(Name,*string) -} - -#KernelSpecParameters: { - // The display name of the kernel. - // +kubebuilder:validation:Optional - displayName?: null | string @go(DisplayName,*string) - - // The name of the kernel. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -// AppImageConfigSpec defines the desired state of AppImageConfig -#AppImageConfigSpec: { - v1.#ResourceSpec - forProvider: #AppImageConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AppImageConfigInitParameters @go(InitProvider) -} - -// AppImageConfigStatus defines the observed state of AppImageConfig. -#AppImageConfigStatus: { - v1.#ResourceStatus - atProvider?: #AppImageConfigObservation @go(AtProvider) -} - -// AppImageConfig is the Schema for the AppImageConfigs API. Provides a SageMaker App Image Config resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AppImageConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AppImageConfigSpec @go(Spec) - status?: #AppImageConfigStatus @go(Status) -} - -// AppImageConfigList contains a list of AppImageConfigs -#AppImageConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AppImageConfig] @go(Items,[]AppImageConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_coderepository_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_coderepository_types_go_gen.cue deleted file mode 100644 index 6fa20a0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_coderepository_types_go_gen.cue +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CodeRepositoryInitParameters: { - // Specifies details about the repository. see Git Config details below. - gitConfig?: [...#GitConfigInitParameters] @go(GitConfig,[]GitConfigInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CodeRepositoryObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this Code Repository. - arn?: null | string @go(Arn,*string) - - // Specifies details about the repository. see Git Config details below. - gitConfig?: [...#GitConfigObservation] @go(GitConfig,[]GitConfigObservation) - - // The name of the Code Repository. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#CodeRepositoryParameters: { - // Specifies details about the repository. see Git Config details below. - // +kubebuilder:validation:Optional - gitConfig?: [...#GitConfigParameters] @go(GitConfig,[]GitConfigParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#GitConfigInitParameters: { - // The default branch for the Git repository. - branch?: null | string @go(Branch,*string) - - // The URL where the Git repository is located. - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#GitConfigObservation: { - // The default branch for the Git repository. - branch?: null | string @go(Branch,*string) - - // The URL where the Git repository is located. - repositoryUrl?: null | string @go(RepositoryURL,*string) - - // The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label of AWSCURRENT and must be in the following format: {"username": UserName, "password": Password} - secretArn?: null | string @go(SecretArn,*string) -} - -#GitConfigParameters: { - // The default branch for the Git repository. - // +kubebuilder:validation:Optional - branch?: null | string @go(Branch,*string) - - // The URL where the Git repository is located. - // +kubebuilder:validation:Optional - repositoryUrl?: null | string @go(RepositoryURL,*string) - - // The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label of AWSCURRENT and must be in the following format: {"username": UserName, "password": Password} - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/secretsmanager/v1beta1.Secret - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - secretArn?: null | string @go(SecretArn,*string) - - // Reference to a Secret in secretsmanager to populate secretArn. - // +kubebuilder:validation:Optional - secretArnRef?: null | v1.#Reference @go(SecretArnRef,*v1.Reference) - - // Selector for a Secret in secretsmanager to populate secretArn. - // +kubebuilder:validation:Optional - secretArnSelector?: null | v1.#Selector @go(SecretArnSelector,*v1.Selector) -} - -// CodeRepositorySpec defines the desired state of CodeRepository -#CodeRepositorySpec: { - v1.#ResourceSpec - forProvider: #CodeRepositoryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CodeRepositoryInitParameters @go(InitProvider) -} - -// CodeRepositoryStatus defines the observed state of CodeRepository. -#CodeRepositoryStatus: { - v1.#ResourceStatus - atProvider?: #CodeRepositoryObservation @go(AtProvider) -} - -// CodeRepository is the Schema for the CodeRepositorys API. Provides a SageMaker Code Repository resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CodeRepository: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.gitConfig) || (has(self.initProvider) && has(self.initProvider.gitConfig))",message="spec.forProvider.gitConfig is a required parameter" - spec: #CodeRepositorySpec @go(Spec) - status?: #CodeRepositoryStatus @go(Status) -} - -// CodeRepositoryList contains a list of CodeRepositorys -#CodeRepositoryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CodeRepository] @go(Items,[]CodeRepository) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_device_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_device_types_go_gen.cue deleted file mode 100644 index b39dd63..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_device_types_go_gen.cue +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DeviceDeviceInitParameters: { - // A description for the device. - description?: null | string @go(Description,*string) - - // The name of the device. - deviceName?: null | string @go(DeviceName,*string) - - // Amazon Web Services Internet of Things (IoT) object name. - iotThingName?: null | string @go(IotThingName,*string) -} - -#DeviceDeviceObservation: { - // A description for the device. - description?: null | string @go(Description,*string) - - // The name of the device. - deviceName?: null | string @go(DeviceName,*string) - - // Amazon Web Services Internet of Things (IoT) object name. - iotThingName?: null | string @go(IotThingName,*string) -} - -#DeviceDeviceParameters: { - // A description for the device. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the device. - // +kubebuilder:validation:Optional - deviceName?: null | string @go(DeviceName,*string) - - // Amazon Web Services Internet of Things (IoT) object name. - // +kubebuilder:validation:Optional - iotThingName?: null | string @go(IotThingName,*string) -} - -#DeviceInitParameters: { - // The device to register with SageMaker Edge Manager. See Device details below. - device?: [...#DeviceDeviceInitParameters] @go(Device,[]DeviceDeviceInitParameters) -} - -#DeviceObservation: { - agentVersion?: null | string @go(AgentVersion,*string) - - // The Amazon Resource Name (ARN) assigned by AWS to this Device. - arn?: null | string @go(Arn,*string) - - // The device to register with SageMaker Edge Manager. See Device details below. - device?: [...#DeviceDeviceObservation] @go(Device,[]DeviceDeviceObservation) - - // The name of the Device Fleet. - deviceFleetName?: null | string @go(DeviceFleetName,*string) - - // The id is constructed from device-fleet-name/device-name. - id?: null | string @go(ID,*string) -} - -#DeviceParameters: { - // The device to register with SageMaker Edge Manager. See Device details below. - // +kubebuilder:validation:Optional - device?: [...#DeviceDeviceParameters] @go(Device,[]DeviceDeviceParameters) - - // The name of the Device Fleet. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sagemaker/v1beta1.DeviceFleet - // +kubebuilder:validation:Optional - deviceFleetName?: null | string @go(DeviceFleetName,*string) - - // Reference to a DeviceFleet in sagemaker to populate deviceFleetName. - // +kubebuilder:validation:Optional - deviceFleetNameRef?: null | v1.#Reference @go(DeviceFleetNameRef,*v1.Reference) - - // Selector for a DeviceFleet in sagemaker to populate deviceFleetName. - // +kubebuilder:validation:Optional - deviceFleetNameSelector?: null | v1.#Selector @go(DeviceFleetNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DeviceSpec defines the desired state of Device -#DeviceSpec: { - v1.#ResourceSpec - forProvider: #DeviceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DeviceInitParameters @go(InitProvider) -} - -// DeviceStatus defines the observed state of Device. -#DeviceStatus: { - v1.#ResourceStatus - atProvider?: #DeviceObservation @go(AtProvider) -} - -// Device is the Schema for the Devices API. Provides a SageMaker Device resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Device: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.device) || (has(self.initProvider) && has(self.initProvider.device))",message="spec.forProvider.device is a required parameter" - spec: #DeviceSpec @go(Spec) - status?: #DeviceStatus @go(Status) -} - -// DeviceList contains a list of Devices -#DeviceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Device] @go(Items,[]Device) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_devicefleet_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_devicefleet_types_go_gen.cue deleted file mode 100644 index 0602861..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_devicefleet_types_go_gen.cue +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DeviceFleetInitParameters: { - // A description of the fleet. - description?: null | string @go(Description,*string) - - // Whether to create an AWS IoT Role Alias during device fleet creation. The name of the role alias generated will match this pattern: "SageMakerEdge-{DeviceFleetName}". - enableIotRoleAlias?: null | bool @go(EnableIotRoleAlias,*bool) - - // Specifies details about the repository. see Output Config details below. - outputConfig?: [...#OutputConfigInitParameters] @go(OutputConfig,[]OutputConfigInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DeviceFleetObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this Device Fleet. - arn?: null | string @go(Arn,*string) - - // A description of the fleet. - description?: null | string @go(Description,*string) - - // Whether to create an AWS IoT Role Alias during device fleet creation. The name of the role alias generated will match this pattern: "SageMakerEdge-{DeviceFleetName}". - enableIotRoleAlias?: null | bool @go(EnableIotRoleAlias,*bool) - - // The name of the Device Fleet. - id?: null | string @go(ID,*string) - iotRoleAlias?: null | string @go(IotRoleAlias,*string) - - // Specifies details about the repository. see Output Config details below. - outputConfig?: [...#OutputConfigObservation] @go(OutputConfig,[]OutputConfigObservation) - - // The Amazon Resource Name (ARN) that has access to AWS Internet of Things (IoT). - roleArn?: null | string @go(RoleArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DeviceFleetParameters: { - // A description of the fleet. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether to create an AWS IoT Role Alias during device fleet creation. The name of the role alias generated will match this pattern: "SageMakerEdge-{DeviceFleetName}". - // +kubebuilder:validation:Optional - enableIotRoleAlias?: null | bool @go(EnableIotRoleAlias,*bool) - - // Specifies details about the repository. see Output Config details below. - // +kubebuilder:validation:Optional - outputConfig?: [...#OutputConfigParameters] @go(OutputConfig,[]OutputConfigParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) that has access to AWS Internet of Things (IoT). - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#OutputConfigInitParameters: { - // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The Amazon Simple Storage (S3) bucker URI. - s3OutputLocation?: null | string @go(S3OutputLocation,*string) -} - -#OutputConfigObservation: { - // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The Amazon Simple Storage (S3) bucker URI. - s3OutputLocation?: null | string @go(S3OutputLocation,*string) -} - -#OutputConfigParameters: { - // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The Amazon Simple Storage (S3) bucker URI. - // +kubebuilder:validation:Optional - s3OutputLocation?: null | string @go(S3OutputLocation,*string) -} - -// DeviceFleetSpec defines the desired state of DeviceFleet -#DeviceFleetSpec: { - v1.#ResourceSpec - forProvider: #DeviceFleetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DeviceFleetInitParameters @go(InitProvider) -} - -// DeviceFleetStatus defines the observed state of DeviceFleet. -#DeviceFleetStatus: { - v1.#ResourceStatus - atProvider?: #DeviceFleetObservation @go(AtProvider) -} - -// DeviceFleet is the Schema for the DeviceFleets API. Provides a SageMaker Device Fleet resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws},path=devicefleet -#DeviceFleet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.outputConfig) || (has(self.initProvider) && has(self.initProvider.outputConfig))",message="spec.forProvider.outputConfig is a required parameter" - spec: #DeviceFleetSpec @go(Spec) - status?: #DeviceFleetStatus @go(Status) -} - -// DeviceFleetList contains a list of DeviceFleets -#DeviceFleetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DeviceFleet] @go(Items,[]DeviceFleet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_domain_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_domain_types_go_gen.cue deleted file mode 100644 index fc0b858..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_domain_types_go_gen.cue +++ /dev/null @@ -1,1274 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CanvasAppSettingsInitParameters: { - // The model registry settings for the SageMaker Canvas application. See Model Register Settings below. - modelRegisterSettings?: [...#ModelRegisterSettingsInitParameters] @go(ModelRegisterSettings,[]ModelRegisterSettingsInitParameters) - - // Time series forecast settings for the Canvas app. See Time Series Forecasting Settings below. - timeSeriesForecastingSettings?: [...#TimeSeriesForecastingSettingsInitParameters] @go(TimeSeriesForecastingSettings,[]TimeSeriesForecastingSettingsInitParameters) -} - -#CanvasAppSettingsObservation: { - // The model registry settings for the SageMaker Canvas application. See Model Register Settings below. - modelRegisterSettings?: [...#ModelRegisterSettingsObservation] @go(ModelRegisterSettings,[]ModelRegisterSettingsObservation) - - // Time series forecast settings for the Canvas app. See Time Series Forecasting Settings below. - timeSeriesForecastingSettings?: [...#TimeSeriesForecastingSettingsObservation] @go(TimeSeriesForecastingSettings,[]TimeSeriesForecastingSettingsObservation) -} - -#CanvasAppSettingsParameters: { - // The model registry settings for the SageMaker Canvas application. See Model Register Settings below. - // +kubebuilder:validation:Optional - modelRegisterSettings?: [...#ModelRegisterSettingsParameters] @go(ModelRegisterSettings,[]ModelRegisterSettingsParameters) - - // Time series forecast settings for the Canvas app. See Time Series Forecasting Settings below. - // +kubebuilder:validation:Optional - timeSeriesForecastingSettings?: [...#TimeSeriesForecastingSettingsParameters] @go(TimeSeriesForecastingSettings,[]TimeSeriesForecastingSettingsParameters) -} - -#CustomImageInitParameters: { - // The name of the App Image Config. - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#CustomImageObservation: { - // The name of the App Image Config. - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#CustomImageParameters: { - // The name of the App Image Config. - // +kubebuilder:validation:Optional - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - // +kubebuilder:validation:Optional - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - // +kubebuilder:validation:Optional - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#DefaultResourceSpecInitParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#DefaultResourceSpecObservation: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#DefaultResourceSpecParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#DefaultSpaceSettingsInitParameters: { - // The execution role for the space. - executionRole?: null | string @go(ExecutionRole,*string) - - // The Jupyter server's app settings. See Jupyter Server App Settings below. - jupyterServerAppSettings?: [...#JupyterServerAppSettingsInitParameters] @go(JupyterServerAppSettings,[]JupyterServerAppSettingsInitParameters) - - // The kernel gateway app settings. See Kernel Gateway App Settings below. - kernelGatewayAppSettings?: [...#KernelGatewayAppSettingsInitParameters] @go(KernelGatewayAppSettings,[]KernelGatewayAppSettingsInitParameters) - - // The security groups for the Amazon Virtual Private Cloud that the space uses for communication. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) -} - -#DefaultSpaceSettingsObservation: { - // The execution role for the space. - executionRole?: null | string @go(ExecutionRole,*string) - - // The Jupyter server's app settings. See Jupyter Server App Settings below. - jupyterServerAppSettings?: [...#JupyterServerAppSettingsObservation] @go(JupyterServerAppSettings,[]JupyterServerAppSettingsObservation) - - // The kernel gateway app settings. See Kernel Gateway App Settings below. - kernelGatewayAppSettings?: [...#KernelGatewayAppSettingsObservation] @go(KernelGatewayAppSettings,[]KernelGatewayAppSettingsObservation) - - // The security groups for the Amazon Virtual Private Cloud that the space uses for communication. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) -} - -#DefaultSpaceSettingsParameters: { - // The execution role for the space. - // +kubebuilder:validation:Optional - executionRole?: null | string @go(ExecutionRole,*string) - - // The Jupyter server's app settings. See Jupyter Server App Settings below. - // +kubebuilder:validation:Optional - jupyterServerAppSettings?: [...#JupyterServerAppSettingsParameters] @go(JupyterServerAppSettings,[]JupyterServerAppSettingsParameters) - - // The kernel gateway app settings. See Kernel Gateway App Settings below. - // +kubebuilder:validation:Optional - kernelGatewayAppSettings?: [...#KernelGatewayAppSettingsParameters] @go(KernelGatewayAppSettings,[]KernelGatewayAppSettingsParameters) - - // The security groups for the Amazon Virtual Private Cloud that the space uses for communication. - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) -} - -#DefaultUserSettingsInitParameters: { - // The Canvas app settings. See Canvas App Settings below. - canvasAppSettings?: [...#CanvasAppSettingsInitParameters] @go(CanvasAppSettings,[]CanvasAppSettingsInitParameters) - - // The Jupyter server's app settings. See Jupyter Server App Settings below. - jupyterServerAppSettings?: [...#DefaultUserSettingsJupyterServerAppSettingsInitParameters] @go(JupyterServerAppSettings,[]DefaultUserSettingsJupyterServerAppSettingsInitParameters) - - // The kernel gateway app settings. See Kernel Gateway App Settings below. - kernelGatewayAppSettings?: [...#DefaultUserSettingsKernelGatewayAppSettingsInitParameters] @go(KernelGatewayAppSettings,[]DefaultUserSettingsKernelGatewayAppSettingsInitParameters) - - // The RSession app settings. See RSession App Settings below. - rSessionAppSettings?: [...#RSessionAppSettingsInitParameters] @go(RSessionAppSettings,[]RSessionAppSettingsInitParameters) - - // A collection of settings that configure user interaction with the RStudioServerPro app. See RStudioServerProAppSettings below. - rStudioServerProAppSettings?: [...#RStudioServerProAppSettingsInitParameters] @go(RStudioServerProAppSettings,[]RStudioServerProAppSettingsInitParameters) - - // A list of security group IDs that will be attached to the user. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The sharing settings. See Sharing Settings below. - sharingSettings?: [...#SharingSettingsInitParameters] @go(SharingSettings,[]SharingSettingsInitParameters) - - // The TensorBoard app settings. See TensorBoard App Settings below. - tensorBoardAppSettings?: [...#TensorBoardAppSettingsInitParameters] @go(TensorBoardAppSettings,[]TensorBoardAppSettingsInitParameters) -} - -#DefaultUserSettingsJupyterServerAppSettingsCodeRepositoryInitParameters: { - // The URL of the Git repository. - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#DefaultUserSettingsJupyterServerAppSettingsCodeRepositoryObservation: { - // The URL of the Git repository. - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#DefaultUserSettingsJupyterServerAppSettingsCodeRepositoryParameters: { - // The URL of the Git repository. - // +kubebuilder:validation:Optional - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#DefaultUserSettingsJupyterServerAppSettingsInitParameters: { - // A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below. - codeRepository?: [...#DefaultUserSettingsJupyterServerAppSettingsCodeRepositoryInitParameters] @go(CodeRepository,[]DefaultUserSettingsJupyterServerAppSettingsCodeRepositoryInitParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#JupyterServerAppSettingsDefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]JupyterServerAppSettingsDefaultResourceSpecInitParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#DefaultUserSettingsJupyterServerAppSettingsObservation: { - // A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below. - codeRepository?: [...#DefaultUserSettingsJupyterServerAppSettingsCodeRepositoryObservation] @go(CodeRepository,[]DefaultUserSettingsJupyterServerAppSettingsCodeRepositoryObservation) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#JupyterServerAppSettingsDefaultResourceSpecObservation] @go(DefaultResourceSpec,[]JupyterServerAppSettingsDefaultResourceSpecObservation) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#DefaultUserSettingsJupyterServerAppSettingsParameters: { - // A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below. - // +kubebuilder:validation:Optional - codeRepository?: [...#DefaultUserSettingsJupyterServerAppSettingsCodeRepositoryParameters] @go(CodeRepository,[]DefaultUserSettingsJupyterServerAppSettingsCodeRepositoryParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec?: [...#JupyterServerAppSettingsDefaultResourceSpecParameters] @go(DefaultResourceSpec,[]JupyterServerAppSettingsDefaultResourceSpecParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - // +kubebuilder:validation:Optional - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#DefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpecInitParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#DefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpecObservation: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#DefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpecParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#DefaultUserSettingsKernelGatewayAppSettingsInitParameters: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - customImage?: [...#KernelGatewayAppSettingsCustomImageInitParameters] @go(CustomImage,[]KernelGatewayAppSettingsCustomImageInitParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#DefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]DefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpecInitParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#DefaultUserSettingsKernelGatewayAppSettingsObservation: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - customImage?: [...#KernelGatewayAppSettingsCustomImageObservation] @go(CustomImage,[]KernelGatewayAppSettingsCustomImageObservation) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#DefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpecObservation] @go(DefaultResourceSpec,[]DefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpecObservation) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#DefaultUserSettingsKernelGatewayAppSettingsParameters: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - // +kubebuilder:validation:Optional - customImage?: [...#KernelGatewayAppSettingsCustomImageParameters] @go(CustomImage,[]KernelGatewayAppSettingsCustomImageParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec?: [...#DefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpecParameters] @go(DefaultResourceSpec,[]DefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpecParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - // +kubebuilder:validation:Optional - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#DefaultUserSettingsObservation: { - // The Canvas app settings. See Canvas App Settings below. - canvasAppSettings?: [...#CanvasAppSettingsObservation] @go(CanvasAppSettings,[]CanvasAppSettingsObservation) - - // The execution role ARN for the user. - executionRole?: null | string @go(ExecutionRole,*string) - - // The Jupyter server's app settings. See Jupyter Server App Settings below. - jupyterServerAppSettings?: [...#DefaultUserSettingsJupyterServerAppSettingsObservation] @go(JupyterServerAppSettings,[]DefaultUserSettingsJupyterServerAppSettingsObservation) - - // The kernel gateway app settings. See Kernel Gateway App Settings below. - kernelGatewayAppSettings?: [...#DefaultUserSettingsKernelGatewayAppSettingsObservation] @go(KernelGatewayAppSettings,[]DefaultUserSettingsKernelGatewayAppSettingsObservation) - - // The RSession app settings. See RSession App Settings below. - rSessionAppSettings?: [...#RSessionAppSettingsObservation] @go(RSessionAppSettings,[]RSessionAppSettingsObservation) - - // A collection of settings that configure user interaction with the RStudioServerPro app. See RStudioServerProAppSettings below. - rStudioServerProAppSettings?: [...#RStudioServerProAppSettingsObservation] @go(RStudioServerProAppSettings,[]RStudioServerProAppSettingsObservation) - - // A list of security group IDs that will be attached to the user. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The sharing settings. See Sharing Settings below. - sharingSettings?: [...#SharingSettingsObservation] @go(SharingSettings,[]SharingSettingsObservation) - - // The TensorBoard app settings. See TensorBoard App Settings below. - tensorBoardAppSettings?: [...#TensorBoardAppSettingsObservation] @go(TensorBoardAppSettings,[]TensorBoardAppSettingsObservation) -} - -#DefaultUserSettingsParameters: { - // The Canvas app settings. See Canvas App Settings below. - // +kubebuilder:validation:Optional - canvasAppSettings?: [...#CanvasAppSettingsParameters] @go(CanvasAppSettings,[]CanvasAppSettingsParameters) - - // The execution role ARN for the user. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - executionRole?: null | string @go(ExecutionRole,*string) - - // Reference to a Role in iam to populate executionRole. - // +kubebuilder:validation:Optional - executionRoleRef?: null | v1.#Reference @go(ExecutionRoleRef,*v1.Reference) - - // Selector for a Role in iam to populate executionRole. - // +kubebuilder:validation:Optional - executionRoleSelector?: null | v1.#Selector @go(ExecutionRoleSelector,*v1.Selector) - - // The Jupyter server's app settings. See Jupyter Server App Settings below. - // +kubebuilder:validation:Optional - jupyterServerAppSettings?: [...#DefaultUserSettingsJupyterServerAppSettingsParameters] @go(JupyterServerAppSettings,[]DefaultUserSettingsJupyterServerAppSettingsParameters) - - // The kernel gateway app settings. See Kernel Gateway App Settings below. - // +kubebuilder:validation:Optional - kernelGatewayAppSettings?: [...#DefaultUserSettingsKernelGatewayAppSettingsParameters] @go(KernelGatewayAppSettings,[]DefaultUserSettingsKernelGatewayAppSettingsParameters) - - // The RSession app settings. See RSession App Settings below. - // +kubebuilder:validation:Optional - rSessionAppSettings?: [...#RSessionAppSettingsParameters] @go(RSessionAppSettings,[]RSessionAppSettingsParameters) - - // A collection of settings that configure user interaction with the RStudioServerPro app. See RStudioServerProAppSettings below. - // +kubebuilder:validation:Optional - rStudioServerProAppSettings?: [...#RStudioServerProAppSettingsParameters] @go(RStudioServerProAppSettings,[]RStudioServerProAppSettingsParameters) - - // A list of security group IDs that will be attached to the user. - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The sharing settings. See Sharing Settings below. - // +kubebuilder:validation:Optional - sharingSettings?: [...#SharingSettingsParameters] @go(SharingSettings,[]SharingSettingsParameters) - - // The TensorBoard app settings. See TensorBoard App Settings below. - // +kubebuilder:validation:Optional - tensorBoardAppSettings?: [...#TensorBoardAppSettingsParameters] @go(TensorBoardAppSettings,[]TensorBoardAppSettingsParameters) -} - -#DomainInitParameters: { - // Specifies the VPC used for non-EFS traffic. The default value is PublicInternetOnly. Valid values are PublicInternetOnly and VpcOnly. - appNetworkAccessType?: null | string @go(AppNetworkAccessType,*string) - - // The entity that creates and manages the required security groups for inter-app communication in VPCOnly mode. Valid values are Service and Customer. - appSecurityGroupManagement?: null | string @go(AppSecurityGroupManagement,*string) - - // The mode of authentication that members use to access the domain. Valid values are IAM and SSO. - authMode?: null | string @go(AuthMode,*string) - - // The default space settings. See Default Space Settings below. - defaultSpaceSettings?: [...#DefaultSpaceSettingsInitParameters] @go(DefaultSpaceSettings,[]DefaultSpaceSettingsInitParameters) - - // The default user settings. See Default User Settings below.* domain_name - The domain name. - defaultUserSettings?: [...#DefaultUserSettingsInitParameters] @go(DefaultUserSettings,[]DefaultUserSettingsInitParameters) - domainName?: null | string @go(DomainName,*string) - - // The domain settings. See Domain Settings below. - domainSettings?: [...#DomainSettingsInitParameters] @go(DomainSettings,[]DomainSettingsInitParameters) - - // The retention policy for this domain, which specifies whether resources will be retained after the Domain is deleted. By default, all resources are retained. See Retention Policy below. - retentionPolicy?: [...#RetentionPolicyInitParameters] @go(RetentionPolicy,[]RetentionPolicyInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DomainObservation: { - // Specifies the VPC used for non-EFS traffic. The default value is PublicInternetOnly. Valid values are PublicInternetOnly and VpcOnly. - appNetworkAccessType?: null | string @go(AppNetworkAccessType,*string) - - // The entity that creates and manages the required security groups for inter-app communication in VPCOnly mode. Valid values are Service and Customer. - appSecurityGroupManagement?: null | string @go(AppSecurityGroupManagement,*string) - - // The Amazon Resource Name (ARN) assigned by AWS to this Domain. - arn?: null | string @go(Arn,*string) - - // The mode of authentication that members use to access the domain. Valid values are IAM and SSO. - authMode?: null | string @go(AuthMode,*string) - - // The default space settings. See Default Space Settings below. - defaultSpaceSettings?: [...#DefaultSpaceSettingsObservation] @go(DefaultSpaceSettings,[]DefaultSpaceSettingsObservation) - - // The default user settings. See Default User Settings below.* domain_name - The domain name. - defaultUserSettings?: [...#DefaultUserSettingsObservation] @go(DefaultUserSettings,[]DefaultUserSettingsObservation) - domainName?: null | string @go(DomainName,*string) - - // The domain settings. See Domain Settings below. - domainSettings?: [...#DomainSettingsObservation] @go(DomainSettings,[]DomainSettingsObservation) - - // The ID of the Amazon Elastic File System (EFS) managed by this Domain. - homeEfsFileSystemId?: null | string @go(HomeEFSFileSystemID,*string) - - // The ID of the Domain. - id?: null | string @go(ID,*string) - - // The AWS KMS customer managed CMK used to encrypt the EFS volume attached to the domain. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The retention policy for this domain, which specifies whether resources will be retained after the Domain is deleted. By default, all resources are retained. See Retention Policy below. - retentionPolicy?: [...#RetentionPolicyObservation] @go(RetentionPolicy,[]RetentionPolicyObservation) - - // The ID of the security group that authorizes traffic between the RSessionGateway apps and the RStudioServerPro app. - securityGroupIdForDomainBoundary?: null | string @go(SecurityGroupIDForDomainBoundary,*string) - - // The SSO managed application instance ID. - singleSignOnManagedApplicationInstanceId?: null | string @go(SingleSignOnManagedApplicationInstanceID,*string) - - // The VPC subnets that Studio uses for communication. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The domain's URL. - url?: null | string @go(URL,*string) - - // The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for communication. - vpcId?: null | string @go(VPCID,*string) -} - -#DomainParameters: { - // Specifies the VPC used for non-EFS traffic. The default value is PublicInternetOnly. Valid values are PublicInternetOnly and VpcOnly. - // +kubebuilder:validation:Optional - appNetworkAccessType?: null | string @go(AppNetworkAccessType,*string) - - // The entity that creates and manages the required security groups for inter-app communication in VPCOnly mode. Valid values are Service and Customer. - // +kubebuilder:validation:Optional - appSecurityGroupManagement?: null | string @go(AppSecurityGroupManagement,*string) - - // The mode of authentication that members use to access the domain. Valid values are IAM and SSO. - // +kubebuilder:validation:Optional - authMode?: null | string @go(AuthMode,*string) - - // The default space settings. See Default Space Settings below. - // +kubebuilder:validation:Optional - defaultSpaceSettings?: [...#DefaultSpaceSettingsParameters] @go(DefaultSpaceSettings,[]DefaultSpaceSettingsParameters) - - // The default user settings. See Default User Settings below.* domain_name - The domain name. - // +kubebuilder:validation:Optional - defaultUserSettings?: [...#DefaultUserSettingsParameters] @go(DefaultUserSettings,[]DefaultUserSettingsParameters) - - // +kubebuilder:validation:Optional - domainName?: null | string @go(DomainName,*string) - - // The domain settings. See Domain Settings below. - // +kubebuilder:validation:Optional - domainSettings?: [...#DomainSettingsParameters] @go(DomainSettings,[]DomainSettingsParameters) - - // The AWS KMS customer managed CMK used to encrypt the EFS volume attached to the domain. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The retention policy for this domain, which specifies whether resources will be retained after the Domain is deleted. By default, all resources are retained. See Retention Policy below. - // +kubebuilder:validation:Optional - retentionPolicy?: [...#RetentionPolicyParameters] @go(RetentionPolicy,[]RetentionPolicyParameters) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // The VPC subnets that Studio uses for communication. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for communication. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -#DomainSettingsInitParameters: { - // The configuration for attaching a SageMaker user profile name to the execution role as a sts:SourceIdentity key AWS Docs. Valid values are USER_PROFILE_NAME and DISABLED. - executionRoleIdentityConfig?: null | string @go(ExecutionRoleIdentityConfig,*string) - - // A collection of settings that configure the RStudioServerPro Domain-level app. see RStudioServerProDomainSettings below. - rStudioServerProDomainSettings?: [...#RStudioServerProDomainSettingsInitParameters] @go(RStudioServerProDomainSettings,[]RStudioServerProDomainSettingsInitParameters) - - // The security groups for the Amazon Virtual Private Cloud that the Domain uses for communication between Domain-level apps and user apps. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) -} - -#DomainSettingsObservation: { - // The configuration for attaching a SageMaker user profile name to the execution role as a sts:SourceIdentity key AWS Docs. Valid values are USER_PROFILE_NAME and DISABLED. - executionRoleIdentityConfig?: null | string @go(ExecutionRoleIdentityConfig,*string) - - // A collection of settings that configure the RStudioServerPro Domain-level app. see RStudioServerProDomainSettings below. - rStudioServerProDomainSettings?: [...#RStudioServerProDomainSettingsObservation] @go(RStudioServerProDomainSettings,[]RStudioServerProDomainSettingsObservation) - - // The security groups for the Amazon Virtual Private Cloud that the Domain uses for communication between Domain-level apps and user apps. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) -} - -#DomainSettingsParameters: { - // The configuration for attaching a SageMaker user profile name to the execution role as a sts:SourceIdentity key AWS Docs. Valid values are USER_PROFILE_NAME and DISABLED. - // +kubebuilder:validation:Optional - executionRoleIdentityConfig?: null | string @go(ExecutionRoleIdentityConfig,*string) - - // A collection of settings that configure the RStudioServerPro Domain-level app. see RStudioServerProDomainSettings below. - // +kubebuilder:validation:Optional - rStudioServerProDomainSettings?: [...#RStudioServerProDomainSettingsParameters] @go(RStudioServerProDomainSettings,[]RStudioServerProDomainSettingsParameters) - - // The security groups for the Amazon Virtual Private Cloud that the Domain uses for communication between Domain-level apps and user apps. - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) -} - -#JupyterServerAppSettingsCodeRepositoryInitParameters: { - // The URL of the Git repository. - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#JupyterServerAppSettingsCodeRepositoryObservation: { - // The URL of the Git repository. - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#JupyterServerAppSettingsCodeRepositoryParameters: { - // The URL of the Git repository. - // +kubebuilder:validation:Optional - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#JupyterServerAppSettingsDefaultResourceSpecInitParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#JupyterServerAppSettingsDefaultResourceSpecObservation: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#JupyterServerAppSettingsDefaultResourceSpecParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#JupyterServerAppSettingsInitParameters: { - // A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below. - codeRepository?: [...#JupyterServerAppSettingsCodeRepositoryInitParameters] @go(CodeRepository,[]JupyterServerAppSettingsCodeRepositoryInitParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#DefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]DefaultResourceSpecInitParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#JupyterServerAppSettingsObservation: { - // A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below. - codeRepository?: [...#JupyterServerAppSettingsCodeRepositoryObservation] @go(CodeRepository,[]JupyterServerAppSettingsCodeRepositoryObservation) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#DefaultResourceSpecObservation] @go(DefaultResourceSpec,[]DefaultResourceSpecObservation) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#JupyterServerAppSettingsParameters: { - // A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below. - // +kubebuilder:validation:Optional - codeRepository?: [...#JupyterServerAppSettingsCodeRepositoryParameters] @go(CodeRepository,[]JupyterServerAppSettingsCodeRepositoryParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec?: [...#DefaultResourceSpecParameters] @go(DefaultResourceSpec,[]DefaultResourceSpecParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - // +kubebuilder:validation:Optional - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#KernelGatewayAppSettingsCustomImageInitParameters: { - // The version number of the Custom Image. - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#KernelGatewayAppSettingsCustomImageObservation: { - // The name of the App Image Config. - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#KernelGatewayAppSettingsCustomImageParameters: { - // The name of the App Image Config. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sagemaker/v1beta1.AppImageConfig - // +kubebuilder:validation:Optional - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // Reference to a AppImageConfig in sagemaker to populate appImageConfigName. - // +kubebuilder:validation:Optional - appImageConfigNameRef?: null | v1.#Reference @go(AppImageConfigNameRef,*v1.Reference) - - // Selector for a AppImageConfig in sagemaker to populate appImageConfigName. - // +kubebuilder:validation:Optional - appImageConfigNameSelector?: null | v1.#Selector @go(AppImageConfigNameSelector,*v1.Selector) - - // The name of the Custom Image. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sagemaker/v1beta1.ImageVersion - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("image_name",false) - // +kubebuilder:validation:Optional - imageName?: null | string @go(ImageName,*string) - - // Reference to a ImageVersion in sagemaker to populate imageName. - // +kubebuilder:validation:Optional - imageNameRef?: null | v1.#Reference @go(ImageNameRef,*v1.Reference) - - // Selector for a ImageVersion in sagemaker to populate imageName. - // +kubebuilder:validation:Optional - imageNameSelector?: null | v1.#Selector @go(ImageNameSelector,*v1.Selector) - - // The version number of the Custom Image. - // +kubebuilder:validation:Optional - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#KernelGatewayAppSettingsDefaultResourceSpecInitParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#KernelGatewayAppSettingsDefaultResourceSpecObservation: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#KernelGatewayAppSettingsDefaultResourceSpecParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#KernelGatewayAppSettingsInitParameters: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - customImage?: [...#CustomImageInitParameters] @go(CustomImage,[]CustomImageInitParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#KernelGatewayAppSettingsDefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]KernelGatewayAppSettingsDefaultResourceSpecInitParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#KernelGatewayAppSettingsObservation: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - customImage?: [...#CustomImageObservation] @go(CustomImage,[]CustomImageObservation) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#KernelGatewayAppSettingsDefaultResourceSpecObservation] @go(DefaultResourceSpec,[]KernelGatewayAppSettingsDefaultResourceSpecObservation) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#KernelGatewayAppSettingsParameters: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - // +kubebuilder:validation:Optional - customImage?: [...#CustomImageParameters] @go(CustomImage,[]CustomImageParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec?: [...#KernelGatewayAppSettingsDefaultResourceSpecParameters] @go(DefaultResourceSpec,[]KernelGatewayAppSettingsDefaultResourceSpecParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - // +kubebuilder:validation:Optional - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#ModelRegisterSettingsInitParameters: { - // The Amazon Resource Name (ARN) of the SageMaker model registry account. Required only to register model versions created by a different SageMaker Canvas AWS account than the AWS account in which SageMaker model registry is set up. - crossAccountModelRegisterRoleArn?: null | string @go(CrossAccountModelRegisterRoleArn,*string) - - // Describes whether the integration to the model registry is enabled or disabled in the Canvas application.. Valid values are ENABLED and DISABLED. - status?: null | string @go(Status,*string) -} - -#ModelRegisterSettingsObservation: { - // The Amazon Resource Name (ARN) of the SageMaker model registry account. Required only to register model versions created by a different SageMaker Canvas AWS account than the AWS account in which SageMaker model registry is set up. - crossAccountModelRegisterRoleArn?: null | string @go(CrossAccountModelRegisterRoleArn,*string) - - // Describes whether the integration to the model registry is enabled or disabled in the Canvas application.. Valid values are ENABLED and DISABLED. - status?: null | string @go(Status,*string) -} - -#ModelRegisterSettingsParameters: { - // The Amazon Resource Name (ARN) of the SageMaker model registry account. Required only to register model versions created by a different SageMaker Canvas AWS account than the AWS account in which SageMaker model registry is set up. - // +kubebuilder:validation:Optional - crossAccountModelRegisterRoleArn?: null | string @go(CrossAccountModelRegisterRoleArn,*string) - - // Describes whether the integration to the model registry is enabled or disabled in the Canvas application.. Valid values are ENABLED and DISABLED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -#RSessionAppSettingsCustomImageInitParameters: { - // The name of the App Image Config. - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#RSessionAppSettingsCustomImageObservation: { - // The name of the App Image Config. - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#RSessionAppSettingsCustomImageParameters: { - // The name of the App Image Config. - // +kubebuilder:validation:Optional - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - // +kubebuilder:validation:Optional - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - // +kubebuilder:validation:Optional - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#RSessionAppSettingsDefaultResourceSpecInitParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#RSessionAppSettingsDefaultResourceSpecObservation: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#RSessionAppSettingsDefaultResourceSpecParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#RSessionAppSettingsInitParameters: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - customImage?: [...#RSessionAppSettingsCustomImageInitParameters] @go(CustomImage,[]RSessionAppSettingsCustomImageInitParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#RSessionAppSettingsDefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]RSessionAppSettingsDefaultResourceSpecInitParameters) -} - -#RSessionAppSettingsObservation: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - customImage?: [...#RSessionAppSettingsCustomImageObservation] @go(CustomImage,[]RSessionAppSettingsCustomImageObservation) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#RSessionAppSettingsDefaultResourceSpecObservation] @go(DefaultResourceSpec,[]RSessionAppSettingsDefaultResourceSpecObservation) -} - -#RSessionAppSettingsParameters: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - // +kubebuilder:validation:Optional - customImage?: [...#RSessionAppSettingsCustomImageParameters] @go(CustomImage,[]RSessionAppSettingsCustomImageParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec?: [...#RSessionAppSettingsDefaultResourceSpecParameters] @go(DefaultResourceSpec,[]RSessionAppSettingsDefaultResourceSpecParameters) -} - -#RStudioServerProAppSettingsInitParameters: { - // Indicates whether the current user has access to the RStudioServerPro app. Valid values are ENABLED and DISABLED. - accessStatus?: null | string @go(AccessStatus,*string) - - // The level of permissions that the user has within the RStudioServerPro app. This value defaults to R_STUDIO_USER. The R_STUDIO_ADMIN value allows the user access to the RStudio Administrative Dashboard. Valid values are R_STUDIO_USER and R_STUDIO_ADMIN. - userGroup?: null | string @go(UserGroup,*string) -} - -#RStudioServerProAppSettingsObservation: { - // Indicates whether the current user has access to the RStudioServerPro app. Valid values are ENABLED and DISABLED. - accessStatus?: null | string @go(AccessStatus,*string) - - // The level of permissions that the user has within the RStudioServerPro app. This value defaults to R_STUDIO_USER. The R_STUDIO_ADMIN value allows the user access to the RStudio Administrative Dashboard. Valid values are R_STUDIO_USER and R_STUDIO_ADMIN. - userGroup?: null | string @go(UserGroup,*string) -} - -#RStudioServerProAppSettingsParameters: { - // Indicates whether the current user has access to the RStudioServerPro app. Valid values are ENABLED and DISABLED. - // +kubebuilder:validation:Optional - accessStatus?: null | string @go(AccessStatus,*string) - - // The level of permissions that the user has within the RStudioServerPro app. This value defaults to R_STUDIO_USER. The R_STUDIO_ADMIN value allows the user access to the RStudio Administrative Dashboard. Valid values are R_STUDIO_USER and R_STUDIO_ADMIN. - // +kubebuilder:validation:Optional - userGroup?: null | string @go(UserGroup,*string) -} - -#RStudioServerProDomainSettingsDefaultResourceSpecInitParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#RStudioServerProDomainSettingsDefaultResourceSpecObservation: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#RStudioServerProDomainSettingsDefaultResourceSpecParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#RStudioServerProDomainSettingsInitParameters: { - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#RStudioServerProDomainSettingsDefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]RStudioServerProDomainSettingsDefaultResourceSpecInitParameters) - - // The ARN of the execution role for the RStudioServerPro Domain-level app. - domainExecutionRoleArn?: null | string @go(DomainExecutionRoleArn,*string) - - // A URL pointing to an RStudio Connect server. - rStudioConnectUrl?: null | string @go(RStudioConnectURL,*string) - - // A URL pointing to an RStudio Package Manager server. - rStudioPackageManagerUrl?: null | string @go(RStudioPackageManagerURL,*string) -} - -#RStudioServerProDomainSettingsObservation: { - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#RStudioServerProDomainSettingsDefaultResourceSpecObservation] @go(DefaultResourceSpec,[]RStudioServerProDomainSettingsDefaultResourceSpecObservation) - - // The ARN of the execution role for the RStudioServerPro Domain-level app. - domainExecutionRoleArn?: null | string @go(DomainExecutionRoleArn,*string) - - // A URL pointing to an RStudio Connect server. - rStudioConnectUrl?: null | string @go(RStudioConnectURL,*string) - - // A URL pointing to an RStudio Package Manager server. - rStudioPackageManagerUrl?: null | string @go(RStudioPackageManagerURL,*string) -} - -#RStudioServerProDomainSettingsParameters: { - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec?: [...#RStudioServerProDomainSettingsDefaultResourceSpecParameters] @go(DefaultResourceSpec,[]RStudioServerProDomainSettingsDefaultResourceSpecParameters) - - // The ARN of the execution role for the RStudioServerPro Domain-level app. - // +kubebuilder:validation:Optional - domainExecutionRoleArn?: null | string @go(DomainExecutionRoleArn,*string) - - // A URL pointing to an RStudio Connect server. - // +kubebuilder:validation:Optional - rStudioConnectUrl?: null | string @go(RStudioConnectURL,*string) - - // A URL pointing to an RStudio Package Manager server. - // +kubebuilder:validation:Optional - rStudioPackageManagerUrl?: null | string @go(RStudioPackageManagerURL,*string) -} - -#RetentionPolicyInitParameters: { - // The retention policy for data stored on an Amazon Elastic File System (EFS) volume. Valid values are Retain or Delete. Default value is Retain. - homeEfsFileSystem?: null | string @go(HomeEFSFileSystem,*string) -} - -#RetentionPolicyObservation: { - // The retention policy for data stored on an Amazon Elastic File System (EFS) volume. Valid values are Retain or Delete. Default value is Retain. - homeEfsFileSystem?: null | string @go(HomeEFSFileSystem,*string) -} - -#RetentionPolicyParameters: { - // The retention policy for data stored on an Amazon Elastic File System (EFS) volume. Valid values are Retain or Delete. Default value is Retain. - // +kubebuilder:validation:Optional - homeEfsFileSystem?: null | string @go(HomeEFSFileSystem,*string) -} - -#SharingSettingsInitParameters: { - // Whether to include the notebook cell output when sharing the notebook. The default is Disabled. Valid values are Allowed and Disabled. - notebookOutputOption?: null | string @go(NotebookOutputOption,*string) - - // When notebook_output_option is Allowed, the AWS Key Management Service (KMS) encryption key ID used to encrypt the notebook cell output in the Amazon S3 bucket. - s3KmsKeyId?: null | string @go(S3KMSKeyID,*string) - - // When notebook_output_option is Allowed, the Amazon S3 bucket used to save the notebook cell output. - s3OutputPath?: null | string @go(S3OutputPath,*string) -} - -#SharingSettingsObservation: { - // Whether to include the notebook cell output when sharing the notebook. The default is Disabled. Valid values are Allowed and Disabled. - notebookOutputOption?: null | string @go(NotebookOutputOption,*string) - - // When notebook_output_option is Allowed, the AWS Key Management Service (KMS) encryption key ID used to encrypt the notebook cell output in the Amazon S3 bucket. - s3KmsKeyId?: null | string @go(S3KMSKeyID,*string) - - // When notebook_output_option is Allowed, the Amazon S3 bucket used to save the notebook cell output. - s3OutputPath?: null | string @go(S3OutputPath,*string) -} - -#SharingSettingsParameters: { - // Whether to include the notebook cell output when sharing the notebook. The default is Disabled. Valid values are Allowed and Disabled. - // +kubebuilder:validation:Optional - notebookOutputOption?: null | string @go(NotebookOutputOption,*string) - - // When notebook_output_option is Allowed, the AWS Key Management Service (KMS) encryption key ID used to encrypt the notebook cell output in the Amazon S3 bucket. - // +kubebuilder:validation:Optional - s3KmsKeyId?: null | string @go(S3KMSKeyID,*string) - - // When notebook_output_option is Allowed, the Amazon S3 bucket used to save the notebook cell output. - // +kubebuilder:validation:Optional - s3OutputPath?: null | string @go(S3OutputPath,*string) -} - -#TensorBoardAppSettingsDefaultResourceSpecInitParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#TensorBoardAppSettingsDefaultResourceSpecObservation: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#TensorBoardAppSettingsDefaultResourceSpecParameters: { - // The instance type that the image version runs on.. For valid values see SageMaker Instance Types. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The ARN of the SageMaker image that the image version belongs to. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#TensorBoardAppSettingsInitParameters: { - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#TensorBoardAppSettingsDefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]TensorBoardAppSettingsDefaultResourceSpecInitParameters) -} - -#TensorBoardAppSettingsObservation: { - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#TensorBoardAppSettingsDefaultResourceSpecObservation] @go(DefaultResourceSpec,[]TensorBoardAppSettingsDefaultResourceSpecObservation) -} - -#TensorBoardAppSettingsParameters: { - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec?: [...#TensorBoardAppSettingsDefaultResourceSpecParameters] @go(DefaultResourceSpec,[]TensorBoardAppSettingsDefaultResourceSpecParameters) -} - -#TimeSeriesForecastingSettingsInitParameters: { - // The IAM role that Canvas passes to Amazon Forecast for time series forecasting. By default, Canvas uses the execution role specified in the UserProfile that launches the Canvas app. If an execution role is not specified in the UserProfile, Canvas uses the execution role specified in the Domain that owns the UserProfile. To allow time series forecasting, this IAM role should have the AmazonSageMakerCanvasForecastAccess policy attached and forecast.amazonaws.com added in the trust relationship as a service principal. - amazonForecastRoleArn?: null | string @go(AmazonForecastRoleArn,*string) - - // Describes whether time series forecasting is enabled or disabled in the Canvas app. Valid values are ENABLED and DISABLED. - status?: null | string @go(Status,*string) -} - -#TimeSeriesForecastingSettingsObservation: { - // The IAM role that Canvas passes to Amazon Forecast for time series forecasting. By default, Canvas uses the execution role specified in the UserProfile that launches the Canvas app. If an execution role is not specified in the UserProfile, Canvas uses the execution role specified in the Domain that owns the UserProfile. To allow time series forecasting, this IAM role should have the AmazonSageMakerCanvasForecastAccess policy attached and forecast.amazonaws.com added in the trust relationship as a service principal. - amazonForecastRoleArn?: null | string @go(AmazonForecastRoleArn,*string) - - // Describes whether time series forecasting is enabled or disabled in the Canvas app. Valid values are ENABLED and DISABLED. - status?: null | string @go(Status,*string) -} - -#TimeSeriesForecastingSettingsParameters: { - // The IAM role that Canvas passes to Amazon Forecast for time series forecasting. By default, Canvas uses the execution role specified in the UserProfile that launches the Canvas app. If an execution role is not specified in the UserProfile, Canvas uses the execution role specified in the Domain that owns the UserProfile. To allow time series forecasting, this IAM role should have the AmazonSageMakerCanvasForecastAccess policy attached and forecast.amazonaws.com added in the trust relationship as a service principal. - // +kubebuilder:validation:Optional - amazonForecastRoleArn?: null | string @go(AmazonForecastRoleArn,*string) - - // Describes whether time series forecasting is enabled or disabled in the Canvas app. Valid values are ENABLED and DISABLED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -// DomainSpec defines the desired state of Domain -#DomainSpec: { - v1.#ResourceSpec - forProvider: #DomainParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainInitParameters @go(InitProvider) -} - -// DomainStatus defines the observed state of Domain. -#DomainStatus: { - v1.#ResourceStatus - atProvider?: #DomainObservation @go(AtProvider) -} - -// Domain is the Schema for the Domains API. Provides a SageMaker Domain resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Domain: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.authMode) || (has(self.initProvider) && has(self.initProvider.authMode))",message="spec.forProvider.authMode is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.defaultUserSettings) || (has(self.initProvider) && has(self.initProvider.defaultUserSettings))",message="spec.forProvider.defaultUserSettings is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.domainName) || (has(self.initProvider) && has(self.initProvider.domainName))",message="spec.forProvider.domainName is a required parameter" - spec: #DomainSpec @go(Spec) - status?: #DomainStatus @go(Status) -} - -// DomainList contains a list of Domains -#DomainList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Domain] @go(Items,[]Domain) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_endpointconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_endpointconfiguration_types_go_gen.cue deleted file mode 100644 index d7b115b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_endpointconfiguration_types_go_gen.cue +++ /dev/null @@ -1,735 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AsyncInferenceConfigInitParameters: { - // Configures the behavior of the client used by Amazon SageMaker to interact with the model container during asynchronous inference. - clientConfig?: [...#ClientConfigInitParameters] @go(ClientConfig,[]ClientConfigInitParameters) - - // Specifies the configuration for asynchronous inference invocation outputs. - outputConfig?: [...#AsyncInferenceConfigOutputConfigInitParameters] @go(OutputConfig,[]AsyncInferenceConfigOutputConfigInitParameters) -} - -#AsyncInferenceConfigObservation: { - // Configures the behavior of the client used by Amazon SageMaker to interact with the model container during asynchronous inference. - clientConfig?: [...#ClientConfigObservation] @go(ClientConfig,[]ClientConfigObservation) - - // Specifies the configuration for asynchronous inference invocation outputs. - outputConfig?: [...#AsyncInferenceConfigOutputConfigObservation] @go(OutputConfig,[]AsyncInferenceConfigOutputConfigObservation) -} - -#AsyncInferenceConfigOutputConfigInitParameters: { - // The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the asynchronous inference output in Amazon S3. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Specifies the configuration for notifications of inference results for asynchronous inference. - notificationConfig?: [...#NotificationConfigInitParameters] @go(NotificationConfig,[]NotificationConfigInitParameters) - - // The Amazon S3 location to upload failure inference responses to. - s3FailurePath?: null | string @go(S3FailurePath,*string) - - // The Amazon S3 location to upload inference responses to. - s3OutputPath?: null | string @go(S3OutputPath,*string) -} - -#AsyncInferenceConfigOutputConfigObservation: { - // The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the asynchronous inference output in Amazon S3. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Specifies the configuration for notifications of inference results for asynchronous inference. - notificationConfig?: [...#NotificationConfigObservation] @go(NotificationConfig,[]NotificationConfigObservation) - - // The Amazon S3 location to upload failure inference responses to. - s3FailurePath?: null | string @go(S3FailurePath,*string) - - // The Amazon S3 location to upload inference responses to. - s3OutputPath?: null | string @go(S3OutputPath,*string) -} - -#AsyncInferenceConfigOutputConfigParameters: { - // The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the asynchronous inference output in Amazon S3. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Specifies the configuration for notifications of inference results for asynchronous inference. - // +kubebuilder:validation:Optional - notificationConfig?: [...#NotificationConfigParameters] @go(NotificationConfig,[]NotificationConfigParameters) - - // The Amazon S3 location to upload failure inference responses to. - // +kubebuilder:validation:Optional - s3FailurePath?: null | string @go(S3FailurePath,*string) - - // The Amazon S3 location to upload inference responses to. - // +kubebuilder:validation:Optional - s3OutputPath?: null | string @go(S3OutputPath,*string) -} - -#AsyncInferenceConfigParameters: { - // Configures the behavior of the client used by Amazon SageMaker to interact with the model container during asynchronous inference. - // +kubebuilder:validation:Optional - clientConfig?: [...#ClientConfigParameters] @go(ClientConfig,[]ClientConfigParameters) - - // Specifies the configuration for asynchronous inference invocation outputs. - // +kubebuilder:validation:Optional - outputConfig: [...#AsyncInferenceConfigOutputConfigParameters] @go(OutputConfig,[]AsyncInferenceConfigOutputConfigParameters) -} - -#CaptureContentTypeHeaderInitParameters: { - // The CSV content type headers to capture. - csvContentTypes?: [...null | string] @go(CsvContentTypes,[]*string) - - // The JSON content type headers to capture. - jsonContentTypes?: [...null | string] @go(JSONContentTypes,[]*string) -} - -#CaptureContentTypeHeaderObservation: { - // The CSV content type headers to capture. - csvContentTypes?: [...null | string] @go(CsvContentTypes,[]*string) - - // The JSON content type headers to capture. - jsonContentTypes?: [...null | string] @go(JSONContentTypes,[]*string) -} - -#CaptureContentTypeHeaderParameters: { - // The CSV content type headers to capture. - // +kubebuilder:validation:Optional - csvContentTypes?: [...null | string] @go(CsvContentTypes,[]*string) - - // The JSON content type headers to capture. - // +kubebuilder:validation:Optional - jsonContentTypes?: [...null | string] @go(JSONContentTypes,[]*string) -} - -#CaptureOptionsInitParameters: { - // Specifies the data to be captured. Should be one of Input or Output. - captureMode?: null | string @go(CaptureMode,*string) -} - -#CaptureOptionsObservation: { - // Specifies the data to be captured. Should be one of Input or Output. - captureMode?: null | string @go(CaptureMode,*string) -} - -#CaptureOptionsParameters: { - // Specifies the data to be captured. Should be one of Input or Output. - // +kubebuilder:validation:Optional - captureMode?: null | string @go(CaptureMode,*string) -} - -#ClientConfigInitParameters: { - // The maximum number of concurrent requests sent by the SageMaker client to the model container. If no value is provided, Amazon SageMaker will choose an optimal value for you. - maxConcurrentInvocationsPerInstance?: null | float64 @go(MaxConcurrentInvocationsPerInstance,*float64) -} - -#ClientConfigObservation: { - // The maximum number of concurrent requests sent by the SageMaker client to the model container. If no value is provided, Amazon SageMaker will choose an optimal value for you. - maxConcurrentInvocationsPerInstance?: null | float64 @go(MaxConcurrentInvocationsPerInstance,*float64) -} - -#ClientConfigParameters: { - // The maximum number of concurrent requests sent by the SageMaker client to the model container. If no value is provided, Amazon SageMaker will choose an optimal value for you. - // +kubebuilder:validation:Optional - maxConcurrentInvocationsPerInstance?: null | float64 @go(MaxConcurrentInvocationsPerInstance,*float64) -} - -#CoreDumpConfigInitParameters: { - // The Amazon S3 bucket to send the core dump to. - destinationS3Uri?: null | string @go(DestinationS3URI,*string) - - // The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the core dump data at rest using Amazon S3 server-side encryption. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#CoreDumpConfigObservation: { - // The Amazon S3 bucket to send the core dump to. - destinationS3Uri?: null | string @go(DestinationS3URI,*string) - - // The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the core dump data at rest using Amazon S3 server-side encryption. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#CoreDumpConfigParameters: { - // The Amazon S3 bucket to send the core dump to. - // +kubebuilder:validation:Optional - destinationS3Uri?: null | string @go(DestinationS3URI,*string) - - // The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the core dump data at rest using Amazon S3 server-side encryption. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#DataCaptureConfigInitParameters: { - // The content type headers to capture. Fields are documented below. - captureContentTypeHeader?: [...#CaptureContentTypeHeaderInitParameters] @go(CaptureContentTypeHeader,[]CaptureContentTypeHeaderInitParameters) - - // Specifies what data to capture. Fields are documented below. - captureOptions?: [...#CaptureOptionsInitParameters] @go(CaptureOptions,[]CaptureOptionsInitParameters) - - // The URL for S3 location where the captured data is stored. - destinationS3Uri?: null | string @go(DestinationS3URI,*string) - - // Flag to enable data capture. Defaults to false. - enableCapture?: null | bool @go(EnableCapture,*bool) - - // Portion of data to capture. Should be between 0 and 100. - initialSamplingPercentage?: null | float64 @go(InitialSamplingPercentage,*float64) - - // Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt the captured data on Amazon S3. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#DataCaptureConfigObservation: { - // The content type headers to capture. Fields are documented below. - captureContentTypeHeader?: [...#CaptureContentTypeHeaderObservation] @go(CaptureContentTypeHeader,[]CaptureContentTypeHeaderObservation) - - // Specifies what data to capture. Fields are documented below. - captureOptions?: [...#CaptureOptionsObservation] @go(CaptureOptions,[]CaptureOptionsObservation) - - // The URL for S3 location where the captured data is stored. - destinationS3Uri?: null | string @go(DestinationS3URI,*string) - - // Flag to enable data capture. Defaults to false. - enableCapture?: null | bool @go(EnableCapture,*bool) - - // Portion of data to capture. Should be between 0 and 100. - initialSamplingPercentage?: null | float64 @go(InitialSamplingPercentage,*float64) - - // Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt the captured data on Amazon S3. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#DataCaptureConfigParameters: { - // The content type headers to capture. Fields are documented below. - // +kubebuilder:validation:Optional - captureContentTypeHeader?: [...#CaptureContentTypeHeaderParameters] @go(CaptureContentTypeHeader,[]CaptureContentTypeHeaderParameters) - - // Specifies what data to capture. Fields are documented below. - // +kubebuilder:validation:Optional - captureOptions: [...#CaptureOptionsParameters] @go(CaptureOptions,[]CaptureOptionsParameters) - - // The URL for S3 location where the captured data is stored. - // +kubebuilder:validation:Optional - destinationS3Uri?: null | string @go(DestinationS3URI,*string) - - // Flag to enable data capture. Defaults to false. - // +kubebuilder:validation:Optional - enableCapture?: null | bool @go(EnableCapture,*bool) - - // Portion of data to capture. Should be between 0 and 100. - // +kubebuilder:validation:Optional - initialSamplingPercentage?: null | float64 @go(InitialSamplingPercentage,*float64) - - // Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt the captured data on Amazon S3. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#EndpointConfigurationInitParameters: { - // Specifies configuration for how an endpoint performs asynchronous inference. - asyncInferenceConfig?: [...#AsyncInferenceConfigInitParameters] @go(AsyncInferenceConfig,[]AsyncInferenceConfigInitParameters) - - // Specifies the parameters to capture input/output of SageMaker models endpoints. Fields are documented below. - dataCaptureConfig?: [...#DataCaptureConfigInitParameters] @go(DataCaptureConfig,[]DataCaptureConfigInitParameters) - - // An list of ProductionVariant objects, one for each model that you want to host at this endpoint. Fields are documented below. - productionVariants?: [...#ProductionVariantsInitParameters] @go(ProductionVariants,[]ProductionVariantsInitParameters) - - // Array of ProductionVariant objects. There is one for each model that you want to host at this endpoint in shadow mode with production traffic replicated from the model specified on ProductionVariants.If you use this field, you can only specify one variant for ProductionVariants and one variant for ShadowProductionVariants. Fields are documented below. - shadowProductionVariants?: [...#ShadowProductionVariantsInitParameters] @go(ShadowProductionVariants,[]ShadowProductionVariantsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EndpointConfigurationObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this endpoint configuration. - arn?: null | string @go(Arn,*string) - - // Specifies configuration for how an endpoint performs asynchronous inference. - asyncInferenceConfig?: [...#AsyncInferenceConfigObservation] @go(AsyncInferenceConfig,[]AsyncInferenceConfigObservation) - - // Specifies the parameters to capture input/output of SageMaker models endpoints. Fields are documented below. - dataCaptureConfig?: [...#DataCaptureConfigObservation] @go(DataCaptureConfig,[]DataCaptureConfigObservation) - id?: null | string @go(ID,*string) - - // Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // An list of ProductionVariant objects, one for each model that you want to host at this endpoint. Fields are documented below. - productionVariants?: [...#ProductionVariantsObservation] @go(ProductionVariants,[]ProductionVariantsObservation) - - // Array of ProductionVariant objects. There is one for each model that you want to host at this endpoint in shadow mode with production traffic replicated from the model specified on ProductionVariants.If you use this field, you can only specify one variant for ProductionVariants and one variant for ShadowProductionVariants. Fields are documented below. - shadowProductionVariants?: [...#ShadowProductionVariantsObservation] @go(ShadowProductionVariants,[]ShadowProductionVariantsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#EndpointConfigurationParameters: { - // Specifies configuration for how an endpoint performs asynchronous inference. - // +kubebuilder:validation:Optional - asyncInferenceConfig?: [...#AsyncInferenceConfigParameters] @go(AsyncInferenceConfig,[]AsyncInferenceConfigParameters) - - // Specifies the parameters to capture input/output of SageMaker models endpoints. Fields are documented below. - // +kubebuilder:validation:Optional - dataCaptureConfig?: [...#DataCaptureConfigParameters] @go(DataCaptureConfig,[]DataCaptureConfigParameters) - - // Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) - - // An list of ProductionVariant objects, one for each model that you want to host at this endpoint. Fields are documented below. - // +kubebuilder:validation:Optional - productionVariants?: [...#ProductionVariantsParameters] @go(ProductionVariants,[]ProductionVariantsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Array of ProductionVariant objects. There is one for each model that you want to host at this endpoint in shadow mode with production traffic replicated from the model specified on ProductionVariants.If you use this field, you can only specify one variant for ProductionVariants and one variant for ShadowProductionVariants. Fields are documented below. - // +kubebuilder:validation:Optional - shadowProductionVariants?: [...#ShadowProductionVariantsParameters] @go(ShadowProductionVariants,[]ShadowProductionVariantsParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#NotificationConfigInitParameters: { - // Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure. - errorTopic?: null | string @go(ErrorTopic,*string) - - // The Amazon SNS topics where you want the inference response to be included. Valid values are SUCCESS_NOTIFICATION_TOPIC and ERROR_NOTIFICATION_TOPIC. - includeInferenceResponseIn?: [...null | string] @go(IncludeInferenceResponseIn,[]*string) - - // Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success. - successTopic?: null | string @go(SuccessTopic,*string) -} - -#NotificationConfigObservation: { - // Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure. - errorTopic?: null | string @go(ErrorTopic,*string) - - // The Amazon SNS topics where you want the inference response to be included. Valid values are SUCCESS_NOTIFICATION_TOPIC and ERROR_NOTIFICATION_TOPIC. - includeInferenceResponseIn?: [...null | string] @go(IncludeInferenceResponseIn,[]*string) - - // Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success. - successTopic?: null | string @go(SuccessTopic,*string) -} - -#NotificationConfigParameters: { - // Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure. - // +kubebuilder:validation:Optional - errorTopic?: null | string @go(ErrorTopic,*string) - - // The Amazon SNS topics where you want the inference response to be included. Valid values are SUCCESS_NOTIFICATION_TOPIC and ERROR_NOTIFICATION_TOPIC. - // +kubebuilder:validation:Optional - includeInferenceResponseIn?: [...null | string] @go(IncludeInferenceResponseIn,[]*string) - - // Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success. - // +kubebuilder:validation:Optional - successTopic?: null | string @go(SuccessTopic,*string) -} - -#ProductionVariantsInitParameters: { - // The size of the Elastic Inference (EI) instance to use for the production variant. - acceleratorType?: null | string @go(AcceleratorType,*string) - - // The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting. For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests. Valid values between 60 and 3600. - containerStartupHealthCheckTimeoutInSeconds?: null | float64 @go(ContainerStartupHealthCheckTimeoutInSeconds,*float64) - - // Specifies configuration for a core dump from the model container when the process crashes. Fields are documented below. - coreDumpConfig?: [...#CoreDumpConfigInitParameters] @go(CoreDumpConfig,[]CoreDumpConfigInitParameters) - - // You can use this parameter to turn on native Amazon Web Services Systems Manager (SSM) access for a production variant behind an endpoint. By default, SSM access is disabled for all production variants behind an endpoints. - enableSsmAccess?: null | bool @go(EnableSsmAccess,*bool) - - // Initial number of instances used for auto-scaling. - initialInstanceCount?: null | float64 @go(InitialInstanceCount,*float64) - - // Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. If unspecified, it defaults to 1.0. - initialVariantWeight?: null | float64 @go(InitialVariantWeight,*float64) - - // The type of instance to start. - instanceType?: null | string @go(InstanceType,*string) - - // The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this production variant. Valid values between 60 and 3600. - modelDataDownloadTimeoutInSeconds?: null | float64 @go(ModelDataDownloadTimeoutInSeconds,*float64) - - // Specifies configuration for how an endpoint performs asynchronous inference. - serverlessConfig?: [...#ServerlessConfigInitParameters] @go(ServerlessConfig,[]ServerlessConfigInitParameters) - - // The name of the variant. - variantName?: null | string @go(VariantName,*string) - - // The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Valid values between 1 and 512. - volumeSizeInGb?: null | float64 @go(VolumeSizeInGb,*float64) -} - -#ProductionVariantsObservation: { - // The size of the Elastic Inference (EI) instance to use for the production variant. - acceleratorType?: null | string @go(AcceleratorType,*string) - - // The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting. For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests. Valid values between 60 and 3600. - containerStartupHealthCheckTimeoutInSeconds?: null | float64 @go(ContainerStartupHealthCheckTimeoutInSeconds,*float64) - - // Specifies configuration for a core dump from the model container when the process crashes. Fields are documented below. - coreDumpConfig?: [...#CoreDumpConfigObservation] @go(CoreDumpConfig,[]CoreDumpConfigObservation) - - // You can use this parameter to turn on native Amazon Web Services Systems Manager (SSM) access for a production variant behind an endpoint. By default, SSM access is disabled for all production variants behind an endpoints. - enableSsmAccess?: null | bool @go(EnableSsmAccess,*bool) - - // Initial number of instances used for auto-scaling. - initialInstanceCount?: null | float64 @go(InitialInstanceCount,*float64) - - // Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. If unspecified, it defaults to 1.0. - initialVariantWeight?: null | float64 @go(InitialVariantWeight,*float64) - - // The type of instance to start. - instanceType?: null | string @go(InstanceType,*string) - - // The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this production variant. Valid values between 60 and 3600. - modelDataDownloadTimeoutInSeconds?: null | float64 @go(ModelDataDownloadTimeoutInSeconds,*float64) - - // The name of the model to use. - modelName?: null | string @go(ModelName,*string) - - // Specifies configuration for how an endpoint performs asynchronous inference. - serverlessConfig?: [...#ServerlessConfigObservation] @go(ServerlessConfig,[]ServerlessConfigObservation) - - // The name of the variant. - variantName?: null | string @go(VariantName,*string) - - // The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Valid values between 1 and 512. - volumeSizeInGb?: null | float64 @go(VolumeSizeInGb,*float64) -} - -#ProductionVariantsParameters: { - // The size of the Elastic Inference (EI) instance to use for the production variant. - // +kubebuilder:validation:Optional - acceleratorType?: null | string @go(AcceleratorType,*string) - - // The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting. For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests. Valid values between 60 and 3600. - // +kubebuilder:validation:Optional - containerStartupHealthCheckTimeoutInSeconds?: null | float64 @go(ContainerStartupHealthCheckTimeoutInSeconds,*float64) - - // Specifies configuration for a core dump from the model container when the process crashes. Fields are documented below. - // +kubebuilder:validation:Optional - coreDumpConfig?: [...#CoreDumpConfigParameters] @go(CoreDumpConfig,[]CoreDumpConfigParameters) - - // You can use this parameter to turn on native Amazon Web Services Systems Manager (SSM) access for a production variant behind an endpoint. By default, SSM access is disabled for all production variants behind an endpoints. - // +kubebuilder:validation:Optional - enableSsmAccess?: null | bool @go(EnableSsmAccess,*bool) - - // Initial number of instances used for auto-scaling. - // +kubebuilder:validation:Optional - initialInstanceCount?: null | float64 @go(InitialInstanceCount,*float64) - - // Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. If unspecified, it defaults to 1.0. - // +kubebuilder:validation:Optional - initialVariantWeight?: null | float64 @go(InitialVariantWeight,*float64) - - // The type of instance to start. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this production variant. Valid values between 60 and 3600. - // +kubebuilder:validation:Optional - modelDataDownloadTimeoutInSeconds?: null | float64 @go(ModelDataDownloadTimeoutInSeconds,*float64) - - // The name of the model to use. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sagemaker/v1beta1.Model - // +kubebuilder:validation:Optional - modelName?: null | string @go(ModelName,*string) - - // Reference to a Model in sagemaker to populate modelName. - // +kubebuilder:validation:Optional - modelNameRef?: null | v1.#Reference @go(ModelNameRef,*v1.Reference) - - // Selector for a Model in sagemaker to populate modelName. - // +kubebuilder:validation:Optional - modelNameSelector?: null | v1.#Selector @go(ModelNameSelector,*v1.Selector) - - // Specifies configuration for how an endpoint performs asynchronous inference. - // +kubebuilder:validation:Optional - serverlessConfig?: [...#ServerlessConfigParameters] @go(ServerlessConfig,[]ServerlessConfigParameters) - - // The name of the variant. - // +kubebuilder:validation:Optional - variantName?: null | string @go(VariantName,*string) - - // The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Valid values between 1 and 512. - // +kubebuilder:validation:Optional - volumeSizeInGb?: null | float64 @go(VolumeSizeInGb,*float64) -} - -#ServerlessConfigInitParameters: { - // The maximum number of concurrent invocations your serverless endpoint can process. Valid values are between 1 and 200. - maxConcurrency?: null | float64 @go(MaxConcurrency,*float64) - - // The memory size of your serverless endpoint. Valid values are in 1 GB increments: 1024 MB, 2048 MB, 3072 MB, 4096 MB, 5120 MB, or 6144 MB. - memorySizeInMb?: null | float64 @go(MemorySizeInMb,*float64) -} - -#ServerlessConfigObservation: { - // The maximum number of concurrent invocations your serverless endpoint can process. Valid values are between 1 and 200. - maxConcurrency?: null | float64 @go(MaxConcurrency,*float64) - - // The memory size of your serverless endpoint. Valid values are in 1 GB increments: 1024 MB, 2048 MB, 3072 MB, 4096 MB, 5120 MB, or 6144 MB. - memorySizeInMb?: null | float64 @go(MemorySizeInMb,*float64) -} - -#ServerlessConfigParameters: { - // The maximum number of concurrent invocations your serverless endpoint can process. Valid values are between 1 and 200. - // +kubebuilder:validation:Optional - maxConcurrency?: null | float64 @go(MaxConcurrency,*float64) - - // The memory size of your serverless endpoint. Valid values are in 1 GB increments: 1024 MB, 2048 MB, 3072 MB, 4096 MB, 5120 MB, or 6144 MB. - // +kubebuilder:validation:Optional - memorySizeInMb?: null | float64 @go(MemorySizeInMb,*float64) -} - -#ShadowProductionVariantsCoreDumpConfigInitParameters: { - // The Amazon S3 bucket to send the core dump to. - destinationS3Uri?: null | string @go(DestinationS3URI,*string) - - // The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the core dump data at rest using Amazon S3 server-side encryption. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#ShadowProductionVariantsCoreDumpConfigObservation: { - // The Amazon S3 bucket to send the core dump to. - destinationS3Uri?: null | string @go(DestinationS3URI,*string) - - // The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the core dump data at rest using Amazon S3 server-side encryption. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#ShadowProductionVariantsCoreDumpConfigParameters: { - // The Amazon S3 bucket to send the core dump to. - // +kubebuilder:validation:Optional - destinationS3Uri?: null | string @go(DestinationS3URI,*string) - - // The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the core dump data at rest using Amazon S3 server-side encryption. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#ShadowProductionVariantsInitParameters: { - // The size of the Elastic Inference (EI) instance to use for the production variant. - acceleratorType?: null | string @go(AcceleratorType,*string) - - // The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting. For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests. Valid values between 60 and 3600. - containerStartupHealthCheckTimeoutInSeconds?: null | float64 @go(ContainerStartupHealthCheckTimeoutInSeconds,*float64) - - // Specifies configuration for a core dump from the model container when the process crashes. Fields are documented below. - coreDumpConfig?: [...#ShadowProductionVariantsCoreDumpConfigInitParameters] @go(CoreDumpConfig,[]ShadowProductionVariantsCoreDumpConfigInitParameters) - - // You can use this parameter to turn on native Amazon Web Services Systems Manager (SSM) access for a production variant behind an endpoint. By default, SSM access is disabled for all production variants behind an endpoints. - enableSsmAccess?: null | bool @go(EnableSsmAccess,*bool) - - // Initial number of instances used for auto-scaling. - initialInstanceCount?: null | float64 @go(InitialInstanceCount,*float64) - - // Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. If unspecified, it defaults to 1.0. - initialVariantWeight?: null | float64 @go(InitialVariantWeight,*float64) - - // The type of instance to start. - instanceType?: null | string @go(InstanceType,*string) - - // The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this production variant. Valid values between 60 and 3600. - modelDataDownloadTimeoutInSeconds?: null | float64 @go(ModelDataDownloadTimeoutInSeconds,*float64) - - // The name of the model to use. - modelName?: null | string @go(ModelName,*string) - - // Specifies configuration for how an endpoint performs asynchronous inference. - serverlessConfig?: [...#ShadowProductionVariantsServerlessConfigInitParameters] @go(ServerlessConfig,[]ShadowProductionVariantsServerlessConfigInitParameters) - - // The name of the variant. - variantName?: null | string @go(VariantName,*string) - - // The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Valid values between 1 and 512. - volumeSizeInGb?: null | float64 @go(VolumeSizeInGb,*float64) -} - -#ShadowProductionVariantsObservation: { - // The size of the Elastic Inference (EI) instance to use for the production variant. - acceleratorType?: null | string @go(AcceleratorType,*string) - - // The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting. For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests. Valid values between 60 and 3600. - containerStartupHealthCheckTimeoutInSeconds?: null | float64 @go(ContainerStartupHealthCheckTimeoutInSeconds,*float64) - - // Specifies configuration for a core dump from the model container when the process crashes. Fields are documented below. - coreDumpConfig?: [...#ShadowProductionVariantsCoreDumpConfigObservation] @go(CoreDumpConfig,[]ShadowProductionVariantsCoreDumpConfigObservation) - - // You can use this parameter to turn on native Amazon Web Services Systems Manager (SSM) access for a production variant behind an endpoint. By default, SSM access is disabled for all production variants behind an endpoints. - enableSsmAccess?: null | bool @go(EnableSsmAccess,*bool) - - // Initial number of instances used for auto-scaling. - initialInstanceCount?: null | float64 @go(InitialInstanceCount,*float64) - - // Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. If unspecified, it defaults to 1.0. - initialVariantWeight?: null | float64 @go(InitialVariantWeight,*float64) - - // The type of instance to start. - instanceType?: null | string @go(InstanceType,*string) - - // The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this production variant. Valid values between 60 and 3600. - modelDataDownloadTimeoutInSeconds?: null | float64 @go(ModelDataDownloadTimeoutInSeconds,*float64) - - // The name of the model to use. - modelName?: null | string @go(ModelName,*string) - - // Specifies configuration for how an endpoint performs asynchronous inference. - serverlessConfig?: [...#ShadowProductionVariantsServerlessConfigObservation] @go(ServerlessConfig,[]ShadowProductionVariantsServerlessConfigObservation) - - // The name of the variant. - variantName?: null | string @go(VariantName,*string) - - // The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Valid values between 1 and 512. - volumeSizeInGb?: null | float64 @go(VolumeSizeInGb,*float64) -} - -#ShadowProductionVariantsParameters: { - // The size of the Elastic Inference (EI) instance to use for the production variant. - // +kubebuilder:validation:Optional - acceleratorType?: null | string @go(AcceleratorType,*string) - - // The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting. For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests. Valid values between 60 and 3600. - // +kubebuilder:validation:Optional - containerStartupHealthCheckTimeoutInSeconds?: null | float64 @go(ContainerStartupHealthCheckTimeoutInSeconds,*float64) - - // Specifies configuration for a core dump from the model container when the process crashes. Fields are documented below. - // +kubebuilder:validation:Optional - coreDumpConfig?: [...#ShadowProductionVariantsCoreDumpConfigParameters] @go(CoreDumpConfig,[]ShadowProductionVariantsCoreDumpConfigParameters) - - // You can use this parameter to turn on native Amazon Web Services Systems Manager (SSM) access for a production variant behind an endpoint. By default, SSM access is disabled for all production variants behind an endpoints. - // +kubebuilder:validation:Optional - enableSsmAccess?: null | bool @go(EnableSsmAccess,*bool) - - // Initial number of instances used for auto-scaling. - // +kubebuilder:validation:Optional - initialInstanceCount?: null | float64 @go(InitialInstanceCount,*float64) - - // Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. If unspecified, it defaults to 1.0. - // +kubebuilder:validation:Optional - initialVariantWeight?: null | float64 @go(InitialVariantWeight,*float64) - - // The type of instance to start. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this production variant. Valid values between 60 and 3600. - // +kubebuilder:validation:Optional - modelDataDownloadTimeoutInSeconds?: null | float64 @go(ModelDataDownloadTimeoutInSeconds,*float64) - - // The name of the model to use. - // +kubebuilder:validation:Optional - modelName?: null | string @go(ModelName,*string) - - // Specifies configuration for how an endpoint performs asynchronous inference. - // +kubebuilder:validation:Optional - serverlessConfig?: [...#ShadowProductionVariantsServerlessConfigParameters] @go(ServerlessConfig,[]ShadowProductionVariantsServerlessConfigParameters) - - // The name of the variant. - // +kubebuilder:validation:Optional - variantName?: null | string @go(VariantName,*string) - - // The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Valid values between 1 and 512. - // +kubebuilder:validation:Optional - volumeSizeInGb?: null | float64 @go(VolumeSizeInGb,*float64) -} - -#ShadowProductionVariantsServerlessConfigInitParameters: { - // The maximum number of concurrent invocations your serverless endpoint can process. Valid values are between 1 and 200. - maxConcurrency?: null | float64 @go(MaxConcurrency,*float64) - - // The memory size of your serverless endpoint. Valid values are in 1 GB increments: 1024 MB, 2048 MB, 3072 MB, 4096 MB, 5120 MB, or 6144 MB. - memorySizeInMb?: null | float64 @go(MemorySizeInMb,*float64) -} - -#ShadowProductionVariantsServerlessConfigObservation: { - // The maximum number of concurrent invocations your serverless endpoint can process. Valid values are between 1 and 200. - maxConcurrency?: null | float64 @go(MaxConcurrency,*float64) - - // The memory size of your serverless endpoint. Valid values are in 1 GB increments: 1024 MB, 2048 MB, 3072 MB, 4096 MB, 5120 MB, or 6144 MB. - memorySizeInMb?: null | float64 @go(MemorySizeInMb,*float64) -} - -#ShadowProductionVariantsServerlessConfigParameters: { - // The maximum number of concurrent invocations your serverless endpoint can process. Valid values are between 1 and 200. - // +kubebuilder:validation:Optional - maxConcurrency?: null | float64 @go(MaxConcurrency,*float64) - - // The memory size of your serverless endpoint. Valid values are in 1 GB increments: 1024 MB, 2048 MB, 3072 MB, 4096 MB, 5120 MB, or 6144 MB. - // +kubebuilder:validation:Optional - memorySizeInMb?: null | float64 @go(MemorySizeInMb,*float64) -} - -// EndpointConfigurationSpec defines the desired state of EndpointConfiguration -#EndpointConfigurationSpec: { - v1.#ResourceSpec - forProvider: #EndpointConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EndpointConfigurationInitParameters @go(InitProvider) -} - -// EndpointConfigurationStatus defines the observed state of EndpointConfiguration. -#EndpointConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #EndpointConfigurationObservation @go(AtProvider) -} - -// EndpointConfiguration is the Schema for the EndpointConfigurations API. Provides a SageMaker Endpoint Configuration resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EndpointConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.productionVariants) || (has(self.initProvider) && has(self.initProvider.productionVariants))",message="spec.forProvider.productionVariants is a required parameter" - spec: #EndpointConfigurationSpec @go(Spec) - status?: #EndpointConfigurationStatus @go(Status) -} - -// EndpointConfigurationList contains a list of EndpointConfigurations -#EndpointConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EndpointConfiguration] @go(Items,[]EndpointConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_featuregroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_featuregroup_types_go_gen.cue deleted file mode 100644 index d85407d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_featuregroup_types_go_gen.cue +++ /dev/null @@ -1,340 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DataCatalogConfigInitParameters: { - // The name of the Glue table catalog. - catalog?: null | string @go(Catalog,*string) - - // The name of the Glue table database. - database?: null | string @go(Database,*string) - - // The name of the Glue table. - tableName?: null | string @go(TableName,*string) -} - -#DataCatalogConfigObservation: { - // The name of the Glue table catalog. - catalog?: null | string @go(Catalog,*string) - - // The name of the Glue table database. - database?: null | string @go(Database,*string) - - // The name of the Glue table. - tableName?: null | string @go(TableName,*string) -} - -#DataCatalogConfigParameters: { - // The name of the Glue table catalog. - // +kubebuilder:validation:Optional - catalog?: null | string @go(Catalog,*string) - - // The name of the Glue table database. - // +kubebuilder:validation:Optional - database?: null | string @go(Database,*string) - - // The name of the Glue table. - // +kubebuilder:validation:Optional - tableName?: null | string @go(TableName,*string) -} - -#FeatureDefinitionInitParameters: { - // The name of a feature. feature_name cannot be any of the following: is_deleted, write_time, api_invocation_time. - featureName?: null | string @go(FeatureName,*string) - - // The value type of a feature. Valid values are Integral, Fractional, or String. - featureType?: null | string @go(FeatureType,*string) -} - -#FeatureDefinitionObservation: { - // The name of a feature. feature_name cannot be any of the following: is_deleted, write_time, api_invocation_time. - featureName?: null | string @go(FeatureName,*string) - - // The value type of a feature. Valid values are Integral, Fractional, or String. - featureType?: null | string @go(FeatureType,*string) -} - -#FeatureDefinitionParameters: { - // The name of a feature. feature_name cannot be any of the following: is_deleted, write_time, api_invocation_time. - // +kubebuilder:validation:Optional - featureName?: null | string @go(FeatureName,*string) - - // The value type of a feature. Valid values are Integral, Fractional, or String. - // +kubebuilder:validation:Optional - featureType?: null | string @go(FeatureType,*string) -} - -#FeatureGroupInitParameters: { - // A free-form description of a Feature Group. - description?: null | string @go(Description,*string) - - // The name of the feature that stores the EventTime of a Record in a Feature Group. - eventTimeFeatureName?: null | string @go(EventTimeFeatureName,*string) - - // A list of Feature names and types. See Feature Definition Below. - featureDefinition?: [...#FeatureDefinitionInitParameters] @go(FeatureDefinition,[]FeatureDefinitionInitParameters) - - // The Offline Feature Store Configuration. See Offline Store Config Below. - offlineStoreConfig?: [...#OfflineStoreConfigInitParameters] @go(OfflineStoreConfig,[]OfflineStoreConfigInitParameters) - - // The Online Feature Store Configuration. See Online Store Config Below. - onlineStoreConfig?: [...#OnlineStoreConfigInitParameters] @go(OnlineStoreConfig,[]OnlineStoreConfigInitParameters) - - // The name of the Feature whose value uniquely identifies a Record defined in the Feature Store. Only the latest record per identifier value will be stored in the Online Store. - recordIdentifierFeatureName?: null | string @go(RecordIdentifierFeatureName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#FeatureGroupObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this feature_group. - arn?: null | string @go(Arn,*string) - - // A free-form description of a Feature Group. - description?: null | string @go(Description,*string) - - // The name of the feature that stores the EventTime of a Record in a Feature Group. - eventTimeFeatureName?: null | string @go(EventTimeFeatureName,*string) - - // A list of Feature names and types. See Feature Definition Below. - featureDefinition?: [...#FeatureDefinitionObservation] @go(FeatureDefinition,[]FeatureDefinitionObservation) - id?: null | string @go(ID,*string) - - // The Offline Feature Store Configuration. See Offline Store Config Below. - offlineStoreConfig?: [...#OfflineStoreConfigObservation] @go(OfflineStoreConfig,[]OfflineStoreConfigObservation) - - // The Online Feature Store Configuration. See Online Store Config Below. - onlineStoreConfig?: [...#OnlineStoreConfigObservation] @go(OnlineStoreConfig,[]OnlineStoreConfigObservation) - - // The name of the Feature whose value uniquely identifies a Record defined in the Feature Store. Only the latest record per identifier value will be stored in the Online Store. - recordIdentifierFeatureName?: null | string @go(RecordIdentifierFeatureName,*string) - - // The Amazon Resource Name (ARN) of the IAM execution role used to persist data into the Offline Store if an offline_store_config is provided. - roleArn?: null | string @go(RoleArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#FeatureGroupParameters: { - // A free-form description of a Feature Group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the feature that stores the EventTime of a Record in a Feature Group. - // +kubebuilder:validation:Optional - eventTimeFeatureName?: null | string @go(EventTimeFeatureName,*string) - - // A list of Feature names and types. See Feature Definition Below. - // +kubebuilder:validation:Optional - featureDefinition?: [...#FeatureDefinitionParameters] @go(FeatureDefinition,[]FeatureDefinitionParameters) - - // The Offline Feature Store Configuration. See Offline Store Config Below. - // +kubebuilder:validation:Optional - offlineStoreConfig?: [...#OfflineStoreConfigParameters] @go(OfflineStoreConfig,[]OfflineStoreConfigParameters) - - // The Online Feature Store Configuration. See Online Store Config Below. - // +kubebuilder:validation:Optional - onlineStoreConfig?: [...#OnlineStoreConfigParameters] @go(OnlineStoreConfig,[]OnlineStoreConfigParameters) - - // The name of the Feature whose value uniquely identifies a Record defined in the Feature Store. Only the latest record per identifier value will be stored in the Online Store. - // +kubebuilder:validation:Optional - recordIdentifierFeatureName?: null | string @go(RecordIdentifierFeatureName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of the IAM execution role used to persist data into the Offline Store if an offline_store_config is provided. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#OfflineStoreConfigInitParameters: { - // The meta data of the Glue table that is autogenerated when an OfflineStore is created. See Data Catalog Config Below. - dataCatalogConfig?: [...#DataCatalogConfigInitParameters] @go(DataCatalogConfig,[]DataCatalogConfigInitParameters) - - // Set to true to turn Online Store On. - disableGlueTableCreation?: null | bool @go(DisableGlueTableCreation,*bool) - - // The Amazon Simple Storage (Amazon S3) location of OfflineStore. See S3 Storage Config Below. - s3StorageConfig?: [...#S3StorageConfigInitParameters] @go(S3StorageConfig,[]S3StorageConfigInitParameters) - - // Format for the offline store table. Supported formats are Glue (Default) and Apache Iceberg (https://iceberg.apache.org/). - tableFormat?: null | string @go(TableFormat,*string) -} - -#OfflineStoreConfigObservation: { - // The meta data of the Glue table that is autogenerated when an OfflineStore is created. See Data Catalog Config Below. - dataCatalogConfig?: [...#DataCatalogConfigObservation] @go(DataCatalogConfig,[]DataCatalogConfigObservation) - - // Set to true to turn Online Store On. - disableGlueTableCreation?: null | bool @go(DisableGlueTableCreation,*bool) - - // The Amazon Simple Storage (Amazon S3) location of OfflineStore. See S3 Storage Config Below. - s3StorageConfig?: [...#S3StorageConfigObservation] @go(S3StorageConfig,[]S3StorageConfigObservation) - - // Format for the offline store table. Supported formats are Glue (Default) and Apache Iceberg (https://iceberg.apache.org/). - tableFormat?: null | string @go(TableFormat,*string) -} - -#OfflineStoreConfigParameters: { - // The meta data of the Glue table that is autogenerated when an OfflineStore is created. See Data Catalog Config Below. - // +kubebuilder:validation:Optional - dataCatalogConfig?: [...#DataCatalogConfigParameters] @go(DataCatalogConfig,[]DataCatalogConfigParameters) - - // Set to true to turn Online Store On. - // +kubebuilder:validation:Optional - disableGlueTableCreation?: null | bool @go(DisableGlueTableCreation,*bool) - - // The Amazon Simple Storage (Amazon S3) location of OfflineStore. See S3 Storage Config Below. - // +kubebuilder:validation:Optional - s3StorageConfig: [...#S3StorageConfigParameters] @go(S3StorageConfig,[]S3StorageConfigParameters) - - // Format for the offline store table. Supported formats are Glue (Default) and Apache Iceberg (https://iceberg.apache.org/). - // +kubebuilder:validation:Optional - tableFormat?: null | string @go(TableFormat,*string) -} - -#OnlineStoreConfigInitParameters: { - // Set to true to disable the automatic creation of an AWS Glue table when configuring an OfflineStore. - enableOnlineStore?: null | bool @go(EnableOnlineStore,*bool) - - // Security config for at-rest encryption of your OnlineStore. See Security Config Below. - securityConfig?: [...#SecurityConfigInitParameters] @go(SecurityConfig,[]SecurityConfigInitParameters) -} - -#OnlineStoreConfigObservation: { - // Set to true to disable the automatic creation of an AWS Glue table when configuring an OfflineStore. - enableOnlineStore?: null | bool @go(EnableOnlineStore,*bool) - - // Security config for at-rest encryption of your OnlineStore. See Security Config Below. - securityConfig?: [...#SecurityConfigObservation] @go(SecurityConfig,[]SecurityConfigObservation) -} - -#OnlineStoreConfigParameters: { - // Set to true to disable the automatic creation of an AWS Glue table when configuring an OfflineStore. - // +kubebuilder:validation:Optional - enableOnlineStore?: null | bool @go(EnableOnlineStore,*bool) - - // Security config for at-rest encryption of your OnlineStore. See Security Config Below. - // +kubebuilder:validation:Optional - securityConfig?: [...#SecurityConfigParameters] @go(SecurityConfig,[]SecurityConfigParameters) -} - -#S3StorageConfigInitParameters: { - // The AWS Key Management Service (KMS) key ID of the key used to encrypt any objects written into the OfflineStore S3 location. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The S3 URI, or location in Amazon S3, of OfflineStore. - s3Uri?: null | string @go(S3URI,*string) -} - -#S3StorageConfigObservation: { - // The AWS Key Management Service (KMS) key ID of the key used to encrypt any objects written into the OfflineStore S3 location. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The S3 URI, or location in Amazon S3, of OfflineStore. - s3Uri?: null | string @go(S3URI,*string) -} - -#S3StorageConfigParameters: { - // The AWS Key Management Service (KMS) key ID of the key used to encrypt any objects written into the OfflineStore S3 location. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The S3 URI, or location in Amazon S3, of OfflineStore. - // +kubebuilder:validation:Optional - s3Uri?: null | string @go(S3URI,*string) -} - -#SecurityConfigInitParameters: { - // The AWS Key Management Service (KMS) key ID of the key used to encrypt any objects written into the OfflineStore S3 location. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#SecurityConfigObservation: { - // The AWS Key Management Service (KMS) key ID of the key used to encrypt any objects written into the OfflineStore S3 location. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#SecurityConfigParameters: { - // The AWS Key Management Service (KMS) key ID of the key used to encrypt any objects written into the OfflineStore S3 location. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -// FeatureGroupSpec defines the desired state of FeatureGroup -#FeatureGroupSpec: { - v1.#ResourceSpec - forProvider: #FeatureGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FeatureGroupInitParameters @go(InitProvider) -} - -// FeatureGroupStatus defines the observed state of FeatureGroup. -#FeatureGroupStatus: { - v1.#ResourceStatus - atProvider?: #FeatureGroupObservation @go(AtProvider) -} - -// FeatureGroup is the Schema for the FeatureGroups API. Provides a SageMaker Feature Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FeatureGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.eventTimeFeatureName) || (has(self.initProvider) && has(self.initProvider.eventTimeFeatureName))",message="spec.forProvider.eventTimeFeatureName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.featureDefinition) || (has(self.initProvider) && has(self.initProvider.featureDefinition))",message="spec.forProvider.featureDefinition is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.recordIdentifierFeatureName) || (has(self.initProvider) && has(self.initProvider.recordIdentifierFeatureName))",message="spec.forProvider.recordIdentifierFeatureName is a required parameter" - spec: #FeatureGroupSpec @go(Spec) - status?: #FeatureGroupStatus @go(Status) -} - -// FeatureGroupList contains a list of FeatureGroups -#FeatureGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FeatureGroup] @go(Items,[]FeatureGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index dd68d0f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=sagemaker.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "sagemaker.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_image_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_image_types_go_gen.cue deleted file mode 100644 index e7f2857..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_image_types_go_gen.cue +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ImageInitParameters: { - // The description of the image. - description?: null | string @go(Description,*string) - - // The display name of the image. When the image is added to a domain (must be unique to the domain). - displayName?: null | string @go(DisplayName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ImageObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this Image. - arn?: null | string @go(Arn,*string) - - // The description of the image. - description?: null | string @go(Description,*string) - - // The display name of the image. When the image is added to a domain (must be unique to the domain). - displayName?: null | string @go(DisplayName,*string) - - // The name of the Image. - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf. - roleArn?: null | string @go(RoleArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ImageParameters: { - // The description of the image. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The display name of the image. When the image is added to a domain (must be unique to the domain). - // +kubebuilder:validation:Optional - displayName?: null | string @go(DisplayName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ImageSpec defines the desired state of Image -#ImageSpec: { - v1.#ResourceSpec - forProvider: #ImageParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ImageInitParameters @go(InitProvider) -} - -// ImageStatus defines the observed state of Image. -#ImageStatus: { - v1.#ResourceStatus - atProvider?: #ImageObservation @go(AtProvider) -} - -// Image is the Schema for the Images API. Provides a SageMaker Image resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Image: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ImageSpec @go(Spec) - status?: #ImageStatus @go(Status) -} - -// ImageList contains a list of Images -#ImageList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Image] @go(Items,[]Image) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_imageversion_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_imageversion_types_go_gen.cue deleted file mode 100644 index 0028365..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_imageversion_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ImageVersionInitParameters: { - // The registry path of the container image on which this image version is based. - baseImage?: null | string @go(BaseImage,*string) -} - -#ImageVersionObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this Image Version. - arn?: null | string @go(Arn,*string) - - // The registry path of the container image on which this image version is based. - baseImage?: null | string @go(BaseImage,*string) - - // The registry path of the container image that contains this image version. - containerImage?: null | string @go(ContainerImage,*string) - - // The name of the Image. - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) of the image the version is based on. - imageArn?: null | string @go(ImageArn,*string) - - // The name of the image. Must be unique to your account. - imageName?: null | string @go(ImageName,*string) - version?: null | float64 @go(Version,*float64) -} - -#ImageVersionParameters: { - // The registry path of the container image on which this image version is based. - // +kubebuilder:validation:Optional - baseImage?: null | string @go(BaseImage,*string) - - // The name of the image. Must be unique to your account. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sagemaker/v1beta1.Image - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - imageName?: null | string @go(ImageName,*string) - - // Reference to a Image in sagemaker to populate imageName. - // +kubebuilder:validation:Optional - imageNameRef?: null | v1.#Reference @go(ImageNameRef,*v1.Reference) - - // Selector for a Image in sagemaker to populate imageName. - // +kubebuilder:validation:Optional - imageNameSelector?: null | v1.#Selector @go(ImageNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ImageVersionSpec defines the desired state of ImageVersion -#ImageVersionSpec: { - v1.#ResourceSpec - forProvider: #ImageVersionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ImageVersionInitParameters @go(InitProvider) -} - -// ImageVersionStatus defines the observed state of ImageVersion. -#ImageVersionStatus: { - v1.#ResourceStatus - atProvider?: #ImageVersionObservation @go(AtProvider) -} - -// ImageVersion is the Schema for the ImageVersions API. Provides a SageMaker Image Version resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ImageVersion: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.baseImage) || (has(self.initProvider) && has(self.initProvider.baseImage))",message="spec.forProvider.baseImage is a required parameter" - spec: #ImageVersionSpec @go(Spec) - status?: #ImageVersionStatus @go(Status) -} - -// ImageVersionList contains a list of ImageVersions -#ImageVersionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ImageVersion] @go(Items,[]ImageVersion) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_model_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_model_types_go_gen.cue deleted file mode 100644 index 9f5b28b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_model_types_go_gen.cue +++ /dev/null @@ -1,406 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ContainerInitParameters: { - // The DNS host name for the container. - containerHostname?: null | string @go(ContainerHostname,*string) - - // Environment variables for the Docker container. - // A list of key value pairs. - environment?: {[string]: null | string} @go(Environment,map[string]*string) - - // The registry path where the inference code image is stored in Amazon ECR. - image?: null | string @go(Image,*string) - - // Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). For more information see Using a Private Docker Registry for Real-Time Inference Containers. see Image Config. - imageConfig?: [...#ImageConfigInitParameters] @go(ImageConfig,[]ImageConfigInitParameters) - - // The container hosts value SingleModel/MultiModel. The default value is SingleModel. - mode?: null | string @go(Mode,*string) - - // The URL for the S3 location where model artifacts are stored. - modelDataUrl?: null | string @go(ModelDataURL,*string) -} - -#ContainerObservation: { - // The DNS host name for the container. - containerHostname?: null | string @go(ContainerHostname,*string) - - // Environment variables for the Docker container. - // A list of key value pairs. - environment?: {[string]: null | string} @go(Environment,map[string]*string) - - // The registry path where the inference code image is stored in Amazon ECR. - image?: null | string @go(Image,*string) - - // Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). For more information see Using a Private Docker Registry for Real-Time Inference Containers. see Image Config. - imageConfig?: [...#ImageConfigObservation] @go(ImageConfig,[]ImageConfigObservation) - - // The container hosts value SingleModel/MultiModel. The default value is SingleModel. - mode?: null | string @go(Mode,*string) - - // The URL for the S3 location where model artifacts are stored. - modelDataUrl?: null | string @go(ModelDataURL,*string) -} - -#ContainerParameters: { - // The DNS host name for the container. - // +kubebuilder:validation:Optional - containerHostname?: null | string @go(ContainerHostname,*string) - - // Environment variables for the Docker container. - // A list of key value pairs. - // +kubebuilder:validation:Optional - environment?: {[string]: null | string} @go(Environment,map[string]*string) - - // The registry path where the inference code image is stored in Amazon ECR. - // +kubebuilder:validation:Optional - image?: null | string @go(Image,*string) - - // Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). For more information see Using a Private Docker Registry for Real-Time Inference Containers. see Image Config. - // +kubebuilder:validation:Optional - imageConfig?: [...#ImageConfigParameters] @go(ImageConfig,[]ImageConfigParameters) - - // The container hosts value SingleModel/MultiModel. The default value is SingleModel. - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) - - // The URL for the S3 location where model artifacts are stored. - // +kubebuilder:validation:Optional - modelDataUrl?: null | string @go(ModelDataURL,*string) -} - -#ImageConfigInitParameters: { - // Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). Allowed values are: Platform and Vpc. - repositoryAccessMode?: null | string @go(RepositoryAccessMode,*string) - - // Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc as the value for the RepositoryAccessMode field, and the private Docker registry where the model image is hosted requires authentication. see Repository Auth Config. - repositoryAuthConfig?: [...#RepositoryAuthConfigInitParameters] @go(RepositoryAuthConfig,[]RepositoryAuthConfigInitParameters) -} - -#ImageConfigObservation: { - // Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). Allowed values are: Platform and Vpc. - repositoryAccessMode?: null | string @go(RepositoryAccessMode,*string) - - // Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc as the value for the RepositoryAccessMode field, and the private Docker registry where the model image is hosted requires authentication. see Repository Auth Config. - repositoryAuthConfig?: [...#RepositoryAuthConfigObservation] @go(RepositoryAuthConfig,[]RepositoryAuthConfigObservation) -} - -#ImageConfigParameters: { - // Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). Allowed values are: Platform and Vpc. - // +kubebuilder:validation:Optional - repositoryAccessMode?: null | string @go(RepositoryAccessMode,*string) - - // Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc as the value for the RepositoryAccessMode field, and the private Docker registry where the model image is hosted requires authentication. see Repository Auth Config. - // +kubebuilder:validation:Optional - repositoryAuthConfig?: [...#RepositoryAuthConfigParameters] @go(RepositoryAuthConfig,[]RepositoryAuthConfigParameters) -} - -#ImageConfigRepositoryAuthConfigInitParameters: { - // The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted. For information about how to create an AWS Lambda function, see Create a Lambda function with the console in the AWS Lambda Developer Guide. - repositoryCredentialsProviderArn?: null | string @go(RepositoryCredentialsProviderArn,*string) -} - -#ImageConfigRepositoryAuthConfigObservation: { - // The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted. For information about how to create an AWS Lambda function, see Create a Lambda function with the console in the AWS Lambda Developer Guide. - repositoryCredentialsProviderArn?: null | string @go(RepositoryCredentialsProviderArn,*string) -} - -#ImageConfigRepositoryAuthConfigParameters: { - // The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted. For information about how to create an AWS Lambda function, see Create a Lambda function with the console in the AWS Lambda Developer Guide. - // +kubebuilder:validation:Optional - repositoryCredentialsProviderArn?: null | string @go(RepositoryCredentialsProviderArn,*string) -} - -#InferenceExecutionConfigInitParameters: { - // The container hosts value SingleModel/MultiModel. The default value is SingleModel. - mode?: null | string @go(Mode,*string) -} - -#InferenceExecutionConfigObservation: { - // The container hosts value SingleModel/MultiModel. The default value is SingleModel. - mode?: null | string @go(Mode,*string) -} - -#InferenceExecutionConfigParameters: { - // The container hosts value SingleModel/MultiModel. The default value is SingleModel. - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) -} - -#ModelInitParameters: { - // Specifies containers in the inference pipeline. If not specified, the primary_container argument is required. Fields are documented below. - container?: [...#ContainerInitParameters] @go(Container,[]ContainerInitParameters) - - // Isolates the model container. No inbound or outbound network calls can be made to or from the model container. - enableNetworkIsolation?: null | bool @go(EnableNetworkIsolation,*bool) - - // Specifies details of how containers in a multi-container endpoint are called. see Inference Execution Config. - inferenceExecutionConfig?: [...#InferenceExecutionConfigInitParameters] @go(InferenceExecutionConfig,[]InferenceExecutionConfigInitParameters) - - // The primary docker image containing inference code that is used when the model is deployed for predictions. If not specified, the container argument is required. Fields are documented below. - primaryContainer?: [...#PrimaryContainerInitParameters] @go(PrimaryContainer,[]PrimaryContainerInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the VPC that you want your model to connect to. VpcConfig is used in hosting services and in batch transform. - vpcConfig?: [...#VPCConfigInitParameters] @go(VPCConfig,[]VPCConfigInitParameters) -} - -#ModelObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this model. - arn?: null | string @go(Arn,*string) - - // Specifies containers in the inference pipeline. If not specified, the primary_container argument is required. Fields are documented below. - container?: [...#ContainerObservation] @go(Container,[]ContainerObservation) - - // Isolates the model container. No inbound or outbound network calls can be made to or from the model container. - enableNetworkIsolation?: null | bool @go(EnableNetworkIsolation,*bool) - - // A role that SageMaker can assume to access model artifacts and docker images for deployment. - executionRoleArn?: null | string @go(ExecutionRoleArn,*string) - id?: null | string @go(ID,*string) - - // Specifies details of how containers in a multi-container endpoint are called. see Inference Execution Config. - inferenceExecutionConfig?: [...#InferenceExecutionConfigObservation] @go(InferenceExecutionConfig,[]InferenceExecutionConfigObservation) - - // The primary docker image containing inference code that is used when the model is deployed for predictions. If not specified, the container argument is required. Fields are documented below. - primaryContainer?: [...#PrimaryContainerObservation] @go(PrimaryContainer,[]PrimaryContainerObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Specifies the VPC that you want your model to connect to. VpcConfig is used in hosting services and in batch transform. - vpcConfig?: [...#VPCConfigObservation] @go(VPCConfig,[]VPCConfigObservation) -} - -#ModelParameters: { - // Specifies containers in the inference pipeline. If not specified, the primary_container argument is required. Fields are documented below. - // +kubebuilder:validation:Optional - container?: [...#ContainerParameters] @go(Container,[]ContainerParameters) - - // Isolates the model container. No inbound or outbound network calls can be made to or from the model container. - // +kubebuilder:validation:Optional - enableNetworkIsolation?: null | bool @go(EnableNetworkIsolation,*bool) - - // A role that SageMaker can assume to access model artifacts and docker images for deployment. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - executionRoleArn?: null | string @go(ExecutionRoleArn,*string) - - // Reference to a Role in iam to populate executionRoleArn. - // +kubebuilder:validation:Optional - executionRoleArnRef?: null | v1.#Reference @go(ExecutionRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate executionRoleArn. - // +kubebuilder:validation:Optional - executionRoleArnSelector?: null | v1.#Selector @go(ExecutionRoleArnSelector,*v1.Selector) - - // Specifies details of how containers in a multi-container endpoint are called. see Inference Execution Config. - // +kubebuilder:validation:Optional - inferenceExecutionConfig?: [...#InferenceExecutionConfigParameters] @go(InferenceExecutionConfig,[]InferenceExecutionConfigParameters) - - // The primary docker image containing inference code that is used when the model is deployed for predictions. If not specified, the container argument is required. Fields are documented below. - // +kubebuilder:validation:Optional - primaryContainer?: [...#PrimaryContainerParameters] @go(PrimaryContainer,[]PrimaryContainerParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Specifies the VPC that you want your model to connect to. VpcConfig is used in hosting services and in batch transform. - // +kubebuilder:validation:Optional - vpcConfig?: [...#VPCConfigParameters] @go(VPCConfig,[]VPCConfigParameters) -} - -#PrimaryContainerImageConfigInitParameters: { - // Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). Allowed values are: Platform and Vpc. - repositoryAccessMode?: null | string @go(RepositoryAccessMode,*string) - - // Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc as the value for the RepositoryAccessMode field, and the private Docker registry where the model image is hosted requires authentication. see Repository Auth Config. - repositoryAuthConfig?: [...#ImageConfigRepositoryAuthConfigInitParameters] @go(RepositoryAuthConfig,[]ImageConfigRepositoryAuthConfigInitParameters) -} - -#PrimaryContainerImageConfigObservation: { - // Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). Allowed values are: Platform and Vpc. - repositoryAccessMode?: null | string @go(RepositoryAccessMode,*string) - - // Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc as the value for the RepositoryAccessMode field, and the private Docker registry where the model image is hosted requires authentication. see Repository Auth Config. - repositoryAuthConfig?: [...#ImageConfigRepositoryAuthConfigObservation] @go(RepositoryAuthConfig,[]ImageConfigRepositoryAuthConfigObservation) -} - -#PrimaryContainerImageConfigParameters: { - // Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). Allowed values are: Platform and Vpc. - // +kubebuilder:validation:Optional - repositoryAccessMode?: null | string @go(RepositoryAccessMode,*string) - - // Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc as the value for the RepositoryAccessMode field, and the private Docker registry where the model image is hosted requires authentication. see Repository Auth Config. - // +kubebuilder:validation:Optional - repositoryAuthConfig?: [...#ImageConfigRepositoryAuthConfigParameters] @go(RepositoryAuthConfig,[]ImageConfigRepositoryAuthConfigParameters) -} - -#PrimaryContainerInitParameters: { - // The DNS host name for the container. - containerHostname?: null | string @go(ContainerHostname,*string) - - // Environment variables for the Docker container. - // A list of key value pairs. - environment?: {[string]: null | string} @go(Environment,map[string]*string) - - // The registry path where the inference code image is stored in Amazon ECR. - image?: null | string @go(Image,*string) - - // Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). For more information see Using a Private Docker Registry for Real-Time Inference Containers. see Image Config. - imageConfig?: [...#PrimaryContainerImageConfigInitParameters] @go(ImageConfig,[]PrimaryContainerImageConfigInitParameters) - - // The container hosts value SingleModel/MultiModel. The default value is SingleModel. - mode?: null | string @go(Mode,*string) - - // The URL for the S3 location where model artifacts are stored. - modelDataUrl?: null | string @go(ModelDataURL,*string) -} - -#PrimaryContainerObservation: { - // The DNS host name for the container. - containerHostname?: null | string @go(ContainerHostname,*string) - - // Environment variables for the Docker container. - // A list of key value pairs. - environment?: {[string]: null | string} @go(Environment,map[string]*string) - - // The registry path where the inference code image is stored in Amazon ECR. - image?: null | string @go(Image,*string) - - // Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). For more information see Using a Private Docker Registry for Real-Time Inference Containers. see Image Config. - imageConfig?: [...#PrimaryContainerImageConfigObservation] @go(ImageConfig,[]PrimaryContainerImageConfigObservation) - - // The container hosts value SingleModel/MultiModel. The default value is SingleModel. - mode?: null | string @go(Mode,*string) - - // The URL for the S3 location where model artifacts are stored. - modelDataUrl?: null | string @go(ModelDataURL,*string) -} - -#PrimaryContainerParameters: { - // The DNS host name for the container. - // +kubebuilder:validation:Optional - containerHostname?: null | string @go(ContainerHostname,*string) - - // Environment variables for the Docker container. - // A list of key value pairs. - // +kubebuilder:validation:Optional - environment?: {[string]: null | string} @go(Environment,map[string]*string) - - // The registry path where the inference code image is stored in Amazon ECR. - // +kubebuilder:validation:Optional - image?: null | string @go(Image,*string) - - // Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). For more information see Using a Private Docker Registry for Real-Time Inference Containers. see Image Config. - // +kubebuilder:validation:Optional - imageConfig?: [...#PrimaryContainerImageConfigParameters] @go(ImageConfig,[]PrimaryContainerImageConfigParameters) - - // The container hosts value SingleModel/MultiModel. The default value is SingleModel. - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) - - // The URL for the S3 location where model artifacts are stored. - // +kubebuilder:validation:Optional - modelDataUrl?: null | string @go(ModelDataURL,*string) -} - -#RepositoryAuthConfigInitParameters: { - // The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted. For information about how to create an AWS Lambda function, see Create a Lambda function with the console in the AWS Lambda Developer Guide. - repositoryCredentialsProviderArn?: null | string @go(RepositoryCredentialsProviderArn,*string) -} - -#RepositoryAuthConfigObservation: { - // The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted. For information about how to create an AWS Lambda function, see Create a Lambda function with the console in the AWS Lambda Developer Guide. - repositoryCredentialsProviderArn?: null | string @go(RepositoryCredentialsProviderArn,*string) -} - -#RepositoryAuthConfigParameters: { - // The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted. For information about how to create an AWS Lambda function, see Create a Lambda function with the console in the AWS Lambda Developer Guide. - // +kubebuilder:validation:Optional - repositoryCredentialsProviderArn?: null | string @go(RepositoryCredentialsProviderArn,*string) -} - -#VPCConfigInitParameters: { - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - subnets?: [...null | string] @go(Subnets,[]*string) -} - -#VPCConfigObservation: { - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - subnets?: [...null | string] @go(Subnets,[]*string) -} - -#VPCConfigParameters: { - // +kubebuilder:validation:Optional - securityGroupIds: [...null | string] @go(SecurityGroupIds,[]*string) - - // +kubebuilder:validation:Optional - subnets: [...null | string] @go(Subnets,[]*string) -} - -// ModelSpec defines the desired state of Model -#ModelSpec: { - v1.#ResourceSpec - forProvider: #ModelParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ModelInitParameters @go(InitProvider) -} - -// ModelStatus defines the observed state of Model. -#ModelStatus: { - v1.#ResourceStatus - atProvider?: #ModelObservation @go(AtProvider) -} - -// Model is the Schema for the Models API. Provides a SageMaker model resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Model: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ModelSpec @go(Spec) - status?: #ModelStatus @go(Status) -} - -// ModelList contains a list of Models -#ModelList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Model] @go(Items,[]Model) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_modelpackagegroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_modelpackagegroup_types_go_gen.cue deleted file mode 100644 index 5bc705b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_modelpackagegroup_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ModelPackageGroupInitParameters: { - // A description for the model group. - modelPackageGroupDescription?: null | string @go(ModelPackageGroupDescription,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ModelPackageGroupObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this Model Package Group. - arn?: null | string @go(Arn,*string) - - // The name of the Model Package Group. - id?: null | string @go(ID,*string) - - // A description for the model group. - modelPackageGroupDescription?: null | string @go(ModelPackageGroupDescription,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ModelPackageGroupParameters: { - // A description for the model group. - // +kubebuilder:validation:Optional - modelPackageGroupDescription?: null | string @go(ModelPackageGroupDescription,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ModelPackageGroupSpec defines the desired state of ModelPackageGroup -#ModelPackageGroupSpec: { - v1.#ResourceSpec - forProvider: #ModelPackageGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ModelPackageGroupInitParameters @go(InitProvider) -} - -// ModelPackageGroupStatus defines the observed state of ModelPackageGroup. -#ModelPackageGroupStatus: { - v1.#ResourceStatus - atProvider?: #ModelPackageGroupObservation @go(AtProvider) -} - -// ModelPackageGroup is the Schema for the ModelPackageGroups API. Provides a SageMaker Model Package Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ModelPackageGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ModelPackageGroupSpec @go(Spec) - status?: #ModelPackageGroupStatus @go(Status) -} - -// ModelPackageGroupList contains a list of ModelPackageGroups -#ModelPackageGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ModelPackageGroup] @go(Items,[]ModelPackageGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_modelpackagegrouppolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_modelpackagegrouppolicy_types_go_gen.cue deleted file mode 100644 index 01c6caf..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_modelpackagegrouppolicy_types_go_gen.cue +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ModelPackageGroupPolicyInitParameters: { - resourcePolicy?: null | string @go(ResourcePolicy,*string) -} - -#ModelPackageGroupPolicyObservation: { - // The name of the Model Package Package Group. - id?: null | string @go(ID,*string) - - // The name of the model package group. - modelPackageGroupName?: null | string @go(ModelPackageGroupName,*string) - resourcePolicy?: null | string @go(ResourcePolicy,*string) -} - -#ModelPackageGroupPolicyParameters: { - // The name of the model package group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sagemaker/v1beta1.ModelPackageGroup - // +kubebuilder:validation:Optional - modelPackageGroupName?: null | string @go(ModelPackageGroupName,*string) - - // Reference to a ModelPackageGroup in sagemaker to populate modelPackageGroupName. - // +kubebuilder:validation:Optional - modelPackageGroupNameRef?: null | v1.#Reference @go(ModelPackageGroupNameRef,*v1.Reference) - - // Selector for a ModelPackageGroup in sagemaker to populate modelPackageGroupName. - // +kubebuilder:validation:Optional - modelPackageGroupNameSelector?: null | v1.#Selector @go(ModelPackageGroupNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // +kubebuilder:validation:Optional - resourcePolicy?: null | string @go(ResourcePolicy,*string) -} - -// ModelPackageGroupPolicySpec defines the desired state of ModelPackageGroupPolicy -#ModelPackageGroupPolicySpec: { - v1.#ResourceSpec - forProvider: #ModelPackageGroupPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ModelPackageGroupPolicyInitParameters @go(InitProvider) -} - -// ModelPackageGroupPolicyStatus defines the observed state of ModelPackageGroupPolicy. -#ModelPackageGroupPolicyStatus: { - v1.#ResourceStatus - atProvider?: #ModelPackageGroupPolicyObservation @go(AtProvider) -} - -// ModelPackageGroupPolicy is the Schema for the ModelPackageGroupPolicys API. Provides a SageMaker Model Package Group Policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ModelPackageGroupPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.resourcePolicy) || (has(self.initProvider) && has(self.initProvider.resourcePolicy))",message="spec.forProvider.resourcePolicy is a required parameter" - spec: #ModelPackageGroupPolicySpec @go(Spec) - status?: #ModelPackageGroupPolicyStatus @go(Status) -} - -// ModelPackageGroupPolicyList contains a list of ModelPackageGroupPolicys -#ModelPackageGroupPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ModelPackageGroupPolicy] @go(Items,[]ModelPackageGroupPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_notebookinstance_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_notebookinstance_types_go_gen.cue deleted file mode 100644 index cfd959a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_notebookinstance_types_go_gen.cue +++ /dev/null @@ -1,277 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InstanceMetadataServiceConfigurationInitParameters: { - // Indicates the minimum IMDS version that the notebook instance supports. When passed "1" is passed. This means that both IMDSv1 and IMDSv2 are supported. Valid values are 1 and 2. - minimumInstanceMetadataServiceVersion?: null | string @go(MinimumInstanceMetadataServiceVersion,*string) -} - -#InstanceMetadataServiceConfigurationObservation: { - // Indicates the minimum IMDS version that the notebook instance supports. When passed "1" is passed. This means that both IMDSv1 and IMDSv2 are supported. Valid values are 1 and 2. - minimumInstanceMetadataServiceVersion?: null | string @go(MinimumInstanceMetadataServiceVersion,*string) -} - -#InstanceMetadataServiceConfigurationParameters: { - // Indicates the minimum IMDS version that the notebook instance supports. When passed "1" is passed. This means that both IMDSv1 and IMDSv2 are supported. Valid values are 1 and 2. - // +kubebuilder:validation:Optional - minimumInstanceMetadataServiceVersion?: null | string @go(MinimumInstanceMetadataServiceVersion,*string) -} - -#NotebookInstanceInitParameters: { - // A list of Elastic Inference (EI) instance types to associate with this notebook instance. See Elastic Inference Accelerator for more details. Valid values: ml.eia1.medium, ml.eia1.large, ml.eia1.xlarge, ml.eia2.medium, ml.eia2.large, ml.eia2.xlarge. - acceleratorTypes?: [...null | string] @go(AcceleratorTypes,[]*string) - - // An array of up to three Git repositories to associate with the notebook instance. - // These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in AWS CodeCommit or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance. - additionalCodeRepositories?: [...null | string] @go(AdditionalCodeRepositories,[]*string) - - // Set to Disabled to disable internet access to notebook. Requires security_groups and subnet_id to be set. Supported values: Enabled (Default) or Disabled. If set to Disabled, the notebook instance will be able to access resources only in your VPC, and will not be able to connect to Amazon SageMaker training and endpoint services unless your configure a NAT Gateway in your VPC. - directInternetAccess?: null | string @go(DirectInternetAccess,*string) - - // Information on the IMDS configuration of the notebook instance. Conflicts with instance_metadata_service_configuration. see details below. - instanceMetadataServiceConfiguration?: [...#InstanceMetadataServiceConfigurationInitParameters] @go(InstanceMetadataServiceConfiguration,[]InstanceMetadataServiceConfigurationInitParameters) - - // The name of ML compute instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The name of a lifecycle configuration to associate with the notebook instance. - lifecycleConfigName?: null | string @go(LifecycleConfigName,*string) - - // The platform identifier of the notebook instance runtime environment. This value can be either notebook-al1-v1, notebook-al2-v1, or notebook-al2-v2, depending on which version of Amazon Linux you require. - platformIdentifier?: null | string @go(PlatformIdentifier,*string) - - // Whether root access is Enabled or Disabled for users of the notebook instance. The default value is Enabled. - rootAccess?: null | string @go(RootAccess,*string) - - // The associated security groups. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB. - volumeSize?: null | float64 @go(VolumeSize,*float64) -} - -#NotebookInstanceObservation: { - // A list of Elastic Inference (EI) instance types to associate with this notebook instance. See Elastic Inference Accelerator for more details. Valid values: ml.eia1.medium, ml.eia1.large, ml.eia1.xlarge, ml.eia2.medium, ml.eia2.large, ml.eia2.xlarge. - acceleratorTypes?: [...null | string] @go(AcceleratorTypes,[]*string) - - // An array of up to three Git repositories to associate with the notebook instance. - // These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in AWS CodeCommit or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance. - additionalCodeRepositories?: [...null | string] @go(AdditionalCodeRepositories,[]*string) - - // The Amazon Resource Name (ARN) assigned by AWS to this notebook instance. - arn?: null | string @go(Arn,*string) - - // The Git repository associated with the notebook instance as its default code repository. This can be either the name of a Git repository stored as a resource in your account, or the URL of a Git repository in AWS CodeCommit or in any other Git repository. - defaultCodeRepository?: null | string @go(DefaultCodeRepository,*string) - - // Set to Disabled to disable internet access to notebook. Requires security_groups and subnet_id to be set. Supported values: Enabled (Default) or Disabled. If set to Disabled, the notebook instance will be able to access resources only in your VPC, and will not be able to connect to Amazon SageMaker training and endpoint services unless your configure a NAT Gateway in your VPC. - directInternetAccess?: null | string @go(DirectInternetAccess,*string) - - // The name of the notebook instance. - id?: null | string @go(ID,*string) - - // Information on the IMDS configuration of the notebook instance. Conflicts with instance_metadata_service_configuration. see details below. - instanceMetadataServiceConfiguration?: [...#InstanceMetadataServiceConfigurationObservation] @go(InstanceMetadataServiceConfiguration,[]InstanceMetadataServiceConfigurationObservation) - - // The name of ML compute instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The name of a lifecycle configuration to associate with the notebook instance. - lifecycleConfigName?: null | string @go(LifecycleConfigName,*string) - - // The network interface ID that Amazon SageMaker created at the time of creating the instance. Only available when setting subnet_id. - networkInterfaceId?: null | string @go(NetworkInterfaceID,*string) - - // The platform identifier of the notebook instance runtime environment. This value can be either notebook-al1-v1, notebook-al2-v1, or notebook-al2-v2, depending on which version of Amazon Linux you require. - platformIdentifier?: null | string @go(PlatformIdentifier,*string) - - // The ARN of the IAM role to be used by the notebook instance which allows SageMaker to call other services on your behalf. - roleArn?: null | string @go(RoleArn,*string) - - // Whether root access is Enabled or Disabled for users of the notebook instance. The default value is Enabled. - rootAccess?: null | string @go(RootAccess,*string) - - // The associated security groups. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The VPC subnet ID. - subnetId?: null | string @go(SubnetID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The URL that you use to connect to the Jupyter notebook that is running in your notebook instance. - url?: null | string @go(URL,*string) - - // The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB. - volumeSize?: null | float64 @go(VolumeSize,*float64) -} - -#NotebookInstanceParameters: { - // A list of Elastic Inference (EI) instance types to associate with this notebook instance. See Elastic Inference Accelerator for more details. Valid values: ml.eia1.medium, ml.eia1.large, ml.eia1.xlarge, ml.eia2.medium, ml.eia2.large, ml.eia2.xlarge. - // +kubebuilder:validation:Optional - acceleratorTypes?: [...null | string] @go(AcceleratorTypes,[]*string) - - // An array of up to three Git repositories to associate with the notebook instance. - // These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in AWS CodeCommit or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance. - // +kubebuilder:validation:Optional - additionalCodeRepositories?: [...null | string] @go(AdditionalCodeRepositories,[]*string) - - // The Git repository associated with the notebook instance as its default code repository. This can be either the name of a Git repository stored as a resource in your account, or the URL of a Git repository in AWS CodeCommit or in any other Git repository. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sagemaker/v1beta1.CodeRepository - // +kubebuilder:validation:Optional - defaultCodeRepository?: null | string @go(DefaultCodeRepository,*string) - - // Reference to a CodeRepository in sagemaker to populate defaultCodeRepository. - // +kubebuilder:validation:Optional - defaultCodeRepositoryRef?: null | v1.#Reference @go(DefaultCodeRepositoryRef,*v1.Reference) - - // Selector for a CodeRepository in sagemaker to populate defaultCodeRepository. - // +kubebuilder:validation:Optional - defaultCodeRepositorySelector?: null | v1.#Selector @go(DefaultCodeRepositorySelector,*v1.Selector) - - // Set to Disabled to disable internet access to notebook. Requires security_groups and subnet_id to be set. Supported values: Enabled (Default) or Disabled. If set to Disabled, the notebook instance will be able to access resources only in your VPC, and will not be able to connect to Amazon SageMaker training and endpoint services unless your configure a NAT Gateway in your VPC. - // +kubebuilder:validation:Optional - directInternetAccess?: null | string @go(DirectInternetAccess,*string) - - // Information on the IMDS configuration of the notebook instance. Conflicts with instance_metadata_service_configuration. see details below. - // +kubebuilder:validation:Optional - instanceMetadataServiceConfiguration?: [...#InstanceMetadataServiceConfigurationParameters] @go(InstanceMetadataServiceConfiguration,[]InstanceMetadataServiceConfigurationParameters) - - // The name of ML compute instance type. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // The name of a lifecycle configuration to associate with the notebook instance. - // +kubebuilder:validation:Optional - lifecycleConfigName?: null | string @go(LifecycleConfigName,*string) - - // The platform identifier of the notebook instance runtime environment. This value can be either notebook-al1-v1, notebook-al2-v1, or notebook-al2-v2, depending on which version of Amazon Linux you require. - // +kubebuilder:validation:Optional - platformIdentifier?: null | string @go(PlatformIdentifier,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of the IAM role to be used by the notebook instance which allows SageMaker to call other services on your behalf. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Whether root access is Enabled or Disabled for users of the notebook instance. The default value is Enabled. - // +kubebuilder:validation:Optional - rootAccess?: null | string @go(RootAccess,*string) - - // The associated security groups. - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The VPC subnet ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +kubebuilder:validation:Optional - subnetId?: null | string @go(SubnetID,*string) - - // Reference to a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdRef?: null | v1.#Reference @go(SubnetIDRef,*v1.Reference) - - // Selector for a Subnet in ec2 to populate subnetId. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB. - // +kubebuilder:validation:Optional - volumeSize?: null | float64 @go(VolumeSize,*float64) -} - -// NotebookInstanceSpec defines the desired state of NotebookInstance -#NotebookInstanceSpec: { - v1.#ResourceSpec - forProvider: #NotebookInstanceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NotebookInstanceInitParameters @go(InitProvider) -} - -// NotebookInstanceStatus defines the observed state of NotebookInstance. -#NotebookInstanceStatus: { - v1.#ResourceStatus - atProvider?: #NotebookInstanceObservation @go(AtProvider) -} - -// NotebookInstance is the Schema for the NotebookInstances API. Provides a SageMaker Notebook Instance resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NotebookInstance: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceType) || (has(self.initProvider) && has(self.initProvider.instanceType))",message="spec.forProvider.instanceType is a required parameter" - spec: #NotebookInstanceSpec @go(Spec) - status?: #NotebookInstanceStatus @go(Status) -} - -// NotebookInstanceList contains a list of NotebookInstances -#NotebookInstanceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NotebookInstance] @go(Items,[]NotebookInstance) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_notebookinstancelifecycleconfiguration_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_notebookinstancelifecycleconfiguration_types_go_gen.cue deleted file mode 100644 index 85b33e2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_notebookinstancelifecycleconfiguration_types_go_gen.cue +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NotebookInstanceLifecycleConfigurationInitParameters: { - // A shell script (base64-encoded) that runs only once when the SageMaker Notebook Instance is created. - onCreate?: null | string @go(OnCreate,*string) - - // A shell script (base64-encoded) that runs every time the SageMaker Notebook Instance is started including the time it's created. - onStart?: null | string @go(OnStart,*string) -} - -#NotebookInstanceLifecycleConfigurationObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this lifecycle configuration. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // A shell script (base64-encoded) that runs only once when the SageMaker Notebook Instance is created. - onCreate?: null | string @go(OnCreate,*string) - - // A shell script (base64-encoded) that runs every time the SageMaker Notebook Instance is started including the time it's created. - onStart?: null | string @go(OnStart,*string) -} - -#NotebookInstanceLifecycleConfigurationParameters: { - // A shell script (base64-encoded) that runs only once when the SageMaker Notebook Instance is created. - // +kubebuilder:validation:Optional - onCreate?: null | string @go(OnCreate,*string) - - // A shell script (base64-encoded) that runs every time the SageMaker Notebook Instance is started including the time it's created. - // +kubebuilder:validation:Optional - onStart?: null | string @go(OnStart,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// NotebookInstanceLifecycleConfigurationSpec defines the desired state of NotebookInstanceLifecycleConfiguration -#NotebookInstanceLifecycleConfigurationSpec: { - v1.#ResourceSpec - forProvider: #NotebookInstanceLifecycleConfigurationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NotebookInstanceLifecycleConfigurationInitParameters @go(InitProvider) -} - -// NotebookInstanceLifecycleConfigurationStatus defines the observed state of NotebookInstanceLifecycleConfiguration. -#NotebookInstanceLifecycleConfigurationStatus: { - v1.#ResourceStatus - atProvider?: #NotebookInstanceLifecycleConfigurationObservation @go(AtProvider) -} - -// NotebookInstanceLifecycleConfiguration is the Schema for the NotebookInstanceLifecycleConfigurations API. Provides a lifecycle configuration for SageMaker Notebook Instances. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NotebookInstanceLifecycleConfiguration: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #NotebookInstanceLifecycleConfigurationSpec @go(Spec) - status?: #NotebookInstanceLifecycleConfigurationStatus @go(Status) -} - -// NotebookInstanceLifecycleConfigurationList contains a list of NotebookInstanceLifecycleConfigurations -#NotebookInstanceLifecycleConfigurationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NotebookInstanceLifecycleConfiguration] @go(Items,[]NotebookInstanceLifecycleConfiguration) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_servicecatalogportfoliostatus_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_servicecatalogportfoliostatus_types_go_gen.cue deleted file mode 100644 index 7c6245c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_servicecatalogportfoliostatus_types_go_gen.cue +++ /dev/null @@ -1,81 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ServicecatalogPortfolioStatusInitParameters: { - // Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled. - status?: null | string @go(Status,*string) -} - -#ServicecatalogPortfolioStatusObservation: { - // The AWS Region the Servicecatalog portfolio status resides in. - id?: null | string @go(ID,*string) - - // Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled. - status?: null | string @go(Status,*string) -} - -#ServicecatalogPortfolioStatusParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -// ServicecatalogPortfolioStatusSpec defines the desired state of ServicecatalogPortfolioStatus -#ServicecatalogPortfolioStatusSpec: { - v1.#ResourceSpec - forProvider: #ServicecatalogPortfolioStatusParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ServicecatalogPortfolioStatusInitParameters @go(InitProvider) -} - -// ServicecatalogPortfolioStatusStatus defines the observed state of ServicecatalogPortfolioStatus. -#ServicecatalogPortfolioStatusStatus: { - v1.#ResourceStatus - atProvider?: #ServicecatalogPortfolioStatusObservation @go(AtProvider) -} - -// ServicecatalogPortfolioStatus is the Schema for the ServicecatalogPortfolioStatuss API. Manages status of Service Catalog in SageMaker. Service Catalog is used to create SageMaker projects. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ServicecatalogPortfolioStatus: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.status) || (has(self.initProvider) && has(self.initProvider.status))",message="spec.forProvider.status is a required parameter" - spec: #ServicecatalogPortfolioStatusSpec @go(Spec) - status?: #ServicecatalogPortfolioStatusStatus @go(Status) -} - -// ServicecatalogPortfolioStatusList contains a list of ServicecatalogPortfolioStatuss -#ServicecatalogPortfolioStatusList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ServicecatalogPortfolioStatus] @go(Items,[]ServicecatalogPortfolioStatus) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_space_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_space_types_go_gen.cue deleted file mode 100644 index 5a2bf8e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_space_types_go_gen.cue +++ /dev/null @@ -1,369 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SpaceInitParameters: { - // The name of the space. - spaceName?: null | string @go(SpaceName,*string) - - // A collection of space settings. See Space Settings below. - spaceSettings?: [...#SpaceSettingsInitParameters] @go(SpaceSettings,[]SpaceSettingsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SpaceObservation: { - // The space's Amazon Resource Name (ARN). - arn?: null | string @go(Arn,*string) - - // The ID of the associated Domain. - domainId?: null | string @go(DomainID,*string) - - // The ID of the space's profile in the Amazon Elastic File System volume. - homeEfsFileSystemUid?: null | string @go(HomeEFSFileSystemUID,*string) - - // The space's Amazon Resource Name (ARN). - id?: null | string @go(ID,*string) - - // The name of the space. - spaceName?: null | string @go(SpaceName,*string) - - // A collection of space settings. See Space Settings below. - spaceSettings?: [...#SpaceSettingsObservation] @go(SpaceSettings,[]SpaceSettingsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SpaceParameters: { - // The ID of the associated Domain. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sagemaker/v1beta1.Domain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - domainId?: null | string @go(DomainID,*string) - - // Reference to a Domain in sagemaker to populate domainId. - // +kubebuilder:validation:Optional - domainIdRef?: null | v1.#Reference @go(DomainIDRef,*v1.Reference) - - // Selector for a Domain in sagemaker to populate domainId. - // +kubebuilder:validation:Optional - domainIdSelector?: null | v1.#Selector @go(DomainIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the space. - // +kubebuilder:validation:Optional - spaceName?: null | string @go(SpaceName,*string) - - // A collection of space settings. See Space Settings below. - // +kubebuilder:validation:Optional - spaceSettings?: [...#SpaceSettingsParameters] @go(SpaceSettings,[]SpaceSettingsParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SpaceSettingsInitParameters: { - // The Jupyter server's app settings. See Jupyter Server App Settings below. - jupyterServerAppSettings?: [...#SpaceSettingsJupyterServerAppSettingsInitParameters] @go(JupyterServerAppSettings,[]SpaceSettingsJupyterServerAppSettingsInitParameters) - - // The kernel gateway app settings. See Kernel Gateway App Settings below. - kernelGatewayAppSettings?: [...#SpaceSettingsKernelGatewayAppSettingsInitParameters] @go(KernelGatewayAppSettings,[]SpaceSettingsKernelGatewayAppSettingsInitParameters) -} - -#SpaceSettingsJupyterServerAppSettingsCodeRepositoryInitParameters: { - // The URL of the Git repository. - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#SpaceSettingsJupyterServerAppSettingsCodeRepositoryObservation: { - // The URL of the Git repository. - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#SpaceSettingsJupyterServerAppSettingsCodeRepositoryParameters: { - // The URL of the Git repository. - // +kubebuilder:validation:Optional - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#SpaceSettingsJupyterServerAppSettingsDefaultResourceSpecInitParameters: { - // The instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#SpaceSettingsJupyterServerAppSettingsDefaultResourceSpecObservation: { - // The instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#SpaceSettingsJupyterServerAppSettingsDefaultResourceSpecParameters: { - // The instance type. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#SpaceSettingsJupyterServerAppSettingsInitParameters: { - // A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below. - codeRepository?: [...#SpaceSettingsJupyterServerAppSettingsCodeRepositoryInitParameters] @go(CodeRepository,[]SpaceSettingsJupyterServerAppSettingsCodeRepositoryInitParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#SpaceSettingsJupyterServerAppSettingsDefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]SpaceSettingsJupyterServerAppSettingsDefaultResourceSpecInitParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#SpaceSettingsJupyterServerAppSettingsObservation: { - // A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below. - codeRepository?: [...#SpaceSettingsJupyterServerAppSettingsCodeRepositoryObservation] @go(CodeRepository,[]SpaceSettingsJupyterServerAppSettingsCodeRepositoryObservation) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#SpaceSettingsJupyterServerAppSettingsDefaultResourceSpecObservation] @go(DefaultResourceSpec,[]SpaceSettingsJupyterServerAppSettingsDefaultResourceSpecObservation) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#SpaceSettingsJupyterServerAppSettingsParameters: { - // A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below. - // +kubebuilder:validation:Optional - codeRepository?: [...#SpaceSettingsJupyterServerAppSettingsCodeRepositoryParameters] @go(CodeRepository,[]SpaceSettingsJupyterServerAppSettingsCodeRepositoryParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec: [...#SpaceSettingsJupyterServerAppSettingsDefaultResourceSpecParameters] @go(DefaultResourceSpec,[]SpaceSettingsJupyterServerAppSettingsDefaultResourceSpecParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - // +kubebuilder:validation:Optional - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#SpaceSettingsKernelGatewayAppSettingsCustomImageInitParameters: { - // The name of the App Image Config. - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#SpaceSettingsKernelGatewayAppSettingsCustomImageObservation: { - // The name of the App Image Config. - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#SpaceSettingsKernelGatewayAppSettingsCustomImageParameters: { - // The name of the App Image Config. - // +kubebuilder:validation:Optional - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - // +kubebuilder:validation:Optional - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - // +kubebuilder:validation:Optional - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#SpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecInitParameters: { - // The instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#SpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecObservation: { - // The instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#SpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecParameters: { - // The instance type. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#SpaceSettingsKernelGatewayAppSettingsInitParameters: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - customImage?: [...#SpaceSettingsKernelGatewayAppSettingsCustomImageInitParameters] @go(CustomImage,[]SpaceSettingsKernelGatewayAppSettingsCustomImageInitParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#SpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]SpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecInitParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#SpaceSettingsKernelGatewayAppSettingsObservation: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - customImage?: [...#SpaceSettingsKernelGatewayAppSettingsCustomImageObservation] @go(CustomImage,[]SpaceSettingsKernelGatewayAppSettingsCustomImageObservation) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#SpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecObservation] @go(DefaultResourceSpec,[]SpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecObservation) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#SpaceSettingsKernelGatewayAppSettingsParameters: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - // +kubebuilder:validation:Optional - customImage?: [...#SpaceSettingsKernelGatewayAppSettingsCustomImageParameters] @go(CustomImage,[]SpaceSettingsKernelGatewayAppSettingsCustomImageParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec: [...#SpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecParameters] @go(DefaultResourceSpec,[]SpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - // +kubebuilder:validation:Optional - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#SpaceSettingsObservation: { - // The Jupyter server's app settings. See Jupyter Server App Settings below. - jupyterServerAppSettings?: [...#SpaceSettingsJupyterServerAppSettingsObservation] @go(JupyterServerAppSettings,[]SpaceSettingsJupyterServerAppSettingsObservation) - - // The kernel gateway app settings. See Kernel Gateway App Settings below. - kernelGatewayAppSettings?: [...#SpaceSettingsKernelGatewayAppSettingsObservation] @go(KernelGatewayAppSettings,[]SpaceSettingsKernelGatewayAppSettingsObservation) -} - -#SpaceSettingsParameters: { - // The Jupyter server's app settings. See Jupyter Server App Settings below. - // +kubebuilder:validation:Optional - jupyterServerAppSettings?: [...#SpaceSettingsJupyterServerAppSettingsParameters] @go(JupyterServerAppSettings,[]SpaceSettingsJupyterServerAppSettingsParameters) - - // The kernel gateway app settings. See Kernel Gateway App Settings below. - // +kubebuilder:validation:Optional - kernelGatewayAppSettings?: [...#SpaceSettingsKernelGatewayAppSettingsParameters] @go(KernelGatewayAppSettings,[]SpaceSettingsKernelGatewayAppSettingsParameters) -} - -// SpaceSpec defines the desired state of Space -#SpaceSpec: { - v1.#ResourceSpec - forProvider: #SpaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SpaceInitParameters @go(InitProvider) -} - -// SpaceStatus defines the observed state of Space. -#SpaceStatus: { - v1.#ResourceStatus - atProvider?: #SpaceObservation @go(AtProvider) -} - -// Space is the Schema for the Spaces API. Provides a SageMaker Space resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Space: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.spaceName) || (has(self.initProvider) && has(self.initProvider.spaceName))",message="spec.forProvider.spaceName is a required parameter" - spec: #SpaceSpec @go(Spec) - status?: #SpaceStatus @go(Status) -} - -// SpaceList contains a list of Spaces -#SpaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Space] @go(Items,[]Space) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_studiolifecycleconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_studiolifecycleconfig_types_go_gen.cue deleted file mode 100644 index d1416fe..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_studiolifecycleconfig_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#StudioLifecycleConfigInitParameters: { - // The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway. - studioLifecycleConfigAppType?: null | string @go(StudioLifecycleConfigAppType,*string) - - // The content of your Studio Lifecycle Configuration script. This content must be base64 encoded. - studioLifecycleConfigContent?: null | string @go(StudioLifecycleConfigContent,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#StudioLifecycleConfigObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config. - arn?: null | string @go(Arn,*string) - - // The name of the Studio Lifecycle Config. - id?: null | string @go(ID,*string) - - // The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway. - studioLifecycleConfigAppType?: null | string @go(StudioLifecycleConfigAppType,*string) - - // The content of your Studio Lifecycle Configuration script. This content must be base64 encoded. - studioLifecycleConfigContent?: null | string @go(StudioLifecycleConfigContent,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#StudioLifecycleConfigParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway. - // +kubebuilder:validation:Optional - studioLifecycleConfigAppType?: null | string @go(StudioLifecycleConfigAppType,*string) - - // The content of your Studio Lifecycle Configuration script. This content must be base64 encoded. - // +kubebuilder:validation:Optional - studioLifecycleConfigContent?: null | string @go(StudioLifecycleConfigContent,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// StudioLifecycleConfigSpec defines the desired state of StudioLifecycleConfig -#StudioLifecycleConfigSpec: { - v1.#ResourceSpec - forProvider: #StudioLifecycleConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StudioLifecycleConfigInitParameters @go(InitProvider) -} - -// StudioLifecycleConfigStatus defines the observed state of StudioLifecycleConfig. -#StudioLifecycleConfigStatus: { - v1.#ResourceStatus - atProvider?: #StudioLifecycleConfigObservation @go(AtProvider) -} - -// StudioLifecycleConfig is the Schema for the StudioLifecycleConfigs API. Provides a SageMaker Studio Lifecycle Config resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#StudioLifecycleConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.studioLifecycleConfigAppType) || (has(self.initProvider) && has(self.initProvider.studioLifecycleConfigAppType))",message="spec.forProvider.studioLifecycleConfigAppType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.studioLifecycleConfigContent) || (has(self.initProvider) && has(self.initProvider.studioLifecycleConfigContent))",message="spec.forProvider.studioLifecycleConfigContent is a required parameter" - spec: #StudioLifecycleConfigSpec @go(Spec) - status?: #StudioLifecycleConfigStatus @go(Status) -} - -// StudioLifecycleConfigList contains a list of StudioLifecycleConfigs -#StudioLifecycleConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#StudioLifecycleConfig] @go(Items,[]StudioLifecycleConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_userprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_userprofile_types_go_gen.cue deleted file mode 100644 index 46643c8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_userprofile_types_go_gen.cue +++ /dev/null @@ -1,769 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CanvasAppSettingsModelRegisterSettingsInitParameters: { - // The Amazon Resource Name (ARN) of the SageMaker model registry account. Required only to register model versions created by a different SageMaker Canvas AWS account than the AWS account in which SageMaker model registry is set up. - crossAccountModelRegisterRoleArn?: null | string @go(CrossAccountModelRegisterRoleArn,*string) - - // Describes whether time series forecasting is enabled or disabled in the Canvas app. Valid values are ENABLED and DISABLED. - status?: null | string @go(Status,*string) -} - -#CanvasAppSettingsModelRegisterSettingsObservation: { - // The Amazon Resource Name (ARN) of the SageMaker model registry account. Required only to register model versions created by a different SageMaker Canvas AWS account than the AWS account in which SageMaker model registry is set up. - crossAccountModelRegisterRoleArn?: null | string @go(CrossAccountModelRegisterRoleArn,*string) - - // Describes whether time series forecasting is enabled or disabled in the Canvas app. Valid values are ENABLED and DISABLED. - status?: null | string @go(Status,*string) -} - -#CanvasAppSettingsModelRegisterSettingsParameters: { - // The Amazon Resource Name (ARN) of the SageMaker model registry account. Required only to register model versions created by a different SageMaker Canvas AWS account than the AWS account in which SageMaker model registry is set up. - // +kubebuilder:validation:Optional - crossAccountModelRegisterRoleArn?: null | string @go(CrossAccountModelRegisterRoleArn,*string) - - // Describes whether time series forecasting is enabled or disabled in the Canvas app. Valid values are ENABLED and DISABLED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -#CanvasAppSettingsTimeSeriesForecastingSettingsInitParameters: { - // The IAM role that Canvas passes to Amazon Forecast for time series forecasting. By default, Canvas uses the execution role specified in the UserProfile that launches the Canvas app. If an execution role is not specified in the UserProfile, Canvas uses the execution role specified in the Domain that owns the UserProfile. To allow time series forecasting, this IAM role should have the AmazonSageMakerCanvasForecastAccess policy attached and forecast.amazonaws.com added in the trust relationship as a service principal. - amazonForecastRoleArn?: null | string @go(AmazonForecastRoleArn,*string) - - // Describes whether time series forecasting is enabled or disabled in the Canvas app. Valid values are ENABLED and DISABLED. - status?: null | string @go(Status,*string) -} - -#CanvasAppSettingsTimeSeriesForecastingSettingsObservation: { - // The IAM role that Canvas passes to Amazon Forecast for time series forecasting. By default, Canvas uses the execution role specified in the UserProfile that launches the Canvas app. If an execution role is not specified in the UserProfile, Canvas uses the execution role specified in the Domain that owns the UserProfile. To allow time series forecasting, this IAM role should have the AmazonSageMakerCanvasForecastAccess policy attached and forecast.amazonaws.com added in the trust relationship as a service principal. - amazonForecastRoleArn?: null | string @go(AmazonForecastRoleArn,*string) - - // Describes whether time series forecasting is enabled or disabled in the Canvas app. Valid values are ENABLED and DISABLED. - status?: null | string @go(Status,*string) -} - -#CanvasAppSettingsTimeSeriesForecastingSettingsParameters: { - // The IAM role that Canvas passes to Amazon Forecast for time series forecasting. By default, Canvas uses the execution role specified in the UserProfile that launches the Canvas app. If an execution role is not specified in the UserProfile, Canvas uses the execution role specified in the Domain that owns the UserProfile. To allow time series forecasting, this IAM role should have the AmazonSageMakerCanvasForecastAccess policy attached and forecast.amazonaws.com added in the trust relationship as a service principal. - // +kubebuilder:validation:Optional - amazonForecastRoleArn?: null | string @go(AmazonForecastRoleArn,*string) - - // Describes whether time series forecasting is enabled or disabled in the Canvas app. Valid values are ENABLED and DISABLED. - // +kubebuilder:validation:Optional - status?: null | string @go(Status,*string) -} - -#UserProfileInitParameters: { - // A specifier for the type of value specified in single_sign_on_user_value. Currently, the only supported value is UserName. If the Domain's AuthMode is SSO, this field is required. If the Domain's AuthMode is not SSO, this field cannot be specified. - singleSignOnUserIdentifier?: null | string @go(SingleSignOnUserIdentifier,*string) - - // The username of the associated AWS Single Sign-On User for this User Profile. If the Domain's AuthMode is SSO, this field is required, and must match a valid username of a user in your directory. If the Domain's AuthMode is not SSO, this field cannot be specified. - singleSignOnUserValue?: null | string @go(SingleSignOnUserValue,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The name for the User Profile. - userProfileName?: null | string @go(UserProfileName,*string) - - // The user settings. See User Settings below. - userSettings?: [...#UserSettingsInitParameters] @go(UserSettings,[]UserSettingsInitParameters) -} - -#UserProfileObservation: { - // The user profile Amazon Resource Name (ARN). - arn?: null | string @go(Arn,*string) - - // The ID of the associated Domain. - domainId?: null | string @go(DomainID,*string) - - // The ID of the user's profile in the Amazon Elastic File System (EFS) volume. - homeEfsFileSystemUid?: null | string @go(HomeEFSFileSystemUID,*string) - - // The user profile Amazon Resource Name (ARN). - id?: null | string @go(ID,*string) - - // A specifier for the type of value specified in single_sign_on_user_value. Currently, the only supported value is UserName. If the Domain's AuthMode is SSO, this field is required. If the Domain's AuthMode is not SSO, this field cannot be specified. - singleSignOnUserIdentifier?: null | string @go(SingleSignOnUserIdentifier,*string) - - // The username of the associated AWS Single Sign-On User for this User Profile. If the Domain's AuthMode is SSO, this field is required, and must match a valid username of a user in your directory. If the Domain's AuthMode is not SSO, this field cannot be specified. - singleSignOnUserValue?: null | string @go(SingleSignOnUserValue,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The name for the User Profile. - userProfileName?: null | string @go(UserProfileName,*string) - - // The user settings. See User Settings below. - userSettings?: [...#UserSettingsObservation] @go(UserSettings,[]UserSettingsObservation) -} - -#UserProfileParameters: { - // The ID of the associated Domain. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sagemaker/v1beta1.Domain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - domainId?: null | string @go(DomainID,*string) - - // Reference to a Domain in sagemaker to populate domainId. - // +kubebuilder:validation:Optional - domainIdRef?: null | v1.#Reference @go(DomainIDRef,*v1.Reference) - - // Selector for a Domain in sagemaker to populate domainId. - // +kubebuilder:validation:Optional - domainIdSelector?: null | v1.#Selector @go(DomainIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A specifier for the type of value specified in single_sign_on_user_value. Currently, the only supported value is UserName. If the Domain's AuthMode is SSO, this field is required. If the Domain's AuthMode is not SSO, this field cannot be specified. - // +kubebuilder:validation:Optional - singleSignOnUserIdentifier?: null | string @go(SingleSignOnUserIdentifier,*string) - - // The username of the associated AWS Single Sign-On User for this User Profile. If the Domain's AuthMode is SSO, this field is required, and must match a valid username of a user in your directory. If the Domain's AuthMode is not SSO, this field cannot be specified. - // +kubebuilder:validation:Optional - singleSignOnUserValue?: null | string @go(SingleSignOnUserValue,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The name for the User Profile. - // +kubebuilder:validation:Optional - userProfileName?: null | string @go(UserProfileName,*string) - - // The user settings. See User Settings below. - // +kubebuilder:validation:Optional - userSettings?: [...#UserSettingsParameters] @go(UserSettings,[]UserSettingsParameters) -} - -#UserSettingsCanvasAppSettingsInitParameters: { - // The model registry settings for the SageMaker Canvas application. See Model Register Settings below. - modelRegisterSettings?: [...#CanvasAppSettingsModelRegisterSettingsInitParameters] @go(ModelRegisterSettings,[]CanvasAppSettingsModelRegisterSettingsInitParameters) - - // Time series forecast settings for the Canvas app. see Time Series Forecasting Settings below. - timeSeriesForecastingSettings?: [...#CanvasAppSettingsTimeSeriesForecastingSettingsInitParameters] @go(TimeSeriesForecastingSettings,[]CanvasAppSettingsTimeSeriesForecastingSettingsInitParameters) -} - -#UserSettingsCanvasAppSettingsObservation: { - // The model registry settings for the SageMaker Canvas application. See Model Register Settings below. - modelRegisterSettings?: [...#CanvasAppSettingsModelRegisterSettingsObservation] @go(ModelRegisterSettings,[]CanvasAppSettingsModelRegisterSettingsObservation) - - // Time series forecast settings for the Canvas app. see Time Series Forecasting Settings below. - timeSeriesForecastingSettings?: [...#CanvasAppSettingsTimeSeriesForecastingSettingsObservation] @go(TimeSeriesForecastingSettings,[]CanvasAppSettingsTimeSeriesForecastingSettingsObservation) -} - -#UserSettingsCanvasAppSettingsParameters: { - // The model registry settings for the SageMaker Canvas application. See Model Register Settings below. - // +kubebuilder:validation:Optional - modelRegisterSettings?: [...#CanvasAppSettingsModelRegisterSettingsParameters] @go(ModelRegisterSettings,[]CanvasAppSettingsModelRegisterSettingsParameters) - - // Time series forecast settings for the Canvas app. see Time Series Forecasting Settings below. - // +kubebuilder:validation:Optional - timeSeriesForecastingSettings?: [...#CanvasAppSettingsTimeSeriesForecastingSettingsParameters] @go(TimeSeriesForecastingSettings,[]CanvasAppSettingsTimeSeriesForecastingSettingsParameters) -} - -#UserSettingsInitParameters: { - // The Canvas app settings. See Canvas App Settings below. - canvasAppSettings?: [...#UserSettingsCanvasAppSettingsInitParameters] @go(CanvasAppSettings,[]UserSettingsCanvasAppSettingsInitParameters) - - // The execution role ARN for the user. - executionRole?: null | string @go(ExecutionRole,*string) - - // The Jupyter server's app settings. See Jupyter Server App Settings below. - jupyterServerAppSettings?: [...#UserSettingsJupyterServerAppSettingsInitParameters] @go(JupyterServerAppSettings,[]UserSettingsJupyterServerAppSettingsInitParameters) - - // The kernel gateway app settings. See Kernel Gateway App Settings below. - kernelGatewayAppSettings?: [...#UserSettingsKernelGatewayAppSettingsInitParameters] @go(KernelGatewayAppSettings,[]UserSettingsKernelGatewayAppSettingsInitParameters) - - // The RSession app settings. See RSession App Settings below. - rSessionAppSettings?: [...#UserSettingsRSessionAppSettingsInitParameters] @go(RSessionAppSettings,[]UserSettingsRSessionAppSettingsInitParameters) - - // A collection of settings that configure user interaction with the RStudioServerPro app. See RStudio Server Pro App Settings below. - rStudioServerProAppSettings?: [...#UserSettingsRStudioServerProAppSettingsInitParameters] @go(RStudioServerProAppSettings,[]UserSettingsRStudioServerProAppSettingsInitParameters) - - // The security groups. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The sharing settings. See Sharing Settings below. - sharingSettings?: [...#UserSettingsSharingSettingsInitParameters] @go(SharingSettings,[]UserSettingsSharingSettingsInitParameters) - - // The TensorBoard app settings. See TensorBoard App Settings below. - tensorBoardAppSettings?: [...#UserSettingsTensorBoardAppSettingsInitParameters] @go(TensorBoardAppSettings,[]UserSettingsTensorBoardAppSettingsInitParameters) -} - -#UserSettingsJupyterServerAppSettingsCodeRepositoryInitParameters: { - // The URL of the Git repository. - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#UserSettingsJupyterServerAppSettingsCodeRepositoryObservation: { - // The URL of the Git repository. - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#UserSettingsJupyterServerAppSettingsCodeRepositoryParameters: { - // The URL of the Git repository. - // +kubebuilder:validation:Optional - repositoryUrl?: null | string @go(RepositoryURL,*string) -} - -#UserSettingsJupyterServerAppSettingsDefaultResourceSpecInitParameters: { - // The instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#UserSettingsJupyterServerAppSettingsDefaultResourceSpecObservation: { - // The instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#UserSettingsJupyterServerAppSettingsDefaultResourceSpecParameters: { - // The instance type. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#UserSettingsJupyterServerAppSettingsInitParameters: { - // A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below. - codeRepository?: [...#UserSettingsJupyterServerAppSettingsCodeRepositoryInitParameters] @go(CodeRepository,[]UserSettingsJupyterServerAppSettingsCodeRepositoryInitParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#UserSettingsJupyterServerAppSettingsDefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]UserSettingsJupyterServerAppSettingsDefaultResourceSpecInitParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#UserSettingsJupyterServerAppSettingsObservation: { - // A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below. - codeRepository?: [...#UserSettingsJupyterServerAppSettingsCodeRepositoryObservation] @go(CodeRepository,[]UserSettingsJupyterServerAppSettingsCodeRepositoryObservation) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#UserSettingsJupyterServerAppSettingsDefaultResourceSpecObservation] @go(DefaultResourceSpec,[]UserSettingsJupyterServerAppSettingsDefaultResourceSpecObservation) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#UserSettingsJupyterServerAppSettingsParameters: { - // A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below. - // +kubebuilder:validation:Optional - codeRepository?: [...#UserSettingsJupyterServerAppSettingsCodeRepositoryParameters] @go(CodeRepository,[]UserSettingsJupyterServerAppSettingsCodeRepositoryParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec?: [...#UserSettingsJupyterServerAppSettingsDefaultResourceSpecParameters] @go(DefaultResourceSpec,[]UserSettingsJupyterServerAppSettingsDefaultResourceSpecParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - // +kubebuilder:validation:Optional - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#UserSettingsKernelGatewayAppSettingsCustomImageInitParameters: { - // The name of the App Image Config. - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#UserSettingsKernelGatewayAppSettingsCustomImageObservation: { - // The name of the App Image Config. - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#UserSettingsKernelGatewayAppSettingsCustomImageParameters: { - // The name of the App Image Config. - // +kubebuilder:validation:Optional - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - // +kubebuilder:validation:Optional - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - // +kubebuilder:validation:Optional - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#UserSettingsKernelGatewayAppSettingsDefaultResourceSpecInitParameters: { - // The instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#UserSettingsKernelGatewayAppSettingsDefaultResourceSpecObservation: { - // The instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#UserSettingsKernelGatewayAppSettingsDefaultResourceSpecParameters: { - // The instance type. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#UserSettingsKernelGatewayAppSettingsInitParameters: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - customImage?: [...#UserSettingsKernelGatewayAppSettingsCustomImageInitParameters] @go(CustomImage,[]UserSettingsKernelGatewayAppSettingsCustomImageInitParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#UserSettingsKernelGatewayAppSettingsDefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]UserSettingsKernelGatewayAppSettingsDefaultResourceSpecInitParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#UserSettingsKernelGatewayAppSettingsObservation: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - customImage?: [...#UserSettingsKernelGatewayAppSettingsCustomImageObservation] @go(CustomImage,[]UserSettingsKernelGatewayAppSettingsCustomImageObservation) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#UserSettingsKernelGatewayAppSettingsDefaultResourceSpecObservation] @go(DefaultResourceSpec,[]UserSettingsKernelGatewayAppSettingsDefaultResourceSpecObservation) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#UserSettingsKernelGatewayAppSettingsParameters: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - // +kubebuilder:validation:Optional - customImage?: [...#UserSettingsKernelGatewayAppSettingsCustomImageParameters] @go(CustomImage,[]UserSettingsKernelGatewayAppSettingsCustomImageParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec?: [...#UserSettingsKernelGatewayAppSettingsDefaultResourceSpecParameters] @go(DefaultResourceSpec,[]UserSettingsKernelGatewayAppSettingsDefaultResourceSpecParameters) - - // The Amazon Resource Name (ARN) of the Lifecycle Configurations. - // +kubebuilder:validation:Optional - lifecycleConfigArns?: [...null | string] @go(LifecycleConfigArns,[]*string) -} - -#UserSettingsObservation: { - // The Canvas app settings. See Canvas App Settings below. - canvasAppSettings?: [...#UserSettingsCanvasAppSettingsObservation] @go(CanvasAppSettings,[]UserSettingsCanvasAppSettingsObservation) - - // The execution role ARN for the user. - executionRole?: null | string @go(ExecutionRole,*string) - - // The Jupyter server's app settings. See Jupyter Server App Settings below. - jupyterServerAppSettings?: [...#UserSettingsJupyterServerAppSettingsObservation] @go(JupyterServerAppSettings,[]UserSettingsJupyterServerAppSettingsObservation) - - // The kernel gateway app settings. See Kernel Gateway App Settings below. - kernelGatewayAppSettings?: [...#UserSettingsKernelGatewayAppSettingsObservation] @go(KernelGatewayAppSettings,[]UserSettingsKernelGatewayAppSettingsObservation) - - // The RSession app settings. See RSession App Settings below. - rSessionAppSettings?: [...#UserSettingsRSessionAppSettingsObservation] @go(RSessionAppSettings,[]UserSettingsRSessionAppSettingsObservation) - - // A collection of settings that configure user interaction with the RStudioServerPro app. See RStudio Server Pro App Settings below. - rStudioServerProAppSettings?: [...#UserSettingsRStudioServerProAppSettingsObservation] @go(RStudioServerProAppSettings,[]UserSettingsRStudioServerProAppSettingsObservation) - - // The security groups. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The sharing settings. See Sharing Settings below. - sharingSettings?: [...#UserSettingsSharingSettingsObservation] @go(SharingSettings,[]UserSettingsSharingSettingsObservation) - - // The TensorBoard app settings. See TensorBoard App Settings below. - tensorBoardAppSettings?: [...#UserSettingsTensorBoardAppSettingsObservation] @go(TensorBoardAppSettings,[]UserSettingsTensorBoardAppSettingsObservation) -} - -#UserSettingsParameters: { - // The Canvas app settings. See Canvas App Settings below. - // +kubebuilder:validation:Optional - canvasAppSettings?: [...#UserSettingsCanvasAppSettingsParameters] @go(CanvasAppSettings,[]UserSettingsCanvasAppSettingsParameters) - - // The execution role ARN for the user. - // +kubebuilder:validation:Optional - executionRole?: null | string @go(ExecutionRole,*string) - - // The Jupyter server's app settings. See Jupyter Server App Settings below. - // +kubebuilder:validation:Optional - jupyterServerAppSettings?: [...#UserSettingsJupyterServerAppSettingsParameters] @go(JupyterServerAppSettings,[]UserSettingsJupyterServerAppSettingsParameters) - - // The kernel gateway app settings. See Kernel Gateway App Settings below. - // +kubebuilder:validation:Optional - kernelGatewayAppSettings?: [...#UserSettingsKernelGatewayAppSettingsParameters] @go(KernelGatewayAppSettings,[]UserSettingsKernelGatewayAppSettingsParameters) - - // The RSession app settings. See RSession App Settings below. - // +kubebuilder:validation:Optional - rSessionAppSettings?: [...#UserSettingsRSessionAppSettingsParameters] @go(RSessionAppSettings,[]UserSettingsRSessionAppSettingsParameters) - - // A collection of settings that configure user interaction with the RStudioServerPro app. See RStudio Server Pro App Settings below. - // +kubebuilder:validation:Optional - rStudioServerProAppSettings?: [...#UserSettingsRStudioServerProAppSettingsParameters] @go(RStudioServerProAppSettings,[]UserSettingsRStudioServerProAppSettingsParameters) - - // The security groups. - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // The sharing settings. See Sharing Settings below. - // +kubebuilder:validation:Optional - sharingSettings?: [...#UserSettingsSharingSettingsParameters] @go(SharingSettings,[]UserSettingsSharingSettingsParameters) - - // The TensorBoard app settings. See TensorBoard App Settings below. - // +kubebuilder:validation:Optional - tensorBoardAppSettings?: [...#UserSettingsTensorBoardAppSettingsParameters] @go(TensorBoardAppSettings,[]UserSettingsTensorBoardAppSettingsParameters) -} - -#UserSettingsRSessionAppSettingsCustomImageInitParameters: { - // The name of the App Image Config. - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#UserSettingsRSessionAppSettingsCustomImageObservation: { - // The name of the App Image Config. - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#UserSettingsRSessionAppSettingsCustomImageParameters: { - // The name of the App Image Config. - // +kubebuilder:validation:Optional - appImageConfigName?: null | string @go(AppImageConfigName,*string) - - // The name of the Custom Image. - // +kubebuilder:validation:Optional - imageName?: null | string @go(ImageName,*string) - - // The version number of the Custom Image. - // +kubebuilder:validation:Optional - imageVersionNumber?: null | float64 @go(ImageVersionNumber,*float64) -} - -#UserSettingsRSessionAppSettingsDefaultResourceSpecInitParameters: { - // The instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#UserSettingsRSessionAppSettingsDefaultResourceSpecObservation: { - // The instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#UserSettingsRSessionAppSettingsDefaultResourceSpecParameters: { - // The instance type. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#UserSettingsRSessionAppSettingsInitParameters: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - customImage?: [...#UserSettingsRSessionAppSettingsCustomImageInitParameters] @go(CustomImage,[]UserSettingsRSessionAppSettingsCustomImageInitParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#UserSettingsRSessionAppSettingsDefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]UserSettingsRSessionAppSettingsDefaultResourceSpecInitParameters) -} - -#UserSettingsRSessionAppSettingsObservation: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - customImage?: [...#UserSettingsRSessionAppSettingsCustomImageObservation] @go(CustomImage,[]UserSettingsRSessionAppSettingsCustomImageObservation) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#UserSettingsRSessionAppSettingsDefaultResourceSpecObservation] @go(DefaultResourceSpec,[]UserSettingsRSessionAppSettingsDefaultResourceSpecObservation) -} - -#UserSettingsRSessionAppSettingsParameters: { - // A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. - // +kubebuilder:validation:Optional - customImage?: [...#UserSettingsRSessionAppSettingsCustomImageParameters] @go(CustomImage,[]UserSettingsRSessionAppSettingsCustomImageParameters) - - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec?: [...#UserSettingsRSessionAppSettingsDefaultResourceSpecParameters] @go(DefaultResourceSpec,[]UserSettingsRSessionAppSettingsDefaultResourceSpecParameters) -} - -#UserSettingsRStudioServerProAppSettingsInitParameters: { - // Indicates whether the current user has access to the RStudioServerPro app. Valid values are ENABLED and DISABLED. - accessStatus?: null | string @go(AccessStatus,*string) - - // The level of permissions that the user has within the RStudioServerPro app. This value defaults to R_STUDIO_USER. The R_STUDIO_ADMIN value allows the user access to the RStudio Administrative Dashboard. Valid values are R_STUDIO_USER and R_STUDIO_ADMIN. - userGroup?: null | string @go(UserGroup,*string) -} - -#UserSettingsRStudioServerProAppSettingsObservation: { - // Indicates whether the current user has access to the RStudioServerPro app. Valid values are ENABLED and DISABLED. - accessStatus?: null | string @go(AccessStatus,*string) - - // The level of permissions that the user has within the RStudioServerPro app. This value defaults to R_STUDIO_USER. The R_STUDIO_ADMIN value allows the user access to the RStudio Administrative Dashboard. Valid values are R_STUDIO_USER and R_STUDIO_ADMIN. - userGroup?: null | string @go(UserGroup,*string) -} - -#UserSettingsRStudioServerProAppSettingsParameters: { - // Indicates whether the current user has access to the RStudioServerPro app. Valid values are ENABLED and DISABLED. - // +kubebuilder:validation:Optional - accessStatus?: null | string @go(AccessStatus,*string) - - // The level of permissions that the user has within the RStudioServerPro app. This value defaults to R_STUDIO_USER. The R_STUDIO_ADMIN value allows the user access to the RStudio Administrative Dashboard. Valid values are R_STUDIO_USER and R_STUDIO_ADMIN. - // +kubebuilder:validation:Optional - userGroup?: null | string @go(UserGroup,*string) -} - -#UserSettingsSharingSettingsInitParameters: { - // Whether to include the notebook cell output when sharing the notebook. The default is Disabled. Valid values are Allowed and Disabled. - notebookOutputOption?: null | string @go(NotebookOutputOption,*string) - - // When notebook_output_option is Allowed, the AWS Key Management Service (KMS) encryption key ID used to encrypt the notebook cell output in the Amazon S3 bucket. - s3KmsKeyId?: null | string @go(S3KMSKeyID,*string) - - // When notebook_output_option is Allowed, the Amazon S3 bucket used to save the notebook cell output. - s3OutputPath?: null | string @go(S3OutputPath,*string) -} - -#UserSettingsSharingSettingsObservation: { - // Whether to include the notebook cell output when sharing the notebook. The default is Disabled. Valid values are Allowed and Disabled. - notebookOutputOption?: null | string @go(NotebookOutputOption,*string) - - // When notebook_output_option is Allowed, the AWS Key Management Service (KMS) encryption key ID used to encrypt the notebook cell output in the Amazon S3 bucket. - s3KmsKeyId?: null | string @go(S3KMSKeyID,*string) - - // When notebook_output_option is Allowed, the Amazon S3 bucket used to save the notebook cell output. - s3OutputPath?: null | string @go(S3OutputPath,*string) -} - -#UserSettingsSharingSettingsParameters: { - // Whether to include the notebook cell output when sharing the notebook. The default is Disabled. Valid values are Allowed and Disabled. - // +kubebuilder:validation:Optional - notebookOutputOption?: null | string @go(NotebookOutputOption,*string) - - // When notebook_output_option is Allowed, the AWS Key Management Service (KMS) encryption key ID used to encrypt the notebook cell output in the Amazon S3 bucket. - // +kubebuilder:validation:Optional - s3KmsKeyId?: null | string @go(S3KMSKeyID,*string) - - // When notebook_output_option is Allowed, the Amazon S3 bucket used to save the notebook cell output. - // +kubebuilder:validation:Optional - s3OutputPath?: null | string @go(S3OutputPath,*string) -} - -#UserSettingsTensorBoardAppSettingsDefaultResourceSpecInitParameters: { - // The instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#UserSettingsTensorBoardAppSettingsDefaultResourceSpecObservation: { - // The instance type. - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#UserSettingsTensorBoardAppSettingsDefaultResourceSpecParameters: { - // The instance type. - // +kubebuilder:validation:Optional - instanceType?: null | string @go(InstanceType,*string) - - // The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. - // +kubebuilder:validation:Optional - lifecycleConfigArn?: null | string @go(LifecycleConfigArn,*string) - - // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageArn?: null | string @go(SagemakerImageArn,*string) - - // The ARN of the image version created on the instance. - // +kubebuilder:validation:Optional - sagemakerImageVersionArn?: null | string @go(SagemakerImageVersionArn,*string) -} - -#UserSettingsTensorBoardAppSettingsInitParameters: { - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#UserSettingsTensorBoardAppSettingsDefaultResourceSpecInitParameters] @go(DefaultResourceSpec,[]UserSettingsTensorBoardAppSettingsDefaultResourceSpecInitParameters) -} - -#UserSettingsTensorBoardAppSettingsObservation: { - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - defaultResourceSpec?: [...#UserSettingsTensorBoardAppSettingsDefaultResourceSpecObservation] @go(DefaultResourceSpec,[]UserSettingsTensorBoardAppSettingsDefaultResourceSpecObservation) -} - -#UserSettingsTensorBoardAppSettingsParameters: { - // The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. - // +kubebuilder:validation:Optional - defaultResourceSpec: [...#UserSettingsTensorBoardAppSettingsDefaultResourceSpecParameters] @go(DefaultResourceSpec,[]UserSettingsTensorBoardAppSettingsDefaultResourceSpecParameters) -} - -// UserProfileSpec defines the desired state of UserProfile -#UserProfileSpec: { - v1.#ResourceSpec - forProvider: #UserProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserProfileInitParameters @go(InitProvider) -} - -// UserProfileStatus defines the observed state of UserProfile. -#UserProfileStatus: { - v1.#ResourceStatus - atProvider?: #UserProfileObservation @go(AtProvider) -} - -// UserProfile is the Schema for the UserProfiles API. Provides a SageMaker User Profile resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#UserProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.userProfileName) || (has(self.initProvider) && has(self.initProvider.userProfileName))",message="spec.forProvider.userProfileName is a required parameter" - spec: #UserProfileSpec @go(Spec) - status?: #UserProfileStatus @go(Status) -} - -// UserProfileList contains a list of UserProfiles -#UserProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#UserProfile] @go(Items,[]UserProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_workforce_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_workforce_types_go_gen.cue deleted file mode 100644 index a3e5cf6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_workforce_types_go_gen.cue +++ /dev/null @@ -1,291 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CognitoConfigInitParameters: { -} - -#CognitoConfigObservation: { - // The client ID for your Amazon Cognito user pool. - clientId?: null | string @go(ClientID,*string) - - // ID for your Amazon Cognito user pool. - userPool?: null | string @go(UserPool,*string) -} - -#CognitoConfigParameters: { - // The client ID for your Amazon Cognito user pool. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPoolClient - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - clientId?: null | string @go(ClientID,*string) - - // Reference to a UserPoolClient in cognitoidp to populate clientId. - // +kubebuilder:validation:Optional - clientIdRef?: null | v1.#Reference @go(ClientIDRef,*v1.Reference) - - // Selector for a UserPoolClient in cognitoidp to populate clientId. - // +kubebuilder:validation:Optional - clientIdSelector?: null | v1.#Selector @go(ClientIDSelector,*v1.Selector) - - // ID for your Amazon Cognito user pool. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPoolDomain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("user_pool_id",false) - // +kubebuilder:validation:Optional - userPool?: null | string @go(UserPool,*string) - - // Reference to a UserPoolDomain in cognitoidp to populate userPool. - // +kubebuilder:validation:Optional - userPoolRef?: null | v1.#Reference @go(UserPoolRef,*v1.Reference) - - // Selector for a UserPoolDomain in cognitoidp to populate userPool. - // +kubebuilder:validation:Optional - userPoolSelector?: null | v1.#Selector @go(UserPoolSelector,*v1.Selector) -} - -#OidcConfigInitParameters: { - // The OIDC IdP authorization endpoint used to configure your private workforce. - authorizationEndpoint?: null | string @go(AuthorizationEndpoint,*string) - - // The client ID for your Amazon Cognito user pool. - clientId?: null | string @go(ClientID,*string) - - // The OIDC IdP issuer used to configure your private workforce. - issuer?: null | string @go(Issuer,*string) - - // The OIDC IdP JSON Web Key Set (Jwks) URI used to configure your private workforce. - jwksUri?: null | string @go(JwksURI,*string) - - // The OIDC IdP logout endpoint used to configure your private workforce. - logoutEndpoint?: null | string @go(LogoutEndpoint,*string) - - // The OIDC IdP token endpoint used to configure your private workforce. - tokenEndpoint?: null | string @go(TokenEndpoint,*string) - - // The OIDC IdP user information endpoint used to configure your private workforce. - userInfoEndpoint?: null | string @go(UserInfoEndpoint,*string) -} - -#OidcConfigObservation: { - // The OIDC IdP authorization endpoint used to configure your private workforce. - authorizationEndpoint?: null | string @go(AuthorizationEndpoint,*string) - - // The client ID for your Amazon Cognito user pool. - clientId?: null | string @go(ClientID,*string) - - // The OIDC IdP issuer used to configure your private workforce. - issuer?: null | string @go(Issuer,*string) - - // The OIDC IdP JSON Web Key Set (Jwks) URI used to configure your private workforce. - jwksUri?: null | string @go(JwksURI,*string) - - // The OIDC IdP logout endpoint used to configure your private workforce. - logoutEndpoint?: null | string @go(LogoutEndpoint,*string) - - // The OIDC IdP token endpoint used to configure your private workforce. - tokenEndpoint?: null | string @go(TokenEndpoint,*string) - - // The OIDC IdP user information endpoint used to configure your private workforce. - userInfoEndpoint?: null | string @go(UserInfoEndpoint,*string) -} - -#OidcConfigParameters: { - // The OIDC IdP authorization endpoint used to configure your private workforce. - // +kubebuilder:validation:Optional - authorizationEndpoint?: null | string @go(AuthorizationEndpoint,*string) - - // The client ID for your Amazon Cognito user pool. - // +kubebuilder:validation:Optional - clientId?: null | string @go(ClientID,*string) - - // The OIDC IdP client secret used to configure your private workforce. - // +kubebuilder:validation:Required - clientSecretSecretRef: v1.#SecretKeySelector @go(ClientSecretSecretRef) - - // The OIDC IdP issuer used to configure your private workforce. - // +kubebuilder:validation:Optional - issuer?: null | string @go(Issuer,*string) - - // The OIDC IdP JSON Web Key Set (Jwks) URI used to configure your private workforce. - // +kubebuilder:validation:Optional - jwksUri?: null | string @go(JwksURI,*string) - - // The OIDC IdP logout endpoint used to configure your private workforce. - // +kubebuilder:validation:Optional - logoutEndpoint?: null | string @go(LogoutEndpoint,*string) - - // The OIDC IdP token endpoint used to configure your private workforce. - // +kubebuilder:validation:Optional - tokenEndpoint?: null | string @go(TokenEndpoint,*string) - - // The OIDC IdP user information endpoint used to configure your private workforce. - // +kubebuilder:validation:Optional - userInfoEndpoint?: null | string @go(UserInfoEndpoint,*string) -} - -#SourceIPConfigInitParameters: { - // A list of up to 10 CIDR values. - cidrs?: [...null | string] @go(Cidrs,[]*string) -} - -#SourceIPConfigObservation: { - // A list of up to 10 CIDR values. - cidrs?: [...null | string] @go(Cidrs,[]*string) -} - -#SourceIPConfigParameters: { - // A list of up to 10 CIDR values. - // +kubebuilder:validation:Optional - cidrs: [...null | string] @go(Cidrs,[]*string) -} - -#WorkforceInitParameters: { - // Use this parameter to configure an Amazon Cognito private workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool. Conflicts with oidc_config. see Cognito Config details below. - cognitoConfig?: [...#CognitoConfigInitParameters] @go(CognitoConfig,[]CognitoConfigInitParameters) - - // Use this parameter to configure a private workforce using your own OIDC Identity Provider. Conflicts with cognito_config. see OIDC Config details below. - oidcConfig?: [...#OidcConfigInitParameters] @go(OidcConfig,[]OidcConfigInitParameters) - - // A list of IP address ranges Used to create an allow list of IP addresses for a private workforce. By default, a workforce isn't restricted to specific IP addresses. see Source Ip Config details below. - sourceIpConfig?: [...#SourceIPConfigInitParameters] @go(SourceIPConfig,[]SourceIPConfigInitParameters) - - // configure a workforce using VPC. see Workforce VPC Config details below. - workforceVpcConfig?: [...#WorkforceVPCConfigInitParameters] @go(WorkforceVPCConfig,[]WorkforceVPCConfigInitParameters) -} - -#WorkforceObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this Workforce. - arn?: null | string @go(Arn,*string) - - // Use this parameter to configure an Amazon Cognito private workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool. Conflicts with oidc_config. see Cognito Config details below. - cognitoConfig?: [...#CognitoConfigObservation] @go(CognitoConfig,[]CognitoConfigObservation) - - // The name of the Workforce. - id?: null | string @go(ID,*string) - - // Use this parameter to configure a private workforce using your own OIDC Identity Provider. Conflicts with cognito_config. see OIDC Config details below. - oidcConfig?: [...#OidcConfigObservation] @go(OidcConfig,[]OidcConfigObservation) - - // A list of IP address ranges Used to create an allow list of IP addresses for a private workforce. By default, a workforce isn't restricted to specific IP addresses. see Source Ip Config details below. - sourceIpConfig?: [...#SourceIPConfigObservation] @go(SourceIPConfig,[]SourceIPConfigObservation) - - // The subdomain for your OIDC Identity Provider. - subdomain?: null | string @go(Subdomain,*string) - - // configure a workforce using VPC. see Workforce VPC Config details below. - workforceVpcConfig?: [...#WorkforceVPCConfigObservation] @go(WorkforceVPCConfig,[]WorkforceVPCConfigObservation) -} - -#WorkforceParameters: { - // Use this parameter to configure an Amazon Cognito private workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool. Conflicts with oidc_config. see Cognito Config details below. - // +kubebuilder:validation:Optional - cognitoConfig?: [...#CognitoConfigParameters] @go(CognitoConfig,[]CognitoConfigParameters) - - // Use this parameter to configure a private workforce using your own OIDC Identity Provider. Conflicts with cognito_config. see OIDC Config details below. - // +kubebuilder:validation:Optional - oidcConfig?: [...#OidcConfigParameters] @go(OidcConfig,[]OidcConfigParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A list of IP address ranges Used to create an allow list of IP addresses for a private workforce. By default, a workforce isn't restricted to specific IP addresses. see Source Ip Config details below. - // +kubebuilder:validation:Optional - sourceIpConfig?: [...#SourceIPConfigParameters] @go(SourceIPConfig,[]SourceIPConfigParameters) - - // configure a workforce using VPC. see Workforce VPC Config details below. - // +kubebuilder:validation:Optional - workforceVpcConfig?: [...#WorkforceVPCConfigParameters] @go(WorkforceVPCConfig,[]WorkforceVPCConfigParameters) -} - -#WorkforceVPCConfigInitParameters: { - // The VPC security group IDs. The security groups must be for the same VPC as specified in the subnet. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The ID of the subnets in the VPC that you want to connect. - subnets?: [...null | string] @go(Subnets,[]*string) - - // The ID of the VPC that the workforce uses for communication. - vpcId?: null | string @go(VPCID,*string) -} - -#WorkforceVPCConfigObservation: { - // The VPC security group IDs. The security groups must be for the same VPC as specified in the subnet. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The ID of the subnets in the VPC that you want to connect. - subnets?: [...null | string] @go(Subnets,[]*string) - - // The IDs for the VPC service endpoints of your VPC workforce. - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // The ID of the VPC that the workforce uses for communication. - vpcId?: null | string @go(VPCID,*string) -} - -#WorkforceVPCConfigParameters: { - // The VPC security group IDs. The security groups must be for the same VPC as specified in the subnet. - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // The ID of the subnets in the VPC that you want to connect. - // +kubebuilder:validation:Optional - subnets?: [...null | string] @go(Subnets,[]*string) - - // The ID of the VPC that the workforce uses for communication. - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) -} - -// WorkforceSpec defines the desired state of Workforce -#WorkforceSpec: { - v1.#ResourceSpec - forProvider: #WorkforceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WorkforceInitParameters @go(InitProvider) -} - -// WorkforceStatus defines the observed state of Workforce. -#WorkforceStatus: { - v1.#ResourceStatus - atProvider?: #WorkforceObservation @go(AtProvider) -} - -// Workforce is the Schema for the Workforces API. Provides a SageMaker Workforce resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Workforce: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #WorkforceSpec @go(Spec) - status?: #WorkforceStatus @go(Status) -} - -// WorkforceList contains a list of Workforces -#WorkforceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Workforce] @go(Items,[]Workforce) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_workteam_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_workteam_types_go_gen.cue deleted file mode 100644 index 6abb51c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sagemaker/v1beta1/zz_workteam_types_go_gen.cue +++ /dev/null @@ -1,254 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sagemaker/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CognitoMemberDefinitionInitParameters: { -} - -#CognitoMemberDefinitionObservation: { - // An identifier for an application client. You must create the app client ID using Amazon Cognito. - clientId?: null | string @go(ClientID,*string) - - // An identifier for a user group. - userGroup?: null | string @go(UserGroup,*string) - - // An identifier for a user pool. The user pool must be in the same region as the service that you are calling. - userPool?: null | string @go(UserPool,*string) -} - -#CognitoMemberDefinitionParameters: { - // An identifier for an application client. You must create the app client ID using Amazon Cognito. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPoolClient - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - clientId?: null | string @go(ClientID,*string) - - // Reference to a UserPoolClient in cognitoidp to populate clientId. - // +kubebuilder:validation:Optional - clientIdRef?: null | v1.#Reference @go(ClientIDRef,*v1.Reference) - - // Selector for a UserPoolClient in cognitoidp to populate clientId. - // +kubebuilder:validation:Optional - clientIdSelector?: null | v1.#Selector @go(ClientIDSelector,*v1.Selector) - - // An identifier for a user group. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserGroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - userGroup?: null | string @go(UserGroup,*string) - - // Reference to a UserGroup in cognitoidp to populate userGroup. - // +kubebuilder:validation:Optional - userGroupRef?: null | v1.#Reference @go(UserGroupRef,*v1.Reference) - - // Selector for a UserGroup in cognitoidp to populate userGroup. - // +kubebuilder:validation:Optional - userGroupSelector?: null | v1.#Selector @go(UserGroupSelector,*v1.Selector) - - // An identifier for a user pool. The user pool must be in the same region as the service that you are calling. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cognitoidp/v1beta1.UserPoolDomain - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("user_pool_id",false) - // +kubebuilder:validation:Optional - userPool?: null | string @go(UserPool,*string) - - // Reference to a UserPoolDomain in cognitoidp to populate userPool. - // +kubebuilder:validation:Optional - userPoolRef?: null | v1.#Reference @go(UserPoolRef,*v1.Reference) - - // Selector for a UserPoolDomain in cognitoidp to populate userPool. - // +kubebuilder:validation:Optional - userPoolSelector?: null | v1.#Selector @go(UserPoolSelector,*v1.Selector) -} - -#MemberDefinitionInitParameters: { - // The Amazon Cognito user group that is part of the work team. See Cognito Member Definition details below. - cognitoMemberDefinition?: [...#CognitoMemberDefinitionInitParameters] @go(CognitoMemberDefinition,[]CognitoMemberDefinitionInitParameters) - - // A list user groups that exist in your OIDC Identity Provider (IdP). One to ten groups can be used to create a single private work team. See Cognito Member Definition details below. - oidcMemberDefinition?: [...#OidcMemberDefinitionInitParameters] @go(OidcMemberDefinition,[]OidcMemberDefinitionInitParameters) -} - -#MemberDefinitionObservation: { - // The Amazon Cognito user group that is part of the work team. See Cognito Member Definition details below. - cognitoMemberDefinition?: [...#CognitoMemberDefinitionObservation] @go(CognitoMemberDefinition,[]CognitoMemberDefinitionObservation) - - // A list user groups that exist in your OIDC Identity Provider (IdP). One to ten groups can be used to create a single private work team. See Cognito Member Definition details below. - oidcMemberDefinition?: [...#OidcMemberDefinitionObservation] @go(OidcMemberDefinition,[]OidcMemberDefinitionObservation) -} - -#MemberDefinitionParameters: { - // The Amazon Cognito user group that is part of the work team. See Cognito Member Definition details below. - // +kubebuilder:validation:Optional - cognitoMemberDefinition?: [...#CognitoMemberDefinitionParameters] @go(CognitoMemberDefinition,[]CognitoMemberDefinitionParameters) - - // A list user groups that exist in your OIDC Identity Provider (IdP). One to ten groups can be used to create a single private work team. See Cognito Member Definition details below. - // +kubebuilder:validation:Optional - oidcMemberDefinition?: [...#OidcMemberDefinitionParameters] @go(OidcMemberDefinition,[]OidcMemberDefinitionParameters) -} - -#NotificationConfigurationInitParameters: { - // The ARN for the SNS topic to which notifications should be published. - notificationTopicArn?: null | string @go(NotificationTopicArn,*string) -} - -#NotificationConfigurationObservation: { - // The ARN for the SNS topic to which notifications should be published. - notificationTopicArn?: null | string @go(NotificationTopicArn,*string) -} - -#NotificationConfigurationParameters: { - // The ARN for the SNS topic to which notifications should be published. - // +kubebuilder:validation:Optional - notificationTopicArn?: null | string @go(NotificationTopicArn,*string) -} - -#OidcMemberDefinitionInitParameters: { - // A list of comma separated strings that identifies user groups in your OIDC IdP. Each user group is made up of a group of private workers. - groups?: [...null | string] @go(Groups,[]*string) -} - -#OidcMemberDefinitionObservation: { - // A list of comma separated strings that identifies user groups in your OIDC IdP. Each user group is made up of a group of private workers. - groups?: [...null | string] @go(Groups,[]*string) -} - -#OidcMemberDefinitionParameters: { - // A list of comma separated strings that identifies user groups in your OIDC IdP. Each user group is made up of a group of private workers. - // +kubebuilder:validation:Optional - groups: [...null | string] @go(Groups,[]*string) -} - -#WorkteamInitParameters: { - // A description of the work team. - description?: null | string @go(Description,*string) - - // A list of Member Definitions that contains objects that identify the workers that make up the work team. Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces created using Amazon Cognito use cognito_member_definition. For workforces created using your own OIDC identity provider (IdP) use oidc_member_definition. Do not provide input for both of these parameters in a single request. see Member Definition details below. - memberDefinition?: [...#MemberDefinitionInitParameters] @go(MemberDefinition,[]MemberDefinitionInitParameters) - - // Configures notification of workers regarding available or expiring work items. see Notification Configuration details below. - notificationConfiguration?: [...#NotificationConfigurationInitParameters] @go(NotificationConfiguration,[]NotificationConfigurationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#WorkteamObservation: { - // The Amazon Resource Name (ARN) assigned by AWS to this Workteam. - arn?: null | string @go(Arn,*string) - - // A description of the work team. - description?: null | string @go(Description,*string) - - // The name of the Workteam. - id?: null | string @go(ID,*string) - - // A list of Member Definitions that contains objects that identify the workers that make up the work team. Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces created using Amazon Cognito use cognito_member_definition. For workforces created using your own OIDC identity provider (IdP) use oidc_member_definition. Do not provide input for both of these parameters in a single request. see Member Definition details below. - memberDefinition?: [...#MemberDefinitionObservation] @go(MemberDefinition,[]MemberDefinitionObservation) - - // Configures notification of workers regarding available or expiring work items. see Notification Configuration details below. - notificationConfiguration?: [...#NotificationConfigurationObservation] @go(NotificationConfiguration,[]NotificationConfigurationObservation) - - // The subdomain for your OIDC Identity Provider. - subdomain?: null | string @go(Subdomain,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The name of the Workteam (must be unique). - workforceName?: null | string @go(WorkforceName,*string) -} - -#WorkteamParameters: { - // A description of the work team. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A list of Member Definitions that contains objects that identify the workers that make up the work team. Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces created using Amazon Cognito use cognito_member_definition. For workforces created using your own OIDC identity provider (IdP) use oidc_member_definition. Do not provide input for both of these parameters in a single request. see Member Definition details below. - // +kubebuilder:validation:Optional - memberDefinition?: [...#MemberDefinitionParameters] @go(MemberDefinition,[]MemberDefinitionParameters) - - // Configures notification of workers regarding available or expiring work items. see Notification Configuration details below. - // +kubebuilder:validation:Optional - notificationConfiguration?: [...#NotificationConfigurationParameters] @go(NotificationConfiguration,[]NotificationConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The name of the Workteam (must be unique). - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sagemaker/v1beta1.Workforce - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - workforceName?: null | string @go(WorkforceName,*string) - - // Reference to a Workforce in sagemaker to populate workforceName. - // +kubebuilder:validation:Optional - workforceNameRef?: null | v1.#Reference @go(WorkforceNameRef,*v1.Reference) - - // Selector for a Workforce in sagemaker to populate workforceName. - // +kubebuilder:validation:Optional - workforceNameSelector?: null | v1.#Selector @go(WorkforceNameSelector,*v1.Selector) -} - -// WorkteamSpec defines the desired state of Workteam -#WorkteamSpec: { - v1.#ResourceSpec - forProvider: #WorkteamParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WorkteamInitParameters @go(InitProvider) -} - -// WorkteamStatus defines the observed state of Workteam. -#WorkteamStatus: { - v1.#ResourceStatus - atProvider?: #WorkteamObservation @go(AtProvider) -} - -// Workteam is the Schema for the Workteams API. Provides a SageMaker Workteam resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Workteam: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.description) || (has(self.initProvider) && has(self.initProvider.description))",message="spec.forProvider.description is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.memberDefinition) || (has(self.initProvider) && has(self.initProvider.memberDefinition))",message="spec.forProvider.memberDefinition is a required parameter" - spec: #WorkteamSpec @go(Spec) - status?: #WorkteamStatus @go(Status) -} - -// WorkteamList contains a list of Workteams -#WorkteamList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Workteam] @go(Items,[]Workteam) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/scheduler/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/scheduler/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 1a9fadb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/scheduler/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/scheduler/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=scheduler.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "scheduler.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/scheduler/v1beta1/zz_schedule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/scheduler/v1beta1/zz_schedule_types_go_gen.cue deleted file mode 100644 index 8f1bdf1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/scheduler/v1beta1/zz_schedule_types_go_gen.cue +++ /dev/null @@ -1,750 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/scheduler/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CapacityProviderStrategyInitParameters: { - // How many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. Ranges from 0 (default) to 100000. - base?: null | float64 @go(Base,*float64) - - // Short name of the capacity provider. - capacityProvider?: null | string @go(CapacityProvider,*string) - - // Designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied. Ranges from from 0 to 1000. - weight?: null | float64 @go(Weight,*float64) -} - -#CapacityProviderStrategyObservation: { - // How many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. Ranges from 0 (default) to 100000. - base?: null | float64 @go(Base,*float64) - - // Short name of the capacity provider. - capacityProvider?: null | string @go(CapacityProvider,*string) - - // Designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied. Ranges from from 0 to 1000. - weight?: null | float64 @go(Weight,*float64) -} - -#CapacityProviderStrategyParameters: { - // How many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. Ranges from 0 (default) to 100000. - // +kubebuilder:validation:Optional - base?: null | float64 @go(Base,*float64) - - // Short name of the capacity provider. - // +kubebuilder:validation:Optional - capacityProvider?: null | string @go(CapacityProvider,*string) - - // Designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied. Ranges from from 0 to 1000. - // +kubebuilder:validation:Optional - weight?: null | float64 @go(Weight,*float64) -} - -#DeadLetterConfigInitParameters: { - // ARN of the target of this schedule, such as a SQS queue or ECS cluster. For universal targets, this is a Service ARN specific to the target service. - arn?: null | string @go(Arn,*string) -} - -#DeadLetterConfigObservation: { - // ARN of the target of this schedule, such as a SQS queue or ECS cluster. For universal targets, this is a Service ARN specific to the target service. - arn?: null | string @go(Arn,*string) -} - -#DeadLetterConfigParameters: { - // ARN of the target of this schedule, such as a SQS queue or ECS cluster. For universal targets, this is a Service ARN specific to the target service. - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) -} - -#EcsParametersInitParameters: { - // Up to 6 capacity provider strategies to use for the task. Detailed below. - capacityProviderStrategy?: [...#CapacityProviderStrategyInitParameters] @go(CapacityProviderStrategy,[]CapacityProviderStrategyInitParameters) - - // Specifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS Resources in the Amazon ECS Developer Guide. - enableEcsManagedTags?: null | bool @go(EnableEcsManagedTags,*bool) - - // Specifies whether to enable the execute command functionality for the containers in this task. - enableExecuteCommand?: null | bool @go(EnableExecuteCommand,*bool) - - // Specifies an ECS task group for the task. At most 255 characters. - group?: null | string @go(Group,*string) - - // Specifies the launch type on which your task is running. The launch type that you specify here must match one of the launch type (compatibilities) of the target task. One of: EC2, FARGATE, EXTERNAL. - launchType?: null | string @go(LaunchType,*string) - - // Configures the networking associated with the task. Detailed below. - networkConfiguration?: [...#NetworkConfigurationInitParameters] @go(NetworkConfiguration,[]NetworkConfigurationInitParameters) - - // A set of up to 10 placement constraints to use for the task. Detailed below. - placementConstraints?: [...#PlacementConstraintsInitParameters] @go(PlacementConstraints,[]PlacementConstraintsInitParameters) - - // A set of up to 5 placement strategies. Detailed below. - placementStrategy?: [...#PlacementStrategyInitParameters] @go(PlacementStrategy,[]PlacementStrategyInitParameters) - - // Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as 1.1.0. - platformVersion?: null | string @go(PlatformVersion,*string) - - // Specifies whether to propagate the tags from the task definition to the task. One of: TASK_DEFINITION. - propagateTags?: null | string @go(PropagateTags,*string) - - // Reference ID to use for the task. - referenceId?: null | string @go(ReferenceID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The number of tasks to create. Ranges from 1 (default) to 10. - taskCount?: null | float64 @go(TaskCount,*float64) - - // ARN of the task definition to use. - taskDefinitionArn?: null | string @go(TaskDefinitionArn,*string) -} - -#EcsParametersObservation: { - // Up to 6 capacity provider strategies to use for the task. Detailed below. - capacityProviderStrategy?: [...#CapacityProviderStrategyObservation] @go(CapacityProviderStrategy,[]CapacityProviderStrategyObservation) - - // Specifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS Resources in the Amazon ECS Developer Guide. - enableEcsManagedTags?: null | bool @go(EnableEcsManagedTags,*bool) - - // Specifies whether to enable the execute command functionality for the containers in this task. - enableExecuteCommand?: null | bool @go(EnableExecuteCommand,*bool) - - // Specifies an ECS task group for the task. At most 255 characters. - group?: null | string @go(Group,*string) - - // Specifies the launch type on which your task is running. The launch type that you specify here must match one of the launch type (compatibilities) of the target task. One of: EC2, FARGATE, EXTERNAL. - launchType?: null | string @go(LaunchType,*string) - - // Configures the networking associated with the task. Detailed below. - networkConfiguration?: [...#NetworkConfigurationObservation] @go(NetworkConfiguration,[]NetworkConfigurationObservation) - - // A set of up to 10 placement constraints to use for the task. Detailed below. - placementConstraints?: [...#PlacementConstraintsObservation] @go(PlacementConstraints,[]PlacementConstraintsObservation) - - // A set of up to 5 placement strategies. Detailed below. - placementStrategy?: [...#PlacementStrategyObservation] @go(PlacementStrategy,[]PlacementStrategyObservation) - - // Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as 1.1.0. - platformVersion?: null | string @go(PlatformVersion,*string) - - // Specifies whether to propagate the tags from the task definition to the task. One of: TASK_DEFINITION. - propagateTags?: null | string @go(PropagateTags,*string) - - // Reference ID to use for the task. - referenceId?: null | string @go(ReferenceID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The number of tasks to create. Ranges from 1 (default) to 10. - taskCount?: null | float64 @go(TaskCount,*float64) - - // ARN of the task definition to use. - taskDefinitionArn?: null | string @go(TaskDefinitionArn,*string) -} - -#EcsParametersParameters: { - // Up to 6 capacity provider strategies to use for the task. Detailed below. - // +kubebuilder:validation:Optional - capacityProviderStrategy?: [...#CapacityProviderStrategyParameters] @go(CapacityProviderStrategy,[]CapacityProviderStrategyParameters) - - // Specifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS Resources in the Amazon ECS Developer Guide. - // +kubebuilder:validation:Optional - enableEcsManagedTags?: null | bool @go(EnableEcsManagedTags,*bool) - - // Specifies whether to enable the execute command functionality for the containers in this task. - // +kubebuilder:validation:Optional - enableExecuteCommand?: null | bool @go(EnableExecuteCommand,*bool) - - // Specifies an ECS task group for the task. At most 255 characters. - // +kubebuilder:validation:Optional - group?: null | string @go(Group,*string) - - // Specifies the launch type on which your task is running. The launch type that you specify here must match one of the launch type (compatibilities) of the target task. One of: EC2, FARGATE, EXTERNAL. - // +kubebuilder:validation:Optional - launchType?: null | string @go(LaunchType,*string) - - // Configures the networking associated with the task. Detailed below. - // +kubebuilder:validation:Optional - networkConfiguration?: [...#NetworkConfigurationParameters] @go(NetworkConfiguration,[]NetworkConfigurationParameters) - - // A set of up to 10 placement constraints to use for the task. Detailed below. - // +kubebuilder:validation:Optional - placementConstraints?: [...#PlacementConstraintsParameters] @go(PlacementConstraints,[]PlacementConstraintsParameters) - - // A set of up to 5 placement strategies. Detailed below. - // +kubebuilder:validation:Optional - placementStrategy?: [...#PlacementStrategyParameters] @go(PlacementStrategy,[]PlacementStrategyParameters) - - // Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as 1.1.0. - // +kubebuilder:validation:Optional - platformVersion?: null | string @go(PlatformVersion,*string) - - // Specifies whether to propagate the tags from the task definition to the task. One of: TASK_DEFINITION. - // +kubebuilder:validation:Optional - propagateTags?: null | string @go(PropagateTags,*string) - - // Reference ID to use for the task. - // +kubebuilder:validation:Optional - referenceId?: null | string @go(ReferenceID,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The number of tasks to create. Ranges from 1 (default) to 10. - // +kubebuilder:validation:Optional - taskCount?: null | float64 @go(TaskCount,*float64) - - // ARN of the task definition to use. - // +kubebuilder:validation:Optional - taskDefinitionArn?: null | string @go(TaskDefinitionArn,*string) -} - -#EventbridgeParametersInitParameters: { - // Free-form string used to decide what fields to expect in the event detail. Up to 128 characters. - detailType?: null | string @go(DetailType,*string) - - // Source of the event. - source?: null | string @go(Source,*string) -} - -#EventbridgeParametersObservation: { - // Free-form string used to decide what fields to expect in the event detail. Up to 128 characters. - detailType?: null | string @go(DetailType,*string) - - // Source of the event. - source?: null | string @go(Source,*string) -} - -#EventbridgeParametersParameters: { - // Free-form string used to decide what fields to expect in the event detail. Up to 128 characters. - // +kubebuilder:validation:Optional - detailType?: null | string @go(DetailType,*string) - - // Source of the event. - // +kubebuilder:validation:Optional - source?: null | string @go(Source,*string) -} - -#FlexibleTimeWindowInitParameters: { - // Maximum time window during which a schedule can be invoked. Ranges from 1 to 1440 minutes. - maximumWindowInMinutes?: null | float64 @go(MaximumWindowInMinutes,*float64) - - // Determines whether the schedule is invoked within a flexible time window. One of: OFF, FLEXIBLE. - mode?: null | string @go(Mode,*string) -} - -#FlexibleTimeWindowObservation: { - // Maximum time window during which a schedule can be invoked. Ranges from 1 to 1440 minutes. - maximumWindowInMinutes?: null | float64 @go(MaximumWindowInMinutes,*float64) - - // Determines whether the schedule is invoked within a flexible time window. One of: OFF, FLEXIBLE. - mode?: null | string @go(Mode,*string) -} - -#FlexibleTimeWindowParameters: { - // Maximum time window during which a schedule can be invoked. Ranges from 1 to 1440 minutes. - // +kubebuilder:validation:Optional - maximumWindowInMinutes?: null | float64 @go(MaximumWindowInMinutes,*float64) - - // Determines whether the schedule is invoked within a flexible time window. One of: OFF, FLEXIBLE. - // +kubebuilder:validation:Optional - mode?: null | string @go(Mode,*string) -} - -#KinesisParametersInitParameters: { - // Specifies the shard to which EventBridge Scheduler sends the event. Up to 256 characters. - partitionKey?: null | string @go(PartitionKey,*string) -} - -#KinesisParametersObservation: { - // Specifies the shard to which EventBridge Scheduler sends the event. Up to 256 characters. - partitionKey?: null | string @go(PartitionKey,*string) -} - -#KinesisParametersParameters: { - // Specifies the shard to which EventBridge Scheduler sends the event. Up to 256 characters. - // +kubebuilder:validation:Optional - partitionKey?: null | string @go(PartitionKey,*string) -} - -#NetworkConfigurationInitParameters: { - // Specifies whether the task's elastic network interface receives a public IP address. This attribute is a boolean type, where true maps to ENABLED and false to DISABLED. You can specify true only when the launch_type is set to FARGATE. - assignPublicIp?: null | bool @go(AssignPublicIP,*bool) - - // Set of 1 to 5 Security Group ID-s to be associated with the task. These security groups must all be in the same VPC. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Set of 1 to 16 subnets to be associated with the task. These subnets must all be in the same VPC. - subnets?: [...null | string] @go(Subnets,[]*string) -} - -#NetworkConfigurationObservation: { - // Specifies whether the task's elastic network interface receives a public IP address. This attribute is a boolean type, where true maps to ENABLED and false to DISABLED. You can specify true only when the launch_type is set to FARGATE. - assignPublicIp?: null | bool @go(AssignPublicIP,*bool) - - // Set of 1 to 5 Security Group ID-s to be associated with the task. These security groups must all be in the same VPC. - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Set of 1 to 16 subnets to be associated with the task. These subnets must all be in the same VPC. - subnets?: [...null | string] @go(Subnets,[]*string) -} - -#NetworkConfigurationParameters: { - // Specifies whether the task's elastic network interface receives a public IP address. This attribute is a boolean type, where true maps to ENABLED and false to DISABLED. You can specify true only when the launch_type is set to FARGATE. - // +kubebuilder:validation:Optional - assignPublicIp?: null | bool @go(AssignPublicIP,*bool) - - // Set of 1 to 5 Security Group ID-s to be associated with the task. These security groups must all be in the same VPC. - // +kubebuilder:validation:Optional - securityGroups?: [...null | string] @go(SecurityGroups,[]*string) - - // Set of 1 to 16 subnets to be associated with the task. These subnets must all be in the same VPC. - // +kubebuilder:validation:Optional - subnets: [...null | string] @go(Subnets,[]*string) -} - -#PipelineParameterInitParameters: { - // Name of parameter to start execution of a SageMaker Model Building Pipeline. - name?: null | string @go(Name,*string) - - // Value of parameter to start execution of a SageMaker Model Building Pipeline. - value?: null | string @go(Value,*string) -} - -#PipelineParameterObservation: { - // Name of parameter to start execution of a SageMaker Model Building Pipeline. - name?: null | string @go(Name,*string) - - // Value of parameter to start execution of a SageMaker Model Building Pipeline. - value?: null | string @go(Value,*string) -} - -#PipelineParameterParameters: { - // Name of parameter to start execution of a SageMaker Model Building Pipeline. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Value of parameter to start execution of a SageMaker Model Building Pipeline. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#PlacementConstraintsInitParameters: { - // A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is distinctInstance. For more information, see Cluster query language in the Amazon ECS Developer Guide. - expression?: null | string @go(Expression,*string) - - // The type of placement strategy. One of: random, spread, binpack. - type?: null | string @go(Type,*string) -} - -#PlacementConstraintsObservation: { - // A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is distinctInstance. For more information, see Cluster query language in the Amazon ECS Developer Guide. - expression?: null | string @go(Expression,*string) - - // The type of placement strategy. One of: random, spread, binpack. - type?: null | string @go(Type,*string) -} - -#PlacementConstraintsParameters: { - // A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is distinctInstance. For more information, see Cluster query language in the Amazon ECS Developer Guide. - // +kubebuilder:validation:Optional - expression?: null | string @go(Expression,*string) - - // The type of placement strategy. One of: random, spread, binpack. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#PlacementStrategyInitParameters: { - // The field to apply the placement strategy against. - field?: null | string @go(Field,*string) - - // The type of placement strategy. One of: random, spread, binpack. - type?: null | string @go(Type,*string) -} - -#PlacementStrategyObservation: { - // The field to apply the placement strategy against. - field?: null | string @go(Field,*string) - - // The type of placement strategy. One of: random, spread, binpack. - type?: null | string @go(Type,*string) -} - -#PlacementStrategyParameters: { - // The field to apply the placement strategy against. - // +kubebuilder:validation:Optional - field?: null | string @go(Field,*string) - - // The type of placement strategy. One of: random, spread, binpack. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RetryPolicyInitParameters: { - // Maximum amount of time, in seconds, to continue to make retry attempts. Ranges from 60 to 86400 (default). - maximumEventAgeInSeconds?: null | float64 @go(MaximumEventAgeInSeconds,*float64) - - // Maximum number of retry attempts to make before the request fails. Ranges from 0 to 185 (default). - maximumRetryAttempts?: null | float64 @go(MaximumRetryAttempts,*float64) -} - -#RetryPolicyObservation: { - // Maximum amount of time, in seconds, to continue to make retry attempts. Ranges from 60 to 86400 (default). - maximumEventAgeInSeconds?: null | float64 @go(MaximumEventAgeInSeconds,*float64) - - // Maximum number of retry attempts to make before the request fails. Ranges from 0 to 185 (default). - maximumRetryAttempts?: null | float64 @go(MaximumRetryAttempts,*float64) -} - -#RetryPolicyParameters: { - // Maximum amount of time, in seconds, to continue to make retry attempts. Ranges from 60 to 86400 (default). - // +kubebuilder:validation:Optional - maximumEventAgeInSeconds?: null | float64 @go(MaximumEventAgeInSeconds,*float64) - - // Maximum number of retry attempts to make before the request fails. Ranges from 0 to 185 (default). - // +kubebuilder:validation:Optional - maximumRetryAttempts?: null | float64 @go(MaximumRetryAttempts,*float64) -} - -#SagemakerPipelineParametersInitParameters: { - // Set of up to 200 parameter names and values to use when executing the SageMaker Model Building Pipeline. Detailed below. - pipelineParameter?: [...#PipelineParameterInitParameters] @go(PipelineParameter,[]PipelineParameterInitParameters) -} - -#SagemakerPipelineParametersObservation: { - // Set of up to 200 parameter names and values to use when executing the SageMaker Model Building Pipeline. Detailed below. - pipelineParameter?: [...#PipelineParameterObservation] @go(PipelineParameter,[]PipelineParameterObservation) -} - -#SagemakerPipelineParametersParameters: { - // Set of up to 200 parameter names and values to use when executing the SageMaker Model Building Pipeline. Detailed below. - // +kubebuilder:validation:Optional - pipelineParameter?: [...#PipelineParameterParameters] @go(PipelineParameter,[]PipelineParameterParameters) -} - -#ScheduleInitParameters: { - // Brief description of the schedule. - description?: null | string @go(Description,*string) - - // The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the end date you specify. EventBridge Scheduler ignores the end date for one-time schedules. Example: 2030-01-01T01:00:00Z. - endDate?: null | string @go(EndDate,*string) - - // Configures a time window during which EventBridge Scheduler invokes the schedule. Detailed below. - flexibleTimeWindow?: [...#FlexibleTimeWindowInitParameters] @go(FlexibleTimeWindow,[]FlexibleTimeWindowInitParameters) - - // Name of the schedule group to associate with this schedule. When omitted, the default schedule group is used. - groupName?: null | string @go(GroupName,*string) - - // Name of the schedule. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // Defines when the schedule runs. Read more in Schedule types on EventBridge Scheduler. - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // Timezone in which the scheduling expression is evaluated. Defaults to UTC. Example: Australia/Sydney. - scheduleExpressionTimezone?: null | string @go(ScheduleExpressionTimezone,*string) - - // The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the start date you specify. EventBridge Scheduler ignores the start date for one-time schedules. Example: 2030-01-01T01:00:00Z. - startDate?: null | string @go(StartDate,*string) - - // Specifies whether the schedule is enabled or disabled. One of: ENABLED (default), DISABLED. - state?: null | string @go(State,*string) - - // Configures the target of the schedule. Detailed below. - target?: [...#TargetInitParameters] @go(Target,[]TargetInitParameters) -} - -#ScheduleObservation: { - // ARN of the SQS queue specified as the destination for the dead-letter queue. - arn?: null | string @go(Arn,*string) - - // Brief description of the schedule. - description?: null | string @go(Description,*string) - - // The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the end date you specify. EventBridge Scheduler ignores the end date for one-time schedules. Example: 2030-01-01T01:00:00Z. - endDate?: null | string @go(EndDate,*string) - - // Configures a time window during which EventBridge Scheduler invokes the schedule. Detailed below. - flexibleTimeWindow?: [...#FlexibleTimeWindowObservation] @go(FlexibleTimeWindow,[]FlexibleTimeWindowObservation) - - // Name of the schedule group to associate with this schedule. When omitted, the default schedule group is used. - groupName?: null | string @go(GroupName,*string) - - // Name of the schedule. - id?: null | string @go(ID,*string) - - // ARN for the customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Name of the schedule. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // Defines when the schedule runs. Read more in Schedule types on EventBridge Scheduler. - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // Timezone in which the scheduling expression is evaluated. Defaults to UTC. Example: Australia/Sydney. - scheduleExpressionTimezone?: null | string @go(ScheduleExpressionTimezone,*string) - - // The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the start date you specify. EventBridge Scheduler ignores the start date for one-time schedules. Example: 2030-01-01T01:00:00Z. - startDate?: null | string @go(StartDate,*string) - - // Specifies whether the schedule is enabled or disabled. One of: ENABLED (default), DISABLED. - state?: null | string @go(State,*string) - - // Configures the target of the schedule. Detailed below. - target?: [...#TargetObservation] @go(Target,[]TargetObservation) -} - -#ScheduleParameters: { - // Brief description of the schedule. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the end date you specify. EventBridge Scheduler ignores the end date for one-time schedules. Example: 2030-01-01T01:00:00Z. - // +kubebuilder:validation:Optional - endDate?: null | string @go(EndDate,*string) - - // Configures a time window during which EventBridge Scheduler invokes the schedule. Detailed below. - // +kubebuilder:validation:Optional - flexibleTimeWindow?: [...#FlexibleTimeWindowParameters] @go(FlexibleTimeWindow,[]FlexibleTimeWindowParameters) - - // Name of the schedule group to associate with this schedule. When omitted, the default schedule group is used. - // +kubebuilder:validation:Optional - groupName?: null | string @go(GroupName,*string) - - // ARN for the customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Reference to a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnRef?: null | v1.#Reference @go(KMSKeyArnRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyArn. - // +kubebuilder:validation:Optional - kmsKeyArnSelector?: null | v1.#Selector @go(KMSKeyArnSelector,*v1.Selector) - - // Name of the schedule. Conflicts with name_prefix. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Defines when the schedule runs. Read more in Schedule types on EventBridge Scheduler. - // +kubebuilder:validation:Optional - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // Timezone in which the scheduling expression is evaluated. Defaults to UTC. Example: Australia/Sydney. - // +kubebuilder:validation:Optional - scheduleExpressionTimezone?: null | string @go(ScheduleExpressionTimezone,*string) - - // The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the start date you specify. EventBridge Scheduler ignores the start date for one-time schedules. Example: 2030-01-01T01:00:00Z. - // +kubebuilder:validation:Optional - startDate?: null | string @go(StartDate,*string) - - // Specifies whether the schedule is enabled or disabled. One of: ENABLED (default), DISABLED. - // +kubebuilder:validation:Optional - state?: null | string @go(State,*string) - - // Configures the target of the schedule. Detailed below. - // +kubebuilder:validation:Optional - target?: [...#TargetParameters] @go(Target,[]TargetParameters) -} - -#SqsParametersInitParameters: { - // FIFO message group ID to use as the target. - messageGroupId?: null | string @go(MessageGroupID,*string) -} - -#SqsParametersObservation: { - // FIFO message group ID to use as the target. - messageGroupId?: null | string @go(MessageGroupID,*string) -} - -#SqsParametersParameters: { - // FIFO message group ID to use as the target. - // +kubebuilder:validation:Optional - messageGroupId?: null | string @go(MessageGroupID,*string) -} - -#TargetInitParameters: { - // Information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule. If specified, EventBridge Scheduler delivers failed events that could not be successfully delivered to a target to the queue. Detailed below. - deadLetterConfig?: [...#DeadLetterConfigInitParameters] @go(DeadLetterConfig,[]DeadLetterConfigInitParameters) - - // Templated target type for the Amazon ECS RunTask API operation. Detailed below. - ecsParameters?: [...#EcsParametersInitParameters] @go(EcsParameters,[]EcsParametersInitParameters) - - // Templated target type for the EventBridge PutEvents API operation. Detailed below. - eventbridgeParameters?: [...#EventbridgeParametersInitParameters] @go(EventbridgeParameters,[]EventbridgeParametersInitParameters) - - // Text, or well-formed JSON, passed to the target. Read more in Universal target. - input?: null | string @go(Input,*string) - - // Templated target type for the Amazon Kinesis PutRecord API operation. Detailed below. - kinesisParameters?: [...#KinesisParametersInitParameters] @go(KinesisParameters,[]KinesisParametersInitParameters) - - // Information about the retry policy settings. Detailed below. - retryPolicy?: [...#RetryPolicyInitParameters] @go(RetryPolicy,[]RetryPolicyInitParameters) - - // Templated target type for the Amazon SageMaker StartPipelineExecution API operation. Detailed below. - sagemakerPipelineParameters?: [...#SagemakerPipelineParametersInitParameters] @go(SagemakerPipelineParameters,[]SagemakerPipelineParametersInitParameters) - - // The templated target type for the Amazon SQS SendMessage API operation. Detailed below. - sqsParameters?: [...#SqsParametersInitParameters] @go(SqsParameters,[]SqsParametersInitParameters) -} - -#TargetObservation: { - // ARN of the target of this schedule, such as a SQS queue or ECS cluster. For universal targets, this is a Service ARN specific to the target service. - arn?: null | string @go(Arn,*string) - - // Information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule. If specified, EventBridge Scheduler delivers failed events that could not be successfully delivered to a target to the queue. Detailed below. - deadLetterConfig?: [...#DeadLetterConfigObservation] @go(DeadLetterConfig,[]DeadLetterConfigObservation) - - // Templated target type for the Amazon ECS RunTask API operation. Detailed below. - ecsParameters?: [...#EcsParametersObservation] @go(EcsParameters,[]EcsParametersObservation) - - // Templated target type for the EventBridge PutEvents API operation. Detailed below. - eventbridgeParameters?: [...#EventbridgeParametersObservation] @go(EventbridgeParameters,[]EventbridgeParametersObservation) - - // Text, or well-formed JSON, passed to the target. Read more in Universal target. - input?: null | string @go(Input,*string) - - // Templated target type for the Amazon Kinesis PutRecord API operation. Detailed below. - kinesisParameters?: [...#KinesisParametersObservation] @go(KinesisParameters,[]KinesisParametersObservation) - - // Information about the retry policy settings. Detailed below. - retryPolicy?: [...#RetryPolicyObservation] @go(RetryPolicy,[]RetryPolicyObservation) - - // ARN of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked. Read more in Set up the execution role. - roleArn?: null | string @go(RoleArn,*string) - - // Templated target type for the Amazon SageMaker StartPipelineExecution API operation. Detailed below. - sagemakerPipelineParameters?: [...#SagemakerPipelineParametersObservation] @go(SagemakerPipelineParameters,[]SagemakerPipelineParametersObservation) - - // The templated target type for the Amazon SQS SendMessage API operation. Detailed below. - sqsParameters?: [...#SqsParametersObservation] @go(SqsParameters,[]SqsParametersObservation) -} - -#TargetParameters: { - // ARN of the target of this schedule, such as a SQS queue or ECS cluster. For universal targets, this is a Service ARN specific to the target service. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sqs/v1beta1.Queue - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // Reference to a Queue in sqs to populate arn. - // +kubebuilder:validation:Optional - arnRef?: null | v1.#Reference @go(ArnRef,*v1.Reference) - - // Selector for a Queue in sqs to populate arn. - // +kubebuilder:validation:Optional - arnSelector?: null | v1.#Selector @go(ArnSelector,*v1.Selector) - - // Information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule. If specified, EventBridge Scheduler delivers failed events that could not be successfully delivered to a target to the queue. Detailed below. - // +kubebuilder:validation:Optional - deadLetterConfig?: [...#DeadLetterConfigParameters] @go(DeadLetterConfig,[]DeadLetterConfigParameters) - - // Templated target type for the Amazon ECS RunTask API operation. Detailed below. - // +kubebuilder:validation:Optional - ecsParameters?: [...#EcsParametersParameters] @go(EcsParameters,[]EcsParametersParameters) - - // Templated target type for the EventBridge PutEvents API operation. Detailed below. - // +kubebuilder:validation:Optional - eventbridgeParameters?: [...#EventbridgeParametersParameters] @go(EventbridgeParameters,[]EventbridgeParametersParameters) - - // Text, or well-formed JSON, passed to the target. Read more in Universal target. - // +kubebuilder:validation:Optional - input?: null | string @go(Input,*string) - - // Templated target type for the Amazon Kinesis PutRecord API operation. Detailed below. - // +kubebuilder:validation:Optional - kinesisParameters?: [...#KinesisParametersParameters] @go(KinesisParameters,[]KinesisParametersParameters) - - // Information about the retry policy settings. Detailed below. - // +kubebuilder:validation:Optional - retryPolicy?: [...#RetryPolicyParameters] @go(RetryPolicy,[]RetryPolicyParameters) - - // ARN of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked. Read more in Set up the execution role. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Templated target type for the Amazon SageMaker StartPipelineExecution API operation. Detailed below. - // +kubebuilder:validation:Optional - sagemakerPipelineParameters?: [...#SagemakerPipelineParametersParameters] @go(SagemakerPipelineParameters,[]SagemakerPipelineParametersParameters) - - // The templated target type for the Amazon SQS SendMessage API operation. Detailed below. - // +kubebuilder:validation:Optional - sqsParameters?: [...#SqsParametersParameters] @go(SqsParameters,[]SqsParametersParameters) -} - -// ScheduleSpec defines the desired state of Schedule -#ScheduleSpec: { - v1.#ResourceSpec - forProvider: #ScheduleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ScheduleInitParameters @go(InitProvider) -} - -// ScheduleStatus defines the observed state of Schedule. -#ScheduleStatus: { - v1.#ResourceStatus - atProvider?: #ScheduleObservation @go(AtProvider) -} - -// Schedule is the Schema for the Schedules API. Provides an EventBridge Scheduler Schedule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Schedule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.flexibleTimeWindow) || (has(self.initProvider) && has(self.initProvider.flexibleTimeWindow))",message="spec.forProvider.flexibleTimeWindow is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scheduleExpression) || (has(self.initProvider) && has(self.initProvider.scheduleExpression))",message="spec.forProvider.scheduleExpression is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.target) || (has(self.initProvider) && has(self.initProvider.target))",message="spec.forProvider.target is a required parameter" - spec: #ScheduleSpec @go(Spec) - status?: #ScheduleStatus @go(Status) -} - -// ScheduleList contains a list of Schedules -#ScheduleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Schedule] @go(Items,[]Schedule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/scheduler/v1beta1/zz_schedulegroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/scheduler/v1beta1/zz_schedulegroup_types_go_gen.cue deleted file mode 100644 index a2542f4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/scheduler/v1beta1/zz_schedulegroup_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/scheduler/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ScheduleGroupInitParameters: { - // Name of the schedule group. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ScheduleGroupObservation: { - // ARN of the schedule group. - arn?: null | string @go(Arn,*string) - - // Time at which the schedule group was created. - creationDate?: null | string @go(CreationDate,*string) - - // Name of the schedule group. - id?: null | string @go(ID,*string) - - // Time at which the schedule group was last modified. - lastModificationDate?: null | string @go(LastModificationDate,*string) - - // Name of the schedule group. Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // State of the schedule group. Can be ACTIVE or DELETING. - state?: null | string @go(State,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ScheduleGroupParameters: { - // Name of the schedule group. Conflicts with name_prefix. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ScheduleGroupSpec defines the desired state of ScheduleGroup -#ScheduleGroupSpec: { - v1.#ResourceSpec - forProvider: #ScheduleGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ScheduleGroupInitParameters @go(InitProvider) -} - -// ScheduleGroupStatus defines the observed state of ScheduleGroup. -#ScheduleGroupStatus: { - v1.#ResourceStatus - atProvider?: #ScheduleGroupObservation @go(AtProvider) -} - -// ScheduleGroup is the Schema for the ScheduleGroups API. Provides an EventBridge Scheduler Schedule Group resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ScheduleGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ScheduleGroupSpec @go(Spec) - status?: #ScheduleGroupStatus @go(Status) -} - -// ScheduleGroupList contains a list of ScheduleGroups -#ScheduleGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ScheduleGroup] @go(Items,[]ScheduleGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/schemas/v1beta1/zz_discoverer_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/schemas/v1beta1/zz_discoverer_types_go_gen.cue deleted file mode 100644 index 7b05513..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/schemas/v1beta1/zz_discoverer_types_go_gen.cue +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/schemas/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DiscovererInitParameters: { - // The description of the discoverer. Maximum of 256 characters. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DiscovererObservation: { - // The Amazon Resource Name (ARN) of the discoverer. - arn?: null | string @go(Arn,*string) - - // The description of the discoverer. Maximum of 256 characters. - description?: null | string @go(Description,*string) - - // The ID of the discoverer. - id?: null | string @go(ID,*string) - - // The ARN of the event bus to discover event schemas on. - sourceArn?: null | string @go(SourceArn,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DiscovererParameters: { - // The description of the discoverer. Maximum of 256 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of the event bus to discover event schemas on. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchevents/v1beta1.Bus - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - sourceArn?: null | string @go(SourceArn,*string) - - // Reference to a Bus in cloudwatchevents to populate sourceArn. - // +kubebuilder:validation:Optional - sourceArnRef?: null | v1.#Reference @go(SourceArnRef,*v1.Reference) - - // Selector for a Bus in cloudwatchevents to populate sourceArn. - // +kubebuilder:validation:Optional - sourceArnSelector?: null | v1.#Selector @go(SourceArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// DiscovererSpec defines the desired state of Discoverer -#DiscovererSpec: { - v1.#ResourceSpec - forProvider: #DiscovererParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DiscovererInitParameters @go(InitProvider) -} - -// DiscovererStatus defines the observed state of Discoverer. -#DiscovererStatus: { - v1.#ResourceStatus - atProvider?: #DiscovererObservation @go(AtProvider) -} - -// Discoverer is the Schema for the Discoverers API. Provides an EventBridge Schema Discoverer resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Discoverer: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DiscovererSpec @go(Spec) - status?: #DiscovererStatus @go(Status) -} - -// DiscovererList contains a list of Discoverers -#DiscovererList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Discoverer] @go(Items,[]Discoverer) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/schemas/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/schemas/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 92c963c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/schemas/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/schemas/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=schemas.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "schemas.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/schemas/v1beta1/zz_registry_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/schemas/v1beta1/zz_registry_types_go_gen.cue deleted file mode 100644 index 006e6e0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/schemas/v1beta1/zz_registry_types_go_gen.cue +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/schemas/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RegistryInitParameters: { - // The description of the discoverer. Maximum of 256 characters. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RegistryObservation: { - // The Amazon Resource Name (ARN) of the discoverer. - arn?: null | string @go(Arn,*string) - - // The description of the discoverer. Maximum of 256 characters. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RegistryParameters: { - // The description of the discoverer. Maximum of 256 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RegistrySpec defines the desired state of Registry -#RegistrySpec: { - v1.#ResourceSpec - forProvider: #RegistryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RegistryInitParameters @go(InitProvider) -} - -// RegistryStatus defines the observed state of Registry. -#RegistryStatus: { - v1.#ResourceStatus - atProvider?: #RegistryObservation @go(AtProvider) -} - -// Registry is the Schema for the Registrys API. Provides an EventBridge Custom Schema Registry resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Registry: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #RegistrySpec @go(Spec) - status?: #RegistryStatus @go(Status) -} - -// RegistryList contains a list of Registrys -#RegistryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Registry] @go(Items,[]Registry) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/schemas/v1beta1/zz_schema_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/schemas/v1beta1/zz_schema_types_go_gen.cue deleted file mode 100644 index 2c9c73a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/schemas/v1beta1/zz_schema_types_go_gen.cue +++ /dev/null @@ -1,152 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/schemas/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SchemaInitParameters: { - // The schema specification. Must be a valid Open API 3.0 spec. - content?: null | string @go(Content,*string) - - // The description of the schema. Maximum of 256 characters. - description?: null | string @go(Description,*string) - - // The name of the schema. Maximum of 385 characters consisting of lower case letters, upper case letters, ., -, _, @. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of the schema. Valid values: OpenApi3. - type?: null | string @go(Type,*string) -} - -#SchemaObservation: { - // The Amazon Resource Name (ARN) of the discoverer. - arn?: null | string @go(Arn,*string) - - // The schema specification. Must be a valid Open API 3.0 spec. - content?: null | string @go(Content,*string) - - // The description of the schema. Maximum of 256 characters. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // The last modified date of the schema. - lastModified?: null | string @go(LastModified,*string) - - // The name of the schema. Maximum of 385 characters consisting of lower case letters, upper case letters, ., -, _, @. - name?: null | string @go(Name,*string) - - // The name of the registry in which this schema belongs. - registryName?: null | string @go(RegistryName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The type of the schema. Valid values: OpenApi3. - type?: null | string @go(Type,*string) - - // The version of the schema. - version?: null | string @go(Version,*string) - - // The created date of the version of the schema. - versionCreatedDate?: null | string @go(VersionCreatedDate,*string) -} - -#SchemaParameters: { - // The schema specification. Must be a valid Open API 3.0 spec. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // The description of the schema. Maximum of 256 characters. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the schema. Maximum of 385 characters consisting of lower case letters, upper case letters, ., -, _, @. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the registry in which this schema belongs. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/schemas/v1beta1.Registry - // +kubebuilder:validation:Optional - registryName?: null | string @go(RegistryName,*string) - - // Reference to a Registry in schemas to populate registryName. - // +kubebuilder:validation:Optional - registryNameRef?: null | v1.#Reference @go(RegistryNameRef,*v1.Reference) - - // Selector for a Registry in schemas to populate registryName. - // +kubebuilder:validation:Optional - registryNameSelector?: null | v1.#Selector @go(RegistryNameSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The type of the schema. Valid values: OpenApi3. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// SchemaSpec defines the desired state of Schema -#SchemaSpec: { - v1.#ResourceSpec - forProvider: #SchemaParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SchemaInitParameters @go(InitProvider) -} - -// SchemaStatus defines the observed state of Schema. -#SchemaStatus: { - v1.#ResourceStatus - atProvider?: #SchemaObservation @go(AtProvider) -} - -// Schema is the Schema for the Schemas API. Provides an EventBridge Schema resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Schema: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.content) || (has(self.initProvider) && has(self.initProvider.content))",message="spec.forProvider.content is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #SchemaSpec @go(Spec) - status?: #SchemaStatus @go(Status) -} - -// SchemaList contains a list of Schemas -#SchemaList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Schema] @go(Items,[]Schema) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 6856060..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/secretsmanager/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=secretsmanager.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "secretsmanager.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_secret_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_secret_types_go_gen.cue deleted file mode 100644 index 2b13260..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_secret_types_go_gen.cue +++ /dev/null @@ -1,209 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/secretsmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ReplicaInitParameters: { - // ARN, Key ID, or Alias of the AWS KMS key within the region secret is replicated to. If one is not specified, then Secrets Manager defaults to using the AWS account's default KMS key (aws/secretsmanager) in the region or creates one for use if non-existent. - kmsKeyId?: null | string @go(KMSKeyID,*string) -} - -#ReplicaObservation: { - // ARN, Key ID, or Alias of the AWS KMS key within the region secret is replicated to. If one is not specified, then Secrets Manager defaults to using the AWS account's default KMS key (aws/secretsmanager) in the region or creates one for use if non-existent. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Date that you last accessed the secret in the Region. - lastAccessedDate?: null | string @go(LastAccessedDate,*string) - - // Region for replicating the secret. - region?: null | string @go(Region,*string) - - // Status can be InProgress, Failed, or InSync. - status?: null | string @go(Status,*string) - - // Message such as Replication succeeded or Secret with this name already exists in this region. - statusMessage?: null | string @go(StatusMessage,*string) -} - -#ReplicaParameters: { - // ARN, Key ID, or Alias of the AWS KMS key within the region secret is replicated to. If one is not specified, then Secrets Manager defaults to using the AWS account's default KMS key (aws/secretsmanager) in the region or creates one for use if non-existent. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Region for replicating the secret. - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#RotationRulesInitParameters: { -} - -#RotationRulesObservation: { - // Specifies the number of days between automatic scheduled rotations of the secret. - automaticallyAfterDays?: null | float64 @go(AutomaticallyAfterDays,*float64) - duration?: null | string @go(Duration,*string) - scheduleExpression?: null | string @go(ScheduleExpression,*string) -} - -#RotationRulesParameters: { -} - -#SecretInitParameters: { - // Description of the secret. - description?: null | string @go(Description,*string) - - // Accepts boolean value to specify whether to overwrite a secret with the same name in the destination Region. - forceOverwriteReplicaSecret?: null | bool @go(ForceOverwriteReplicaSecret,*bool) - - // Friendly name of the new secret. The secret name can consist of uppercase letters, lowercase letters, digits, and any of the following characters: /_+=.@- Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // Number of days that AWS Secrets Manager waits before it can delete the secret. This value can be 0 to force deletion without recovery or range from 7 to 30 days. The default value is 30. - recoveryWindowInDays?: null | float64 @go(RecoveryWindowInDays,*float64) - - // Configuration block to support secret replication. See details below. - replica?: [...#ReplicaInitParameters] @go(Replica,[]ReplicaInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SecretObservation: { - // ARN of the secret. - arn?: null | string @go(Arn,*string) - - // Description of the secret. - description?: null | string @go(Description,*string) - - // Accepts boolean value to specify whether to overwrite a secret with the same name in the destination Region. - forceOverwriteReplicaSecret?: null | bool @go(ForceOverwriteReplicaSecret,*bool) - - // ARN of the secret. - id?: null | string @go(ID,*string) - - // ARN or Id of the AWS KMS key to be used to encrypt the secret values in the versions stored in this secret. If you need to reference a CMK in a different account, you can use only the key ARN. If you don't specify this value, then Secrets Manager defaults to using the AWS account's default KMS key (the one named aws/secretsmanager). If the default KMS key with that name doesn't yet exist, then AWS Secrets Manager creates it for you automatically the first time. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Friendly name of the new secret. The secret name can consist of uppercase letters, lowercase letters, digits, and any of the following characters: /_+=.@- Conflicts with name_prefix. - name?: null | string @go(Name,*string) - - // Valid JSON document representing a resource policy. Removing policy from your configuration or setting policy to null or an empty string (i.e., policy = "") will not delete the policy since it could have been set by aws_secretsmanager_secret_policy. To delete the policy, set it to "{}" (an empty JSON document). - policy?: null | string @go(Policy,*string) - - // Number of days that AWS Secrets Manager waits before it can delete the secret. This value can be 0 to force deletion without recovery or range from 7 to 30 days. The default value is 30. - recoveryWindowInDays?: null | float64 @go(RecoveryWindowInDays,*float64) - - // Configuration block to support secret replication. See details below. - replica?: [...#ReplicaObservation] @go(Replica,[]ReplicaObservation) - - // Whether automatic rotation is enabled for this secret. - rotationEnabled?: null | bool @go(RotationEnabled,*bool) - - // ARN of the Lambda function that can rotate the secret. Use the aws_secretsmanager_secret_rotation resource to manage this configuration instead. As of version 2.67.0, removal of this configuration will no longer remove rotation due to supporting the new resource. Either import the new resource and remove the configuration or manually remove rotation. - rotationLambdaArn?: null | string @go(RotationLambdaArn,*string) - - // Configuration block for the rotation configuration of this secret. Defined below. Use the aws_secretsmanager_secret_rotation resource to manage this configuration instead. As of version 2.67.0, removal of this configuration will no longer remove rotation due to supporting the new resource. Either import the new resource and remove the configuration or manually remove rotation. - rotationRules?: [...#RotationRulesObservation] @go(RotationRules,[]RotationRulesObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#SecretParameters: { - // Description of the secret. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Accepts boolean value to specify whether to overwrite a secret with the same name in the destination Region. - // +kubebuilder:validation:Optional - forceOverwriteReplicaSecret?: null | bool @go(ForceOverwriteReplicaSecret,*bool) - - // ARN or Id of the AWS KMS key to be used to encrypt the secret values in the versions stored in this secret. If you need to reference a CMK in a different account, you can use only the key ARN. If you don't specify this value, then Secrets Manager defaults to using the AWS account's default KMS key (the one named aws/secretsmanager). If the default KMS key with that name doesn't yet exist, then AWS Secrets Manager creates it for you automatically the first time. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Friendly name of the new secret. The secret name can consist of uppercase letters, lowercase letters, digits, and any of the following characters: /_+=.@- Conflicts with name_prefix. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Number of days that AWS Secrets Manager waits before it can delete the secret. This value can be 0 to force deletion without recovery or range from 7 to 30 days. The default value is 30. - // +kubebuilder:validation:Optional - recoveryWindowInDays?: null | float64 @go(RecoveryWindowInDays,*float64) - - // Region for replicating the secret. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration block to support secret replication. See details below. - // +kubebuilder:validation:Optional - replica?: [...#ReplicaParameters] @go(Replica,[]ReplicaParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// SecretSpec defines the desired state of Secret -#SecretSpec: { - v1.#ResourceSpec - forProvider: #SecretParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SecretInitParameters @go(InitProvider) -} - -// SecretStatus defines the observed state of Secret. -#SecretStatus: { - v1.#ResourceStatus - atProvider?: #SecretObservation @go(AtProvider) -} - -// Secret is the Schema for the Secrets API. Provides a resource to manage AWS Secrets Manager secret metadata -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Secret: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SecretSpec @go(Spec) - status?: #SecretStatus @go(Status) -} - -// SecretList contains a list of Secrets -#SecretList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Secret] @go(Items,[]Secret) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_secretpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_secretpolicy_types_go_gen.cue deleted file mode 100644 index 39a1eab..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_secretpolicy_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/secretsmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SecretPolicyInitParameters: { - // Makes an optional API call to Zelkova to validate the Resource Policy to prevent broad access to your secret. - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // Valid JSON document representing a resource policy. Unlike aws_secretsmanager_secret, where policy can be set to "{}" to delete the policy, "{}" is not a valid policy since policy is required. - policy?: null | string @go(Policy,*string) -} - -#SecretPolicyObservation: { - // Makes an optional API call to Zelkova to validate the Resource Policy to prevent broad access to your secret. - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // Amazon Resource Name (ARN) of the secret. - id?: null | string @go(ID,*string) - - // Valid JSON document representing a resource policy. Unlike aws_secretsmanager_secret, where policy can be set to "{}" to delete the policy, "{}" is not a valid policy since policy is required. - policy?: null | string @go(Policy,*string) - - // Secret ARN. - secretArn?: null | string @go(SecretArn,*string) -} - -#SecretPolicyParameters: { - // Makes an optional API call to Zelkova to validate the Resource Policy to prevent broad access to your secret. - // +kubebuilder:validation:Optional - blockPublicPolicy?: null | bool @go(BlockPublicPolicy,*bool) - - // Valid JSON document representing a resource policy. Unlike aws_secretsmanager_secret, where policy can be set to "{}" to delete the policy, "{}" is not a valid policy since policy is required. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Secret ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/secretsmanager/v1beta1.Secret - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - secretArn?: null | string @go(SecretArn,*string) - - // Reference to a Secret in secretsmanager to populate secretArn. - // +kubebuilder:validation:Optional - secretArnRef?: null | v1.#Reference @go(SecretArnRef,*v1.Reference) - - // Selector for a Secret in secretsmanager to populate secretArn. - // +kubebuilder:validation:Optional - secretArnSelector?: null | v1.#Selector @go(SecretArnSelector,*v1.Selector) -} - -// SecretPolicySpec defines the desired state of SecretPolicy -#SecretPolicySpec: { - v1.#ResourceSpec - forProvider: #SecretPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SecretPolicyInitParameters @go(InitProvider) -} - -// SecretPolicyStatus defines the observed state of SecretPolicy. -#SecretPolicyStatus: { - v1.#ResourceStatus - atProvider?: #SecretPolicyObservation @go(AtProvider) -} - -// SecretPolicy is the Schema for the SecretPolicys API. Provides a resource to manage AWS Secrets Manager secret policy -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SecretPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #SecretPolicySpec @go(Spec) - status?: #SecretPolicyStatus @go(Status) -} - -// SecretPolicyList contains a list of SecretPolicys -#SecretPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SecretPolicy] @go(Items,[]SecretPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_secretrotation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_secretrotation_types_go_gen.cue deleted file mode 100644 index 6f7e654..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_secretrotation_types_go_gen.cue +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/secretsmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SecretRotationInitParameters: { - // A structure that defines the rotation configuration for this secret. Defined below. - rotationRules?: [...#SecretRotationRotationRulesInitParameters] @go(RotationRules,[]SecretRotationRotationRulesInitParameters) -} - -#SecretRotationObservation: { - // Amazon Resource Name (ARN) of the secret. - id?: null | string @go(ID,*string) - - // Specifies whether automatic rotation is enabled for this secret. - rotationEnabled?: null | bool @go(RotationEnabled,*bool) - - // Specifies the ARN of the Lambda function that can rotate the secret. - rotationLambdaArn?: null | string @go(RotationLambdaArn,*string) - - // A structure that defines the rotation configuration for this secret. Defined below. - rotationRules?: [...#SecretRotationRotationRulesObservation] @go(RotationRules,[]SecretRotationRotationRulesObservation) - - // Specifies the secret to which you want to add a new version. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret. The secret must already exist. - secretId?: null | string @go(SecretID,*string) -} - -#SecretRotationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the ARN of the Lambda function that can rotate the secret. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - rotationLambdaArn?: null | string @go(RotationLambdaArn,*string) - - // Reference to a Function in lambda to populate rotationLambdaArn. - // +kubebuilder:validation:Optional - rotationLambdaArnRef?: null | v1.#Reference @go(RotationLambdaArnRef,*v1.Reference) - - // Selector for a Function in lambda to populate rotationLambdaArn. - // +kubebuilder:validation:Optional - rotationLambdaArnSelector?: null | v1.#Selector @go(RotationLambdaArnSelector,*v1.Selector) - - // A structure that defines the rotation configuration for this secret. Defined below. - // +kubebuilder:validation:Optional - rotationRules?: [...#SecretRotationRotationRulesParameters] @go(RotationRules,[]SecretRotationRotationRulesParameters) - - // Specifies the secret to which you want to add a new version. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret. The secret must already exist. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/secretsmanager/v1beta1.Secret - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - secretId?: null | string @go(SecretID,*string) - - // Reference to a Secret in secretsmanager to populate secretId. - // +kubebuilder:validation:Optional - secretIdRef?: null | v1.#Reference @go(SecretIDRef,*v1.Reference) - - // Selector for a Secret in secretsmanager to populate secretId. - // +kubebuilder:validation:Optional - secretIdSelector?: null | v1.#Selector @go(SecretIDSelector,*v1.Selector) -} - -#SecretRotationRotationRulesInitParameters: { - // Specifies the number of days between automatic scheduled rotations of the secret. Either automatically_after_days or schedule_expression must be specified. - automaticallyAfterDays?: null | float64 @go(AutomaticallyAfterDays,*float64) - - // - The length of the rotation window in hours. For example, 3h for a three hour window. - duration?: null | string @go(Duration,*string) - - // A cron() or rate() expression that defines the schedule for rotating your secret. Either automatically_after_days or schedule_expression must be specified. - scheduleExpression?: null | string @go(ScheduleExpression,*string) -} - -#SecretRotationRotationRulesObservation: { - // Specifies the number of days between automatic scheduled rotations of the secret. Either automatically_after_days or schedule_expression must be specified. - automaticallyAfterDays?: null | float64 @go(AutomaticallyAfterDays,*float64) - - // - The length of the rotation window in hours. For example, 3h for a three hour window. - duration?: null | string @go(Duration,*string) - - // A cron() or rate() expression that defines the schedule for rotating your secret. Either automatically_after_days or schedule_expression must be specified. - scheduleExpression?: null | string @go(ScheduleExpression,*string) -} - -#SecretRotationRotationRulesParameters: { - // Specifies the number of days between automatic scheduled rotations of the secret. Either automatically_after_days or schedule_expression must be specified. - // +kubebuilder:validation:Optional - automaticallyAfterDays?: null | float64 @go(AutomaticallyAfterDays,*float64) - - // - The length of the rotation window in hours. For example, 3h for a three hour window. - // +kubebuilder:validation:Optional - duration?: null | string @go(Duration,*string) - - // A cron() or rate() expression that defines the schedule for rotating your secret. Either automatically_after_days or schedule_expression must be specified. - // +kubebuilder:validation:Optional - scheduleExpression?: null | string @go(ScheduleExpression,*string) -} - -// SecretRotationSpec defines the desired state of SecretRotation -#SecretRotationSpec: { - v1.#ResourceSpec - forProvider: #SecretRotationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SecretRotationInitParameters @go(InitProvider) -} - -// SecretRotationStatus defines the observed state of SecretRotation. -#SecretRotationStatus: { - v1.#ResourceStatus - atProvider?: #SecretRotationObservation @go(AtProvider) -} - -// SecretRotation is the Schema for the SecretRotations API. Provides a resource to manage AWS Secrets Manager secret rotation -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SecretRotation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rotationRules) || (has(self.initProvider) && has(self.initProvider.rotationRules))",message="spec.forProvider.rotationRules is a required parameter" - spec: #SecretRotationSpec @go(Spec) - status?: #SecretRotationStatus @go(Status) -} - -// SecretRotationList contains a list of SecretRotations -#SecretRotationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SecretRotation] @go(Items,[]SecretRotation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_secretversion_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_secretversion_types_go_gen.cue deleted file mode 100644 index c2ba0c2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/secretsmanager/v1beta1/zz_secretversion_types_go_gen.cue +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/secretsmanager/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SecretVersionInitParameters: { - // Specifies a list of staging labels that are attached to this version of the secret. A staging label must be unique to a single version of the secret. If you specify a staging label that's already associated with a different version of the same secret then that staging label is automatically removed from the other version and attached to this version. If you do not specify a value, then AWS Secrets Manager automatically moves the staging label AWSCURRENT to this new version on creation. - versionStages?: [...null | string] @go(VersionStages,[]*string) -} - -#SecretVersionObservation: { - // The ARN of the secret. - arn?: null | string @go(Arn,*string) - - // A pipe delimited combination of secret ID and version ID. - id?: null | string @go(ID,*string) - - // Specifies the secret to which you want to add a new version. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret. The secret must already exist. - secretId?: null | string @go(SecretID,*string) - - // The unique identifier of the version of the secret. - versionId?: null | string @go(VersionID,*string) - - // Specifies a list of staging labels that are attached to this version of the secret. A staging label must be unique to a single version of the secret. If you specify a staging label that's already associated with a different version of the same secret then that staging label is automatically removed from the other version and attached to this version. If you do not specify a value, then AWS Secrets Manager automatically moves the staging label AWSCURRENT to this new version on creation. - versionStages?: [...null | string] @go(VersionStages,[]*string) -} - -#SecretVersionParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies binary data that you want to encrypt and store in this version of the secret. This is required if secret_string is not set. Needs to be encoded to base64. - // +kubebuilder:validation:Optional - secretBinarySecretRef?: null | v1.#SecretKeySelector @go(SecretBinarySecretRef,*v1.SecretKeySelector) - - // Specifies the secret to which you want to add a new version. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret. The secret must already exist. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/secretsmanager/v1beta1.Secret - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - secretId?: null | string @go(SecretID,*string) - - // Reference to a Secret in secretsmanager to populate secretId. - // +kubebuilder:validation:Optional - secretIdRef?: null | v1.#Reference @go(SecretIDRef,*v1.Reference) - - // Selector for a Secret in secretsmanager to populate secretId. - // +kubebuilder:validation:Optional - secretIdSelector?: null | v1.#Selector @go(SecretIDSelector,*v1.Selector) - - // Specifies text data that you want to encrypt and store in this version of the secret. This is required if secret_binary is not set. - // +kubebuilder:validation:Optional - secretStringSecretRef?: null | v1.#SecretKeySelector @go(SecretStringSecretRef,*v1.SecretKeySelector) - - // Specifies a list of staging labels that are attached to this version of the secret. A staging label must be unique to a single version of the secret. If you specify a staging label that's already associated with a different version of the same secret then that staging label is automatically removed from the other version and attached to this version. If you do not specify a value, then AWS Secrets Manager automatically moves the staging label AWSCURRENT to this new version on creation. - // +kubebuilder:validation:Optional - versionStages?: [...null | string] @go(VersionStages,[]*string) -} - -// SecretVersionSpec defines the desired state of SecretVersion -#SecretVersionSpec: { - v1.#ResourceSpec - forProvider: #SecretVersionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SecretVersionInitParameters @go(InitProvider) -} - -// SecretVersionStatus defines the observed state of SecretVersion. -#SecretVersionStatus: { - v1.#ResourceStatus - atProvider?: #SecretVersionObservation @go(AtProvider) -} - -// SecretVersion is the Schema for the SecretVersions API. Provides a resource to manage AWS Secrets Manager secret version including its secret value -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SecretVersion: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SecretVersionSpec @go(Spec) - status?: #SecretVersionStatus @go(Status) -} - -// SecretVersionList contains a list of SecretVersions -#SecretVersionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SecretVersion] @go(Items,[]SecretVersion) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_account_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_account_types_go_gen.cue deleted file mode 100644 index 88507d1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_account_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/securityhub/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountInitParameters: { - // Whether to automatically enable new controls when they are added to standards that are enabled. By default, this is set to true, and new controls are enabled automatically. To not automatically enable new controls, set this to false. - autoEnableControls?: null | bool @go(AutoEnableControls,*bool) - - // Updates whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards. If the value for this field is set to STANDARD_CONTROL, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards. For accounts that are part of an organization, this value can only be updated in the administrator account. - controlFindingGenerator?: null | string @go(ControlFindingGenerator,*string) - - // Whether to enable the security standards that Security Hub has designated as automatically enabled including: AWS Foundational Security Best Practices v1.0.0 and CIS AWS Foundations Benchmark v1.2.0. Defaults to true. - enableDefaultStandards?: null | bool @go(EnableDefaultStandards,*bool) -} - -#AccountObservation: { - // ARN of the SecurityHub Hub created in the account. - arn?: null | string @go(Arn,*string) - - // Whether to automatically enable new controls when they are added to standards that are enabled. By default, this is set to true, and new controls are enabled automatically. To not automatically enable new controls, set this to false. - autoEnableControls?: null | bool @go(AutoEnableControls,*bool) - - // Updates whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards. If the value for this field is set to STANDARD_CONTROL, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards. For accounts that are part of an organization, this value can only be updated in the administrator account. - controlFindingGenerator?: null | string @go(ControlFindingGenerator,*string) - - // Whether to enable the security standards that Security Hub has designated as automatically enabled including: AWS Foundational Security Best Practices v1.0.0 and CIS AWS Foundations Benchmark v1.2.0. Defaults to true. - enableDefaultStandards?: null | bool @go(EnableDefaultStandards,*bool) - - // AWS Account ID. - id?: null | string @go(ID,*string) -} - -#AccountParameters: { - // Whether to automatically enable new controls when they are added to standards that are enabled. By default, this is set to true, and new controls are enabled automatically. To not automatically enable new controls, set this to false. - // +kubebuilder:validation:Optional - autoEnableControls?: null | bool @go(AutoEnableControls,*bool) - - // Updates whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards. If the value for this field is set to STANDARD_CONTROL, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards. For accounts that are part of an organization, this value can only be updated in the administrator account. - // +kubebuilder:validation:Optional - controlFindingGenerator?: null | string @go(ControlFindingGenerator,*string) - - // Whether to enable the security standards that Security Hub has designated as automatically enabled including: AWS Foundational Security Best Practices v1.0.0 and CIS AWS Foundations Benchmark v1.2.0. Defaults to true. - // +kubebuilder:validation:Optional - enableDefaultStandards?: null | bool @go(EnableDefaultStandards,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// AccountSpec defines the desired state of Account -#AccountSpec: { - v1.#ResourceSpec - forProvider: #AccountParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccountInitParameters @go(InitProvider) -} - -// AccountStatus defines the observed state of Account. -#AccountStatus: { - v1.#ResourceStatus - atProvider?: #AccountObservation @go(AtProvider) -} - -// Account is the Schema for the Accounts API. Enables Security Hub for an AWS account. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Account: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AccountSpec @go(Spec) - status?: #AccountStatus @go(Status) -} - -// AccountList contains a list of Accounts -#AccountList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Account] @go(Items,[]Account) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_actiontarget_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_actiontarget_types_go_gen.cue deleted file mode 100644 index 4ddf11c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_actiontarget_types_go_gen.cue +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/securityhub/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionTargetInitParameters: { - // The name of the custom action target. - description?: null | string @go(Description,*string) - - // The description for the custom action target. - name?: null | string @go(Name,*string) -} - -#ActionTargetObservation: { - // Amazon Resource Name (ARN) of the Security Hub custom action target. - arn?: null | string @go(Arn,*string) - - // The name of the custom action target. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // The description for the custom action target. - name?: null | string @go(Name,*string) -} - -#ActionTargetParameters: { - // The name of the custom action target. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The description for the custom action target. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ActionTargetSpec defines the desired state of ActionTarget -#ActionTargetSpec: { - v1.#ResourceSpec - forProvider: #ActionTargetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ActionTargetInitParameters @go(InitProvider) -} - -// ActionTargetStatus defines the observed state of ActionTarget. -#ActionTargetStatus: { - v1.#ResourceStatus - atProvider?: #ActionTargetObservation @go(AtProvider) -} - -// ActionTarget is the Schema for the ActionTargets API. Creates Security Hub custom action. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ActionTarget: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.description) || (has(self.initProvider) && has(self.initProvider.description))",message="spec.forProvider.description is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ActionTargetSpec @go(Spec) - status?: #ActionTargetStatus @go(Status) -} - -// ActionTargetList contains a list of ActionTargets -#ActionTargetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ActionTarget] @go(Items,[]ActionTarget) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_findingaggregator_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_findingaggregator_types_go_gen.cue deleted file mode 100644 index 1a64704..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_findingaggregator_types_go_gen.cue +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/securityhub/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#FindingAggregatorInitParameters: { - // Indicates whether to aggregate findings from all of the available Regions or from a specified list. The options are ALL_REGIONS, ALL_REGIONS_EXCEPT_SPECIFIED or SPECIFIED_REGIONS. When ALL_REGIONS or ALL_REGIONS_EXCEPT_SPECIFIED are used, Security Hub will automatically aggregate findings from new Regions as Security Hub supports them and you opt into them. - linkingMode?: null | string @go(LinkingMode,*string) - - // List of regions to include or exclude - specifiedRegions?: [...null | string] @go(SpecifiedRegions,[]*string) -} - -#FindingAggregatorObservation: { - id?: null | string @go(ID,*string) - - // Indicates whether to aggregate findings from all of the available Regions or from a specified list. The options are ALL_REGIONS, ALL_REGIONS_EXCEPT_SPECIFIED or SPECIFIED_REGIONS. When ALL_REGIONS or ALL_REGIONS_EXCEPT_SPECIFIED are used, Security Hub will automatically aggregate findings from new Regions as Security Hub supports them and you opt into them. - linkingMode?: null | string @go(LinkingMode,*string) - - // List of regions to include or exclude - specifiedRegions?: [...null | string] @go(SpecifiedRegions,[]*string) -} - -#FindingAggregatorParameters: { - // Indicates whether to aggregate findings from all of the available Regions or from a specified list. The options are ALL_REGIONS, ALL_REGIONS_EXCEPT_SPECIFIED or SPECIFIED_REGIONS. When ALL_REGIONS or ALL_REGIONS_EXCEPT_SPECIFIED are used, Security Hub will automatically aggregate findings from new Regions as Security Hub supports them and you opt into them. - // +kubebuilder:validation:Optional - linkingMode?: null | string @go(LinkingMode,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // List of regions to include or exclude - // +kubebuilder:validation:Optional - specifiedRegions?: [...null | string] @go(SpecifiedRegions,[]*string) -} - -// FindingAggregatorSpec defines the desired state of FindingAggregator -#FindingAggregatorSpec: { - v1.#ResourceSpec - forProvider: #FindingAggregatorParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #FindingAggregatorInitParameters @go(InitProvider) -} - -// FindingAggregatorStatus defines the observed state of FindingAggregator. -#FindingAggregatorStatus: { - v1.#ResourceStatus - atProvider?: #FindingAggregatorObservation @go(AtProvider) -} - -// FindingAggregator is the Schema for the FindingAggregators API. Manages a Security Hub finding aggregator -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#FindingAggregator: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.linkingMode) || (has(self.initProvider) && has(self.initProvider.linkingMode))",message="spec.forProvider.linkingMode is a required parameter" - spec: #FindingAggregatorSpec @go(Spec) - status?: #FindingAggregatorStatus @go(Status) -} - -// FindingAggregatorList contains a list of FindingAggregators -#FindingAggregatorList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#FindingAggregator] @go(Items,[]FindingAggregator) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index daa3f4a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/securityhub/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=securityhub.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "securityhub.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_insight_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_insight_types_go_gen.cue deleted file mode 100644 index 3a61bcb..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_insight_types_go_gen.cue +++ /dev/null @@ -1,3726 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/securityhub/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AwsAccountIDInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#AwsAccountIDObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#AwsAccountIDParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#CompanyNameInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#CompanyNameObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#CompanyNameParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ComplianceStatusInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ComplianceStatusObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ComplianceStatusParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ConfidenceInitParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#ConfidenceObservation: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#ConfidenceParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - lte?: null | string @go(Lte,*string) -} - -#CreatedAtInitParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#DateRangeInitParameters] @go(DateRange,[]DateRangeInitParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#CreatedAtObservation: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#DateRangeObservation] @go(DateRange,[]DateRangeObservation) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#CreatedAtParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - // +kubebuilder:validation:Optional - dateRange?: [...#DateRangeParameters] @go(DateRange,[]DateRangeParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - // +kubebuilder:validation:Optional - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - // +kubebuilder:validation:Optional - start?: null | string @go(Start,*string) -} - -#CriticalityInitParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#CriticalityObservation: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#CriticalityParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - lte?: null | string @go(Lte,*string) -} - -#DateRangeInitParameters: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#DateRangeObservation: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#DateRangeParameters: { - // A date range unit for the date filter. Valid values: DAYS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#DescriptionInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#DescriptionObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#DescriptionParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#FiltersInitParameters: { - // AWS account ID that a finding is generated in. See String_Filter below for more details. - awsAccountId?: [...#AwsAccountIDInitParameters] @go(AwsAccountID,[]AwsAccountIDInitParameters) - - // The name of the findings provider (company) that owns the solution (product) that generates findings. See String_Filter below for more details. - companyName?: [...#CompanyNameInitParameters] @go(CompanyName,[]CompanyNameInitParameters) - - // Exclusive to findings that are generated as the result of a check run against a specific rule in a supported standard, such as CIS AWS Foundations. Contains security standard-related finding details. See String Filter below for more details. - complianceStatus?: [...#ComplianceStatusInitParameters] @go(ComplianceStatus,[]ComplianceStatusInitParameters) - - // A finding's confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify. Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means 100 percent confidence. See Number Filter below for more details. - confidence?: [...#ConfidenceInitParameters] @go(Confidence,[]ConfidenceInitParameters) - - // An ISO8601-formatted timestamp that indicates when the security-findings provider captured the potential security issue that a finding captured. See Date Filter below for more details. - createdAt?: [...#CreatedAtInitParameters] @go(CreatedAt,[]CreatedAtInitParameters) - - // The level of importance assigned to the resources associated with the finding. A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources. See Number Filter below for more details. - criticality?: [...#CriticalityInitParameters] @go(Criticality,[]CriticalityInitParameters) - - // A finding's description. See String Filter below for more details. - description?: [...#DescriptionInitParameters] @go(Description,[]DescriptionInitParameters) - - // The finding provider value for the finding confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify. Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means 100 percent confidence. See Number Filter below for more details. - findingProviderFieldsConfidence?: [...#FindingProviderFieldsConfidenceInitParameters] @go(FindingProviderFieldsConfidence,[]FindingProviderFieldsConfidenceInitParameters) - - // The finding provider value for the level of importance assigned to the resources associated with the findings. A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources. See Number Filter below for more details. - findingProviderFieldsCriticality?: [...#FindingProviderFieldsCriticalityInitParameters] @go(FindingProviderFieldsCriticality,[]FindingProviderFieldsCriticalityInitParameters) - - // The finding identifier of a related finding that is identified by the finding provider. See String Filter below for more details. - findingProviderFieldsRelatedFindingsId?: [...#FindingProviderFieldsRelatedFindingsIDInitParameters] @go(FindingProviderFieldsRelatedFindingsID,[]FindingProviderFieldsRelatedFindingsIDInitParameters) - - // The ARN of the solution that generated a related finding that is identified by the finding provider. See String Filter below for more details. - findingProviderFieldsRelatedFindingsProductArn?: [...#FindingProviderFieldsRelatedFindingsProductArnInitParameters] @go(FindingProviderFieldsRelatedFindingsProductArn,[]FindingProviderFieldsRelatedFindingsProductArnInitParameters) - - // The finding provider value for the severity label. See String Filter below for more details. - findingProviderFieldsSeverityLabel?: [...#FindingProviderFieldsSeverityLabelInitParameters] @go(FindingProviderFieldsSeverityLabel,[]FindingProviderFieldsSeverityLabelInitParameters) - - // The finding provider's original value for the severity. See String Filter below for more details. - findingProviderFieldsSeverityOriginal?: [...#FindingProviderFieldsSeverityOriginalInitParameters] @go(FindingProviderFieldsSeverityOriginal,[]FindingProviderFieldsSeverityOriginalInitParameters) - - // One or more finding types that the finding provider assigned to the finding. Uses the format of namespace/category/classifier that classify a finding. Valid namespace values include: Software and Configuration Checks, TTPs, Effects, Unusual Behaviors, and Sensitive Data Identifications. See String Filter below for more details. - findingProviderFieldsTypes?: [...#FindingProviderFieldsTypesInitParameters] @go(FindingProviderFieldsTypes,[]FindingProviderFieldsTypesInitParameters) - - // An ISO8601-formatted timestamp that indicates when the security-findings provider first observed the potential security issue that a finding captured. See Date Filter below for more details. - firstObservedAt?: [...#FirstObservedAtInitParameters] @go(FirstObservedAt,[]FirstObservedAtInitParameters) - - // The identifier for the solution-specific component (a discrete unit of logic) that generated a finding. See String Filter below for more details. - generatorId?: [...#GeneratorIDInitParameters] @go(GeneratorID,[]GeneratorIDInitParameters) - - // The security findings provider-specific identifier for a finding. See String Filter below for more details. - id?: [...#IDInitParameters] @go(ID,[]IDInitParameters) - - // A keyword for a finding. See Keyword Filter below for more details. - keyword?: [...#KeywordInitParameters] @go(Keyword,[]KeywordInitParameters) - - // An ISO8601-formatted timestamp that indicates when the security-findings provider most recently observed the potential security issue that a finding captured. See Date Filter below for more details. - lastObservedAt?: [...#LastObservedAtInitParameters] @go(LastObservedAt,[]LastObservedAtInitParameters) - - // The name of the malware that was observed. See String Filter below for more details. - malwareName?: [...#MalwareNameInitParameters] @go(MalwareName,[]MalwareNameInitParameters) - - // The filesystem path of the malware that was observed. See String Filter below for more details. - malwarePath?: [...#MalwarePathInitParameters] @go(MalwarePath,[]MalwarePathInitParameters) - - // The state of the malware that was observed. See String Filter below for more details. - malwareState?: [...#MalwareStateInitParameters] @go(MalwareState,[]MalwareStateInitParameters) - - // The type of the malware that was observed. See String Filter below for more details. - malwareType?: [...#MalwareTypeInitParameters] @go(MalwareType,[]MalwareTypeInitParameters) - - // The destination domain of network-related information about a finding. See String Filter below for more details. - networkDestinationDomain?: [...#NetworkDestinationDomainInitParameters] @go(NetworkDestinationDomain,[]NetworkDestinationDomainInitParameters) - - // The destination IPv4 address of network-related information about a finding. See Ip Filter below for more details. - networkDestinationIpv4?: [...#NetworkDestinationIPv4InitParameters] @go(NetworkDestinationIPv4,[]NetworkDestinationIPv4InitParameters) - - // The destination IPv6 address of network-related information about a finding. See Ip Filter below for more details. - networkDestinationIpv6?: [...#NetworkDestinationIPv6InitParameters] @go(NetworkDestinationIPv6,[]NetworkDestinationIPv6InitParameters) - - // The destination port of network-related information about a finding. See Number Filter below for more details. - networkDestinationPort?: [...#NetworkDestinationPortInitParameters] @go(NetworkDestinationPort,[]NetworkDestinationPortInitParameters) - - // Indicates the direction of network traffic associated with a finding. See String Filter below for more details. - networkDirection?: [...#NetworkDirectionInitParameters] @go(NetworkDirection,[]NetworkDirectionInitParameters) - - // The protocol of network-related information about a finding. See String Filter below for more details. - networkProtocol?: [...#NetworkProtocolInitParameters] @go(NetworkProtocol,[]NetworkProtocolInitParameters) - - // The source domain of network-related information about a finding. See String Filter below for more details. - networkSourceDomain?: [...#NetworkSourceDomainInitParameters] @go(NetworkSourceDomain,[]NetworkSourceDomainInitParameters) - - // The source IPv4 address of network-related information about a finding. See Ip Filter below for more details. - networkSourceIpv4?: [...#NetworkSourceIPv4InitParameters] @go(NetworkSourceIPv4,[]NetworkSourceIPv4InitParameters) - - // The source IPv6 address of network-related information about a finding. See Ip Filter below for more details. - networkSourceIpv6?: [...#NetworkSourceIPv6InitParameters] @go(NetworkSourceIPv6,[]NetworkSourceIPv6InitParameters) - - // The source media access control (MAC) address of network-related information about a finding. See String Filter below for more details. - networkSourceMac?: [...#NetworkSourceMacInitParameters] @go(NetworkSourceMac,[]NetworkSourceMacInitParameters) - - // The source port of network-related information about a finding. See Number Filter below for more details. - networkSourcePort?: [...#NetworkSourcePortInitParameters] @go(NetworkSourcePort,[]NetworkSourcePortInitParameters) - - // The text of a note. See String Filter below for more details. - noteText?: [...#NoteTextInitParameters] @go(NoteText,[]NoteTextInitParameters) - - // The timestamp of when the note was updated. See Date Filter below for more details. - noteUpdatedAt?: [...#NoteUpdatedAtInitParameters] @go(NoteUpdatedAt,[]NoteUpdatedAtInitParameters) - - // The principal that created a note. See String Filter below for more details. - noteUpdatedBy?: [...#NoteUpdatedByInitParameters] @go(NoteUpdatedBy,[]NoteUpdatedByInitParameters) - - // The date/time that the process was launched. See Date Filter below for more details. - processLaunchedAt?: [...#ProcessLaunchedAtInitParameters] @go(ProcessLaunchedAt,[]ProcessLaunchedAtInitParameters) - - // The name of the process. See String Filter below for more details. - processName?: [...#ProcessNameInitParameters] @go(ProcessName,[]ProcessNameInitParameters) - - // The parent process ID. See Number Filter below for more details. - processParentPid?: [...#ProcessParentPidInitParameters] @go(ProcessParentPid,[]ProcessParentPidInitParameters) - - // The path to the process executable. See String Filter below for more details. - processPath?: [...#ProcessPathInitParameters] @go(ProcessPath,[]ProcessPathInitParameters) - - // The process ID. See Number Filter below for more details. - processPid?: [...#ProcessPidInitParameters] @go(ProcessPid,[]ProcessPidInitParameters) - - // The date/time that the process was terminated. See Date Filter below for more details. - processTerminatedAt?: [...#ProcessTerminatedAtInitParameters] @go(ProcessTerminatedAt,[]ProcessTerminatedAtInitParameters) - - // The ARN generated by Security Hub that uniquely identifies a third-party company (security findings provider) after this provider's product (solution that generates findings) is registered with Security Hub. See String Filter below for more details. - productArn?: [...#ProductArnInitParameters] @go(ProductArn,[]ProductArnInitParameters) - - // A data type where security-findings providers can include additional solution-specific details that aren't part of the defined AwsSecurityFinding format. See Map Filter below for more details. - productFields?: [...#ProductFieldsInitParameters] @go(ProductFields,[]ProductFieldsInitParameters) - - // The name of the solution (product) that generates findings. See String Filter below for more details. - productName?: [...#ProductNameInitParameters] @go(ProductName,[]ProductNameInitParameters) - - // The recommendation of what to do about the issue described in a finding. See String Filter below for more details. - recommendationText?: [...#RecommendationTextInitParameters] @go(RecommendationText,[]RecommendationTextInitParameters) - - // The updated record state for the finding. See String Filter below for more details. - recordState?: [...#RecordStateInitParameters] @go(RecordState,[]RecordStateInitParameters) - - // The solution-generated identifier for a related finding. See String Filter below for more details. - relatedFindingsId?: [...#RelatedFindingsIDInitParameters] @go(RelatedFindingsID,[]RelatedFindingsIDInitParameters) - - // The ARN of the solution that generated a related finding. See String Filter below for more details. - relatedFindingsProductArn?: [...#RelatedFindingsProductArnInitParameters] @go(RelatedFindingsProductArn,[]RelatedFindingsProductArnInitParameters) - - // The IAM profile ARN of the instance. See String Filter below for more details. - resourceAwsEc2InstanceIamInstanceProfileArn?: [...#ResourceAwsEC2InstanceIAMInstanceProfileArnInitParameters] @go(ResourceAwsEC2InstanceIAMInstanceProfileArn,[]ResourceAwsEC2InstanceIAMInstanceProfileArnInitParameters) - - // The IPv4 addresses associated with the instance. See Ip Filter below for more details. - resourceAwsEc2InstanceIpv4Addresses?: [...#ResourceAwsEC2InstanceIPv4AddressesInitParameters] @go(ResourceAwsEC2InstanceIPv4Addresses,[]ResourceAwsEC2InstanceIPv4AddressesInitParameters) - - // The IPv6 addresses associated with the instance. See Ip Filter below for more details. - resourceAwsEc2InstanceIpv6Addresses?: [...#ResourceAwsEC2InstanceIPv6AddressesInitParameters] @go(ResourceAwsEC2InstanceIPv6Addresses,[]ResourceAwsEC2InstanceIPv6AddressesInitParameters) - - // The Amazon Machine Image (AMI) ID of the instance. See String Filter below for more details. - resourceAwsEc2InstanceImageId?: [...#ResourceAwsEC2InstanceImageIDInitParameters] @go(ResourceAwsEC2InstanceImageID,[]ResourceAwsEC2InstanceImageIDInitParameters) - - // The key name associated with the instance. See String Filter below for more details. - resourceAwsEc2InstanceKeyName?: [...#ResourceAwsEC2InstanceKeyNameInitParameters] @go(ResourceAwsEC2InstanceKeyName,[]ResourceAwsEC2InstanceKeyNameInitParameters) - - // The date and time the instance was launched. See Date Filter below for more details. - resourceAwsEc2InstanceLaunchedAt?: [...#ResourceAwsEC2InstanceLaunchedAtInitParameters] @go(ResourceAwsEC2InstanceLaunchedAt,[]ResourceAwsEC2InstanceLaunchedAtInitParameters) - - // The identifier of the subnet that the instance was launched in. See String Filter below for more details. - resourceAwsEc2InstanceSubnetId?: [...#ResourceAwsEC2InstanceSubnetIDInitParameters] @go(ResourceAwsEC2InstanceSubnetID,[]ResourceAwsEC2InstanceSubnetIDInitParameters) - - // The instance type of the instance. See String Filter below for more details. - resourceAwsEc2InstanceType?: [...#ResourceAwsEC2InstanceTypeInitParameters] @go(ResourceAwsEC2InstanceType,[]ResourceAwsEC2InstanceTypeInitParameters) - - // The identifier of the VPC that the instance was launched in. See String Filter below for more details. - resourceAwsEc2InstanceVpcId?: [...#ResourceAwsEC2InstanceVPCIDInitParameters] @go(ResourceAwsEC2InstanceVPCID,[]ResourceAwsEC2InstanceVPCIDInitParameters) - - // The creation date/time of the IAM access key related to a finding. See Date Filter below for more details. - resourceAwsIamAccessKeyCreatedAt?: [...#ResourceAwsIAMAccessKeyCreatedAtInitParameters] @go(ResourceAwsIAMAccessKeyCreatedAt,[]ResourceAwsIAMAccessKeyCreatedAtInitParameters) - - // The status of the IAM access key related to a finding. See String Filter below for more details. - resourceAwsIamAccessKeyStatus?: [...#ResourceAwsIAMAccessKeyStatusInitParameters] @go(ResourceAwsIAMAccessKeyStatus,[]ResourceAwsIAMAccessKeyStatusInitParameters) - - // The user associated with the IAM access key related to a finding. See String Filter below for more details. - resourceAwsIamAccessKeyUserName?: [...#ResourceAwsIAMAccessKeyUserNameInitParameters] @go(ResourceAwsIAMAccessKeyUserName,[]ResourceAwsIAMAccessKeyUserNameInitParameters) - - // The canonical user ID of the owner of the S3 bucket. See String Filter below for more details. - resourceAwsS3BucketOwnerId?: [...#ResourceAwsS3BucketOwnerIDInitParameters] @go(ResourceAwsS3BucketOwnerID,[]ResourceAwsS3BucketOwnerIDInitParameters) - - // The display name of the owner of the S3 bucket. See String Filter below for more details. - resourceAwsS3BucketOwnerName?: [...#ResourceAwsS3BucketOwnerNameInitParameters] @go(ResourceAwsS3BucketOwnerName,[]ResourceAwsS3BucketOwnerNameInitParameters) - - // The identifier of the image related to a finding. See String Filter below for more details. - resourceContainerImageId?: [...#ResourceContainerImageIDInitParameters] @go(ResourceContainerImageID,[]ResourceContainerImageIDInitParameters) - - // The name of the image related to a finding. See String Filter below for more details. - resourceContainerImageName?: [...#ResourceContainerImageNameInitParameters] @go(ResourceContainerImageName,[]ResourceContainerImageNameInitParameters) - - // The date/time that the container was started. See Date Filter below for more details. - resourceContainerLaunchedAt?: [...#ResourceContainerLaunchedAtInitParameters] @go(ResourceContainerLaunchedAt,[]ResourceContainerLaunchedAtInitParameters) - - // The name of the container related to a finding. See String Filter below for more details. - resourceContainerName?: [...#ResourceContainerNameInitParameters] @go(ResourceContainerName,[]ResourceContainerNameInitParameters) - - // The details of a resource that doesn't have a specific subfield for the resource type defined. See Map Filter below for more details. - resourceDetailsOther?: [...#ResourceDetailsOtherInitParameters] @go(ResourceDetailsOther,[]ResourceDetailsOtherInitParameters) - - // The canonical identifier for the given resource type. See String Filter below for more details. - resourceId?: [...#ResourceIDInitParameters] @go(ResourceID,[]ResourceIDInitParameters) - - // The canonical AWS partition name that the Region is assigned to. See String Filter below for more details. - resourcePartition?: [...#ResourcePartitionInitParameters] @go(ResourcePartition,[]ResourcePartitionInitParameters) - - // The canonical AWS external Region name where this resource is located. See String Filter below for more details. - resourceRegion?: [...#ResourceRegionInitParameters] @go(ResourceRegion,[]ResourceRegionInitParameters) - - // A list of AWS tags associated with a resource at the time the finding was processed. See Map Filter below for more details. - resourceTags?: [...#ResourceTagsInitParameters] @go(ResourceTags,[]ResourceTagsInitParameters) - - // Specifies the type of the resource that details are provided for. See String Filter below for more details. - resourceType?: [...#ResourceTypeInitParameters] @go(ResourceType,[]ResourceTypeInitParameters) - - // The label of a finding's severity. See String Filter below for more details. - severityLabel?: [...#SeverityLabelInitParameters] @go(SeverityLabel,[]SeverityLabelInitParameters) - - // A URL that links to a page about the current finding in the security-findings provider's solution. See String Filter below for more details. - sourceUrl?: [...#SourceURLInitParameters] @go(SourceURL,[]SourceURLInitParameters) - - // The category of a threat intelligence indicator. See String Filter below for more details. - threatIntelIndicatorCategory?: [...#ThreatIntelIndicatorCategoryInitParameters] @go(ThreatIntelIndicatorCategory,[]ThreatIntelIndicatorCategoryInitParameters) - - // The date/time of the last observation of a threat intelligence indicator. See Date Filter below for more details. - threatIntelIndicatorLastObservedAt?: [...#ThreatIntelIndicatorLastObservedAtInitParameters] @go(ThreatIntelIndicatorLastObservedAt,[]ThreatIntelIndicatorLastObservedAtInitParameters) - - // The source of the threat intelligence. See String Filter below for more details. - threatIntelIndicatorSource?: [...#ThreatIntelIndicatorSourceInitParameters] @go(ThreatIntelIndicatorSource,[]ThreatIntelIndicatorSourceInitParameters) - - // The URL for more details from the source of the threat intelligence. See String Filter below for more details. - threatIntelIndicatorSourceUrl?: [...#ThreatIntelIndicatorSourceURLInitParameters] @go(ThreatIntelIndicatorSourceURL,[]ThreatIntelIndicatorSourceURLInitParameters) - - // The type of a threat intelligence indicator. See String Filter below for more details. - threatIntelIndicatorType?: [...#ThreatIntelIndicatorTypeInitParameters] @go(ThreatIntelIndicatorType,[]ThreatIntelIndicatorTypeInitParameters) - - // The value of a threat intelligence indicator. See String Filter below for more details. - threatIntelIndicatorValue?: [...#ThreatIntelIndicatorValueInitParameters] @go(ThreatIntelIndicatorValue,[]ThreatIntelIndicatorValueInitParameters) - - // A finding's title. See String Filter below for more details. - title?: [...#TitleInitParameters] @go(Title,[]TitleInitParameters) - - // A finding type in the format of namespace/category/classifier that classifies a finding. See String Filter below for more details. - type?: [...#TypeInitParameters] @go(Type,[]TypeInitParameters) - - // An ISO8601-formatted timestamp that indicates when the security-findings provider last updated the finding record. See Date Filter below for more details. - updatedAt?: [...#UpdatedAtInitParameters] @go(UpdatedAt,[]UpdatedAtInitParameters) - - // A list of name/value string pairs associated with the finding. These are custom, user-defined fields added to a finding. See Map Filter below for more details. - userDefinedValues?: [...#UserDefinedValuesInitParameters] @go(UserDefinedValues,[]UserDefinedValuesInitParameters) - - // The veracity of a finding. See String Filter below for more details. - verificationState?: [...#VerificationStateInitParameters] @go(VerificationState,[]VerificationStateInitParameters) - - // The status of the investigation into a finding. See Workflow Status Filter below for more details. - workflowStatus?: [...#WorkflowStatusInitParameters] @go(WorkflowStatus,[]WorkflowStatusInitParameters) -} - -#FiltersObservation: { - // AWS account ID that a finding is generated in. See String_Filter below for more details. - awsAccountId?: [...#AwsAccountIDObservation] @go(AwsAccountID,[]AwsAccountIDObservation) - - // The name of the findings provider (company) that owns the solution (product) that generates findings. See String_Filter below for more details. - companyName?: [...#CompanyNameObservation] @go(CompanyName,[]CompanyNameObservation) - - // Exclusive to findings that are generated as the result of a check run against a specific rule in a supported standard, such as CIS AWS Foundations. Contains security standard-related finding details. See String Filter below for more details. - complianceStatus?: [...#ComplianceStatusObservation] @go(ComplianceStatus,[]ComplianceStatusObservation) - - // A finding's confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify. Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means 100 percent confidence. See Number Filter below for more details. - confidence?: [...#ConfidenceObservation] @go(Confidence,[]ConfidenceObservation) - - // An ISO8601-formatted timestamp that indicates when the security-findings provider captured the potential security issue that a finding captured. See Date Filter below for more details. - createdAt?: [...#CreatedAtObservation] @go(CreatedAt,[]CreatedAtObservation) - - // The level of importance assigned to the resources associated with the finding. A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources. See Number Filter below for more details. - criticality?: [...#CriticalityObservation] @go(Criticality,[]CriticalityObservation) - - // A finding's description. See String Filter below for more details. - description?: [...#DescriptionObservation] @go(Description,[]DescriptionObservation) - - // The finding provider value for the finding confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify. Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means 100 percent confidence. See Number Filter below for more details. - findingProviderFieldsConfidence?: [...#FindingProviderFieldsConfidenceObservation] @go(FindingProviderFieldsConfidence,[]FindingProviderFieldsConfidenceObservation) - - // The finding provider value for the level of importance assigned to the resources associated with the findings. A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources. See Number Filter below for more details. - findingProviderFieldsCriticality?: [...#FindingProviderFieldsCriticalityObservation] @go(FindingProviderFieldsCriticality,[]FindingProviderFieldsCriticalityObservation) - - // The finding identifier of a related finding that is identified by the finding provider. See String Filter below for more details. - findingProviderFieldsRelatedFindingsId?: [...#FindingProviderFieldsRelatedFindingsIDObservation] @go(FindingProviderFieldsRelatedFindingsID,[]FindingProviderFieldsRelatedFindingsIDObservation) - - // The ARN of the solution that generated a related finding that is identified by the finding provider. See String Filter below for more details. - findingProviderFieldsRelatedFindingsProductArn?: [...#FindingProviderFieldsRelatedFindingsProductArnObservation] @go(FindingProviderFieldsRelatedFindingsProductArn,[]FindingProviderFieldsRelatedFindingsProductArnObservation) - - // The finding provider value for the severity label. See String Filter below for more details. - findingProviderFieldsSeverityLabel?: [...#FindingProviderFieldsSeverityLabelObservation] @go(FindingProviderFieldsSeverityLabel,[]FindingProviderFieldsSeverityLabelObservation) - - // The finding provider's original value for the severity. See String Filter below for more details. - findingProviderFieldsSeverityOriginal?: [...#FindingProviderFieldsSeverityOriginalObservation] @go(FindingProviderFieldsSeverityOriginal,[]FindingProviderFieldsSeverityOriginalObservation) - - // One or more finding types that the finding provider assigned to the finding. Uses the format of namespace/category/classifier that classify a finding. Valid namespace values include: Software and Configuration Checks, TTPs, Effects, Unusual Behaviors, and Sensitive Data Identifications. See String Filter below for more details. - findingProviderFieldsTypes?: [...#FindingProviderFieldsTypesObservation] @go(FindingProviderFieldsTypes,[]FindingProviderFieldsTypesObservation) - - // An ISO8601-formatted timestamp that indicates when the security-findings provider first observed the potential security issue that a finding captured. See Date Filter below for more details. - firstObservedAt?: [...#FirstObservedAtObservation] @go(FirstObservedAt,[]FirstObservedAtObservation) - - // The identifier for the solution-specific component (a discrete unit of logic) that generated a finding. See String Filter below for more details. - generatorId?: [...#GeneratorIDObservation] @go(GeneratorID,[]GeneratorIDObservation) - - // The security findings provider-specific identifier for a finding. See String Filter below for more details. - id?: [...#IDObservation] @go(ID,[]IDObservation) - - // A keyword for a finding. See Keyword Filter below for more details. - keyword?: [...#KeywordObservation] @go(Keyword,[]KeywordObservation) - - // An ISO8601-formatted timestamp that indicates when the security-findings provider most recently observed the potential security issue that a finding captured. See Date Filter below for more details. - lastObservedAt?: [...#LastObservedAtObservation] @go(LastObservedAt,[]LastObservedAtObservation) - - // The name of the malware that was observed. See String Filter below for more details. - malwareName?: [...#MalwareNameObservation] @go(MalwareName,[]MalwareNameObservation) - - // The filesystem path of the malware that was observed. See String Filter below for more details. - malwarePath?: [...#MalwarePathObservation] @go(MalwarePath,[]MalwarePathObservation) - - // The state of the malware that was observed. See String Filter below for more details. - malwareState?: [...#MalwareStateObservation] @go(MalwareState,[]MalwareStateObservation) - - // The type of the malware that was observed. See String Filter below for more details. - malwareType?: [...#MalwareTypeObservation] @go(MalwareType,[]MalwareTypeObservation) - - // The destination domain of network-related information about a finding. See String Filter below for more details. - networkDestinationDomain?: [...#NetworkDestinationDomainObservation] @go(NetworkDestinationDomain,[]NetworkDestinationDomainObservation) - - // The destination IPv4 address of network-related information about a finding. See Ip Filter below for more details. - networkDestinationIpv4?: [...#NetworkDestinationIPv4Observation] @go(NetworkDestinationIPv4,[]NetworkDestinationIPv4Observation) - - // The destination IPv6 address of network-related information about a finding. See Ip Filter below for more details. - networkDestinationIpv6?: [...#NetworkDestinationIPv6Observation] @go(NetworkDestinationIPv6,[]NetworkDestinationIPv6Observation) - - // The destination port of network-related information about a finding. See Number Filter below for more details. - networkDestinationPort?: [...#NetworkDestinationPortObservation] @go(NetworkDestinationPort,[]NetworkDestinationPortObservation) - - // Indicates the direction of network traffic associated with a finding. See String Filter below for more details. - networkDirection?: [...#NetworkDirectionObservation] @go(NetworkDirection,[]NetworkDirectionObservation) - - // The protocol of network-related information about a finding. See String Filter below for more details. - networkProtocol?: [...#NetworkProtocolObservation] @go(NetworkProtocol,[]NetworkProtocolObservation) - - // The source domain of network-related information about a finding. See String Filter below for more details. - networkSourceDomain?: [...#NetworkSourceDomainObservation] @go(NetworkSourceDomain,[]NetworkSourceDomainObservation) - - // The source IPv4 address of network-related information about a finding. See Ip Filter below for more details. - networkSourceIpv4?: [...#NetworkSourceIPv4Observation] @go(NetworkSourceIPv4,[]NetworkSourceIPv4Observation) - - // The source IPv6 address of network-related information about a finding. See Ip Filter below for more details. - networkSourceIpv6?: [...#NetworkSourceIPv6Observation] @go(NetworkSourceIPv6,[]NetworkSourceIPv6Observation) - - // The source media access control (MAC) address of network-related information about a finding. See String Filter below for more details. - networkSourceMac?: [...#NetworkSourceMacObservation] @go(NetworkSourceMac,[]NetworkSourceMacObservation) - - // The source port of network-related information about a finding. See Number Filter below for more details. - networkSourcePort?: [...#NetworkSourcePortObservation] @go(NetworkSourcePort,[]NetworkSourcePortObservation) - - // The text of a note. See String Filter below for more details. - noteText?: [...#NoteTextObservation] @go(NoteText,[]NoteTextObservation) - - // The timestamp of when the note was updated. See Date Filter below for more details. - noteUpdatedAt?: [...#NoteUpdatedAtObservation] @go(NoteUpdatedAt,[]NoteUpdatedAtObservation) - - // The principal that created a note. See String Filter below for more details. - noteUpdatedBy?: [...#NoteUpdatedByObservation] @go(NoteUpdatedBy,[]NoteUpdatedByObservation) - - // The date/time that the process was launched. See Date Filter below for more details. - processLaunchedAt?: [...#ProcessLaunchedAtObservation] @go(ProcessLaunchedAt,[]ProcessLaunchedAtObservation) - - // The name of the process. See String Filter below for more details. - processName?: [...#ProcessNameObservation] @go(ProcessName,[]ProcessNameObservation) - - // The parent process ID. See Number Filter below for more details. - processParentPid?: [...#ProcessParentPidObservation] @go(ProcessParentPid,[]ProcessParentPidObservation) - - // The path to the process executable. See String Filter below for more details. - processPath?: [...#ProcessPathObservation] @go(ProcessPath,[]ProcessPathObservation) - - // The process ID. See Number Filter below for more details. - processPid?: [...#ProcessPidObservation] @go(ProcessPid,[]ProcessPidObservation) - - // The date/time that the process was terminated. See Date Filter below for more details. - processTerminatedAt?: [...#ProcessTerminatedAtObservation] @go(ProcessTerminatedAt,[]ProcessTerminatedAtObservation) - - // The ARN generated by Security Hub that uniquely identifies a third-party company (security findings provider) after this provider's product (solution that generates findings) is registered with Security Hub. See String Filter below for more details. - productArn?: [...#ProductArnObservation] @go(ProductArn,[]ProductArnObservation) - - // A data type where security-findings providers can include additional solution-specific details that aren't part of the defined AwsSecurityFinding format. See Map Filter below for more details. - productFields?: [...#ProductFieldsObservation] @go(ProductFields,[]ProductFieldsObservation) - - // The name of the solution (product) that generates findings. See String Filter below for more details. - productName?: [...#ProductNameObservation] @go(ProductName,[]ProductNameObservation) - - // The recommendation of what to do about the issue described in a finding. See String Filter below for more details. - recommendationText?: [...#RecommendationTextObservation] @go(RecommendationText,[]RecommendationTextObservation) - - // The updated record state for the finding. See String Filter below for more details. - recordState?: [...#RecordStateObservation] @go(RecordState,[]RecordStateObservation) - - // The solution-generated identifier for a related finding. See String Filter below for more details. - relatedFindingsId?: [...#RelatedFindingsIDObservation] @go(RelatedFindingsID,[]RelatedFindingsIDObservation) - - // The ARN of the solution that generated a related finding. See String Filter below for more details. - relatedFindingsProductArn?: [...#RelatedFindingsProductArnObservation] @go(RelatedFindingsProductArn,[]RelatedFindingsProductArnObservation) - - // The IAM profile ARN of the instance. See String Filter below for more details. - resourceAwsEc2InstanceIamInstanceProfileArn?: [...#ResourceAwsEC2InstanceIAMInstanceProfileArnObservation] @go(ResourceAwsEC2InstanceIAMInstanceProfileArn,[]ResourceAwsEC2InstanceIAMInstanceProfileArnObservation) - - // The IPv4 addresses associated with the instance. See Ip Filter below for more details. - resourceAwsEc2InstanceIpv4Addresses?: [...#ResourceAwsEC2InstanceIPv4AddressesObservation] @go(ResourceAwsEC2InstanceIPv4Addresses,[]ResourceAwsEC2InstanceIPv4AddressesObservation) - - // The IPv6 addresses associated with the instance. See Ip Filter below for more details. - resourceAwsEc2InstanceIpv6Addresses?: [...#ResourceAwsEC2InstanceIPv6AddressesObservation] @go(ResourceAwsEC2InstanceIPv6Addresses,[]ResourceAwsEC2InstanceIPv6AddressesObservation) - - // The Amazon Machine Image (AMI) ID of the instance. See String Filter below for more details. - resourceAwsEc2InstanceImageId?: [...#ResourceAwsEC2InstanceImageIDObservation] @go(ResourceAwsEC2InstanceImageID,[]ResourceAwsEC2InstanceImageIDObservation) - - // The key name associated with the instance. See String Filter below for more details. - resourceAwsEc2InstanceKeyName?: [...#ResourceAwsEC2InstanceKeyNameObservation] @go(ResourceAwsEC2InstanceKeyName,[]ResourceAwsEC2InstanceKeyNameObservation) - - // The date and time the instance was launched. See Date Filter below for more details. - resourceAwsEc2InstanceLaunchedAt?: [...#ResourceAwsEC2InstanceLaunchedAtObservation] @go(ResourceAwsEC2InstanceLaunchedAt,[]ResourceAwsEC2InstanceLaunchedAtObservation) - - // The identifier of the subnet that the instance was launched in. See String Filter below for more details. - resourceAwsEc2InstanceSubnetId?: [...#ResourceAwsEC2InstanceSubnetIDObservation] @go(ResourceAwsEC2InstanceSubnetID,[]ResourceAwsEC2InstanceSubnetIDObservation) - - // The instance type of the instance. See String Filter below for more details. - resourceAwsEc2InstanceType?: [...#ResourceAwsEC2InstanceTypeObservation] @go(ResourceAwsEC2InstanceType,[]ResourceAwsEC2InstanceTypeObservation) - - // The identifier of the VPC that the instance was launched in. See String Filter below for more details. - resourceAwsEc2InstanceVpcId?: [...#ResourceAwsEC2InstanceVPCIDObservation] @go(ResourceAwsEC2InstanceVPCID,[]ResourceAwsEC2InstanceVPCIDObservation) - - // The creation date/time of the IAM access key related to a finding. See Date Filter below for more details. - resourceAwsIamAccessKeyCreatedAt?: [...#ResourceAwsIAMAccessKeyCreatedAtObservation] @go(ResourceAwsIAMAccessKeyCreatedAt,[]ResourceAwsIAMAccessKeyCreatedAtObservation) - - // The status of the IAM access key related to a finding. See String Filter below for more details. - resourceAwsIamAccessKeyStatus?: [...#ResourceAwsIAMAccessKeyStatusObservation] @go(ResourceAwsIAMAccessKeyStatus,[]ResourceAwsIAMAccessKeyStatusObservation) - - // The user associated with the IAM access key related to a finding. See String Filter below for more details. - resourceAwsIamAccessKeyUserName?: [...#ResourceAwsIAMAccessKeyUserNameObservation] @go(ResourceAwsIAMAccessKeyUserName,[]ResourceAwsIAMAccessKeyUserNameObservation) - - // The canonical user ID of the owner of the S3 bucket. See String Filter below for more details. - resourceAwsS3BucketOwnerId?: [...#ResourceAwsS3BucketOwnerIDObservation] @go(ResourceAwsS3BucketOwnerID,[]ResourceAwsS3BucketOwnerIDObservation) - - // The display name of the owner of the S3 bucket. See String Filter below for more details. - resourceAwsS3BucketOwnerName?: [...#ResourceAwsS3BucketOwnerNameObservation] @go(ResourceAwsS3BucketOwnerName,[]ResourceAwsS3BucketOwnerNameObservation) - - // The identifier of the image related to a finding. See String Filter below for more details. - resourceContainerImageId?: [...#ResourceContainerImageIDObservation] @go(ResourceContainerImageID,[]ResourceContainerImageIDObservation) - - // The name of the image related to a finding. See String Filter below for more details. - resourceContainerImageName?: [...#ResourceContainerImageNameObservation] @go(ResourceContainerImageName,[]ResourceContainerImageNameObservation) - - // The date/time that the container was started. See Date Filter below for more details. - resourceContainerLaunchedAt?: [...#ResourceContainerLaunchedAtObservation] @go(ResourceContainerLaunchedAt,[]ResourceContainerLaunchedAtObservation) - - // The name of the container related to a finding. See String Filter below for more details. - resourceContainerName?: [...#ResourceContainerNameObservation] @go(ResourceContainerName,[]ResourceContainerNameObservation) - - // The details of a resource that doesn't have a specific subfield for the resource type defined. See Map Filter below for more details. - resourceDetailsOther?: [...#ResourceDetailsOtherObservation] @go(ResourceDetailsOther,[]ResourceDetailsOtherObservation) - - // The canonical identifier for the given resource type. See String Filter below for more details. - resourceId?: [...#ResourceIDObservation] @go(ResourceID,[]ResourceIDObservation) - - // The canonical AWS partition name that the Region is assigned to. See String Filter below for more details. - resourcePartition?: [...#ResourcePartitionObservation] @go(ResourcePartition,[]ResourcePartitionObservation) - - // The canonical AWS external Region name where this resource is located. See String Filter below for more details. - resourceRegion?: [...#ResourceRegionObservation] @go(ResourceRegion,[]ResourceRegionObservation) - - // A list of AWS tags associated with a resource at the time the finding was processed. See Map Filter below for more details. - resourceTags?: [...#ResourceTagsObservation] @go(ResourceTags,[]ResourceTagsObservation) - - // Specifies the type of the resource that details are provided for. See String Filter below for more details. - resourceType?: [...#ResourceTypeObservation] @go(ResourceType,[]ResourceTypeObservation) - - // The label of a finding's severity. See String Filter below for more details. - severityLabel?: [...#SeverityLabelObservation] @go(SeverityLabel,[]SeverityLabelObservation) - - // A URL that links to a page about the current finding in the security-findings provider's solution. See String Filter below for more details. - sourceUrl?: [...#SourceURLObservation] @go(SourceURL,[]SourceURLObservation) - - // The category of a threat intelligence indicator. See String Filter below for more details. - threatIntelIndicatorCategory?: [...#ThreatIntelIndicatorCategoryObservation] @go(ThreatIntelIndicatorCategory,[]ThreatIntelIndicatorCategoryObservation) - - // The date/time of the last observation of a threat intelligence indicator. See Date Filter below for more details. - threatIntelIndicatorLastObservedAt?: [...#ThreatIntelIndicatorLastObservedAtObservation] @go(ThreatIntelIndicatorLastObservedAt,[]ThreatIntelIndicatorLastObservedAtObservation) - - // The source of the threat intelligence. See String Filter below for more details. - threatIntelIndicatorSource?: [...#ThreatIntelIndicatorSourceObservation] @go(ThreatIntelIndicatorSource,[]ThreatIntelIndicatorSourceObservation) - - // The URL for more details from the source of the threat intelligence. See String Filter below for more details. - threatIntelIndicatorSourceUrl?: [...#ThreatIntelIndicatorSourceURLObservation] @go(ThreatIntelIndicatorSourceURL,[]ThreatIntelIndicatorSourceURLObservation) - - // The type of a threat intelligence indicator. See String Filter below for more details. - threatIntelIndicatorType?: [...#ThreatIntelIndicatorTypeObservation] @go(ThreatIntelIndicatorType,[]ThreatIntelIndicatorTypeObservation) - - // The value of a threat intelligence indicator. See String Filter below for more details. - threatIntelIndicatorValue?: [...#ThreatIntelIndicatorValueObservation] @go(ThreatIntelIndicatorValue,[]ThreatIntelIndicatorValueObservation) - - // A finding's title. See String Filter below for more details. - title?: [...#TitleObservation] @go(Title,[]TitleObservation) - - // A finding type in the format of namespace/category/classifier that classifies a finding. See String Filter below for more details. - type?: [...#TypeObservation] @go(Type,[]TypeObservation) - - // An ISO8601-formatted timestamp that indicates when the security-findings provider last updated the finding record. See Date Filter below for more details. - updatedAt?: [...#UpdatedAtObservation] @go(UpdatedAt,[]UpdatedAtObservation) - - // A list of name/value string pairs associated with the finding. These are custom, user-defined fields added to a finding. See Map Filter below for more details. - userDefinedValues?: [...#UserDefinedValuesObservation] @go(UserDefinedValues,[]UserDefinedValuesObservation) - - // The veracity of a finding. See String Filter below for more details. - verificationState?: [...#VerificationStateObservation] @go(VerificationState,[]VerificationStateObservation) - - // The status of the investigation into a finding. See Workflow Status Filter below for more details. - workflowStatus?: [...#WorkflowStatusObservation] @go(WorkflowStatus,[]WorkflowStatusObservation) -} - -#FiltersParameters: { - // AWS account ID that a finding is generated in. See String_Filter below for more details. - // +kubebuilder:validation:Optional - awsAccountId?: [...#AwsAccountIDParameters] @go(AwsAccountID,[]AwsAccountIDParameters) - - // The name of the findings provider (company) that owns the solution (product) that generates findings. See String_Filter below for more details. - // +kubebuilder:validation:Optional - companyName?: [...#CompanyNameParameters] @go(CompanyName,[]CompanyNameParameters) - - // Exclusive to findings that are generated as the result of a check run against a specific rule in a supported standard, such as CIS AWS Foundations. Contains security standard-related finding details. See String Filter below for more details. - // +kubebuilder:validation:Optional - complianceStatus?: [...#ComplianceStatusParameters] @go(ComplianceStatus,[]ComplianceStatusParameters) - - // A finding's confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify. Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means 100 percent confidence. See Number Filter below for more details. - // +kubebuilder:validation:Optional - confidence?: [...#ConfidenceParameters] @go(Confidence,[]ConfidenceParameters) - - // An ISO8601-formatted timestamp that indicates when the security-findings provider captured the potential security issue that a finding captured. See Date Filter below for more details. - // +kubebuilder:validation:Optional - createdAt?: [...#CreatedAtParameters] @go(CreatedAt,[]CreatedAtParameters) - - // The level of importance assigned to the resources associated with the finding. A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources. See Number Filter below for more details. - // +kubebuilder:validation:Optional - criticality?: [...#CriticalityParameters] @go(Criticality,[]CriticalityParameters) - - // A finding's description. See String Filter below for more details. - // +kubebuilder:validation:Optional - description?: [...#DescriptionParameters] @go(Description,[]DescriptionParameters) - - // The finding provider value for the finding confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify. Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means 100 percent confidence. See Number Filter below for more details. - // +kubebuilder:validation:Optional - findingProviderFieldsConfidence?: [...#FindingProviderFieldsConfidenceParameters] @go(FindingProviderFieldsConfidence,[]FindingProviderFieldsConfidenceParameters) - - // The finding provider value for the level of importance assigned to the resources associated with the findings. A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources. See Number Filter below for more details. - // +kubebuilder:validation:Optional - findingProviderFieldsCriticality?: [...#FindingProviderFieldsCriticalityParameters] @go(FindingProviderFieldsCriticality,[]FindingProviderFieldsCriticalityParameters) - - // The finding identifier of a related finding that is identified by the finding provider. See String Filter below for more details. - // +kubebuilder:validation:Optional - findingProviderFieldsRelatedFindingsId?: [...#FindingProviderFieldsRelatedFindingsIDParameters] @go(FindingProviderFieldsRelatedFindingsID,[]FindingProviderFieldsRelatedFindingsIDParameters) - - // The ARN of the solution that generated a related finding that is identified by the finding provider. See String Filter below for more details. - // +kubebuilder:validation:Optional - findingProviderFieldsRelatedFindingsProductArn?: [...#FindingProviderFieldsRelatedFindingsProductArnParameters] @go(FindingProviderFieldsRelatedFindingsProductArn,[]FindingProviderFieldsRelatedFindingsProductArnParameters) - - // The finding provider value for the severity label. See String Filter below for more details. - // +kubebuilder:validation:Optional - findingProviderFieldsSeverityLabel?: [...#FindingProviderFieldsSeverityLabelParameters] @go(FindingProviderFieldsSeverityLabel,[]FindingProviderFieldsSeverityLabelParameters) - - // The finding provider's original value for the severity. See String Filter below for more details. - // +kubebuilder:validation:Optional - findingProviderFieldsSeverityOriginal?: [...#FindingProviderFieldsSeverityOriginalParameters] @go(FindingProviderFieldsSeverityOriginal,[]FindingProviderFieldsSeverityOriginalParameters) - - // One or more finding types that the finding provider assigned to the finding. Uses the format of namespace/category/classifier that classify a finding. Valid namespace values include: Software and Configuration Checks, TTPs, Effects, Unusual Behaviors, and Sensitive Data Identifications. See String Filter below for more details. - // +kubebuilder:validation:Optional - findingProviderFieldsTypes?: [...#FindingProviderFieldsTypesParameters] @go(FindingProviderFieldsTypes,[]FindingProviderFieldsTypesParameters) - - // An ISO8601-formatted timestamp that indicates when the security-findings provider first observed the potential security issue that a finding captured. See Date Filter below for more details. - // +kubebuilder:validation:Optional - firstObservedAt?: [...#FirstObservedAtParameters] @go(FirstObservedAt,[]FirstObservedAtParameters) - - // The identifier for the solution-specific component (a discrete unit of logic) that generated a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - generatorId?: [...#GeneratorIDParameters] @go(GeneratorID,[]GeneratorIDParameters) - - // The security findings provider-specific identifier for a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - id?: [...#IDParameters] @go(ID,[]IDParameters) - - // A keyword for a finding. See Keyword Filter below for more details. - // +kubebuilder:validation:Optional - keyword?: [...#KeywordParameters] @go(Keyword,[]KeywordParameters) - - // An ISO8601-formatted timestamp that indicates when the security-findings provider most recently observed the potential security issue that a finding captured. See Date Filter below for more details. - // +kubebuilder:validation:Optional - lastObservedAt?: [...#LastObservedAtParameters] @go(LastObservedAt,[]LastObservedAtParameters) - - // The name of the malware that was observed. See String Filter below for more details. - // +kubebuilder:validation:Optional - malwareName?: [...#MalwareNameParameters] @go(MalwareName,[]MalwareNameParameters) - - // The filesystem path of the malware that was observed. See String Filter below for more details. - // +kubebuilder:validation:Optional - malwarePath?: [...#MalwarePathParameters] @go(MalwarePath,[]MalwarePathParameters) - - // The state of the malware that was observed. See String Filter below for more details. - // +kubebuilder:validation:Optional - malwareState?: [...#MalwareStateParameters] @go(MalwareState,[]MalwareStateParameters) - - // The type of the malware that was observed. See String Filter below for more details. - // +kubebuilder:validation:Optional - malwareType?: [...#MalwareTypeParameters] @go(MalwareType,[]MalwareTypeParameters) - - // The destination domain of network-related information about a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - networkDestinationDomain?: [...#NetworkDestinationDomainParameters] @go(NetworkDestinationDomain,[]NetworkDestinationDomainParameters) - - // The destination IPv4 address of network-related information about a finding. See Ip Filter below for more details. - // +kubebuilder:validation:Optional - networkDestinationIpv4?: [...#NetworkDestinationIPv4Parameters] @go(NetworkDestinationIPv4,[]NetworkDestinationIPv4Parameters) - - // The destination IPv6 address of network-related information about a finding. See Ip Filter below for more details. - // +kubebuilder:validation:Optional - networkDestinationIpv6?: [...#NetworkDestinationIPv6Parameters] @go(NetworkDestinationIPv6,[]NetworkDestinationIPv6Parameters) - - // The destination port of network-related information about a finding. See Number Filter below for more details. - // +kubebuilder:validation:Optional - networkDestinationPort?: [...#NetworkDestinationPortParameters] @go(NetworkDestinationPort,[]NetworkDestinationPortParameters) - - // Indicates the direction of network traffic associated with a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - networkDirection?: [...#NetworkDirectionParameters] @go(NetworkDirection,[]NetworkDirectionParameters) - - // The protocol of network-related information about a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - networkProtocol?: [...#NetworkProtocolParameters] @go(NetworkProtocol,[]NetworkProtocolParameters) - - // The source domain of network-related information about a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - networkSourceDomain?: [...#NetworkSourceDomainParameters] @go(NetworkSourceDomain,[]NetworkSourceDomainParameters) - - // The source IPv4 address of network-related information about a finding. See Ip Filter below for more details. - // +kubebuilder:validation:Optional - networkSourceIpv4?: [...#NetworkSourceIPv4Parameters] @go(NetworkSourceIPv4,[]NetworkSourceIPv4Parameters) - - // The source IPv6 address of network-related information about a finding. See Ip Filter below for more details. - // +kubebuilder:validation:Optional - networkSourceIpv6?: [...#NetworkSourceIPv6Parameters] @go(NetworkSourceIPv6,[]NetworkSourceIPv6Parameters) - - // The source media access control (MAC) address of network-related information about a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - networkSourceMac?: [...#NetworkSourceMacParameters] @go(NetworkSourceMac,[]NetworkSourceMacParameters) - - // The source port of network-related information about a finding. See Number Filter below for more details. - // +kubebuilder:validation:Optional - networkSourcePort?: [...#NetworkSourcePortParameters] @go(NetworkSourcePort,[]NetworkSourcePortParameters) - - // The text of a note. See String Filter below for more details. - // +kubebuilder:validation:Optional - noteText?: [...#NoteTextParameters] @go(NoteText,[]NoteTextParameters) - - // The timestamp of when the note was updated. See Date Filter below for more details. - // +kubebuilder:validation:Optional - noteUpdatedAt?: [...#NoteUpdatedAtParameters] @go(NoteUpdatedAt,[]NoteUpdatedAtParameters) - - // The principal that created a note. See String Filter below for more details. - // +kubebuilder:validation:Optional - noteUpdatedBy?: [...#NoteUpdatedByParameters] @go(NoteUpdatedBy,[]NoteUpdatedByParameters) - - // The date/time that the process was launched. See Date Filter below for more details. - // +kubebuilder:validation:Optional - processLaunchedAt?: [...#ProcessLaunchedAtParameters] @go(ProcessLaunchedAt,[]ProcessLaunchedAtParameters) - - // The name of the process. See String Filter below for more details. - // +kubebuilder:validation:Optional - processName?: [...#ProcessNameParameters] @go(ProcessName,[]ProcessNameParameters) - - // The parent process ID. See Number Filter below for more details. - // +kubebuilder:validation:Optional - processParentPid?: [...#ProcessParentPidParameters] @go(ProcessParentPid,[]ProcessParentPidParameters) - - // The path to the process executable. See String Filter below for more details. - // +kubebuilder:validation:Optional - processPath?: [...#ProcessPathParameters] @go(ProcessPath,[]ProcessPathParameters) - - // The process ID. See Number Filter below for more details. - // +kubebuilder:validation:Optional - processPid?: [...#ProcessPidParameters] @go(ProcessPid,[]ProcessPidParameters) - - // The date/time that the process was terminated. See Date Filter below for more details. - // +kubebuilder:validation:Optional - processTerminatedAt?: [...#ProcessTerminatedAtParameters] @go(ProcessTerminatedAt,[]ProcessTerminatedAtParameters) - - // The ARN generated by Security Hub that uniquely identifies a third-party company (security findings provider) after this provider's product (solution that generates findings) is registered with Security Hub. See String Filter below for more details. - // +kubebuilder:validation:Optional - productArn?: [...#ProductArnParameters] @go(ProductArn,[]ProductArnParameters) - - // A data type where security-findings providers can include additional solution-specific details that aren't part of the defined AwsSecurityFinding format. See Map Filter below for more details. - // +kubebuilder:validation:Optional - productFields?: [...#ProductFieldsParameters] @go(ProductFields,[]ProductFieldsParameters) - - // The name of the solution (product) that generates findings. See String Filter below for more details. - // +kubebuilder:validation:Optional - productName?: [...#ProductNameParameters] @go(ProductName,[]ProductNameParameters) - - // The recommendation of what to do about the issue described in a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - recommendationText?: [...#RecommendationTextParameters] @go(RecommendationText,[]RecommendationTextParameters) - - // The updated record state for the finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - recordState?: [...#RecordStateParameters] @go(RecordState,[]RecordStateParameters) - - // The solution-generated identifier for a related finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - relatedFindingsId?: [...#RelatedFindingsIDParameters] @go(RelatedFindingsID,[]RelatedFindingsIDParameters) - - // The ARN of the solution that generated a related finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - relatedFindingsProductArn?: [...#RelatedFindingsProductArnParameters] @go(RelatedFindingsProductArn,[]RelatedFindingsProductArnParameters) - - // The IAM profile ARN of the instance. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsEc2InstanceIamInstanceProfileArn?: [...#ResourceAwsEC2InstanceIAMInstanceProfileArnParameters] @go(ResourceAwsEC2InstanceIAMInstanceProfileArn,[]ResourceAwsEC2InstanceIAMInstanceProfileArnParameters) - - // The IPv4 addresses associated with the instance. See Ip Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsEc2InstanceIpv4Addresses?: [...#ResourceAwsEC2InstanceIPv4AddressesParameters] @go(ResourceAwsEC2InstanceIPv4Addresses,[]ResourceAwsEC2InstanceIPv4AddressesParameters) - - // The IPv6 addresses associated with the instance. See Ip Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsEc2InstanceIpv6Addresses?: [...#ResourceAwsEC2InstanceIPv6AddressesParameters] @go(ResourceAwsEC2InstanceIPv6Addresses,[]ResourceAwsEC2InstanceIPv6AddressesParameters) - - // The Amazon Machine Image (AMI) ID of the instance. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsEc2InstanceImageId?: [...#ResourceAwsEC2InstanceImageIDParameters] @go(ResourceAwsEC2InstanceImageID,[]ResourceAwsEC2InstanceImageIDParameters) - - // The key name associated with the instance. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsEc2InstanceKeyName?: [...#ResourceAwsEC2InstanceKeyNameParameters] @go(ResourceAwsEC2InstanceKeyName,[]ResourceAwsEC2InstanceKeyNameParameters) - - // The date and time the instance was launched. See Date Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsEc2InstanceLaunchedAt?: [...#ResourceAwsEC2InstanceLaunchedAtParameters] @go(ResourceAwsEC2InstanceLaunchedAt,[]ResourceAwsEC2InstanceLaunchedAtParameters) - - // The identifier of the subnet that the instance was launched in. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsEc2InstanceSubnetId?: [...#ResourceAwsEC2InstanceSubnetIDParameters] @go(ResourceAwsEC2InstanceSubnetID,[]ResourceAwsEC2InstanceSubnetIDParameters) - - // The instance type of the instance. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsEc2InstanceType?: [...#ResourceAwsEC2InstanceTypeParameters] @go(ResourceAwsEC2InstanceType,[]ResourceAwsEC2InstanceTypeParameters) - - // The identifier of the VPC that the instance was launched in. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsEc2InstanceVpcId?: [...#ResourceAwsEC2InstanceVPCIDParameters] @go(ResourceAwsEC2InstanceVPCID,[]ResourceAwsEC2InstanceVPCIDParameters) - - // The creation date/time of the IAM access key related to a finding. See Date Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsIamAccessKeyCreatedAt?: [...#ResourceAwsIAMAccessKeyCreatedAtParameters] @go(ResourceAwsIAMAccessKeyCreatedAt,[]ResourceAwsIAMAccessKeyCreatedAtParameters) - - // The status of the IAM access key related to a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsIamAccessKeyStatus?: [...#ResourceAwsIAMAccessKeyStatusParameters] @go(ResourceAwsIAMAccessKeyStatus,[]ResourceAwsIAMAccessKeyStatusParameters) - - // The user associated with the IAM access key related to a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsIamAccessKeyUserName?: [...#ResourceAwsIAMAccessKeyUserNameParameters] @go(ResourceAwsIAMAccessKeyUserName,[]ResourceAwsIAMAccessKeyUserNameParameters) - - // The canonical user ID of the owner of the S3 bucket. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsS3BucketOwnerId?: [...#ResourceAwsS3BucketOwnerIDParameters] @go(ResourceAwsS3BucketOwnerID,[]ResourceAwsS3BucketOwnerIDParameters) - - // The display name of the owner of the S3 bucket. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceAwsS3BucketOwnerName?: [...#ResourceAwsS3BucketOwnerNameParameters] @go(ResourceAwsS3BucketOwnerName,[]ResourceAwsS3BucketOwnerNameParameters) - - // The identifier of the image related to a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceContainerImageId?: [...#ResourceContainerImageIDParameters] @go(ResourceContainerImageID,[]ResourceContainerImageIDParameters) - - // The name of the image related to a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceContainerImageName?: [...#ResourceContainerImageNameParameters] @go(ResourceContainerImageName,[]ResourceContainerImageNameParameters) - - // The date/time that the container was started. See Date Filter below for more details. - // +kubebuilder:validation:Optional - resourceContainerLaunchedAt?: [...#ResourceContainerLaunchedAtParameters] @go(ResourceContainerLaunchedAt,[]ResourceContainerLaunchedAtParameters) - - // The name of the container related to a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceContainerName?: [...#ResourceContainerNameParameters] @go(ResourceContainerName,[]ResourceContainerNameParameters) - - // The details of a resource that doesn't have a specific subfield for the resource type defined. See Map Filter below for more details. - // +kubebuilder:validation:Optional - resourceDetailsOther?: [...#ResourceDetailsOtherParameters] @go(ResourceDetailsOther,[]ResourceDetailsOtherParameters) - - // The canonical identifier for the given resource type. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceId?: [...#ResourceIDParameters] @go(ResourceID,[]ResourceIDParameters) - - // The canonical AWS partition name that the Region is assigned to. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourcePartition?: [...#ResourcePartitionParameters] @go(ResourcePartition,[]ResourcePartitionParameters) - - // The canonical AWS external Region name where this resource is located. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceRegion?: [...#ResourceRegionParameters] @go(ResourceRegion,[]ResourceRegionParameters) - - // A list of AWS tags associated with a resource at the time the finding was processed. See Map Filter below for more details. - // +kubebuilder:validation:Optional - resourceTags?: [...#ResourceTagsParameters] @go(ResourceTags,[]ResourceTagsParameters) - - // Specifies the type of the resource that details are provided for. See String Filter below for more details. - // +kubebuilder:validation:Optional - resourceType?: [...#ResourceTypeParameters] @go(ResourceType,[]ResourceTypeParameters) - - // The label of a finding's severity. See String Filter below for more details. - // +kubebuilder:validation:Optional - severityLabel?: [...#SeverityLabelParameters] @go(SeverityLabel,[]SeverityLabelParameters) - - // A URL that links to a page about the current finding in the security-findings provider's solution. See String Filter below for more details. - // +kubebuilder:validation:Optional - sourceUrl?: [...#SourceURLParameters] @go(SourceURL,[]SourceURLParameters) - - // The category of a threat intelligence indicator. See String Filter below for more details. - // +kubebuilder:validation:Optional - threatIntelIndicatorCategory?: [...#ThreatIntelIndicatorCategoryParameters] @go(ThreatIntelIndicatorCategory,[]ThreatIntelIndicatorCategoryParameters) - - // The date/time of the last observation of a threat intelligence indicator. See Date Filter below for more details. - // +kubebuilder:validation:Optional - threatIntelIndicatorLastObservedAt?: [...#ThreatIntelIndicatorLastObservedAtParameters] @go(ThreatIntelIndicatorLastObservedAt,[]ThreatIntelIndicatorLastObservedAtParameters) - - // The source of the threat intelligence. See String Filter below for more details. - // +kubebuilder:validation:Optional - threatIntelIndicatorSource?: [...#ThreatIntelIndicatorSourceParameters] @go(ThreatIntelIndicatorSource,[]ThreatIntelIndicatorSourceParameters) - - // The URL for more details from the source of the threat intelligence. See String Filter below for more details. - // +kubebuilder:validation:Optional - threatIntelIndicatorSourceUrl?: [...#ThreatIntelIndicatorSourceURLParameters] @go(ThreatIntelIndicatorSourceURL,[]ThreatIntelIndicatorSourceURLParameters) - - // The type of a threat intelligence indicator. See String Filter below for more details. - // +kubebuilder:validation:Optional - threatIntelIndicatorType?: [...#ThreatIntelIndicatorTypeParameters] @go(ThreatIntelIndicatorType,[]ThreatIntelIndicatorTypeParameters) - - // The value of a threat intelligence indicator. See String Filter below for more details. - // +kubebuilder:validation:Optional - threatIntelIndicatorValue?: [...#ThreatIntelIndicatorValueParameters] @go(ThreatIntelIndicatorValue,[]ThreatIntelIndicatorValueParameters) - - // A finding's title. See String Filter below for more details. - // +kubebuilder:validation:Optional - title?: [...#TitleParameters] @go(Title,[]TitleParameters) - - // A finding type in the format of namespace/category/classifier that classifies a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - type?: [...#TypeParameters] @go(Type,[]TypeParameters) - - // An ISO8601-formatted timestamp that indicates when the security-findings provider last updated the finding record. See Date Filter below for more details. - // +kubebuilder:validation:Optional - updatedAt?: [...#UpdatedAtParameters] @go(UpdatedAt,[]UpdatedAtParameters) - - // A list of name/value string pairs associated with the finding. These are custom, user-defined fields added to a finding. See Map Filter below for more details. - // +kubebuilder:validation:Optional - userDefinedValues?: [...#UserDefinedValuesParameters] @go(UserDefinedValues,[]UserDefinedValuesParameters) - - // The veracity of a finding. See String Filter below for more details. - // +kubebuilder:validation:Optional - verificationState?: [...#VerificationStateParameters] @go(VerificationState,[]VerificationStateParameters) - - // The status of the investigation into a finding. See Workflow Status Filter below for more details. - // +kubebuilder:validation:Optional - workflowStatus?: [...#WorkflowStatusParameters] @go(WorkflowStatus,[]WorkflowStatusParameters) -} - -#FindingProviderFieldsConfidenceInitParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#FindingProviderFieldsConfidenceObservation: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#FindingProviderFieldsConfidenceParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - lte?: null | string @go(Lte,*string) -} - -#FindingProviderFieldsCriticalityInitParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#FindingProviderFieldsCriticalityObservation: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#FindingProviderFieldsCriticalityParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - lte?: null | string @go(Lte,*string) -} - -#FindingProviderFieldsRelatedFindingsIDInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsRelatedFindingsIDObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsRelatedFindingsIDParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsRelatedFindingsProductArnInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsRelatedFindingsProductArnObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsRelatedFindingsProductArnParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsSeverityLabelInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsSeverityLabelObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsSeverityLabelParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsSeverityOriginalInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsSeverityOriginalObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsSeverityOriginalParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsTypesInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsTypesObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#FindingProviderFieldsTypesParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#FirstObservedAtDateRangeInitParameters: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#FirstObservedAtDateRangeObservation: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#FirstObservedAtDateRangeParameters: { - // A date range unit for the date filter. Valid values: DAYS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#FirstObservedAtInitParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#FirstObservedAtDateRangeInitParameters] @go(DateRange,[]FirstObservedAtDateRangeInitParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#FirstObservedAtObservation: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#FirstObservedAtDateRangeObservation] @go(DateRange,[]FirstObservedAtDateRangeObservation) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#FirstObservedAtParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - // +kubebuilder:validation:Optional - dateRange?: [...#FirstObservedAtDateRangeParameters] @go(DateRange,[]FirstObservedAtDateRangeParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - // +kubebuilder:validation:Optional - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - // +kubebuilder:validation:Optional - start?: null | string @go(Start,*string) -} - -#GeneratorIDInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#GeneratorIDObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#GeneratorIDParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#IDInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#IDObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#IDParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#InsightInitParameters: { - // A configuration block including one or more (up to 10 distinct) attributes used to filter the findings included in the insight. The insight only includes findings that match criteria defined in the filters. See filters below for more details. - filters?: [...#FiltersInitParameters] @go(Filters,[]FiltersInitParameters) - - // The attribute used to group the findings for the insight e.g., if an insight is grouped by ResourceId, then the insight produces a list of resource identifiers. - groupByAttribute?: null | string @go(GroupByAttribute,*string) - - // The name of the custom insight. - name?: null | string @go(Name,*string) -} - -#InsightObservation: { - // ARN of the insight. - arn?: null | string @go(Arn,*string) - - // A configuration block including one or more (up to 10 distinct) attributes used to filter the findings included in the insight. The insight only includes findings that match criteria defined in the filters. See filters below for more details. - filters?: [...#FiltersObservation] @go(Filters,[]FiltersObservation) - - // The attribute used to group the findings for the insight e.g., if an insight is grouped by ResourceId, then the insight produces a list of resource identifiers. - groupByAttribute?: null | string @go(GroupByAttribute,*string) - - // ARN of the insight. - id?: null | string @go(ID,*string) - - // The name of the custom insight. - name?: null | string @go(Name,*string) -} - -#InsightParameters: { - // A configuration block including one or more (up to 10 distinct) attributes used to filter the findings included in the insight. The insight only includes findings that match criteria defined in the filters. See filters below for more details. - // +kubebuilder:validation:Optional - filters?: [...#FiltersParameters] @go(Filters,[]FiltersParameters) - - // The attribute used to group the findings for the insight e.g., if an insight is grouped by ResourceId, then the insight produces a list of resource identifiers. - // +kubebuilder:validation:Optional - groupByAttribute?: null | string @go(GroupByAttribute,*string) - - // The name of the custom insight. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#KeywordInitParameters: { - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#KeywordObservation: { - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#KeywordParameters: { - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#LastObservedAtDateRangeInitParameters: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#LastObservedAtDateRangeObservation: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#LastObservedAtDateRangeParameters: { - // A date range unit for the date filter. Valid values: DAYS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#LastObservedAtInitParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#LastObservedAtDateRangeInitParameters] @go(DateRange,[]LastObservedAtDateRangeInitParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#LastObservedAtObservation: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#LastObservedAtDateRangeObservation] @go(DateRange,[]LastObservedAtDateRangeObservation) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#LastObservedAtParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - // +kubebuilder:validation:Optional - dateRange?: [...#LastObservedAtDateRangeParameters] @go(DateRange,[]LastObservedAtDateRangeParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - // +kubebuilder:validation:Optional - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - // +kubebuilder:validation:Optional - start?: null | string @go(Start,*string) -} - -#MalwareNameInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#MalwareNameObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#MalwareNameParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#MalwarePathInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#MalwarePathObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#MalwarePathParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#MalwareStateInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#MalwareStateObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#MalwareStateParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#MalwareTypeInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#MalwareTypeObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#MalwareTypeParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#NetworkDestinationDomainInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NetworkDestinationDomainObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NetworkDestinationDomainParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#NetworkDestinationIPv4InitParameters: { - // A finding's CIDR value. - cidr?: null | string @go(Cidr,*string) -} - -#NetworkDestinationIPv4Observation: { - // A finding's CIDR value. - cidr?: null | string @go(Cidr,*string) -} - -#NetworkDestinationIPv4Parameters: { - // A finding's CIDR value. - // +kubebuilder:validation:Optional - cidr?: null | string @go(Cidr,*string) -} - -#NetworkDestinationIPv6InitParameters: { - // A finding's CIDR value. - cidr?: null | string @go(Cidr,*string) -} - -#NetworkDestinationIPv6Observation: { - // A finding's CIDR value. - cidr?: null | string @go(Cidr,*string) -} - -#NetworkDestinationIPv6Parameters: { - // A finding's CIDR value. - // +kubebuilder:validation:Optional - cidr?: null | string @go(Cidr,*string) -} - -#NetworkDestinationPortInitParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#NetworkDestinationPortObservation: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#NetworkDestinationPortParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - lte?: null | string @go(Lte,*string) -} - -#NetworkDirectionInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NetworkDirectionObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NetworkDirectionParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#NetworkProtocolInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NetworkProtocolObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NetworkProtocolParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#NetworkSourceDomainInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NetworkSourceDomainObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NetworkSourceDomainParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#NetworkSourceIPv4InitParameters: { - // A finding's CIDR value. - cidr?: null | string @go(Cidr,*string) -} - -#NetworkSourceIPv4Observation: { - // A finding's CIDR value. - cidr?: null | string @go(Cidr,*string) -} - -#NetworkSourceIPv4Parameters: { - // A finding's CIDR value. - // +kubebuilder:validation:Optional - cidr?: null | string @go(Cidr,*string) -} - -#NetworkSourceIPv6InitParameters: { - // A finding's CIDR value. - cidr?: null | string @go(Cidr,*string) -} - -#NetworkSourceIPv6Observation: { - // A finding's CIDR value. - cidr?: null | string @go(Cidr,*string) -} - -#NetworkSourceIPv6Parameters: { - // A finding's CIDR value. - // +kubebuilder:validation:Optional - cidr?: null | string @go(Cidr,*string) -} - -#NetworkSourceMacInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NetworkSourceMacObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NetworkSourceMacParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#NetworkSourcePortInitParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#NetworkSourcePortObservation: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#NetworkSourcePortParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - lte?: null | string @go(Lte,*string) -} - -#NoteTextInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NoteTextObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NoteTextParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#NoteUpdatedAtDateRangeInitParameters: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#NoteUpdatedAtDateRangeObservation: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#NoteUpdatedAtDateRangeParameters: { - // A date range unit for the date filter. Valid values: DAYS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#NoteUpdatedAtInitParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#NoteUpdatedAtDateRangeInitParameters] @go(DateRange,[]NoteUpdatedAtDateRangeInitParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#NoteUpdatedAtObservation: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#NoteUpdatedAtDateRangeObservation] @go(DateRange,[]NoteUpdatedAtDateRangeObservation) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#NoteUpdatedAtParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - // +kubebuilder:validation:Optional - dateRange?: [...#NoteUpdatedAtDateRangeParameters] @go(DateRange,[]NoteUpdatedAtDateRangeParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - // +kubebuilder:validation:Optional - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - // +kubebuilder:validation:Optional - start?: null | string @go(Start,*string) -} - -#NoteUpdatedByInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NoteUpdatedByObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#NoteUpdatedByParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ProcessLaunchedAtDateRangeInitParameters: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#ProcessLaunchedAtDateRangeObservation: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#ProcessLaunchedAtDateRangeParameters: { - // A date range unit for the date filter. Valid values: DAYS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#ProcessLaunchedAtInitParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#ProcessLaunchedAtDateRangeInitParameters] @go(DateRange,[]ProcessLaunchedAtDateRangeInitParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#ProcessLaunchedAtObservation: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#ProcessLaunchedAtDateRangeObservation] @go(DateRange,[]ProcessLaunchedAtDateRangeObservation) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#ProcessLaunchedAtParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - // +kubebuilder:validation:Optional - dateRange?: [...#ProcessLaunchedAtDateRangeParameters] @go(DateRange,[]ProcessLaunchedAtDateRangeParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - // +kubebuilder:validation:Optional - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - // +kubebuilder:validation:Optional - start?: null | string @go(Start,*string) -} - -#ProcessNameInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ProcessNameObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ProcessNameParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ProcessParentPidInitParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#ProcessParentPidObservation: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#ProcessParentPidParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - lte?: null | string @go(Lte,*string) -} - -#ProcessPathInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ProcessPathObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ProcessPathParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ProcessPidInitParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#ProcessPidObservation: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - lte?: null | string @go(Lte,*string) -} - -#ProcessPidParameters: { - // The equal-to condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - eq?: null | string @go(Eq,*string) - - // The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - gte?: null | string @go(Gte,*string) - - // The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. - // +kubebuilder:validation:Optional - lte?: null | string @go(Lte,*string) -} - -#ProcessTerminatedAtDateRangeInitParameters: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#ProcessTerminatedAtDateRangeObservation: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#ProcessTerminatedAtDateRangeParameters: { - // A date range unit for the date filter. Valid values: DAYS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#ProcessTerminatedAtInitParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#ProcessTerminatedAtDateRangeInitParameters] @go(DateRange,[]ProcessTerminatedAtDateRangeInitParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#ProcessTerminatedAtObservation: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#ProcessTerminatedAtDateRangeObservation] @go(DateRange,[]ProcessTerminatedAtDateRangeObservation) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#ProcessTerminatedAtParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - // +kubebuilder:validation:Optional - dateRange?: [...#ProcessTerminatedAtDateRangeParameters] @go(DateRange,[]ProcessTerminatedAtDateRangeParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - // +kubebuilder:validation:Optional - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - // +kubebuilder:validation:Optional - start?: null | string @go(Start,*string) -} - -#ProductArnInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ProductArnObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ProductArnParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ProductFieldsInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. - key?: null | string @go(Key,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ProductFieldsObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. - key?: null | string @go(Key,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ProductFieldsParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ProductNameInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ProductNameObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ProductNameParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#RecommendationTextInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#RecommendationTextObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#RecommendationTextParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#RecordStateInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#RecordStateObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#RecordStateParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#RelatedFindingsIDInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#RelatedFindingsIDObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#RelatedFindingsIDParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#RelatedFindingsProductArnInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#RelatedFindingsProductArnObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#RelatedFindingsProductArnParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceIAMInstanceProfileArnInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceIAMInstanceProfileArnObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceIAMInstanceProfileArnParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceIPv4AddressesInitParameters: { - // A finding's CIDR value. - cidr?: null | string @go(Cidr,*string) -} - -#ResourceAwsEC2InstanceIPv4AddressesObservation: { - // A finding's CIDR value. - cidr?: null | string @go(Cidr,*string) -} - -#ResourceAwsEC2InstanceIPv4AddressesParameters: { - // A finding's CIDR value. - // +kubebuilder:validation:Optional - cidr?: null | string @go(Cidr,*string) -} - -#ResourceAwsEC2InstanceIPv6AddressesInitParameters: { - // A finding's CIDR value. - cidr?: null | string @go(Cidr,*string) -} - -#ResourceAwsEC2InstanceIPv6AddressesObservation: { - // A finding's CIDR value. - cidr?: null | string @go(Cidr,*string) -} - -#ResourceAwsEC2InstanceIPv6AddressesParameters: { - // A finding's CIDR value. - // +kubebuilder:validation:Optional - cidr?: null | string @go(Cidr,*string) -} - -#ResourceAwsEC2InstanceImageIDInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceImageIDObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceImageIDParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceKeyNameInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceKeyNameObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceKeyNameParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceLaunchedAtDateRangeInitParameters: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#ResourceAwsEC2InstanceLaunchedAtDateRangeObservation: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#ResourceAwsEC2InstanceLaunchedAtDateRangeParameters: { - // A date range unit for the date filter. Valid values: DAYS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#ResourceAwsEC2InstanceLaunchedAtInitParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#ResourceAwsEC2InstanceLaunchedAtDateRangeInitParameters] @go(DateRange,[]ResourceAwsEC2InstanceLaunchedAtDateRangeInitParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#ResourceAwsEC2InstanceLaunchedAtObservation: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#ResourceAwsEC2InstanceLaunchedAtDateRangeObservation] @go(DateRange,[]ResourceAwsEC2InstanceLaunchedAtDateRangeObservation) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#ResourceAwsEC2InstanceLaunchedAtParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - // +kubebuilder:validation:Optional - dateRange?: [...#ResourceAwsEC2InstanceLaunchedAtDateRangeParameters] @go(DateRange,[]ResourceAwsEC2InstanceLaunchedAtDateRangeParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - // +kubebuilder:validation:Optional - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - // +kubebuilder:validation:Optional - start?: null | string @go(Start,*string) -} - -#ResourceAwsEC2InstanceSubnetIDInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceSubnetIDObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceSubnetIDParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceTypeInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceTypeObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceTypeParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceVPCIDInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceVPCIDObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsEC2InstanceVPCIDParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceAwsIAMAccessKeyCreatedAtDateRangeInitParameters: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#ResourceAwsIAMAccessKeyCreatedAtDateRangeObservation: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#ResourceAwsIAMAccessKeyCreatedAtDateRangeParameters: { - // A date range unit for the date filter. Valid values: DAYS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#ResourceAwsIAMAccessKeyCreatedAtInitParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#ResourceAwsIAMAccessKeyCreatedAtDateRangeInitParameters] @go(DateRange,[]ResourceAwsIAMAccessKeyCreatedAtDateRangeInitParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#ResourceAwsIAMAccessKeyCreatedAtObservation: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#ResourceAwsIAMAccessKeyCreatedAtDateRangeObservation] @go(DateRange,[]ResourceAwsIAMAccessKeyCreatedAtDateRangeObservation) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#ResourceAwsIAMAccessKeyCreatedAtParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - // +kubebuilder:validation:Optional - dateRange?: [...#ResourceAwsIAMAccessKeyCreatedAtDateRangeParameters] @go(DateRange,[]ResourceAwsIAMAccessKeyCreatedAtDateRangeParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - // +kubebuilder:validation:Optional - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - // +kubebuilder:validation:Optional - start?: null | string @go(Start,*string) -} - -#ResourceAwsIAMAccessKeyStatusInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsIAMAccessKeyStatusObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsIAMAccessKeyStatusParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceAwsIAMAccessKeyUserNameInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsIAMAccessKeyUserNameObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsIAMAccessKeyUserNameParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceAwsS3BucketOwnerIDInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsS3BucketOwnerIDObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsS3BucketOwnerIDParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceAwsS3BucketOwnerNameInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsS3BucketOwnerNameObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceAwsS3BucketOwnerNameParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceContainerImageIDInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceContainerImageIDObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceContainerImageIDParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceContainerImageNameInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceContainerImageNameObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceContainerImageNameParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceContainerLaunchedAtDateRangeInitParameters: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#ResourceContainerLaunchedAtDateRangeObservation: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#ResourceContainerLaunchedAtDateRangeParameters: { - // A date range unit for the date filter. Valid values: DAYS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#ResourceContainerLaunchedAtInitParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#ResourceContainerLaunchedAtDateRangeInitParameters] @go(DateRange,[]ResourceContainerLaunchedAtDateRangeInitParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#ResourceContainerLaunchedAtObservation: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#ResourceContainerLaunchedAtDateRangeObservation] @go(DateRange,[]ResourceContainerLaunchedAtDateRangeObservation) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#ResourceContainerLaunchedAtParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - // +kubebuilder:validation:Optional - dateRange?: [...#ResourceContainerLaunchedAtDateRangeParameters] @go(DateRange,[]ResourceContainerLaunchedAtDateRangeParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - // +kubebuilder:validation:Optional - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - // +kubebuilder:validation:Optional - start?: null | string @go(Start,*string) -} - -#ResourceContainerNameInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceContainerNameObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceContainerNameParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceDetailsOtherInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. - key?: null | string @go(Key,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceDetailsOtherObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. - key?: null | string @go(Key,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceDetailsOtherParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceIDInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceIDObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceIDParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourcePartitionInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourcePartitionObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourcePartitionParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceRegionInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceRegionObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceRegionParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceTagsInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. - key?: null | string @go(Key,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceTagsObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. - key?: null | string @go(Key,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceTagsParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ResourceTypeInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceTypeObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ResourceTypeParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#SeverityLabelInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#SeverityLabelObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#SeverityLabelParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#SourceURLInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#SourceURLObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#SourceURLParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorCategoryInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorCategoryObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorCategoryParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorLastObservedAtDateRangeInitParameters: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#ThreatIntelIndicatorLastObservedAtDateRangeObservation: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#ThreatIntelIndicatorLastObservedAtDateRangeParameters: { - // A date range unit for the date filter. Valid values: DAYS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#ThreatIntelIndicatorLastObservedAtInitParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#ThreatIntelIndicatorLastObservedAtDateRangeInitParameters] @go(DateRange,[]ThreatIntelIndicatorLastObservedAtDateRangeInitParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#ThreatIntelIndicatorLastObservedAtObservation: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#ThreatIntelIndicatorLastObservedAtDateRangeObservation] @go(DateRange,[]ThreatIntelIndicatorLastObservedAtDateRangeObservation) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#ThreatIntelIndicatorLastObservedAtParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - // +kubebuilder:validation:Optional - dateRange?: [...#ThreatIntelIndicatorLastObservedAtDateRangeParameters] @go(DateRange,[]ThreatIntelIndicatorLastObservedAtDateRangeParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - // +kubebuilder:validation:Optional - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - // +kubebuilder:validation:Optional - start?: null | string @go(Start,*string) -} - -#ThreatIntelIndicatorSourceInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorSourceObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorSourceParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorSourceURLInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorSourceURLObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorSourceURLParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorTypeInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorTypeObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorTypeParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorValueInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorValueObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#ThreatIntelIndicatorValueParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#TitleInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#TitleObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#TitleParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#TypeInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#TypeObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#TypeParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#UpdatedAtDateRangeInitParameters: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#UpdatedAtDateRangeObservation: { - // A date range unit for the date filter. Valid values: DAYS. - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - value?: null | float64 @go(Value,*float64) -} - -#UpdatedAtDateRangeParameters: { - // A date range unit for the date filter. Valid values: DAYS. - // +kubebuilder:validation:Optional - unit?: null | string @go(Unit,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#UpdatedAtInitParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#UpdatedAtDateRangeInitParameters] @go(DateRange,[]UpdatedAtDateRangeInitParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#UpdatedAtObservation: { - // A configuration block of the date range for the date filter. See date_range below for more details. - dateRange?: [...#UpdatedAtDateRangeObservation] @go(DateRange,[]UpdatedAtDateRangeObservation) - - // An end date for the date filter. Required with start if date_range is not specified. - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - start?: null | string @go(Start,*string) -} - -#UpdatedAtParameters: { - // A configuration block of the date range for the date filter. See date_range below for more details. - // +kubebuilder:validation:Optional - dateRange?: [...#UpdatedAtDateRangeParameters] @go(DateRange,[]UpdatedAtDateRangeParameters) - - // An end date for the date filter. Required with start if date_range is not specified. - // +kubebuilder:validation:Optional - end?: null | string @go(End,*string) - - // A start date for the date filter. Required with end if date_range is not specified. - // +kubebuilder:validation:Optional - start?: null | string @go(Start,*string) -} - -#UserDefinedValuesInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. - key?: null | string @go(Key,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#UserDefinedValuesObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. - key?: null | string @go(Key,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#UserDefinedValuesParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // The key of the map filter. For example, for ResourceTags, Key identifies the name of the tag. For UserDefinedFields, Key is the name of the field. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#VerificationStateInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#VerificationStateObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#VerificationStateParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#WorkflowStatusInitParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#WorkflowStatusObservation: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - value?: null | string @go(Value,*string) -} - -#WorkflowStatusParameters: { - // The condition to apply to a string value when querying for findings. Valid values include: EQUALS and NOT_EQUALS. - // +kubebuilder:validation:Optional - comparison?: null | string @go(Comparison,*string) - - // A value for the keyword. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// InsightSpec defines the desired state of Insight -#InsightSpec: { - v1.#ResourceSpec - forProvider: #InsightParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InsightInitParameters @go(InitProvider) -} - -// InsightStatus defines the observed state of Insight. -#InsightStatus: { - v1.#ResourceStatus - atProvider?: #InsightObservation @go(AtProvider) -} - -// Insight is the Schema for the Insights API. Provides a Security Hub custom insight resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Insight: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.filters) || (has(self.initProvider) && has(self.initProvider.filters))",message="spec.forProvider.filters is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.groupByAttribute) || (has(self.initProvider) && has(self.initProvider.groupByAttribute))",message="spec.forProvider.groupByAttribute is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #InsightSpec @go(Spec) - status?: #InsightStatus @go(Status) -} - -// InsightList contains a list of Insights -#InsightList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Insight] @go(Items,[]Insight) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_inviteaccepter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_inviteaccepter_types_go_gen.cue deleted file mode 100644 index 2fd353b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_inviteaccepter_types_go_gen.cue +++ /dev/null @@ -1,89 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/securityhub/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InviteAccepterInitParameters: { -} - -#InviteAccepterObservation: { - id?: null | string @go(ID,*string) - - // The ID of the invitation. - invitationId?: null | string @go(InvitationID,*string) - - // The account ID of the master Security Hub account whose invitation you're accepting. - masterId?: null | string @go(MasterID,*string) -} - -#InviteAccepterParameters: { - // The account ID of the master Security Hub account whose invitation you're accepting. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/securityhub/v1beta1.Member - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("master_id",true) - // +kubebuilder:validation:Optional - masterId?: null | string @go(MasterID,*string) - - // Reference to a Member in securityhub to populate masterId. - // +kubebuilder:validation:Optional - masterIdRef?: null | v1.#Reference @go(MasterIDRef,*v1.Reference) - - // Selector for a Member in securityhub to populate masterId. - // +kubebuilder:validation:Optional - masterIdSelector?: null | v1.#Selector @go(MasterIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// InviteAccepterSpec defines the desired state of InviteAccepter -#InviteAccepterSpec: { - v1.#ResourceSpec - forProvider: #InviteAccepterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #InviteAccepterInitParameters @go(InitProvider) -} - -// InviteAccepterStatus defines the observed state of InviteAccepter. -#InviteAccepterStatus: { - v1.#ResourceStatus - atProvider?: #InviteAccepterObservation @go(AtProvider) -} - -// InviteAccepter is the Schema for the InviteAccepters API. Accepts a Security Hub invitation. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#InviteAccepter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #InviteAccepterSpec @go(Spec) - status?: #InviteAccepterStatus @go(Status) -} - -// InviteAccepterList contains a list of InviteAccepters -#InviteAccepterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#InviteAccepter] @go(Items,[]InviteAccepter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_member_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_member_types_go_gen.cue deleted file mode 100644 index 0ec5f50..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_member_types_go_gen.cue +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/securityhub/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MemberInitParameters: { - // The ID of the member AWS account. - accountId?: null | string @go(AccountID,*string) - - // The email of the member AWS account. - email?: null | string @go(Email,*string) - - // Boolean whether to invite the account to Security Hub as a member. Defaults to false. - invite?: null | bool @go(Invite,*bool) -} - -#MemberObservation: { - // The ID of the member AWS account. - accountId?: null | string @go(AccountID,*string) - - // The email of the member AWS account. - email?: null | string @go(Email,*string) - - // The ID of the member AWS account (matches account_id). - id?: null | string @go(ID,*string) - - // Boolean whether to invite the account to Security Hub as a member. Defaults to false. - invite?: null | bool @go(Invite,*bool) - - // The ID of the master Security Hub AWS account. - masterId?: null | string @go(MasterID,*string) - - // The status of the member account relationship. - memberStatus?: null | string @go(MemberStatus,*string) -} - -#MemberParameters: { - // The ID of the member AWS account. - // +kubebuilder:validation:Optional - accountId?: null | string @go(AccountID,*string) - - // The email of the member AWS account. - // +kubebuilder:validation:Optional - email?: null | string @go(Email,*string) - - // Boolean whether to invite the account to Security Hub as a member. Defaults to false. - // +kubebuilder:validation:Optional - invite?: null | bool @go(Invite,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// MemberSpec defines the desired state of Member -#MemberSpec: { - v1.#ResourceSpec - forProvider: #MemberParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MemberInitParameters @go(InitProvider) -} - -// MemberStatus defines the observed state of Member. -#MemberStatus: { - v1.#ResourceStatus - atProvider?: #MemberObservation @go(AtProvider) -} - -// Member is the Schema for the Members API. Provides a Security Hub member resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Member: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accountId) || (has(self.initProvider) && has(self.initProvider.accountId))",message="spec.forProvider.accountId is a required parameter" - spec: #MemberSpec @go(Spec) - status?: #MemberStatus @go(Status) -} - -// MemberList contains a list of Members -#MemberList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Member] @go(Items,[]Member) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_productsubscription_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_productsubscription_types_go_gen.cue deleted file mode 100644 index 5fb9030..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_productsubscription_types_go_gen.cue +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/securityhub/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ProductSubscriptionInitParameters: { - // The ARN of the product that generates findings that you want to import into Security Hub - see below. - productArn?: null | string @go(ProductArn,*string) -} - -#ProductSubscriptionObservation: { - // The ARN of a resource that represents your subscription to the product that generates the findings that you want to import into Security Hub. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // The ARN of the product that generates findings that you want to import into Security Hub - see below. - productArn?: null | string @go(ProductArn,*string) -} - -#ProductSubscriptionParameters: { - // The ARN of the product that generates findings that you want to import into Security Hub - see below. - // +kubebuilder:validation:Optional - productArn?: null | string @go(ProductArn,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ProductSubscriptionSpec defines the desired state of ProductSubscription -#ProductSubscriptionSpec: { - v1.#ResourceSpec - forProvider: #ProductSubscriptionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProductSubscriptionInitParameters @go(InitProvider) -} - -// ProductSubscriptionStatus defines the observed state of ProductSubscription. -#ProductSubscriptionStatus: { - v1.#ResourceStatus - atProvider?: #ProductSubscriptionObservation @go(AtProvider) -} - -// ProductSubscription is the Schema for the ProductSubscriptions API. Subscribes to a Security Hub product. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ProductSubscription: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.productArn) || (has(self.initProvider) && has(self.initProvider.productArn))",message="spec.forProvider.productArn is a required parameter" - spec: #ProductSubscriptionSpec @go(Spec) - status?: #ProductSubscriptionStatus @go(Status) -} - -// ProductSubscriptionList contains a list of ProductSubscriptions -#ProductSubscriptionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ProductSubscription] @go(Items,[]ProductSubscription) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_standardssubscription_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_standardssubscription_types_go_gen.cue deleted file mode 100644 index e403ddd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/securityhub/v1beta1/zz_standardssubscription_types_go_gen.cue +++ /dev/null @@ -1,81 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/securityhub/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#StandardsSubscriptionInitParameters: { - // The ARN of a standard - see below. - standardsArn?: null | string @go(StandardsArn,*string) -} - -#StandardsSubscriptionObservation: { - // The ARN of a resource that represents your subscription to a supported standard. - id?: null | string @go(ID,*string) - - // The ARN of a standard - see below. - standardsArn?: null | string @go(StandardsArn,*string) -} - -#StandardsSubscriptionParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The ARN of a standard - see below. - // +kubebuilder:validation:Optional - standardsArn?: null | string @go(StandardsArn,*string) -} - -// StandardsSubscriptionSpec defines the desired state of StandardsSubscription -#StandardsSubscriptionSpec: { - v1.#ResourceSpec - forProvider: #StandardsSubscriptionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StandardsSubscriptionInitParameters @go(InitProvider) -} - -// StandardsSubscriptionStatus defines the observed state of StandardsSubscription. -#StandardsSubscriptionStatus: { - v1.#ResourceStatus - atProvider?: #StandardsSubscriptionObservation @go(AtProvider) -} - -// StandardsSubscription is the Schema for the StandardsSubscriptions API. Subscribes to a Security Hub standard. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#StandardsSubscription: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.standardsArn) || (has(self.initProvider) && has(self.initProvider.standardsArn))",message="spec.forProvider.standardsArn is a required parameter" - spec: #StandardsSubscriptionSpec @go(Spec) - status?: #StandardsSubscriptionStatus @go(Status) -} - -// StandardsSubscriptionList contains a list of StandardsSubscriptions -#StandardsSubscriptionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#StandardsSubscription] @go(Items,[]StandardsSubscription) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/serverlessrepo/v1beta1/zz_cloudformationstack_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/serverlessrepo/v1beta1/zz_cloudformationstack_types_go_gen.cue deleted file mode 100644 index 313d9c9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/serverlessrepo/v1beta1/zz_cloudformationstack_types_go_gen.cue +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/serverlessrepo/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CloudFormationStackInitParameters: { - // The ARN of the application from the Serverless Application Repository. - applicationId?: null | string @go(ApplicationID,*string) - - // A list of capabilities. Valid values are CAPABILITY_IAM, CAPABILITY_NAMED_IAM, CAPABILITY_RESOURCE_POLICY, or CAPABILITY_AUTO_EXPAND - capabilities?: [...null | string] @go(Capabilities,[]*string) - - // The name of the stack to create. The resource deployed in AWS will be prefixed with serverlessrepo- - name?: null | string @go(Name,*string) - - // A map of Parameter structures that specify input parameters for the stack. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // The version of the application to deploy. If not supplied, deploys the latest version. - semanticVersion?: null | string @go(SemanticVersion,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#CloudFormationStackObservation: { - // The ARN of the application from the Serverless Application Repository. - applicationId?: null | string @go(ApplicationID,*string) - - // A list of capabilities. Valid values are CAPABILITY_IAM, CAPABILITY_NAMED_IAM, CAPABILITY_RESOURCE_POLICY, or CAPABILITY_AUTO_EXPAND - capabilities?: [...null | string] @go(Capabilities,[]*string) - - // A unique identifier of the stack. - id?: null | string @go(ID,*string) - - // The name of the stack to create. The resource deployed in AWS will be prefixed with serverlessrepo- - name?: null | string @go(Name,*string) - - // A map of outputs from the stack. - outputs?: {[string]: null | string} @go(Outputs,map[string]*string) - - // A map of Parameter structures that specify input parameters for the stack. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // The version of the application to deploy. If not supplied, deploys the latest version. - semanticVersion?: null | string @go(SemanticVersion,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#CloudFormationStackParameters: { - // The ARN of the application from the Serverless Application Repository. - // +kubebuilder:validation:Optional - applicationId?: null | string @go(ApplicationID,*string) - - // A list of capabilities. Valid values are CAPABILITY_IAM, CAPABILITY_NAMED_IAM, CAPABILITY_RESOURCE_POLICY, or CAPABILITY_AUTO_EXPAND - // +kubebuilder:validation:Optional - capabilities?: [...null | string] @go(Capabilities,[]*string) - - // The name of the stack to create. The resource deployed in AWS will be prefixed with serverlessrepo- - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A map of Parameter structures that specify input parameters for the stack. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The version of the application to deploy. If not supplied, deploys the latest version. - // +kubebuilder:validation:Optional - semanticVersion?: null | string @go(SemanticVersion,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// CloudFormationStackSpec defines the desired state of CloudFormationStack -#CloudFormationStackSpec: { - v1.#ResourceSpec - forProvider: #CloudFormationStackParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #CloudFormationStackInitParameters @go(InitProvider) -} - -// CloudFormationStackStatus defines the observed state of CloudFormationStack. -#CloudFormationStackStatus: { - v1.#ResourceStatus - atProvider?: #CloudFormationStackObservation @go(AtProvider) -} - -// CloudFormationStack is the Schema for the CloudFormationStacks API. Deploys an Application CloudFormation Stack from the Serverless Application Repository. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#CloudFormationStack: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.applicationId) || (has(self.initProvider) && has(self.initProvider.applicationId))",message="spec.forProvider.applicationId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.capabilities) || (has(self.initProvider) && has(self.initProvider.capabilities))",message="spec.forProvider.capabilities is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #CloudFormationStackSpec @go(Spec) - status?: #CloudFormationStackStatus @go(Status) -} - -// CloudFormationStackList contains a list of CloudFormationStacks -#CloudFormationStackList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#CloudFormationStack] @go(Items,[]CloudFormationStack) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/serverlessrepo/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/serverlessrepo/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 73ea213..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/serverlessrepo/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/serverlessrepo/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=serverlessrepo.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "serverlessrepo.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_budgetresourceassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_budgetresourceassociation_types_go_gen.cue deleted file mode 100644 index 92bce9e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_budgetresourceassociation_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicecatalog/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#BudgetResourceAssociationInitParameters: { -} - -#BudgetResourceAssociationObservation: { - // Budget name. - budgetName?: null | string @go(BudgetName,*string) - - // Identifier of the association. - id?: null | string @go(ID,*string) - - // Resource identifier. - resourceId?: null | string @go(ResourceID,*string) -} - -#BudgetResourceAssociationParameters: { - // Budget name. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/budgets/v1beta1.Budget - // +kubebuilder:validation:Optional - budgetName?: null | string @go(BudgetName,*string) - - // Reference to a Budget in budgets to populate budgetName. - // +kubebuilder:validation:Optional - budgetNameRef?: null | v1.#Reference @go(BudgetNameRef,*v1.Reference) - - // Selector for a Budget in budgets to populate budgetName. - // +kubebuilder:validation:Optional - budgetNameSelector?: null | v1.#Selector @go(BudgetNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Resource identifier. - // +crossplane:generate:reference:type=Product - // +kubebuilder:validation:Optional - resourceId?: null | string @go(ResourceID,*string) - - // Reference to a Product to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdRef?: null | v1.#Reference @go(ResourceIDRef,*v1.Reference) - - // Selector for a Product to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdSelector?: null | v1.#Selector @go(ResourceIDSelector,*v1.Selector) -} - -// BudgetResourceAssociationSpec defines the desired state of BudgetResourceAssociation -#BudgetResourceAssociationSpec: { - v1.#ResourceSpec - forProvider: #BudgetResourceAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #BudgetResourceAssociationInitParameters @go(InitProvider) -} - -// BudgetResourceAssociationStatus defines the observed state of BudgetResourceAssociation. -#BudgetResourceAssociationStatus: { - v1.#ResourceStatus - atProvider?: #BudgetResourceAssociationObservation @go(AtProvider) -} - -// BudgetResourceAssociation is the Schema for the BudgetResourceAssociations API. Manages a Service Catalog Budget Resource Association -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#BudgetResourceAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BudgetResourceAssociationSpec @go(Spec) - status?: #BudgetResourceAssociationStatus @go(Status) -} - -// BudgetResourceAssociationList contains a list of BudgetResourceAssociations -#BudgetResourceAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#BudgetResourceAssociation] @go(Items,[]BudgetResourceAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_constraint_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_constraint_types_go_gen.cue deleted file mode 100644 index f87550a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_constraint_types_go_gen.cue +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicecatalog/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConstraintInitParameters: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Description of the constraint. - description?: null | string @go(Description,*string) - - // Constraint parameters in JSON format. The syntax depends on the constraint type. See details below. - parameters?: null | string @go(Parameters,*string) - - // Type of constraint. Valid values are LAUNCH, NOTIFICATION, RESOURCE_UPDATE, STACKSET, and TEMPLATE. - type?: null | string @go(Type,*string) -} - -#ConstraintObservation: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Description of the constraint. - description?: null | string @go(Description,*string) - - // Constraint identifier. - id?: null | string @go(ID,*string) - - // Owner of the constraint. - owner?: null | string @go(Owner,*string) - - // Constraint parameters in JSON format. The syntax depends on the constraint type. See details below. - parameters?: null | string @go(Parameters,*string) - - // Portfolio identifier. - portfolioId?: null | string @go(PortfolioID,*string) - - // Product identifier. - productId?: null | string @go(ProductID,*string) - status?: null | string @go(Status,*string) - - // Type of constraint. Valid values are LAUNCH, NOTIFICATION, RESOURCE_UPDATE, STACKSET, and TEMPLATE. - type?: null | string @go(Type,*string) -} - -#ConstraintParameters: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - // +kubebuilder:validation:Optional - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Description of the constraint. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Constraint parameters in JSON format. The syntax depends on the constraint type. See details below. - // +kubebuilder:validation:Optional - parameters?: null | string @go(Parameters,*string) - - // Portfolio identifier. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/servicecatalog/v1beta1.Portfolio - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - portfolioId?: null | string @go(PortfolioID,*string) - - // Reference to a Portfolio in servicecatalog to populate portfolioId. - // +kubebuilder:validation:Optional - portfolioIdRef?: null | v1.#Reference @go(PortfolioIDRef,*v1.Reference) - - // Selector for a Portfolio in servicecatalog to populate portfolioId. - // +kubebuilder:validation:Optional - portfolioIdSelector?: null | v1.#Selector @go(PortfolioIDSelector,*v1.Selector) - - // Product identifier. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/servicecatalog/v1beta1.Product - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - productId?: null | string @go(ProductID,*string) - - // Reference to a Product in servicecatalog to populate productId. - // +kubebuilder:validation:Optional - productIdRef?: null | v1.#Reference @go(ProductIDRef,*v1.Reference) - - // Selector for a Product in servicecatalog to populate productId. - // +kubebuilder:validation:Optional - productIdSelector?: null | v1.#Selector @go(ProductIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Type of constraint. Valid values are LAUNCH, NOTIFICATION, RESOURCE_UPDATE, STACKSET, and TEMPLATE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// ConstraintSpec defines the desired state of Constraint -#ConstraintSpec: { - v1.#ResourceSpec - forProvider: #ConstraintParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConstraintInitParameters @go(InitProvider) -} - -// ConstraintStatus defines the observed state of Constraint. -#ConstraintStatus: { - v1.#ResourceStatus - atProvider?: #ConstraintObservation @go(AtProvider) -} - -// Constraint is the Schema for the Constraints API. Manages a Service Catalog Constraint -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Constraint: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.parameters) || (has(self.initProvider) && has(self.initProvider.parameters))",message="spec.forProvider.parameters is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #ConstraintSpec @go(Spec) - status?: #ConstraintStatus @go(Status) -} - -// ConstraintList contains a list of Constraints -#ConstraintList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Constraint] @go(Items,[]Constraint) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index dff1543..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicecatalog/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=servicecatalog.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "servicecatalog.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_portfolio_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_portfolio_types_go_gen.cue deleted file mode 100644 index 0721ef2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_portfolio_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicecatalog/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PortfolioInitParameters: { - // Description of the portfolio - description?: null | string @go(Description,*string) - - // The name of the portfolio. - name?: null | string @go(Name,*string) - - // Name of the person or organization who owns the portfolio. - providerName?: null | string @go(ProviderName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PortfolioObservation: { - arn?: null | string @go(Arn,*string) - createdTime?: null | string @go(CreatedTime,*string) - - // Description of the portfolio - description?: null | string @go(Description,*string) - - // The ID of the Service Catalog Portfolio. - id?: null | string @go(ID,*string) - - // The name of the portfolio. - name?: null | string @go(Name,*string) - - // Name of the person or organization who owns the portfolio. - providerName?: null | string @go(ProviderName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#PortfolioParameters: { - // Description of the portfolio - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the portfolio. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Name of the person or organization who owns the portfolio. - // +kubebuilder:validation:Optional - providerName?: null | string @go(ProviderName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// PortfolioSpec defines the desired state of Portfolio -#PortfolioSpec: { - v1.#ResourceSpec - forProvider: #PortfolioParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PortfolioInitParameters @go(InitProvider) -} - -// PortfolioStatus defines the observed state of Portfolio. -#PortfolioStatus: { - v1.#ResourceStatus - atProvider?: #PortfolioObservation @go(AtProvider) -} - -// Portfolio is the Schema for the Portfolios API. Provides a resource to create a Service Catalog portfolio -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Portfolio: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.providerName) || (has(self.initProvider) && has(self.initProvider.providerName))",message="spec.forProvider.providerName is a required parameter" - spec: #PortfolioSpec @go(Spec) - status?: #PortfolioStatus @go(Status) -} - -// PortfolioList contains a list of Portfolios -#PortfolioList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Portfolio] @go(Items,[]Portfolio) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_portfolioshare_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_portfolioshare_types_go_gen.cue deleted file mode 100644 index 7d519df..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_portfolioshare_types_go_gen.cue +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicecatalog/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PortfolioShareInitParameters: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Identifier of the principal with whom you will share the portfolio. Valid values AWS account IDs and ARNs of AWS Organizations and organizational units. - principalId?: null | string @go(PrincipalID,*string) - - // Enables or disables Principal sharing when creating the portfolio share. If this flag is not provided, principal sharing is disabled. - sharePrincipals?: null | bool @go(SharePrincipals,*bool) - - // Whether to enable sharing of aws_servicecatalog_tag_option resources when creating the portfolio share. - shareTagOptions?: null | bool @go(ShareTagOptions,*bool) - - // Type of portfolio share. Valid values are ACCOUNT (an external account), ORGANIZATION (a share to every account in an organization), ORGANIZATIONAL_UNIT, ORGANIZATION_MEMBER_ACCOUNT (a share to an account in an organization). - type?: null | string @go(Type,*string) - - // Whether to wait (up to the timeout) for the share to be accepted. Organizational shares are automatically accepted. - waitForAcceptance?: null | bool @go(WaitForAcceptance,*bool) -} - -#PortfolioShareObservation: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Whether the shared portfolio is imported by the recipient account. If the recipient is organizational, the share is automatically imported, and the field is always set to true. - accepted?: null | bool @go(Accepted,*bool) - id?: null | string @go(ID,*string) - - // Portfolio identifier. - portfolioId?: null | string @go(PortfolioID,*string) - - // Identifier of the principal with whom you will share the portfolio. Valid values AWS account IDs and ARNs of AWS Organizations and organizational units. - principalId?: null | string @go(PrincipalID,*string) - - // Enables or disables Principal sharing when creating the portfolio share. If this flag is not provided, principal sharing is disabled. - sharePrincipals?: null | bool @go(SharePrincipals,*bool) - - // Whether to enable sharing of aws_servicecatalog_tag_option resources when creating the portfolio share. - shareTagOptions?: null | bool @go(ShareTagOptions,*bool) - - // Type of portfolio share. Valid values are ACCOUNT (an external account), ORGANIZATION (a share to every account in an organization), ORGANIZATIONAL_UNIT, ORGANIZATION_MEMBER_ACCOUNT (a share to an account in an organization). - type?: null | string @go(Type,*string) - - // Whether to wait (up to the timeout) for the share to be accepted. Organizational shares are automatically accepted. - waitForAcceptance?: null | bool @go(WaitForAcceptance,*bool) -} - -#PortfolioShareParameters: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - // +kubebuilder:validation:Optional - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Portfolio identifier. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/servicecatalog/v1beta1.Portfolio - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - portfolioId?: null | string @go(PortfolioID,*string) - - // Reference to a Portfolio in servicecatalog to populate portfolioId. - // +kubebuilder:validation:Optional - portfolioIdRef?: null | v1.#Reference @go(PortfolioIDRef,*v1.Reference) - - // Selector for a Portfolio in servicecatalog to populate portfolioId. - // +kubebuilder:validation:Optional - portfolioIdSelector?: null | v1.#Selector @go(PortfolioIDSelector,*v1.Selector) - - // Identifier of the principal with whom you will share the portfolio. Valid values AWS account IDs and ARNs of AWS Organizations and organizational units. - // +kubebuilder:validation:Optional - principalId?: null | string @go(PrincipalID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Enables or disables Principal sharing when creating the portfolio share. If this flag is not provided, principal sharing is disabled. - // +kubebuilder:validation:Optional - sharePrincipals?: null | bool @go(SharePrincipals,*bool) - - // Whether to enable sharing of aws_servicecatalog_tag_option resources when creating the portfolio share. - // +kubebuilder:validation:Optional - shareTagOptions?: null | bool @go(ShareTagOptions,*bool) - - // Type of portfolio share. Valid values are ACCOUNT (an external account), ORGANIZATION (a share to every account in an organization), ORGANIZATIONAL_UNIT, ORGANIZATION_MEMBER_ACCOUNT (a share to an account in an organization). - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // Whether to wait (up to the timeout) for the share to be accepted. Organizational shares are automatically accepted. - // +kubebuilder:validation:Optional - waitForAcceptance?: null | bool @go(WaitForAcceptance,*bool) -} - -// PortfolioShareSpec defines the desired state of PortfolioShare -#PortfolioShareSpec: { - v1.#ResourceSpec - forProvider: #PortfolioShareParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PortfolioShareInitParameters @go(InitProvider) -} - -// PortfolioShareStatus defines the observed state of PortfolioShare. -#PortfolioShareStatus: { - v1.#ResourceStatus - atProvider?: #PortfolioShareObservation @go(AtProvider) -} - -// PortfolioShare is the Schema for the PortfolioShares API. Manages a Service Catalog Portfolio Share -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PortfolioShare: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.principalId) || (has(self.initProvider) && has(self.initProvider.principalId))",message="spec.forProvider.principalId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #PortfolioShareSpec @go(Spec) - status?: #PortfolioShareStatus @go(Status) -} - -// PortfolioShareList contains a list of PortfolioShares -#PortfolioShareList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PortfolioShare] @go(Items,[]PortfolioShare) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_principalportfolioassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_principalportfolioassociation_types_go_gen.cue deleted file mode 100644 index 0cb0d11..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_principalportfolioassociation_types_go_gen.cue +++ /dev/null @@ -1,124 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicecatalog/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PrincipalPortfolioAssociationInitParameters: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Principal type. Setting this argument empty (e.g., principal_type = "") will result in an error. Valid value is IAM. Default is IAM. - principalType?: null | string @go(PrincipalType,*string) -} - -#PrincipalPortfolioAssociationObservation: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Identifier of the association. - id?: null | string @go(ID,*string) - - // Portfolio identifier. - portfolioId?: null | string @go(PortfolioID,*string) - - // Principal ARN. - principalArn?: null | string @go(PrincipalArn,*string) - - // Principal type. Setting this argument empty (e.g., principal_type = "") will result in an error. Valid value is IAM. Default is IAM. - principalType?: null | string @go(PrincipalType,*string) -} - -#PrincipalPortfolioAssociationParameters: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - // +kubebuilder:validation:Optional - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Portfolio identifier. - // +crossplane:generate:reference:type=Portfolio - // +kubebuilder:validation:Optional - portfolioId?: null | string @go(PortfolioID,*string) - - // Reference to a Portfolio to populate portfolioId. - // +kubebuilder:validation:Optional - portfolioIdRef?: null | v1.#Reference @go(PortfolioIDRef,*v1.Reference) - - // Selector for a Portfolio to populate portfolioId. - // +kubebuilder:validation:Optional - portfolioIdSelector?: null | v1.#Selector @go(PortfolioIDSelector,*v1.Selector) - - // Principal ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.User - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - principalArn?: null | string @go(PrincipalArn,*string) - - // Reference to a User in iam to populate principalArn. - // +kubebuilder:validation:Optional - principalArnRef?: null | v1.#Reference @go(PrincipalArnRef,*v1.Reference) - - // Selector for a User in iam to populate principalArn. - // +kubebuilder:validation:Optional - principalArnSelector?: null | v1.#Selector @go(PrincipalArnSelector,*v1.Selector) - - // Principal type. Setting this argument empty (e.g., principal_type = "") will result in an error. Valid value is IAM. Default is IAM. - // +kubebuilder:validation:Optional - principalType?: null | string @go(PrincipalType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// PrincipalPortfolioAssociationSpec defines the desired state of PrincipalPortfolioAssociation -#PrincipalPortfolioAssociationSpec: { - v1.#ResourceSpec - forProvider: #PrincipalPortfolioAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PrincipalPortfolioAssociationInitParameters @go(InitProvider) -} - -// PrincipalPortfolioAssociationStatus defines the observed state of PrincipalPortfolioAssociation. -#PrincipalPortfolioAssociationStatus: { - v1.#ResourceStatus - atProvider?: #PrincipalPortfolioAssociationObservation @go(AtProvider) -} - -// PrincipalPortfolioAssociation is the Schema for the PrincipalPortfolioAssociations API. Manages a Service Catalog Principal Portfolio Association -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PrincipalPortfolioAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.acceptLanguage) || (has(self.initProvider) && has(self.initProvider.acceptLanguage))",message="spec.forProvider.acceptLanguage is a required parameter" - spec: #PrincipalPortfolioAssociationSpec @go(Spec) - status?: #PrincipalPortfolioAssociationStatus @go(Status) -} - -// PrincipalPortfolioAssociationList contains a list of PrincipalPortfolioAssociations -#PrincipalPortfolioAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PrincipalPortfolioAssociation] @go(Items,[]PrincipalPortfolioAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_product_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_product_types_go_gen.cue deleted file mode 100644 index 035c99a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_product_types_go_gen.cue +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicecatalog/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ProductInitParameters: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Description of the product. - description?: null | string @go(Description,*string) - - // Distributor (i.e., vendor) of the product. - distributor?: null | string @go(Distributor,*string) - - // Name of the product. - name?: null | string @go(Name,*string) - - // Owner of the product. - owner?: null | string @go(Owner,*string) - - // Configuration block for provisioning artifact (i.e., version) parameters. Detailed below. - provisioningArtifactParameters?: [...#ProvisioningArtifactParametersInitParameters] @go(ProvisioningArtifactParameters,[]ProvisioningArtifactParametersInitParameters) - - // Support information about the product. - supportDescription?: null | string @go(SupportDescription,*string) - - // Contact email for product support. - supportEmail?: null | string @go(SupportEmail,*string) - - // Contact URL for product support. - supportUrl?: null | string @go(SupportURL,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Type of product. See AWS Docs for valid list of values. - type?: null | string @go(Type,*string) -} - -#ProductObservation: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // ARN of the product. - arn?: null | string @go(Arn,*string) - - // Time when the product was created. - createdTime?: null | string @go(CreatedTime,*string) - - // Description of the product. - description?: null | string @go(Description,*string) - - // Distributor (i.e., vendor) of the product. - distributor?: null | string @go(Distributor,*string) - - // Whether the product has a default path. If the product does not have a default path, call ListLaunchPaths to disambiguate between paths. Otherwise, ListLaunchPaths is not required, and the output of ProductViewSummary can be used directly with DescribeProvisioningParameters. - hasDefaultPath?: null | bool @go(HasDefaultPath,*bool) - - // Product ID. For example, prod-dnigbtea24ste. - id?: null | string @go(ID,*string) - - // Name of the product. - name?: null | string @go(Name,*string) - - // Owner of the product. - owner?: null | string @go(Owner,*string) - - // Configuration block for provisioning artifact (i.e., version) parameters. Detailed below. - provisioningArtifactParameters?: [...#ProvisioningArtifactParametersObservation] @go(ProvisioningArtifactParameters,[]ProvisioningArtifactParametersObservation) - - // Status of the product. - status?: null | string @go(Status,*string) - - // Support information about the product. - supportDescription?: null | string @go(SupportDescription,*string) - - // Contact email for product support. - supportEmail?: null | string @go(SupportEmail,*string) - - // Contact URL for product support. - supportUrl?: null | string @go(SupportURL,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Type of product. See AWS Docs for valid list of values. - type?: null | string @go(Type,*string) -} - -#ProductParameters: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - // +kubebuilder:validation:Optional - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Description of the product. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Distributor (i.e., vendor) of the product. - // +kubebuilder:validation:Optional - distributor?: null | string @go(Distributor,*string) - - // Name of the product. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Owner of the product. - // +kubebuilder:validation:Optional - owner?: null | string @go(Owner,*string) - - // Configuration block for provisioning artifact (i.e., version) parameters. Detailed below. - // +kubebuilder:validation:Optional - provisioningArtifactParameters?: [...#ProvisioningArtifactParametersParameters] @go(ProvisioningArtifactParameters,[]ProvisioningArtifactParametersParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Support information about the product. - // +kubebuilder:validation:Optional - supportDescription?: null | string @go(SupportDescription,*string) - - // Contact email for product support. - // +kubebuilder:validation:Optional - supportEmail?: null | string @go(SupportEmail,*string) - - // Contact URL for product support. - // +kubebuilder:validation:Optional - supportUrl?: null | string @go(SupportURL,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Type of product. See AWS Docs for valid list of values. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#ProvisioningArtifactParametersInitParameters: { - // Description of the provisioning artifact (i.e., version), including how it differs from the previous provisioning artifact. - description?: null | string @go(Description,*string) - - // Whether AWS Service Catalog stops validating the specified provisioning artifact template even if it is invalid. - disableTemplateValidation?: null | bool @go(DisableTemplateValidation,*bool) - - // Name of the provisioning artifact (for example, v1, v2beta). No spaces are allowed. - name?: null | string @go(Name,*string) - - // Template source as the physical ID of the resource that contains the template. Currently only supports CloudFormation stack ARN. Specify the physical ID as arn:[partition]:cloudformation:[region]:[account ID]:stack/[stack name]/[resource ID]. - templatePhysicalId?: null | string @go(TemplatePhysicalID,*string) - - // Template source as URL of the CloudFormation template in Amazon S3. - templateUrl?: null | string @go(TemplateURL,*string) - - // Type of provisioning artifact. See AWS Docs for valid list of values. - type?: null | string @go(Type,*string) -} - -#ProvisioningArtifactParametersObservation: { - // Description of the provisioning artifact (i.e., version), including how it differs from the previous provisioning artifact. - description?: null | string @go(Description,*string) - - // Whether AWS Service Catalog stops validating the specified provisioning artifact template even if it is invalid. - disableTemplateValidation?: null | bool @go(DisableTemplateValidation,*bool) - - // Name of the provisioning artifact (for example, v1, v2beta). No spaces are allowed. - name?: null | string @go(Name,*string) - - // Template source as the physical ID of the resource that contains the template. Currently only supports CloudFormation stack ARN. Specify the physical ID as arn:[partition]:cloudformation:[region]:[account ID]:stack/[stack name]/[resource ID]. - templatePhysicalId?: null | string @go(TemplatePhysicalID,*string) - - // Template source as URL of the CloudFormation template in Amazon S3. - templateUrl?: null | string @go(TemplateURL,*string) - - // Type of provisioning artifact. See AWS Docs for valid list of values. - type?: null | string @go(Type,*string) -} - -#ProvisioningArtifactParametersParameters: { - // Description of the provisioning artifact (i.e., version), including how it differs from the previous provisioning artifact. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether AWS Service Catalog stops validating the specified provisioning artifact template even if it is invalid. - // +kubebuilder:validation:Optional - disableTemplateValidation?: null | bool @go(DisableTemplateValidation,*bool) - - // Name of the provisioning artifact (for example, v1, v2beta). No spaces are allowed. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Template source as the physical ID of the resource that contains the template. Currently only supports CloudFormation stack ARN. Specify the physical ID as arn:[partition]:cloudformation:[region]:[account ID]:stack/[stack name]/[resource ID]. - // +kubebuilder:validation:Optional - templatePhysicalId?: null | string @go(TemplatePhysicalID,*string) - - // Template source as URL of the CloudFormation template in Amazon S3. - // +kubebuilder:validation:Optional - templateUrl?: null | string @go(TemplateURL,*string) - - // Type of provisioning artifact. See AWS Docs for valid list of values. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// ProductSpec defines the desired state of Product -#ProductSpec: { - v1.#ResourceSpec - forProvider: #ProductParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProductInitParameters @go(InitProvider) -} - -// ProductStatus defines the observed state of Product. -#ProductStatus: { - v1.#ResourceStatus - atProvider?: #ProductObservation @go(AtProvider) -} - -// Product is the Schema for the Products API. Manages a Service Catalog Product -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Product: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.owner) || (has(self.initProvider) && has(self.initProvider.owner))",message="spec.forProvider.owner is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.provisioningArtifactParameters) || (has(self.initProvider) && has(self.initProvider.provisioningArtifactParameters))",message="spec.forProvider.provisioningArtifactParameters is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #ProductSpec @go(Spec) - status?: #ProductStatus @go(Status) -} - -// ProductList contains a list of Products -#ProductList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Product] @go(Items,[]Product) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_productportfolioassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_productportfolioassociation_types_go_gen.cue deleted file mode 100644 index d3a22b0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_productportfolioassociation_types_go_gen.cue +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicecatalog/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ProductPortfolioAssociationInitParameters: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Identifier of the source portfolio. - sourcePortfolioId?: null | string @go(SourcePortfolioID,*string) -} - -#ProductPortfolioAssociationObservation: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Identifier of the association. - id?: null | string @go(ID,*string) - - // Portfolio identifier. - portfolioId?: null | string @go(PortfolioID,*string) - - // Product identifier. - productId?: null | string @go(ProductID,*string) - - // Identifier of the source portfolio. - sourcePortfolioId?: null | string @go(SourcePortfolioID,*string) -} - -#ProductPortfolioAssociationParameters: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en. - // +kubebuilder:validation:Optional - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Portfolio identifier. - // +crossplane:generate:reference:type=Portfolio - // +kubebuilder:validation:Optional - portfolioId?: null | string @go(PortfolioID,*string) - - // Reference to a Portfolio to populate portfolioId. - // +kubebuilder:validation:Optional - portfolioIdRef?: null | v1.#Reference @go(PortfolioIDRef,*v1.Reference) - - // Selector for a Portfolio to populate portfolioId. - // +kubebuilder:validation:Optional - portfolioIdSelector?: null | v1.#Selector @go(PortfolioIDSelector,*v1.Selector) - - // Product identifier. - // +crossplane:generate:reference:type=Product - // +kubebuilder:validation:Optional - productId?: null | string @go(ProductID,*string) - - // Reference to a Product to populate productId. - // +kubebuilder:validation:Optional - productIdRef?: null | v1.#Reference @go(ProductIDRef,*v1.Reference) - - // Selector for a Product to populate productId. - // +kubebuilder:validation:Optional - productIdSelector?: null | v1.#Selector @go(ProductIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Identifier of the source portfolio. - // +kubebuilder:validation:Optional - sourcePortfolioId?: null | string @go(SourcePortfolioID,*string) -} - -// ProductPortfolioAssociationSpec defines the desired state of ProductPortfolioAssociation -#ProductPortfolioAssociationSpec: { - v1.#ResourceSpec - forProvider: #ProductPortfolioAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProductPortfolioAssociationInitParameters @go(InitProvider) -} - -// ProductPortfolioAssociationStatus defines the observed state of ProductPortfolioAssociation. -#ProductPortfolioAssociationStatus: { - v1.#ResourceStatus - atProvider?: #ProductPortfolioAssociationObservation @go(AtProvider) -} - -// ProductPortfolioAssociation is the Schema for the ProductPortfolioAssociations API. Manages a Service Catalog Product Portfolio Association -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ProductPortfolioAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.acceptLanguage) || (has(self.initProvider) && has(self.initProvider.acceptLanguage))",message="spec.forProvider.acceptLanguage is a required parameter" - spec: #ProductPortfolioAssociationSpec @go(Spec) - status?: #ProductPortfolioAssociationStatus @go(Status) -} - -// ProductPortfolioAssociationList contains a list of ProductPortfolioAssociations -#ProductPortfolioAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ProductPortfolioAssociation] @go(Items,[]ProductPortfolioAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_provisioningartifact_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_provisioningartifact_types_go_gen.cue deleted file mode 100644 index 5bd81c9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_provisioningartifact_types_go_gen.cue +++ /dev/null @@ -1,182 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicecatalog/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ProvisioningArtifactInitParameters: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). The default value is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Whether the product version is active. Inactive provisioning artifacts are invisible to end users. End users cannot launch or update a provisioned product from an inactive provisioning artifact. Default is true. - active?: null | bool @go(Active,*bool) - - // Description of the provisioning artifact (i.e., version), including how it differs from the previous provisioning artifact. - description?: null | string @go(Description,*string) - - // Whether AWS Service Catalog stops validating the specified provisioning artifact template even if it is invalid. - disableTemplateValidation?: null | bool @go(DisableTemplateValidation,*bool) - - // Information set by the administrator to provide guidance to end users about which provisioning artifacts to use. Valid values are DEFAULT and DEPRECATED. The default is DEFAULT. Users are able to make updates to a provisioned product of a deprecated version but cannot launch new provisioned products using a deprecated version. - guidance?: null | string @go(Guidance,*string) - - // Name of the provisioning artifact (for example, v1, v2beta). No spaces are allowed. - name?: null | string @go(Name,*string) - - // Template source as the physical ID of the resource that contains the template. Currently only supports CloudFormation stack ARN. Specify the physical ID as arn:[partition]:cloudformation:[region]:[account ID]:stack/[stack name]/[resource ID]. - templatePhysicalId?: null | string @go(TemplatePhysicalID,*string) - - // Template source as URL of the CloudFormation template in Amazon S3. - templateUrl?: null | string @go(TemplateURL,*string) - - // Type of provisioning artifact. See AWS Docs for valid list of values. - type?: null | string @go(Type,*string) -} - -#ProvisioningArtifactObservation: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). The default value is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Whether the product version is active. Inactive provisioning artifacts are invisible to end users. End users cannot launch or update a provisioned product from an inactive provisioning artifact. Default is true. - active?: null | bool @go(Active,*bool) - - // Time when the provisioning artifact was created. - createdTime?: null | string @go(CreatedTime,*string) - - // Description of the provisioning artifact (i.e., version), including how it differs from the previous provisioning artifact. - description?: null | string @go(Description,*string) - - // Whether AWS Service Catalog stops validating the specified provisioning artifact template even if it is invalid. - disableTemplateValidation?: null | bool @go(DisableTemplateValidation,*bool) - - // Information set by the administrator to provide guidance to end users about which provisioning artifacts to use. Valid values are DEFAULT and DEPRECATED. The default is DEFAULT. Users are able to make updates to a provisioned product of a deprecated version but cannot launch new provisioned products using a deprecated version. - guidance?: null | string @go(Guidance,*string) - - // Provisioning artifact identifier and product identifier separated by a colon. - id?: null | string @go(ID,*string) - - // Name of the provisioning artifact (for example, v1, v2beta). No spaces are allowed. - name?: null | string @go(Name,*string) - - // Identifier of the product. - productId?: null | string @go(ProductID,*string) - - // Provisioning artifact identifier. - provisioningArtifactId?: null | string @go(ProvisioningArtifactID,*string) - - // Template source as the physical ID of the resource that contains the template. Currently only supports CloudFormation stack ARN. Specify the physical ID as arn:[partition]:cloudformation:[region]:[account ID]:stack/[stack name]/[resource ID]. - templatePhysicalId?: null | string @go(TemplatePhysicalID,*string) - - // Template source as URL of the CloudFormation template in Amazon S3. - templateUrl?: null | string @go(TemplateURL,*string) - - // Type of provisioning artifact. See AWS Docs for valid list of values. - type?: null | string @go(Type,*string) -} - -#ProvisioningArtifactParameters: { - // Language code. Valid values: en (English), jp (Japanese), zh (Chinese). The default value is en. - // +kubebuilder:validation:Optional - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Whether the product version is active. Inactive provisioning artifacts are invisible to end users. End users cannot launch or update a provisioned product from an inactive provisioning artifact. Default is true. - // +kubebuilder:validation:Optional - active?: null | bool @go(Active,*bool) - - // Description of the provisioning artifact (i.e., version), including how it differs from the previous provisioning artifact. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Whether AWS Service Catalog stops validating the specified provisioning artifact template even if it is invalid. - // +kubebuilder:validation:Optional - disableTemplateValidation?: null | bool @go(DisableTemplateValidation,*bool) - - // Information set by the administrator to provide guidance to end users about which provisioning artifacts to use. Valid values are DEFAULT and DEPRECATED. The default is DEFAULT. Users are able to make updates to a provisioned product of a deprecated version but cannot launch new provisioned products using a deprecated version. - // +kubebuilder:validation:Optional - guidance?: null | string @go(Guidance,*string) - - // Name of the provisioning artifact (for example, v1, v2beta). No spaces are allowed. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Identifier of the product. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/servicecatalog/v1beta1.Product - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - productId?: null | string @go(ProductID,*string) - - // Reference to a Product in servicecatalog to populate productId. - // +kubebuilder:validation:Optional - productIdRef?: null | v1.#Reference @go(ProductIDRef,*v1.Reference) - - // Selector for a Product in servicecatalog to populate productId. - // +kubebuilder:validation:Optional - productIdSelector?: null | v1.#Selector @go(ProductIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Template source as the physical ID of the resource that contains the template. Currently only supports CloudFormation stack ARN. Specify the physical ID as arn:[partition]:cloudformation:[region]:[account ID]:stack/[stack name]/[resource ID]. - // +kubebuilder:validation:Optional - templatePhysicalId?: null | string @go(TemplatePhysicalID,*string) - - // Template source as URL of the CloudFormation template in Amazon S3. - // +kubebuilder:validation:Optional - templateUrl?: null | string @go(TemplateURL,*string) - - // Type of provisioning artifact. See AWS Docs for valid list of values. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// ProvisioningArtifactSpec defines the desired state of ProvisioningArtifact -#ProvisioningArtifactSpec: { - v1.#ResourceSpec - forProvider: #ProvisioningArtifactParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ProvisioningArtifactInitParameters @go(InitProvider) -} - -// ProvisioningArtifactStatus defines the observed state of ProvisioningArtifact. -#ProvisioningArtifactStatus: { - v1.#ResourceStatus - atProvider?: #ProvisioningArtifactObservation @go(AtProvider) -} - -// ProvisioningArtifact is the Schema for the ProvisioningArtifacts API. Manages a Service Catalog Provisioning Artifact -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ProvisioningArtifact: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ProvisioningArtifactSpec @go(Spec) - status?: #ProvisioningArtifactStatus @go(Status) -} - -// ProvisioningArtifactList contains a list of ProvisioningArtifacts -#ProvisioningArtifactList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ProvisioningArtifact] @go(Items,[]ProvisioningArtifact) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_serviceaction_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_serviceaction_types_go_gen.cue deleted file mode 100644 index 618c089..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_serviceaction_types_go_gen.cue +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicecatalog/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DefinitionInitParameters: { - // ARN of the role that performs the self-service actions on your behalf. For example, arn:aws:iam::12345678910:role/ActionRole. To reuse the provisioned product launch role, set to LAUNCH_ROLE. - assumeRole?: null | string @go(AssumeRole,*string) - - // Name of the SSM document. For example, AWS-RestartEC2Instance. If you are using a shared SSM document, you must provide the ARN instead of the name. - name?: null | string @go(Name,*string) - - // List of parameters in JSON format. For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}] or [{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}]. - parameters?: null | string @go(Parameters,*string) - - // Service action definition type. Valid value is SSM_AUTOMATION. Default is SSM_AUTOMATION. - type?: null | string @go(Type,*string) - - // SSM document version. For example, 1. - version?: null | string @go(Version,*string) -} - -#DefinitionObservation: { - // ARN of the role that performs the self-service actions on your behalf. For example, arn:aws:iam::12345678910:role/ActionRole. To reuse the provisioned product launch role, set to LAUNCH_ROLE. - assumeRole?: null | string @go(AssumeRole,*string) - - // Name of the SSM document. For example, AWS-RestartEC2Instance. If you are using a shared SSM document, you must provide the ARN instead of the name. - name?: null | string @go(Name,*string) - - // List of parameters in JSON format. For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}] or [{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}]. - parameters?: null | string @go(Parameters,*string) - - // Service action definition type. Valid value is SSM_AUTOMATION. Default is SSM_AUTOMATION. - type?: null | string @go(Type,*string) - - // SSM document version. For example, 1. - version?: null | string @go(Version,*string) -} - -#DefinitionParameters: { - // ARN of the role that performs the self-service actions on your behalf. For example, arn:aws:iam::12345678910:role/ActionRole. To reuse the provisioned product launch role, set to LAUNCH_ROLE. - // +kubebuilder:validation:Optional - assumeRole?: null | string @go(AssumeRole,*string) - - // Name of the SSM document. For example, AWS-RestartEC2Instance. If you are using a shared SSM document, you must provide the ARN instead of the name. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // List of parameters in JSON format. For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}] or [{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}]. - // +kubebuilder:validation:Optional - parameters?: null | string @go(Parameters,*string) - - // Service action definition type. Valid value is SSM_AUTOMATION. Default is SSM_AUTOMATION. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // SSM document version. For example, 1. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -#ServiceActionInitParameters: { - // Language code. Valid values are en (English), jp (Japanese), and zh (Chinese). Default is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Self-service action definition configuration block. Detailed below. - definition?: [...#DefinitionInitParameters] @go(Definition,[]DefinitionInitParameters) - - // Self-service action description. - description?: null | string @go(Description,*string) - - // Self-service action name. - name?: null | string @go(Name,*string) -} - -#ServiceActionObservation: { - // Language code. Valid values are en (English), jp (Japanese), and zh (Chinese). Default is en. - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Self-service action definition configuration block. Detailed below. - definition?: [...#DefinitionObservation] @go(Definition,[]DefinitionObservation) - - // Self-service action description. - description?: null | string @go(Description,*string) - - // Identifier of the service action. - id?: null | string @go(ID,*string) - - // Self-service action name. - name?: null | string @go(Name,*string) -} - -#ServiceActionParameters: { - // Language code. Valid values are en (English), jp (Japanese), and zh (Chinese). Default is en. - // +kubebuilder:validation:Optional - acceptLanguage?: null | string @go(AcceptLanguage,*string) - - // Self-service action definition configuration block. Detailed below. - // +kubebuilder:validation:Optional - definition?: [...#DefinitionParameters] @go(Definition,[]DefinitionParameters) - - // Self-service action description. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Self-service action name. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ServiceActionSpec defines the desired state of ServiceAction -#ServiceActionSpec: { - v1.#ResourceSpec - forProvider: #ServiceActionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ServiceActionInitParameters @go(InitProvider) -} - -// ServiceActionStatus defines the observed state of ServiceAction. -#ServiceActionStatus: { - v1.#ResourceStatus - atProvider?: #ServiceActionObservation @go(AtProvider) -} - -// ServiceAction is the Schema for the ServiceActions API. Manages a Service Catalog Service Action -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ServiceAction: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.definition) || (has(self.initProvider) && has(self.initProvider.definition))",message="spec.forProvider.definition is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ServiceActionSpec @go(Spec) - status?: #ServiceActionStatus @go(Status) -} - -// ServiceActionList contains a list of ServiceActions -#ServiceActionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ServiceAction] @go(Items,[]ServiceAction) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_tagoption_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_tagoption_types_go_gen.cue deleted file mode 100644 index de98948..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_tagoption_types_go_gen.cue +++ /dev/null @@ -1,103 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicecatalog/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TagOptionInitParameters: { - // Whether tag option is active. Default is true. - active?: null | bool @go(Active,*bool) - - // Tag option key. - key?: null | string @go(Key,*string) - - // Tag option value. - value?: null | string @go(Value,*string) -} - -#TagOptionObservation: { - // Whether tag option is active. Default is true. - active?: null | bool @go(Active,*bool) - - // Identifier (e.g., tag-pjtvagohlyo3m). - id?: null | string @go(ID,*string) - - // Tag option key. - key?: null | string @go(Key,*string) - owner?: null | string @go(Owner,*string) - - // Tag option value. - value?: null | string @go(Value,*string) -} - -#TagOptionParameters: { - // Whether tag option is active. Default is true. - // +kubebuilder:validation:Optional - active?: null | bool @go(Active,*bool) - - // Tag option key. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Tag option value. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// TagOptionSpec defines the desired state of TagOption -#TagOptionSpec: { - v1.#ResourceSpec - forProvider: #TagOptionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TagOptionInitParameters @go(InitProvider) -} - -// TagOptionStatus defines the observed state of TagOption. -#TagOptionStatus: { - v1.#ResourceStatus - atProvider?: #TagOptionObservation @go(AtProvider) -} - -// TagOption is the Schema for the TagOptions API. Manages a Service Catalog Tag Option -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TagOption: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.key) || (has(self.initProvider) && has(self.initProvider.key))",message="spec.forProvider.key is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.value) || (has(self.initProvider) && has(self.initProvider.value))",message="spec.forProvider.value is a required parameter" - spec: #TagOptionSpec @go(Spec) - status?: #TagOptionStatus @go(Status) -} - -// TagOptionList contains a list of TagOptions -#TagOptionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TagOption] @go(Items,[]TagOption) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_tagoptionresourceassociation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_tagoptionresourceassociation_types_go_gen.cue deleted file mode 100644 index 421809e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicecatalog/v1beta1/zz_tagoptionresourceassociation_types_go_gen.cue +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicecatalog/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TagOptionResourceAssociationInitParameters: { -} - -#TagOptionResourceAssociationObservation: { - // Identifier of the association. - id?: null | string @go(ID,*string) - - // ARN of the resource. - resourceArn?: null | string @go(ResourceArn,*string) - - // Creation time of the resource. - resourceCreatedTime?: null | string @go(ResourceCreatedTime,*string) - - // Description of the resource. - resourceDescription?: null | string @go(ResourceDescription,*string) - - // Resource identifier. - resourceId?: null | string @go(ResourceID,*string) - - // Description of the resource. - resourceName?: null | string @go(ResourceName,*string) - - // Tag Option identifier. - tagOptionId?: null | string @go(TagOptionID,*string) -} - -#TagOptionResourceAssociationParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Resource identifier. - // +crossplane:generate:reference:type=Product - // +kubebuilder:validation:Optional - resourceId?: null | string @go(ResourceID,*string) - - // Reference to a Product to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdRef?: null | v1.#Reference @go(ResourceIDRef,*v1.Reference) - - // Selector for a Product to populate resourceId. - // +kubebuilder:validation:Optional - resourceIdSelector?: null | v1.#Selector @go(ResourceIDSelector,*v1.Selector) - - // Tag Option identifier. - // +crossplane:generate:reference:type=TagOption - // +kubebuilder:validation:Optional - tagOptionId?: null | string @go(TagOptionID,*string) - - // Reference to a TagOption to populate tagOptionId. - // +kubebuilder:validation:Optional - tagOptionIdRef?: null | v1.#Reference @go(TagOptionIDRef,*v1.Reference) - - // Selector for a TagOption to populate tagOptionId. - // +kubebuilder:validation:Optional - tagOptionIdSelector?: null | v1.#Selector @go(TagOptionIDSelector,*v1.Selector) -} - -// TagOptionResourceAssociationSpec defines the desired state of TagOptionResourceAssociation -#TagOptionResourceAssociationSpec: { - v1.#ResourceSpec - forProvider: #TagOptionResourceAssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TagOptionResourceAssociationInitParameters @go(InitProvider) -} - -// TagOptionResourceAssociationStatus defines the observed state of TagOptionResourceAssociation. -#TagOptionResourceAssociationStatus: { - v1.#ResourceStatus - atProvider?: #TagOptionResourceAssociationObservation @go(AtProvider) -} - -// TagOptionResourceAssociation is the Schema for the TagOptionResourceAssociations API. Manages a Service Catalog Tag Option Resource Association -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TagOptionResourceAssociation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TagOptionResourceAssociationSpec @go(Spec) - status?: #TagOptionResourceAssociationStatus @go(Status) -} - -// TagOptionResourceAssociationList contains a list of TagOptionResourceAssociations -#TagOptionResourceAssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TagOptionResourceAssociation] @go(Items,[]TagOptionResourceAssociation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 2982c25..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicediscovery/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=servicediscovery.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "servicediscovery.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_httpnamespace_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_httpnamespace_types_go_gen.cue deleted file mode 100644 index 6c03d34..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_httpnamespace_types_go_gen.cue +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicediscovery/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HTTPNamespaceInitParameters: { - // The description that you specify for the namespace when you create it. - description?: null | string @go(Description,*string) - - // The name of the http namespace. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#HTTPNamespaceObservation: { - // The ARN that Amazon Route 53 assigns to the namespace when you create it. - arn?: null | string @go(Arn,*string) - - // The description that you specify for the namespace when you create it. - description?: null | string @go(Description,*string) - - // The name of an HTTP namespace. - httpName?: null | string @go(HTTPName,*string) - - // The ID of a namespace. - id?: null | string @go(ID,*string) - - // The name of the http namespace. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#HTTPNamespaceParameters: { - // The description that you specify for the namespace when you create it. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the http namespace. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// HTTPNamespaceSpec defines the desired state of HTTPNamespace -#HTTPNamespaceSpec: { - v1.#ResourceSpec - forProvider: #HTTPNamespaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #HTTPNamespaceInitParameters @go(InitProvider) -} - -// HTTPNamespaceStatus defines the observed state of HTTPNamespace. -#HTTPNamespaceStatus: { - v1.#ResourceStatus - atProvider?: #HTTPNamespaceObservation @go(AtProvider) -} - -// HTTPNamespace is the Schema for the HTTPNamespaces API. Provides a Service Discovery HTTP Namespace resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#HTTPNamespace: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #HTTPNamespaceSpec @go(Spec) - status?: #HTTPNamespaceStatus @go(Status) -} - -// HTTPNamespaceList contains a list of HTTPNamespaces -#HTTPNamespaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#HTTPNamespace] @go(Items,[]HTTPNamespace) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_privatednsnamespace_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_privatednsnamespace_types_go_gen.cue deleted file mode 100644 index 8468078..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_privatednsnamespace_types_go_gen.cue +++ /dev/null @@ -1,126 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicediscovery/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PrivateDNSNamespaceInitParameters: { - // The description that you specify for the namespace when you create it. - description?: null | string @go(Description,*string) - - // The name of the namespace. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PrivateDNSNamespaceObservation: { - // The ARN that Amazon Route 53 assigns to the namespace when you create it. - arn?: null | string @go(Arn,*string) - - // The description that you specify for the namespace when you create it. - description?: null | string @go(Description,*string) - - // The ID for the hosted zone that Amazon Route 53 creates when you create a namespace. - hostedZone?: null | string @go(HostedZone,*string) - - // The ID of a namespace. - id?: null | string @go(ID,*string) - - // The name of the namespace. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The ID of VPC that you want to associate the namespace with. - vpc?: null | string @go(VPC,*string) -} - -#PrivateDNSNamespaceParameters: { - // The description that you specify for the namespace when you create it. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the namespace. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The ID of VPC that you want to associate the namespace with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +kubebuilder:validation:Optional - vpc?: null | string @go(VPC,*string) - - // Reference to a VPC in ec2 to populate vpc. - // +kubebuilder:validation:Optional - vpcRef?: null | v1.#Reference @go(VPCRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpc. - // +kubebuilder:validation:Optional - vpcSelector?: null | v1.#Selector @go(VPCSelector,*v1.Selector) -} - -// PrivateDNSNamespaceSpec defines the desired state of PrivateDNSNamespace -#PrivateDNSNamespaceSpec: { - v1.#ResourceSpec - forProvider: #PrivateDNSNamespaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PrivateDNSNamespaceInitParameters @go(InitProvider) -} - -// PrivateDNSNamespaceStatus defines the observed state of PrivateDNSNamespace. -#PrivateDNSNamespaceStatus: { - v1.#ResourceStatus - atProvider?: #PrivateDNSNamespaceObservation @go(AtProvider) -} - -// PrivateDNSNamespace is the Schema for the PrivateDNSNamespaces API. Provides a Service Discovery Private DNS Namespace resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PrivateDNSNamespace: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #PrivateDNSNamespaceSpec @go(Spec) - status?: #PrivateDNSNamespaceStatus @go(Status) -} - -// PrivateDNSNamespaceList contains a list of PrivateDNSNamespaces -#PrivateDNSNamespaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PrivateDNSNamespace] @go(Items,[]PrivateDNSNamespace) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_publicdnsnamespace_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_publicdnsnamespace_types_go_gen.cue deleted file mode 100644 index 7553be1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_publicdnsnamespace_types_go_gen.cue +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicediscovery/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PublicDNSNamespaceInitParameters: { - // The description that you specify for the namespace when you create it. - description?: null | string @go(Description,*string) - - // The name of the namespace. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PublicDNSNamespaceObservation: { - // The ARN that Amazon Route 53 assigns to the namespace when you create it. - arn?: null | string @go(Arn,*string) - - // The description that you specify for the namespace when you create it. - description?: null | string @go(Description,*string) - - // The ID for the hosted zone that Amazon Route 53 creates when you create a namespace. - hostedZone?: null | string @go(HostedZone,*string) - - // The ID of a namespace. - id?: null | string @go(ID,*string) - - // The name of the namespace. - name?: null | string @go(Name,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#PublicDNSNamespaceParameters: { - // The description that you specify for the namespace when you create it. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the namespace. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// PublicDNSNamespaceSpec defines the desired state of PublicDNSNamespace -#PublicDNSNamespaceSpec: { - v1.#ResourceSpec - forProvider: #PublicDNSNamespaceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PublicDNSNamespaceInitParameters @go(InitProvider) -} - -// PublicDNSNamespaceStatus defines the observed state of PublicDNSNamespace. -#PublicDNSNamespaceStatus: { - v1.#ResourceStatus - atProvider?: #PublicDNSNamespaceObservation @go(AtProvider) -} - -// PublicDNSNamespace is the Schema for the PublicDNSNamespaces API. Provides a Service Discovery Public DNS Namespace resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PublicDNSNamespace: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #PublicDNSNamespaceSpec @go(Spec) - status?: #PublicDNSNamespaceStatus @go(Status) -} - -// PublicDNSNamespaceList contains a list of PublicDNSNamespaces -#PublicDNSNamespaceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PublicDNSNamespace] @go(Items,[]PublicDNSNamespace) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_service_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_service_types_go_gen.cue deleted file mode 100644 index 70e6372..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicediscovery/v1beta1/zz_service_types_go_gen.cue +++ /dev/null @@ -1,288 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicediscovery/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DNSConfigInitParameters: { - // An array that contains one DnsRecord object for each resource record set. - dnsRecords?: [...#DNSRecordsInitParameters] @go(DNSRecords,[]DNSRecordsInitParameters) - - // The routing policy that you want to apply to all records that Route 53 creates when you register an instance and specify the service. Valid Values: MULTIVALUE, WEIGHTED - routingPolicy?: null | string @go(RoutingPolicy,*string) -} - -#DNSConfigObservation: { - // An array that contains one DnsRecord object for each resource record set. - dnsRecords?: [...#DNSRecordsObservation] @go(DNSRecords,[]DNSRecordsObservation) - - // The ID of the namespace to use for DNS configuration. - namespaceId?: null | string @go(NamespaceID,*string) - - // The routing policy that you want to apply to all records that Route 53 creates when you register an instance and specify the service. Valid Values: MULTIVALUE, WEIGHTED - routingPolicy?: null | string @go(RoutingPolicy,*string) -} - -#DNSConfigParameters: { - // An array that contains one DnsRecord object for each resource record set. - // +kubebuilder:validation:Optional - dnsRecords: [...#DNSRecordsParameters] @go(DNSRecords,[]DNSRecordsParameters) - - // The ID of the namespace to use for DNS configuration. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/servicediscovery/v1beta1.PrivateDNSNamespace - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - namespaceId?: null | string @go(NamespaceID,*string) - - // Reference to a PrivateDNSNamespace in servicediscovery to populate namespaceId. - // +kubebuilder:validation:Optional - namespaceIdRef?: null | v1.#Reference @go(NamespaceIDRef,*v1.Reference) - - // Selector for a PrivateDNSNamespace in servicediscovery to populate namespaceId. - // +kubebuilder:validation:Optional - namespaceIdSelector?: null | v1.#Selector @go(NamespaceIDSelector,*v1.Selector) - - // The routing policy that you want to apply to all records that Route 53 creates when you register an instance and specify the service. Valid Values: MULTIVALUE, WEIGHTED - // +kubebuilder:validation:Optional - routingPolicy?: null | string @go(RoutingPolicy,*string) -} - -#DNSRecordsInitParameters: { - // The amount of time, in seconds, that you want DNS resolvers to cache the settings for this resource record set. - ttl?: null | float64 @go(TTL,*float64) - - // The type of the resource, which indicates the value that Amazon Route 53 returns in response to DNS queries. Valid Values: A, AAAA, SRV, CNAME - type?: null | string @go(Type,*string) -} - -#DNSRecordsObservation: { - // The amount of time, in seconds, that you want DNS resolvers to cache the settings for this resource record set. - ttl?: null | float64 @go(TTL,*float64) - - // The type of the resource, which indicates the value that Amazon Route 53 returns in response to DNS queries. Valid Values: A, AAAA, SRV, CNAME - type?: null | string @go(Type,*string) -} - -#DNSRecordsParameters: { - // The amount of time, in seconds, that you want DNS resolvers to cache the settings for this resource record set. - // +kubebuilder:validation:Optional - ttl?: null | float64 @go(TTL,*float64) - - // The type of the resource, which indicates the value that Amazon Route 53 returns in response to DNS queries. Valid Values: A, AAAA, SRV, CNAME - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#HealthCheckConfigInitParameters: { - // The number of consecutive health checks. Maximum value of 10. - failureThreshold?: null | float64 @go(FailureThreshold,*float64) - - // The path that you want Route 53 to request when performing health checks. Route 53 automatically adds the DNS name for the service. If you don't specify a value, the default value is /. - resourcePath?: null | string @go(ResourcePath,*string) - - // The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy. Valid Values: HTTP, HTTPS, TCP - type?: null | string @go(Type,*string) -} - -#HealthCheckConfigObservation: { - // The number of consecutive health checks. Maximum value of 10. - failureThreshold?: null | float64 @go(FailureThreshold,*float64) - - // The path that you want Route 53 to request when performing health checks. Route 53 automatically adds the DNS name for the service. If you don't specify a value, the default value is /. - resourcePath?: null | string @go(ResourcePath,*string) - - // The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy. Valid Values: HTTP, HTTPS, TCP - type?: null | string @go(Type,*string) -} - -#HealthCheckConfigParameters: { - // The number of consecutive health checks. Maximum value of 10. - // +kubebuilder:validation:Optional - failureThreshold?: null | float64 @go(FailureThreshold,*float64) - - // The path that you want Route 53 to request when performing health checks. Route 53 automatically adds the DNS name for the service. If you don't specify a value, the default value is /. - // +kubebuilder:validation:Optional - resourcePath?: null | string @go(ResourcePath,*string) - - // The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy. Valid Values: HTTP, HTTPS, TCP - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#HealthCheckCustomConfigInitParameters: { - // The number of 30-second intervals that you want service discovery to wait before it changes the health status of a service instance. Maximum value of 10. - failureThreshold?: null | float64 @go(FailureThreshold,*float64) -} - -#HealthCheckCustomConfigObservation: { - // The number of 30-second intervals that you want service discovery to wait before it changes the health status of a service instance. Maximum value of 10. - failureThreshold?: null | float64 @go(FailureThreshold,*float64) -} - -#HealthCheckCustomConfigParameters: { - // The number of 30-second intervals that you want service discovery to wait before it changes the health status of a service instance. Maximum value of 10. - // +kubebuilder:validation:Optional - failureThreshold?: null | float64 @go(FailureThreshold,*float64) -} - -#ServiceInitParameters: { - // A complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance. - dnsConfig?: [...#DNSConfigInitParameters] @go(DNSConfig,[]DNSConfigInitParameters) - - // The description of the service. - description?: null | string @go(Description,*string) - - // A boolean that indicates all instances should be deleted from the service so that the service can be destroyed without error. These instances are not recoverable. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // A complex type that contains settings for an optional health check. Only for Public DNS namespaces. - healthCheckConfig?: [...#HealthCheckConfigInitParameters] @go(HealthCheckConfig,[]HealthCheckConfigInitParameters) - - // A complex type that contains settings for ECS managed health checks. - healthCheckCustomConfig?: [...#HealthCheckCustomConfigInitParameters] @go(HealthCheckCustomConfig,[]HealthCheckCustomConfigInitParameters) - - // The name of the service. - name?: null | string @go(Name,*string) - - // The ID of the namespace that you want to use to create the service. - namespaceId?: null | string @go(NamespaceID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // If present, specifies that the service instances are only discoverable using the DiscoverInstances API operation. No DNS records is registered for the service instances. The only valid value is HTTP. - type?: null | string @go(Type,*string) -} - -#ServiceObservation: { - // The ARN of the service. - arn?: null | string @go(Arn,*string) - - // A complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance. - dnsConfig?: [...#DNSConfigObservation] @go(DNSConfig,[]DNSConfigObservation) - - // The description of the service. - description?: null | string @go(Description,*string) - - // A boolean that indicates all instances should be deleted from the service so that the service can be destroyed without error. These instances are not recoverable. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // A complex type that contains settings for an optional health check. Only for Public DNS namespaces. - healthCheckConfig?: [...#HealthCheckConfigObservation] @go(HealthCheckConfig,[]HealthCheckConfigObservation) - - // A complex type that contains settings for ECS managed health checks. - healthCheckCustomConfig?: [...#HealthCheckCustomConfigObservation] @go(HealthCheckCustomConfig,[]HealthCheckCustomConfigObservation) - - // The ID of the service. - id?: null | string @go(ID,*string) - - // The name of the service. - name?: null | string @go(Name,*string) - - // The ID of the namespace that you want to use to create the service. - namespaceId?: null | string @go(NamespaceID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // If present, specifies that the service instances are only discoverable using the DiscoverInstances API operation. No DNS records is registered for the service instances. The only valid value is HTTP. - type?: null | string @go(Type,*string) -} - -#ServiceParameters: { - // A complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance. - // +kubebuilder:validation:Optional - dnsConfig?: [...#DNSConfigParameters] @go(DNSConfig,[]DNSConfigParameters) - - // The description of the service. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A boolean that indicates all instances should be deleted from the service so that the service can be destroyed without error. These instances are not recoverable. - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // A complex type that contains settings for an optional health check. Only for Public DNS namespaces. - // +kubebuilder:validation:Optional - healthCheckConfig?: [...#HealthCheckConfigParameters] @go(HealthCheckConfig,[]HealthCheckConfigParameters) - - // A complex type that contains settings for ECS managed health checks. - // +kubebuilder:validation:Optional - healthCheckCustomConfig?: [...#HealthCheckCustomConfigParameters] @go(HealthCheckCustomConfig,[]HealthCheckCustomConfigParameters) - - // The name of the service. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The ID of the namespace that you want to use to create the service. - // +kubebuilder:validation:Optional - namespaceId?: null | string @go(NamespaceID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // If present, specifies that the service instances are only discoverable using the DiscoverInstances API operation. No DNS records is registered for the service instances. The only valid value is HTTP. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// ServiceSpec defines the desired state of Service -#ServiceSpec: { - v1.#ResourceSpec - forProvider: #ServiceParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ServiceInitParameters @go(InitProvider) -} - -// ServiceStatus defines the observed state of Service. -#ServiceStatus: { - v1.#ResourceStatus - atProvider?: #ServiceObservation @go(AtProvider) -} - -// Service is the Schema for the Services API. Provides a Service Discovery Service resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Service: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ServiceSpec @go(Spec) - status?: #ServiceStatus @go(Status) -} - -// ServiceList contains a list of Services -#ServiceList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Service] @go(Items,[]Service) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicequotas/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicequotas/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index cc97883..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicequotas/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicequotas/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=servicequotas.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "servicequotas.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicequotas/v1beta1/zz_servicequota_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/servicequotas/v1beta1/zz_servicequota_types_go_gen.cue deleted file mode 100644 index dfad10a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/servicequotas/v1beta1/zz_servicequota_types_go_gen.cue +++ /dev/null @@ -1,158 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/servicequotas/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MetricDimensionsInitParameters: { -} - -#MetricDimensionsObservation: { - class?: null | string @go(Class,*string) - resource?: null | string @go(Resource,*string) - service?: null | string @go(Service,*string) - type?: null | string @go(Type,*string) -} - -#MetricDimensionsParameters: { -} - -#ServiceQuotaInitParameters: { - // Code of the service quota to track. For example: L-F678F1CE. Available values can be found with the AWS CLI service-quotas list-service-quotas command. - quotaCode?: null | string @go(QuotaCode,*string) - - // Code of the service to track. For example: vpc. Available values can be found with the AWS CLI service-quotas list-services command. - serviceCode?: null | string @go(ServiceCode,*string) - - // Float specifying the desired value for the service quota. If the desired value is higher than the current value, a quota increase request is submitted. When a known request is submitted and pending, the value reflects the desired value of the pending request. - value?: null | float64 @go(Value,*float64) -} - -#ServiceQuotaObservation: { - // Whether the service quota can be increased. - adjustable?: null | bool @go(Adjustable,*bool) - - // Amazon Resource Name (ARN) of the service quota. - arn?: null | string @go(Arn,*string) - - // Default value of the service quota. - defaultValue?: null | float64 @go(DefaultValue,*float64) - - // Service code and quota code, separated by a front slash (/) - id?: null | string @go(ID,*string) - - // Code of the service quota to track. For example: L-F678F1CE. Available values can be found with the AWS CLI service-quotas list-service-quotas command. - quotaCode?: null | string @go(QuotaCode,*string) - - // Name of the quota. - quotaName?: null | string @go(QuotaName,*string) - - // Service code and quota code, separated by a front slash (/) - requestId?: null | string @go(RequestID,*string) - requestStatus?: null | string @go(RequestStatus,*string) - - // Code of the service to track. For example: vpc. Available values can be found with the AWS CLI service-quotas list-services command. - serviceCode?: null | string @go(ServiceCode,*string) - - // Name of the service. - serviceName?: null | string @go(ServiceName,*string) - - // Information about the measurement. - usageMetric?: [...#UsageMetricObservation] @go(UsageMetric,[]UsageMetricObservation) - - // Float specifying the desired value for the service quota. If the desired value is higher than the current value, a quota increase request is submitted. When a known request is submitted and pending, the value reflects the desired value of the pending request. - value?: null | float64 @go(Value,*float64) -} - -#ServiceQuotaParameters: { - // Code of the service quota to track. For example: L-F678F1CE. Available values can be found with the AWS CLI service-quotas list-service-quotas command. - // +kubebuilder:validation:Optional - quotaCode?: null | string @go(QuotaCode,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Code of the service to track. For example: vpc. Available values can be found with the AWS CLI service-quotas list-services command. - // +kubebuilder:validation:Optional - serviceCode?: null | string @go(ServiceCode,*string) - - // Float specifying the desired value for the service quota. If the desired value is higher than the current value, a quota increase request is submitted. When a known request is submitted and pending, the value reflects the desired value of the pending request. - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#UsageMetricInitParameters: { -} - -#UsageMetricObservation: { - // The metric dimensions. - metricDimensions?: [...#MetricDimensionsObservation] @go(MetricDimensions,[]MetricDimensionsObservation) - - // The name of the metric. - metricName?: null | string @go(MetricName,*string) - - // The namespace of the metric. - metricNamespace?: null | string @go(MetricNamespace,*string) - - // The metric statistic that AWS recommend you use when determining quota usage. - metricStatisticRecommendation?: null | string @go(MetricStatisticRecommendation,*string) -} - -#UsageMetricParameters: { -} - -// ServiceQuotaSpec defines the desired state of ServiceQuota -#ServiceQuotaSpec: { - v1.#ResourceSpec - forProvider: #ServiceQuotaParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ServiceQuotaInitParameters @go(InitProvider) -} - -// ServiceQuotaStatus defines the observed state of ServiceQuota. -#ServiceQuotaStatus: { - v1.#ResourceStatus - atProvider?: #ServiceQuotaObservation @go(AtProvider) -} - -// ServiceQuota is the Schema for the ServiceQuotas API. Manages an individual Service Quota -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ServiceQuota: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.quotaCode) || (has(self.initProvider) && has(self.initProvider.quotaCode))",message="spec.forProvider.quotaCode is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceCode) || (has(self.initProvider) && has(self.initProvider.serviceCode))",message="spec.forProvider.serviceCode is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.value) || (has(self.initProvider) && has(self.initProvider.value))",message="spec.forProvider.value is a required parameter" - spec: #ServiceQuotaSpec @go(Spec) - status?: #ServiceQuotaStatus @go(Status) -} - -// ServiceQuotaList contains a list of ServiceQuotas -#ServiceQuotaList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ServiceQuota] @go(Items,[]ServiceQuota) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_activereceiptruleset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_activereceiptruleset_types_go_gen.cue deleted file mode 100644 index 3bd5981..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_activereceiptruleset_types_go_gen.cue +++ /dev/null @@ -1,84 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActiveReceiptRuleSetInitParameters: { - // The name of the rule set - ruleSetName?: null | string @go(RuleSetName,*string) -} - -#ActiveReceiptRuleSetObservation: { - // The SES receipt rule set ARN. - arn?: null | string @go(Arn,*string) - - // The SES receipt rule set name. - id?: null | string @go(ID,*string) - - // The name of the rule set - ruleSetName?: null | string @go(RuleSetName,*string) -} - -#ActiveReceiptRuleSetParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the rule set - // +kubebuilder:validation:Optional - ruleSetName?: null | string @go(RuleSetName,*string) -} - -// ActiveReceiptRuleSetSpec defines the desired state of ActiveReceiptRuleSet -#ActiveReceiptRuleSetSpec: { - v1.#ResourceSpec - forProvider: #ActiveReceiptRuleSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ActiveReceiptRuleSetInitParameters @go(InitProvider) -} - -// ActiveReceiptRuleSetStatus defines the observed state of ActiveReceiptRuleSet. -#ActiveReceiptRuleSetStatus: { - v1.#ResourceStatus - atProvider?: #ActiveReceiptRuleSetObservation @go(AtProvider) -} - -// ActiveReceiptRuleSet is the Schema for the ActiveReceiptRuleSets API. Provides a resource to designate the active SES receipt rule set -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ActiveReceiptRuleSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ruleSetName) || (has(self.initProvider) && has(self.initProvider.ruleSetName))",message="spec.forProvider.ruleSetName is a required parameter" - spec: #ActiveReceiptRuleSetSpec @go(Spec) - status?: #ActiveReceiptRuleSetStatus @go(Status) -} - -// ActiveReceiptRuleSetList contains a list of ActiveReceiptRuleSets -#ActiveReceiptRuleSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ActiveReceiptRuleSet] @go(Items,[]ActiveReceiptRuleSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_configurationset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_configurationset_types_go_gen.cue deleted file mode 100644 index 01b56ea..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_configurationset_types_go_gen.cue +++ /dev/null @@ -1,147 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigurationSetInitParameters: { - // Whether messages that use the configuration set are required to use TLS. See below. - deliveryOptions?: [...#DeliveryOptionsInitParameters] @go(DeliveryOptions,[]DeliveryOptionsInitParameters) - - // Whether or not Amazon SES publishes reputation metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch. The default value is false. - reputationMetricsEnabled?: null | bool @go(ReputationMetricsEnabled,*bool) - - // Whether email sending is enabled or disabled for the configuration set. The default value is true. - sendingEnabled?: null | bool @go(SendingEnabled,*bool) - - // Domain that is used to redirect email recipients to an Amazon SES-operated domain. See below. NOTE: This functionality is best effort. - trackingOptions?: [...#TrackingOptionsInitParameters] @go(TrackingOptions,[]TrackingOptionsInitParameters) -} - -#ConfigurationSetObservation: { - // SES configuration set ARN. - arn?: null | string @go(Arn,*string) - - // Whether messages that use the configuration set are required to use TLS. See below. - deliveryOptions?: [...#DeliveryOptionsObservation] @go(DeliveryOptions,[]DeliveryOptionsObservation) - - // SES configuration set name. - id?: null | string @go(ID,*string) - - // Date and time at which the reputation metrics for the configuration set were last reset. Resetting these metrics is known as a fresh start. - lastFreshStart?: null | string @go(LastFreshStart,*string) - - // Whether or not Amazon SES publishes reputation metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch. The default value is false. - reputationMetricsEnabled?: null | bool @go(ReputationMetricsEnabled,*bool) - - // Whether email sending is enabled or disabled for the configuration set. The default value is true. - sendingEnabled?: null | bool @go(SendingEnabled,*bool) - - // Domain that is used to redirect email recipients to an Amazon SES-operated domain. See below. NOTE: This functionality is best effort. - trackingOptions?: [...#TrackingOptionsObservation] @go(TrackingOptions,[]TrackingOptionsObservation) -} - -#ConfigurationSetParameters: { - // Whether messages that use the configuration set are required to use TLS. See below. - // +kubebuilder:validation:Optional - deliveryOptions?: [...#DeliveryOptionsParameters] @go(DeliveryOptions,[]DeliveryOptionsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Whether or not Amazon SES publishes reputation metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch. The default value is false. - // +kubebuilder:validation:Optional - reputationMetricsEnabled?: null | bool @go(ReputationMetricsEnabled,*bool) - - // Whether email sending is enabled or disabled for the configuration set. The default value is true. - // +kubebuilder:validation:Optional - sendingEnabled?: null | bool @go(SendingEnabled,*bool) - - // Domain that is used to redirect email recipients to an Amazon SES-operated domain. See below. NOTE: This functionality is best effort. - // +kubebuilder:validation:Optional - trackingOptions?: [...#TrackingOptionsParameters] @go(TrackingOptions,[]TrackingOptionsParameters) -} - -#DeliveryOptionsInitParameters: { - // Whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is Require, messages are only delivered if a TLS connection can be established. If the value is Optional, messages can be delivered in plain text if a TLS connection can't be established. Valid values: Require or Optional. Defaults to Optional. - tlsPolicy?: null | string @go(TLSPolicy,*string) -} - -#DeliveryOptionsObservation: { - // Whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is Require, messages are only delivered if a TLS connection can be established. If the value is Optional, messages can be delivered in plain text if a TLS connection can't be established. Valid values: Require or Optional. Defaults to Optional. - tlsPolicy?: null | string @go(TLSPolicy,*string) -} - -#DeliveryOptionsParameters: { - // Whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is Require, messages are only delivered if a TLS connection can be established. If the value is Optional, messages can be delivered in plain text if a TLS connection can't be established. Valid values: Require or Optional. Defaults to Optional. - // +kubebuilder:validation:Optional - tlsPolicy?: null | string @go(TLSPolicy,*string) -} - -#TrackingOptionsInitParameters: { - // Custom subdomain that is used to redirect email recipients to the Amazon SES event tracking domain. - customRedirectDomain?: null | string @go(CustomRedirectDomain,*string) -} - -#TrackingOptionsObservation: { - // Custom subdomain that is used to redirect email recipients to the Amazon SES event tracking domain. - customRedirectDomain?: null | string @go(CustomRedirectDomain,*string) -} - -#TrackingOptionsParameters: { - // Custom subdomain that is used to redirect email recipients to the Amazon SES event tracking domain. - // +kubebuilder:validation:Optional - customRedirectDomain?: null | string @go(CustomRedirectDomain,*string) -} - -// ConfigurationSetSpec defines the desired state of ConfigurationSet -#ConfigurationSetSpec: { - v1.#ResourceSpec - forProvider: #ConfigurationSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConfigurationSetInitParameters @go(InitProvider) -} - -// ConfigurationSetStatus defines the observed state of ConfigurationSet. -#ConfigurationSetStatus: { - v1.#ResourceStatus - atProvider?: #ConfigurationSetObservation @go(AtProvider) -} - -// ConfigurationSet is the Schema for the ConfigurationSets API. Provides an SES configuration set -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ConfigurationSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ConfigurationSetSpec @go(Spec) - status?: #ConfigurationSetStatus @go(Status) -} - -// ConfigurationSetList contains a list of ConfigurationSets -#ConfigurationSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConfigurationSet] @go(Items,[]ConfigurationSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_domaindkim_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_domaindkim_types_go_gen.cue deleted file mode 100644 index e0808ea..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_domaindkim_types_go_gen.cue +++ /dev/null @@ -1,74 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainDKIMInitParameters: { -} - -#DomainDKIMObservation: { - // DKIM tokens generated by SES. - // These tokens should be used to create CNAME records used to verify SES Easy DKIM. - // Find out more about verifying domains in Amazon SES - // in the AWS SES docs. - dkimTokens?: [...null | string] @go(DKIMTokens,[]*string) - id?: null | string @go(ID,*string) -} - -#DomainDKIMParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DomainDKIMSpec defines the desired state of DomainDKIM -#DomainDKIMSpec: { - v1.#ResourceSpec - forProvider: #DomainDKIMParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainDKIMInitParameters @go(InitProvider) -} - -// DomainDKIMStatus defines the observed state of DomainDKIM. -#DomainDKIMStatus: { - v1.#ResourceStatus - atProvider?: #DomainDKIMObservation @go(AtProvider) -} - -// DomainDKIM is the Schema for the DomainDKIMs API. Provides an SES domain DKIM generation resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DomainDKIM: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DomainDKIMSpec @go(Spec) - status?: #DomainDKIMStatus @go(Status) -} - -// DomainDKIMList contains a list of DomainDKIMs -#DomainDKIMList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DomainDKIM] @go(Items,[]DomainDKIM) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_domainidentity_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_domainidentity_types_go_gen.cue deleted file mode 100644 index 1d6ffb7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_domainidentity_types_go_gen.cue +++ /dev/null @@ -1,79 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainIdentityInitParameters: { -} - -#DomainIdentityObservation: { - // The ARN of the domain identity. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // A code which when added to the domain as a TXT record - // will signal to SES that the owner of the domain has authorised SES to act on - // their behalf. The domain identity will be in state "verification pending" - // until this is done. Find out more about verifying domains in Amazon - // SES in the AWS SES - // docs. - verificationToken?: null | string @go(VerificationToken,*string) -} - -#DomainIdentityParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DomainIdentitySpec defines the desired state of DomainIdentity -#DomainIdentitySpec: { - v1.#ResourceSpec - forProvider: #DomainIdentityParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainIdentityInitParameters @go(InitProvider) -} - -// DomainIdentityStatus defines the observed state of DomainIdentity. -#DomainIdentityStatus: { - v1.#ResourceStatus - atProvider?: #DomainIdentityObservation @go(AtProvider) -} - -// DomainIdentity is the Schema for the DomainIdentitys API. Provides an SES domain identity resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DomainIdentity: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DomainIdentitySpec @go(Spec) - status?: #DomainIdentityStatus @go(Status) -} - -// DomainIdentityList contains a list of DomainIdentitys -#DomainIdentityList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DomainIdentity] @go(Items,[]DomainIdentity) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_domainmailfrom_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_domainmailfrom_types_go_gen.cue deleted file mode 100644 index 941fa0c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_domainmailfrom_types_go_gen.cue +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainMailFromInitParameters: { - // The action that you want Amazon SES to take if it cannot successfully read the required MX record when you send an email. Defaults to UseDefaultValue. See the SES API documentation for more information. - behaviorOnMxFailure?: null | string @go(BehaviorOnMxFailure,*string) - - // Subdomain (of above domain) which is to be used as MAIL FROM address - mailFromDomain?: null | string @go(MailFromDomain,*string) -} - -#DomainMailFromObservation: { - // The action that you want Amazon SES to take if it cannot successfully read the required MX record when you send an email. Defaults to UseDefaultValue. See the SES API documentation for more information. - behaviorOnMxFailure?: null | string @go(BehaviorOnMxFailure,*string) - - // Verified domain name or email identity to generate DKIM tokens for. - domain?: null | string @go(Domain,*string) - - // The domain name. - id?: null | string @go(ID,*string) - - // Subdomain (of above domain) which is to be used as MAIL FROM address - mailFromDomain?: null | string @go(MailFromDomain,*string) -} - -#DomainMailFromParameters: { - // The action that you want Amazon SES to take if it cannot successfully read the required MX record when you send an email. Defaults to UseDefaultValue. See the SES API documentation for more information. - // +kubebuilder:validation:Optional - behaviorOnMxFailure?: null | string @go(BehaviorOnMxFailure,*string) - - // Verified domain name or email identity to generate DKIM tokens for. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ses/v1beta1.DomainIdentity - // +kubebuilder:validation:Optional - domain?: null | string @go(Domain,*string) - - // Reference to a DomainIdentity in ses to populate domain. - // +kubebuilder:validation:Optional - domainRef?: null | v1.#Reference @go(DomainRef,*v1.Reference) - - // Selector for a DomainIdentity in ses to populate domain. - // +kubebuilder:validation:Optional - domainSelector?: null | v1.#Selector @go(DomainSelector,*v1.Selector) - - // Subdomain (of above domain) which is to be used as MAIL FROM address - // +kubebuilder:validation:Optional - mailFromDomain?: null | string @go(MailFromDomain,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DomainMailFromSpec defines the desired state of DomainMailFrom -#DomainMailFromSpec: { - v1.#ResourceSpec - forProvider: #DomainMailFromParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainMailFromInitParameters @go(InitProvider) -} - -// DomainMailFromStatus defines the observed state of DomainMailFrom. -#DomainMailFromStatus: { - v1.#ResourceStatus - atProvider?: #DomainMailFromObservation @go(AtProvider) -} - -// DomainMailFrom is the Schema for the DomainMailFroms API. Provides an SES domain MAIL FROM resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DomainMailFrom: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.mailFromDomain) || (has(self.initProvider) && has(self.initProvider.mailFromDomain))",message="spec.forProvider.mailFromDomain is a required parameter" - spec: #DomainMailFromSpec @go(Spec) - status?: #DomainMailFromStatus @go(Status) -} - -// DomainMailFromList contains a list of DomainMailFroms -#DomainMailFromList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DomainMailFrom] @go(Items,[]DomainMailFrom) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_emailidentity_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_emailidentity_types_go_gen.cue deleted file mode 100644 index 9eb606f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_emailidentity_types_go_gen.cue +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EmailIdentityInitParameters: { - // The email address to assign to SES. - email?: null | string @go(Email,*string) -} - -#EmailIdentityObservation: { - // The ARN of the email identity. - arn?: null | string @go(Arn,*string) - - // The email address to assign to SES. - email?: null | string @go(Email,*string) - id?: null | string @go(ID,*string) -} - -#EmailIdentityParameters: { - // The email address to assign to SES. - // +kubebuilder:validation:Optional - email?: null | string @go(Email,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// EmailIdentitySpec defines the desired state of EmailIdentity -#EmailIdentitySpec: { - v1.#ResourceSpec - forProvider: #EmailIdentityParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EmailIdentityInitParameters @go(InitProvider) -} - -// EmailIdentityStatus defines the observed state of EmailIdentity. -#EmailIdentityStatus: { - v1.#ResourceStatus - atProvider?: #EmailIdentityObservation @go(AtProvider) -} - -// EmailIdentity is the Schema for the EmailIdentitys API. Provides an SES email identity resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EmailIdentity: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.email) || (has(self.initProvider) && has(self.initProvider.email))",message="spec.forProvider.email is a required parameter" - spec: #EmailIdentitySpec @go(Spec) - status?: #EmailIdentityStatus @go(Status) -} - -// EmailIdentityList contains a list of EmailIdentitys -#EmailIdentityList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EmailIdentity] @go(Items,[]EmailIdentity) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_eventdestination_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_eventdestination_types_go_gen.cue deleted file mode 100644 index 7d62315..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_eventdestination_types_go_gen.cue +++ /dev/null @@ -1,241 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CloudwatchDestinationInitParameters: { - // The default value for the event - defaultValue?: null | string @go(DefaultValue,*string) - - // The name for the dimension - dimensionName?: null | string @go(DimensionName,*string) - - // The source for the value. May be any of "messageTag", "emailHeader" or "linkTag". - valueSource?: null | string @go(ValueSource,*string) -} - -#CloudwatchDestinationObservation: { - // The default value for the event - defaultValue?: null | string @go(DefaultValue,*string) - - // The name for the dimension - dimensionName?: null | string @go(DimensionName,*string) - - // The source for the value. May be any of "messageTag", "emailHeader" or "linkTag". - valueSource?: null | string @go(ValueSource,*string) -} - -#CloudwatchDestinationParameters: { - // The default value for the event - // +kubebuilder:validation:Optional - defaultValue?: null | string @go(DefaultValue,*string) - - // The name for the dimension - // +kubebuilder:validation:Optional - dimensionName?: null | string @go(DimensionName,*string) - - // The source for the value. May be any of "messageTag", "emailHeader" or "linkTag". - // +kubebuilder:validation:Optional - valueSource?: null | string @go(ValueSource,*string) -} - -#EventDestinationInitParameters: { - // CloudWatch destination for the events - cloudwatchDestination?: [...#CloudwatchDestinationInitParameters] @go(CloudwatchDestination,[]CloudwatchDestinationInitParameters) - - // If true, the event destination will be enabled - enabled?: null | bool @go(Enabled,*bool) - - // Send the events to a kinesis firehose destination - kinesisDestination?: [...#KinesisDestinationInitParameters] @go(KinesisDestination,[]KinesisDestinationInitParameters) - - // A list of matching types. May be any of "send", "reject", "bounce", "complaint", "delivery", "open", "click", or "renderingFailure". - matchingTypes?: [...null | string] @go(MatchingTypes,[]*string) - - // Send the events to an SNS Topic destination - snsDestination?: [...#SnsDestinationInitParameters] @go(SnsDestination,[]SnsDestinationInitParameters) -} - -#EventDestinationObservation: { - // The SES event destination ARN. - arn?: null | string @go(Arn,*string) - - // CloudWatch destination for the events - cloudwatchDestination?: [...#CloudwatchDestinationObservation] @go(CloudwatchDestination,[]CloudwatchDestinationObservation) - - // The name of the configuration set - configurationSetName?: null | string @go(ConfigurationSetName,*string) - - // If true, the event destination will be enabled - enabled?: null | bool @go(Enabled,*bool) - - // The SES event destination name. - id?: null | string @go(ID,*string) - - // Send the events to a kinesis firehose destination - kinesisDestination?: [...#KinesisDestinationObservation] @go(KinesisDestination,[]KinesisDestinationObservation) - - // A list of matching types. May be any of "send", "reject", "bounce", "complaint", "delivery", "open", "click", or "renderingFailure". - matchingTypes?: [...null | string] @go(MatchingTypes,[]*string) - - // Send the events to an SNS Topic destination - snsDestination?: [...#SnsDestinationObservation] @go(SnsDestination,[]SnsDestinationObservation) -} - -#EventDestinationParameters: { - // CloudWatch destination for the events - // +kubebuilder:validation:Optional - cloudwatchDestination?: [...#CloudwatchDestinationParameters] @go(CloudwatchDestination,[]CloudwatchDestinationParameters) - - // The name of the configuration set - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ses/v1beta1.ConfigurationSet - // +kubebuilder:validation:Optional - configurationSetName?: null | string @go(ConfigurationSetName,*string) - - // Reference to a ConfigurationSet in ses to populate configurationSetName. - // +kubebuilder:validation:Optional - configurationSetNameRef?: null | v1.#Reference @go(ConfigurationSetNameRef,*v1.Reference) - - // Selector for a ConfigurationSet in ses to populate configurationSetName. - // +kubebuilder:validation:Optional - configurationSetNameSelector?: null | v1.#Selector @go(ConfigurationSetNameSelector,*v1.Selector) - - // If true, the event destination will be enabled - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Send the events to a kinesis firehose destination - // +kubebuilder:validation:Optional - kinesisDestination?: [...#KinesisDestinationParameters] @go(KinesisDestination,[]KinesisDestinationParameters) - - // A list of matching types. May be any of "send", "reject", "bounce", "complaint", "delivery", "open", "click", or "renderingFailure". - // +kubebuilder:validation:Optional - matchingTypes?: [...null | string] @go(MatchingTypes,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Send the events to an SNS Topic destination - // +kubebuilder:validation:Optional - snsDestination?: [...#SnsDestinationParameters] @go(SnsDestination,[]SnsDestinationParameters) -} - -#KinesisDestinationInitParameters: { -} - -#KinesisDestinationObservation: { - // The ARN of the role that has permissions to access the Kinesis Stream - roleArn?: null | string @go(RoleArn,*string) - - // The ARN of the Kinesis Stream - streamArn?: null | string @go(StreamArn,*string) -} - -#KinesisDestinationParameters: { - // The ARN of the role that has permissions to access the Kinesis Stream - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // The ARN of the Kinesis Stream - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/firehose/v1beta1.DeliveryStream - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",false) - // +kubebuilder:validation:Optional - streamArn?: null | string @go(StreamArn,*string) - - // Reference to a DeliveryStream in firehose to populate streamArn. - // +kubebuilder:validation:Optional - streamArnRef?: null | v1.#Reference @go(StreamArnRef,*v1.Reference) - - // Selector for a DeliveryStream in firehose to populate streamArn. - // +kubebuilder:validation:Optional - streamArnSelector?: null | v1.#Selector @go(StreamArnSelector,*v1.Selector) -} - -#SnsDestinationInitParameters: { -} - -#SnsDestinationObservation: { - // The ARN of the SNS topic - topicArn?: null | string @go(TopicArn,*string) -} - -#SnsDestinationParameters: { - // The ARN of the SNS topic - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) - - // Reference to a Topic in sns to populate topicArn. - // +kubebuilder:validation:Optional - topicArnRef?: null | v1.#Reference @go(TopicArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate topicArn. - // +kubebuilder:validation:Optional - topicArnSelector?: null | v1.#Selector @go(TopicArnSelector,*v1.Selector) -} - -// EventDestinationSpec defines the desired state of EventDestination -#EventDestinationSpec: { - v1.#ResourceSpec - forProvider: #EventDestinationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EventDestinationInitParameters @go(InitProvider) -} - -// EventDestinationStatus defines the observed state of EventDestination. -#EventDestinationStatus: { - v1.#ResourceStatus - atProvider?: #EventDestinationObservation @go(AtProvider) -} - -// EventDestination is the Schema for the EventDestinations API. Provides an SES event destination -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EventDestination: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.matchingTypes) || (has(self.initProvider) && has(self.initProvider.matchingTypes))",message="spec.forProvider.matchingTypes is a required parameter" - spec: #EventDestinationSpec @go(Spec) - status?: #EventDestinationStatus @go(Status) -} - -// EventDestinationList contains a list of EventDestinations -#EventDestinationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EventDestination] @go(Items,[]EventDestination) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 89d1731..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=ses.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "ses.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_identitynotificationtopic_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_identitynotificationtopic_types_go_gen.cue deleted file mode 100644 index f90a797..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_identitynotificationtopic_types_go_gen.cue +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IdentityNotificationTopicInitParameters: { - // Whether SES should include original email headers in SNS notifications of this type. false by default. - includeOriginalHeaders?: null | bool @go(IncludeOriginalHeaders,*bool) - - // The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery. - notificationType?: null | string @go(NotificationType,*string) -} - -#IdentityNotificationTopicObservation: { - id?: null | string @go(ID,*string) - - // The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). - identity?: null | string @go(Identity,*string) - - // Whether SES should include original email headers in SNS notifications of this type. false by default. - includeOriginalHeaders?: null | bool @go(IncludeOriginalHeaders,*bool) - - // The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery. - notificationType?: null | string @go(NotificationType,*string) - - // The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to "" (an empty string) to disable publishing. - topicArn?: null | string @go(TopicArn,*string) -} - -#IdentityNotificationTopicParameters: { - // The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ses/v1beta1.DomainIdentity - // +kubebuilder:validation:Optional - identity?: null | string @go(Identity,*string) - - // Reference to a DomainIdentity in ses to populate identity. - // +kubebuilder:validation:Optional - identityRef?: null | v1.#Reference @go(IdentityRef,*v1.Reference) - - // Selector for a DomainIdentity in ses to populate identity. - // +kubebuilder:validation:Optional - identitySelector?: null | v1.#Selector @go(IdentitySelector,*v1.Selector) - - // Whether SES should include original email headers in SNS notifications of this type. false by default. - // +kubebuilder:validation:Optional - includeOriginalHeaders?: null | bool @go(IncludeOriginalHeaders,*bool) - - // The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: Bounce, Complaint or Delivery. - // +kubebuilder:validation:Optional - notificationType?: null | string @go(NotificationType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to "" (an empty string) to disable publishing. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) - - // Reference to a Topic in sns to populate topicArn. - // +kubebuilder:validation:Optional - topicArnRef?: null | v1.#Reference @go(TopicArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate topicArn. - // +kubebuilder:validation:Optional - topicArnSelector?: null | v1.#Selector @go(TopicArnSelector,*v1.Selector) -} - -// IdentityNotificationTopicSpec defines the desired state of IdentityNotificationTopic -#IdentityNotificationTopicSpec: { - v1.#ResourceSpec - forProvider: #IdentityNotificationTopicParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IdentityNotificationTopicInitParameters @go(InitProvider) -} - -// IdentityNotificationTopicStatus defines the observed state of IdentityNotificationTopic. -#IdentityNotificationTopicStatus: { - v1.#ResourceStatus - atProvider?: #IdentityNotificationTopicObservation @go(AtProvider) -} - -// IdentityNotificationTopic is the Schema for the IdentityNotificationTopics API. Setting AWS SES Identity Notification Topic -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#IdentityNotificationTopic: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.notificationType) || (has(self.initProvider) && has(self.initProvider.notificationType))",message="spec.forProvider.notificationType is a required parameter" - spec: #IdentityNotificationTopicSpec @go(Spec) - status?: #IdentityNotificationTopicStatus @go(Status) -} - -// IdentityNotificationTopicList contains a list of IdentityNotificationTopics -#IdentityNotificationTopicList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#IdentityNotificationTopic] @go(Items,[]IdentityNotificationTopic) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_identitypolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_identitypolicy_types_go_gen.cue deleted file mode 100644 index f288e63..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_identitypolicy_types_go_gen.cue +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IdentityPolicyInitParameters: { - // Name of the policy. - name?: null | string @go(Name,*string) - - // JSON string of the policy. - policy?: null | string @go(Policy,*string) -} - -#IdentityPolicyObservation: { - id?: null | string @go(ID,*string) - - // Name or Amazon Resource Name (ARN) of the SES Identity. - identity?: null | string @go(Identity,*string) - - // Name of the policy. - name?: null | string @go(Name,*string) - - // JSON string of the policy. - policy?: null | string @go(Policy,*string) -} - -#IdentityPolicyParameters: { - // Name or Amazon Resource Name (ARN) of the SES Identity. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ses/v1beta1.DomainIdentity - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - identity?: null | string @go(Identity,*string) - - // Reference to a DomainIdentity in ses to populate identity. - // +kubebuilder:validation:Optional - identityRef?: null | v1.#Reference @go(IdentityRef,*v1.Reference) - - // Selector for a DomainIdentity in ses to populate identity. - // +kubebuilder:validation:Optional - identitySelector?: null | v1.#Selector @go(IdentitySelector,*v1.Selector) - - // Name of the policy. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // JSON string of the policy. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// IdentityPolicySpec defines the desired state of IdentityPolicy -#IdentityPolicySpec: { - v1.#ResourceSpec - forProvider: #IdentityPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IdentityPolicyInitParameters @go(InitProvider) -} - -// IdentityPolicyStatus defines the observed state of IdentityPolicy. -#IdentityPolicyStatus: { - v1.#ResourceStatus - atProvider?: #IdentityPolicyObservation @go(AtProvider) -} - -// IdentityPolicy is the Schema for the IdentityPolicys API. Manages a SES Identity Policy -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#IdentityPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #IdentityPolicySpec @go(Spec) - status?: #IdentityPolicyStatus @go(Status) -} - -// IdentityPolicyList contains a list of IdentityPolicys -#IdentityPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#IdentityPolicy] @go(Items,[]IdentityPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_receiptfilter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_receiptfilter_types_go_gen.cue deleted file mode 100644 index 4712164..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_receiptfilter_types_go_gen.cue +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ReceiptFilterInitParameters: { - // The IP address or address range to filter, in CIDR notation - cidr?: null | string @go(Cidr,*string) - - // Block or Allow - policy?: null | string @go(Policy,*string) -} - -#ReceiptFilterObservation: { - // The SES receipt filter ARN. - arn?: null | string @go(Arn,*string) - - // The IP address or address range to filter, in CIDR notation - cidr?: null | string @go(Cidr,*string) - - // The SES receipt filter name. - id?: null | string @go(ID,*string) - - // Block or Allow - policy?: null | string @go(Policy,*string) -} - -#ReceiptFilterParameters: { - // The IP address or address range to filter, in CIDR notation - // +kubebuilder:validation:Optional - cidr?: null | string @go(Cidr,*string) - - // Block or Allow - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ReceiptFilterSpec defines the desired state of ReceiptFilter -#ReceiptFilterSpec: { - v1.#ResourceSpec - forProvider: #ReceiptFilterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReceiptFilterInitParameters @go(InitProvider) -} - -// ReceiptFilterStatus defines the observed state of ReceiptFilter. -#ReceiptFilterStatus: { - v1.#ResourceStatus - atProvider?: #ReceiptFilterObservation @go(AtProvider) -} - -// ReceiptFilter is the Schema for the ReceiptFilters API. Provides an SES receipt filter -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReceiptFilter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.cidr) || (has(self.initProvider) && has(self.initProvider.cidr))",message="spec.forProvider.cidr is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #ReceiptFilterSpec @go(Spec) - status?: #ReceiptFilterStatus @go(Status) -} - -// ReceiptFilterList contains a list of ReceiptFilters -#ReceiptFilterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReceiptFilter] @go(Items,[]ReceiptFilter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_receiptrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_receiptrule_types_go_gen.cue deleted file mode 100644 index ca55dc4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_receiptrule_types_go_gen.cue +++ /dev/null @@ -1,527 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AddHeaderActionInitParameters: { - // The name of the header to add - headerName?: null | string @go(HeaderName,*string) - - // The value of the header to add - headerValue?: null | string @go(HeaderValue,*string) - - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) -} - -#AddHeaderActionObservation: { - // The name of the header to add - headerName?: null | string @go(HeaderName,*string) - - // The value of the header to add - headerValue?: null | string @go(HeaderValue,*string) - - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) -} - -#AddHeaderActionParameters: { - // The name of the header to add - // +kubebuilder:validation:Optional - headerName?: null | string @go(HeaderName,*string) - - // The value of the header to add - // +kubebuilder:validation:Optional - headerValue?: null | string @go(HeaderValue,*string) - - // The position of the action in the receipt rule - // +kubebuilder:validation:Optional - position?: null | float64 @go(Position,*float64) -} - -#BounceActionInitParameters: { - // The message to send - message?: null | string @go(Message,*string) - - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) - - // The RFC 5321 SMTP reply code - smtpReplyCode?: null | string @go(SMTPReplyCode,*string) - - // The email address of the sender - sender?: null | string @go(Sender,*string) - - // The RFC 3463 SMTP enhanced status code - statusCode?: null | string @go(StatusCode,*string) - - // The ARN of an SNS topic to notify - topicArn?: null | string @go(TopicArn,*string) -} - -#BounceActionObservation: { - // The message to send - message?: null | string @go(Message,*string) - - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) - - // The RFC 5321 SMTP reply code - smtpReplyCode?: null | string @go(SMTPReplyCode,*string) - - // The email address of the sender - sender?: null | string @go(Sender,*string) - - // The RFC 3463 SMTP enhanced status code - statusCode?: null | string @go(StatusCode,*string) - - // The ARN of an SNS topic to notify - topicArn?: null | string @go(TopicArn,*string) -} - -#BounceActionParameters: { - // The message to send - // +kubebuilder:validation:Optional - message?: null | string @go(Message,*string) - - // The position of the action in the receipt rule - // +kubebuilder:validation:Optional - position?: null | float64 @go(Position,*float64) - - // The RFC 5321 SMTP reply code - // +kubebuilder:validation:Optional - smtpReplyCode?: null | string @go(SMTPReplyCode,*string) - - // The email address of the sender - // +kubebuilder:validation:Optional - sender?: null | string @go(Sender,*string) - - // The RFC 3463 SMTP enhanced status code - // +kubebuilder:validation:Optional - statusCode?: null | string @go(StatusCode,*string) - - // The ARN of an SNS topic to notify - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) -} - -#LambdaActionInitParameters: { - // The ARN of the Lambda function to invoke - functionArn?: null | string @go(FunctionArn,*string) - - // Event or RequestResponse - invocationType?: null | string @go(InvocationType,*string) - - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) - - // The ARN of an SNS topic to notify - topicArn?: null | string @go(TopicArn,*string) -} - -#LambdaActionObservation: { - // The ARN of the Lambda function to invoke - functionArn?: null | string @go(FunctionArn,*string) - - // Event or RequestResponse - invocationType?: null | string @go(InvocationType,*string) - - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) - - // The ARN of an SNS topic to notify - topicArn?: null | string @go(TopicArn,*string) -} - -#LambdaActionParameters: { - // The ARN of the Lambda function to invoke - // +kubebuilder:validation:Optional - functionArn?: null | string @go(FunctionArn,*string) - - // Event or RequestResponse - // +kubebuilder:validation:Optional - invocationType?: null | string @go(InvocationType,*string) - - // The position of the action in the receipt rule - // +kubebuilder:validation:Optional - position?: null | float64 @go(Position,*float64) - - // The ARN of an SNS topic to notify - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) -} - -#ReceiptRuleInitParameters: { - // A list of Add Header Action blocks. Documented below. - addHeaderAction?: [...#AddHeaderActionInitParameters] @go(AddHeaderAction,[]AddHeaderActionInitParameters) - - // The name of the rule to place this rule after - after?: null | string @go(After,*string) - - // A list of Bounce Action blocks. Documented below. - bounceAction?: [...#BounceActionInitParameters] @go(BounceAction,[]BounceActionInitParameters) - - // If true, the rule will be enabled - enabled?: null | bool @go(Enabled,*bool) - - // A list of Lambda Action blocks. Documented below. - lambdaAction?: [...#LambdaActionInitParameters] @go(LambdaAction,[]LambdaActionInitParameters) - - // The name of the rule - name?: null | string @go(Name,*string) - - // A list of email addresses - recipients?: [...null | string] @go(Recipients,[]*string) - - // The name of the rule set - ruleSetName?: null | string @go(RuleSetName,*string) - - // A list of S3 Action blocks. Documented below. - s3Action?: [...#S3ActionInitParameters] @go(S3Action,[]S3ActionInitParameters) - - // If true, incoming emails will be scanned for spam and viruses - scanEnabled?: null | bool @go(ScanEnabled,*bool) - - // A list of SNS Action blocks. Documented below. - snsAction?: [...#SnsActionInitParameters] @go(SnsAction,[]SnsActionInitParameters) - - // A list of Stop Action blocks. Documented below. - stopAction?: [...#StopActionInitParameters] @go(StopAction,[]StopActionInitParameters) - - // Require or Optional - tlsPolicy?: null | string @go(TLSPolicy,*string) - - // A list of WorkMail Action blocks. Documented below. - workmailAction?: [...#WorkmailActionInitParameters] @go(WorkmailAction,[]WorkmailActionInitParameters) -} - -#ReceiptRuleObservation: { - // A list of Add Header Action blocks. Documented below. - addHeaderAction?: [...#AddHeaderActionObservation] @go(AddHeaderAction,[]AddHeaderActionObservation) - - // The name of the rule to place this rule after - after?: null | string @go(After,*string) - - // The SES receipt rule ARN. - arn?: null | string @go(Arn,*string) - - // A list of Bounce Action blocks. Documented below. - bounceAction?: [...#BounceActionObservation] @go(BounceAction,[]BounceActionObservation) - - // If true, the rule will be enabled - enabled?: null | bool @go(Enabled,*bool) - - // The SES receipt rule name. - id?: null | string @go(ID,*string) - - // A list of Lambda Action blocks. Documented below. - lambdaAction?: [...#LambdaActionObservation] @go(LambdaAction,[]LambdaActionObservation) - - // The name of the rule - name?: null | string @go(Name,*string) - - // A list of email addresses - recipients?: [...null | string] @go(Recipients,[]*string) - - // The name of the rule set - ruleSetName?: null | string @go(RuleSetName,*string) - - // A list of S3 Action blocks. Documented below. - s3Action?: [...#S3ActionObservation] @go(S3Action,[]S3ActionObservation) - - // If true, incoming emails will be scanned for spam and viruses - scanEnabled?: null | bool @go(ScanEnabled,*bool) - - // A list of SNS Action blocks. Documented below. - snsAction?: [...#SnsActionObservation] @go(SnsAction,[]SnsActionObservation) - - // A list of Stop Action blocks. Documented below. - stopAction?: [...#StopActionObservation] @go(StopAction,[]StopActionObservation) - - // Require or Optional - tlsPolicy?: null | string @go(TLSPolicy,*string) - - // A list of WorkMail Action blocks. Documented below. - workmailAction?: [...#WorkmailActionObservation] @go(WorkmailAction,[]WorkmailActionObservation) -} - -#ReceiptRuleParameters: { - // A list of Add Header Action blocks. Documented below. - // +kubebuilder:validation:Optional - addHeaderAction?: [...#AddHeaderActionParameters] @go(AddHeaderAction,[]AddHeaderActionParameters) - - // The name of the rule to place this rule after - // +kubebuilder:validation:Optional - after?: null | string @go(After,*string) - - // A list of Bounce Action blocks. Documented below. - // +kubebuilder:validation:Optional - bounceAction?: [...#BounceActionParameters] @go(BounceAction,[]BounceActionParameters) - - // If true, the rule will be enabled - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // A list of Lambda Action blocks. Documented below. - // +kubebuilder:validation:Optional - lambdaAction?: [...#LambdaActionParameters] @go(LambdaAction,[]LambdaActionParameters) - - // The name of the rule - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A list of email addresses - // +kubebuilder:validation:Optional - recipients?: [...null | string] @go(Recipients,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the rule set - // +kubebuilder:validation:Optional - ruleSetName?: null | string @go(RuleSetName,*string) - - // A list of S3 Action blocks. Documented below. - // +kubebuilder:validation:Optional - s3Action?: [...#S3ActionParameters] @go(S3Action,[]S3ActionParameters) - - // If true, incoming emails will be scanned for spam and viruses - // +kubebuilder:validation:Optional - scanEnabled?: null | bool @go(ScanEnabled,*bool) - - // A list of SNS Action blocks. Documented below. - // +kubebuilder:validation:Optional - snsAction?: [...#SnsActionParameters] @go(SnsAction,[]SnsActionParameters) - - // A list of Stop Action blocks. Documented below. - // +kubebuilder:validation:Optional - stopAction?: [...#StopActionParameters] @go(StopAction,[]StopActionParameters) - - // Require or Optional - // +kubebuilder:validation:Optional - tlsPolicy?: null | string @go(TLSPolicy,*string) - - // A list of WorkMail Action blocks. Documented below. - // +kubebuilder:validation:Optional - workmailAction?: [...#WorkmailActionParameters] @go(WorkmailAction,[]WorkmailActionParameters) -} - -#S3ActionInitParameters: { - // The name of the S3 bucket - bucketName?: null | string @go(BucketName,*string) - - // The ARN of the KMS key - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The key prefix of the S3 bucket - objectKeyPrefix?: null | string @go(ObjectKeyPrefix,*string) - - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) - - // The ARN of an SNS topic to notify - topicArn?: null | string @go(TopicArn,*string) -} - -#S3ActionObservation: { - // The name of the S3 bucket - bucketName?: null | string @go(BucketName,*string) - - // The ARN of the KMS key - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The key prefix of the S3 bucket - objectKeyPrefix?: null | string @go(ObjectKeyPrefix,*string) - - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) - - // The ARN of an SNS topic to notify - topicArn?: null | string @go(TopicArn,*string) -} - -#S3ActionParameters: { - // The name of the S3 bucket - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // The ARN of the KMS key - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // The key prefix of the S3 bucket - // +kubebuilder:validation:Optional - objectKeyPrefix?: null | string @go(ObjectKeyPrefix,*string) - - // The position of the action in the receipt rule - // +kubebuilder:validation:Optional - position?: null | float64 @go(Position,*float64) - - // The ARN of an SNS topic to notify - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) -} - -#SnsActionInitParameters: { - // The encoding to use for the email within the Amazon SNS notification. Default value is UTF-8. - encoding?: null | string @go(Encoding,*string) - - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) - - // The ARN of an SNS topic to notify - topicArn?: null | string @go(TopicArn,*string) -} - -#SnsActionObservation: { - // The encoding to use for the email within the Amazon SNS notification. Default value is UTF-8. - encoding?: null | string @go(Encoding,*string) - - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) - - // The ARN of an SNS topic to notify - topicArn?: null | string @go(TopicArn,*string) -} - -#SnsActionParameters: { - // The encoding to use for the email within the Amazon SNS notification. Default value is UTF-8. - // +kubebuilder:validation:Optional - encoding?: null | string @go(Encoding,*string) - - // The position of the action in the receipt rule - // +kubebuilder:validation:Optional - position?: null | float64 @go(Position,*float64) - - // The ARN of an SNS topic to notify - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) -} - -#StopActionInitParameters: { - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) - - // The scope to apply. The only acceptable value is RuleSet. - scope?: null | string @go(Scope,*string) - - // The ARN of an SNS topic to notify - topicArn?: null | string @go(TopicArn,*string) -} - -#StopActionObservation: { - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) - - // The scope to apply. The only acceptable value is RuleSet. - scope?: null | string @go(Scope,*string) - - // The ARN of an SNS topic to notify - topicArn?: null | string @go(TopicArn,*string) -} - -#StopActionParameters: { - // The position of the action in the receipt rule - // +kubebuilder:validation:Optional - position?: null | float64 @go(Position,*float64) - - // The scope to apply. The only acceptable value is RuleSet. - // +kubebuilder:validation:Optional - scope?: null | string @go(Scope,*string) - - // The ARN of an SNS topic to notify - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) -} - -#WorkmailActionInitParameters: { - // The ARN of the WorkMail organization - organizationArn?: null | string @go(OrganizationArn,*string) - - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) - - // The ARN of an SNS topic to notify - topicArn?: null | string @go(TopicArn,*string) -} - -#WorkmailActionObservation: { - // The ARN of the WorkMail organization - organizationArn?: null | string @go(OrganizationArn,*string) - - // The position of the action in the receipt rule - position?: null | float64 @go(Position,*float64) - - // The ARN of an SNS topic to notify - topicArn?: null | string @go(TopicArn,*string) -} - -#WorkmailActionParameters: { - // The ARN of the WorkMail organization - // +kubebuilder:validation:Optional - organizationArn?: null | string @go(OrganizationArn,*string) - - // The position of the action in the receipt rule - // +kubebuilder:validation:Optional - position?: null | float64 @go(Position,*float64) - - // The ARN of an SNS topic to notify - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) -} - -// ReceiptRuleSpec defines the desired state of ReceiptRule -#ReceiptRuleSpec: { - v1.#ResourceSpec - forProvider: #ReceiptRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReceiptRuleInitParameters @go(InitProvider) -} - -// ReceiptRuleStatus defines the observed state of ReceiptRule. -#ReceiptRuleStatus: { - v1.#ResourceStatus - atProvider?: #ReceiptRuleObservation @go(AtProvider) -} - -// ReceiptRule is the Schema for the ReceiptRules API. Provides an SES receipt rule resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReceiptRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ruleSetName) || (has(self.initProvider) && has(self.initProvider.ruleSetName))",message="spec.forProvider.ruleSetName is a required parameter" - spec: #ReceiptRuleSpec @go(Spec) - status?: #ReceiptRuleStatus @go(Status) -} - -// ReceiptRuleList contains a list of ReceiptRules -#ReceiptRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReceiptRule] @go(Items,[]ReceiptRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_receiptruleset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_receiptruleset_types_go_gen.cue deleted file mode 100644 index 690cd5c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_receiptruleset_types_go_gen.cue +++ /dev/null @@ -1,84 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ReceiptRuleSetInitParameters: { - // Name of the rule set. - ruleSetName?: null | string @go(RuleSetName,*string) -} - -#ReceiptRuleSetObservation: { - // SES receipt rule set ARN. - arn?: null | string @go(Arn,*string) - - // SES receipt rule set name. - id?: null | string @go(ID,*string) - - // Name of the rule set. - ruleSetName?: null | string @go(RuleSetName,*string) -} - -#ReceiptRuleSetParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Name of the rule set. - // +kubebuilder:validation:Optional - ruleSetName?: null | string @go(RuleSetName,*string) -} - -// ReceiptRuleSetSpec defines the desired state of ReceiptRuleSet -#ReceiptRuleSetSpec: { - v1.#ResourceSpec - forProvider: #ReceiptRuleSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ReceiptRuleSetInitParameters @go(InitProvider) -} - -// ReceiptRuleSetStatus defines the observed state of ReceiptRuleSet. -#ReceiptRuleSetStatus: { - v1.#ResourceStatus - atProvider?: #ReceiptRuleSetObservation @go(AtProvider) -} - -// ReceiptRuleSet is the Schema for the ReceiptRuleSets API. Provides an SES receipt rule set resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ReceiptRuleSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ruleSetName) || (has(self.initProvider) && has(self.initProvider.ruleSetName))",message="spec.forProvider.ruleSetName is a required parameter" - spec: #ReceiptRuleSetSpec @go(Spec) - status?: #ReceiptRuleSetStatus @go(Status) -} - -// ReceiptRuleSetList contains a list of ReceiptRuleSets -#ReceiptRuleSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ReceiptRuleSet] @go(Items,[]ReceiptRuleSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_template_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_template_types_go_gen.cue deleted file mode 100644 index fad5682..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ses/v1beta1/zz_template_types_go_gen.cue +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ses/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TemplateInitParameters: { - // The HTML body of the email. Must be less than 500KB in size, including both the text and HTML parts. - html?: null | string @go(HTML,*string) - - // The subject line of the email. - subject?: null | string @go(Subject,*string) - - // The email body that will be visible to recipients whose email clients do not display HTML. Must be less than 500KB in size, including both the text and HTML parts. - text?: null | string @go(Text,*string) -} - -#TemplateObservation: { - // The ARN of the SES template - arn?: null | string @go(Arn,*string) - - // The HTML body of the email. Must be less than 500KB in size, including both the text and HTML parts. - html?: null | string @go(HTML,*string) - - // The name of the SES template - id?: null | string @go(ID,*string) - - // The subject line of the email. - subject?: null | string @go(Subject,*string) - - // The email body that will be visible to recipients whose email clients do not display HTML. Must be less than 500KB in size, including both the text and HTML parts. - text?: null | string @go(Text,*string) -} - -#TemplateParameters: { - // The HTML body of the email. Must be less than 500KB in size, including both the text and HTML parts. - // +kubebuilder:validation:Optional - html?: null | string @go(HTML,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The subject line of the email. - // +kubebuilder:validation:Optional - subject?: null | string @go(Subject,*string) - - // The email body that will be visible to recipients whose email clients do not display HTML. Must be less than 500KB in size, including both the text and HTML parts. - // +kubebuilder:validation:Optional - text?: null | string @go(Text,*string) -} - -// TemplateSpec defines the desired state of Template -#TemplateSpec: { - v1.#ResourceSpec - forProvider: #TemplateParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TemplateInitParameters @go(InitProvider) -} - -// TemplateStatus defines the observed state of Template. -#TemplateStatus: { - v1.#ResourceStatus - atProvider?: #TemplateObservation @go(AtProvider) -} - -// Template is the Schema for the Templates API. Provides a resource to create a SES template -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Template: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TemplateSpec @go(Spec) - status?: #TemplateStatus @go(Status) -} - -// TemplateList contains a list of Templates -#TemplateList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Template] @go(Items,[]Template) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_configurationset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_configurationset_types_go_gen.cue deleted file mode 100644 index ae16e1e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_configurationset_types_go_gen.cue +++ /dev/null @@ -1,292 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sesv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ConfigurationSetInitParameters: { - // An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set. - deliveryOptions?: [...#DeliveryOptionsInitParameters] @go(DeliveryOptions,[]DeliveryOptionsInitParameters) - - // An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that use the configuration set. - reputationOptions?: [...#ReputationOptionsInitParameters] @go(ReputationOptions,[]ReputationOptionsInitParameters) - - // An object that defines whether or not Amazon SES can send email that you send using the configuration set. - sendingOptions?: [...#SendingOptionsInitParameters] @go(SendingOptions,[]SendingOptionsInitParameters) - - // An object that contains information about the suppression list preferences for your account. - suppressionOptions?: [...#SuppressionOptionsInitParameters] @go(SuppressionOptions,[]SuppressionOptionsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // An object that defines the open and click tracking options for emails that you send using the configuration set. - trackingOptions?: [...#TrackingOptionsInitParameters] @go(TrackingOptions,[]TrackingOptionsInitParameters) - - // An object that defines the VDM settings that apply to emails that you send using the configuration set. - vdmOptions?: [...#VdmOptionsInitParameters] @go(VdmOptions,[]VdmOptionsInitParameters) -} - -#ConfigurationSetObservation: { - // ARN of the Configuration Set. - arn?: null | string @go(Arn,*string) - - // An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set. - deliveryOptions?: [...#DeliveryOptionsObservation] @go(DeliveryOptions,[]DeliveryOptionsObservation) - id?: null | string @go(ID,*string) - - // An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that use the configuration set. - reputationOptions?: [...#ReputationOptionsObservation] @go(ReputationOptions,[]ReputationOptionsObservation) - - // An object that defines whether or not Amazon SES can send email that you send using the configuration set. - sendingOptions?: [...#SendingOptionsObservation] @go(SendingOptions,[]SendingOptionsObservation) - - // An object that contains information about the suppression list preferences for your account. - suppressionOptions?: [...#SuppressionOptionsObservation] @go(SuppressionOptions,[]SuppressionOptionsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // An object that defines the open and click tracking options for emails that you send using the configuration set. - trackingOptions?: [...#TrackingOptionsObservation] @go(TrackingOptions,[]TrackingOptionsObservation) - - // An object that defines the VDM settings that apply to emails that you send using the configuration set. - vdmOptions?: [...#VdmOptionsObservation] @go(VdmOptions,[]VdmOptionsObservation) -} - -#ConfigurationSetParameters: { - // An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set. - // +kubebuilder:validation:Optional - deliveryOptions?: [...#DeliveryOptionsParameters] @go(DeliveryOptions,[]DeliveryOptionsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that use the configuration set. - // +kubebuilder:validation:Optional - reputationOptions?: [...#ReputationOptionsParameters] @go(ReputationOptions,[]ReputationOptionsParameters) - - // An object that defines whether or not Amazon SES can send email that you send using the configuration set. - // +kubebuilder:validation:Optional - sendingOptions?: [...#SendingOptionsParameters] @go(SendingOptions,[]SendingOptionsParameters) - - // An object that contains information about the suppression list preferences for your account. - // +kubebuilder:validation:Optional - suppressionOptions?: [...#SuppressionOptionsParameters] @go(SuppressionOptions,[]SuppressionOptionsParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // An object that defines the open and click tracking options for emails that you send using the configuration set. - // +kubebuilder:validation:Optional - trackingOptions?: [...#TrackingOptionsParameters] @go(TrackingOptions,[]TrackingOptionsParameters) - - // An object that defines the VDM settings that apply to emails that you send using the configuration set. - // +kubebuilder:validation:Optional - vdmOptions?: [...#VdmOptionsParameters] @go(VdmOptions,[]VdmOptionsParameters) -} - -#DashboardOptionsInitParameters: { - // Specifies the status of your VDM engagement metrics collection. Valid values: ENABLED, DISABLED. - engagementMetrics?: null | string @go(EngagementMetrics,*string) -} - -#DashboardOptionsObservation: { - // Specifies the status of your VDM engagement metrics collection. Valid values: ENABLED, DISABLED. - engagementMetrics?: null | string @go(EngagementMetrics,*string) -} - -#DashboardOptionsParameters: { - // Specifies the status of your VDM engagement metrics collection. Valid values: ENABLED, DISABLED. - // +kubebuilder:validation:Optional - engagementMetrics?: null | string @go(EngagementMetrics,*string) -} - -#DeliveryOptionsInitParameters: { - // The name of the dedicated IP pool to associate with the configuration set. - sendingPoolName?: null | string @go(SendingPoolName,*string) - - // Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). Valid values: REQUIRE, OPTIONAL. - tlsPolicy?: null | string @go(TLSPolicy,*string) -} - -#DeliveryOptionsObservation: { - // The name of the dedicated IP pool to associate with the configuration set. - sendingPoolName?: null | string @go(SendingPoolName,*string) - - // Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). Valid values: REQUIRE, OPTIONAL. - tlsPolicy?: null | string @go(TLSPolicy,*string) -} - -#DeliveryOptionsParameters: { - // The name of the dedicated IP pool to associate with the configuration set. - // +kubebuilder:validation:Optional - sendingPoolName?: null | string @go(SendingPoolName,*string) - - // Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). Valid values: REQUIRE, OPTIONAL. - // +kubebuilder:validation:Optional - tlsPolicy?: null | string @go(TLSPolicy,*string) -} - -#GuardianOptionsInitParameters: { - // Specifies the status of your VDM optimized shared delivery. Valid values: ENABLED, DISABLED. - optimizedSharedDelivery?: null | string @go(OptimizedSharedDelivery,*string) -} - -#GuardianOptionsObservation: { - // Specifies the status of your VDM optimized shared delivery. Valid values: ENABLED, DISABLED. - optimizedSharedDelivery?: null | string @go(OptimizedSharedDelivery,*string) -} - -#GuardianOptionsParameters: { - // Specifies the status of your VDM optimized shared delivery. Valid values: ENABLED, DISABLED. - // +kubebuilder:validation:Optional - optimizedSharedDelivery?: null | string @go(OptimizedSharedDelivery,*string) -} - -#ReputationOptionsInitParameters: { - // If true, tracking of reputation metrics is enabled for the configuration set. If false, tracking of reputation metrics is disabled for the configuration set. - reputationMetricsEnabled?: null | bool @go(ReputationMetricsEnabled,*bool) -} - -#ReputationOptionsObservation: { - // The date and time (in Unix time) when the reputation metrics were last given a fresh start. When your account is given a fresh start, your reputation metrics are calculated starting from the date of the fresh start. - lastFreshStart?: null | string @go(LastFreshStart,*string) - - // If true, tracking of reputation metrics is enabled for the configuration set. If false, tracking of reputation metrics is disabled for the configuration set. - reputationMetricsEnabled?: null | bool @go(ReputationMetricsEnabled,*bool) -} - -#ReputationOptionsParameters: { - // If true, tracking of reputation metrics is enabled for the configuration set. If false, tracking of reputation metrics is disabled for the configuration set. - // +kubebuilder:validation:Optional - reputationMetricsEnabled?: null | bool @go(ReputationMetricsEnabled,*bool) -} - -#SendingOptionsInitParameters: { - // If true, email sending is enabled for the configuration set. If false, email sending is disabled for the configuration set. - sendingEnabled?: null | bool @go(SendingEnabled,*bool) -} - -#SendingOptionsObservation: { - // If true, email sending is enabled for the configuration set. If false, email sending is disabled for the configuration set. - sendingEnabled?: null | bool @go(SendingEnabled,*bool) -} - -#SendingOptionsParameters: { - // If true, email sending is enabled for the configuration set. If false, email sending is disabled for the configuration set. - // +kubebuilder:validation:Optional - sendingEnabled?: null | bool @go(SendingEnabled,*bool) -} - -#SuppressionOptionsInitParameters: { - // A list that contains the reasons that email addresses are automatically added to the suppression list for your account. Valid values: BOUNCE, COMPLAINT. - suppressedReasons?: [...null | string] @go(SuppressedReasons,[]*string) -} - -#SuppressionOptionsObservation: { - // A list that contains the reasons that email addresses are automatically added to the suppression list for your account. Valid values: BOUNCE, COMPLAINT. - suppressedReasons?: [...null | string] @go(SuppressedReasons,[]*string) -} - -#SuppressionOptionsParameters: { - // A list that contains the reasons that email addresses are automatically added to the suppression list for your account. Valid values: BOUNCE, COMPLAINT. - // +kubebuilder:validation:Optional - suppressedReasons?: [...null | string] @go(SuppressedReasons,[]*string) -} - -#TrackingOptionsInitParameters: { - // The domain to use for tracking open and click events. - customRedirectDomain?: null | string @go(CustomRedirectDomain,*string) -} - -#TrackingOptionsObservation: { - // The domain to use for tracking open and click events. - customRedirectDomain?: null | string @go(CustomRedirectDomain,*string) -} - -#TrackingOptionsParameters: { - // The domain to use for tracking open and click events. - // +kubebuilder:validation:Optional - customRedirectDomain?: null | string @go(CustomRedirectDomain,*string) -} - -#VdmOptionsInitParameters: { - // Specifies additional settings for your VDM configuration as applicable to the Dashboard. - dashboardOptions?: [...#DashboardOptionsInitParameters] @go(DashboardOptions,[]DashboardOptionsInitParameters) - - // Specifies additional settings for your VDM configuration as applicable to the Guardian. - guardianOptions?: [...#GuardianOptionsInitParameters] @go(GuardianOptions,[]GuardianOptionsInitParameters) -} - -#VdmOptionsObservation: { - // Specifies additional settings for your VDM configuration as applicable to the Dashboard. - dashboardOptions?: [...#DashboardOptionsObservation] @go(DashboardOptions,[]DashboardOptionsObservation) - - // Specifies additional settings for your VDM configuration as applicable to the Guardian. - guardianOptions?: [...#GuardianOptionsObservation] @go(GuardianOptions,[]GuardianOptionsObservation) -} - -#VdmOptionsParameters: { - // Specifies additional settings for your VDM configuration as applicable to the Dashboard. - // +kubebuilder:validation:Optional - dashboardOptions?: [...#DashboardOptionsParameters] @go(DashboardOptions,[]DashboardOptionsParameters) - - // Specifies additional settings for your VDM configuration as applicable to the Guardian. - // +kubebuilder:validation:Optional - guardianOptions?: [...#GuardianOptionsParameters] @go(GuardianOptions,[]GuardianOptionsParameters) -} - -// ConfigurationSetSpec defines the desired state of ConfigurationSet -#ConfigurationSetSpec: { - v1.#ResourceSpec - forProvider: #ConfigurationSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConfigurationSetInitParameters @go(InitProvider) -} - -// ConfigurationSetStatus defines the observed state of ConfigurationSet. -#ConfigurationSetStatus: { - v1.#ResourceStatus - atProvider?: #ConfigurationSetObservation @go(AtProvider) -} - -// ConfigurationSet is the Schema for the ConfigurationSets API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ConfigurationSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ConfigurationSetSpec @go(Spec) - status?: #ConfigurationSetStatus @go(Status) -} - -// ConfigurationSetList contains a list of ConfigurationSets -#ConfigurationSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConfigurationSet] @go(Items,[]ConfigurationSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_configurationseteventdestination_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_configurationseteventdestination_types_go_gen.cue deleted file mode 100644 index 3fe0aa8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_configurationseteventdestination_types_go_gen.cue +++ /dev/null @@ -1,311 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sesv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CloudWatchDestinationInitParameters: { - // An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See dimension_configuration below. - dimensionConfiguration?: [...#DimensionConfigurationInitParameters] @go(DimensionConfiguration,[]DimensionConfigurationInitParameters) -} - -#CloudWatchDestinationObservation: { - // An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See dimension_configuration below. - dimensionConfiguration?: [...#DimensionConfigurationObservation] @go(DimensionConfiguration,[]DimensionConfigurationObservation) -} - -#CloudWatchDestinationParameters: { - // An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch. See dimension_configuration below. - // +kubebuilder:validation:Optional - dimensionConfiguration: [...#DimensionConfigurationParameters] @go(DimensionConfiguration,[]DimensionConfigurationParameters) -} - -#ConfigurationSetEventDestinationInitParameters: { - // A name that identifies the event destination within the configuration set. - eventDestination?: [...#EventDestinationInitParameters] @go(EventDestination,[]EventDestinationInitParameters) - - // An object that defines the event destination. See event_destination below. - eventDestinationName?: null | string @go(EventDestinationName,*string) -} - -#ConfigurationSetEventDestinationObservation: { - // The name of the configuration set. - configurationSetName?: null | string @go(ConfigurationSetName,*string) - - // A name that identifies the event destination within the configuration set. - eventDestination?: [...#EventDestinationObservation] @go(EventDestination,[]EventDestinationObservation) - - // An object that defines the event destination. See event_destination below. - eventDestinationName?: null | string @go(EventDestinationName,*string) - - // A pipe-delimited string combining configuration_set_name and event_destination_name. - id?: null | string @go(ID,*string) -} - -#ConfigurationSetEventDestinationParameters: { - // The name of the configuration set. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sesv2/v1beta1.ConfigurationSet - // +kubebuilder:validation:Optional - configurationSetName?: null | string @go(ConfigurationSetName,*string) - - // Reference to a ConfigurationSet in sesv2 to populate configurationSetName. - // +kubebuilder:validation:Optional - configurationSetNameRef?: null | v1.#Reference @go(ConfigurationSetNameRef,*v1.Reference) - - // Selector for a ConfigurationSet in sesv2 to populate configurationSetName. - // +kubebuilder:validation:Optional - configurationSetNameSelector?: null | v1.#Selector @go(ConfigurationSetNameSelector,*v1.Selector) - - // A name that identifies the event destination within the configuration set. - // +kubebuilder:validation:Optional - eventDestination?: [...#EventDestinationParameters] @go(EventDestination,[]EventDestinationParameters) - - // An object that defines the event destination. See event_destination below. - // +kubebuilder:validation:Optional - eventDestinationName?: null | string @go(EventDestinationName,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#DimensionConfigurationInitParameters: { - // The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. - // ( dimension_name - The name of an Amazon CloudWatch dimension associated with an email sending metric. - defaultDimensionValue?: null | string @go(DefaultDimensionValue,*string) - dimensionName?: null | string @go(DimensionName,*string) - - // The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. Valid values: MESSAGE_TAG, EMAIL_HEADER, LINK_TAG. - dimensionValueSource?: null | string @go(DimensionValueSource,*string) -} - -#DimensionConfigurationObservation: { - // The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. - // ( dimension_name - The name of an Amazon CloudWatch dimension associated with an email sending metric. - defaultDimensionValue?: null | string @go(DefaultDimensionValue,*string) - dimensionName?: null | string @go(DimensionName,*string) - - // The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. Valid values: MESSAGE_TAG, EMAIL_HEADER, LINK_TAG. - dimensionValueSource?: null | string @go(DimensionValueSource,*string) -} - -#DimensionConfigurationParameters: { - // The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. - // ( dimension_name - The name of an Amazon CloudWatch dimension associated with an email sending metric. - // +kubebuilder:validation:Optional - defaultDimensionValue?: null | string @go(DefaultDimensionValue,*string) - - // +kubebuilder:validation:Optional - dimensionName?: null | string @go(DimensionName,*string) - - // The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. Valid values: MESSAGE_TAG, EMAIL_HEADER, LINK_TAG. - // +kubebuilder:validation:Optional - dimensionValueSource?: null | string @go(DimensionValueSource,*string) -} - -#EventDestinationInitParameters: { - // An object that defines an Amazon CloudWatch destination for email events. See cloud_watch_destination below - cloudWatchDestination?: [...#CloudWatchDestinationInitParameters] @go(CloudWatchDestination,[]CloudWatchDestinationInitParameters) - - // When the event destination is enabled, the specified event types are sent to the destinations. Default: false. - enabled?: null | bool @go(Enabled,*bool) - - // An object that defines an Amazon Kinesis Data Firehose destination for email events. See kinesis_firehose_destination below. - kinesisFirehoseDestination?: [...#KinesisFirehoseDestinationInitParameters] @go(KinesisFirehoseDestination,[]KinesisFirehoseDestinationInitParameters) - - // - An array that specifies which events the Amazon SES API v2 should send to the destinations. Valid values: SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE, DELIVERY_DELAY, SUBSCRIPTION. - matchingEventTypes?: [...null | string] @go(MatchingEventTypes,[]*string) - - // An object that defines an Amazon Pinpoint project destination for email events. See pinpoint_destination below. - pinpointDestination?: [...#PinpointDestinationInitParameters] @go(PinpointDestination,[]PinpointDestinationInitParameters) - - // An object that defines an Amazon SNS destination for email events. See sns_destination below. - snsDestination?: [...#SnsDestinationInitParameters] @go(SnsDestination,[]SnsDestinationInitParameters) -} - -#EventDestinationObservation: { - // An object that defines an Amazon CloudWatch destination for email events. See cloud_watch_destination below - cloudWatchDestination?: [...#CloudWatchDestinationObservation] @go(CloudWatchDestination,[]CloudWatchDestinationObservation) - - // When the event destination is enabled, the specified event types are sent to the destinations. Default: false. - enabled?: null | bool @go(Enabled,*bool) - - // An object that defines an Amazon Kinesis Data Firehose destination for email events. See kinesis_firehose_destination below. - kinesisFirehoseDestination?: [...#KinesisFirehoseDestinationObservation] @go(KinesisFirehoseDestination,[]KinesisFirehoseDestinationObservation) - - // - An array that specifies which events the Amazon SES API v2 should send to the destinations. Valid values: SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE, DELIVERY_DELAY, SUBSCRIPTION. - matchingEventTypes?: [...null | string] @go(MatchingEventTypes,[]*string) - - // An object that defines an Amazon Pinpoint project destination for email events. See pinpoint_destination below. - pinpointDestination?: [...#PinpointDestinationObservation] @go(PinpointDestination,[]PinpointDestinationObservation) - - // An object that defines an Amazon SNS destination for email events. See sns_destination below. - snsDestination?: [...#SnsDestinationObservation] @go(SnsDestination,[]SnsDestinationObservation) -} - -#EventDestinationParameters: { - // An object that defines an Amazon CloudWatch destination for email events. See cloud_watch_destination below - // +kubebuilder:validation:Optional - cloudWatchDestination?: [...#CloudWatchDestinationParameters] @go(CloudWatchDestination,[]CloudWatchDestinationParameters) - - // When the event destination is enabled, the specified event types are sent to the destinations. Default: false. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // An object that defines an Amazon Kinesis Data Firehose destination for email events. See kinesis_firehose_destination below. - // +kubebuilder:validation:Optional - kinesisFirehoseDestination?: [...#KinesisFirehoseDestinationParameters] @go(KinesisFirehoseDestination,[]KinesisFirehoseDestinationParameters) - - // - An array that specifies which events the Amazon SES API v2 should send to the destinations. Valid values: SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE, DELIVERY_DELAY, SUBSCRIPTION. - // +kubebuilder:validation:Optional - matchingEventTypes: [...null | string] @go(MatchingEventTypes,[]*string) - - // An object that defines an Amazon Pinpoint project destination for email events. See pinpoint_destination below. - // +kubebuilder:validation:Optional - pinpointDestination?: [...#PinpointDestinationParameters] @go(PinpointDestination,[]PinpointDestinationParameters) - - // An object that defines an Amazon SNS destination for email events. See sns_destination below. - // +kubebuilder:validation:Optional - snsDestination?: [...#SnsDestinationParameters] @go(SnsDestination,[]SnsDestinationParameters) -} - -#KinesisFirehoseDestinationInitParameters: { -} - -#KinesisFirehoseDestinationObservation: { - // The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to. - deliveryStreamArn?: null | string @go(DeliveryStreamArn,*string) - - // The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream. - iamRoleArn?: null | string @go(IAMRoleArn,*string) -} - -#KinesisFirehoseDestinationParameters: { - // The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/firehose/v1beta1.DeliveryStream - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",false) - // +kubebuilder:validation:Optional - deliveryStreamArn?: null | string @go(DeliveryStreamArn,*string) - - // Reference to a DeliveryStream in firehose to populate deliveryStreamArn. - // +kubebuilder:validation:Optional - deliveryStreamArnRef?: null | v1.#Reference @go(DeliveryStreamArnRef,*v1.Reference) - - // Selector for a DeliveryStream in firehose to populate deliveryStreamArn. - // +kubebuilder:validation:Optional - deliveryStreamArnSelector?: null | v1.#Selector @go(DeliveryStreamArnSelector,*v1.Selector) - - // The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - iamRoleArn?: null | string @go(IAMRoleArn,*string) - - // Reference to a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnRef?: null | v1.#Reference @go(IAMRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate iamRoleArn. - // +kubebuilder:validation:Optional - iamRoleArnSelector?: null | v1.#Selector @go(IAMRoleArnSelector,*v1.Selector) -} - -#PinpointDestinationInitParameters: { -} - -#PinpointDestinationObservation: { - applicationArn?: null | string @go(ApplicationArn,*string) -} - -#PinpointDestinationParameters: { - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/pinpoint/v1beta1.App - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - applicationArn?: null | string @go(ApplicationArn,*string) - - // Reference to a App in pinpoint to populate applicationArn. - // +kubebuilder:validation:Optional - applicationArnRef?: null | v1.#Reference @go(ApplicationArnRef,*v1.Reference) - - // Selector for a App in pinpoint to populate applicationArn. - // +kubebuilder:validation:Optional - applicationArnSelector?: null | v1.#Selector @go(ApplicationArnSelector,*v1.Selector) -} - -#SnsDestinationInitParameters: { -} - -#SnsDestinationObservation: { - // The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to. - topicArn?: null | string @go(TopicArn,*string) -} - -#SnsDestinationParameters: { - // The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) - - // Reference to a Topic in sns to populate topicArn. - // +kubebuilder:validation:Optional - topicArnRef?: null | v1.#Reference @go(TopicArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate topicArn. - // +kubebuilder:validation:Optional - topicArnSelector?: null | v1.#Selector @go(TopicArnSelector,*v1.Selector) -} - -// ConfigurationSetEventDestinationSpec defines the desired state of ConfigurationSetEventDestination -#ConfigurationSetEventDestinationSpec: { - v1.#ResourceSpec - forProvider: #ConfigurationSetEventDestinationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ConfigurationSetEventDestinationInitParameters @go(InitProvider) -} - -// ConfigurationSetEventDestinationStatus defines the observed state of ConfigurationSetEventDestination. -#ConfigurationSetEventDestinationStatus: { - v1.#ResourceStatus - atProvider?: #ConfigurationSetEventDestinationObservation @go(AtProvider) -} - -// ConfigurationSetEventDestination is the Schema for the ConfigurationSetEventDestinations API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ConfigurationSetEventDestination: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.eventDestination) || (has(self.initProvider) && has(self.initProvider.eventDestination))",message="spec.forProvider.eventDestination is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.eventDestinationName) || (has(self.initProvider) && has(self.initProvider.eventDestinationName))",message="spec.forProvider.eventDestinationName is a required parameter" - spec: #ConfigurationSetEventDestinationSpec @go(Spec) - status?: #ConfigurationSetEventDestinationStatus @go(Status) -} - -// ConfigurationSetEventDestinationList contains a list of ConfigurationSetEventDestinations -#ConfigurationSetEventDestinationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ConfigurationSetEventDestination] @go(Items,[]ConfigurationSetEventDestination) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_dedicatedippool_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_dedicatedippool_types_go_gen.cue deleted file mode 100644 index 0f286e8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_dedicatedippool_types_go_gen.cue +++ /dev/null @@ -1,91 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sesv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DedicatedIPPoolInitParameters: { - // IP pool scaling mode. Valid values: STANDARD, MANAGED. If omitted, the AWS API will default to a standard pool. - scalingMode?: null | string @go(ScalingMode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DedicatedIPPoolObservation: { - // ARN of the Dedicated IP Pool. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // IP pool scaling mode. Valid values: STANDARD, MANAGED. If omitted, the AWS API will default to a standard pool. - scalingMode?: null | string @go(ScalingMode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DedicatedIPPoolParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // IP pool scaling mode. Valid values: STANDARD, MANAGED. If omitted, the AWS API will default to a standard pool. - // +kubebuilder:validation:Optional - scalingMode?: null | string @go(ScalingMode,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// DedicatedIPPoolSpec defines the desired state of DedicatedIPPool -#DedicatedIPPoolSpec: { - v1.#ResourceSpec - forProvider: #DedicatedIPPoolParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DedicatedIPPoolInitParameters @go(InitProvider) -} - -// DedicatedIPPoolStatus defines the observed state of DedicatedIPPool. -#DedicatedIPPoolStatus: { - v1.#ResourceStatus - atProvider?: #DedicatedIPPoolObservation @go(AtProvider) -} - -// DedicatedIPPool is the Schema for the DedicatedIPPools API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DedicatedIPPool: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DedicatedIPPoolSpec @go(Spec) - status?: #DedicatedIPPoolStatus @go(Status) -} - -// DedicatedIPPoolList contains a list of DedicatedIPPools -#DedicatedIPPoolList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DedicatedIPPool] @go(Items,[]DedicatedIPPool) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_emailidentity_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_emailidentity_types_go_gen.cue deleted file mode 100644 index c7a26b3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_emailidentity_types_go_gen.cue +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sesv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DKIMSigningAttributesInitParameters: { - // [Bring Your Own DKIM] A private key that's used to generate a DKIM signature. The private key must use 1024 or 2048-bit RSA encryption, and must be encoded using base64 encoding. - domainSigningPrivateKey?: null | string @go(DomainSigningPrivateKey,*string) - - // [Bring Your Own DKIM] A string that's used to identify a public key in the DNS configuration for a domain. - domainSigningSelector?: null | string @go(DomainSigningSelector,*string) - - // [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day. Valid values: RSA_1024_BIT, RSA_2048_BIT. - nextSigningKeyLength?: null | string @go(NextSigningKeyLength,*string) -} - -#DKIMSigningAttributesObservation: { - // [Easy DKIM] The key length of the DKIM key pair in use. - currentSigningKeyLength?: null | string @go(CurrentSigningKeyLength,*string) - - // [Bring Your Own DKIM] A private key that's used to generate a DKIM signature. The private key must use 1024 or 2048-bit RSA encryption, and must be encoded using base64 encoding. - domainSigningPrivateKey?: null | string @go(DomainSigningPrivateKey,*string) - - // [Bring Your Own DKIM] A string that's used to identify a public key in the DNS configuration for a domain. - domainSigningSelector?: null | string @go(DomainSigningSelector,*string) - - // [Easy DKIM] The last time a key pair was generated for this identity. - lastKeyGenerationTimestamp?: null | string @go(LastKeyGenerationTimestamp,*string) - - // [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day. Valid values: RSA_1024_BIT, RSA_2048_BIT. - nextSigningKeyLength?: null | string @go(NextSigningKeyLength,*string) - - // A string that indicates how DKIM was configured for the identity. AWS_SES indicates that DKIM was configured for the identity by using Easy DKIM. EXTERNAL indicates that DKIM was configured for the identity by using Bring Your Own DKIM (BYODKIM). - signingAttributesOrigin?: null | string @go(SigningAttributesOrigin,*string) - - // Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. See the AWS SES API v2 Reference for supported statuses. - status?: null | string @go(Status,*string) - - // If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete. If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector for the public key. - tokens?: [...null | string] @go(Tokens,[]*string) -} - -#DKIMSigningAttributesParameters: { - // [Bring Your Own DKIM] A private key that's used to generate a DKIM signature. The private key must use 1024 or 2048-bit RSA encryption, and must be encoded using base64 encoding. - // +kubebuilder:validation:Optional - domainSigningPrivateKey?: null | string @go(DomainSigningPrivateKey,*string) - - // [Bring Your Own DKIM] A string that's used to identify a public key in the DNS configuration for a domain. - // +kubebuilder:validation:Optional - domainSigningSelector?: null | string @go(DomainSigningSelector,*string) - - // [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day. Valid values: RSA_1024_BIT, RSA_2048_BIT. - // +kubebuilder:validation:Optional - nextSigningKeyLength?: null | string @go(NextSigningKeyLength,*string) -} - -#EmailIdentityInitParameters: { - // The configuration of the DKIM authentication settings for an email domain identity. - dkimSigningAttributes?: [...#DKIMSigningAttributesInitParameters] @go(DKIMSigningAttributes,[]DKIMSigningAttributesInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#EmailIdentityObservation: { - // ARN of the Email Identity. - arn?: null | string @go(Arn,*string) - - // The configuration set to use by default when sending from this identity. Note that any configuration set defined in the email sending request takes precedence. - configurationSetName?: null | string @go(ConfigurationSetName,*string) - - // The configuration of the DKIM authentication settings for an email domain identity. - dkimSigningAttributes?: [...#DKIMSigningAttributesObservation] @go(DKIMSigningAttributes,[]DKIMSigningAttributesObservation) - id?: null | string @go(ID,*string) - - // The email identity type. Valid values: EMAIL_ADDRESS, DOMAIN. - identityType?: null | string @go(IdentityType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Specifies whether or not the identity is verified. - verifiedForSendingStatus?: null | bool @go(VerifiedForSendingStatus,*bool) -} - -#EmailIdentityParameters: { - // The configuration set to use by default when sending from this identity. Note that any configuration set defined in the email sending request takes precedence. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sesv2/v1beta1.ConfigurationSet - // +kubebuilder:validation:Optional - configurationSetName?: null | string @go(ConfigurationSetName,*string) - - // Reference to a ConfigurationSet in sesv2 to populate configurationSetName. - // +kubebuilder:validation:Optional - configurationSetNameRef?: null | v1.#Reference @go(ConfigurationSetNameRef,*v1.Reference) - - // Selector for a ConfigurationSet in sesv2 to populate configurationSetName. - // +kubebuilder:validation:Optional - configurationSetNameSelector?: null | v1.#Selector @go(ConfigurationSetNameSelector,*v1.Selector) - - // The configuration of the DKIM authentication settings for an email domain identity. - // +kubebuilder:validation:Optional - dkimSigningAttributes?: [...#DKIMSigningAttributesParameters] @go(DKIMSigningAttributes,[]DKIMSigningAttributesParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// EmailIdentitySpec defines the desired state of EmailIdentity -#EmailIdentitySpec: { - v1.#ResourceSpec - forProvider: #EmailIdentityParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EmailIdentityInitParameters @go(InitProvider) -} - -// EmailIdentityStatus defines the observed state of EmailIdentity. -#EmailIdentityStatus: { - v1.#ResourceStatus - atProvider?: #EmailIdentityObservation @go(AtProvider) -} - -// EmailIdentity is the Schema for the EmailIdentitys API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EmailIdentity: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EmailIdentitySpec @go(Spec) - status?: #EmailIdentityStatus @go(Status) -} - -// EmailIdentityList contains a list of EmailIdentitys -#EmailIdentityList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EmailIdentity] @go(Items,[]EmailIdentity) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_emailidentityfeedbackattributes_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_emailidentityfeedbackattributes_types_go_gen.cue deleted file mode 100644 index a30545a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_emailidentityfeedbackattributes_types_go_gen.cue +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sesv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EmailIdentityFeedbackAttributesInitParameters: { - // Sets the feedback forwarding configuration for the identity. - emailForwardingEnabled?: null | bool @go(EmailForwardingEnabled,*bool) -} - -#EmailIdentityFeedbackAttributesObservation: { - // Sets the feedback forwarding configuration for the identity. - emailForwardingEnabled?: null | bool @go(EmailForwardingEnabled,*bool) - id?: null | string @go(ID,*string) -} - -#EmailIdentityFeedbackAttributesParameters: { - // Sets the feedback forwarding configuration for the identity. - // +kubebuilder:validation:Optional - emailForwardingEnabled?: null | bool @go(EmailForwardingEnabled,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// EmailIdentityFeedbackAttributesSpec defines the desired state of EmailIdentityFeedbackAttributes -#EmailIdentityFeedbackAttributesSpec: { - v1.#ResourceSpec - forProvider: #EmailIdentityFeedbackAttributesParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EmailIdentityFeedbackAttributesInitParameters @go(InitProvider) -} - -// EmailIdentityFeedbackAttributesStatus defines the observed state of EmailIdentityFeedbackAttributes. -#EmailIdentityFeedbackAttributesStatus: { - v1.#ResourceStatus - atProvider?: #EmailIdentityFeedbackAttributesObservation @go(AtProvider) -} - -// EmailIdentityFeedbackAttributes is the Schema for the EmailIdentityFeedbackAttributess API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EmailIdentityFeedbackAttributes: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EmailIdentityFeedbackAttributesSpec @go(Spec) - status?: #EmailIdentityFeedbackAttributesStatus @go(Status) -} - -// EmailIdentityFeedbackAttributesList contains a list of EmailIdentityFeedbackAttributess -#EmailIdentityFeedbackAttributesList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EmailIdentityFeedbackAttributes] @go(Items,[]EmailIdentityFeedbackAttributes) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_emailidentitymailfromattributes_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_emailidentitymailfromattributes_types_go_gen.cue deleted file mode 100644 index 3a5ce80..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_emailidentitymailfromattributes_types_go_gen.cue +++ /dev/null @@ -1,87 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sesv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EmailIdentityMailFromAttributesInitParameters: { - // The action to take if the required MX record isn't found when you send an email. Valid values: USE_DEFAULT_VALUE, REJECT_MESSAGE. - behaviorOnMxFailure?: null | string @go(BehaviorOnMxFailure,*string) - - // The custom MAIL FROM domain that you want the verified identity to use. Required if behavior_on_mx_failure is REJECT_MESSAGE. - mailFromDomain?: null | string @go(MailFromDomain,*string) -} - -#EmailIdentityMailFromAttributesObservation: { - // The action to take if the required MX record isn't found when you send an email. Valid values: USE_DEFAULT_VALUE, REJECT_MESSAGE. - behaviorOnMxFailure?: null | string @go(BehaviorOnMxFailure,*string) - id?: null | string @go(ID,*string) - - // The custom MAIL FROM domain that you want the verified identity to use. Required if behavior_on_mx_failure is REJECT_MESSAGE. - mailFromDomain?: null | string @go(MailFromDomain,*string) -} - -#EmailIdentityMailFromAttributesParameters: { - // The action to take if the required MX record isn't found when you send an email. Valid values: USE_DEFAULT_VALUE, REJECT_MESSAGE. - // +kubebuilder:validation:Optional - behaviorOnMxFailure?: null | string @go(BehaviorOnMxFailure,*string) - - // The custom MAIL FROM domain that you want the verified identity to use. Required if behavior_on_mx_failure is REJECT_MESSAGE. - // +kubebuilder:validation:Optional - mailFromDomain?: null | string @go(MailFromDomain,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// EmailIdentityMailFromAttributesSpec defines the desired state of EmailIdentityMailFromAttributes -#EmailIdentityMailFromAttributesSpec: { - v1.#ResourceSpec - forProvider: #EmailIdentityMailFromAttributesParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EmailIdentityMailFromAttributesInitParameters @go(InitProvider) -} - -// EmailIdentityMailFromAttributesStatus defines the observed state of EmailIdentityMailFromAttributes. -#EmailIdentityMailFromAttributesStatus: { - v1.#ResourceStatus - atProvider?: #EmailIdentityMailFromAttributesObservation @go(AtProvider) -} - -// EmailIdentityMailFromAttributes is the Schema for the EmailIdentityMailFromAttributess API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EmailIdentityMailFromAttributes: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #EmailIdentityMailFromAttributesSpec @go(Spec) - status?: #EmailIdentityMailFromAttributesStatus @go(Status) -} - -// EmailIdentityMailFromAttributesList contains a list of EmailIdentityMailFromAttributess -#EmailIdentityMailFromAttributesList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EmailIdentityMailFromAttributes] @go(Items,[]EmailIdentityMailFromAttributes) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 8d829be..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sesv2/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sesv2/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=sesv2.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "sesv2.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sfn/v1beta1/zz_activity_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sfn/v1beta1/zz_activity_types_go_gen.cue deleted file mode 100644 index eaa7de5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sfn/v1beta1/zz_activity_types_go_gen.cue +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sfn/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActivityInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ActivityObservation: { - // The date the activity was created. - creationDate?: null | string @go(CreationDate,*string) - - // The Amazon Resource Name (ARN) that identifies the created activity. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ActivityParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ActivitySpec defines the desired state of Activity -#ActivitySpec: { - v1.#ResourceSpec - forProvider: #ActivityParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ActivityInitParameters @go(InitProvider) -} - -// ActivityStatus defines the observed state of Activity. -#ActivityStatus: { - v1.#ResourceStatus - atProvider?: #ActivityObservation @go(AtProvider) -} - -// Activity is the Schema for the Activitys API. Provides a Step Function Activity resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Activity: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ActivitySpec @go(Spec) - status?: #ActivityStatus @go(Status) -} - -// ActivityList contains a list of Activitys -#ActivityList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Activity] @go(Items,[]Activity) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sfn/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sfn/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 877e9b3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sfn/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sfn/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=sfn.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "sfn.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sfn/v1beta1/zz_statemachine_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sfn/v1beta1/zz_statemachine_types_go_gen.cue deleted file mode 100644 index acaf76d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sfn/v1beta1/zz_statemachine_types_go_gen.cue +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sfn/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#LoggingConfigurationInitParameters: { - // Determines whether execution data is included in your log. When set to false, data is excluded. - includeExecutionData?: null | bool @go(IncludeExecutionData,*bool) - - // Defines which category of execution history events are logged. Valid values: ALL, ERROR, FATAL, OFF - level?: null | string @go(Level,*string) - - // Amazon Resource Name (ARN) of a CloudWatch log group. Make sure the State Machine has the correct IAM policies for logging. The ARN must end with :* - logDestination?: null | string @go(LogDestination,*string) -} - -#LoggingConfigurationObservation: { - // Determines whether execution data is included in your log. When set to false, data is excluded. - includeExecutionData?: null | bool @go(IncludeExecutionData,*bool) - - // Defines which category of execution history events are logged. Valid values: ALL, ERROR, FATAL, OFF - level?: null | string @go(Level,*string) - - // Amazon Resource Name (ARN) of a CloudWatch log group. Make sure the State Machine has the correct IAM policies for logging. The ARN must end with :* - logDestination?: null | string @go(LogDestination,*string) -} - -#LoggingConfigurationParameters: { - // Determines whether execution data is included in your log. When set to false, data is excluded. - // +kubebuilder:validation:Optional - includeExecutionData?: null | bool @go(IncludeExecutionData,*bool) - - // Defines which category of execution history events are logged. Valid values: ALL, ERROR, FATAL, OFF - // +kubebuilder:validation:Optional - level?: null | string @go(Level,*string) - - // Amazon Resource Name (ARN) of a CloudWatch log group. Make sure the State Machine has the correct IAM policies for logging. The ARN must end with :* - // +kubebuilder:validation:Optional - logDestination?: null | string @go(LogDestination,*string) -} - -#StateMachineInitParameters: { - // The Amazon States Language definition of the state machine. - definition?: null | string @go(Definition,*string) - - // Defines what execution history events are logged and where they are logged. The logging_configuration parameter is only valid when type is set to EXPRESS. Defaults to OFF. For more information see Logging Express Workflows and Log Levels in the AWS Step Functions User Guide. - loggingConfiguration?: [...#LoggingConfigurationInitParameters] @go(LoggingConfiguration,[]LoggingConfigurationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Selects whether AWS X-Ray tracing is enabled. - tracingConfiguration?: [...#TracingConfigurationInitParameters] @go(TracingConfiguration,[]TracingConfigurationInitParameters) - - // Determines whether a Standard or Express state machine is created. The default is STANDARD. You cannot update the type of a state machine once it has been created. Valid values: STANDARD, EXPRESS. - type?: null | string @go(Type,*string) -} - -#StateMachineObservation: { - // The ARN of the state machine. - arn?: null | string @go(Arn,*string) - - // The date the state machine was created. - creationDate?: null | string @go(CreationDate,*string) - - // The Amazon States Language definition of the state machine. - definition?: null | string @go(Definition,*string) - - // The ARN of the state machine. - id?: null | string @go(ID,*string) - - // Defines what execution history events are logged and where they are logged. The logging_configuration parameter is only valid when type is set to EXPRESS. Defaults to OFF. For more information see Logging Express Workflows and Log Levels in the AWS Step Functions User Guide. - loggingConfiguration?: [...#LoggingConfigurationObservation] @go(LoggingConfiguration,[]LoggingConfigurationObservation) - - // The Amazon Resource Name (ARN) of the IAM role to use for this state machine. - roleArn?: null | string @go(RoleArn,*string) - - // The current status of the state machine. Either ACTIVE or DELETING. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Selects whether AWS X-Ray tracing is enabled. - tracingConfiguration?: [...#TracingConfigurationObservation] @go(TracingConfiguration,[]TracingConfigurationObservation) - - // Determines whether a Standard or Express state machine is created. The default is STANDARD. You cannot update the type of a state machine once it has been created. Valid values: STANDARD, EXPRESS. - type?: null | string @go(Type,*string) -} - -#StateMachineParameters: { - // The Amazon States Language definition of the state machine. - // +kubebuilder:validation:Optional - definition?: null | string @go(Definition,*string) - - // Defines what execution history events are logged and where they are logged. The logging_configuration parameter is only valid when type is set to EXPRESS. Defaults to OFF. For more information see Logging Express Workflows and Log Levels in the AWS Step Functions User Guide. - // +kubebuilder:validation:Optional - loggingConfiguration?: [...#LoggingConfigurationParameters] @go(LoggingConfiguration,[]LoggingConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The Amazon Resource Name (ARN) of the IAM role to use for this state machine. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - roleArn?: null | string @go(RoleArn,*string) - - // Reference to a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnRef?: null | v1.#Reference @go(RoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate roleArn. - // +kubebuilder:validation:Optional - roleArnSelector?: null | v1.#Selector @go(RoleArnSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Selects whether AWS X-Ray tracing is enabled. - // +kubebuilder:validation:Optional - tracingConfiguration?: [...#TracingConfigurationParameters] @go(TracingConfiguration,[]TracingConfigurationParameters) - - // Determines whether a Standard or Express state machine is created. The default is STANDARD. You cannot update the type of a state machine once it has been created. Valid values: STANDARD, EXPRESS. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#TracingConfigurationInitParameters: { - // When set to true, AWS X-Ray tracing is enabled. Make sure the State Machine has the correct IAM policies for logging. See the AWS Step Functions Developer Guide for details. - enabled?: null | bool @go(Enabled,*bool) -} - -#TracingConfigurationObservation: { - // When set to true, AWS X-Ray tracing is enabled. Make sure the State Machine has the correct IAM policies for logging. See the AWS Step Functions Developer Guide for details. - enabled?: null | bool @go(Enabled,*bool) -} - -#TracingConfigurationParameters: { - // When set to true, AWS X-Ray tracing is enabled. Make sure the State Machine has the correct IAM policies for logging. See the AWS Step Functions Developer Guide for details. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) -} - -// StateMachineSpec defines the desired state of StateMachine -#StateMachineSpec: { - v1.#ResourceSpec - forProvider: #StateMachineParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #StateMachineInitParameters @go(InitProvider) -} - -// StateMachineStatus defines the observed state of StateMachine. -#StateMachineStatus: { - v1.#ResourceStatus - atProvider?: #StateMachineObservation @go(AtProvider) -} - -// StateMachine is the Schema for the StateMachines API. Provides a Step Function State Machine resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#StateMachine: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.definition) || (has(self.initProvider) && has(self.initProvider.definition))",message="spec.forProvider.definition is a required parameter" - spec: #StateMachineSpec @go(Spec) - status?: #StateMachineStatus @go(Status) -} - -// StateMachineList contains a list of StateMachines -#StateMachineList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#StateMachine] @go(Items,[]StateMachine) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/signer/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/signer/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index d6791f8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/signer/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/signer/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=signer.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "signer.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/signer/v1beta1/zz_signingjob_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/signer/v1beta1/zz_signingjob_types_go_gen.cue deleted file mode 100644 index af39b36..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/signer/v1beta1/zz_signingjob_types_go_gen.cue +++ /dev/null @@ -1,289 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/signer/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DestinationInitParameters: { - // A configuration block describing the S3 Source object: See S3 Source below for details. - s3?: [...#S3InitParameters] @go(S3,[]S3InitParameters) -} - -#DestinationObservation: { - // A configuration block describing the S3 Source object: See S3 Source below for details. - s3?: [...#S3Observation] @go(S3,[]S3Observation) -} - -#DestinationParameters: { - // A configuration block describing the S3 Source object: See S3 Source below for details. - // +kubebuilder:validation:Optional - s3: [...#S3Parameters] @go(S3,[]S3Parameters) -} - -#RevocationRecordInitParameters: { -} - -#RevocationRecordObservation: { - reason?: null | string @go(Reason,*string) - revokedAt?: null | string @go(RevokedAt,*string) - revokedBy?: null | string @go(RevokedBy,*string) -} - -#RevocationRecordParameters: { -} - -#S3InitParameters: { - // Name of the S3 bucket. - bucket?: null | string @go(Bucket,*string) - - // An Amazon S3 object key prefix that you can use to limit signed objects keys to begin with the specified prefix. - prefix?: null | string @go(Prefix,*string) -} - -#S3Observation: { - // Name of the S3 bucket. - bucket?: null | string @go(Bucket,*string) - - // An Amazon S3 object key prefix that you can use to limit signed objects keys to begin with the specified prefix. - prefix?: null | string @go(Prefix,*string) -} - -#S3Parameters: { - // Name of the S3 bucket. - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // An Amazon S3 object key prefix that you can use to limit signed objects keys to begin with the specified prefix. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) -} - -#SignedObjectInitParameters: { -} - -#SignedObjectObservation: { - // A configuration block describing the S3 Source object: See S3 Source below for details. - s3?: [...#SignedObjectS3Observation] @go(S3,[]SignedObjectS3Observation) -} - -#SignedObjectParameters: { -} - -#SignedObjectS3InitParameters: { -} - -#SignedObjectS3Observation: { - // Name of the S3 bucket. - bucket?: null | string @go(Bucket,*string) - - // Key name of the object that contains your unsigned code. - key?: null | string @go(Key,*string) -} - -#SignedObjectS3Parameters: { -} - -#SigningJobInitParameters: { - // The S3 bucket in which to save your signed object. See Destination below for details. - destination?: [...#DestinationInitParameters] @go(Destination,[]DestinationInitParameters) - - // Set this argument to true to ignore signing job failures and retrieve failed status and reason. Default false. - ignoreSigningJobFailure?: null | bool @go(IgnoreSigningJobFailure,*bool) - - // The S3 bucket that contains the object to sign. See Source below for details. - source?: [...#SourceInitParameters] @go(Source,[]SourceInitParameters) -} - -#SigningJobObservation: { - // Date and time in RFC3339 format that the signing job was completed. - completedAt?: null | string @go(CompletedAt,*string) - - // Date and time in RFC3339 format that the signing job was created. - createdAt?: null | string @go(CreatedAt,*string) - - // The S3 bucket in which to save your signed object. See Destination below for details. - destination?: [...#DestinationObservation] @go(Destination,[]DestinationObservation) - id?: null | string @go(ID,*string) - - // Set this argument to true to ignore signing job failures and retrieve failed status and reason. Default false. - ignoreSigningJobFailure?: null | bool @go(IgnoreSigningJobFailure,*bool) - - // The ID of the signing job on output. - jobId?: null | string @go(JobID,*string) - - // The IAM entity that initiated the signing job. - jobInvoker?: null | string @go(JobInvoker,*string) - - // The AWS account ID of the job owner. - jobOwner?: null | string @go(JobOwner,*string) - - // A human-readable name for the signing platform associated with the signing job. - platformDisplayName?: null | string @go(PlatformDisplayName,*string) - - // The platform to which your signed code image will be distributed. - platformId?: null | string @go(PlatformID,*string) - - // The name of the profile to initiate the signing operation. - profileName?: null | string @go(ProfileName,*string) - - // The version of the signing profile used to initiate the signing job. - profileVersion?: null | string @go(ProfileVersion,*string) - - // The IAM principal that requested the signing job. - requestedBy?: null | string @go(RequestedBy,*string) - - // A revocation record if the signature generated by the signing job has been revoked. Contains a timestamp and the ID of the IAM entity that revoked the signature. - revocationRecord?: [...#RevocationRecordObservation] @go(RevocationRecord,[]RevocationRecordObservation) - - // The time when the signature of a signing job expires. - signatureExpiresAt?: null | string @go(SignatureExpiresAt,*string) - - // Name of the S3 bucket where the signed code image is saved by code signing. - signedObject?: [...#SignedObjectObservation] @go(SignedObject,[]SignedObjectObservation) - - // The S3 bucket that contains the object to sign. See Source below for details. - source?: [...#SourceObservation] @go(Source,[]SourceObservation) - - // Status of the signing job. - status?: null | string @go(Status,*string) - - // String value that contains the status reason. - statusReason?: null | string @go(StatusReason,*string) -} - -#SigningJobParameters: { - // The S3 bucket in which to save your signed object. See Destination below for details. - // +kubebuilder:validation:Optional - destination?: [...#DestinationParameters] @go(Destination,[]DestinationParameters) - - // Set this argument to true to ignore signing job failures and retrieve failed status and reason. Default false. - // +kubebuilder:validation:Optional - ignoreSigningJobFailure?: null | bool @go(IgnoreSigningJobFailure,*bool) - - // The name of the profile to initiate the signing operation. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/signer/v1beta1.SigningProfile - // +kubebuilder:validation:Optional - profileName?: null | string @go(ProfileName,*string) - - // Reference to a SigningProfile in signer to populate profileName. - // +kubebuilder:validation:Optional - profileNameRef?: null | v1.#Reference @go(ProfileNameRef,*v1.Reference) - - // Selector for a SigningProfile in signer to populate profileName. - // +kubebuilder:validation:Optional - profileNameSelector?: null | v1.#Selector @go(ProfileNameSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The S3 bucket that contains the object to sign. See Source below for details. - // +kubebuilder:validation:Optional - source?: [...#SourceParameters] @go(Source,[]SourceParameters) -} - -#SourceInitParameters: { - // A configuration block describing the S3 Source object: See S3 Source below for details. - s3?: [...#SourceS3InitParameters] @go(S3,[]SourceS3InitParameters) -} - -#SourceObservation: { - // A configuration block describing the S3 Source object: See S3 Source below for details. - s3?: [...#SourceS3Observation] @go(S3,[]SourceS3Observation) -} - -#SourceParameters: { - // A configuration block describing the S3 Source object: See S3 Source below for details. - // +kubebuilder:validation:Optional - s3: [...#SourceS3Parameters] @go(S3,[]SourceS3Parameters) -} - -#SourceS3InitParameters: { - // Name of the S3 bucket. - bucket?: null | string @go(Bucket,*string) - - // Key name of the object that contains your unsigned code. - key?: null | string @go(Key,*string) - - // Version of your source image in your version enabled S3 bucket. - version?: null | string @go(Version,*string) -} - -#SourceS3Observation: { - // Name of the S3 bucket. - bucket?: null | string @go(Bucket,*string) - - // Key name of the object that contains your unsigned code. - key?: null | string @go(Key,*string) - - // Version of your source image in your version enabled S3 bucket. - version?: null | string @go(Version,*string) -} - -#SourceS3Parameters: { - // Name of the S3 bucket. - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // Key name of the object that contains your unsigned code. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Version of your source image in your version enabled S3 bucket. - // +kubebuilder:validation:Optional - version?: null | string @go(Version,*string) -} - -// SigningJobSpec defines the desired state of SigningJob -#SigningJobSpec: { - v1.#ResourceSpec - forProvider: #SigningJobParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SigningJobInitParameters @go(InitProvider) -} - -// SigningJobStatus defines the observed state of SigningJob. -#SigningJobStatus: { - v1.#ResourceStatus - atProvider?: #SigningJobObservation @go(AtProvider) -} - -// SigningJob is the Schema for the SigningJobs API. Creates a Signer Signing Job. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SigningJob: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destination) || (has(self.initProvider) && has(self.initProvider.destination))",message="spec.forProvider.destination is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.source) || (has(self.initProvider) && has(self.initProvider.source))",message="spec.forProvider.source is a required parameter" - spec: #SigningJobSpec @go(Spec) - status?: #SigningJobStatus @go(Status) -} - -// SigningJobList contains a list of SigningJobs -#SigningJobList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SigningJob] @go(Items,[]SigningJob) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/signer/v1beta1/zz_signingprofile_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/signer/v1beta1/zz_signingprofile_types_go_gen.cue deleted file mode 100644 index d8ee7c0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/signer/v1beta1/zz_signingprofile_types_go_gen.cue +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/signer/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SignatureValidityPeriodInitParameters: { - type?: null | string @go(Type,*string) - value?: null | float64 @go(Value,*float64) -} - -#SignatureValidityPeriodObservation: { - type?: null | string @go(Type,*string) - value?: null | float64 @go(Value,*float64) -} - -#SignatureValidityPeriodParameters: { - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // +kubebuilder:validation:Optional - value?: null | float64 @go(Value,*float64) -} - -#SigningProfileInitParameters: { - // The ID of the platform that is used by the target signing profile. - platformId?: null | string @go(PlatformID,*string) - - // The validity period for a signing job. - signatureValidityPeriod?: [...#SignatureValidityPeriodInitParameters] @go(SignatureValidityPeriod,[]SignatureValidityPeriodInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SigningProfileObservation: { - // The Amazon Resource Name (ARN) for the signing profile. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // A human-readable name for the signing platform associated with the signing profile. - platformDisplayName?: null | string @go(PlatformDisplayName,*string) - - // The ID of the platform that is used by the target signing profile. - platformId?: null | string @go(PlatformID,*string) - - // Revocation information for a signing profile. - revocationRecord?: [...#SigningProfileRevocationRecordObservation] @go(RevocationRecord,[]SigningProfileRevocationRecordObservation) - - // The validity period for a signing job. - signatureValidityPeriod?: [...#SignatureValidityPeriodObservation] @go(SignatureValidityPeriod,[]SignatureValidityPeriodObservation) - - // The status of the target signing profile. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The current version of the signing profile. - version?: null | string @go(Version,*string) - - // The signing profile ARN, including the profile version. - versionArn?: null | string @go(VersionArn,*string) -} - -#SigningProfileParameters: { - // The ID of the platform that is used by the target signing profile. - // +kubebuilder:validation:Optional - platformId?: null | string @go(PlatformID,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The validity period for a signing job. - // +kubebuilder:validation:Optional - signatureValidityPeriod?: [...#SignatureValidityPeriodParameters] @go(SignatureValidityPeriod,[]SignatureValidityPeriodParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#SigningProfileRevocationRecordInitParameters: { -} - -#SigningProfileRevocationRecordObservation: { - revocationEffectiveFrom?: null | string @go(RevocationEffectiveFrom,*string) - revokedAt?: null | string @go(RevokedAt,*string) - revokedBy?: null | string @go(RevokedBy,*string) -} - -#SigningProfileRevocationRecordParameters: { -} - -// SigningProfileSpec defines the desired state of SigningProfile -#SigningProfileSpec: { - v1.#ResourceSpec - forProvider: #SigningProfileParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SigningProfileInitParameters @go(InitProvider) -} - -// SigningProfileStatus defines the observed state of SigningProfile. -#SigningProfileStatus: { - v1.#ResourceStatus - atProvider?: #SigningProfileObservation @go(AtProvider) -} - -// SigningProfile is the Schema for the SigningProfiles API. Creates a Signer Signing Profile. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SigningProfile: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.platformId) || (has(self.initProvider) && has(self.initProvider.platformId))",message="spec.forProvider.platformId is a required parameter" - spec: #SigningProfileSpec @go(Spec) - status?: #SigningProfileStatus @go(Status) -} - -// SigningProfileList contains a list of SigningProfiles -#SigningProfileList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SigningProfile] @go(Items,[]SigningProfile) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/signer/v1beta1/zz_signingprofilepermission_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/signer/v1beta1/zz_signingprofilepermission_types_go_gen.cue deleted file mode 100644 index c45f884..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/signer/v1beta1/zz_signingprofilepermission_types_go_gen.cue +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/signer/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SigningProfilePermissionInitParameters: { - // An AWS Signer action permitted as part of cross-account permissions. Valid values: signer:StartSigningJob, signer:GetSigningProfile, or signer:RevokeSignature. - action?: null | string @go(Action,*string) - - // The AWS principal to be granted a cross-account permission. - principal?: null | string @go(Principal,*string) - - // A statement identifier prefix. Conflicts with statement_id. - statementIdPrefix?: null | string @go(StatementIDPrefix,*string) -} - -#SigningProfilePermissionObservation: { - // An AWS Signer action permitted as part of cross-account permissions. Valid values: signer:StartSigningJob, signer:GetSigningProfile, or signer:RevokeSignature. - action?: null | string @go(Action,*string) - id?: null | string @go(ID,*string) - - // The AWS principal to be granted a cross-account permission. - principal?: null | string @go(Principal,*string) - - // Name of the signing profile to add the cross-account permissions. - profileName?: null | string @go(ProfileName,*string) - - // The signing profile version that a permission applies to. - profileVersion?: null | string @go(ProfileVersion,*string) - - // A unique statement identifier. - statementId?: null | string @go(StatementID,*string) - - // A statement identifier prefix. Conflicts with statement_id. - statementIdPrefix?: null | string @go(StatementIDPrefix,*string) -} - -#SigningProfilePermissionParameters: { - // An AWS Signer action permitted as part of cross-account permissions. Valid values: signer:StartSigningJob, signer:GetSigningProfile, or signer:RevokeSignature. - // +kubebuilder:validation:Optional - action?: null | string @go(Action,*string) - - // The AWS principal to be granted a cross-account permission. - // +kubebuilder:validation:Optional - principal?: null | string @go(Principal,*string) - - // Name of the signing profile to add the cross-account permissions. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/signer/v1beta1.SigningProfile - // +kubebuilder:validation:Optional - profileName?: null | string @go(ProfileName,*string) - - // Reference to a SigningProfile in signer to populate profileName. - // +kubebuilder:validation:Optional - profileNameRef?: null | v1.#Reference @go(ProfileNameRef,*v1.Reference) - - // Selector for a SigningProfile in signer to populate profileName. - // +kubebuilder:validation:Optional - profileNameSelector?: null | v1.#Selector @go(ProfileNameSelector,*v1.Selector) - - // The signing profile version that a permission applies to. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/signer/v1beta1.SigningProfile - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("version",true) - // +kubebuilder:validation:Optional - profileVersion?: null | string @go(ProfileVersion,*string) - - // Reference to a SigningProfile in signer to populate profileVersion. - // +kubebuilder:validation:Optional - profileVersionRef?: null | v1.#Reference @go(ProfileVersionRef,*v1.Reference) - - // Selector for a SigningProfile in signer to populate profileVersion. - // +kubebuilder:validation:Optional - profileVersionSelector?: null | v1.#Selector @go(ProfileVersionSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A unique statement identifier. - // +kubebuilder:validation:Optional - statementId?: null | string @go(StatementID,*string) - - // A statement identifier prefix. Conflicts with statement_id. - // +kubebuilder:validation:Optional - statementIdPrefix?: null | string @go(StatementIDPrefix,*string) -} - -// SigningProfilePermissionSpec defines the desired state of SigningProfilePermission -#SigningProfilePermissionSpec: { - v1.#ResourceSpec - forProvider: #SigningProfilePermissionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SigningProfilePermissionInitParameters @go(InitProvider) -} - -// SigningProfilePermissionStatus defines the observed state of SigningProfilePermission. -#SigningProfilePermissionStatus: { - v1.#ResourceStatus - atProvider?: #SigningProfilePermissionObservation @go(AtProvider) -} - -// SigningProfilePermission is the Schema for the SigningProfilePermissions API. Creates a Signer Signing Profile Permission. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SigningProfilePermission: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.action) || (has(self.initProvider) && has(self.initProvider.action))",message="spec.forProvider.action is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.principal) || (has(self.initProvider) && has(self.initProvider.principal))",message="spec.forProvider.principal is a required parameter" - spec: #SigningProfilePermissionSpec @go(Spec) - status?: #SigningProfilePermissionStatus @go(Status) -} - -// SigningProfilePermissionList contains a list of SigningProfilePermissions -#SigningProfilePermissionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SigningProfilePermission] @go(Items,[]SigningProfilePermission) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/simpledb/v1beta1/zz_domain_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/simpledb/v1beta1/zz_domain_types_go_gen.cue deleted file mode 100644 index 311e7b3..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/simpledb/v1beta1/zz_domain_types_go_gen.cue +++ /dev/null @@ -1,70 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/simpledb/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainInitParameters: { -} - -#DomainObservation: { - // The name of the SimpleDB domain - id?: null | string @go(ID,*string) -} - -#DomainParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DomainSpec defines the desired state of Domain -#DomainSpec: { - v1.#ResourceSpec - forProvider: #DomainParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainInitParameters @go(InitProvider) -} - -// DomainStatus defines the observed state of Domain. -#DomainStatus: { - v1.#ResourceStatus - atProvider?: #DomainObservation @go(AtProvider) -} - -// Domain is the Schema for the Domains API. Provides a SimpleDB domain resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Domain: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DomainSpec @go(Spec) - status?: #DomainStatus @go(Status) -} - -// DomainList contains a list of Domains -#DomainList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Domain] @go(Items,[]Domain) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/simpledb/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/simpledb/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index f6deb7b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/simpledb/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/simpledb/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=simpledb.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "simpledb.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index df797b2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sns/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=sns.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "sns.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_platformapplication_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_platformapplication_types_go_gen.cue deleted file mode 100644 index 73cf1b6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_platformapplication_types_go_gen.cue +++ /dev/null @@ -1,197 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sns/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PlatformApplicationInitParameters: { - // The bundle identifier that's assigned to your iOS app. May only include alphanumeric characters, hyphens (-), and periods (.). - applePlatformBundleId?: null | string @go(ApplePlatformBundleID,*string) - - // The identifier that's assigned to your Apple developer account team. Must be 10 alphanumeric characters. - applePlatformTeamId?: null | string @go(ApplePlatformTeamID,*string) - - // The ARN of the SNS Topic triggered when a delivery to any of the platform endpoints associated with your platform application encounters a permanent failure. - eventDeliveryFailureTopicArn?: null | string @go(EventDeliveryFailureTopicArn,*string) - - // The ARN of the SNS Topic triggered when a new platform endpoint is added to your platform application. - eventEndpointCreatedTopicArn?: null | string @go(EventEndpointCreatedTopicArn,*string) - - // The ARN of the SNS Topic triggered when an existing platform endpoint is deleted from your platform application. - eventEndpointDeletedTopicArn?: null | string @go(EventEndpointDeletedTopicArn,*string) - - // The ARN of the SNS Topic triggered when an existing platform endpoint is changed from your platform application. - eventEndpointUpdatedTopicArn?: null | string @go(EventEndpointUpdatedTopicArn,*string) - - // The platform that the app is registered with. See Platform for supported platforms. - platform?: null | string @go(Platform,*string) - - // The sample rate percentage (0-100) of successfully delivered messages. - successFeedbackSampleRate?: null | string @go(SuccessFeedbackSampleRate,*string) -} - -#PlatformApplicationObservation: { - // The bundle identifier that's assigned to your iOS app. May only include alphanumeric characters, hyphens (-), and periods (.). - applePlatformBundleId?: null | string @go(ApplePlatformBundleID,*string) - - // The identifier that's assigned to your Apple developer account team. Must be 10 alphanumeric characters. - applePlatformTeamId?: null | string @go(ApplePlatformTeamID,*string) - - // The ARN of the SNS platform application - arn?: null | string @go(Arn,*string) - - // The ARN of the SNS Topic triggered when a delivery to any of the platform endpoints associated with your platform application encounters a permanent failure. - eventDeliveryFailureTopicArn?: null | string @go(EventDeliveryFailureTopicArn,*string) - - // The ARN of the SNS Topic triggered when a new platform endpoint is added to your platform application. - eventEndpointCreatedTopicArn?: null | string @go(EventEndpointCreatedTopicArn,*string) - - // The ARN of the SNS Topic triggered when an existing platform endpoint is deleted from your platform application. - eventEndpointDeletedTopicArn?: null | string @go(EventEndpointDeletedTopicArn,*string) - - // The ARN of the SNS Topic triggered when an existing platform endpoint is changed from your platform application. - eventEndpointUpdatedTopicArn?: null | string @go(EventEndpointUpdatedTopicArn,*string) - - // The IAM role ARN permitted to receive failure feedback for this application and give SNS write access to use CloudWatch logs on your behalf. - failureFeedbackRoleArn?: null | string @go(FailureFeedbackRoleArn,*string) - - // The ARN of the SNS platform application - id?: null | string @go(ID,*string) - - // The platform that the app is registered with. See Platform for supported platforms. - platform?: null | string @go(Platform,*string) - - // The IAM role ARN permitted to receive success feedback for this application and give SNS write access to use CloudWatch logs on your behalf. - successFeedbackRoleArn?: null | string @go(SuccessFeedbackRoleArn,*string) - - // The sample rate percentage (0-100) of successfully delivered messages. - successFeedbackSampleRate?: null | string @go(SuccessFeedbackSampleRate,*string) -} - -#PlatformApplicationParameters: { - // The bundle identifier that's assigned to your iOS app. May only include alphanumeric characters, hyphens (-), and periods (.). - // +kubebuilder:validation:Optional - applePlatformBundleId?: null | string @go(ApplePlatformBundleID,*string) - - // The identifier that's assigned to your Apple developer account team. Must be 10 alphanumeric characters. - // +kubebuilder:validation:Optional - applePlatformTeamId?: null | string @go(ApplePlatformTeamID,*string) - - // The ARN of the SNS Topic triggered when a delivery to any of the platform endpoints associated with your platform application encounters a permanent failure. - // +kubebuilder:validation:Optional - eventDeliveryFailureTopicArn?: null | string @go(EventDeliveryFailureTopicArn,*string) - - // The ARN of the SNS Topic triggered when a new platform endpoint is added to your platform application. - // +kubebuilder:validation:Optional - eventEndpointCreatedTopicArn?: null | string @go(EventEndpointCreatedTopicArn,*string) - - // The ARN of the SNS Topic triggered when an existing platform endpoint is deleted from your platform application. - // +kubebuilder:validation:Optional - eventEndpointDeletedTopicArn?: null | string @go(EventEndpointDeletedTopicArn,*string) - - // The ARN of the SNS Topic triggered when an existing platform endpoint is changed from your platform application. - // +kubebuilder:validation:Optional - eventEndpointUpdatedTopicArn?: null | string @go(EventEndpointUpdatedTopicArn,*string) - - // The IAM role ARN permitted to receive failure feedback for this application and give SNS write access to use CloudWatch logs on your behalf. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - failureFeedbackRoleArn?: null | string @go(FailureFeedbackRoleArn,*string) - - // Reference to a Role in iam to populate failureFeedbackRoleArn. - // +kubebuilder:validation:Optional - failureFeedbackRoleArnRef?: null | v1.#Reference @go(FailureFeedbackRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate failureFeedbackRoleArn. - // +kubebuilder:validation:Optional - failureFeedbackRoleArnSelector?: null | v1.#Selector @go(FailureFeedbackRoleArnSelector,*v1.Selector) - - // The platform that the app is registered with. See Platform for supported platforms. - // +kubebuilder:validation:Optional - platform?: null | string @go(Platform,*string) - - // Application Platform credential. See Credential for type of credential required for platform. - // +kubebuilder:validation:Optional - platformCredentialSecretRef: v1.#SecretKeySelector @go(PlatformCredentialSecretRef) - - // Application Platform principal. See Principal for type of principal required for platform. - // +kubebuilder:validation:Optional - platformPrincipalSecretRef?: null | v1.#SecretKeySelector @go(PlatformPrincipalSecretRef,*v1.SecretKeySelector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The IAM role ARN permitted to receive success feedback for this application and give SNS write access to use CloudWatch logs on your behalf. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - successFeedbackRoleArn?: null | string @go(SuccessFeedbackRoleArn,*string) - - // Reference to a Role in iam to populate successFeedbackRoleArn. - // +kubebuilder:validation:Optional - successFeedbackRoleArnRef?: null | v1.#Reference @go(SuccessFeedbackRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate successFeedbackRoleArn. - // +kubebuilder:validation:Optional - successFeedbackRoleArnSelector?: null | v1.#Selector @go(SuccessFeedbackRoleArnSelector,*v1.Selector) - - // The sample rate percentage (0-100) of successfully delivered messages. - // +kubebuilder:validation:Optional - successFeedbackSampleRate?: null | string @go(SuccessFeedbackSampleRate,*string) -} - -// PlatformApplicationSpec defines the desired state of PlatformApplication -#PlatformApplicationSpec: { - v1.#ResourceSpec - forProvider: #PlatformApplicationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PlatformApplicationInitParameters @go(InitProvider) -} - -// PlatformApplicationStatus defines the observed state of PlatformApplication. -#PlatformApplicationStatus: { - v1.#ResourceStatus - atProvider?: #PlatformApplicationObservation @go(AtProvider) -} - -// PlatformApplication is the Schema for the PlatformApplications API. Provides an SNS platform application resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PlatformApplication: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.platform) || (has(self.initProvider) && has(self.initProvider.platform))",message="spec.forProvider.platform is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.platformCredentialSecretRef)",message="spec.forProvider.platformCredentialSecretRef is a required parameter" - spec: #PlatformApplicationSpec @go(Spec) - status?: #PlatformApplicationStatus @go(Status) -} - -// PlatformApplicationList contains a list of PlatformApplications -#PlatformApplicationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PlatformApplication] @go(Items,[]PlatformApplication) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_smspreferences_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_smspreferences_types_go_gen.cue deleted file mode 100644 index d5d9580..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_smspreferences_types_go_gen.cue +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sns/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SMSPreferencesInitParameters: { - // The type of SMS message that you will send by default. Possible values are: Promotional, Transactional - defaultSmsType?: null | string @go(DefaultSMSType,*string) - - // A string, such as your business brand, that is displayed as the sender on the receiving device. - defaultSenderId?: null | string @go(DefaultSenderID,*string) - - // The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100. - deliveryStatusSuccessSamplingRate?: null | string @go(DeliveryStatusSuccessSamplingRate,*string) - - // The maximum amount in USD that you are willing to spend each month to send SMS messages. - monthlySpendLimit?: null | float64 @go(MonthlySpendLimit,*float64) - - // The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS. - usageReportS3Bucket?: null | string @go(UsageReportS3Bucket,*string) -} - -#SMSPreferencesObservation: { - // The type of SMS message that you will send by default. Possible values are: Promotional, Transactional - defaultSmsType?: null | string @go(DefaultSMSType,*string) - - // A string, such as your business brand, that is displayed as the sender on the receiving device. - defaultSenderId?: null | string @go(DefaultSenderID,*string) - - // The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs. - deliveryStatusIamRoleArn?: null | string @go(DeliveryStatusIAMRoleArn,*string) - - // The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100. - deliveryStatusSuccessSamplingRate?: null | string @go(DeliveryStatusSuccessSamplingRate,*string) - id?: null | string @go(ID,*string) - - // The maximum amount in USD that you are willing to spend each month to send SMS messages. - monthlySpendLimit?: null | float64 @go(MonthlySpendLimit,*float64) - - // The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS. - usageReportS3Bucket?: null | string @go(UsageReportS3Bucket,*string) -} - -#SMSPreferencesParameters: { - // The type of SMS message that you will send by default. Possible values are: Promotional, Transactional - // +kubebuilder:validation:Optional - defaultSmsType?: null | string @go(DefaultSMSType,*string) - - // A string, such as your business brand, that is displayed as the sender on the receiving device. - // +kubebuilder:validation:Optional - defaultSenderId?: null | string @go(DefaultSenderID,*string) - - // The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - deliveryStatusIamRoleArn?: null | string @go(DeliveryStatusIAMRoleArn,*string) - - // Reference to a Role in iam to populate deliveryStatusIamRoleArn. - // +kubebuilder:validation:Optional - deliveryStatusIamRoleArnRef?: null | v1.#Reference @go(DeliveryStatusIAMRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate deliveryStatusIamRoleArn. - // +kubebuilder:validation:Optional - deliveryStatusIamRoleArnSelector?: null | v1.#Selector @go(DeliveryStatusIAMRoleArnSelector,*v1.Selector) - - // The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100. - // +kubebuilder:validation:Optional - deliveryStatusSuccessSamplingRate?: null | string @go(DeliveryStatusSuccessSamplingRate,*string) - - // The maximum amount in USD that you are willing to spend each month to send SMS messages. - // +kubebuilder:validation:Optional - monthlySpendLimit?: null | float64 @go(MonthlySpendLimit,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS. - // +kubebuilder:validation:Optional - usageReportS3Bucket?: null | string @go(UsageReportS3Bucket,*string) -} - -// SMSPreferencesSpec defines the desired state of SMSPreferences -#SMSPreferencesSpec: { - v1.#ResourceSpec - forProvider: #SMSPreferencesParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SMSPreferencesInitParameters @go(InitProvider) -} - -// SMSPreferencesStatus defines the observed state of SMSPreferences. -#SMSPreferencesStatus: { - v1.#ResourceStatus - atProvider?: #SMSPreferencesObservation @go(AtProvider) -} - -// SMSPreferences is the Schema for the SMSPreferencess API. Provides a way to set SNS SMS preferences. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SMSPreferences: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SMSPreferencesSpec @go(Spec) - status?: #SMSPreferencesStatus @go(Status) -} - -// SMSPreferencesList contains a list of SMSPreferencess -#SMSPreferencesList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SMSPreferences] @go(Items,[]SMSPreferences) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_topic_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_topic_types_go_gen.cue deleted file mode 100644 index 05f32e0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_topic_types_go_gen.cue +++ /dev/null @@ -1,388 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sns/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TopicInitParameters: { - // Percentage of success to sample - applicationSuccessFeedbackSampleRate?: null | float64 @go(ApplicationSuccessFeedbackSampleRate,*float64) - - // Enables content-based deduplication for FIFO topics. For more information, see the related documentation - contentBasedDeduplication?: null | bool @go(ContentBasedDeduplication,*bool) - - // The SNS delivery policy. More on AWS documentation - deliveryPolicy?: null | string @go(DeliveryPolicy,*string) - - // The display name for the topic - displayName?: null | string @go(DisplayName,*string) - - // Boolean indicating whether or not to create a FIFO (first-in-first-out) topic (default is false). - fifoTopic?: null | bool @go(FifoTopic,*bool) - - // Percentage of success to sample - firehoseSuccessFeedbackSampleRate?: null | float64 @go(FirehoseSuccessFeedbackSampleRate,*float64) - - // Percentage of success to sample - httpSuccessFeedbackSampleRate?: null | float64 @go(HTTPSuccessFeedbackSampleRate,*float64) - - // The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CMK. For more information, see Key Terms - kmsMasterKeyId?: null | string @go(KMSMasterKeyID,*string) - - // Percentage of success to sample - lambdaSuccessFeedbackSampleRate?: null | float64 @go(LambdaSuccessFeedbackSampleRate,*float64) - - // The fully-formed AWS policy as JSON. - policy?: null | string @go(Policy,*string) - - // If SignatureVersion should be 1 (SHA1) or 2 (SHA256). The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS. - signatureVersion?: null | float64 @go(SignatureVersion,*float64) - - // Percentage of success to sample - sqsSuccessFeedbackSampleRate?: null | float64 @go(SqsSuccessFeedbackSampleRate,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Tracing mode of an Amazon SNS topic. Valid values: "PassThrough", "Active". - tracingConfig?: null | string @go(TracingConfig,*string) -} - -#TopicObservation: { - // IAM role for failure feedback - applicationFailureFeedbackRoleArn?: null | string @go(ApplicationFailureFeedbackRoleArn,*string) - - // The IAM role permitted to receive success feedback for this topic - applicationSuccessFeedbackRoleArn?: null | string @go(ApplicationSuccessFeedbackRoleArn,*string) - - // Percentage of success to sample - applicationSuccessFeedbackSampleRate?: null | float64 @go(ApplicationSuccessFeedbackSampleRate,*float64) - - // The ARN of the SNS topic, as a more obvious property (clone of id) - arn?: null | string @go(Arn,*string) - - // Enables content-based deduplication for FIFO topics. For more information, see the related documentation - contentBasedDeduplication?: null | bool @go(ContentBasedDeduplication,*bool) - - // The SNS delivery policy. More on AWS documentation - deliveryPolicy?: null | string @go(DeliveryPolicy,*string) - - // The display name for the topic - displayName?: null | string @go(DisplayName,*string) - - // Boolean indicating whether or not to create a FIFO (first-in-first-out) topic (default is false). - fifoTopic?: null | bool @go(FifoTopic,*bool) - - // IAM role for failure feedback - firehoseFailureFeedbackRoleArn?: null | string @go(FirehoseFailureFeedbackRoleArn,*string) - - // The IAM role permitted to receive success feedback for this topic - firehoseSuccessFeedbackRoleArn?: null | string @go(FirehoseSuccessFeedbackRoleArn,*string) - - // Percentage of success to sample - firehoseSuccessFeedbackSampleRate?: null | float64 @go(FirehoseSuccessFeedbackSampleRate,*float64) - - // IAM role for failure feedback - httpFailureFeedbackRoleArn?: null | string @go(HTTPFailureFeedbackRoleArn,*string) - - // The IAM role permitted to receive success feedback for this topic - httpSuccessFeedbackRoleArn?: null | string @go(HTTPSuccessFeedbackRoleArn,*string) - - // Percentage of success to sample - httpSuccessFeedbackSampleRate?: null | float64 @go(HTTPSuccessFeedbackSampleRate,*float64) - - // The ARN of the SNS topic - id?: null | string @go(ID,*string) - - // The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CMK. For more information, see Key Terms - kmsMasterKeyId?: null | string @go(KMSMasterKeyID,*string) - - // IAM role for failure feedback - lambdaFailureFeedbackRoleArn?: null | string @go(LambdaFailureFeedbackRoleArn,*string) - - // The IAM role permitted to receive success feedback for this topic - lambdaSuccessFeedbackRoleArn?: null | string @go(LambdaSuccessFeedbackRoleArn,*string) - - // Percentage of success to sample - lambdaSuccessFeedbackSampleRate?: null | float64 @go(LambdaSuccessFeedbackSampleRate,*float64) - - // The AWS Account ID of the SNS topic owner - owner?: null | string @go(Owner,*string) - - // The fully-formed AWS policy as JSON. - policy?: null | string @go(Policy,*string) - - // If SignatureVersion should be 1 (SHA1) or 2 (SHA256). The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS. - signatureVersion?: null | float64 @go(SignatureVersion,*float64) - - // IAM role for failure feedback - sqsFailureFeedbackRoleArn?: null | string @go(SqsFailureFeedbackRoleArn,*string) - - // The IAM role permitted to receive success feedback for this topic - sqsSuccessFeedbackRoleArn?: null | string @go(SqsSuccessFeedbackRoleArn,*string) - - // Percentage of success to sample - sqsSuccessFeedbackSampleRate?: null | float64 @go(SqsSuccessFeedbackSampleRate,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Tracing mode of an Amazon SNS topic. Valid values: "PassThrough", "Active". - tracingConfig?: null | string @go(TracingConfig,*string) -} - -#TopicParameters: { - // IAM role for failure feedback - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - applicationFailureFeedbackRoleArn?: null | string @go(ApplicationFailureFeedbackRoleArn,*string) - - // Reference to a Role in iam to populate applicationFailureFeedbackRoleArn. - // +kubebuilder:validation:Optional - applicationFailureFeedbackRoleArnRef?: null | v1.#Reference @go(ApplicationFailureFeedbackRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate applicationFailureFeedbackRoleArn. - // +kubebuilder:validation:Optional - applicationFailureFeedbackRoleArnSelector?: null | v1.#Selector @go(ApplicationFailureFeedbackRoleArnSelector,*v1.Selector) - - // The IAM role permitted to receive success feedback for this topic - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - applicationSuccessFeedbackRoleArn?: null | string @go(ApplicationSuccessFeedbackRoleArn,*string) - - // Reference to a Role in iam to populate applicationSuccessFeedbackRoleArn. - // +kubebuilder:validation:Optional - applicationSuccessFeedbackRoleArnRef?: null | v1.#Reference @go(ApplicationSuccessFeedbackRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate applicationSuccessFeedbackRoleArn. - // +kubebuilder:validation:Optional - applicationSuccessFeedbackRoleArnSelector?: null | v1.#Selector @go(ApplicationSuccessFeedbackRoleArnSelector,*v1.Selector) - - // Percentage of success to sample - // +kubebuilder:validation:Optional - applicationSuccessFeedbackSampleRate?: null | float64 @go(ApplicationSuccessFeedbackSampleRate,*float64) - - // Enables content-based deduplication for FIFO topics. For more information, see the related documentation - // +kubebuilder:validation:Optional - contentBasedDeduplication?: null | bool @go(ContentBasedDeduplication,*bool) - - // The SNS delivery policy. More on AWS documentation - // +kubebuilder:validation:Optional - deliveryPolicy?: null | string @go(DeliveryPolicy,*string) - - // The display name for the topic - // +kubebuilder:validation:Optional - displayName?: null | string @go(DisplayName,*string) - - // Boolean indicating whether or not to create a FIFO (first-in-first-out) topic (default is false). - // +kubebuilder:validation:Optional - fifoTopic?: null | bool @go(FifoTopic,*bool) - - // IAM role for failure feedback - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - firehoseFailureFeedbackRoleArn?: null | string @go(FirehoseFailureFeedbackRoleArn,*string) - - // Reference to a Role in iam to populate firehoseFailureFeedbackRoleArn. - // +kubebuilder:validation:Optional - firehoseFailureFeedbackRoleArnRef?: null | v1.#Reference @go(FirehoseFailureFeedbackRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate firehoseFailureFeedbackRoleArn. - // +kubebuilder:validation:Optional - firehoseFailureFeedbackRoleArnSelector?: null | v1.#Selector @go(FirehoseFailureFeedbackRoleArnSelector,*v1.Selector) - - // The IAM role permitted to receive success feedback for this topic - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - firehoseSuccessFeedbackRoleArn?: null | string @go(FirehoseSuccessFeedbackRoleArn,*string) - - // Reference to a Role in iam to populate firehoseSuccessFeedbackRoleArn. - // +kubebuilder:validation:Optional - firehoseSuccessFeedbackRoleArnRef?: null | v1.#Reference @go(FirehoseSuccessFeedbackRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate firehoseSuccessFeedbackRoleArn. - // +kubebuilder:validation:Optional - firehoseSuccessFeedbackRoleArnSelector?: null | v1.#Selector @go(FirehoseSuccessFeedbackRoleArnSelector,*v1.Selector) - - // Percentage of success to sample - // +kubebuilder:validation:Optional - firehoseSuccessFeedbackSampleRate?: null | float64 @go(FirehoseSuccessFeedbackSampleRate,*float64) - - // IAM role for failure feedback - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - httpFailureFeedbackRoleArn?: null | string @go(HTTPFailureFeedbackRoleArn,*string) - - // Reference to a Role in iam to populate httpFailureFeedbackRoleArn. - // +kubebuilder:validation:Optional - httpFailureFeedbackRoleArnRef?: null | v1.#Reference @go(HTTPFailureFeedbackRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate httpFailureFeedbackRoleArn. - // +kubebuilder:validation:Optional - httpFailureFeedbackRoleArnSelector?: null | v1.#Selector @go(HTTPFailureFeedbackRoleArnSelector,*v1.Selector) - - // The IAM role permitted to receive success feedback for this topic - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - httpSuccessFeedbackRoleArn?: null | string @go(HTTPSuccessFeedbackRoleArn,*string) - - // Reference to a Role in iam to populate httpSuccessFeedbackRoleArn. - // +kubebuilder:validation:Optional - httpSuccessFeedbackRoleArnRef?: null | v1.#Reference @go(HTTPSuccessFeedbackRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate httpSuccessFeedbackRoleArn. - // +kubebuilder:validation:Optional - httpSuccessFeedbackRoleArnSelector?: null | v1.#Selector @go(HTTPSuccessFeedbackRoleArnSelector,*v1.Selector) - - // Percentage of success to sample - // +kubebuilder:validation:Optional - httpSuccessFeedbackSampleRate?: null | float64 @go(HTTPSuccessFeedbackSampleRate,*float64) - - // The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CMK. For more information, see Key Terms - // +kubebuilder:validation:Optional - kmsMasterKeyId?: null | string @go(KMSMasterKeyID,*string) - - // IAM role for failure feedback - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - lambdaFailureFeedbackRoleArn?: null | string @go(LambdaFailureFeedbackRoleArn,*string) - - // Reference to a Role in iam to populate lambdaFailureFeedbackRoleArn. - // +kubebuilder:validation:Optional - lambdaFailureFeedbackRoleArnRef?: null | v1.#Reference @go(LambdaFailureFeedbackRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate lambdaFailureFeedbackRoleArn. - // +kubebuilder:validation:Optional - lambdaFailureFeedbackRoleArnSelector?: null | v1.#Selector @go(LambdaFailureFeedbackRoleArnSelector,*v1.Selector) - - // The IAM role permitted to receive success feedback for this topic - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - lambdaSuccessFeedbackRoleArn?: null | string @go(LambdaSuccessFeedbackRoleArn,*string) - - // Reference to a Role in iam to populate lambdaSuccessFeedbackRoleArn. - // +kubebuilder:validation:Optional - lambdaSuccessFeedbackRoleArnRef?: null | v1.#Reference @go(LambdaSuccessFeedbackRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate lambdaSuccessFeedbackRoleArn. - // +kubebuilder:validation:Optional - lambdaSuccessFeedbackRoleArnSelector?: null | v1.#Selector @go(LambdaSuccessFeedbackRoleArnSelector,*v1.Selector) - - // Percentage of success to sample - // +kubebuilder:validation:Optional - lambdaSuccessFeedbackSampleRate?: null | float64 @go(LambdaSuccessFeedbackSampleRate,*float64) - - // The fully-formed AWS policy as JSON. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // If SignatureVersion should be 1 (SHA1) or 2 (SHA256). The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS. - // +kubebuilder:validation:Optional - signatureVersion?: null | float64 @go(SignatureVersion,*float64) - - // IAM role for failure feedback - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - sqsFailureFeedbackRoleArn?: null | string @go(SqsFailureFeedbackRoleArn,*string) - - // Reference to a Role in iam to populate sqsFailureFeedbackRoleArn. - // +kubebuilder:validation:Optional - sqsFailureFeedbackRoleArnRef?: null | v1.#Reference @go(SqsFailureFeedbackRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate sqsFailureFeedbackRoleArn. - // +kubebuilder:validation:Optional - sqsFailureFeedbackRoleArnSelector?: null | v1.#Selector @go(SqsFailureFeedbackRoleArnSelector,*v1.Selector) - - // The IAM role permitted to receive success feedback for this topic - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - sqsSuccessFeedbackRoleArn?: null | string @go(SqsSuccessFeedbackRoleArn,*string) - - // Reference to a Role in iam to populate sqsSuccessFeedbackRoleArn. - // +kubebuilder:validation:Optional - sqsSuccessFeedbackRoleArnRef?: null | v1.#Reference @go(SqsSuccessFeedbackRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate sqsSuccessFeedbackRoleArn. - // +kubebuilder:validation:Optional - sqsSuccessFeedbackRoleArnSelector?: null | v1.#Selector @go(SqsSuccessFeedbackRoleArnSelector,*v1.Selector) - - // Percentage of success to sample - // +kubebuilder:validation:Optional - sqsSuccessFeedbackSampleRate?: null | float64 @go(SqsSuccessFeedbackSampleRate,*float64) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Tracing mode of an Amazon SNS topic. Valid values: "PassThrough", "Active". - // +kubebuilder:validation:Optional - tracingConfig?: null | string @go(TracingConfig,*string) -} - -// TopicSpec defines the desired state of Topic -#TopicSpec: { - v1.#ResourceSpec - forProvider: #TopicParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TopicInitParameters @go(InitProvider) -} - -// TopicStatus defines the observed state of Topic. -#TopicStatus: { - v1.#ResourceStatus - atProvider?: #TopicObservation @go(AtProvider) -} - -// Topic is the Schema for the Topics API. Provides an SNS topic resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Topic: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TopicSpec @go(Spec) - status?: #TopicStatus @go(Status) -} - -// TopicList contains a list of Topics -#TopicList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Topic] @go(Items,[]Topic) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_topicpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_topicpolicy_types_go_gen.cue deleted file mode 100644 index 9fcbcb0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_topicpolicy_types_go_gen.cue +++ /dev/null @@ -1,99 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sns/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TopicPolicyInitParameters: { - // The fully-formed AWS policy as JSON. - policy?: null | string @go(Policy,*string) -} - -#TopicPolicyObservation: { - // The ARN of the SNS topic - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // The AWS Account ID of the SNS topic owner - owner?: null | string @go(Owner,*string) - - // The fully-formed AWS policy as JSON. - policy?: null | string @go(Policy,*string) -} - -#TopicPolicyParameters: { - // The ARN of the SNS topic - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // Reference to a Topic in sns to populate arn. - // +kubebuilder:validation:Optional - arnRef?: null | v1.#Reference @go(ArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate arn. - // +kubebuilder:validation:Optional - arnSelector?: null | v1.#Selector @go(ArnSelector,*v1.Selector) - - // The fully-formed AWS policy as JSON. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// TopicPolicySpec defines the desired state of TopicPolicy -#TopicPolicySpec: { - v1.#ResourceSpec - forProvider: #TopicPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TopicPolicyInitParameters @go(InitProvider) -} - -// TopicPolicyStatus defines the observed state of TopicPolicy. -#TopicPolicyStatus: { - v1.#ResourceStatus - atProvider?: #TopicPolicyObservation @go(AtProvider) -} - -// TopicPolicy is the Schema for the TopicPolicys API. Provides an SNS topic policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TopicPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #TopicPolicySpec @go(Spec) - status?: #TopicPolicyStatus @go(Status) -} - -// TopicPolicyList contains a list of TopicPolicys -#TopicPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TopicPolicy] @go(Items,[]TopicPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_topicsubscription_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_topicsubscription_types_go_gen.cue deleted file mode 100644 index 4debd28..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sns/v1beta1/zz_topicsubscription_types_go_gen.cue +++ /dev/null @@ -1,214 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sns/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TopicSubscriptionInitParameters: { - // Integer indicating number of minutes to wait in retrying mode for fetching subscription arn before marking it as failure. Only applicable for http and https protocols. Default is 1. - confirmationTimeoutInMinutes?: null | float64 @go(ConfirmationTimeoutInMinutes,*float64) - - // JSON String with the delivery policy (retries, backoff, etc.) that will be used in the subscription - this only applies to HTTP/S subscriptions. Refer to the SNS docs for more details. - deliveryPolicy?: null | string @go(DeliveryPolicy,*string) - - // Whether the endpoint is capable of auto confirming subscription (e.g., PagerDuty). Default is false. - endpointAutoConfirms?: null | bool @go(EndpointAutoConfirms,*bool) - - // JSON String with the filter policy that will be used in the subscription to filter messages seen by the target resource. Refer to the SNS docs for more details. - filterPolicy?: null | string @go(FilterPolicy,*string) - - // Whether the filter_policy applies to MessageAttributes (default) or MessageBody. - filterPolicyScope?: null | string @go(FilterPolicyScope,*string) - - // Protocol to use. Valid values are: sqs, sms, lambda, firehose, and application. Protocols email, email-json, http and https are also valid but partially supported. See details below. - protocol?: null | string @go(Protocol,*string) - - // Whether to enable raw message delivery (the original message is directly passed, not wrapped in JSON with the original message in the message property). Default is false. - rawMessageDelivery?: null | bool @go(RawMessageDelivery,*bool) - - // JSON String with the redrive policy that will be used in the subscription. Refer to the SNS docs for more details. - redrivePolicy?: null | string @go(RedrivePolicy,*string) -} - -#TopicSubscriptionObservation: { - // ARN of the subscription. - arn?: null | string @go(Arn,*string) - - // Integer indicating number of minutes to wait in retrying mode for fetching subscription arn before marking it as failure. Only applicable for http and https protocols. Default is 1. - confirmationTimeoutInMinutes?: null | float64 @go(ConfirmationTimeoutInMinutes,*float64) - - // Whether the subscription confirmation request was authenticated. - confirmationWasAuthenticated?: null | bool @go(ConfirmationWasAuthenticated,*bool) - - // JSON String with the delivery policy (retries, backoff, etc.) that will be used in the subscription - this only applies to HTTP/S subscriptions. Refer to the SNS docs for more details. - deliveryPolicy?: null | string @go(DeliveryPolicy,*string) - - // Endpoint to send data to. The contents vary with the protocol. See details below. - endpoint?: null | string @go(Endpoint,*string) - - // Whether the endpoint is capable of auto confirming subscription (e.g., PagerDuty). Default is false. - endpointAutoConfirms?: null | bool @go(EndpointAutoConfirms,*bool) - - // JSON String with the filter policy that will be used in the subscription to filter messages seen by the target resource. Refer to the SNS docs for more details. - filterPolicy?: null | string @go(FilterPolicy,*string) - - // Whether the filter_policy applies to MessageAttributes (default) or MessageBody. - filterPolicyScope?: null | string @go(FilterPolicyScope,*string) - - // ARN of the subscription. - id?: null | string @go(ID,*string) - - // AWS account ID of the subscription's owner. - ownerId?: null | string @go(OwnerID,*string) - - // Whether the subscription has not been confirmed. - pendingConfirmation?: null | bool @go(PendingConfirmation,*bool) - - // Protocol to use. Valid values are: sqs, sms, lambda, firehose, and application. Protocols email, email-json, http and https are also valid but partially supported. See details below. - protocol?: null | string @go(Protocol,*string) - - // Whether to enable raw message delivery (the original message is directly passed, not wrapped in JSON with the original message in the message property). Default is false. - rawMessageDelivery?: null | bool @go(RawMessageDelivery,*bool) - - // JSON String with the redrive policy that will be used in the subscription. Refer to the SNS docs for more details. - redrivePolicy?: null | string @go(RedrivePolicy,*string) - - // ARN of the IAM role to publish to Kinesis Data Firehose delivery stream. Refer to SNS docs. - subscriptionRoleArn?: null | string @go(SubscriptionRoleArn,*string) - - // ARN of the SNS topic to subscribe to. - topicArn?: null | string @go(TopicArn,*string) -} - -#TopicSubscriptionParameters: { - // Integer indicating number of minutes to wait in retrying mode for fetching subscription arn before marking it as failure. Only applicable for http and https protocols. Default is 1. - // +kubebuilder:validation:Optional - confirmationTimeoutInMinutes?: null | float64 @go(ConfirmationTimeoutInMinutes,*float64) - - // JSON String with the delivery policy (retries, backoff, etc.) that will be used in the subscription - this only applies to HTTP/S subscriptions. Refer to the SNS docs for more details. - // +kubebuilder:validation:Optional - deliveryPolicy?: null | string @go(DeliveryPolicy,*string) - - // Endpoint to send data to. The contents vary with the protocol. See details below. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sqs/v1beta1.Queue - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - endpoint?: null | string @go(Endpoint,*string) - - // Whether the endpoint is capable of auto confirming subscription (e.g., PagerDuty). Default is false. - // +kubebuilder:validation:Optional - endpointAutoConfirms?: null | bool @go(EndpointAutoConfirms,*bool) - - // Reference to a Queue in sqs to populate endpoint. - // +kubebuilder:validation:Optional - endpointRef?: null | v1.#Reference @go(EndpointRef,*v1.Reference) - - // Selector for a Queue in sqs to populate endpoint. - // +kubebuilder:validation:Optional - endpointSelector?: null | v1.#Selector @go(EndpointSelector,*v1.Selector) - - // JSON String with the filter policy that will be used in the subscription to filter messages seen by the target resource. Refer to the SNS docs for more details. - // +kubebuilder:validation:Optional - filterPolicy?: null | string @go(FilterPolicy,*string) - - // Whether the filter_policy applies to MessageAttributes (default) or MessageBody. - // +kubebuilder:validation:Optional - filterPolicyScope?: null | string @go(FilterPolicyScope,*string) - - // Protocol to use. Valid values are: sqs, sms, lambda, firehose, and application. Protocols email, email-json, http and https are also valid but partially supported. See details below. - // +kubebuilder:validation:Optional - protocol?: null | string @go(Protocol,*string) - - // Whether to enable raw message delivery (the original message is directly passed, not wrapped in JSON with the original message in the message property). Default is false. - // +kubebuilder:validation:Optional - rawMessageDelivery?: null | bool @go(RawMessageDelivery,*bool) - - // JSON String with the redrive policy that will be used in the subscription. Refer to the SNS docs for more details. - // +kubebuilder:validation:Optional - redrivePolicy?: null | string @go(RedrivePolicy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ARN of the IAM role to publish to Kinesis Data Firehose delivery stream. Refer to SNS docs. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - subscriptionRoleArn?: null | string @go(SubscriptionRoleArn,*string) - - // Reference to a Role in iam to populate subscriptionRoleArn. - // +kubebuilder:validation:Optional - subscriptionRoleArnRef?: null | v1.#Reference @go(SubscriptionRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate subscriptionRoleArn. - // +kubebuilder:validation:Optional - subscriptionRoleArnSelector?: null | v1.#Selector @go(SubscriptionRoleArnSelector,*v1.Selector) - - // ARN of the SNS topic to subscribe to. - // +crossplane:generate:reference:type=Topic - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - topicArn?: null | string @go(TopicArn,*string) - - // Reference to a Topic to populate topicArn. - // +kubebuilder:validation:Optional - topicArnRef?: null | v1.#Reference @go(TopicArnRef,*v1.Reference) - - // Selector for a Topic to populate topicArn. - // +kubebuilder:validation:Optional - topicArnSelector?: null | v1.#Selector @go(TopicArnSelector,*v1.Selector) -} - -// TopicSubscriptionSpec defines the desired state of TopicSubscription -#TopicSubscriptionSpec: { - v1.#ResourceSpec - forProvider: #TopicSubscriptionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TopicSubscriptionInitParameters @go(InitProvider) -} - -// TopicSubscriptionStatus defines the observed state of TopicSubscription. -#TopicSubscriptionStatus: { - v1.#ResourceStatus - atProvider?: #TopicSubscriptionObservation @go(AtProvider) -} - -// TopicSubscription is the Schema for the TopicSubscriptions API. Provides a resource for subscribing to SNS topics. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#TopicSubscription: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.protocol) || (has(self.initProvider) && has(self.initProvider.protocol))",message="spec.forProvider.protocol is a required parameter" - spec: #TopicSubscriptionSpec @go(Spec) - status?: #TopicSubscriptionStatus @go(Status) -} - -// TopicSubscriptionList contains a list of TopicSubscriptions -#TopicSubscriptionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#TopicSubscription] @go(Items,[]TopicSubscription) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index c87f856..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sqs/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=sqs.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "sqs.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_queue_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_queue_types_go_gen.cue deleted file mode 100644 index 0724a30..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_queue_types_go_gen.cue +++ /dev/null @@ -1,248 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sqs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#QueueInitParameters: { - // Enables content-based deduplication for FIFO queues. For more information, see the related documentation - contentBasedDeduplication?: null | bool @go(ContentBasedDeduplication,*bool) - - // Specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroup and queue (default). - deduplicationScope?: null | string @go(DeduplicationScope,*string) - - // The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds. - delaySeconds?: null | float64 @go(DelaySeconds,*float64) - - // Boolean designating a FIFO queue. If not set, it defaults to false making it standard. - fifoQueue?: null | bool @go(FifoQueue,*bool) - - // Specifies whether the FIFO queue throughput quota applies to the entire queue or per message group. Valid values are perQueue (default) and perMessageGroupId. - fifoThroughputLimit?: null | string @go(FifoThroughputLimit,*string) - - // The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes). - kmsDataKeyReusePeriodSeconds?: null | float64 @go(KMSDataKeyReusePeriodSeconds,*float64) - - // The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms. - kmsMasterKeyId?: null | string @go(KMSMasterKeyID,*string) - - // The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB). - maxMessageSize?: null | float64 @go(MaxMessageSize,*float64) - - // The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days). - messageRetentionSeconds?: null | float64 @go(MessageRetentionSeconds,*float64) - - // The name of the queue. Queue names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 80 characters long. For a FIFO (first-in-first-out) queue, the name must end with the .fifo suffix. Conflicts with name_prefix - name?: null | string @go(Name,*string) - - // The JSON policy for the SQS queue. - policy?: null | string @go(Policy,*string) - - // The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately. - receiveWaitTimeSeconds?: null | float64 @go(ReceiveWaitTimeSeconds,*float64) - - // The JSON policy to set up the Dead Letter Queue redrive permission, see AWS docs. - redriveAllowPolicy?: null | string @go(RedriveAllowPolicy,*string) - - // The JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying maxReceiveCount, you must specify it as an integer (5), and not a string ("5"). - redrivePolicy?: null | string @go(RedrivePolicy,*string) - - // Boolean to enable server-side encryption (SSE) of message content with SQS-owned encryption keys. See Encryption at rest. - sqsManagedSseEnabled?: null | bool @go(SqsManagedSseEnabled,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see AWS docs. - visibilityTimeoutSeconds?: null | float64 @go(VisibilityTimeoutSeconds,*float64) -} - -#QueueObservation: { - // The ARN of the SQS queue - arn?: null | string @go(Arn,*string) - - // Enables content-based deduplication for FIFO queues. For more information, see the related documentation - contentBasedDeduplication?: null | bool @go(ContentBasedDeduplication,*bool) - - // Specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroup and queue (default). - deduplicationScope?: null | string @go(DeduplicationScope,*string) - - // The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds. - delaySeconds?: null | float64 @go(DelaySeconds,*float64) - - // Boolean designating a FIFO queue. If not set, it defaults to false making it standard. - fifoQueue?: null | bool @go(FifoQueue,*bool) - - // Specifies whether the FIFO queue throughput quota applies to the entire queue or per message group. Valid values are perQueue (default) and perMessageGroupId. - fifoThroughputLimit?: null | string @go(FifoThroughputLimit,*string) - - // The URL for the created Amazon SQS queue. - id?: null | string @go(ID,*string) - - // The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes). - kmsDataKeyReusePeriodSeconds?: null | float64 @go(KMSDataKeyReusePeriodSeconds,*float64) - - // The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms. - kmsMasterKeyId?: null | string @go(KMSMasterKeyID,*string) - - // The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB). - maxMessageSize?: null | float64 @go(MaxMessageSize,*float64) - - // The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days). - messageRetentionSeconds?: null | float64 @go(MessageRetentionSeconds,*float64) - - // The name of the queue. Queue names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 80 characters long. For a FIFO (first-in-first-out) queue, the name must end with the .fifo suffix. Conflicts with name_prefix - name?: null | string @go(Name,*string) - - // The JSON policy for the SQS queue. - policy?: null | string @go(Policy,*string) - - // The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately. - receiveWaitTimeSeconds?: null | float64 @go(ReceiveWaitTimeSeconds,*float64) - - // The JSON policy to set up the Dead Letter Queue redrive permission, see AWS docs. - redriveAllowPolicy?: null | string @go(RedriveAllowPolicy,*string) - - // The JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying maxReceiveCount, you must specify it as an integer (5), and not a string ("5"). - redrivePolicy?: null | string @go(RedrivePolicy,*string) - - // Boolean to enable server-side encryption (SSE) of message content with SQS-owned encryption keys. See Encryption at rest. - sqsManagedSseEnabled?: null | bool @go(SqsManagedSseEnabled,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Same as id: The URL for the created Amazon SQS queue. - url?: null | string @go(URL,*string) - - // The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see AWS docs. - visibilityTimeoutSeconds?: null | float64 @go(VisibilityTimeoutSeconds,*float64) -} - -#QueueParameters: { - // Enables content-based deduplication for FIFO queues. For more information, see the related documentation - // +kubebuilder:validation:Optional - contentBasedDeduplication?: null | bool @go(ContentBasedDeduplication,*bool) - - // Specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroup and queue (default). - // +kubebuilder:validation:Optional - deduplicationScope?: null | string @go(DeduplicationScope,*string) - - // The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds. - // +kubebuilder:validation:Optional - delaySeconds?: null | float64 @go(DelaySeconds,*float64) - - // Boolean designating a FIFO queue. If not set, it defaults to false making it standard. - // +kubebuilder:validation:Optional - fifoQueue?: null | bool @go(FifoQueue,*bool) - - // Specifies whether the FIFO queue throughput quota applies to the entire queue or per message group. Valid values are perQueue (default) and perMessageGroupId. - // +kubebuilder:validation:Optional - fifoThroughputLimit?: null | string @go(FifoThroughputLimit,*string) - - // The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes). - // +kubebuilder:validation:Optional - kmsDataKeyReusePeriodSeconds?: null | float64 @go(KMSDataKeyReusePeriodSeconds,*float64) - - // The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms. - // +kubebuilder:validation:Optional - kmsMasterKeyId?: null | string @go(KMSMasterKeyID,*string) - - // The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB). - // +kubebuilder:validation:Optional - maxMessageSize?: null | float64 @go(MaxMessageSize,*float64) - - // The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days). - // +kubebuilder:validation:Optional - messageRetentionSeconds?: null | float64 @go(MessageRetentionSeconds,*float64) - - // The name of the queue. Queue names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 80 characters long. For a FIFO (first-in-first-out) queue, the name must end with the .fifo suffix. Conflicts with name_prefix - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The JSON policy for the SQS queue. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately. - // +kubebuilder:validation:Optional - receiveWaitTimeSeconds?: null | float64 @go(ReceiveWaitTimeSeconds,*float64) - - // The JSON policy to set up the Dead Letter Queue redrive permission, see AWS docs. - // +kubebuilder:validation:Optional - redriveAllowPolicy?: null | string @go(RedriveAllowPolicy,*string) - - // The JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying maxReceiveCount, you must specify it as an integer (5), and not a string ("5"). - // +kubebuilder:validation:Optional - redrivePolicy?: null | string @go(RedrivePolicy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Boolean to enable server-side encryption (SSE) of message content with SQS-owned encryption keys. See Encryption at rest. - // +kubebuilder:validation:Optional - sqsManagedSseEnabled?: null | bool @go(SqsManagedSseEnabled,*bool) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see AWS docs. - // +kubebuilder:validation:Optional - visibilityTimeoutSeconds?: null | float64 @go(VisibilityTimeoutSeconds,*float64) -} - -// QueueSpec defines the desired state of Queue -#QueueSpec: { - v1.#ResourceSpec - forProvider: #QueueParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #QueueInitParameters @go(InitProvider) -} - -// QueueStatus defines the observed state of Queue. -#QueueStatus: { - v1.#ResourceStatus - atProvider?: #QueueObservation @go(AtProvider) -} - -// Queue is the Schema for the Queues API. Provides a SQS resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Queue: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #QueueSpec @go(Spec) - status?: #QueueStatus @go(Status) -} - -// QueueList contains a list of Queues -#QueueList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Queue] @go(Items,[]Queue) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_queuepolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_queuepolicy_types_go_gen.cue deleted file mode 100644 index 83d1a07..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_queuepolicy_types_go_gen.cue +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sqs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#QueuePolicyInitParameters: { - // The JSON policy for the SQS queue. - policy?: null | string @go(Policy,*string) -} - -#QueuePolicyObservation: { - id?: null | string @go(ID,*string) - - // The JSON policy for the SQS queue. - policy?: null | string @go(Policy,*string) - - // The URL of the SQS Queue to which to attach the policy - queueUrl?: null | string @go(QueueURL,*string) -} - -#QueuePolicyParameters: { - // The JSON policy for the SQS queue. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // The URL of the SQS Queue to which to attach the policy - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sqs/v1beta1.Queue - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - queueUrl?: null | string @go(QueueURL,*string) - - // Reference to a Queue in sqs to populate queueUrl. - // +kubebuilder:validation:Optional - queueUrlRef?: null | v1.#Reference @go(QueueURLRef,*v1.Reference) - - // Selector for a Queue in sqs to populate queueUrl. - // +kubebuilder:validation:Optional - queueUrlSelector?: null | v1.#Selector @go(QueueURLSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// QueuePolicySpec defines the desired state of QueuePolicy -#QueuePolicySpec: { - v1.#ResourceSpec - forProvider: #QueuePolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #QueuePolicyInitParameters @go(InitProvider) -} - -// QueuePolicyStatus defines the observed state of QueuePolicy. -#QueuePolicyStatus: { - v1.#ResourceStatus - atProvider?: #QueuePolicyObservation @go(AtProvider) -} - -// QueuePolicy is the Schema for the QueuePolicys API. Provides a SQS Queue Policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#QueuePolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policy) || (has(self.initProvider) && has(self.initProvider.policy))",message="spec.forProvider.policy is a required parameter" - spec: #QueuePolicySpec @go(Spec) - status?: #QueuePolicyStatus @go(Status) -} - -// QueuePolicyList contains a list of QueuePolicys -#QueuePolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#QueuePolicy] @go(Items,[]QueuePolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_queueredriveallowpolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_queueredriveallowpolicy_types_go_gen.cue deleted file mode 100644 index 67e903e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_queueredriveallowpolicy_types_go_gen.cue +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sqs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#QueueRedriveAllowPolicyInitParameters: { - // The JSON redrive allow policy for the SQS queue. Learn more in the Amazon SQS dead-letter queues documentation. - redriveAllowPolicy?: null | string @go(RedriveAllowPolicy,*string) -} - -#QueueRedriveAllowPolicyObservation: { - id?: null | string @go(ID,*string) - - // The URL of the SQS Queue to which to attach the policy - queueUrl?: null | string @go(QueueURL,*string) - - // The JSON redrive allow policy for the SQS queue. Learn more in the Amazon SQS dead-letter queues documentation. - redriveAllowPolicy?: null | string @go(RedriveAllowPolicy,*string) -} - -#QueueRedriveAllowPolicyParameters: { - // The URL of the SQS Queue to which to attach the policy - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sqs/v1beta1.Queue - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - queueUrl?: null | string @go(QueueURL,*string) - - // Reference to a Queue in sqs to populate queueUrl. - // +kubebuilder:validation:Optional - queueUrlRef?: null | v1.#Reference @go(QueueURLRef,*v1.Reference) - - // Selector for a Queue in sqs to populate queueUrl. - // +kubebuilder:validation:Optional - queueUrlSelector?: null | v1.#Selector @go(QueueURLSelector,*v1.Selector) - - // The JSON redrive allow policy for the SQS queue. Learn more in the Amazon SQS dead-letter queues documentation. - // +kubebuilder:validation:Optional - redriveAllowPolicy?: null | string @go(RedriveAllowPolicy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// QueueRedriveAllowPolicySpec defines the desired state of QueueRedriveAllowPolicy -#QueueRedriveAllowPolicySpec: { - v1.#ResourceSpec - forProvider: #QueueRedriveAllowPolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #QueueRedriveAllowPolicyInitParameters @go(InitProvider) -} - -// QueueRedriveAllowPolicyStatus defines the observed state of QueueRedriveAllowPolicy. -#QueueRedriveAllowPolicyStatus: { - v1.#ResourceStatus - atProvider?: #QueueRedriveAllowPolicyObservation @go(AtProvider) -} - -// QueueRedriveAllowPolicy is the Schema for the QueueRedriveAllowPolicys API. Provides a SQS Queue Redrive Allow Policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#QueueRedriveAllowPolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.redriveAllowPolicy) || (has(self.initProvider) && has(self.initProvider.redriveAllowPolicy))",message="spec.forProvider.redriveAllowPolicy is a required parameter" - spec: #QueueRedriveAllowPolicySpec @go(Spec) - status?: #QueueRedriveAllowPolicyStatus @go(Status) -} - -// QueueRedriveAllowPolicyList contains a list of QueueRedriveAllowPolicys -#QueueRedriveAllowPolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#QueueRedriveAllowPolicy] @go(Items,[]QueueRedriveAllowPolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_queueredrivepolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_queueredrivepolicy_types_go_gen.cue deleted file mode 100644 index 1bd6fb5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/sqs/v1beta1/zz_queueredrivepolicy_types_go_gen.cue +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/sqs/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#QueueRedrivePolicyInitParameters: { - // The JSON redrive policy for the SQS queue. Accepts two key/val pairs: deadLetterTargetArn and maxReceiveCount. Learn more in the Amazon SQS dead-letter queues documentation. - redrivePolicy?: null | string @go(RedrivePolicy,*string) -} - -#QueueRedrivePolicyObservation: { - id?: null | string @go(ID,*string) - - // The URL of the SQS Queue to which to attach the policy - queueUrl?: null | string @go(QueueURL,*string) - - // The JSON redrive policy for the SQS queue. Accepts two key/val pairs: deadLetterTargetArn and maxReceiveCount. Learn more in the Amazon SQS dead-letter queues documentation. - redrivePolicy?: null | string @go(RedrivePolicy,*string) -} - -#QueueRedrivePolicyParameters: { - // The URL of the SQS Queue to which to attach the policy - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sqs/v1beta1.Queue - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.TerraformID() - // +kubebuilder:validation:Optional - queueUrl?: null | string @go(QueueURL,*string) - - // Reference to a Queue in sqs to populate queueUrl. - // +kubebuilder:validation:Optional - queueUrlRef?: null | v1.#Reference @go(QueueURLRef,*v1.Reference) - - // Selector for a Queue in sqs to populate queueUrl. - // +kubebuilder:validation:Optional - queueUrlSelector?: null | v1.#Selector @go(QueueURLSelector,*v1.Selector) - - // The JSON redrive policy for the SQS queue. Accepts two key/val pairs: deadLetterTargetArn and maxReceiveCount. Learn more in the Amazon SQS dead-letter queues documentation. - // +kubebuilder:validation:Optional - redrivePolicy?: null | string @go(RedrivePolicy,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// QueueRedrivePolicySpec defines the desired state of QueueRedrivePolicy -#QueueRedrivePolicySpec: { - v1.#ResourceSpec - forProvider: #QueueRedrivePolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #QueueRedrivePolicyInitParameters @go(InitProvider) -} - -// QueueRedrivePolicyStatus defines the observed state of QueueRedrivePolicy. -#QueueRedrivePolicyStatus: { - v1.#ResourceStatus - atProvider?: #QueueRedrivePolicyObservation @go(AtProvider) -} - -// QueueRedrivePolicy is the Schema for the QueueRedrivePolicys API. Provides a SQS Queue Redrive Policy resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#QueueRedrivePolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.redrivePolicy) || (has(self.initProvider) && has(self.initProvider.redrivePolicy))",message="spec.forProvider.redrivePolicy is a required parameter" - spec: #QueueRedrivePolicySpec @go(Spec) - status?: #QueueRedrivePolicyStatus @go(Status) -} - -// QueueRedrivePolicyList contains a list of QueueRedrivePolicys -#QueueRedrivePolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#QueueRedrivePolicy] @go(Items,[]QueueRedrivePolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_activation_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_activation_types_go_gen.cue deleted file mode 100644 index f163a62..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_activation_types_go_gen.cue +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActivationInitParameters: { - // The description of the resource that you want to register. - description?: null | string @go(Description,*string) - - // UTC timestamp in RFC3339 format by which this activation request should expire. The default value is 24 hours from resource creation time. - expirationDate?: null | string @go(ExpirationDate,*string) - - // The default name of the registered managed instance. - name?: null | string @go(Name,*string) - - // The maximum number of managed instances you want to register. The default value is 1 instance. - registrationLimit?: null | float64 @go(RegistrationLimit,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#ActivationObservation: { - // The code the system generates when it processes the activation. - activationCode?: null | string @go(ActivationCode,*string) - - // The description of the resource that you want to register. - description?: null | string @go(Description,*string) - - // UTC timestamp in RFC3339 format by which this activation request should expire. The default value is 24 hours from resource creation time. - expirationDate?: null | string @go(ExpirationDate,*string) - - // If the current activation has expired. - expired?: null | bool @go(Expired,*bool) - - // The IAM Role to attach to the managed instance. - iamRole?: null | string @go(IAMRole,*string) - - // The activation ID. - id?: null | string @go(ID,*string) - - // The default name of the registered managed instance. - name?: null | string @go(Name,*string) - - // The number of managed instances that are currently registered using this activation. - registrationCount?: null | float64 @go(RegistrationCount,*float64) - - // The maximum number of managed instances you want to register. The default value is 1 instance. - registrationLimit?: null | float64 @go(RegistrationLimit,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#ActivationParameters: { - // The description of the resource that you want to register. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // UTC timestamp in RFC3339 format by which this activation request should expire. The default value is 24 hours from resource creation time. - // +kubebuilder:validation:Optional - expirationDate?: null | string @go(ExpirationDate,*string) - - // The IAM Role to attach to the managed instance. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - iamRole?: null | string @go(IAMRole,*string) - - // Reference to a Role in iam to populate iamRole. - // +kubebuilder:validation:Optional - iamRoleRef?: null | v1.#Reference @go(IAMRoleRef,*v1.Reference) - - // Selector for a Role in iam to populate iamRole. - // +kubebuilder:validation:Optional - iamRoleSelector?: null | v1.#Selector @go(IAMRoleSelector,*v1.Selector) - - // The default name of the registered managed instance. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The maximum number of managed instances you want to register. The default value is 1 instance. - // +kubebuilder:validation:Optional - registrationLimit?: null | float64 @go(RegistrationLimit,*float64) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// ActivationSpec defines the desired state of Activation -#ActivationSpec: { - v1.#ResourceSpec - forProvider: #ActivationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ActivationInitParameters @go(InitProvider) -} - -// ActivationStatus defines the observed state of Activation. -#ActivationStatus: { - v1.#ResourceStatus - atProvider?: #ActivationObservation @go(AtProvider) -} - -// Activation is the Schema for the Activations API. Registers an on-premises server or virtual machine with Amazon EC2 so that it can be managed using Run Command. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Activation: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ActivationSpec @go(Spec) - status?: #ActivationStatus @go(Status) -} - -// ActivationList contains a list of Activations -#ActivationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Activation] @go(Items,[]Activation) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_association_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_association_types_go_gen.cue deleted file mode 100644 index a98f81a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_association_types_go_gen.cue +++ /dev/null @@ -1,281 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AssociationInitParameters: { - // By default, when you create a new or update associations, the system runs it immediately and then according to the schedule you specified. Enable this option if you do not want an association to run immediately after you create or update it. This parameter is not supported for rate expressions. Default: false. - applyOnlyAtCronInterval?: null | bool @go(ApplyOnlyAtCronInterval,*bool) - - // The descriptive name for the association. - associationName?: null | string @go(AssociationName,*string) - - // Specify the target for the association. This target is required for associations that use an Automation document and target resources by using rate controls. This should be set to the SSM document parameter that will define how your automation will branch out. - automationTargetParameterName?: null | string @go(AutomationTargetParameterName,*string) - - // The compliance severity for the association. Can be one of the following: UNSPECIFIED, LOW, MEDIUM, HIGH or CRITICAL - complianceSeverity?: null | string @go(ComplianceSeverity,*string) - - // The document version you want to associate with the target(s). Can be a specific version or the default version. - documentVersion?: null | string @go(DocumentVersion,*string) - - // The instance ID to apply an SSM document to. Use targets with key InstanceIds for document schema versions 2.0 and above. - instanceId?: null | string @go(InstanceID,*string) - - // The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. - maxConcurrency?: null | string @go(MaxConcurrency,*string) - - // The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%. - maxErrors?: null | string @go(MaxErrors,*string) - - // An output location block. Output Location is documented below. - outputLocation?: [...#OutputLocationInitParameters] @go(OutputLocation,[]OutputLocationInitParameters) - - // A block of arbitrary string parameters to pass to the SSM document. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // A cron or rate expression that specifies when the association runs. - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets. - targets?: [...#TargetsInitParameters] @go(Targets,[]TargetsInitParameters) - - // The number of seconds to wait for the association status to be Success. If Success status is not reached within the given time, create opration will fail. - waitForSuccessTimeoutSeconds?: null | float64 @go(WaitForSuccessTimeoutSeconds,*float64) -} - -#AssociationObservation: { - // By default, when you create a new or update associations, the system runs it immediately and then according to the schedule you specified. Enable this option if you do not want an association to run immediately after you create or update it. This parameter is not supported for rate expressions. Default: false. - applyOnlyAtCronInterval?: null | bool @go(ApplyOnlyAtCronInterval,*bool) - - // The ARN of the SSM association - arn?: null | string @go(Arn,*string) - - // The ID of the SSM association. - associationId?: null | string @go(AssociationID,*string) - - // The descriptive name for the association. - associationName?: null | string @go(AssociationName,*string) - - // Specify the target for the association. This target is required for associations that use an Automation document and target resources by using rate controls. This should be set to the SSM document parameter that will define how your automation will branch out. - automationTargetParameterName?: null | string @go(AutomationTargetParameterName,*string) - - // The compliance severity for the association. Can be one of the following: UNSPECIFIED, LOW, MEDIUM, HIGH or CRITICAL - complianceSeverity?: null | string @go(ComplianceSeverity,*string) - - // The document version you want to associate with the target(s). Can be a specific version or the default version. - documentVersion?: null | string @go(DocumentVersion,*string) - id?: null | string @go(ID,*string) - - // The instance ID to apply an SSM document to. Use targets with key InstanceIds for document schema versions 2.0 and above. - instanceId?: null | string @go(InstanceID,*string) - - // The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. - maxConcurrency?: null | string @go(MaxConcurrency,*string) - - // The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%. - maxErrors?: null | string @go(MaxErrors,*string) - - // The name of the SSM document to apply. - name?: null | string @go(Name,*string) - - // An output location block. Output Location is documented below. - outputLocation?: [...#OutputLocationObservation] @go(OutputLocation,[]OutputLocationObservation) - - // A block of arbitrary string parameters to pass to the SSM document. - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // A cron or rate expression that specifies when the association runs. - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets. - targets?: [...#TargetsObservation] @go(Targets,[]TargetsObservation) - - // The number of seconds to wait for the association status to be Success. If Success status is not reached within the given time, create opration will fail. - waitForSuccessTimeoutSeconds?: null | float64 @go(WaitForSuccessTimeoutSeconds,*float64) -} - -#AssociationParameters: { - // By default, when you create a new or update associations, the system runs it immediately and then according to the schedule you specified. Enable this option if you do not want an association to run immediately after you create or update it. This parameter is not supported for rate expressions. Default: false. - // +kubebuilder:validation:Optional - applyOnlyAtCronInterval?: null | bool @go(ApplyOnlyAtCronInterval,*bool) - - // The descriptive name for the association. - // +kubebuilder:validation:Optional - associationName?: null | string @go(AssociationName,*string) - - // Specify the target for the association. This target is required for associations that use an Automation document and target resources by using rate controls. This should be set to the SSM document parameter that will define how your automation will branch out. - // +kubebuilder:validation:Optional - automationTargetParameterName?: null | string @go(AutomationTargetParameterName,*string) - - // The compliance severity for the association. Can be one of the following: UNSPECIFIED, LOW, MEDIUM, HIGH or CRITICAL - // +kubebuilder:validation:Optional - complianceSeverity?: null | string @go(ComplianceSeverity,*string) - - // The document version you want to associate with the target(s). Can be a specific version or the default version. - // +kubebuilder:validation:Optional - documentVersion?: null | string @go(DocumentVersion,*string) - - // The instance ID to apply an SSM document to. Use targets with key InstanceIds for document schema versions 2.0 and above. - // +kubebuilder:validation:Optional - instanceId?: null | string @go(InstanceID,*string) - - // The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. - // +kubebuilder:validation:Optional - maxConcurrency?: null | string @go(MaxConcurrency,*string) - - // The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%. - // +kubebuilder:validation:Optional - maxErrors?: null | string @go(MaxErrors,*string) - - // The name of the SSM document to apply. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ssm/v1beta1.Document - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Reference to a Document in ssm to populate name. - // +kubebuilder:validation:Optional - nameRef?: null | v1.#Reference @go(NameRef,*v1.Reference) - - // Selector for a Document in ssm to populate name. - // +kubebuilder:validation:Optional - nameSelector?: null | v1.#Selector @go(NameSelector,*v1.Selector) - - // An output location block. Output Location is documented below. - // +kubebuilder:validation:Optional - outputLocation?: [...#OutputLocationParameters] @go(OutputLocation,[]OutputLocationParameters) - - // A block of arbitrary string parameters to pass to the SSM document. - // +kubebuilder:validation:Optional - parameters?: {[string]: null | string} @go(Parameters,map[string]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A cron or rate expression that specifies when the association runs. - // +kubebuilder:validation:Optional - scheduleExpression?: null | string @go(ScheduleExpression,*string) - - // A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets. - // +kubebuilder:validation:Optional - targets?: [...#TargetsParameters] @go(Targets,[]TargetsParameters) - - // The number of seconds to wait for the association status to be Success. If Success status is not reached within the given time, create opration will fail. - // +kubebuilder:validation:Optional - waitForSuccessTimeoutSeconds?: null | float64 @go(WaitForSuccessTimeoutSeconds,*float64) -} - -#OutputLocationInitParameters: { - // The S3 bucket name. - s3BucketName?: null | string @go(S3BucketName,*string) - - // The S3 bucket prefix. Results stored in the root if not configured. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) - - // The S3 bucket region. - s3Region?: null | string @go(S3Region,*string) -} - -#OutputLocationObservation: { - // The S3 bucket name. - s3BucketName?: null | string @go(S3BucketName,*string) - - // The S3 bucket prefix. Results stored in the root if not configured. - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) - - // The S3 bucket region. - s3Region?: null | string @go(S3Region,*string) -} - -#OutputLocationParameters: { - // The S3 bucket name. - // +kubebuilder:validation:Optional - s3BucketName?: null | string @go(S3BucketName,*string) - - // The S3 bucket prefix. Results stored in the root if not configured. - // +kubebuilder:validation:Optional - s3KeyPrefix?: null | string @go(S3KeyPrefix,*string) - - // The S3 bucket region. - // +kubebuilder:validation:Optional - s3Region?: null | string @go(S3Region,*string) -} - -#TargetsInitParameters: { - // Either InstanceIds or tag:Tag Name to specify an EC2 tag. - key?: null | string @go(Key,*string) - - // A list of instance IDs or tag values. AWS currently limits this list size to one value. - values?: [...null | string] @go(Values,[]*string) -} - -#TargetsObservation: { - // Either InstanceIds or tag:Tag Name to specify an EC2 tag. - key?: null | string @go(Key,*string) - - // A list of instance IDs or tag values. AWS currently limits this list size to one value. - values?: [...null | string] @go(Values,[]*string) -} - -#TargetsParameters: { - // Either InstanceIds or tag:Tag Name to specify an EC2 tag. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // A list of instance IDs or tag values. AWS currently limits this list size to one value. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -// AssociationSpec defines the desired state of Association -#AssociationSpec: { - v1.#ResourceSpec - forProvider: #AssociationParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AssociationInitParameters @go(InitProvider) -} - -// AssociationStatus defines the observed state of Association. -#AssociationStatus: { - v1.#ResourceStatus - atProvider?: #AssociationObservation @go(AtProvider) -} - -// Association is the Schema for the Associations API. Associates an SSM Document to an instance or EC2 tag. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Association: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AssociationSpec @go(Spec) - status?: #AssociationStatus @go(Status) -} - -// AssociationList contains a list of Associations -#AssociationList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Association] @go(Items,[]Association) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_defaultpatchbaseline_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_defaultpatchbaseline_types_go_gen.cue deleted file mode 100644 index 8998a3d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_defaultpatchbaseline_types_go_gen.cue +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DefaultPatchBaselineInitParameters: { -} - -#DefaultPatchBaselineObservation: { - // ID of the patch baseline. - // Can be an ID or an ARN. - // When specifying an AWS-provided patch baseline, must be the ARN. - baselineId?: null | string @go(BaselineID,*string) - id?: null | string @go(ID,*string) - - // The operating system the patch baseline applies to. - // Valid values are - // AMAZON_LINUX, - // AMAZON_LINUX_2, - // AMAZON_LINUX_2022, - // CENTOS, - // DEBIAN, - // MACOS, - // ORACLE_LINUX, - // RASPBIAN, - // REDHAT_ENTERPRISE_LINUX, - // ROCKY_LINUX, - // SUSE, - // UBUNTU, and - // WINDOWS. - operatingSystem?: null | string @go(OperatingSystem,*string) -} - -#DefaultPatchBaselineParameters: { - // ID of the patch baseline. - // Can be an ID or an ARN. - // When specifying an AWS-provided patch baseline, must be the ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ssm/v1beta1.PatchBaseline - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - baselineId?: null | string @go(BaselineID,*string) - - // Reference to a PatchBaseline in ssm to populate baselineId. - // +kubebuilder:validation:Optional - baselineIdRef?: null | v1.#Reference @go(BaselineIDRef,*v1.Reference) - - // Selector for a PatchBaseline in ssm to populate baselineId. - // +kubebuilder:validation:Optional - baselineIdSelector?: null | v1.#Selector @go(BaselineIDSelector,*v1.Selector) - - // The operating system the patch baseline applies to. - // Valid values are - // AMAZON_LINUX, - // AMAZON_LINUX_2, - // AMAZON_LINUX_2022, - // CENTOS, - // DEBIAN, - // MACOS, - // ORACLE_LINUX, - // RASPBIAN, - // REDHAT_ENTERPRISE_LINUX, - // ROCKY_LINUX, - // SUSE, - // UBUNTU, and - // WINDOWS. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ssm/v1beta1.PatchBaseline - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("operating_system",false) - // +kubebuilder:validation:Optional - operatingSystem?: null | string @go(OperatingSystem,*string) - - // Reference to a PatchBaseline in ssm to populate operatingSystem. - // +kubebuilder:validation:Optional - operatingSystemRef?: null | v1.#Reference @go(OperatingSystemRef,*v1.Reference) - - // Selector for a PatchBaseline in ssm to populate operatingSystem. - // +kubebuilder:validation:Optional - operatingSystemSelector?: null | v1.#Selector @go(OperatingSystemSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// DefaultPatchBaselineSpec defines the desired state of DefaultPatchBaseline -#DefaultPatchBaselineSpec: { - v1.#ResourceSpec - forProvider: #DefaultPatchBaselineParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DefaultPatchBaselineInitParameters @go(InitProvider) -} - -// DefaultPatchBaselineStatus defines the observed state of DefaultPatchBaseline. -#DefaultPatchBaselineStatus: { - v1.#ResourceStatus - atProvider?: #DefaultPatchBaselineObservation @go(AtProvider) -} - -// DefaultPatchBaseline is the Schema for the DefaultPatchBaselines API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#DefaultPatchBaseline: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DefaultPatchBaselineSpec @go(Spec) - status?: #DefaultPatchBaselineStatus @go(Status) -} - -// DefaultPatchBaselineList contains a list of DefaultPatchBaselines -#DefaultPatchBaselineList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#DefaultPatchBaseline] @go(Items,[]DefaultPatchBaseline) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_document_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_document_types_go_gen.cue deleted file mode 100644 index 05b9ebc..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_document_types_go_gen.cue +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AttachmentsSourceInitParameters: { - // The key describing the location of an attachment to a document. Valid key types include: SourceUrl and S3FileUrl - key?: null | string @go(Key,*string) - - // The name of the document attachment file - name?: null | string @go(Name,*string) - - // The value describing the location of an attachment to a document - values?: [...null | string] @go(Values,[]*string) -} - -#AttachmentsSourceObservation: { - // The key describing the location of an attachment to a document. Valid key types include: SourceUrl and S3FileUrl - key?: null | string @go(Key,*string) - - // The name of the document attachment file - name?: null | string @go(Name,*string) - - // The value describing the location of an attachment to a document - values?: [...null | string] @go(Values,[]*string) -} - -#AttachmentsSourceParameters: { - // The key describing the location of an attachment to a document. Valid key types include: SourceUrl and S3FileUrl - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The name of the document attachment file - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The value describing the location of an attachment to a document - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#DocumentInitParameters: { - // One or more configuration blocks describing attachments sources to a version of a document. Defined below. - attachmentsSource?: [...#AttachmentsSourceInitParameters] @go(AttachmentsSource,[]AttachmentsSourceInitParameters) - - // The JSON or YAML content of the document. - content?: null | string @go(Content,*string) - - // The format of the document. Valid document types include: JSON and YAML - documentFormat?: null | string @go(DocumentFormat,*string) - - // The type of the document. Valid document types include: Automation, Command, Package, Policy, and Session - documentType?: null | string @go(DocumentType,*string) - - // Additional Permissions to attach to the document. See Permissions below for details. - permissions?: {[string]: null | string} @go(Permissions,map[string]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The target type which defines the kinds of resources the document can run on. For example, /AWS::EC2::Instance. For a list of valid resource types, see AWS Resource Types Reference (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - targetType?: null | string @go(TargetType,*string) - - // A field specifying the version of the artifact you are creating with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document and cannot be changed for an existing document version. - versionName?: null | string @go(VersionName,*string) -} - -#DocumentObservation: { - arn?: null | string @go(Arn,*string) - - // One or more configuration blocks describing attachments sources to a version of a document. Defined below. - attachmentsSource?: [...#AttachmentsSourceObservation] @go(AttachmentsSource,[]AttachmentsSourceObservation) - - // The JSON or YAML content of the document. - content?: null | string @go(Content,*string) - - // The date the document was created. - createdDate?: null | string @go(CreatedDate,*string) - - // The default version of the document. - defaultVersion?: null | string @go(DefaultVersion,*string) - - // The description of the document. - description?: null | string @go(Description,*string) - - // The format of the document. Valid document types include: JSON and YAML - documentFormat?: null | string @go(DocumentFormat,*string) - - // The type of the document. Valid document types include: Automation, Command, Package, Policy, and Session - documentType?: null | string @go(DocumentType,*string) - - // The document version. - documentVersion?: null | string @go(DocumentVersion,*string) - - // The sha1 or sha256 of the document content - hash?: null | string @go(Hash,*string) - - // "Sha1" "Sha256". The hashing algorithm used when hashing the content. - hashType?: null | string @go(HashType,*string) - id?: null | string @go(ID,*string) - - // The latest version of the document. - latestVersion?: null | string @go(LatestVersion,*string) - - // The AWS user account of the person who created the document. - owner?: null | string @go(Owner,*string) - - // The parameters that are available to this document. - parameter?: [...#ParameterObservation] @go(Parameter,[]ParameterObservation) - - // Additional Permissions to attach to the document. See Permissions below for details. - permissions?: {[string]: null | string} @go(Permissions,map[string]*string) - - // A list of OS platforms compatible with this SSM document, either "Windows" or "Linux". - platformTypes?: [...null | string] @go(PlatformTypes,[]*string) - - // The schema version of the document. - schemaVersion?: null | string @go(SchemaVersion,*string) - - // "Creating", "Active" or "Deleting". The current status of the document. - status?: null | string @go(Status,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The target type which defines the kinds of resources the document can run on. For example, /AWS::EC2::Instance. For a list of valid resource types, see AWS Resource Types Reference (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - targetType?: null | string @go(TargetType,*string) - - // A field specifying the version of the artifact you are creating with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document and cannot be changed for an existing document version. - versionName?: null | string @go(VersionName,*string) -} - -#DocumentParameters: { - // One or more configuration blocks describing attachments sources to a version of a document. Defined below. - // +kubebuilder:validation:Optional - attachmentsSource?: [...#AttachmentsSourceParameters] @go(AttachmentsSource,[]AttachmentsSourceParameters) - - // The JSON or YAML content of the document. - // +kubebuilder:validation:Optional - content?: null | string @go(Content,*string) - - // The format of the document. Valid document types include: JSON and YAML - // +kubebuilder:validation:Optional - documentFormat?: null | string @go(DocumentFormat,*string) - - // The type of the document. Valid document types include: Automation, Command, Package, Policy, and Session - // +kubebuilder:validation:Optional - documentType?: null | string @go(DocumentType,*string) - - // Additional Permissions to attach to the document. See Permissions below for details. - // +kubebuilder:validation:Optional - permissions?: {[string]: null | string} @go(Permissions,map[string]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The target type which defines the kinds of resources the document can run on. For example, /AWS::EC2::Instance. For a list of valid resource types, see AWS Resource Types Reference (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - // +kubebuilder:validation:Optional - targetType?: null | string @go(TargetType,*string) - - // A field specifying the version of the artifact you are creating with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document and cannot be changed for an existing document version. - // +kubebuilder:validation:Optional - versionName?: null | string @go(VersionName,*string) -} - -#ParameterInitParameters: { -} - -#ParameterObservation: { - defaultValue?: null | string @go(DefaultValue,*string) - - // The description of the document. - description?: null | string @go(Description,*string) - - // The name of the document. - name?: null | string @go(Name,*string) - - // The permission type for the document. The permission type can be Share. - type?: null | string @go(Type,*string) -} - -#ParameterParameters: { -} - -// DocumentSpec defines the desired state of Document -#DocumentSpec: { - v1.#ResourceSpec - forProvider: #DocumentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DocumentInitParameters @go(InitProvider) -} - -// DocumentStatus defines the observed state of Document. -#DocumentStatus: { - v1.#ResourceStatus - atProvider?: #DocumentObservation @go(AtProvider) -} - -// Document is the Schema for the Documents API. Provides an SSM Document resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Document: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.content) || (has(self.initProvider) && has(self.initProvider.content))",message="spec.forProvider.content is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.documentType) || (has(self.initProvider) && has(self.initProvider.documentType))",message="spec.forProvider.documentType is a required parameter" - spec: #DocumentSpec @go(Spec) - status?: #DocumentStatus @go(Status) -} - -// DocumentList contains a list of Documents -#DocumentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Document] @go(Items,[]Document) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 0befb44..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=ssm.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "ssm.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_maintenancewindow_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_maintenancewindow_types_go_gen.cue deleted file mode 100644 index bf415c8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_maintenancewindow_types_go_gen.cue +++ /dev/null @@ -1,197 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MaintenanceWindowInitParameters: { - // Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets. - allowUnassociatedTargets?: null | bool @go(AllowUnassociatedTargets,*bool) - - // The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution. - cutoff?: null | float64 @go(Cutoff,*float64) - - // A description for the maintenance window. - description?: null | string @go(Description,*string) - - // The duration of the Maintenance Window in hours. - duration?: null | float64 @go(Duration,*float64) - - // Whether the maintenance window is enabled. Default: true. - enabled?: null | bool @go(Enabled,*bool) - - // Timestamp in ISO-8601 extended format when to no longer run the maintenance window. - endDate?: null | string @go(EndDate,*string) - - // The name of the maintenance window. - name?: null | string @go(Name,*string) - - // The schedule of the Maintenance Window in the form of a cron or rate expression. - schedule?: null | string @go(Schedule,*string) - - // The number of days to wait after the date and time specified by a CRON expression before running the maintenance window. - scheduleOffset?: null | float64 @go(ScheduleOffset,*float64) - - // Timezone for schedule in Internet Assigned Numbers Authority (IANA) Time Zone Database format. For example: America/Los_Angeles, etc/UTC, or Asia/Seoul. - scheduleTimezone?: null | string @go(ScheduleTimezone,*string) - - // Timestamp in ISO-8601 extended format when to begin the maintenance window. - startDate?: null | string @go(StartDate,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#MaintenanceWindowObservation: { - // Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets. - allowUnassociatedTargets?: null | bool @go(AllowUnassociatedTargets,*bool) - - // The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution. - cutoff?: null | float64 @go(Cutoff,*float64) - - // A description for the maintenance window. - description?: null | string @go(Description,*string) - - // The duration of the Maintenance Window in hours. - duration?: null | float64 @go(Duration,*float64) - - // Whether the maintenance window is enabled. Default: true. - enabled?: null | bool @go(Enabled,*bool) - - // Timestamp in ISO-8601 extended format when to no longer run the maintenance window. - endDate?: null | string @go(EndDate,*string) - - // The ID of the maintenance window. - id?: null | string @go(ID,*string) - - // The name of the maintenance window. - name?: null | string @go(Name,*string) - - // The schedule of the Maintenance Window in the form of a cron or rate expression. - schedule?: null | string @go(Schedule,*string) - - // The number of days to wait after the date and time specified by a CRON expression before running the maintenance window. - scheduleOffset?: null | float64 @go(ScheduleOffset,*float64) - - // Timezone for schedule in Internet Assigned Numbers Authority (IANA) Time Zone Database format. For example: America/Los_Angeles, etc/UTC, or Asia/Seoul. - scheduleTimezone?: null | string @go(ScheduleTimezone,*string) - - // Timestamp in ISO-8601 extended format when to begin the maintenance window. - startDate?: null | string @go(StartDate,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#MaintenanceWindowParameters: { - // Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets. - // +kubebuilder:validation:Optional - allowUnassociatedTargets?: null | bool @go(AllowUnassociatedTargets,*bool) - - // The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution. - // +kubebuilder:validation:Optional - cutoff?: null | float64 @go(Cutoff,*float64) - - // A description for the maintenance window. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The duration of the Maintenance Window in hours. - // +kubebuilder:validation:Optional - duration?: null | float64 @go(Duration,*float64) - - // Whether the maintenance window is enabled. Default: true. - // +kubebuilder:validation:Optional - enabled?: null | bool @go(Enabled,*bool) - - // Timestamp in ISO-8601 extended format when to no longer run the maintenance window. - // +kubebuilder:validation:Optional - endDate?: null | string @go(EndDate,*string) - - // The name of the maintenance window. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The schedule of the Maintenance Window in the form of a cron or rate expression. - // +kubebuilder:validation:Optional - schedule?: null | string @go(Schedule,*string) - - // The number of days to wait after the date and time specified by a CRON expression before running the maintenance window. - // +kubebuilder:validation:Optional - scheduleOffset?: null | float64 @go(ScheduleOffset,*float64) - - // Timezone for schedule in Internet Assigned Numbers Authority (IANA) Time Zone Database format. For example: America/Los_Angeles, etc/UTC, or Asia/Seoul. - // +kubebuilder:validation:Optional - scheduleTimezone?: null | string @go(ScheduleTimezone,*string) - - // Timestamp in ISO-8601 extended format when to begin the maintenance window. - // +kubebuilder:validation:Optional - startDate?: null | string @go(StartDate,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// MaintenanceWindowSpec defines the desired state of MaintenanceWindow -#MaintenanceWindowSpec: { - v1.#ResourceSpec - forProvider: #MaintenanceWindowParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MaintenanceWindowInitParameters @go(InitProvider) -} - -// MaintenanceWindowStatus defines the observed state of MaintenanceWindow. -#MaintenanceWindowStatus: { - v1.#ResourceStatus - atProvider?: #MaintenanceWindowObservation @go(AtProvider) -} - -// MaintenanceWindow is the Schema for the MaintenanceWindows API. Provides an SSM Maintenance Window resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MaintenanceWindow: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.cutoff) || (has(self.initProvider) && has(self.initProvider.cutoff))",message="spec.forProvider.cutoff is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.duration) || (has(self.initProvider) && has(self.initProvider.duration))",message="spec.forProvider.duration is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.schedule) || (has(self.initProvider) && has(self.initProvider.schedule))",message="spec.forProvider.schedule is a required parameter" - spec: #MaintenanceWindowSpec @go(Spec) - status?: #MaintenanceWindowStatus @go(Status) -} - -// MaintenanceWindowList contains a list of MaintenanceWindows -#MaintenanceWindowList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MaintenanceWindow] @go(Items,[]MaintenanceWindow) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_maintenancewindowtarget_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_maintenancewindowtarget_types_go_gen.cue deleted file mode 100644 index 2790d28..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_maintenancewindowtarget_types_go_gen.cue +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MaintenanceWindowTargetInitParameters: { - // The description of the maintenance window target. - description?: null | string @go(Description,*string) - - // The name of the maintenance window target. - name?: null | string @go(Name,*string) - - // User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window. - ownerInformation?: null | string @go(OwnerInformation,*string) - - // The type of target being registered with the Maintenance Window. Possible values are INSTANCE and RESOURCE_GROUP. - resourceType?: null | string @go(ResourceType,*string) - - // The targets to register with the maintenance window. In other words, the instances to run commands on when the maintenance window runs. You can specify targets using instance IDs, resource group names, or tags that have been applied to instances. For more information about these examples formats see - // (https://docs.aws.amazon.com/systems-manager/latest/userguide/mw-cli-tutorial-targets-examples.html) - targets?: [...#MaintenanceWindowTargetTargetsInitParameters] @go(Targets,[]MaintenanceWindowTargetTargetsInitParameters) -} - -#MaintenanceWindowTargetObservation: { - // The description of the maintenance window target. - description?: null | string @go(Description,*string) - - // The ID of the maintenance window target. - id?: null | string @go(ID,*string) - - // The name of the maintenance window target. - name?: null | string @go(Name,*string) - - // User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window. - ownerInformation?: null | string @go(OwnerInformation,*string) - - // The type of target being registered with the Maintenance Window. Possible values are INSTANCE and RESOURCE_GROUP. - resourceType?: null | string @go(ResourceType,*string) - - // The targets to register with the maintenance window. In other words, the instances to run commands on when the maintenance window runs. You can specify targets using instance IDs, resource group names, or tags that have been applied to instances. For more information about these examples formats see - // (https://docs.aws.amazon.com/systems-manager/latest/userguide/mw-cli-tutorial-targets-examples.html) - targets?: [...#MaintenanceWindowTargetTargetsObservation] @go(Targets,[]MaintenanceWindowTargetTargetsObservation) - - // The Id of the maintenance window to register the target with. - windowId?: null | string @go(WindowID,*string) -} - -#MaintenanceWindowTargetParameters: { - // The description of the maintenance window target. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the maintenance window target. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window. - // +kubebuilder:validation:Optional - ownerInformation?: null | string @go(OwnerInformation,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The type of target being registered with the Maintenance Window. Possible values are INSTANCE and RESOURCE_GROUP. - // +kubebuilder:validation:Optional - resourceType?: null | string @go(ResourceType,*string) - - // The targets to register with the maintenance window. In other words, the instances to run commands on when the maintenance window runs. You can specify targets using instance IDs, resource group names, or tags that have been applied to instances. For more information about these examples formats see - // (https://docs.aws.amazon.com/systems-manager/latest/userguide/mw-cli-tutorial-targets-examples.html) - // +kubebuilder:validation:Optional - targets?: [...#MaintenanceWindowTargetTargetsParameters] @go(Targets,[]MaintenanceWindowTargetTargetsParameters) - - // The Id of the maintenance window to register the target with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ssm/v1beta1.MaintenanceWindow - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - windowId?: null | string @go(WindowID,*string) - - // Reference to a MaintenanceWindow in ssm to populate windowId. - // +kubebuilder:validation:Optional - windowIdRef?: null | v1.#Reference @go(WindowIDRef,*v1.Reference) - - // Selector for a MaintenanceWindow in ssm to populate windowId. - // +kubebuilder:validation:Optional - windowIdSelector?: null | v1.#Selector @go(WindowIDSelector,*v1.Selector) -} - -#MaintenanceWindowTargetTargetsInitParameters: { - key?: null | string @go(Key,*string) - values?: [...null | string] @go(Values,[]*string) -} - -#MaintenanceWindowTargetTargetsObservation: { - key?: null | string @go(Key,*string) - values?: [...null | string] @go(Values,[]*string) -} - -#MaintenanceWindowTargetTargetsParameters: { - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -// MaintenanceWindowTargetSpec defines the desired state of MaintenanceWindowTarget -#MaintenanceWindowTargetSpec: { - v1.#ResourceSpec - forProvider: #MaintenanceWindowTargetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MaintenanceWindowTargetInitParameters @go(InitProvider) -} - -// MaintenanceWindowTargetStatus defines the observed state of MaintenanceWindowTarget. -#MaintenanceWindowTargetStatus: { - v1.#ResourceStatus - atProvider?: #MaintenanceWindowTargetObservation @go(AtProvider) -} - -// MaintenanceWindowTarget is the Schema for the MaintenanceWindowTargets API. Provides an SSM Maintenance Window Target resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MaintenanceWindowTarget: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.resourceType) || (has(self.initProvider) && has(self.initProvider.resourceType))",message="spec.forProvider.resourceType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targets) || (has(self.initProvider) && has(self.initProvider.targets))",message="spec.forProvider.targets is a required parameter" - spec: #MaintenanceWindowTargetSpec @go(Spec) - status?: #MaintenanceWindowTargetStatus @go(Status) -} - -// MaintenanceWindowTargetList contains a list of MaintenanceWindowTargets -#MaintenanceWindowTargetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MaintenanceWindowTarget] @go(Items,[]MaintenanceWindowTarget) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_maintenancewindowtask_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_maintenancewindowtask_types_go_gen.cue deleted file mode 100644 index 3f24a25..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_maintenancewindowtask_types_go_gen.cue +++ /dev/null @@ -1,614 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AutomationParametersInitParameters: { - // The version of an Automation document to use during task execution. - documentVersion?: null | string @go(DocumentVersion,*string) - - // The parameters for the RUN_COMMAND task execution. Documented below. - parameter?: [...#AutomationParametersParameterInitParameters] @go(Parameter,[]AutomationParametersParameterInitParameters) -} - -#AutomationParametersObservation: { - // The version of an Automation document to use during task execution. - documentVersion?: null | string @go(DocumentVersion,*string) - - // The parameters for the RUN_COMMAND task execution. Documented below. - parameter?: [...#AutomationParametersParameterObservation] @go(Parameter,[]AutomationParametersParameterObservation) -} - -#AutomationParametersParameterInitParameters: { - // The name of the maintenance window task. - name?: null | string @go(Name,*string) - - // The array of strings. - values?: [...null | string] @go(Values,[]*string) -} - -#AutomationParametersParameterObservation: { - // The name of the maintenance window task. - name?: null | string @go(Name,*string) - - // The array of strings. - values?: [...null | string] @go(Values,[]*string) -} - -#AutomationParametersParameterParameters: { - // The name of the maintenance window task. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The array of strings. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#AutomationParametersParameters: { - // The version of an Automation document to use during task execution. - // +kubebuilder:validation:Optional - documentVersion?: null | string @go(DocumentVersion,*string) - - // The parameters for the RUN_COMMAND task execution. Documented below. - // +kubebuilder:validation:Optional - parameter?: [...#AutomationParametersParameterParameters] @go(Parameter,[]AutomationParametersParameterParameters) -} - -#CloudwatchConfigInitParameters: { - // The name of the CloudWatch log group where you want to send command output. If you don't specify a group name, Systems Manager automatically creates a log group for you. The log group uses the following naming format: aws/ssm/SystemsManagerDocumentName. - cloudwatchLogGroupName?: null | string @go(CloudwatchLogGroupName,*string) - - // Enables Systems Manager to send command output to CloudWatch Logs. - cloudwatchOutputEnabled?: null | bool @go(CloudwatchOutputEnabled,*bool) -} - -#CloudwatchConfigObservation: { - // The name of the CloudWatch log group where you want to send command output. If you don't specify a group name, Systems Manager automatically creates a log group for you. The log group uses the following naming format: aws/ssm/SystemsManagerDocumentName. - cloudwatchLogGroupName?: null | string @go(CloudwatchLogGroupName,*string) - - // Enables Systems Manager to send command output to CloudWatch Logs. - cloudwatchOutputEnabled?: null | bool @go(CloudwatchOutputEnabled,*bool) -} - -#CloudwatchConfigParameters: { - // The name of the CloudWatch log group where you want to send command output. If you don't specify a group name, Systems Manager automatically creates a log group for you. The log group uses the following naming format: aws/ssm/SystemsManagerDocumentName. - // +kubebuilder:validation:Optional - cloudwatchLogGroupName?: null | string @go(CloudwatchLogGroupName,*string) - - // Enables Systems Manager to send command output to CloudWatch Logs. - // +kubebuilder:validation:Optional - cloudwatchOutputEnabled?: null | bool @go(CloudwatchOutputEnabled,*bool) -} - -#LambdaParametersInitParameters: { - // Pass client-specific information to the Lambda function that you are invoking. - clientContext?: null | string @go(ClientContext,*string) - - // Specify a Lambda function version or alias name. - qualifier?: null | string @go(Qualifier,*string) -} - -#LambdaParametersObservation: { - // Pass client-specific information to the Lambda function that you are invoking. - clientContext?: null | string @go(ClientContext,*string) - - // Specify a Lambda function version or alias name. - qualifier?: null | string @go(Qualifier,*string) -} - -#LambdaParametersParameters: { - // Pass client-specific information to the Lambda function that you are invoking. - // +kubebuilder:validation:Optional - clientContext?: null | string @go(ClientContext,*string) - - // JSON to provide to your Lambda function as input. - // +kubebuilder:validation:Optional - payloadSecretRef?: null | v1.#SecretKeySelector @go(PayloadSecretRef,*v1.SecretKeySelector) - - // Specify a Lambda function version or alias name. - // +kubebuilder:validation:Optional - qualifier?: null | string @go(Qualifier,*string) -} - -#MaintenanceWindowTaskInitParameters: { - // Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are CONTINUE_TASK and CANCEL_TASK. - cutoffBehavior?: null | string @go(CutoffBehavior,*string) - - // The description of the maintenance window task. - description?: null | string @go(Description,*string) - - // The maximum number of targets this task can be run for in parallel. - maxConcurrency?: null | string @go(MaxConcurrency,*string) - - // The maximum number of errors allowed before this task stops being scheduled. - maxErrors?: null | string @go(MaxErrors,*string) - - // The name of the maintenance window task. - name?: null | string @go(Name,*string) - - // The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel. - priority?: null | float64 @go(Priority,*float64) - - // The targets (either instances or window target ids). Instances are specified using Key=InstanceIds,Values=instanceid1,instanceid2. Window target ids are specified using Key=WindowTargetIds,Values=window target id1, window target id2. - targets?: [...#MaintenanceWindowTaskTargetsInitParameters] @go(Targets,[]MaintenanceWindowTaskTargetsInitParameters) - - // Configuration block with parameters for task execution. - taskInvocationParameters?: [...#TaskInvocationParametersInitParameters] @go(TaskInvocationParameters,[]TaskInvocationParametersInitParameters) - - // The type of task being registered. Valid values: AUTOMATION, LAMBDA, RUN_COMMAND or STEP_FUNCTIONS. - taskType?: null | string @go(TaskType,*string) -} - -#MaintenanceWindowTaskObservation: { - // The ARN of the maintenance window task. - arn?: null | string @go(Arn,*string) - - // Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are CONTINUE_TASK and CANCEL_TASK. - cutoffBehavior?: null | string @go(CutoffBehavior,*string) - - // The description of the maintenance window task. - description?: null | string @go(Description,*string) - - // The ID of the maintenance window task. - id?: null | string @go(ID,*string) - - // The maximum number of targets this task can be run for in parallel. - maxConcurrency?: null | string @go(MaxConcurrency,*string) - - // The maximum number of errors allowed before this task stops being scheduled. - maxErrors?: null | string @go(MaxErrors,*string) - - // The name of the maintenance window task. - name?: null | string @go(Name,*string) - - // The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel. - priority?: null | float64 @go(Priority,*float64) - - // The role that should be assumed when executing the task. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you. - serviceRoleArn?: null | string @go(ServiceRoleArn,*string) - - // The targets (either instances or window target ids). Instances are specified using Key=InstanceIds,Values=instanceid1,instanceid2. Window target ids are specified using Key=WindowTargetIds,Values=window target id1, window target id2. - targets?: [...#MaintenanceWindowTaskTargetsObservation] @go(Targets,[]MaintenanceWindowTaskTargetsObservation) - - // The ARN of the task to execute. - taskArn?: null | string @go(TaskArn,*string) - - // Configuration block with parameters for task execution. - taskInvocationParameters?: [...#TaskInvocationParametersObservation] @go(TaskInvocationParameters,[]TaskInvocationParametersObservation) - - // The type of task being registered. Valid values: AUTOMATION, LAMBDA, RUN_COMMAND or STEP_FUNCTIONS. - taskType?: null | string @go(TaskType,*string) - - // The Id of the maintenance window to register the task with. - windowId?: null | string @go(WindowID,*string) - - // The ID of the maintenance window task. - windowTaskId?: null | string @go(WindowTaskID,*string) -} - -#MaintenanceWindowTaskParameters: { - // Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are CONTINUE_TASK and CANCEL_TASK. - // +kubebuilder:validation:Optional - cutoffBehavior?: null | string @go(CutoffBehavior,*string) - - // The description of the maintenance window task. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The maximum number of targets this task can be run for in parallel. - // +kubebuilder:validation:Optional - maxConcurrency?: null | string @go(MaxConcurrency,*string) - - // The maximum number of errors allowed before this task stops being scheduled. - // +kubebuilder:validation:Optional - maxErrors?: null | string @go(MaxErrors,*string) - - // The name of the maintenance window task. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The role that should be assumed when executing the task. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - serviceRoleArn?: null | string @go(ServiceRoleArn,*string) - - // Reference to a Role in iam to populate serviceRoleArn. - // +kubebuilder:validation:Optional - serviceRoleArnRef?: null | v1.#Reference @go(ServiceRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate serviceRoleArn. - // +kubebuilder:validation:Optional - serviceRoleArnSelector?: null | v1.#Selector @go(ServiceRoleArnSelector,*v1.Selector) - - // The targets (either instances or window target ids). Instances are specified using Key=InstanceIds,Values=instanceid1,instanceid2. Window target ids are specified using Key=WindowTargetIds,Values=window target id1, window target id2. - // +kubebuilder:validation:Optional - targets?: [...#MaintenanceWindowTaskTargetsParameters] @go(Targets,[]MaintenanceWindowTaskTargetsParameters) - - // The ARN of the task to execute. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - taskArn?: null | string @go(TaskArn,*string) - - // Reference to a Function in lambda to populate taskArn. - // +kubebuilder:validation:Optional - taskArnRef?: null | v1.#Reference @go(TaskArnRef,*v1.Reference) - - // Selector for a Function in lambda to populate taskArn. - // +kubebuilder:validation:Optional - taskArnSelector?: null | v1.#Selector @go(TaskArnSelector,*v1.Selector) - - // Configuration block with parameters for task execution. - // +kubebuilder:validation:Optional - taskInvocationParameters?: [...#TaskInvocationParametersParameters] @go(TaskInvocationParameters,[]TaskInvocationParametersParameters) - - // The type of task being registered. Valid values: AUTOMATION, LAMBDA, RUN_COMMAND or STEP_FUNCTIONS. - // +kubebuilder:validation:Optional - taskType?: null | string @go(TaskType,*string) - - // The Id of the maintenance window to register the task with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ssm/v1beta1.MaintenanceWindow - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - windowId?: null | string @go(WindowID,*string) - - // Reference to a MaintenanceWindow in ssm to populate windowId. - // +kubebuilder:validation:Optional - windowIdRef?: null | v1.#Reference @go(WindowIDRef,*v1.Reference) - - // Selector for a MaintenanceWindow in ssm to populate windowId. - // +kubebuilder:validation:Optional - windowIdSelector?: null | v1.#Selector @go(WindowIDSelector,*v1.Selector) -} - -#MaintenanceWindowTaskTargetsInitParameters: { - key?: null | string @go(Key,*string) - - // The array of strings. - values?: [...null | string] @go(Values,[]*string) -} - -#MaintenanceWindowTaskTargetsObservation: { - key?: null | string @go(Key,*string) - - // The array of strings. - values?: [...null | string] @go(Values,[]*string) -} - -#MaintenanceWindowTaskTargetsParameters: { - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The array of strings. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#NotificationConfigInitParameters: { - // The different events for which you can receive notifications. Valid values: All, InProgress, Success, TimedOut, Cancelled, and Failed - notificationEvents?: [...null | string] @go(NotificationEvents,[]*string) - - // When specified with Command, receive notification when the status of a command changes. When specified with Invocation, for commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes. Valid values: Command and Invocation - notificationType?: null | string @go(NotificationType,*string) -} - -#NotificationConfigObservation: { - // An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes notifications about command status changes to this topic. - notificationArn?: null | string @go(NotificationArn,*string) - - // The different events for which you can receive notifications. Valid values: All, InProgress, Success, TimedOut, Cancelled, and Failed - notificationEvents?: [...null | string] @go(NotificationEvents,[]*string) - - // When specified with Command, receive notification when the status of a command changes. When specified with Invocation, for commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes. Valid values: Command and Invocation - notificationType?: null | string @go(NotificationType,*string) -} - -#NotificationConfigParameters: { - // An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes notifications about command status changes to this topic. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/sns/v1beta1.Topic - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - notificationArn?: null | string @go(NotificationArn,*string) - - // Reference to a Topic in sns to populate notificationArn. - // +kubebuilder:validation:Optional - notificationArnRef?: null | v1.#Reference @go(NotificationArnRef,*v1.Reference) - - // Selector for a Topic in sns to populate notificationArn. - // +kubebuilder:validation:Optional - notificationArnSelector?: null | v1.#Selector @go(NotificationArnSelector,*v1.Selector) - - // The different events for which you can receive notifications. Valid values: All, InProgress, Success, TimedOut, Cancelled, and Failed - // +kubebuilder:validation:Optional - notificationEvents?: [...null | string] @go(NotificationEvents,[]*string) - - // When specified with Command, receive notification when the status of a command changes. When specified with Invocation, for commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes. Valid values: Command and Invocation - // +kubebuilder:validation:Optional - notificationType?: null | string @go(NotificationType,*string) -} - -#RunCommandParametersInitParameters: { - // Configuration options for sending command output to CloudWatch Logs. Documented below. - cloudwatchConfig?: [...#CloudwatchConfigInitParameters] @go(CloudwatchConfig,[]CloudwatchConfigInitParameters) - - // Information about the command(s) to execute. - comment?: null | string @go(Comment,*string) - - // The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated. - documentHash?: null | string @go(DocumentHash,*string) - - // SHA-256 or SHA-1. SHA-1 hashes have been deprecated. Valid values: Sha256 and Sha1 - documentHashType?: null | string @go(DocumentHashType,*string) - - // The version of an Automation document to use during task execution. - documentVersion?: null | string @go(DocumentVersion,*string) - - // Configurations for sending notifications about command status changes on a per-instance basis. Documented below. - notificationConfig?: [...#NotificationConfigInitParameters] @go(NotificationConfig,[]NotificationConfigInitParameters) - - // The Amazon S3 bucket subfolder. - outputS3KeyPrefix?: null | string @go(OutputS3KeyPrefix,*string) - - // The parameters for the RUN_COMMAND task execution. Documented below. - parameter?: [...#RunCommandParametersParameterInitParameters] @go(Parameter,[]RunCommandParametersParameterInitParameters) - - // If this time is reached and the command has not already started executing, it doesn't run. - timeoutSeconds?: null | float64 @go(TimeoutSeconds,*float64) -} - -#RunCommandParametersObservation: { - // Configuration options for sending command output to CloudWatch Logs. Documented below. - cloudwatchConfig?: [...#CloudwatchConfigObservation] @go(CloudwatchConfig,[]CloudwatchConfigObservation) - - // Information about the command(s) to execute. - comment?: null | string @go(Comment,*string) - - // The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated. - documentHash?: null | string @go(DocumentHash,*string) - - // SHA-256 or SHA-1. SHA-1 hashes have been deprecated. Valid values: Sha256 and Sha1 - documentHashType?: null | string @go(DocumentHashType,*string) - - // The version of an Automation document to use during task execution. - documentVersion?: null | string @go(DocumentVersion,*string) - - // Configurations for sending notifications about command status changes on a per-instance basis. Documented below. - notificationConfig?: [...#NotificationConfigObservation] @go(NotificationConfig,[]NotificationConfigObservation) - - // The name of the Amazon S3 bucket. - outputS3Bucket?: null | string @go(OutputS3Bucket,*string) - - // The Amazon S3 bucket subfolder. - outputS3KeyPrefix?: null | string @go(OutputS3KeyPrefix,*string) - - // The parameters for the RUN_COMMAND task execution. Documented below. - parameter?: [...#RunCommandParametersParameterObservation] @go(Parameter,[]RunCommandParametersParameterObservation) - - // The role that should be assumed when executing the task. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you. - serviceRoleArn?: null | string @go(ServiceRoleArn,*string) - - // If this time is reached and the command has not already started executing, it doesn't run. - timeoutSeconds?: null | float64 @go(TimeoutSeconds,*float64) -} - -#RunCommandParametersParameterInitParameters: { - // The name of the maintenance window task. - name?: null | string @go(Name,*string) - - // The array of strings. - values?: [...null | string] @go(Values,[]*string) -} - -#RunCommandParametersParameterObservation: { - // The name of the maintenance window task. - name?: null | string @go(Name,*string) - - // The array of strings. - values?: [...null | string] @go(Values,[]*string) -} - -#RunCommandParametersParameterParameters: { - // The name of the maintenance window task. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The array of strings. - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#RunCommandParametersParameters: { - // Configuration options for sending command output to CloudWatch Logs. Documented below. - // +kubebuilder:validation:Optional - cloudwatchConfig?: [...#CloudwatchConfigParameters] @go(CloudwatchConfig,[]CloudwatchConfigParameters) - - // Information about the command(s) to execute. - // +kubebuilder:validation:Optional - comment?: null | string @go(Comment,*string) - - // The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated. - // +kubebuilder:validation:Optional - documentHash?: null | string @go(DocumentHash,*string) - - // SHA-256 or SHA-1. SHA-1 hashes have been deprecated. Valid values: Sha256 and Sha1 - // +kubebuilder:validation:Optional - documentHashType?: null | string @go(DocumentHashType,*string) - - // The version of an Automation document to use during task execution. - // +kubebuilder:validation:Optional - documentVersion?: null | string @go(DocumentVersion,*string) - - // Configurations for sending notifications about command status changes on a per-instance basis. Documented below. - // +kubebuilder:validation:Optional - notificationConfig?: [...#NotificationConfigParameters] @go(NotificationConfig,[]NotificationConfigParameters) - - // The name of the Amazon S3 bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - outputS3Bucket?: null | string @go(OutputS3Bucket,*string) - - // Reference to a Bucket in s3 to populate outputS3Bucket. - // +kubebuilder:validation:Optional - outputS3BucketRef?: null | v1.#Reference @go(OutputS3BucketRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate outputS3Bucket. - // +kubebuilder:validation:Optional - outputS3BucketSelector?: null | v1.#Selector @go(OutputS3BucketSelector,*v1.Selector) - - // The Amazon S3 bucket subfolder. - // +kubebuilder:validation:Optional - outputS3KeyPrefix?: null | string @go(OutputS3KeyPrefix,*string) - - // The parameters for the RUN_COMMAND task execution. Documented below. - // +kubebuilder:validation:Optional - parameter?: [...#RunCommandParametersParameterParameters] @go(Parameter,[]RunCommandParametersParameterParameters) - - // The role that should be assumed when executing the task. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - serviceRoleArn?: null | string @go(ServiceRoleArn,*string) - - // Reference to a Role in iam to populate serviceRoleArn. - // +kubebuilder:validation:Optional - serviceRoleArnRef?: null | v1.#Reference @go(ServiceRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate serviceRoleArn. - // +kubebuilder:validation:Optional - serviceRoleArnSelector?: null | v1.#Selector @go(ServiceRoleArnSelector,*v1.Selector) - - // If this time is reached and the command has not already started executing, it doesn't run. - // +kubebuilder:validation:Optional - timeoutSeconds?: null | float64 @go(TimeoutSeconds,*float64) -} - -#StepFunctionsParametersInitParameters: { - // The name of the maintenance window task. - name?: null | string @go(Name,*string) -} - -#StepFunctionsParametersObservation: { - // The name of the maintenance window task. - name?: null | string @go(Name,*string) -} - -#StepFunctionsParametersParameters: { - // The inputs for the STEP_FUNCTION task. - // +kubebuilder:validation:Optional - inputSecretRef?: null | v1.#SecretKeySelector @go(InputSecretRef,*v1.SecretKeySelector) - - // The name of the maintenance window task. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) -} - -#TaskInvocationParametersInitParameters: { - // The parameters for an AUTOMATION task type. Documented below. - automationParameters?: [...#AutomationParametersInitParameters] @go(AutomationParameters,[]AutomationParametersInitParameters) - - // The parameters for a LAMBDA task type. Documented below. - lambdaParameters?: [...#LambdaParametersInitParameters] @go(LambdaParameters,[]LambdaParametersInitParameters) - - // The parameters for a RUN_COMMAND task type. Documented below. - runCommandParameters?: [...#RunCommandParametersInitParameters] @go(RunCommandParameters,[]RunCommandParametersInitParameters) - - // The parameters for a STEP_FUNCTIONS task type. Documented below. - stepFunctionsParameters?: [...#StepFunctionsParametersInitParameters] @go(StepFunctionsParameters,[]StepFunctionsParametersInitParameters) -} - -#TaskInvocationParametersObservation: { - // The parameters for an AUTOMATION task type. Documented below. - automationParameters?: [...#AutomationParametersObservation] @go(AutomationParameters,[]AutomationParametersObservation) - - // The parameters for a LAMBDA task type. Documented below. - lambdaParameters?: [...#LambdaParametersObservation] @go(LambdaParameters,[]LambdaParametersObservation) - - // The parameters for a RUN_COMMAND task type. Documented below. - runCommandParameters?: [...#RunCommandParametersObservation] @go(RunCommandParameters,[]RunCommandParametersObservation) - - // The parameters for a STEP_FUNCTIONS task type. Documented below. - stepFunctionsParameters?: [...#StepFunctionsParametersObservation] @go(StepFunctionsParameters,[]StepFunctionsParametersObservation) -} - -#TaskInvocationParametersParameters: { - // The parameters for an AUTOMATION task type. Documented below. - // +kubebuilder:validation:Optional - automationParameters?: [...#AutomationParametersParameters] @go(AutomationParameters,[]AutomationParametersParameters) - - // The parameters for a LAMBDA task type. Documented below. - // +kubebuilder:validation:Optional - lambdaParameters?: [...#LambdaParametersParameters] @go(LambdaParameters,[]LambdaParametersParameters) - - // The parameters for a RUN_COMMAND task type. Documented below. - // +kubebuilder:validation:Optional - runCommandParameters?: [...#RunCommandParametersParameters] @go(RunCommandParameters,[]RunCommandParametersParameters) - - // The parameters for a STEP_FUNCTIONS task type. Documented below. - // +kubebuilder:validation:Optional - stepFunctionsParameters?: [...#StepFunctionsParametersParameters] @go(StepFunctionsParameters,[]StepFunctionsParametersParameters) -} - -// MaintenanceWindowTaskSpec defines the desired state of MaintenanceWindowTask -#MaintenanceWindowTaskSpec: { - v1.#ResourceSpec - forProvider: #MaintenanceWindowTaskParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #MaintenanceWindowTaskInitParameters @go(InitProvider) -} - -// MaintenanceWindowTaskStatus defines the observed state of MaintenanceWindowTask. -#MaintenanceWindowTaskStatus: { - v1.#ResourceStatus - atProvider?: #MaintenanceWindowTaskObservation @go(AtProvider) -} - -// MaintenanceWindowTask is the Schema for the MaintenanceWindowTasks API. Provides an SSM Maintenance Window Task resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#MaintenanceWindowTask: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.taskType) || (has(self.initProvider) && has(self.initProvider.taskType))",message="spec.forProvider.taskType is a required parameter" - spec: #MaintenanceWindowTaskSpec @go(Spec) - status?: #MaintenanceWindowTaskStatus @go(Status) -} - -// MaintenanceWindowTaskList contains a list of MaintenanceWindowTasks -#MaintenanceWindowTaskList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#MaintenanceWindowTask] @go(Items,[]MaintenanceWindowTask) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_parameter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_parameter_types_go_gen.cue deleted file mode 100644 index 471265e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_parameter_types_go_gen.cue +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ParameterInitParameters_2: { - // Regular expression used to validate the parameter value. - allowedPattern?: null | string @go(AllowedPattern,*string) - - // ARN of the parameter. - arn?: null | string @go(Arn,*string) - - // Data type of the parameter. Valid values: text, aws:ssm:integration and aws:ec2:image for AMI format, see the Native parameter support for Amazon Machine Image IDs. - dataType?: null | string @go(DataType,*string) - - // Description of the parameter. - description?: null | string @go(Description,*string) - - // Value of the parameter. This argument is not valid with a type of SecureString. - insecureValue?: null | string @go(InsecureValue,*string) - - // KMS key ID or ARN for encrypting a SecureString. - keyId?: null | string @go(KeyID,*string) - - // Overwrite an existing parameter. - overwrite?: null | bool @go(Overwrite,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Parameter tier to assign to the parameter. If not specified, will use the default parameter tier for the region. Valid tiers are Standard, Advanced, and Intelligent-Tiering. Downgrading an Advanced tier parameter to Standard will recreate the resource. For more information on parameter tiers, see the AWS SSM Parameter tier comparison and guide. - tier?: null | string @go(Tier,*string) - - // Type of the parameter. Valid types are String, StringList and SecureString. - type?: null | string @go(Type,*string) -} - -#ParameterObservation_2: { - // Regular expression used to validate the parameter value. - allowedPattern?: null | string @go(AllowedPattern,*string) - - // ARN of the parameter. - arn?: null | string @go(Arn,*string) - - // Data type of the parameter. Valid values: text, aws:ssm:integration and aws:ec2:image for AMI format, see the Native parameter support for Amazon Machine Image IDs. - dataType?: null | string @go(DataType,*string) - - // Description of the parameter. - description?: null | string @go(Description,*string) - id?: null | string @go(ID,*string) - - // Value of the parameter. This argument is not valid with a type of SecureString. - insecureValue?: null | string @go(InsecureValue,*string) - - // KMS key ID or ARN for encrypting a SecureString. - keyId?: null | string @go(KeyID,*string) - - // Overwrite an existing parameter. - overwrite?: null | bool @go(Overwrite,*bool) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Parameter tier to assign to the parameter. If not specified, will use the default parameter tier for the region. Valid tiers are Standard, Advanced, and Intelligent-Tiering. Downgrading an Advanced tier parameter to Standard will recreate the resource. For more information on parameter tiers, see the AWS SSM Parameter tier comparison and guide. - tier?: null | string @go(Tier,*string) - - // Type of the parameter. Valid types are String, StringList and SecureString. - type?: null | string @go(Type,*string) - - // Version of the parameter. - version?: null | float64 @go(Version,*float64) -} - -#ParameterParameters_2: { - // Regular expression used to validate the parameter value. - // +kubebuilder:validation:Optional - allowedPattern?: null | string @go(AllowedPattern,*string) - - // ARN of the parameter. - // +kubebuilder:validation:Optional - arn?: null | string @go(Arn,*string) - - // Data type of the parameter. Valid values: text, aws:ssm:integration and aws:ec2:image for AMI format, see the Native parameter support for Amazon Machine Image IDs. - // +kubebuilder:validation:Optional - dataType?: null | string @go(DataType,*string) - - // Description of the parameter. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Value of the parameter. This argument is not valid with a type of SecureString. - // +kubebuilder:validation:Optional - insecureValue?: null | string @go(InsecureValue,*string) - - // KMS key ID or ARN for encrypting a SecureString. - // +kubebuilder:validation:Optional - keyId?: null | string @go(KeyID,*string) - - // Overwrite an existing parameter. - // +kubebuilder:validation:Optional - overwrite?: null | bool @go(Overwrite,*bool) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Parameter tier to assign to the parameter. If not specified, will use the default parameter tier for the region. Valid tiers are Standard, Advanced, and Intelligent-Tiering. Downgrading an Advanced tier parameter to Standard will recreate the resource. For more information on parameter tiers, see the AWS SSM Parameter tier comparison and guide. - // +kubebuilder:validation:Optional - tier?: null | string @go(Tier,*string) - - // Type of the parameter. Valid types are String, StringList and SecureString. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // Value of the parameter.15 and later, this may require additional configuration handling for certain scenarios.15 Upgrade Guide. - // +kubebuilder:validation:Optional - valueSecretRef?: null | v1.#SecretKeySelector @go(ValueSecretRef,*v1.SecretKeySelector) -} - -// ParameterSpec defines the desired state of Parameter -#ParameterSpec: { - v1.#ResourceSpec - forProvider: #ParameterParameters_2 @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ParameterInitParameters_2 @go(InitProvider) -} - -// ParameterStatus defines the observed state of Parameter. -#ParameterStatus: { - v1.#ResourceStatus - atProvider?: #ParameterObservation_2 @go(AtProvider) -} - -// Parameter is the Schema for the Parameters API. Provides a SSM Parameter resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Parameter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #ParameterSpec @go(Spec) - status?: #ParameterStatus @go(Status) -} - -// ParameterList contains a list of Parameters -#ParameterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Parameter] @go(Items,[]Parameter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_patchbaseline_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_patchbaseline_types_go_gen.cue deleted file mode 100644 index cdf7ce4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_patchbaseline_types_go_gen.cue +++ /dev/null @@ -1,448 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ApprovalRuleInitParameters: { - // The number of days after the release date of each patch matched by the rule the patch is marked as approved in the patch baseline. - // Valid Range: 0 to 100. - // Conflicts with approve_until_date. - approveAfterDays?: null | float64 @go(ApproveAfterDays,*float64) - - // The cutoff date for auto approval of released patches. - // Any patches released on or before this date are installed automatically. - // Date is formatted as YYYY-MM-DD. - // Conflicts with approve_after_days - approveUntilDate?: null | string @go(ApproveUntilDate,*string) - - // The compliance level for patches approved by this rule. - // Valid values are CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, and UNSPECIFIED. - // The default value is UNSPECIFIED. - complianceLevel?: null | string @go(ComplianceLevel,*string) - - // Boolean enabling the application of non-security updates. - // The default value is false. - // Valid for Linux instances only. - enableNonSecurity?: null | bool @go(EnableNonSecurity,*bool) - - // The patch filter group that defines the criteria for the rule. - // Up to 5 patch filters can be specified per approval rule using Key/Value pairs. - // Valid combinations of these Keys and the operating_system value can be found in the SSM DescribePatchProperties API Reference. - // Valid Values are exact values for the patch property given as the key, or a wildcard *, which matches all values. - patchFilter?: [...#PatchFilterInitParameters] @go(PatchFilter,[]PatchFilterInitParameters) -} - -#ApprovalRuleObservation: { - // The number of days after the release date of each patch matched by the rule the patch is marked as approved in the patch baseline. - // Valid Range: 0 to 100. - // Conflicts with approve_until_date. - approveAfterDays?: null | float64 @go(ApproveAfterDays,*float64) - - // The cutoff date for auto approval of released patches. - // Any patches released on or before this date are installed automatically. - // Date is formatted as YYYY-MM-DD. - // Conflicts with approve_after_days - approveUntilDate?: null | string @go(ApproveUntilDate,*string) - - // The compliance level for patches approved by this rule. - // Valid values are CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, and UNSPECIFIED. - // The default value is UNSPECIFIED. - complianceLevel?: null | string @go(ComplianceLevel,*string) - - // Boolean enabling the application of non-security updates. - // The default value is false. - // Valid for Linux instances only. - enableNonSecurity?: null | bool @go(EnableNonSecurity,*bool) - - // The patch filter group that defines the criteria for the rule. - // Up to 5 patch filters can be specified per approval rule using Key/Value pairs. - // Valid combinations of these Keys and the operating_system value can be found in the SSM DescribePatchProperties API Reference. - // Valid Values are exact values for the patch property given as the key, or a wildcard *, which matches all values. - patchFilter?: [...#PatchFilterObservation] @go(PatchFilter,[]PatchFilterObservation) -} - -#ApprovalRuleParameters: { - // The number of days after the release date of each patch matched by the rule the patch is marked as approved in the patch baseline. - // Valid Range: 0 to 100. - // Conflicts with approve_until_date. - // +kubebuilder:validation:Optional - approveAfterDays?: null | float64 @go(ApproveAfterDays,*float64) - - // The cutoff date for auto approval of released patches. - // Any patches released on or before this date are installed automatically. - // Date is formatted as YYYY-MM-DD. - // Conflicts with approve_after_days - // +kubebuilder:validation:Optional - approveUntilDate?: null | string @go(ApproveUntilDate,*string) - - // The compliance level for patches approved by this rule. - // Valid values are CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, and UNSPECIFIED. - // The default value is UNSPECIFIED. - // +kubebuilder:validation:Optional - complianceLevel?: null | string @go(ComplianceLevel,*string) - - // Boolean enabling the application of non-security updates. - // The default value is false. - // Valid for Linux instances only. - // +kubebuilder:validation:Optional - enableNonSecurity?: null | bool @go(EnableNonSecurity,*bool) - - // The patch filter group that defines the criteria for the rule. - // Up to 5 patch filters can be specified per approval rule using Key/Value pairs. - // Valid combinations of these Keys and the operating_system value can be found in the SSM DescribePatchProperties API Reference. - // Valid Values are exact values for the patch property given as the key, or a wildcard *, which matches all values. - // +kubebuilder:validation:Optional - patchFilter: [...#PatchFilterParameters] @go(PatchFilter,[]PatchFilterParameters) -} - -#GlobalFilterInitParameters: { - key?: null | string @go(Key,*string) - values?: [...null | string] @go(Values,[]*string) -} - -#GlobalFilterObservation: { - key?: null | string @go(Key,*string) - values?: [...null | string] @go(Values,[]*string) -} - -#GlobalFilterParameters: { - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#PatchBaselineInitParameters: { - // A set of rules used to include patches in the baseline. - // Up to 10 approval rules can be specified. - // See approval_rule below. - approvalRule?: [...#ApprovalRuleInitParameters] @go(ApprovalRule,[]ApprovalRuleInitParameters) - - // A list of explicitly approved patches for the baseline. - // Cannot be specified with approval_rule. - approvedPatches?: [...null | string] @go(ApprovedPatches,[]*string) - - // The compliance level for approved patches. - // This means that if an approved patch is reported as missing, this is the severity of the compliance violation. - // Valid values are CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, UNSPECIFIED. - // The default value is UNSPECIFIED. - approvedPatchesComplianceLevel?: null | string @go(ApprovedPatchesComplianceLevel,*string) - - // Indicates whether the list of approved patches includes non-security updates that should be applied to the instances. - // Applies to Linux instances only. - approvedPatchesEnableNonSecurity?: null | bool @go(ApprovedPatchesEnableNonSecurity,*bool) - - // The description of the patch baseline. - description?: null | string @go(Description,*string) - - // A set of global filters used to exclude patches from the baseline. - // Up to 4 global filters can be specified using Key/Value pairs. - // Valid Keys are PRODUCT, CLASSIFICATION, MSRC_SEVERITY, and PATCH_ID. - globalFilter?: [...#GlobalFilterInitParameters] @go(GlobalFilter,[]GlobalFilterInitParameters) - - // The name of the patch baseline. - name?: null | string @go(Name,*string) - - // The operating system the patch baseline applies to. - // Valid values are - // AMAZON_LINUX, - // AMAZON_LINUX_2, - // AMAZON_LINUX_2022, - // CENTOS, - // DEBIAN, - // MACOS, - // ORACLE_LINUX, - // RASPBIAN, - // REDHAT_ENTERPRISE_LINUX, - // ROCKY_LINUX, - // SUSE, - // UBUNTU, and - // WINDOWS. - // The default value is WINDOWS. - operatingSystem?: null | string @go(OperatingSystem,*string) - - // A list of rejected patches. - rejectedPatches?: [...null | string] @go(RejectedPatches,[]*string) - - // The action for Patch Manager to take on patches included in the rejected_patches list. - // Valid values are ALLOW_AS_DEPENDENCY and BLOCK. - rejectedPatchesAction?: null | string @go(RejectedPatchesAction,*string) - - // Configuration block with alternate sources for patches. - // Applies to Linux instances only. - // See source below. - source?: [...#SourceInitParameters] @go(Source,[]SourceInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PatchBaselineObservation: { - // A set of rules used to include patches in the baseline. - // Up to 10 approval rules can be specified. - // See approval_rule below. - approvalRule?: [...#ApprovalRuleObservation] @go(ApprovalRule,[]ApprovalRuleObservation) - - // A list of explicitly approved patches for the baseline. - // Cannot be specified with approval_rule. - approvedPatches?: [...null | string] @go(ApprovedPatches,[]*string) - - // The compliance level for approved patches. - // This means that if an approved patch is reported as missing, this is the severity of the compliance violation. - // Valid values are CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, UNSPECIFIED. - // The default value is UNSPECIFIED. - approvedPatchesComplianceLevel?: null | string @go(ApprovedPatchesComplianceLevel,*string) - - // Indicates whether the list of approved patches includes non-security updates that should be applied to the instances. - // Applies to Linux instances only. - approvedPatchesEnableNonSecurity?: null | bool @go(ApprovedPatchesEnableNonSecurity,*bool) - - // The ARN of the patch baseline. - arn?: null | string @go(Arn,*string) - - // The description of the patch baseline. - description?: null | string @go(Description,*string) - - // A set of global filters used to exclude patches from the baseline. - // Up to 4 global filters can be specified using Key/Value pairs. - // Valid Keys are PRODUCT, CLASSIFICATION, MSRC_SEVERITY, and PATCH_ID. - globalFilter?: [...#GlobalFilterObservation] @go(GlobalFilter,[]GlobalFilterObservation) - - // The ID of the patch baseline. - id?: null | string @go(ID,*string) - - // The name of the patch baseline. - name?: null | string @go(Name,*string) - - // The operating system the patch baseline applies to. - // Valid values are - // AMAZON_LINUX, - // AMAZON_LINUX_2, - // AMAZON_LINUX_2022, - // CENTOS, - // DEBIAN, - // MACOS, - // ORACLE_LINUX, - // RASPBIAN, - // REDHAT_ENTERPRISE_LINUX, - // ROCKY_LINUX, - // SUSE, - // UBUNTU, and - // WINDOWS. - // The default value is WINDOWS. - operatingSystem?: null | string @go(OperatingSystem,*string) - - // A list of rejected patches. - rejectedPatches?: [...null | string] @go(RejectedPatches,[]*string) - - // The action for Patch Manager to take on patches included in the rejected_patches list. - // Valid values are ALLOW_AS_DEPENDENCY and BLOCK. - rejectedPatchesAction?: null | string @go(RejectedPatchesAction,*string) - - // Configuration block with alternate sources for patches. - // Applies to Linux instances only. - // See source below. - source?: [...#SourceObservation] @go(Source,[]SourceObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#PatchBaselineParameters: { - // A set of rules used to include patches in the baseline. - // Up to 10 approval rules can be specified. - // See approval_rule below. - // +kubebuilder:validation:Optional - approvalRule?: [...#ApprovalRuleParameters] @go(ApprovalRule,[]ApprovalRuleParameters) - - // A list of explicitly approved patches for the baseline. - // Cannot be specified with approval_rule. - // +kubebuilder:validation:Optional - approvedPatches?: [...null | string] @go(ApprovedPatches,[]*string) - - // The compliance level for approved patches. - // This means that if an approved patch is reported as missing, this is the severity of the compliance violation. - // Valid values are CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, UNSPECIFIED. - // The default value is UNSPECIFIED. - // +kubebuilder:validation:Optional - approvedPatchesComplianceLevel?: null | string @go(ApprovedPatchesComplianceLevel,*string) - - // Indicates whether the list of approved patches includes non-security updates that should be applied to the instances. - // Applies to Linux instances only. - // +kubebuilder:validation:Optional - approvedPatchesEnableNonSecurity?: null | bool @go(ApprovedPatchesEnableNonSecurity,*bool) - - // The description of the patch baseline. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A set of global filters used to exclude patches from the baseline. - // Up to 4 global filters can be specified using Key/Value pairs. - // Valid Keys are PRODUCT, CLASSIFICATION, MSRC_SEVERITY, and PATCH_ID. - // +kubebuilder:validation:Optional - globalFilter?: [...#GlobalFilterParameters] @go(GlobalFilter,[]GlobalFilterParameters) - - // The name of the patch baseline. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The operating system the patch baseline applies to. - // Valid values are - // AMAZON_LINUX, - // AMAZON_LINUX_2, - // AMAZON_LINUX_2022, - // CENTOS, - // DEBIAN, - // MACOS, - // ORACLE_LINUX, - // RASPBIAN, - // REDHAT_ENTERPRISE_LINUX, - // ROCKY_LINUX, - // SUSE, - // UBUNTU, and - // WINDOWS. - // The default value is WINDOWS. - // +kubebuilder:validation:Optional - operatingSystem?: null | string @go(OperatingSystem,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A list of rejected patches. - // +kubebuilder:validation:Optional - rejectedPatches?: [...null | string] @go(RejectedPatches,[]*string) - - // The action for Patch Manager to take on patches included in the rejected_patches list. - // Valid values are ALLOW_AS_DEPENDENCY and BLOCK. - // +kubebuilder:validation:Optional - rejectedPatchesAction?: null | string @go(RejectedPatchesAction,*string) - - // Configuration block with alternate sources for patches. - // Applies to Linux instances only. - // See source below. - // +kubebuilder:validation:Optional - source?: [...#SourceParameters] @go(Source,[]SourceParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PatchFilterInitParameters: { - key?: null | string @go(Key,*string) - values?: [...null | string] @go(Values,[]*string) -} - -#PatchFilterObservation: { - key?: null | string @go(Key,*string) - values?: [...null | string] @go(Values,[]*string) -} - -#PatchFilterParameters: { - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // +kubebuilder:validation:Optional - values: [...null | string] @go(Values,[]*string) -} - -#SourceInitParameters: { - // The value of the yum repo configuration. - // For information about other options available for your yum repository configuration, see the dnf.conf documentation - configuration?: null | string @go(Configuration,*string) - - // The name specified to identify the patch source. - name?: null | string @go(Name,*string) - - // The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". - // For lists of supported product values, see PatchFilter. - products?: [...null | string] @go(Products,[]*string) -} - -#SourceObservation: { - // The value of the yum repo configuration. - // For information about other options available for your yum repository configuration, see the dnf.conf documentation - configuration?: null | string @go(Configuration,*string) - - // The name specified to identify the patch source. - name?: null | string @go(Name,*string) - - // The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". - // For lists of supported product values, see PatchFilter. - products?: [...null | string] @go(Products,[]*string) -} - -#SourceParameters: { - // The value of the yum repo configuration. - // For information about other options available for your yum repository configuration, see the dnf.conf documentation - // +kubebuilder:validation:Optional - configuration?: null | string @go(Configuration,*string) - - // The name specified to identify the patch source. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". - // For lists of supported product values, see PatchFilter. - // +kubebuilder:validation:Optional - products: [...null | string] @go(Products,[]*string) -} - -// PatchBaselineSpec defines the desired state of PatchBaseline -#PatchBaselineSpec: { - v1.#ResourceSpec - forProvider: #PatchBaselineParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PatchBaselineInitParameters @go(InitProvider) -} - -// PatchBaselineStatus defines the observed state of PatchBaseline. -#PatchBaselineStatus: { - v1.#ResourceStatus - atProvider?: #PatchBaselineObservation @go(AtProvider) -} - -// PatchBaseline is the Schema for the PatchBaselines API. Provides an SSM Patch Baseline resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PatchBaseline: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #PatchBaselineSpec @go(Spec) - status?: #PatchBaselineStatus @go(Status) -} - -// PatchBaselineList contains a list of PatchBaselines -#PatchBaselineList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PatchBaseline] @go(Items,[]PatchBaseline) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_patchgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_patchgroup_types_go_gen.cue deleted file mode 100644 index 6633e11..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_patchgroup_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PatchGroupInitParameters: { - // The name of the patch group that should be registered with the patch baseline. - patchGroup?: null | string @go(PatchGroup,*string) -} - -#PatchGroupObservation: { - // The ID of the patch baseline to register the patch group with. - baselineId?: null | string @go(BaselineID,*string) - - // The name of the patch group and ID of the patch baseline separated by a comma (,). - id?: null | string @go(ID,*string) - - // The name of the patch group that should be registered with the patch baseline. - patchGroup?: null | string @go(PatchGroup,*string) -} - -#PatchGroupParameters: { - // The ID of the patch baseline to register the patch group with. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ssm/v1beta1.PatchBaseline - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - baselineId?: null | string @go(BaselineID,*string) - - // Reference to a PatchBaseline in ssm to populate baselineId. - // +kubebuilder:validation:Optional - baselineIdRef?: null | v1.#Reference @go(BaselineIDRef,*v1.Reference) - - // Selector for a PatchBaseline in ssm to populate baselineId. - // +kubebuilder:validation:Optional - baselineIdSelector?: null | v1.#Selector @go(BaselineIDSelector,*v1.Selector) - - // The name of the patch group that should be registered with the patch baseline. - // +kubebuilder:validation:Optional - patchGroup?: null | string @go(PatchGroup,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// PatchGroupSpec defines the desired state of PatchGroup -#PatchGroupSpec: { - v1.#ResourceSpec - forProvider: #PatchGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PatchGroupInitParameters @go(InitProvider) -} - -// PatchGroupStatus defines the observed state of PatchGroup. -#PatchGroupStatus: { - v1.#ResourceStatus - atProvider?: #PatchGroupObservation @go(AtProvider) -} - -// PatchGroup is the Schema for the PatchGroups API. Provides an SSM Patch Group resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PatchGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.patchGroup) || (has(self.initProvider) && has(self.initProvider.patchGroup))",message="spec.forProvider.patchGroup is a required parameter" - spec: #PatchGroupSpec @go(Spec) - status?: #PatchGroupStatus @go(Status) -} - -// PatchGroupList contains a list of PatchGroups -#PatchGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PatchGroup] @go(Items,[]PatchGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_resourcedatasync_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_resourcedatasync_types_go_gen.cue deleted file mode 100644 index d974f51..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_resourcedatasync_types_go_gen.cue +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ResourceDataSyncInitParameters: { - // Amazon S3 configuration details for the sync. - s3Destination?: [...#S3DestinationInitParameters] @go(S3Destination,[]S3DestinationInitParameters) -} - -#ResourceDataSyncObservation: { - id?: null | string @go(ID,*string) - - // Amazon S3 configuration details for the sync. - s3Destination?: [...#S3DestinationObservation] @go(S3Destination,[]S3DestinationObservation) -} - -#ResourceDataSyncParameters: { - // Region with the bucket targeted by the Resource Data Sync. - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon S3 configuration details for the sync. - // +kubebuilder:validation:Optional - s3Destination?: [...#S3DestinationParameters] @go(S3Destination,[]S3DestinationParameters) -} - -#S3DestinationInitParameters: { - // ARN of an encryption key for a destination in Amazon S3. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Prefix for the bucket. - prefix?: null | string @go(Prefix,*string) - - // A supported sync format. Only JsonSerDe is currently supported. Defaults to JsonSerDe. - syncFormat?: null | string @go(SyncFormat,*string) -} - -#S3DestinationObservation: { - // Name of S3 bucket where the aggregated data is stored. - bucketName?: null | string @go(BucketName,*string) - - // ARN of an encryption key for a destination in Amazon S3. - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Prefix for the bucket. - prefix?: null | string @go(Prefix,*string) - - // Region with the bucket targeted by the Resource Data Sync. - region?: null | string @go(Region,*string) - - // A supported sync format. Only JsonSerDe is currently supported. Defaults to JsonSerDe. - syncFormat?: null | string @go(SyncFormat,*string) -} - -#S3DestinationParameters: { - // Name of S3 bucket where the aggregated data is stored. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Reference to a Bucket in s3 to populate bucketName. - // +kubebuilder:validation:Optional - bucketNameRef?: null | v1.#Reference @go(BucketNameRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate bucketName. - // +kubebuilder:validation:Optional - bucketNameSelector?: null | v1.#Selector @go(BucketNameSelector,*v1.Selector) - - // ARN of an encryption key for a destination in Amazon S3. - // +kubebuilder:validation:Optional - kmsKeyArn?: null | string @go(KMSKeyArn,*string) - - // Prefix for the bucket. - // +kubebuilder:validation:Optional - prefix?: null | string @go(Prefix,*string) - - // Region with the bucket targeted by the Resource Data Sync. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("region",false) - // +kubebuilder:validation:Optional - region?: null | string @go(Region,*string) - - // Reference to a Bucket in s3 to populate region. - // +kubebuilder:validation:Optional - regionRef?: null | v1.#Reference @go(RegionRef,*v1.Reference) - - // Selector for a Bucket in s3 to populate region. - // +kubebuilder:validation:Optional - regionSelector?: null | v1.#Selector @go(RegionSelector,*v1.Selector) - - // A supported sync format. Only JsonSerDe is currently supported. Defaults to JsonSerDe. - // +kubebuilder:validation:Optional - syncFormat?: null | string @go(SyncFormat,*string) -} - -// ResourceDataSyncSpec defines the desired state of ResourceDataSync -#ResourceDataSyncSpec: { - v1.#ResourceSpec - forProvider: #ResourceDataSyncParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ResourceDataSyncInitParameters @go(InitProvider) -} - -// ResourceDataSyncStatus defines the observed state of ResourceDataSync. -#ResourceDataSyncStatus: { - v1.#ResourceStatus - atProvider?: #ResourceDataSyncObservation @go(AtProvider) -} - -// ResourceDataSync is the Schema for the ResourceDataSyncs API. Provides a SSM resource data sync. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ResourceDataSync: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.s3Destination) || (has(self.initProvider) && has(self.initProvider.s3Destination))",message="spec.forProvider.s3Destination is a required parameter" - spec: #ResourceDataSyncSpec @go(Spec) - status?: #ResourceDataSyncStatus @go(Status) -} - -// ResourceDataSyncList contains a list of ResourceDataSyncs -#ResourceDataSyncList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ResourceDataSync] @go(Items,[]ResourceDataSync) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_servicesetting_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_servicesetting_types_go_gen.cue deleted file mode 100644 index 5409f0d..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssm/v1beta1/zz_servicesetting_types_go_gen.cue +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssm/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ServiceSettingInitParameters: { - // ID of the service setting. - settingId?: null | string @go(SettingID,*string) - - // Value of the service setting. - settingValue?: null | string @go(SettingValue,*string) -} - -#ServiceSettingObservation: { - // ARN of the service setting. - arn?: null | string @go(Arn,*string) - id?: null | string @go(ID,*string) - - // ID of the service setting. - settingId?: null | string @go(SettingID,*string) - - // Value of the service setting. - settingValue?: null | string @go(SettingValue,*string) - - // Status of the service setting. Value can be Default, Customized or PendingUpdate. - status?: null | string @go(Status,*string) -} - -#ServiceSettingParameters: { - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // ID of the service setting. - // +kubebuilder:validation:Optional - settingId?: null | string @go(SettingID,*string) - - // Value of the service setting. - // +kubebuilder:validation:Optional - settingValue?: null | string @go(SettingValue,*string) -} - -// ServiceSettingSpec defines the desired state of ServiceSetting -#ServiceSettingSpec: { - v1.#ResourceSpec - forProvider: #ServiceSettingParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ServiceSettingInitParameters @go(InitProvider) -} - -// ServiceSettingStatus defines the observed state of ServiceSetting. -#ServiceSettingStatus: { - v1.#ResourceStatus - atProvider?: #ServiceSettingObservation @go(AtProvider) -} - -// ServiceSetting is the Schema for the ServiceSettings API. Defines how a user interacts with or uses a service or a feature of a service. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ServiceSetting: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.settingId) || (has(self.initProvider) && has(self.initProvider.settingId))",message="spec.forProvider.settingId is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.settingValue) || (has(self.initProvider) && has(self.initProvider.settingValue))",message="spec.forProvider.settingValue is a required parameter" - spec: #ServiceSettingSpec @go(Spec) - status?: #ServiceSettingStatus @go(Status) -} - -// ServiceSettingList contains a list of ServiceSettings -#ServiceSettingList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ServiceSetting] @go(Items,[]ServiceSetting) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_accountassignment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_accountassignment_types_go_gen.cue deleted file mode 100644 index ba6c347..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_accountassignment_types_go_gen.cue +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssoadmin/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#AccountAssignmentInitParameters: { -} - -#AccountAssignmentObservation: { - // The identifier of the Account Assignment i.e., principal_id, principal_type, target_id, target_type, permission_set_arn, instance_arn separated by commas (,). - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) of the SSO Instance. - instanceArn?: null | string @go(InstanceArn,*string) - - // The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to. - permissionSetArn?: null | string @go(PermissionSetArn,*string) - - // An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). - principalId?: null | string @go(PrincipalID,*string) - - // The entity type for which the assignment will be created. Valid values: USER, GROUP. - principalType?: null | string @go(PrincipalType,*string) - - // An AWS account identifier, typically a 10-12 digit string. - targetId?: null | string @go(TargetID,*string) - - // The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT. - targetType?: null | string @go(TargetType,*string) -} - -#AccountAssignmentParameters: { - // The Amazon Resource Name (ARN) of the SSO Instance. - // +kubebuilder:validation:Required - instanceArn?: null | string @go(InstanceArn,*string) - - // The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to. - // +kubebuilder:validation:Required - permissionSetArn?: null | string @go(PermissionSetArn,*string) - - // An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). - // +kubebuilder:validation:Required - principalId?: null | string @go(PrincipalID,*string) - - // The entity type for which the assignment will be created. Valid values: USER, GROUP. - // +kubebuilder:validation:Required - principalType?: null | string @go(PrincipalType,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // An AWS account identifier, typically a 10-12 digit string. - // +kubebuilder:validation:Required - targetId?: null | string @go(TargetID,*string) - - // The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT. - // +kubebuilder:validation:Optional - targetType?: null | string @go(TargetType,*string) -} - -// AccountAssignmentSpec defines the desired state of AccountAssignment -#AccountAssignmentSpec: { - v1.#ResourceSpec - forProvider: #AccountAssignmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #AccountAssignmentInitParameters @go(InitProvider) -} - -// AccountAssignmentStatus defines the observed state of AccountAssignment. -#AccountAssignmentStatus: { - v1.#ResourceStatus - atProvider?: #AccountAssignmentObservation @go(AtProvider) -} - -// AccountAssignment is the Schema for the AccountAssignments API. Manages a Single Sign-On (SSO) Account Assignment -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#AccountAssignment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #AccountAssignmentSpec @go(Spec) - status?: #AccountAssignmentStatus @go(Status) -} - -// AccountAssignmentList contains a list of AccountAssignments -#AccountAssignmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#AccountAssignment] @go(Items,[]AccountAssignment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index e5ada4f..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssoadmin/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=ssoadmin.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "ssoadmin.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_managedpolicyattachment_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_managedpolicyattachment_types_go_gen.cue deleted file mode 100644 index cd4ae7c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_managedpolicyattachment_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssoadmin/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ManagedPolicyAttachmentInitParameters: { -} - -#ManagedPolicyAttachmentObservation: { - // The Amazon Resource Names (ARNs) of the Managed Policy, Permission Set, and SSO Instance, separated by a comma (,). - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed. - instanceArn?: null | string @go(InstanceArn,*string) - - // The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set. - managedPolicyArn?: null | string @go(ManagedPolicyArn,*string) - - // The name of the IAM Managed Policy. - managedPolicyName?: null | string @go(ManagedPolicyName,*string) - - // The Amazon Resource Name (ARN) of the Permission Set. - permissionSetArn?: null | string @go(PermissionSetArn,*string) -} - -#ManagedPolicyAttachmentParameters: { - // The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed. - // +kubebuilder:validation:Required - instanceArn?: null | string @go(InstanceArn,*string) - - // The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set. - // +kubebuilder:validation:Required - managedPolicyArn?: null | string @go(ManagedPolicyArn,*string) - - // The Amazon Resource Name (ARN) of the Permission Set. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ssoadmin/v1beta1.PermissionSet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - permissionSetArn?: null | string @go(PermissionSetArn,*string) - - // Reference to a PermissionSet in ssoadmin to populate permissionSetArn. - // +kubebuilder:validation:Optional - permissionSetArnRef?: null | v1.#Reference @go(PermissionSetArnRef,*v1.Reference) - - // Selector for a PermissionSet in ssoadmin to populate permissionSetArn. - // +kubebuilder:validation:Optional - permissionSetArnSelector?: null | v1.#Selector @go(PermissionSetArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// ManagedPolicyAttachmentSpec defines the desired state of ManagedPolicyAttachment -#ManagedPolicyAttachmentSpec: { - v1.#ResourceSpec - forProvider: #ManagedPolicyAttachmentParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ManagedPolicyAttachmentInitParameters @go(InitProvider) -} - -// ManagedPolicyAttachmentStatus defines the observed state of ManagedPolicyAttachment. -#ManagedPolicyAttachmentStatus: { - v1.#ResourceStatus - atProvider?: #ManagedPolicyAttachmentObservation @go(AtProvider) -} - -// ManagedPolicyAttachment is the Schema for the ManagedPolicyAttachments API. Manages an IAM managed policy for a Single Sign-On (SSO) Permission Set -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ManagedPolicyAttachment: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ManagedPolicyAttachmentSpec @go(Spec) - status?: #ManagedPolicyAttachmentStatus @go(Status) -} - -// ManagedPolicyAttachmentList contains a list of ManagedPolicyAttachments -#ManagedPolicyAttachmentList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ManagedPolicyAttachment] @go(Items,[]ManagedPolicyAttachment) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_permissionset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_permissionset_types_go_gen.cue deleted file mode 100644 index 84fad28..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_permissionset_types_go_gen.cue +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssoadmin/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PermissionSetInitParameters: { - // The description of the Permission Set. - description?: null | string @go(Description,*string) - - // The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed. - instanceArn?: null | string @go(InstanceArn,*string) - - // The name of the Permission Set. - name?: null | string @go(Name,*string) - - // The relay state URL used to redirect users within the application during the federation authentication process. - relayState?: null | string @go(RelayState,*string) - - // The length of time that the application user sessions are valid in the ISO-8601 standard. Default: PT1H. - sessionDuration?: null | string @go(SessionDuration,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#PermissionSetObservation: { - // The Amazon Resource Name (ARN) of the Permission Set. - arn?: null | string @go(Arn,*string) - - // The date the Permission Set was created in RFC3339 format. - createdDate?: null | string @go(CreatedDate,*string) - - // The description of the Permission Set. - description?: null | string @go(Description,*string) - - // The Amazon Resource Names (ARNs) of the Permission Set and SSO Instance, separated by a comma (,). - id?: null | string @go(ID,*string) - - // The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed. - instanceArn?: null | string @go(InstanceArn,*string) - - // The name of the Permission Set. - name?: null | string @go(Name,*string) - - // The relay state URL used to redirect users within the application during the federation authentication process. - relayState?: null | string @go(RelayState,*string) - - // The length of time that the application user sessions are valid in the ISO-8601 standard. Default: PT1H. - sessionDuration?: null | string @go(SessionDuration,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#PermissionSetParameters: { - // The description of the Permission Set. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed. - // +kubebuilder:validation:Optional - instanceArn?: null | string @go(InstanceArn,*string) - - // The name of the Permission Set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The relay state URL used to redirect users within the application during the federation authentication process. - // +kubebuilder:validation:Optional - relayState?: null | string @go(RelayState,*string) - - // The length of time that the application user sessions are valid in the ISO-8601 standard. Default: PT1H. - // +kubebuilder:validation:Optional - sessionDuration?: null | string @go(SessionDuration,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// PermissionSetSpec defines the desired state of PermissionSet -#PermissionSetSpec: { - v1.#ResourceSpec - forProvider: #PermissionSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PermissionSetInitParameters @go(InitProvider) -} - -// PermissionSetStatus defines the observed state of PermissionSet. -#PermissionSetStatus: { - v1.#ResourceStatus - atProvider?: #PermissionSetObservation @go(AtProvider) -} - -// PermissionSet is the Schema for the PermissionSets API. Manages a Single Sign-On (SSO) Permission Set -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PermissionSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.instanceArn) || (has(self.initProvider) && has(self.initProvider.instanceArn))",message="spec.forProvider.instanceArn is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #PermissionSetSpec @go(Spec) - status?: #PermissionSetStatus @go(Status) -} - -// PermissionSetList contains a list of PermissionSets -#PermissionSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PermissionSet] @go(Items,[]PermissionSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_permissionsetinlinepolicy_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_permissionsetinlinepolicy_types_go_gen.cue deleted file mode 100644 index 2970999..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/ssoadmin/v1beta1/zz_permissionsetinlinepolicy_types_go_gen.cue +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/ssoadmin/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PermissionSetInlinePolicyInitParameters: { - // The IAM inline policy to attach to a Permission Set. - inlinePolicy?: null | string @go(InlinePolicy,*string) -} - -#PermissionSetInlinePolicyObservation: { - // The Amazon Resource Names (ARNs) of the Permission Set and SSO Instance, separated by a comma (,). - id?: null | string @go(ID,*string) - - // The IAM inline policy to attach to a Permission Set. - inlinePolicy?: null | string @go(InlinePolicy,*string) - - // The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed. - instanceArn?: null | string @go(InstanceArn,*string) - - // The Amazon Resource Name (ARN) of the Permission Set. - permissionSetArn?: null | string @go(PermissionSetArn,*string) -} - -#PermissionSetInlinePolicyParameters: { - // The IAM inline policy to attach to a Permission Set. - // +kubebuilder:validation:Optional - inlinePolicy?: null | string @go(InlinePolicy,*string) - - // The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed. - // +kubebuilder:validation:Required - instanceArn?: null | string @go(InstanceArn,*string) - - // The Amazon Resource Name (ARN) of the Permission Set. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ssoadmin/v1beta1.PermissionSet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - permissionSetArn?: null | string @go(PermissionSetArn,*string) - - // Reference to a PermissionSet in ssoadmin to populate permissionSetArn. - // +kubebuilder:validation:Optional - permissionSetArnRef?: null | v1.#Reference @go(PermissionSetArnRef,*v1.Reference) - - // Selector for a PermissionSet in ssoadmin to populate permissionSetArn. - // +kubebuilder:validation:Optional - permissionSetArnSelector?: null | v1.#Selector @go(PermissionSetArnSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// PermissionSetInlinePolicySpec defines the desired state of PermissionSetInlinePolicy -#PermissionSetInlinePolicySpec: { - v1.#ResourceSpec - forProvider: #PermissionSetInlinePolicyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #PermissionSetInlinePolicyInitParameters @go(InitProvider) -} - -// PermissionSetInlinePolicyStatus defines the observed state of PermissionSetInlinePolicy. -#PermissionSetInlinePolicyStatus: { - v1.#ResourceStatus - atProvider?: #PermissionSetInlinePolicyObservation @go(AtProvider) -} - -// PermissionSetInlinePolicy is the Schema for the PermissionSetInlinePolicys API. Manages an IAM inline policy for a Single Sign-On (SSO) Permission Set -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#PermissionSetInlinePolicy: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.inlinePolicy) || (has(self.initProvider) && has(self.initProvider.inlinePolicy))",message="spec.forProvider.inlinePolicy is a required parameter" - spec: #PermissionSetInlinePolicySpec @go(Spec) - status?: #PermissionSetInlinePolicyStatus @go(Status) -} - -// PermissionSetInlinePolicyList contains a list of PermissionSetInlinePolicys -#PermissionSetInlinePolicyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#PermissionSetInlinePolicy] @go(Items,[]PermissionSetInlinePolicy) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/swf/v1beta1/zz_domain_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/swf/v1beta1/zz_domain_types_go_gen.cue deleted file mode 100644 index c2db40a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/swf/v1beta1/zz_domain_types_go_gen.cue +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/swf/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DomainInitParameters: { - // The domain description. - description?: null | string @go(Description,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Length of time that SWF will continue to retain information about the workflow execution after the workflow execution is complete, must be between 0 and 90 days. - workflowExecutionRetentionPeriodInDays?: null | string @go(WorkflowExecutionRetentionPeriodInDays,*string) -} - -#DomainObservation: { - // Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // The domain description. - description?: null | string @go(Description,*string) - - // The name of the domain. - id?: null | string @go(ID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Length of time that SWF will continue to retain information about the workflow execution after the workflow execution is complete, must be between 0 and 90 days. - workflowExecutionRetentionPeriodInDays?: null | string @go(WorkflowExecutionRetentionPeriodInDays,*string) -} - -#DomainParameters: { - // The domain description. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Length of time that SWF will continue to retain information about the workflow execution after the workflow execution is complete, must be between 0 and 90 days. - // +kubebuilder:validation:Optional - workflowExecutionRetentionPeriodInDays?: null | string @go(WorkflowExecutionRetentionPeriodInDays,*string) -} - -// DomainSpec defines the desired state of Domain -#DomainSpec: { - v1.#ResourceSpec - forProvider: #DomainParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DomainInitParameters @go(InitProvider) -} - -// DomainStatus defines the observed state of Domain. -#DomainStatus: { - v1.#ResourceStatus - atProvider?: #DomainObservation @go(AtProvider) -} - -// Domain is the Schema for the Domains API. Provides an SWF Domain resource -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Domain: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.workflowExecutionRetentionPeriodInDays) || (has(self.initProvider) && has(self.initProvider.workflowExecutionRetentionPeriodInDays))",message="spec.forProvider.workflowExecutionRetentionPeriodInDays is a required parameter" - spec: #DomainSpec @go(Spec) - status?: #DomainStatus @go(Status) -} - -// DomainList contains a list of Domains -#DomainList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Domain] @go(Items,[]Domain) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/swf/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/swf/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index d81a79b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/swf/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/swf/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=swf.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "swf.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1/zz_database_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1/zz_database_types_go_gen.cue deleted file mode 100644 index fba4581..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1/zz_database_types_go_gen.cue +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DatabaseInitParameters: { - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#DatabaseObservation: { - // The ARN that uniquely identifies this database. - arn?: null | string @go(Arn,*string) - - // The name of the Timestream database. - id?: null | string @go(ID,*string) - - // The ARN (not Alias ARN) of the KMS key to be used to encrypt the data stored in the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. Refer to AWS managed KMS keys for more info. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // The total number of tables found within the Timestream database. - tableCount?: null | float64 @go(TableCount,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#DatabaseParameters: { - // The ARN (not Alias ARN) of the KMS key to be used to encrypt the data stored in the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. Refer to AWS managed KMS keys for more info. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Reference to a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdRef?: null | v1.#Reference @go(KMSKeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate kmsKeyId. - // +kubebuilder:validation:Optional - kmsKeyIdSelector?: null | v1.#Selector @go(KMSKeyIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// DatabaseSpec defines the desired state of Database -#DatabaseSpec: { - v1.#ResourceSpec - forProvider: #DatabaseParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DatabaseInitParameters @go(InitProvider) -} - -// DatabaseStatus defines the observed state of Database. -#DatabaseStatus: { - v1.#ResourceStatus - atProvider?: #DatabaseObservation @go(AtProvider) -} - -// Database is the Schema for the Databases API. Provides a Timestream database resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Database: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DatabaseSpec @go(Spec) - status?: #DatabaseStatus @go(Status) -} - -// DatabaseList contains a list of Databases -#DatabaseList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Database] @go(Items,[]Database) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index f2104c2..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=timestreamwrite.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "timestreamwrite.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1/zz_table_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1/zz_table_types_go_gen.cue deleted file mode 100644 index c55261c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1/zz_table_types_go_gen.cue +++ /dev/null @@ -1,242 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#MagneticStoreRejectedDataLocationInitParameters: { - // Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes. See S3 Configuration below for more details. - s3Configuration?: [...#S3ConfigurationInitParameters] @go(S3Configuration,[]S3ConfigurationInitParameters) -} - -#MagneticStoreRejectedDataLocationObservation: { - // Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes. See S3 Configuration below for more details. - s3Configuration?: [...#S3ConfigurationObservation] @go(S3Configuration,[]S3ConfigurationObservation) -} - -#MagneticStoreRejectedDataLocationParameters: { - // Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes. See S3 Configuration below for more details. - // +kubebuilder:validation:Optional - s3Configuration?: [...#S3ConfigurationParameters] @go(S3Configuration,[]S3ConfigurationParameters) -} - -#MagneticStoreWritePropertiesInitParameters: { - // A flag to enable magnetic store writes. - enableMagneticStoreWrites?: null | bool @go(EnableMagneticStoreWrites,*bool) - - // The location to write error reports for records rejected asynchronously during magnetic store writes. See Magnetic Store Rejected Data Location below for more details. - magneticStoreRejectedDataLocation?: [...#MagneticStoreRejectedDataLocationInitParameters] @go(MagneticStoreRejectedDataLocation,[]MagneticStoreRejectedDataLocationInitParameters) -} - -#MagneticStoreWritePropertiesObservation: { - // A flag to enable magnetic store writes. - enableMagneticStoreWrites?: null | bool @go(EnableMagneticStoreWrites,*bool) - - // The location to write error reports for records rejected asynchronously during magnetic store writes. See Magnetic Store Rejected Data Location below for more details. - magneticStoreRejectedDataLocation?: [...#MagneticStoreRejectedDataLocationObservation] @go(MagneticStoreRejectedDataLocation,[]MagneticStoreRejectedDataLocationObservation) -} - -#MagneticStoreWritePropertiesParameters: { - // A flag to enable magnetic store writes. - // +kubebuilder:validation:Optional - enableMagneticStoreWrites?: null | bool @go(EnableMagneticStoreWrites,*bool) - - // The location to write error reports for records rejected asynchronously during magnetic store writes. See Magnetic Store Rejected Data Location below for more details. - // +kubebuilder:validation:Optional - magneticStoreRejectedDataLocation?: [...#MagneticStoreRejectedDataLocationParameters] @go(MagneticStoreRejectedDataLocation,[]MagneticStoreRejectedDataLocationParameters) -} - -#RetentionPropertiesInitParameters: { - // The duration for which data must be stored in the magnetic store. Minimum value of 1. Maximum value of 73000. - magneticStoreRetentionPeriodInDays?: null | float64 @go(MagneticStoreRetentionPeriodInDays,*float64) - - // The duration for which data must be stored in the memory store. Minimum value of 1. Maximum value of 8766. - memoryStoreRetentionPeriodInHours?: null | float64 @go(MemoryStoreRetentionPeriodInHours,*float64) -} - -#RetentionPropertiesObservation: { - // The duration for which data must be stored in the magnetic store. Minimum value of 1. Maximum value of 73000. - magneticStoreRetentionPeriodInDays?: null | float64 @go(MagneticStoreRetentionPeriodInDays,*float64) - - // The duration for which data must be stored in the memory store. Minimum value of 1. Maximum value of 8766. - memoryStoreRetentionPeriodInHours?: null | float64 @go(MemoryStoreRetentionPeriodInHours,*float64) -} - -#RetentionPropertiesParameters: { - // The duration for which data must be stored in the magnetic store. Minimum value of 1. Maximum value of 73000. - // +kubebuilder:validation:Optional - magneticStoreRetentionPeriodInDays?: null | float64 @go(MagneticStoreRetentionPeriodInDays,*float64) - - // The duration for which data must be stored in the memory store. Minimum value of 1. Maximum value of 8766. - // +kubebuilder:validation:Optional - memoryStoreRetentionPeriodInHours?: null | float64 @go(MemoryStoreRetentionPeriodInHours,*float64) -} - -#S3ConfigurationInitParameters: { - // Bucket name of the customer S3 bucket. - bucketName?: null | string @go(BucketName,*string) - - // Encryption option for the customer s3 location. Options are S3 server side encryption with an S3-managed key or KMS managed key. Valid values are SSE_KMS and SSE_S3. - encryptionOption?: null | string @go(EncryptionOption,*string) - - // KMS key arn for the customer s3 location when encrypting with a KMS managed key. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Object key prefix for the customer S3 location. - objectKeyPrefix?: null | string @go(ObjectKeyPrefix,*string) -} - -#S3ConfigurationObservation: { - // Bucket name of the customer S3 bucket. - bucketName?: null | string @go(BucketName,*string) - - // Encryption option for the customer s3 location. Options are S3 server side encryption with an S3-managed key or KMS managed key. Valid values are SSE_KMS and SSE_S3. - encryptionOption?: null | string @go(EncryptionOption,*string) - - // KMS key arn for the customer s3 location when encrypting with a KMS managed key. - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Object key prefix for the customer S3 location. - objectKeyPrefix?: null | string @go(ObjectKeyPrefix,*string) -} - -#S3ConfigurationParameters: { - // Bucket name of the customer S3 bucket. - // +kubebuilder:validation:Optional - bucketName?: null | string @go(BucketName,*string) - - // Encryption option for the customer s3 location. Options are S3 server side encryption with an S3-managed key or KMS managed key. Valid values are SSE_KMS and SSE_S3. - // +kubebuilder:validation:Optional - encryptionOption?: null | string @go(EncryptionOption,*string) - - // KMS key arn for the customer s3 location when encrypting with a KMS managed key. - // +kubebuilder:validation:Optional - kmsKeyId?: null | string @go(KMSKeyID,*string) - - // Object key prefix for the customer S3 location. - // +kubebuilder:validation:Optional - objectKeyPrefix?: null | string @go(ObjectKeyPrefix,*string) -} - -#TableInitParameters: { - // Contains properties to set on the table when enabling magnetic store writes. See Magnetic Store Write Properties below for more details. - magneticStoreWriteProperties?: [...#MagneticStoreWritePropertiesInitParameters] @go(MagneticStoreWriteProperties,[]MagneticStoreWritePropertiesInitParameters) - - // The retention duration for the memory store and magnetic store. See Retention Properties below for more details. If not provided, magnetic_store_retention_period_in_days default to 73000 and memory_store_retention_period_in_hours defaults to 6. - retentionProperties?: [...#RetentionPropertiesInitParameters] @go(RetentionProperties,[]RetentionPropertiesInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#TableObservation: { - // The ARN that uniquely identifies this table. - arn?: null | string @go(Arn,*string) - - // – The name of the Timestream database. - databaseName?: null | string @go(DatabaseName,*string) - - // The table_name and database_name separated by a colon (:). - id?: null | string @go(ID,*string) - - // Contains properties to set on the table when enabling magnetic store writes. See Magnetic Store Write Properties below for more details. - magneticStoreWriteProperties?: [...#MagneticStoreWritePropertiesObservation] @go(MagneticStoreWriteProperties,[]MagneticStoreWritePropertiesObservation) - - // The retention duration for the memory store and magnetic store. See Retention Properties below for more details. If not provided, magnetic_store_retention_period_in_days default to 73000 and memory_store_retention_period_in_hours defaults to 6. - retentionProperties?: [...#RetentionPropertiesObservation] @go(RetentionProperties,[]RetentionPropertiesObservation) - - // The name of the Timestream table. - tableName?: null | string @go(TableName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#TableParameters: { - // – The name of the Timestream database. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/timestreamwrite/v1beta1.Database - // +kubebuilder:validation:Optional - databaseName?: null | string @go(DatabaseName,*string) - - // Reference to a Database in timestreamwrite to populate databaseName. - // +kubebuilder:validation:Optional - databaseNameRef?: null | v1.#Reference @go(DatabaseNameRef,*v1.Reference) - - // Selector for a Database in timestreamwrite to populate databaseName. - // +kubebuilder:validation:Optional - databaseNameSelector?: null | v1.#Selector @go(DatabaseNameSelector,*v1.Selector) - - // Contains properties to set on the table when enabling magnetic store writes. See Magnetic Store Write Properties below for more details. - // +kubebuilder:validation:Optional - magneticStoreWriteProperties?: [...#MagneticStoreWritePropertiesParameters] @go(MagneticStoreWriteProperties,[]MagneticStoreWritePropertiesParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The retention duration for the memory store and magnetic store. See Retention Properties below for more details. If not provided, magnetic_store_retention_period_in_days default to 73000 and memory_store_retention_period_in_hours defaults to 6. - // +kubebuilder:validation:Optional - retentionProperties?: [...#RetentionPropertiesParameters] @go(RetentionProperties,[]RetentionPropertiesParameters) - - // The name of the Timestream table. - // +kubebuilder:validation:Required - tableName?: null | string @go(TableName,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// TableSpec defines the desired state of Table -#TableSpec: { - v1.#ResourceSpec - forProvider: #TableParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TableInitParameters @go(InitProvider) -} - -// TableStatus defines the observed state of Table. -#TableStatus: { - v1.#ResourceStatus - atProvider?: #TableObservation @go(AtProvider) -} - -// Table is the Schema for the Tables API. Provides a Timestream table resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Table: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #TableSpec @go(Spec) - status?: #TableStatus @go(Status) -} - -// TableList contains a list of Tables -#TableList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Table] @go(Items,[]Table) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/transcribe/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/transcribe/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index b265b92..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/transcribe/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/transcribe/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=transcribe.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "transcribe.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/transcribe/v1beta1/zz_languagemodel_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/transcribe/v1beta1/zz_languagemodel_types_go_gen.cue deleted file mode 100644 index 0069328..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/transcribe/v1beta1/zz_languagemodel_types_go_gen.cue +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/transcribe/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#InputDataConfigInitParameters: { - // S3 URI where training data is located. - s3Uri?: null | string @go(S3URI,*string) - - // S3 URI where tuning data is located. - tuningDataS3Uri?: null | string @go(TuningDataS3URI,*string) -} - -#InputDataConfigObservation: { - // IAM role with access to S3 bucket. - dataAccessRoleArn?: null | string @go(DataAccessRoleArn,*string) - - // S3 URI where training data is located. - s3Uri?: null | string @go(S3URI,*string) - - // S3 URI where tuning data is located. - tuningDataS3Uri?: null | string @go(TuningDataS3URI,*string) -} - -#InputDataConfigParameters: { - // IAM role with access to S3 bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - dataAccessRoleArn?: null | string @go(DataAccessRoleArn,*string) - - // Reference to a Role in iam to populate dataAccessRoleArn. - // +kubebuilder:validation:Optional - dataAccessRoleArnRef?: null | v1.#Reference @go(DataAccessRoleArnRef,*v1.Reference) - - // Selector for a Role in iam to populate dataAccessRoleArn. - // +kubebuilder:validation:Optional - dataAccessRoleArnSelector?: null | v1.#Selector @go(DataAccessRoleArnSelector,*v1.Selector) - - // S3 URI where training data is located. - // +kubebuilder:validation:Optional - s3Uri?: null | string @go(S3URI,*string) - - // S3 URI where tuning data is located. - // +kubebuilder:validation:Optional - tuningDataS3Uri?: null | string @go(TuningDataS3URI,*string) -} - -#LanguageModelInitParameters: { - // Name of reference base model. - baseModelName?: null | string @go(BaseModelName,*string) - - // The input data config for the LanguageModel. See Input Data Config for more details. - inputDataConfig?: [...#InputDataConfigInitParameters] @go(InputDataConfig,[]InputDataConfigInitParameters) - - // The language code you selected for your language model. Refer to the supported languages page for accepted codes. - languageCode?: null | string @go(LanguageCode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#LanguageModelObservation: { - // ARN of the LanguageModel. - arn?: null | string @go(Arn,*string) - - // Name of reference base model. - baseModelName?: null | string @go(BaseModelName,*string) - - // LanguageModel name. - id?: null | string @go(ID,*string) - - // The input data config for the LanguageModel. See Input Data Config for more details. - inputDataConfig?: [...#InputDataConfigObservation] @go(InputDataConfig,[]InputDataConfigObservation) - - // The language code you selected for your language model. Refer to the supported languages page for accepted codes. - languageCode?: null | string @go(LanguageCode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#LanguageModelParameters: { - // Name of reference base model. - // +kubebuilder:validation:Optional - baseModelName?: null | string @go(BaseModelName,*string) - - // The input data config for the LanguageModel. See Input Data Config for more details. - // +kubebuilder:validation:Optional - inputDataConfig?: [...#InputDataConfigParameters] @go(InputDataConfig,[]InputDataConfigParameters) - - // The language code you selected for your language model. Refer to the supported languages page for accepted codes. - // +kubebuilder:validation:Optional - languageCode?: null | string @go(LanguageCode,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// LanguageModelSpec defines the desired state of LanguageModel -#LanguageModelSpec: { - v1.#ResourceSpec - forProvider: #LanguageModelParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #LanguageModelInitParameters @go(InitProvider) -} - -// LanguageModelStatus defines the observed state of LanguageModel. -#LanguageModelStatus: { - v1.#ResourceStatus - atProvider?: #LanguageModelObservation @go(AtProvider) -} - -// LanguageModel is the Schema for the LanguageModels API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#LanguageModel: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.baseModelName) || (has(self.initProvider) && has(self.initProvider.baseModelName))",message="spec.forProvider.baseModelName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.inputDataConfig) || (has(self.initProvider) && has(self.initProvider.inputDataConfig))",message="spec.forProvider.inputDataConfig is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.languageCode) || (has(self.initProvider) && has(self.initProvider.languageCode))",message="spec.forProvider.languageCode is a required parameter" - spec: #LanguageModelSpec @go(Spec) - status?: #LanguageModelStatus @go(Status) -} - -// LanguageModelList contains a list of LanguageModels -#LanguageModelList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#LanguageModel] @go(Items,[]LanguageModel) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/transcribe/v1beta1/zz_vocabulary_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/transcribe/v1beta1/zz_vocabulary_types_go_gen.cue deleted file mode 100644 index 90e22f0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/transcribe/v1beta1/zz_vocabulary_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/transcribe/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VocabularyInitParameters: { - // The language code you selected for your vocabulary. - languageCode?: null | string @go(LanguageCode,*string) - - // - A list of terms to include in the vocabulary. Conflicts with vocabulary_file_uri - phrases?: [...null | string] @go(Phrases,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The Amazon S3 location (URI) of the text file that contains your custom vocabulary. - vocabularyFileUri?: null | string @go(VocabularyFileURI,*string) -} - -#VocabularyObservation: { - // ARN of the Vocabulary. - arn?: null | string @go(Arn,*string) - - // Generated download URI. - downloadUri?: null | string @go(DownloadURI,*string) - - // Name of the Vocabulary. - id?: null | string @go(ID,*string) - - // The language code you selected for your vocabulary. - languageCode?: null | string @go(LanguageCode,*string) - - // - A list of terms to include in the vocabulary. Conflicts with vocabulary_file_uri - phrases?: [...null | string] @go(Phrases,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The Amazon S3 location (URI) of the text file that contains your custom vocabulary. - vocabularyFileUri?: null | string @go(VocabularyFileURI,*string) -} - -#VocabularyParameters: { - // The language code you selected for your vocabulary. - // +kubebuilder:validation:Optional - languageCode?: null | string @go(LanguageCode,*string) - - // - A list of terms to include in the vocabulary. Conflicts with vocabulary_file_uri - // +kubebuilder:validation:Optional - phrases?: [...null | string] @go(Phrases,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The Amazon S3 location (URI) of the text file that contains your custom vocabulary. - // +kubebuilder:validation:Optional - vocabularyFileUri?: null | string @go(VocabularyFileURI,*string) -} - -// VocabularySpec defines the desired state of Vocabulary -#VocabularySpec: { - v1.#ResourceSpec - forProvider: #VocabularyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VocabularyInitParameters @go(InitProvider) -} - -// VocabularyStatus defines the observed state of Vocabulary. -#VocabularyStatus: { - v1.#ResourceStatus - atProvider?: #VocabularyObservation @go(AtProvider) -} - -// Vocabulary is the Schema for the Vocabularys API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Vocabulary: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.languageCode) || (has(self.initProvider) && has(self.initProvider.languageCode))",message="spec.forProvider.languageCode is a required parameter" - spec: #VocabularySpec @go(Spec) - status?: #VocabularyStatus @go(Status) -} - -// VocabularyList contains a list of Vocabularys -#VocabularyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Vocabulary] @go(Items,[]Vocabulary) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/transcribe/v1beta1/zz_vocabularyfilter_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/transcribe/v1beta1/zz_vocabularyfilter_types_go_gen.cue deleted file mode 100644 index 8cbefc9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/transcribe/v1beta1/zz_vocabularyfilter_types_go_gen.cue +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/transcribe/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#VocabularyFilterInitParameters: { - // The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes. - languageCode?: null | string @go(LanguageCode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument. - vocabularyFilterFileUri?: null | string @go(VocabularyFilterFileURI,*string) - - // - A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument. - words?: [...null | string] @go(Words,[]*string) -} - -#VocabularyFilterObservation: { - // ARN of the VocabularyFilter. - arn?: null | string @go(Arn,*string) - - // Generated download URI. - downloadUri?: null | string @go(DownloadURI,*string) - - // VocabularyFilter name. - id?: null | string @go(ID,*string) - - // The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes. - languageCode?: null | string @go(LanguageCode,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument. - vocabularyFilterFileUri?: null | string @go(VocabularyFilterFileURI,*string) - - // - A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument. - words?: [...null | string] @go(Words,[]*string) -} - -#VocabularyFilterParameters: { - // The language code you selected for your vocabulary filter. Refer to the supported languages page for accepted codes. - // +kubebuilder:validation:Optional - languageCode?: null | string @go(LanguageCode,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // The Amazon S3 location (URI) of the text file that contains your custom VocabularyFilter. Conflicts with words argument. - // +kubebuilder:validation:Optional - vocabularyFilterFileUri?: null | string @go(VocabularyFilterFileURI,*string) - - // - A list of terms to include in the vocabulary. Conflicts with vocabulary_filter_file_uri argument. - // +kubebuilder:validation:Optional - words?: [...null | string] @go(Words,[]*string) -} - -// VocabularyFilterSpec defines the desired state of VocabularyFilter -#VocabularyFilterSpec: { - v1.#ResourceSpec - forProvider: #VocabularyFilterParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #VocabularyFilterInitParameters @go(InitProvider) -} - -// VocabularyFilterStatus defines the observed state of VocabularyFilter. -#VocabularyFilterStatus: { - v1.#ResourceStatus - atProvider?: #VocabularyFilterObservation @go(AtProvider) -} - -// VocabularyFilter is the Schema for the VocabularyFilters API. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#VocabularyFilter: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.languageCode) || (has(self.initProvider) && has(self.initProvider.languageCode))",message="spec.forProvider.languageCode is a required parameter" - spec: #VocabularyFilterSpec @go(Spec) - status?: #VocabularyFilterStatus @go(Status) -} - -// VocabularyFilterList contains a list of VocabularyFilters -#VocabularyFilterList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#VocabularyFilter] @go(Items,[]VocabularyFilter) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 690d900..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/transfer/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=transfer.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "transfer.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_server_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_server_types_go_gen.cue deleted file mode 100644 index e503d91..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_server_types_go_gen.cue +++ /dev/null @@ -1,454 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/transfer/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EndpointDetailsInitParameters: { - // A list of address allocation IDs that are required to attach an Elastic IP address to your SFTP server's endpoint. This property can only be used when endpoint_type is set to VPC. - addressAllocationIds?: [...null | string] @go(AddressAllocationIds,[]*string) - - // A list of security groups IDs that are available to attach to your server's endpoint. If no security groups are specified, the VPC's default security groups are automatically assigned to your endpoint. This property can only be used when endpoint_type is set to VPC. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of subnet IDs that are required to host your SFTP server endpoint in your VPC. This property can only be used when endpoint_type is set to VPC. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // The ID of the VPC endpoint. This property can only be used when endpoint_type is set to VPC_ENDPOINT - vpcEndpointId?: null | string @go(VPCEndpointID,*string) -} - -#EndpointDetailsObservation: { - // A list of address allocation IDs that are required to attach an Elastic IP address to your SFTP server's endpoint. This property can only be used when endpoint_type is set to VPC. - addressAllocationIds?: [...null | string] @go(AddressAllocationIds,[]*string) - - // A list of security groups IDs that are available to attach to your server's endpoint. If no security groups are specified, the VPC's default security groups are automatically assigned to your endpoint. This property can only be used when endpoint_type is set to VPC. - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of subnet IDs that are required to host your SFTP server endpoint in your VPC. This property can only be used when endpoint_type is set to VPC. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // The ID of the VPC endpoint. This property can only be used when endpoint_type is set to VPC_ENDPOINT - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // The VPC ID of the virtual private cloud in which the SFTP server's endpoint will be hosted. This property can only be used when endpoint_type is set to VPC. - vpcId?: null | string @go(VPCID,*string) -} - -#EndpointDetailsParameters: { - // A list of address allocation IDs that are required to attach an Elastic IP address to your SFTP server's endpoint. This property can only be used when endpoint_type is set to VPC. - // +kubebuilder:validation:Optional - addressAllocationIds?: [...null | string] @go(AddressAllocationIds,[]*string) - - // A list of security groups IDs that are available to attach to your server's endpoint. If no security groups are specified, the VPC's default security groups are automatically assigned to your endpoint. This property can only be used when endpoint_type is set to VPC. - // +kubebuilder:validation:Optional - securityGroupIds?: [...null | string] @go(SecurityGroupIds,[]*string) - - // A list of subnet IDs that are required to host your SFTP server endpoint in your VPC. This property can only be used when endpoint_type is set to VPC. - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // The ID of the VPC endpoint. This property can only be used when endpoint_type is set to VPC_ENDPOINT - // +kubebuilder:validation:Optional - vpcEndpointId?: null | string @go(VPCEndpointID,*string) - - // The VPC ID of the virtual private cloud in which the SFTP server's endpoint will be hosted. This property can only be used when endpoint_type is set to VPC. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - vpcId?: null | string @go(VPCID,*string) - - // Reference to a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdRef?: null | v1.#Reference @go(VPCIDRef,*v1.Reference) - - // Selector for a VPC in ec2 to populate vpcId. - // +kubebuilder:validation:Optional - vpcIdSelector?: null | v1.#Selector @go(VPCIDSelector,*v1.Selector) -} - -#OnPartialUploadInitParameters: { - // Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources. - executionRole?: null | string @go(ExecutionRole,*string) - - // A unique identifier for the workflow. - workflowId?: null | string @go(WorkflowID,*string) -} - -#OnPartialUploadObservation: { - // Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources. - executionRole?: null | string @go(ExecutionRole,*string) - - // A unique identifier for the workflow. - workflowId?: null | string @go(WorkflowID,*string) -} - -#OnPartialUploadParameters: { - // Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources. - // +kubebuilder:validation:Optional - executionRole?: null | string @go(ExecutionRole,*string) - - // A unique identifier for the workflow. - // +kubebuilder:validation:Optional - workflowId?: null | string @go(WorkflowID,*string) -} - -#OnUploadInitParameters: { - // Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources. - executionRole?: null | string @go(ExecutionRole,*string) - - // A unique identifier for the workflow. - workflowId?: null | string @go(WorkflowID,*string) -} - -#OnUploadObservation: { - // Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources. - executionRole?: null | string @go(ExecutionRole,*string) - - // A unique identifier for the workflow. - workflowId?: null | string @go(WorkflowID,*string) -} - -#OnUploadParameters: { - // Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources. - // +kubebuilder:validation:Optional - executionRole?: null | string @go(ExecutionRole,*string) - - // A unique identifier for the workflow. - // +kubebuilder:validation:Optional - workflowId?: null | string @go(WorkflowID,*string) -} - -#ProtocolDetailsInitParameters: { - // Indicates the transport method for the AS2 messages. Currently, only HTTP is supported. - as2Transports?: [...null | string] @go(As2Transports,[]*string) - - // Indicates passive mode, for FTP and FTPS protocols. Enter a single IPv4 address, such as the public IP address of a firewall, router, or load balancer. - passiveIp?: null | string @go(PassiveIP,*string) - - // Use to ignore the error that is generated when the client attempts to use SETSTAT on a file you are uploading to an S3 bucket. Valid values: DEFAULT, ENABLE_NO_OP. - setStatOption?: null | string @go(SetStatOption,*string) - - // A property used with Transfer Family servers that use the FTPS protocol. Provides a mechanism to resume or share a negotiated secret key between the control and data connection for an FTPS session. Valid values: DISABLED, ENABLED, ENFORCED. - tlsSessionResumptionMode?: null | string @go(TLSSessionResumptionMode,*string) -} - -#ProtocolDetailsObservation: { - // Indicates the transport method for the AS2 messages. Currently, only HTTP is supported. - as2Transports?: [...null | string] @go(As2Transports,[]*string) - - // Indicates passive mode, for FTP and FTPS protocols. Enter a single IPv4 address, such as the public IP address of a firewall, router, or load balancer. - passiveIp?: null | string @go(PassiveIP,*string) - - // Use to ignore the error that is generated when the client attempts to use SETSTAT on a file you are uploading to an S3 bucket. Valid values: DEFAULT, ENABLE_NO_OP. - setStatOption?: null | string @go(SetStatOption,*string) - - // A property used with Transfer Family servers that use the FTPS protocol. Provides a mechanism to resume or share a negotiated secret key between the control and data connection for an FTPS session. Valid values: DISABLED, ENABLED, ENFORCED. - tlsSessionResumptionMode?: null | string @go(TLSSessionResumptionMode,*string) -} - -#ProtocolDetailsParameters: { - // Indicates the transport method for the AS2 messages. Currently, only HTTP is supported. - // +kubebuilder:validation:Optional - as2Transports?: [...null | string] @go(As2Transports,[]*string) - - // Indicates passive mode, for FTP and FTPS protocols. Enter a single IPv4 address, such as the public IP address of a firewall, router, or load balancer. - // +kubebuilder:validation:Optional - passiveIp?: null | string @go(PassiveIP,*string) - - // Use to ignore the error that is generated when the client attempts to use SETSTAT on a file you are uploading to an S3 bucket. Valid values: DEFAULT, ENABLE_NO_OP. - // +kubebuilder:validation:Optional - setStatOption?: null | string @go(SetStatOption,*string) - - // A property used with Transfer Family servers that use the FTPS protocol. Provides a mechanism to resume or share a negotiated secret key between the control and data connection for an FTPS session. Valid values: DISABLED, ENABLED, ENFORCED. - // +kubebuilder:validation:Optional - tlsSessionResumptionMode?: null | string @go(TLSSessionResumptionMode,*string) -} - -#ServerInitParameters: { - // The domain of the storage system that is used for file transfers. Valid values are: S3 and EFS. The default value is S3. - domain?: null | string @go(Domain,*string) - - // The virtual private cloud (VPC) endpoint settings that you want to configure for your SFTP server. Fields documented below. - endpointDetails?: [...#EndpointDetailsInitParameters] @go(EndpointDetails,[]EndpointDetailsInitParameters) - - // The type of endpoint that you want your SFTP server connect to. If you connect to a VPC (or VPC_ENDPOINT), your SFTP server isn't accessible over the public internet. If you want to connect your SFTP server via public internet, set PUBLIC. Defaults to PUBLIC. - endpointType?: null | string @go(EndpointType,*string) - - // A boolean that indicates all users associated with the server should be deleted so that the Server can be destroyed without error. The default value is false. This option only applies to servers configured with a SERVICE_MANAGED identity_provider_type. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // The ARN for a lambda function to use for the Identity provider. - function?: null | string @go(Function,*string) - - // The mode of authentication enabled for this service. The default value is SERVICE_MANAGED, which allows you to store and access SFTP user credentials within the service. API_GATEWAY indicates that user authentication requires a call to an API Gateway endpoint URL provided by you to integrate an identity provider of your choice. Using AWS_DIRECTORY_SERVICE will allow for authentication against AWS Managed Active Directory or Microsoft Active Directory in your on-premises environment, or in AWS using AD Connectors. Use the AWS_LAMBDA value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the function argument. - identityProviderType?: null | string @go(IdentityProviderType,*string) - - // Amazon Resource Name (ARN) of the IAM role used to authenticate the user account with an identity_provider_type of API_GATEWAY. - invocationRole?: null | string @go(InvocationRole,*string) - - // Amazon Resource Name (ARN) of an IAM role that allows the service to write your SFTP users’ activity to your Amazon CloudWatch logs for monitoring and auditing purposes. - loggingRole?: null | string @go(LoggingRole,*string) - - // The protocol settings that are configured for your server. - protocolDetails?: [...#ProtocolDetailsInitParameters] @go(ProtocolDetails,[]ProtocolDetailsInitParameters) - - // Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. This defaults to SFTP . The available protocols are: - protocols?: [...null | string] @go(Protocols,[]*string) - - // Specifies the name of the security policy that is attached to the server. Possible values are TransferSecurityPolicy-2018-11, TransferSecurityPolicy-2020-06, TransferSecurityPolicy-FIPS-2020-06 and TransferSecurityPolicy-2022-03. Default value is: TransferSecurityPolicy-2018-11. - securityPolicyName?: null | string @go(SecurityPolicyName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // - URL of the service endpoint used to authenticate users with an identity_provider_type of API_GATEWAY. - url?: null | string @go(URL,*string) - - // Specifies the workflow details. See Workflow Details below. - workflowDetails?: [...#WorkflowDetailsInitParameters] @go(WorkflowDetails,[]WorkflowDetailsInitParameters) -} - -#ServerObservation: { - // Amazon Resource Name (ARN) of Transfer Server - arn?: null | string @go(Arn,*string) - - // The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate. This is required when protocols is set to FTPS - certificate?: null | string @go(Certificate,*string) - - // The directory service ID of the directory service you want to connect to with an identity_provider_type of AWS_DIRECTORY_SERVICE. - directoryId?: null | string @go(DirectoryID,*string) - - // The domain of the storage system that is used for file transfers. Valid values are: S3 and EFS. The default value is S3. - domain?: null | string @go(Domain,*string) - - // The endpoint of the Transfer Server (e.g., s-12345678.server.transfer.REGION.amazonaws.com) - endpoint?: null | string @go(Endpoint,*string) - - // The virtual private cloud (VPC) endpoint settings that you want to configure for your SFTP server. Fields documented below. - endpointDetails?: [...#EndpointDetailsObservation] @go(EndpointDetails,[]EndpointDetailsObservation) - - // The type of endpoint that you want your SFTP server connect to. If you connect to a VPC (or VPC_ENDPOINT), your SFTP server isn't accessible over the public internet. If you want to connect your SFTP server via public internet, set PUBLIC. Defaults to PUBLIC. - endpointType?: null | string @go(EndpointType,*string) - - // A boolean that indicates all users associated with the server should be deleted so that the Server can be destroyed without error. The default value is false. This option only applies to servers configured with a SERVICE_MANAGED identity_provider_type. - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // The ARN for a lambda function to use for the Identity provider. - function?: null | string @go(Function,*string) - - // This value contains the message-digest algorithm (MD5) hash of the server's host key. This value is equivalent to the output of the ssh-keygen -l -E md5 -f my-new-server-key command. - hostKeyFingerprint?: null | string @go(HostKeyFingerprint,*string) - - // The Server ID of the Transfer Server (e.g., s-12345678) - id?: null | string @go(ID,*string) - - // The mode of authentication enabled for this service. The default value is SERVICE_MANAGED, which allows you to store and access SFTP user credentials within the service. API_GATEWAY indicates that user authentication requires a call to an API Gateway endpoint URL provided by you to integrate an identity provider of your choice. Using AWS_DIRECTORY_SERVICE will allow for authentication against AWS Managed Active Directory or Microsoft Active Directory in your on-premises environment, or in AWS using AD Connectors. Use the AWS_LAMBDA value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the function argument. - identityProviderType?: null | string @go(IdentityProviderType,*string) - - // Amazon Resource Name (ARN) of the IAM role used to authenticate the user account with an identity_provider_type of API_GATEWAY. - invocationRole?: null | string @go(InvocationRole,*string) - - // Amazon Resource Name (ARN) of an IAM role that allows the service to write your SFTP users’ activity to your Amazon CloudWatch logs for monitoring and auditing purposes. - loggingRole?: null | string @go(LoggingRole,*string) - - // The protocol settings that are configured for your server. - protocolDetails?: [...#ProtocolDetailsObservation] @go(ProtocolDetails,[]ProtocolDetailsObservation) - - // Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. This defaults to SFTP . The available protocols are: - protocols?: [...null | string] @go(Protocols,[]*string) - - // Specifies the name of the security policy that is attached to the server. Possible values are TransferSecurityPolicy-2018-11, TransferSecurityPolicy-2020-06, TransferSecurityPolicy-FIPS-2020-06 and TransferSecurityPolicy-2022-03. Default value is: TransferSecurityPolicy-2018-11. - securityPolicyName?: null | string @go(SecurityPolicyName,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // - URL of the service endpoint used to authenticate users with an identity_provider_type of API_GATEWAY. - url?: null | string @go(URL,*string) - - // Specifies the workflow details. See Workflow Details below. - workflowDetails?: [...#WorkflowDetailsObservation] @go(WorkflowDetails,[]WorkflowDetailsObservation) -} - -#ServerParameters: { - // The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate. This is required when protocols is set to FTPS - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/acm/v1beta1.Certificate - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - certificate?: null | string @go(Certificate,*string) - - // Reference to a Certificate in acm to populate certificate. - // +kubebuilder:validation:Optional - certificateRef?: null | v1.#Reference @go(CertificateRef,*v1.Reference) - - // Selector for a Certificate in acm to populate certificate. - // +kubebuilder:validation:Optional - certificateSelector?: null | v1.#Selector @go(CertificateSelector,*v1.Selector) - - // The directory service ID of the directory service you want to connect to with an identity_provider_type of AWS_DIRECTORY_SERVICE. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ds/v1beta1.Directory - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - directoryId?: null | string @go(DirectoryID,*string) - - // Reference to a Directory in ds to populate directoryId. - // +kubebuilder:validation:Optional - directoryIdRef?: null | v1.#Reference @go(DirectoryIDRef,*v1.Reference) - - // Selector for a Directory in ds to populate directoryId. - // +kubebuilder:validation:Optional - directoryIdSelector?: null | v1.#Selector @go(DirectoryIDSelector,*v1.Selector) - - // The domain of the storage system that is used for file transfers. Valid values are: S3 and EFS. The default value is S3. - // +kubebuilder:validation:Optional - domain?: null | string @go(Domain,*string) - - // The virtual private cloud (VPC) endpoint settings that you want to configure for your SFTP server. Fields documented below. - // +kubebuilder:validation:Optional - endpointDetails?: [...#EndpointDetailsParameters] @go(EndpointDetails,[]EndpointDetailsParameters) - - // The type of endpoint that you want your SFTP server connect to. If you connect to a VPC (or VPC_ENDPOINT), your SFTP server isn't accessible over the public internet. If you want to connect your SFTP server via public internet, set PUBLIC. Defaults to PUBLIC. - // +kubebuilder:validation:Optional - endpointType?: null | string @go(EndpointType,*string) - - // A boolean that indicates all users associated with the server should be deleted so that the Server can be destroyed without error. The default value is false. This option only applies to servers configured with a SERVICE_MANAGED identity_provider_type. - // +kubebuilder:validation:Optional - forceDestroy?: null | bool @go(ForceDestroy,*bool) - - // The ARN for a lambda function to use for the Identity provider. - // +kubebuilder:validation:Optional - function?: null | string @go(Function,*string) - - // RSA, ECDSA, or ED25519 private key (e.g., as generated by the ssh-keygen -t rsa -b 2048 -N "" -m PEM -f my-new-server-key, ssh-keygen -t ecdsa -b 256 -N "" -m PEM -f my-new-server-key or ssh-keygen -t ed25519 -N "" -f my-new-server-key commands). - // +kubebuilder:validation:Optional - hostKeySecretRef?: null | v1.#SecretKeySelector @go(HostKeySecretRef,*v1.SecretKeySelector) - - // The mode of authentication enabled for this service. The default value is SERVICE_MANAGED, which allows you to store and access SFTP user credentials within the service. API_GATEWAY indicates that user authentication requires a call to an API Gateway endpoint URL provided by you to integrate an identity provider of your choice. Using AWS_DIRECTORY_SERVICE will allow for authentication against AWS Managed Active Directory or Microsoft Active Directory in your on-premises environment, or in AWS using AD Connectors. Use the AWS_LAMBDA value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the function argument. - // +kubebuilder:validation:Optional - identityProviderType?: null | string @go(IdentityProviderType,*string) - - // Amazon Resource Name (ARN) of the IAM role used to authenticate the user account with an identity_provider_type of API_GATEWAY. - // +kubebuilder:validation:Optional - invocationRole?: null | string @go(InvocationRole,*string) - - // Amazon Resource Name (ARN) of an IAM role that allows the service to write your SFTP users’ activity to your Amazon CloudWatch logs for monitoring and auditing purposes. - // +kubebuilder:validation:Optional - loggingRole?: null | string @go(LoggingRole,*string) - - // Specify a string to display when users connect to a server. This string is displayed after the user authenticates. The SFTP protocol does not support post-authentication display banners. - // +kubebuilder:validation:Optional - postAuthenticationLoginBannerSecretRef?: null | v1.#SecretKeySelector @go(PostAuthenticationLoginBannerSecretRef,*v1.SecretKeySelector) - - // Specify a string to display when users connect to a server. This string is displayed before the user authenticates. - // +kubebuilder:validation:Optional - preAuthenticationLoginBannerSecretRef?: null | v1.#SecretKeySelector @go(PreAuthenticationLoginBannerSecretRef,*v1.SecretKeySelector) - - // The protocol settings that are configured for your server. - // +kubebuilder:validation:Optional - protocolDetails?: [...#ProtocolDetailsParameters] @go(ProtocolDetails,[]ProtocolDetailsParameters) - - // Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. This defaults to SFTP . The available protocols are: - // +kubebuilder:validation:Optional - protocols?: [...null | string] @go(Protocols,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the name of the security policy that is attached to the server. Possible values are TransferSecurityPolicy-2018-11, TransferSecurityPolicy-2020-06, TransferSecurityPolicy-FIPS-2020-06 and TransferSecurityPolicy-2022-03. Default value is: TransferSecurityPolicy-2018-11. - // +kubebuilder:validation:Optional - securityPolicyName?: null | string @go(SecurityPolicyName,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // - URL of the service endpoint used to authenticate users with an identity_provider_type of API_GATEWAY. - // +kubebuilder:validation:Optional - url?: null | string @go(URL,*string) - - // Specifies the workflow details. See Workflow Details below. - // +kubebuilder:validation:Optional - workflowDetails?: [...#WorkflowDetailsParameters] @go(WorkflowDetails,[]WorkflowDetailsParameters) -} - -#WorkflowDetailsInitParameters: { - // A trigger that starts a workflow if a file is only partially uploaded. See Workflow Detail below. - onPartialUpload?: [...#OnPartialUploadInitParameters] @go(OnPartialUpload,[]OnPartialUploadInitParameters) - - // A trigger that starts a workflow: the workflow begins to execute after a file is uploaded. See Workflow Detail below. - onUpload?: [...#OnUploadInitParameters] @go(OnUpload,[]OnUploadInitParameters) -} - -#WorkflowDetailsObservation: { - // A trigger that starts a workflow if a file is only partially uploaded. See Workflow Detail below. - onPartialUpload?: [...#OnPartialUploadObservation] @go(OnPartialUpload,[]OnPartialUploadObservation) - - // A trigger that starts a workflow: the workflow begins to execute after a file is uploaded. See Workflow Detail below. - onUpload?: [...#OnUploadObservation] @go(OnUpload,[]OnUploadObservation) -} - -#WorkflowDetailsParameters: { - // A trigger that starts a workflow if a file is only partially uploaded. See Workflow Detail below. - // +kubebuilder:validation:Optional - onPartialUpload?: [...#OnPartialUploadParameters] @go(OnPartialUpload,[]OnPartialUploadParameters) - - // A trigger that starts a workflow: the workflow begins to execute after a file is uploaded. See Workflow Detail below. - // +kubebuilder:validation:Optional - onUpload?: [...#OnUploadParameters] @go(OnUpload,[]OnUploadParameters) -} - -// ServerSpec defines the desired state of Server -#ServerSpec: { - v1.#ResourceSpec - forProvider: #ServerParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ServerInitParameters @go(InitProvider) -} - -// ServerStatus defines the observed state of Server. -#ServerStatus: { - v1.#ResourceStatus - atProvider?: #ServerObservation @go(AtProvider) -} - -// Server is the Schema for the Servers API. Provides a AWS Transfer Server resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Server: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ServerSpec @go(Spec) - status?: #ServerStatus @go(Status) -} - -// ServerList contains a list of Servers -#ServerList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Server] @go(Items,[]Server) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_sshkey_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_sshkey_types_go_gen.cue deleted file mode 100644 index edff5cd..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_sshkey_types_go_gen.cue +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/transfer/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SSHKeyInitParameters: { - // (Requirement) The public key portion of an SSH key pair. - body?: null | string @go(Body,*string) -} - -#SSHKeyObservation: { - // (Requirement) The public key portion of an SSH key pair. - body?: null | string @go(Body,*string) - id?: null | string @go(ID,*string) - - // (Requirement) The Server ID of the Transfer Server (e.g., s-12345678) - serverId?: null | string @go(ServerID,*string) - - // (Requirement) The name of the user account that is assigned to one or more servers. - userName?: null | string @go(UserName,*string) -} - -#SSHKeyParameters: { - // (Requirement) The public key portion of an SSH key pair. - // +kubebuilder:validation:Optional - body?: null | string @go(Body,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // (Requirement) The Server ID of the Transfer Server (e.g., s-12345678) - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/transfer/v1beta1.Server - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - serverId?: null | string @go(ServerID,*string) - - // Reference to a Server in transfer to populate serverId. - // +kubebuilder:validation:Optional - serverIdRef?: null | v1.#Reference @go(ServerIDRef,*v1.Reference) - - // Selector for a Server in transfer to populate serverId. - // +kubebuilder:validation:Optional - serverIdSelector?: null | v1.#Selector @go(ServerIDSelector,*v1.Selector) - - // (Requirement) The name of the user account that is assigned to one or more servers. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/transfer/v1beta1.User - // +kubebuilder:validation:Optional - userName?: null | string @go(UserName,*string) - - // Reference to a User in transfer to populate userName. - // +kubebuilder:validation:Optional - userNameRef?: null | v1.#Reference @go(UserNameRef,*v1.Reference) - - // Selector for a User in transfer to populate userName. - // +kubebuilder:validation:Optional - userNameSelector?: null | v1.#Selector @go(UserNameSelector,*v1.Selector) -} - -// SSHKeySpec defines the desired state of SSHKey -#SSHKeySpec: { - v1.#ResourceSpec - forProvider: #SSHKeyParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SSHKeyInitParameters @go(InitProvider) -} - -// SSHKeyStatus defines the observed state of SSHKey. -#SSHKeyStatus: { - v1.#ResourceStatus - atProvider?: #SSHKeyObservation @go(AtProvider) -} - -// SSHKey is the Schema for the SSHKeys API. Provides a AWS Transfer SSH Public Key resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SSHKey: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.body) || (has(self.initProvider) && has(self.initProvider.body))",message="spec.forProvider.body is a required parameter" - spec: #SSHKeySpec @go(Spec) - status?: #SSHKeyStatus @go(Status) -} - -// SSHKeyList contains a list of SSHKeys -#SSHKeyList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SSHKey] @go(Items,[]SSHKey) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_tag_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_tag_types_go_gen.cue deleted file mode 100644 index e960e79..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_tag_types_go_gen.cue +++ /dev/null @@ -1,109 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/transfer/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#TagInitParameters: { - // Tag name. - key?: null | string @go(Key,*string) - - // Tag value. - value?: null | string @go(Value,*string) -} - -#TagObservation: { - // Transfer Family resource identifier and key, separated by a comma (,) - id?: null | string @go(ID,*string) - - // Tag name. - key?: null | string @go(Key,*string) - - // Amazon Resource Name (ARN) of the Transfer Family resource to tag. - resourceArn?: null | string @go(ResourceArn,*string) - - // Tag value. - value?: null | string @go(Value,*string) -} - -#TagParameters: { - // Tag name. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Resource Name (ARN) of the Transfer Family resource to tag. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/transfer/v1beta1.Server - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Reference to a Server in transfer to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnRef?: null | v1.#Reference @go(ResourceArnRef,*v1.Reference) - - // Selector for a Server in transfer to populate resourceArn. - // +kubebuilder:validation:Optional - resourceArnSelector?: null | v1.#Selector @go(ResourceArnSelector,*v1.Selector) - - // Tag value. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -// TagSpec defines the desired state of Tag -#TagSpec: { - v1.#ResourceSpec - forProvider: #TagParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #TagInitParameters @go(InitProvider) -} - -// TagStatus defines the observed state of Tag. -#TagStatus: { - v1.#ResourceStatus - atProvider?: #TagObservation @go(AtProvider) -} - -// Tag is the Schema for the Tags API. Manages an individual Transfer Family resource tag -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Tag: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.key) || (has(self.initProvider) && has(self.initProvider.key))",message="spec.forProvider.key is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.value) || (has(self.initProvider) && has(self.initProvider.value))",message="spec.forProvider.value is a required parameter" - spec: #TagSpec @go(Spec) - status?: #TagStatus @go(Status) -} - -// TagList contains a list of Tags -#TagList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Tag] @go(Items,[]Tag) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_user_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_user_types_go_gen.cue deleted file mode 100644 index 5cc2bc5..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_user_types_go_gen.cue +++ /dev/null @@ -1,228 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/transfer/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#HomeDirectoryMappingsInitParameters: { - // Represents an entry and a target. - entry?: null | string @go(Entry,*string) - - // Represents the map target. - target?: null | string @go(Target,*string) -} - -#HomeDirectoryMappingsObservation: { - // Represents an entry and a target. - entry?: null | string @go(Entry,*string) - - // Represents the map target. - target?: null | string @go(Target,*string) -} - -#HomeDirectoryMappingsParameters: { - // Represents an entry and a target. - // +kubebuilder:validation:Optional - entry?: null | string @go(Entry,*string) - - // Represents the map target. - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) -} - -#PosixProfileInitParameters: { - // The POSIX group ID used for all EFS operations by this user. - gid?: null | float64 @go(GID,*float64) - - // The secondary POSIX group IDs used for all EFS operations by this user. - secondaryGids?: [...null | float64] @go(SecondaryGids,[]*float64) - - // The POSIX user ID used for all EFS operations by this user. - uid?: null | float64 @go(UID,*float64) -} - -#PosixProfileObservation: { - // The POSIX group ID used for all EFS operations by this user. - gid?: null | float64 @go(GID,*float64) - - // The secondary POSIX group IDs used for all EFS operations by this user. - secondaryGids?: [...null | float64] @go(SecondaryGids,[]*float64) - - // The POSIX user ID used for all EFS operations by this user. - uid?: null | float64 @go(UID,*float64) -} - -#PosixProfileParameters: { - // The POSIX group ID used for all EFS operations by this user. - // +kubebuilder:validation:Optional - gid?: null | float64 @go(GID,*float64) - - // The secondary POSIX group IDs used for all EFS operations by this user. - // +kubebuilder:validation:Optional - secondaryGids?: [...null | float64] @go(SecondaryGids,[]*float64) - - // The POSIX user ID used for all EFS operations by this user. - // +kubebuilder:validation:Optional - uid?: null | float64 @go(UID,*float64) -} - -#UserInitParameters: { - // The landing directory (folder) for a user when they log in to the server using their SFTP client. It should begin with a /. The first item in the path is the name of the home bucket (accessible as ${Transfer:HomeBucket} in the policy) and the rest is the home directory (accessible as ${Transfer:HomeDirectory} in the policy). For example, /example-bucket-1234/username would set the home bucket to example-bucket-1234 and the home directory to username. - homeDirectory?: null | string @go(HomeDirectory,*string) - - // Logical directory mappings that specify what S3 paths and keys should be visible to your user and how you want to make them visible. See Home Directory Mappings below. - homeDirectoryMappings?: [...#HomeDirectoryMappingsInitParameters] @go(HomeDirectoryMappings,[]HomeDirectoryMappingsInitParameters) - - // The type of landing directory (folder) you mapped for your users' home directory. Valid values are PATH and LOGICAL. - homeDirectoryType?: null | string @go(HomeDirectoryType,*string) - - // An IAM JSON policy document that scopes down user access to portions of their Amazon S3 bucket. IAM variables you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}. These are evaluated on-the-fly when navigating the bucket. - policy?: null | string @go(Policy,*string) - - // Specifies the full POSIX identity, including user ID (Uid), group ID (Gid), and any secondary groups IDs (SecondaryGids), that controls your users' access to your Amazon EFS file systems. See Posix Profile below. - posixProfile?: [...#PosixProfileInitParameters] @go(PosixProfile,[]PosixProfileInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#UserObservation: { - // Amazon Resource Name (ARN) of Transfer User - arn?: null | string @go(Arn,*string) - - // The landing directory (folder) for a user when they log in to the server using their SFTP client. It should begin with a /. The first item in the path is the name of the home bucket (accessible as ${Transfer:HomeBucket} in the policy) and the rest is the home directory (accessible as ${Transfer:HomeDirectory} in the policy). For example, /example-bucket-1234/username would set the home bucket to example-bucket-1234 and the home directory to username. - homeDirectory?: null | string @go(HomeDirectory,*string) - - // Logical directory mappings that specify what S3 paths and keys should be visible to your user and how you want to make them visible. See Home Directory Mappings below. - homeDirectoryMappings?: [...#HomeDirectoryMappingsObservation] @go(HomeDirectoryMappings,[]HomeDirectoryMappingsObservation) - - // The type of landing directory (folder) you mapped for your users' home directory. Valid values are PATH and LOGICAL. - homeDirectoryType?: null | string @go(HomeDirectoryType,*string) - id?: null | string @go(ID,*string) - - // An IAM JSON policy document that scopes down user access to portions of their Amazon S3 bucket. IAM variables you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}. These are evaluated on-the-fly when navigating the bucket. - policy?: null | string @go(Policy,*string) - - // Specifies the full POSIX identity, including user ID (Uid), group ID (Gid), and any secondary groups IDs (SecondaryGids), that controls your users' access to your Amazon EFS file systems. See Posix Profile below. - posixProfile?: [...#PosixProfileObservation] @go(PosixProfile,[]PosixProfileObservation) - - // Amazon Resource Name (ARN) of an IAM role that allows the service to controls your user’s access to your Amazon S3 bucket. - role?: null | string @go(Role,*string) - - // The Server ID of the Transfer Server (e.g., s-12345678) - serverId?: null | string @go(ServerID,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#UserParameters: { - // The landing directory (folder) for a user when they log in to the server using their SFTP client. It should begin with a /. The first item in the path is the name of the home bucket (accessible as ${Transfer:HomeBucket} in the policy) and the rest is the home directory (accessible as ${Transfer:HomeDirectory} in the policy). For example, /example-bucket-1234/username would set the home bucket to example-bucket-1234 and the home directory to username. - // +kubebuilder:validation:Optional - homeDirectory?: null | string @go(HomeDirectory,*string) - - // Logical directory mappings that specify what S3 paths and keys should be visible to your user and how you want to make them visible. See Home Directory Mappings below. - // +kubebuilder:validation:Optional - homeDirectoryMappings?: [...#HomeDirectoryMappingsParameters] @go(HomeDirectoryMappings,[]HomeDirectoryMappingsParameters) - - // The type of landing directory (folder) you mapped for your users' home directory. Valid values are PATH and LOGICAL. - // +kubebuilder:validation:Optional - homeDirectoryType?: null | string @go(HomeDirectoryType,*string) - - // An IAM JSON policy document that scopes down user access to portions of their Amazon S3 bucket. IAM variables you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}. These are evaluated on-the-fly when navigating the bucket. - // +kubebuilder:validation:Optional - policy?: null | string @go(Policy,*string) - - // Specifies the full POSIX identity, including user ID (Uid), group ID (Gid), and any secondary groups IDs (SecondaryGids), that controls your users' access to your Amazon EFS file systems. See Posix Profile below. - // +kubebuilder:validation:Optional - posixProfile?: [...#PosixProfileParameters] @go(PosixProfile,[]PosixProfileParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Amazon Resource Name (ARN) of an IAM role that allows the service to controls your user’s access to your Amazon S3 bucket. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role - // +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor() - // +kubebuilder:validation:Optional - role?: null | string @go(Role,*string) - - // Reference to a Role in iam to populate role. - // +kubebuilder:validation:Optional - roleRef?: null | v1.#Reference @go(RoleRef,*v1.Reference) - - // Selector for a Role in iam to populate role. - // +kubebuilder:validation:Optional - roleSelector?: null | v1.#Selector @go(RoleSelector,*v1.Selector) - - // The Server ID of the Transfer Server (e.g., s-12345678) - // +crossplane:generate:reference:type=Server - // +kubebuilder:validation:Optional - serverId?: null | string @go(ServerID,*string) - - // Reference to a Server to populate serverId. - // +kubebuilder:validation:Optional - serverIdRef?: null | v1.#Reference @go(ServerIDRef,*v1.Reference) - - // Selector for a Server to populate serverId. - // +kubebuilder:validation:Optional - serverIdSelector?: null | v1.#Selector @go(ServerIDSelector,*v1.Selector) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// UserSpec defines the desired state of User -#UserSpec: { - v1.#ResourceSpec - forProvider: #UserParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #UserInitParameters @go(InitProvider) -} - -// UserStatus defines the observed state of User. -#UserStatus: { - v1.#ResourceStatus - atProvider?: #UserObservation @go(AtProvider) -} - -// User is the Schema for the Users API. Provides a AWS Transfer User resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#User: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #UserSpec @go(Spec) - status?: #UserStatus @go(Status) -} - -// UserList contains a list of Users -#UserList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#User] @go(Items,[]User) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_workflow_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_workflow_types_go_gen.cue deleted file mode 100644 index 5f936b1..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/transfer/v1beta1/zz_workflow_types_go_gen.cue +++ /dev/null @@ -1,1040 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/transfer/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#CopyStepDetailsDestinationFileLocationEFSFileLocationInitParameters: { - // The ID of the file system, assigned by Amazon EFS. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The pathname for the folder being used by a workflow. - path?: null | string @go(Path,*string) -} - -#CopyStepDetailsDestinationFileLocationEFSFileLocationObservation: { - // The ID of the file system, assigned by Amazon EFS. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The pathname for the folder being used by a workflow. - path?: null | string @go(Path,*string) -} - -#CopyStepDetailsDestinationFileLocationEFSFileLocationParameters: { - // The ID of the file system, assigned by Amazon EFS. - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // The pathname for the folder being used by a workflow. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) -} - -#CopyStepDetailsDestinationFileLocationInitParameters: { - // Specifies the details for the EFS file being copied. - efsFileLocation?: [...#CopyStepDetailsDestinationFileLocationEFSFileLocationInitParameters] @go(EFSFileLocation,[]CopyStepDetailsDestinationFileLocationEFSFileLocationInitParameters) - - // Specifies the details for the S3 file being copied. - s3FileLocation?: [...#CopyStepDetailsDestinationFileLocationS3FileLocationInitParameters] @go(S3FileLocation,[]CopyStepDetailsDestinationFileLocationS3FileLocationInitParameters) -} - -#CopyStepDetailsDestinationFileLocationObservation: { - // Specifies the details for the EFS file being copied. - efsFileLocation?: [...#CopyStepDetailsDestinationFileLocationEFSFileLocationObservation] @go(EFSFileLocation,[]CopyStepDetailsDestinationFileLocationEFSFileLocationObservation) - - // Specifies the details for the S3 file being copied. - s3FileLocation?: [...#CopyStepDetailsDestinationFileLocationS3FileLocationObservation] @go(S3FileLocation,[]CopyStepDetailsDestinationFileLocationS3FileLocationObservation) -} - -#CopyStepDetailsDestinationFileLocationParameters: { - // Specifies the details for the EFS file being copied. - // +kubebuilder:validation:Optional - efsFileLocation?: [...#CopyStepDetailsDestinationFileLocationEFSFileLocationParameters] @go(EFSFileLocation,[]CopyStepDetailsDestinationFileLocationEFSFileLocationParameters) - - // Specifies the details for the S3 file being copied. - // +kubebuilder:validation:Optional - s3FileLocation?: [...#CopyStepDetailsDestinationFileLocationS3FileLocationParameters] @go(S3FileLocation,[]CopyStepDetailsDestinationFileLocationS3FileLocationParameters) -} - -#CopyStepDetailsDestinationFileLocationS3FileLocationInitParameters: { - // Specifies the S3 bucket for the customer input file. - bucket?: null | string @go(Bucket,*string) - - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - key?: null | string @go(Key,*string) -} - -#CopyStepDetailsDestinationFileLocationS3FileLocationObservation: { - // Specifies the S3 bucket for the customer input file. - bucket?: null | string @go(Bucket,*string) - - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - key?: null | string @go(Key,*string) -} - -#CopyStepDetailsDestinationFileLocationS3FileLocationParameters: { - // Specifies the S3 bucket for the customer input file. - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) -} - -#CopyStepDetailsInitParameters: { - // Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. - destinationFileLocation?: [...#DestinationFileLocationInitParameters] @go(DestinationFileLocation,[]DestinationFileLocationInitParameters) - - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. Valid values are TRUE and FALSE. - overwriteExisting?: null | string @go(OverwriteExisting,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) -} - -#CopyStepDetailsObservation: { - // Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. - destinationFileLocation?: [...#DestinationFileLocationObservation] @go(DestinationFileLocation,[]DestinationFileLocationObservation) - - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. Valid values are TRUE and FALSE. - overwriteExisting?: null | string @go(OverwriteExisting,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) -} - -#CopyStepDetailsParameters: { - // Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. - // +kubebuilder:validation:Optional - destinationFileLocation?: [...#DestinationFileLocationParameters] @go(DestinationFileLocation,[]DestinationFileLocationParameters) - - // The name of the step, used as an identifier. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. Valid values are TRUE and FALSE. - // +kubebuilder:validation:Optional - overwriteExisting?: null | string @go(OverwriteExisting,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - // +kubebuilder:validation:Optional - sourceFileLocation?: null | string @go(SourceFileLocation,*string) -} - -#CustomStepDetailsInitParameters: { - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // The ARN for the lambda function that is being called. - target?: null | string @go(Target,*string) - - // Timeout, in seconds, for the step. - timeoutSeconds?: null | float64 @go(TimeoutSeconds,*float64) -} - -#CustomStepDetailsObservation: { - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // The ARN for the lambda function that is being called. - target?: null | string @go(Target,*string) - - // Timeout, in seconds, for the step. - timeoutSeconds?: null | float64 @go(TimeoutSeconds,*float64) -} - -#CustomStepDetailsParameters: { - // The name of the step, used as an identifier. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - // +kubebuilder:validation:Optional - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // The ARN for the lambda function that is being called. - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) - - // Timeout, in seconds, for the step. - // +kubebuilder:validation:Optional - timeoutSeconds?: null | float64 @go(TimeoutSeconds,*float64) -} - -#DecryptStepDetailsDestinationFileLocationEFSFileLocationInitParameters: { - // The ID of the file system, assigned by Amazon EFS. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The pathname for the folder being used by a workflow. - path?: null | string @go(Path,*string) -} - -#DecryptStepDetailsDestinationFileLocationEFSFileLocationObservation: { - // The ID of the file system, assigned by Amazon EFS. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The pathname for the folder being used by a workflow. - path?: null | string @go(Path,*string) -} - -#DecryptStepDetailsDestinationFileLocationEFSFileLocationParameters: { - // The ID of the file system, assigned by Amazon EFS. - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // The pathname for the folder being used by a workflow. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) -} - -#DecryptStepDetailsDestinationFileLocationInitParameters: { - // Specifies the details for the EFS file being copied. - efsFileLocation?: [...#DestinationFileLocationEFSFileLocationInitParameters] @go(EFSFileLocation,[]DestinationFileLocationEFSFileLocationInitParameters) - - // Specifies the details for the S3 file being copied. - s3FileLocation?: [...#DestinationFileLocationS3FileLocationInitParameters] @go(S3FileLocation,[]DestinationFileLocationS3FileLocationInitParameters) -} - -#DecryptStepDetailsDestinationFileLocationObservation: { - // Specifies the details for the EFS file being copied. - efsFileLocation?: [...#DestinationFileLocationEFSFileLocationObservation] @go(EFSFileLocation,[]DestinationFileLocationEFSFileLocationObservation) - - // Specifies the details for the S3 file being copied. - s3FileLocation?: [...#DestinationFileLocationS3FileLocationObservation] @go(S3FileLocation,[]DestinationFileLocationS3FileLocationObservation) -} - -#DecryptStepDetailsDestinationFileLocationParameters: { - // Specifies the details for the EFS file being copied. - // +kubebuilder:validation:Optional - efsFileLocation?: [...#DestinationFileLocationEFSFileLocationParameters] @go(EFSFileLocation,[]DestinationFileLocationEFSFileLocationParameters) - - // Specifies the details for the S3 file being copied. - // +kubebuilder:validation:Optional - s3FileLocation?: [...#DestinationFileLocationS3FileLocationParameters] @go(S3FileLocation,[]DestinationFileLocationS3FileLocationParameters) -} - -#DecryptStepDetailsDestinationFileLocationS3FileLocationInitParameters: { - // Specifies the S3 bucket for the customer input file. - bucket?: null | string @go(Bucket,*string) - - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - key?: null | string @go(Key,*string) -} - -#DecryptStepDetailsDestinationFileLocationS3FileLocationObservation: { - // Specifies the S3 bucket for the customer input file. - bucket?: null | string @go(Bucket,*string) - - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - key?: null | string @go(Key,*string) -} - -#DecryptStepDetailsDestinationFileLocationS3FileLocationParameters: { - // Specifies the S3 bucket for the customer input file. - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) -} - -#DecryptStepDetailsInitParameters: { - // Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. - destinationFileLocation?: [...#DecryptStepDetailsDestinationFileLocationInitParameters] @go(DestinationFileLocation,[]DecryptStepDetailsDestinationFileLocationInitParameters) - - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. Valid values are TRUE and FALSE. - overwriteExisting?: null | string @go(OverwriteExisting,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // One of the following step types are supported. COPY, CUSTOM, DECRYPT, DELETE, and TAG. - type?: null | string @go(Type,*string) -} - -#DecryptStepDetailsObservation: { - // Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. - destinationFileLocation?: [...#DecryptStepDetailsDestinationFileLocationObservation] @go(DestinationFileLocation,[]DecryptStepDetailsDestinationFileLocationObservation) - - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. Valid values are TRUE and FALSE. - overwriteExisting?: null | string @go(OverwriteExisting,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // One of the following step types are supported. COPY, CUSTOM, DECRYPT, DELETE, and TAG. - type?: null | string @go(Type,*string) -} - -#DecryptStepDetailsParameters: { - // Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. - // +kubebuilder:validation:Optional - destinationFileLocation?: [...#DecryptStepDetailsDestinationFileLocationParameters] @go(DestinationFileLocation,[]DecryptStepDetailsDestinationFileLocationParameters) - - // The name of the step, used as an identifier. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. Valid values are TRUE and FALSE. - // +kubebuilder:validation:Optional - overwriteExisting?: null | string @go(OverwriteExisting,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - // +kubebuilder:validation:Optional - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // One of the following step types are supported. COPY, CUSTOM, DECRYPT, DELETE, and TAG. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#DeleteStepDetailsInitParameters: { - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) -} - -#DeleteStepDetailsObservation: { - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) -} - -#DeleteStepDetailsParameters: { - // The name of the step, used as an identifier. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - // +kubebuilder:validation:Optional - sourceFileLocation?: null | string @go(SourceFileLocation,*string) -} - -#DestinationFileLocationEFSFileLocationInitParameters: { - // The ID of the file system, assigned by Amazon EFS. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The pathname for the folder being used by a workflow. - path?: null | string @go(Path,*string) -} - -#DestinationFileLocationEFSFileLocationObservation: { - // The ID of the file system, assigned by Amazon EFS. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The pathname for the folder being used by a workflow. - path?: null | string @go(Path,*string) -} - -#DestinationFileLocationEFSFileLocationParameters: { - // The ID of the file system, assigned by Amazon EFS. - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // The pathname for the folder being used by a workflow. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) -} - -#DestinationFileLocationInitParameters: { - // Specifies the details for the EFS file being copied. - efsFileLocation?: [...#EFSFileLocationInitParameters] @go(EFSFileLocation,[]EFSFileLocationInitParameters) - - // Specifies the details for the S3 file being copied. - s3FileLocation?: [...#S3FileLocationInitParameters] @go(S3FileLocation,[]S3FileLocationInitParameters) -} - -#DestinationFileLocationObservation: { - // Specifies the details for the EFS file being copied. - efsFileLocation?: [...#EFSFileLocationObservation] @go(EFSFileLocation,[]EFSFileLocationObservation) - - // Specifies the details for the S3 file being copied. - s3FileLocation?: [...#S3FileLocationObservation] @go(S3FileLocation,[]S3FileLocationObservation) -} - -#DestinationFileLocationParameters: { - // Specifies the details for the EFS file being copied. - // +kubebuilder:validation:Optional - efsFileLocation?: [...#EFSFileLocationParameters] @go(EFSFileLocation,[]EFSFileLocationParameters) - - // Specifies the details for the S3 file being copied. - // +kubebuilder:validation:Optional - s3FileLocation?: [...#S3FileLocationParameters] @go(S3FileLocation,[]S3FileLocationParameters) -} - -#DestinationFileLocationS3FileLocationInitParameters: { - // Specifies the S3 bucket for the customer input file. - bucket?: null | string @go(Bucket,*string) - - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - key?: null | string @go(Key,*string) -} - -#DestinationFileLocationS3FileLocationObservation: { - // Specifies the S3 bucket for the customer input file. - bucket?: null | string @go(Bucket,*string) - - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - key?: null | string @go(Key,*string) -} - -#DestinationFileLocationS3FileLocationParameters: { - // Specifies the S3 bucket for the customer input file. - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) -} - -#EFSFileLocationInitParameters: { - // The ID of the file system, assigned by Amazon EFS. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The pathname for the folder being used by a workflow. - path?: null | string @go(Path,*string) -} - -#EFSFileLocationObservation: { - // The ID of the file system, assigned by Amazon EFS. - fileSystemId?: null | string @go(FileSystemID,*string) - - // The pathname for the folder being used by a workflow. - path?: null | string @go(Path,*string) -} - -#EFSFileLocationParameters: { - // The ID of the file system, assigned by Amazon EFS. - // +kubebuilder:validation:Optional - fileSystemId?: null | string @go(FileSystemID,*string) - - // The pathname for the folder being used by a workflow. - // +kubebuilder:validation:Optional - path?: null | string @go(Path,*string) -} - -#OnExceptionStepsInitParameters: { - // Details for a step that performs a file copy. See Copy Step Details below. - copyStepDetails?: [...#CopyStepDetailsInitParameters] @go(CopyStepDetails,[]CopyStepDetailsInitParameters) - - // Details for a step that invokes a lambda function. - customStepDetails?: [...#CustomStepDetailsInitParameters] @go(CustomStepDetails,[]CustomStepDetailsInitParameters) - - // Details for a step that decrypts the file. - decryptStepDetails?: [...#DecryptStepDetailsInitParameters] @go(DecryptStepDetails,[]DecryptStepDetailsInitParameters) - - // Details for a step that deletes the file. - deleteStepDetails?: [...#DeleteStepDetailsInitParameters] @go(DeleteStepDetails,[]DeleteStepDetailsInitParameters) - - // Details for a step that creates one or more tags. - tagStepDetails?: [...#TagStepDetailsInitParameters] @go(TagStepDetails,[]TagStepDetailsInitParameters) - - // One of the following step types are supported. COPY, CUSTOM, DECRYPT, DELETE, and TAG. - type?: null | string @go(Type,*string) -} - -#OnExceptionStepsObservation: { - // Details for a step that performs a file copy. See Copy Step Details below. - copyStepDetails?: [...#CopyStepDetailsObservation] @go(CopyStepDetails,[]CopyStepDetailsObservation) - - // Details for a step that invokes a lambda function. - customStepDetails?: [...#CustomStepDetailsObservation] @go(CustomStepDetails,[]CustomStepDetailsObservation) - - // Details for a step that decrypts the file. - decryptStepDetails?: [...#DecryptStepDetailsObservation] @go(DecryptStepDetails,[]DecryptStepDetailsObservation) - - // Details for a step that deletes the file. - deleteStepDetails?: [...#DeleteStepDetailsObservation] @go(DeleteStepDetails,[]DeleteStepDetailsObservation) - - // Details for a step that creates one or more tags. - tagStepDetails?: [...#TagStepDetailsObservation] @go(TagStepDetails,[]TagStepDetailsObservation) - - // One of the following step types are supported. COPY, CUSTOM, DECRYPT, DELETE, and TAG. - type?: null | string @go(Type,*string) -} - -#OnExceptionStepsParameters: { - // Details for a step that performs a file copy. See Copy Step Details below. - // +kubebuilder:validation:Optional - copyStepDetails?: [...#CopyStepDetailsParameters] @go(CopyStepDetails,[]CopyStepDetailsParameters) - - // Details for a step that invokes a lambda function. - // +kubebuilder:validation:Optional - customStepDetails?: [...#CustomStepDetailsParameters] @go(CustomStepDetails,[]CustomStepDetailsParameters) - - // Details for a step that decrypts the file. - // +kubebuilder:validation:Optional - decryptStepDetails?: [...#DecryptStepDetailsParameters] @go(DecryptStepDetails,[]DecryptStepDetailsParameters) - - // Details for a step that deletes the file. - // +kubebuilder:validation:Optional - deleteStepDetails?: [...#DeleteStepDetailsParameters] @go(DeleteStepDetails,[]DeleteStepDetailsParameters) - - // Details for a step that creates one or more tags. - // +kubebuilder:validation:Optional - tagStepDetails?: [...#TagStepDetailsParameters] @go(TagStepDetails,[]TagStepDetailsParameters) - - // One of the following step types are supported. COPY, CUSTOM, DECRYPT, DELETE, and TAG. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#S3FileLocationInitParameters: { - // Specifies the S3 bucket for the customer input file. - bucket?: null | string @go(Bucket,*string) - - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - key?: null | string @go(Key,*string) -} - -#S3FileLocationObservation: { - // Specifies the S3 bucket for the customer input file. - bucket?: null | string @go(Bucket,*string) - - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - key?: null | string @go(Key,*string) -} - -#S3FileLocationParameters: { - // Specifies the S3 bucket for the customer input file. - // +kubebuilder:validation:Optional - bucket?: null | string @go(Bucket,*string) - - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) -} - -#StepsCopyStepDetailsInitParameters: { - // Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. - destinationFileLocation?: [...#CopyStepDetailsDestinationFileLocationInitParameters] @go(DestinationFileLocation,[]CopyStepDetailsDestinationFileLocationInitParameters) - - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. Valid values are TRUE and FALSE. - overwriteExisting?: null | string @go(OverwriteExisting,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) -} - -#StepsCopyStepDetailsObservation: { - // Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. - destinationFileLocation?: [...#CopyStepDetailsDestinationFileLocationObservation] @go(DestinationFileLocation,[]CopyStepDetailsDestinationFileLocationObservation) - - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. Valid values are TRUE and FALSE. - overwriteExisting?: null | string @go(OverwriteExisting,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) -} - -#StepsCopyStepDetailsParameters: { - // Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. - // +kubebuilder:validation:Optional - destinationFileLocation?: [...#CopyStepDetailsDestinationFileLocationParameters] @go(DestinationFileLocation,[]CopyStepDetailsDestinationFileLocationParameters) - - // The name of the step, used as an identifier. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. Valid values are TRUE and FALSE. - // +kubebuilder:validation:Optional - overwriteExisting?: null | string @go(OverwriteExisting,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - // +kubebuilder:validation:Optional - sourceFileLocation?: null | string @go(SourceFileLocation,*string) -} - -#StepsCustomStepDetailsInitParameters: { - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // Timeout, in seconds, for the step. - timeoutSeconds?: null | float64 @go(TimeoutSeconds,*float64) -} - -#StepsCustomStepDetailsObservation: { - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // The ARN for the lambda function that is being called. - target?: null | string @go(Target,*string) - - // Timeout, in seconds, for the step. - timeoutSeconds?: null | float64 @go(TimeoutSeconds,*float64) -} - -#StepsCustomStepDetailsParameters: { - // The name of the step, used as an identifier. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - // +kubebuilder:validation:Optional - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // The ARN for the lambda function that is being called. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - target?: null | string @go(Target,*string) - - // Reference to a Function in lambda to populate target. - // +kubebuilder:validation:Optional - targetRef?: null | v1.#Reference @go(TargetRef,*v1.Reference) - - // Selector for a Function in lambda to populate target. - // +kubebuilder:validation:Optional - targetSelector?: null | v1.#Selector @go(TargetSelector,*v1.Selector) - - // Timeout, in seconds, for the step. - // +kubebuilder:validation:Optional - timeoutSeconds?: null | float64 @go(TimeoutSeconds,*float64) -} - -#StepsDecryptStepDetailsDestinationFileLocationInitParameters: { - // Specifies the details for the EFS file being copied. - efsFileLocation?: [...#DecryptStepDetailsDestinationFileLocationEFSFileLocationInitParameters] @go(EFSFileLocation,[]DecryptStepDetailsDestinationFileLocationEFSFileLocationInitParameters) - - // Specifies the details for the S3 file being copied. - s3FileLocation?: [...#DecryptStepDetailsDestinationFileLocationS3FileLocationInitParameters] @go(S3FileLocation,[]DecryptStepDetailsDestinationFileLocationS3FileLocationInitParameters) -} - -#StepsDecryptStepDetailsDestinationFileLocationObservation: { - // Specifies the details for the EFS file being copied. - efsFileLocation?: [...#DecryptStepDetailsDestinationFileLocationEFSFileLocationObservation] @go(EFSFileLocation,[]DecryptStepDetailsDestinationFileLocationEFSFileLocationObservation) - - // Specifies the details for the S3 file being copied. - s3FileLocation?: [...#DecryptStepDetailsDestinationFileLocationS3FileLocationObservation] @go(S3FileLocation,[]DecryptStepDetailsDestinationFileLocationS3FileLocationObservation) -} - -#StepsDecryptStepDetailsDestinationFileLocationParameters: { - // Specifies the details for the EFS file being copied. - // +kubebuilder:validation:Optional - efsFileLocation?: [...#DecryptStepDetailsDestinationFileLocationEFSFileLocationParameters] @go(EFSFileLocation,[]DecryptStepDetailsDestinationFileLocationEFSFileLocationParameters) - - // Specifies the details for the S3 file being copied. - // +kubebuilder:validation:Optional - s3FileLocation?: [...#DecryptStepDetailsDestinationFileLocationS3FileLocationParameters] @go(S3FileLocation,[]DecryptStepDetailsDestinationFileLocationS3FileLocationParameters) -} - -#StepsDecryptStepDetailsInitParameters: { - // Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. - destinationFileLocation?: [...#StepsDecryptStepDetailsDestinationFileLocationInitParameters] @go(DestinationFileLocation,[]StepsDecryptStepDetailsDestinationFileLocationInitParameters) - - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. Valid values are TRUE and FALSE. - overwriteExisting?: null | string @go(OverwriteExisting,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // One of the following step types are supported. COPY, CUSTOM, DECRYPT, DELETE, and TAG. - type?: null | string @go(Type,*string) -} - -#StepsDecryptStepDetailsObservation: { - // Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. - destinationFileLocation?: [...#StepsDecryptStepDetailsDestinationFileLocationObservation] @go(DestinationFileLocation,[]StepsDecryptStepDetailsDestinationFileLocationObservation) - - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. Valid values are TRUE and FALSE. - overwriteExisting?: null | string @go(OverwriteExisting,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // One of the following step types are supported. COPY, CUSTOM, DECRYPT, DELETE, and TAG. - type?: null | string @go(Type,*string) -} - -#StepsDecryptStepDetailsParameters: { - // Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. - // +kubebuilder:validation:Optional - destinationFileLocation?: [...#StepsDecryptStepDetailsDestinationFileLocationParameters] @go(DestinationFileLocation,[]StepsDecryptStepDetailsDestinationFileLocationParameters) - - // The name of the step, used as an identifier. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. Valid values are TRUE and FALSE. - // +kubebuilder:validation:Optional - overwriteExisting?: null | string @go(OverwriteExisting,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - // +kubebuilder:validation:Optional - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // One of the following step types are supported. COPY, CUSTOM, DECRYPT, DELETE, and TAG. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#StepsDeleteStepDetailsInitParameters: { - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) -} - -#StepsDeleteStepDetailsObservation: { - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) -} - -#StepsDeleteStepDetailsParameters: { - // The name of the step, used as an identifier. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - // +kubebuilder:validation:Optional - sourceFileLocation?: null | string @go(SourceFileLocation,*string) -} - -#StepsInitParameters: { - // Details for a step that performs a file copy. See Copy Step Details below. - copyStepDetails?: [...#StepsCopyStepDetailsInitParameters] @go(CopyStepDetails,[]StepsCopyStepDetailsInitParameters) - - // Details for a step that invokes a lambda function. - customStepDetails?: [...#StepsCustomStepDetailsInitParameters] @go(CustomStepDetails,[]StepsCustomStepDetailsInitParameters) - - // Details for a step that decrypts the file. - decryptStepDetails?: [...#StepsDecryptStepDetailsInitParameters] @go(DecryptStepDetails,[]StepsDecryptStepDetailsInitParameters) - - // Details for a step that deletes the file. - deleteStepDetails?: [...#StepsDeleteStepDetailsInitParameters] @go(DeleteStepDetails,[]StepsDeleteStepDetailsInitParameters) - - // Details for a step that creates one or more tags. - tagStepDetails?: [...#StepsTagStepDetailsInitParameters] @go(TagStepDetails,[]StepsTagStepDetailsInitParameters) - - // One of the following step types are supported. COPY, CUSTOM, DECRYPT, DELETE, and TAG. - type?: null | string @go(Type,*string) -} - -#StepsObservation: { - // Details for a step that performs a file copy. See Copy Step Details below. - copyStepDetails?: [...#StepsCopyStepDetailsObservation] @go(CopyStepDetails,[]StepsCopyStepDetailsObservation) - - // Details for a step that invokes a lambda function. - customStepDetails?: [...#StepsCustomStepDetailsObservation] @go(CustomStepDetails,[]StepsCustomStepDetailsObservation) - - // Details for a step that decrypts the file. - decryptStepDetails?: [...#StepsDecryptStepDetailsObservation] @go(DecryptStepDetails,[]StepsDecryptStepDetailsObservation) - - // Details for a step that deletes the file. - deleteStepDetails?: [...#StepsDeleteStepDetailsObservation] @go(DeleteStepDetails,[]StepsDeleteStepDetailsObservation) - - // Details for a step that creates one or more tags. - tagStepDetails?: [...#StepsTagStepDetailsObservation] @go(TagStepDetails,[]StepsTagStepDetailsObservation) - - // One of the following step types are supported. COPY, CUSTOM, DECRYPT, DELETE, and TAG. - type?: null | string @go(Type,*string) -} - -#StepsParameters: { - // Details for a step that performs a file copy. See Copy Step Details below. - // +kubebuilder:validation:Optional - copyStepDetails?: [...#StepsCopyStepDetailsParameters] @go(CopyStepDetails,[]StepsCopyStepDetailsParameters) - - // Details for a step that invokes a lambda function. - // +kubebuilder:validation:Optional - customStepDetails?: [...#StepsCustomStepDetailsParameters] @go(CustomStepDetails,[]StepsCustomStepDetailsParameters) - - // Details for a step that decrypts the file. - // +kubebuilder:validation:Optional - decryptStepDetails?: [...#StepsDecryptStepDetailsParameters] @go(DecryptStepDetails,[]StepsDecryptStepDetailsParameters) - - // Details for a step that deletes the file. - // +kubebuilder:validation:Optional - deleteStepDetails?: [...#StepsDeleteStepDetailsParameters] @go(DeleteStepDetails,[]StepsDeleteStepDetailsParameters) - - // Details for a step that creates one or more tags. - // +kubebuilder:validation:Optional - tagStepDetails?: [...#StepsTagStepDetailsParameters] @go(TagStepDetails,[]StepsTagStepDetailsParameters) - - // One of the following step types are supported. COPY, CUSTOM, DECRYPT, DELETE, and TAG. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#StepsTagStepDetailsInitParameters: { - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // Key-value map of resource tags. - tags?: [...#TagStepDetailsTagsInitParameters] @go(Tags,[]TagStepDetailsTagsInitParameters) -} - -#StepsTagStepDetailsObservation: { - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // Key-value map of resource tags. - tags?: [...#TagStepDetailsTagsObservation] @go(Tags,[]TagStepDetailsTagsObservation) -} - -#StepsTagStepDetailsParameters: { - // The name of the step, used as an identifier. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - // +kubebuilder:validation:Optional - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: [...#TagStepDetailsTagsParameters] @go(Tags,[]TagStepDetailsTagsParameters) -} - -#TagStepDetailsInitParameters: { - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // Key-value map of resource tags. - tags?: [...#TagsInitParameters] @go(Tags,[]TagsInitParameters) -} - -#TagStepDetailsObservation: { - // The name of the step, used as an identifier. - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // Key-value map of resource tags. - tags?: [...#TagsObservation] @go(Tags,[]TagsObservation) -} - -#TagStepDetailsParameters: { - // The name of the step, used as an identifier. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. - // +kubebuilder:validation:Optional - sourceFileLocation?: null | string @go(SourceFileLocation,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: [...#TagsParameters] @go(Tags,[]TagsParameters) -} - -#TagStepDetailsTagsInitParameters: { - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - key?: null | string @go(Key,*string) - - // The value that corresponds to the key. - value?: null | string @go(Value,*string) -} - -#TagStepDetailsTagsObservation: { - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - key?: null | string @go(Key,*string) - - // The value that corresponds to the key. - value?: null | string @go(Value,*string) -} - -#TagStepDetailsTagsParameters: { - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The value that corresponds to the key. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#TagsInitParameters: { - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - key?: null | string @go(Key,*string) - - // The value that corresponds to the key. - value?: null | string @go(Value,*string) -} - -#TagsObservation: { - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - key?: null | string @go(Key,*string) - - // The value that corresponds to the key. - value?: null | string @go(Value,*string) -} - -#TagsParameters: { - // The name assigned to the file when it was created in S3. You use the object key to retrieve the object. - // +kubebuilder:validation:Optional - key?: null | string @go(Key,*string) - - // The value that corresponds to the key. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#WorkflowInitParameters: { - // A textual description for the workflow. - description?: null | string @go(Description,*string) - - // Specifies the steps (actions) to take if errors are encountered during execution of the workflow. See Workflow Steps below. - onExceptionSteps?: [...#OnExceptionStepsInitParameters] @go(OnExceptionSteps,[]OnExceptionStepsInitParameters) - - // Specifies the details for the steps that are in the specified workflow. See Workflow Steps below. - steps?: [...#StepsInitParameters] @go(Steps,[]StepsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#WorkflowObservation: { - // The Workflow ARN. - arn?: null | string @go(Arn,*string) - - // A textual description for the workflow. - description?: null | string @go(Description,*string) - - // The Workflow id. - id?: null | string @go(ID,*string) - - // Specifies the steps (actions) to take if errors are encountered during execution of the workflow. See Workflow Steps below. - onExceptionSteps?: [...#OnExceptionStepsObservation] @go(OnExceptionSteps,[]OnExceptionStepsObservation) - - // Specifies the details for the steps that are in the specified workflow. See Workflow Steps below. - steps?: [...#StepsObservation] @go(Steps,[]StepsObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#WorkflowParameters: { - // A textual description for the workflow. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specifies the steps (actions) to take if errors are encountered during execution of the workflow. See Workflow Steps below. - // +kubebuilder:validation:Optional - onExceptionSteps?: [...#OnExceptionStepsParameters] @go(OnExceptionSteps,[]OnExceptionStepsParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the details for the steps that are in the specified workflow. See Workflow Steps below. - // +kubebuilder:validation:Optional - steps?: [...#StepsParameters] @go(Steps,[]StepsParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// WorkflowSpec defines the desired state of Workflow -#WorkflowSpec: { - v1.#ResourceSpec - forProvider: #WorkflowParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WorkflowInitParameters @go(InitProvider) -} - -// WorkflowStatus defines the observed state of Workflow. -#WorkflowStatus: { - v1.#ResourceStatus - atProvider?: #WorkflowObservation @go(AtProvider) -} - -// Workflow is the Schema for the Workflows API. Provides a AWS Transfer Workflow resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Workflow: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.steps) || (has(self.initProvider) && has(self.initProvider.steps))",message="spec.forProvider.steps is a required parameter" - spec: #WorkflowSpec @go(Spec) - status?: #WorkflowStatus @go(Status) -} - -// WorkflowList contains a list of Workflows -#WorkflowList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Workflow] @go(Items,[]Workflow) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/v1alpha1/doc_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/v1alpha1/doc_go_gen.cue deleted file mode 100644 index e9e5b43..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/v1alpha1 - -// Package v1alpha1 contains the core resources of the aws provider. -// +kubebuilder:object:generate=true -// +groupName=aws.upbound.io -// +versionName=v1alpha1 -package v1alpha1 diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/v1alpha1/register_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/v1alpha1/register_go_gen.cue deleted file mode 100644 index d86863e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/v1alpha1 - -package v1alpha1 - -#Group: "aws.upbound.io" -#Version: "v1alpha1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/v1alpha1/types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/v1alpha1/types_go_gen.cue deleted file mode 100644 index 9757943..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,40 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/v1alpha1 - -package v1alpha1 - -import ( - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// A StoreConfigSpec defines the desired state of a ProviderConfig. -#StoreConfigSpec: { - xpv1.#SecretStoreConfig -} - -// A StoreConfigStatus represents the status of a StoreConfig. -#StoreConfigStatus: { - xpv1.#ConditionedStatus -} - -// A StoreConfig configures how AWS controller should store connection details. -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:printcolumn:name="TYPE",type="string",JSONPath=".spec.type" -// +kubebuilder:printcolumn:name="DEFAULT-SCOPE",type="string",JSONPath=".spec.defaultScope" -// +kubebuilder:resource:scope=Cluster,categories={crossplane,store,aws} -// +kubebuilder:subresource:status -#StoreConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #StoreConfigSpec @go(Spec) - status?: #StoreConfigStatus @go(Status) -} - -// StoreConfigList contains a list of StoreConfig -#StoreConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#StoreConfig] @go(Items,[]StoreConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/v1beta1/doc_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/v1beta1/doc_go_gen.cue deleted file mode 100644 index 119cab8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/v1beta1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/v1beta1 - -// Package v1beta1 contains the core resources of the aws jet provider. -// +kubebuilder:object:generate=true -// +groupName=aws.upbound.io -// +versionName=v1beta1 -package v1beta1 diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/v1beta1/register_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/v1beta1/register_go_gen.cue deleted file mode 100644 index ed85ca0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/v1beta1 - -package v1beta1 - -#Group: "aws.upbound.io" -#Version: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/v1beta1/types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/v1beta1/types_go_gen.cue deleted file mode 100644 index 1375aef..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/v1beta1 - -package v1beta1 - -import ( - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// A ProviderConfigSpec defines the desired state of a ProviderConfig. -#ProviderConfigSpec: { - // Credentials required to authenticate to this provider. - credentials: #ProviderCredentials @go(Credentials) - - // AssumeRoleChain defines the options for assuming an IAM role - assumeRoleChain?: [...#AssumeRoleOptions] @go(AssumeRoleChain,[]AssumeRoleOptions) - - // Endpoint is where you can override the default endpoint configuration - // of AWS calls made by the provider. - // +optional - endpoint?: null | #EndpointConfig @go(Endpoint,*EndpointConfig) - - // Whether to skip credentials validation via the STS API. - // This can be useful for testing and for AWS API implementations that do not have STS available. - // +optional - skip_credentials_validation?: bool @go(SkipCredsValidation) - - // Whether to skip validation of provided region name. - // Useful for AWS-like implementations that use their own region names or to bypass the validation for - // regions that aren't publicly available yet. - // +optional - skip_region_validation?: bool @go(SkipRegionValidation) - - // Whether to enable the request to use path-style addressing, i.e., https://s3.amazonaws.com/BUCKET/KEY. - // +optional - s3_use_path_style?: bool @go(S3UsePathStyle) - - // Whether to skip the AWS Metadata API check - // Useful for AWS API implementations that do not have a metadata API endpoint. - // +optional - skip_metadata_api_check?: bool @go(SkipMetadataApiCheck) - - // Whether to skip requesting the account ID. - // Useful for AWS API implementations that do not have the IAM, STS API, or metadata API - // +optional - skip_requesting_account_id?: bool @go(SkipReqAccountId) -} - -// AssumeRoleOptions define the options for assuming an IAM Role -// Fields are similar to the STS AssumeRoleOptions in the AWS SDK -#AssumeRoleOptions: { - // AssumeRoleARN to assume with provider credentials - roleARN?: null | string @go(RoleARN,*string) - - // ExternalID is the external ID used when assuming role. - // +optional - externalID?: null | string @go(ExternalID,*string) - - // Tags is list of session tags that you want to pass. Each session tag consists of a key - // name and an associated value. For more information about session tags, see - // Tagging STS Sessions - // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html). - // +optional - tags?: [...#Tag] @go(Tags,[]Tag) - - // TransitiveTagKeys is a list of keys for session tags that you want to set as transitive. If you set a - // tag key as transitive, the corresponding key and value passes to subsequent - // sessions in a role chain. For more information, see Chaining Roles with Session Tags - // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining). - // +optional - transitiveTagKeys?: [...string] @go(TransitiveTagKeys,[]string) -} - -// AssumeRoleWithWebIdentityOptions define the options for assuming an IAM Role -// Fields are similar to the STS WebIdentityRoleOptions in the AWS SDK -#AssumeRoleWithWebIdentityOptions: { - // AssumeRoleARN to assume with provider credentials - roleARN?: null | string @go(RoleARN,*string) - - // RoleSessionName is the session name, if you wish to uniquely identify this session. - // +optional - roleSessionName?: string @go(RoleSessionName) -} - -// Upbound defines the options for authenticating using Upbound as an identity -// provider. -#Upbound: { - // WebIdentity defines the options for assuming an IAM role with a Web - // Identity. - webIdentity?: null | #AssumeRoleWithWebIdentityOptions @go(WebIdentity,*AssumeRoleWithWebIdentityOptions) -} - -// EndpointConfig is used to configure the AWS client for a custom endpoint. -#EndpointConfig: { - // URL lets you configure the endpoint URL to be used in SDK calls. - url: #URLConfig @go(URL) - - // Specifies the list of services you want endpoint to be used for - services?: [...string] @go(Services,[]string) - - // Specifies if the endpoint's hostname can be modified by the SDK's API - // client. - // - // If the hostname is mutable the SDK API clients may modify any part of - // the hostname based on the requirements of the API, (e.g. adding, or - // removing content in the hostname). Such as, Amazon S3 API client - // prefixing "bucketname" to the hostname, or changing the - // hostname service name component from "s3." to "s3-accesspoint.dualstack." - // for the dualstack endpoint of an S3 Accesspoint resource. - // - // Care should be taken when providing a custom endpoint for an API. If the - // endpoint hostname is mutable, and the client cannot modify the endpoint - // correctly, the operation call will most likely fail, or have undefined - // behavior. - // - // If hostname is immutable, the SDK API clients will not modify the - // hostname of the URL. This may cause the API client not to function - // correctly if the API requires the operation specific hostname values - // to be used by the client. - // - // This flag does not modify the API client's behavior if this endpoint - // will be used instead of Endpoint Discovery, or if the endpoint will be - // used to perform Endpoint Discovery. That behavior is configured via the - // API Client's Options. - // Note that this is effective only for resources that use AWS SDK v2. - // +optional - hostnameImmutable?: null | bool @go(HostnameImmutable,*bool) - - // The AWS partition the endpoint belongs to. - // +optional - partitionId?: null | string @go(PartitionID,*string) - - // The service name that should be used for signing the requests to the - // endpoint. - // +optional - signingName?: null | string @go(SigningName,*string) - - // The region that should be used for signing the request to the endpoint. - // For IAM, which doesn't have any region, us-east-1 is used to sign the - // requests, which is the only signing region of IAM. - // +optional - signingRegion?: null | string @go(SigningRegion,*string) - - // The signing method that should be used for signing the requests to the - // endpoint. - // +optional - signingMethod?: null | string @go(SigningMethod,*string) - - // The source of the Endpoint. By default, this will be ServiceMetadata. - // When providing a custom endpoint, you should set the source as Custom. - // If source is not provided when providing a custom endpoint, the SDK may not - // perform required host mutations correctly. Source should be used along with - // HostnameImmutable property as per the usage requirement. - // Note that this is effective only for resources that use AWS SDK v2. - // +optional - // +kubebuilder:validation:Enum=ServiceMetadata;Custom - source?: null | string @go(Source,*string) -} - -// URLConfig lets users configure the URL of the AWS SDK calls. -#URLConfig: { - // You can provide a static URL that will be used regardless of the service - // and region by choosing Static type. Alternatively, you can provide - // configuration for dynamically resolving the URL with the config you provide - // once you set the type as Dynamic. - // +kubebuilder:validation:Enum=Static;Dynamic - type: string @go(Type) - - // Static is the full URL you'd like the AWS SDK to use. - // Recommended for using tools like localstack where a single host is exposed - // for all services and regions. - // +optional - static?: null | string @go(Static,*string) - - // Dynamic lets you configure the behavior of endpoint URL resolver. - // +optional - dynamic?: null | #DynamicURLConfig @go(Dynamic,*DynamicURLConfig) -} - -// DynamicURLConfig lets users configure endpoint resolving functionality. -#DynamicURLConfig: { - // Protocol is the HTTP protocol that will be used in the URL. Currently, - // only http and https are supported. - // +kubebuilder:validation:Enum=http;https - protocol: string @go(Protocol) - - // Host is the address of the main host that the resolver will use to - // prepend protocol, service and region configurations. - // For example, the final URL for EC2 in us-east-1 looks like https://ec2.us-east-1.amazonaws.com - // You would need to use "amazonaws.com" as Host and "https" as protocol - // to have the resolver construct it. - host: string @go(Host) -} - -// Tag is session tag that can be used to assume an IAM Role -#Tag: { - // Name of the tag. - // Key is a required field - key?: null | string @go(Key,*string) - - // Value of the tag. - // Value is a required field - value?: null | string @go(Value,*string) -} - -// ProviderCredentials required to authenticate. -#ProviderCredentials: { - // Source of the provider credentials. - // +kubebuilder:validation:Enum=None;Secret;IRSA;WebIdentity;Upbound - source: xpv1.#CredentialsSource @go(Source) - - // WebIdentity defines the options for assuming an IAM role with a Web Identity. - webIdentity?: null | #AssumeRoleWithWebIdentityOptions @go(WebIdentity,*AssumeRoleWithWebIdentityOptions) - - // Upbound defines the options for authenticating using Upbound as an identity provider. - upbound?: null | #Upbound @go(Upbound,*Upbound) - - xpv1.#CommonCredentialSelectors -} - -// A ProviderConfigStatus reflects the observed state of a ProviderConfig. -#ProviderConfigStatus: { - xpv1.#ProviderConfigStatus -} - -// A ProviderConfig configures the AWS provider. -// +kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:printcolumn:name="SOURCE",type="string",JSONPath=".spec.source",priority=1 -// +kubebuilder:resource:scope=Cluster -// +kubebuilder:resource:scope=Cluster,categories={crossplane,providerconfig,aws} -// +kubebuilder:storageversion -#ProviderConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #ProviderConfigSpec @go(Spec) - status?: #ProviderConfigStatus @go(Status) -} - -// ProviderConfigList contains a list of ProviderConfig. -#ProviderConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ProviderConfig] @go(Items,[]ProviderConfig) -} - -// A ProviderConfigUsage indicates that a resource is using a ProviderConfig. -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:printcolumn:name="CONFIG-NAME",type="string",JSONPath=".providerConfigRef.name" -// +kubebuilder:printcolumn:name="RESOURCE-KIND",type="string",JSONPath=".resourceRef.kind" -// +kubebuilder:printcolumn:name="RESOURCE-NAME",type="string",JSONPath=".resourceRef.name" -// +kubebuilder:resource:scope=Cluster,categories={crossplane,providerconfig,aws} -// +kubebuilder:storageversion -#ProviderConfigUsage: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - xpv1.#ProviderConfigUsage -} - -// ProviderConfigUsageList contains a list of ProviderConfigUsage -#ProviderConfigUsageList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ProviderConfigUsage] @go(Items,[]ProviderConfigUsage) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/vpc/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/vpc/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index dc61183..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/vpc/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/vpc/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=vpc.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "vpc.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/vpc/v1beta1/zz_networkperformancemetricsubscription_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/vpc/v1beta1/zz_networkperformancemetricsubscription_types_go_gen.cue deleted file mode 100644 index 8f47f91..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/vpc/v1beta1/zz_networkperformancemetricsubscription_types_go_gen.cue +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/vpc/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#NetworkPerformanceMetricSubscriptionInitParameters: { - // The target Region or Availability Zone that the metric subscription is enabled for. For example, eu-west-1. - destination?: null | string @go(Destination,*string) - - // The metric used for the enabled subscription. Valid values: aggregate-latency. Default: aggregate-latency. - metric?: null | string @go(Metric,*string) - - // The source Region or Availability Zone that the metric subscription is enabled for. For example, us-east-1. - source?: null | string @go(Source,*string) - - // The statistic used for the enabled subscription. Valid values: p50. Default: p50. - statistic?: null | string @go(Statistic,*string) -} - -#NetworkPerformanceMetricSubscriptionObservation: { - // The target Region or Availability Zone that the metric subscription is enabled for. For example, eu-west-1. - destination?: null | string @go(Destination,*string) - id?: null | string @go(ID,*string) - - // The metric used for the enabled subscription. Valid values: aggregate-latency. Default: aggregate-latency. - metric?: null | string @go(Metric,*string) - - // The data aggregation time for the subscription. - period?: null | string @go(Period,*string) - - // The source Region or Availability Zone that the metric subscription is enabled for. For example, us-east-1. - source?: null | string @go(Source,*string) - - // The statistic used for the enabled subscription. Valid values: p50. Default: p50. - statistic?: null | string @go(Statistic,*string) -} - -#NetworkPerformanceMetricSubscriptionParameters: { - // The target Region or Availability Zone that the metric subscription is enabled for. For example, eu-west-1. - // +kubebuilder:validation:Optional - destination?: null | string @go(Destination,*string) - - // The metric used for the enabled subscription. Valid values: aggregate-latency. Default: aggregate-latency. - // +kubebuilder:validation:Optional - metric?: null | string @go(Metric,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The source Region or Availability Zone that the metric subscription is enabled for. For example, us-east-1. - // +kubebuilder:validation:Optional - source?: null | string @go(Source,*string) - - // The statistic used for the enabled subscription. Valid values: p50. Default: p50. - // +kubebuilder:validation:Optional - statistic?: null | string @go(Statistic,*string) -} - -// NetworkPerformanceMetricSubscriptionSpec defines the desired state of NetworkPerformanceMetricSubscription -#NetworkPerformanceMetricSubscriptionSpec: { - v1.#ResourceSpec - forProvider: #NetworkPerformanceMetricSubscriptionParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #NetworkPerformanceMetricSubscriptionInitParameters @go(InitProvider) -} - -// NetworkPerformanceMetricSubscriptionStatus defines the observed state of NetworkPerformanceMetricSubscription. -#NetworkPerformanceMetricSubscriptionStatus: { - v1.#ResourceStatus - atProvider?: #NetworkPerformanceMetricSubscriptionObservation @go(AtProvider) -} - -// NetworkPerformanceMetricSubscription is the Schema for the NetworkPerformanceMetricSubscriptions API. Provides a resource to manage an Infrastructure Performance subscription. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#NetworkPerformanceMetricSubscription: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destination) || (has(self.initProvider) && has(self.initProvider.destination))",message="spec.forProvider.destination is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.source) || (has(self.initProvider) && has(self.initProvider.source))",message="spec.forProvider.source is a required parameter" - spec: #NetworkPerformanceMetricSubscriptionSpec @go(Spec) - status?: #NetworkPerformanceMetricSubscriptionStatus @go(Status) -} - -// NetworkPerformanceMetricSubscriptionList contains a list of NetworkPerformanceMetricSubscriptions -#NetworkPerformanceMetricSubscriptionList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#NetworkPerformanceMetricSubscription] @go(Items,[]NetworkPerformanceMetricSubscription) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_bytematchset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_bytematchset_types_go_gen.cue deleted file mode 100644 index 5946602..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_bytematchset_types_go_gen.cue +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/waf/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ByteMatchSetInitParameters: { - // Specifies the bytes (typically a string that corresponds - // with ASCII characters) that you want to search for in web requests, - // the location in requests that you want to search, and other settings. - byteMatchTuples?: [...#ByteMatchTuplesInitParameters] @go(ByteMatchTuples,[]ByteMatchTuplesInitParameters) - - // The name or description of the Byte Match Set. - name?: null | string @go(Name,*string) -} - -#ByteMatchSetObservation: { - // Specifies the bytes (typically a string that corresponds - // with ASCII characters) that you want to search for in web requests, - // the location in requests that you want to search, and other settings. - byteMatchTuples?: [...#ByteMatchTuplesObservation] @go(ByteMatchTuples,[]ByteMatchTuplesObservation) - - // The ID of the WAF Byte Match Set. - id?: null | string @go(ID,*string) - - // The name or description of the Byte Match Set. - name?: null | string @go(Name,*string) -} - -#ByteMatchSetParameters: { - // Specifies the bytes (typically a string that corresponds - // with ASCII characters) that you want to search for in web requests, - // the location in requests that you want to search, and other settings. - // +kubebuilder:validation:Optional - byteMatchTuples?: [...#ByteMatchTuplesParameters] @go(ByteMatchTuples,[]ByteMatchTuplesParameters) - - // The name or description of the Byte Match Set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#ByteMatchTuplesInitParameters: { - // The part of a web request that you want to search, such as a specified header or a query string. - fieldToMatch?: [...#FieldToMatchInitParameters] @go(FieldToMatch,[]FieldToMatchInitParameters) - - // Within the portion of a web request that you want to search - // (for example, in the query string, if any), specify where you want to search. - // e.g., CONTAINS, CONTAINS_WORD or EXACTLY. - // See docs - // for all supported values. - positionalConstraint?: null | string @go(PositionalConstraint,*string) - - // The value that you want to search for within the field specified by field_to_match, e.g., badrefer1. - // See docs - // for all supported values. - targetString?: null | string @go(TargetString,*string) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on target_string before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#ByteMatchTuplesObservation: { - // The part of a web request that you want to search, such as a specified header or a query string. - fieldToMatch?: [...#FieldToMatchObservation] @go(FieldToMatch,[]FieldToMatchObservation) - - // Within the portion of a web request that you want to search - // (for example, in the query string, if any), specify where you want to search. - // e.g., CONTAINS, CONTAINS_WORD or EXACTLY. - // See docs - // for all supported values. - positionalConstraint?: null | string @go(PositionalConstraint,*string) - - // The value that you want to search for within the field specified by field_to_match, e.g., badrefer1. - // See docs - // for all supported values. - targetString?: null | string @go(TargetString,*string) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on target_string before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#ByteMatchTuplesParameters: { - // The part of a web request that you want to search, such as a specified header or a query string. - // +kubebuilder:validation:Optional - fieldToMatch: [...#FieldToMatchParameters] @go(FieldToMatch,[]FieldToMatchParameters) - - // Within the portion of a web request that you want to search - // (for example, in the query string, if any), specify where you want to search. - // e.g., CONTAINS, CONTAINS_WORD or EXACTLY. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - positionalConstraint?: null | string @go(PositionalConstraint,*string) - - // The value that you want to search for within the field specified by field_to_match, e.g., badrefer1. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - targetString?: null | string @go(TargetString,*string) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on target_string before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - textTransformation?: null | string @go(TextTransformation,*string) -} - -#FieldToMatchInitParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#FieldToMatchObservation: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#FieldToMatchParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// ByteMatchSetSpec defines the desired state of ByteMatchSet -#ByteMatchSetSpec: { - v1.#ResourceSpec - forProvider: #ByteMatchSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ByteMatchSetInitParameters @go(InitProvider) -} - -// ByteMatchSetStatus defines the observed state of ByteMatchSet. -#ByteMatchSetStatus: { - v1.#ResourceStatus - atProvider?: #ByteMatchSetObservation @go(AtProvider) -} - -// ByteMatchSet is the Schema for the ByteMatchSets API. Provides a AWS WAF Byte Match Set resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ByteMatchSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ByteMatchSetSpec @go(Spec) - status?: #ByteMatchSetStatus @go(Status) -} - -// ByteMatchSetList contains a list of ByteMatchSets -#ByteMatchSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ByteMatchSet] @go(Items,[]ByteMatchSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_geomatchset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_geomatchset_types_go_gen.cue deleted file mode 100644 index 2115459..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_geomatchset_types_go_gen.cue +++ /dev/null @@ -1,126 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/waf/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GeoMatchConstraintInitParameters: { - // The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value. - type?: null | string @go(Type,*string) - - // The country that you want AWS WAF to search for. - // This is the two-letter country code, e.g., US, CA, RU, CN, etc. - // See docs for all supported values. - value?: null | string @go(Value,*string) -} - -#GeoMatchConstraintObservation: { - // The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value. - type?: null | string @go(Type,*string) - - // The country that you want AWS WAF to search for. - // This is the two-letter country code, e.g., US, CA, RU, CN, etc. - // See docs for all supported values. - value?: null | string @go(Value,*string) -} - -#GeoMatchConstraintParameters: { - // The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The country that you want AWS WAF to search for. - // This is the two-letter country code, e.g., US, CA, RU, CN, etc. - // See docs for all supported values. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#GeoMatchSetInitParameters: { - // The GeoMatchConstraint objects which contain the country that you want AWS WAF to search for. - geoMatchConstraint?: [...#GeoMatchConstraintInitParameters] @go(GeoMatchConstraint,[]GeoMatchConstraintInitParameters) - - // The name or description of the GeoMatchSet. - name?: null | string @go(Name,*string) -} - -#GeoMatchSetObservation: { - // Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // The GeoMatchConstraint objects which contain the country that you want AWS WAF to search for. - geoMatchConstraint?: [...#GeoMatchConstraintObservation] @go(GeoMatchConstraint,[]GeoMatchConstraintObservation) - - // The ID of the WAF GeoMatchSet. - id?: null | string @go(ID,*string) - - // The name or description of the GeoMatchSet. - name?: null | string @go(Name,*string) -} - -#GeoMatchSetParameters: { - // The GeoMatchConstraint objects which contain the country that you want AWS WAF to search for. - // +kubebuilder:validation:Optional - geoMatchConstraint?: [...#GeoMatchConstraintParameters] @go(GeoMatchConstraint,[]GeoMatchConstraintParameters) - - // The name or description of the GeoMatchSet. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// GeoMatchSetSpec defines the desired state of GeoMatchSet -#GeoMatchSetSpec: { - v1.#ResourceSpec - forProvider: #GeoMatchSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GeoMatchSetInitParameters @go(InitProvider) -} - -// GeoMatchSetStatus defines the observed state of GeoMatchSet. -#GeoMatchSetStatus: { - v1.#ResourceStatus - atProvider?: #GeoMatchSetObservation @go(AtProvider) -} - -// GeoMatchSet is the Schema for the GeoMatchSets API. Provides a AWS WAF GeoMatchSet resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GeoMatchSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #GeoMatchSetSpec @go(Spec) - status?: #GeoMatchSetStatus @go(Status) -} - -// GeoMatchSetList contains a list of GeoMatchSets -#GeoMatchSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GeoMatchSet] @go(Items,[]GeoMatchSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 898419b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/waf/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=waf.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "waf.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_ipset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_ipset_types_go_gen.cue deleted file mode 100644 index 5db4f18..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_ipset_types_go_gen.cue +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/waf/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IPSetDescriptorsInitParameters: { - // Type of the IP address - IPV4 or IPV6. - type?: null | string @go(Type,*string) - - // An IPv4 or IPv6 address specified via CIDR notationE.g., 192.0.2.44/32 or 1111:0000:0000:0000:0000:0000:0000:0000/64 - value?: null | string @go(Value,*string) -} - -#IPSetDescriptorsObservation: { - // Type of the IP address - IPV4 or IPV6. - type?: null | string @go(Type,*string) - - // An IPv4 or IPv6 address specified via CIDR notationE.g., 192.0.2.44/32 or 1111:0000:0000:0000:0000:0000:0000:0000/64 - value?: null | string @go(Value,*string) -} - -#IPSetDescriptorsParameters: { - // Type of the IP address - IPV4 or IPV6. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // An IPv4 or IPv6 address specified via CIDR notationE.g., 192.0.2.44/32 or 1111:0000:0000:0000:0000:0000:0000:0000/64 - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#IPSetInitParameters: { - // One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate. - ipSetDescriptors?: [...#IPSetDescriptorsInitParameters] @go(IPSetDescriptors,[]IPSetDescriptorsInitParameters) - - // The name or description of the IPSet. - name?: null | string @go(Name,*string) -} - -#IPSetObservation: { - // The ARN of the WAF IPSet. - arn?: null | string @go(Arn,*string) - - // The ID of the WAF IPSet. - id?: null | string @go(ID,*string) - - // One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate. - ipSetDescriptors?: [...#IPSetDescriptorsObservation] @go(IPSetDescriptors,[]IPSetDescriptorsObservation) - - // The name or description of the IPSet. - name?: null | string @go(Name,*string) -} - -#IPSetParameters: { - // One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate. - // +kubebuilder:validation:Optional - ipSetDescriptors?: [...#IPSetDescriptorsParameters] @go(IPSetDescriptors,[]IPSetDescriptorsParameters) - - // The name or description of the IPSet. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// IPSetSpec defines the desired state of IPSet -#IPSetSpec: { - v1.#ResourceSpec - forProvider: #IPSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IPSetInitParameters @go(InitProvider) -} - -// IPSetStatus defines the observed state of IPSet. -#IPSetStatus: { - v1.#ResourceStatus - atProvider?: #IPSetObservation @go(AtProvider) -} - -// IPSet is the Schema for the IPSets API. Provides a AWS WAF IPSet resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#IPSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #IPSetSpec @go(Spec) - status?: #IPSetStatus @go(Status) -} - -// IPSetList contains a list of IPSets -#IPSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#IPSet] @go(Items,[]IPSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_ratebasedrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_ratebasedrule_types_go_gen.cue deleted file mode 100644 index 2910a02..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_ratebasedrule_types_go_gen.cue +++ /dev/null @@ -1,192 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/waf/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PredicatesInitParameters: { - // Set this to false if you want to allow, block, or count requests - // based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet. - // For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address. - // If set to true, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44. - negated?: null | bool @go(Negated,*bool) - - // The type of predicate in a rule. Valid values: ByteMatch, GeoMatch, IPMatch, RegexMatch, SizeConstraint, SqlInjectionMatch, or XssMatch. - type?: null | string @go(Type,*string) -} - -#PredicatesObservation: { - // A unique identifier for a predicate in the rule, such as Byte Match Set ID or IPSet ID. - dataId?: null | string @go(DataID,*string) - - // Set this to false if you want to allow, block, or count requests - // based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet. - // For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address. - // If set to true, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44. - negated?: null | bool @go(Negated,*bool) - - // The type of predicate in a rule. Valid values: ByteMatch, GeoMatch, IPMatch, RegexMatch, SizeConstraint, SqlInjectionMatch, or XssMatch. - type?: null | string @go(Type,*string) -} - -#PredicatesParameters: { - // A unique identifier for a predicate in the rule, such as Byte Match Set ID or IPSet ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/waf/v1beta1.IPSet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dataId?: null | string @go(DataID,*string) - - // Reference to a IPSet in waf to populate dataId. - // +kubebuilder:validation:Optional - dataIdRef?: null | v1.#Reference @go(DataIDRef,*v1.Reference) - - // Selector for a IPSet in waf to populate dataId. - // +kubebuilder:validation:Optional - dataIdSelector?: null | v1.#Selector @go(DataIDSelector,*v1.Selector) - - // Set this to false if you want to allow, block, or count requests - // based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet. - // For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address. - // If set to true, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44. - // +kubebuilder:validation:Optional - negated?: null | bool @go(Negated,*bool) - - // The type of predicate in a rule. Valid values: ByteMatch, GeoMatch, IPMatch, RegexMatch, SizeConstraint, SqlInjectionMatch, or XssMatch. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RateBasedRuleInitParameters: { - // The name or description for the Amazon CloudWatch metric of this rule. - metricName?: null | string @go(MetricName,*string) - - // The name or description of the rule. - name?: null | string @go(Name,*string) - - // The objects to include in a rule (documented below). - predicates?: [...#PredicatesInitParameters] @go(Predicates,[]PredicatesInitParameters) - - // Valid value is IP. - rateKey?: null | string @go(RateKey,*string) - - // The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. Minimum value is 100. - rateLimit?: null | float64 @go(RateLimit,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RateBasedRuleObservation: { - // Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // The ID of the WAF rule. - id?: null | string @go(ID,*string) - - // The name or description for the Amazon CloudWatch metric of this rule. - metricName?: null | string @go(MetricName,*string) - - // The name or description of the rule. - name?: null | string @go(Name,*string) - - // The objects to include in a rule (documented below). - predicates?: [...#PredicatesObservation] @go(Predicates,[]PredicatesObservation) - - // Valid value is IP. - rateKey?: null | string @go(RateKey,*string) - - // The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. Minimum value is 100. - rateLimit?: null | float64 @go(RateLimit,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RateBasedRuleParameters: { - // The name or description for the Amazon CloudWatch metric of this rule. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // The name or description of the rule. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The objects to include in a rule (documented below). - // +kubebuilder:validation:Optional - predicates?: [...#PredicatesParameters] @go(Predicates,[]PredicatesParameters) - - // Valid value is IP. - // +kubebuilder:validation:Optional - rateKey?: null | string @go(RateKey,*string) - - // The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. Minimum value is 100. - // +kubebuilder:validation:Optional - rateLimit?: null | float64 @go(RateLimit,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RateBasedRuleSpec defines the desired state of RateBasedRule -#RateBasedRuleSpec: { - v1.#ResourceSpec - forProvider: #RateBasedRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RateBasedRuleInitParameters @go(InitProvider) -} - -// RateBasedRuleStatus defines the observed state of RateBasedRule. -#RateBasedRuleStatus: { - v1.#ResourceStatus - atProvider?: #RateBasedRuleObservation @go(AtProvider) -} - -// RateBasedRule is the Schema for the RateBasedRules API. Provides a AWS WAF rule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RateBasedRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.metricName) || (has(self.initProvider) && has(self.initProvider.metricName))",message="spec.forProvider.metricName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rateKey) || (has(self.initProvider) && has(self.initProvider.rateKey))",message="spec.forProvider.rateKey is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rateLimit) || (has(self.initProvider) && has(self.initProvider.rateLimit))",message="spec.forProvider.rateLimit is a required parameter" - spec: #RateBasedRuleSpec @go(Spec) - status?: #RateBasedRuleStatus @go(Status) -} - -// RateBasedRuleList contains a list of RateBasedRules -#RateBasedRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RateBasedRule] @go(Items,[]RateBasedRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_regexmatchset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_regexmatchset_types_go_gen.cue deleted file mode 100644 index 6c3b7b4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_regexmatchset_types_go_gen.cue +++ /dev/null @@ -1,184 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/waf/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RegexMatchSetInitParameters: { - // The name or description of the Regex Match Set. - name?: null | string @go(Name,*string) - - // The regular expression pattern that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. See below. - regexMatchTuple?: [...#RegexMatchTupleInitParameters] @go(RegexMatchTuple,[]RegexMatchTupleInitParameters) -} - -#RegexMatchSetObservation: { - // Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // The ID of the WAF Regex Match Set. - id?: null | string @go(ID,*string) - - // The name or description of the Regex Match Set. - name?: null | string @go(Name,*string) - - // The regular expression pattern that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. See below. - regexMatchTuple?: [...#RegexMatchTupleObservation] @go(RegexMatchTuple,[]RegexMatchTupleObservation) -} - -#RegexMatchSetParameters: { - // The name or description of the Regex Match Set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The regular expression pattern that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. See below. - // +kubebuilder:validation:Optional - regexMatchTuple?: [...#RegexMatchTupleParameters] @go(RegexMatchTuple,[]RegexMatchTupleParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#RegexMatchTupleFieldToMatchInitParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#RegexMatchTupleFieldToMatchObservation: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#RegexMatchTupleFieldToMatchParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RegexMatchTupleInitParameters: { - // The part of a web request that you want to search, such as a specified header or a query string. - fieldToMatch?: [...#RegexMatchTupleFieldToMatchInitParameters] @go(FieldToMatch,[]RegexMatchTupleFieldToMatchInitParameters) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#RegexMatchTupleObservation: { - // The part of a web request that you want to search, such as a specified header or a query string. - fieldToMatch?: [...#RegexMatchTupleFieldToMatchObservation] @go(FieldToMatch,[]RegexMatchTupleFieldToMatchObservation) - - // The ID of a Regex Pattern Set. - regexPatternSetId?: null | string @go(RegexPatternSetID,*string) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#RegexMatchTupleParameters: { - // The part of a web request that you want to search, such as a specified header or a query string. - // +kubebuilder:validation:Optional - fieldToMatch: [...#RegexMatchTupleFieldToMatchParameters] @go(FieldToMatch,[]RegexMatchTupleFieldToMatchParameters) - - // The ID of a Regex Pattern Set. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/waf/v1beta1.RegexPatternSet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - regexPatternSetId?: null | string @go(RegexPatternSetID,*string) - - // Reference to a RegexPatternSet in waf to populate regexPatternSetId. - // +kubebuilder:validation:Optional - regexPatternSetIdRef?: null | v1.#Reference @go(RegexPatternSetIDRef,*v1.Reference) - - // Selector for a RegexPatternSet in waf to populate regexPatternSetId. - // +kubebuilder:validation:Optional - regexPatternSetIdSelector?: null | v1.#Selector @go(RegexPatternSetIDSelector,*v1.Selector) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - textTransformation?: null | string @go(TextTransformation,*string) -} - -// RegexMatchSetSpec defines the desired state of RegexMatchSet -#RegexMatchSetSpec: { - v1.#ResourceSpec - forProvider: #RegexMatchSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RegexMatchSetInitParameters @go(InitProvider) -} - -// RegexMatchSetStatus defines the observed state of RegexMatchSet. -#RegexMatchSetStatus: { - v1.#ResourceStatus - atProvider?: #RegexMatchSetObservation @go(AtProvider) -} - -// RegexMatchSet is the Schema for the RegexMatchSets API. Provides a AWS WAF Regex Match Set resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RegexMatchSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #RegexMatchSetSpec @go(Spec) - status?: #RegexMatchSetStatus @go(Status) -} - -// RegexMatchSetList contains a list of RegexMatchSets -#RegexMatchSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RegexMatchSet] @go(Items,[]RegexMatchSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_regexpatternset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_regexpatternset_types_go_gen.cue deleted file mode 100644 index 783a197..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_regexpatternset_types_go_gen.cue +++ /dev/null @@ -1,94 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/waf/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RegexPatternSetInitParameters: { - // The name or description of the Regex Pattern Set. - name?: null | string @go(Name,*string) - - // A list of regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t. - regexPatternStrings?: [...null | string] @go(RegexPatternStrings,[]*string) -} - -#RegexPatternSetObservation: { - // Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // The ID of the WAF Regex Pattern Set. - id?: null | string @go(ID,*string) - - // The name or description of the Regex Pattern Set. - name?: null | string @go(Name,*string) - - // A list of regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t. - regexPatternStrings?: [...null | string] @go(RegexPatternStrings,[]*string) -} - -#RegexPatternSetParameters: { - // The name or description of the Regex Pattern Set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A list of regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t. - // +kubebuilder:validation:Optional - regexPatternStrings?: [...null | string] @go(RegexPatternStrings,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// RegexPatternSetSpec defines the desired state of RegexPatternSet -#RegexPatternSetSpec: { - v1.#ResourceSpec - forProvider: #RegexPatternSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RegexPatternSetInitParameters @go(InitProvider) -} - -// RegexPatternSetStatus defines the observed state of RegexPatternSet. -#RegexPatternSetStatus: { - v1.#ResourceStatus - atProvider?: #RegexPatternSetObservation @go(AtProvider) -} - -// RegexPatternSet is the Schema for the RegexPatternSets API. Provides a AWS WAF Regex Pattern Set resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RegexPatternSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #RegexPatternSetSpec @go(Spec) - status?: #RegexPatternSetStatus @go(Status) -} - -// RegexPatternSetList contains a list of RegexPatternSets -#RegexPatternSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RegexPatternSet] @go(Items,[]RegexPatternSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_rule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_rule_types_go_gen.cue deleted file mode 100644 index 6cd0978..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_rule_types_go_gen.cue +++ /dev/null @@ -1,170 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/waf/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RuleInitParameters: { - // The name or description for the Amazon CloudWatch metric of this rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. - metricName?: null | string @go(MetricName,*string) - - // The name or description of the rule. - name?: null | string @go(Name,*string) - - // The objects to include in a rule (documented below). - predicates?: [...#RulePredicatesInitParameters] @go(Predicates,[]RulePredicatesInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RuleObservation: { - // The ARN of the WAF rule. - arn?: null | string @go(Arn,*string) - - // The ID of the WAF rule. - id?: null | string @go(ID,*string) - - // The name or description for the Amazon CloudWatch metric of this rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. - metricName?: null | string @go(MetricName,*string) - - // The name or description of the rule. - name?: null | string @go(Name,*string) - - // The objects to include in a rule (documented below). - predicates?: [...#RulePredicatesObservation] @go(Predicates,[]RulePredicatesObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RuleParameters: { - // The name or description for the Amazon CloudWatch metric of this rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // The name or description of the rule. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The objects to include in a rule (documented below). - // +kubebuilder:validation:Optional - predicates?: [...#RulePredicatesParameters] @go(Predicates,[]RulePredicatesParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RulePredicatesInitParameters: { - // Set this to false if you want to allow, block, or count requests - // based on the settings in the specified waf_byte_match_set, waf_ipset, aws_waf_size_constraint_set, aws_waf_sql_injection_match_set or aws_waf_xss_match_set. - // For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address. - // If set to true, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44. - negated?: null | bool @go(Negated,*bool) - - // The type of predicate in a rule. Valid values: ByteMatch, GeoMatch, IPMatch, RegexMatch, SizeConstraint, SqlInjectionMatch, or XssMatch. - type?: null | string @go(Type,*string) -} - -#RulePredicatesObservation: { - // A unique identifier for a predicate in the rule, such as Byte Match Set ID or IPSet ID. - dataId?: null | string @go(DataID,*string) - - // Set this to false if you want to allow, block, or count requests - // based on the settings in the specified waf_byte_match_set, waf_ipset, aws_waf_size_constraint_set, aws_waf_sql_injection_match_set or aws_waf_xss_match_set. - // For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address. - // If set to true, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44. - negated?: null | bool @go(Negated,*bool) - - // The type of predicate in a rule. Valid values: ByteMatch, GeoMatch, IPMatch, RegexMatch, SizeConstraint, SqlInjectionMatch, or XssMatch. - type?: null | string @go(Type,*string) -} - -#RulePredicatesParameters: { - // A unique identifier for a predicate in the rule, such as Byte Match Set ID or IPSet ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/waf/v1beta1.IPSet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dataId?: null | string @go(DataID,*string) - - // Reference to a IPSet in waf to populate dataId. - // +kubebuilder:validation:Optional - dataIdRef?: null | v1.#Reference @go(DataIDRef,*v1.Reference) - - // Selector for a IPSet in waf to populate dataId. - // +kubebuilder:validation:Optional - dataIdSelector?: null | v1.#Selector @go(DataIDSelector,*v1.Selector) - - // Set this to false if you want to allow, block, or count requests - // based on the settings in the specified waf_byte_match_set, waf_ipset, aws_waf_size_constraint_set, aws_waf_sql_injection_match_set or aws_waf_xss_match_set. - // For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address. - // If set to true, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44. - // +kubebuilder:validation:Optional - negated?: null | bool @go(Negated,*bool) - - // The type of predicate in a rule. Valid values: ByteMatch, GeoMatch, IPMatch, RegexMatch, SizeConstraint, SqlInjectionMatch, or XssMatch. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// RuleSpec defines the desired state of Rule -#RuleSpec: { - v1.#ResourceSpec - forProvider: #RuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RuleInitParameters @go(InitProvider) -} - -// RuleStatus defines the observed state of Rule. -#RuleStatus: { - v1.#ResourceStatus - atProvider?: #RuleObservation @go(AtProvider) -} - -// Rule is the Schema for the Rules API. Provides a AWS WAF rule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Rule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.metricName) || (has(self.initProvider) && has(self.initProvider.metricName))",message="spec.forProvider.metricName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #RuleSpec @go(Spec) - status?: #RuleStatus @go(Status) -} - -// RuleList contains a list of Rules -#RuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Rule] @go(Items,[]Rule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_sizeconstraintset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_sizeconstraintset_types_go_gen.cue deleted file mode 100644 index d0ac5fe..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_sizeconstraintset_types_go_gen.cue +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/waf/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SizeConstraintSetInitParameters: { - // The name or description of the Size Constraint Set. - name?: null | string @go(Name,*string) - - // Specifies the parts of web requests that you want to inspect the size of. - sizeConstraints?: [...#SizeConstraintsInitParameters] @go(SizeConstraints,[]SizeConstraintsInitParameters) -} - -#SizeConstraintSetObservation: { - // Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // The ID of the WAF Size Constraint Set. - id?: null | string @go(ID,*string) - - // The name or description of the Size Constraint Set. - name?: null | string @go(Name,*string) - - // Specifies the parts of web requests that you want to inspect the size of. - sizeConstraints?: [...#SizeConstraintsObservation] @go(SizeConstraints,[]SizeConstraintsObservation) -} - -#SizeConstraintSetParameters: { - // The name or description of the Size Constraint Set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the parts of web requests that you want to inspect the size of. - // +kubebuilder:validation:Optional - sizeConstraints?: [...#SizeConstraintsParameters] @go(SizeConstraints,[]SizeConstraintsParameters) -} - -#SizeConstraintsFieldToMatchInitParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#SizeConstraintsFieldToMatchObservation: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#SizeConstraintsFieldToMatchParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#SizeConstraintsInitParameters: { - // The type of comparison you want to perform. - // e.g., EQ, NE, LT, GT. - // See docs for all supported values. - comparisonOperator?: null | string @go(ComparisonOperator,*string) - - // Specifies where in a web request to look for the size constraint. - fieldToMatch?: [...#SizeConstraintsFieldToMatchInitParameters] @go(FieldToMatch,[]SizeConstraintsFieldToMatchInitParameters) - - // The size in bytes that you want to compare against the size of the specified field_to_match. - // Valid values are between 0 - 21474836480 bytes (0 - 20 GB). - size?: null | float64 @go(Size,*float64) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on field_to_match before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - // Note: if you choose BODY as type, you must choose NONE because CloudFront forwards only the first 8192 bytes for inspection. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#SizeConstraintsObservation: { - // The type of comparison you want to perform. - // e.g., EQ, NE, LT, GT. - // See docs for all supported values. - comparisonOperator?: null | string @go(ComparisonOperator,*string) - - // Specifies where in a web request to look for the size constraint. - fieldToMatch?: [...#SizeConstraintsFieldToMatchObservation] @go(FieldToMatch,[]SizeConstraintsFieldToMatchObservation) - - // The size in bytes that you want to compare against the size of the specified field_to_match. - // Valid values are between 0 - 21474836480 bytes (0 - 20 GB). - size?: null | float64 @go(Size,*float64) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on field_to_match before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - // Note: if you choose BODY as type, you must choose NONE because CloudFront forwards only the first 8192 bytes for inspection. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#SizeConstraintsParameters: { - // The type of comparison you want to perform. - // e.g., EQ, NE, LT, GT. - // See docs for all supported values. - // +kubebuilder:validation:Optional - comparisonOperator?: null | string @go(ComparisonOperator,*string) - - // Specifies where in a web request to look for the size constraint. - // +kubebuilder:validation:Optional - fieldToMatch: [...#SizeConstraintsFieldToMatchParameters] @go(FieldToMatch,[]SizeConstraintsFieldToMatchParameters) - - // The size in bytes that you want to compare against the size of the specified field_to_match. - // Valid values are between 0 - 21474836480 bytes (0 - 20 GB). - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on field_to_match before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - // Note: if you choose BODY as type, you must choose NONE because CloudFront forwards only the first 8192 bytes for inspection. - // +kubebuilder:validation:Optional - textTransformation?: null | string @go(TextTransformation,*string) -} - -// SizeConstraintSetSpec defines the desired state of SizeConstraintSet -#SizeConstraintSetSpec: { - v1.#ResourceSpec - forProvider: #SizeConstraintSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SizeConstraintSetInitParameters @go(InitProvider) -} - -// SizeConstraintSetStatus defines the observed state of SizeConstraintSet. -#SizeConstraintSetStatus: { - v1.#ResourceStatus - atProvider?: #SizeConstraintSetObservation @go(AtProvider) -} - -// SizeConstraintSet is the Schema for the SizeConstraintSets API. Provides a AWS WAF Size Constraint Set resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SizeConstraintSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #SizeConstraintSetSpec @go(Spec) - status?: #SizeConstraintSetStatus @go(Status) -} - -// SizeConstraintSetList contains a list of SizeConstraintSets -#SizeConstraintSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SizeConstraintSet] @go(Items,[]SizeConstraintSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_sqlinjectionmatchset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_sqlinjectionmatchset_types_go_gen.cue deleted file mode 100644 index 47e7dea..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_sqlinjectionmatchset_types_go_gen.cue +++ /dev/null @@ -1,167 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/waf/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SQLInjectionMatchSetInitParameters: { - // The name or description of the SQL Injection Match Set. - name?: null | string @go(Name,*string) - - // The parts of web requests that you want AWS WAF to inspect for malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. - sqlInjectionMatchTuples?: [...#SQLInjectionMatchTuplesInitParameters] @go(SQLInjectionMatchTuples,[]SQLInjectionMatchTuplesInitParameters) -} - -#SQLInjectionMatchSetObservation: { - // The ID of the WAF SQL Injection Match Set. - id?: null | string @go(ID,*string) - - // The name or description of the SQL Injection Match Set. - name?: null | string @go(Name,*string) - - // The parts of web requests that you want AWS WAF to inspect for malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. - sqlInjectionMatchTuples?: [...#SQLInjectionMatchTuplesObservation] @go(SQLInjectionMatchTuples,[]SQLInjectionMatchTuplesObservation) -} - -#SQLInjectionMatchSetParameters: { - // The name or description of the SQL Injection Match Set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The parts of web requests that you want AWS WAF to inspect for malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. - // +kubebuilder:validation:Optional - sqlInjectionMatchTuples?: [...#SQLInjectionMatchTuplesParameters] @go(SQLInjectionMatchTuples,[]SQLInjectionMatchTuplesParameters) -} - -#SQLInjectionMatchTuplesFieldToMatchInitParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#SQLInjectionMatchTuplesFieldToMatchObservation: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#SQLInjectionMatchTuplesFieldToMatchParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#SQLInjectionMatchTuplesInitParameters: { - // Specifies where in a web request to look for snippets of malicious SQL code. - fieldToMatch?: [...#SQLInjectionMatchTuplesFieldToMatchInitParameters] @go(FieldToMatch,[]SQLInjectionMatchTuplesFieldToMatchInitParameters) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on field_to_match before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#SQLInjectionMatchTuplesObservation: { - // Specifies where in a web request to look for snippets of malicious SQL code. - fieldToMatch?: [...#SQLInjectionMatchTuplesFieldToMatchObservation] @go(FieldToMatch,[]SQLInjectionMatchTuplesFieldToMatchObservation) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on field_to_match before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#SQLInjectionMatchTuplesParameters: { - // Specifies where in a web request to look for snippets of malicious SQL code. - // +kubebuilder:validation:Optional - fieldToMatch: [...#SQLInjectionMatchTuplesFieldToMatchParameters] @go(FieldToMatch,[]SQLInjectionMatchTuplesFieldToMatchParameters) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on field_to_match before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - textTransformation?: null | string @go(TextTransformation,*string) -} - -// SQLInjectionMatchSetSpec defines the desired state of SQLInjectionMatchSet -#SQLInjectionMatchSetSpec: { - v1.#ResourceSpec - forProvider: #SQLInjectionMatchSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SQLInjectionMatchSetInitParameters @go(InitProvider) -} - -// SQLInjectionMatchSetStatus defines the observed state of SQLInjectionMatchSet. -#SQLInjectionMatchSetStatus: { - v1.#ResourceStatus - atProvider?: #SQLInjectionMatchSetObservation @go(AtProvider) -} - -// SQLInjectionMatchSet is the Schema for the SQLInjectionMatchSets API. Provides a AWS WAF SQL Injection Match Set resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SQLInjectionMatchSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #SQLInjectionMatchSetSpec @go(Spec) - status?: #SQLInjectionMatchSetStatus @go(Status) -} - -// SQLInjectionMatchSetList contains a list of SQLInjectionMatchSets -#SQLInjectionMatchSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SQLInjectionMatchSet] @go(Items,[]SQLInjectionMatchSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_webacl_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_webacl_types_go_gen.cue deleted file mode 100644 index 0ac8a3e..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_webacl_types_go_gen.cue +++ /dev/null @@ -1,331 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/waf/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionInitParameters: { - // valid values are: BLOCK, ALLOW, or COUNT - type?: null | string @go(Type,*string) -} - -#ActionObservation: { - // valid values are: BLOCK, ALLOW, or COUNT - type?: null | string @go(Type,*string) -} - -#ActionParameters: { - // valid values are: BLOCK, ALLOW, or COUNT - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#DefaultActionInitParameters: { - // Specifies how you want AWS WAF to respond to requests that don't match the criteria in any of the rules. - // e.g., ALLOW or BLOCK - type?: null | string @go(Type,*string) -} - -#DefaultActionObservation: { - // Specifies how you want AWS WAF to respond to requests that don't match the criteria in any of the rules. - // e.g., ALLOW or BLOCK - type?: null | string @go(Type,*string) -} - -#DefaultActionParameters: { - // Specifies how you want AWS WAF to respond to requests that don't match the criteria in any of the rules. - // e.g., ALLOW or BLOCK - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#LoggingConfigurationInitParameters: { - // Configuration block containing parts of the request that you want redacted from the logs. Detailed below. - redactedFields?: [...#RedactedFieldsInitParameters] @go(RedactedFields,[]RedactedFieldsInitParameters) -} - -#LoggingConfigurationObservation: { - // Amazon Resource Name (ARN) of Kinesis Firehose Delivery Stream - logDestination?: null | string @go(LogDestination,*string) - - // Configuration block containing parts of the request that you want redacted from the logs. Detailed below. - redactedFields?: [...#RedactedFieldsObservation] @go(RedactedFields,[]RedactedFieldsObservation) -} - -#LoggingConfigurationParameters: { - // Amazon Resource Name (ARN) of Kinesis Firehose Delivery Stream - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/firehose/v1beta1.DeliveryStream - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",false) - // +kubebuilder:validation:Optional - logDestination?: null | string @go(LogDestination,*string) - - // Reference to a DeliveryStream in firehose to populate logDestination. - // +kubebuilder:validation:Optional - logDestinationRef?: null | v1.#Reference @go(LogDestinationRef,*v1.Reference) - - // Selector for a DeliveryStream in firehose to populate logDestination. - // +kubebuilder:validation:Optional - logDestinationSelector?: null | v1.#Selector @go(LogDestinationSelector,*v1.Selector) - - // Configuration block containing parts of the request that you want redacted from the logs. Detailed below. - // +kubebuilder:validation:Optional - redactedFields?: [...#RedactedFieldsParameters] @go(RedactedFields,[]RedactedFieldsParameters) -} - -#OverrideActionInitParameters: { - // valid values are: BLOCK, ALLOW, or COUNT - type?: null | string @go(Type,*string) -} - -#OverrideActionObservation: { - // valid values are: BLOCK, ALLOW, or COUNT - type?: null | string @go(Type,*string) -} - -#OverrideActionParameters: { - // valid values are: BLOCK, ALLOW, or COUNT - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RedactedFieldsFieldToMatchInitParameters: { - // When the value of type is HEADER, enter the name of the header that you want the WAF to search, for example, User-Agent or Referer. If the value of type is any other value, omit data. - data?: null | string @go(Data,*string) - - // valid values are: BLOCK, ALLOW, or COUNT - type?: null | string @go(Type,*string) -} - -#RedactedFieldsFieldToMatchObservation: { - // When the value of type is HEADER, enter the name of the header that you want the WAF to search, for example, User-Agent or Referer. If the value of type is any other value, omit data. - data?: null | string @go(Data,*string) - - // valid values are: BLOCK, ALLOW, or COUNT - type?: null | string @go(Type,*string) -} - -#RedactedFieldsFieldToMatchParameters: { - // When the value of type is HEADER, enter the name of the header that you want the WAF to search, for example, User-Agent or Referer. If the value of type is any other value, omit data. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // valid values are: BLOCK, ALLOW, or COUNT - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RedactedFieldsInitParameters: { - // Set of configuration blocks for fields to redact. Detailed below. - fieldToMatch?: [...#RedactedFieldsFieldToMatchInitParameters] @go(FieldToMatch,[]RedactedFieldsFieldToMatchInitParameters) -} - -#RedactedFieldsObservation: { - // Set of configuration blocks for fields to redact. Detailed below. - fieldToMatch?: [...#RedactedFieldsFieldToMatchObservation] @go(FieldToMatch,[]RedactedFieldsFieldToMatchObservation) -} - -#RedactedFieldsParameters: { - // Set of configuration blocks for fields to redact. Detailed below. - // +kubebuilder:validation:Optional - fieldToMatch: [...#RedactedFieldsFieldToMatchParameters] @go(FieldToMatch,[]RedactedFieldsFieldToMatchParameters) -} - -#RulesInitParameters: { - // The action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if type is GROUP. - action?: [...#ActionInitParameters] @go(Action,[]ActionInitParameters) - - // Override the action that a group requests CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Only used if type is GROUP. - overrideAction?: [...#OverrideActionInitParameters] @go(OverrideAction,[]OverrideActionInitParameters) - - // Specifies the order in which the rules in a WebACL are evaluated. - // Rules with a lower value are evaluated before rules with a higher value. - priority?: null | float64 @go(Priority,*float64) - - // The rule type, either REGULAR, as defined by Rule, RATE_BASED, as defined by RateBasedRule, or GROUP, as defined by RuleGroup. The default is REGULAR. If you add a RATE_BASED rule, you need to set type as RATE_BASED. If you add a GROUP rule, you need to set type as GROUP. - type?: null | string @go(Type,*string) -} - -#RulesObservation: { - // The action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if type is GROUP. - action?: [...#ActionObservation] @go(Action,[]ActionObservation) - - // Override the action that a group requests CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Only used if type is GROUP. - overrideAction?: [...#OverrideActionObservation] @go(OverrideAction,[]OverrideActionObservation) - - // Specifies the order in which the rules in a WebACL are evaluated. - // Rules with a lower value are evaluated before rules with a higher value. - priority?: null | float64 @go(Priority,*float64) - - // ID of the associated WAF (Global) rule (e.g., aws_waf_rule). WAF (Regional) rules cannot be used. - ruleId?: null | string @go(RuleID,*string) - - // The rule type, either REGULAR, as defined by Rule, RATE_BASED, as defined by RateBasedRule, or GROUP, as defined by RuleGroup. The default is REGULAR. If you add a RATE_BASED rule, you need to set type as RATE_BASED. If you add a GROUP rule, you need to set type as GROUP. - type?: null | string @go(Type,*string) -} - -#RulesParameters: { - // The action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if type is GROUP. - // +kubebuilder:validation:Optional - action?: [...#ActionParameters] @go(Action,[]ActionParameters) - - // Override the action that a group requests CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Only used if type is GROUP. - // +kubebuilder:validation:Optional - overrideAction?: [...#OverrideActionParameters] @go(OverrideAction,[]OverrideActionParameters) - - // Specifies the order in which the rules in a WebACL are evaluated. - // Rules with a lower value are evaluated before rules with a higher value. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // ID of the associated WAF (Global) rule (e.g., aws_waf_rule). WAF (Regional) rules cannot be used. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/waf/v1beta1.Rule - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - ruleId?: null | string @go(RuleID,*string) - - // Reference to a Rule in waf to populate ruleId. - // +kubebuilder:validation:Optional - ruleIdRef?: null | v1.#Reference @go(RuleIDRef,*v1.Reference) - - // Selector for a Rule in waf to populate ruleId. - // +kubebuilder:validation:Optional - ruleIdSelector?: null | v1.#Selector @go(RuleIDSelector,*v1.Selector) - - // The rule type, either REGULAR, as defined by Rule, RATE_BASED, as defined by RateBasedRule, or GROUP, as defined by RuleGroup. The default is REGULAR. If you add a RATE_BASED rule, you need to set type as RATE_BASED. If you add a GROUP rule, you need to set type as GROUP. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#WebACLInitParameters: { - // Configuration block with action that you want AWS WAF to take when a request doesn't match the criteria in any of the rules that are associated with the web ACL. Detailed below. - defaultAction?: [...#DefaultActionInitParameters] @go(DefaultAction,[]DefaultActionInitParameters) - - // Configuration block to enable WAF logging. Detailed below. - loggingConfiguration?: [...#LoggingConfigurationInitParameters] @go(LoggingConfiguration,[]LoggingConfigurationInitParameters) - - // The name or description for the Amazon CloudWatch metric of this web ACL. - metricName?: null | string @go(MetricName,*string) - - // The name or description of the web ACL. - name?: null | string @go(Name,*string) - - // Configuration blocks containing rules to associate with the web ACL and the settings for each rule. Detailed below. - rules?: [...#RulesInitParameters] @go(Rules,[]RulesInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#WebACLObservation: { - // The ARN of the WAF WebACL. - arn?: null | string @go(Arn,*string) - - // Configuration block with action that you want AWS WAF to take when a request doesn't match the criteria in any of the rules that are associated with the web ACL. Detailed below. - defaultAction?: [...#DefaultActionObservation] @go(DefaultAction,[]DefaultActionObservation) - - // The ID of the WAF WebACL. - id?: null | string @go(ID,*string) - - // Configuration block to enable WAF logging. Detailed below. - loggingConfiguration?: [...#LoggingConfigurationObservation] @go(LoggingConfiguration,[]LoggingConfigurationObservation) - - // The name or description for the Amazon CloudWatch metric of this web ACL. - metricName?: null | string @go(MetricName,*string) - - // The name or description of the web ACL. - name?: null | string @go(Name,*string) - - // Configuration blocks containing rules to associate with the web ACL and the settings for each rule. Detailed below. - rules?: [...#RulesObservation] @go(Rules,[]RulesObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#WebACLParameters: { - // Configuration block with action that you want AWS WAF to take when a request doesn't match the criteria in any of the rules that are associated with the web ACL. Detailed below. - // +kubebuilder:validation:Optional - defaultAction?: [...#DefaultActionParameters] @go(DefaultAction,[]DefaultActionParameters) - - // Configuration block to enable WAF logging. Detailed below. - // +kubebuilder:validation:Optional - loggingConfiguration?: [...#LoggingConfigurationParameters] @go(LoggingConfiguration,[]LoggingConfigurationParameters) - - // The name or description for the Amazon CloudWatch metric of this web ACL. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // The name or description of the web ACL. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Configuration blocks containing rules to associate with the web ACL and the settings for each rule. Detailed below. - // +kubebuilder:validation:Optional - rules?: [...#RulesParameters] @go(Rules,[]RulesParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// WebACLSpec defines the desired state of WebACL -#WebACLSpec: { - v1.#ResourceSpec - forProvider: #WebACLParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WebACLInitParameters @go(InitProvider) -} - -// WebACLStatus defines the observed state of WebACL. -#WebACLStatus: { - v1.#ResourceStatus - atProvider?: #WebACLObservation @go(AtProvider) -} - -// WebACL is the Schema for the WebACLs API. Provides a AWS WAF web access control group (ACL) resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#WebACL: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.defaultAction) || (has(self.initProvider) && has(self.initProvider.defaultAction))",message="spec.forProvider.defaultAction is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.metricName) || (has(self.initProvider) && has(self.initProvider.metricName))",message="spec.forProvider.metricName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #WebACLSpec @go(Spec) - status?: #WebACLStatus @go(Status) -} - -// WebACLList contains a list of WebACLs -#WebACLList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#WebACL] @go(Items,[]WebACL) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_xssmatchset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_xssmatchset_types_go_gen.cue deleted file mode 100644 index 77f6d93..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/waf/v1beta1/zz_xssmatchset_types_go_gen.cue +++ /dev/null @@ -1,170 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/waf/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#XSSMatchSetInitParameters: { - // The name or description of the SizeConstraintSet. - name?: null | string @go(Name,*string) - - // The parts of web requests that you want to inspect for cross-site scripting attacks. - xssMatchTuples?: [...#XSSMatchTuplesInitParameters] @go(XSSMatchTuples,[]XSSMatchTuplesInitParameters) -} - -#XSSMatchSetObservation: { - // Amazon Resource Name (ARN) - arn?: null | string @go(Arn,*string) - - // The ID of the WAF XssMatchSet. - id?: null | string @go(ID,*string) - - // The name or description of the SizeConstraintSet. - name?: null | string @go(Name,*string) - - // The parts of web requests that you want to inspect for cross-site scripting attacks. - xssMatchTuples?: [...#XSSMatchTuplesObservation] @go(XSSMatchTuples,[]XSSMatchTuplesObservation) -} - -#XSSMatchSetParameters: { - // The name or description of the SizeConstraintSet. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The parts of web requests that you want to inspect for cross-site scripting attacks. - // +kubebuilder:validation:Optional - xssMatchTuples?: [...#XSSMatchTuplesParameters] @go(XSSMatchTuples,[]XSSMatchTuplesParameters) -} - -#XSSMatchTuplesFieldToMatchInitParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#XSSMatchTuplesFieldToMatchObservation: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#XSSMatchTuplesFieldToMatchParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#XSSMatchTuplesInitParameters: { - // Specifies where in a web request to look for cross-site scripting attacks. - fieldToMatch?: [...#XSSMatchTuplesFieldToMatchInitParameters] @go(FieldToMatch,[]XSSMatchTuplesFieldToMatchInitParameters) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on target_string before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#XSSMatchTuplesObservation: { - // Specifies where in a web request to look for cross-site scripting attacks. - fieldToMatch?: [...#XSSMatchTuplesFieldToMatchObservation] @go(FieldToMatch,[]XSSMatchTuplesFieldToMatchObservation) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on target_string before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#XSSMatchTuplesParameters: { - // Specifies where in a web request to look for cross-site scripting attacks. - // +kubebuilder:validation:Optional - fieldToMatch: [...#XSSMatchTuplesFieldToMatchParameters] @go(FieldToMatch,[]XSSMatchTuplesFieldToMatchParameters) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on target_string before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - textTransformation?: null | string @go(TextTransformation,*string) -} - -// XSSMatchSetSpec defines the desired state of XSSMatchSet -#XSSMatchSetSpec: { - v1.#ResourceSpec - forProvider: #XSSMatchSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #XSSMatchSetInitParameters @go(InitProvider) -} - -// XSSMatchSetStatus defines the observed state of XSSMatchSet. -#XSSMatchSetStatus: { - v1.#ResourceStatus - atProvider?: #XSSMatchSetObservation @go(AtProvider) -} - -// XSSMatchSet is the Schema for the XSSMatchSets API. Provides a AWS WAF XssMatchSet resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#XSSMatchSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #XSSMatchSetSpec @go(Spec) - status?: #XSSMatchSetStatus @go(Status) -} - -// XSSMatchSetList contains a list of XSSMatchSets -#XSSMatchSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#XSSMatchSet] @go(Items,[]XSSMatchSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_bytematchset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_bytematchset_types_go_gen.cue deleted file mode 100644 index bc514f9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_bytematchset_types_go_gen.cue +++ /dev/null @@ -1,163 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafregional/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ByteMatchSetInitParameters: { - // Settings for the ByteMatchSet, such as the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests. ByteMatchTuple documented below. - byteMatchTuples?: [...#ByteMatchTuplesInitParameters] @go(ByteMatchTuples,[]ByteMatchTuplesInitParameters) - - // The name or description of the ByteMatchSet. - name?: null | string @go(Name,*string) -} - -#ByteMatchSetObservation: { - // Settings for the ByteMatchSet, such as the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests. ByteMatchTuple documented below. - byteMatchTuples?: [...#ByteMatchTuplesObservation] @go(ByteMatchTuples,[]ByteMatchTuplesObservation) - - // The ID of the WAF ByteMatchSet. - id?: null | string @go(ID,*string) - - // The name or description of the ByteMatchSet. - name?: null | string @go(Name,*string) -} - -#ByteMatchSetParameters: { - // Settings for the ByteMatchSet, such as the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests. ByteMatchTuple documented below. - // +kubebuilder:validation:Optional - byteMatchTuples?: [...#ByteMatchTuplesParameters] @go(ByteMatchTuples,[]ByteMatchTuplesParameters) - - // The name or description of the ByteMatchSet. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#ByteMatchTuplesInitParameters: { - // Settings for the ByteMatchTuple. FieldToMatch documented below. - fieldToMatch?: [...#FieldToMatchInitParameters] @go(FieldToMatch,[]FieldToMatchInitParameters) - - // Within the portion of a web request that you want to search. - positionalConstraint?: null | string @go(PositionalConstraint,*string) - - // The value that you want AWS WAF to search for. The maximum length of the value is 50 bytes. - targetString?: null | string @go(TargetString,*string) - - // The formatting way for web request. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#ByteMatchTuplesObservation: { - // Settings for the ByteMatchTuple. FieldToMatch documented below. - fieldToMatch?: [...#FieldToMatchObservation] @go(FieldToMatch,[]FieldToMatchObservation) - - // Within the portion of a web request that you want to search. - positionalConstraint?: null | string @go(PositionalConstraint,*string) - - // The value that you want AWS WAF to search for. The maximum length of the value is 50 bytes. - targetString?: null | string @go(TargetString,*string) - - // The formatting way for web request. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#ByteMatchTuplesParameters: { - // Settings for the ByteMatchTuple. FieldToMatch documented below. - // +kubebuilder:validation:Optional - fieldToMatch: [...#FieldToMatchParameters] @go(FieldToMatch,[]FieldToMatchParameters) - - // Within the portion of a web request that you want to search. - // +kubebuilder:validation:Optional - positionalConstraint?: null | string @go(PositionalConstraint,*string) - - // The value that you want AWS WAF to search for. The maximum length of the value is 50 bytes. - // +kubebuilder:validation:Optional - targetString?: null | string @go(TargetString,*string) - - // The formatting way for web request. - // +kubebuilder:validation:Optional - textTransformation?: null | string @go(TextTransformation,*string) -} - -#FieldToMatchInitParameters: { - // When the value of Type is HEADER, enter the name of the header that you want AWS WAF to search, for example, User-Agent or Referer. If the value of Type is any other value, omit Data. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - type?: null | string @go(Type,*string) -} - -#FieldToMatchObservation: { - // When the value of Type is HEADER, enter the name of the header that you want AWS WAF to search, for example, User-Agent or Referer. If the value of Type is any other value, omit Data. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - type?: null | string @go(Type,*string) -} - -#FieldToMatchParameters: { - // When the value of Type is HEADER, enter the name of the header that you want AWS WAF to search, for example, User-Agent or Referer. If the value of Type is any other value, omit Data. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// ByteMatchSetSpec defines the desired state of ByteMatchSet -#ByteMatchSetSpec: { - v1.#ResourceSpec - forProvider: #ByteMatchSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #ByteMatchSetInitParameters @go(InitProvider) -} - -// ByteMatchSetStatus defines the observed state of ByteMatchSet. -#ByteMatchSetStatus: { - v1.#ResourceStatus - atProvider?: #ByteMatchSetObservation @go(AtProvider) -} - -// ByteMatchSet is the Schema for the ByteMatchSets API. Provides a AWS WAF Regional ByteMatchSet resource for use with ALB. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#ByteMatchSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #ByteMatchSetSpec @go(Spec) - status?: #ByteMatchSetStatus @go(Status) -} - -// ByteMatchSetList contains a list of ByteMatchSets -#ByteMatchSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#ByteMatchSet] @go(Items,[]ByteMatchSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_geomatchset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_geomatchset_types_go_gen.cue deleted file mode 100644 index 69e2279..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_geomatchset_types_go_gen.cue +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafregional/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GeoMatchConstraintInitParameters: { - // The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value. - type?: null | string @go(Type,*string) - - // The country that you want AWS WAF to search for. - // This is the two-letter country code, e.g., US, CA, RU, CN, etc. - // See docs for all supported values. - value?: null | string @go(Value,*string) -} - -#GeoMatchConstraintObservation: { - // The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value. - type?: null | string @go(Type,*string) - - // The country that you want AWS WAF to search for. - // This is the two-letter country code, e.g., US, CA, RU, CN, etc. - // See docs for all supported values. - value?: null | string @go(Value,*string) -} - -#GeoMatchConstraintParameters: { - // The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The country that you want AWS WAF to search for. - // This is the two-letter country code, e.g., US, CA, RU, CN, etc. - // See docs for all supported values. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#GeoMatchSetInitParameters: { - // The Geo Match Constraint objects which contain the country that you want AWS WAF to search for. - geoMatchConstraint?: [...#GeoMatchConstraintInitParameters] @go(GeoMatchConstraint,[]GeoMatchConstraintInitParameters) - - // The name or description of the Geo Match Set. - name?: null | string @go(Name,*string) -} - -#GeoMatchSetObservation: { - // The Geo Match Constraint objects which contain the country that you want AWS WAF to search for. - geoMatchConstraint?: [...#GeoMatchConstraintObservation] @go(GeoMatchConstraint,[]GeoMatchConstraintObservation) - - // The ID of the WAF Regional Geo Match Set. - id?: null | string @go(ID,*string) - - // The name or description of the Geo Match Set. - name?: null | string @go(Name,*string) -} - -#GeoMatchSetParameters: { - // The Geo Match Constraint objects which contain the country that you want AWS WAF to search for. - // +kubebuilder:validation:Optional - geoMatchConstraint?: [...#GeoMatchConstraintParameters] @go(GeoMatchConstraint,[]GeoMatchConstraintParameters) - - // The name or description of the Geo Match Set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// GeoMatchSetSpec defines the desired state of GeoMatchSet -#GeoMatchSetSpec: { - v1.#ResourceSpec - forProvider: #GeoMatchSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GeoMatchSetInitParameters @go(InitProvider) -} - -// GeoMatchSetStatus defines the observed state of GeoMatchSet. -#GeoMatchSetStatus: { - v1.#ResourceStatus - atProvider?: #GeoMatchSetObservation @go(AtProvider) -} - -// GeoMatchSet is the Schema for the GeoMatchSets API. Provides a AWS WAF Regional Geo Match Set resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#GeoMatchSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #GeoMatchSetSpec @go(Spec) - status?: #GeoMatchSetStatus @go(Status) -} - -// GeoMatchSetList contains a list of GeoMatchSets -#GeoMatchSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#GeoMatchSet] @go(Items,[]GeoMatchSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 29856b7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafregional/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=wafregional.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "wafregional.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_ipset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_ipset_types_go_gen.cue deleted file mode 100644 index 87fd43c..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_ipset_types_go_gen.cue +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafregional/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IPSetDescriptorInitParameters: { - // The string like IPV4 or IPV6. - type?: null | string @go(Type,*string) - - // The CIDR notation. - value?: null | string @go(Value,*string) -} - -#IPSetDescriptorObservation: { - // The string like IPV4 or IPV6. - type?: null | string @go(Type,*string) - - // The CIDR notation. - value?: null | string @go(Value,*string) -} - -#IPSetDescriptorParameters: { - // The string like IPV4 or IPV6. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) - - // The CIDR notation. - // +kubebuilder:validation:Optional - value?: null | string @go(Value,*string) -} - -#IPSetInitParameters: { - // One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) from which web requests originate. - ipSetDescriptor?: [...#IPSetDescriptorInitParameters] @go(IPSetDescriptor,[]IPSetDescriptorInitParameters) - - // The name or description of the IPSet. - name?: null | string @go(Name,*string) -} - -#IPSetObservation: { - // The ARN of the WAF IPSet. - arn?: null | string @go(Arn,*string) - - // The ID of the WAF IPSet. - id?: null | string @go(ID,*string) - - // One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) from which web requests originate. - ipSetDescriptor?: [...#IPSetDescriptorObservation] @go(IPSetDescriptor,[]IPSetDescriptorObservation) - - // The name or description of the IPSet. - name?: null | string @go(Name,*string) -} - -#IPSetParameters: { - // One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) from which web requests originate. - // +kubebuilder:validation:Optional - ipSetDescriptor?: [...#IPSetDescriptorParameters] @go(IPSetDescriptor,[]IPSetDescriptorParameters) - - // The name or description of the IPSet. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// IPSetSpec defines the desired state of IPSet -#IPSetSpec: { - v1.#ResourceSpec - forProvider: #IPSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IPSetInitParameters @go(InitProvider) -} - -// IPSetStatus defines the observed state of IPSet. -#IPSetStatus: { - v1.#ResourceStatus - atProvider?: #IPSetObservation @go(AtProvider) -} - -// IPSet is the Schema for the IPSets API. Provides a AWS WAF Regional IPSet resource for use with ALB. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#IPSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #IPSetSpec @go(Spec) - status?: #IPSetStatus @go(Status) -} - -// IPSetList contains a list of IPSets -#IPSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#IPSet] @go(Items,[]IPSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_ratebasedrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_ratebasedrule_types_go_gen.cue deleted file mode 100644 index f822cde..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_ratebasedrule_types_go_gen.cue +++ /dev/null @@ -1,192 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafregional/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#PredicateInitParameters: { - // Set this to false if you want to allow, block, or count requests - // based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet. - // For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address. - // If set to true, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44. - negated?: null | bool @go(Negated,*bool) - - // The type of predicate in a rule. Valid values: ByteMatch, GeoMatch, IPMatch, RegexMatch, SizeConstraint, SqlInjectionMatch, or XssMatch. - type?: null | string @go(Type,*string) -} - -#PredicateObservation: { - // A unique identifier for a predicate in the rule, such as Byte Match Set ID or IPSet ID. - dataId?: null | string @go(DataID,*string) - - // Set this to false if you want to allow, block, or count requests - // based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet. - // For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address. - // If set to true, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44. - negated?: null | bool @go(Negated,*bool) - - // The type of predicate in a rule. Valid values: ByteMatch, GeoMatch, IPMatch, RegexMatch, SizeConstraint, SqlInjectionMatch, or XssMatch. - type?: null | string @go(Type,*string) -} - -#PredicateParameters: { - // A unique identifier for a predicate in the rule, such as Byte Match Set ID or IPSet ID. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/wafregional/v1beta1.IPSet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dataId?: null | string @go(DataID,*string) - - // Reference to a IPSet in wafregional to populate dataId. - // +kubebuilder:validation:Optional - dataIdRef?: null | v1.#Reference @go(DataIDRef,*v1.Reference) - - // Selector for a IPSet in wafregional to populate dataId. - // +kubebuilder:validation:Optional - dataIdSelector?: null | v1.#Selector @go(DataIDSelector,*v1.Selector) - - // Set this to false if you want to allow, block, or count requests - // based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet. - // For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address. - // If set to true, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44. - // +kubebuilder:validation:Optional - negated?: null | bool @go(Negated,*bool) - - // The type of predicate in a rule. Valid values: ByteMatch, GeoMatch, IPMatch, RegexMatch, SizeConstraint, SqlInjectionMatch, or XssMatch. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RateBasedRuleInitParameters: { - // The name or description for the Amazon CloudWatch metric of this rule. - metricName?: null | string @go(MetricName,*string) - - // The name or description of the rule. - name?: null | string @go(Name,*string) - - // The objects to include in a rule (documented below). - predicate?: [...#PredicateInitParameters] @go(Predicate,[]PredicateInitParameters) - - // Valid value is IP. - rateKey?: null | string @go(RateKey,*string) - - // The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. Minimum value is 100. - rateLimit?: null | float64 @go(RateLimit,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RateBasedRuleObservation: { - // The ARN of the WAF Regional Rate Based Rule. - arn?: null | string @go(Arn,*string) - - // The ID of the WAF Regional Rate Based Rule. - id?: null | string @go(ID,*string) - - // The name or description for the Amazon CloudWatch metric of this rule. - metricName?: null | string @go(MetricName,*string) - - // The name or description of the rule. - name?: null | string @go(Name,*string) - - // The objects to include in a rule (documented below). - predicate?: [...#PredicateObservation] @go(Predicate,[]PredicateObservation) - - // Valid value is IP. - rateKey?: null | string @go(RateKey,*string) - - // The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. Minimum value is 100. - rateLimit?: null | float64 @go(RateLimit,*float64) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RateBasedRuleParameters: { - // The name or description for the Amazon CloudWatch metric of this rule. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // The name or description of the rule. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The objects to include in a rule (documented below). - // +kubebuilder:validation:Optional - predicate?: [...#PredicateParameters] @go(Predicate,[]PredicateParameters) - - // Valid value is IP. - // +kubebuilder:validation:Optional - rateKey?: null | string @go(RateKey,*string) - - // The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. Minimum value is 100. - // +kubebuilder:validation:Optional - rateLimit?: null | float64 @go(RateLimit,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// RateBasedRuleSpec defines the desired state of RateBasedRule -#RateBasedRuleSpec: { - v1.#ResourceSpec - forProvider: #RateBasedRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RateBasedRuleInitParameters @go(InitProvider) -} - -// RateBasedRuleStatus defines the observed state of RateBasedRule. -#RateBasedRuleStatus: { - v1.#ResourceStatus - atProvider?: #RateBasedRuleObservation @go(AtProvider) -} - -// RateBasedRule is the Schema for the RateBasedRules API. Provides a AWS WAF Regional rate based rule resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RateBasedRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.metricName) || (has(self.initProvider) && has(self.initProvider.metricName))",message="spec.forProvider.metricName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rateKey) || (has(self.initProvider) && has(self.initProvider.rateKey))",message="spec.forProvider.rateKey is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.rateLimit) || (has(self.initProvider) && has(self.initProvider.rateLimit))",message="spec.forProvider.rateLimit is a required parameter" - spec: #RateBasedRuleSpec @go(Spec) - status?: #RateBasedRuleStatus @go(Status) -} - -// RateBasedRuleList contains a list of RateBasedRules -#RateBasedRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RateBasedRule] @go(Items,[]RateBasedRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_regexmatchset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_regexmatchset_types_go_gen.cue deleted file mode 100644 index f54114b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_regexmatchset_types_go_gen.cue +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafregional/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RegexMatchSetInitParameters: { - // The name or description of the Regex Match Set. - name?: null | string @go(Name,*string) - - // The regular expression pattern that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. See below. - regexMatchTuple?: [...#RegexMatchTupleInitParameters] @go(RegexMatchTuple,[]RegexMatchTupleInitParameters) -} - -#RegexMatchSetObservation: { - // The ID of the WAF Regional Regex Match Set. - id?: null | string @go(ID,*string) - - // The name or description of the Regex Match Set. - name?: null | string @go(Name,*string) - - // The regular expression pattern that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. See below. - regexMatchTuple?: [...#RegexMatchTupleObservation] @go(RegexMatchTuple,[]RegexMatchTupleObservation) -} - -#RegexMatchSetParameters: { - // The name or description of the Regex Match Set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The regular expression pattern that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. See below. - // +kubebuilder:validation:Optional - regexMatchTuple?: [...#RegexMatchTupleParameters] @go(RegexMatchTuple,[]RegexMatchTupleParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -#RegexMatchTupleFieldToMatchInitParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#RegexMatchTupleFieldToMatchObservation: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#RegexMatchTupleFieldToMatchParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RegexMatchTupleInitParameters: { - // The part of a web request that you want to search, such as a specified header or a query string. - fieldToMatch?: [...#RegexMatchTupleFieldToMatchInitParameters] @go(FieldToMatch,[]RegexMatchTupleFieldToMatchInitParameters) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#RegexMatchTupleObservation: { - // The part of a web request that you want to search, such as a specified header or a query string. - fieldToMatch?: [...#RegexMatchTupleFieldToMatchObservation] @go(FieldToMatch,[]RegexMatchTupleFieldToMatchObservation) - - // The ID of a Regex Pattern Set. - regexPatternSetId?: null | string @go(RegexPatternSetID,*string) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#RegexMatchTupleParameters: { - // The part of a web request that you want to search, such as a specified header or a query string. - // +kubebuilder:validation:Optional - fieldToMatch: [...#RegexMatchTupleFieldToMatchParameters] @go(FieldToMatch,[]RegexMatchTupleFieldToMatchParameters) - - // The ID of a Regex Pattern Set. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/wafregional/v1beta1.RegexPatternSet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - regexPatternSetId?: null | string @go(RegexPatternSetID,*string) - - // Reference to a RegexPatternSet in wafregional to populate regexPatternSetId. - // +kubebuilder:validation:Optional - regexPatternSetIdRef?: null | v1.#Reference @go(RegexPatternSetIDRef,*v1.Reference) - - // Selector for a RegexPatternSet in wafregional to populate regexPatternSetId. - // +kubebuilder:validation:Optional - regexPatternSetIdSelector?: null | v1.#Selector @go(RegexPatternSetIDSelector,*v1.Selector) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - textTransformation?: null | string @go(TextTransformation,*string) -} - -// RegexMatchSetSpec defines the desired state of RegexMatchSet -#RegexMatchSetSpec: { - v1.#ResourceSpec - forProvider: #RegexMatchSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RegexMatchSetInitParameters @go(InitProvider) -} - -// RegexMatchSetStatus defines the observed state of RegexMatchSet. -#RegexMatchSetStatus: { - v1.#ResourceStatus - atProvider?: #RegexMatchSetObservation @go(AtProvider) -} - -// RegexMatchSet is the Schema for the RegexMatchSets API. Provides a AWS WAF Regional Regex Match Set resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RegexMatchSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #RegexMatchSetSpec @go(Spec) - status?: #RegexMatchSetStatus @go(Status) -} - -// RegexMatchSetList contains a list of RegexMatchSets -#RegexMatchSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RegexMatchSet] @go(Items,[]RegexMatchSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_regexpatternset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_regexpatternset_types_go_gen.cue deleted file mode 100644 index 88be801..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_regexpatternset_types_go_gen.cue +++ /dev/null @@ -1,91 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafregional/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RegexPatternSetInitParameters: { - // The name or description of the Regex Pattern Set. - name?: null | string @go(Name,*string) - - // A list of regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t. - regexPatternStrings?: [...null | string] @go(RegexPatternStrings,[]*string) -} - -#RegexPatternSetObservation: { - // The ID of the WAF Regional Regex Pattern Set. - id?: null | string @go(ID,*string) - - // The name or description of the Regex Pattern Set. - name?: null | string @go(Name,*string) - - // A list of regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t. - regexPatternStrings?: [...null | string] @go(RegexPatternStrings,[]*string) -} - -#RegexPatternSetParameters: { - // The name or description of the Regex Pattern Set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // A list of regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t. - // +kubebuilder:validation:Optional - regexPatternStrings?: [...null | string] @go(RegexPatternStrings,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) -} - -// RegexPatternSetSpec defines the desired state of RegexPatternSet -#RegexPatternSetSpec: { - v1.#ResourceSpec - forProvider: #RegexPatternSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RegexPatternSetInitParameters @go(InitProvider) -} - -// RegexPatternSetStatus defines the observed state of RegexPatternSet. -#RegexPatternSetStatus: { - v1.#ResourceStatus - atProvider?: #RegexPatternSetObservation @go(AtProvider) -} - -// RegexPatternSet is the Schema for the RegexPatternSets API. Provides a AWS WAF Regional Regex Pattern Set resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RegexPatternSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #RegexPatternSetSpec @go(Spec) - status?: #RegexPatternSetStatus @go(Status) -} - -// RegexPatternSetList contains a list of RegexPatternSets -#RegexPatternSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RegexPatternSet] @go(Items,[]RegexPatternSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_rule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_rule_types_go_gen.cue deleted file mode 100644 index 01532c8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_rule_types_go_gen.cue +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafregional/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RuleInitParameters: { - // The name or description for the Amazon CloudWatch metric of this rule. - metricName?: null | string @go(MetricName,*string) - - // The name or description of the rule. - name?: null | string @go(Name,*string) - - // The objects to include in a rule (documented below). - predicate?: [...#RulePredicateInitParameters] @go(Predicate,[]RulePredicateInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RuleObservation: { - // The ARN of the WAF Regional Rule. - arn?: null | string @go(Arn,*string) - - // The ID of the WAF Regional Rule. - id?: null | string @go(ID,*string) - - // The name or description for the Amazon CloudWatch metric of this rule. - metricName?: null | string @go(MetricName,*string) - - // The name or description of the rule. - name?: null | string @go(Name,*string) - - // The objects to include in a rule (documented below). - predicate?: [...#RulePredicateObservation] @go(Predicate,[]RulePredicateObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RuleParameters: { - // The name or description for the Amazon CloudWatch metric of this rule. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // The name or description of the rule. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // The objects to include in a rule (documented below). - // +kubebuilder:validation:Optional - predicate?: [...#RulePredicateParameters] @go(Predicate,[]RulePredicateParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RulePredicateInitParameters: { - // Whether to use the settings or the negated settings that you specified in the objects. - negated?: null | bool @go(Negated,*bool) - - // The type of predicate in a rule. Valid values: ByteMatch, GeoMatch, IPMatch, RegexMatch, SizeConstraint, SqlInjectionMatch, or XssMatch - type?: null | string @go(Type,*string) -} - -#RulePredicateObservation: { - // The unique identifier of a predicate, such as the ID of a ByteMatchSet or IPSet. - dataId?: null | string @go(DataID,*string) - - // Whether to use the settings or the negated settings that you specified in the objects. - negated?: null | bool @go(Negated,*bool) - - // The type of predicate in a rule. Valid values: ByteMatch, GeoMatch, IPMatch, RegexMatch, SizeConstraint, SqlInjectionMatch, or XssMatch - type?: null | string @go(Type,*string) -} - -#RulePredicateParameters: { - // The unique identifier of a predicate, such as the ID of a ByteMatchSet or IPSet. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/wafregional/v1beta1.IPSet - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - dataId?: null | string @go(DataID,*string) - - // Reference to a IPSet in wafregional to populate dataId. - // +kubebuilder:validation:Optional - dataIdRef?: null | v1.#Reference @go(DataIDRef,*v1.Reference) - - // Selector for a IPSet in wafregional to populate dataId. - // +kubebuilder:validation:Optional - dataIdSelector?: null | v1.#Selector @go(DataIDSelector,*v1.Selector) - - // Whether to use the settings or the negated settings that you specified in the objects. - // +kubebuilder:validation:Optional - negated?: null | bool @go(Negated,*bool) - - // The type of predicate in a rule. Valid values: ByteMatch, GeoMatch, IPMatch, RegexMatch, SizeConstraint, SqlInjectionMatch, or XssMatch - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// RuleSpec defines the desired state of Rule -#RuleSpec: { - v1.#ResourceSpec - forProvider: #RuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RuleInitParameters @go(InitProvider) -} - -// RuleStatus defines the observed state of Rule. -#RuleStatus: { - v1.#ResourceStatus - atProvider?: #RuleObservation @go(AtProvider) -} - -// Rule is the Schema for the Rules API. Provides an AWS WAF Regional rule resource for use with ALB. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Rule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.metricName) || (has(self.initProvider) && has(self.initProvider.metricName))",message="spec.forProvider.metricName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #RuleSpec @go(Spec) - status?: #RuleStatus @go(Status) -} - -// RuleList contains a list of Rules -#RuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Rule] @go(Items,[]Rule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_sizeconstraintset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_sizeconstraintset_types_go_gen.cue deleted file mode 100644 index 926f7b9..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_sizeconstraintset_types_go_gen.cue +++ /dev/null @@ -1,201 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafregional/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SizeConstraintSetInitParameters: { - // The name or description of the Size Constraint Set. - name?: null | string @go(Name,*string) - - // Specifies the parts of web requests that you want to inspect the size of. - sizeConstraints?: [...#SizeConstraintsInitParameters] @go(SizeConstraints,[]SizeConstraintsInitParameters) -} - -#SizeConstraintSetObservation: { - arn?: null | string @go(Arn,*string) - - // The ID of the WAF Size Constraint Set. - id?: null | string @go(ID,*string) - - // The name or description of the Size Constraint Set. - name?: null | string @go(Name,*string) - - // Specifies the parts of web requests that you want to inspect the size of. - sizeConstraints?: [...#SizeConstraintsObservation] @go(SizeConstraints,[]SizeConstraintsObservation) -} - -#SizeConstraintSetParameters: { - // The name or description of the Size Constraint Set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies the parts of web requests that you want to inspect the size of. - // +kubebuilder:validation:Optional - sizeConstraints?: [...#SizeConstraintsParameters] @go(SizeConstraints,[]SizeConstraintsParameters) -} - -#SizeConstraintsFieldToMatchInitParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#SizeConstraintsFieldToMatchObservation: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#SizeConstraintsFieldToMatchParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#SizeConstraintsInitParameters: { - // The type of comparison you want to perform. - // e.g., EQ, NE, LT, GT. - // See docs for all supported values. - comparisonOperator?: null | string @go(ComparisonOperator,*string) - - // Specifies where in a web request to look for the size constraint. - fieldToMatch?: [...#SizeConstraintsFieldToMatchInitParameters] @go(FieldToMatch,[]SizeConstraintsFieldToMatchInitParameters) - - // The size in bytes that you want to compare against the size of the specified field_to_match. - // Valid values are between 0 - 21474836480 bytes (0 - 20 GB). - size?: null | float64 @go(Size,*float64) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on field_to_match before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - // Note: if you choose BODY as type, you must choose NONE because CloudFront forwards only the first 8192 bytes for inspection. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#SizeConstraintsObservation: { - // The type of comparison you want to perform. - // e.g., EQ, NE, LT, GT. - // See docs for all supported values. - comparisonOperator?: null | string @go(ComparisonOperator,*string) - - // Specifies where in a web request to look for the size constraint. - fieldToMatch?: [...#SizeConstraintsFieldToMatchObservation] @go(FieldToMatch,[]SizeConstraintsFieldToMatchObservation) - - // The size in bytes that you want to compare against the size of the specified field_to_match. - // Valid values are between 0 - 21474836480 bytes (0 - 20 GB). - size?: null | float64 @go(Size,*float64) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on field_to_match before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - // Note: if you choose BODY as type, you must choose NONE because CloudFront forwards only the first 8192 bytes for inspection. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#SizeConstraintsParameters: { - // The type of comparison you want to perform. - // e.g., EQ, NE, LT, GT. - // See docs for all supported values. - // +kubebuilder:validation:Optional - comparisonOperator?: null | string @go(ComparisonOperator,*string) - - // Specifies where in a web request to look for the size constraint. - // +kubebuilder:validation:Optional - fieldToMatch: [...#SizeConstraintsFieldToMatchParameters] @go(FieldToMatch,[]SizeConstraintsFieldToMatchParameters) - - // The size in bytes that you want to compare against the size of the specified field_to_match. - // Valid values are between 0 - 21474836480 bytes (0 - 20 GB). - // +kubebuilder:validation:Optional - size?: null | float64 @go(Size,*float64) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on field_to_match before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - // Note: if you choose BODY as type, you must choose NONE because CloudFront forwards only the first 8192 bytes for inspection. - // +kubebuilder:validation:Optional - textTransformation?: null | string @go(TextTransformation,*string) -} - -// SizeConstraintSetSpec defines the desired state of SizeConstraintSet -#SizeConstraintSetSpec: { - v1.#ResourceSpec - forProvider: #SizeConstraintSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SizeConstraintSetInitParameters @go(InitProvider) -} - -// SizeConstraintSetStatus defines the observed state of SizeConstraintSet. -#SizeConstraintSetStatus: { - v1.#ResourceStatus - atProvider?: #SizeConstraintSetObservation @go(AtProvider) -} - -// SizeConstraintSet is the Schema for the SizeConstraintSets API. Provides an AWS WAF Regional Size Constraint Set resource for use with ALB. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SizeConstraintSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #SizeConstraintSetSpec @go(Spec) - status?: #SizeConstraintSetStatus @go(Status) -} - -// SizeConstraintSetList contains a list of SizeConstraintSets -#SizeConstraintSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SizeConstraintSet] @go(Items,[]SizeConstraintSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_sqlinjectionmatchset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_sqlinjectionmatchset_types_go_gen.cue deleted file mode 100644 index d549008..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_sqlinjectionmatchset_types_go_gen.cue +++ /dev/null @@ -1,167 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafregional/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SQLInjectionMatchSetInitParameters: { - // The name or description of the SizeConstraintSet. - name?: null | string @go(Name,*string) - - // The parts of web requests that you want AWS WAF to inspect for malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. - sqlInjectionMatchTuple?: [...#SQLInjectionMatchTupleInitParameters] @go(SQLInjectionMatchTuple,[]SQLInjectionMatchTupleInitParameters) -} - -#SQLInjectionMatchSetObservation: { - // The ID of the WAF SqlInjectionMatchSet. - id?: null | string @go(ID,*string) - - // The name or description of the SizeConstraintSet. - name?: null | string @go(Name,*string) - - // The parts of web requests that you want AWS WAF to inspect for malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. - sqlInjectionMatchTuple?: [...#SQLInjectionMatchTupleObservation] @go(SQLInjectionMatchTuple,[]SQLInjectionMatchTupleObservation) -} - -#SQLInjectionMatchSetParameters: { - // The name or description of the SizeConstraintSet. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The parts of web requests that you want AWS WAF to inspect for malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. - // +kubebuilder:validation:Optional - sqlInjectionMatchTuple?: [...#SQLInjectionMatchTupleParameters] @go(SQLInjectionMatchTuple,[]SQLInjectionMatchTupleParameters) -} - -#SQLInjectionMatchTupleFieldToMatchInitParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#SQLInjectionMatchTupleFieldToMatchObservation: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - type?: null | string @go(Type,*string) -} - -#SQLInjectionMatchTupleFieldToMatchParameters: { - // When type is HEADER, enter the name of the header that you want to search, e.g., User-Agent or Referer. - // If type is any other value, omit this field. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified string. - // e.g., HEADER, METHOD or BODY. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#SQLInjectionMatchTupleInitParameters: { - // Specifies where in a web request to look for snippets of malicious SQL code. - fieldToMatch?: [...#SQLInjectionMatchTupleFieldToMatchInitParameters] @go(FieldToMatch,[]SQLInjectionMatchTupleFieldToMatchInitParameters) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on field_to_match before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#SQLInjectionMatchTupleObservation: { - // Specifies where in a web request to look for snippets of malicious SQL code. - fieldToMatch?: [...#SQLInjectionMatchTupleFieldToMatchObservation] @go(FieldToMatch,[]SQLInjectionMatchTupleFieldToMatchObservation) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on field_to_match before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#SQLInjectionMatchTupleParameters: { - // Specifies where in a web request to look for snippets of malicious SQL code. - // +kubebuilder:validation:Optional - fieldToMatch: [...#SQLInjectionMatchTupleFieldToMatchParameters] @go(FieldToMatch,[]SQLInjectionMatchTupleFieldToMatchParameters) - - // Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. - // If you specify a transformation, AWS WAF performs the transformation on field_to_match before inspecting a request for a match. - // e.g., CMD_LINE, HTML_ENTITY_DECODE or NONE. - // See docs - // for all supported values. - // +kubebuilder:validation:Optional - textTransformation?: null | string @go(TextTransformation,*string) -} - -// SQLInjectionMatchSetSpec defines the desired state of SQLInjectionMatchSet -#SQLInjectionMatchSetSpec: { - v1.#ResourceSpec - forProvider: #SQLInjectionMatchSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SQLInjectionMatchSetInitParameters @go(InitProvider) -} - -// SQLInjectionMatchSetStatus defines the observed state of SQLInjectionMatchSet. -#SQLInjectionMatchSetStatus: { - v1.#ResourceStatus - atProvider?: #SQLInjectionMatchSetObservation @go(AtProvider) -} - -// SQLInjectionMatchSet is the Schema for the SQLInjectionMatchSets API. Provides a AWS WAF Regional SqlInjectionMatchSet resource for use with ALB. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SQLInjectionMatchSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #SQLInjectionMatchSetSpec @go(Spec) - status?: #SQLInjectionMatchSetStatus @go(Status) -} - -// SQLInjectionMatchSetList contains a list of SQLInjectionMatchSets -#SQLInjectionMatchSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SQLInjectionMatchSet] @go(Items,[]SQLInjectionMatchSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_webacl_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_webacl_types_go_gen.cue deleted file mode 100644 index e032de6..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_webacl_types_go_gen.cue +++ /dev/null @@ -1,328 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafregional/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#ActionInitParameters: { - // Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for action are ALLOW, BLOCK or COUNT. Valid values for override_action are COUNT and NONE. - type?: null | string @go(Type,*string) -} - -#ActionObservation: { - // Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for action are ALLOW, BLOCK or COUNT. Valid values for override_action are COUNT and NONE. - type?: null | string @go(Type,*string) -} - -#ActionParameters: { - // Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for action are ALLOW, BLOCK or COUNT. Valid values for override_action are COUNT and NONE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#DefaultActionInitParameters: { - // Specifies how you want AWS WAF Regional to respond to requests that match the settings in a ruleE.g., ALLOW, BLOCK or COUNT - type?: null | string @go(Type,*string) -} - -#DefaultActionObservation: { - // Specifies how you want AWS WAF Regional to respond to requests that match the settings in a ruleE.g., ALLOW, BLOCK or COUNT - type?: null | string @go(Type,*string) -} - -#DefaultActionParameters: { - // Specifies how you want AWS WAF Regional to respond to requests that match the settings in a ruleE.g., ALLOW, BLOCK or COUNT - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#LoggingConfigurationInitParameters: { - // Configuration block containing parts of the request that you want redacted from the logs. Detailed below. - redactedFields?: [...#RedactedFieldsInitParameters] @go(RedactedFields,[]RedactedFieldsInitParameters) -} - -#LoggingConfigurationObservation: { - // Amazon Resource Name (ARN) of Kinesis Firehose Delivery Stream - logDestination?: null | string @go(LogDestination,*string) - - // Configuration block containing parts of the request that you want redacted from the logs. Detailed below. - redactedFields?: [...#RedactedFieldsObservation] @go(RedactedFields,[]RedactedFieldsObservation) -} - -#LoggingConfigurationParameters: { - // Amazon Resource Name (ARN) of Kinesis Firehose Delivery Stream - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/firehose/v1beta1.DeliveryStream - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",false) - // +kubebuilder:validation:Optional - logDestination?: null | string @go(LogDestination,*string) - - // Reference to a DeliveryStream in firehose to populate logDestination. - // +kubebuilder:validation:Optional - logDestinationRef?: null | v1.#Reference @go(LogDestinationRef,*v1.Reference) - - // Selector for a DeliveryStream in firehose to populate logDestination. - // +kubebuilder:validation:Optional - logDestinationSelector?: null | v1.#Selector @go(LogDestinationSelector,*v1.Selector) - - // Configuration block containing parts of the request that you want redacted from the logs. Detailed below. - // +kubebuilder:validation:Optional - redactedFields?: [...#RedactedFieldsParameters] @go(RedactedFields,[]RedactedFieldsParameters) -} - -#OverrideActionInitParameters: { - // Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for action are ALLOW, BLOCK or COUNT. Valid values for override_action are COUNT and NONE. - type?: null | string @go(Type,*string) -} - -#OverrideActionObservation: { - // Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for action are ALLOW, BLOCK or COUNT. Valid values for override_action are COUNT and NONE. - type?: null | string @go(Type,*string) -} - -#OverrideActionParameters: { - // Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for action are ALLOW, BLOCK or COUNT. Valid values for override_action are COUNT and NONE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RedactedFieldsFieldToMatchInitParameters: { - // When the value of type is HEADER, enter the name of the header that you want the WAF to search, for example, User-Agent or Referer. If the value of type is any other value, omit data. - data?: null | string @go(Data,*string) - - // Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for action are ALLOW, BLOCK or COUNT. Valid values for override_action are COUNT and NONE. - type?: null | string @go(Type,*string) -} - -#RedactedFieldsFieldToMatchObservation: { - // When the value of type is HEADER, enter the name of the header that you want the WAF to search, for example, User-Agent or Referer. If the value of type is any other value, omit data. - data?: null | string @go(Data,*string) - - // Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for action are ALLOW, BLOCK or COUNT. Valid values for override_action are COUNT and NONE. - type?: null | string @go(Type,*string) -} - -#RedactedFieldsFieldToMatchParameters: { - // When the value of type is HEADER, enter the name of the header that you want the WAF to search, for example, User-Agent or Referer. If the value of type is any other value, omit data. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for action are ALLOW, BLOCK or COUNT. Valid values for override_action are COUNT and NONE. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#RedactedFieldsInitParameters: { - // Set of configuration blocks for fields to redact. Detailed below. - fieldToMatch?: [...#RedactedFieldsFieldToMatchInitParameters] @go(FieldToMatch,[]RedactedFieldsFieldToMatchInitParameters) -} - -#RedactedFieldsObservation: { - // Set of configuration blocks for fields to redact. Detailed below. - fieldToMatch?: [...#RedactedFieldsFieldToMatchObservation] @go(FieldToMatch,[]RedactedFieldsFieldToMatchObservation) -} - -#RedactedFieldsParameters: { - // Set of configuration blocks for fields to redact. Detailed below. - // +kubebuilder:validation:Optional - fieldToMatch: [...#RedactedFieldsFieldToMatchParameters] @go(FieldToMatch,[]RedactedFieldsFieldToMatchParameters) -} - -#WebACLInitParameters: { - // The action that you want AWS WAF Regional to take when a request doesn't match the criteria in any of the rules that are associated with the web ACL. - defaultAction?: [...#DefaultActionInitParameters] @go(DefaultAction,[]DefaultActionInitParameters) - - // Configuration block to enable WAF logging. Detailed below. - loggingConfiguration?: [...#LoggingConfigurationInitParameters] @go(LoggingConfiguration,[]LoggingConfigurationInitParameters) - - // The name or description for the Amazon CloudWatch metric of this web ACL. - metricName?: null | string @go(MetricName,*string) - - // The name or description of the web ACL. - name?: null | string @go(Name,*string) - - // Set of configuration blocks containing rules for the web ACL. Detailed below. - rule?: [...#WebACLRuleInitParameters] @go(Rule,[]WebACLRuleInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#WebACLObservation: { - // Amazon Resource Name (ARN) of the WAF Regional WebACL. - arn?: null | string @go(Arn,*string) - - // The action that you want AWS WAF Regional to take when a request doesn't match the criteria in any of the rules that are associated with the web ACL. - defaultAction?: [...#DefaultActionObservation] @go(DefaultAction,[]DefaultActionObservation) - - // The ID of the WAF Regional WebACL. - id?: null | string @go(ID,*string) - - // Configuration block to enable WAF logging. Detailed below. - loggingConfiguration?: [...#LoggingConfigurationObservation] @go(LoggingConfiguration,[]LoggingConfigurationObservation) - - // The name or description for the Amazon CloudWatch metric of this web ACL. - metricName?: null | string @go(MetricName,*string) - - // The name or description of the web ACL. - name?: null | string @go(Name,*string) - - // Set of configuration blocks containing rules for the web ACL. Detailed below. - rule?: [...#WebACLRuleObservation] @go(Rule,[]WebACLRuleObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#WebACLParameters: { - // The action that you want AWS WAF Regional to take when a request doesn't match the criteria in any of the rules that are associated with the web ACL. - // +kubebuilder:validation:Optional - defaultAction?: [...#DefaultActionParameters] @go(DefaultAction,[]DefaultActionParameters) - - // Configuration block to enable WAF logging. Detailed below. - // +kubebuilder:validation:Optional - loggingConfiguration?: [...#LoggingConfigurationParameters] @go(LoggingConfiguration,[]LoggingConfigurationParameters) - - // The name or description for the Amazon CloudWatch metric of this web ACL. - // +kubebuilder:validation:Optional - metricName?: null | string @go(MetricName,*string) - - // The name or description of the web ACL. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Set of configuration blocks containing rules for the web ACL. Detailed below. - // +kubebuilder:validation:Optional - rule?: [...#WebACLRuleParameters] @go(Rule,[]WebACLRuleParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#WebACLRuleInitParameters: { - // Configuration block of the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if type is GROUP. Detailed below. - action?: [...#ActionInitParameters] @go(Action,[]ActionInitParameters) - - // Configuration block of the override the action that a group requests CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Only used if type is GROUP. Detailed below. - overrideAction?: [...#OverrideActionInitParameters] @go(OverrideAction,[]OverrideActionInitParameters) - - // Specifies the order in which the rules in a WebACL are evaluated. - // Rules with a lower value are evaluated before rules with a higher value. - priority?: null | float64 @go(Priority,*float64) - - // The rule type, either REGULAR, as defined by Rule, RATE_BASED, as defined by RateBasedRule, or GROUP, as defined by RuleGroup. The default is REGULAR. If you add a RATE_BASED rule, you need to set type as RATE_BASED. If you add a GROUP rule, you need to set type as GROUP. - type?: null | string @go(Type,*string) -} - -#WebACLRuleObservation: { - // Configuration block of the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if type is GROUP. Detailed below. - action?: [...#ActionObservation] @go(Action,[]ActionObservation) - - // Configuration block of the override the action that a group requests CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Only used if type is GROUP. Detailed below. - overrideAction?: [...#OverrideActionObservation] @go(OverrideAction,[]OverrideActionObservation) - - // Specifies the order in which the rules in a WebACL are evaluated. - // Rules with a lower value are evaluated before rules with a higher value. - priority?: null | float64 @go(Priority,*float64) - - // ID of the associated WAF (Regional) rule (e.g., aws_wafregional_rule). WAF (Global) rules cannot be used. - ruleId?: null | string @go(RuleID,*string) - - // The rule type, either REGULAR, as defined by Rule, RATE_BASED, as defined by RateBasedRule, or GROUP, as defined by RuleGroup. The default is REGULAR. If you add a RATE_BASED rule, you need to set type as RATE_BASED. If you add a GROUP rule, you need to set type as GROUP. - type?: null | string @go(Type,*string) -} - -#WebACLRuleParameters: { - // Configuration block of the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if type is GROUP. Detailed below. - // +kubebuilder:validation:Optional - action?: [...#ActionParameters] @go(Action,[]ActionParameters) - - // Configuration block of the override the action that a group requests CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Only used if type is GROUP. Detailed below. - // +kubebuilder:validation:Optional - overrideAction?: [...#OverrideActionParameters] @go(OverrideAction,[]OverrideActionParameters) - - // Specifies the order in which the rules in a WebACL are evaluated. - // Rules with a lower value are evaluated before rules with a higher value. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // ID of the associated WAF (Regional) rule (e.g., aws_wafregional_rule). WAF (Global) rules cannot be used. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/wafregional/v1beta1.Rule - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - ruleId?: null | string @go(RuleID,*string) - - // Reference to a Rule in wafregional to populate ruleId. - // +kubebuilder:validation:Optional - ruleIdRef?: null | v1.#Reference @go(RuleIDRef,*v1.Reference) - - // Selector for a Rule in wafregional to populate ruleId. - // +kubebuilder:validation:Optional - ruleIdSelector?: null | v1.#Selector @go(RuleIDSelector,*v1.Selector) - - // The rule type, either REGULAR, as defined by Rule, RATE_BASED, as defined by RateBasedRule, or GROUP, as defined by RuleGroup. The default is REGULAR. If you add a RATE_BASED rule, you need to set type as RATE_BASED. If you add a GROUP rule, you need to set type as GROUP. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// WebACLSpec defines the desired state of WebACL -#WebACLSpec: { - v1.#ResourceSpec - forProvider: #WebACLParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #WebACLInitParameters @go(InitProvider) -} - -// WebACLStatus defines the observed state of WebACL. -#WebACLStatus: { - v1.#ResourceStatus - atProvider?: #WebACLObservation @go(AtProvider) -} - -// WebACL is the Schema for the WebACLs API. Provides a AWS WAF Regional web access control group (ACL) resource for use with ALB. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#WebACL: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.defaultAction) || (has(self.initProvider) && has(self.initProvider.defaultAction))",message="spec.forProvider.defaultAction is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.metricName) || (has(self.initProvider) && has(self.initProvider.metricName))",message="spec.forProvider.metricName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #WebACLSpec @go(Spec) - status?: #WebACLStatus @go(Status) -} - -// WebACLList contains a list of WebACLs -#WebACLList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#WebACL] @go(Items,[]WebACL) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_xssmatchset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_xssmatchset_types_go_gen.cue deleted file mode 100644 index 4286ff8..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafregional/v1beta1/zz_xssmatchset_types_go_gen.cue +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafregional/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#XSSMatchSetInitParameters: { - // The name of the set - name?: null | string @go(Name,*string) - - // The parts of web requests that you want to inspect for cross-site scripting attacks. - xssMatchTuple?: [...#XSSMatchTupleInitParameters] @go(XSSMatchTuple,[]XSSMatchTupleInitParameters) -} - -#XSSMatchSetObservation: { - // The ID of the Regional WAF XSS Match Set. - id?: null | string @go(ID,*string) - - // The name of the set - name?: null | string @go(Name,*string) - - // The parts of web requests that you want to inspect for cross-site scripting attacks. - xssMatchTuple?: [...#XSSMatchTupleObservation] @go(XSSMatchTuple,[]XSSMatchTupleObservation) -} - -#XSSMatchSetParameters: { - // The name of the set - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The parts of web requests that you want to inspect for cross-site scripting attacks. - // +kubebuilder:validation:Optional - xssMatchTuple?: [...#XSSMatchTupleParameters] @go(XSSMatchTuple,[]XSSMatchTupleParameters) -} - -#XSSMatchTupleFieldToMatchInitParameters: { - // When the value of type is HEADER, enter the name of the header that you want the WAF to search, for example, User-Agent or Referer. If the value of type is any other value, omit data. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified stringE.g., HEADER or METHOD - type?: null | string @go(Type,*string) -} - -#XSSMatchTupleFieldToMatchObservation: { - // When the value of type is HEADER, enter the name of the header that you want the WAF to search, for example, User-Agent or Referer. If the value of type is any other value, omit data. - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified stringE.g., HEADER or METHOD - type?: null | string @go(Type,*string) -} - -#XSSMatchTupleFieldToMatchParameters: { - // When the value of type is HEADER, enter the name of the header that you want the WAF to search, for example, User-Agent or Referer. If the value of type is any other value, omit data. - // +kubebuilder:validation:Optional - data?: null | string @go(Data,*string) - - // The part of the web request that you want AWS WAF to search for a specified stringE.g., HEADER or METHOD - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -#XSSMatchTupleInitParameters: { - // Specifies where in a web request to look for cross-site scripting attacks. - fieldToMatch?: [...#XSSMatchTupleFieldToMatchInitParameters] @go(FieldToMatch,[]XSSMatchTupleFieldToMatchInitParameters) - - // Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#XSSMatchTupleObservation: { - // Specifies where in a web request to look for cross-site scripting attacks. - fieldToMatch?: [...#XSSMatchTupleFieldToMatchObservation] @go(FieldToMatch,[]XSSMatchTupleFieldToMatchObservation) - - // Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks. - textTransformation?: null | string @go(TextTransformation,*string) -} - -#XSSMatchTupleParameters: { - // Specifies where in a web request to look for cross-site scripting attacks. - // +kubebuilder:validation:Optional - fieldToMatch: [...#XSSMatchTupleFieldToMatchParameters] @go(FieldToMatch,[]XSSMatchTupleFieldToMatchParameters) - - // Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks. - // +kubebuilder:validation:Optional - textTransformation?: null | string @go(TextTransformation,*string) -} - -// XSSMatchSetSpec defines the desired state of XSSMatchSet -#XSSMatchSetSpec: { - v1.#ResourceSpec - forProvider: #XSSMatchSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #XSSMatchSetInitParameters @go(InitProvider) -} - -// XSSMatchSetStatus defines the observed state of XSSMatchSet. -#XSSMatchSetStatus: { - v1.#ResourceStatus - atProvider?: #XSSMatchSetObservation @go(AtProvider) -} - -// XSSMatchSet is the Schema for the XSSMatchSets API. Provides an AWS WAF Regional XSS Match Set resource for use with ALB. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#XSSMatchSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #XSSMatchSetSpec @go(Spec) - status?: #XSSMatchSetStatus @go(Status) -} - -// XSSMatchSetList contains a list of XSSMatchSets -#XSSMatchSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#XSSMatchSet] @go(Items,[]XSSMatchSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafv2/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafv2/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index 27eb35b..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafv2/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafv2/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=wafv2.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "wafv2.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafv2/v1beta1/zz_ipset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafv2/v1beta1/zz_ipset_types_go_gen.cue deleted file mode 100644 index c88f509..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafv2/v1beta1/zz_ipset_types_go_gen.cue +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IPSetInitParameters: { - // Contains an array of strings that specify one or more IP addresses or blocks of IP addresses in Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports all address ranges for IP versions IPv4 and IPv6. - addresses?: [...null | string] @go(Addresses,[]*string) - - // A friendly description of the IP set. - description?: null | string @go(Description,*string) - - // Specify IPV4 or IPV6. Valid values are IPV4 or IPV6. - ipAddressVersion?: null | string @go(IPAddressVersion,*string) - - // A friendly name of the IP set. - name?: null | string @go(Name,*string) - - // Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are CLOUDFRONT or REGIONAL. To work with CloudFront, you must also specify the Region US East (N. Virginia). - scope?: null | string @go(Scope,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#IPSetObservation: { - // Contains an array of strings that specify one or more IP addresses or blocks of IP addresses in Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports all address ranges for IP versions IPv4 and IPv6. - addresses?: [...null | string] @go(Addresses,[]*string) - - // The Amazon Resource Name (ARN) of the IP set. - arn?: null | string @go(Arn,*string) - - // A friendly description of the IP set. - description?: null | string @go(Description,*string) - - // A unique identifier for the IP set. - id?: null | string @go(ID,*string) - - // Specify IPV4 or IPV6. Valid values are IPV4 or IPV6. - ipAddressVersion?: null | string @go(IPAddressVersion,*string) - lockToken?: null | string @go(LockToken,*string) - - // A friendly name of the IP set. - name?: null | string @go(Name,*string) - - // Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are CLOUDFRONT or REGIONAL. To work with CloudFront, you must also specify the Region US East (N. Virginia). - scope?: null | string @go(Scope,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#IPSetParameters: { - // Contains an array of strings that specify one or more IP addresses or blocks of IP addresses in Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports all address ranges for IP versions IPv4 and IPv6. - // +kubebuilder:validation:Optional - addresses?: [...null | string] @go(Addresses,[]*string) - - // A friendly description of the IP set. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // Specify IPV4 or IPV6. Valid values are IPV4 or IPV6. - // +kubebuilder:validation:Optional - ipAddressVersion?: null | string @go(IPAddressVersion,*string) - - // A friendly name of the IP set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are CLOUDFRONT or REGIONAL. To work with CloudFront, you must also specify the Region US East (N. Virginia). - // +kubebuilder:validation:Optional - scope?: null | string @go(Scope,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -// IPSetSpec defines the desired state of IPSet -#IPSetSpec: { - v1.#ResourceSpec - forProvider: #IPSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IPSetInitParameters @go(InitProvider) -} - -// IPSetStatus defines the observed state of IPSet. -#IPSetStatus: { - v1.#ResourceStatus - atProvider?: #IPSetObservation @go(AtProvider) -} - -// IPSet is the Schema for the IPSets API. Provides an AWS WAFv2 IP Set resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#IPSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ipAddressVersion) || (has(self.initProvider) && has(self.initProvider.ipAddressVersion))",message="spec.forProvider.ipAddressVersion is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scope) || (has(self.initProvider) && has(self.initProvider.scope))",message="spec.forProvider.scope is a required parameter" - spec: #IPSetSpec @go(Spec) - status?: #IPSetStatus @go(Status) -} - -// IPSetList contains a list of IPSets -#IPSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#IPSet] @go(Items,[]IPSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafv2/v1beta1/zz_regexpatternset_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/wafv2/v1beta1/zz_regexpatternset_types_go_gen.cue deleted file mode 100644 index fc33eda..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/wafv2/v1beta1/zz_regexpatternset_types_go_gen.cue +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/wafv2/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#RegexPatternSetInitParameters: { - // A friendly description of the regular expression pattern set. - description?: null | string @go(Description,*string) - - // A friendly name of the regular expression pattern set. - name?: null | string @go(Name,*string) - - // One or more blocks of regular expression patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t. See Regular Expression below for details. - regularExpression?: [...#RegularExpressionInitParameters] @go(RegularExpression,[]RegularExpressionInitParameters) - - // Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are CLOUDFRONT or REGIONAL. To work with CloudFront, you must also specify the region us-east-1 (N. Virginia) on the AWS provider. - scope?: null | string @go(Scope,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RegexPatternSetObservation: { - // The Amazon Resource Name (ARN) that identifies the cluster. - arn?: null | string @go(Arn,*string) - - // A friendly description of the regular expression pattern set. - description?: null | string @go(Description,*string) - - // A unique identifier for the set. - id?: null | string @go(ID,*string) - lockToken?: null | string @go(LockToken,*string) - - // A friendly name of the regular expression pattern set. - name?: null | string @go(Name,*string) - - // One or more blocks of regular expression patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t. See Regular Expression below for details. - regularExpression?: [...#RegularExpressionObservation] @go(RegularExpression,[]RegularExpressionObservation) - - // Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are CLOUDFRONT or REGIONAL. To work with CloudFront, you must also specify the region us-east-1 (N. Virginia) on the AWS provider. - scope?: null | string @go(Scope,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#RegexPatternSetParameters: { - // A friendly description of the regular expression pattern set. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // A friendly name of the regular expression pattern set. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // One or more blocks of regular expression patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t. See Regular Expression below for details. - // +kubebuilder:validation:Optional - regularExpression?: [...#RegularExpressionParameters] @go(RegularExpression,[]RegularExpressionParameters) - - // Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are CLOUDFRONT or REGIONAL. To work with CloudFront, you must also specify the region us-east-1 (N. Virginia) on the AWS provider. - // +kubebuilder:validation:Optional - scope?: null | string @go(Scope,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RegularExpressionInitParameters: { - // The string representing the regular expression, see the AWS WAF documentation for more information. - regexString?: null | string @go(RegexString,*string) -} - -#RegularExpressionObservation: { - // The string representing the regular expression, see the AWS WAF documentation for more information. - regexString?: null | string @go(RegexString,*string) -} - -#RegularExpressionParameters: { - // The string representing the regular expression, see the AWS WAF documentation for more information. - // +kubebuilder:validation:Optional - regexString?: null | string @go(RegexString,*string) -} - -// RegexPatternSetSpec defines the desired state of RegexPatternSet -#RegexPatternSetSpec: { - v1.#ResourceSpec - forProvider: #RegexPatternSetParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #RegexPatternSetInitParameters @go(InitProvider) -} - -// RegexPatternSetStatus defines the observed state of RegexPatternSet. -#RegexPatternSetStatus: { - v1.#ResourceStatus - atProvider?: #RegexPatternSetObservation @go(AtProvider) -} - -// RegexPatternSet is the Schema for the RegexPatternSets API. Provides an AWS WAFv2 Regex Pattern Set resource. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#RegexPatternSet: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scope) || (has(self.initProvider) && has(self.initProvider.scope))",message="spec.forProvider.scope is a required parameter" - spec: #RegexPatternSetSpec @go(Spec) - status?: #RegexPatternSetStatus @go(Status) -} - -// RegexPatternSetList contains a list of RegexPatternSets -#RegexPatternSetList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#RegexPatternSet] @go(Items,[]RegexPatternSet) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/workspaces/v1beta1/zz_directory_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/workspaces/v1beta1/zz_directory_types_go_gen.cue deleted file mode 100644 index 2c6c8f7..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/workspaces/v1beta1/zz_directory_types_go_gen.cue +++ /dev/null @@ -1,386 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/workspaces/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#DirectoryInitParameters: { - // The identifiers of the IP access control groups associated with the directory. - ipGroupIds?: [...null | string] @go(IPGroupIds,[]*string) - - // service capabilities. Defined below. - selfServicePermissions?: [...#SelfServicePermissionsInitParameters] @go(SelfServicePermissions,[]SelfServicePermissionsInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // – Specifies which devices and operating systems users can use to access their WorkSpaces. Defined below. - workspaceAccessProperties?: [...#WorkspaceAccessPropertiesInitParameters] @go(WorkspaceAccessProperties,[]WorkspaceAccessPropertiesInitParameters) - - // – Default properties that are used for creating WorkSpaces. Defined below. - workspaceCreationProperties?: [...#WorkspaceCreationPropertiesInitParameters] @go(WorkspaceCreationProperties,[]WorkspaceCreationPropertiesInitParameters) -} - -#DirectoryObservation: { - // The directory alias. - alias?: null | string @go(Alias,*string) - - // The user name for the service account. - customerUserName?: null | string @go(CustomerUserName,*string) - - // The IP addresses of the DNS servers for the directory. - dnsIpAddresses?: [...null | string] @go(DNSIPAddresses,[]*string) - - // The directory identifier for registration in WorkSpaces service. - directoryId?: null | string @go(DirectoryID,*string) - - // The name of the directory. - directoryName?: null | string @go(DirectoryName,*string) - - // The directory type. - directoryType?: null | string @go(DirectoryType,*string) - - // The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf. - iamRoleId?: null | string @go(IAMRoleID,*string) - - // The WorkSpaces directory identifier. - id?: null | string @go(ID,*string) - - // The identifiers of the IP access control groups associated with the directory. - ipGroupIds?: [...null | string] @go(IPGroupIds,[]*string) - - // The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory. - registrationCode?: null | string @go(RegistrationCode,*string) - - // service capabilities. Defined below. - selfServicePermissions?: [...#SelfServicePermissionsObservation] @go(SelfServicePermissions,[]SelfServicePermissionsObservation) - - // The identifiers of the subnets where the directory resides. - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // – Specifies which devices and operating systems users can use to access their WorkSpaces. Defined below. - workspaceAccessProperties?: [...#WorkspaceAccessPropertiesObservation] @go(WorkspaceAccessProperties,[]WorkspaceAccessPropertiesObservation) - - // – Default properties that are used for creating WorkSpaces. Defined below. - workspaceCreationProperties?: [...#WorkspaceCreationPropertiesObservation] @go(WorkspaceCreationProperties,[]WorkspaceCreationPropertiesObservation) - - // The identifier of the security group that is assigned to new WorkSpaces. - workspaceSecurityGroupId?: null | string @go(WorkspaceSecurityGroupID,*string) -} - -#DirectoryParameters: { - // The directory identifier for registration in WorkSpaces service. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ds/v1beta1.Directory - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - directoryId?: null | string @go(DirectoryID,*string) - - // Reference to a Directory in ds to populate directoryId. - // +kubebuilder:validation:Optional - directoryIdRef?: null | v1.#Reference @go(DirectoryIDRef,*v1.Reference) - - // Selector for a Directory in ds to populate directoryId. - // +kubebuilder:validation:Optional - directoryIdSelector?: null | v1.#Selector @go(DirectoryIDSelector,*v1.Selector) - - // The identifiers of the IP access control groups associated with the directory. - // +kubebuilder:validation:Optional - ipGroupIds?: [...null | string] @go(IPGroupIds,[]*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // service capabilities. Defined below. - // +kubebuilder:validation:Optional - selfServicePermissions?: [...#SelfServicePermissionsParameters] @go(SelfServicePermissions,[]SelfServicePermissionsParameters) - - // References to Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdRefs?: [...v1.#Reference] @go(SubnetIDRefs,[]v1.Reference) - - // Selector for a list of Subnet in ec2 to populate subnetIds. - // +kubebuilder:validation:Optional - subnetIdSelector?: null | v1.#Selector @go(SubnetIDSelector,*v1.Selector) - - // The identifiers of the subnets where the directory resides. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet - // +crossplane:generate:reference:refFieldName=SubnetIDRefs - // +crossplane:generate:reference:selectorFieldName=SubnetIDSelector - // +kubebuilder:validation:Optional - subnetIds?: [...null | string] @go(SubnetIds,[]*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // – Specifies which devices and operating systems users can use to access their WorkSpaces. Defined below. - // +kubebuilder:validation:Optional - workspaceAccessProperties?: [...#WorkspaceAccessPropertiesParameters] @go(WorkspaceAccessProperties,[]WorkspaceAccessPropertiesParameters) - - // – Default properties that are used for creating WorkSpaces. Defined below. - // +kubebuilder:validation:Optional - workspaceCreationProperties?: [...#WorkspaceCreationPropertiesParameters] @go(WorkspaceCreationProperties,[]WorkspaceCreationPropertiesParameters) -} - -#SelfServicePermissionsInitParameters: { - // – Whether WorkSpaces directory users can change the compute type (bundle) for their workspace. Default false. - changeComputeType?: null | bool @go(ChangeComputeType,*bool) - - // – Whether WorkSpaces directory users can increase the volume size of the drives on their workspace. Default false. - increaseVolumeSize?: null | bool @go(IncreaseVolumeSize,*bool) - - // – Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state. Default false. - rebuildWorkspace?: null | bool @go(RebuildWorkspace,*bool) - - // – Whether WorkSpaces directory users can restart their workspace. Default true. - restartWorkspace?: null | bool @go(RestartWorkspace,*bool) - - // – Whether WorkSpaces directory users can switch the running mode of their workspace. Default false. - switchRunningMode?: null | bool @go(SwitchRunningMode,*bool) -} - -#SelfServicePermissionsObservation: { - // – Whether WorkSpaces directory users can change the compute type (bundle) for their workspace. Default false. - changeComputeType?: null | bool @go(ChangeComputeType,*bool) - - // – Whether WorkSpaces directory users can increase the volume size of the drives on their workspace. Default false. - increaseVolumeSize?: null | bool @go(IncreaseVolumeSize,*bool) - - // – Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state. Default false. - rebuildWorkspace?: null | bool @go(RebuildWorkspace,*bool) - - // – Whether WorkSpaces directory users can restart their workspace. Default true. - restartWorkspace?: null | bool @go(RestartWorkspace,*bool) - - // – Whether WorkSpaces directory users can switch the running mode of their workspace. Default false. - switchRunningMode?: null | bool @go(SwitchRunningMode,*bool) -} - -#SelfServicePermissionsParameters: { - // – Whether WorkSpaces directory users can change the compute type (bundle) for their workspace. Default false. - // +kubebuilder:validation:Optional - changeComputeType?: null | bool @go(ChangeComputeType,*bool) - - // – Whether WorkSpaces directory users can increase the volume size of the drives on their workspace. Default false. - // +kubebuilder:validation:Optional - increaseVolumeSize?: null | bool @go(IncreaseVolumeSize,*bool) - - // – Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state. Default false. - // +kubebuilder:validation:Optional - rebuildWorkspace?: null | bool @go(RebuildWorkspace,*bool) - - // – Whether WorkSpaces directory users can restart their workspace. Default true. - // +kubebuilder:validation:Optional - restartWorkspace?: null | bool @go(RestartWorkspace,*bool) - - // – Whether WorkSpaces directory users can switch the running mode of their workspace. Default false. - // +kubebuilder:validation:Optional - switchRunningMode?: null | bool @go(SwitchRunningMode,*bool) -} - -#WorkspaceAccessPropertiesInitParameters: { - // – Indicates whether users can use Android devices to access their WorkSpaces. - deviceTypeAndroid?: null | string @go(DeviceTypeAndroid,*string) - - // – Indicates whether users can use Chromebooks to access their WorkSpaces. - deviceTypeChromeos?: null | string @go(DeviceTypeChromeos,*string) - - // – Indicates whether users can use iOS devices to access their WorkSpaces. - deviceTypeIos?: null | string @go(DeviceTypeIos,*string) - - // – Indicates whether users can use Linux clients to access their WorkSpaces. - deviceTypeLinux?: null | string @go(DeviceTypeLinux,*string) - - // – Indicates whether users can use macOS clients to access their WorkSpaces. - deviceTypeOsx?: null | string @go(DeviceTypeOsx,*string) - - // – Indicates whether users can access their WorkSpaces through a web browser. - deviceTypeWeb?: null | string @go(DeviceTypeWeb,*string) - - // – Indicates whether users can use Windows clients to access their WorkSpaces. - deviceTypeWindows?: null | string @go(DeviceTypeWindows,*string) - - // – Indicates whether users can use zero client devices to access their WorkSpaces. - deviceTypeZeroclient?: null | string @go(DeviceTypeZeroclient,*string) -} - -#WorkspaceAccessPropertiesObservation: { - // – Indicates whether users can use Android devices to access their WorkSpaces. - deviceTypeAndroid?: null | string @go(DeviceTypeAndroid,*string) - - // – Indicates whether users can use Chromebooks to access their WorkSpaces. - deviceTypeChromeos?: null | string @go(DeviceTypeChromeos,*string) - - // – Indicates whether users can use iOS devices to access their WorkSpaces. - deviceTypeIos?: null | string @go(DeviceTypeIos,*string) - - // – Indicates whether users can use Linux clients to access their WorkSpaces. - deviceTypeLinux?: null | string @go(DeviceTypeLinux,*string) - - // – Indicates whether users can use macOS clients to access their WorkSpaces. - deviceTypeOsx?: null | string @go(DeviceTypeOsx,*string) - - // – Indicates whether users can access their WorkSpaces through a web browser. - deviceTypeWeb?: null | string @go(DeviceTypeWeb,*string) - - // – Indicates whether users can use Windows clients to access their WorkSpaces. - deviceTypeWindows?: null | string @go(DeviceTypeWindows,*string) - - // – Indicates whether users can use zero client devices to access their WorkSpaces. - deviceTypeZeroclient?: null | string @go(DeviceTypeZeroclient,*string) -} - -#WorkspaceAccessPropertiesParameters: { - // – Indicates whether users can use Android devices to access their WorkSpaces. - // +kubebuilder:validation:Optional - deviceTypeAndroid?: null | string @go(DeviceTypeAndroid,*string) - - // – Indicates whether users can use Chromebooks to access their WorkSpaces. - // +kubebuilder:validation:Optional - deviceTypeChromeos?: null | string @go(DeviceTypeChromeos,*string) - - // – Indicates whether users can use iOS devices to access their WorkSpaces. - // +kubebuilder:validation:Optional - deviceTypeIos?: null | string @go(DeviceTypeIos,*string) - - // – Indicates whether users can use Linux clients to access their WorkSpaces. - // +kubebuilder:validation:Optional - deviceTypeLinux?: null | string @go(DeviceTypeLinux,*string) - - // – Indicates whether users can use macOS clients to access their WorkSpaces. - // +kubebuilder:validation:Optional - deviceTypeOsx?: null | string @go(DeviceTypeOsx,*string) - - // – Indicates whether users can access their WorkSpaces through a web browser. - // +kubebuilder:validation:Optional - deviceTypeWeb?: null | string @go(DeviceTypeWeb,*string) - - // – Indicates whether users can use Windows clients to access their WorkSpaces. - // +kubebuilder:validation:Optional - deviceTypeWindows?: null | string @go(DeviceTypeWindows,*string) - - // – Indicates whether users can use zero client devices to access their WorkSpaces. - // +kubebuilder:validation:Optional - deviceTypeZeroclient?: null | string @go(DeviceTypeZeroclient,*string) -} - -#WorkspaceCreationPropertiesInitParameters: { - // – The default organizational unit (OU) for your WorkSpace directories. Should conform "OU=,DC=,...,DC=" pattern. - defaultOu?: null | string @go(DefaultOu,*string) - - // – Indicates whether internet access is enabled for your WorkSpaces. - enableInternetAccess?: null | bool @go(EnableInternetAccess,*bool) - - // – Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see WorkSpace Maintenance.. - enableMaintenanceMode?: null | bool @go(EnableMaintenanceMode,*bool) - - // – Indicates whether users are local administrators of their WorkSpaces. - userEnabledAsLocalAdministrator?: null | bool @go(UserEnabledAsLocalAdministrator,*bool) -} - -#WorkspaceCreationPropertiesObservation: { - // – The identifier of your custom security group. Should relate to the same VPC, where workspaces reside in. - customSecurityGroupId?: null | string @go(CustomSecurityGroupID,*string) - - // – The default organizational unit (OU) for your WorkSpace directories. Should conform "OU=,DC=,...,DC=" pattern. - defaultOu?: null | string @go(DefaultOu,*string) - - // – Indicates whether internet access is enabled for your WorkSpaces. - enableInternetAccess?: null | bool @go(EnableInternetAccess,*bool) - - // – Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see WorkSpace Maintenance.. - enableMaintenanceMode?: null | bool @go(EnableMaintenanceMode,*bool) - - // – Indicates whether users are local administrators of their WorkSpaces. - userEnabledAsLocalAdministrator?: null | bool @go(UserEnabledAsLocalAdministrator,*bool) -} - -#WorkspaceCreationPropertiesParameters: { - // – The identifier of your custom security group. Should relate to the same VPC, where workspaces reside in. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() - // +kubebuilder:validation:Optional - customSecurityGroupId?: null | string @go(CustomSecurityGroupID,*string) - - // Reference to a SecurityGroup in ec2 to populate customSecurityGroupId. - // +kubebuilder:validation:Optional - customSecurityGroupIdRef?: null | v1.#Reference @go(CustomSecurityGroupIDRef,*v1.Reference) - - // Selector for a SecurityGroup in ec2 to populate customSecurityGroupId. - // +kubebuilder:validation:Optional - customSecurityGroupIdSelector?: null | v1.#Selector @go(CustomSecurityGroupIDSelector,*v1.Selector) - - // – The default organizational unit (OU) for your WorkSpace directories. Should conform "OU=,DC=,...,DC=" pattern. - // +kubebuilder:validation:Optional - defaultOu?: null | string @go(DefaultOu,*string) - - // – Indicates whether internet access is enabled for your WorkSpaces. - // +kubebuilder:validation:Optional - enableInternetAccess?: null | bool @go(EnableInternetAccess,*bool) - - // – Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see WorkSpace Maintenance.. - // +kubebuilder:validation:Optional - enableMaintenanceMode?: null | bool @go(EnableMaintenanceMode,*bool) - - // – Indicates whether users are local administrators of their WorkSpaces. - // +kubebuilder:validation:Optional - userEnabledAsLocalAdministrator?: null | bool @go(UserEnabledAsLocalAdministrator,*bool) -} - -// DirectorySpec defines the desired state of Directory -#DirectorySpec: { - v1.#ResourceSpec - forProvider: #DirectoryParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #DirectoryInitParameters @go(InitProvider) -} - -// DirectoryStatus defines the observed state of Directory. -#DirectoryStatus: { - v1.#ResourceStatus - atProvider?: #DirectoryObservation @go(AtProvider) -} - -// Directory is the Schema for the Directorys API. Provides a WorkSpaces directory in AWS WorkSpaces Service. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Directory: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #DirectorySpec @go(Spec) - status?: #DirectoryStatus @go(Status) -} - -// DirectoryList contains a list of Directorys -#DirectoryList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Directory] @go(Items,[]Directory) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/workspaces/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/workspaces/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index c2da206..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/workspaces/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/workspaces/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=workspaces.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "workspaces.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/workspaces/v1beta1/zz_ipgroup_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/workspaces/v1beta1/zz_ipgroup_types_go_gen.cue deleted file mode 100644 index cc65a12..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/workspaces/v1beta1/zz_ipgroup_types_go_gen.cue +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/workspaces/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#IPGroupInitParameters: { - // The description of the IP group. - description?: null | string @go(Description,*string) - - // The name of the IP group. - name?: null | string @go(Name,*string) - - // One or more pairs specifying the IP group rule (in CIDR format) from which web requests originate. - rules?: [...#RulesInitParameters] @go(Rules,[]RulesInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#IPGroupObservation: { - // The description of the IP group. - description?: null | string @go(Description,*string) - - // The IP group identifier. - id?: null | string @go(ID,*string) - - // The name of the IP group. - name?: null | string @go(Name,*string) - - // One or more pairs specifying the IP group rule (in CIDR format) from which web requests originate. - rules?: [...#RulesObservation] @go(Rules,[]RulesObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#IPGroupParameters: { - // The description of the IP group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The name of the IP group. - // +kubebuilder:validation:Optional - name?: null | string @go(Name,*string) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // One or more pairs specifying the IP group rule (in CIDR format) from which web requests originate. - // +kubebuilder:validation:Optional - rules?: [...#RulesParameters] @go(Rules,[]RulesParameters) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#RulesInitParameters: { - // The description of the IP group. - description?: null | string @go(Description,*string) - - // The IP address range, in CIDR notation, e.g., 10.0.0.0/16 - source?: null | string @go(Source,*string) -} - -#RulesObservation: { - // The description of the IP group. - description?: null | string @go(Description,*string) - - // The IP address range, in CIDR notation, e.g., 10.0.0.0/16 - source?: null | string @go(Source,*string) -} - -#RulesParameters: { - // The description of the IP group. - // +kubebuilder:validation:Optional - description?: null | string @go(Description,*string) - - // The IP address range, in CIDR notation, e.g., 10.0.0.0/16 - // +kubebuilder:validation:Optional - source?: null | string @go(Source,*string) -} - -// IPGroupSpec defines the desired state of IPGroup -#IPGroupSpec: { - v1.#ResourceSpec - forProvider: #IPGroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #IPGroupInitParameters @go(InitProvider) -} - -// IPGroupStatus defines the observed state of IPGroup. -#IPGroupStatus: { - v1.#ResourceStatus - atProvider?: #IPGroupObservation @go(AtProvider) -} - -// IPGroup is the Schema for the IPGroups API. Provides an IP access control group in AWS WorkSpaces Service. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#IPGroup: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" - spec: #IPGroupSpec @go(Spec) - status?: #IPGroupStatus @go(Status) -} - -// IPGroupList contains a list of IPGroups -#IPGroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#IPGroup] @go(Items,[]IPGroup) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/xray/v1beta1/zz_encryptionconfig_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/xray/v1beta1/zz_encryptionconfig_types_go_gen.cue deleted file mode 100644 index e5966c0..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/xray/v1beta1/zz_encryptionconfig_types_go_gen.cue +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/xray/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#EncryptionConfigInitParameters: { - // The type of encryption. Set to KMS to use your own key for encryption. Set to NONE for default encryption. - type?: null | string @go(Type,*string) -} - -#EncryptionConfigObservation: { - // Region name. - id?: null | string @go(ID,*string) - - // An AWS KMS customer master key (CMK) ARN. - keyId?: null | string @go(KeyID,*string) - - // The type of encryption. Set to KMS to use your own key for encryption. Set to NONE for default encryption. - type?: null | string @go(Type,*string) -} - -#EncryptionConfigParameters: { - // An AWS KMS customer master key (CMK) ARN. - // +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key - // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true) - // +kubebuilder:validation:Optional - keyId?: null | string @go(KeyID,*string) - - // Reference to a Key in kms to populate keyId. - // +kubebuilder:validation:Optional - keyIdRef?: null | v1.#Reference @go(KeyIDRef,*v1.Reference) - - // Selector for a Key in kms to populate keyId. - // +kubebuilder:validation:Optional - keyIdSelector?: null | v1.#Selector @go(KeyIDSelector,*v1.Selector) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // The type of encryption. Set to KMS to use your own key for encryption. Set to NONE for default encryption. - // +kubebuilder:validation:Optional - type?: null | string @go(Type,*string) -} - -// EncryptionConfigSpec defines the desired state of EncryptionConfig -#EncryptionConfigSpec: { - v1.#ResourceSpec - forProvider: #EncryptionConfigParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #EncryptionConfigInitParameters @go(InitProvider) -} - -// EncryptionConfigStatus defines the observed state of EncryptionConfig. -#EncryptionConfigStatus: { - v1.#ResourceStatus - atProvider?: #EncryptionConfigObservation @go(AtProvider) -} - -// EncryptionConfig is the Schema for the EncryptionConfigs API. Creates and manages an AWS XRay Encryption Config. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#EncryptionConfig: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" - spec: #EncryptionConfigSpec @go(Spec) - status?: #EncryptionConfigStatus @go(Status) -} - -// EncryptionConfigList contains a list of EncryptionConfigs -#EncryptionConfigList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#EncryptionConfig] @go(Items,[]EncryptionConfig) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/xray/v1beta1/zz_group_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/xray/v1beta1/zz_group_types_go_gen.cue deleted file mode 100644 index 42a858a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/xray/v1beta1/zz_group_types_go_gen.cue +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/xray/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#GroupInitParameters: { - // The filter expression defining criteria by which to group traces. more info can be found in official docs. - filterExpression?: null | string @go(FilterExpression,*string) - - // The name of the group. - groupName?: null | string @go(GroupName,*string) - - // Configuration options for enabling insights. - insightsConfiguration?: [...#InsightsConfigurationInitParameters] @go(InsightsConfiguration,[]InsightsConfigurationInitParameters) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#GroupObservation: { - // The ARN of the Group. - arn?: null | string @go(Arn,*string) - - // The filter expression defining criteria by which to group traces. more info can be found in official docs. - filterExpression?: null | string @go(FilterExpression,*string) - - // The name of the group. - groupName?: null | string @go(GroupName,*string) - - // The ARN of the Group. - id?: null | string @go(ID,*string) - - // Configuration options for enabling insights. - insightsConfiguration?: [...#InsightsConfigurationObservation] @go(InsightsConfiguration,[]InsightsConfigurationObservation) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) -} - -#GroupParameters: { - // The filter expression defining criteria by which to group traces. more info can be found in official docs. - // +kubebuilder:validation:Optional - filterExpression?: null | string @go(FilterExpression,*string) - - // The name of the group. - // +kubebuilder:validation:Optional - groupName?: null | string @go(GroupName,*string) - - // Configuration options for enabling insights. - // +kubebuilder:validation:Optional - insightsConfiguration?: [...#InsightsConfigurationParameters] @go(InsightsConfiguration,[]InsightsConfigurationParameters) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) -} - -#InsightsConfigurationInitParameters: { - // Specifies whether insights are enabled. - insightsEnabled?: null | bool @go(InsightsEnabled,*bool) - - // Specifies whether insight notifications are enabled. - notificationsEnabled?: null | bool @go(NotificationsEnabled,*bool) -} - -#InsightsConfigurationObservation: { - // Specifies whether insights are enabled. - insightsEnabled?: null | bool @go(InsightsEnabled,*bool) - - // Specifies whether insight notifications are enabled. - notificationsEnabled?: null | bool @go(NotificationsEnabled,*bool) -} - -#InsightsConfigurationParameters: { - // Specifies whether insights are enabled. - // +kubebuilder:validation:Optional - insightsEnabled?: null | bool @go(InsightsEnabled,*bool) - - // Specifies whether insight notifications are enabled. - // +kubebuilder:validation:Optional - notificationsEnabled?: null | bool @go(NotificationsEnabled,*bool) -} - -// GroupSpec defines the desired state of Group -#GroupSpec: { - v1.#ResourceSpec - forProvider: #GroupParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #GroupInitParameters @go(InitProvider) -} - -// GroupStatus defines the observed state of Group. -#GroupStatus: { - v1.#ResourceStatus - atProvider?: #GroupObservation @go(AtProvider) -} - -// Group is the Schema for the Groups API. Creates and manages an AWS XRay Group. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#Group: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.filterExpression) || (has(self.initProvider) && has(self.initProvider.filterExpression))",message="spec.forProvider.filterExpression is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.groupName) || (has(self.initProvider) && has(self.initProvider.groupName))",message="spec.forProvider.groupName is a required parameter" - spec: #GroupSpec @go(Spec) - status?: #GroupStatus @go(Status) -} - -// GroupList contains a list of Groups -#GroupList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#Group] @go(Items,[]Group) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/xray/v1beta1/zz_groupversion_info_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/xray/v1beta1/zz_groupversion_info_go_gen.cue deleted file mode 100644 index b9075b4..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/xray/v1beta1/zz_groupversion_info_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/xray/v1beta1 - -// +kubebuilder:object:generate=true -// +groupName=xray.aws.upbound.io -// +versionName=v1beta1 -package v1beta1 - -#CRDGroup: "xray.aws.upbound.io" -#CRDVersion: "v1beta1" diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/xray/v1beta1/zz_samplingrule_types_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/xray/v1beta1/zz_samplingrule_types_go_gen.cue deleted file mode 100644 index 680d27a..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/xray/v1beta1/zz_samplingrule_types_go_gen.cue +++ /dev/null @@ -1,206 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis/xray/v1beta1 - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -#SamplingRuleInitParameters: { - // Matches attributes derived from the request. - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) - - // The percentage of matching requests to instrument, after the reservoir is exhausted. - fixedRate?: null | float64 @go(FixedRate,*float64) - - // Matches the HTTP method of a request. - httpMethod?: null | string @go(HTTPMethod,*string) - - // Matches the hostname from a request URL. - host?: null | string @go(Host,*string) - - // The priority of the sampling rule. - priority?: null | float64 @go(Priority,*float64) - - // A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively. - reservoirSize?: null | float64 @go(ReservoirSize,*float64) - - // Matches the ARN of the AWS resource on which the service runs. - resourceArn?: null | string @go(ResourceArn,*string) - - // Matches the name that the service uses to identify itself in segments. - serviceName?: null | string @go(ServiceName,*string) - - // Matches the origin that the service uses to identify its type in segments. - serviceType?: null | string @go(ServiceType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Matches the path from a request URL. - urlPath?: null | string @go(URLPath,*string) - - // The version of the sampling rule format (1 ) - version?: null | float64 @go(Version,*float64) -} - -#SamplingRuleObservation: { - // The ARN of the sampling rule. - arn?: null | string @go(Arn,*string) - - // Matches attributes derived from the request. - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) - - // The percentage of matching requests to instrument, after the reservoir is exhausted. - fixedRate?: null | float64 @go(FixedRate,*float64) - - // Matches the HTTP method of a request. - httpMethod?: null | string @go(HTTPMethod,*string) - - // Matches the hostname from a request URL. - host?: null | string @go(Host,*string) - - // The name of the sampling rule. - id?: null | string @go(ID,*string) - - // The priority of the sampling rule. - priority?: null | float64 @go(Priority,*float64) - - // A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively. - reservoirSize?: null | float64 @go(ReservoirSize,*float64) - - // Matches the ARN of the AWS resource on which the service runs. - resourceArn?: null | string @go(ResourceArn,*string) - - // Matches the name that the service uses to identify itself in segments. - serviceName?: null | string @go(ServiceName,*string) - - // Matches the origin that the service uses to identify its type in segments. - serviceType?: null | string @go(ServiceType,*string) - - // Key-value map of resource tags. - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. - tagsAll?: {[string]: null | string} @go(TagsAll,map[string]*string) - - // Matches the path from a request URL. - urlPath?: null | string @go(URLPath,*string) - - // The version of the sampling rule format (1 ) - version?: null | float64 @go(Version,*float64) -} - -#SamplingRuleParameters: { - // Matches attributes derived from the request. - // +kubebuilder:validation:Optional - attributes?: {[string]: null | string} @go(Attributes,map[string]*string) - - // The percentage of matching requests to instrument, after the reservoir is exhausted. - // +kubebuilder:validation:Optional - fixedRate?: null | float64 @go(FixedRate,*float64) - - // Matches the HTTP method of a request. - // +kubebuilder:validation:Optional - httpMethod?: null | string @go(HTTPMethod,*string) - - // Matches the hostname from a request URL. - // +kubebuilder:validation:Optional - host?: null | string @go(Host,*string) - - // The priority of the sampling rule. - // +kubebuilder:validation:Optional - priority?: null | float64 @go(Priority,*float64) - - // Region is the region you'd like your resource to be created in. - // +upjet:crd:field:TFTag=- - // +kubebuilder:validation:Required - region?: null | string @go(Region,*string) - - // A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively. - // +kubebuilder:validation:Optional - reservoirSize?: null | float64 @go(ReservoirSize,*float64) - - // Matches the ARN of the AWS resource on which the service runs. - // +kubebuilder:validation:Optional - resourceArn?: null | string @go(ResourceArn,*string) - - // Matches the name that the service uses to identify itself in segments. - // +kubebuilder:validation:Optional - serviceName?: null | string @go(ServiceName,*string) - - // Matches the origin that the service uses to identify its type in segments. - // +kubebuilder:validation:Optional - serviceType?: null | string @go(ServiceType,*string) - - // Key-value map of resource tags. - // +kubebuilder:validation:Optional - tags?: {[string]: null | string} @go(Tags,map[string]*string) - - // Matches the path from a request URL. - // +kubebuilder:validation:Optional - urlPath?: null | string @go(URLPath,*string) - - // The version of the sampling rule format (1 ) - // +kubebuilder:validation:Optional - version?: null | float64 @go(Version,*float64) -} - -// SamplingRuleSpec defines the desired state of SamplingRule -#SamplingRuleSpec: { - v1.#ResourceSpec - forProvider: #SamplingRuleParameters @go(ForProvider) - - // THIS IS A BETA FIELD. It will be honored - // unless the Management Policies feature flag is disabled. - // InitProvider holds the same fields as ForProvider, with the exception - // of Identifier and other resource reference fields. The fields that are - // in InitProvider are merged into ForProvider when the resource is created. - // The same fields are also added to the terraform ignore_changes hook, to - // avoid updating them after creation. This is useful for fields that are - // required on creation, but we do not desire to update them after creation, - // for example because of an external controller is managing them, like an - // autoscaler. - initProvider?: #SamplingRuleInitParameters @go(InitProvider) -} - -// SamplingRuleStatus defines the observed state of SamplingRule. -#SamplingRuleStatus: { - v1.#ResourceStatus - atProvider?: #SamplingRuleObservation @go(AtProvider) -} - -// SamplingRule is the Schema for the SamplingRules API. Creates and manages an AWS XRay Sampling Rule. -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws} -#SamplingRule: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.fixedRate) || (has(self.initProvider) && has(self.initProvider.fixedRate))",message="spec.forProvider.fixedRate is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.host) || (has(self.initProvider) && has(self.initProvider.host))",message="spec.forProvider.host is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.httpMethod) || (has(self.initProvider) && has(self.initProvider.httpMethod))",message="spec.forProvider.httpMethod is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.priority) || (has(self.initProvider) && has(self.initProvider.priority))",message="spec.forProvider.priority is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.reservoirSize) || (has(self.initProvider) && has(self.initProvider.reservoirSize))",message="spec.forProvider.reservoirSize is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.resourceArn) || (has(self.initProvider) && has(self.initProvider.resourceArn))",message="spec.forProvider.resourceArn is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))",message="spec.forProvider.serviceName is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceType) || (has(self.initProvider) && has(self.initProvider.serviceType))",message="spec.forProvider.serviceType is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.urlPath) || (has(self.initProvider) && has(self.initProvider.urlPath))",message="spec.forProvider.urlPath is a required parameter" - // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.version) || (has(self.initProvider) && has(self.initProvider.version))",message="spec.forProvider.version is a required parameter" - spec: #SamplingRuleSpec @go(Spec) - status?: #SamplingRuleStatus @go(Status) -} - -// SamplingRuleList contains a list of SamplingRules -#SamplingRuleList: { - metav1.#TypeMeta - metadata?: metav1.#ListMeta @go(ListMeta) - items: [...#SamplingRule] @go(Items,[]SamplingRule) -} diff --git a/cue.mod/gen/github.com/upbound/provider-aws/apis/zz_register_go_gen.cue b/cue.mod/gen/github.com/upbound/provider-aws/apis/zz_register_go_gen.cue deleted file mode 100644 index 0527933..0000000 --- a/cue.mod/gen/github.com/upbound/provider-aws/apis/zz_register_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go github.com/upbound/provider-aws/apis - -// Package apis contains Kubernetes API for the provider. -package apis diff --git a/cue.mod/gen/google.golang.org/protobuf/types/known/durationpb/duration.pb_go_gen.cue b/cue.mod/gen/google.golang.org/protobuf/types/known/durationpb/duration.pb_go_gen.cue deleted file mode 100644 index 14824e2..0000000 --- a/cue.mod/gen/google.golang.org/protobuf/types/known/durationpb/duration.pb_go_gen.cue +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go google.golang.org/protobuf/types/known/durationpb - -// Package durationpb contains generated types for google/protobuf/duration.proto. -// -// The Duration message represents a signed span of time. -// -// # Conversion to a Go Duration -// -// The AsDuration method can be used to convert a Duration message to a -// standard Go time.Duration value: -// -// d := dur.AsDuration() -// ... // make use of d as a time.Duration -// -// Converting to a time.Duration is a common operation so that the extensive -// set of time-based operations provided by the time package can be leveraged. -// See https://golang.org/pkg/time for more information. -// -// The AsDuration method performs the conversion on a best-effort basis. -// Durations with denormal values (e.g., nanoseconds beyond -99999999 and -// +99999999, inclusive; or seconds and nanoseconds with opposite signs) -// are normalized during the conversion to a time.Duration. To manually check for -// invalid Duration per the documented limitations in duration.proto, -// additionally call the CheckValid method: -// -// if err := dur.CheckValid(); err != nil { -// ... // handle error -// } -// -// Note that the documented limitations in duration.proto does not protect a -// Duration from overflowing the representable range of a time.Duration in Go. -// The AsDuration method uses saturation arithmetic such that an overflow clamps -// the resulting value to the closest representable value (e.g., math.MaxInt64 -// for positive overflow and math.MinInt64 for negative overflow). -// -// # Conversion from a Go Duration -// -// The durationpb.New function can be used to construct a Duration message -// from a standard Go time.Duration value: -// -// dur := durationpb.New(d) -// ... // make use of d as a *durationpb.Duration -package durationpb - -// A Duration represents a signed, fixed-length span of time represented -// as a count of seconds and fractions of seconds at nanosecond -// resolution. It is independent of any calendar and concepts like "day" -// or "month". It is related to Timestamp in that the difference between -// two Timestamp values is a Duration and it can be added or subtracted -// from a Timestamp. Range is approximately +-10,000 years. -// -// # Examples -// -// Example 1: Compute Duration from two Timestamps in pseudo code. -// -// Timestamp start = ...; -// Timestamp end = ...; -// Duration duration = ...; -// -// duration.seconds = end.seconds - start.seconds; -// duration.nanos = end.nanos - start.nanos; -// -// if (duration.seconds < 0 && duration.nanos > 0) { -// duration.seconds += 1; -// duration.nanos -= 1000000000; -// } else if (duration.seconds > 0 && duration.nanos < 0) { -// duration.seconds -= 1; -// duration.nanos += 1000000000; -// } -// -// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. -// -// Timestamp start = ...; -// Duration duration = ...; -// Timestamp end = ...; -// -// end.seconds = start.seconds + duration.seconds; -// end.nanos = start.nanos + duration.nanos; -// -// if (end.nanos < 0) { -// end.seconds -= 1; -// end.nanos += 1000000000; -// } else if (end.nanos >= 1000000000) { -// end.seconds += 1; -// end.nanos -= 1000000000; -// } -// -// Example 3: Compute Duration from datetime.timedelta in Python. -// -// td = datetime.timedelta(days=3, minutes=10) -// duration = Duration() -// duration.FromTimedelta(td) -// -// # JSON Mapping -// -// In JSON format, the Duration type is encoded as a string rather than an -// object, where the string ends in the suffix "s" (indicating seconds) and -// is preceded by the number of seconds, with nanoseconds expressed as -// fractional seconds. For example, 3 seconds with 0 nanoseconds should be -// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should -// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 -// microsecond should be expressed in JSON format as "3.000001s". -#Duration: { - // Signed seconds of the span of time. Must be from -315,576,000,000 - // to +315,576,000,000 inclusive. Note: these bounds are computed from: - // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - seconds?: int64 @go(Seconds) @protobuf(1,varint,opt,proto3) - - // Signed fractions of a second at nanosecond resolution of the span - // of time. Durations less than one second are represented with a 0 - // `seconds` field and a positive or negative `nanos` field. For durations - // of one second or more, a non-zero value for the `nanos` field must be - // of the same sign as the `seconds` field. Must be from -999,999,999 - // to +999,999,999 inclusive. - nanos?: int32 @go(Nanos) @protobuf(2,varint,opt,proto3) -} -_#invalidNil: 1 -_#invalidUnderflow: 2 -_#invalidOverflow: 3 -_#invalidNanosRange: 4 -_#invalidNanosSign: 5 diff --git a/cue.mod/gen/k8s.io/api/admission/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/admission/v1/register_go_gen.cue deleted file mode 100644 index 597f5b0..0000000 --- a/cue.mod/gen/k8s.io/api/admission/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admission/v1 - -package v1 - -#GroupName: "admission.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/admission/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/admission/v1/types_go_gen.cue deleted file mode 100644 index af26bd0..0000000 --- a/cue.mod/gen/k8s.io/api/admission/v1/types_go_gen.cue +++ /dev/null @@ -1,172 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admission/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/types" - authenticationv1 "k8s.io/api/authentication/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -// AdmissionReview describes an admission review request/response. -#AdmissionReview: { - metav1.#TypeMeta - - // Request describes the attributes for the admission request. - // +optional - request?: null | #AdmissionRequest @go(Request,*AdmissionRequest) @protobuf(1,bytes,opt) - - // Response describes the attributes for the admission response. - // +optional - response?: null | #AdmissionResponse @go(Response,*AdmissionResponse) @protobuf(2,bytes,opt) -} - -// AdmissionRequest describes the admission.Attributes for the admission request. -#AdmissionRequest: { - // UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are - // otherwise identical (parallel requests, requests when earlier requests did not modify etc) - // The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. - // It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. - uid: types.#UID @go(UID) @protobuf(1,bytes,opt) - - // Kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale) - kind: metav1.#GroupVersionKind @go(Kind) @protobuf(2,bytes,opt) - - // Resource is the fully-qualified resource being requested (for example, v1.pods) - resource: metav1.#GroupVersionResource @go(Resource) @protobuf(3,bytes,opt) - - // SubResource is the subresource being requested, if any (for example, "status" or "scale") - // +optional - subResource?: string @go(SubResource) @protobuf(4,bytes,opt) - - // RequestKind is the fully-qualified type of the original API request (for example, v1.Pod or autoscaling.v1.Scale). - // If this is specified and differs from the value in "kind", an equivalent match and conversion was performed. - // - // For example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of - // `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]` and `matchPolicy: Equivalent`, - // an API request to apps/v1beta1 deployments would be converted and sent to the webhook - // with `kind: {group:"apps", version:"v1", kind:"Deployment"}` (matching the rule the webhook registered for), - // and `requestKind: {group:"apps", version:"v1beta1", kind:"Deployment"}` (indicating the kind of the original API request). - // - // See documentation for the "matchPolicy" field in the webhook configuration type for more details. - // +optional - requestKind?: null | metav1.#GroupVersionKind @go(RequestKind,*metav1.GroupVersionKind) @protobuf(13,bytes,opt) - - // RequestResource is the fully-qualified resource of the original API request (for example, v1.pods). - // If this is specified and differs from the value in "resource", an equivalent match and conversion was performed. - // - // For example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of - // `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]` and `matchPolicy: Equivalent`, - // an API request to apps/v1beta1 deployments would be converted and sent to the webhook - // with `resource: {group:"apps", version:"v1", resource:"deployments"}` (matching the resource the webhook registered for), - // and `requestResource: {group:"apps", version:"v1beta1", resource:"deployments"}` (indicating the resource of the original API request). - // - // See documentation for the "matchPolicy" field in the webhook configuration type. - // +optional - requestResource?: null | metav1.#GroupVersionResource @go(RequestResource,*metav1.GroupVersionResource) @protobuf(14,bytes,opt) - - // RequestSubResource is the name of the subresource of the original API request, if any (for example, "status" or "scale") - // If this is specified and differs from the value in "subResource", an equivalent match and conversion was performed. - // See documentation for the "matchPolicy" field in the webhook configuration type. - // +optional - requestSubResource?: string @go(RequestSubResource) @protobuf(15,bytes,opt) - - // Name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and - // rely on the server to generate the name. If that is the case, this field will contain an empty string. - // +optional - name?: string @go(Name) @protobuf(5,bytes,opt) - - // Namespace is the namespace associated with the request (if any). - // +optional - namespace?: string @go(Namespace) @protobuf(6,bytes,opt) - - // Operation is the operation being performed. This may be different than the operation - // requested. e.g. a patch can result in either a CREATE or UPDATE Operation. - operation: #Operation @go(Operation) @protobuf(7,bytes,opt) - - // UserInfo is information about the requesting user - userInfo: authenticationv1.#UserInfo @go(UserInfo) @protobuf(8,bytes,opt) - - // Object is the object from the incoming request. - // +optional - object?: runtime.#RawExtension @go(Object) @protobuf(9,bytes,opt) - - // OldObject is the existing object. Only populated for DELETE and UPDATE requests. - // +optional - oldObject?: runtime.#RawExtension @go(OldObject) @protobuf(10,bytes,opt) - - // DryRun indicates that modifications will definitely not be persisted for this request. - // Defaults to false. - // +optional - dryRun?: null | bool @go(DryRun,*bool) @protobuf(11,varint,opt) - - // Options is the operation option structure of the operation being performed. - // e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be - // different than the options the caller provided. e.g. for a patch request the performed - // Operation might be a CREATE, in which case the Options will a - // `meta.k8s.io/v1.CreateOptions` even though the caller provided `meta.k8s.io/v1.PatchOptions`. - // +optional - options?: runtime.#RawExtension @go(Options) @protobuf(12,bytes,opt) -} - -// AdmissionResponse describes an admission response. -#AdmissionResponse: { - // UID is an identifier for the individual request/response. - // This must be copied over from the corresponding AdmissionRequest. - uid: types.#UID @go(UID) @protobuf(1,bytes,opt) - - // Allowed indicates whether or not the admission request was permitted. - allowed: bool @go(Allowed) @protobuf(2,varint,opt) - - // Result contains extra details into why an admission request was denied. - // This field IS NOT consulted in any way if "Allowed" is "true". - // +optional - status?: null | metav1.#Status @go(Result,*metav1.Status) @protobuf(3,bytes,opt) - - // The patch body. Currently we only support "JSONPatch" which implements RFC 6902. - // +optional - patch?: bytes @go(Patch,[]byte) @protobuf(4,bytes,opt) - - // The type of Patch. Currently we only allow "JSONPatch". - // +optional - patchType?: null | #PatchType @go(PatchType,*PatchType) @protobuf(5,bytes,opt) - - // AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). - // MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with - // admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by - // the admission webhook to add additional context to the audit log for this request. - // +optional - auditAnnotations?: {[string]: string} @go(AuditAnnotations,map[string]string) @protobuf(6,bytes,opt) - - // warnings is a list of warning messages to return to the requesting API client. - // Warning messages describe a problem the client making the API request should correct or be aware of. - // Limit warnings to 120 characters if possible. - // Warnings over 256 characters and large numbers of warnings may be truncated. - // +optional - warnings?: [...string] @go(Warnings,[]string) @protobuf(7,bytes,rep) -} - -// PatchType is the type of patch being used to represent the mutated object -#PatchType: string // #enumPatchType - -#enumPatchType: - #PatchTypeJSONPatch - -#PatchTypeJSONPatch: #PatchType & "JSONPatch" - -// Operation is the type of resource operation being checked for admission control -#Operation: string // #enumOperation - -#enumOperation: - #Create | - #Update | - #Delete | - #Connect - -#Create: #Operation & "CREATE" -#Update: #Operation & "UPDATE" -#Delete: #Operation & "DELETE" -#Connect: #Operation & "CONNECT" diff --git a/cue.mod/gen/k8s.io/api/admission/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/admission/v1beta1/register_go_gen.cue deleted file mode 100644 index 68fee1d..0000000 --- a/cue.mod/gen/k8s.io/api/admission/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admission/v1beta1 - -package v1beta1 - -#GroupName: "admission.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/admission/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/admission/v1beta1/types_go_gen.cue deleted file mode 100644 index 075037c..0000000 --- a/cue.mod/gen/k8s.io/api/admission/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,172 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admission/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/types" - authenticationv1 "k8s.io/api/authentication/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -// AdmissionReview describes an admission review request/response. -#AdmissionReview: { - metav1.#TypeMeta - - // Request describes the attributes for the admission request. - // +optional - request?: null | #AdmissionRequest @go(Request,*AdmissionRequest) @protobuf(1,bytes,opt) - - // Response describes the attributes for the admission response. - // +optional - response?: null | #AdmissionResponse @go(Response,*AdmissionResponse) @protobuf(2,bytes,opt) -} - -// AdmissionRequest describes the admission.Attributes for the admission request. -#AdmissionRequest: { - // UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are - // otherwise identical (parallel requests, requests when earlier requests did not modify etc) - // The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. - // It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. - uid: types.#UID @go(UID) @protobuf(1,bytes,opt) - - // Kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale) - kind: metav1.#GroupVersionKind @go(Kind) @protobuf(2,bytes,opt) - - // Resource is the fully-qualified resource being requested (for example, v1.pods) - resource: metav1.#GroupVersionResource @go(Resource) @protobuf(3,bytes,opt) - - // SubResource is the subresource being requested, if any (for example, "status" or "scale") - // +optional - subResource?: string @go(SubResource) @protobuf(4,bytes,opt) - - // RequestKind is the fully-qualified type of the original API request (for example, v1.Pod or autoscaling.v1.Scale). - // If this is specified and differs from the value in "kind", an equivalent match and conversion was performed. - // - // For example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of - // `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]` and `matchPolicy: Equivalent`, - // an API request to apps/v1beta1 deployments would be converted and sent to the webhook - // with `kind: {group:"apps", version:"v1", kind:"Deployment"}` (matching the rule the webhook registered for), - // and `requestKind: {group:"apps", version:"v1beta1", kind:"Deployment"}` (indicating the kind of the original API request). - // - // See documentation for the "matchPolicy" field in the webhook configuration type for more details. - // +optional - requestKind?: null | metav1.#GroupVersionKind @go(RequestKind,*metav1.GroupVersionKind) @protobuf(13,bytes,opt) - - // RequestResource is the fully-qualified resource of the original API request (for example, v1.pods). - // If this is specified and differs from the value in "resource", an equivalent match and conversion was performed. - // - // For example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of - // `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]` and `matchPolicy: Equivalent`, - // an API request to apps/v1beta1 deployments would be converted and sent to the webhook - // with `resource: {group:"apps", version:"v1", resource:"deployments"}` (matching the resource the webhook registered for), - // and `requestResource: {group:"apps", version:"v1beta1", resource:"deployments"}` (indicating the resource of the original API request). - // - // See documentation for the "matchPolicy" field in the webhook configuration type. - // +optional - requestResource?: null | metav1.#GroupVersionResource @go(RequestResource,*metav1.GroupVersionResource) @protobuf(14,bytes,opt) - - // RequestSubResource is the name of the subresource of the original API request, if any (for example, "status" or "scale") - // If this is specified and differs from the value in "subResource", an equivalent match and conversion was performed. - // See documentation for the "matchPolicy" field in the webhook configuration type. - // +optional - requestSubResource?: string @go(RequestSubResource) @protobuf(15,bytes,opt) - - // Name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and - // rely on the server to generate the name. If that is the case, this field will contain an empty string. - // +optional - name?: string @go(Name) @protobuf(5,bytes,opt) - - // Namespace is the namespace associated with the request (if any). - // +optional - namespace?: string @go(Namespace) @protobuf(6,bytes,opt) - - // Operation is the operation being performed. This may be different than the operation - // requested. e.g. a patch can result in either a CREATE or UPDATE Operation. - operation: #Operation @go(Operation) @protobuf(7,bytes,opt) - - // UserInfo is information about the requesting user - userInfo: authenticationv1.#UserInfo @go(UserInfo) @protobuf(8,bytes,opt) - - // Object is the object from the incoming request. - // +optional - object?: runtime.#RawExtension @go(Object) @protobuf(9,bytes,opt) - - // OldObject is the existing object. Only populated for DELETE and UPDATE requests. - // +optional - oldObject?: runtime.#RawExtension @go(OldObject) @protobuf(10,bytes,opt) - - // DryRun indicates that modifications will definitely not be persisted for this request. - // Defaults to false. - // +optional - dryRun?: null | bool @go(DryRun,*bool) @protobuf(11,varint,opt) - - // Options is the operation option structure of the operation being performed. - // e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be - // different than the options the caller provided. e.g. for a patch request the performed - // Operation might be a CREATE, in which case the Options will a - // `meta.k8s.io/v1.CreateOptions` even though the caller provided `meta.k8s.io/v1.PatchOptions`. - // +optional - options?: runtime.#RawExtension @go(Options) @protobuf(12,bytes,opt) -} - -// AdmissionResponse describes an admission response. -#AdmissionResponse: { - // UID is an identifier for the individual request/response. - // This should be copied over from the corresponding AdmissionRequest. - uid: types.#UID @go(UID) @protobuf(1,bytes,opt) - - // Allowed indicates whether or not the admission request was permitted. - allowed: bool @go(Allowed) @protobuf(2,varint,opt) - - // Result contains extra details into why an admission request was denied. - // This field IS NOT consulted in any way if "Allowed" is "true". - // +optional - status?: null | metav1.#Status @go(Result,*metav1.Status) @protobuf(3,bytes,opt) - - // The patch body. Currently we only support "JSONPatch" which implements RFC 6902. - // +optional - patch?: bytes @go(Patch,[]byte) @protobuf(4,bytes,opt) - - // The type of Patch. Currently we only allow "JSONPatch". - // +optional - patchType?: null | #PatchType @go(PatchType,*PatchType) @protobuf(5,bytes,opt) - - // AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). - // MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with - // admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by - // the admission webhook to add additional context to the audit log for this request. - // +optional - auditAnnotations?: {[string]: string} @go(AuditAnnotations,map[string]string) @protobuf(6,bytes,opt) - - // warnings is a list of warning messages to return to the requesting API client. - // Warning messages describe a problem the client making the API request should correct or be aware of. - // Limit warnings to 120 characters if possible. - // Warnings over 256 characters and large numbers of warnings may be truncated. - // +optional - warnings?: [...string] @go(Warnings,[]string) @protobuf(7,bytes,rep) -} - -// PatchType is the type of patch being used to represent the mutated object -#PatchType: string // #enumPatchType - -#enumPatchType: - #PatchTypeJSONPatch - -#PatchTypeJSONPatch: #PatchType & "JSONPatch" - -// Operation is the type of resource operation being checked for admission control -#Operation: string // #enumOperation - -#enumOperation: - #Create | - #Update | - #Delete | - #Connect - -#Create: #Operation & "CREATE" -#Update: #Operation & "UPDATE" -#Delete: #Operation & "DELETE" -#Connect: #Operation & "CONNECT" diff --git a/cue.mod/gen/k8s.io/api/admissionregistration/v1/doc_go_gen.cue b/cue.mod/gen/k8s.io/api/admissionregistration/v1/doc_go_gen.cue deleted file mode 100644 index 5d30100..0000000 --- a/cue.mod/gen/k8s.io/api/admissionregistration/v1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admissionregistration/v1 - -// Package v1 is the v1 version of the API. -// AdmissionConfiguration and AdmissionPluginConfiguration are legacy static admission plugin configuration -// MutatingWebhookConfiguration and ValidatingWebhookConfiguration are for the -// new dynamic admission controller configuration. -package v1 diff --git a/cue.mod/gen/k8s.io/api/admissionregistration/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/admissionregistration/v1/register_go_gen.cue deleted file mode 100644 index 93348e9..0000000 --- a/cue.mod/gen/k8s.io/api/admissionregistration/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admissionregistration/v1 - -package v1 - -#GroupName: "admissionregistration.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/admissionregistration/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/admissionregistration/v1/types_go_gen.cue deleted file mode 100644 index 7038db0..0000000 --- a/cue.mod/gen/k8s.io/api/admissionregistration/v1/types_go_gen.cue +++ /dev/null @@ -1,645 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admissionregistration/v1 - -package v1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended -// to make sure that all the tuple expansions are valid. -#Rule: { - // APIGroups is the API groups the resources belong to. '*' is all groups. - // If '*' is present, the length of the slice must be one. - // Required. - // +listType=atomic - apiGroups?: [...string] @go(APIGroups,[]string) @protobuf(1,bytes,rep) - - // APIVersions is the API versions the resources belong to. '*' is all versions. - // If '*' is present, the length of the slice must be one. - // Required. - // +listType=atomic - apiVersions?: [...string] @go(APIVersions,[]string) @protobuf(2,bytes,rep) - - // Resources is a list of resources this rule applies to. - // - // For example: - // 'pods' means pods. - // 'pods/log' means the log subresource of pods. - // '*' means all resources, but not subresources. - // 'pods/*' means all subresources of pods. - // '*/scale' means all scale subresources. - // '*/*' means all resources and their subresources. - // - // If wildcard is present, the validation rule will ensure resources do not - // overlap with each other. - // - // Depending on the enclosing object, subresources might not be allowed. - // Required. - // +listType=atomic - resources?: [...string] @go(Resources,[]string) @protobuf(3,bytes,rep) - - // scope specifies the scope of this rule. - // Valid values are "Cluster", "Namespaced", and "*" - // "Cluster" means that only cluster-scoped resources will match this rule. - // Namespace API objects are cluster-scoped. - // "Namespaced" means that only namespaced resources will match this rule. - // "*" means that there are no scope restrictions. - // Subresources match the scope of their parent resource. - // Default is "*". - // - // +optional - scope?: null | #ScopeType @go(Scope,*ScopeType) @protobuf(4,bytes,rep) -} - -// ScopeType specifies a scope for a Rule. -// +enum -#ScopeType: string // #enumScopeType - -#enumScopeType: - #ClusterScope | - #NamespacedScope | - #AllScopes - -// ClusterScope means that scope is limited to cluster-scoped objects. -// Namespace objects are cluster-scoped. -#ClusterScope: #ScopeType & "Cluster" - -// NamespacedScope means that scope is limited to namespaced objects. -#NamespacedScope: #ScopeType & "Namespaced" - -// AllScopes means that all scopes are included. -#AllScopes: #ScopeType & "*" - -// FailurePolicyType specifies a failure policy that defines how unrecognized errors from the admission endpoint are handled. -// +enum -#FailurePolicyType: string // #enumFailurePolicyType - -#enumFailurePolicyType: - #Ignore | - #Fail - -// Ignore means that an error calling the webhook is ignored. -#Ignore: #FailurePolicyType & "Ignore" - -// Fail means that an error calling the webhook causes the admission to fail. -#Fail: #FailurePolicyType & "Fail" - -// MatchPolicyType specifies the type of match policy. -// +enum -#MatchPolicyType: string // #enumMatchPolicyType - -#enumMatchPolicyType: - #Exact | - #Equivalent - -// Exact means requests should only be sent to the webhook if they exactly match a given rule. -#Exact: #MatchPolicyType & "Exact" - -// Equivalent means requests should be sent to the webhook if they modify a resource listed in rules via another API group or version. -#Equivalent: #MatchPolicyType & "Equivalent" - -// SideEffectClass specifies the types of side effects a webhook may have. -// +enum -#SideEffectClass: string // #enumSideEffectClass - -#enumSideEffectClass: - #SideEffectClassUnknown | - #SideEffectClassNone | - #SideEffectClassSome | - #SideEffectClassNoneOnDryRun - -// SideEffectClassUnknown means that no information is known about the side effects of calling the webhook. -// If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail. -#SideEffectClassUnknown: #SideEffectClass & "Unknown" - -// SideEffectClassNone means that calling the webhook will have no side effects. -#SideEffectClassNone: #SideEffectClass & "None" - -// SideEffectClassSome means that calling the webhook will possibly have side effects. -// If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail. -#SideEffectClassSome: #SideEffectClass & "Some" - -// SideEffectClassNoneOnDryRun means that calling the webhook will possibly have side effects, but if the -// request being reviewed has the dry-run attribute, the side effects will be suppressed. -#SideEffectClassNoneOnDryRun: #SideEffectClass & "NoneOnDryRun" - -// ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. -#ValidatingWebhookConfiguration: { - metav1.#TypeMeta - - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Webhooks is a list of webhooks and the affected resources and operations. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - webhooks?: [...#ValidatingWebhook] @go(Webhooks,[]ValidatingWebhook) @protobuf(2,bytes,rep,name=Webhooks) -} - -// ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. -#ValidatingWebhookConfigurationList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of ValidatingWebhookConfiguration. - items: [...#ValidatingWebhookConfiguration] @go(Items,[]ValidatingWebhookConfiguration) @protobuf(2,bytes,rep) -} - -// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. -#MutatingWebhookConfiguration: { - metav1.#TypeMeta - - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Webhooks is a list of webhooks and the affected resources and operations. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - webhooks?: [...#MutatingWebhook] @go(Webhooks,[]MutatingWebhook) @protobuf(2,bytes,rep,name=Webhooks) -} - -// MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. -#MutatingWebhookConfigurationList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of MutatingWebhookConfiguration. - items: [...#MutatingWebhookConfiguration] @go(Items,[]MutatingWebhookConfiguration) @protobuf(2,bytes,rep) -} - -// ValidatingWebhook describes an admission webhook and the resources and operations it applies to. -#ValidatingWebhook: { - // The name of the admission webhook. - // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where - // "imagepolicy" is the name of the webhook, and kubernetes.io is the name - // of the organization. - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) - - // ClientConfig defines how to communicate with the hook. - // Required - clientConfig: #WebhookClientConfig @go(ClientConfig) @protobuf(2,bytes,opt) - - // Rules describes what operations on what resources/subresources the webhook cares about. - // The webhook cares about an operation if it matches _any_ Rule. - // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks - // from putting the cluster in a state which cannot be recovered from without completely - // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called - // on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - rules?: [...#RuleWithOperations] @go(Rules,[]RuleWithOperations) @protobuf(3,bytes,rep) - - // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - - // allowed values are Ignore or Fail. Defaults to Fail. - // +optional - failurePolicy?: null | #FailurePolicyType @go(FailurePolicy,*FailurePolicyType) @protobuf(4,bytes,opt,casttype=FailurePolicyType) - - // matchPolicy defines how the "rules" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - // - // Defaults to "Equivalent" - // +optional - matchPolicy?: null | #MatchPolicyType @go(MatchPolicy,*MatchPolicyType) @protobuf(9,bytes,opt,casttype=MatchPolicyType) - - // NamespaceSelector decides whether to run the webhook on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the webhook. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the webhook on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - namespaceSelector?: null | metav1.#LabelSelector @go(NamespaceSelector,*metav1.LabelSelector) @protobuf(5,bytes,opt) - - // ObjectSelector decides whether to run the webhook based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the webhook, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - objectSelector?: null | metav1.#LabelSelector @go(ObjectSelector,*metav1.LabelSelector) @protobuf(10,bytes,opt) - - // SideEffects states whether this webhook has side effects. - // Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). - // Webhooks with side effects MUST implement a reconciliation system, since a request may be - // rejected by a future step in the admission chain and the side effects therefore need to be undone. - // Requests with the dryRun attribute will be auto-rejected if they match a webhook with - // sideEffects == Unknown or Some. - sideEffects?: null | #SideEffectClass @go(SideEffects,*SideEffectClass) @protobuf(6,bytes,opt,casttype=SideEffectClass) - - // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - // the webhook call will be ignored or the API call will fail based on the - // failure policy. - // The timeout value must be between 1 and 30 seconds. - // Default to 10 seconds. - // +optional - timeoutSeconds?: null | int32 @go(TimeoutSeconds,*int32) @protobuf(7,varint,opt) - - // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - // versions the Webhook expects. API server will try to use first version in - // the list which it supports. If none of the versions specified in this list - // supported by API server, validation will fail for this object. - // If a persisted webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail - // and be subject to the failure policy. - admissionReviewVersions: [...string] @go(AdmissionReviewVersions,[]string) @protobuf(8,bytes,rep) - - // MatchConditions is a list of conditions that must be met for a request to be sent to this - // webhook. Match conditions filter requests that have already been matched by the rules, - // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. - // There are a maximum of 64 match conditions allowed. - // - // The exact matching logic is (in order): - // 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. - // 2. If ALL matchConditions evaluate to TRUE, the webhook is called. - // 3. If any matchCondition evaluates to an error (but none are FALSE): - // - If failurePolicy=Fail, reject the request - // - If failurePolicy=Ignore, the error is ignored and the webhook is skipped - // - // This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. - // - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=map - // +listMapKey=name - // +featureGate=AdmissionWebhookMatchConditions - // +optional - matchConditions?: [...#MatchCondition] @go(MatchConditions,[]MatchCondition) @protobuf(11,bytes,opt) -} - -// MutatingWebhook describes an admission webhook and the resources and operations it applies to. -#MutatingWebhook: { - // The name of the admission webhook. - // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where - // "imagepolicy" is the name of the webhook, and kubernetes.io is the name - // of the organization. - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) - - // ClientConfig defines how to communicate with the hook. - // Required - clientConfig: #WebhookClientConfig @go(ClientConfig) @protobuf(2,bytes,opt) - - // Rules describes what operations on what resources/subresources the webhook cares about. - // The webhook cares about an operation if it matches _any_ Rule. - // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks - // from putting the cluster in a state which cannot be recovered from without completely - // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called - // on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - rules?: [...#RuleWithOperations] @go(Rules,[]RuleWithOperations) @protobuf(3,bytes,rep) - - // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - - // allowed values are Ignore or Fail. Defaults to Fail. - // +optional - failurePolicy?: null | #FailurePolicyType @go(FailurePolicy,*FailurePolicyType) @protobuf(4,bytes,opt,casttype=FailurePolicyType) - - // matchPolicy defines how the "rules" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - // - // Defaults to "Equivalent" - // +optional - matchPolicy?: null | #MatchPolicyType @go(MatchPolicy,*MatchPolicyType) @protobuf(9,bytes,opt,casttype=MatchPolicyType) - - // NamespaceSelector decides whether to run the webhook on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the webhook. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the webhook on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - namespaceSelector?: null | metav1.#LabelSelector @go(NamespaceSelector,*metav1.LabelSelector) @protobuf(5,bytes,opt) - - // ObjectSelector decides whether to run the webhook based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the webhook, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - objectSelector?: null | metav1.#LabelSelector @go(ObjectSelector,*metav1.LabelSelector) @protobuf(11,bytes,opt) - - // SideEffects states whether this webhook has side effects. - // Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). - // Webhooks with side effects MUST implement a reconciliation system, since a request may be - // rejected by a future step in the admission chain and the side effects therefore need to be undone. - // Requests with the dryRun attribute will be auto-rejected if they match a webhook with - // sideEffects == Unknown or Some. - sideEffects?: null | #SideEffectClass @go(SideEffects,*SideEffectClass) @protobuf(6,bytes,opt,casttype=SideEffectClass) - - // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - // the webhook call will be ignored or the API call will fail based on the - // failure policy. - // The timeout value must be between 1 and 30 seconds. - // Default to 10 seconds. - // +optional - timeoutSeconds?: null | int32 @go(TimeoutSeconds,*int32) @protobuf(7,varint,opt) - - // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - // versions the Webhook expects. API server will try to use first version in - // the list which it supports. If none of the versions specified in this list - // supported by API server, validation will fail for this object. - // If a persisted webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail - // and be subject to the failure policy. - admissionReviewVersions: [...string] @go(AdmissionReviewVersions,[]string) @protobuf(8,bytes,rep) - - // reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. - // Allowed values are "Never" and "IfNeeded". - // - // Never: the webhook will not be called more than once in a single admission evaluation. - // - // IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation - // if the object being admitted is modified by other admission plugins after the initial webhook call. - // Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. - // Note: - // * the number of additional invocations is not guaranteed to be exactly one. - // * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. - // * webhooks that use this option may be reordered to minimize the number of additional invocations. - // * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - // - // Defaults to "Never". - // +optional - reinvocationPolicy?: null | #ReinvocationPolicyType @go(ReinvocationPolicy,*ReinvocationPolicyType) @protobuf(10,bytes,opt,casttype=ReinvocationPolicyType) - - // MatchConditions is a list of conditions that must be met for a request to be sent to this - // webhook. Match conditions filter requests that have already been matched by the rules, - // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. - // There are a maximum of 64 match conditions allowed. - // - // The exact matching logic is (in order): - // 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. - // 2. If ALL matchConditions evaluate to TRUE, the webhook is called. - // 3. If any matchCondition evaluates to an error (but none are FALSE): - // - If failurePolicy=Fail, reject the request - // - If failurePolicy=Ignore, the error is ignored and the webhook is skipped - // - // This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. - // - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=map - // +listMapKey=name - // +featureGate=AdmissionWebhookMatchConditions - // +optional - matchConditions?: [...#MatchCondition] @go(MatchConditions,[]MatchCondition) @protobuf(12,bytes,opt) -} - -// ReinvocationPolicyType specifies what type of policy the admission hook uses. -// +enum -#ReinvocationPolicyType: string // #enumReinvocationPolicyType - -#enumReinvocationPolicyType: - #NeverReinvocationPolicy | - #IfNeededReinvocationPolicy - -// NeverReinvocationPolicy indicates that the webhook must not be called more than once in a -// single admission evaluation. -#NeverReinvocationPolicy: #ReinvocationPolicyType & "Never" - -// IfNeededReinvocationPolicy indicates that the webhook may be called at least one -// additional time as part of the admission evaluation if the object being admitted is -// modified by other admission plugins after the initial webhook call. -#IfNeededReinvocationPolicy: #ReinvocationPolicyType & "IfNeeded" - -// RuleWithOperations is a tuple of Operations and Resources. It is recommended to make -// sure that all the tuple expansions are valid. -#RuleWithOperations: { - // Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * - // for all of those operations and any future admission operations that are added. - // If '*' is present, the length of the slice must be one. - // Required. - // +listType=atomic - operations?: [...#OperationType] @go(Operations,[]OperationType) @protobuf(1,bytes,rep,casttype=OperationType) - - #Rule -} - -// OperationType specifies an operation for a request. -// +enum -#OperationType: string // #enumOperationType - -#enumOperationType: - #OperationAll | - #Create | - #Update | - #Delete | - #Connect - -#OperationAll: #OperationType & "*" -#Create: #OperationType & "CREATE" -#Update: #OperationType & "UPDATE" -#Delete: #OperationType & "DELETE" -#Connect: #OperationType & "CONNECT" - -// WebhookClientConfig contains the information to make a TLS -// connection with the webhook -#WebhookClientConfig: { - // `url` gives the location of the webhook, in standard URL form - // (`scheme://host:port/path`). Exactly one of `url` or `service` - // must be specified. - // - // The `host` should not refer to a service running in the cluster; use - // the `service` field instead. The host might be resolved via external - // DNS in some apiservers (e.g., `kube-apiserver` cannot resolve - // in-cluster DNS as that would be a layering violation). `host` may - // also be an IP address. - // - // Please note that using `localhost` or `127.0.0.1` as a `host` is - // risky unless you take great care to run this webhook on all hosts - // which run an apiserver which might need to make calls to this - // webhook. Such installs are likely to be non-portable, i.e., not easy - // to turn up in a new cluster. - // - // The scheme must be "https"; the URL must begin with "https://". - // - // A path is optional, and if present may be any string permissible in - // a URL. You may use the path to pass an arbitrary string to the - // webhook, for example, a cluster identifier. - // - // Attempting to use a user or basic auth e.g. "user:password@" is not - // allowed. Fragments ("#...") and query parameters ("?...") are not - // allowed, either. - // - // +optional - url?: null | string @go(URL,*string) @protobuf(3,bytes,opt) - - // `service` is a reference to the service for this webhook. Either - // `service` or `url` must be specified. - // - // If the webhook is running within the cluster, then you should use `service`. - // - // +optional - service?: null | #ServiceReference @go(Service,*ServiceReference) @protobuf(1,bytes,opt) - - // `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. - // If unspecified, system trust roots on the apiserver are used. - // +optional - caBundle?: bytes @go(CABundle,[]byte) @protobuf(2,bytes,opt) -} - -// ServiceReference holds a reference to Service.legacy.k8s.io -#ServiceReference: { - // `namespace` is the namespace of the service. - // Required - namespace: string @go(Namespace) @protobuf(1,bytes,opt) - - // `name` is the name of the service. - // Required - name: string @go(Name) @protobuf(2,bytes,opt) - - // `path` is an optional URL path which will be sent in any request to - // this service. - // +optional - path?: null | string @go(Path,*string) @protobuf(3,bytes,opt) - - // If specified, the port on the service that hosting webhook. - // Default to 443 for backward compatibility. - // `port` should be a valid port number (1-65535, inclusive). - // +optional - port?: null | int32 @go(Port,*int32) @protobuf(4,varint,opt) -} - -// MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. -#MatchCondition: { - // Name is an identifier for this match condition, used for strategic merging of MatchConditions, - // as well as providing an identifier for logging purposes. A good name should be descriptive of - // the associated expression. - // Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and - // must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or - // '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an - // optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') - // - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) - - // Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. - // CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: - // - // 'object' - The object from the incoming request. The value is null for DELETE requests. - // 'oldObject' - The existing object. The value is null for CREATE requests. - // 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). - // 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - // 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - // request resource. - // Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ - // - // Required. - expression: string @go(Expression) @protobuf(2,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/api/admissionregistration/v1alpha1/doc_go_gen.cue b/cue.mod/gen/k8s.io/api/admissionregistration/v1alpha1/doc_go_gen.cue deleted file mode 100644 index 9503cef..0000000 --- a/cue.mod/gen/k8s.io/api/admissionregistration/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admissionregistration/v1alpha1 - -// Package v1alpha1 is the v1alpha1 version of the API. -package v1alpha1 diff --git a/cue.mod/gen/k8s.io/api/admissionregistration/v1alpha1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/admissionregistration/v1alpha1/register_go_gen.cue deleted file mode 100644 index 1d3c7e7..0000000 --- a/cue.mod/gen/k8s.io/api/admissionregistration/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admissionregistration/v1alpha1 - -package v1alpha1 - -#GroupName: "admissionregistration.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/admissionregistration/v1alpha1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/admissionregistration/v1alpha1/types_go_gen.cue deleted file mode 100644 index 1cdf876..0000000 --- a/cue.mod/gen/k8s.io/api/admissionregistration/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,679 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admissionregistration/v1alpha1 - -package v1alpha1 - -import ( - "k8s.io/api/admissionregistration/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended -// to make sure that all the tuple expansions are valid. -#Rule: v1.#Rule - -// ScopeType specifies a scope for a Rule. -// +enum -#ScopeType: v1.#ScopeType // #enumScopeType - -#enumScopeType: - #ClusterScope | - #NamespacedScope | - #AllScopes - -// ClusterScope means that scope is limited to cluster-scoped objects. -// Namespace objects are cluster-scoped. -#ClusterScope: v1.#ScopeType & "Cluster" - -// NamespacedScope means that scope is limited to namespaced objects. -#NamespacedScope: v1.#ScopeType & "Namespaced" - -// AllScopes means that all scopes are included. -#AllScopes: v1.#ScopeType & "*" - -// ParameterNotFoundActionType specifies a failure policy that defines how a binding -// is evaluated when the param referred by its perNamespaceParamRef is not found. -// +enum -#ParameterNotFoundActionType: string // #enumParameterNotFoundActionType - -#enumParameterNotFoundActionType: - #AllowAction | - #DenyAction - -// Ignore means that an error finding params for a binding is ignored -#AllowAction: #ParameterNotFoundActionType & "Allow" - -// Fail means that an error finding params for a binding is ignored -#DenyAction: #ParameterNotFoundActionType & "Deny" - -// FailurePolicyType specifies a failure policy that defines how unrecognized errors from the admission endpoint are handled. -// +enum -#FailurePolicyType: string // #enumFailurePolicyType - -#enumFailurePolicyType: - #Ignore | - #Fail - -// Ignore means that an error calling the webhook is ignored. -#Ignore: #FailurePolicyType & "Ignore" - -// Fail means that an error calling the webhook causes the admission to fail. -#Fail: #FailurePolicyType & "Fail" - -// MatchPolicyType specifies the type of match policy. -// +enum -#MatchPolicyType: string // #enumMatchPolicyType - -#enumMatchPolicyType: - #Exact | - #Equivalent - -// Exact means requests should only be sent to the webhook if they exactly match a given rule. -#Exact: #MatchPolicyType & "Exact" - -// Equivalent means requests should be sent to the webhook if they modify a resource listed in rules via another API group or version. -#Equivalent: #MatchPolicyType & "Equivalent" - -// ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. -#ValidatingAdmissionPolicy: { - metav1.#TypeMeta - - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the ValidatingAdmissionPolicy. - spec?: #ValidatingAdmissionPolicySpec @go(Spec) @protobuf(2,bytes,opt) - - // The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy - // behaves in the expected way. - // Populated by the system. - // Read-only. - // +optional - status?: #ValidatingAdmissionPolicyStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. -#ValidatingAdmissionPolicyStatus: { - // The generation observed by the controller. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(1,varint,opt) - - // The results of type checking for each expression. - // Presence of this field indicates the completion of the type checking. - // +optional - typeChecking?: null | #TypeChecking @go(TypeChecking,*TypeChecking) @protobuf(2,bytes,opt) - - // The conditions represent the latest available observations of a policy's current state. - // +optional - // +listType=map - // +listMapKey=type - conditions?: [...metav1.#Condition] @go(Conditions,[]metav1.Condition) @protobuf(3,bytes,rep) -} - -// TypeChecking contains results of type checking the expressions in the -// ValidatingAdmissionPolicy -#TypeChecking: { - // The type checking warnings for each expression. - // +optional - // +listType=atomic - expressionWarnings?: [...#ExpressionWarning] @go(ExpressionWarnings,[]ExpressionWarning) @protobuf(1,bytes,rep) -} - -// ExpressionWarning is a warning information that targets a specific expression. -#ExpressionWarning: { - // The path to the field that refers the expression. - // For example, the reference to the expression of the first item of - // validations is "spec.validations[0].expression" - fieldRef: string @go(FieldRef) @protobuf(2,bytes,opt) - - // The content of type checking information in a human-readable form. - // Each line of the warning contains the type that the expression is checked - // against, followed by the type check error from the compiler. - warning: string @go(Warning) @protobuf(3,bytes,opt) -} - -// ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. -#ValidatingAdmissionPolicyList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of ValidatingAdmissionPolicy. - items?: [...#ValidatingAdmissionPolicy] @go(Items,[]ValidatingAdmissionPolicy) @protobuf(2,bytes,rep) -} - -// ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. -#ValidatingAdmissionPolicySpec: { - // ParamKind specifies the kind of resources used to parameterize this policy. - // If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. - // If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. - // If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null. - // +optional - paramKind?: null | #ParamKind @go(ParamKind,*ParamKind) @protobuf(1,bytes,rep) - - // MatchConstraints specifies what resources this policy is designed to validate. - // The AdmissionPolicy cares about a request if it matches _all_ Constraints. - // However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API - // ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. - // Required. - matchConstraints?: null | #MatchResources @go(MatchConstraints,*MatchResources) @protobuf(2,bytes,rep) - - // Validations contain CEL expressions which is used to apply the validation. - // Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is - // required. - // +listType=atomic - // +optional - validations?: [...#Validation] @go(Validations,[]Validation) @protobuf(3,bytes,rep) - - // failurePolicy defines how to handle failures for the admission policy. Failures can - // occur from CEL expression parse errors, type check errors, runtime errors and invalid - // or mis-configured policy definitions or bindings. - // - // A policy is invalid if spec.paramKind refers to a non-existent Kind. - // A binding is invalid if spec.paramRef.name refers to a non-existent resource. - // - // failurePolicy does not define how validations that evaluate to false are handled. - // - // When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions - // define how failures are enforced. - // - // Allowed values are Ignore or Fail. Defaults to Fail. - // +optional - failurePolicy?: null | #FailurePolicyType @go(FailurePolicy,*FailurePolicyType) @protobuf(4,bytes,opt,casttype=FailurePolicyType) - - // auditAnnotations contains CEL expressions which are used to produce audit - // annotations for the audit event of the API request. - // validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is - // required. - // +listType=atomic - // +optional - auditAnnotations?: [...#AuditAnnotation] @go(AuditAnnotations,[]AuditAnnotation) @protobuf(5,bytes,rep) - - // MatchConditions is a list of conditions that must be met for a request to be validated. - // Match conditions filter requests that have already been matched by the rules, - // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. - // There are a maximum of 64 match conditions allowed. - // - // If a parameter object is provided, it can be accessed via the `params` handle in the same - // manner as validation expressions. - // - // The exact matching logic is (in order): - // 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. - // 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. - // 3. If any matchCondition evaluates to an error (but none are FALSE): - // - If failurePolicy=Fail, reject the request - // - If failurePolicy=Ignore, the policy is skipped - // - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=map - // +listMapKey=name - // +optional - matchConditions?: [...#MatchCondition] @go(MatchConditions,[]MatchCondition) @protobuf(6,bytes,rep) - - // Variables contain definitions of variables that can be used in composition of other expressions. - // Each variable is defined as a named CEL expression. - // The variables defined here will be available under `variables` in other expressions of the policy - // except MatchConditions because MatchConditions are evaluated before the rest of the policy. - // - // The expression of a variable can refer to other variables defined earlier in the list but not those after. - // Thus, Variables must be sorted by the order of first appearance and acyclic. - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=map - // +listMapKey=name - // +optional - variables: [...#Variable] @go(Variables,[]Variable) @protobuf(7,bytes,rep) -} - -#MatchCondition: v1.#MatchCondition - -// ParamKind is a tuple of Group Kind and Version. -// +structType=atomic -#ParamKind: { - // APIVersion is the API group version the resources belong to. - // In format of "group/version". - // Required. - apiVersion?: string @go(APIVersion) @protobuf(1,bytes,rep) - - // Kind is the API kind the resources belong to. - // Required. - kind?: string @go(Kind) @protobuf(2,bytes,rep) -} - -// Validation specifies the CEL expression which is used to apply the validation. -#Validation: { - // Expression represents the expression which will be evaluated by CEL. - // ref: https://github.com/google/cel-spec - // CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - // - // - 'object' - The object from the incoming request. The value is null for DELETE requests. - // - 'oldObject' - The existing object. The value is null for CREATE requests. - // - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - // - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - // - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - // - 'variables' - Map of composited variables, from its name to its lazily evaluated value. - // For example, a variable named 'foo' can be accessed as 'variables.foo'. - // - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - // - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - // request resource. - // - // The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the - // object. No other metadata properties are accessible. - // - // Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. - // Accessible property names are escaped according to the following rules when accessed in the expression: - // - '__' escapes to '__underscores__' - // - '.' escapes to '__dot__' - // - '-' escapes to '__dash__' - // - '/' escapes to '__slash__' - // - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: - // "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", - // "import", "let", "loop", "package", "namespace", "return". - // Examples: - // - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} - // - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} - // - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} - // - // Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. - // Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - // - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and - // non-intersecting elements in `Y` are appended, retaining their partial order. - // - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values - // are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with - // non-intersecting keys are appended, retaining their partial order. - // Required. - expression: string @go(Expression) @protobuf(1,bytes,opt,name=Expression) - - // Message represents the message displayed when validation fails. The message is required if the Expression contains - // line breaks. The message must not contain line breaks. - // If unset, the message is "failed rule: {Rule}". - // e.g. "must be a URL with the host matching spec.host" - // If the Expression contains line breaks. Message is required. - // The message must not contain line breaks. - // If unset, the message is "failed Expression: {Expression}". - // +optional - message?: string @go(Message) @protobuf(2,bytes,opt) - - // Reason represents a machine-readable description of why this validation failed. - // If this is the first validation in the list to fail, this reason, as well as the - // corresponding HTTP response code, are used in the - // HTTP response to the client. - // The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". - // If not set, StatusReasonInvalid is used in the response to the client. - // +optional - reason?: null | metav1.#StatusReason @go(Reason,*metav1.StatusReason) @protobuf(3,bytes,opt) - - // messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. - // Since messageExpression is used as a failure message, it must evaluate to a string. - // If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. - // If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced - // as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string - // that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and - // the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. - // messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. - // Example: - // "object.x must be less than max ("+string(params.max)+")" - // +optional - messageExpression?: string @go(MessageExpression) @protobuf(4,bytes,opt) -} - -// Variable is the definition of a variable that is used for composition. -#Variable: { - // Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. - // The variable can be accessed in other expressions through `variables` - // For example, if name is "foo", the variable will be available as `variables.foo` - name: string @go(Name) @protobuf(1,bytes,opt,name=Name) - - // Expression is the expression that will be evaluated as the value of the variable. - // The CEL expression has access to the same identifiers as the CEL expressions in Validation. - expression: string @go(Expression) @protobuf(2,bytes,opt,name=Expression) -} - -// AuditAnnotation describes how to produce an audit annotation for an API request. -#AuditAnnotation: { - // key specifies the audit annotation key. The audit annotation keys of - // a ValidatingAdmissionPolicy must be unique. The key must be a qualified - // name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. - // - // The key is combined with the resource name of the - // ValidatingAdmissionPolicy to construct an audit annotation key: - // "{ValidatingAdmissionPolicy name}/{key}". - // - // If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy - // and the same audit annotation key, the annotation key will be identical. - // In this case, the first annotation written with the key will be included - // in the audit event and all subsequent annotations with the same key - // will be discarded. - // - // Required. - key: string @go(Key) @protobuf(1,bytes,opt) - - // valueExpression represents the expression which is evaluated by CEL to - // produce an audit annotation value. The expression must evaluate to either - // a string or null value. If the expression evaluates to a string, the - // audit annotation is included with the string value. If the expression - // evaluates to null or empty string the audit annotation will be omitted. - // The valueExpression may be no longer than 5kb in length. - // If the result of the valueExpression is more than 10kb in length, it - // will be truncated to 10kb. - // - // If multiple ValidatingAdmissionPolicyBinding resources match an - // API request, then the valueExpression will be evaluated for - // each binding. All unique values produced by the valueExpressions - // will be joined together in a comma-separated list. - // - // Required. - valueExpression: string @go(ValueExpression) @protobuf(2,bytes,opt) -} - -// ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. -// ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. -// -// For a given admission request, each binding will cause its policy to be -// evaluated N times, where N is 1 for policies/bindings that don't use -// params, otherwise N is the number of parameters selected by the binding. -// -// The CEL expressions of a policy must have a computed CEL cost below the maximum -// CEL budget. Each evaluation of the policy is given an independent CEL cost budget. -// Adding/removing policies, bindings, or params can not affect whether a -// given (policy, binding, param) combination is within its own CEL budget. -#ValidatingAdmissionPolicyBinding: { - metav1.#TypeMeta - - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the ValidatingAdmissionPolicyBinding. - spec?: #ValidatingAdmissionPolicyBindingSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. -#ValidatingAdmissionPolicyBindingList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of PolicyBinding. - items?: [...#ValidatingAdmissionPolicyBinding] @go(Items,[]ValidatingAdmissionPolicyBinding) @protobuf(2,bytes,rep) -} - -// ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. -#ValidatingAdmissionPolicyBindingSpec: { - // PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. - // If the referenced resource does not exist, this binding is considered invalid and will be ignored - // Required. - policyName?: string @go(PolicyName) @protobuf(1,bytes,rep) - - // paramRef specifies the parameter resource used to configure the admission control policy. - // It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. - // If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. - // If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param. - // +optional - paramRef?: null | #ParamRef @go(ParamRef,*ParamRef) @protobuf(2,bytes,rep) - - // MatchResources declares what resources match this binding and will be validated by it. - // Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. - // If this is unset, all resources matched by the policy are validated by this binding - // When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. - // Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required. - // +optional - matchResources?: null | #MatchResources @go(MatchResources,*MatchResources) @protobuf(3,bytes,rep) - - // validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. - // If a validation evaluates to false it is always enforced according to these actions. - // - // Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according - // to these actions only if the FailurePolicy is set to Fail, otherwise the failures are - // ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. - // - // validationActions is declared as a set of action values. Order does - // not matter. validationActions may not contain duplicates of the same action. - // - // The supported actions values are: - // - // "Deny" specifies that a validation failure results in a denied request. - // - // "Warn" specifies that a validation failure is reported to the request client - // in HTTP Warning headers, with a warning code of 299. Warnings can be sent - // both for allowed or denied admission responses. - // - // "Audit" specifies that a validation failure is included in the published - // audit event for the request. The audit event will contain a - // `validation.policy.admission.k8s.io/validation_failure` audit annotation - // with a value containing the details of the validation failures, formatted as - // a JSON list of objects, each with the following fields: - // - message: The validation failure message string - // - policy: The resource name of the ValidatingAdmissionPolicy - // - binding: The resource name of the ValidatingAdmissionPolicyBinding - // - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - // - validationActions: The enforcement actions enacted for the validation failure - // Example audit annotation: - // `"validation.policy.admission.k8s.io/validation_failure": "[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]"` - // - // Clients should expect to handle additional values by ignoring - // any values not recognized. - // - // "Deny" and "Warn" may not be used together since this combination - // needlessly duplicates the validation failure both in the - // API response body and the HTTP warning headers. - // - // Required. - // +listType=set - validationActions?: [...#ValidationAction] @go(ValidationActions,[]ValidationAction) @protobuf(4,bytes,rep) -} - -// ParamRef describes how to locate the params to be used as input to -// expressions of rules applied by a policy binding. -// +structType=atomic -#ParamRef: { - // `name` is the name of the resource being referenced. - // - // `name` and `selector` are mutually exclusive properties. If one is set, - // the other must be unset. - // - // +optional - name?: string @go(Name) @protobuf(1,bytes,rep) - - // namespace is the namespace of the referenced resource. Allows limiting - // the search for params to a specific namespace. Applies to both `name` and - // `selector` fields. - // - // A per-namespace parameter may be used by specifying a namespace-scoped - // `paramKind` in the policy and leaving this field empty. - // - // - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this - // field results in a configuration error. - // - // - If `paramKind` is namespace-scoped, the namespace of the object being - // evaluated for admission will be used when this field is left unset. Take - // care that if this is left empty the binding must not match any cluster-scoped - // resources, which will result in an error. - // - // +optional - namespace?: string @go(Namespace) @protobuf(2,bytes,rep) - - // selector can be used to match multiple param objects based on their labels. - // Supply selector: {} to match all resources of the ParamKind. - // - // If multiple params are found, they are all evaluated with the policy expressions - // and the results are ANDed together. - // - // One of `name` or `selector` must be set, but `name` and `selector` are - // mutually exclusive properties. If one is set, the other must be unset. - // - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(3,bytes,rep) - - // `parameterNotFoundAction` controls the behavior of the binding when the resource - // exists, and name or selector is valid, but there are no parameters - // matched by the binding. If the value is set to `Allow`, then no - // matched parameters will be treated as successful validation by the binding. - // If set to `Deny`, then no matched parameters will be subject to the - // `failurePolicy` of the policy. - // - // Allowed values are `Allow` or `Deny` - // Default to `Deny` - // +optional - parameterNotFoundAction?: null | #ParameterNotFoundActionType @go(ParameterNotFoundAction,*ParameterNotFoundActionType) @protobuf(4,bytes,rep) -} - -// MatchResources decides whether to run the admission control policy on an object based -// on whether it meets the match criteria. -// The exclude rules take precedence over include rules (if a resource matches both, it is excluded) -// +structType=atomic -#MatchResources: { - // NamespaceSelector decides whether to run the admission control policy on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the policy. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the policy on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - namespaceSelector?: null | metav1.#LabelSelector @go(NamespaceSelector,*metav1.LabelSelector) @protobuf(1,bytes,opt) - - // ObjectSelector decides whether to run the validation based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the cel validation, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - objectSelector?: null | metav1.#LabelSelector @go(ObjectSelector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. - // The policy cares about an operation if it matches _any_ Rule. - // +listType=atomic - // +optional - resourceRules?: [...#NamedRuleWithOperations] @go(ResourceRules,[]NamedRuleWithOperations) @protobuf(3,bytes,rep) - - // ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. - // The exclude rules take precedence over include rules (if a resource matches both, it is excluded) - // +listType=atomic - // +optional - excludeResourceRules?: [...#NamedRuleWithOperations] @go(ExcludeResourceRules,[]NamedRuleWithOperations) @protobuf(4,bytes,rep) - - // matchPolicy defines how the "MatchResources" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. - // - // Defaults to "Equivalent" - // +optional - matchPolicy?: null | #MatchPolicyType @go(MatchPolicy,*MatchPolicyType) @protobuf(7,bytes,opt,casttype=MatchPolicyType) -} - -// ValidationAction specifies a policy enforcement action. -// +enum -#ValidationAction: string // #enumValidationAction - -#enumValidationAction: - #Deny | - #Warn | - #Audit - -// Deny specifies that a validation failure results in a denied request. -#Deny: #ValidationAction & "Deny" - -// Warn specifies that a validation failure is reported to the request client -// in HTTP Warning headers, with a warning code of 299. Warnings can be sent -// both for allowed or denied admission responses. -#Warn: #ValidationAction & "Warn" - -// Audit specifies that a validation failure is included in the published -// audit event for the request. The audit event will contain a -// `validation.policy.admission.k8s.io/validation_failure` audit annotation -// with a value containing the details of the validation failure. -#Audit: #ValidationAction & "Audit" - -// NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. -// +structType=atomic -#NamedRuleWithOperations: { - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - // +listType=atomic - // +optional - resourceNames?: [...string] @go(ResourceNames,[]string) @protobuf(1,bytes,rep) - - v1.#RuleWithOperations -} - -// RuleWithOperations is a tuple of Operations and Resources. It is recommended to make -// sure that all the tuple expansions are valid. -#RuleWithOperations: v1.#RuleWithOperations - -// OperationType specifies an operation for a request. -// +enum -#OperationType: v1.#OperationType // #enumOperationType - -#enumOperationType: - #OperationAll | - #Create | - #Update | - #Delete | - #Connect - -#OperationAll: v1.#OperationType & "*" -#Create: v1.#OperationType & "CREATE" -#Update: v1.#OperationType & "UPDATE" -#Delete: v1.#OperationType & "DELETE" -#Connect: v1.#OperationType & "CONNECT" diff --git a/cue.mod/gen/k8s.io/api/admissionregistration/v1beta1/doc_go_gen.cue b/cue.mod/gen/k8s.io/api/admissionregistration/v1beta1/doc_go_gen.cue deleted file mode 100644 index 0375153..0000000 --- a/cue.mod/gen/k8s.io/api/admissionregistration/v1beta1/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admissionregistration/v1beta1 - -// Package v1beta1 is the v1beta1 version of the API. -// AdmissionConfiguration and AdmissionPluginConfiguration are legacy static admission plugin configuration -// MutatingWebhookConfiguration and ValidatingWebhookConfiguration are for the -// new dynamic admission controller configuration. -package v1beta1 diff --git a/cue.mod/gen/k8s.io/api/admissionregistration/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/admissionregistration/v1beta1/register_go_gen.cue deleted file mode 100644 index 0185e26..0000000 --- a/cue.mod/gen/k8s.io/api/admissionregistration/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admissionregistration/v1beta1 - -package v1beta1 - -#GroupName: "admissionregistration.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/admissionregistration/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/admissionregistration/v1beta1/types_go_gen.cue deleted file mode 100644 index 118e130..0000000 --- a/cue.mod/gen/k8s.io/api/admissionregistration/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,1209 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/admissionregistration/v1beta1 - -package v1beta1 - -import ( - "k8s.io/api/admissionregistration/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended -// to make sure that all the tuple expansions are valid. -#Rule: v1.#Rule - -// ScopeType specifies a scope for a Rule. -#ScopeType: v1.#ScopeType // #enumScopeType - -#enumScopeType: - #ClusterScope | - #NamespacedScope | - #AllScopes - -// ClusterScope means that scope is limited to cluster-scoped objects. -// Namespace objects are cluster-scoped. -#ClusterScope: v1.#ScopeType & "Cluster" - -// NamespacedScope means that scope is limited to namespaced objects. -#NamespacedScope: v1.#ScopeType & "Namespaced" - -// AllScopes means that all scopes are included. -#AllScopes: v1.#ScopeType & "*" - -// ParameterNotFoundActionType specifies a failure policy that defines how a binding -// is evaluated when the param referred by its perNamespaceParamRef is not found. -#ParameterNotFoundActionType: string // #enumParameterNotFoundActionType - -#enumParameterNotFoundActionType: - #AllowAction | - #DenyAction - -// Allow means all requests will be admitted if no param resources -// could be found. -#AllowAction: #ParameterNotFoundActionType & "Allow" - -// Deny means all requests will be denied if no param resources are found. -#DenyAction: #ParameterNotFoundActionType & "Deny" - -// FailurePolicyType specifies a failure policy that defines how unrecognized errors from the admission endpoint are handled. -#FailurePolicyType: string // #enumFailurePolicyType - -#enumFailurePolicyType: - #Ignore | - #Fail - -// Ignore means that an error calling the webhook is ignored. -#Ignore: #FailurePolicyType & "Ignore" - -// Fail means that an error calling the webhook causes the admission to fail. -#Fail: #FailurePolicyType & "Fail" - -// MatchPolicyType specifies the type of match policy -#MatchPolicyType: string // #enumMatchPolicyType - -#enumMatchPolicyType: - #Exact | - #Equivalent - -// Exact means requests should only be sent to the webhook if they exactly match a given rule -#Exact: #MatchPolicyType & "Exact" - -// Equivalent means requests should be sent to the webhook if they modify a resource listed in rules via another API group or version. -#Equivalent: #MatchPolicyType & "Equivalent" - -// SideEffectClass specifies the types of side effects a webhook may have. -#SideEffectClass: string // #enumSideEffectClass - -#enumSideEffectClass: - #SideEffectClassUnknown | - #SideEffectClassNone | - #SideEffectClassSome | - #SideEffectClassNoneOnDryRun - -// SideEffectClassUnknown means that no information is known about the side effects of calling the webhook. -// If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail. -#SideEffectClassUnknown: #SideEffectClass & "Unknown" - -// SideEffectClassNone means that calling the webhook will have no side effects. -#SideEffectClassNone: #SideEffectClass & "None" - -// SideEffectClassSome means that calling the webhook will possibly have side effects. -// If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail. -#SideEffectClassSome: #SideEffectClass & "Some" - -// SideEffectClassNoneOnDryRun means that calling the webhook will possibly have side effects, but if the -// request being reviewed has the dry-run attribute, the side effects will be suppressed. -#SideEffectClassNoneOnDryRun: #SideEffectClass & "NoneOnDryRun" - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +k8s:prerelease-lifecycle-gen:introduced=1.28 -// ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. -#ValidatingAdmissionPolicy: { - metav1.#TypeMeta - - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the ValidatingAdmissionPolicy. - spec?: #ValidatingAdmissionPolicySpec @go(Spec) @protobuf(2,bytes,opt) - - // The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy - // behaves in the expected way. - // Populated by the system. - // Read-only. - // +optional - status?: #ValidatingAdmissionPolicyStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. -#ValidatingAdmissionPolicyStatus: { - // The generation observed by the controller. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(1,varint,opt) - - // The results of type checking for each expression. - // Presence of this field indicates the completion of the type checking. - // +optional - typeChecking?: null | #TypeChecking @go(TypeChecking,*TypeChecking) @protobuf(2,bytes,opt) - - // The conditions represent the latest available observations of a policy's current state. - // +optional - // +listType=map - // +listMapKey=type - conditions?: [...metav1.#Condition] @go(Conditions,[]metav1.Condition) @protobuf(3,bytes,rep) -} - -// ValidatingAdmissionPolicyConditionType is the condition type of admission validation policy. -#ValidatingAdmissionPolicyConditionType: string - -// TypeChecking contains results of type checking the expressions in the -// ValidatingAdmissionPolicy -#TypeChecking: { - // The type checking warnings for each expression. - // +optional - // +listType=atomic - expressionWarnings?: [...#ExpressionWarning] @go(ExpressionWarnings,[]ExpressionWarning) @protobuf(1,bytes,rep) -} - -// ExpressionWarning is a warning information that targets a specific expression. -#ExpressionWarning: { - // The path to the field that refers the expression. - // For example, the reference to the expression of the first item of - // validations is "spec.validations[0].expression" - fieldRef: string @go(FieldRef) @protobuf(2,bytes,opt) - - // The content of type checking information in a human-readable form. - // Each line of the warning contains the type that the expression is checked - // against, followed by the type check error from the compiler. - warning: string @go(Warning) @protobuf(3,bytes,opt) -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +k8s:prerelease-lifecycle-gen:introduced=1.28 -// ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. -#ValidatingAdmissionPolicyList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of ValidatingAdmissionPolicy. - items?: [...#ValidatingAdmissionPolicy] @go(Items,[]ValidatingAdmissionPolicy) @protobuf(2,bytes,rep) -} - -// ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. -#ValidatingAdmissionPolicySpec: { - // ParamKind specifies the kind of resources used to parameterize this policy. - // If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. - // If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. - // If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null. - // +optional - paramKind?: null | #ParamKind @go(ParamKind,*ParamKind) @protobuf(1,bytes,rep) - - // MatchConstraints specifies what resources this policy is designed to validate. - // The AdmissionPolicy cares about a request if it matches _all_ Constraints. - // However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API - // ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. - // Required. - matchConstraints?: null | #MatchResources @go(MatchConstraints,*MatchResources) @protobuf(2,bytes,rep) - - // Validations contain CEL expressions which is used to apply the validation. - // Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is - // required. - // +listType=atomic - // +optional - validations?: [...#Validation] @go(Validations,[]Validation) @protobuf(3,bytes,rep) - - // failurePolicy defines how to handle failures for the admission policy. Failures can - // occur from CEL expression parse errors, type check errors, runtime errors and invalid - // or mis-configured policy definitions or bindings. - // - // A policy is invalid if spec.paramKind refers to a non-existent Kind. - // A binding is invalid if spec.paramRef.name refers to a non-existent resource. - // - // failurePolicy does not define how validations that evaluate to false are handled. - // - // When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions - // define how failures are enforced. - // - // Allowed values are Ignore or Fail. Defaults to Fail. - // +optional - failurePolicy?: null | #FailurePolicyType @go(FailurePolicy,*FailurePolicyType) @protobuf(4,bytes,opt,casttype=FailurePolicyType) - - // auditAnnotations contains CEL expressions which are used to produce audit - // annotations for the audit event of the API request. - // validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is - // required. - // +listType=atomic - // +optional - auditAnnotations?: [...#AuditAnnotation] @go(AuditAnnotations,[]AuditAnnotation) @protobuf(5,bytes,rep) - - // MatchConditions is a list of conditions that must be met for a request to be validated. - // Match conditions filter requests that have already been matched by the rules, - // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. - // There are a maximum of 64 match conditions allowed. - // - // If a parameter object is provided, it can be accessed via the `params` handle in the same - // manner as validation expressions. - // - // The exact matching logic is (in order): - // 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. - // 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. - // 3. If any matchCondition evaluates to an error (but none are FALSE): - // - If failurePolicy=Fail, reject the request - // - If failurePolicy=Ignore, the policy is skipped - // - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=map - // +listMapKey=name - // +optional - matchConditions?: [...#MatchCondition] @go(MatchConditions,[]MatchCondition) @protobuf(6,bytes,rep) - - // Variables contain definitions of variables that can be used in composition of other expressions. - // Each variable is defined as a named CEL expression. - // The variables defined here will be available under `variables` in other expressions of the policy - // except MatchConditions because MatchConditions are evaluated before the rest of the policy. - // - // The expression of a variable can refer to other variables defined earlier in the list but not those after. - // Thus, Variables must be sorted by the order of first appearance and acyclic. - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=map - // +listMapKey=name - // +optional - variables: [...#Variable] @go(Variables,[]Variable) @protobuf(7,bytes,rep) -} - -// ParamKind is a tuple of Group Kind and Version. -// +structType=atomic -#ParamKind: { - // APIVersion is the API group version the resources belong to. - // In format of "group/version". - // Required. - apiVersion?: string @go(APIVersion) @protobuf(1,bytes,rep) - - // Kind is the API kind the resources belong to. - // Required. - kind?: string @go(Kind) @protobuf(2,bytes,rep) -} - -// Validation specifies the CEL expression which is used to apply the validation. -#Validation: { - // Expression represents the expression which will be evaluated by CEL. - // ref: https://github.com/google/cel-spec - // CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - // - // - 'object' - The object from the incoming request. The value is null for DELETE requests. - // - 'oldObject' - The existing object. The value is null for CREATE requests. - // - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - // - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - // - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - // - 'variables' - Map of composited variables, from its name to its lazily evaluated value. - // For example, a variable named 'foo' can be accessed as 'variables.foo'. - // - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - // - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - // request resource. - // - // The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the - // object. No other metadata properties are accessible. - // - // Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. - // Accessible property names are escaped according to the following rules when accessed in the expression: - // - '__' escapes to '__underscores__' - // - '.' escapes to '__dot__' - // - '-' escapes to '__dash__' - // - '/' escapes to '__slash__' - // - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: - // "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", - // "import", "let", "loop", "package", "namespace", "return". - // Examples: - // - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} - // - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} - // - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} - // - // Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. - // Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - // - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and - // non-intersecting elements in `Y` are appended, retaining their partial order. - // - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values - // are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with - // non-intersecting keys are appended, retaining their partial order. - // Required. - expression: string @go(Expression) @protobuf(1,bytes,opt,name=Expression) - - // Message represents the message displayed when validation fails. The message is required if the Expression contains - // line breaks. The message must not contain line breaks. - // If unset, the message is "failed rule: {Rule}". - // e.g. "must be a URL with the host matching spec.host" - // If the Expression contains line breaks. Message is required. - // The message must not contain line breaks. - // If unset, the message is "failed Expression: {Expression}". - // +optional - message?: string @go(Message) @protobuf(2,bytes,opt) - - // Reason represents a machine-readable description of why this validation failed. - // If this is the first validation in the list to fail, this reason, as well as the - // corresponding HTTP response code, are used in the - // HTTP response to the client. - // The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". - // If not set, StatusReasonInvalid is used in the response to the client. - // +optional - reason?: null | metav1.#StatusReason @go(Reason,*metav1.StatusReason) @protobuf(3,bytes,opt) - - // messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. - // Since messageExpression is used as a failure message, it must evaluate to a string. - // If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. - // If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced - // as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string - // that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and - // the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. - // messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. - // Example: - // "object.x must be less than max ("+string(params.max)+")" - // +optional - messageExpression?: string @go(MessageExpression) @protobuf(4,bytes,opt) -} - -// Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. -// +structType=atomic -#Variable: { - // Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. - // The variable can be accessed in other expressions through `variables` - // For example, if name is "foo", the variable will be available as `variables.foo` - name: string @go(Name) @protobuf(1,bytes,opt,name=Name) - - // Expression is the expression that will be evaluated as the value of the variable. - // The CEL expression has access to the same identifiers as the CEL expressions in Validation. - expression: string @go(Expression) @protobuf(2,bytes,opt,name=Expression) -} - -// AuditAnnotation describes how to produce an audit annotation for an API request. -#AuditAnnotation: { - // key specifies the audit annotation key. The audit annotation keys of - // a ValidatingAdmissionPolicy must be unique. The key must be a qualified - // name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. - // - // The key is combined with the resource name of the - // ValidatingAdmissionPolicy to construct an audit annotation key: - // "{ValidatingAdmissionPolicy name}/{key}". - // - // If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy - // and the same audit annotation key, the annotation key will be identical. - // In this case, the first annotation written with the key will be included - // in the audit event and all subsequent annotations with the same key - // will be discarded. - // - // Required. - key: string @go(Key) @protobuf(1,bytes,opt) - - // valueExpression represents the expression which is evaluated by CEL to - // produce an audit annotation value. The expression must evaluate to either - // a string or null value. If the expression evaluates to a string, the - // audit annotation is included with the string value. If the expression - // evaluates to null or empty string the audit annotation will be omitted. - // The valueExpression may be no longer than 5kb in length. - // If the result of the valueExpression is more than 10kb in length, it - // will be truncated to 10kb. - // - // If multiple ValidatingAdmissionPolicyBinding resources match an - // API request, then the valueExpression will be evaluated for - // each binding. All unique values produced by the valueExpressions - // will be joined together in a comma-separated list. - // - // Required. - valueExpression: string @go(ValueExpression) @protobuf(2,bytes,opt) -} - -// ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. -// ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. -// -// For a given admission request, each binding will cause its policy to be -// evaluated N times, where N is 1 for policies/bindings that don't use -// params, otherwise N is the number of parameters selected by the binding. -// -// The CEL expressions of a policy must have a computed CEL cost below the maximum -// CEL budget. Each evaluation of the policy is given an independent CEL cost budget. -// Adding/removing policies, bindings, or params can not affect whether a -// given (policy, binding, param) combination is within its own CEL budget. -#ValidatingAdmissionPolicyBinding: { - metav1.#TypeMeta - - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the ValidatingAdmissionPolicyBinding. - spec?: #ValidatingAdmissionPolicyBindingSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. -#ValidatingAdmissionPolicyBindingList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of PolicyBinding. - items?: [...#ValidatingAdmissionPolicyBinding] @go(Items,[]ValidatingAdmissionPolicyBinding) @protobuf(2,bytes,rep) -} - -// ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. -#ValidatingAdmissionPolicyBindingSpec: { - // PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. - // If the referenced resource does not exist, this binding is considered invalid and will be ignored - // Required. - policyName?: string @go(PolicyName) @protobuf(1,bytes,rep) - - // paramRef specifies the parameter resource used to configure the admission control policy. - // It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. - // If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. - // If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param. - // +optional - paramRef?: null | #ParamRef @go(ParamRef,*ParamRef) @protobuf(2,bytes,rep) - - // MatchResources declares what resources match this binding and will be validated by it. - // Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. - // If this is unset, all resources matched by the policy are validated by this binding - // When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. - // Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required. - // +optional - matchResources?: null | #MatchResources @go(MatchResources,*MatchResources) @protobuf(3,bytes,rep) - - // validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. - // If a validation evaluates to false it is always enforced according to these actions. - // - // Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according - // to these actions only if the FailurePolicy is set to Fail, otherwise the failures are - // ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. - // - // validationActions is declared as a set of action values. Order does - // not matter. validationActions may not contain duplicates of the same action. - // - // The supported actions values are: - // - // "Deny" specifies that a validation failure results in a denied request. - // - // "Warn" specifies that a validation failure is reported to the request client - // in HTTP Warning headers, with a warning code of 299. Warnings can be sent - // both for allowed or denied admission responses. - // - // "Audit" specifies that a validation failure is included in the published - // audit event for the request. The audit event will contain a - // `validation.policy.admission.k8s.io/validation_failure` audit annotation - // with a value containing the details of the validation failures, formatted as - // a JSON list of objects, each with the following fields: - // - message: The validation failure message string - // - policy: The resource name of the ValidatingAdmissionPolicy - // - binding: The resource name of the ValidatingAdmissionPolicyBinding - // - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - // - validationActions: The enforcement actions enacted for the validation failure - // Example audit annotation: - // `"validation.policy.admission.k8s.io/validation_failure": "[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]"` - // - // Clients should expect to handle additional values by ignoring - // any values not recognized. - // - // "Deny" and "Warn" may not be used together since this combination - // needlessly duplicates the validation failure both in the - // API response body and the HTTP warning headers. - // - // Required. - // +listType=set - validationActions?: [...#ValidationAction] @go(ValidationActions,[]ValidationAction) @protobuf(4,bytes,rep) -} - -// ParamRef describes how to locate the params to be used as input to -// expressions of rules applied by a policy binding. -// +structType=atomic -#ParamRef: { - // name is the name of the resource being referenced. - // - // One of `name` or `selector` must be set, but `name` and `selector` are - // mutually exclusive properties. If one is set, the other must be unset. - // - // A single parameter used for all admission requests can be configured - // by setting the `name` field, leaving `selector` blank, and setting namespace - // if `paramKind` is namespace-scoped. - // - name?: string @go(Name) @protobuf(1,bytes,rep) - - // namespace is the namespace of the referenced resource. Allows limiting - // the search for params to a specific namespace. Applies to both `name` and - // `selector` fields. - // - // A per-namespace parameter may be used by specifying a namespace-scoped - // `paramKind` in the policy and leaving this field empty. - // - // - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this - // field results in a configuration error. - // - // - If `paramKind` is namespace-scoped, the namespace of the object being - // evaluated for admission will be used when this field is left unset. Take - // care that if this is left empty the binding must not match any cluster-scoped - // resources, which will result in an error. - // - // +optional - namespace?: string @go(Namespace) @protobuf(2,bytes,rep) - - // selector can be used to match multiple param objects based on their labels. - // Supply selector: {} to match all resources of the ParamKind. - // - // If multiple params are found, they are all evaluated with the policy expressions - // and the results are ANDed together. - // - // One of `name` or `selector` must be set, but `name` and `selector` are - // mutually exclusive properties. If one is set, the other must be unset. - // - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(3,bytes,rep) - - // `parameterNotFoundAction` controls the behavior of the binding when the resource - // exists, and name or selector is valid, but there are no parameters - // matched by the binding. If the value is set to `Allow`, then no - // matched parameters will be treated as successful validation by the binding. - // If set to `Deny`, then no matched parameters will be subject to the - // `failurePolicy` of the policy. - // - // Allowed values are `Allow` or `Deny` - // - // Required - parameterNotFoundAction?: null | #ParameterNotFoundActionType @go(ParameterNotFoundAction,*ParameterNotFoundActionType) @protobuf(4,bytes,rep) -} - -// MatchResources decides whether to run the admission control policy on an object based -// on whether it meets the match criteria. -// The exclude rules take precedence over include rules (if a resource matches both, it is excluded) -// +structType=atomic -#MatchResources: { - // NamespaceSelector decides whether to run the admission control policy on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the policy. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the policy on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - namespaceSelector?: null | metav1.#LabelSelector @go(NamespaceSelector,*metav1.LabelSelector) @protobuf(1,bytes,opt) - - // ObjectSelector decides whether to run the validation based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the cel validation, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - objectSelector?: null | metav1.#LabelSelector @go(ObjectSelector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. - // The policy cares about an operation if it matches _any_ Rule. - // +listType=atomic - // +optional - resourceRules?: [...#NamedRuleWithOperations] @go(ResourceRules,[]NamedRuleWithOperations) @protobuf(3,bytes,rep) - - // ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. - // The exclude rules take precedence over include rules (if a resource matches both, it is excluded) - // +listType=atomic - // +optional - excludeResourceRules?: [...#NamedRuleWithOperations] @go(ExcludeResourceRules,[]NamedRuleWithOperations) @protobuf(4,bytes,rep) - - // matchPolicy defines how the "MatchResources" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. - // - // Defaults to "Equivalent" - // +optional - matchPolicy?: null | #MatchPolicyType @go(MatchPolicy,*MatchPolicyType) @protobuf(7,bytes,opt,casttype=MatchPolicyType) -} - -// ValidationAction specifies a policy enforcement action. -// +enum -#ValidationAction: string // #enumValidationAction - -#enumValidationAction: - #Deny | - #Warn | - #Audit - -// Deny specifies that a validation failure results in a denied request. -#Deny: #ValidationAction & "Deny" - -// Warn specifies that a validation failure is reported to the request client -// in HTTP Warning headers, with a warning code of 299. Warnings can be sent -// both for allowed or denied admission responses. -#Warn: #ValidationAction & "Warn" - -// Audit specifies that a validation failure is included in the published -// audit event for the request. The audit event will contain a -// `validation.policy.admission.k8s.io/validation_failure` audit annotation -// with a value containing the details of the validation failure. -#Audit: #ValidationAction & "Audit" - -// NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. -// +structType=atomic -#NamedRuleWithOperations: { - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - // +listType=atomic - // +optional - resourceNames?: [...string] @go(ResourceNames,[]string) @protobuf(1,bytes,rep) - - v1.#RuleWithOperations -} - -// ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. -// Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead. -#ValidatingWebhookConfiguration: { - metav1.#TypeMeta - - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Webhooks is a list of webhooks and the affected resources and operations. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - webhooks?: [...#ValidatingWebhook] @go(Webhooks,[]ValidatingWebhook) @protobuf(2,bytes,rep,name=Webhooks) -} - -// ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. -#ValidatingWebhookConfigurationList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of ValidatingWebhookConfiguration. - items: [...#ValidatingWebhookConfiguration] @go(Items,[]ValidatingWebhookConfiguration) @protobuf(2,bytes,rep) -} - -// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. -// Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead. -#MutatingWebhookConfiguration: { - metav1.#TypeMeta - - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Webhooks is a list of webhooks and the affected resources and operations. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - webhooks?: [...#MutatingWebhook] @go(Webhooks,[]MutatingWebhook) @protobuf(2,bytes,rep,name=Webhooks) -} - -// MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. -#MutatingWebhookConfigurationList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of MutatingWebhookConfiguration. - items: [...#MutatingWebhookConfiguration] @go(Items,[]MutatingWebhookConfiguration) @protobuf(2,bytes,rep) -} - -// ValidatingWebhook describes an admission webhook and the resources and operations it applies to. -#ValidatingWebhook: { - // The name of the admission webhook. - // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where - // "imagepolicy" is the name of the webhook, and kubernetes.io is the name - // of the organization. - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) - - // ClientConfig defines how to communicate with the hook. - // Required - clientConfig: #WebhookClientConfig @go(ClientConfig) @protobuf(2,bytes,opt) - - // Rules describes what operations on what resources/subresources the webhook cares about. - // The webhook cares about an operation if it matches _any_ Rule. - // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks - // from putting the cluster in a state which cannot be recovered from without completely - // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called - // on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - rules?: [...v1.#RuleWithOperations] @go(Rules,[]v1.RuleWithOperations) @protobuf(3,bytes,rep) - - // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - - // allowed values are Ignore or Fail. Defaults to Ignore. - // +optional - failurePolicy?: null | #FailurePolicyType @go(FailurePolicy,*FailurePolicyType) @protobuf(4,bytes,opt,casttype=FailurePolicyType) - - // matchPolicy defines how the "rules" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - // - // Defaults to "Exact" - // +optional - matchPolicy?: null | #MatchPolicyType @go(MatchPolicy,*MatchPolicyType) @protobuf(9,bytes,opt,casttype=MatchPolicyType) - - // NamespaceSelector decides whether to run the webhook on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the webhook. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the webhook on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - namespaceSelector?: null | metav1.#LabelSelector @go(NamespaceSelector,*metav1.LabelSelector) @protobuf(5,bytes,opt) - - // ObjectSelector decides whether to run the webhook based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the webhook, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - objectSelector?: null | metav1.#LabelSelector @go(ObjectSelector,*metav1.LabelSelector) @protobuf(10,bytes,opt) - - // SideEffects states whether this webhook has side effects. - // Acceptable values are: Unknown, None, Some, NoneOnDryRun - // Webhooks with side effects MUST implement a reconciliation system, since a request may be - // rejected by a future step in the admission chain and the side effects therefore need to be undone. - // Requests with the dryRun attribute will be auto-rejected if they match a webhook with - // sideEffects == Unknown or Some. Defaults to Unknown. - // +optional - sideEffects?: null | #SideEffectClass @go(SideEffects,*SideEffectClass) @protobuf(6,bytes,opt,casttype=SideEffectClass) - - // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - // the webhook call will be ignored or the API call will fail based on the - // failure policy. - // The timeout value must be between 1 and 30 seconds. - // Default to 30 seconds. - // +optional - timeoutSeconds?: null | int32 @go(TimeoutSeconds,*int32) @protobuf(7,varint,opt) - - // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - // versions the Webhook expects. API server will try to use first version in - // the list which it supports. If none of the versions specified in this list - // supported by API server, validation will fail for this object. - // If a persisted webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail - // and be subject to the failure policy. - // Default to `['v1beta1']`. - // +optional - admissionReviewVersions?: [...string] @go(AdmissionReviewVersions,[]string) @protobuf(8,bytes,rep) - - // MatchConditions is a list of conditions that must be met for a request to be sent to this - // webhook. Match conditions filter requests that have already been matched by the rules, - // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. - // There are a maximum of 64 match conditions allowed. - // - // The exact matching logic is (in order): - // 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. - // 2. If ALL matchConditions evaluate to TRUE, the webhook is called. - // 3. If any matchCondition evaluates to an error (but none are FALSE): - // - If failurePolicy=Fail, reject the request - // - If failurePolicy=Ignore, the error is ignored and the webhook is skipped - // - // This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. - // - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=map - // +listMapKey=name - // +featureGate=AdmissionWebhookMatchConditions - // +optional - matchConditions?: [...#MatchCondition] @go(MatchConditions,[]MatchCondition) @protobuf(11,bytes,rep) -} - -// MutatingWebhook describes an admission webhook and the resources and operations it applies to. -#MutatingWebhook: { - // The name of the admission webhook. - // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where - // "imagepolicy" is the name of the webhook, and kubernetes.io is the name - // of the organization. - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) - - // ClientConfig defines how to communicate with the hook. - // Required - clientConfig: #WebhookClientConfig @go(ClientConfig) @protobuf(2,bytes,opt) - - // Rules describes what operations on what resources/subresources the webhook cares about. - // The webhook cares about an operation if it matches _any_ Rule. - // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks - // from putting the cluster in a state which cannot be recovered from without completely - // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called - // on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - rules?: [...v1.#RuleWithOperations] @go(Rules,[]v1.RuleWithOperations) @protobuf(3,bytes,rep) - - // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - - // allowed values are Ignore or Fail. Defaults to Ignore. - // +optional - failurePolicy?: null | #FailurePolicyType @go(FailurePolicy,*FailurePolicyType) @protobuf(4,bytes,opt,casttype=FailurePolicyType) - - // matchPolicy defines how the "rules" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - // - // Defaults to "Exact" - // +optional - matchPolicy?: null | #MatchPolicyType @go(MatchPolicy,*MatchPolicyType) @protobuf(9,bytes,opt,casttype=MatchPolicyType) - - // NamespaceSelector decides whether to run the webhook on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the webhook. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the webhook on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - namespaceSelector?: null | metav1.#LabelSelector @go(NamespaceSelector,*metav1.LabelSelector) @protobuf(5,bytes,opt) - - // ObjectSelector decides whether to run the webhook based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the webhook, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - objectSelector?: null | metav1.#LabelSelector @go(ObjectSelector,*metav1.LabelSelector) @protobuf(11,bytes,opt) - - // SideEffects states whether this webhook has side effects. - // Acceptable values are: Unknown, None, Some, NoneOnDryRun - // Webhooks with side effects MUST implement a reconciliation system, since a request may be - // rejected by a future step in the admission chain and the side effects therefore need to be undone. - // Requests with the dryRun attribute will be auto-rejected if they match a webhook with - // sideEffects == Unknown or Some. Defaults to Unknown. - // +optional - sideEffects?: null | #SideEffectClass @go(SideEffects,*SideEffectClass) @protobuf(6,bytes,opt,casttype=SideEffectClass) - - // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - // the webhook call will be ignored or the API call will fail based on the - // failure policy. - // The timeout value must be between 1 and 30 seconds. - // Default to 30 seconds. - // +optional - timeoutSeconds?: null | int32 @go(TimeoutSeconds,*int32) @protobuf(7,varint,opt) - - // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - // versions the Webhook expects. API server will try to use first version in - // the list which it supports. If none of the versions specified in this list - // supported by API server, validation will fail for this object. - // If a persisted webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail - // and be subject to the failure policy. - // Default to `['v1beta1']`. - // +optional - admissionReviewVersions?: [...string] @go(AdmissionReviewVersions,[]string) @protobuf(8,bytes,rep) - - // reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. - // Allowed values are "Never" and "IfNeeded". - // - // Never: the webhook will not be called more than once in a single admission evaluation. - // - // IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation - // if the object being admitted is modified by other admission plugins after the initial webhook call. - // Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. - // Note: - // * the number of additional invocations is not guaranteed to be exactly one. - // * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. - // * webhooks that use this option may be reordered to minimize the number of additional invocations. - // * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - // - // Defaults to "Never". - // +optional - reinvocationPolicy?: null | #ReinvocationPolicyType @go(ReinvocationPolicy,*ReinvocationPolicyType) @protobuf(10,bytes,opt,casttype=ReinvocationPolicyType) - - // MatchConditions is a list of conditions that must be met for a request to be sent to this - // webhook. Match conditions filter requests that have already been matched by the rules, - // namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. - // There are a maximum of 64 match conditions allowed. - // - // The exact matching logic is (in order): - // 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. - // 2. If ALL matchConditions evaluate to TRUE, the webhook is called. - // 3. If any matchCondition evaluates to an error (but none are FALSE): - // - If failurePolicy=Fail, reject the request - // - If failurePolicy=Ignore, the error is ignored and the webhook is skipped - // - // This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. - // - // +patchMergeKey=name - // +patchStrategy=merge - // +listType=map - // +listMapKey=name - // +featureGate=AdmissionWebhookMatchConditions - // +optional - matchConditions?: [...#MatchCondition] @go(MatchConditions,[]MatchCondition) @protobuf(12,bytes,rep) -} - -// ReinvocationPolicyType specifies what type of policy the admission hook uses. -#ReinvocationPolicyType: string // #enumReinvocationPolicyType - -#enumReinvocationPolicyType: - #NeverReinvocationPolicy | - #IfNeededReinvocationPolicy - -// NeverReinvocationPolicy indicates that the webhook must not be called more than once in a -// single admission evaluation. -#NeverReinvocationPolicy: #ReinvocationPolicyType & "Never" - -// IfNeededReinvocationPolicy indicates that the webhook may be called at least one -// additional time as part of the admission evaluation if the object being admitted is -// modified by other admission plugins after the initial webhook call. -#IfNeededReinvocationPolicy: #ReinvocationPolicyType & "IfNeeded" - -// RuleWithOperations is a tuple of Operations and Resources. It is recommended to make -// sure that all the tuple expansions are valid. -#RuleWithOperations: v1.#RuleWithOperations - -// OperationType specifies an operation for a request. -// +enum -#OperationType: v1.#OperationType // #enumOperationType - -#enumOperationType: - #OperationAll | - #Create | - #Update | - #Delete | - #Connect - -#OperationAll: v1.#OperationType & "*" -#Create: v1.#OperationType & "CREATE" -#Update: v1.#OperationType & "UPDATE" -#Delete: v1.#OperationType & "DELETE" -#Connect: v1.#OperationType & "CONNECT" - -// WebhookClientConfig contains the information to make a TLS -// connection with the webhook -#WebhookClientConfig: { - // `url` gives the location of the webhook, in standard URL form - // (`scheme://host:port/path`). Exactly one of `url` or `service` - // must be specified. - // - // The `host` should not refer to a service running in the cluster; use - // the `service` field instead. The host might be resolved via external - // DNS in some apiservers (e.g., `kube-apiserver` cannot resolve - // in-cluster DNS as that would be a layering violation). `host` may - // also be an IP address. - // - // Please note that using `localhost` or `127.0.0.1` as a `host` is - // risky unless you take great care to run this webhook on all hosts - // which run an apiserver which might need to make calls to this - // webhook. Such installs are likely to be non-portable, i.e., not easy - // to turn up in a new cluster. - // - // The scheme must be "https"; the URL must begin with "https://". - // - // A path is optional, and if present may be any string permissible in - // a URL. You may use the path to pass an arbitrary string to the - // webhook, for example, a cluster identifier. - // - // Attempting to use a user or basic auth e.g. "user:password@" is not - // allowed. Fragments ("#...") and query parameters ("?...") are not - // allowed, either. - // - // +optional - url?: null | string @go(URL,*string) @protobuf(3,bytes,opt) - - // `service` is a reference to the service for this webhook. Either - // `service` or `url` must be specified. - // - // If the webhook is running within the cluster, then you should use `service`. - // - // +optional - service?: null | #ServiceReference @go(Service,*ServiceReference) @protobuf(1,bytes,opt) - - // `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. - // If unspecified, system trust roots on the apiserver are used. - // +optional - caBundle?: bytes @go(CABundle,[]byte) @protobuf(2,bytes,opt) -} - -// ServiceReference holds a reference to Service.legacy.k8s.io -#ServiceReference: { - // `namespace` is the namespace of the service. - // Required - namespace: string @go(Namespace) @protobuf(1,bytes,opt) - - // `name` is the name of the service. - // Required - name: string @go(Name) @protobuf(2,bytes,opt) - - // `path` is an optional URL path which will be sent in any request to - // this service. - // +optional - path?: null | string @go(Path,*string) @protobuf(3,bytes,opt) - - // If specified, the port on the service that hosting webhook. - // Default to 443 for backward compatibility. - // `port` should be a valid port number (1-65535, inclusive). - // +optional - port?: null | int32 @go(Port,*int32) @protobuf(4,varint,opt) -} - -// MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook. -#MatchCondition: { - // Name is an identifier for this match condition, used for strategic merging of MatchConditions, - // as well as providing an identifier for logging purposes. A good name should be descriptive of - // the associated expression. - // Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and - // must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or - // '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an - // optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') - // - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) - - // Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. - // CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: - // - // 'object' - The object from the incoming request. The value is null for DELETE requests. - // 'oldObject' - The existing object. The value is null for CREATE requests. - // 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). - // 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - // See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - // 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - // request resource. - // Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ - // - // Required. - expression: string @go(Expression) @protobuf(2,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/api/apidiscovery/v2beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/apidiscovery/v2beta1/register_go_gen.cue deleted file mode 100644 index 5e014bc..0000000 --- a/cue.mod/gen/k8s.io/api/apidiscovery/v2beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/apidiscovery/v2beta1 - -package v2beta1 - -#GroupName: "apidiscovery.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/apidiscovery/v2beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/apidiscovery/v2beta1/types_go_gen.cue deleted file mode 100644 index 7c95ff9..0000000 --- a/cue.mod/gen/k8s.io/api/apidiscovery/v2beta1/types_go_gen.cue +++ /dev/null @@ -1,157 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/apidiscovery/v2beta1 - -package v2beta1 - -import "k8s.io/apimachinery/pkg/apis/meta/v1" - -// APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. -// This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated -// list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) -// that a cluster supports. -#APIGroupDiscoveryList: { - v1.#TypeMeta - - // ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: v1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of groups for discovery. The groups are listed in priority order. - items: [...#APIGroupDiscovery] @go(Items,[]APIGroupDiscovery) @protobuf(2,bytes,rep) -} - -// APIGroupDiscovery holds information about which resources are being served for all version of the API Group. -// It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. -// Versions are in descending order of preference, with the first version being the preferred entry. -#APIGroupDiscovery: { - v1.#TypeMeta - - // Standard object's metadata. - // The only field completed will be name. For instance, resourceVersion will be empty. - // name is the name of the API group whose discovery information is presented here. - // name is allowed to be "" to represent the legacy, ungroupified resources. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: v1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // versions are the versions supported in this group. They are sorted in descending order of preference, - // with the preferred version being the first entry. - // +listType=map - // +listMapKey=version - versions?: [...#APIVersionDiscovery] @go(Versions,[]APIVersionDiscovery) @protobuf(2,bytes,rep) -} - -// APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group. -#APIVersionDiscovery: { - // version is the name of the version within a group version. - version: string @go(Version) @protobuf(1,bytes,opt) - - // resources is a list of APIResourceDiscovery objects for the corresponding group version. - // +listType=map - // +listMapKey=resource - resources?: [...#APIResourceDiscovery] @go(Resources,[]APIResourceDiscovery) @protobuf(2,bytes,rep) - - // freshness marks whether a group version's discovery document is up to date. - // "Current" indicates the discovery document was recently - // refreshed. "Stale" indicates the discovery document could not - // be retrieved and the returned discovery document may be - // significantly out of date. Clients that require the latest - // version of the discovery information be retrieved before - // performing an operation should not use the aggregated document - freshness?: #DiscoveryFreshness @go(Freshness) @protobuf(3,bytes,opt) -} - -// APIResourceDiscovery provides information about an API resource for discovery. -#APIResourceDiscovery: { - // resource is the plural name of the resource. This is used in the URL path and is the unique identifier - // for this resource across all versions in the API group. - // Resources with non-empty groups are located at /apis/// - // Resources with empty groups are located at /api/v1/ - resource: string @go(Resource) @protobuf(1,bytes,opt) - - // responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns. - // APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior. - // This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource - responseKind?: null | v1.#GroupVersionKind @go(ResponseKind,*v1.GroupVersionKind) @protobuf(2,bytes,opt) - - // scope indicates the scope of a resource, either Cluster or Namespaced - scope: #ResourceScope @go(Scope) @protobuf(3,bytes,opt) - - // singularResource is the singular name of the resource. This allows clients to handle plural and singular opaquely. - // For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence. - // The command line tool kubectl, for example, allows use of the singular resource name in place of plurals. - // The singular form of a resource should always be an optional element - when in doubt use the canonical resource name. - singularResource: string @go(SingularResource) @protobuf(4,bytes,opt) - - // verbs is a list of supported API operation types (this includes - // but is not limited to get, list, watch, create, update, patch, - // delete, deletecollection, and proxy). - // +listType=set - verbs: [...string] @go(Verbs,[]string) @protobuf(5,bytes,opt) - - // shortNames is a list of suggested short names of the resource. - // +listType=set - shortNames?: [...string] @go(ShortNames,[]string) @protobuf(6,bytes,rep) - - // categories is a list of the grouped resources this resource belongs to (e.g. 'all'). - // Clients may use this to simplify acting on multiple resource types at once. - // +listType=set - categories?: [...string] @go(Categories,[]string) @protobuf(7,bytes,rep) - - // subresources is a list of subresources provided by this resource. Subresources are located at /apis////name-of-instance/ - // +listType=map - // +listMapKey=subresource - subresources?: [...#APISubresourceDiscovery] @go(Subresources,[]APISubresourceDiscovery) @protobuf(8,bytes,rep) -} - -// ResourceScope is an enum defining the different scopes available to a resource. -#ResourceScope: string // #enumResourceScope - -#enumResourceScope: - #ScopeCluster | - #ScopeNamespace - -#ScopeCluster: #ResourceScope & "Cluster" -#ScopeNamespace: #ResourceScope & "Namespaced" - -// DiscoveryFreshness is an enum defining whether the Discovery document published by an apiservice is up to date (fresh). -#DiscoveryFreshness: string // #enumDiscoveryFreshness - -#enumDiscoveryFreshness: - #DiscoveryFreshnessCurrent | - #DiscoveryFreshnessStale - -#DiscoveryFreshnessCurrent: #DiscoveryFreshness & "Current" -#DiscoveryFreshnessStale: #DiscoveryFreshness & "Stale" - -// APISubresourceDiscovery provides information about an API subresource for discovery. -#APISubresourceDiscovery: { - // subresource is the name of the subresource. This is used in the URL path and is the unique identifier - // for this resource across all versions. - subresource: string @go(Subresource) @protobuf(1,bytes,opt) - - // responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns. - // Some subresources do not return normal resources, these will have null or empty return types. - responseKind?: null | v1.#GroupVersionKind @go(ResponseKind,*v1.GroupVersionKind) @protobuf(2,bytes,opt) - - // acceptedTypes describes the kinds that this endpoint accepts. - // Subresources may accept the standard content types or define - // custom negotiation schemes. The list may not be exhaustive for - // all operations. - // +listType=map - // +listMapKey=group - // +listMapKey=version - // +listMapKey=kind - acceptedTypes?: [...v1.#GroupVersionKind] @go(AcceptedTypes,[]v1.GroupVersionKind) @protobuf(3,bytes,rep) - - // verbs is a list of supported API operation types (this includes - // but is not limited to get, list, watch, create, update, patch, - // delete, deletecollection, and proxy). Subresources may define - // custom verbs outside the standard Kubernetes verb set. Clients - // should expect the behavior of standard verbs to align with - // Kubernetes interaction conventions. - // +listType=set - verbs: [...string] @go(Verbs,[]string) @protobuf(4,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/api/apiserverinternal/v1alpha1/doc_go_gen.cue b/cue.mod/gen/k8s.io/api/apiserverinternal/v1alpha1/doc_go_gen.cue deleted file mode 100644 index b1bbe6c..0000000 --- a/cue.mod/gen/k8s.io/api/apiserverinternal/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/apiserverinternal/v1alpha1 - -// Package v1alpha1 contains the v1alpha1 version of the API used by the -// apiservers themselves. -package v1alpha1 diff --git a/cue.mod/gen/k8s.io/api/apiserverinternal/v1alpha1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/apiserverinternal/v1alpha1/register_go_gen.cue deleted file mode 100644 index 9e87cc0..0000000 --- a/cue.mod/gen/k8s.io/api/apiserverinternal/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/apiserverinternal/v1alpha1 - -package v1alpha1 - -#GroupName: "internal.apiserver.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/apiserverinternal/v1alpha1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/apiserverinternal/v1alpha1/types_go_gen.cue deleted file mode 100644 index 6d6c589..0000000 --- a/cue.mod/gen/k8s.io/api/apiserverinternal/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/apiserverinternal/v1alpha1 - -package v1alpha1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// Storage version of a specific resource. -#StorageVersion: { - metav1.#TypeMeta - - // The name is .. - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec is an empty spec. It is here to comply with Kubernetes API style. - spec: #StorageVersionSpec @go(Spec) @protobuf(2,bytes,opt) - - // API server instances report the version they can decode and the version they - // encode objects to when persisting objects in the backend. - status: #StorageVersionStatus @go(Status) @protobuf(3,bytes,opt) -} - -// StorageVersionSpec is an empty spec. -#StorageVersionSpec: { -} - -// API server instances report the versions they can decode and the version they -// encode objects to when persisting objects in the backend. -#StorageVersionStatus: { - // The reported versions per API server instance. - // +optional - // +listType=map - // +listMapKey=apiServerID - storageVersions?: [...#ServerStorageVersion] @go(StorageVersions,[]ServerStorageVersion) @protobuf(1,bytes,opt) - - // If all API server instances agree on the same encoding storage version, - // then this field is set to that version. Otherwise this field is left empty. - // API servers should finish updating its storageVersionStatus entry before - // serving write operations, so that this field will be in sync with the reality. - // +optional - commonEncodingVersion?: null | string @go(CommonEncodingVersion,*string) @protobuf(2,bytes,opt) - - // The latest available observations of the storageVersion's state. - // +optional - // +listType=map - // +listMapKey=type - conditions?: [...#StorageVersionCondition] @go(Conditions,[]StorageVersionCondition) @protobuf(3,bytes,opt) -} - -// An API server instance reports the version it can decode and the version it -// encodes objects to when persisting objects in the backend. -#ServerStorageVersion: { - // The ID of the reporting API server. - apiServerID?: string @go(APIServerID) @protobuf(1,bytes,opt) - - // The API server encodes the object to this version when persisting it in - // the backend (e.g., etcd). - encodingVersion?: string @go(EncodingVersion) @protobuf(2,bytes,opt) - - // The API server can decode objects encoded in these versions. - // The encodingVersion must be included in the decodableVersions. - // +listType=set - decodableVersions?: [...string] @go(DecodableVersions,[]string) @protobuf(3,bytes,opt) - - // The API server can serve these versions. - // DecodableVersions must include all ServedVersions. - // +listType=set - servedVersions?: [...string] @go(ServedVersions,[]string) @protobuf(4,bytes,opt) -} - -#StorageVersionConditionType: string // #enumStorageVersionConditionType - -#enumStorageVersionConditionType: - #AllEncodingVersionsEqual - -// Indicates that encoding storage versions reported by all servers are equal. -#AllEncodingVersionsEqual: #StorageVersionConditionType & "AllEncodingVersionsEqual" - -#ConditionStatus: string // #enumConditionStatus - -#enumConditionStatus: - #ConditionTrue | - #ConditionFalse | - #ConditionUnknown - -#ConditionTrue: #ConditionStatus & "True" -#ConditionFalse: #ConditionStatus & "False" -#ConditionUnknown: #ConditionStatus & "Unknown" - -// Describes the state of the storageVersion at a certain point. -#StorageVersionCondition: { - // Type of the condition. - // +required - type: #StorageVersionConditionType @go(Type) @protobuf(1,bytes,opt) - - // Status of the condition, one of True, False, Unknown. - // +required - status: #ConditionStatus @go(Status) @protobuf(2,bytes,opt) - - // If set, this represents the .metadata.generation that the condition was set based upon. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(3,varint,opt) - - // Last time the condition transitioned from one status to another. - // +required - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(4,bytes,opt) - - // The reason for the condition's last transition. - // +required - reason: string @go(Reason) @protobuf(5,bytes,opt) - - // A human readable message indicating details about the transition. - // +required - message?: string @go(Message) @protobuf(6,bytes,opt) -} - -// A list of StorageVersions. -#StorageVersionList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items holds a list of StorageVersion - items: [...#StorageVersion] @go(Items,[]StorageVersion) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/apps/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/apps/v1/register_go_gen.cue deleted file mode 100644 index c2497a5..0000000 --- a/cue.mod/gen/k8s.io/api/apps/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/apps/v1 - -package v1 - -#GroupName: "apps" diff --git a/cue.mod/gen/k8s.io/api/apps/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/apps/v1/types_go_gen.cue deleted file mode 100644 index d3ecc83..0000000 --- a/cue.mod/gen/k8s.io/api/apps/v1/types_go_gen.cue +++ /dev/null @@ -1,946 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/apps/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/util/intstr" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -#ControllerRevisionHashLabelKey: "controller-revision-hash" -#StatefulSetRevisionLabel: "controller-revision-hash" -#DeprecatedRollbackTo: "deprecated.deployment.rollback.to" -#DeprecatedTemplateGeneration: "deprecated.daemonset.template.generation" -#StatefulSetPodNameLabel: "statefulset.kubernetes.io/pod-name" -#PodIndexLabel: "apps.kubernetes.io/pod-index" - -// StatefulSet represents a set of pods with consistent identities. -// Identities are defined as: -// - Network: A single stable DNS and hostname. -// - Storage: As many VolumeClaims as requested. -// -// The StatefulSet guarantees that a given network identity will always -// map to the same storage identity. -#StatefulSet: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the desired identities of pods in this set. - // +optional - spec?: #StatefulSetSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is the current status of Pods in this StatefulSet. This data - // may be out of date by some window of time. - // +optional - status?: #StatefulSetStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PodManagementPolicyType defines the policy for creating pods under a stateful set. -// +enum -#PodManagementPolicyType: string // #enumPodManagementPolicyType - -#enumPodManagementPolicyType: - #OrderedReadyPodManagement | - #ParallelPodManagement - -// OrderedReadyPodManagement will create pods in strictly increasing order on -// scale up and strictly decreasing order on scale down, progressing only when -// the previous pod is ready or terminated. At most one pod will be changed -// at any time. -#OrderedReadyPodManagement: #PodManagementPolicyType & "OrderedReady" - -// ParallelPodManagement will create and delete pods as soon as the stateful set -// replica count is changed, and will not wait for pods to be ready or complete -// termination. -#ParallelPodManagement: #PodManagementPolicyType & "Parallel" - -// StatefulSetUpdateStrategy indicates the strategy that the StatefulSet -// controller will use to perform updates. It includes any additional parameters -// necessary to perform the update for the indicated strategy. -#StatefulSetUpdateStrategy: { - // Type indicates the type of the StatefulSetUpdateStrategy. - // Default is RollingUpdate. - // +optional - type?: #StatefulSetUpdateStrategyType @go(Type) @protobuf(1,bytes,opt,casttype=StatefulSetStrategyType) - - // RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - // +optional - rollingUpdate?: null | #RollingUpdateStatefulSetStrategy @go(RollingUpdate,*RollingUpdateStatefulSetStrategy) @protobuf(2,bytes,opt) -} - -// StatefulSetUpdateStrategyType is a string enumeration type that enumerates -// all possible update strategies for the StatefulSet controller. -// +enum -#StatefulSetUpdateStrategyType: string // #enumStatefulSetUpdateStrategyType - -#enumStatefulSetUpdateStrategyType: - #RollingUpdateStatefulSetStrategyType | - #OnDeleteStatefulSetStrategyType - -// RollingUpdateStatefulSetStrategyType indicates that update will be -// applied to all Pods in the StatefulSet with respect to the StatefulSet -// ordering constraints. When a scale operation is performed with this -// strategy, new Pods will be created from the specification version indicated -// by the StatefulSet's updateRevision. -#RollingUpdateStatefulSetStrategyType: #StatefulSetUpdateStrategyType & "RollingUpdate" - -// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version -// tracking and ordered rolling restarts are disabled. Pods are recreated -// from the StatefulSetSpec when they are manually deleted. When a scale -// operation is performed with this strategy,specification version indicated -// by the StatefulSet's currentRevision. -#OnDeleteStatefulSetStrategyType: #StatefulSetUpdateStrategyType & "OnDelete" - -// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. -#RollingUpdateStatefulSetStrategy: { - // Partition indicates the ordinal at which the StatefulSet should be partitioned - // for updates. During a rolling update, all pods from ordinal Replicas-1 to - // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. - // This is helpful in being able to do a canary based deployment. The default value is 0. - // +optional - partition?: null | int32 @go(Partition,*int32) @protobuf(1,varint,opt) - - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding up. This can not be 0. - // Defaults to 1. This field is alpha-level and is only honored by servers that enable the - // MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to - // Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it - // will be counted towards MaxUnavailable. - // +optional - maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(2,varint,opt) -} - -// PersistentVolumeClaimRetentionPolicyType is a string enumeration of the policies that will determine -// when volumes from the VolumeClaimTemplates will be deleted when the controlling StatefulSet is -// deleted or scaled down. -#PersistentVolumeClaimRetentionPolicyType: string // #enumPersistentVolumeClaimRetentionPolicyType - -#enumPersistentVolumeClaimRetentionPolicyType: - #RetainPersistentVolumeClaimRetentionPolicyType | - #DeletePersistentVolumeClaimRetentionPolicyType - -// RetainPersistentVolumeClaimRetentionPolicyType is the default -// PersistentVolumeClaimRetentionPolicy and specifies that -// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates -// will not be deleted. -#RetainPersistentVolumeClaimRetentionPolicyType: #PersistentVolumeClaimRetentionPolicyType & "Retain" - -// RetentionPersistentVolumeClaimRetentionPolicyType specifies that -// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates -// will be deleted in the scenario specified in -// StatefulSetPersistentVolumeClaimRetentionPolicy. -#DeletePersistentVolumeClaimRetentionPolicyType: #PersistentVolumeClaimRetentionPolicyType & "Delete" - -// StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs -// created from the StatefulSet VolumeClaimTemplates. -#StatefulSetPersistentVolumeClaimRetentionPolicy: { - // WhenDeleted specifies what happens to PVCs created from StatefulSet - // VolumeClaimTemplates when the StatefulSet is deleted. The default policy - // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The - // `Delete` policy causes those PVCs to be deleted. - whenDeleted?: #PersistentVolumeClaimRetentionPolicyType @go(WhenDeleted) @protobuf(1,bytes,opt,casttype=PersistentVolumeClaimRetentionPolicyType) - - // WhenScaled specifies what happens to PVCs created from StatefulSet - // VolumeClaimTemplates when the StatefulSet is scaled down. The default - // policy of `Retain` causes PVCs to not be affected by a scaledown. The - // `Delete` policy causes the associated PVCs for any excess pods above - // the replica count to be deleted. - whenScaled?: #PersistentVolumeClaimRetentionPolicyType @go(WhenScaled) @protobuf(2,bytes,opt,casttype=PersistentVolumeClaimRetentionPolicyType) -} - -// StatefulSetOrdinals describes the policy used for replica ordinal assignment -// in this StatefulSet. -#StatefulSetOrdinals: { - // start is the number representing the first replica's index. It may be used - // to number replicas from an alternate index (eg: 1-indexed) over the default - // 0-indexed names, or to orchestrate progressive movement of replicas from - // one StatefulSet to another. - // If set, replica indices will be in the range: - // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). - // If unset, defaults to 0. Replica indices will be in the range: - // [0, .spec.replicas). - // +optional - start: int32 @go(Start) @protobuf(1,varint,opt) -} - -// A StatefulSetSpec is the specification of a StatefulSet. -#StatefulSetSpec: { - // replicas is the desired number of replicas of the given Template. - // These are replicas in the sense that they are instantiations of the - // same Template, but individual replicas also have a consistent identity. - // If unspecified, defaults to 1. - // TODO: Consider a rename of this field. - // +optional - replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt) - - // selector is a label query over pods that should match the replica count. - // It must match the pod template's labels. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // template is the object that describes the pod that will be created if - // insufficient replicas are detected. Each pod stamped out by the StatefulSet - // will fulfill this Template, but have a unique identity from the rest - // of the StatefulSet. Each pod will be named with the format - // -. For example, a pod in a StatefulSet named - // "web" with index number "3" would be named "web-3". - // The only allowed template.spec.restartPolicy value is "Always". - template: v1.#PodTemplateSpec @go(Template) @protobuf(3,bytes,opt) - - // volumeClaimTemplates is a list of claims that pods are allowed to reference. - // The StatefulSet controller is responsible for mapping network identities to - // claims in a way that maintains the identity of a pod. Every claim in - // this list must have at least one matching (by name) volumeMount in one - // container in the template. A claim in this list takes precedence over - // any volumes in the template, with the same name. - // TODO: Define the behavior if a claim already exists with the same name. - // +optional - volumeClaimTemplates?: [...v1.#PersistentVolumeClaim] @go(VolumeClaimTemplates,[]v1.PersistentVolumeClaim) @protobuf(4,bytes,rep) - - // serviceName is the name of the service that governs this StatefulSet. - // This service must exist before the StatefulSet, and is responsible for - // the network identity of the set. Pods get DNS/hostnames that follow the - // pattern: pod-specific-string.serviceName.default.svc.cluster.local - // where "pod-specific-string" is managed by the StatefulSet controller. - serviceName: string @go(ServiceName) @protobuf(5,bytes,opt) - - // podManagementPolicy controls how pods are created during initial scale up, - // when replacing pods on nodes, or when scaling down. The default policy is - // `OrderedReady`, where pods are created in increasing order (pod-0, then - // pod-1, etc) and the controller will wait until each pod is ready before - // continuing. When scaling down, the pods are removed in the opposite order. - // The alternative policy is `Parallel` which will create pods in parallel - // to match the desired scale without waiting, and on scale down will delete - // all pods at once. - // +optional - podManagementPolicy?: #PodManagementPolicyType @go(PodManagementPolicy) @protobuf(6,bytes,opt,casttype=PodManagementPolicyType) - - // updateStrategy indicates the StatefulSetUpdateStrategy that will be - // employed to update Pods in the StatefulSet when a revision is made to - // Template. - updateStrategy?: #StatefulSetUpdateStrategy @go(UpdateStrategy) @protobuf(7,bytes,opt) - - // revisionHistoryLimit is the maximum number of revisions that will - // be maintained in the StatefulSet's revision history. The revision history - // consists of all revisions not represented by a currently applied - // StatefulSetSpec version. The default value is 10. - revisionHistoryLimit?: null | int32 @go(RevisionHistoryLimit,*int32) @protobuf(8,varint,opt) - - // Minimum number of seconds for which a newly created pod should be ready - // without any of its container crashing for it to be considered available. - // Defaults to 0 (pod will be considered available as soon as it is ready) - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(9,varint,opt) - - // persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent - // volume claims created from volumeClaimTemplates. By default, all persistent - // volume claims are created as needed and retained until manually deleted. This - // policy allows the lifecycle to be altered, for example by deleting persistent - // volume claims when their stateful set is deleted, or when their pod is scaled - // down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, - // which is alpha. +optional - persistentVolumeClaimRetentionPolicy?: null | #StatefulSetPersistentVolumeClaimRetentionPolicy @go(PersistentVolumeClaimRetentionPolicy,*StatefulSetPersistentVolumeClaimRetentionPolicy) @protobuf(10,bytes,opt) - - // ordinals controls the numbering of replica indices in a StatefulSet. The - // default ordinals behavior assigns a "0" index to the first replica and - // increments the index by one for each additional replica requested. Using - // the ordinals field requires the StatefulSetStartOrdinal feature gate to be - // enabled, which is beta. - // +optional - ordinals?: null | #StatefulSetOrdinals @go(Ordinals,*StatefulSetOrdinals) @protobuf(11,bytes,opt) -} - -// StatefulSetStatus represents the current state of a StatefulSet. -#StatefulSetStatus: { - // observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the - // StatefulSet's generation, which is updated on mutation by the API Server. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(1,varint,opt) - - // replicas is the number of Pods created by the StatefulSet controller. - replicas: int32 @go(Replicas) @protobuf(2,varint,opt) - - // readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. - readyReplicas?: int32 @go(ReadyReplicas) @protobuf(3,varint,opt) - - // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by currentRevision. - currentReplicas?: int32 @go(CurrentReplicas) @protobuf(4,varint,opt) - - // updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by updateRevision. - updatedReplicas?: int32 @go(UpdatedReplicas) @protobuf(5,varint,opt) - - // currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the - // sequence [0,currentReplicas). - currentRevision?: string @go(CurrentRevision) @protobuf(6,bytes,opt) - - // updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence - // [replicas-updatedReplicas,replicas) - updateRevision?: string @go(UpdateRevision) @protobuf(7,bytes,opt) - - // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller - // uses this field as a collision avoidance mechanism when it needs to create the name for the - // newest ControllerRevision. - // +optional - collisionCount?: null | int32 @go(CollisionCount,*int32) @protobuf(9,varint,opt) - - // Represents the latest available observations of a statefulset's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#StatefulSetCondition] @go(Conditions,[]StatefulSetCondition) @protobuf(10,bytes,rep) - - // Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. - // +optional - availableReplicas: int32 @go(AvailableReplicas) @protobuf(11,varint,opt) -} - -#StatefulSetConditionType: string - -// StatefulSetCondition describes the state of a statefulset at a certain point. -#StatefulSetCondition: { - // Type of statefulset condition. - type: #StatefulSetConditionType @go(Type) @protobuf(1,bytes,opt,casttype=StatefulSetConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // Last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // The reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// StatefulSetList is a collection of StatefulSets. -#StatefulSetList: { - metav1.#TypeMeta - - // Standard list's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of stateful sets. - items: [...#StatefulSet] @go(Items,[]StatefulSet) @protobuf(2,bytes,rep) -} - -// Deployment enables declarative updates for Pods and ReplicaSets. -#Deployment: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the Deployment. - // +optional - spec?: #DeploymentSpec @go(Spec) @protobuf(2,bytes,opt) - - // Most recently observed status of the Deployment. - // +optional - status?: #DeploymentStatus @go(Status) @protobuf(3,bytes,opt) -} - -// DeploymentSpec is the specification of the desired behavior of the Deployment. -#DeploymentSpec: { - // Number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional - replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt) - - // Label selector for pods. Existing ReplicaSets whose pods are - // selected by this will be the ones affected by this deployment. - // It must match the pod template's labels. - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // Template describes the pods that will be created. - // The only allowed template.spec.restartPolicy value is "Always". - template: v1.#PodTemplateSpec @go(Template) @protobuf(3,bytes,opt) - - // The deployment strategy to use to replace existing pods with new ones. - // +optional - // +patchStrategy=retainKeys - strategy?: #DeploymentStrategy @go(Strategy) @protobuf(4,bytes,opt) - - // Minimum number of seconds for which a newly created pod should be ready - // without any of its container crashing, for it to be considered available. - // Defaults to 0 (pod will be considered available as soon as it is ready) - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(5,varint,opt) - - // The number of old ReplicaSets to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - revisionHistoryLimit?: null | int32 @go(RevisionHistoryLimit,*int32) @protobuf(6,varint,opt) - - // Indicates that the deployment is paused. - // +optional - paused?: bool @go(Paused) @protobuf(7,varint,opt) - - // The maximum time in seconds for a deployment to make progress before it - // is considered to be failed. The deployment controller will continue to - // process failed deployments and a condition with a ProgressDeadlineExceeded - // reason will be surfaced in the deployment status. Note that progress will - // not be estimated during the time a deployment is paused. Defaults to 600s. - progressDeadlineSeconds?: null | int32 @go(ProgressDeadlineSeconds,*int32) @protobuf(9,varint,opt) -} - -// DefaultDeploymentUniqueLabelKey is the default key of the selector that is added -// to existing ReplicaSets (and label key that is added to its pods) to prevent the existing ReplicaSets -// to select new pods (and old pods being select by new ReplicaSet). -#DefaultDeploymentUniqueLabelKey: "pod-template-hash" - -// DeploymentStrategy describes how to replace existing pods with new ones. -#DeploymentStrategy: { - // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // +optional - type?: #DeploymentStrategyType @go(Type) @protobuf(1,bytes,opt,casttype=DeploymentStrategyType) - - // Rolling update config params. Present only if DeploymentStrategyType = - // RollingUpdate. - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. - // +optional - rollingUpdate?: null | #RollingUpdateDeployment @go(RollingUpdate,*RollingUpdateDeployment) @protobuf(2,bytes,opt) -} - -// +enum -#DeploymentStrategyType: string // #enumDeploymentStrategyType - -#enumDeploymentStrategyType: - #RecreateDeploymentStrategyType | - #RollingUpdateDeploymentStrategyType - -// Kill all existing pods before creating new ones. -#RecreateDeploymentStrategyType: #DeploymentStrategyType & "Recreate" - -// Replace the old ReplicaSets by new one using rolling update i.e gradually scale down the old ReplicaSets and scale up the new one. -#RollingUpdateDeploymentStrategyType: #DeploymentStrategyType & "RollingUpdate" - -// Spec to control the desired behavior of rolling update. -#RollingUpdateDeployment: { - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding down. - // This can not be 0 if MaxSurge is 0. - // Defaults to 25%. - // Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods - // immediately when the rolling update starts. Once new pods are ready, old ReplicaSet - // can be scaled down further, followed by scaling up the new ReplicaSet, ensuring - // that the total number of pods available at all times during the update is at - // least 70% of desired pods. - // +optional - maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(1,bytes,opt) - - // The maximum number of pods that can be scheduled above the desired number of - // pods. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up. - // Defaults to 25%. - // Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when - // the rolling update starts, such that the total number of old and new pods do not exceed - // 130% of desired pods. Once old pods have been killed, - // new ReplicaSet can be scaled up further, ensuring that total number of pods running - // at any time during the update is at most 130% of desired pods. - // +optional - maxSurge?: null | intstr.#IntOrString @go(MaxSurge,*intstr.IntOrString) @protobuf(2,bytes,opt) -} - -// DeploymentStatus is the most recently observed status of the Deployment. -#DeploymentStatus: { - // The generation observed by the deployment controller. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(1,varint,opt) - - // Total number of non-terminated pods targeted by this deployment (their labels match the selector). - // +optional - replicas?: int32 @go(Replicas) @protobuf(2,varint,opt) - - // Total number of non-terminated pods targeted by this deployment that have the desired template spec. - // +optional - updatedReplicas?: int32 @go(UpdatedReplicas) @protobuf(3,varint,opt) - - // readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. - // +optional - readyReplicas?: int32 @go(ReadyReplicas) @protobuf(7,varint,opt) - - // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - // +optional - availableReplicas?: int32 @go(AvailableReplicas) @protobuf(4,varint,opt) - - // Total number of unavailable pods targeted by this deployment. This is the total number of - // pods that are still required for the deployment to have 100% available capacity. They may - // either be pods that are running but not yet available or pods that still have not been created. - // +optional - unavailableReplicas?: int32 @go(UnavailableReplicas) @protobuf(5,varint,opt) - - // Represents the latest available observations of a deployment's current state. - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#DeploymentCondition] @go(Conditions,[]DeploymentCondition) @protobuf(6,bytes,rep) - - // Count of hash collisions for the Deployment. The Deployment controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest ReplicaSet. - // +optional - collisionCount?: null | int32 @go(CollisionCount,*int32) @protobuf(8,varint,opt) -} - -#DeploymentConditionType: string // #enumDeploymentConditionType - -#enumDeploymentConditionType: - #DeploymentAvailable | - #DeploymentProgressing | - #DeploymentReplicaFailure - -// Available means the deployment is available, ie. at least the minimum available -// replicas required are up and running for at least minReadySeconds. -#DeploymentAvailable: #DeploymentConditionType & "Available" - -// Progressing means the deployment is progressing. Progress for a deployment is -// considered when a new replica set is created or adopted, and when new pods scale -// up or old pods scale down. Progress is not estimated for paused deployments or -// when progressDeadlineSeconds is not specified. -#DeploymentProgressing: #DeploymentConditionType & "Progressing" - -// ReplicaFailure is added in a deployment when one of its pods fails to be created -// or deleted. -#DeploymentReplicaFailure: #DeploymentConditionType & "ReplicaFailure" - -// DeploymentCondition describes the state of a deployment at a certain point. -#DeploymentCondition: { - // Type of deployment condition. - type: #DeploymentConditionType @go(Type) @protobuf(1,bytes,opt,casttype=DeploymentConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // The last time this condition was updated. - lastUpdateTime?: metav1.#Time @go(LastUpdateTime) @protobuf(6,bytes,opt) - - // Last time the condition transitioned from one status to another. - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(7,bytes,opt) - - // The reason for the condition's last transition. - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// DeploymentList is a list of Deployments. -#DeploymentList: { - metav1.#TypeMeta - - // Standard list metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of Deployments. - items: [...#Deployment] @go(Items,[]Deployment) @protobuf(2,bytes,rep) -} - -// DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. -#DaemonSetUpdateStrategy: { - // Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - // +optional - type?: #DaemonSetUpdateStrategyType @go(Type) @protobuf(1,bytes,opt) - - // Rolling update config params. Present only if type = "RollingUpdate". - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. Same as Deployment `strategy.rollingUpdate`. - // See https://github.com/kubernetes/kubernetes/issues/35345 - // +optional - rollingUpdate?: null | #RollingUpdateDaemonSet @go(RollingUpdate,*RollingUpdateDaemonSet) @protobuf(2,bytes,opt) -} - -// +enum -#DaemonSetUpdateStrategyType: string // #enumDaemonSetUpdateStrategyType - -#enumDaemonSetUpdateStrategyType: - #RollingUpdateDaemonSetStrategyType | - #OnDeleteDaemonSetStrategyType - -// Replace the old daemons by new ones using rolling update i.e replace them on each node one after the other. -#RollingUpdateDaemonSetStrategyType: #DaemonSetUpdateStrategyType & "RollingUpdate" - -// Replace the old daemons only when it's killed -#OnDeleteDaemonSetStrategyType: #DaemonSetUpdateStrategyType & "OnDelete" - -// Spec to control the desired behavior of daemon set rolling update. -#RollingUpdateDaemonSet: { - // The maximum number of DaemonSet pods that can be unavailable during the - // update. Value can be an absolute number (ex: 5) or a percentage of total - // number of DaemonSet pods at the start of the update (ex: 10%). Absolute - // number is calculated from percentage by rounding up. - // This cannot be 0 if MaxSurge is 0 - // Default value is 1. - // Example: when this is set to 30%, at most 30% of the total number of nodes - // that should be running the daemon pod (i.e. status.desiredNumberScheduled) - // can have their pods stopped for an update at any given time. The update - // starts by stopping at most 30% of those DaemonSet pods and then brings - // up new DaemonSet pods in their place. Once the new pods are available, - // it then proceeds onto other DaemonSet pods, thus ensuring that at least - // 70% of original number of DaemonSet pods are available at all times during - // the update. - // +optional - maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(1,bytes,opt) - - // The maximum number of nodes with an existing available DaemonSet pod that - // can have an updated DaemonSet pod during during an update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up to a minimum of 1. - // Default value is 0. - // Example: when this is set to 30%, at most 30% of the total number of nodes - // that should be running the daemon pod (i.e. status.desiredNumberScheduled) - // can have their a new pod created before the old pod is marked as deleted. - // The update starts by launching new pods on 30% of nodes. Once an updated - // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod - // on that node is marked deleted. If the old pod becomes unavailable for any - // reason (Ready transitions to false, is evicted, or is drained) an updated - // pod is immediatedly created on that node without considering surge limits. - // Allowing surge implies the possibility that the resources consumed by the - // daemonset on any given node can double if the readiness check fails, and - // so resource intensive daemonsets should take into account that they may - // cause evictions during disruption. - // +optional - maxSurge?: null | intstr.#IntOrString @go(MaxSurge,*intstr.IntOrString) @protobuf(2,bytes,opt) -} - -// DaemonSetSpec is the specification of a daemon set. -#DaemonSetSpec: { - // A label query over pods that are managed by the daemon set. - // Must match in order to be controlled. - // It must match the pod template's labels. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(1,bytes,opt) - - // An object that describes the pod that will be created. - // The DaemonSet will create exactly one copy of this pod on every node - // that matches the template's node selector (or on every node if no node - // selector is specified). - // The only allowed template.spec.restartPolicy value is "Always". - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - template: v1.#PodTemplateSpec @go(Template) @protobuf(2,bytes,opt) - - // An update strategy to replace existing DaemonSet pods with new pods. - // +optional - updateStrategy?: #DaemonSetUpdateStrategy @go(UpdateStrategy) @protobuf(3,bytes,opt) - - // The minimum number of seconds for which a newly created DaemonSet pod should - // be ready without any of its container crashing, for it to be considered - // available. Defaults to 0 (pod will be considered available as soon as it - // is ready). - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(4,varint,opt) - - // The number of old history to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - revisionHistoryLimit?: null | int32 @go(RevisionHistoryLimit,*int32) @protobuf(6,varint,opt) -} - -// DaemonSetStatus represents the current status of a daemon set. -#DaemonSetStatus: { - // The number of nodes that are running at least 1 - // daemon pod and are supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - currentNumberScheduled: int32 @go(CurrentNumberScheduled) @protobuf(1,varint,opt) - - // The number of nodes that are running the daemon pod, but are - // not supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - numberMisscheduled: int32 @go(NumberMisscheduled) @protobuf(2,varint,opt) - - // The total number of nodes that should be running the daemon - // pod (including nodes correctly running the daemon pod). - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - desiredNumberScheduled: int32 @go(DesiredNumberScheduled) @protobuf(3,varint,opt) - - // numberReady is the number of nodes that should be running the daemon pod and have one - // or more of the daemon pod running with a Ready Condition. - numberReady: int32 @go(NumberReady) @protobuf(4,varint,opt) - - // The most recent generation observed by the daemon set controller. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(5,varint,opt) - - // The total number of nodes that are running updated daemon pod - // +optional - updatedNumberScheduled?: int32 @go(UpdatedNumberScheduled) @protobuf(6,varint,opt) - - // The number of nodes that should be running the - // daemon pod and have one or more of the daemon pod running and - // available (ready for at least spec.minReadySeconds) - // +optional - numberAvailable?: int32 @go(NumberAvailable) @protobuf(7,varint,opt) - - // The number of nodes that should be running the - // daemon pod and have none of the daemon pod running and available - // (ready for at least spec.minReadySeconds) - // +optional - numberUnavailable?: int32 @go(NumberUnavailable) @protobuf(8,varint,opt) - - // Count of hash collisions for the DaemonSet. The DaemonSet controller - // uses this field as a collision avoidance mechanism when it needs to - // create the name for the newest ControllerRevision. - // +optional - collisionCount?: null | int32 @go(CollisionCount,*int32) @protobuf(9,varint,opt) - - // Represents the latest available observations of a DaemonSet's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#DaemonSetCondition] @go(Conditions,[]DaemonSetCondition) @protobuf(10,bytes,rep) -} - -#DaemonSetConditionType: string - -// DaemonSetCondition describes the state of a DaemonSet at a certain point. -#DaemonSetCondition: { - // Type of DaemonSet condition. - type: #DaemonSetConditionType @go(Type) @protobuf(1,bytes,opt,casttype=DaemonSetConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // Last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // The reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// DaemonSet represents the configuration of a daemon set. -#DaemonSet: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // The desired behavior of this daemon set. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #DaemonSetSpec @go(Spec) @protobuf(2,bytes,opt) - - // The current status of this daemon set. This data may be - // out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #DaemonSetStatus @go(Status) @protobuf(3,bytes,opt) -} - -// DefaultDaemonSetUniqueLabelKey is the default label key that is added -// to existing DaemonSet pods to distinguish between old and new -// DaemonSet pods during DaemonSet template updates. -#DefaultDaemonSetUniqueLabelKey: "controller-revision-hash" - -// DaemonSetList is a collection of daemon sets. -#DaemonSetList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // A list of daemon sets. - items: [...#DaemonSet] @go(Items,[]DaemonSet) @protobuf(2,bytes,rep) -} - -// ReplicaSet ensures that a specified number of pod replicas are running at any given time. -#ReplicaSet: { - metav1.#TypeMeta - - // If the Labels of a ReplicaSet are empty, they are defaulted to - // be the same as the Pod(s) that the ReplicaSet manages. - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the specification of the desired behavior of the ReplicaSet. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #ReplicaSetSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is the most recently observed status of the ReplicaSet. - // This data may be out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #ReplicaSetStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ReplicaSetList is a collection of ReplicaSets. -#ReplicaSetList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of ReplicaSets. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - items: [...#ReplicaSet] @go(Items,[]ReplicaSet) @protobuf(2,bytes,rep) -} - -// ReplicaSetSpec is the specification of a ReplicaSet. -#ReplicaSetSpec: { - // Replicas is the number of desired replicas. - // This is a pointer to distinguish between explicit zero and unspecified. - // Defaults to 1. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - // +optional - replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt) - - // Minimum number of seconds for which a newly created pod should be ready - // without any of its container crashing, for it to be considered available. - // Defaults to 0 (pod will be considered available as soon as it is ready) - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(4,varint,opt) - - // Selector is a label query over pods that should match the replica count. - // Label keys and values that must match in order to be controlled by this replica set. - // It must match the pod template's labels. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // Template is the object that describes the pod that will be created if - // insufficient replicas are detected. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - // +optional - template?: v1.#PodTemplateSpec @go(Template) @protobuf(3,bytes,opt) -} - -// ReplicaSetStatus represents the current status of a ReplicaSet. -#ReplicaSetStatus: { - // Replicas is the most recently observed number of replicas. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - replicas: int32 @go(Replicas) @protobuf(1,varint,opt) - - // The number of pods that have labels matching the labels of the pod template of the replicaset. - // +optional - fullyLabeledReplicas?: int32 @go(FullyLabeledReplicas) @protobuf(2,varint,opt) - - // readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. - // +optional - readyReplicas?: int32 @go(ReadyReplicas) @protobuf(4,varint,opt) - - // The number of available replicas (ready for at least minReadySeconds) for this replica set. - // +optional - availableReplicas?: int32 @go(AvailableReplicas) @protobuf(5,varint,opt) - - // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(3,varint,opt) - - // Represents the latest available observations of a replica set's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#ReplicaSetCondition] @go(Conditions,[]ReplicaSetCondition) @protobuf(6,bytes,rep) -} - -#ReplicaSetConditionType: string // #enumReplicaSetConditionType - -#enumReplicaSetConditionType: - #ReplicaSetReplicaFailure - -// ReplicaSetReplicaFailure is added in a replica set when one of its pods fails to be created -// due to insufficient quota, limit ranges, pod security policy, node selectors, etc. or deleted -// due to kubelet being down or finalizers are failing. -#ReplicaSetReplicaFailure: #ReplicaSetConditionType & "ReplicaFailure" - -// ReplicaSetCondition describes the state of a replica set at a certain point. -#ReplicaSetCondition: { - // Type of replica set condition. - type: #ReplicaSetConditionType @go(Type) @protobuf(1,bytes,opt,casttype=ReplicaSetConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // The last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // The reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// ControllerRevision implements an immutable snapshot of state data. Clients -// are responsible for serializing and deserializing the objects that contain -// their internal state. -// Once a ControllerRevision has been successfully created, it can not be updated. -// The API Server will fail validation of all requests that attempt to mutate -// the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both -// the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, -// it may be subject to name and representation changes in future releases, and clients should not -// depend on its stability. It is primarily for internal use by controllers. -#ControllerRevision: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Data is the serialized representation of the state. - data?: runtime.#RawExtension @go(Data) @protobuf(2,bytes,opt) - - // Revision indicates the revision of the state represented by Data. - revision: int64 @go(Revision) @protobuf(3,varint,opt) -} - -// ControllerRevisionList is a resource containing a list of ControllerRevision objects. -#ControllerRevisionList: { - metav1.#TypeMeta - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of ControllerRevisions - items: [...#ControllerRevision] @go(Items,[]ControllerRevision) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/apps/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/apps/v1beta1/register_go_gen.cue deleted file mode 100644 index d75b267..0000000 --- a/cue.mod/gen/k8s.io/api/apps/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/apps/v1beta1 - -package v1beta1 - -#GroupName: "apps" diff --git a/cue.mod/gen/k8s.io/api/apps/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/apps/v1beta1/types_go_gen.cue deleted file mode 100644 index 05ea498..0000000 --- a/cue.mod/gen/k8s.io/api/apps/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,656 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/apps/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/util/intstr" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -#ControllerRevisionHashLabelKey: "controller-revision-hash" -#StatefulSetRevisionLabel: "controller-revision-hash" -#StatefulSetPodNameLabel: "statefulset.kubernetes.io/pod-name" - -// ScaleSpec describes the attributes of a scale subresource -#ScaleSpec: { - // replicas is the number of observed instances of the scaled object. - // +optional - replicas?: int32 @go(Replicas) @protobuf(1,varint,opt) -} - -// ScaleStatus represents the current status of a scale subresource. -#ScaleStatus: { - // replias is the actual number of observed instances of the scaled object. - replicas: int32 @go(Replicas) @protobuf(1,varint,opt) - - // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - // +optional - selector?: {[string]: string} @go(Selector,map[string]string) @protobuf(2,bytes,rep) - - // targetSelector is the label selector for pods that should match the replicas count. This is a serializated - // version of both map-based and more expressive set-based selectors. This is done to - // avoid introspection in the clients. The string will be in the same format as the - // query-param syntax. If the target type only supports map-based selectors, both this - // field and map-based selector field are populated. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - targetSelector?: string @go(TargetSelector) @protobuf(3,bytes,opt) -} - -// Scale represents a scaling request for a resource. -#Scale: { - metav1.#TypeMeta - - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - spec?: #ScaleSpec @go(Spec) @protobuf(2,bytes,opt) - - // status defines current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. - // +optional - status?: #ScaleStatus @go(Status) @protobuf(3,bytes,opt) -} - -// DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for -// more information. -// StatefulSet represents a set of pods with consistent identities. -// Identities are defined as: -// - Network: A single stable DNS and hostname. -// - Storage: As many VolumeClaims as requested. -// -// The StatefulSet guarantees that a given network identity will always -// map to the same storage identity. -#StatefulSet: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the desired identities of pods in this set. - // +optional - spec?: #StatefulSetSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is the current status of Pods in this StatefulSet. This data - // may be out of date by some window of time. - // +optional - status?: #StatefulSetStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PodManagementPolicyType defines the policy for creating pods under a stateful set. -#PodManagementPolicyType: string // #enumPodManagementPolicyType - -#enumPodManagementPolicyType: - #OrderedReadyPodManagement | - #ParallelPodManagement - -// OrderedReadyPodManagement will create pods in strictly increasing order on -// scale up and strictly decreasing order on scale down, progressing only when -// the previous pod is ready or terminated. At most one pod will be changed -// at any time. -#OrderedReadyPodManagement: #PodManagementPolicyType & "OrderedReady" - -// ParallelPodManagement will create and delete pods as soon as the stateful set -// replica count is changed, and will not wait for pods to be ready or complete -// termination. -#ParallelPodManagement: #PodManagementPolicyType & "Parallel" - -// StatefulSetUpdateStrategy indicates the strategy that the StatefulSet -// controller will use to perform updates. It includes any additional parameters -// necessary to perform the update for the indicated strategy. -#StatefulSetUpdateStrategy: { - // Type indicates the type of the StatefulSetUpdateStrategy. - type?: #StatefulSetUpdateStrategyType @go(Type) @protobuf(1,bytes,opt,casttype=StatefulSetStrategyType) - - // RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - rollingUpdate?: null | #RollingUpdateStatefulSetStrategy @go(RollingUpdate,*RollingUpdateStatefulSetStrategy) @protobuf(2,bytes,opt) -} - -// StatefulSetUpdateStrategyType is a string enumeration type that enumerates -// all possible update strategies for the StatefulSet controller. -#StatefulSetUpdateStrategyType: string // #enumStatefulSetUpdateStrategyType - -#enumStatefulSetUpdateStrategyType: - #RollingUpdateStatefulSetStrategyType | - #OnDeleteStatefulSetStrategyType - -// RollingUpdateStatefulSetStrategyType indicates that update will be -// applied to all Pods in the StatefulSet with respect to the StatefulSet -// ordering constraints. When a scale operation is performed with this -// strategy, new Pods will be created from the specification version indicated -// by the StatefulSet's updateRevision. -#RollingUpdateStatefulSetStrategyType: #StatefulSetUpdateStrategyType & "RollingUpdate" - -// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version -// tracking and ordered rolling restarts are disabled. Pods are recreated -// from the StatefulSetSpec when they are manually deleted. When a scale -// operation is performed with this strategy,specification version indicated -// by the StatefulSet's currentRevision. -#OnDeleteStatefulSetStrategyType: #StatefulSetUpdateStrategyType & "OnDelete" - -// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. -#RollingUpdateStatefulSetStrategy: { - // Partition indicates the ordinal at which the StatefulSet should be partitioned - // for updates. During a rolling update, all pods from ordinal Replicas-1 to - // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. - // This is helpful in being able to do a canary based deployment. The default value is 0. - partition?: null | int32 @go(Partition,*int32) @protobuf(1,varint,opt) - - // maxUnavailable is the maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding up. This can not be 0. - // Defaults to 1. This field is alpha-level and is only honored by servers that enable the - // MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to - // Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it - // will be counted towards MaxUnavailable. - // +optional - maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(2,varint,opt) -} - -// PersistentVolumeClaimRetentionPolicyType is a string enumeration of the policies that will determine -// when volumes from the VolumeClaimTemplates will be deleted when the controlling StatefulSet is -// deleted or scaled down. -#PersistentVolumeClaimRetentionPolicyType: string // #enumPersistentVolumeClaimRetentionPolicyType - -#enumPersistentVolumeClaimRetentionPolicyType: - #RetainPersistentVolumeClaimRetentionPolicyType | - #RetentionPersistentVolumeClaimRetentionPolicyType - -// RetainPersistentVolumeClaimRetentionPolicyType is the default -// PersistentVolumeClaimRetentionPolicy and specifies that -// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates -// will not be deleted. -#RetainPersistentVolumeClaimRetentionPolicyType: #PersistentVolumeClaimRetentionPolicyType & "Retain" - -// RetentionPersistentVolumeClaimRetentionPolicyType specifies that -// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates -// will be deleted in the scenario specified in -// StatefulSetPersistentVolumeClaimRetentionPolicy. -#RetentionPersistentVolumeClaimRetentionPolicyType: #PersistentVolumeClaimRetentionPolicyType & "Delete" - -// StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs -// created from the StatefulSet VolumeClaimTemplates. -#StatefulSetPersistentVolumeClaimRetentionPolicy: { - // whenDeleted specifies what happens to PVCs created from StatefulSet - // VolumeClaimTemplates when the StatefulSet is deleted. The default policy - // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The - // `Delete` policy causes those PVCs to be deleted. - whenDeleted?: #PersistentVolumeClaimRetentionPolicyType @go(WhenDeleted) @protobuf(1,bytes,opt,casttype=PersistentVolumeClaimRetentionPolicyType) - - // whenScaled specifies what happens to PVCs created from StatefulSet - // VolumeClaimTemplates when the StatefulSet is scaled down. The default - // policy of `Retain` causes PVCs to not be affected by a scaledown. The - // `Delete` policy causes the associated PVCs for any excess pods above - // the replica count to be deleted. - whenScaled?: #PersistentVolumeClaimRetentionPolicyType @go(WhenScaled) @protobuf(2,bytes,opt,casttype=PersistentVolumeClaimRetentionPolicyType) -} - -// StatefulSetOrdinals describes the policy used for replica ordinal assignment -// in this StatefulSet. -#StatefulSetOrdinals: { - // start is the number representing the first replica's index. It may be used - // to number replicas from an alternate index (eg: 1-indexed) over the default - // 0-indexed names, or to orchestrate progressive movement of replicas from - // one StatefulSet to another. - // If set, replica indices will be in the range: - // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). - // If unset, defaults to 0. Replica indices will be in the range: - // [0, .spec.replicas). - // +optional - start: int32 @go(Start) @protobuf(1,varint,opt) -} - -// A StatefulSetSpec is the specification of a StatefulSet. -#StatefulSetSpec: { - // replicas is the desired number of replicas of the given Template. - // These are replicas in the sense that they are instantiations of the - // same Template, but individual replicas also have a consistent identity. - // If unspecified, defaults to 1. - // TODO: Consider a rename of this field. - // +optional - replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt) - - // selector is a label query over pods that should match the replica count. - // If empty, defaulted to labels on the pod template. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // template is the object that describes the pod that will be created if - // insufficient replicas are detected. Each pod stamped out by the StatefulSet - // will fulfill this Template, but have a unique identity from the rest - // of the StatefulSet. Each pod will be named with the format - // -. For example, a pod in a StatefulSet named - // "web" with index number "3" would be named "web-3". - template: v1.#PodTemplateSpec @go(Template) @protobuf(3,bytes,opt) - - // volumeClaimTemplates is a list of claims that pods are allowed to reference. - // The StatefulSet controller is responsible for mapping network identities to - // claims in a way that maintains the identity of a pod. Every claim in - // this list must have at least one matching (by name) volumeMount in one - // container in the template. A claim in this list takes precedence over - // any volumes in the template, with the same name. - // TODO: Define the behavior if a claim already exists with the same name. - // +optional - volumeClaimTemplates?: [...v1.#PersistentVolumeClaim] @go(VolumeClaimTemplates,[]v1.PersistentVolumeClaim) @protobuf(4,bytes,rep) - - // serviceName is the name of the service that governs this StatefulSet. - // This service must exist before the StatefulSet, and is responsible for - // the network identity of the set. Pods get DNS/hostnames that follow the - // pattern: pod-specific-string.serviceName.default.svc.cluster.local - // where "pod-specific-string" is managed by the StatefulSet controller. - serviceName: string @go(ServiceName) @protobuf(5,bytes,opt) - - // podManagementPolicy controls how pods are created during initial scale up, - // when replacing pods on nodes, or when scaling down. The default policy is - // `OrderedReady`, where pods are created in increasing order (pod-0, then - // pod-1, etc) and the controller will wait until each pod is ready before - // continuing. When scaling down, the pods are removed in the opposite order. - // The alternative policy is `Parallel` which will create pods in parallel - // to match the desired scale without waiting, and on scale down will delete - // all pods at once. - // +optional - podManagementPolicy?: #PodManagementPolicyType @go(PodManagementPolicy) @protobuf(6,bytes,opt,casttype=PodManagementPolicyType) - - // updateStrategy indicates the StatefulSetUpdateStrategy that will be - // employed to update Pods in the StatefulSet when a revision is made to - // Template. - updateStrategy?: #StatefulSetUpdateStrategy @go(UpdateStrategy) @protobuf(7,bytes,opt) - - // revisionHistoryLimit is the maximum number of revisions that will - // be maintained in the StatefulSet's revision history. The revision history - // consists of all revisions not represented by a currently applied - // StatefulSetSpec version. The default value is 10. - revisionHistoryLimit?: null | int32 @go(RevisionHistoryLimit,*int32) @protobuf(8,varint,opt) - - // minReadySeconds is the minimum number of seconds for which a newly created pod should be ready - // without any of its container crashing for it to be considered available. - // Defaults to 0 (pod will be considered available as soon as it is ready) - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(9,varint,opt) - - // PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from - // the StatefulSet VolumeClaimTemplates. This requires the - // StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. - // +optional - persistentVolumeClaimRetentionPolicy?: null | #StatefulSetPersistentVolumeClaimRetentionPolicy @go(PersistentVolumeClaimRetentionPolicy,*StatefulSetPersistentVolumeClaimRetentionPolicy) @protobuf(10,bytes,opt) - - // ordinals controls the numbering of replica indices in a StatefulSet. The - // default ordinals behavior assigns a "0" index to the first replica and - // increments the index by one for each additional replica requested. Using - // the ordinals field requires the StatefulSetStartOrdinal feature gate to be - // enabled, which is beta. - // +optional - ordinals?: null | #StatefulSetOrdinals @go(Ordinals,*StatefulSetOrdinals) @protobuf(11,bytes,opt) -} - -// StatefulSetStatus represents the current state of a StatefulSet. -#StatefulSetStatus: { - // observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the - // StatefulSet's generation, which is updated on mutation by the API Server. - // +optional - observedGeneration?: null | int64 @go(ObservedGeneration,*int64) @protobuf(1,varint,opt) - - // replicas is the number of Pods created by the StatefulSet controller. - replicas: int32 @go(Replicas) @protobuf(2,varint,opt) - - // readyReplicas is the number of pods created by this StatefulSet controller with a Ready Condition. - readyReplicas?: int32 @go(ReadyReplicas) @protobuf(3,varint,opt) - - // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by currentRevision. - currentReplicas?: int32 @go(CurrentReplicas) @protobuf(4,varint,opt) - - // updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by updateRevision. - updatedReplicas?: int32 @go(UpdatedReplicas) @protobuf(5,varint,opt) - - // currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the - // sequence [0,currentReplicas). - currentRevision?: string @go(CurrentRevision) @protobuf(6,bytes,opt) - - // updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence - // [replicas-updatedReplicas,replicas) - updateRevision?: string @go(UpdateRevision) @protobuf(7,bytes,opt) - - // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller - // uses this field as a collision avoidance mechanism when it needs to create the name for the - // newest ControllerRevision. - // +optional - collisionCount?: null | int32 @go(CollisionCount,*int32) @protobuf(9,varint,opt) - - // conditions represent the latest available observations of a statefulset's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#StatefulSetCondition] @go(Conditions,[]StatefulSetCondition) @protobuf(10,bytes,rep) - - // availableReplicas is the total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet. - // +optional - availableReplicas: int32 @go(AvailableReplicas) @protobuf(11,varint,opt) -} - -#StatefulSetConditionType: string - -// StatefulSetCondition describes the state of a statefulset at a certain point. -#StatefulSetCondition: { - // Type of statefulset condition. - type: #StatefulSetConditionType @go(Type) @protobuf(1,bytes,opt,casttype=StatefulSetConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // Last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // The reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// StatefulSetList is a collection of StatefulSets. -#StatefulSetList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - items: [...#StatefulSet] @go(Items,[]StatefulSet) @protobuf(2,bytes,rep) -} - -// DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for -// more information. -// Deployment enables declarative updates for Pods and ReplicaSets. -#Deployment: { - metav1.#TypeMeta - - // Standard object metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the Deployment. - // +optional - spec?: #DeploymentSpec @go(Spec) @protobuf(2,bytes,opt) - - // Most recently observed status of the Deployment. - // +optional - status?: #DeploymentStatus @go(Status) @protobuf(3,bytes,opt) -} - -// DeploymentSpec is the specification of the desired behavior of the Deployment. -#DeploymentSpec: { - // replicas is the number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional - replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt) - - // selector is the label selector for pods. Existing ReplicaSets whose pods are - // selected by this will be the ones affected by this deployment. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // Template describes the pods that will be created. - // The only allowed template.spec.restartPolicy value is "Always". - template: v1.#PodTemplateSpec @go(Template) @protobuf(3,bytes,opt) - - // The deployment strategy to use to replace existing pods with new ones. - // +optional - // +patchStrategy=retainKeys - strategy?: #DeploymentStrategy @go(Strategy) @protobuf(4,bytes,opt) - - // minReadySeconds is the minimum number of seconds for which a newly created pod should be ready - // without any of its container crashing, for it to be considered available. - // Defaults to 0 (pod will be considered available as soon as it is ready) - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(5,varint,opt) - - // revisionHistoryLimit is the number of old ReplicaSets to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 2. - // +optional - revisionHistoryLimit?: null | int32 @go(RevisionHistoryLimit,*int32) @protobuf(6,varint,opt) - - // paused indicates that the deployment is paused. - // +optional - paused?: bool @go(Paused) @protobuf(7,varint,opt) - - // DEPRECATED. - // rollbackTo is the config this deployment is rolling back to. Will be cleared after rollback is done. - // +optional - rollbackTo?: null | #RollbackConfig @go(RollbackTo,*RollbackConfig) @protobuf(8,bytes,opt) - - // progressDeadlineSeconds is the maximum time in seconds for a deployment to make progress before it - // is considered to be failed. The deployment controller will continue to - // process failed deployments and a condition with a ProgressDeadlineExceeded - // reason will be surfaced in the deployment status. Note that progress will - // not be estimated during the time a deployment is paused. Defaults to 600s. - // +optional - progressDeadlineSeconds?: null | int32 @go(ProgressDeadlineSeconds,*int32) @protobuf(9,varint,opt) -} - -// DEPRECATED. -// DeploymentRollback stores the information required to rollback a deployment. -#DeploymentRollback: { - metav1.#TypeMeta - - // Required: This must match the Name of a deployment. - name: string @go(Name) @protobuf(1,bytes,opt) - - // The annotations to be updated to a deployment - // +optional - updatedAnnotations?: {[string]: string} @go(UpdatedAnnotations,map[string]string) @protobuf(2,bytes,rep) - - // The config of this deployment rollback. - rollbackTo: #RollbackConfig @go(RollbackTo) @protobuf(3,bytes,opt) -} - -// DEPRECATED. -#RollbackConfig: { - // The revision to rollback to. If set to 0, rollback to the last revision. - // +optional - revision?: int64 @go(Revision) @protobuf(1,varint,opt) -} - -// DefaultDeploymentUniqueLabelKey is the default key of the selector that is added -// to existing ReplicaSets (and label key that is added to its pods) to prevent the existing ReplicaSets -// to select new pods (and old pods being select by new ReplicaSet). -#DefaultDeploymentUniqueLabelKey: "pod-template-hash" - -// DeploymentStrategy describes how to replace existing pods with new ones. -#DeploymentStrategy: { - // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // +optional - type?: #DeploymentStrategyType @go(Type) @protobuf(1,bytes,opt,casttype=DeploymentStrategyType) - - // Rolling update config params. Present only if DeploymentStrategyType = - // RollingUpdate. - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. - // +optional - rollingUpdate?: null | #RollingUpdateDeployment @go(RollingUpdate,*RollingUpdateDeployment) @protobuf(2,bytes,opt) -} - -#DeploymentStrategyType: string // #enumDeploymentStrategyType - -#enumDeploymentStrategyType: - #RecreateDeploymentStrategyType | - #RollingUpdateDeploymentStrategyType - -// Kill all existing pods before creating new ones. -#RecreateDeploymentStrategyType: #DeploymentStrategyType & "Recreate" - -// Replace the old ReplicaSets by new one using rolling update i.e gradually scale down the old ReplicaSets and scale up the new one. -#RollingUpdateDeploymentStrategyType: #DeploymentStrategyType & "RollingUpdate" - -// Spec to control the desired behavior of rolling update. -#RollingUpdateDeployment: { - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding down. - // This can not be 0 if MaxSurge is 0. - // Defaults to 25%. - // Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods - // immediately when the rolling update starts. Once new pods are ready, old ReplicaSet - // can be scaled down further, followed by scaling up the new ReplicaSet, ensuring - // that the total number of pods available at all times during the update is at - // least 70% of desired pods. - // +optional - maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(1,bytes,opt) - - // The maximum number of pods that can be scheduled above the desired number of - // pods. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up. - // Defaults to 25%. - // Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when - // the rolling update starts, such that the total number of old and new pods do not exceed - // 130% of desired pods. Once old pods have been killed, - // new ReplicaSet can be scaled up further, ensuring that total number of pods running - // at any time during the update is at most 130% of desired pods. - // +optional - maxSurge?: null | intstr.#IntOrString @go(MaxSurge,*intstr.IntOrString) @protobuf(2,bytes,opt) -} - -// DeploymentStatus is the most recently observed status of the Deployment. -#DeploymentStatus: { - // observedGeneration is the generation observed by the deployment controller. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(1,varint,opt) - - // replicas is the total number of non-terminated pods targeted by this deployment (their labels match the selector). - // +optional - replicas?: int32 @go(Replicas) @protobuf(2,varint,opt) - - // updatedReplicas is the total number of non-terminated pods targeted by this deployment that have the desired template spec. - // +optional - updatedReplicas?: int32 @go(UpdatedReplicas) @protobuf(3,varint,opt) - - // readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition. - // +optional - readyReplicas?: int32 @go(ReadyReplicas) @protobuf(7,varint,opt) - - // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - // +optional - availableReplicas?: int32 @go(AvailableReplicas) @protobuf(4,varint,opt) - - // unavailableReplicas is the total number of unavailable pods targeted by this deployment. This is the total number of - // pods that are still required for the deployment to have 100% available capacity. They may - // either be pods that are running but not yet available or pods that still have not been created. - // +optional - unavailableReplicas?: int32 @go(UnavailableReplicas) @protobuf(5,varint,opt) - - // Conditions represent the latest available observations of a deployment's current state. - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#DeploymentCondition] @go(Conditions,[]DeploymentCondition) @protobuf(6,bytes,rep) - - // collisionCount is the count of hash collisions for the Deployment. The Deployment controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest ReplicaSet. - // +optional - collisionCount?: null | int32 @go(CollisionCount,*int32) @protobuf(8,varint,opt) -} - -#DeploymentConditionType: string // #enumDeploymentConditionType - -#enumDeploymentConditionType: - #DeploymentAvailable | - #DeploymentProgressing | - #DeploymentReplicaFailure - -// Available means the deployment is available, ie. at least the minimum available -// replicas required are up and running for at least minReadySeconds. -#DeploymentAvailable: #DeploymentConditionType & "Available" - -// Progressing means the deployment is progressing. Progress for a deployment is -// considered when a new replica set is created or adopted, and when new pods scale -// up or old pods scale down. Progress is not estimated for paused deployments or -// when progressDeadlineSeconds is not specified. -#DeploymentProgressing: #DeploymentConditionType & "Progressing" - -// ReplicaFailure is added in a deployment when one of its pods fails to be created -// or deleted. -#DeploymentReplicaFailure: #DeploymentConditionType & "ReplicaFailure" - -// DeploymentCondition describes the state of a deployment at a certain point. -#DeploymentCondition: { - // Type of deployment condition. - type: #DeploymentConditionType @go(Type) @protobuf(1,bytes,opt,casttype=DeploymentConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // The last time this condition was updated. - lastUpdateTime?: metav1.#Time @go(LastUpdateTime) @protobuf(6,bytes,opt) - - // Last time the condition transitioned from one status to another. - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(7,bytes,opt) - - // The reason for the condition's last transition. - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// DeploymentList is a list of Deployments. -#DeploymentList: { - metav1.#TypeMeta - - // Standard list metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of Deployments. - items: [...#Deployment] @go(Items,[]Deployment) @protobuf(2,bytes,rep) -} - -// DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1beta2/ControllerRevision. See the -// release notes for more information. -// ControllerRevision implements an immutable snapshot of state data. Clients -// are responsible for serializing and deserializing the objects that contain -// their internal state. -// Once a ControllerRevision has been successfully created, it can not be updated. -// The API Server will fail validation of all requests that attempt to mutate -// the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both -// the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, -// it may be subject to name and representation changes in future releases, and clients should not -// depend on its stability. It is primarily for internal use by controllers. -#ControllerRevision: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // data is the serialized representation of the state. - data?: runtime.#RawExtension @go(Data) @protobuf(2,bytes,opt) - - // revision indicates the revision of the state represented by Data. - revision: int64 @go(Revision) @protobuf(3,varint,opt) -} - -// ControllerRevisionList is a resource containing a list of ControllerRevision objects. -#ControllerRevisionList: { - metav1.#TypeMeta - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of ControllerRevisions - items: [...#ControllerRevision] @go(Items,[]ControllerRevision) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/apps/v1beta2/register_go_gen.cue b/cue.mod/gen/k8s.io/api/apps/v1beta2/register_go_gen.cue deleted file mode 100644 index 94dacd8..0000000 --- a/cue.mod/gen/k8s.io/api/apps/v1beta2/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/apps/v1beta2 - -package v1beta2 - -#GroupName: "apps" diff --git a/cue.mod/gen/k8s.io/api/apps/v1beta2/types_go_gen.cue b/cue.mod/gen/k8s.io/api/apps/v1beta2/types_go_gen.cue deleted file mode 100644 index 337be04..0000000 --- a/cue.mod/gen/k8s.io/api/apps/v1beta2/types_go_gen.cue +++ /dev/null @@ -1,984 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/apps/v1beta2 - -package v1beta2 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/util/intstr" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -#ControllerRevisionHashLabelKey: "controller-revision-hash" -#StatefulSetRevisionLabel: "controller-revision-hash" -#DeprecatedRollbackTo: "deprecated.deployment.rollback.to" -#DeprecatedTemplateGeneration: "deprecated.daemonset.template.generation" -#StatefulSetPodNameLabel: "statefulset.kubernetes.io/pod-name" - -// ScaleSpec describes the attributes of a scale subresource -#ScaleSpec: { - // desired number of instances for the scaled object. - // +optional - replicas?: int32 @go(Replicas) @protobuf(1,varint,opt) -} - -// ScaleStatus represents the current status of a scale subresource. -#ScaleStatus: { - // actual number of observed instances of the scaled object. - replicas: int32 @go(Replicas) @protobuf(1,varint,opt) - - // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - // +optional - // +mapType=atomic - selector?: {[string]: string} @go(Selector,map[string]string) @protobuf(2,bytes,rep) - - // label selector for pods that should match the replicas count. This is a serializated - // version of both map-based and more expressive set-based selectors. This is done to - // avoid introspection in the clients. The string will be in the same format as the - // query-param syntax. If the target type only supports map-based selectors, both this - // field and map-based selector field are populated. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - targetSelector?: string @go(TargetSelector) @protobuf(3,bytes,opt) -} - -// Scale represents a scaling request for a resource. -#Scale: { - metav1.#TypeMeta - - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - spec?: #ScaleSpec @go(Spec) @protobuf(2,bytes,opt) - - // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. - // +optional - status?: #ScaleStatus @go(Status) @protobuf(3,bytes,opt) -} - -// DEPRECATED - This group version of StatefulSet is deprecated by apps/v1/StatefulSet. See the release notes for -// more information. -// StatefulSet represents a set of pods with consistent identities. -// Identities are defined as: -// - Network: A single stable DNS and hostname. -// - Storage: As many VolumeClaims as requested. -// -// The StatefulSet guarantees that a given network identity will always -// map to the same storage identity. -#StatefulSet: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the desired identities of pods in this set. - // +optional - spec?: #StatefulSetSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is the current status of Pods in this StatefulSet. This data - // may be out of date by some window of time. - // +optional - status?: #StatefulSetStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PodManagementPolicyType defines the policy for creating pods under a stateful set. -#PodManagementPolicyType: string // #enumPodManagementPolicyType - -#enumPodManagementPolicyType: - #OrderedReadyPodManagement | - #ParallelPodManagement - -// OrderedReadyPodManagement will create pods in strictly increasing order on -// scale up and strictly decreasing order on scale down, progressing only when -// the previous pod is ready or terminated. At most one pod will be changed -// at any time. -#OrderedReadyPodManagement: #PodManagementPolicyType & "OrderedReady" - -// ParallelPodManagement will create and delete pods as soon as the stateful set -// replica count is changed, and will not wait for pods to be ready or complete -// termination. -#ParallelPodManagement: #PodManagementPolicyType & "Parallel" - -// StatefulSetUpdateStrategy indicates the strategy that the StatefulSet -// controller will use to perform updates. It includes any additional parameters -// necessary to perform the update for the indicated strategy. -#StatefulSetUpdateStrategy: { - // Type indicates the type of the StatefulSetUpdateStrategy. - // Default is RollingUpdate. - // +optional - type?: #StatefulSetUpdateStrategyType @go(Type) @protobuf(1,bytes,opt,casttype=StatefulSetStrategyType) - - // RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - // +optional - rollingUpdate?: null | #RollingUpdateStatefulSetStrategy @go(RollingUpdate,*RollingUpdateStatefulSetStrategy) @protobuf(2,bytes,opt) -} - -// StatefulSetUpdateStrategyType is a string enumeration type that enumerates -// all possible update strategies for the StatefulSet controller. -#StatefulSetUpdateStrategyType: string // #enumStatefulSetUpdateStrategyType - -#enumStatefulSetUpdateStrategyType: - #RollingUpdateStatefulSetStrategyType | - #OnDeleteStatefulSetStrategyType - -// RollingUpdateStatefulSetStrategyType indicates that update will be -// applied to all Pods in the StatefulSet with respect to the StatefulSet -// ordering constraints. When a scale operation is performed with this -// strategy, new Pods will be created from the specification version indicated -// by the StatefulSet's updateRevision. -#RollingUpdateStatefulSetStrategyType: #StatefulSetUpdateStrategyType & "RollingUpdate" - -// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version -// tracking and ordered rolling restarts are disabled. Pods are recreated -// from the StatefulSetSpec when they are manually deleted. When a scale -// operation is performed with this strategy,specification version indicated -// by the StatefulSet's currentRevision. -#OnDeleteStatefulSetStrategyType: #StatefulSetUpdateStrategyType & "OnDelete" - -// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. -#RollingUpdateStatefulSetStrategy: { - // Partition indicates the ordinal at which the StatefulSet should be partitioned - // for updates. During a rolling update, all pods from ordinal Replicas-1 to - // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. - // This is helpful in being able to do a canary based deployment. The default value is 0. - // +optional - partition?: null | int32 @go(Partition,*int32) @protobuf(1,varint,opt) - - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding up. This can not be 0. - // Defaults to 1. This field is alpha-level and is only honored by servers that enable the - // MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to - // Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it - // will be counted towards MaxUnavailable. - // +optional - maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(2,varint,opt) -} - -// PersistentVolumeClaimRetentionPolicyType is a string enumeration of the policies that will determine -// when volumes from the VolumeClaimTemplates will be deleted when the controlling StatefulSet is -// deleted or scaled down. -#PersistentVolumeClaimRetentionPolicyType: string // #enumPersistentVolumeClaimRetentionPolicyType - -#enumPersistentVolumeClaimRetentionPolicyType: - #RetainPersistentVolumeClaimRetentionPolicyType | - #RetentionPersistentVolumeClaimRetentionPolicyType - -// RetainPersistentVolumeClaimRetentionPolicyType is the default -// PersistentVolumeClaimRetentionPolicy and specifies that -// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates -// will not be deleted. -#RetainPersistentVolumeClaimRetentionPolicyType: #PersistentVolumeClaimRetentionPolicyType & "Retain" - -// RetentionPersistentVolumeClaimRetentionPolicyType specifies that -// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates -// will be deleted in the scenario specified in -// StatefulSetPersistentVolumeClaimRetentionPolicy. -#RetentionPersistentVolumeClaimRetentionPolicyType: #PersistentVolumeClaimRetentionPolicyType & "Delete" - -// StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs -// created from the StatefulSet VolumeClaimTemplates. -#StatefulSetPersistentVolumeClaimRetentionPolicy: { - // WhenDeleted specifies what happens to PVCs created from StatefulSet - // VolumeClaimTemplates when the StatefulSet is deleted. The default policy - // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The - // `Delete` policy causes those PVCs to be deleted. - whenDeleted?: #PersistentVolumeClaimRetentionPolicyType @go(WhenDeleted) @protobuf(1,bytes,opt,casttype=PersistentVolumeClaimRetentionPolicyType) - - // WhenScaled specifies what happens to PVCs created from StatefulSet - // VolumeClaimTemplates when the StatefulSet is scaled down. The default - // policy of `Retain` causes PVCs to not be affected by a scaledown. The - // `Delete` policy causes the associated PVCs for any excess pods above - // the replica count to be deleted. - whenScaled?: #PersistentVolumeClaimRetentionPolicyType @go(WhenScaled) @protobuf(2,bytes,opt,casttype=PersistentVolumeClaimRetentionPolicyType) -} - -// StatefulSetOrdinals describes the policy used for replica ordinal assignment -// in this StatefulSet. -#StatefulSetOrdinals: { - // start is the number representing the first replica's index. It may be used - // to number replicas from an alternate index (eg: 1-indexed) over the default - // 0-indexed names, or to orchestrate progressive movement of replicas from - // one StatefulSet to another. - // If set, replica indices will be in the range: - // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). - // If unset, defaults to 0. Replica indices will be in the range: - // [0, .spec.replicas). - // +optional - start: int32 @go(Start) @protobuf(1,varint,opt) -} - -// A StatefulSetSpec is the specification of a StatefulSet. -#StatefulSetSpec: { - // replicas is the desired number of replicas of the given Template. - // These are replicas in the sense that they are instantiations of the - // same Template, but individual replicas also have a consistent identity. - // If unspecified, defaults to 1. - // TODO: Consider a rename of this field. - // +optional - replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt) - - // selector is a label query over pods that should match the replica count. - // It must match the pod template's labels. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // template is the object that describes the pod that will be created if - // insufficient replicas are detected. Each pod stamped out by the StatefulSet - // will fulfill this Template, but have a unique identity from the rest - // of the StatefulSet. Each pod will be named with the format - // -. For example, a pod in a StatefulSet named - // "web" with index number "3" would be named "web-3". - // The only allowed template.spec.restartPolicy value is "Always". - template: v1.#PodTemplateSpec @go(Template) @protobuf(3,bytes,opt) - - // volumeClaimTemplates is a list of claims that pods are allowed to reference. - // The StatefulSet controller is responsible for mapping network identities to - // claims in a way that maintains the identity of a pod. Every claim in - // this list must have at least one matching (by name) volumeMount in one - // container in the template. A claim in this list takes precedence over - // any volumes in the template, with the same name. - // TODO: Define the behavior if a claim already exists with the same name. - // +optional - volumeClaimTemplates?: [...v1.#PersistentVolumeClaim] @go(VolumeClaimTemplates,[]v1.PersistentVolumeClaim) @protobuf(4,bytes,rep) - - // serviceName is the name of the service that governs this StatefulSet. - // This service must exist before the StatefulSet, and is responsible for - // the network identity of the set. Pods get DNS/hostnames that follow the - // pattern: pod-specific-string.serviceName.default.svc.cluster.local - // where "pod-specific-string" is managed by the StatefulSet controller. - serviceName: string @go(ServiceName) @protobuf(5,bytes,opt) - - // podManagementPolicy controls how pods are created during initial scale up, - // when replacing pods on nodes, or when scaling down. The default policy is - // `OrderedReady`, where pods are created in increasing order (pod-0, then - // pod-1, etc) and the controller will wait until each pod is ready before - // continuing. When scaling down, the pods are removed in the opposite order. - // The alternative policy is `Parallel` which will create pods in parallel - // to match the desired scale without waiting, and on scale down will delete - // all pods at once. - // +optional - podManagementPolicy?: #PodManagementPolicyType @go(PodManagementPolicy) @protobuf(6,bytes,opt,casttype=PodManagementPolicyType) - - // updateStrategy indicates the StatefulSetUpdateStrategy that will be - // employed to update Pods in the StatefulSet when a revision is made to - // Template. - updateStrategy?: #StatefulSetUpdateStrategy @go(UpdateStrategy) @protobuf(7,bytes,opt) - - // revisionHistoryLimit is the maximum number of revisions that will - // be maintained in the StatefulSet's revision history. The revision history - // consists of all revisions not represented by a currently applied - // StatefulSetSpec version. The default value is 10. - revisionHistoryLimit?: null | int32 @go(RevisionHistoryLimit,*int32) @protobuf(8,varint,opt) - - // Minimum number of seconds for which a newly created pod should be ready - // without any of its container crashing for it to be considered available. - // Defaults to 0 (pod will be considered available as soon as it is ready) - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(9,varint,opt) - - // PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from - // the StatefulSet VolumeClaimTemplates. This requires the - // StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. - // +optional - persistentVolumeClaimRetentionPolicy?: null | #StatefulSetPersistentVolumeClaimRetentionPolicy @go(PersistentVolumeClaimRetentionPolicy,*StatefulSetPersistentVolumeClaimRetentionPolicy) @protobuf(10,bytes,opt) - - // ordinals controls the numbering of replica indices in a StatefulSet. The - // default ordinals behavior assigns a "0" index to the first replica and - // increments the index by one for each additional replica requested. Using - // the ordinals field requires the StatefulSetStartOrdinal feature gate to be - // enabled, which is beta. - // +optional - ordinals?: null | #StatefulSetOrdinals @go(Ordinals,*StatefulSetOrdinals) @protobuf(11,bytes,opt) -} - -// StatefulSetStatus represents the current state of a StatefulSet. -#StatefulSetStatus: { - // observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the - // StatefulSet's generation, which is updated on mutation by the API Server. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(1,varint,opt) - - // replicas is the number of Pods created by the StatefulSet controller. - replicas: int32 @go(Replicas) @protobuf(2,varint,opt) - - // readyReplicas is the number of pods created by this StatefulSet controller with a Ready Condition. - readyReplicas?: int32 @go(ReadyReplicas) @protobuf(3,varint,opt) - - // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by currentRevision. - currentReplicas?: int32 @go(CurrentReplicas) @protobuf(4,varint,opt) - - // updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by updateRevision. - updatedReplicas?: int32 @go(UpdatedReplicas) @protobuf(5,varint,opt) - - // currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the - // sequence [0,currentReplicas). - currentRevision?: string @go(CurrentRevision) @protobuf(6,bytes,opt) - - // updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence - // [replicas-updatedReplicas,replicas) - updateRevision?: string @go(UpdateRevision) @protobuf(7,bytes,opt) - - // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller - // uses this field as a collision avoidance mechanism when it needs to create the name for the - // newest ControllerRevision. - // +optional - collisionCount?: null | int32 @go(CollisionCount,*int32) @protobuf(9,varint,opt) - - // Represents the latest available observations of a statefulset's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#StatefulSetCondition] @go(Conditions,[]StatefulSetCondition) @protobuf(10,bytes,rep) - - // Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet. - // +optional - availableReplicas: int32 @go(AvailableReplicas) @protobuf(11,varint,opt) -} - -#StatefulSetConditionType: string - -// StatefulSetCondition describes the state of a statefulset at a certain point. -#StatefulSetCondition: { - // Type of statefulset condition. - type: #StatefulSetConditionType @go(Type) @protobuf(1,bytes,opt,casttype=StatefulSetConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // Last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // The reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// StatefulSetList is a collection of StatefulSets. -#StatefulSetList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - items: [...#StatefulSet] @go(Items,[]StatefulSet) @protobuf(2,bytes,rep) -} - -// DEPRECATED - This group version of Deployment is deprecated by apps/v1/Deployment. See the release notes for -// more information. -// Deployment enables declarative updates for Pods and ReplicaSets. -#Deployment: { - metav1.#TypeMeta - - // Standard object metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the Deployment. - // +optional - spec?: #DeploymentSpec @go(Spec) @protobuf(2,bytes,opt) - - // Most recently observed status of the Deployment. - // +optional - status?: #DeploymentStatus @go(Status) @protobuf(3,bytes,opt) -} - -// DeploymentSpec is the specification of the desired behavior of the Deployment. -#DeploymentSpec: { - // Number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional - replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt) - - // Label selector for pods. Existing ReplicaSets whose pods are - // selected by this will be the ones affected by this deployment. - // It must match the pod template's labels. - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // Template describes the pods that will be created. - // The only allowed template.spec.restartPolicy value is "Always". - template: v1.#PodTemplateSpec @go(Template) @protobuf(3,bytes,opt) - - // The deployment strategy to use to replace existing pods with new ones. - // +optional - // +patchStrategy=retainKeys - strategy?: #DeploymentStrategy @go(Strategy) @protobuf(4,bytes,opt) - - // Minimum number of seconds for which a newly created pod should be ready - // without any of its container crashing, for it to be considered available. - // Defaults to 0 (pod will be considered available as soon as it is ready) - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(5,varint,opt) - - // The number of old ReplicaSets to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - revisionHistoryLimit?: null | int32 @go(RevisionHistoryLimit,*int32) @protobuf(6,varint,opt) - - // Indicates that the deployment is paused. - // +optional - paused?: bool @go(Paused) @protobuf(7,varint,opt) - - // The maximum time in seconds for a deployment to make progress before it - // is considered to be failed. The deployment controller will continue to - // process failed deployments and a condition with a ProgressDeadlineExceeded - // reason will be surfaced in the deployment status. Note that progress will - // not be estimated during the time a deployment is paused. Defaults to 600s. - progressDeadlineSeconds?: null | int32 @go(ProgressDeadlineSeconds,*int32) @protobuf(9,varint,opt) -} - -// DefaultDeploymentUniqueLabelKey is the default key of the selector that is added -// to existing ReplicaSets (and label key that is added to its pods) to prevent the existing ReplicaSets -// to select new pods (and old pods being select by new ReplicaSet). -#DefaultDeploymentUniqueLabelKey: "pod-template-hash" - -// DeploymentStrategy describes how to replace existing pods with new ones. -#DeploymentStrategy: { - // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // +optional - type?: #DeploymentStrategyType @go(Type) @protobuf(1,bytes,opt,casttype=DeploymentStrategyType) - - // Rolling update config params. Present only if DeploymentStrategyType = - // RollingUpdate. - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. - // +optional - rollingUpdate?: null | #RollingUpdateDeployment @go(RollingUpdate,*RollingUpdateDeployment) @protobuf(2,bytes,opt) -} - -#DeploymentStrategyType: string // #enumDeploymentStrategyType - -#enumDeploymentStrategyType: - #RecreateDeploymentStrategyType | - #RollingUpdateDeploymentStrategyType - -// Kill all existing pods before creating new ones. -#RecreateDeploymentStrategyType: #DeploymentStrategyType & "Recreate" - -// Replace the old ReplicaSets by new one using rolling update i.e gradually scale down the old ReplicaSets and scale up the new one. -#RollingUpdateDeploymentStrategyType: #DeploymentStrategyType & "RollingUpdate" - -// Spec to control the desired behavior of rolling update. -#RollingUpdateDeployment: { - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding down. - // This can not be 0 if MaxSurge is 0. - // Defaults to 25%. - // Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods - // immediately when the rolling update starts. Once new pods are ready, old ReplicaSet - // can be scaled down further, followed by scaling up the new ReplicaSet, ensuring - // that the total number of pods available at all times during the update is at - // least 70% of desired pods. - // +optional - maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(1,bytes,opt) - - // The maximum number of pods that can be scheduled above the desired number of - // pods. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up. - // Defaults to 25%. - // Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when - // the rolling update starts, such that the total number of old and new pods do not exceed - // 130% of desired pods. Once old pods have been killed, - // new ReplicaSet can be scaled up further, ensuring that total number of pods running - // at any time during the update is at most 130% of desired pods. - // +optional - maxSurge?: null | intstr.#IntOrString @go(MaxSurge,*intstr.IntOrString) @protobuf(2,bytes,opt) -} - -// DeploymentStatus is the most recently observed status of the Deployment. -#DeploymentStatus: { - // The generation observed by the deployment controller. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(1,varint,opt) - - // Total number of non-terminated pods targeted by this deployment (their labels match the selector). - // +optional - replicas?: int32 @go(Replicas) @protobuf(2,varint,opt) - - // Total number of non-terminated pods targeted by this deployment that have the desired template spec. - // +optional - updatedReplicas?: int32 @go(UpdatedReplicas) @protobuf(3,varint,opt) - - // readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition. - // +optional - readyReplicas?: int32 @go(ReadyReplicas) @protobuf(7,varint,opt) - - // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - // +optional - availableReplicas?: int32 @go(AvailableReplicas) @protobuf(4,varint,opt) - - // Total number of unavailable pods targeted by this deployment. This is the total number of - // pods that are still required for the deployment to have 100% available capacity. They may - // either be pods that are running but not yet available or pods that still have not been created. - // +optional - unavailableReplicas?: int32 @go(UnavailableReplicas) @protobuf(5,varint,opt) - - // Represents the latest available observations of a deployment's current state. - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#DeploymentCondition] @go(Conditions,[]DeploymentCondition) @protobuf(6,bytes,rep) - - // Count of hash collisions for the Deployment. The Deployment controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest ReplicaSet. - // +optional - collisionCount?: null | int32 @go(CollisionCount,*int32) @protobuf(8,varint,opt) -} - -#DeploymentConditionType: string // #enumDeploymentConditionType - -#enumDeploymentConditionType: - #DeploymentAvailable | - #DeploymentProgressing | - #DeploymentReplicaFailure - -// Available means the deployment is available, ie. at least the minimum available -// replicas required are up and running for at least minReadySeconds. -#DeploymentAvailable: #DeploymentConditionType & "Available" - -// Progressing means the deployment is progressing. Progress for a deployment is -// considered when a new replica set is created or adopted, and when new pods scale -// up or old pods scale down. Progress is not estimated for paused deployments or -// when progressDeadlineSeconds is not specified. -#DeploymentProgressing: #DeploymentConditionType & "Progressing" - -// ReplicaFailure is added in a deployment when one of its pods fails to be created -// or deleted. -#DeploymentReplicaFailure: #DeploymentConditionType & "ReplicaFailure" - -// DeploymentCondition describes the state of a deployment at a certain point. -#DeploymentCondition: { - // Type of deployment condition. - type: #DeploymentConditionType @go(Type) @protobuf(1,bytes,opt,casttype=DeploymentConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // The last time this condition was updated. - lastUpdateTime?: metav1.#Time @go(LastUpdateTime) @protobuf(6,bytes,opt) - - // Last time the condition transitioned from one status to another. - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(7,bytes,opt) - - // The reason for the condition's last transition. - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// DeploymentList is a list of Deployments. -#DeploymentList: { - metav1.#TypeMeta - - // Standard list metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of Deployments. - items: [...#Deployment] @go(Items,[]Deployment) @protobuf(2,bytes,rep) -} - -// DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. -#DaemonSetUpdateStrategy: { - // Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - // +optional - type?: #DaemonSetUpdateStrategyType @go(Type) @protobuf(1,bytes,opt) - - // Rolling update config params. Present only if type = "RollingUpdate". - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. Same as Deployment `strategy.rollingUpdate`. - // See https://github.com/kubernetes/kubernetes/issues/35345 - // +optional - rollingUpdate?: null | #RollingUpdateDaemonSet @go(RollingUpdate,*RollingUpdateDaemonSet) @protobuf(2,bytes,opt) -} - -#DaemonSetUpdateStrategyType: string // #enumDaemonSetUpdateStrategyType - -#enumDaemonSetUpdateStrategyType: - #RollingUpdateDaemonSetStrategyType | - #OnDeleteDaemonSetStrategyType - -// Replace the old daemons by new ones using rolling update i.e replace them on each node one after the other. -#RollingUpdateDaemonSetStrategyType: #DaemonSetUpdateStrategyType & "RollingUpdate" - -// Replace the old daemons only when it's killed -#OnDeleteDaemonSetStrategyType: #DaemonSetUpdateStrategyType & "OnDelete" - -// Spec to control the desired behavior of daemon set rolling update. -#RollingUpdateDaemonSet: { - // The maximum number of DaemonSet pods that can be unavailable during the - // update. Value can be an absolute number (ex: 5) or a percentage of total - // number of DaemonSet pods at the start of the update (ex: 10%). Absolute - // number is calculated from percentage by rounding up. - // This cannot be 0 if MaxSurge is 0 - // Default value is 1. - // Example: when this is set to 30%, at most 30% of the total number of nodes - // that should be running the daemon pod (i.e. status.desiredNumberScheduled) - // can have their pods stopped for an update at any given time. The update - // starts by stopping at most 30% of those DaemonSet pods and then brings - // up new DaemonSet pods in their place. Once the new pods are available, - // it then proceeds onto other DaemonSet pods, thus ensuring that at least - // 70% of original number of DaemonSet pods are available at all times during - // the update. - // +optional - maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(1,bytes,opt) - - // The maximum number of nodes with an existing available DaemonSet pod that - // can have an updated DaemonSet pod during during an update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up to a minimum of 1. - // Default value is 0. - // Example: when this is set to 30%, at most 30% of the total number of nodes - // that should be running the daemon pod (i.e. status.desiredNumberScheduled) - // can have their a new pod created before the old pod is marked as deleted. - // The update starts by launching new pods on 30% of nodes. Once an updated - // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod - // on that node is marked deleted. If the old pod becomes unavailable for any - // reason (Ready transitions to false, is evicted, or is drained) an updated - // pod is immediatedly created on that node without considering surge limits. - // Allowing surge implies the possibility that the resources consumed by the - // daemonset on any given node can double if the readiness check fails, and - // so resource intensive daemonsets should take into account that they may - // cause evictions during disruption. - // +optional - maxSurge?: null | intstr.#IntOrString @go(MaxSurge,*intstr.IntOrString) @protobuf(2,bytes,opt) -} - -// DaemonSetSpec is the specification of a daemon set. -#DaemonSetSpec: { - // A label query over pods that are managed by the daemon set. - // Must match in order to be controlled. - // It must match the pod template's labels. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(1,bytes,opt) - - // An object that describes the pod that will be created. - // The DaemonSet will create exactly one copy of this pod on every node - // that matches the template's node selector (or on every node if no node - // selector is specified). - // The only allowed template.spec.restartPolicy value is "Always". - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - template: v1.#PodTemplateSpec @go(Template) @protobuf(2,bytes,opt) - - // An update strategy to replace existing DaemonSet pods with new pods. - // +optional - updateStrategy?: #DaemonSetUpdateStrategy @go(UpdateStrategy) @protobuf(3,bytes,opt) - - // The minimum number of seconds for which a newly created DaemonSet pod should - // be ready without any of its container crashing, for it to be considered - // available. Defaults to 0 (pod will be considered available as soon as it - // is ready). - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(4,varint,opt) - - // The number of old history to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - revisionHistoryLimit?: null | int32 @go(RevisionHistoryLimit,*int32) @protobuf(6,varint,opt) -} - -// DaemonSetStatus represents the current status of a daemon set. -#DaemonSetStatus: { - // The number of nodes that are running at least 1 - // daemon pod and are supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - currentNumberScheduled: int32 @go(CurrentNumberScheduled) @protobuf(1,varint,opt) - - // The number of nodes that are running the daemon pod, but are - // not supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - numberMisscheduled: int32 @go(NumberMisscheduled) @protobuf(2,varint,opt) - - // The total number of nodes that should be running the daemon - // pod (including nodes correctly running the daemon pod). - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - desiredNumberScheduled: int32 @go(DesiredNumberScheduled) @protobuf(3,varint,opt) - - // Total number of nodes that should be running the daemon pod and have one - // or more of the daemon pod running with a Ready Condition by passing the readinessProbe. - numberReady: int32 @go(NumberReady) @protobuf(4,varint,opt) - - // The most recent generation observed by the daemon set controller. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(5,varint,opt) - - // The total number of nodes that are running updated daemon pod - // +optional - updatedNumberScheduled?: int32 @go(UpdatedNumberScheduled) @protobuf(6,varint,opt) - - // The number of nodes that should be running the - // daemon pod and have one or more of the daemon pod running and - // available (ready for at least spec.minReadySeconds) - // +optional - numberAvailable?: int32 @go(NumberAvailable) @protobuf(7,varint,opt) - - // The number of nodes that should be running the - // daemon pod and have none of the daemon pod running and available - // (ready for at least spec.minReadySeconds) - // +optional - numberUnavailable?: int32 @go(NumberUnavailable) @protobuf(8,varint,opt) - - // Count of hash collisions for the DaemonSet. The DaemonSet controller - // uses this field as a collision avoidance mechanism when it needs to - // create the name for the newest ControllerRevision. - // +optional - collisionCount?: null | int32 @go(CollisionCount,*int32) @protobuf(9,varint,opt) - - // Represents the latest available observations of a DaemonSet's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#DaemonSetCondition] @go(Conditions,[]DaemonSetCondition) @protobuf(10,bytes,rep) -} - -#DaemonSetConditionType: string - -// DaemonSetCondition describes the state of a DaemonSet at a certain point. -#DaemonSetCondition: { - // Type of DaemonSet condition. - type: #DaemonSetConditionType @go(Type) @protobuf(1,bytes,opt,casttype=DaemonSetConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // Last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // The reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// DEPRECATED - This group version of DaemonSet is deprecated by apps/v1/DaemonSet. See the release notes for -// more information. -// DaemonSet represents the configuration of a daemon set. -#DaemonSet: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // The desired behavior of this daemon set. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #DaemonSetSpec @go(Spec) @protobuf(2,bytes,opt) - - // The current status of this daemon set. This data may be - // out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #DaemonSetStatus @go(Status) @protobuf(3,bytes,opt) -} - -// DefaultDaemonSetUniqueLabelKey is the default label key that is added -// to existing DaemonSet pods to distinguish between old and new -// DaemonSet pods during DaemonSet template updates. -#DefaultDaemonSetUniqueLabelKey: "controller-revision-hash" - -// DaemonSetList is a collection of daemon sets. -#DaemonSetList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // A list of daemon sets. - items: [...#DaemonSet] @go(Items,[]DaemonSet) @protobuf(2,bytes,rep) -} - -// DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1/ReplicaSet. See the release notes for -// more information. -// ReplicaSet ensures that a specified number of pod replicas are running at any given time. -#ReplicaSet: { - metav1.#TypeMeta - - // If the Labels of a ReplicaSet are empty, they are defaulted to - // be the same as the Pod(s) that the ReplicaSet manages. - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the specification of the desired behavior of the ReplicaSet. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #ReplicaSetSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is the most recently observed status of the ReplicaSet. - // This data may be out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #ReplicaSetStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ReplicaSetList is a collection of ReplicaSets. -#ReplicaSetList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of ReplicaSets. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - items: [...#ReplicaSet] @go(Items,[]ReplicaSet) @protobuf(2,bytes,rep) -} - -// ReplicaSetSpec is the specification of a ReplicaSet. -#ReplicaSetSpec: { - // Replicas is the number of desired replicas. - // This is a pointer to distinguish between explicit zero and unspecified. - // Defaults to 1. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - // +optional - replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt) - - // Minimum number of seconds for which a newly created pod should be ready - // without any of its container crashing, for it to be considered available. - // Defaults to 0 (pod will be considered available as soon as it is ready) - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(4,varint,opt) - - // Selector is a label query over pods that should match the replica count. - // Label keys and values that must match in order to be controlled by this replica set. - // It must match the pod template's labels. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // Template is the object that describes the pod that will be created if - // insufficient replicas are detected. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - // +optional - template?: v1.#PodTemplateSpec @go(Template) @protobuf(3,bytes,opt) -} - -// ReplicaSetStatus represents the current status of a ReplicaSet. -#ReplicaSetStatus: { - // Replicas is the most recently observed number of replicas. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - replicas: int32 @go(Replicas) @protobuf(1,varint,opt) - - // The number of pods that have labels matching the labels of the pod template of the replicaset. - // +optional - fullyLabeledReplicas?: int32 @go(FullyLabeledReplicas) @protobuf(2,varint,opt) - - // readyReplicas is the number of pods targeted by this ReplicaSet controller with a Ready Condition. - // +optional - readyReplicas?: int32 @go(ReadyReplicas) @protobuf(4,varint,opt) - - // The number of available replicas (ready for at least minReadySeconds) for this replica set. - // +optional - availableReplicas?: int32 @go(AvailableReplicas) @protobuf(5,varint,opt) - - // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(3,varint,opt) - - // Represents the latest available observations of a replica set's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#ReplicaSetCondition] @go(Conditions,[]ReplicaSetCondition) @protobuf(6,bytes,rep) -} - -#ReplicaSetConditionType: string // #enumReplicaSetConditionType - -#enumReplicaSetConditionType: - #ReplicaSetReplicaFailure - -// ReplicaSetReplicaFailure is added in a replica set when one of its pods fails to be created -// due to insufficient quota, limit ranges, pod security policy, node selectors, etc. or deleted -// due to kubelet being down or finalizers are failing. -#ReplicaSetReplicaFailure: #ReplicaSetConditionType & "ReplicaFailure" - -// ReplicaSetCondition describes the state of a replica set at a certain point. -#ReplicaSetCondition: { - // Type of replica set condition. - type: #ReplicaSetConditionType @go(Type) @protobuf(1,bytes,opt,casttype=ReplicaSetConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // The last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // The reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1/ControllerRevision. See the -// release notes for more information. -// ControllerRevision implements an immutable snapshot of state data. Clients -// are responsible for serializing and deserializing the objects that contain -// their internal state. -// Once a ControllerRevision has been successfully created, it can not be updated. -// The API Server will fail validation of all requests that attempt to mutate -// the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both -// the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, -// it may be subject to name and representation changes in future releases, and clients should not -// depend on its stability. It is primarily for internal use by controllers. -#ControllerRevision: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Data is the serialized representation of the state. - data?: runtime.#RawExtension @go(Data) @protobuf(2,bytes,opt) - - // Revision indicates the revision of the state represented by Data. - revision: int64 @go(Revision) @protobuf(3,varint,opt) -} - -// ControllerRevisionList is a resource containing a list of ControllerRevision objects. -#ControllerRevisionList: { - metav1.#TypeMeta - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of ControllerRevisions - items: [...#ControllerRevision] @go(Items,[]ControllerRevision) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/authentication/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/authentication/v1/register_go_gen.cue deleted file mode 100644 index 0825600..0000000 --- a/cue.mod/gen/k8s.io/api/authentication/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/authentication/v1 - -package v1 - -#GroupName: "authentication.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/authentication/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/authentication/v1/types_go_gen.cue deleted file mode 100644 index 5f0127a..0000000 --- a/cue.mod/gen/k8s.io/api/authentication/v1/types_go_gen.cue +++ /dev/null @@ -1,206 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/authentication/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/types" -) - -// ImpersonateUserHeader is used to impersonate a particular user during an API server request -#ImpersonateUserHeader: "Impersonate-User" - -// ImpersonateGroupHeader is used to impersonate a particular group during an API server request. -// It can be repeated multiplied times for multiple groups. -#ImpersonateGroupHeader: "Impersonate-Group" - -// ImpersonateUIDHeader is used to impersonate a particular UID during an API server request -#ImpersonateUIDHeader: "Impersonate-Uid" - -// ImpersonateUserExtraHeaderPrefix is a prefix for any header used to impersonate an entry in the -// extra map[string][]string for user.Info. The key will be every after the prefix. -// It can be repeated multiplied times for multiple map keys and the same key can be repeated multiple -// times to have multiple elements in the slice under a single key -#ImpersonateUserExtraHeaderPrefix: "Impersonate-Extra-" - -// TokenReview attempts to authenticate a token to a known user. -// Note: TokenReview requests may be cached by the webhook token authenticator -// plugin in the kube-apiserver. -#TokenReview: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec holds information about the request being evaluated - spec: #TokenReviewSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is filled in by the server and indicates whether the request can be authenticated. - // +optional - status?: #TokenReviewStatus @go(Status) @protobuf(3,bytes,opt) -} - -// TokenReviewSpec is a description of the token authentication request. -#TokenReviewSpec: { - // Token is the opaque bearer token. - // +optional - token?: string @go(Token) @protobuf(1,bytes,opt) - - // Audiences is a list of the identifiers that the resource server presented - // with the token identifies as. Audience-aware token authenticators will - // verify that the token was intended for at least one of the audiences in - // this list. If no audiences are provided, the audience will default to the - // audience of the Kubernetes apiserver. - // +optional - audiences?: [...string] @go(Audiences,[]string) @protobuf(2,bytes,rep) -} - -// TokenReviewStatus is the result of the token authentication request. -#TokenReviewStatus: { - // Authenticated indicates that the token was associated with a known user. - // +optional - authenticated?: bool @go(Authenticated) @protobuf(1,varint,opt) - - // User is the UserInfo associated with the provided token. - // +optional - user?: #UserInfo @go(User) @protobuf(2,bytes,opt) - - // Audiences are audience identifiers chosen by the authenticator that are - // compatible with both the TokenReview and token. An identifier is any - // identifier in the intersection of the TokenReviewSpec audiences and the - // token's audiences. A client of the TokenReview API that sets the - // spec.audiences field should validate that a compatible audience identifier - // is returned in the status.audiences field to ensure that the TokenReview - // server is audience aware. If a TokenReview returns an empty - // status.audience field where status.authenticated is "true", the token is - // valid against the audience of the Kubernetes API server. - // +optional - audiences?: [...string] @go(Audiences,[]string) @protobuf(4,bytes,rep) - - // Error indicates that the token couldn't be checked - // +optional - error?: string @go(Error) @protobuf(3,bytes,opt) -} - -// UserInfo holds the information about the user needed to implement the -// user.Info interface. -#UserInfo: { - // The name that uniquely identifies this user among all active users. - // +optional - username?: string @go(Username) @protobuf(1,bytes,opt) - - // A unique value that identifies this user across time. If this user is - // deleted and another user by the same name is added, they will have - // different UIDs. - // +optional - uid?: string @go(UID) @protobuf(2,bytes,opt) - - // The names of groups this user is a part of. - // +optional - groups?: [...string] @go(Groups,[]string) @protobuf(3,bytes,rep) - - // Any additional information provided by the authenticator. - // +optional - extra?: {[string]: #ExtraValue} @go(Extra,map[string]ExtraValue) @protobuf(4,bytes,rep) -} - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -#ExtraValue: [...string] - -// TokenRequest requests a token for a given service account. -#TokenRequest: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec holds information about the request being evaluated - spec: #TokenRequestSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is filled in by the server and indicates whether the token can be authenticated. - // +optional - status?: #TokenRequestStatus @go(Status) @protobuf(3,bytes,opt) -} - -// TokenRequestSpec contains client provided parameters of a token request. -#TokenRequestSpec: { - // Audiences are the intendend audiences of the token. A recipient of a - // token must identify themself with an identifier in the list of - // audiences of the token, and otherwise should reject the token. A - // token issued for multiple audiences may be used to authenticate - // against any of the audiences listed but implies a high degree of - // trust between the target audiences. - audiences: [...string] @go(Audiences,[]string) @protobuf(1,bytes,rep) - - // ExpirationSeconds is the requested duration of validity of the request. The - // token issuer may return a token with a different validity duration so a - // client needs to check the 'expiration' field in a response. - // +optional - expirationSeconds?: null | int64 @go(ExpirationSeconds,*int64) @protobuf(4,varint,opt) - - // BoundObjectRef is a reference to an object that the token will be bound to. - // The token will only be valid for as long as the bound object exists. - // NOTE: The API server's TokenReview endpoint will validate the - // BoundObjectRef, but other audiences may not. Keep ExpirationSeconds - // small if you want prompt revocation. - // +optional - boundObjectRef?: null | #BoundObjectReference @go(BoundObjectRef,*BoundObjectReference) @protobuf(3,bytes,opt) -} - -// TokenRequestStatus is the result of a token request. -#TokenRequestStatus: { - // Token is the opaque bearer token. - token: string @go(Token) @protobuf(1,bytes,opt) - - // ExpirationTimestamp is the time of expiration of the returned token. - expirationTimestamp: metav1.#Time @go(ExpirationTimestamp) @protobuf(2,bytes,opt) -} - -// BoundObjectReference is a reference to an object that a token is bound to. -#BoundObjectReference: { - // Kind of the referent. Valid kinds are 'Pod' and 'Secret'. - // +optional - kind?: string @go(Kind) @protobuf(1,bytes,opt) - - // API version of the referent. - // +optional - apiVersion?: string @go(APIVersion) @protobuf(2,bytes,opt) - - // Name of the referent. - // +optional - name?: string @go(Name) @protobuf(3,bytes,opt) - - // UID of the referent. - // +optional - uid?: types.#UID @go(UID) @protobuf(4,bytes,opt,name=uID,casttype=k8s.io/apimachinery/pkg/types.UID) -} - -// SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. -// When using impersonation, users will receive the user info of the user being impersonated. If impersonation or -// request header authentication is used, any extra keys will have their case ignored and returned as lowercase. -#SelfSubjectReview: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Status is filled in by the server with the user attributes. - status?: #SelfSubjectReviewStatus @go(Status) @protobuf(2,bytes,opt) -} - -// SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. -#SelfSubjectReviewStatus: { - // User attributes of the user making this request. - // +optional - userInfo?: #UserInfo @go(UserInfo) @protobuf(1,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/api/authentication/v1alpha1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/authentication/v1alpha1/register_go_gen.cue deleted file mode 100644 index 2fbc6c0..0000000 --- a/cue.mod/gen/k8s.io/api/authentication/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/authentication/v1alpha1 - -package v1alpha1 - -#GroupName: "authentication.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/authentication/v1alpha1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/authentication/v1alpha1/types_go_gen.cue deleted file mode 100644 index 9d7ef7a..0000000 --- a/cue.mod/gen/k8s.io/api/authentication/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/authentication/v1alpha1 - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/authentication/v1" -) - -// SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. -// When using impersonation, users will receive the user info of the user being impersonated. If impersonation or -// request header authentication is used, any extra keys will have their case ignored and returned as lowercase. -#SelfSubjectReview: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Status is filled in by the server with the user attributes. - status?: #SelfSubjectReviewStatus @go(Status) @protobuf(2,bytes,opt) -} - -// SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. -#SelfSubjectReviewStatus: { - // User attributes of the user making this request. - // +optional - userInfo?: v1.#UserInfo @go(UserInfo) @protobuf(1,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/api/authentication/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/authentication/v1beta1/register_go_gen.cue deleted file mode 100644 index 960ba88..0000000 --- a/cue.mod/gen/k8s.io/api/authentication/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/authentication/v1beta1 - -package v1beta1 - -#GroupName: "authentication.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/authentication/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/authentication/v1beta1/types_go_gen.cue deleted file mode 100644 index afa52b2..0000000 --- a/cue.mod/gen/k8s.io/api/authentication/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/authentication/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/authentication/v1" -) - -// TokenReview attempts to authenticate a token to a known user. -// Note: TokenReview requests may be cached by the webhook token authenticator -// plugin in the kube-apiserver. -#TokenReview: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec holds information about the request being evaluated - spec: #TokenReviewSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is filled in by the server and indicates whether the token can be authenticated. - // +optional - status?: #TokenReviewStatus @go(Status) @protobuf(3,bytes,opt) -} - -// TokenReviewSpec is a description of the token authentication request. -#TokenReviewSpec: { - // Token is the opaque bearer token. - // +optional - token?: string @go(Token) @protobuf(1,bytes,opt) - - // Audiences is a list of the identifiers that the resource server presented - // with the token identifies as. Audience-aware token authenticators will - // verify that the token was intended for at least one of the audiences in - // this list. If no audiences are provided, the audience will default to the - // audience of the Kubernetes apiserver. - // +optional - audiences?: [...string] @go(Audiences,[]string) @protobuf(2,bytes,rep) -} - -// TokenReviewStatus is the result of the token authentication request. -#TokenReviewStatus: { - // Authenticated indicates that the token was associated with a known user. - // +optional - authenticated?: bool @go(Authenticated) @protobuf(1,varint,opt) - - // User is the UserInfo associated with the provided token. - // +optional - user?: #UserInfo @go(User) @protobuf(2,bytes,opt) - - // Audiences are audience identifiers chosen by the authenticator that are - // compatible with both the TokenReview and token. An identifier is any - // identifier in the intersection of the TokenReviewSpec audiences and the - // token's audiences. A client of the TokenReview API that sets the - // spec.audiences field should validate that a compatible audience identifier - // is returned in the status.audiences field to ensure that the TokenReview - // server is audience aware. If a TokenReview returns an empty - // status.audience field where status.authenticated is "true", the token is - // valid against the audience of the Kubernetes API server. - // +optional - audiences?: [...string] @go(Audiences,[]string) @protobuf(4,bytes,rep) - - // Error indicates that the token couldn't be checked - // +optional - error?: string @go(Error) @protobuf(3,bytes,opt) -} - -// UserInfo holds the information about the user needed to implement the -// user.Info interface. -#UserInfo: { - // The name that uniquely identifies this user among all active users. - // +optional - username?: string @go(Username) @protobuf(1,bytes,opt) - - // A unique value that identifies this user across time. If this user is - // deleted and another user by the same name is added, they will have - // different UIDs. - // +optional - uid?: string @go(UID) @protobuf(2,bytes,opt) - - // The names of groups this user is a part of. - // +optional - groups?: [...string] @go(Groups,[]string) @protobuf(3,bytes,rep) - - // Any additional information provided by the authenticator. - // +optional - extra?: {[string]: #ExtraValue} @go(Extra,map[string]ExtraValue) @protobuf(4,bytes,rep) -} - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -#ExtraValue: [...string] - -// SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. -// When using impersonation, users will receive the user info of the user being impersonated. If impersonation or -// request header authentication is used, any extra keys will have their case ignored and returned as lowercase. -#SelfSubjectReview: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Status is filled in by the server with the user attributes. - status?: #SelfSubjectReviewStatus @go(Status) @protobuf(2,bytes,opt) -} - -// SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. -#SelfSubjectReviewStatus: { - // User attributes of the user making this request. - // +optional - userInfo?: v1.#UserInfo @go(UserInfo) @protobuf(1,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/api/authorization/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/authorization/v1/register_go_gen.cue deleted file mode 100644 index afd54ec..0000000 --- a/cue.mod/gen/k8s.io/api/authorization/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/authorization/v1 - -package v1 - -#GroupName: "authorization.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/authorization/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/authorization/v1/types_go_gen.cue deleted file mode 100644 index 6eaf818..0000000 --- a/cue.mod/gen/k8s.io/api/authorization/v1/types_go_gen.cue +++ /dev/null @@ -1,262 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/authorization/v1 - -package v1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// SubjectAccessReview checks whether or not a user or group can perform an action. -#SubjectAccessReview: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec holds information about the request being evaluated - spec: #SubjectAccessReviewSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - status?: #SubjectAccessReviewStatus @go(Status) @protobuf(3,bytes,opt) -} - -// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a -// spec.namespace means "in all namespaces". Self is a special case, because users should always be able -// to check whether they can perform an action -#SelfSubjectAccessReview: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec holds information about the request being evaluated. user and groups must be empty - spec: #SelfSubjectAccessReviewSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - status?: #SubjectAccessReviewStatus @go(Status) @protobuf(3,bytes,opt) -} - -// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. -// Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions -// checking. -#LocalSubjectAccessReview: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace - // you made the request against. If empty, it is defaulted. - spec: #SubjectAccessReviewSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - status?: #SubjectAccessReviewStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface -#ResourceAttributes: { - // Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces - // "" (empty) is defaulted for LocalSubjectAccessReviews - // "" (empty) is empty for cluster-scoped resources - // "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - // +optional - namespace?: string @go(Namespace) @protobuf(1,bytes,opt) - - // Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - // +optional - verb?: string @go(Verb) @protobuf(2,bytes,opt) - - // Group is the API Group of the Resource. "*" means all. - // +optional - group?: string @go(Group) @protobuf(3,bytes,opt) - - // Version is the API Version of the Resource. "*" means all. - // +optional - version?: string @go(Version) @protobuf(4,bytes,opt) - - // Resource is one of the existing resource types. "*" means all. - // +optional - resource?: string @go(Resource) @protobuf(5,bytes,opt) - - // Subresource is one of the existing resource types. "" means none. - // +optional - subresource?: string @go(Subresource) @protobuf(6,bytes,opt) - - // Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - // +optional - name?: string @go(Name) @protobuf(7,bytes,opt) -} - -// NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface -#NonResourceAttributes: { - // Path is the URL path of the request - // +optional - path?: string @go(Path) @protobuf(1,bytes,opt) - - // Verb is the standard HTTP verb - // +optional - verb?: string @go(Verb) @protobuf(2,bytes,opt) -} - -// SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes -// and NonResourceAuthorizationAttributes must be set -#SubjectAccessReviewSpec: { - // ResourceAuthorizationAttributes describes information for a resource access request - // +optional - resourceAttributes?: null | #ResourceAttributes @go(ResourceAttributes,*ResourceAttributes) @protobuf(1,bytes,opt) - - // NonResourceAttributes describes information for a non-resource access request - // +optional - nonResourceAttributes?: null | #NonResourceAttributes @go(NonResourceAttributes,*NonResourceAttributes) @protobuf(2,bytes,opt) - - // User is the user you're testing for. - // If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups - // +optional - user?: string @go(User) @protobuf(3,bytes,opt) - - // Groups is the groups you're testing for. - // +optional - groups?: [...string] @go(Groups,[]string) @protobuf(4,bytes,rep) - - // Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer - // it needs a reflection here. - // +optional - extra?: {[string]: #ExtraValue} @go(Extra,map[string]ExtraValue) @protobuf(5,bytes,rep) - - // UID information about the requesting user. - // +optional - uid?: string @go(UID) @protobuf(6,bytes,opt) -} - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -#ExtraValue: [...string] - -// SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes -// and NonResourceAuthorizationAttributes must be set -#SelfSubjectAccessReviewSpec: { - // ResourceAuthorizationAttributes describes information for a resource access request - // +optional - resourceAttributes?: null | #ResourceAttributes @go(ResourceAttributes,*ResourceAttributes) @protobuf(1,bytes,opt) - - // NonResourceAttributes describes information for a non-resource access request - // +optional - nonResourceAttributes?: null | #NonResourceAttributes @go(NonResourceAttributes,*NonResourceAttributes) @protobuf(2,bytes,opt) -} - -// SubjectAccessReviewStatus -#SubjectAccessReviewStatus: { - // Allowed is required. True if the action would be allowed, false otherwise. - allowed: bool @go(Allowed) @protobuf(1,varint,opt) - - // Denied is optional. True if the action would be denied, otherwise - // false. If both allowed is false and denied is false, then the - // authorizer has no opinion on whether to authorize the action. Denied - // may not be true if Allowed is true. - // +optional - denied?: bool @go(Denied) @protobuf(4,varint,opt) - - // Reason is optional. It indicates why a request was allowed or denied. - // +optional - reason?: string @go(Reason) @protobuf(2,bytes,opt) - - // EvaluationError is an indication that some error occurred during the authorization check. - // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. - // For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - // +optional - evaluationError?: string @go(EvaluationError) @protobuf(3,bytes,opt) -} - -// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. -// The returned list of actions may be incomplete depending on the server's authorization mode, -// and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, -// or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to -// drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. -// SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. -#SelfSubjectRulesReview: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec holds information about the request being evaluated. - spec: #SelfSubjectRulesReviewSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is filled in by the server and indicates the set of actions a user can perform. - // +optional - status?: #SubjectRulesReviewStatus @go(Status) @protobuf(3,bytes,opt) -} - -// SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. -#SelfSubjectRulesReviewSpec: { - // Namespace to evaluate rules for. Required. - namespace?: string @go(Namespace) @protobuf(1,bytes,opt) -} - -// SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on -// the set of authorizers the server is configured with and any errors experienced during evaluation. -// Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, -// even if that list is incomplete. -#SubjectRulesReviewStatus: { - // ResourceRules is the list of actions the subject is allowed to perform on resources. - // The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - resourceRules: [...#ResourceRule] @go(ResourceRules,[]ResourceRule) @protobuf(1,bytes,rep) - - // NonResourceRules is the list of actions the subject is allowed to perform on non-resources. - // The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - nonResourceRules: [...#NonResourceRule] @go(NonResourceRules,[]NonResourceRule) @protobuf(2,bytes,rep) - - // Incomplete is true when the rules returned by this call are incomplete. This is most commonly - // encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. - incomplete: bool @go(Incomplete) @protobuf(3,bytes,rep) - - // EvaluationError can appear in combination with Rules. It indicates an error occurred during - // rule evaluation, such as an authorizer that doesn't support rule evaluation, and that - // ResourceRules and/or NonResourceRules may be incomplete. - // +optional - evaluationError?: string @go(EvaluationError) @protobuf(4,bytes,opt) -} - -// ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, -// may contain duplicates, and possibly be incomplete. -#ResourceRule: { - // Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. "*" means all. - // +optional - apiGroups?: [...string] @go(APIGroups,[]string) @protobuf(2,bytes,rep) - - // Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. - // "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. - // +optional - resources?: [...string] @go(Resources,[]string) @protobuf(3,bytes,rep) - - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. - // +optional - resourceNames?: [...string] @go(ResourceNames,[]string) @protobuf(4,bytes,rep) -} - -// NonResourceRule holds information that describes a rule for the non-resource -#NonResourceRule: { - // Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, - // final step in the path. "*" means all. - // +optional - nonResourceURLs?: [...string] @go(NonResourceURLs,[]string) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/authorization/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/authorization/v1beta1/register_go_gen.cue deleted file mode 100644 index a71d04e..0000000 --- a/cue.mod/gen/k8s.io/api/authorization/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/authorization/v1beta1 - -package v1beta1 - -#GroupName: "authorization.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/authorization/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/authorization/v1beta1/types_go_gen.cue deleted file mode 100644 index d660b2b..0000000 --- a/cue.mod/gen/k8s.io/api/authorization/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,262 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/authorization/v1beta1 - -package v1beta1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// SubjectAccessReview checks whether or not a user or group can perform an action. -#SubjectAccessReview: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec holds information about the request being evaluated - spec: #SubjectAccessReviewSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - status?: #SubjectAccessReviewStatus @go(Status) @protobuf(3,bytes,opt) -} - -// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a -// spec.namespace means "in all namespaces". Self is a special case, because users should always be able -// to check whether they can perform an action -#SelfSubjectAccessReview: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec holds information about the request being evaluated. user and groups must be empty - spec: #SelfSubjectAccessReviewSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - status?: #SubjectAccessReviewStatus @go(Status) @protobuf(3,bytes,opt) -} - -// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. -// Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions -// checking. -#LocalSubjectAccessReview: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace - // you made the request against. If empty, it is defaulted. - spec: #SubjectAccessReviewSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - status?: #SubjectAccessReviewStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface -#ResourceAttributes: { - // Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces - // "" (empty) is defaulted for LocalSubjectAccessReviews - // "" (empty) is empty for cluster-scoped resources - // "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - // +optional - namespace?: string @go(Namespace) @protobuf(1,bytes,opt) - - // Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - // +optional - verb?: string @go(Verb) @protobuf(2,bytes,opt) - - // Group is the API Group of the Resource. "*" means all. - // +optional - group?: string @go(Group) @protobuf(3,bytes,opt) - - // Version is the API Version of the Resource. "*" means all. - // +optional - version?: string @go(Version) @protobuf(4,bytes,opt) - - // Resource is one of the existing resource types. "*" means all. - // +optional - resource?: string @go(Resource) @protobuf(5,bytes,opt) - - // Subresource is one of the existing resource types. "" means none. - // +optional - subresource?: string @go(Subresource) @protobuf(6,bytes,opt) - - // Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - // +optional - name?: string @go(Name) @protobuf(7,bytes,opt) -} - -// NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface -#NonResourceAttributes: { - // Path is the URL path of the request - // +optional - path?: string @go(Path) @protobuf(1,bytes,opt) - - // Verb is the standard HTTP verb - // +optional - verb?: string @go(Verb) @protobuf(2,bytes,opt) -} - -// SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes -// and NonResourceAuthorizationAttributes must be set -#SubjectAccessReviewSpec: { - // ResourceAuthorizationAttributes describes information for a resource access request - // +optional - resourceAttributes?: null | #ResourceAttributes @go(ResourceAttributes,*ResourceAttributes) @protobuf(1,bytes,opt) - - // NonResourceAttributes describes information for a non-resource access request - // +optional - nonResourceAttributes?: null | #NonResourceAttributes @go(NonResourceAttributes,*NonResourceAttributes) @protobuf(2,bytes,opt) - - // User is the user you're testing for. - // If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups - // +optional - user?: string @go(User) @protobuf(3,bytes,opt) - - // Groups is the groups you're testing for. - // +optional - group?: [...string] @go(Groups,[]string) @protobuf(4,bytes,rep) - - // Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer - // it needs a reflection here. - // +optional - extra?: {[string]: #ExtraValue} @go(Extra,map[string]ExtraValue) @protobuf(5,bytes,rep) - - // UID information about the requesting user. - // +optional - uid?: string @go(UID) @protobuf(6,bytes,opt) -} - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -#ExtraValue: [...string] - -// SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes -// and NonResourceAuthorizationAttributes must be set -#SelfSubjectAccessReviewSpec: { - // ResourceAuthorizationAttributes describes information for a resource access request - // +optional - resourceAttributes?: null | #ResourceAttributes @go(ResourceAttributes,*ResourceAttributes) @protobuf(1,bytes,opt) - - // NonResourceAttributes describes information for a non-resource access request - // +optional - nonResourceAttributes?: null | #NonResourceAttributes @go(NonResourceAttributes,*NonResourceAttributes) @protobuf(2,bytes,opt) -} - -// SubjectAccessReviewStatus -#SubjectAccessReviewStatus: { - // Allowed is required. True if the action would be allowed, false otherwise. - allowed: bool @go(Allowed) @protobuf(1,varint,opt) - - // Denied is optional. True if the action would be denied, otherwise - // false. If both allowed is false and denied is false, then the - // authorizer has no opinion on whether to authorize the action. Denied - // may not be true if Allowed is true. - // +optional - denied?: bool @go(Denied) @protobuf(4,varint,opt) - - // Reason is optional. It indicates why a request was allowed or denied. - // +optional - reason?: string @go(Reason) @protobuf(2,bytes,opt) - - // EvaluationError is an indication that some error occurred during the authorization check. - // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. - // For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - // +optional - evaluationError?: string @go(EvaluationError) @protobuf(3,bytes,opt) -} - -// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. -// The returned list of actions may be incomplete depending on the server's authorization mode, -// and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, -// or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to -// drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. -// SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. -#SelfSubjectRulesReview: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec holds information about the request being evaluated. - spec: #SelfSubjectRulesReviewSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is filled in by the server and indicates the set of actions a user can perform. - // +optional - status?: #SubjectRulesReviewStatus @go(Status) @protobuf(3,bytes,opt) -} - -// SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. -#SelfSubjectRulesReviewSpec: { - // Namespace to evaluate rules for. Required. - namespace?: string @go(Namespace) @protobuf(1,bytes,opt) -} - -// SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on -// the set of authorizers the server is configured with and any errors experienced during evaluation. -// Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, -// even if that list is incomplete. -#SubjectRulesReviewStatus: { - // ResourceRules is the list of actions the subject is allowed to perform on resources. - // The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - resourceRules: [...#ResourceRule] @go(ResourceRules,[]ResourceRule) @protobuf(1,bytes,rep) - - // NonResourceRules is the list of actions the subject is allowed to perform on non-resources. - // The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - nonResourceRules: [...#NonResourceRule] @go(NonResourceRules,[]NonResourceRule) @protobuf(2,bytes,rep) - - // Incomplete is true when the rules returned by this call are incomplete. This is most commonly - // encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. - incomplete: bool @go(Incomplete) @protobuf(3,bytes,rep) - - // EvaluationError can appear in combination with Rules. It indicates an error occurred during - // rule evaluation, such as an authorizer that doesn't support rule evaluation, and that - // ResourceRules and/or NonResourceRules may be incomplete. - // +optional - evaluationError?: string @go(EvaluationError) @protobuf(4,bytes,opt) -} - -// ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, -// may contain duplicates, and possibly be incomplete. -#ResourceRule: { - // Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. "*" means all. - // +optional - apiGroups?: [...string] @go(APIGroups,[]string) @protobuf(2,bytes,rep) - - // Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. - // "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. - // +optional - resources?: [...string] @go(Resources,[]string) @protobuf(3,bytes,rep) - - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. - // +optional - resourceNames?: [...string] @go(ResourceNames,[]string) @protobuf(4,bytes,rep) -} - -// NonResourceRule holds information that describes a rule for the non-resource -#NonResourceRule: { - // Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, - // final step in the path. "*" means all. - // +optional - nonResourceURLs?: [...string] @go(NonResourceURLs,[]string) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/autoscaling/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/autoscaling/v1/register_go_gen.cue deleted file mode 100644 index 0a7f342..0000000 --- a/cue.mod/gen/k8s.io/api/autoscaling/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/autoscaling/v1 - -package v1 - -#GroupName: "autoscaling" diff --git a/cue.mod/gen/k8s.io/api/autoscaling/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/autoscaling/v1/types_go_gen.cue deleted file mode 100644 index 6e873a3..0000000 --- a/cue.mod/gen/k8s.io/api/autoscaling/v1/types_go_gen.cue +++ /dev/null @@ -1,542 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/autoscaling/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/api/resource" - "k8s.io/api/core/v1" -) - -// CrossVersionObjectReference contains enough information to let you identify the referred resource. -// +structType=atomic -#CrossVersionObjectReference: { - // kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - kind: string @go(Kind) @protobuf(1,bytes,opt) - - // name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - name: string @go(Name) @protobuf(2,bytes,opt) - - // apiVersion is the API version of the referent - // +optional - apiVersion?: string @go(APIVersion) @protobuf(3,bytes,opt) -} - -// specification of a horizontal pod autoscaler. -#HorizontalPodAutoscalerSpec: { - // reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption - // and will set the desired number of pods by using its Scale subresource. - scaleTargetRef: #CrossVersionObjectReference @go(ScaleTargetRef) @protobuf(1,bytes,opt) - - // minReplicas is the lower limit for the number of replicas to which the autoscaler - // can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the - // alpha feature gate HPAScaleToZero is enabled and at least one Object or External - // metric is configured. Scaling is active as long as at least one metric value is - // available. - // +optional - minReplicas?: null | int32 @go(MinReplicas,*int32) @protobuf(2,varint,opt) - - // maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. - maxReplicas: int32 @go(MaxReplicas) @protobuf(3,varint,opt) - - // targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; - // if not specified the default autoscaling policy will be used. - // +optional - targetCPUUtilizationPercentage?: null | int32 @go(TargetCPUUtilizationPercentage,*int32) @protobuf(4,varint,opt) -} - -// current status of a horizontal pod autoscaler -#HorizontalPodAutoscalerStatus: { - // observedGeneration is the most recent generation observed by this autoscaler. - // +optional - observedGeneration?: null | int64 @go(ObservedGeneration,*int64) @protobuf(1,varint,opt) - - // lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; - // used by the autoscaler to control how often the number of pods is changed. - // +optional - lastScaleTime?: null | metav1.#Time @go(LastScaleTime,*metav1.Time) @protobuf(2,bytes,opt) - - // currentReplicas is the current number of replicas of pods managed by this autoscaler. - currentReplicas: int32 @go(CurrentReplicas) @protobuf(3,varint,opt) - - // desiredReplicas is the desired number of replicas of pods managed by this autoscaler. - desiredReplicas: int32 @go(DesiredReplicas) @protobuf(4,varint,opt) - - // currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, - // e.g. 70 means that an average pod is using now 70% of its requested CPU. - // +optional - currentCPUUtilizationPercentage?: null | int32 @go(CurrentCPUUtilizationPercentage,*int32) @protobuf(5,varint,opt) -} - -// configuration of a horizontal pod autoscaler. -#HorizontalPodAutoscaler: { - metav1.#TypeMeta - - // Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - spec?: #HorizontalPodAutoscalerSpec @go(Spec) @protobuf(2,bytes,opt) - - // status is the current information about the autoscaler. - // +optional - status?: #HorizontalPodAutoscalerStatus @go(Status) @protobuf(3,bytes,opt) -} - -// list of horizontal pod autoscaler objects. -#HorizontalPodAutoscalerList: { - metav1.#TypeMeta - - // Standard list metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of horizontal pod autoscaler objects. - items: [...#HorizontalPodAutoscaler] @go(Items,[]HorizontalPodAutoscaler) @protobuf(2,bytes,rep) -} - -// Scale represents a scaling request for a resource. -#Scale: { - metav1.#TypeMeta - - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - spec?: #ScaleSpec @go(Spec) @protobuf(2,bytes,opt) - - // status is the current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. - // +optional - status?: #ScaleStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ScaleSpec describes the attributes of a scale subresource. -#ScaleSpec: { - // replicas is the desired number of instances for the scaled object. - // +optional - replicas?: int32 @go(Replicas) @protobuf(1,varint,opt) -} - -// ScaleStatus represents the current status of a scale subresource. -#ScaleStatus: { - // replicas is the actual number of observed instances of the scaled object. - replicas: int32 @go(Replicas) @protobuf(1,varint,opt) - - // selector is the label query over pods that should match the replicas count. This is same - // as the label selector but in the string format to avoid introspection - // by clients. The string will be in the same format as the query-param syntax. - // More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - // +optional - selector?: string @go(Selector) @protobuf(2,bytes,opt) -} - -// MetricSourceType indicates the type of metric. -// +enum -#MetricSourceType: string // #enumMetricSourceType - -#enumMetricSourceType: - #ObjectMetricSourceType | - #PodsMetricSourceType | - #ResourceMetricSourceType | - #ContainerResourceMetricSourceType | - #ExternalMetricSourceType - -// ObjectMetricSourceType is a metric describing a kubernetes object -// (for example, hits-per-second on an Ingress object). -#ObjectMetricSourceType: #MetricSourceType & "Object" - -// PodsMetricSourceType is a metric describing each pod in the current scale -// target (for example, transactions-processed-per-second). The values -// will be averaged together before being compared to the target value. -#PodsMetricSourceType: #MetricSourceType & "Pods" - -// ResourceMetricSourceType is a resource metric known to Kubernetes, as -// specified in requests and limits, describing each pod in the current -// scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available -// to normal per-pod metrics (the "pods" source). -#ResourceMetricSourceType: #MetricSourceType & "Resource" - -// ContainerResourceMetricSourceType is a resource metric known to Kubernetes, as -// specified in requests and limits, describing a single container in each pod in the current -// scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available -// to normal per-pod metrics (the "pods" source). -#ContainerResourceMetricSourceType: #MetricSourceType & "ContainerResource" - -// ExternalMetricSourceType is a global metric that is not associated -// with any Kubernetes object. It allows autoscaling based on information -// coming from components running outside of cluster -// (for example length of queue in cloud messaging service, or -// QPS from loadbalancer running outside of cluster). -#ExternalMetricSourceType: #MetricSourceType & "External" - -// MetricSpec specifies how to scale based on a single metric -// (only `type` and one other matching field should be set at once). -#MetricSpec: { - // type is the type of metric source. It should be one of "ContainerResource", - // "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. - // Note: "ContainerResource" type is available on when the feature-gate - // HPAContainerMetrics is enabled - type: #MetricSourceType @go(Type) @protobuf(1,bytes) - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - object?: null | #ObjectMetricSource @go(Object,*ObjectMetricSource) @protobuf(2,bytes,opt) - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - pods?: null | #PodsMetricSource @go(Pods,*PodsMetricSource) @protobuf(3,bytes,opt) - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - resource?: null | #ResourceMetricSource @go(Resource,*ResourceMetricSource) @protobuf(4,bytes,opt) - - // containerResource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing a single container in each pod of the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. - // +optional - containerResource?: null | #ContainerResourceMetricSource @go(ContainerResource,*ContainerResourceMetricSource) @protobuf(7,bytes,opt) - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - external?: null | #ExternalMetricSource @go(External,*ExternalMetricSource) @protobuf(5,bytes,opt) -} - -// ObjectMetricSource indicates how to scale on a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -#ObjectMetricSource: { - // target is the described Kubernetes object. - target: #CrossVersionObjectReference @go(Target) @protobuf(1,bytes) - - // metricName is the name of the metric in question. - metricName: string @go(MetricName) @protobuf(2,bytes) - - // targetValue is the target value of the metric (as a quantity). - targetValue: resource.#Quantity @go(TargetValue) @protobuf(3,bytes) - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric. - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping - // When unset, just the metricName will be used to gather metrics. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(4,bytes) - - // averageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - averageValue?: null | resource.#Quantity @go(AverageValue,*resource.Quantity) @protobuf(5,bytes) -} - -// PodsMetricSource indicates how to scale on a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -// The values will be averaged together before being compared to the target -// value. -#PodsMetricSource: { - // metricName is the name of the metric in question - metricName: string @go(MetricName) @protobuf(1,bytes) - - // targetAverageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - targetAverageValue: resource.#Quantity @go(TargetAverageValue) @protobuf(2,bytes) - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping - // When unset, just the metricName will be used to gather metrics. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(3,bytes) -} - -// ResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -#ResourceMetricSource: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // targetAverageUtilization is the target value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // +optional - targetAverageUtilization?: null | int32 @go(TargetAverageUtilization,*int32) @protobuf(2,varint,opt) - - // targetAverageValue is the target value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // +optional - targetAverageValue?: null | resource.#Quantity @go(TargetAverageValue,*resource.Quantity) @protobuf(3,bytes,opt) -} - -// ContainerResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in the requests and limits, describing a single container in -// each of the pods of the current scale target(e.g. CPU or memory). The values will be -// averaged together before being compared to the target. Such metrics are built into -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -#ContainerResourceMetricSource: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // targetAverageUtilization is the target value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // +optional - targetAverageUtilization?: null | int32 @go(TargetAverageUtilization,*int32) @protobuf(2,varint,opt) - - // targetAverageValue is the target value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // +optional - targetAverageValue?: null | resource.#Quantity @go(TargetAverageValue,*resource.Quantity) @protobuf(3,bytes,opt) - - // container is the name of the container in the pods of the scaling target. - container: string @go(Container) @protobuf(5,bytes,opt) -} - -// ExternalMetricSource indicates how to scale on a metric not associated with -// any Kubernetes object (for example length of queue in cloud -// messaging service, or QPS from loadbalancer running outside of cluster). -#ExternalMetricSource: { - // metricName is the name of the metric in question. - metricName: string @go(MetricName) @protobuf(1,bytes) - - // metricSelector is used to identify a specific time series - // within a given metric. - // +optional - metricSelector?: null | metav1.#LabelSelector @go(MetricSelector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // targetValue is the target value of the metric (as a quantity). - // Mutually exclusive with TargetAverageValue. - // +optional - targetValue?: null | resource.#Quantity @go(TargetValue,*resource.Quantity) @protobuf(3,bytes,opt) - - // targetAverageValue is the target per-pod value of global metric (as a quantity). - // Mutually exclusive with TargetValue. - // +optional - targetAverageValue?: null | resource.#Quantity @go(TargetAverageValue,*resource.Quantity) @protobuf(4,bytes,opt) -} - -// MetricStatus describes the last-read state of a single metric. -#MetricStatus: { - // type is the type of metric source. It will be one of "ContainerResource", - // "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. - // Note: "ContainerResource" type is available on when the feature-gate - // HPAContainerMetrics is enabled - type: #MetricSourceType @go(Type) @protobuf(1,bytes) - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - object?: null | #ObjectMetricStatus @go(Object,*ObjectMetricStatus) @protobuf(2,bytes,opt) - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - pods?: null | #PodsMetricStatus @go(Pods,*PodsMetricStatus) @protobuf(3,bytes,opt) - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - resource?: null | #ResourceMetricStatus @go(Resource,*ResourceMetricStatus) @protobuf(4,bytes,opt) - - // containerResource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing a single container in each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - containerResource?: null | #ContainerResourceMetricStatus @go(ContainerResource,*ContainerResourceMetricStatus) @protobuf(7,bytes,opt) - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - external?: null | #ExternalMetricStatus @go(External,*ExternalMetricStatus) @protobuf(5,bytes,opt) -} - -// HorizontalPodAutoscalerConditionType are the valid conditions of -// a HorizontalPodAutoscaler. -#HorizontalPodAutoscalerConditionType: string // #enumHorizontalPodAutoscalerConditionType - -#enumHorizontalPodAutoscalerConditionType: - #ScalingActive | - #AbleToScale | - #ScalingLimited - -// ScalingActive indicates that the HPA controller is able to scale if necessary: -// it's correctly configured, can fetch the desired metrics, and isn't disabled. -#ScalingActive: #HorizontalPodAutoscalerConditionType & "ScalingActive" - -// AbleToScale indicates a lack of transient issues which prevent scaling from occurring, -// such as being in a backoff window, or being unable to access/update the target scale. -#AbleToScale: #HorizontalPodAutoscalerConditionType & "AbleToScale" - -// ScalingLimited indicates that the calculated scale based on metrics would be above or -// below the range for the HPA, and has thus been capped. -#ScalingLimited: #HorizontalPodAutoscalerConditionType & "ScalingLimited" - -// HorizontalPodAutoscalerCondition describes the state of -// a HorizontalPodAutoscaler at a certain point. -#HorizontalPodAutoscalerCondition: { - // type describes the current condition - type: #HorizontalPodAutoscalerConditionType @go(Type) @protobuf(1,bytes) - - // status is the status of the condition (True, False, Unknown) - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes) - - // lastTransitionTime is the last time the condition transitioned from - // one status to another - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // reason is the reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // message is a human-readable explanation containing details about - // the transition - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// ObjectMetricStatus indicates the current value of a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -#ObjectMetricStatus: { - // target is the described Kubernetes object. - target: #CrossVersionObjectReference @go(Target) @protobuf(1,bytes) - - // metricName is the name of the metric in question. - metricName: string @go(MetricName) @protobuf(2,bytes) - - // currentValue is the current value of the metric (as a quantity). - currentValue: resource.#Quantity @go(CurrentValue) @protobuf(3,bytes) - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(4,bytes) - - // averageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - averageValue?: null | resource.#Quantity @go(AverageValue,*resource.Quantity) @protobuf(5,bytes) -} - -// PodsMetricStatus indicates the current value of a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -#PodsMetricStatus: { - // metricName is the name of the metric in question - metricName: string @go(MetricName) @protobuf(1,bytes) - - // currentAverageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - currentAverageValue: resource.#Quantity @go(CurrentAverageValue) @protobuf(2,bytes) - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(3,bytes) -} - -// ResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -#ResourceMetricStatus: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // currentAverageUtilization is the current value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. It will only be - // present if `targetAverageValue` was set in the corresponding metric - // specification. - // +optional - currentAverageUtilization?: null | int32 @go(CurrentAverageUtilization,*int32) @protobuf(2,bytes,opt) - - // currentAverageValue is the current value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // It will always be set, regardless of the corresponding metric specification. - currentAverageValue: resource.#Quantity @go(CurrentAverageValue) @protobuf(3,bytes) -} - -// ContainerResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing a single container in each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -#ContainerResourceMetricStatus: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // currentAverageUtilization is the current value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. It will only be - // present if `targetAverageValue` was set in the corresponding metric - // specification. - // +optional - currentAverageUtilization?: null | int32 @go(CurrentAverageUtilization,*int32) @protobuf(2,bytes,opt) - - // currentAverageValue is the current value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // It will always be set, regardless of the corresponding metric specification. - currentAverageValue: resource.#Quantity @go(CurrentAverageValue) @protobuf(3,bytes) - - // container is the name of the container in the pods of the scaling taget - container: string @go(Container) @protobuf(4,bytes,opt) -} - -// ExternalMetricStatus indicates the current value of a global metric -// not associated with any Kubernetes object. -#ExternalMetricStatus: { - // metricName is the name of a metric used for autoscaling in - // metric system. - metricName: string @go(MetricName) @protobuf(1,bytes) - - // metricSelector is used to identify a specific time series - // within a given metric. - // +optional - metricSelector?: null | metav1.#LabelSelector @go(MetricSelector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // currentValue is the current value of the metric (as a quantity) - currentValue: resource.#Quantity @go(CurrentValue) @protobuf(3,bytes) - - // currentAverageValue is the current value of metric averaged over autoscaled pods. - // +optional - currentAverageValue?: null | resource.#Quantity @go(CurrentAverageValue,*resource.Quantity) @protobuf(4,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/api/autoscaling/v2/register_go_gen.cue b/cue.mod/gen/k8s.io/api/autoscaling/v2/register_go_gen.cue deleted file mode 100644 index aea0fb2..0000000 --- a/cue.mod/gen/k8s.io/api/autoscaling/v2/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/autoscaling/v2 - -package v2 - -#GroupName: "autoscaling" diff --git a/cue.mod/gen/k8s.io/api/autoscaling/v2/types_go_gen.cue b/cue.mod/gen/k8s.io/api/autoscaling/v2/types_go_gen.cue deleted file mode 100644 index 7670208..0000000 --- a/cue.mod/gen/k8s.io/api/autoscaling/v2/types_go_gen.cue +++ /dev/null @@ -1,597 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/autoscaling/v2 - -package v2 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/api/resource" -) - -// HorizontalPodAutoscaler is the configuration for a horizontal pod -// autoscaler, which automatically manages the replica count of any resource -// implementing the scale subresource based on the metrics specified. -#HorizontalPodAutoscaler: { - metav1.#TypeMeta - - // metadata is the standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec is the specification for the behaviour of the autoscaler. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - spec?: #HorizontalPodAutoscalerSpec @go(Spec) @protobuf(2,bytes,opt) - - // status is the current information about the autoscaler. - // +optional - status?: #HorizontalPodAutoscalerStatus @go(Status) @protobuf(3,bytes,opt) -} - -// HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. -#HorizontalPodAutoscalerSpec: { - // scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics - // should be collected, as well as to actually change the replica count. - scaleTargetRef: #CrossVersionObjectReference @go(ScaleTargetRef) @protobuf(1,bytes,opt) - - // minReplicas is the lower limit for the number of replicas to which the autoscaler - // can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the - // alpha feature gate HPAScaleToZero is enabled and at least one Object or External - // metric is configured. Scaling is active as long as at least one metric value is - // available. - // +optional - minReplicas?: null | int32 @go(MinReplicas,*int32) @protobuf(2,varint,opt) - - // maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. - // It cannot be less that minReplicas. - maxReplicas: int32 @go(MaxReplicas) @protobuf(3,varint,opt) - - // metrics contains the specifications for which to use to calculate the - // desired replica count (the maximum replica count across all metrics will - // be used). The desired replica count is calculated multiplying the - // ratio between the target value and the current value by the current - // number of pods. Ergo, metrics used must decrease as the pod count is - // increased, and vice-versa. See the individual metric source types for - // more information about how each type of metric must respond. - // If not set, the default metric will be set to 80% average CPU utilization. - // +listType=atomic - // +optional - metrics?: [...#MetricSpec] @go(Metrics,[]MetricSpec) @protobuf(4,bytes,rep) - - // behavior configures the scaling behavior of the target - // in both Up and Down directions (scaleUp and scaleDown fields respectively). - // If not set, the default HPAScalingRules for scale up and scale down are used. - // +optional - behavior?: null | #HorizontalPodAutoscalerBehavior @go(Behavior,*HorizontalPodAutoscalerBehavior) @protobuf(5,bytes,opt) -} - -// CrossVersionObjectReference contains enough information to let you identify the referred resource. -#CrossVersionObjectReference: { - // kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - kind: string @go(Kind) @protobuf(1,bytes,opt) - - // name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - name: string @go(Name) @protobuf(2,bytes,opt) - - // apiVersion is the API version of the referent - // +optional - apiVersion?: string @go(APIVersion) @protobuf(3,bytes,opt) -} - -// MetricSpec specifies how to scale based on a single metric -// (only `type` and one other matching field should be set at once). -#MetricSpec: { - // type is the type of metric source. It should be one of "ContainerResource", "External", - // "Object", "Pods" or "Resource", each mapping to a matching field in the object. - // Note: "ContainerResource" type is available on when the feature-gate - // HPAContainerMetrics is enabled - type: #MetricSourceType @go(Type) @protobuf(1,bytes) - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - object?: null | #ObjectMetricSource @go(Object,*ObjectMetricSource) @protobuf(2,bytes,opt) - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - pods?: null | #PodsMetricSource @go(Pods,*PodsMetricSource) @protobuf(3,bytes,opt) - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - resource?: null | #ResourceMetricSource @go(Resource,*ResourceMetricSource) @protobuf(4,bytes,opt) - - // containerResource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing a single container in - // each pod of the current scale target (e.g. CPU or memory). Such metrics are - // built in to Kubernetes, and have special scaling options on top of those - // available to normal per-pod metrics using the "pods" source. - // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. - // +optional - containerResource?: null | #ContainerResourceMetricSource @go(ContainerResource,*ContainerResourceMetricSource) @protobuf(7,bytes,opt) - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - external?: null | #ExternalMetricSource @go(External,*ExternalMetricSource) @protobuf(5,bytes,opt) -} - -// HorizontalPodAutoscalerBehavior configures the scaling behavior of the target -// in both Up and Down directions (scaleUp and scaleDown fields respectively). -#HorizontalPodAutoscalerBehavior: { - // scaleUp is scaling policy for scaling Up. - // If not set, the default value is the higher of: - // * increase no more than 4 pods per 60 seconds - // * double the number of pods per 60 seconds - // No stabilization is used. - // +optional - scaleUp?: null | #HPAScalingRules @go(ScaleUp,*HPAScalingRules) @protobuf(1,bytes,opt) - - // scaleDown is scaling policy for scaling Down. - // If not set, the default value is to allow to scale down to minReplicas pods, with a - // 300 second stabilization window (i.e., the highest recommendation for - // the last 300sec is used). - // +optional - scaleDown?: null | #HPAScalingRules @go(ScaleDown,*HPAScalingRules) @protobuf(2,bytes,opt) -} - -// ScalingPolicySelect is used to specify which policy should be used while scaling in a certain direction -#ScalingPolicySelect: string // #enumScalingPolicySelect - -#enumScalingPolicySelect: - #MaxChangePolicySelect | - #MinChangePolicySelect | - #DisabledPolicySelect - -// MaxChangePolicySelect selects the policy with the highest possible change. -#MaxChangePolicySelect: #ScalingPolicySelect & "Max" - -// MinChangePolicySelect selects the policy with the lowest possible change. -#MinChangePolicySelect: #ScalingPolicySelect & "Min" - -// DisabledPolicySelect disables the scaling in this direction. -#DisabledPolicySelect: #ScalingPolicySelect & "Disabled" - -// HPAScalingRules configures the scaling behavior for one direction. -// These Rules are applied after calculating DesiredReplicas from metrics for the HPA. -// They can limit the scaling velocity by specifying scaling policies. -// They can prevent flapping by specifying the stabilization window, so that the -// number of replicas is not set instantly, instead, the safest value from the stabilization -// window is chosen. -#HPAScalingRules: { - // stabilizationWindowSeconds is the number of seconds for which past recommendations should be - // considered while scaling up or scaling down. - // StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). - // If not set, use the default values: - // - For scale up: 0 (i.e. no stabilization is done). - // - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - // +optional - stabilizationWindowSeconds?: null | int32 @go(StabilizationWindowSeconds,*int32) @protobuf(3,varint,opt) - - // selectPolicy is used to specify which policy should be used. - // If not set, the default value Max is used. - // +optional - selectPolicy?: null | #ScalingPolicySelect @go(SelectPolicy,*ScalingPolicySelect) @protobuf(1,bytes,opt) - - // policies is a list of potential scaling polices which can be used during scaling. - // At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid - // +listType=atomic - // +optional - policies?: [...#HPAScalingPolicy] @go(Policies,[]HPAScalingPolicy) @protobuf(2,bytes,rep) -} - -// HPAScalingPolicyType is the type of the policy which could be used while making scaling decisions. -#HPAScalingPolicyType: string // #enumHPAScalingPolicyType - -#enumHPAScalingPolicyType: - #PodsScalingPolicy | - #PercentScalingPolicy - -// PodsScalingPolicy is a policy used to specify a change in absolute number of pods. -#PodsScalingPolicy: #HPAScalingPolicyType & "Pods" - -// PercentScalingPolicy is a policy used to specify a relative amount of change with respect to -// the current number of pods. -#PercentScalingPolicy: #HPAScalingPolicyType & "Percent" - -// HPAScalingPolicy is a single policy which must hold true for a specified past interval. -#HPAScalingPolicy: { - // type is used to specify the scaling policy. - type: #HPAScalingPolicyType @go(Type) @protobuf(1,bytes,opt,casttype=HPAScalingPolicyType) - - // value contains the amount of change which is permitted by the policy. - // It must be greater than zero - value: int32 @go(Value) @protobuf(2,varint,opt) - - // periodSeconds specifies the window of time for which the policy should hold true. - // PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - periodSeconds: int32 @go(PeriodSeconds) @protobuf(3,varint,opt) -} - -// MetricSourceType indicates the type of metric. -#MetricSourceType: string // #enumMetricSourceType - -#enumMetricSourceType: - #ObjectMetricSourceType | - #PodsMetricSourceType | - #ResourceMetricSourceType | - #ContainerResourceMetricSourceType | - #ExternalMetricSourceType - -// ObjectMetricSourceType is a metric describing a kubernetes object -// (for example, hits-per-second on an Ingress object). -#ObjectMetricSourceType: #MetricSourceType & "Object" - -// PodsMetricSourceType is a metric describing each pod in the current scale -// target (for example, transactions-processed-per-second). The values -// will be averaged together before being compared to the target value. -#PodsMetricSourceType: #MetricSourceType & "Pods" - -// ResourceMetricSourceType is a resource metric known to Kubernetes, as -// specified in requests and limits, describing each pod in the current -// scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available -// to normal per-pod metrics (the "pods" source). -#ResourceMetricSourceType: #MetricSourceType & "Resource" - -// ContainerResourceMetricSourceType is a resource metric known to Kubernetes, as -// specified in requests and limits, describing a single container in each pod in the current -// scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available -// to normal per-pod metrics (the "pods" source). -#ContainerResourceMetricSourceType: #MetricSourceType & "ContainerResource" - -// ExternalMetricSourceType is a global metric that is not associated -// with any Kubernetes object. It allows autoscaling based on information -// coming from components running outside of cluster -// (for example length of queue in cloud messaging service, or -// QPS from loadbalancer running outside of cluster). -#ExternalMetricSourceType: #MetricSourceType & "External" - -// ObjectMetricSource indicates how to scale on a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -#ObjectMetricSource: { - // describedObject specifies the descriptions of a object,such as kind,name apiVersion - describedObject: #CrossVersionObjectReference @go(DescribedObject) @protobuf(1,bytes) - - // target specifies the target value for the given metric - target: #MetricTarget @go(Target) @protobuf(2,bytes) - - // metric identifies the target metric by name and selector - metric: #MetricIdentifier @go(Metric) @protobuf(3,bytes) -} - -// PodsMetricSource indicates how to scale on a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -// The values will be averaged together before being compared to the target -// value. -#PodsMetricSource: { - // metric identifies the target metric by name and selector - metric: #MetricIdentifier @go(Metric) @protobuf(1,bytes) - - // target specifies the target value for the given metric - target: #MetricTarget @go(Target) @protobuf(2,bytes) -} - -// ResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -#ResourceMetricSource: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // target specifies the target value for the given metric - target: #MetricTarget @go(Target) @protobuf(2,bytes) -} - -// ContainerResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -#ContainerResourceMetricSource: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // target specifies the target value for the given metric - target: #MetricTarget @go(Target) @protobuf(2,bytes) - - // container is the name of the container in the pods of the scaling target - container: string @go(Container) @protobuf(3,bytes,opt) -} - -// ExternalMetricSource indicates how to scale on a metric not associated with -// any Kubernetes object (for example length of queue in cloud -// messaging service, or QPS from loadbalancer running outside of cluster). -#ExternalMetricSource: { - // metric identifies the target metric by name and selector - metric: #MetricIdentifier @go(Metric) @protobuf(1,bytes) - - // target specifies the target value for the given metric - target: #MetricTarget @go(Target) @protobuf(2,bytes) -} - -// MetricIdentifier defines the name and optionally selector for a metric -#MetricIdentifier: { - // name is the name of the given metric - name: string @go(Name) @protobuf(1,bytes) - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes) -} - -// MetricTarget defines the target value, average value, or average utilization of a specific metric -#MetricTarget: { - // type represents whether the metric type is Utilization, Value, or AverageValue - type: #MetricTargetType @go(Type) @protobuf(1,bytes) - - // value is the target value of the metric (as a quantity). - // +optional - value?: null | resource.#Quantity @go(Value,*resource.Quantity) @protobuf(2,bytes,opt) - - // averageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - averageValue?: null | resource.#Quantity @go(AverageValue,*resource.Quantity) @protobuf(3,bytes,opt) - - // averageUtilization is the target value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // Currently only valid for Resource metric source type - // +optional - averageUtilization?: null | int32 @go(AverageUtilization,*int32) @protobuf(4,bytes,opt) -} - -// MetricTargetType specifies the type of metric being targeted, and should be either -// "Value", "AverageValue", or "Utilization" -#MetricTargetType: string // #enumMetricTargetType - -#enumMetricTargetType: - #UtilizationMetricType | - #ValueMetricType | - #AverageValueMetricType - -// UtilizationMetricType declares a MetricTarget is an AverageUtilization value -#UtilizationMetricType: #MetricTargetType & "Utilization" - -// ValueMetricType declares a MetricTarget is a raw value -#ValueMetricType: #MetricTargetType & "Value" - -// AverageValueMetricType declares a MetricTarget is an -#AverageValueMetricType: #MetricTargetType & "AverageValue" - -// HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. -#HorizontalPodAutoscalerStatus: { - // observedGeneration is the most recent generation observed by this autoscaler. - // +optional - observedGeneration?: null | int64 @go(ObservedGeneration,*int64) @protobuf(1,varint,opt) - - // lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, - // used by the autoscaler to control how often the number of pods is changed. - // +optional - lastScaleTime?: null | metav1.#Time @go(LastScaleTime,*metav1.Time) @protobuf(2,bytes,opt) - - // currentReplicas is current number of replicas of pods managed by this autoscaler, - // as last seen by the autoscaler. - // +optional - currentReplicas?: int32 @go(CurrentReplicas) @protobuf(3,varint,opt) - - // desiredReplicas is the desired number of replicas of pods managed by this autoscaler, - // as last calculated by the autoscaler. - desiredReplicas: int32 @go(DesiredReplicas) @protobuf(4,varint,opt) - - // currentMetrics is the last read state of the metrics used by this autoscaler. - // +listType=atomic - // +optional - currentMetrics: [...#MetricStatus] @go(CurrentMetrics,[]MetricStatus) @protobuf(5,bytes,rep) - - // conditions is the set of conditions required for this autoscaler to scale its target, - // and indicates whether or not those conditions are met. - // +patchMergeKey=type - // +patchStrategy=merge - // +listType=map - // +listMapKey=type - // +optional - conditions?: [...#HorizontalPodAutoscalerCondition] @go(Conditions,[]HorizontalPodAutoscalerCondition) @protobuf(6,bytes,rep) -} - -// HorizontalPodAutoscalerConditionType are the valid conditions of -// a HorizontalPodAutoscaler. -#HorizontalPodAutoscalerConditionType: string // #enumHorizontalPodAutoscalerConditionType - -#enumHorizontalPodAutoscalerConditionType: - #ScalingActive | - #AbleToScale | - #ScalingLimited - -// ScalingActive indicates that the HPA controller is able to scale if necessary: -// it's correctly configured, can fetch the desired metrics, and isn't disabled. -#ScalingActive: #HorizontalPodAutoscalerConditionType & "ScalingActive" - -// AbleToScale indicates a lack of transient issues which prevent scaling from occurring, -// such as being in a backoff window, or being unable to access/update the target scale. -#AbleToScale: #HorizontalPodAutoscalerConditionType & "AbleToScale" - -// ScalingLimited indicates that the calculated scale based on metrics would be above or -// below the range for the HPA, and has thus been capped. -#ScalingLimited: #HorizontalPodAutoscalerConditionType & "ScalingLimited" - -// HorizontalPodAutoscalerCondition describes the state of -// a HorizontalPodAutoscaler at a certain point. -#HorizontalPodAutoscalerCondition: { - // type describes the current condition - type: #HorizontalPodAutoscalerConditionType @go(Type) @protobuf(1,bytes) - - // status is the status of the condition (True, False, Unknown) - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes) - - // lastTransitionTime is the last time the condition transitioned from - // one status to another - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // reason is the reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // message is a human-readable explanation containing details about - // the transition - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// MetricStatus describes the last-read state of a single metric. -#MetricStatus: { - // type is the type of metric source. It will be one of "ContainerResource", "External", - // "Object", "Pods" or "Resource", each corresponds to a matching field in the object. - // Note: "ContainerResource" type is available on when the feature-gate - // HPAContainerMetrics is enabled - type: #MetricSourceType @go(Type) @protobuf(1,bytes) - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - object?: null | #ObjectMetricStatus @go(Object,*ObjectMetricStatus) @protobuf(2,bytes,opt) - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - pods?: null | #PodsMetricStatus @go(Pods,*PodsMetricStatus) @protobuf(3,bytes,opt) - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - resource?: null | #ResourceMetricStatus @go(Resource,*ResourceMetricStatus) @protobuf(4,bytes,opt) - - // container resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing a single container in each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - containerResource?: null | #ContainerResourceMetricStatus @go(ContainerResource,*ContainerResourceMetricStatus) @protobuf(7,bytes,opt) - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - external?: null | #ExternalMetricStatus @go(External,*ExternalMetricStatus) @protobuf(5,bytes,opt) -} - -// ObjectMetricStatus indicates the current value of a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -#ObjectMetricStatus: { - // metric identifies the target metric by name and selector - metric: #MetricIdentifier @go(Metric) @protobuf(1,bytes) - - // current contains the current value for the given metric - current: #MetricValueStatus @go(Current) @protobuf(2,bytes) - - // DescribedObject specifies the descriptions of a object,such as kind,name apiVersion - describedObject: #CrossVersionObjectReference @go(DescribedObject) @protobuf(3,bytes) -} - -// PodsMetricStatus indicates the current value of a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -#PodsMetricStatus: { - // metric identifies the target metric by name and selector - metric: #MetricIdentifier @go(Metric) @protobuf(1,bytes) - - // current contains the current value for the given metric - current: #MetricValueStatus @go(Current) @protobuf(2,bytes) -} - -// ResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -#ResourceMetricStatus: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // current contains the current value for the given metric - current: #MetricValueStatus @go(Current) @protobuf(2,bytes) -} - -// ContainerResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing a single container in each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -#ContainerResourceMetricStatus: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // current contains the current value for the given metric - current: #MetricValueStatus @go(Current) @protobuf(2,bytes) - - // container is the name of the container in the pods of the scaling target - container: string @go(Container) @protobuf(3,bytes,opt) -} - -// ExternalMetricStatus indicates the current value of a global metric -// not associated with any Kubernetes object. -#ExternalMetricStatus: { - // metric identifies the target metric by name and selector - metric: #MetricIdentifier @go(Metric) @protobuf(1,bytes) - - // current contains the current value for the given metric - current: #MetricValueStatus @go(Current) @protobuf(2,bytes) -} - -// MetricValueStatus holds the current value for a metric -#MetricValueStatus: { - // value is the current value of the metric (as a quantity). - // +optional - value?: null | resource.#Quantity @go(Value,*resource.Quantity) @protobuf(1,bytes,opt) - - // averageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - averageValue?: null | resource.#Quantity @go(AverageValue,*resource.Quantity) @protobuf(2,bytes,opt) - - // currentAverageUtilization is the current value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // +optional - averageUtilization?: null | int32 @go(AverageUtilization,*int32) @protobuf(3,bytes,opt) -} - -// HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. -#HorizontalPodAutoscalerList: { - metav1.#TypeMeta - - // metadata is the standard list metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of horizontal pod autoscaler objects. - items: [...#HorizontalPodAutoscaler] @go(Items,[]HorizontalPodAutoscaler) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/autoscaling/v2beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/autoscaling/v2beta1/register_go_gen.cue deleted file mode 100644 index 6060648..0000000 --- a/cue.mod/gen/k8s.io/api/autoscaling/v2beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/autoscaling/v2beta1 - -package v2beta1 - -#GroupName: "autoscaling" diff --git a/cue.mod/gen/k8s.io/api/autoscaling/v2beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/autoscaling/v2beta1/types_go_gen.cue deleted file mode 100644 index ea14ef5..0000000 --- a/cue.mod/gen/k8s.io/api/autoscaling/v2beta1/types_go_gen.cue +++ /dev/null @@ -1,520 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/autoscaling/v2beta1 - -package v2beta1 - -import ( - "k8s.io/apimachinery/pkg/api/resource" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" -) - -// CrossVersionObjectReference contains enough information to let you identify the referred resource. -#CrossVersionObjectReference: { - // Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - kind: string @go(Kind) @protobuf(1,bytes,opt) - - // Name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - name: string @go(Name) @protobuf(2,bytes,opt) - - // API version of the referent - // +optional - apiVersion?: string @go(APIVersion) @protobuf(3,bytes,opt) -} - -// HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. -#HorizontalPodAutoscalerSpec: { - // scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics - // should be collected, as well as to actually change the replica count. - scaleTargetRef: #CrossVersionObjectReference @go(ScaleTargetRef) @protobuf(1,bytes,opt) - - // minReplicas is the lower limit for the number of replicas to which the autoscaler - // can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the - // alpha feature gate HPAScaleToZero is enabled and at least one Object or External - // metric is configured. Scaling is active as long as at least one metric value is - // available. - // +optional - minReplicas?: null | int32 @go(MinReplicas,*int32) @protobuf(2,varint,opt) - - // maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. - // It cannot be less that minReplicas. - maxReplicas: int32 @go(MaxReplicas) @protobuf(3,varint,opt) - - // metrics contains the specifications for which to use to calculate the - // desired replica count (the maximum replica count across all metrics will - // be used). The desired replica count is calculated multiplying the - // ratio between the target value and the current value by the current - // number of pods. Ergo, metrics used must decrease as the pod count is - // increased, and vice-versa. See the individual metric source types for - // more information about how each type of metric must respond. - // +optional - metrics?: [...#MetricSpec] @go(Metrics,[]MetricSpec) @protobuf(4,bytes,rep) -} - -// MetricSourceType indicates the type of metric. -#MetricSourceType: string // #enumMetricSourceType - -#enumMetricSourceType: - #ObjectMetricSourceType | - #PodsMetricSourceType | - #ResourceMetricSourceType | - #ContainerResourceMetricSourceType | - #ExternalMetricSourceType - -// ObjectMetricSourceType is a metric describing a kubernetes object -// (for example, hits-per-second on an Ingress object). -#ObjectMetricSourceType: #MetricSourceType & "Object" - -// PodsMetricSourceType is a metric describing each pod in the current scale -// target (for example, transactions-processed-per-second). The values -// will be averaged together before being compared to the target value. -#PodsMetricSourceType: #MetricSourceType & "Pods" - -// ResourceMetricSourceType is a resource metric known to Kubernetes, as -// specified in requests and limits, describing each pod in the current -// scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available -// to normal per-pod metrics (the "pods" source). -#ResourceMetricSourceType: #MetricSourceType & "Resource" - -// ContainerResourceMetricSourceType is a resource metric known to Kubernetes, as -// specified in requests and limits, describing a single container in each pod in the current -// scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available -// to normal per-pod metrics (the "pods" source). -#ContainerResourceMetricSourceType: #MetricSourceType & "ContainerResource" - -// ExternalMetricSourceType is a global metric that is not associated -// with any Kubernetes object. It allows autoscaling based on information -// coming from components running outside of cluster -// (for example length of queue in cloud messaging service, or -// QPS from loadbalancer running outside of cluster). -#ExternalMetricSourceType: #MetricSourceType & "External" - -// MetricSpec specifies how to scale based on a single metric -// (only `type` and one other matching field should be set at once). -#MetricSpec: { - // type is the type of metric source. It should be one of "ContainerResource", - // "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. - // Note: "ContainerResource" type is available on when the feature-gate - // HPAContainerMetrics is enabled - type: #MetricSourceType @go(Type) @protobuf(1,bytes) - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - object?: null | #ObjectMetricSource @go(Object,*ObjectMetricSource) @protobuf(2,bytes,opt) - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - pods?: null | #PodsMetricSource @go(Pods,*PodsMetricSource) @protobuf(3,bytes,opt) - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - resource?: null | #ResourceMetricSource @go(Resource,*ResourceMetricSource) @protobuf(4,bytes,opt) - - // container resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing a single container in - // each pod of the current scale target (e.g. CPU or memory). Such metrics are - // built in to Kubernetes, and have special scaling options on top of those - // available to normal per-pod metrics using the "pods" source. - // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. - // +optional - containerResource?: null | #ContainerResourceMetricSource @go(ContainerResource,*ContainerResourceMetricSource) @protobuf(7,bytes,opt) - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - external?: null | #ExternalMetricSource @go(External,*ExternalMetricSource) @protobuf(5,bytes,opt) -} - -// ObjectMetricSource indicates how to scale on a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -#ObjectMetricSource: { - // target is the described Kubernetes object. - target: #CrossVersionObjectReference @go(Target) @protobuf(1,bytes) - - // metricName is the name of the metric in question. - metricName: string @go(MetricName) @protobuf(2,bytes) - - // targetValue is the target value of the metric (as a quantity). - targetValue: resource.#Quantity @go(TargetValue) @protobuf(3,bytes) - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping - // When unset, just the metricName will be used to gather metrics. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(4,bytes) - - // averageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - averageValue?: null | resource.#Quantity @go(AverageValue,*resource.Quantity) @protobuf(5,bytes) -} - -// PodsMetricSource indicates how to scale on a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -// The values will be averaged together before being compared to the target -// value. -#PodsMetricSource: { - // metricName is the name of the metric in question - metricName: string @go(MetricName) @protobuf(1,bytes) - - // targetAverageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - targetAverageValue: resource.#Quantity @go(TargetAverageValue) @protobuf(2,bytes) - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping - // When unset, just the metricName will be used to gather metrics. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(3,bytes) -} - -// ResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -#ResourceMetricSource: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // targetAverageUtilization is the target value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // +optional - targetAverageUtilization?: null | int32 @go(TargetAverageUtilization,*int32) @protobuf(2,varint,opt) - - // targetAverageValue is the target value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // +optional - targetAverageValue?: null | resource.#Quantity @go(TargetAverageValue,*resource.Quantity) @protobuf(3,bytes,opt) -} - -// ContainerResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -#ContainerResourceMetricSource: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // targetAverageUtilization is the target value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // +optional - targetAverageUtilization?: null | int32 @go(TargetAverageUtilization,*int32) @protobuf(2,varint,opt) - - // targetAverageValue is the target value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // +optional - targetAverageValue?: null | resource.#Quantity @go(TargetAverageValue,*resource.Quantity) @protobuf(3,bytes,opt) - - // container is the name of the container in the pods of the scaling target - container: string @go(Container) @protobuf(4,bytes,opt) -} - -// ExternalMetricSource indicates how to scale on a metric not associated with -// any Kubernetes object (for example length of queue in cloud -// messaging service, or QPS from loadbalancer running outside of cluster). -// Exactly one "target" type should be set. -#ExternalMetricSource: { - // metricName is the name of the metric in question. - metricName: string @go(MetricName) @protobuf(1,bytes) - - // metricSelector is used to identify a specific time series - // within a given metric. - // +optional - metricSelector?: null | metav1.#LabelSelector @go(MetricSelector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // targetValue is the target value of the metric (as a quantity). - // Mutually exclusive with TargetAverageValue. - // +optional - targetValue?: null | resource.#Quantity @go(TargetValue,*resource.Quantity) @protobuf(3,bytes,opt) - - // targetAverageValue is the target per-pod value of global metric (as a quantity). - // Mutually exclusive with TargetValue. - // +optional - targetAverageValue?: null | resource.#Quantity @go(TargetAverageValue,*resource.Quantity) @protobuf(4,bytes,opt) -} - -// HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. -#HorizontalPodAutoscalerStatus: { - // observedGeneration is the most recent generation observed by this autoscaler. - // +optional - observedGeneration?: null | int64 @go(ObservedGeneration,*int64) @protobuf(1,varint,opt) - - // lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, - // used by the autoscaler to control how often the number of pods is changed. - // +optional - lastScaleTime?: null | metav1.#Time @go(LastScaleTime,*metav1.Time) @protobuf(2,bytes,opt) - - // currentReplicas is current number of replicas of pods managed by this autoscaler, - // as last seen by the autoscaler. - currentReplicas: int32 @go(CurrentReplicas) @protobuf(3,varint,opt) - - // desiredReplicas is the desired number of replicas of pods managed by this autoscaler, - // as last calculated by the autoscaler. - desiredReplicas: int32 @go(DesiredReplicas) @protobuf(4,varint,opt) - - // currentMetrics is the last read state of the metrics used by this autoscaler. - // +optional - currentMetrics: [...#MetricStatus] @go(CurrentMetrics,[]MetricStatus) @protobuf(5,bytes,rep) - - // conditions is the set of conditions required for this autoscaler to scale its target, - // and indicates whether or not those conditions are met. - // +optional - conditions: [...#HorizontalPodAutoscalerCondition] @go(Conditions,[]HorizontalPodAutoscalerCondition) @protobuf(6,bytes,rep) -} - -// HorizontalPodAutoscalerConditionType are the valid conditions of -// a HorizontalPodAutoscaler. -#HorizontalPodAutoscalerConditionType: string // #enumHorizontalPodAutoscalerConditionType - -#enumHorizontalPodAutoscalerConditionType: - #ScalingActive | - #AbleToScale | - #ScalingLimited - -// ScalingActive indicates that the HPA controller is able to scale if necessary: -// it's correctly configured, can fetch the desired metrics, and isn't disabled. -#ScalingActive: #HorizontalPodAutoscalerConditionType & "ScalingActive" - -// AbleToScale indicates a lack of transient issues which prevent scaling from occurring, -// such as being in a backoff window, or being unable to access/update the target scale. -#AbleToScale: #HorizontalPodAutoscalerConditionType & "AbleToScale" - -// ScalingLimited indicates that the calculated scale based on metrics would be above or -// below the range for the HPA, and has thus been capped. -#ScalingLimited: #HorizontalPodAutoscalerConditionType & "ScalingLimited" - -// HorizontalPodAutoscalerCondition describes the state of -// a HorizontalPodAutoscaler at a certain point. -#HorizontalPodAutoscalerCondition: { - // type describes the current condition - type: #HorizontalPodAutoscalerConditionType @go(Type) @protobuf(1,bytes) - - // status is the status of the condition (True, False, Unknown) - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes) - - // lastTransitionTime is the last time the condition transitioned from - // one status to another - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // reason is the reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // message is a human-readable explanation containing details about - // the transition - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// MetricStatus describes the last-read state of a single metric. -#MetricStatus: { - // type is the type of metric source. It will be one of "ContainerResource", - // "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. - // Note: "ContainerResource" type is available on when the feature-gate - // HPAContainerMetrics is enabled - type: #MetricSourceType @go(Type) @protobuf(1,bytes) - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - object?: null | #ObjectMetricStatus @go(Object,*ObjectMetricStatus) @protobuf(2,bytes,opt) - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - pods?: null | #PodsMetricStatus @go(Pods,*PodsMetricStatus) @protobuf(3,bytes,opt) - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - resource?: null | #ResourceMetricStatus @go(Resource,*ResourceMetricStatus) @protobuf(4,bytes,opt) - - // container resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing a single container in each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - containerResource?: null | #ContainerResourceMetricStatus @go(ContainerResource,*ContainerResourceMetricStatus) @protobuf(7,bytes,opt) - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - external?: null | #ExternalMetricStatus @go(External,*ExternalMetricStatus) @protobuf(5,bytes,opt) -} - -// ObjectMetricStatus indicates the current value of a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -#ObjectMetricStatus: { - // target is the described Kubernetes object. - target: #CrossVersionObjectReference @go(Target) @protobuf(1,bytes) - - // metricName is the name of the metric in question. - metricName: string @go(MetricName) @protobuf(2,bytes) - - // currentValue is the current value of the metric (as a quantity). - currentValue: resource.#Quantity @go(CurrentValue) @protobuf(3,bytes) - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(4,bytes) - - // averageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - averageValue?: null | resource.#Quantity @go(AverageValue,*resource.Quantity) @protobuf(5,bytes) -} - -// PodsMetricStatus indicates the current value of a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -#PodsMetricStatus: { - // metricName is the name of the metric in question - metricName: string @go(MetricName) @protobuf(1,bytes) - - // currentAverageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - currentAverageValue: resource.#Quantity @go(CurrentAverageValue) @protobuf(2,bytes) - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(3,bytes) -} - -// ResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -#ResourceMetricStatus: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // currentAverageUtilization is the current value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. It will only be - // present if `targetAverageValue` was set in the corresponding metric - // specification. - // +optional - currentAverageUtilization?: null | int32 @go(CurrentAverageUtilization,*int32) @protobuf(2,bytes,opt) - - // currentAverageValue is the current value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // It will always be set, regardless of the corresponding metric specification. - currentAverageValue: resource.#Quantity @go(CurrentAverageValue) @protobuf(3,bytes) -} - -// ContainerResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing a single container in each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -#ContainerResourceMetricStatus: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // currentAverageUtilization is the current value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. It will only be - // present if `targetAverageValue` was set in the corresponding metric - // specification. - // +optional - currentAverageUtilization?: null | int32 @go(CurrentAverageUtilization,*int32) @protobuf(2,bytes,opt) - - // currentAverageValue is the current value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // It will always be set, regardless of the corresponding metric specification. - currentAverageValue: resource.#Quantity @go(CurrentAverageValue) @protobuf(3,bytes) - - // container is the name of the container in the pods of the scaling target - container: string @go(Container) @protobuf(4,bytes,opt) -} - -// ExternalMetricStatus indicates the current value of a global metric -// not associated with any Kubernetes object. -#ExternalMetricStatus: { - // metricName is the name of a metric used for autoscaling in - // metric system. - metricName: string @go(MetricName) @protobuf(1,bytes) - - // metricSelector is used to identify a specific time series - // within a given metric. - // +optional - metricSelector?: null | metav1.#LabelSelector @go(MetricSelector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // currentValue is the current value of the metric (as a quantity) - currentValue: resource.#Quantity @go(CurrentValue) @protobuf(3,bytes) - - // currentAverageValue is the current value of metric averaged over autoscaled pods. - // +optional - currentAverageValue?: null | resource.#Quantity @go(CurrentAverageValue,*resource.Quantity) @protobuf(4,bytes,opt) -} - -// HorizontalPodAutoscaler is the configuration for a horizontal pod -// autoscaler, which automatically manages the replica count of any resource -// implementing the scale subresource based on the metrics specified. -#HorizontalPodAutoscaler: { - metav1.#TypeMeta - - // metadata is the standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec is the specification for the behaviour of the autoscaler. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - spec?: #HorizontalPodAutoscalerSpec @go(Spec) @protobuf(2,bytes,opt) - - // status is the current information about the autoscaler. - // +optional - status?: #HorizontalPodAutoscalerStatus @go(Status) @protobuf(3,bytes,opt) -} - -// HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. -#HorizontalPodAutoscalerList: { - metav1.#TypeMeta - - // metadata is the standard list metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of horizontal pod autoscaler objects. - items: [...#HorizontalPodAutoscaler] @go(Items,[]HorizontalPodAutoscaler) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/autoscaling/v2beta2/register_go_gen.cue b/cue.mod/gen/k8s.io/api/autoscaling/v2beta2/register_go_gen.cue deleted file mode 100644 index 37672a6..0000000 --- a/cue.mod/gen/k8s.io/api/autoscaling/v2beta2/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/autoscaling/v2beta2 - -package v2beta2 - -#GroupName: "autoscaling" diff --git a/cue.mod/gen/k8s.io/api/autoscaling/v2beta2/types_go_gen.cue b/cue.mod/gen/k8s.io/api/autoscaling/v2beta2/types_go_gen.cue deleted file mode 100644 index 6aefdfd..0000000 --- a/cue.mod/gen/k8s.io/api/autoscaling/v2beta2/types_go_gen.cue +++ /dev/null @@ -1,586 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/autoscaling/v2beta2 - -package v2beta2 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/api/resource" -) - -// HorizontalPodAutoscaler is the configuration for a horizontal pod -// autoscaler, which automatically manages the replica count of any resource -// implementing the scale subresource based on the metrics specified. -#HorizontalPodAutoscaler: { - metav1.#TypeMeta - - // metadata is the standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec is the specification for the behaviour of the autoscaler. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - spec?: #HorizontalPodAutoscalerSpec @go(Spec) @protobuf(2,bytes,opt) - - // status is the current information about the autoscaler. - // +optional - status?: #HorizontalPodAutoscalerStatus @go(Status) @protobuf(3,bytes,opt) -} - -// HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. -#HorizontalPodAutoscalerSpec: { - // scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics - // should be collected, as well as to actually change the replica count. - scaleTargetRef: #CrossVersionObjectReference @go(ScaleTargetRef) @protobuf(1,bytes,opt) - - // minReplicas is the lower limit for the number of replicas to which the autoscaler - // can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the - // alpha feature gate HPAScaleToZero is enabled and at least one Object or External - // metric is configured. Scaling is active as long as at least one metric value is - // available. - // +optional - minReplicas?: null | int32 @go(MinReplicas,*int32) @protobuf(2,varint,opt) - - // maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. - // It cannot be less that minReplicas. - maxReplicas: int32 @go(MaxReplicas) @protobuf(3,varint,opt) - - // metrics contains the specifications for which to use to calculate the - // desired replica count (the maximum replica count across all metrics will - // be used). The desired replica count is calculated multiplying the - // ratio between the target value and the current value by the current - // number of pods. Ergo, metrics used must decrease as the pod count is - // increased, and vice-versa. See the individual metric source types for - // more information about how each type of metric must respond. - // If not set, the default metric will be set to 80% average CPU utilization. - // +optional - metrics?: [...#MetricSpec] @go(Metrics,[]MetricSpec) @protobuf(4,bytes,rep) - - // behavior configures the scaling behavior of the target - // in both Up and Down directions (scaleUp and scaleDown fields respectively). - // If not set, the default HPAScalingRules for scale up and scale down are used. - // +optional - behavior?: null | #HorizontalPodAutoscalerBehavior @go(Behavior,*HorizontalPodAutoscalerBehavior) @protobuf(5,bytes,opt) -} - -// CrossVersionObjectReference contains enough information to let you identify the referred resource. -#CrossVersionObjectReference: { - // kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - kind: string @go(Kind) @protobuf(1,bytes,opt) - - // name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - name: string @go(Name) @protobuf(2,bytes,opt) - - // apiVersion is the API version of the referent - // +optional - apiVersion?: string @go(APIVersion) @protobuf(3,bytes,opt) -} - -// MetricSpec specifies how to scale based on a single metric -// (only `type` and one other matching field should be set at once). -#MetricSpec: { - // type is the type of metric source. It should be one of "ContainerResource", "External", - // "Object", "Pods" or "Resource", each mapping to a matching field in the object. - // Note: "ContainerResource" type is available on when the feature-gate - // HPAContainerMetrics is enabled - type: #MetricSourceType @go(Type) @protobuf(1,bytes) - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - object?: null | #ObjectMetricSource @go(Object,*ObjectMetricSource) @protobuf(2,bytes,opt) - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - pods?: null | #PodsMetricSource @go(Pods,*PodsMetricSource) @protobuf(3,bytes,opt) - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - resource?: null | #ResourceMetricSource @go(Resource,*ResourceMetricSource) @protobuf(4,bytes,opt) - - // container resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing a single container in - // each pod of the current scale target (e.g. CPU or memory). Such metrics are - // built in to Kubernetes, and have special scaling options on top of those - // available to normal per-pod metrics using the "pods" source. - // This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. - // +optional - containerResource?: null | #ContainerResourceMetricSource @go(ContainerResource,*ContainerResourceMetricSource) @protobuf(7,bytes,opt) - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - external?: null | #ExternalMetricSource @go(External,*ExternalMetricSource) @protobuf(5,bytes,opt) -} - -// HorizontalPodAutoscalerBehavior configures the scaling behavior of the target -// in both Up and Down directions (scaleUp and scaleDown fields respectively). -#HorizontalPodAutoscalerBehavior: { - // scaleUp is scaling policy for scaling Up. - // If not set, the default value is the higher of: - // * increase no more than 4 pods per 60 seconds - // * double the number of pods per 60 seconds - // No stabilization is used. - // +optional - scaleUp?: null | #HPAScalingRules @go(ScaleUp,*HPAScalingRules) @protobuf(1,bytes,opt) - - // scaleDown is scaling policy for scaling Down. - // If not set, the default value is to allow to scale down to minReplicas pods, with a - // 300 second stabilization window (i.e., the highest recommendation for - // the last 300sec is used). - // +optional - scaleDown?: null | #HPAScalingRules @go(ScaleDown,*HPAScalingRules) @protobuf(2,bytes,opt) -} - -// ScalingPolicySelect is used to specify which policy should be used while scaling in a certain direction -#ScalingPolicySelect: string // #enumScalingPolicySelect - -#enumScalingPolicySelect: - #MaxPolicySelect | - #MinPolicySelect | - #DisabledPolicySelect - -// MaxPolicySelect selects the policy with the highest possible change. -#MaxPolicySelect: #ScalingPolicySelect & "Max" - -// MinPolicySelect selects the policy with the lowest possible change. -#MinPolicySelect: #ScalingPolicySelect & "Min" - -// DisabledPolicySelect disables the scaling in this direction. -#DisabledPolicySelect: #ScalingPolicySelect & "Disabled" - -// HPAScalingRules configures the scaling behavior for one direction. -// These Rules are applied after calculating DesiredReplicas from metrics for the HPA. -// They can limit the scaling velocity by specifying scaling policies. -// They can prevent flapping by specifying the stabilization window, so that the -// number of replicas is not set instantly, instead, the safest value from the stabilization -// window is chosen. -#HPAScalingRules: { - // stabilizationWindowSeconds is the number of seconds for which past recommendations should be - // considered while scaling up or scaling down. - // StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). - // If not set, use the default values: - // - For scale up: 0 (i.e. no stabilization is done). - // - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - // +optional - stabilizationWindowSeconds?: null | int32 @go(StabilizationWindowSeconds,*int32) @protobuf(3,varint,opt) - - // selectPolicy is used to specify which policy should be used. - // If not set, the default value MaxPolicySelect is used. - // +optional - selectPolicy?: null | #ScalingPolicySelect @go(SelectPolicy,*ScalingPolicySelect) @protobuf(1,bytes,opt) - - // policies is a list of potential scaling polices which can be used during scaling. - // At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid - // +optional - policies?: [...#HPAScalingPolicy] @go(Policies,[]HPAScalingPolicy) @protobuf(2,bytes,rep) -} - -// HPAScalingPolicyType is the type of the policy which could be used while making scaling decisions. -#HPAScalingPolicyType: string // #enumHPAScalingPolicyType - -#enumHPAScalingPolicyType: - #PodsScalingPolicy | - #PercentScalingPolicy - -// PodsScalingPolicy is a policy used to specify a change in absolute number of pods. -#PodsScalingPolicy: #HPAScalingPolicyType & "Pods" - -// PercentScalingPolicy is a policy used to specify a relative amount of change with respect to -// the current number of pods. -#PercentScalingPolicy: #HPAScalingPolicyType & "Percent" - -// HPAScalingPolicy is a single policy which must hold true for a specified past interval. -#HPAScalingPolicy: { - // type is used to specify the scaling policy. - type: #HPAScalingPolicyType @go(Type) @protobuf(1,bytes,opt,casttype=HPAScalingPolicyType) - - // value contains the amount of change which is permitted by the policy. - // It must be greater than zero - value: int32 @go(Value) @protobuf(2,varint,opt) - - // periodSeconds specifies the window of time for which the policy should hold true. - // PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - periodSeconds: int32 @go(PeriodSeconds) @protobuf(3,varint,opt) -} - -// MetricSourceType indicates the type of metric. -#MetricSourceType: string // #enumMetricSourceType - -#enumMetricSourceType: - #ObjectMetricSourceType | - #PodsMetricSourceType | - #ResourceMetricSourceType | - #ContainerResourceMetricSourceType | - #ExternalMetricSourceType - -// ObjectMetricSourceType is a metric describing a kubernetes object -// (for example, hits-per-second on an Ingress object). -#ObjectMetricSourceType: #MetricSourceType & "Object" - -// PodsMetricSourceType is a metric describing each pod in the current scale -// target (for example, transactions-processed-per-second). The values -// will be averaged together before being compared to the target value. -#PodsMetricSourceType: #MetricSourceType & "Pods" - -// ResourceMetricSourceType is a resource metric known to Kubernetes, as -// specified in requests and limits, describing each pod in the current -// scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available -// to normal per-pod metrics (the "pods" source). -#ResourceMetricSourceType: #MetricSourceType & "Resource" - -// ContainerResourceMetricSourceType is a resource metric known to Kubernetes, as -// specified in requests and limits, describing a single container in each pod in the current -// scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available -// to normal per-pod metrics (the "pods" source). -#ContainerResourceMetricSourceType: #MetricSourceType & "ContainerResource" - -// ExternalMetricSourceType is a global metric that is not associated -// with any Kubernetes object. It allows autoscaling based on information -// coming from components running outside of cluster -// (for example length of queue in cloud messaging service, or -// QPS from loadbalancer running outside of cluster). -#ExternalMetricSourceType: #MetricSourceType & "External" - -// ObjectMetricSource indicates how to scale on a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -#ObjectMetricSource: { - describedObject: #CrossVersionObjectReference @go(DescribedObject) @protobuf(1,bytes) - - // target specifies the target value for the given metric - target: #MetricTarget @go(Target) @protobuf(2,bytes) - - // metric identifies the target metric by name and selector - metric: #MetricIdentifier @go(Metric) @protobuf(3,bytes) -} - -// PodsMetricSource indicates how to scale on a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -// The values will be averaged together before being compared to the target -// value. -#PodsMetricSource: { - // metric identifies the target metric by name and selector - metric: #MetricIdentifier @go(Metric) @protobuf(1,bytes) - - // target specifies the target value for the given metric - target: #MetricTarget @go(Target) @protobuf(2,bytes) -} - -// ResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -#ResourceMetricSource: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // target specifies the target value for the given metric - target: #MetricTarget @go(Target) @protobuf(2,bytes) -} - -// ContainerResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -#ContainerResourceMetricSource: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // target specifies the target value for the given metric - target: #MetricTarget @go(Target) @protobuf(2,bytes) - - // container is the name of the container in the pods of the scaling target - container: string @go(Container) @protobuf(3,bytes,opt) -} - -// ExternalMetricSource indicates how to scale on a metric not associated with -// any Kubernetes object (for example length of queue in cloud -// messaging service, or QPS from loadbalancer running outside of cluster). -#ExternalMetricSource: { - // metric identifies the target metric by name and selector - metric: #MetricIdentifier @go(Metric) @protobuf(1,bytes) - - // target specifies the target value for the given metric - target: #MetricTarget @go(Target) @protobuf(2,bytes) -} - -// MetricIdentifier defines the name and optionally selector for a metric -#MetricIdentifier: { - // name is the name of the given metric - name: string @go(Name) @protobuf(1,bytes) - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes) -} - -// MetricTarget defines the target value, average value, or average utilization of a specific metric -#MetricTarget: { - // type represents whether the metric type is Utilization, Value, or AverageValue - type: #MetricTargetType @go(Type) @protobuf(1,bytes) - - // value is the target value of the metric (as a quantity). - // +optional - value?: null | resource.#Quantity @go(Value,*resource.Quantity) @protobuf(2,bytes,opt) - - // averageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - averageValue?: null | resource.#Quantity @go(AverageValue,*resource.Quantity) @protobuf(3,bytes,opt) - - // averageUtilization is the target value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // Currently only valid for Resource metric source type - // +optional - averageUtilization?: null | int32 @go(AverageUtilization,*int32) @protobuf(4,bytes,opt) -} - -// MetricTargetType specifies the type of metric being targeted, and should be either -// "Value", "AverageValue", or "Utilization" -#MetricTargetType: string // #enumMetricTargetType - -#enumMetricTargetType: - #UtilizationMetricType | - #ValueMetricType | - #AverageValueMetricType - -// UtilizationMetricType declares a MetricTarget is an AverageUtilization value -#UtilizationMetricType: #MetricTargetType & "Utilization" - -// ValueMetricType declares a MetricTarget is a raw value -#ValueMetricType: #MetricTargetType & "Value" - -// AverageValueMetricType declares a MetricTarget is an -#AverageValueMetricType: #MetricTargetType & "AverageValue" - -// HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. -#HorizontalPodAutoscalerStatus: { - // observedGeneration is the most recent generation observed by this autoscaler. - // +optional - observedGeneration?: null | int64 @go(ObservedGeneration,*int64) @protobuf(1,varint,opt) - - // lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, - // used by the autoscaler to control how often the number of pods is changed. - // +optional - lastScaleTime?: null | metav1.#Time @go(LastScaleTime,*metav1.Time) @protobuf(2,bytes,opt) - - // currentReplicas is current number of replicas of pods managed by this autoscaler, - // as last seen by the autoscaler. - currentReplicas: int32 @go(CurrentReplicas) @protobuf(3,varint,opt) - - // desiredReplicas is the desired number of replicas of pods managed by this autoscaler, - // as last calculated by the autoscaler. - desiredReplicas: int32 @go(DesiredReplicas) @protobuf(4,varint,opt) - - // currentMetrics is the last read state of the metrics used by this autoscaler. - // +optional - currentMetrics: [...#MetricStatus] @go(CurrentMetrics,[]MetricStatus) @protobuf(5,bytes,rep) - - // conditions is the set of conditions required for this autoscaler to scale its target, - // and indicates whether or not those conditions are met. - // +optional - conditions: [...#HorizontalPodAutoscalerCondition] @go(Conditions,[]HorizontalPodAutoscalerCondition) @protobuf(6,bytes,rep) -} - -// HorizontalPodAutoscalerConditionType are the valid conditions of -// a HorizontalPodAutoscaler. -#HorizontalPodAutoscalerConditionType: string // #enumHorizontalPodAutoscalerConditionType - -#enumHorizontalPodAutoscalerConditionType: - #ScalingActive | - #AbleToScale | - #ScalingLimited - -// ScalingActive indicates that the HPA controller is able to scale if necessary: -// it's correctly configured, can fetch the desired metrics, and isn't disabled. -#ScalingActive: #HorizontalPodAutoscalerConditionType & "ScalingActive" - -// AbleToScale indicates a lack of transient issues which prevent scaling from occurring, -// such as being in a backoff window, or being unable to access/update the target scale. -#AbleToScale: #HorizontalPodAutoscalerConditionType & "AbleToScale" - -// ScalingLimited indicates that the calculated scale based on metrics would be above or -// below the range for the HPA, and has thus been capped. -#ScalingLimited: #HorizontalPodAutoscalerConditionType & "ScalingLimited" - -// HorizontalPodAutoscalerCondition describes the state of -// a HorizontalPodAutoscaler at a certain point. -#HorizontalPodAutoscalerCondition: { - // type describes the current condition - type: #HorizontalPodAutoscalerConditionType @go(Type) @protobuf(1,bytes) - - // status is the status of the condition (True, False, Unknown) - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes) - - // lastTransitionTime is the last time the condition transitioned from - // one status to another - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // reason is the reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // message is a human-readable explanation containing details about - // the transition - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// MetricStatus describes the last-read state of a single metric. -#MetricStatus: { - // type is the type of metric source. It will be one of "ContainerResource", "External", - // "Object", "Pods" or "Resource", each corresponds to a matching field in the object. - // Note: "ContainerResource" type is available on when the feature-gate - // HPAContainerMetrics is enabled - type: #MetricSourceType @go(Type) @protobuf(1,bytes) - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - object?: null | #ObjectMetricStatus @go(Object,*ObjectMetricStatus) @protobuf(2,bytes,opt) - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - pods?: null | #PodsMetricStatus @go(Pods,*PodsMetricStatus) @protobuf(3,bytes,opt) - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - resource?: null | #ResourceMetricStatus @go(Resource,*ResourceMetricStatus) @protobuf(4,bytes,opt) - - // containerResource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing a single container in each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - containerResource?: null | #ContainerResourceMetricStatus @go(ContainerResource,*ContainerResourceMetricStatus) @protobuf(7,bytes,opt) - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - external?: null | #ExternalMetricStatus @go(External,*ExternalMetricStatus) @protobuf(5,bytes,opt) -} - -// ObjectMetricStatus indicates the current value of a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -#ObjectMetricStatus: { - // metric identifies the target metric by name and selector - metric: #MetricIdentifier @go(Metric) @protobuf(1,bytes) - - // current contains the current value for the given metric - current: #MetricValueStatus @go(Current) @protobuf(2,bytes) - describedObject: #CrossVersionObjectReference @go(DescribedObject) @protobuf(3,bytes) -} - -// PodsMetricStatus indicates the current value of a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -#PodsMetricStatus: { - // metric identifies the target metric by name and selector - metric: #MetricIdentifier @go(Metric) @protobuf(1,bytes) - - // current contains the current value for the given metric - current: #MetricValueStatus @go(Current) @protobuf(2,bytes) -} - -// ResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -#ResourceMetricStatus: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // current contains the current value for the given metric - current: #MetricValueStatus @go(Current) @protobuf(2,bytes) -} - -// ContainerResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing a single container in each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -#ContainerResourceMetricStatus: { - // name is the name of the resource in question. - name: v1.#ResourceName @go(Name) @protobuf(1,bytes) - - // current contains the current value for the given metric - current: #MetricValueStatus @go(Current) @protobuf(2,bytes) - - // container is the name of the container in the pods of the scaling target - container: string @go(Container) @protobuf(3,bytes,opt) -} - -// ExternalMetricStatus indicates the current value of a global metric -// not associated with any Kubernetes object. -#ExternalMetricStatus: { - // metric identifies the target metric by name and selector - metric: #MetricIdentifier @go(Metric) @protobuf(1,bytes) - - // current contains the current value for the given metric - current: #MetricValueStatus @go(Current) @protobuf(2,bytes) -} - -// MetricValueStatus holds the current value for a metric -#MetricValueStatus: { - // value is the current value of the metric (as a quantity). - // +optional - value?: null | resource.#Quantity @go(Value,*resource.Quantity) @protobuf(1,bytes,opt) - - // averageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - averageValue?: null | resource.#Quantity @go(AverageValue,*resource.Quantity) @protobuf(2,bytes,opt) - - // averageUtilization is the current value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // +optional - averageUtilization?: null | int32 @go(AverageUtilization,*int32) @protobuf(3,bytes,opt) -} - -// HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. -#HorizontalPodAutoscalerList: { - metav1.#TypeMeta - - // metadata is the standard list metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of horizontal pod autoscaler objects. - items: [...#HorizontalPodAutoscaler] @go(Items,[]HorizontalPodAutoscaler) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/batch/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/batch/v1/register_go_gen.cue deleted file mode 100644 index 5c48908..0000000 --- a/cue.mod/gen/k8s.io/api/batch/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/batch/v1 - -package v1 - -#GroupName: "batch" diff --git a/cue.mod/gen/k8s.io/api/batch/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/batch/v1/types_go_gen.cue deleted file mode 100644 index 3cbdc66..0000000 --- a/cue.mod/gen/k8s.io/api/batch/v1/types_go_gen.cue +++ /dev/null @@ -1,693 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/batch/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - corev1 "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/types" -) - -// All Kubernetes labels need to be prefixed with Kubernetes to distinguish them from end-user labels -// More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#label-selector-and-annotation-conventions -_#labelPrefix: "batch.kubernetes.io/" - -// CronJobScheduledTimestampAnnotation is the scheduled timestamp annotation for the Job. -// It records the original/expected scheduled timestamp for the running job, represented in RFC3339. -// The CronJob controller adds this annotation if the CronJobsScheduledAnnotation feature gate (beta in 1.28) is enabled. -#CronJobScheduledTimestampAnnotation: "batch.kubernetes.io/cronjob-scheduled-timestamp" -#JobCompletionIndexAnnotation: "batch.kubernetes.io/job-completion-index" - -// JobTrackingFinalizer is a finalizer for Job's pods. It prevents them from -// being deleted before being accounted in the Job status. -// -// Additionally, the apiserver and job controller use this string as a Job -// annotation, to mark Jobs that are being tracked using pod finalizers. -// However, this behavior is deprecated in kubernetes 1.26. This means that, in -// 1.27+, one release after JobTrackingWithFinalizers graduates to GA, the -// apiserver and job controller will ignore this annotation and they will -// always track jobs using finalizers. -#JobTrackingFinalizer: "batch.kubernetes.io/job-tracking" - -// The Job labels will use batch.kubernetes.io as a prefix for all labels -// Historically the job controller uses unprefixed labels for job-name and controller-uid and -// Kubernetes continutes to recognize those unprefixed labels for consistency. -#JobNameLabel: "batch.kubernetes.io/job-name" - -// ControllerUid is used to programatically get pods corresponding to a Job. -// There is a corresponding label without the batch.kubernetes.io that we support for legacy reasons. -#ControllerUidLabel: "batch.kubernetes.io/controller-uid" - -// Annotation indicating the number of failures for the index corresponding -// to the pod, which are counted towards the backoff limit. -#JobIndexFailureCountAnnotation: "batch.kubernetes.io/job-index-failure-count" - -// Annotation indicating the number of failures for the index corresponding -// to the pod, which don't count towards the backoff limit, according to the -// pod failure policy. When the annotation is absent zero is implied. -#JobIndexIgnoredFailureCountAnnotation: "batch.kubernetes.io/job-index-ignored-failure-count" - -// Job represents the configuration of a single job. -#Job: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of a job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #JobSpec @go(Spec) @protobuf(2,bytes,opt) - - // Current status of a job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #JobStatus @go(Status) @protobuf(3,bytes,opt) -} - -// JobList is a collection of jobs. -#JobList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of Jobs. - items: [...#Job] @go(Items,[]Job) @protobuf(2,bytes,rep) -} - -// CompletionMode specifies how Pod completions of a Job are tracked. -// +enum -#CompletionMode: string // #enumCompletionMode - -#enumCompletionMode: - #NonIndexedCompletion | - #IndexedCompletion - -// NonIndexedCompletion is a Job completion mode. In this mode, the Job is -// considered complete when there have been .spec.completions -// successfully completed Pods. Pod completions are homologous to each other. -#NonIndexedCompletion: #CompletionMode & "NonIndexed" - -// IndexedCompletion is a Job completion mode. In this mode, the Pods of a -// Job get an associated completion index from 0 to (.spec.completions - 1). -// The Job is considered complete when a Pod completes for each completion -// index. -#IndexedCompletion: #CompletionMode & "Indexed" - -// PodFailurePolicyAction specifies how a Pod failure is handled. -// +enum -#PodFailurePolicyAction: string // #enumPodFailurePolicyAction - -#enumPodFailurePolicyAction: - #PodFailurePolicyActionFailJob | - #PodFailurePolicyActionFailIndex | - #PodFailurePolicyActionIgnore | - #PodFailurePolicyActionCount - -// This is an action which might be taken on a pod failure - mark the -// pod's job as Failed and terminate all running pods. -#PodFailurePolicyActionFailJob: #PodFailurePolicyAction & "FailJob" - -// This is an action which might be taken on a pod failure - mark the -// Job's index as failed to avoid restarts within this index. This action -// can only be used when backoffLimitPerIndex is set. -#PodFailurePolicyActionFailIndex: #PodFailurePolicyAction & "FailIndex" - -// This is an action which might be taken on a pod failure - the counter towards -// .backoffLimit, represented by the job's .status.failed field, is not -// incremented and a replacement pod is created. -#PodFailurePolicyActionIgnore: #PodFailurePolicyAction & "Ignore" - -// This is an action which might be taken on a pod failure - the pod failure -// is handled in the default way - the counter towards .backoffLimit, -// represented by the job's .status.failed field, is incremented. -#PodFailurePolicyActionCount: #PodFailurePolicyAction & "Count" - -// +enum -#PodFailurePolicyOnExitCodesOperator: string // #enumPodFailurePolicyOnExitCodesOperator - -#enumPodFailurePolicyOnExitCodesOperator: - #PodFailurePolicyOnExitCodesOpIn | - #PodFailurePolicyOnExitCodesOpNotIn - -#PodFailurePolicyOnExitCodesOpIn: #PodFailurePolicyOnExitCodesOperator & "In" -#PodFailurePolicyOnExitCodesOpNotIn: #PodFailurePolicyOnExitCodesOperator & "NotIn" - -// PodReplacementPolicy specifies the policy for creating pod replacements. -// +enum -#PodReplacementPolicy: string // #enumPodReplacementPolicy - -#enumPodReplacementPolicy: - #TerminatingOrFailed | - #Failed - -// TerminatingOrFailed means that we recreate pods -// when they are terminating (has a metadata.deletionTimestamp) or failed. -#TerminatingOrFailed: #PodReplacementPolicy & "TerminatingOrFailed" - -// Failed means to wait until a previously created Pod is fully terminated (has phase -// Failed or Succeeded) before creating a replacement Pod. -#Failed: #PodReplacementPolicy & "Failed" - -// PodFailurePolicyOnExitCodesRequirement describes the requirement for handling -// a failed pod based on its container exit codes. In particular, it lookups the -// .state.terminated.exitCode for each app container and init container status, -// represented by the .status.containerStatuses and .status.initContainerStatuses -// fields in the Pod status, respectively. Containers completed with success -// (exit code 0) are excluded from the requirement check. -#PodFailurePolicyOnExitCodesRequirement: { - // Restricts the check for exit codes to the container with the - // specified name. When null, the rule applies to all containers. - // When specified, it should match one the container or initContainer - // names in the pod template. - // +optional - containerName?: null | string @go(ContainerName,*string) @protobuf(1,bytes,opt) - - // Represents the relationship between the container exit code(s) and the - // specified values. Containers completed with success (exit code 0) are - // excluded from the requirement check. Possible values are: - // - // - In: the requirement is satisfied if at least one container exit code - // (might be multiple if there are multiple containers not restricted - // by the 'containerName' field) is in the set of specified values. - // - NotIn: the requirement is satisfied if at least one container exit code - // (might be multiple if there are multiple containers not restricted - // by the 'containerName' field) is not in the set of specified values. - // Additional values are considered to be added in the future. Clients should - // react to an unknown operator by assuming the requirement is not satisfied. - operator: #PodFailurePolicyOnExitCodesOperator @go(Operator) @protobuf(2,bytes,req) - - // Specifies the set of values. Each returned container exit code (might be - // multiple in case of multiple containers) is checked against this set of - // values with respect to the operator. The list of values must be ordered - // and must not contain duplicates. Value '0' cannot be used for the In operator. - // At least one element is required. At most 255 elements are allowed. - // +listType=set - values: [...int32] @go(Values,[]int32) @protobuf(3,varint,rep) -} - -// PodFailurePolicyOnPodConditionsPattern describes a pattern for matching -// an actual pod condition type. -#PodFailurePolicyOnPodConditionsPattern: { - // Specifies the required Pod condition type. To match a pod condition - // it is required that specified type equals the pod condition type. - type: corev1.#PodConditionType @go(Type) @protobuf(1,bytes,req) - - // Specifies the required Pod condition status. To match a pod condition - // it is required that the specified status equals the pod condition status. - // Defaults to True. - status: corev1.#ConditionStatus @go(Status) @protobuf(2,bytes,req) -} - -// PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. -// One of onExitCodes and onPodConditions, but not both, can be used in each rule. -#PodFailurePolicyRule: { - // Specifies the action taken on a pod failure when the requirements are satisfied. - // Possible values are: - // - // - FailJob: indicates that the pod's job is marked as Failed and all - // running pods are terminated. - // - FailIndex: indicates that the pod's index is marked as Failed and will - // not be restarted. - // This value is alpha-level. It can be used when the - // `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). - // - Ignore: indicates that the counter towards the .backoffLimit is not - // incremented and a replacement pod is created. - // - Count: indicates that the pod is handled in the default way - the - // counter towards the .backoffLimit is incremented. - // Additional values are considered to be added in the future. Clients should - // react to an unknown action by skipping the rule. - action: #PodFailurePolicyAction @go(Action) @protobuf(1,bytes,req) - - // Represents the requirement on the container exit codes. - // +optional - onExitCodes?: null | #PodFailurePolicyOnExitCodesRequirement @go(OnExitCodes,*PodFailurePolicyOnExitCodesRequirement) @protobuf(2,bytes,opt) - - // Represents the requirement on the pod conditions. The requirement is represented - // as a list of pod condition patterns. The requirement is satisfied if at - // least one pattern matches an actual pod condition. At most 20 elements are allowed. - // +listType=atomic - // +optional - onPodConditions: [...#PodFailurePolicyOnPodConditionsPattern] @go(OnPodConditions,[]PodFailurePolicyOnPodConditionsPattern) @protobuf(3,bytes,opt) -} - -// PodFailurePolicy describes how failed pods influence the backoffLimit. -#PodFailurePolicy: { - // A list of pod failure policy rules. The rules are evaluated in order. - // Once a rule matches a Pod failure, the remaining of the rules are ignored. - // When no rule matches the Pod failure, the default handling applies - the - // counter of pod failures is incremented and it is checked against - // the backoffLimit. At most 20 elements are allowed. - // +listType=atomic - rules: [...#PodFailurePolicyRule] @go(Rules,[]PodFailurePolicyRule) @protobuf(1,bytes,opt) -} - -// JobSpec describes how the job execution will look like. -#JobSpec: { - // Specifies the maximum desired number of pods the job should - // run at any given time. The actual number of pods running in steady state will - // be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), - // i.e. when the work left to do is less than max parallelism. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - // +optional - parallelism?: null | int32 @go(Parallelism,*int32) @protobuf(1,varint,opt) - - // Specifies the desired number of successfully finished pods the - // job should be run with. Setting to null means that the success of any - // pod signals the success of all pods, and allows parallelism to have any positive - // value. Setting to 1 means that parallelism is limited to 1 and the success of that - // pod signals the success of the job. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - // +optional - completions?: null | int32 @go(Completions,*int32) @protobuf(2,varint,opt) - - // Specifies the duration in seconds relative to the startTime that the job - // may be continuously active before the system tries to terminate it; value - // must be positive integer. If a Job is suspended (at creation or through an - // update), this timer will effectively be stopped and reset when the Job is - // resumed again. - // +optional - activeDeadlineSeconds?: null | int64 @go(ActiveDeadlineSeconds,*int64) @protobuf(3,varint,opt) - - // Specifies the policy of handling failed pods. In particular, it allows to - // specify the set of actions and conditions which need to be - // satisfied to take the associated action. - // If empty, the default behaviour applies - the counter of failed pods, - // represented by the jobs's .status.failed field, is incremented and it is - // checked against the backoffLimit. This field cannot be used in combination - // with restartPolicy=OnFailure. - // - // This field is beta-level. It can be used when the `JobPodFailurePolicy` - // feature gate is enabled (enabled by default). - // +optional - podFailurePolicy?: null | #PodFailurePolicy @go(PodFailurePolicy,*PodFailurePolicy) @protobuf(11,bytes,opt) - - // Specifies the number of retries before marking this job failed. - // Defaults to 6 - // +optional - backoffLimit?: null | int32 @go(BackoffLimit,*int32) @protobuf(7,varint,opt) - - // Specifies the limit for the number of retries within an - // index before marking this index as failed. When enabled the number of - // failures per index is kept in the pod's - // batch.kubernetes.io/job-index-failure-count annotation. It can only - // be set when Job's completionMode=Indexed, and the Pod's restart - // policy is Never. The field is immutable. - // This field is alpha-level. It can be used when the `JobBackoffLimitPerIndex` - // feature gate is enabled (disabled by default). - // +optional - backoffLimitPerIndex?: null | int32 @go(BackoffLimitPerIndex,*int32) @protobuf(12,varint,opt) - - // Specifies the maximal number of failed indexes before marking the Job as - // failed, when backoffLimitPerIndex is set. Once the number of failed - // indexes exceeds this number the entire Job is marked as Failed and its - // execution is terminated. When left as null the job continues execution of - // all of its indexes and is marked with the `Complete` Job condition. - // It can only be specified when backoffLimitPerIndex is set. - // It can be null or up to completions. It is required and must be - // less than or equal to 10^4 when is completions greater than 10^5. - // This field is alpha-level. It can be used when the `JobBackoffLimitPerIndex` - // feature gate is enabled (disabled by default). - // +optional - maxFailedIndexes?: null | int32 @go(MaxFailedIndexes,*int32) @protobuf(13,varint,opt) - - // A label query over pods that should match the pod count. - // Normally, the system sets this field for you. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(4,bytes,opt) - - // manualSelector controls generation of pod labels and pod selectors. - // Leave `manualSelector` unset unless you are certain what you are doing. - // When false or unset, the system pick labels unique to this job - // and appends those labels to the pod template. When true, - // the user is responsible for picking unique labels and specifying - // the selector. Failure to pick a unique label may cause this - // and other jobs to not function correctly. However, You may see - // `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` - // API. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector - // +optional - manualSelector?: null | bool @go(ManualSelector,*bool) @protobuf(5,varint,opt) - - // Describes the pod that will be created when executing a job. - // The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - template: corev1.#PodTemplateSpec @go(Template) @protobuf(6,bytes,opt) - - // ttlSecondsAfterFinished limits the lifetime of a Job that has finished - // execution (either Complete or Failed). If this field is set, - // ttlSecondsAfterFinished after the Job finishes, it is eligible to be - // automatically deleted. When the Job is being deleted, its lifecycle - // guarantees (e.g. finalizers) will be honored. If this field is unset, - // the Job won't be automatically deleted. If this field is set to zero, - // the Job becomes eligible to be deleted immediately after it finishes. - // +optional - ttlSecondsAfterFinished?: null | int32 @go(TTLSecondsAfterFinished,*int32) @protobuf(8,varint,opt) - - // completionMode specifies how Pod completions are tracked. It can be - // `NonIndexed` (default) or `Indexed`. - // - // `NonIndexed` means that the Job is considered complete when there have - // been .spec.completions successfully completed Pods. Each Pod completion is - // homologous to each other. - // - // `Indexed` means that the Pods of a - // Job get an associated completion index from 0 to (.spec.completions - 1), - // available in the annotation batch.kubernetes.io/job-completion-index. - // The Job is considered complete when there is one successfully completed Pod - // for each index. - // When value is `Indexed`, .spec.completions must be specified and - // `.spec.parallelism` must be less than or equal to 10^5. - // In addition, The Pod name takes the form - // `$(job-name)-$(index)-$(random-string)`, - // the Pod hostname takes the form `$(job-name)-$(index)`. - // - // More completion modes can be added in the future. - // If the Job controller observes a mode that it doesn't recognize, which - // is possible during upgrades due to version skew, the controller - // skips updates for the Job. - // +optional - completionMode?: null | #CompletionMode @go(CompletionMode,*CompletionMode) @protobuf(9,bytes,opt,casttype=CompletionMode) - - // suspend specifies whether the Job controller should create Pods or not. If - // a Job is created with suspend set to true, no Pods are created by the Job - // controller. If a Job is suspended after creation (i.e. the flag goes from - // false to true), the Job controller will delete all active Pods associated - // with this Job. Users must design their workload to gracefully handle this. - // Suspending a Job will reset the StartTime field of the Job, effectively - // resetting the ActiveDeadlineSeconds timer too. Defaults to false. - // - // +optional - suspend?: null | bool @go(Suspend,*bool) @protobuf(10,varint,opt) - - // podReplacementPolicy specifies when to create replacement Pods. - // Possible values are: - // - TerminatingOrFailed means that we recreate pods - // when they are terminating (has a metadata.deletionTimestamp) or failed. - // - Failed means to wait until a previously created Pod is fully terminated (has phase - // Failed or Succeeded) before creating a replacement Pod. - // - // When using podFailurePolicy, Failed is the the only allowed value. - // TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. - // This is an alpha field. Enable JobPodReplacementPolicy to be able to use this field. - // +optional - podReplacementPolicy?: null | #PodReplacementPolicy @go(PodReplacementPolicy,*PodReplacementPolicy) @protobuf(14,bytes,opt,casttype=podReplacementPolicy) -} - -// JobStatus represents the current state of a Job. -#JobStatus: { - // The latest available observations of an object's current state. When a Job - // fails, one of the conditions will have type "Failed" and status true. When - // a Job is suspended, one of the conditions will have type "Suspended" and - // status true; when the Job is resumed, the status of this condition will - // become false. When a Job is completed, one of the conditions will have - // type "Complete" and status true. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - // +listType=atomic - conditions?: [...#JobCondition] @go(Conditions,[]JobCondition) @protobuf(1,bytes,rep) - - // Represents time when the job controller started processing a job. When a - // Job is created in the suspended state, this field is not set until the - // first time it is resumed. This field is reset every time a Job is resumed - // from suspension. It is represented in RFC3339 form and is in UTC. - // +optional - startTime?: null | metav1.#Time @go(StartTime,*metav1.Time) @protobuf(2,bytes,opt) - - // Represents time when the job was completed. It is not guaranteed to - // be set in happens-before order across separate operations. - // It is represented in RFC3339 form and is in UTC. - // The completion time is only set when the job finishes successfully. - // +optional - completionTime?: null | metav1.#Time @go(CompletionTime,*metav1.Time) @protobuf(3,bytes,opt) - - // The number of pending and running pods. - // +optional - active?: int32 @go(Active) @protobuf(4,varint,opt) - - // The number of pods which reached phase Succeeded. - // +optional - succeeded?: int32 @go(Succeeded) @protobuf(5,varint,opt) - - // The number of pods which reached phase Failed. - // +optional - failed?: int32 @go(Failed) @protobuf(6,varint,opt) - - // The number of pods which are terminating (in phase Pending or Running - // and have a deletionTimestamp). - // - // This field is alpha-level. The job controller populates the field when - // the feature gate JobPodReplacementPolicy is enabled (disabled by default). - // +optional - terminating?: null | int32 @go(Terminating,*int32) @protobuf(11,varint,opt) - - // completedIndexes holds the completed indexes when .spec.completionMode = - // "Indexed" in a text format. The indexes are represented as decimal integers - // separated by commas. The numbers are listed in increasing order. Three or - // more consecutive numbers are compressed and represented by the first and - // last element of the series, separated by a hyphen. - // For example, if the completed indexes are 1, 3, 4, 5 and 7, they are - // represented as "1,3-5,7". - // +optional - completedIndexes?: string @go(CompletedIndexes) @protobuf(7,bytes,opt) - - // FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. - // The indexes are represented in the text format analogous as for the - // `completedIndexes` field, ie. they are kept as decimal integers - // separated by commas. The numbers are listed in increasing order. Three or - // more consecutive numbers are compressed and represented by the first and - // last element of the series, separated by a hyphen. - // For example, if the failed indexes are 1, 3, 4, 5 and 7, they are - // represented as "1,3-5,7". - // This field is alpha-level. It can be used when the `JobBackoffLimitPerIndex` - // feature gate is enabled (disabled by default). - // +optional - failedIndexes?: null | string @go(FailedIndexes,*string) @protobuf(10,bytes,opt) - - // uncountedTerminatedPods holds the UIDs of Pods that have terminated but - // the job controller hasn't yet accounted for in the status counters. - // - // The job controller creates pods with a finalizer. When a pod terminates - // (succeeded or failed), the controller does three steps to account for it - // in the job status: - // - // 1. Add the pod UID to the arrays in this field. - // 2. Remove the pod finalizer. - // 3. Remove the pod UID from the arrays while increasing the corresponding - // counter. - // - // Old jobs might not be tracked using this field, in which case the field - // remains null. - // +optional - uncountedTerminatedPods?: null | #UncountedTerminatedPods @go(UncountedTerminatedPods,*UncountedTerminatedPods) @protobuf(8,bytes,opt) - - // The number of pods which have a Ready condition. - // - // This field is beta-level. The job controller populates the field when - // the feature gate JobReadyPods is enabled (enabled by default). - // +optional - ready?: null | int32 @go(Ready,*int32) @protobuf(9,varint,opt) -} - -// UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't -// been accounted in Job status counters. -#UncountedTerminatedPods: { - // succeeded holds UIDs of succeeded Pods. - // +listType=set - // +optional - succeeded?: [...types.#UID] @go(Succeeded,[]types.UID) @protobuf(1,bytes,rep,casttype=k8s.io/apimachinery/pkg/types.UID) - - // failed holds UIDs of failed Pods. - // +listType=set - // +optional - failed?: [...types.#UID] @go(Failed,[]types.UID) @protobuf(2,bytes,rep,casttype=k8s.io/apimachinery/pkg/types.UID) -} - -#JobConditionType: string // #enumJobConditionType - -#enumJobConditionType: - #JobSuspended | - #JobComplete | - #JobFailed | - #JobFailureTarget - -// JobSuspended means the job has been suspended. -#JobSuspended: #JobConditionType & "Suspended" - -// JobComplete means the job has completed its execution. -#JobComplete: #JobConditionType & "Complete" - -// JobFailed means the job has failed its execution. -#JobFailed: #JobConditionType & "Failed" - -// FailureTarget means the job is about to fail its execution. -#JobFailureTarget: #JobConditionType & "FailureTarget" - -// JobCondition describes current state of a job. -#JobCondition: { - // Type of job condition, Complete or Failed. - type: #JobConditionType @go(Type) @protobuf(1,bytes,opt,casttype=JobConditionType) - - // Status of the condition, one of True, False, Unknown. - status: corev1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // Last time the condition was checked. - // +optional - lastProbeTime?: metav1.#Time @go(LastProbeTime) @protobuf(3,bytes,opt) - - // Last time the condition transit from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(4,bytes,opt) - - // (brief) reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(5,bytes,opt) - - // Human readable message indicating details about last transition. - // +optional - message?: string @go(Message) @protobuf(6,bytes,opt) -} - -// JobTemplateSpec describes the data a Job should have when created from a template -#JobTemplateSpec: { - // Standard object's metadata of the jobs created from this template. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #JobSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// CronJob represents the configuration of a single cron job. -#CronJob: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of a cron job, including the schedule. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #CronJobSpec @go(Spec) @protobuf(2,bytes,opt) - - // Current status of a cron job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #CronJobStatus @go(Status) @protobuf(3,bytes,opt) -} - -// CronJobList is a collection of cron jobs. -#CronJobList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of CronJobs. - items: [...#CronJob] @go(Items,[]CronJob) @protobuf(2,bytes,rep) -} - -// CronJobSpec describes how the job execution will look like and when it will actually run. -#CronJobSpec: { - // The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - schedule: string @go(Schedule) @protobuf(1,bytes,opt) - - // The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. - // If not specified, this will default to the time zone of the kube-controller-manager process. - // The set of valid time zone names and the time zone offset is loaded from the system-wide time zone - // database by the API server during CronJob validation and the controller manager during execution. - // If no system-wide time zone database can be found a bundled version of the database is used instead. - // If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host - // configuration, the controller will stop creating new new Jobs and will create a system event with the - // reason UnknownTimeZone. - // More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones - // +optional - timeZone?: null | string @go(TimeZone,*string) @protobuf(8,bytes,opt) - - // Optional deadline in seconds for starting the job if it misses scheduled - // time for any reason. Missed jobs executions will be counted as failed ones. - // +optional - startingDeadlineSeconds?: null | int64 @go(StartingDeadlineSeconds,*int64) @protobuf(2,varint,opt) - - // Specifies how to treat concurrent executions of a Job. - // Valid values are: - // - // - "Allow" (default): allows CronJobs to run concurrently; - // - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - // - "Replace": cancels currently running job and replaces it with a new one - // +optional - concurrencyPolicy?: #ConcurrencyPolicy @go(ConcurrencyPolicy) @protobuf(3,bytes,opt,casttype=ConcurrencyPolicy) - - // This flag tells the controller to suspend subsequent executions, it does - // not apply to already started executions. Defaults to false. - // +optional - suspend?: null | bool @go(Suspend,*bool) @protobuf(4,varint,opt) - - // Specifies the job that will be created when executing a CronJob. - jobTemplate: #JobTemplateSpec @go(JobTemplate) @protobuf(5,bytes,opt) - - // The number of successful finished jobs to retain. Value must be non-negative integer. - // Defaults to 3. - // +optional - successfulJobsHistoryLimit?: null | int32 @go(SuccessfulJobsHistoryLimit,*int32) @protobuf(6,varint,opt) - - // The number of failed finished jobs to retain. Value must be non-negative integer. - // Defaults to 1. - // +optional - failedJobsHistoryLimit?: null | int32 @go(FailedJobsHistoryLimit,*int32) @protobuf(7,varint,opt) -} - -// ConcurrencyPolicy describes how the job will be handled. -// Only one of the following concurrent policies may be specified. -// If none of the following policies is specified, the default one -// is AllowConcurrent. -// +enum -#ConcurrencyPolicy: string // #enumConcurrencyPolicy - -#enumConcurrencyPolicy: - #AllowConcurrent | - #ForbidConcurrent | - #ReplaceConcurrent - -// AllowConcurrent allows CronJobs to run concurrently. -#AllowConcurrent: #ConcurrencyPolicy & "Allow" - -// ForbidConcurrent forbids concurrent runs, skipping next run if previous -// hasn't finished yet. -#ForbidConcurrent: #ConcurrencyPolicy & "Forbid" - -// ReplaceConcurrent cancels currently running job and replaces it with a new one. -#ReplaceConcurrent: #ConcurrencyPolicy & "Replace" - -// CronJobStatus represents the current state of a cron job. -#CronJobStatus: { - // A list of pointers to currently running jobs. - // +optional - // +listType=atomic - active?: [...corev1.#ObjectReference] @go(Active,[]corev1.ObjectReference) @protobuf(1,bytes,rep) - - // Information when was the last time the job was successfully scheduled. - // +optional - lastScheduleTime?: null | metav1.#Time @go(LastScheduleTime,*metav1.Time) @protobuf(4,bytes,opt) - - // Information when was the last time the job successfully completed. - // +optional - lastSuccessfulTime?: null | metav1.#Time @go(LastSuccessfulTime,*metav1.Time) @protobuf(5,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/api/batch/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/batch/v1beta1/register_go_gen.cue deleted file mode 100644 index 94664e6..0000000 --- a/cue.mod/gen/k8s.io/api/batch/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/batch/v1beta1 - -package v1beta1 - -#GroupName: "batch" diff --git a/cue.mod/gen/k8s.io/api/batch/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/batch/v1beta1/types_go_gen.cue deleted file mode 100644 index 8e97d36..0000000 --- a/cue.mod/gen/k8s.io/api/batch/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,146 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/batch/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - batchv1 "k8s.io/api/batch/v1" - "k8s.io/api/core/v1" -) - -// JobTemplateSpec describes the data a Job should have when created from a template -#JobTemplateSpec: { - // Standard object's metadata of the jobs created from this template. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: batchv1.#JobSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// CronJob represents the configuration of a single cron job. -#CronJob: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of a cron job, including the schedule. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #CronJobSpec @go(Spec) @protobuf(2,bytes,opt) - - // Current status of a cron job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #CronJobStatus @go(Status) @protobuf(3,bytes,opt) -} - -// CronJobList is a collection of cron jobs. -#CronJobList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of CronJobs. - items: [...#CronJob] @go(Items,[]CronJob) @protobuf(2,bytes,rep) -} - -// CronJobSpec describes how the job execution will look like and when it will actually run. -#CronJobSpec: { - // The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - schedule: string @go(Schedule) @protobuf(1,bytes,opt) - - // The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. - // If not specified, this will default to the time zone of the kube-controller-manager process. - // The set of valid time zone names and the time zone offset is loaded from the system-wide time zone - // database by the API server during CronJob validation and the controller manager during execution. - // If no system-wide time zone database can be found a bundled version of the database is used instead. - // If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host - // configuration, the controller will stop creating new new Jobs and will create a system event with the - // reason UnknownTimeZone. - // More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones - // +optional - timeZone?: null | string @go(TimeZone,*string) @protobuf(8,bytes,opt) - - // Optional deadline in seconds for starting the job if it misses scheduled - // time for any reason. Missed jobs executions will be counted as failed ones. - // +optional - startingDeadlineSeconds?: null | int64 @go(StartingDeadlineSeconds,*int64) @protobuf(2,varint,opt) - - // Specifies how to treat concurrent executions of a Job. - // Valid values are: - // - // - "Allow" (default): allows CronJobs to run concurrently; - // - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - // - "Replace": cancels currently running job and replaces it with a new one - // +optional - concurrencyPolicy?: #ConcurrencyPolicy @go(ConcurrencyPolicy) @protobuf(3,bytes,opt,casttype=ConcurrencyPolicy) - - // This flag tells the controller to suspend subsequent executions, it does - // not apply to already started executions. Defaults to false. - // +optional - suspend?: null | bool @go(Suspend,*bool) @protobuf(4,varint,opt) - - // Specifies the job that will be created when executing a CronJob. - jobTemplate: #JobTemplateSpec @go(JobTemplate) @protobuf(5,bytes,opt) - - // The number of successful finished jobs to retain. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 3. - // +optional - successfulJobsHistoryLimit?: null | int32 @go(SuccessfulJobsHistoryLimit,*int32) @protobuf(6,varint,opt) - - // The number of failed finished jobs to retain. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 1. - // +optional - failedJobsHistoryLimit?: null | int32 @go(FailedJobsHistoryLimit,*int32) @protobuf(7,varint,opt) -} - -// ConcurrencyPolicy describes how the job will be handled. -// Only one of the following concurrent policies may be specified. -// If none of the following policies is specified, the default one -// is AllowConcurrent. -#ConcurrencyPolicy: string // #enumConcurrencyPolicy - -#enumConcurrencyPolicy: - #AllowConcurrent | - #ForbidConcurrent | - #ReplaceConcurrent - -// AllowConcurrent allows CronJobs to run concurrently. -#AllowConcurrent: #ConcurrencyPolicy & "Allow" - -// ForbidConcurrent forbids concurrent runs, skipping next run if previous -// hasn't finished yet. -#ForbidConcurrent: #ConcurrencyPolicy & "Forbid" - -// ReplaceConcurrent cancels currently running job and replaces it with a new one. -#ReplaceConcurrent: #ConcurrencyPolicy & "Replace" - -// CronJobStatus represents the current state of a cron job. -#CronJobStatus: { - // A list of pointers to currently running jobs. - // +optional - // +listType=atomic - active?: [...v1.#ObjectReference] @go(Active,[]v1.ObjectReference) @protobuf(1,bytes,rep) - - // Information when was the last time the job was successfully scheduled. - // +optional - lastScheduleTime?: null | metav1.#Time @go(LastScheduleTime,*metav1.Time) @protobuf(4,bytes,opt) - - // Information when was the last time the job successfully completed. - // +optional - lastSuccessfulTime?: null | metav1.#Time @go(LastSuccessfulTime,*metav1.Time) @protobuf(5,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/api/certificates/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/certificates/v1/register_go_gen.cue deleted file mode 100644 index f2ce343..0000000 --- a/cue.mod/gen/k8s.io/api/certificates/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/certificates/v1 - -package v1 - -#GroupName: "certificates.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/certificates/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/certificates/v1/types_go_gen.cue deleted file mode 100644 index 401ca5c..0000000 --- a/cue.mod/gen/k8s.io/api/certificates/v1/types_go_gen.cue +++ /dev/null @@ -1,318 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/certificates/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" -) - -// CertificateSigningRequest objects provide a mechanism to obtain x509 certificates -// by submitting a certificate signing request, and having it asynchronously approved and issued. -// -// Kubelets use this API to obtain: -// 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). -// 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). -// -// This API can be used to request client certificates to authenticate to kube-apiserver -// (with the "kubernetes.io/kube-apiserver-client" signerName), -// or to obtain certificates from custom non-Kubernetes signers. -#CertificateSigningRequest: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec contains the certificate request, and is immutable after creation. - // Only the request, signerName, expirationSeconds, and usages fields can be set on creation. - // Other fields are derived by Kubernetes and cannot be modified by users. - spec: #CertificateSigningRequestSpec @go(Spec) @protobuf(2,bytes,opt) - - // status contains information about whether the request is approved or denied, - // and the certificate issued by the signer, or the failure condition indicating signer failure. - // +optional - status?: #CertificateSigningRequestStatus @go(Status) @protobuf(3,bytes,opt) -} - -// CertificateSigningRequestSpec contains the certificate request. -#CertificateSigningRequestSpec: { - // request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block. - // When serialized as JSON or YAML, the data is additionally base64-encoded. - // +listType=atomic - request: bytes @go(Request,[]byte) @protobuf(1,bytes,opt) - - // signerName indicates the requested signer, and is a qualified name. - // - // List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector. - // - // Well-known Kubernetes signers are: - // 1. "kubernetes.io/kube-apiserver-client": issues client certificates that can be used to authenticate to kube-apiserver. - // Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the "csrsigning" controller in kube-controller-manager. - // 2. "kubernetes.io/kube-apiserver-client-kubelet": issues client certificates that kubelets use to authenticate to kube-apiserver. - // Requests for this signer can be auto-approved by the "csrapproving" controller in kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. - // 3. "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. - // Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. - // - // More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers - // - // Custom signerNames can also be specified. The signer defines: - // 1. Trust distribution: how trust (CA bundles) are distributed. - // 2. Permitted subjects: and behavior when a disallowed subject is requested. - // 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. - // 4. Required, permitted, or forbidden key usages / extended key usages. - // 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. - // 6. Whether or not requests for CA certificates are allowed. - signerName: string @go(SignerName) @protobuf(7,bytes,opt) - - // expirationSeconds is the requested duration of validity of the issued - // certificate. The certificate signer may issue a certificate with a different - // validity duration so a client must check the delta between the notBefore and - // and notAfter fields in the issued certificate to determine the actual duration. - // - // The v1.22+ in-tree implementations of the well-known Kubernetes signers will - // honor this field as long as the requested duration is not greater than the - // maximum duration they will honor per the --cluster-signing-duration CLI - // flag to the Kubernetes controller manager. - // - // Certificate signers may not honor this field for various reasons: - // - // 1. Old signer that is unaware of the field (such as the in-tree - // implementations prior to v1.22) - // 2. Signer whose configured maximum is shorter than the requested duration - // 3. Signer whose configured minimum is longer than the requested duration - // - // The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. - // - // +optional - expirationSeconds?: null | int32 @go(ExpirationSeconds,*int32) @protobuf(8,varint,opt) - - // usages specifies a set of key usages requested in the issued certificate. - // - // Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth". - // - // Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth". - // - // Valid values are: - // "signing", "digital signature", "content commitment", - // "key encipherment", "key agreement", "data encipherment", - // "cert sign", "crl sign", "encipher only", "decipher only", "any", - // "server auth", "client auth", - // "code signing", "email protection", "s/mime", - // "ipsec end system", "ipsec tunnel", "ipsec user", - // "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" - // +listType=atomic - usages?: [...#KeyUsage] @go(Usages,[]KeyUsage) @protobuf(5,bytes,opt) - - // username contains the name of the user that created the CertificateSigningRequest. - // Populated by the API server on creation and immutable. - // +optional - username?: string @go(Username) @protobuf(2,bytes,opt) - - // uid contains the uid of the user that created the CertificateSigningRequest. - // Populated by the API server on creation and immutable. - // +optional - uid?: string @go(UID) @protobuf(3,bytes,opt) - - // groups contains group membership of the user that created the CertificateSigningRequest. - // Populated by the API server on creation and immutable. - // +listType=atomic - // +optional - groups?: [...string] @go(Groups,[]string) @protobuf(4,bytes,rep) - - // extra contains extra attributes of the user that created the CertificateSigningRequest. - // Populated by the API server on creation and immutable. - // +optional - extra?: {[string]: #ExtraValue} @go(Extra,map[string]ExtraValue) @protobuf(6,bytes,rep) -} - -// "kubernetes.io/kube-apiserver-client" signer issues client certificates that can be used to authenticate to kube-apiserver. -// Never auto-approved by kube-controller-manager. -// Can be issued by the "csrsigning" controller in kube-controller-manager. -#KubeAPIServerClientSignerName: "kubernetes.io/kube-apiserver-client" - -// "kubernetes.io/kube-apiserver-client-kubelet" issues client certificates that kubelets use to authenticate to kube-apiserver. -// Can be auto-approved by the "csrapproving" controller in kube-controller-manager. -// Can be issued by the "csrsigning" controller in kube-controller-manager. -#KubeAPIServerClientKubeletSignerName: "kubernetes.io/kube-apiserver-client-kubelet" - -// "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, -// which kube-apiserver can connect to securely. -// Never auto-approved by kube-controller-manager. -// Can be issued by the "csrsigning" controller in kube-controller-manager. -#KubeletServingSignerName: "kubernetes.io/kubelet-serving" - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -#ExtraValue: [...string] - -// CertificateSigningRequestStatus contains conditions used to indicate -// approved/denied/failed status of the request, and the issued certificate. -#CertificateSigningRequestStatus: { - // conditions applied to the request. Known conditions are "Approved", "Denied", and "Failed". - // +listType=map - // +listMapKey=type - // +optional - conditions?: [...#CertificateSigningRequestCondition] @go(Conditions,[]CertificateSigningRequestCondition) @protobuf(1,bytes,rep) - - // certificate is populated with an issued certificate by the signer after an Approved condition is present. - // This field is set via the /status subresource. Once populated, this field is immutable. - // - // If the certificate signing request is denied, a condition of type "Denied" is added and this field remains empty. - // If the signer cannot issue the certificate, a condition of type "Failed" is added and this field remains empty. - // - // Validation requirements: - // 1. certificate must contain one or more PEM blocks. - // 2. All PEM blocks must have the "CERTIFICATE" label, contain no headers, and the encoded data - // must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. - // 3. Non-PEM content may appear before or after the "CERTIFICATE" PEM blocks and is unvalidated, - // to allow for explanatory text as described in section 5.2 of RFC7468. - // - // If more than one PEM block is present, and the definition of the requested spec.signerName - // does not indicate otherwise, the first block is the issued certificate, - // and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. - // - // The certificate is encoded in PEM format. - // - // When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: - // - // base64( - // -----BEGIN CERTIFICATE----- - // ... - // -----END CERTIFICATE----- - // ) - // - // +listType=atomic - // +optional - certificate?: bytes @go(Certificate,[]byte) @protobuf(2,bytes,opt) -} - -// RequestConditionType is the type of a CertificateSigningRequestCondition -#RequestConditionType: string // #enumRequestConditionType - -#enumRequestConditionType: - #CertificateApproved | - #CertificateDenied | - #CertificateFailed - -// Approved indicates the request was approved and should be issued by the signer. -#CertificateApproved: #RequestConditionType & "Approved" - -// Denied indicates the request was denied and should not be issued by the signer. -#CertificateDenied: #RequestConditionType & "Denied" - -// Failed indicates the signer failed to issue the certificate. -#CertificateFailed: #RequestConditionType & "Failed" - -// CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object -#CertificateSigningRequestCondition: { - // type of the condition. Known conditions are "Approved", "Denied", and "Failed". - // - // An "Approved" condition is added via the /approval subresource, - // indicating the request was approved and should be issued by the signer. - // - // A "Denied" condition is added via the /approval subresource, - // indicating the request was denied and should not be issued by the signer. - // - // A "Failed" condition is added via the /status subresource, - // indicating the signer failed to issue the certificate. - // - // Approved and Denied conditions are mutually exclusive. - // Approved, Denied, and Failed conditions cannot be removed once added. - // - // Only one condition of a given type is allowed. - type: #RequestConditionType @go(Type) @protobuf(1,bytes,opt,casttype=RequestConditionType) - - // status of the condition, one of True, False, Unknown. - // Approved, Denied, and Failed conditions may not be "False" or "Unknown". - status: v1.#ConditionStatus @go(Status) @protobuf(6,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // reason indicates a brief reason for the request state - // +optional - reason?: string @go(Reason) @protobuf(2,bytes,opt) - - // message contains a human readable message with details about the request state - // +optional - message?: string @go(Message) @protobuf(3,bytes,opt) - - // lastUpdateTime is the time of the last update to this condition - // +optional - lastUpdateTime?: metav1.#Time @go(LastUpdateTime) @protobuf(4,bytes,opt) - - // lastTransitionTime is the time the condition last transitioned from one status to another. - // If unset, when a new condition type is added or an existing condition's status is changed, - // the server defaults this to the current time. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(5,bytes,opt) -} - -// CertificateSigningRequestList is a collection of CertificateSigningRequest objects -#CertificateSigningRequestList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is a collection of CertificateSigningRequest objects - items: [...#CertificateSigningRequest] @go(Items,[]CertificateSigningRequest) @protobuf(2,bytes,rep) -} - -// KeyUsage specifies valid usage contexts for keys. -// See: -// -// https://tools.ietf.org/html/rfc5280#section-4.2.1.3 -// https://tools.ietf.org/html/rfc5280#section-4.2.1.12 -// -// +enum -#KeyUsage: string // #enumKeyUsage - -#enumKeyUsage: - #UsageSigning | - #UsageDigitalSignature | - #UsageContentCommitment | - #UsageKeyEncipherment | - #UsageKeyAgreement | - #UsageDataEncipherment | - #UsageCertSign | - #UsageCRLSign | - #UsageEncipherOnly | - #UsageDecipherOnly | - #UsageAny | - #UsageServerAuth | - #UsageClientAuth | - #UsageCodeSigning | - #UsageEmailProtection | - #UsageSMIME | - #UsageIPsecEndSystem | - #UsageIPsecTunnel | - #UsageIPsecUser | - #UsageTimestamping | - #UsageOCSPSigning | - #UsageMicrosoftSGC | - #UsageNetscapeSGC - -#UsageSigning: #KeyUsage & "signing" -#UsageDigitalSignature: #KeyUsage & "digital signature" -#UsageContentCommitment: #KeyUsage & "content commitment" -#UsageKeyEncipherment: #KeyUsage & "key encipherment" -#UsageKeyAgreement: #KeyUsage & "key agreement" -#UsageDataEncipherment: #KeyUsage & "data encipherment" -#UsageCertSign: #KeyUsage & "cert sign" -#UsageCRLSign: #KeyUsage & "crl sign" -#UsageEncipherOnly: #KeyUsage & "encipher only" -#UsageDecipherOnly: #KeyUsage & "decipher only" -#UsageAny: #KeyUsage & "any" -#UsageServerAuth: #KeyUsage & "server auth" -#UsageClientAuth: #KeyUsage & "client auth" -#UsageCodeSigning: #KeyUsage & "code signing" -#UsageEmailProtection: #KeyUsage & "email protection" -#UsageSMIME: #KeyUsage & "s/mime" -#UsageIPsecEndSystem: #KeyUsage & "ipsec end system" -#UsageIPsecTunnel: #KeyUsage & "ipsec tunnel" -#UsageIPsecUser: #KeyUsage & "ipsec user" -#UsageTimestamping: #KeyUsage & "timestamping" -#UsageOCSPSigning: #KeyUsage & "ocsp signing" -#UsageMicrosoftSGC: #KeyUsage & "microsoft sgc" -#UsageNetscapeSGC: #KeyUsage & "netscape sgc" diff --git a/cue.mod/gen/k8s.io/api/certificates/v1alpha1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/certificates/v1alpha1/register_go_gen.cue deleted file mode 100644 index 6e46e10..0000000 --- a/cue.mod/gen/k8s.io/api/certificates/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/certificates/v1alpha1 - -package v1alpha1 - -#GroupName: "certificates.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/certificates/v1alpha1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/certificates/v1alpha1/types_go_gen.cue deleted file mode 100644 index d4fb76c..0000000 --- a/cue.mod/gen/k8s.io/api/certificates/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,84 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/certificates/v1alpha1 - -package v1alpha1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors -// (root certificates). -// -// ClusterTrustBundle objects are considered to be readable by any authenticated -// user in the cluster, because they can be mounted by pods using the -// `clusterTrustBundle` projection. All service accounts have read access to -// ClusterTrustBundles by default. Users who only have namespace-level access -// to a cluster can read ClusterTrustBundles by impersonating a serviceaccount -// that they have access to. -// -// It can be optionally associated with a particular assigner, in which case it -// contains one valid set of trust anchors for that signer. Signers may have -// multiple associated ClusterTrustBundles; each is an independent set of trust -// anchors for that signer. Admission control is used to enforce that only users -// with permissions on the signer can create or modify the corresponding bundle. -#ClusterTrustBundle: { - metav1.#TypeMeta - - // metadata contains the object metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec contains the signer (if any) and trust anchors. - spec: #ClusterTrustBundleSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// ClusterTrustBundleSpec contains the signer and trust anchors. -#ClusterTrustBundleSpec: { - // signerName indicates the associated signer, if any. - // - // In order to create or update a ClusterTrustBundle that sets signerName, - // you must have the following cluster-scoped permission: - // group=certificates.k8s.io resource=signers resourceName= - // verb=attest. - // - // If signerName is not empty, then the ClusterTrustBundle object must be - // named with the signer name as a prefix (translating slashes to colons). - // For example, for the signer name `example.com/foo`, valid - // ClusterTrustBundle object names include `example.com:foo:abc` and - // `example.com:foo:v1`. - // - // If signerName is empty, then the ClusterTrustBundle object's name must - // not have such a prefix. - // - // List/watch requests for ClusterTrustBundles can filter on this field - // using a `spec.signerName=NAME` field selector. - // - // +optional - signerName?: string @go(SignerName) @protobuf(1,bytes,opt) - - // trustBundle contains the individual X.509 trust anchors for this - // bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. - // - // The data must consist only of PEM certificate blocks that parse as valid - // X.509 certificates. Each certificate must include a basic constraints - // extension with the CA bit set. The API server will reject objects that - // contain duplicate certificates, or that use PEM block headers. - // - // Users of ClusterTrustBundles, including Kubelet, are free to reorder and - // deduplicate certificate blocks in this file according to their own logic, - // as well as to drop PEM block headers and inter-block data. - trustBundle: string @go(TrustBundle) @protobuf(2,bytes,opt) -} - -// ClusterTrustBundleList is a collection of ClusterTrustBundle objects -#ClusterTrustBundleList: { - metav1.#TypeMeta - - // metadata contains the list metadata. - // - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is a collection of ClusterTrustBundle objects - items: [...#ClusterTrustBundle] @go(Items,[]ClusterTrustBundle) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/certificates/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/certificates/v1beta1/register_go_gen.cue deleted file mode 100644 index 3185016..0000000 --- a/cue.mod/gen/k8s.io/api/certificates/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/certificates/v1beta1 - -package v1beta1 - -#GroupName: "certificates.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/certificates/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/certificates/v1beta1/types_go_gen.cue deleted file mode 100644 index e203ca3..0000000 --- a/cue.mod/gen/k8s.io/api/certificates/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,263 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/certificates/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" -) - -// Describes a certificate signing request -#CertificateSigningRequest: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec contains the certificate request, and is immutable after creation. - // Only the request, signerName, expirationSeconds, and usages fields can be set on creation. - // Other fields are derived by Kubernetes and cannot be modified by users. - spec: #CertificateSigningRequestSpec @go(Spec) @protobuf(2,bytes,opt) - - // Derived information about the request. - // +optional - status?: #CertificateSigningRequestStatus @go(Status) @protobuf(3,bytes,opt) -} - -// CertificateSigningRequestSpec contains the certificate request. -#CertificateSigningRequestSpec: { - // Base64-encoded PKCS#10 CSR data - // +listType=atomic - request: bytes @go(Request,[]byte) @protobuf(1,bytes,opt) - - // Requested signer for the request. It is a qualified name in the form: - // `scope-hostname.io/name`. - // If empty, it will be defaulted: - // 1. If it's a kubelet client certificate, it is assigned - // "kubernetes.io/kube-apiserver-client-kubelet". - // 2. If it's a kubelet serving certificate, it is assigned - // "kubernetes.io/kubelet-serving". - // 3. Otherwise, it is assigned "kubernetes.io/legacy-unknown". - // Distribution of trust for signers happens out of band. - // You can select on this field using `spec.signerName`. - // +optional - signerName?: null | string @go(SignerName,*string) @protobuf(7,bytes,opt) - - // expirationSeconds is the requested duration of validity of the issued - // certificate. The certificate signer may issue a certificate with a different - // validity duration so a client must check the delta between the notBefore and - // and notAfter fields in the issued certificate to determine the actual duration. - // - // The v1.22+ in-tree implementations of the well-known Kubernetes signers will - // honor this field as long as the requested duration is not greater than the - // maximum duration they will honor per the --cluster-signing-duration CLI - // flag to the Kubernetes controller manager. - // - // Certificate signers may not honor this field for various reasons: - // - // 1. Old signer that is unaware of the field (such as the in-tree - // implementations prior to v1.22) - // 2. Signer whose configured maximum is shorter than the requested duration - // 3. Signer whose configured minimum is longer than the requested duration - // - // The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. - // - // +optional - expirationSeconds?: null | int32 @go(ExpirationSeconds,*int32) @protobuf(8,varint,opt) - - // allowedUsages specifies a set of usage contexts the key will be - // valid for. - // See: - // https://tools.ietf.org/html/rfc5280#section-4.2.1.3 - // https://tools.ietf.org/html/rfc5280#section-4.2.1.12 - // - // Valid values are: - // "signing", - // "digital signature", - // "content commitment", - // "key encipherment", - // "key agreement", - // "data encipherment", - // "cert sign", - // "crl sign", - // "encipher only", - // "decipher only", - // "any", - // "server auth", - // "client auth", - // "code signing", - // "email protection", - // "s/mime", - // "ipsec end system", - // "ipsec tunnel", - // "ipsec user", - // "timestamping", - // "ocsp signing", - // "microsoft sgc", - // "netscape sgc" - // +listType=atomic - usages?: [...#KeyUsage] @go(Usages,[]KeyUsage) @protobuf(5,bytes,opt) - - // Information about the requesting user. - // See user.Info interface for details. - // +optional - username?: string @go(Username) @protobuf(2,bytes,opt) - - // UID information about the requesting user. - // See user.Info interface for details. - // +optional - uid?: string @go(UID) @protobuf(3,bytes,opt) - - // Group information about the requesting user. - // See user.Info interface for details. - // +listType=atomic - // +optional - groups?: [...string] @go(Groups,[]string) @protobuf(4,bytes,rep) - - // Extra information about the requesting user. - // See user.Info interface for details. - // +optional - extra?: {[string]: #ExtraValue} @go(Extra,map[string]ExtraValue) @protobuf(6,bytes,rep) -} - -// Signs certificates that will be honored as client-certs by the -// kube-apiserver. Never auto-approved by kube-controller-manager. -#KubeAPIServerClientSignerName: "kubernetes.io/kube-apiserver-client" - -// Signs client certificates that will be honored as client-certs by the -// kube-apiserver for a kubelet. -// May be auto-approved by kube-controller-manager. -#KubeAPIServerClientKubeletSignerName: "kubernetes.io/kube-apiserver-client-kubelet" - -// Signs serving certificates that are honored as a valid kubelet serving -// certificate by the kube-apiserver, but has no other guarantees. -#KubeletServingSignerName: "kubernetes.io/kubelet-serving" - -// Has no guarantees for trust at all. Some distributions may honor these -// as client certs, but that behavior is not standard kubernetes behavior. -#LegacyUnknownSignerName: "kubernetes.io/legacy-unknown" - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -#ExtraValue: [...string] - -#CertificateSigningRequestStatus: { - // Conditions applied to the request, such as approval or denial. - // +listType=map - // +listMapKey=type - // +optional - conditions?: [...#CertificateSigningRequestCondition] @go(Conditions,[]CertificateSigningRequestCondition) @protobuf(1,bytes,rep) - - // If request was approved, the controller will place the issued certificate here. - // +listType=atomic - // +optional - certificate?: bytes @go(Certificate,[]byte) @protobuf(2,bytes,opt) -} - -#RequestConditionType: string // #enumRequestConditionType - -#enumRequestConditionType: - #CertificateApproved | - #CertificateDenied | - #CertificateFailed - -#CertificateApproved: #RequestConditionType & "Approved" -#CertificateDenied: #RequestConditionType & "Denied" -#CertificateFailed: #RequestConditionType & "Failed" - -#CertificateSigningRequestCondition: { - // type of the condition. Known conditions include "Approved", "Denied", and "Failed". - type: #RequestConditionType @go(Type) @protobuf(1,bytes,opt,casttype=RequestConditionType) - - // Status of the condition, one of True, False, Unknown. - // Approved, Denied, and Failed conditions may not be "False" or "Unknown". - // Defaults to "True". - // If unset, should be treated as "True". - // +optional - status: v1.#ConditionStatus @go(Status) @protobuf(6,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // brief reason for the request state - // +optional - reason?: string @go(Reason) @protobuf(2,bytes,opt) - - // human readable message with details about the request state - // +optional - message?: string @go(Message) @protobuf(3,bytes,opt) - - // timestamp for the last update to this condition - // +optional - lastUpdateTime?: metav1.#Time @go(LastUpdateTime) @protobuf(4,bytes,opt) - - // lastTransitionTime is the time the condition last transitioned from one status to another. - // If unset, when a new condition type is added or an existing condition's status is changed, - // the server defaults this to the current time. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(5,bytes,opt) -} - -#CertificateSigningRequestList: { - metav1.#TypeMeta - - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - items: [...#CertificateSigningRequest] @go(Items,[]CertificateSigningRequest) @protobuf(2,bytes,rep) -} - -// KeyUsages specifies valid usage contexts for keys. -// See: -// -// https://tools.ietf.org/html/rfc5280#section-4.2.1.3 -// https://tools.ietf.org/html/rfc5280#section-4.2.1.12 -#KeyUsage: string // #enumKeyUsage - -#enumKeyUsage: - #UsageSigning | - #UsageDigitalSignature | - #UsageContentCommitment | - #UsageKeyEncipherment | - #UsageKeyAgreement | - #UsageDataEncipherment | - #UsageCertSign | - #UsageCRLSign | - #UsageEncipherOnly | - #UsageDecipherOnly | - #UsageAny | - #UsageServerAuth | - #UsageClientAuth | - #UsageCodeSigning | - #UsageEmailProtection | - #UsageSMIME | - #UsageIPsecEndSystem | - #UsageIPsecTunnel | - #UsageIPsecUser | - #UsageTimestamping | - #UsageOCSPSigning | - #UsageMicrosoftSGC | - #UsageNetscapeSGC - -#UsageSigning: #KeyUsage & "signing" -#UsageDigitalSignature: #KeyUsage & "digital signature" -#UsageContentCommitment: #KeyUsage & "content commitment" -#UsageKeyEncipherment: #KeyUsage & "key encipherment" -#UsageKeyAgreement: #KeyUsage & "key agreement" -#UsageDataEncipherment: #KeyUsage & "data encipherment" -#UsageCertSign: #KeyUsage & "cert sign" -#UsageCRLSign: #KeyUsage & "crl sign" -#UsageEncipherOnly: #KeyUsage & "encipher only" -#UsageDecipherOnly: #KeyUsage & "decipher only" -#UsageAny: #KeyUsage & "any" -#UsageServerAuth: #KeyUsage & "server auth" -#UsageClientAuth: #KeyUsage & "client auth" -#UsageCodeSigning: #KeyUsage & "code signing" -#UsageEmailProtection: #KeyUsage & "email protection" -#UsageSMIME: #KeyUsage & "s/mime" -#UsageIPsecEndSystem: #KeyUsage & "ipsec end system" -#UsageIPsecTunnel: #KeyUsage & "ipsec tunnel" -#UsageIPsecUser: #KeyUsage & "ipsec user" -#UsageTimestamping: #KeyUsage & "timestamping" -#UsageOCSPSigning: #KeyUsage & "ocsp signing" -#UsageMicrosoftSGC: #KeyUsage & "microsoft sgc" -#UsageNetscapeSGC: #KeyUsage & "netscape sgc" diff --git a/cue.mod/gen/k8s.io/api/coordination/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/coordination/v1/register_go_gen.cue deleted file mode 100644 index d0a257d..0000000 --- a/cue.mod/gen/k8s.io/api/coordination/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/coordination/v1 - -package v1 - -#GroupName: "coordination.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/coordination/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/coordination/v1/types_go_gen.cue deleted file mode 100644 index de2c741..0000000 --- a/cue.mod/gen/k8s.io/api/coordination/v1/types_go_gen.cue +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/coordination/v1 - -package v1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// Lease defines a lease concept. -#Lease: { - metav1.#TypeMeta - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec contains the specification of the Lease. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #LeaseSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// LeaseSpec is a specification of a Lease. -#LeaseSpec: { - // holderIdentity contains the identity of the holder of a current lease. - // +optional - holderIdentity?: null | string @go(HolderIdentity,*string) @protobuf(1,bytes,opt) - - // leaseDurationSeconds is a duration that candidates for a lease need - // to wait to force acquire it. This is measure against time of last - // observed renewTime. - // +optional - leaseDurationSeconds?: null | int32 @go(LeaseDurationSeconds,*int32) @protobuf(2,varint,opt) - - // acquireTime is a time when the current lease was acquired. - // +optional - acquireTime?: null | metav1.#MicroTime @go(AcquireTime,*metav1.MicroTime) @protobuf(3,bytes,opt) - - // renewTime is a time when the current holder of a lease has last - // updated the lease. - // +optional - renewTime?: null | metav1.#MicroTime @go(RenewTime,*metav1.MicroTime) @protobuf(4,bytes,opt) - - // leaseTransitions is the number of transitions of a lease between - // holders. - // +optional - leaseTransitions?: null | int32 @go(LeaseTransitions,*int32) @protobuf(5,varint,opt) -} - -// LeaseList is a list of Lease objects. -#LeaseList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is a list of schema objects. - items: [...#Lease] @go(Items,[]Lease) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/coordination/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/coordination/v1beta1/register_go_gen.cue deleted file mode 100644 index 4ee8570..0000000 --- a/cue.mod/gen/k8s.io/api/coordination/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/coordination/v1beta1 - -package v1beta1 - -#GroupName: "coordination.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/coordination/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/coordination/v1beta1/types_go_gen.cue deleted file mode 100644 index ed36228..0000000 --- a/cue.mod/gen/k8s.io/api/coordination/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/coordination/v1beta1 - -package v1beta1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// Lease defines a lease concept. -#Lease: { - metav1.#TypeMeta - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec contains the specification of the Lease. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #LeaseSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// LeaseSpec is a specification of a Lease. -#LeaseSpec: { - // holderIdentity contains the identity of the holder of a current lease. - // +optional - holderIdentity?: null | string @go(HolderIdentity,*string) @protobuf(1,bytes,opt) - - // leaseDurationSeconds is a duration that candidates for a lease need - // to wait to force acquire it. This is measure against time of last - // observed renewTime. - // +optional - leaseDurationSeconds?: null | int32 @go(LeaseDurationSeconds,*int32) @protobuf(2,varint,opt) - - // acquireTime is a time when the current lease was acquired. - // +optional - acquireTime?: null | metav1.#MicroTime @go(AcquireTime,*metav1.MicroTime) @protobuf(3,bytes,opt) - - // renewTime is a time when the current holder of a lease has last - // updated the lease. - // +optional - renewTime?: null | metav1.#MicroTime @go(RenewTime,*metav1.MicroTime) @protobuf(4,bytes,opt) - - // leaseTransitions is the number of transitions of a lease between - // holders. - // +optional - leaseTransitions?: null | int32 @go(LeaseTransitions,*int32) @protobuf(5,varint,opt) -} - -// LeaseList is a list of Lease objects. -#LeaseList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is a list of schema objects. - items: [...#Lease] @go(Items,[]Lease) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/core/v1/annotation_key_constants_go_gen.cue b/cue.mod/gen/k8s.io/api/core/v1/annotation_key_constants_go_gen.cue deleted file mode 100644 index 783809f..0000000 --- a/cue.mod/gen/k8s.io/api/core/v1/annotation_key_constants_go_gen.cue +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/core/v1 - -package v1 - -// ImagePolicyFailedOpenKey is added to pods created by failing open when the image policy -// webhook backend fails. -#ImagePolicyFailedOpenKey: "alpha.image-policy.k8s.io/failed-open" - -// MirrorAnnotationKey represents the annotation key set by kubelets when creating mirror pods -#MirrorPodAnnotationKey: "kubernetes.io/config.mirror" - -// TolerationsAnnotationKey represents the key of tolerations data (json serialized) -// in the Annotations of a Pod. -#TolerationsAnnotationKey: "scheduler.alpha.kubernetes.io/tolerations" - -// TaintsAnnotationKey represents the key of taints data (json serialized) -// in the Annotations of a Node. -#TaintsAnnotationKey: "scheduler.alpha.kubernetes.io/taints" - -// SeccompPodAnnotationKey represents the key of a seccomp profile applied -// to all containers of a pod. -// Deprecated: set a pod security context `seccompProfile` field. -#SeccompPodAnnotationKey: "seccomp.security.alpha.kubernetes.io/pod" - -// SeccompContainerAnnotationKeyPrefix represents the key of a seccomp profile applied -// to one container of a pod. -// Deprecated: set a container security context `seccompProfile` field. -#SeccompContainerAnnotationKeyPrefix: "container.seccomp.security.alpha.kubernetes.io/" - -// SeccompProfileRuntimeDefault represents the default seccomp profile used by container runtime. -// Deprecated: set a pod or container security context `seccompProfile` of type "RuntimeDefault" instead. -#SeccompProfileRuntimeDefault: "runtime/default" - -// SeccompProfileNameUnconfined is the unconfined seccomp profile. -#SeccompProfileNameUnconfined: "unconfined" - -// SeccompLocalhostProfileNamePrefix is the prefix for specifying profiles loaded from the node's disk. -#SeccompLocalhostProfileNamePrefix: "localhost/" - -// AppArmorBetaContainerAnnotationKeyPrefix is the prefix to an annotation key specifying a container's apparmor profile. -#AppArmorBetaContainerAnnotationKeyPrefix: "container.apparmor.security.beta.kubernetes.io/" - -// AppArmorBetaDefaultProfileAnnotatoinKey is the annotation key specifying the default AppArmor profile. -#AppArmorBetaDefaultProfileAnnotationKey: "apparmor.security.beta.kubernetes.io/defaultProfileName" - -// AppArmorBetaAllowedProfileAnnotationKey is the annotation key specifying the allowed AppArmor profiles. -#AppArmorBetaAllowedProfilesAnnotationKey: "apparmor.security.beta.kubernetes.io/allowedProfileNames" - -// AppArmorBetaProfileRuntimeDefault is the profile specifying the runtime default. -#AppArmorBetaProfileRuntimeDefault: "runtime/default" - -// AppArmorBetaProfileNamePrefix is the prefix for specifying profiles loaded on the node. -#AppArmorBetaProfileNamePrefix: "localhost/" - -// AppArmorBetaProfileNameUnconfined is the Unconfined AppArmor profile -#AppArmorBetaProfileNameUnconfined: "unconfined" - -// DeprecatedSeccompProfileDockerDefault represents the default seccomp profile used by docker. -// Deprecated: set a pod or container security context `seccompProfile` of type "RuntimeDefault" instead. -#DeprecatedSeccompProfileDockerDefault: "docker/default" - -// PreferAvoidPodsAnnotationKey represents the key of preferAvoidPods data (json serialized) -// in the Annotations of a Node. -#PreferAvoidPodsAnnotationKey: "scheduler.alpha.kubernetes.io/preferAvoidPods" - -// ObjectTTLAnnotations represents a suggestion for kubelet for how long it can cache -// an object (e.g. secret, config map) before fetching it again from apiserver. -// This annotation can be attached to node. -#ObjectTTLAnnotationKey: "node.alpha.kubernetes.io/ttl" - -// annotation key prefix used to identify non-convertible json paths. -#NonConvertibleAnnotationPrefix: "non-convertible.kubernetes.io" -_#kubectlPrefix: "kubectl.kubernetes.io/" - -// LastAppliedConfigAnnotation is the annotation used to store the previous -// configuration of a resource for use in a three way diff by UpdateApplyAnnotation. -#LastAppliedConfigAnnotation: "kubectl.kubernetes.io/last-applied-configuration" - -// AnnotationLoadBalancerSourceRangesKey is the key of the annotation on a service to set allowed ingress ranges on their LoadBalancers -// -// It should be a comma-separated list of CIDRs, e.g. `0.0.0.0/0` to -// allow full access (the default) or `18.0.0.0/8,56.0.0.0/8` to allow -// access only from the CIDRs currently allocated to MIT & the USPS. -// -// Not all cloud providers support this annotation, though AWS & GCE do. -#AnnotationLoadBalancerSourceRangesKey: "service.beta.kubernetes.io/load-balancer-source-ranges" - -// EndpointsLastChangeTriggerTime is the annotation key, set for endpoints objects, that -// represents the timestamp (stored as RFC 3339 date-time string, e.g. '2018-10-22T19:32:52.1Z') -// of the last change, of some Pod or Service object, that triggered the endpoints object change. -// In other words, if a Pod / Service changed at time T0, that change was observed by endpoints -// controller at T1, and the Endpoints object was changed at T2, the -// EndpointsLastChangeTriggerTime would be set to T0. -// -// The "endpoints change trigger" here means any Pod or Service change that resulted in the -// Endpoints object change. -// -// Given the definition of the "endpoints change trigger", please note that this annotation will -// be set ONLY for endpoints object changes triggered by either Pod or Service change. If the -// Endpoints object changes due to other reasons, this annotation won't be set (or updated if it's -// already set). -// -// This annotation will be used to compute the in-cluster network programming latency SLI, see -// https://github.com/kubernetes/community/blob/master/sig-scalability/slos/network_programming_latency.md -#EndpointsLastChangeTriggerTime: "endpoints.kubernetes.io/last-change-trigger-time" - -// EndpointsOverCapacity will be set on an Endpoints resource when it -// exceeds the maximum capacity of 1000 addresses. Initially the Endpoints -// controller will set this annotation with a value of "warning". In a -// future release, the controller may set this annotation with a value of -// "truncated" to indicate that any addresses exceeding the limit of 1000 -// have been truncated from the Endpoints resource. -#EndpointsOverCapacity: "endpoints.kubernetes.io/over-capacity" - -// MigratedPluginsAnnotationKey is the annotation key, set for CSINode objects, that is a comma-separated -// list of in-tree plugins that will be serviced by the CSI backend on the Node represented by CSINode. -// This annotation is used by the Attach Detach Controller to determine whether to use the in-tree or -// CSI Backend for a volume plugin on a specific node. -#MigratedPluginsAnnotationKey: "storage.alpha.kubernetes.io/migrated-plugins" - -// PodDeletionCost can be used to set to an int32 that represent the cost of deleting -// a pod compared to other pods belonging to the same ReplicaSet. Pods with lower -// deletion cost are preferred to be deleted before pods with higher deletion cost. -// Note that this is honored on a best-effort basis, and so it does not offer guarantees on -// pod deletion order. -// The implicit deletion cost for pods that don't set the annotation is 0, negative values are permitted. -// -// This annotation is beta-level and is only honored when PodDeletionCost feature is enabled. -#PodDeletionCost: "controller.kubernetes.io/pod-deletion-cost" - -// AnnotationTopologyAwareHints can be used to enable or disable Topology -// Aware Hints for a Service. This may be set to "Auto" or "Disabled". Any -// other value is treated as "Disabled". -#AnnotationTopologyAwareHints: "service.kubernetes.io/topology-aware-hints" diff --git a/cue.mod/gen/k8s.io/api/core/v1/doc_go_gen.cue b/cue.mod/gen/k8s.io/api/core/v1/doc_go_gen.cue deleted file mode 100644 index 2bf1afc..0000000 --- a/cue.mod/gen/k8s.io/api/core/v1/doc_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/core/v1 - -// Package v1 is the v1 version of the core API. -package v1 diff --git a/cue.mod/gen/k8s.io/api/core/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/core/v1/register_go_gen.cue deleted file mode 100644 index 29c24ab..0000000 --- a/cue.mod/gen/k8s.io/api/core/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/core/v1 - -package v1 - -#GroupName: "" diff --git a/cue.mod/gen/k8s.io/api/core/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/core/v1/types_go_gen.cue deleted file mode 100644 index 5ed46d6..0000000 --- a/cue.mod/gen/k8s.io/api/core/v1/types_go_gen.cue +++ /dev/null @@ -1,7068 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/core/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/api/resource" - "k8s.io/apimachinery/pkg/util/intstr" - "k8s.io/apimachinery/pkg/types" -) - -// NamespaceDefault means the object is in the default namespace which is applied when not specified by clients -#NamespaceDefault: "default" - -// NamespaceAll is the default argument to specify on a context when you want to list or filter resources across all namespaces -#NamespaceAll: "" - -// NamespaceNodeLease is the namespace where we place node lease objects (used for node heartbeats) -#NamespaceNodeLease: "kube-node-lease" - -// Volume represents a named volume in a pod that may be accessed by any container in the pod. -#Volume: { - // Volume's name. - // Must be a DNS_LABEL and unique within the pod. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - name: string @go(Name) @protobuf(1,bytes,opt) - - #VolumeSource -} - -// Represents the source of a volume to mount. -// Only one of its members may be specified. -#VolumeSource: { - // HostPath represents a pre-existing file or directory on the host - // machine that is directly exposed to the container. This is generally - // used for system agents or other privileged things that are allowed - // to see the host machine. Most containers will NOT need this. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - // --- - // TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not - // mount host directories as read/write. - // +optional - hostPath?: null | #HostPathVolumeSource @go(HostPath,*HostPathVolumeSource) @protobuf(1,bytes,opt) - - // EmptyDir represents a temporary directory that shares a pod's lifetime. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - // +optional - emptyDir?: null | #EmptyDirVolumeSource @go(EmptyDir,*EmptyDirVolumeSource) @protobuf(2,bytes,opt) - - // GCEPersistentDisk represents a GCE Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // +optional - gcePersistentDisk?: null | #GCEPersistentDiskVolumeSource @go(GCEPersistentDisk,*GCEPersistentDiskVolumeSource) @protobuf(3,bytes,opt) - - // AWSElasticBlockStore represents an AWS Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - // +optional - awsElasticBlockStore?: null | #AWSElasticBlockStoreVolumeSource @go(AWSElasticBlockStore,*AWSElasticBlockStoreVolumeSource) @protobuf(4,bytes,opt) - - // GitRepo represents a git repository at a particular revision. - // DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an - // EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir - // into the Pod's container. - // +optional - gitRepo?: null | #GitRepoVolumeSource @go(GitRepo,*GitRepoVolumeSource) @protobuf(5,bytes,opt) - - // Secret represents a secret that should populate this volume. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - // +optional - secret?: null | #SecretVolumeSource @go(Secret,*SecretVolumeSource) @protobuf(6,bytes,opt) - - // NFS represents an NFS mount on the host that shares a pod's lifetime - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - // +optional - nfs?: null | #NFSVolumeSource @go(NFS,*NFSVolumeSource) @protobuf(7,bytes,opt) - - // ISCSI represents an ISCSI Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. - // More info: https://examples.k8s.io/volumes/iscsi/README.md - // +optional - iscsi?: null | #ISCSIVolumeSource @go(ISCSI,*ISCSIVolumeSource) @protobuf(8,bytes,opt) - - // Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md - // +optional - glusterfs?: null | #GlusterfsVolumeSource @go(Glusterfs,*GlusterfsVolumeSource) @protobuf(9,bytes,opt) - - // PersistentVolumeClaimVolumeSource represents a reference to a - // PersistentVolumeClaim in the same namespace. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - // +optional - persistentVolumeClaim?: null | #PersistentVolumeClaimVolumeSource @go(PersistentVolumeClaim,*PersistentVolumeClaimVolumeSource) @protobuf(10,bytes,opt) - - // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. - // More info: https://examples.k8s.io/volumes/rbd/README.md - // +optional - rbd?: null | #RBDVolumeSource @go(RBD,*RBDVolumeSource) @protobuf(11,bytes,opt) - - // FlexVolume represents a generic volume resource that is - // provisioned/attached using an exec based plugin. - // +optional - flexVolume?: null | #FlexVolumeSource @go(FlexVolume,*FlexVolumeSource) @protobuf(12,bytes,opt) - - // Cinder represents a cinder volume attached and mounted on kubelets host machine. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - cinder?: null | #CinderVolumeSource @go(Cinder,*CinderVolumeSource) @protobuf(13,bytes,opt) - - // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - // +optional - cephfs?: null | #CephFSVolumeSource @go(CephFS,*CephFSVolumeSource) @protobuf(14,bytes,opt) - - // Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - // +optional - flocker?: null | #FlockerVolumeSource @go(Flocker,*FlockerVolumeSource) @protobuf(15,bytes,opt) - - // DownwardAPI represents downward API about the pod that should populate this volume - // +optional - downwardAPI?: null | #DownwardAPIVolumeSource @go(DownwardAPI,*DownwardAPIVolumeSource) @protobuf(16,bytes,opt) - - // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - // +optional - fc?: null | #FCVolumeSource @go(FC,*FCVolumeSource) @protobuf(17,bytes,opt) - - // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - // +optional - azureFile?: null | #AzureFileVolumeSource @go(AzureFile,*AzureFileVolumeSource) @protobuf(18,bytes,opt) - - // ConfigMap represents a configMap that should populate this volume - // +optional - configMap?: null | #ConfigMapVolumeSource @go(ConfigMap,*ConfigMapVolumeSource) @protobuf(19,bytes,opt) - - // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - // +optional - vsphereVolume?: null | #VsphereVirtualDiskVolumeSource @go(VsphereVolume,*VsphereVirtualDiskVolumeSource) @protobuf(20,bytes,opt) - - // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - // +optional - quobyte?: null | #QuobyteVolumeSource @go(Quobyte,*QuobyteVolumeSource) @protobuf(21,bytes,opt) - - // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - // +optional - azureDisk?: null | #AzureDiskVolumeSource @go(AzureDisk,*AzureDiskVolumeSource) @protobuf(22,bytes,opt) - - // PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - photonPersistentDisk?: null | #PhotonPersistentDiskVolumeSource @go(PhotonPersistentDisk,*PhotonPersistentDiskVolumeSource) @protobuf(23,bytes,opt) - - // Items for all in one resources secrets, configmaps, and downward API - projected?: null | #ProjectedVolumeSource @go(Projected,*ProjectedVolumeSource) @protobuf(26,bytes,opt) - - // PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - // +optional - portworxVolume?: null | #PortworxVolumeSource @go(PortworxVolume,*PortworxVolumeSource) @protobuf(24,bytes,opt) - - // ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - // +optional - scaleIO?: null | #ScaleIOVolumeSource @go(ScaleIO,*ScaleIOVolumeSource) @protobuf(25,bytes,opt) - - // StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - // +optional - storageos?: null | #StorageOSVolumeSource @go(StorageOS,*StorageOSVolumeSource) @protobuf(27,bytes,opt) - - // CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature). - // +optional - csi?: null | #CSIVolumeSource @go(CSI,*CSIVolumeSource) @protobuf(28,bytes,opt) - - // Ephemeral represents a volume that is handled by a cluster storage driver. - // The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, - // and deleted when the pod is removed. - // - // Use this if: - // a) the volume is only needed while the pod runs, - // b) features of normal volumes like restoring from snapshot or capacity - // tracking are needed, - // c) the storage driver is specified through a storage class, and - // d) the storage driver supports dynamic volume provisioning through - // a PersistentVolumeClaim (see EphemeralVolumeSource for more - // information on the connection between this volume type - // and PersistentVolumeClaim). - // - // Use PersistentVolumeClaim or one of the vendor-specific - // APIs for volumes that persist for longer than the lifecycle - // of an individual pod. - // - // Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to - // be used that way - see the documentation of the driver for - // more information. - // - // A pod can use both types of ephemeral volumes and - // persistent volumes at the same time. - // - // +optional - ephemeral?: null | #EphemeralVolumeSource @go(Ephemeral,*EphemeralVolumeSource) @protobuf(29,bytes,opt) -} - -// PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. -// This volume finds the bound PV and mounts that volume for the pod. A -// PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another -// type of volume that is owned by someone else (the system). -#PersistentVolumeClaimVolumeSource: { - // ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - claimName: string @go(ClaimName) @protobuf(1,bytes,opt) - - // Will force the ReadOnly setting in VolumeMounts. - // Default false. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(2,varint,opt) -} - -// PersistentVolumeSource is similar to VolumeSource but meant for the -// administrator who creates PVs. Exactly one of its members must be set. -#PersistentVolumeSource: { - // GCEPersistentDisk represents a GCE Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. Provisioned by an admin. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // +optional - gcePersistentDisk?: null | #GCEPersistentDiskVolumeSource @go(GCEPersistentDisk,*GCEPersistentDiskVolumeSource) @protobuf(1,bytes,opt) - - // AWSElasticBlockStore represents an AWS Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - // +optional - awsElasticBlockStore?: null | #AWSElasticBlockStoreVolumeSource @go(AWSElasticBlockStore,*AWSElasticBlockStoreVolumeSource) @protobuf(2,bytes,opt) - - // HostPath represents a directory on the host. - // Provisioned by a developer or tester. - // This is useful for single-node development and testing only! - // On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - // +optional - hostPath?: null | #HostPathVolumeSource @go(HostPath,*HostPathVolumeSource) @protobuf(3,bytes,opt) - - // Glusterfs represents a Glusterfs volume that is attached to a host and - // exposed to the pod. Provisioned by an admin. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md - // +optional - glusterfs?: null | #GlusterfsPersistentVolumeSource @go(Glusterfs,*GlusterfsPersistentVolumeSource) @protobuf(4,bytes,opt) - - // NFS represents an NFS mount on the host. Provisioned by an admin. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - // +optional - nfs?: null | #NFSVolumeSource @go(NFS,*NFSVolumeSource) @protobuf(5,bytes,opt) - - // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. - // More info: https://examples.k8s.io/volumes/rbd/README.md - // +optional - rbd?: null | #RBDPersistentVolumeSource @go(RBD,*RBDPersistentVolumeSource) @protobuf(6,bytes,opt) - - // ISCSI represents an ISCSI Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. Provisioned by an admin. - // +optional - iscsi?: null | #ISCSIPersistentVolumeSource @go(ISCSI,*ISCSIPersistentVolumeSource) @protobuf(7,bytes,opt) - - // Cinder represents a cinder volume attached and mounted on kubelets host machine. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - cinder?: null | #CinderPersistentVolumeSource @go(Cinder,*CinderPersistentVolumeSource) @protobuf(8,bytes,opt) - - // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - // +optional - cephfs?: null | #CephFSPersistentVolumeSource @go(CephFS,*CephFSPersistentVolumeSource) @protobuf(9,bytes,opt) - - // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - // +optional - fc?: null | #FCVolumeSource @go(FC,*FCVolumeSource) @protobuf(10,bytes,opt) - - // Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - // +optional - flocker?: null | #FlockerVolumeSource @go(Flocker,*FlockerVolumeSource) @protobuf(11,bytes,opt) - - // FlexVolume represents a generic volume resource that is - // provisioned/attached using an exec based plugin. - // +optional - flexVolume?: null | #FlexPersistentVolumeSource @go(FlexVolume,*FlexPersistentVolumeSource) @protobuf(12,bytes,opt) - - // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - // +optional - azureFile?: null | #AzureFilePersistentVolumeSource @go(AzureFile,*AzureFilePersistentVolumeSource) @protobuf(13,bytes,opt) - - // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - // +optional - vsphereVolume?: null | #VsphereVirtualDiskVolumeSource @go(VsphereVolume,*VsphereVirtualDiskVolumeSource) @protobuf(14,bytes,opt) - - // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - // +optional - quobyte?: null | #QuobyteVolumeSource @go(Quobyte,*QuobyteVolumeSource) @protobuf(15,bytes,opt) - - // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - // +optional - azureDisk?: null | #AzureDiskVolumeSource @go(AzureDisk,*AzureDiskVolumeSource) @protobuf(16,bytes,opt) - - // PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - photonPersistentDisk?: null | #PhotonPersistentDiskVolumeSource @go(PhotonPersistentDisk,*PhotonPersistentDiskVolumeSource) @protobuf(17,bytes,opt) - - // PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - // +optional - portworxVolume?: null | #PortworxVolumeSource @go(PortworxVolume,*PortworxVolumeSource) @protobuf(18,bytes,opt) - - // ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - // +optional - scaleIO?: null | #ScaleIOPersistentVolumeSource @go(ScaleIO,*ScaleIOPersistentVolumeSource) @protobuf(19,bytes,opt) - - // Local represents directly-attached storage with node affinity - // +optional - local?: null | #LocalVolumeSource @go(Local,*LocalVolumeSource) @protobuf(20,bytes,opt) - - // StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod - // More info: https://examples.k8s.io/volumes/storageos/README.md - // +optional - storageos?: null | #StorageOSPersistentVolumeSource @go(StorageOS,*StorageOSPersistentVolumeSource) @protobuf(21,bytes,opt) - - // CSI represents storage that is handled by an external CSI driver (Beta feature). - // +optional - csi?: null | #CSIPersistentVolumeSource @go(CSI,*CSIPersistentVolumeSource) @protobuf(22,bytes,opt) -} - -// BetaStorageClassAnnotation represents the beta/previous StorageClass annotation. -// It's currently still used and will be held for backwards compatibility -#BetaStorageClassAnnotation: "volume.beta.kubernetes.io/storage-class" - -// MountOptionAnnotation defines mount option annotation used in PVs -#MountOptionAnnotation: "volume.beta.kubernetes.io/mount-options" - -// PersistentVolume (PV) is a storage resource provisioned by an administrator. -// It is analogous to a node. -// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes -#PersistentVolume: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines a specification of a persistent volume owned by the cluster. - // Provisioned by an administrator. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - // +optional - spec?: #PersistentVolumeSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status represents the current information/status for the persistent volume. - // Populated by the system. - // Read-only. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - // +optional - status?: #PersistentVolumeStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PersistentVolumeSpec is the specification of a persistent volume. -#PersistentVolumeSpec: { - // A description of the persistent volume's resources and capacity. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - // +optional - capacity?: #ResourceList @go(Capacity) @protobuf(1,bytes,rep,casttype=ResourceList,castkey=ResourceName) - - #PersistentVolumeSource - - // AccessModes contains all ways the volume can be mounted. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - // +optional - accessModes?: [...#PersistentVolumeAccessMode] @go(AccessModes,[]PersistentVolumeAccessMode) @protobuf(3,bytes,rep,casttype=PersistentVolumeAccessMode) - - // ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. - // Expected to be non-nil when bound. - // claim.VolumeName is the authoritative bind between PV and PVC. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - // +optional - claimRef?: null | #ObjectReference @go(ClaimRef,*ObjectReference) @protobuf(4,bytes,opt) - - // What happens to a persistent volume when released from its claim. - // Valid options are Retain (default for manually created PersistentVolumes), Delete (default - // for dynamically provisioned PersistentVolumes), and Recycle (deprecated). - // Recycle must be supported by the volume plugin underlying this PersistentVolume. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - // +optional - persistentVolumeReclaimPolicy?: #PersistentVolumeReclaimPolicy @go(PersistentVolumeReclaimPolicy) @protobuf(5,bytes,opt,casttype=PersistentVolumeReclaimPolicy) - - // Name of StorageClass to which this persistent volume belongs. Empty value - // means that this volume does not belong to any StorageClass. - // +optional - storageClassName?: string @go(StorageClassName) @protobuf(6,bytes,opt) - - // A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will - // simply fail if one is invalid. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - // +optional - mountOptions?: [...string] @go(MountOptions,[]string) @protobuf(7,bytes,opt) - - // volumeMode defines if a volume is intended to be used with a formatted filesystem - // or to remain in raw block state. Value of Filesystem is implied when not included in spec. - // +optional - volumeMode?: null | #PersistentVolumeMode @go(VolumeMode,*PersistentVolumeMode) @protobuf(8,bytes,opt,casttype=PersistentVolumeMode) - - // NodeAffinity defines constraints that limit what nodes this volume can be accessed from. - // This field influences the scheduling of pods that use this volume. - // +optional - nodeAffinity?: null | #VolumeNodeAffinity @go(NodeAffinity,*VolumeNodeAffinity) @protobuf(9,bytes,opt) -} - -// VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. -#VolumeNodeAffinity: { - // Required specifies hard node constraints that must be met. - required?: null | #NodeSelector @go(Required,*NodeSelector) @protobuf(1,bytes,opt) -} - -// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes. -// +enum -#PersistentVolumeReclaimPolicy: string // #enumPersistentVolumeReclaimPolicy - -#enumPersistentVolumeReclaimPolicy: - #PersistentVolumeReclaimRecycle | - #PersistentVolumeReclaimDelete | - #PersistentVolumeReclaimRetain - -// PersistentVolumeReclaimRecycle means the volume will be recycled back into the pool of unbound persistent volumes on release from its claim. -// The volume plugin must support Recycling. -#PersistentVolumeReclaimRecycle: #PersistentVolumeReclaimPolicy & "Recycle" - -// PersistentVolumeReclaimDelete means the volume will be deleted from Kubernetes on release from its claim. -// The volume plugin must support Deletion. -#PersistentVolumeReclaimDelete: #PersistentVolumeReclaimPolicy & "Delete" - -// PersistentVolumeReclaimRetain means the volume will be left in its current phase (Released) for manual reclamation by the administrator. -// The default policy is Retain. -#PersistentVolumeReclaimRetain: #PersistentVolumeReclaimPolicy & "Retain" - -// PersistentVolumeMode describes how a volume is intended to be consumed, either Block or Filesystem. -// +enum -#PersistentVolumeMode: string // #enumPersistentVolumeMode - -#enumPersistentVolumeMode: - #PersistentVolumeBlock | - #PersistentVolumeFilesystem - -// PersistentVolumeBlock means the volume will not be formatted with a filesystem and will remain a raw block device. -#PersistentVolumeBlock: #PersistentVolumeMode & "Block" - -// PersistentVolumeFilesystem means the volume will be or is formatted with a filesystem. -#PersistentVolumeFilesystem: #PersistentVolumeMode & "Filesystem" - -// PersistentVolumeStatus is the current status of a persistent volume. -#PersistentVolumeStatus: { - // Phase indicates if a volume is available, bound to a claim, or released by a claim. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase - // +optional - phase?: #PersistentVolumePhase @go(Phase) @protobuf(1,bytes,opt,casttype=PersistentVolumePhase) - - // A human-readable message indicating details about why the volume is in this state. - // +optional - message?: string @go(Message) @protobuf(2,bytes,opt) - - // Reason is a brief CamelCase string that describes any failure and is meant - // for machine parsing and tidy display in the CLI. - // +optional - reason?: string @go(Reason) @protobuf(3,bytes,opt) -} - -// PersistentVolumeList is a list of PersistentVolume items. -#PersistentVolumeList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of persistent volumes. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - items: [...#PersistentVolume] @go(Items,[]PersistentVolume) @protobuf(2,bytes,rep) -} - -// PersistentVolumeClaim is a user's request for and claim to a persistent volume -#PersistentVolumeClaim: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the desired characteristics of a volume requested by a pod author. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - // +optional - spec?: #PersistentVolumeClaimSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status represents the current information/status of a persistent volume claim. - // Read-only. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - // +optional - status?: #PersistentVolumeClaimStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PersistentVolumeClaimList is a list of PersistentVolumeClaim items. -#PersistentVolumeClaimList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // A list of persistent volume claims. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - items: [...#PersistentVolumeClaim] @go(Items,[]PersistentVolumeClaim) @protobuf(2,bytes,rep) -} - -// PersistentVolumeClaimSpec describes the common attributes of storage devices -// and allows a Source for provider-specific attributes -#PersistentVolumeClaimSpec: { - // AccessModes contains the desired access modes the volume should have. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - // +optional - accessModes?: [...#PersistentVolumeAccessMode] @go(AccessModes,[]PersistentVolumeAccessMode) @protobuf(1,bytes,rep,casttype=PersistentVolumeAccessMode) - - // A label query over volumes to consider for binding. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(4,bytes,opt) - - // Resources represents the minimum resources the volume should have. - // If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements - // that are lower than previous value but must still be higher than capacity recorded in the - // status field of the claim. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - // +optional - resources?: #ResourceRequirements @go(Resources) @protobuf(2,bytes,opt) - - // VolumeName is the binding reference to the PersistentVolume backing this claim. - // +optional - volumeName?: string @go(VolumeName) @protobuf(3,bytes,opt) - - // Name of the StorageClass required by the claim. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - // +optional - storageClassName?: null | string @go(StorageClassName,*string) @protobuf(5,bytes,opt) - - // volumeMode defines what type of volume is required by the claim. - // Value of Filesystem is implied when not included in claim spec. - // +optional - volumeMode?: null | #PersistentVolumeMode @go(VolumeMode,*PersistentVolumeMode) @protobuf(6,bytes,opt,casttype=PersistentVolumeMode) - - // This field can be used to specify either: - // * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) - // * An existing PVC (PersistentVolumeClaim) - // If the provisioner or an external controller can support the specified data source, - // it will create a new volume based on the contents of the specified data source. - // If the AnyVolumeDataSource feature gate is enabled, this field will always have - // the same contents as the DataSourceRef field. - // +optional - dataSource?: null | #TypedLocalObjectReference @go(DataSource,*TypedLocalObjectReference) @protobuf(7,bytes,opt) - - // Specifies the object from which to populate the volume with data, if a non-empty - // volume is desired. This may be any local object from a non-empty API group (non - // core object) or a PersistentVolumeClaim object. - // When this field is specified, volume binding will only succeed if the type of - // the specified object matches some installed volume populator or dynamic - // provisioner. - // This field will replace the functionality of the DataSource field and as such - // if both fields are non-empty, they must have the same value. For backwards - // compatibility, both fields (DataSource and DataSourceRef) will be set to the same - // value automatically if one of them is empty and the other is non-empty. - // There are two important differences between DataSource and DataSourceRef: - // * While DataSource only allows two specific types of objects, DataSourceRef - // allows any non-core object, as well as PersistentVolumeClaim objects. - // * While DataSource ignores disallowed values (dropping them), DataSourceRef - // preserves all values, and generates an error if a disallowed value is - // specified. - // (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. - // +optional - dataSourceRef?: null | #TypedLocalObjectReference @go(DataSourceRef,*TypedLocalObjectReference) @protobuf(8,bytes,opt) -} - -// PersistentVolumeClaimConditionType is a valid value of PersistentVolumeClaimCondition.Type -// +enum -#PersistentVolumeClaimConditionType: string // #enumPersistentVolumeClaimConditionType - -#enumPersistentVolumeClaimConditionType: - #PersistentVolumeClaimResizing | - #PersistentVolumeClaimFileSystemResizePending - -// PersistentVolumeClaimResizing - a user trigger resize of pvc has been started -#PersistentVolumeClaimResizing: #PersistentVolumeClaimConditionType & "Resizing" - -// PersistentVolumeClaimFileSystemResizePending - controller resize is finished and a file system resize is pending on node -#PersistentVolumeClaimFileSystemResizePending: #PersistentVolumeClaimConditionType & "FileSystemResizePending" - -// +enum -#PersistentVolumeClaimResizeStatus: string // #enumPersistentVolumeClaimResizeStatus - -#enumPersistentVolumeClaimResizeStatus: - #PersistentVolumeClaimNoExpansionInProgress | - #PersistentVolumeClaimControllerExpansionInProgress | - #PersistentVolumeClaimControllerExpansionFailed | - #PersistentVolumeClaimNodeExpansionPending | - #PersistentVolumeClaimNodeExpansionInProgress | - #PersistentVolumeClaimNodeExpansionFailed - -// When expansion is complete, the empty string is set by resize controller or kubelet. -#PersistentVolumeClaimNoExpansionInProgress: #PersistentVolumeClaimResizeStatus & "" - -// State set when resize controller starts expanding the volume in control-plane -#PersistentVolumeClaimControllerExpansionInProgress: #PersistentVolumeClaimResizeStatus & "ControllerExpansionInProgress" - -// State set when expansion has failed in resize controller with a terminal error. -// Transient errors such as timeout should not set this status and should leave ResizeStatus -// unmodified, so as resize controller can resume the volume expansion. -#PersistentVolumeClaimControllerExpansionFailed: #PersistentVolumeClaimResizeStatus & "ControllerExpansionFailed" - -// State set when resize controller has finished expanding the volume but further expansion is needed on the node. -#PersistentVolumeClaimNodeExpansionPending: #PersistentVolumeClaimResizeStatus & "NodeExpansionPending" - -// State set when kubelet starts expanding the volume. -#PersistentVolumeClaimNodeExpansionInProgress: #PersistentVolumeClaimResizeStatus & "NodeExpansionInProgress" - -// State set when expansion has failed in kubelet with a terminal error. Transient errors don't set NodeExpansionFailed. -#PersistentVolumeClaimNodeExpansionFailed: #PersistentVolumeClaimResizeStatus & "NodeExpansionFailed" - -// PersistentVolumeClaimCondition contails details about state of pvc -#PersistentVolumeClaimCondition: { - type: #PersistentVolumeClaimConditionType @go(Type) @protobuf(1,bytes,opt,casttype=PersistentVolumeClaimConditionType) - status: #ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=ConditionStatus) - - // Last time we probed the condition. - // +optional - lastProbeTime?: metav1.#Time @go(LastProbeTime) @protobuf(3,bytes,opt) - - // Last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(4,bytes,opt) - - // Unique, this should be a short, machine understandable string that gives the reason - // for condition's last transition. If it reports "ResizeStarted" that means the underlying - // persistent volume is being resized. - // +optional - reason?: string @go(Reason) @protobuf(5,bytes,opt) - - // Human-readable message indicating details about last transition. - // +optional - message?: string @go(Message) @protobuf(6,bytes,opt) -} - -// PersistentVolumeClaimStatus is the current status of a persistent volume claim. -#PersistentVolumeClaimStatus: { - // Phase represents the current phase of PersistentVolumeClaim. - // +optional - phase?: #PersistentVolumeClaimPhase @go(Phase) @protobuf(1,bytes,opt,casttype=PersistentVolumeClaimPhase) - - // AccessModes contains the actual access modes the volume backing the PVC has. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - // +optional - accessModes?: [...#PersistentVolumeAccessMode] @go(AccessModes,[]PersistentVolumeAccessMode) @protobuf(2,bytes,rep,casttype=PersistentVolumeAccessMode) - - // Represents the actual resources of the underlying volume. - // +optional - capacity?: #ResourceList @go(Capacity) @protobuf(3,bytes,rep,casttype=ResourceList,castkey=ResourceName) - - // Current Condition of persistent volume claim. If underlying persistent volume is being - // resized then the Condition will be set to 'ResizeStarted'. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#PersistentVolumeClaimCondition] @go(Conditions,[]PersistentVolumeClaimCondition) @protobuf(4,bytes,rep) - - // The storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may - // be larger than the actual capacity when a volume expansion operation is requested. - // For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. - // If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. - // If a volume expansion capacity request is lowered, allocatedResources is only - // lowered if there are no expansion operations in progress and if the actual volume capacity - // is equal or lower than the requested capacity. - // This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. - // +featureGate=RecoverVolumeExpansionFailure - // +optional - allocatedResources?: #ResourceList @go(AllocatedResources) @protobuf(5,bytes,rep,casttype=ResourceList,castkey=ResourceName) - - // ResizeStatus stores status of resize operation. - // ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty - // string by resize controller or kubelet. - // This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. - // +featureGate=RecoverVolumeExpansionFailure - // +optional - resizeStatus?: null | #PersistentVolumeClaimResizeStatus @go(ResizeStatus,*PersistentVolumeClaimResizeStatus) @protobuf(6,bytes,opt,casttype=PersistentVolumeClaimResizeStatus) -} - -// +enum -#PersistentVolumeAccessMode: string // #enumPersistentVolumeAccessMode - -#enumPersistentVolumeAccessMode: - #ReadWriteOnce | - #ReadOnlyMany | - #ReadWriteMany | - #ReadWriteOncePod - -// can be mounted in read/write mode to exactly 1 host -#ReadWriteOnce: #PersistentVolumeAccessMode & "ReadWriteOnce" - -// can be mounted in read-only mode to many hosts -#ReadOnlyMany: #PersistentVolumeAccessMode & "ReadOnlyMany" - -// can be mounted in read/write mode to many hosts -#ReadWriteMany: #PersistentVolumeAccessMode & "ReadWriteMany" - -// can be mounted in read/write mode to exactly 1 pod -// cannot be used in combination with other access modes -#ReadWriteOncePod: #PersistentVolumeAccessMode & "ReadWriteOncePod" - -// +enum -#PersistentVolumePhase: string // #enumPersistentVolumePhase - -#enumPersistentVolumePhase: - #VolumePending | - #VolumeAvailable | - #VolumeBound | - #VolumeReleased | - #VolumeFailed - -// used for PersistentVolumes that are not available -#VolumePending: #PersistentVolumePhase & "Pending" - -// used for PersistentVolumes that are not yet bound -// Available volumes are held by the binder and matched to PersistentVolumeClaims -#VolumeAvailable: #PersistentVolumePhase & "Available" - -// used for PersistentVolumes that are bound -#VolumeBound: #PersistentVolumePhase & "Bound" - -// used for PersistentVolumes where the bound PersistentVolumeClaim was deleted -// released volumes must be recycled before becoming available again -// this phase is used by the persistent volume claim binder to signal to another process to reclaim the resource -#VolumeReleased: #PersistentVolumePhase & "Released" - -// used for PersistentVolumes that failed to be correctly recycled or deleted after being released from a claim -#VolumeFailed: #PersistentVolumePhase & "Failed" - -// +enum -#PersistentVolumeClaimPhase: string // #enumPersistentVolumeClaimPhase - -#enumPersistentVolumeClaimPhase: - #ClaimPending | - #ClaimBound | - #ClaimLost - -// used for PersistentVolumeClaims that are not yet bound -#ClaimPending: #PersistentVolumeClaimPhase & "Pending" - -// used for PersistentVolumeClaims that are bound -#ClaimBound: #PersistentVolumeClaimPhase & "Bound" - -// used for PersistentVolumeClaims that lost their underlying -// PersistentVolume. The claim was bound to a PersistentVolume and this -// volume does not exist any longer and all data on it was lost. -#ClaimLost: #PersistentVolumeClaimPhase & "Lost" - -// +enum -#HostPathType: string // #enumHostPathType - -#enumHostPathType: - #HostPathUnset | - #HostPathDirectoryOrCreate | - #HostPathDirectory | - #HostPathFileOrCreate | - #HostPathFile | - #HostPathSocket | - #HostPathCharDev | - #HostPathBlockDev - -// For backwards compatible, leave it empty if unset -#HostPathUnset: #HostPathType & "" - -// If nothing exists at the given path, an empty directory will be created there -// as needed with file mode 0755, having the same group and ownership with Kubelet. -#HostPathDirectoryOrCreate: #HostPathType & "DirectoryOrCreate" - -// A directory must exist at the given path -#HostPathDirectory: #HostPathType & "Directory" - -// If nothing exists at the given path, an empty file will be created there -// as needed with file mode 0644, having the same group and ownership with Kubelet. -#HostPathFileOrCreate: #HostPathType & "FileOrCreate" - -// A file must exist at the given path -#HostPathFile: #HostPathType & "File" - -// A UNIX socket must exist at the given path -#HostPathSocket: #HostPathType & "Socket" - -// A character device must exist at the given path -#HostPathCharDev: #HostPathType & "CharDevice" - -// A block device must exist at the given path -#HostPathBlockDev: #HostPathType & "BlockDevice" - -// Represents a host path mapped into a pod. -// Host path volumes do not support ownership management or SELinux relabeling. -#HostPathVolumeSource: { - // Path of the directory on the host. - // If the path is a symlink, it will follow the link to the real path. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - path: string @go(Path) @protobuf(1,bytes,opt) - - // Type for HostPath Volume - // Defaults to "" - // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - // +optional - type?: null | #HostPathType @go(Type,*HostPathType) @protobuf(2,bytes,opt) -} - -// Represents an empty directory for a pod. -// Empty directory volumes support ownership management and SELinux relabeling. -#EmptyDirVolumeSource: { - // What type of storage medium should back this directory. - // The default is "" which means to use the node's default medium. - // Must be an empty string (default) or Memory. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - // +optional - medium?: #StorageMedium @go(Medium) @protobuf(1,bytes,opt,casttype=StorageMedium) - - // Total amount of local storage required for this EmptyDir volume. - // The size limit is also applicable for memory medium. - // The maximum usage on memory medium EmptyDir would be the minimum value between - // the SizeLimit specified here and the sum of memory limits of all containers in a pod. - // The default is nil which means that the limit is undefined. - // More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - // +optional - sizeLimit?: null | resource.#Quantity @go(SizeLimit,*resource.Quantity) @protobuf(2,bytes,opt) -} - -// Represents a Glusterfs mount that lasts the lifetime of a pod. -// Glusterfs volumes do not support ownership management or SELinux relabeling. -#GlusterfsVolumeSource: { - // EndpointsName is the endpoint name that details Glusterfs topology. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - endpoints: string @go(EndpointsName) @protobuf(1,bytes,opt) - - // Path is the Glusterfs volume path. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - path: string @go(Path) @protobuf(2,bytes,opt) - - // ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. - // Defaults to false. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(3,varint,opt) -} - -// Represents a Glusterfs mount that lasts the lifetime of a pod. -// Glusterfs volumes do not support ownership management or SELinux relabeling. -#GlusterfsPersistentVolumeSource: { - // EndpointsName is the endpoint name that details Glusterfs topology. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - endpoints: string @go(EndpointsName) @protobuf(1,bytes,opt) - - // Path is the Glusterfs volume path. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - path: string @go(Path) @protobuf(2,bytes,opt) - - // ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. - // Defaults to false. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(3,varint,opt) - - // EndpointsNamespace is the namespace that contains Glusterfs endpoint. - // If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - // +optional - endpointsNamespace?: null | string @go(EndpointsNamespace,*string) @protobuf(4,bytes,opt) -} - -// Represents a Rados Block Device mount that lasts the lifetime of a pod. -// RBD volumes support ownership management and SELinux relabeling. -#RBDVolumeSource: { - // A collection of Ceph monitors. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - monitors: [...string] @go(CephMonitors,[]string) @protobuf(1,bytes,rep) - - // The rados image name. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - image: string @go(RBDImage) @protobuf(2,bytes,opt) - - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - fsType?: string @go(FSType) @protobuf(3,bytes,opt) - - // The rados pool name. - // Default is rbd. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - pool?: string @go(RBDPool) @protobuf(4,bytes,opt) - - // The rados user name. - // Default is admin. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - user?: string @go(RadosUser) @protobuf(5,bytes,opt) - - // Keyring is the path to key ring for RBDUser. - // Default is /etc/ceph/keyring. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - keyring?: string @go(Keyring) @protobuf(6,bytes,opt) - - // SecretRef is name of the authentication secret for RBDUser. If provided - // overrides keyring. - // Default is nil. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - secretRef?: null | #LocalObjectReference @go(SecretRef,*LocalObjectReference) @protobuf(7,bytes,opt) - - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(8,varint,opt) -} - -// Represents a Rados Block Device mount that lasts the lifetime of a pod. -// RBD volumes support ownership management and SELinux relabeling. -#RBDPersistentVolumeSource: { - // A collection of Ceph monitors. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - monitors: [...string] @go(CephMonitors,[]string) @protobuf(1,bytes,rep) - - // The rados image name. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - image: string @go(RBDImage) @protobuf(2,bytes,opt) - - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - fsType?: string @go(FSType) @protobuf(3,bytes,opt) - - // The rados pool name. - // Default is rbd. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - pool?: string @go(RBDPool) @protobuf(4,bytes,opt) - - // The rados user name. - // Default is admin. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - user?: string @go(RadosUser) @protobuf(5,bytes,opt) - - // Keyring is the path to key ring for RBDUser. - // Default is /etc/ceph/keyring. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - keyring?: string @go(Keyring) @protobuf(6,bytes,opt) - - // SecretRef is name of the authentication secret for RBDUser. If provided - // overrides keyring. - // Default is nil. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - secretRef?: null | #SecretReference @go(SecretRef,*SecretReference) @protobuf(7,bytes,opt) - - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(8,varint,opt) -} - -// Represents a cinder volume resource in Openstack. -// A Cinder volume must exist before mounting to a container. -// The volume must also be in the same region as the kubelet. -// Cinder volumes support ownership management and SELinux relabeling. -#CinderVolumeSource: { - // volume id used to identify the volume in cinder. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - volumeID: string @go(VolumeID) @protobuf(1,bytes,opt) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - fsType?: string @go(FSType) @protobuf(2,bytes,opt) - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(3,varint,opt) - - // Optional: points to a secret object containing parameters used to connect - // to OpenStack. - // +optional - secretRef?: null | #LocalObjectReference @go(SecretRef,*LocalObjectReference) @protobuf(4,bytes,opt) -} - -// Represents a cinder volume resource in Openstack. -// A Cinder volume must exist before mounting to a container. -// The volume must also be in the same region as the kubelet. -// Cinder volumes support ownership management and SELinux relabeling. -#CinderPersistentVolumeSource: { - // volume id used to identify the volume in cinder. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - volumeID: string @go(VolumeID) @protobuf(1,bytes,opt) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - fsType?: string @go(FSType) @protobuf(2,bytes,opt) - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(3,varint,opt) - - // Optional: points to a secret object containing parameters used to connect - // to OpenStack. - // +optional - secretRef?: null | #SecretReference @go(SecretRef,*SecretReference) @protobuf(4,bytes,opt) -} - -// Represents a Ceph Filesystem mount that lasts the lifetime of a pod -// Cephfs volumes do not support ownership management or SELinux relabeling. -#CephFSVolumeSource: { - // Required: Monitors is a collection of Ceph monitors - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - monitors: [...string] @go(Monitors,[]string) @protobuf(1,bytes,rep) - - // Optional: Used as the mounted root, rather than the full Ceph tree, default is / - // +optional - path?: string @go(Path) @protobuf(2,bytes,opt) - - // Optional: User is the rados user name, default is admin - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - user?: string @go(User) @protobuf(3,bytes,opt) - - // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - secretFile?: string @go(SecretFile) @protobuf(4,bytes,opt) - - // Optional: SecretRef is reference to the authentication secret for User, default is empty. - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - secretRef?: null | #LocalObjectReference @go(SecretRef,*LocalObjectReference) @protobuf(5,bytes,opt) - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(6,varint,opt) -} - -// SecretReference represents a Secret Reference. It has enough information to retrieve secret -// in any namespace -// +structType=atomic -#SecretReference: { - // Name is unique within a namespace to reference a secret resource. - // +optional - name?: string @go(Name) @protobuf(1,bytes,opt) - - // Namespace defines the space within which the secret name must be unique. - // +optional - namespace?: string @go(Namespace) @protobuf(2,bytes,opt) -} - -// Represents a Ceph Filesystem mount that lasts the lifetime of a pod -// Cephfs volumes do not support ownership management or SELinux relabeling. -#CephFSPersistentVolumeSource: { - // Required: Monitors is a collection of Ceph monitors - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - monitors: [...string] @go(Monitors,[]string) @protobuf(1,bytes,rep) - - // Optional: Used as the mounted root, rather than the full Ceph tree, default is / - // +optional - path?: string @go(Path) @protobuf(2,bytes,opt) - - // Optional: User is the rados user name, default is admin - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - user?: string @go(User) @protobuf(3,bytes,opt) - - // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - secretFile?: string @go(SecretFile) @protobuf(4,bytes,opt) - - // Optional: SecretRef is reference to the authentication secret for User, default is empty. - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - secretRef?: null | #SecretReference @go(SecretRef,*SecretReference) @protobuf(5,bytes,opt) - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(6,varint,opt) -} - -// Represents a Flocker volume mounted by the Flocker agent. -// One and only one of datasetName and datasetUUID should be set. -// Flocker volumes do not support ownership management or SELinux relabeling. -#FlockerVolumeSource: { - // Name of the dataset stored as metadata -> name on the dataset for Flocker - // should be considered as deprecated - // +optional - datasetName?: string @go(DatasetName) @protobuf(1,bytes,opt) - - // UUID of the dataset. This is unique identifier of a Flocker dataset - // +optional - datasetUUID?: string @go(DatasetUUID) @protobuf(2,bytes,opt) -} - -// StorageMedium defines ways that storage can be allocated to a volume. -#StorageMedium: string // #enumStorageMedium - -#enumStorageMedium: - #StorageMediumDefault | - #StorageMediumMemory | - #StorageMediumHugePages | - #StorageMediumHugePagesPrefix - -#StorageMediumDefault: #StorageMedium & "" -#StorageMediumMemory: #StorageMedium & "Memory" -#StorageMediumHugePages: #StorageMedium & "HugePages" -#StorageMediumHugePagesPrefix: #StorageMedium & "HugePages-" - -// Protocol defines network protocols supported for things like container ports. -// +enum -#Protocol: string // #enumProtocol - -#enumProtocol: - #ProtocolTCP | - #ProtocolUDP | - #ProtocolSCTP - -// ProtocolTCP is the TCP protocol. -#ProtocolTCP: #Protocol & "TCP" - -// ProtocolUDP is the UDP protocol. -#ProtocolUDP: #Protocol & "UDP" - -// ProtocolSCTP is the SCTP protocol. -#ProtocolSCTP: #Protocol & "SCTP" - -// Represents a Persistent Disk resource in Google Compute Engine. -// -// A GCE PD must exist before mounting to a container. The disk must -// also be in the same GCE project and zone as the kubelet. A GCE PD -// can only be mounted as read/write once or read-only many times. GCE -// PDs support ownership management and SELinux relabeling. -#GCEPersistentDiskVolumeSource: { - // Unique name of the PD resource in GCE. Used to identify the disk in GCE. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - pdName: string @go(PDName) @protobuf(1,bytes,opt) - - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - fsType?: string @go(FSType) @protobuf(2,bytes,opt) - - // The partition in the volume that you want to mount. - // If omitted, the default is to mount by volume name. - // Examples: For volume /dev/sda1, you specify the partition as "1". - // Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // +optional - partition?: int32 @go(Partition) @protobuf(3,varint,opt) - - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(4,varint,opt) -} - -// Represents a Quobyte mount that lasts the lifetime of a pod. -// Quobyte volumes do not support ownership management or SELinux relabeling. -#QuobyteVolumeSource: { - // Registry represents a single or multiple Quobyte Registry services - // specified as a string as host:port pair (multiple entries are separated with commas) - // which acts as the central registry for volumes - registry: string @go(Registry) @protobuf(1,bytes,opt) - - // Volume is a string that references an already created Quobyte volume by name. - volume: string @go(Volume) @protobuf(2,bytes,opt) - - // ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. - // Defaults to false. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(3,varint,opt) - - // User to map volume access to - // Defaults to serivceaccount user - // +optional - user?: string @go(User) @protobuf(4,bytes,opt) - - // Group to map volume access to - // Default is no group - // +optional - group?: string @go(Group) @protobuf(5,bytes,opt) - - // Tenant owning the given Quobyte volume in the Backend - // Used with dynamically provisioned Quobyte volumes, value is set by the plugin - // +optional - tenant?: string @go(Tenant) @protobuf(6,bytes,opt) -} - -// FlexPersistentVolumeSource represents a generic persistent volume resource that is -// provisioned/attached using an exec based plugin. -#FlexPersistentVolumeSource: { - // Driver is the name of the driver to use for this volume. - driver: string @go(Driver) @protobuf(1,bytes,opt) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - // +optional - fsType?: string @go(FSType) @protobuf(2,bytes,opt) - - // Optional: SecretRef is reference to the secret object containing - // sensitive information to pass to the plugin scripts. This may be - // empty if no secret object is specified. If the secret object - // contains more than one secret, all secrets are passed to the plugin - // scripts. - // +optional - secretRef?: null | #SecretReference @go(SecretRef,*SecretReference) @protobuf(3,bytes,opt) - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(4,varint,opt) - - // Optional: Extra command options if any. - // +optional - options?: {[string]: string} @go(Options,map[string]string) @protobuf(5,bytes,rep) -} - -// FlexVolume represents a generic volume resource that is -// provisioned/attached using an exec based plugin. -#FlexVolumeSource: { - // Driver is the name of the driver to use for this volume. - driver: string @go(Driver) @protobuf(1,bytes,opt) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - // +optional - fsType?: string @go(FSType) @protobuf(2,bytes,opt) - - // Optional: SecretRef is reference to the secret object containing - // sensitive information to pass to the plugin scripts. This may be - // empty if no secret object is specified. If the secret object - // contains more than one secret, all secrets are passed to the plugin - // scripts. - // +optional - secretRef?: null | #LocalObjectReference @go(SecretRef,*LocalObjectReference) @protobuf(3,bytes,opt) - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(4,varint,opt) - - // Optional: Extra command options if any. - // +optional - options?: {[string]: string} @go(Options,map[string]string) @protobuf(5,bytes,rep) -} - -// Represents a Persistent Disk resource in AWS. -// -// An AWS EBS disk must exist before mounting to a container. The disk -// must also be in the same AWS zone as the kubelet. An AWS EBS disk -// can only be mounted as read/write once. AWS EBS volumes support -// ownership management and SELinux relabeling. -#AWSElasticBlockStoreVolumeSource: { - // Unique ID of the persistent disk resource in AWS (Amazon EBS volume). - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - volumeID: string @go(VolumeID) @protobuf(1,bytes,opt) - - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - fsType?: string @go(FSType) @protobuf(2,bytes,opt) - - // The partition in the volume that you want to mount. - // If omitted, the default is to mount by volume name. - // Examples: For volume /dev/sda1, you specify the partition as "1". - // Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - // +optional - partition?: int32 @go(Partition) @protobuf(3,varint,opt) - - // Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". - // If omitted, the default is "false". - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(4,varint,opt) -} - -// Represents a volume that is populated with the contents of a git repository. -// Git repo volumes do not support ownership management. -// Git repo volumes support SELinux relabeling. -// -// DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an -// EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir -// into the Pod's container. -#GitRepoVolumeSource: { - // Repository URL - repository: string @go(Repository) @protobuf(1,bytes,opt) - - // Commit hash for the specified revision. - // +optional - revision?: string @go(Revision) @protobuf(2,bytes,opt) - - // Target directory name. - // Must not contain or start with '..'. If '.' is supplied, the volume directory will be the - // git repository. Otherwise, if specified, the volume will contain the git repository in - // the subdirectory with the given name. - // +optional - directory?: string @go(Directory) @protobuf(3,bytes,opt) -} - -// Adapts a Secret into a volume. -// -// The contents of the target Secret's Data field will be presented in a volume -// as files using the keys in the Data field as the file names. -// Secret volumes support ownership management and SELinux relabeling. -#SecretVolumeSource: { - // Name of the secret in the pod's namespace to use. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - // +optional - secretName?: string @go(SecretName) @protobuf(1,bytes,opt) - - // If unspecified, each key-value pair in the Data field of the referenced - // Secret will be projected into the volume as a file whose name is the - // key and content is the value. If specified, the listed keys will be - // projected into the specified paths, and unlisted keys will not be - // present. If a key is specified which is not present in the Secret, - // the volume setup will error unless it is marked optional. Paths must be - // relative and may not contain the '..' path or start with '..'. - // +optional - items?: [...#KeyToPath] @go(Items,[]KeyToPath) @protobuf(2,bytes,rep) - - // Optional: mode bits used to set permissions on created files by default. - // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - // YAML accepts both octal and decimal values, JSON requires decimal values - // for mode bits. Defaults to 0644. - // Directories within the path are not affected by this setting. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - defaultMode?: null | int32 @go(DefaultMode,*int32) @protobuf(3,bytes,opt) - - // Specify whether the Secret or its keys must be defined - // +optional - optional?: null | bool @go(Optional,*bool) @protobuf(4,varint,opt) -} - -#SecretVolumeSourceDefaultMode: int32 & 0o644 - -// Adapts a secret into a projected volume. -// -// The contents of the target Secret's Data field will be presented in a -// projected volume as files using the keys in the Data field as the file names. -// Note that this is identical to a secret volume source without the default -// mode. -#SecretProjection: { - #LocalObjectReference - - // If unspecified, each key-value pair in the Data field of the referenced - // Secret will be projected into the volume as a file whose name is the - // key and content is the value. If specified, the listed keys will be - // projected into the specified paths, and unlisted keys will not be - // present. If a key is specified which is not present in the Secret, - // the volume setup will error unless it is marked optional. Paths must be - // relative and may not contain the '..' path or start with '..'. - // +optional - items?: [...#KeyToPath] @go(Items,[]KeyToPath) @protobuf(2,bytes,rep) - - // Specify whether the Secret or its key must be defined - // +optional - optional?: null | bool @go(Optional,*bool) @protobuf(4,varint,opt) -} - -// Represents an NFS mount that lasts the lifetime of a pod. -// NFS volumes do not support ownership management or SELinux relabeling. -#NFSVolumeSource: { - // Server is the hostname or IP address of the NFS server. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - server: string @go(Server) @protobuf(1,bytes,opt) - - // Path that is exported by the NFS server. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - path: string @go(Path) @protobuf(2,bytes,opt) - - // ReadOnly here will force - // the NFS export to be mounted with read-only permissions. - // Defaults to false. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(3,varint,opt) -} - -// Represents an ISCSI disk. -// ISCSI volumes can only be mounted as read/write once. -// ISCSI volumes support ownership management and SELinux relabeling. -#ISCSIVolumeSource: { - // iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port - // is other than default (typically TCP ports 860 and 3260). - targetPortal: string @go(TargetPortal) @protobuf(1,bytes,opt) - - // Target iSCSI Qualified Name. - iqn: string @go(IQN) @protobuf(2,bytes,opt) - - // iSCSI Target Lun number. - lun: int32 @go(Lun) @protobuf(3,varint,opt) - - // iSCSI Interface Name that uses an iSCSI transport. - // Defaults to 'default' (tcp). - // +optional - iscsiInterface?: string @go(ISCSIInterface) @protobuf(4,bytes,opt) - - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - fsType?: string @go(FSType) @protobuf(5,bytes,opt) - - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(6,varint,opt) - - // iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port - // is other than default (typically TCP ports 860 and 3260). - // +optional - portals?: [...string] @go(Portals,[]string) @protobuf(7,bytes,opt) - - // whether support iSCSI Discovery CHAP authentication - // +optional - chapAuthDiscovery?: bool @go(DiscoveryCHAPAuth) @protobuf(8,varint,opt) - - // whether support iSCSI Session CHAP authentication - // +optional - chapAuthSession?: bool @go(SessionCHAPAuth) @protobuf(11,varint,opt) - - // CHAP Secret for iSCSI target and initiator authentication - // +optional - secretRef?: null | #LocalObjectReference @go(SecretRef,*LocalObjectReference) @protobuf(10,bytes,opt) - - // Custom iSCSI Initiator Name. - // If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface - // : will be created for the connection. - // +optional - initiatorName?: null | string @go(InitiatorName,*string) @protobuf(12,bytes,opt) -} - -// ISCSIPersistentVolumeSource represents an ISCSI disk. -// ISCSI volumes can only be mounted as read/write once. -// ISCSI volumes support ownership management and SELinux relabeling. -#ISCSIPersistentVolumeSource: { - // iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port - // is other than default (typically TCP ports 860 and 3260). - targetPortal: string @go(TargetPortal) @protobuf(1,bytes,opt) - - // Target iSCSI Qualified Name. - iqn: string @go(IQN) @protobuf(2,bytes,opt) - - // iSCSI Target Lun number. - lun: int32 @go(Lun) @protobuf(3,varint,opt) - - // iSCSI Interface Name that uses an iSCSI transport. - // Defaults to 'default' (tcp). - // +optional - iscsiInterface?: string @go(ISCSIInterface) @protobuf(4,bytes,opt) - - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - fsType?: string @go(FSType) @protobuf(5,bytes,opt) - - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(6,varint,opt) - - // iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port - // is other than default (typically TCP ports 860 and 3260). - // +optional - portals?: [...string] @go(Portals,[]string) @protobuf(7,bytes,opt) - - // whether support iSCSI Discovery CHAP authentication - // +optional - chapAuthDiscovery?: bool @go(DiscoveryCHAPAuth) @protobuf(8,varint,opt) - - // whether support iSCSI Session CHAP authentication - // +optional - chapAuthSession?: bool @go(SessionCHAPAuth) @protobuf(11,varint,opt) - - // CHAP Secret for iSCSI target and initiator authentication - // +optional - secretRef?: null | #SecretReference @go(SecretRef,*SecretReference) @protobuf(10,bytes,opt) - - // Custom iSCSI Initiator Name. - // If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface - // : will be created for the connection. - // +optional - initiatorName?: null | string @go(InitiatorName,*string) @protobuf(12,bytes,opt) -} - -// Represents a Fibre Channel volume. -// Fibre Channel volumes can only be mounted as read/write once. -// Fibre Channel volumes support ownership management and SELinux relabeling. -#FCVolumeSource: { - // Optional: FC target worldwide names (WWNs) - // +optional - targetWWNs?: [...string] @go(TargetWWNs,[]string) @protobuf(1,bytes,rep) - - // Optional: FC target lun number - // +optional - lun?: null | int32 @go(Lun,*int32) @protobuf(2,varint,opt) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - fsType?: string @go(FSType) @protobuf(3,bytes,opt) - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(4,varint,opt) - - // Optional: FC volume world wide identifiers (wwids) - // Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - // +optional - wwids?: [...string] @go(WWIDs,[]string) @protobuf(5,bytes,rep) -} - -// AzureFile represents an Azure File Service mount on the host and bind mount to the pod. -#AzureFileVolumeSource: { - // the name of secret that contains Azure Storage Account Name and Key - secretName: string @go(SecretName) @protobuf(1,bytes,opt) - - // Share Name - shareName: string @go(ShareName) @protobuf(2,bytes,opt) - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(3,varint,opt) -} - -// AzureFile represents an Azure File Service mount on the host and bind mount to the pod. -#AzureFilePersistentVolumeSource: { - // the name of secret that contains Azure Storage Account Name and Key - secretName: string @go(SecretName) @protobuf(1,bytes,opt) - - // Share Name - shareName: string @go(ShareName) @protobuf(2,bytes,opt) - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(3,varint,opt) - - // the namespace of the secret that contains Azure Storage Account Name and Key - // default is the same as the Pod - // +optional - secretNamespace?: null | string @go(SecretNamespace,*string) @protobuf(4,bytes,opt) -} - -// Represents a vSphere volume resource. -#VsphereVirtualDiskVolumeSource: { - // Path that identifies vSphere volume vmdk - volumePath: string @go(VolumePath) @protobuf(1,bytes,opt) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // +optional - fsType?: string @go(FSType) @protobuf(2,bytes,opt) - - // Storage Policy Based Management (SPBM) profile name. - // +optional - storagePolicyName?: string @go(StoragePolicyName) @protobuf(3,bytes,opt) - - // Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - // +optional - storagePolicyID?: string @go(StoragePolicyID) @protobuf(4,bytes,opt) -} - -// Represents a Photon Controller persistent disk resource. -#PhotonPersistentDiskVolumeSource: { - // ID that identifies Photon Controller persistent disk - pdID: string @go(PdID) @protobuf(1,bytes,opt) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - fsType?: string @go(FSType) @protobuf(2,bytes,opt) -} - -// +enum -#AzureDataDiskCachingMode: string // #enumAzureDataDiskCachingMode - -#enumAzureDataDiskCachingMode: - #AzureDataDiskCachingNone | - #AzureDataDiskCachingReadOnly | - #AzureDataDiskCachingReadWrite - -// +enum -#AzureDataDiskKind: string // #enumAzureDataDiskKind - -#enumAzureDataDiskKind: - #AzureSharedBlobDisk | - #AzureDedicatedBlobDisk | - #AzureManagedDisk - -#AzureDataDiskCachingNone: #AzureDataDiskCachingMode & "None" -#AzureDataDiskCachingReadOnly: #AzureDataDiskCachingMode & "ReadOnly" -#AzureDataDiskCachingReadWrite: #AzureDataDiskCachingMode & "ReadWrite" -#AzureSharedBlobDisk: #AzureDataDiskKind & "Shared" -#AzureDedicatedBlobDisk: #AzureDataDiskKind & "Dedicated" -#AzureManagedDisk: #AzureDataDiskKind & "Managed" - -// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. -#AzureDiskVolumeSource: { - // The Name of the data disk in the blob storage - diskName: string @go(DiskName) @protobuf(1,bytes,opt) - - // The URI the data disk in the blob storage - diskURI: string @go(DataDiskURI) @protobuf(2,bytes,opt) - - // Host Caching mode: None, Read Only, Read Write. - // +optional - cachingMode?: null | #AzureDataDiskCachingMode @go(CachingMode,*AzureDataDiskCachingMode) @protobuf(3,bytes,opt,casttype=AzureDataDiskCachingMode) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // +optional - fsType?: null | string @go(FSType,*string) @protobuf(4,bytes,opt) - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - readOnly?: null | bool @go(ReadOnly,*bool) @protobuf(5,varint,opt) - - // Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - kind?: null | #AzureDataDiskKind @go(Kind,*AzureDataDiskKind) @protobuf(6,bytes,opt,casttype=AzureDataDiskKind) -} - -// PortworxVolumeSource represents a Portworx volume resource. -#PortworxVolumeSource: { - // VolumeID uniquely identifies a Portworx volume - volumeID: string @go(VolumeID) @protobuf(1,bytes,opt) - - // FSType represents the filesystem type to mount - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - fsType?: string @go(FSType) @protobuf(2,bytes,opt) - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(3,varint,opt) -} - -// ScaleIOVolumeSource represents a persistent ScaleIO volume -#ScaleIOVolumeSource: { - // The host address of the ScaleIO API Gateway. - gateway: string @go(Gateway) @protobuf(1,bytes,opt) - - // The name of the storage system as configured in ScaleIO. - system: string @go(System) @protobuf(2,bytes,opt) - - // SecretRef references to the secret for ScaleIO user and other - // sensitive information. If this is not provided, Login operation will fail. - secretRef?: null | #LocalObjectReference @go(SecretRef,*LocalObjectReference) @protobuf(3,bytes,opt) - - // Flag to enable/disable SSL communication with Gateway, default false - // +optional - sslEnabled?: bool @go(SSLEnabled) @protobuf(4,varint,opt) - - // The name of the ScaleIO Protection Domain for the configured storage. - // +optional - protectionDomain?: string @go(ProtectionDomain) @protobuf(5,bytes,opt) - - // The ScaleIO Storage Pool associated with the protection domain. - // +optional - storagePool?: string @go(StoragePool) @protobuf(6,bytes,opt) - - // Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. - // Default is ThinProvisioned. - // +optional - storageMode?: string @go(StorageMode) @protobuf(7,bytes,opt) - - // The name of a volume already created in the ScaleIO system - // that is associated with this volume source. - volumeName?: string @go(VolumeName) @protobuf(8,bytes,opt) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". - // Default is "xfs". - // +optional - fsType?: string @go(FSType) @protobuf(9,bytes,opt) - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(10,varint,opt) -} - -// ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume -#ScaleIOPersistentVolumeSource: { - // The host address of the ScaleIO API Gateway. - gateway: string @go(Gateway) @protobuf(1,bytes,opt) - - // The name of the storage system as configured in ScaleIO. - system: string @go(System) @protobuf(2,bytes,opt) - - // SecretRef references to the secret for ScaleIO user and other - // sensitive information. If this is not provided, Login operation will fail. - secretRef?: null | #SecretReference @go(SecretRef,*SecretReference) @protobuf(3,bytes,opt) - - // Flag to enable/disable SSL communication with Gateway, default false - // +optional - sslEnabled?: bool @go(SSLEnabled) @protobuf(4,varint,opt) - - // The name of the ScaleIO Protection Domain for the configured storage. - // +optional - protectionDomain?: string @go(ProtectionDomain) @protobuf(5,bytes,opt) - - // The ScaleIO Storage Pool associated with the protection domain. - // +optional - storagePool?: string @go(StoragePool) @protobuf(6,bytes,opt) - - // Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. - // Default is ThinProvisioned. - // +optional - storageMode?: string @go(StorageMode) @protobuf(7,bytes,opt) - - // The name of a volume already created in the ScaleIO system - // that is associated with this volume source. - volumeName?: string @go(VolumeName) @protobuf(8,bytes,opt) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". - // Default is "xfs" - // +optional - fsType?: string @go(FSType) @protobuf(9,bytes,opt) - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(10,varint,opt) -} - -// Represents a StorageOS persistent volume resource. -#StorageOSVolumeSource: { - // VolumeName is the human-readable name of the StorageOS volume. Volume - // names are only unique within a namespace. - volumeName?: string @go(VolumeName) @protobuf(1,bytes,opt) - - // VolumeNamespace specifies the scope of the volume within StorageOS. If no - // namespace is specified then the Pod's namespace will be used. This allows the - // Kubernetes name scoping to be mirrored within StorageOS for tighter integration. - // Set VolumeName to any name to override the default behaviour. - // Set to "default" if you are not using namespaces within StorageOS. - // Namespaces that do not pre-exist within StorageOS will be created. - // +optional - volumeNamespace?: string @go(VolumeNamespace) @protobuf(2,bytes,opt) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // +optional - fsType?: string @go(FSType) @protobuf(3,bytes,opt) - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(4,varint,opt) - - // SecretRef specifies the secret to use for obtaining the StorageOS API - // credentials. If not specified, default values will be attempted. - // +optional - secretRef?: null | #LocalObjectReference @go(SecretRef,*LocalObjectReference) @protobuf(5,bytes,opt) -} - -// Represents a StorageOS persistent volume resource. -#StorageOSPersistentVolumeSource: { - // VolumeName is the human-readable name of the StorageOS volume. Volume - // names are only unique within a namespace. - volumeName?: string @go(VolumeName) @protobuf(1,bytes,opt) - - // VolumeNamespace specifies the scope of the volume within StorageOS. If no - // namespace is specified then the Pod's namespace will be used. This allows the - // Kubernetes name scoping to be mirrored within StorageOS for tighter integration. - // Set VolumeName to any name to override the default behaviour. - // Set to "default" if you are not using namespaces within StorageOS. - // Namespaces that do not pre-exist within StorageOS will be created. - // +optional - volumeNamespace?: string @go(VolumeNamespace) @protobuf(2,bytes,opt) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // +optional - fsType?: string @go(FSType) @protobuf(3,bytes,opt) - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(4,varint,opt) - - // SecretRef specifies the secret to use for obtaining the StorageOS API - // credentials. If not specified, default values will be attempted. - // +optional - secretRef?: null | #ObjectReference @go(SecretRef,*ObjectReference) @protobuf(5,bytes,opt) -} - -// Adapts a ConfigMap into a volume. -// -// The contents of the target ConfigMap's Data field will be presented in a -// volume as files using the keys in the Data field as the file names, unless -// the items element is populated with specific mappings of keys to paths. -// ConfigMap volumes support ownership management and SELinux relabeling. -#ConfigMapVolumeSource: { - #LocalObjectReference - - // If unspecified, each key-value pair in the Data field of the referenced - // ConfigMap will be projected into the volume as a file whose name is the - // key and content is the value. If specified, the listed keys will be - // projected into the specified paths, and unlisted keys will not be - // present. If a key is specified which is not present in the ConfigMap, - // the volume setup will error unless it is marked optional. Paths must be - // relative and may not contain the '..' path or start with '..'. - // +optional - items?: [...#KeyToPath] @go(Items,[]KeyToPath) @protobuf(2,bytes,rep) - - // Optional: mode bits used to set permissions on created files by default. - // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - // Defaults to 0644. - // Directories within the path are not affected by this setting. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - defaultMode?: null | int32 @go(DefaultMode,*int32) @protobuf(3,varint,opt) - - // Specify whether the ConfigMap or its keys must be defined - // +optional - optional?: null | bool @go(Optional,*bool) @protobuf(4,varint,opt) -} - -#ConfigMapVolumeSourceDefaultMode: int32 & 0o644 - -// Adapts a ConfigMap into a projected volume. -// -// The contents of the target ConfigMap's Data field will be presented in a -// projected volume as files using the keys in the Data field as the file names, -// unless the items element is populated with specific mappings of keys to paths. -// Note that this is identical to a configmap volume source without the default -// mode. -#ConfigMapProjection: { - #LocalObjectReference - - // If unspecified, each key-value pair in the Data field of the referenced - // ConfigMap will be projected into the volume as a file whose name is the - // key and content is the value. If specified, the listed keys will be - // projected into the specified paths, and unlisted keys will not be - // present. If a key is specified which is not present in the ConfigMap, - // the volume setup will error unless it is marked optional. Paths must be - // relative and may not contain the '..' path or start with '..'. - // +optional - items?: [...#KeyToPath] @go(Items,[]KeyToPath) @protobuf(2,bytes,rep) - - // Specify whether the ConfigMap or its keys must be defined - // +optional - optional?: null | bool @go(Optional,*bool) @protobuf(4,varint,opt) -} - -// ServiceAccountTokenProjection represents a projected service account token -// volume. This projection can be used to insert a service account token into -// the pods runtime filesystem for use against APIs (Kubernetes API Server or -// otherwise). -#ServiceAccountTokenProjection: { - // Audience is the intended audience of the token. A recipient of a token - // must identify itself with an identifier specified in the audience of the - // token, and otherwise should reject the token. The audience defaults to the - // identifier of the apiserver. - //+optional - audience?: string @go(Audience) @protobuf(1,bytes,rep) - - // ExpirationSeconds is the requested duration of validity of the service - // account token. As the token approaches expiration, the kubelet volume - // plugin will proactively rotate the service account token. The kubelet will - // start trying to rotate the token if the token is older than 80 percent of - // its time to live or if the token is older than 24 hours.Defaults to 1 hour - // and must be at least 10 minutes. - //+optional - expirationSeconds?: null | int64 @go(ExpirationSeconds,*int64) @protobuf(2,varint,opt) - - // Path is the path relative to the mount point of the file to project the - // token into. - path: string @go(Path) @protobuf(3,bytes,opt) -} - -// Represents a projected volume source -#ProjectedVolumeSource: { - // list of volume projections - // +optional - sources: [...#VolumeProjection] @go(Sources,[]VolumeProjection) @protobuf(1,bytes,rep) - - // Mode bits used to set permissions on created files by default. - // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - // Directories within the path are not affected by this setting. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - defaultMode?: null | int32 @go(DefaultMode,*int32) @protobuf(2,varint,opt) -} - -// Projection that may be projected along with other supported volume types -#VolumeProjection: { - // information about the secret data to project - // +optional - secret?: null | #SecretProjection @go(Secret,*SecretProjection) @protobuf(1,bytes,opt) - - // information about the downwardAPI data to project - // +optional - downwardAPI?: null | #DownwardAPIProjection @go(DownwardAPI,*DownwardAPIProjection) @protobuf(2,bytes,opt) - - // information about the configMap data to project - // +optional - configMap?: null | #ConfigMapProjection @go(ConfigMap,*ConfigMapProjection) @protobuf(3,bytes,opt) - - // information about the serviceAccountToken data to project - // +optional - serviceAccountToken?: null | #ServiceAccountTokenProjection @go(ServiceAccountToken,*ServiceAccountTokenProjection) @protobuf(4,bytes,opt) -} - -#ProjectedVolumeSourceDefaultMode: int32 & 0o644 - -// Maps a string key to a path within a volume. -#KeyToPath: { - // The key to project. - key: string @go(Key) @protobuf(1,bytes,opt) - - // The relative path of the file to map the key to. - // May not be an absolute path. - // May not contain the path element '..'. - // May not start with the string '..'. - path: string @go(Path) @protobuf(2,bytes,opt) - - // Optional: mode bits used to set permissions on this file. - // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - // If not specified, the volume defaultMode will be used. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - mode?: null | int32 @go(Mode,*int32) @protobuf(3,varint,opt) -} - -// Local represents directly-attached storage with node affinity (Beta feature) -#LocalVolumeSource: { - // The full path to the volume on the node. - // It can be either a directory or block device (disk, partition, ...). - path: string @go(Path) @protobuf(1,bytes,opt) - - // Filesystem type to mount. - // It applies only when the Path is a block device. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified. - // +optional - fsType?: null | string @go(FSType,*string) @protobuf(2,bytes,opt) -} - -// Represents storage that is managed by an external CSI volume driver (Beta feature) -#CSIPersistentVolumeSource: { - // Driver is the name of the driver to use for this volume. - // Required. - driver: string @go(Driver) @protobuf(1,bytes,opt) - - // VolumeHandle is the unique volume name returned by the CSI volume - // plugin’s CreateVolume to refer to the volume on all subsequent calls. - // Required. - volumeHandle: string @go(VolumeHandle) @protobuf(2,bytes,opt) - - // Optional: The value to pass to ControllerPublishVolumeRequest. - // Defaults to false (read/write). - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(3,varint,opt) - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". - // +optional - fsType?: string @go(FSType) @protobuf(4,bytes,opt) - - // Attributes of the volume to publish. - // +optional - volumeAttributes?: {[string]: string} @go(VolumeAttributes,map[string]string) @protobuf(5,bytes,rep) - - // ControllerPublishSecretRef is a reference to the secret object containing - // sensitive information to pass to the CSI driver to complete the CSI - // ControllerPublishVolume and ControllerUnpublishVolume calls. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secrets are passed. - // +optional - controllerPublishSecretRef?: null | #SecretReference @go(ControllerPublishSecretRef,*SecretReference) @protobuf(6,bytes,opt) - - // NodeStageSecretRef is a reference to the secret object containing sensitive - // information to pass to the CSI driver to complete the CSI NodeStageVolume - // and NodeStageVolume and NodeUnstageVolume calls. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secrets are passed. - // +optional - nodeStageSecretRef?: null | #SecretReference @go(NodeStageSecretRef,*SecretReference) @protobuf(7,bytes,opt) - - // NodePublishSecretRef is a reference to the secret object containing - // sensitive information to pass to the CSI driver to complete the CSI - // NodePublishVolume and NodeUnpublishVolume calls. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secrets are passed. - // +optional - nodePublishSecretRef?: null | #SecretReference @go(NodePublishSecretRef,*SecretReference) @protobuf(8,bytes,opt) - - // ControllerExpandSecretRef is a reference to the secret object containing - // sensitive information to pass to the CSI driver to complete the CSI - // ControllerExpandVolume call. - // This is an alpha field and requires enabling ExpandCSIVolumes feature gate. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secrets are passed. - // +optional - controllerExpandSecretRef?: null | #SecretReference @go(ControllerExpandSecretRef,*SecretReference) @protobuf(9,bytes,opt) -} - -// Represents a source location of a volume to mount, managed by an external CSI driver -#CSIVolumeSource: { - // Driver is the name of the CSI driver that handles this volume. - // Consult with your admin for the correct name as registered in the cluster. - driver: string @go(Driver) @protobuf(1,bytes,opt) - - // Specifies a read-only configuration for the volume. - // Defaults to false (read/write). - // +optional - readOnly?: null | bool @go(ReadOnly,*bool) @protobuf(2,varint,opt) - - // Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". - // If not provided, the empty value is passed to the associated CSI driver - // which will determine the default filesystem to apply. - // +optional - fsType?: null | string @go(FSType,*string) @protobuf(3,bytes,opt) - - // VolumeAttributes stores driver-specific properties that are passed to the CSI - // driver. Consult your driver's documentation for supported values. - // +optional - volumeAttributes?: {[string]: string} @go(VolumeAttributes,map[string]string) @protobuf(4,bytes,rep) - - // NodePublishSecretRef is a reference to the secret object containing - // sensitive information to pass to the CSI driver to complete the CSI - // NodePublishVolume and NodeUnpublishVolume calls. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secret references are passed. - // +optional - nodePublishSecretRef?: null | #LocalObjectReference @go(NodePublishSecretRef,*LocalObjectReference) @protobuf(5,bytes,opt) -} - -// Represents an ephemeral volume that is handled by a normal storage driver. -#EphemeralVolumeSource: { - // Will be used to create a stand-alone PVC to provision the volume. - // The pod in which this EphemeralVolumeSource is embedded will be the - // owner of the PVC, i.e. the PVC will be deleted together with the - // pod. The name of the PVC will be `-` where - // `` is the name from the `PodSpec.Volumes` array - // entry. Pod validation will reject the pod if the concatenated name - // is not valid for a PVC (for example, too long). - // - // An existing PVC with that name that is not owned by the pod - // will *not* be used for the pod to avoid using an unrelated - // volume by mistake. Starting the pod is then blocked until - // the unrelated PVC is removed. If such a pre-created PVC is - // meant to be used by the pod, the PVC has to updated with an - // owner reference to the pod once the pod exists. Normally - // this should not be necessary, but it may be useful when - // manually reconstructing a broken cluster. - // - // This field is read-only and no changes will be made by Kubernetes - // to the PVC after it has been created. - // - // Required, must not be nil. - volumeClaimTemplate?: null | #PersistentVolumeClaimTemplate @go(VolumeClaimTemplate,*PersistentVolumeClaimTemplate) @protobuf(1,bytes,opt) -} - -// PersistentVolumeClaimTemplate is used to produce -// PersistentVolumeClaim objects as part of an EphemeralVolumeSource. -#PersistentVolumeClaimTemplate: { - // May contain labels and annotations that will be copied into the PVC - // when creating it. No other fields are allowed and will be rejected during - // validation. - // - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // The specification for the PersistentVolumeClaim. The entire content is - // copied unchanged into the PVC that gets created from this - // template. The same fields as in a PersistentVolumeClaim - // are also valid here. - spec: #PersistentVolumeClaimSpec @go(Spec) @protobuf(2,bytes) -} - -// ContainerPort represents a network port in a single container. -#ContainerPort: { - // If specified, this must be an IANA_SVC_NAME and unique within the pod. Each - // named port in a pod must have a unique name. Name for the port that can be - // referred to by services. - // +optional - name?: string @go(Name) @protobuf(1,bytes,opt) - - // Number of port to expose on the host. - // If specified, this must be a valid port number, 0 < x < 65536. - // If HostNetwork is specified, this must match ContainerPort. - // Most containers do not need this. - // +optional - hostPort?: int32 @go(HostPort) @protobuf(2,varint,opt) - - // Number of port to expose on the pod's IP address. - // This must be a valid port number, 0 < x < 65536. - containerPort: int32 @go(ContainerPort) @protobuf(3,varint,opt) - - // Protocol for port. Must be UDP, TCP, or SCTP. - // Defaults to "TCP". - // +optional - // +default="TCP" - protocol?: #Protocol @go(Protocol) @protobuf(4,bytes,opt,casttype=Protocol) - - // What host IP to bind the external port to. - // +optional - hostIP?: string @go(HostIP) @protobuf(5,bytes,opt) -} - -// VolumeMount describes a mounting of a Volume within a container. -#VolumeMount: { - // This must match the Name of a Volume. - name: string @go(Name) @protobuf(1,bytes,opt) - - // Mounted read-only if true, read-write otherwise (false or unspecified). - // Defaults to false. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(2,varint,opt) - - // Path within the container at which the volume should be mounted. Must - // not contain ':'. - mountPath: string @go(MountPath) @protobuf(3,bytes,opt) - - // Path within the volume from which the container's volume should be mounted. - // Defaults to "" (volume's root). - // +optional - subPath?: string @go(SubPath) @protobuf(4,bytes,opt) - - // mountPropagation determines how mounts are propagated from the host - // to container and the other way around. - // When not set, MountPropagationNone is used. - // This field is beta in 1.10. - // +optional - mountPropagation?: null | #MountPropagationMode @go(MountPropagation,*MountPropagationMode) @protobuf(5,bytes,opt,casttype=MountPropagationMode) - - // Expanded path within the volume from which the container's volume should be mounted. - // Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. - // Defaults to "" (volume's root). - // SubPathExpr and SubPath are mutually exclusive. - // +optional - subPathExpr?: string @go(SubPathExpr) @protobuf(6,bytes,opt) -} - -// MountPropagationMode describes mount propagation. -// +enum -#MountPropagationMode: string // #enumMountPropagationMode - -#enumMountPropagationMode: - #MountPropagationNone | - #MountPropagationHostToContainer | - #MountPropagationBidirectional - -// MountPropagationNone means that the volume in a container will -// not receive new mounts from the host or other containers, and filesystems -// mounted inside the container won't be propagated to the host or other -// containers. -// Note that this mode corresponds to "private" in Linux terminology. -#MountPropagationNone: #MountPropagationMode & "None" - -// MountPropagationHostToContainer means that the volume in a container will -// receive new mounts from the host or other containers, but filesystems -// mounted inside the container won't be propagated to the host or other -// containers. -// Note that this mode is recursively applied to all mounts in the volume -// ("rslave" in Linux terminology). -#MountPropagationHostToContainer: #MountPropagationMode & "HostToContainer" - -// MountPropagationBidirectional means that the volume in a container will -// receive new mounts from the host or other containers, and its own mounts -// will be propagated from the container to the host or other containers. -// Note that this mode is recursively applied to all mounts in the volume -// ("rshared" in Linux terminology). -#MountPropagationBidirectional: #MountPropagationMode & "Bidirectional" - -// volumeDevice describes a mapping of a raw block device within a container. -#VolumeDevice: { - // name must match the name of a persistentVolumeClaim in the pod - name: string @go(Name) @protobuf(1,bytes,opt) - - // devicePath is the path inside of the container that the device will be mapped to. - devicePath: string @go(DevicePath) @protobuf(2,bytes,opt) -} - -// EnvVar represents an environment variable present in a Container. -#EnvVar: { - // Name of the environment variable. Must be a C_IDENTIFIER. - name: string @go(Name) @protobuf(1,bytes,opt) - - // Variable references $(VAR_NAME) are expanded - // using the previously defined environment variables in the container and - // any service environment variables. If a variable cannot be resolved, - // the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. - // "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". - // Escaped references will never be expanded, regardless of whether the variable - // exists or not. - // Defaults to "". - // +optional - value?: string @go(Value) @protobuf(2,bytes,opt) - - // Source for the environment variable's value. Cannot be used if value is not empty. - // +optional - valueFrom?: null | #EnvVarSource @go(ValueFrom,*EnvVarSource) @protobuf(3,bytes,opt) -} - -// EnvVarSource represents a source for the value of an EnvVar. -#EnvVarSource: { - // Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, - // spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. - // +optional - fieldRef?: null | #ObjectFieldSelector @go(FieldRef,*ObjectFieldSelector) @protobuf(1,bytes,opt) - - // Selects a resource of the container: only resources limits and requests - // (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - // +optional - resourceFieldRef?: null | #ResourceFieldSelector @go(ResourceFieldRef,*ResourceFieldSelector) @protobuf(2,bytes,opt) - - // Selects a key of a ConfigMap. - // +optional - configMapKeyRef?: null | #ConfigMapKeySelector @go(ConfigMapKeyRef,*ConfigMapKeySelector) @protobuf(3,bytes,opt) - - // Selects a key of a secret in the pod's namespace - // +optional - secretKeyRef?: null | #SecretKeySelector @go(SecretKeyRef,*SecretKeySelector) @protobuf(4,bytes,opt) -} - -// ObjectFieldSelector selects an APIVersioned field of an object. -// +structType=atomic -#ObjectFieldSelector: { - // Version of the schema the FieldPath is written in terms of, defaults to "v1". - // +optional - apiVersion?: string @go(APIVersion) @protobuf(1,bytes,opt) - - // Path of the field to select in the specified API version. - fieldPath: string @go(FieldPath) @protobuf(2,bytes,opt) -} - -// ResourceFieldSelector represents container resources (cpu, memory) and their output format -// +structType=atomic -#ResourceFieldSelector: { - // Container name: required for volumes, optional for env vars - // +optional - containerName?: string @go(ContainerName) @protobuf(1,bytes,opt) - - // Required: resource to select - "resource": string @go(Resource) @protobuf(2,bytes,opt) - - // Specifies the output format of the exposed resources, defaults to "1" - // +optional - divisor?: resource.#Quantity @go(Divisor) @protobuf(3,bytes,opt) -} - -// Selects a key from a ConfigMap. -// +structType=atomic -#ConfigMapKeySelector: { - #LocalObjectReference - - // The key to select. - key: string @go(Key) @protobuf(2,bytes,opt) - - // Specify whether the ConfigMap or its key must be defined - // +optional - optional?: null | bool @go(Optional,*bool) @protobuf(3,varint,opt) -} - -// SecretKeySelector selects a key of a Secret. -// +structType=atomic -#SecretKeySelector: { - #LocalObjectReference - - // The key of the secret to select from. Must be a valid secret key. - key: string @go(Key) @protobuf(2,bytes,opt) - - // Specify whether the Secret or its key must be defined - // +optional - optional?: null | bool @go(Optional,*bool) @protobuf(3,varint,opt) -} - -// EnvFromSource represents the source of a set of ConfigMaps -#EnvFromSource: { - // An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - // +optional - prefix?: string @go(Prefix) @protobuf(1,bytes,opt) - - // The ConfigMap to select from - // +optional - configMapRef?: null | #ConfigMapEnvSource @go(ConfigMapRef,*ConfigMapEnvSource) @protobuf(2,bytes,opt) - - // The Secret to select from - // +optional - secretRef?: null | #SecretEnvSource @go(SecretRef,*SecretEnvSource) @protobuf(3,bytes,opt) -} - -// ConfigMapEnvSource selects a ConfigMap to populate the environment -// variables with. -// -// The contents of the target ConfigMap's Data field will represent the -// key-value pairs as environment variables. -#ConfigMapEnvSource: { - #LocalObjectReference - - // Specify whether the ConfigMap must be defined - // +optional - optional?: null | bool @go(Optional,*bool) @protobuf(2,varint,opt) -} - -// SecretEnvSource selects a Secret to populate the environment -// variables with. -// -// The contents of the target Secret's Data field will represent the -// key-value pairs as environment variables. -#SecretEnvSource: { - #LocalObjectReference - - // Specify whether the Secret must be defined - // +optional - optional?: null | bool @go(Optional,*bool) @protobuf(2,varint,opt) -} - -// HTTPHeader describes a custom header to be used in HTTP probes -#HTTPHeader: { - // The header field name - name: string @go(Name) @protobuf(1,bytes,opt) - - // The header field value - value: string @go(Value) @protobuf(2,bytes,opt) -} - -// HTTPGetAction describes an action based on HTTP Get requests. -#HTTPGetAction: { - // Path to access on the HTTP server. - // +optional - path?: string @go(Path) @protobuf(1,bytes,opt) - - // Name or number of the port to access on the container. - // Number must be in the range 1 to 65535. - // Name must be an IANA_SVC_NAME. - port: intstr.#IntOrString @go(Port) @protobuf(2,bytes,opt) - - // Host name to connect to, defaults to the pod IP. You probably want to set - // "Host" in httpHeaders instead. - // +optional - host?: string @go(Host) @protobuf(3,bytes,opt) - - // Scheme to use for connecting to the host. - // Defaults to HTTP. - // +optional - scheme?: #URIScheme @go(Scheme) @protobuf(4,bytes,opt,casttype=URIScheme) - - // Custom headers to set in the request. HTTP allows repeated headers. - // +optional - httpHeaders?: [...#HTTPHeader] @go(HTTPHeaders,[]HTTPHeader) @protobuf(5,bytes,rep) -} - -// URIScheme identifies the scheme used for connection to a host for Get actions -// +enum -#URIScheme: string // #enumURIScheme - -#enumURIScheme: - #URISchemeHTTP | - #URISchemeHTTPS - -// URISchemeHTTP means that the scheme used will be http:// -#URISchemeHTTP: #URIScheme & "HTTP" - -// URISchemeHTTPS means that the scheme used will be https:// -#URISchemeHTTPS: #URIScheme & "HTTPS" - -// TCPSocketAction describes an action based on opening a socket -#TCPSocketAction: { - // Number or name of the port to access on the container. - // Number must be in the range 1 to 65535. - // Name must be an IANA_SVC_NAME. - port: intstr.#IntOrString @go(Port) @protobuf(1,bytes,opt) - - // Optional: Host name to connect to, defaults to the pod IP. - // +optional - host?: string @go(Host) @protobuf(2,bytes,opt) -} - -#GRPCAction: { - // Port number of the gRPC service. Number must be in the range 1 to 65535. - port: int32 @go(Port) @protobuf(1,bytes,opt) - - // Service is the name of the service to place in the gRPC HealthCheckRequest - // (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). - // - // If this is not specified, the default behavior is defined by gRPC. - // +optional - // +default="" - service?: null | string @go(Service,*string) @protobuf(2,bytes,opt) -} - -// ExecAction describes a "run in container" action. -#ExecAction: { - // Command is the command line to execute inside the container, the working directory for the - // command is root ('/') in the container's filesystem. The command is simply exec'd, it is - // not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use - // a shell, you need to explicitly call out to that shell. - // Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - // +optional - command?: [...string] @go(Command,[]string) @protobuf(1,bytes,rep) -} - -// Probe describes a health check to be performed against a container to determine whether it is -// alive or ready to receive traffic. -#Probe: { - #ProbeHandler - - // Number of seconds after the container has started before liveness probes are initiated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - initialDelaySeconds?: int32 @go(InitialDelaySeconds) @protobuf(2,varint,opt) - - // Number of seconds after which the probe times out. - // Defaults to 1 second. Minimum value is 1. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - timeoutSeconds?: int32 @go(TimeoutSeconds) @protobuf(3,varint,opt) - - // How often (in seconds) to perform the probe. - // Default to 10 seconds. Minimum value is 1. - // +optional - periodSeconds?: int32 @go(PeriodSeconds) @protobuf(4,varint,opt) - - // Minimum consecutive successes for the probe to be considered successful after having failed. - // Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - // +optional - successThreshold?: int32 @go(SuccessThreshold) @protobuf(5,varint,opt) - - // Minimum consecutive failures for the probe to be considered failed after having succeeded. - // Defaults to 3. Minimum value is 1. - // +optional - failureThreshold?: int32 @go(FailureThreshold) @protobuf(6,varint,opt) - - // Optional duration in seconds the pod needs to terminate gracefully upon probe failure. - // The grace period is the duration in seconds after the processes running in the pod are sent - // a termination signal and the time when the processes are forcibly halted with a kill signal. - // Set this value longer than the expected cleanup time for your process. - // If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this - // value overrides the value provided by the pod spec. - // Value must be non-negative integer. The value zero indicates stop immediately via - // the kill signal (no opportunity to shut down). - // This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. - // Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. - // +optional - terminationGracePeriodSeconds?: null | int64 @go(TerminationGracePeriodSeconds,*int64) @protobuf(7,varint,opt) -} - -// PullPolicy describes a policy for if/when to pull a container image -// +enum -#PullPolicy: string // #enumPullPolicy - -#enumPullPolicy: - #PullAlways | - #PullNever | - #PullIfNotPresent - -// PullAlways means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. -#PullAlways: #PullPolicy & "Always" - -// PullNever means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present -#PullNever: #PullPolicy & "Never" - -// PullIfNotPresent means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. -#PullIfNotPresent: #PullPolicy & "IfNotPresent" - -// PreemptionPolicy describes a policy for if/when to preempt a pod. -// +enum -#PreemptionPolicy: string // #enumPreemptionPolicy - -#enumPreemptionPolicy: - #PreemptLowerPriority | - #PreemptNever - -// PreemptLowerPriority means that pod can preempt other pods with lower priority. -#PreemptLowerPriority: #PreemptionPolicy & "PreemptLowerPriority" - -// PreemptNever means that pod never preempts other pods with lower priority. -#PreemptNever: #PreemptionPolicy & "Never" - -// TerminationMessagePolicy describes how termination messages are retrieved from a container. -// +enum -#TerminationMessagePolicy: string // #enumTerminationMessagePolicy - -#enumTerminationMessagePolicy: - #TerminationMessageReadFile | - #TerminationMessageFallbackToLogsOnError - -// TerminationMessageReadFile is the default behavior and will set the container status message to -// the contents of the container's terminationMessagePath when the container exits. -#TerminationMessageReadFile: #TerminationMessagePolicy & "File" - -// TerminationMessageFallbackToLogsOnError will read the most recent contents of the container logs -// for the container status message when the container exits with an error and the -// terminationMessagePath has no contents. -#TerminationMessageFallbackToLogsOnError: #TerminationMessagePolicy & "FallbackToLogsOnError" - -// Capability represent POSIX capabilities type -#Capability: string - -// Adds and removes POSIX capabilities from running containers. -#Capabilities: { - // Added capabilities - // +optional - add?: [...#Capability] @go(Add,[]Capability) @protobuf(1,bytes,rep,casttype=Capability) - - // Removed capabilities - // +optional - drop?: [...#Capability] @go(Drop,[]Capability) @protobuf(2,bytes,rep,casttype=Capability) -} - -// ResourceRequirements describes the compute resource requirements. -#ResourceRequirements: { - // Limits describes the maximum amount of compute resources allowed. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - // +optional - limits?: #ResourceList @go(Limits) @protobuf(1,bytes,rep,casttype=ResourceList,castkey=ResourceName) - - // Requests describes the minimum amount of compute resources required. - // If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, - // otherwise to an implementation-defined value. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - // +optional - requests?: #ResourceList @go(Requests) @protobuf(2,bytes,rep,casttype=ResourceList,castkey=ResourceName) -} - -// TerminationMessagePathDefault means the default path to capture the application termination message running in a container -#TerminationMessagePathDefault: "/dev/termination-log" - -// A single application container that you want to run within a pod. -#Container: { - // Name of the container specified as a DNS_LABEL. - // Each container in a pod must have a unique name (DNS_LABEL). - // Cannot be updated. - name: string @go(Name) @protobuf(1,bytes,opt) - - // Docker image name. - // More info: https://kubernetes.io/docs/concepts/containers/images - // This field is optional to allow higher level config management to default or override - // container images in workload controllers like Deployments and StatefulSets. - // +optional - image?: string @go(Image) @protobuf(2,bytes,opt) - - // Entrypoint array. Not executed within a shell. - // The docker image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - command?: [...string] @go(Command,[]string) @protobuf(3,bytes,rep) - - // Arguments to the entrypoint. - // The docker image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - args?: [...string] @go(Args,[]string) @protobuf(4,bytes,rep) - - // Container's working directory. - // If not specified, the container runtime's default will be used, which - // might be configured in the container image. - // Cannot be updated. - // +optional - workingDir?: string @go(WorkingDir) @protobuf(5,bytes,opt) - - // List of ports to expose from the container. Exposing a port here gives - // the system additional information about the network connections a - // container uses, but is primarily informational. Not specifying a port here - // DOES NOT prevent that port from being exposed. Any port which is - // listening on the default "0.0.0.0" address inside a container will be - // accessible from the network. - // Cannot be updated. - // +optional - // +patchMergeKey=containerPort - // +patchStrategy=merge - // +listType=map - // +listMapKey=containerPort - // +listMapKey=protocol - ports?: [...#ContainerPort] @go(Ports,[]ContainerPort) @protobuf(6,bytes,rep) - - // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - envFrom?: [...#EnvFromSource] @go(EnvFrom,[]EnvFromSource) @protobuf(19,bytes,rep) - - // List of environment variables to set in the container. - // Cannot be updated. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - env?: [...#EnvVar] @go(Env,[]EnvVar) @protobuf(7,bytes,rep) - - // Compute Resources required by this container. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - // +optional - resources?: #ResourceRequirements @go(Resources) @protobuf(8,bytes,opt) - - // Pod volumes to mount into the container's filesystem. - // Cannot be updated. - // +optional - // +patchMergeKey=mountPath - // +patchStrategy=merge - volumeMounts?: [...#VolumeMount] @go(VolumeMounts,[]VolumeMount) @protobuf(9,bytes,rep) - - // volumeDevices is the list of block devices to be used by the container. - // +patchMergeKey=devicePath - // +patchStrategy=merge - // +optional - volumeDevices?: [...#VolumeDevice] @go(VolumeDevices,[]VolumeDevice) @protobuf(21,bytes,rep) - - // Periodic probe of container liveness. - // Container will be restarted if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - livenessProbe?: null | #Probe @go(LivenessProbe,*Probe) @protobuf(10,bytes,opt) - - // Periodic probe of container service readiness. - // Container will be removed from service endpoints if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - readinessProbe?: null | #Probe @go(ReadinessProbe,*Probe) @protobuf(11,bytes,opt) - - // StartupProbe indicates that the Pod has successfully initialized. - // If specified, no other probes are executed until this completes successfully. - // If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. - // This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, - // when it might take a long time to load data or warm a cache, than during steady-state operation. - // This cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - startupProbe?: null | #Probe @go(StartupProbe,*Probe) @protobuf(22,bytes,opt) - - // Actions that the management system should take in response to container lifecycle events. - // Cannot be updated. - // +optional - lifecycle?: null | #Lifecycle @go(Lifecycle,*Lifecycle) @protobuf(12,bytes,opt) - - // Optional: Path at which the file to which the container's termination message - // will be written is mounted into the container's filesystem. - // Message written is intended to be brief final status, such as an assertion failure message. - // Will be truncated by the node if greater than 4096 bytes. The total message length across - // all containers will be limited to 12kb. - // Defaults to /dev/termination-log. - // Cannot be updated. - // +optional - terminationMessagePath?: string @go(TerminationMessagePath) @protobuf(13,bytes,opt) - - // Indicate how the termination message should be populated. File will use the contents of - // terminationMessagePath to populate the container status message on both success and failure. - // FallbackToLogsOnError will use the last chunk of container log output if the termination - // message file is empty and the container exited with an error. - // The log output is limited to 2048 bytes or 80 lines, whichever is smaller. - // Defaults to File. - // Cannot be updated. - // +optional - terminationMessagePolicy?: #TerminationMessagePolicy @go(TerminationMessagePolicy) @protobuf(20,bytes,opt,casttype=TerminationMessagePolicy) - - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - imagePullPolicy?: #PullPolicy @go(ImagePullPolicy) @protobuf(14,bytes,opt,casttype=PullPolicy) - - // SecurityContext defines the security options the container should be run with. - // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - securityContext?: null | #SecurityContext @go(SecurityContext,*SecurityContext) @protobuf(15,bytes,opt) - - // Whether this container should allocate a buffer for stdin in the container runtime. If this - // is not set, reads from stdin in the container will always result in EOF. - // Default is false. - // +optional - stdin?: bool @go(Stdin) @protobuf(16,varint,opt) - - // Whether the container runtime should close the stdin channel after it has been opened by - // a single attach. When stdin is true the stdin stream will remain open across multiple attach - // sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the - // first client attaches to stdin, and then remains open and accepts data until the client disconnects, - // at which time stdin is closed and remains closed until the container is restarted. If this - // flag is false, a container processes that reads from stdin will never receive an EOF. - // Default is false - // +optional - stdinOnce?: bool @go(StdinOnce) @protobuf(17,varint,opt) - - // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. - // Default is false. - // +optional - tty?: bool @go(TTY) @protobuf(18,varint,opt) -} - -// ProbeHandler defines a specific action that should be taken in a probe. -// One and only one of the fields must be specified. -#ProbeHandler: { - // Exec specifies the action to take. - // +optional - exec?: null | #ExecAction @go(Exec,*ExecAction) @protobuf(1,bytes,opt) - - // HTTPGet specifies the http request to perform. - // +optional - httpGet?: null | #HTTPGetAction @go(HTTPGet,*HTTPGetAction) @protobuf(2,bytes,opt) - - // TCPSocket specifies an action involving a TCP port. - // +optional - tcpSocket?: null | #TCPSocketAction @go(TCPSocket,*TCPSocketAction) @protobuf(3,bytes,opt) - - // GRPC specifies an action involving a GRPC port. - // This is an alpha field and requires enabling GRPCContainerProbe feature gate. - // +featureGate=GRPCContainerProbe - // +optional - grpc?: null | #GRPCAction @go(GRPC,*GRPCAction) @protobuf(4,bytes,opt) -} - -// LifecycleHandler defines a specific action that should be taken in a lifecycle -// hook. One and only one of the fields, except TCPSocket must be specified. -#LifecycleHandler: { - // Exec specifies the action to take. - // +optional - exec?: null | #ExecAction @go(Exec,*ExecAction) @protobuf(1,bytes,opt) - - // HTTPGet specifies the http request to perform. - // +optional - httpGet?: null | #HTTPGetAction @go(HTTPGet,*HTTPGetAction) @protobuf(2,bytes,opt) - - // Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - // for the backward compatibility. There are no validation of this field and - // lifecycle hooks will fail in runtime when tcp handler is specified. - // +optional - tcpSocket?: null | #TCPSocketAction @go(TCPSocket,*TCPSocketAction) @protobuf(3,bytes,opt) -} - -// Lifecycle describes actions that the management system should take in response to container lifecycle -// events. For the PostStart and PreStop lifecycle handlers, management of the container blocks -// until the action is complete, unless the container process fails, in which case the handler is aborted. -#Lifecycle: { - // PostStart is called immediately after a container is created. If the handler fails, - // the container is terminated and restarted according to its restart policy. - // Other management of the container blocks until the hook completes. - // More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - // +optional - postStart?: null | #LifecycleHandler @go(PostStart,*LifecycleHandler) @protobuf(1,bytes,opt) - - // PreStop is called immediately before a container is terminated due to an - // API request or management event such as liveness/startup probe failure, - // preemption, resource contention, etc. The handler is not called if the - // container crashes or exits. The Pod's termination grace period countdown begins before the - // PreStop hook is executed. Regardless of the outcome of the handler, the - // container will eventually terminate within the Pod's termination grace - // period (unless delayed by finalizers). Other management of the container blocks until the hook completes - // or until the termination grace period is reached. - // More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - // +optional - preStop?: null | #LifecycleHandler @go(PreStop,*LifecycleHandler) @protobuf(2,bytes,opt) -} - -#ConditionStatus: string // #enumConditionStatus - -#enumConditionStatus: - #ConditionTrue | - #ConditionFalse | - #ConditionUnknown - -#ConditionTrue: #ConditionStatus & "True" -#ConditionFalse: #ConditionStatus & "False" -#ConditionUnknown: #ConditionStatus & "Unknown" - -// ContainerStateWaiting is a waiting state of a container. -#ContainerStateWaiting: { - // (brief) reason the container is not yet running. - // +optional - reason?: string @go(Reason) @protobuf(1,bytes,opt) - - // Message regarding why the container is not yet running. - // +optional - message?: string @go(Message) @protobuf(2,bytes,opt) -} - -// ContainerStateRunning is a running state of a container. -#ContainerStateRunning: { - // Time at which the container was last (re-)started - // +optional - startedAt?: metav1.#Time @go(StartedAt) @protobuf(1,bytes,opt) -} - -// ContainerStateTerminated is a terminated state of a container. -#ContainerStateTerminated: { - // Exit status from the last termination of the container - exitCode: int32 @go(ExitCode) @protobuf(1,varint,opt) - - // Signal from the last termination of the container - // +optional - signal?: int32 @go(Signal) @protobuf(2,varint,opt) - - // (brief) reason from the last termination of the container - // +optional - reason?: string @go(Reason) @protobuf(3,bytes,opt) - - // Message regarding the last termination of the container - // +optional - message?: string @go(Message) @protobuf(4,bytes,opt) - - // Time at which previous execution of the container started - // +optional - startedAt?: metav1.#Time @go(StartedAt) @protobuf(5,bytes,opt) - - // Time at which the container last terminated - // +optional - finishedAt?: metav1.#Time @go(FinishedAt) @protobuf(6,bytes,opt) - - // Container's ID in the format 'docker://' - // +optional - containerID?: string @go(ContainerID) @protobuf(7,bytes,opt) -} - -// ContainerState holds a possible state of container. -// Only one of its members may be specified. -// If none of them is specified, the default one is ContainerStateWaiting. -#ContainerState: { - // Details about a waiting container - // +optional - waiting?: null | #ContainerStateWaiting @go(Waiting,*ContainerStateWaiting) @protobuf(1,bytes,opt) - - // Details about a running container - // +optional - running?: null | #ContainerStateRunning @go(Running,*ContainerStateRunning) @protobuf(2,bytes,opt) - - // Details about a terminated container - // +optional - terminated?: null | #ContainerStateTerminated @go(Terminated,*ContainerStateTerminated) @protobuf(3,bytes,opt) -} - -// ContainerStatus contains details for the current status of this container. -#ContainerStatus: { - // This must be a DNS_LABEL. Each container in a pod must have a unique name. - // Cannot be updated. - name: string @go(Name) @protobuf(1,bytes,opt) - - // Details about the container's current condition. - // +optional - state?: #ContainerState @go(State) @protobuf(2,bytes,opt) - - // Details about the container's last termination condition. - // +optional - lastState?: #ContainerState @go(LastTerminationState) @protobuf(3,bytes,opt) - - // Specifies whether the container has passed its readiness probe. - ready: bool @go(Ready) @protobuf(4,varint,opt) - - // The number of times the container has been restarted. - restartCount: int32 @go(RestartCount) @protobuf(5,varint,opt) - - // The image the container is running. - // More info: https://kubernetes.io/docs/concepts/containers/images. - image: string @go(Image) @protobuf(6,bytes,opt) - - // ImageID of the container's image. - imageID: string @go(ImageID) @protobuf(7,bytes,opt) - - // Container's ID in the format 'docker://'. - // +optional - containerID?: string @go(ContainerID) @protobuf(8,bytes,opt) - - // Specifies whether the container has passed its startup probe. - // Initialized as false, becomes true after startupProbe is considered successful. - // Resets to false when the container is restarted, or if kubelet loses state temporarily. - // Is always true when no startupProbe is defined. - // +optional - started?: null | bool @go(Started,*bool) @protobuf(9,varint,opt) -} - -// PodPhase is a label for the condition of a pod at the current time. -// +enum -#PodPhase: string // #enumPodPhase - -#enumPodPhase: - #PodPending | - #PodRunning | - #PodSucceeded | - #PodFailed | - #PodUnknown - -// PodPending means the pod has been accepted by the system, but one or more of the containers -// has not been started. This includes time before being bound to a node, as well as time spent -// pulling images onto the host. -#PodPending: #PodPhase & "Pending" - -// PodRunning means the pod has been bound to a node and all of the containers have been started. -// At least one container is still running or is in the process of being restarted. -#PodRunning: #PodPhase & "Running" - -// PodSucceeded means that all containers in the pod have voluntarily terminated -// with a container exit code of 0, and the system is not going to restart any of these containers. -#PodSucceeded: #PodPhase & "Succeeded" - -// PodFailed means that all containers in the pod have terminated, and at least one container has -// terminated in a failure (exited with a non-zero exit code or was stopped by the system). -#PodFailed: #PodPhase & "Failed" - -// PodUnknown means that for some reason the state of the pod could not be obtained, typically due -// to an error in communicating with the host of the pod. -// Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095) -#PodUnknown: #PodPhase & "Unknown" - -// PodConditionType is a valid value for PodCondition.Type -// +enum -#PodConditionType: string // #enumPodConditionType - -#enumPodConditionType: - #ContainersReady | - #PodInitialized | - #PodReady | - #PodScheduled - -// ContainersReady indicates whether all containers in the pod are ready. -#ContainersReady: #PodConditionType & "ContainersReady" - -// PodInitialized means that all init containers in the pod have started successfully. -#PodInitialized: #PodConditionType & "Initialized" - -// PodReady means the pod is able to service requests and should be added to the -// load balancing pools of all matching services. -#PodReady: #PodConditionType & "Ready" - -// PodScheduled represents status of the scheduling process for this pod. -#PodScheduled: #PodConditionType & "PodScheduled" - -// PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler -// can't schedule the pod right now, for example due to insufficient resources in the cluster. -#PodReasonUnschedulable: "Unschedulable" - -// PodCondition contains details for the current condition of this pod. -#PodCondition: { - // Type is the type of the condition. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - type: #PodConditionType @go(Type) @protobuf(1,bytes,opt,casttype=PodConditionType) - - // Status is the status of the condition. - // Can be True, False, Unknown. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - status: #ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=ConditionStatus) - - // Last time we probed the condition. - // +optional - lastProbeTime?: metav1.#Time @go(LastProbeTime) @protobuf(3,bytes,opt) - - // Last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(4,bytes,opt) - - // Unique, one-word, CamelCase reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(5,bytes,opt) - - // Human-readable message indicating details about last transition. - // +optional - message?: string @go(Message) @protobuf(6,bytes,opt) -} - -// RestartPolicy describes how the container should be restarted. -// Only one of the following restart policies may be specified. -// If none of the following policies is specified, the default one -// is RestartPolicyAlways. -// +enum -#RestartPolicy: string // #enumRestartPolicy - -#enumRestartPolicy: - #RestartPolicyAlways | - #RestartPolicyOnFailure | - #RestartPolicyNever - -#RestartPolicyAlways: #RestartPolicy & "Always" -#RestartPolicyOnFailure: #RestartPolicy & "OnFailure" -#RestartPolicyNever: #RestartPolicy & "Never" - -// DNSPolicy defines how a pod's DNS will be configured. -// +enum -#DNSPolicy: string // #enumDNSPolicy - -#enumDNSPolicy: - #DNSClusterFirstWithHostNet | - #DNSClusterFirst | - #DNSDefault | - #DNSNone - -// DNSClusterFirstWithHostNet indicates that the pod should use cluster DNS -// first, if it is available, then fall back on the default -// (as determined by kubelet) DNS settings. -#DNSClusterFirstWithHostNet: #DNSPolicy & "ClusterFirstWithHostNet" - -// DNSClusterFirst indicates that the pod should use cluster DNS -// first unless hostNetwork is true, if it is available, then -// fall back on the default (as determined by kubelet) DNS settings. -#DNSClusterFirst: #DNSPolicy & "ClusterFirst" - -// DNSDefault indicates that the pod should use the default (as -// determined by kubelet) DNS settings. -#DNSDefault: #DNSPolicy & "Default" - -// DNSNone indicates that the pod should use empty DNS settings. DNS -// parameters such as nameservers and search paths should be defined via -// DNSConfig. -#DNSNone: #DNSPolicy & "None" - -// DefaultTerminationGracePeriodSeconds indicates the default duration in -// seconds a pod needs to terminate gracefully. -#DefaultTerminationGracePeriodSeconds: 30 - -// A node selector represents the union of the results of one or more label queries -// over a set of nodes; that is, it represents the OR of the selectors represented -// by the node selector terms. -// +structType=atomic -#NodeSelector: { - //Required. A list of node selector terms. The terms are ORed. - nodeSelectorTerms: [...#NodeSelectorTerm] @go(NodeSelectorTerms,[]NodeSelectorTerm) @protobuf(1,bytes,rep) -} - -// A null or empty node selector term matches no objects. The requirements of -// them are ANDed. -// The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. -// +structType=atomic -#NodeSelectorTerm: { - // A list of node selector requirements by node's labels. - // +optional - matchExpressions?: [...#NodeSelectorRequirement] @go(MatchExpressions,[]NodeSelectorRequirement) @protobuf(1,bytes,rep) - - // A list of node selector requirements by node's fields. - // +optional - matchFields?: [...#NodeSelectorRequirement] @go(MatchFields,[]NodeSelectorRequirement) @protobuf(2,bytes,rep) -} - -// A node selector requirement is a selector that contains values, a key, and an operator -// that relates the key and values. -#NodeSelectorRequirement: { - // The label key that the selector applies to. - key: string @go(Key) @protobuf(1,bytes,opt) - - // Represents a key's relationship to a set of values. - // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - operator: #NodeSelectorOperator @go(Operator) @protobuf(2,bytes,opt,casttype=NodeSelectorOperator) - - // An array of string values. If the operator is In or NotIn, - // the values array must be non-empty. If the operator is Exists or DoesNotExist, - // the values array must be empty. If the operator is Gt or Lt, the values - // array must have a single element, which will be interpreted as an integer. - // This array is replaced during a strategic merge patch. - // +optional - values?: [...string] @go(Values,[]string) @protobuf(3,bytes,rep) -} - -// A node selector operator is the set of operators that can be used in -// a node selector requirement. -// +enum -#NodeSelectorOperator: string // #enumNodeSelectorOperator - -#enumNodeSelectorOperator: - #NodeSelectorOpIn | - #NodeSelectorOpNotIn | - #NodeSelectorOpExists | - #NodeSelectorOpDoesNotExist | - #NodeSelectorOpGt | - #NodeSelectorOpLt - -#NodeSelectorOpIn: #NodeSelectorOperator & "In" -#NodeSelectorOpNotIn: #NodeSelectorOperator & "NotIn" -#NodeSelectorOpExists: #NodeSelectorOperator & "Exists" -#NodeSelectorOpDoesNotExist: #NodeSelectorOperator & "DoesNotExist" -#NodeSelectorOpGt: #NodeSelectorOperator & "Gt" -#NodeSelectorOpLt: #NodeSelectorOperator & "Lt" - -// A topology selector term represents the result of label queries. -// A null or empty topology selector term matches no objects. -// The requirements of them are ANDed. -// It provides a subset of functionality as NodeSelectorTerm. -// This is an alpha feature and may change in the future. -// +structType=atomic -#TopologySelectorTerm: { - // A list of topology selector requirements by labels. - // +optional - matchLabelExpressions?: [...#TopologySelectorLabelRequirement] @go(MatchLabelExpressions,[]TopologySelectorLabelRequirement) @protobuf(1,bytes,rep) -} - -// A topology selector requirement is a selector that matches given label. -// This is an alpha feature and may change in the future. -#TopologySelectorLabelRequirement: { - // The label key that the selector applies to. - key: string @go(Key) @protobuf(1,bytes,opt) - - // An array of string values. One value must match the label to be selected. - // Each entry in Values is ORed. - values: [...string] @go(Values,[]string) @protobuf(2,bytes,rep) -} - -// Affinity is a group of affinity scheduling rules. -#Affinity: { - // Describes node affinity scheduling rules for the pod. - // +optional - nodeAffinity?: null | #NodeAffinity @go(NodeAffinity,*NodeAffinity) @protobuf(1,bytes,opt) - - // Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - // +optional - podAffinity?: null | #PodAffinity @go(PodAffinity,*PodAffinity) @protobuf(2,bytes,opt) - - // Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - // +optional - podAntiAffinity?: null | #PodAntiAffinity @go(PodAntiAffinity,*PodAntiAffinity) @protobuf(3,bytes,opt) -} - -// Pod affinity is a group of inter pod affinity scheduling rules. -#PodAffinity: { - // If the affinity requirements specified by this field are not met at - // scheduling time, the pod will not be scheduled onto the node. - // If the affinity requirements specified by this field cease to be met - // at some point during pod execution (e.g. due to a pod label update), the - // system may or may not try to eventually evict the pod from its node. - // When there are multiple elements, the lists of nodes corresponding to each - // podAffinityTerm are intersected, i.e. all terms must be satisfied. - // +optional - requiredDuringSchedulingIgnoredDuringExecution?: [...#PodAffinityTerm] @go(RequiredDuringSchedulingIgnoredDuringExecution,[]PodAffinityTerm) @protobuf(1,bytes,rep) - - // The scheduler will prefer to schedule pods to nodes that satisfy - // the affinity expressions specified by this field, but it may choose - // a node that violates one or more of the expressions. The node that is - // most preferred is the one with the greatest sum of weights, i.e. - // for each node that meets all of the scheduling requirements (resource - // request, requiredDuringScheduling affinity expressions, etc.), - // compute a sum by iterating through the elements of this field and adding - // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - // node(s) with the highest sum are the most preferred. - // +optional - preferredDuringSchedulingIgnoredDuringExecution?: [...#WeightedPodAffinityTerm] @go(PreferredDuringSchedulingIgnoredDuringExecution,[]WeightedPodAffinityTerm) @protobuf(2,bytes,rep) -} - -// Pod anti affinity is a group of inter pod anti affinity scheduling rules. -#PodAntiAffinity: { - // If the anti-affinity requirements specified by this field are not met at - // scheduling time, the pod will not be scheduled onto the node. - // If the anti-affinity requirements specified by this field cease to be met - // at some point during pod execution (e.g. due to a pod label update), the - // system may or may not try to eventually evict the pod from its node. - // When there are multiple elements, the lists of nodes corresponding to each - // podAffinityTerm are intersected, i.e. all terms must be satisfied. - // +optional - requiredDuringSchedulingIgnoredDuringExecution?: [...#PodAffinityTerm] @go(RequiredDuringSchedulingIgnoredDuringExecution,[]PodAffinityTerm) @protobuf(1,bytes,rep) - - // The scheduler will prefer to schedule pods to nodes that satisfy - // the anti-affinity expressions specified by this field, but it may choose - // a node that violates one or more of the expressions. The node that is - // most preferred is the one with the greatest sum of weights, i.e. - // for each node that meets all of the scheduling requirements (resource - // request, requiredDuringScheduling anti-affinity expressions, etc.), - // compute a sum by iterating through the elements of this field and adding - // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - // node(s) with the highest sum are the most preferred. - // +optional - preferredDuringSchedulingIgnoredDuringExecution?: [...#WeightedPodAffinityTerm] @go(PreferredDuringSchedulingIgnoredDuringExecution,[]WeightedPodAffinityTerm) @protobuf(2,bytes,rep) -} - -// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) -#WeightedPodAffinityTerm: { - // weight associated with matching the corresponding podAffinityTerm, - // in the range 1-100. - weight: int32 @go(Weight) @protobuf(1,varint,opt) - - // Required. A pod affinity term, associated with the corresponding weight. - podAffinityTerm: #PodAffinityTerm @go(PodAffinityTerm) @protobuf(2,bytes,opt) -} - -// Defines a set of pods (namely those matching the labelSelector -// relative to the given namespace(s)) that this pod should be -// co-located (affinity) or not co-located (anti-affinity) with, -// where co-located is defined as running on a node whose value of -// the label with key matches that of any node on which -// a pod of the set of pods is running -#PodAffinityTerm: { - // A label query over a set of resources, in this case pods. - // +optional - labelSelector?: null | metav1.#LabelSelector @go(LabelSelector,*metav1.LabelSelector) @protobuf(1,bytes,opt) - - // namespaces specifies a static list of namespace names that the term applies to. - // The term is applied to the union of the namespaces listed in this field - // and the ones selected by namespaceSelector. - // null or empty namespaces list and null namespaceSelector means "this pod's namespace" - // +optional - namespaces?: [...string] @go(Namespaces,[]string) @protobuf(2,bytes,rep) - - // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - // the labelSelector in the specified namespaces, where co-located is defined as running on a node - // whose value of the label with key topologyKey matches that of any node on which any of the - // selected pods is running. - // Empty topologyKey is not allowed. - topologyKey: string @go(TopologyKey) @protobuf(3,bytes,opt) - - // A label query over the set of namespaces that the term applies to. - // The term is applied to the union of the namespaces selected by this field - // and the ones listed in the namespaces field. - // null selector and null or empty namespaces list means "this pod's namespace". - // An empty selector ({}) matches all namespaces. - // This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled. - // +optional - namespaceSelector?: null | metav1.#LabelSelector @go(NamespaceSelector,*metav1.LabelSelector) @protobuf(4,bytes,opt) -} - -// Node affinity is a group of node affinity scheduling rules. -#NodeAffinity: { - // If the affinity requirements specified by this field are not met at - // scheduling time, the pod will not be scheduled onto the node. - // If the affinity requirements specified by this field cease to be met - // at some point during pod execution (e.g. due to an update), the system - // may or may not try to eventually evict the pod from its node. - // +optional - requiredDuringSchedulingIgnoredDuringExecution?: null | #NodeSelector @go(RequiredDuringSchedulingIgnoredDuringExecution,*NodeSelector) @protobuf(1,bytes,opt) - - // The scheduler will prefer to schedule pods to nodes that satisfy - // the affinity expressions specified by this field, but it may choose - // a node that violates one or more of the expressions. The node that is - // most preferred is the one with the greatest sum of weights, i.e. - // for each node that meets all of the scheduling requirements (resource - // request, requiredDuringScheduling affinity expressions, etc.), - // compute a sum by iterating through the elements of this field and adding - // "weight" to the sum if the node matches the corresponding matchExpressions; the - // node(s) with the highest sum are the most preferred. - // +optional - preferredDuringSchedulingIgnoredDuringExecution?: [...#PreferredSchedulingTerm] @go(PreferredDuringSchedulingIgnoredDuringExecution,[]PreferredSchedulingTerm) @protobuf(2,bytes,rep) -} - -// An empty preferred scheduling term matches all objects with implicit weight 0 -// (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). -#PreferredSchedulingTerm: { - // Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - weight: int32 @go(Weight) @protobuf(1,varint,opt) - - // A node selector term, associated with the corresponding weight. - preference: #NodeSelectorTerm @go(Preference) @protobuf(2,bytes,opt) -} - -// The node this Taint is attached to has the "effect" on -// any pod that does not tolerate the Taint. -#Taint: { - // Required. The taint key to be applied to a node. - key: string @go(Key) @protobuf(1,bytes,opt) - - // The taint value corresponding to the taint key. - // +optional - value?: string @go(Value) @protobuf(2,bytes,opt) - - // Required. The effect of the taint on pods - // that do not tolerate the taint. - // Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - effect: #TaintEffect @go(Effect) @protobuf(3,bytes,opt,casttype=TaintEffect) - - // TimeAdded represents the time at which the taint was added. - // It is only written for NoExecute taints. - // +optional - timeAdded?: null | metav1.#Time @go(TimeAdded,*metav1.Time) @protobuf(4,bytes,opt) -} - -// +enum -#TaintEffect: string // #enumTaintEffect - -#enumTaintEffect: - #TaintEffectNoSchedule | - #TaintEffectPreferNoSchedule | - #TaintEffectNoExecute - -// Do not allow new pods to schedule onto the node unless they tolerate the taint, -// but allow all pods submitted to Kubelet without going through the scheduler -// to start, and allow all already-running pods to continue running. -// Enforced by the scheduler. -#TaintEffectNoSchedule: #TaintEffect & "NoSchedule" - -// Like TaintEffectNoSchedule, but the scheduler tries not to schedule -// new pods onto the node, rather than prohibiting new pods from scheduling -// onto the node entirely. Enforced by the scheduler. -#TaintEffectPreferNoSchedule: #TaintEffect & "PreferNoSchedule" - -// Evict any already-running pods that do not tolerate the taint. -// Currently enforced by NodeController. -#TaintEffectNoExecute: #TaintEffect & "NoExecute" - -// The pod this Toleration is attached to tolerates any taint that matches -// the triple using the matching operator . -#Toleration: { - // Key is the taint key that the toleration applies to. Empty means match all taint keys. - // If the key is empty, operator must be Exists; this combination means to match all values and all keys. - // +optional - key?: string @go(Key) @protobuf(1,bytes,opt) - - // Operator represents a key's relationship to the value. - // Valid operators are Exists and Equal. Defaults to Equal. - // Exists is equivalent to wildcard for value, so that a pod can - // tolerate all taints of a particular category. - // +optional - operator?: #TolerationOperator @go(Operator) @protobuf(2,bytes,opt,casttype=TolerationOperator) - - // Value is the taint value the toleration matches to. - // If the operator is Exists, the value should be empty, otherwise just a regular string. - // +optional - value?: string @go(Value) @protobuf(3,bytes,opt) - - // Effect indicates the taint effect to match. Empty means match all taint effects. - // When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - // +optional - effect?: #TaintEffect @go(Effect) @protobuf(4,bytes,opt,casttype=TaintEffect) - - // TolerationSeconds represents the period of time the toleration (which must be - // of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, - // it is not set, which means tolerate the taint forever (do not evict). Zero and - // negative values will be treated as 0 (evict immediately) by the system. - // +optional - tolerationSeconds?: null | int64 @go(TolerationSeconds,*int64) @protobuf(5,varint,opt) -} - -// A toleration operator is the set of operators that can be used in a toleration. -// +enum -#TolerationOperator: string // #enumTolerationOperator - -#enumTolerationOperator: - #TolerationOpExists | - #TolerationOpEqual - -#TolerationOpExists: #TolerationOperator & "Exists" -#TolerationOpEqual: #TolerationOperator & "Equal" - -// PodReadinessGate contains the reference to a pod condition -#PodReadinessGate: { - // ConditionType refers to a condition in the pod's condition list with matching type. - conditionType: #PodConditionType @go(ConditionType) @protobuf(1,bytes,opt,casttype=PodConditionType) -} - -// PodSpec is a description of a pod. -#PodSpec: { - // List of volumes that can be mounted by containers belonging to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes - // +optional - // +patchMergeKey=name - // +patchStrategy=merge,retainKeys - volumes?: [...#Volume] @go(Volumes,[]Volume) @protobuf(1,bytes,rep) - - // List of initialization containers belonging to the pod. - // Init containers are executed in order prior to containers being started. If any - // init container fails, the pod is considered to have failed and is handled according - // to its restartPolicy. The name for an init container or normal container must be - // unique among all containers. - // Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. - // The resourceRequirements of an init container are taken into account during scheduling - // by finding the highest request/limit for each resource type, and then using the max of - // of that value or the sum of the normal containers. Limits are applied to init containers - // in a similar fashion. - // Init containers cannot currently be added or removed. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - // +patchMergeKey=name - // +patchStrategy=merge - initContainers?: [...#Container] @go(InitContainers,[]Container) @protobuf(20,bytes,rep) - - // List of containers belonging to the pod. - // Containers cannot currently be added or removed. - // There must be at least one container in a Pod. - // Cannot be updated. - // +patchMergeKey=name - // +patchStrategy=merge - containers: [...#Container] @go(Containers,[]Container) @protobuf(2,bytes,rep) - - // List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing - // pod to perform user-initiated actions such as debugging. This list cannot be specified when - // creating a pod, and it cannot be modified by updating the pod spec. In order to add an - // ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. - // This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - ephemeralContainers?: [...#EphemeralContainer] @go(EphemeralContainers,[]EphemeralContainer) @protobuf(34,bytes,rep) - - // Restart policy for all containers within the pod. - // One of Always, OnFailure, Never. - // Default to Always. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - // +optional - restartPolicy?: #RestartPolicy @go(RestartPolicy) @protobuf(3,bytes,opt,casttype=RestartPolicy) - - // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. - // Value must be non-negative integer. The value zero indicates stop immediately via - // the kill signal (no opportunity to shut down). - // If this value is nil, the default grace period will be used instead. - // The grace period is the duration in seconds after the processes running in the pod are sent - // a termination signal and the time when the processes are forcibly halted with a kill signal. - // Set this value longer than the expected cleanup time for your process. - // Defaults to 30 seconds. - // +optional - terminationGracePeriodSeconds?: null | int64 @go(TerminationGracePeriodSeconds,*int64) @protobuf(4,varint,opt) - - // Optional duration in seconds the pod may be active on the node relative to - // StartTime before the system will actively try to mark it failed and kill associated containers. - // Value must be a positive integer. - // +optional - activeDeadlineSeconds?: null | int64 @go(ActiveDeadlineSeconds,*int64) @protobuf(5,varint,opt) - - // Set DNS policy for the pod. - // Defaults to "ClusterFirst". - // Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. - // DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. - // To have DNS options set along with hostNetwork, you have to specify DNS policy - // explicitly to 'ClusterFirstWithHostNet'. - // +optional - dnsPolicy?: #DNSPolicy @go(DNSPolicy) @protobuf(6,bytes,opt,casttype=DNSPolicy) - - // NodeSelector is a selector which must be true for the pod to fit on a node. - // Selector which must match a node's labels for the pod to be scheduled on that node. - // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - // +optional - // +mapType=atomic - nodeSelector?: {[string]: string} @go(NodeSelector,map[string]string) @protobuf(7,bytes,rep) - - // ServiceAccountName is the name of the ServiceAccount to use to run this pod. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - // +optional - serviceAccountName?: string @go(ServiceAccountName) @protobuf(8,bytes,opt) - - // DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. - // Deprecated: Use serviceAccountName instead. - // +k8s:conversion-gen=false - // +optional - serviceAccount?: string @go(DeprecatedServiceAccount) @protobuf(9,bytes,opt) - - // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - // +optional - automountServiceAccountToken?: null | bool @go(AutomountServiceAccountToken,*bool) @protobuf(21,varint,opt) - - // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, - // the scheduler simply schedules this pod onto that node, assuming that it fits resource - // requirements. - // +optional - nodeName?: string @go(NodeName) @protobuf(10,bytes,opt) - - // Host networking requested for this pod. Use the host's network namespace. - // If this option is set, the ports that will be used must be specified. - // Default to false. - // +k8s:conversion-gen=false - // +optional - hostNetwork?: bool @go(HostNetwork) @protobuf(11,varint,opt) - - // Use the host's pid namespace. - // Optional: Default to false. - // +k8s:conversion-gen=false - // +optional - hostPID?: bool @go(HostPID) @protobuf(12,varint,opt) - - // Use the host's ipc namespace. - // Optional: Default to false. - // +k8s:conversion-gen=false - // +optional - hostIPC?: bool @go(HostIPC) @protobuf(13,varint,opt) - - // Share a single process namespace between all of the containers in a pod. - // When this is set containers will be able to view and signal processes from other containers - // in the same pod, and the first process in each container will not be assigned PID 1. - // HostPID and ShareProcessNamespace cannot both be set. - // Optional: Default to false. - // +k8s:conversion-gen=false - // +optional - shareProcessNamespace?: null | bool @go(ShareProcessNamespace,*bool) @protobuf(27,varint,opt) - - // SecurityContext holds pod-level security attributes and common container settings. - // Optional: Defaults to empty. See type description for default values of each field. - // +optional - securityContext?: null | #PodSecurityContext @go(SecurityContext,*PodSecurityContext) @protobuf(14,bytes,opt) - - // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. - // If specified, these secrets will be passed to individual puller implementations for them to use. For example, - // in the case of docker, only DockerConfig type secrets are honored. - // More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - imagePullSecrets?: [...#LocalObjectReference] @go(ImagePullSecrets,[]LocalObjectReference) @protobuf(15,bytes,rep) - - // Specifies the hostname of the Pod - // If not specified, the pod's hostname will be set to a system-defined value. - // +optional - hostname?: string @go(Hostname) @protobuf(16,bytes,opt) - - // If specified, the fully qualified Pod hostname will be "...svc.". - // If not specified, the pod will not have a domainname at all. - // +optional - subdomain?: string @go(Subdomain) @protobuf(17,bytes,opt) - - // If specified, the pod's scheduling constraints - // +optional - affinity?: null | #Affinity @go(Affinity,*Affinity) @protobuf(18,bytes,opt) - - // If specified, the pod will be dispatched by specified scheduler. - // If not specified, the pod will be dispatched by default scheduler. - // +optional - schedulerName?: string @go(SchedulerName) @protobuf(19,bytes,opt) - - // If specified, the pod's tolerations. - // +optional - tolerations?: [...#Toleration] @go(Tolerations,[]Toleration) @protobuf(22,bytes,opt) - - // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts - // file if specified. This is only valid for non-hostNetwork pods. - // +optional - // +patchMergeKey=ip - // +patchStrategy=merge - hostAliases?: [...#HostAlias] @go(HostAliases,[]HostAlias) @protobuf(23,bytes,rep) - - // If specified, indicates the pod's priority. "system-node-critical" and - // "system-cluster-critical" are two special keywords which indicate the - // highest priorities with the former being the highest priority. Any other - // name must be defined by creating a PriorityClass object with that name. - // If not specified, the pod priority will be default or zero if there is no - // default. - // +optional - priorityClassName?: string @go(PriorityClassName) @protobuf(24,bytes,opt) - - // The priority value. Various system components use this field to find the - // priority of the pod. When Priority Admission Controller is enabled, it - // prevents users from setting this field. The admission controller populates - // this field from PriorityClassName. - // The higher the value, the higher the priority. - // +optional - priority?: null | int32 @go(Priority,*int32) @protobuf(25,bytes,opt) - - // Specifies the DNS parameters of a pod. - // Parameters specified here will be merged to the generated DNS - // configuration based on DNSPolicy. - // +optional - dnsConfig?: null | #PodDNSConfig @go(DNSConfig,*PodDNSConfig) @protobuf(26,bytes,opt) - - // If specified, all readiness gates will be evaluated for pod readiness. - // A pod is ready when all its containers are ready AND - // all conditions specified in the readiness gates have status equal to "True" - // More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates - // +optional - readinessGates?: [...#PodReadinessGate] @go(ReadinessGates,[]PodReadinessGate) @protobuf(28,bytes,opt) - - // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used - // to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. - // If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an - // empty definition that uses the default runtime handler. - // More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class - // This is a beta feature as of Kubernetes v1.14. - // +optional - runtimeClassName?: null | string @go(RuntimeClassName,*string) @protobuf(29,bytes,opt) - - // EnableServiceLinks indicates whether information about services should be injected into pod's - // environment variables, matching the syntax of Docker links. - // Optional: Defaults to true. - // +optional - enableServiceLinks?: null | bool @go(EnableServiceLinks,*bool) @protobuf(30,varint,opt) - - // PreemptionPolicy is the Policy for preempting pods with lower priority. - // One of Never, PreemptLowerPriority. - // Defaults to PreemptLowerPriority if unset. - // This field is beta-level, gated by the NonPreemptingPriority feature-gate. - // +optional - preemptionPolicy?: null | #PreemptionPolicy @go(PreemptionPolicy,*PreemptionPolicy) @protobuf(31,bytes,opt) - - // Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. - // This field will be autopopulated at admission time by the RuntimeClass admission controller. If - // the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. - // The RuntimeClass admission controller will reject Pod create requests which have the overhead already - // set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value - // defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. - // More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md - // This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature. - // +optional - overhead?: #ResourceList @go(Overhead) @protobuf(32,bytes,opt) - - // TopologySpreadConstraints describes how a group of pods ought to spread across topology - // domains. Scheduler will schedule pods in a way which abides by the constraints. - // All topologySpreadConstraints are ANDed. - // +optional - // +patchMergeKey=topologyKey - // +patchStrategy=merge - // +listType=map - // +listMapKey=topologyKey - // +listMapKey=whenUnsatisfiable - topologySpreadConstraints?: [...#TopologySpreadConstraint] @go(TopologySpreadConstraints,[]TopologySpreadConstraint) @protobuf(33,bytes,opt) - - // If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). - // In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). - // In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. - // If a pod does not have FQDN, this has no effect. - // Default to false. - // +optional - setHostnameAsFQDN?: null | bool @go(SetHostnameAsFQDN,*bool) @protobuf(35,varint,opt) - - // Specifies the OS of the containers in the pod. - // Some pod and container fields are restricted if this is set. - // - // If the OS field is set to linux, the following fields must be unset: - // -securityContext.windowsOptions - // - // If the OS field is set to windows, following fields must be unset: - // - spec.hostPID - // - spec.hostIPC - // - spec.securityContext.seLinuxOptions - // - spec.securityContext.seccompProfile - // - spec.securityContext.fsGroup - // - spec.securityContext.fsGroupChangePolicy - // - spec.securityContext.sysctls - // - spec.shareProcessNamespace - // - spec.securityContext.runAsUser - // - spec.securityContext.runAsGroup - // - spec.securityContext.supplementalGroups - // - spec.containers[*].securityContext.seLinuxOptions - // - spec.containers[*].securityContext.seccompProfile - // - spec.containers[*].securityContext.capabilities - // - spec.containers[*].securityContext.readOnlyRootFilesystem - // - spec.containers[*].securityContext.privileged - // - spec.containers[*].securityContext.allowPrivilegeEscalation - // - spec.containers[*].securityContext.procMount - // - spec.containers[*].securityContext.runAsUser - // - spec.containers[*].securityContext.runAsGroup - // +optional - // This is an alpha field and requires the IdentifyPodOS feature - os?: null | #PodOS @go(OS,*PodOS) @protobuf(36,bytes,opt) -} - -// OSName is the set of OS'es that can be used in OS. -#OSName: string // #enumOSName - -#enumOSName: - #Linux | - #Windows - -#Linux: #OSName & "linux" -#Windows: #OSName & "windows" - -// PodOS defines the OS parameters of a pod. -#PodOS: { - // Name is the name of the operating system. The currently supported values are linux and windows. - // Additional value may be defined in future and can be one of: - // https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration - // Clients should expect to handle additional values and treat unrecognized values in this field as os: null - name: #OSName @go(Name) @protobuf(1,bytes,opt) -} - -// +enum -#UnsatisfiableConstraintAction: string // #enumUnsatisfiableConstraintAction - -#enumUnsatisfiableConstraintAction: - #DoNotSchedule | - #ScheduleAnyway - -// DoNotSchedule instructs the scheduler not to schedule the pod -// when constraints are not satisfied. -#DoNotSchedule: #UnsatisfiableConstraintAction & "DoNotSchedule" - -// ScheduleAnyway instructs the scheduler to schedule the pod -// even if constraints are not satisfied. -#ScheduleAnyway: #UnsatisfiableConstraintAction & "ScheduleAnyway" - -// TopologySpreadConstraint specifies how to spread matching pods among the given topology. -#TopologySpreadConstraint: { - // MaxSkew describes the degree to which pods may be unevenly distributed. - // When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference - // between the number of matching pods in the target topology and the global minimum. - // For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - // labelSelector spread as 1/1/0: - // +-------+-------+-------+ - // | zone1 | zone2 | zone3 | - // +-------+-------+-------+ - // | P | P | | - // +-------+-------+-------+ - // - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; - // scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) - // violate MaxSkew(1). - // - if MaxSkew is 2, incoming pod can be scheduled onto any zone. - // When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence - // to topologies that satisfy it. - // It's a required field. Default value is 1 and 0 is not allowed. - maxSkew: int32 @go(MaxSkew) @protobuf(1,varint,opt) - - // TopologyKey is the key of node labels. Nodes that have a label with this key - // and identical values are considered to be in the same topology. - // We consider each as a "bucket", and try to put balanced number - // of pods into each bucket. - // It's a required field. - topologyKey: string @go(TopologyKey) @protobuf(2,bytes,opt) - - // WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy - // the spread constraint. - // - DoNotSchedule (default) tells the scheduler not to schedule it. - // - ScheduleAnyway tells the scheduler to schedule the pod in any location, - // but giving higher precedence to topologies that would help reduce the - // skew. - // A constraint is considered "Unsatisfiable" for an incoming pod - // if and only if every possible node assignment for that pod would violate - // "MaxSkew" on some topology. - // For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - // labelSelector spread as 3/1/1: - // +-------+-------+-------+ - // | zone1 | zone2 | zone3 | - // +-------+-------+-------+ - // | P P P | P | P | - // +-------+-------+-------+ - // If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled - // to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies - // MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler - // won't make it *more* imbalanced. - // It's a required field. - whenUnsatisfiable: #UnsatisfiableConstraintAction @go(WhenUnsatisfiable) @protobuf(3,bytes,opt,casttype=UnsatisfiableConstraintAction) - - // LabelSelector is used to find matching pods. - // Pods that match this label selector are counted to determine the number of pods - // in their corresponding topology domain. - // +optional - labelSelector?: null | metav1.#LabelSelector @go(LabelSelector,*metav1.LabelSelector) @protobuf(4,bytes,opt) -} - -// The default value for enableServiceLinks attribute. -#DefaultEnableServiceLinks: true - -// HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the -// pod's hosts file. -#HostAlias: { - // IP address of the host file entry. - ip?: string @go(IP) @protobuf(1,bytes,opt) - - // Hostnames for the above IP address. - hostnames?: [...string] @go(Hostnames,[]string) @protobuf(2,bytes,rep) -} - -// PodFSGroupChangePolicy holds policies that will be used for applying fsGroup to a volume -// when volume is mounted. -// +enum -#PodFSGroupChangePolicy: string // #enumPodFSGroupChangePolicy - -#enumPodFSGroupChangePolicy: - #FSGroupChangeOnRootMismatch | - #FSGroupChangeAlways - -// FSGroupChangeOnRootMismatch indicates that volume's ownership and permissions will be changed -// only when permission and ownership of root directory does not match with expected -// permissions on the volume. This can help shorten the time it takes to change -// ownership and permissions of a volume. -#FSGroupChangeOnRootMismatch: #PodFSGroupChangePolicy & "OnRootMismatch" - -// FSGroupChangeAlways indicates that volume's ownership and permissions -// should always be changed whenever volume is mounted inside a Pod. This the default -// behavior. -#FSGroupChangeAlways: #PodFSGroupChangePolicy & "Always" - -// PodSecurityContext holds pod-level security attributes and common container settings. -// Some fields are also present in container.securityContext. Field values of -// container.securityContext take precedence over field values of PodSecurityContext. -#PodSecurityContext: { - // The SELinux context to be applied to all containers. - // If unspecified, the container runtime will allocate a random SELinux context for each - // container. May also be set in SecurityContext. If set in - // both SecurityContext and PodSecurityContext, the value specified in SecurityContext - // takes precedence for that container. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - seLinuxOptions?: null | #SELinuxOptions @go(SELinuxOptions,*SELinuxOptions) @protobuf(1,bytes,opt) - - // The Windows specific settings applied to all containers. - // If unspecified, the options within a container's SecurityContext will be used. - // If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - // Note that this field cannot be set when spec.os.name is linux. - // +optional - windowsOptions?: null | #WindowsSecurityContextOptions @go(WindowsOptions,*WindowsSecurityContextOptions) @protobuf(8,bytes,opt) - - // The UID to run the entrypoint of the container process. - // Defaults to user specified in image metadata if unspecified. - // May also be set in SecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence - // for that container. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - runAsUser?: null | int64 @go(RunAsUser,*int64) @protobuf(2,varint,opt) - - // The GID to run the entrypoint of the container process. - // Uses runtime default if unset. - // May also be set in SecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence - // for that container. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - runAsGroup?: null | int64 @go(RunAsGroup,*int64) @protobuf(6,varint,opt) - - // Indicates that the container must run as a non-root user. - // If true, the Kubelet will validate the image at runtime to ensure that it - // does not run as UID 0 (root) and fail to start the container if it does. - // If unset or false, no such validation will be performed. - // May also be set in SecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - runAsNonRoot?: null | bool @go(RunAsNonRoot,*bool) @protobuf(3,varint,opt) - - // A list of groups applied to the first process run in each container, in addition - // to the container's primary GID. If unspecified, no groups will be added to - // any container. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - supplementalGroups?: [...int64] @go(SupplementalGroups,[]int64) @protobuf(4,varint,rep) - - // A special supplemental group that applies to all containers in a pod. - // Some volume types allow the Kubelet to change the ownership of that volume - // to be owned by the pod: - // - // 1. The owning GID will be the FSGroup - // 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) - // 3. The permission bits are OR'd with rw-rw---- - // - // If unset, the Kubelet will not modify the ownership and permissions of any volume. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - fsGroup?: null | int64 @go(FSGroup,*int64) @protobuf(5,varint,opt) - - // Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported - // sysctls (by the container runtime) might fail to launch. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - sysctls?: [...#Sysctl] @go(Sysctls,[]Sysctl) @protobuf(7,bytes,rep) - - // fsGroupChangePolicy defines behavior of changing ownership and permission of the volume - // before being exposed inside Pod. This field will only apply to - // volume types which support fsGroup based ownership(and permissions). - // It will have no effect on ephemeral volume types such as: secret, configmaps - // and emptydir. - // Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - fsGroupChangePolicy?: null | #PodFSGroupChangePolicy @go(FSGroupChangePolicy,*PodFSGroupChangePolicy) @protobuf(9,bytes,opt) - - // The seccomp options to use by the containers in this pod. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - seccompProfile?: null | #SeccompProfile @go(SeccompProfile,*SeccompProfile) @protobuf(10,bytes,opt) -} - -// SeccompProfile defines a pod/container's seccomp profile settings. -// Only one profile source may be set. -// +union -#SeccompProfile: { - // type indicates which kind of seccomp profile will be applied. - // Valid options are: - // - // Localhost - a profile defined in a file on the node should be used. - // RuntimeDefault - the container runtime default profile should be used. - // Unconfined - no profile should be applied. - // +unionDiscriminator - type: #SeccompProfileType @go(Type) @protobuf(1,bytes,opt,casttype=SeccompProfileType) - - // localhostProfile indicates a profile defined in a file on the node should be used. - // The profile must be preconfigured on the node to work. - // Must be a descending path, relative to the kubelet's configured seccomp profile location. - // Must only be set if type is "Localhost". - // +optional - localhostProfile?: null | string @go(LocalhostProfile,*string) @protobuf(2,bytes,opt) -} - -// SeccompProfileType defines the supported seccomp profile types. -// +enum -#SeccompProfileType: string // #enumSeccompProfileType - -#enumSeccompProfileType: - #SeccompProfileTypeUnconfined | - #SeccompProfileTypeRuntimeDefault | - #SeccompProfileTypeLocalhost - -// SeccompProfileTypeUnconfined indicates no seccomp profile is applied (A.K.A. unconfined). -#SeccompProfileTypeUnconfined: #SeccompProfileType & "Unconfined" - -// SeccompProfileTypeRuntimeDefault represents the default container runtime seccomp profile. -#SeccompProfileTypeRuntimeDefault: #SeccompProfileType & "RuntimeDefault" - -// SeccompProfileTypeLocalhost indicates a profile defined in a file on the node should be used. -// The file's location relative to /seccomp. -#SeccompProfileTypeLocalhost: #SeccompProfileType & "Localhost" - -// PodQOSClass defines the supported qos classes of Pods. -// +enum -#PodQOSClass: string // #enumPodQOSClass - -#enumPodQOSClass: - #PodQOSGuaranteed | - #PodQOSBurstable | - #PodQOSBestEffort - -// PodQOSGuaranteed is the Guaranteed qos class. -#PodQOSGuaranteed: #PodQOSClass & "Guaranteed" - -// PodQOSBurstable is the Burstable qos class. -#PodQOSBurstable: #PodQOSClass & "Burstable" - -// PodQOSBestEffort is the BestEffort qos class. -#PodQOSBestEffort: #PodQOSClass & "BestEffort" - -// PodDNSConfig defines the DNS parameters of a pod in addition to -// those generated from DNSPolicy. -#PodDNSConfig: { - // A list of DNS name server IP addresses. - // This will be appended to the base nameservers generated from DNSPolicy. - // Duplicated nameservers will be removed. - // +optional - nameservers?: [...string] @go(Nameservers,[]string) @protobuf(1,bytes,rep) - - // A list of DNS search domains for host-name lookup. - // This will be appended to the base search paths generated from DNSPolicy. - // Duplicated search paths will be removed. - // +optional - searches?: [...string] @go(Searches,[]string) @protobuf(2,bytes,rep) - - // A list of DNS resolver options. - // This will be merged with the base options generated from DNSPolicy. - // Duplicated entries will be removed. Resolution options given in Options - // will override those that appear in the base DNSPolicy. - // +optional - options?: [...#PodDNSConfigOption] @go(Options,[]PodDNSConfigOption) @protobuf(3,bytes,rep) -} - -// PodDNSConfigOption defines DNS resolver options of a pod. -#PodDNSConfigOption: { - // Required. - name?: string @go(Name) @protobuf(1,bytes,opt) - - // +optional - value?: null | string @go(Value,*string) @protobuf(2,bytes,opt) -} - -// IP address information for entries in the (plural) PodIPs field. -// Each entry includes: -// IP: An IP address allocated to the pod. Routable at least within the cluster. -#PodIP: { - // ip is an IP address (IPv4 or IPv6) assigned to the pod - ip?: string @go(IP) @protobuf(1,bytes,opt) -} - -// EphemeralContainerCommon is a copy of all fields in Container to be inlined in -// EphemeralContainer. This separate type allows easy conversion from EphemeralContainer -// to Container and allows separate documentation for the fields of EphemeralContainer. -// When a new field is added to Container it must be added here as well. -#EphemeralContainerCommon: { - // Name of the ephemeral container specified as a DNS_LABEL. - // This name must be unique among all containers, init containers and ephemeral containers. - name: string @go(Name) @protobuf(1,bytes,opt) - - // Docker image name. - // More info: https://kubernetes.io/docs/concepts/containers/images - image?: string @go(Image) @protobuf(2,bytes,opt) - - // Entrypoint array. Not executed within a shell. - // The docker image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - command?: [...string] @go(Command,[]string) @protobuf(3,bytes,rep) - - // Arguments to the entrypoint. - // The docker image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced - // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will - // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless - // of whether the variable exists or not. Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - args?: [...string] @go(Args,[]string) @protobuf(4,bytes,rep) - - // Container's working directory. - // If not specified, the container runtime's default will be used, which - // might be configured in the container image. - // Cannot be updated. - // +optional - workingDir?: string @go(WorkingDir) @protobuf(5,bytes,opt) - - // Ports are not allowed for ephemeral containers. - // +optional - // +patchMergeKey=containerPort - // +patchStrategy=merge - // +listType=map - // +listMapKey=containerPort - // +listMapKey=protocol - ports?: [...#ContainerPort] @go(Ports,[]ContainerPort) @protobuf(6,bytes,rep) - - // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - envFrom?: [...#EnvFromSource] @go(EnvFrom,[]EnvFromSource) @protobuf(19,bytes,rep) - - // List of environment variables to set in the container. - // Cannot be updated. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - env?: [...#EnvVar] @go(Env,[]EnvVar) @protobuf(7,bytes,rep) - - // Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources - // already allocated to the pod. - // +optional - resources?: #ResourceRequirements @go(Resources) @protobuf(8,bytes,opt) - - // Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. - // Cannot be updated. - // +optional - // +patchMergeKey=mountPath - // +patchStrategy=merge - volumeMounts?: [...#VolumeMount] @go(VolumeMounts,[]VolumeMount) @protobuf(9,bytes,rep) - - // volumeDevices is the list of block devices to be used by the container. - // +patchMergeKey=devicePath - // +patchStrategy=merge - // +optional - volumeDevices?: [...#VolumeDevice] @go(VolumeDevices,[]VolumeDevice) @protobuf(21,bytes,rep) - - // Probes are not allowed for ephemeral containers. - // +optional - livenessProbe?: null | #Probe @go(LivenessProbe,*Probe) @protobuf(10,bytes,opt) - - // Probes are not allowed for ephemeral containers. - // +optional - readinessProbe?: null | #Probe @go(ReadinessProbe,*Probe) @protobuf(11,bytes,opt) - - // Probes are not allowed for ephemeral containers. - // +optional - startupProbe?: null | #Probe @go(StartupProbe,*Probe) @protobuf(22,bytes,opt) - - // Lifecycle is not allowed for ephemeral containers. - // +optional - lifecycle?: null | #Lifecycle @go(Lifecycle,*Lifecycle) @protobuf(12,bytes,opt) - - // Optional: Path at which the file to which the container's termination message - // will be written is mounted into the container's filesystem. - // Message written is intended to be brief final status, such as an assertion failure message. - // Will be truncated by the node if greater than 4096 bytes. The total message length across - // all containers will be limited to 12kb. - // Defaults to /dev/termination-log. - // Cannot be updated. - // +optional - terminationMessagePath?: string @go(TerminationMessagePath) @protobuf(13,bytes,opt) - - // Indicate how the termination message should be populated. File will use the contents of - // terminationMessagePath to populate the container status message on both success and failure. - // FallbackToLogsOnError will use the last chunk of container log output if the termination - // message file is empty and the container exited with an error. - // The log output is limited to 2048 bytes or 80 lines, whichever is smaller. - // Defaults to File. - // Cannot be updated. - // +optional - terminationMessagePolicy?: #TerminationMessagePolicy @go(TerminationMessagePolicy) @protobuf(20,bytes,opt,casttype=TerminationMessagePolicy) - - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - imagePullPolicy?: #PullPolicy @go(ImagePullPolicy) @protobuf(14,bytes,opt,casttype=PullPolicy) - - // Optional: SecurityContext defines the security options the ephemeral container should be run with. - // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. - // +optional - securityContext?: null | #SecurityContext @go(SecurityContext,*SecurityContext) @protobuf(15,bytes,opt) - - // Whether this container should allocate a buffer for stdin in the container runtime. If this - // is not set, reads from stdin in the container will always result in EOF. - // Default is false. - // +optional - stdin?: bool @go(Stdin) @protobuf(16,varint,opt) - - // Whether the container runtime should close the stdin channel after it has been opened by - // a single attach. When stdin is true the stdin stream will remain open across multiple attach - // sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the - // first client attaches to stdin, and then remains open and accepts data until the client disconnects, - // at which time stdin is closed and remains closed until the container is restarted. If this - // flag is false, a container processes that reads from stdin will never receive an EOF. - // Default is false - // +optional - stdinOnce?: bool @go(StdinOnce) @protobuf(17,varint,opt) - - // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. - // Default is false. - // +optional - tty?: bool @go(TTY) @protobuf(18,varint,opt) -} - -// An EphemeralContainer is a temporary container that you may add to an existing Pod for -// user-initiated activities such as debugging. Ephemeral containers have no resource or -// scheduling guarantees, and they will not be restarted when they exit or when a Pod is -// removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the -// Pod to exceed its resource allocation. -// -// To add an ephemeral container, use the ephemeralcontainers subresource of an existing -// Pod. Ephemeral containers may not be removed or restarted. -// -// This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate. -#EphemeralContainer: { - #EphemeralContainerCommon - - // If set, the name of the container from PodSpec that this ephemeral container targets. - // The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. - // If not set then the ephemeral container uses the namespaces configured in the Pod spec. - // - // The container runtime must implement support for this feature. If the runtime does not - // support namespace targeting then the result of setting this field is undefined. - // +optional - targetContainerName?: string @go(TargetContainerName) @protobuf(2,bytes,opt) -} - -// PodStatus represents information about the status of a pod. Status may trail the actual -// state of a system, especially if the node that hosts the pod cannot contact the control -// plane. -#PodStatus: { - // The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. - // The conditions array, the reason and message fields, and the individual container status - // arrays contain more detail about the pod's status. - // There are five possible phase values: - // - // Pending: The pod has been accepted by the Kubernetes system, but one or more of the - // container images has not been created. This includes time before being scheduled as - // well as time spent downloading images over the network, which could take a while. - // Running: The pod has been bound to a node, and all of the containers have been created. - // At least one container is still running, or is in the process of starting or restarting. - // Succeeded: All containers in the pod have terminated in success, and will not be restarted. - // Failed: All containers in the pod have terminated, and at least one container has - // terminated in failure. The container either exited with non-zero status or was terminated - // by the system. - // Unknown: For some reason the state of the pod could not be obtained, typically due to an - // error in communicating with the host of the pod. - // - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase - // +optional - phase?: #PodPhase @go(Phase) @protobuf(1,bytes,opt,casttype=PodPhase) - - // Current service state of pod. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#PodCondition] @go(Conditions,[]PodCondition) @protobuf(2,bytes,rep) - - // A human readable message indicating details about why the pod is in this condition. - // +optional - message?: string @go(Message) @protobuf(3,bytes,opt) - - // A brief CamelCase message indicating details about why the pod is in this state. - // e.g. 'Evicted' - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be - // scheduled right away as preemption victims receive their graceful termination periods. - // This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide - // to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to - // give the resources on this node to a higher priority pod that is created after preemption. - // As a result, this field may be different than PodSpec.nodeName when the pod is - // scheduled. - // +optional - nominatedNodeName?: string @go(NominatedNodeName) @protobuf(11,bytes,opt) - - // IP address of the host to which the pod is assigned. Empty if not yet scheduled. - // +optional - hostIP?: string @go(HostIP) @protobuf(5,bytes,opt) - - // IP address allocated to the pod. Routable at least within the cluster. - // Empty if not yet allocated. - // +optional - podIP?: string @go(PodIP) @protobuf(6,bytes,opt) - - // podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must - // match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list - // is empty if no IPs have been allocated yet. - // +optional - // +patchStrategy=merge - // +patchMergeKey=ip - podIPs?: [...#PodIP] @go(PodIPs,[]PodIP) @protobuf(12,bytes,rep) - - // RFC 3339 date and time at which the object was acknowledged by the Kubelet. - // This is before the Kubelet pulled the container image(s) for the pod. - // +optional - startTime?: null | metav1.#Time @go(StartTime,*metav1.Time) @protobuf(7,bytes,opt) - - // The list has one entry per init container in the manifest. The most recent successful - // init container will have ready = true, the most recently started container will have - // startTime set. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - initContainerStatuses?: [...#ContainerStatus] @go(InitContainerStatuses,[]ContainerStatus) @protobuf(10,bytes,rep) - - // The list has one entry per container in the manifest. Each entry is currently the output - // of `docker inspect`. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - // +optional - containerStatuses?: [...#ContainerStatus] @go(ContainerStatuses,[]ContainerStatus) @protobuf(8,bytes,rep) - - // The Quality of Service (QOS) classification assigned to the pod based on resource requirements - // See PodQOSClass type for available QOS classes - // More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md - // +optional - qosClass?: #PodQOSClass @go(QOSClass) @protobuf(9,bytes,rep) - - // Status for any ephemeral containers that have run in this pod. - // This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate. - // +optional - ephemeralContainerStatuses?: [...#ContainerStatus] @go(EphemeralContainerStatuses,[]ContainerStatus) @protobuf(13,bytes,rep) -} - -// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded -#PodStatusResult: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Most recently observed status of the pod. - // This data may not be up to date. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #PodStatus @go(Status) @protobuf(2,bytes,opt) -} - -// Pod is a collection of containers that can run on a host. This resource is created -// by clients and scheduled onto hosts. -#Pod: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the pod. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #PodSpec @go(Spec) @protobuf(2,bytes,opt) - - // Most recently observed status of the pod. - // This data may not be up to date. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #PodStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PodList is a list of Pods. -#PodList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of pods. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - items: [...#Pod] @go(Items,[]Pod) @protobuf(2,bytes,rep) -} - -// PodTemplateSpec describes the data a pod should have when created from a template -#PodTemplateSpec: { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the pod. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #PodSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// PodTemplate describes a template for creating copies of a predefined pod. -#PodTemplate: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Template defines the pods that will be created from this pod template. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - template?: #PodTemplateSpec @go(Template) @protobuf(2,bytes,opt) -} - -// PodTemplateList is a list of PodTemplates. -#PodTemplateList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of pod templates - items: [...#PodTemplate] @go(Items,[]PodTemplate) @protobuf(2,bytes,rep) -} - -// ReplicationControllerSpec is the specification of a replication controller. -#ReplicationControllerSpec: { - // Replicas is the number of desired replicas. - // This is a pointer to distinguish between explicit zero and unspecified. - // Defaults to 1. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - // +optional - replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt) - - // Minimum number of seconds for which a newly created pod should be ready - // without any of its container crashing, for it to be considered available. - // Defaults to 0 (pod will be considered available as soon as it is ready) - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(4,varint,opt) - - // Selector is a label query over pods that should match the Replicas count. - // If Selector is empty, it is defaulted to the labels present on the Pod template. - // Label keys and values that must match in order to be controlled by this replication - // controller, if empty defaulted to labels on Pod template. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - // +mapType=atomic - selector?: {[string]: string} @go(Selector,map[string]string) @protobuf(2,bytes,rep) - - // Template is the object that describes the pod that will be created if - // insufficient replicas are detected. This takes precedence over a TemplateRef. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - // +optional - template?: null | #PodTemplateSpec @go(Template,*PodTemplateSpec) @protobuf(3,bytes,opt) -} - -// ReplicationControllerStatus represents the current status of a replication -// controller. -#ReplicationControllerStatus: { - // Replicas is the most recently oberved number of replicas. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - replicas: int32 @go(Replicas) @protobuf(1,varint,opt) - - // The number of pods that have labels matching the labels of the pod template of the replication controller. - // +optional - fullyLabeledReplicas?: int32 @go(FullyLabeledReplicas) @protobuf(2,varint,opt) - - // The number of ready replicas for this replication controller. - // +optional - readyReplicas?: int32 @go(ReadyReplicas) @protobuf(4,varint,opt) - - // The number of available replicas (ready for at least minReadySeconds) for this replication controller. - // +optional - availableReplicas?: int32 @go(AvailableReplicas) @protobuf(5,varint,opt) - - // ObservedGeneration reflects the generation of the most recently observed replication controller. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(3,varint,opt) - - // Represents the latest available observations of a replication controller's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#ReplicationControllerCondition] @go(Conditions,[]ReplicationControllerCondition) @protobuf(6,bytes,rep) -} - -#ReplicationControllerConditionType: string // #enumReplicationControllerConditionType - -#enumReplicationControllerConditionType: - #ReplicationControllerReplicaFailure - -// ReplicationControllerReplicaFailure is added in a replication controller when one of its pods -// fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors, -// etc. or deleted due to kubelet being down or finalizers are failing. -#ReplicationControllerReplicaFailure: #ReplicationControllerConditionType & "ReplicaFailure" - -// ReplicationControllerCondition describes the state of a replication controller at a certain point. -#ReplicationControllerCondition: { - // Type of replication controller condition. - type: #ReplicationControllerConditionType @go(Type) @protobuf(1,bytes,opt,casttype=ReplicationControllerConditionType) - - // Status of the condition, one of True, False, Unknown. - status: #ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=ConditionStatus) - - // The last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // The reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// ReplicationController represents the configuration of a replication controller. -#ReplicationController: { - metav1.#TypeMeta - - // If the Labels of a ReplicationController are empty, they are defaulted to - // be the same as the Pod(s) that the replication controller manages. - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the specification of the desired behavior of the replication controller. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #ReplicationControllerSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is the most recently observed status of the replication controller. - // This data may be out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #ReplicationControllerStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ReplicationControllerList is a collection of replication controllers. -#ReplicationControllerList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of replication controllers. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - items: [...#ReplicationController] @go(Items,[]ReplicationController) @protobuf(2,bytes,rep) -} - -// Session Affinity Type string -// +enum -#ServiceAffinity: string // #enumServiceAffinity - -#enumServiceAffinity: - #ServiceAffinityClientIP | - #ServiceAffinityNone - -// ServiceAffinityClientIP is the Client IP based. -#ServiceAffinityClientIP: #ServiceAffinity & "ClientIP" - -// ServiceAffinityNone - no session affinity. -#ServiceAffinityNone: #ServiceAffinity & "None" - -#DefaultClientIPServiceAffinitySeconds: int32 & 10800 - -// SessionAffinityConfig represents the configurations of session affinity. -#SessionAffinityConfig: { - // clientIP contains the configurations of Client IP based session affinity. - // +optional - clientIP?: null | #ClientIPConfig @go(ClientIP,*ClientIPConfig) @protobuf(1,bytes,opt) -} - -// ClientIPConfig represents the configurations of Client IP based session affinity. -#ClientIPConfig: { - // timeoutSeconds specifies the seconds of ClientIP type session sticky time. - // The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". - // Default value is 10800(for 3 hours). - // +optional - timeoutSeconds?: null | int32 @go(TimeoutSeconds,*int32) @protobuf(1,varint,opt) -} - -// Service Type string describes ingress methods for a service -// +enum -#ServiceType: string // #enumServiceType - -#enumServiceType: - #ServiceTypeClusterIP | - #ServiceTypeNodePort | - #ServiceTypeLoadBalancer | - #ServiceTypeExternalName - -// ServiceTypeClusterIP means a service will only be accessible inside the -// cluster, via the cluster IP. -#ServiceTypeClusterIP: #ServiceType & "ClusterIP" - -// ServiceTypeNodePort means a service will be exposed on one port of -// every node, in addition to 'ClusterIP' type. -#ServiceTypeNodePort: #ServiceType & "NodePort" - -// ServiceTypeLoadBalancer means a service will be exposed via an -// external load balancer (if the cloud provider supports it), in addition -// to 'NodePort' type. -#ServiceTypeLoadBalancer: #ServiceType & "LoadBalancer" - -// ServiceTypeExternalName means a service consists of only a reference to -// an external name that kubedns or equivalent will return as a CNAME -// record, with no exposing or proxying of any pods involved. -#ServiceTypeExternalName: #ServiceType & "ExternalName" - -// ServiceInternalTrafficPolicyType describes the type of traffic routing for -// internal traffic -// +enum -#ServiceInternalTrafficPolicyType: string // #enumServiceInternalTrafficPolicyType - -#enumServiceInternalTrafficPolicyType: - #ServiceInternalTrafficPolicyCluster | - #ServiceInternalTrafficPolicyLocal - -// ServiceInternalTrafficPolicyCluster routes traffic to all endpoints -#ServiceInternalTrafficPolicyCluster: #ServiceInternalTrafficPolicyType & "Cluster" - -// ServiceInternalTrafficPolicyLocal only routes to node-local -// endpoints, otherwise drops the traffic -#ServiceInternalTrafficPolicyLocal: #ServiceInternalTrafficPolicyType & "Local" - -// Service External Traffic Policy Type string -// +enum -#ServiceExternalTrafficPolicyType: string // #enumServiceExternalTrafficPolicyType - -#enumServiceExternalTrafficPolicyType: - #ServiceExternalTrafficPolicyTypeLocal | - #ServiceExternalTrafficPolicyTypeCluster - -// ServiceExternalTrafficPolicyTypeLocal specifies node-local endpoints behavior. -#ServiceExternalTrafficPolicyTypeLocal: #ServiceExternalTrafficPolicyType & "Local" - -// ServiceExternalTrafficPolicyTypeCluster specifies node-global (legacy) behavior. -#ServiceExternalTrafficPolicyTypeCluster: #ServiceExternalTrafficPolicyType & "Cluster" - -// LoadBalancerPortsError represents the condition of the requested ports -// on the cloud load balancer instance. -#LoadBalancerPortsError: "LoadBalancerPortsError" - -// ServiceStatus represents the current status of a service. -#ServiceStatus: { - // LoadBalancer contains the current status of the load-balancer, - // if one is present. - // +optional - loadBalancer?: #LoadBalancerStatus @go(LoadBalancer) @protobuf(1,bytes,opt) - - // Current service state - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - // +listType=map - // +listMapKey=type - conditions?: [...metav1.#Condition] @go(Conditions,[]metav1.Condition) @protobuf(2,bytes,rep) -} - -// LoadBalancerStatus represents the status of a load-balancer. -#LoadBalancerStatus: { - // Ingress is a list containing ingress points for the load-balancer. - // Traffic intended for the service should be sent to these ingress points. - // +optional - ingress?: [...#LoadBalancerIngress] @go(Ingress,[]LoadBalancerIngress) @protobuf(1,bytes,rep) -} - -// LoadBalancerIngress represents the status of a load-balancer ingress point: -// traffic intended for the service should be sent to an ingress point. -#LoadBalancerIngress: { - // IP is set for load-balancer ingress points that are IP based - // (typically GCE or OpenStack load-balancers) - // +optional - ip?: string @go(IP) @protobuf(1,bytes,opt) - - // Hostname is set for load-balancer ingress points that are DNS based - // (typically AWS load-balancers) - // +optional - hostname?: string @go(Hostname) @protobuf(2,bytes,opt) - - // Ports is a list of records of service ports - // If used, every port defined in the service should have an entry in it - // +listType=atomic - // +optional - ports?: [...#PortStatus] @go(Ports,[]PortStatus) @protobuf(4,bytes,rep) -} - -// IPFamily represents the IP Family (IPv4 or IPv6). This type is used -// to express the family of an IP expressed by a type (e.g. service.spec.ipFamilies). -// +enum -#IPFamily: string // #enumIPFamily - -#enumIPFamily: - #IPv4Protocol | - #IPv6Protocol - -// IPv4Protocol indicates that this IP is IPv4 protocol -#IPv4Protocol: #IPFamily & "IPv4" - -// IPv6Protocol indicates that this IP is IPv6 protocol -#IPv6Protocol: #IPFamily & "IPv6" - -// IPFamilyPolicyType represents the dual-stack-ness requested or required by a Service -// +enum -#IPFamilyPolicyType: string // #enumIPFamilyPolicyType - -#enumIPFamilyPolicyType: - #IPFamilyPolicySingleStack | - #IPFamilyPolicyPreferDualStack | - #IPFamilyPolicyRequireDualStack - -// IPFamilyPolicySingleStack indicates that this service is required to have a single IPFamily. -// The IPFamily assigned is based on the default IPFamily used by the cluster -// or as identified by service.spec.ipFamilies field -#IPFamilyPolicySingleStack: #IPFamilyPolicyType & "SingleStack" - -// IPFamilyPolicyPreferDualStack indicates that this service prefers dual-stack when -// the cluster is configured for dual-stack. If the cluster is not configured -// for dual-stack the service will be assigned a single IPFamily. If the IPFamily is not -// set in service.spec.ipFamilies then the service will be assigned the default IPFamily -// configured on the cluster -#IPFamilyPolicyPreferDualStack: #IPFamilyPolicyType & "PreferDualStack" - -// IPFamilyPolicyRequireDualStack indicates that this service requires dual-stack. Using -// IPFamilyPolicyRequireDualStack on a single stack cluster will result in validation errors. The -// IPFamilies (and their order) assigned to this service is based on service.spec.ipFamilies. If -// service.spec.ipFamilies was not provided then it will be assigned according to how they are -// configured on the cluster. If service.spec.ipFamilies has only one entry then the alternative -// IPFamily will be added by apiserver -#IPFamilyPolicyRequireDualStack: #IPFamilyPolicyType & "RequireDualStack" - -// ServiceSpec describes the attributes that a user creates on a service. -#ServiceSpec: { - // The list of ports that are exposed by this service. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - // +patchMergeKey=port - // +patchStrategy=merge - // +listType=map - // +listMapKey=port - // +listMapKey=protocol - ports?: [...#ServicePort] @go(Ports,[]ServicePort) @protobuf(1,bytes,rep) - - // Route service traffic to pods with label keys and values matching this - // selector. If empty or not present, the service is assumed to have an - // external process managing its endpoints, which Kubernetes will not - // modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. - // Ignored if type is ExternalName. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/ - // +optional - // +mapType=atomic - selector?: {[string]: string} @go(Selector,map[string]string) @protobuf(2,bytes,rep) - - // clusterIP is the IP address of the service and is usually assigned - // randomly. If an address is specified manually, is in-range (as per - // system configuration), and is not in use, it will be allocated to the - // service; otherwise creation of the service will fail. This field may not - // be changed through updates unless the type field is also being changed - // to ExternalName (which requires this field to be blank) or the type - // field is being changed from ExternalName (in which case this field may - // optionally be specified, as describe above). Valid values are "None", - // empty string (""), or a valid IP address. Setting this to "None" makes a - // "headless service" (no virtual IP), which is useful when direct endpoint - // connections are preferred and proxying is not required. Only applies to - // types ClusterIP, NodePort, and LoadBalancer. If this field is specified - // when creating a Service of type ExternalName, creation will fail. This - // field will be wiped when updating a Service to type ExternalName. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - // +optional - clusterIP?: string @go(ClusterIP) @protobuf(3,bytes,opt) - - // ClusterIPs is a list of IP addresses assigned to this service, and are - // usually assigned randomly. If an address is specified manually, is - // in-range (as per system configuration), and is not in use, it will be - // allocated to the service; otherwise creation of the service will fail. - // This field may not be changed through updates unless the type field is - // also being changed to ExternalName (which requires this field to be - // empty) or the type field is being changed from ExternalName (in which - // case this field may optionally be specified, as describe above). Valid - // values are "None", empty string (""), or a valid IP address. Setting - // this to "None" makes a "headless service" (no virtual IP), which is - // useful when direct endpoint connections are preferred and proxying is - // not required. Only applies to types ClusterIP, NodePort, and - // LoadBalancer. If this field is specified when creating a Service of type - // ExternalName, creation will fail. This field will be wiped when updating - // a Service to type ExternalName. If this field is not specified, it will - // be initialized from the clusterIP field. If this field is specified, - // clients must ensure that clusterIPs[0] and clusterIP have the same - // value. - // - // This field may hold a maximum of two entries (dual-stack IPs, in either order). - // These IPs must correspond to the values of the ipFamilies field. Both - // clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - // +listType=atomic - // +optional - clusterIPs?: [...string] @go(ClusterIPs,[]string) @protobuf(18,bytes,opt) - - // type determines how the Service is exposed. Defaults to ClusterIP. Valid - // options are ExternalName, ClusterIP, NodePort, and LoadBalancer. - // "ClusterIP" allocates a cluster-internal IP address for load-balancing - // to endpoints. Endpoints are determined by the selector or if that is not - // specified, by manual construction of an Endpoints object or - // EndpointSlice objects. If clusterIP is "None", no virtual IP is - // allocated and the endpoints are published as a set of endpoints rather - // than a virtual IP. - // "NodePort" builds on ClusterIP and allocates a port on every node which - // routes to the same endpoints as the clusterIP. - // "LoadBalancer" builds on NodePort and creates an external load-balancer - // (if supported in the current cloud) which routes to the same endpoints - // as the clusterIP. - // "ExternalName" aliases this service to the specified externalName. - // Several other fields do not apply to ExternalName services. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types - // +optional - type?: #ServiceType @go(Type) @protobuf(4,bytes,opt,casttype=ServiceType) - - // externalIPs is a list of IP addresses for which nodes in the cluster - // will also accept traffic for this service. These IPs are not managed by - // Kubernetes. The user is responsible for ensuring that traffic arrives - // at a node with this IP. A common example is external load-balancers - // that are not part of the Kubernetes system. - // +optional - externalIPs?: [...string] @go(ExternalIPs,[]string) @protobuf(5,bytes,rep) - - // Supports "ClientIP" and "None". Used to maintain session affinity. - // Enable client IP based session affinity. - // Must be ClientIP or None. - // Defaults to None. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - // +optional - sessionAffinity?: #ServiceAffinity @go(SessionAffinity) @protobuf(7,bytes,opt,casttype=ServiceAffinity) - - // Only applies to Service Type: LoadBalancer - // LoadBalancer will get created with the IP specified in this field. - // This feature depends on whether the underlying cloud-provider supports specifying - // the loadBalancerIP when a load balancer is created. - // This field will be ignored if the cloud-provider does not support the feature. - // +optional - loadBalancerIP?: string @go(LoadBalancerIP) @protobuf(8,bytes,opt) - - // If specified and supported by the platform, this will restrict traffic through the cloud-provider - // load-balancer will be restricted to the specified client IPs. This field will be ignored if the - // cloud-provider does not support the feature." - // More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ - // +optional - loadBalancerSourceRanges?: [...string] @go(LoadBalancerSourceRanges,[]string) @protobuf(9,bytes,opt) - - // externalName is the external reference that discovery mechanisms will - // return as an alias for this service (e.g. a DNS CNAME record). No - // proxying will be involved. Must be a lowercase RFC-1123 hostname - // (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName". - // +optional - externalName?: string @go(ExternalName) @protobuf(10,bytes,opt) - - // externalTrafficPolicy denotes if this Service desires to route external - // traffic to node-local or cluster-wide endpoints. "Local" preserves the - // client source IP and avoids a second hop for LoadBalancer and Nodeport - // type services, but risks potentially imbalanced traffic spreading. - // "Cluster" obscures the client source IP and may cause a second hop to - // another node, but should have good overall load-spreading. - // +optional - externalTrafficPolicy?: #ServiceExternalTrafficPolicyType @go(ExternalTrafficPolicy) @protobuf(11,bytes,opt) - - // healthCheckNodePort specifies the healthcheck nodePort for the service. - // This only applies when type is set to LoadBalancer and - // externalTrafficPolicy is set to Local. If a value is specified, is - // in-range, and is not in use, it will be used. If not specified, a value - // will be automatically allocated. External systems (e.g. load-balancers) - // can use this port to determine if a given node holds endpoints for this - // service or not. If this field is specified when creating a Service - // which does not need it, creation will fail. This field will be wiped - // when updating a Service to no longer need it (e.g. changing type). - // +optional - healthCheckNodePort?: int32 @go(HealthCheckNodePort) @protobuf(12,bytes,opt) - - // publishNotReadyAddresses indicates that any agent which deals with endpoints for this - // Service should disregard any indications of ready/not-ready. - // The primary use case for setting this field is for a StatefulSet's Headless Service to - // propagate SRV DNS records for its Pods for the purpose of peer discovery. - // The Kubernetes controllers that generate Endpoints and EndpointSlice resources for - // Services interpret this to mean that all endpoints are considered "ready" even if the - // Pods themselves are not. Agents which consume only Kubernetes generated endpoints - // through the Endpoints or EndpointSlice resources can safely assume this behavior. - // +optional - publishNotReadyAddresses?: bool @go(PublishNotReadyAddresses) @protobuf(13,varint,opt) - - // sessionAffinityConfig contains the configurations of session affinity. - // +optional - sessionAffinityConfig?: null | #SessionAffinityConfig @go(SessionAffinityConfig,*SessionAffinityConfig) @protobuf(14,bytes,opt) - - // IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this - // service. This field is usually assigned automatically based on cluster - // configuration and the ipFamilyPolicy field. If this field is specified - // manually, the requested family is available in the cluster, - // and ipFamilyPolicy allows it, it will be used; otherwise creation of - // the service will fail. This field is conditionally mutable: it allows - // for adding or removing a secondary IP family, but it does not allow - // changing the primary IP family of the Service. Valid values are "IPv4" - // and "IPv6". This field only applies to Services of types ClusterIP, - // NodePort, and LoadBalancer, and does apply to "headless" services. - // This field will be wiped when updating a Service to type ExternalName. - // - // This field may hold a maximum of two entries (dual-stack families, in - // either order). These families must correspond to the values of the - // clusterIPs field, if specified. Both clusterIPs and ipFamilies are - // governed by the ipFamilyPolicy field. - // +listType=atomic - // +optional - ipFamilies?: [...#IPFamily] @go(IPFamilies,[]IPFamily) @protobuf(19,bytes,opt,casttype=IPFamily) - - // IPFamilyPolicy represents the dual-stack-ness requested or required by - // this Service. If there is no value provided, then this field will be set - // to SingleStack. Services can be "SingleStack" (a single IP family), - // "PreferDualStack" (two IP families on dual-stack configured clusters or - // a single IP family on single-stack clusters), or "RequireDualStack" - // (two IP families on dual-stack configured clusters, otherwise fail). The - // ipFamilies and clusterIPs fields depend on the value of this field. This - // field will be wiped when updating a service to type ExternalName. - // +optional - ipFamilyPolicy?: null | #IPFamilyPolicyType @go(IPFamilyPolicy,*IPFamilyPolicyType) @protobuf(17,bytes,opt,casttype=IPFamilyPolicyType) - - // allocateLoadBalancerNodePorts defines if NodePorts will be automatically - // allocated for services with type LoadBalancer. Default is "true". It - // may be set to "false" if the cluster load-balancer does not rely on - // NodePorts. If the caller requests specific NodePorts (by specifying a - // value), those requests will be respected, regardless of this field. - // This field may only be set for services with type LoadBalancer and will - // be cleared if the type is changed to any other type. - // This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature. - // +featureGate=ServiceLBNodePortControl - // +optional - allocateLoadBalancerNodePorts?: null | bool @go(AllocateLoadBalancerNodePorts,*bool) @protobuf(20,bytes,opt) - - // loadBalancerClass is the class of the load balancer implementation this Service belongs to. - // If specified, the value of this field must be a label-style identifier, with an optional prefix, - // e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. - // This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load - // balancer implementation is used, today this is typically done through the cloud provider integration, - // but should apply for any default implementation. If set, it is assumed that a load balancer - // implementation is watching for Services with a matching class. Any default load balancer - // implementation (e.g. cloud providers) should ignore Services that set this field. - // This field can only be set when creating or updating a Service to type 'LoadBalancer'. - // Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. - // +featureGate=LoadBalancerClass - // +optional - loadBalancerClass?: null | string @go(LoadBalancerClass,*string) @protobuf(21,bytes,opt) - - // InternalTrafficPolicy specifies if the cluster internal traffic - // should be routed to all endpoints or node-local endpoints only. - // "Cluster" routes internal traffic to a Service to all endpoints. - // "Local" routes traffic to node-local endpoints only, traffic is - // dropped if no node-local endpoints are ready. - // The default value is "Cluster". - // +featureGate=ServiceInternalTrafficPolicy - // +optional - internalTrafficPolicy?: null | #ServiceInternalTrafficPolicyType @go(InternalTrafficPolicy,*ServiceInternalTrafficPolicyType) @protobuf(22,bytes,opt) -} - -// ServicePort contains information on service's port. -#ServicePort: { - // The name of this port within the service. This must be a DNS_LABEL. - // All ports within a ServiceSpec must have unique names. When considering - // the endpoints for a Service, this must match the 'name' field in the - // EndpointPort. - // Optional if only one ServicePort is defined on this service. - // +optional - name?: string @go(Name) @protobuf(1,bytes,opt) - - // The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". - // Default is TCP. - // +default="TCP" - // +optional - protocol?: #Protocol @go(Protocol) @protobuf(2,bytes,opt,casttype=Protocol) - - // The application protocol for this port. - // This field follows standard Kubernetes label syntax. - // Un-prefixed names are reserved for IANA standard service names (as per - // RFC-6335 and http://www.iana.org/assignments/service-names). - // Non-standard protocols should use prefixed names such as - // mycompany.com/my-custom-protocol. - // +optional - appProtocol?: null | string @go(AppProtocol,*string) @protobuf(6,bytes,opt) - - // The port that will be exposed by this service. - port: int32 @go(Port) @protobuf(3,varint,opt) - - // Number or name of the port to access on the pods targeted by the service. - // Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - // If this is a string, it will be looked up as a named port in the - // target Pod's container ports. If this is not specified, the value - // of the 'port' field is used (an identity map). - // This field is ignored for services with clusterIP=None, and should be - // omitted or set equal to the 'port' field. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service - // +optional - targetPort?: intstr.#IntOrString @go(TargetPort) @protobuf(4,bytes,opt) - - // The port on each node on which this service is exposed when type is - // NodePort or LoadBalancer. Usually assigned by the system. If a value is - // specified, in-range, and not in use it will be used, otherwise the - // operation will fail. If not specified, a port will be allocated if this - // Service requires one. If this field is specified when creating a - // Service which does not need it, creation will fail. This field will be - // wiped when updating a Service to no longer need it (e.g. changing type - // from NodePort to ClusterIP). - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport - // +optional - nodePort?: int32 @go(NodePort) @protobuf(5,varint,opt) -} - -// Service is a named abstraction of software service (for example, mysql) consisting of local port -// (for example 3306) that the proxy listens on, and the selector that determines which pods -// will answer requests sent through the proxy. -#Service: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the behavior of a service. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #ServiceSpec @go(Spec) @protobuf(2,bytes,opt) - - // Most recently observed status of the service. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #ServiceStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ClusterIPNone - do not assign a cluster IP -// no proxying required and no environment variables should be created for pods -#ClusterIPNone: "None" - -// ServiceList holds a list of services. -#ServiceList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of services - items: [...#Service] @go(Items,[]Service) @protobuf(2,bytes,rep) -} - -// ServiceAccount binds together: -// * a name, understood by users, and perhaps by peripheral systems, for an identity -// * a principal that can be authenticated and authorized -// * a set of secrets -#ServiceAccount: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. - // More info: https://kubernetes.io/docs/concepts/configuration/secret - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - secrets?: [...#ObjectReference] @go(Secrets,[]ObjectReference) @protobuf(2,bytes,rep) - - // ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images - // in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets - // can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. - // More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod - // +optional - imagePullSecrets?: [...#LocalObjectReference] @go(ImagePullSecrets,[]LocalObjectReference) @protobuf(3,bytes,rep) - - // AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. - // Can be overridden at the pod level. - // +optional - automountServiceAccountToken?: null | bool @go(AutomountServiceAccountToken,*bool) @protobuf(4,varint,opt) -} - -// ServiceAccountList is a list of ServiceAccount objects -#ServiceAccountList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of ServiceAccounts. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - items: [...#ServiceAccount] @go(Items,[]ServiceAccount) @protobuf(2,bytes,rep) -} - -// Endpoints is a collection of endpoints that implement the actual service. Example: -// Name: "mysvc", -// Subsets: [ -// { -// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], -// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] -// }, -// { -// Addresses: [{"ip": "10.10.3.3"}], -// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] -// }, -// ] -#Endpoints: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // The set of all endpoints is the union of all subsets. Addresses are placed into - // subsets according to the IPs they share. A single address with multiple ports, - // some of which are ready and some of which are not (because they come from - // different containers) will result in the address being displayed in different - // subsets for the different ports. No address will appear in both Addresses and - // NotReadyAddresses in the same subset. - // Sets of addresses and ports that comprise a service. - // +optional - subsets?: [...#EndpointSubset] @go(Subsets,[]EndpointSubset) @protobuf(2,bytes,rep) -} - -// EndpointSubset is a group of addresses with a common set of ports. The -// expanded set of endpoints is the Cartesian product of Addresses x Ports. -// For example, given: -// { -// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], -// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] -// } -// The resulting set of endpoints can be viewed as: -// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], -// b: [ 10.10.1.1:309, 10.10.2.2:309 ] -#EndpointSubset: { - // IP addresses which offer the related ports that are marked as ready. These endpoints - // should be considered safe for load balancers and clients to utilize. - // +optional - addresses?: [...#EndpointAddress] @go(Addresses,[]EndpointAddress) @protobuf(1,bytes,rep) - - // IP addresses which offer the related ports but are not currently marked as ready - // because they have not yet finished starting, have recently failed a readiness check, - // or have recently failed a liveness check. - // +optional - notReadyAddresses?: [...#EndpointAddress] @go(NotReadyAddresses,[]EndpointAddress) @protobuf(2,bytes,rep) - - // Port numbers available on the related IP addresses. - // +optional - ports?: [...#EndpointPort] @go(Ports,[]EndpointPort) @protobuf(3,bytes,rep) -} - -// EndpointAddress is a tuple that describes single IP address. -// +structType=atomic -#EndpointAddress: { - // The IP of this endpoint. - // May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), - // or link-local multicast ((224.0.0.0/24). - // IPv6 is also accepted but not fully supported on all platforms. Also, certain - // kubernetes components, like kube-proxy, are not IPv6 ready. - // TODO: This should allow hostname or IP, See #4447. - ip: string @go(IP) @protobuf(1,bytes,opt) - - // The Hostname of this endpoint - // +optional - hostname?: string @go(Hostname) @protobuf(3,bytes,opt) - - // Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. - // +optional - nodeName?: null | string @go(NodeName,*string) @protobuf(4,bytes,opt) - - // Reference to object providing the endpoint. - // +optional - targetRef?: null | #ObjectReference @go(TargetRef,*ObjectReference) @protobuf(2,bytes,opt) -} - -// EndpointPort is a tuple that describes a single port. -// +structType=atomic -#EndpointPort: { - // The name of this port. This must match the 'name' field in the - // corresponding ServicePort. - // Must be a DNS_LABEL. - // Optional only if one port is defined. - // +optional - name?: string @go(Name) @protobuf(1,bytes,opt) - - // The port number of the endpoint. - port: int32 @go(Port) @protobuf(2,varint,opt) - - // The IP protocol for this port. - // Must be UDP, TCP, or SCTP. - // Default is TCP. - // +optional - protocol?: #Protocol @go(Protocol) @protobuf(3,bytes,opt,casttype=Protocol) - - // The application protocol for this port. - // This field follows standard Kubernetes label syntax. - // Un-prefixed names are reserved for IANA standard service names (as per - // RFC-6335 and http://www.iana.org/assignments/service-names). - // Non-standard protocols should use prefixed names such as - // mycompany.com/my-custom-protocol. - // +optional - appProtocol?: null | string @go(AppProtocol,*string) @protobuf(4,bytes,opt) -} - -// EndpointsList is a list of endpoints. -#EndpointsList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of endpoints. - items: [...#Endpoints] @go(Items,[]Endpoints) @protobuf(2,bytes,rep) -} - -// NodeSpec describes the attributes that a node is created with. -#NodeSpec: { - // PodCIDR represents the pod IP range assigned to the node. - // +optional - podCIDR?: string @go(PodCIDR) @protobuf(1,bytes,opt) - - // podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this - // field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for - // each of IPv4 and IPv6. - // +optional - // +patchStrategy=merge - podCIDRs?: [...string] @go(PodCIDRs,[]string) @protobuf(7,bytes,opt) - - // ID of the node assigned by the cloud provider in the format: :// - // +optional - providerID?: string @go(ProviderID) @protobuf(3,bytes,opt) - - // Unschedulable controls node schedulability of new pods. By default, node is schedulable. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration - // +optional - unschedulable?: bool @go(Unschedulable) @protobuf(4,varint,opt) - - // If specified, the node's taints. - // +optional - taints?: [...#Taint] @go(Taints,[]Taint) @protobuf(5,bytes,opt) - - // Deprecated. If specified, the source of the node's configuration. - // The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field. - // This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration - // +optional - configSource?: null | #NodeConfigSource @go(ConfigSource,*NodeConfigSource) @protobuf(6,bytes,opt) - - // Deprecated. Not all kubelets will set this field. Remove field after 1.13. - // see: https://issues.k8s.io/61966 - // +optional - externalID?: string @go(DoNotUseExternalID) @protobuf(2,bytes,opt) -} - -// NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. -// This API is deprecated since 1.22 -#NodeConfigSource: { - // ConfigMap is a reference to a Node's ConfigMap - configMap?: null | #ConfigMapNodeConfigSource @go(ConfigMap,*ConfigMapNodeConfigSource) @protobuf(2,bytes,opt) -} - -// ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. -// This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration -#ConfigMapNodeConfigSource: { - // Namespace is the metadata.namespace of the referenced ConfigMap. - // This field is required in all cases. - namespace: string @go(Namespace) @protobuf(1,bytes,opt) - - // Name is the metadata.name of the referenced ConfigMap. - // This field is required in all cases. - name: string @go(Name) @protobuf(2,bytes,opt) - - // UID is the metadata.UID of the referenced ConfigMap. - // This field is forbidden in Node.Spec, and required in Node.Status. - // +optional - uid?: types.#UID @go(UID) @protobuf(3,bytes,opt) - - // ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. - // This field is forbidden in Node.Spec, and required in Node.Status. - // +optional - resourceVersion?: string @go(ResourceVersion) @protobuf(4,bytes,opt) - - // KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure - // This field is required in all cases. - kubeletConfigKey: string @go(KubeletConfigKey) @protobuf(5,bytes,opt) -} - -// DaemonEndpoint contains information about a single Daemon endpoint. -#DaemonEndpoint: { - // Port number of the given endpoint. - Port: int32 @protobuf(1,varint,opt) -} - -// NodeDaemonEndpoints lists ports opened by daemons running on the Node. -#NodeDaemonEndpoints: { - // Endpoint on which Kubelet is listening. - // +optional - kubeletEndpoint?: #DaemonEndpoint @go(KubeletEndpoint) @protobuf(1,bytes,opt) -} - -// NodeSystemInfo is a set of ids/uuids to uniquely identify the node. -#NodeSystemInfo: { - // MachineID reported by the node. For unique machine identification - // in the cluster this field is preferred. Learn more from man(5) - // machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html - machineID: string @go(MachineID) @protobuf(1,bytes,opt) - - // SystemUUID reported by the node. For unique machine identification - // MachineID is preferred. This field is specific to Red Hat hosts - // https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid - systemUUID: string @go(SystemUUID) @protobuf(2,bytes,opt) - - // Boot ID reported by the node. - bootID: string @go(BootID) @protobuf(3,bytes,opt) - - // Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). - kernelVersion: string @go(KernelVersion) @protobuf(4,bytes,opt) - - // OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). - osImage: string @go(OSImage) @protobuf(5,bytes,opt) - - // ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). - containerRuntimeVersion: string @go(ContainerRuntimeVersion) @protobuf(6,bytes,opt) - - // Kubelet Version reported by the node. - kubeletVersion: string @go(KubeletVersion) @protobuf(7,bytes,opt) - - // KubeProxy Version reported by the node. - kubeProxyVersion: string @go(KubeProxyVersion) @protobuf(8,bytes,opt) - - // The Operating System reported by the node - operatingSystem: string @go(OperatingSystem) @protobuf(9,bytes,opt) - - // The Architecture reported by the node - architecture: string @go(Architecture) @protobuf(10,bytes,opt) -} - -// NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. -#NodeConfigStatus: { - // Assigned reports the checkpointed config the node will try to use. - // When Node.Spec.ConfigSource is updated, the node checkpoints the associated - // config payload to local disk, along with a record indicating intended - // config. The node refers to this record to choose its config checkpoint, and - // reports this record in Assigned. Assigned only updates in the status after - // the record has been checkpointed to disk. When the Kubelet is restarted, - // it tries to make the Assigned config the Active config by loading and - // validating the checkpointed payload identified by Assigned. - // +optional - assigned?: null | #NodeConfigSource @go(Assigned,*NodeConfigSource) @protobuf(1,bytes,opt) - - // Active reports the checkpointed config the node is actively using. - // Active will represent either the current version of the Assigned config, - // or the current LastKnownGood config, depending on whether attempting to use the - // Assigned config results in an error. - // +optional - active?: null | #NodeConfigSource @go(Active,*NodeConfigSource) @protobuf(2,bytes,opt) - - // LastKnownGood reports the checkpointed config the node will fall back to - // when it encounters an error attempting to use the Assigned config. - // The Assigned config becomes the LastKnownGood config when the node determines - // that the Assigned config is stable and correct. - // This is currently implemented as a 10-minute soak period starting when the local - // record of Assigned config is updated. If the Assigned config is Active at the end - // of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is - // reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, - // because the local default config is always assumed good. - // You should not make assumptions about the node's method of determining config stability - // and correctness, as this may change or become configurable in the future. - // +optional - lastKnownGood?: null | #NodeConfigSource @go(LastKnownGood,*NodeConfigSource) @protobuf(3,bytes,opt) - - // Error describes any problems reconciling the Spec.ConfigSource to the Active config. - // Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned - // record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting - // to load or validate the Assigned config, etc. - // Errors may occur at different points while syncing config. Earlier errors (e.g. download or - // checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across - // Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in - // a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error - // by fixing the config assigned in Spec.ConfigSource. - // You can find additional information for debugging by searching the error message in the Kubelet log. - // Error is a human-readable description of the error state; machines can check whether or not Error - // is empty, but should not rely on the stability of the Error text across Kubelet versions. - // +optional - error?: string @go(Error) @protobuf(4,bytes,opt) -} - -// NodeStatus is information about the current status of a node. -#NodeStatus: { - // Capacity represents the total resources of a node. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - // +optional - capacity?: #ResourceList @go(Capacity) @protobuf(1,bytes,rep,casttype=ResourceList,castkey=ResourceName) - - // Allocatable represents the resources of a node that are available for scheduling. - // Defaults to Capacity. - // +optional - allocatable?: #ResourceList @go(Allocatable) @protobuf(2,bytes,rep,casttype=ResourceList,castkey=ResourceName) - - // NodePhase is the recently observed lifecycle phase of the node. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#phase - // The field is never populated, and now is deprecated. - // +optional - phase?: #NodePhase @go(Phase) @protobuf(3,bytes,opt,casttype=NodePhase) - - // Conditions is an array of current observed node conditions. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#condition - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#NodeCondition] @go(Conditions,[]NodeCondition) @protobuf(4,bytes,rep) - - // List of addresses reachable to the node. - // Queried from cloud provider, if available. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses - // Note: This field is declared as mergeable, but the merge key is not sufficiently - // unique, which can cause data corruption when it is merged. Callers should instead - // use a full-replacement patch. See http://pr.k8s.io/79391 for an example. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - addresses?: [...#NodeAddress] @go(Addresses,[]NodeAddress) @protobuf(5,bytes,rep) - - // Endpoints of daemons running on the Node. - // +optional - daemonEndpoints?: #NodeDaemonEndpoints @go(DaemonEndpoints) @protobuf(6,bytes,opt) - - // Set of ids/uuids to uniquely identify the node. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#info - // +optional - nodeInfo?: #NodeSystemInfo @go(NodeInfo) @protobuf(7,bytes,opt) - - // List of container images on this node - // +optional - images?: [...#ContainerImage] @go(Images,[]ContainerImage) @protobuf(8,bytes,rep) - - // List of attachable volumes in use (mounted) by the node. - // +optional - volumesInUse?: [...#UniqueVolumeName] @go(VolumesInUse,[]UniqueVolumeName) @protobuf(9,bytes,rep) - - // List of volumes that are attached to the node. - // +optional - volumesAttached?: [...#AttachedVolume] @go(VolumesAttached,[]AttachedVolume) @protobuf(10,bytes,rep) - - // Status of the config assigned to the node via the dynamic Kubelet config feature. - // +optional - config?: null | #NodeConfigStatus @go(Config,*NodeConfigStatus) @protobuf(11,bytes,opt) -} - -#UniqueVolumeName: string - -// AttachedVolume describes a volume attached to a node -#AttachedVolume: { - // Name of the attached volume - name: #UniqueVolumeName @go(Name) @protobuf(1,bytes,rep) - - // DevicePath represents the device path where the volume should be available - devicePath: string @go(DevicePath) @protobuf(2,bytes,rep) -} - -// AvoidPods describes pods that should avoid this node. This is the value for a -// Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and -// will eventually become a field of NodeStatus. -#AvoidPods: { - // Bounded-sized list of signatures of pods that should avoid this node, sorted - // in timestamp order from oldest to newest. Size of the slice is unspecified. - // +optional - preferAvoidPods?: [...#PreferAvoidPodsEntry] @go(PreferAvoidPods,[]PreferAvoidPodsEntry) @protobuf(1,bytes,rep) -} - -// Describes a class of pods that should avoid this node. -#PreferAvoidPodsEntry: { - // The class of pods. - podSignature: #PodSignature @go(PodSignature) @protobuf(1,bytes,opt) - - // Time at which this entry was added to the list. - // +optional - evictionTime?: metav1.#Time @go(EvictionTime) @protobuf(2,bytes,opt) - - // (brief) reason why this entry was added to the list. - // +optional - reason?: string @go(Reason) @protobuf(3,bytes,opt) - - // Human readable message indicating why this entry was added to the list. - // +optional - message?: string @go(Message) @protobuf(4,bytes,opt) -} - -// Describes the class of pods that should avoid this node. -// Exactly one field should be set. -#PodSignature: { - // Reference to controller whose pods should avoid this node. - // +optional - podController?: null | metav1.#OwnerReference @go(PodController,*metav1.OwnerReference) @protobuf(1,bytes,opt) -} - -// Describe a container image -#ContainerImage: { - // Names by which this image is known. - // e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] - // +optional - names: [...string] @go(Names,[]string) @protobuf(1,bytes,rep) - - // The size of the image in bytes. - // +optional - sizeBytes?: int64 @go(SizeBytes) @protobuf(2,varint,opt) -} - -// +enum -#NodePhase: string // #enumNodePhase - -#enumNodePhase: - #NodePending | - #NodeRunning | - #NodeTerminated - -// NodePending means the node has been created/added by the system, but not configured. -#NodePending: #NodePhase & "Pending" - -// NodeRunning means the node has been configured and has Kubernetes components running. -#NodeRunning: #NodePhase & "Running" - -// NodeTerminated means the node has been removed from the cluster. -#NodeTerminated: #NodePhase & "Terminated" - -// +enum -#NodeConditionType: string // #enumNodeConditionType - -#enumNodeConditionType: - #NodeReady | - #NodeMemoryPressure | - #NodeDiskPressure | - #NodePIDPressure | - #NodeNetworkUnavailable - -// NodeReady means kubelet is healthy and ready to accept pods. -#NodeReady: #NodeConditionType & "Ready" - -// NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory. -#NodeMemoryPressure: #NodeConditionType & "MemoryPressure" - -// NodeDiskPressure means the kubelet is under pressure due to insufficient available disk. -#NodeDiskPressure: #NodeConditionType & "DiskPressure" - -// NodePIDPressure means the kubelet is under pressure due to insufficient available PID. -#NodePIDPressure: #NodeConditionType & "PIDPressure" - -// NodeNetworkUnavailable means that network for the node is not correctly configured. -#NodeNetworkUnavailable: #NodeConditionType & "NetworkUnavailable" - -// NodeCondition contains condition information for a node. -#NodeCondition: { - // Type of node condition. - type: #NodeConditionType @go(Type) @protobuf(1,bytes,opt,casttype=NodeConditionType) - - // Status of the condition, one of True, False, Unknown. - status: #ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=ConditionStatus) - - // Last time we got an update on a given condition. - // +optional - lastHeartbeatTime?: metav1.#Time @go(LastHeartbeatTime) @protobuf(3,bytes,opt) - - // Last time the condition transit from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(4,bytes,opt) - - // (brief) reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(5,bytes,opt) - - // Human readable message indicating details about last transition. - // +optional - message?: string @go(Message) @protobuf(6,bytes,opt) -} - -// +enum -#NodeAddressType: string // #enumNodeAddressType - -#enumNodeAddressType: - #NodeHostName | - #NodeInternalIP | - #NodeExternalIP | - #NodeInternalDNS | - #NodeExternalDNS - -// NodeHostName identifies a name of the node. Although every node can be assumed -// to have a NodeAddress of this type, its exact syntax and semantics are not -// defined, and are not consistent between different clusters. -#NodeHostName: #NodeAddressType & "Hostname" - -// NodeInternalIP identifies an IP address which is assigned to one of the node's -// network interfaces. Every node should have at least one address of this type. -// -// An internal IP is normally expected to be reachable from every other node, but -// may not be visible to hosts outside the cluster. By default it is assumed that -// kube-apiserver can reach node internal IPs, though it is possible to configure -// clusters where this is not the case. -// -// NodeInternalIP is the default type of node IP, and does not necessarily imply -// that the IP is ONLY reachable internally. If a node has multiple internal IPs, -// no specific semantics are assigned to the additional IPs. -#NodeInternalIP: #NodeAddressType & "InternalIP" - -// NodeExternalIP identifies an IP address which is, in some way, intended to be -// more usable from outside the cluster then an internal IP, though no specific -// semantics are defined. It may be a globally routable IP, though it is not -// required to be. -// -// External IPs may be assigned directly to an interface on the node, like a -// NodeInternalIP, or alternatively, packets sent to the external IP may be NAT'ed -// to an internal node IP rather than being delivered directly (making the IP less -// efficient for node-to-node traffic than a NodeInternalIP). -#NodeExternalIP: #NodeAddressType & "ExternalIP" - -// NodeInternalDNS identifies a DNS name which resolves to an IP address which has -// the characteristics of a NodeInternalIP. The IP it resolves to may or may not -// be a listed NodeInternalIP address. -#NodeInternalDNS: #NodeAddressType & "InternalDNS" - -// NodeExternalDNS identifies a DNS name which resolves to an IP address which has -// the characteristics of a NodeExternalIP. The IP it resolves to may or may not -// be a listed NodeExternalIP address. -#NodeExternalDNS: #NodeAddressType & "ExternalDNS" - -// NodeAddress contains information for the node's address. -#NodeAddress: { - // Node address type, one of Hostname, ExternalIP or InternalIP. - type: #NodeAddressType @go(Type) @protobuf(1,bytes,opt,casttype=NodeAddressType) - - // The node address. - address: string @go(Address) @protobuf(2,bytes,opt) -} - -// ResourceName is the name identifying various resources in a ResourceList. -#ResourceName: string // #enumResourceName - -#enumResourceName: - #ResourceCPU | - #ResourceMemory | - #ResourceStorage | - #ResourceEphemeralStorage | - #ResourcePods | - #ResourceServices | - #ResourceReplicationControllers | - #ResourceQuotas | - #ResourceSecrets | - #ResourceConfigMaps | - #ResourcePersistentVolumeClaims | - #ResourceServicesNodePorts | - #ResourceServicesLoadBalancers | - #ResourceRequestsCPU | - #ResourceRequestsMemory | - #ResourceRequestsStorage | - #ResourceRequestsEphemeralStorage | - #ResourceLimitsCPU | - #ResourceLimitsMemory | - #ResourceLimitsEphemeralStorage - -// CPU, in cores. (500m = .5 cores) -#ResourceCPU: #ResourceName & "cpu" - -// Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) -#ResourceMemory: #ResourceName & "memory" - -// Volume size, in bytes (e,g. 5Gi = 5GiB = 5 * 1024 * 1024 * 1024) -#ResourceStorage: #ResourceName & "storage" - -// Local ephemeral storage, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) -// The resource name for ResourceEphemeralStorage is alpha and it can change across releases. -#ResourceEphemeralStorage: #ResourceName & "ephemeral-storage" - -// Default namespace prefix. -#ResourceDefaultNamespacePrefix: "kubernetes.io/" - -// Name prefix for huge page resources (alpha). -#ResourceHugePagesPrefix: "hugepages-" - -// Name prefix for storage resource limits -#ResourceAttachableVolumesPrefix: "attachable-volumes-" - -// ResourceList is a set of (resource name, quantity) pairs. -#ResourceList: {[string]: resource.#Quantity} - -// Node is a worker node in Kubernetes. -// Each node will have a unique identifier in the cache (i.e. in etcd). -#Node: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the behavior of a node. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #NodeSpec @go(Spec) @protobuf(2,bytes,opt) - - // Most recently observed status of the node. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #NodeStatus @go(Status) @protobuf(3,bytes,opt) -} - -// NodeList is the whole list of all Nodes which have been registered with master. -#NodeList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of nodes - items: [...#Node] @go(Items,[]Node) @protobuf(2,bytes,rep) -} - -// FinalizerName is the name identifying a finalizer during namespace lifecycle. -#FinalizerName: string // #enumFinalizerName - -#enumFinalizerName: - #FinalizerKubernetes - -#FinalizerKubernetes: #FinalizerName & "kubernetes" - -// NamespaceSpec describes the attributes on a Namespace. -#NamespaceSpec: { - // Finalizers is an opaque list of values that must be empty to permanently remove object from storage. - // More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - // +optional - finalizers?: [...#FinalizerName] @go(Finalizers,[]FinalizerName) @protobuf(1,bytes,rep,casttype=FinalizerName) -} - -// NamespaceStatus is information about the current status of a Namespace. -#NamespaceStatus: { - // Phase is the current lifecycle phase of the namespace. - // More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - // +optional - phase?: #NamespacePhase @go(Phase) @protobuf(1,bytes,opt,casttype=NamespacePhase) - - // Represents the latest available observations of a namespace's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#NamespaceCondition] @go(Conditions,[]NamespaceCondition) @protobuf(2,bytes,rep) -} - -// +enum -#NamespacePhase: string // #enumNamespacePhase - -#enumNamespacePhase: - #NamespaceActive | - #NamespaceTerminating - -// NamespaceActive means the namespace is available for use in the system -#NamespaceActive: #NamespacePhase & "Active" - -// NamespaceTerminating means the namespace is undergoing graceful termination -#NamespaceTerminating: #NamespacePhase & "Terminating" - -// NamespaceTerminatingCause is returned as a defaults.cause item when a change is -// forbidden due to the namespace being terminated. -#NamespaceTerminatingCause: metav1.#CauseType & "NamespaceTerminating" - -// +enum -#NamespaceConditionType: string // #enumNamespaceConditionType - -#enumNamespaceConditionType: - #NamespaceDeletionDiscoveryFailure | - #NamespaceDeletionContentFailure | - #NamespaceDeletionGVParsingFailure | - #NamespaceContentRemaining | - #NamespaceFinalizersRemaining - -// NamespaceDeletionDiscoveryFailure contains information about namespace deleter errors during resource discovery. -#NamespaceDeletionDiscoveryFailure: #NamespaceConditionType & "NamespaceDeletionDiscoveryFailure" - -// NamespaceDeletionContentFailure contains information about namespace deleter errors during deletion of resources. -#NamespaceDeletionContentFailure: #NamespaceConditionType & "NamespaceDeletionContentFailure" - -// NamespaceDeletionGVParsingFailure contains information about namespace deleter errors parsing GV for legacy types. -#NamespaceDeletionGVParsingFailure: #NamespaceConditionType & "NamespaceDeletionGroupVersionParsingFailure" - -// NamespaceContentRemaining contains information about resources remaining in a namespace. -#NamespaceContentRemaining: #NamespaceConditionType & "NamespaceContentRemaining" - -// NamespaceFinalizersRemaining contains information about which finalizers are on resources remaining in a namespace. -#NamespaceFinalizersRemaining: #NamespaceConditionType & "NamespaceFinalizersRemaining" - -// NamespaceCondition contains details about state of namespace. -#NamespaceCondition: { - // Type of namespace controller condition. - type: #NamespaceConditionType @go(Type) @protobuf(1,bytes,opt,casttype=NamespaceConditionType) - - // Status of the condition, one of True, False, Unknown. - status: #ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=ConditionStatus) - - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(4,bytes,opt) - - // +optional - reason?: string @go(Reason) @protobuf(5,bytes,opt) - - // +optional - message?: string @go(Message) @protobuf(6,bytes,opt) -} - -// Namespace provides a scope for Names. -// Use of multiple namespaces is optional. -#Namespace: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the behavior of the Namespace. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #NamespaceSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status describes the current status of a Namespace. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #NamespaceStatus @go(Status) @protobuf(3,bytes,opt) -} - -// NamespaceList is a list of Namespaces. -#NamespaceList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of Namespace objects in the list. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - items: [...#Namespace] @go(Items,[]Namespace) @protobuf(2,bytes,rep) -} - -// Binding ties one object to another; for example, a pod is bound to a node by a scheduler. -// Deprecated in 1.7, please use the bindings subresource of pods instead. -#Binding: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // The target object that you want to bind to the standard object. - target: #ObjectReference @go(Target) @protobuf(2,bytes,opt) -} - -// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. -// +k8s:openapi-gen=false -#Preconditions: { - // Specifies the target UID. - // +optional - uid?: null | types.#UID @go(UID,*types.UID) @protobuf(1,bytes,opt,casttype=k8s.io/apimachinery/pkg/types.UID) -} - -// PodLogOptions is the query options for a Pod's logs REST call. -#PodLogOptions: { - metav1.#TypeMeta - - // The container for which to stream logs. Defaults to only container if there is one container in the pod. - // +optional - container?: string @go(Container) @protobuf(1,bytes,opt) - - // Follow the log stream of the pod. Defaults to false. - // +optional - follow?: bool @go(Follow) @protobuf(2,varint,opt) - - // Return previous terminated container logs. Defaults to false. - // +optional - previous?: bool @go(Previous) @protobuf(3,varint,opt) - - // A relative time in seconds before the current time from which to show logs. If this value - // precedes the time a pod was started, only logs since the pod start will be returned. - // If this value is in the future, no logs will be returned. - // Only one of sinceSeconds or sinceTime may be specified. - // +optional - sinceSeconds?: null | int64 @go(SinceSeconds,*int64) @protobuf(4,varint,opt) - - // An RFC3339 timestamp from which to show logs. If this value - // precedes the time a pod was started, only logs since the pod start will be returned. - // If this value is in the future, no logs will be returned. - // Only one of sinceSeconds or sinceTime may be specified. - // +optional - sinceTime?: null | metav1.#Time @go(SinceTime,*metav1.Time) @protobuf(5,bytes,opt) - - // If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line - // of log output. Defaults to false. - // +optional - timestamps?: bool @go(Timestamps) @protobuf(6,varint,opt) - - // If set, the number of lines from the end of the logs to show. If not specified, - // logs are shown from the creation of the container or sinceSeconds or sinceTime - // +optional - tailLines?: null | int64 @go(TailLines,*int64) @protobuf(7,varint,opt) - - // If set, the number of bytes to read from the server before terminating the - // log output. This may not display a complete final line of logging, and may return - // slightly more or slightly less than the specified limit. - // +optional - limitBytes?: null | int64 @go(LimitBytes,*int64) @protobuf(8,varint,opt) - - // insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the - // serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver - // and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real - // kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the - // connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept - // the actual log data coming from the real kubelet). - // +optional - insecureSkipTLSVerifyBackend?: bool @go(InsecureSkipTLSVerifyBackend) @protobuf(9,varint,opt) -} - -// PodAttachOptions is the query options to a Pod's remote attach call. -// --- -// TODO: merge w/ PodExecOptions below for stdin, stdout, etc -// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY -#PodAttachOptions: { - metav1.#TypeMeta - - // Stdin if true, redirects the standard input stream of the pod for this call. - // Defaults to false. - // +optional - stdin?: bool @go(Stdin) @protobuf(1,varint,opt) - - // Stdout if true indicates that stdout is to be redirected for the attach call. - // Defaults to true. - // +optional - stdout?: bool @go(Stdout) @protobuf(2,varint,opt) - - // Stderr if true indicates that stderr is to be redirected for the attach call. - // Defaults to true. - // +optional - stderr?: bool @go(Stderr) @protobuf(3,varint,opt) - - // TTY if true indicates that a tty will be allocated for the attach call. - // This is passed through the container runtime so the tty - // is allocated on the worker node by the container runtime. - // Defaults to false. - // +optional - tty?: bool @go(TTY) @protobuf(4,varint,opt) - - // The container in which to execute the command. - // Defaults to only container if there is only one container in the pod. - // +optional - container?: string @go(Container) @protobuf(5,bytes,opt) -} - -// PodExecOptions is the query options to a Pod's remote exec call. -// --- -// TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging -// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY -#PodExecOptions: { - metav1.#TypeMeta - - // Redirect the standard input stream of the pod for this call. - // Defaults to false. - // +optional - stdin?: bool @go(Stdin) @protobuf(1,varint,opt) - - // Redirect the standard output stream of the pod for this call. - // +optional - stdout?: bool @go(Stdout) @protobuf(2,varint,opt) - - // Redirect the standard error stream of the pod for this call. - // +optional - stderr?: bool @go(Stderr) @protobuf(3,varint,opt) - - // TTY if true indicates that a tty will be allocated for the exec call. - // Defaults to false. - // +optional - tty?: bool @go(TTY) @protobuf(4,varint,opt) - - // Container in which to execute the command. - // Defaults to only container if there is only one container in the pod. - // +optional - container?: string @go(Container) @protobuf(5,bytes,opt) - - // Command is the remote command to execute. argv array. Not executed within a shell. - command: [...string] @go(Command,[]string) @protobuf(6,bytes,rep) -} - -// PodPortForwardOptions is the query options to a Pod's port forward call -// when using WebSockets. -// The `port` query parameter must specify the port or -// ports (comma separated) to forward over. -// Port forwarding over SPDY does not use these options. It requires the port -// to be passed in the `port` header as part of request. -#PodPortForwardOptions: { - metav1.#TypeMeta - - // List of ports to forward - // Required when using WebSockets - // +optional - ports?: [...int32] @go(Ports,[]int32) @protobuf(1,varint,rep) -} - -// PodProxyOptions is the query options to a Pod's proxy call. -#PodProxyOptions: { - metav1.#TypeMeta - - // Path is the URL path to use for the current proxy request to pod. - // +optional - path?: string @go(Path) @protobuf(1,bytes,opt) -} - -// NodeProxyOptions is the query options to a Node's proxy call. -#NodeProxyOptions: { - metav1.#TypeMeta - - // Path is the URL path to use for the current proxy request to node. - // +optional - path?: string @go(Path) @protobuf(1,bytes,opt) -} - -// ServiceProxyOptions is the query options to a Service's proxy call. -#ServiceProxyOptions: { - metav1.#TypeMeta - - // Path is the part of URLs that include service endpoints, suffixes, - // and parameters to use for the current proxy request to service. - // For example, the whole request URL is - // http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - // Path is _search?q=user:kimchy. - // +optional - path?: string @go(Path) @protobuf(1,bytes,opt) -} - -// ObjectReference contains enough information to let you inspect or modify the referred object. -// --- -// New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs. -// 1. Ignored fields. It includes many fields which are not generally honored. For instance, ResourceVersion and FieldPath are both very rarely valid in actual usage. -// 2. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular -// restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted". -// Those cannot be well described when embedded. -// 3. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen. -// 4. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity -// during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple -// and the version of the actual struct is irrelevant. -// 5. We cannot easily change it. Because this type is embedded in many locations, updates to this type -// will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control. -// Instead of using this type, create a locally provided and used type that is well-focused on your reference. -// For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 . -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +structType=atomic -#ObjectReference: { - // Kind of the referent. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - kind?: string @go(Kind) @protobuf(1,bytes,opt) - - // Namespace of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - // +optional - namespace?: string @go(Namespace) @protobuf(2,bytes,opt) - - // Name of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - // +optional - name?: string @go(Name) @protobuf(3,bytes,opt) - - // UID of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - // +optional - uid?: types.#UID @go(UID) @protobuf(4,bytes,opt,casttype=k8s.io/apimachinery/pkg/types.UID) - - // API version of the referent. - // +optional - apiVersion?: string @go(APIVersion) @protobuf(5,bytes,opt) - - // Specific resourceVersion to which this reference is made, if any. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - // +optional - resourceVersion?: string @go(ResourceVersion) @protobuf(6,bytes,opt) - - // If referring to a piece of an object instead of an entire object, this string - // should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. - // For example, if the object reference is to a container within a pod, this would take on a value like: - // "spec.containers{name}" (where "name" refers to the name of the container that triggered - // the event) or if no container name is specified "spec.containers[2]" (container with - // index 2 in this pod). This syntax is chosen only to have some well-defined way of - // referencing a part of an object. - // TODO: this design is not final and this field is subject to change in the future. - // +optional - fieldPath?: string @go(FieldPath) @protobuf(7,bytes,opt) -} - -// LocalObjectReference contains enough information to let you locate the -// referenced object inside the same namespace. -// +structType=atomic -#LocalObjectReference: { - // Name of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - // TODO: Add other useful fields. apiVersion, kind, uid? - // +optional - name?: string @go(Name) @protobuf(1,bytes,opt) -} - -// TypedLocalObjectReference contains enough information to let you locate the -// typed referenced object inside the same namespace. -// +structType=atomic -#TypedLocalObjectReference: { - // APIGroup is the group for the resource being referenced. - // If APIGroup is not specified, the specified Kind must be in the core API group. - // For any other third-party types, APIGroup is required. - // +optional - apiGroup?: null | string @go(APIGroup,*string) @protobuf(1,bytes,opt) - - // Kind is the type of resource being referenced - kind: string @go(Kind) @protobuf(2,bytes,opt) - - // Name is the name of resource being referenced - name: string @go(Name) @protobuf(3,bytes,opt) -} - -// SerializedReference is a reference to serialized object. -#SerializedReference: { - metav1.#TypeMeta - - // The reference to an object in the system. - // +optional - reference?: #ObjectReference @go(Reference) @protobuf(1,bytes,opt) -} - -// EventSource contains information for an event. -#EventSource: { - // Component from which the event is generated. - // +optional - component?: string @go(Component) @protobuf(1,bytes,opt) - - // Node name on which the event is generated. - // +optional - host?: string @go(Host) @protobuf(2,bytes,opt) -} - -// Information only and will not cause any problems -#EventTypeNormal: "Normal" - -// These events are to warn that something might go wrong -#EventTypeWarning: "Warning" - -// Event is a report of an event somewhere in the cluster. Events -// have a limited retention time and triggers and messages may evolve -// with time. Event consumers should not rely on the timing of an event -// with a given Reason reflecting a consistent underlying trigger, or the -// continued existence of events with that Reason. Events should be -// treated as informative, best-effort, supplemental data. -#Event: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - metadata: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // The object that this event is about. - involvedObject: #ObjectReference @go(InvolvedObject) @protobuf(2,bytes,opt) - - // This should be a short, machine understandable string that gives the reason - // for the transition into the object's current status. - // TODO: provide exact specification for format. - // +optional - reason?: string @go(Reason) @protobuf(3,bytes,opt) - - // A human-readable description of the status of this operation. - // TODO: decide on maximum length. - // +optional - message?: string @go(Message) @protobuf(4,bytes,opt) - - // The component reporting this event. Should be a short machine understandable string. - // +optional - source?: #EventSource @go(Source) @protobuf(5,bytes,opt) - - // The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) - // +optional - firstTimestamp?: metav1.#Time @go(FirstTimestamp) @protobuf(6,bytes,opt) - - // The time at which the most recent occurrence of this event was recorded. - // +optional - lastTimestamp?: metav1.#Time @go(LastTimestamp) @protobuf(7,bytes,opt) - - // The number of times this event has occurred. - // +optional - count?: int32 @go(Count) @protobuf(8,varint,opt) - - // Type of this event (Normal, Warning), new types could be added in the future - // +optional - type?: string @go(Type) @protobuf(9,bytes,opt) - - // Time when this Event was first observed. - // +optional - eventTime?: metav1.#MicroTime @go(EventTime) @protobuf(10,bytes,opt) - - // Data about the Event series this event represents or nil if it's a singleton Event. - // +optional - series?: null | #EventSeries @go(Series,*EventSeries) @protobuf(11,bytes,opt) - - // What action was taken/failed regarding to the Regarding object. - // +optional - action?: string @go(Action) @protobuf(12,bytes,opt) - - // Optional secondary object for more complex actions. - // +optional - related?: null | #ObjectReference @go(Related,*ObjectReference) @protobuf(13,bytes,opt) - - // Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - // +optional - reportingComponent: string @go(ReportingController) @protobuf(14,bytes,opt) - - // ID of the controller instance, e.g. `kubelet-xyzf`. - // +optional - reportingInstance: string @go(ReportingInstance) @protobuf(15,bytes,opt) -} - -// EventSeries contain information on series of events, i.e. thing that was/is happening -// continuously for some time. -#EventSeries: { - // Number of occurrences in this series up to the last heartbeat time - count?: int32 @go(Count) @protobuf(1,varint) - - // Time of the last occurrence observed - lastObservedTime?: metav1.#MicroTime @go(LastObservedTime) @protobuf(2,bytes) -} - -// EventList is a list of events. -#EventList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of events - items: [...#Event] @go(Items,[]Event) @protobuf(2,bytes,rep) -} - -// List holds a list of objects, which may not be known by the server. -#List: metav1.#List - -// LimitType is a type of object that is limited -// +enum -#LimitType: string // #enumLimitType - -#enumLimitType: - #LimitTypePod | - #LimitTypeContainer | - #LimitTypePersistentVolumeClaim - -// Limit that applies to all pods in a namespace -#LimitTypePod: #LimitType & "Pod" - -// Limit that applies to all containers in a namespace -#LimitTypeContainer: #LimitType & "Container" - -// Limit that applies to all persistent volume claims in a namespace -#LimitTypePersistentVolumeClaim: #LimitType & "PersistentVolumeClaim" - -// LimitRangeItem defines a min/max usage limit for any resource that matches on kind. -#LimitRangeItem: { - // Type of resource that this limit applies to. - type: #LimitType @go(Type) @protobuf(1,bytes,opt,casttype=LimitType) - - // Max usage constraints on this kind by resource name. - // +optional - max?: #ResourceList @go(Max) @protobuf(2,bytes,rep,casttype=ResourceList,castkey=ResourceName) - - // Min usage constraints on this kind by resource name. - // +optional - min?: #ResourceList @go(Min) @protobuf(3,bytes,rep,casttype=ResourceList,castkey=ResourceName) - - // Default resource requirement limit value by resource name if resource limit is omitted. - // +optional - default?: #ResourceList @go(Default) @protobuf(4,bytes,rep,casttype=ResourceList,castkey=ResourceName) - - // DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. - // +optional - defaultRequest?: #ResourceList @go(DefaultRequest) @protobuf(5,bytes,rep,casttype=ResourceList,castkey=ResourceName) - - // MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. - // +optional - maxLimitRequestRatio?: #ResourceList @go(MaxLimitRequestRatio) @protobuf(6,bytes,rep,casttype=ResourceList,castkey=ResourceName) -} - -// LimitRangeSpec defines a min/max usage limit for resources that match on kind. -#LimitRangeSpec: { - // Limits is the list of LimitRangeItem objects that are enforced. - limits: [...#LimitRangeItem] @go(Limits,[]LimitRangeItem) @protobuf(1,bytes,rep) -} - -// LimitRange sets resource usage limits for each kind of resource in a Namespace. -#LimitRange: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the limits enforced. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #LimitRangeSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// LimitRangeList is a list of LimitRange items. -#LimitRangeList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of LimitRange objects. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - items: [...#LimitRange] @go(Items,[]LimitRange) @protobuf(2,bytes,rep) -} - -// Pods, number -#ResourcePods: #ResourceName & "pods" - -// Services, number -#ResourceServices: #ResourceName & "services" - -// ReplicationControllers, number -#ResourceReplicationControllers: #ResourceName & "replicationcontrollers" - -// ResourceQuotas, number -#ResourceQuotas: #ResourceName & "resourcequotas" - -// ResourceSecrets, number -#ResourceSecrets: #ResourceName & "secrets" - -// ResourceConfigMaps, number -#ResourceConfigMaps: #ResourceName & "configmaps" - -// ResourcePersistentVolumeClaims, number -#ResourcePersistentVolumeClaims: #ResourceName & "persistentvolumeclaims" - -// ResourceServicesNodePorts, number -#ResourceServicesNodePorts: #ResourceName & "services.nodeports" - -// ResourceServicesLoadBalancers, number -#ResourceServicesLoadBalancers: #ResourceName & "services.loadbalancers" - -// CPU request, in cores. (500m = .5 cores) -#ResourceRequestsCPU: #ResourceName & "requests.cpu" - -// Memory request, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) -#ResourceRequestsMemory: #ResourceName & "requests.memory" - -// Storage request, in bytes -#ResourceRequestsStorage: #ResourceName & "requests.storage" - -// Local ephemeral storage request, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) -#ResourceRequestsEphemeralStorage: #ResourceName & "requests.ephemeral-storage" - -// CPU limit, in cores. (500m = .5 cores) -#ResourceLimitsCPU: #ResourceName & "limits.cpu" - -// Memory limit, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) -#ResourceLimitsMemory: #ResourceName & "limits.memory" - -// Local ephemeral storage limit, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) -#ResourceLimitsEphemeralStorage: #ResourceName & "limits.ephemeral-storage" - -// HugePages request, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) -// As burst is not supported for HugePages, we would only quota its request, and ignore the limit. -#ResourceRequestsHugePagesPrefix: "requests.hugepages-" - -// Default resource requests prefix -#DefaultResourceRequestsPrefix: "requests." - -// A ResourceQuotaScope defines a filter that must match each object tracked by a quota -// +enum -#ResourceQuotaScope: string // #enumResourceQuotaScope - -#enumResourceQuotaScope: - #ResourceQuotaScopeTerminating | - #ResourceQuotaScopeNotTerminating | - #ResourceQuotaScopeBestEffort | - #ResourceQuotaScopeNotBestEffort | - #ResourceQuotaScopePriorityClass | - #ResourceQuotaScopeCrossNamespacePodAffinity - -// Match all pod objects where spec.activeDeadlineSeconds >=0 -#ResourceQuotaScopeTerminating: #ResourceQuotaScope & "Terminating" - -// Match all pod objects where spec.activeDeadlineSeconds is nil -#ResourceQuotaScopeNotTerminating: #ResourceQuotaScope & "NotTerminating" - -// Match all pod objects that have best effort quality of service -#ResourceQuotaScopeBestEffort: #ResourceQuotaScope & "BestEffort" - -// Match all pod objects that do not have best effort quality of service -#ResourceQuotaScopeNotBestEffort: #ResourceQuotaScope & "NotBestEffort" - -// Match all pod objects that have priority class mentioned -#ResourceQuotaScopePriorityClass: #ResourceQuotaScope & "PriorityClass" - -// Match all pod objects that have cross-namespace pod (anti)affinity mentioned. -// This is a beta feature enabled by the PodAffinityNamespaceSelector feature flag. -#ResourceQuotaScopeCrossNamespacePodAffinity: #ResourceQuotaScope & "CrossNamespacePodAffinity" - -// ResourceQuotaSpec defines the desired hard limits to enforce for Quota. -#ResourceQuotaSpec: { - // hard is the set of desired hard limits for each named resource. - // More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - // +optional - hard?: #ResourceList @go(Hard) @protobuf(1,bytes,rep,casttype=ResourceList,castkey=ResourceName) - - // A collection of filters that must match each object tracked by a quota. - // If not specified, the quota matches all objects. - // +optional - scopes?: [...#ResourceQuotaScope] @go(Scopes,[]ResourceQuotaScope) @protobuf(2,bytes,rep,casttype=ResourceQuotaScope) - - // scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota - // but expressed using ScopeSelectorOperator in combination with possible values. - // For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. - // +optional - scopeSelector?: null | #ScopeSelector @go(ScopeSelector,*ScopeSelector) @protobuf(3,bytes,opt) -} - -// A scope selector represents the AND of the selectors represented -// by the scoped-resource selector requirements. -// +structType=atomic -#ScopeSelector: { - // A list of scope selector requirements by scope of the resources. - // +optional - matchExpressions?: [...#ScopedResourceSelectorRequirement] @go(MatchExpressions,[]ScopedResourceSelectorRequirement) @protobuf(1,bytes,rep) -} - -// A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator -// that relates the scope name and values. -#ScopedResourceSelectorRequirement: { - // The name of the scope that the selector applies to. - scopeName: #ResourceQuotaScope @go(ScopeName) @protobuf(1,bytes,opt) - - // Represents a scope's relationship to a set of values. - // Valid operators are In, NotIn, Exists, DoesNotExist. - operator: #ScopeSelectorOperator @go(Operator) @protobuf(2,bytes,opt,casttype=ScopedResourceSelectorOperator) - - // An array of string values. If the operator is In or NotIn, - // the values array must be non-empty. If the operator is Exists or DoesNotExist, - // the values array must be empty. - // This array is replaced during a strategic merge patch. - // +optional - values?: [...string] @go(Values,[]string) @protobuf(3,bytes,rep) -} - -// A scope selector operator is the set of operators that can be used in -// a scope selector requirement. -// +enum -#ScopeSelectorOperator: string // #enumScopeSelectorOperator - -#enumScopeSelectorOperator: - #ScopeSelectorOpIn | - #ScopeSelectorOpNotIn | - #ScopeSelectorOpExists | - #ScopeSelectorOpDoesNotExist - -#ScopeSelectorOpIn: #ScopeSelectorOperator & "In" -#ScopeSelectorOpNotIn: #ScopeSelectorOperator & "NotIn" -#ScopeSelectorOpExists: #ScopeSelectorOperator & "Exists" -#ScopeSelectorOpDoesNotExist: #ScopeSelectorOperator & "DoesNotExist" - -// ResourceQuotaStatus defines the enforced hard limits and observed use. -#ResourceQuotaStatus: { - // Hard is the set of enforced hard limits for each named resource. - // More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - // +optional - hard?: #ResourceList @go(Hard) @protobuf(1,bytes,rep,casttype=ResourceList,castkey=ResourceName) - - // Used is the current observed total usage of the resource in the namespace. - // +optional - used?: #ResourceList @go(Used) @protobuf(2,bytes,rep,casttype=ResourceList,castkey=ResourceName) -} - -// ResourceQuota sets aggregate quota restrictions enforced per namespace -#ResourceQuota: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the desired quota. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #ResourceQuotaSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status defines the actual enforced quota and its current usage. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #ResourceQuotaStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ResourceQuotaList is a list of ResourceQuota items. -#ResourceQuotaList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of ResourceQuota objects. - // More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - items: [...#ResourceQuota] @go(Items,[]ResourceQuota) @protobuf(2,bytes,rep) -} - -// Secret holds secret data of a certain type. The total bytes of the values in -// the Data field must be less than MaxSecretSize bytes. -#Secret: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Immutable, if set to true, ensures that data stored in the Secret cannot - // be updated (only object metadata can be modified). - // If not set to true, the field can be modified at any time. - // Defaulted to nil. - // +optional - immutable?: null | bool @go(Immutable,*bool) @protobuf(5,varint,opt) - - // Data contains the secret data. Each key must consist of alphanumeric - // characters, '-', '_' or '.'. The serialized form of the secret data is a - // base64 encoded string, representing the arbitrary (possibly non-string) - // data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 - // +optional - data?: {[string]: bytes} @go(Data,map[string][]byte) @protobuf(2,bytes,rep) - - // stringData allows specifying non-binary secret data in string form. - // It is provided as a write-only input field for convenience. - // All keys and values are merged into the data field on write, overwriting any existing values. - // The stringData field is never output when reading from the API. - // +k8s:conversion-gen=false - // +optional - stringData?: {[string]: string} @go(StringData,map[string]string) @protobuf(4,bytes,rep) - - // Used to facilitate programmatic handling of secret data. - // More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types - // +optional - type?: #SecretType @go(Type) @protobuf(3,bytes,opt,casttype=SecretType) -} - -#MaxSecretSize: 1048576 - -#SecretType: string // #enumSecretType - -#enumSecretType: - #SecretTypeOpaque | - #SecretTypeServiceAccountToken | - #SecretTypeDockercfg | - #SecretTypeDockerConfigJson | - #SecretTypeBasicAuth | - #SecretTypeSSHAuth | - #SecretTypeTLS | - #SecretTypeBootstrapToken - -// SecretTypeOpaque is the default. Arbitrary user-defined data -#SecretTypeOpaque: #SecretType & "Opaque" - -// SecretTypeServiceAccountToken contains a token that identifies a service account to the API -// -// Required fields: -// - Secret.Annotations["kubernetes.io/service-account.name"] - the name of the ServiceAccount the token identifies -// - Secret.Annotations["kubernetes.io/service-account.uid"] - the UID of the ServiceAccount the token identifies -// - Secret.Data["token"] - a token that identifies the service account to the API -#SecretTypeServiceAccountToken: #SecretType & "kubernetes.io/service-account-token" - -// ServiceAccountNameKey is the key of the required annotation for SecretTypeServiceAccountToken secrets -#ServiceAccountNameKey: "kubernetes.io/service-account.name" - -// ServiceAccountUIDKey is the key of the required annotation for SecretTypeServiceAccountToken secrets -#ServiceAccountUIDKey: "kubernetes.io/service-account.uid" - -// ServiceAccountTokenKey is the key of the required data for SecretTypeServiceAccountToken secrets -#ServiceAccountTokenKey: "token" - -// ServiceAccountKubeconfigKey is the key of the optional kubeconfig data for SecretTypeServiceAccountToken secrets -#ServiceAccountKubeconfigKey: "kubernetes.kubeconfig" - -// ServiceAccountRootCAKey is the key of the optional root certificate authority for SecretTypeServiceAccountToken secrets -#ServiceAccountRootCAKey: "ca.crt" - -// ServiceAccountNamespaceKey is the key of the optional namespace to use as the default for namespaced API calls -#ServiceAccountNamespaceKey: "namespace" - -// SecretTypeDockercfg contains a dockercfg file that follows the same format rules as ~/.dockercfg -// -// Required fields: -// - Secret.Data[".dockercfg"] - a serialized ~/.dockercfg file -#SecretTypeDockercfg: #SecretType & "kubernetes.io/dockercfg" - -// DockerConfigKey is the key of the required data for SecretTypeDockercfg secrets -#DockerConfigKey: ".dockercfg" - -// SecretTypeDockerConfigJson contains a dockercfg file that follows the same format rules as ~/.docker/config.json -// -// Required fields: -// - Secret.Data[".dockerconfigjson"] - a serialized ~/.docker/config.json file -#SecretTypeDockerConfigJson: #SecretType & "kubernetes.io/dockerconfigjson" - -// DockerConfigJsonKey is the key of the required data for SecretTypeDockerConfigJson secrets -#DockerConfigJsonKey: ".dockerconfigjson" - -// SecretTypeBasicAuth contains data needed for basic authentication. -// -// Required at least one of fields: -// - Secret.Data["username"] - username used for authentication -// - Secret.Data["password"] - password or token needed for authentication -#SecretTypeBasicAuth: #SecretType & "kubernetes.io/basic-auth" - -// BasicAuthUsernameKey is the key of the username for SecretTypeBasicAuth secrets -#BasicAuthUsernameKey: "username" - -// BasicAuthPasswordKey is the key of the password or token for SecretTypeBasicAuth secrets -#BasicAuthPasswordKey: "password" - -// SecretTypeSSHAuth contains data needed for SSH authetication. -// -// Required field: -// - Secret.Data["ssh-privatekey"] - private SSH key needed for authentication -#SecretTypeSSHAuth: #SecretType & "kubernetes.io/ssh-auth" - -// SSHAuthPrivateKey is the key of the required SSH private key for SecretTypeSSHAuth secrets -#SSHAuthPrivateKey: "ssh-privatekey" - -// SecretTypeTLS contains information about a TLS client or server secret. It -// is primarily used with TLS termination of the Ingress resource, but may be -// used in other types. -// -// Required fields: -// - Secret.Data["tls.key"] - TLS private key. -// Secret.Data["tls.crt"] - TLS certificate. -// TODO: Consider supporting different formats, specifying CA/destinationCA. -#SecretTypeTLS: #SecretType & "kubernetes.io/tls" - -// TLSCertKey is the key for tls certificates in a TLS secret. -#TLSCertKey: "tls.crt" - -// TLSPrivateKeyKey is the key for the private key field in a TLS secret. -#TLSPrivateKeyKey: "tls.key" - -// SecretTypeBootstrapToken is used during the automated bootstrap process (first -// implemented by kubeadm). It stores tokens that are used to sign well known -// ConfigMaps. They are used for authn. -#SecretTypeBootstrapToken: #SecretType & "bootstrap.kubernetes.io/token" - -// SecretList is a list of Secret. -#SecretList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of secret objects. - // More info: https://kubernetes.io/docs/concepts/configuration/secret - items: [...#Secret] @go(Items,[]Secret) @protobuf(2,bytes,rep) -} - -// ConfigMap holds configuration data for pods to consume. -#ConfigMap: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Immutable, if set to true, ensures that data stored in the ConfigMap cannot - // be updated (only object metadata can be modified). - // If not set to true, the field can be modified at any time. - // Defaulted to nil. - // +optional - immutable?: null | bool @go(Immutable,*bool) @protobuf(4,varint,opt) - - // Data contains the configuration data. - // Each key must consist of alphanumeric characters, '-', '_' or '.'. - // Values with non-UTF-8 byte sequences must use the BinaryData field. - // The keys stored in Data must not overlap with the keys in - // the BinaryData field, this is enforced during validation process. - // +optional - data?: {[string]: string} @go(Data,map[string]string) @protobuf(2,bytes,rep) - - // BinaryData contains the binary data. - // Each key must consist of alphanumeric characters, '-', '_' or '.'. - // BinaryData can contain byte sequences that are not in the UTF-8 range. - // The keys stored in BinaryData must not overlap with the ones in - // the Data field, this is enforced during validation process. - // Using this field will require 1.10+ apiserver and - // kubelet. - // +optional - binaryData?: {[string]: bytes} @go(BinaryData,map[string][]byte) @protobuf(3,bytes,rep) -} - -// ConfigMapList is a resource containing a list of ConfigMap objects. -#ConfigMapList: { - metav1.#TypeMeta - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of ConfigMaps. - items: [...#ConfigMap] @go(Items,[]ConfigMap) @protobuf(2,bytes,rep) -} - -// Type and constants for component health validation. -#ComponentConditionType: string // #enumComponentConditionType - -#enumComponentConditionType: - #ComponentHealthy - -#ComponentHealthy: #ComponentConditionType & "Healthy" - -// Information about the condition of a component. -#ComponentCondition: { - // Type of condition for a component. - // Valid value: "Healthy" - type: #ComponentConditionType @go(Type) @protobuf(1,bytes,opt,casttype=ComponentConditionType) - - // Status of the condition for a component. - // Valid values for "Healthy": "True", "False", or "Unknown". - status: #ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=ConditionStatus) - - // Message about the condition for a component. - // For example, information about a health check. - // +optional - message?: string @go(Message) @protobuf(3,bytes,opt) - - // Condition error code for a component. - // For example, a health check error code. - // +optional - error?: string @go(Error) @protobuf(4,bytes,opt) -} - -// ComponentStatus (and ComponentStatusList) holds the cluster validation info. -// Deprecated: This API is deprecated in v1.19+ -#ComponentStatus: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // List of component conditions observed - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#ComponentCondition] @go(Conditions,[]ComponentCondition) @protobuf(2,bytes,rep) -} - -// Status of all the conditions for the component as a list of ComponentStatus objects. -// Deprecated: This API is deprecated in v1.19+ -#ComponentStatusList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of ComponentStatus objects. - items: [...#ComponentStatus] @go(Items,[]ComponentStatus) @protobuf(2,bytes,rep) -} - -// DownwardAPIVolumeSource represents a volume containing downward API info. -// Downward API volumes support ownership management and SELinux relabeling. -#DownwardAPIVolumeSource: { - // Items is a list of downward API volume file - // +optional - items?: [...#DownwardAPIVolumeFile] @go(Items,[]DownwardAPIVolumeFile) @protobuf(1,bytes,rep) - - // Optional: mode bits to use on created files by default. Must be a - // Optional: mode bits used to set permissions on created files by default. - // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - // Defaults to 0644. - // Directories within the path are not affected by this setting. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - defaultMode?: null | int32 @go(DefaultMode,*int32) @protobuf(2,varint,opt) -} - -#DownwardAPIVolumeSourceDefaultMode: int32 & 0o644 - -// DownwardAPIVolumeFile represents information to create the file containing the pod field -#DownwardAPIVolumeFile: { - // Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - path: string @go(Path) @protobuf(1,bytes,opt) - - // Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - // +optional - fieldRef?: null | #ObjectFieldSelector @go(FieldRef,*ObjectFieldSelector) @protobuf(2,bytes,opt) - - // Selects a resource of the container: only resources limits and requests - // (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - // +optional - resourceFieldRef?: null | #ResourceFieldSelector @go(ResourceFieldRef,*ResourceFieldSelector) @protobuf(3,bytes,opt) - - // Optional: mode bits used to set permissions on this file, must be an octal value - // between 0000 and 0777 or a decimal value between 0 and 511. - // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - // If not specified, the volume defaultMode will be used. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - mode?: null | int32 @go(Mode,*int32) @protobuf(4,varint,opt) -} - -// Represents downward API info for projecting into a projected volume. -// Note that this is identical to a downwardAPI volume source without the default -// mode. -#DownwardAPIProjection: { - // Items is a list of DownwardAPIVolume file - // +optional - items?: [...#DownwardAPIVolumeFile] @go(Items,[]DownwardAPIVolumeFile) @protobuf(1,bytes,rep) -} - -// SecurityContext holds security configuration that will be applied to a container. -// Some fields are present in both SecurityContext and PodSecurityContext. When both -// are set, the values in SecurityContext take precedence. -#SecurityContext: { - // The capabilities to add/drop when running containers. - // Defaults to the default set of capabilities granted by the container runtime. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - capabilities?: null | #Capabilities @go(Capabilities,*Capabilities) @protobuf(1,bytes,opt) - - // Run container in privileged mode. - // Processes in privileged containers are essentially equivalent to root on the host. - // Defaults to false. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - privileged?: null | bool @go(Privileged,*bool) @protobuf(2,varint,opt) - - // The SELinux context to be applied to the container. - // If unspecified, the container runtime will allocate a random SELinux context for each - // container. May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - seLinuxOptions?: null | #SELinuxOptions @go(SELinuxOptions,*SELinuxOptions) @protobuf(3,bytes,opt) - - // The Windows specific settings applied to all containers. - // If unspecified, the options from the PodSecurityContext will be used. - // If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - // Note that this field cannot be set when spec.os.name is linux. - // +optional - windowsOptions?: null | #WindowsSecurityContextOptions @go(WindowsOptions,*WindowsSecurityContextOptions) @protobuf(10,bytes,opt) - - // The UID to run the entrypoint of the container process. - // Defaults to user specified in image metadata if unspecified. - // May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - runAsUser?: null | int64 @go(RunAsUser,*int64) @protobuf(4,varint,opt) - - // The GID to run the entrypoint of the container process. - // Uses runtime default if unset. - // May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - runAsGroup?: null | int64 @go(RunAsGroup,*int64) @protobuf(8,varint,opt) - - // Indicates that the container must run as a non-root user. - // If true, the Kubelet will validate the image at runtime to ensure that it - // does not run as UID 0 (root) and fail to start the container if it does. - // If unset or false, no such validation will be performed. - // May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - runAsNonRoot?: null | bool @go(RunAsNonRoot,*bool) @protobuf(5,varint,opt) - - // Whether this container has a read-only root filesystem. - // Default is false. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - readOnlyRootFilesystem?: null | bool @go(ReadOnlyRootFilesystem,*bool) @protobuf(6,varint,opt) - - // AllowPrivilegeEscalation controls whether a process can gain more - // privileges than its parent process. This bool directly controls if - // the no_new_privs flag will be set on the container process. - // AllowPrivilegeEscalation is true always when the container is: - // 1) run as Privileged - // 2) has CAP_SYS_ADMIN - // Note that this field cannot be set when spec.os.name is windows. - // +optional - allowPrivilegeEscalation?: null | bool @go(AllowPrivilegeEscalation,*bool) @protobuf(7,varint,opt) - - // procMount denotes the type of proc mount to use for the containers. - // The default is DefaultProcMount which uses the container runtime defaults for - // readonly paths and masked paths. - // This requires the ProcMountType feature flag to be enabled. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - procMount?: null | #ProcMountType @go(ProcMount,*ProcMountType) @protobuf(9,bytes,opt) - - // The seccomp options to use by this container. If seccomp options are - // provided at both the pod & container level, the container options - // override the pod options. - // Note that this field cannot be set when spec.os.name is windows. - // +optional - seccompProfile?: null | #SeccompProfile @go(SeccompProfile,*SeccompProfile) @protobuf(11,bytes,opt) -} - -// +enum -#ProcMountType: string // #enumProcMountType - -#enumProcMountType: - #DefaultProcMount | - #UnmaskedProcMount - -// DefaultProcMount uses the container runtime defaults for readonly and masked -// paths for /proc. Most container runtimes mask certain paths in /proc to avoid -// accidental security exposure of special devices or information. -#DefaultProcMount: #ProcMountType & "Default" - -// UnmaskedProcMount bypasses the default masking behavior of the container -// runtime and ensures the newly created /proc the container stays in tact with -// no modifications. -#UnmaskedProcMount: #ProcMountType & "Unmasked" - -// SELinuxOptions are the labels to be applied to the container -#SELinuxOptions: { - // User is a SELinux user label that applies to the container. - // +optional - user?: string @go(User) @protobuf(1,bytes,opt) - - // Role is a SELinux role label that applies to the container. - // +optional - role?: string @go(Role) @protobuf(2,bytes,opt) - - // Type is a SELinux type label that applies to the container. - // +optional - type?: string @go(Type) @protobuf(3,bytes,opt) - - // Level is SELinux level label that applies to the container. - // +optional - level?: string @go(Level) @protobuf(4,bytes,opt) -} - -// WindowsSecurityContextOptions contain Windows-specific options and credentials. -#WindowsSecurityContextOptions: { - // GMSACredentialSpecName is the name of the GMSA credential spec to use. - // +optional - gmsaCredentialSpecName?: null | string @go(GMSACredentialSpecName,*string) @protobuf(1,bytes,opt) - - // GMSACredentialSpec is where the GMSA admission webhook - // (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the - // GMSA credential spec named by the GMSACredentialSpecName field. - // +optional - gmsaCredentialSpec?: null | string @go(GMSACredentialSpec,*string) @protobuf(2,bytes,opt) - - // The UserName in Windows to run the entrypoint of the container process. - // Defaults to the user specified in image metadata if unspecified. - // May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - runAsUserName?: null | string @go(RunAsUserName,*string) @protobuf(3,bytes,opt) - - // HostProcess determines if a container should be run as a 'Host Process' container. - // This field is alpha-level and will only be honored by components that enable the - // WindowsHostProcessContainers feature flag. Setting this field without the feature - // flag will result in errors when validating the Pod. All of a Pod's containers must - // have the same effective HostProcess value (it is not allowed to have a mix of HostProcess - // containers and non-HostProcess containers). In addition, if HostProcess is true - // then HostNetwork must also be set to true. - // +optional - hostProcess?: null | bool @go(HostProcess,*bool) @protobuf(4,bytes,opt) -} - -// RangeAllocation is not a public type. -#RangeAllocation: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Range is string that identifies the range represented by 'data'. - range: string @go(Range) @protobuf(2,bytes,opt) - - // Data is a bit array containing all allocated addresses in the previous segment. - data: bytes @go(Data,[]byte) @protobuf(3,bytes,opt) -} - -// DefaultSchedulerName defines the name of default scheduler. -#DefaultSchedulerName: "default-scheduler" - -// RequiredDuringScheduling affinity is not symmetric, but there is an implicit PreferredDuringScheduling affinity rule -// corresponding to every RequiredDuringScheduling affinity rule. -// When the --hard-pod-affinity-weight scheduler flag is not specified, -// DefaultHardPodAffinityWeight defines the weight of the implicit PreferredDuringScheduling affinity rule. -#DefaultHardPodAffinitySymmetricWeight: int32 & 1 - -// Sysctl defines a kernel parameter to be set -#Sysctl: { - // Name of a property to set - name: string @go(Name) @protobuf(1,bytes,opt) - - // Value of a property to set - value: string @go(Value) @protobuf(2,bytes,opt) -} - -// NodeResources is an object for conveying resource information about a node. -// see https://kubernetes.io/docs/concepts/architecture/nodes/#capacity for more details. -#NodeResources: { - // Capacity represents the available resources of a node - Capacity: #ResourceList @protobuf(1,bytes,rep,name=capacity,casttype=ResourceList,castkey=ResourceName) -} - -// Enable stdin for remote command execution -#ExecStdinParam: "input" - -// Enable stdout for remote command execution -#ExecStdoutParam: "output" - -// Enable stderr for remote command execution -#ExecStderrParam: "error" - -// Enable TTY for remote command execution -#ExecTTYParam: "tty" - -// Command to run for remote command execution -#ExecCommandParam: "command" - -// Name of header that specifies stream type -#StreamType: "streamType" - -// Value for streamType header for stdin stream -#StreamTypeStdin: "stdin" - -// Value for streamType header for stdout stream -#StreamTypeStdout: "stdout" - -// Value for streamType header for stderr stream -#StreamTypeStderr: "stderr" - -// Value for streamType header for data stream -#StreamTypeData: "data" - -// Value for streamType header for error stream -#StreamTypeError: "error" - -// Value for streamType header for terminal resize stream -#StreamTypeResize: "resize" - -// Name of header that specifies the port being forwarded -#PortHeader: "port" - -// Name of header that specifies a request ID used to associate the error -// and data streams for a single forwarded connection -#PortForwardRequestIDHeader: "requestID" - -#PortStatus: { - // Port is the port number of the service port of which status is recorded here - port: int32 @go(Port) @protobuf(1,varint,opt) - - // Protocol is the protocol of the service port of which status is recorded here - // The supported values are: "TCP", "UDP", "SCTP" - protocol: #Protocol @go(Protocol) @protobuf(2,bytes,opt,casttype=Protocol) - - // Error is to record the problem with the service port - // The format of the error shall comply with the following rules: - // - built-in error values shall be specified in this file and those shall use - // CamelCase names - // - cloud provider specific error values must have names that comply with the - // format foo.example.com/CamelCase. - // --- - // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - // +optional - // +kubebuilder:validation:Required - // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` - // +kubebuilder:validation:MaxLength=316 - error?: null | string @go(Error,*string) @protobuf(3,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/api/core/v1/well_known_labels_go_gen.cue b/cue.mod/gen/k8s.io/api/core/v1/well_known_labels_go_gen.cue deleted file mode 100644 index cdb1cd6..0000000 --- a/cue.mod/gen/k8s.io/api/core/v1/well_known_labels_go_gen.cue +++ /dev/null @@ -1,55 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/core/v1 - -package v1 - -#LabelHostname: "kubernetes.io/hostname" -#LabelTopologyZone: "topology.kubernetes.io/zone" -#LabelTopologyRegion: "topology.kubernetes.io/region" - -// These label have been deprecated since 1.17, but will be supported for -// the foreseeable future, to accommodate things like long-lived PVs that -// use them. New users should prefer the "topology.kubernetes.io/*" -// equivalents. -#LabelFailureDomainBetaZone: "failure-domain.beta.kubernetes.io/zone" -#LabelFailureDomainBetaRegion: "failure-domain.beta.kubernetes.io/region" - -// Retained for compat when vendored. Do not use these consts in new code. -#LabelZoneFailureDomain: "failure-domain.beta.kubernetes.io/zone" -#LabelZoneRegion: "failure-domain.beta.kubernetes.io/region" -#LabelZoneFailureDomainStable: "topology.kubernetes.io/zone" -#LabelZoneRegionStable: "topology.kubernetes.io/region" -#LabelInstanceType: "beta.kubernetes.io/instance-type" -#LabelInstanceTypeStable: "node.kubernetes.io/instance-type" -#LabelOSStable: "kubernetes.io/os" -#LabelArchStable: "kubernetes.io/arch" - -// LabelWindowsBuild is used on Windows nodes to specify the Windows build number starting with v1.17.0. -// It's in the format MajorVersion.MinorVersion.BuildNumber (for ex: 10.0.17763) -#LabelWindowsBuild: "node.kubernetes.io/windows-build" - -// LabelNamespaceSuffixKubelet is an allowed label namespace suffix kubelets can self-set ([*.]kubelet.kubernetes.io/*) -#LabelNamespaceSuffixKubelet: "kubelet.kubernetes.io" - -// LabelNamespaceSuffixNode is an allowed label namespace suffix kubelets can self-set ([*.]node.kubernetes.io/*) -#LabelNamespaceSuffixNode: "node.kubernetes.io" - -// LabelNamespaceNodeRestriction is a forbidden label namespace that kubelets may not self-set when the NodeRestriction admission plugin is enabled -#LabelNamespaceNodeRestriction: "node-restriction.kubernetes.io" - -// IsHeadlessService is added by Controller to an Endpoint denoting if its parent -// Service is Headless. The existence of this label can be used further by other -// controllers and kube-proxy to check if the Endpoint objects should be replicated when -// using Headless Services -#IsHeadlessService: "service.kubernetes.io/headless" - -// LabelNodeExcludeBalancers specifies that the node should not be considered as a target -// for external load-balancers which use nodes as a second hop (e.g. many cloud LBs which only -// understand nodes). For services that use externalTrafficPolicy=Local, this may mean that -// any backends on excluded nodes are not reachable by those external load-balancers. -// Implementations of this exclusion may vary based on provider. -#LabelNodeExcludeBalancers: "node.kubernetes.io/exclude-from-external-load-balancers" - -// LabelMetadataName is the label name which, in-tree, is used to automatically label namespaces, so they can be selected easily by tools which require definitive labels -#LabelMetadataName: "kubernetes.io/metadata.name" diff --git a/cue.mod/gen/k8s.io/api/core/v1/well_known_taints_go_gen.cue b/cue.mod/gen/k8s.io/api/core/v1/well_known_taints_go_gen.cue deleted file mode 100644 index 758d9af..0000000 --- a/cue.mod/gen/k8s.io/api/core/v1/well_known_taints_go_gen.cue +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/core/v1 - -package v1 - -// TaintNodeNotReady will be added when node is not ready -// and removed when node becomes ready. -#TaintNodeNotReady: "node.kubernetes.io/not-ready" - -// TaintNodeUnreachable will be added when node becomes unreachable -// (corresponding to NodeReady status ConditionUnknown) -// and removed when node becomes reachable (NodeReady status ConditionTrue). -#TaintNodeUnreachable: "node.kubernetes.io/unreachable" - -// TaintNodeUnschedulable will be added when node becomes unschedulable -// and removed when node becomes schedulable. -#TaintNodeUnschedulable: "node.kubernetes.io/unschedulable" - -// TaintNodeMemoryPressure will be added when node has memory pressure -// and removed when node has enough memory. -#TaintNodeMemoryPressure: "node.kubernetes.io/memory-pressure" - -// TaintNodeDiskPressure will be added when node has disk pressure -// and removed when node has enough disk. -#TaintNodeDiskPressure: "node.kubernetes.io/disk-pressure" - -// TaintNodeNetworkUnavailable will be added when node's network is unavailable -// and removed when network becomes ready. -#TaintNodeNetworkUnavailable: "node.kubernetes.io/network-unavailable" - -// TaintNodePIDPressure will be added when node has pid pressure -// and removed when node has enough pid. -#TaintNodePIDPressure: "node.kubernetes.io/pid-pressure" diff --git a/cue.mod/gen/k8s.io/api/discovery/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/discovery/v1/register_go_gen.cue deleted file mode 100644 index 19a7d63..0000000 --- a/cue.mod/gen/k8s.io/api/discovery/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/discovery/v1 - -package v1 - -#GroupName: "discovery.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/discovery/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/discovery/v1/types_go_gen.cue deleted file mode 100644 index 144ef53..0000000 --- a/cue.mod/gen/k8s.io/api/discovery/v1/types_go_gen.cue +++ /dev/null @@ -1,206 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/discovery/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" -) - -// EndpointSlice represents a subset of the endpoints that implement a service. -// For a given service there may be multiple EndpointSlice objects, selected by -// labels, which must be joined to produce the full set of endpoints. -#EndpointSlice: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // addressType specifies the type of address carried by this EndpointSlice. - // All addresses in this slice must be the same type. This field is - // immutable after creation. The following address types are currently - // supported: - // * IPv4: Represents an IPv4 Address. - // * IPv6: Represents an IPv6 Address. - // * FQDN: Represents a Fully Qualified Domain Name. - addressType: #AddressType @go(AddressType) @protobuf(4,bytes,rep) - - // endpoints is a list of unique endpoints in this slice. Each slice may - // include a maximum of 1000 endpoints. - // +listType=atomic - endpoints: [...#Endpoint] @go(Endpoints,[]Endpoint) @protobuf(2,bytes,rep) - - // ports specifies the list of network ports exposed by each endpoint in - // this slice. Each port must have a unique name. When ports is empty, it - // indicates that there are no defined ports. When a port is defined with a - // nil port value, it indicates "all ports". Each slice may include a - // maximum of 100 ports. - // +optional - // +listType=atomic - ports: [...#EndpointPort] @go(Ports,[]EndpointPort) @protobuf(3,bytes,rep) -} - -// AddressType represents the type of address referred to by an endpoint. -// +enum -#AddressType: string // #enumAddressType - -#enumAddressType: - #AddressTypeIPv4 | - #AddressTypeIPv6 | - #AddressTypeFQDN - -// AddressTypeIPv4 represents an IPv4 Address. -#AddressTypeIPv4: #AddressType & "IPv4" - -// AddressTypeIPv6 represents an IPv6 Address. -#AddressTypeIPv6: #AddressType & "IPv6" - -// AddressTypeFQDN represents a FQDN. -#AddressTypeFQDN: #AddressType & "FQDN" - -// Endpoint represents a single logical "backend" implementing a service. -#Endpoint: { - // addresses of this endpoint. The contents of this field are interpreted - // according to the corresponding EndpointSlice addressType field. Consumers - // must handle different types of addresses in the context of their own - // capabilities. This must contain at least one address but no more than - // 100. These are all assumed to be fungible and clients may choose to only - // use the first element. Refer to: https://issue.k8s.io/106267 - // +listType=set - addresses: [...string] @go(Addresses,[]string) @protobuf(1,bytes,rep) - - // conditions contains information about the current status of the endpoint. - conditions?: #EndpointConditions @go(Conditions) @protobuf(2,bytes,opt) - - // hostname of this endpoint. This field may be used by consumers of - // endpoints to distinguish endpoints from each other (e.g. in DNS names). - // Multiple endpoints which use the same hostname should be considered - // fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS - // Label (RFC 1123) validation. - // +optional - hostname?: null | string @go(Hostname,*string) @protobuf(3,bytes,opt) - - // targetRef is a reference to a Kubernetes object that represents this - // endpoint. - // +optional - targetRef?: null | v1.#ObjectReference @go(TargetRef,*v1.ObjectReference) @protobuf(4,bytes,opt) - - // deprecatedTopology contains topology information part of the v1beta1 - // API. This field is deprecated, and will be removed when the v1beta1 - // API is removed (no sooner than kubernetes v1.24). While this field can - // hold values, it is not writable through the v1 API, and any attempts to - // write to it will be silently ignored. Topology information can be found - // in the zone and nodeName fields instead. - // +optional - deprecatedTopology?: {[string]: string} @go(DeprecatedTopology,map[string]string) @protobuf(5,bytes,opt) - - // nodeName represents the name of the Node hosting this endpoint. This can - // be used to determine endpoints local to a Node. - // +optional - nodeName?: null | string @go(NodeName,*string) @protobuf(6,bytes,opt) - - // zone is the name of the Zone this endpoint exists in. - // +optional - zone?: null | string @go(Zone,*string) @protobuf(7,bytes,opt) - - // hints contains information associated with how an endpoint should be - // consumed. - // +optional - hints?: null | #EndpointHints @go(Hints,*EndpointHints) @protobuf(8,bytes,opt) -} - -// EndpointConditions represents the current condition of an endpoint. -#EndpointConditions: { - // ready indicates that this endpoint is prepared to receive traffic, - // according to whatever system is managing the endpoint. A nil value - // indicates an unknown state. In most cases consumers should interpret this - // unknown state as ready. For compatibility reasons, ready should never be - // "true" for terminating endpoints, except when the normal readiness - // behavior is being explicitly overridden, for example when the associated - // Service has set the publishNotReadyAddresses flag. - // +optional - ready?: null | bool @go(Ready,*bool) @protobuf(1,bytes) - - // serving is identical to ready except that it is set regardless of the - // terminating state of endpoints. This condition should be set to true for - // a ready endpoint that is terminating. If nil, consumers should defer to - // the ready condition. - // +optional - serving?: null | bool @go(Serving,*bool) @protobuf(2,bytes) - - // terminating indicates that this endpoint is terminating. A nil value - // indicates an unknown state. Consumers should interpret this unknown state - // to mean that the endpoint is not terminating. - // +optional - terminating?: null | bool @go(Terminating,*bool) @protobuf(3,bytes) -} - -// EndpointHints provides hints describing how an endpoint should be consumed. -#EndpointHints: { - // forZones indicates the zone(s) this endpoint should be consumed by to - // enable topology aware routing. - // +listType=atomic - forZones?: [...#ForZone] @go(ForZones,[]ForZone) @protobuf(1,bytes) -} - -// ForZone provides information about which zones should consume this endpoint. -#ForZone: { - // name represents the name of the zone. - name: string @go(Name) @protobuf(1,bytes) -} - -// EndpointPort represents a Port used by an EndpointSlice -// +structType=atomic -#EndpointPort: { - // name represents the name of this port. All ports in an EndpointSlice must have a unique name. - // If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. - // Name must either be an empty string or pass DNS_LABEL validation: - // * must be no more than 63 characters long. - // * must consist of lower case alphanumeric characters or '-'. - // * must start and end with an alphanumeric character. - // Default is empty string. - name?: null | string @go(Name,*string) @protobuf(1,bytes) - - // protocol represents the IP protocol for this port. - // Must be UDP, TCP, or SCTP. - // Default is TCP. - protocol?: null | v1.#Protocol @go(Protocol,*v1.Protocol) @protobuf(2,bytes) - - // port represents the port number of the endpoint. - // If this is not specified, ports are not restricted and must be - // interpreted in the context of the specific consumer. - port?: null | int32 @go(Port,*int32) @protobuf(3,bytes,opt) - - // The application protocol for this port. - // This is used as a hint for implementations to offer richer behavior for protocols that they understand. - // This field follows standard Kubernetes label syntax. - // Valid values are either: - // - // * Un-prefixed protocol names - reserved for IANA standard service names (as per - // RFC-6335 and https://www.iana.org/assignments/service-names). - // - // * Kubernetes-defined prefixed names: - // * 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 - // * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 - // * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 - // - // * Other protocols should use implementation-defined prefixed names such as - // mycompany.com/my-custom-protocol. - // +optional - appProtocol?: null | string @go(AppProtocol,*string) @protobuf(4,bytes) -} - -// EndpointSliceList represents a list of endpoint slices -#EndpointSliceList: { - metav1.#TypeMeta - - // Standard list metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of endpoint slices - items: [...#EndpointSlice] @go(Items,[]EndpointSlice) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/discovery/v1/well_known_labels_go_gen.cue b/cue.mod/gen/k8s.io/api/discovery/v1/well_known_labels_go_gen.cue deleted file mode 100644 index 9c40d30..0000000 --- a/cue.mod/gen/k8s.io/api/discovery/v1/well_known_labels_go_gen.cue +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/discovery/v1 - -package v1 - -// LabelServiceName is used to indicate the name of a Kubernetes service. -#LabelServiceName: "kubernetes.io/service-name" - -// LabelManagedBy is used to indicate the controller or entity that manages -// an EndpointSlice. This label aims to enable different EndpointSlice -// objects to be managed by different controllers or entities within the -// same cluster. It is highly recommended to configure this label for all -// EndpointSlices. -#LabelManagedBy: "endpointslice.kubernetes.io/managed-by" - -// LabelSkipMirror can be set to true on an Endpoints resource to indicate -// that the EndpointSliceMirroring controller should not mirror this -// resource with EndpointSlices. -#LabelSkipMirror: "endpointslice.kubernetes.io/skip-mirror" diff --git a/cue.mod/gen/k8s.io/api/discovery/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/discovery/v1beta1/register_go_gen.cue deleted file mode 100644 index 3cf1e2b..0000000 --- a/cue.mod/gen/k8s.io/api/discovery/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/discovery/v1beta1 - -package v1beta1 - -#GroupName: "discovery.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/discovery/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/discovery/v1beta1/types_go_gen.cue deleted file mode 100644 index 8676f64..0000000 --- a/cue.mod/gen/k8s.io/api/discovery/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,197 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/discovery/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" -) - -// EndpointSlice represents a subset of the endpoints that implement a service. -// For a given service there may be multiple EndpointSlice objects, selected by -// labels, which must be joined to produce the full set of endpoints. -#EndpointSlice: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // addressType specifies the type of address carried by this EndpointSlice. - // All addresses in this slice must be the same type. This field is - // immutable after creation. The following address types are currently - // supported: - // * IPv4: Represents an IPv4 Address. - // * IPv6: Represents an IPv6 Address. - // * FQDN: Represents a Fully Qualified Domain Name. - addressType: #AddressType @go(AddressType) @protobuf(4,bytes,rep) - - // endpoints is a list of unique endpoints in this slice. Each slice may - // include a maximum of 1000 endpoints. - // +listType=atomic - endpoints: [...#Endpoint] @go(Endpoints,[]Endpoint) @protobuf(2,bytes,rep) - - // ports specifies the list of network ports exposed by each endpoint in - // this slice. Each port must have a unique name. When ports is empty, it - // indicates that there are no defined ports. When a port is defined with a - // nil port value, it indicates "all ports". Each slice may include a - // maximum of 100 ports. - // +optional - // +listType=atomic - ports: [...#EndpointPort] @go(Ports,[]EndpointPort) @protobuf(3,bytes,rep) -} - -// AddressType represents the type of address referred to by an endpoint. -#AddressType: string // #enumAddressType - -#enumAddressType: - #AddressTypeIPv4 | - #AddressTypeIPv6 | - #AddressTypeFQDN - -// AddressTypeIPv4 represents an IPv4 Address. -#AddressTypeIPv4: #AddressType & "IPv4" - -// AddressTypeIPv6 represents an IPv6 Address. -#AddressTypeIPv6: #AddressType & "IPv6" - -// AddressTypeFQDN represents a FQDN. -#AddressTypeFQDN: #AddressType & "FQDN" - -// Endpoint represents a single logical "backend" implementing a service. -#Endpoint: { - // addresses of this endpoint. The contents of this field are interpreted - // according to the corresponding EndpointSlice addressType field. Consumers - // must handle different types of addresses in the context of their own - // capabilities. This must contain at least one address but no more than - // 100. These are all assumed to be fungible and clients may choose to only - // use the first element. Refer to: https://issue.k8s.io/106267 - // +listType=set - addresses: [...string] @go(Addresses,[]string) @protobuf(1,bytes,rep) - - // conditions contains information about the current status of the endpoint. - conditions?: #EndpointConditions @go(Conditions) @protobuf(2,bytes,opt) - - // hostname of this endpoint. This field may be used by consumers of - // endpoints to distinguish endpoints from each other (e.g. in DNS names). - // Multiple endpoints which use the same hostname should be considered - // fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS - // Label (RFC 1123) validation. - // +optional - hostname?: null | string @go(Hostname,*string) @protobuf(3,bytes,opt) - - // targetRef is a reference to a Kubernetes object that represents this - // endpoint. - // +optional - targetRef?: null | v1.#ObjectReference @go(TargetRef,*v1.ObjectReference) @protobuf(4,bytes,opt) - - // topology contains arbitrary topology information associated with the - // endpoint. These key/value pairs must conform with the label format. - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - // Topology may include a maximum of 16 key/value pairs. This includes, but - // is not limited to the following well known keys: - // * kubernetes.io/hostname: the value indicates the hostname of the node - // where the endpoint is located. This should match the corresponding - // node label. - // * topology.kubernetes.io/zone: the value indicates the zone where the - // endpoint is located. This should match the corresponding node label. - // * topology.kubernetes.io/region: the value indicates the region where the - // endpoint is located. This should match the corresponding node label. - // This field is deprecated and will be removed in future api versions. - // +optional - topology?: {[string]: string} @go(Topology,map[string]string) @protobuf(5,bytes,opt) - - // nodeName represents the name of the Node hosting this endpoint. This can - // be used to determine endpoints local to a Node. - // +optional - nodeName?: null | string @go(NodeName,*string) @protobuf(6,bytes,opt) - - // hints contains information associated with how an endpoint should be - // consumed. - // +featureGate=TopologyAwareHints - // +optional - hints?: null | #EndpointHints @go(Hints,*EndpointHints) @protobuf(7,bytes,opt) -} - -// EndpointConditions represents the current condition of an endpoint. -#EndpointConditions: { - // ready indicates that this endpoint is prepared to receive traffic, - // according to whatever system is managing the endpoint. A nil value - // indicates an unknown state. In most cases consumers should interpret this - // unknown state as ready. For compatibility reasons, ready should never be - // "true" for terminating endpoints. - // +optional - ready?: null | bool @go(Ready,*bool) @protobuf(1,bytes) - - // serving is identical to ready except that it is set regardless of the - // terminating state of endpoints. This condition should be set to true for - // a ready endpoint that is terminating. If nil, consumers should defer to - // the ready condition. - // +optional - serving?: null | bool @go(Serving,*bool) @protobuf(2,bytes) - - // terminating indicates that this endpoint is terminating. A nil value - // indicates an unknown state. Consumers should interpret this unknown state - // to mean that the endpoint is not terminating. - // +optional - terminating?: null | bool @go(Terminating,*bool) @protobuf(3,bytes) -} - -// EndpointHints provides hints describing how an endpoint should be consumed. -#EndpointHints: { - // forZones indicates the zone(s) this endpoint should be consumed by to - // enable topology aware routing. May contain a maximum of 8 entries. - // +listType=atomic - forZones?: [...#ForZone] @go(ForZones,[]ForZone) @protobuf(1,bytes) -} - -// ForZone provides information about which zones should consume this endpoint. -#ForZone: { - // name represents the name of the zone. - name: string @go(Name) @protobuf(1,bytes) -} - -// EndpointPort represents a Port used by an EndpointSlice -#EndpointPort: { - // name represents the name of this port. All ports in an EndpointSlice must have a unique name. - // If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. - // Name must either be an empty string or pass DNS_LABEL validation: - // * must be no more than 63 characters long. - // * must consist of lower case alphanumeric characters or '-'. - // * must start and end with an alphanumeric character. - // Default is empty string. - name?: null | string @go(Name,*string) @protobuf(1,bytes) - - // protocol represents the IP protocol for this port. - // Must be UDP, TCP, or SCTP. - // Default is TCP. - protocol?: null | v1.#Protocol @go(Protocol,*v1.Protocol) @protobuf(2,bytes) - - // port represents the port number of the endpoint. - // If this is not specified, ports are not restricted and must be - // interpreted in the context of the specific consumer. - port?: null | int32 @go(Port,*int32) @protobuf(3,bytes,opt) - - // appProtocol represents the application protocol for this port. - // This field follows standard Kubernetes label syntax. - // Un-prefixed names are reserved for IANA standard service names (as per - // RFC-6335 and https://www.iana.org/assignments/service-names). - // Non-standard protocols should use prefixed names such as - // mycompany.com/my-custom-protocol. - // +optional - appProtocol?: null | string @go(AppProtocol,*string) @protobuf(4,bytes) -} - -// EndpointSliceList represents a list of endpoint slices -#EndpointSliceList: { - metav1.#TypeMeta - - // Standard list metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of endpoint slices - items: [...#EndpointSlice] @go(Items,[]EndpointSlice) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/discovery/v1beta1/well_known_labels_go_gen.cue b/cue.mod/gen/k8s.io/api/discovery/v1beta1/well_known_labels_go_gen.cue deleted file mode 100644 index 20f2e68..0000000 --- a/cue.mod/gen/k8s.io/api/discovery/v1beta1/well_known_labels_go_gen.cue +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/discovery/v1beta1 - -package v1beta1 - -// LabelServiceName is used to indicate the name of a Kubernetes service. -#LabelServiceName: "kubernetes.io/service-name" - -// LabelManagedBy is used to indicate the controller or entity that manages -// an EndpointSlice. This label aims to enable different EndpointSlice -// objects to be managed by different controllers or entities within the -// same cluster. It is highly recommended to configure this label for all -// EndpointSlices. -#LabelManagedBy: "endpointslice.kubernetes.io/managed-by" - -// LabelSkipMirror can be set to true on an Endpoints resource to indicate -// that the EndpointSliceMirroring controller should not mirror this -// resource with EndpointSlices. -#LabelSkipMirror: "endpointslice.kubernetes.io/skip-mirror" diff --git a/cue.mod/gen/k8s.io/api/events/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/events/v1/register_go_gen.cue deleted file mode 100644 index c4138c1..0000000 --- a/cue.mod/gen/k8s.io/api/events/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/events/v1 - -package v1 - -#GroupName: "events.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/events/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/events/v1/types_go_gen.cue deleted file mode 100644 index 47acc8f..0000000 --- a/cue.mod/gen/k8s.io/api/events/v1/types_go_gen.cue +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/events/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - corev1 "k8s.io/api/core/v1" -) - -// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. -// Events have a limited retention time and triggers and messages may evolve -// with time. Event consumers should not rely on the timing of an event -// with a given Reason reflecting a consistent underlying trigger, or the -// continued existence of events with that Reason. Events should be -// treated as informative, best-effort, supplemental data. -#Event: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // eventTime is the time when this Event was first observed. It is required. - eventTime: metav1.#MicroTime @go(EventTime) @protobuf(2,bytes,opt) - - // series is data about the Event series this event represents or nil if it's a singleton Event. - // +optional - series?: null | #EventSeries @go(Series,*EventSeries) @protobuf(3,bytes,opt) - - // reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - // This field cannot be empty for new Events. - reportingController?: string @go(ReportingController) @protobuf(4,bytes,opt) - - // reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. - // This field cannot be empty for new Events and it can have at most 128 characters. - reportingInstance?: string @go(ReportingInstance) @protobuf(5,bytes,opt) - - // action is what action was taken/failed regarding to the regarding object. It is machine-readable. - // This field cannot be empty for new Events and it can have at most 128 characters. - action?: string @go(Action) @protobuf(6,bytes) - - // reason is why the action was taken. It is human-readable. - // This field cannot be empty for new Events and it can have at most 128 characters. - reason?: string @go(Reason) @protobuf(7,bytes) - - // regarding contains the object this Event is about. In most cases it's an Object reporting controller - // implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because - // it acts on some changes in a ReplicaSet object. - // +optional - regarding?: corev1.#ObjectReference @go(Regarding) @protobuf(8,bytes,opt) - - // related is the optional secondary object for more complex actions. E.g. when regarding object triggers - // a creation or deletion of related object. - // +optional - related?: null | corev1.#ObjectReference @go(Related,*corev1.ObjectReference) @protobuf(9,bytes,opt) - - // note is a human-readable description of the status of this operation. - // Maximal length of the note is 1kB, but libraries should be prepared to - // handle values up to 64kB. - // +optional - note?: string @go(Note) @protobuf(10,bytes,opt) - - // type is the type of this event (Normal, Warning), new types could be added in the future. - // It is machine-readable. - // This field cannot be empty for new Events. - type?: string @go(Type) @protobuf(11,bytes,opt) - - // deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. - // +optional - deprecatedSource?: corev1.#EventSource @go(DeprecatedSource) @protobuf(12,bytes,opt) - - // deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - // +optional - deprecatedFirstTimestamp?: metav1.#Time @go(DeprecatedFirstTimestamp) @protobuf(13,bytes,opt) - - // deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - // +optional - deprecatedLastTimestamp?: metav1.#Time @go(DeprecatedLastTimestamp) @protobuf(14,bytes,opt) - - // deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. - // +optional - deprecatedCount?: int32 @go(DeprecatedCount) @protobuf(15,varint,opt) -} - -// EventSeries contain information on series of events, i.e. thing that was/is happening -// continuously for some time. How often to update the EventSeries is up to the event reporters. -// The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows -// how this struct is updated on heartbeats and can guide customized reporter implementations. -#EventSeries: { - // count is the number of occurrences in this series up to the last heartbeat time. - count: int32 @go(Count) @protobuf(1,varint,opt) - - // lastObservedTime is the time when last Event from the series was seen before last heartbeat. - lastObservedTime: metav1.#MicroTime @go(LastObservedTime) @protobuf(2,bytes,opt) -} - -// EventList is a list of Event objects. -#EventList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is a list of schema objects. - items: [...#Event] @go(Items,[]Event) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/events/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/events/v1beta1/register_go_gen.cue deleted file mode 100644 index df8cc34..0000000 --- a/cue.mod/gen/k8s.io/api/events/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/events/v1beta1 - -package v1beta1 - -#GroupName: "events.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/events/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/events/v1beta1/types_go_gen.cue deleted file mode 100644 index 1999491..0000000 --- a/cue.mod/gen/k8s.io/api/events/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/events/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - corev1 "k8s.io/api/core/v1" -) - -// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. -// Events have a limited retention time and triggers and messages may evolve -// with time. Event consumers should not rely on the timing of an event -// with a given Reason reflecting a consistent underlying trigger, or the -// continued existence of events with that Reason. Events should be -// treated as informative, best-effort, supplemental data. -#Event: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // eventTime is the time when this Event was first observed. It is required. - eventTime: metav1.#MicroTime @go(EventTime) @protobuf(2,bytes,opt) - - // series is data about the Event series this event represents or nil if it's a singleton Event. - // +optional - series?: null | #EventSeries @go(Series,*EventSeries) @protobuf(3,bytes,opt) - - // reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - // This field cannot be empty for new Events. - // +optional - reportingController?: string @go(ReportingController) @protobuf(4,bytes,opt) - - // reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. - // This field cannot be empty for new Events and it can have at most 128 characters. - // +optional - reportingInstance?: string @go(ReportingInstance) @protobuf(5,bytes,opt) - - // action is what action was taken/failed regarding to the regarding object. It is machine-readable. - // This field can have at most 128 characters. - // +optional - action?: string @go(Action) @protobuf(6,bytes) - - // reason is why the action was taken. It is human-readable. - // This field can have at most 128 characters. - // +optional - reason?: string @go(Reason) @protobuf(7,bytes) - - // regarding contains the object this Event is about. In most cases it's an Object reporting controller - // implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because - // it acts on some changes in a ReplicaSet object. - // +optional - regarding?: corev1.#ObjectReference @go(Regarding) @protobuf(8,bytes,opt) - - // related is the optional secondary object for more complex actions. E.g. when regarding object triggers - // a creation or deletion of related object. - // +optional - related?: null | corev1.#ObjectReference @go(Related,*corev1.ObjectReference) @protobuf(9,bytes,opt) - - // note is a human-readable description of the status of this operation. - // Maximal length of the note is 1kB, but libraries should be prepared to - // handle values up to 64kB. - // +optional - note?: string @go(Note) @protobuf(10,bytes,opt) - - // type is the type of this event (Normal, Warning), new types could be added in the future. - // It is machine-readable. - // +optional - type?: string @go(Type) @protobuf(11,bytes,opt) - - // deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. - // +optional - deprecatedSource?: corev1.#EventSource @go(DeprecatedSource) @protobuf(12,bytes,opt) - - // deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - // +optional - deprecatedFirstTimestamp?: metav1.#Time @go(DeprecatedFirstTimestamp) @protobuf(13,bytes,opt) - - // deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - // +optional - deprecatedLastTimestamp?: metav1.#Time @go(DeprecatedLastTimestamp) @protobuf(14,bytes,opt) - - // deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. - // +optional - deprecatedCount?: int32 @go(DeprecatedCount) @protobuf(15,varint,opt) -} - -// EventSeries contain information on series of events, i.e. thing that was/is happening -// continuously for some time. -#EventSeries: { - // count is the number of occurrences in this series up to the last heartbeat time. - count: int32 @go(Count) @protobuf(1,varint,opt) - - // lastObservedTime is the time when last Event from the series was seen before last heartbeat. - lastObservedTime: metav1.#MicroTime @go(LastObservedTime) @protobuf(2,bytes,opt) -} - -// EventList is a list of Event objects. -#EventList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is a list of schema objects. - items: [...#Event] @go(Items,[]Event) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/extensions/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/extensions/v1beta1/register_go_gen.cue deleted file mode 100644 index 3769a75..0000000 --- a/cue.mod/gen/k8s.io/api/extensions/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/extensions/v1beta1 - -package v1beta1 - -#GroupName: "extensions" diff --git a/cue.mod/gen/k8s.io/api/extensions/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/extensions/v1beta1/types_go_gen.cue deleted file mode 100644 index a5a5a08..0000000 --- a/cue.mod/gen/k8s.io/api/extensions/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,1149 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/extensions/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/util/intstr" -) - -// describes the attributes of a scale subresource -#ScaleSpec: { - // desired number of instances for the scaled object. - // +optional - replicas?: int32 @go(Replicas) @protobuf(1,varint,opt) -} - -// represents the current status of a scale subresource. -#ScaleStatus: { - // actual number of observed instances of the scaled object. - replicas: int32 @go(Replicas) @protobuf(1,varint,opt) - - // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - // +optional - // +mapType=atomic - selector?: {[string]: string} @go(Selector,map[string]string) @protobuf(2,bytes,rep) - - // label selector for pods that should match the replicas count. This is a serializated - // version of both map-based and more expressive set-based selectors. This is done to - // avoid introspection in the clients. The string will be in the same format as the - // query-param syntax. If the target type only supports map-based selectors, both this - // field and map-based selector field are populated. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - targetSelector?: string @go(TargetSelector) @protobuf(3,bytes,opt) -} - -// represents a scaling request for a resource. -#Scale: { - metav1.#TypeMeta - - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - spec?: #ScaleSpec @go(Spec) @protobuf(2,bytes,opt) - - // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. - // +optional - status?: #ScaleStatus @go(Status) @protobuf(3,bytes,opt) -} - -// DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for -// more information. -// Deployment enables declarative updates for Pods and ReplicaSets. -#Deployment: { - metav1.#TypeMeta - - // Standard object metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the Deployment. - // +optional - spec?: #DeploymentSpec @go(Spec) @protobuf(2,bytes,opt) - - // Most recently observed status of the Deployment. - // +optional - status?: #DeploymentStatus @go(Status) @protobuf(3,bytes,opt) -} - -// DeploymentSpec is the specification of the desired behavior of the Deployment. -#DeploymentSpec: { - // Number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional - replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt) - - // Label selector for pods. Existing ReplicaSets whose pods are - // selected by this will be the ones affected by this deployment. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // Template describes the pods that will be created. - template: v1.#PodTemplateSpec @go(Template) @protobuf(3,bytes,opt) - - // The deployment strategy to use to replace existing pods with new ones. - // +optional - // +patchStrategy=retainKeys - strategy?: #DeploymentStrategy @go(Strategy) @protobuf(4,bytes,opt) - - // Minimum number of seconds for which a newly created pod should be ready - // without any of its container crashing, for it to be considered available. - // Defaults to 0 (pod will be considered available as soon as it is ready) - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(5,varint,opt) - - // The number of old ReplicaSets to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // This is set to the max value of int32 (i.e. 2147483647) by default, which - // means "retaining all old ReplicaSets". - // +optional - revisionHistoryLimit?: null | int32 @go(RevisionHistoryLimit,*int32) @protobuf(6,varint,opt) - - // Indicates that the deployment is paused and will not be processed by the - // deployment controller. - // +optional - paused?: bool @go(Paused) @protobuf(7,varint,opt) - - // DEPRECATED. - // The config this deployment is rolling back to. Will be cleared after rollback is done. - // +optional - rollbackTo?: null | #RollbackConfig @go(RollbackTo,*RollbackConfig) @protobuf(8,bytes,opt) - - // The maximum time in seconds for a deployment to make progress before it - // is considered to be failed. The deployment controller will continue to - // process failed deployments and a condition with a ProgressDeadlineExceeded - // reason will be surfaced in the deployment status. Note that progress will - // not be estimated during the time a deployment is paused. This is set to - // the max value of int32 (i.e. 2147483647) by default, which means "no deadline". - // +optional - progressDeadlineSeconds?: null | int32 @go(ProgressDeadlineSeconds,*int32) @protobuf(9,varint,opt) -} - -// DEPRECATED. -// DeploymentRollback stores the information required to rollback a deployment. -#DeploymentRollback: { - metav1.#TypeMeta - - // Required: This must match the Name of a deployment. - name: string @go(Name) @protobuf(1,bytes,opt) - - // The annotations to be updated to a deployment - // +optional - updatedAnnotations?: {[string]: string} @go(UpdatedAnnotations,map[string]string) @protobuf(2,bytes,rep) - - // The config of this deployment rollback. - rollbackTo: #RollbackConfig @go(RollbackTo) @protobuf(3,bytes,opt) -} - -// DEPRECATED. -#RollbackConfig: { - // The revision to rollback to. If set to 0, rollback to the last revision. - // +optional - revision?: int64 @go(Revision) @protobuf(1,varint,opt) -} - -// DefaultDeploymentUniqueLabelKey is the default key of the selector that is added -// to existing RCs (and label key that is added to its pods) to prevent the existing RCs -// to select new pods (and old pods being select by new RC). -#DefaultDeploymentUniqueLabelKey: "pod-template-hash" - -// DeploymentStrategy describes how to replace existing pods with new ones. -#DeploymentStrategy: { - // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // +optional - type?: #DeploymentStrategyType @go(Type) @protobuf(1,bytes,opt,casttype=DeploymentStrategyType) - - // Rolling update config params. Present only if DeploymentStrategyType = - // RollingUpdate. - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. - // +optional - rollingUpdate?: null | #RollingUpdateDeployment @go(RollingUpdate,*RollingUpdateDeployment) @protobuf(2,bytes,opt) -} - -#DeploymentStrategyType: string // #enumDeploymentStrategyType - -#enumDeploymentStrategyType: - #RecreateDeploymentStrategyType | - #RollingUpdateDeploymentStrategyType - -// Kill all existing pods before creating new ones. -#RecreateDeploymentStrategyType: #DeploymentStrategyType & "Recreate" - -// Replace the old RCs by new one using rolling update i.e gradually scale down the old RCs and scale up the new one. -#RollingUpdateDeploymentStrategyType: #DeploymentStrategyType & "RollingUpdate" - -// Spec to control the desired behavior of rolling update. -#RollingUpdateDeployment: { - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding down. - // This can not be 0 if MaxSurge is 0. - // By default, a fixed value of 1 is used. - // Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods - // immediately when the rolling update starts. Once new pods are ready, old RC - // can be scaled down further, followed by scaling up the new RC, ensuring - // that the total number of pods available at all times during the update is at - // least 70% of desired pods. - // +optional - maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(1,bytes,opt) - - // The maximum number of pods that can be scheduled above the desired number of - // pods. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up. - // By default, a value of 1 is used. - // Example: when this is set to 30%, the new RC can be scaled up immediately when - // the rolling update starts, such that the total number of old and new pods do not exceed - // 130% of desired pods. Once old pods have been killed, - // new RC can be scaled up further, ensuring that total number of pods running - // at any time during the update is at most 130% of desired pods. - // +optional - maxSurge?: null | intstr.#IntOrString @go(MaxSurge,*intstr.IntOrString) @protobuf(2,bytes,opt) -} - -// DeploymentStatus is the most recently observed status of the Deployment. -#DeploymentStatus: { - // The generation observed by the deployment controller. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(1,varint,opt) - - // Total number of non-terminated pods targeted by this deployment (their labels match the selector). - // +optional - replicas?: int32 @go(Replicas) @protobuf(2,varint,opt) - - // Total number of non-terminated pods targeted by this deployment that have the desired template spec. - // +optional - updatedReplicas?: int32 @go(UpdatedReplicas) @protobuf(3,varint,opt) - - // Total number of ready pods targeted by this deployment. - // +optional - readyReplicas?: int32 @go(ReadyReplicas) @protobuf(7,varint,opt) - - // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - // +optional - availableReplicas?: int32 @go(AvailableReplicas) @protobuf(4,varint,opt) - - // Total number of unavailable pods targeted by this deployment. This is the total number of - // pods that are still required for the deployment to have 100% available capacity. They may - // either be pods that are running but not yet available or pods that still have not been created. - // +optional - unavailableReplicas?: int32 @go(UnavailableReplicas) @protobuf(5,varint,opt) - - // Represents the latest available observations of a deployment's current state. - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#DeploymentCondition] @go(Conditions,[]DeploymentCondition) @protobuf(6,bytes,rep) - - // Count of hash collisions for the Deployment. The Deployment controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest ReplicaSet. - // +optional - collisionCount?: null | int32 @go(CollisionCount,*int32) @protobuf(8,varint,opt) -} - -#DeploymentConditionType: string // #enumDeploymentConditionType - -#enumDeploymentConditionType: - #DeploymentAvailable | - #DeploymentProgressing | - #DeploymentReplicaFailure - -// Available means the deployment is available, ie. at least the minimum available -// replicas required are up and running for at least minReadySeconds. -#DeploymentAvailable: #DeploymentConditionType & "Available" - -// Progressing means the deployment is progressing. Progress for a deployment is -// considered when a new replica set is created or adopted, and when new pods scale -// up or old pods scale down. Progress is not estimated for paused deployments or -// when progressDeadlineSeconds is not specified. -#DeploymentProgressing: #DeploymentConditionType & "Progressing" - -// ReplicaFailure is added in a deployment when one of its pods fails to be created -// or deleted. -#DeploymentReplicaFailure: #DeploymentConditionType & "ReplicaFailure" - -// DeploymentCondition describes the state of a deployment at a certain point. -#DeploymentCondition: { - // Type of deployment condition. - type: #DeploymentConditionType @go(Type) @protobuf(1,bytes,opt,casttype=DeploymentConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // The last time this condition was updated. - lastUpdateTime?: metav1.#Time @go(LastUpdateTime) @protobuf(6,bytes,opt) - - // Last time the condition transitioned from one status to another. - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(7,bytes,opt) - - // The reason for the condition's last transition. - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// DeploymentList is a list of Deployments. -#DeploymentList: { - metav1.#TypeMeta - - // Standard list metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of Deployments. - items: [...#Deployment] @go(Items,[]Deployment) @protobuf(2,bytes,rep) -} - -// DaemonSetUpdateStrategy indicates the strategy that the DaemonSet -// controller will use to perform updates. It includes any additional parameters -// necessary to perform the update for the indicated strategy. -#DaemonSetUpdateStrategy: { - // Type of daemon set update. Can be "RollingUpdate" or "OnDelete". - // Default is OnDelete. - // +optional - type?: #DaemonSetUpdateStrategyType @go(Type) @protobuf(1,bytes,opt) - - // Rolling update config params. Present only if type = "RollingUpdate". - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. Same as Deployment `strategy.rollingUpdate`. - // See https://github.com/kubernetes/kubernetes/issues/35345 - // +optional - rollingUpdate?: null | #RollingUpdateDaemonSet @go(RollingUpdate,*RollingUpdateDaemonSet) @protobuf(2,bytes,opt) -} - -#DaemonSetUpdateStrategyType: string // #enumDaemonSetUpdateStrategyType - -#enumDaemonSetUpdateStrategyType: - #RollingUpdateDaemonSetStrategyType | - #OnDeleteDaemonSetStrategyType - -// Replace the old daemons by new ones using rolling update i.e replace them on each node one after the other. -#RollingUpdateDaemonSetStrategyType: #DaemonSetUpdateStrategyType & "RollingUpdate" - -// Replace the old daemons only when it's killed -#OnDeleteDaemonSetStrategyType: #DaemonSetUpdateStrategyType & "OnDelete" - -// Spec to control the desired behavior of daemon set rolling update. -#RollingUpdateDaemonSet: { - // The maximum number of DaemonSet pods that can be unavailable during the - // update. Value can be an absolute number (ex: 5) or a percentage of total - // number of DaemonSet pods at the start of the update (ex: 10%). Absolute - // number is calculated from percentage by rounding up. - // This cannot be 0 if MaxSurge is 0 - // Default value is 1. - // Example: when this is set to 30%, at most 30% of the total number of nodes - // that should be running the daemon pod (i.e. status.desiredNumberScheduled) - // can have their pods stopped for an update at any given time. The update - // starts by stopping at most 30% of those DaemonSet pods and then brings - // up new DaemonSet pods in their place. Once the new pods are available, - // it then proceeds onto other DaemonSet pods, thus ensuring that at least - // 70% of original number of DaemonSet pods are available at all times during - // the update. - // +optional - maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(1,bytes,opt) - - // The maximum number of nodes with an existing available DaemonSet pod that - // can have an updated DaemonSet pod during during an update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up to a minimum of 1. - // Default value is 0. - // Example: when this is set to 30%, at most 30% of the total number of nodes - // that should be running the daemon pod (i.e. status.desiredNumberScheduled) - // can have their a new pod created before the old pod is marked as deleted. - // The update starts by launching new pods on 30% of nodes. Once an updated - // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod - // on that node is marked deleted. If the old pod becomes unavailable for any - // reason (Ready transitions to false, is evicted, or is drained) an updated - // pod is immediatedly created on that node without considering surge limits. - // Allowing surge implies the possibility that the resources consumed by the - // daemonset on any given node can double if the readiness check fails, and - // so resource intensive daemonsets should take into account that they may - // cause evictions during disruption. - // This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate. - // +optional - maxSurge?: null | intstr.#IntOrString @go(MaxSurge,*intstr.IntOrString) @protobuf(2,bytes,opt) -} - -// DaemonSetSpec is the specification of a daemon set. -#DaemonSetSpec: { - // A label query over pods that are managed by the daemon set. - // Must match in order to be controlled. - // If empty, defaulted to labels on Pod template. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(1,bytes,opt) - - // An object that describes the pod that will be created. - // The DaemonSet will create exactly one copy of this pod on every node - // that matches the template's node selector (or on every node if no node - // selector is specified). - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - template: v1.#PodTemplateSpec @go(Template) @protobuf(2,bytes,opt) - - // An update strategy to replace existing DaemonSet pods with new pods. - // +optional - updateStrategy?: #DaemonSetUpdateStrategy @go(UpdateStrategy) @protobuf(3,bytes,opt) - - // The minimum number of seconds for which a newly created DaemonSet pod should - // be ready without any of its container crashing, for it to be considered - // available. Defaults to 0 (pod will be considered available as soon as it - // is ready). - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(4,varint,opt) - - // DEPRECATED. - // A sequence number representing a specific generation of the template. - // Populated by the system. It can be set only during the creation. - // +optional - templateGeneration?: int64 @go(TemplateGeneration) @protobuf(5,varint,opt) - - // The number of old history to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - revisionHistoryLimit?: null | int32 @go(RevisionHistoryLimit,*int32) @protobuf(6,varint,opt) -} - -// DaemonSetStatus represents the current status of a daemon set. -#DaemonSetStatus: { - // The number of nodes that are running at least 1 - // daemon pod and are supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - currentNumberScheduled: int32 @go(CurrentNumberScheduled) @protobuf(1,varint,opt) - - // The number of nodes that are running the daemon pod, but are - // not supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - numberMisscheduled: int32 @go(NumberMisscheduled) @protobuf(2,varint,opt) - - // The total number of nodes that should be running the daemon - // pod (including nodes correctly running the daemon pod). - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - desiredNumberScheduled: int32 @go(DesiredNumberScheduled) @protobuf(3,varint,opt) - - // The number of nodes that should be running the daemon pod and have one - // or more of the daemon pod running and ready. - numberReady: int32 @go(NumberReady) @protobuf(4,varint,opt) - - // The most recent generation observed by the daemon set controller. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(5,varint,opt) - - // The total number of nodes that are running updated daemon pod - // +optional - updatedNumberScheduled?: int32 @go(UpdatedNumberScheduled) @protobuf(6,varint,opt) - - // The number of nodes that should be running the - // daemon pod and have one or more of the daemon pod running and - // available (ready for at least spec.minReadySeconds) - // +optional - numberAvailable?: int32 @go(NumberAvailable) @protobuf(7,varint,opt) - - // The number of nodes that should be running the - // daemon pod and have none of the daemon pod running and available - // (ready for at least spec.minReadySeconds) - // +optional - numberUnavailable?: int32 @go(NumberUnavailable) @protobuf(8,varint,opt) - - // Count of hash collisions for the DaemonSet. The DaemonSet controller - // uses this field as a collision avoidance mechanism when it needs to - // create the name for the newest ControllerRevision. - // +optional - collisionCount?: null | int32 @go(CollisionCount,*int32) @protobuf(9,varint,opt) - - // Represents the latest available observations of a DaemonSet's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#DaemonSetCondition] @go(Conditions,[]DaemonSetCondition) @protobuf(10,bytes,rep) -} - -#DaemonSetConditionType: string - -// DaemonSetCondition describes the state of a DaemonSet at a certain point. -#DaemonSetCondition: { - // Type of DaemonSet condition. - type: #DaemonSetConditionType @go(Type) @protobuf(1,bytes,opt,casttype=DaemonSetConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // Last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // The reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for -// more information. -// DaemonSet represents the configuration of a daemon set. -#DaemonSet: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // The desired behavior of this daemon set. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #DaemonSetSpec @go(Spec) @protobuf(2,bytes,opt) - - // The current status of this daemon set. This data may be - // out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #DaemonSetStatus @go(Status) @protobuf(3,bytes,opt) -} - -// DEPRECATED: DefaultDaemonSetUniqueLabelKey is used instead. -// DaemonSetTemplateGenerationKey is the key of the labels that is added -// to daemon set pods to distinguish between old and new pod templates -// during DaemonSet template update. -#DaemonSetTemplateGenerationKey: "pod-template-generation" - -// DefaultDaemonSetUniqueLabelKey is the default label key that is added -// to existing DaemonSet pods to distinguish between old and new -// DaemonSet pods during DaemonSet template updates. -#DefaultDaemonSetUniqueLabelKey: "controller-revision-hash" - -// DaemonSetList is a collection of daemon sets. -#DaemonSetList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // A list of daemon sets. - items: [...#DaemonSet] @go(Items,[]DaemonSet) @protobuf(2,bytes,rep) -} - -// Ingress is a collection of rules that allow inbound connections to reach the -// endpoints defined by a backend. An Ingress can be configured to give services -// externally-reachable urls, load balance traffic, terminate SSL, offer name -// based virtual hosting etc. -// DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information. -#Ingress: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec is the desired state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #IngressSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is the current state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #IngressStatus @go(Status) @protobuf(3,bytes,opt) -} - -// IngressList is a collection of Ingress. -#IngressList: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of Ingress. - items: [...#Ingress] @go(Items,[]Ingress) @protobuf(2,bytes,rep) -} - -// IngressSpec describes the Ingress the user wishes to exist. -#IngressSpec: { - // IngressClassName is the name of the IngressClass cluster resource. The - // associated IngressClass defines which controller will implement the - // resource. This replaces the deprecated `kubernetes.io/ingress.class` - // annotation. For backwards compatibility, when that annotation is set, it - // must be given precedence over this field. The controller may emit a - // warning if the field and annotation have different values. - // Implementations of this API should ignore Ingresses without a class - // specified. An IngressClass resource may be marked as default, which can - // be used to set a default value for this field. For more information, - // refer to the IngressClass documentation. - // +optional - ingressClassName?: null | string @go(IngressClassName,*string) @protobuf(4,bytes,opt) - - // A default backend capable of servicing requests that don't match any - // rule. At least one of 'backend' or 'rules' must be specified. This field - // is optional to allow the loadbalancer controller or defaulting logic to - // specify a global default. - // +optional - backend?: null | #IngressBackend @go(Backend,*IngressBackend) @protobuf(1,bytes,opt) - - // TLS configuration. Currently the Ingress only supports a single TLS - // port, 443. If multiple members of this list specify different hosts, they - // will be multiplexed on the same port according to the hostname specified - // through the SNI TLS extension, if the ingress controller fulfilling the - // ingress supports SNI. - // +optional - tls?: [...#IngressTLS] @go(TLS,[]IngressTLS) @protobuf(2,bytes,rep) - - // A list of host rules used to configure the Ingress. If unspecified, or - // no rule matches, all traffic is sent to the default backend. - // +optional - rules?: [...#IngressRule] @go(Rules,[]IngressRule) @protobuf(3,bytes,rep) -} - -// IngressTLS describes the transport layer security associated with an Ingress. -#IngressTLS: { - // Hosts are a list of hosts included in the TLS certificate. The values in - // this list must match the name/s used in the tlsSecret. Defaults to the - // wildcard host setting for the loadbalancer controller fulfilling this - // Ingress, if left unspecified. - // +optional - hosts?: [...string] @go(Hosts,[]string) @protobuf(1,bytes,rep) - - // SecretName is the name of the secret used to terminate SSL traffic on 443. - // Field is left optional to allow SSL routing based on SNI hostname alone. - // If the SNI host in a listener conflicts with the "Host" header field used - // by an IngressRule, the SNI host is used for termination and value of the - // Host header is used for routing. - // +optional - secretName?: string @go(SecretName) @protobuf(2,bytes,opt) -} - -// IngressStatus describe the current state of the Ingress. -#IngressStatus: { - // LoadBalancer contains the current status of the load-balancer. - // +optional - loadBalancer?: #IngressLoadBalancerStatus @go(LoadBalancer) @protobuf(1,bytes,opt) -} - -// LoadBalancerStatus represents the status of a load-balancer. -#IngressLoadBalancerStatus: { - // Ingress is a list containing ingress points for the load-balancer. - // +optional - ingress?: [...#IngressLoadBalancerIngress] @go(Ingress,[]IngressLoadBalancerIngress) @protobuf(1,bytes,rep) -} - -// IngressLoadBalancerIngress represents the status of a load-balancer ingress point. -#IngressLoadBalancerIngress: { - // IP is set for load-balancer ingress points that are IP based. - // +optional - ip?: string @go(IP) @protobuf(1,bytes,opt) - - // Hostname is set for load-balancer ingress points that are DNS based. - // +optional - hostname?: string @go(Hostname) @protobuf(2,bytes,opt) - - // Ports provides information about the ports exposed by this LoadBalancer. - // +listType=atomic - // +optional - ports?: [...#IngressPortStatus] @go(Ports,[]IngressPortStatus) @protobuf(4,bytes,rep) -} - -// IngressPortStatus represents the error condition of a service port -#IngressPortStatus: { - // Port is the port number of the ingress port. - port: int32 @go(Port) @protobuf(1,varint,opt) - - // Protocol is the protocol of the ingress port. - // The supported values are: "TCP", "UDP", "SCTP" - protocol: v1.#Protocol @go(Protocol) @protobuf(2,bytes,opt,casttype=Protocol) - - // Error is to record the problem with the service port - // The format of the error shall comply with the following rules: - // - built-in error values shall be specified in this file and those shall use - // CamelCase names - // - cloud provider specific error values must have names that comply with the - // format foo.example.com/CamelCase. - // --- - // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - // +optional - // +kubebuilder:validation:Required - // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` - // +kubebuilder:validation:MaxLength=316 - error?: null | string @go(Error,*string) @protobuf(3,bytes,opt) -} - -// IngressRule represents the rules mapping the paths under a specified host to -// the related backend services. Incoming requests are first evaluated for a host -// match, then routed to the backend associated with the matching IngressRuleValue. -#IngressRule: { - // Host is the fully qualified domain name of a network host, as defined by RFC 3986. - // Note the following deviations from the "host" part of the - // URI as defined in RFC 3986: - // 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - // the IP in the Spec of the parent Ingress. - // 2. The `:` delimiter is not respected because ports are not allowed. - // Currently the port of an Ingress is implicitly :80 for http and - // :443 for https. - // Both these may change in the future. - // Incoming requests are matched against the host before the - // IngressRuleValue. If the host is unspecified, the Ingress routes all - // traffic based on the specified IngressRuleValue. - // - // Host can be "precise" which is a domain name without the terminating dot of - // a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name - // prefixed with a single wildcard label (e.g. "*.foo.com"). - // The wildcard character '*' must appear by itself as the first DNS label and - // matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). - // Requests will be matched against the Host field in the following way: - // 1. If Host is precise, the request matches this rule if the http host header is equal to Host. - // 2. If Host is a wildcard, then the request matches this rule if the http host header - // is to equal to the suffix (removing the first label) of the wildcard rule. - // +optional - host?: string @go(Host) @protobuf(1,bytes,opt) - - #IngressRuleValue -} - -// IngressRuleValue represents a rule to apply against incoming requests. If the -// rule is satisfied, the request is routed to the specified backend. Currently -// mixing different types of rules in a single Ingress is disallowed, so exactly -// one of the following must be set. -#IngressRuleValue: { - // http is a list of http selectors pointing to backends. - // A path is matched against the path of an incoming request. Currently it can - // contain characters disallowed from the conventional "path" part of a URL - // as defined by RFC 3986. Paths must begin with a '/'. - // A backend defines the referenced service endpoint to which the traffic - // will be forwarded to. - http?: null | #HTTPIngressRuleValue @go(HTTP,*HTTPIngressRuleValue) @protobuf(1,bytes,opt) -} - -// HTTPIngressRuleValue is a list of http selectors pointing to backends. -// In the example: http:///? -> backend where -// where parts of the url correspond to RFC 3986, this resource will be used -// to match against everything after the last '/' and before the first '?' -// or '#'. -#HTTPIngressRuleValue: { - // A collection of paths that map requests to backends. - paths: [...#HTTPIngressPath] @go(Paths,[]HTTPIngressPath) @protobuf(1,bytes,rep) -} - -// PathType represents the type of path referred to by a HTTPIngressPath. -#PathType: string // #enumPathType - -#enumPathType: - #PathTypeExact | - #PathTypePrefix | - #PathTypeImplementationSpecific - -// PathTypeExact matches the URL path exactly and with case sensitivity. -#PathTypeExact: #PathType & "Exact" - -// PathTypePrefix matches based on a URL path prefix split by '/'. Matching -// is case sensitive and done on a path element by element basis. A path -// element refers to the list of labels in the path split by the '/' -// separator. A request is a match for path p if every p is an element-wise -// prefix of p of the request path. Note that if the last element of the -// path is a substring of the last element in request path, it is not a -// match (e.g. /foo/bar matches /foo/bar/baz, but does not match -// /foo/barbaz). If multiple matching paths exist in an Ingress spec, the -// longest matching path is given priority. -// Examples: -// - /foo/bar does not match requests to /foo/barbaz -// - /foo/bar matches request to /foo/bar and /foo/bar/baz -// - /foo and /foo/ both match requests to /foo and /foo/. If both paths are -// present in an Ingress spec, the longest matching path (/foo/) is given -// priority. -#PathTypePrefix: #PathType & "Prefix" - -// PathTypeImplementationSpecific matching is up to the IngressClass. -// Implementations can treat this as a separate PathType or treat it -// identically to Prefix or Exact path types. -#PathTypeImplementationSpecific: #PathType & "ImplementationSpecific" - -// HTTPIngressPath associates a path with a backend. Incoming urls matching the -// path are forwarded to the backend. -#HTTPIngressPath: { - // Path is matched against the path of an incoming request. Currently it can - // contain characters disallowed from the conventional "path" part of a URL - // as defined by RFC 3986. Paths must begin with a '/'. When unspecified, - // all paths from incoming requests are matched. - // +optional - path?: string @go(Path) @protobuf(1,bytes,opt) - - // PathType determines the interpretation of the Path matching. PathType can - // be one of the following values: - // * Exact: Matches the URL path exactly. - // * Prefix: Matches based on a URL path prefix split by '/'. Matching is - // done on a path element by element basis. A path element refers is the - // list of labels in the path split by the '/' separator. A request is a - // match for path p if every p is an element-wise prefix of p of the - // request path. Note that if the last element of the path is a substring - // of the last element in request path, it is not a match (e.g. /foo/bar - // matches /foo/bar/baz, but does not match /foo/barbaz). - // * ImplementationSpecific: Interpretation of the Path matching is up to - // the IngressClass. Implementations can treat this as a separate PathType - // or treat it identically to Prefix or Exact path types. - // Implementations are required to support all path types. - // Defaults to ImplementationSpecific. - pathType?: null | #PathType @go(PathType,*PathType) @protobuf(3,bytes,opt) - - // Backend defines the referenced service endpoint to which the traffic - // will be forwarded to. - backend: #IngressBackend @go(Backend) @protobuf(2,bytes,opt) -} - -// IngressBackend describes all endpoints for a given service and port. -#IngressBackend: { - // Specifies the name of the referenced service. - // +optional - serviceName?: string @go(ServiceName) @protobuf(1,bytes,opt) - - // Specifies the port of the referenced service. - // +optional - servicePort?: intstr.#IntOrString @go(ServicePort) @protobuf(2,bytes,opt) - - // Resource is an ObjectRef to another Kubernetes resource in the namespace - // of the Ingress object. If resource is specified, serviceName and servicePort - // must not be specified. - // +optional - resource?: null | v1.#TypedLocalObjectReference @go(Resource,*v1.TypedLocalObjectReference) @protobuf(3,bytes,opt) -} - -// DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for -// more information. -// ReplicaSet ensures that a specified number of pod replicas are running at any given time. -#ReplicaSet: { - metav1.#TypeMeta - - // If the Labels of a ReplicaSet are empty, they are defaulted to - // be the same as the Pod(s) that the ReplicaSet manages. - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec defines the specification of the desired behavior of the ReplicaSet. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #ReplicaSetSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is the most recently observed status of the ReplicaSet. - // This data may be out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #ReplicaSetStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ReplicaSetList is a collection of ReplicaSets. -#ReplicaSetList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of ReplicaSets. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - items: [...#ReplicaSet] @go(Items,[]ReplicaSet) @protobuf(2,bytes,rep) -} - -// ReplicaSetSpec is the specification of a ReplicaSet. -#ReplicaSetSpec: { - // Replicas is the number of desired replicas. - // This is a pointer to distinguish between explicit zero and unspecified. - // Defaults to 1. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - // +optional - replicas?: null | int32 @go(Replicas,*int32) @protobuf(1,varint,opt) - - // Minimum number of seconds for which a newly created pod should be ready - // without any of its container crashing, for it to be considered available. - // Defaults to 0 (pod will be considered available as soon as it is ready) - // +optional - minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(4,varint,opt) - - // Selector is a label query over pods that should match the replica count. - // If the selector is empty, it is defaulted to the labels present on the pod template. - // Label keys and values that must match in order to be controlled by this replica set. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // Template is the object that describes the pod that will be created if - // insufficient replicas are detected. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - // +optional - template?: v1.#PodTemplateSpec @go(Template) @protobuf(3,bytes,opt) -} - -// ReplicaSetStatus represents the current status of a ReplicaSet. -#ReplicaSetStatus: { - // Replicas is the most recently observed number of replicas. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - replicas: int32 @go(Replicas) @protobuf(1,varint,opt) - - // The number of pods that have labels matching the labels of the pod template of the replicaset. - // +optional - fullyLabeledReplicas?: int32 @go(FullyLabeledReplicas) @protobuf(2,varint,opt) - - // The number of ready replicas for this replica set. - // +optional - readyReplicas?: int32 @go(ReadyReplicas) @protobuf(4,varint,opt) - - // The number of available replicas (ready for at least minReadySeconds) for this replica set. - // +optional - availableReplicas?: int32 @go(AvailableReplicas) @protobuf(5,varint,opt) - - // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(3,varint,opt) - - // Represents the latest available observations of a replica set's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: [...#ReplicaSetCondition] @go(Conditions,[]ReplicaSetCondition) @protobuf(6,bytes,rep) -} - -#ReplicaSetConditionType: string // #enumReplicaSetConditionType - -#enumReplicaSetConditionType: - #ReplicaSetReplicaFailure - -// ReplicaSetReplicaFailure is added in a replica set when one of its pods fails to be created -// due to insufficient quota, limit ranges, pod security policy, node selectors, etc. or deleted -// due to kubelet being down or finalizers are failing. -#ReplicaSetReplicaFailure: #ReplicaSetConditionType & "ReplicaFailure" - -// ReplicaSetCondition describes the state of a replica set at a certain point. -#ReplicaSetCondition: { - // Type of replica set condition. - type: #ReplicaSetConditionType @go(Type) @protobuf(1,bytes,opt,casttype=ReplicaSetConditionType) - - // Status of the condition, one of True, False, Unknown. - status: v1.#ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=k8s.io/api/core/v1.ConditionStatus) - - // The last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // The reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // A human readable message indicating details about the transition. - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. -// NetworkPolicy describes what network traffic is allowed for a set of Pods -#NetworkPolicy: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior for this NetworkPolicy. - // +optional - spec?: #NetworkPolicySpec @go(Spec) @protobuf(2,bytes,opt) -} - -// DEPRECATED 1.9 - This group version of PolicyType is deprecated by networking/v1/PolicyType. -// Policy Type string describes the NetworkPolicy type -// This type is beta-level in 1.8 -#PolicyType: string // #enumPolicyType - -#enumPolicyType: - #PolicyTypeIngress | - #PolicyTypeEgress - -// PolicyTypeIngress is a NetworkPolicy that affects ingress traffic on selected pods -#PolicyTypeIngress: #PolicyType & "Ingress" - -// PolicyTypeEgress is a NetworkPolicy that affects egress traffic on selected pods -#PolicyTypeEgress: #PolicyType & "Egress" - -// DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec. -#NetworkPolicySpec: { - // Selects the pods to which this NetworkPolicy object applies. The array of ingress rules - // is applied to any pods selected by this field. Multiple network policies can select the - // same set of pods. In this case, the ingress rules for each are combined additively. - // This field is NOT optional and follows standard label selector semantics. - // An empty podSelector matches all pods in this namespace. - podSelector: metav1.#LabelSelector @go(PodSelector) @protobuf(1,bytes,opt) - - // List of ingress rules to be applied to the selected pods. - // Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod - // OR if the traffic source is the pod's local node, - // OR if the traffic matches at least one ingress rule across all of the NetworkPolicy - // objects whose podSelector matches the pod. - // If this field is empty then this NetworkPolicy does not allow any traffic - // (and serves solely to ensure that the pods it selects are isolated by default). - // +optional - ingress?: [...#NetworkPolicyIngressRule] @go(Ingress,[]NetworkPolicyIngressRule) @protobuf(2,bytes,rep) - - // List of egress rules to be applied to the selected pods. Outgoing traffic is - // allowed if there are no NetworkPolicies selecting the pod (and cluster policy - // otherwise allows the traffic), OR if the traffic matches at least one egress rule - // across all of the NetworkPolicy objects whose podSelector matches the pod. If - // this field is empty then this NetworkPolicy limits all outgoing traffic (and serves - // solely to ensure that the pods it selects are isolated by default). - // This field is beta-level in 1.8 - // +optional - egress?: [...#NetworkPolicyEgressRule] @go(Egress,[]NetworkPolicyEgressRule) @protobuf(3,bytes,rep) - - // List of rule types that the NetworkPolicy relates to. - // Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. - // If this field is not specified, it will default based on the existence of Ingress or Egress rules; - // policies that contain an Egress section are assumed to affect Egress, and all policies - // (whether or not they contain an Ingress section) are assumed to affect Ingress. - // If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. - // Likewise, if you want to write a policy that specifies that no egress is allowed, - // you must specify a policyTypes value that include "Egress" (since such a policy would not include - // an Egress section and would otherwise default to just [ "Ingress" ]). - // This field is beta-level in 1.8 - // +optional - policyTypes?: [...#PolicyType] @go(PolicyTypes,[]PolicyType) @protobuf(4,bytes,rep,casttype=PolicyType) -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyIngressRule is deprecated by networking/v1/NetworkPolicyIngressRule. -// This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from. -#NetworkPolicyIngressRule: { - // List of ports which should be made accessible on the pods selected for this rule. - // Each item in this list is combined using a logical OR. - // If this field is empty or missing, this rule matches all ports (traffic not restricted by port). - // If this field is present and contains at least one item, then this rule allows traffic - // only if the traffic matches at least one port in the list. - // +optional - ports?: [...#NetworkPolicyPort] @go(Ports,[]NetworkPolicyPort) @protobuf(1,bytes,rep) - - // List of sources which should be able to access the pods selected for this rule. - // Items in this list are combined using a logical OR operation. - // If this field is empty or missing, this rule matches all sources (traffic not restricted by source). - // If this field is present and contains at least one item, this rule allows traffic only if the - // traffic matches at least one item in the from list. - // +optional - from?: [...#NetworkPolicyPeer] @go(From,[]NetworkPolicyPeer) @protobuf(2,bytes,rep) -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. -// NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods -// matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. -// This type is beta-level in 1.8 -#NetworkPolicyEgressRule: { - // List of destination ports for outgoing traffic. - // Each item in this list is combined using a logical OR. If this field is - // empty or missing, this rule matches all ports (traffic not restricted by port). - // If this field is present and contains at least one item, then this rule allows - // traffic only if the traffic matches at least one port in the list. - // +optional - ports?: [...#NetworkPolicyPort] @go(Ports,[]NetworkPolicyPort) @protobuf(1,bytes,rep) - - // List of destinations for outgoing traffic of pods selected for this rule. - // Items in this list are combined using a logical OR operation. If this field is - // empty or missing, this rule matches all destinations (traffic not restricted by - // destination). If this field is present and contains at least one item, this rule - // allows traffic only if the traffic matches at least one item in the to list. - // +optional - to?: [...#NetworkPolicyPeer] @go(To,[]NetworkPolicyPeer) @protobuf(2,bytes,rep) -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort. -#NetworkPolicyPort: { - // Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. - // If not specified, this field defaults to TCP. - // +optional - protocol?: null | v1.#Protocol @go(Protocol,*v1.Protocol) @protobuf(1,bytes,opt,casttype=k8s.io/api/core/v1.Protocol) - - // The port on the given protocol. This can either be a numerical or named - // port on a pod. If this field is not provided, this matches all port names and - // numbers. - // If present, only traffic on the specified protocol AND port will be matched. - // +optional - port?: null | intstr.#IntOrString @go(Port,*intstr.IntOrString) @protobuf(2,bytes,opt) - - // If set, indicates that the range of ports from port to endPort, inclusive, - // should be allowed by the policy. This field cannot be defined if the port field - // is not defined or if the port field is defined as a named (string) port. - // The endPort must be equal or greater than port. - // +optional - endPort?: null | int32 @go(EndPort,*int32) @protobuf(3,bytes,opt) -} - -// DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. -// IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed -// to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs -// that should not be included within this rule. -#IPBlock: { - // CIDR is a string representing the IP Block - // Valid examples are "192.168.1.0/24" or "2001:db8::/64" - cidr: string @go(CIDR) @protobuf(1,bytes) - - // Except is a slice of CIDRs that should not be included within an IP Block - // Valid examples are "192.168.1.0/24" or "2001:db8::/64" - // Except values will be rejected if they are outside the CIDR range - // +optional - except?: [...string] @go(Except,[]string) @protobuf(2,bytes,rep) -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyPeer is deprecated by networking/v1/NetworkPolicyPeer. -#NetworkPolicyPeer: { - // This is a label selector which selects Pods. This field follows standard label - // selector semantics; if present but empty, it selects all pods. - // - // If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects - // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - // Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - // +optional - podSelector?: null | metav1.#LabelSelector @go(PodSelector,*metav1.LabelSelector) @protobuf(1,bytes,opt) - - // Selects Namespaces using cluster-scoped labels. This field follows standard label - // selector semantics; if present but empty, it selects all namespaces. - // - // If PodSelector is also set, then the NetworkPolicyPeer as a whole selects - // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - // Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - // +optional - namespaceSelector?: null | metav1.#LabelSelector @go(NamespaceSelector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // IPBlock defines policy on a particular IPBlock. If this field is set then - // neither of the other fields can be. - // +optional - ipBlock?: null | #IPBlock @go(IPBlock,*IPBlock) @protobuf(3,bytes,rep) -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. -// Network Policy List is a list of NetworkPolicy objects. -#NetworkPolicyList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of schema objects. - items: [...#NetworkPolicy] @go(Items,[]NetworkPolicy) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/flowcontrol/v1alpha1/doc_go_gen.cue b/cue.mod/gen/k8s.io/api/flowcontrol/v1alpha1/doc_go_gen.cue deleted file mode 100644 index b31f0e9..0000000 --- a/cue.mod/gen/k8s.io/api/flowcontrol/v1alpha1/doc_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/flowcontrol/v1alpha1 - -// Package v1alpha1 holds api types of version v1alpha1 for group "flowcontrol.apiserver.k8s.io". -package v1alpha1 diff --git a/cue.mod/gen/k8s.io/api/flowcontrol/v1alpha1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/flowcontrol/v1alpha1/register_go_gen.cue deleted file mode 100644 index 808992a..0000000 --- a/cue.mod/gen/k8s.io/api/flowcontrol/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/flowcontrol/v1alpha1 - -package v1alpha1 - -#GroupName: "flowcontrol.apiserver.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/flowcontrol/v1alpha1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/flowcontrol/v1alpha1/types_go_gen.cue deleted file mode 100644 index 939237c..0000000 --- a/cue.mod/gen/k8s.io/api/flowcontrol/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,590 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/flowcontrol/v1alpha1 - -package v1alpha1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -#APIGroupAll: "*" -#ResourceAll: "*" -#VerbAll: "*" -#NonResourceAll: "*" -#NameAll: "*" -#NamespaceEvery: "*" - -#PriorityLevelConfigurationNameExempt: "exempt" -#PriorityLevelConfigurationNameCatchAll: "catch-all" -#FlowSchemaNameExempt: "exempt" -#FlowSchemaNameCatchAll: "catch-all" - -#FlowSchemaConditionDangling: "Dangling" -#PriorityLevelConfigurationConditionConcurrencyShared: "ConcurrencyShared" - -#FlowSchemaMaxMatchingPrecedence: int32 & 10000 - -#ResponseHeaderMatchedPriorityLevelConfigurationUID: "X-Kubernetes-PF-PriorityLevel-UID" -#ResponseHeaderMatchedFlowSchemaUID: "X-Kubernetes-PF-FlowSchema-UID" - -// FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with -// similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". -#FlowSchema: { - metav1.#TypeMeta - - // `metadata` is the standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // `spec` is the specification of the desired behavior of a FlowSchema. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #FlowSchemaSpec @go(Spec) @protobuf(2,bytes,opt) - - // `status` is the current status of a FlowSchema. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #FlowSchemaStatus @go(Status) @protobuf(3,bytes,opt) -} - -// FlowSchemaList is a list of FlowSchema objects. -#FlowSchemaList: { - metav1.#TypeMeta - - // `metadata` is the standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // `items` is a list of FlowSchemas. - items: [...#FlowSchema] @go(Items,[]FlowSchema) @protobuf(2,bytes,rep) -} - -// FlowSchemaSpec describes how the FlowSchema's specification looks like. -#FlowSchemaSpec: { - // `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot - // be resolved, the FlowSchema will be ignored and marked as invalid in its status. - // Required. - priorityLevelConfiguration: #PriorityLevelConfigurationReference @go(PriorityLevelConfiguration) @protobuf(1,bytes,opt) - - // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen - // FlowSchema is among those with the numerically lowest (which we take to be logically highest) - // MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. - // Note that if the precedence is not specified, it will be set to 1000 as default. - // +optional - matchingPrecedence: int32 @go(MatchingPrecedence) @protobuf(2,varint,opt) - - // `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. - // `nil` specifies that the distinguisher is disabled and thus will always be the empty string. - // +optional - distinguisherMethod?: null | #FlowDistinguisherMethod @go(DistinguisherMethod,*FlowDistinguisherMethod) @protobuf(3,bytes,opt) - - // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if - // at least one member of rules matches the request. - // if it is an empty slice, there will be no requests matching the FlowSchema. - // +listType=atomic - // +optional - rules?: [...#PolicyRulesWithSubjects] @go(Rules,[]PolicyRulesWithSubjects) @protobuf(4,bytes,rep) -} - -// FlowDistinguisherMethodType is the type of flow distinguisher method -#FlowDistinguisherMethodType: string // #enumFlowDistinguisherMethodType - -#enumFlowDistinguisherMethodType: - #FlowDistinguisherMethodByUserType | - #FlowDistinguisherMethodByNamespaceType - -// FlowDistinguisherMethodByUserType specifies that the flow distinguisher is the username in the request. -// This type is used to provide some insulation between users. -#FlowDistinguisherMethodByUserType: #FlowDistinguisherMethodType & "ByUser" - -// FlowDistinguisherMethodByNamespaceType specifies that the flow distinguisher is the namespace of the -// object that the request acts upon. If the object is not namespaced, or if the request is a non-resource -// request, then the distinguisher will be the empty string. An example usage of this type is to provide -// some insulation between tenants in a situation where there are multiple tenants and each namespace -// is dedicated to a tenant. -#FlowDistinguisherMethodByNamespaceType: #FlowDistinguisherMethodType & "ByNamespace" - -// FlowDistinguisherMethod specifies the method of a flow distinguisher. -#FlowDistinguisherMethod: { - // `type` is the type of flow distinguisher method - // The supported types are "ByUser" and "ByNamespace". - // Required. - type: #FlowDistinguisherMethodType @go(Type) @protobuf(1,bytes,opt) -} - -// PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. -#PriorityLevelConfigurationReference: { - // `name` is the name of the priority level configuration being referenced - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject -// making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches -// a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member -// of resourceRules or nonResourceRules matches the request. -#PolicyRulesWithSubjects: { - // subjects is the list of normal user, serviceaccount, or group that this rule cares about. - // There must be at least one member in this slice. - // A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. - // +listType=atomic - // Required. - subjects: [...#Subject] @go(Subjects,[]Subject) @protobuf(1,bytes,rep) - - // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the - // target resource. - // At least one of `resourceRules` and `nonResourceRules` has to be non-empty. - // +listType=atomic - // +optional - resourceRules?: [...#ResourcePolicyRule] @go(ResourceRules,[]ResourcePolicyRule) @protobuf(2,bytes,opt) - - // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb - // and the target non-resource URL. - // +listType=atomic - // +optional - nonResourceRules?: [...#NonResourcePolicyRule] @go(NonResourceRules,[]NonResourcePolicyRule) @protobuf(3,bytes,opt) -} - -// Subject matches the originator of a request, as identified by the request authentication system. There are three -// ways of matching an originator; by user, group, or service account. -// +union -#Subject: { - // `kind` indicates which one of the other fields is non-empty. - // Required - // +unionDiscriminator - kind: #SubjectKind @go(Kind) @protobuf(1,bytes,opt) - - // `user` matches based on username. - // +optional - user?: null | #UserSubject @go(User,*UserSubject) @protobuf(2,bytes,opt) - - // `group` matches based on user group name. - // +optional - group?: null | #GroupSubject @go(Group,*GroupSubject) @protobuf(3,bytes,opt) - - // `serviceAccount` matches ServiceAccounts. - // +optional - serviceAccount?: null | #ServiceAccountSubject @go(ServiceAccount,*ServiceAccountSubject) @protobuf(4,bytes,opt) -} - -// SubjectKind is the kind of subject. -#SubjectKind: string // #enumSubjectKind - -#enumSubjectKind: - #SubjectKindUser | - #SubjectKindGroup | - #SubjectKindServiceAccount - -#SubjectKindUser: #SubjectKind & "User" -#SubjectKindGroup: #SubjectKind & "Group" -#SubjectKindServiceAccount: #SubjectKind & "ServiceAccount" - -// UserSubject holds detailed information for user-kind subject. -#UserSubject: { - // `name` is the username that matches, or "*" to match all usernames. - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// GroupSubject holds detailed information for group-kind subject. -#GroupSubject: { - // name is the user group that matches, or "*" to match all user groups. - // See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some - // well-known group names. - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// ServiceAccountSubject holds detailed information for service-account-kind subject. -#ServiceAccountSubject: { - // `namespace` is the namespace of matching ServiceAccount objects. - // Required. - namespace: string @go(Namespace) @protobuf(1,bytes,opt) - - // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. - // Required. - name: string @go(Name) @protobuf(2,bytes,opt) -} - -// ResourcePolicyRule is a predicate that matches some resource -// requests, testing the request's verb and the target resource. A -// ResourcePolicyRule matches a resource request if and only if: (a) -// at least one member of verbs matches the request, (b) at least one -// member of apiGroups matches the request, (c) at least one member of -// resources matches the request, and (d) either (d1) the request does -// not specify a namespace (i.e., `Namespace==""`) and clusterScope is -// true or (d2) the request specifies a namespace and least one member -// of namespaces matches the request's namespace. -#ResourcePolicyRule: { - // `verbs` is a list of matching verbs and may not be empty. - // "*" matches all verbs and, if present, must be the only entry. - // +listType=set - // Required. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // `apiGroups` is a list of matching API groups and may not be empty. - // "*" matches all API groups and, if present, must be the only entry. - // +listType=set - // Required. - apiGroups: [...string] @go(APIGroups,[]string) @protobuf(2,bytes,rep) - - // `resources` is a list of matching resources (i.e., lowercase - // and plural) with, if desired, subresource. For example, [ - // "services", "nodes/status" ]. This list may not be empty. - // "*" matches all resources and, if present, must be the only entry. - // Required. - // +listType=set - resources: [...string] @go(Resources,[]string) @protobuf(3,bytes,rep) - - // `clusterScope` indicates whether to match requests that do not - // specify a namespace (which happens either because the resource - // is not namespaced or the request targets all namespaces). - // If this field is omitted or false then the `namespaces` field - // must contain a non-empty list. - // +optional - clusterScope?: bool @go(ClusterScope) @protobuf(4,varint,opt) - - // `namespaces` is a list of target namespaces that restricts - // matches. A request that specifies a target namespace matches - // only if either (a) this list contains that target namespace or - // (b) this list contains "*". Note that "*" matches any - // specified namespace but does not match a request that _does - // not specify_ a namespace (see the `clusterScope` field for - // that). - // This list may be empty, but only if `clusterScope` is true. - // +optional - // +listType=set - namespaces: [...string] @go(Namespaces,[]string) @protobuf(5,bytes,rep) -} - -// NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the -// target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member -// of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. -#NonResourcePolicyRule: { - // `verbs` is a list of matching verbs and may not be empty. - // "*" matches all verbs. If it is present, it must be the only entry. - // +listType=set - // Required. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. - // For example: - // - "/healthz" is legal - // - "/hea*" is illegal - // - "/hea" is legal but matches nothing - // - "/hea/*" also matches nothing - // - "/healthz/*" matches all per-component health checks. - // "*" matches all non-resource urls. if it is present, it must be the only entry. - // +listType=set - // Required. - nonResourceURLs: [...string] @go(NonResourceURLs,[]string) @protobuf(6,bytes,rep) -} - -// FlowSchemaStatus represents the current state of a FlowSchema. -#FlowSchemaStatus: { - // `conditions` is a list of the current states of FlowSchema. - // +listType=map - // +listMapKey=type - // +optional - conditions?: [...#FlowSchemaCondition] @go(Conditions,[]FlowSchemaCondition) @protobuf(1,bytes,rep) -} - -// FlowSchemaCondition describes conditions for a FlowSchema. -#FlowSchemaCondition: { - // `type` is the type of the condition. - // Required. - type?: #FlowSchemaConditionType @go(Type) @protobuf(1,bytes,opt) - - // `status` is the status of the condition. - // Can be True, False, Unknown. - // Required. - status?: #ConditionStatus @go(Status) @protobuf(2,bytes,opt) - - // `lastTransitionTime` is the last time the condition transitioned from one status to another. - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // `message` is a human-readable message indicating details about last transition. - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// FlowSchemaConditionType is a valid value for FlowSchemaStatusCondition.Type -#FlowSchemaConditionType: string - -// PriorityLevelConfiguration represents the configuration of a priority level. -#PriorityLevelConfiguration: { - metav1.#TypeMeta - - // `metadata` is the standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // `spec` is the specification of the desired behavior of a "request-priority". - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #PriorityLevelConfigurationSpec @go(Spec) @protobuf(2,bytes,opt) - - // `status` is the current status of a "request-priority". - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #PriorityLevelConfigurationStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. -#PriorityLevelConfigurationList: { - metav1.#TypeMeta - - // `metadata` is the standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // `items` is a list of request-priorities. - items: [...#PriorityLevelConfiguration] @go(Items,[]PriorityLevelConfiguration) @protobuf(2,bytes,rep) -} - -// PriorityLevelConfigurationSpec specifies the configuration of a priority level. -// +union -#PriorityLevelConfigurationSpec: { - // `type` indicates whether this priority level is subject to - // limitation on request execution. A value of `"Exempt"` means - // that requests of this priority level are not subject to a limit - // (and thus are never queued) and do not detract from the - // capacity made available to other priority levels. A value of - // `"Limited"` means that (a) requests of this priority level - // _are_ subject to limits and (b) some of the server's limited - // capacity is made available exclusively to this priority level. - // Required. - // +unionDiscriminator - type: #PriorityLevelEnablement @go(Type) @protobuf(1,bytes,opt) - - // `limited` specifies how requests are handled for a Limited priority level. - // This field must be non-empty if and only if `type` is `"Limited"`. - // +optional - limited?: null | #LimitedPriorityLevelConfiguration @go(Limited,*LimitedPriorityLevelConfiguration) @protobuf(2,bytes,opt) - - // `exempt` specifies how requests are handled for an exempt priority level. - // This field MUST be empty if `type` is `"Limited"`. - // This field MAY be non-empty if `type` is `"Exempt"`. - // If empty and `type` is `"Exempt"` then the default values - // for `ExemptPriorityLevelConfiguration` apply. - // +optional - exempt?: null | #ExemptPriorityLevelConfiguration @go(Exempt,*ExemptPriorityLevelConfiguration) @protobuf(3,bytes,opt) -} - -// PriorityLevelEnablement indicates whether limits on execution are enabled for the priority level -#PriorityLevelEnablement: string // #enumPriorityLevelEnablement - -#enumPriorityLevelEnablement: - #PriorityLevelEnablementExempt | - #PriorityLevelEnablementLimited - -// PriorityLevelEnablementExempt means that requests are not subject to limits -#PriorityLevelEnablementExempt: #PriorityLevelEnablement & "Exempt" - -// PriorityLevelEnablementLimited means that requests are subject to limits -#PriorityLevelEnablementLimited: #PriorityLevelEnablement & "Limited" - -// LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. -// It addresses two issues: -// - How are requests for this priority level limited? -// - What should be done with requests that exceed the limit? -#LimitedPriorityLevelConfiguration: { - // `assuredConcurrencyShares` (ACS) configures the execution - // limit, which is a limit on the number of requests of this - // priority level that may be exeucting at a given time. ACS must - // be a positive number. The server's concurrency limit (SCL) is - // divided among the concurrency-controlled priority levels in - // proportion to their assured concurrency shares. This produces - // the assured concurrency value (ACV) --- the number of requests - // that may be executing at a time --- for each such priority - // level: - // - // ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) - // - // bigger numbers of ACS mean more reserved concurrent requests (at the - // expense of every other PL). - // This field has a default value of 30. - // +optional - assuredConcurrencyShares: int32 @go(AssuredConcurrencyShares) @protobuf(1,varint,opt) - - // `limitResponse` indicates what to do with requests that can not be executed right now - limitResponse?: #LimitResponse @go(LimitResponse) @protobuf(2,bytes,opt) - - // `lendablePercent` prescribes the fraction of the level's NominalCL that - // can be borrowed by other priority levels. The value of this - // field must be between 0 and 100, inclusive, and it defaults to 0. - // The number of seats that other levels can borrow from this level, known - // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - // - // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - // - // +optional - lendablePercent?: null | int32 @go(LendablePercent,*int32) @protobuf(3,varint,opt) - - // `borrowingLimitPercent`, if present, configures a limit on how many - // seats this priority level can borrow from other priority levels. - // The limit is known as this level's BorrowingConcurrencyLimit - // (BorrowingCL) and is a limit on the total number of seats that this - // level may borrow at any one time. - // This field holds the ratio of that limit to the level's nominal - // concurrency limit. When this field is non-nil, it must hold a - // non-negative integer and the limit is calculated as follows. - // - // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) - // - // The value of this field can be more than 100, implying that this - // priority level can borrow a number of seats that is greater than - // its own nominal concurrency limit (NominalCL). - // When this field is left `nil`, the limit is effectively infinite. - // +optional - borrowingLimitPercent?: null | int32 @go(BorrowingLimitPercent,*int32) @protobuf(4,varint,opt) -} - -// ExemptPriorityLevelConfiguration describes the configurable aspects -// of the handling of exempt requests. -// In the mandatory exempt configuration object the values in the fields -// here can be modified by authorized users, unlike the rest of the `spec`. -#ExemptPriorityLevelConfiguration: { - // `nominalConcurrencyShares` (NCS) contributes to the computation of the - // NominalConcurrencyLimit (NominalCL) of this level. - // This is the number of execution seats nominally reserved for this priority level. - // This DOES NOT limit the dispatching from this priority level - // but affects the other priority levels through the borrowing mechanism. - // The server's concurrency limit (ServerCL) is divided among all the - // priority levels in proportion to their NCS values: - // - // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) - // sum_ncs = sum[priority level k] NCS(k) - // - // Bigger numbers mean a larger nominal concurrency limit, - // at the expense of every other priority level. - // This field has a default value of zero. - // +optional - nominalConcurrencyShares?: null | int32 @go(NominalConcurrencyShares,*int32) @protobuf(1,varint,opt) - - // `lendablePercent` prescribes the fraction of the level's NominalCL that - // can be borrowed by other priority levels. This value of this - // field must be between 0 and 100, inclusive, and it defaults to 0. - // The number of seats that other levels can borrow from this level, known - // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - // - // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - // - // +optional - lendablePercent?: null | int32 @go(LendablePercent,*int32) @protobuf(2,varint,opt) -} - -// LimitResponse defines how to handle requests that can not be executed right now. -// +union -#LimitResponse: { - // `type` is "Queue" or "Reject". - // "Queue" means that requests that can not be executed upon arrival - // are held in a queue until they can be executed or a queuing limit - // is reached. - // "Reject" means that requests that can not be executed upon arrival - // are rejected. - // Required. - // +unionDiscriminator - type: #LimitResponseType @go(Type) @protobuf(1,bytes,opt) - - // `queuing` holds the configuration parameters for queuing. - // This field may be non-empty only if `type` is `"Queue"`. - // +optional - queuing?: null | #QueuingConfiguration @go(Queuing,*QueuingConfiguration) @protobuf(2,bytes,opt) -} - -// LimitResponseType identifies how a Limited priority level handles a request that can not be executed right now -#LimitResponseType: string // #enumLimitResponseType - -#enumLimitResponseType: - #LimitResponseTypeQueue | - #LimitResponseTypeReject - -// LimitResponseTypeQueue means that requests that can not be executed right now are queued until they can be executed or a queuing limit is hit -#LimitResponseTypeQueue: #LimitResponseType & "Queue" - -// LimitResponseTypeReject means that requests that can not be executed right now are rejected -#LimitResponseTypeReject: #LimitResponseType & "Reject" - -// QueuingConfiguration holds the configuration parameters for queuing -#QueuingConfiguration: { - // `queues` is the number of queues for this priority level. The - // queues exist independently at each apiserver. The value must be - // positive. Setting it to 1 effectively precludes - // shufflesharding and thus makes the distinguisher method of - // associated flow schemas irrelevant. This field has a default - // value of 64. - // +optional - queues: int32 @go(Queues) @protobuf(1,varint,opt) - - // `handSize` is a small positive number that configures the - // shuffle sharding of requests into queues. When enqueuing a request - // at this priority level the request's flow identifier (a string - // pair) is hashed and the hash value is used to shuffle the list - // of queues and deal a hand of the size specified here. The - // request is put into one of the shortest queues in that hand. - // `handSize` must be no larger than `queues`, and should be - // significantly smaller (so that a few heavy flows do not - // saturate most of the queues). See the user-facing - // documentation for more extensive guidance on setting this - // field. This field has a default value of 8. - // +optional - handSize: int32 @go(HandSize) @protobuf(2,varint,opt) - - // `queueLengthLimit` is the maximum number of requests allowed to - // be waiting in a given queue of this priority level at a time; - // excess requests are rejected. This value must be positive. If - // not specified, it will be defaulted to 50. - // +optional - queueLengthLimit: int32 @go(QueueLengthLimit) @protobuf(3,varint,opt) -} - -// PriorityLevelConfigurationConditionType is a valid value for PriorityLevelConfigurationStatusCondition.Type -#PriorityLevelConfigurationConditionType: string - -// PriorityLevelConfigurationStatus represents the current state of a "request-priority". -#PriorityLevelConfigurationStatus: { - // `conditions` is the current state of "request-priority". - // +listType=map - // +listMapKey=type - // +optional - conditions?: [...#PriorityLevelConfigurationCondition] @go(Conditions,[]PriorityLevelConfigurationCondition) @protobuf(1,bytes,rep) -} - -// PriorityLevelConfigurationCondition defines the condition of priority level. -#PriorityLevelConfigurationCondition: { - // `type` is the type of the condition. - // Required. - type?: #PriorityLevelConfigurationConditionType @go(Type) @protobuf(1,bytes,opt) - - // `status` is the status of the condition. - // Can be True, False, Unknown. - // Required. - status?: #ConditionStatus @go(Status) @protobuf(2,bytes,opt) - - // `lastTransitionTime` is the last time the condition transitioned from one status to another. - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // `message` is a human-readable message indicating details about last transition. - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// ConditionStatus is the status of the condition. -#ConditionStatus: string // #enumConditionStatus - -#enumConditionStatus: - #ConditionTrue | - #ConditionFalse | - #ConditionUnknown - -#ConditionTrue: #ConditionStatus & "True" -#ConditionFalse: #ConditionStatus & "False" -#ConditionUnknown: #ConditionStatus & "Unknown" diff --git a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta1/doc_go_gen.cue b/cue.mod/gen/k8s.io/api/flowcontrol/v1beta1/doc_go_gen.cue deleted file mode 100644 index 404c624..0000000 --- a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta1/doc_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/flowcontrol/v1beta1 - -// Package v1beta1 holds api types of version v1alpha1 for group "flowcontrol.apiserver.k8s.io". -package v1beta1 diff --git a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/flowcontrol/v1beta1/register_go_gen.cue deleted file mode 100644 index 6aeec38..0000000 --- a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/flowcontrol/v1beta1 - -package v1beta1 - -#GroupName: "flowcontrol.apiserver.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/flowcontrol/v1beta1/types_go_gen.cue deleted file mode 100644 index f7281ab..0000000 --- a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,634 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/flowcontrol/v1beta1 - -package v1beta1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -#APIGroupAll: "*" -#ResourceAll: "*" -#VerbAll: "*" -#NonResourceAll: "*" -#NameAll: "*" -#NamespaceEvery: "*" - -#PriorityLevelConfigurationNameExempt: "exempt" -#PriorityLevelConfigurationNameCatchAll: "catch-all" -#FlowSchemaNameExempt: "exempt" -#FlowSchemaNameCatchAll: "catch-all" - -#FlowSchemaConditionDangling: "Dangling" -#PriorityLevelConfigurationConditionConcurrencyShared: "ConcurrencyShared" - -#FlowSchemaMaxMatchingPrecedence: int32 & 10000 - -#ResponseHeaderMatchedPriorityLevelConfigurationUID: "X-Kubernetes-PF-PriorityLevel-UID" -#ResponseHeaderMatchedFlowSchemaUID: "X-Kubernetes-PF-FlowSchema-UID" - -// AutoUpdateAnnotationKey is the name of an annotation that enables -// automatic update of the spec of the bootstrap configuration -// object(s), if set to 'true'. -// -// On a fresh install, all bootstrap configuration objects will have auto -// update enabled with the following annotation key: -// apf.kubernetes.io/autoupdate-spec: 'true' -// -// The kube-apiserver periodically checks the bootstrap configuration -// objects on the cluster and applies updates if necessary. -// -// kube-apiserver enforces an 'always auto-update' policy for the -// mandatory configuration object(s). This implies: -// - the auto-update annotation key is added with a value of 'true' -// if it is missing. -// - the auto-update annotation key is set to 'true' if its current value -// is a boolean false or has an invalid boolean representation -// (if the cluster operator sets it to 'false' it will be stomped) -// - any changes to the spec made by the cluster operator will be -// stomped, except for changes to the `nominalConcurrencyShares` -// and `lendablePercent` fields of the PriorityLevelConfiguration -// named "exempt". -// -// The kube-apiserver will apply updates on the suggested configuration if: -// - the cluster operator has enabled auto-update by setting the annotation -// (apf.kubernetes.io/autoupdate-spec: 'true') or -// - the annotation key is missing but the generation is 1 -// -// If the suggested configuration object is missing the annotation key, -// kube-apiserver will update the annotation appropriately: -// - it is set to 'true' if generation of the object is '1' which usually -// indicates that the spec of the object has not been changed. -// - it is set to 'false' if generation of the object is greater than 1. -// -// The goal is to enable the kube-apiserver to apply update on suggested -// configuration objects installed by previous releases but not overwrite -// changes made by the cluster operators. -// Note that this distinction is imperfectly detected: in the case where an -// operator deletes a suggested configuration object and later creates it -// but with a variant spec and then does no updates of the object -// (generation is 1), the technique outlined above will incorrectly -// determine that the object should be auto-updated. -#AutoUpdateAnnotationKey: "apf.kubernetes.io/autoupdate-spec" - -// FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with -// similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". -#FlowSchema: { - metav1.#TypeMeta - - // `metadata` is the standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // `spec` is the specification of the desired behavior of a FlowSchema. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #FlowSchemaSpec @go(Spec) @protobuf(2,bytes,opt) - - // `status` is the current status of a FlowSchema. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #FlowSchemaStatus @go(Status) @protobuf(3,bytes,opt) -} - -// FlowSchemaList is a list of FlowSchema objects. -#FlowSchemaList: { - metav1.#TypeMeta - - // `metadata` is the standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // `items` is a list of FlowSchemas. - items: [...#FlowSchema] @go(Items,[]FlowSchema) @protobuf(2,bytes,rep) -} - -// FlowSchemaSpec describes how the FlowSchema's specification looks like. -#FlowSchemaSpec: { - // `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot - // be resolved, the FlowSchema will be ignored and marked as invalid in its status. - // Required. - priorityLevelConfiguration: #PriorityLevelConfigurationReference @go(PriorityLevelConfiguration) @protobuf(1,bytes,opt) - - // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen - // FlowSchema is among those with the numerically lowest (which we take to be logically highest) - // MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. - // Note that if the precedence is not specified, it will be set to 1000 as default. - // +optional - matchingPrecedence: int32 @go(MatchingPrecedence) @protobuf(2,varint,opt) - - // `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. - // `nil` specifies that the distinguisher is disabled and thus will always be the empty string. - // +optional - distinguisherMethod?: null | #FlowDistinguisherMethod @go(DistinguisherMethod,*FlowDistinguisherMethod) @protobuf(3,bytes,opt) - - // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if - // at least one member of rules matches the request. - // if it is an empty slice, there will be no requests matching the FlowSchema. - // +listType=atomic - // +optional - rules?: [...#PolicyRulesWithSubjects] @go(Rules,[]PolicyRulesWithSubjects) @protobuf(4,bytes,rep) -} - -// FlowDistinguisherMethodType is the type of flow distinguisher method -#FlowDistinguisherMethodType: string // #enumFlowDistinguisherMethodType - -#enumFlowDistinguisherMethodType: - #FlowDistinguisherMethodByUserType | - #FlowDistinguisherMethodByNamespaceType - -// FlowDistinguisherMethodByUserType specifies that the flow distinguisher is the username in the request. -// This type is used to provide some insulation between users. -#FlowDistinguisherMethodByUserType: #FlowDistinguisherMethodType & "ByUser" - -// FlowDistinguisherMethodByNamespaceType specifies that the flow distinguisher is the namespace of the -// object that the request acts upon. If the object is not namespaced, or if the request is a non-resource -// request, then the distinguisher will be the empty string. An example usage of this type is to provide -// some insulation between tenants in a situation where there are multiple tenants and each namespace -// is dedicated to a tenant. -#FlowDistinguisherMethodByNamespaceType: #FlowDistinguisherMethodType & "ByNamespace" - -// FlowDistinguisherMethod specifies the method of a flow distinguisher. -#FlowDistinguisherMethod: { - // `type` is the type of flow distinguisher method - // The supported types are "ByUser" and "ByNamespace". - // Required. - type: #FlowDistinguisherMethodType @go(Type) @protobuf(1,bytes,opt) -} - -// PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. -#PriorityLevelConfigurationReference: { - // `name` is the name of the priority level configuration being referenced - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject -// making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches -// a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member -// of resourceRules or nonResourceRules matches the request. -#PolicyRulesWithSubjects: { - // subjects is the list of normal user, serviceaccount, or group that this rule cares about. - // There must be at least one member in this slice. - // A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. - // +listType=atomic - // Required. - subjects: [...#Subject] @go(Subjects,[]Subject) @protobuf(1,bytes,rep) - - // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the - // target resource. - // At least one of `resourceRules` and `nonResourceRules` has to be non-empty. - // +listType=atomic - // +optional - resourceRules?: [...#ResourcePolicyRule] @go(ResourceRules,[]ResourcePolicyRule) @protobuf(2,bytes,opt) - - // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb - // and the target non-resource URL. - // +listType=atomic - // +optional - nonResourceRules?: [...#NonResourcePolicyRule] @go(NonResourceRules,[]NonResourcePolicyRule) @protobuf(3,bytes,opt) -} - -// Subject matches the originator of a request, as identified by the request authentication system. There are three -// ways of matching an originator; by user, group, or service account. -// +union -#Subject: { - // `kind` indicates which one of the other fields is non-empty. - // Required - // +unionDiscriminator - kind: #SubjectKind @go(Kind) @protobuf(1,bytes,opt) - - // `user` matches based on username. - // +optional - user?: null | #UserSubject @go(User,*UserSubject) @protobuf(2,bytes,opt) - - // `group` matches based on user group name. - // +optional - group?: null | #GroupSubject @go(Group,*GroupSubject) @protobuf(3,bytes,opt) - - // `serviceAccount` matches ServiceAccounts. - // +optional - serviceAccount?: null | #ServiceAccountSubject @go(ServiceAccount,*ServiceAccountSubject) @protobuf(4,bytes,opt) -} - -// SubjectKind is the kind of subject. -#SubjectKind: string // #enumSubjectKind - -#enumSubjectKind: - #SubjectKindUser | - #SubjectKindGroup | - #SubjectKindServiceAccount - -#SubjectKindUser: #SubjectKind & "User" -#SubjectKindGroup: #SubjectKind & "Group" -#SubjectKindServiceAccount: #SubjectKind & "ServiceAccount" - -// UserSubject holds detailed information for user-kind subject. -#UserSubject: { - // `name` is the username that matches, or "*" to match all usernames. - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// GroupSubject holds detailed information for group-kind subject. -#GroupSubject: { - // name is the user group that matches, or "*" to match all user groups. - // See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some - // well-known group names. - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// ServiceAccountSubject holds detailed information for service-account-kind subject. -#ServiceAccountSubject: { - // `namespace` is the namespace of matching ServiceAccount objects. - // Required. - namespace: string @go(Namespace) @protobuf(1,bytes,opt) - - // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. - // Required. - name: string @go(Name) @protobuf(2,bytes,opt) -} - -// ResourcePolicyRule is a predicate that matches some resource -// requests, testing the request's verb and the target resource. A -// ResourcePolicyRule matches a resource request if and only if: (a) -// at least one member of verbs matches the request, (b) at least one -// member of apiGroups matches the request, (c) at least one member of -// resources matches the request, and (d) either (d1) the request does -// not specify a namespace (i.e., `Namespace==""`) and clusterScope is -// true or (d2) the request specifies a namespace and least one member -// of namespaces matches the request's namespace. -#ResourcePolicyRule: { - // `verbs` is a list of matching verbs and may not be empty. - // "*" matches all verbs and, if present, must be the only entry. - // +listType=set - // Required. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // `apiGroups` is a list of matching API groups and may not be empty. - // "*" matches all API groups and, if present, must be the only entry. - // +listType=set - // Required. - apiGroups: [...string] @go(APIGroups,[]string) @protobuf(2,bytes,rep) - - // `resources` is a list of matching resources (i.e., lowercase - // and plural) with, if desired, subresource. For example, [ - // "services", "nodes/status" ]. This list may not be empty. - // "*" matches all resources and, if present, must be the only entry. - // Required. - // +listType=set - resources: [...string] @go(Resources,[]string) @protobuf(3,bytes,rep) - - // `clusterScope` indicates whether to match requests that do not - // specify a namespace (which happens either because the resource - // is not namespaced or the request targets all namespaces). - // If this field is omitted or false then the `namespaces` field - // must contain a non-empty list. - // +optional - clusterScope?: bool @go(ClusterScope) @protobuf(4,varint,opt) - - // `namespaces` is a list of target namespaces that restricts - // matches. A request that specifies a target namespace matches - // only if either (a) this list contains that target namespace or - // (b) this list contains "*". Note that "*" matches any - // specified namespace but does not match a request that _does - // not specify_ a namespace (see the `clusterScope` field for - // that). - // This list may be empty, but only if `clusterScope` is true. - // +optional - // +listType=set - namespaces: [...string] @go(Namespaces,[]string) @protobuf(5,bytes,rep) -} - -// NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the -// target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member -// of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. -#NonResourcePolicyRule: { - // `verbs` is a list of matching verbs and may not be empty. - // "*" matches all verbs. If it is present, it must be the only entry. - // +listType=set - // Required. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. - // For example: - // - "/healthz" is legal - // - "/hea*" is illegal - // - "/hea" is legal but matches nothing - // - "/hea/*" also matches nothing - // - "/healthz/*" matches all per-component health checks. - // "*" matches all non-resource urls. if it is present, it must be the only entry. - // +listType=set - // Required. - nonResourceURLs: [...string] @go(NonResourceURLs,[]string) @protobuf(6,bytes,rep) -} - -// FlowSchemaStatus represents the current state of a FlowSchema. -#FlowSchemaStatus: { - // `conditions` is a list of the current states of FlowSchema. - // +listType=map - // +listMapKey=type - // +optional - conditions?: [...#FlowSchemaCondition] @go(Conditions,[]FlowSchemaCondition) @protobuf(1,bytes,rep) -} - -// FlowSchemaCondition describes conditions for a FlowSchema. -#FlowSchemaCondition: { - // `type` is the type of the condition. - // Required. - type?: #FlowSchemaConditionType @go(Type) @protobuf(1,bytes,opt) - - // `status` is the status of the condition. - // Can be True, False, Unknown. - // Required. - status?: #ConditionStatus @go(Status) @protobuf(2,bytes,opt) - - // `lastTransitionTime` is the last time the condition transitioned from one status to another. - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // `message` is a human-readable message indicating details about last transition. - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// FlowSchemaConditionType is a valid value for FlowSchemaStatusCondition.Type -#FlowSchemaConditionType: string - -// PriorityLevelConfiguration represents the configuration of a priority level. -#PriorityLevelConfiguration: { - metav1.#TypeMeta - - // `metadata` is the standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // `spec` is the specification of the desired behavior of a "request-priority". - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #PriorityLevelConfigurationSpec @go(Spec) @protobuf(2,bytes,opt) - - // `status` is the current status of a "request-priority". - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #PriorityLevelConfigurationStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. -#PriorityLevelConfigurationList: { - metav1.#TypeMeta - - // `metadata` is the standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // `items` is a list of request-priorities. - items: [...#PriorityLevelConfiguration] @go(Items,[]PriorityLevelConfiguration) @protobuf(2,bytes,rep) -} - -// PriorityLevelConfigurationSpec specifies the configuration of a priority level. -// +union -#PriorityLevelConfigurationSpec: { - // `type` indicates whether this priority level is subject to - // limitation on request execution. A value of `"Exempt"` means - // that requests of this priority level are not subject to a limit - // (and thus are never queued) and do not detract from the - // capacity made available to other priority levels. A value of - // `"Limited"` means that (a) requests of this priority level - // _are_ subject to limits and (b) some of the server's limited - // capacity is made available exclusively to this priority level. - // Required. - // +unionDiscriminator - type: #PriorityLevelEnablement @go(Type) @protobuf(1,bytes,opt) - - // `limited` specifies how requests are handled for a Limited priority level. - // This field must be non-empty if and only if `type` is `"Limited"`. - // +optional - limited?: null | #LimitedPriorityLevelConfiguration @go(Limited,*LimitedPriorityLevelConfiguration) @protobuf(2,bytes,opt) - - // `exempt` specifies how requests are handled for an exempt priority level. - // This field MUST be empty if `type` is `"Limited"`. - // This field MAY be non-empty if `type` is `"Exempt"`. - // If empty and `type` is `"Exempt"` then the default values - // for `ExemptPriorityLevelConfiguration` apply. - // +optional - exempt?: null | #ExemptPriorityLevelConfiguration @go(Exempt,*ExemptPriorityLevelConfiguration) @protobuf(3,bytes,opt) -} - -// PriorityLevelEnablement indicates whether limits on execution are enabled for the priority level -#PriorityLevelEnablement: string // #enumPriorityLevelEnablement - -#enumPriorityLevelEnablement: - #PriorityLevelEnablementExempt | - #PriorityLevelEnablementLimited - -// PriorityLevelEnablementExempt means that requests are not subject to limits -#PriorityLevelEnablementExempt: #PriorityLevelEnablement & "Exempt" - -// PriorityLevelEnablementLimited means that requests are subject to limits -#PriorityLevelEnablementLimited: #PriorityLevelEnablement & "Limited" - -// LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. -// It addresses two issues: -// - How are requests for this priority level limited? -// - What should be done with requests that exceed the limit? -#LimitedPriorityLevelConfiguration: { - // `assuredConcurrencyShares` (ACS) configures the execution - // limit, which is a limit on the number of requests of this - // priority level that may be exeucting at a given time. ACS must - // be a positive number. The server's concurrency limit (SCL) is - // divided among the concurrency-controlled priority levels in - // proportion to their assured concurrency shares. This produces - // the assured concurrency value (ACV) --- the number of requests - // that may be executing at a time --- for each such priority - // level: - // - // ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) - // - // bigger numbers of ACS mean more reserved concurrent requests (at the - // expense of every other PL). - // This field has a default value of 30. - // +optional - assuredConcurrencyShares: int32 @go(AssuredConcurrencyShares) @protobuf(1,varint,opt) - - // `limitResponse` indicates what to do with requests that can not be executed right now - limitResponse?: #LimitResponse @go(LimitResponse) @protobuf(2,bytes,opt) - - // `lendablePercent` prescribes the fraction of the level's NominalCL that - // can be borrowed by other priority levels. The value of this - // field must be between 0 and 100, inclusive, and it defaults to 0. - // The number of seats that other levels can borrow from this level, known - // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - // - // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - // - // +optional - lendablePercent?: null | int32 @go(LendablePercent,*int32) @protobuf(3,varint,opt) - - // `borrowingLimitPercent`, if present, configures a limit on how many - // seats this priority level can borrow from other priority levels. - // The limit is known as this level's BorrowingConcurrencyLimit - // (BorrowingCL) and is a limit on the total number of seats that this - // level may borrow at any one time. - // This field holds the ratio of that limit to the level's nominal - // concurrency limit. When this field is non-nil, it must hold a - // non-negative integer and the limit is calculated as follows. - // - // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) - // - // The value of this field can be more than 100, implying that this - // priority level can borrow a number of seats that is greater than - // its own nominal concurrency limit (NominalCL). - // When this field is left `nil`, the limit is effectively infinite. - // +optional - borrowingLimitPercent?: null | int32 @go(BorrowingLimitPercent,*int32) @protobuf(4,varint,opt) -} - -// ExemptPriorityLevelConfiguration describes the configurable aspects -// of the handling of exempt requests. -// In the mandatory exempt configuration object the values in the fields -// here can be modified by authorized users, unlike the rest of the `spec`. -#ExemptPriorityLevelConfiguration: { - // `nominalConcurrencyShares` (NCS) contributes to the computation of the - // NominalConcurrencyLimit (NominalCL) of this level. - // This is the number of execution seats nominally reserved for this priority level. - // This DOES NOT limit the dispatching from this priority level - // but affects the other priority levels through the borrowing mechanism. - // The server's concurrency limit (ServerCL) is divided among all the - // priority levels in proportion to their NCS values: - // - // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) - // sum_ncs = sum[priority level k] NCS(k) - // - // Bigger numbers mean a larger nominal concurrency limit, - // at the expense of every other priority level. - // This field has a default value of zero. - // +optional - nominalConcurrencyShares?: null | int32 @go(NominalConcurrencyShares,*int32) @protobuf(1,varint,opt) - - // `lendablePercent` prescribes the fraction of the level's NominalCL that - // can be borrowed by other priority levels. This value of this - // field must be between 0 and 100, inclusive, and it defaults to 0. - // The number of seats that other levels can borrow from this level, known - // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - // - // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - // - // +optional - lendablePercent?: null | int32 @go(LendablePercent,*int32) @protobuf(2,varint,opt) -} - -// LimitResponse defines how to handle requests that can not be executed right now. -// +union -#LimitResponse: { - // `type` is "Queue" or "Reject". - // "Queue" means that requests that can not be executed upon arrival - // are held in a queue until they can be executed or a queuing limit - // is reached. - // "Reject" means that requests that can not be executed upon arrival - // are rejected. - // Required. - // +unionDiscriminator - type: #LimitResponseType @go(Type) @protobuf(1,bytes,opt) - - // `queuing` holds the configuration parameters for queuing. - // This field may be non-empty only if `type` is `"Queue"`. - // +optional - queuing?: null | #QueuingConfiguration @go(Queuing,*QueuingConfiguration) @protobuf(2,bytes,opt) -} - -// LimitResponseType identifies how a Limited priority level handles a request that can not be executed right now -#LimitResponseType: string // #enumLimitResponseType - -#enumLimitResponseType: - #LimitResponseTypeQueue | - #LimitResponseTypeReject - -// LimitResponseTypeQueue means that requests that can not be executed right now are queued until they can be executed or a queuing limit is hit -#LimitResponseTypeQueue: #LimitResponseType & "Queue" - -// LimitResponseTypeReject means that requests that can not be executed right now are rejected -#LimitResponseTypeReject: #LimitResponseType & "Reject" - -// QueuingConfiguration holds the configuration parameters for queuing -#QueuingConfiguration: { - // `queues` is the number of queues for this priority level. The - // queues exist independently at each apiserver. The value must be - // positive. Setting it to 1 effectively precludes - // shufflesharding and thus makes the distinguisher method of - // associated flow schemas irrelevant. This field has a default - // value of 64. - // +optional - queues: int32 @go(Queues) @protobuf(1,varint,opt) - - // `handSize` is a small positive number that configures the - // shuffle sharding of requests into queues. When enqueuing a request - // at this priority level the request's flow identifier (a string - // pair) is hashed and the hash value is used to shuffle the list - // of queues and deal a hand of the size specified here. The - // request is put into one of the shortest queues in that hand. - // `handSize` must be no larger than `queues`, and should be - // significantly smaller (so that a few heavy flows do not - // saturate most of the queues). See the user-facing - // documentation for more extensive guidance on setting this - // field. This field has a default value of 8. - // +optional - handSize: int32 @go(HandSize) @protobuf(2,varint,opt) - - // `queueLengthLimit` is the maximum number of requests allowed to - // be waiting in a given queue of this priority level at a time; - // excess requests are rejected. This value must be positive. If - // not specified, it will be defaulted to 50. - // +optional - queueLengthLimit: int32 @go(QueueLengthLimit) @protobuf(3,varint,opt) -} - -// PriorityLevelConfigurationConditionType is a valid value for PriorityLevelConfigurationStatusCondition.Type -#PriorityLevelConfigurationConditionType: string - -// PriorityLevelConfigurationStatus represents the current state of a "request-priority". -#PriorityLevelConfigurationStatus: { - // `conditions` is the current state of "request-priority". - // +listType=map - // +listMapKey=type - // +optional - conditions?: [...#PriorityLevelConfigurationCondition] @go(Conditions,[]PriorityLevelConfigurationCondition) @protobuf(1,bytes,rep) -} - -// PriorityLevelConfigurationCondition defines the condition of priority level. -#PriorityLevelConfigurationCondition: { - // `type` is the type of the condition. - // Required. - type?: #PriorityLevelConfigurationConditionType @go(Type) @protobuf(1,bytes,opt) - - // `status` is the status of the condition. - // Can be True, False, Unknown. - // Required. - status?: #ConditionStatus @go(Status) @protobuf(2,bytes,opt) - - // `lastTransitionTime` is the last time the condition transitioned from one status to another. - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // `message` is a human-readable message indicating details about last transition. - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// ConditionStatus is the status of the condition. -#ConditionStatus: string // #enumConditionStatus - -#enumConditionStatus: - #ConditionTrue | - #ConditionFalse | - #ConditionUnknown - -#ConditionTrue: #ConditionStatus & "True" -#ConditionFalse: #ConditionStatus & "False" -#ConditionUnknown: #ConditionStatus & "Unknown" diff --git a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta2/doc_go_gen.cue b/cue.mod/gen/k8s.io/api/flowcontrol/v1beta2/doc_go_gen.cue deleted file mode 100644 index dee2ea1..0000000 --- a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta2/doc_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/flowcontrol/v1beta2 - -// Package v1beta2 holds api types of version v1alpha1 for group "flowcontrol.apiserver.k8s.io". -package v1beta2 diff --git a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta2/register_go_gen.cue b/cue.mod/gen/k8s.io/api/flowcontrol/v1beta2/register_go_gen.cue deleted file mode 100644 index cf0f014..0000000 --- a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta2/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/flowcontrol/v1beta2 - -package v1beta2 - -#GroupName: "flowcontrol.apiserver.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta2/types_go_gen.cue b/cue.mod/gen/k8s.io/api/flowcontrol/v1beta2/types_go_gen.cue deleted file mode 100644 index 3e994c1..0000000 --- a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta2/types_go_gen.cue +++ /dev/null @@ -1,634 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/flowcontrol/v1beta2 - -package v1beta2 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -#APIGroupAll: "*" -#ResourceAll: "*" -#VerbAll: "*" -#NonResourceAll: "*" -#NameAll: "*" -#NamespaceEvery: "*" - -#PriorityLevelConfigurationNameExempt: "exempt" -#PriorityLevelConfigurationNameCatchAll: "catch-all" -#FlowSchemaNameExempt: "exempt" -#FlowSchemaNameCatchAll: "catch-all" - -#FlowSchemaConditionDangling: "Dangling" -#PriorityLevelConfigurationConditionConcurrencyShared: "ConcurrencyShared" - -#FlowSchemaMaxMatchingPrecedence: int32 & 10000 - -#ResponseHeaderMatchedPriorityLevelConfigurationUID: "X-Kubernetes-PF-PriorityLevel-UID" -#ResponseHeaderMatchedFlowSchemaUID: "X-Kubernetes-PF-FlowSchema-UID" - -// AutoUpdateAnnotationKey is the name of an annotation that enables -// automatic update of the spec of the bootstrap configuration -// object(s), if set to 'true'. -// -// On a fresh install, all bootstrap configuration objects will have auto -// update enabled with the following annotation key: -// apf.kubernetes.io/autoupdate-spec: 'true' -// -// The kube-apiserver periodically checks the bootstrap configuration -// objects on the cluster and applies updates if necessary. -// -// kube-apiserver enforces an 'always auto-update' policy for the -// mandatory configuration object(s). This implies: -// - the auto-update annotation key is added with a value of 'true' -// if it is missing. -// - the auto-update annotation key is set to 'true' if its current value -// is a boolean false or has an invalid boolean representation -// (if the cluster operator sets it to 'false' it will be stomped) -// - any changes to the spec made by the cluster operator will be -// stomped, except for changes to the `nominalConcurrencyShares` -// and `lendablePercent` fields of the PriorityLevelConfiguration -// named "exempt". -// -// The kube-apiserver will apply updates on the suggested configuration if: -// - the cluster operator has enabled auto-update by setting the annotation -// (apf.kubernetes.io/autoupdate-spec: 'true') or -// - the annotation key is missing but the generation is 1 -// -// If the suggested configuration object is missing the annotation key, -// kube-apiserver will update the annotation appropriately: -// - it is set to 'true' if generation of the object is '1' which usually -// indicates that the spec of the object has not been changed. -// - it is set to 'false' if generation of the object is greater than 1. -// -// The goal is to enable the kube-apiserver to apply update on suggested -// configuration objects installed by previous releases but not overwrite -// changes made by the cluster operators. -// Note that this distinction is imperfectly detected: in the case where an -// operator deletes a suggested configuration object and later creates it -// but with a variant spec and then does no updates of the object -// (generation is 1), the technique outlined above will incorrectly -// determine that the object should be auto-updated. -#AutoUpdateAnnotationKey: "apf.kubernetes.io/autoupdate-spec" - -// FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with -// similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". -#FlowSchema: { - metav1.#TypeMeta - - // `metadata` is the standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // `spec` is the specification of the desired behavior of a FlowSchema. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #FlowSchemaSpec @go(Spec) @protobuf(2,bytes,opt) - - // `status` is the current status of a FlowSchema. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #FlowSchemaStatus @go(Status) @protobuf(3,bytes,opt) -} - -// FlowSchemaList is a list of FlowSchema objects. -#FlowSchemaList: { - metav1.#TypeMeta - - // `metadata` is the standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // `items` is a list of FlowSchemas. - items: [...#FlowSchema] @go(Items,[]FlowSchema) @protobuf(2,bytes,rep) -} - -// FlowSchemaSpec describes how the FlowSchema's specification looks like. -#FlowSchemaSpec: { - // `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot - // be resolved, the FlowSchema will be ignored and marked as invalid in its status. - // Required. - priorityLevelConfiguration: #PriorityLevelConfigurationReference @go(PriorityLevelConfiguration) @protobuf(1,bytes,opt) - - // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen - // FlowSchema is among those with the numerically lowest (which we take to be logically highest) - // MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. - // Note that if the precedence is not specified, it will be set to 1000 as default. - // +optional - matchingPrecedence: int32 @go(MatchingPrecedence) @protobuf(2,varint,opt) - - // `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. - // `nil` specifies that the distinguisher is disabled and thus will always be the empty string. - // +optional - distinguisherMethod?: null | #FlowDistinguisherMethod @go(DistinguisherMethod,*FlowDistinguisherMethod) @protobuf(3,bytes,opt) - - // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if - // at least one member of rules matches the request. - // if it is an empty slice, there will be no requests matching the FlowSchema. - // +listType=atomic - // +optional - rules?: [...#PolicyRulesWithSubjects] @go(Rules,[]PolicyRulesWithSubjects) @protobuf(4,bytes,rep) -} - -// FlowDistinguisherMethodType is the type of flow distinguisher method -#FlowDistinguisherMethodType: string // #enumFlowDistinguisherMethodType - -#enumFlowDistinguisherMethodType: - #FlowDistinguisherMethodByUserType | - #FlowDistinguisherMethodByNamespaceType - -// FlowDistinguisherMethodByUserType specifies that the flow distinguisher is the username in the request. -// This type is used to provide some insulation between users. -#FlowDistinguisherMethodByUserType: #FlowDistinguisherMethodType & "ByUser" - -// FlowDistinguisherMethodByNamespaceType specifies that the flow distinguisher is the namespace of the -// object that the request acts upon. If the object is not namespaced, or if the request is a non-resource -// request, then the distinguisher will be the empty string. An example usage of this type is to provide -// some insulation between tenants in a situation where there are multiple tenants and each namespace -// is dedicated to a tenant. -#FlowDistinguisherMethodByNamespaceType: #FlowDistinguisherMethodType & "ByNamespace" - -// FlowDistinguisherMethod specifies the method of a flow distinguisher. -#FlowDistinguisherMethod: { - // `type` is the type of flow distinguisher method - // The supported types are "ByUser" and "ByNamespace". - // Required. - type: #FlowDistinguisherMethodType @go(Type) @protobuf(1,bytes,opt) -} - -// PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. -#PriorityLevelConfigurationReference: { - // `name` is the name of the priority level configuration being referenced - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject -// making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches -// a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member -// of resourceRules or nonResourceRules matches the request. -#PolicyRulesWithSubjects: { - // subjects is the list of normal user, serviceaccount, or group that this rule cares about. - // There must be at least one member in this slice. - // A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. - // +listType=atomic - // Required. - subjects: [...#Subject] @go(Subjects,[]Subject) @protobuf(1,bytes,rep) - - // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the - // target resource. - // At least one of `resourceRules` and `nonResourceRules` has to be non-empty. - // +listType=atomic - // +optional - resourceRules?: [...#ResourcePolicyRule] @go(ResourceRules,[]ResourcePolicyRule) @protobuf(2,bytes,opt) - - // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb - // and the target non-resource URL. - // +listType=atomic - // +optional - nonResourceRules?: [...#NonResourcePolicyRule] @go(NonResourceRules,[]NonResourcePolicyRule) @protobuf(3,bytes,opt) -} - -// Subject matches the originator of a request, as identified by the request authentication system. There are three -// ways of matching an originator; by user, group, or service account. -// +union -#Subject: { - // `kind` indicates which one of the other fields is non-empty. - // Required - // +unionDiscriminator - kind: #SubjectKind @go(Kind) @protobuf(1,bytes,opt) - - // `user` matches based on username. - // +optional - user?: null | #UserSubject @go(User,*UserSubject) @protobuf(2,bytes,opt) - - // `group` matches based on user group name. - // +optional - group?: null | #GroupSubject @go(Group,*GroupSubject) @protobuf(3,bytes,opt) - - // `serviceAccount` matches ServiceAccounts. - // +optional - serviceAccount?: null | #ServiceAccountSubject @go(ServiceAccount,*ServiceAccountSubject) @protobuf(4,bytes,opt) -} - -// SubjectKind is the kind of subject. -#SubjectKind: string // #enumSubjectKind - -#enumSubjectKind: - #SubjectKindUser | - #SubjectKindGroup | - #SubjectKindServiceAccount - -#SubjectKindUser: #SubjectKind & "User" -#SubjectKindGroup: #SubjectKind & "Group" -#SubjectKindServiceAccount: #SubjectKind & "ServiceAccount" - -// UserSubject holds detailed information for user-kind subject. -#UserSubject: { - // `name` is the username that matches, or "*" to match all usernames. - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// GroupSubject holds detailed information for group-kind subject. -#GroupSubject: { - // name is the user group that matches, or "*" to match all user groups. - // See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some - // well-known group names. - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// ServiceAccountSubject holds detailed information for service-account-kind subject. -#ServiceAccountSubject: { - // `namespace` is the namespace of matching ServiceAccount objects. - // Required. - namespace: string @go(Namespace) @protobuf(1,bytes,opt) - - // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. - // Required. - name: string @go(Name) @protobuf(2,bytes,opt) -} - -// ResourcePolicyRule is a predicate that matches some resource -// requests, testing the request's verb and the target resource. A -// ResourcePolicyRule matches a resource request if and only if: (a) -// at least one member of verbs matches the request, (b) at least one -// member of apiGroups matches the request, (c) at least one member of -// resources matches the request, and (d) either (d1) the request does -// not specify a namespace (i.e., `Namespace==""`) and clusterScope is -// true or (d2) the request specifies a namespace and least one member -// of namespaces matches the request's namespace. -#ResourcePolicyRule: { - // `verbs` is a list of matching verbs and may not be empty. - // "*" matches all verbs and, if present, must be the only entry. - // +listType=set - // Required. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // `apiGroups` is a list of matching API groups and may not be empty. - // "*" matches all API groups and, if present, must be the only entry. - // +listType=set - // Required. - apiGroups: [...string] @go(APIGroups,[]string) @protobuf(2,bytes,rep) - - // `resources` is a list of matching resources (i.e., lowercase - // and plural) with, if desired, subresource. For example, [ - // "services", "nodes/status" ]. This list may not be empty. - // "*" matches all resources and, if present, must be the only entry. - // Required. - // +listType=set - resources: [...string] @go(Resources,[]string) @protobuf(3,bytes,rep) - - // `clusterScope` indicates whether to match requests that do not - // specify a namespace (which happens either because the resource - // is not namespaced or the request targets all namespaces). - // If this field is omitted or false then the `namespaces` field - // must contain a non-empty list. - // +optional - clusterScope?: bool @go(ClusterScope) @protobuf(4,varint,opt) - - // `namespaces` is a list of target namespaces that restricts - // matches. A request that specifies a target namespace matches - // only if either (a) this list contains that target namespace or - // (b) this list contains "*". Note that "*" matches any - // specified namespace but does not match a request that _does - // not specify_ a namespace (see the `clusterScope` field for - // that). - // This list may be empty, but only if `clusterScope` is true. - // +optional - // +listType=set - namespaces: [...string] @go(Namespaces,[]string) @protobuf(5,bytes,rep) -} - -// NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the -// target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member -// of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. -#NonResourcePolicyRule: { - // `verbs` is a list of matching verbs and may not be empty. - // "*" matches all verbs. If it is present, it must be the only entry. - // +listType=set - // Required. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. - // For example: - // - "/healthz" is legal - // - "/hea*" is illegal - // - "/hea" is legal but matches nothing - // - "/hea/*" also matches nothing - // - "/healthz/*" matches all per-component health checks. - // "*" matches all non-resource urls. if it is present, it must be the only entry. - // +listType=set - // Required. - nonResourceURLs: [...string] @go(NonResourceURLs,[]string) @protobuf(6,bytes,rep) -} - -// FlowSchemaStatus represents the current state of a FlowSchema. -#FlowSchemaStatus: { - // `conditions` is a list of the current states of FlowSchema. - // +listType=map - // +listMapKey=type - // +optional - conditions?: [...#FlowSchemaCondition] @go(Conditions,[]FlowSchemaCondition) @protobuf(1,bytes,rep) -} - -// FlowSchemaCondition describes conditions for a FlowSchema. -#FlowSchemaCondition: { - // `type` is the type of the condition. - // Required. - type?: #FlowSchemaConditionType @go(Type) @protobuf(1,bytes,opt) - - // `status` is the status of the condition. - // Can be True, False, Unknown. - // Required. - status?: #ConditionStatus @go(Status) @protobuf(2,bytes,opt) - - // `lastTransitionTime` is the last time the condition transitioned from one status to another. - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // `message` is a human-readable message indicating details about last transition. - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// FlowSchemaConditionType is a valid value for FlowSchemaStatusCondition.Type -#FlowSchemaConditionType: string - -// PriorityLevelConfiguration represents the configuration of a priority level. -#PriorityLevelConfiguration: { - metav1.#TypeMeta - - // `metadata` is the standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // `spec` is the specification of the desired behavior of a "request-priority". - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #PriorityLevelConfigurationSpec @go(Spec) @protobuf(2,bytes,opt) - - // `status` is the current status of a "request-priority". - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #PriorityLevelConfigurationStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. -#PriorityLevelConfigurationList: { - metav1.#TypeMeta - - // `metadata` is the standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // `items` is a list of request-priorities. - items: [...#PriorityLevelConfiguration] @go(Items,[]PriorityLevelConfiguration) @protobuf(2,bytes,rep) -} - -// PriorityLevelConfigurationSpec specifies the configuration of a priority level. -// +union -#PriorityLevelConfigurationSpec: { - // `type` indicates whether this priority level is subject to - // limitation on request execution. A value of `"Exempt"` means - // that requests of this priority level are not subject to a limit - // (and thus are never queued) and do not detract from the - // capacity made available to other priority levels. A value of - // `"Limited"` means that (a) requests of this priority level - // _are_ subject to limits and (b) some of the server's limited - // capacity is made available exclusively to this priority level. - // Required. - // +unionDiscriminator - type: #PriorityLevelEnablement @go(Type) @protobuf(1,bytes,opt) - - // `limited` specifies how requests are handled for a Limited priority level. - // This field must be non-empty if and only if `type` is `"Limited"`. - // +optional - limited?: null | #LimitedPriorityLevelConfiguration @go(Limited,*LimitedPriorityLevelConfiguration) @protobuf(2,bytes,opt) - - // `exempt` specifies how requests are handled for an exempt priority level. - // This field MUST be empty if `type` is `"Limited"`. - // This field MAY be non-empty if `type` is `"Exempt"`. - // If empty and `type` is `"Exempt"` then the default values - // for `ExemptPriorityLevelConfiguration` apply. - // +optional - exempt?: null | #ExemptPriorityLevelConfiguration @go(Exempt,*ExemptPriorityLevelConfiguration) @protobuf(3,bytes,opt) -} - -// PriorityLevelEnablement indicates whether limits on execution are enabled for the priority level -#PriorityLevelEnablement: string // #enumPriorityLevelEnablement - -#enumPriorityLevelEnablement: - #PriorityLevelEnablementExempt | - #PriorityLevelEnablementLimited - -// PriorityLevelEnablementExempt means that requests are not subject to limits -#PriorityLevelEnablementExempt: #PriorityLevelEnablement & "Exempt" - -// PriorityLevelEnablementLimited means that requests are subject to limits -#PriorityLevelEnablementLimited: #PriorityLevelEnablement & "Limited" - -// LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. -// It addresses two issues: -// - How are requests for this priority level limited? -// - What should be done with requests that exceed the limit? -#LimitedPriorityLevelConfiguration: { - // `assuredConcurrencyShares` (ACS) configures the execution - // limit, which is a limit on the number of requests of this - // priority level that may be exeucting at a given time. ACS must - // be a positive number. The server's concurrency limit (SCL) is - // divided among the concurrency-controlled priority levels in - // proportion to their assured concurrency shares. This produces - // the assured concurrency value (ACV) --- the number of requests - // that may be executing at a time --- for each such priority - // level: - // - // ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) - // - // bigger numbers of ACS mean more reserved concurrent requests (at the - // expense of every other PL). - // This field has a default value of 30. - // +optional - assuredConcurrencyShares: int32 @go(AssuredConcurrencyShares) @protobuf(1,varint,opt) - - // `limitResponse` indicates what to do with requests that can not be executed right now - limitResponse?: #LimitResponse @go(LimitResponse) @protobuf(2,bytes,opt) - - // `lendablePercent` prescribes the fraction of the level's NominalCL that - // can be borrowed by other priority levels. The value of this - // field must be between 0 and 100, inclusive, and it defaults to 0. - // The number of seats that other levels can borrow from this level, known - // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - // - // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - // - // +optional - lendablePercent?: null | int32 @go(LendablePercent,*int32) @protobuf(3,varint,opt) - - // `borrowingLimitPercent`, if present, configures a limit on how many - // seats this priority level can borrow from other priority levels. - // The limit is known as this level's BorrowingConcurrencyLimit - // (BorrowingCL) and is a limit on the total number of seats that this - // level may borrow at any one time. - // This field holds the ratio of that limit to the level's nominal - // concurrency limit. When this field is non-nil, it must hold a - // non-negative integer and the limit is calculated as follows. - // - // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) - // - // The value of this field can be more than 100, implying that this - // priority level can borrow a number of seats that is greater than - // its own nominal concurrency limit (NominalCL). - // When this field is left `nil`, the limit is effectively infinite. - // +optional - borrowingLimitPercent?: null | int32 @go(BorrowingLimitPercent,*int32) @protobuf(4,varint,opt) -} - -// ExemptPriorityLevelConfiguration describes the configurable aspects -// of the handling of exempt requests. -// In the mandatory exempt configuration object the values in the fields -// here can be modified by authorized users, unlike the rest of the `spec`. -#ExemptPriorityLevelConfiguration: { - // `nominalConcurrencyShares` (NCS) contributes to the computation of the - // NominalConcurrencyLimit (NominalCL) of this level. - // This is the number of execution seats nominally reserved for this priority level. - // This DOES NOT limit the dispatching from this priority level - // but affects the other priority levels through the borrowing mechanism. - // The server's concurrency limit (ServerCL) is divided among all the - // priority levels in proportion to their NCS values: - // - // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) - // sum_ncs = sum[priority level k] NCS(k) - // - // Bigger numbers mean a larger nominal concurrency limit, - // at the expense of every other priority level. - // This field has a default value of zero. - // +optional - nominalConcurrencyShares?: null | int32 @go(NominalConcurrencyShares,*int32) @protobuf(1,varint,opt) - - // `lendablePercent` prescribes the fraction of the level's NominalCL that - // can be borrowed by other priority levels. This value of this - // field must be between 0 and 100, inclusive, and it defaults to 0. - // The number of seats that other levels can borrow from this level, known - // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - // - // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - // - // +optional - lendablePercent?: null | int32 @go(LendablePercent,*int32) @protobuf(2,varint,opt) -} - -// LimitResponse defines how to handle requests that can not be executed right now. -// +union -#LimitResponse: { - // `type` is "Queue" or "Reject". - // "Queue" means that requests that can not be executed upon arrival - // are held in a queue until they can be executed or a queuing limit - // is reached. - // "Reject" means that requests that can not be executed upon arrival - // are rejected. - // Required. - // +unionDiscriminator - type: #LimitResponseType @go(Type) @protobuf(1,bytes,opt) - - // `queuing` holds the configuration parameters for queuing. - // This field may be non-empty only if `type` is `"Queue"`. - // +optional - queuing?: null | #QueuingConfiguration @go(Queuing,*QueuingConfiguration) @protobuf(2,bytes,opt) -} - -// LimitResponseType identifies how a Limited priority level handles a request that can not be executed right now -#LimitResponseType: string // #enumLimitResponseType - -#enumLimitResponseType: - #LimitResponseTypeQueue | - #LimitResponseTypeReject - -// LimitResponseTypeQueue means that requests that can not be executed right now are queued until they can be executed or a queuing limit is hit -#LimitResponseTypeQueue: #LimitResponseType & "Queue" - -// LimitResponseTypeReject means that requests that can not be executed right now are rejected -#LimitResponseTypeReject: #LimitResponseType & "Reject" - -// QueuingConfiguration holds the configuration parameters for queuing -#QueuingConfiguration: { - // `queues` is the number of queues for this priority level. The - // queues exist independently at each apiserver. The value must be - // positive. Setting it to 1 effectively precludes - // shufflesharding and thus makes the distinguisher method of - // associated flow schemas irrelevant. This field has a default - // value of 64. - // +optional - queues: int32 @go(Queues) @protobuf(1,varint,opt) - - // `handSize` is a small positive number that configures the - // shuffle sharding of requests into queues. When enqueuing a request - // at this priority level the request's flow identifier (a string - // pair) is hashed and the hash value is used to shuffle the list - // of queues and deal a hand of the size specified here. The - // request is put into one of the shortest queues in that hand. - // `handSize` must be no larger than `queues`, and should be - // significantly smaller (so that a few heavy flows do not - // saturate most of the queues). See the user-facing - // documentation for more extensive guidance on setting this - // field. This field has a default value of 8. - // +optional - handSize: int32 @go(HandSize) @protobuf(2,varint,opt) - - // `queueLengthLimit` is the maximum number of requests allowed to - // be waiting in a given queue of this priority level at a time; - // excess requests are rejected. This value must be positive. If - // not specified, it will be defaulted to 50. - // +optional - queueLengthLimit: int32 @go(QueueLengthLimit) @protobuf(3,varint,opt) -} - -// PriorityLevelConfigurationConditionType is a valid value for PriorityLevelConfigurationStatusCondition.Type -#PriorityLevelConfigurationConditionType: string - -// PriorityLevelConfigurationStatus represents the current state of a "request-priority". -#PriorityLevelConfigurationStatus: { - // `conditions` is the current state of "request-priority". - // +listType=map - // +listMapKey=type - // +optional - conditions?: [...#PriorityLevelConfigurationCondition] @go(Conditions,[]PriorityLevelConfigurationCondition) @protobuf(1,bytes,rep) -} - -// PriorityLevelConfigurationCondition defines the condition of priority level. -#PriorityLevelConfigurationCondition: { - // `type` is the type of the condition. - // Required. - type?: #PriorityLevelConfigurationConditionType @go(Type) @protobuf(1,bytes,opt) - - // `status` is the status of the condition. - // Can be True, False, Unknown. - // Required. - status?: #ConditionStatus @go(Status) @protobuf(2,bytes,opt) - - // `lastTransitionTime` is the last time the condition transitioned from one status to another. - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // `message` is a human-readable message indicating details about last transition. - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// ConditionStatus is the status of the condition. -#ConditionStatus: string // #enumConditionStatus - -#enumConditionStatus: - #ConditionTrue | - #ConditionFalse | - #ConditionUnknown - -#ConditionTrue: #ConditionStatus & "True" -#ConditionFalse: #ConditionStatus & "False" -#ConditionUnknown: #ConditionStatus & "Unknown" diff --git a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta3/doc_go_gen.cue b/cue.mod/gen/k8s.io/api/flowcontrol/v1beta3/doc_go_gen.cue deleted file mode 100644 index 7e06a83..0000000 --- a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta3/doc_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/flowcontrol/v1beta3 - -// Package v1beta3 holds api types of version v1beta3 for group "flowcontrol.apiserver.k8s.io". -package v1beta3 diff --git a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta3/register_go_gen.cue b/cue.mod/gen/k8s.io/api/flowcontrol/v1beta3/register_go_gen.cue deleted file mode 100644 index 4f6f389..0000000 --- a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta3/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/flowcontrol/v1beta3 - -package v1beta3 - -#GroupName: "flowcontrol.apiserver.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta3/types_go_gen.cue b/cue.mod/gen/k8s.io/api/flowcontrol/v1beta3/types_go_gen.cue deleted file mode 100644 index ebf79d2..0000000 --- a/cue.mod/gen/k8s.io/api/flowcontrol/v1beta3/types_go_gen.cue +++ /dev/null @@ -1,638 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/flowcontrol/v1beta3 - -package v1beta3 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -#APIGroupAll: "*" -#ResourceAll: "*" -#VerbAll: "*" -#NonResourceAll: "*" -#NameAll: "*" -#NamespaceEvery: "*" - -#PriorityLevelConfigurationNameExempt: "exempt" -#PriorityLevelConfigurationNameCatchAll: "catch-all" -#FlowSchemaNameExempt: "exempt" -#FlowSchemaNameCatchAll: "catch-all" - -#FlowSchemaConditionDangling: "Dangling" -#PriorityLevelConfigurationConditionConcurrencyShared: "ConcurrencyShared" - -#FlowSchemaMaxMatchingPrecedence: int32 & 10000 - -#ResponseHeaderMatchedPriorityLevelConfigurationUID: "X-Kubernetes-PF-PriorityLevel-UID" -#ResponseHeaderMatchedFlowSchemaUID: "X-Kubernetes-PF-FlowSchema-UID" - -// AutoUpdateAnnotationKey is the name of an annotation that enables -// automatic update of the spec of the bootstrap configuration -// object(s), if set to 'true'. -// -// On a fresh install, all bootstrap configuration objects will have auto -// update enabled with the following annotation key: -// apf.kubernetes.io/autoupdate-spec: 'true' -// -// The kube-apiserver periodically checks the bootstrap configuration -// objects on the cluster and applies updates if necessary. -// -// kube-apiserver enforces an 'always auto-update' policy for the -// mandatory configuration object(s). This implies: -// - the auto-update annotation key is added with a value of 'true' -// if it is missing. -// - the auto-update annotation key is set to 'true' if its current value -// is a boolean false or has an invalid boolean representation -// (if the cluster operator sets it to 'false' it will be stomped) -// - any changes to the spec made by the cluster operator will be -// stomped, except for changes to the `nominalConcurrencyShares` -// and `lendablePercent` fields of the PriorityLevelConfiguration -// named "exempt". -// -// The kube-apiserver will apply updates on the suggested configuration if: -// - the cluster operator has enabled auto-update by setting the annotation -// (apf.kubernetes.io/autoupdate-spec: 'true') or -// - the annotation key is missing but the generation is 1 -// -// If the suggested configuration object is missing the annotation key, -// kube-apiserver will update the annotation appropriately: -// - it is set to 'true' if generation of the object is '1' which usually -// indicates that the spec of the object has not been changed. -// - it is set to 'false' if generation of the object is greater than 1. -// -// The goal is to enable the kube-apiserver to apply update on suggested -// configuration objects installed by previous releases but not overwrite -// changes made by the cluster operators. -// Note that this distinction is imperfectly detected: in the case where an -// operator deletes a suggested configuration object and later creates it -// but with a variant spec and then does no updates of the object -// (generation is 1), the technique outlined above will incorrectly -// determine that the object should be auto-updated. -#AutoUpdateAnnotationKey: "apf.kubernetes.io/autoupdate-spec" - -// FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with -// similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". -#FlowSchema: { - metav1.#TypeMeta - - // `metadata` is the standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // `spec` is the specification of the desired behavior of a FlowSchema. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #FlowSchemaSpec @go(Spec) @protobuf(2,bytes,opt) - - // `status` is the current status of a FlowSchema. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #FlowSchemaStatus @go(Status) @protobuf(3,bytes,opt) -} - -// FlowSchemaList is a list of FlowSchema objects. -#FlowSchemaList: { - metav1.#TypeMeta - - // `metadata` is the standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // `items` is a list of FlowSchemas. - items: [...#FlowSchema] @go(Items,[]FlowSchema) @protobuf(2,bytes,rep) -} - -// FlowSchemaSpec describes how the FlowSchema's specification looks like. -#FlowSchemaSpec: { - // `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot - // be resolved, the FlowSchema will be ignored and marked as invalid in its status. - // Required. - priorityLevelConfiguration: #PriorityLevelConfigurationReference @go(PriorityLevelConfiguration) @protobuf(1,bytes,opt) - - // `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen - // FlowSchema is among those with the numerically lowest (which we take to be logically highest) - // MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. - // Note that if the precedence is not specified, it will be set to 1000 as default. - // +optional - matchingPrecedence: int32 @go(MatchingPrecedence) @protobuf(2,varint,opt) - - // `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. - // `nil` specifies that the distinguisher is disabled and thus will always be the empty string. - // +optional - distinguisherMethod?: null | #FlowDistinguisherMethod @go(DistinguisherMethod,*FlowDistinguisherMethod) @protobuf(3,bytes,opt) - - // `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if - // at least one member of rules matches the request. - // if it is an empty slice, there will be no requests matching the FlowSchema. - // +listType=atomic - // +optional - rules?: [...#PolicyRulesWithSubjects] @go(Rules,[]PolicyRulesWithSubjects) @protobuf(4,bytes,rep) -} - -// FlowDistinguisherMethodType is the type of flow distinguisher method -#FlowDistinguisherMethodType: string // #enumFlowDistinguisherMethodType - -#enumFlowDistinguisherMethodType: - #FlowDistinguisherMethodByUserType | - #FlowDistinguisherMethodByNamespaceType - -// FlowDistinguisherMethodByUserType specifies that the flow distinguisher is the username in the request. -// This type is used to provide some insulation between users. -#FlowDistinguisherMethodByUserType: #FlowDistinguisherMethodType & "ByUser" - -// FlowDistinguisherMethodByNamespaceType specifies that the flow distinguisher is the namespace of the -// object that the request acts upon. If the object is not namespaced, or if the request is a non-resource -// request, then the distinguisher will be the empty string. An example usage of this type is to provide -// some insulation between tenants in a situation where there are multiple tenants and each namespace -// is dedicated to a tenant. -#FlowDistinguisherMethodByNamespaceType: #FlowDistinguisherMethodType & "ByNamespace" - -// FlowDistinguisherMethod specifies the method of a flow distinguisher. -#FlowDistinguisherMethod: { - // `type` is the type of flow distinguisher method - // The supported types are "ByUser" and "ByNamespace". - // Required. - type: #FlowDistinguisherMethodType @go(Type) @protobuf(1,bytes,opt) -} - -// PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. -#PriorityLevelConfigurationReference: { - // `name` is the name of the priority level configuration being referenced - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject -// making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches -// a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member -// of resourceRules or nonResourceRules matches the request. -#PolicyRulesWithSubjects: { - // subjects is the list of normal user, serviceaccount, or group that this rule cares about. - // There must be at least one member in this slice. - // A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. - // +listType=atomic - // Required. - subjects: [...#Subject] @go(Subjects,[]Subject) @protobuf(1,bytes,rep) - - // `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the - // target resource. - // At least one of `resourceRules` and `nonResourceRules` has to be non-empty. - // +listType=atomic - // +optional - resourceRules?: [...#ResourcePolicyRule] @go(ResourceRules,[]ResourcePolicyRule) @protobuf(2,bytes,opt) - - // `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb - // and the target non-resource URL. - // +listType=atomic - // +optional - nonResourceRules?: [...#NonResourcePolicyRule] @go(NonResourceRules,[]NonResourcePolicyRule) @protobuf(3,bytes,opt) -} - -// Subject matches the originator of a request, as identified by the request authentication system. There are three -// ways of matching an originator; by user, group, or service account. -// +union -#Subject: { - // `kind` indicates which one of the other fields is non-empty. - // Required - // +unionDiscriminator - kind: #SubjectKind @go(Kind) @protobuf(1,bytes,opt) - - // `user` matches based on username. - // +optional - user?: null | #UserSubject @go(User,*UserSubject) @protobuf(2,bytes,opt) - - // `group` matches based on user group name. - // +optional - group?: null | #GroupSubject @go(Group,*GroupSubject) @protobuf(3,bytes,opt) - - // `serviceAccount` matches ServiceAccounts. - // +optional - serviceAccount?: null | #ServiceAccountSubject @go(ServiceAccount,*ServiceAccountSubject) @protobuf(4,bytes,opt) -} - -// SubjectKind is the kind of subject. -#SubjectKind: string // #enumSubjectKind - -#enumSubjectKind: - #SubjectKindUser | - #SubjectKindGroup | - #SubjectKindServiceAccount - -#SubjectKindUser: #SubjectKind & "User" -#SubjectKindGroup: #SubjectKind & "Group" -#SubjectKindServiceAccount: #SubjectKind & "ServiceAccount" - -// UserSubject holds detailed information for user-kind subject. -#UserSubject: { - // `name` is the username that matches, or "*" to match all usernames. - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// GroupSubject holds detailed information for group-kind subject. -#GroupSubject: { - // name is the user group that matches, or "*" to match all user groups. - // See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some - // well-known group names. - // Required. - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// ServiceAccountSubject holds detailed information for service-account-kind subject. -#ServiceAccountSubject: { - // `namespace` is the namespace of matching ServiceAccount objects. - // Required. - namespace: string @go(Namespace) @protobuf(1,bytes,opt) - - // `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. - // Required. - name: string @go(Name) @protobuf(2,bytes,opt) -} - -// ResourcePolicyRule is a predicate that matches some resource -// requests, testing the request's verb and the target resource. A -// ResourcePolicyRule matches a resource request if and only if: (a) -// at least one member of verbs matches the request, (b) at least one -// member of apiGroups matches the request, (c) at least one member of -// resources matches the request, and (d) either (d1) the request does -// not specify a namespace (i.e., `Namespace==""`) and clusterScope is -// true or (d2) the request specifies a namespace and least one member -// of namespaces matches the request's namespace. -#ResourcePolicyRule: { - // `verbs` is a list of matching verbs and may not be empty. - // "*" matches all verbs and, if present, must be the only entry. - // +listType=set - // Required. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // `apiGroups` is a list of matching API groups and may not be empty. - // "*" matches all API groups and, if present, must be the only entry. - // +listType=set - // Required. - apiGroups: [...string] @go(APIGroups,[]string) @protobuf(2,bytes,rep) - - // `resources` is a list of matching resources (i.e., lowercase - // and plural) with, if desired, subresource. For example, [ - // "services", "nodes/status" ]. This list may not be empty. - // "*" matches all resources and, if present, must be the only entry. - // Required. - // +listType=set - resources: [...string] @go(Resources,[]string) @protobuf(3,bytes,rep) - - // `clusterScope` indicates whether to match requests that do not - // specify a namespace (which happens either because the resource - // is not namespaced or the request targets all namespaces). - // If this field is omitted or false then the `namespaces` field - // must contain a non-empty list. - // +optional - clusterScope?: bool @go(ClusterScope) @protobuf(4,varint,opt) - - // `namespaces` is a list of target namespaces that restricts - // matches. A request that specifies a target namespace matches - // only if either (a) this list contains that target namespace or - // (b) this list contains "*". Note that "*" matches any - // specified namespace but does not match a request that _does - // not specify_ a namespace (see the `clusterScope` field for - // that). - // This list may be empty, but only if `clusterScope` is true. - // +optional - // +listType=set - namespaces: [...string] @go(Namespaces,[]string) @protobuf(5,bytes,rep) -} - -// NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the -// target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member -// of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. -#NonResourcePolicyRule: { - // `verbs` is a list of matching verbs and may not be empty. - // "*" matches all verbs. If it is present, it must be the only entry. - // +listType=set - // Required. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. - // For example: - // - "/healthz" is legal - // - "/hea*" is illegal - // - "/hea" is legal but matches nothing - // - "/hea/*" also matches nothing - // - "/healthz/*" matches all per-component health checks. - // "*" matches all non-resource urls. if it is present, it must be the only entry. - // +listType=set - // Required. - nonResourceURLs: [...string] @go(NonResourceURLs,[]string) @protobuf(6,bytes,rep) -} - -// FlowSchemaStatus represents the current state of a FlowSchema. -#FlowSchemaStatus: { - // `conditions` is a list of the current states of FlowSchema. - // +listType=map - // +listMapKey=type - // +patchMergeKey=type - // +patchStrategy=merge - // +optional - conditions?: [...#FlowSchemaCondition] @go(Conditions,[]FlowSchemaCondition) @protobuf(1,bytes,rep) -} - -// FlowSchemaCondition describes conditions for a FlowSchema. -#FlowSchemaCondition: { - // `type` is the type of the condition. - // Required. - type?: #FlowSchemaConditionType @go(Type) @protobuf(1,bytes,opt) - - // `status` is the status of the condition. - // Can be True, False, Unknown. - // Required. - status?: #ConditionStatus @go(Status) @protobuf(2,bytes,opt) - - // `lastTransitionTime` is the last time the condition transitioned from one status to another. - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // `message` is a human-readable message indicating details about last transition. - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// FlowSchemaConditionType is a valid value for FlowSchemaStatusCondition.Type -#FlowSchemaConditionType: string - -// PriorityLevelConfiguration represents the configuration of a priority level. -#PriorityLevelConfiguration: { - metav1.#TypeMeta - - // `metadata` is the standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // `spec` is the specification of the desired behavior of a "request-priority". - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #PriorityLevelConfigurationSpec @go(Spec) @protobuf(2,bytes,opt) - - // `status` is the current status of a "request-priority". - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #PriorityLevelConfigurationStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. -#PriorityLevelConfigurationList: { - metav1.#TypeMeta - - // `metadata` is the standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // `items` is a list of request-priorities. - items: [...#PriorityLevelConfiguration] @go(Items,[]PriorityLevelConfiguration) @protobuf(2,bytes,rep) -} - -// PriorityLevelConfigurationSpec specifies the configuration of a priority level. -// +union -#PriorityLevelConfigurationSpec: { - // `type` indicates whether this priority level is subject to - // limitation on request execution. A value of `"Exempt"` means - // that requests of this priority level are not subject to a limit - // (and thus are never queued) and do not detract from the - // capacity made available to other priority levels. A value of - // `"Limited"` means that (a) requests of this priority level - // _are_ subject to limits and (b) some of the server's limited - // capacity is made available exclusively to this priority level. - // Required. - // +unionDiscriminator - type: #PriorityLevelEnablement @go(Type) @protobuf(1,bytes,opt) - - // `limited` specifies how requests are handled for a Limited priority level. - // This field must be non-empty if and only if `type` is `"Limited"`. - // +optional - limited?: null | #LimitedPriorityLevelConfiguration @go(Limited,*LimitedPriorityLevelConfiguration) @protobuf(2,bytes,opt) - - // `exempt` specifies how requests are handled for an exempt priority level. - // This field MUST be empty if `type` is `"Limited"`. - // This field MAY be non-empty if `type` is `"Exempt"`. - // If empty and `type` is `"Exempt"` then the default values - // for `ExemptPriorityLevelConfiguration` apply. - // +optional - exempt?: null | #ExemptPriorityLevelConfiguration @go(Exempt,*ExemptPriorityLevelConfiguration) @protobuf(3,bytes,opt) -} - -// PriorityLevelEnablement indicates whether limits on execution are enabled for the priority level -#PriorityLevelEnablement: string // #enumPriorityLevelEnablement - -#enumPriorityLevelEnablement: - #PriorityLevelEnablementExempt | - #PriorityLevelEnablementLimited - -// PriorityLevelEnablementExempt means that requests are not subject to limits -#PriorityLevelEnablementExempt: #PriorityLevelEnablement & "Exempt" - -// PriorityLevelEnablementLimited means that requests are subject to limits -#PriorityLevelEnablementLimited: #PriorityLevelEnablement & "Limited" - -// LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. -// It addresses two issues: -// - How are requests for this priority level limited? -// - What should be done with requests that exceed the limit? -#LimitedPriorityLevelConfiguration: { - // `nominalConcurrencyShares` (NCS) contributes to the computation of the - // NominalConcurrencyLimit (NominalCL) of this level. - // This is the number of execution seats available at this priority level. - // This is used both for requests dispatched from this priority level - // as well as requests dispatched from other priority levels - // borrowing seats from this level. - // The server's concurrency limit (ServerCL) is divided among the - // Limited priority levels in proportion to their NCS values: - // - // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) - // sum_ncs = sum[priority level k] NCS(k) - // - // Bigger numbers mean a larger nominal concurrency limit, - // at the expense of every other priority level. - // This field has a default value of 30. - // +optional - nominalConcurrencyShares: int32 @go(NominalConcurrencyShares) @protobuf(1,varint,opt) - - // `limitResponse` indicates what to do with requests that can not be executed right now - limitResponse?: #LimitResponse @go(LimitResponse) @protobuf(2,bytes,opt) - - // `lendablePercent` prescribes the fraction of the level's NominalCL that - // can be borrowed by other priority levels. The value of this - // field must be between 0 and 100, inclusive, and it defaults to 0. - // The number of seats that other levels can borrow from this level, known - // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - // - // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - // - // +optional - lendablePercent?: null | int32 @go(LendablePercent,*int32) @protobuf(3,varint,opt) - - // `borrowingLimitPercent`, if present, configures a limit on how many - // seats this priority level can borrow from other priority levels. - // The limit is known as this level's BorrowingConcurrencyLimit - // (BorrowingCL) and is a limit on the total number of seats that this - // level may borrow at any one time. - // This field holds the ratio of that limit to the level's nominal - // concurrency limit. When this field is non-nil, it must hold a - // non-negative integer and the limit is calculated as follows. - // - // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) - // - // The value of this field can be more than 100, implying that this - // priority level can borrow a number of seats that is greater than - // its own nominal concurrency limit (NominalCL). - // When this field is left `nil`, the limit is effectively infinite. - // +optional - borrowingLimitPercent?: null | int32 @go(BorrowingLimitPercent,*int32) @protobuf(4,varint,opt) -} - -// ExemptPriorityLevelConfiguration describes the configurable aspects -// of the handling of exempt requests. -// In the mandatory exempt configuration object the values in the fields -// here can be modified by authorized users, unlike the rest of the `spec`. -#ExemptPriorityLevelConfiguration: { - // `nominalConcurrencyShares` (NCS) contributes to the computation of the - // NominalConcurrencyLimit (NominalCL) of this level. - // This is the number of execution seats nominally reserved for this priority level. - // This DOES NOT limit the dispatching from this priority level - // but affects the other priority levels through the borrowing mechanism. - // The server's concurrency limit (ServerCL) is divided among all the - // priority levels in proportion to their NCS values: - // - // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) - // sum_ncs = sum[priority level k] NCS(k) - // - // Bigger numbers mean a larger nominal concurrency limit, - // at the expense of every other priority level. - // This field has a default value of zero. - // +optional - nominalConcurrencyShares?: null | int32 @go(NominalConcurrencyShares,*int32) @protobuf(1,varint,opt) - - // `lendablePercent` prescribes the fraction of the level's NominalCL that - // can be borrowed by other priority levels. This value of this - // field must be between 0 and 100, inclusive, and it defaults to 0. - // The number of seats that other levels can borrow from this level, known - // as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - // - // LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - // - // +optional - lendablePercent?: null | int32 @go(LendablePercent,*int32) @protobuf(2,varint,opt) -} - -// LimitResponse defines how to handle requests that can not be executed right now. -// +union -#LimitResponse: { - // `type` is "Queue" or "Reject". - // "Queue" means that requests that can not be executed upon arrival - // are held in a queue until they can be executed or a queuing limit - // is reached. - // "Reject" means that requests that can not be executed upon arrival - // are rejected. - // Required. - // +unionDiscriminator - type: #LimitResponseType @go(Type) @protobuf(1,bytes,opt) - - // `queuing` holds the configuration parameters for queuing. - // This field may be non-empty only if `type` is `"Queue"`. - // +optional - queuing?: null | #QueuingConfiguration @go(Queuing,*QueuingConfiguration) @protobuf(2,bytes,opt) -} - -// LimitResponseType identifies how a Limited priority level handles a request that can not be executed right now -#LimitResponseType: string // #enumLimitResponseType - -#enumLimitResponseType: - #LimitResponseTypeQueue | - #LimitResponseTypeReject - -// LimitResponseTypeQueue means that requests that can not be executed right now are queued until they can be executed or a queuing limit is hit -#LimitResponseTypeQueue: #LimitResponseType & "Queue" - -// LimitResponseTypeReject means that requests that can not be executed right now are rejected -#LimitResponseTypeReject: #LimitResponseType & "Reject" - -// QueuingConfiguration holds the configuration parameters for queuing -#QueuingConfiguration: { - // `queues` is the number of queues for this priority level. The - // queues exist independently at each apiserver. The value must be - // positive. Setting it to 1 effectively precludes - // shufflesharding and thus makes the distinguisher method of - // associated flow schemas irrelevant. This field has a default - // value of 64. - // +optional - queues: int32 @go(Queues) @protobuf(1,varint,opt) - - // `handSize` is a small positive number that configures the - // shuffle sharding of requests into queues. When enqueuing a request - // at this priority level the request's flow identifier (a string - // pair) is hashed and the hash value is used to shuffle the list - // of queues and deal a hand of the size specified here. The - // request is put into one of the shortest queues in that hand. - // `handSize` must be no larger than `queues`, and should be - // significantly smaller (so that a few heavy flows do not - // saturate most of the queues). See the user-facing - // documentation for more extensive guidance on setting this - // field. This field has a default value of 8. - // +optional - handSize: int32 @go(HandSize) @protobuf(2,varint,opt) - - // `queueLengthLimit` is the maximum number of requests allowed to - // be waiting in a given queue of this priority level at a time; - // excess requests are rejected. This value must be positive. If - // not specified, it will be defaulted to 50. - // +optional - queueLengthLimit: int32 @go(QueueLengthLimit) @protobuf(3,varint,opt) -} - -// PriorityLevelConfigurationConditionType is a valid value for PriorityLevelConfigurationStatusCondition.Type -#PriorityLevelConfigurationConditionType: string - -// PriorityLevelConfigurationStatus represents the current state of a "request-priority". -#PriorityLevelConfigurationStatus: { - // `conditions` is the current state of "request-priority". - // +listType=map - // +listMapKey=type - // +patchMergeKey=type - // +patchStrategy=merge - // +optional - conditions?: [...#PriorityLevelConfigurationCondition] @go(Conditions,[]PriorityLevelConfigurationCondition) @protobuf(1,bytes,rep) -} - -// PriorityLevelConfigurationCondition defines the condition of priority level. -#PriorityLevelConfigurationCondition: { - // `type` is the type of the condition. - // Required. - type?: #PriorityLevelConfigurationConditionType @go(Type) @protobuf(1,bytes,opt) - - // `status` is the status of the condition. - // Can be True, False, Unknown. - // Required. - status?: #ConditionStatus @go(Status) @protobuf(2,bytes,opt) - - // `lastTransitionTime` is the last time the condition transitioned from one status to another. - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // `message` is a human-readable message indicating details about last transition. - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// ConditionStatus is the status of the condition. -#ConditionStatus: string // #enumConditionStatus - -#enumConditionStatus: - #ConditionTrue | - #ConditionFalse | - #ConditionUnknown - -#ConditionTrue: #ConditionStatus & "True" -#ConditionFalse: #ConditionStatus & "False" -#ConditionUnknown: #ConditionStatus & "Unknown" diff --git a/cue.mod/gen/k8s.io/api/imagepolicy/v1alpha1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/imagepolicy/v1alpha1/register_go_gen.cue deleted file mode 100644 index ff56933..0000000 --- a/cue.mod/gen/k8s.io/api/imagepolicy/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/imagepolicy/v1alpha1 - -package v1alpha1 - -#GroupName: "imagepolicy.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/imagepolicy/v1alpha1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/imagepolicy/v1alpha1/types_go_gen.cue deleted file mode 100644 index f34bb7b..0000000 --- a/cue.mod/gen/k8s.io/api/imagepolicy/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/imagepolicy/v1alpha1 - -package v1alpha1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// ImageReview checks if the set of images in a pod are allowed. -#ImageReview: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec holds information about the pod being evaluated - spec: #ImageReviewSpec @go(Spec) @protobuf(2,bytes,opt) - - // Status is filled in by the backend and indicates whether the pod should be allowed. - // +optional - status?: #ImageReviewStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ImageReviewSpec is a description of the pod creation request. -#ImageReviewSpec: { - // Containers is a list of a subset of the information in each container of the Pod being created. - // +optional - containers?: [...#ImageReviewContainerSpec] @go(Containers,[]ImageReviewContainerSpec) @protobuf(1,bytes,rep) - - // Annotations is a list of key-value pairs extracted from the Pod's annotations. - // It only includes keys which match the pattern `*.image-policy.k8s.io/*`. - // It is up to each webhook backend to determine how to interpret these annotations, if at all. - // +optional - annotations?: {[string]: string} @go(Annotations,map[string]string) @protobuf(2,bytes,rep) - - // Namespace is the namespace the pod is being created in. - // +optional - namespace?: string @go(Namespace) @protobuf(3,bytes,opt) -} - -// ImageReviewContainerSpec is a description of a container within the pod creation request. -#ImageReviewContainerSpec: { - // This can be in the form image:tag or image@SHA:012345679abcdef. - // +optional - image?: string @go(Image) @protobuf(1,bytes,opt) -} - -// ImageReviewStatus is the result of the review for the pod creation request. -#ImageReviewStatus: { - // Allowed indicates that all images were allowed to be run. - allowed: bool @go(Allowed) @protobuf(1,varint,opt) - - // Reason should be empty unless Allowed is false in which case it - // may contain a short description of what is wrong. Kubernetes - // may truncate excessively long errors when displaying to the user. - // +optional - reason?: string @go(Reason) @protobuf(2,bytes,opt) - - // AuditAnnotations will be added to the attributes object of the - // admission controller request using 'AddAnnotation'. The keys should - // be prefix-less (i.e., the admission controller will add an - // appropriate prefix). - // +optional - auditAnnotations?: {[string]: string} @go(AuditAnnotations,map[string]string) @protobuf(3,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/networking/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/networking/v1/register_go_gen.cue deleted file mode 100644 index f104262..0000000 --- a/cue.mod/gen/k8s.io/api/networking/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/networking/v1 - -package v1 - -#GroupName: "networking.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/networking/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/networking/v1/types_go_gen.cue deleted file mode 100644 index bbdc7f2..0000000 --- a/cue.mod/gen/k8s.io/api/networking/v1/types_go_gen.cue +++ /dev/null @@ -1,588 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/networking/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/util/intstr" -) - -// NetworkPolicy describes what network traffic is allowed for a set of Pods -#NetworkPolicy: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec represents the specification of the desired behavior for this NetworkPolicy. - // +optional - spec?: #NetworkPolicySpec @go(Spec) @protobuf(2,bytes,opt) -} - -// PolicyType string describes the NetworkPolicy type -// This type is beta-level in 1.8 -// +enum -#PolicyType: string // #enumPolicyType - -#enumPolicyType: - #PolicyTypeIngress | - #PolicyTypeEgress - -// PolicyTypeIngress is a NetworkPolicy that affects ingress traffic on selected pods -#PolicyTypeIngress: #PolicyType & "Ingress" - -// PolicyTypeEgress is a NetworkPolicy that affects egress traffic on selected pods -#PolicyTypeEgress: #PolicyType & "Egress" - -// NetworkPolicySpec provides the specification of a NetworkPolicy -#NetworkPolicySpec: { - // podSelector selects the pods to which this NetworkPolicy object applies. - // The array of ingress rules is applied to any pods selected by this field. - // Multiple network policies can select the same set of pods. In this case, - // the ingress rules for each are combined additively. - // This field is NOT optional and follows standard label selector semantics. - // An empty podSelector matches all pods in this namespace. - podSelector: metav1.#LabelSelector @go(PodSelector) @protobuf(1,bytes,opt) - - // ingress is a list of ingress rules to be applied to the selected pods. - // Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod - // (and cluster policy otherwise allows the traffic), OR if the traffic source is - // the pod's local node, OR if the traffic matches at least one ingress rule - // across all of the NetworkPolicy objects whose podSelector matches the pod. If - // this field is empty then this NetworkPolicy does not allow any traffic (and serves - // solely to ensure that the pods it selects are isolated by default) - // +optional - ingress?: [...#NetworkPolicyIngressRule] @go(Ingress,[]NetworkPolicyIngressRule) @protobuf(2,bytes,rep) - - // egress is a list of egress rules to be applied to the selected pods. Outgoing traffic - // is allowed if there are no NetworkPolicies selecting the pod (and cluster policy - // otherwise allows the traffic), OR if the traffic matches at least one egress rule - // across all of the NetworkPolicy objects whose podSelector matches the pod. If - // this field is empty then this NetworkPolicy limits all outgoing traffic (and serves - // solely to ensure that the pods it selects are isolated by default). - // This field is beta-level in 1.8 - // +optional - egress?: [...#NetworkPolicyEgressRule] @go(Egress,[]NetworkPolicyEgressRule) @protobuf(3,bytes,rep) - - // policyTypes is a list of rule types that the NetworkPolicy relates to. - // Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. - // If this field is not specified, it will default based on the existence of ingress or egress rules; - // policies that contain an egress section are assumed to affect egress, and all policies - // (whether or not they contain an ingress section) are assumed to affect ingress. - // If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. - // Likewise, if you want to write a policy that specifies that no egress is allowed, - // you must specify a policyTypes value that include "Egress" (since such a policy would not include - // an egress section and would otherwise default to just [ "Ingress" ]). - // This field is beta-level in 1.8 - // +optional - policyTypes?: [...#PolicyType] @go(PolicyTypes,[]PolicyType) @protobuf(4,bytes,rep,casttype=PolicyType) -} - -// NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods -// matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. -#NetworkPolicyIngressRule: { - // ports is a list of ports which should be made accessible on the pods selected for - // this rule. Each item in this list is combined using a logical OR. If this field is - // empty or missing, this rule matches all ports (traffic not restricted by port). - // If this field is present and contains at least one item, then this rule allows - // traffic only if the traffic matches at least one port in the list. - // +optional - ports?: [...#NetworkPolicyPort] @go(Ports,[]NetworkPolicyPort) @protobuf(1,bytes,rep) - - // from is a list of sources which should be able to access the pods selected for this rule. - // Items in this list are combined using a logical OR operation. If this field is - // empty or missing, this rule matches all sources (traffic not restricted by - // source). If this field is present and contains at least one item, this rule - // allows traffic only if the traffic matches at least one item in the from list. - // +optional - from?: [...#NetworkPolicyPeer] @go(From,[]NetworkPolicyPeer) @protobuf(2,bytes,rep) -} - -// NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods -// matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. -// This type is beta-level in 1.8 -#NetworkPolicyEgressRule: { - // ports is a list of destination ports for outgoing traffic. - // Each item in this list is combined using a logical OR. If this field is - // empty or missing, this rule matches all ports (traffic not restricted by port). - // If this field is present and contains at least one item, then this rule allows - // traffic only if the traffic matches at least one port in the list. - // +optional - ports?: [...#NetworkPolicyPort] @go(Ports,[]NetworkPolicyPort) @protobuf(1,bytes,rep) - - // to is a list of destinations for outgoing traffic of pods selected for this rule. - // Items in this list are combined using a logical OR operation. If this field is - // empty or missing, this rule matches all destinations (traffic not restricted by - // destination). If this field is present and contains at least one item, this rule - // allows traffic only if the traffic matches at least one item in the to list. - // +optional - to?: [...#NetworkPolicyPeer] @go(To,[]NetworkPolicyPeer) @protobuf(2,bytes,rep) -} - -// NetworkPolicyPort describes a port to allow traffic on -#NetworkPolicyPort: { - // protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. - // If not specified, this field defaults to TCP. - // +optional - protocol?: null | v1.#Protocol @go(Protocol,*v1.Protocol) @protobuf(1,bytes,opt,casttype=k8s.io/api/core/v1.Protocol) - - // port represents the port on the given protocol. This can either be a numerical or named - // port on a pod. If this field is not provided, this matches all port names and - // numbers. - // If present, only traffic on the specified protocol AND port will be matched. - // +optional - port?: null | intstr.#IntOrString @go(Port,*intstr.IntOrString) @protobuf(2,bytes,opt) - - // endPort indicates that the range of ports from port to endPort if set, inclusive, - // should be allowed by the policy. This field cannot be defined if the port field - // is not defined or if the port field is defined as a named (string) port. - // The endPort must be equal or greater than port. - // +optional - endPort?: null | int32 @go(EndPort,*int32) @protobuf(3,bytes,opt) -} - -// IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed -// to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs -// that should not be included within this rule. -#IPBlock: { - // cidr is a string representing the IPBlock - // Valid examples are "192.168.1.0/24" or "2001:db8::/64" - cidr: string @go(CIDR) @protobuf(1,bytes) - - // except is a slice of CIDRs that should not be included within an IPBlock - // Valid examples are "192.168.1.0/24" or "2001:db8::/64" - // Except values will be rejected if they are outside the cidr range - // +optional - except?: [...string] @go(Except,[]string) @protobuf(2,bytes,rep) -} - -// NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of -// fields are allowed -#NetworkPolicyPeer: { - // podSelector is a label selector which selects pods. This field follows standard label - // selector semantics; if present but empty, it selects all pods. - // - // If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects - // the pods matching podSelector in the Namespaces selected by NamespaceSelector. - // Otherwise it selects the pods matching podSelector in the policy's own namespace. - // +optional - podSelector?: null | metav1.#LabelSelector @go(PodSelector,*metav1.LabelSelector) @protobuf(1,bytes,opt) - - // namespaceSelector selects namespaces using cluster-scoped labels. This field follows - // standard label selector semantics; if present but empty, it selects all namespaces. - // - // If podSelector is also set, then the NetworkPolicyPeer as a whole selects - // the pods matching podSelector in the namespaces selected by namespaceSelector. - // Otherwise it selects all pods in the namespaces selected by namespaceSelector. - // +optional - namespaceSelector?: null | metav1.#LabelSelector @go(NamespaceSelector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // ipBlock defines policy on a particular IPBlock. If this field is set then - // neither of the other fields can be. - // +optional - ipBlock?: null | #IPBlock @go(IPBlock,*IPBlock) @protobuf(3,bytes,rep) -} - -// NetworkPolicyList is a list of NetworkPolicy objects. -#NetworkPolicyList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is a list of schema objects. - items: [...#NetworkPolicy] @go(Items,[]NetworkPolicy) @protobuf(2,bytes,rep) -} - -// Ingress is a collection of rules that allow inbound connections to reach the -// endpoints defined by a backend. An Ingress can be configured to give services -// externally-reachable urls, load balance traffic, terminate SSL, offer name -// based virtual hosting etc. -#Ingress: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec is the desired state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #IngressSpec @go(Spec) @protobuf(2,bytes,opt) - - // status is the current state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #IngressStatus @go(Status) @protobuf(3,bytes,opt) -} - -// IngressList is a collection of Ingress. -#IngressList: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of Ingress. - items: [...#Ingress] @go(Items,[]Ingress) @protobuf(2,bytes,rep) -} - -// IngressSpec describes the Ingress the user wishes to exist. -#IngressSpec: { - // ingressClassName is the name of an IngressClass cluster resource. Ingress - // controller implementations use this field to know whether they should be - // serving this Ingress resource, by a transitive connection - // (controller -> IngressClass -> Ingress resource). Although the - // `kubernetes.io/ingress.class` annotation (simple constant name) was never - // formally defined, it was widely supported by Ingress controllers to create - // a direct binding between Ingress controller and Ingress resources. Newly - // created Ingress resources should prefer using the field. However, even - // though the annotation is officially deprecated, for backwards compatibility - // reasons, ingress controllers should still honor that annotation if present. - // +optional - ingressClassName?: null | string @go(IngressClassName,*string) @protobuf(4,bytes,opt) - - // defaultBackend is the backend that should handle requests that don't - // match any rule. If Rules are not specified, DefaultBackend must be specified. - // If DefaultBackend is not set, the handling of requests that do not match any - // of the rules will be up to the Ingress controller. - // +optional - defaultBackend?: null | #IngressBackend @go(DefaultBackend,*IngressBackend) @protobuf(1,bytes,opt) - - // tls represents the TLS configuration. Currently the Ingress only supports a - // single TLS port, 443. If multiple members of this list specify different hosts, - // they will be multiplexed on the same port according to the hostname specified - // through the SNI TLS extension, if the ingress controller fulfilling the - // ingress supports SNI. - // +listType=atomic - // +optional - tls?: [...#IngressTLS] @go(TLS,[]IngressTLS) @protobuf(2,bytes,rep) - - // rules is a list of host rules used to configure the Ingress. If unspecified, - // or no rule matches, all traffic is sent to the default backend. - // +listType=atomic - // +optional - rules?: [...#IngressRule] @go(Rules,[]IngressRule) @protobuf(3,bytes,rep) -} - -// IngressTLS describes the transport layer security associated with an ingress. -#IngressTLS: { - // hosts is a list of hosts included in the TLS certificate. The values in - // this list must match the name/s used in the tlsSecret. Defaults to the - // wildcard host setting for the loadbalancer controller fulfilling this - // Ingress, if left unspecified. - // +listType=atomic - // +optional - hosts?: [...string] @go(Hosts,[]string) @protobuf(1,bytes,rep) - - // secretName is the name of the secret used to terminate TLS traffic on - // port 443. Field is left optional to allow TLS routing based on SNI - // hostname alone. If the SNI host in a listener conflicts with the "Host" - // header field used by an IngressRule, the SNI host is used for termination - // and value of the "Host" header is used for routing. - // +optional - secretName?: string @go(SecretName) @protobuf(2,bytes,opt) -} - -// IngressStatus describe the current state of the Ingress. -#IngressStatus: { - // loadBalancer contains the current status of the load-balancer. - // +optional - loadBalancer?: #IngressLoadBalancerStatus @go(LoadBalancer) @protobuf(1,bytes,opt) -} - -// IngressLoadBalancerStatus represents the status of a load-balancer. -#IngressLoadBalancerStatus: { - // ingress is a list containing ingress points for the load-balancer. - // +optional - ingress?: [...#IngressLoadBalancerIngress] @go(Ingress,[]IngressLoadBalancerIngress) @protobuf(1,bytes,rep) -} - -// IngressLoadBalancerIngress represents the status of a load-balancer ingress point. -#IngressLoadBalancerIngress: { - // ip is set for load-balancer ingress points that are IP based. - // +optional - ip?: string @go(IP) @protobuf(1,bytes,opt) - - // hostname is set for load-balancer ingress points that are DNS based. - // +optional - hostname?: string @go(Hostname) @protobuf(2,bytes,opt) - - // ports provides information about the ports exposed by this LoadBalancer. - // +listType=atomic - // +optional - ports?: [...#IngressPortStatus] @go(Ports,[]IngressPortStatus) @protobuf(4,bytes,rep) -} - -// IngressPortStatus represents the error condition of a service port -#IngressPortStatus: { - // port is the port number of the ingress port. - port: int32 @go(Port) @protobuf(1,varint,opt) - - // protocol is the protocol of the ingress port. - // The supported values are: "TCP", "UDP", "SCTP" - protocol: v1.#Protocol @go(Protocol) @protobuf(2,bytes,opt,casttype=Protocol) - - // error is to record the problem with the service port - // The format of the error shall comply with the following rules: - // - built-in error values shall be specified in this file and those shall use - // CamelCase names - // - cloud provider specific error values must have names that comply with the - // format foo.example.com/CamelCase. - // --- - // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - // +optional - // +kubebuilder:validation:Required - // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` - // +kubebuilder:validation:MaxLength=316 - error?: null | string @go(Error,*string) @protobuf(3,bytes,opt) -} - -// IngressRule represents the rules mapping the paths under a specified host to -// the related backend services. Incoming requests are first evaluated for a host -// match, then routed to the backend associated with the matching IngressRuleValue. -#IngressRule: { - // host is the fully qualified domain name of a network host, as defined by RFC 3986. - // Note the following deviations from the "host" part of the - // URI as defined in RFC 3986: - // 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - // the IP in the Spec of the parent Ingress. - // 2. The `:` delimiter is not respected because ports are not allowed. - // Currently the port of an Ingress is implicitly :80 for http and - // :443 for https. - // Both these may change in the future. - // Incoming requests are matched against the host before the - // IngressRuleValue. If the host is unspecified, the Ingress routes all - // traffic based on the specified IngressRuleValue. - // - // host can be "precise" which is a domain name without the terminating dot of - // a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name - // prefixed with a single wildcard label (e.g. "*.foo.com"). - // The wildcard character '*' must appear by itself as the first DNS label and - // matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). - // Requests will be matched against the Host field in the following way: - // 1. If host is precise, the request matches this rule if the http host header is equal to Host. - // 2. If host is a wildcard, then the request matches this rule if the http host header - // is to equal to the suffix (removing the first label) of the wildcard rule. - // +optional - host?: string @go(Host) @protobuf(1,bytes,opt) - - #IngressRuleValue -} - -// IngressRuleValue represents a rule to apply against incoming requests. If the -// rule is satisfied, the request is routed to the specified backend. Currently -// mixing different types of rules in a single Ingress is disallowed, so exactly -// one of the following must be set. -#IngressRuleValue: { - // +optional - http?: null | #HTTPIngressRuleValue @go(HTTP,*HTTPIngressRuleValue) @protobuf(1,bytes,opt) -} - -// HTTPIngressRuleValue is a list of http selectors pointing to backends. -// In the example: http:///? -> backend where -// where parts of the url correspond to RFC 3986, this resource will be used -// to match against everything after the last '/' and before the first '?' -// or '#'. -#HTTPIngressRuleValue: { - // paths is a collection of paths that map requests to backends. - // +listType=atomic - paths: [...#HTTPIngressPath] @go(Paths,[]HTTPIngressPath) @protobuf(1,bytes,rep) -} - -// PathType represents the type of path referred to by a HTTPIngressPath. -// +enum -#PathType: string // #enumPathType - -#enumPathType: - #PathTypeExact | - #PathTypePrefix | - #PathTypeImplementationSpecific - -// PathTypeExact matches the URL path exactly and with case sensitivity. -#PathTypeExact: #PathType & "Exact" - -// PathTypePrefix matches based on a URL path prefix split by '/'. Matching -// is case sensitive and done on a path element by element basis. A path -// element refers to the list of labels in the path split by the '/' -// separator. A request is a match for path p if every p is an element-wise -// prefix of p of the request path. Note that if the last element of the -// path is a substring of the last element in request path, it is not a -// match (e.g. /foo/bar matches /foo/bar/baz, but does not match -// /foo/barbaz). If multiple matching paths exist in an Ingress spec, the -// longest matching path is given priority. -// Examples: -// - /foo/bar does not match requests to /foo/barbaz -// - /foo/bar matches request to /foo/bar and /foo/bar/baz -// - /foo and /foo/ both match requests to /foo and /foo/. If both paths are -// present in an Ingress spec, the longest matching path (/foo/) is given -// priority. -#PathTypePrefix: #PathType & "Prefix" - -// PathTypeImplementationSpecific matching is up to the IngressClass. -// Implementations can treat this as a separate PathType or treat it -// identically to Prefix or Exact path types. -#PathTypeImplementationSpecific: #PathType & "ImplementationSpecific" - -// HTTPIngressPath associates a path with a backend. Incoming urls matching the -// path are forwarded to the backend. -#HTTPIngressPath: { - // path is matched against the path of an incoming request. Currently it can - // contain characters disallowed from the conventional "path" part of a URL - // as defined by RFC 3986. Paths must begin with a '/' and must be present - // when using PathType with value "Exact" or "Prefix". - // +optional - path?: string @go(Path) @protobuf(1,bytes,opt) - - // pathType determines the interpretation of the path matching. PathType can - // be one of the following values: - // * Exact: Matches the URL path exactly. - // * Prefix: Matches based on a URL path prefix split by '/'. Matching is - // done on a path element by element basis. A path element refers is the - // list of labels in the path split by the '/' separator. A request is a - // match for path p if every p is an element-wise prefix of p of the - // request path. Note that if the last element of the path is a substring - // of the last element in request path, it is not a match (e.g. /foo/bar - // matches /foo/bar/baz, but does not match /foo/barbaz). - // * ImplementationSpecific: Interpretation of the Path matching is up to - // the IngressClass. Implementations can treat this as a separate PathType - // or treat it identically to Prefix or Exact path types. - // Implementations are required to support all path types. - pathType?: null | #PathType @go(PathType,*PathType) @protobuf(3,bytes,opt) - - // backend defines the referenced service endpoint to which the traffic - // will be forwarded to. - backend: #IngressBackend @go(Backend) @protobuf(2,bytes,opt) -} - -// IngressBackend describes all endpoints for a given service and port. -#IngressBackend: { - // service references a service as a backend. - // This is a mutually exclusive setting with "Resource". - // +optional - service?: null | #IngressServiceBackend @go(Service,*IngressServiceBackend) @protobuf(4,bytes,opt) - - // resource is an ObjectRef to another Kubernetes resource in the namespace - // of the Ingress object. If resource is specified, a service.Name and - // service.Port must not be specified. - // This is a mutually exclusive setting with "Service". - // +optional - resource?: null | v1.#TypedLocalObjectReference @go(Resource,*v1.TypedLocalObjectReference) @protobuf(3,bytes,opt) -} - -// IngressServiceBackend references a Kubernetes Service as a Backend. -#IngressServiceBackend: { - // name is the referenced service. The service must exist in - // the same namespace as the Ingress object. - name: string @go(Name) @protobuf(1,bytes,opt) - - // port of the referenced service. A port name or port number - // is required for a IngressServiceBackend. - port?: #ServiceBackendPort @go(Port) @protobuf(2,bytes,opt) -} - -// ServiceBackendPort is the service port being referenced. -#ServiceBackendPort: { - // name is the name of the port on the Service. - // This is a mutually exclusive setting with "Number". - // +optional - name?: string @go(Name) @protobuf(1,bytes,opt) - - // number is the numerical port number (e.g. 80) on the Service. - // This is a mutually exclusive setting with "Name". - // +optional - number?: int32 @go(Number) @protobuf(2,bytes,opt) -} - -// IngressClass represents the class of the Ingress, referenced by the Ingress -// Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be -// used to indicate that an IngressClass should be considered default. When a -// single IngressClass resource has this annotation set to true, new Ingress -// resources without a class specified will be assigned this default class. -#IngressClass: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec is the desired state of the IngressClass. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #IngressClassSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// IngressClassSpec provides information about the class of an Ingress. -#IngressClassSpec: { - // controller refers to the name of the controller that should handle this - // class. This allows for different "flavors" that are controlled by the - // same controller. For example, you may have different parameters for the - // same implementing controller. This should be specified as a - // domain-prefixed path no more than 250 characters in length, e.g. - // "acme.io/ingress-controller". This field is immutable. - controller?: string @go(Controller) @protobuf(1,bytes,opt) - - // parameters is a link to a custom resource containing additional - // configuration for the controller. This is optional if the controller does - // not require extra parameters. - // +optional - parameters?: null | #IngressClassParametersReference @go(Parameters,*IngressClassParametersReference) @protobuf(2,bytes,opt) -} - -// IngressClassParametersReferenceScopeNamespace indicates that the -// referenced Parameters resource is namespace-scoped. -#IngressClassParametersReferenceScopeNamespace: "Namespace" - -// IngressClassParametersReferenceScopeCluster indicates that the -// referenced Parameters resource is cluster-scoped. -#IngressClassParametersReferenceScopeCluster: "Cluster" - -// IngressClassParametersReference identifies an API object. This can be used -// to specify a cluster or namespace-scoped resource. -#IngressClassParametersReference: { - // apiGroup is the group for the resource being referenced. If APIGroup is - // not specified, the specified Kind must be in the core API group. For any - // other third-party types, APIGroup is required. - // +optional - apiGroup?: null | string @go(APIGroup,*string) @protobuf(1,bytes,opt,name=aPIGroup) - - // kind is the type of resource being referenced. - kind: string @go(Kind) @protobuf(2,bytes,opt) - - // name is the name of resource being referenced. - name: string @go(Name) @protobuf(3,bytes,opt) - - // scope represents if this refers to a cluster or namespace scoped resource. - // This may be set to "Cluster" (default) or "Namespace". - // +optional - scope?: null | string @go(Scope,*string) @protobuf(4,bytes,opt) - - // namespace is the namespace of the resource being referenced. This field is - // required when scope is set to "Namespace" and must be unset when scope is set to - // "Cluster". - // +optional - namespace?: null | string @go(Namespace,*string) @protobuf(5,bytes,opt) -} - -// IngressClassList is a collection of IngressClasses. -#IngressClassList: { - metav1.#TypeMeta - - // Standard list metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of IngressClasses. - items: [...#IngressClass] @go(Items,[]IngressClass) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/networking/v1/well_known_annotations_go_gen.cue b/cue.mod/gen/k8s.io/api/networking/v1/well_known_annotations_go_gen.cue deleted file mode 100644 index bee74f4..0000000 --- a/cue.mod/gen/k8s.io/api/networking/v1/well_known_annotations_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/networking/v1 - -package v1 - -// AnnotationIsDefaultIngressClass can be used to indicate that an -// IngressClass should be considered default. When a single IngressClass -// resource has this annotation set to true, new Ingress resources without a -// class specified will be assigned this default class. -#AnnotationIsDefaultIngressClass: "ingressclass.kubernetes.io/is-default-class" diff --git a/cue.mod/gen/k8s.io/api/networking/v1alpha1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/networking/v1alpha1/register_go_gen.cue deleted file mode 100644 index 655eb34..0000000 --- a/cue.mod/gen/k8s.io/api/networking/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/networking/v1alpha1 - -package v1alpha1 - -#GroupName: "networking.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/networking/v1alpha1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/networking/v1alpha1/types_go_gen.cue deleted file mode 100644 index 7b257bc..0000000 --- a/cue.mod/gen/k8s.io/api/networking/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/networking/v1alpha1 - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/types" -) - -// ClusterCIDR represents a single configuration for per-Node Pod CIDR -// allocations when the MultiCIDRRangeAllocator is enabled (see the config for -// kube-controller-manager). A cluster may have any number of ClusterCIDR -// resources, all of which will be considered when allocating a CIDR for a -// Node. A ClusterCIDR is eligible to be used for a given Node when the node -// selector matches the node in question and has free CIDRs to allocate. In -// case of multiple matching ClusterCIDR resources, the allocator will attempt -// to break ties using internal heuristics, but any ClusterCIDR whose node -// selector matches the Node may be used. -#ClusterCIDR: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec is the desired state of the ClusterCIDR. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #ClusterCIDRSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// ClusterCIDRSpec defines the desired state of ClusterCIDR. -#ClusterCIDRSpec: { - // nodeSelector defines which nodes the config is applicable to. - // An empty or nil nodeSelector selects all nodes. - // This field is immutable. - // +optional - nodeSelector?: null | v1.#NodeSelector @go(NodeSelector,*v1.NodeSelector) @protobuf(1,bytes,opt) - - // perNodeHostBits defines the number of host bits to be configured per node. - // A subnet mask determines how much of the address is used for network bits - // and host bits. For example an IPv4 address of 192.168.0.0/24, splits the - // address into 24 bits for the network portion and 8 bits for the host portion. - // To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). - // Minimum value is 4 (16 IPs). - // This field is immutable. - // +required - perNodeHostBits: int32 @go(PerNodeHostBits) @protobuf(2,varint,opt) - - // ipv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). - // At least one of ipv4 and ipv6 must be specified. - // This field is immutable. - // +optional - ipv4: string @go(IPv4) @protobuf(3,bytes,opt) - - // ipv6 defines an IPv6 IP block in CIDR notation(e.g. "2001:db8::/64"). - // At least one of ipv4 and ipv6 must be specified. - // This field is immutable. - // +optional - ipv6: string @go(IPv6) @protobuf(4,bytes,opt) -} - -// ClusterCIDRList contains a list of ClusterCIDR. -#ClusterCIDRList: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of ClusterCIDRs. - items: [...#ClusterCIDR] @go(Items,[]ClusterCIDR) @protobuf(2,bytes,rep) -} - -// IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs -// that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. -// An IP address can be represented in different formats, to guarantee the uniqueness of the IP, -// the name of the object is the IP address in canonical format, four decimal digits separated -// by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. -// Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 -// Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 -#IPAddress: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec is the desired state of the IPAddress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #IPAddressSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// IPAddressSpec describe the attributes in an IP Address. -#IPAddressSpec: { - // ParentRef references the resource that an IPAddress is attached to. - // An IPAddress must reference a parent object. - // +required - parentRef?: null | #ParentReference @go(ParentRef,*ParentReference) @protobuf(1,bytes,opt) -} - -// ParentReference describes a reference to a parent object. -#ParentReference: { - // Group is the group of the object being referenced. - // +optional - group?: string @go(Group) @protobuf(1,bytes,opt) - - // Resource is the resource of the object being referenced. - // +required - resource?: string @go(Resource) @protobuf(2,bytes,opt) - - // Namespace is the namespace of the object being referenced. - // +optional - namespace?: string @go(Namespace) @protobuf(3,bytes,opt) - - // Name is the name of the object being referenced. - // +required - name?: string @go(Name) @protobuf(4,bytes,opt) - - // UID is the uid of the object being referenced. - // +optional - uid?: types.#UID @go(UID) @protobuf(5,bytes,opt,casttype=k8s.io/apimachinery/pkg/types.UID) -} - -// IPAddressList contains a list of IPAddress. -#IPAddressList: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of IPAddresses. - items: [...#IPAddress] @go(Items,[]IPAddress) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/networking/v1alpha1/well_known_labels_go_gen.cue b/cue.mod/gen/k8s.io/api/networking/v1alpha1/well_known_labels_go_gen.cue deleted file mode 100644 index 2b0d956..0000000 --- a/cue.mod/gen/k8s.io/api/networking/v1alpha1/well_known_labels_go_gen.cue +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/networking/v1alpha1 - -package v1alpha1 - -// TODO: Use IPFamily as field with a field selector,And the value is set based on -// the name at create time and immutable. -// LabelIPAddressFamily is used to indicate the IP family of a Kubernetes IPAddress. -// This label simplify dual-stack client operations allowing to obtain the list of -// IP addresses filtered by family. -#LabelIPAddressFamily: "ipaddress.kubernetes.io/ip-family" - -// LabelManagedBy is used to indicate the controller or entity that manages -// an IPAddress. This label aims to enable different IPAddress -// objects to be managed by different controllers or entities within the -// same cluster. It is highly recommended to configure this label for all -// IPAddress objects. -#LabelManagedBy: "ipaddress.kubernetes.io/managed-by" diff --git a/cue.mod/gen/k8s.io/api/networking/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/networking/v1beta1/register_go_gen.cue deleted file mode 100644 index e7febe8..0000000 --- a/cue.mod/gen/k8s.io/api/networking/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/networking/v1beta1 - -package v1beta1 - -#GroupName: "networking.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/networking/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/networking/v1beta1/types_go_gen.cue deleted file mode 100644 index 44f9a86..0000000 --- a/cue.mod/gen/k8s.io/api/networking/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,370 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/networking/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/util/intstr" -) - -// Ingress is a collection of rules that allow inbound connections to reach the -// endpoints defined by a backend. An Ingress can be configured to give services -// externally-reachable urls, load balance traffic, terminate SSL, offer name -// based virtual hosting etc. -#Ingress: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec is the desired state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #IngressSpec @go(Spec) @protobuf(2,bytes,opt) - - // status is the current state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: #IngressStatus @go(Status) @protobuf(3,bytes,opt) -} - -// IngressList is a collection of Ingress. -#IngressList: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of Ingress. - items: [...#Ingress] @go(Items,[]Ingress) @protobuf(2,bytes,rep) -} - -// IngressSpec describes the Ingress the user wishes to exist. -#IngressSpec: { - // ingressClassName is the name of the IngressClass cluster resource. The - // associated IngressClass defines which controller will implement the - // resource. This replaces the deprecated `kubernetes.io/ingress.class` - // annotation. For backwards compatibility, when that annotation is set, it - // must be given precedence over this field. The controller may emit a - // warning if the field and annotation have different values. - // Implementations of this API should ignore Ingresses without a class - // specified. An IngressClass resource may be marked as default, which can - // be used to set a default value for this field. For more information, - // refer to the IngressClass documentation. - // +optional - ingressClassName?: null | string @go(IngressClassName,*string) @protobuf(4,bytes,opt) - - // backend is the default backend capable of servicing requests that don't match any - // rule. At least one of 'backend' or 'rules' must be specified. This field - // is optional to allow the loadbalancer controller or defaulting logic to - // specify a global default. - // +optional - backend?: null | #IngressBackend @go(Backend,*IngressBackend) @protobuf(1,bytes,opt) - - // tls represents the TLS configuration. Currently the Ingress only supports a - // single TLS port, 443. If multiple members of this list specify different hosts, - // they will be multiplexed on the same port according to the hostname specified - // through the SNI TLS extension, if the ingress controller fulfilling the - // ingress supports SNI. - // +optional - tls?: [...#IngressTLS] @go(TLS,[]IngressTLS) @protobuf(2,bytes,rep) - - // rules is a list of host rules used to configure the Ingress. If unspecified, or - // no rule matches, all traffic is sent to the default backend. - // +optional - rules?: [...#IngressRule] @go(Rules,[]IngressRule) @protobuf(3,bytes,rep) -} - -// IngressTLS describes the transport layer security associated with an Ingress. -#IngressTLS: { - // hosts is a list of hosts included in the TLS certificate. The values in - // this list must match the name/s used in the tlsSecret. Defaults to the - // wildcard host setting for the loadbalancer controller fulfilling this - // Ingress, if left unspecified. - // +optional - hosts?: [...string] @go(Hosts,[]string) @protobuf(1,bytes,rep) - - // secretName is the name of the secret used to terminate TLS traffic on - // port 443. Field is left optional to allow TLS routing based on SNI - // hostname alone. If the SNI host in a listener conflicts with the "Host" - // header field used by an IngressRule, the SNI host is used for termination - // and value of the Host header is used for routing. - // +optional - secretName?: string @go(SecretName) @protobuf(2,bytes,opt) -} - -// IngressStatus describes the current state of the Ingress. -#IngressStatus: { - // loadBalancer contains the current status of the load-balancer. - // +optional - loadBalancer?: #IngressLoadBalancerStatus @go(LoadBalancer) @protobuf(1,bytes,opt) -} - -// LoadBalancerStatus represents the status of a load-balancer. -#IngressLoadBalancerStatus: { - // ingress is a list containing ingress points for the load-balancer. - // +optional - ingress?: [...#IngressLoadBalancerIngress] @go(Ingress,[]IngressLoadBalancerIngress) @protobuf(1,bytes,rep) -} - -// IngressLoadBalancerIngress represents the status of a load-balancer ingress point. -#IngressLoadBalancerIngress: { - // ip is set for load-balancer ingress points that are IP based. - // +optional - ip?: string @go(IP) @protobuf(1,bytes,opt) - - // hostname is set for load-balancer ingress points that are DNS based. - // +optional - hostname?: string @go(Hostname) @protobuf(2,bytes,opt) - - // ports provides information about the ports exposed by this LoadBalancer. - // +listType=atomic - // +optional - ports?: [...#IngressPortStatus] @go(Ports,[]IngressPortStatus) @protobuf(4,bytes,rep) -} - -// IngressPortStatus represents the error condition of a service port -#IngressPortStatus: { - // port is the port number of the ingress port. - port: int32 @go(Port) @protobuf(1,varint,opt) - - // protocol is the protocol of the ingress port. - // The supported values are: "TCP", "UDP", "SCTP" - protocol: v1.#Protocol @go(Protocol) @protobuf(2,bytes,opt,casttype=Protocol) - - // error is to record the problem with the service port - // The format of the error shall comply with the following rules: - // - built-in error values shall be specified in this file and those shall use - // CamelCase names - // - cloud provider specific error values must have names that comply with the - // format foo.example.com/CamelCase. - // --- - // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - // +optional - // +kubebuilder:validation:Required - // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` - // +kubebuilder:validation:MaxLength=316 - error?: null | string @go(Error,*string) @protobuf(3,bytes,opt) -} - -// IngressRule represents the rules mapping the paths under a specified host to -// the related backend services. Incoming requests are first evaluated for a host -// match, then routed to the backend associated with the matching IngressRuleValue. -#IngressRule: { - // host is the fully qualified domain name of a network host, as defined by RFC 3986. - // Note the following deviations from the "host" part of the - // URI as defined in RFC 3986: - // 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - // the IP in the Spec of the parent Ingress. - // 2. The `:` delimiter is not respected because ports are not allowed. - // Currently the port of an Ingress is implicitly :80 for http and - // :443 for https. - // Both these may change in the future. - // Incoming requests are matched against the host before the - // IngressRuleValue. If the host is unspecified, the Ingress routes all - // traffic based on the specified IngressRuleValue. - // - // host can be "precise" which is a domain name without the terminating dot of - // a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name - // prefixed with a single wildcard label (e.g. "*.foo.com"). - // The wildcard character '*' must appear by itself as the first DNS label and - // matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). - // Requests will be matched against the Host field in the following way: - // 1. If Host is precise, the request matches this rule if the http host header is equal to Host. - // 2. If Host is a wildcard, then the request matches this rule if the http host header - // is to equal to the suffix (removing the first label) of the wildcard rule. - // +optional - host?: string @go(Host) @protobuf(1,bytes,opt) - - #IngressRuleValue -} - -// IngressRuleValue represents a rule to apply against incoming requests. If the -// rule is satisfied, the request is routed to the specified backend. Currently -// mixing different types of rules in a single Ingress is disallowed, so exactly -// one of the following must be set. -#IngressRuleValue: { - // +optional - http?: null | #HTTPIngressRuleValue @go(HTTP,*HTTPIngressRuleValue) @protobuf(1,bytes,opt) -} - -// HTTPIngressRuleValue is a list of http selectors pointing to backends. -// In the example: http:///? -> backend where -// where parts of the url correspond to RFC 3986, this resource will be used -// to match against everything after the last '/' and before the first '?' -// or '#'. -#HTTPIngressRuleValue: { - // paths is a collection of paths that map requests to backends. - paths: [...#HTTPIngressPath] @go(Paths,[]HTTPIngressPath) @protobuf(1,bytes,rep) -} - -// PathType represents the type of path referred to by a HTTPIngressPath. -#PathType: string // #enumPathType - -#enumPathType: - #PathTypeExact | - #PathTypePrefix | - #PathTypeImplementationSpecific - -// PathTypeExact matches the URL path exactly and with case sensitivity. -#PathTypeExact: #PathType & "Exact" - -// PathTypePrefix matches based on a URL path prefix split by '/'. Matching -// is case sensitive and done on a path element by element basis. A path -// element refers to the list of labels in the path split by the '/' -// separator. A request is a match for path p if every p is an element-wise -// prefix of p of the request path. Note that if the last element of the -// path is a substring of the last element in request path, it is not a -// match (e.g. /foo/bar matches /foo/bar/baz, but does not match -// /foo/barbaz). If multiple matching paths exist in an Ingress spec, the -// longest matching path is given priority. -// Examples: -// - /foo/bar does not match requests to /foo/barbaz -// - /foo/bar matches request to /foo/bar and /foo/bar/baz -// - /foo and /foo/ both match requests to /foo and /foo/. If both paths are -// present in an Ingress spec, the longest matching path (/foo/) is given -// priority. -#PathTypePrefix: #PathType & "Prefix" - -// PathTypeImplementationSpecific matching is up to the IngressClass. -// Implementations can treat this as a separate PathType or treat it -// identically to Prefix or Exact path types. -#PathTypeImplementationSpecific: #PathType & "ImplementationSpecific" - -// HTTPIngressPath associates a path with a backend. Incoming urls matching the -// path are forwarded to the backend. -#HTTPIngressPath: { - // path is matched against the path of an incoming request. Currently it can - // contain characters disallowed from the conventional "path" part of a URL - // as defined by RFC 3986. Paths must begin with a '/' and must be present - // when using PathType with value "Exact" or "Prefix". - // +optional - path?: string @go(Path) @protobuf(1,bytes,opt) - - // pathType determines the interpretation of the path matching. PathType can - // be one of the following values: - // * Exact: Matches the URL path exactly. - // * Prefix: Matches based on a URL path prefix split by '/'. Matching is - // done on a path element by element basis. A path element refers is the - // list of labels in the path split by the '/' separator. A request is a - // match for path p if every p is an element-wise prefix of p of the - // request path. Note that if the last element of the path is a substring - // of the last element in request path, it is not a match (e.g. /foo/bar - // matches /foo/bar/baz, but does not match /foo/barbaz). - // * ImplementationSpecific: Interpretation of the Path matching is up to - // the IngressClass. Implementations can treat this as a separate PathType - // or treat it identically to Prefix or Exact path types. - // Implementations are required to support all path types. - // Defaults to ImplementationSpecific. - pathType?: null | #PathType @go(PathType,*PathType) @protobuf(3,bytes,opt) - - // backend defines the referenced service endpoint to which the traffic - // will be forwarded to. - backend: #IngressBackend @go(Backend) @protobuf(2,bytes,opt) -} - -// IngressBackend describes all endpoints for a given service and port. -#IngressBackend: { - // serviceName specifies the name of the referenced service. - // +optional - serviceName?: string @go(ServiceName) @protobuf(1,bytes,opt) - - // servicePort Specifies the port of the referenced service. - // +optional - servicePort?: intstr.#IntOrString @go(ServicePort) @protobuf(2,bytes,opt) - - // resource is an ObjectRef to another Kubernetes resource in the namespace - // of the Ingress object. If resource is specified, serviceName and servicePort - // must not be specified. - // +optional - resource?: null | v1.#TypedLocalObjectReference @go(Resource,*v1.TypedLocalObjectReference) @protobuf(3,bytes,opt) -} - -// IngressClass represents the class of the Ingress, referenced by the Ingress -// Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be -// used to indicate that an IngressClass should be considered default. When a -// single IngressClass resource has this annotation set to true, new Ingress -// resources without a class specified will be assigned this default class. -#IngressClass: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec is the desired state of the IngressClass. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - spec?: #IngressClassSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// IngressClassSpec provides information about the class of an Ingress. -#IngressClassSpec: { - // controller refers to the name of the controller that should handle this - // class. This allows for different "flavors" that are controlled by the - // same controller. For example, you may have different parameters for the - // same implementing controller. This should be specified as a - // domain-prefixed path no more than 250 characters in length, e.g. - // "acme.io/ingress-controller". This field is immutable. - controller?: string @go(Controller) @protobuf(1,bytes,opt) - - // parameters is a link to a custom resource containing additional - // configuration for the controller. This is optional if the controller does - // not require extra parameters. - // +optional - parameters?: null | #IngressClassParametersReference @go(Parameters,*IngressClassParametersReference) @protobuf(2,bytes,opt) -} - -// IngressClassParametersReferenceScopeNamespace indicates that the -// referenced Parameters resource is namespace-scoped. -#IngressClassParametersReferenceScopeNamespace: "Namespace" - -// IngressClassParametersReferenceScopeCluster indicates that the -// referenced Parameters resource is cluster-scoped. -#IngressClassParametersReferenceScopeCluster: "Cluster" - -// IngressClassParametersReference identifies an API object. This can be used -// to specify a cluster or namespace-scoped resource. -#IngressClassParametersReference: { - // apiGroup is the group for the resource being referenced. If APIGroup is - // not specified, the specified Kind must be in the core API group. For any - // other third-party types, APIGroup is required. - // +optional - apiGroup?: null | string @go(APIGroup,*string) @protobuf(1,bytes,opt,name=aPIGroup) - - // kind is the type of resource being referenced. - kind: string @go(Kind) @protobuf(2,bytes,opt) - - // name is the name of resource being referenced. - name: string @go(Name) @protobuf(3,bytes,opt) - - // scope represents if this refers to a cluster or namespace scoped resource. - // This may be set to "Cluster" (default) or "Namespace". - scope?: null | string @go(Scope,*string) @protobuf(4,bytes,opt) - - // namespace is the namespace of the resource being referenced. This field is - // required when scope is set to "Namespace" and must be unset when scope is set to - // "Cluster". - // +optional - namespace?: null | string @go(Namespace,*string) @protobuf(5,bytes,opt) -} - -// IngressClassList is a collection of IngressClasses. -#IngressClassList: { - metav1.#TypeMeta - - // Standard list metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of IngressClasses. - items: [...#IngressClass] @go(Items,[]IngressClass) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/networking/v1beta1/well_known_annotations_go_gen.cue b/cue.mod/gen/k8s.io/api/networking/v1beta1/well_known_annotations_go_gen.cue deleted file mode 100644 index 84f0782..0000000 --- a/cue.mod/gen/k8s.io/api/networking/v1beta1/well_known_annotations_go_gen.cue +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/networking/v1beta1 - -package v1beta1 - -// AnnotationIsDefaultIngressClass can be used to indicate that an -// IngressClass should be considered default. When a single IngressClass -// resource has this annotation set to true, new Ingress resources without a -// class specified will be assigned this default class. -#AnnotationIsDefaultIngressClass: "ingressclass.kubernetes.io/is-default-class" - -// AnnotationIngressClass indicates the class of an Ingress to be used when -// determining which controller should implement the Ingress. Use of this -// annotation is deprecated. The Ingress class field should be used instead -// of this annotation. -// +deprecated -#AnnotationIngressClass: "kubernetes.io/ingress.class" diff --git a/cue.mod/gen/k8s.io/api/node/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/node/v1/register_go_gen.cue deleted file mode 100644 index 5969b44..0000000 --- a/cue.mod/gen/k8s.io/api/node/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/node/v1 - -package v1 - -#GroupName: "node.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/node/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/node/v1/types_go_gen.cue deleted file mode 100644 index 3934557..0000000 --- a/cue.mod/gen/k8s.io/api/node/v1/types_go_gen.cue +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/node/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - corev1 "k8s.io/api/core/v1" -) - -// RuntimeClass defines a class of container runtime supported in the cluster. -// The RuntimeClass is used to determine which container runtime is used to run -// all containers in a pod. RuntimeClasses are manually defined by a -// user or cluster provisioner, and referenced in the PodSpec. The Kubelet is -// responsible for resolving the RuntimeClassName reference before running the -// pod. For more details, see -// https://kubernetes.io/docs/concepts/containers/runtime-class/ -#RuntimeClass: { - metav1.#TypeMeta - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // handler specifies the underlying runtime and configuration that the CRI - // implementation will use to handle pods of this class. The possible values - // are specific to the node & CRI configuration. It is assumed that all - // handlers are available on every node, and handlers of the same name are - // equivalent on every node. - // For example, a handler called "runc" might specify that the runc OCI - // runtime (using native Linux containers) will be used to run the containers - // in a pod. - // The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, - // and is immutable. - handler: string @go(Handler) @protobuf(2,bytes,opt) - - // overhead represents the resource overhead associated with running a pod for a - // given RuntimeClass. For more details, see - // https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ - // +optional - overhead?: null | #Overhead @go(Overhead,*Overhead) @protobuf(3,bytes,opt) - - // scheduling holds the scheduling constraints to ensure that pods running - // with this RuntimeClass are scheduled to nodes that support it. - // If scheduling is nil, this RuntimeClass is assumed to be supported by all - // nodes. - // +optional - scheduling?: null | #Scheduling @go(Scheduling,*Scheduling) @protobuf(4,bytes,opt) -} - -// Overhead structure represents the resource overhead associated with running a pod. -#Overhead: { - // podFixed represents the fixed resource overhead associated with running a pod. - // +optional - podFixed?: corev1.#ResourceList @go(PodFixed) @protobuf(1,bytes,opt,casttype=k8s.io/api/core/v1.ResourceList,castkey=k8s.io/api/core/v1.ResourceName,castvalue=k8s.io/apimachinery/pkg/api/resource.Quantity) -} - -// Scheduling specifies the scheduling constraints for nodes supporting a -// RuntimeClass. -#Scheduling: { - // nodeSelector lists labels that must be present on nodes that support this - // RuntimeClass. Pods using this RuntimeClass can only be scheduled to a - // node matched by this selector. The RuntimeClass nodeSelector is merged - // with a pod's existing nodeSelector. Any conflicts will cause the pod to - // be rejected in admission. - // +optional - // +mapType=atomic - nodeSelector?: {[string]: string} @go(NodeSelector,map[string]string) @protobuf(1,bytes,opt) - - // tolerations are appended (excluding duplicates) to pods running with this - // RuntimeClass during admission, effectively unioning the set of nodes - // tolerated by the pod and the RuntimeClass. - // +optional - // +listType=atomic - tolerations?: [...corev1.#Toleration] @go(Tolerations,[]corev1.Toleration) @protobuf(2,bytes,rep) -} - -// RuntimeClassList is a list of RuntimeClass objects. -#RuntimeClassList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is a list of schema objects. - items: [...#RuntimeClass] @go(Items,[]RuntimeClass) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/node/v1alpha1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/node/v1alpha1/register_go_gen.cue deleted file mode 100644 index 9d03513..0000000 --- a/cue.mod/gen/k8s.io/api/node/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/node/v1alpha1 - -package v1alpha1 - -#GroupName: "node.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/node/v1alpha1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/node/v1alpha1/types_go_gen.cue deleted file mode 100644 index 362bf3e..0000000 --- a/cue.mod/gen/k8s.io/api/node/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,100 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/node/v1alpha1 - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - corev1 "k8s.io/api/core/v1" -) - -// RuntimeClass defines a class of container runtime supported in the cluster. -// The RuntimeClass is used to determine which container runtime is used to run -// all containers in a pod. RuntimeClasses are (currently) manually defined by a -// user or cluster provisioner, and referenced in the PodSpec. The Kubelet is -// responsible for resolving the RuntimeClassName reference before running the -// pod. For more details, see -// https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class -#RuntimeClass: { - metav1.#TypeMeta - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec represents specification of the RuntimeClass - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - spec: #RuntimeClassSpec @go(Spec) @protobuf(2,bytes) -} - -// RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters -// that are required to describe the RuntimeClass to the Container Runtime -// Interface (CRI) implementation, as well as any other components that need to -// understand how the pod will be run. The RuntimeClassSpec is immutable. -#RuntimeClassSpec: { - // runtimeHandler specifies the underlying runtime and configuration that the - // CRI implementation will use to handle pods of this class. The possible - // values are specific to the node & CRI configuration. It is assumed that - // all handlers are available on every node, and handlers of the same name are - // equivalent on every node. - // For example, a handler called "runc" might specify that the runc OCI - // runtime (using native Linux containers) will be used to run the containers - // in a pod. - // The runtimeHandler must be lowercase, conform to the DNS Label (RFC 1123) - // requirements, and is immutable. - runtimeHandler: string @go(RuntimeHandler) @protobuf(1,bytes,opt) - - // overhead represents the resource overhead associated with running a pod for a - // given RuntimeClass. For more details, see - // https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md - // +optional - overhead?: null | #Overhead @go(Overhead,*Overhead) @protobuf(2,bytes,opt) - - // scheduling holds the scheduling constraints to ensure that pods running - // with this RuntimeClass are scheduled to nodes that support it. - // If scheduling is nil, this RuntimeClass is assumed to be supported by all - // nodes. - // +optional - scheduling?: null | #Scheduling @go(Scheduling,*Scheduling) @protobuf(3,bytes,opt) -} - -// Overhead structure represents the resource overhead associated with running a pod. -#Overhead: { - // podFixed represents the fixed resource overhead associated with running a pod. - // +optional - podFixed?: corev1.#ResourceList @go(PodFixed) @protobuf(1,bytes,opt,casttype=k8s.io/api/core/v1.ResourceList,castkey=k8s.io/api/core/v1.ResourceName,castvalue=k8s.io/apimachinery/pkg/api/resource.Quantity) -} - -// Scheduling specifies the scheduling constraints for nodes supporting a -// RuntimeClass. -#Scheduling: { - // nodeSelector lists labels that must be present on nodes that support this - // RuntimeClass. Pods using this RuntimeClass can only be scheduled to a - // node matched by this selector. The RuntimeClass nodeSelector is merged - // with a pod's existing nodeSelector. Any conflicts will cause the pod to - // be rejected in admission. - // +optional - // +mapType=atomic - nodeSelector?: {[string]: string} @go(NodeSelector,map[string]string) @protobuf(1,bytes,opt) - - // tolerations are appended (excluding duplicates) to pods running with this - // RuntimeClass during admission, effectively unioning the set of nodes - // tolerated by the pod and the RuntimeClass. - // +optional - // +listType=atomic - tolerations?: [...corev1.#Toleration] @go(Tolerations,[]corev1.Toleration) @protobuf(2,bytes,rep) -} - -// RuntimeClassList is a list of RuntimeClass objects. -#RuntimeClassList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is a list of schema objects. - items: [...#RuntimeClass] @go(Items,[]RuntimeClass) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/node/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/node/v1beta1/register_go_gen.cue deleted file mode 100644 index a401f62..0000000 --- a/cue.mod/gen/k8s.io/api/node/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/node/v1beta1 - -package v1beta1 - -#GroupName: "node.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/node/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/node/v1beta1/types_go_gen.cue deleted file mode 100644 index 804c1b2..0000000 --- a/cue.mod/gen/k8s.io/api/node/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/node/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - corev1 "k8s.io/api/core/v1" -) - -// RuntimeClass defines a class of container runtime supported in the cluster. -// The RuntimeClass is used to determine which container runtime is used to run -// all containers in a pod. RuntimeClasses are (currently) manually defined by a -// user or cluster provisioner, and referenced in the PodSpec. The Kubelet is -// responsible for resolving the RuntimeClassName reference before running the -// pod. For more details, see -// https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class -#RuntimeClass: { - metav1.#TypeMeta - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // handler specifies the underlying runtime and configuration that the CRI - // implementation will use to handle pods of this class. The possible values - // are specific to the node & CRI configuration. It is assumed that all - // handlers are available on every node, and handlers of the same name are - // equivalent on every node. - // For example, a handler called "runc" might specify that the runc OCI - // runtime (using native Linux containers) will be used to run the containers - // in a pod. - // The handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, - // and is immutable. - handler: string @go(Handler) @protobuf(2,bytes,opt) - - // overhead represents the resource overhead associated with running a pod for a - // given RuntimeClass. For more details, see - // https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md - // +optional - overhead?: null | #Overhead @go(Overhead,*Overhead) @protobuf(3,bytes,opt) - - // scheduling holds the scheduling constraints to ensure that pods running - // with this RuntimeClass are scheduled to nodes that support it. - // If scheduling is nil, this RuntimeClass is assumed to be supported by all - // nodes. - // +optional - scheduling?: null | #Scheduling @go(Scheduling,*Scheduling) @protobuf(4,bytes,opt) -} - -// Overhead structure represents the resource overhead associated with running a pod. -#Overhead: { - // podFixed represents the fixed resource overhead associated with running a pod. - // +optional - podFixed?: corev1.#ResourceList @go(PodFixed) @protobuf(1,bytes,opt,casttype=k8s.io/api/core/v1.ResourceList,castkey=k8s.io/api/core/v1.ResourceName,castvalue=k8s.io/apimachinery/pkg/api/resource.Quantity) -} - -// Scheduling specifies the scheduling constraints for nodes supporting a -// RuntimeClass. -#Scheduling: { - // nodeSelector lists labels that must be present on nodes that support this - // RuntimeClass. Pods using this RuntimeClass can only be scheduled to a - // node matched by this selector. The RuntimeClass nodeSelector is merged - // with a pod's existing nodeSelector. Any conflicts will cause the pod to - // be rejected in admission. - // +optional - // +mapType=atomic - nodeSelector?: {[string]: string} @go(NodeSelector,map[string]string) @protobuf(1,bytes,opt) - - // tolerations are appended (excluding duplicates) to pods running with this - // RuntimeClass during admission, effectively unioning the set of nodes - // tolerated by the pod and the RuntimeClass. - // +optional - // +listType=atomic - tolerations?: [...corev1.#Toleration] @go(Tolerations,[]corev1.Toleration) @protobuf(2,bytes,rep) -} - -// RuntimeClassList is a list of RuntimeClass objects. -#RuntimeClassList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is a list of schema objects. - items: [...#RuntimeClass] @go(Items,[]RuntimeClass) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/policy/v1/doc_go_gen.cue b/cue.mod/gen/k8s.io/api/policy/v1/doc_go_gen.cue deleted file mode 100644 index dedcdc3..0000000 --- a/cue.mod/gen/k8s.io/api/policy/v1/doc_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/policy/v1 - -// Package policy is for any kind of policy object. Suitable examples, even if -// they aren't all here, are PodDisruptionBudget, PodSecurityPolicy, -// NetworkPolicy, etc. -package v1 diff --git a/cue.mod/gen/k8s.io/api/policy/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/policy/v1/register_go_gen.cue deleted file mode 100644 index e38fa37..0000000 --- a/cue.mod/gen/k8s.io/api/policy/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/policy/v1 - -package v1 - -#GroupName: "policy" diff --git a/cue.mod/gen/k8s.io/api/policy/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/policy/v1/types_go_gen.cue deleted file mode 100644 index 5901cc6..0000000 --- a/cue.mod/gen/k8s.io/api/policy/v1/types_go_gen.cue +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/policy/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/util/intstr" -) - -#DisruptionBudgetCause: metav1.#CauseType & "DisruptionBudget" - -// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. -#PodDisruptionBudgetSpec: { - // An eviction is allowed if at least "minAvailable" pods selected by - // "selector" will still be available after the eviction, i.e. even in the - // absence of the evicted pod. So for example you can prevent all voluntary - // evictions by specifying "100%". - // +optional - minAvailable?: null | intstr.#IntOrString @go(MinAvailable,*intstr.IntOrString) @protobuf(1,bytes,opt) - - // Label query over pods whose evictions are managed by the disruption - // budget. - // A null selector will match no pods, while an empty ({}) selector will select - // all pods within the namespace. - // +patchStrategy=replace - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // An eviction is allowed if at most "maxUnavailable" pods selected by - // "selector" are unavailable after the eviction, i.e. even in absence of - // the evicted pod. For example, one can prevent all voluntary evictions - // by specifying 0. This is a mutually exclusive setting with "minAvailable". - // +optional - maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(3,bytes,opt) - - // UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods - // should be considered for eviction. Current implementation considers healthy pods, - // as pods that have status.conditions item with type="Ready",status="True". - // - // Valid policies are IfHealthyBudget and AlwaysAllow. - // If no policy is specified, the default behavior will be used, - // which corresponds to the IfHealthyBudget policy. - // - // IfHealthyBudget policy means that running pods (status.phase="Running"), - // but not yet healthy can be evicted only if the guarded application is not - // disrupted (status.currentHealthy is at least equal to status.desiredHealthy). - // Healthy pods will be subject to the PDB for eviction. - // - // AlwaysAllow policy means that all running pods (status.phase="Running"), - // but not yet healthy are considered disrupted and can be evicted regardless - // of whether the criteria in a PDB is met. This means perspective running - // pods of a disrupted application might not get a chance to become healthy. - // Healthy pods will be subject to the PDB for eviction. - // - // Additional policies may be added in the future. - // Clients making eviction decisions should disallow eviction of unhealthy pods - // if they encounter an unrecognized policy in this field. - // - // This field is beta-level. The eviction API uses this field when - // the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). - // +optional - unhealthyPodEvictionPolicy?: null | #UnhealthyPodEvictionPolicyType @go(UnhealthyPodEvictionPolicy,*UnhealthyPodEvictionPolicyType) @protobuf(4,bytes,opt) -} - -// UnhealthyPodEvictionPolicyType defines the criteria for when unhealthy pods -// should be considered for eviction. -// +enum -#UnhealthyPodEvictionPolicyType: string // #enumUnhealthyPodEvictionPolicyType - -#enumUnhealthyPodEvictionPolicyType: - #IfHealthyBudget | - #AlwaysAllow - -// IfHealthyBudget policy means that running pods (status.phase="Running"), -// but not yet healthy can be evicted only if the guarded application is not -// disrupted (status.currentHealthy is at least equal to status.desiredHealthy). -// Healthy pods will be subject to the PDB for eviction. -#IfHealthyBudget: #UnhealthyPodEvictionPolicyType & "IfHealthyBudget" - -// AlwaysAllow policy means that all running pods (status.phase="Running"), -// but not yet healthy are considered disrupted and can be evicted regardless -// of whether the criteria in a PDB is met. This means perspective running -// pods of a disrupted application might not get a chance to become healthy. -// Healthy pods will be subject to the PDB for eviction. -#AlwaysAllow: #UnhealthyPodEvictionPolicyType & "AlwaysAllow" - -// PodDisruptionBudgetStatus represents information about the status of a -// PodDisruptionBudget. Status may trail the actual state of a system. -#PodDisruptionBudgetStatus: { - // Most recent generation observed when updating this PDB status. DisruptionsAllowed and other - // status information is valid only if observedGeneration equals to PDB's object generation. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(1,varint,opt) - - // DisruptedPods contains information about pods whose eviction was - // processed by the API server eviction subresource handler but has not - // yet been observed by the PodDisruptionBudget controller. - // A pod will be in this map from the time when the API server processed the - // eviction request to the time when the pod is seen by PDB controller - // as having been marked for deletion (or after a timeout). The key in the map is the name of the pod - // and the value is the time when the API server processed the eviction request. If - // the deletion didn't occur and a pod is still there it will be removed from - // the list automatically by PodDisruptionBudget controller after some time. - // If everything goes smooth this map should be empty for the most of the time. - // Large number of entries in the map may indicate problems with pod deletions. - // +optional - disruptedPods?: {[string]: metav1.#Time} @go(DisruptedPods,map[string]metav1.Time) @protobuf(2,bytes,rep) - - // Number of pod disruptions that are currently allowed. - disruptionsAllowed: int32 @go(DisruptionsAllowed) @protobuf(3,varint,opt) - - // current number of healthy pods - currentHealthy: int32 @go(CurrentHealthy) @protobuf(4,varint,opt) - - // minimum desired number of healthy pods - desiredHealthy: int32 @go(DesiredHealthy) @protobuf(5,varint,opt) - - // total number of pods counted by this disruption budget - expectedPods: int32 @go(ExpectedPods) @protobuf(6,varint,opt) - - // Conditions contain conditions for PDB. The disruption controller sets the - // DisruptionAllowed condition. The following are known values for the reason field - // (additional reasons could be added in the future): - // - SyncFailed: The controller encountered an error and wasn't able to compute - // the number of allowed disruptions. Therefore no disruptions are - // allowed and the status of the condition will be False. - // - InsufficientPods: The number of pods are either at or below the number - // required by the PodDisruptionBudget. No disruptions are - // allowed and the status of the condition will be False. - // - SufficientPods: There are more pods than required by the PodDisruptionBudget. - // The condition will be True, and the number of allowed - // disruptions are provided by the disruptionsAllowed property. - // - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - // +listType=map - // +listMapKey=type - conditions?: [...metav1.#Condition] @go(Conditions,[]metav1.Condition) @protobuf(7,bytes,rep) -} - -// DisruptionAllowedCondition is a condition set by the disruption controller -// that signal whether any of the pods covered by the PDB can be disrupted. -#DisruptionAllowedCondition: "DisruptionAllowed" - -// SyncFailedReason is set on the DisruptionAllowed condition if reconcile -// of the PDB failed and therefore disruption of pods are not allowed. -#SyncFailedReason: "SyncFailed" - -// SufficientPodsReason is set on the DisruptionAllowed condition if there are -// more pods covered by the PDB than required and at least one can be disrupted. -#SufficientPodsReason: "SufficientPods" - -// InsufficientPodsReason is set on the DisruptionAllowed condition if the number -// of pods are equal to or fewer than required by the PDB. -#InsufficientPodsReason: "InsufficientPods" - -// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods -#PodDisruptionBudget: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the PodDisruptionBudget. - // +optional - spec?: #PodDisruptionBudgetSpec @go(Spec) @protobuf(2,bytes,opt) - - // Most recently observed status of the PodDisruptionBudget. - // +optional - status?: #PodDisruptionBudgetStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PodDisruptionBudgetList is a collection of PodDisruptionBudgets. -#PodDisruptionBudgetList: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of PodDisruptionBudgets - items: [...#PodDisruptionBudget] @go(Items,[]PodDisruptionBudget) @protobuf(2,bytes,rep) -} - -// Eviction evicts a pod from its node subject to certain policies and safety constraints. -// This is a subresource of Pod. A request to cause such an eviction is -// created by POSTing to .../pods//evictions. -#Eviction: { - metav1.#TypeMeta - - // ObjectMeta describes the pod that is being evicted. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // DeleteOptions may be provided - // +optional - deleteOptions?: null | metav1.#DeleteOptions @go(DeleteOptions,*metav1.DeleteOptions) @protobuf(2,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/api/policy/v1beta1/doc_go_gen.cue b/cue.mod/gen/k8s.io/api/policy/v1beta1/doc_go_gen.cue deleted file mode 100644 index 9a06fbd..0000000 --- a/cue.mod/gen/k8s.io/api/policy/v1beta1/doc_go_gen.cue +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/policy/v1beta1 - -// Package policy is for any kind of policy object. Suitable examples, even if -// they aren't all here, are PodDisruptionBudget, PodSecurityPolicy, -// NetworkPolicy, etc. -package v1beta1 diff --git a/cue.mod/gen/k8s.io/api/policy/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/policy/v1beta1/register_go_gen.cue deleted file mode 100644 index 8c13927..0000000 --- a/cue.mod/gen/k8s.io/api/policy/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/policy/v1beta1 - -package v1beta1 - -#GroupName: "policy" diff --git a/cue.mod/gen/k8s.io/api/policy/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/policy/v1beta1/types_go_gen.cue deleted file mode 100644 index 71418a2..0000000 --- a/cue.mod/gen/k8s.io/api/policy/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,640 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/policy/v1beta1 - -package v1beta1 - -import ( - "k8s.io/apimachinery/pkg/util/intstr" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" -) - -// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. -#PodDisruptionBudgetSpec: { - // An eviction is allowed if at least "minAvailable" pods selected by - // "selector" will still be available after the eviction, i.e. even in the - // absence of the evicted pod. So for example you can prevent all voluntary - // evictions by specifying "100%". - // +optional - minAvailable?: null | intstr.#IntOrString @go(MinAvailable,*intstr.IntOrString) @protobuf(1,bytes,opt) - - // Label query over pods whose evictions are managed by the disruption - // budget. - // A null selector selects no pods. - // An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods. - // In policy/v1, an empty selector will select all pods in the namespace. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // An eviction is allowed if at most "maxUnavailable" pods selected by - // "selector" are unavailable after the eviction, i.e. even in absence of - // the evicted pod. For example, one can prevent all voluntary evictions - // by specifying 0. This is a mutually exclusive setting with "minAvailable". - // +optional - maxUnavailable?: null | intstr.#IntOrString @go(MaxUnavailable,*intstr.IntOrString) @protobuf(3,bytes,opt) - - // UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods - // should be considered for eviction. Current implementation considers healthy pods, - // as pods that have status.conditions item with type="Ready",status="True". - // - // Valid policies are IfHealthyBudget and AlwaysAllow. - // If no policy is specified, the default behavior will be used, - // which corresponds to the IfHealthyBudget policy. - // - // IfHealthyBudget policy means that running pods (status.phase="Running"), - // but not yet healthy can be evicted only if the guarded application is not - // disrupted (status.currentHealthy is at least equal to status.desiredHealthy). - // Healthy pods will be subject to the PDB for eviction. - // - // AlwaysAllow policy means that all running pods (status.phase="Running"), - // but not yet healthy are considered disrupted and can be evicted regardless - // of whether the criteria in a PDB is met. This means perspective running - // pods of a disrupted application might not get a chance to become healthy. - // Healthy pods will be subject to the PDB for eviction. - // - // Additional policies may be added in the future. - // Clients making eviction decisions should disallow eviction of unhealthy pods - // if they encounter an unrecognized policy in this field. - // - // This field is beta-level. The eviction API uses this field when - // the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). - // +optional - unhealthyPodEvictionPolicy?: null | #UnhealthyPodEvictionPolicyType @go(UnhealthyPodEvictionPolicy,*UnhealthyPodEvictionPolicyType) @protobuf(4,bytes,opt) -} - -// UnhealthyPodEvictionPolicyType defines the criteria for when unhealthy pods -// should be considered for eviction. -// +enum -#UnhealthyPodEvictionPolicyType: string // #enumUnhealthyPodEvictionPolicyType - -#enumUnhealthyPodEvictionPolicyType: - #IfHealthyBudget | - #AlwaysAllow - -// IfHealthyBudget policy means that running pods (status.phase="Running"), -// but not yet healthy can be evicted only if the guarded application is not -// disrupted (status.currentHealthy is at least equal to status.desiredHealthy). -// Healthy pods will be subject to the PDB for eviction. -#IfHealthyBudget: #UnhealthyPodEvictionPolicyType & "IfHealthyBudget" - -// AlwaysAllow policy means that all running pods (status.phase="Running"), -// but not yet healthy are considered disrupted and can be evicted regardless -// of whether the criteria in a PDB is met. This means perspective running -// pods of a disrupted application might not get a chance to become healthy. -// Healthy pods will be subject to the PDB for eviction. -#AlwaysAllow: #UnhealthyPodEvictionPolicyType & "AlwaysAllow" - -// PodDisruptionBudgetStatus represents information about the status of a -// PodDisruptionBudget. Status may trail the actual state of a system. -#PodDisruptionBudgetStatus: { - // Most recent generation observed when updating this PDB status. DisruptionsAllowed and other - // status information is valid only if observedGeneration equals to PDB's object generation. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(1,varint,opt) - - // DisruptedPods contains information about pods whose eviction was - // processed by the API server eviction subresource handler but has not - // yet been observed by the PodDisruptionBudget controller. - // A pod will be in this map from the time when the API server processed the - // eviction request to the time when the pod is seen by PDB controller - // as having been marked for deletion (or after a timeout). The key in the map is the name of the pod - // and the value is the time when the API server processed the eviction request. If - // the deletion didn't occur and a pod is still there it will be removed from - // the list automatically by PodDisruptionBudget controller after some time. - // If everything goes smooth this map should be empty for the most of the time. - // Large number of entries in the map may indicate problems with pod deletions. - // +optional - disruptedPods?: {[string]: metav1.#Time} @go(DisruptedPods,map[string]metav1.Time) @protobuf(2,bytes,rep) - - // Number of pod disruptions that are currently allowed. - disruptionsAllowed: int32 @go(DisruptionsAllowed) @protobuf(3,varint,opt) - - // current number of healthy pods - currentHealthy: int32 @go(CurrentHealthy) @protobuf(4,varint,opt) - - // minimum desired number of healthy pods - desiredHealthy: int32 @go(DesiredHealthy) @protobuf(5,varint,opt) - - // total number of pods counted by this disruption budget - expectedPods: int32 @go(ExpectedPods) @protobuf(6,varint,opt) - - // Conditions contain conditions for PDB. The disruption controller sets the - // DisruptionAllowed condition. The following are known values for the reason field - // (additional reasons could be added in the future): - // - SyncFailed: The controller encountered an error and wasn't able to compute - // the number of allowed disruptions. Therefore no disruptions are - // allowed and the status of the condition will be False. - // - InsufficientPods: The number of pods are either at or below the number - // required by the PodDisruptionBudget. No disruptions are - // allowed and the status of the condition will be False. - // - SufficientPods: There are more pods than required by the PodDisruptionBudget. - // The condition will be True, and the number of allowed - // disruptions are provided by the disruptionsAllowed property. - // - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - // +listType=map - // +listMapKey=type - conditions?: [...metav1.#Condition] @go(Conditions,[]metav1.Condition) @protobuf(7,bytes,rep) -} - -// DisruptionAllowedCondition is a condition set by the disruption controller -// that signal whether any of the pods covered by the PDB can be disrupted. -#DisruptionAllowedCondition: "DisruptionAllowed" - -// SyncFailedReason is set on the DisruptionAllowed condition if reconcile -// of the PDB failed and therefore disruption of pods are not allowed. -#SyncFailedReason: "SyncFailed" - -// SufficientPodsReason is set on the DisruptionAllowed condition if there are -// more pods covered by the PDB than required and at least one can be disrupted. -#SufficientPodsReason: "SufficientPods" - -// InsufficientPodsReason is set on the DisruptionAllowed condition if the number -// of pods are equal to or fewer than required by the PDB. -#InsufficientPodsReason: "InsufficientPods" - -// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods -#PodDisruptionBudget: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Specification of the desired behavior of the PodDisruptionBudget. - // +optional - spec?: #PodDisruptionBudgetSpec @go(Spec) @protobuf(2,bytes,opt) - - // Most recently observed status of the PodDisruptionBudget. - // +optional - status?: #PodDisruptionBudgetStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PodDisruptionBudgetList is a collection of PodDisruptionBudgets. -#PodDisruptionBudgetList: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items list individual PodDisruptionBudget objects - items: [...#PodDisruptionBudget] @go(Items,[]PodDisruptionBudget) @protobuf(2,bytes,rep) -} - -// Eviction evicts a pod from its node subject to certain policies and safety constraints. -// This is a subresource of Pod. A request to cause such an eviction is -// created by POSTing to .../pods//evictions. -#Eviction: { - metav1.#TypeMeta - - // ObjectMeta describes the pod that is being evicted. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // DeleteOptions may be provided - // +optional - deleteOptions?: null | metav1.#DeleteOptions @go(DeleteOptions,*metav1.DeleteOptions) @protobuf(2,bytes,opt) -} - -// PodSecurityPolicy governs the ability to make requests that affect the Security Context -// that will be applied to a pod and container. -// Deprecated in 1.21. -#PodSecurityPolicy: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec defines the policy enforced. - // +optional - spec?: #PodSecurityPolicySpec @go(Spec) @protobuf(2,bytes,opt) -} - -// PodSecurityPolicySpec defines the policy enforced. -#PodSecurityPolicySpec: { - // privileged determines if a pod can request to be run as privileged. - // +optional - privileged?: bool @go(Privileged) @protobuf(1,varint,opt) - - // defaultAddCapabilities is the default set of capabilities that will be added to the container - // unless the pod spec specifically drops the capability. You may not list a capability in both - // defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly - // allowed, and need not be included in the allowedCapabilities list. - // +optional - defaultAddCapabilities?: [...v1.#Capability] @go(DefaultAddCapabilities,[]v1.Capability) @protobuf(2,bytes,rep,casttype=k8s.io/api/core/v1.Capability) - - // requiredDropCapabilities are the capabilities that will be dropped from the container. These - // are required to be dropped and cannot be added. - // +optional - requiredDropCapabilities?: [...v1.#Capability] @go(RequiredDropCapabilities,[]v1.Capability) @protobuf(3,bytes,rep,casttype=k8s.io/api/core/v1.Capability) - - // allowedCapabilities is a list of capabilities that can be requested to add to the container. - // Capabilities in this field may be added at the pod author's discretion. - // You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - // +optional - allowedCapabilities?: [...v1.#Capability] @go(AllowedCapabilities,[]v1.Capability) @protobuf(4,bytes,rep,casttype=k8s.io/api/core/v1.Capability) - - // volumes is an allowlist of volume plugins. Empty indicates that - // no volumes may be used. To allow all volumes you may use '*'. - // +optional - volumes?: [...#FSType] @go(Volumes,[]FSType) @protobuf(5,bytes,rep,casttype=FSType) - - // hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - // +optional - hostNetwork?: bool @go(HostNetwork) @protobuf(6,varint,opt) - - // hostPorts determines which host port ranges are allowed to be exposed. - // +optional - hostPorts?: [...#HostPortRange] @go(HostPorts,[]HostPortRange) @protobuf(7,bytes,rep) - - // hostPID determines if the policy allows the use of HostPID in the pod spec. - // +optional - hostPID?: bool @go(HostPID) @protobuf(8,varint,opt) - - // hostIPC determines if the policy allows the use of HostIPC in the pod spec. - // +optional - hostIPC?: bool @go(HostIPC) @protobuf(9,varint,opt) - - // seLinux is the strategy that will dictate the allowable labels that may be set. - seLinux: #SELinuxStrategyOptions @go(SELinux) @protobuf(10,bytes,opt) - - // runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - runAsUser: #RunAsUserStrategyOptions @go(RunAsUser) @protobuf(11,bytes,opt) - - // RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. - // If this field is omitted, the pod's RunAsGroup can take any value. This field requires the - // RunAsGroup feature gate to be enabled. - // +optional - runAsGroup?: null | #RunAsGroupStrategyOptions @go(RunAsGroup,*RunAsGroupStrategyOptions) @protobuf(22,bytes,opt) - - // supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - supplementalGroups: #SupplementalGroupsStrategyOptions @go(SupplementalGroups) @protobuf(12,bytes,opt) - - // fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - fsGroup: #FSGroupStrategyOptions @go(FSGroup) @protobuf(13,bytes,opt) - - // readOnlyRootFilesystem when set to true will force containers to run with a read only root file - // system. If the container specifically requests to run with a non-read only root file system - // the PSP should deny the pod. - // If set to false the container may run with a read only root file system if it wishes but it - // will not be forced to. - // +optional - readOnlyRootFilesystem?: bool @go(ReadOnlyRootFilesystem) @protobuf(14,varint,opt) - - // defaultAllowPrivilegeEscalation controls the default setting for whether a - // process can gain more privileges than its parent process. - // +optional - defaultAllowPrivilegeEscalation?: null | bool @go(DefaultAllowPrivilegeEscalation,*bool) @protobuf(15,varint,opt) - - // allowPrivilegeEscalation determines if a pod can request to allow - // privilege escalation. If unspecified, defaults to true. - // +optional - allowPrivilegeEscalation?: null | bool @go(AllowPrivilegeEscalation,*bool) @protobuf(16,varint,opt) - - // allowedHostPaths is an allowlist of host paths. Empty indicates - // that all host paths may be used. - // +optional - allowedHostPaths?: [...#AllowedHostPath] @go(AllowedHostPaths,[]AllowedHostPath) @protobuf(17,bytes,rep) - - // allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that all - // Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes - // is allowed in the "volumes" field. - // +optional - allowedFlexVolumes?: [...#AllowedFlexVolume] @go(AllowedFlexVolumes,[]AllowedFlexVolume) @protobuf(18,bytes,rep) - - // AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. - // An empty value indicates that any CSI driver can be used for inline ephemeral volumes. - // +optional - allowedCSIDrivers?: [...#AllowedCSIDriver] @go(AllowedCSIDrivers,[]AllowedCSIDriver) @protobuf(23,bytes,rep) - - // allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. - // Each entry is either a plain sysctl name or ends in "*" in which case it is considered - // as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. - // Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection. - // - // Examples: - // e.g. "foo/*" allows "foo/bar", "foo/baz", etc. - // e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - // +optional - allowedUnsafeSysctls?: [...string] @go(AllowedUnsafeSysctls,[]string) @protobuf(19,bytes,rep) - - // forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. - // Each entry is either a plain sysctl name or ends in "*" in which case it is considered - // as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - // - // Examples: - // e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. - // e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - // +optional - forbiddenSysctls?: [...string] @go(ForbiddenSysctls,[]string) @protobuf(20,bytes,rep) - - // AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. - // Empty or nil indicates that only the DefaultProcMountType may be used. - // This requires the ProcMountType feature flag to be enabled. - // +optional - allowedProcMountTypes?: [...v1.#ProcMountType] @go(AllowedProcMountTypes,[]v1.ProcMountType) @protobuf(21,bytes,opt) - - // runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. - // If this field is omitted, the pod's runtimeClassName field is unrestricted. - // Enforcement of this field depends on the RuntimeClass feature gate being enabled. - // +optional - runtimeClass?: null | #RuntimeClassStrategyOptions @go(RuntimeClass,*RuntimeClassStrategyOptions) @protobuf(24,bytes,opt) -} - -// AllowedHostPath defines the host volume conditions that will be enabled by a policy -// for pods to use. It requires the path prefix to be defined. -#AllowedHostPath: { - // pathPrefix is the path prefix that the host volume must match. - // It does not support `*`. - // Trailing slashes are trimmed when validating the path prefix with a host path. - // - // Examples: - // `/foo` would allow `/foo`, `/foo/` and `/foo/bar` - // `/foo` would not allow `/food` or `/etc/foo` - pathPrefix?: string @go(PathPrefix) @protobuf(1,bytes,rep) - - // when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - // +optional - readOnly?: bool @go(ReadOnly) @protobuf(2,varint,opt) -} - -// FSType gives strong typing to different file systems that are used by volumes. -#FSType: string // #enumFSType - -#enumFSType: - #AzureFile | - #Flocker | - #FlexVolume | - #HostPath | - #EmptyDir | - #GCEPersistentDisk | - #AWSElasticBlockStore | - #GitRepo | - #Secret | - #NFS | - #ISCSI | - #Glusterfs | - #PersistentVolumeClaim | - #RBD | - #Cinder | - #CephFS | - #DownwardAPI | - #FC | - #ConfigMap | - #VsphereVolume | - #Quobyte | - #AzureDisk | - #PhotonPersistentDisk | - #StorageOS | - #Projected | - #PortworxVolume | - #ScaleIO | - #CSI | - #Ephemeral | - #All - -#AzureFile: #FSType & "azureFile" -#Flocker: #FSType & "flocker" -#FlexVolume: #FSType & "flexVolume" -#HostPath: #FSType & "hostPath" -#EmptyDir: #FSType & "emptyDir" -#GCEPersistentDisk: #FSType & "gcePersistentDisk" -#AWSElasticBlockStore: #FSType & "awsElasticBlockStore" -#GitRepo: #FSType & "gitRepo" -#Secret: #FSType & "secret" -#NFS: #FSType & "nfs" -#ISCSI: #FSType & "iscsi" -#Glusterfs: #FSType & "glusterfs" -#PersistentVolumeClaim: #FSType & "persistentVolumeClaim" -#RBD: #FSType & "rbd" -#Cinder: #FSType & "cinder" -#CephFS: #FSType & "cephFS" -#DownwardAPI: #FSType & "downwardAPI" -#FC: #FSType & "fc" -#ConfigMap: #FSType & "configMap" -#VsphereVolume: #FSType & "vsphereVolume" -#Quobyte: #FSType & "quobyte" -#AzureDisk: #FSType & "azureDisk" -#PhotonPersistentDisk: #FSType & "photonPersistentDisk" -#StorageOS: #FSType & "storageos" -#Projected: #FSType & "projected" -#PortworxVolume: #FSType & "portworxVolume" -#ScaleIO: #FSType & "scaleIO" -#CSI: #FSType & "csi" -#Ephemeral: #FSType & "ephemeral" -#All: #FSType & "*" - -// AllowedFlexVolume represents a single Flexvolume that is allowed to be used. -#AllowedFlexVolume: { - // driver is the name of the Flexvolume driver. - driver: string @go(Driver) @protobuf(1,bytes,opt) -} - -// AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. -#AllowedCSIDriver: { - // Name is the registered name of the CSI driver - name: string @go(Name) @protobuf(1,bytes,opt) -} - -// HostPortRange defines a range of host ports that will be enabled by a policy -// for pods to use. It requires both the start and end to be defined. -#HostPortRange: { - // min is the start of the range, inclusive. - min: int32 @go(Min) @protobuf(1,varint,opt) - - // max is the end of the range, inclusive. - max: int32 @go(Max) @protobuf(2,varint,opt) -} - -// SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. -#SELinuxStrategyOptions: { - // rule is the strategy that will dictate the allowable labels that may be set. - rule: #SELinuxStrategy @go(Rule) @protobuf(1,bytes,opt,casttype=SELinuxStrategy) - - // seLinuxOptions required to run as; required for MustRunAs - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - seLinuxOptions?: null | v1.#SELinuxOptions @go(SELinuxOptions,*v1.SELinuxOptions) @protobuf(2,bytes,opt) -} - -// SELinuxStrategy denotes strategy types for generating SELinux options for a -// Security Context. -#SELinuxStrategy: string // #enumSELinuxStrategy - -#enumSELinuxStrategy: - #SELinuxStrategyMustRunAs | - #SELinuxStrategyRunAsAny - -// SELinuxStrategyMustRunAs means that container must have SELinux labels of X applied. -#SELinuxStrategyMustRunAs: #SELinuxStrategy & "MustRunAs" - -// SELinuxStrategyRunAsAny means that container may make requests for any SELinux context labels. -#SELinuxStrategyRunAsAny: #SELinuxStrategy & "RunAsAny" - -// RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. -#RunAsUserStrategyOptions: { - // rule is the strategy that will dictate the allowable RunAsUser values that may be set. - rule: #RunAsUserStrategy @go(Rule) @protobuf(1,bytes,opt,casttype=RunAsUserStrategy) - - // ranges are the allowed ranges of uids that may be used. If you would like to force a single uid - // then supply a single range with the same start and end. Required for MustRunAs. - // +optional - ranges?: [...#IDRange] @go(Ranges,[]IDRange) @protobuf(2,bytes,rep) -} - -// RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. -#RunAsGroupStrategyOptions: { - // rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - rule: #RunAsGroupStrategy @go(Rule) @protobuf(1,bytes,opt,casttype=RunAsGroupStrategy) - - // ranges are the allowed ranges of gids that may be used. If you would like to force a single gid - // then supply a single range with the same start and end. Required for MustRunAs. - // +optional - ranges?: [...#IDRange] @go(Ranges,[]IDRange) @protobuf(2,bytes,rep) -} - -// IDRange provides a min/max of an allowed range of IDs. -#IDRange: { - // min is the start of the range, inclusive. - min: int64 @go(Min) @protobuf(1,varint,opt) - - // max is the end of the range, inclusive. - max: int64 @go(Max) @protobuf(2,varint,opt) -} - -// RunAsUserStrategy denotes strategy types for generating RunAsUser values for a -// Security Context. -#RunAsUserStrategy: string // #enumRunAsUserStrategy - -#enumRunAsUserStrategy: - #RunAsUserStrategyMustRunAs | - #RunAsUserStrategyMustRunAsNonRoot | - #RunAsUserStrategyRunAsAny - -// RunAsUserStrategyMustRunAs means that container must run as a particular uid. -#RunAsUserStrategyMustRunAs: #RunAsUserStrategy & "MustRunAs" - -// RunAsUserStrategyMustRunAsNonRoot means that container must run as a non-root uid. -#RunAsUserStrategyMustRunAsNonRoot: #RunAsUserStrategy & "MustRunAsNonRoot" - -// RunAsUserStrategyRunAsAny means that container may make requests for any uid. -#RunAsUserStrategyRunAsAny: #RunAsUserStrategy & "RunAsAny" - -// RunAsGroupStrategy denotes strategy types for generating RunAsGroup values for a -// Security Context. -#RunAsGroupStrategy: string // #enumRunAsGroupStrategy - -#enumRunAsGroupStrategy: - #RunAsGroupStrategyMayRunAs | - #RunAsGroupStrategyMustRunAs | - #RunAsGroupStrategyRunAsAny - -// RunAsGroupStrategyMayRunAs means that container does not need to run with a particular gid. -// However, when RunAsGroup are specified, they have to fall in the defined range. -#RunAsGroupStrategyMayRunAs: #RunAsGroupStrategy & "MayRunAs" - -// RunAsGroupStrategyMustRunAs means that container must run as a particular gid. -#RunAsGroupStrategyMustRunAs: #RunAsGroupStrategy & "MustRunAs" - -// RunAsUserStrategyRunAsAny means that container may make requests for any gid. -#RunAsGroupStrategyRunAsAny: #RunAsGroupStrategy & "RunAsAny" - -// FSGroupStrategyOptions defines the strategy type and options used to create the strategy. -#FSGroupStrategyOptions: { - // rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - // +optional - rule?: #FSGroupStrategyType @go(Rule) @protobuf(1,bytes,opt,casttype=FSGroupStrategyType) - - // ranges are the allowed ranges of fs groups. If you would like to force a single - // fs group then supply a single range with the same start and end. Required for MustRunAs. - // +optional - ranges?: [...#IDRange] @go(Ranges,[]IDRange) @protobuf(2,bytes,rep) -} - -// FSGroupStrategyType denotes strategy types for generating FSGroup values for a -// SecurityContext -#FSGroupStrategyType: string // #enumFSGroupStrategyType - -#enumFSGroupStrategyType: - #FSGroupStrategyMayRunAs | - #FSGroupStrategyMustRunAs | - #FSGroupStrategyRunAsAny - -// FSGroupStrategyMayRunAs means that container does not need to have FSGroup of X applied. -// However, when FSGroups are specified, they have to fall in the defined range. -#FSGroupStrategyMayRunAs: #FSGroupStrategyType & "MayRunAs" - -// FSGroupStrategyMustRunAs meant that container must have FSGroup of X applied. -#FSGroupStrategyMustRunAs: #FSGroupStrategyType & "MustRunAs" - -// FSGroupStrategyRunAsAny means that container may make requests for any FSGroup labels. -#FSGroupStrategyRunAsAny: #FSGroupStrategyType & "RunAsAny" - -// SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. -#SupplementalGroupsStrategyOptions: { - // rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - // +optional - rule?: #SupplementalGroupsStrategyType @go(Rule) @protobuf(1,bytes,opt,casttype=SupplementalGroupsStrategyType) - - // ranges are the allowed ranges of supplemental groups. If you would like to force a single - // supplemental group then supply a single range with the same start and end. Required for MustRunAs. - // +optional - ranges?: [...#IDRange] @go(Ranges,[]IDRange) @protobuf(2,bytes,rep) -} - -// SupplementalGroupsStrategyType denotes strategy types for determining valid supplemental -// groups for a SecurityContext. -#SupplementalGroupsStrategyType: string // #enumSupplementalGroupsStrategyType - -#enumSupplementalGroupsStrategyType: - #SupplementalGroupsStrategyMayRunAs | - #SupplementalGroupsStrategyMustRunAs | - #SupplementalGroupsStrategyRunAsAny - -// SupplementalGroupsStrategyMayRunAs means that container does not need to run with a particular gid. -// However, when gids are specified, they have to fall in the defined range. -#SupplementalGroupsStrategyMayRunAs: #SupplementalGroupsStrategyType & "MayRunAs" - -// SupplementalGroupsStrategyMustRunAs means that container must run as a particular gid. -#SupplementalGroupsStrategyMustRunAs: #SupplementalGroupsStrategyType & "MustRunAs" - -// SupplementalGroupsStrategyRunAsAny means that container may make requests for any gid. -#SupplementalGroupsStrategyRunAsAny: #SupplementalGroupsStrategyType & "RunAsAny" - -// RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses -// for a pod. -#RuntimeClassStrategyOptions: { - // allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. - // A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the - // list. An empty list requires the RuntimeClassName field to be unset. - allowedRuntimeClassNames: [...string] @go(AllowedRuntimeClassNames,[]string) @protobuf(1,bytes,rep) - - // defaultRuntimeClassName is the default RuntimeClassName to set on the pod. - // The default MUST be allowed by the allowedRuntimeClassNames list. - // A value of nil does not mutate the Pod. - // +optional - defaultRuntimeClassName?: null | string @go(DefaultRuntimeClassName,*string) @protobuf(2,bytes,opt) -} - -#AllowAllRuntimeClassNames: "*" - -// PodSecurityPolicyList is a list of PodSecurityPolicy objects. -#PodSecurityPolicyList: { - metav1.#TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is a list of schema objects. - items: [...#PodSecurityPolicy] @go(Items,[]PodSecurityPolicy) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/rbac/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/rbac/v1/register_go_gen.cue deleted file mode 100644 index 1c83e8b..0000000 --- a/cue.mod/gen/k8s.io/api/rbac/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/rbac/v1 - -package v1 - -#GroupName: "rbac.authorization.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/rbac/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/rbac/v1/types_go_gen.cue deleted file mode 100644 index acc67c6..0000000 --- a/cue.mod/gen/k8s.io/api/rbac/v1/types_go_gen.cue +++ /dev/null @@ -1,205 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/rbac/v1 - -package v1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -#APIGroupAll: "*" -#ResourceAll: "*" -#VerbAll: "*" -#NonResourceAll: "*" -#GroupKind: "Group" -#ServiceAccountKind: "ServiceAccount" -#UserKind: "User" - -// AutoUpdateAnnotationKey is the name of an annotation which prevents reconciliation if set to "false" -#AutoUpdateAnnotationKey: "rbac.authorization.kubernetes.io/autoupdate" - -// PolicyRule holds information that describes a policy rule, but does not contain information -// about who the rule applies to or which namespace the rule applies to. -#PolicyRule: { - // Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. - // +optional - apiGroups?: [...string] @go(APIGroups,[]string) @protobuf(2,bytes,rep) - - // Resources is a list of resources this rule applies to. '*' represents all resources. - // +optional - resources?: [...string] @go(Resources,[]string) @protobuf(3,bytes,rep) - - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - // +optional - resourceNames?: [...string] @go(ResourceNames,[]string) @protobuf(4,bytes,rep) - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path - // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. - // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - // +optional - nonResourceURLs?: [...string] @go(NonResourceURLs,[]string) @protobuf(5,bytes,rep) -} - -// Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, -// or a value for non-objects such as user and group names. -// +structType=atomic -#Subject: { - // Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". - // If the Authorizer does not recognized the kind value, the Authorizer should report an error. - kind: string @go(Kind) @protobuf(1,bytes,opt) - - // APIGroup holds the API group of the referenced subject. - // Defaults to "" for ServiceAccount subjects. - // Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - // +optional - apiGroup?: string @go(APIGroup) @protobuf(2,bytes,opt.name=apiGroup) - - // Name of the object being referenced. - name: string @go(Name) @protobuf(3,bytes,opt) - - // Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty - // the Authorizer should report an error. - // +optional - namespace?: string @go(Namespace) @protobuf(4,bytes,opt) -} - -// RoleRef contains information that points to the role being used -// +structType=atomic -#RoleRef: { - // APIGroup is the group for the resource being referenced - apiGroup: string @go(APIGroup) @protobuf(1,bytes,opt) - - // Kind is the type of resource being referenced - kind: string @go(Kind) @protobuf(2,bytes,opt) - - // Name is the name of resource being referenced - name: string @go(Name) @protobuf(3,bytes,opt) -} - -// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. -#Role: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Rules holds all the PolicyRules for this Role - // +optional - rules: [...#PolicyRule] @go(Rules,[]PolicyRule) @protobuf(2,bytes,rep) -} - -// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. -// It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given -// namespace only have effect in that namespace. -#RoleBinding: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Subjects holds references to the objects the role applies to. - // +optional - subjects?: [...#Subject] @go(Subjects,[]Subject) @protobuf(2,bytes,rep) - - // RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - roleRef: #RoleRef @go(RoleRef) @protobuf(3,bytes,opt) -} - -// RoleBindingList is a collection of RoleBindings -#RoleBindingList: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of RoleBindings - items: [...#RoleBinding] @go(Items,[]RoleBinding) @protobuf(2,bytes,rep) -} - -// RoleList is a collection of Roles -#RoleList: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of Roles - items: [...#Role] @go(Items,[]Role) @protobuf(2,bytes,rep) -} - -// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. -#ClusterRole: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Rules holds all the PolicyRules for this ClusterRole - // +optional - rules: [...#PolicyRule] @go(Rules,[]PolicyRule) @protobuf(2,bytes,rep) - - // AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. - // If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be - // stomped by the controller. - // +optional - aggregationRule?: null | #AggregationRule @go(AggregationRule,*AggregationRule) @protobuf(3,bytes,opt) -} - -// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole -#AggregationRule: { - // ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. - // If any of the selectors match, then the ClusterRole's permissions will be added - // +optional - clusterRoleSelectors?: [...metav1.#LabelSelector] @go(ClusterRoleSelectors,[]metav1.LabelSelector) @protobuf(1,bytes,rep) -} - -// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, -// and adds who information via Subject. -#ClusterRoleBinding: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Subjects holds references to the objects the role applies to. - // +optional - subjects?: [...#Subject] @go(Subjects,[]Subject) @protobuf(2,bytes,rep) - - // RoleRef can only reference a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - roleRef: #RoleRef @go(RoleRef) @protobuf(3,bytes,opt) -} - -// ClusterRoleBindingList is a collection of ClusterRoleBindings -#ClusterRoleBindingList: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of ClusterRoleBindings - items: [...#ClusterRoleBinding] @go(Items,[]ClusterRoleBinding) @protobuf(2,bytes,rep) -} - -// ClusterRoleList is a collection of ClusterRoles -#ClusterRoleList: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of ClusterRoles - items: [...#ClusterRole] @go(Items,[]ClusterRole) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/rbac/v1alpha1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/rbac/v1alpha1/register_go_gen.cue deleted file mode 100644 index 3fc0b23..0000000 --- a/cue.mod/gen/k8s.io/api/rbac/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/rbac/v1alpha1 - -package v1alpha1 - -#GroupName: "rbac.authorization.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/rbac/v1alpha1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/rbac/v1alpha1/types_go_gen.cue deleted file mode 100644 index 309f220..0000000 --- a/cue.mod/gen/k8s.io/api/rbac/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,212 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/rbac/v1alpha1 - -package v1alpha1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -#APIGroupAll: "*" -#ResourceAll: "*" -#VerbAll: "*" -#NonResourceAll: "*" -#GroupKind: "Group" -#ServiceAccountKind: "ServiceAccount" -#UserKind: "User" - -// AutoUpdateAnnotationKey is the name of an annotation which prevents reconciliation if set to "false" -#AutoUpdateAnnotationKey: "rbac.authorization.kubernetes.io/autoupdate" - -// PolicyRule holds information that describes a policy rule, but does not contain information -// about who the rule applies to or which namespace the rule applies to. -#PolicyRule: { - // Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. - // +optional - apiGroups?: [...string] @go(APIGroups,[]string) @protobuf(3,bytes,rep) - - // Resources is a list of resources this rule applies to. '*' represents all resources. - // +optional - resources?: [...string] @go(Resources,[]string) @protobuf(4,bytes,rep) - - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - // +optional - resourceNames?: [...string] @go(ResourceNames,[]string) @protobuf(5,bytes,rep) - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path - // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. - // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - // +optional - nonResourceURLs?: [...string] @go(NonResourceURLs,[]string) @protobuf(6,bytes,rep) -} - -// Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, -// or a value for non-objects such as user and group names. -#Subject: { - // Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". - // If the Authorizer does not recognized the kind value, the Authorizer should report an error. - kind: string @go(Kind) @protobuf(1,bytes,opt) - - // APIVersion holds the API group and version of the referenced subject. - // Defaults to "v1" for ServiceAccount subjects. - // Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - // +k8s:conversion-gen=false - // +optional - apiVersion?: string @go(APIVersion) @protobuf(2,bytes,opt.name=apiVersion) - - // Name of the object being referenced. - name: string @go(Name) @protobuf(3,bytes,opt) - - // Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty - // the Authorizer should report an error. - // +optional - namespace?: string @go(Namespace) @protobuf(4,bytes,opt) -} - -// RoleRef contains information that points to the role being used -#RoleRef: { - // APIGroup is the group for the resource being referenced - apiGroup: string @go(APIGroup) @protobuf(1,bytes,opt) - - // Kind is the type of resource being referenced - kind: string @go(Kind) @protobuf(2,bytes,opt) - - // Name is the name of resource being referenced - name: string @go(Name) @protobuf(3,bytes,opt) -} - -// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22. -#Role: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Rules holds all the PolicyRules for this Role - // +optional - rules: [...#PolicyRule] @go(Rules,[]PolicyRule) @protobuf(2,bytes,rep) -} - -// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. -// It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given -// namespace only have effect in that namespace. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22. -#RoleBinding: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Subjects holds references to the objects the role applies to. - // +optional - subjects?: [...#Subject] @go(Subjects,[]Subject) @protobuf(2,bytes,rep) - - // RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - roleRef: #RoleRef @go(RoleRef) @protobuf(3,bytes,opt) -} - -// RoleBindingList is a collection of RoleBindings -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22. -#RoleBindingList: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of RoleBindings - items: [...#RoleBinding] @go(Items,[]RoleBinding) @protobuf(2,bytes,rep) -} - -// RoleList is a collection of Roles. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22. -#RoleList: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of Roles - items: [...#Role] @go(Items,[]Role) @protobuf(2,bytes,rep) -} - -// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22. -#ClusterRole: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Rules holds all the PolicyRules for this ClusterRole - // +optional - rules: [...#PolicyRule] @go(Rules,[]PolicyRule) @protobuf(2,bytes,rep) - - // AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. - // If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be - // stomped by the controller. - // +optional - aggregationRule?: null | #AggregationRule @go(AggregationRule,*AggregationRule) @protobuf(3,bytes,opt) -} - -// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole -#AggregationRule: { - // ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. - // If any of the selectors match, then the ClusterRole's permissions will be added - // +optional - clusterRoleSelectors?: [...metav1.#LabelSelector] @go(ClusterRoleSelectors,[]metav1.LabelSelector) @protobuf(1,bytes,rep) -} - -// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, -// and adds who information via Subject. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22. -#ClusterRoleBinding: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Subjects holds references to the objects the role applies to. - // +optional - subjects?: [...#Subject] @go(Subjects,[]Subject) @protobuf(2,bytes,rep) - - // RoleRef can only reference a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - roleRef: #RoleRef @go(RoleRef) @protobuf(3,bytes,opt) -} - -// ClusterRoleBindingList is a collection of ClusterRoleBindings. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.22. -#ClusterRoleBindingList: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of ClusterRoleBindings - items: [...#ClusterRoleBinding] @go(Items,[]ClusterRoleBinding) @protobuf(2,bytes,rep) -} - -// ClusterRoleList is a collection of ClusterRoles. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22. -#ClusterRoleList: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of ClusterRoles - items: [...#ClusterRole] @go(Items,[]ClusterRole) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/rbac/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/rbac/v1beta1/register_go_gen.cue deleted file mode 100644 index ef24024..0000000 --- a/cue.mod/gen/k8s.io/api/rbac/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/rbac/v1beta1 - -package v1beta1 - -#GroupName: "rbac.authorization.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/rbac/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/rbac/v1beta1/types_go_gen.cue deleted file mode 100644 index d5441f2..0000000 --- a/cue.mod/gen/k8s.io/api/rbac/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,212 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/rbac/v1beta1 - -package v1beta1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -#APIGroupAll: "*" -#ResourceAll: "*" -#VerbAll: "*" -#NonResourceAll: "*" -#GroupKind: "Group" -#ServiceAccountKind: "ServiceAccount" -#UserKind: "User" - -// AutoUpdateAnnotationKey is the name of an annotation which prevents reconciliation if set to "false" -#AutoUpdateAnnotationKey: "rbac.authorization.kubernetes.io/autoupdate" - -// PolicyRule holds information that describes a policy rule, but does not contain information -// about who the rule applies to or which namespace the rule applies to. -#PolicyRule: { - // Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. - verbs: [...string] @go(Verbs,[]string) @protobuf(1,bytes,rep) - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. - // +optional - apiGroups?: [...string] @go(APIGroups,[]string) @protobuf(2,bytes,rep) - - // Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. - // '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. - // +optional - resources?: [...string] @go(Resources,[]string) @protobuf(3,bytes,rep) - - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - // +optional - resourceNames?: [...string] @go(ResourceNames,[]string) @protobuf(4,bytes,rep) - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path - // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. - // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - // +optional - nonResourceURLs?: [...string] @go(NonResourceURLs,[]string) @protobuf(5,bytes,rep) -} - -// Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, -// or a value for non-objects such as user and group names. -#Subject: { - // Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". - // If the Authorizer does not recognized the kind value, the Authorizer should report an error. - kind: string @go(Kind) @protobuf(1,bytes,opt) - - // APIGroup holds the API group of the referenced subject. - // Defaults to "" for ServiceAccount subjects. - // Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - // +optional - apiGroup?: string @go(APIGroup) @protobuf(2,bytes,opt.name=apiGroup) - - // Name of the object being referenced. - name: string @go(Name) @protobuf(3,bytes,opt) - - // Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty - // the Authorizer should report an error. - // +optional - namespace?: string @go(Namespace) @protobuf(4,bytes,opt) -} - -// RoleRef contains information that points to the role being used -#RoleRef: { - // APIGroup is the group for the resource being referenced - apiGroup: string @go(APIGroup) @protobuf(1,bytes,opt) - - // Kind is the type of resource being referenced - kind: string @go(Kind) @protobuf(2,bytes,opt) - - // Name is the name of resource being referenced - name: string @go(Name) @protobuf(3,bytes,opt) -} - -// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22. -#Role: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Rules holds all the PolicyRules for this Role - // +optional - rules: [...#PolicyRule] @go(Rules,[]PolicyRule) @protobuf(2,bytes,rep) -} - -// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. -// It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given -// namespace only have effect in that namespace. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22. -#RoleBinding: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Subjects holds references to the objects the role applies to. - // +optional - subjects?: [...#Subject] @go(Subjects,[]Subject) @protobuf(2,bytes,rep) - - // RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - roleRef: #RoleRef @go(RoleRef) @protobuf(3,bytes,opt) -} - -// RoleBindingList is a collection of RoleBindings -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22. -#RoleBindingList: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of RoleBindings - items: [...#RoleBinding] @go(Items,[]RoleBinding) @protobuf(2,bytes,rep) -} - -// RoleList is a collection of Roles -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22. -#RoleList: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of Roles - items: [...#Role] @go(Items,[]Role) @protobuf(2,bytes,rep) -} - -// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22. -#ClusterRole: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Rules holds all the PolicyRules for this ClusterRole - // +optional - rules: [...#PolicyRule] @go(Rules,[]PolicyRule) @protobuf(2,bytes,rep) - - // AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. - // If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be - // stomped by the controller. - // +optional - aggregationRule?: null | #AggregationRule @go(AggregationRule,*AggregationRule) @protobuf(3,bytes,opt) -} - -// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole -#AggregationRule: { - // ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. - // If any of the selectors match, then the ClusterRole's permissions will be added - // +optional - clusterRoleSelectors?: [...metav1.#LabelSelector] @go(ClusterRoleSelectors,[]metav1.LabelSelector) @protobuf(1,bytes,rep) -} - -// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, -// and adds who information via Subject. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22. -#ClusterRoleBinding: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Subjects holds references to the objects the role applies to. - // +optional - subjects?: [...#Subject] @go(Subjects,[]Subject) @protobuf(2,bytes,rep) - - // RoleRef can only reference a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - roleRef: #RoleRef @go(RoleRef) @protobuf(3,bytes,opt) -} - -// ClusterRoleBindingList is a collection of ClusterRoleBindings. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindingList, and will no longer be served in v1.22. -#ClusterRoleBindingList: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of ClusterRoleBindings - items: [...#ClusterRoleBinding] @go(Items,[]ClusterRoleBinding) @protobuf(2,bytes,rep) -} - -// ClusterRoleList is a collection of ClusterRoles. -// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22. -#ClusterRoleList: { - metav1.#TypeMeta - - // Standard object's metadata. - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is a list of ClusterRoles - items: [...#ClusterRole] @go(Items,[]ClusterRole) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/resource/v1alpha2/doc_go_gen.cue b/cue.mod/gen/k8s.io/api/resource/v1alpha2/doc_go_gen.cue deleted file mode 100644 index 0965a80..0000000 --- a/cue.mod/gen/k8s.io/api/resource/v1alpha2/doc_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/resource/v1alpha2 - -// Package v1alpha2 is the v1alpha2 version of the resource API. -package v1alpha2 diff --git a/cue.mod/gen/k8s.io/api/resource/v1alpha2/register_go_gen.cue b/cue.mod/gen/k8s.io/api/resource/v1alpha2/register_go_gen.cue deleted file mode 100644 index 7dad4bc..0000000 --- a/cue.mod/gen/k8s.io/api/resource/v1alpha2/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/resource/v1alpha2 - -package v1alpha2 - -#GroupName: "resource.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/resource/v1alpha2/types_go_gen.cue b/cue.mod/gen/k8s.io/api/resource/v1alpha2/types_go_gen.cue deleted file mode 100644 index bee8916..0000000 --- a/cue.mod/gen/k8s.io/api/resource/v1alpha2/types_go_gen.cue +++ /dev/null @@ -1,427 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/resource/v1alpha2 - -package v1alpha2 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/types" -) - -// ResourceClaim describes which resources are needed by a resource consumer. -// Its status tracks whether the resource has been allocated and what the -// resulting attributes are. -// -// This is an alpha type and requires enabling the DynamicResourceAllocation -// feature gate. -#ResourceClaim: { - metav1.#TypeMeta - - // Standard object metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec describes the desired attributes of a resource that then needs - // to be allocated. It can only be set once when creating the - // ResourceClaim. - spec: #ResourceClaimSpec @go(Spec) @protobuf(2,bytes) - - // Status describes whether the resource is available and with which - // attributes. - // +optional - status?: #ResourceClaimStatus @go(Status) @protobuf(3,bytes,opt) -} - -// ResourceClaimSpec defines how a resource is to be allocated. -#ResourceClaimSpec: { - // ResourceClassName references the driver and additional parameters - // via the name of a ResourceClass that was created as part of the - // driver deployment. - resourceClassName: string @go(ResourceClassName) @protobuf(1,bytes) - - // ParametersRef references a separate object with arbitrary parameters - // that will be used by the driver when allocating a resource for the - // claim. - // - // The object must be in the same namespace as the ResourceClaim. - // +optional - parametersRef?: null | #ResourceClaimParametersReference @go(ParametersRef,*ResourceClaimParametersReference) @protobuf(2,bytes,opt) - - // Allocation can start immediately or when a Pod wants to use the - // resource. "WaitForFirstConsumer" is the default. - // +optional - allocationMode?: #AllocationMode @go(AllocationMode) @protobuf(3,bytes,opt) -} - -// AllocationMode describes whether a ResourceClaim gets allocated immediately -// when it gets created (AllocationModeImmediate) or whether allocation is -// delayed until it is needed for a Pod -// (AllocationModeWaitForFirstConsumer). Other modes might get added in the -// future. -#AllocationMode: string // #enumAllocationMode - -#enumAllocationMode: - #AllocationModeWaitForFirstConsumer | - #AllocationModeImmediate - -// When a ResourceClaim has AllocationModeWaitForFirstConsumer, allocation is -// delayed until a Pod gets scheduled that needs the ResourceClaim. The -// scheduler will consider all resource requirements of that Pod and -// trigger allocation for a node that fits the Pod. -#AllocationModeWaitForFirstConsumer: #AllocationMode & "WaitForFirstConsumer" - -// When a ResourceClaim has AllocationModeImmediate, allocation starts -// as soon as the ResourceClaim gets created. This is done without -// considering the needs of Pods that will use the ResourceClaim -// because those Pods are not known yet. -#AllocationModeImmediate: #AllocationMode & "Immediate" - -// ResourceClaimStatus tracks whether the resource has been allocated and what -// the resulting attributes are. -#ResourceClaimStatus: { - // DriverName is a copy of the driver name from the ResourceClass at - // the time when allocation started. - // +optional - driverName?: string @go(DriverName) @protobuf(1,bytes,opt) - - // Allocation is set by the resource driver once a resource or set of - // resources has been allocated successfully. If this is not specified, the - // resources have not been allocated yet. - // +optional - allocation?: null | #AllocationResult @go(Allocation,*AllocationResult) @protobuf(2,bytes,opt) - - // ReservedFor indicates which entities are currently allowed to use - // the claim. A Pod which references a ResourceClaim which is not - // reserved for that Pod will not be started. - // - // There can be at most 32 such reservations. This may get increased in - // the future, but not reduced. - // - // +listType=map - // +listMapKey=uid - // +optional - reservedFor?: [...#ResourceClaimConsumerReference] @go(ReservedFor,[]ResourceClaimConsumerReference) @protobuf(3,bytes,opt) - - // DeallocationRequested indicates that a ResourceClaim is to be - // deallocated. - // - // The driver then must deallocate this claim and reset the field - // together with clearing the Allocation field. - // - // While DeallocationRequested is set, no new consumers may be added to - // ReservedFor. - // +optional - deallocationRequested?: bool @go(DeallocationRequested) @protobuf(4,varint,opt) -} - -#ResourceClaimReservedForMaxSize: 32 - -// AllocationResult contains attributes of an allocated resource. -#AllocationResult: { - // ResourceHandles contain the state associated with an allocation that - // should be maintained throughout the lifetime of a claim. Each - // ResourceHandle contains data that should be passed to a specific kubelet - // plugin once it lands on a node. This data is returned by the driver - // after a successful allocation and is opaque to Kubernetes. Driver - // documentation may explain to users how to interpret this data if needed. - // - // Setting this field is optional. It has a maximum size of 32 entries. - // If null (or empty), it is assumed this allocation will be processed by a - // single kubelet plugin with no ResourceHandle data attached. The name of - // the kubelet plugin invoked will match the DriverName set in the - // ResourceClaimStatus this AllocationResult is embedded in. - // - // +listType=atomic - // +optional - resourceHandles?: [...#ResourceHandle] @go(ResourceHandles,[]ResourceHandle) @protobuf(1,bytes,opt) - - // This field will get set by the resource driver after it has allocated - // the resource to inform the scheduler where it can schedule Pods using - // the ResourceClaim. - // - // Setting this field is optional. If null, the resource is available - // everywhere. - // +optional - availableOnNodes?: null | v1.#NodeSelector @go(AvailableOnNodes,*v1.NodeSelector) @protobuf(2,bytes,opt) - - // Shareable determines whether the resource supports more - // than one consumer at a time. - // +optional - shareable?: bool @go(Shareable) @protobuf(3,varint,opt) -} - -#AllocationResultResourceHandlesMaxSize: 32 - -// ResourceHandle holds opaque resource data for processing by a specific kubelet plugin. -#ResourceHandle: { - // DriverName specifies the name of the resource driver whose kubelet - // plugin should be invoked to process this ResourceHandle's data once it - // lands on a node. This may differ from the DriverName set in - // ResourceClaimStatus this ResourceHandle is embedded in. - driverName?: string @go(DriverName) @protobuf(1,bytes,opt) - - // Data contains the opaque data associated with this ResourceHandle. It is - // set by the controller component of the resource driver whose name - // matches the DriverName set in the ResourceClaimStatus this - // ResourceHandle is embedded in. It is set at allocation time and is - // intended for processing by the kubelet plugin whose name matches - // the DriverName set in this ResourceHandle. - // - // The maximum size of this field is 16KiB. This may get increased in the - // future, but not reduced. - // +optional - data?: string @go(Data) @protobuf(2,bytes,opt) -} - -#ResourceHandleDataMaxSize: 16384 - -// ResourceClaimList is a collection of claims. -#ResourceClaimList: { - metav1.#TypeMeta - - // Standard list metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of resource claims. - items: [...#ResourceClaim] @go(Items,[]ResourceClaim) @protobuf(2,bytes,rep) -} - -// PodSchedulingContext objects hold information that is needed to schedule -// a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation -// mode. -// -// This is an alpha type and requires enabling the DynamicResourceAllocation -// feature gate. -#PodSchedulingContext: { - metav1.#TypeMeta - - // Standard object metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec describes where resources for the Pod are needed. - spec: #PodSchedulingContextSpec @go(Spec) @protobuf(2,bytes) - - // Status describes where resources for the Pod can be allocated. - // +optional - status?: #PodSchedulingContextStatus @go(Status) @protobuf(3,bytes,opt) -} - -// PodSchedulingContextSpec describes where resources for the Pod are needed. -#PodSchedulingContextSpec: { - // SelectedNode is the node for which allocation of ResourceClaims that - // are referenced by the Pod and that use "WaitForFirstConsumer" - // allocation is to be attempted. - // +optional - selectedNode?: string @go(SelectedNode) @protobuf(1,bytes,opt) - - // PotentialNodes lists nodes where the Pod might be able to run. - // - // The size of this field is limited to 128. This is large enough for - // many clusters. Larger clusters may need more attempts to find a node - // that suits all pending resources. This may get increased in the - // future, but not reduced. - // - // +listType=set - // +optional - potentialNodes?: [...string] @go(PotentialNodes,[]string) @protobuf(2,bytes,opt) -} - -// PodSchedulingContextStatus describes where resources for the Pod can be allocated. -#PodSchedulingContextStatus: { - // ResourceClaims describes resource availability for each - // pod.spec.resourceClaim entry where the corresponding ResourceClaim - // uses "WaitForFirstConsumer" allocation mode. - // - // +listType=map - // +listMapKey=name - // +optional - resourceClaims?: [...#ResourceClaimSchedulingStatus] @go(ResourceClaims,[]ResourceClaimSchedulingStatus) @protobuf(1,bytes,opt) -} - -// ResourceClaimSchedulingStatus contains information about one particular -// ResourceClaim with "WaitForFirstConsumer" allocation mode. -#ResourceClaimSchedulingStatus: { - // Name matches the pod.spec.resourceClaims[*].Name field. - // +optional - name?: string @go(Name) @protobuf(1,bytes,opt) - - // UnsuitableNodes lists nodes that the ResourceClaim cannot be - // allocated for. - // - // The size of this field is limited to 128, the same as for - // PodSchedulingSpec.PotentialNodes. This may get increased in the - // future, but not reduced. - // - // +listType=set - // +optional - unsuitableNodes?: [...string] @go(UnsuitableNodes,[]string) @protobuf(2,bytes,opt) -} - -#PodSchedulingNodeListMaxSize: 128 - -// PodSchedulingContextList is a collection of Pod scheduling objects. -#PodSchedulingContextList: { - metav1.#TypeMeta - - // Standard list metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of PodSchedulingContext objects. - items: [...#PodSchedulingContext] @go(Items,[]PodSchedulingContext) @protobuf(2,bytes,rep) -} - -// ResourceClass is used by administrators to influence how resources -// are allocated. -// -// This is an alpha type and requires enabling the DynamicResourceAllocation -// feature gate. -#ResourceClass: { - metav1.#TypeMeta - - // Standard object metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // DriverName defines the name of the dynamic resource driver that is - // used for allocation of a ResourceClaim that uses this class. - // - // Resource drivers have a unique name in forward domain order - // (acme.example.com). - driverName: string @go(DriverName) @protobuf(2,bytes) - - // ParametersRef references an arbitrary separate object that may hold - // parameters that will be used by the driver when allocating a - // resource that uses this class. A dynamic resource driver can - // distinguish between parameters stored here and and those stored in - // ResourceClaimSpec. - // +optional - parametersRef?: null | #ResourceClassParametersReference @go(ParametersRef,*ResourceClassParametersReference) @protobuf(3,bytes,opt) - - // Only nodes matching the selector will be considered by the scheduler - // when trying to find a Node that fits a Pod when that Pod uses - // a ResourceClaim that has not been allocated yet. - // - // Setting this field is optional. If null, all nodes are candidates. - // +optional - suitableNodes?: null | v1.#NodeSelector @go(SuitableNodes,*v1.NodeSelector) @protobuf(4,bytes,opt) -} - -// ResourceClassList is a collection of classes. -#ResourceClassList: { - metav1.#TypeMeta - - // Standard list metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of resource classes. - items: [...#ResourceClass] @go(Items,[]ResourceClass) @protobuf(2,bytes,rep) -} - -// ResourceClassParametersReference contains enough information to let you -// locate the parameters for a ResourceClass. -#ResourceClassParametersReference: { - // APIGroup is the group for the resource being referenced. It is - // empty for the core API. This matches the group in the APIVersion - // that is used when creating the resources. - // +optional - apiGroup?: string @go(APIGroup) @protobuf(1,bytes,opt) - - // Kind is the type of resource being referenced. This is the same - // value as in the parameter object's metadata. - kind: string @go(Kind) @protobuf(2,bytes) - - // Name is the name of resource being referenced. - name: string @go(Name) @protobuf(3,bytes) - - // Namespace that contains the referenced resource. Must be empty - // for cluster-scoped resources and non-empty for namespaced - // resources. - // +optional - namespace?: string @go(Namespace) @protobuf(4,bytes,opt) -} - -// ResourceClaimParametersReference contains enough information to let you -// locate the parameters for a ResourceClaim. The object must be in the same -// namespace as the ResourceClaim. -#ResourceClaimParametersReference: { - // APIGroup is the group for the resource being referenced. It is - // empty for the core API. This matches the group in the APIVersion - // that is used when creating the resources. - // +optional - apiGroup?: string @go(APIGroup) @protobuf(1,bytes,opt) - - // Kind is the type of resource being referenced. This is the same - // value as in the parameter object's metadata, for example "ConfigMap". - kind: string @go(Kind) @protobuf(2,bytes) - - // Name is the name of resource being referenced. - name: string @go(Name) @protobuf(3,bytes) -} - -// ResourceClaimConsumerReference contains enough information to let you -// locate the consumer of a ResourceClaim. The user must be a resource in the same -// namespace as the ResourceClaim. -#ResourceClaimConsumerReference: { - // APIGroup is the group for the resource being referenced. It is - // empty for the core API. This matches the group in the APIVersion - // that is used when creating the resources. - // +optional - apiGroup?: string @go(APIGroup) @protobuf(1,bytes,opt) - - // Resource is the type of resource being referenced, for example "pods". - resource: string @go(Resource) @protobuf(3,bytes) - - // Name is the name of resource being referenced. - name: string @go(Name) @protobuf(4,bytes) - - // UID identifies exactly one incarnation of the resource. - uid: types.#UID @go(UID) @protobuf(5,bytes) -} - -// ResourceClaimTemplate is used to produce ResourceClaim objects. -#ResourceClaimTemplate: { - metav1.#TypeMeta - - // Standard object metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Describes the ResourceClaim that is to be generated. - // - // This field is immutable. A ResourceClaim will get created by the - // control plane for a Pod when needed and then not get updated - // anymore. - spec: #ResourceClaimTemplateSpec @go(Spec) @protobuf(2,bytes) -} - -// ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. -#ResourceClaimTemplateSpec: { - // ObjectMeta may contain labels and annotations that will be copied into the PVC - // when creating it. No other fields are allowed and will be rejected during - // validation. - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // Spec for the ResourceClaim. The entire content is copied unchanged - // into the ResourceClaim that gets created from this template. The - // same fields as in a ResourceClaim are also valid here. - spec: #ResourceClaimSpec @go(Spec) @protobuf(2,bytes) -} - -// ResourceClaimTemplateList is a collection of claim templates. -#ResourceClaimTemplateList: { - metav1.#TypeMeta - - // Standard list metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Items is the list of resource claim templates. - items: [...#ResourceClaimTemplate] @go(Items,[]ResourceClaimTemplate) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/scheduling/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/scheduling/v1/register_go_gen.cue deleted file mode 100644 index 8cc2b5f..0000000 --- a/cue.mod/gen/k8s.io/api/scheduling/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/scheduling/v1 - -package v1 - -#GroupName: "scheduling.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/scheduling/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/scheduling/v1/types_go_gen.cue deleted file mode 100644 index 1d8f957..0000000 --- a/cue.mod/gen/k8s.io/api/scheduling/v1/types_go_gen.cue +++ /dev/null @@ -1,57 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/scheduling/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - apiv1 "k8s.io/api/core/v1" -) - -// PriorityClass defines mapping from a priority class name to the priority -// integer value. The value can be any valid integer. -#PriorityClass: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // value represents the integer value of this priority class. This is the actual priority that pods - // receive when they have the name of this class in their pod spec. - value: int32 @go(Value) @protobuf(2,bytes,opt) - - // globalDefault specifies whether this PriorityClass should be considered as - // the default priority for pods that do not have any priority class. - // Only one PriorityClass can be marked as `globalDefault`. However, if more than - // one PriorityClasses exists with their `globalDefault` field set to true, - // the smallest value of such global default PriorityClasses will be used as the default priority. - // +optional - globalDefault?: bool @go(GlobalDefault) @protobuf(3,bytes,opt) - - // description is an arbitrary string that usually provides guidelines on - // when this priority class should be used. - // +optional - description?: string @go(Description) @protobuf(4,bytes,opt) - - // preemptionPolicy is the Policy for preempting pods with lower priority. - // One of Never, PreemptLowerPriority. - // Defaults to PreemptLowerPriority if unset. - // +optional - preemptionPolicy?: null | apiv1.#PreemptionPolicy @go(PreemptionPolicy,*apiv1.PreemptionPolicy) @protobuf(5,bytes,opt) -} - -// PriorityClassList is a collection of priority classes. -#PriorityClassList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of PriorityClasses - items: [...#PriorityClass] @go(Items,[]PriorityClass) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/scheduling/v1alpha1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/scheduling/v1alpha1/register_go_gen.cue deleted file mode 100644 index 5b34a19..0000000 --- a/cue.mod/gen/k8s.io/api/scheduling/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/scheduling/v1alpha1 - -package v1alpha1 - -#GroupName: "scheduling.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/scheduling/v1alpha1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/scheduling/v1alpha1/types_go_gen.cue deleted file mode 100644 index 1e719c7..0000000 --- a/cue.mod/gen/k8s.io/api/scheduling/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/scheduling/v1alpha1 - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - apiv1 "k8s.io/api/core/v1" -) - -// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. -// PriorityClass defines mapping from a priority class name to the priority -// integer value. The value can be any valid integer. -#PriorityClass: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // value represents the integer value of this priority class. This is the actual priority that pods - // receive when they have the name of this class in their pod spec. - value: int32 @go(Value) @protobuf(2,bytes,opt) - - // globalDefault specifies whether this PriorityClass should be considered as - // the default priority for pods that do not have any priority class. - // Only one PriorityClass can be marked as `globalDefault`. However, if more than - // one PriorityClasses exists with their `globalDefault` field set to true, - // the smallest value of such global default PriorityClasses will be used as the default priority. - // +optional - globalDefault?: bool @go(GlobalDefault) @protobuf(3,bytes,opt) - - // description is an arbitrary string that usually provides guidelines on - // when this priority class should be used. - // +optional - description?: string @go(Description) @protobuf(4,bytes,opt) - - // preemptionPolicy is the Policy for preempting pods with lower priority. - // One of Never, PreemptLowerPriority. - // Defaults to PreemptLowerPriority if unset. - // +optional - preemptionPolicy?: null | apiv1.#PreemptionPolicy @go(PreemptionPolicy,*apiv1.PreemptionPolicy) @protobuf(5,bytes,opt) -} - -// PriorityClassList is a collection of priority classes. -#PriorityClassList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of PriorityClasses - items: [...#PriorityClass] @go(Items,[]PriorityClass) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/scheduling/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/scheduling/v1beta1/register_go_gen.cue deleted file mode 100644 index 3dff0b8..0000000 --- a/cue.mod/gen/k8s.io/api/scheduling/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/scheduling/v1beta1 - -package v1beta1 - -#GroupName: "scheduling.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/scheduling/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/scheduling/v1beta1/types_go_gen.cue deleted file mode 100644 index b9066ca..0000000 --- a/cue.mod/gen/k8s.io/api/scheduling/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/scheduling/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - apiv1 "k8s.io/api/core/v1" -) - -// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. -// PriorityClass defines mapping from a priority class name to the priority -// integer value. The value can be any valid integer. -#PriorityClass: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // value represents the integer value of this priority class. This is the actual priority that pods - // receive when they have the name of this class in their pod spec. - value: int32 @go(Value) @protobuf(2,bytes,opt) - - // globalDefault specifies whether this PriorityClass should be considered as - // the default priority for pods that do not have any priority class. - // Only one PriorityClass can be marked as `globalDefault`. However, if more than - // one PriorityClasses exists with their `globalDefault` field set to true, - // the smallest value of such global default PriorityClasses will be used as the default priority. - // +optional - globalDefault?: bool @go(GlobalDefault) @protobuf(3,bytes,opt) - - // description is an arbitrary string that usually provides guidelines on - // when this priority class should be used. - // +optional - description?: string @go(Description) @protobuf(4,bytes,opt) - - // preemptionPolicy is the Policy for preempting pods with lower priority. - // One of Never, PreemptLowerPriority. - // Defaults to PreemptLowerPriority if unset. - // +optional - preemptionPolicy?: null | apiv1.#PreemptionPolicy @go(PreemptionPolicy,*apiv1.PreemptionPolicy) @protobuf(5,bytes,opt) -} - -// PriorityClassList is a collection of priority classes. -#PriorityClassList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of PriorityClasses - items: [...#PriorityClass] @go(Items,[]PriorityClass) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/storage/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/storage/v1/register_go_gen.cue deleted file mode 100644 index 641ce60..0000000 --- a/cue.mod/gen/k8s.io/api/storage/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/storage/v1 - -package v1 - -#GroupName: "storage.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/storage/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/storage/v1/types_go_gen.cue deleted file mode 100644 index b515865..0000000 --- a/cue.mod/gen/k8s.io/api/storage/v1/types_go_gen.cue +++ /dev/null @@ -1,652 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/storage/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/api/resource" -) - -// StorageClass describes the parameters for a class of storage for -// which PersistentVolumes can be dynamically provisioned. -// -// StorageClasses are non-namespaced; the name of the storage class -// according to etcd is in ObjectMeta.Name. -#StorageClass: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // provisioner indicates the type of the provisioner. - provisioner: string @go(Provisioner) @protobuf(2,bytes,opt) - - // parameters holds the parameters for the provisioner that should - // create volumes of this storage class. - // +optional - parameters?: {[string]: string} @go(Parameters,map[string]string) @protobuf(3,bytes,rep) - - // reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. - // Defaults to Delete. - // +optional - reclaimPolicy?: null | v1.#PersistentVolumeReclaimPolicy @go(ReclaimPolicy,*v1.PersistentVolumeReclaimPolicy) @protobuf(4,bytes,opt,casttype=k8s.io/api/core/v1.PersistentVolumeReclaimPolicy) - - // mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. - // e.g. ["ro", "soft"]. Not validated - - // mount of the PVs will simply fail if one is invalid. - // +optional - mountOptions?: [...string] @go(MountOptions,[]string) @protobuf(5,bytes,opt) - - // allowVolumeExpansion shows whether the storage class allow volume expand. - // +optional - allowVolumeExpansion?: null | bool @go(AllowVolumeExpansion,*bool) @protobuf(6,varint,opt) - - // volumeBindingMode indicates how PersistentVolumeClaims should be - // provisioned and bound. When unset, VolumeBindingImmediate is used. - // This field is only honored by servers that enable the VolumeScheduling feature. - // +optional - volumeBindingMode?: null | #VolumeBindingMode @go(VolumeBindingMode,*VolumeBindingMode) @protobuf(7,bytes,opt) - - // allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. - // Each volume plugin defines its own supported topology specifications. - // An empty TopologySelectorTerm list means there is no topology restriction. - // This field is only honored by servers that enable the VolumeScheduling feature. - // +optional - // +listType=atomic - allowedTopologies?: [...v1.#TopologySelectorTerm] @go(AllowedTopologies,[]v1.TopologySelectorTerm) @protobuf(8,bytes,rep) -} - -// StorageClassList is a collection of storage classes. -#StorageClassList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of StorageClasses - items: [...#StorageClass] @go(Items,[]StorageClass) @protobuf(2,bytes,rep) -} - -// VolumeBindingMode indicates how PersistentVolumeClaims should be bound. -// +enum -#VolumeBindingMode: string // #enumVolumeBindingMode - -#enumVolumeBindingMode: - #VolumeBindingImmediate | - #VolumeBindingWaitForFirstConsumer - -// VolumeBindingImmediate indicates that PersistentVolumeClaims should be -// immediately provisioned and bound. This is the default mode. -#VolumeBindingImmediate: #VolumeBindingMode & "Immediate" - -// VolumeBindingWaitForFirstConsumer indicates that PersistentVolumeClaims -// should not be provisioned and bound until the first Pod is created that -// references the PeristentVolumeClaim. The volume provisioning and -// binding will occur during Pod scheduing. -#VolumeBindingWaitForFirstConsumer: #VolumeBindingMode & "WaitForFirstConsumer" - -// VolumeAttachment captures the intent to attach or detach the specified volume -// to/from the specified node. -// -// VolumeAttachment objects are non-namespaced. -#VolumeAttachment: { - metav1.#TypeMeta - - // Standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec represents specification of the desired attach/detach volume behavior. - // Populated by the Kubernetes system. - spec: #VolumeAttachmentSpec @go(Spec) @protobuf(2,bytes,opt) - - // status represents status of the VolumeAttachment request. - // Populated by the entity completing the attach or detach - // operation, i.e. the external-attacher. - // +optional - status?: #VolumeAttachmentStatus @go(Status) @protobuf(3,bytes,opt) -} - -// VolumeAttachmentList is a collection of VolumeAttachment objects. -#VolumeAttachmentList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of VolumeAttachments - items: [...#VolumeAttachment] @go(Items,[]VolumeAttachment) @protobuf(2,bytes,rep) -} - -// VolumeAttachmentSpec is the specification of a VolumeAttachment request. -#VolumeAttachmentSpec: { - // attacher indicates the name of the volume driver that MUST handle this - // request. This is the name returned by GetPluginName(). - attacher: string @go(Attacher) @protobuf(1,bytes,opt) - - // source represents the volume that should be attached. - source: #VolumeAttachmentSource @go(Source) @protobuf(2,bytes,opt) - - // nodeName represents the node that the volume should be attached to. - nodeName: string @go(NodeName) @protobuf(3,bytes,opt) -} - -// VolumeAttachmentSource represents a volume that should be attached. -// Right now only PersistenVolumes can be attached via external attacher, -// in future we may allow also inline volumes in pods. -// Exactly one member can be set. -#VolumeAttachmentSource: { - // persistentVolumeName represents the name of the persistent volume to attach. - // +optional - persistentVolumeName?: null | string @go(PersistentVolumeName,*string) @protobuf(1,bytes,opt) - - // inlineVolumeSpec contains all the information necessary to attach - // a persistent volume defined by a pod's inline VolumeSource. This field - // is populated only for the CSIMigration feature. It contains - // translated fields from a pod's inline VolumeSource to a - // PersistentVolumeSpec. This field is beta-level and is only - // honored by servers that enabled the CSIMigration feature. - // +optional - inlineVolumeSpec?: null | v1.#PersistentVolumeSpec @go(InlineVolumeSpec,*v1.PersistentVolumeSpec) @protobuf(2,bytes,opt) -} - -// VolumeAttachmentStatus is the status of a VolumeAttachment request. -#VolumeAttachmentStatus: { - // attached indicates the volume is successfully attached. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - attached: bool @go(Attached) @protobuf(1,varint,opt) - - // attachmentMetadata is populated with any - // information returned by the attach operation, upon successful attach, that must be passed - // into subsequent WaitForAttach or Mount calls. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - attachmentMetadata?: {[string]: string} @go(AttachmentMetadata,map[string]string) @protobuf(2,bytes,rep) - - // attachError represents the last error encountered during attach operation, if any. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - attachError?: null | #VolumeError @go(AttachError,*VolumeError) @protobuf(3,bytes,opt,casttype=VolumeError) - - // detachError represents the last error encountered during detach operation, if any. - // This field must only be set by the entity completing the detach - // operation, i.e. the external-attacher. - // +optional - detachError?: null | #VolumeError @go(DetachError,*VolumeError) @protobuf(4,bytes,opt,casttype=VolumeError) -} - -// VolumeError captures an error encountered during a volume operation. -#VolumeError: { - // time represents the time the error was encountered. - // +optional - time?: metav1.#Time @go(Time) @protobuf(1,bytes,opt) - - // message represents the error encountered during Attach or Detach operation. - // This string may be logged, so it should not contain sensitive - // information. - // +optional - message?: string @go(Message) @protobuf(2,bytes,opt) -} - -// CSIDriver captures information about a Container Storage Interface (CSI) -// volume driver deployed on the cluster. -// Kubernetes attach detach controller uses this object to determine whether attach is required. -// Kubelet uses this object to determine whether pod information needs to be passed on mount. -// CSIDriver objects are non-namespaced. -#CSIDriver: { - metav1.#TypeMeta - - // Standard object metadata. - // metadata.Name indicates the name of the CSI driver that this object - // refers to; it MUST be the same name returned by the CSI GetPluginName() - // call for that driver. - // The driver name must be 63 characters or less, beginning and ending with - // an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and - // alphanumerics between. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec represents the specification of the CSI Driver. - spec: #CSIDriverSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// CSIDriverList is a collection of CSIDriver objects. -#CSIDriverList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of CSIDriver - items: [...#CSIDriver] @go(Items,[]CSIDriver) @protobuf(2,bytes,rep) -} - -// CSIDriverSpec is the specification of a CSIDriver. -#CSIDriverSpec: { - // attachRequired indicates this CSI volume driver requires an attach - // operation (because it implements the CSI ControllerPublishVolume() - // method), and that the Kubernetes attach detach controller should call - // the attach volume interface which checks the volumeattachment status - // and waits until the volume is attached before proceeding to mounting. - // The CSI external-attacher coordinates with CSI volume driver and updates - // the volumeattachment status when the attach operation is complete. - // If the CSIDriverRegistry feature gate is enabled and the value is - // specified to false, the attach operation will be skipped. - // Otherwise the attach operation will be called. - // - // This field is immutable. - // - // +optional - attachRequired?: null | bool @go(AttachRequired,*bool) @protobuf(1,varint,opt) - - // podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) - // during mount operations, if set to true. - // If set to false, pod information will not be passed on mount. - // Default is false. - // - // The CSI driver specifies podInfoOnMount as part of driver deployment. - // If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. - // The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. - // - // The following VolumeConext will be passed if podInfoOnMount is set to true. - // This list might grow, but the prefix will be used. - // "csi.storage.k8s.io/pod.name": pod.Name - // "csi.storage.k8s.io/pod.namespace": pod.Namespace - // "csi.storage.k8s.io/pod.uid": string(pod.UID) - // "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume - // defined by a CSIVolumeSource, otherwise "false" - // - // "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only - // required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. - // Other drivers can leave pod info disabled and/or ignore this field. - // As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when - // deployed on such a cluster and the deployment determines which mode that is, for example - // via a command line parameter of the driver. - // - // This field is immutable. - // - // +optional - podInfoOnMount?: null | bool @go(PodInfoOnMount,*bool) @protobuf(2,bytes,opt) - - // volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. - // The default if the list is empty is "Persistent", which is the usage defined by the - // CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. - // - // The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec - // with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. - // A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. - // - // For more information about implementing this mode, see - // https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html - // A driver can support one or more of these modes and more modes may be added in the future. - // - // This field is beta. - // This field is immutable. - // - // +optional - // +listType=set - volumeLifecycleModes?: [...#VolumeLifecycleMode] @go(VolumeLifecycleModes,[]VolumeLifecycleMode) @protobuf(3,bytes,opt) - - // storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage - // capacity that the driver deployment will report by creating - // CSIStorageCapacity objects with capacity information, if set to true. - // - // The check can be enabled immediately when deploying a driver. - // In that case, provisioning new volumes with late binding - // will pause until the driver deployment has published - // some suitable CSIStorageCapacity object. - // - // Alternatively, the driver can be deployed with the field - // unset or false and it can be flipped later when storage - // capacity information has been published. - // - // This field was immutable in Kubernetes <= 1.22 and now is mutable. - // - // +optional - // +featureGate=CSIStorageCapacity - storageCapacity?: null | bool @go(StorageCapacity,*bool) @protobuf(4,bytes,opt) - - // fsGroupPolicy defines if the underlying volume supports changing ownership and - // permission of the volume before being mounted. - // Refer to the specific FSGroupPolicy values for additional details. - // - // This field is immutable. - // - // Defaults to ReadWriteOnceWithFSType, which will examine each volume - // to determine if Kubernetes should modify ownership and permissions of the volume. - // With the default policy the defined fsGroup will only be applied - // if a fstype is defined and the volume's access mode contains ReadWriteOnce. - // - // +optional - fsGroupPolicy?: null | #FSGroupPolicy @go(FSGroupPolicy,*FSGroupPolicy) @protobuf(5,bytes,opt) - - // tokenRequests indicates the CSI driver needs pods' service account - // tokens it is mounting volume for to do necessary authentication. Kubelet - // will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. - // The CSI driver should parse and validate the following VolumeContext: - // "csi.storage.k8s.io/serviceAccount.tokens": { - // "": { - // "token": , - // "expirationTimestamp": , - // }, - // ... - // } - // - // Note: Audience in each TokenRequest should be different and at - // most one token is empty string. To receive a new token after expiry, - // RequiresRepublish can be used to trigger NodePublishVolume periodically. - // - // +optional - // +listType=atomic - tokenRequests?: [...#TokenRequest] @go(TokenRequests,[]TokenRequest) @protobuf(6,bytes,opt) - - // requiresRepublish indicates the CSI driver wants `NodePublishVolume` - // being periodically called to reflect any possible change in the mounted - // volume. This field defaults to false. - // - // Note: After a successful initial NodePublishVolume call, subsequent calls - // to NodePublishVolume should only update the contents of the volume. New - // mount points will not be seen by a running container. - // - // +optional - requiresRepublish?: null | bool @go(RequiresRepublish,*bool) @protobuf(7,varint,opt) - - // seLinuxMount specifies if the CSI driver supports "-o context" - // mount option. - // - // When "true", the CSI driver must ensure that all volumes provided by this CSI - // driver can be mounted separately with different `-o context` options. This is - // typical for storage backends that provide volumes as filesystems on block - // devices or as independent shared volumes. - // Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount - // option when mounting a ReadWriteOncePod volume used in Pod that has - // explicitly set SELinux context. In the future, it may be expanded to other - // volume AccessModes. In any case, Kubernetes will ensure that the volume is - // mounted only with a single SELinux context. - // - // When "false", Kubernetes won't pass any special SELinux mount options to the driver. - // This is typical for volumes that represent subdirectories of a bigger shared filesystem. - // - // Default is "false". - // - // +featureGate=SELinuxMountReadWriteOncePod - // +optional - seLinuxMount?: null | bool @go(SELinuxMount,*bool) @protobuf(8,varint,opt) -} - -// FSGroupPolicy specifies if a CSI Driver supports modifying -// volume ownership and permissions of the volume to be mounted. -// More modes may be added in the future. -#FSGroupPolicy: string // #enumFSGroupPolicy - -#enumFSGroupPolicy: - #ReadWriteOnceWithFSTypeFSGroupPolicy | - #FileFSGroupPolicy | - #NoneFSGroupPolicy - -// ReadWriteOnceWithFSTypeFSGroupPolicy indicates that each volume will be examined -// to determine if the volume ownership and permissions -// should be modified. If a fstype is defined and the volume's access mode -// contains ReadWriteOnce, then the defined fsGroup will be applied. -// This mode should be defined if it's expected that the -// fsGroup may need to be modified depending on the pod's SecurityPolicy. -// This is the default behavior if no other FSGroupPolicy is defined. -#ReadWriteOnceWithFSTypeFSGroupPolicy: #FSGroupPolicy & "ReadWriteOnceWithFSType" - -// FileFSGroupPolicy indicates that CSI driver supports volume ownership -// and permission change via fsGroup, and Kubernetes will change the permissions -// and ownership of every file in the volume to match the user requested fsGroup in -// the pod's SecurityPolicy regardless of fstype or access mode. -// Use this mode if Kubernetes should modify the permissions and ownership -// of the volume. -#FileFSGroupPolicy: #FSGroupPolicy & "File" - -// NoneFSGroupPolicy indicates that volumes will be mounted without performing -// any ownership or permission modifications, as the CSIDriver does not support -// these operations. -// This mode should be selected if the CSIDriver does not support fsGroup modifications, -// for example when Kubernetes cannot change ownership and permissions on a volume due -// to root-squash settings on a NFS volume. -#NoneFSGroupPolicy: #FSGroupPolicy & "None" - -// VolumeLifecycleMode is an enumeration of possible usage modes for a volume -// provided by a CSI driver. More modes may be added in the future. -#VolumeLifecycleMode: string // #enumVolumeLifecycleMode - -#enumVolumeLifecycleMode: - #VolumeLifecyclePersistent | - #VolumeLifecycleEphemeral - -// TokenRequest contains parameters of a service account token. -#TokenRequest: { - // audience is the intended audience of the token in "TokenRequestSpec". - // It will default to the audiences of kube apiserver. - audience: string @go(Audience) @protobuf(1,bytes,opt) - - // expirationSeconds is the duration of validity of the token in "TokenRequestSpec". - // It has the same default value of "ExpirationSeconds" in "TokenRequestSpec". - // - // +optional - expirationSeconds?: null | int64 @go(ExpirationSeconds,*int64) @protobuf(2,varint,opt) -} - -// VolumeLifecyclePersistent explicitly confirms that the driver implements -// the full CSI spec. It is the default when CSIDriverSpec.VolumeLifecycleModes is not -// set. Such volumes are managed in Kubernetes via the persistent volume -// claim mechanism and have a lifecycle that is independent of the pods which -// use them. -#VolumeLifecyclePersistent: #VolumeLifecycleMode & "Persistent" - -// VolumeLifecycleEphemeral indicates that the driver can be used for -// ephemeral inline volumes. Such volumes are specified inside the pod -// spec with a CSIVolumeSource and, as far as Kubernetes is concerned, have -// a lifecycle that is tied to the lifecycle of the pod. For example, such -// a volume might contain data that gets created specifically for that pod, -// like secrets. -// But how the volume actually gets created and managed is entirely up to -// the driver. It might also use reference counting to share the same volume -// instance among different pods if the CSIVolumeSource of those pods is -// identical. -#VolumeLifecycleEphemeral: #VolumeLifecycleMode & "Ephemeral" - -// CSINode holds information about all CSI drivers installed on a node. -// CSI drivers do not need to create the CSINode object directly. As long as -// they use the node-driver-registrar sidecar container, the kubelet will -// automatically populate the CSINode object for the CSI driver as part of -// kubelet plugin registration. -// CSINode has the same name as a node. If the object is missing, it means either -// there are no CSI Drivers available on the node, or the Kubelet version is low -// enough that it doesn't create this object. -// CSINode has an OwnerReference that points to the corresponding node object. -#CSINode: { - metav1.#TypeMeta - - // Standard object's metadata. - // metadata.name must be the Kubernetes node name. - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec is the specification of CSINode - spec: #CSINodeSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// CSINodeSpec holds information about the specification of all CSI drivers installed on a node -#CSINodeSpec: { - // drivers is a list of information of all CSI Drivers existing on a node. - // If all drivers in the list are uninstalled, this can become empty. - // +patchMergeKey=name - // +patchStrategy=merge - drivers: [...#CSINodeDriver] @go(Drivers,[]CSINodeDriver) @protobuf(1,bytes,rep) -} - -// CSINodeDriver holds information about the specification of one CSI driver installed on a node -#CSINodeDriver: { - // name represents the name of the CSI driver that this object refers to. - // This MUST be the same name returned by the CSI GetPluginName() call for - // that driver. - name: string @go(Name) @protobuf(1,bytes,opt) - - // nodeID of the node from the driver point of view. - // This field enables Kubernetes to communicate with storage systems that do - // not share the same nomenclature for nodes. For example, Kubernetes may - // refer to a given node as "node1", but the storage system may refer to - // the same node as "nodeA". When Kubernetes issues a command to the storage - // system to attach a volume to a specific node, it can use this field to - // refer to the node name using the ID that the storage system will - // understand, e.g. "nodeA" instead of "node1". This field is required. - nodeID: string @go(NodeID) @protobuf(2,bytes,opt) - - // topologyKeys is the list of keys supported by the driver. - // When a driver is initialized on a cluster, it provides a set of topology - // keys that it understands (e.g. "company.com/zone", "company.com/region"). - // When a driver is initialized on a node, it provides the same topology keys - // along with values. Kubelet will expose these topology keys as labels - // on its own node object. - // When Kubernetes does topology aware provisioning, it can use this list to - // determine which labels it should retrieve from the node object and pass - // back to the driver. - // It is possible for different nodes to use different topology keys. - // This can be empty if driver does not support topology. - // +optional - topologyKeys: [...string] @go(TopologyKeys,[]string) @protobuf(3,bytes,rep) - - // allocatable represents the volume resources of a node that are available for scheduling. - // This field is beta. - // +optional - allocatable?: null | #VolumeNodeResources @go(Allocatable,*VolumeNodeResources) @protobuf(4,bytes,opt) -} - -// VolumeNodeResources is a set of resource limits for scheduling of volumes. -#VolumeNodeResources: { - // count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. - // A volume that is both attached and mounted on a node is considered to be used once, not twice. - // The same rule applies for a unique volume that is shared among multiple pods on the same node. - // If this field is not specified, then the supported number of volumes on this node is unbounded. - // +optional - count?: null | int32 @go(Count,*int32) @protobuf(1,varint,opt) -} - -// CSINodeList is a collection of CSINode objects. -#CSINodeList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of CSINode - items: [...#CSINode] @go(Items,[]CSINode) @protobuf(2,bytes,rep) -} - -// CSIStorageCapacity stores the result of one CSI GetCapacity call. -// For a given StorageClass, this describes the available capacity in a -// particular topology segment. This can be used when considering where to -// instantiate new PersistentVolumes. -// -// For example this can express things like: -// - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" -// - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" -// -// The following three cases all imply that no capacity is available for -// a certain combination: -// - no object exists with suitable topology and storage class name -// - such an object exists, but the capacity is unset -// - such an object exists, but the capacity is zero -// -// The producer of these objects can decide which approach is more suitable. -// -// They are consumed by the kube-scheduler when a CSI driver opts into -// capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler -// compares the MaximumVolumeSize against the requested size of pending volumes -// to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back -// to a comparison against the less precise Capacity. If that is also unset, -// the scheduler assumes that capacity is insufficient and tries some other -// node. -#CSIStorageCapacity: { - metav1.#TypeMeta - - // Standard object's metadata. - // The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). - // To ensure that there are no conflicts with other CSI drivers on the cluster, - // the recommendation is to use csisc-, a generated name, or a reverse-domain name - // which ends with the unique CSI driver name. - // - // Objects are namespaced. - // - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // nodeTopology defines which nodes have access to the storage - // for which capacity was reported. If not set, the storage is - // not accessible from any node in the cluster. If empty, the - // storage is accessible from all nodes. This field is - // immutable. - // - // +optional - nodeTopology?: null | metav1.#LabelSelector @go(NodeTopology,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // storageClassName represents the name of the StorageClass that the reported capacity applies to. - // It must meet the same requirements as the name of a StorageClass - // object (non-empty, DNS subdomain). If that object no longer exists, - // the CSIStorageCapacity object is obsolete and should be removed by its - // creator. - // This field is immutable. - storageClassName: string @go(StorageClassName) @protobuf(3,bytes) - - // capacity is the value reported by the CSI driver in its GetCapacityResponse - // for a GetCapacityRequest with topology and parameters that match the - // previous fields. - // - // The semantic is currently (CSI spec 1.2) defined as: - // The available capacity, in bytes, of the storage that can be used - // to provision volumes. If not set, that information is currently - // unavailable. - // - // +optional - capacity?: null | resource.#Quantity @go(Capacity,*resource.Quantity) @protobuf(4,bytes,opt) - - // maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse - // for a GetCapacityRequest with topology and parameters that match the - // previous fields. - // - // This is defined since CSI spec 1.4.0 as the largest size - // that may be used in a - // CreateVolumeRequest.capacity_range.required_bytes field to - // create a volume with the same parameters as those in - // GetCapacityRequest. The corresponding value in the Kubernetes - // API is ResourceRequirements.Requests in a volume claim. - // - // +optional - maximumVolumeSize?: null | resource.#Quantity @go(MaximumVolumeSize,*resource.Quantity) @protobuf(5,bytes,opt) -} - -// CSIStorageCapacityList is a collection of CSIStorageCapacity objects. -#CSIStorageCapacityList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of CSIStorageCapacity objects. - // +listType=map - // +listMapKey=name - items: [...#CSIStorageCapacity] @go(Items,[]CSIStorageCapacity) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/storage/v1alpha1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/storage/v1alpha1/register_go_gen.cue deleted file mode 100644 index 68e3732..0000000 --- a/cue.mod/gen/k8s.io/api/storage/v1alpha1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/storage/v1alpha1 - -package v1alpha1 - -#GroupName: "storage.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/storage/v1alpha1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/storage/v1alpha1/types_go_gen.cue deleted file mode 100644 index 4d4a53b..0000000 --- a/cue.mod/gen/k8s.io/api/storage/v1alpha1/types_go_gen.cue +++ /dev/null @@ -1,218 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/storage/v1alpha1 - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/api/resource" -) - -// VolumeAttachment captures the intent to attach or detach the specified volume -// to/from the specified node. -// -// VolumeAttachment objects are non-namespaced. -#VolumeAttachment: { - metav1.#TypeMeta - - // Standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec represents specification of the desired attach/detach volume behavior. - // Populated by the Kubernetes system. - spec: #VolumeAttachmentSpec @go(Spec) @protobuf(2,bytes,opt) - - // status represents status of the VolumeAttachment request. - // Populated by the entity completing the attach or detach - // operation, i.e. the external-attacher. - // +optional - status?: #VolumeAttachmentStatus @go(Status) @protobuf(3,bytes,opt) -} - -// VolumeAttachmentList is a collection of VolumeAttachment objects. -#VolumeAttachmentList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of VolumeAttachments - items: [...#VolumeAttachment] @go(Items,[]VolumeAttachment) @protobuf(2,bytes,rep) -} - -// VolumeAttachmentSpec is the specification of a VolumeAttachment request. -#VolumeAttachmentSpec: { - // attacher indicates the name of the volume driver that MUST handle this - // request. This is the name returned by GetPluginName(). - attacher: string @go(Attacher) @protobuf(1,bytes,opt) - - // source represents the volume that should be attached. - source: #VolumeAttachmentSource @go(Source) @protobuf(2,bytes,opt) - - // nodeName represents the node that the volume should be attached to. - nodeName: string @go(NodeName) @protobuf(3,bytes,opt) -} - -// VolumeAttachmentSource represents a volume that should be attached. -// Right now only PersistenVolumes can be attached via external attacher, -// in future we may allow also inline volumes in pods. -// Exactly one member can be set. -#VolumeAttachmentSource: { - // persistentVolumeName represents the name of the persistent volume to attach. - // +optional - persistentVolumeName?: null | string @go(PersistentVolumeName,*string) @protobuf(1,bytes,opt) - - // inlineVolumeSpec contains all the information necessary to attach - // a persistent volume defined by a pod's inline VolumeSource. This field - // is populated only for the CSIMigration feature. It contains - // translated fields from a pod's inline VolumeSource to a - // PersistentVolumeSpec. This field is alpha-level and is only - // honored by servers that enabled the CSIMigration feature. - // +optional - inlineVolumeSpec?: null | v1.#PersistentVolumeSpec @go(InlineVolumeSpec,*v1.PersistentVolumeSpec) @protobuf(2,bytes,opt) -} - -// VolumeAttachmentStatus is the status of a VolumeAttachment request. -#VolumeAttachmentStatus: { - // attached indicates the volume is successfully attached. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - attached: bool @go(Attached) @protobuf(1,varint,opt) - - // attachmentMetadata is populated with any - // information returned by the attach operation, upon successful attach, that must be passed - // into subsequent WaitForAttach or Mount calls. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - attachmentMetadata?: {[string]: string} @go(AttachmentMetadata,map[string]string) @protobuf(2,bytes,rep) - - // attachError represents the last error encountered during attach operation, if any. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - attachError?: null | #VolumeError @go(AttachError,*VolumeError) @protobuf(3,bytes,opt,casttype=VolumeError) - - // detachError represents the last error encountered during detach operation, if any. - // This field must only be set by the entity completing the detach - // operation, i.e. the external-attacher. - // +optional - detachError?: null | #VolumeError @go(DetachError,*VolumeError) @protobuf(4,bytes,opt,casttype=VolumeError) -} - -// VolumeError captures an error encountered during a volume operation. -#VolumeError: { - // time represents the time the error was encountered. - // +optional - time?: metav1.#Time @go(Time) @protobuf(1,bytes,opt) - - // message represents the error encountered during Attach or Detach operation. - // This string maybe logged, so it should not contain sensitive - // information. - // +optional - message?: string @go(Message) @protobuf(2,bytes,opt) -} - -// CSIStorageCapacity stores the result of one CSI GetCapacity call. -// For a given StorageClass, this describes the available capacity in a -// particular topology segment. This can be used when considering where to -// instantiate new PersistentVolumes. -// -// For example this can express things like: -// - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" -// - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" -// -// The following three cases all imply that no capacity is available for -// a certain combination: -// - no object exists with suitable topology and storage class name -// - such an object exists, but the capacity is unset -// - such an object exists, but the capacity is zero -// -// The producer of these objects can decide which approach is more suitable. -// -// They are consumed by the kube-scheduler when a CSI driver opts into -// capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler -// compares the MaximumVolumeSize against the requested size of pending volumes -// to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back -// to a comparison against the less precise Capacity. If that is also unset, -// the scheduler assumes that capacity is insufficient and tries some other -// node. -#CSIStorageCapacity: { - metav1.#TypeMeta - - // Standard object's metadata. The name has no particular meaning. It must be - // be a DNS subdomain (dots allowed, 253 characters). To ensure that - // there are no conflicts with other CSI drivers on the cluster, the recommendation - // is to use csisc-, a generated name, or a reverse-domain name which ends - // with the unique CSI driver name. - // - // Objects are namespaced. - // - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // nodeTopology defines which nodes have access to the storage - // for which capacity was reported. If not set, the storage is - // not accessible from any node in the cluster. If empty, the - // storage is accessible from all nodes. This field is - // immutable. - // - // +optional - nodeTopology?: null | metav1.#LabelSelector @go(NodeTopology,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // storageClassName represents the name of the StorageClass that the reported capacity applies to. - // It must meet the same requirements as the name of a StorageClass - // object (non-empty, DNS subdomain). If that object no longer exists, - // the CSIStorageCapacity object is obsolete and should be removed by its - // creator. - // This field is immutable. - storageClassName: string @go(StorageClassName) @protobuf(3,bytes) - - // capacity is the value reported by the CSI driver in its GetCapacityResponse - // for a GetCapacityRequest with topology and parameters that match the - // previous fields. - // - // The semantic is currently (CSI spec 1.2) defined as: - // The available capacity, in bytes, of the storage that can be used - // to provision volumes. If not set, that information is currently - // unavailable. - // - // +optional - capacity?: null | resource.#Quantity @go(Capacity,*resource.Quantity) @protobuf(4,bytes,opt) - - // maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse - // for a GetCapacityRequest with topology and parameters that match the - // previous fields. - // - // This is defined since CSI spec 1.4.0 as the largest size - // that may be used in a - // CreateVolumeRequest.capacity_range.required_bytes field to - // create a volume with the same parameters as those in - // GetCapacityRequest. The corresponding value in the Kubernetes - // API is ResourceRequirements.Requests in a volume claim. - // - // +optional - maximumVolumeSize?: null | resource.#Quantity @go(MaximumVolumeSize,*resource.Quantity) @protobuf(5,bytes,opt) -} - -// CSIStorageCapacityList is a collection of CSIStorageCapacity objects. -#CSIStorageCapacityList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of CSIStorageCapacity objects. - // +listType=map - // +listMapKey=name - items: [...#CSIStorageCapacity] @go(Items,[]CSIStorageCapacity) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/api/storage/v1beta1/register_go_gen.cue b/cue.mod/gen/k8s.io/api/storage/v1beta1/register_go_gen.cue deleted file mode 100644 index 3d4c2dc..0000000 --- a/cue.mod/gen/k8s.io/api/storage/v1beta1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/storage/v1beta1 - -package v1beta1 - -#GroupName: "storage.k8s.io" diff --git a/cue.mod/gen/k8s.io/api/storage/v1beta1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/storage/v1beta1/types_go_gen.cue deleted file mode 100644 index 75a7bec..0000000 --- a/cue.mod/gen/k8s.io/api/storage/v1beta1/types_go_gen.cue +++ /dev/null @@ -1,647 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/api/storage/v1beta1 - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/api/resource" -) - -// StorageClass describes the parameters for a class of storage for -// which PersistentVolumes can be dynamically provisioned. -// -// StorageClasses are non-namespaced; the name of the storage class -// according to etcd is in ObjectMeta.Name. -#StorageClass: { - metav1.#TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // provisioner indicates the type of the provisioner. - provisioner: string @go(Provisioner) @protobuf(2,bytes,opt) - - // parameters holds the parameters for the provisioner that should - // create volumes of this storage class. - // +optional - parameters?: {[string]: string} @go(Parameters,map[string]string) @protobuf(3,bytes,rep) - - // reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. - // Defaults to Delete. - // +optional - reclaimPolicy?: null | v1.#PersistentVolumeReclaimPolicy @go(ReclaimPolicy,*v1.PersistentVolumeReclaimPolicy) @protobuf(4,bytes,opt,casttype=k8s.io/api/core/v1.PersistentVolumeReclaimPolicy) - - // mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. - // e.g. ["ro", "soft"]. Not validated - - // mount of the PVs will simply fail if one is invalid. - // +optional - mountOptions?: [...string] @go(MountOptions,[]string) @protobuf(5,bytes,opt) - - // allowVolumeExpansion shows whether the storage class allow volume expand - // +optional - allowVolumeExpansion?: null | bool @go(AllowVolumeExpansion,*bool) @protobuf(6,varint,opt) - - // volumeBindingMode indicates how PersistentVolumeClaims should be - // provisioned and bound. When unset, VolumeBindingImmediate is used. - // This field is only honored by servers that enable the VolumeScheduling feature. - // +optional - volumeBindingMode?: null | #VolumeBindingMode @go(VolumeBindingMode,*VolumeBindingMode) @protobuf(7,bytes,opt) - - // allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. - // Each volume plugin defines its own supported topology specifications. - // An empty TopologySelectorTerm list means there is no topology restriction. - // This field is only honored by servers that enable the VolumeScheduling feature. - // +optional - // +listType=atomic - allowedTopologies?: [...v1.#TopologySelectorTerm] @go(AllowedTopologies,[]v1.TopologySelectorTerm) @protobuf(8,bytes,rep) -} - -// StorageClassList is a collection of storage classes. -#StorageClassList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of StorageClasses - items: [...#StorageClass] @go(Items,[]StorageClass) @protobuf(2,bytes,rep) -} - -// VolumeBindingMode indicates how PersistentVolumeClaims should be bound. -#VolumeBindingMode: string // #enumVolumeBindingMode - -#enumVolumeBindingMode: - #VolumeBindingImmediate | - #VolumeBindingWaitForFirstConsumer - -// VolumeBindingImmediate indicates that PersistentVolumeClaims should be -// immediately provisioned and bound. This is the default mode. -#VolumeBindingImmediate: #VolumeBindingMode & "Immediate" - -// VolumeBindingWaitForFirstConsumer indicates that PersistentVolumeClaims -// should not be provisioned and bound until the first Pod is created that -// references the PeristentVolumeClaim. The volume provisioning and -// binding will occur during Pod scheduing. -#VolumeBindingWaitForFirstConsumer: #VolumeBindingMode & "WaitForFirstConsumer" - -// VolumeAttachment captures the intent to attach or detach the specified volume -// to/from the specified node. -// -// VolumeAttachment objects are non-namespaced. -#VolumeAttachment: { - metav1.#TypeMeta - - // Standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec represents specification of the desired attach/detach volume behavior. - // Populated by the Kubernetes system. - spec: #VolumeAttachmentSpec @go(Spec) @protobuf(2,bytes,opt) - - // status represents status of the VolumeAttachment request. - // Populated by the entity completing the attach or detach - // operation, i.e. the external-attacher. - // +optional - status?: #VolumeAttachmentStatus @go(Status) @protobuf(3,bytes,opt) -} - -// VolumeAttachmentList is a collection of VolumeAttachment objects. -#VolumeAttachmentList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of VolumeAttachments - items: [...#VolumeAttachment] @go(Items,[]VolumeAttachment) @protobuf(2,bytes,rep) -} - -// VolumeAttachmentSpec is the specification of a VolumeAttachment request. -#VolumeAttachmentSpec: { - // attacher indicates the name of the volume driver that MUST handle this - // request. This is the name returned by GetPluginName(). - attacher: string @go(Attacher) @protobuf(1,bytes,opt) - - // source represents the volume that should be attached. - source: #VolumeAttachmentSource @go(Source) @protobuf(2,bytes,opt) - - // nodeName represents the node that the volume should be attached to. - nodeName: string @go(NodeName) @protobuf(3,bytes,opt) -} - -// VolumeAttachmentSource represents a volume that should be attached. -// Right now only PersistenVolumes can be attached via external attacher, -// in future we may allow also inline volumes in pods. -// Exactly one member can be set. -#VolumeAttachmentSource: { - // persistentVolumeName represents the name of the persistent volume to attach. - // +optional - persistentVolumeName?: null | string @go(PersistentVolumeName,*string) @protobuf(1,bytes,opt) - - // inlineVolumeSpec contains all the information necessary to attach - // a persistent volume defined by a pod's inline VolumeSource. This field - // is populated only for the CSIMigration feature. It contains - // translated fields from a pod's inline VolumeSource to a - // PersistentVolumeSpec. This field is beta-level and is only - // honored by servers that enabled the CSIMigration feature. - // +optional - inlineVolumeSpec?: null | v1.#PersistentVolumeSpec @go(InlineVolumeSpec,*v1.PersistentVolumeSpec) @protobuf(2,bytes,opt) -} - -// VolumeAttachmentStatus is the status of a VolumeAttachment request. -#VolumeAttachmentStatus: { - // attached indicates the volume is successfully attached. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - attached: bool @go(Attached) @protobuf(1,varint,opt) - - // attachmentMetadata is populated with any - // information returned by the attach operation, upon successful attach, that must be passed - // into subsequent WaitForAttach or Mount calls. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - attachmentMetadata?: {[string]: string} @go(AttachmentMetadata,map[string]string) @protobuf(2,bytes,rep) - - // attachError represents the last error encountered during attach operation, if any. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - attachError?: null | #VolumeError @go(AttachError,*VolumeError) @protobuf(3,bytes,opt,casttype=VolumeError) - - // detachError represents the last error encountered during detach operation, if any. - // This field must only be set by the entity completing the detach - // operation, i.e. the external-attacher. - // +optional - detachError?: null | #VolumeError @go(DetachError,*VolumeError) @protobuf(4,bytes,opt,casttype=VolumeError) -} - -// VolumeError captures an error encountered during a volume operation. -#VolumeError: { - // time represents the time the error was encountered. - // +optional - time?: metav1.#Time @go(Time) @protobuf(1,bytes,opt) - - // message represents the error encountered during Attach or Detach operation. - // This string may be logged, so it should not contain sensitive - // information. - // +optional - message?: string @go(Message) @protobuf(2,bytes,opt) -} - -// CSIDriver captures information about a Container Storage Interface (CSI) -// volume driver deployed on the cluster. -// CSI drivers do not need to create the CSIDriver object directly. Instead they may use the -// cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically -// creates a CSIDriver object representing the driver. -// Kubernetes attach detach controller uses this object to determine whether attach is required. -// Kubelet uses this object to determine whether pod information needs to be passed on mount. -// CSIDriver objects are non-namespaced. -#CSIDriver: { - metav1.#TypeMeta - - // Standard object metadata. - // metadata.Name indicates the name of the CSI driver that this object - // refers to; it MUST be the same name returned by the CSI GetPluginName() - // call for that driver. - // The driver name must be 63 characters or less, beginning and ending with - // an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and - // alphanumerics between. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec represents the specification of the CSI Driver. - spec: #CSIDriverSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// CSIDriverList is a collection of CSIDriver objects. -#CSIDriverList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of CSIDriver - items: [...#CSIDriver] @go(Items,[]CSIDriver) @protobuf(2,bytes,rep) -} - -// CSIDriverSpec is the specification of a CSIDriver. -#CSIDriverSpec: { - // attachRequired indicates this CSI volume driver requires an attach - // operation (because it implements the CSI ControllerPublishVolume() - // method), and that the Kubernetes attach detach controller should call - // the attach volume interface which checks the volumeattachment status - // and waits until the volume is attached before proceeding to mounting. - // The CSI external-attacher coordinates with CSI volume driver and updates - // the volumeattachment status when the attach operation is complete. - // If the CSIDriverRegistry feature gate is enabled and the value is - // specified to false, the attach operation will be skipped. - // Otherwise the attach operation will be called. - // - // This field is immutable. - // - // +optional - attachRequired?: null | bool @go(AttachRequired,*bool) @protobuf(1,varint,opt) - - // podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) - // during mount operations, if set to true. - // If set to false, pod information will not be passed on mount. - // Default is false. - // - // The CSI driver specifies podInfoOnMount as part of driver deployment. - // If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. - // The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. - // - // The following VolumeConext will be passed if podInfoOnMount is set to true. - // This list might grow, but the prefix will be used. - // "csi.storage.k8s.io/pod.name": pod.Name - // "csi.storage.k8s.io/pod.namespace": pod.Namespace - // "csi.storage.k8s.io/pod.uid": string(pod.UID) - // "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume - // defined by a CSIVolumeSource, otherwise "false" - // - // "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only - // required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. - // Other drivers can leave pod info disabled and/or ignore this field. - // As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when - // deployed on such a cluster and the deployment determines which mode that is, for example - // via a command line parameter of the driver. - // - // This field is immutable. - // - // +optional - podInfoOnMount?: null | bool @go(PodInfoOnMount,*bool) @protobuf(2,bytes,opt) - - // volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. - // The default if the list is empty is "Persistent", which is the usage defined by the - // CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. - // - // The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec - // with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. - // A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. - // - // For more information about implementing this mode, see - // https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html - // A driver can support one or more of these modes and - // more modes may be added in the future. - // - // This field is immutable. - // - // +optional - volumeLifecycleModes?: [...#VolumeLifecycleMode] @go(VolumeLifecycleModes,[]VolumeLifecycleMode) @protobuf(3,bytes,opt) - - // storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage - // capacity that the driver deployment will report by creating - // CSIStorageCapacity objects with capacity information, if set to true. - // - // The check can be enabled immediately when deploying a driver. - // In that case, provisioning new volumes with late binding - // will pause until the driver deployment has published - // some suitable CSIStorageCapacity object. - // - // Alternatively, the driver can be deployed with the field - // unset or false and it can be flipped later when storage - // capacity information has been published. - // - // This field was immutable in Kubernetes <= 1.22 and now is mutable. - // - // +optional - storageCapacity?: null | bool @go(StorageCapacity,*bool) @protobuf(4,bytes,opt) - - // fsGroupPolicy defines if the underlying volume supports changing ownership and - // permission of the volume before being mounted. - // Refer to the specific FSGroupPolicy values for additional details. - // - // This field is immutable. - // - // Defaults to ReadWriteOnceWithFSType, which will examine each volume - // to determine if Kubernetes should modify ownership and permissions of the volume. - // With the default policy the defined fsGroup will only be applied - // if a fstype is defined and the volume's access mode contains ReadWriteOnce. - // - // +optional - fsGroupPolicy?: null | #FSGroupPolicy @go(FSGroupPolicy,*FSGroupPolicy) @protobuf(5,bytes,opt) - - // tokenRequests indicates the CSI driver needs pods' service account - // tokens it is mounting volume for to do necessary authentication. Kubelet - // will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. - // The CSI driver should parse and validate the following VolumeContext: - // "csi.storage.k8s.io/serviceAccount.tokens": { - // "": { - // "token": , - // "expirationTimestamp": , - // }, - // ... - // } - // - // Note: Audience in each TokenRequest should be different and at - // most one token is empty string. To receive a new token after expiry, - // RequiresRepublish can be used to trigger NodePublishVolume periodically. - // - // +optional - // +listType=atomic - tokenRequests?: [...#TokenRequest] @go(TokenRequests,[]TokenRequest) @protobuf(6,bytes,opt) - - // requiresRepublish indicates the CSI driver wants `NodePublishVolume` - // being periodically called to reflect any possible change in the mounted - // volume. This field defaults to false. - // - // Note: After a successful initial NodePublishVolume call, subsequent calls - // to NodePublishVolume should only update the contents of the volume. New - // mount points will not be seen by a running container. - // - // +optional - requiresRepublish?: null | bool @go(RequiresRepublish,*bool) @protobuf(7,varint,opt) - - // seLinuxMount specifies if the CSI driver supports "-o context" - // mount option. - // - // When "true", the CSI driver must ensure that all volumes provided by this CSI - // driver can be mounted separately with different `-o context` options. This is - // typical for storage backends that provide volumes as filesystems on block - // devices or as independent shared volumes. - // Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount - // option when mounting a ReadWriteOncePod volume used in Pod that has - // explicitly set SELinux context. In the future, it may be expanded to other - // volume AccessModes. In any case, Kubernetes will ensure that the volume is - // mounted only with a single SELinux context. - // - // When "false", Kubernetes won't pass any special SELinux mount options to the driver. - // This is typical for volumes that represent subdirectories of a bigger shared filesystem. - // - // Default is "false". - // - // +featureGate=SELinuxMountReadWriteOncePod - // +optional - seLinuxMount?: null | bool @go(SELinuxMount,*bool) @protobuf(8,varint,opt) -} - -// FSGroupPolicy specifies if a CSI Driver supports modifying -// volume ownership and permissions of the volume to be mounted. -// More modes may be added in the future. -#FSGroupPolicy: string // #enumFSGroupPolicy - -#enumFSGroupPolicy: - #ReadWriteOnceWithFSTypeFSGroupPolicy | - #FileFSGroupPolicy | - #NoneFSGroupPolicy - -// ReadWriteOnceWithFSTypeFSGroupPolicy indicates that each volume will be examined -// to determine if the volume ownership and permissions -// should be modified. If a fstype is defined and the volume's access mode -// contains ReadWriteOnce, then the defined fsGroup will be applied. -// This is the default behavior if no other FSGroupPolicy is defined. -#ReadWriteOnceWithFSTypeFSGroupPolicy: #FSGroupPolicy & "ReadWriteOnceWithFSType" - -// FileFSGroupPolicy indicates that CSI driver supports volume ownership -// and permission change via fsGroup, and Kubernetes will change the permissions -// and ownership of every file in the volume to match the user requested fsGroup in -// the pod's SecurityPolicy regardless of fstype or access mode. -// Use this mode if Kubernetes should modify the permissions and ownership -// of the volume. -#FileFSGroupPolicy: #FSGroupPolicy & "File" - -// None indicates that volumes will be mounted without performing -// any ownership or permission modifications, as the CSIDriver does not support -// these operations. -#NoneFSGroupPolicy: #FSGroupPolicy & "None" - -// VolumeLifecycleMode is an enumeration of possible usage modes for a volume -// provided by a CSI driver. More modes may be added in the future. -#VolumeLifecycleMode: string // #enumVolumeLifecycleMode - -#enumVolumeLifecycleMode: - #VolumeLifecyclePersistent | - #VolumeLifecycleEphemeral - -// TokenRequest contains parameters of a service account token. -#TokenRequest: { - // audience is the intended audience of the token in "TokenRequestSpec". - // It will default to the audiences of kube apiserver. - audience: string @go(Audience) @protobuf(1,bytes,opt) - - // expirationSeconds is the duration of validity of the token in "TokenRequestSpec". - // It has the same default value of "ExpirationSeconds" in "TokenRequestSpec" - // - // +optional - expirationSeconds?: null | int64 @go(ExpirationSeconds,*int64) @protobuf(2,varint,opt) -} - -// VolumeLifecyclePersistent explicitly confirms that the driver implements -// the full CSI spec. It is the default when CSIDriverSpec.VolumeLifecycleModes is not -// set. Such volumes are managed in Kubernetes via the persistent volume -// claim mechanism and have a lifecycle that is independent of the pods which -// use them. -#VolumeLifecyclePersistent: #VolumeLifecycleMode & "Persistent" - -// VolumeLifecycleEphemeral indicates that the driver can be used for -// ephemeral inline volumes. Such volumes are specified inside the pod -// spec with a CSIVolumeSource and, as far as Kubernetes is concerned, have -// a lifecycle that is tied to the lifecycle of the pod. For example, such -// a volume might contain data that gets created specifically for that pod, -// like secrets. -// But how the volume actually gets created and managed is entirely up to -// the driver. It might also use reference counting to share the same volume -// instance among different pods if the CSIVolumeSource of those pods is -// identical. -#VolumeLifecycleEphemeral: #VolumeLifecycleMode & "Ephemeral" - -// DEPRECATED - This group version of CSINode is deprecated by storage/v1/CSINode. -// See the release notes for more information. -// CSINode holds information about all CSI drivers installed on a node. -// CSI drivers do not need to create the CSINode object directly. As long as -// they use the node-driver-registrar sidecar container, the kubelet will -// automatically populate the CSINode object for the CSI driver as part of -// kubelet plugin registration. -// CSINode has the same name as a node. If the object is missing, it means either -// there are no CSI Drivers available on the node, or the Kubelet version is low -// enough that it doesn't create this object. -// CSINode has an OwnerReference that points to the corresponding node object. -#CSINode: { - metav1.#TypeMeta - - // metadata.name must be the Kubernetes node name. - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec is the specification of CSINode - spec: #CSINodeSpec @go(Spec) @protobuf(2,bytes,opt) -} - -// CSINodeSpec holds information about the specification of all CSI drivers installed on a node -#CSINodeSpec: { - // drivers is a list of information of all CSI Drivers existing on a node. - // If all drivers in the list are uninstalled, this can become empty. - // +patchMergeKey=name - // +patchStrategy=merge - drivers: [...#CSINodeDriver] @go(Drivers,[]CSINodeDriver) @protobuf(1,bytes,rep) -} - -// CSINodeDriver holds information about the specification of one CSI driver installed on a node -#CSINodeDriver: { - // name represents the name of the CSI driver that this object refers to. - // This MUST be the same name returned by the CSI GetPluginName() call for - // that driver. - name: string @go(Name) @protobuf(1,bytes,opt) - - // nodeID of the node from the driver point of view. - // This field enables Kubernetes to communicate with storage systems that do - // not share the same nomenclature for nodes. For example, Kubernetes may - // refer to a given node as "node1", but the storage system may refer to - // the same node as "nodeA". When Kubernetes issues a command to the storage - // system to attach a volume to a specific node, it can use this field to - // refer to the node name using the ID that the storage system will - // understand, e.g. "nodeA" instead of "node1". This field is required. - nodeID: string @go(NodeID) @protobuf(2,bytes,opt) - - // topologyKeys is the list of keys supported by the driver. - // When a driver is initialized on a cluster, it provides a set of topology - // keys that it understands (e.g. "company.com/zone", "company.com/region"). - // When a driver is initialized on a node, it provides the same topology keys - // along with values. Kubelet will expose these topology keys as labels - // on its own node object. - // When Kubernetes does topology aware provisioning, it can use this list to - // determine which labels it should retrieve from the node object and pass - // back to the driver. - // It is possible for different nodes to use different topology keys. - // This can be empty if driver does not support topology. - // +optional - topologyKeys: [...string] @go(TopologyKeys,[]string) @protobuf(3,bytes,rep) - - // allocatable represents the volume resources of a node that are available for scheduling. - // +optional - allocatable?: null | #VolumeNodeResources @go(Allocatable,*VolumeNodeResources) @protobuf(4,bytes,opt) -} - -// VolumeNodeResources is a set of resource limits for scheduling of volumes. -#VolumeNodeResources: { - // count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. - // A volume that is both attached and mounted on a node is considered to be used once, not twice. - // The same rule applies for a unique volume that is shared among multiple pods on the same node. - // If this field is nil, then the supported number of volumes on this node is unbounded. - // +optional - count?: null | int32 @go(Count,*int32) @protobuf(1,varint,opt) -} - -// CSINodeList is a collection of CSINode objects. -#CSINodeList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of CSINode - items: [...#CSINode] @go(Items,[]CSINode) @protobuf(2,bytes,rep) -} - -// CSIStorageCapacity stores the result of one CSI GetCapacity call. -// For a given StorageClass, this describes the available capacity in a -// particular topology segment. This can be used when considering where to -// instantiate new PersistentVolumes. -// -// For example this can express things like: -// - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" -// - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" -// -// The following three cases all imply that no capacity is available for -// a certain combination: -// - no object exists with suitable topology and storage class name -// - such an object exists, but the capacity is unset -// - such an object exists, but the capacity is zero -// -// The producer of these objects can decide which approach is more suitable. -// -// They are consumed by the kube-scheduler when a CSI driver opts into -// capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler -// compares the MaximumVolumeSize against the requested size of pending volumes -// to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back -// to a comparison against the less precise Capacity. If that is also unset, -// the scheduler assumes that capacity is insufficient and tries some other -// node. -#CSIStorageCapacity: { - metav1.#TypeMeta - - // Standard object's metadata. The name has no particular meaning. It must be - // be a DNS subdomain (dots allowed, 253 characters). To ensure that - // there are no conflicts with other CSI drivers on the cluster, the recommendation - // is to use csisc-, a generated name, or a reverse-domain name which ends - // with the unique CSI driver name. - // - // Objects are namespaced. - // - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // nodeTopology defines which nodes have access to the storage - // for which capacity was reported. If not set, the storage is - // not accessible from any node in the cluster. If empty, the - // storage is accessible from all nodes. This field is - // immutable. - // - // +optional - nodeTopology?: null | metav1.#LabelSelector @go(NodeTopology,*metav1.LabelSelector) @protobuf(2,bytes,opt) - - // storageClassName represents the name of the StorageClass that the reported capacity applies to. - // It must meet the same requirements as the name of a StorageClass - // object (non-empty, DNS subdomain). If that object no longer exists, - // the CSIStorageCapacity object is obsolete and should be removed by its - // creator. - // This field is immutable. - storageClassName: string @go(StorageClassName) @protobuf(3,bytes) - - // capacity is the value reported by the CSI driver in its GetCapacityResponse - // for a GetCapacityRequest with topology and parameters that match the - // previous fields. - // - // The semantic is currently (CSI spec 1.2) defined as: - // The available capacity, in bytes, of the storage that can be used - // to provision volumes. If not set, that information is currently - // unavailable. - // - // +optional - capacity?: null | resource.#Quantity @go(Capacity,*resource.Quantity) @protobuf(4,bytes,opt) - - // maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse - // for a GetCapacityRequest with topology and parameters that match the - // previous fields. - // - // This is defined since CSI spec 1.4.0 as the largest size - // that may be used in a - // CreateVolumeRequest.capacity_range.required_bytes field to - // create a volume with the same parameters as those in - // GetCapacityRequest. The corresponding value in the Kubernetes - // API is ResourceRequirements.Requests in a volume claim. - // - // +optional - maximumVolumeSize?: null | resource.#Quantity @go(MaximumVolumeSize,*resource.Quantity) @protobuf(5,bytes,opt) -} - -// CSIStorageCapacityList is a collection of CSIStorageCapacity objects. -#CSIStorageCapacityList: { - metav1.#TypeMeta - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items is the list of CSIStorageCapacity objects. - // +listType=map - // +listMapKey=name - items: [...#CSIStorageCapacity] @go(Items,[]CSIStorageCapacity) @protobuf(2,bytes,rep) -} diff --git a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/doc_go_gen.cue b/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/doc_go_gen.cue deleted file mode 100644 index 083aa82..0000000 --- a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/doc_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1 - -// Package v1 is the v1 version of the API. -package v1 diff --git a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/register_go_gen.cue deleted file mode 100644 index c4ce800..0000000 --- a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/register_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1 - -package v1 - -#GroupName: "apiextensions.k8s.io" diff --git a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_go_gen.cue deleted file mode 100644 index 7c6ae23..0000000 --- a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_go_gen.cue +++ /dev/null @@ -1,513 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/types" - "k8s.io/apimachinery/pkg/runtime" -) - -// ConversionStrategyType describes different conversion types. -#ConversionStrategyType: string // #enumConversionStrategyType - -#enumConversionStrategyType: - #NoneConverter | - #WebhookConverter - -// KubeAPIApprovedAnnotation is an annotation that must be set to create a CRD for the k8s.io, *.k8s.io, kubernetes.io, or *.kubernetes.io namespaces. -// The value should be a link to a URL where the current spec was approved, so updates to the spec should also update the URL. -// If the API is unapproved, you may set the annotation to a string starting with `"unapproved"`. For instance, `"unapproved, temporarily squatting"` or `"unapproved, experimental-only"`. This is discouraged. -#KubeAPIApprovedAnnotation: "api-approved.kubernetes.io" - -// NoneConverter is a converter that only sets apiversion of the CR and leave everything else unchanged. -#NoneConverter: #ConversionStrategyType & "None" - -// WebhookConverter is a converter that calls to an external webhook to convert the CR. -#WebhookConverter: #ConversionStrategyType & "Webhook" - -// CustomResourceDefinitionSpec describes how a user wants their resource to appear -#CustomResourceDefinitionSpec: { - // group is the API group of the defined custom resource. - // The custom resources are served under `/apis//...`. - // Must match the name of the CustomResourceDefinition (in the form `.`). - group: string @go(Group) @protobuf(1,bytes,opt) - - // names specify the resource and kind names for the custom resource. - names: #CustomResourceDefinitionNames @go(Names) @protobuf(3,bytes,opt) - - // scope indicates whether the defined custom resource is cluster- or namespace-scoped. - // Allowed values are `Cluster` and `Namespaced`. - scope: #ResourceScope @go(Scope) @protobuf(4,bytes,opt,casttype=ResourceScope) - - // versions is the list of all API versions of the defined custom resource. - // Version names are used to compute the order in which served versions are listed in API discovery. - // If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered - // lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), - // then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first - // by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing - // major version, then minor version. An example sorted list of versions: - // v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - versions: [...#CustomResourceDefinitionVersion] @go(Versions,[]CustomResourceDefinitionVersion) @protobuf(7,bytes,rep) - - // conversion defines conversion settings for the CRD. - // +optional - conversion?: null | #CustomResourceConversion @go(Conversion,*CustomResourceConversion) @protobuf(9,bytes,opt) - - // preserveUnknownFields indicates that object fields which are not specified - // in the OpenAPI schema should be preserved when persisting to storage. - // apiVersion, kind, metadata and known fields inside metadata are always preserved. - // This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. - // See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. - // +optional - preserveUnknownFields?: bool @go(PreserveUnknownFields) @protobuf(10,varint,opt) -} - -// CustomResourceConversion describes how to convert different versions of a CR. -#CustomResourceConversion: { - // strategy specifies how custom resources are converted between versions. Allowed values are: - // - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - // - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information - // is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. - strategy: #ConversionStrategyType @go(Strategy) @protobuf(1,bytes) - - // webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`. - // +optional - webhook?: null | #WebhookConversion @go(Webhook,*WebhookConversion) @protobuf(2,bytes,opt) -} - -// WebhookConversion describes how to call a conversion webhook -#WebhookConversion: { - // clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. - // +optional - clientConfig?: null | #WebhookClientConfig @go(ClientConfig,*WebhookClientConfig) @protobuf(2,bytes) - - // conversionReviewVersions is an ordered list of preferred `ConversionReview` - // versions the Webhook expects. The API server will use the first version in - // the list which it supports. If none of the versions specified in this list - // are supported by API server, conversion will fail for the custom resource. - // If a persisted Webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail. - conversionReviewVersions: [...string] @go(ConversionReviewVersions,[]string) @protobuf(3,bytes,rep) -} - -// WebhookClientConfig contains the information to make a TLS connection with the webhook. -#WebhookClientConfig: { - // url gives the location of the webhook, in standard URL form - // (`scheme://host:port/path`). Exactly one of `url` or `service` - // must be specified. - // - // The `host` should not refer to a service running in the cluster; use - // the `service` field instead. The host might be resolved via external - // DNS in some apiservers (e.g., `kube-apiserver` cannot resolve - // in-cluster DNS as that would be a layering violation). `host` may - // also be an IP address. - // - // Please note that using `localhost` or `127.0.0.1` as a `host` is - // risky unless you take great care to run this webhook on all hosts - // which run an apiserver which might need to make calls to this - // webhook. Such installs are likely to be non-portable, i.e., not easy - // to turn up in a new cluster. - // - // The scheme must be "https"; the URL must begin with "https://". - // - // A path is optional, and if present may be any string permissible in - // a URL. You may use the path to pass an arbitrary string to the - // webhook, for example, a cluster identifier. - // - // Attempting to use a user or basic auth e.g. "user:password@" is not - // allowed. Fragments ("#...") and query parameters ("?...") are not - // allowed, either. - // - // +optional - url?: null | string @go(URL,*string) @protobuf(3,bytes,opt) - - // service is a reference to the service for this webhook. Either - // service or url must be specified. - // - // If the webhook is running within the cluster, then you should use `service`. - // - // +optional - service?: null | #ServiceReference @go(Service,*ServiceReference) @protobuf(1,bytes,opt) - - // caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. - // If unspecified, system trust roots on the apiserver are used. - // +optional - caBundle?: bytes @go(CABundle,[]byte) @protobuf(2,bytes,opt) -} - -// ServiceReference holds a reference to Service.legacy.k8s.io -#ServiceReference: { - // namespace is the namespace of the service. - // Required - namespace: string @go(Namespace) @protobuf(1,bytes,opt) - - // name is the name of the service. - // Required - name: string @go(Name) @protobuf(2,bytes,opt) - - // path is an optional URL path at which the webhook will be contacted. - // +optional - path?: null | string @go(Path,*string) @protobuf(3,bytes,opt) - - // port is an optional service port at which the webhook will be contacted. - // `port` should be a valid port number (1-65535, inclusive). - // Defaults to 443 for backward compatibility. - // +optional - port?: null | int32 @go(Port,*int32) @protobuf(4,varint,opt) -} - -// CustomResourceDefinitionVersion describes a version for CRD. -#CustomResourceDefinitionVersion: { - // name is the version name, e.g. “v1”, “v2beta1”, etc. - // The custom resources are served under this version at `/apis///...` if `served` is true. - name: string @go(Name) @protobuf(1,bytes,opt) - - // served is a flag enabling/disabling this version from being served via REST APIs - served: bool @go(Served) @protobuf(2,varint,opt) - - // storage indicates this version should be used when persisting custom resources to storage. - // There must be exactly one version with storage=true. - storage: bool @go(Storage) @protobuf(3,varint,opt) - - // deprecated indicates this version of the custom resource API is deprecated. - // When set to true, API requests to this version receive a warning header in the server response. - // Defaults to false. - // +optional - deprecated?: bool @go(Deprecated) @protobuf(7,varint,opt) - - // deprecationWarning overrides the default warning returned to API clients. - // May only be set when `deprecated` is true. - // The default warning indicates this version is deprecated and recommends use - // of the newest served version of equal or greater stability, if one exists. - // +optional - deprecationWarning?: null | string @go(DeprecationWarning,*string) @protobuf(8,bytes,opt) - - // schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. - // +optional - schema?: null | #CustomResourceValidation @go(Schema,*CustomResourceValidation) @protobuf(4,bytes,opt) - - // subresources specify what subresources this version of the defined custom resource have. - // +optional - subresources?: null | #CustomResourceSubresources @go(Subresources,*CustomResourceSubresources) @protobuf(5,bytes,opt) - - // additionalPrinterColumns specifies additional columns returned in Table output. - // See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. - // If no columns are specified, a single column displaying the age of the custom resource is used. - // +optional - additionalPrinterColumns?: [...#CustomResourceColumnDefinition] @go(AdditionalPrinterColumns,[]CustomResourceColumnDefinition) @protobuf(6,bytes,rep) -} - -// CustomResourceColumnDefinition specifies a column for server side printing. -#CustomResourceColumnDefinition: { - // name is a human readable name for the column. - name: string @go(Name) @protobuf(1,bytes,opt) - - // type is an OpenAPI type definition for this column. - // See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - type: string @go(Type) @protobuf(2,bytes,opt) - - // format is an optional OpenAPI type definition for this column. The 'name' format is applied - // to the primary identifier column to assist in clients identifying column is the resource name. - // See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - // +optional - format?: string @go(Format) @protobuf(3,bytes,opt) - - // description is a human readable description of this column. - // +optional - description?: string @go(Description) @protobuf(4,bytes,opt) - - // priority is an integer defining the relative importance of this column compared to others. Lower - // numbers are considered higher priority. Columns that may be omitted in limited space scenarios - // should be given a priority greater than 0. - // +optional - priority?: int32 @go(Priority) @protobuf(5,bytes,opt) - - // jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against - // each custom resource to produce the value for this column. - jsonPath: string @go(JSONPath) @protobuf(6,bytes,opt) -} - -// CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition -#CustomResourceDefinitionNames: { - // plural is the plural name of the resource to serve. - // The custom resources are served under `/apis///.../`. - // Must match the name of the CustomResourceDefinition (in the form `.`). - // Must be all lowercase. - plural: string @go(Plural) @protobuf(1,bytes,opt) - - // singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - // +optional - singular?: string @go(Singular) @protobuf(2,bytes,opt) - - // shortNames are short names for the resource, exposed in API discovery documents, - // and used by clients to support invocations like `kubectl get `. - // It must be all lowercase. - // +optional - shortNames?: [...string] @go(ShortNames,[]string) @protobuf(3,bytes,opt) - - // kind is the serialized kind of the resource. It is normally CamelCase and singular. - // Custom resource instances will use this value as the `kind` attribute in API calls. - kind: string @go(Kind) @protobuf(4,bytes,opt) - - // listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - // +optional - listKind?: string @go(ListKind) @protobuf(5,bytes,opt) - - // categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). - // This is published in API discovery documents, and used by clients to support invocations like - // `kubectl get all`. - // +optional - categories?: [...string] @go(Categories,[]string) @protobuf(6,bytes,rep) -} - -// ResourceScope is an enum defining the different scopes available to a custom resource -#ResourceScope: string // #enumResourceScope - -#enumResourceScope: - #ClusterScoped | - #NamespaceScoped - -#ClusterScoped: #ResourceScope & "Cluster" -#NamespaceScoped: #ResourceScope & "Namespaced" - -#ConditionStatus: string // #enumConditionStatus - -#enumConditionStatus: - #ConditionTrue | - #ConditionFalse | - #ConditionUnknown - -#ConditionTrue: #ConditionStatus & "True" -#ConditionFalse: #ConditionStatus & "False" -#ConditionUnknown: #ConditionStatus & "Unknown" - -// CustomResourceDefinitionConditionType is a valid value for CustomResourceDefinitionCondition.Type -#CustomResourceDefinitionConditionType: string // #enumCustomResourceDefinitionConditionType - -#enumCustomResourceDefinitionConditionType: - #Established | - #NamesAccepted | - #NonStructuralSchema | - #Terminating | - #KubernetesAPIApprovalPolicyConformant - -// Established means that the resource has become active. A resource is established when all names are -// accepted without a conflict for the first time. A resource stays established until deleted, even during -// a later NamesAccepted due to changed names. Note that not all names can be changed. -#Established: #CustomResourceDefinitionConditionType & "Established" - -// NamesAccepted means the names chosen for this CustomResourceDefinition do not conflict with others in -// the group and are therefore accepted. -#NamesAccepted: #CustomResourceDefinitionConditionType & "NamesAccepted" - -// NonStructuralSchema means that one or more OpenAPI schema is not structural. -// -// A schema is structural if it specifies types for all values, with the only exceptions of those with -// - x-kubernetes-int-or-string: true — for fields which can be integer or string -// - x-kubernetes-preserve-unknown-fields: true — for raw, unspecified JSON values -// and there is no type, additionalProperties, default, nullable or x-kubernetes-* vendor extenions -// specified under allOf, anyOf, oneOf or not. -// -// Non-structural schemas will not be allowed anymore in v1 API groups. Moreover, new features will not be -// available for non-structural CRDs: -// - pruning -// - defaulting -// - read-only -// - OpenAPI publishing -// - webhook conversion -#NonStructuralSchema: #CustomResourceDefinitionConditionType & "NonStructuralSchema" - -// Terminating means that the CustomResourceDefinition has been deleted and is cleaning up. -#Terminating: #CustomResourceDefinitionConditionType & "Terminating" - -// KubernetesAPIApprovalPolicyConformant indicates that an API in *.k8s.io or *.kubernetes.io is or is not approved. For CRDs -// outside those groups, this condition will not be set. For CRDs inside those groups, the condition will -// be true if .metadata.annotations["api-approved.kubernetes.io"] is set to a URL, otherwise it will be false. -// See https://github.com/kubernetes/enhancements/pull/1111 for more details. -#KubernetesAPIApprovalPolicyConformant: #CustomResourceDefinitionConditionType & "KubernetesAPIApprovalPolicyConformant" - -// CustomResourceDefinitionCondition contains details for the current condition of this pod. -#CustomResourceDefinitionCondition: { - // type is the type of the condition. Types include Established, NamesAccepted and Terminating. - type: #CustomResourceDefinitionConditionType @go(Type) @protobuf(1,bytes,opt,casttype=CustomResourceDefinitionConditionType) - - // status is the status of the condition. - // Can be True, False, Unknown. - status: #ConditionStatus @go(Status) @protobuf(2,bytes,opt,casttype=ConditionStatus) - - // lastTransitionTime last time the condition transitioned from one status to another. - // +optional - lastTransitionTime?: metav1.#Time @go(LastTransitionTime) @protobuf(3,bytes,opt) - - // reason is a unique, one-word, CamelCase reason for the condition's last transition. - // +optional - reason?: string @go(Reason) @protobuf(4,bytes,opt) - - // message is a human-readable message indicating details about last transition. - // +optional - message?: string @go(Message) @protobuf(5,bytes,opt) -} - -// CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition -#CustomResourceDefinitionStatus: { - // conditions indicate state for particular aspects of a CustomResourceDefinition - // +optional - // +listType=map - // +listMapKey=type - conditions: [...#CustomResourceDefinitionCondition] @go(Conditions,[]CustomResourceDefinitionCondition) @protobuf(1,bytes,opt) - - // acceptedNames are the names that are actually being used to serve discovery. - // They may be different than the names in spec. - // +optional - acceptedNames: #CustomResourceDefinitionNames @go(AcceptedNames) @protobuf(2,bytes,opt) - - // storedVersions lists all versions of CustomResources that were ever persisted. Tracking these - // versions allows a migration path for stored versions in etcd. The field is mutable - // so a migration controller can finish a migration to another version (ensuring - // no old objects are left in storage), and then remove the rest of the - // versions from this list. - // Versions may not be removed from `spec.versions` while they exist in this list. - // +optional - storedVersions: [...string] @go(StoredVersions,[]string) @protobuf(3,bytes,rep) -} - -#CustomResourceCleanupFinalizer: "customresourcecleanup.apiextensions.k8s.io" - -// CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format -// <.spec.name>.<.spec.group>. -#CustomResourceDefinition: { - metav1.#TypeMeta - - // Standard object's metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) - - // spec describes how the user wants the resources to appear - spec: #CustomResourceDefinitionSpec @go(Spec) @protobuf(2,bytes,opt) - - // status indicates the actual state of the CustomResourceDefinition - // +optional - status?: #CustomResourceDefinitionStatus @go(Status) @protobuf(3,bytes,opt) -} - -// CustomResourceDefinitionList is a list of CustomResourceDefinition objects. -#CustomResourceDefinitionList: { - metav1.#TypeMeta - - // Standard object's metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items list individual CustomResourceDefinition objects - items: [...#CustomResourceDefinition] @go(Items,[]CustomResourceDefinition) @protobuf(2,bytes,rep) -} - -// CustomResourceValidation is a list of validation methods for CustomResources. -#CustomResourceValidation: { - // openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - // +optional - openAPIV3Schema?: null | #JSONSchemaProps @go(OpenAPIV3Schema,*JSONSchemaProps) @protobuf(1,bytes,opt) -} - -// CustomResourceSubresources defines the status and scale subresources for CustomResources. -#CustomResourceSubresources: { - // status indicates the custom resource should serve a `/status` subresource. - // When enabled: - // 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. - // 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. - // +optional - status?: null | #CustomResourceSubresourceStatus @go(Status,*CustomResourceSubresourceStatus) @protobuf(1,bytes,opt) - - // scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. - // +optional - scale?: null | #CustomResourceSubresourceScale @go(Scale,*CustomResourceSubresourceScale) @protobuf(2,bytes,opt) -} - -// CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. -// Status is represented by the `.status` JSON path inside of a CustomResource. When set, -// * exposes a /status subresource for the custom resource -// * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza -// * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza -#CustomResourceSubresourceStatus: { -} - -// CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. -#CustomResourceSubresourceScale: { - // specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. - // Only JSON paths without the array notation are allowed. - // Must be a JSON Path under `.spec`. - // If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. - specReplicasPath: string @go(SpecReplicasPath) @protobuf(1,bytes) - - // statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. - // Only JSON paths without the array notation are allowed. - // Must be a JSON Path under `.status`. - // If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource - // will default to 0. - statusReplicasPath: string @go(StatusReplicasPath) @protobuf(2,bytes,opt) - - // labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. - // Only JSON paths without the array notation are allowed. - // Must be a JSON Path under `.status` or `.spec`. - // Must be set to work with HorizontalPodAutoscaler. - // The field pointed by this JSON path must be a string field (not a complex selector struct) - // which contains a serialized label selector in string form. - // More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource - // If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` - // subresource will default to the empty string. - // +optional - labelSelectorPath?: null | string @go(LabelSelectorPath,*string) @protobuf(3,bytes,opt) -} - -// ConversionReview describes a conversion request/response. -#ConversionReview: { - metav1.#TypeMeta - - // request describes the attributes for the conversion request. - // +optional - request?: null | #ConversionRequest @go(Request,*ConversionRequest) @protobuf(1,bytes,opt) - - // response describes the attributes for the conversion response. - // +optional - response?: null | #ConversionResponse @go(Response,*ConversionResponse) @protobuf(2,bytes,opt) -} - -// ConversionRequest describes the conversion request parameters. -#ConversionRequest: { - // uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are - // otherwise identical (parallel requests, etc). - // The UID is meant to track the round trip (request/response) between the Kubernetes API server and the webhook, not the user request. - // It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. - uid: types.#UID @go(UID) @protobuf(1,bytes) - - // desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1" - desiredAPIVersion: string @go(DesiredAPIVersion) @protobuf(2,bytes) - - // objects is the list of custom resource objects to be converted. - objects: [...runtime.#RawExtension] @go(Objects,[]runtime.RawExtension) @protobuf(3,bytes,rep) -} - -// ConversionResponse describes a conversion response. -#ConversionResponse: { - // uid is an identifier for the individual request/response. - // This should be copied over from the corresponding `request.uid`. - uid: types.#UID @go(UID) @protobuf(1,bytes) - - // convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty. - // The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list - // must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace). - // The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored. - convertedObjects: [...runtime.#RawExtension] @go(ConvertedObjects,[]runtime.RawExtension) @protobuf(2,bytes,rep) - - // result contains the result of conversion with extra details if the conversion failed. `result.status` determines if - // the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the - // conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set - // `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message` - // will be used to construct an error message for the end user. - result: metav1.#Status @go(Result) @protobuf(3,bytes) -} diff --git a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema_go_gen.cue b/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema_go_gen.cue deleted file mode 100644 index df3bc3a..0000000 --- a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema_go_gen.cue +++ /dev/null @@ -1,257 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1 - -package v1 - -// JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). -#JSONSchemaProps: { - id?: string @go(ID) @protobuf(1,bytes,opt) - $schema?: #JSONSchemaURL @go(Schema) @protobuf(2,bytes,opt,name=schema) - $ref?: null | string @go(Ref,*string) @protobuf(3,bytes,opt,name=ref) - description?: string @go(Description) @protobuf(4,bytes,opt) - type?: string @go(Type) @protobuf(5,bytes,opt) - - // format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - // - // - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - // - uri: an URI as parsed by Golang net/url.ParseRequestURI - // - email: an email address as parsed by Golang net/mail.ParseAddress - // - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - // - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - // - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - // - cidr: a CIDR as parsed by Golang net.ParseCIDR - // - mac: a MAC address as parsed by Golang net.ParseMAC - // - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - // - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - // - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - // - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - // - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - // - isbn10: an ISBN10 number string like "0321751043" - // - isbn13: an ISBN13 number string like "978-0321751041" - // - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in - // - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$ - // - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - // - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - // - byte: base64 encoded binary data - // - password: any kind of string - // - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - // - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - // - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. - format?: string @go(Format) @protobuf(6,bytes,opt) - title?: string @go(Title) @protobuf(7,bytes,opt) - - // default is a default value for undefined object fields. - // Defaulting is a beta feature under the CustomResourceDefaulting feature gate. - // Defaulting requires spec.preserveUnknownFields to be false. - default?: null | #JSON @go(Default,*JSON) @protobuf(8,bytes,opt) - maximum?: null | float64 @go(Maximum,*float64) @protobuf(9,bytes,opt) - exclusiveMaximum?: bool @go(ExclusiveMaximum) @protobuf(10,bytes,opt) - minimum?: null | float64 @go(Minimum,*float64) @protobuf(11,bytes,opt) - exclusiveMinimum?: bool @go(ExclusiveMinimum) @protobuf(12,bytes,opt) - maxLength?: null | int64 @go(MaxLength,*int64) @protobuf(13,bytes,opt) - minLength?: null | int64 @go(MinLength,*int64) @protobuf(14,bytes,opt) - pattern?: string @go(Pattern) @protobuf(15,bytes,opt) - maxItems?: null | int64 @go(MaxItems,*int64) @protobuf(16,bytes,opt) - minItems?: null | int64 @go(MinItems,*int64) @protobuf(17,bytes,opt) - uniqueItems?: bool @go(UniqueItems) @protobuf(18,bytes,opt) - multipleOf?: null | float64 @go(MultipleOf,*float64) @protobuf(19,bytes,opt) - enum?: [...#JSON] @go(Enum,[]JSON) @protobuf(20,bytes,rep) - maxProperties?: null | int64 @go(MaxProperties,*int64) @protobuf(21,bytes,opt) - minProperties?: null | int64 @go(MinProperties,*int64) @protobuf(22,bytes,opt) - required?: [...string] @go(Required,[]string) @protobuf(23,bytes,rep) - items?: null | #JSONSchemaPropsOrArray @go(Items,*JSONSchemaPropsOrArray) @protobuf(24,bytes,opt) - allOf?: [...#JSONSchemaProps] @go(AllOf,[]JSONSchemaProps) @protobuf(25,bytes,rep) - oneOf?: [...#JSONSchemaProps] @go(OneOf,[]JSONSchemaProps) @protobuf(26,bytes,rep) - anyOf?: [...#JSONSchemaProps] @go(AnyOf,[]JSONSchemaProps) @protobuf(27,bytes,rep) - not?: null | #JSONSchemaProps @go(Not,*JSONSchemaProps) @protobuf(28,bytes,opt) - properties?: {[string]: #JSONSchemaProps} @go(Properties,map[string]JSONSchemaProps) @protobuf(29,bytes,rep) - additionalProperties?: null | #JSONSchemaPropsOrBool @go(AdditionalProperties,*JSONSchemaPropsOrBool) @protobuf(30,bytes,opt) - patternProperties?: {[string]: #JSONSchemaProps} @go(PatternProperties,map[string]JSONSchemaProps) @protobuf(31,bytes,rep) - dependencies?: #JSONSchemaDependencies @go(Dependencies) @protobuf(32,bytes,opt) - additionalItems?: null | #JSONSchemaPropsOrBool @go(AdditionalItems,*JSONSchemaPropsOrBool) @protobuf(33,bytes,opt) - definitions?: #JSONSchemaDefinitions @go(Definitions) @protobuf(34,bytes,opt) - externalDocs?: null | #ExternalDocumentation @go(ExternalDocs,*ExternalDocumentation) @protobuf(35,bytes,opt) - example?: null | #JSON @go(Example,*JSON) @protobuf(36,bytes,opt) - nullable?: bool @go(Nullable) @protobuf(37,bytes,opt) - - // x-kubernetes-preserve-unknown-fields stops the API server - // decoding step from pruning fields which are not specified - // in the validation schema. This affects fields recursively, - // but switches back to normal pruning behaviour if nested - // properties or additionalProperties are specified in the schema. - // This can either be true or undefined. False is forbidden. - "x-kubernetes-preserve-unknown-fields"?: null | bool @go(XPreserveUnknownFields,*bool) @protobuf(38,bytes,opt,name=xKubernetesPreserveUnknownFields) - - // x-kubernetes-embedded-resource defines that the value is an - // embedded Kubernetes runtime.Object, with TypeMeta and - // ObjectMeta. The type must be object. It is allowed to further - // restrict the embedded object. kind, apiVersion and metadata - // are validated automatically. x-kubernetes-preserve-unknown-fields - // is allowed to be true, but does not have to be if the object - // is fully specified (up to kind, apiVersion, metadata). - "x-kubernetes-embedded-resource"?: bool @go(XEmbeddedResource) @protobuf(39,bytes,opt,name=xKubernetesEmbeddedResource) - - // x-kubernetes-int-or-string specifies that this value is - // either an integer or a string. If this is true, an empty - // type is allowed and type as child of anyOf is permitted - // if following one of the following patterns: - // - // 1) anyOf: - // - type: integer - // - type: string - // 2) allOf: - // - anyOf: - // - type: integer - // - type: string - // - ... zero or more - "x-kubernetes-int-or-string"?: bool @go(XIntOrString) @protobuf(40,bytes,opt,name=xKubernetesIntOrString) - - // x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used - // as the index of the map. - // - // This tag MUST only be used on lists that have the "x-kubernetes-list-type" - // extension set to "map". Also, the values specified for this attribute must - // be a scalar typed field of the child structure (no nesting is supported). - // - // The properties specified must either be required or have a default value, - // to ensure those properties are present for all list items. - // - // +optional - "x-kubernetes-list-map-keys"?: [...string] @go(XListMapKeys,[]string) @protobuf(41,bytes,rep,name=xKubernetesListMapKeys) - - // x-kubernetes-list-type annotates an array to further describe its topology. - // This extension must only be used on lists and may have 3 possible values: - // - // 1) `atomic`: the list is treated as a single entity, like a scalar. - // Atomic lists will be entirely replaced when updated. This extension - // may be used on any type of list (struct, scalar, ...). - // 2) `set`: - // Sets are lists that must not have multiple items with the same value. Each - // value must be a scalar, an object with x-kubernetes-map-type `atomic` or an - // array with x-kubernetes-list-type `atomic`. - // 3) `map`: - // These lists are like maps in that their elements have a non-index key - // used to identify them. Order is preserved upon merge. The map tag - // must only be used on a list with elements of type object. - // Defaults to atomic for arrays. - // +optional - "x-kubernetes-list-type"?: null | string @go(XListType,*string) @protobuf(42,bytes,opt,name=xKubernetesListType) - - // x-kubernetes-map-type annotates an object to further describe its topology. - // This extension must only be used when type is object and may have 2 possible values: - // - // 1) `granular`: - // These maps are actual maps (key-value pairs) and each fields are independent - // from each other (they can each be manipulated by separate actors). This is - // the default behaviour for all maps. - // 2) `atomic`: the list is treated as a single entity, like a scalar. - // Atomic maps will be entirely replaced when updated. - // +optional - "x-kubernetes-map-type"?: null | string @go(XMapType,*string) @protobuf(43,bytes,opt,name=xKubernetesMapType) - - // x-kubernetes-validations describes a list of validation rules written in the CEL expression language. - // This field is an alpha-level. Using this field requires the feature gate `CustomResourceValidationExpressions` to be enabled. - // +patchMergeKey=rule - // +patchStrategy=merge - // +listType=map - // +listMapKey=rule - "x-kubernetes-validations"?: #ValidationRules @go(XValidations) @protobuf(44,bytes,rep,name=xKubernetesValidations) -} - -// ValidationRules describes a list of validation rules written in the CEL expression language. -#ValidationRules: [...#ValidationRule] - -// ValidationRule describes a validation rule written in the CEL expression language. -#ValidationRule: { - // Rule represents the expression which will be evaluated by CEL. - // ref: https://github.com/google/cel-spec - // The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. - // The `self` variable in the CEL expression is bound to the scoped value. - // Example: - // - Rule scoped to the root of a resource with a status subresource: {"rule": "self.status.actual <= self.spec.maxDesired"} - // - // If the Rule is scoped to an object with properties, the accessible properties of the object are field selectable - // via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as - // absent fields in CEL expressions. - // If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map - // are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map - // are accessible via CEL macros and functions such as `self.all(...)`. - // If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and - // functions. - // If the Rule is scoped to a scalar, `self` is bound to the scalar value. - // Examples: - // - Rule scoped to a map of objects: {"rule": "self.components['Widget'].priority < 10"} - // - Rule scoped to a list of integers: {"rule": "self.values.all(value, value >= 0 && value < 100)"} - // - Rule scoped to a string value: {"rule": "self.startsWith('kube')"} - // - // The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the - // object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible. - // - // Unknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL - // expressions. This includes: - // - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - // - Object properties where the property schema is of an "unknown type". An "unknown type" is recursively defined as: - // - A schema with no type and x-kubernetes-preserve-unknown-fields set to true - // - An array where the items schema is of an "unknown type" - // - An object where the additionalProperties schema is of an "unknown type" - // - // Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. - // Accessible property names are escaped according to the following rules when accessed in the expression: - // - '__' escapes to '__underscores__' - // - '.' escapes to '__dot__' - // - '-' escapes to '__dash__' - // - '/' escapes to '__slash__' - // - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: - // "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", - // "import", "let", "loop", "package", "namespace", "return". - // Examples: - // - Rule accessing a property named "namespace": {"rule": "self.__namespace__ > 0"} - // - Rule accessing a property named "x-prop": {"rule": "self.x__dash__prop > 0"} - // - Rule accessing a property named "redact__d": {"rule": "self.redact__underscores__d > 0"} - // - // Equality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. - // Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - // - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and - // non-intersecting elements in `Y` are appended, retaining their partial order. - // - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values - // are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with - // non-intersecting keys are appended, retaining their partial order. - rule: string @go(Rule) @protobuf(1,bytes,opt) - - // Message represents the message displayed when validation fails. The message is required if the Rule contains - // line breaks. The message must not contain line breaks. - // If unset, the message is "failed rule: {Rule}". - // e.g. "must be a URL with the host matching spec.host" - message?: string @go(Message) @protobuf(2,bytes,opt) -} - -// JSON represents any valid JSON value. -// These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. -#JSON: _ - -// JSONSchemaURL represents a schema url. -#JSONSchemaURL: string - -// JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps -// or an array of JSONSchemaProps. Mainly here for serialization purposes. -#JSONSchemaPropsOrArray: _ - -// JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. -// Defaults to true for the boolean property. -#JSONSchemaPropsOrBool: _ - -// JSONSchemaDependencies represent a dependencies property. -#JSONSchemaDependencies: {[string]: #JSONSchemaPropsOrStringArray} - -// JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array. -#JSONSchemaPropsOrStringArray: _ - -// JSONSchemaDefinitions contains the models explicitly defined in this spec. -#JSONSchemaDefinitions: {[string]: #JSONSchemaProps} - -// ExternalDocumentation allows referencing an external resource for extended documentation. -#ExternalDocumentation: { - description?: string @go(Description) @protobuf(1,bytes,opt) - url?: string @go(URL) @protobuf(2,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/amount_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/amount_go_gen.cue deleted file mode 100644 index cef44ba..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/amount_go_gen.cue +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/api/resource - -package resource - -// Scale is used for getting and setting the base-10 scaled value. -// Base-2 scales are omitted for mathematical simplicity. -// See Quantity.ScaledValue for more details. -#Scale: int32 // #enumScale - -#enumScale: - #Nano | - #Micro | - #Milli | - #Kilo | - #Mega | - #Giga | - #Tera | - #Peta | - #Exa - -#values_Scale: { - Nano: #Nano - Micro: #Micro - Milli: #Milli - Kilo: #Kilo - Mega: #Mega - Giga: #Giga - Tera: #Tera - Peta: #Peta - Exa: #Exa -} - -#Nano: #Scale & -9 -#Micro: #Scale & -6 -#Milli: #Scale & -3 -#Kilo: #Scale & 3 -#Mega: #Scale & 6 -#Giga: #Scale & 9 -#Tera: #Scale & 12 -#Peta: #Scale & 15 -#Exa: #Scale & 18 - -// infDecAmount implements common operations over an inf.Dec that are specific to the quantity -// representation. -_#infDecAmount: string diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/math_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/math_go_gen.cue deleted file mode 100644 index 711f209..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/math_go_gen.cue +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/api/resource - -package resource - -// maxInt64Factors is the highest value that will be checked when removing factors of 10 from an int64. -// It is also the maximum decimal digits that can be represented with an int64. -_#maxInt64Factors: 18 - -_#mostNegative: -9223372036854775808 - -_#mostPositive: 9223372036854775807 diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/quantity_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/quantity_go_gen.cue deleted file mode 100644 index 3b1a9dc..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/quantity_go_gen.cue +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/api/resource - -package resource - -// Quantity is a fixed-point representation of a number. -// It provides convenient marshaling/unmarshaling in JSON and YAML, -// in addition to String() and AsInt64() accessors. -// -// The serialization format is: -// -// ::= -// (Note that may be empty, from the "" case in .) -// ::= 0 | 1 | ... | 9 -// ::= | -// ::= | . | . | . -// ::= "+" | "-" -// ::= | -// ::= | | -// ::= Ki | Mi | Gi | Ti | Pi | Ei -// (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) -// ::= m | "" | k | M | G | T | P | E -// (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) -// ::= "e" | "E" -// -// No matter which of the three exponent forms is used, no quantity may represent -// a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal -// places. Numbers larger or more precise will be capped or rounded up. -// (E.g.: 0.1m will rounded up to 1m.) -// This may be extended in the future if we require larger or smaller quantities. -// -// When a Quantity is parsed from a string, it will remember the type of suffix -// it had, and will use the same type again when it is serialized. -// -// Before serializing, Quantity will be put in "canonical form". -// This means that Exponent/suffix will be adjusted up or down (with a -// corresponding increase or decrease in Mantissa) such that: -// a. No precision is lost -// b. No fractional digits will be emitted -// c. The exponent (or suffix) is as large as possible. -// The sign will be omitted unless the number is negative. -// -// Examples: -// 1.5 will be serialized as "1500m" -// 1.5Gi will be serialized as "1536Mi" -// -// Note that the quantity will NEVER be internally represented by a -// floating point number. That is the whole point of this exercise. -// -// Non-canonical values will still parse as long as they are well formed, -// but will be re-emitted in their canonical form. (So always use canonical -// form, or don't diff.) -// -// This format is intended to make it difficult to use these numbers without -// writing some sort of special handling code in the hopes that that will -// cause implementors to also use a fixed point implementation. -// -// +protobuf=true -// +protobuf.embed=string -// +protobuf.options.marshal=false -// +protobuf.options.(gogoproto.goproto_stringer)=false -// +k8s:deepcopy-gen=true -// +k8s:openapi-gen=true -#Quantity: _ - -// CanonicalValue allows a quantity amount to be converted to a string. -#CanonicalValue: _ - -// Format lists the three possible formattings of a quantity. -#Format: string // #enumFormat - -#enumFormat: - #DecimalExponent | - #BinarySI | - #DecimalSI - -#DecimalExponent: #Format & "DecimalExponent" -#BinarySI: #Format & "BinarySI" -#DecimalSI: #Format & "DecimalSI" - -// splitREString is used to separate a number from its suffix; as such, -// this is overly permissive, but that's OK-- it will be checked later. -_#splitREString: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - -_#int64QuantityExpectedBytes: 18 - -// QuantityValue makes it possible to use a Quantity as value for a command -// line parameter. -// -// +protobuf=true -// +protobuf.embed=string -// +protobuf.options.marshal=false -// +protobuf.options.(gogoproto.goproto_stringer)=false -// +k8s:deepcopy-gen=true -#QuantityValue: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/suffix_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/suffix_go_gen.cue deleted file mode 100644 index b40d68e..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/suffix_go_gen.cue +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/api/resource - -package resource - -_#suffix: string - -// suffixer can interpret and construct suffixes. -_#suffixer: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/duration_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/duration_go_gen.cue deleted file mode 100644 index 25ea8ec..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/duration_go_gen.cue +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/apis/meta/v1 - -package v1 - -// Duration is a wrapper around time.Duration which supports correct -// marshaling to YAML and JSON. In particular, it marshals into strings, which -// can be used as map keys in json. -#Duration: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/group_version_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/group_version_go_gen.cue deleted file mode 100644 index 7ff5386..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/group_version_go_gen.cue +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/apis/meta/v1 - -package v1 - -// GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying -// concepts during lookup stages without having partially valid types -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -#GroupResource: { - group: string @go(Group) @protobuf(1,bytes,opt) - resource: string @go(Resource) @protobuf(2,bytes,opt) -} - -// GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion -// to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -#GroupVersionResource: { - group: string @go(Group) @protobuf(1,bytes,opt) - version: string @go(Version) @protobuf(2,bytes,opt) - resource: string @go(Resource) @protobuf(3,bytes,opt) -} - -// GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying -// concepts during lookup stages without having partially valid types -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -#GroupKind: { - group: string @go(Group) @protobuf(1,bytes,opt) - kind: string @go(Kind) @protobuf(2,bytes,opt) -} - -// GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion -// to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -#GroupVersionKind: { - group: string @go(Group) @protobuf(1,bytes,opt) - version: string @go(Version) @protobuf(2,bytes,opt) - kind: string @go(Kind) @protobuf(3,bytes,opt) -} - -// GroupVersion contains the "group" and the "version", which uniquely identifies the API. -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -#GroupVersion: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/meta_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/meta_go_gen.cue deleted file mode 100644 index f3c39a4..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/meta_go_gen.cue +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/apis/meta/v1 - -package v1 - -// TODO: move this, Object, List, and Type to a different package -#ObjectMetaAccessor: _ - -// Object lets you work with object metadata from any of the versioned or -// internal API objects. Attempting to set or retrieve a field on an object that does -// not support that field (Name, UID, Namespace on lists) will be a no-op and return -// a default value. -#Object: _ - -// ListMetaAccessor retrieves the list interface from an object -#ListMetaAccessor: _ - -// Common lets you work with core metadata from any of the versioned or -// internal API objects. Attempting to set or retrieve a field on an object that does -// not support that field will be a no-op and return a default value. -// TODO: move this, and TypeMeta and ListMeta, to a different package -#Common: _ - -// ListInterface lets you work with list metadata from any of the versioned or -// internal API objects. Attempting to set or retrieve a field on an object that does -// not support that field will be a no-op and return a default value. -// TODO: move this, and TypeMeta and ListMeta, to a different package -#ListInterface: _ - -// Type exposes the type and APIVersion of versioned or internal API objects. -// TODO: move this, and TypeMeta and ListMeta, to a different package -#Type: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_go_gen.cue deleted file mode 100644 index 3c067ba..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_go_gen.cue +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/apis/meta/v1 - -package v1 - -#RFC3339Micro: "2006-01-02T15:04:05.000000Z07:00" - -// MicroTime is version of Time with microsecond level precision. -// -// +protobuf.options.marshal=false -// +protobuf.as=Timestamp -// +protobuf.options.(gogoproto.goproto_stringer)=false -#MicroTime: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/register_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/register_go_gen.cue deleted file mode 100644 index 39d23b2..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/register_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/apis/meta/v1 - -package v1 - -#GroupName: "meta.k8s.io" - -#WatchEventKind: "WatchEvent" diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/time_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/time_go_gen.cue deleted file mode 100644 index b3c8ec2..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/time_go_gen.cue +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/apis/meta/v1 - -package v1 - -// Time is a wrapper around time.Time which supports correct -// marshaling to YAML and JSON. Wrappers are provided for many -// of the factory methods that the time package offers. -// -// +protobuf.options.marshal=false -// +protobuf.as=Timestamp -// +protobuf.options.(gogoproto.goproto_stringer)=false -#Time: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto_go_gen.cue deleted file mode 100644 index 8353927..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto_go_gen.cue +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/apis/meta/v1 - -package v1 - -// Timestamp is a struct that is equivalent to Time, but intended for -// protobuf marshalling/unmarshalling. It is generated into a serialization -// that matches Time. Do not use in Go structs. -#Timestamp: { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - seconds: int64 @go(Seconds) @protobuf(1,varint,opt) - - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. This field may be limited in precision depending on context. - nanos: int32 @go(Nanos) @protobuf(2,varint,opt) -} diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue deleted file mode 100644 index 98e2bf4..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue +++ /dev/null @@ -1,1504 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/apis/meta/v1 - -// Package v1 contains API types that are common to all versions. -// -// The package contains two categories of types: -// - external (serialized) types that lack their own version (e.g TypeMeta) -// - internal (never-serialized) types that are needed by several different -// api groups, and so live here, to avoid duplication and/or import loops -// (e.g. LabelSelector). -// In the future, we will probably move these categories of objects into -// separate packages. -package v1 - -import ( - "k8s.io/apimachinery/pkg/types" - "k8s.io/apimachinery/pkg/runtime" -) - -// TypeMeta describes an individual object in an API response or request -// with strings representing the type of the object and its API schema version. -// Structures that are versioned or persisted should inline TypeMeta. -// -// +k8s:deepcopy-gen=false -#TypeMeta: { - // Kind is a string value representing the REST resource this object represents. - // Servers may infer this from the endpoint the client submits requests to. - // Cannot be updated. - // In CamelCase. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - kind?: string @go(Kind) @protobuf(1,bytes,opt) - - // APIVersion defines the versioned schema of this representation of an object. - // Servers should convert recognized schemas to the latest internal value, and - // may reject unrecognized values. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - // +optional - apiVersion?: string @go(APIVersion) @protobuf(2,bytes,opt) -} - -// ListMeta describes metadata that synthetic resources must have, including lists and -// various status objects. A resource may have only one of {ObjectMeta, ListMeta}. -#ListMeta: { - // selfLink is a URL representing this object. - // Populated by the system. - // Read-only. - // - // DEPRECATED - // Kubernetes will stop propagating this field in 1.20 release and the field is planned - // to be removed in 1.21 release. - // +optional - selfLink?: string @go(SelfLink) @protobuf(1,bytes,opt) - - // String that identifies the server's internal version of this object that - // can be used by clients to determine when objects have changed. - // Value must be treated as opaque by clients and passed unmodified back to the server. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - // +optional - resourceVersion?: string @go(ResourceVersion) @protobuf(2,bytes,opt) - - // continue may be set if the user set a limit on the number of items returned, and indicates that - // the server has more data available. The value is opaque and may be used to issue another request - // to the endpoint that served this list to retrieve the next set of available objects. Continuing a - // consistent list may not be possible if the server configuration has changed or more than a few - // minutes have passed. The resourceVersion field returned when using this continue value will be - // identical to the value in the first response, unless you have received this token from an error - // message. - continue?: string @go(Continue) @protobuf(3,bytes,opt) - - // remainingItemCount is the number of subsequent items in the list which are not included in this - // list response. If the list request contained label or field selectors, then the number of - // remaining items is unknown and the field will be left unset and omitted during serialization. - // If the list is complete (either because it is not chunking or because this is the last chunk), - // then there are no more remaining items and this field will be left unset and omitted during - // serialization. - // Servers older than v1.15 do not set this field. - // The intended use of the remainingItemCount is *estimating* the size of a collection. Clients - // should not rely on the remainingItemCount to be set or to be exact. - // +optional - remainingItemCount?: null | int64 @go(RemainingItemCount,*int64) @protobuf(4,bytes,opt) -} - -#ObjectNameField: "metadata.name" - -#FinalizerOrphanDependents: "orphan" -#FinalizerDeleteDependents: "foregroundDeletion" - -// ObjectMeta is metadata that all persisted resources must have, which includes all objects -// users must create. -#ObjectMeta: { - // Name must be unique within a namespace. Is required when creating resources, although - // some resources may allow a client to request the generation of an appropriate name - // automatically. Name is primarily intended for creation idempotence and configuration - // definition. - // Cannot be updated. - // More info: http://kubernetes.io/docs/user-guide/identifiers#names - // +optional - name?: string @go(Name) @protobuf(1,bytes,opt) - - // GenerateName is an optional prefix, used by the server, to generate a unique - // name ONLY IF the Name field has not been provided. - // If this field is used, the name returned to the client will be different - // than the name passed. This value will also be combined with a unique suffix. - // The provided value has the same validation rules as the Name field, - // and may be truncated by the length of the suffix required to make the value - // unique on the server. - // - // If this field is specified and the generated name exists, the server will - // NOT return a 409 - instead, it will either return 201 Created or 500 with Reason - // ServerTimeout indicating a unique name could not be found in the time allotted, and the client - // should retry (optionally after the time indicated in the Retry-After header). - // - // Applied only if Name is not specified. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - // +optional - generateName?: string @go(GenerateName) @protobuf(2,bytes,opt) - - // Namespace defines the space within which each name must be unique. An empty namespace is - // equivalent to the "default" namespace, but "default" is the canonical representation. - // Not all objects are required to be scoped to a namespace - the value of this field for - // those objects will be empty. - // - // Must be a DNS_LABEL. - // Cannot be updated. - // More info: http://kubernetes.io/docs/user-guide/namespaces - // +optional - namespace?: string @go(Namespace) @protobuf(3,bytes,opt) - - // SelfLink is a URL representing this object. - // Populated by the system. - // Read-only. - // - // DEPRECATED - // Kubernetes will stop propagating this field in 1.20 release and the field is planned - // to be removed in 1.21 release. - // +optional - selfLink?: string @go(SelfLink) @protobuf(4,bytes,opt) - - // UID is the unique in time and space value for this object. It is typically generated by - // the server on successful creation of a resource and is not allowed to change on PUT - // operations. - // - // Populated by the system. - // Read-only. - // More info: http://kubernetes.io/docs/user-guide/identifiers#uids - // +optional - uid?: types.#UID @go(UID) @protobuf(5,bytes,opt,casttype=k8s.io/kubernetes/pkg/types.UID) - - // An opaque value that represents the internal version of this object that can - // be used by clients to determine when objects have changed. May be used for optimistic - // concurrency, change detection, and the watch operation on a resource or set of resources. - // Clients must treat these values as opaque and passed unmodified back to the server. - // They may only be valid for a particular resource or set of resources. - // - // Populated by the system. - // Read-only. - // Value must be treated as opaque by clients and . - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - // +optional - resourceVersion?: string @go(ResourceVersion) @protobuf(6,bytes,opt) - - // A sequence number representing a specific generation of the desired state. - // Populated by the system. Read-only. - // +optional - generation?: int64 @go(Generation) @protobuf(7,varint,opt) - - // CreationTimestamp is a timestamp representing the server time when this object was - // created. It is not guaranteed to be set in happens-before order across separate operations. - // Clients may not set this value. It is represented in RFC3339 form and is in UTC. - // - // Populated by the system. - // Read-only. - // Null for lists. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - creationTimestamp?: #Time @go(CreationTimestamp) @protobuf(8,bytes,opt) - - // DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This - // field is set by the server when a graceful deletion is requested by the user, and is not - // directly settable by a client. The resource is expected to be deleted (no longer visible - // from resource lists, and not reachable by name) after the time in this field, once the - // finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. - // Once the deletionTimestamp is set, this value may not be unset or be set further into the - // future, although it may be shortened or the resource may be deleted prior to this time. - // For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react - // by sending a graceful termination signal to the containers in the pod. After that 30 seconds, - // the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, - // remove the pod from the API. In the presence of network partitions, this object may still - // exist after this timestamp, until an administrator or automated process can determine the - // resource is fully terminated. - // If not set, graceful deletion of the object has not been requested. - // - // Populated by the system when a graceful deletion is requested. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - deletionTimestamp?: null | #Time @go(DeletionTimestamp,*Time) @protobuf(9,bytes,opt) - - // Number of seconds allowed for this object to gracefully terminate before - // it will be removed from the system. Only set when deletionTimestamp is also set. - // May only be shortened. - // Read-only. - // +optional - deletionGracePeriodSeconds?: null | int64 @go(DeletionGracePeriodSeconds,*int64) @protobuf(10,varint,opt) - - // Map of string keys and values that can be used to organize and categorize - // (scope and select) objects. May match selectors of replication controllers - // and services. - // More info: http://kubernetes.io/docs/user-guide/labels - // +optional - labels?: {[string]: string} @go(Labels,map[string]string) @protobuf(11,bytes,rep) - - // Annotations is an unstructured key value map stored with a resource that may be - // set by external tools to store and retrieve arbitrary metadata. They are not - // queryable and should be preserved when modifying objects. - // More info: http://kubernetes.io/docs/user-guide/annotations - // +optional - annotations?: {[string]: string} @go(Annotations,map[string]string) @protobuf(12,bytes,rep) - - // List of objects depended by this object. If ALL objects in the list have - // been deleted, this object will be garbage collected. If this object is managed by a controller, - // then an entry in this list will point to this controller, with the controller field set to true. - // There cannot be more than one managing controller. - // +optional - // +patchMergeKey=uid - // +patchStrategy=merge - ownerReferences?: [...#OwnerReference] @go(OwnerReferences,[]OwnerReference) @protobuf(13,bytes,rep) - - // Must be empty before the object is deleted from the registry. Each entry - // is an identifier for the responsible component that will remove the entry - // from the list. If the deletionTimestamp of the object is non-nil, entries - // in this list can only be removed. - // Finalizers may be processed and removed in any order. Order is NOT enforced - // because it introduces significant risk of stuck finalizers. - // finalizers is a shared field, any actor with permission can reorder it. - // If the finalizer list is processed in order, then this can lead to a situation - // in which the component responsible for the first finalizer in the list is - // waiting for a signal (field value, external system, or other) produced by a - // component responsible for a finalizer later in the list, resulting in a deadlock. - // Without enforced ordering finalizers are free to order amongst themselves and - // are not vulnerable to ordering changes in the list. - // +optional - // +patchStrategy=merge - finalizers?: [...string] @go(Finalizers,[]string) @protobuf(14,bytes,rep) - - // The name of the cluster which the object belongs to. - // This is used to distinguish resources with same name and namespace in different clusters. - // This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - // +optional - clusterName?: string @go(ClusterName) @protobuf(15,bytes,opt) - - // ManagedFields maps workflow-id and version to the set of fields - // that are managed by that workflow. This is mostly for internal - // housekeeping, and users typically shouldn't need to set or - // understand this field. A workflow can be the user's name, a - // controller's name, or the name of a specific apply path like - // "ci-cd". The set of fields is always in the version that the - // workflow used when modifying the object. - // - // +optional - managedFields?: [...#ManagedFieldsEntry] @go(ManagedFields,[]ManagedFieldsEntry) @protobuf(17,bytes,rep) -} - -// NamespaceDefault means the object is in the default namespace which is applied when not specified by clients -#NamespaceDefault: "default" - -// NamespaceAll is the default argument to specify on a context when you want to list or filter resources across all namespaces -#NamespaceAll: "" - -// NamespaceNone is the argument for a context when there is no namespace. -#NamespaceNone: "" - -// NamespaceSystem is the system namespace where we place system components. -#NamespaceSystem: "kube-system" - -// NamespacePublic is the namespace where we place public info (ConfigMaps) -#NamespacePublic: "kube-public" - -// OwnerReference contains enough information to let you identify an owning -// object. An owning object must be in the same namespace as the dependent, or -// be cluster-scoped, so there is no namespace field. -// +structType=atomic -#OwnerReference: { - // API version of the referent. - apiVersion: string @go(APIVersion) @protobuf(5,bytes,opt) - - // Kind of the referent. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - kind: string @go(Kind) @protobuf(1,bytes,opt) - - // Name of the referent. - // More info: http://kubernetes.io/docs/user-guide/identifiers#names - name: string @go(Name) @protobuf(3,bytes,opt) - - // UID of the referent. - // More info: http://kubernetes.io/docs/user-guide/identifiers#uids - uid: types.#UID @go(UID) @protobuf(4,bytes,opt,casttype=k8s.io/apimachinery/pkg/types.UID) - - // If true, this reference points to the managing controller. - // +optional - controller?: null | bool @go(Controller,*bool) @protobuf(6,varint,opt) - - // If true, AND if the owner has the "foregroundDeletion" finalizer, then - // the owner cannot be deleted from the key-value store until this - // reference is removed. - // Defaults to false. - // To set this field, a user needs "delete" permission of the owner, - // otherwise 422 (Unprocessable Entity) will be returned. - // +optional - blockOwnerDeletion?: null | bool @go(BlockOwnerDeletion,*bool) @protobuf(7,varint,opt) -} - -// ListOptions is the query options to a standard REST list call. -#ListOptions: { - #TypeMeta - - // A selector to restrict the list of returned objects by their labels. - // Defaults to everything. - // +optional - labelSelector?: string @go(LabelSelector) @protobuf(1,bytes,opt) - - // A selector to restrict the list of returned objects by their fields. - // Defaults to everything. - // +optional - fieldSelector?: string @go(FieldSelector) @protobuf(2,bytes,opt) - - // Watch for changes to the described resources and return them as a stream of - // add, update, and remove notifications. Specify resourceVersion. - // +optional - watch?: bool @go(Watch) @protobuf(3,varint,opt) - - // allowWatchBookmarks requests watch events with type "BOOKMARK". - // Servers that do not implement bookmarks may ignore this flag and - // bookmarks are sent at the server's discretion. Clients should not - // assume bookmarks are returned at any specific interval, nor may they - // assume the server will send any BOOKMARK event during a session. - // If this is not a watch, this field is ignored. - // +optional - allowWatchBookmarks?: bool @go(AllowWatchBookmarks) @protobuf(9,varint,opt) - - // resourceVersion sets a constraint on what resource versions a request may be served from. - // See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for - // details. - // - // Defaults to unset - // +optional - resourceVersion?: string @go(ResourceVersion) @protobuf(4,bytes,opt) - - // resourceVersionMatch determines how resourceVersion is applied to list calls. - // It is highly recommended that resourceVersionMatch be set for list calls where - // resourceVersion is set - // See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for - // details. - // - // Defaults to unset - // +optional - resourceVersionMatch?: #ResourceVersionMatch @go(ResourceVersionMatch) @protobuf(10,bytes,opt,casttype=ResourceVersionMatch) - - // Timeout for the list/watch call. - // This limits the duration of the call, regardless of any activity or inactivity. - // +optional - timeoutSeconds?: null | int64 @go(TimeoutSeconds,*int64) @protobuf(5,varint,opt) - - // limit is a maximum number of responses to return for a list call. If more items exist, the - // server will set the `continue` field on the list metadata to a value that can be used with the - // same initial query to retrieve the next set of results. Setting a limit may return fewer than - // the requested amount of items (up to zero items) in the event all requested objects are - // filtered out and clients should only use the presence of the continue field to determine whether - // more results are available. Servers may choose not to support the limit argument and will return - // all of the available results. If limit is specified and the continue field is empty, clients may - // assume that no more results are available. This field is not supported if watch is true. - // - // The server guarantees that the objects returned when using continue will be identical to issuing - // a single list call without a limit - that is, no objects created, modified, or deleted after the - // first request is issued will be included in any subsequent continued requests. This is sometimes - // referred to as a consistent snapshot, and ensures that a client that is using limit to receive - // smaller chunks of a very large result can ensure they see all possible objects. If objects are - // updated during a chunked list the version of the object that was present at the time the first list - // result was calculated is returned. - limit?: int64 @go(Limit) @protobuf(7,varint,opt) - - // The continue option should be set when retrieving more results from the server. Since this value is - // server defined, clients may only use the continue value from a previous query result with identical - // query parameters (except for the value of continue) and the server may reject a continue value it - // does not recognize. If the specified continue value is no longer valid whether due to expiration - // (generally five to fifteen minutes) or a configuration change on the server, the server will - // respond with a 410 ResourceExpired error together with a continue token. If the client needs a - // consistent list, it must restart their list without the continue field. Otherwise, the client may - // send another list request with the token received with the 410 error, the server will respond with - // a list starting from the next key, but from the latest snapshot, which is inconsistent from the - // previous list results - objects that are created, modified, or deleted after the first list request - // will be included in the response, as long as their keys are after the "next key". - // - // This field is not supported when watch is true. Clients may start a watch from the last - // resourceVersion value returned by the server and not miss any modifications. - continue?: string @go(Continue) @protobuf(8,bytes,opt) -} - -// resourceVersionMatch specifies how the resourceVersion parameter is applied. resourceVersionMatch -// may only be set if resourceVersion is also set. -// -// "NotOlderThan" matches data at least as new as the provided resourceVersion. -// "Exact" matches data at the exact resourceVersion provided. -// -// See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for -// details. -#ResourceVersionMatch: string // #enumResourceVersionMatch - -#enumResourceVersionMatch: - #ResourceVersionMatchNotOlderThan | - #ResourceVersionMatchExact - -// ResourceVersionMatchNotOlderThan matches data at least as new as the provided -// resourceVersion. -#ResourceVersionMatchNotOlderThan: #ResourceVersionMatch & "NotOlderThan" - -// ResourceVersionMatchExact matches data at the exact resourceVersion -// provided. -#ResourceVersionMatchExact: #ResourceVersionMatch & "Exact" - -// GetOptions is the standard query options to the standard REST get call. -#GetOptions: { - #TypeMeta - - // resourceVersion sets a constraint on what resource versions a request may be served from. - // See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for - // details. - // - // Defaults to unset - // +optional - resourceVersion?: string @go(ResourceVersion) @protobuf(1,bytes,opt) -} - -// DeletionPropagation decides if a deletion will propagate to the dependents of -// the object, and how the garbage collector will handle the propagation. -#DeletionPropagation: string // #enumDeletionPropagation - -#enumDeletionPropagation: - #DeletePropagationOrphan | - #DeletePropagationBackground | - #DeletePropagationForeground - -// Orphans the dependents. -#DeletePropagationOrphan: #DeletionPropagation & "Orphan" - -// Deletes the object from the key-value store, the garbage collector will -// delete the dependents in the background. -#DeletePropagationBackground: #DeletionPropagation & "Background" - -// The object exists in the key-value store until the garbage collector -// deletes all the dependents whose ownerReference.blockOwnerDeletion=true -// from the key-value store. API sever will put the "foregroundDeletion" -// finalizer on the object, and sets its deletionTimestamp. This policy is -// cascading, i.e., the dependents will be deleted with Foreground. -#DeletePropagationForeground: #DeletionPropagation & "Foreground" - -// DryRunAll means to complete all processing stages, but don't -// persist changes to storage. -#DryRunAll: "All" - -// DeleteOptions may be provided when deleting an API object. -#DeleteOptions: { - #TypeMeta - - // The duration in seconds before the object should be deleted. Value must be non-negative integer. - // The value zero indicates delete immediately. If this value is nil, the default grace period for the - // specified type will be used. - // Defaults to a per object value if not specified. zero means delete immediately. - // +optional - gracePeriodSeconds?: null | int64 @go(GracePeriodSeconds,*int64) @protobuf(1,varint,opt) - - // Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be - // returned. - // +k8s:conversion-gen=false - // +optional - preconditions?: null | #Preconditions @go(Preconditions,*Preconditions) @protobuf(2,bytes,opt) - - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. - // Should the dependent objects be orphaned. If true/false, the "orphan" - // finalizer will be added to/removed from the object's finalizers list. - // Either this field or PropagationPolicy may be set, but not both. - // +optional - orphanDependents?: null | bool @go(OrphanDependents,*bool) @protobuf(3,varint,opt) - - // Whether and how garbage collection will be performed. - // Either this field or OrphanDependents may be set, but not both. - // The default policy is decided by the existing finalizer set in the - // metadata.finalizers and the resource-specific default policy. - // Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - - // allow the garbage collector to delete the dependents in the background; - // 'Foreground' - a cascading policy that deletes all dependents in the - // foreground. - // +optional - propagationPolicy?: null | #DeletionPropagation @go(PropagationPolicy,*DeletionPropagation) @protobuf(4,varint,opt) - - // When present, indicates that modifications should not be - // persisted. An invalid or unrecognized dryRun directive will - // result in an error response and no further processing of the - // request. Valid values are: - // - All: all dry run stages will be processed - // +optional - dryRun?: [...string] @go(DryRun,[]string) @protobuf(5,bytes,rep) -} - -// FieldValidationIgnore ignores unknown/duplicate fields -#FieldValidationIgnore: "Ignore" - -// FieldValidationWarn responds with a warning, but successfully serve the request -#FieldValidationWarn: "Warn" - -// FieldValidationStrict fails the request on unknown/duplicate fields -#FieldValidationStrict: "Strict" - -// CreateOptions may be provided when creating an API object. -#CreateOptions: { - #TypeMeta - - // When present, indicates that modifications should not be - // persisted. An invalid or unrecognized dryRun directive will - // result in an error response and no further processing of the - // request. Valid values are: - // - All: all dry run stages will be processed - // +optional - dryRun?: [...string] @go(DryRun,[]string) @protobuf(1,bytes,rep) - - // fieldManager is a name associated with the actor or entity - // that is making these changes. The value must be less than or - // 128 characters long, and only contain printable characters, - // as defined by https://golang.org/pkg/unicode/#IsPrint. - // +optional - fieldManager?: string @go(FieldManager) @protobuf(3,bytes) - - // fieldValidation determines how the server should respond to - // unknown/duplicate fields in the object in the request. - // Introduced as alpha in 1.23, older servers or servers with the - // `ServerSideFieldValidation` feature disabled will discard valid values - // specified in this param and not perform any server side field validation. - // Valid values are: - // - Ignore: ignores unknown/duplicate fields. - // - Warn: responds with a warning for each - // unknown/duplicate field, but successfully serves the request. - // - Strict: fails the request on unknown/duplicate fields. - // +optional - fieldValidation?: string @go(FieldValidation) @protobuf(4,bytes) -} - -// PatchOptions may be provided when patching an API object. -// PatchOptions is meant to be a superset of UpdateOptions. -#PatchOptions: { - #TypeMeta - - // When present, indicates that modifications should not be - // persisted. An invalid or unrecognized dryRun directive will - // result in an error response and no further processing of the - // request. Valid values are: - // - All: all dry run stages will be processed - // +optional - dryRun?: [...string] @go(DryRun,[]string) @protobuf(1,bytes,rep) - - // Force is going to "force" Apply requests. It means user will - // re-acquire conflicting fields owned by other people. Force - // flag must be unset for non-apply patch requests. - // +optional - force?: null | bool @go(Force,*bool) @protobuf(2,varint,opt) - - // fieldManager is a name associated with the actor or entity - // that is making these changes. The value must be less than or - // 128 characters long, and only contain printable characters, - // as defined by https://golang.org/pkg/unicode/#IsPrint. This - // field is required for apply requests - // (application/apply-patch) but optional for non-apply patch - // types (JsonPatch, MergePatch, StrategicMergePatch). - // +optional - fieldManager?: string @go(FieldManager) @protobuf(3,bytes) - - // fieldValidation determines how the server should respond to - // unknown/duplicate fields in the object in the request. - // Introduced as alpha in 1.23, older servers or servers with the - // `ServerSideFieldValidation` feature disabled will discard valid values - // specified in this param and not perform any server side field validation. - // Valid values are: - // - Ignore: ignores unknown/duplicate fields. - // - Warn: responds with a warning for each - // unknown/duplicate field, but successfully serves the request. - // - Strict: fails the request on unknown/duplicate fields. - // +optional - fieldValidation?: string @go(FieldValidation) @protobuf(4,bytes) -} - -// ApplyOptions may be provided when applying an API object. -// FieldManager is required for apply requests. -// ApplyOptions is equivalent to PatchOptions. It is provided as a convenience with documentation -// that speaks specifically to how the options fields relate to apply. -#ApplyOptions: { - #TypeMeta - - // When present, indicates that modifications should not be - // persisted. An invalid or unrecognized dryRun directive will - // result in an error response and no further processing of the - // request. Valid values are: - // - All: all dry run stages will be processed - // +optional - dryRun?: [...string] @go(DryRun,[]string) @protobuf(1,bytes,rep) - - // Force is going to "force" Apply requests. It means user will - // re-acquire conflicting fields owned by other people. - force: bool @go(Force) @protobuf(2,varint,opt) - - // fieldManager is a name associated with the actor or entity - // that is making these changes. The value must be less than or - // 128 characters long, and only contain printable characters, - // as defined by https://golang.org/pkg/unicode/#IsPrint. This - // field is required. - fieldManager: string @go(FieldManager) @protobuf(3,bytes) -} - -// UpdateOptions may be provided when updating an API object. -// All fields in UpdateOptions should also be present in PatchOptions. -#UpdateOptions: { - #TypeMeta - - // When present, indicates that modifications should not be - // persisted. An invalid or unrecognized dryRun directive will - // result in an error response and no further processing of the - // request. Valid values are: - // - All: all dry run stages will be processed - // +optional - dryRun?: [...string] @go(DryRun,[]string) @protobuf(1,bytes,rep) - - // fieldManager is a name associated with the actor or entity - // that is making these changes. The value must be less than or - // 128 characters long, and only contain printable characters, - // as defined by https://golang.org/pkg/unicode/#IsPrint. - // +optional - fieldManager?: string @go(FieldManager) @protobuf(2,bytes) - - // fieldValidation determines how the server should respond to - // unknown/duplicate fields in the object in the request. - // Introduced as alpha in 1.23, older servers or servers with the - // `ServerSideFieldValidation` feature disabled will discard valid values - // specified in this param and not perform any server side field validation. - // Valid values are: - // - Ignore: ignores unknown/duplicate fields. - // - Warn: responds with a warning for each - // unknown/duplicate field, but successfully serves the request. - // - Strict: fails the request on unknown/duplicate fields. - // +optional - fieldValidation?: string @go(FieldValidation) @protobuf(3,bytes) -} - -// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. -#Preconditions: { - // Specifies the target UID. - // +optional - uid?: null | types.#UID @go(UID,*types.UID) @protobuf(1,bytes,opt,casttype=k8s.io/apimachinery/pkg/types.UID) - - // Specifies the target ResourceVersion - // +optional - resourceVersion?: null | string @go(ResourceVersion,*string) @protobuf(2,bytes,opt) -} - -// Status is a return value for calls that don't return other objects. -#Status: { - #TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: #ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // Status of the operation. - // One of: "Success" or "Failure". - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - status?: string @go(Status) @protobuf(2,bytes,opt) - - // A human-readable description of the status of this operation. - // +optional - message?: string @go(Message) @protobuf(3,bytes,opt) - - // A machine-readable description of why this operation is in the - // "Failure" status. If this value is empty there - // is no information available. A Reason clarifies an HTTP status - // code but does not override it. - // +optional - reason?: #StatusReason @go(Reason) @protobuf(4,bytes,opt,casttype=StatusReason) - - // Extended data associated with the reason. Each reason may define its - // own extended details. This field is optional and the data returned - // is not guaranteed to conform to any schema except that defined by - // the reason type. - // +optional - details?: null | #StatusDetails @go(Details,*StatusDetails) @protobuf(5,bytes,opt) - - // Suggested HTTP return code for this status, 0 if not set. - // +optional - code?: int32 @go(Code) @protobuf(6,varint,opt) -} - -// StatusDetails is a set of additional properties that MAY be set by the -// server to provide additional information about a response. The Reason -// field of a Status object defines what attributes will be set. Clients -// must ignore fields that do not match the defined type of each attribute, -// and should assume that any attribute may be empty, invalid, or under -// defined. -#StatusDetails: { - // The name attribute of the resource associated with the status StatusReason - // (when there is a single name which can be described). - // +optional - name?: string @go(Name) @protobuf(1,bytes,opt) - - // The group attribute of the resource associated with the status StatusReason. - // +optional - group?: string @go(Group) @protobuf(2,bytes,opt) - - // The kind attribute of the resource associated with the status StatusReason. - // On some operations may differ from the requested resource Kind. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - kind?: string @go(Kind) @protobuf(3,bytes,opt) - - // UID of the resource. - // (when there is a single resource which can be described). - // More info: http://kubernetes.io/docs/user-guide/identifiers#uids - // +optional - uid?: types.#UID @go(UID) @protobuf(6,bytes,opt,casttype=k8s.io/apimachinery/pkg/types.UID) - - // The Causes array includes more details associated with the StatusReason - // failure. Not all StatusReasons may provide detailed causes. - // +optional - causes?: [...#StatusCause] @go(Causes,[]StatusCause) @protobuf(4,bytes,rep) - - // If specified, the time in seconds before the operation should be retried. Some errors may indicate - // the client must take an alternate action - for those errors this field may indicate how long to wait - // before taking the alternate action. - // +optional - retryAfterSeconds?: int32 @go(RetryAfterSeconds) @protobuf(5,varint,opt) -} - -#StatusSuccess: "Success" -#StatusFailure: "Failure" - -// StatusReason is an enumeration of possible failure causes. Each StatusReason -// must map to a single HTTP status code, but multiple reasons may map -// to the same HTTP status code. -// TODO: move to apiserver -#StatusReason: string // #enumStatusReason - -#enumStatusReason: - #StatusReasonUnknown | - #StatusReasonUnauthorized | - #StatusReasonForbidden | - #StatusReasonNotFound | - #StatusReasonAlreadyExists | - #StatusReasonConflict | - #StatusReasonGone | - #StatusReasonInvalid | - #StatusReasonServerTimeout | - #StatusReasonTimeout | - #StatusReasonTooManyRequests | - #StatusReasonBadRequest | - #StatusReasonMethodNotAllowed | - #StatusReasonNotAcceptable | - #StatusReasonRequestEntityTooLarge | - #StatusReasonUnsupportedMediaType | - #StatusReasonInternalError | - #StatusReasonExpired | - #StatusReasonServiceUnavailable - -// StatusReasonUnknown means the server has declined to indicate a specific reason. -// The details field may contain other information about this error. -// Status code 500. -#StatusReasonUnknown: #StatusReason & "" - -// StatusReasonUnauthorized means the server can be reached and understood the request, but requires -// the user to present appropriate authorization credentials (identified by the WWW-Authenticate header) -// in order for the action to be completed. If the user has specified credentials on the request, the -// server considers them insufficient. -// Status code 401 -#StatusReasonUnauthorized: #StatusReason & "Unauthorized" - -// StatusReasonForbidden means the server can be reached and understood the request, but refuses -// to take any further action. It is the result of the server being configured to deny access for some reason -// to the requested resource by the client. -// Details (optional): -// "kind" string - the kind attribute of the forbidden resource -// on some operations may differ from the requested -// resource. -// "id" string - the identifier of the forbidden resource -// Status code 403 -#StatusReasonForbidden: #StatusReason & "Forbidden" - -// StatusReasonNotFound means one or more resources required for this operation -// could not be found. -// Details (optional): -// "kind" string - the kind attribute of the missing resource -// on some operations may differ from the requested -// resource. -// "id" string - the identifier of the missing resource -// Status code 404 -#StatusReasonNotFound: #StatusReason & "NotFound" - -// StatusReasonAlreadyExists means the resource you are creating already exists. -// Details (optional): -// "kind" string - the kind attribute of the conflicting resource -// "id" string - the identifier of the conflicting resource -// Status code 409 -#StatusReasonAlreadyExists: #StatusReason & "AlreadyExists" - -// StatusReasonConflict means the requested operation cannot be completed -// due to a conflict in the operation. The client may need to alter the -// request. Each resource may define custom details that indicate the -// nature of the conflict. -// Status code 409 -#StatusReasonConflict: #StatusReason & "Conflict" - -// StatusReasonGone means the item is no longer available at the server and no -// forwarding address is known. -// Status code 410 -#StatusReasonGone: #StatusReason & "Gone" - -// StatusReasonInvalid means the requested create or update operation cannot be -// completed due to invalid data provided as part of the request. The client may -// need to alter the request. When set, the client may use the StatusDetails -// message field as a summary of the issues encountered. -// Details (optional): -// "kind" string - the kind attribute of the invalid resource -// "id" string - the identifier of the invalid resource -// "causes" - one or more StatusCause entries indicating the data in the -// provided resource that was invalid. The code, message, and -// field attributes will be set. -// Status code 422 -#StatusReasonInvalid: #StatusReason & "Invalid" - -// StatusReasonServerTimeout means the server can be reached and understood the request, -// but cannot complete the action in a reasonable time. The client should retry the request. -// This is may be due to temporary server load or a transient communication issue with -// another server. Status code 500 is used because the HTTP spec provides no suitable -// server-requested client retry and the 5xx class represents actionable errors. -// Details (optional): -// "kind" string - the kind attribute of the resource being acted on. -// "id" string - the operation that is being attempted. -// "retryAfterSeconds" int32 - the number of seconds before the operation should be retried -// Status code 500 -#StatusReasonServerTimeout: #StatusReason & "ServerTimeout" - -// StatusReasonTimeout means that the request could not be completed within the given time. -// Clients can get this response only when they specified a timeout param in the request, -// or if the server cannot complete the operation within a reasonable amount of time. -// The request might succeed with an increased value of timeout param. The client *should* -// wait at least the number of seconds specified by the retryAfterSeconds field. -// Details (optional): -// "retryAfterSeconds" int32 - the number of seconds before the operation should be retried -// Status code 504 -#StatusReasonTimeout: #StatusReason & "Timeout" - -// StatusReasonTooManyRequests means the server experienced too many requests within a -// given window and that the client must wait to perform the action again. A client may -// always retry the request that led to this error, although the client should wait at least -// the number of seconds specified by the retryAfterSeconds field. -// Details (optional): -// "retryAfterSeconds" int32 - the number of seconds before the operation should be retried -// Status code 429 -#StatusReasonTooManyRequests: #StatusReason & "TooManyRequests" - -// StatusReasonBadRequest means that the request itself was invalid, because the request -// doesn't make any sense, for example deleting a read-only object. This is different than -// StatusReasonInvalid above which indicates that the API call could possibly succeed, but the -// data was invalid. API calls that return BadRequest can never succeed. -// Status code 400 -#StatusReasonBadRequest: #StatusReason & "BadRequest" - -// StatusReasonMethodNotAllowed means that the action the client attempted to perform on the -// resource was not supported by the code - for instance, attempting to delete a resource that -// can only be created. API calls that return MethodNotAllowed can never succeed. -// Status code 405 -#StatusReasonMethodNotAllowed: #StatusReason & "MethodNotAllowed" - -// StatusReasonNotAcceptable means that the accept types indicated by the client were not acceptable -// to the server - for instance, attempting to receive protobuf for a resource that supports only json and yaml. -// API calls that return NotAcceptable can never succeed. -// Status code 406 -#StatusReasonNotAcceptable: #StatusReason & "NotAcceptable" - -// StatusReasonRequestEntityTooLarge means that the request entity is too large. -// Status code 413 -#StatusReasonRequestEntityTooLarge: #StatusReason & "RequestEntityTooLarge" - -// StatusReasonUnsupportedMediaType means that the content type sent by the client is not acceptable -// to the server - for instance, attempting to send protobuf for a resource that supports only json and yaml. -// API calls that return UnsupportedMediaType can never succeed. -// Status code 415 -#StatusReasonUnsupportedMediaType: #StatusReason & "UnsupportedMediaType" - -// StatusReasonInternalError indicates that an internal error occurred, it is unexpected -// and the outcome of the call is unknown. -// Details (optional): -// "causes" - The original error -// Status code 500 -#StatusReasonInternalError: #StatusReason & "InternalError" - -// StatusReasonExpired indicates that the request is invalid because the content you are requesting -// has expired and is no longer available. It is typically associated with watches that can't be -// serviced. -// Status code 410 (gone) -#StatusReasonExpired: #StatusReason & "Expired" - -// StatusReasonServiceUnavailable means that the request itself was valid, -// but the requested service is unavailable at this time. -// Retrying the request after some time might succeed. -// Status code 503 -#StatusReasonServiceUnavailable: #StatusReason & "ServiceUnavailable" - -// StatusCause provides more information about an api.Status failure, including -// cases when multiple errors are encountered. -#StatusCause: { - // A machine-readable description of the cause of the error. If this value is - // empty there is no information available. - // +optional - reason?: #CauseType @go(Type) @protobuf(1,bytes,opt,casttype=CauseType) - - // A human-readable description of the cause of the error. This field may be - // presented as-is to a reader. - // +optional - message?: string @go(Message) @protobuf(2,bytes,opt) - - // The field of the resource that has caused this error, as named by its JSON - // serialization. May include dot and postfix notation for nested attributes. - // Arrays are zero-indexed. Fields may appear more than once in an array of - // causes due to fields having multiple errors. - // Optional. - // - // Examples: - // "name" - the field "name" on the current resource - // "items[0].name" - the field "name" on the first array entry in "items" - // +optional - field?: string @go(Field) @protobuf(3,bytes,opt) -} - -// CauseType is a machine readable value providing more detail about what -// occurred in a status response. An operation may have multiple causes for a -// status (whether Failure or Success). -#CauseType: string // #enumCauseType - -#enumCauseType: - #CauseTypeFieldValueNotFound | - #CauseTypeFieldValueRequired | - #CauseTypeFieldValueDuplicate | - #CauseTypeFieldValueInvalid | - #CauseTypeFieldValueNotSupported | - #CauseTypeUnexpectedServerResponse | - #CauseTypeFieldManagerConflict | - #CauseTypeResourceVersionTooLarge - -// CauseTypeFieldValueNotFound is used to report failure to find a requested value -// (e.g. looking up an ID). -#CauseTypeFieldValueNotFound: #CauseType & "FieldValueNotFound" - -// CauseTypeFieldValueRequired is used to report required values that are not -// provided (e.g. empty strings, null values, or empty arrays). -#CauseTypeFieldValueRequired: #CauseType & "FieldValueRequired" - -// CauseTypeFieldValueDuplicate is used to report collisions of values that must be -// unique (e.g. unique IDs). -#CauseTypeFieldValueDuplicate: #CauseType & "FieldValueDuplicate" - -// CauseTypeFieldValueInvalid is used to report malformed values (e.g. failed regex -// match). -#CauseTypeFieldValueInvalid: #CauseType & "FieldValueInvalid" - -// CauseTypeFieldValueNotSupported is used to report valid (as per formatting rules) -// values that can not be handled (e.g. an enumerated string). -#CauseTypeFieldValueNotSupported: #CauseType & "FieldValueNotSupported" - -// CauseTypeUnexpectedServerResponse is used to report when the server responded to the client -// without the expected return type. The presence of this cause indicates the error may be -// due to an intervening proxy or the server software malfunctioning. -#CauseTypeUnexpectedServerResponse: #CauseType & "UnexpectedServerResponse" - -// FieldManagerConflict is used to report when another client claims to manage this field, -// It should only be returned for a request using server-side apply. -#CauseTypeFieldManagerConflict: #CauseType & "FieldManagerConflict" - -// CauseTypeResourceVersionTooLarge is used to report that the requested resource version -// is newer than the data observed by the API server, so the request cannot be served. -#CauseTypeResourceVersionTooLarge: #CauseType & "ResourceVersionTooLarge" - -// List holds a list of objects, which may not be known by the server. -#List: { - #TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: #ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // List of objects - items: [...runtime.#RawExtension] @go(Items,[]runtime.RawExtension) @protobuf(2,bytes,rep) -} - -// APIVersions lists the versions that are available, to allow clients to -// discover the API at /api, which is the root path of the legacy v1 API. -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -#APIVersions: { - #TypeMeta - - // versions are the api versions that are available. - versions: [...string] @go(Versions,[]string) @protobuf(1,bytes,rep) - - // a map of client CIDR to server address that is serving this group. - // This is to help clients reach servers in the most network-efficient way possible. - // Clients can use the appropriate server address as per the CIDR that they match. - // In case of multiple matches, clients should use the longest matching CIDR. - // The server returns only those CIDRs that it thinks that the client can match. - // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. - // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. - serverAddressByClientCIDRs: [...#ServerAddressByClientCIDR] @go(ServerAddressByClientCIDRs,[]ServerAddressByClientCIDR) @protobuf(2,bytes,rep) -} - -// APIGroupList is a list of APIGroup, to allow clients to discover the API at -// /apis. -#APIGroupList: { - #TypeMeta - - // groups is a list of APIGroup. - groups: [...#APIGroup] @go(Groups,[]APIGroup) @protobuf(1,bytes,rep) -} - -// APIGroup contains the name, the supported versions, and the preferred version -// of a group. -#APIGroup: { - #TypeMeta - - // name is the name of the group. - name: string @go(Name) @protobuf(1,bytes,opt) - - // versions are the versions supported in this group. - versions: [...#GroupVersionForDiscovery] @go(Versions,[]GroupVersionForDiscovery) @protobuf(2,bytes,rep) - - // preferredVersion is the version preferred by the API server, which - // probably is the storage version. - // +optional - preferredVersion?: #GroupVersionForDiscovery @go(PreferredVersion) @protobuf(3,bytes,opt) - - // a map of client CIDR to server address that is serving this group. - // This is to help clients reach servers in the most network-efficient way possible. - // Clients can use the appropriate server address as per the CIDR that they match. - // In case of multiple matches, clients should use the longest matching CIDR. - // The server returns only those CIDRs that it thinks that the client can match. - // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. - // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. - // +optional - serverAddressByClientCIDRs?: [...#ServerAddressByClientCIDR] @go(ServerAddressByClientCIDRs,[]ServerAddressByClientCIDR) @protobuf(4,bytes,rep) -} - -// ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. -#ServerAddressByClientCIDR: { - // The CIDR with which clients can match their IP to figure out the server address that they should use. - clientCIDR: string @go(ClientCIDR) @protobuf(1,bytes,opt) - - // Address of this server, suitable for a client that matches the above CIDR. - // This can be a hostname, hostname:port, IP or IP:port. - serverAddress: string @go(ServerAddress) @protobuf(2,bytes,opt) -} - -// GroupVersion contains the "group/version" and "version" string of a version. -// It is made a struct to keep extensibility. -#GroupVersionForDiscovery: { - // groupVersion specifies the API group and version in the form "group/version" - groupVersion: string @go(GroupVersion) @protobuf(1,bytes,opt) - - // version specifies the version in the form of "version". This is to save - // the clients the trouble of splitting the GroupVersion. - version: string @go(Version) @protobuf(2,bytes,opt) -} - -// APIResource specifies the name of a resource and whether it is namespaced. -#APIResource: { - // name is the plural name of the resource. - name: string @go(Name) @protobuf(1,bytes,opt) - - // singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. - // The singularName is more correct for reporting status on a single item and both singular and plural are allowed - // from the kubectl CLI interface. - singularName: string @go(SingularName) @protobuf(6,bytes,opt) - - // namespaced indicates if a resource is namespaced or not. - namespaced: bool @go(Namespaced) @protobuf(2,varint,opt) - - // group is the preferred group of the resource. Empty implies the group of the containing resource list. - // For subresources, this may have a different value, for example: Scale". - group?: string @go(Group) @protobuf(8,bytes,opt) - - // version is the preferred version of the resource. Empty implies the version of the containing resource list - // For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)". - version?: string @go(Version) @protobuf(9,bytes,opt) - - // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') - kind: string @go(Kind) @protobuf(3,bytes,opt) - - // verbs is a list of supported kube verbs (this includes get, list, watch, create, - // update, patch, delete, deletecollection, and proxy) - verbs: #Verbs @go(Verbs) @protobuf(4,bytes,opt) - - // shortNames is a list of suggested short names of the resource. - shortNames?: [...string] @go(ShortNames,[]string) @protobuf(5,bytes,rep) - - // categories is a list of the grouped resources this resource belongs to (e.g. 'all') - categories?: [...string] @go(Categories,[]string) @protobuf(7,bytes,rep) - - // The hash value of the storage version, the version this resource is - // converted to when written to the data store. Value must be treated - // as opaque by clients. Only equality comparison on the value is valid. - // This is an alpha feature and may change or be removed in the future. - // The field is populated by the apiserver only if the - // StorageVersionHash feature gate is enabled. - // This field will remain optional even if it graduates. - // +optional - storageVersionHash?: string @go(StorageVersionHash) @protobuf(10,bytes,opt) -} - -// Verbs masks the value so protobuf can generate -// -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -#Verbs: [...string] - -// APIResourceList is a list of APIResource, it is used to expose the name of the -// resources supported in a specific group and version, and if the resource -// is namespaced. -#APIResourceList: { - #TypeMeta - - // groupVersion is the group and version this APIResourceList is for. - groupVersion: string @go(GroupVersion) @protobuf(1,bytes,opt) - - // resources contains the name of the resources and if they are namespaced. - resources: [...#APIResource] @go(APIResources,[]APIResource) @protobuf(2,bytes,rep) -} - -// RootPaths lists the paths available at root. -// For example: "/healthz", "/apis". -#RootPaths: { - // paths are the paths available at root. - paths: [...string] @go(Paths,[]string) @protobuf(1,bytes,rep) -} - -// Patch is provided to give a concrete name and type to the Kubernetes PATCH request body. -#Patch: { -} - -// A label selector is a label query over a set of resources. The result of matchLabels and -// matchExpressions are ANDed. An empty label selector matches all objects. A null -// label selector matches no objects. -// +structType=atomic -#LabelSelector: { - // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - // map is equivalent to an element of matchExpressions, whose key field is "key", the - // operator is "In", and the values array contains only "value". The requirements are ANDed. - // +optional - matchLabels?: {[string]: string} @go(MatchLabels,map[string]string) @protobuf(1,bytes,rep) - - // matchExpressions is a list of label selector requirements. The requirements are ANDed. - // +optional - matchExpressions?: [...#LabelSelectorRequirement] @go(MatchExpressions,[]LabelSelectorRequirement) @protobuf(2,bytes,rep) -} - -// A label selector requirement is a selector that contains values, a key, and an operator that -// relates the key and values. -#LabelSelectorRequirement: { - // key is the label key that the selector applies to. - // +patchMergeKey=key - // +patchStrategy=merge - key: string @go(Key) @protobuf(1,bytes,opt) - - // operator represents a key's relationship to a set of values. - // Valid operators are In, NotIn, Exists and DoesNotExist. - operator: #LabelSelectorOperator @go(Operator) @protobuf(2,bytes,opt,casttype=LabelSelectorOperator) - - // values is an array of string values. If the operator is In or NotIn, - // the values array must be non-empty. If the operator is Exists or DoesNotExist, - // the values array must be empty. This array is replaced during a strategic - // merge patch. - // +optional - values?: [...string] @go(Values,[]string) @protobuf(3,bytes,rep) -} - -// A label selector operator is the set of operators that can be used in a selector requirement. -#LabelSelectorOperator: string // #enumLabelSelectorOperator - -#enumLabelSelectorOperator: - #LabelSelectorOpIn | - #LabelSelectorOpNotIn | - #LabelSelectorOpExists | - #LabelSelectorOpDoesNotExist - -#LabelSelectorOpIn: #LabelSelectorOperator & "In" -#LabelSelectorOpNotIn: #LabelSelectorOperator & "NotIn" -#LabelSelectorOpExists: #LabelSelectorOperator & "Exists" -#LabelSelectorOpDoesNotExist: #LabelSelectorOperator & "DoesNotExist" - -// ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource -// that the fieldset applies to. -#ManagedFieldsEntry: { - // Manager is an identifier of the workflow managing these fields. - manager?: string @go(Manager) @protobuf(1,bytes,opt) - - // Operation is the type of operation which lead to this ManagedFieldsEntry being created. - // The only valid values for this field are 'Apply' and 'Update'. - operation?: #ManagedFieldsOperationType @go(Operation) @protobuf(2,bytes,opt,casttype=ManagedFieldsOperationType) - - // APIVersion defines the version of this resource that this field set - // applies to. The format is "group/version" just like the top-level - // APIVersion field. It is necessary to track the version of a field - // set because it cannot be automatically converted. - apiVersion?: string @go(APIVersion) @protobuf(3,bytes,opt) - - // Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - // +optional - time?: null | #Time @go(Time,*Time) @protobuf(4,bytes,opt) - - // FieldsType is the discriminator for the different fields format and version. - // There is currently only one possible value: "FieldsV1" - fieldsType?: string @go(FieldsType) @protobuf(6,bytes,opt) - - // FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - // +optional - fieldsV1?: null | #FieldsV1 @go(FieldsV1,*FieldsV1) @protobuf(7,bytes,opt) - - // Subresource is the name of the subresource used to update that object, or - // empty string if the object was updated through the main resource. The - // value of this field is used to distinguish between managers, even if they - // share the same name. For example, a status update will be distinct from a - // regular update using the same manager name. - // Note that the APIVersion field is not related to the Subresource field and - // it always corresponds to the version of the main resource. - subresource?: string @go(Subresource) @protobuf(8,bytes,opt) -} - -// ManagedFieldsOperationType is the type of operation which lead to a ManagedFieldsEntry being created. -#ManagedFieldsOperationType: string // #enumManagedFieldsOperationType - -#enumManagedFieldsOperationType: - #ManagedFieldsOperationApply | - #ManagedFieldsOperationUpdate - -#ManagedFieldsOperationApply: #ManagedFieldsOperationType & "Apply" -#ManagedFieldsOperationUpdate: #ManagedFieldsOperationType & "Update" - -// FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. -// -// Each key is either a '.' representing the field itself, and will always map to an empty set, -// or a string representing a sub-field or item. The string will follow one of these four formats: -// 'f:', where is the name of a field in a struct, or key in a map -// 'v:', where is the exact json formatted value of a list item -// 'i:', where is position of a item in a list -// 'k:', where is a map of a list item's key fields to their unique values -// If a key maps to an empty Fields value, the field that key represents is part of the set. -// -// The exact format is defined in sigs.k8s.io/structured-merge-diff -// +protobuf.options.(gogoproto.goproto_stringer)=false -#FieldsV1: _ - -// Table is a tabular representation of a set of API resources. The server transforms the -// object into a set of preferred columns for quickly reviewing the objects. -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +protobuf=false -#Table: { - #TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: #ListMeta @go(ListMeta) - - // columnDefinitions describes each column in the returned items array. The number of cells per row - // will always match the number of column definitions. - columnDefinitions: [...#TableColumnDefinition] @go(ColumnDefinitions,[]TableColumnDefinition) - - // rows is the list of items in the table. - rows: [...#TableRow] @go(Rows,[]TableRow) -} - -// TableColumnDefinition contains information about a column returned in the Table. -// +protobuf=false -#TableColumnDefinition: { - // name is a human readable name for the column. - name: string @go(Name) - - // type is an OpenAPI type definition for this column, such as number, integer, string, or - // array. - // See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. - type: string @go(Type) - - // format is an optional OpenAPI type modifier for this column. A format modifies the type and - // imposes additional rules, like date or time formatting for a string. The 'name' format is applied - // to the primary identifier column which has type 'string' to assist in clients identifying column - // is the resource name. - // See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. - format: string @go(Format) - - // description is a human readable description of this column. - description: string @go(Description) - - // priority is an integer defining the relative importance of this column compared to others. Lower - // numbers are considered higher priority. Columns that may be omitted in limited space scenarios - // should be given a higher priority. - priority: int32 @go(Priority) -} - -// TableRow is an individual row in a table. -// +protobuf=false -#TableRow: { - // cells will be as wide as the column definitions array and may contain strings, numbers (float64 or - // int64), booleans, simple maps, lists, or null. See the type field of the column definition for a - // more detailed description. - cells: [...] @go(Cells,[]interface{}) - - // conditions describe additional status of a row that are relevant for a human user. These conditions - // apply to the row, not to the object, and will be specific to table output. The only defined - // condition type is 'Completed', for a row that indicates a resource that has run to completion and - // can be given less visual priority. - // +optional - conditions?: [...#TableRowCondition] @go(Conditions,[]TableRowCondition) - - // This field contains the requested additional information about each object based on the includeObject - // policy when requesting the Table. If "None", this field is empty, if "Object" this will be the - // default serialization of the object for the current API version, and if "Metadata" (the default) will - // contain the object metadata. Check the returned kind and apiVersion of the object before parsing. - // The media type of the object will always match the enclosing list - if this as a JSON table, these - // will be JSON encoded objects. - // +optional - object?: runtime.#RawExtension @go(Object) -} - -// TableRowCondition allows a row to be marked with additional information. -// +protobuf=false -#TableRowCondition: { - // Type of row condition. The only defined value is 'Completed' indicating that the - // object this row represents has reached a completed state and may be given less visual - // priority than other rows. Clients are not required to honor any conditions but should - // be consistent where possible about handling the conditions. - type: #RowConditionType @go(Type) - - // Status of the condition, one of True, False, Unknown. - status: #ConditionStatus @go(Status) - - // (brief) machine readable reason for the condition's last transition. - // +optional - reason?: string @go(Reason) - - // Human readable message indicating details about last transition. - // +optional - message?: string @go(Message) -} - -#RowConditionType: string // #enumRowConditionType - -#enumRowConditionType: - #RowCompleted - -// RowCompleted means the underlying resource has reached completion and may be given less -// visual priority than other resources. -#RowCompleted: #RowConditionType & "Completed" - -#ConditionStatus: string // #enumConditionStatus - -#enumConditionStatus: - #ConditionTrue | - #ConditionFalse | - #ConditionUnknown - -#ConditionTrue: #ConditionStatus & "True" -#ConditionFalse: #ConditionStatus & "False" -#ConditionUnknown: #ConditionStatus & "Unknown" - -// IncludeObjectPolicy controls which portion of the object is returned with a Table. -#IncludeObjectPolicy: string // #enumIncludeObjectPolicy - -#enumIncludeObjectPolicy: - #IncludeNone | - #IncludeMetadata | - #IncludeObject - -// IncludeNone returns no object. -#IncludeNone: #IncludeObjectPolicy & "None" - -// IncludeMetadata serializes the object containing only its metadata field. -#IncludeMetadata: #IncludeObjectPolicy & "Metadata" - -// IncludeObject contains the full object. -#IncludeObject: #IncludeObjectPolicy & "Object" - -// TableOptions are used when a Table is requested by the caller. -// +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -#TableOptions: { - #TypeMeta - - // includeObject decides whether to include each object along with its columnar information. - // Specifying "None" will return no object, specifying "Object" will return the full object contents, and - // specifying "Metadata" (the default) will return the object's metadata in the PartialObjectMetadata kind - // in version v1beta1 of the meta.k8s.io API group. - includeObject?: #IncludeObjectPolicy @go(IncludeObject) @protobuf(1,bytes,opt,casttype=IncludeObjectPolicy) -} - -// PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients -// to get access to a particular ObjectMeta schema without knowing the details of the version. -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -#PartialObjectMetadata: { - #TypeMeta - - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metadata?: #ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt) -} - -// PartialObjectMetadataList contains a list of objects containing only their metadata -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -#PartialObjectMetadataList: { - #TypeMeta - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metadata?: #ListMeta @go(ListMeta) @protobuf(1,bytes,opt) - - // items contains each of the included items. - items: [...#PartialObjectMetadata] @go(Items,[]PartialObjectMetadata) @protobuf(2,bytes,rep) -} - -// Condition contains details for one aspect of the current state of this API Resource. -// --- -// This struct is intended for direct use as an array at the field path .status.conditions. For example, -// type FooStatus struct{ -// // Represents the observations of a foo's current state. -// // Known .status.conditions.type are: "Available", "Progressing", and "Degraded" -// // +patchMergeKey=type -// // +patchStrategy=merge -// // +listType=map -// // +listMapKey=type -// Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` -// -// // other fields -// } -#Condition: { - // type of condition in CamelCase or in foo.example.com/CamelCase. - // --- - // Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be - // useful (see .node.status.conditions), the ability to deconflict is important. - // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) - // +required - // +kubebuilder:validation:Required - // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` - // +kubebuilder:validation:MaxLength=316 - type: string @go(Type) @protobuf(1,bytes,opt) - - // status of the condition, one of True, False, Unknown. - // +required - // +kubebuilder:validation:Required - // +kubebuilder:validation:Enum=True;False;Unknown - status: #ConditionStatus @go(Status) @protobuf(2,bytes,opt) - - // observedGeneration represents the .metadata.generation that the condition was set based upon. - // For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - // with respect to the current state of the instance. - // +optional - // +kubebuilder:validation:Minimum=0 - observedGeneration?: int64 @go(ObservedGeneration) @protobuf(3,varint,opt) - - // lastTransitionTime is the last time the condition transitioned from one status to another. - // This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - // +required - // +kubebuilder:validation:Required - // +kubebuilder:validation:Type=string - // +kubebuilder:validation:Format=date-time - lastTransitionTime: #Time @go(LastTransitionTime) @protobuf(4,bytes,opt) - - // reason contains a programmatic identifier indicating the reason for the condition's last transition. - // Producers of specific condition types may define expected values and meanings for this field, - // and whether the values are considered a guaranteed API. - // The value should be a CamelCase string. - // This field may not be empty. - // +required - // +kubebuilder:validation:Required - // +kubebuilder:validation:MaxLength=1024 - // +kubebuilder:validation:MinLength=1 - // +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$` - reason: string @go(Reason) @protobuf(5,bytes,opt) - - // message is a human readable message indicating details about the transition. - // This may be an empty string. - // +required - // +kubebuilder:validation:Required - // +kubebuilder:validation:MaxLength=32768 - message: string @go(Message) @protobuf(6,bytes,opt) -} diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/watch_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/watch_go_gen.cue deleted file mode 100644 index 12f5f1b..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/watch_go_gen.cue +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/apis/meta/v1 - -package v1 - -import ( - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/watch" -) - -// Event represents a single event to a watched resource. -// -// +protobuf=true -// +k8s:deepcopy-gen=true -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -#WatchEvent: { - type: string @go(Type) @protobuf(1,bytes,opt) - - // Object is: - // * If Type is Added or Modified: the new state of the object. - // * If Type is Deleted: the state of the object immediately before deletion. - // * If Type is Error: *Status is recommended; other types may make sense - // depending on context. - object: runtime.#RawExtension @go(Object) @protobuf(2,bytes,opt) -} - -// InternalEvent makes watch.Event versioned -// +protobuf=false -#InternalEvent: watch.#Event diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/allocator_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/allocator_go_gen.cue deleted file mode 100644 index 43474c3..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/allocator_go_gen.cue +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -package runtime - -// SimpleAllocator a wrapper around make([]byte) -// conforms to the MemoryAllocator interface -#SimpleAllocator: { -} diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/codec_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/codec_go_gen.cue deleted file mode 100644 index a05de5d..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/codec_go_gen.cue +++ /dev/null @@ -1,37 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -package runtime - -// codec binds an encoder and decoder. -_#codec: { - Encoder: #Encoder - Decoder: #Decoder -} - -// NoopEncoder converts an Decoder to a Serializer or Codec for code that expects them but only uses decoding. -#NoopEncoder: { - Decoder: #Decoder -} - -_#noopEncoderIdentifier: #Identifier & "noop" - -// NoopDecoder converts an Encoder to a Serializer or Codec for code that expects them but only uses encoding. -#NoopDecoder: { - Encoder: #Encoder -} - -_#base64Serializer: { - Encoder: #Encoder - Decoder: #Decoder -} - -_#internalGroupVersionerIdentifier: "internal" -_#disabledGroupVersionerIdentifier: "disabled" - -_#internalGroupVersioner: { -} - -_#disabledGroupVersioner: { -} diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/conversion_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/conversion_go_gen.cue deleted file mode 100644 index ce6d644..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/conversion_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -// Package runtime defines conversions between generic types and structs to map query strings -// to struct objects. -package runtime diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/converter_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/converter_go_gen.cue deleted file mode 100644 index f49ad1e..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/converter_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -package runtime - -// UnstructuredConverter is an interface for converting between interface{} -// and map[string]interface representation. -#UnstructuredConverter: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/doc_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/doc_go_gen.cue deleted file mode 100644 index 89c5c51..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/doc_go_gen.cue +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -// Package runtime includes helper functions for working with API objects -// that follow the kubernetes API object conventions, which are: -// -// 0. Your API objects have a common metadata struct member, TypeMeta. -// -// 1. Your code refers to an internal set of API objects. -// -// 2. In a separate package, you have an external set of API objects. -// -// 3. The external set is considered to be versioned, and no breaking -// changes are ever made to it (fields may be added but not changed -// or removed). -// -// 4. As your api evolves, you'll make an additional versioned package -// with every major change. -// -// 5. Versioned packages have conversion functions which convert to -// and from the internal version. -// -// 6. You'll continue to support older versions according to your -// deprecation policy, and you can easily provide a program/library -// to update old versions into new versions because of 5. -// -// 7. All of your serializations and deserializations are handled in a -// centralized place. -// -// Package runtime provides a conversion helper to make 5 easy, and the -// Encode/Decode/DecodeInto trio to accomplish 7. You can also register -// additional "codecs" which use a version of your choice. It's -// recommended that you register your types with runtime in your -// package's init function. -// -// As a bonus, a few common types useful from all api objects and versions -// are provided in types.go. -package runtime diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/embedded_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/embedded_go_gen.cue deleted file mode 100644 index d43f15f..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/embedded_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -package runtime - -_#encodable: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/helper_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/helper_go_gen.cue deleted file mode 100644 index ec8f1f0..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/helper_go_gen.cue +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -package runtime - -// MultiObjectTyper returns the types of objects across multiple schemes in order. -#MultiObjectTyper: [...#ObjectTyper] - -_#defaultFramer: { -} - -// WithVersionEncoder serializes an object and ensures the GVK is set. -#WithVersionEncoder: { - Version: #GroupVersioner - Encoder: #Encoder - ObjectTyper: #ObjectTyper -} - -// WithoutVersionDecoder clears the group version kind of a deserialized object. -#WithoutVersionDecoder: { - Decoder: #Decoder -} diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/interfaces_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/interfaces_go_gen.cue deleted file mode 100644 index ed73da5..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/interfaces_go_gen.cue +++ /dev/null @@ -1,151 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -package runtime - -// APIVersionInternal may be used if you are registering a type that should not -// be considered stable or serialized - it is a convention only and has no -// special behavior in this package. -#APIVersionInternal: "__internal" - -// GroupVersioner refines a set of possible conversion targets into a single option. -#GroupVersioner: _ - -// Identifier represents an identifier. -// Identitier of two different objects should be equal if and only if for every -// input the output they produce is exactly the same. -#Identifier: string // #enumIdentifier - -#enumIdentifier: - _#noopEncoderIdentifier - -// Encoder writes objects to a serialized form -#Encoder: _ - -// Decoder attempts to load an object from data. -#Decoder: _ - -// Serializer is the core interface for transforming objects into a serialized format and back. -// Implementations may choose to perform conversion of the object, but no assumptions should be made. -#Serializer: _ - -// Codec is a Serializer that deals with the details of versioning objects. It offers the same -// interface as Serializer, so this is a marker to consumers that care about the version of the objects -// they receive. -#Codec: #Serializer - -// ParameterCodec defines methods for serializing and deserializing API objects to url.Values and -// performing any necessary conversion. Unlike the normal Codec, query parameters are not self describing -// and the desired version must be specified. -#ParameterCodec: _ - -// Framer is a factory for creating readers and writers that obey a particular framing pattern. -#Framer: _ - -// SerializerInfo contains information about a specific serialization format -#SerializerInfo: { - // MediaType is the value that represents this serializer over the wire. - MediaType: string - - // MediaTypeType is the first part of the MediaType ("application" in "application/json"). - MediaTypeType: string - - // MediaTypeSubType is the second part of the MediaType ("json" in "application/json"). - MediaTypeSubType: string - - // EncodesAsText indicates this serializer can be encoded to UTF-8 safely. - EncodesAsText: bool - - // Serializer is the individual object serializer for this media type. - Serializer: #Serializer - - // PrettySerializer, if set, can serialize this object in a form biased towards - // readability. - PrettySerializer: #Serializer - - // StrictSerializer, if set, deserializes this object strictly, - // erring on unknown fields. - StrictSerializer: #Serializer - - // StreamSerializer, if set, describes the streaming serialization format - // for this media type. - StreamSerializer?: null | #StreamSerializerInfo @go(,*StreamSerializerInfo) -} - -// StreamSerializerInfo contains information about a specific stream serialization format -#StreamSerializerInfo: { - // EncodesAsText indicates this serializer can be encoded to UTF-8 safely. - EncodesAsText: bool - - // Serializer is the top level object serializer for this type when streaming - Serializer: #Serializer - - // Framer is the factory for retrieving streams that separate objects on the wire - Framer: #Framer -} - -// NegotiatedSerializer is an interface used for obtaining encoders, decoders, and serializers -// for multiple supported media types. This would commonly be accepted by a server component -// that performs HTTP content negotiation to accept multiple formats. -#NegotiatedSerializer: _ - -// ClientNegotiator handles turning an HTTP content type into the appropriate encoder. -// Use NewClientNegotiator or NewVersionedClientNegotiator to create this interface from -// a NegotiatedSerializer. -#ClientNegotiator: _ - -// StorageSerializer is an interface used for obtaining encoders, decoders, and serializers -// that can read and write data at rest. This would commonly be used by client tools that must -// read files, or server side storage interfaces that persist restful objects. -#StorageSerializer: _ - -// NestedObjectEncoder is an optional interface that objects may implement to be given -// an opportunity to encode any nested Objects / RawExtensions during serialization. -#NestedObjectEncoder: _ - -// NestedObjectDecoder is an optional interface that objects may implement to be given -// an opportunity to decode any nested Objects / RawExtensions during serialization. -#NestedObjectDecoder: _ - -#ObjectDefaulter: _ - -#ObjectVersioner: _ - -// ObjectConvertor converts an object to a different version. -#ObjectConvertor: _ - -// ObjectTyper contains methods for extracting the APIVersion and Kind -// of objects. -#ObjectTyper: _ - -// ObjectCreater contains methods for instantiating an object by kind and version. -#ObjectCreater: _ - -// EquivalentResourceMapper provides information about resources that address the same underlying data as a specified resource -#EquivalentResourceMapper: _ - -// EquivalentResourceRegistry provides an EquivalentResourceMapper interface, -// and allows registering known resource[/subresource] -> kind -#EquivalentResourceRegistry: _ - -// ResourceVersioner provides methods for setting and retrieving -// the resource version from an API object. -#ResourceVersioner: _ - -// SelfLinker provides methods for setting and retrieving the SelfLink field of an API object. -#SelfLinker: _ - -// Object interface must be supported by all API types registered with Scheme. Since objects in a scheme are -// expected to be serialized to the wire, the interface an Object must provide to the Scheme allows -// serializers to set the kind, version, and group the object is represented as. An Object may choose -// to return a no-op ObjectKindAccessor in cases where it is not expected to be serialized. -#Object: _ - -// CacheableObject allows an object to cache its different serializations -// to avoid performing the same serialization multiple times. -#CacheableObject: _ - -// Unstructured objects store values as map[string]interface{}, with only values that can be serialized -// to JSON allowed. -#Unstructured: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/negotiate_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/negotiate_go_gen.cue deleted file mode 100644 index 7580f46..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/negotiate_go_gen.cue +++ /dev/null @@ -1,12 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -package runtime - -// NegotiateError is returned when a ClientNegotiator is unable to locate -// a serializer for the requested operation. -#NegotiateError: { - ContentType: string - Stream: bool -} diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/schema/group_version_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/schema/group_version_go_gen.cue deleted file mode 100644 index dbdcd83..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/schema/group_version_go_gen.cue +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime/schema - -package schema - -// GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying -// concepts during lookup stages without having partially valid types -#GroupResource: { - Group: string - Resource: string -} - -// GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion -// to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling -#GroupVersionResource: { - Group: string - Version: string - Resource: string -} - -// GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying -// concepts during lookup stages without having partially valid types -#GroupKind: { - Group: string - Kind: string -} - -// GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion -// to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling -#GroupVersionKind: { - Group: string - Version: string - Kind: string -} - -// GroupVersion contains the "group" and the "version", which uniquely identifies the API. -#GroupVersion: { - Group: string - Version: string -} - -// GroupVersions can be used to represent a set of desired group versions. -// TODO: Move GroupVersions to a package under pkg/runtime, since it's used by scheme. -// TODO: Introduce an adapter type between GroupVersions and runtime.GroupVersioner, and use LegacyCodec(GroupVersion) -// in fewer places. -#GroupVersions: [...#GroupVersion] diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/schema/interfaces_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/schema/interfaces_go_gen.cue deleted file mode 100644 index 8d7c4eb..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/schema/interfaces_go_gen.cue +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime/schema - -package schema - -// All objects that are serialized from a Scheme encode their type information. This interface is used -// by serialization to set type information from the Scheme onto the serialized version of an object. -// For objects that cannot be serialized or have unique requirements, this interface may be a no-op. -#ObjectKind: _ - -_#emptyObjectKind: { -} diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/splice_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/splice_go_gen.cue deleted file mode 100644 index bd9c409..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/splice_go_gen.cue +++ /dev/null @@ -1,12 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -package runtime - -// Splice is the interface that wraps the Splice method. -// -// Splice moves data from given slice without copying the underlying data for -// efficiency purpose. Therefore, the caller should make sure the underlying -// data is not changed later. -#Splice: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator_go_gen.cue deleted file mode 100644 index 9dfc078..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator_go_gen.cue +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -package runtime - -// Pair of strings. We keed the name of fields and the doc -#Pair: { - Name: string - Doc: string -} - -// KubeTypes is an array to represent all available types in a parsed file. [0] is for the type itself -#KubeTypes: [...#Pair] diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/types_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/types_go_gen.cue deleted file mode 100644 index 4446776..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/types_go_gen.cue +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -package runtime - -// TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, -// like this: -// type MyAwesomeAPIObject struct { -// runtime.TypeMeta `json:",inline"` -// ... // other fields -// } -// func (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind -// -// TypeMeta is provided here for convenience. You may use it directly from this package or define -// your own with the same fields. -// -// +k8s:deepcopy-gen=false -// +protobuf=true -// +k8s:openapi-gen=true -#TypeMeta: { - // +optional - apiVersion?: string @go(APIVersion) @protobuf(1,bytes,opt) - - // +optional - kind?: string @go(Kind) @protobuf(2,bytes,opt) -} - -#ContentTypeJSON: "application/json" -#ContentTypeYAML: "application/yaml" -#ContentTypeProtobuf: "application/vnd.kubernetes.protobuf" - -// RawExtension is used to hold extensions in external versions. -// -// To use this, make a field which has RawExtension as its type in your external, versioned -// struct, and Object in your internal struct. You also need to register your -// various plugin types. -// -// // Internal package: -// type MyAPIObject struct { -// runtime.TypeMeta `json:",inline"` -// MyPlugin runtime.Object `json:"myPlugin"` -// } -// type PluginA struct { -// AOption string `json:"aOption"` -// } -// -// // External package: -// type MyAPIObject struct { -// runtime.TypeMeta `json:",inline"` -// MyPlugin runtime.RawExtension `json:"myPlugin"` -// } -// type PluginA struct { -// AOption string `json:"aOption"` -// } -// -// // On the wire, the JSON will look something like this: -// { -// "kind":"MyAPIObject", -// "apiVersion":"v1", -// "myPlugin": { -// "kind":"PluginA", -// "aOption":"foo", -// }, -// } -// -// So what happens? Decode first uses json or yaml to unmarshal the serialized data into -// your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. -// The next step is to copy (using pkg/conversion) into the internal struct. The runtime -// package's DefaultScheme has conversion functions installed which will unpack the -// JSON stored in RawExtension, turning it into the correct object type, and storing it -// in the Object. (TODO: In the case where the object is of an unknown type, a -// runtime.Unknown object will be created and stored.) -// -// +k8s:deepcopy-gen=true -// +protobuf=true -// +k8s:openapi-gen=true -#RawExtension: _ - -// Unknown allows api objects with unknown types to be passed-through. This can be used -// to deal with the API objects from a plug-in. Unknown objects still have functioning -// TypeMeta features-- kind, version, etc. -// TODO: Make this object have easy access to field based accessors and settors for -// metadata and field mutatation. -// -// +k8s:deepcopy-gen=true -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +protobuf=true -// +k8s:openapi-gen=true -#Unknown: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/types_proto_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/types_proto_go_gen.cue deleted file mode 100644 index 8b8ddf8..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/types_proto_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/runtime - -package runtime - -#ProtobufMarshaller: _ - -#ProtobufReverseMarshaller: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/selection/operator_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/selection/operator_go_gen.cue deleted file mode 100644 index 681877a..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/selection/operator_go_gen.cue +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/selection - -package selection - -// Operator represents a key/field's relationship to value(s). -// See labels.Requirement and fields.Requirement for more details. -#Operator: string // #enumOperator - -#enumOperator: - #DoesNotExist | - #Equals | - #DoubleEquals | - #In | - #NotEquals | - #NotIn | - #Exists | - #GreaterThan | - #LessThan - -#DoesNotExist: #Operator & "!" -#Equals: #Operator & "=" -#DoubleEquals: #Operator & "==" -#In: #Operator & "in" -#NotEquals: #Operator & "!=" -#NotIn: #Operator & "notin" -#Exists: #Operator & "exists" -#GreaterThan: #Operator & "gt" -#LessThan: #Operator & "lt" diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/types/doc_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/types/doc_go_gen.cue deleted file mode 100644 index bfb4bcd..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/types/doc_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/types - -// Package types implements various generic types used throughout kubernetes. -package types diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/types/namespacedname_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/types/namespacedname_go_gen.cue deleted file mode 100644 index 7cb2745..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/types/namespacedname_go_gen.cue +++ /dev/null @@ -1,12 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/types - -package types - -#NamespacedName: { - Namespace: string - Name: string -} - -#Separator: 47 // '/' diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/types/nodename_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/types/nodename_go_gen.cue deleted file mode 100644 index c45c603..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/types/nodename_go_gen.cue +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/types - -package types - -// NodeName is a type that holds a api.Node's Name identifier. -// Being a type captures intent and helps make sure that the node name -// is not confused with similar concepts (the hostname, the cloud provider id, -// the cloud provider name etc) -// -// To clarify the various types: -// -// * Node.Name is the Name field of the Node in the API. This should be stored in a NodeName. -// Unfortunately, because Name is part of ObjectMeta, we can't store it as a NodeName at the API level. -// -// * Hostname is the hostname of the local machine (from uname -n). -// However, some components allow the user to pass in a --hostname-override flag, -// which will override this in most places. In the absence of anything more meaningful, -// kubelet will use Hostname as the Node.Name when it creates the Node. -// -// * The cloudproviders have the own names: GCE has InstanceName, AWS has InstanceId. -// -// For GCE, InstanceName is the Name of an Instance object in the GCE API. On GCE, Instance.Name becomes the -// Hostname, and thus it makes sense also to use it as the Node.Name. But that is GCE specific, and it is up -// to the cloudprovider how to do this mapping. -// -// For AWS, the InstanceID is not yet suitable for use as a Node.Name, so we actually use the -// PrivateDnsName for the Node.Name. And this is _not_ always the same as the hostname: if -// we are using a custom DHCP domain it won't be. -#NodeName: string diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/types/patch_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/types/patch_go_gen.cue deleted file mode 100644 index 3de5d80..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/types/patch_go_gen.cue +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/types - -package types - -// Similarly to above, these are constants to support HTTP PATCH utilized by -// both the client and server that didn't make sense for a whole package to be -// dedicated to. -#PatchType: string // #enumPatchType - -#enumPatchType: - #JSONPatchType | - #MergePatchType | - #StrategicMergePatchType | - #ApplyPatchType - -#JSONPatchType: #PatchType & "application/json-patch+json" -#MergePatchType: #PatchType & "application/merge-patch+json" -#StrategicMergePatchType: #PatchType & "application/strategic-merge-patch+json" -#ApplyPatchType: #PatchType & "application/apply-patch+yaml" diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/types/uid_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/types/uid_go_gen.cue deleted file mode 100644 index 40bdd82..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/types/uid_go_gen.cue +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/types - -package types - -// UID is a type that holds unique ID values, including UUIDs. Because we -// don't ONLY use UUIDs, this is an alias to string. Being a type captures -// intent and helps make sure that UIDs and names do not get conflated. -#UID: string diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/util/intstr/intstr_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/util/intstr/intstr_go_gen.cue deleted file mode 100644 index 2c8cc36..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/util/intstr/intstr_go_gen.cue +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/util/intstr - -package intstr - -// IntOrString is a type that can hold an int32 or a string. When used in -// JSON or YAML marshalling and unmarshalling, it produces or consumes the -// inner type. This allows you to have, for example, a JSON field that can -// accept a name or number. -// TODO: Rename to Int32OrString -// -// +protobuf=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -// +k8s:openapi-gen=true -#IntOrString: _ - -// Type represents the stored type of IntOrString. -#Type: int64 // #enumType - -#enumType: - #Int | - #String - -#values_Type: { - Int: #Int - String: #String -} - -#Int: #Type & 0 -#String: #Type & 1 diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/watch/doc_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/watch/doc_go_gen.cue deleted file mode 100644 index bc1b918..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/watch/doc_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/watch - -// Package watch contains a generic watchable interface, and a fake for -// testing code that uses the watch interface. -package watch diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/watch/filter_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/watch/filter_go_gen.cue deleted file mode 100644 index 045e8ec..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/watch/filter_go_gen.cue +++ /dev/null @@ -1,10 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/watch - -package watch - -// Recorder records all events that are sent from the watch until it is closed. -#Recorder: { - Interface: #Interface -} diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/watch/mux_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/watch/mux_go_gen.cue deleted file mode 100644 index dcf72d5..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/watch/mux_go_gen.cue +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/watch - -package watch - -// FullChannelBehavior controls how the Broadcaster reacts if a watcher's watch -// channel is full. -#FullChannelBehavior: int // #enumFullChannelBehavior - -#enumFullChannelBehavior: - #WaitIfChannelFull | - #DropIfChannelFull - -#values_FullChannelBehavior: { - WaitIfChannelFull: #WaitIfChannelFull - DropIfChannelFull: #DropIfChannelFull -} - -#WaitIfChannelFull: #FullChannelBehavior & 0 -#DropIfChannelFull: #FullChannelBehavior & 1 - -_#incomingQueueLength: 25 - -_#internalRunFunctionMarker: "internal-do-function" diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/watch/streamwatcher_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/watch/streamwatcher_go_gen.cue deleted file mode 100644 index f0805cf..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/watch/streamwatcher_go_gen.cue +++ /dev/null @@ -1,12 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/watch - -package watch - -// Decoder allows StreamWatcher to watch any stream for which a Decoder can be written. -#Decoder: _ - -// Reporter hides the details of how an error is turned into a runtime.Object for -// reporting on a watch stream since this package may not import a higher level report. -#Reporter: _ diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/watch/watch_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/watch/watch_go_gen.cue deleted file mode 100644 index 0db2e6b..0000000 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/watch/watch_go_gen.cue +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go k8s.io/apimachinery/pkg/watch - -package watch - -import "k8s.io/apimachinery/pkg/runtime" - -// Interface can be implemented by anything that knows how to watch and report changes. -#Interface: _ - -// EventType defines the possible types of events. -#EventType: string // #enumEventType - -#enumEventType: - #Added | - #Modified | - #Deleted | - #Bookmark | - #Error - -#Added: #EventType & "ADDED" -#Modified: #EventType & "MODIFIED" -#Deleted: #EventType & "DELETED" -#Bookmark: #EventType & "BOOKMARK" -#Error: #EventType & "ERROR" - -// Event represents a single event to a watched resource. -// +k8s:deepcopy-gen=true -#Event: { - Type: #EventType - - // Object is: - // * If Type is Added or Modified: the new state of the object. - // * If Type is Deleted: the state of the object immediately before deletion. - // * If Type is Bookmark: the object (instance of a type being watched) where - // only ResourceVersion field is set. On successful restart of watch from a - // bookmark resourceVersion, client is guaranteed to not get repeat event - // nor miss any events. - // * If Type is Error: *api.Status is recommended; other types may make sense - // depending on context. - Object: runtime.#Object -} - -// RaceFreeFakeWatcher lets you test anything that consumes a watch.Interface; threadsafe. -#RaceFreeFakeWatcher: { - Stopped: bool -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/condition_set_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/condition_set_go_gen.cue deleted file mode 100644 index f2a9160..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/condition_set_go_gen.cue +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis - -package apis - -// ConditionsAccessor is the interface for a Resource that implements the getter and -// setter for accessing a Condition collection. -// +k8s:deepcopy-gen=true -#ConditionsAccessor: _ - -// ConditionAccessor is used to access a condition through it's type -#ConditionAccessor: _ - -// ConditionManager allows a resource to operate on its Conditions using higher -// order operations. -#ConditionManager: _ diff --git a/cue.mod/gen/knative.dev/pkg/apis/condition_types_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/condition_types_go_gen.cue deleted file mode 100644 index c95a63b..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/condition_types_go_gen.cue +++ /dev/null @@ -1,79 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis - -package apis - -import corev1 "k8s.io/api/core/v1" - -// Conditions is the schema for the conditions portion of the payload -#Conditions: [...#Condition] - -// ConditionType is a camel-cased condition type. -#ConditionType: string // #enumConditionType - -#enumConditionType: - #ConditionReady | - #ConditionSucceeded - -// ConditionReady specifies that the resource is ready. -// For long-running resources. -#ConditionReady: #ConditionType & "Ready" - -// ConditionSucceeded specifies that the resource has finished. -// For resource which run to completion. -#ConditionSucceeded: #ConditionType & "Succeeded" - -// ConditionSeverity expresses the severity of a Condition Type failing. -#ConditionSeverity: string // #enumConditionSeverity - -#enumConditionSeverity: - #ConditionSeverityError | - #ConditionSeverityWarning | - #ConditionSeverityInfo - -// ConditionSeverityError specifies that a failure of a condition type -// should be viewed as an error. As "Error" is the default for conditions -// we use the empty string (coupled with omitempty) to avoid confusion in -// the case where the condition is in state "True" (aka nothing is wrong). -#ConditionSeverityError: #ConditionSeverity & "" - -// ConditionSeverityWarning specifies that a failure of a condition type -// should be viewed as a warning, but that things could still work. -#ConditionSeverityWarning: #ConditionSeverity & "Warning" - -// ConditionSeverityInfo specifies that a failure of a condition type -// should be viewed as purely informational, and that things could still work. -#ConditionSeverityInfo: #ConditionSeverity & "Info" - -// Condition defines a readiness condition for a Knative resource. -// See: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties -// +k8s:deepcopy-gen=true -#Condition: { - // Type of condition. - // +required - type: #ConditionType @go(Type) - - // Status of the condition, one of True, False, Unknown. - // +required - status: corev1.#ConditionStatus @go(Status) - - // Severity with which to treat failures of this type of condition. - // When this is not specified, it defaults to Error. - // +optional - severity?: #ConditionSeverity @go(Severity) - - // LastTransitionTime is the last time the condition transitioned from one status to another. - // We use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic - // differences (all other things held constant). - // +optional - lastTransitionTime?: #VolatileTime @go(LastTransitionTime) - - // The reason for the condition's last transition. - // +optional - reason?: string @go(Reason) - - // A human readable message indicating details about the transition. - // +optional - message?: string @go(Message) -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/contexts_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/contexts_go_gen.cue deleted file mode 100644 index db16829..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/contexts_go_gen.cue +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis - -package apis - -// This is attached to contexts passed to webhook interfaces when -// the receiver being validated is being created. -_#inCreateKey: { -} - -// This is attached to contexts passed to webhook interfaces when -// the receiver being validated is being deleted. -_#inDeleteKey: { -} - -// This is attached to contexts passed to webhook interfaces when -// the receiver being validated is being updated. -_#inUpdateKey: { -} - -// This is attached to contexts passed to webhook interfaces when -// the receiver being validated is being created. -_#userInfoKey: { -} - -// This is attached to contexts as they are passed down through a resource -// being validated or defaulted to signal the ObjectMeta of the enclosing -// resource. -_#parentMetaKey: { -} - -// This is attached to contexts as they are passed down through a resource -// being validated or defaulted to signal that we are within a Spec. -_#inSpec: { -} - -// This is attached to contexts as they are passed down through a resource -// being validated or defaulted to signal that we are within a Status. -_#inStatus: { -} - -// This is attached to contexts as they are passed down through a resource -// being validated to direct them to disallow deprecated fields. -_#disallowDeprecated: { -} - -// This is attached to contexts as they are passed down through a resource -// being validated to direct them to allow namespaces (or missing namespace) -// outside the parent (as indicated by WithinParent. -_#allowDifferentNamespace: { -} - -// This is attached to contexts passed to webhook interfaces when the user -// has requested DryRun mode. -_#isDryRun: { -} - -// This is attached to contexts passed to webhook interfaces with -// additional context from the HTTP request. -_#httpReq: { -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/deprecated_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/deprecated_go_gen.cue deleted file mode 100644 index d1c5d7a..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/deprecated_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis - -package apis - -_#deprecatedPrefix: "Deprecated" diff --git a/cue.mod/gen/knative.dev/pkg/apis/doc_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/doc_go_gen.cue deleted file mode 100644 index f25b30c..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/doc_go_gen.cue +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis - -// +k8s:deepcopy-gen=package -package apis diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/addressable_types_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/addressable_types_go_gen.cue deleted file mode 100644 index 6503935..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/addressable_types_go_gen.cue +++ /dev/null @@ -1,59 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -import ( - "knative.dev/pkg/apis" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// Addressable provides a generic mechanism for a custom resource -// definition to indicate a destination for message delivery. -// -// Addressable is the schema for the destination information. This is -// typically stored in the object's `status`, as this information may -// be generated by the controller. -#Addressable: { - // Name is the name of the address. - // +optional - name?: null | string @go(Name,*string) - url?: null | apis.#URL @go(URL,*apis.URL) - - // CACerts is the Certification Authority (CA) certificates in PEM format - // according to https://www.rfc-editor.org/rfc/rfc7468. - // +optional - CACerts?: null | string @go(,*string) -} - -// AddressableType is a skeleton type wrapping Addressable in the manner we expect -// resource writers defining compatible resources to embed it. We will -// typically use this type to deserialize Addressable ObjectReferences and -// access the Addressable data. This is not a real resource. -#AddressableType: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - status: #AddressStatus @go(Status) -} - -// AddressStatus shows how we expect folks to embed Addressable in -// their Status field. -#AddressStatus: { - // Address is a single Addressable address. - // If Addresses is present, Address will be ignored by clients. - // +optional - address?: null | #Addressable @go(Address,*Addressable) - - // Addresses is a list of addresses for different protocols (HTTP and HTTPS) - // If Addresses is present, Address must be ignored by clients. - // +optional - addresses?: [...#Addressable] @go(Addresses,[]Addressable) -} - -// AddressableTypeList is a list of AddressableType resources -#AddressableTypeList: { - metav1.#TypeMeta - metadata: metav1.#ListMeta @go(ListMeta) - items: [...#AddressableType] @go(Items,[]AddressableType) -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/binding_types_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/binding_types_go_gen.cue deleted file mode 100644 index eac1f04..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/binding_types_go_gen.cue +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "knative.dev/pkg/tracker" -) - -// Binding is a duck type that specifies the partial schema to which all -// Binding implementations should adhere. -#Binding: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #BindingSpec @go(Spec) -} - -// BindingSpec specifies the spec portion of the Binding partial-schema. -#BindingSpec: { - // Subject references the resource(s) whose "runtime contract" should be - // augmented by Binding implementations. - subject: tracker.#Reference @go(Subject) -} - -// BindingList is a list of Binding resources -#BindingList: { - metav1.#TypeMeta - metadata: metav1.#ListMeta @go(ListMeta) - items: [...#Binding] @go(Items,[]Binding) -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_defaults_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_defaults_go_gen.cue deleted file mode 100644 index c016e57..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_defaults_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -// cdKey is used for associating a CronJobDefaulter with a context.Context -_#cdKey: { -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_types_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_types_go_gen.cue deleted file mode 100644 index e8a31b6..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_types_go_gen.cue +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - batchv1 "k8s.io/api/batch/v1" -) - -// CronJob is a wrapper around CronJob resource, which supports our interfaces -// for webhooks -#CronJob: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec?: batchv1.#CronJobSpec @go(Spec) -} - -// CronJobList is a list of CronJob resources -#CronJobList: { - metav1.#TypeMeta - metadata: metav1.#ListMeta @go(ListMeta) - items: [...#CronJob] @go(Items,[]CronJob) -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_validation_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_validation_go_gen.cue deleted file mode 100644 index 3e5a2d1..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_validation_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -// cvKey is used for associating a CronJobValidator with a context.Context -_#cvKey: { -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/destination_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/destination_go_gen.cue deleted file mode 100644 index c81af66..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/destination_go_gen.cue +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -import "knative.dev/pkg/apis" - -// Destination represents a target of an invocation over HTTP. -#Destination: { - // Ref points to an Addressable. - // +optional - ref?: null | #KReference @go(Ref,*KReference) - - // URI can be an absolute URL(non-empty scheme and non-empty host) pointing to the target or a relative URI. Relative URIs will be resolved using the base URI retrieved from Ref. - // +optional - uri?: null | apis.#URL @go(URI,*apis.URL) - - // CACerts are Certification Authority (CA) certificates in PEM format - // according to https://www.rfc-editor.org/rfc/rfc7468. - // If set, these CAs are appended to the set of CAs provided - // by the Addressable target, if any. - // +optional - CACerts?: null | string @go(,*string) -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/doc_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/doc_go_gen.cue deleted file mode 100644 index fe746dd..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/doc_go_gen.cue +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -// +k8s:deepcopy-gen=package -// +groupName=duck.knative.dev -package v1 diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/knative_reference_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/knative_reference_go_gen.cue deleted file mode 100644 index ada278d..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/knative_reference_go_gen.cue +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -// KReference contains enough information to refer to another object. -// It's a trimmed down version of corev1.ObjectReference. -#KReference: { - // Kind of the referent. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - kind: string @go(Kind) - - // Namespace of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - // This is optional field, it gets defaulted to the object holding it if left out. - // +optional - namespace?: string @go(Namespace) - - // Name of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - name: string @go(Name) - - // API version of the referent. - // +optional - apiVersion?: string @go(APIVersion) - - // Group of the API, without the version of the group. This can be used as an alternative to the APIVersion, and then resolved using ResolveGroup. - // Note: This API is EXPERIMENTAL and might break anytime. For more details: https://github.com/knative/eventing/issues/5086 - // +optional - group?: string @go(Group) - - // Address points to a specific Address Name. - // +optional - address?: null | string @go(Address,*string) -} - -_#isGroupAllowed: { -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/kresource_type_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/kresource_type_go_gen.cue deleted file mode 100644 index 65f6468..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/kresource_type_go_gen.cue +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// KRShaped is an interface for retrieving the duck elements of an arbitrary resource. -#KRShaped: _ - -// KResource is a skeleton type wrapping Conditions in the manner we expect -// resource writers defining compatible resources to embed it. We will -// typically use this type to deserialize Conditions ObjectReferences and -// access the Conditions data. This is not a real resource. -#KResource: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - status: #Status @go(Status) -} - -// KResourceList is a list of KResource resources -#KResourceList: { - metav1.#TypeMeta - metadata: metav1.#ListMeta @go(ListMeta) - items: [...#KResource] @go(Items,[]KResource) -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_defaults_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_defaults_go_gen.cue deleted file mode 100644 index 3587c79..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_defaults_go_gen.cue +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -// psdKey is used for associating a PodSpecDefaulter with a context.Context -_#psdKey: { -} - -// pdKey is used for associating a PodDefaulter with a context.Context -_#pdKey: { -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_types_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_types_go_gen.cue deleted file mode 100644 index e25294e..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_types_go_gen.cue +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -import ( - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// PodSpecable is implemented by types containing a PodTemplateSpec -// in the manner of ReplicaSet, Deployment, DaemonSet, StatefulSet. -#PodSpecable: corev1.#PodTemplateSpec - -// WithPod is the shell that demonstrates how PodSpecable types wrap -// a PodSpec. -#WithPod: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec?: #WithPodSpec @go(Spec) -} - -// WithPodSpec is the shell around the PodSpecable within WithPod. -#WithPodSpec: { - template?: #PodSpecable @go(Template) -} - -// WithPodList is a list of WithPod resources -#WithPodList: { - metav1.#TypeMeta - metadata: metav1.#ListMeta @go(ListMeta) - items: [...#WithPod] @go(Items,[]WithPod) -} - -// Pod is a wrapper around Pod-like resource, which supports our interfaces -// for webhooks -#Pod: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec?: corev1.#PodSpec @go(Spec) -} - -// PodList is a list of WithPod resources -#PodList: { - metav1.#TypeMeta - metadata: metav1.#ListMeta @go(ListMeta) - items: [...#WithPod] @go(Items,[]WithPod) -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_validation_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_validation_go_gen.cue deleted file mode 100644 index 5b4688b..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_validation_go_gen.cue +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -// psvKey is used for associating a PodSpecValidator with a context.Context -_#psvKey: { -} - -// pvKey is used for associating a PodValidator with a context.Context -_#pvKey: { -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/source_types_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/source_types_go_gen.cue deleted file mode 100644 index 0fdd13f..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/source_types_go_gen.cue +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "knative.dev/pkg/apis" -) - -// Source is the minimum resource shape to adhere to the Source Specification. -// This duck type is intended to allow implementors of Sources and -// Importers to verify their own resources meet the expectations. -// This is not a real resource. -// NOTE: The Source Specification is in progress and the shape and names could -// be modified until it has been accepted. -#Source: { - metav1.#TypeMeta - metadata?: metav1.#ObjectMeta @go(ObjectMeta) - spec: #SourceSpec @go(Spec) - status: #SourceStatus @go(Status) -} - -#SourceSpec: { - // Sink is a reference to an object that will resolve to a uri to use as the sink. - sink?: #Destination @go(Sink) - - // CloudEventOverrides defines overrides to control the output format and - // modifications of the event sent to the sink. - // +optional - ceOverrides?: null | #CloudEventOverrides @go(CloudEventOverrides,*CloudEventOverrides) -} - -// CloudEventOverrides defines arguments for a Source that control the output -// format of the CloudEvents produced by the Source. -#CloudEventOverrides: { - // Extensions specify what attribute are added or overridden on the - // outbound event. Each `Extensions` key-value pair are set on the event as - // an attribute extension independently. - // +optional - extensions?: {[string]: string} @go(Extensions,map[string]string) -} - -// SourceStatus shows how we expect folks to embed Addressable in -// their Status field. -#SourceStatus: { - #Status - - // SinkURI is the current active sink URI that has been configured for the - // Source. - // +optional - sinkUri?: null | apis.#URL @go(SinkURI,*apis.URL) - - // CloudEventAttributes are the specific attributes that the Source uses - // as part of its CloudEvents. - // +optional - ceAttributes?: [...#CloudEventAttributes] @go(CloudEventAttributes,[]CloudEventAttributes) - - // SinkCACerts are Certification Authority (CA) certificates in PEM format - // according to https://www.rfc-editor.org/rfc/rfc7468. - // +optional - sinkCACerts?: null | string @go(SinkCACerts,*string) -} - -// CloudEventAttributes specifies the attributes that a Source -// uses as part of its CloudEvents. -#CloudEventAttributes: { - // Type refers to the CloudEvent type attribute. - type?: string @go(Type) - - // Source is the CloudEvents source attribute. - source?: string @go(Source) -} - -// SourceConditionSinkProvided has status True when the Source -// has been configured with a sink target that is resolvable. -#SourceConditionSinkProvided: apis.#ConditionType & "SinkProvided" - -// SourceList is a list of Source resources -#SourceList: { - metav1.#TypeMeta - metadata: metav1.#ListMeta @go(ListMeta) - items: [...#Source] @go(Items,[]Source) -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/status_types_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/status_types_go_gen.cue deleted file mode 100644 index c1d2471..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/status_types_go_gen.cue +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis/duck/v1 - -package v1 - -import "knative.dev/pkg/apis" - -// Conditions is a simple wrapper around apis.Conditions to implement duck.Implementable. -#Conditions: apis.#Conditions - -// Status shows how we expect folks to embed Conditions in -// their Status field. -// WARNING: Adding fields to this struct will add them to all Knative resources. -#Status: { - // ObservedGeneration is the 'Generation' of the Service that - // was last processed by the controller. - // +optional - observedGeneration?: int64 @go(ObservedGeneration) - - // Conditions the latest available observations of a resource's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - conditions?: #Conditions @go(Conditions) - - // Annotations is additional Status fields for the Resource to save some - // additional State as well as convey more information to the user. This is - // roughly akin to Annotations on any k8s resource, just the reconciler conveying - // richer information outwards. - annotations?: {[string]: string} @go(Annotations,map[string]string) -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/field_error_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/field_error_go_gen.cue deleted file mode 100644 index f8191f0..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/field_error_go_gen.cue +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis - -package apis - -#CurrentField: "" - -// DiagnosticLevel is used to signal the severity of a particular diagnostic -// in the form of a FieldError. -#DiagnosticLevel: int // #enumDiagnosticLevel - -#enumDiagnosticLevel: - #ErrorLevel | - #WarningLevel - -#values_DiagnosticLevel: { - ErrorLevel: #ErrorLevel - WarningLevel: #WarningLevel -} - -// ErrorLevel is used to signify fatal/blocking diagnostics, e.g. those -// that should block admission in a validating admission webhook. -#ErrorLevel: #DiagnosticLevel & 0 - -// WarningLevel is used to signify information/non-blocking diagnostics, -// e.g. those that should be surfaced as warnings in a validating admission -// webhook. -#WarningLevel: #DiagnosticLevel & 1 - -// FieldError is used to propagate the context of errors pertaining to -// specific fields in a manner suitable for use in a recursive walk, so -// that errors contain the appropriate field context. -// FieldError methods are non-mutating. -// +k8s:deepcopy-gen=true -#FieldError: { - // Message holds the main diagnostic message carried by this FieldError - Message: string - - // Paths holds a list of paths to which this diagnostic pertains - Paths: [...string] @go(,[]string) - - // Level holds the severity of the diagnostic. - // If empty, this defaults to ErrorLevel. - Level: #DiagnosticLevel - - // Details contains an optional longer payload. - // +optional - Details: string -} diff --git a/cue.mod/gen/knative.dev/pkg/apis/interfaces_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/interfaces_go_gen.cue deleted file mode 100644 index 47d6638..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/interfaces_go_gen.cue +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis - -package apis - -// Defaultable defines an interface for setting the defaults for the -// uninitialized fields of this instance. -#Defaultable: _ - -// Validatable indicates that a particular type may have its fields validated. -#Validatable: _ - -// Convertible indicates that a particular type supports conversions to/from -// "higher" versions of the same type. -#Convertible: _ - -// Listable indicates that a particular type can be returned via the returned -// list type by the API server. -#Listable: _ - -// Annotatable indicates that a particular type applies various annotations. -// -// Deprecated: Use WithUserInfo / GetUserInfo from within SetDefaults instead. -// The webhook functionality for this has been turned down, which is why this -// interface is empty. -#Annotatable: _ - -// HasSpec indicates that a particular type has a specification information -// and that information is retrievable. -#HasSpec: _ diff --git a/cue.mod/gen/knative.dev/pkg/apis/metadata_validation_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/metadata_validation_go_gen.cue deleted file mode 100644 index a13b0d4..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/metadata_validation_go_gen.cue +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis - -package apis - -// CreatorAnnotationSuffix is the suffix of the annotation key to describe -// the user that created the resource. -#CreatorAnnotationSuffix: "/creator" - -// UpdaterAnnotationSuffix is the suffix of the annotation key to describe -// the user who last modified the resource. -#UpdaterAnnotationSuffix: "/lastModifier" diff --git a/cue.mod/gen/knative.dev/pkg/apis/url_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/url_go_gen.cue deleted file mode 100644 index 2b31bbe..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/url_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis - -package apis - -// URL is an alias of url.URL. -// It has custom json marshal methods that enable it to be used in K8s CRDs -// such that the CRD resource will have the URL but operator code can can work with url.URL struct -// +kubebuilder:validation:Type=string -#URL: _ diff --git a/cue.mod/gen/knative.dev/pkg/apis/volatile_time_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/volatile_time_go_gen.cue deleted file mode 100644 index 3d7a785..0000000 --- a/cue.mod/gen/knative.dev/pkg/apis/volatile_time_go_gen.cue +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/apis - -package apis - -// VolatileTime wraps metav1.Time -// -// Unlike metav1.Time, VolatileTimes are considered semantically equal when -// using kubernetes semantic equality checks. -// Thus differing VolatileTime values are not considered different. -// Note, go-cmp will still return inequality, see unit test if you -// need this behavior for go-cmp. -// -// +kubebuilder:validation:Type=string -#VolatileTime: _ diff --git a/cue.mod/gen/knative.dev/pkg/tracker/doc_go_gen.cue b/cue.mod/gen/knative.dev/pkg/tracker/doc_go_gen.cue deleted file mode 100644 index 705e332..0000000 --- a/cue.mod/gen/knative.dev/pkg/tracker/doc_go_gen.cue +++ /dev/null @@ -1,9 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/tracker - -// Package tracker defines a utility to enable Reconcilers to trigger -// reconciliations when objects that are cross-referenced change, so -// that the level-based reconciliation can react to the change. The -// prototypical cross-reference in Kubernetes is corev1.ObjectReference. -package tracker diff --git a/cue.mod/gen/knative.dev/pkg/tracker/interface_go_gen.cue b/cue.mod/gen/knative.dev/pkg/tracker/interface_go_gen.cue deleted file mode 100644 index c3852c6..0000000 --- a/cue.mod/gen/knative.dev/pkg/tracker/interface_go_gen.cue +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go knative.dev/pkg/tracker - -package tracker - -import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - -// Reference is modeled after corev1.ObjectReference, but omits fields -// unsupported by the tracker, and permits us to extend things in -// divergent ways. -#Reference: { - // API version of the referent. - // +optional - apiVersion?: string @go(APIVersion) - - // Kind of the referent. - // +optional - kind?: string @go(Kind) - - // Namespace of the referent. - // +optional - namespace?: string @go(Namespace) - - // Name of the referent. - // Mutually exclusive with Selector. - // +optional - name?: string @go(Name) - - // Selector of the referents. - // Mutually exclusive with Name. - // +optional - selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) -} - -// Interface defines the interface through which an object can register -// that it is tracking another object by reference. -#Interface: _ diff --git a/cue.mod/gen/time/format_go_gen.cue b/cue.mod/gen/time/format_go_gen.cue deleted file mode 100644 index 754e1e2..0000000 --- a/cue.mod/gen/time/format_go_gen.cue +++ /dev/null @@ -1,71 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go time - -package time - -#Layout: "01/02 03:04:05PM '06 -0700" -#ANSIC: "Mon Jan _2 15:04:05 2006" -#UnixDate: "Mon Jan _2 15:04:05 MST 2006" -#RubyDate: "Mon Jan 02 15:04:05 -0700 2006" -#RFC822: "02 Jan 06 15:04 MST" -#RFC822Z: "02 Jan 06 15:04 -0700" -#RFC850: "Monday, 02-Jan-06 15:04:05 MST" -#RFC1123: "Mon, 02 Jan 2006 15:04:05 MST" -#RFC1123Z: "Mon, 02 Jan 2006 15:04:05 -0700" -#RFC3339: "2006-01-02T15:04:05Z07:00" -#RFC3339Nano: "2006-01-02T15:04:05.999999999Z07:00" -#Kitchen: "3:04PM" - -// Handy time stamps. -#Stamp: "Jan _2 15:04:05" -#StampMilli: "Jan _2 15:04:05.000" -#StampMicro: "Jan _2 15:04:05.000000" -#StampNano: "Jan _2 15:04:05.000000000" -#DateTime: "2006-01-02 15:04:05" -#DateOnly: "2006-01-02" -#TimeOnly: "15:04:05" -_#stdLongMonth: 257 -_#stdMonth: 258 -_#stdNumMonth: 259 -_#stdZeroMonth: 260 -_#stdLongWeekDay: 261 -_#stdWeekDay: 262 -_#stdDay: 263 -_#stdUnderDay: 264 -_#stdZeroDay: 265 -_#stdUnderYearDay: 266 -_#stdZeroYearDay: 267 -_#stdHour: 524 -_#stdHour12: 525 -_#stdZeroHour12: 526 -_#stdMinute: 527 -_#stdZeroMinute: 528 -_#stdSecond: 529 -_#stdZeroSecond: 530 -_#stdLongYear: 275 -_#stdYear: 276 -_#stdPM: 533 -_#stdpm: 534 -_#stdTZ: 23 -_#stdISO8601TZ: 24 -_#stdISO8601SecondsTZ: 25 -_#stdISO8601ShortTZ: 26 -_#stdISO8601ColonTZ: 27 -_#stdISO8601ColonSecondsTZ: 28 -_#stdNumTZ: 29 -_#stdNumSecondsTz: 30 -_#stdNumShortTZ: 31 -_#stdNumColonTZ: 32 -_#stdNumColonSecondsTZ: 33 -_#stdFracSecond0: 34 -_#stdFracSecond9: 35 -_#stdNeedDate: 256 -_#stdNeedClock: 512 -_#stdArgShift: 16 -_#stdSeparatorShift: 28 -_#stdMask: 65535 - -_#lowerhex: "0123456789abcdef" -_#runeSelf: 0x80 -_#runeError: 65533 // '\uFFFD' diff --git a/cue.mod/gen/time/time_go_gen.cue b/cue.mod/gen/time/time_go_gen.cue deleted file mode 100644 index f757ff4..0000000 --- a/cue.mod/gen/time/time_go_gen.cue +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go time - -// Package time provides functionality for measuring and displaying time. -// -// The calendrical calculations always assume a Gregorian calendar, with -// no leap seconds. -// -// # Monotonic Clocks -// -// Operating systems provide both a “wall clock,” which is subject to -// changes for clock synchronization, and a “monotonic clock,” which is -// not. The general rule is that the wall clock is for telling time and -// the monotonic clock is for measuring time. Rather than split the API, -// in this package the Time returned by time.Now contains both a wall -// clock reading and a monotonic clock reading; later time-telling -// operations use the wall clock reading, but later time-measuring -// operations, specifically comparisons and subtractions, use the -// monotonic clock reading. -// -// For example, this code always computes a positive elapsed time of -// approximately 20 milliseconds, even if the wall clock is changed during -// the operation being timed: -// -// start := time.Now() -// ... operation that takes 20 milliseconds ... -// t := time.Now() -// elapsed := t.Sub(start) -// -// Other idioms, such as time.Since(start), time.Until(deadline), and -// time.Now().Before(deadline), are similarly robust against wall clock -// resets. -// -// The rest of this section gives the precise details of how operations -// use monotonic clocks, but understanding those details is not required -// to use this package. -// -// The Time returned by time.Now contains a monotonic clock reading. -// If Time t has a monotonic clock reading, t.Add adds the same duration to -// both the wall clock and monotonic clock readings to compute the result. -// Because t.AddDate(y, m, d), t.Round(d), and t.Truncate(d) are wall time -// computations, they always strip any monotonic clock reading from their results. -// Because t.In, t.Local, and t.UTC are used for their effect on the interpretation -// of the wall time, they also strip any monotonic clock reading from their results. -// The canonical way to strip a monotonic clock reading is to use t = t.Round(0). -// -// If Times t and u both contain monotonic clock readings, the operations -// t.After(u), t.Before(u), t.Equal(u), t.Compare(u), and t.Sub(u) are carried out -// using the monotonic clock readings alone, ignoring the wall clock -// readings. If either t or u contains no monotonic clock reading, these -// operations fall back to using the wall clock readings. -// -// On some systems the monotonic clock will stop if the computer goes to sleep. -// On such a system, t.Sub(u) may not accurately reflect the actual -// time that passed between t and u. -// -// Because the monotonic clock reading has no meaning outside -// the current process, the serialized forms generated by t.GobEncode, -// t.MarshalBinary, t.MarshalJSON, and t.MarshalText omit the monotonic -// clock reading, and t.Format provides no format for it. Similarly, the -// constructors time.Date, time.Parse, time.ParseInLocation, and time.Unix, -// as well as the unmarshalers t.GobDecode, t.UnmarshalBinary. -// t.UnmarshalJSON, and t.UnmarshalText always create times with -// no monotonic clock reading. -// -// The monotonic clock reading exists only in Time values. It is not -// a part of Duration values or the Unix times returned by t.Unix and -// friends. -// -// Note that the Go == operator compares not just the time instant but -// also the Location and the monotonic clock reading. See the -// documentation for the Time type for a discussion of equality -// testing for Time values. -// -// For debugging, the result of t.String does include the monotonic -// clock reading if present. If t != u because of different monotonic clock readings, -// that difference will be visible when printing t.String() and u.String(). -package time - -// A Time represents an instant in time with nanosecond precision. -// -// Programs using times should typically store and pass them as values, -// not pointers. That is, time variables and struct fields should be of -// type time.Time, not *time.Time. -// -// A Time value can be used by multiple goroutines simultaneously except -// that the methods GobDecode, UnmarshalBinary, UnmarshalJSON and -// UnmarshalText are not concurrency-safe. -// -// Time instants can be compared using the Before, After, and Equal methods. -// The Sub method subtracts two instants, producing a Duration. -// The Add method adds a Time and a Duration, producing a Time. -// -// The zero value of type Time is January 1, year 1, 00:00:00.000000000 UTC. -// As this time is unlikely to come up in practice, the IsZero method gives -// a simple way of detecting a time that has not been initialized explicitly. -// -// Each Time has associated with it a Location, consulted when computing the -// presentation form of the time, such as in the Format, Hour, and Year methods. -// The methods Local, UTC, and In return a Time with a specific location. -// Changing the location in this way changes only the presentation; it does not -// change the instant in time being denoted and therefore does not affect the -// computations described in earlier paragraphs. -// -// Representations of a Time value saved by the GobEncode, MarshalBinary, -// MarshalJSON, and MarshalText methods store the Time.Location's offset, but not -// the location name. They therefore lose information about Daylight Saving Time. -// -// In addition to the required “wall clock” reading, a Time may contain an optional -// reading of the current process's monotonic clock, to provide additional precision -// for comparison or subtraction. -// See the “Monotonic Clocks” section in the package documentation for details. -// -// Note that the Go == operator compares not just the time instant but also the -// Location and the monotonic clock reading. Therefore, Time values should not -// be used as map or database keys without first guaranteeing that the -// identical Location has been set for all values, which can be achieved -// through use of the UTC or Local method, and that the monotonic clock reading -// has been stripped by setting t = t.Round(0). In general, prefer t.Equal(u) -// to t == u, since t.Equal uses the most accurate comparison available and -// correctly handles the case when only one of its arguments has a monotonic -// clock reading. -#Time: _ - -_#hasMonotonic: 9223372036854775808 -_#maxWall: int64 & 68043243391 -_#minWall: int64 & 59453308800 -_#nsecMask: 1073741823 -_#nsecShift: 30 - -// A Month specifies a month of the year (January = 1, ...). -#Month: int // #enumMonth - -#enumMonth: - #January | - #February | - #March | - #April | - #May | - #June | - #July | - #August | - #September | - #October | - #November | - #December - -#values_Month: { - January: #January - February: #February - March: #March - April: #April - May: #May - June: #June - July: #July - August: #August - September: #September - October: #October - November: #November - December: #December -} - -#January: #Month & 1 -#February: #Month & 2 -#March: #Month & 3 -#April: #Month & 4 -#May: #Month & 5 -#June: #Month & 6 -#July: #Month & 7 -#August: #Month & 8 -#September: #Month & 9 -#October: #Month & 10 -#November: #Month & 11 -#December: #Month & 12 - -// A Weekday specifies a day of the week (Sunday = 0, ...). -#Weekday: int // #enumWeekday - -#enumWeekday: - #Sunday | - #Monday | - #Tuesday | - #Wednesday | - #Thursday | - #Friday | - #Saturday - -#values_Weekday: { - Sunday: #Sunday - Monday: #Monday - Tuesday: #Tuesday - Wednesday: #Wednesday - Thursday: #Thursday - Friday: #Friday - Saturday: #Saturday -} - -#Sunday: #Weekday & 0 -#Monday: #Weekday & 1 -#Tuesday: #Weekday & 2 -#Wednesday: #Weekday & 3 -#Thursday: #Weekday & 4 -#Friday: #Weekday & 5 -#Saturday: #Weekday & 6 - -// The unsigned zero year for internal calculations. -// Must be 1 mod 400, and times before it will not compute correctly, -// but otherwise can be changed at will. -_#absoluteZeroYear: -292277022399 - -// The year of the zero Time. -// Assumed by the unixToInternal computation below. -_#internalYear: 1 - -// Offsets to convert between internal and absolute or Unix times. -_#absoluteToInternal: int64 & -9223371966579724800 -_#internalToAbsolute: int64 & 9223371966579724800 -_#unixToInternal: int64 & 62135596800 -_#internalToUnix: int64 & -62135596800 -_#wallToInternal: int64 & 59453308800 - -// A Duration represents the elapsed time between two instants -// as an int64 nanosecond count. The representation limits the -// largest representable duration to approximately 290 years. -#Duration: int64 // #enumDuration - -#enumDuration: - _#minDuration | - _#maxDuration | - #Nanosecond | - #Microsecond | - #Millisecond | - #Second | - #Minute | - #Hour - -#values_Duration: { - minDuration: _#minDuration - maxDuration: _#maxDuration - Nanosecond: #Nanosecond - Microsecond: #Microsecond - Millisecond: #Millisecond - Second: #Second - Minute: #Minute - Hour: #Hour -} - -_#minDuration: #Duration & -9223372036854775808 -_#maxDuration: #Duration & 9223372036854775807 - -#Nanosecond: #Duration & 1 -#Microsecond: #Duration & 1000 -#Millisecond: #Duration & 1000000 -#Second: #Duration & 1000000000 -#Minute: #Duration & 60000000000 -#Hour: #Duration & 3600000000000 - -_#secondsPerMinute: 60 -_#secondsPerHour: 3600 -_#secondsPerDay: 86400 -_#secondsPerWeek: 604800 -_#daysPer400Years: 146097 -_#daysPer100Years: 36524 -_#daysPer4Years: 1461 - -_#timeBinaryVersionV1: 1 -_#timeBinaryVersionV2: 2 diff --git a/cue.mod/gen/time/zoneinfo_go_gen.cue b/cue.mod/gen/time/zoneinfo_go_gen.cue deleted file mode 100644 index 9d49e05..0000000 --- a/cue.mod/gen/time/zoneinfo_go_gen.cue +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go time - -package time - -// A Location maps time instants to the zone in use at that time. -// Typically, the Location represents the collection of time offsets -// in use in a geographical area. For many Locations the time offset varies -// depending on whether daylight savings time is in use at the time instant. -#Location: { -} - -_#alpha: -9223372036854775808 -_#omega: 9223372036854775807 - -_#ruleJulian: _#ruleKind & 0 -_#ruleDOY: _#ruleKind & 1 -_#ruleMonthWeekDay: _#ruleKind & 2 diff --git a/cue.mod/gen/time/zoneinfo_read_go_gen.cue b/cue.mod/gen/time/zoneinfo_read_go_gen.cue deleted file mode 100644 index be1545d..0000000 --- a/cue.mod/gen/time/zoneinfo_read_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go time - -package time - -_#maxFileSize: 10485760 - -_#seekStart: 0 -_#seekCurrent: 1 -_#seekEnd: 2 diff --git a/cue.mod/module.cue b/cue.mod/module.cue deleted file mode 100644 index 3b7b75b..0000000 --- a/cue.mod/module.cue +++ /dev/null @@ -1 +0,0 @@ -module: "github.com/intelops/genval" diff --git a/cue.mod/pkg/def.cue b/cue.mod/pkg/def.cue deleted file mode 100644 index 193760e..0000000 --- a/cue.mod/pkg/def.cue +++ /dev/null @@ -1,71 +0,0 @@ -package kubernetes -import ( - apps "k8s.io/api/apps/v1" - autoscaling "k8s.io/api/autoscaling/v1" - batch "k8s.io/api/batch/v1" - core "k8s.io/api/core/v1" - networking "k8s.io/api/networking/v1" - policy "k8s.io/api/policy/v1" - rbac "k8s.io/api/rbac/v1" - storage "k8s.io/api/storage/v1" -) - -// TODO: Add additional Kubernetes API types and CRDs here - -#Namespace: core.#Namespace -#NetworkPolicy: networking.#NetworkPolicy -#ResourceQuota: core.#ResourceQuota -#LimitRange: core.#LimitRange -#PodDisruptionBudget: policy.#PodDisruptionBudget -#ServiceAccount: core.#ServiceAccount -#Secret: core.#Secret -#ConfigMap: core.#ConfigMap -#StorageClass: storage.#StorageClass -#PersistentVolume: core.#PersistentVolume -#PersistentVolumeClaim: core.#PersistentVolumeClaim -#ClusterRole: rbac.#ClusterRole -#ClusterRoleBinding: rbac.#ClusterRoleBinding -#Role: rbac.#Role -#RoleBinding: rbac.#RoleBinding -#Service: core.#Service -#DaemonSet: apps.#DaemonSet -#Pod: core.#Pod -#ReplicationController: core.#ReplicationController -#ReplicaSet: apps.#ReplicaSet - -#HorizontalPodAutoscaler: autoscaling.#HorizontalPodAutoscaler -#StatefulSet: apps.#StatefulSet -#Job: batch.#Job -#CronJob: batch.#CronJob -#Ingress: networking.#Ingress - -#Deployment: apps.#Deployment & { - apiVersion: "apps/v1" - kind: "Deployment" - - metadata: labels: { - // Mandatory labels. - version: "main" - } - - spec: apps.#DeploymentSpec & { - revisionHistoryLimit: int | *5 // Defaults to 5 - - template: { - metadata: labels: { - version: "cuetest" - } - spec: core.#PodSpec & { - containers: [{ - image: =~"^.*[^:latest]$" - // ... [other fields] - - securityContext: { - privileged: bool | *false | !true // Containers should not be privileged - runAsNonRoot: bool | *true | !false // Containers should run as non-root user - } - }] - } - } - } -} diff --git a/cue.mod/usr/def.cue b/cue.mod/usr/def.cue deleted file mode 100644 index e313b58..0000000 --- a/cue.mod/usr/def.cue +++ /dev/null @@ -1,70 +0,0 @@ -import ( - apps "k8s.io/api/apps/v1" - autoscaling "k8s.io/api/autoscaling/v1" - batch "k8s.io/api/batch/v1" - core "k8s.io/api/core/v1" - networking "k8s.io/api/networking/v1" - policy "k8s.io/api/policy/v1" - rbac "k8s.io/api/rbac/v1" - storage "k8s.io/api/storage/v1" -) - -// TODO: Add additional Kubernetes API types and CRDs here - -#Namespace: core.#Namespace -#NetworkPolicy: networking.#NetworkPolicy -#ResourceQuota: core.#ResourceQuota -#LimitRange: core.#LimitRange -#PodDisruptionBudget: policy.#PodDisruptionBudget -#ServiceAccount: core.#ServiceAccount -#Secret: core.#Secret -#ConfigMap: core.#ConfigMap -#StorageClass: storage.#StorageClass -#PersistentVolume: core.#PersistentVolume -#PersistentVolumeClaim: core.#PersistentVolumeClaim -#ClusterRole: rbac.#ClusterRole -#ClusterRoleBinding: rbac.#ClusterRoleBinding -#Role: rbac.#Role -#RoleBinding: rbac.#RoleBinding -#Service: core.#Service -#DaemonSet: apps.#DaemonSet -#Pod: core.#Pod -#ReplicationController: core.#ReplicationController -#ReplicaSet: apps.#ReplicaSet - -#HorizontalPodAutoscaler: autoscaling.#HorizontalPodAutoscaler -#StatefulSet: apps.#StatefulSet -#Job: batch.#Job -#CronJob: batch.#CronJob -#Ingress: networking.#Ingress - -#Deployment: apps.#Deployment & { - apiVersion: "apps/v1" - kind: "Deployment" - - metadata: labels: { - // Mandatory labels. - version: "main" - } - - spec: apps.#DeploymentSpec & { - revisionHistoryLimit: int | *5 // Defaults to 5 - - template: { - metadata: labels: { - version: "cuetest" - } - spec: core.#PodSpec & { - containers: [{ - image: =~"^.*[^:latest]$" - // ... [other fields] - - securityContext: { - privileged: bool | *false | !true // Containers should not be privileged - runAsNonRoot: bool | *true | !false // Containers should run as non-root user - } - }] - } - } - } -} diff --git a/cue.mod/usr/tekton.cue b/cue.mod/usr/tekton.cue deleted file mode 100644 index 72e112e..0000000 --- a/cue.mod/usr/tekton.cue +++ /dev/null @@ -1,3 +0,0 @@ -import "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1" - -#Pipeline: v1.#Pipeline \ No newline at end of file diff --git a/embed.go b/embed.go deleted file mode 100644 index 6ae70f2..0000000 --- a/embed.go +++ /dev/null @@ -1,8 +0,0 @@ -package embeder - -import "embed" - -// Embed all `.cue` files in the cue.mod directory. - -//go:embed cue.mod/module.cue cue.mod/gen/**/*.cue cue.mod -var CueDef embed.FS diff --git a/go.mod b/go.mod index e79bdc3..bb7cd3f 100644 --- a/go.mod +++ b/go.mod @@ -4,15 +4,22 @@ go 1.21 require ( cuelang.org/go v0.8.0 + github.com/briandowns/spinner v1.23.0 github.com/fatih/color v1.16.0 github.com/google/cel-go v0.20.1 + github.com/google/go-containerregistry v0.19.0 github.com/google/go-github/v57 v57.0.0 github.com/hashicorp/hcl/v2 v2.20.1 github.com/jedib0t/go-pretty/v6 v6.5.6 + github.com/joho/godotenv v1.5.1 github.com/open-policy-agent/opa v0.63.0 + github.com/sigstore/cosign/v2 v2.2.3 + github.com/sigstore/sigstore v1.8.1 github.com/sirupsen/logrus v1.9.3 + github.com/spf13/cobra v1.8.0 github.com/stretchr/testify v1.9.0 github.com/zclconf/go-cty v1.14.4 + golang.org/x/net v0.22.0 golang.org/x/oauth2 v0.18.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -23,33 +30,147 @@ require ( ) require ( + cloud.google.com/go/compute v1.23.3 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + filippo.io/edwards25519 v1.1.0 // indirect + github.com/AliyunContainerService/ack-ram-tool/pkg/credentials/alibabacloudsdkgo/helper v0.2.0 // indirect + github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect + github.com/Azure/go-autorest v14.2.0+incompatible // indirect + github.com/Azure/go-autorest/autorest v0.11.29 // indirect + github.com/Azure/go-autorest/autorest/adal v0.9.23 // indirect + github.com/Azure/go-autorest/autorest/azure/auth v0.5.12 // indirect + github.com/Azure/go-autorest/autorest/azure/cli v0.4.6 // indirect + github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect + github.com/Azure/go-autorest/logger v0.2.1 // indirect + github.com/Azure/go-autorest/tracing v0.6.0 // indirect + github.com/Microsoft/go-winio v0.6.1 // indirect github.com/OneOfOne/xxhash v1.2.8 // indirect + github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c // indirect + github.com/ThalesIgnite/crypto11 v1.2.5 // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/agnivade/levenshtein v1.1.1 // indirect + github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4 // indirect + github.com/alibabacloud-go/cr-20160607 v1.0.1 // indirect + github.com/alibabacloud-go/cr-20181201 v1.0.10 // indirect + github.com/alibabacloud-go/darabonba-openapi v0.2.1 // indirect + github.com/alibabacloud-go/debug v1.0.0 // indirect + github.com/alibabacloud-go/endpoint-util v1.1.1 // indirect + github.com/alibabacloud-go/openapi-util v0.1.0 // indirect + github.com/alibabacloud-go/tea v1.2.1 // indirect + github.com/alibabacloud-go/tea-utils v1.4.5 // indirect + github.com/alibabacloud-go/tea-xml v1.1.3 // indirect + github.com/aliyun/credentials-go v1.3.1 // indirect github.com/antlr4-go/antlr/v4 v4.13.0 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect + github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect + github.com/aws/aws-sdk-go-v2 v1.24.1 // indirect + github.com/aws/aws-sdk-go-v2/config v1.26.6 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.16.16 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.11 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.10 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.10 // indirect + github.com/aws/aws-sdk-go-v2/internal/ini v1.7.3 // indirect + github.com/aws/aws-sdk-go-v2/service/ecr v1.20.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.18.2 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.4 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.10 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.18.7 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.7 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.26.7 // indirect + github.com/aws/smithy-go v1.19.0 // indirect + github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20231024185945-8841054dbdb8 // indirect github.com/beorn7/perks v1.0.1 // indirect + github.com/blang/semver v3.5.1+incompatible // indirect + github.com/buildkite/agent/v3 v3.62.0 // indirect + github.com/buildkite/go-pipeline v0.3.2 // indirect + github.com/buildkite/interpolate v0.0.0-20200526001904-07f35b4ae251 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/chrismellard/docker-credential-acr-env v0.0.0-20230304212654-82a0ddb27589 // indirect + github.com/clbanning/mxj/v2 v2.7.0 // indirect + github.com/cloudflare/circl v1.3.7 // indirect github.com/cockroachdb/apd/v3 v3.2.1 // indirect + github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be // indirect + github.com/containerd/stargz-snapshotter/estargz v0.14.3 // indirect + github.com/coreos/go-oidc/v3 v3.9.0 // indirect + github.com/cyberphone/json-canonicalization v0.0.0-20231011164504-785e29786b46 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect - github.com/dustin/go-humanize v1.0.1 // indirect + github.com/digitorus/pkcs7 v0.0.0-20230818184609-3a137a874352 // indirect + github.com/digitorus/timestamp v0.0.0-20231217203849-220c5c2851b7 // indirect + github.com/dimchansky/utfbom v1.1.1 // indirect + github.com/docker/cli v24.0.7+incompatible // indirect + github.com/docker/distribution v2.8.3+incompatible // indirect + github.com/docker/docker v24.0.7+incompatible // indirect + github.com/docker/docker-credential-helpers v0.8.0 // indirect + github.com/emicklei/go-restful/v3 v3.11.0 // indirect github.com/emicklei/proto v1.13.2 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect + github.com/go-chi/chi v4.1.2+incompatible // indirect github.com/go-ini/ini v1.67.0 // indirect + github.com/go-jose/go-jose/v3 v3.0.1 // indirect github.com/go-logr/logr v1.4.1 // indirect github.com/go-logr/stdr v1.2.2 // indirect + github.com/go-openapi/analysis v0.22.0 // indirect + github.com/go-openapi/errors v0.21.0 // indirect + github.com/go-openapi/jsonpointer v0.20.2 // indirect + github.com/go-openapi/jsonreference v0.20.4 // indirect + github.com/go-openapi/loads v0.21.5 // indirect + github.com/go-openapi/runtime v0.27.1 // indirect + github.com/go-openapi/spec v0.20.13 // indirect + github.com/go-openapi/strfmt v0.22.0 // indirect + github.com/go-openapi/swag v0.22.9 // indirect + github.com/go-openapi/validate v0.22.4 // indirect + github.com/go-piv/piv-go v1.11.0 // indirect github.com/gobwas/glob v0.2.3 // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang-jwt/jwt/v4 v4.5.0 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/snappy v0.0.4 // indirect + github.com/google/certificate-transparency-go v1.1.7 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect + github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/go-github/v55 v55.0.0 // indirect github.com/google/go-querystring v1.1.0 // indirect + github.com/google/gofuzz v1.2.0 // indirect + github.com/google/s2a-go v0.1.7 // indirect github.com/google/uuid v1.6.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect github.com/gorilla/mux v1.8.1 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 // indirect - github.com/klauspost/compress v1.17.1 // indirect + github.com/hashicorp/go-cleanhttp v0.5.2 // indirect + github.com/hashicorp/go-retryablehttp v0.7.5 // indirect + github.com/hashicorp/hcl v1.0.1-vault-5 // indirect + github.com/imdario/mergo v0.3.16 // indirect + github.com/in-toto/in-toto-golang v0.9.0 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/jedisct1/go-minisign v0.0.0-20230811132847-661be99b8267 // indirect + github.com/jmespath/go-jmespath v0.4.0 // indirect + github.com/josharian/intern v1.0.0 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/klauspost/compress v1.17.2 // indirect + github.com/letsencrypt/boulder v0.0.0-20231026200631-000cd05d5491 // indirect + github.com/magiconair/properties v1.8.7 // indirect + github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/miekg/pkcs11 v1.1.1 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-wordwrap v1.0.1 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/mozillazg/docker-credential-acr-helper v0.3.0 // indirect + github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect + github.com/nozzle/throttler v0.0.0-20180817012639-2ea982251481 // indirect + github.com/oklog/ulid v1.3.1 // indirect + github.com/oleiade/reflections v1.0.1 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0 // indirect + github.com/opentracing/opentracing-go v1.2.0 // indirect + github.com/pborman/uuid v1.2.1 // indirect + github.com/pelletier/go-toml/v2 v2.1.0 // indirect + github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_golang v1.19.0 // indirect github.com/prometheus/client_model v0.5.0 // indirect @@ -59,25 +180,74 @@ require ( github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect + github.com/sagikazarmark/locafero v0.4.0 // indirect + github.com/sagikazarmark/slog-shim v0.1.0 // indirect + github.com/sassoftware/relic v7.2.1+incompatible // indirect + github.com/secure-systems-lab/go-securesystemslib v0.8.0 // indirect + github.com/segmentio/ksuid v1.0.4 // indirect + github.com/shibumi/go-pathspec v1.3.0 // indirect + github.com/sigstore/fulcio v1.4.3 // indirect + github.com/sigstore/rekor v1.3.4 // indirect + github.com/sigstore/timestamp-authority v1.2.1 // indirect + github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect + github.com/sourcegraph/conc v0.3.0 // indirect + github.com/spf13/afero v1.11.0 // indirect + github.com/spf13/cast v1.6.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/viper v1.18.2 // indirect + github.com/spiffe/go-spiffe/v2 v2.1.7 // indirect github.com/stoewer/go-strcase v1.3.0 // indirect + github.com/subosito/gotenv v1.6.0 // indirect + github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tchap/go-patricia/v2 v2.3.1 // indirect + github.com/thales-e-security/pool v0.0.2 // indirect + github.com/theupdateframework/go-tuf v0.7.0 // indirect + github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399 // indirect + github.com/tjfoc/gmsm v1.4.1 // indirect + github.com/transparency-dev/merkle v0.0.2 // indirect + github.com/vbatts/tar-split v0.11.5 // indirect + github.com/xanzy/go-gitlab v0.96.0 // indirect github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/yashtewari/glob-intersection v0.2.0 // indirect + github.com/zeebo/errs v1.3.0 // indirect + go.mongodb.org/mongo-driver v1.13.1 // indirect + go.opencensus.io v0.24.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect go.opentelemetry.io/otel v1.23.1 // indirect go.opentelemetry.io/otel/metric v1.23.1 // indirect go.opentelemetry.io/otel/sdk v1.23.1 // indirect go.opentelemetry.io/otel/trace v1.23.1 // indirect - golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + go.step.sm/crypto v0.42.1 // indirect + go.uber.org/multierr v1.11.0 // indirect + go.uber.org/zap v1.26.0 // indirect + golang.org/x/crypto v0.21.0 // indirect + golang.org/x/exp v0.0.0-20231108232855-2478ac86f678 // indirect golang.org/x/mod v0.16.0 // indirect - golang.org/x/net v0.22.0 // indirect + golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.18.0 // indirect + golang.org/x/term v0.18.0 // indirect golang.org/x/text v0.14.0 // indirect + golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.19.0 // indirect + google.golang.org/api v0.159.0 // indirect google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240205150955-31a09d347014 // indirect + google.golang.org/grpc v1.62.1 // indirect google.golang.org/protobuf v1.33.0 // indirect + gopkg.in/go-jose/go-jose.v2 v2.6.1 // indirect + gopkg.in/inf.v0 v0.9.1 // indirect + gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect + k8s.io/api v0.28.3 // indirect + k8s.io/apimachinery v0.28.3 // indirect + k8s.io/client-go v0.28.3 // indirect + k8s.io/klog/v2 v2.100.1 // indirect + k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect + k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect + sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect + sigs.k8s.io/release-utils v0.7.7 // indirect + sigs.k8s.io/structured-merge-diff/v4 v4.3.0 // indirect sigs.k8s.io/yaml v1.4.0 // indirect ) diff --git a/go.sum b/go.sum index e8d6ac2..8924651 100644 --- a/go.sum +++ b/go.sum @@ -1,45 +1,254 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.110.10 h1:LXy9GEO+timppncPIAZoOj3l58LIU9k+kn48AN7IO3Y= +cloud.google.com/go/compute v1.23.3 h1:6sVlXXBmbd7jNX0Ipq0trII3e4n1/MsADLK6a+aiVlk= +cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v1.1.5 h1:1jTsCu4bcsNsE4iiqNT5SHwrDRCfRmIaaaVFhRveTJI= +cloud.google.com/go/iam v1.1.5/go.mod h1:rB6P/Ic3mykPbFio+vo7403drjlgvoWfYpJhMXEbzv8= +cloud.google.com/go/kms v1.15.5 h1:pj1sRfut2eRbD9pFRjNnPNg/CzJPuQAzUujMIM1vVeM= +cloud.google.com/go/kms v1.15.5/go.mod h1:cU2H5jnp6G2TDpUGZyqTCoy1n16fbubHZjmVXSMtwDI= cuelabs.dev/go/oci/ociregistry v0.0.0-20240314152124-224736b49f2e h1:GwCVItFUPxwdsEYnlUcJ6PJxOjTeFFCKOh6QWg4oAzQ= cuelabs.dev/go/oci/ociregistry v0.0.0-20240314152124-224736b49f2e/go.mod h1:ApHceQLLwcOkCEXM1+DyCXTHEJhNGDpJ2kmV6axsx24= cuelang.org/go v0.8.0 h1:fO1XPe/SUGtc7dhnGnTPbpIDoQm/XxhDtoSF7jzO01c= cuelang.org/go v0.8.0/go.mod h1:CoDbYolfMms4BhWUlhD+t5ORnihR7wvjcfgyO9lL5FI= +filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= +filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= +github.com/AdamKorcz/go-fuzz-headers-1 v0.0.0-20230618160516-e936619f9f18 h1:rd389Q26LMy03gG4anandGFC2LW/xvjga5GezeeaxQk= +github.com/AdamKorcz/go-fuzz-headers-1 v0.0.0-20230618160516-e936619f9f18/go.mod h1:fgJuSBrJP5qZtKqaMJE0hmhS2tmRH+44IkfZvjtaf1M= +github.com/AliyunContainerService/ack-ram-tool/pkg/credentials/alibabacloudsdkgo/helper v0.2.0 h1:8+4G8JaejP8Xa6W46PzJEwisNgBXMvFcz78N6zG/ARw= +github.com/AliyunContainerService/ack-ram-tool/pkg/credentials/alibabacloudsdkgo/helper v0.2.0/go.mod h1:GgeIE+1be8Ivm7Sh4RgwI42aTtC9qrcj+Y9Y6CjJhJs= +github.com/Azure/azure-sdk-for-go v68.0.0+incompatible h1:fcYLmCpyNYRnvJbPerq7U0hS+6+I79yEDJBqVNcqUzU= +github.com/Azure/azure-sdk-for-go v68.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.1 h1:lGlwhPtrX6EVml1hO0ivjkUxsSyl4dsiw9qcA1k/3IQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.1/go.mod h1:RKUqNu35KJYcVG/fqTRqmuXJZYNhYkBrnC/hX7yGbTA= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.1 h1:sO0/P7g68FrryJzljemN+6GTssUXdANk6aJ7T1ZxnsQ= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.1/go.mod h1:h8hyGFDsU5HMivxiS2iYFZsgDbU9OnnJ163x5UGVKYo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.1 h1:6oNBlSdi1QqM1PNW7FPA6xOGA5UNsXnkaYZz9vdPGhA= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.1/go.mod h1:s4kgfzA0covAXNicZHDMN58jExvcng2mC/DepXiF1EI= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.0.1 h1:MyVTgWR8qd/Jw1Le0NZebGBUCLbtak3bJ3z1OlqZBpw= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.0.1/go.mod h1:GpPjLhVR9dnUoJMyHWSPy71xY9/lcmpzIPZXmF0FCVY= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0 h1:D3occbWoio4EBLkbkevetNMAVX197GkzbUMtqjGWn80= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.0/go.mod h1:bTSOgj05NGRuHHhQwAdPnYr9TOdNmKlZTgGLL6nyAdI= +github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= +github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= +github.com/Azure/go-autorest/autorest v0.11.24/go.mod h1:G6kyRlFnTuSbEYkQGawPfsCswgme4iYf6rfSKUDzbCc= +github.com/Azure/go-autorest/autorest v0.11.29 h1:I4+HL/JDvErx2LjyzaVxllw2lRDB5/BT2Bm4g20iqYw= +github.com/Azure/go-autorest/autorest v0.11.29/go.mod h1:ZtEzC4Jy2JDrZLxvWs8LrBWEBycl1hbT1eknI8MtfAs= +github.com/Azure/go-autorest/autorest/adal v0.9.18/go.mod h1:XVVeme+LZwABT8K5Lc3hA4nAe8LDBVle26gTrguhhPQ= +github.com/Azure/go-autorest/autorest/adal v0.9.22/go.mod h1:XuAbAEUv2Tta//+voMI038TrJBqjKam0me7qR+L8Cmk= +github.com/Azure/go-autorest/autorest/adal v0.9.23 h1:Yepx8CvFxwNKpH6ja7RZ+sKX+DWYNldbLiALMC3BTz8= +github.com/Azure/go-autorest/autorest/adal v0.9.23/go.mod h1:5pcMqFkdPhviJdlEy3kC/v1ZLnQl0MH6XA5YCcMhy4c= +github.com/Azure/go-autorest/autorest/azure/auth v0.5.12 h1:wkAZRgT/pn8HhFyzfe9UnqOjJYqlembgCTi72Bm/xKk= +github.com/Azure/go-autorest/autorest/azure/auth v0.5.12/go.mod h1:84w/uV8E37feW2NCJ08uT9VBfjfUHpgLVnG2InYD6cg= +github.com/Azure/go-autorest/autorest/azure/cli v0.4.5/go.mod h1:ADQAXrkgm7acgWVUNamOgh8YNrv4p27l3Wc55oVfpzg= +github.com/Azure/go-autorest/autorest/azure/cli v0.4.6 h1:w77/uPk80ZET2F+AfQExZyEWtn+0Rk/uw17m9fv5Ajc= +github.com/Azure/go-autorest/autorest/azure/cli v0.4.6/go.mod h1:piCfgPho7BiIDdEQ1+g4VmKyD5y+p/XtSNqE6Hc4QD0= +github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= +github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= +github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= +github.com/Azure/go-autorest/autorest/mocks v0.4.2 h1:PGN4EDXnuQbojHbU0UWoNvmu9AGVwYHG9/fkDYhtAfw= +github.com/Azure/go-autorest/autorest/mocks v0.4.2/go.mod h1:Vy7OitM9Kei0i1Oj+LvyAWMXJHeKH1MVlzFugfVrmyU= +github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+ZtXWSmf4Tg= +github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= +github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= +github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= +github.com/AzureAD/microsoft-authentication-library-for-go v1.2.1 h1:DzHpqpoJVaCgOUdVHxE8QB52S6NiVdDQvGlny1qvPqA= +github.com/AzureAD/microsoft-authentication-library-for-go v1.2.1/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= +github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= github.com/OneOfOne/xxhash v1.2.8 h1:31czK/TI9sNkxIKfaUfGlU47BAxQ0ztGgd9vPyqimf8= github.com/OneOfOne/xxhash v1.2.8/go.mod h1:eZbhyaAYD41SGSSsnmcpxVoRiQ/MPUTjUdIIOT9Um7Q= +github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c h1:kMFnB0vCcX7IL/m9Y5LO+KQYv+t1CQOiFe6+SV2J7bE= +github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= +github.com/ThalesIgnite/crypto11 v1.2.5 h1:1IiIIEqYmBvUYFeMnHqRft4bwf/O36jryEUpY+9ef8E= +github.com/ThalesIgnite/crypto11 v1.2.5/go.mod h1:ILDKtnCKiQ7zRoNxcp36Y1ZR8LBPmR2E23+wTQe/MlE= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8= github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo= +github.com/alessio/shellescape v1.4.1 h1:V7yhSDDn8LP4lc4jS8pFkt0zCnzVJlG5JXy9BVKJUX0= +github.com/alessio/shellescape v1.4.1/go.mod h1:PZAiSCk0LJaZkiCSkPv8qIobYglO3FPpyFjDCtHLS30= +github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.2/go.mod h1:sCavSAvdzOjul4cEqeVtvlSaSScfNsTQ+46HwlTL1hc= +github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4 h1:iC9YFYKDGEy3n/FtqJnOkZsene9olVspKmkX5A2YBEo= +github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4/go.mod h1:sCavSAvdzOjul4cEqeVtvlSaSScfNsTQ+46HwlTL1hc= +github.com/alibabacloud-go/cr-20160607 v1.0.1 h1:WEnP1iPFKJU74ryUKh/YDPHoxMZawqlPajOymyNAkts= +github.com/alibabacloud-go/cr-20160607 v1.0.1/go.mod h1:QHeKZtZ3F3FOE+/uIXCBAp8POwnUYekpLwr1dtQa5r0= +github.com/alibabacloud-go/cr-20181201 v1.0.10 h1:B60f6S1imsgn2fgC6X6FrVNrONDrbCT0NwYhsJ0C9/c= +github.com/alibabacloud-go/cr-20181201 v1.0.10/go.mod h1:VN9orB/w5G20FjytoSpZROqu9ZqxwycASmGqYUJSoDc= +github.com/alibabacloud-go/darabonba-openapi v0.1.12/go.mod h1:sTAjsFJmVsmcVeklL9d9uDBlFsgl43wZ6jhI6BHqHqU= +github.com/alibabacloud-go/darabonba-openapi v0.1.14/go.mod h1:w4CosR7O/kapCtEEMBm3JsQqWBU/CnZ2o0pHorsTWDI= +github.com/alibabacloud-go/darabonba-openapi v0.2.1 h1:WyzxxKvhdVDlwpAMOHgAiCJ+NXa6g5ZWPFEzaK/ewwY= +github.com/alibabacloud-go/darabonba-openapi v0.2.1/go.mod h1:zXOqLbpIqq543oioL9IuuZYOQgHQ5B8/n5OPrnko8aY= +github.com/alibabacloud-go/darabonba-string v1.0.0/go.mod h1:93cTfV3vuPhhEwGGpKKqhVW4jLe7tDpo3LUM0i0g6mA= +github.com/alibabacloud-go/debug v0.0.0-20190504072949-9472017b5c68/go.mod h1:6pb/Qy8c+lqua8cFpEy7g39NRRqOWc3rOwAy8m5Y2BY= +github.com/alibabacloud-go/debug v1.0.0 h1:3eIEQWfay1fB24PQIEzXAswlVJtdQok8f3EVN5VrBnA= +github.com/alibabacloud-go/debug v1.0.0/go.mod h1:8gfgZCCAC3+SCzjWtY053FrOcd4/qlH6IHTI4QyICOc= +github.com/alibabacloud-go/endpoint-util v1.1.0/go.mod h1:O5FuCALmCKs2Ff7JFJMudHs0I5EBgecXXxZRyswlEjE= +github.com/alibabacloud-go/endpoint-util v1.1.1 h1:ZkBv2/jnghxtU0p+upSU0GGzW1VL9GQdZO3mcSUTUy8= +github.com/alibabacloud-go/endpoint-util v1.1.1/go.mod h1:O5FuCALmCKs2Ff7JFJMudHs0I5EBgecXXxZRyswlEjE= +github.com/alibabacloud-go/openapi-util v0.0.9/go.mod h1:sQuElr4ywwFRlCCberQwKRFhRzIyG4QTP/P4y1CJ6Ws= +github.com/alibabacloud-go/openapi-util v0.0.10/go.mod h1:sQuElr4ywwFRlCCberQwKRFhRzIyG4QTP/P4y1CJ6Ws= +github.com/alibabacloud-go/openapi-util v0.0.11/go.mod h1:sQuElr4ywwFRlCCberQwKRFhRzIyG4QTP/P4y1CJ6Ws= +github.com/alibabacloud-go/openapi-util v0.1.0 h1:0z75cIULkDrdEhkLWgi9tnLe+KhAFE/r5Pb3312/eAY= +github.com/alibabacloud-go/openapi-util v0.1.0/go.mod h1:sQuElr4ywwFRlCCberQwKRFhRzIyG4QTP/P4y1CJ6Ws= +github.com/alibabacloud-go/tea v1.1.0/go.mod h1:IkGyUSX4Ba1V+k4pCtJUc6jDpZLFph9QMy2VUPTwukg= +github.com/alibabacloud-go/tea v1.1.7/go.mod h1:/tmnEaQMyb4Ky1/5D+SE1BAsa5zj/KeGOFfwYm3N/p4= +github.com/alibabacloud-go/tea v1.1.8/go.mod h1:/tmnEaQMyb4Ky1/5D+SE1BAsa5zj/KeGOFfwYm3N/p4= +github.com/alibabacloud-go/tea v1.1.11/go.mod h1:/tmnEaQMyb4Ky1/5D+SE1BAsa5zj/KeGOFfwYm3N/p4= +github.com/alibabacloud-go/tea v1.1.17/go.mod h1:nXxjm6CIFkBhwW4FQkNrolwbfon8Svy6cujmKFUq98A= +github.com/alibabacloud-go/tea v1.1.19/go.mod h1:nXxjm6CIFkBhwW4FQkNrolwbfon8Svy6cujmKFUq98A= +github.com/alibabacloud-go/tea v1.2.1 h1:rFF1LnrAdhaiPmKwH5xwYOKlMh66CqRwPUTzIK74ask= +github.com/alibabacloud-go/tea v1.2.1/go.mod h1:qbzof29bM/IFhLMtJPrgTGK3eauV5J2wSyEUo4OEmnA= +github.com/alibabacloud-go/tea-utils v1.3.1/go.mod h1:EI/o33aBfj3hETm4RLiAxF/ThQdSngxrpF8rKUDJjPE= +github.com/alibabacloud-go/tea-utils v1.3.9/go.mod h1:EI/o33aBfj3hETm4RLiAxF/ThQdSngxrpF8rKUDJjPE= +github.com/alibabacloud-go/tea-utils v1.4.3/go.mod h1:KNcT0oXlZZxOXINnZBs6YvgOd5aYp9U67G+E3R8fcQw= +github.com/alibabacloud-go/tea-utils v1.4.5 h1:h0/6Xd2f3bPE4XHTvkpjwxowIwRCJAJOqY6Eq8f3zfA= +github.com/alibabacloud-go/tea-utils v1.4.5/go.mod h1:KNcT0oXlZZxOXINnZBs6YvgOd5aYp9U67G+E3R8fcQw= +github.com/alibabacloud-go/tea-xml v1.1.2/go.mod h1:Rq08vgCcCAjHyRi/M7xlHKUykZCEtyBy9+DPF6GgEu8= +github.com/alibabacloud-go/tea-xml v1.1.3 h1:7LYnm+JbOq2B+T/B0fHC4Ies4/FofC4zHzYtqw7dgt0= +github.com/alibabacloud-go/tea-xml v1.1.3/go.mod h1:Rq08vgCcCAjHyRi/M7xlHKUykZCEtyBy9+DPF6GgEu8= +github.com/aliyun/credentials-go v1.1.2/go.mod h1:ozcZaMR5kLM7pwtCMEpVmQ242suV6qTJya2bDq4X1Tw= +github.com/aliyun/credentials-go v1.3.1 h1:uq/0v7kWrxmoLGpqjx7vtQ/s03f0zR//0br/xWDTE28= +github.com/aliyun/credentials-go v1.3.1/go.mod h1:8jKYhQuDawt8x2+fusqa1Y6mPxemTsBEN04dgcAcYz0= github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI= github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g= github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig+0+Ap1h4unLjW6YQJpKZVmUzxsD4E/Q= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= +github.com/aws/aws-sdk-go v1.50.0 h1:HBtrLeO+QyDKnc3t1+5DR1RxodOHCGr8ZcrHudpv7jI= +github.com/aws/aws-sdk-go v1.50.0/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go-v2 v1.21.2/go.mod h1:ErQhvNuEMhJjweavOYhxVkn2RUx7kQXVATHrjKtxIpM= +github.com/aws/aws-sdk-go-v2 v1.24.1 h1:xAojnj+ktS95YZlDf0zxWBkbFtymPeDP+rvUQIH3uAU= +github.com/aws/aws-sdk-go-v2 v1.24.1/go.mod h1:LNh45Br1YAkEKaAqvmE1m8FUx6a5b/V0oAKV7of29b4= +github.com/aws/aws-sdk-go-v2/config v1.26.6 h1:Z/7w9bUqlRI0FFQpetVuFYEsjzE3h7fpU6HuGmfPL/o= +github.com/aws/aws-sdk-go-v2/config v1.26.6/go.mod h1:uKU6cnDmYCvJ+pxO9S4cWDb2yWWIH5hra+32hVh1MI4= +github.com/aws/aws-sdk-go-v2/credentials v1.16.16 h1:8q6Rliyv0aUFAVtzaldUEcS+T5gbadPbWdV1WcAddK8= +github.com/aws/aws-sdk-go-v2/credentials v1.16.16/go.mod h1:UHVZrdUsv63hPXFo1H7c5fEneoVo9UXiz36QG1GEPi0= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.11 h1:c5I5iH+DZcH3xOIMlz3/tCKJDaHFwYEmxvlh2fAcFo8= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.11/go.mod h1:cRrYDYAMUohBJUtUnOhydaMHtiK/1NZ0Otc9lIb6O0Y= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.43/go.mod h1:auo+PiyLl0n1l8A0e8RIeR8tOzYPfZZH/JNlrJ8igTQ= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.10 h1:vF+Zgd9s+H4vOXd5BMaPWykta2a6Ih0AKLq/X6NYKn4= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.10/go.mod h1:6BkRjejp/GR4411UGqkX8+wFMbFbqsUIimfK4XjOKR4= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.37/go.mod h1:Qe+2KtKml+FEsQF/DHmDV+xjtche/hwoF75EG4UlHW8= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.10 h1:nYPe006ktcqUji8S2mqXf9c/7NdiKriOwMvWQHgYztw= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.10/go.mod h1:6UV4SZkVvmODfXKql4LCbaZUpF7HO2BX38FgBf9ZOLw= +github.com/aws/aws-sdk-go-v2/internal/ini v1.7.3 h1:n3GDfwqF2tzEkXlv5cuy4iy7LpKDtqDMcNLfZDu9rls= +github.com/aws/aws-sdk-go-v2/internal/ini v1.7.3/go.mod h1:6fQQgfuGmw8Al/3M2IgIllycxV7ZW7WCdVSqfBeUiCY= +github.com/aws/aws-sdk-go-v2/service/ecr v1.20.2 h1:y6LX9GUoEA3mO0qpFl1ZQHj1rFyPWVphlzebiSt2tKE= +github.com/aws/aws-sdk-go-v2/service/ecr v1.20.2/go.mod h1:Q0LcmaN/Qr8+4aSBrdrXXePqoX0eOuYpJLbYpilmWnA= +github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.18.2 h1:PpbXaecV3sLAS6rjQiaKw4/jyq3Z8gNzmoJupHAoBp0= +github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.18.2/go.mod h1:fUHpGXr4DrXkEDpGAjClPsviWf+Bszeb0daKE0blxv8= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.4 h1:/b31bi3YVNlkzkBrm9LfpaKoaYZUxIAj4sHfOTmLfqw= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.4/go.mod h1:2aGXHFmbInwgP9ZfpmdIfOELL79zhdNYNmReK8qDfdQ= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.10 h1:DBYTXwIGQSGs9w4jKm60F5dmCQ3EEruxdc0MFh+3EY4= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.10/go.mod h1:wohMUQiFdzo0NtxbBg0mSRGZ4vL3n0dKjLTINdcIino= +github.com/aws/aws-sdk-go-v2/service/kms v1.27.9 h1:W9PbZAZAEcelhhjb7KuwUtf+Lbc+i7ByYJRuWLlnxyQ= +github.com/aws/aws-sdk-go-v2/service/kms v1.27.9/go.mod h1:2tFmR7fQnOdQlM2ZCEPpFnBIQD1U8wmXmduBgZbOag0= +github.com/aws/aws-sdk-go-v2/service/sso v1.18.7 h1:eajuO3nykDPdYicLlP3AGgOyVN3MOlFmZv7WGTuJPow= +github.com/aws/aws-sdk-go-v2/service/sso v1.18.7/go.mod h1:+mJNDdF+qiUlNKNC3fxn74WWNN+sOiGOEImje+3ScPM= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.7 h1:QPMJf+Jw8E1l7zqhZmMlFw6w1NmfkfiSK8mS4zOx3BA= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.7/go.mod h1:ykf3COxYI0UJmxcfcxcVuz7b6uADi1FkiUz6Eb7AgM8= +github.com/aws/aws-sdk-go-v2/service/sts v1.26.7 h1:NzO4Vrau795RkUdSHKEwiR01FaGzGOH1EETJ+5QHnm0= +github.com/aws/aws-sdk-go-v2/service/sts v1.26.7/go.mod h1:6h2YuIoxaMSCFf5fi1EgZAwdfkGMgDY+DVfa61uLe4U= +github.com/aws/smithy-go v1.15.0/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= +github.com/aws/smithy-go v1.19.0 h1:KWFKQV80DpP3vJrrA9sVAHQ5gc2z8i4EzrLhLlWXcBM= +github.com/aws/smithy-go v1.19.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20231024185945-8841054dbdb8 h1:SoFYaT9UyGkR0+nogNyD/Lj+bsixB+SNuAS4ABlEs6M= +github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20231024185945-8841054dbdb8/go.mod h1:2JF49jcDOrLStIXN/j/K1EKRq8a8R2qRnlZA6/o/c7c= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= +github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= +github.com/briandowns/spinner v1.23.0 h1:alDF2guRWqa/FOZZYWjlMIx2L6H0wyewPxo/CH4Pt2A= +github.com/briandowns/spinner v1.23.0/go.mod h1:rPG4gmXeN3wQV/TsAY4w8lPdIM6RX3yqeBQJSrbXjuE= +github.com/buildkite/agent/v3 v3.62.0 h1:yvzSjI8Lgifw883I8m9u8/L/Thxt4cLFd5aWPn3gg70= +github.com/buildkite/agent/v3 v3.62.0/go.mod h1:jN6SokGXrVNNIpI0BGQ+j5aWeI3gin8F+3zwA5Q6gqM= +github.com/buildkite/go-pipeline v0.3.2 h1:SW4EaXNwfjow7xDRPGgX0Rcx+dPj5C1kV9LKCLjWGtM= +github.com/buildkite/go-pipeline v0.3.2/go.mod h1:iY5jzs3Afc8yHg6KDUcu3EJVkfaUkd9x/v/OH98qyUA= +github.com/buildkite/interpolate v0.0.0-20200526001904-07f35b4ae251 h1:k6UDF1uPYOs0iy1HPeotNa155qXRWrzKnqAaGXHLZCE= +github.com/buildkite/interpolate v0.0.0-20200526001904-07f35b4ae251/go.mod h1:gbPR1gPu9dB96mucYIR7T3B7p/78hRVSOuzIWLHK2Y4= +github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/bytecodealliance/wasmtime-go/v3 v3.0.2 h1:3uZCA/BLTIu+DqCfguByNMJa2HVHpXvjfy0Dy7g6fuA= github.com/bytecodealliance/wasmtime-go/v3 v3.0.2/go.mod h1:RnUjnIXxEJcL6BgCvNyzCCRzZcxCgsZCi+RNlvYor5Q= +github.com/cenkalti/backoff/v3 v3.2.2 h1:cfUAAO3yvKMYKPrvhDuHSwQnhZNk/RMHKdZqKTxfm6M= +github.com/cenkalti/backoff/v3 v3.2.2/go.mod h1:cIeZDE3IrqwwJl6VUwCN6trj1oXrTS4rc0ij+ULvLYs= github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM= github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/chrismellard/docker-credential-acr-env v0.0.0-20230304212654-82a0ddb27589 h1:krfRl01rzPzxSxyLyrChD+U+MzsBXbm0OwYYB67uF+4= +github.com/chrismellard/docker-credential-acr-env v0.0.0-20230304212654-82a0ddb27589/go.mod h1:OuDyvmLnMCwa2ep4Jkm6nyA0ocJuZlGyk2gGseVzERM= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/clbanning/mxj/v2 v2.5.5/go.mod h1:hNiWqW14h+kc+MdF9C6/YoRfjEJoR3ou6tn/Qo+ve2s= +github.com/clbanning/mxj/v2 v2.7.0 h1:WA/La7UGCanFe5NpHF0Q3DNtnCsVoxbPKuyBNHWRyME= +github.com/clbanning/mxj/v2 v2.7.0/go.mod h1:hNiWqW14h+kc+MdF9C6/YoRfjEJoR3ou6tn/Qo+ve2s= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= +github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= +github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cockroachdb/apd/v3 v3.2.1 h1:U+8j7t0axsIgvQUqthuNm82HIrYXodOV2iWLWtEaIwg= github.com/cockroachdb/apd/v3 v3.2.1/go.mod h1:klXJcjp+FffLTHlhIG69tezTDvdP065naDsHzKhYSqc= +github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb h1:EDmT6Q9Zs+SbUoc7Ik9EfrFqcylYqgPZ9ANSbTAntnE= +github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb/go.mod h1:ZjrT6AXHbDs86ZSdt/osfBi5qfexBrKUdONk989Wnk4= +github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be h1:J5BL2kskAlV9ckgEsNQXscjIaLiOYiZ75d4e94E6dcQ= +github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be/go.mod h1:mk5IQ+Y0ZeO87b858TlA645sVcEcbiX6YqP98kt+7+w= +github.com/containerd/stargz-snapshotter/estargz v0.14.3 h1:OqlDCK3ZVUO6C3B/5FSkDwbkEETK84kQgEeFwDC+62k= +github.com/containerd/stargz-snapshotter/estargz v0.14.3/go.mod h1:KY//uOCIkSuNAHhJogcZtrNHdKrA99/FCCRjE3HD36o= +github.com/coreos/go-oidc/v3 v3.9.0 h1:0J/ogVOd4y8P0f0xUh8l9t07xRP/d8tccvjHl2dcsSo= +github.com/coreos/go-oidc/v3 v3.9.0/go.mod h1:rTKz2PYwftcrtoCzV5g5kvfJoWcm0Mk8AF8y1iAQro4= +github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cyberphone/json-canonicalization v0.0.0-20231011164504-785e29786b46 h1:2Dx4IHfC1yHWI12AxQDJM1QbRCDfk6M+blLzlZCXdrc= +github.com/cyberphone/json-canonicalization v0.0.0-20231011164504-785e29786b46/go.mod h1:uzvlm1mxhHkdfqitSA92i7Se+S9ksOn3a3qmv/kyOCw= +github.com/danieljoos/wincred v1.2.0 h1:ozqKHaLK0W/ii4KVbbvluM91W2H3Sh0BncbUNPS7jLE= +github.com/danieljoos/wincred v1.2.0/go.mod h1:FzQLLMKBFdvu+osBrnFODiv32YGwCfx0SkRa/eYHgec= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/depcheck-test/depcheck-test v0.0.0-20220607135614-199033aaa936 h1:foGzavPWwtoyBvjWyKJYDYsyzy+23iBV7NKTwdk+LRY= +github.com/depcheck-test/depcheck-test v0.0.0-20220607135614-199033aaa936/go.mod h1:ttKPnOepYt4LLzD+loXQ1rT6EmpyIYHro7TAJuIIlHo= github.com/dgraph-io/badger/v3 v3.2103.5 h1:ylPa6qzbjYRQMU6jokoj4wzcaweHylt//CH0AKt0akg= github.com/dgraph-io/badger/v3 v3.2103.5/go.mod h1:4MPiseMeDQ3FNCYwRbbcBOGJLf5jsE0PPFzRiKjtcdw= github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48 h1:fRzb/w+pyskVMQ+UbP35JkH8yB7MYb4q/qhBarqZE6g= github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA= +github.com/digitorus/pkcs7 v0.0.0-20230713084857-e76b763bdc49/go.mod h1:SKVExuS+vpu2l9IoOc0RwqE7NYnb0JlcFHFnEJkVDzc= +github.com/digitorus/pkcs7 v0.0.0-20230818184609-3a137a874352 h1:ge14PCmCvPjpMQMIAH7uKg0lrtNSOdpYsRXlwk3QbaE= +github.com/digitorus/pkcs7 v0.0.0-20230818184609-3a137a874352/go.mod h1:SKVExuS+vpu2l9IoOc0RwqE7NYnb0JlcFHFnEJkVDzc= +github.com/digitorus/timestamp v0.0.0-20231217203849-220c5c2851b7 h1:lxmTCgmHE1GUYL7P0MlNa00M67axePTq+9nBSGddR8I= +github.com/digitorus/timestamp v0.0.0-20231217203849-220c5c2851b7/go.mod h1:GvWntX9qiTlOud0WkQ6ewFm0LPy5JUR1Xo0Ngbd1w6Y= +github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi/U= +github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE= +github.com/docker/cli v24.0.7+incompatible h1:wa/nIwYFW7BVTGa7SWPVyyXU9lgORqUb1xfI36MSkFg= +github.com/docker/cli v24.0.7+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= +github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk= +github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= +github.com/docker/docker v24.0.7+incompatible h1:Wo6l37AuwP3JaMnZa226lzVXGA3F9Ig1seQen0cKYlM= +github.com/docker/docker v24.0.7+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker-credential-helpers v0.8.0 h1:YQFtbBQb4VrpoPxhFuzEBPQ9E16qz5SpHLS+uswaCp8= +github.com/docker/docker-credential-helpers v0.8.0/go.mod h1:UGFXcuoQ5TxPiB54nHOZ32AWRqQdECoh/Mg0AlEYb40= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= +github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= +github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/emicklei/proto v1.13.2 h1:z/etSFO3uyXeuEsVPzfl56WNgzcvIr42aQazXaQmFZY= github.com/emicklei/proto v1.13.2/go.mod h1:rn1FgRS/FANiZdD2djyH7TMA9jdRDcYQ9IEN9yvjX0A= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= @@ -48,64 +257,224 @@ github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8 github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/foxcpp/go-mockdns v1.1.0 h1:jI0rD8M0wuYAxL7r/ynTrCQQq0BVqfB99Vgk7DlmewI= github.com/foxcpp/go-mockdns v1.1.0/go.mod h1:IhLeSFGed3mJIAXPH2aiRQB+kqz7oqu8ld2qVbOu7Wk= +github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= +github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= +github.com/go-chi/chi v4.1.2+incompatible h1:fGFk2Gmi/YKXk0OmGfBh0WgmN3XB8lVnEyNz34tQRec= +github.com/go-chi/chi v4.1.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ= github.com/go-ini/ini v1.67.0 h1:z6ZrTEZqSWOTyH2FlglNbNgARyHG8oLW9gMELqKr06A= github.com/go-ini/ini v1.67.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= +github.com/go-jose/go-jose/v3 v3.0.1 h1:pWmKFVtt+Jl0vBZTIpz/eAKwsm6LkIxDVVbFHKkchhA= +github.com/go-jose/go-jose/v3 v3.0.1/go.mod h1:RNkWWRld676jZEYoV3+XK8L2ZnNSvIsxFMht0mSX+u8= +github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-openapi/analysis v0.22.0 h1:wQ/d07nf78HNj4u+KiSY0sT234IAyePPbMgpUjUJQR0= +github.com/go-openapi/analysis v0.22.0/go.mod h1:acDnkkCI2QxIo8sSIPgmp1wUlRohV7vfGtAIVae73b0= +github.com/go-openapi/errors v0.21.0 h1:FhChC/duCnfoLj1gZ0BgaBmzhJC2SL/sJr8a2vAobSY= +github.com/go-openapi/errors v0.21.0/go.mod h1:jxNTMUxRCKj65yb/okJGEtahVd7uvWnuWfj53bse4ho= +github.com/go-openapi/jsonpointer v0.20.2 h1:mQc3nmndL8ZBzStEo3JYF8wzmeWffDH4VbXz58sAx6Q= +github.com/go-openapi/jsonpointer v0.20.2/go.mod h1:bHen+N0u1KEO3YlmqOjTT9Adn1RfD91Ar825/PuiRVs= +github.com/go-openapi/jsonreference v0.20.4 h1:bKlDxQxQJgwpUSgOENiMPzCTBVuc7vTdXSSgNeAhojU= +github.com/go-openapi/jsonreference v0.20.4/go.mod h1:5pZJyJP2MnYCpoeoMAql78cCHauHj0V9Lhc506VOpw4= +github.com/go-openapi/loads v0.21.5 h1:jDzF4dSoHw6ZFADCGltDb2lE4F6De7aWSpe+IcsRzT0= +github.com/go-openapi/loads v0.21.5/go.mod h1:PxTsnFBoBe+z89riT+wYt3prmSBP6GDAQh2l9H1Flz8= +github.com/go-openapi/runtime v0.27.1 h1:ae53yaOoh+fx/X5Eaq8cRmavHgDma65XPZuvBqvJYto= +github.com/go-openapi/runtime v0.27.1/go.mod h1:fijeJEiEclyS8BRurYE1DE5TLb9/KZl6eAdbzjsrlLU= +github.com/go-openapi/spec v0.20.13 h1:XJDIN+dLH6vqXgafnl5SUIMnzaChQ6QTo0/UPMbkIaE= +github.com/go-openapi/spec v0.20.13/go.mod h1:8EOhTpBoFiask8rrgwbLC3zmJfz4zsCUueRuPM6GNkw= +github.com/go-openapi/strfmt v0.22.0 h1:Ew9PnEYc246TwrEspvBdDHS4BVKXy/AOVsfqGDgAcaI= +github.com/go-openapi/strfmt v0.22.0/go.mod h1:HzJ9kokGIju3/K6ap8jL+OlGAbjpSv27135Yr9OivU4= +github.com/go-openapi/swag v0.22.9 h1:XX2DssF+mQKM2DHsbgZK74y/zj4mo9I99+89xUmuZCE= +github.com/go-openapi/swag v0.22.9/go.mod h1:3/OXnFfnMAwBD099SwYRk7GD3xOrr1iL7d/XNLXVVwE= +github.com/go-openapi/validate v0.22.4 h1:5v3jmMyIPKTR8Lv9syBAIRxG6lY0RqeBPB1LKEijzk8= +github.com/go-openapi/validate v0.22.4/go.mod h1:qm6O8ZIcPVdSY5219468Jv7kBdGvkiZLPOmqnqTUZ2A= +github.com/go-piv/piv-go v1.11.0 h1:5vAaCdRTFSIW4PeqMbnsDlUZ7odMYWnHBDGdmtU/Zhg= +github.com/go-piv/piv-go v1.11.0/go.mod h1:NZ2zmjVkfFaL/CF8cVQ/pXdXtuj110zEKGdJM6fJZZM= github.com/go-quicktest/qt v1.101.0 h1:O1K29Txy5P2OK0dGo59b7b0LR6wKfIhttaAhHUyn7eI= github.com/go-quicktest/qt v1.101.0/go.mod h1:14Bz/f7NwaXPtdYEgzsx46kqSxVwTbzVZsDC26tQJow= -github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= -github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= +github.com/go-rod/rod v0.114.5 h1:1x6oqnslwFVuXJbJifgxspJUd3O4ntaGhRLHt+4Er9c= +github.com/go-rod/rod v0.114.5/go.mod h1:aiedSEFg5DwG/fnNbUOTPMTTWX3MRj6vIs/a684Mthw= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= +github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= +github.com/go-test/deep v1.1.0 h1:WOcxcdHcvdgThNXjw0t76K42FXTU7HpNQWHpA2HHNlg= +github.com/go-test/deep v1.1.0/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= +github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk= +github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= +github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= +github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= +github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/golang-jwt/jwt/v5 v5.2.0 h1:d/ix8ftRUorsN+5eMIlF4T6J8CAt9rch3My2winC1Jw= +github.com/golang-jwt/jwt/v5 v5.2.0/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/cel-go v0.20.1 h1:nDx9r8S3L4pE61eDdt8igGj8rf5kjYR3ILxWIpWNi84= github.com/google/cel-go v0.20.1/go.mod h1:kWcIzTsPX0zmQ+H3TirHstLLf9ep5QTsZBN9u4dOYLg= +github.com/google/certificate-transparency-go v1.1.7 h1:IASD+NtgSTJLPdzkthwvAG1ZVbF2WtFg4IvoA68XGSw= +github.com/google/certificate-transparency-go v1.1.7/go.mod h1:FSSBo8fyMVgqptbfF6j5p/XNdgQftAhSmXcIxV9iphE= github.com/google/flatbuffers v23.5.26+incompatible h1:M9dgRyhJemaM4Sw8+66GHBu8ioaQmyPLg1b8VwK5WJg= github.com/google/flatbuffers v23.5.26+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= +github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 h1:0VpGH+cDhbDtdcweoyCVsF3fhN8kejK6rFe/2FFX2nU= +github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49/go.mod h1:BkkQ4L1KS1xMt2aWSPStnn55ChGC0DPOn2FQYj+f25M= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-containerregistry v0.19.0 h1:uIsMRBV7m/HDkDxE/nXMnv1q+lOOSPlQ/ywc5JbB8Ic= +github.com/google/go-containerregistry v0.19.0/go.mod h1:u0qB2l7mvtWVR5kNcbFIhFY1hLbf8eeGapA+vbFDCtQ= +github.com/google/go-github/v55 v55.0.0 h1:4pp/1tNMB9X/LuAhs5i0KQAE40NmiR/y6prLNb9x9cg= +github.com/google/go-github/v55 v55.0.0/go.mod h1:JLahOTA1DnXzhxEymmFF5PP2tSS9JVNj68mSZNDwskA= github.com/google/go-github/v57 v57.0.0 h1:L+Y3UPTY8ALM8x+TV0lg+IEBI+upibemtBD8Q9u7zHs= github.com/google/go-github/v57 v57.0.0/go.mod h1:s0omdnye0hvK/ecLvpsGfJMiRt85PimQh4oygmLIxHw= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= +github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20231023181126-ff6d637d2a7b h1:RMpPgZTSApbPf7xaVel+QkoGPRLFLrwFO89uDUHEGf0= +github.com/google/pprof v0.0.0-20231023181126-ff6d637d2a7b/go.mod h1:czg5+yv1E0ZGTi6S6vVK1mke0fV+FaUhNGcd6VRS9Ik= +github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= +github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= +github.com/google/tink/go v1.7.0 h1:6Eox8zONGebBFcCBqkVmt60LaWZa6xg1cl/DwAh/J1w= +github.com/google/tink/go v1.7.0/go.mod h1:GAUOd+QE3pgj9q8VKIGTCP33c/B7eb4NhxLcgTJZStM= +github.com/google/trillian v1.5.3 h1:3ioA5p09qz+U9/t2riklZtaQdZclaStp0/eQNfewNRg= +github.com/google/trillian v1.5.3/go.mod h1:p4tcg7eBr7aT6DxrAoILpc3uXNfcuAvZSnQKonVg+Eo= +github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= +github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= +github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= +github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= +github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 h1:RtRsiaGvWxcwd8y3BiRZxsylPT8hLWZ5SPcfI+3IDNk= github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0/go.mod h1:TzP6duP4Py2pHLVPPQp42aoYI92+PCrVotyR5e8Vqlk= +github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= +github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= +github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= +github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= +github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= +github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= +github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/hashicorp/go-retryablehttp v0.7.5 h1:bJj+Pj19UZMIweq/iie+1u5YCdGrnxCT9yvm0e+Nd5M= +github.com/hashicorp/go-retryablehttp v0.7.5/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8= +github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= +github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= +github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7 h1:UpiO20jno/eV1eVZcxqWnUohyKRe1g8FPV/xH1s/2qs= +github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7/go.mod h1:QmrqtbKuxxSWTN3ETMPuB+VtEiBJ/A9XhoYGv8E1uD8= +github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 h1:kes8mmyCpxJsI7FTwtzRqEy9CdjCtrXrXGuOpxEA7Ts= +github.com/hashicorp/go-secure-stdlib/strutil v0.1.2/go.mod h1:Gou2R9+il93BqX25LAKCLuM+y9U2T4hlwvT1yprcna4= +github.com/hashicorp/go-sockaddr v1.0.5 h1:dvk7TIXCZpmfOlM+9mlcrWmWjw/wlKT+VDq2wMvfPJU= +github.com/hashicorp/go-sockaddr v1.0.5/go.mod h1:uoUUmtwU7n9Dv3O4SNLeFvg0SxQ3lyjsj6+CCykpaxI= +github.com/hashicorp/hcl v1.0.1-vault-5 h1:kI3hhbbyzr4dldA8UdTb7ZlVVlI2DACdCfz31RPDgJM= +github.com/hashicorp/hcl v1.0.1-vault-5/go.mod h1:XYhtn6ijBSAj6n4YqAaf7RBPS4I06AItNorpy+MoQNM= github.com/hashicorp/hcl/v2 v2.20.1 h1:M6hgdyz7HYt1UN9e61j+qKJBqR3orTWbI1HKBJEdxtc= github.com/hashicorp/hcl/v2 v2.20.1/go.mod h1:TZDqQ4kNKCbh1iJp99FdPiUaVDDUPivbqxZulxDYqL4= +github.com/hashicorp/vault/api v1.10.0 h1:/US7sIjWN6Imp4o/Rj1Ce2Nr5bki/AXi9vAW3p2tOJQ= +github.com/hashicorp/vault/api v1.10.0/go.mod h1:jo5Y/ET+hNyz+JnKDt8XLAdKs+AM0G5W0Vp1IrFI8N8= +github.com/howeyc/gopass v0.0.0-20210920133722-c8aef6fb66ef h1:A9HsByNhogrvm9cWb28sjiS3i7tcKCkflWFEkHfuAgM= +github.com/howeyc/gopass v0.0.0-20210920133722-c8aef6fb66ef/go.mod h1:lADxMC39cJJqL93Duh1xhAs4I2Zs8mKS89XWXFGp9cs= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= +github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= +github.com/in-toto/in-toto-golang v0.9.0 h1:tHny7ac4KgtsfrG6ybU8gVOZux2H8jN05AXJ9EBM1XU= +github.com/in-toto/in-toto-golang v0.9.0/go.mod h1:xsBVrVsHNsB61++S6Dy2vWosKhuA3lUTQd+eF9HdeMo= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jedib0t/go-pretty/v6 v6.5.6 h1:nKXVLqPfAwY7sWcYXdNZZZ2fjqDpAtj9UeWupgfUxSg= github.com/jedib0t/go-pretty/v6 v6.5.6/go.mod h1:5LQIxa52oJ/DlDSLv0HEkWOFMDGoWkJb9ss5KqPpJBg= -github.com/klauspost/compress v1.17.1 h1:NE3C767s2ak2bweCZo3+rdP4U/HoyVXLv/X9f2gPS5g= -github.com/klauspost/compress v1.17.1/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/jedisct1/go-minisign v0.0.0-20230811132847-661be99b8267 h1:TMtDYDHKYY15rFihtRfck/bfFqNfvcabqvXAFQfAUpY= +github.com/jedisct1/go-minisign v0.0.0-20230811132847-661be99b8267/go.mod h1:h1nSAbGFqGVzn6Jyl1R/iCcBUHN4g+gW1u9CoBTrb9E= +github.com/jellydator/ttlcache/v3 v3.1.1 h1:RCgYJqo3jgvhl+fEWvjNW8thxGWsgxi+TPhRir1Y9y8= +github.com/jellydator/ttlcache/v3 v3.1.1/go.mod h1:hi7MGFdMAwZna5n2tuvh63DvFLzVKySzCVW6+0gA2n4= +github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/jmhodges/clock v1.2.0 h1:eq4kys+NI0PLngzaHEe7AmPT90XMGIEySD1JfV1PDIs= +github.com/jmhodges/clock v1.2.0/go.mod h1:qKjhA7x7u/lQpPB1XAqX1b1lCI/w3/fNuYpI/ZjLynI= +github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= +github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= +github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/klauspost/compress v1.17.2 h1:RlWWUY/Dr4fL8qk9YG7DTZ7PDgME2V4csBXA8L/ixi4= +github.com/klauspost/compress v1.17.2/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= -github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/letsencrypt/boulder v0.0.0-20231026200631-000cd05d5491 h1:WGrKdjHtWC67RX96eTkYD2f53NDHhrq/7robWTAfk4s= +github.com/letsencrypt/boulder v0.0.0-20231026200631-000cd05d5491/go.mod h1:o158RFmdEbYyIZmXAbrvmJWesbyxlLKee6X64VPVuOc= +github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= +github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= +github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= +github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= @@ -115,14 +484,66 @@ github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZ github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/miekg/dns v1.1.57 h1:Jzi7ApEIzwEPLHWRcafCN9LZSBbqQpxjt/wpgvg7wcM= github.com/miekg/dns v1.1.57/go.mod h1:uqRjCRUuEAA6qsOiJvDd+CFo/vW+y5WR6SNmHE55hZk= +github.com/miekg/pkcs11 v1.0.3-0.20190429190417-a667d056470f/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= +github.com/miekg/pkcs11 v1.1.1 h1:Ugu9pdy6vAYku5DEpVWVFPYnzV+bxB+iRdbuFSu7TvU= +github.com/miekg/pkcs11 v1.1.1/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= +github.com/mozillazg/docker-credential-acr-helper v0.3.0 h1:DVWFZ3/O8BP6Ue3iS/Olw+G07u1hCq1EOVCDZZjCIBI= +github.com/mozillazg/docker-credential-acr-helper v0.3.0/go.mod h1:cZlu3tof523ujmLuiNUb6JsjtHcNA70u1jitrrdnuyA= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/nozzle/throttler v0.0.0-20180817012639-2ea982251481 h1:Up6+btDp321ZG5/zdSLo48H9Iaq0UQGthrhWC6pCxzE= +github.com/nozzle/throttler v0.0.0-20180817012639-2ea982251481/go.mod h1:yKZQO8QE2bHlgozqWDiRVqTFlLQSj30K/6SAK8EeYFw= +github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= +github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/oleiade/reflections v1.0.1 h1:D1XO3LVEYroYskEsoSiGItp9RUxG6jWnCVvrqH0HHQM= +github.com/oleiade/reflections v1.0.1/go.mod h1:rdFxbxq4QXVZWj0F+e9jqjDkc7dbp97vkRixKo2JR60= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= +github.com/onsi/ginkgo/v2 v2.9.4 h1:xR7vG4IXt5RWx6FfIjyAtsoMAtnc3C/rFXBBd2AjZwE= +github.com/onsi/ginkgo/v2 v2.9.4/go.mod h1:gCQYp2Q+kSoIj7ykSVb9nskRSsR6PUj4AiLywzIhbKM= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= +github.com/onsi/gomega v1.27.6 h1:ENqfyGeS5AX/rlXDd/ETokDz93u0YufY1Pgxuy/PvWE= +github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg= github.com/open-policy-agent/opa v0.63.0 h1:ztNNste1v8kH0/vJMJNquE45lRvqwrM5mY9Ctr9xIXw= github.com/open-policy-agent/opa v0.63.0/go.mod h1:9VQPqEfoB2N//AToTxzZ1pVTVPUoF2Mhd64szzjWPpU= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM= +github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= +github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= +github.com/pborman/uuid v1.2.1 h1:+ZZIw58t/ozdjRaXh/3awHfmWRbzYxJoAdNJxe/3pvw= +github.com/pborman/uuid v1.2.1/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= +github.com/pelletier/go-toml/v2 v2.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4= +github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= +github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= +github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -130,6 +551,7 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_golang v1.19.0 h1:ygXvpU1AoN1MhdzckN+PyD9QJOSD4x7kmXYlnfbA6JU= github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdURP+DABIEIjnmDdp+k= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= github.com/prometheus/common v0.48.0 h1:QO8U2CdOzSn1BBsmXJXduaaW+dY/5QLjfB8svtSzKKE= @@ -145,42 +567,150 @@ github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/go-glob v1.0.0 h1:iQh3xXAumdQ+4Ufa5b25cRpC5TYKlno6hsv6Cb3pkBk= +github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= +github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= +github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= +github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= +github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= +github.com/sassoftware/relic v7.2.1+incompatible h1:Pwyh1F3I0r4clFJXkSI8bOyJINGqpgjJU3DYAZeI05A= +github.com/sassoftware/relic v7.2.1+incompatible/go.mod h1:CWfAxv73/iLZ17rbyhIEq3K9hs5w6FpNMdUT//qR+zk= +github.com/sassoftware/relic/v7 v7.6.1 h1:O5s8ewCgq5QYNpv45dK4u6IpBmDM9RIcsbf/G1uXepQ= +github.com/sassoftware/relic/v7 v7.6.1/go.mod h1:NxwtWxWxlUa9as2qZi635Ye6bBT/tGnMALLq7dSfOOU= +github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA= +github.com/secure-systems-lab/go-securesystemslib v0.8.0/go.mod h1:UH2VZVuJfCYR8WgMlCU1uFsOUU+KeyrTWcSS73NBOzU= +github.com/segmentio/ksuid v1.0.4 h1:sBo2BdShXjmcugAMwjugoGUdUV0pcxY5mW4xKRn3v4c= +github.com/segmentio/ksuid v1.0.4/go.mod h1:/XUiZBD3kVx5SmUOl55voK5yeAbBNNIed+2O73XgrPE= +github.com/shibumi/go-pathspec v1.3.0 h1:QUyMZhFo0Md5B8zV8x2tesohbb5kfbpTi9rBnKh5dkI= +github.com/shibumi/go-pathspec v1.3.0/go.mod h1:Xutfslp817l2I1cZvgcfeMQJG5QnU2lh5tVaaMCl3jE= +github.com/sigstore/cosign/v2 v2.2.3 h1:WX7yawI+EXu9h7S5bZsfYCbB9XW6Jc43ctKy/NoOSiA= +github.com/sigstore/cosign/v2 v2.2.3/go.mod h1:WpMn4MBt0cI23GdHsePwO4NxhX1FOz1ITGB3ALUjFaI= +github.com/sigstore/fulcio v1.4.3 h1:9JcUCZjjVhRF9fmhVuz6i1RyhCc/EGCD7MOl+iqCJLQ= +github.com/sigstore/fulcio v1.4.3/go.mod h1:BQPWo7cfxmJwgaHlphUHUpFkp5+YxeJes82oo39m5og= +github.com/sigstore/rekor v1.3.4 h1:RGIia1iOZU7fOiiP2UY/WFYhhp50S5aUm7YrM8aiA6E= +github.com/sigstore/rekor v1.3.4/go.mod h1:1GubPVO2yO+K0m0wt/3SHFqnilr/hWbsjSOe7Vzxrlg= +github.com/sigstore/sigstore v1.8.1 h1:mAVposMb14oplk2h/bayPmIVdzbq2IhCgy4g6R0ZSjo= +github.com/sigstore/sigstore v1.8.1/go.mod h1:02SL1158BSj15bZyOFz7m+/nJzLZfFd9A8ab3Kz7w/E= +github.com/sigstore/sigstore/pkg/signature/kms/aws v1.8.1 h1:rEDdUefulkIQaMJyzLwtgPDLNXBIltBABiFYfb0YmgQ= +github.com/sigstore/sigstore/pkg/signature/kms/aws v1.8.1/go.mod h1:RCdYCc1IxCYWzh2IdzdA6Yf7JIY0cMRqH08fpQYechw= +github.com/sigstore/sigstore/pkg/signature/kms/azure v1.8.1 h1:DvRWG99QGWZC5mp42SEde2Xke/Q384Idnj2da7yB+Mk= +github.com/sigstore/sigstore/pkg/signature/kms/azure v1.8.1/go.mod h1:s13mo3a0UCQS3+PAUUZfvKe48sMDMsHk2GE1b2YfPcU= +github.com/sigstore/sigstore/pkg/signature/kms/gcp v1.8.1 h1:lwdRsJv1UbBemuk7w5YfXAQilQxMoFevrzamdPbG0wY= +github.com/sigstore/sigstore/pkg/signature/kms/gcp v1.8.1/go.mod h1:2OaSQ80EcdyVRSQ3T4d1lsc6Scopblsiq8U2AEk5K1A= +github.com/sigstore/sigstore/pkg/signature/kms/hashivault v1.8.1 h1:9Ki0qudKpc1FQdef7xHO2bkLyTuw+qNUpWRzjBEmF4c= +github.com/sigstore/sigstore/pkg/signature/kms/hashivault v1.8.1/go.mod h1:nhIgyu4YwwNgalIwTGsoAzam16jjAn3ADRSWKbWPwGI= +github.com/sigstore/timestamp-authority v1.2.1 h1:j9RmqSAdvKgSofeltPO4x7d+1M3AXaROBzUJ+AA7L5Q= +github.com/sigstore/timestamp-authority v1.2.1/go.mod h1:Ce+vWWEf0QaKLY2u6mpwEJbmYXEVeOfUk4fQ69kE6ck= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 h1:JIAuq3EEf9cgbU6AtGPK4CTG3Zf6CKMNqf0MHTggAUA= +github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog= +github.com/smallstep/assert v0.0.0-20200723003110-82e2b9b3b262 h1:unQFBIznI+VYD1/1fApl1A+9VcBk+9dcqGfnePY87LY= +github.com/smallstep/assert v0.0.0-20200723003110-82e2b9b3b262/go.mod h1:MyOHs9Po2fbM1LHej6sBUT8ozbxmMOFG+E+rx/GSGuc= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/assertions v1.1.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= +github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= +github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= +github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= +github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= +github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= +github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= +github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= +github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= +github.com/spiffe/go-spiffe/v2 v2.1.7 h1:VUkM1yIyg/x8X7u1uXqSRVRCdMdfRIEdFBzpqoeASGk= +github.com/spiffe/go-spiffe/v2 v2.1.7/go.mod h1:QJDGdhXllxjxvd5B+2XnhhXB/+rC8gr+lNrtOryiWeE= github.com/stoewer/go-strcase v1.3.0 h1:g0eASXYtp+yvN9fK8sH94oCIk0fau9uV1/ZdJ0AVEzs= github.com/stoewer/go-strcase v1.3.0/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= +github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= github.com/tchap/go-patricia/v2 v2.3.1 h1:6rQp39lgIYZ+MHmdEq4xzuk1t7OdC35z/xm0BGhTkes= github.com/tchap/go-patricia/v2 v2.3.1/go.mod h1:VZRHKAb53DLaG+nA9EaYYiaEx6YztwDlLElMsnSHD4k= +github.com/thales-e-security/pool v0.0.2 h1:RAPs4q2EbWsTit6tpzuvTFlgFRJ3S8Evf5gtvVDbmPg= +github.com/thales-e-security/pool v0.0.2/go.mod h1:qtpMm2+thHtqhLzTwgDBj/OuNnMpupY8mv0Phz0gjhU= +github.com/theupdateframework/go-tuf v0.7.0 h1:CqbQFrWo1ae3/I0UCblSbczevCCbS31Qvs5LdxRWqRI= +github.com/theupdateframework/go-tuf v0.7.0/go.mod h1:uEB7WSY+7ZIugK6R1hiBMBjQftaFzn7ZCDJcp1tCUug= +github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399 h1:e/5i7d4oYZ+C1wj2THlRK+oAhjeS/TRQwMfkIuet3w0= +github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399/go.mod h1:LdwHTNJT99C5fTAzDz0ud328OgXz+gierycbcIx2fRs= +github.com/tjfoc/gmsm v1.3.2/go.mod h1:HaUcFuY0auTiaHB9MHFGCPx5IaLhTUd2atbCFBQXn9w= +github.com/tjfoc/gmsm v1.4.1 h1:aMe1GlZb+0bLjn+cKTPEvvn9oUEBlJitaZiiBwsbgho= +github.com/tjfoc/gmsm v1.4.1/go.mod h1:j4INPkHWMrhJb38G+J6W4Tw0AbuN8Thu3PbdVYhVcTE= +github.com/transparency-dev/merkle v0.0.2 h1:Q9nBoQcZcgPamMkGn7ghV8XiTZ/kRxn1yCG81+twTK4= +github.com/transparency-dev/merkle v0.0.2/go.mod h1:pqSy+OXefQ1EDUVmAJ8MUhHB9TXGuzVAT58PqBoHz1A= +github.com/vbatts/tar-split v0.11.5 h1:3bHCTIheBm1qFTcgh9oPu+nNBtX+XJIupG/vacinCts= +github.com/vbatts/tar-split v0.11.5/go.mod h1:yZbwRsSeGjusneWgA781EKej9HF8vme8okylkAeNKLk= +github.com/xanzy/go-gitlab v0.96.0 h1:LGkZ+wSNMRtHIBaYE4Hq3dZVjprwHv3Y1+rhKU3WETs= +github.com/xanzy/go-gitlab v0.96.0/go.mod h1:ETg8tcj4OhrB84UEgeE8dSuV/0h4BBL1uOV/qK0vlyI= +github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= +github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4= +github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/yashtewari/glob-intersection v0.2.0 h1:8iuHdN88yYuCzCdjt0gDe+6bAhUwBeEWqThExu54RFg= github.com/yashtewari/glob-intersection v0.2.0/go.mod h1:LK7pIC3piUjovexikBbJ26Yml7g8xa5bsjfx2v1fwok= +github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= +github.com/ysmood/fetchup v0.2.3 h1:ulX+SonA0Vma5zUFXtv52Kzip/xe7aj4vqT5AJwQ+ZQ= +github.com/ysmood/fetchup v0.2.3/go.mod h1:xhibcRKziSvol0H1/pj33dnKrYyI2ebIvz5cOOkYGns= +github.com/ysmood/goob v0.4.0 h1:HsxXhyLBeGzWXnqVKtmT9qM7EuVs/XOgkX7T6r1o1AQ= +github.com/ysmood/goob v0.4.0/go.mod h1:u6yx7ZhS4Exf2MwciFr6nIM8knHQIE22lFpWHnfql18= +github.com/ysmood/got v0.34.1 h1:IrV2uWLs45VXNvZqhJ6g2nIhY+pgIG1CUoOcqfXFl1s= +github.com/ysmood/got v0.34.1/go.mod h1:yddyjq/PmAf08RMLSwDjPyCvHvYed+WjHnQxpH851LM= +github.com/ysmood/gson v0.7.3 h1:QFkWbTH8MxyUTKPkVWAENJhxqdBa4lYTQWqZCiLG6kE= +github.com/ysmood/gson v0.7.3/go.mod h1:3Kzs5zDl21g5F/BlLTNcuAGAYLKt2lV5G8D1zF3RNmg= +github.com/ysmood/leakless v0.8.0 h1:BzLrVoiwxikpgEQR0Lk8NyBN5Cit2b1z+u0mgL4ZJak= +github.com/ysmood/leakless v0.8.0/go.mod h1:R8iAXPRaG97QJwqxs74RdwzcRHT1SWCGTNqY8q0JvMQ= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.30/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/zalando/go-keyring v0.2.2 h1:f0xmpYiSrHtSNAVgwip93Cg8tuF45HJM6rHq/A5RI/4= +github.com/zalando/go-keyring v0.2.2/go.mod h1:sI3evg9Wvpw3+n4SqplGSJUMwtDeROfD4nsFz4z9PG0= github.com/zclconf/go-cty v1.14.4 h1:uXXczd9QDGsgu0i/QFR/hzI5NYCHLf6NQw/atrbnhq8= github.com/zclconf/go-cty v1.14.4/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b h1:FosyBZYxY34Wul7O/MSKey3txpPYyCqVO5ZyceuQJEI= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= +github.com/zeebo/errs v1.3.0 h1:hmiaKqgYZzcVgRL1Vkc1Mn2914BbzB0IBxs+ebeutGs= +github.com/zeebo/errs v1.3.0/go.mod h1:sgbWHsvVuTPHcqJJGQ1WhI5KbWlHYz+2+2C/LSEtCw4= +go.mongodb.org/mongo-driver v1.13.1 h1:YIc7HTYsKndGK4RFzJ3covLz1byri52x0IoMB0Pt/vk= +go.mongodb.org/mongo-driver v1.13.1/go.mod h1:wcDf1JBCXy2mOW0bWHwO/IOYqdca1MPCwDtFu/Z9+eo= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 h1:aFJWCqJMNjENlcleuuOkGAPH82y0yULBScfXcIEdS24= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1/go.mod h1:sEGXWArGqc3tVa+ekntsN65DmVbVeW+7lTKTjZF3/Fo= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 h1:UNQQKPfTDe1J81ViolILjTKPr9WetKW6uei2hFgJmFs= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0/go.mod h1:r9vWsPS/3AQItv3OSlEJ/E4mbrhUbbw18meOjArPtKQ= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 h1:sv9kVfal0MK0wBMCOGr+HeJm9v803BkJxGrk2au7j08= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0/go.mod h1:SK2UL73Zy1quvRPonmOmRDiWk1KBV3LyIeeIxcEApWw= go.opentelemetry.io/otel v1.23.1 h1:Za4UzOqJYS+MUczKI320AtqZHZb7EqxO00jAHE0jmQY= go.opentelemetry.io/otel v1.23.1/go.mod h1:Td0134eafDLcTS4y+zQ26GE8u3dEuRBiBCTUIRHaikA= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 h1:cl5P5/GIfFh4t6xyruOgJP5QiA1pw4fYYdv6nc6CBWw= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0/go.mod h1:zgBdWWAu7oEEMC06MMKc5NLbA/1YDXV1sMpSqEeLQLg= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0 h1:tIqheXEFWAZ7O8A7m+J0aPTmpJN3YQ7qetUAdkkkKpk= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0/go.mod h1:nUeKExfxAQVbiVFn32YXpXZZHZ61Cc3s3Rn1pDBGAb0= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.22.0 h1:9M3+rhx7kZCIQQhQRYaZCdNu1V73tm4TvXs2ntl98C4= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.22.0/go.mod h1:noq80iT8rrHP1SfybmPiRGc9dc5M8RPmGvtwo7Oo7tc= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.22.0 h1:H2JFgRcGiyHg7H7bwcwaQJYrNFqCqrbTQ8K4p1OvDu8= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.22.0/go.mod h1:WfCWp1bGoYK8MeULtI15MmQVczfR+bFkk0DF3h06QmQ= go.opentelemetry.io/otel/metric v1.23.1 h1:PQJmqJ9u2QaJLBOELl1cxIdPcpbwzbkjfEyelTl2rlo= go.opentelemetry.io/otel/metric v1.23.1/go.mod h1:mpG2QPlAfnK8yNhNJAxDZruU9Y1/HubbC+KyH8FaCWI= go.opentelemetry.io/otel/sdk v1.23.1 h1:O7JmZw0h76if63LQdsBMKQDWNb5oEcOThG9IrxscV+E= @@ -189,68 +719,238 @@ go.opentelemetry.io/otel/trace v1.23.1 h1:4LrmmEd8AU2rFvU1zegmvqW7+kWarxtNOPyeL6 go.opentelemetry.io/otel/trace v1.23.1/go.mod h1:4IpnpJFwr1mo/6HL8XIPJaE9y0+u1KcVmuW7dwFSVrI= go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I= go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM= +go.step.sm/crypto v0.42.1 h1:OmwHm3GJO8S4VGWL3k4+I+Q4P/F2s+j8msvTyGnh1Vg= +go.step.sm/crypto v0.42.1/go.mod h1:yNcTLFQBnYCA75fC5bklBoTAT7y0dRZsB1TkinB8JMs= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo= +go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191219195013-becbf705a915/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201012173705-84dcc777aaee/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= -golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= +golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= +golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= +golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= +golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= +golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20231108232855-2478ac86f678 h1:mchzmB1XO2pMaKFRqk/+MV3mgGG96aqaPXaMifQU47w= +golang.org/x/exp v0.0.0-20231108232855-2478ac86f678/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.16.0 h1:QX4fJ0Rr5cPQCF7O9lh9Se4pmwfwskqZfq5moyldzic= golang.org/x/mod v0.16.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ= golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc= golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200509044756-6aff5f38e54f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= +golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8= +golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= +golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200509030707-2212a7e161a5/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.19.0 h1:tfGCXNR1OsFG+sVdLAitlpjAvD/I6dHDKnYrpEZUHkw= golang.org/x/tools v0.19.0/go.mod h1:qoJWxmGSIBmAeriMx19ogtrEPrGtDbPK634QFIcLAhc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/api v0.159.0 h1:fVTj+7HHiUYz4JEZCHHoRIeQX7h5FMzrA2RF/DzDdbs= +google.golang.org/api v0.159.0/go.mod h1:0mu0TpK33qnydLvWqbImq2b1eQ5FHRSDCBzAxX9ZHyw= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe h1:USL2DhxfgRchafRvt/wYyyQNzwgL7ZiURcozOE/Pkvo= +google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:cc8bqMqtv9gMOr0zHg2Vzff5ULhhL2IXP4sbcn32Dro= google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 h1:x9PwdEgd11LgK+orcck69WVRo7DezSO4VUMPI4xpc8A= google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014/go.mod h1:rbHMSEDyoYX62nRVLOCc4Qt1HbsdytAYoVwgjiOhF3I= google.golang.org/genproto/googleapis/rpc v0.0.0-20240205150955-31a09d347014 h1:FSL3lRCkhaPFxqi0s9o+V4UI2WTzAVOvkgbd4kVV4Wg= google.golang.org/genproto/googleapis/rpc v0.0.0-20240205150955-31a09d347014/go.mod h1:SaPjaZGWb0lPqs6Ittu0spdfrOArqji4ZdeP5IC/9N4= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk= google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/go-jose/go-jose.v2 v2.6.1 h1:qEzJlIDmG9q5VO0M/o8tGS65QMHMS1w01TQJB1VPJ4U= +gopkg.in/go-jose/go-jose.v2 v2.6.1/go.mod h1:zzZDPkNNw/c9IE7Z9jr11mBZQhKQTMzoEEIoEdZlFBI= +gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= +gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= +gopkg.in/ini.v1 v1.56.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= +gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= +gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +k8s.io/api v0.28.3 h1:Gj1HtbSdB4P08C8rs9AR94MfSGpRhJgsS+GF9V26xMM= +k8s.io/api v0.28.3/go.mod h1:MRCV/jr1dW87/qJnZ57U5Pak65LGmQVkKTzf3AtKFHc= +k8s.io/apimachinery v0.28.3 h1:B1wYx8txOaCQG0HmYF6nbpU8dg6HvA06x5tEffvOe7A= +k8s.io/apimachinery v0.28.3/go.mod h1:uQTKmIqs+rAYaq+DFaoD2X7pcjLOqbQX2AOiO0nIpb8= +k8s.io/client-go v0.28.3 h1:2OqNb72ZuTZPKCl+4gTKvqao0AMOl9f3o2ijbAj3LI4= +k8s.io/client-go v0.28.3/go.mod h1:LTykbBp9gsA7SwqirlCXBWtK0guzfhpoW4qSm7i9dxo= +k8s.io/klog/v2 v2.100.1 h1:7WCHKK6K8fNhTqfBhISHQ97KrnJNFZMcQvKp7gP/tmg= +k8s.io/klog/v2 v2.100.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= +k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 h1:aVUu9fTY98ivBPKR9Y5w/AuzbMm96cd3YHRTU83I780= +k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00/go.mod h1:AsvuZPBlUDVuCdzJ87iajxtXuR9oktsTctW/R9wwouA= +k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI= +k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= +sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= +sigs.k8s.io/release-utils v0.7.7 h1:JKDOvhCk6zW8ipEOkpTGDH/mW3TI+XqtPp16aaQ79FU= +sigs.k8s.io/release-utils v0.7.7/go.mod h1:iU7DGVNi3umZJ8q6aHyUFzsDUIaYwNnNKGHo3YE5E3s= +sigs.k8s.io/structured-merge-diff/v4 v4.3.0 h1:UZbZAZfX0wV2zr7YZorDz6GXROfDFj6LvqCRm4VUVKk= +sigs.k8s.io/structured-merge-diff/v4 v4.3.0/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= +software.sslmate.com/src/go-pkcs12 v0.2.0 h1:nlFkj7bTysH6VkC4fGphtjXRbezREPgrHuJG20hBGPE= +software.sslmate.com/src/go-pkcs12 v0.2.0/go.mod h1:23rNcYsMabIc1otwLpTkCCPwUq6kQsTyowttG/as0kQ= diff --git a/main.go b/main.go new file mode 100644 index 0000000..837ac2a --- /dev/null +++ b/main.go @@ -0,0 +1,9 @@ +package main + +import ( + "github.com/intelops/genval/cmd" +) + +func main() { + cmd.Execute() +} diff --git a/pkg/cuecore/cueUtils.go b/pkg/cuecore/cueUtils.go new file mode 100644 index 0000000..97e679f --- /dev/null +++ b/pkg/cuecore/cueUtils.go @@ -0,0 +1,108 @@ +package cuecore + +import ( + "fmt" + "os" + "path/filepath" + "strings" + + "github.com/google/go-containerregistry/pkg/authn" + "github.com/google/go-containerregistry/pkg/crane" + "github.com/google/go-containerregistry/pkg/name" + "github.com/joho/godotenv" +) + +// ParseTools matches the tool provided is present in the .env file and returns +// the tool, the associated OCI URL and any error encountered +func ParseTools(reqTools string) (string, string, error) { + mod := strings.Replace(reqTools, ":", "_", -1) + umod := strings.ToUpper(mod) + + em, err := godotenv.Read("tools.env") + if err != nil { + return "", "", fmt.Errorf("error reading env: %v", err) + } + + var tool, url string + + for k, v := range em { + + if k == umod { + tool = k + url = v + break + } + if tool == "" { + return "", "", fmt.Errorf("no matching tool found for %s", reqTools) + } + if url == "" { + return "", "", fmt.Errorf("no matching URL found for %s", reqTools) + } + } + + return tool, url, nil +} + +// CheckTagAndPullArchive checks for provided tag to be available in the remote, if available pulls the archive +// and stores it in the specified directory and retuens an error if encountered. +func CheckTagAndPullArchive(url, tool string, archivePath *os.File) error { + ref, err := name.ParseReference(url) + if err != nil { + return fmt.Errorf("error parsing url %s: %v", url, err) + } + + parts := strings.Split(ref.String(), ":") + ociref := parts[0] + desiredTag := parts[1] + + opts := crane.WithAuthFromKeychain((authn.DefaultKeychain)) + + tags, err := crane.ListTags(ociref, opts) + if err != nil { + return fmt.Errorf("error fetching tags from remote %s: %v ", ociref, err) + } + + // Check if the desired tag is present in the remote tags + found := false + for _, tag := range tags { + if tag == desiredTag { + found = true + break + } + } + + if !found { + return fmt.Errorf("provided version '%s' of tool not found in remote: %v", desiredTag, err) + } + + // Pull the image from the repository + img, err := crane.Pull(ref.String()) + if err != nil { + return fmt.Errorf("error pulling artifact from %s: %v", ref.String(), err) + } + + // Export the image to the tarball file + if err := crane.Export(img, archivePath); err != nil { + return fmt.Errorf("error exporting artifact") + } + return nil +} + +func CreatePath(tool, subDir string) (string, error) { + path := filepath.Join(tool, subDir) + dir := filepath.Dir(path) + if _, err := os.Stat(dir); os.IsNotExist(err) { + err := os.MkdirAll(dir, 0o755) // Create parent directories if they don't exist + if err != nil { + return "", fmt.Errorf("error creating archive workspace: %v", err) + } + } + + if _, err := os.Stat(path); os.IsNotExist(err) { + err := os.Mkdir(path, 0o755) + if err != nil { + return "", fmt.Errorf("error initializing archive workspace: %v", err) + } + } + return path, nil +} diff --git a/pkg/cuecore/cuecore.go b/pkg/cuecore/cuecore.go index 7940348..c2c38e6 100644 --- a/pkg/cuecore/cuecore.go +++ b/pkg/cuecore/cuecore.go @@ -1,14 +1,21 @@ package cuecore import ( + "errors" "fmt" + "io/fs" + "net/http" "net/url" "os" + "path/filepath" + "regexp" + "strings" "cuelang.org/go/cue" "cuelang.org/go/cue/load" "github.com/intelops/genval/pkg/utils" log "github.com/sirupsen/logrus" + "golang.org/x/net/html" "gopkg.in/yaml.v3" ) @@ -66,3 +73,184 @@ func ReadAndCompileData(dataPath string) (map[string]cue.Value, error) { // Handle local file or directory return utils.CompileFromLocal(dataPath) } + +// GetDefinitions reads the files names of the Cue definitions from the provided path and returns a []filenames and an error +func GetDefinitions(dirPath string) ([]string, error) { + var filenames []string + var err error + + if !utils.IsURL(dirPath) { + entries, err := os.ReadDir(dirPath) + if err != nil { + return nil, err + } + // Skip directories + for _, entry := range entries { + if entry.IsDir() { + continue + } + fileName := entry.Name() + filenames = append(filenames, fileName) + } + + return filenames, nil + } + // Attempt to parse the content as a URL + u, err := url.ParseRequestURI(dirPath) + if err == nil && strings.HasPrefix(u.Hostname(), "github.com") || strings.HasPrefix(u.Hostname(), "raw.githubusercontent.com") { + fileCon, dirCon, err := utils.FetchFromGitHub(u.String()) + if err != nil { + return nil, err + } + // Check if it's a directory or a single file + if len(dirCon) == 0 { + // If single file + fn := fileCon.Name + if err != nil { + return nil, err + } + return []string{*fn}, nil + } + // If directory + for _, files := range dirCon { + if files.GetType() == "file" { + fileCon, _, err := utils.FetchFromGitHub(files.GetDownloadURL()) + if err != nil { + log.Errorf("Error reading file from GitHub Directory: %v", err) + continue + } + fn := fileCon.Name + if err != nil { + return nil, err + } + return []string{*fn}, nil + } + } + } else { + resp, err := http.Get(dirPath) + if err != nil { + return nil, err + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return nil, fmt.Errorf("failed to fetch directory: %s", resp.Status) + } + + // Parse the HTML content + doc, err := html.Parse(resp.Body) + if err != nil { + return nil, err + } + + // Extract filenames from the HTML structure + var filenames []string + var extractFilenames func(*html.Node) + extractFilenames = func(n *html.Node) { + if n.Type == html.ElementNode && n.Data == "a" { + for _, attr := range n.Attr { + if attr.Key == "href" { + filenames = append(filenames, attr.Val) + break + } + } + } + for c := n.FirstChild; c != nil; c = c.NextSibling { + extractFilenames(c) + } + } + + extractFilenames(doc) + + return filenames, nil + } + return nil, errors.New("unsupported file source. Please provide a valid URL or a local file path") +} + +func ExtractModule(dirPath string) (string, error) { + relativeFilePath := "cue.mod/module.cue" + fileURL := joinURLPath(dirPath, relativeFilePath) + + // Read the module.cue file + content, err := utils.ReadFile(fileURL) + if err != nil { + return "", err + } + // Regular expression to find the module string + re := regexp.MustCompile(`module:\s*"(.*?)"`) + matches := re.FindStringSubmatch(string(content)) + if len(matches) < 2 { + return "", errors.New("module not found in module.cue") + } + + // Return the extracted module string + return matches[1], nil +} + +func joinURLPath(baseURL, relativePath string) string { + base, err := url.Parse(baseURL) + if err != nil { + panic(err) + } + + base.Path = filepath.Join(base.Path, relativePath) + + return base.String() +} + +// GenerateOverlay creates an overlay to store cue schemas from a given directory +func GenerateOverlay(dirPath string, td string, policies []string) (map[string]load.Source, error) { + overlay := make(map[string]load.Source) + + // Process .cue files in the directory + err := filepath.WalkDir(dirPath, func(p string, d fs.DirEntry, err error) error { + if err != nil { + return err + } + if !d.Type().IsRegular() || !strings.HasSuffix(p, ".cue") { + return nil + } + + // Ensure the file is within the specified subdirectories + relPath, err := filepath.Rel(dirPath, p) + if err != nil { + return err + } + if !strings.HasPrefix(relPath, "cue.mod/module.cue") && !strings.HasPrefix(relPath, "cue.mod/gen") && !strings.HasPrefix(relPath, "cue.mod") { + return nil + } + + // Read and add the file content to the overlay + byts, err := utils.ReadFile(p) + if err != nil { + return err + } + op := filepath.Join(td, relPath) + overlay[op] = load.FromBytes(byts) + return nil + }) + if err != nil { + return nil, err + } + + // Add files from policies + for _, policy := range policies { + if !strings.HasSuffix(policy, ".cue") { + return nil, errors.New("policy file is not a .cue file") + } + + // Construct the full path to the policy file + policyPath := filepath.Join(dirPath, policy) + + // Read the policy file + policyBytes, err := utils.ReadFile(policyPath) + if err != nil { + log.Printf("Error reading policy file: %v", err) + return nil, err + } + + overlay[filepath.Join(td, filepath.Base(policy))] = load.FromBytes(policyBytes) + } + + return overlay, nil +} diff --git a/pkg/generate/dockerfile_gen/generator.go b/pkg/generate/dockerfile_gen/generator.go index bdf81da..6f83533 100644 --- a/pkg/generate/dockerfile_gen/generator.go +++ b/pkg/generate/dockerfile_gen/generator.go @@ -62,6 +62,7 @@ func GenerateDockerfileContent(data *DockerfileContent) string { return dockerfileContent.String() } + func formatInstruction(key string, value interface{}) []string { var result []string diff --git a/pkg/oci/cosign.go b/pkg/oci/cosign.go new file mode 100644 index 0000000..f70dcef --- /dev/null +++ b/pkg/oci/cosign.go @@ -0,0 +1,171 @@ +package oci + +import ( + "bufio" + "context" + "fmt" + "io" + "os" + "os/exec" + + "github.com/fatih/color" + "github.com/google/go-containerregistry/pkg/name" + "github.com/sigstore/cosign/v2/cmd/cosign/cli/fulcio" + "github.com/sigstore/cosign/v2/cmd/cosign/cli/options" + "github.com/sigstore/cosign/v2/cmd/cosign/cli/rekor" + "github.com/sigstore/cosign/v2/cmd/cosign/cli/verify" + "github.com/sigstore/cosign/v2/pkg/cosign" + sig "github.com/sigstore/cosign/v2/pkg/signature" + "github.com/sigstore/sigstore/pkg/cryptoutils" + log "github.com/sirupsen/logrus" +) + +// SignCosign signs an image (`imageRef`) in Keyless mode +// https://github.com/sigstore/cosign/blob/main/KEYLESS.md. +func SignCosign(imageRef string) error { + cosignExecutable, err := exec.LookPath("cosign") + if err != nil { + return fmt.Errorf("executing cosign failed: %w", err) + } + + cosignCmd := exec.Command(cosignExecutable, []string{"sign"}...) + cosignCmd.Env = os.Environ() + cosignCmd.Environ() + + // use keyless mode + cosignCmd.Args = append(cosignCmd.Args, "--yes") + cosignCmd.Args = append(cosignCmd.Args, imageRef) + + err = processCosignIO(cosignCmd) + if err != nil { + return err + } + + return cosignCmd.Wait() +} + +func processCosignIO(cosignCmd *exec.Cmd) error { + stdout, err := cosignCmd.StdoutPipe() + if err != nil { + log.Error(err, "cosign stdout pipe failed") + } + stderr, err := cosignCmd.StderrPipe() + if err != nil { + log.Error(err, "cosign stderr pipe failed") + } + + merged := io.MultiReader(stdout, stderr) + scanner := bufio.NewScanner(merged) + + if err := cosignCmd.Start(); err != nil { + return fmt.Errorf("executing cosign failed: %w", err) + } + + for scanner.Scan() { + log.Info("cosign: " + scanner.Text()) + } + if err := scanner.Err(); err != nil { + log.Error(err, "cosign stdout/stderr scanner failed") + } + + return nil +} + +func VerifyArifact(ctx context.Context, url, key string) (verified bool, err error) { + ref, err := name.ParseReference(url) + if err != nil { + return false, fmt.Errorf("error parsing url: %w", err) + } + + chopts := &cosign.CheckOpts{ + ClaimVerifier: cosign.SimpleClaimVerifier, + } + + chopts.RekorClient, err = rekor.NewClient(options.DefaultRekorURL) + if err != nil { + return false, fmt.Errorf("creating Rekor client: %v", err) + } + + chopts.RootCerts, err = fulcio.GetRoots() + if err != nil { + return false, fmt.Errorf("getting Fulcio root certs: %v", err) + } + + ro := options.RegistryOptions{} + chopts.RegistryClientOpts, err = ro.ClientOpts(ctx) + if err != nil { + return false, err + } + + chopts.IntermediateCerts, err = fulcio.GetIntermediates() + if err != nil { + return false, fmt.Errorf("unable to get Fulcio intermediate certs: %s", err) + } + + // Check if PubKey is supplied + if key != "" { + pub, err := sig.LoadPublicKey(ctx, key) + if err != nil { + return false, fmt.Errorf("error loading Pub Key: %v", err) + } + chopts.SigVerifier = pub + } + fulcioVerified := (chopts.SigVerifier == nil) + + chopts.RekorPubKeys, err = cosign.GetRekorPubs(ctx) + if err != nil { + return false, fmt.Errorf("unable to get Rekor public keys: %s", err) + } + chopts.CTLogPubKeys, err = cosign.GetCTLogPubs(ctx) + if err != nil { + return false, fmt.Errorf("unable to get CTLog public keys: %s", err) + } + sigs, bundleVerified, err := cosign.VerifyImageSignatures(context.Background(), ref, chopts) + if err != nil { + return false, fmt.Errorf("error verifying artifact signatures: %s", err) + } + + if bundleVerified { + verify.PrintVerificationHeader(ctx, ref.String(), chopts, bundleVerified, fulcioVerified) + for _, sig := range sigs { + if cert, err := sig.Cert(); err == nil && cert != nil { + ce := cosign.CertExtensions{Cert: cert} + sub := "" + if sans := cryptoutils.GetSubjectAlternateNames(cert); len(sans) > 0 { + sub = sans[0] + } + color.Green("Certificate subject: %s", sub) + if issuerURL := ce.GetIssuer(); issuerURL != "" { + color.Green("Certificate issuer URL: %s", issuerURL) + } + + if githubWorkflowTrigger := ce.GetCertExtensionGithubWorkflowTrigger(); githubWorkflowTrigger != "" { + color.Green("GitHub Workflow Trigger: %s", githubWorkflowTrigger) + } + + if githubWorkflowSha := ce.GetExtensionGithubWorkflowSha(); githubWorkflowSha != "" { + color.Green("GitHub Workflow SHA: %s", githubWorkflowSha) + } + if githubWorkflowName := ce.GetCertExtensionGithubWorkflowName(); githubWorkflowName != "" { + color.Green("GitHub Workflow Name: %s", githubWorkflowName) + } + + if githubWorkflowRepository := ce.GetCertExtensionGithubWorkflowRepository(); githubWorkflowRepository != "" { + color.Green("GitHub Workflow Repository: %s", githubWorkflowRepository) + } + + if githubWorkflowRef := ce.GetCertExtensionGithubWorkflowRef(); githubWorkflowRef != "" { + color.Green("GitHub Workflow Ref: %s", githubWorkflowRef) + } + } + + // p, err := sig.Payload() + // if err != nil { + // fmt.Fprintf(os.Stderr, "Error fetching payload: %v", err) + // return false, err + // } + // fmt.Println(string(p)) + } + } + return true, nil +} diff --git a/pkg/oci/meta.go b/pkg/oci/meta.go new file mode 100644 index 0000000..1fe006a --- /dev/null +++ b/pkg/oci/meta.go @@ -0,0 +1,21 @@ +package oci + +const ( + // CreatedAnnotation is the OpenContainers annotation for specifying + // the date and time on which the OCI artifact was built (RFC 3339). + CreatedAnnotation = "org.opencontainers.image.created" + + // ConfigMediaType is the OpenContainers artifact media type for the config layer. + ConfigMediaType = "application/vnd.genval.config.v1+json" + + // ContentMediaType is the OpenContainers artifact media type for the content layer. + ContentMediaType = "application/vnd.genval.content.v1.tar+gzip" + + ContentTypeAnnotation = "genval.content.type" + + // SourceAnnotation is the OpenContainers annotation for specifying + // the upstream source of an OCI artifact. + SourceAnnotation = "org.opencontainers.image.source" + + URLPrefix = "oci://" +) diff --git a/pkg/oci/ociClient.go b/pkg/oci/ociClient.go new file mode 100644 index 0000000..096faf6 --- /dev/null +++ b/pkg/oci/ociClient.go @@ -0,0 +1,295 @@ +package oci + +import ( + "archive/tar" + "compress/gzip" + "context" + "errors" + "fmt" + "io" + "io/fs" + "os" + "path/filepath" + "strings" + + "github.com/google/go-containerregistry/pkg/authn" + "github.com/google/go-containerregistry/pkg/crane" + "github.com/google/go-containerregistry/pkg/name" + "github.com/intelops/genval/pkg/cuecore" + log "github.com/sirupsen/logrus" +) + +func ParseAnnotations(args []string) (map[string]string, error) { + annotations := map[string]string{} + for _, annotation := range args { + kv := strings.Split(annotation, "=") + if len(kv) != 2 { + return annotations, fmt.Errorf("invalid annotation %s, must be in the format key=value", annotation) + } + annotations[kv[0]] = kv[1] + } + + return annotations, nil +} + +// CreateTarball creates a tarball from a file or directory. +func CreateTarball(sourcePath, outputPath string) error { + outputFile, err := os.Create(outputPath) + if err != nil { + return err + } + defer outputFile.Close() + + gzipWriter := gzip.NewWriter(outputFile) + defer gzipWriter.Close() + + tarWriter := tar.NewWriter(gzipWriter) + defer tarWriter.Close() + + // Get the list of files and directories to be included in the tarball + var fileList []string + var topLevelDir string + fileInfo, err := os.Stat(sourcePath) + if err != nil { + return err + } + if fileInfo.IsDir() { + // If sourcePath is a directory, recursively get all files in the directory + topLevelDir = filepath.Base(sourcePath) + err := filepath.WalkDir(sourcePath, func(path string, d fs.DirEntry, err error) error { + if err != nil { + return err + } + fileList = append(fileList, path) + return nil + }) + if err != nil { + return err + } + } else { + // If sourcePath is a file, add the file to the fileList + fileList = append(fileList, sourcePath) + topLevelDir = "" + } + + // Iterate over each file to add it to the tarball + for _, filePath := range fileList { + // Calculate the relative path of the file within the source directory + relPath, err := filepath.Rel(sourcePath, filePath) + if err != nil { + return err + } + // Fix path separator for tarball (always use forward slashes) + relPath = strings.ReplaceAll(relPath, `\`, "/") + + fileInfo, err := os.Stat(filePath) + if err != nil { + return err + } + + header, err := tar.FileInfoHeader(fileInfo, "") + if err != nil { + return err + } + + // Update the name field in the header to preserve directory structure + if topLevelDir != "" { + header.Name = filepath.Join(topLevelDir, relPath) + } else { + header.Name = relPath + } + + if err := tarWriter.WriteHeader(header); err != nil { + return err + } + + if !fileInfo.IsDir() { + file, err := os.Open(filePath) + if err != nil { + return err + } + defer file.Close() + + // Copy file content to tarball + if _, err := io.Copy(tarWriter, file); err != nil { + return err + } + } + } + + return nil +} + +// PullArtifact checks if tag exists and pull's the artifact from remote repository and writes to disk +func PullArtifact(ctx context.Context, dest, path string) error { + if dest == "" { + return errors.New("artifact URL can not be empty") + } + if fs, err := os.Stat(path); err != nil || !fs.IsDir() { + log.Errorf("Invalid Output path: %s requires a directory", err) + return err + } + ref, err := name.ParseReference(dest) + if err != nil { + log.Errorf("Invalid URL: %v", err) + return err + } + + parts := strings.Split(ref.String(), ":") + url := parts[0] + desiredTag := parts[1] + + opts := make([]crane.Option, 0) + + // Try to use crane.WithAuthFromKeychain(authn.DefaultKeychain) + keychainOpts := []crane.Option{crane.WithAuthFromKeychain(authn.DefaultKeychain)} + if _, err := crane.ListTags(url, keychainOpts...); err == nil { + opts = append(opts, keychainOpts...) + } else { + // Fallback to using credentials provided as ENV variable with crane.WithAuth(auth) + + opts, err = GetCreds() + if err != nil { + return fmt.Errorf("error reading credentials: %v", err) + } + } + tags, err := crane.ListTags(url, opts...) + if err != nil { + log.Error("Error fetching tags from remote") + return err + } + + // Check if the desired tag is present in the remote tags + found := false + for _, tag := range tags { + if tag == desiredTag { + found = true + break + } + } + + if !found { + log.Errorf("Provided artifact tag '%s' not found in remote", desiredTag) + return err + } + + // Pull the image from the repository + img, err := crane.Pull(ref.String(), opts...) + if err != nil { + log.Error("error pulling artifact:") + return err + } + + tempDir, err := os.MkdirTemp("", "artifact") + if err != nil { + log.Error("error creating temp dir:") + return err + } + defer os.RemoveAll(tempDir) + + tarballPath := filepath.Join(tempDir, "artifact.tar.gz") + + destTar, err := os.Create(tarballPath) + if err != nil { + log.Error("error creating tarball file:") + return err + } + defer destTar.Close() + + // Export the image to the tarball file + if err := crane.Export(img, destTar); err != nil { + log.Error("error exporting artifact") + return err + } + + reader, err := os.Open(tarballPath) + if err != nil { + log.Error("error opening tarball file:") + return err + } + defer reader.Close() + + tarReader := tar.NewReader(reader) + + if err := ExtractTarContents(tarReader, path); err != nil { + log.Errorf("error extracting artifact:") + return err + } + + return nil +} + +func GetCreds() ([]crane.Option, error) { + opts := []crane.Option{} + homeDir, err := os.UserHomeDir() + if err != nil { + return nil, fmt.Errorf("error getting user's home directory: %v", err) + } + credPath := filepath.Join(homeDir, ".docker", "config.json") + _, err = os.Stat(credPath) + if err != nil { + if os.IsNotExist(err) { + // Docker config file doesn't exist, check environment variables + user, ok := os.LookupEnv("ARTIFACT_REGISTRY_USERNAME") + if !ok { + return nil, errors.New("ARTIFACT_REGISTRY_USERNAME environment variable not set") + } + + pass, ok := os.LookupEnv("ARTIFACT_REGISTRY_PASSWORD") + if !ok { + return nil, errors.New("ARTIFACT_REGISTRY_PASSWORD environment variable not set") + } + + if user == "" || pass == "" { + return nil, errors.New("username or password is empty") + } + + // Create authentication config + authConfig := authn.AuthConfig{Username: user, Password: pass} + opts = append(opts, crane.WithAuth(authn.FromConfig(authConfig))) + } else { + // Other error occurred while checking for Docker config file + return nil, fmt.Errorf("error checking Docker config at %s: %v", credPath, err) + } + } else { + // Docker config file exists, use default keychain + opts = append(opts, crane.WithAuthFromKeychain(authn.DefaultKeychain)) + } + + return opts, nil +} + +func CreateWorkspace(tool, desiredTool, ociURL string) error { + archivePath, err := cuecore.CreatePath(tool, "archive") + if err != nil { + return fmt.Errorf("error initializing archive %s: %v", tool, err) + } + + tarballPath := filepath.Join(archivePath, "cuemod-"+tool+".tar.gz") + destTar, err := os.Create(tarballPath) + if err != nil { + return fmt.Errorf("error creating workpace archive %s: %v", tarballPath, err) + } + defer destTar.Close() + + if err := cuecore.CheckTagAndPullArchive(ociURL, desiredTool, destTar); err != nil { + log.Errorf("Error pulling module for %s from %v: %v", desiredTool, destTar, err) + } + extractPath, err := cuecore.CreatePath(tool, "extracted-content") + if err != nil { + return fmt.Errorf("error initializing workspace files %s: %v", tool, err) + } + + reader, err := os.Open(tarballPath) + if err != nil { + return fmt.Errorf("error opening archive %s: %v", tarballPath, err) + } + defer reader.Close() + + tarReader := tar.NewReader(reader) + + if err := ExtractTarContents(tarReader, extractPath); err != nil { + return fmt.Errorf("error extracting archive: %s", err) + } + return nil +} diff --git a/pkg/oci/ociUtils.go b/pkg/oci/ociUtils.go new file mode 100644 index 0000000..47eeda3 --- /dev/null +++ b/pkg/oci/ociUtils.go @@ -0,0 +1,66 @@ +package oci + +import ( + "archive/tar" + "fmt" + "io" + "os" + "os/exec" + "path/filepath" + "strings" + + log "github.com/sirupsen/logrus" +) + +// ExtractTarContents extracts the contents of a tar.Reader to the specified directory. +func ExtractTarContents(tarReader *tar.Reader, destinationDir string) error { + for { + header, err := tarReader.Next() + if err == io.EOF { + // End of tar archive + break + } + if err != nil { + log.Errorf("failed to read tar header: %v", err) + return err + } + + // Ensure the entry is a regular file + if header.Typeflag != tar.TypeReg { + continue + } + + // Build the full path for the extracted file + filePath := filepath.Join(destinationDir, header.Name) + + // Create the directory if it doesn't exist + if err := os.MkdirAll(filepath.Dir(filePath), os.ModePerm); err != nil { + return fmt.Errorf("failed to create directory: %v", err) + } + + // Create or open the file for writing + file, err := os.Create(filePath) + if err != nil { + return fmt.Errorf("failed to create file: %v", err) + } + defer file.Close() + + // Copy the file contents from the tar reader to the new file + if _, err := io.Copy(file, tarReader); err != nil { + return fmt.Errorf("failed to copy file contents: %v", err) + } + } + + return nil +} + +// GetGitRemoteURL fetches the remote url of the project +func GetGitRemoteURL() (string, error) { + cmd := exec.Command("git", "config", "--get", "remote.origin.url") + output, err := cmd.Output() + if err != nil { + return "", fmt.Errorf("failed to get Git remote URL: %w", err) + } + remoteURL := strings.TrimSpace(string(output)) + return remoteURL, nil +} diff --git a/pkg/parser/dockerfile_parser_test.go b/pkg/parser/dockerfile_parser_test.go index d518cec..741e9bb 100644 --- a/pkg/parser/dockerfile_parser_test.go +++ b/pkg/parser/dockerfile_parser_test.go @@ -33,7 +33,7 @@ LABEL version="1.0" assert.Equal(t, instructions, unmarshaled) edgeCaseDockerfile := ` -FROM +FROM LABEL SINGLE_WORD ` diff --git a/pkg/parser/inputparser.go b/pkg/parser/inputparser.go index c882a96..c4b7bb1 100644 --- a/pkg/parser/inputparser.go +++ b/pkg/parser/inputparser.go @@ -36,9 +36,7 @@ func ParseDockerfileInput(filename string, data interface{}) error { fileExtension := filepath.Ext(filename) fileExtension = strings.TrimPrefix(fileExtension, ".") - // TODO Change funct name for utils.ReadPOlicyFile inputContent, err := utils.ReadFile(filename) - // log.Infof("INPUT CONTENT: %v", string(inputContent)) if err != nil { log.Fatalf("Unable to read input: %v", err) } diff --git a/pkg/parser/tfparser.go b/pkg/parser/tfparser.go index 2413eda..7aa3dd6 100644 --- a/pkg/parser/tfparser.go +++ b/pkg/parser/tfparser.go @@ -18,8 +18,10 @@ import ( ctyjson "github.com/zclconf/go-cty/cty/json" ) -type jsonObj map[string]interface{} -type lineObj map[string]interface{} +type ( + jsonObj map[string]interface{} + lineObj map[string]interface{} +) type converter struct { bytes []byte @@ -30,7 +32,6 @@ func (c *converter) rangeSource(r hcl.Range) string { } func (c *converter) convertBody(body *hclsyntax.Body) (jsonObj, lineObj, error) { - var ( err error cfg = make(jsonObj) // resource config diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index 694f37f..ebe3c4c 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -6,17 +6,18 @@ import ( "context" "encoding/json" "errors" + "fmt" "io" - "io/fs" "net/http" "net/url" "os" "path/filepath" "strings" + "time" "cuelang.org/go/cue" "cuelang.org/go/cue/cuecontext" - "cuelang.org/go/cue/load" + "github.com/briandowns/spinner" "github.com/google/go-github/v57/github" log "github.com/sirupsen/logrus" "golang.org/x/oauth2" @@ -37,54 +38,13 @@ func TempDirWithCleanup() (dirPath string, cleanupFunc func(), err error) { }, nil } -// GenerateOverlay creates an overlay to store cue schemas -func GenerateOverlay(staticFS fs.FS, td string, policies []string) (map[string]load.Source, error) { - overlay := make(map[string]load.Source) - - // Walk through and add files from the embedded fs - err := fs.WalkDir(staticFS, ".", func(p string, d fs.DirEntry, err error) error { - if err != nil { - return err - } - if !d.Type().IsRegular() { - return nil - } - f, err := staticFS.Open(p) - if err != nil { - return err - } - byts, err := io.ReadAll(f) - if err != nil { - return err - } - op := filepath.Join(td, p) - overlay[op] = load.FromBytes(byts) - return nil - }) - if err != nil { - return nil, err - } - - // Add files from policies - for _, policy := range policies { - policyBytes, err := os.ReadFile(policy) - if err != nil { - log.Errorf("Error reading schema:%v", err) - return nil, err - } - overlay[filepath.Join(td, filepath.Base(policy))] = load.FromBytes(policyBytes) - } - - return overlay, nil -} - // compileFromURL parses the Github URL, reads the contents and compiles it to Cue Value func CompileFromURL(client *github.Client, u *url.URL) (map[string]cue.Value, error) { dataMap := make(map[string]cue.Value) ctx := cuecontext.New() // Use fetchFromGitHub to get the file or directory content - fileCon, dirCon, err := fetchFromGitHub(u.String()) + fileCon, dirCon, err := FetchFromGitHub(u.String()) if err != nil { return nil, err } @@ -105,7 +65,7 @@ func CompileFromURL(client *github.Client, u *url.URL) (map[string]cue.Value, er // If directory for _, content := range dirCon { if content.GetType() == "file" { - fileCon, _, err := fetchFromGitHub(content.GetDownloadURL()) + fileCon, _, err := FetchFromGitHub(content.GetDownloadURL()) if err != nil { log.Errorf("Error reading file from GitHub Directory: %v", err) continue @@ -162,8 +122,8 @@ func CompileFromLocal(path string) (map[string]cue.Value, error) { } // compileAndAddFile reads, compiles a file, and appends it to the dataMap. -func compileAndAddFile(filePath string, dataMap map[string]cue.Value) error { - fileContent, err := os.ReadFile(filePath) +func compileAndAddFile(fileName string, dataMap map[string]cue.Value) error { + fileContent, err := os.ReadFile(fileName) if err != nil { return err } @@ -171,7 +131,7 @@ func compileAndAddFile(filePath string, dataMap map[string]cue.Value) error { ctx := cuecontext.New() // Check if the file has a YAML extension - if isYAMLFile(filePath) { + if isYAMLFile(fileName) { // Convert YAML to JSON jsonContent, err := yamlToJSON(fileContent) if err != nil { @@ -181,14 +141,14 @@ func compileAndAddFile(filePath string, dataMap map[string]cue.Value) error { if compiledData.Err() != nil { return compiledData.Err() } - dataMap[filepath.Base(filePath)] = compiledData + dataMap[filepath.Base(fileName)] = compiledData } else { // For other extensions, directly compile the content compiledData := ctx.CompileBytes(fileContent) if compiledData.Err() != nil { return compiledData.Err() } - dataMap[filepath.Base(filePath)] = compiledData + dataMap[filepath.Base(fileName)] = compiledData } return nil @@ -222,7 +182,7 @@ func isURL(s string) bool { return err == nil && u.Scheme != "" && u.Host != "" } -func fetchFromGitHub(urlStr string) (*github.RepositoryContent, []*github.RepositoryContent, error) { +func FetchFromGitHub(urlStr string) (*github.RepositoryContent, []*github.RepositoryContent, error) { // Use environment variable for GitHub token client := CreateGitHubClient(token) // Parse the URL @@ -265,9 +225,9 @@ func fetchFromGitHub(urlStr string) (*github.RepositoryContent, []*github.Reposi } // fetchFilenames fetches the content of a given URL and saves it to a temporary file and returns file names. -func fetchFilenames(urlStr string, client *github.Client) (string, error) { +func fetchFilenames(urlStr string) (string, error) { // Use the fetchFromGitHub function to get the file content - fileCon, _, err := fetchFromGitHub(urlStr) + fileCon, _, err := FetchFromGitHub(urlStr) if err != nil { log.Errorf("failed fetching content from GitHub: %v", err) return "", err @@ -286,7 +246,7 @@ func fetchFilenames(urlStr string, client *github.Client) (string, error) { // Create a cue_downloads directory in /tmp to store the files dir := filepath.Join(os.TempDir(), "cue_downloads") if _, err := os.Stat(dir); os.IsNotExist(err) { - if err := os.Mkdir(dir, 0777); err != nil { + if err := os.Mkdir(dir, 0o777); err != nil { log.Errorf("Failed to create directory: %v", err) } } else if err != nil { @@ -295,7 +255,7 @@ func fetchFilenames(urlStr string, client *github.Client) (string, error) { // Write the content to a file with the original filename filePath := filepath.Join(dir, filename) - if err := os.WriteFile(filePath, []byte(fileContent), 0644); err != nil { + if err := os.WriteFile(filePath, []byte(fileContent), 0o644); err != nil { log.Errorf("failed to write content to file: %v", err) return "", err } @@ -306,11 +266,10 @@ func fetchFilenames(urlStr string, client *github.Client) (string, error) { // ProcessInputs processes the CLI args, fetches content from URLs if needed, and returns a slice of filenames. func ProcessInputs(inputs []string) ([]string, error) { - client := CreateGitHubClient(token) var filenames []string for _, input := range inputs { if isURL(input) { - filename, err := fetchFilenames(input, client) + filename, err := fetchFilenames(input) if err != nil { return nil, err } @@ -346,10 +305,17 @@ func ReadFile(content string) ([]byte, error) { var policyContent []byte var err error + if !isURL(content) { + policyContent, err := os.ReadFile(content) + if err != nil { + return nil, err + } + return policyContent, err + } // Attempt to parse the content as a URL u, err := url.ParseRequestURI(content) - if err == nil && strings.HasPrefix(u.Hostname(), "github.com") && strings.HasPrefix(u.Hostname(), "raw.githubusercontent.com") { - fileCon, dirCon, err := fetchFromGitHub(u.String()) + if err == nil && strings.HasPrefix(u.Hostname(), "github.com") || strings.HasPrefix(u.Hostname(), "raw.githubusercontent.com") { + fileCon, dirCon, err := FetchFromGitHub(u.String()) if err != nil { return nil, err } @@ -365,7 +331,7 @@ func ReadFile(content string) ([]byte, error) { // If directory for _, content := range dirCon { if content.GetType() == "file" { - fileCon, _, err := fetchFromGitHub(content.GetDownloadURL()) + fileCon, _, err := FetchFromGitHub(content.GetDownloadURL()) if err != nil { log.Errorf("Error reading file from GitHub Directory: %v", err) continue @@ -378,36 +344,18 @@ func ReadFile(content string) ([]byte, error) { } } } else { - if err == nil && u.Scheme != "" && u.Host != "" { - policyContent, err = readData(content) - if err != nil { - return nil, err - } - return policyContent, nil - } else { - // Handle local file - policyContent, err = os.ReadFile(content) - if err != nil { - return nil, err - } - return policyContent, nil - } - } - return nil, errors.New("unsupported file source. Please provide a valid URL or a local file path") - -} - -// readData reads data from a URL or a local file. -func readData(input string) ([]byte, error) { - if IsURL(input) { - resp, err := http.Get(input) + resp, err := http.Get(content) if err != nil { return nil, err } defer resp.Body.Close() - return io.ReadAll(resp.Body) + policyContent, err = io.ReadAll(resp.Body) + if err != nil { + return nil, err + } + return policyContent, nil } - return os.ReadFile(input) + return nil, errors.New("unsupported file source. Please provide a valid URL or a local file path") } func ExtractPackageName(content []byte) (string, error) { @@ -437,3 +385,25 @@ func CreateGitHubClient(token string) *github.Client { client := github.NewClient(tc) return client } + +func CheckPathExists(path string) error { + info, err := os.Stat(path) + if os.IsNotExist(err) { + return fmt.Errorf("path %s does not exist", path) + } + if err != nil { + return err + } + if !info.IsDir() { + return fmt.Errorf("path %s is not a directory", path) + } + return nil +} + +// StartSpinner starts a spinner with the given message. +func StartSpinner(msg string) *spinner.Spinner { + s := spinner.New(spinner.CharSets[11], 100*time.Millisecond, spinner.WithWriter(os.Stderr)) + s.Suffix = " " + msg + s.Start() + return s +} diff --git a/pkg/validate/celval.go b/pkg/validate/celval.go index 1ca8981..da64ed1 100644 --- a/pkg/validate/celval.go +++ b/pkg/validate/celval.go @@ -55,9 +55,7 @@ func EvaluateCELPolicies(policyFile string, inputFile string, t table.Writer) er // set colors for evaluation result green := color.New(color.FgGreen).SprintFunc() red := color.New(color.FgRed).SprintFunc() - // TODO: CHange func name ReadPolicyFile policyContent, err := utils.ReadFile(policyFile) - // log.Printf("POLICY CONTENT: %v", string(policyContent)) if err != nil { log.Fatalf("Unable to read Policy file: %v", err) } diff --git a/pkg/validate/regoval.go b/pkg/validate/regoval.go index 87a2537..18c5b3f 100644 --- a/pkg/validate/regoval.go +++ b/pkg/validate/regoval.go @@ -15,7 +15,6 @@ import ( ) func ValidateWithRego(inputContent string, regoPolicy string) error { - // read input is a file jsonData, err := parser.ProcessInput(inputContent) if err != nil { diff --git a/pkg/validate/testdata/deployment-invalid.json b/pkg/validate/testdata/deployment-invalid.json index 45ce696..4fcfd5a 100644 --- a/pkg/validate/testdata/deployment-invalid.json +++ b/pkg/validate/testdata/deployment-invalid.json @@ -36,4 +36,3 @@ }, "status": {} } - \ No newline at end of file diff --git a/pkg/validate/testdata/deployment.json b/pkg/validate/testdata/deployment.json index 76d0473..d28bb4a 100644 --- a/pkg/validate/testdata/deployment.json +++ b/pkg/validate/testdata/deployment.json @@ -36,4 +36,3 @@ }, "status": {} } - \ No newline at end of file diff --git a/pkg/validate/testdata/invalidYAML.yaml b/pkg/validate/testdata/invalidYAML.yaml index addbdd0..cd9ad3c 100644 --- a/pkg/validate/testdata/invalidYAML.yaml +++ b/pkg/validate/testdata/invalidYAML.yaml @@ -1,7 +1,7 @@ dockerfile: - stage: 0 instructions: - -from: + -from: - "golang-alpine:latest-dev as builder" - env: - "APP_HOME=/app" @@ -12,5 +12,5 @@ dockerfile: - pip install --upgrade pip wheel - copy: - requirements.txt . - - run: + - run: - "pip wheel --no-cache-dir --no-deps --wheel-dir /app/wheels -r requirements.txt" diff --git a/pkg/validate/testdata/multistage.yaml b/pkg/validate/testdata/multistage.yaml index 380b444..554b434 100644 --- a/pkg/validate/testdata/multistage.yaml +++ b/pkg/validate/testdata/multistage.yaml @@ -1,7 +1,7 @@ dockerfile: - stage: 0 instructions: - - from: + - from: - "cgr.dev/chainguard/python:latest-dev as builder" - env: - "APP_HOME=/app" @@ -12,7 +12,7 @@ dockerfile: - pip install --upgrade pip wheel - copy: - requirements.txt . - - run: + - run: - "pip wheel --no-cache-dir --no-deps --wheel-dir /app/wheels -r requirements.txt" - stage: 1 @@ -21,7 +21,7 @@ dockerfile: - "cgr.dev/chainguard/python:latest" - label: - maintainer="your-email@example.com" - - description="Secure Multi-stage RUST Alpine Image" + - description="Secure Multi-stage RUST Alpine Image" - env: - "APP_USER=myappuser" - "APP_HOME=/app" @@ -29,7 +29,7 @@ dockerfile: - "$APP_HOME" - copy: - "--from=builder /usr/src/myapp/target/release/myapp /usr/local/bin/" - - run: + - run: - adduser -D $APP_USER - user: - "$APP_USER" diff --git a/pkg/validate/testdata/rego/dockerfile_policies.rego b/pkg/validate/testdata/rego/dockerfile_policies.rego index c79c583..9ffb7f7 100644 --- a/pkg/validate/testdata/rego/dockerfile_policies.rego +++ b/pkg/validate/testdata/rego/dockerfile_policies.rego @@ -21,7 +21,7 @@ deny_root_user { input[i].cmd == "user" val2:= input[i].value val2 != "root" - val2 != "0" + val2 != "0" } # Do not sudo @@ -38,14 +38,14 @@ deny_caching{ matches := regex.match(".*?(apk|yum|dnf|apt|pip).+?(install|[dist-|check-|group]?up[grade|date]).*", val4) matches == true contains(val4, "--no-cache") -} +} # Ensure that COPY is used instead of ADD CIS 4.9 deny_add{ input[i].cmd != "add" } -# Ensure ADD does not include unpack archives or download files +# Ensure ADD does not include unpack archives or download files # deny_image_expansion{ # input[_].cmd == "add" # val5 := input[_].value diff --git a/pkg/validate/validatedockerfile.go b/pkg/validate/validatedockerfile.go index d58462a..b1f5a95 100644 --- a/pkg/validate/validatedockerfile.go +++ b/pkg/validate/validatedockerfile.go @@ -89,5 +89,4 @@ func ValidateDockerfile(dockerfileContent string, regoPolicyPath string) error { } return policyError - } diff --git a/pkg/validate/validateinputfile.go b/pkg/validate/validateinputfile.go index 4896b44..7a8b8dd 100644 --- a/pkg/validate/validateinputfile.go +++ b/pkg/validate/validateinputfile.go @@ -16,7 +16,6 @@ import ( ) func ValidateInput(yamlContent string, regoPolicyPath string) error { - inputBytes, err := parser.ProcessInput(yamlContent) if err != nil { log.Errorf("Error parsing input content: %v", err) @@ -87,5 +86,4 @@ func ValidateInput(yamlContent string, regoPolicyPath string) error { } return policyError - } diff --git a/templates/defaultpolicies/cel/dockerfile_policies b/templates/defaultpolicies/cel/dockerfile_policies new file mode 100644 index 0000000..9677133 --- /dev/null +++ b/templates/defaultpolicies/cel/dockerfile_policies @@ -0,0 +1,4 @@ +import test.json +Name: Check base-image in Dockerfiles +input.all(c,has(c.cmd)) + diff --git a/templates/defaultpolicies/cel/terraform_cel b/templates/defaultpolicies/cel/terraform_cel new file mode 100644 index 0000000..3b0aba2 --- /dev/null +++ b/templates/defaultpolicies/cel/terraform_cel @@ -0,0 +1,5 @@ +Name: Deny global ingress +input.resource.all(res,has(res.aws_security_group.allow_tls.ingress) && res.aws_security_group.allow_tls.ingress.all(ing,ing.cidr_blocks.all(cb,cb != '0.0.0.0/0'))) + +Name: Deny global egress +input.resource.all(res,has(res.aws_security_group.allow_tls.egress) && res.aws_security_group.allow_tls.egress.all(eg,eg.cidr_blocks.all(cb,cb != '0.0.0.0/0'))) diff --git a/templates/defaultpolicies/cue/application.cue b/templates/defaultpolicies/cue/application.cue index e2a0bc1..32ba7a2 100644 --- a/templates/defaultpolicies/cue/application.cue +++ b/templates/defaultpolicies/cue/application.cue @@ -13,7 +13,7 @@ import "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1" path: string // requires the path to the manifest in the repo chart: string // requires if your app uses Helm helm: { - // All your Helm file values go here + // All your Helm file values go here ... } // If your app uses Kustomize overlays, they go here diff --git a/templates/defaultpolicies/cue/tekton.cue b/templates/defaultpolicies/cue/tekton.cue index 9fa0dea..00ece09 100644 --- a/templates/defaultpolicies/cue/tekton.cue +++ b/templates/defaultpolicies/cue/tekton.cue @@ -8,7 +8,7 @@ import "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" metadata: _Metadata spec: v1beta1.#PipelineSpec & { params: [...{ - name: string + name: string description: string ... }] diff --git a/templates/defaultpolicies/rego/dockerfile_policies.rego b/templates/defaultpolicies/rego/dockerfile_policies.rego index c79c583..9ffb7f7 100644 --- a/templates/defaultpolicies/rego/dockerfile_policies.rego +++ b/templates/defaultpolicies/rego/dockerfile_policies.rego @@ -21,7 +21,7 @@ deny_root_user { input[i].cmd == "user" val2:= input[i].value val2 != "root" - val2 != "0" + val2 != "0" } # Do not sudo @@ -38,14 +38,14 @@ deny_caching{ matches := regex.match(".*?(apk|yum|dnf|apt|pip).+?(install|[dist-|check-|group]?up[grade|date]).*", val4) matches == true contains(val4, "--no-cache") -} +} # Ensure that COPY is used instead of ADD CIS 4.9 deny_add{ input[i].cmd != "add" } -# Ensure ADD does not include unpack archives or download files +# Ensure ADD does not include unpack archives or download files # deny_image_expansion{ # input[_].cmd == "add" # val5 := input[_].value diff --git a/templates/defaultpolicies/rego/k8s.rego b/templates/defaultpolicies/rego/k8s.rego index dacfa9e..cb9fce9 100644 --- a/templates/defaultpolicies/rego/k8s.rego +++ b/templates/defaultpolicies/rego/k8s.rego @@ -22,7 +22,7 @@ deny_secret{ input.kind == "Deployment" container := input.spec.template.spec.containers[_] env := container.envFrom[_] - + not env.secretRef } diff --git a/templates/inputs/cue/deploy.json b/templates/inputs/cue/deploy.json index 9956368..95114fa 100644 --- a/templates/inputs/cue/deploy.json +++ b/templates/inputs/cue/deploy.json @@ -1,6 +1,6 @@ { "apiVersion": "apps/v1", - "kind": "Deployment", + "kind": "Deployment", "metadata": { "namespace": "websites", "labels": { diff --git a/templates/inputs/cue/k8s/deploy.json b/templates/inputs/cue/k8s/deploy.json index 9956368..95114fa 100644 --- a/templates/inputs/cue/k8s/deploy.json +++ b/templates/inputs/cue/k8s/deploy.json @@ -1,6 +1,6 @@ { "apiVersion": "apps/v1", - "kind": "Deployment", + "kind": "Deployment", "metadata": { "namespace": "websites", "labels": { diff --git a/templates/inputs/k8s/deployment.json b/templates/inputs/k8s/deployment.json index 76d0473..d28bb4a 100644 --- a/templates/inputs/k8s/deployment.json +++ b/templates/inputs/k8s/deployment.json @@ -36,4 +36,3 @@ }, "status": {} } - \ No newline at end of file diff --git a/templates/inputs/terraform/sec_group.tf b/templates/inputs/terraform/sec_group.tf index 74c492e..908eefc 100644 --- a/templates/inputs/terraform/sec_group.tf +++ b/templates/inputs/terraform/sec_group.tf @@ -8,14 +8,14 @@ resource "aws_security_group" "allow_tls" { from_port = 443 to_port = 443 protocol = "tcp" - cidr_blocks = ["0.0.0.0/0"] + cidr_blocks = ["192.168.1.1/24"] } egress { from_port = 0 to_port = 0 protocol = "-1" - cidr_blocks = ["0.0.0.0/0"] + cidr_blocks = ["192.168.1.1/24"] ipv6_cidr_blocks = ["::/0"] } diff --git a/tools.env b/tools.env new file mode 100644 index 0000000..372db4a --- /dev/null +++ b/tools.env @@ -0,0 +1 @@ +K8S_1.29="ghcr.io/santoshkal/artifacts/cuemods/cuemod-k8sv:1.29" \ No newline at end of file